-h.value&&O+J<-h.value+P?h.value=Math.min(0,P-J-O-10):h.value=-(O-(P-10-J))},r=g=>{var O;const w=G.value?(O=G.value)==null?void 0:O.offsetWidth:0,x=E.value?E.value.offsetWidth:0;g>0?h.value=Math.min(0,h.value+g):w -h.value&&O+J<-h.value+P?h.value=Math.min(0,P-J-O-10):h.value=-(O-(P-10-J))},r=g=>{var O;const w=G.value?(O=G.value)==null?void 0:O.offsetWidth:0,x=E.value?E.value.offsetWidth:0;g>0?h.value=Math.min(0,h.value+g):w(o[t]=createRenderStep(()=>runNextFrame=!0),o),{}),sync=stepsOrder.reduce((o,t)=>{const r=steps[t];return o[t]=(s,l=!1,h=!1)=>(runNextFrame||startLoop(),r.schedule(s,l,h)),o},{}),cancelSync=stepsOrder.reduce((o,t)=>(o[t]=steps[t].cancel,o),{});stepsOrder.reduce((o,t)=>(o[t]=()=>steps[t].process(frame),o),{});const processStep=o=>steps[o].process(frame),processFrame=o=>{runNextFrame=!1,frame.delta=useDefaultElapsed?defaultTimestep:Math.max(Math.min(o-frame.timestamp,maxElapsed),1),frame.timestamp=o,isProcessing=!0,stepsOrder.forEach(processStep),isProcessing=!1,runNextFrame&&(useDefaultElapsed=!1,onNextFrame(processFrame))},startLoop=()=>{runNextFrame=!0,useDefaultElapsed=!0,isProcessing||onNextFrame(processFrame)},getFrameData=()=>frame;function __rest(o,t){var r={};for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&t.indexOf(s)<0&&(r[s]=o[s]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,s=Object.getOwnPropertySymbols(o);l{const r=Object.assign(Object.assign({},o),t),s={};for(const l in r)o[l]!==void 0&&t[l]!==void 0&&(s[l]=getMixer(o[l],t[l]));return l=>{for(const h in s)r[h]=s[h](l);return r}};function analyse(o){const t=complex.parse(o),r=t.length;let s=0,l=0,h=0;for(let v=0;v{M==null||M(),F.stop()}}}function velocityPerSecond(o,t){return t?o*(1e3/t):0}function inertia({from:o=0,velocity:t=0,min:r,max:s,power:l=.8,timeConstant:h=750,bounceStiffness:v=500,bounceDamping:S=10,restDelta:x=1,modifyTarget:T,driver:C,onUpdate:M,onComplete:w,onStop:D}){let O;function N(V){return r!==void 0&&V1&&s&&s.length>1){var h=dist(s)/dist(l);!isFinite(h)&&(h=1),t.pinchScale=h;var v=center(s);return t.pinchX=v[0],t.pinchY=v[1],{type:"pinch",target:o[0].target,event:t}}}}};function create(){return[1,0,0,1,0,0]}function identity(o){return o[0]=1,o[1]=0,o[2]=0,o[3]=1,o[4]=0,o[5]=0,o}function copy(o,t){return o[0]=t[0],o[1]=t[1],o[2]=t[2],o[3]=t[3],o[4]=t[4],o[5]=t[5],o}function mul(o,t,r){var s=t[0]*r[0]+t[2]*r[1],l=t[1]*r[0]+t[3]*r[1],h=t[0]*r[2]+t[2]*r[3],v=t[1]*r[2]+t[3]*r[3],S=t[0]*r[4]+t[2]*r[5]+t[4],x=t[1]*r[4]+t[3]*r[5]+t[5];return o[0]=s,o[1]=l,o[2]=h,o[3]=v,o[4]=S,o[5]=x,o}function translate(o,t,r){return o[0]=t[0],o[1]=t[1],o[2]=t[2],o[3]=t[3],o[4]=t[4]+r[0],o[5]=t[5]+r[1],o}function rotate(o,t,r){var s=t[0],l=t[2],h=t[4],v=t[1],S=t[3],x=t[5],T=Math.sin(r),C=Math.cos(r);return o[0]=s*C+v*T,o[1]=-s*T+v*C,o[2]=l*C+S*T,o[3]=-l*T+C*S,o[4]=C*h+T*x,o[5]=C*x-T*h,o}function scale$1(o,t,r){var s=r[0],l=r[1];return o[0]=t[0]*s,o[1]=t[1]*l,o[2]=t[2]*s,o[3]=t[3]*l,o[4]=t[4]*s,o[5]=t[5]*l,o}function invert(o,t){var r=t[0],s=t[2],l=t[4],h=t[1],v=t[3],S=t[5],x=r*v-h*s;return x?(x=1/x,o[0]=v*x,o[1]=-h*x,o[2]=-s*x,o[3]=r*x,o[4]=(s*S-v*l)*x,o[5]=(h*l-r*S)*x,o):null}function clone$1(o){var t=create();return copy(t,o),t}const matrix=Object.freeze(Object.defineProperty({__proto__:null,clone:clone$1,copy,create,identity,invert,mul,rotate,scale:scale$1,translate},Symbol.toStringTag,{value:"Module"}));var Point=function(){function o(t,r){this.x=t||0,this.y=r||0}return o.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},o.prototype.clone=function(){return new o(this.x,this.y)},o.prototype.set=function(t,r){return this.x=t,this.y=r,this},o.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},o.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},o.prototype.scale=function(t){this.x*=t,this.y*=t},o.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},o.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},o.prototype.dot=function(t){return this.x*t.x+this.y*t.y},o.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},o.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},o.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},o.prototype.distance=function(t){var r=this.x-t.x,s=this.y-t.y;return Math.sqrt(r*r+s*s)},o.prototype.distanceSquare=function(t){var r=this.x-t.x,s=this.y-t.y;return r*r+s*s},o.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},o.prototype.transform=function(t){if(t){var r=this.x,s=this.y;return this.x=t[0]*r+t[2]*s+t[4],this.y=t[1]*r+t[3]*s+t[5],this}},o.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},o.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},o.set=function(t,r,s){t.x=r,t.y=s},o.copy=function(t,r){t.x=r.x,t.y=r.y},o.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},o.lenSquare=function(t){return t.x*t.x+t.y*t.y},o.dot=function(t,r){return t.x*r.x+t.y*r.y},o.add=function(t,r,s){t.x=r.x+s.x,t.y=r.y+s.y},o.sub=function(t,r,s){t.x=r.x-s.x,t.y=r.y-s.y},o.scale=function(t,r,s){t.x=r.x*s,t.y=r.y*s},o.scaleAndAdd=function(t,r,s,l){t.x=r.x+s.x*l,t.y=r.y+s.y*l},o.lerp=function(t,r,s,l){var h=1-l;t.x=h*r.x+l*s.x,t.y=h*r.y+l*s.y},o}();const Point$1=Point;var mathMin$8=Math.min,mathMax$8=Math.max,lt=new Point$1,rb=new Point$1,lb=new Point$1,rt=new Point$1,minTv$1=new Point$1,maxTv$1=new Point$1,BoundingRect=function(){function o(t,r,s,l){s<0&&(t=t+s,s=-s),l<0&&(r=r+l,l=-l),this.x=t,this.y=r,this.width=s,this.height=l}return o.prototype.union=function(t){var r=mathMin$8(t.x,this.x),s=mathMin$8(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=mathMax$8(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=mathMax$8(t.y+t.height,this.y+this.height)-s:this.height=t.height,this.x=r,this.y=s},o.prototype.applyTransform=function(t){o.applyTransform(this,this,t)},o.prototype.calculateTransform=function(t){var r=this,s=t.width/r.width,l=t.height/r.height,h=create();return translate(h,h,[-r.x,-r.y]),scale$1(h,h,[s,l]),translate(h,h,[t.x,t.y]),h},o.prototype.intersect=function(t,r){if(!t)return!1;t instanceof o||(t=o.create(t));var s=this,l=s.x,h=s.x+s.width,v=s.y,S=s.y+s.height,x=t.x,T=t.x+t.width,C=t.y,M=t.y+t.height,w=!(h0;)v=x,x=(x<<1)+1,x<=0&&(x=S);x>S&&(x=S),v+=l,x+=l}else{for(S=l+1;xS&&(x=S);var T=v;v=l-x,x=l-T}for(v++;vS&&(x=S);var T=v;v=l-x,x=l-T}else{for(S=s-l;x=0;)v=x,x=(x<<1)+1,x<=0&&(x=S);x>S&&(x=S),v+=l,x+=l}for(v++;v=0&&this._roots.splice(l,1)},o.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},o.prototype.getRoots=function(){return this._roots},o.prototype.dispose=function(){this._displayList=null,this._roots=null},o}();const Storage$1=Storage;var requestAnimationFrame;requestAnimationFrame=env$1.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(o){return setTimeout(o,16)};const requestAnimationFrame$1=requestAnimationFrame;var easingFuncs={linear:function(o){return o},quadraticIn:function(o){return o*o},quadraticOut:function(o){return o*(2-o)},quadraticInOut:function(o){return(o*=2)<1?.5*o*o:-.5*(--o*(o-2)-1)},cubicIn:function(o){return o*o*o},cubicOut:function(o){return--o*o*o+1},cubicInOut:function(o){return(o*=2)<1?.5*o*o*o:.5*((o-=2)*o*o+2)},quarticIn:function(o){return o*o*o*o},quarticOut:function(o){return 1- --o*o*o*o},quarticInOut:function(o){return(o*=2)<1?.5*o*o*o*o:-.5*((o-=2)*o*o*o-2)},quinticIn:function(o){return o*o*o*o*o},quinticOut:function(o){return--o*o*o*o*o+1},quinticInOut:function(o){return(o*=2)<1?.5*o*o*o*o*o:.5*((o-=2)*o*o*o*o+2)},sinusoidalIn:function(o){return 1-Math.cos(o*Math.PI/2)},sinusoidalOut:function(o){return Math.sin(o*Math.PI/2)},sinusoidalInOut:function(o){return .5*(1-Math.cos(Math.PI*o))},exponentialIn:function(o){return o===0?0:Math.pow(1024,o-1)},exponentialOut:function(o){return o===1?1:1-Math.pow(2,-10*o)},exponentialInOut:function(o){return o===0?0:o===1?1:(o*=2)<1?.5*Math.pow(1024,o-1):.5*(-Math.pow(2,-10*(o-1))+2)},circularIn:function(o){return 1-Math.sqrt(1-o*o)},circularOut:function(o){return Math.sqrt(1- --o*o)},circularInOut:function(o){return(o*=2)<1?-.5*(Math.sqrt(1-o*o)-1):.5*(Math.sqrt(1-(o-=2)*o)+1)},elasticIn:function(o){var t,r=.1,s=.4;return o===0?0:o===1?1:(!r||r<1?(r=1,t=s/4):t=s*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(o-=1))*Math.sin((o-t)*(2*Math.PI)/s)))},elasticOut:function(o){var t,r=.1,s=.4;return o===0?0:o===1?1:(!r||r<1?(r=1,t=s/4):t=s*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*o)*Math.sin((o-t)*(2*Math.PI)/s)+1)},elasticInOut:function(o){var t,r=.1,s=.4;return o===0?0:o===1?1:(!r||r<1?(r=1,t=s/4):t=s*Math.asin(1/r)/(2*Math.PI),(o*=2)<1?-.5*(r*Math.pow(2,10*(o-=1))*Math.sin((o-t)*(2*Math.PI)/s)):r*Math.pow(2,-10*(o-=1))*Math.sin((o-t)*(2*Math.PI)/s)*.5+1)},backIn:function(o){var t=1.70158;return o*o*((t+1)*o-t)},backOut:function(o){var t=1.70158;return--o*o*((t+1)*o+t)+1},backInOut:function(o){var t=2.5949095;return(o*=2)<1?.5*(o*o*((t+1)*o-t)):.5*((o-=2)*o*((t+1)*o+t)+2)},bounceIn:function(o){return 1-easingFuncs.bounceOut(1-o)},bounceOut:function(o){return o<1/2.75?7.5625*o*o:o<2/2.75?7.5625*(o-=1.5/2.75)*o+.75:o<2.5/2.75?7.5625*(o-=2.25/2.75)*o+.9375:7.5625*(o-=2.625/2.75)*o+.984375},bounceInOut:function(o){return o<.5?easingFuncs.bounceIn(o*2)*.5:easingFuncs.bounceOut(o*2-1)*.5+.5}};const easingFuncs$1=easingFuncs;var mathPow$2=Math.pow,mathSqrt$3=Math.sqrt,EPSILON$3=1e-8,EPSILON_NUMERIC=1e-4,THREE_SQRT=mathSqrt$3(3),ONE_THIRD=1/3,_v0=create$1(),_v1=create$1(),_v2=create$1();function isAroundZero(o){return o>-EPSILON$3&&or);C++);C=w(C-1,S-2)}O=v[C+1],D=v[C]}if(D&&O){this._lastFr=C,this._lastFrP=r;var k=O.percent-D.percent,F=k===0?1:w((r-D.percent)/k,1);O.easingFunc&&(F=O.easingFunc(F));var B=s?this._additiveValue:T?tmpRgba:t[x];if((isArrayValueType(h)||T)&&!B&&(B=this._additiveValue=[]),this.discrete)t[x]=F<1?D.rawValue:O.rawValue;else if(isArrayValueType(h))h===VALUE_TYPE_1D_ARRAY?interpolate1DArray(B,D[l],O[l],F):interpolate2DArray(B,D[l],O[l],F);else if(isGradientValueType(h)){var V=D[l],z=O[l],U=h===VALUE_TYPE_LINEAR_GRADIENT;t[x]={type:U?"linear":"radial",x:interpolateNumber$1(V.x,z.x,F),y:interpolateNumber$1(V.y,z.y,F),colorStops:map$2(V.colorStops,function(W,X){var K=z.colorStops[X];return{offset:interpolateNumber$1(W.offset,K.offset,F),color:rgba2String(interpolate1DArray([],W.color,K.color,F))}}),global:z.global},U?(t[x].x2=interpolateNumber$1(V.x2,z.x2,F),t[x].y2=interpolateNumber$1(V.y2,z.y2,F)):t[x].r=interpolateNumber$1(V.r,z.r,F)}else if(T)interpolate1DArray(B,D[l],O[l],F),s||(t[x]=rgba2String(B));else{var Y=interpolateNumber$1(D[l],O[l],F);s?this._additiveValue=Y:t[x]=Y}s&&this._addToTarget(t)}}},o.prototype._addToTarget=function(t){var r=this.valType,s=this.propName,l=this._additiveValue;r===VALUE_TYPE_NUMBER?t[s]=t[s]+l:r===VALUE_TYPE_COLOR?(parse$1(t[s],tmpRgba),add1DArray(tmpRgba,tmpRgba,l,1),t[s]=rgba2String(tmpRgba)):r===VALUE_TYPE_1D_ARRAY?add1DArray(t[s],t[s],l,1):r===VALUE_TYPE_2D_ARRAY&&add2DArray(t[s],t[s],l,1)},o}(),Animator=function(){function o(t,r,s,l){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&l){logError("Can' use additive animation on looped animation.");return}this._additiveAnimators=l,this._allowDiscrete=s}return o.prototype.getMaxTime=function(){return this._maxTime},o.prototype.getDelay=function(){return this._delay},o.prototype.getLoop=function(){return this._loop},o.prototype.getTarget=function(){return this._target},o.prototype.changeTarget=function(t){this._target=t},o.prototype.when=function(t,r,s){return this.whenWithKeys(t,r,keys(r),s)},o.prototype.whenWithKeys=function(t,r,s,l){for(var h=this._tracks,v=0;v(o[t]=createRenderStep(()=>runNextFrame=!0),o),{}),sync=stepsOrder.reduce((o,t)=>{const r=steps[t];return o[t]=(s,l=!1,h=!1)=>(runNextFrame||startLoop(),r.schedule(s,l,h)),o},{}),cancelSync=stepsOrder.reduce((o,t)=>(o[t]=steps[t].cancel,o),{});stepsOrder.reduce((o,t)=>(o[t]=()=>steps[t].process(frame),o),{});const processStep=o=>steps[o].process(frame),processFrame=o=>{runNextFrame=!1,frame.delta=useDefaultElapsed?defaultTimestep:Math.max(Math.min(o-frame.timestamp,maxElapsed),1),frame.timestamp=o,isProcessing=!0,stepsOrder.forEach(processStep),isProcessing=!1,runNextFrame&&(useDefaultElapsed=!1,onNextFrame(processFrame))},startLoop=()=>{runNextFrame=!0,useDefaultElapsed=!0,isProcessing||onNextFrame(processFrame)},getFrameData=()=>frame;function __rest(o,t){var r={};for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&t.indexOf(s)<0&&(r[s]=o[s]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,s=Object.getOwnPropertySymbols(o);l{const r=Object.assign(Object.assign({},o),t),s={};for(const l in r)o[l]!==void 0&&t[l]!==void 0&&(s[l]=getMixer(o[l],t[l]));return l=>{for(const h in s)r[h]=s[h](l);return r}};function analyse(o){const t=complex.parse(o),r=t.length;let s=0,l=0,h=0;for(let v=0;v{M==null||M(),F.stop()}}}function velocityPerSecond(o,t){return t?o*(1e3/t):0}function inertia({from:o=0,velocity:t=0,min:r,max:s,power:l=.8,timeConstant:h=750,bounceStiffness:v=500,bounceDamping:S=10,restDelta:x=1,modifyTarget:T,driver:C,onUpdate:M,onComplete:w,onStop:D}){let O;function N(V){return r!==void 0&&V1&&s&&s.length>1){var h=dist(s)/dist(l);!isFinite(h)&&(h=1),t.pinchScale=h;var v=center(s);return t.pinchX=v[0],t.pinchY=v[1],{type:"pinch",target:o[0].target,event:t}}}}};function create(){return[1,0,0,1,0,0]}function identity(o){return o[0]=1,o[1]=0,o[2]=0,o[3]=1,o[4]=0,o[5]=0,o}function copy(o,t){return o[0]=t[0],o[1]=t[1],o[2]=t[2],o[3]=t[3],o[4]=t[4],o[5]=t[5],o}function mul(o,t,r){var s=t[0]*r[0]+t[2]*r[1],l=t[1]*r[0]+t[3]*r[1],h=t[0]*r[2]+t[2]*r[3],v=t[1]*r[2]+t[3]*r[3],S=t[0]*r[4]+t[2]*r[5]+t[4],x=t[1]*r[4]+t[3]*r[5]+t[5];return o[0]=s,o[1]=l,o[2]=h,o[3]=v,o[4]=S,o[5]=x,o}function translate(o,t,r){return o[0]=t[0],o[1]=t[1],o[2]=t[2],o[3]=t[3],o[4]=t[4]+r[0],o[5]=t[5]+r[1],o}function rotate(o,t,r){var s=t[0],l=t[2],h=t[4],v=t[1],S=t[3],x=t[5],T=Math.sin(r),C=Math.cos(r);return o[0]=s*C+v*T,o[1]=-s*T+v*C,o[2]=l*C+S*T,o[3]=-l*T+C*S,o[4]=C*h+T*x,o[5]=C*x-T*h,o}function scale$1(o,t,r){var s=r[0],l=r[1];return o[0]=t[0]*s,o[1]=t[1]*l,o[2]=t[2]*s,o[3]=t[3]*l,o[4]=t[4]*s,o[5]=t[5]*l,o}function invert(o,t){var r=t[0],s=t[2],l=t[4],h=t[1],v=t[3],S=t[5],x=r*v-h*s;return x?(x=1/x,o[0]=v*x,o[1]=-h*x,o[2]=-s*x,o[3]=r*x,o[4]=(s*S-v*l)*x,o[5]=(h*l-r*S)*x,o):null}function clone$1(o){var t=create();return copy(t,o),t}const matrix=Object.freeze(Object.defineProperty({__proto__:null,clone:clone$1,copy,create,identity,invert,mul,rotate,scale:scale$1,translate},Symbol.toStringTag,{value:"Module"}));var Point=function(){function o(t,r){this.x=t||0,this.y=r||0}return o.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},o.prototype.clone=function(){return new o(this.x,this.y)},o.prototype.set=function(t,r){return this.x=t,this.y=r,this},o.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},o.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},o.prototype.scale=function(t){this.x*=t,this.y*=t},o.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},o.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},o.prototype.dot=function(t){return this.x*t.x+this.y*t.y},o.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},o.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},o.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},o.prototype.distance=function(t){var r=this.x-t.x,s=this.y-t.y;return Math.sqrt(r*r+s*s)},o.prototype.distanceSquare=function(t){var r=this.x-t.x,s=this.y-t.y;return r*r+s*s},o.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},o.prototype.transform=function(t){if(t){var r=this.x,s=this.y;return this.x=t[0]*r+t[2]*s+t[4],this.y=t[1]*r+t[3]*s+t[5],this}},o.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},o.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},o.set=function(t,r,s){t.x=r,t.y=s},o.copy=function(t,r){t.x=r.x,t.y=r.y},o.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},o.lenSquare=function(t){return t.x*t.x+t.y*t.y},o.dot=function(t,r){return t.x*r.x+t.y*r.y},o.add=function(t,r,s){t.x=r.x+s.x,t.y=r.y+s.y},o.sub=function(t,r,s){t.x=r.x-s.x,t.y=r.y-s.y},o.scale=function(t,r,s){t.x=r.x*s,t.y=r.y*s},o.scaleAndAdd=function(t,r,s,l){t.x=r.x+s.x*l,t.y=r.y+s.y*l},o.lerp=function(t,r,s,l){var h=1-l;t.x=h*r.x+l*s.x,t.y=h*r.y+l*s.y},o}();const Point$1=Point;var mathMin$8=Math.min,mathMax$8=Math.max,lt=new Point$1,rb=new Point$1,lb=new Point$1,rt=new Point$1,minTv$1=new Point$1,maxTv$1=new Point$1,BoundingRect=function(){function o(t,r,s,l){s<0&&(t=t+s,s=-s),l<0&&(r=r+l,l=-l),this.x=t,this.y=r,this.width=s,this.height=l}return o.prototype.union=function(t){var r=mathMin$8(t.x,this.x),s=mathMin$8(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=mathMax$8(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=mathMax$8(t.y+t.height,this.y+this.height)-s:this.height=t.height,this.x=r,this.y=s},o.prototype.applyTransform=function(t){o.applyTransform(this,this,t)},o.prototype.calculateTransform=function(t){var r=this,s=t.width/r.width,l=t.height/r.height,h=create();return translate(h,h,[-r.x,-r.y]),scale$1(h,h,[s,l]),translate(h,h,[t.x,t.y]),h},o.prototype.intersect=function(t,r){if(!t)return!1;t instanceof o||(t=o.create(t));var s=this,l=s.x,h=s.x+s.width,v=s.y,S=s.y+s.height,x=t.x,T=t.x+t.width,C=t.y,M=t.y+t.height,w=!(h0;)v=x,x=(x<<1)+1,x<=0&&(x=S);x>S&&(x=S),v+=l,x+=l}else{for(S=l+1;xS&&(x=S);var T=v;v=l-x,x=l-T}for(v++;vS&&(x=S);var T=v;v=l-x,x=l-T}else{for(S=s-l;x=0;)v=x,x=(x<<1)+1,x<=0&&(x=S);x>S&&(x=S),v+=l,x+=l}for(v++;v=0&&this._roots.splice(l,1)},o.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},o.prototype.getRoots=function(){return this._roots},o.prototype.dispose=function(){this._displayList=null,this._roots=null},o}();const Storage$1=Storage;var requestAnimationFrame;requestAnimationFrame=env$1.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(o){return setTimeout(o,16)};const requestAnimationFrame$1=requestAnimationFrame;var easingFuncs={linear:function(o){return o},quadraticIn:function(o){return o*o},quadraticOut:function(o){return o*(2-o)},quadraticInOut:function(o){return(o*=2)<1?.5*o*o:-.5*(--o*(o-2)-1)},cubicIn:function(o){return o*o*o},cubicOut:function(o){return--o*o*o+1},cubicInOut:function(o){return(o*=2)<1?.5*o*o*o:.5*((o-=2)*o*o+2)},quarticIn:function(o){return o*o*o*o},quarticOut:function(o){return 1- --o*o*o*o},quarticInOut:function(o){return(o*=2)<1?.5*o*o*o*o:-.5*((o-=2)*o*o*o-2)},quinticIn:function(o){return o*o*o*o*o},quinticOut:function(o){return--o*o*o*o*o+1},quinticInOut:function(o){return(o*=2)<1?.5*o*o*o*o*o:.5*((o-=2)*o*o*o*o+2)},sinusoidalIn:function(o){return 1-Math.cos(o*Math.PI/2)},sinusoidalOut:function(o){return Math.sin(o*Math.PI/2)},sinusoidalInOut:function(o){return .5*(1-Math.cos(Math.PI*o))},exponentialIn:function(o){return o===0?0:Math.pow(1024,o-1)},exponentialOut:function(o){return o===1?1:1-Math.pow(2,-10*o)},exponentialInOut:function(o){return o===0?0:o===1?1:(o*=2)<1?.5*Math.pow(1024,o-1):.5*(-Math.pow(2,-10*(o-1))+2)},circularIn:function(o){return 1-Math.sqrt(1-o*o)},circularOut:function(o){return Math.sqrt(1- --o*o)},circularInOut:function(o){return(o*=2)<1?-.5*(Math.sqrt(1-o*o)-1):.5*(Math.sqrt(1-(o-=2)*o)+1)},elasticIn:function(o){var t,r=.1,s=.4;return o===0?0:o===1?1:(!r||r<1?(r=1,t=s/4):t=s*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(o-=1))*Math.sin((o-t)*(2*Math.PI)/s)))},elasticOut:function(o){var t,r=.1,s=.4;return o===0?0:o===1?1:(!r||r<1?(r=1,t=s/4):t=s*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*o)*Math.sin((o-t)*(2*Math.PI)/s)+1)},elasticInOut:function(o){var t,r=.1,s=.4;return o===0?0:o===1?1:(!r||r<1?(r=1,t=s/4):t=s*Math.asin(1/r)/(2*Math.PI),(o*=2)<1?-.5*(r*Math.pow(2,10*(o-=1))*Math.sin((o-t)*(2*Math.PI)/s)):r*Math.pow(2,-10*(o-=1))*Math.sin((o-t)*(2*Math.PI)/s)*.5+1)},backIn:function(o){var t=1.70158;return o*o*((t+1)*o-t)},backOut:function(o){var t=1.70158;return--o*o*((t+1)*o+t)+1},backInOut:function(o){var t=2.5949095;return(o*=2)<1?.5*(o*o*((t+1)*o-t)):.5*((o-=2)*o*((t+1)*o+t)+2)},bounceIn:function(o){return 1-easingFuncs.bounceOut(1-o)},bounceOut:function(o){return o<1/2.75?7.5625*o*o:o<2/2.75?7.5625*(o-=1.5/2.75)*o+.75:o<2.5/2.75?7.5625*(o-=2.25/2.75)*o+.9375:7.5625*(o-=2.625/2.75)*o+.984375},bounceInOut:function(o){return o<.5?easingFuncs.bounceIn(o*2)*.5:easingFuncs.bounceOut(o*2-1)*.5+.5}};const easingFuncs$1=easingFuncs;var mathPow$2=Math.pow,mathSqrt$3=Math.sqrt,EPSILON$3=1e-8,EPSILON_NUMERIC=1e-4,THREE_SQRT=mathSqrt$3(3),ONE_THIRD=1/3,_v0=create$1(),_v1=create$1(),_v2=create$1();function isAroundZero(o){return o>-EPSILON$3&&or);C++);C=w(C-1,S-2)}O=v[C+1],D=v[C]}if(D&&O){this._lastFr=C,this._lastFrP=r;var k=O.percent-D.percent,F=k===0?1:w((r-D.percent)/k,1);O.easingFunc&&(F=O.easingFunc(F));var B=s?this._additiveValue:T?tmpRgba:t[x];if((isArrayValueType(h)||T)&&!B&&(B=this._additiveValue=[]),this.discrete)t[x]=F<1?D.rawValue:O.rawValue;else if(isArrayValueType(h))h===VALUE_TYPE_1D_ARRAY?interpolate1DArray(B,D[l],O[l],F):interpolate2DArray(B,D[l],O[l],F);else if(isGradientValueType(h)){var V=D[l],z=O[l],U=h===VALUE_TYPE_LINEAR_GRADIENT;t[x]={type:U?"linear":"radial",x:interpolateNumber$1(V.x,z.x,F),y:interpolateNumber$1(V.y,z.y,F),colorStops:map$2(V.colorStops,function(W,X){var K=z.colorStops[X];return{offset:interpolateNumber$1(W.offset,K.offset,F),color:rgba2String(interpolate1DArray([],W.color,K.color,F))}}),global:z.global},U?(t[x].x2=interpolateNumber$1(V.x2,z.x2,F),t[x].y2=interpolateNumber$1(V.y2,z.y2,F)):t[x].r=interpolateNumber$1(V.r,z.r,F)}else if(T)interpolate1DArray(B,D[l],O[l],F),s||(t[x]=rgba2String(B));else{var Y=interpolateNumber$1(D[l],O[l],F);s?this._additiveValue=Y:t[x]=Y}s&&this._addToTarget(t)}}},o.prototype._addToTarget=function(t){var r=this.valType,s=this.propName,l=this._additiveValue;r===VALUE_TYPE_NUMBER?t[s]=t[s]+l:r===VALUE_TYPE_COLOR?(parse$1(t[s],tmpRgba),add1DArray(tmpRgba,tmpRgba,l,1),t[s]=rgba2String(tmpRgba)):r===VALUE_TYPE_1D_ARRAY?add1DArray(t[s],t[s],l,1):r===VALUE_TYPE_2D_ARRAY&&add2DArray(t[s],t[s],l,1)},o}(),Animator=function(){function o(t,r,s,l){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&l){logError("Can' use additive animation on looped animation.");return}this._additiveAnimators=l,this._allowDiscrete=s}return o.prototype.getMaxTime=function(){return this._maxTime},o.prototype.getDelay=function(){return this._delay},o.prototype.getLoop=function(){return this._loop},o.prototype.getTarget=function(){return this._target},o.prototype.changeTarget=function(t){this._target=t},o.prototype.when=function(t,r,s){return this.whenWithKeys(t,r,keys(r),s)},o.prototype.whenWithKeys=function(t,r,s,l){for(var h=this._tracks,v=0;v