import{bx as of,cn as sf,a5 as Ue,R as fe,X as yS,w as ir,ae as te,al as He,am as mn,af as de,ak as j,P as oe,ag as Ge,at as Nt,aq as ze,aB as mS,co as _S,bG as Ke,bq as Fd,bt as lf,aC as SS,e6 as Ly,e7 as Gi,bB as bS,bv as kt,e8 as wS,e4 as CS,bA as TS,e9 as bn,cp as xS,ea as IS,eb as AS,ec as kS,ed as MS,ee as $d,bE as zd,cw as Hl,s as Te,E as er,bz as cn,cu as RS,aj as dl,au as Se,ai as nt,ad as Gl,ah as Ht,a_ as Pr,aY as Qe,bo as Ey,bH as Xo,bI as Ko,ef as PS,bD as LS,cW as ES,az as Sn,aA as DS,ay as Vi,an as Dy,bw as lr,$ as _h,aZ as Sh,as as Un,eg as ls,a$ as Ud,ac as BS}from"./index-C1DTprc-.js";var tn=(t=>(t.C="C",t.X="X",t.Z="Z",t.Y="Y",t.A="A",t.G="G",t.L="L",t.F="F",t.D="D",t.B="B",t.P="P",t.O="O",t.R="R",t.T="T",t.MINUS="-",t.EQUAL="=",t.DIGIT_0="0",t.DELETE="DELETE",t.UP="ARROWUP",t.DOWN="ARROWDOWN",t.LEFT="ARROWLEFT",t.RIGHT="ARROWRIGHT",t.ENTER="ENTER",t.SPACE=" ",t.TAB="TAB",t.BACKSPACE="BACKSPACE",t.ESC="ESCAPE",t.PAGEUP="PAGEUP",t.PAGEDOWN="PAGEDOWN",t.F5="F5",t))(tn||{});const pO=[{type:"通用",children:[{label:"剪切",value:"Ctrl + X"},{label:"复制",value:"Ctrl + C"},{label:"粘贴",value:"Ctrl + V"},{label:"粘贴为纯文本",value:"Ctrl + Shift + V"},{label:"快速复制粘贴",value:"Ctrl + D"},{label:"全选",value:"Ctrl + A"},{label:"撤销",value:"Ctrl + Z"},{label:"恢复",value:"Ctrl + Y"},{label:"删除",value:"Delete / Backspace"},{label:"多选",value:"按住 Ctrl 或 Shift"},{label:"打开搜索替换",value:"Ctrl + F"},{label:"关闭弹窗",value:"ESC"}]},{type:"幻灯片放映",children:[{label:"从头开始放映幻灯片",value:"F5"},{label:"从当前开始放映幻灯片",value:"Shift + F5"},{label:"切换上一页",value:"↑ / ← / PgUp"},{label:"切换下一页",value:"↓ / → / PgDown"},{label:"切换下一页",value:"Enter / Space"},{label:"退出放映",value:"ESC"}]},{type:"幻灯片编辑",children:[{label:"新建幻灯片",value:"Enter"},{label:"移动画布",value:"Space + 鼠标拖拽"},{label:"缩放画布",value:"Ctrl + 鼠标滚轮"},{label:"放大画布",value:"Ctrl + ="},{label:"缩小画布",value:"Ctrl + -"},{label:"使画布适应当前屏幕",value:"Ctrl + 0"},{label:"上一页(未选中元素)",value:"↑"},{label:"下一页(未选中元素)",value:"↓"},{label:"上一页",value:"鼠标上滚 / PgUp"},{label:"下一页",value:"鼠标下滚 / PgDown"},{label:"快速创建文本",value:"双击空白处 / T"},{label:"快速创建矩形",value:"R"},{label:"快速创建圆形",value:"O"},{label:"快速创建线条",value:"L"},{label:"退出绘制状态",value:"鼠标右键"}]},{type:"元素操作",children:[{label:"移动",value:"↑ / ← / ↓ / →"},{label:"锁定",value:"Ctrl + L"},{label:"组合",value:"Ctrl + G"},{label:"取消组合",value:"Ctrl + Shift + G"},{label:"置顶层",value:"Alt + F"},{label:"置底层",value:"Alt + B"},{label:"锁定宽高比例",value:"按住 Ctrl 或 Shift"},{label:"创建水平 / 垂直线条",value:"按住 Ctrl 或 Shift"},{label:"切换焦点元素",value:"Tab"},{label:"确认图片裁剪",value:"Enter"},{label:"完成自定义形状绘制",value:"Enter"}]},{type:"表格编辑",children:[{label:"聚焦到下一个单元格",value:"Tab"},{label:"移动焦点单元格",value:"↑ / ← / ↓ / →"},{label:"在上方插入一行",value:"Ctrl + ↑"},{label:"在下方插入一行",value:"Ctrl + ↓"},{label:"在左侧插入一列",value:"Ctrl + ←"},{label:"在右侧插入一列",value:"Ctrl + →"}]},{type:"图表数据编辑",children:[{label:"聚焦到下一行",value:"Enter"}]},{type:"文本编辑",children:[{label:"加粗",value:"Ctrl + B"},{label:"斜体",value:"Ctrl + I"},{label:"下划线",value:"Ctrl + U"},{label:"行内代码",value:"Ctrl + E"},{label:"上角标",value:"Ctrl + ;"},{label:"下角标",value:"Ctrl + '"},{label:"选中段落",value:"ESC"}]}],uf=t=>{const{left:e,top:r,width:n,height:i,rotate:a=0}=t,o=Math.sqrt(Math.pow(n,2)+Math.pow(i,2))/2,s=Math.atan(i/n)*180/Math.PI,l=(180-a-s)*Math.PI/180,u=(s-a)*Math.PI/180,f=e+n/2,c=r+i/2,h=[f+o*Math.cos(l),f+o*Math.cos(u),f-o*Math.cos(l),f-o*Math.cos(u)],d=[c-o*Math.sin(l),c-o*Math.sin(u),c+o*Math.sin(l),c+o*Math.sin(u)];return{xRange:[Math.min(...h),Math.max(...h)],yRange:[Math.min(...d),Math.max(...d)]}},gO=t=>{const{xRange:e,yRange:r}=uf({left:t.left,top:t.top,width:t.width,height:t.height,rotate:0}),{xRange:n,yRange:i}=uf({left:t.left,top:t.top,width:t.width,height:t.height,rotate:t.rotate});return{offsetX:n[0]-e[0],offsetY:i[0]-r[0]}},By=t=>{let e,r,n,i;if(t.type==="line")e=t.left,r=t.left+Math.max(t.start[0],t.end[0]),n=t.top,i=t.top+Math.max(t.start[1],t.end[1]);else if("rotate"in t&&t.rotate){const{left:a,top:o,width:s,height:l,rotate:u}=t,{xRange:f,yRange:c}=uf({left:a,top:o,width:s,height:l,rotate:u});e=f[0],r=f[1],n=c[0],i=c[1]}else e=t.left,r=t.left+t.width,n=t.top,i=t.top+t.height;return{minX:e,maxX:r,minY:n,maxY:i}},yO=t=>{const e=[],r=[],n=[],i=[];t.forEach(u=>{const{minX:f,maxX:c,minY:h,maxY:d}=By(u);e.push(f),r.push(h),n.push(c),i.push(d)});const a=Math.min(...e),o=Math.max(...n),s=Math.min(...r),l=Math.max(...i);return{minX:a,maxX:o,minY:s,maxY:l}},mO=t=>{const e=[];return t.forEach(r=>{const n=e.findIndex(i=>i.value===r.value);if(n===-1)e.push(r);else{const i=e[n],a=Math.min(i.range[0],r.range[0]),o=Math.max(i.range[1],r.range[1]),s=[a,o],l={value:r.value,range:s};e[n]=l}}),e},_O=t=>{const e={};for(const r of t)e[r.id]=of(10);return e},SO=t=>{const e={},r={};for(const n of t){const i=n.groupId;i&&!e[i]&&(e[i]=of(10)),r[n.id]=of(10)}return{groupIdMap:e,elIdMap:r}},OS=t=>{const e=sf(t);return[e.setAlpha(.3).toRgbString(),e.setAlpha(.1).toRgbString()]},NS=t=>{const e=t.start.join(","),r=t.end.join(",");if(t.broken){const n=t.broken.join(",");return`M${e} L${n} L${r}`}else if(t.broken2){const{minX:n,maxX:i,minY:a,maxY:o}=By(t);return i-n>=o-a?`M${e} L${t.broken2[0]},${t.start[1]} L${t.broken2[0]},${t.end[1]} ${r}`:`M${e} L${t.start[0]},${t.broken2[1]} L${t.end[0]},${t.broken2[1]} ${r}`}else if(t.curve){const n=t.curve.join(",");return`M${e} Q${n} ${r}`}else if(t.cubic){const[n,i]=t.cubic,a=n.join(","),o=i.join(",");return`M${e} C${a} ${o} ${r}`}return`M${e} L${r}`},bO=(t,e)=>{const r=t.getBoundingClientRect(),n=e.getBoundingClientRect();return r.top>=n.top&&r.bottom<=n.bottom},FS=["id"],$S={class:"icons"},zS={class:"content"},US={key:0,class:"title"},VS={class:"description"},HS={key:0,class:"control"},GS=Ue({__name:"Message",props:{id:{},message:{},type:{default:"success"},title:{default:""},duration:{default:3e3},closable:{type:Boolean,default:!1}},emits:["close","destroy"],setup(t,{expose:e,emit:r}){const{IconAttention:n,IconCheckOne:i,IconCloseOne:a,IconInfo:o,IconCloseSmall:s}=_S,l=t,u=r,f=fe(!0),c=fe(null),h=()=>{l.duration<=0||(c.value=setTimeout(v,l.duration))},d=()=>{c.value&&clearTimeout(c.value)},v=()=>f.value=!1;return yS(()=>{d()}),ir(()=>{h()}),e({close:v}),(p,g)=>(te(),He(mS,{name:"message-fade",appear:"",mode:"in-out",onBeforeLeave:g[3]||(g[3]=y=>u("close")),onAfterLeave:g[4]||(g[4]=y=>u("destroy"))},{default:mn(()=>[f.value?(te(),de("div",{key:0,class:"message",id:p.id},[j("div",{class:"message-container",onMouseenter:g[1]||(g[1]=y=>d()),onMouseleave:g[2]||(g[2]=y=>h())},[j("div",$S,[p.type==="warning"?(te(),He(oe(n),{key:0,theme:"filled",size:"18",fill:"#faad14"})):Ge("",!0),p.type==="success"?(te(),He(oe(i),{key:1,theme:"filled",size:"18",fill:"#52c41a"})):Ge("",!0),p.type==="error"?(te(),He(oe(a),{key:2,theme:"filled",size:"18",fill:"#ff4d4f"})):Ge("",!0),p.type==="info"?(te(),He(oe(o),{key:3,theme:"filled",size:"18",fill:"#1677ff"})):Ge("",!0)]),j("div",zS,[p.title?(te(),de("div",US,Nt(p.title),1)):Ge("",!0),j("div",VS,Nt(p.message),1)]),p.closable?(te(),de("div",HS,[j("span",{class:"close-btn",onClick:g[0]||(g[0]=y=>v())},[ze(oe(s))])])):Ge("",!0)],32)],8,FS)):Ge("",!0)]),_:1}))}}),WS=Ke(GS,[["__scopeId","data-v-bfa2994d"]]),cf=[];let Yr=null,jS=0;const qS={duration:3e3},yr=t=>{const e="message-"+jS++,r={...qS,...t,id:e};Yr||(Yr=document.createElement("div"),Yr.className="message-wrap",Yr.style.cssText=`
width: 100%;
position: fixed;
top: 0;
left: 0;
z-index: 6000;
pointer-events: none;
display: flex;
flex-direction: column;
box-sizing: border-box;
padding: 15px;
background-color: rgba(255, 255, 255, 0);
transition: all 1s ease-in-out;
align-items: center;
`,document.body.appendChild(Yr));const n=ze(WS,r,null),i=document.createElement("div");n.appContext=t.ctx||yr._context||null,n.props.onClose=t.onClose,n.props.onDestroy=()=>{Yr&&Yr.childNodes.length<=1&&(Yr.remove(),Yr=null),Fd(null,i)},Fd(n,i),Yr.appendChild(i.firstElementChild);const a={id:e,close:()=>{var o,s;return(s=(o=n==null?void 0:n.component)==null?void 0:o.exposed)==null?void 0:s.close()}};return cf.push(a),a};yr.success=(t,e)=>yr({...e,type:"success",message:t});yr.info=(t,e)=>yr({...e,type:"info",message:t});yr.warning=(t,e)=>yr({...e,type:"warning",message:t});yr.error=(t,e)=>yr({...e,type:"error",message:t});yr.closeAll=function(){for(let t=cf.length-1;t>=0;t--)cf[t].close()};const XS=t=>{const r=t.replace(/[\n\r]+/g,"
").split("
");let n="";for(const i of r)i&&(n+=`
>>6*(3-x)&63));var M=g.charAt(64);if(M)for(;y.length%4;)y.push(M);return y.join("")},parse:function(d){var v=d.length,p=this._map,g=p.charAt(64);if(g){var y=d.indexOf(g);y!=-1&&(v=y)}for(var m=[],w=0,k=0;k "&&C[_]!==" "&&C[_]!==" "&&C[_]!==`
`&&C[_]!=="\r";_++)P+=C[_];if(P=P.trim(),P[P.length-1]==="/"&&(P=P.substring(0,P.length-1),_--),!w(P)){let N;return P.trim().length===0?N="Invalid space after '<'.":N="Tag '"+P+"' is an invalid name.",y("InvalidTag",N,k(C,_))}const O=h(C,_);if(O===!1)return y("InvalidAttr","Attributes for '"+P+"' have open quote.",k(C,_));let E=O.value;if(_=O.index,E[E.length-1]==="/"){const N=_-E.length;E=E.substring(0,E.length-1);const z=v(E,x);if(z===!0)b=!0;else return y(z.err.code,z.err.msg,k(C,N+z.err.line))}else if(A)if(O.tagClosed){if(E.trim().length>0)return y("InvalidTag","Closing tag '"+P+"' can't have attributes or invalid starting.",k(C,I));if(M.length===0)return y("InvalidTag","Closing tag '"+P+"' has not been opened.",k(C,I));{const N=M.pop();if(P!==N.tagName){let z=k(C,N.tagStartPos);return y("InvalidTag","Expected closing tag '"+N.tagName+"' (opened in line "+z.line+", col "+z.col+") instead of closing tag '"+P+"'.",k(C,I))}M.length==0&&(T=!0)}}else return y("InvalidTag","Closing tag '"+P+"' doesn't have proper closing.",k(C,_));else{const N=v(E,x);if(N!==!0)return y(N.err.code,N.err.msg,k(C,_-E.length+N.err.line));if(T===!0)return y("InvalidXml","Multiple possible root nodes found.",k(C,_));x.unpairedTags.indexOf(P)!==-1||M.push({tagName:P,tagStartPos:I}),b=!0}for(_++;_ c.options.UploadQueueSize;){var M=h[x].state==="waiting"||h[x].state==="checking"||h[x].state==="uploading";!h[x]||!M?(d[h[x].id]&&delete d[h[x].id],h.splice(x,1),p--):x++}y()}},w=function C(){if(!(v>=c.options.FileParallelLimit)){for(;h[p]&&h[p].state!=="waiting";)p++;if(!(p>=h.length)){var x=h[p];p++,v++,x.state="checking",x.params.onTaskStart&&x.params.onTaskStart(g(x)),!x.params.UploadData&&(x.params.UploadData={});var M=o.formatParams(x.api,x.params);s[x.api].call(c,M,function(b,T){c._isRunningTask(x.id)&&((x.state==="checking"||x.state==="uploading")&&(x.state=b?"error":"success",b&&(x.error=b),v--,y(),C(),x.callback&&x.callback(b,T),x.state==="success"&&(x.params&&(delete x.params.UploadData,delete x.params.Body,delete x.params),delete x.callback)),m())}),y(),setTimeout(C)}}},k=function(x,M){var b=d[x];if(b){var T=b&&b.state==="waiting",_=b&&(b.state==="checking"||b.state==="uploading");if(M==="canceled"&&b.state!=="canceled"||M==="paused"&&T||M==="paused"&&_){b.state=M,c.emit("inner-kill-task",{TaskId:x,toState:M});try{var I=b&&b.params&&b.params.UploadData.UploadId}catch{}M==="canceled"&&I&&a.removeUsing(I),y(),_&&(v--,w()),M==="canceled"&&(b.params&&(delete b.params.UploadData,delete b.params.Body,delete b.params),delete b.callback)}m()}};c._addTasks=function(C){o.each(C,function(x){c._addTask(x.api,x.params,x.callback,!0)}),y()};var R=!0;c._addTask=function(C,x,M,b){x=o.formatParams(C,x);var T=o.uuid();x.TaskId=T,x.onTaskReady&&x.onTaskReady(T),x.TaskReady&&(x.TaskReady(T),R&&console.warn('warning: Param "TaskReady" has been deprecated. Please use "onTaskReady" instead.'),R=!1);var _={params:x,callback:M,api:C,index:h.length,id:T,Bucket:x.Bucket,Region:x.Region,Key:x.Key,FilePath:x.FilePath||"",state:"waiting",loaded:0,size:0,speed:0,percent:0,hashPercent:0,error:null,_custom:x._custom},I=x.onHashProgress;x.onHashProgress=function(P){c._isRunningTask(_.id)&&(_.hashPercent=P.percent,I&&I(P),y())};var A=x.onProgress;return x.onProgress=function(P){c._isRunningTask(_.id)&&(_.state==="checking"&&(_.state="uploading"),_.loaded=P.loaded,_.speed=P.speed,_.percent=P.percent,A&&A(P),y())},o.getFileSize(C,x,function(P,O){if(P)return M(o.error(P));d[T]=_,h.push(_),_.size=O,!b&&y(),w(),m()}),T},c._isRunningTask=function(C){var x=d[C];return!!(x&&(x.state==="checking"||x.state==="uploading"))},c.getTaskList=function(){return o.map(h,g)},c.cancelTask=function(C){k(C,"canceled")},c.pauseTask=function(C){k(C,"paused")},c.restartTask=function(C){var x=d[C];x&&(x.state==="paused"||x.state==="error")&&(x.state="waiting",y(),p=Math.min(p,x.index),w())},c.isUploadRunning=function(){return v||p 0?r:1:r))}var zM=function(t,e,r,n){for(;r1&&n&&n.length>1){var a=iv(n)/iv(i);!isFinite(a)&&(a=1),e.pinchScale=a;var o=yC(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}};function vo(){return[1,0,0,1,0,0]}function Mh(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function mC(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function ya(t,e,r){var n=e[0]*r[0]+e[2]*r[1],i=e[1]*r[0]+e[3]*r[1],a=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],l=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t}function av(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function am(t,e,r,n){n===void 0&&(n=[0,0]);var i=e[0],a=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(r),c=Math.cos(r);return t[0]=i*c+s*f,t[1]=-i*f+s*c,t[2]=a*c+l*f,t[3]=-a*f+c*l,t[4]=c*(o-n[0])+f*(u-n[1])+n[0],t[5]=c*(u-n[1])-f*(o-n[0])+n[1],t}function _C(t,e,r){var n=r[0],i=r[1];return t[0]=e[0]*n,t[1]=e[1]*i,t[2]=e[2]*n,t[3]=e[3]*i,t[4]=e[4]*n,t[5]=e[5]*i,t}function Rh(t,e){var r=e[0],n=e[2],i=e[4],a=e[1],o=e[3],s=e[5],l=r*o-a*n;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-n*l,t[3]=r*l,t[4]=(n*s-o*i)*l,t[5]=(a*i-r*s)*l,t):null}var Ne=function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,n=this.y-e.y;return Math.sqrt(r*r+n*n)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,n=this.y-e.y;return r*r+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,n=this.y;return this.x=e[0]*r+e[2]*n+e[4],this.y=e[1]*r+e[3]*n+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,n){e.x=r,e.y=n},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,n){e.x=r.x+n.x,e.y=r.y+n.y},t.sub=function(e,r,n){e.x=r.x-n.x,e.y=r.y-n.y},t.scale=function(e,r,n){e.x=r.x*n,e.y=r.y*n},t.scaleAndAdd=function(e,r,n,i){e.x=r.x+n.x*i,e.y=r.y+n.y*i},t.lerp=function(e,r,n,i){var a=1-i;e.x=a*r.x+i*n.x,e.y=a*r.y+i*n.y},t}(),hs=Math.min,ds=Math.max,fi=new Ne,hi=new Ne,di=new Ne,vi=new Ne,Na=new Ne,Fa=new Ne,ht=function(){function t(e,r,n,i){n<0&&(e=e+n,n=-n),i<0&&(r=r+i,i=-i),this.x=e,this.y=r,this.width=n,this.height=i}return t.prototype.union=function(e){var r=hs(e.x,this.x),n=hs(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ds(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=ds(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=r,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){var r=this,n=e.width/r.width,i=e.height/r.height,a=vo();return av(a,a,[-r.x,-r.y]),_C(a,a,[n,i]),av(a,a,[e.x,e.y]),a},t.prototype.intersect=function(e,r){if(!e)return!1;e instanceof t||(e=t.create(e));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=e.x,u=e.x+e.width,f=e.y,c=e.y+e.height,h=!(a0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}for(o++;os&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;or);f++);f=h(f-1,s-2)}v=o[f+1],d=o[f]}if(d&&v){this._lastFr=f,this._lastFrP=r;var g=v.percent-d.percent,y=g===0?1:h((r-d.percent)/g,1);v.easingFunc&&(y=v.easingFunc(y));var m=n?this._additiveValue:u?Ua:e[l];if((bs(a)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)e[l]=y<1?d.rawValue:v.rawValue;else if(bs(a))a===il?Yu(m,d[i],v[i],y):WC(m,d[i],v[i],y);else if(bv(a)){var w=d[i],k=v[i],R=a===If;e[l]={type:R?"linear":"radial",x:_n(w.x,k.x,y),y:_n(w.y,k.y,y),colorStops:xe(w.colorStops,function(x,M){var b=k.colorStops[M];return{offset:_n(x.offset,b.offset,y),color:nl(Yu([],x.color,b.color,y))}}),global:k.global},R?(e[l].x2=_n(w.x2,k.x2,y),e[l].y2=_n(w.y2,k.y2,y)):e[l].r=_n(w.r,k.r,y)}else if(u)Yu(m,d[i],v[i],y),n||(e[l]=nl(m));else{var C=_n(d[i],v[i],y);n?this._additiveValue=C:e[l]=C}n&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,n=this.propName,i=this._additiveValue;r===Ss?e[n]=e[n]+i:r===io?(ln(e[n],Ua),_s(Ua,Ua,i,1),e[n]=nl(Ua)):r===il?_s(e[n],e[n],i,1):r===wm&&_v(e[n],e[n],i,1)},t}(),Eh=function(){function t(e,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&i){em("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,r,n){return this.whenWithKeys(e,r,et(r),n)},t.prototype.whenWithKeys=function(e,r,n,i){for(var a=this._tracks,o=0;og[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=xe(o,function(m){return m.property}),f=0;fy[1]&&(y[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,r){if(!(r>=0&&re){a?r.push(o(a,l,e)):i&&r.push(o(i,l,0),o(i,l,e));break}else i&&(r.push(o(i,l,0)),i=null),r.push(l),a=l}return r}function FR(t,e,r){var n=t.getVisual("visualMeta");if(!(!n||!n.length||!t.count())&&e.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=t.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(a){var l=e.getAxis(i),u=xe(a.stops,function(w){return{coord:l.toGlobalCoord(l.dataToCoord(w.value)),color:w.color}}),f=u.length,c=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var h=NR(u,i==="x"?r.getWidth():r.getHeight()),d=h.length;if(!d&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var v=10,p=h[0].coord-v,g=h[d-1].coord+v,y=g-p;if(y<.001)return"transparent";G(h,function(w){w.offset=(w.coord-p)/y}),h.push({offset:d?h[d-1].offset:.5,color:c[1]||"transparent"}),h.unshift({offset:d?h[0].offset:.5,color:c[0]||"transparent"});var m=new f0(0,0,0,0,h,!0);return m[i]=p,m[i+"2"]=g,m}}}function $R(t,e,r){var n=t.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&zR(a,e))){var o=e.mapDimension(a.dim),s={};return G(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function zR(t,e){var r=t.getExtent(),n=Math.abs(r[1]-r[0])/t.scale.count();isNaN(n)&&(n=0);for(var i=e.count(),a=Math.max(1,Math.round(i/5)),o=0;on)return!1;return!0}function UR(t,e){return isNaN(t)||isNaN(e)}function VR(t){for(var e=t.length/2;e>0&&UR(t[e*2-2],t[e*2-1]);e--);return e-1}function Vg(t,e){return[t[e*2],t[e*2+1]]}function HR(t,e,r){for(var n=t.length/2,i=r==="x"?0:1,a,o,s=0,l=-1,u=0;u