YUI.add("anim-shape",function(g,r){var p,d,x=Number,v="color",c=function(r,t,e,o,a,n){for(var i,s,f,l,m=0,c=g.Anim.getUpdatedColorValue,h=e.length,u=[];m<h;m+=1){for(f in i=e[m],s=t[m],l={},i)i.hasOwnProperty(f)&&(l[f]=f===v?g.Color.toHex(c(g.Color.toHex(s[f]),g.Color.toHex(i[f]),o,a,n)):n(o,x(s[f]),x(i[f])-x(s[f]),a));u.push(l)}return u},t={set:function(r,t,e,o,a,n,i){var s,f={},l=g.Anim.getUpdatedColorValue,m=c;for(s in o)if(o.hasOwnProperty(s)&&"type"!==s)switch(s){case v:f[s]=l(e[s],o[s],a,n,i);break;case"stops":f[s]=m(r,e[s],o[s],a,n,i);break;default:f[s]=i(a,x(e[s]),x(o[s])-x(e[s]),n)}r._node.set(t,f)}};g.Anim.behaviors.fill=t,g.Anim.behaviors.stroke=t,g.Anim.behaviors.transform={set:function(r,t,e,o,a,n,i){for(var s,f,l,m,c,r=r._node,h="",u=0,g=(o=p).length;u<g;++u){for(f=o[u].concat(),l=e[u].concat(),s=f.shift(),l.shift(),c=f.length,h+=s+"(",m=0;m<c;++m)h+=i(a,x(l[m]),x(f[m])-x(l[m]),n),m<c-1&&(h+=", ");h+=");"}h&&r.set("transform",h),r._transform=d},get:function(r){var t,e,o,a,n,i=r._node,s=i.matrix,r=r.get("to").transform,i=i.get("transform"),f=g.MatrixUtil.getTransformArray(r),l=i?g.MatrixUtil.getTransformArray(i):null;if(f)if(!l||l.length<1){for(l=[],o=f.length,e=0;e<o;++e)a=f[e][0],l[e]=g.MatrixUtil.getTransformFunctionArray(a);p=f,n=l}else if(g.MatrixUtil.compareTransformSequence(f,l))p=f,n=l;else{for(t=new g.Matrix,o=f.length,e=0;e<o;++e)t[a="matrix"===(a=f[e].shift())?"multiply":a].apply(t,f[e]);p=t.decompose(),n=s.decompose()}return d=r,n}}},"patched-v3.18.7",{requires:["anim-base","anim-easing","anim-color","matrix"]});