diff --git a/assets/index-Cj_6wRAL.js b/assets/index-DMV04ait.js similarity index 90% rename from assets/index-Cj_6wRAL.js rename to assets/index-DMV04ait.js index bd1d900c..dc593bb3 100644 --- a/assets/index-Cj_6wRAL.js +++ b/assets/index-DMV04ait.js @@ -118,11 +118,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var l=n.next();return a=l.done,l},e:function(l){s=!0,o=l},f:function(){try{a||n.return==null||n.return()}finally{if(s)throw o}}}}function nX(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&p.shift(),(d=d.concat(p)).sort(function(R,A){return!R.attrs||!A.attrs||R.attrs.order-A.attrs.order})));var v=YRe(f,t,r,i),g=QRe(f);if(g?(u?u&&u!==g&&(a+=""),a+="<".concat(g,">"),u=g):(a+="<".concat(g,">"),u=g),a+='
  • ')):(u&&(a+=""),u=""),a+='

    ')),d){var m,y=tX(d);try{for(y.s();!(m=y.n()).done;)a+=rX(m.value,f,e,s,n,r,i)}catch(R){y.e(R)}finally{y.f()}}else a+=rX(f,t,e,s,n,r,i);a+=g?"

  • ":"

    "}}catch(R){c.e(R)}finally{c.f()}return a}function QRe(e){var t=e["a:pPr"];return t?t["a:buChar"]?"ul":t["a:buAutoNum"]?"ol":"":""}function rX(e,t,n,r,i,o,a){var s=n["a:lstStyle"],l=a.slideMasterTextStyles,u=1,c=we(t["a:pPr"],["attrs","lvl"]);c!==void 0&&(u=parseInt(c)+1);var f=e["a:t"];typeof f!="string"&&(f=we(e,["a:fld","a:t"])),typeof f!="string"&&(f=" ");var d="",h=function(w,_,C,O,N,P){var F,I=we(w,["a:rPr"]);if(I&&$u(I)==="SOLID_FILL"&&(F=Yn(I["a:solidFill"],void 0,void 0,P)),!F&&we(C,["a:lvl"+N+"pPr","a:defRPr"])){var W=we(C,["a:lvl"+N+"pPr","a:defRPr"]);$u(W)==="SOLID_FILL"&&(F=Yn(W["a:solidFill"],void 0,void 0,P))}if(!F){var U=we(_,["p:style","a:fontRef"]);U&&(F=Yn(U,void 0,void 0,P)),!F&&O&&(F=Yn(O,void 0,void 0,P))}return F||""}(e,t,s,r,u,a),p=function(w,_,C,O){var N,P;if(we(w,["a:rPr","attrs","sz"])&&(N=we(w,["a:rPr","attrs","sz"])/100),isNaN(N)||!N){var F=we(_,["p:txBody","a:lstStyle","a:lvl1pPr","a:defRPr","attrs","sz"]);N=parseInt(F)/100}return!isNaN(N)&&N||(C==="title"||C==="subTitle"||C==="ctrTitle"?P=we(O,["p:titleStyle","a:lvl1pPr","a:defRPr","attrs","sz"]):C==="body"?P=we(O,["p:bodyStyle","a:lvl1pPr","a:defRPr","attrs","sz"]):C==="dt"||C==="sldNum"?P="1200":C||(P=we(O,["p:otherStyle","a:lvl1pPr","a:defRPr","attrs","sz"])),P&&(N=parseInt(P)/100)),we(w,["a:rPr","attrs","baseline"])&&!isNaN(N)&&(N-=10),(N=isNaN(N)||!N?18:N)+"pt"}(e,i,o,l),v=function(w,_,C){var O=we(w,["a:rPr","a:latin","attrs","typeface"]);if(!O){var N=we(C.themeContent,["a:theme","a:themeElements","a:fontScheme"]);O=we(N,_==="title"||_==="subTitle"||_==="ctrTitle"?["a:majorFont","a:latin","attrs","typeface"]:["a:minorFont","a:latin","attrs","typeface"])}return O||""}(e,o,a),g=function(w){return we(w,["a:rPr","attrs","b"])==="1"?"bold":""}(e),m=function(w){return we(w,["a:rPr","attrs","i"])==="1"?"italic":""}(e),y=function(w){return we(w,["a:rPr","attrs","u"])==="sng"?"underline":""}(e),R=function(w){return we(w,["a:rPr","attrs","strike"])==="sngStrike"?"line-through":""}(e),A=function(w){var _=we(w,["a:rPr","attrs","spc"]);return _?parseInt(_)/100+"pt":""}(e),x=function(w,_){var C=we(w,["a:rPr","a:effectLst","a:outerShdw"]);if(C){var O=UG(C,_);if(O){var N=O.h,P=O.v,F=O.blur,I=O.color;if(!isNaN(P)&&!isNaN(N))return N+"pt "+P+"pt "+(F?F+"pt":"")+" "+I}}return""}(e,a),S=function(w){var _=we(w,["a:rPr","attrs","baseline"]);return _?parseInt(_)>0?"super":"sub":""}(e);h&&(d+="color: ".concat(h,";")),p&&(d+="font-size: ".concat(p,";")),v&&(d+="font-family: ".concat(v,";")),g&&(d+="font-weight: ".concat(g,";")),m&&(d+="font-style: ".concat(m,";")),y&&(d+="text-decoration: ".concat(y,";")),R&&(d+="text-decoration-line: ".concat(R,";")),A&&(d+="letter-spacing: ".concat(A,";")),S&&(d+="vertical-align: ".concat(S,";")),x&&(d+="text-shadow: ".concat(x,";"));var L=we(e,["a:rPr","a:hlinkClick","attrs","r:id"]);if(L){var M=a.slideResObj[L].target;return'').concat(f.replace(/\t/g,"    ").replace(/\s/g," "),"")}return'').concat(f.replace(/\t/g,"    ").replace(/\s/g," "),"")}function HRe(e,t,n,r,i,o,a){var s,l=i;if(o>=i)for(;l<=o;){var u=l*(Math.PI/180),c=e+Math.cos(u)*n,f=t+Math.sin(u)*r;l===i&&(s=" M"+c+" "+f),s+=" L"+c+" "+f,l++}else for(;l>o;){var d=l*(Math.PI/180),h=e+Math.cos(d)*n,p=t+Math.sin(d)*r;l===i&&(s=" M "+h+" "+p),s+=" L "+h+" "+p,l--}return s+=""}function KRe(e,t,n){var r=we(e,["a:pathLst"]),i=we(r,["a:path"]);Array.isArray(i)&&(i=i.pop());var o=parseInt(i.attrs.w),a=parseInt(i.attrs.h),s=o===0?0:1/o*t,l=a===0?0:1/a*n,u="",c=we(i,["a:moveTo"]),f=i["a:lnTo"],d=i["a:cubicBezTo"],h=i["a:arcTo"],p=we(i,["a:close"]);Array.isArray(c)||(c=[c]);var v=[];if(c.length>0){if(Object.keys(c).forEach(function(P){var F=c[P]["a:pt"];F&&Object.keys(F).forEach(function(I){var W=F[I],U=W.x,Z=W.y,ee=W.order;v.push({type:"movto",x:U,y:Z,order:ee})})}),f&&Object.keys(f).forEach(function(P){var F=f[P]["a:pt"];F&&Object.keys(F).forEach(function(I){var W=F[I],U=W.x,Z=W.y,ee=W.order;v.push({type:"lnto",x:U,y:Z,order:ee})})}),d){var g=[];Array.isArray(d)||(d=[d]),Object.keys(d).forEach(function(P){g.push(d[P]["a:pt"])}),g.forEach(function(P){var F=[];P.forEach(function(W){var U={x:W.attrs.x,y:W.attrs.y};F.push(U)});var I=P[0].attrs.order;v.push({type:"cubicBezTo",cubBzPt:F,order:I})})}if(h){var m=h.attrs,y=m.order,R=m.hR,A=m.wR,x=m.stAng,S=m.swAng,L=0,M=0,w=we(h,["a:pt","attrs"]);w&&(L=w.x,M=w.y),v.push({type:"arcTo",hR:R,wR:A,stAng:x,swAng:S,shftX:L,shftY:M,order:y})}p&&(Array.isArray(p)||(p=[p]),Object.keys(p).forEach(function(){v.push({type:"close",order:1/0})})),v.sort(function(P,F){return P.order-F.order});for(var _=0;_0&&n.isBandRowAttr===1&&r){if(o="",t%2==0&&r["a:band2H"]){var g=we(r,["a:band2H","a:tcStyle","a:fill","a:solidFill"]);if(g){var m=Yn(g,void 0,void 0,i);m&&(o=m)}var y=we(r,["a:band2H","a:tcTxStyle"]);if(y){var R=Yn(y,void 0,void 0,i);R&&(a=R)}we(y,["attrs","b"])==="on"&&(s=!0)}if(t%2!=0&&r["a:band1H"]){var A=we(r,["a:band1H","a:tcStyle","a:fill","a:solidFill"]);if(A){var x=Yn(A,void 0,void 0,i);x&&(o=x)}var S=we(r,["a:band1H","a:tcTxStyle"]);if(S){var L=Yn(S,void 0,void 0,i);L&&(a=L),we(S,["attrs","b"])==="on"&&(s=!0)}}}if(t===e.length-1&&n.isLstRowAttr===1&&r){var M=we(r,["a:lastRow","a:tcStyle","a:fill","a:solidFill"]);if(M){var w=Yn(M,void 0,void 0,i);w&&(o=w)}var _=we(r,["a:lastRow","a:tcTxStyle"]);if(_){var C=Yn(_,void 0,void 0,i);C&&(a=C),we(_,["attrs","b"])==="on"&&(s=!0)}}return{fillColor:o,fontColor:a,fontBold:s}}function w5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(l){throw l},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var l=n.next();return a=l.done,l},e:function(l){s=!0,o=l},f:function(){try{a||n.return==null||n.return()}finally{if(s)throw o}}}}function sX(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n").replaceAll(/&/g,"&").replaceAll(/'/g,"'").replaceAll(/"/g,'"')}(xr(YG(e)[0])),order:t}}function e6(e,t,n){return t6.apply(this,arguments)}function t6(){return t6=$r(tn.mark(function e(t,n,r){var i,o,a,s,l,u,c,f,d,h,p,v,g,m,y,R,A,x,S,L;return tn.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:if(i=t.attrs.order,o=we(t,["p:grpSpPr","a:xfrm"])){M.next=4;break}return M.abrupt("return",null);case 4:a=parseInt(o["a:off"].attrs.x)*Mi,s=parseInt(o["a:off"].attrs.y)*Mi,l=parseInt(o["a:chOff"].attrs.x)*Mi,u=parseInt(o["a:chOff"].attrs.y)*Mi,c=parseInt(o["a:ext"].attrs.cx)*Mi,f=parseInt(o["a:ext"].attrs.cy)*Mi,d=parseInt(o["a:chExt"].attrs.cx)*Mi,h=parseInt(o["a:chExt"].attrs.cy)*Mi,(p=we(o,["attrs","rot"])||0)&&(p=Mv(p)),v=c/d,g=f/h,m=[],M.t0=tn.keys(t);case 18:if((M.t1=M.t0()).done){M.next=48;break}if(y=M.t1.value,t[y].constructor!==Array){M.next=42;break}R=$o(t[y]),M.prev=22,R.s();case 24:if((A=R.n()).done){M.next=32;break}return x=A.value,M.next=28,mh(y,x,n,r);case 28:(S=M.sent)&&m.push(S);case 30:M.next=24;break;case 32:M.next=37;break;case 34:M.prev=34,M.t2=M.catch(22),R.e(M.t2);case 37:return M.prev=37,R.f(),M.finish(37);case 40:M.next=46;break;case 42:return M.next=44,mh(y,t[y],n,r);case 44:(L=M.sent)&&m.push(L);case 46:M.next=18;break;case 48:return M.abrupt("return",{type:"group",top:s,left:a,width:c,height:f,rotate:p,order:i,elements:m.map(function(w){return ju(ju({},w),{},{left:(w.left-l)*v,top:(w.top-u)*g,width:w.width*v,height:w.height*g})})});case 49:case"end":return M.stop()}},e,null,[[22,34,37,40]])})),t6.apply(this,arguments)}function GG(e,t,n){return n6.apply(this,arguments)}function n6(){return n6=$r(tn.mark(function e(t,n,r){var i,o,a,s,l,u;return tn.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return i=we(t,["p:nvSpPr","p:cNvPr","attrs","name"]),o=we(t,["p:nvSpPr","p:nvPr","p:ph","attrs","idx"]),a=we(t,["p:nvSpPr","p:nvPr","p:ph","attrs","type"]),s=we(t,["attrs","order"]),a?(l=n.slideLayoutTables.typeTable[a],u=n.slideMasterTables.typeTable[a]):o&&(l=n.slideLayoutTables.idxTable[o],u=n.slideMasterTables.idxTable[o]),a||we(t,["p:nvSpPr","p:cNvSpPr","attrs","txBox"])==="1"&&(a="text"),a||(a=we(l,["p:nvSpPr","p:nvPr","p:ph","attrs","type"])),a||(a=we(u,["p:nvSpPr","p:nvPr","p:ph","attrs","type"])),a||(a=r==="diagramBg"?"diagram":"obj"),c.next=11,zG(t,l,u,i,a,s,n,r);case 11:return c.abrupt("return",c.sent);case 12:case"end":return c.stop()}},e)})),n6.apply(this,arguments)}function obe(e,t,n){return r6.apply(this,arguments)}function r6(){return r6=$r(tn.mark(function e(t,n,r){var i,o,a;return tn.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return i=t["p:nvCxnSpPr"]["p:cNvPr"].attrs.name,o=t["p:nvCxnSpPr"]["p:nvPr"]["p:ph"]===void 0?void 0:t["p:nvSpPr"]["p:nvPr"]["p:ph"].attrs.type,a=t.attrs.order,s.next=5,zG(t,void 0,void 0,i,o,a,n,r);case 5:return s.abrupt("return",s.sent);case 6:case"end":return s.stop()}},e)})),r6.apply(this,arguments)}function zG(e,t,n,r,i,o,a,s){return i6.apply(this,arguments)}function i6(){return i6=$r(tn.mark(function e(t,n,r,i,o,a,s,l){var u,c,f,d,h,p,v,g,m,y,R,A,x,S,L,M,w,_,C,O,N,P,F,I,W,U,Z,ee,B,Y,Q,K,te,J;return tn.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return c=we(t,u=["p:spPr","a:xfrm"]),f=we(n,u),d=we(r,u),h=we(t,["p:spPr","a:prstGeom","attrs","prst"]),p=we(t,["p:spPr","a:custGeom"]),v=qv(c,f,d),g=v.top,m=v.left,y=e1(c,f,d),R=y.width,A=y.height,x=we(c,["attrs","flipV"])==="1",S=we(c,["attrs","flipH"])==="1",L=Mv(we(c,["attrs","rot"])),(M=we(t,["p:txXfrm"]))?(_=we(M,["attrs","rot"]))&&(w=Mv(_)+90):w=L,C="",t["p:txBody"]&&(C=JT(t["p:txBody"],t,n,o,s)),O=_g(t,o,s),N=O.borderColor,P=O.borderWidth,F=O.borderType,I=O.strokeDasharray,de.next=18,DG(t,void 0,s,l);case 18:if(de.t0=de.sent,de.t0){de.next=21;break}de.t0="";case 21:if(W=de.t0,(Z=we(t,["p:spPr","a:effectLst","a:outerShdw"]))&&(U=UG(Z,s)),ee=ZRe(t,n,r),B=we(t,["p:txBody","a:bodyPr","attrs","vert"])==="eaVert",Y={left:m,top:g,width:R,height:A,borderColor:N,borderWidth:P,borderType:F,borderStrokeDasharray:I,fill:W,content:C,isFlipV:x,isFlipH:S,rotate:L,vAlign:ee,name:i,order:a},U&&(Y.shadow=U),!p||o==="diagram"){de.next=35;break}return Q=we(c,["a:ext","attrs"]),K=parseInt(Q.cx)*Mi,te=parseInt(Q.cy)*Mi,J=KRe(p,K,te),Y.content&&!qE(Y.content)&&(Y.content=""),de.abrupt("return",ju(ju({},Y),{},{type:"shape",shapType:"custom",path:J}));case 35:if(!h||o!=="obj"&&o){de.next=38;break}return Y.content&&!qE(Y.content)&&(Y.content=""),de.abrupt("return",ju(ju({},Y),{},{type:"shape",shapType:h}));case 38:return de.abrupt("return",ju(ju({},Y),{},{type:"text",isVertical:B,rotate:w}));case 39:case"end":return de.stop()}},e)})),i6.apply(this,arguments)}function abe(e,t,n){return o6.apply(this,arguments)}function o6(){return o6=$r(tn.mark(function e(t,n,r){var i,o,a,s,l,u,c,f,d,h,p,v,g,m,y,R,A,x,S,L,M,w,_,C,O,N,P,F,I,W,U,Z,ee,B;return tn.wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return i=r==="slideMasterBg"?n.masterResObj:r==="slideLayoutBg"?n.layoutResObj:n.slideResObj,o=t.attrs.order,a=t["p:blipFill"]["a:blip"].attrs["r:embed"],s=i[a].target,l=x5(s).toLowerCase(),u=n.zip,Y.next=8,u.file(s).async("arraybuffer");case 8:if(c=Y.sent,f=t["p:spPr"]["a:xfrm"],d=QT(l),h=qv(f,void 0,void 0),p=h.top,v=h.left,g=e1(f,void 0,void 0),m=g.width,y=g.height,R="data:".concat(d,";base64,").concat(FG(c)),A=we(f,["attrs","flipV"])==="1",x=we(f,["attrs","flipH"])==="1",S=0,(L=we(t,["p:spPr","a:xfrm","attrs","rot"]))&&(S=Mv(L)),M=we(t,["p:nvPicPr","p:nvPr","a:videoFile"]),F=!1,!M){Y.next=36;break}if(w=M.attrs["r:link"],!XRe(_=i[w].target)){Y.next=29;break}_=EG(_),F=!0,Y.next=36;break;case 29:if((C=x5(_).toLowerCase())!=="mp4"&&C!=="webm"&&C!=="ogg"){Y.next=36;break}return Y.next=33,u.file(_).async("arraybuffer");case 33:N=Y.sent,O=QT(C),P=URL.createObjectURL(new Blob([N],{type:O}));case 36:if(!(I=we(t,["p:nvPicPr","p:nvPr","a:audioFile"]))){Y.next=46;break}if(W=I.attrs["r:link"],U=i[W].target,(Z=x5(U).toLowerCase())!=="mp3"&&Z!=="wav"&&Z!=="ogg"){Y.next=46;break}return Y.next=44,u.file(U).async("arraybuffer");case 44:ee=Y.sent,B=URL.createObjectURL(new Blob([ee]));case 46:if(!M||F){Y.next=48;break}return Y.abrupt("return",{type:"video",top:p,left:v,width:m,height:y,rotate:S,blob:P,order:o});case 48:if(!M||!F){Y.next=50;break}return Y.abrupt("return",{type:"video",top:p,left:v,width:m,height:y,rotate:S,src:_,order:o});case 50:if(!I){Y.next=52;break}return Y.abrupt("return",{type:"audio",top:p,left:v,width:m,height:y,rotate:S,blob:B,order:o});case 52:return Y.abrupt("return",{type:"image",top:p,left:v,width:m,height:y,rotate:S,src:R,isFlipV:A,isFlipH:x,order:o});case 53:case"end":return Y.stop()}},e)})),o6.apply(this,arguments)}function sbe(e,t,n){return a6.apply(this,arguments)}function a6(){return a6=$r(tn.mark(function e(t,n,r){var i,o,a;return tn.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:i=we(t,["a:graphic","a:graphicData","attrs","uri"]),s.t0=i,s.next=s.t0==="http://schemas.openxmlformats.org/drawingml/2006/table"?4:s.t0==="http://schemas.openxmlformats.org/drawingml/2006/chart"?8:s.t0==="http://schemas.openxmlformats.org/drawingml/2006/diagram"?12:s.t0==="http://schemas.openxmlformats.org/presentationml/2006/ole"?16:23;break;case 4:return s.next=6,lbe(t,n);case 6:return o=s.sent,s.abrupt("break",23);case 8:return s.next=10,ube(t,n);case 10:return o=s.sent,s.abrupt("break",23);case 12:return s.next=14,cbe(t,n);case 14:return o=s.sent,s.abrupt("break",23);case 16:if((a=we(t,["a:graphic","a:graphicData","mc:AlternateContent","mc:Fallback","p:oleObj"]))||(a=we(t,["a:graphic","a:graphicData","p:oleObj"])),!a){s.next=22;break}return s.next=21,e6(a,n,r);case 21:o=s.sent;case 22:return s.abrupt("break",23);case 23:return s.abrupt("return",o);case 24:case"end":return s.stop()}},e)})),a6.apply(this,arguments)}function lbe(e,t){return s6.apply(this,arguments)}function s6(){return s6=$r(tn.mark(function e(t,n){var r,i,o,a,s,l,u,c,f,d,h,p,v,g,m,y,R,A,x,S,L,M,w,_,C,O,N,P,F,I,W,U,Z,ee,B,Y,Q,K,te,J,de,G,Ae,ue,ce,le,$;return tn.wrap(function(X){for(;;)switch(X.prev=X.next){case 0:if(r=t.attrs.order,i=we(t,["a:graphic","a:graphicData","a:tbl"]),o=we(t,["p:xfrm"]),a=qv(o,void 0,void 0),s=a.top,l=a.left,u=e1(o,void 0,void 0),c=u.width,f=u.height,d=we(t,["a:graphic","a:graphicData","a:tbl","a:tblPr"]),h=d.attrs?d.attrs.firstRow:void 0,p=d.attrs?d.attrs.firstCol:void 0,v=d.attrs?d.attrs.lastRow:void 0,g=d.attrs?d.attrs.lastCol:void 0,m=d.attrs?d.attrs.bandRow:void 0,y=d.attrs?d.attrs.bandCol:void 0,R={isFrstRowAttr:h&&h==="1"?1:0,isFrstColAttr:p&&p==="1"?1:0,isLstRowAttr:v&&v==="1"?1:0,isLstColAttr:g&&g==="1"?1:0,isBandRowAttr:m&&m==="1"?1:0,isBandColAttr:y&&y==="1"?1:0},(x=d["a:tableStyleId"])&&(S=n.tableStyles["a:tblStyleLst"]["a:tblStyle"]))if(S.constructor===Array)for(L=0;L0&&R.isBandColAttr===1)||R.isFrstColAttr===1&&I===0||R.isLstRowAttr===1&&I===P.length-1||K===Y.length-1||K%2!=0&&(we(A,["a:band2V"])===void 0?we(A,["a:band1V"])&&(J="a:band2V"):J="a:band2V"),K===Y.length-1&&R.isLstColAttr===1&&(J="a:lastCol",R.isLstRowAttr===1&&I===P.length-1&&we(A,["a:swCell"])?J="a:swCell":R.isFrstRowAttr===1&&I===0&&we(A,["a:nwCell"])&&(J="a:nwCell")),de=JT(te["a:txBody"],te,void 0,void 0,n),X.next=42,iX(te,A,J,n);case 42:G=X.sent,Ae={text:de},G.rowSpan&&(Ae.rowSpan=G.rowSpan),G.colSpan&&(Ae.colSpan=G.colSpan),G.vMerge&&(Ae.vMerge=G.vMerge),G.hMerge&&(Ae.hMerge=G.hMerge),(G.fontBold||B)&&(Ae.fontBold=G.fontBold||B),(G.fontColor||ee)&&(Ae.fontColor=G.fontColor||ee),(G.fillColor||Z||O)&&(Ae.fillColor=G.fillColor||Z||O),Q.push(Ae);case 52:K++,X.next=34;break;case 55:X.next=73;break;case 57:return ue=void 0,R.isFrstColAttr===1&&R.isLstRowAttr!==1?ue="a:firstCol":R.isBandColAttr===1&&R.isLstRowAttr!==1&&(we(A,["a:band2V"])||we(A,["a:band1V"]))&&(ue="a:band2V"),R.isLstColAttr===1&&R.isLstRowAttr!==1&&(ue="a:lastCol"),ce=JT(Y["a:txBody"],Y,void 0,void 0,n),X.next=63,iX(Y,A,ue,n);case 63:le=X.sent,$={text:ce},le.rowSpan&&($.rowSpan=le.rowSpan),le.colSpan&&($.colSpan=le.colSpan),le.vMerge&&($.vMerge=le.vMerge),le.hMerge&&($.hMerge=le.hMerge),(le.fontBold||B)&&($.fontBold=le.fontBold||B),(le.fontColor||ee)&&($.fontColor=le.fontColor||ee),(le.fillColor||Z||O)&&($.fillColor=le.fillColor||Z||O),Q.push($);case 73:F.push(Q);case 74:I++,X.next=27;break;case 77:return X.abrupt("return",ju({type:"table",top:s,left:l,width:c,height:f,data:F,order:r},M||{}));case 78:case"end":return X.stop()}},e)})),s6.apply(this,arguments)}function ube(e,t){return l6.apply(this,arguments)}function l6(){return l6=$r(tn.mark(function e(t,n){var r,i,o,a,s,l,u,c,f,d,h,p,v,g;return tn.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return r=t.attrs.order,i=we(t,["p:xfrm"]),o=qv(i,void 0,void 0),a=o.top,s=o.left,l=e1(i,void 0,void 0),u=l.width,c=l.height,f=t["a:graphic"]["a:graphicData"]["c:chart"].attrs["r:id"],d=n.slideResObj[f].target,m.next=8,ro(n.zip,d);case 8:if(h=m.sent,p=we(h,["c:chartSpace","c:chart","c:plotArea"]),v=BRe(p,n)){m.next=13;break}return m.abrupt("return",{});case 13:return g={type:"chart",top:a,left:s,width:u,height:c,data:v.data,colors:v.colors,chartType:v.type,order:r},v.marker!==void 0&&(g.marker=v.marker),v.barDir!==void 0&&(g.barDir=v.barDir),v.holeSize!==void 0&&(g.holeSize=v.holeSize),v.grouping!==void 0&&(g.grouping=v.grouping),v.style!==void 0&&(g.style=v.style),m.abrupt("return",g);case 20:case"end":return m.stop()}},e)})),l6.apply(this,arguments)}function cbe(e,t){return u6.apply(this,arguments)}function u6(){return u6=$r(tn.mark(function e(t,n){var r,i,o,a,s,l,u,c,f,d,h,p,v,g;return tn.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(r=t.attrs.order,i=we(t,["p:xfrm"]),o=qv(i,void 0,void 0),a=o.left,s=o.top,l=e1(i,void 0,void 0),u=l.width,c=l.height,f=we(n.digramFileContent,["p:drawing","p:spTree","p:sp"]),d=[],!f){m.next=26;break}h=$o(f),m.prev=8,h.s();case 10:if((p=h.n()).done){m.next=18;break}return v=p.value,m.next=14,GG(v,n,"diagramBg");case 14:(g=m.sent)&&d.push(g);case 16:m.next=10;break;case 18:m.next=23;break;case 20:m.prev=20,m.t0=m.catch(8),h.e(m.t0);case 23:return m.prev=23,h.f(),m.finish(23);case 26:return m.abrupt("return",{type:"diagram",left:a,top:s,width:u,height:c,elements:d,order:r});case 27:case"end":return m.stop()}},e,null,[[8,20,23,26]])})),u6.apply(this,arguments)}const ii=" ";function fbe(e){let t="";Array.isArray(e)||(e=[e]);for(let n=0;ne.phi1&&(e.phi2-=2*df),e.sweepFlag===1&&e.phi2r)return[];if(r===0)return[[e*n/(e*e+t*t),t*n/(e*e+t*t)]];const i=Math.sqrt(r);return[[(e*n+t*i)/(e*e+t*t),(t*n-e*i)/(e*e+t*t)],[(e*n-t*i)/(e*e+t*t),(t*n+e*i)/(e*e+t*t)]]}const Du=Math.PI/180;function cX(e,t,n){return(1-n)*e+n*t}function fX(e,t,n,r){return e+Math.cos(r/180*df)*t+Math.sin(r/180*df)*n}function dX(e,t,n,r){const o=t-e,a=n-t,s=r-n,l=3*o+3*s-6*a,u=(a-o)*6,c=3*o;return Math.abs(l)<1e-6?[-c/u]:dbe(u/l,c/l,1e-6)}function hX(e,t,n,r,i){const o=1-i,a=o*o*o,s=3*o*o*i,l=3*o*i*i,u=i*i*i;return e*a+t*s+n*l+r*u}function dbe(e,t,n=1e-6){const r=e*e/4-t;if(r<-n)return[];if(r<=n)return[-e/2];const i=Math.sqrt(r);return[-(e/2)-i,-(e/2)+i]}function hbe(e,t,n){e.cX||Rk(e,t,n);const r=Math.min(e.phi1,e.phi2),i=Math.max(e.phi1,e.phi2),o=i-r,a=Math.ceil(o/90),s=new Array(a);let l=t,u=n;for(let c=0;c{const[w,_]=c6([L*e.rX,M*e.rY],e.xRot);return[e.cX+w,e.cY+_]};[x.x1,x.y1]=S(v,g),[x.x2,x.y2]=S(R,A),[x.x,x.y]=S(m,y),e.relative&&(x.x1-=l,x.y1-=u,x.x2-=l,x.y2-=u,x.x-=l,x.y-=u),[l,u]=[x.x,x.y],s[c]=x}return s}function pbe(e=1e13){yl(e);function t(n){return Math.round(n*e)/e}return function(r){return"x1"in r&&typeof r.x1<"u"&&(r.x1=t(r.x1)),"y1"in r&&typeof r.y1<"u"&&(r.y1=t(r.y1)),"x2"in r&&typeof r.x2<"u"&&(r.x2=t(r.x2)),"y2"in r&&typeof r.y2<"u"&&(r.y2=t(r.y2)),"x"in r&&typeof r.x<"u"&&(r.x=t(r.x)),"y"in r&&typeof r.y<"u"&&(r.y=t(r.y)),"rX"in r&&typeof r.rX<"u"&&(r.rX=t(r.rX)),"rY"in r&&typeof r.rY<"u"&&(r.rY=t(r.rY)),r}}function JG(){return Al((e,t,n)=>(e.relative&&(typeof e.x1<"u"&&(e.x1+=t),typeof e.y1<"u"&&(e.y1+=n),typeof e.x2<"u"&&(e.x2+=t),typeof e.y2<"u"&&(e.y2+=n),typeof e.x<"u"&&(e.x+=t),typeof e.y<"u"&&(e.y+=n),e.relative=!1),e))}function vbe(){return Al((e,t,n)=>(e.relative||(typeof e.x1<"u"&&(e.x1-=t),typeof e.y1<"u"&&(e.y1-=n),typeof e.x2<"u"&&(e.x2-=t),typeof e.y2<"u"&&(e.y2-=n),typeof e.x<"u"&&(e.x-=t),typeof e.y<"u"&&(e.y-=n),e.relative=!0),e))}function gbe(e=!0,t=!0,n=!0){return Al((r,i,o,a,s)=>{if(isNaN(a)&&!(r.type<.MOVE_TO))throw new Error("path must start with moveto");return t&&r.type<.HORIZ_LINE_TO&&(r.type=lt.LINE_TO,r.y=r.relative?0:o),n&&r.type<.VERT_LINE_TO&&(r.type=lt.LINE_TO,r.x=r.relative?0:i),e&&r.type<.CLOSE_PATH&&(r.type=lt.LINE_TO,r.x=r.relative?a-i:a,r.y=r.relative?s-o:s),r.type<.ARC&&(r.rX===0||r.rY===0)&&(r.type=lt.LINE_TO,delete r.rX,delete r.rY,delete r.xRot,delete r.lArcFlag,delete r.sweepFlag),r})}function $G(){let e=NaN,t=NaN,n=NaN,r=NaN;return Al((i,o,a)=>(i.type<.SMOOTH_CURVE_TO&&(i.type=lt.CURVE_TO,e=isNaN(e)?o:e,t=isNaN(t)?a:t,i.x1=i.relative?o-e:2*o-e,i.y1=i.relative?a-t:2*a-t),i.type<.CURVE_TO?(e=i.relative?o+i.x2:i.x2,t=i.relative?a+i.y2:i.y2):(e=NaN,t=NaN),i.type<.SMOOTH_QUAD_TO&&(i.type=lt.QUAD_TO,n=isNaN(n)?o:n,r=isNaN(r)?a:r,i.x1=i.relative?o-n:2*o-n,i.y1=i.relative?a-r:2*a-r),i.type<.QUAD_TO?(n=i.relative?o+i.x1:i.x1,r=i.relative?a+i.y1:i.y1):(n=NaN,r=NaN),i))}function jG(){let e=NaN,t=NaN;return Al((n,r,i)=>{if(n.type<.SMOOTH_QUAD_TO&&(n.type=lt.QUAD_TO,e=isNaN(e)?r:e,t=isNaN(t)?i:t,n.x1=n.relative?r-e:2*r-e,n.y1=n.relative?i-t:2*i-t),n.type<.QUAD_TO){e=n.relative?r+n.x1:n.x1,t=n.relative?i+n.y1:n.y1;const o=n.x1,a=n.y1;n.type=lt.CURVE_TO,n.x1=((n.relative?0:r)+o*2)/3,n.y1=((n.relative?0:i)+a*2)/3,n.x2=(n.x+o*2)/3,n.y2=(n.y+a*2)/3}else e=NaN,t=NaN;return n})}function Al(e){let t=0,n=0,r=NaN,i=NaN;return function(a){if(isNaN(r)&&!(a.type<.MOVE_TO))throw new Error("path must start with moveto");const s=e(a,t,n,r,i);return a.type<.CLOSE_PATH&&(t=r,n=i),"x"in a&&typeof a.x<"u"&&(t=a.relative?t+a.x:a.x),"y"in a&&typeof a.y<"u"&&(n=a.relative?n+a.y:a.y),a.type<.MOVE_TO&&(r=t,i=n),s}}function mbe(e=0){yl(e);let t=NaN,n=NaN,r=NaN,i=NaN;return Al((o,a,s,l,u)=>{const c=Math.abs;let f=!1,d=0,h=0;if(o.type<.SMOOTH_CURVE_TO&&(d=isNaN(t)?0:a-t,h=isNaN(n)?0:s-n),o.type&(lt.CURVE_TO|lt.SMOOTH_CURVE_TO)?(t=o.relative?a+o.x2:o.x2,n=o.relative?s+o.y2:o.y2):(t=NaN,n=NaN),o.type<.SMOOTH_QUAD_TO?(r=isNaN(r)?a:2*a-r,i=isNaN(i)?s:2*s-i):o.type<.QUAD_TO?(r=o.relative?a+o.x1:o.x1,i=o.relative?s+o.y1:o.y2):(r=NaN,i=NaN),o.type<.LINE_COMMANDS||o.type<.ARC&&(o.rX===0||o.rY===0||!o.lArcFlag)||o.type<.CURVE_TO||o.type<.SMOOTH_CURVE_TO||o.type<.QUAD_TO||o.type<.SMOOTH_QUAD_TO){const p=typeof o.x>"u"?0:o.relative?o.x:o.x-a,v=typeof o.y>"u"?0:o.relative?o.y:o.y-s;d=isNaN(r)?typeof o.x1>"u"?d:o.relative?o.x:o.x1-a:r-a,h=isNaN(i)?typeof o.y1>"u"?h:o.relative?o.y:o.y1-s:i-s;const g=typeof o.x2>"u"?0:o.relative?o.x:o.x2-a,m=typeof o.y2>"u"?0:o.relative?o.y:o.y2-s;c(p)<=e&&c(v)<=e&&c(d)<=e&&c(h)<=e&&c(g)<=e&&c(m)<=e&&(f=!0)}return o.type<.CLOSE_PATH&&c(a-l)<=e&&c(s-u)<=e&&(f=!0),f?[]:o})}function fd(e,t,n,r,i,o){return yl(e,t,n,r,i,o),Al((a,s,l,u)=>{const c=a.x1,f=a.x2,d=a.relative&&!isNaN(u),h=typeof a.x<"u"?a.x:d?0:s,p=typeof a.y<"u"?a.y:d?0:l;a.type<.HORIZ_LINE_TO&&t!==0&&(a.type=lt.LINE_TO,a.y=a.relative?0:l),a.type<.VERT_LINE_TO&&n!==0&&(a.type=lt.LINE_TO,a.x=a.relative?0:s),typeof a.x<"u"&&(a.x=a.x*e+p*n+(d?0:i)),typeof a.y<"u"&&(a.y=h*t+a.y*r+(d?0:o)),typeof a.x1<"u"&&(a.x1=a.x1*e+a.y1*n+(d?0:i)),typeof a.y1<"u"&&(a.y1=c*t+a.y1*r+(d?0:o)),typeof a.x2<"u"&&(a.x2=a.x2*e+a.y2*n+(d?0:i)),typeof a.y2<"u"&&(a.y2=f*t+a.y2*r+(d?0:o));function v(m){return m*m}const g=e*r-t*n;if(typeof a.xRot<"u"&&(e!==1||t!==0||n!==0||r!==1))if(g===0)delete a.rX,delete a.rY,delete a.xRot,delete a.lArcFlag,delete a.sweepFlag,a.type=lt.LINE_TO;else{const m=a.xRot*Math.PI/180,y=Math.sin(m),R=Math.cos(m),A=1/v(a.rX),x=1/v(a.rY),S=v(R)*A+v(y)*x,L=2*y*R*(A-x),M=v(y)*A+v(R)*x,w=S*r*r-L*t*r+M*t*t,_=L*(e*r+t*n)-2*(S*n*r+M*e*t),C=S*n*n-L*e*n+M*e*e,O=(Math.atan2(_,w-C)+Math.PI)%Math.PI/2,N=Math.sin(O),P=Math.cos(O);a.rX=Math.abs(g)/Math.sqrt(w*v(P)+_*N*P+C*v(N)),a.rY=Math.abs(g)/Math.sqrt(w*v(N)-_*N*P+C*v(P)),a.xRot=O*180/Math.PI}return typeof a.sweepFlag<"u"&&0>g&&(a.sweepFlag=+!a.sweepFlag),a})}function ybe(e,t=0,n=0){yl(e,t,n);const r=Math.sin(e),i=Math.cos(e);return fd(i,r,-r,i,t-t*i+n*r,n-t*r-n*i)}function Abe(e,t=0){return yl(e,t),fd(1,0,0,1,e,t)}function Rbe(e,t=e){return yl(e,t),fd(e,0,0,t,0,0)}function bbe(e){return yl(e),fd(1,0,Math.atan(e),1,0,0)}function xbe(e){return yl(e),fd(1,Math.atan(e),0,1,0,0)}function Sbe(e=0){return yl(e),fd(-1,0,0,1,e,0)}function wbe(e=0){return yl(e),fd(1,0,0,-1,0,e)}function Mbe(){return Al((e,t,n)=>lt.ARC===e.type?hbe(e,e.relative?0:t,e.relative?0:n):e)}function Lbe(){return Al((e,t,n)=>(e.relative&&(t=0,n=0),lt.ARC===e.type&&Rk(e,t,n),e))}function qG(){return e=>({...e})}function Tbe(){const e=qG(),t=JG(),n=jG(),r=$G(),i=Al((o,a,s)=>{const l=r(n(t(e(o))));function u(f){f>i.maxX&&(i.maxX=f),fi.maxY&&(i.maxY=f),fh&&u(hX(a,l.x1,l.x2,l.x,h));const d=dX(s,l.y1,l.y2,l.y);for(const h of d)0h&&c(hX(s,l.y1,l.y2,l.y,h))}if(l.type<.ARC){u(l.x),c(l.y),Rk(l,a,s);const f=l.xRot/180*Math.PI,d=Math.cos(f)*l.rX,h=Math.sin(f)*l.rX,p=-Math.sin(f)*l.rY,v=Math.cos(f)*l.rY,[g,m]=l.phi1l.phi2?[l.phi2+360,l.phi1+360]:[l.phi2,l.phi1],y=([x,S])=>{const M=Math.atan2(S,x)*180/Math.PI;return Mg&&xg&&xe===" "||e===" "||e==="\r"||e===` -`,pX=e=>48<=e.charCodeAt(0)&&e.charCodeAt(0)<=57;class Obe extends ez{constructor(){super();Tr(this,"curNumber","");Tr(this,"curCommandType",-1);Tr(this,"curCommandRelative",!1);Tr(this,"canParseCommandOrComma",!0);Tr(this,"curNumberHasExp",!1);Tr(this,"curNumberHasExpDigits",!1);Tr(this,"curNumberHasDecimal",!1);Tr(this,"curArgs",[])}finish(n=[]){if(this.parse(" ",n),this.curArgs.length!==0||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return n}parse(n,r=[]){const i=o=>{r.push(o),this.curArgs.length=0,this.canParseCommandOrComma=!0};for(let o=0;ou)throw new SyntaxError(`Expected positive number, got "${u}" at index "${o}"`)}else if((this.curArgs.length===3||this.curArgs.length===4)&&this.curNumber!=="0"&&this.curNumber!=="1")throw new SyntaxError(`Expected a flag, got "${this.curNumber}" at index "${o}"`)}this.curArgs.push(u),this.curArgs.length===kbe[this.curCommandType]&&(lt.HORIZ_LINE_TO===this.curCommandType?i({type:lt.HORIZ_LINE_TO,relative:this.curCommandRelative,x:u}):lt.VERT_LINE_TO===this.curCommandType?i({type:lt.VERT_LINE_TO,relative:this.curCommandRelative,y:u}):this.curCommandType===lt.MOVE_TO||this.curCommandType===lt.LINE_TO||this.curCommandType===lt.SMOOTH_QUAD_TO?(i({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),lt.MOVE_TO===this.curCommandType&&(this.curCommandType=lt.LINE_TO)):this.curCommandType===lt.CURVE_TO?i({type:lt.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===lt.SMOOTH_CURVE_TO?i({type:lt.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===lt.QUAD_TO?i({type:lt.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===lt.ARC&&i({type:lt.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!_be(a)){if(a===","&&this.canParseCommandOrComma){this.canParseCommandOrComma=!1;continue}if(a==="+"||a==="-"||a==="."){this.curNumber=a,this.curNumberHasDecimal=a===".";continue}if(l){this.curNumber=a,this.curNumberHasDecimal=!1;continue}if(this.curArgs.length!==0)throw new SyntaxError(`Unterminated command at index ${o}.`);if(!this.canParseCommandOrComma)throw new SyntaxError(`Unexpected character "${a}" at index ${o}. Command cannot follow comma`);if(this.canParseCommandOrComma=!1,a==="z"||a==="Z"){r.push({type:lt.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1;continue}else if(a==="h"||a==="H")this.curCommandType=lt.HORIZ_LINE_TO,this.curCommandRelative=a==="h";else if(a==="v"||a==="V")this.curCommandType=lt.VERT_LINE_TO,this.curCommandRelative=a==="v";else if(a==="m"||a==="M")this.curCommandType=lt.MOVE_TO,this.curCommandRelative=a==="m";else if(a==="l"||a==="L")this.curCommandType=lt.LINE_TO,this.curCommandRelative=a==="l";else if(a==="c"||a==="C")this.curCommandType=lt.CURVE_TO,this.curCommandRelative=a==="c";else if(a==="s"||a==="S")this.curCommandType=lt.SMOOTH_CURVE_TO,this.curCommandRelative=a==="s";else if(a==="q"||a==="Q")this.curCommandType=lt.QUAD_TO,this.curCommandRelative=a==="q";else if(a==="t"||a==="T")this.curCommandType=lt.SMOOTH_QUAD_TO,this.curCommandRelative=a==="t";else if(a==="a"||a==="A")this.curCommandType=lt.ARC,this.curCommandRelative=a==="a";else throw new SyntaxError(`Unexpected character "${a}" at index ${o}.`)}}return r}transform(n){return Object.create(this,{parse:{value(i,o=[]){const a=Object.getPrototypeOf(this).parse.call(this,i);for(const s of a){const l=n(s);Array.isArray(l)?o.push(...l):o.push(l)}return o}}})}}const cr=class cr extends ez{constructor(n){super();Tr(this,"commands");typeof n=="string"?this.commands=cr.parse(n):this.commands=n}encode(){return cr.encode(this.commands)}getBounds(){const n=Si.CALCULATE_BOUNDS();return this.transform(n),n}transform(n){const r=[];for(const i of this.commands){const o=n(i);Array.isArray(o)?r.push(...o):r.push(o)}return this.commands=r,this}static encode(n){return fbe(n)}static parse(n){const r=new Obe,i=[];return r.parse(n,i),r.finish(i),i}};Tr(cr,"CLOSE_PATH",1),Tr(cr,"MOVE_TO",2),Tr(cr,"HORIZ_LINE_TO",4),Tr(cr,"VERT_LINE_TO",8),Tr(cr,"LINE_TO",16),Tr(cr,"CURVE_TO",32),Tr(cr,"SMOOTH_CURVE_TO",64),Tr(cr,"QUAD_TO",128),Tr(cr,"SMOOTH_QUAD_TO",256),Tr(cr,"ARC",512),Tr(cr,"LINE_COMMANDS",cr.LINE_TO|cr.HORIZ_LINE_TO|cr.VERT_LINE_TO),Tr(cr,"DRAWING_COMMANDS",cr.HORIZ_LINE_TO|cr.VERT_LINE_TO|cr.LINE_TO|cr.CURVE_TO|cr.SMOOTH_CURVE_TO|cr.QUAD_TO|cr.SMOOTH_QUAD_TO|cr.ARC);let lt=cr;const kbe={[lt.MOVE_TO]:2,[lt.LINE_TO]:2,[lt.HORIZ_LINE_TO]:1,[lt.VERT_LINE_TO]:1,[lt.CLOSE_PATH]:0,[lt.QUAD_TO]:4,[lt.SMOOTH_QUAD_TO]:2,[lt.CURVE_TO]:6,[lt.SMOOTH_CURVE_TO]:4,[lt.ARC]:7};var Pbe=function(){function e(t,n){var r=[],i=!0,o=!1,a=void 0;try{for(var s=t[Symbol.iterator](),l;!(i=(l=s.next()).done)&&(r.push(l.value),!(n&&r.length===n));i=!0);}catch(u){o=!0,a=u}finally{try{!i&&s.return&&s.return()}finally{if(o)throw a}}return r}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),um=Math.PI*2,M5=function(t,n,r,i,o,a,s){var l=t.x,u=t.y;l*=n,u*=r;var c=i*l-o*u,f=o*l+i*u;return{x:c+a,y:f+s}},Cbe=function(t,n){var r=n===1.5707963267948966?.551915024494:n===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(n/4),i=Math.cos(t),o=Math.sin(t),a=Math.cos(t+n),s=Math.sin(t+n);return[{x:i-o*r,y:o+i*r},{x:a+s*r,y:s-a*r},{x:a,y:s}]},vX=function(t,n,r,i){var o=t*i-n*r<0?-1:1,a=t*r+n*i;return a>1&&(a=1),a<-1&&(a=-1),o*Math.acos(a)},Ibe=function(t,n,r,i,o,a,s,l,u,c,f,d){var h=Math.pow(o,2),p=Math.pow(a,2),v=Math.pow(f,2),g=Math.pow(d,2),m=h*p-h*g-p*v;m<0&&(m=0),m/=h*g+p*v,m=Math.sqrt(m)*(s===l?-1:1);var y=m*o/a*d,R=m*-a/o*f,A=c*y-u*R+(t+r)/2,x=u*y+c*R+(n+i)/2,S=(f-y)/o,L=(d-R)/a,M=(-f-y)/o,w=(-d-R)/a,_=vX(1,0,S,L),C=vX(S,L,M,w);return l===0&&C>0&&(C-=um),l===1&&C<0&&(C+=um),[A,x,_,C]},Nbe=function(t){var n=t.px,r=t.py,i=t.cx,o=t.cy,a=t.rx,s=t.ry,l=t.xAxisRotation,u=l===void 0?0:l,c=t.largeArcFlag,f=c===void 0?0:c,d=t.sweepFlag,h=d===void 0?0:d,p=[];if(a===0||s===0)return[];var v=Math.sin(u*um/360),g=Math.cos(u*um/360),m=g*(n-i)/2+v*(r-o)/2,y=-v*(n-i)/2+g*(r-o)/2;if(m===0&&y===0)return[];a=Math.abs(a),s=Math.abs(s);var R=Math.pow(m,2)/Math.pow(a,2)+Math.pow(y,2)/Math.pow(s,2);R>1&&(a*=Math.sqrt(R),s*=Math.sqrt(R));var A=Ibe(n,r,i,o,a,s,f,h,v,g,m,y),x=Pbe(A,4),S=x[0],L=x[1],M=x[2],w=x[3],_=Math.abs(w)/(um/4);Math.abs(1-_)<1e-7&&(_=1);var C=Math.max(Math.ceil(_),1);w/=C;for(var O=0;O{const t=new lt(e),n=[];for(const r of t.commands){const i=Fbe[r.type];if((r.type===2||r.type===16)&&n.push({x:r.x,y:r.y,relative:r.relative,type:i}),r.type===32)n.push({x:r.x,y:r.y,curve:{type:"cubic",x1:r.x1,y1:r.y1,x2:r.x2,y2:r.y2},relative:r.relative,type:i});else if(r.type===128)n.push({x:r.x,y:r.y,curve:{type:"quadratic",x1:r.x1,y1:r.y1},relative:r.relative,type:i});else if(r.type===512){const o=n[n.length-1];if(!["M","L","Q","C"].includes(o.type))continue;const a=Nbe({px:o.x,py:o.y,cx:r.x,cy:r.y,rx:r.rX,ry:r.rY,xAxisRotation:r.xRot,largeArcFlag:r.lArcFlag,sweepFlag:r.sweepFlag});for(const s of a)n.push({x:s.x,y:s.y,curve:{type:"cubic",x1:s.x1,y1:s.y1,x2:s.x2,y2:s.y2},relative:!1,type:"C"})}else if(r.type===1)n.push({close:!0,type:i});else continue}return n},Ebe=e=>{try{const t=new lt(e),n=[],r=[];for(const i of t.commands){const o="x"in i?i.x:0,a="y"in i?i.y:0;n.push(o),r.push(a)}return{minX:Math.min(...n),minY:Math.min(...r),maxX:Math.max(...n),maxY:Math.max(...r)}}catch{return{minX:0,minY:0,maxX:0,maxY:0}}},mX=(e,t)=>e.replace(/font-size:\s*([\d.]+)pt/g,(n,r)=>`font-size: ${(parseFloat(r)*t).toFixed(1)}px`),Xbe=()=>{const e=st(),{theme:t}=Ve(st()),{addHistorySnapshot:n}=nn(),{addSlidesFromData:r}=H2(),{isEmptySlide:i}=Ac(),o=he(!1),a=(c,f=!1)=>{const d=c[0],h=new FileReader;h.addEventListener("load",()=>{try{const p=JSON.parse(BH(h.result));f?(e.updateSlideIndex(0),e.setSlides(p),n()):i.value?(e.setSlides(p),n()):r(p)}catch{pn.error("无法正确读取 / 解析该文件")}}),h.readAsText(d)},s=c=>{let f=[0,0],d=[0,0];!c.isFlipV&&!c.isFlipH?(f=[0,0],d=[c.width,c.height]):c.isFlipV&&c.isFlipH?(f=[c.width,c.height],d=[0,0]):c.isFlipV&&!c.isFlipH?(f=[0,c.height],d=[c.width,0]):(f=[c.width,0],d=[0,c.height]);const h={type:"line",id:Zt(10),width:c.borderWidth||1,left:c.left,top:c.top,start:f,end:d,style:c.borderType,color:c.borderColor,points:["",/straightConnector/.test(c.shapType)?"arrow":""]};return/bentConnector/.test(c.shapType)&&(h.broken2=[Math.abs(f[0]-d[0])/2,Math.abs(f[1]-d[1])/2]),h},l=(c,f,d,h,p,v,g)=>{const m=g*(Math.PI/180),y=c+d/2,R=f+h/2,A=p-d/2,x=v-h/2,S=A*Math.cos(m)+x*Math.sin(m),L=-A*Math.sin(m)+x*Math.cos(m),M=y+S,w=R+L;return{x:M,y:w}};return{importSpecificFile:a,importPPTXFile:(c,f=!1)=>{const d=c[0];if(!d)return;o.value=!0;const h=[];for(const v of tk)h.push(...v.children);const p=new FileReader;p.onload=async v=>{const g=await $Re(v.target.result),m=96/72,y=g.size.width;e.setViewportSize(y*m);const R=[];for(const A of g.slides){const{type:x,value:S}=A.fill;let L;x==="image"?L={type:"image",image:{src:S.picBase64,size:"cover"}}:x==="gradient"?L={type:"gradient",gradient:{type:"linear",colors:S.colors.map(_=>({..._,pos:parseInt(_.pos)})),rotate:S.rot}}:L={type:"solid",color:S};const M={id:Zt(10),elements:[],background:L,remark:A.note||""},w=_=>{var O,N;const C=_.sort((P,F)=>P.order-F.order);for(const P of C){const F=P.width||1,I=P.height||1,W=P.left,U=P.top;if(P.width=P.width*m,P.height=P.height*m,P.left=P.left*m,P.top=P.top*m,P.type==="text"){const Z={type:"text",id:Zt(10),width:P.width,height:P.height,left:P.left,top:P.top,rotate:P.rotate,defaultFontName:t.value.fontName,defaultColor:t.value.fontColor,content:mX(P.content,m),lineHeight:1,outline:{color:P.borderColor,width:P.borderWidth,style:P.borderType},fill:P.fill.type==="color"?P.fill.value:"",vertical:P.isVertical};P.shadow&&(Z.shadow={h:P.shadow.h*m,v:P.shadow.v*m,blur:P.shadow.blur*m,color:P.shadow.color}),M.elements.push(Z)}else if(P.type==="image")M.elements.push({type:"image",id:Zt(10),src:P.src,width:P.width,height:P.height,left:P.left,top:P.top,fixedRatio:!0,rotate:P.rotate,flipH:P.isFlipH,flipV:P.isFlipV});else if(P.type==="audio")M.elements.push({type:"audio",id:Zt(10),src:P.blob,width:P.width,height:P.height,left:P.left,top:P.top,rotate:0,fixedRatio:!1,color:t.value.themeColor,loop:!1,autoplay:!1});else if(P.type==="video")M.elements.push({type:"video",id:Zt(10),src:P.blob||P.src,width:P.width,height:P.height,left:P.left,top:P.top,rotate:0,autoplay:!1});else if(P.type==="shape")if(P.shapType==="line"||/Connector/.test(P.shapType)){const Z=s(P);M.elements.push(Z)}else{const Z=h.find(K=>K.pptxShapeType===P.shapType),ee={mid:"middle",down:"bottom",up:"top"},B=((O=P.fill)==null?void 0:O.type)==="gradient"?{type:"linear",colors:P.fill.value.colors.map(K=>({...K,pos:parseInt(K.pos)})),rotate:P.fill.value.rot}:void 0,Y=((N=P.fill)==null?void 0:N.type)==="color"?P.fill.value:"",Q={type:"shape",id:Zt(10),width:P.width,height:P.height,left:P.left,top:P.top,viewBox:[200,200],path:"M 0 0 L 200 0 L 200 200 L 0 200 Z",fill:Y||"none",gradient:B,fixedRatio:!1,rotate:P.rotate,outline:{color:P.borderColor,width:P.borderWidth,style:P.borderType},text:{content:mX(P.content,m),defaultFontName:t.value.fontName,defaultColor:t.value.fontColor,align:ee[P.vAlign]||"middle"},flipH:P.isFlipH,flipV:P.isFlipV};if(P.shadow&&(Q.shadow={h:P.shadow.h*m,v:P.shadow.v*m,blur:P.shadow.blur*m,color:P.shadow.color}),Z&&(Q.path=Z.path,Q.viewBox=Z.viewBox,Z.pathFormula)){Q.pathFormula=Z.pathFormula,Q.viewBox=[P.width,P.height];const K=f0[Z.pathFormula];"editable"in K&&K.editable?(Q.path=K.formula(P.width,P.height,K.defaultValue),Q.keypoints=K.defaultValue):Q.path=K.formula(P.width,P.height)}if(P.shapType==="custom")if(P.path.indexOf("NaN")!==-1)Q.path="";else{Q.special=!0,Q.path=P.path;const{maxX:K,maxY:te}=Ebe(Q.path);Q.viewBox=[K||F,te||I]}Q.path&&M.elements.push(Q)}else if(P.type==="table"){const Z=P.data.length,ee=P.data[0].length,B={fontname:t.value.fontName,color:t.value.fontColor},Y=[];for(let K=0;K`坐标${te+1}`),ee=["X","Y"],B=P.data;else{const K=P.data;Z=Object.values(K[0].xlabels),ee=K.map(te=>te.key),B=K.map(te=>te.values.map(J=>J.y))}const Y={};let Q="bar";switch(P.chartType){case"barChart":case"bar3DChart":Q="bar",P.barDir==="bar"&&(Q="column"),(P.grouping==="stacked"||P.grouping==="percentStacked")&&(Y.stack=!0);break;case"lineChart":case"line3DChart":(P.grouping==="stacked"||P.grouping==="percentStacked")&&(Y.stack=!0),Q="line";break;case"areaChart":case"area3DChart":(P.grouping==="stacked"||P.grouping==="percentStacked")&&(Y.stack=!0),Q="area";break;case"scatterChart":case"bubbleChart":Q="scatter";break;case"pieChart":case"pie3DChart":Q="pie";break;case"radarChart":Q="radar";break;case"doughnutChart":Q="ring";break}M.elements.push({type:"chart",id:Zt(10),chartType:Q,width:P.width,height:P.height,left:P.left,top:P.top,rotate:0,themeColors:P.colors.length?P.colors:[t.value.themeColor],textColor:t.value.fontColor,data:{labels:Z,legends:ee,series:B},options:Y})}else if(P.type==="group"){const Z=P.elements.map(ee=>{let B=ee.left+W,Y=ee.top+U;if(P.rotate){const{x:Q,y:K}=l(W,U,F,I,ee.left,ee.top,P.rotate);B=Q,Y=K}return{...ee,left:B,top:Y}});w(Z)}else if(P.type==="diagram"){const Z=P.elements.map(ee=>({...ee,left:ee.left+W,top:ee.top+U}));w(Z)}}};w([...A.elements,...A.layoutElements]),R.push(M)}f?(e.updateSlideIndex(0),e.setSlides(R),n()):i.value?(e.setSlides(R),n()):r(R),o.value=!1},p.readAsArrayBuffer(d)},exporting:o}},Wbe={class:"hotkey-doc"},Vbe={class:"title"},Dbe={class:"label"},Ube={class:"value"},Bbe={key:1,class:"row"},Ybe=We({__name:"HotkeyDoc",setup(e){return(t,n)=>(D(),q("div",Wbe,[(D(!0),q(Ee,null,qe(z(Jme),r=>(D(),q(Ee,{key:r.type},[V("div",Vbe,dt(r.type),1),(D(!0),q(Ee,null,qe(r.children,i=>(D(),q("div",{class:"hotkey-item",key:i.label},[i.value?(D(),q(Ee,{key:0},[V("div",Dbe,dt(i.label),1),V("div",Ube,dt(i.value),1)],64)):(D(),q("div",Bbe,dt(i.label),1))]))),128))],64))),128))]))}}),Zbe=Be(Ybe,[["__scopeId","data-v-42fbe598"]]),Qbe=["accept"],Hbe=We({__name:"FileInput",props:{accept:{default:"image/*"}},emits:["change"],setup(e,{emit:t}){const n=t,r=he(),i=()=>{r.value&&(r.value.value="",r.value.click())},o=a=>{const s=a.target.files;s&&n("change",s)};return(a,s)=>(D(),q("div",{class:"file-input",onClick:s[1]||(s[1]=l=>i())},[ar(a.$slots,"default",{},void 0,!0),V("input",{class:"input",type:"file",name:"upload",ref_key:"inputRef",ref:r,accept:a.accept,onChange:s[0]||(s[0]=l=>o(l))},null,40,Qbe)]))}}),qh=Be(Hbe,[["__scopeId","data-v-1bd53d05"]]),Kbe=e=>(rn("data-v-cb40f98b"),e=e(),on(),e),Gbe={class:"spin"},zbe=Kbe(()=>V("div",{class:"spinner"},null,-1)),Jbe={class:"text"},$be=We({__name:"FullscreenSpin",props:{loading:{type:Boolean,default:!1},mask:{type:Boolean,default:!0},tip:{default:""}},setup(e){return(t,n)=>t.loading?(D(),q("div",{key:0,class:ze(["fullscreen-spin",{mask:t.mask}])},[V("div",Gbe,[zbe,V("div",Jbe,dt(t.tip),1)])],2)):Ye("",!0)}}),ty=Be($be,[["__scopeId","data-v-cb40f98b"]]),jbe={class:"header"},qbe=We({__name:"Drawer",props:{visible:{type:Boolean},width:{default:320},contentStyle:{},placement:{default:"right"}},emits:["update:visible"],setup(e,{emit:t}){const n=e,r=t,i=he(!1),o=Se(()=>({width:n.width+"px",...n.contentStyle||{}}));return(a,s)=>{const l=xe("IconClose");return D(),Oe(bO,{to:"body"},[k(Qh,{name:`drawer-slide-${a.placement}`,onAfterLeave:s[1]||(s[1]=u=>i.value=!1),onBeforeEnter:s[2]||(s[2]=u=>i.value=!0)},{default:ie(()=>[Ge(V("div",{class:ze(["drawer",a.placement]),style:Le({width:n.width+"px"})},[V("div",jbe,[ar(a.$slots,"title",{},void 0,!0),V("span",{class:"close-btn",onClick:s[0]||(s[0]=u=>r("update:visible",!1))},[k(l)])]),i.value?(D(),q("div",{key:0,class:"content",style:Le(o.value)},[ar(a.$slots,"default",{},void 0,!0)],4)):Ye("",!0)],6),[[hc,a.visible]])]),_:3},8,["name"])])}}}),exe=Be(qbe,[["__scopeId","data-v-46f39759"]]),txe={class:"prefix"},nxe=["disabled","value","placeholder","maxlength"],rxe={class:"suffix"},ixe=We({__name:"Input",props:{value:{},disabled:{type:Boolean,default:!1},placeholder:{default:""},simple:{type:Boolean,default:!1},maxlength:{}},emits:["update:value","input","change","blur","focus","enter","backspace"],setup(e,{expose:t,emit:n}){const r=n,i=he(!1),o=c=>{r("update:value",c.target.value)},a=c=>{i.value=!1,r("blur",c)},s=c=>{i.value=!0,r("focus",c)},l=he();return t({focus:()=>{l.value&&l.value.focus()}}),(c,f)=>(D(),q("div",{class:ze(["input",{disabled:c.disabled,focused:i.value,simple:c.simple}])},[V("span",txe,[ar(c.$slots,"prefix",{},void 0,!0)]),V("input",{type:"text",ref_key:"inputRef",ref:l,disabled:c.disabled,value:c.value,placeholder:c.placeholder,maxlength:c.maxlength,onInput:f[0]||(f[0]=d=>o(d)),onFocus:f[1]||(f[1]=d=>s(d)),onBlur:f[2]||(f[2]=d=>a(d)),onChange:f[3]||(f[3]=d=>r("change",d)),onKeydown:[f[4]||(f[4]=hl(d=>r("enter",d),["enter"])),f[5]||(f[5]=hl(d=>r("backspace",d),["backspace"]))]},null,40,nxe),V("span",rxe,[ar(c.$slots,"suffix",{},void 0,!0)])],2))}}),pu=Be(ixe,[["__scopeId","data-v-cc7e5c91"]]);var aa="top",Os="bottom",ks="right",sa="left",bk="auto",ny=[aa,Os,ks,sa],Lv="start",n2="end",oxe="clippingParents",tz="viewport",I1="popper",axe="reference",yX=ny.reduce(function(e,t){return e.concat([t+"-"+Lv,t+"-"+n2])},[]),nz=[].concat(ny,[bk]).reduce(function(e,t){return e.concat([t,t+"-"+Lv,t+"-"+n2])},[]),sxe="beforeRead",lxe="read",uxe="afterRead",cxe="beforeMain",fxe="main",dxe="afterMain",hxe="beforeWrite",pxe="write",vxe="afterWrite",gxe=[sxe,lxe,uxe,cxe,fxe,dxe,hxe,pxe,vxe];function vu(e){return e?(e.nodeName||"").toLowerCase():null}function Qa(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function e0(e){var t=Qa(e).Element;return e instanceof t||e instanceof Element}function ws(e){var t=Qa(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function xk(e){if(typeof ShadowRoot>"u")return!1;var t=Qa(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function mxe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!ws(o)||!vu(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function yxe(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,u){return l[u]="",l},{});!ws(i)||!vu(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const rz={name:"applyStyles",enabled:!0,phase:"write",fn:mxe,effect:yxe,requires:["computeStyles"]};function lu(e){return e.split("-")[0]}var Nh=Math.max,Fx=Math.min,Tv=Math.round;function f6(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function iz(){return!/^((?!chrome|android).)*safari/i.test(f6())}function _v(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&ws(e)&&(i=e.offsetWidth>0&&Tv(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Tv(r.height)/e.offsetHeight||1);var a=e0(e)?Qa(e):window,s=a.visualViewport,l=!iz()&&n,u=(r.left+(l&&s?s.offsetLeft:0))/i,c=(r.top+(l&&s?s.offsetTop:0))/o,f=r.width/i,d=r.height/o;return{width:f,height:d,top:c,right:u+f,bottom:c+d,left:u,x:u,y:c}}function Sk(e){var t=_v(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function oz(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&xk(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function vc(e){return Qa(e).getComputedStyle(e)}function Axe(e){return["table","td","th"].indexOf(vu(e))>=0}function dd(e){return((e0(e)?e.ownerDocument:e.document)||window.document).documentElement}function p3(e){return vu(e)==="html"?e:e.assignedSlot||e.parentNode||(xk(e)?e.host:null)||dd(e)}function AX(e){return!ws(e)||vc(e).position==="fixed"?null:e.offsetParent}function Rxe(e){var t=/firefox/i.test(f6()),n=/Trident/i.test(f6());if(n&&ws(e)){var r=vc(e);if(r.position==="fixed")return null}var i=p3(e);for(xk(i)&&(i=i.host);ws(i)&&["html","body"].indexOf(vu(i))<0;){var o=vc(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function ry(e){for(var t=Qa(e),n=AX(e);n&&Axe(n)&&vc(n).position==="static";)n=AX(n);return n&&(vu(n)==="html"||vu(n)==="body"&&vc(n).position==="static")?t:n||Rxe(e)||t}function wk(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function cm(e,t,n){return Nh(e,Fx(t,n))}function bxe(e,t,n){var r=cm(e,t,n);return r>n?n:r}function az(){return{top:0,right:0,bottom:0,left:0}}function sz(e){return Object.assign({},az(),e)}function lz(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var xxe=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,sz(typeof t!="number"?t:lz(t,ny))};function Sxe(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=lu(n.placement),l=wk(s),u=[sa,ks].indexOf(s)>=0,c=u?"height":"width";if(!(!o||!a)){var f=xxe(i.padding,n),d=Sk(o),h=l==="y"?aa:sa,p=l==="y"?Os:ks,v=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],g=a[l]-n.rects.reference[l],m=ry(o),y=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,R=v/2-g/2,A=f[h],x=y-d[c]-f[p],S=y/2-d[c]/2+R,L=cm(A,S,x),M=l;n.modifiersData[r]=(t={},t[M]=L,t.centerOffset=L-S,t)}}function wxe(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||oz(t.elements.popper,i)&&(t.elements.arrow=i))}const Mxe={name:"arrow",enabled:!0,phase:"main",fn:Sxe,effect:wxe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ov(e){return e.split("-")[1]}var Lxe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Txe(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Tv(n*i)/i||0,y:Tv(r*i)/i||0}}function RX(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,f=e.isFixed,d=a.x,h=d===void 0?0:d,p=a.y,v=p===void 0?0:p,g=typeof c=="function"?c({x:h,y:v}):{x:h,y:v};h=g.x,v=g.y;var m=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),R=sa,A=aa,x=window;if(u){var S=ry(n),L="clientHeight",M="clientWidth";if(S===Qa(n)&&(S=dd(n),vc(S).position!=="static"&&s==="absolute"&&(L="scrollHeight",M="scrollWidth")),S=S,i===aa||(i===sa||i===ks)&&o===n2){A=Os;var w=f&&S===x&&x.visualViewport?x.visualViewport.height:S[L];v-=w-r.height,v*=l?1:-1}if(i===sa||(i===aa||i===Os)&&o===n2){R=ks;var _=f&&S===x&&x.visualViewport?x.visualViewport.width:S[M];h-=_-r.width,h*=l?1:-1}}var C=Object.assign({position:s},u&&Lxe),O=c===!0?Txe({x:h,y:v},Qa(n)):{x:h,y:v};if(h=O.x,v=O.y,l){var N;return Object.assign({},C,(N={},N[A]=y?"0":"",N[R]=m?"0":"",N.transform=(x.devicePixelRatio||1)<=1?"translate("+h+"px, "+v+"px)":"translate3d("+h+"px, "+v+"px, 0)",N))}return Object.assign({},C,(t={},t[A]=y?v+"px":"",t[R]=m?h+"px":"",t.transform="",t))}function _xe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:lu(t.placement),variation:Ov(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,RX(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,RX(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Oxe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:_xe,data:{}};var ZA={passive:!0};function kxe(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,l=Qa(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(c){c.addEventListener("scroll",n.update,ZA)}),s&&l.addEventListener("resize",n.update,ZA),function(){o&&u.forEach(function(c){c.removeEventListener("scroll",n.update,ZA)}),s&&l.removeEventListener("resize",n.update,ZA)}}const Pxe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:kxe,data:{}};var Cxe={left:"right",right:"left",bottom:"top",top:"bottom"};function yb(e){return e.replace(/left|right|bottom|top/g,function(t){return Cxe[t]})}var Ixe={start:"end",end:"start"};function bX(e){return e.replace(/start|end/g,function(t){return Ixe[t]})}function Mk(e){var t=Qa(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Lk(e){return _v(dd(e)).left+Mk(e).scrollLeft}function Nxe(e,t){var n=Qa(e),r=dd(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var u=iz();(u||!u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+Lk(e),y:l}}function Fxe(e){var t,n=dd(e),r=Mk(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Nh(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Nh(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+Lk(e),l=-r.scrollTop;return vc(i||n).direction==="rtl"&&(s+=Nh(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function Tk(e){var t=vc(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function uz(e){return["html","body","#document"].indexOf(vu(e))>=0?e.ownerDocument.body:ws(e)&&Tk(e)?e:uz(p3(e))}function fm(e,t){var n;t===void 0&&(t=[]);var r=uz(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Qa(r),a=i?[o].concat(o.visualViewport||[],Tk(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(fm(p3(a)))}function d6(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Exe(e,t){var n=_v(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function xX(e,t,n){return t===tz?d6(Nxe(e,n)):e0(t)?Exe(t,n):d6(Fxe(dd(e)))}function Xxe(e){var t=fm(p3(e)),n=["absolute","fixed"].indexOf(vc(e).position)>=0,r=n&&ws(e)?ry(e):e;return e0(r)?t.filter(function(i){return e0(i)&&oz(i,r)&&vu(i)!=="body"}):[]}function Wxe(e,t,n,r){var i=t==="clippingParents"?Xxe(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,u){var c=xX(e,u,r);return l.top=Nh(c.top,l.top),l.right=Fx(c.right,l.right),l.bottom=Fx(c.bottom,l.bottom),l.left=Nh(c.left,l.left),l},xX(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function cz(e){var t=e.reference,n=e.element,r=e.placement,i=r?lu(r):null,o=r?Ov(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case aa:l={x:a,y:t.y-n.height};break;case Os:l={x:a,y:t.y+t.height};break;case ks:l={x:t.x+t.width,y:s};break;case sa:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=i?wk(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(o){case Lv:l[u]=l[u]-(t[c]/2-n[c]/2);break;case n2:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function r2(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,s=n.boundary,l=s===void 0?oxe:s,u=n.rootBoundary,c=u===void 0?tz:u,f=n.elementContext,d=f===void 0?I1:f,h=n.altBoundary,p=h===void 0?!1:h,v=n.padding,g=v===void 0?0:v,m=sz(typeof g!="number"?g:lz(g,ny)),y=d===I1?axe:I1,R=e.rects.popper,A=e.elements[p?y:d],x=Wxe(e0(A)?A:A.contextElement||dd(e.elements.popper),l,c,a),S=_v(e.elements.reference),L=cz({reference:S,element:R,strategy:"absolute",placement:i}),M=d6(Object.assign({},R,L)),w=d===I1?M:S,_={top:x.top-w.top+m.top,bottom:w.bottom-x.bottom+m.bottom,left:x.left-w.left+m.left,right:w.right-x.right+m.right},C=e.modifiersData.offset;if(d===I1&&C){var O=C[i];Object.keys(_).forEach(function(N){var P=[ks,Os].indexOf(N)>=0?1:-1,F=[aa,Os].indexOf(N)>=0?"y":"x";_[N]+=O[F]*P})}return _}function Vxe(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?nz:l,c=Ov(r),f=c?s?yX:yX.filter(function(p){return Ov(p)===c}):ny,d=f.filter(function(p){return u.indexOf(p)>=0});d.length===0&&(d=f);var h=d.reduce(function(p,v){return p[v]=r2(e,{placement:v,boundary:i,rootBoundary:o,padding:a})[lu(v)],p},{});return Object.keys(h).sort(function(p,v){return h[p]-h[v]})}function Dxe(e){if(lu(e)===bk)return[];var t=yb(e);return[bX(e),t,bX(t)]}function Uxe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,h=n.flipVariations,p=h===void 0?!0:h,v=n.allowedAutoPlacements,g=t.options.placement,m=lu(g),y=m===g,R=l||(y||!p?[yb(g)]:Dxe(g)),A=[g].concat(R).reduce(function(K,te){return K.concat(lu(te)===bk?Vxe(t,{placement:te,boundary:c,rootBoundary:f,padding:u,flipVariations:p,allowedAutoPlacements:v}):te)},[]),x=t.rects.reference,S=t.rects.popper,L=new Map,M=!0,w=A[0],_=0;_=0,F=P?"width":"height",I=r2(t,{placement:C,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),W=P?N?ks:sa:N?Os:aa;x[F]>S[F]&&(W=yb(W));var U=yb(W),Z=[];if(o&&Z.push(I[O]<=0),s&&Z.push(I[W]<=0,I[U]<=0),Z.every(function(K){return K})){w=C,M=!1;break}L.set(C,Z)}if(M)for(var ee=p?3:1,B=function(te){var J=A.find(function(de){var G=L.get(de);if(G)return G.slice(0,te).every(function(Ae){return Ae})});if(J)return w=J,"break"},Y=ee;Y>0;Y--){var Q=B(Y);if(Q==="break")break}t.placement!==w&&(t.modifiersData[r]._skip=!0,t.placement=w,t.reset=!0)}}const Bxe={name:"flip",enabled:!0,phase:"main",fn:Uxe,requiresIfExists:["offset"],data:{_skip:!1}};function SX(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function wX(e){return[aa,ks,Os,sa].some(function(t){return e[t]>=0})}function Yxe(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=r2(t,{elementContext:"reference"}),s=r2(t,{altBoundary:!0}),l=SX(a,r),u=SX(s,i,o),c=wX(l),f=wX(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const Zxe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Yxe};function Qxe(e,t,n){var r=lu(e),i=[sa,aa].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[sa,ks].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function Hxe(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=nz.reduce(function(c,f){return c[f]=Qxe(f,t.rects,o),c},{}),s=a[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const Kxe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Hxe};function Gxe(e){var t=e.state,n=e.name;t.modifiersData[n]=cz({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const zxe={name:"popperOffsets",enabled:!0,phase:"read",fn:Gxe,data:{}};function Jxe(e){return e==="x"?"y":"x"}function $xe(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,d=n.tether,h=d===void 0?!0:d,p=n.tetherOffset,v=p===void 0?0:p,g=r2(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),m=lu(t.placement),y=Ov(t.placement),R=!y,A=wk(m),x=Jxe(A),S=t.modifiersData.popperOffsets,L=t.rects.reference,M=t.rects.popper,w=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,_=typeof w=="number"?{mainAxis:w,altAxis:w}:Object.assign({mainAxis:0,altAxis:0},w),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(S){if(o){var N,P=A==="y"?aa:sa,F=A==="y"?Os:ks,I=A==="y"?"height":"width",W=S[A],U=W+g[P],Z=W-g[F],ee=h?-M[I]/2:0,B=y===Lv?L[I]:M[I],Y=y===Lv?-M[I]:-L[I],Q=t.elements.arrow,K=h&&Q?Sk(Q):{width:0,height:0},te=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:az(),J=te[P],de=te[F],G=cm(0,L[I],K[I]),Ae=R?L[I]/2-ee-G-J-_.mainAxis:B-G-J-_.mainAxis,ue=R?-L[I]/2+ee+G+de+_.mainAxis:Y+G+de+_.mainAxis,ce=t.elements.arrow&&ry(t.elements.arrow),le=ce?A==="y"?ce.clientTop||0:ce.clientLeft||0:0,$=(N=C==null?void 0:C[A])!=null?N:0,X=W+Ae-$-le,j=W+ue-$,se=cm(h?Fx(U,X):U,W,h?Nh(Z,j):Z);S[A]=se,O[A]=se-W}if(s){var ne,re=A==="x"?aa:sa,ae=A==="x"?Os:ks,ve=S[x],fe=x==="y"?"height":"width",ge=ve+g[re],Re=ve-g[ae],Xe=[aa,sa].indexOf(m)!==-1,Ne=(ne=C==null?void 0:C[x])!=null?ne:0,Ke=Xe?ge:ve-L[fe]-M[fe]-Ne+_.altAxis,De=Xe?ve+L[fe]+M[fe]-Ne-_.altAxis:Re,Te=h&&Xe?bxe(Ke,ve,De):cm(h?Ke:ge,ve,h?De:Re);S[x]=Te,O[x]=Te-ve}t.modifiersData[r]=O}}const jxe={name:"preventOverflow",enabled:!0,phase:"main",fn:$xe,requiresIfExists:["offset"]};function qxe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function eSe(e){return e===Qa(e)||!ws(e)?Mk(e):qxe(e)}function tSe(e){var t=e.getBoundingClientRect(),n=Tv(t.width)/e.offsetWidth||1,r=Tv(t.height)/e.offsetHeight||1;return n!==1||r!==1}function nSe(e,t,n){n===void 0&&(n=!1);var r=ws(t),i=ws(t)&&tSe(t),o=dd(t),a=_v(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((vu(t)!=="body"||Tk(o))&&(s=eSe(t)),ws(t)?(l=_v(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=Lk(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function rSe(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function iSe(e){var t=rSe(e);return gxe.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function oSe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function aSe(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var MX={placement:"bottom",modifiers:[],strategy:"absolute"};function LX(){for(var e=arguments.length,t=new Array(e),n=0;n-1}function vz(e,t){return typeof e=="function"?e.apply(void 0,t):e}function TX(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function dSe(e){return e.split(/\s+/).filter(Boolean)}function bp(e){return[].concat(e)}function _X(e,t){e.indexOf(t)===-1&&e.push(t)}function hSe(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function pSe(e){return e.split("-")[0]}function Ex(e){return[].slice.call(e)}function OX(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function dm(){return document.createElement("div")}function v3(e){return["Element","Fragment"].some(function(t){return _k(e,t)})}function vSe(e){return _k(e,"NodeList")}function gSe(e){return _k(e,"MouseEvent")}function mSe(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function ySe(e){return v3(e)?[e]:vSe(e)?Ex(e):Array.isArray(e)?e:Ex(document.querySelectorAll(e))}function T5(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function kX(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function ASe(e){var t,n=bp(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function RSe(e,t){var n=t.clientX,r=t.clientY;return e.every(function(i){var o=i.popperRect,a=i.popperState,s=i.props,l=s.interactiveBorder,u=pSe(a.placement),c=a.modifiersData.offset;if(!c)return!0;var f=u==="bottom"?c.top.y:0,d=u==="top"?c.bottom.y:0,h=u==="right"?c.left.x:0,p=u==="left"?c.right.x:0,v=o.top-r+f>l,g=r-o.bottom-d>l,m=o.left-n+h>l,y=n-o.right-p>l;return v||g||m||y})}function _5(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){e[r](i,n)})}function PX(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var Hl={isTouch:!1},CX=0;function bSe(){Hl.isTouch||(Hl.isTouch=!0,window.performance&&document.addEventListener("mousemove",gz))}function gz(){var e=performance.now();e-CX<20&&(Hl.isTouch=!1,document.removeEventListener("mousemove",gz)),CX=e}function xSe(){var e=document.activeElement;if(mSe(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function SSe(){document.addEventListener("touchstart",bSe,oh),window.addEventListener("blur",xSe)}var wSe=typeof window<"u"&&typeof document<"u",MSe=wSe?!!window.msCrypto:!1,LSe={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},TSe={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},cl=Object.assign({appendTo:pz,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},LSe,TSe),_Se=Object.keys(cl),OSe=function(t){var n=Object.keys(t);n.forEach(function(r){cl[r]=t[r]})};function mz(e){var t=e.plugins||[],n=t.reduce(function(r,i){var o=i.name,a=i.defaultValue;if(o){var s;r[o]=e[o]!==void 0?e[o]:(s=cl[o])!=null?s:a}return r},{});return Object.assign({},e,n)}function kSe(e,t){var n=t?Object.keys(mz(Object.assign({},cl,{plugins:t}))):_Se,r=n.reduce(function(i,o){var a=(e.getAttribute("data-tippy-"+o)||"").trim();if(!a)return i;if(o==="content")i[o]=a;else try{i[o]=JSON.parse(a)}catch{i[o]=a}return i},{});return r}function IX(e,t){var n=Object.assign({},t,{content:vz(t.content,[e])},t.ignoreAttributes?{}:kSe(e,t.plugins));return n.aria=Object.assign({},cl.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?t.interactive:n.aria.expanded,content:n.aria.content==="auto"?t.interactive?null:"describedby":n.aria.content},n}var PSe=function(){return"innerHTML"};function h6(e,t){e[PSe()]=t}function NX(e){var t=dm();return e===!0?t.className=dz:(t.className=hz,v3(e)?t.appendChild(e):h6(t,e)),t}function FX(e,t){v3(t.content)?(h6(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?h6(e,t.content):e.textContent=t.content)}function p6(e){var t=e.firstElementChild,n=Ex(t.children);return{box:t,content:n.find(function(r){return r.classList.contains(fz)}),arrow:n.find(function(r){return r.classList.contains(dz)||r.classList.contains(hz)}),backdrop:n.find(function(r){return r.classList.contains(fSe)})}}function yz(e){var t=dm(),n=dm();n.className=cSe,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=dm();r.className=fz,r.setAttribute("data-state","hidden"),FX(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props);function i(o,a){var s=p6(t),l=s.box,u=s.content,c=s.arrow;a.theme?l.setAttribute("data-theme",a.theme):l.removeAttribute("data-theme"),typeof a.animation=="string"?l.setAttribute("data-animation",a.animation):l.removeAttribute("data-animation"),a.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth=typeof a.maxWidth=="number"?a.maxWidth+"px":a.maxWidth,a.role?l.setAttribute("role",a.role):l.removeAttribute("role"),(o.content!==a.content||o.allowHTML!==a.allowHTML)&&FX(u,e.props),a.arrow?c?o.arrow!==a.arrow&&(l.removeChild(c),l.appendChild(NX(a.arrow))):l.appendChild(NX(a.arrow)):c&&l.removeChild(c)}return{popper:t,onUpdate:i}}yz.$$tippy=!0;var CSe=1,QA=[],O5=[];function ISe(e,t){var n=IX(e,Object.assign({},cl,mz(OX(t)))),r,i,o,a=!1,s=!1,l=!1,u=!1,c,f,d,h=[],p=TX(X,n.interactiveDebounce),v,g=CSe++,m=null,y=hSe(n.plugins),R={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},A={id:g,reference:e,popper:dm(),popperInstance:m,props:n,state:R,plugins:y,clearDelayTimeouts:Ke,setProps:De,setContent:Te,show:ye,hide:Me,hideWithInteractivity:Ie,enable:Xe,disable:Ne,unmount:Qe,destroy:ct};if(!n.render)return A;var x=n.render(A),S=x.popper,L=x.onUpdate;S.setAttribute("data-tippy-root",""),S.id="tippy-"+A.id,A.popper=S,e._tippy=A,S._tippy=A;var M=y.map(function(Pe){return Pe.fn(A)}),w=e.hasAttribute("aria-expanded");return ce(),ee(),W(),U("onCreate",[A]),n.showOnCreate&&ge(),S.addEventListener("mouseenter",function(){A.props.interactive&&A.state.isVisible&&A.clearDelayTimeouts()}),S.addEventListener("mouseleave",function(){A.props.interactive&&A.props.trigger.indexOf("mouseenter")>=0&&P().addEventListener("mousemove",p)}),A;function _(){var Pe=A.props.touch;return Array.isArray(Pe)?Pe:[Pe,0]}function C(){return _()[0]==="hold"}function O(){var Pe;return!!((Pe=A.props.render)!=null&&Pe.$$tippy)}function N(){return v||e}function P(){var Pe=N().parentNode;return Pe?ASe(Pe):document}function F(){return p6(S)}function I(Pe){return A.state.isMounted&&!A.state.isVisible||Hl.isTouch||c&&c.type==="focus"?0:L5(A.props.delay,Pe?0:1,cl.delay)}function W(Pe){Pe===void 0&&(Pe=!1),S.style.pointerEvents=A.props.interactive&&!Pe?"":"none",S.style.zIndex=""+A.props.zIndex}function U(Pe,tt,it){if(it===void 0&&(it=!0),M.forEach(function(ht){ht[Pe]&&ht[Pe].apply(ht,tt)}),it){var St;(St=A.props)[Pe].apply(St,tt)}}function Z(){var Pe=A.props.aria;if(Pe.content){var tt="aria-"+Pe.content,it=S.id,St=bp(A.props.triggerTarget||e);St.forEach(function(ht){var gt=ht.getAttribute(tt);if(A.state.isVisible)ht.setAttribute(tt,gt?gt+" "+it:it);else{var wt=gt&>.replace(it,"").trim();wt?ht.setAttribute(tt,wt):ht.removeAttribute(tt)}})}}function ee(){if(!(w||!A.props.aria.expanded)){var Pe=bp(A.props.triggerTarget||e);Pe.forEach(function(tt){A.props.interactive?tt.setAttribute("aria-expanded",A.state.isVisible&&tt===N()?"true":"false"):tt.removeAttribute("aria-expanded")})}}function B(){P().removeEventListener("mousemove",p),QA=QA.filter(function(Pe){return Pe!==p})}function Y(Pe){if(!(Hl.isTouch&&(l||Pe.type==="mousedown"))){var tt=Pe.composedPath&&Pe.composedPath()[0]||Pe.target;if(!(A.props.interactive&&PX(S,tt))){if(bp(A.props.triggerTarget||e).some(function(it){return PX(it,tt)})){if(Hl.isTouch||A.state.isVisible&&A.props.trigger.indexOf("click")>=0)return}else U("onClickOutside",[A,Pe]);A.props.hideOnClick===!0&&(A.clearDelayTimeouts(),A.hide(),s=!0,setTimeout(function(){s=!1}),A.state.isMounted||J())}}}function Q(){l=!0}function K(){l=!1}function te(){var Pe=P();Pe.addEventListener("mousedown",Y,!0),Pe.addEventListener("touchend",Y,oh),Pe.addEventListener("touchstart",K,oh),Pe.addEventListener("touchmove",Q,oh)}function J(){var Pe=P();Pe.removeEventListener("mousedown",Y,!0),Pe.removeEventListener("touchend",Y,oh),Pe.removeEventListener("touchstart",K,oh),Pe.removeEventListener("touchmove",Q,oh)}function de(Pe,tt){Ae(Pe,function(){!A.state.isVisible&&S.parentNode&&S.parentNode.contains(S)&&tt()})}function G(Pe,tt){Ae(Pe,tt)}function Ae(Pe,tt){var it=F().box;function St(ht){ht.target===it&&(_5(it,"remove",St),tt())}if(Pe===0)return tt();_5(it,"remove",f),_5(it,"add",St),f=St}function ue(Pe,tt,it){it===void 0&&(it=!1);var St=bp(A.props.triggerTarget||e);St.forEach(function(ht){ht.addEventListener(Pe,tt,it),h.push({node:ht,eventType:Pe,handler:tt,options:it})})}function ce(){C()&&(ue("touchstart",$,{passive:!0}),ue("touchend",j,{passive:!0})),dSe(A.props.trigger).forEach(function(Pe){if(Pe!=="manual")switch(ue(Pe,$),Pe){case"mouseenter":ue("mouseleave",j);break;case"focus":ue(MSe?"focusout":"blur",se);break;case"focusin":ue("focusout",se);break}})}function le(){h.forEach(function(Pe){var tt=Pe.node,it=Pe.eventType,St=Pe.handler,ht=Pe.options;tt.removeEventListener(it,St,ht)}),h=[]}function $(Pe){var tt,it=!1;if(!(!A.state.isEnabled||ne(Pe)||s)){var St=((tt=c)==null?void 0:tt.type)==="focus";c=Pe,v=Pe.currentTarget,ee(),!A.state.isVisible&&gSe(Pe)&&QA.forEach(function(ht){return ht(Pe)}),Pe.type==="click"&&(A.props.trigger.indexOf("mouseenter")<0||a)&&A.props.hideOnClick!==!1&&A.state.isVisible?it=!0:ge(Pe),Pe.type==="click"&&(a=!it),it&&!St&&Re(Pe)}}function X(Pe){var tt=Pe.target,it=N().contains(tt)||S.contains(tt);if(!(Pe.type==="mousemove"&&it)){var St=fe().concat(S).map(function(ht){var gt,wt=ht._tippy,Ut=(gt=wt.popperInstance)==null?void 0:gt.state;return Ut?{popperRect:ht.getBoundingClientRect(),popperState:Ut,props:n}:null}).filter(Boolean);RSe(St,Pe)&&(B(),Re(Pe))}}function j(Pe){var tt=ne(Pe)||A.props.trigger.indexOf("click")>=0&&a;if(!tt){if(A.props.interactive){A.hideWithInteractivity(Pe);return}Re(Pe)}}function se(Pe){A.props.trigger.indexOf("focusin")<0&&Pe.target!==N()||A.props.interactive&&Pe.relatedTarget&&S.contains(Pe.relatedTarget)||Re(Pe)}function ne(Pe){return Hl.isTouch?C()!==Pe.type.indexOf("touch")>=0:!1}function re(){ae();var Pe=A.props,tt=Pe.popperOptions,it=Pe.placement,St=Pe.offset,ht=Pe.getReferenceClientRect,gt=Pe.moveTransition,wt=O()?p6(S).arrow:null,Ut=ht?{getBoundingClientRect:ht,contextElement:ht.contextElement||N()}:e,$t={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(wl){var $i=wl.state;if(O()){var R0=F(),md=R0.box;["placement","reference-hidden","escaped"].forEach(function(Lu){Lu==="placement"?md.setAttribute("data-placement",$i.placement):$i.attributes.popper["data-popper-"+Lu]?md.setAttribute("data-"+Lu,""):md.removeAttribute("data-"+Lu)}),$i.attributes.popper={}}}},Hn=[{name:"offset",options:{offset:St}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!gt}},$t];O()&&wt&&Hn.push({name:"arrow",options:{element:wt,padding:3}}),Hn.push.apply(Hn,(tt==null?void 0:tt.modifiers)||[]),A.popperInstance=uSe(Ut,S,Object.assign({},tt,{placement:it,onFirstUpdate:d,modifiers:Hn}))}function ae(){A.popperInstance&&(A.popperInstance.destroy(),A.popperInstance=null)}function ve(){var Pe=A.props.appendTo,tt,it=N();A.props.interactive&&Pe===pz||Pe==="parent"?tt=it.parentNode:tt=vz(Pe,[it]),tt.contains(S)||tt.appendChild(S),A.state.isMounted=!0,re()}function fe(){return Ex(S.querySelectorAll("[data-tippy-root]"))}function ge(Pe){A.clearDelayTimeouts(),Pe&&U("onTrigger",[A,Pe]),te();var tt=I(!0),it=_(),St=it[0],ht=it[1];Hl.isTouch&&St==="hold"&&ht&&(tt=ht),tt?r=setTimeout(function(){A.show()},tt):A.show()}function Re(Pe){if(A.clearDelayTimeouts(),U("onUntrigger",[A,Pe]),!A.state.isVisible){J();return}if(!(A.props.trigger.indexOf("mouseenter")>=0&&A.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(Pe.type)>=0&&a)){var tt=I(!1);tt?i=setTimeout(function(){A.state.isVisible&&A.hide()},tt):o=requestAnimationFrame(function(){A.hide()})}}function Xe(){A.state.isEnabled=!0}function Ne(){A.hide(),A.state.isEnabled=!1}function Ke(){clearTimeout(r),clearTimeout(i),cancelAnimationFrame(o)}function De(Pe){if(!A.state.isDestroyed){U("onBeforeUpdate",[A,Pe]),le();var tt=A.props,it=IX(e,Object.assign({},tt,OX(Pe),{ignoreAttributes:!0}));A.props=it,ce(),tt.interactiveDebounce!==it.interactiveDebounce&&(B(),p=TX(X,it.interactiveDebounce)),tt.triggerTarget&&!it.triggerTarget?bp(tt.triggerTarget).forEach(function(St){St.removeAttribute("aria-expanded")}):it.triggerTarget&&e.removeAttribute("aria-expanded"),ee(),W(),L&&L(tt,it),A.popperInstance&&(re(),fe().forEach(function(St){requestAnimationFrame(St._tippy.popperInstance.forceUpdate)})),U("onAfterUpdate",[A,Pe])}}function Te(Pe){A.setProps({content:Pe})}function ye(){var Pe=A.state.isVisible,tt=A.state.isDestroyed,it=!A.state.isEnabled,St=Hl.isTouch&&!A.props.touch,ht=L5(A.props.duration,0,cl.duration);if(!(Pe||tt||it||St)&&!N().hasAttribute("disabled")&&(U("onShow",[A],!1),A.props.onShow(A)!==!1)){if(A.state.isVisible=!0,O()&&(S.style.visibility="visible"),W(),te(),A.state.isMounted||(S.style.transition="none"),O()){var gt=F(),wt=gt.box,Ut=gt.content;T5([wt,Ut],0)}d=function(){var Hn;if(!(!A.state.isVisible||u)){if(u=!0,S.offsetHeight,S.style.transition=A.props.moveTransition,O()&&A.props.animation){var Xs=F(),wl=Xs.box,$i=Xs.content;T5([wl,$i],ht),kX([wl,$i],"visible")}Z(),ee(),_X(O5,A),(Hn=A.popperInstance)==null||Hn.forceUpdate(),U("onMount",[A]),A.props.animation&&O()&&G(ht,function(){A.state.isShown=!0,U("onShown",[A])})}},ve()}}function Me(){var Pe=!A.state.isVisible,tt=A.state.isDestroyed,it=!A.state.isEnabled,St=L5(A.props.duration,1,cl.duration);if(!(Pe||tt||it)&&(U("onHide",[A],!1),A.props.onHide(A)!==!1)){if(A.state.isVisible=!1,A.state.isShown=!1,u=!1,a=!1,O()&&(S.style.visibility="hidden"),B(),J(),W(!0),O()){var ht=F(),gt=ht.box,wt=ht.content;A.props.animation&&(T5([gt,wt],St),kX([gt,wt],"hidden"))}Z(),ee(),A.props.animation?O()&&de(St,A.unmount):A.unmount()}}function Ie(Pe){P().addEventListener("mousemove",p),_X(QA,p),p(Pe)}function Qe(){A.state.isVisible&&A.hide(),A.state.isMounted&&(ae(),fe().forEach(function(Pe){Pe._tippy.unmount()}),S.parentNode&&S.parentNode.removeChild(S),O5=O5.filter(function(Pe){return Pe!==A}),A.state.isMounted=!1,U("onHidden",[A]))}function ct(){A.state.isDestroyed||(A.clearDelayTimeouts(),A.unmount(),le(),delete e._tippy,A.state.isDestroyed=!0,U("onDestroy",[A]))}}function v0(e,t){t===void 0&&(t={});var n=cl.plugins.concat(t.plugins||[]);SSe();var r=Object.assign({},t,{plugins:n}),i=ySe(e),o=i.reduce(function(a,s){var l=s&&ISe(s,r);return l&&a.push(l),a},[]);return v3(e)?o[0]:o}v0.defaultProps=cl;v0.setDefaultProps=OSe;v0.currentInput=Hl;Object.assign({},rz,{effect:function(t){var n=t.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}});v0.setDefaultProps({render:yz});const NSe=We({__name:"Popover",props:{value:{type:Boolean,default:!1},trigger:{default:"click"},placement:{default:"bottom"},appendTo:{},contentStyle:{},center:{type:Boolean,default:!1},offset:{default:8}},emits:["update:value"],setup(e,{emit:t}){const n=e,r=t,i=he(),o=he(),a=he(),s=he(!1),l=Se(()=>n.contentStyle||{});return Tt(()=>n.value,()=>{i.value&&(n.value?i.value.show():i.value.hide())}),En(()=>{i.value&&i.value.destroy()}),Vt(()=>{i.value=v0(o.value,{content:a.value,allowHTML:!0,trigger:n.trigger,placement:n.placement,interactive:!0,appendTo:n.appendTo||document.body,maxWidth:"none",offset:[0,n.offset],duration:200,animation:"scale",theme:"popover",onShow(){s.value=!0},onShown(){n.value||r("update:value",!0)},onHidden(){n.value&&r("update:value",!1),s.value=!1}})}),(u,c)=>(D(),q("div",{class:ze(["popover",{center:u.center}]),ref_key:"triggerRef",ref:o},[V("div",{class:"popover-content",style:Le(l.value),ref_key:"contentRef",ref:a},[s.value?ar(u.$slots,"content",{key:0},void 0,!0):Ye("",!0)],4),ar(u.$slots,"default",{},void 0,!0)],2))}}),Nt=Be(NSe,[["__scopeId","data-v-6a57fbcf"]]),FSe=We({__name:"PopoverMenuItem",props:{center:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const n=t;return(r,i)=>(D(),q("div",{class:ze(["popover-menu-item",{center:r.center}]),onClick:i[0]||(i[0]=o=>n("click"))},[ar(r.$slots,"default",{},void 0,!0)],2))}}),Qr=Be(FSe,[["__scopeId","data-v-1f176c16"]]),ESe=e=>(rn("data-v-4bbd9a87"),e=e(),on(),e),XSe={class:"editor-header"},WSe={class:"left"},VSe={class:"menu-item"},DSe={class:"title"},USe=["title"],BSe={class:"right"},YSe={class:"group-menu-item"},ZSe={class:"arrow-btn"},QSe=ESe(()=>V("span",{class:"text ai"},"AI",-1)),HSe=[QSe],KSe={class:"github-link",href:"https://github.com/pipipi-pikachu/PPTist",target:"_blank"},GSe={class:"menu-item"},zSe=We({__name:"index",setup(e){const t=pt(),n=st(),{title:r}=Ve(n),{enterScreening:i,enterScreeningFromStart:o}=cd(),{importSpecificFile:a,importPPTXFile:s,exporting:l}=Xbe(),{resetSlides:u}=Ac(),c=he(!1),f=he(!1),d=he(!1),h=he(),p=he(""),v=()=>{p.value=r.value,d.value=!0,Rr(()=>{var x;return(x=h.value)==null?void 0:x.focus()})},g=()=>{n.setTitle(p.value),d.value=!1},m=x=>{window.open(x),c.value=!1},y=x=>{t.setDialogForExport(x),c.value=!1},R=()=>{t.setMarkupPanelState(!0)},A=()=>{t.setAIPPTDialogState(!0)};return(x,S)=>{const L=xe("IconHamburgerButton"),M=xe("IconPpt"),w=xe("IconDown"),_=xe("IconDownload"),C=xe("IconGithub"),O=_n("tooltip");return D(),q("div",XSe,[V("div",WSe,[k(Nt,{trigger:"click",placement:"bottom-start",value:c.value,"onUpdate:value":S[9]||(S[9]=N=>c.value=N)},{content:ie(()=>[k(Qr,{onClick:S[0]||(S[0]=N=>{A(),c.value=!1})},{default:ie(()=>[Ue("AI 生成 PPT(测试版)")]),_:1}),k(qh,{accept:"application/vnd.openxmlformats-officedocument.presentationml.presentation",onChange:S[1]||(S[1]=N=>{z(s)(N),c.value=!1})},{default:ie(()=>[k(Qr,null,{default:ie(()=>[Ue("导入 pptx 文件(测试版)")]),_:1})]),_:1}),k(qh,{accept:".pptist",onChange:S[2]||(S[2]=N=>{z(a)(N),c.value=!1})},{default:ie(()=>[k(Qr,null,{default:ie(()=>[Ue("导入 pptist 文件")]),_:1})]),_:1}),k(Qr,{onClick:S[3]||(S[3]=N=>y("pptx"))},{default:ie(()=>[Ue("导出文件")]),_:1}),k(Qr,{onClick:S[4]||(S[4]=N=>{z(u)(),c.value=!1})},{default:ie(()=>[Ue("重置幻灯片")]),_:1}),k(Qr,{onClick:S[5]||(S[5]=N=>{R(),c.value=!1})},{default:ie(()=>[Ue("幻灯片类型标注")]),_:1}),k(Qr,{onClick:S[6]||(S[6]=N=>m("https://github.com/pipipi-pikachu/PPTist/issues"))},{default:ie(()=>[Ue("意见反馈")]),_:1}),k(Qr,{onClick:S[7]||(S[7]=N=>m("https://github.com/pipipi-pikachu/PPTist/blob/master/doc/Q&A.md"))},{default:ie(()=>[Ue("常见问题")]),_:1}),k(Qr,{onClick:S[8]||(S[8]=N=>{c.value=!1,f.value=!0})},{default:ie(()=>[Ue("快捷操作")]),_:1})]),default:ie(()=>[V("div",VSe,[k(L,{class:"icon"})])]),_:1},8,["value"]),V("div",DSe,[d.value?(D(),Oe(pu,{key:0,class:"title-input",ref_key:"titleInputRef",ref:h,value:p.value,"onUpdate:value":S[10]||(S[10]=N=>p.value=N),onBlur:S[11]||(S[11]=N=>g())},null,8,["value"])):(D(),q("div",{key:1,class:"title-text",onClick:S[12]||(S[12]=N=>v()),title:z(r)},dt(z(r)),9,USe))])]),V("div",BSe,[V("div",YSe,[Ge((D(),q("div",{class:"menu-item",onClick:S[13]||(S[13]=N=>z(i)())},[k(M,{class:"icon"})])),[[O,"幻灯片放映(F5)"]]),k(Nt,{trigger:"click",center:""},{content:ie(()=>[k(Qr,{onClick:S[14]||(S[14]=N=>z(o)())},{default:ie(()=>[Ue("从头开始")]),_:1}),k(Qr,{onClick:S[15]||(S[15]=N=>z(i)())},{default:ie(()=>[Ue("从当前页开始")]),_:1})]),default:ie(()=>[V("div",ZSe,[k(w,{class:"arrow"})])]),_:1})]),Ge((D(),q("div",{class:"menu-item",onClick:S[16]||(S[16]=N=>{A(),c.value=!1})},HSe)),[[O,"AI生成PPT"]]),Ge((D(),q("div",{class:"menu-item",onClick:S[17]||(S[17]=N=>y("pptx"))},[k(_,{class:"icon"})])),[[O,"导出"]]),Ge((D(),q("a",KSe,[V("div",GSe,[k(C,{class:"icon"})])])),[[O,"Copyright © 2020-PRESENT pipipi-pikachu"]])]),k(exe,{width:320,visible:f.value,"onUpdate:visible":S[18]||(S[18]=N=>f.value=N),placement:"right"},{title:ie(()=>[Ue("快捷操作")]),default:ie(()=>[k(Zbe)]),_:1},8,["visible"]),k(ty,{loading:z(l),tip:"正在导入..."},null,8,["loading"])])}}}),JSe=Be(zSe,[["__scopeId","data-v-4bbd9a87"]]),iy=Symbol(),Ok=Symbol(),Az=Symbol(),$Se=()=>{const e=window.getSelection();e&&e.removeAllRanges()},jSe=e=>{const t=he(0),n=he(0),r=pt(),{canvasPercentage:i,canvasDragged:o}=Ve(r),{viewportRatio:a,viewportSize:s}=Ve(st()),l=()=>{if(!e.value)return;const h=e.value.clientWidth,p=e.value.clientHeight;if(p/h>a.value){const v=h*(i.value/100);r.setCanvasScale(v/s.value),t.value=(h-v)/2,n.value=(p-v*a.value)/2}else{const v=p*(i.value/100);r.setCanvasScale(v/(s.value*a.value)),t.value=(h-v/a.value)/2,n.value=(p-v)/2}};Tt(i,(h,p)=>{if(!e.value)return;const v=e.value.clientWidth,g=e.value.clientHeight;if(g/v>a.value){const m=v*(h/100),y=v*(p/100),R=m*a.value,A=y*a.value;r.setCanvasScale(m/s.value),t.value=t.value-(m-y)/2,n.value=n.value-(R-A)/2}else{const m=g*(h/100),y=g*(p/100),R=m/a.value,A=y/a.value;r.setCanvasScale(m/(s.value*a.value)),t.value=t.value-(R-A)/2,n.value=n.value-(m-y)/2}}),Tt(a,l),Tt(s,l),Tt(o,()=>{o.value||l()});const c=Se(()=>({width:s.value,height:s.value*a.value,left:t.value,top:n.value})),f=new ResizeObserver(l);return Vt(()=>{e.value&&f.observe(e.value)}),En(()=>{e.value&&f.unobserve(e.value)}),{viewportStyles:c,dragViewport:h=>{let p=!0;const v=h.pageX,g=h.pageY,m=t.value,y=n.value;document.onmousemove=R=>{if(!p)return;const A=R.pageX,x=R.pageY;t.value=m+(A-v),n.value=y+(x-g)},document.onmouseup=()=>{p=!1,document.onmousemove=null,document.onmouseup=null,r.setCanvasDragged(!0)}}}},qSe=(e,t)=>{const n=pt(),{canvasScale:r,hiddenElementIdList:i}=Ve(n),o=he(!1),a=he(1),s=he({top:0,left:0,width:0,height:0});return{mouseSelection:s,mouseSelectionVisible:o,mouseSelectionQuadrant:a,updateMouseSelection:u=>{if(!t.value)return;let c=!0;const f=t.value.getBoundingClientRect(),d=5,h=u.pageX,p=u.pageY,v=(h-f.x)/r.value,g=(p-f.y)/r.value;s.value={top:g,left:v,width:0,height:0},o.value=!1,a.value=4,document.onmousemove=m=>{if(!c)return;const y=m.pageX,R=m.pageY,A=(y-h)/r.value,x=(R-p)/r.value,S=Math.abs(A),L=Math.abs(x);if(S0&&x>0?M=4:A<0&&x<0?M=2:A>0&&x<0?M=1:A<0&&x>0&&(M=3),s.value={...s.value,width:S,height:L},o.value=!0,a.value=M},document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null,c=!1;let m=[];for(let R=0;Rx&&_S&&Ox-L&&_S-M&&Ox&&_S-M&&Ox-L&&_S&&O{if(R.groupId){const A=m.map(S=>S.id);return e.value.filter(S=>S.groupId===R.groupId).every(S=>A.includes(S.id))}return!0});const y=m.map(R=>R.id);n.setActiveElementIdList(y),o.value=!1}}}},e3e=e=>{const{disableHotkeys:t}=Ve(pt()),{createImageElement:n,createTextElement:r}=d0(),i=o=>{if(!o.dataTransfer||o.dataTransfer.items.length===0)return;const a=o.dataTransfer.items,s=a[0];let l=!1;for(const u of a)if(u.kind==="file"&&u.type.indexOf("image")!==-1){const c=u.getAsFile();c&&ud(c).then(f=>n(f)),l=!0}l||s.kind==="string"&&s.type==="text/plain"&&s.getAsString(u=>{if(t.value)return;const c=Sx(u);r({left:0,top:0,width:600,height:50},{content:c})})};Vt(()=>{e.value&&e.value.addEventListener("drop",i),document.ondragleave=o=>o.preventDefault(),document.ondrop=o=>o.preventDefault(),document.ondragenter=o=>o.preventDefault(),document.ondragover=o=>o.preventDefault()}),En(()=>{e.value&&e.value.removeEventListener("drop",i),document.ondragleave=null,document.ondrop=null,document.ondragenter=null,document.ondragover=null})},t3e=(e,t)=>{const n=Math.atan2(e,t);return 180/Math.PI*n},Rz=(e,t,n)=>{const r=st(),{addHistorySnapshot:i}=nn();return{rotateElement:(a,s)=>{const l=!(a instanceof MouseEvent);if(l&&(!a.changedTouches||!a.changedTouches[0]))return;let u=!0,c=0;const f=s.rotate||0,d=s.left,h=s.top,p=s.width,v=s.height,g=d+p/2,m=h+v/2;if(!t.value)return;const y=t.value.getBoundingClientRect(),R=x=>{if(!u)return;const S=x instanceof MouseEvent?x.pageX:x.changedTouches[0].pageX,L=x instanceof MouseEvent?x.pageY:x.changedTouches[0].pageY,M=(S-y.left)/n.value,w=(L-y.top)/n.value,_=M-g,C=m-w;c=t3e(_,C);const O=5;Math.abs(c)<=O?c=0:c>0&&Math.abs(c-45)<=O?c-=c-45:c<0&&Math.abs(c+45)<=O?c-=c+45:c>0&&Math.abs(c-90)<=O?c-=c-90:c<0&&Math.abs(c+90)<=O?c-=c+90:c>0&&Math.abs(c-135)<=O?c-=c-135:c<0&&Math.abs(c+135)<=O?c-=c+135:c>0&&Math.abs(c-180)<=O?c-=c-180:c<0&&Math.abs(c+180)<=O&&(c-=c+180),e.value=e.value.map(N=>s.id===N.id?{...N,rotate:c}:N)},A=()=>{u=!1,document.onmousemove=null,document.onmouseup=null,f!==c&&(r.updateSlide({elements:e.value}),i())};l?(document.ontouchmove=R,document.ontouchend=A):(document.onmousemove=R,document.onmouseup=A)}}},Og={text:"文本",image:"图片",shape:"形状",line:"线条",chart:"图表",table:"表格",video:"视频",audio:"音频",latex:"公式"},bz={text:40,image:20,shape:20,chart:200,table:30,video:250,audio:20,latex:20},EX=(e,t)=>{const{left:n,top:r,width:i,height:o}=e,a=Math.sqrt(Math.pow(i,2)+Math.pow(o,2))/2,s=Math.atan(o/i)*180/Math.PI,l=(180-t-s)*Math.PI/180,u=(s-t)*Math.PI/180,c=(90-t)*Math.PI/180,f=t*Math.PI/180,d=i/2,h=o/2,p=n+d,v=r+h,g={left:p+a*Math.cos(l),top:v-a*Math.sin(l)},m={left:p+h*Math.cos(c),top:v-h*Math.sin(c)},y={left:p+a*Math.cos(u),top:v-a*Math.sin(u)},R={left:p+d*Math.cos(f),top:v+d*Math.sin(f)},A={left:p-a*Math.cos(l),top:v+a*Math.sin(l)},x={left:p-h*Math.sin(f),top:v+h*Math.cos(f)},S={left:p-a*Math.cos(u),top:v+a*Math.sin(u)},L={left:p-d*Math.cos(f),top:v-d*Math.sin(f)};return{leftTopPoint:g,topPoint:m,rightTopPoint:y,rightPoint:R,rightBottomPoint:A,bottomPoint:x,leftBottomPoint:S,leftPoint:L}},XX=(e,t)=>({[Rt.RIGHT_BOTTOM]:t.leftTopPoint,[Rt.LEFT_BOTTOM]:t.rightTopPoint,[Rt.LEFT_TOP]:t.rightBottomPoint,[Rt.RIGHT_TOP]:t.leftBottomPoint,[Rt.TOP]:t.bottomPoint,[Rt.BOTTOM]:t.topPoint,[Rt.LEFT]:t.rightPoint,[Rt.RIGHT]:t.leftPoint})[e],xz=(e,t,n)=>{const r=pt(),i=st(),{activeElementIdList:o,activeGroupElementId:a}=Ve(r),{viewportRatio:s,viewportSize:l}=Ve(i),{ctrlOrShiftKeyActive:u}=Ve(Ns()),{addHistorySnapshot:c}=nn();return{scaleElement:(h,p,v)=>{const g=!(h instanceof MouseEvent);if(g&&(!h.changedTouches||!h.changedTouches[0]))return;let m=!0;r.setScalingState(!0);const y=p.left,R=p.top,A=p.width,x=p.height,S=p.type==="table"?p.cellMinHeight:0,L="rotate"in p&&p.rotate?p.rotate:0,M=Math.PI*L/180,w=u.value||"fixedRatio"in p&&p.fixedRatio,_=A/x,C=g?h.changedTouches[0].pageX:h.pageX,O=g?h.changedTouches[0].pageY:h.pageY,N=bz[p.type]||20,P=(Q,K)=>{if(!w)return Q1&&(te=N*de),K==="width"?Q{const J=[];let de=!1,G=!1;const Ae={offsetX:0,offsetY:0};if(K||K===0)for(let ue=0;ue{if(!m)return;const K=Q instanceof MouseEvent?Q.pageX:Q.changedTouches[0].pageX,te=Q instanceof MouseEvent?Q.pageY:Q.changedTouches[0].pageY,J=K-C,de=te-O;let G=A,Ae=x,ue=y,ce=R;if(L){const le=(Math.cos(M)*J+Math.sin(M)*de)/n.value;let $=(Math.cos(M)*de-Math.sin(M)*J)/n.value;w&&((v===Rt.RIGHT_BOTTOM||v===Rt.LEFT_TOP)&&($=le/_),(v===Rt.LEFT_BOTTOM||v===Rt.RIGHT_TOP)&&($=-le/_)),v===Rt.RIGHT_BOTTOM?(G=P(A+le,"width"),Ae=P(x+$,"height")):v===Rt.LEFT_BOTTOM?(G=P(A-le,"width"),Ae=P(x+$,"height"),ue=y-(G-A)):v===Rt.LEFT_TOP?(G=P(A-le,"width"),Ae=P(x-$,"height"),ue=y-(G-A),ce=R-(Ae-x)):v===Rt.RIGHT_TOP?(G=P(A+le,"width"),Ae=P(x-$,"height"),ce=R-(Ae-x)):v===Rt.TOP?(Ae=P(x-$,"height"),ce=R-(Ae-x)):v===Rt.BOTTOM?Ae=P(x+$,"height"):v===Rt.LEFT?(G=P(A-le,"width"),ue=y-(G-A)):v===Rt.RIGHT&&(G=P(A+le,"width"));const X=EX({width:G,height:Ae,left:ue,top:ce},L),j=XX(v,X),se=j.left,ne=j.top,re=se-I,ae=ne-W;ue=ue-re,ce=ce-ae}else{let le=J/n.value,$=de/n.value;if(w&&((v===Rt.RIGHT_BOTTOM||v===Rt.LEFT_TOP)&&($=le/_),(v===Rt.LEFT_BOTTOM||v===Rt.RIGHT_TOP)&&($=-le/_)),v===Rt.RIGHT_BOTTOM){const{offsetX:X,offsetY:j}=ee(y+A+le,R+x+$);le=le-X,$=$-j,w&&(j?le=$*_:$=le/_),G=P(A+le,"width"),Ae=P(x+$,"height")}else if(v===Rt.LEFT_BOTTOM){const{offsetX:X,offsetY:j}=ee(y+le,R+x+$);le=le-X,$=$-j,w&&(j?le=-$*_:$=-le/_),G=P(A-le,"width"),Ae=P(x+$,"height"),ue=y-(G-A)}else if(v===Rt.LEFT_TOP){const{offsetX:X,offsetY:j}=ee(y+le,R+$);le=le-X,$=$-j,w&&(j?le=$*_:$=le/_),G=P(A-le,"width"),Ae=P(x-$,"height"),ue=y-(G-A),ce=R-(Ae-x)}else if(v===Rt.RIGHT_TOP){const{offsetX:X,offsetY:j}=ee(y+A+le,R+$);le=le-X,$=$-j,w&&(j?le=-$*_:$=-le/_),G=P(A+le,"width"),Ae=P(x-$,"height"),ce=R-(Ae-x)}else if(v===Rt.LEFT){const{offsetX:X}=ee(y+le,null);le=le-X,G=P(A-le,"width"),ue=y-(G-A)}else if(v===Rt.RIGHT){const{offsetX:X}=ee(y+A+le,null);le=le-X,G=P(A+le,"width")}else if(v===Rt.TOP){const{offsetY:X}=ee(null,R+$);$=$-X,Ae=P(x-$,"height"),ce=R-(Ae-x)}else if(v===Rt.BOTTOM){const{offsetY:X}=ee(null,R+x+$);$=$-X,Ae=P(x+$,"height")}}e.value=e.value.map(le=>{if(p.id!==le.id)return le;if(le.type==="shape"&&"pathFormula"in le&&le.pathFormula){const $=f0[le.pathFormula];let X="";return"editable"in $?X=$.formula(G,Ae,le.keypoints):X=$.formula(G,Ae),{...le,left:ue,top:ce,width:G,height:Ae,viewBox:[G,Ae],path:X}}if(le.type==="table"){let $=S+(Ae-x)/le.data.length;return $=$<36?36:$,$===S?{...le,left:ue,width:G}:{...le,left:ue,top:ce,width:G,height:Ae,cellMinHeight:$<36?36:$}}return{...le,left:ue,top:ce,width:G,height:Ae}})},Y=Q=>{m=!1,document.ontouchmove=null,document.ontouchend=null,document.onmousemove=null,document.onmouseup=null,t.value=[];const K=Q instanceof MouseEvent?Q.pageX:Q.changedTouches[0].pageX,te=Q instanceof MouseEvent?Q.pageY:Q.changedTouches[0].pageY;C===K&&O===te||(i.updateSlide({elements:e.value}),r.setScalingState(!1),c())};g?(document.ontouchmove=B,document.ontouchend=Y):(document.onmousemove=B,document.onmouseup=Y)},scaleMultiElement:(h,p,v)=>{let g=!0;const{minX:m,maxX:y,minY:R,maxY:A}=p,x=y-m,S=A-R,L=x/S,M=h.pageX,w=h.pageY,_=JSON.parse(JSON.stringify(e.value));document.onmousemove=C=>{if(!g)return;const O=C.pageX,N=C.pageY,P=(O-M)/n.value;let F=(N-w)/n.value;u.value&&((v===Rt.RIGHT_BOTTOM||v===Rt.LEFT_TOP)&&(F=P/L),(v===Rt.LEFT_BOTTOM||v===Rt.RIGHT_TOP)&&(F=-P/L));let I=m,W=y,U=R,Z=A;v===Rt.RIGHT_BOTTOM?(W=y+P,Z=A+F):v===Rt.LEFT_BOTTOM?(I=m+P,Z=A+F):v===Rt.LEFT_TOP?(I=m+P,U=R+F):v===Rt.RIGHT_TOP?(W=y+P,U=R+F):v===Rt.TOP?U=R+F:v===Rt.BOTTOM?Z=A+F:v===Rt.LEFT?I=m+P:v===Rt.RIGHT&&(W=y+P);const ee=W-I,B=Z-U;let Y=ee/x,Q=B/S;Y<=0&&(Y=0),Q<=0&&(Q=0),e.value=e.value.map(K=>{if((K.type==="image"||K.type==="shape")&&o.value.includes(K.id)){const te=_.find(J=>J.id===K.id);return{...K,width:te.width*Y,height:te.height*Q,left:I+(te.left-m)*Y,top:U+(te.top-R)*Q}}return K})},document.onmouseup=C=>{g=!1,document.onmousemove=null,document.onmouseup=null,!(M===C.pageX&&w===C.pageY)&&(i.updateSlide({elements:e.value}),c())}}}},n3e=(e,t)=>{const n=pt(),{activeElementIdList:r,activeGroupElementId:i,handleElementId:o,editorAreaFocus:a}=Ve(n),{ctrlOrShiftKeyActive:s}=Ve(Ns());return{selectElement:(u,c,f=!0)=>{if(a.value||n.setEditorareaFocus(!0),r.value.includes(c.id)){if(s.value){let d=[];if(c.groupId){const h=[];e.value.forEach(p=>{p.groupId===c.groupId&&h.push(p.id)}),d=r.value.filter(p=>!h.includes(p))}else d=r.value.filter(h=>h!==c.id);d.length>0&&n.setActiveElementIdList(d)}else if(o.value!==c.id)n.setHandleElementId(c.id);else if(i.value!==c.id){const d=u instanceof MouseEvent?u.pageX:u.changedTouches[0].pageX,h=u instanceof MouseEvent?u.pageY:u.changedTouches[0].pageY;u.target.onmouseup=p=>{const v=p.pageX,g=p.pageY;d===v&&h===g&&(n.setActiveGroupElementId(c.id),p.target.onmouseup=null)}}}else{let d=[];if(s.value?d=[...r.value,c.id]:d=[c.id],c.groupId){const h=[];e.value.forEach(p=>{p.groupId===c.groupId&&h.push(p.id)}),d=[...d,...h]}n.setActiveElementIdList(Qn.uniq(d)),n.setHandleElementId(c.id)}f&&t(u,c)}}},Sz=(e,t,n)=>{const r=st(),{activeElementIdList:i,activeGroupElementId:o}=Ve(pt()),{shiftKeyState:a}=Ve(Ns()),{viewportRatio:s,viewportSize:l}=Ve(r),{addHistorySnapshot:u}=nn();return{dragElement:(f,d)=>{const h=!(f instanceof MouseEvent);if(h&&(!f.changedTouches||!f.changedTouches[0])||!i.value.includes(d.id))return;let p=!0;const v=l.value,g=l.value*s.value,m=5,R=JSON.parse(JSON.stringify(e.value)).filter(Q=>i.value.includes(Q.id)),A=d.left,x=d.top,S=d.width,L="height"in d&&d.height?d.height:0,M="rotate"in d&&d.rotate?d.rotate:0,w=h?f.changedTouches[0].pageX:f.pageX,_=h?f.changedTouches[0].pageY:f.pageY;let C=null;const O=d.id===o.value;let N=[],P=[];for(const Q of e.value){if(Q.type==="line"||O&&Q.id===d.id||!O&&i.value.includes(Q.id))continue;let K,te,J,de;if("rotate"in Q&&Q.rotate){const{xRange:re,yRange:ae}=nv({left:Q.left,top:Q.top,width:Q.width,height:Q.height,rotate:Q.rotate});K=re[0],te=ae[0],J=re[1]-re[0],de=ae[1]-ae[0]}else K=Q.left,te=Q.top,J=Q.width,de=Q.height;const G=K+J,Ae=te+de,ue=te+de/2,ce=K+J/2,le={value:te,range:[K,G]},$={value:Ae,range:[K,G]},X={value:ue,range:[K,G]},j={value:K,range:[te,Ae]},se={value:G,range:[te,Ae]},ne={value:ce,range:[te,Ae]};N.push(le,$,X),P.push(j,se,ne)}const F={value:0,range:[0,v]},I={value:g,range:[0,v]},W={value:g/2,range:[0,v]},U={value:0,range:[0,g]},Z={value:v,range:[0,g]},ee={value:v/2,range:[0,g]};N.push(F,I,W),P.push(U,Z,ee),N=xx(N),P=xx(P);const B=Q=>{const K=Q instanceof MouseEvent?Q.pageX:Q.changedTouches[0].pageX,te=Q instanceof MouseEvent?Q.pageY:Q.changedTouches[0].pageY;if(C!==!1&&(C=Math.abs(w-K)Math.abs(de)&&(de=0),Math.abs(J)ae.id===d.id?{...ae,left:G,top:Ae}:ae);else{const ae=e.value.find(ve=>ve.id===d.id);if(!ae)return;e.value=e.value.map(ve=>i.value.includes(ve.id)?ve.id===d.id?{...ve,left:G,top:Ae}:{...ve,left:ve.left+(G-ae.left),top:ve.top+(Ae-ae.top)}:ve)}},Y=Q=>{p=!1,document.ontouchmove=null,document.ontouchend=null,document.onmousemove=null,document.onmouseup=null,t.value=[];const K=Q instanceof MouseEvent?Q.pageX:Q.changedTouches[0].pageX,te=Q instanceof MouseEvent?Q.pageY:Q.changedTouches[0].pageY;w===K&&_===te||(r.updateSlide({elements:e.value}),u())};h?(document.ontouchmove=B,document.ontouchend=Y):(document.onmousemove=B,document.onmouseup=Y)}}},r3e=e=>{const t=st(),{canvasScale:n}=Ve(pt()),{ctrlOrShiftKeyActive:r}=Ve(Ns()),{addHistorySnapshot:i}=nn();return{dragLineElement:(a,s,l)=>{let u=!0;const c=8,f=a.pageX,d=a.pageY,h=[];for(let p=0;p{if(!u)return;const v=p.pageX,g=p.pageY,m=(v-f)/n.value,y=(g-d)/n.value;let R=s.left+s.start[0],A=s.top+s.start[1],x=s.left+s.end[0],S=s.top+s.end[1];const L=s.broken||s.broken2||s.curve||[0,0];let M=s.left+L[0],w=s.top+L[1];const[_,C]=s.cubic||[[0,0],[0,0]];let O=s.left+_[0],N=s.top+_[1],P=s.left+C[0],F=s.top+C[1];if(l===Go.START){R=R+m,A=A+y,Math.abs(R-x)x&&(ee[0]=U-I,B[0]=0),A>S&&(ee[1]=Z-W,B[1]=0),e.value=e.value.map(Y=>{if(Y.id===s.id){const Q={...Y,left:I,top:W,start:ee,end:B};return l===Go.START||l===Go.END?(r.value?(s.broken&&(Q.broken=[M-I,w-W]),s.curve&&(Q.curve=[M-I,w-W]),s.cubic&&(Q.cubic=[[O-I,N-W],[P-I,F-W]])):(s.broken&&(Q.broken=[(ee[0]+B[0])/2,(ee[1]+B[1])/2]),s.curve&&(Q.curve=[(ee[0]+B[0])/2,(ee[1]+B[1])/2]),s.cubic&&(Q.cubic=[[(ee[0]+B[0])/2,(ee[1]+B[1])/2],[(ee[0]+B[0])/2,(ee[1]+B[1])/2]])),s.broken2&&(Q.broken2=[(ee[0]+B[0])/2,(ee[1]+B[1])/2])):l===Go.C?(s.broken&&(Q.broken=[M-I,w-W]),s.curve&&(Q.curve=[M-I,w-W]),s.broken2&&(U-I>=Z-W?Q.broken2=[M-I,Q.broken2[1]]:Q.broken2=[Q.broken2[0],w-W])):s.cubic&&(Q.cubic=[[O-I,N-W],[P-I,F-W]]),Q}return Y})},document.onmouseup=p=>{u=!1,document.onmousemove=null,document.onmouseup=null;const v=p.pageX,g=p.pageY;f===v&&d===g||(t.updateSlide({elements:e.value}),i())}}}},i3e=(e,t)=>{const n=st(),{addHistorySnapshot:r}=nn();return{moveShapeKeypoint:(o,a,s=0)=>{const l=!(o instanceof MouseEvent);if(l&&(!o.changedTouches||!o.changedTouches[0]))return;let u=!0;const c=l?o.changedTouches[0].pageX:o.pageX,f=l?o.changedTouches[0].pageY:o.pageY,d=a.keypoints,h=f0[a.pathFormula];let p=null;if("editable"in h&&h.editable){const m=h.getBaseSize[s],y=h.range[s],R=h.relative[s],A=d[s],x=m(a.width,a.height),S=x*A,[L,M]=y;p={baseSize:x,originPos:S,min:L,max:M,relative:R}}const v=m=>{if(!u)return;const y=m instanceof MouseEvent?m.pageX:m.changedTouches[0].pageX,R=m instanceof MouseEvent?m.pageY:m.changedTouches[0].pageY,A=(y-c)/t.value,x=(R-f)/t.value;e.value=e.value.map(S=>{if(S.id===a.id&&p){const{baseSize:L,originPos:M,min:w,max:_,relative:C}=p,O=S;let N=0;C==="center"?N=(M-A*2)/L:C==="left"?N=(M+A)/L:C==="right"?N=(M-A)/L:C==="top"?N=(M+x)/L:C==="bottom"?N=(M-x)/L:C==="left_bottom"?N=(M+A)/L:C==="right_bottom"?N=(M-A)/L:C==="top_right"?N=(M+x)/L:C==="bottom_right"&&(N=(M-x)/L),N_&&(N=_);let P=[];return Array.isArray(d)?(P=[...d],P[s]=N):P=[N],{...S,keypoints:P,path:h.formula(O.width,O.height,P)}}return S})},g=m=>{u=!1,document.ontouchmove=null,document.ontouchend=null,document.onmousemove=null,document.onmouseup=null;const y=m instanceof MouseEvent?m.pageX:m.changedTouches[0].pageX,R=m instanceof MouseEvent?m.pageY:m.changedTouches[0].pageY;c===y&&f===R||(n.updateSlide({elements:e.value}),r())};l?(document.ontouchmove=v,document.ontouchend=g):(document.onmousemove=v,document.onmouseup=g)}}},o3e=e=>{const t=pt(),{canvasScale:n,creatingElement:r}=Ve(t),i=c=>{const{start:f,end:d}=c;if(!e.value)return;const h=e.value.getBoundingClientRect(),[p,v]=f,[g,m]=d,y=Math.min(p,g),R=Math.max(p,g),A=Math.min(v,m),x=Math.max(v,m),S=(y-h.x)/n.value,L=(A-h.y)/n.value,M=(R-y)/n.value,w=(x-A)/n.value;return{left:S,top:L,width:M,height:w}},o=c=>{const{start:f,end:d}=c;if(!e.value)return;const h=e.value.getBoundingClientRect(),[p,v]=f,[g,m]=d,y=Math.min(p,g),R=Math.max(p,g),A=Math.min(v,m),x=Math.max(v,m),S=(y-h.x)/n.value,L=(A-h.y)/n.value,M=(R-y)/n.value,w=(x-A)/n.value;return{left:S,top:L,start:[p===y?0:M,v===A?0:w],end:[g===y?0:M,m===A?0:w]}},{createTextElement:a,createShapeElement:s,createLineElement:l}=d0();return{formatCreateSelection:i,insertElementFromCreateSelection:c=>{if(!r.value)return;const f=r.value.type;if(f==="text"){const d=i(c);d&&a(d,{vertical:r.value.vertical})}else if(f==="shape"){const d=i(c);d&&s(d,r.value.data)}else if(f==="line"){const d=o(c);d&&l(d,r.value.data)}t.setCreatingElement(null)}}},g3=()=>{const e=st(),{activeElementIdList:t,activeElementList:n}=Ve(pt()),{currentSlide:r,viewportRatio:i,viewportSize:o}=Ve(e),{addHistorySnapshot:a}=nn();return{alignElementToCanvas:l=>{const u=o.value,c=o.value*i.value,{minX:f,maxX:d,minY:h,maxY:p}=nc(n.value),v=JSON.parse(JSON.stringify(r.value.elements));for(const g of v)if(t.value.includes(g.id)){if(l===gn.CENTER){const m=h+(p-h)/2-c/2,y=f+(d-f)/2-u/2;g.top=g.top-m,g.left=g.left-y}if(l===gn.TOP){const m=h-0;g.top=g.top-m}else if(l===gn.VERTICAL){const m=h+(p-h)/2-c/2;g.top=g.top-m}else if(l===gn.BOTTOM){const m=p-c;g.top=g.top-m}else if(l===gn.LEFT){const m=f-0;g.left=g.left-m}else if(l===gn.HORIZONTAL){const m=f+(d-f)/2-u/2;g.left=g.left-m}else if(l===gn.RIGHT){const m=d-u;g.left=g.left-m}}e.updateSlide({elements:v}),a()}}},hd=e=>({shadowStyle:Se(()=>{if(e.value){const{h:n,v:r,blur:i,color:o}=e.value;return`${n}px ${r}px ${i}px ${o}`}return""})}),m3=(e,t)=>({flipStyle:Se(()=>{let r="";return e.value&&t.value?r="rotateX(180deg) rotateY(180deg)":t.value?r="rotateX(180deg)":e.value&&(r="rotateY(180deg)"),r})});var wz=(e=>(e.RECT="rect",e.ELLIPSE="ellipse",e.POLYGON="polygon",e))(wz||{});const v6={rect:{name:"矩形",type:"rect",radius:"0",style:""},rect2:{name:"矩形2",type:"polygon",style:"polygon(0% 0%, 80% 0%, 100% 20%, 100% 100%, 0 100%)",createPath:(e,t)=>`M 0 0 L ${e*.8} 0 L ${e} ${t*.2} L ${e} ${t} L 0 ${t} Z`},rect3:{name:"矩形3",type:"polygon",style:"polygon(0% 0%, 80% 0%, 100% 20%, 100% 100%, 20% 100%, 0% 80%)",createPath:(e,t)=>`M 0 0 L ${e*.8} 0 L ${e} ${t*.2} L ${e} ${t} L ${e*.2} ${t} L 0 ${t*.8} Z`},roundRect:{name:"圆角矩形",type:"rect",radius:"10px",style:"inset(0 round 10px)"},ellipse:{name:"圆形",type:"ellipse",style:"ellipse(50% 50% at 50% 50%)"},triangle:{name:"三角形",type:"polygon",style:"polygon(50% 0%, 0% 100%, 100% 100%)",createPath:(e,t)=>`M ${e*.5} 0 L 0 ${t} L ${e} ${t} Z`},triangle2:{name:"三角形2",type:"polygon",style:"polygon(50% 100%, 0% 0%, 100% 0%)",createPath:(e,t)=>`M ${e*.5} ${t} L 0 0 L ${e} 0 Z`},triangle3:{name:"三角形3",type:"polygon",style:"polygon(0% 0%, 0% 100%, 100% 100%)",createPath:(e,t)=>`M 0 0 L 0 ${t} L ${e} ${t} Z`},rhombus:{name:"菱形",type:"polygon",style:"polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)",createPath:(e,t)=>`M ${e*.5} 0 L ${e} ${t*.5} L ${e*.5} ${t} L 0 ${t*.5} Z`},pentagon:{name:"五边形",type:"polygon",style:"polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%)",createPath:(e,t)=>`M ${e*.5} 0 L ${e} ${.38*t} L ${.82*e} ${t} L ${.18*e} ${t} L 0 ${.38*t} Z`},hexagon:{name:"六边形",type:"polygon",style:"polygon(20% 0%, 80% 0%, 100% 50%, 80% 100%, 20% 100%, 0% 50%)",createPath:(e,t)=>`M ${e*.2} 0 L ${e*.8} 0 L ${e} ${t*.5} L ${e*.8} ${t} L ${e*.2} ${t} L 0 ${t*.5} Z`},heptagon:{name:"七边形",type:"polygon",style:"polygon(50% 0%, 90% 20%, 100% 60%, 75% 100%, 25% 100%, 0% 60%, 10% 20%)",createPath:(e,t)=>`M ${e*.5} 0 L ${e*.9} ${t*.2} L ${e} ${t*.6} L ${e*.75} ${t} L ${e*.25} ${t} L 0 ${t*.6} L ${e*.1} ${t*.2} Z`},octagon:{name:"八边形",type:"polygon",style:"polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%)",createPath:(e,t)=>`M ${e*.3} 0 L ${e*.7} 0 L ${e} ${t*.3} L ${e} ${t*.7} L ${e*.7} ${t} L ${e*.3} ${t} L 0 ${t*.7} L 0 ${t*.3} Z`},chevron:{name:"V形",type:"polygon",style:"polygon(75% 0%, 100% 50%, 75% 100%, 0% 100%, 25% 50%, 0% 0%)",createPath:(e,t)=>`M ${e*.75} 0 L ${e} ${t*.5} L ${e*.75} ${t} L 0 ${t} L ${e*.25} ${t*.5} L 0 0 Z`},point:{name:"点",type:"polygon",style:"polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%)",createPath:(e,t)=>`M 0 0 L ${e*.75} 0 L ${e} ${t*.5} L ${e*.75} ${t} L 0 ${t} Z`},arrow:{name:"箭头",type:"polygon",style:"polygon(0% 20%, 60% 20%, 60% 0%, 100% 50%, 60% 100%, 60% 80%, 0% 80%)",createPath:(e,t)=>`M 0 ${t*.2} L ${e*.6} ${t*.2} L ${e*.6} 0 L ${e} ${t*.5} L ${e*.6} ${t} L ${e*.6} ${t*.8} L 0 ${t*.8} Z`},parallelogram:{name:"平行四边形",type:"polygon",style:"polygon(30% 0%, 100% 0%, 70% 100%, 0% 100%)",createPath:(e,t)=>`M ${e*.3} 0 L ${e} 0 L ${e*.7} ${t} L 0 ${t} Z`},parallelogram2:{name:"平行四边形2",type:"polygon",style:"polygon(30% 100%, 100% 100%, 70% 0%, 0% 0%)",createPath:(e,t)=>`M ${e*.3} ${t} L ${e} ${t} L ${e*.7} 0 L 0 0 Z`},trapezoid:{name:"梯形",type:"polygon",style:"polygon(25% 0%, 75% 0%, 100% 100%, 0% 100%)",createPath:(e,t)=>`M ${e*.25} 0 L ${e*.75} 0 L ${e} ${t} L 0 ${t} Z`},trapezoid2:{name:"梯形2",type:"polygon",style:"polygon(0% 0%, 100% 0%, 75% 100%, 25% 100%)",createPath:(e,t)=>`M 0 0 L ${e} 0 L ${e*.75} ${t} L ${e*.25} ${t} Z`}},kk=e=>{const t=Se(()=>{let r=v6.rect;if(e.value.clip){const i=e.value.clip.shape||wz.RECT;r=v6[i]}return r.radius!==void 0&&e.value.radius&&(r={...r,radius:`${e.value.radius}px`,style:`inset(0 round ${e.value.radius}px)`}),r}),n=Se(()=>{if(!e.value.clip)return{top:"0",left:"0",width:"100%",height:"100%"};const[r,i]=e.value.clip.range,o=(i[0]-r[0])/100,a=(i[1]-r[1])/100,s=r[0]/o,l=r[1]/a;return{left:-s+"%",top:-l+"%",width:100/o+"%",height:100/a+"%"}});return{clipShape:t,imgPosition:n}},Mz=e=>({filter:Se(()=>{if(!e.value)return"";let n="";const r=Object.keys(e.value);for(const i of r)n+=`${i}(${e.value[i]}) `;return n})}),t1=e=>{const t=Se(()=>{var o;return((o=e.value)==null?void 0:o.width)??0}),n=Se(()=>{var o;return((o=e.value)==null?void 0:o.style)||"solid"}),r=Se(()=>{var o;return((o=e.value)==null?void 0:o.color)||"#d14424"}),i=Se(()=>{const o=t.value;return n.value==="dashed"?o<=6?`${o*4.5} ${o*2}`:`${o*4} ${o*1.5}`:n.value==="dotted"?o<=6?`${o*1.8} ${o*1.6}`:`${o*1.5} ${o*1.2}`:"0 0"});return{outlineWidth:t,outlineStyle:n,outlineColor:r,strokeDashArray:i}},a3e=["width","height"],s3e=["rx","ry","width","height","stroke","stroke-width","stroke-dasharray"],l3e=We({__name:"ImageRectOutline",props:{width:{},height:{},outline:{},radius:{default:"0"}},setup(e){const t=e,{outlineWidth:n,outlineColor:r,strokeDashArray:i}=t1(Uv(t,"outline"));return(o,a)=>o.outline?(D(),q("svg",{key:0,class:"image-rect-outline",overflow:"visible",width:o.width,height:o.height},[V("rect",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:"transparent",rx:o.radius,ry:o.radius,width:o.width,height:o.height,stroke:z(r),"stroke-width":z(n),"stroke-dasharray":z(i)},null,8,s3e)],8,a3e)):Ye("",!0)}}),u3e=Be(l3e,[["__scopeId","data-v-09a0319c"]]),c3e=["width","height"],f3e=["cx","cy","rx","ry","stroke","stroke-width","stroke-dasharray"],d3e=We({__name:"ImageEllipseOutline",props:{width:{},height:{},outline:{}},setup(e){const t=e,{outlineWidth:n,outlineColor:r,strokeDashArray:i}=t1(Uv(t,"outline"));return(o,a)=>o.outline?(D(),q("svg",{key:0,class:"image-ellipse-outline",overflow:"visible",width:o.width,height:o.height},[V("ellipse",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:"transparent",cx:o.width/2,cy:o.height/2,rx:o.width/2,ry:o.height/2,stroke:z(r),"stroke-width":z(n),"stroke-dasharray":z(i)},null,8,f3e)],8,c3e)):Ye("",!0)}}),h3e=Be(d3e,[["__scopeId","data-v-19e68d74"]]),p3e=["width","height"],v3e=["d","stroke","stroke-width","stroke-dasharray"],g3e=We({__name:"ImagePolygonOutline",props:{width:{},height:{},createPath:{type:Function},outline:{}},setup(e){const t=e,{outlineWidth:n,outlineColor:r,strokeDashArray:i}=t1(Uv(t,"outline"));return(o,a)=>o.outline?(D(),q("svg",{key:0,class:"image-polygon-outline",overflow:"visible",width:o.width,height:o.height},[V("path",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:"transparent",d:o.createPath(o.width,o.height),stroke:z(r),"stroke-width":z(n),"stroke-dasharray":z(i)},null,8,v3e)],8,p3e)):Ye("",!0)}}),m3e=Be(g3e,[["__scopeId","data-v-a036b0a3"]]),y3e={class:"image-outline"},Lz=We({__name:"index",props:{elementInfo:{}},setup(e){const t=e,n=Se(()=>t.elementInfo),{clipShape:r}=kk(n);return(i,o)=>(D(),q("div",y3e,[z(r).type==="rect"?(D(),Oe(u3e,{key:0,width:i.elementInfo.width,height:i.elementInfo.height,radius:z(r).radius,outline:i.elementInfo.outline},null,8,["width","height","radius","outline"])):z(r).type==="ellipse"?(D(),Oe(h3e,{key:1,width:i.elementInfo.width,height:i.elementInfo.height,outline:i.elementInfo.outline},null,8,["width","height","outline"])):z(r).type==="polygon"?(D(),Oe(m3e,{key:2,width:i.elementInfo.width,height:i.elementInfo.height,outline:i.elementInfo.outline,createPath:z(r).createPath},null,8,["width","height","outline","createPath"])):Ye("",!0)]))}}),Tz=e=>(rn("data-v-31b3b0f9"),e=e(),on(),e),A3e=["src"],R3e=["src"],b3e=["onMousedown"],x3e=Tz(()=>V("svg",{width:"16",height:"16",fill:"#fff",stroke:"#333"},[V("path",{"stroke-width":"0.3","shape-rendering":"crispEdges",d:"M 16 0 L 0 0 L 0 16 L 4 16 L 4 4 L 16 4 L 16 0 Z"})],-1)),S3e=[x3e],w3e=["onMousedown"],M3e=Tz(()=>V("svg",{width:"16",height:"16",fill:"#fff",stroke:"#333"},[V("path",{"stroke-width":"0.3","shape-rendering":"crispEdges",d:"M 16 0 L 0 0 L 0 4 L 16 4 Z"})],-1)),L3e=[M3e],T3e=We({__name:"ImageClipHandler",props:{src:{},clipPath:{},width:{},height:{},top:{},left:{},rotate:{},clipData:{}},emits:["clip"],setup(e,{emit:t}){const n=e,r=t,{canvasScale:i}=Ve(pt()),{ctrlOrShiftKeyActive:o}=Ve(Ns()),a=he({top:"0",left:"0"}),s=he(!1),l=he(null),u=()=>{const[M,w]=n.clipData?n.clipData.range:[[0,0],[100,100]],_=(w[0]-M[0])/100,C=(w[1]-M[1])/100,O=M[0]/_,N=M[1]/C;return{widthScale:_,heightScale:C,left:O,top:N}},c=Se(()=>{const{widthScale:M,heightScale:w,left:_,top:C}=u();return{left:-_,top:-C,width:100/M,height:100/w}}),f=Se(()=>({top:c.value.top+"%",left:c.value.left+"%",width:c.value.width+"%",height:c.value.height+"%"})),d=he({top:0,left:0,width:0,height:0}),h=Se(()=>{const{top:M,left:w,width:_,height:C}=d.value;return{top:M+"%",left:w+"%",width:_+"%",height:C+"%"}}),p=Se(()=>{const M=c.value.width,w=c.value.height,{top:_,left:C,width:O,height:N}=d.value;return{left:-C*(100/O)+"%",top:-_*(100/N)+"%",width:M/O*100+"%",height:w/N*100+"%"}}),v=()=>{const{left:M,top:w}=u();d.value={left:M,top:w,width:100,height:100},a.value={top:-w+"%",left:-M+"%"}},g=()=>{if(s.value)return;if(!l.value){r("clip",null);return}const{left:M,top:w}=u(),_={left:(d.value.left-M)/100*n.width,top:(d.value.top-w)/100*n.height,width:(d.value.width-100)/100*n.width,height:(d.value.height-100)/100*n.height},C={range:l.value,position:_};r("clip",C)},m=M=>{M.key.toUpperCase()===yt.ENTER&&g()};Vt(()=>{v(),document.addEventListener("keydown",m)}),En(()=>{document.removeEventListener("keydown",m)});const y=()=>{const M={left:parseInt(p.value.left),top:parseInt(p.value.top),width:parseInt(p.value.width),height:parseInt(p.value.height)},w=100/M.width,_=100/M.height,C=[-M.left*w,-M.top*_],O=[w*100+C[0],_*100+C[1]];l.value=[C,O]},R=M=>{s.value=!0;let w=!0;const _=M.pageX,C=M.pageY,O=c.value,N={...d.value};document.onmousemove=P=>{if(!w)return;const F=P.pageX,I=P.pageY,W=(F-_)/i.value,U=(I-C)/i.value,Z=Math.sqrt(W*W+U*U),B=Math.atan2(U,W)-n.rotate/180*Math.PI,Y=Z*Math.cos(B)/n.width*100,Q=Z*Math.sin(B)/n.height*100;let K=N.left+Y,te=N.top+Q;K<0?K=0:K+N.width>O.width&&(K=O.width-N.width),te<0?te=0:te+N.height>O.height&&(te=O.height-N.height),d.value={...d.value,left:K,top:te}},document.onmouseup=()=>{w=!1,document.onmousemove=null,document.onmouseup=null,y(),setTimeout(()=>{s.value=!1},0)}},A=(M,w)=>{s.value=!0;let _=!0;const C=50/n.width*100,O=50/n.height*100,N=M.pageX,P=M.pageY,F=c.value,I={...d.value},W=d.value.width/d.value.height;document.onmousemove=U=>{if(!_)return;const Z=U.pageX,ee=U.pageY,B=(Z-N)/i.value,Y=(ee-P)/i.value,Q=Math.sqrt(B*B+Y*Y),te=Math.atan2(Y,B)-n.rotate/180*Math.PI;let J=Q*Math.cos(te)/n.width*100,de=Q*Math.sin(te)/n.height*100;o.value&&((w===Rt.RIGHT_BOTTOM||w===Rt.LEFT_TOP)&&(de=J/W),(w===Rt.LEFT_BOTTOM||w===Rt.RIGHT_TOP)&&(de=-J/W));let G,Ae,ue,ce;w===Rt.LEFT_TOP?(I.left+J<0&&(J=-I.left),I.top+de<0&&(de=-I.top),I.width-JF.width&&(J=F.width-(I.left+I.width)),I.top+de<0&&(de=-I.top),I.width+JF.height&&(de=F.height-(I.top+I.height)),I.width-JF.width&&(J=F.width-(I.left+I.width)),I.top+I.height+de>F.height&&(de=F.height-(I.top+I.height)),I.width+JF.height&&(de=F.height-(I.top+I.height)),I.height+deF.width&&(J=F.width-(I.left+I.width)),I.width+J{_=!1,document.onmousemove=null,document.onmouseup=null,y(),setTimeout(()=>s.value=!1,0)}},x=Se(()=>{const M="rotate-",w=n.rotate;return w>-22.5&&w<=22.5?M+0:w>22.5&&w<=67.5?M+45:w>67.5&&w<=112.5?M+90:w>112.5&&w<=157.5?M+135:w>157.5||w<=-157.5?M+0:w>-157.5&&w<=-112.5?M+45:w>-112.5&&w<=-67.5?M+90:w>-67.5&&w<=-22.5?M+135:M+0}),S=[Rt.LEFT_TOP,Rt.RIGHT_TOP,Rt.LEFT_BOTTOM,Rt.RIGHT_BOTTOM],L=[Rt.TOP,Rt.BOTTOM,Rt.LEFT,Rt.RIGHT];return(M,w)=>{const _=_n("click-outside");return Ge((D(),q("div",{class:"image-clip-handler",style:Le(a.value)},[V("img",{class:"bottom-img",src:M.src,draggable:!1,alt:"",style:Le(f.value)},null,12,A3e),V("div",{class:"top-image-content",style:Le({...h.value,clipPath:M.clipPath})},[V("img",{class:"top-img",src:M.src,draggable:!1,alt:"",style:Le(p.value)},null,12,R3e)],4),V("div",{class:"operate",style:Le(h.value),onMousedown:w[0]||(w[0]=Ft(C=>R(C),["stop"]))},[(D(),q(Ee,null,qe(S,C=>V("div",{class:ze(["clip-point",C,x.value]),key:C,onMousedown:Ft(O=>A(O,C),["stop"])},S3e,42,b3e)),64)),(D(),q(Ee,null,qe(L,C=>V("div",{class:ze(["clip-point",C,x.value]),key:C,onMousedown:Ft(O=>A(O,C),["stop"])},L3e,42,w3e)),64))],36)],4)),[[_,g]])}}}),_3e=Be(T3e,[["__scopeId","data-v-31b3b0f9"]]),O3e=["src"],k3e=We({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=pt(),r=st(),{clipingImageElementId:i}=Ve(n),o=Se(()=>i.value===t.elementInfo.id),{addHistorySnapshot:a}=nn(),s=Se(()=>t.elementInfo.shadow),{shadowStyle:l}=hd(s),u=Se(()=>t.elementInfo.flipH),c=Se(()=>t.elementInfo.flipV),{flipStyle:f}=m3(u,c),d=Se(()=>t.elementInfo),{clipShape:h,imgPosition:p}=kk(d),v=Se(()=>t.elementInfo.filters),{filter:g}=Mz(v),m=R=>{t.elementInfo.lock||(R.stopPropagation(),t.selectElement(R,t.elementInfo))},y=R=>{if(n.setClipingImageElementId(""),!R)return;const{range:A,position:x}=R,S=t.elementInfo.clip||{shape:"rect",range:[[0,0],[100,100]]},L=t.elementInfo.left+x.left,M=t.elementInfo.top+x.top,w=t.elementInfo.width+x.width,_=t.elementInfo.height+x.height;let C=0,O=0;if(t.elementInfo.rotate){const P=L+w/2-(t.elementInfo.left+t.elementInfo.width/2),F=-(M+_/2-(t.elementInfo.top+t.elementInfo.height/2)),I=-t.elementInfo.rotate*Math.PI/180,W=P*Math.cos(I)-F*Math.sin(I),U=P*Math.sin(I)+F*Math.cos(I);C=W-P,O=-(U-F)}const N={clip:{...S,range:A},left:L+C,top:M+O,width:w,height:_};r.updateElement({id:t.elementInfo.id,props:N}),a()};return(R,A)=>{const x=_n("contextmenu");return D(),q("div",{class:ze(["editable-element-image",{lock:R.elementInfo.lock}]),style:Le({top:R.elementInfo.top+"px",left:R.elementInfo.left+"px",width:R.elementInfo.width+"px",height:R.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:Le({transform:`rotate(${R.elementInfo.rotate}deg)`})},[o.value?(D(),Oe(_3e,{key:0,src:R.elementInfo.src,clipData:R.elementInfo.clip,width:R.elementInfo.width,height:R.elementInfo.height,top:R.elementInfo.top,left:R.elementInfo.left,rotate:R.elementInfo.rotate,clipPath:z(h).style,onClip:A[0]||(A[0]=S=>y(S))},null,8,["src","clipData","width","height","top","left","rotate","clipPath"])):Ge((D(),q("div",{key:1,class:"element-content",style:Le({filter:z(l)?`drop-shadow(${z(l)})`:"",transform:z(f)}),onMousedown:A[2]||(A[2]=S=>m(S)),onTouchstart:A[3]||(A[3]=S=>m(S))},[k(Lz,{elementInfo:R.elementInfo},null,8,["elementInfo"]),V("div",{class:"image-content",style:Le({clipPath:z(h).style})},[V("img",{src:R.elementInfo.src,draggable:!1,style:Le({top:z(p).top,left:z(p).left,width:z(p).width,height:z(p).height,filter:z(g)}),onDragstart:A[1]||(A[1]=Ft(()=>{},["prevent"])),alt:""},null,44,O3e),R.elementInfo.colorMask?(D(),q("div",{key:0,class:"color-mask",style:Le({backgroundColor:R.elementInfo.colorMask})},null,4)):Ye("",!0)],4)],36)),[[x,R.contextmenus]])],4)],6)}}}),_z=Be(k3e,[["__scopeId","data-v-86b9f3af"]]),P3e=["width","height"],C3e=["d","stroke","stroke-width","stroke-dasharray"],I3e=We({__name:"ElementOutline",props:{width:{},height:{},outline:{}},setup(e){const t=e,{outlineWidth:n,outlineColor:r,strokeDashArray:i}=t1(Uv(t,"outline"));return(o,a)=>o.outline?(D(),q("svg",{key:0,class:"element-outline",overflow:"visible",width:o.width,height:o.height},[V("path",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:"transparent",d:`M0,0 L${o.width},0 L${o.width},${o.height} L0,${o.height} Z`,stroke:z(r),"stroke-width":z(n),"stroke-dasharray":z(i)},null,8,C3e)],8,P3e)):Ye("",!0)}}),y3=Be(I3e,[["__scopeId","data-v-e2ef58f5"]]),Zi=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},i2=function(e){let t=e.assignedSlot||e.parentNode;return t&&t.nodeType==11?t.host:t};let g6=null;const Ku=function(e,t,n){let r=g6||(g6=document.createRange());return r.setEnd(e,n??e.nodeValue.length),r.setStart(e,t||0),r},N3e=function(){g6=null},t0=function(e,t,n,r){return n&&(WX(e,t,n,r,-1)||WX(e,t,n,r,1))},F3e=/^(img|br|input|textarea|hr)$/i;function WX(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:$l(e))){let o=e.parentNode;if(!o||o.nodeType!=1||oy(e)||F3e.test(e.nodeName)||e.contentEditable=="false")return!1;t=Zi(e)+(i<0?0:1),e=o}else if(e.nodeType==1){if(e=e.childNodes[t+(i<0?-1:0)],e.contentEditable=="false")return!1;t=i<0?$l(e):0}else return!1}}function $l(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function E3e(e,t){for(;;){if(e.nodeType==3&&t)return e;if(e.nodeType==1&&t>0){if(e.contentEditable=="false")return null;e=e.childNodes[t-1],t=$l(e)}else if(e.parentNode&&!oy(e))t=Zi(e),e=e.parentNode;else return null}}function X3e(e,t){for(;;){if(e.nodeType==3&&t2),hs=kv||(gu?/Mac/.test(gu.platform):!1),U3e=gu?/Win/.test(gu.platform):!1,ol=/Android \d/.test(pd),ay=!!VX&&"webkitFontSmoothing"in VX.documentElement.style,B3e=ay?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function Y3e(e){let t=e.defaultView&&e.defaultView.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function Uu(e,t){return typeof e=="number"?e:e[t]}function Z3e(e){let t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*r}}function DX(e,t,n){let r=e.someProp("scrollThreshold")||0,i=e.someProp("scrollMargin")||5,o=e.dom.ownerDocument;for(let a=n||e.dom;a;a=i2(a)){if(a.nodeType!=1)continue;let s=a,l=s==o.body,u=l?Y3e(o):Z3e(s),c=0,f=0;if(t.topu.bottom-Uu(r,"bottom")&&(f=t.bottom-t.top>u.bottom-u.top?t.top+Uu(i,"top")-u.top:t.bottom-u.bottom+Uu(i,"bottom")),t.leftu.right-Uu(r,"right")&&(c=t.right-u.right+Uu(i,"right")),c||f)if(l)o.defaultView.scrollBy(c,f);else{let d=s.scrollLeft,h=s.scrollTop;f&&(s.scrollTop+=f),c&&(s.scrollLeft+=c);let p=s.scrollLeft-d,v=s.scrollTop-h;t={left:t.left-p,top:t.top-v,right:t.right-p,bottom:t.bottom-v}}if(l||/^(fixed|sticky)$/.test(getComputedStyle(a).position))break}}function Q3e(e){let t=e.dom.getBoundingClientRect(),n=Math.max(0,t.top),r,i;for(let o=(t.left+t.right)/2,a=n+1;a=n-20){r=s,i=l.top;break}}return{refDOM:r,refTop:i,stack:Pz(e.dom)}}function Pz(e){let t=[],n=e.ownerDocument;for(let r=e;r&&(t.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),e!=n);r=i2(r));return t}function H3e({refDOM:e,refTop:t,stack:n}){let r=e?e.getBoundingClientRect().top:0;Cz(n,r==0?0:r-t)}function Cz(e,t){for(let n=0;n=s){a=Math.max(p.bottom,a),s=Math.min(p.top,s);let v=p.left>t.left?p.left-t.left:p.right=(p.left+p.right)/2?1:0));continue}}else p.top>t.top&&!l&&p.left<=t.left&&p.right>=t.left&&(l=c,u={left:Math.max(p.left,Math.min(p.right,t.left)),top:p.top});!n&&(t.left>=p.right&&t.top>=p.top||t.left>=p.left&&t.top>=p.bottom)&&(o=f+1)}}return!n&&l&&(n=l,i=u,r=0),n&&n.nodeType==3?G3e(n,i):!n||r&&n.nodeType==1?{node:e,offset:o}:Iz(n,i)}function G3e(e,t){let n=e.nodeValue.length,r=document.createRange();for(let i=0;i=(o.left+o.right)/2?1:0)}}return{node:e,offset:0}}function Pk(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function z3e(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left(a.left+a.right)/2?1:-1}return e.docView.posFromDOM(r,i,o)}function $3e(e,t,n,r){let i=-1;for(let o=t,a=!1;o!=e.dom;){let s=e.docView.nearestDesc(o,!0);if(!s)return null;if(s.dom.nodeType==1&&(s.node.isBlock&&s.parent||!s.contentDOM)){let l=s.dom.getBoundingClientRect();if(s.node.isBlock&&s.parent&&(!a&&l.left>r.left||l.top>r.top?i=s.posBefore:(!a&&l.right-1?i:e.docView.posFromDOM(t,n,-1)}function Nz(e,t,n){let r=e.childNodes.length;if(r&&n.topt.top&&i++}let u;ay&&i&&r.nodeType==1&&(u=r.childNodes[i-1]).nodeType==1&&u.contentEditable=="false"&&u.getBoundingClientRect().top>=t.top&&i--,r==e.dom&&i==r.childNodes.length-1&&r.lastChild.nodeType==1&&t.top>r.lastChild.getBoundingClientRect().bottom?s=e.state.doc.content.size:(i==0||r.nodeType!=1||r.childNodes[i-1].nodeName!="BR")&&(s=$3e(e,r,i,t))}s==null&&(s=J3e(e,a,t));let l=e.docView.nearestDesc(a,!0);return{pos:s,inside:l?l.posAtStart-l.border:-1}}function UX(e){return e.top=0&&i==r.nodeValue.length?(l--,c=1):n<0?l--:u++,N1(of(Ku(r,l,u),c),c<0)}if(!e.state.doc.resolve(t-(o||0)).parent.inlineContent){if(o==null&&i&&(n<0||i==$l(r))){let l=r.childNodes[i-1];if(l.nodeType==1)return k5(l.getBoundingClientRect(),!1)}if(o==null&&i<$l(r)){let l=r.childNodes[i];if(l.nodeType==1)return k5(l.getBoundingClientRect(),!0)}return k5(r.getBoundingClientRect(),n>=0)}if(o==null&&i&&(n<0||i==$l(r))){let l=r.childNodes[i-1],u=l.nodeType==3?Ku(l,$l(l)-(a?0:1)):l.nodeType==1&&(l.nodeName!="BR"||!l.nextSibling)?l:null;if(u)return N1(of(u,1),!1)}if(o==null&&i<$l(r)){let l=r.childNodes[i];for(;l.pmViewDesc&&l.pmViewDesc.ignoreForCoords;)l=l.nextSibling;let u=l?l.nodeType==3?Ku(l,0,a?0:1):l.nodeType==1?l:null:null;if(u)return N1(of(u,-1),!0)}return N1(of(r.nodeType==3?Ku(r):r,-n),n>=0)}function N1(e,t){if(e.width==0)return e;let n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function k5(e,t){if(e.height==0)return e;let n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function Ez(e,t,n){let r=e.state,i=e.root.activeElement;r!=t&&e.updateState(t),i!=e.dom&&e.focus();try{return n()}finally{r!=t&&e.updateState(r),i!=e.dom&&i&&i.focus()}}function e4e(e,t,n){let r=t.selection,i=n=="up"?r.$from:r.$to;return Ez(e,t,()=>{let{node:o}=e.docView.domFromPos(i.pos,n=="up"?-1:1);for(;;){let s=e.docView.nearestDesc(o,!0);if(!s)break;if(s.node.isBlock){o=s.contentDOM||s.dom;break}o=s.dom.parentNode}let a=Fz(e,i.pos,1);for(let s=o.firstChild;s;s=s.nextSibling){let l;if(s.nodeType==1)l=s.getClientRects();else if(s.nodeType==3)l=Ku(s,0,s.nodeValue.length).getClientRects();else continue;for(let u=0;uc.top+1&&(n=="up"?a.top-c.top>(c.bottom-a.top)*2:c.bottom-a.bottom>(a.bottom-c.top)*2))return!1}}return!0})}const t4e=/[\u0590-\u08ac]/;function n4e(e,t,n){let{$head:r}=t.selection;if(!r.parent.isTextblock)return!1;let i=r.parentOffset,o=!i,a=i==r.parent.content.size,s=e.domSelection();return!t4e.test(r.parent.textContent)||!s.modify?n=="left"||n=="backward"?o:a:Ez(e,t,()=>{let{focusNode:l,focusOffset:u,anchorNode:c,anchorOffset:f}=e.domSelectionRange(),d=s.caretBidiLevel;s.modify("move",n,"character");let h=r.depth?e.docView.domAfterPos(r.before()):e.dom,{focusNode:p,focusOffset:v}=e.domSelectionRange(),g=p&&!h.contains(p.nodeType==1?p:p.parentNode)||l==p&&u==v;try{s.collapse(c,f),l&&(l!=c||u!=f)&&s.extend&&s.extend(l,u)}catch{}return d!=null&&(s.caretBidiLevel=d),g})}let BX=null,YX=null,ZX=!1;function r4e(e,t,n){return BX==t&&YX==n?ZX:(BX=t,YX=n,ZX=n=="up"||n=="down"?e4e(e,t,n):n4e(e,t,n))}const Ms=0,QX=1,yh=2,mu=3;class sy{constructor(t,n,r,i){this.parent=t,this.children=n,this.dom=r,this.contentDOM=i,this.dirty=Ms,r.pmViewDesc=this}matchesWidget(t){return!1}matchesMark(t){return!1}matchesNode(t,n,r){return!1}matchesHack(t){return!1}parseRule(){return null}stopEvent(t){return!1}get size(){let t=0;for(let n=0;nZi(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))i=t.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let o=t;;o=o.parentNode){if(o==this.dom){i=!1;break}if(o.previousSibling)break}if(i==null&&n==t.childNodes.length)for(let o=t;;o=o.parentNode){if(o==this.dom){i=!0;break}if(o.nextSibling)break}}return i??r>0?this.posAtEnd:this.posAtStart}nearestDesc(t,n=!1){for(let r=!0,i=t;i;i=i.parentNode){let o=this.getDesc(i),a;if(o&&(!n||o.node))if(r&&(a=o.nodeDOM)&&!(a.nodeType==1?a.contains(t.nodeType==1?t:t.parentNode):a==t))r=!1;else return o}}getDesc(t){let n=t.pmViewDesc;for(let r=n;r;r=r.parent)if(r==this)return n}posFromDOM(t,n,r){for(let i=t;i;i=i.parentNode){let o=this.getDesc(i);if(o)return o.localPosFromDOM(t,n,r)}return-1}descAt(t){for(let n=0,r=0;nt||a instanceof Wz){i=t-o;break}o=s}if(i)return this.children[r].domFromPos(i-this.children[r].border,n);for(let o;r&&!(o=this.children[r-1]).size&&o instanceof Xz&&o.side>=0;r--);if(n<=0){let o,a=!0;for(;o=r?this.children[r-1]:null,!(!o||o.dom.parentNode==this.contentDOM);r--,a=!1);return o&&n&&a&&!o.border&&!o.domAtom?o.domFromPos(o.size,n):{node:this.contentDOM,offset:o?Zi(o.dom)+1:0}}else{let o,a=!0;for(;o=r=c&&n<=u-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(t,n,c);t=a;for(let f=s;f>0;f--){let d=this.children[f-1];if(d.size&&d.dom.parentNode==this.contentDOM&&!d.emptyChildAt(1)){i=Zi(d.dom)+1;break}t-=d.size}i==-1&&(i=0)}if(i>-1&&(u>n||s==this.children.length-1)){n=u;for(let c=s+1;ch&&a48<=e.charCodeAt(0)&&e.charCodeAt(0)<=57;class Obe extends ez{constructor(){super();Tr(this,"curNumber","");Tr(this,"curCommandType",-1);Tr(this,"curCommandRelative",!1);Tr(this,"canParseCommandOrComma",!0);Tr(this,"curNumberHasExp",!1);Tr(this,"curNumberHasExpDigits",!1);Tr(this,"curNumberHasDecimal",!1);Tr(this,"curArgs",[])}finish(n=[]){if(this.parse(" ",n),this.curArgs.length!==0||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return n}parse(n,r=[]){const i=o=>{r.push(o),this.curArgs.length=0,this.canParseCommandOrComma=!0};for(let o=0;ou)throw new SyntaxError(`Expected positive number, got "${u}" at index "${o}"`)}else if((this.curArgs.length===3||this.curArgs.length===4)&&this.curNumber!=="0"&&this.curNumber!=="1")throw new SyntaxError(`Expected a flag, got "${this.curNumber}" at index "${o}"`)}this.curArgs.push(u),this.curArgs.length===kbe[this.curCommandType]&&(lt.HORIZ_LINE_TO===this.curCommandType?i({type:lt.HORIZ_LINE_TO,relative:this.curCommandRelative,x:u}):lt.VERT_LINE_TO===this.curCommandType?i({type:lt.VERT_LINE_TO,relative:this.curCommandRelative,y:u}):this.curCommandType===lt.MOVE_TO||this.curCommandType===lt.LINE_TO||this.curCommandType===lt.SMOOTH_QUAD_TO?(i({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),lt.MOVE_TO===this.curCommandType&&(this.curCommandType=lt.LINE_TO)):this.curCommandType===lt.CURVE_TO?i({type:lt.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===lt.SMOOTH_CURVE_TO?i({type:lt.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===lt.QUAD_TO?i({type:lt.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===lt.ARC&&i({type:lt.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!_be(a)){if(a===","&&this.canParseCommandOrComma){this.canParseCommandOrComma=!1;continue}if(a==="+"||a==="-"||a==="."){this.curNumber=a,this.curNumberHasDecimal=a===".";continue}if(l){this.curNumber=a,this.curNumberHasDecimal=!1;continue}if(this.curArgs.length!==0)throw new SyntaxError(`Unterminated command at index ${o}.`);if(!this.canParseCommandOrComma)throw new SyntaxError(`Unexpected character "${a}" at index ${o}. Command cannot follow comma`);if(this.canParseCommandOrComma=!1,a==="z"||a==="Z"){r.push({type:lt.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1;continue}else if(a==="h"||a==="H")this.curCommandType=lt.HORIZ_LINE_TO,this.curCommandRelative=a==="h";else if(a==="v"||a==="V")this.curCommandType=lt.VERT_LINE_TO,this.curCommandRelative=a==="v";else if(a==="m"||a==="M")this.curCommandType=lt.MOVE_TO,this.curCommandRelative=a==="m";else if(a==="l"||a==="L")this.curCommandType=lt.LINE_TO,this.curCommandRelative=a==="l";else if(a==="c"||a==="C")this.curCommandType=lt.CURVE_TO,this.curCommandRelative=a==="c";else if(a==="s"||a==="S")this.curCommandType=lt.SMOOTH_CURVE_TO,this.curCommandRelative=a==="s";else if(a==="q"||a==="Q")this.curCommandType=lt.QUAD_TO,this.curCommandRelative=a==="q";else if(a==="t"||a==="T")this.curCommandType=lt.SMOOTH_QUAD_TO,this.curCommandRelative=a==="t";else if(a==="a"||a==="A")this.curCommandType=lt.ARC,this.curCommandRelative=a==="a";else throw new SyntaxError(`Unexpected character "${a}" at index ${o}.`)}}return r}transform(n){return Object.create(this,{parse:{value(i,o=[]){const a=Object.getPrototypeOf(this).parse.call(this,i);for(const s of a){const l=n(s);Array.isArray(l)?o.push(...l):o.push(l)}return o}}})}}const cr=class cr extends ez{constructor(n){super();Tr(this,"commands");typeof n=="string"?this.commands=cr.parse(n):this.commands=n}encode(){return cr.encode(this.commands)}getBounds(){const n=Si.CALCULATE_BOUNDS();return this.transform(n),n}transform(n){const r=[];for(const i of this.commands){const o=n(i);Array.isArray(o)?r.push(...o):r.push(o)}return this.commands=r,this}static encode(n){return fbe(n)}static parse(n){const r=new Obe,i=[];return r.parse(n,i),r.finish(i),i}};Tr(cr,"CLOSE_PATH",1),Tr(cr,"MOVE_TO",2),Tr(cr,"HORIZ_LINE_TO",4),Tr(cr,"VERT_LINE_TO",8),Tr(cr,"LINE_TO",16),Tr(cr,"CURVE_TO",32),Tr(cr,"SMOOTH_CURVE_TO",64),Tr(cr,"QUAD_TO",128),Tr(cr,"SMOOTH_QUAD_TO",256),Tr(cr,"ARC",512),Tr(cr,"LINE_COMMANDS",cr.LINE_TO|cr.HORIZ_LINE_TO|cr.VERT_LINE_TO),Tr(cr,"DRAWING_COMMANDS",cr.HORIZ_LINE_TO|cr.VERT_LINE_TO|cr.LINE_TO|cr.CURVE_TO|cr.SMOOTH_CURVE_TO|cr.QUAD_TO|cr.SMOOTH_QUAD_TO|cr.ARC);let lt=cr;const kbe={[lt.MOVE_TO]:2,[lt.LINE_TO]:2,[lt.HORIZ_LINE_TO]:1,[lt.VERT_LINE_TO]:1,[lt.CLOSE_PATH]:0,[lt.QUAD_TO]:4,[lt.SMOOTH_QUAD_TO]:2,[lt.CURVE_TO]:6,[lt.SMOOTH_CURVE_TO]:4,[lt.ARC]:7};var Pbe=function(){function e(t,n){var r=[],i=!0,o=!1,a=void 0;try{for(var s=t[Symbol.iterator](),l;!(i=(l=s.next()).done)&&(r.push(l.value),!(n&&r.length===n));i=!0);}catch(u){o=!0,a=u}finally{try{!i&&s.return&&s.return()}finally{if(o)throw a}}return r}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),um=Math.PI*2,M5=function(t,n,r,i,o,a,s){var l=t.x,u=t.y;l*=n,u*=r;var c=i*l-o*u,f=o*l+i*u;return{x:c+a,y:f+s}},Cbe=function(t,n){var r=n===1.5707963267948966?.551915024494:n===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(n/4),i=Math.cos(t),o=Math.sin(t),a=Math.cos(t+n),s=Math.sin(t+n);return[{x:i-o*r,y:o+i*r},{x:a+s*r,y:s-a*r},{x:a,y:s}]},vX=function(t,n,r,i){var o=t*i-n*r<0?-1:1,a=t*r+n*i;return a>1&&(a=1),a<-1&&(a=-1),o*Math.acos(a)},Ibe=function(t,n,r,i,o,a,s,l,u,c,f,d){var h=Math.pow(o,2),p=Math.pow(a,2),v=Math.pow(f,2),g=Math.pow(d,2),m=h*p-h*g-p*v;m<0&&(m=0),m/=h*g+p*v,m=Math.sqrt(m)*(s===l?-1:1);var y=m*o/a*d,R=m*-a/o*f,A=c*y-u*R+(t+r)/2,x=u*y+c*R+(n+i)/2,S=(f-y)/o,L=(d-R)/a,M=(-f-y)/o,w=(-d-R)/a,_=vX(1,0,S,L),C=vX(S,L,M,w);return l===0&&C>0&&(C-=um),l===1&&C<0&&(C+=um),[A,x,_,C]},Nbe=function(t){var n=t.px,r=t.py,i=t.cx,o=t.cy,a=t.rx,s=t.ry,l=t.xAxisRotation,u=l===void 0?0:l,c=t.largeArcFlag,f=c===void 0?0:c,d=t.sweepFlag,h=d===void 0?0:d,p=[];if(a===0||s===0)return[];var v=Math.sin(u*um/360),g=Math.cos(u*um/360),m=g*(n-i)/2+v*(r-o)/2,y=-v*(n-i)/2+g*(r-o)/2;if(m===0&&y===0)return[];a=Math.abs(a),s=Math.abs(s);var R=Math.pow(m,2)/Math.pow(a,2)+Math.pow(y,2)/Math.pow(s,2);R>1&&(a*=Math.sqrt(R),s*=Math.sqrt(R));var A=Ibe(n,r,i,o,a,s,f,h,v,g,m,y),x=Pbe(A,4),S=x[0],L=x[1],M=x[2],w=x[3],_=Math.abs(w)/(um/4);Math.abs(1-_)<1e-7&&(_=1);var C=Math.max(Math.ceil(_),1);w/=C;for(var O=0;O{const t=new lt(e),n=[];for(const r of t.commands){const i=Fbe[r.type];if((r.type===2||r.type===16)&&n.push({x:r.x,y:r.y,relative:r.relative,type:i}),r.type===32)n.push({x:r.x,y:r.y,curve:{type:"cubic",x1:r.x1,y1:r.y1,x2:r.x2,y2:r.y2},relative:r.relative,type:i});else if(r.type===128)n.push({x:r.x,y:r.y,curve:{type:"quadratic",x1:r.x1,y1:r.y1},relative:r.relative,type:i});else if(r.type===512){const o=n[n.length-1];if(!["M","L","Q","C"].includes(o.type))continue;const a=Nbe({px:o.x,py:o.y,cx:r.x,cy:r.y,rx:r.rX,ry:r.rY,xAxisRotation:r.xRot,largeArcFlag:r.lArcFlag,sweepFlag:r.sweepFlag});for(const s of a)n.push({x:s.x,y:s.y,curve:{type:"cubic",x1:s.x1,y1:s.y1,x2:s.x2,y2:s.y2},relative:!1,type:"C"})}else if(r.type===1)n.push({close:!0,type:i});else continue}return n},Ebe=e=>{try{const t=new lt(e),n=[],r=[];for(const i of t.commands){const o="x"in i?i.x:0,a="y"in i?i.y:0;n.push(o),r.push(a)}return{minX:Math.min(...n),minY:Math.min(...r),maxX:Math.max(...n),maxY:Math.max(...r)}}catch{return{minX:0,minY:0,maxX:0,maxY:0}}},mX=(e,t)=>e.replace(/font-size:\s*([\d.]+)pt/g,(n,r)=>`font-size: ${(parseFloat(r)*t).toFixed(1)}px`),Xbe=()=>{const e=st(),{theme:t}=Ve(st()),{addHistorySnapshot:n}=nn(),{addSlidesFromData:r}=H2(),{isEmptySlide:i}=Ac(),o=he(!1),a=(c,f=!1)=>{const d=c[0],h=new FileReader;h.addEventListener("load",()=>{try{const p=JSON.parse(BH(h.result));f?(e.updateSlideIndex(0),e.setSlides(p),n()):i.value?(e.setSlides(p),n()):r(p)}catch{pn.error("无法正确读取 / 解析该文件")}}),h.readAsText(d)},s=c=>{let f=[0,0],d=[0,0];!c.isFlipV&&!c.isFlipH?(f=[0,0],d=[c.width,c.height]):c.isFlipV&&c.isFlipH?(f=[c.width,c.height],d=[0,0]):c.isFlipV&&!c.isFlipH?(f=[0,c.height],d=[c.width,0]):(f=[c.width,0],d=[0,c.height]);const h={type:"line",id:Zt(10),width:c.borderWidth||1,left:c.left,top:c.top,start:f,end:d,style:c.borderType,color:c.borderColor,points:["",/straightConnector/.test(c.shapType)?"arrow":""]};return/bentConnector/.test(c.shapType)&&(h.broken2=[Math.abs(f[0]-d[0])/2,Math.abs(f[1]-d[1])/2]),h},l=(c,f,d,h,p,v,g)=>{const m=g*(Math.PI/180),y=c+d/2,R=f+h/2,A=p-d/2,x=v-h/2,S=A*Math.cos(m)+x*Math.sin(m),L=-A*Math.sin(m)+x*Math.cos(m),M=y+S,w=R+L;return{x:M,y:w}};return{importSpecificFile:a,importPPTXFile:(c,f=!1)=>{const d=c[0];if(!d)return;o.value=!0;const h=[];for(const v of tk)h.push(...v.children);const p=new FileReader;p.onload=async v=>{const g=await $Re(v.target.result),m=96/72,y=g.size.width;e.setViewportSize(y*m);const R=[];for(const A of g.slides){const{type:x,value:S}=A.fill;let L;x==="image"?L={type:"image",image:{src:S.picBase64,size:"cover"}}:x==="gradient"?L={type:"gradient",gradient:{type:"linear",colors:S.colors.map(_=>({..._,pos:parseInt(_.pos)})),rotate:S.rot}}:L={type:"solid",color:S};const M={id:Zt(10),elements:[],background:L,remark:A.note||""},w=_=>{var O,N;const C=_.sort((P,F)=>P.order-F.order);for(const P of C){const F=P.width||1,I=P.height||1,W=P.left,U=P.top;if(P.width=P.width*m,P.height=P.height*m,P.left=P.left*m,P.top=P.top*m,P.type==="text"){const Z={type:"text",id:Zt(10),width:P.width,height:P.height,left:P.left,top:P.top,rotate:P.rotate,defaultFontName:t.value.fontName,defaultColor:t.value.fontColor,content:mX(P.content,m),lineHeight:1,outline:{color:P.borderColor,width:P.borderWidth,style:P.borderType},fill:P.fill.type==="color"?P.fill.value:"",vertical:P.isVertical};P.shadow&&(Z.shadow={h:P.shadow.h*m,v:P.shadow.v*m,blur:P.shadow.blur*m,color:P.shadow.color}),M.elements.push(Z)}else if(P.type==="image")M.elements.push({type:"image",id:Zt(10),src:P.src,width:P.width,height:P.height,left:P.left,top:P.top,fixedRatio:!0,rotate:P.rotate,flipH:P.isFlipH,flipV:P.isFlipV});else if(P.type==="audio")M.elements.push({type:"audio",id:Zt(10),src:P.blob,width:P.width,height:P.height,left:P.left,top:P.top,rotate:0,fixedRatio:!1,color:t.value.themeColor,loop:!1,autoplay:!1});else if(P.type==="video")M.elements.push({type:"video",id:Zt(10),src:P.blob||P.src,width:P.width,height:P.height,left:P.left,top:P.top,rotate:0,autoplay:!1});else if(P.type==="shape")if(P.shapType==="line"||/Connector/.test(P.shapType)){const Z=s(P);M.elements.push(Z)}else{const Z=h.find(K=>K.pptxShapeType===P.shapType),ee={mid:"middle",down:"bottom",up:"top"},B=((O=P.fill)==null?void 0:O.type)==="gradient"?{type:"linear",colors:P.fill.value.colors.map(K=>({...K,pos:parseInt(K.pos)})),rotate:P.fill.value.rot}:void 0,Y=((N=P.fill)==null?void 0:N.type)==="color"?P.fill.value:"",Q={type:"shape",id:Zt(10),width:P.width,height:P.height,left:P.left,top:P.top,viewBox:[200,200],path:"M 0 0 L 200 0 L 200 200 L 0 200 Z",fill:Y,gradient:B,fixedRatio:!1,rotate:P.rotate,outline:{color:P.borderColor,width:P.borderWidth,style:P.borderType},text:{content:mX(P.content,m),defaultFontName:t.value.fontName,defaultColor:t.value.fontColor,align:ee[P.vAlign]||"middle"},flipH:P.isFlipH,flipV:P.isFlipV};if(P.shadow&&(Q.shadow={h:P.shadow.h*m,v:P.shadow.v*m,blur:P.shadow.blur*m,color:P.shadow.color}),Z&&(Q.path=Z.path,Q.viewBox=Z.viewBox,Z.pathFormula)){Q.pathFormula=Z.pathFormula,Q.viewBox=[P.width,P.height];const K=f0[Z.pathFormula];"editable"in K&&K.editable?(Q.path=K.formula(P.width,P.height,K.defaultValue),Q.keypoints=K.defaultValue):Q.path=K.formula(P.width,P.height)}if(P.shapType==="custom")if(P.path.indexOf("NaN")!==-1)Q.path="";else{Q.special=!0,Q.path=P.path;const{maxX:K,maxY:te}=Ebe(Q.path);Q.viewBox=[K||F,te||I]}Q.path&&M.elements.push(Q)}else if(P.type==="table"){const Z=P.data.length,ee=P.data[0].length,B={fontname:t.value.fontName,color:t.value.fontColor},Y=[];for(let K=0;K`坐标${te+1}`),ee=["X","Y"],B=P.data;else{const K=P.data;Z=Object.values(K[0].xlabels),ee=K.map(te=>te.key),B=K.map(te=>te.values.map(J=>J.y))}const Y={};let Q="bar";switch(P.chartType){case"barChart":case"bar3DChart":Q="bar",P.barDir==="bar"&&(Q="column"),(P.grouping==="stacked"||P.grouping==="percentStacked")&&(Y.stack=!0);break;case"lineChart":case"line3DChart":(P.grouping==="stacked"||P.grouping==="percentStacked")&&(Y.stack=!0),Q="line";break;case"areaChart":case"area3DChart":(P.grouping==="stacked"||P.grouping==="percentStacked")&&(Y.stack=!0),Q="area";break;case"scatterChart":case"bubbleChart":Q="scatter";break;case"pieChart":case"pie3DChart":Q="pie";break;case"radarChart":Q="radar";break;case"doughnutChart":Q="ring";break}M.elements.push({type:"chart",id:Zt(10),chartType:Q,width:P.width,height:P.height,left:P.left,top:P.top,rotate:0,themeColors:P.colors.length?P.colors:[t.value.themeColor],textColor:t.value.fontColor,data:{labels:Z,legends:ee,series:B},options:Y})}else if(P.type==="group"){const Z=P.elements.map(ee=>{let B=ee.left+W,Y=ee.top+U;if(P.rotate){const{x:Q,y:K}=l(W,U,F,I,ee.left,ee.top,P.rotate);B=Q,Y=K}return{...ee,left:B,top:Y}});w(Z)}else if(P.type==="diagram"){const Z=P.elements.map(ee=>({...ee,left:ee.left+W,top:ee.top+U}));w(Z)}}};w([...A.elements,...A.layoutElements]),R.push(M)}f?(e.updateSlideIndex(0),e.setSlides(R),n()):i.value?(e.setSlides(R),n()):r(R),o.value=!1},p.readAsArrayBuffer(d)},exporting:o}},Wbe={class:"hotkey-doc"},Vbe={class:"title"},Dbe={class:"label"},Ube={class:"value"},Bbe={key:1,class:"row"},Ybe=We({__name:"HotkeyDoc",setup(e){return(t,n)=>(D(),q("div",Wbe,[(D(!0),q(Ee,null,qe(z(Jme),r=>(D(),q(Ee,{key:r.type},[V("div",Vbe,dt(r.type),1),(D(!0),q(Ee,null,qe(r.children,i=>(D(),q("div",{class:"hotkey-item",key:i.label},[i.value?(D(),q(Ee,{key:0},[V("div",Dbe,dt(i.label),1),V("div",Ube,dt(i.value),1)],64)):(D(),q("div",Bbe,dt(i.label),1))]))),128))],64))),128))]))}}),Zbe=Be(Ybe,[["__scopeId","data-v-42fbe598"]]),Qbe=["accept"],Hbe=We({__name:"FileInput",props:{accept:{default:"image/*"}},emits:["change"],setup(e,{emit:t}){const n=t,r=he(),i=()=>{r.value&&(r.value.value="",r.value.click())},o=a=>{const s=a.target.files;s&&n("change",s)};return(a,s)=>(D(),q("div",{class:"file-input",onClick:s[1]||(s[1]=l=>i())},[ar(a.$slots,"default",{},void 0,!0),V("input",{class:"input",type:"file",name:"upload",ref_key:"inputRef",ref:r,accept:a.accept,onChange:s[0]||(s[0]=l=>o(l))},null,40,Qbe)]))}}),qh=Be(Hbe,[["__scopeId","data-v-1bd53d05"]]),Kbe=e=>(rn("data-v-cb40f98b"),e=e(),on(),e),Gbe={class:"spin"},zbe=Kbe(()=>V("div",{class:"spinner"},null,-1)),Jbe={class:"text"},$be=We({__name:"FullscreenSpin",props:{loading:{type:Boolean,default:!1},mask:{type:Boolean,default:!0},tip:{default:""}},setup(e){return(t,n)=>t.loading?(D(),q("div",{key:0,class:ze(["fullscreen-spin",{mask:t.mask}])},[V("div",Gbe,[zbe,V("div",Jbe,dt(t.tip),1)])],2)):Ye("",!0)}}),ty=Be($be,[["__scopeId","data-v-cb40f98b"]]),jbe={class:"header"},qbe=We({__name:"Drawer",props:{visible:{type:Boolean},width:{default:320},contentStyle:{},placement:{default:"right"}},emits:["update:visible"],setup(e,{emit:t}){const n=e,r=t,i=he(!1),o=Se(()=>({width:n.width+"px",...n.contentStyle||{}}));return(a,s)=>{const l=xe("IconClose");return D(),Oe(bO,{to:"body"},[k(Qh,{name:`drawer-slide-${a.placement}`,onAfterLeave:s[1]||(s[1]=u=>i.value=!1),onBeforeEnter:s[2]||(s[2]=u=>i.value=!0)},{default:ie(()=>[Ge(V("div",{class:ze(["drawer",a.placement]),style:Le({width:n.width+"px"})},[V("div",jbe,[ar(a.$slots,"title",{},void 0,!0),V("span",{class:"close-btn",onClick:s[0]||(s[0]=u=>r("update:visible",!1))},[k(l)])]),i.value?(D(),q("div",{key:0,class:"content",style:Le(o.value)},[ar(a.$slots,"default",{},void 0,!0)],4)):Ye("",!0)],6),[[hc,a.visible]])]),_:3},8,["name"])])}}}),exe=Be(qbe,[["__scopeId","data-v-46f39759"]]),txe={class:"prefix"},nxe=["disabled","value","placeholder","maxlength"],rxe={class:"suffix"},ixe=We({__name:"Input",props:{value:{},disabled:{type:Boolean,default:!1},placeholder:{default:""},simple:{type:Boolean,default:!1},maxlength:{}},emits:["update:value","input","change","blur","focus","enter","backspace"],setup(e,{expose:t,emit:n}){const r=n,i=he(!1),o=c=>{r("update:value",c.target.value)},a=c=>{i.value=!1,r("blur",c)},s=c=>{i.value=!0,r("focus",c)},l=he();return t({focus:()=>{l.value&&l.value.focus()}}),(c,f)=>(D(),q("div",{class:ze(["input",{disabled:c.disabled,focused:i.value,simple:c.simple}])},[V("span",txe,[ar(c.$slots,"prefix",{},void 0,!0)]),V("input",{type:"text",ref_key:"inputRef",ref:l,disabled:c.disabled,value:c.value,placeholder:c.placeholder,maxlength:c.maxlength,onInput:f[0]||(f[0]=d=>o(d)),onFocus:f[1]||(f[1]=d=>s(d)),onBlur:f[2]||(f[2]=d=>a(d)),onChange:f[3]||(f[3]=d=>r("change",d)),onKeydown:[f[4]||(f[4]=hl(d=>r("enter",d),["enter"])),f[5]||(f[5]=hl(d=>r("backspace",d),["backspace"]))]},null,40,nxe),V("span",rxe,[ar(c.$slots,"suffix",{},void 0,!0)])],2))}}),pu=Be(ixe,[["__scopeId","data-v-cc7e5c91"]]);var aa="top",Os="bottom",ks="right",sa="left",bk="auto",ny=[aa,Os,ks,sa],Lv="start",n2="end",oxe="clippingParents",tz="viewport",I1="popper",axe="reference",yX=ny.reduce(function(e,t){return e.concat([t+"-"+Lv,t+"-"+n2])},[]),nz=[].concat(ny,[bk]).reduce(function(e,t){return e.concat([t,t+"-"+Lv,t+"-"+n2])},[]),sxe="beforeRead",lxe="read",uxe="afterRead",cxe="beforeMain",fxe="main",dxe="afterMain",hxe="beforeWrite",pxe="write",vxe="afterWrite",gxe=[sxe,lxe,uxe,cxe,fxe,dxe,hxe,pxe,vxe];function vu(e){return e?(e.nodeName||"").toLowerCase():null}function Qa(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function e0(e){var t=Qa(e).Element;return e instanceof t||e instanceof Element}function ws(e){var t=Qa(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function xk(e){if(typeof ShadowRoot>"u")return!1;var t=Qa(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function mxe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!ws(o)||!vu(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function yxe(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,u){return l[u]="",l},{});!ws(i)||!vu(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const rz={name:"applyStyles",enabled:!0,phase:"write",fn:mxe,effect:yxe,requires:["computeStyles"]};function lu(e){return e.split("-")[0]}var Nh=Math.max,Fx=Math.min,Tv=Math.round;function f6(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function iz(){return!/^((?!chrome|android).)*safari/i.test(f6())}function _v(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&ws(e)&&(i=e.offsetWidth>0&&Tv(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Tv(r.height)/e.offsetHeight||1);var a=e0(e)?Qa(e):window,s=a.visualViewport,l=!iz()&&n,u=(r.left+(l&&s?s.offsetLeft:0))/i,c=(r.top+(l&&s?s.offsetTop:0))/o,f=r.width/i,d=r.height/o;return{width:f,height:d,top:c,right:u+f,bottom:c+d,left:u,x:u,y:c}}function Sk(e){var t=_v(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function oz(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&xk(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function vc(e){return Qa(e).getComputedStyle(e)}function Axe(e){return["table","td","th"].indexOf(vu(e))>=0}function dd(e){return((e0(e)?e.ownerDocument:e.document)||window.document).documentElement}function p3(e){return vu(e)==="html"?e:e.assignedSlot||e.parentNode||(xk(e)?e.host:null)||dd(e)}function AX(e){return!ws(e)||vc(e).position==="fixed"?null:e.offsetParent}function Rxe(e){var t=/firefox/i.test(f6()),n=/Trident/i.test(f6());if(n&&ws(e)){var r=vc(e);if(r.position==="fixed")return null}var i=p3(e);for(xk(i)&&(i=i.host);ws(i)&&["html","body"].indexOf(vu(i))<0;){var o=vc(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function ry(e){for(var t=Qa(e),n=AX(e);n&&Axe(n)&&vc(n).position==="static";)n=AX(n);return n&&(vu(n)==="html"||vu(n)==="body"&&vc(n).position==="static")?t:n||Rxe(e)||t}function wk(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function cm(e,t,n){return Nh(e,Fx(t,n))}function bxe(e,t,n){var r=cm(e,t,n);return r>n?n:r}function az(){return{top:0,right:0,bottom:0,left:0}}function sz(e){return Object.assign({},az(),e)}function lz(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var xxe=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,sz(typeof t!="number"?t:lz(t,ny))};function Sxe(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=lu(n.placement),l=wk(s),u=[sa,ks].indexOf(s)>=0,c=u?"height":"width";if(!(!o||!a)){var f=xxe(i.padding,n),d=Sk(o),h=l==="y"?aa:sa,p=l==="y"?Os:ks,v=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],g=a[l]-n.rects.reference[l],m=ry(o),y=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,R=v/2-g/2,A=f[h],x=y-d[c]-f[p],S=y/2-d[c]/2+R,L=cm(A,S,x),M=l;n.modifiersData[r]=(t={},t[M]=L,t.centerOffset=L-S,t)}}function wxe(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||oz(t.elements.popper,i)&&(t.elements.arrow=i))}const Mxe={name:"arrow",enabled:!0,phase:"main",fn:Sxe,effect:wxe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ov(e){return e.split("-")[1]}var Lxe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Txe(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Tv(n*i)/i||0,y:Tv(r*i)/i||0}}function RX(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,f=e.isFixed,d=a.x,h=d===void 0?0:d,p=a.y,v=p===void 0?0:p,g=typeof c=="function"?c({x:h,y:v}):{x:h,y:v};h=g.x,v=g.y;var m=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),R=sa,A=aa,x=window;if(u){var S=ry(n),L="clientHeight",M="clientWidth";if(S===Qa(n)&&(S=dd(n),vc(S).position!=="static"&&s==="absolute"&&(L="scrollHeight",M="scrollWidth")),S=S,i===aa||(i===sa||i===ks)&&o===n2){A=Os;var w=f&&S===x&&x.visualViewport?x.visualViewport.height:S[L];v-=w-r.height,v*=l?1:-1}if(i===sa||(i===aa||i===Os)&&o===n2){R=ks;var _=f&&S===x&&x.visualViewport?x.visualViewport.width:S[M];h-=_-r.width,h*=l?1:-1}}var C=Object.assign({position:s},u&&Lxe),O=c===!0?Txe({x:h,y:v},Qa(n)):{x:h,y:v};if(h=O.x,v=O.y,l){var N;return Object.assign({},C,(N={},N[A]=y?"0":"",N[R]=m?"0":"",N.transform=(x.devicePixelRatio||1)<=1?"translate("+h+"px, "+v+"px)":"translate3d("+h+"px, "+v+"px, 0)",N))}return Object.assign({},C,(t={},t[A]=y?v+"px":"",t[R]=m?h+"px":"",t.transform="",t))}function _xe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:lu(t.placement),variation:Ov(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,RX(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,RX(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Oxe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:_xe,data:{}};var ZA={passive:!0};function kxe(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,l=Qa(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(c){c.addEventListener("scroll",n.update,ZA)}),s&&l.addEventListener("resize",n.update,ZA),function(){o&&u.forEach(function(c){c.removeEventListener("scroll",n.update,ZA)}),s&&l.removeEventListener("resize",n.update,ZA)}}const Pxe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:kxe,data:{}};var Cxe={left:"right",right:"left",bottom:"top",top:"bottom"};function yb(e){return e.replace(/left|right|bottom|top/g,function(t){return Cxe[t]})}var Ixe={start:"end",end:"start"};function bX(e){return e.replace(/start|end/g,function(t){return Ixe[t]})}function Mk(e){var t=Qa(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Lk(e){return _v(dd(e)).left+Mk(e).scrollLeft}function Nxe(e,t){var n=Qa(e),r=dd(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var u=iz();(u||!u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+Lk(e),y:l}}function Fxe(e){var t,n=dd(e),r=Mk(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Nh(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Nh(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+Lk(e),l=-r.scrollTop;return vc(i||n).direction==="rtl"&&(s+=Nh(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function Tk(e){var t=vc(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function uz(e){return["html","body","#document"].indexOf(vu(e))>=0?e.ownerDocument.body:ws(e)&&Tk(e)?e:uz(p3(e))}function fm(e,t){var n;t===void 0&&(t=[]);var r=uz(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Qa(r),a=i?[o].concat(o.visualViewport||[],Tk(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(fm(p3(a)))}function d6(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Exe(e,t){var n=_v(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function xX(e,t,n){return t===tz?d6(Nxe(e,n)):e0(t)?Exe(t,n):d6(Fxe(dd(e)))}function Xxe(e){var t=fm(p3(e)),n=["absolute","fixed"].indexOf(vc(e).position)>=0,r=n&&ws(e)?ry(e):e;return e0(r)?t.filter(function(i){return e0(i)&&oz(i,r)&&vu(i)!=="body"}):[]}function Wxe(e,t,n,r){var i=t==="clippingParents"?Xxe(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,u){var c=xX(e,u,r);return l.top=Nh(c.top,l.top),l.right=Fx(c.right,l.right),l.bottom=Fx(c.bottom,l.bottom),l.left=Nh(c.left,l.left),l},xX(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function cz(e){var t=e.reference,n=e.element,r=e.placement,i=r?lu(r):null,o=r?Ov(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case aa:l={x:a,y:t.y-n.height};break;case Os:l={x:a,y:t.y+t.height};break;case ks:l={x:t.x+t.width,y:s};break;case sa:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=i?wk(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(o){case Lv:l[u]=l[u]-(t[c]/2-n[c]/2);break;case n2:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function r2(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,s=n.boundary,l=s===void 0?oxe:s,u=n.rootBoundary,c=u===void 0?tz:u,f=n.elementContext,d=f===void 0?I1:f,h=n.altBoundary,p=h===void 0?!1:h,v=n.padding,g=v===void 0?0:v,m=sz(typeof g!="number"?g:lz(g,ny)),y=d===I1?axe:I1,R=e.rects.popper,A=e.elements[p?y:d],x=Wxe(e0(A)?A:A.contextElement||dd(e.elements.popper),l,c,a),S=_v(e.elements.reference),L=cz({reference:S,element:R,strategy:"absolute",placement:i}),M=d6(Object.assign({},R,L)),w=d===I1?M:S,_={top:x.top-w.top+m.top,bottom:w.bottom-x.bottom+m.bottom,left:x.left-w.left+m.left,right:w.right-x.right+m.right},C=e.modifiersData.offset;if(d===I1&&C){var O=C[i];Object.keys(_).forEach(function(N){var P=[ks,Os].indexOf(N)>=0?1:-1,F=[aa,Os].indexOf(N)>=0?"y":"x";_[N]+=O[F]*P})}return _}function Vxe(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?nz:l,c=Ov(r),f=c?s?yX:yX.filter(function(p){return Ov(p)===c}):ny,d=f.filter(function(p){return u.indexOf(p)>=0});d.length===0&&(d=f);var h=d.reduce(function(p,v){return p[v]=r2(e,{placement:v,boundary:i,rootBoundary:o,padding:a})[lu(v)],p},{});return Object.keys(h).sort(function(p,v){return h[p]-h[v]})}function Dxe(e){if(lu(e)===bk)return[];var t=yb(e);return[bX(e),t,bX(t)]}function Uxe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,h=n.flipVariations,p=h===void 0?!0:h,v=n.allowedAutoPlacements,g=t.options.placement,m=lu(g),y=m===g,R=l||(y||!p?[yb(g)]:Dxe(g)),A=[g].concat(R).reduce(function(K,te){return K.concat(lu(te)===bk?Vxe(t,{placement:te,boundary:c,rootBoundary:f,padding:u,flipVariations:p,allowedAutoPlacements:v}):te)},[]),x=t.rects.reference,S=t.rects.popper,L=new Map,M=!0,w=A[0],_=0;_=0,F=P?"width":"height",I=r2(t,{placement:C,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),W=P?N?ks:sa:N?Os:aa;x[F]>S[F]&&(W=yb(W));var U=yb(W),Z=[];if(o&&Z.push(I[O]<=0),s&&Z.push(I[W]<=0,I[U]<=0),Z.every(function(K){return K})){w=C,M=!1;break}L.set(C,Z)}if(M)for(var ee=p?3:1,B=function(te){var J=A.find(function(de){var G=L.get(de);if(G)return G.slice(0,te).every(function(Ae){return Ae})});if(J)return w=J,"break"},Y=ee;Y>0;Y--){var Q=B(Y);if(Q==="break")break}t.placement!==w&&(t.modifiersData[r]._skip=!0,t.placement=w,t.reset=!0)}}const Bxe={name:"flip",enabled:!0,phase:"main",fn:Uxe,requiresIfExists:["offset"],data:{_skip:!1}};function SX(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function wX(e){return[aa,ks,Os,sa].some(function(t){return e[t]>=0})}function Yxe(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=r2(t,{elementContext:"reference"}),s=r2(t,{altBoundary:!0}),l=SX(a,r),u=SX(s,i,o),c=wX(l),f=wX(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const Zxe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Yxe};function Qxe(e,t,n){var r=lu(e),i=[sa,aa].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[sa,ks].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function Hxe(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=nz.reduce(function(c,f){return c[f]=Qxe(f,t.rects,o),c},{}),s=a[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const Kxe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Hxe};function Gxe(e){var t=e.state,n=e.name;t.modifiersData[n]=cz({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const zxe={name:"popperOffsets",enabled:!0,phase:"read",fn:Gxe,data:{}};function Jxe(e){return e==="x"?"y":"x"}function $xe(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,d=n.tether,h=d===void 0?!0:d,p=n.tetherOffset,v=p===void 0?0:p,g=r2(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),m=lu(t.placement),y=Ov(t.placement),R=!y,A=wk(m),x=Jxe(A),S=t.modifiersData.popperOffsets,L=t.rects.reference,M=t.rects.popper,w=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,_=typeof w=="number"?{mainAxis:w,altAxis:w}:Object.assign({mainAxis:0,altAxis:0},w),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(S){if(o){var N,P=A==="y"?aa:sa,F=A==="y"?Os:ks,I=A==="y"?"height":"width",W=S[A],U=W+g[P],Z=W-g[F],ee=h?-M[I]/2:0,B=y===Lv?L[I]:M[I],Y=y===Lv?-M[I]:-L[I],Q=t.elements.arrow,K=h&&Q?Sk(Q):{width:0,height:0},te=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:az(),J=te[P],de=te[F],G=cm(0,L[I],K[I]),Ae=R?L[I]/2-ee-G-J-_.mainAxis:B-G-J-_.mainAxis,ue=R?-L[I]/2+ee+G+de+_.mainAxis:Y+G+de+_.mainAxis,ce=t.elements.arrow&&ry(t.elements.arrow),le=ce?A==="y"?ce.clientTop||0:ce.clientLeft||0:0,$=(N=C==null?void 0:C[A])!=null?N:0,X=W+Ae-$-le,j=W+ue-$,se=cm(h?Fx(U,X):U,W,h?Nh(Z,j):Z);S[A]=se,O[A]=se-W}if(s){var ne,re=A==="x"?aa:sa,ae=A==="x"?Os:ks,ve=S[x],fe=x==="y"?"height":"width",ge=ve+g[re],Re=ve-g[ae],Xe=[aa,sa].indexOf(m)!==-1,Ne=(ne=C==null?void 0:C[x])!=null?ne:0,Ke=Xe?ge:ve-L[fe]-M[fe]-Ne+_.altAxis,De=Xe?ve+L[fe]+M[fe]-Ne-_.altAxis:Re,Te=h&&Xe?bxe(Ke,ve,De):cm(h?Ke:ge,ve,h?De:Re);S[x]=Te,O[x]=Te-ve}t.modifiersData[r]=O}}const jxe={name:"preventOverflow",enabled:!0,phase:"main",fn:$xe,requiresIfExists:["offset"]};function qxe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function eSe(e){return e===Qa(e)||!ws(e)?Mk(e):qxe(e)}function tSe(e){var t=e.getBoundingClientRect(),n=Tv(t.width)/e.offsetWidth||1,r=Tv(t.height)/e.offsetHeight||1;return n!==1||r!==1}function nSe(e,t,n){n===void 0&&(n=!1);var r=ws(t),i=ws(t)&&tSe(t),o=dd(t),a=_v(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((vu(t)!=="body"||Tk(o))&&(s=eSe(t)),ws(t)?(l=_v(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=Lk(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function rSe(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function iSe(e){var t=rSe(e);return gxe.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function oSe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function aSe(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var MX={placement:"bottom",modifiers:[],strategy:"absolute"};function LX(){for(var e=arguments.length,t=new Array(e),n=0;n-1}function vz(e,t){return typeof e=="function"?e.apply(void 0,t):e}function TX(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function dSe(e){return e.split(/\s+/).filter(Boolean)}function bp(e){return[].concat(e)}function _X(e,t){e.indexOf(t)===-1&&e.push(t)}function hSe(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function pSe(e){return e.split("-")[0]}function Ex(e){return[].slice.call(e)}function OX(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function dm(){return document.createElement("div")}function v3(e){return["Element","Fragment"].some(function(t){return _k(e,t)})}function vSe(e){return _k(e,"NodeList")}function gSe(e){return _k(e,"MouseEvent")}function mSe(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function ySe(e){return v3(e)?[e]:vSe(e)?Ex(e):Array.isArray(e)?e:Ex(document.querySelectorAll(e))}function T5(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function kX(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function ASe(e){var t,n=bp(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function RSe(e,t){var n=t.clientX,r=t.clientY;return e.every(function(i){var o=i.popperRect,a=i.popperState,s=i.props,l=s.interactiveBorder,u=pSe(a.placement),c=a.modifiersData.offset;if(!c)return!0;var f=u==="bottom"?c.top.y:0,d=u==="top"?c.bottom.y:0,h=u==="right"?c.left.x:0,p=u==="left"?c.right.x:0,v=o.top-r+f>l,g=r-o.bottom-d>l,m=o.left-n+h>l,y=n-o.right-p>l;return v||g||m||y})}function _5(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){e[r](i,n)})}function PX(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var Hl={isTouch:!1},CX=0;function bSe(){Hl.isTouch||(Hl.isTouch=!0,window.performance&&document.addEventListener("mousemove",gz))}function gz(){var e=performance.now();e-CX<20&&(Hl.isTouch=!1,document.removeEventListener("mousemove",gz)),CX=e}function xSe(){var e=document.activeElement;if(mSe(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function SSe(){document.addEventListener("touchstart",bSe,oh),window.addEventListener("blur",xSe)}var wSe=typeof window<"u"&&typeof document<"u",MSe=wSe?!!window.msCrypto:!1,LSe={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},TSe={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},cl=Object.assign({appendTo:pz,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},LSe,TSe),_Se=Object.keys(cl),OSe=function(t){var n=Object.keys(t);n.forEach(function(r){cl[r]=t[r]})};function mz(e){var t=e.plugins||[],n=t.reduce(function(r,i){var o=i.name,a=i.defaultValue;if(o){var s;r[o]=e[o]!==void 0?e[o]:(s=cl[o])!=null?s:a}return r},{});return Object.assign({},e,n)}function kSe(e,t){var n=t?Object.keys(mz(Object.assign({},cl,{plugins:t}))):_Se,r=n.reduce(function(i,o){var a=(e.getAttribute("data-tippy-"+o)||"").trim();if(!a)return i;if(o==="content")i[o]=a;else try{i[o]=JSON.parse(a)}catch{i[o]=a}return i},{});return r}function IX(e,t){var n=Object.assign({},t,{content:vz(t.content,[e])},t.ignoreAttributes?{}:kSe(e,t.plugins));return n.aria=Object.assign({},cl.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?t.interactive:n.aria.expanded,content:n.aria.content==="auto"?t.interactive?null:"describedby":n.aria.content},n}var PSe=function(){return"innerHTML"};function h6(e,t){e[PSe()]=t}function NX(e){var t=dm();return e===!0?t.className=dz:(t.className=hz,v3(e)?t.appendChild(e):h6(t,e)),t}function FX(e,t){v3(t.content)?(h6(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?h6(e,t.content):e.textContent=t.content)}function p6(e){var t=e.firstElementChild,n=Ex(t.children);return{box:t,content:n.find(function(r){return r.classList.contains(fz)}),arrow:n.find(function(r){return r.classList.contains(dz)||r.classList.contains(hz)}),backdrop:n.find(function(r){return r.classList.contains(fSe)})}}function yz(e){var t=dm(),n=dm();n.className=cSe,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=dm();r.className=fz,r.setAttribute("data-state","hidden"),FX(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props);function i(o,a){var s=p6(t),l=s.box,u=s.content,c=s.arrow;a.theme?l.setAttribute("data-theme",a.theme):l.removeAttribute("data-theme"),typeof a.animation=="string"?l.setAttribute("data-animation",a.animation):l.removeAttribute("data-animation"),a.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth=typeof a.maxWidth=="number"?a.maxWidth+"px":a.maxWidth,a.role?l.setAttribute("role",a.role):l.removeAttribute("role"),(o.content!==a.content||o.allowHTML!==a.allowHTML)&&FX(u,e.props),a.arrow?c?o.arrow!==a.arrow&&(l.removeChild(c),l.appendChild(NX(a.arrow))):l.appendChild(NX(a.arrow)):c&&l.removeChild(c)}return{popper:t,onUpdate:i}}yz.$$tippy=!0;var CSe=1,QA=[],O5=[];function ISe(e,t){var n=IX(e,Object.assign({},cl,mz(OX(t)))),r,i,o,a=!1,s=!1,l=!1,u=!1,c,f,d,h=[],p=TX(X,n.interactiveDebounce),v,g=CSe++,m=null,y=hSe(n.plugins),R={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},A={id:g,reference:e,popper:dm(),popperInstance:m,props:n,state:R,plugins:y,clearDelayTimeouts:Ke,setProps:De,setContent:Te,show:ye,hide:Me,hideWithInteractivity:Ie,enable:Xe,disable:Ne,unmount:Qe,destroy:ct};if(!n.render)return A;var x=n.render(A),S=x.popper,L=x.onUpdate;S.setAttribute("data-tippy-root",""),S.id="tippy-"+A.id,A.popper=S,e._tippy=A,S._tippy=A;var M=y.map(function(Pe){return Pe.fn(A)}),w=e.hasAttribute("aria-expanded");return ce(),ee(),W(),U("onCreate",[A]),n.showOnCreate&&ge(),S.addEventListener("mouseenter",function(){A.props.interactive&&A.state.isVisible&&A.clearDelayTimeouts()}),S.addEventListener("mouseleave",function(){A.props.interactive&&A.props.trigger.indexOf("mouseenter")>=0&&P().addEventListener("mousemove",p)}),A;function _(){var Pe=A.props.touch;return Array.isArray(Pe)?Pe:[Pe,0]}function C(){return _()[0]==="hold"}function O(){var Pe;return!!((Pe=A.props.render)!=null&&Pe.$$tippy)}function N(){return v||e}function P(){var Pe=N().parentNode;return Pe?ASe(Pe):document}function F(){return p6(S)}function I(Pe){return A.state.isMounted&&!A.state.isVisible||Hl.isTouch||c&&c.type==="focus"?0:L5(A.props.delay,Pe?0:1,cl.delay)}function W(Pe){Pe===void 0&&(Pe=!1),S.style.pointerEvents=A.props.interactive&&!Pe?"":"none",S.style.zIndex=""+A.props.zIndex}function U(Pe,tt,it){if(it===void 0&&(it=!0),M.forEach(function(ht){ht[Pe]&&ht[Pe].apply(ht,tt)}),it){var St;(St=A.props)[Pe].apply(St,tt)}}function Z(){var Pe=A.props.aria;if(Pe.content){var tt="aria-"+Pe.content,it=S.id,St=bp(A.props.triggerTarget||e);St.forEach(function(ht){var gt=ht.getAttribute(tt);if(A.state.isVisible)ht.setAttribute(tt,gt?gt+" "+it:it);else{var wt=gt&>.replace(it,"").trim();wt?ht.setAttribute(tt,wt):ht.removeAttribute(tt)}})}}function ee(){if(!(w||!A.props.aria.expanded)){var Pe=bp(A.props.triggerTarget||e);Pe.forEach(function(tt){A.props.interactive?tt.setAttribute("aria-expanded",A.state.isVisible&&tt===N()?"true":"false"):tt.removeAttribute("aria-expanded")})}}function B(){P().removeEventListener("mousemove",p),QA=QA.filter(function(Pe){return Pe!==p})}function Y(Pe){if(!(Hl.isTouch&&(l||Pe.type==="mousedown"))){var tt=Pe.composedPath&&Pe.composedPath()[0]||Pe.target;if(!(A.props.interactive&&PX(S,tt))){if(bp(A.props.triggerTarget||e).some(function(it){return PX(it,tt)})){if(Hl.isTouch||A.state.isVisible&&A.props.trigger.indexOf("click")>=0)return}else U("onClickOutside",[A,Pe]);A.props.hideOnClick===!0&&(A.clearDelayTimeouts(),A.hide(),s=!0,setTimeout(function(){s=!1}),A.state.isMounted||J())}}}function Q(){l=!0}function K(){l=!1}function te(){var Pe=P();Pe.addEventListener("mousedown",Y,!0),Pe.addEventListener("touchend",Y,oh),Pe.addEventListener("touchstart",K,oh),Pe.addEventListener("touchmove",Q,oh)}function J(){var Pe=P();Pe.removeEventListener("mousedown",Y,!0),Pe.removeEventListener("touchend",Y,oh),Pe.removeEventListener("touchstart",K,oh),Pe.removeEventListener("touchmove",Q,oh)}function de(Pe,tt){Ae(Pe,function(){!A.state.isVisible&&S.parentNode&&S.parentNode.contains(S)&&tt()})}function G(Pe,tt){Ae(Pe,tt)}function Ae(Pe,tt){var it=F().box;function St(ht){ht.target===it&&(_5(it,"remove",St),tt())}if(Pe===0)return tt();_5(it,"remove",f),_5(it,"add",St),f=St}function ue(Pe,tt,it){it===void 0&&(it=!1);var St=bp(A.props.triggerTarget||e);St.forEach(function(ht){ht.addEventListener(Pe,tt,it),h.push({node:ht,eventType:Pe,handler:tt,options:it})})}function ce(){C()&&(ue("touchstart",$,{passive:!0}),ue("touchend",j,{passive:!0})),dSe(A.props.trigger).forEach(function(Pe){if(Pe!=="manual")switch(ue(Pe,$),Pe){case"mouseenter":ue("mouseleave",j);break;case"focus":ue(MSe?"focusout":"blur",se);break;case"focusin":ue("focusout",se);break}})}function le(){h.forEach(function(Pe){var tt=Pe.node,it=Pe.eventType,St=Pe.handler,ht=Pe.options;tt.removeEventListener(it,St,ht)}),h=[]}function $(Pe){var tt,it=!1;if(!(!A.state.isEnabled||ne(Pe)||s)){var St=((tt=c)==null?void 0:tt.type)==="focus";c=Pe,v=Pe.currentTarget,ee(),!A.state.isVisible&&gSe(Pe)&&QA.forEach(function(ht){return ht(Pe)}),Pe.type==="click"&&(A.props.trigger.indexOf("mouseenter")<0||a)&&A.props.hideOnClick!==!1&&A.state.isVisible?it=!0:ge(Pe),Pe.type==="click"&&(a=!it),it&&!St&&Re(Pe)}}function X(Pe){var tt=Pe.target,it=N().contains(tt)||S.contains(tt);if(!(Pe.type==="mousemove"&&it)){var St=fe().concat(S).map(function(ht){var gt,wt=ht._tippy,Ut=(gt=wt.popperInstance)==null?void 0:gt.state;return Ut?{popperRect:ht.getBoundingClientRect(),popperState:Ut,props:n}:null}).filter(Boolean);RSe(St,Pe)&&(B(),Re(Pe))}}function j(Pe){var tt=ne(Pe)||A.props.trigger.indexOf("click")>=0&&a;if(!tt){if(A.props.interactive){A.hideWithInteractivity(Pe);return}Re(Pe)}}function se(Pe){A.props.trigger.indexOf("focusin")<0&&Pe.target!==N()||A.props.interactive&&Pe.relatedTarget&&S.contains(Pe.relatedTarget)||Re(Pe)}function ne(Pe){return Hl.isTouch?C()!==Pe.type.indexOf("touch")>=0:!1}function re(){ae();var Pe=A.props,tt=Pe.popperOptions,it=Pe.placement,St=Pe.offset,ht=Pe.getReferenceClientRect,gt=Pe.moveTransition,wt=O()?p6(S).arrow:null,Ut=ht?{getBoundingClientRect:ht,contextElement:ht.contextElement||N()}:e,$t={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(wl){var $i=wl.state;if(O()){var R0=F(),md=R0.box;["placement","reference-hidden","escaped"].forEach(function(Lu){Lu==="placement"?md.setAttribute("data-placement",$i.placement):$i.attributes.popper["data-popper-"+Lu]?md.setAttribute("data-"+Lu,""):md.removeAttribute("data-"+Lu)}),$i.attributes.popper={}}}},Hn=[{name:"offset",options:{offset:St}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!gt}},$t];O()&&wt&&Hn.push({name:"arrow",options:{element:wt,padding:3}}),Hn.push.apply(Hn,(tt==null?void 0:tt.modifiers)||[]),A.popperInstance=uSe(Ut,S,Object.assign({},tt,{placement:it,onFirstUpdate:d,modifiers:Hn}))}function ae(){A.popperInstance&&(A.popperInstance.destroy(),A.popperInstance=null)}function ve(){var Pe=A.props.appendTo,tt,it=N();A.props.interactive&&Pe===pz||Pe==="parent"?tt=it.parentNode:tt=vz(Pe,[it]),tt.contains(S)||tt.appendChild(S),A.state.isMounted=!0,re()}function fe(){return Ex(S.querySelectorAll("[data-tippy-root]"))}function ge(Pe){A.clearDelayTimeouts(),Pe&&U("onTrigger",[A,Pe]),te();var tt=I(!0),it=_(),St=it[0],ht=it[1];Hl.isTouch&&St==="hold"&&ht&&(tt=ht),tt?r=setTimeout(function(){A.show()},tt):A.show()}function Re(Pe){if(A.clearDelayTimeouts(),U("onUntrigger",[A,Pe]),!A.state.isVisible){J();return}if(!(A.props.trigger.indexOf("mouseenter")>=0&&A.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(Pe.type)>=0&&a)){var tt=I(!1);tt?i=setTimeout(function(){A.state.isVisible&&A.hide()},tt):o=requestAnimationFrame(function(){A.hide()})}}function Xe(){A.state.isEnabled=!0}function Ne(){A.hide(),A.state.isEnabled=!1}function Ke(){clearTimeout(r),clearTimeout(i),cancelAnimationFrame(o)}function De(Pe){if(!A.state.isDestroyed){U("onBeforeUpdate",[A,Pe]),le();var tt=A.props,it=IX(e,Object.assign({},tt,OX(Pe),{ignoreAttributes:!0}));A.props=it,ce(),tt.interactiveDebounce!==it.interactiveDebounce&&(B(),p=TX(X,it.interactiveDebounce)),tt.triggerTarget&&!it.triggerTarget?bp(tt.triggerTarget).forEach(function(St){St.removeAttribute("aria-expanded")}):it.triggerTarget&&e.removeAttribute("aria-expanded"),ee(),W(),L&&L(tt,it),A.popperInstance&&(re(),fe().forEach(function(St){requestAnimationFrame(St._tippy.popperInstance.forceUpdate)})),U("onAfterUpdate",[A,Pe])}}function Te(Pe){A.setProps({content:Pe})}function ye(){var Pe=A.state.isVisible,tt=A.state.isDestroyed,it=!A.state.isEnabled,St=Hl.isTouch&&!A.props.touch,ht=L5(A.props.duration,0,cl.duration);if(!(Pe||tt||it||St)&&!N().hasAttribute("disabled")&&(U("onShow",[A],!1),A.props.onShow(A)!==!1)){if(A.state.isVisible=!0,O()&&(S.style.visibility="visible"),W(),te(),A.state.isMounted||(S.style.transition="none"),O()){var gt=F(),wt=gt.box,Ut=gt.content;T5([wt,Ut],0)}d=function(){var Hn;if(!(!A.state.isVisible||u)){if(u=!0,S.offsetHeight,S.style.transition=A.props.moveTransition,O()&&A.props.animation){var Xs=F(),wl=Xs.box,$i=Xs.content;T5([wl,$i],ht),kX([wl,$i],"visible")}Z(),ee(),_X(O5,A),(Hn=A.popperInstance)==null||Hn.forceUpdate(),U("onMount",[A]),A.props.animation&&O()&&G(ht,function(){A.state.isShown=!0,U("onShown",[A])})}},ve()}}function Me(){var Pe=!A.state.isVisible,tt=A.state.isDestroyed,it=!A.state.isEnabled,St=L5(A.props.duration,1,cl.duration);if(!(Pe||tt||it)&&(U("onHide",[A],!1),A.props.onHide(A)!==!1)){if(A.state.isVisible=!1,A.state.isShown=!1,u=!1,a=!1,O()&&(S.style.visibility="hidden"),B(),J(),W(!0),O()){var ht=F(),gt=ht.box,wt=ht.content;A.props.animation&&(T5([gt,wt],St),kX([gt,wt],"hidden"))}Z(),ee(),A.props.animation?O()&&de(St,A.unmount):A.unmount()}}function Ie(Pe){P().addEventListener("mousemove",p),_X(QA,p),p(Pe)}function Qe(){A.state.isVisible&&A.hide(),A.state.isMounted&&(ae(),fe().forEach(function(Pe){Pe._tippy.unmount()}),S.parentNode&&S.parentNode.removeChild(S),O5=O5.filter(function(Pe){return Pe!==A}),A.state.isMounted=!1,U("onHidden",[A]))}function ct(){A.state.isDestroyed||(A.clearDelayTimeouts(),A.unmount(),le(),delete e._tippy,A.state.isDestroyed=!0,U("onDestroy",[A]))}}function v0(e,t){t===void 0&&(t={});var n=cl.plugins.concat(t.plugins||[]);SSe();var r=Object.assign({},t,{plugins:n}),i=ySe(e),o=i.reduce(function(a,s){var l=s&&ISe(s,r);return l&&a.push(l),a},[]);return v3(e)?o[0]:o}v0.defaultProps=cl;v0.setDefaultProps=OSe;v0.currentInput=Hl;Object.assign({},rz,{effect:function(t){var n=t.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}});v0.setDefaultProps({render:yz});const NSe=We({__name:"Popover",props:{value:{type:Boolean,default:!1},trigger:{default:"click"},placement:{default:"bottom"},appendTo:{},contentStyle:{},center:{type:Boolean,default:!1},offset:{default:8}},emits:["update:value"],setup(e,{emit:t}){const n=e,r=t,i=he(),o=he(),a=he(),s=he(!1),l=Se(()=>n.contentStyle||{});return Tt(()=>n.value,()=>{i.value&&(n.value?i.value.show():i.value.hide())}),En(()=>{i.value&&i.value.destroy()}),Vt(()=>{i.value=v0(o.value,{content:a.value,allowHTML:!0,trigger:n.trigger,placement:n.placement,interactive:!0,appendTo:n.appendTo||document.body,maxWidth:"none",offset:[0,n.offset],duration:200,animation:"scale",theme:"popover",onShow(){s.value=!0},onShown(){n.value||r("update:value",!0)},onHidden(){n.value&&r("update:value",!1),s.value=!1}})}),(u,c)=>(D(),q("div",{class:ze(["popover",{center:u.center}]),ref_key:"triggerRef",ref:o},[V("div",{class:"popover-content",style:Le(l.value),ref_key:"contentRef",ref:a},[s.value?ar(u.$slots,"content",{key:0},void 0,!0):Ye("",!0)],4),ar(u.$slots,"default",{},void 0,!0)],2))}}),Nt=Be(NSe,[["__scopeId","data-v-6a57fbcf"]]),FSe=We({__name:"PopoverMenuItem",props:{center:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const n=t;return(r,i)=>(D(),q("div",{class:ze(["popover-menu-item",{center:r.center}]),onClick:i[0]||(i[0]=o=>n("click"))},[ar(r.$slots,"default",{},void 0,!0)],2))}}),Qr=Be(FSe,[["__scopeId","data-v-1f176c16"]]),ESe=e=>(rn("data-v-4bbd9a87"),e=e(),on(),e),XSe={class:"editor-header"},WSe={class:"left"},VSe={class:"menu-item"},DSe={class:"title"},USe=["title"],BSe={class:"right"},YSe={class:"group-menu-item"},ZSe={class:"arrow-btn"},QSe=ESe(()=>V("span",{class:"text ai"},"AI",-1)),HSe=[QSe],KSe={class:"github-link",href:"https://github.com/pipipi-pikachu/PPTist",target:"_blank"},GSe={class:"menu-item"},zSe=We({__name:"index",setup(e){const t=pt(),n=st(),{title:r}=Ve(n),{enterScreening:i,enterScreeningFromStart:o}=cd(),{importSpecificFile:a,importPPTXFile:s,exporting:l}=Xbe(),{resetSlides:u}=Ac(),c=he(!1),f=he(!1),d=he(!1),h=he(),p=he(""),v=()=>{p.value=r.value,d.value=!0,Rr(()=>{var x;return(x=h.value)==null?void 0:x.focus()})},g=()=>{n.setTitle(p.value),d.value=!1},m=x=>{window.open(x),c.value=!1},y=x=>{t.setDialogForExport(x),c.value=!1},R=()=>{t.setMarkupPanelState(!0)},A=()=>{t.setAIPPTDialogState(!0)};return(x,S)=>{const L=xe("IconHamburgerButton"),M=xe("IconPpt"),w=xe("IconDown"),_=xe("IconDownload"),C=xe("IconGithub"),O=_n("tooltip");return D(),q("div",XSe,[V("div",WSe,[k(Nt,{trigger:"click",placement:"bottom-start",value:c.value,"onUpdate:value":S[9]||(S[9]=N=>c.value=N)},{content:ie(()=>[k(Qr,{onClick:S[0]||(S[0]=N=>{A(),c.value=!1})},{default:ie(()=>[Ue("AI 生成 PPT(测试版)")]),_:1}),k(qh,{accept:"application/vnd.openxmlformats-officedocument.presentationml.presentation",onChange:S[1]||(S[1]=N=>{z(s)(N),c.value=!1})},{default:ie(()=>[k(Qr,null,{default:ie(()=>[Ue("导入 pptx 文件(测试版)")]),_:1})]),_:1}),k(qh,{accept:".pptist",onChange:S[2]||(S[2]=N=>{z(a)(N),c.value=!1})},{default:ie(()=>[k(Qr,null,{default:ie(()=>[Ue("导入 pptist 文件")]),_:1})]),_:1}),k(Qr,{onClick:S[3]||(S[3]=N=>y("pptx"))},{default:ie(()=>[Ue("导出文件")]),_:1}),k(Qr,{onClick:S[4]||(S[4]=N=>{z(u)(),c.value=!1})},{default:ie(()=>[Ue("重置幻灯片")]),_:1}),k(Qr,{onClick:S[5]||(S[5]=N=>{R(),c.value=!1})},{default:ie(()=>[Ue("幻灯片类型标注")]),_:1}),k(Qr,{onClick:S[6]||(S[6]=N=>m("https://github.com/pipipi-pikachu/PPTist/issues"))},{default:ie(()=>[Ue("意见反馈")]),_:1}),k(Qr,{onClick:S[7]||(S[7]=N=>m("https://github.com/pipipi-pikachu/PPTist/blob/master/doc/Q&A.md"))},{default:ie(()=>[Ue("常见问题")]),_:1}),k(Qr,{onClick:S[8]||(S[8]=N=>{c.value=!1,f.value=!0})},{default:ie(()=>[Ue("快捷操作")]),_:1})]),default:ie(()=>[V("div",VSe,[k(L,{class:"icon"})])]),_:1},8,["value"]),V("div",DSe,[d.value?(D(),Oe(pu,{key:0,class:"title-input",ref_key:"titleInputRef",ref:h,value:p.value,"onUpdate:value":S[10]||(S[10]=N=>p.value=N),onBlur:S[11]||(S[11]=N=>g())},null,8,["value"])):(D(),q("div",{key:1,class:"title-text",onClick:S[12]||(S[12]=N=>v()),title:z(r)},dt(z(r)),9,USe))])]),V("div",BSe,[V("div",YSe,[Ge((D(),q("div",{class:"menu-item",onClick:S[13]||(S[13]=N=>z(i)())},[k(M,{class:"icon"})])),[[O,"幻灯片放映(F5)"]]),k(Nt,{trigger:"click",center:""},{content:ie(()=>[k(Qr,{onClick:S[14]||(S[14]=N=>z(o)())},{default:ie(()=>[Ue("从头开始")]),_:1}),k(Qr,{onClick:S[15]||(S[15]=N=>z(i)())},{default:ie(()=>[Ue("从当前页开始")]),_:1})]),default:ie(()=>[V("div",ZSe,[k(w,{class:"arrow"})])]),_:1})]),Ge((D(),q("div",{class:"menu-item",onClick:S[16]||(S[16]=N=>{A(),c.value=!1})},HSe)),[[O,"AI生成PPT"]]),Ge((D(),q("div",{class:"menu-item",onClick:S[17]||(S[17]=N=>y("pptx"))},[k(_,{class:"icon"})])),[[O,"导出"]]),Ge((D(),q("a",KSe,[V("div",GSe,[k(C,{class:"icon"})])])),[[O,"Copyright © 2020-PRESENT pipipi-pikachu"]])]),k(exe,{width:320,visible:f.value,"onUpdate:visible":S[18]||(S[18]=N=>f.value=N),placement:"right"},{title:ie(()=>[Ue("快捷操作")]),default:ie(()=>[k(Zbe)]),_:1},8,["visible"]),k(ty,{loading:z(l),tip:"正在导入..."},null,8,["loading"])])}}}),JSe=Be(zSe,[["__scopeId","data-v-4bbd9a87"]]),iy=Symbol(),Ok=Symbol(),Az=Symbol(),$Se=()=>{const e=window.getSelection();e&&e.removeAllRanges()},jSe=e=>{const t=he(0),n=he(0),r=pt(),{canvasPercentage:i,canvasDragged:o}=Ve(r),{viewportRatio:a,viewportSize:s}=Ve(st()),l=()=>{if(!e.value)return;const h=e.value.clientWidth,p=e.value.clientHeight;if(p/h>a.value){const v=h*(i.value/100);r.setCanvasScale(v/s.value),t.value=(h-v)/2,n.value=(p-v*a.value)/2}else{const v=p*(i.value/100);r.setCanvasScale(v/(s.value*a.value)),t.value=(h-v/a.value)/2,n.value=(p-v)/2}};Tt(i,(h,p)=>{if(!e.value)return;const v=e.value.clientWidth,g=e.value.clientHeight;if(g/v>a.value){const m=v*(h/100),y=v*(p/100),R=m*a.value,A=y*a.value;r.setCanvasScale(m/s.value),t.value=t.value-(m-y)/2,n.value=n.value-(R-A)/2}else{const m=g*(h/100),y=g*(p/100),R=m/a.value,A=y/a.value;r.setCanvasScale(m/(s.value*a.value)),t.value=t.value-(R-A)/2,n.value=n.value-(m-y)/2}}),Tt(a,l),Tt(s,l),Tt(o,()=>{o.value||l()});const c=Se(()=>({width:s.value,height:s.value*a.value,left:t.value,top:n.value})),f=new ResizeObserver(l);return Vt(()=>{e.value&&f.observe(e.value)}),En(()=>{e.value&&f.unobserve(e.value)}),{viewportStyles:c,dragViewport:h=>{let p=!0;const v=h.pageX,g=h.pageY,m=t.value,y=n.value;document.onmousemove=R=>{if(!p)return;const A=R.pageX,x=R.pageY;t.value=m+(A-v),n.value=y+(x-g)},document.onmouseup=()=>{p=!1,document.onmousemove=null,document.onmouseup=null,r.setCanvasDragged(!0)}}}},qSe=(e,t)=>{const n=pt(),{canvasScale:r,hiddenElementIdList:i}=Ve(n),o=he(!1),a=he(1),s=he({top:0,left:0,width:0,height:0});return{mouseSelection:s,mouseSelectionVisible:o,mouseSelectionQuadrant:a,updateMouseSelection:u=>{if(!t.value)return;let c=!0;const f=t.value.getBoundingClientRect(),d=5,h=u.pageX,p=u.pageY,v=(h-f.x)/r.value,g=(p-f.y)/r.value;s.value={top:g,left:v,width:0,height:0},o.value=!1,a.value=4,document.onmousemove=m=>{if(!c)return;const y=m.pageX,R=m.pageY,A=(y-h)/r.value,x=(R-p)/r.value,S=Math.abs(A),L=Math.abs(x);if(S0&&x>0?M=4:A<0&&x<0?M=2:A>0&&x<0?M=1:A<0&&x>0&&(M=3),s.value={...s.value,width:S,height:L},o.value=!0,a.value=M},document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null,c=!1;let m=[];for(let R=0;Rx&&_S&&Ox-L&&_S-M&&Ox&&_S-M&&Ox-L&&_S&&O{if(R.groupId){const A=m.map(S=>S.id);return e.value.filter(S=>S.groupId===R.groupId).every(S=>A.includes(S.id))}return!0});const y=m.map(R=>R.id);n.setActiveElementIdList(y),o.value=!1}}}},e3e=e=>{const{disableHotkeys:t}=Ve(pt()),{createImageElement:n,createTextElement:r}=d0(),i=o=>{if(!o.dataTransfer||o.dataTransfer.items.length===0)return;const a=o.dataTransfer.items,s=a[0];let l=!1;for(const u of a)if(u.kind==="file"&&u.type.indexOf("image")!==-1){const c=u.getAsFile();c&&ud(c).then(f=>n(f)),l=!0}l||s.kind==="string"&&s.type==="text/plain"&&s.getAsString(u=>{if(t.value)return;const c=Sx(u);r({left:0,top:0,width:600,height:50},{content:c})})};Vt(()=>{e.value&&e.value.addEventListener("drop",i),document.ondragleave=o=>o.preventDefault(),document.ondrop=o=>o.preventDefault(),document.ondragenter=o=>o.preventDefault(),document.ondragover=o=>o.preventDefault()}),En(()=>{e.value&&e.value.removeEventListener("drop",i),document.ondragleave=null,document.ondrop=null,document.ondragenter=null,document.ondragover=null})},t3e=(e,t)=>{const n=Math.atan2(e,t);return 180/Math.PI*n},Rz=(e,t,n)=>{const r=st(),{addHistorySnapshot:i}=nn();return{rotateElement:(a,s)=>{const l=!(a instanceof MouseEvent);if(l&&(!a.changedTouches||!a.changedTouches[0]))return;let u=!0,c=0;const f=s.rotate||0,d=s.left,h=s.top,p=s.width,v=s.height,g=d+p/2,m=h+v/2;if(!t.value)return;const y=t.value.getBoundingClientRect(),R=x=>{if(!u)return;const S=x instanceof MouseEvent?x.pageX:x.changedTouches[0].pageX,L=x instanceof MouseEvent?x.pageY:x.changedTouches[0].pageY,M=(S-y.left)/n.value,w=(L-y.top)/n.value,_=M-g,C=m-w;c=t3e(_,C);const O=5;Math.abs(c)<=O?c=0:c>0&&Math.abs(c-45)<=O?c-=c-45:c<0&&Math.abs(c+45)<=O?c-=c+45:c>0&&Math.abs(c-90)<=O?c-=c-90:c<0&&Math.abs(c+90)<=O?c-=c+90:c>0&&Math.abs(c-135)<=O?c-=c-135:c<0&&Math.abs(c+135)<=O?c-=c+135:c>0&&Math.abs(c-180)<=O?c-=c-180:c<0&&Math.abs(c+180)<=O&&(c-=c+180),e.value=e.value.map(N=>s.id===N.id?{...N,rotate:c}:N)},A=()=>{u=!1,document.onmousemove=null,document.onmouseup=null,f!==c&&(r.updateSlide({elements:e.value}),i())};l?(document.ontouchmove=R,document.ontouchend=A):(document.onmousemove=R,document.onmouseup=A)}}},Og={text:"文本",image:"图片",shape:"形状",line:"线条",chart:"图表",table:"表格",video:"视频",audio:"音频",latex:"公式"},bz={text:40,image:20,shape:20,chart:200,table:30,video:250,audio:20,latex:20},EX=(e,t)=>{const{left:n,top:r,width:i,height:o}=e,a=Math.sqrt(Math.pow(i,2)+Math.pow(o,2))/2,s=Math.atan(o/i)*180/Math.PI,l=(180-t-s)*Math.PI/180,u=(s-t)*Math.PI/180,c=(90-t)*Math.PI/180,f=t*Math.PI/180,d=i/2,h=o/2,p=n+d,v=r+h,g={left:p+a*Math.cos(l),top:v-a*Math.sin(l)},m={left:p+h*Math.cos(c),top:v-h*Math.sin(c)},y={left:p+a*Math.cos(u),top:v-a*Math.sin(u)},R={left:p+d*Math.cos(f),top:v+d*Math.sin(f)},A={left:p-a*Math.cos(l),top:v+a*Math.sin(l)},x={left:p-h*Math.sin(f),top:v+h*Math.cos(f)},S={left:p-a*Math.cos(u),top:v+a*Math.sin(u)},L={left:p-d*Math.cos(f),top:v-d*Math.sin(f)};return{leftTopPoint:g,topPoint:m,rightTopPoint:y,rightPoint:R,rightBottomPoint:A,bottomPoint:x,leftBottomPoint:S,leftPoint:L}},XX=(e,t)=>({[Rt.RIGHT_BOTTOM]:t.leftTopPoint,[Rt.LEFT_BOTTOM]:t.rightTopPoint,[Rt.LEFT_TOP]:t.rightBottomPoint,[Rt.RIGHT_TOP]:t.leftBottomPoint,[Rt.TOP]:t.bottomPoint,[Rt.BOTTOM]:t.topPoint,[Rt.LEFT]:t.rightPoint,[Rt.RIGHT]:t.leftPoint})[e],xz=(e,t,n)=>{const r=pt(),i=st(),{activeElementIdList:o,activeGroupElementId:a}=Ve(r),{viewportRatio:s,viewportSize:l}=Ve(i),{ctrlOrShiftKeyActive:u}=Ve(Ns()),{addHistorySnapshot:c}=nn();return{scaleElement:(h,p,v)=>{const g=!(h instanceof MouseEvent);if(g&&(!h.changedTouches||!h.changedTouches[0]))return;let m=!0;r.setScalingState(!0);const y=p.left,R=p.top,A=p.width,x=p.height,S=p.type==="table"?p.cellMinHeight:0,L="rotate"in p&&p.rotate?p.rotate:0,M=Math.PI*L/180,w=u.value||"fixedRatio"in p&&p.fixedRatio,_=A/x,C=g?h.changedTouches[0].pageX:h.pageX,O=g?h.changedTouches[0].pageY:h.pageY,N=bz[p.type]||20,P=(Q,K)=>{if(!w)return Q1&&(te=N*de),K==="width"?Q{const J=[];let de=!1,G=!1;const Ae={offsetX:0,offsetY:0};if(K||K===0)for(let ue=0;ue{if(!m)return;const K=Q instanceof MouseEvent?Q.pageX:Q.changedTouches[0].pageX,te=Q instanceof MouseEvent?Q.pageY:Q.changedTouches[0].pageY,J=K-C,de=te-O;let G=A,Ae=x,ue=y,ce=R;if(L){const le=(Math.cos(M)*J+Math.sin(M)*de)/n.value;let $=(Math.cos(M)*de-Math.sin(M)*J)/n.value;w&&((v===Rt.RIGHT_BOTTOM||v===Rt.LEFT_TOP)&&($=le/_),(v===Rt.LEFT_BOTTOM||v===Rt.RIGHT_TOP)&&($=-le/_)),v===Rt.RIGHT_BOTTOM?(G=P(A+le,"width"),Ae=P(x+$,"height")):v===Rt.LEFT_BOTTOM?(G=P(A-le,"width"),Ae=P(x+$,"height"),ue=y-(G-A)):v===Rt.LEFT_TOP?(G=P(A-le,"width"),Ae=P(x-$,"height"),ue=y-(G-A),ce=R-(Ae-x)):v===Rt.RIGHT_TOP?(G=P(A+le,"width"),Ae=P(x-$,"height"),ce=R-(Ae-x)):v===Rt.TOP?(Ae=P(x-$,"height"),ce=R-(Ae-x)):v===Rt.BOTTOM?Ae=P(x+$,"height"):v===Rt.LEFT?(G=P(A-le,"width"),ue=y-(G-A)):v===Rt.RIGHT&&(G=P(A+le,"width"));const X=EX({width:G,height:Ae,left:ue,top:ce},L),j=XX(v,X),se=j.left,ne=j.top,re=se-I,ae=ne-W;ue=ue-re,ce=ce-ae}else{let le=J/n.value,$=de/n.value;if(w&&((v===Rt.RIGHT_BOTTOM||v===Rt.LEFT_TOP)&&($=le/_),(v===Rt.LEFT_BOTTOM||v===Rt.RIGHT_TOP)&&($=-le/_)),v===Rt.RIGHT_BOTTOM){const{offsetX:X,offsetY:j}=ee(y+A+le,R+x+$);le=le-X,$=$-j,w&&(j?le=$*_:$=le/_),G=P(A+le,"width"),Ae=P(x+$,"height")}else if(v===Rt.LEFT_BOTTOM){const{offsetX:X,offsetY:j}=ee(y+le,R+x+$);le=le-X,$=$-j,w&&(j?le=-$*_:$=-le/_),G=P(A-le,"width"),Ae=P(x+$,"height"),ue=y-(G-A)}else if(v===Rt.LEFT_TOP){const{offsetX:X,offsetY:j}=ee(y+le,R+$);le=le-X,$=$-j,w&&(j?le=$*_:$=le/_),G=P(A-le,"width"),Ae=P(x-$,"height"),ue=y-(G-A),ce=R-(Ae-x)}else if(v===Rt.RIGHT_TOP){const{offsetX:X,offsetY:j}=ee(y+A+le,R+$);le=le-X,$=$-j,w&&(j?le=-$*_:$=-le/_),G=P(A+le,"width"),Ae=P(x-$,"height"),ce=R-(Ae-x)}else if(v===Rt.LEFT){const{offsetX:X}=ee(y+le,null);le=le-X,G=P(A-le,"width"),ue=y-(G-A)}else if(v===Rt.RIGHT){const{offsetX:X}=ee(y+A+le,null);le=le-X,G=P(A+le,"width")}else if(v===Rt.TOP){const{offsetY:X}=ee(null,R+$);$=$-X,Ae=P(x-$,"height"),ce=R-(Ae-x)}else if(v===Rt.BOTTOM){const{offsetY:X}=ee(null,R+x+$);$=$-X,Ae=P(x+$,"height")}}e.value=e.value.map(le=>{if(p.id!==le.id)return le;if(le.type==="shape"&&"pathFormula"in le&&le.pathFormula){const $=f0[le.pathFormula];let X="";return"editable"in $?X=$.formula(G,Ae,le.keypoints):X=$.formula(G,Ae),{...le,left:ue,top:ce,width:G,height:Ae,viewBox:[G,Ae],path:X}}if(le.type==="table"){let $=S+(Ae-x)/le.data.length;return $=$<36?36:$,$===S?{...le,left:ue,width:G}:{...le,left:ue,top:ce,width:G,height:Ae,cellMinHeight:$<36?36:$}}return{...le,left:ue,top:ce,width:G,height:Ae}})},Y=Q=>{m=!1,document.ontouchmove=null,document.ontouchend=null,document.onmousemove=null,document.onmouseup=null,t.value=[];const K=Q instanceof MouseEvent?Q.pageX:Q.changedTouches[0].pageX,te=Q instanceof MouseEvent?Q.pageY:Q.changedTouches[0].pageY;C===K&&O===te||(i.updateSlide({elements:e.value}),r.setScalingState(!1),c())};g?(document.ontouchmove=B,document.ontouchend=Y):(document.onmousemove=B,document.onmouseup=Y)},scaleMultiElement:(h,p,v)=>{let g=!0;const{minX:m,maxX:y,minY:R,maxY:A}=p,x=y-m,S=A-R,L=x/S,M=h.pageX,w=h.pageY,_=JSON.parse(JSON.stringify(e.value));document.onmousemove=C=>{if(!g)return;const O=C.pageX,N=C.pageY,P=(O-M)/n.value;let F=(N-w)/n.value;u.value&&((v===Rt.RIGHT_BOTTOM||v===Rt.LEFT_TOP)&&(F=P/L),(v===Rt.LEFT_BOTTOM||v===Rt.RIGHT_TOP)&&(F=-P/L));let I=m,W=y,U=R,Z=A;v===Rt.RIGHT_BOTTOM?(W=y+P,Z=A+F):v===Rt.LEFT_BOTTOM?(I=m+P,Z=A+F):v===Rt.LEFT_TOP?(I=m+P,U=R+F):v===Rt.RIGHT_TOP?(W=y+P,U=R+F):v===Rt.TOP?U=R+F:v===Rt.BOTTOM?Z=A+F:v===Rt.LEFT?I=m+P:v===Rt.RIGHT&&(W=y+P);const ee=W-I,B=Z-U;let Y=ee/x,Q=B/S;Y<=0&&(Y=0),Q<=0&&(Q=0),e.value=e.value.map(K=>{if((K.type==="image"||K.type==="shape")&&o.value.includes(K.id)){const te=_.find(J=>J.id===K.id);return{...K,width:te.width*Y,height:te.height*Q,left:I+(te.left-m)*Y,top:U+(te.top-R)*Q}}return K})},document.onmouseup=C=>{g=!1,document.onmousemove=null,document.onmouseup=null,!(M===C.pageX&&w===C.pageY)&&(i.updateSlide({elements:e.value}),c())}}}},n3e=(e,t)=>{const n=pt(),{activeElementIdList:r,activeGroupElementId:i,handleElementId:o,editorAreaFocus:a}=Ve(n),{ctrlOrShiftKeyActive:s}=Ve(Ns());return{selectElement:(u,c,f=!0)=>{if(a.value||n.setEditorareaFocus(!0),r.value.includes(c.id)){if(s.value){let d=[];if(c.groupId){const h=[];e.value.forEach(p=>{p.groupId===c.groupId&&h.push(p.id)}),d=r.value.filter(p=>!h.includes(p))}else d=r.value.filter(h=>h!==c.id);d.length>0&&n.setActiveElementIdList(d)}else if(o.value!==c.id)n.setHandleElementId(c.id);else if(i.value!==c.id){const d=u instanceof MouseEvent?u.pageX:u.changedTouches[0].pageX,h=u instanceof MouseEvent?u.pageY:u.changedTouches[0].pageY;u.target.onmouseup=p=>{const v=p.pageX,g=p.pageY;d===v&&h===g&&(n.setActiveGroupElementId(c.id),p.target.onmouseup=null)}}}else{let d=[];if(s.value?d=[...r.value,c.id]:d=[c.id],c.groupId){const h=[];e.value.forEach(p=>{p.groupId===c.groupId&&h.push(p.id)}),d=[...d,...h]}n.setActiveElementIdList(Qn.uniq(d)),n.setHandleElementId(c.id)}f&&t(u,c)}}},Sz=(e,t,n)=>{const r=st(),{activeElementIdList:i,activeGroupElementId:o}=Ve(pt()),{shiftKeyState:a}=Ve(Ns()),{viewportRatio:s,viewportSize:l}=Ve(r),{addHistorySnapshot:u}=nn();return{dragElement:(f,d)=>{const h=!(f instanceof MouseEvent);if(h&&(!f.changedTouches||!f.changedTouches[0])||!i.value.includes(d.id))return;let p=!0;const v=l.value,g=l.value*s.value,m=5,R=JSON.parse(JSON.stringify(e.value)).filter(Q=>i.value.includes(Q.id)),A=d.left,x=d.top,S=d.width,L="height"in d&&d.height?d.height:0,M="rotate"in d&&d.rotate?d.rotate:0,w=h?f.changedTouches[0].pageX:f.pageX,_=h?f.changedTouches[0].pageY:f.pageY;let C=null;const O=d.id===o.value;let N=[],P=[];for(const Q of e.value){if(Q.type==="line"||O&&Q.id===d.id||!O&&i.value.includes(Q.id))continue;let K,te,J,de;if("rotate"in Q&&Q.rotate){const{xRange:re,yRange:ae}=nv({left:Q.left,top:Q.top,width:Q.width,height:Q.height,rotate:Q.rotate});K=re[0],te=ae[0],J=re[1]-re[0],de=ae[1]-ae[0]}else K=Q.left,te=Q.top,J=Q.width,de=Q.height;const G=K+J,Ae=te+de,ue=te+de/2,ce=K+J/2,le={value:te,range:[K,G]},$={value:Ae,range:[K,G]},X={value:ue,range:[K,G]},j={value:K,range:[te,Ae]},se={value:G,range:[te,Ae]},ne={value:ce,range:[te,Ae]};N.push(le,$,X),P.push(j,se,ne)}const F={value:0,range:[0,v]},I={value:g,range:[0,v]},W={value:g/2,range:[0,v]},U={value:0,range:[0,g]},Z={value:v,range:[0,g]},ee={value:v/2,range:[0,g]};N.push(F,I,W),P.push(U,Z,ee),N=xx(N),P=xx(P);const B=Q=>{const K=Q instanceof MouseEvent?Q.pageX:Q.changedTouches[0].pageX,te=Q instanceof MouseEvent?Q.pageY:Q.changedTouches[0].pageY;if(C!==!1&&(C=Math.abs(w-K)Math.abs(de)&&(de=0),Math.abs(J)ae.id===d.id?{...ae,left:G,top:Ae}:ae);else{const ae=e.value.find(ve=>ve.id===d.id);if(!ae)return;e.value=e.value.map(ve=>i.value.includes(ve.id)?ve.id===d.id?{...ve,left:G,top:Ae}:{...ve,left:ve.left+(G-ae.left),top:ve.top+(Ae-ae.top)}:ve)}},Y=Q=>{p=!1,document.ontouchmove=null,document.ontouchend=null,document.onmousemove=null,document.onmouseup=null,t.value=[];const K=Q instanceof MouseEvent?Q.pageX:Q.changedTouches[0].pageX,te=Q instanceof MouseEvent?Q.pageY:Q.changedTouches[0].pageY;w===K&&_===te||(r.updateSlide({elements:e.value}),u())};h?(document.ontouchmove=B,document.ontouchend=Y):(document.onmousemove=B,document.onmouseup=Y)}}},r3e=e=>{const t=st(),{canvasScale:n}=Ve(pt()),{ctrlOrShiftKeyActive:r}=Ve(Ns()),{addHistorySnapshot:i}=nn();return{dragLineElement:(a,s,l)=>{let u=!0;const c=8,f=a.pageX,d=a.pageY,h=[];for(let p=0;p{if(!u)return;const v=p.pageX,g=p.pageY,m=(v-f)/n.value,y=(g-d)/n.value;let R=s.left+s.start[0],A=s.top+s.start[1],x=s.left+s.end[0],S=s.top+s.end[1];const L=s.broken||s.broken2||s.curve||[0,0];let M=s.left+L[0],w=s.top+L[1];const[_,C]=s.cubic||[[0,0],[0,0]];let O=s.left+_[0],N=s.top+_[1],P=s.left+C[0],F=s.top+C[1];if(l===Go.START){R=R+m,A=A+y,Math.abs(R-x)x&&(ee[0]=U-I,B[0]=0),A>S&&(ee[1]=Z-W,B[1]=0),e.value=e.value.map(Y=>{if(Y.id===s.id){const Q={...Y,left:I,top:W,start:ee,end:B};return l===Go.START||l===Go.END?(r.value?(s.broken&&(Q.broken=[M-I,w-W]),s.curve&&(Q.curve=[M-I,w-W]),s.cubic&&(Q.cubic=[[O-I,N-W],[P-I,F-W]])):(s.broken&&(Q.broken=[(ee[0]+B[0])/2,(ee[1]+B[1])/2]),s.curve&&(Q.curve=[(ee[0]+B[0])/2,(ee[1]+B[1])/2]),s.cubic&&(Q.cubic=[[(ee[0]+B[0])/2,(ee[1]+B[1])/2],[(ee[0]+B[0])/2,(ee[1]+B[1])/2]])),s.broken2&&(Q.broken2=[(ee[0]+B[0])/2,(ee[1]+B[1])/2])):l===Go.C?(s.broken&&(Q.broken=[M-I,w-W]),s.curve&&(Q.curve=[M-I,w-W]),s.broken2&&(U-I>=Z-W?Q.broken2=[M-I,Q.broken2[1]]:Q.broken2=[Q.broken2[0],w-W])):s.cubic&&(Q.cubic=[[O-I,N-W],[P-I,F-W]]),Q}return Y})},document.onmouseup=p=>{u=!1,document.onmousemove=null,document.onmouseup=null;const v=p.pageX,g=p.pageY;f===v&&d===g||(t.updateSlide({elements:e.value}),i())}}}},i3e=(e,t)=>{const n=st(),{addHistorySnapshot:r}=nn();return{moveShapeKeypoint:(o,a,s=0)=>{const l=!(o instanceof MouseEvent);if(l&&(!o.changedTouches||!o.changedTouches[0]))return;let u=!0;const c=l?o.changedTouches[0].pageX:o.pageX,f=l?o.changedTouches[0].pageY:o.pageY,d=a.keypoints,h=f0[a.pathFormula];let p=null;if("editable"in h&&h.editable){const m=h.getBaseSize[s],y=h.range[s],R=h.relative[s],A=d[s],x=m(a.width,a.height),S=x*A,[L,M]=y;p={baseSize:x,originPos:S,min:L,max:M,relative:R}}const v=m=>{if(!u)return;const y=m instanceof MouseEvent?m.pageX:m.changedTouches[0].pageX,R=m instanceof MouseEvent?m.pageY:m.changedTouches[0].pageY,A=(y-c)/t.value,x=(R-f)/t.value;e.value=e.value.map(S=>{if(S.id===a.id&&p){const{baseSize:L,originPos:M,min:w,max:_,relative:C}=p,O=S;let N=0;C==="center"?N=(M-A*2)/L:C==="left"?N=(M+A)/L:C==="right"?N=(M-A)/L:C==="top"?N=(M+x)/L:C==="bottom"?N=(M-x)/L:C==="left_bottom"?N=(M+A)/L:C==="right_bottom"?N=(M-A)/L:C==="top_right"?N=(M+x)/L:C==="bottom_right"&&(N=(M-x)/L),N_&&(N=_);let P=[];return Array.isArray(d)?(P=[...d],P[s]=N):P=[N],{...S,keypoints:P,path:h.formula(O.width,O.height,P)}}return S})},g=m=>{u=!1,document.ontouchmove=null,document.ontouchend=null,document.onmousemove=null,document.onmouseup=null;const y=m instanceof MouseEvent?m.pageX:m.changedTouches[0].pageX,R=m instanceof MouseEvent?m.pageY:m.changedTouches[0].pageY;c===y&&f===R||(n.updateSlide({elements:e.value}),r())};l?(document.ontouchmove=v,document.ontouchend=g):(document.onmousemove=v,document.onmouseup=g)}}},o3e=e=>{const t=pt(),{canvasScale:n,creatingElement:r}=Ve(t),i=c=>{const{start:f,end:d}=c;if(!e.value)return;const h=e.value.getBoundingClientRect(),[p,v]=f,[g,m]=d,y=Math.min(p,g),R=Math.max(p,g),A=Math.min(v,m),x=Math.max(v,m),S=(y-h.x)/n.value,L=(A-h.y)/n.value,M=(R-y)/n.value,w=(x-A)/n.value;return{left:S,top:L,width:M,height:w}},o=c=>{const{start:f,end:d}=c;if(!e.value)return;const h=e.value.getBoundingClientRect(),[p,v]=f,[g,m]=d,y=Math.min(p,g),R=Math.max(p,g),A=Math.min(v,m),x=Math.max(v,m),S=(y-h.x)/n.value,L=(A-h.y)/n.value,M=(R-y)/n.value,w=(x-A)/n.value;return{left:S,top:L,start:[p===y?0:M,v===A?0:w],end:[g===y?0:M,m===A?0:w]}},{createTextElement:a,createShapeElement:s,createLineElement:l}=d0();return{formatCreateSelection:i,insertElementFromCreateSelection:c=>{if(!r.value)return;const f=r.value.type;if(f==="text"){const d=i(c);d&&a(d,{vertical:r.value.vertical})}else if(f==="shape"){const d=i(c);d&&s(d,r.value.data)}else if(f==="line"){const d=o(c);d&&l(d,r.value.data)}t.setCreatingElement(null)}}},g3=()=>{const e=st(),{activeElementIdList:t,activeElementList:n}=Ve(pt()),{currentSlide:r,viewportRatio:i,viewportSize:o}=Ve(e),{addHistorySnapshot:a}=nn();return{alignElementToCanvas:l=>{const u=o.value,c=o.value*i.value,{minX:f,maxX:d,minY:h,maxY:p}=nc(n.value),v=JSON.parse(JSON.stringify(r.value.elements));for(const g of v)if(t.value.includes(g.id)){if(l===gn.CENTER){const m=h+(p-h)/2-c/2,y=f+(d-f)/2-u/2;g.top=g.top-m,g.left=g.left-y}if(l===gn.TOP){const m=h-0;g.top=g.top-m}else if(l===gn.VERTICAL){const m=h+(p-h)/2-c/2;g.top=g.top-m}else if(l===gn.BOTTOM){const m=p-c;g.top=g.top-m}else if(l===gn.LEFT){const m=f-0;g.left=g.left-m}else if(l===gn.HORIZONTAL){const m=f+(d-f)/2-u/2;g.left=g.left-m}else if(l===gn.RIGHT){const m=d-u;g.left=g.left-m}}e.updateSlide({elements:v}),a()}}},hd=e=>({shadowStyle:Se(()=>{if(e.value){const{h:n,v:r,blur:i,color:o}=e.value;return`${n}px ${r}px ${i}px ${o}`}return""})}),m3=(e,t)=>({flipStyle:Se(()=>{let r="";return e.value&&t.value?r="rotateX(180deg) rotateY(180deg)":t.value?r="rotateX(180deg)":e.value&&(r="rotateY(180deg)"),r})});var wz=(e=>(e.RECT="rect",e.ELLIPSE="ellipse",e.POLYGON="polygon",e))(wz||{});const v6={rect:{name:"矩形",type:"rect",radius:"0",style:""},rect2:{name:"矩形2",type:"polygon",style:"polygon(0% 0%, 80% 0%, 100% 20%, 100% 100%, 0 100%)",createPath:(e,t)=>`M 0 0 L ${e*.8} 0 L ${e} ${t*.2} L ${e} ${t} L 0 ${t} Z`},rect3:{name:"矩形3",type:"polygon",style:"polygon(0% 0%, 80% 0%, 100% 20%, 100% 100%, 20% 100%, 0% 80%)",createPath:(e,t)=>`M 0 0 L ${e*.8} 0 L ${e} ${t*.2} L ${e} ${t} L ${e*.2} ${t} L 0 ${t*.8} Z`},roundRect:{name:"圆角矩形",type:"rect",radius:"10px",style:"inset(0 round 10px)"},ellipse:{name:"圆形",type:"ellipse",style:"ellipse(50% 50% at 50% 50%)"},triangle:{name:"三角形",type:"polygon",style:"polygon(50% 0%, 0% 100%, 100% 100%)",createPath:(e,t)=>`M ${e*.5} 0 L 0 ${t} L ${e} ${t} Z`},triangle2:{name:"三角形2",type:"polygon",style:"polygon(50% 100%, 0% 0%, 100% 0%)",createPath:(e,t)=>`M ${e*.5} ${t} L 0 0 L ${e} 0 Z`},triangle3:{name:"三角形3",type:"polygon",style:"polygon(0% 0%, 0% 100%, 100% 100%)",createPath:(e,t)=>`M 0 0 L 0 ${t} L ${e} ${t} Z`},rhombus:{name:"菱形",type:"polygon",style:"polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)",createPath:(e,t)=>`M ${e*.5} 0 L ${e} ${t*.5} L ${e*.5} ${t} L 0 ${t*.5} Z`},pentagon:{name:"五边形",type:"polygon",style:"polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%)",createPath:(e,t)=>`M ${e*.5} 0 L ${e} ${.38*t} L ${.82*e} ${t} L ${.18*e} ${t} L 0 ${.38*t} Z`},hexagon:{name:"六边形",type:"polygon",style:"polygon(20% 0%, 80% 0%, 100% 50%, 80% 100%, 20% 100%, 0% 50%)",createPath:(e,t)=>`M ${e*.2} 0 L ${e*.8} 0 L ${e} ${t*.5} L ${e*.8} ${t} L ${e*.2} ${t} L 0 ${t*.5} Z`},heptagon:{name:"七边形",type:"polygon",style:"polygon(50% 0%, 90% 20%, 100% 60%, 75% 100%, 25% 100%, 0% 60%, 10% 20%)",createPath:(e,t)=>`M ${e*.5} 0 L ${e*.9} ${t*.2} L ${e} ${t*.6} L ${e*.75} ${t} L ${e*.25} ${t} L 0 ${t*.6} L ${e*.1} ${t*.2} Z`},octagon:{name:"八边形",type:"polygon",style:"polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%)",createPath:(e,t)=>`M ${e*.3} 0 L ${e*.7} 0 L ${e} ${t*.3} L ${e} ${t*.7} L ${e*.7} ${t} L ${e*.3} ${t} L 0 ${t*.7} L 0 ${t*.3} Z`},chevron:{name:"V形",type:"polygon",style:"polygon(75% 0%, 100% 50%, 75% 100%, 0% 100%, 25% 50%, 0% 0%)",createPath:(e,t)=>`M ${e*.75} 0 L ${e} ${t*.5} L ${e*.75} ${t} L 0 ${t} L ${e*.25} ${t*.5} L 0 0 Z`},point:{name:"点",type:"polygon",style:"polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%)",createPath:(e,t)=>`M 0 0 L ${e*.75} 0 L ${e} ${t*.5} L ${e*.75} ${t} L 0 ${t} Z`},arrow:{name:"箭头",type:"polygon",style:"polygon(0% 20%, 60% 20%, 60% 0%, 100% 50%, 60% 100%, 60% 80%, 0% 80%)",createPath:(e,t)=>`M 0 ${t*.2} L ${e*.6} ${t*.2} L ${e*.6} 0 L ${e} ${t*.5} L ${e*.6} ${t} L ${e*.6} ${t*.8} L 0 ${t*.8} Z`},parallelogram:{name:"平行四边形",type:"polygon",style:"polygon(30% 0%, 100% 0%, 70% 100%, 0% 100%)",createPath:(e,t)=>`M ${e*.3} 0 L ${e} 0 L ${e*.7} ${t} L 0 ${t} Z`},parallelogram2:{name:"平行四边形2",type:"polygon",style:"polygon(30% 100%, 100% 100%, 70% 0%, 0% 0%)",createPath:(e,t)=>`M ${e*.3} ${t} L ${e} ${t} L ${e*.7} 0 L 0 0 Z`},trapezoid:{name:"梯形",type:"polygon",style:"polygon(25% 0%, 75% 0%, 100% 100%, 0% 100%)",createPath:(e,t)=>`M ${e*.25} 0 L ${e*.75} 0 L ${e} ${t} L 0 ${t} Z`},trapezoid2:{name:"梯形2",type:"polygon",style:"polygon(0% 0%, 100% 0%, 75% 100%, 25% 100%)",createPath:(e,t)=>`M 0 0 L ${e} 0 L ${e*.75} ${t} L ${e*.25} ${t} Z`}},kk=e=>{const t=Se(()=>{let r=v6.rect;if(e.value.clip){const i=e.value.clip.shape||wz.RECT;r=v6[i]}return r.radius!==void 0&&e.value.radius&&(r={...r,radius:`${e.value.radius}px`,style:`inset(0 round ${e.value.radius}px)`}),r}),n=Se(()=>{if(!e.value.clip)return{top:"0",left:"0",width:"100%",height:"100%"};const[r,i]=e.value.clip.range,o=(i[0]-r[0])/100,a=(i[1]-r[1])/100,s=r[0]/o,l=r[1]/a;return{left:-s+"%",top:-l+"%",width:100/o+"%",height:100/a+"%"}});return{clipShape:t,imgPosition:n}},Mz=e=>({filter:Se(()=>{if(!e.value)return"";let n="";const r=Object.keys(e.value);for(const i of r)n+=`${i}(${e.value[i]}) `;return n})}),t1=e=>{const t=Se(()=>{var o;return((o=e.value)==null?void 0:o.width)??0}),n=Se(()=>{var o;return((o=e.value)==null?void 0:o.style)||"solid"}),r=Se(()=>{var o;return((o=e.value)==null?void 0:o.color)||"#d14424"}),i=Se(()=>{const o=t.value;return n.value==="dashed"?o<=6?`${o*4.5} ${o*2}`:`${o*4} ${o*1.5}`:n.value==="dotted"?o<=6?`${o*1.8} ${o*1.6}`:`${o*1.5} ${o*1.2}`:"0 0"});return{outlineWidth:t,outlineStyle:n,outlineColor:r,strokeDashArray:i}},a3e=["width","height"],s3e=["rx","ry","width","height","stroke","stroke-width","stroke-dasharray"],l3e=We({__name:"ImageRectOutline",props:{width:{},height:{},outline:{},radius:{default:"0"}},setup(e){const t=e,{outlineWidth:n,outlineColor:r,strokeDashArray:i}=t1(Uv(t,"outline"));return(o,a)=>o.outline?(D(),q("svg",{key:0,class:"image-rect-outline",overflow:"visible",width:o.width,height:o.height},[V("rect",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:"transparent",rx:o.radius,ry:o.radius,width:o.width,height:o.height,stroke:z(r),"stroke-width":z(n),"stroke-dasharray":z(i)},null,8,s3e)],8,a3e)):Ye("",!0)}}),u3e=Be(l3e,[["__scopeId","data-v-09a0319c"]]),c3e=["width","height"],f3e=["cx","cy","rx","ry","stroke","stroke-width","stroke-dasharray"],d3e=We({__name:"ImageEllipseOutline",props:{width:{},height:{},outline:{}},setup(e){const t=e,{outlineWidth:n,outlineColor:r,strokeDashArray:i}=t1(Uv(t,"outline"));return(o,a)=>o.outline?(D(),q("svg",{key:0,class:"image-ellipse-outline",overflow:"visible",width:o.width,height:o.height},[V("ellipse",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:"transparent",cx:o.width/2,cy:o.height/2,rx:o.width/2,ry:o.height/2,stroke:z(r),"stroke-width":z(n),"stroke-dasharray":z(i)},null,8,f3e)],8,c3e)):Ye("",!0)}}),h3e=Be(d3e,[["__scopeId","data-v-19e68d74"]]),p3e=["width","height"],v3e=["d","stroke","stroke-width","stroke-dasharray"],g3e=We({__name:"ImagePolygonOutline",props:{width:{},height:{},createPath:{type:Function},outline:{}},setup(e){const t=e,{outlineWidth:n,outlineColor:r,strokeDashArray:i}=t1(Uv(t,"outline"));return(o,a)=>o.outline?(D(),q("svg",{key:0,class:"image-polygon-outline",overflow:"visible",width:o.width,height:o.height},[V("path",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:"transparent",d:o.createPath(o.width,o.height),stroke:z(r),"stroke-width":z(n),"stroke-dasharray":z(i)},null,8,v3e)],8,p3e)):Ye("",!0)}}),m3e=Be(g3e,[["__scopeId","data-v-a036b0a3"]]),y3e={class:"image-outline"},Lz=We({__name:"index",props:{elementInfo:{}},setup(e){const t=e,n=Se(()=>t.elementInfo),{clipShape:r}=kk(n);return(i,o)=>(D(),q("div",y3e,[z(r).type==="rect"?(D(),Oe(u3e,{key:0,width:i.elementInfo.width,height:i.elementInfo.height,radius:z(r).radius,outline:i.elementInfo.outline},null,8,["width","height","radius","outline"])):z(r).type==="ellipse"?(D(),Oe(h3e,{key:1,width:i.elementInfo.width,height:i.elementInfo.height,outline:i.elementInfo.outline},null,8,["width","height","outline"])):z(r).type==="polygon"?(D(),Oe(m3e,{key:2,width:i.elementInfo.width,height:i.elementInfo.height,outline:i.elementInfo.outline,createPath:z(r).createPath},null,8,["width","height","outline","createPath"])):Ye("",!0)]))}}),Tz=e=>(rn("data-v-31b3b0f9"),e=e(),on(),e),A3e=["src"],R3e=["src"],b3e=["onMousedown"],x3e=Tz(()=>V("svg",{width:"16",height:"16",fill:"#fff",stroke:"#333"},[V("path",{"stroke-width":"0.3","shape-rendering":"crispEdges",d:"M 16 0 L 0 0 L 0 16 L 4 16 L 4 4 L 16 4 L 16 0 Z"})],-1)),S3e=[x3e],w3e=["onMousedown"],M3e=Tz(()=>V("svg",{width:"16",height:"16",fill:"#fff",stroke:"#333"},[V("path",{"stroke-width":"0.3","shape-rendering":"crispEdges",d:"M 16 0 L 0 0 L 0 4 L 16 4 Z"})],-1)),L3e=[M3e],T3e=We({__name:"ImageClipHandler",props:{src:{},clipPath:{},width:{},height:{},top:{},left:{},rotate:{},clipData:{}},emits:["clip"],setup(e,{emit:t}){const n=e,r=t,{canvasScale:i}=Ve(pt()),{ctrlOrShiftKeyActive:o}=Ve(Ns()),a=he({top:"0",left:"0"}),s=he(!1),l=he(null),u=()=>{const[M,w]=n.clipData?n.clipData.range:[[0,0],[100,100]],_=(w[0]-M[0])/100,C=(w[1]-M[1])/100,O=M[0]/_,N=M[1]/C;return{widthScale:_,heightScale:C,left:O,top:N}},c=Se(()=>{const{widthScale:M,heightScale:w,left:_,top:C}=u();return{left:-_,top:-C,width:100/M,height:100/w}}),f=Se(()=>({top:c.value.top+"%",left:c.value.left+"%",width:c.value.width+"%",height:c.value.height+"%"})),d=he({top:0,left:0,width:0,height:0}),h=Se(()=>{const{top:M,left:w,width:_,height:C}=d.value;return{top:M+"%",left:w+"%",width:_+"%",height:C+"%"}}),p=Se(()=>{const M=c.value.width,w=c.value.height,{top:_,left:C,width:O,height:N}=d.value;return{left:-C*(100/O)+"%",top:-_*(100/N)+"%",width:M/O*100+"%",height:w/N*100+"%"}}),v=()=>{const{left:M,top:w}=u();d.value={left:M,top:w,width:100,height:100},a.value={top:-w+"%",left:-M+"%"}},g=()=>{if(s.value)return;if(!l.value){r("clip",null);return}const{left:M,top:w}=u(),_={left:(d.value.left-M)/100*n.width,top:(d.value.top-w)/100*n.height,width:(d.value.width-100)/100*n.width,height:(d.value.height-100)/100*n.height},C={range:l.value,position:_};r("clip",C)},m=M=>{M.key.toUpperCase()===yt.ENTER&&g()};Vt(()=>{v(),document.addEventListener("keydown",m)}),En(()=>{document.removeEventListener("keydown",m)});const y=()=>{const M={left:parseInt(p.value.left),top:parseInt(p.value.top),width:parseInt(p.value.width),height:parseInt(p.value.height)},w=100/M.width,_=100/M.height,C=[-M.left*w,-M.top*_],O=[w*100+C[0],_*100+C[1]];l.value=[C,O]},R=M=>{s.value=!0;let w=!0;const _=M.pageX,C=M.pageY,O=c.value,N={...d.value};document.onmousemove=P=>{if(!w)return;const F=P.pageX,I=P.pageY,W=(F-_)/i.value,U=(I-C)/i.value,Z=Math.sqrt(W*W+U*U),B=Math.atan2(U,W)-n.rotate/180*Math.PI,Y=Z*Math.cos(B)/n.width*100,Q=Z*Math.sin(B)/n.height*100;let K=N.left+Y,te=N.top+Q;K<0?K=0:K+N.width>O.width&&(K=O.width-N.width),te<0?te=0:te+N.height>O.height&&(te=O.height-N.height),d.value={...d.value,left:K,top:te}},document.onmouseup=()=>{w=!1,document.onmousemove=null,document.onmouseup=null,y(),setTimeout(()=>{s.value=!1},0)}},A=(M,w)=>{s.value=!0;let _=!0;const C=50/n.width*100,O=50/n.height*100,N=M.pageX,P=M.pageY,F=c.value,I={...d.value},W=d.value.width/d.value.height;document.onmousemove=U=>{if(!_)return;const Z=U.pageX,ee=U.pageY,B=(Z-N)/i.value,Y=(ee-P)/i.value,Q=Math.sqrt(B*B+Y*Y),te=Math.atan2(Y,B)-n.rotate/180*Math.PI;let J=Q*Math.cos(te)/n.width*100,de=Q*Math.sin(te)/n.height*100;o.value&&((w===Rt.RIGHT_BOTTOM||w===Rt.LEFT_TOP)&&(de=J/W),(w===Rt.LEFT_BOTTOM||w===Rt.RIGHT_TOP)&&(de=-J/W));let G,Ae,ue,ce;w===Rt.LEFT_TOP?(I.left+J<0&&(J=-I.left),I.top+de<0&&(de=-I.top),I.width-JF.width&&(J=F.width-(I.left+I.width)),I.top+de<0&&(de=-I.top),I.width+JF.height&&(de=F.height-(I.top+I.height)),I.width-JF.width&&(J=F.width-(I.left+I.width)),I.top+I.height+de>F.height&&(de=F.height-(I.top+I.height)),I.width+JF.height&&(de=F.height-(I.top+I.height)),I.height+deF.width&&(J=F.width-(I.left+I.width)),I.width+J{_=!1,document.onmousemove=null,document.onmouseup=null,y(),setTimeout(()=>s.value=!1,0)}},x=Se(()=>{const M="rotate-",w=n.rotate;return w>-22.5&&w<=22.5?M+0:w>22.5&&w<=67.5?M+45:w>67.5&&w<=112.5?M+90:w>112.5&&w<=157.5?M+135:w>157.5||w<=-157.5?M+0:w>-157.5&&w<=-112.5?M+45:w>-112.5&&w<=-67.5?M+90:w>-67.5&&w<=-22.5?M+135:M+0}),S=[Rt.LEFT_TOP,Rt.RIGHT_TOP,Rt.LEFT_BOTTOM,Rt.RIGHT_BOTTOM],L=[Rt.TOP,Rt.BOTTOM,Rt.LEFT,Rt.RIGHT];return(M,w)=>{const _=_n("click-outside");return Ge((D(),q("div",{class:"image-clip-handler",style:Le(a.value)},[V("img",{class:"bottom-img",src:M.src,draggable:!1,alt:"",style:Le(f.value)},null,12,A3e),V("div",{class:"top-image-content",style:Le({...h.value,clipPath:M.clipPath})},[V("img",{class:"top-img",src:M.src,draggable:!1,alt:"",style:Le(p.value)},null,12,R3e)],4),V("div",{class:"operate",style:Le(h.value),onMousedown:w[0]||(w[0]=Ft(C=>R(C),["stop"]))},[(D(),q(Ee,null,qe(S,C=>V("div",{class:ze(["clip-point",C,x.value]),key:C,onMousedown:Ft(O=>A(O,C),["stop"])},S3e,42,b3e)),64)),(D(),q(Ee,null,qe(L,C=>V("div",{class:ze(["clip-point",C,x.value]),key:C,onMousedown:Ft(O=>A(O,C),["stop"])},L3e,42,w3e)),64))],36)],4)),[[_,g]])}}}),_3e=Be(T3e,[["__scopeId","data-v-31b3b0f9"]]),O3e=["src"],k3e=We({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=pt(),r=st(),{clipingImageElementId:i}=Ve(n),o=Se(()=>i.value===t.elementInfo.id),{addHistorySnapshot:a}=nn(),s=Se(()=>t.elementInfo.shadow),{shadowStyle:l}=hd(s),u=Se(()=>t.elementInfo.flipH),c=Se(()=>t.elementInfo.flipV),{flipStyle:f}=m3(u,c),d=Se(()=>t.elementInfo),{clipShape:h,imgPosition:p}=kk(d),v=Se(()=>t.elementInfo.filters),{filter:g}=Mz(v),m=R=>{t.elementInfo.lock||(R.stopPropagation(),t.selectElement(R,t.elementInfo))},y=R=>{if(n.setClipingImageElementId(""),!R)return;const{range:A,position:x}=R,S=t.elementInfo.clip||{shape:"rect",range:[[0,0],[100,100]]},L=t.elementInfo.left+x.left,M=t.elementInfo.top+x.top,w=t.elementInfo.width+x.width,_=t.elementInfo.height+x.height;let C=0,O=0;if(t.elementInfo.rotate){const P=L+w/2-(t.elementInfo.left+t.elementInfo.width/2),F=-(M+_/2-(t.elementInfo.top+t.elementInfo.height/2)),I=-t.elementInfo.rotate*Math.PI/180,W=P*Math.cos(I)-F*Math.sin(I),U=P*Math.sin(I)+F*Math.cos(I);C=W-P,O=-(U-F)}const N={clip:{...S,range:A},left:L+C,top:M+O,width:w,height:_};r.updateElement({id:t.elementInfo.id,props:N}),a()};return(R,A)=>{const x=_n("contextmenu");return D(),q("div",{class:ze(["editable-element-image",{lock:R.elementInfo.lock}]),style:Le({top:R.elementInfo.top+"px",left:R.elementInfo.left+"px",width:R.elementInfo.width+"px",height:R.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:Le({transform:`rotate(${R.elementInfo.rotate}deg)`})},[o.value?(D(),Oe(_3e,{key:0,src:R.elementInfo.src,clipData:R.elementInfo.clip,width:R.elementInfo.width,height:R.elementInfo.height,top:R.elementInfo.top,left:R.elementInfo.left,rotate:R.elementInfo.rotate,clipPath:z(h).style,onClip:A[0]||(A[0]=S=>y(S))},null,8,["src","clipData","width","height","top","left","rotate","clipPath"])):Ge((D(),q("div",{key:1,class:"element-content",style:Le({filter:z(l)?`drop-shadow(${z(l)})`:"",transform:z(f)}),onMousedown:A[2]||(A[2]=S=>m(S)),onTouchstart:A[3]||(A[3]=S=>m(S))},[k(Lz,{elementInfo:R.elementInfo},null,8,["elementInfo"]),V("div",{class:"image-content",style:Le({clipPath:z(h).style})},[V("img",{src:R.elementInfo.src,draggable:!1,style:Le({top:z(p).top,left:z(p).left,width:z(p).width,height:z(p).height,filter:z(g)}),onDragstart:A[1]||(A[1]=Ft(()=>{},["prevent"])),alt:""},null,44,O3e),R.elementInfo.colorMask?(D(),q("div",{key:0,class:"color-mask",style:Le({backgroundColor:R.elementInfo.colorMask})},null,4)):Ye("",!0)],4)],36)),[[x,R.contextmenus]])],4)],6)}}}),_z=Be(k3e,[["__scopeId","data-v-86b9f3af"]]),P3e=["width","height"],C3e=["d","stroke","stroke-width","stroke-dasharray"],I3e=We({__name:"ElementOutline",props:{width:{},height:{},outline:{}},setup(e){const t=e,{outlineWidth:n,outlineColor:r,strokeDashArray:i}=t1(Uv(t,"outline"));return(o,a)=>o.outline?(D(),q("svg",{key:0,class:"element-outline",overflow:"visible",width:o.width,height:o.height},[V("path",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:"transparent",d:`M0,0 L${o.width},0 L${o.width},${o.height} L0,${o.height} Z`,stroke:z(r),"stroke-width":z(n),"stroke-dasharray":z(i)},null,8,C3e)],8,P3e)):Ye("",!0)}}),y3=Be(I3e,[["__scopeId","data-v-e2ef58f5"]]),Zi=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},i2=function(e){let t=e.assignedSlot||e.parentNode;return t&&t.nodeType==11?t.host:t};let g6=null;const Ku=function(e,t,n){let r=g6||(g6=document.createRange());return r.setEnd(e,n??e.nodeValue.length),r.setStart(e,t||0),r},N3e=function(){g6=null},t0=function(e,t,n,r){return n&&(WX(e,t,n,r,-1)||WX(e,t,n,r,1))},F3e=/^(img|br|input|textarea|hr)$/i;function WX(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:$l(e))){let o=e.parentNode;if(!o||o.nodeType!=1||oy(e)||F3e.test(e.nodeName)||e.contentEditable=="false")return!1;t=Zi(e)+(i<0?0:1),e=o}else if(e.nodeType==1){if(e=e.childNodes[t+(i<0?-1:0)],e.contentEditable=="false")return!1;t=i<0?$l(e):0}else return!1}}function $l(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function E3e(e,t){for(;;){if(e.nodeType==3&&t)return e;if(e.nodeType==1&&t>0){if(e.contentEditable=="false")return null;e=e.childNodes[t-1],t=$l(e)}else if(e.parentNode&&!oy(e))t=Zi(e),e=e.parentNode;else return null}}function X3e(e,t){for(;;){if(e.nodeType==3&&t2),hs=kv||(gu?/Mac/.test(gu.platform):!1),U3e=gu?/Win/.test(gu.platform):!1,ol=/Android \d/.test(pd),ay=!!VX&&"webkitFontSmoothing"in VX.documentElement.style,B3e=ay?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function Y3e(e){let t=e.defaultView&&e.defaultView.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function Uu(e,t){return typeof e=="number"?e:e[t]}function Z3e(e){let t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*r}}function DX(e,t,n){let r=e.someProp("scrollThreshold")||0,i=e.someProp("scrollMargin")||5,o=e.dom.ownerDocument;for(let a=n||e.dom;a;a=i2(a)){if(a.nodeType!=1)continue;let s=a,l=s==o.body,u=l?Y3e(o):Z3e(s),c=0,f=0;if(t.topu.bottom-Uu(r,"bottom")&&(f=t.bottom-t.top>u.bottom-u.top?t.top+Uu(i,"top")-u.top:t.bottom-u.bottom+Uu(i,"bottom")),t.leftu.right-Uu(r,"right")&&(c=t.right-u.right+Uu(i,"right")),c||f)if(l)o.defaultView.scrollBy(c,f);else{let d=s.scrollLeft,h=s.scrollTop;f&&(s.scrollTop+=f),c&&(s.scrollLeft+=c);let p=s.scrollLeft-d,v=s.scrollTop-h;t={left:t.left-p,top:t.top-v,right:t.right-p,bottom:t.bottom-v}}if(l||/^(fixed|sticky)$/.test(getComputedStyle(a).position))break}}function Q3e(e){let t=e.dom.getBoundingClientRect(),n=Math.max(0,t.top),r,i;for(let o=(t.left+t.right)/2,a=n+1;a=n-20){r=s,i=l.top;break}}return{refDOM:r,refTop:i,stack:Pz(e.dom)}}function Pz(e){let t=[],n=e.ownerDocument;for(let r=e;r&&(t.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),e!=n);r=i2(r));return t}function H3e({refDOM:e,refTop:t,stack:n}){let r=e?e.getBoundingClientRect().top:0;Cz(n,r==0?0:r-t)}function Cz(e,t){for(let n=0;n=s){a=Math.max(p.bottom,a),s=Math.min(p.top,s);let v=p.left>t.left?p.left-t.left:p.right=(p.left+p.right)/2?1:0));continue}}else p.top>t.top&&!l&&p.left<=t.left&&p.right>=t.left&&(l=c,u={left:Math.max(p.left,Math.min(p.right,t.left)),top:p.top});!n&&(t.left>=p.right&&t.top>=p.top||t.left>=p.left&&t.top>=p.bottom)&&(o=f+1)}}return!n&&l&&(n=l,i=u,r=0),n&&n.nodeType==3?G3e(n,i):!n||r&&n.nodeType==1?{node:e,offset:o}:Iz(n,i)}function G3e(e,t){let n=e.nodeValue.length,r=document.createRange();for(let i=0;i=(o.left+o.right)/2?1:0)}}return{node:e,offset:0}}function Pk(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function z3e(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left(a.left+a.right)/2?1:-1}return e.docView.posFromDOM(r,i,o)}function $3e(e,t,n,r){let i=-1;for(let o=t,a=!1;o!=e.dom;){let s=e.docView.nearestDesc(o,!0);if(!s)return null;if(s.dom.nodeType==1&&(s.node.isBlock&&s.parent||!s.contentDOM)){let l=s.dom.getBoundingClientRect();if(s.node.isBlock&&s.parent&&(!a&&l.left>r.left||l.top>r.top?i=s.posBefore:(!a&&l.right-1?i:e.docView.posFromDOM(t,n,-1)}function Nz(e,t,n){let r=e.childNodes.length;if(r&&n.topt.top&&i++}let u;ay&&i&&r.nodeType==1&&(u=r.childNodes[i-1]).nodeType==1&&u.contentEditable=="false"&&u.getBoundingClientRect().top>=t.top&&i--,r==e.dom&&i==r.childNodes.length-1&&r.lastChild.nodeType==1&&t.top>r.lastChild.getBoundingClientRect().bottom?s=e.state.doc.content.size:(i==0||r.nodeType!=1||r.childNodes[i-1].nodeName!="BR")&&(s=$3e(e,r,i,t))}s==null&&(s=J3e(e,a,t));let l=e.docView.nearestDesc(a,!0);return{pos:s,inside:l?l.posAtStart-l.border:-1}}function UX(e){return e.top=0&&i==r.nodeValue.length?(l--,c=1):n<0?l--:u++,N1(of(Ku(r,l,u),c),c<0)}if(!e.state.doc.resolve(t-(o||0)).parent.inlineContent){if(o==null&&i&&(n<0||i==$l(r))){let l=r.childNodes[i-1];if(l.nodeType==1)return k5(l.getBoundingClientRect(),!1)}if(o==null&&i<$l(r)){let l=r.childNodes[i];if(l.nodeType==1)return k5(l.getBoundingClientRect(),!0)}return k5(r.getBoundingClientRect(),n>=0)}if(o==null&&i&&(n<0||i==$l(r))){let l=r.childNodes[i-1],u=l.nodeType==3?Ku(l,$l(l)-(a?0:1)):l.nodeType==1&&(l.nodeName!="BR"||!l.nextSibling)?l:null;if(u)return N1(of(u,1),!1)}if(o==null&&i<$l(r)){let l=r.childNodes[i];for(;l.pmViewDesc&&l.pmViewDesc.ignoreForCoords;)l=l.nextSibling;let u=l?l.nodeType==3?Ku(l,0,a?0:1):l.nodeType==1?l:null:null;if(u)return N1(of(u,-1),!0)}return N1(of(r.nodeType==3?Ku(r):r,-n),n>=0)}function N1(e,t){if(e.width==0)return e;let n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function k5(e,t){if(e.height==0)return e;let n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function Ez(e,t,n){let r=e.state,i=e.root.activeElement;r!=t&&e.updateState(t),i!=e.dom&&e.focus();try{return n()}finally{r!=t&&e.updateState(r),i!=e.dom&&i&&i.focus()}}function e4e(e,t,n){let r=t.selection,i=n=="up"?r.$from:r.$to;return Ez(e,t,()=>{let{node:o}=e.docView.domFromPos(i.pos,n=="up"?-1:1);for(;;){let s=e.docView.nearestDesc(o,!0);if(!s)break;if(s.node.isBlock){o=s.contentDOM||s.dom;break}o=s.dom.parentNode}let a=Fz(e,i.pos,1);for(let s=o.firstChild;s;s=s.nextSibling){let l;if(s.nodeType==1)l=s.getClientRects();else if(s.nodeType==3)l=Ku(s,0,s.nodeValue.length).getClientRects();else continue;for(let u=0;uc.top+1&&(n=="up"?a.top-c.top>(c.bottom-a.top)*2:c.bottom-a.bottom>(a.bottom-c.top)*2))return!1}}return!0})}const t4e=/[\u0590-\u08ac]/;function n4e(e,t,n){let{$head:r}=t.selection;if(!r.parent.isTextblock)return!1;let i=r.parentOffset,o=!i,a=i==r.parent.content.size,s=e.domSelection();return!t4e.test(r.parent.textContent)||!s.modify?n=="left"||n=="backward"?o:a:Ez(e,t,()=>{let{focusNode:l,focusOffset:u,anchorNode:c,anchorOffset:f}=e.domSelectionRange(),d=s.caretBidiLevel;s.modify("move",n,"character");let h=r.depth?e.docView.domAfterPos(r.before()):e.dom,{focusNode:p,focusOffset:v}=e.domSelectionRange(),g=p&&!h.contains(p.nodeType==1?p:p.parentNode)||l==p&&u==v;try{s.collapse(c,f),l&&(l!=c||u!=f)&&s.extend&&s.extend(l,u)}catch{}return d!=null&&(s.caretBidiLevel=d),g})}let BX=null,YX=null,ZX=!1;function r4e(e,t,n){return BX==t&&YX==n?ZX:(BX=t,YX=n,ZX=n=="up"||n=="down"?e4e(e,t,n):n4e(e,t,n))}const Ms=0,QX=1,yh=2,mu=3;class sy{constructor(t,n,r,i){this.parent=t,this.children=n,this.dom=r,this.contentDOM=i,this.dirty=Ms,r.pmViewDesc=this}matchesWidget(t){return!1}matchesMark(t){return!1}matchesNode(t,n,r){return!1}matchesHack(t){return!1}parseRule(){return null}stopEvent(t){return!1}get size(){let t=0;for(let n=0;nZi(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))i=t.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let o=t;;o=o.parentNode){if(o==this.dom){i=!1;break}if(o.previousSibling)break}if(i==null&&n==t.childNodes.length)for(let o=t;;o=o.parentNode){if(o==this.dom){i=!0;break}if(o.nextSibling)break}}return i??r>0?this.posAtEnd:this.posAtStart}nearestDesc(t,n=!1){for(let r=!0,i=t;i;i=i.parentNode){let o=this.getDesc(i),a;if(o&&(!n||o.node))if(r&&(a=o.nodeDOM)&&!(a.nodeType==1?a.contains(t.nodeType==1?t:t.parentNode):a==t))r=!1;else return o}}getDesc(t){let n=t.pmViewDesc;for(let r=n;r;r=r.parent)if(r==this)return n}posFromDOM(t,n,r){for(let i=t;i;i=i.parentNode){let o=this.getDesc(i);if(o)return o.localPosFromDOM(t,n,r)}return-1}descAt(t){for(let n=0,r=0;nt||a instanceof Wz){i=t-o;break}o=s}if(i)return this.children[r].domFromPos(i-this.children[r].border,n);for(let o;r&&!(o=this.children[r-1]).size&&o instanceof Xz&&o.side>=0;r--);if(n<=0){let o,a=!0;for(;o=r?this.children[r-1]:null,!(!o||o.dom.parentNode==this.contentDOM);r--,a=!1);return o&&n&&a&&!o.border&&!o.domAtom?o.domFromPos(o.size,n):{node:this.contentDOM,offset:o?Zi(o.dom)+1:0}}else{let o,a=!0;for(;o=r=c&&n<=u-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(t,n,c);t=a;for(let f=s;f>0;f--){let d=this.children[f-1];if(d.size&&d.dom.parentNode==this.contentDOM&&!d.emptyChildAt(1)){i=Zi(d.dom)+1;break}t-=d.size}i==-1&&(i=0)}if(i>-1&&(u>n||s==this.children.length-1)){n=u;for(let c=s+1;ch&&an){let h=s;s=l,l=h}let d=document.createRange();d.setEnd(l.node,l.offset),d.setStart(s.node,s.offset),u.removeAllRanges(),u.addRange(d)}}ignoreMutation(t){return!this.contentDOM&&t.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(t,n){for(let r=0,i=0;i=r:tr){let s=r+o.border,l=a-o.border;if(t>=s&&n<=l){this.dirty=t==r||n==a?yh:QX,t==s&&n==l&&(o.contentLost||o.dom.parentNode!=this.contentDOM)?o.dirty=mu:o.markDirty(t-s,n-s);return}else o.dirty=o.dom==o.contentDOM&&o.dom.parentNode==this.contentDOM&&!o.children.length?yh:mu}r=a}this.dirty=yh}markParentsDirty(){let t=1;for(let n=this.parent;n;n=n.parent,t++){let r=t==1?yh:QX;n.dirty{if(!o)return i;if(o.parent)return o.parent.posBeforeChild(o)})),!n.type.spec.raw){if(a.nodeType!=1){let s=document.createElement("span");s.appendChild(a),a=s}a.contentEditable="false",a.classList.add("ProseMirror-widget")}super(t,[],a,null),this.widget=n,this.widget=n,o=this}matchesWidget(t){return this.dirty==Ms&&t.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(t){let n=this.widget.spec.stopEvent;return n?n(t):!1}ignoreMutation(t){return t.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class i4e extends sy{constructor(t,n,r,i){super(t,[],n,null),this.textDOM=r,this.text=i}get size(){return this.text.length}localPosFromDOM(t,n){return t!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(t){return{node:this.textDOM,offset:t}}ignoreMutation(t){return t.type==="characterData"&&t.target.nodeValue==t.oldValue}}class n0 extends sy{constructor(t,n,r,i){super(t,[],r,i),this.mark=n}static create(t,n,r,i){let o=i.nodeViews[n.type.name],a=o&&o(n,i,r);return(!a||!a.dom)&&(a=Yv.renderSpec(document,n.type.spec.toDOM(n,r),null,n.attrs)),new n0(t,n,a.dom,a.contentDOM||a.dom)}parseRule(){return this.dirty&mu||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(t){return this.dirty!=mu&&this.mark.eq(t)}markDirty(t,n){if(super.markDirty(t,n),this.dirty!=Ms){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty0&&(o=x6(o,0,t,r));for(let s=0;s{if(!l)return a;if(l.parent)return l.parent.posBeforeChild(l)},r,i),c=u&&u.dom,f=u&&u.contentDOM;if(n.isText){if(!c)c=document.createTextNode(n.text);else if(c.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else c||({dom:c,contentDOM:f}=Yv.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!f&&!n.isText&&c.nodeName!="BR"&&(c.hasAttribute("contenteditable")||(c.contentEditable="false"),n.type.spec.draggable&&(c.draggable=!0));let d=c;return c=Uz(c,r,n),u?l=new o4e(t,n,r,i,c,f||null,d,u,o,a+1):n.isText?new R3(t,n,r,i,c,d,o):new Ff(t,n,r,i,c,f||null,d,o,a+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let t={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(t.preserveWhitespace="full"),!this.contentDOM)t.getContent=()=>this.node.content;else if(!this.contentLost)t.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let r=this.children[n];if(this.dom.contains(r.dom.parentNode)){t.contentElement=r.dom.parentNode;break}}t.contentElement||(t.getContent=()=>ft.empty)}return t}matchesNode(t,n,r){return this.dirty==Ms&&t.eq(this.node)&&b6(n,this.outerDeco)&&r.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(t,n){let r=this.node.inlineContent,i=n,o=t.composing?this.localCompositionInfo(t,n):null,a=o&&o.pos>-1?o:null,s=o&&o.pos<0,l=new s4e(this,a&&a.node,t);c4e(this.node,this.innerDeco,(u,c,f)=>{u.spec.marks?l.syncToMarks(u.spec.marks,r,t):u.type.side>=0&&!f&&l.syncToMarks(c==this.node.childCount?Jn.none:this.node.child(c).marks,r,t),l.placeWidget(u,t,i)},(u,c,f,d)=>{l.syncToMarks(u.marks,r,t);let h;l.findNodeMatch(u,c,f,d)||s&&t.state.selection.from>i&&t.state.selection.to-1&&l.updateNodeAt(u,c,f,h,t)||l.updateNextNode(u,c,f,t,d,i)||l.addNode(u,c,f,t,i),i+=u.nodeSize}),l.syncToMarks([],r,t),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||this.dirty==yh)&&(a&&this.protectLocalComposition(t,a),Vz(this.contentDOM,this.children,t),kv&&f4e(this.dom))}localCompositionInfo(t,n){let{from:r,to:i}=t.state.selection;if(!(t.state.selection instanceof nr)||rn+this.node.content.size)return null;let o=t.input.compositionNode;if(!o||!this.dom.contains(o.parentNode))return null;if(this.node.inlineContent){let a=o.nodeValue,s=d4e(this.node.content,a,r-n,i-n);return s<0?null:{node:o,pos:s,text:a}}else return{node:o,pos:-1,text:""}}protectLocalComposition(t,{node:n,pos:r,text:i}){if(this.getDesc(n))return;let o=n;for(;o.parentNode!=this.contentDOM;o=o.parentNode){for(;o.previousSibling;)o.parentNode.removeChild(o.previousSibling);for(;o.nextSibling;)o.parentNode.removeChild(o.nextSibling);o.pmViewDesc&&(o.pmViewDesc=void 0)}let a=new i4e(this,o,n,i);t.input.compositionNodes.push(a),this.children=x6(this.children,r,r+i.length,t,a)}update(t,n,r,i){return this.dirty==mu||!t.sameMarkup(this.node)?!1:(this.updateInner(t,n,r,i),!0)}updateInner(t,n,r,i){this.updateOuterDeco(n),this.node=t,this.innerDeco=r,this.contentDOM&&this.updateChildren(i,this.posAtStart),this.dirty=Ms}updateOuterDeco(t){if(b6(t,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=Dz(this.dom,this.nodeDOM,R6(this.outerDeco,this.node,n),R6(t,this.node,n)),this.dom!=r&&(r.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=t}selectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function HX(e,t,n,r,i){Uz(r,t,e);let o=new Ff(void 0,e,t,n,r,r,r,i,0);return o.contentDOM&&o.updateChildren(i,0),o}class R3 extends Ff{constructor(t,n,r,i,o,a,s){super(t,n,r,i,o,null,a,s,0)}parseRule(){let t=this.nodeDOM.parentNode;for(;t&&t!=this.dom&&!t.pmIsDeco;)t=t.parentNode;return{skip:t||!0}}update(t,n,r,i){return this.dirty==mu||this.dirty!=Ms&&!this.inParent()||!t.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=Ms||t.text!=this.node.text)&&t.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=t.text,i.trackWrites==this.nodeDOM&&(i.trackWrites=null)),this.node=t,this.dirty=Ms,!0)}inParent(){let t=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==t)return!0;return!1}domFromPos(t){return{node:this.nodeDOM,offset:t}}localPosFromDOM(t,n,r){return t==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(t,n,r)}ignoreMutation(t){return t.type!="characterData"&&t.type!="selection"}slice(t,n,r){let i=this.node.cut(t,n),o=document.createTextNode(i.text);return new R3(this.parent,i,this.outerDeco,this.innerDeco,o,o,r)}markDirty(t,n){super.markDirty(t,n),this.dom!=this.nodeDOM&&(t==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=mu)}get domAtom(){return!1}isText(t){return this.node.text==t}}class Wz extends sy{parseRule(){return{ignore:!0}}matchesHack(t){return this.dirty==Ms&&this.dom.nodeName==t}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class o4e extends Ff{constructor(t,n,r,i,o,a,s,l,u,c){super(t,n,r,i,o,a,s,u,c),this.spec=l}update(t,n,r,i){if(this.dirty==mu)return!1;if(this.spec.update){let o=this.spec.update(t,n,r);return o&&this.updateInner(t,n,r,i),o}else return!this.contentDOM&&!t.isLeaf?!1:super.update(t,n,r,i)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(t,n,r,i){this.spec.setSelection?this.spec.setSelection(t,n,r):super.setSelection(t,n,r,i)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(t){return this.spec.stopEvent?this.spec.stopEvent(t):!1}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}}function Vz(e,t,n){let r=e.firstChild,i=!1;for(let o=0;o>1,a=Math.min(o,t.length);for(;i-1)s>this.index&&(this.changed=!0,this.destroyBetween(this.index,s)),this.top=this.top.children[this.index];else{let l=n0.create(this.top,t[o],n,r);this.top.children.splice(this.index,0,l),this.top=l,this.changed=!0}this.index=0,o++}}findNodeMatch(t,n,r,i){let o=-1,a;if(i>=this.preMatch.index&&(a=this.preMatch.matches[i-this.preMatch.index]).parent==this.top&&a.matchesNode(t,n,r))o=this.top.children.indexOf(a,this.index);else for(let s=this.index,l=Math.min(this.top.children.length,s+5);s0;){let s;for(;;)if(r){let u=n.children[r-1];if(u instanceof n0)n=u,r=u.children.length;else{s=u,r--;break}}else{if(n==t)break e;r=n.parent.children.indexOf(n),n=n.parent}let l=s.node;if(l){if(l!=e.child(i-1))break;--i,o.set(s,i),a.push(s)}}return{index:i,matched:o,matches:a.reverse()}}function u4e(e,t){return e.type.side-t.type.side}function c4e(e,t,n,r){let i=t.locals(e),o=0;if(i.length==0){for(let u=0;uo;)s.push(i[a++]);let p=o+d.nodeSize;if(d.isText){let g=p;a!g.inline):s.slice();r(d,v,t.forChild(o,d),h),o=p}}function f4e(e){if(e.nodeName=="UL"||e.nodeName=="OL"){let t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}function d4e(e,t,n,r){for(let i=0,o=0;i=n){if(o>=r&&l.slice(r-t.length-s,r-s)==t)return r-t.length;let u=s=0&&u+t.length+s>=n)return s+u;if(n==r&&l.length>=r+t.length-s&&l.slice(r-s,r-s+t.length)==t)return r}}return-1}function x6(e,t,n,r,i){let o=[];for(let a=0,s=0;a=n||c<=t?o.push(l):(un&&o.push(l.slice(n-u,l.size,r)))}return o}function Ck(e,t=null){let n=e.domSelectionRange(),r=e.state.doc;if(!n.focusNode)return null;let i=e.docView.nearestDesc(n.focusNode),o=i&&i.size==0,a=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(a<0)return null;let s=r.resolve(a),l,u;if(A3(n)){for(l=s;i&&!i.node;)i=i.parent;let c=i.node;if(i&&c.isAtom&&Jt.isSelectable(c)&&i.parent&&!(c.isInline&&W3e(n.focusNode,n.focusOffset,i.dom))){let f=i.posBefore;u=new Jt(a==f?s:r.resolve(f))}}else{let c=e.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(c<0)return null;l=r.resolve(c)}if(!u){let c=t=="pointer"||e.state.selection.head{(n.anchorNode!=r||n.anchorOffset!=i)&&(t.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout(()=>{(!Bz(e)||e.state.selection.visible)&&e.dom.classList.remove("ProseMirror-hideselection")},20))})}function p4e(e){let t=e.domSelection(),n=document.createRange(),r=e.cursorWrapper.dom,i=r.nodeName=="IMG";i?n.setEnd(r.parentNode,Zi(r)+1):n.setEnd(r,0),n.collapse(!1),t.removeAllRanges(),t.addRange(n),!i&&!e.state.selection.visible&&la&&Nf<=11&&(r.disabled=!0,r.disabled=!1)}function Yz(e,t){if(t instanceof Jt){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&($X(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else $X(e)}function $X(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function Ik(e,t,n,r){return e.someProp("createSelectionBetween",i=>i(e,t,n))||nr.between(t,n,r)}function jX(e){return e.editable&&!e.hasFocus()?!1:Zz(e)}function Zz(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(t.anchorNode.nodeType==3?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(t.focusNode.nodeType==3?t.focusNode.parentNode:t.focusNode))}catch{return!1}}function v4e(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return t0(t.node,t.offset,n.anchorNode,n.anchorOffset)}function S6(e,t){let{$anchor:n,$head:r}=e.selection,i=t>0?n.max(r):n.min(r),o=i.parent.inlineContent?i.depth?e.doc.resolve(t>0?i.after():i.before()):null:i;return o&&Fn.findFrom(o,t)}function hf(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function qX(e,t,n){let r=e.state.selection;if(r instanceof nr)if(n.indexOf("s")>-1){let{$head:i}=r,o=i.textOffset?null:t<0?i.nodeBefore:i.nodeAfter;if(!o||o.isText||!o.isLeaf)return!1;let a=e.state.doc.resolve(i.pos+o.nodeSize*(t<0?-1:1));return hf(e,new nr(r.$anchor,a))}else if(r.empty){if(e.endOfTextblock(t>0?"forward":"backward")){let i=S6(e.state,t);return i&&i instanceof Jt?hf(e,i):!1}else if(!(hs&&n.indexOf("m")>-1)){let i=r.$head,o=i.textOffset?null:t<0?i.nodeBefore:i.nodeAfter,a;if(!o||o.isText)return!1;let s=t<0?i.pos-o.nodeSize:i.pos;return o.isAtom||(a=e.docView.descAt(s))&&!a.contentDOM?Jt.isSelectable(o)?hf(e,new Jt(t<0?e.state.doc.resolve(i.pos-o.nodeSize):i)):ay?hf(e,new nr(e.state.doc.resolve(t<0?s:s+o.nodeSize))):!1:!1}}else return!1;else{if(r instanceof Jt&&r.node.isInline)return hf(e,new nr(t>0?r.$to:r.$from));{let i=S6(e.state,t);return i?hf(e,i):!1}}}function Xx(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function pm(e,t){let n=e.pmViewDesc;return n&&n.size==0&&(t<0||e.nextSibling||e.nodeName!="BR")}function Z0(e,t){return t<0?g4e(e):m4e(e)}function g4e(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i,o,a=!1;for(pl&&n.nodeType==1&&r0){if(n.nodeType!=1)break;{let s=n.childNodes[r-1];if(pm(s,-1))i=n,o=--r;else if(s.nodeType==3)n=s,r=n.nodeValue.length;else break}}else{if(Qz(n))break;{let s=n.previousSibling;for(;s&&pm(s,-1);)i=n.parentNode,o=Zi(s),s=s.previousSibling;if(s)n=s,r=Xx(n);else{if(n=n.parentNode,n==e.dom)break;r=0}}}a?w6(e,n,r):i&&w6(e,i,o)}function m4e(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i=Xx(n),o,a;for(;;)if(r{e.state==i&&uc(e)},50)}function eW(e,t){let n=e.state.doc.resolve(t);if(!(po||U3e)&&n.parent.inlineContent){let i=e.coordsAtPos(t);if(t>n.start()){let o=e.coordsAtPos(t-1),a=(o.top+o.bottom)/2;if(a>i.top&&a1)return o.lefti.top&&a1)return o.left>i.left?"ltr":"rtl"}}return getComputedStyle(e.dom).direction=="rtl"?"rtl":"ltr"}function tW(e,t,n){let r=e.state.selection;if(r instanceof nr&&!r.empty||n.indexOf("s")>-1||hs&&n.indexOf("m")>-1)return!1;let{$from:i,$to:o}=r;if(!i.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let a=S6(e.state,t);if(a&&a instanceof Jt)return hf(e,a)}if(!i.parent.inlineContent){let a=t<0?i:o,s=r instanceof ia?Fn.near(a,t):Fn.findFrom(a,t);return s?hf(e,s):!1}return!1}function nW(e,t){if(!(e.state.selection instanceof nr))return!0;let{$head:n,$anchor:r,empty:i}=e.state.selection;if(!n.sameParent(r))return!0;if(!i)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let o=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(o&&!o.isText){let a=e.state.tr;return t<0?a.delete(n.pos-o.nodeSize,n.pos):a.delete(n.pos,n.pos+o.nodeSize),e.dispatch(a),!0}return!1}function rW(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function R4e(e){if(!No||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(t&&t.nodeType==1&&n==0&&t.firstChild&&t.firstChild.contentEditable=="false"){let r=t.firstChild;rW(e,r,"true"),setTimeout(()=>rW(e,r,"false"),20)}return!1}function b4e(e){let t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}function x4e(e,t){let n=t.keyCode,r=b4e(t);if(n==8||hs&&n==72&&r=="c")return nW(e,-1)||Z0(e,-1);if(n==46&&!t.shiftKey||hs&&n==68&&r=="c")return nW(e,1)||Z0(e,1);if(n==13||n==27)return!0;if(n==37||hs&&n==66&&r=="c"){let i=n==37?eW(e,e.state.selection.from)=="ltr"?-1:1:-1;return qX(e,i,r)||Z0(e,i)}else if(n==39||hs&&n==70&&r=="c"){let i=n==39?eW(e,e.state.selection.from)=="ltr"?1:-1:1;return qX(e,i,r)||Z0(e,i)}else{if(n==38||hs&&n==80&&r=="c")return tW(e,-1,r)||Z0(e,-1);if(n==40||hs&&n==78&&r=="c")return R4e(e)||tW(e,1,r)||Z0(e,1);if(r==(hs?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function Hz(e,t){e.someProp("transformCopied",h=>{t=h(t,e)});let n=[],{content:r,openStart:i,openEnd:o}=t;for(;i>1&&o>1&&r.childCount==1&&r.firstChild.childCount==1;){i--,o--;let h=r.firstChild;n.push(h.type.name,h.attrs!=h.type.defaultAttrs?h.attrs:null),r=h.content}let a=e.someProp("clipboardSerializer")||Yv.fromSchema(e.state.schema),s=jz(),l=s.createElement("div");l.appendChild(a.serializeFragment(r,{document:s}));let u=l.firstChild,c,f=0;for(;u&&u.nodeType==1&&(c=$z[u.nodeName.toLowerCase()]);){for(let h=c.length-1;h>=0;h--){let p=s.createElement(c[h]);for(;l.firstChild;)p.appendChild(l.firstChild);l.appendChild(p),f++}u=l.firstChild}u&&u.nodeType==1&&u.setAttribute("data-pm-slice",`${i} ${o}${f?` -${f}`:""} ${JSON.stringify(n)}`);let d=e.someProp("clipboardTextSerializer",h=>h(t,e))||t.content.textBetween(0,t.content.size,` `);return{dom:l,text:d,slice:t}}function Kz(e,t,n,r,i){let o=i.parent.type.spec.code,a,s;if(!n&&!t)return null;let l=t&&(r||o||!n);if(l){if(e.someProp("transformPastedText",d=>{t=d(t,o||r,e)}),o)return t?new Mt(ft.from(e.state.schema.text(t.replace(/\r\n?/g,` -`))),0,0):Mt.empty;let f=e.someProp("clipboardTextParser",d=>d(t,i,r,e));if(f)s=f;else{let d=i.marks(),{schema:h}=e.state,p=Yv.fromSchema(h);a=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(v=>{let g=a.appendChild(document.createElement("p"));v&&g.appendChild(p.serializeNode(h.text(v,d)))})}}else e.someProp("transformPastedHTML",f=>{n=f(n,e)}),a=M4e(n),ay&&L4e(a);let u=a&&a.querySelector("[data-pm-slice]"),c=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(c&&c[3])for(let f=+c[3];f>0;f--){let d=a.firstChild;for(;d&&d.nodeType!=1;)d=d.nextSibling;if(!d)break;a=d}if(s||(s=(e.someProp("clipboardParser")||e.someProp("domParser")||TO.fromSchema(e.state.schema)).parseSlice(a,{preserveWhitespace:!!(l||c),context:i,ruleFromNode(d){return d.nodeName=="BR"&&!d.nextSibling&&d.parentNode&&!S4e.test(d.parentNode.nodeName)?{ignore:!0}:null}})),c)s=T4e(iW(s,+c[1],+c[2]),c[4]);else if(s=Mt.maxOpen(w4e(s.content,i),!0),s.openStart||s.openEnd){let f=0,d=0;for(let h=s.content.firstChild;f{s=f(s,e)}),s}const S4e=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function w4e(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let i=t.node(n).contentMatchAt(t.index(n)),o,a=[];if(e.forEach(s=>{if(!a)return;let l=i.findWrapping(s.type),u;if(!l)return a=null;if(u=a.length&&o.length&&zz(l,o,s,a[a.length-1],0))a[a.length-1]=u;else{a.length&&(a[a.length-1]=Jz(a[a.length-1],o.length));let c=Gz(s,l);a.push(c),i=i.matchType(c.type),o=l}}),a)return ft.from(a)}return e}function Gz(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,ft.from(e));return e}function zz(e,t,n,r,i){if(i1&&(o=0),i=n&&(s=t<0?a.contentMatchAt(0).fillBefore(s,o<=i).append(s):s.append(a.contentMatchAt(a.childCount).fillBefore(ft.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,a.copy(s))}function iW(e,t,n){return t]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n=jz().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(e),i;if((i=r&&$z[r[1].toLowerCase()])&&(e=i.map(o=>"<"+o+">").join("")+e+i.map(o=>"").reverse().join("")),n.innerHTML=e,i)for(let o=0;o=0;s-=2){let l=n.nodes[r[s]];if(!l||l.hasRequiredAttrs())break;i=ft.from(l.create(r[s+1],i)),o++,a++}return new Mt(i,o,a)}const Fo={},Eo={},_4e={touchstart:!0,touchmove:!0};class O4e{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function k4e(e){for(let t in Fo){let n=Fo[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=r=>{C4e(e,r)&&!Nk(e,r)&&(e.editable||!(r.type in Eo))&&n(e,r)},_4e[t]?{passive:!0}:void 0)}No&&e.dom.addEventListener("input",()=>null),L6(e)}function Sf(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function P4e(e){e.domObserver.stop();for(let t in e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}function L6(e){e.someProp("handleDOMEvents",t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=r=>Nk(e,r))})}function Nk(e,t){return e.someProp("handleDOMEvents",n=>{let r=n[t.type];return r?r(e,t)||t.defaultPrevented:!1})}function C4e(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target;n!=e.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}function I4e(e,t){!Nk(e,t)&&Fo[t.type]&&(e.editable||!(t.type in Eo))&&Fo[t.type](e,t)}Eo.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=n.keyCode==16||n.shiftKey,!eJ(e,n)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!(ol&&po&&n.keyCode==13)))if(n.keyCode!=229&&e.domObserver.forceFlush(),kv&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let r=Date.now();e.input.lastIOSEnter=r,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==r&&(e.someProp("handleKeyDown",i=>i(e,fh(13,"Enter"))),e.input.lastIOSEnter=0)},200)}else e.someProp("handleKeyDown",r=>r(e,n))||x4e(e,n)?n.preventDefault():Sf(e,"key")};Eo.keyup=(e,t)=>{t.keyCode==16&&(e.input.shiftKey=!1)};Eo.keypress=(e,t)=>{let n=t;if(eJ(e,n)||!n.charCode||n.ctrlKey&&!n.altKey||hs&&n.metaKey)return;if(e.someProp("handleKeyPress",i=>i(e,n))){n.preventDefault();return}let r=e.state.selection;if(!(r instanceof nr)||!r.$from.sameParent(r.$to)){let i=String.fromCharCode(n.charCode);!/[\r\n]/.test(i)&&!e.someProp("handleTextInput",o=>o(e,r.$from.pos,r.$to.pos,i))&&e.dispatch(e.state.tr.insertText(i).scrollIntoView()),n.preventDefault()}};function b3(e){return{left:e.clientX,top:e.clientY}}function N4e(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}function Fk(e,t,n,r,i){if(r==-1)return!1;let o=e.state.doc.resolve(r);for(let a=o.depth+1;a>0;a--)if(e.someProp(t,s=>a>o.depth?s(e,n,o.nodeAfter,o.before(a),i,!0):s(e,n,o.node(a),o.before(a),i,!1)))return!0;return!1}function av(e,t,n){e.focused||e.focus();let r=e.state.tr.setSelection(t);r.setMeta("pointer",!0),e.dispatch(r)}function F4e(e,t){if(t==-1)return!1;let n=e.state.doc.resolve(t),r=n.nodeAfter;return r&&r.isAtom&&Jt.isSelectable(r)?(av(e,new Jt(n)),!0):!1}function E4e(e,t){if(t==-1)return!1;let n=e.state.selection,r,i;n instanceof Jt&&(r=n.node);let o=e.state.doc.resolve(t);for(let a=o.depth+1;a>0;a--){let s=a>o.depth?o.nodeAfter:o.node(a);if(Jt.isSelectable(s)){r&&n.$from.depth>0&&a>=n.$from.depth&&o.before(n.$from.depth+1)==n.$from.pos?i=o.before(n.$from.depth):i=o.before(a);break}}return i!=null?(av(e,Jt.create(e.state.doc,i)),!0):!1}function X4e(e,t,n,r,i){return Fk(e,"handleClickOn",t,n,r)||e.someProp("handleClick",o=>o(e,t,r))||(i?E4e(e,n):F4e(e,n))}function W4e(e,t,n,r){return Fk(e,"handleDoubleClickOn",t,n,r)||e.someProp("handleDoubleClick",i=>i(e,t,r))}function V4e(e,t,n,r){return Fk(e,"handleTripleClickOn",t,n,r)||e.someProp("handleTripleClick",i=>i(e,t,r))||D4e(e,n,r)}function D4e(e,t,n){if(n.button!=0)return!1;let r=e.state.doc;if(t==-1)return r.inlineContent?(av(e,nr.create(r,0,r.content.size)),!0):!1;let i=r.resolve(t);for(let o=i.depth+1;o>0;o--){let a=o>i.depth?i.nodeAfter:i.node(o),s=i.before(o);if(a.inlineContent)av(e,nr.create(r,s+1,s+1+a.content.size));else if(Jt.isSelectable(a))av(e,Jt.create(r,s));else continue;return!0}}function Ek(e){return Wx(e)}const qz=hs?"metaKey":"ctrlKey";Fo.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let r=Ek(e),i=Date.now(),o="singleClick";i-e.input.lastClick.time<500&&N4e(n,e.input.lastClick)&&!n[qz]&&(e.input.lastClick.type=="singleClick"?o="doubleClick":e.input.lastClick.type=="doubleClick"&&(o="tripleClick")),e.input.lastClick={time:i,x:n.clientX,y:n.clientY,type:o};let a=e.posAtCoords(b3(n));a&&(o=="singleClick"?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new U4e(e,a,n,!!r)):(o=="doubleClick"?W4e:V4e)(e,a.pos,a.inside,n)?n.preventDefault():Sf(e,"pointer"))};class U4e{constructor(t,n,r,i){this.view=t,this.pos=n,this.event=r,this.flushed=i,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=t.state.doc,this.selectNode=!!r[qz],this.allowDefault=r.shiftKey;let o,a;if(n.inside>-1)o=t.state.doc.nodeAt(n.inside),a=n.inside;else{let c=t.state.doc.resolve(n.pos);o=c.parent,a=c.depth?c.before():0}const s=i?null:r.target,l=s?t.docView.nearestDesc(s,!0):null;this.target=l&&l.dom.nodeType==1?l.dom:null;let{selection:u}=t.state;(r.button==0&&o.type.spec.draggable&&o.type.spec.selectable!==!1||u instanceof Jt&&u.from<=a&&u.to>a)&&(this.mightDrag={node:o,pos:a,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&pl&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),t.root.addEventListener("mouseup",this.up=this.up.bind(this)),t.root.addEventListener("mousemove",this.move=this.move.bind(this)),Sf(t,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>uc(this.view)),this.view.input.mouseDown=null}up(t){if(this.done(),!this.view.dom.contains(t.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(b3(t))),this.updateAllowDefault(t),this.allowDefault||!n?Sf(this.view,"pointer"):X4e(this.view,n.pos,n.inside,t,this.selectNode)?t.preventDefault():t.button==0&&(this.flushed||No&&this.mightDrag&&!this.mightDrag.node.isAtom||po&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(av(this.view,Fn.near(this.view.state.doc.resolve(n.pos))),t.preventDefault()):Sf(this.view,"pointer")}move(t){this.updateAllowDefault(t),Sf(this.view,"pointer"),t.buttons==0&&this.done()}updateAllowDefault(t){!this.allowDefault&&(Math.abs(this.event.x-t.clientX)>4||Math.abs(this.event.y-t.clientY)>4)&&(this.allowDefault=!0)}}Fo.touchstart=e=>{e.input.lastTouch=Date.now(),Ek(e),Sf(e,"pointer")};Fo.touchmove=e=>{e.input.lastTouch=Date.now(),Sf(e,"pointer")};Fo.contextmenu=e=>Ek(e);function eJ(e,t){return e.composing?!0:No&&Math.abs(t.timeStamp-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}const B4e=ol?5e3:-1;Eo.compositionstart=Eo.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$from;if(t.selection.empty&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)))e.markCursor=e.state.storedMarks||n.marks(),Wx(e,!0),e.markCursor=null;else if(Wx(e),pl&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let r=e.domSelectionRange();for(let i=r.focusNode,o=r.focusOffset;i&&i.nodeType==1&&o!=0;){let a=o<0?i.lastChild:i.childNodes[o-1];if(!a)break;if(a.nodeType==3){e.domSelection().collapse(a,a.nodeValue.length);break}else i=a,o=-1}}e.input.composing=!0}tJ(e,B4e)};Eo.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=t.timeStamp,e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionNode=null,e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,tJ(e,20))};function tJ(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>Wx(e),t))}function nJ(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=Z4e());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function Y4e(e){let t=e.domSelectionRange();if(!t.focusNode)return null;let n=E3e(t.focusNode,t.focusOffset),r=X3e(t.focusNode,t.focusOffset);if(n&&r&&n!=r){let i=r.pmViewDesc,o=e.domObserver.lastChangedTextNode;if(n==o||r==o)return o;if(!i||!i.isText(r.nodeValue))return r;if(e.input.compositionNode==r){let a=n.pmViewDesc;if(!(!a||!a.isText(n.nodeValue)))return r}}return n||r}function Z4e(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}function Wx(e,t=!1){if(!(ol&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),nJ(e),t||e.docView&&e.docView.dirty){let n=Ck(e);return n&&!n.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(n)):e.updateState(e.state),!0}return!1}}function Q4e(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),i=document.createRange();i.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(i),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}const o2=la&&Nf<15||kv&&B3e<604;Fo.copy=Eo.cut=(e,t)=>{let n=t,r=e.state.selection,i=n.type=="cut";if(r.empty)return;let o=o2?null:n.clipboardData,a=r.content(),{dom:s,text:l}=Hz(e,a);o?(n.preventDefault(),o.clearData(),o.setData("text/html",s.innerHTML),o.setData("text/plain",l)):Q4e(e,s),i&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function H4e(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function K4e(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let i=e.input.shiftKey&&e.input.lastKeyCode!=45;setTimeout(()=>{e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?a2(e,r.value,null,i,t):a2(e,r.textContent,r.innerHTML,i,t)},50)}function a2(e,t,n,r,i){let o=Kz(e,t,n,r,e.state.selection.$from);if(e.someProp("handlePaste",l=>l(e,i,o||Mt.empty)))return!0;if(!o)return!1;let a=H4e(o),s=a?e.state.tr.replaceSelectionWith(a,r):e.state.tr.replaceSelection(o);return e.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function rJ(e){let t=e.getData("text/plain")||e.getData("Text");if(t)return t;let n=e.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}Eo.paste=(e,t)=>{let n=t;if(e.composing&&!ol)return;let r=o2?null:n.clipboardData,i=e.input.shiftKey&&e.input.lastKeyCode!=45;r&&a2(e,rJ(r),r.getData("text/html"),i,n)?n.preventDefault():K4e(e,n)};class iJ{constructor(t,n,r){this.slice=t,this.move=n,this.node=r}}const oJ=hs?"altKey":"ctrlKey";Fo.dragstart=(e,t)=>{let n=t,r=e.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let i=e.state.selection,o=i.empty?null:e.posAtCoords(b3(n)),a;if(!(o&&o.pos>=i.from&&o.pos<=(i instanceof Jt?i.to-1:i.to))){if(r&&r.mightDrag)a=Jt.create(e.state.doc,r.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let f=e.docView.nearestDesc(n.target,!0);f&&f.node.type.spec.draggable&&f!=e.docView&&(a=Jt.create(e.state.doc,f.posBefore))}}let s=(a||e.state.selection).content(),{dom:l,text:u,slice:c}=Hz(e,s);(!n.dataTransfer.files.length||!po||kz>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(o2?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",o2||n.dataTransfer.setData("text/plain",u),e.dragging=new iJ(c,!n[oJ],a)};Fo.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)};Eo.dragover=Eo.dragenter=(e,t)=>t.preventDefault();Eo.drop=(e,t)=>{let n=t,r=e.dragging;if(e.dragging=null,!n.dataTransfer)return;let i=e.posAtCoords(b3(n));if(!i)return;let o=e.state.doc.resolve(i.pos),a=r&&r.slice;a?e.someProp("transformPasted",p=>{a=p(a,e)}):a=Kz(e,rJ(n.dataTransfer),o2?null:n.dataTransfer.getData("text/html"),!1,o);let s=!!(r&&!n[oJ]);if(e.someProp("handleDrop",p=>p(e,n,a||Mt.empty,s))){n.preventDefault();return}if(!a)return;n.preventDefault();let l=a?sQ(e.state.doc,o.pos,a):o.pos;l==null&&(l=o.pos);let u=e.state.tr;if(s){let{node:p}=r;p?p.replace(u):u.deleteSelection()}let c=u.mapping.map(l),f=a.openStart==0&&a.openEnd==0&&a.content.childCount==1,d=u.doc;if(f?u.replaceRangeWith(c,c,a.content.firstChild):u.replaceRange(c,c,a),u.doc.eq(d))return;let h=u.doc.resolve(c);if(f&&Jt.isSelectable(a.content.firstChild)&&h.nodeAfter&&h.nodeAfter.sameMarkup(a.content.firstChild))u.setSelection(new Jt(h));else{let p=u.mapping.map(l);u.mapping.maps[u.mapping.maps.length-1].forEach((v,g,m,y)=>p=y),u.setSelection(Ik(e,h,u.doc.resolve(p)))}e.focus(),e.dispatch(u.setMeta("uiEvent","drop"))};Fo.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&uc(e)},20))};Fo.blur=(e,t)=>{let n=t;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)};Fo.beforeinput=(e,t)=>{if(po&&ol&&t.inputType=="deleteContentBackward"){e.domObserver.flushSoon();let{domChangeCount:r}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=r||(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",o=>o(e,fh(8,"Backspace")))))return;let{$cursor:i}=e.state.selection;i&&i.pos>0&&e.dispatch(e.state.tr.delete(i.pos-1,i.pos).scrollIntoView())},50)}};for(let e in Eo)Fo[e]=Eo[e];function s2(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}class Vx{constructor(t,n){this.toDOM=t,this.spec=n||Fh,this.side=this.spec.side||0}map(t,n,r,i){let{pos:o,deleted:a}=t.mapResult(n.from+i,this.side<0?-1:1);return a?null:new Va(o-r,o-r,this)}valid(){return!0}eq(t){return this==t||t instanceof Vx&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&s2(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}}class Ef{constructor(t,n){this.attrs=t,this.spec=n||Fh}map(t,n,r,i){let o=t.map(n.from+i,this.spec.inclusiveStart?-1:1)-r,a=t.map(n.to+i,this.spec.inclusiveEnd?1:-1)-r;return o>=a?null:new Va(o,a,this)}valid(t,n){return n.from=t&&(!o||o(s.spec))&&r.push(s.copy(s.from+i,s.to+i))}for(let a=0;at){let s=this.children[a]+1;this.children[a+2].findInner(t-s,n-s,r,i+s,o)}}map(t,n,r){return this==io||t.maps.length==0?this:this.mapInner(t,n,0,0,r||Fh)}mapInner(t,n,r,i,o){let a;for(let s=0;s{let u=l+r,c;if(c=sJ(n,s,u)){for(i||(i=this.children.slice());os&&f.to=t){this.children[s]==t&&(r=this.children[s+2]);break}let o=t+1,a=o+n.content.size;for(let s=0;so&&l.type instanceof Ef){let u=Math.max(o,l.from)-o,c=Math.min(a,l.to)-o;ui.map(t,n,Fh));return Af.from(r)}forChild(t,n){if(n.isLeaf)return li.empty;let r=[];for(let i=0;in instanceof li)?t:t.reduce((n,r)=>n.concat(r instanceof li?r:r.members),[]))}}}function G4e(e,t,n,r,i,o,a){let s=e.slice();for(let u=0,c=o;u{let g=v-p-(h-d);for(let m=0;my+c-f)continue;let R=s[m]+c-f;h>=R?s[m+1]=d<=R?-2:-1:d>=c&&g&&(s[m]+=g,s[m+1]+=g)}f+=g}),c=n.maps[u].map(c,-1)}let l=!1;for(let u=0;u=r.content.size){l=!0;continue}let d=n.map(e[u+1]+o,-1),h=d-i,{index:p,offset:v}=r.content.findIndex(f),g=r.maybeChild(p);if(g&&v==f&&v+g.nodeSize==h){let m=s[u+2].mapInner(n,g,c+1,e[u]+o+1,a);m!=io?(s[u]=f,s[u+1]=h,s[u+2]=m):(s[u+1]=-2,l=!0)}else l=!0}if(l){let u=z4e(s,e,t,n,i,o,a),c=Dx(u,r,0,a);t=c.local;for(let f=0;fn&&a.to{let u=sJ(e,s,l+n);if(u){o=!0;let c=Dx(u,s,n+l+1,r);c!=io&&i.push(l,l+s.nodeSize,c)}});let a=aJ(o?lJ(e):e,-n).sort(Eh);for(let s=0;s0;)t++;e.splice(t,0,n)}function C5(e){let t=[];return e.someProp("decorations",n=>{let r=n(e.state);r&&r!=io&&t.push(r)}),e.cursorWrapper&&t.push(li.create(e.state.doc,[e.cursorWrapper.deco])),Af.from(t)}const J4e={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},$4e=la&&Nf<=11;class j4e{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(t){this.anchorNode=t.anchorNode,this.anchorOffset=t.anchorOffset,this.focusNode=t.focusNode,this.focusOffset=t.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(t){return t.anchorNode==this.anchorNode&&t.anchorOffset==this.anchorOffset&&t.focusNode==this.focusNode&&t.focusOffset==this.focusOffset}}class q4e{constructor(t,n){this.view=t,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new j4e,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let i=0;ii.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():this.flush()}),$4e&&(this.onCharData=r=>{this.queue.push({target:r.target,type:"characterData",oldValue:r.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,J4e)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let t=this.observer.takeRecords();if(t.length){for(let n=0;nthis.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(jX(this.view)){if(this.suppressingSelectionUpdates)return uc(this.view);if(la&&Nf<=11&&!this.view.state.selection.empty){let t=this.view.domSelectionRange();if(t.focusNode&&t0(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(t){if(!t.focusNode)return!0;let n=new Set,r;for(let o=t.focusNode;o;o=i2(o))n.add(o);for(let o=t.anchorNode;o;o=i2(o))if(n.has(o)){r=o;break}let i=r&&this.view.docView.nearestDesc(r);if(i&&i.ignoreMutation({type:"selection",target:r.nodeType==3?r.parentNode:r}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}flush(){let{view:t}=this;if(!t.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let r=t.domSelectionRange(),i=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&jX(t)&&!this.ignoreSelectionChange(r),o=-1,a=-1,s=!1,l=[];if(t.editable)for(let c=0;cf.nodeName=="BR");if(c.length==2){let[f,d]=c;f.parentNode&&f.parentNode.parentNode==d.parentNode?d.remove():f.remove()}else{let{focusNode:f}=this.currentSelection;for(let d of c){let h=d.parentNode;h&&h.nodeName=="LI"&&(!f||nwe(t,f)!=h)&&d.remove()}}}let u=null;o<0&&i&&t.input.lastFocus>Date.now()-200&&Math.max(t.input.lastTouch,t.input.lastClick.time)-1||i)&&(o>-1&&(t.docView.markDirty(o,a),ewe(t)),this.handleDOMChange(o,a,s,l),t.docView&&t.docView.dirty?t.updateState(t.state):this.currentSelection.eq(r)||uc(t),this.currentSelection.set(r))}registerMutation(t,n){if(n.indexOf(t.target)>-1)return null;let r=this.view.docView.nearestDesc(t.target);if(t.type=="attributes"&&(r==this.view.docView||t.attributeName=="contenteditable"||t.attributeName=="style"&&!t.oldValue&&!t.target.getAttribute("style"))||!r||r.ignoreMutation(t))return null;if(t.type=="childList"){for(let c=0;ci;g--){let m=r.childNodes[g-1],y=m.pmViewDesc;if(m.nodeName=="BR"&&!y){o=g;break}if(!y||y.size)break}let f=e.state.doc,d=e.someProp("domParser")||TO.fromSchema(e.state.schema),h=f.resolve(a),p=null,v=d.parse(r,{topNode:h.parent,topMatch:h.parent.contentMatchAt(h.index()),topOpen:!0,from:i,to:o,preserveWhitespace:h.parent.type.whitespace=="pre"?"full":!0,findPositions:u,ruleFromNode:iwe,context:h});if(u&&u[0].pos!=null){let g=u[0].pos,m=u[1]&&u[1].pos;m==null&&(m=g),p={anchor:g+a,head:m+a}}return{doc:v,sel:p,from:a,to:s}}function iwe(e){let t=e.pmViewDesc;if(t)return t.parseRule();if(e.nodeName=="BR"&&e.parentNode){if(No&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(e.parentNode.lastChild==e||No&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if(e.nodeName=="IMG"&&e.getAttribute("mark-placeholder"))return{ignore:!0};return null}const owe=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function awe(e,t,n,r,i){let o=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let w=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,_=Ck(e,w);if(_&&!e.state.selection.eq(_)){if(po&&ol&&e.input.lastKeyCode===13&&Date.now()-100O(e,fh(13,"Enter"))))return;let C=e.state.tr.setSelection(_);w=="pointer"?C.setMeta("pointer",!0):w=="key"&&C.scrollIntoView(),o&&C.setMeta("composition",o),e.dispatch(C)}return}let a=e.state.doc.resolve(t),s=a.sharedDepth(n);t=a.before(s+1),n=e.state.doc.resolve(n).after(s+1);let l=e.state.selection,u=rwe(e,t,n),c=e.state.doc,f=c.slice(u.from,u.to),d,h;e.input.lastKeyCode===8&&Date.now()-100Date.now()-225||ol)&&i.some(w=>w.nodeType==1&&!owe.test(w.nodeName))&&(!p||p.endA>=p.endB)&&e.someProp("handleKeyDown",w=>w(e,fh(13,"Enter")))){e.input.lastIOSEnter=0;return}if(!p)if(r&&l instanceof nr&&!l.empty&&l.$head.sameParent(l.$anchor)&&!e.composing&&!(u.sel&&u.sel.anchor!=u.sel.head))p={start:l.from,endA:l.to,endB:l.to};else{if(u.sel){let w=cW(e,e.state.doc,u.sel);if(w&&!w.eq(e.state.selection)){let _=e.state.tr.setSelection(w);o&&_.setMeta("composition",o),e.dispatch(_)}}return}e.input.domChangeCount++,e.state.selection.frome.state.selection.from&&p.start<=e.state.selection.from+2&&e.state.selection.from>=u.from?p.start=e.state.selection.from:p.endA=e.state.selection.to-2&&e.state.selection.to<=u.to&&(p.endB+=e.state.selection.to-p.endA,p.endA=e.state.selection.to)),la&&Nf<=11&&p.endB==p.start+1&&p.endA==p.start&&p.start>u.from&&u.doc.textBetween(p.start-u.from-1,p.start-u.from+1)=="  "&&(p.start--,p.endA--,p.endB--);let v=u.doc.resolveNoCache(p.start-u.from),g=u.doc.resolveNoCache(p.endB-u.from),m=c.resolve(p.start),y=v.sameParent(g)&&v.parent.inlineContent&&m.end()>=p.endA,R;if((kv&&e.input.lastIOSEnter>Date.now()-225&&(!y||i.some(w=>w.nodeName=="DIV"||w.nodeName=="P"))||!y&&v.posw(e,fh(13,"Enter")))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>p.start&&lwe(c,p.start,p.endA,v,g)&&e.someProp("handleKeyDown",w=>w(e,fh(8,"Backspace")))){ol&&po&&e.domObserver.suppressSelectionUpdates();return}po&&ol&&p.endB==p.start&&(e.input.lastAndroidDelete=Date.now()),ol&&!y&&v.start()!=g.start()&&g.parentOffset==0&&v.depth==g.depth&&u.sel&&u.sel.anchor==u.sel.head&&u.sel.head==p.endA&&(p.endB-=2,g=u.doc.resolveNoCache(p.endB-u.from),setTimeout(()=>{e.someProp("handleKeyDown",function(w){return w(e,fh(13,"Enter"))})},20));let A=p.start,x=p.endA,S,L,M;if(y){if(v.pos==g.pos)la&&Nf<=11&&v.parentOffset==0&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>uc(e),20)),S=e.state.tr.delete(A,x),L=c.resolve(p.start).marksAcross(c.resolve(p.endA));else if(p.endA==p.endB&&(M=swe(v.parent.content.cut(v.parentOffset,g.parentOffset),m.parent.content.cut(m.parentOffset,p.endA-m.start()))))S=e.state.tr,M.type=="add"?S.addMark(A,x,M.mark):S.removeMark(A,x,M.mark);else if(v.parent.child(v.index()).isText&&v.index()==g.index()-(g.textOffset?0:1)){let w=v.parent.textBetween(v.parentOffset,g.parentOffset);if(e.someProp("handleTextInput",_=>_(e,A,x,w)))return;S=e.state.tr.insertText(w,A,x)}}if(S||(S=e.state.tr.replace(A,x,u.doc.slice(p.start-u.from,p.endB-u.from))),u.sel){let w=cW(e,S.doc,u.sel);w&&!(po&&ol&&e.composing&&w.empty&&(p.start!=p.endB||e.input.lastAndroidDeletet.content.size?null:Ik(e,t.resolve(n.anchor),t.resolve(n.head))}function swe(e,t){let n=e.firstChild.marks,r=t.firstChild.marks,i=n,o=r,a,s,l;for(let c=0;cc.mark(s.addToSet(c.marks));else if(i.length==0&&o.length==1)s=o[0],a="remove",l=c=>c.mark(s.removeFromSet(c.marks));else return null;let u=[];for(let c=0;cn||I5(a,!0,!1)0&&(t||e.indexAfter(r)==e.node(r).childCount);)r--,i++,t=!1;if(n){let o=e.node(r).maybeChild(e.indexAfter(r));for(;o&&!o.isLeaf;)o=o.firstChild,i++}return i}function uwe(e,t,n,r,i){let o=e.findDiffStart(t,n);if(o==null)return null;let{a,b:s}=e.findDiffEnd(t,n+e.size,n+t.size);if(i=="end"){let l=Math.max(0,o-Math.min(a,s));r-=a+l-o}if(a=a?o-r:0;o-=l,o&&o=s?o-r:0;o-=l,o&&o=56320&&t<=57343&&n>=55296&&n<=56319}class cwe{constructor(t,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new O4e,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(gW),this.dispatch=this.dispatch.bind(this),this.dom=t&&t.mount||document.createElement("div"),t&&(t.appendChild?t.appendChild(this.dom):typeof t=="function"?t(this.dom):t.mount&&(this.mounted=!0)),this.editable=pW(this),hW(this),this.nodeViews=vW(this),this.docView=HX(this.state.doc,dW(this),C5(this),this.dom,this),this.domObserver=new q4e(this,(r,i,o,a)=>awe(this,r,i,o,a)),this.domObserver.start(),k4e(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let t=this._props;this._props={};for(let n in t)this._props[n]=t[n];this._props.state=this.state}return this._props}update(t){t.handleDOMEvents!=this._props.handleDOMEvents&&L6(this);let n=this._props;this._props=t,t.plugins&&(t.plugins.forEach(gW),this.directPlugins=t.plugins),this.updateStateInner(t.state,n)}setProps(t){let n={};for(let r in this._props)n[r]=this._props[r];n.state=this.state;for(let r in t)n[r]=t[r];this.update(n)}updateState(t){this.updateStateInner(t,this._props)}updateStateInner(t,n){var r;let i=this.state,o=!1,a=!1;t.storedMarks&&this.composing&&(nJ(this),a=!0),this.state=t;let s=i.plugins!=t.plugins||this._props.plugins!=n.plugins;if(s||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let h=vW(this);dwe(h,this.nodeViews)&&(this.nodeViews=h,o=!0)}(s||n.handleDOMEvents!=this._props.handleDOMEvents)&&L6(this),this.editable=pW(this),hW(this);let l=C5(this),u=dW(this),c=i.plugins!=t.plugins&&!i.doc.eq(t.doc)?"reset":t.scrollToSelection>i.scrollToSelection?"to selection":"preserve",f=o||!this.docView.matchesNode(t.doc,u,l);(f||!t.selection.eq(i.selection))&&(a=!0);let d=c=="preserve"&&a&&this.dom.style.overflowAnchor==null&&Q3e(this);if(a){this.domObserver.stop();let h=f&&(la||po)&&!this.composing&&!i.selection.empty&&!t.selection.empty&&fwe(i.selection,t.selection);if(f){let p=po?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=Y4e(this)),(o||!this.docView.update(t.doc,u,l,this))&&(this.docView.updateOuterDeco(u),this.docView.destroy(),this.docView=HX(t.doc,u,l,this.dom,this)),p&&!this.trackWrites&&(h=!0)}h||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&v4e(this))?uc(this,h):(Yz(this,t.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(i),!((r=this.dragging)===null||r===void 0)&&r.node&&!i.doc.eq(t.doc)&&this.updateDraggedNode(this.dragging,i),c=="reset"?this.dom.scrollTop=0:c=="to selection"?this.scrollToSelection():d&&H3e(d)}scrollToSelection(){let t=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof Jt){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&DX(this,n.getBoundingClientRect(),t)}else DX(this,this.coordsAtPos(this.state.selection.head,1),t)}destroyPluginViews(){let t;for(;t=this.pluginViews.pop();)t.destroy&&t.destroy()}updatePluginViews(t){if(!t||t.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n0&&this.state.doc.nodeAt(o))==r.node&&(i=o)}this.dragging=new iJ(t.slice,t.move,i<0?void 0:Jt.create(this.state.doc,i))}someProp(t,n){let r=this._props&&this._props[t],i;if(r!=null&&(i=n?n(r):r))return i;for(let a=0;an.ownerDocument.getSelection()),this._root=n}return t||document}updateRoot(){this._root=null}posAtCoords(t){return j3e(this,t)}coordsAtPos(t,n=1){return Fz(this,t,n)}domAtPos(t,n=0){return this.docView.domFromPos(t,n)}nodeDOM(t){let n=this.docView.descAt(t);return n?n.nodeDOM:null}posAtDOM(t,n,r=-1){let i=this.docView.posFromDOM(t,n,r);if(i==null)throw new RangeError("DOM position not inside the editor");return i}endOfTextblock(t,n){return r4e(this,n||this.state,t)}pasteHTML(t,n){return a2(this,"",t,!1,n||new ClipboardEvent("paste"))}pasteText(t,n){return a2(this,t,null,!0,n||new ClipboardEvent("paste"))}destroy(){this.docView&&(P4e(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],C5(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,N3e())}get isDestroyed(){return this.docView==null}dispatchEvent(t){return I4e(this,t)}dispatch(t){let n=this._props.dispatchTransaction;n?n.call(this,t):this.updateState(this.state.apply(t))}domSelectionRange(){let t=this.domSelection();return No&&this.root.nodeType===11&&V3e(this.dom.ownerDocument)==this.dom&&twe(this,t)||t}domSelection(){return this.root.getSelection()}}function dW(e){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),e.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(e.state)),n)for(let r in n)r=="class"?t.class+=" "+n[r]:r=="style"?t.style=(t.style?t.style+";":"")+n[r]:!t[r]&&r!="contenteditable"&&r!="nodeName"&&(t[r]=String(n[r]))}),t.translate||(t.translate="no"),[Va.node(0,e.state.doc.content.size,t)]}function hW(e){if(e.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),e.cursorWrapper={dom:t,deco:Va.widget(e.state.selection.head,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function pW(e){return!e.someProp("editable",t=>t(e.state)===!1)}function fwe(e,t){let n=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(n)!=t.$anchor.start(n)}function vW(e){let t=Object.create(null);function n(r){for(let i in r)Object.prototype.hasOwnProperty.call(t,i)||(t[i]=r[i])}return e.someProp("nodeViews",n),e.someProp("markViews",n),t}function dwe(e,t){let n=0,r=0;for(let i in e){if(e[i]!=t[i])return!0;n++}for(let i in t)r++;return n!=r}function gW(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}var Gf={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Ux={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},hwe=typeof navigator<"u"&&/Mac/.test(navigator.platform),pwe=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var Qi=0;Qi<10;Qi++)Gf[48+Qi]=Gf[96+Qi]=String(Qi);for(var Qi=1;Qi<=24;Qi++)Gf[Qi+111]="F"+Qi;for(var Qi=65;Qi<=90;Qi++)Gf[Qi]=String.fromCharCode(Qi+32),Ux[Qi]=String.fromCharCode(Qi);for(var N5 in Gf)Ux.hasOwnProperty(N5)||(Ux[N5]=Gf[N5]);function vwe(e){var t=hwe&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||pwe&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!t&&e.key||(e.shiftKey?Ux:Gf)[e.keyCode]||e.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const gwe=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function mwe(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n=="Space"&&(n=" ");let r,i,o,a;for(let s=0;s127)&&(o=Gf[r.keyCode])&&o!=i){let s=t[F5(o,r)];if(s&&s(n.state,n.dispatch,n))return!0}}return!1}}var Bx=200,_i=function(){};_i.prototype.append=function(t){return t.length?(t=_i.from(t),!this.length&&t||t.length=n?_i.empty:this.sliceInner(Math.max(0,t),Math.min(this.length,n))};_i.prototype.get=function(t){if(!(t<0||t>=this.length))return this.getInner(t)};_i.prototype.forEach=function(t,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length),n<=r?this.forEachInner(t,n,r,0):this.forEachInvertedInner(t,n,r,0)};_i.prototype.map=function(t,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length);var i=[];return this.forEach(function(o,a){return i.push(t(o,a))},n,r),i};_i.from=function(t){return t instanceof _i?t:t&&t.length?new cJ(t):_i.empty};var cJ=function(e){function t(r){e.call(this),this.values=r}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(i,o){return i==0&&o==this.length?this:new t(this.values.slice(i,o))},t.prototype.getInner=function(i){return this.values[i]},t.prototype.forEachInner=function(i,o,a,s){for(var l=o;l=a;l--)if(i(this.values[l],s+l)===!1)return!1},t.prototype.leafAppend=function(i){if(this.length+i.length<=Bx)return new t(this.values.concat(i.flatten()))},t.prototype.leafPrepend=function(i){if(this.length+i.length<=Bx)return new t(i.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(_i);_i.empty=new cJ([]);var Awe=function(e){function t(n,r){e.call(this),this.left=n,this.right=r,this.length=n.length+r.length,this.depth=Math.max(n.depth,r.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(r){return rs&&this.right.forEachInner(r,Math.max(i-s,0),Math.min(this.length,o)-s,a+s)===!1)return!1},t.prototype.forEachInvertedInner=function(r,i,o,a){var s=this.left.length;if(i>s&&this.right.forEachInvertedInner(r,i-s,Math.max(o,s)-s,a+s)===!1||o=o?this.right.slice(r-o,i-o):this.left.slice(r,o).append(this.right.slice(0,i-o))},t.prototype.leafAppend=function(r){var i=this.right.leafAppend(r);if(i)return new t(this.left,i)},t.prototype.leafPrepend=function(r){var i=this.left.leafPrepend(r);if(i)return new t(i,this.right)},t.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new t(this.left,new t(this.right,r)):new t(this,r)},t}(_i);const Rwe=500;class sl{constructor(t,n){this.items=t,this.eventCount=n}popEvent(t,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let i,o;n&&(i=this.remapping(r,this.items.length),o=i.maps.length);let a=t.tr,s,l,u=[],c=[];return this.items.forEach((f,d)=>{if(!f.step){i||(i=this.remapping(r,d+1),o=i.maps.length),o--,c.push(f);return}if(i){c.push(new Dl(f.map));let h=f.step.map(i.slice(o)),p;h&&a.maybeStep(h).doc&&(p=a.mapping.maps[a.mapping.maps.length-1],u.push(new Dl(p,void 0,void 0,u.length+c.length))),o--,p&&i.appendMap(p,o)}else a.maybeStep(f.step);if(f.selection)return s=i?f.selection.map(i.slice(o)):f.selection,l=new sl(this.items.slice(0,r).append(c.reverse().concat(u)),this.eventCount-1),!1},this.items.length,0),{remaining:l,transform:a,selection:s}}addTransform(t,n,r,i){let o=[],a=this.eventCount,s=this.items,l=!i&&s.length?s.get(s.length-1):null;for(let c=0;cxwe&&(s=bwe(s,u),a-=u),new sl(s.append(o),a)}remapping(t,n){let r=new $p;return this.items.forEach((i,o)=>{let a=i.mirrorOffset!=null&&o-i.mirrorOffset>=t?r.maps.length-i.mirrorOffset:void 0;r.appendMap(i.map,a)},t,n),r}addMaps(t){return this.eventCount==0?this:new sl(this.items.append(t.map(n=>new Dl(n))),this.eventCount)}rebased(t,n){if(!this.eventCount)return this;let r=[],i=Math.max(0,this.items.length-n),o=t.mapping,a=t.steps.length,s=this.eventCount;this.items.forEach(d=>{d.selection&&s--},i);let l=n;this.items.forEach(d=>{let h=o.getMirror(--l);if(h==null)return;a=Math.min(a,h);let p=o.maps[h];if(d.step){let v=t.steps[h].invert(t.docs[h]),g=d.selection&&d.selection.map(o.slice(l+1,h));g&&s++,r.push(new Dl(p,v,g))}else r.push(new Dl(p))},i);let u=[];for(let d=n;dRwe&&(f=f.compress(this.items.length-r.length)),f}emptyItemCount(){let t=0;return this.items.forEach(n=>{n.step||t++}),t}compress(t=this.items.length){let n=this.remapping(0,t),r=n.maps.length,i=[],o=0;return this.items.forEach((a,s)=>{if(s>=t)i.push(a),a.selection&&o++;else if(a.step){let l=a.step.map(n.slice(r)),u=l&&l.getMap();if(r--,u&&n.appendMap(u,r),l){let c=a.selection&&a.selection.map(n.slice(r));c&&o++;let f=new Dl(u.invert(),l,c),d,h=i.length-1;(d=i.length&&i[h].merge(f))?i[h]=d:i.push(f)}}else a.map&&r--},this.items.length,0),new sl(_i.from(i.reverse()),o)}}sl.empty=new sl(_i.empty,0);function bwe(e,t){let n;return e.forEach((r,i)=>{if(r.selection&&t--==0)return n=i,!1}),e.slice(n)}class Dl{constructor(t,n,r,i){this.map=t,this.step=n,this.selection=r,this.mirrorOffset=i}merge(t){if(this.step&&t.step&&!t.selection){let n=t.step.merge(this.step);if(n)return new Dl(n.getMap().invert(),n,this.selection)}}}class pf{constructor(t,n,r,i,o){this.done=t,this.undone=n,this.prevRanges=r,this.prevTime=i,this.prevComposition=o}}const xwe=20;function Swe(e,t,n,r){let i=n.getMeta(Xf),o;if(i)return i.historyState;n.getMeta(Mwe)&&(e=new pf(e.done,e.undone,null,0,-1));let a=n.getMeta("appendedTransaction");if(n.steps.length==0)return e;if(a&&a.getMeta(Xf))return a.getMeta(Xf).redo?new pf(e.done.addTransform(n,void 0,r,Ab(t)),e.undone,yW(n.mapping.maps[n.steps.length-1]),e.prevTime,e.prevComposition):new pf(e.done,e.undone.addTransform(n,void 0,r,Ab(t)),null,e.prevTime,e.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(a&&a.getMeta("addToHistory")===!1)){let s=n.getMeta("composition"),l=e.prevTime==0||!a&&e.prevComposition!=s&&(e.prevTime<(n.time||0)-r.newGroupDelay||!wwe(n,e.prevRanges)),u=a?E5(e.prevRanges,n.mapping):yW(n.mapping.maps[n.steps.length-1]);return new pf(e.done.addTransform(n,l?t.selection.getBookmark():void 0,r,Ab(t)),sl.empty,u,n.time,s??e.prevComposition)}else return(o=n.getMeta("rebased"))?new pf(e.done.rebased(n,o),e.undone.rebased(n,o),E5(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new pf(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),E5(e.prevRanges,n.mapping),e.prevTime,e.prevComposition)}function wwe(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach((r,i)=>{for(let o=0;o=t[o]&&(n=!0)}),n}function yW(e){let t=[];return e.forEach((n,r,i,o)=>t.push(i,o)),t}function E5(e,t){if(!e)return null;let n=[];for(let r=0;r{let n=Xf.getState(e);return!n||n.done.eventCount==0?!1:(t&&fJ(n,e,t,!1),!0)},hJ=(e,t)=>{let n=Xf.getState(e);return!n||n.undone.eventCount==0?!1:(t&&fJ(n,e,t,!0),!0)};function Twe(e={}){return new Qv({view(t){return new _we(t,e)}})}class _we{constructor(t,n){var r;this.editorView=t,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(r=n.width)!==null&&r!==void 0?r:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(i=>{let o=a=>{this[i](a)};return t.dom.addEventListener(i,o),{name:i,handler:o}})}destroy(){this.handlers.forEach(({name:t,handler:n})=>this.editorView.dom.removeEventListener(t,n))}update(t,n){this.cursorPos!=null&&n.doc!=t.state.doc&&(this.cursorPos>t.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(t){t!=this.cursorPos&&(this.cursorPos=t,t==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let t=this.editorView.state.doc.resolve(this.cursorPos),n=!t.parent.inlineContent,r;if(n){let s=t.nodeBefore,l=t.nodeAfter;if(s||l){let u=this.editorView.nodeDOM(this.cursorPos-(s?s.nodeSize:0));if(u){let c=u.getBoundingClientRect(),f=s?c.bottom:c.top;s&&l&&(f=(f+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),r={left:c.left,right:c.right,top:f-this.width/2,bottom:f+this.width/2}}}}if(!r){let s=this.editorView.coordsAtPos(this.cursorPos);r={left:s.left-this.width/2,right:s.left+this.width/2,top:s.top,bottom:s.bottom}}let i=this.editorView.dom.offsetParent;this.element||(this.element=i.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let o,a;if(!i||i==document.body&&getComputedStyle(i).position=="static")o=-pageXOffset,a=-pageYOffset;else{let s=i.getBoundingClientRect();o=s.left-i.scrollLeft,a=s.top-i.scrollTop}this.element.style.left=r.left-o+"px",this.element.style.top=r.top-a+"px",this.element.style.width=r.right-r.left+"px",this.element.style.height=r.bottom-r.top+"px"}scheduleRemoval(t){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),t)}dragover(t){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:t.clientX,top:t.clientY}),r=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),i=r&&r.type.spec.disableDropCursor,o=typeof i=="function"?i(this.editorView,n,t):i;if(n&&!o){let a=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let s=sQ(this.editorView.state.doc,a,this.editorView.dragging.slice);s!=null&&(a=s)}this.setCursor(a),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(t){(t.target==this.editorView.dom||!this.editorView.dom.contains(t.relatedTarget))&&this.setCursor(null)}}class zr extends Fn{constructor(t){super(t,t)}map(t,n){let r=t.resolve(n.map(this.head));return zr.valid(r)?new zr(r):Fn.near(r)}content(){return Mt.empty}eq(t){return t instanceof zr&&t.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(t,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new zr(t.resolve(n.pos))}getBookmark(){return new Vk(this.anchor)}static valid(t){let n=t.parent;if(n.isTextblock||!Owe(t)||!kwe(t))return!1;let r=n.type.spec.allowGapCursor;if(r!=null)return r;let i=n.contentMatchAt(t.index()).defaultType;return i&&i.isTextblock}static findGapCursorFrom(t,n,r=!1){e:for(;;){if(!r&&zr.valid(t))return t;let i=t.pos,o=null;for(let a=t.depth;;a--){let s=t.node(a);if(n>0?t.indexAfter(a)0){o=s.child(n>0?t.indexAfter(a):t.index(a)-1);break}else if(a==0)return null;i+=n;let l=t.doc.resolve(i);if(zr.valid(l))return l}for(;;){let a=n>0?o.firstChild:o.lastChild;if(!a){if(o.isAtom&&!o.isText&&!Jt.isSelectable(o)){t=t.doc.resolve(i+o.nodeSize*n),r=!1;continue e}break}o=a,i+=n;let s=t.doc.resolve(i);if(zr.valid(s))return s}return null}}}zr.prototype.visible=!1;zr.findFrom=zr.findGapCursorFrom;Fn.jsonID("gapcursor",zr);class Vk{constructor(t){this.pos=t}map(t){return new Vk(t.map(this.pos))}resolve(t){let n=t.resolve(this.pos);return zr.valid(n)?new zr(n):Fn.near(n)}}function Owe(e){for(let t=e.depth;t>=0;t--){let n=e.index(t),r=e.node(t);if(n==0){if(r.type.spec.isolating)return!0;continue}for(let i=r.child(n-1);;i=i.lastChild){if(i.childCount==0&&!i.inlineContent||i.isAtom||i.type.spec.isolating)return!0;if(i.inlineContent)return!1}}return!0}function kwe(e){for(let t=e.depth;t>=0;t--){let n=e.indexAfter(t),r=e.node(t);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let i=r.child(n);;i=i.firstChild){if(i.childCount==0&&!i.inlineContent||i.isAtom||i.type.spec.isolating)return!0;if(i.inlineContent)return!1}}return!0}function Pwe(){return new Qv({props:{decorations:Fwe,createSelectionBetween(e,t,n){return t.pos==n.pos&&zr.valid(n)?new zr(n):null},handleClick:Iwe,handleKeyDown:Cwe,handleDOMEvents:{beforeinput:Nwe}}})}const Cwe=uJ({ArrowLeft:HA("horiz",-1),ArrowRight:HA("horiz",1),ArrowUp:HA("vert",-1),ArrowDown:HA("vert",1)});function HA(e,t){const n=e=="vert"?t>0?"down":"up":t>0?"right":"left";return function(r,i,o){let a=r.selection,s=t>0?a.$to:a.$from,l=a.empty;if(a instanceof nr){if(!o.endOfTextblock(n)||s.depth==0)return!1;l=!1,s=r.doc.resolve(t>0?s.after():s.before())}let u=zr.findGapCursorFrom(s,t,l);return u?(i&&i(r.tr.setSelection(new zr(u))),!0):!1}}function Iwe(e,t,n){if(!e||!e.editable)return!1;let r=e.state.doc.resolve(t);if(!zr.valid(r))return!1;let i=e.posAtCoords({left:n.clientX,top:n.clientY});return i&&i.inside>-1&&Jt.isSelectable(e.state.doc.nodeAt(i.inside))?!1:(e.dispatch(e.state.tr.setSelection(new zr(r))),!0)}function Nwe(e,t){if(t.inputType!="insertCompositionText"||!(e.state.selection instanceof zr))return!1;let{$from:n}=e.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!r)return!1;let i=ft.empty;for(let a=r.length-1;a>=0;a--)i=ft.from(r[a].createAndFill(null,i));let o=e.state.tr.replace(n.pos,n.pos,new Mt(i,0,0));return o.setSelection(nr.near(o.doc.resolve(n.pos+1))),e.dispatch(o),!1}function Fwe(e){if(!(e.selection instanceof zr))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",li.create(e.doc,[Va.widget(e.selection.head,t,{key:"gapcursor"})])}const Ewe=["li",0],Xwe={parseDOM:[{tag:"li"}],toDOM(){return Ewe},defining:!0};function Wwe(e,t=null){return function(n,r){let{$from:i,$to:o}=n.selection,a=i.blockRange(o),s=!1,l=a;if(!a)return!1;if(a.depth>=2&&i.node(a.depth-1).type.compatibleContent(e)&&a.startIndex==0){if(i.index(a.depth-1)==0)return!1;let c=n.doc.resolve(a.start-2);l=new ix(c,c,a.depth),a.endIndex=0;c--)o=ft.from(n[c].type.create(n[c].attrs,o));e.step(new zi(t.start-(r?2:0),t.end,t.start,t.end,new Mt(o,0,0),n.length,!0));let a=0;for(let c=0;c=i.depth-3;m--)f=ft.from(i.node(m).copy(f));let h=i.indexAfter(-1){if(g>-1)return!1;m.isTextblock&&m.content.size==0&&(g=y+1)}),g>-1&&v.setSelection(Fn.near(v.doc.resolve(g))),r(v.scrollIntoView())}return!0}let l=o.pos==i.end()?s.contentMatchAt(0).defaultType:null,u=n.tr.delete(i.pos,o.pos),c=l?[null,{type:l}]:void 0;return jp(u.doc,i.pos,2,c)?(r&&r(u.split(i.pos,2,c).scrollIntoView()),!0):!1}}function pJ(e){return function(t,n){let{$from:r,$to:i}=t.selection,o=r.blockRange(i,a=>a.childCount>0&&a.firstChild.type==e);return o?n?r.node(o.depth-1).type==e?Uwe(t,n,e,o):Bwe(t,n,o):!0:!1}}function Uwe(e,t,n,r){let i=e.tr,o=r.end,a=r.$to.end(r.depth);ov;p--)h-=i.child(p).nodeSize,r.delete(h-1,h+1);let o=r.doc.resolve(n.start),a=o.nodeAfter;if(r.mapping.map(n.end)!=n.start+o.nodeAfter.nodeSize)return!1;let s=n.startIndex==0,l=n.endIndex==i.childCount,u=o.node(-1),c=o.index(-1);if(!u.canReplace(c+(s?0:1),c+1,a.content.append(l?ft.empty:ft.from(i))))return!1;let f=o.pos,d=f+a.nodeSize;return r.step(new zi(f-(s?1:0),d+(l?1:0),f+1,d-1,new Mt((s?ft.empty:ft.from(i.copy(ft.empty))).append(l?ft.empty:ft.from(i.copy(ft.empty))),s?0:1,l?0:1),s?0:1)),t(r.scrollIntoView()),!0}function RW(e){return function(t,n){let{$from:r,$to:i}=t.selection,o=r.blockRange(i,u=>u.childCount>0&&u.firstChild.type==e);if(!o)return!1;let a=o.startIndex;if(a==0)return!1;let s=o.parent,l=s.child(a-1);if(l.type!=e)return!1;if(n){let u=l.lastChild&&l.lastChild.type==s.type,c=ft.from(u?e.create():null),f=new Mt(ft.from(e.create(null,ft.from(s.type.create(null,c)))),u?3:1,0),d=o.start,h=o.end;n(t.tr.step(new zi(d-(u?3:1),h,d,h,f,1,!0)).scrollIntoView())}return!0}}class bc{constructor(t,n,r={}){this.match=t,this.match=t,this.handler=typeof n=="string"?Ywe(n):n,this.undoable=r.undoable!==!1,this.inCode=r.inCode||!1}}function Ywe(e){return function(t,n,r,i){let o=e;if(n[1]){let a=n[0].lastIndexOf(n[1]);o+=n[0].slice(a+n[1].length),r+=a;let s=r-i;s>0&&(o=n[0].slice(a-s,a)+o,r=i)}return t.tr.insertText(o,r,i)}}const Zwe=500;function Qwe({rules:e}){let t=new Qv({state:{init(){return null},apply(n,r){let i=n.getMeta(this);return i||(n.selectionSet||n.docChanged?null:r)}},props:{handleTextInput(n,r,i,o){return bW(n,r,i,o,e,t)},handleDOMEvents:{compositionend:n=>{setTimeout(()=>{let{$cursor:r}=n.state.selection;r&&bW(n,r.pos,r.pos,"",e,t)})}}},isInputRules:!0});return t}function bW(e,t,n,r,i,o){if(e.composing)return!1;let a=e.state,s=a.doc.resolve(t),l=s.parent.textBetween(Math.max(0,s.parentOffset-Zwe),s.parentOffset,null,"")+r;for(let u=0;u{let n=e.plugins;for(let r=0;r=0;l--)a.step(s.steps[l].invert(s.docs[l]));if(o.text){let l=a.doc.resolve(o.from).marks();a.replaceWith(o.from,o.to,e.schema.text(o.text,l))}else a.delete(o.from,o.to);t(a)}return!0}}return!1},Kwe=new bc(/--$/,"—"),Gwe=new bc(/\.\.\.$/,"…"),zwe=new bc(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/,"“"),Jwe=new bc(/"$/,"”"),$we=new bc(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/,"‘"),jwe=new bc(/'$/,"’"),qwe=[zwe,Jwe,$we,jwe];function Dk(e,t,n=null,r){return new bc(e,(i,o,a,s)=>{let l=n instanceof Function?n(o):n,u=i.tr.delete(a,s),c=u.doc.resolve(a),f=c.blockRange(),d=f&&OO(f,t,l);if(!d)return null;u.wrap(f,d);let h=u.doc.resolve(a-1).nodeBefore;return h&&h.type==t&&Zv(u.doc,a-1)&&(!r||r(o,h))&&u.join(a-1),u})}const eMe=e=>{const t={},n=(r,i)=>t[r]=i;return n("Alt-ArrowUp",t0e),n("Alt-ArrowDown",n0e),n("Mod-z",dJ),n("Mod-y",hJ),n("Backspace",Hwe),n("Escape",s0e),n("Mod-b",si(e.marks.strong)),n("Mod-i",si(e.marks.em)),n("Mod-u",si(e.marks.underline)),n("Mod-d",si(e.marks.strikethrough)),n("Mod-e",si(e.marks.code)),n("Mod-;",si(e.marks.superscript)),n("Mod-'",si(e.marks.subscript)),n("Enter",YS(Dwe(e.nodes.list_item),yQ,AQ,RQ,a0e)),n("Mod-[",pJ(e.nodes.list_item)),n("Mod-]",RW(e.nodes.list_item)),n("Tab",RW(e.nodes.list_item)),t},tMe=e=>Dk(/^\s*>\s$/,e),nMe=e=>Dk(/^(\d+)\.\s$/,e,t=>({order:+t[1]}),(t,n)=>n.childCount+n.attrs.order===+t[1]),rMe=e=>Dk(/^\s*([-+*])\s$/,e),iMe=()=>{const e=/(?:^|\s)((?:`)((?:[^`]+))(?:`))$/;return new bc(e,(t,n,r,i)=>{const{schema:o}=t,a=t.tr.insertText(`${n[2]} `,r,i),s=o.marks.code.create();return a.addMark(r,r+n[2].length,s)})},oMe=()=>{const e=/(?:https?:\/\/)?[\w-]+(?:\.[\w-]+)+\.?(?:\d+)?(?:\/\S*)?$/;return new bc(e,(t,n,r,i)=>{const{schema:o}=t,a=t.tr.insertText(n[0],r,i),s=o.marks.link.create({href:n[0],title:n[0]});return a.addMark(r,r+n[0].length,s)})},aMe=e=>{const t=[...qwe,Gwe,Kwe];return t.push(tMe(e.nodes.blockquote)),t.push(nMe(e.nodes.ordered_list)),t.push(rMe(e.nodes.bullet_list)),t.push(iMe()),t.push(oMe()),Qwe({rules:t})},sMe=e=>e.type.name==="paragraph"&&e.nodeSize===2,lMe=e=>new Qv({props:{decorations(t){const{$from:n}=t.selection;if(sMe(n.parent)){const r=Va.node(n.before(),n.after(),{"data-placeholder":e});return li.create(t.doc,[r])}}}}),uMe=(e,t)=>{const n=t==null?void 0:t.placeholder,r=[aMe(e),mW(eMe(e)),mW(p0e),Twe(),Pwe(),Lwe()];return n&&r.push(lMe(n)),r},cMe=["p",0],fMe=["blockquote",0],dMe=["hr"],hMe=["pre",["code",0]],pMe=["br"],vJ={doc:{content:"block+"},paragraph:{content:"inline*",group:"block",parseDOM:[{tag:"p"}],toDOM(){return cMe}},blockquote:{content:"block+",group:"block",defining:!0,parseDOM:[{tag:"blockquote"}],toDOM(){return fMe}},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM(){return dMe}},heading:{attrs:{level:{default:1,validate:"number"}},content:"inline*",group:"block",defining:!0,parseDOM:[{tag:"h1",attrs:{level:1}},{tag:"h2",attrs:{level:2}},{tag:"h3",attrs:{level:3}},{tag:"h4",attrs:{level:4}},{tag:"h5",attrs:{level:5}},{tag:"h6",attrs:{level:6}}],toDOM(e){return["h"+e.attrs.level,0]}},code_block:{content:"text*",marks:"",group:"block",code:!0,defining:!0,parseDOM:[{tag:"pre",preserveWhitespace:"full"}],toDOM(){return hMe}},text:{group:"inline"},image:{inline:!0,attrs:{src:{validate:"string"},alt:{default:null,validate:"string|null"},title:{default:null,validate:"string|null"}},group:"inline",draggable:!0,parseDOM:[{tag:"img[src]",getAttrs(e){return{src:e.getAttribute("src"),title:e.getAttribute("title"),alt:e.getAttribute("alt")}}}],toDOM(e){let{src:t,alt:n,title:r}=e.attrs;return["img",{src:t,alt:n,title:r}]}},hard_break:{inline:!0,group:"inline",selectable:!1,parseDOM:[{tag:"br"}],toDOM(){return pMe}}},vMe=["em",0],gMe=["strong",0],mMe=["code",0],gJ={link:{attrs:{href:{validate:"string"},title:{default:null,validate:"string|null"}},inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs(e){return{href:e.getAttribute("href"),title:e.getAttribute("title")}}}],toDOM(e){let{href:t,title:n}=e.attrs;return["a",{href:t,title:n},0]}},em:{parseDOM:[{tag:"i"},{tag:"em"},{style:"font-style=italic"},{style:"font-style=normal",clearMark:e=>e.type.name=="em"}],toDOM(){return vMe}},strong:{parseDOM:[{tag:"strong"},{tag:"b",getAttrs:e=>e.style.fontWeight!="normal"&&null},{style:"font-weight=400",clearMark:e=>e.type.name=="strong"},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}],toDOM(){return gMe}},code:{parseDOM:[{tag:"code"}],toDOM(){return mMe}}};new $Z({nodes:vJ,marks:gJ});const yMe={attrs:{order:{default:1},listStyleType:{default:""},fontsize:{default:""},color:{default:""}},content:"list_item+",group:"block",parseDOM:[{tag:"ol",getAttrs:e=>{const n={order:+((e.hasAttribute("start")?e.getAttribute("start"):1)||1)},{listStyleType:r,fontSize:i,color:o}=e.style;return r&&(n.listStyleType=r),i&&(n.fontsize=i),o&&(n.color=o),n}}],toDOM:e=>{const{order:t,listStyleType:n,fontsize:r,color:i}=e.attrs;let o="";n&&(o+=`list-style-type: ${n};`),r&&(o+=`font-size: ${r};`),i&&(o+=`color: ${i};`);const a={style:o};return t!==1&&(a.start=t),["ol",a,0]}},AMe={attrs:{listStyleType:{default:""},fontsize:{default:""},color:{default:""}},content:"list_item+",group:"block",parseDOM:[{tag:"ul",getAttrs:e=>{const t={},{listStyleType:n,fontSize:r,color:i}=e.style;return n&&(t.listStyleType=n),r&&(t.fontsize=r),i&&(t.color=i),t}}],toDOM:e=>{const{listStyleType:t,fontsize:n,color:r}=e.attrs;let i="";return t&&(i+=`list-style-type: ${t};`),n&&(i+=`font-size: ${n};`),r&&(i+=`color: ${r};`),["ul",{style:i},0]}},RMe={...Xwe,content:"paragraph block*",group:"block"},bMe={attrs:{align:{default:""},indent:{default:0},textIndent:{default:0}},content:"inline*",group:"block",parseDOM:[{tag:"p",getAttrs:e=>{const{textAlign:t,textIndent:n}=e.style;let r=e.getAttribute("align")||t||"";r=/(left|right|center|justify)/.test(r)?r:"";let i=0;n&&(/em/.test(n)?i=parseInt(n):/px/.test(n)&&(i=Math.floor(parseInt(n)/16),i||(i=1)));const o=+(e.getAttribute("data-indent")||0);return{align:r,indent:o,textIndent:i}}},{tag:"img",ignore:!0},{tag:"pre",skip:!0}],toDOM:e=>{const{align:t,indent:n,textIndent:r}=e.attrs;let i="";t&&t!=="left"&&(i+=`text-align: ${t};`),r&&(i+=`text-indent: ${r}em;`);const o={style:i};return n&&(o["data-indent"]=n),["p",o,0]}},{doc:xMe,blockquote:SMe,text:wMe}=vJ,MMe={doc:xMe,paragraph:bMe,blockquote:SMe,text:wMe,ordered_list:yMe,bullet_list:AMe,list_item:RMe},LMe={excludes:"subscript",parseDOM:[{tag:"sub"},{style:"vertical-align",getAttrs:e=>e==="sub"&&null}],toDOM:()=>["sub",0]},TMe={excludes:"superscript",parseDOM:[{tag:"sup"},{style:"vertical-align",getAttrs:e=>e==="super"&&null}],toDOM:()=>["sup",0]},_Me={parseDOM:[{tag:"strike"},{style:"text-decoration",getAttrs:e=>e==="line-through"&&null},{style:"text-decoration-line",getAttrs:e=>e==="line-through"&&null}],toDOM:()=>["span",{style:"text-decoration-line: line-through;"},0]},OMe={parseDOM:[{tag:"u"},{style:"text-decoration",getAttrs:e=>e==="underline"&&null},{style:"text-decoration-line",getAttrs:e=>e==="underline"&&null}],toDOM:()=>["span",{style:"text-decoration: underline;"},0]},kMe={attrs:{color:{}},inline:!0,group:"inline",parseDOM:[{style:"color",getAttrs:e=>e?{color:e}:{}}],toDOM:e=>{const{color:t}=e.attrs;let n="";return t&&(n+=`color: ${t};`),["span",{style:n},0]}},PMe={attrs:{backcolor:{}},inline:!0,group:"inline",parseDOM:[{style:"background-color",getAttrs:e=>e?{backcolor:e}:{}}],toDOM:e=>{const{backcolor:t}=e.attrs;let n="";return t&&(n+=`background-color: ${t};`),["span",{style:n},0]}},CMe={attrs:{fontsize:{}},inline:!0,group:"inline",parseDOM:[{style:"font-size",getAttrs:e=>e?{fontsize:e}:{}}],toDOM:e=>{const{fontsize:t}=e.attrs;let n="";return t&&(n+=`font-size: ${t};`),["span",{style:n},0]}},IMe={attrs:{fontname:{}},inline:!0,group:"inline",parseDOM:[{style:"font-family",getAttrs:e=>({fontname:e&&typeof e=="string"?e.replace(/[\"\']/g,""):""})}],toDOM:e=>{const{fontname:t}=e.attrs;let n="";return t&&(n+=`font-family: ${t};`),["span",{style:n},0]}},NMe={attrs:{href:{},title:{default:null},target:{default:"_blank"}},inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs:e=>{const t=e.getAttribute("href"),n=e.getAttribute("title");return{href:t,title:n}}}],toDOM:e=>["a",e.attrs,0]},FMe={attrs:{index:{default:null}},parseDOM:[{tag:"mark",getAttrs:e=>({index:e.dataset.index})}],toDOM:e=>["mark",{"data-index":e.attrs.index},0]},{em:EMe,strong:XMe,code:WMe}=gJ,VMe={em:EMe,strong:XMe,fontsize:CMe,fontname:IMe,code:WMe,forecolor:kMe,backcolor:PMe,subscript:LMe,superscript:TMe,strikethrough:_Me,underline:OMe,link:NMe,mark:FMe},DMe=MMe,UMe=VMe,mJ=new $Z({nodes:DMe,marks:UMe}),Uk=e=>{const t=`
    ${e}
    `,r=new window.DOMParser().parseFromString(t,"text/html").body.firstElementChild;return TO.fromSchema(mJ).parse(r)},yJ=(e,t,n,r)=>new cwe(e,{state:Tp.create({doc:Uk(t),plugins:uMe(mJ,r)}),...n});function BMe(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(i){i(n)}),(r=e.get("*"))&&r.slice().map(function(i){i(t,n)})}}}var Ti=(e=>(e.RICH_TEXT_COMMAND="RICH_TEXT_COMMAND",e.SYNC_RICH_TEXT_ATTRS_TO_STORE="SYNC_RICH_TEXT_ATTRS_TO_STORE",e.OPEN_CHART_DATA_EDITOR="OPEN_CHART_DATA_EDITOR",e.OPEN_LATEX_EDITOR="OPEN_LATEX_EDITOR",e))(Ti||{});const Ki=BMe(),YMe=(e,t,n)=>{const{selection:r,doc:i}=e;if(!r||!i)return e;const{from:o,to:a}=r,{nodes:s}=t,l=s.blockquote,u=s.list_item,c=s.paragraph,f=[];n=n||"";const d=new Set([l,u,c]);return i.nodesBetween(o,a,(h,p)=>{const v=h.type;return(h.attrs.align||"")!==n&&d.has(v)&&f.push({node:h,pos:p,nodeType:v}),!0}),f.length&&f.forEach(h=>{const{node:p,pos:v,nodeType:g}=h;let{attrs:m}=p;n?m={...m,align:n}:m={...m,align:null},e=e.setNodeMarkup(v,g,m,p.marks)}),e},ZMe=(e,t)=>{const{state:n}=e,{schema:r,selection:i}=n,o=YMe(n.tr.setSelection(i),r,t);e.dispatch(o)};function QMe(e,t,n,r){if(!e.doc)return e;const i=e.doc.nodeAt(t);if(!i)return e;const o=0,a=8;let s=(i.attrs[r]||0)+n;if(sa&&(s=a),s===i.attrs[r])return e;const l={...i.attrs,[r]:s};return e.setNodeMarkup(t,i.type,l,i.marks)}const AJ=(e,t,n,r)=>{const{selection:i,doc:o}=e;if(!i||!o||!(i instanceof nr||i instanceof ia))return e;const{from:a,to:s}=i;return o.nodesBetween(a,s,(l,u)=>{const c=l.type;return c.name==="paragraph"||c.name==="blockquote"?(e=QMe(e,u,n,r),!1):!lx(l,t)}),e},HMe=(e,t)=>{const{state:n}=e,{schema:r,selection:i}=n,o=AJ(n.tr.setSelection(i),r,t,"indent");return o.docChanged?(e.dispatch(o),!0):!1},KMe=(e,t)=>{const{state:n}=e,{schema:r,selection:i}=n,o=AJ(n.tr.setSelection(i),r,t,"textIndent");return o.docChanged?(e.dispatch(o),!0):!1},Yx=(e,t,n,r={})=>(i,o)=>{const{schema:a,selection:s}=i,{$from:l,$to:u}=s,c=l.blockRange(u);if(!c)return!1;const f=LQ(h=>lx(h,a))(s);if(c.depth>=1&&f&&c.depth-f.depth<=1){if(f.node.type===e&&!n)return pJ(t)(i,o);if(lx(f.node,a)&&e.validContent(f.node.content)){const{tr:h}=i,p={...f.node.attrs,...r};return n&&(p.listStyleType=n),h.setNodeMarkup(f.pos,e,p),o&&o(h),!1}}const d={...r};return n&&(d.listStyleType=n),Wwe(e,d)(i,o)},F1=(e,t)=>{const{state:n}=e,{schema:r,selection:i}=n,o=n.tr.setSelection(i),{doc:a}=o;if(!a)return o;const{from:s,to:l}=i;a.nodesBetween(s,l,(u,c)=>{if(lx(u,r)&&s-3<=c&&l+3>=c+u.nodeSize){const f=Array.isArray(t)?t:[t];for(const d of f)o.setNodeAttribute(c,d.key,d.value)}return!1}),e.dispatch(o)},GMe=We({__name:"ProsemirrorEditor",props:{elementId:{},defaultColor:{},defaultFontName:{},value:{},editable:{type:Boolean,default:!1},autoFocus:{type:Boolean,default:!1}},emits:["update","focus","blur","mousedown"],setup(e,{expose:t,emit:n}){const r=e,i=n,o=pt(),{handleElementId:a,textFormatPainter:s,richTextAttrs:l,activeElementIdList:u}=Ve(o),{ctrlOrShiftKeyActive:c}=Ve(Ns()),f=he();let d;const h=Qn.debounce(function(L=!1){r.value.replace(/ style=\"\"/g,"")!==d.dom.innerHTML.replace(/ style=\"\"/g,"")&&i("update",{value:d.dom.innerHTML,ignore:L})},300,{trailing:!0}),p=()=>{(!c.value||u.value.length<=1)&&o.setDisableHotkeysState(!0),i("focus")},v=()=>{o.setDisableHotkeysState(!1),i("blur")},g=Qn.debounce(function(){const L=z8(d,{color:r.defaultColor,fontname:r.defaultFontName});o.setRichtextAttrs(L)},30,{trailing:!0}),m=(L,M)=>{const{ctrlKey:w,shiftKey:_,metaKey:C}=M,O=w||_||C,N=M.key.toUpperCase(),P=O&&(N===yt.Z||N===yt.Y);h(P),g()},y=Se(()=>r.value);Tt(y,()=>{if(!d||d.hasFocus())return;const{doc:L,tr:M}=d.state;d.dispatch(M.replaceRangeWith(0,L.content.size,Uk(y.value)))}),Tt(()=>r.editable,()=>{d.setProps({editable:()=>r.editable})}),t({focus:()=>d.focus()});const A=({target:L,action:M})=>{if(!L&&a.value!==r.elementId||L&&L!==r.elementId)return;const w="command"in M?[M]:M;for(const _ of w)if(_.command==="fontname"&&_.value!==void 0){const C=d.state.schema.marks.fontname.create({fontname:_.value});pi(d),Vl(d,C),_.value&&!document.fonts.check(`16px ${_.value}`)&&pn.warning("字体需要等待加载下载后生效,请稍等")}else if(_.command==="fontsize"&&_.value){const C=d.state.schema.marks.fontsize.create({fontsize:_.value});pi(d),Vl(d,C),F1(d,{key:"fontsize",value:_.value})}else if(_.command==="fontsize-add"){const C=_.value?+_.value:2;pi(d);const O=$7(d)+C+"px",N=d.state.schema.marks.fontsize.create({fontsize:O});Vl(d,N),F1(d,{key:"fontsize",value:O})}else if(_.command==="fontsize-reduce"){const C=_.value?+_.value:2;pi(d);let O=$7(d)-C;O<12&&(O=12);const N=d.state.schema.marks.fontsize.create({fontsize:O+"px"});Vl(d,N),F1(d,{key:"fontsize",value:O+"px"})}else if(_.command==="color"&&_.value){const C=d.state.schema.marks.forecolor.create({color:_.value});pi(d),Vl(d,C),F1(d,{key:"color",value:_.value})}else if(_.command==="backcolor"&&_.value){const C=d.state.schema.marks.backcolor.create({backcolor:_.value});pi(d),Vl(d,C)}else if(_.command==="bold")pi(d),si(d.state.schema.marks.strong)(d.state,d.dispatch);else if(_.command==="em")pi(d),si(d.state.schema.marks.em)(d.state,d.dispatch);else if(_.command==="underline")pi(d),si(d.state.schema.marks.underline)(d.state,d.dispatch);else if(_.command==="strikethrough")pi(d),si(d.state.schema.marks.strikethrough)(d.state,d.dispatch);else if(_.command==="subscript")si(d.state.schema.marks.subscript)(d.state,d.dispatch);else if(_.command==="superscript")si(d.state.schema.marks.superscript)(d.state,d.dispatch);else if(_.command==="blockquote")jR("blockquote",d.state)?r0e(d.state,d.dispatch):f0e(d.state.schema.nodes.blockquote)(d.state,d.dispatch);else if(_.command==="code")si(d.state.schema.marks.code)(d.state,d.dispatch);else if(_.command==="align"&&_.value)ZMe(d,_.value);else if(_.command==="indent"&&_.value)HMe(d,+_.value);else if(_.command==="textIndent"&&_.value)KMe(d,+_.value);else if(_.command==="bulletList"){const C=_.value||"",{bullet_list:O,list_item:N}=d.state.schema.nodes,P={color:l.value.color,fontsize:l.value.fontsize};Yx(O,N,C,P)(d.state,d.dispatch)}else if(_.command==="orderedList"){const C=_.value||"",{ordered_list:O,list_item:N}=d.state.schema.nodes,P={color:l.value.color,fontsize:l.value.fontsize};Yx(O,N,C,P)(d.state,d.dispatch)}else if(_.command==="clear"){pi(d);const{$from:C,$to:O}=d.state.selection;d.dispatch(d.state.tr.removeMark(C.pos,O.pos)),F1(d,[{key:"fontsize",value:""},{key:"color",value:""}])}else if(_.command==="link"){const C=d.state.schema.marks.link,{from:O,to:N}=d.state.selection,P=v0e(d.state.doc,O,N,C);if(P)if(_.value){const F=d.state.schema.marks.link.create({href:_.value,title:_.value});Vl(d,F,{from:P.from.pos,to:P.to.pos+1})}else d.dispatch(d.state.tr.removeMark(P.from.pos,P.to.pos+1,C));else if(A0e(d.state,C))if(_.value){const F=d.state.schema.marks.link.create({href:_.value,title:_.value});Vl(d,F)}else si(C)(d.state,d.dispatch);else _.value&&(pi(d),si(C,{href:_.value,title:_.value})(d.state,d.dispatch))}else _.command==="insert"&&_.value&&d.dispatch(d.state.tr.insertText(_.value));d.focus(),h(),g()},x=()=>{if(!s.value)return;const{keep:L,...M}=s.value,w=[{command:"clear"}];for(const _ of Object.keys(M)){const C=_,O=s.value[_];O===!0?w.push({command:C}):O&&w.push({command:C,value:O})}A({action:w}),L||o.setTextFormatPainter(null)};Vt(()=>{d=yJ(f.value,y.value,{handleDOMEvents:{focus:p,blur:v,keydown:m,click:g,mouseup:x},editable:()=>r.editable}),r.autoFocus&&d.focus()}),En(()=>{d&&d.destroy()});const S=()=>{a.value===r.elementId&&g()};return Ki.on(Ti.RICH_TEXT_COMMAND,A),Ki.on(Ti.SYNC_RICH_TEXT_ATTRS_TO_STORE,S),En(()=>{Ki.off(Ti.RICH_TEXT_COMMAND,A),Ki.off(Ti.SYNC_RICH_TEXT_ATTRS_TO_STORE,S)}),(L,M)=>(D(),q("div",{class:ze(["prosemirror-editor",{"format-painter":z(s)}]),ref_key:"editorViewRef",ref:f,onMousedown:M[0]||(M[0]=w=>i("mousedown",w))},null,34))}}),RJ=Be(GMe,[["__scopeId","data-v-32b03815"]]),bJ=e=>(rn("data-v-3b68a2d9"),e=e(),on(),e),zMe=bJ(()=>V("div",{class:"drag-handler top"},null,-1)),JMe=bJ(()=>V("div",{class:"drag-handler bottom"},null,-1)),$Me=We({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=pt(),r=st(),{handleElementId:i,isScaling:o}=Ve(n),{addHistorySnapshot:a}=nn(),s=he(),l=Se(()=>t.elementInfo.shadow),{shadowStyle:u}=hd(l),c=(y,R=!0)=>{t.elementInfo.lock||(y.stopPropagation(),t.selectElement(y,t.elementInfo,R))},f=he(-1),d=he(-1);Tt(o,()=>{i.value===t.elementInfo.id&&(o.value||(!t.elementInfo.vertical&&f.value!==-1&&(r.updateElement({id:t.elementInfo.id,props:{height:f.value}}),f.value=-1),t.elementInfo.vertical&&d.value!==-1&&(r.updateElement({id:t.elementInfo.id,props:{width:d.value}}),d.value=-1)))});const h=y=>{const R=y[0].contentRect;if(!s.value)return;const A=R.height+20,x=R.width+20;!t.elementInfo.vertical&&t.elementInfo.height!==A&&(o.value?f.value=A:r.updateElement({id:t.elementInfo.id,props:{height:A}})),t.elementInfo.vertical&&t.elementInfo.width!==x&&(o.value?d.value=x:r.updateElement({id:t.elementInfo.id,props:{width:x}}))},p=new ResizeObserver(h);Vt(()=>{s.value&&p.observe(s.value)}),En(()=>{s.value&&p.unobserve(s.value)});const v=(y,R=!1)=>{r.updateElement({id:t.elementInfo.id,props:{content:y}}),R||a()},g=Qn.debounce(function(){t.elementInfo.content.replace(/<[^>]+>/g,"")||r.deleteElement(t.elementInfo.id)},300,{trailing:!0}),m=Se(()=>i.value===t.elementInfo.id);return Tt(m,()=>{m.value||g()}),(y,R)=>{const A=_n("contextmenu");return D(),q("div",{class:ze(["editable-element-text",{lock:y.elementInfo.lock}]),style:Le({top:y.elementInfo.top+"px",left:y.elementInfo.left+"px",width:y.elementInfo.width+"px",height:y.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:Le({transform:`rotate(${y.elementInfo.rotate}deg)`})},[Ge((D(),q("div",{class:"element-content",ref_key:"elementRef",ref:s,style:Le({width:y.elementInfo.vertical?"auto":y.elementInfo.width+"px",height:y.elementInfo.vertical?y.elementInfo.height+"px":"auto",backgroundColor:y.elementInfo.fill,opacity:y.elementInfo.opacity,textShadow:z(u),lineHeight:y.elementInfo.lineHeight,letterSpacing:(y.elementInfo.wordSpace||0)+"px",color:y.elementInfo.defaultColor,fontFamily:y.elementInfo.defaultFontName,writingMode:y.elementInfo.vertical?"vertical-rl":"horizontal-tb"}),onMousedown:R[2]||(R[2]=x=>c(x)),onTouchstart:R[3]||(R[3]=x=>c(x))},[k(y3,{width:y.elementInfo.width,height:y.elementInfo.height,outline:y.elementInfo.outline},null,8,["width","height","outline"]),k(RJ,{class:"text",elementId:y.elementInfo.id,defaultColor:y.elementInfo.defaultColor,defaultFontName:y.elementInfo.defaultFontName,editable:!y.elementInfo.lock,value:y.elementInfo.content,style:Le({"--paragraphSpace":`${y.elementInfo.paragraphSpace===void 0?5:y.elementInfo.paragraphSpace}px`}),onUpdate:R[0]||(R[0]=({value:x,ignore:S})=>v(x,S)),onMousedown:R[1]||(R[1]=x=>c(x,!1))},null,8,["elementId","defaultColor","defaultFontName","editable","value","style"]),zMe,JMe],36)),[[A,y.contextmenus]])],4)],6)}}}),xJ=Be($Me,[["__scopeId","data-v-3b68a2d9"]]),jMe=["id","gradientTransform"],qMe=["offset","stop-color"],e5e=["id"],t5e=["offset","stop-color"],SJ=We({__name:"GradientDefs",props:{id:{},type:{},colors:{},rotate:{default:0}},setup(e){return(t,n)=>t.type==="linear"?(D(),q("linearGradient",{key:0,id:t.id,x1:"0%",y1:"0%",x2:"100%",y2:"0%",gradientTransform:`rotate(${t.rotate},0.5,0.5)`},[(D(!0),q(Ee,null,qe(t.colors,(r,i)=>(D(),q("stop",{key:i,offset:`${r.pos}%`,"stop-color":r.color},null,8,qMe))),128))],8,jMe)):(D(),q("radialGradient",{key:1,id:t.id},[(D(!0),q(Ee,null,qe(t.colors,(r,i)=>(D(),q("stop",{key:i,offset:`${r.pos}%`,"stop-color":r.color},null,8,t5e))),128))],8,e5e))}}),n5e=["width","height"],r5e={key:0},i5e=["transform"],o5e=["d","fill","stroke","stroke-width","stroke-dasharray"],a5e=We({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=pt(),r=st(),{handleElementId:i,shapeFormatPainter:o}=Ve(n),{addHistorySnapshot:a}=nn(),s=(M,w=!0)=>{t.elementInfo.lock||(M.stopPropagation(),t.selectElement(M,t.elementInfo,w))},l=()=>{if(!o.value)return;const{keep:M,...w}=o.value;r.updateElement({id:t.elementInfo.id,props:w}),a(),M||n.setShapeFormatPainter(null)},u=Se(()=>t.elementInfo.outline),{outlineWidth:c,outlineColor:f,strokeDashArray:d}=t1(u),h=Se(()=>t.elementInfo.shadow),{shadowStyle:p}=hd(h),v=Se(()=>t.elementInfo.flipH),g=Se(()=>t.elementInfo.flipV),{flipStyle:m}=m3(v,g),y=he(!1);Tt(i,()=>{i.value!==t.elementInfo.id&&y.value&&(y.value=!1)});const R=Se(()=>{const M={content:"",defaultFontName:"",defaultColor:"#000",align:"middle"};return t.elementInfo.text?t.elementInfo.text:M}),A=(M,w=!1)=>{const _={...R.value,content:M};r.updateElement({id:t.elementInfo.id,props:{text:_}}),w||a()},x=()=>{if(!t.elementInfo.text)return;t.elementInfo.text.content.replace(/<[^>]+>/g,"")||(r.removeElementProps({id:t.elementInfo.id,propName:"text"}),a())},S=he(),L=()=>{y.value=!0,Rr(()=>S.value&&S.value.focus())};return(M,w)=>{const _=_n("contextmenu");return D(),q("div",{class:ze(["editable-element-shape",{lock:M.elementInfo.lock,"format-painter":z(o)}]),style:Le({top:M.elementInfo.top+"px",left:M.elementInfo.left+"px",width:M.elementInfo.width+"px",height:M.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:Le({transform:`rotate(${M.elementInfo.rotate}deg)`})},[Ge((D(),q("div",{class:"element-content",style:Le({opacity:M.elementInfo.opacity,filter:z(p)?`drop-shadow(${z(p)})`:"",transform:z(m),color:R.value.defaultColor,fontFamily:R.value.defaultFontName}),onMousedown:w[3]||(w[3]=C=>s(C)),onMouseup:w[4]||(w[4]=C=>l()),onTouchstart:w[5]||(w[5]=C=>s(C)),onDblclick:w[6]||(w[6]=C=>L())},[(D(),q("svg",{overflow:"visible",width:M.elementInfo.width,height:M.elementInfo.height},[M.elementInfo.gradient?(D(),q("defs",r5e,[k(SJ,{id:`editabel-gradient-${M.elementInfo.id}`,type:M.elementInfo.gradient.type,colors:M.elementInfo.gradient.colors,rotate:M.elementInfo.gradient.rotate},null,8,["id","type","colors","rotate"])])):Ye("",!0),V("g",{transform:`scale(${M.elementInfo.width/M.elementInfo.viewBox[0]}, ${M.elementInfo.height/M.elementInfo.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`},[V("path",{class:"shape-path","vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",d:M.elementInfo.path,fill:M.elementInfo.gradient?`url(#editabel-gradient-${M.elementInfo.id})`:M.elementInfo.fill,stroke:z(f),"stroke-width":z(c),"stroke-dasharray":z(d)},null,8,o5e)],8,i5e)],8,n5e)),V("div",{class:ze(["shape-text",[R.value.align,{editable:y.value||R.value.content}]])},[y.value||R.value.content?(D(),Oe(RJ,{key:0,ref_key:"prosemirrorEditorRef",ref:S,elementId:M.elementInfo.id,defaultColor:R.value.defaultColor,defaultFontName:R.value.defaultFontName,editable:!M.elementInfo.lock,value:R.value.content,onUpdate:w[0]||(w[0]=({value:C,ignore:O})=>A(C,O)),onBlur:w[1]||(w[1]=C=>x()),onMousedown:w[2]||(w[2]=C=>s(C,!1))},null,8,["elementId","defaultColor","defaultFontName","editable","value"])):Ye("",!0)],2)],36)),[[_,M.contextmenus]])],4)],6)}}}),wJ=Be(a5e,[["__scopeId","data-v-c11b67e0"]]),s5e=["id","markerWidth","markerHeight","refX","refY"],l5e=["d","fill","transform"],zf=We({__name:"LinePointMarker",props:{id:{},position:{},type:{},baseSize:{},color:{}},setup(e){const t=e,n={dot:"m0 5a5 5 0 1 0 10 0a5 5 0 1 0 -10 0z",arrow:"M0,0 L10,5 0,10 Z"},r={"arrow-start":180,"arrow-end":0},i=Se(()=>n[t.type]),o=Se(()=>r[`${t.type}-${t.position}`]||0),a=Se(()=>t.baseSize<2?2:t.baseSize);return(s,l)=>(D(),q("marker",{id:`${s.id}-${s.type}-${s.position}`,markerUnits:"userSpaceOnUse",orient:"auto",markerWidth:a.value*3,markerHeight:a.value*3,refX:a.value*1.5,refY:a.value*1.5},[V("path",{d:i.value,fill:s.color,transform:`scale(${a.value*.3}, ${a.value*.3}) rotate(${o.value}, 5, 5)`},null,8,l5e)],8,s5e))}}),u5e=["width","height"],c5e=["d","stroke","stroke-width","stroke-dasharray","marker-start","marker-end"],f5e=["d"],d5e=We({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=u=>{t.elementInfo.lock||(u.stopPropagation(),t.selectElement(u,t.elementInfo))},r=Se(()=>t.elementInfo.shadow),{shadowStyle:i}=hd(r),o=Se(()=>{const u=Math.abs(t.elementInfo.start[0]-t.elementInfo.end[0]);return u<24?24:u}),a=Se(()=>{const u=Math.abs(t.elementInfo.start[1]-t.elementInfo.end[1]);return u<24?24:u}),s=Se(()=>{const u=t.elementInfo.width;return t.elementInfo.style==="dashed"?u<=8?`${u*5} ${u*2.5}`:`${u*5} ${u*1.5}`:t.elementInfo.style==="dotted"?u<=8?`${u*1.8} ${u*1.6}`:`${u*1.5} ${u*1.2}`:"0 0"}),l=Se(()=>ek(t.elementInfo));return(u,c)=>{const f=_n("contextmenu");return D(),q("div",{class:ze(["editable-element-shape",{lock:u.elementInfo.lock}]),style:Le({top:u.elementInfo.top+"px",left:u.elementInfo.left+"px"})},[V("div",{class:"element-content",style:Le({filter:z(i)?`drop-shadow(${z(i)})`:""}),onMousedown:c[0]||(c[0]=d=>n(d)),onTouchstart:c[1]||(c[1]=d=>n(d))},[(D(),q("svg",{overflow:"visible",width:o.value,height:a.value},[V("defs",null,[u.elementInfo.points[0]?(D(),Oe(zf,{key:0,id:u.elementInfo.id,position:"start",type:u.elementInfo.points[0],color:u.elementInfo.color,baseSize:u.elementInfo.width},null,8,["id","type","color","baseSize"])):Ye("",!0),u.elementInfo.points[1]?(D(),Oe(zf,{key:1,id:u.elementInfo.id,position:"end",type:u.elementInfo.points[1],color:u.elementInfo.color,baseSize:u.elementInfo.width},null,8,["id","type","color","baseSize"])):Ye("",!0)]),V("path",{class:"line-point",d:l.value,stroke:u.elementInfo.color,"stroke-width":u.elementInfo.width,"stroke-dasharray":s.value,fill:"none","marker-start":u.elementInfo.points[0]?`url(#${u.elementInfo.id}-${u.elementInfo.points[0]}-start)`:"","marker-end":u.elementInfo.points[1]?`url(#${u.elementInfo.id}-${u.elementInfo.points[1]}-end)`:""},null,8,c5e),Ge(V("path",{class:"line-path",d:l.value,stroke:"transparent","stroke-width":"20",fill:"none"},null,8,f5e),[[f,u.contextmenus]])],8,u5e))],36)],6)}}}),MJ=Be(d5e,[["__scopeId","data-v-9dc09347"]]),h5e=({type:e,data:t,themeColors:n,textColor:r,lineSmooth:i,stack:o})=>{if(e==="bar")return{color:n,textStyle:r?{color:r}:{},legend:t.series.length>1?{top:"bottom",textStyle:r?{color:r}:{}}:void 0,xAxis:{type:"category",data:t.labels},yAxis:{type:"value"},series:t.series.map((a,s)=>{const l={data:a,name:t.legends[s],type:"bar",label:{show:!0}};return o&&(l.stack="A"),l})};if(e==="column")return{color:n,textStyle:r?{color:r}:{},legend:t.series.length>1?{top:"bottom",textStyle:r?{color:r}:{}}:void 0,yAxis:{type:"category",data:t.labels},xAxis:{type:"value"},series:t.series.map((a,s)=>{const l={data:a,name:t.legends[s],type:"bar",label:{show:!0}};return o&&(l.stack="A"),l})};if(e==="line")return{color:n,textStyle:r?{color:r}:{},legend:t.series.length>1?{top:"bottom",textStyle:r?{color:r}:{}}:void 0,xAxis:{type:"category",data:t.labels},yAxis:{type:"value"},series:t.series.map((a,s)=>{const l={data:a,name:t.legends[s],type:"line",smooth:i,label:{show:!0}};return o&&(l.stack="A"),l})};if(e==="pie")return{color:n,textStyle:r?{color:r}:{},legend:{top:"bottom",textStyle:r?{color:r}:{}},series:[{data:t.series[0].map((a,s)=>({value:a,name:t.labels[s]})),label:r?{color:r}:{},type:"pie",radius:"70%",emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{show:!0,fontSize:14,fontWeight:"bold"}}}]};if(e==="ring")return{color:n,textStyle:r?{color:r}:{},legend:{top:"bottom",textStyle:r?{color:r}:{}},series:[{data:t.series[0].map((a,s)=>({value:a,name:t.labels[s]})),label:r?{color:r}:{},type:"pie",radius:["40%","70%"],padAngle:1,avoidLabelOverlap:!1,itemStyle:{borderRadius:4},emphasis:{label:{show:!0,fontSize:14,fontWeight:"bold"}}}]};if(e==="area")return{color:n,textStyle:r?{color:r}:{},legend:t.series.length>1?{top:"bottom",textStyle:r?{color:r}:{}}:void 0,xAxis:{type:"category",boundaryGap:!1,data:t.labels},yAxis:{type:"value"},series:t.series.map((a,s)=>{const l={data:a,name:t.legends[s],type:"line",areaStyle:{},label:{show:!0}};return o&&(l.stack="A"),l})};if(e==="radar")return{color:n,textStyle:r?{color:r}:{},legend:t.series.length>1?{top:"bottom",textStyle:r?{color:r}:{}}:void 0,radar:{indicator:t.labels.map(a=>({name:a}))},series:[{data:t.series.map((a,s)=>({value:a,name:t.legends[s]})),type:"radar"}]};if(e==="scatter"){const a=[];for(let s=0;sd(t,i,r,e));if(f)s=f;else{let d=i.marks(),{schema:h}=e.state,p=Yv.fromSchema(h);a=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(v=>{let g=a.appendChild(document.createElement("p"));v&&g.appendChild(p.serializeNode(h.text(v,d)))})}}else e.someProp("transformPastedHTML",f=>{n=f(n,e)}),a=M4e(n),ay&&L4e(a);let u=a&&a.querySelector("[data-pm-slice]"),c=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(c&&c[3])for(let f=+c[3];f>0;f--){let d=a.firstChild;for(;d&&d.nodeType!=1;)d=d.nextSibling;if(!d)break;a=d}if(s||(s=(e.someProp("clipboardParser")||e.someProp("domParser")||TO.fromSchema(e.state.schema)).parseSlice(a,{preserveWhitespace:!!(l||c),context:i,ruleFromNode(d){return d.nodeName=="BR"&&!d.nextSibling&&d.parentNode&&!S4e.test(d.parentNode.nodeName)?{ignore:!0}:null}})),c)s=T4e(iW(s,+c[1],+c[2]),c[4]);else if(s=Mt.maxOpen(w4e(s.content,i),!0),s.openStart||s.openEnd){let f=0,d=0;for(let h=s.content.firstChild;f{s=f(s,e)}),s}const S4e=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function w4e(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let i=t.node(n).contentMatchAt(t.index(n)),o,a=[];if(e.forEach(s=>{if(!a)return;let l=i.findWrapping(s.type),u;if(!l)return a=null;if(u=a.length&&o.length&&zz(l,o,s,a[a.length-1],0))a[a.length-1]=u;else{a.length&&(a[a.length-1]=Jz(a[a.length-1],o.length));let c=Gz(s,l);a.push(c),i=i.matchType(c.type),o=l}}),a)return ft.from(a)}return e}function Gz(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,ft.from(e));return e}function zz(e,t,n,r,i){if(i1&&(o=0),i=n&&(s=t<0?a.contentMatchAt(0).fillBefore(s,o<=i).append(s):s.append(a.contentMatchAt(a.childCount).fillBefore(ft.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,a.copy(s))}function iW(e,t,n){return t]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n=jz().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(e),i;if((i=r&&$z[r[1].toLowerCase()])&&(e=i.map(o=>"<"+o+">").join("")+e+i.map(o=>"").reverse().join("")),n.innerHTML=e,i)for(let o=0;o=0;s-=2){let l=n.nodes[r[s]];if(!l||l.hasRequiredAttrs())break;i=ft.from(l.create(r[s+1],i)),o++,a++}return new Mt(i,o,a)}const Fo={},Eo={},_4e={touchstart:!0,touchmove:!0};class O4e{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function k4e(e){for(let t in Fo){let n=Fo[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=r=>{C4e(e,r)&&!Nk(e,r)&&(e.editable||!(r.type in Eo))&&n(e,r)},_4e[t]?{passive:!0}:void 0)}No&&e.dom.addEventListener("input",()=>null),L6(e)}function Sf(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function P4e(e){e.domObserver.stop();for(let t in e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}function L6(e){e.someProp("handleDOMEvents",t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=r=>Nk(e,r))})}function Nk(e,t){return e.someProp("handleDOMEvents",n=>{let r=n[t.type];return r?r(e,t)||t.defaultPrevented:!1})}function C4e(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target;n!=e.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}function I4e(e,t){!Nk(e,t)&&Fo[t.type]&&(e.editable||!(t.type in Eo))&&Fo[t.type](e,t)}Eo.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=n.keyCode==16||n.shiftKey,!eJ(e,n)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!(ol&&po&&n.keyCode==13)))if(n.keyCode!=229&&e.domObserver.forceFlush(),kv&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let r=Date.now();e.input.lastIOSEnter=r,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==r&&(e.someProp("handleKeyDown",i=>i(e,fh(13,"Enter"))),e.input.lastIOSEnter=0)},200)}else e.someProp("handleKeyDown",r=>r(e,n))||x4e(e,n)?n.preventDefault():Sf(e,"key")};Eo.keyup=(e,t)=>{t.keyCode==16&&(e.input.shiftKey=!1)};Eo.keypress=(e,t)=>{let n=t;if(eJ(e,n)||!n.charCode||n.ctrlKey&&!n.altKey||hs&&n.metaKey)return;if(e.someProp("handleKeyPress",i=>i(e,n))){n.preventDefault();return}let r=e.state.selection;if(!(r instanceof nr)||!r.$from.sameParent(r.$to)){let i=String.fromCharCode(n.charCode);!/[\r\n]/.test(i)&&!e.someProp("handleTextInput",o=>o(e,r.$from.pos,r.$to.pos,i))&&e.dispatch(e.state.tr.insertText(i).scrollIntoView()),n.preventDefault()}};function b3(e){return{left:e.clientX,top:e.clientY}}function N4e(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}function Fk(e,t,n,r,i){if(r==-1)return!1;let o=e.state.doc.resolve(r);for(let a=o.depth+1;a>0;a--)if(e.someProp(t,s=>a>o.depth?s(e,n,o.nodeAfter,o.before(a),i,!0):s(e,n,o.node(a),o.before(a),i,!1)))return!0;return!1}function av(e,t,n){e.focused||e.focus();let r=e.state.tr.setSelection(t);r.setMeta("pointer",!0),e.dispatch(r)}function F4e(e,t){if(t==-1)return!1;let n=e.state.doc.resolve(t),r=n.nodeAfter;return r&&r.isAtom&&Jt.isSelectable(r)?(av(e,new Jt(n)),!0):!1}function E4e(e,t){if(t==-1)return!1;let n=e.state.selection,r,i;n instanceof Jt&&(r=n.node);let o=e.state.doc.resolve(t);for(let a=o.depth+1;a>0;a--){let s=a>o.depth?o.nodeAfter:o.node(a);if(Jt.isSelectable(s)){r&&n.$from.depth>0&&a>=n.$from.depth&&o.before(n.$from.depth+1)==n.$from.pos?i=o.before(n.$from.depth):i=o.before(a);break}}return i!=null?(av(e,Jt.create(e.state.doc,i)),!0):!1}function X4e(e,t,n,r,i){return Fk(e,"handleClickOn",t,n,r)||e.someProp("handleClick",o=>o(e,t,r))||(i?E4e(e,n):F4e(e,n))}function W4e(e,t,n,r){return Fk(e,"handleDoubleClickOn",t,n,r)||e.someProp("handleDoubleClick",i=>i(e,t,r))}function V4e(e,t,n,r){return Fk(e,"handleTripleClickOn",t,n,r)||e.someProp("handleTripleClick",i=>i(e,t,r))||D4e(e,n,r)}function D4e(e,t,n){if(n.button!=0)return!1;let r=e.state.doc;if(t==-1)return r.inlineContent?(av(e,nr.create(r,0,r.content.size)),!0):!1;let i=r.resolve(t);for(let o=i.depth+1;o>0;o--){let a=o>i.depth?i.nodeAfter:i.node(o),s=i.before(o);if(a.inlineContent)av(e,nr.create(r,s+1,s+1+a.content.size));else if(Jt.isSelectable(a))av(e,Jt.create(r,s));else continue;return!0}}function Ek(e){return Wx(e)}const qz=hs?"metaKey":"ctrlKey";Fo.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let r=Ek(e),i=Date.now(),o="singleClick";i-e.input.lastClick.time<500&&N4e(n,e.input.lastClick)&&!n[qz]&&(e.input.lastClick.type=="singleClick"?o="doubleClick":e.input.lastClick.type=="doubleClick"&&(o="tripleClick")),e.input.lastClick={time:i,x:n.clientX,y:n.clientY,type:o};let a=e.posAtCoords(b3(n));a&&(o=="singleClick"?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new U4e(e,a,n,!!r)):(o=="doubleClick"?W4e:V4e)(e,a.pos,a.inside,n)?n.preventDefault():Sf(e,"pointer"))};class U4e{constructor(t,n,r,i){this.view=t,this.pos=n,this.event=r,this.flushed=i,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=t.state.doc,this.selectNode=!!r[qz],this.allowDefault=r.shiftKey;let o,a;if(n.inside>-1)o=t.state.doc.nodeAt(n.inside),a=n.inside;else{let c=t.state.doc.resolve(n.pos);o=c.parent,a=c.depth?c.before():0}const s=i?null:r.target,l=s?t.docView.nearestDesc(s,!0):null;this.target=l&&l.dom.nodeType==1?l.dom:null;let{selection:u}=t.state;(r.button==0&&o.type.spec.draggable&&o.type.spec.selectable!==!1||u instanceof Jt&&u.from<=a&&u.to>a)&&(this.mightDrag={node:o,pos:a,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&pl&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),t.root.addEventListener("mouseup",this.up=this.up.bind(this)),t.root.addEventListener("mousemove",this.move=this.move.bind(this)),Sf(t,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>uc(this.view)),this.view.input.mouseDown=null}up(t){if(this.done(),!this.view.dom.contains(t.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(b3(t))),this.updateAllowDefault(t),this.allowDefault||!n?Sf(this.view,"pointer"):X4e(this.view,n.pos,n.inside,t,this.selectNode)?t.preventDefault():t.button==0&&(this.flushed||No&&this.mightDrag&&!this.mightDrag.node.isAtom||po&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(av(this.view,Fn.near(this.view.state.doc.resolve(n.pos))),t.preventDefault()):Sf(this.view,"pointer")}move(t){this.updateAllowDefault(t),Sf(this.view,"pointer"),t.buttons==0&&this.done()}updateAllowDefault(t){!this.allowDefault&&(Math.abs(this.event.x-t.clientX)>4||Math.abs(this.event.y-t.clientY)>4)&&(this.allowDefault=!0)}}Fo.touchstart=e=>{e.input.lastTouch=Date.now(),Ek(e),Sf(e,"pointer")};Fo.touchmove=e=>{e.input.lastTouch=Date.now(),Sf(e,"pointer")};Fo.contextmenu=e=>Ek(e);function eJ(e,t){return e.composing?!0:No&&Math.abs(t.timeStamp-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}const B4e=ol?5e3:-1;Eo.compositionstart=Eo.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$from;if(t.selection.empty&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)))e.markCursor=e.state.storedMarks||n.marks(),Wx(e,!0),e.markCursor=null;else if(Wx(e),pl&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let r=e.domSelectionRange();for(let i=r.focusNode,o=r.focusOffset;i&&i.nodeType==1&&o!=0;){let a=o<0?i.lastChild:i.childNodes[o-1];if(!a)break;if(a.nodeType==3){e.domSelection().collapse(a,a.nodeValue.length);break}else i=a,o=-1}}e.input.composing=!0}tJ(e,B4e)};Eo.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=t.timeStamp,e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionNode=null,e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,tJ(e,20))};function tJ(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>Wx(e),t))}function nJ(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=Z4e());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function Y4e(e){let t=e.domSelectionRange();if(!t.focusNode)return null;let n=E3e(t.focusNode,t.focusOffset),r=X3e(t.focusNode,t.focusOffset);if(n&&r&&n!=r){let i=r.pmViewDesc,o=e.domObserver.lastChangedTextNode;if(n==o||r==o)return o;if(!i||!i.isText(r.nodeValue))return r;if(e.input.compositionNode==r){let a=n.pmViewDesc;if(!(!a||!a.isText(n.nodeValue)))return r}}return n||r}function Z4e(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}function Wx(e,t=!1){if(!(ol&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),nJ(e),t||e.docView&&e.docView.dirty){let n=Ck(e);return n&&!n.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(n)):e.updateState(e.state),!0}return!1}}function Q4e(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),i=document.createRange();i.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(i),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}const o2=la&&Nf<15||kv&&B3e<604;Fo.copy=Eo.cut=(e,t)=>{let n=t,r=e.state.selection,i=n.type=="cut";if(r.empty)return;let o=o2?null:n.clipboardData,a=r.content(),{dom:s,text:l}=Hz(e,a);o?(n.preventDefault(),o.clearData(),o.setData("text/html",s.innerHTML),o.setData("text/plain",l)):Q4e(e,s),i&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function H4e(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function K4e(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let i=e.input.shiftKey&&e.input.lastKeyCode!=45;setTimeout(()=>{e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?a2(e,r.value,null,i,t):a2(e,r.textContent,r.innerHTML,i,t)},50)}function a2(e,t,n,r,i){let o=Kz(e,t,n,r,e.state.selection.$from);if(e.someProp("handlePaste",l=>l(e,i,o||Mt.empty)))return!0;if(!o)return!1;let a=H4e(o),s=a?e.state.tr.replaceSelectionWith(a,r):e.state.tr.replaceSelection(o);return e.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function rJ(e){let t=e.getData("text/plain")||e.getData("Text");if(t)return t;let n=e.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}Eo.paste=(e,t)=>{let n=t;if(e.composing&&!ol)return;let r=o2?null:n.clipboardData,i=e.input.shiftKey&&e.input.lastKeyCode!=45;r&&a2(e,rJ(r),r.getData("text/html"),i,n)?n.preventDefault():K4e(e,n)};class iJ{constructor(t,n,r){this.slice=t,this.move=n,this.node=r}}const oJ=hs?"altKey":"ctrlKey";Fo.dragstart=(e,t)=>{let n=t,r=e.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let i=e.state.selection,o=i.empty?null:e.posAtCoords(b3(n)),a;if(!(o&&o.pos>=i.from&&o.pos<=(i instanceof Jt?i.to-1:i.to))){if(r&&r.mightDrag)a=Jt.create(e.state.doc,r.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let f=e.docView.nearestDesc(n.target,!0);f&&f.node.type.spec.draggable&&f!=e.docView&&(a=Jt.create(e.state.doc,f.posBefore))}}let s=(a||e.state.selection).content(),{dom:l,text:u,slice:c}=Hz(e,s);(!n.dataTransfer.files.length||!po||kz>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(o2?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",o2||n.dataTransfer.setData("text/plain",u),e.dragging=new iJ(c,!n[oJ],a)};Fo.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)};Eo.dragover=Eo.dragenter=(e,t)=>t.preventDefault();Eo.drop=(e,t)=>{let n=t,r=e.dragging;if(e.dragging=null,!n.dataTransfer)return;let i=e.posAtCoords(b3(n));if(!i)return;let o=e.state.doc.resolve(i.pos),a=r&&r.slice;a?e.someProp("transformPasted",p=>{a=p(a,e)}):a=Kz(e,rJ(n.dataTransfer),o2?null:n.dataTransfer.getData("text/html"),!1,o);let s=!!(r&&!n[oJ]);if(e.someProp("handleDrop",p=>p(e,n,a||Mt.empty,s))){n.preventDefault();return}if(!a)return;n.preventDefault();let l=a?sQ(e.state.doc,o.pos,a):o.pos;l==null&&(l=o.pos);let u=e.state.tr;if(s){let{node:p}=r;p?p.replace(u):u.deleteSelection()}let c=u.mapping.map(l),f=a.openStart==0&&a.openEnd==0&&a.content.childCount==1,d=u.doc;if(f?u.replaceRangeWith(c,c,a.content.firstChild):u.replaceRange(c,c,a),u.doc.eq(d))return;let h=u.doc.resolve(c);if(f&&Jt.isSelectable(a.content.firstChild)&&h.nodeAfter&&h.nodeAfter.sameMarkup(a.content.firstChild))u.setSelection(new Jt(h));else{let p=u.mapping.map(l);u.mapping.maps[u.mapping.maps.length-1].forEach((v,g,m,y)=>p=y),u.setSelection(Ik(e,h,u.doc.resolve(p)))}e.focus(),e.dispatch(u.setMeta("uiEvent","drop"))};Fo.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&uc(e)},20))};Fo.blur=(e,t)=>{let n=t;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)};Fo.beforeinput=(e,t)=>{if(po&&ol&&t.inputType=="deleteContentBackward"){e.domObserver.flushSoon();let{domChangeCount:r}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=r||(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",o=>o(e,fh(8,"Backspace")))))return;let{$cursor:i}=e.state.selection;i&&i.pos>0&&e.dispatch(e.state.tr.delete(i.pos-1,i.pos).scrollIntoView())},50)}};for(let e in Eo)Fo[e]=Eo[e];function s2(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}class Vx{constructor(t,n){this.toDOM=t,this.spec=n||Fh,this.side=this.spec.side||0}map(t,n,r,i){let{pos:o,deleted:a}=t.mapResult(n.from+i,this.side<0?-1:1);return a?null:new Va(o-r,o-r,this)}valid(){return!0}eq(t){return this==t||t instanceof Vx&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&s2(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}}class Ef{constructor(t,n){this.attrs=t,this.spec=n||Fh}map(t,n,r,i){let o=t.map(n.from+i,this.spec.inclusiveStart?-1:1)-r,a=t.map(n.to+i,this.spec.inclusiveEnd?1:-1)-r;return o>=a?null:new Va(o,a,this)}valid(t,n){return n.from=t&&(!o||o(s.spec))&&r.push(s.copy(s.from+i,s.to+i))}for(let a=0;at){let s=this.children[a]+1;this.children[a+2].findInner(t-s,n-s,r,i+s,o)}}map(t,n,r){return this==io||t.maps.length==0?this:this.mapInner(t,n,0,0,r||Fh)}mapInner(t,n,r,i,o){let a;for(let s=0;s{let u=l+r,c;if(c=sJ(n,s,u)){for(i||(i=this.children.slice());os&&f.to=t){this.children[s]==t&&(r=this.children[s+2]);break}let o=t+1,a=o+n.content.size;for(let s=0;so&&l.type instanceof Ef){let u=Math.max(o,l.from)-o,c=Math.min(a,l.to)-o;ui.map(t,n,Fh));return Af.from(r)}forChild(t,n){if(n.isLeaf)return li.empty;let r=[];for(let i=0;in instanceof li)?t:t.reduce((n,r)=>n.concat(r instanceof li?r:r.members),[]))}}}function G4e(e,t,n,r,i,o,a){let s=e.slice();for(let u=0,c=o;u{let g=v-p-(h-d);for(let m=0;my+c-f)continue;let R=s[m]+c-f;h>=R?s[m+1]=d<=R?-2:-1:d>=c&&g&&(s[m]+=g,s[m+1]+=g)}f+=g}),c=n.maps[u].map(c,-1)}let l=!1;for(let u=0;u=r.content.size){l=!0;continue}let d=n.map(e[u+1]+o,-1),h=d-i,{index:p,offset:v}=r.content.findIndex(f),g=r.maybeChild(p);if(g&&v==f&&v+g.nodeSize==h){let m=s[u+2].mapInner(n,g,c+1,e[u]+o+1,a);m!=io?(s[u]=f,s[u+1]=h,s[u+2]=m):(s[u+1]=-2,l=!0)}else l=!0}if(l){let u=z4e(s,e,t,n,i,o,a),c=Dx(u,r,0,a);t=c.local;for(let f=0;fn&&a.to{let u=sJ(e,s,l+n);if(u){o=!0;let c=Dx(u,s,n+l+1,r);c!=io&&i.push(l,l+s.nodeSize,c)}});let a=aJ(o?lJ(e):e,-n).sort(Eh);for(let s=0;s0;)t++;e.splice(t,0,n)}function C5(e){let t=[];return e.someProp("decorations",n=>{let r=n(e.state);r&&r!=io&&t.push(r)}),e.cursorWrapper&&t.push(li.create(e.state.doc,[e.cursorWrapper.deco])),Af.from(t)}const J4e={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},$4e=la&&Nf<=11;class j4e{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(t){this.anchorNode=t.anchorNode,this.anchorOffset=t.anchorOffset,this.focusNode=t.focusNode,this.focusOffset=t.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(t){return t.anchorNode==this.anchorNode&&t.anchorOffset==this.anchorOffset&&t.focusNode==this.focusNode&&t.focusOffset==this.focusOffset}}class q4e{constructor(t,n){this.view=t,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new j4e,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let i=0;ii.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():this.flush()}),$4e&&(this.onCharData=r=>{this.queue.push({target:r.target,type:"characterData",oldValue:r.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,J4e)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let t=this.observer.takeRecords();if(t.length){for(let n=0;nthis.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(jX(this.view)){if(this.suppressingSelectionUpdates)return uc(this.view);if(la&&Nf<=11&&!this.view.state.selection.empty){let t=this.view.domSelectionRange();if(t.focusNode&&t0(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(t){if(!t.focusNode)return!0;let n=new Set,r;for(let o=t.focusNode;o;o=i2(o))n.add(o);for(let o=t.anchorNode;o;o=i2(o))if(n.has(o)){r=o;break}let i=r&&this.view.docView.nearestDesc(r);if(i&&i.ignoreMutation({type:"selection",target:r.nodeType==3?r.parentNode:r}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}flush(){let{view:t}=this;if(!t.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let r=t.domSelectionRange(),i=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&jX(t)&&!this.ignoreSelectionChange(r),o=-1,a=-1,s=!1,l=[];if(t.editable)for(let c=0;cf.nodeName=="BR");if(c.length==2){let[f,d]=c;f.parentNode&&f.parentNode.parentNode==d.parentNode?d.remove():f.remove()}else{let{focusNode:f}=this.currentSelection;for(let d of c){let h=d.parentNode;h&&h.nodeName=="LI"&&(!f||nwe(t,f)!=h)&&d.remove()}}}let u=null;o<0&&i&&t.input.lastFocus>Date.now()-200&&Math.max(t.input.lastTouch,t.input.lastClick.time)-1||i)&&(o>-1&&(t.docView.markDirty(o,a),ewe(t)),this.handleDOMChange(o,a,s,l),t.docView&&t.docView.dirty?t.updateState(t.state):this.currentSelection.eq(r)||uc(t),this.currentSelection.set(r))}registerMutation(t,n){if(n.indexOf(t.target)>-1)return null;let r=this.view.docView.nearestDesc(t.target);if(t.type=="attributes"&&(r==this.view.docView||t.attributeName=="contenteditable"||t.attributeName=="style"&&!t.oldValue&&!t.target.getAttribute("style"))||!r||r.ignoreMutation(t))return null;if(t.type=="childList"){for(let c=0;ci;g--){let m=r.childNodes[g-1],y=m.pmViewDesc;if(m.nodeName=="BR"&&!y){o=g;break}if(!y||y.size)break}let f=e.state.doc,d=e.someProp("domParser")||TO.fromSchema(e.state.schema),h=f.resolve(a),p=null,v=d.parse(r,{topNode:h.parent,topMatch:h.parent.contentMatchAt(h.index()),topOpen:!0,from:i,to:o,preserveWhitespace:h.parent.type.whitespace=="pre"?"full":!0,findPositions:u,ruleFromNode:iwe,context:h});if(u&&u[0].pos!=null){let g=u[0].pos,m=u[1]&&u[1].pos;m==null&&(m=g),p={anchor:g+a,head:m+a}}return{doc:v,sel:p,from:a,to:s}}function iwe(e){let t=e.pmViewDesc;if(t)return t.parseRule();if(e.nodeName=="BR"&&e.parentNode){if(No&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(e.parentNode.lastChild==e||No&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if(e.nodeName=="IMG"&&e.getAttribute("mark-placeholder"))return{ignore:!0};return null}const owe=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function awe(e,t,n,r,i){let o=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let w=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,_=Ck(e,w);if(_&&!e.state.selection.eq(_)){if(po&&ol&&e.input.lastKeyCode===13&&Date.now()-100O(e,fh(13,"Enter"))))return;let C=e.state.tr.setSelection(_);w=="pointer"?C.setMeta("pointer",!0):w=="key"&&C.scrollIntoView(),o&&C.setMeta("composition",o),e.dispatch(C)}return}let a=e.state.doc.resolve(t),s=a.sharedDepth(n);t=a.before(s+1),n=e.state.doc.resolve(n).after(s+1);let l=e.state.selection,u=rwe(e,t,n),c=e.state.doc,f=c.slice(u.from,u.to),d,h;e.input.lastKeyCode===8&&Date.now()-100Date.now()-225||ol)&&i.some(w=>w.nodeType==1&&!owe.test(w.nodeName))&&(!p||p.endA>=p.endB)&&e.someProp("handleKeyDown",w=>w(e,fh(13,"Enter")))){e.input.lastIOSEnter=0;return}if(!p)if(r&&l instanceof nr&&!l.empty&&l.$head.sameParent(l.$anchor)&&!e.composing&&!(u.sel&&u.sel.anchor!=u.sel.head))p={start:l.from,endA:l.to,endB:l.to};else{if(u.sel){let w=cW(e,e.state.doc,u.sel);if(w&&!w.eq(e.state.selection)){let _=e.state.tr.setSelection(w);o&&_.setMeta("composition",o),e.dispatch(_)}}return}e.input.domChangeCount++,e.state.selection.frome.state.selection.from&&p.start<=e.state.selection.from+2&&e.state.selection.from>=u.from?p.start=e.state.selection.from:p.endA=e.state.selection.to-2&&e.state.selection.to<=u.to&&(p.endB+=e.state.selection.to-p.endA,p.endA=e.state.selection.to)),la&&Nf<=11&&p.endB==p.start+1&&p.endA==p.start&&p.start>u.from&&u.doc.textBetween(p.start-u.from-1,p.start-u.from+1)=="  "&&(p.start--,p.endA--,p.endB--);let v=u.doc.resolveNoCache(p.start-u.from),g=u.doc.resolveNoCache(p.endB-u.from),m=c.resolve(p.start),y=v.sameParent(g)&&v.parent.inlineContent&&m.end()>=p.endA,R;if((kv&&e.input.lastIOSEnter>Date.now()-225&&(!y||i.some(w=>w.nodeName=="DIV"||w.nodeName=="P"))||!y&&v.posw(e,fh(13,"Enter")))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>p.start&&lwe(c,p.start,p.endA,v,g)&&e.someProp("handleKeyDown",w=>w(e,fh(8,"Backspace")))){ol&&po&&e.domObserver.suppressSelectionUpdates();return}po&&ol&&p.endB==p.start&&(e.input.lastAndroidDelete=Date.now()),ol&&!y&&v.start()!=g.start()&&g.parentOffset==0&&v.depth==g.depth&&u.sel&&u.sel.anchor==u.sel.head&&u.sel.head==p.endA&&(p.endB-=2,g=u.doc.resolveNoCache(p.endB-u.from),setTimeout(()=>{e.someProp("handleKeyDown",function(w){return w(e,fh(13,"Enter"))})},20));let A=p.start,x=p.endA,S,L,M;if(y){if(v.pos==g.pos)la&&Nf<=11&&v.parentOffset==0&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>uc(e),20)),S=e.state.tr.delete(A,x),L=c.resolve(p.start).marksAcross(c.resolve(p.endA));else if(p.endA==p.endB&&(M=swe(v.parent.content.cut(v.parentOffset,g.parentOffset),m.parent.content.cut(m.parentOffset,p.endA-m.start()))))S=e.state.tr,M.type=="add"?S.addMark(A,x,M.mark):S.removeMark(A,x,M.mark);else if(v.parent.child(v.index()).isText&&v.index()==g.index()-(g.textOffset?0:1)){let w=v.parent.textBetween(v.parentOffset,g.parentOffset);if(e.someProp("handleTextInput",_=>_(e,A,x,w)))return;S=e.state.tr.insertText(w,A,x)}}if(S||(S=e.state.tr.replace(A,x,u.doc.slice(p.start-u.from,p.endB-u.from))),u.sel){let w=cW(e,S.doc,u.sel);w&&!(po&&ol&&e.composing&&w.empty&&(p.start!=p.endB||e.input.lastAndroidDeletet.content.size?null:Ik(e,t.resolve(n.anchor),t.resolve(n.head))}function swe(e,t){let n=e.firstChild.marks,r=t.firstChild.marks,i=n,o=r,a,s,l;for(let c=0;cc.mark(s.addToSet(c.marks));else if(i.length==0&&o.length==1)s=o[0],a="remove",l=c=>c.mark(s.removeFromSet(c.marks));else return null;let u=[];for(let c=0;cn||I5(a,!0,!1)0&&(t||e.indexAfter(r)==e.node(r).childCount);)r--,i++,t=!1;if(n){let o=e.node(r).maybeChild(e.indexAfter(r));for(;o&&!o.isLeaf;)o=o.firstChild,i++}return i}function uwe(e,t,n,r,i){let o=e.findDiffStart(t,n);if(o==null)return null;let{a,b:s}=e.findDiffEnd(t,n+e.size,n+t.size);if(i=="end"){let l=Math.max(0,o-Math.min(a,s));r-=a+l-o}if(a=a?o-r:0;o-=l,o&&o=s?o-r:0;o-=l,o&&o=56320&&t<=57343&&n>=55296&&n<=56319}class cwe{constructor(t,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new O4e,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(gW),this.dispatch=this.dispatch.bind(this),this.dom=t&&t.mount||document.createElement("div"),t&&(t.appendChild?t.appendChild(this.dom):typeof t=="function"?t(this.dom):t.mount&&(this.mounted=!0)),this.editable=pW(this),hW(this),this.nodeViews=vW(this),this.docView=HX(this.state.doc,dW(this),C5(this),this.dom,this),this.domObserver=new q4e(this,(r,i,o,a)=>awe(this,r,i,o,a)),this.domObserver.start(),k4e(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let t=this._props;this._props={};for(let n in t)this._props[n]=t[n];this._props.state=this.state}return this._props}update(t){t.handleDOMEvents!=this._props.handleDOMEvents&&L6(this);let n=this._props;this._props=t,t.plugins&&(t.plugins.forEach(gW),this.directPlugins=t.plugins),this.updateStateInner(t.state,n)}setProps(t){let n={};for(let r in this._props)n[r]=this._props[r];n.state=this.state;for(let r in t)n[r]=t[r];this.update(n)}updateState(t){this.updateStateInner(t,this._props)}updateStateInner(t,n){var r;let i=this.state,o=!1,a=!1;t.storedMarks&&this.composing&&(nJ(this),a=!0),this.state=t;let s=i.plugins!=t.plugins||this._props.plugins!=n.plugins;if(s||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let h=vW(this);dwe(h,this.nodeViews)&&(this.nodeViews=h,o=!0)}(s||n.handleDOMEvents!=this._props.handleDOMEvents)&&L6(this),this.editable=pW(this),hW(this);let l=C5(this),u=dW(this),c=i.plugins!=t.plugins&&!i.doc.eq(t.doc)?"reset":t.scrollToSelection>i.scrollToSelection?"to selection":"preserve",f=o||!this.docView.matchesNode(t.doc,u,l);(f||!t.selection.eq(i.selection))&&(a=!0);let d=c=="preserve"&&a&&this.dom.style.overflowAnchor==null&&Q3e(this);if(a){this.domObserver.stop();let h=f&&(la||po)&&!this.composing&&!i.selection.empty&&!t.selection.empty&&fwe(i.selection,t.selection);if(f){let p=po?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=Y4e(this)),(o||!this.docView.update(t.doc,u,l,this))&&(this.docView.updateOuterDeco(u),this.docView.destroy(),this.docView=HX(t.doc,u,l,this.dom,this)),p&&!this.trackWrites&&(h=!0)}h||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&v4e(this))?uc(this,h):(Yz(this,t.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(i),!((r=this.dragging)===null||r===void 0)&&r.node&&!i.doc.eq(t.doc)&&this.updateDraggedNode(this.dragging,i),c=="reset"?this.dom.scrollTop=0:c=="to selection"?this.scrollToSelection():d&&H3e(d)}scrollToSelection(){let t=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof Jt){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&DX(this,n.getBoundingClientRect(),t)}else DX(this,this.coordsAtPos(this.state.selection.head,1),t)}destroyPluginViews(){let t;for(;t=this.pluginViews.pop();)t.destroy&&t.destroy()}updatePluginViews(t){if(!t||t.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n0&&this.state.doc.nodeAt(o))==r.node&&(i=o)}this.dragging=new iJ(t.slice,t.move,i<0?void 0:Jt.create(this.state.doc,i))}someProp(t,n){let r=this._props&&this._props[t],i;if(r!=null&&(i=n?n(r):r))return i;for(let a=0;an.ownerDocument.getSelection()),this._root=n}return t||document}updateRoot(){this._root=null}posAtCoords(t){return j3e(this,t)}coordsAtPos(t,n=1){return Fz(this,t,n)}domAtPos(t,n=0){return this.docView.domFromPos(t,n)}nodeDOM(t){let n=this.docView.descAt(t);return n?n.nodeDOM:null}posAtDOM(t,n,r=-1){let i=this.docView.posFromDOM(t,n,r);if(i==null)throw new RangeError("DOM position not inside the editor");return i}endOfTextblock(t,n){return r4e(this,n||this.state,t)}pasteHTML(t,n){return a2(this,"",t,!1,n||new ClipboardEvent("paste"))}pasteText(t,n){return a2(this,t,null,!0,n||new ClipboardEvent("paste"))}destroy(){this.docView&&(P4e(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],C5(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,N3e())}get isDestroyed(){return this.docView==null}dispatchEvent(t){return I4e(this,t)}dispatch(t){let n=this._props.dispatchTransaction;n?n.call(this,t):this.updateState(this.state.apply(t))}domSelectionRange(){let t=this.domSelection();return No&&this.root.nodeType===11&&V3e(this.dom.ownerDocument)==this.dom&&twe(this,t)||t}domSelection(){return this.root.getSelection()}}function dW(e){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),e.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(e.state)),n)for(let r in n)r=="class"?t.class+=" "+n[r]:r=="style"?t.style=(t.style?t.style+";":"")+n[r]:!t[r]&&r!="contenteditable"&&r!="nodeName"&&(t[r]=String(n[r]))}),t.translate||(t.translate="no"),[Va.node(0,e.state.doc.content.size,t)]}function hW(e){if(e.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),e.cursorWrapper={dom:t,deco:Va.widget(e.state.selection.head,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function pW(e){return!e.someProp("editable",t=>t(e.state)===!1)}function fwe(e,t){let n=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(n)!=t.$anchor.start(n)}function vW(e){let t=Object.create(null);function n(r){for(let i in r)Object.prototype.hasOwnProperty.call(t,i)||(t[i]=r[i])}return e.someProp("nodeViews",n),e.someProp("markViews",n),t}function dwe(e,t){let n=0,r=0;for(let i in e){if(e[i]!=t[i])return!0;n++}for(let i in t)r++;return n!=r}function gW(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}var Gf={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Ux={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},hwe=typeof navigator<"u"&&/Mac/.test(navigator.platform),pwe=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var Qi=0;Qi<10;Qi++)Gf[48+Qi]=Gf[96+Qi]=String(Qi);for(var Qi=1;Qi<=24;Qi++)Gf[Qi+111]="F"+Qi;for(var Qi=65;Qi<=90;Qi++)Gf[Qi]=String.fromCharCode(Qi+32),Ux[Qi]=String.fromCharCode(Qi);for(var N5 in Gf)Ux.hasOwnProperty(N5)||(Ux[N5]=Gf[N5]);function vwe(e){var t=hwe&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||pwe&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!t&&e.key||(e.shiftKey?Ux:Gf)[e.keyCode]||e.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const gwe=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function mwe(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n=="Space"&&(n=" ");let r,i,o,a;for(let s=0;s127)&&(o=Gf[r.keyCode])&&o!=i){let s=t[F5(o,r)];if(s&&s(n.state,n.dispatch,n))return!0}}return!1}}var Bx=200,_i=function(){};_i.prototype.append=function(t){return t.length?(t=_i.from(t),!this.length&&t||t.length=n?_i.empty:this.sliceInner(Math.max(0,t),Math.min(this.length,n))};_i.prototype.get=function(t){if(!(t<0||t>=this.length))return this.getInner(t)};_i.prototype.forEach=function(t,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length),n<=r?this.forEachInner(t,n,r,0):this.forEachInvertedInner(t,n,r,0)};_i.prototype.map=function(t,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length);var i=[];return this.forEach(function(o,a){return i.push(t(o,a))},n,r),i};_i.from=function(t){return t instanceof _i?t:t&&t.length?new cJ(t):_i.empty};var cJ=function(e){function t(r){e.call(this),this.values=r}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(i,o){return i==0&&o==this.length?this:new t(this.values.slice(i,o))},t.prototype.getInner=function(i){return this.values[i]},t.prototype.forEachInner=function(i,o,a,s){for(var l=o;l=a;l--)if(i(this.values[l],s+l)===!1)return!1},t.prototype.leafAppend=function(i){if(this.length+i.length<=Bx)return new t(this.values.concat(i.flatten()))},t.prototype.leafPrepend=function(i){if(this.length+i.length<=Bx)return new t(i.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(_i);_i.empty=new cJ([]);var Awe=function(e){function t(n,r){e.call(this),this.left=n,this.right=r,this.length=n.length+r.length,this.depth=Math.max(n.depth,r.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(r){return rs&&this.right.forEachInner(r,Math.max(i-s,0),Math.min(this.length,o)-s,a+s)===!1)return!1},t.prototype.forEachInvertedInner=function(r,i,o,a){var s=this.left.length;if(i>s&&this.right.forEachInvertedInner(r,i-s,Math.max(o,s)-s,a+s)===!1||o=o?this.right.slice(r-o,i-o):this.left.slice(r,o).append(this.right.slice(0,i-o))},t.prototype.leafAppend=function(r){var i=this.right.leafAppend(r);if(i)return new t(this.left,i)},t.prototype.leafPrepend=function(r){var i=this.left.leafPrepend(r);if(i)return new t(i,this.right)},t.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new t(this.left,new t(this.right,r)):new t(this,r)},t}(_i);const Rwe=500;class sl{constructor(t,n){this.items=t,this.eventCount=n}popEvent(t,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let i,o;n&&(i=this.remapping(r,this.items.length),o=i.maps.length);let a=t.tr,s,l,u=[],c=[];return this.items.forEach((f,d)=>{if(!f.step){i||(i=this.remapping(r,d+1),o=i.maps.length),o--,c.push(f);return}if(i){c.push(new Dl(f.map));let h=f.step.map(i.slice(o)),p;h&&a.maybeStep(h).doc&&(p=a.mapping.maps[a.mapping.maps.length-1],u.push(new Dl(p,void 0,void 0,u.length+c.length))),o--,p&&i.appendMap(p,o)}else a.maybeStep(f.step);if(f.selection)return s=i?f.selection.map(i.slice(o)):f.selection,l=new sl(this.items.slice(0,r).append(c.reverse().concat(u)),this.eventCount-1),!1},this.items.length,0),{remaining:l,transform:a,selection:s}}addTransform(t,n,r,i){let o=[],a=this.eventCount,s=this.items,l=!i&&s.length?s.get(s.length-1):null;for(let c=0;cxwe&&(s=bwe(s,u),a-=u),new sl(s.append(o),a)}remapping(t,n){let r=new $p;return this.items.forEach((i,o)=>{let a=i.mirrorOffset!=null&&o-i.mirrorOffset>=t?r.maps.length-i.mirrorOffset:void 0;r.appendMap(i.map,a)},t,n),r}addMaps(t){return this.eventCount==0?this:new sl(this.items.append(t.map(n=>new Dl(n))),this.eventCount)}rebased(t,n){if(!this.eventCount)return this;let r=[],i=Math.max(0,this.items.length-n),o=t.mapping,a=t.steps.length,s=this.eventCount;this.items.forEach(d=>{d.selection&&s--},i);let l=n;this.items.forEach(d=>{let h=o.getMirror(--l);if(h==null)return;a=Math.min(a,h);let p=o.maps[h];if(d.step){let v=t.steps[h].invert(t.docs[h]),g=d.selection&&d.selection.map(o.slice(l+1,h));g&&s++,r.push(new Dl(p,v,g))}else r.push(new Dl(p))},i);let u=[];for(let d=n;dRwe&&(f=f.compress(this.items.length-r.length)),f}emptyItemCount(){let t=0;return this.items.forEach(n=>{n.step||t++}),t}compress(t=this.items.length){let n=this.remapping(0,t),r=n.maps.length,i=[],o=0;return this.items.forEach((a,s)=>{if(s>=t)i.push(a),a.selection&&o++;else if(a.step){let l=a.step.map(n.slice(r)),u=l&&l.getMap();if(r--,u&&n.appendMap(u,r),l){let c=a.selection&&a.selection.map(n.slice(r));c&&o++;let f=new Dl(u.invert(),l,c),d,h=i.length-1;(d=i.length&&i[h].merge(f))?i[h]=d:i.push(f)}}else a.map&&r--},this.items.length,0),new sl(_i.from(i.reverse()),o)}}sl.empty=new sl(_i.empty,0);function bwe(e,t){let n;return e.forEach((r,i)=>{if(r.selection&&t--==0)return n=i,!1}),e.slice(n)}class Dl{constructor(t,n,r,i){this.map=t,this.step=n,this.selection=r,this.mirrorOffset=i}merge(t){if(this.step&&t.step&&!t.selection){let n=t.step.merge(this.step);if(n)return new Dl(n.getMap().invert(),n,this.selection)}}}class pf{constructor(t,n,r,i,o){this.done=t,this.undone=n,this.prevRanges=r,this.prevTime=i,this.prevComposition=o}}const xwe=20;function Swe(e,t,n,r){let i=n.getMeta(Xf),o;if(i)return i.historyState;n.getMeta(Mwe)&&(e=new pf(e.done,e.undone,null,0,-1));let a=n.getMeta("appendedTransaction");if(n.steps.length==0)return e;if(a&&a.getMeta(Xf))return a.getMeta(Xf).redo?new pf(e.done.addTransform(n,void 0,r,Ab(t)),e.undone,yW(n.mapping.maps[n.steps.length-1]),e.prevTime,e.prevComposition):new pf(e.done,e.undone.addTransform(n,void 0,r,Ab(t)),null,e.prevTime,e.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(a&&a.getMeta("addToHistory")===!1)){let s=n.getMeta("composition"),l=e.prevTime==0||!a&&e.prevComposition!=s&&(e.prevTime<(n.time||0)-r.newGroupDelay||!wwe(n,e.prevRanges)),u=a?E5(e.prevRanges,n.mapping):yW(n.mapping.maps[n.steps.length-1]);return new pf(e.done.addTransform(n,l?t.selection.getBookmark():void 0,r,Ab(t)),sl.empty,u,n.time,s??e.prevComposition)}else return(o=n.getMeta("rebased"))?new pf(e.done.rebased(n,o),e.undone.rebased(n,o),E5(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new pf(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),E5(e.prevRanges,n.mapping),e.prevTime,e.prevComposition)}function wwe(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach((r,i)=>{for(let o=0;o=t[o]&&(n=!0)}),n}function yW(e){let t=[];return e.forEach((n,r,i,o)=>t.push(i,o)),t}function E5(e,t){if(!e)return null;let n=[];for(let r=0;r{let n=Xf.getState(e);return!n||n.done.eventCount==0?!1:(t&&fJ(n,e,t,!1),!0)},hJ=(e,t)=>{let n=Xf.getState(e);return!n||n.undone.eventCount==0?!1:(t&&fJ(n,e,t,!0),!0)};function Twe(e={}){return new Qv({view(t){return new _we(t,e)}})}class _we{constructor(t,n){var r;this.editorView=t,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(r=n.width)!==null&&r!==void 0?r:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(i=>{let o=a=>{this[i](a)};return t.dom.addEventListener(i,o),{name:i,handler:o}})}destroy(){this.handlers.forEach(({name:t,handler:n})=>this.editorView.dom.removeEventListener(t,n))}update(t,n){this.cursorPos!=null&&n.doc!=t.state.doc&&(this.cursorPos>t.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(t){t!=this.cursorPos&&(this.cursorPos=t,t==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let t=this.editorView.state.doc.resolve(this.cursorPos),n=!t.parent.inlineContent,r;if(n){let s=t.nodeBefore,l=t.nodeAfter;if(s||l){let u=this.editorView.nodeDOM(this.cursorPos-(s?s.nodeSize:0));if(u){let c=u.getBoundingClientRect(),f=s?c.bottom:c.top;s&&l&&(f=(f+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),r={left:c.left,right:c.right,top:f-this.width/2,bottom:f+this.width/2}}}}if(!r){let s=this.editorView.coordsAtPos(this.cursorPos);r={left:s.left-this.width/2,right:s.left+this.width/2,top:s.top,bottom:s.bottom}}let i=this.editorView.dom.offsetParent;this.element||(this.element=i.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let o,a;if(!i||i==document.body&&getComputedStyle(i).position=="static")o=-pageXOffset,a=-pageYOffset;else{let s=i.getBoundingClientRect();o=s.left-i.scrollLeft,a=s.top-i.scrollTop}this.element.style.left=r.left-o+"px",this.element.style.top=r.top-a+"px",this.element.style.width=r.right-r.left+"px",this.element.style.height=r.bottom-r.top+"px"}scheduleRemoval(t){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),t)}dragover(t){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:t.clientX,top:t.clientY}),r=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),i=r&&r.type.spec.disableDropCursor,o=typeof i=="function"?i(this.editorView,n,t):i;if(n&&!o){let a=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let s=sQ(this.editorView.state.doc,a,this.editorView.dragging.slice);s!=null&&(a=s)}this.setCursor(a),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(t){(t.target==this.editorView.dom||!this.editorView.dom.contains(t.relatedTarget))&&this.setCursor(null)}}class zr extends Fn{constructor(t){super(t,t)}map(t,n){let r=t.resolve(n.map(this.head));return zr.valid(r)?new zr(r):Fn.near(r)}content(){return Mt.empty}eq(t){return t instanceof zr&&t.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(t,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new zr(t.resolve(n.pos))}getBookmark(){return new Vk(this.anchor)}static valid(t){let n=t.parent;if(n.isTextblock||!Owe(t)||!kwe(t))return!1;let r=n.type.spec.allowGapCursor;if(r!=null)return r;let i=n.contentMatchAt(t.index()).defaultType;return i&&i.isTextblock}static findGapCursorFrom(t,n,r=!1){e:for(;;){if(!r&&zr.valid(t))return t;let i=t.pos,o=null;for(let a=t.depth;;a--){let s=t.node(a);if(n>0?t.indexAfter(a)0){o=s.child(n>0?t.indexAfter(a):t.index(a)-1);break}else if(a==0)return null;i+=n;let l=t.doc.resolve(i);if(zr.valid(l))return l}for(;;){let a=n>0?o.firstChild:o.lastChild;if(!a){if(o.isAtom&&!o.isText&&!Jt.isSelectable(o)){t=t.doc.resolve(i+o.nodeSize*n),r=!1;continue e}break}o=a,i+=n;let s=t.doc.resolve(i);if(zr.valid(s))return s}return null}}}zr.prototype.visible=!1;zr.findFrom=zr.findGapCursorFrom;Fn.jsonID("gapcursor",zr);class Vk{constructor(t){this.pos=t}map(t){return new Vk(t.map(this.pos))}resolve(t){let n=t.resolve(this.pos);return zr.valid(n)?new zr(n):Fn.near(n)}}function Owe(e){for(let t=e.depth;t>=0;t--){let n=e.index(t),r=e.node(t);if(n==0){if(r.type.spec.isolating)return!0;continue}for(let i=r.child(n-1);;i=i.lastChild){if(i.childCount==0&&!i.inlineContent||i.isAtom||i.type.spec.isolating)return!0;if(i.inlineContent)return!1}}return!0}function kwe(e){for(let t=e.depth;t>=0;t--){let n=e.indexAfter(t),r=e.node(t);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let i=r.child(n);;i=i.firstChild){if(i.childCount==0&&!i.inlineContent||i.isAtom||i.type.spec.isolating)return!0;if(i.inlineContent)return!1}}return!0}function Pwe(){return new Qv({props:{decorations:Fwe,createSelectionBetween(e,t,n){return t.pos==n.pos&&zr.valid(n)?new zr(n):null},handleClick:Iwe,handleKeyDown:Cwe,handleDOMEvents:{beforeinput:Nwe}}})}const Cwe=uJ({ArrowLeft:HA("horiz",-1),ArrowRight:HA("horiz",1),ArrowUp:HA("vert",-1),ArrowDown:HA("vert",1)});function HA(e,t){const n=e=="vert"?t>0?"down":"up":t>0?"right":"left";return function(r,i,o){let a=r.selection,s=t>0?a.$to:a.$from,l=a.empty;if(a instanceof nr){if(!o.endOfTextblock(n)||s.depth==0)return!1;l=!1,s=r.doc.resolve(t>0?s.after():s.before())}let u=zr.findGapCursorFrom(s,t,l);return u?(i&&i(r.tr.setSelection(new zr(u))),!0):!1}}function Iwe(e,t,n){if(!e||!e.editable)return!1;let r=e.state.doc.resolve(t);if(!zr.valid(r))return!1;let i=e.posAtCoords({left:n.clientX,top:n.clientY});return i&&i.inside>-1&&Jt.isSelectable(e.state.doc.nodeAt(i.inside))?!1:(e.dispatch(e.state.tr.setSelection(new zr(r))),!0)}function Nwe(e,t){if(t.inputType!="insertCompositionText"||!(e.state.selection instanceof zr))return!1;let{$from:n}=e.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!r)return!1;let i=ft.empty;for(let a=r.length-1;a>=0;a--)i=ft.from(r[a].createAndFill(null,i));let o=e.state.tr.replace(n.pos,n.pos,new Mt(i,0,0));return o.setSelection(nr.near(o.doc.resolve(n.pos+1))),e.dispatch(o),!1}function Fwe(e){if(!(e.selection instanceof zr))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",li.create(e.doc,[Va.widget(e.selection.head,t,{key:"gapcursor"})])}const Ewe=["li",0],Xwe={parseDOM:[{tag:"li"}],toDOM(){return Ewe},defining:!0};function Wwe(e,t=null){return function(n,r){let{$from:i,$to:o}=n.selection,a=i.blockRange(o),s=!1,l=a;if(!a)return!1;if(a.depth>=2&&i.node(a.depth-1).type.compatibleContent(e)&&a.startIndex==0){if(i.index(a.depth-1)==0)return!1;let c=n.doc.resolve(a.start-2);l=new ix(c,c,a.depth),a.endIndex=0;c--)o=ft.from(n[c].type.create(n[c].attrs,o));e.step(new zi(t.start-(r?2:0),t.end,t.start,t.end,new Mt(o,0,0),n.length,!0));let a=0;for(let c=0;c=i.depth-3;m--)f=ft.from(i.node(m).copy(f));let h=i.indexAfter(-1){if(g>-1)return!1;m.isTextblock&&m.content.size==0&&(g=y+1)}),g>-1&&v.setSelection(Fn.near(v.doc.resolve(g))),r(v.scrollIntoView())}return!0}let l=o.pos==i.end()?s.contentMatchAt(0).defaultType:null,u=n.tr.delete(i.pos,o.pos),c=l?[null,{type:l}]:void 0;return jp(u.doc,i.pos,2,c)?(r&&r(u.split(i.pos,2,c).scrollIntoView()),!0):!1}}function pJ(e){return function(t,n){let{$from:r,$to:i}=t.selection,o=r.blockRange(i,a=>a.childCount>0&&a.firstChild.type==e);return o?n?r.node(o.depth-1).type==e?Uwe(t,n,e,o):Bwe(t,n,o):!0:!1}}function Uwe(e,t,n,r){let i=e.tr,o=r.end,a=r.$to.end(r.depth);ov;p--)h-=i.child(p).nodeSize,r.delete(h-1,h+1);let o=r.doc.resolve(n.start),a=o.nodeAfter;if(r.mapping.map(n.end)!=n.start+o.nodeAfter.nodeSize)return!1;let s=n.startIndex==0,l=n.endIndex==i.childCount,u=o.node(-1),c=o.index(-1);if(!u.canReplace(c+(s?0:1),c+1,a.content.append(l?ft.empty:ft.from(i))))return!1;let f=o.pos,d=f+a.nodeSize;return r.step(new zi(f-(s?1:0),d+(l?1:0),f+1,d-1,new Mt((s?ft.empty:ft.from(i.copy(ft.empty))).append(l?ft.empty:ft.from(i.copy(ft.empty))),s?0:1,l?0:1),s?0:1)),t(r.scrollIntoView()),!0}function RW(e){return function(t,n){let{$from:r,$to:i}=t.selection,o=r.blockRange(i,u=>u.childCount>0&&u.firstChild.type==e);if(!o)return!1;let a=o.startIndex;if(a==0)return!1;let s=o.parent,l=s.child(a-1);if(l.type!=e)return!1;if(n){let u=l.lastChild&&l.lastChild.type==s.type,c=ft.from(u?e.create():null),f=new Mt(ft.from(e.create(null,ft.from(s.type.create(null,c)))),u?3:1,0),d=o.start,h=o.end;n(t.tr.step(new zi(d-(u?3:1),h,d,h,f,1,!0)).scrollIntoView())}return!0}}class bc{constructor(t,n,r={}){this.match=t,this.match=t,this.handler=typeof n=="string"?Ywe(n):n,this.undoable=r.undoable!==!1,this.inCode=r.inCode||!1}}function Ywe(e){return function(t,n,r,i){let o=e;if(n[1]){let a=n[0].lastIndexOf(n[1]);o+=n[0].slice(a+n[1].length),r+=a;let s=r-i;s>0&&(o=n[0].slice(a-s,a)+o,r=i)}return t.tr.insertText(o,r,i)}}const Zwe=500;function Qwe({rules:e}){let t=new Qv({state:{init(){return null},apply(n,r){let i=n.getMeta(this);return i||(n.selectionSet||n.docChanged?null:r)}},props:{handleTextInput(n,r,i,o){return bW(n,r,i,o,e,t)},handleDOMEvents:{compositionend:n=>{setTimeout(()=>{let{$cursor:r}=n.state.selection;r&&bW(n,r.pos,r.pos,"",e,t)})}}},isInputRules:!0});return t}function bW(e,t,n,r,i,o){if(e.composing)return!1;let a=e.state,s=a.doc.resolve(t),l=s.parent.textBetween(Math.max(0,s.parentOffset-Zwe),s.parentOffset,null,"")+r;for(let u=0;u{let n=e.plugins;for(let r=0;r=0;l--)a.step(s.steps[l].invert(s.docs[l]));if(o.text){let l=a.doc.resolve(o.from).marks();a.replaceWith(o.from,o.to,e.schema.text(o.text,l))}else a.delete(o.from,o.to);t(a)}return!0}}return!1},Kwe=new bc(/--$/,"—"),Gwe=new bc(/\.\.\.$/,"…"),zwe=new bc(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/,"“"),Jwe=new bc(/"$/,"”"),$we=new bc(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/,"‘"),jwe=new bc(/'$/,"’"),qwe=[zwe,Jwe,$we,jwe];function Dk(e,t,n=null,r){return new bc(e,(i,o,a,s)=>{let l=n instanceof Function?n(o):n,u=i.tr.delete(a,s),c=u.doc.resolve(a),f=c.blockRange(),d=f&&OO(f,t,l);if(!d)return null;u.wrap(f,d);let h=u.doc.resolve(a-1).nodeBefore;return h&&h.type==t&&Zv(u.doc,a-1)&&(!r||r(o,h))&&u.join(a-1),u})}const eMe=e=>{const t={},n=(r,i)=>t[r]=i;return n("Alt-ArrowUp",t0e),n("Alt-ArrowDown",n0e),n("Mod-z",dJ),n("Mod-y",hJ),n("Backspace",Hwe),n("Escape",s0e),n("Mod-b",si(e.marks.strong)),n("Mod-i",si(e.marks.em)),n("Mod-u",si(e.marks.underline)),n("Mod-d",si(e.marks.strikethrough)),n("Mod-e",si(e.marks.code)),n("Mod-;",si(e.marks.superscript)),n("Mod-'",si(e.marks.subscript)),n("Enter",YS(Dwe(e.nodes.list_item),yQ,AQ,RQ,a0e)),n("Mod-[",pJ(e.nodes.list_item)),n("Mod-]",RW(e.nodes.list_item)),n("Tab",RW(e.nodes.list_item)),t},tMe=e=>Dk(/^\s*>\s$/,e),nMe=e=>Dk(/^(\d+)\.\s$/,e,t=>({order:+t[1]}),(t,n)=>n.childCount+n.attrs.order===+t[1]),rMe=e=>Dk(/^\s*([-+*])\s$/,e),iMe=()=>{const e=/(?:^|\s)((?:`)((?:[^`]+))(?:`))$/;return new bc(e,(t,n,r,i)=>{const{schema:o}=t,a=t.tr.insertText(`${n[2]} `,r,i),s=o.marks.code.create();return a.addMark(r,r+n[2].length,s)})},oMe=()=>{const e=/(?:https?:\/\/)?[\w-]+(?:\.[\w-]+)+\.?(?:\d+)?(?:\/\S*)?$/;return new bc(e,(t,n,r,i)=>{const{schema:o}=t,a=t.tr.insertText(n[0],r,i),s=o.marks.link.create({href:n[0],title:n[0]});return a.addMark(r,r+n[0].length,s)})},aMe=e=>{const t=[...qwe,Gwe,Kwe];return t.push(tMe(e.nodes.blockquote)),t.push(nMe(e.nodes.ordered_list)),t.push(rMe(e.nodes.bullet_list)),t.push(iMe()),t.push(oMe()),Qwe({rules:t})},sMe=e=>e.type.name==="paragraph"&&e.nodeSize===2,lMe=e=>new Qv({props:{decorations(t){const{$from:n}=t.selection;if(sMe(n.parent)){const r=Va.node(n.before(),n.after(),{"data-placeholder":e});return li.create(t.doc,[r])}}}}),uMe=(e,t)=>{const n=t==null?void 0:t.placeholder,r=[aMe(e),mW(eMe(e)),mW(p0e),Twe(),Pwe(),Lwe()];return n&&r.push(lMe(n)),r},cMe=["p",0],fMe=["blockquote",0],dMe=["hr"],hMe=["pre",["code",0]],pMe=["br"],vJ={doc:{content:"block+"},paragraph:{content:"inline*",group:"block",parseDOM:[{tag:"p"}],toDOM(){return cMe}},blockquote:{content:"block+",group:"block",defining:!0,parseDOM:[{tag:"blockquote"}],toDOM(){return fMe}},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM(){return dMe}},heading:{attrs:{level:{default:1,validate:"number"}},content:"inline*",group:"block",defining:!0,parseDOM:[{tag:"h1",attrs:{level:1}},{tag:"h2",attrs:{level:2}},{tag:"h3",attrs:{level:3}},{tag:"h4",attrs:{level:4}},{tag:"h5",attrs:{level:5}},{tag:"h6",attrs:{level:6}}],toDOM(e){return["h"+e.attrs.level,0]}},code_block:{content:"text*",marks:"",group:"block",code:!0,defining:!0,parseDOM:[{tag:"pre",preserveWhitespace:"full"}],toDOM(){return hMe}},text:{group:"inline"},image:{inline:!0,attrs:{src:{validate:"string"},alt:{default:null,validate:"string|null"},title:{default:null,validate:"string|null"}},group:"inline",draggable:!0,parseDOM:[{tag:"img[src]",getAttrs(e){return{src:e.getAttribute("src"),title:e.getAttribute("title"),alt:e.getAttribute("alt")}}}],toDOM(e){let{src:t,alt:n,title:r}=e.attrs;return["img",{src:t,alt:n,title:r}]}},hard_break:{inline:!0,group:"inline",selectable:!1,parseDOM:[{tag:"br"}],toDOM(){return pMe}}},vMe=["em",0],gMe=["strong",0],mMe=["code",0],gJ={link:{attrs:{href:{validate:"string"},title:{default:null,validate:"string|null"}},inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs(e){return{href:e.getAttribute("href"),title:e.getAttribute("title")}}}],toDOM(e){let{href:t,title:n}=e.attrs;return["a",{href:t,title:n},0]}},em:{parseDOM:[{tag:"i"},{tag:"em"},{style:"font-style=italic"},{style:"font-style=normal",clearMark:e=>e.type.name=="em"}],toDOM(){return vMe}},strong:{parseDOM:[{tag:"strong"},{tag:"b",getAttrs:e=>e.style.fontWeight!="normal"&&null},{style:"font-weight=400",clearMark:e=>e.type.name=="strong"},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}],toDOM(){return gMe}},code:{parseDOM:[{tag:"code"}],toDOM(){return mMe}}};new $Z({nodes:vJ,marks:gJ});const yMe={attrs:{order:{default:1},listStyleType:{default:""},fontsize:{default:""},color:{default:""}},content:"list_item+",group:"block",parseDOM:[{tag:"ol",getAttrs:e=>{const n={order:+((e.hasAttribute("start")?e.getAttribute("start"):1)||1)},{listStyleType:r,fontSize:i,color:o}=e.style;return r&&(n.listStyleType=r),i&&(n.fontsize=i),o&&(n.color=o),n}}],toDOM:e=>{const{order:t,listStyleType:n,fontsize:r,color:i}=e.attrs;let o="";n&&(o+=`list-style-type: ${n};`),r&&(o+=`font-size: ${r};`),i&&(o+=`color: ${i};`);const a={style:o};return t!==1&&(a.start=t),["ol",a,0]}},AMe={attrs:{listStyleType:{default:""},fontsize:{default:""},color:{default:""}},content:"list_item+",group:"block",parseDOM:[{tag:"ul",getAttrs:e=>{const t={},{listStyleType:n,fontSize:r,color:i}=e.style;return n&&(t.listStyleType=n),r&&(t.fontsize=r),i&&(t.color=i),t}}],toDOM:e=>{const{listStyleType:t,fontsize:n,color:r}=e.attrs;let i="";return t&&(i+=`list-style-type: ${t};`),n&&(i+=`font-size: ${n};`),r&&(i+=`color: ${r};`),["ul",{style:i},0]}},RMe={...Xwe,content:"paragraph block*",group:"block"},bMe={attrs:{align:{default:""},indent:{default:0},textIndent:{default:0}},content:"inline*",group:"block",parseDOM:[{tag:"p",getAttrs:e=>{const{textAlign:t,textIndent:n}=e.style;let r=e.getAttribute("align")||t||"";r=/(left|right|center|justify)/.test(r)?r:"";let i=0;n&&(/em/.test(n)?i=parseInt(n):/px/.test(n)&&(i=Math.floor(parseInt(n)/16),i||(i=1)));const o=+(e.getAttribute("data-indent")||0);return{align:r,indent:o,textIndent:i}}},{tag:"img",ignore:!0},{tag:"pre",skip:!0}],toDOM:e=>{const{align:t,indent:n,textIndent:r}=e.attrs;let i="";t&&t!=="left"&&(i+=`text-align: ${t};`),r&&(i+=`text-indent: ${r}em;`);const o={style:i};return n&&(o["data-indent"]=n),["p",o,0]}},{doc:xMe,blockquote:SMe,text:wMe}=vJ,MMe={doc:xMe,paragraph:bMe,blockquote:SMe,text:wMe,ordered_list:yMe,bullet_list:AMe,list_item:RMe},LMe={excludes:"subscript",parseDOM:[{tag:"sub"},{style:"vertical-align",getAttrs:e=>e==="sub"&&null}],toDOM:()=>["sub",0]},TMe={excludes:"superscript",parseDOM:[{tag:"sup"},{style:"vertical-align",getAttrs:e=>e==="super"&&null}],toDOM:()=>["sup",0]},_Me={parseDOM:[{tag:"strike"},{style:"text-decoration",getAttrs:e=>e==="line-through"&&null},{style:"text-decoration-line",getAttrs:e=>e==="line-through"&&null}],toDOM:()=>["span",{style:"text-decoration-line: line-through;"},0]},OMe={parseDOM:[{tag:"u"},{style:"text-decoration",getAttrs:e=>e==="underline"&&null},{style:"text-decoration-line",getAttrs:e=>e==="underline"&&null}],toDOM:()=>["span",{style:"text-decoration: underline;"},0]},kMe={attrs:{color:{}},inline:!0,group:"inline",parseDOM:[{style:"color",getAttrs:e=>e?{color:e}:{}}],toDOM:e=>{const{color:t}=e.attrs;let n="";return t&&(n+=`color: ${t};`),["span",{style:n},0]}},PMe={attrs:{backcolor:{}},inline:!0,group:"inline",parseDOM:[{style:"background-color",getAttrs:e=>e?{backcolor:e}:{}}],toDOM:e=>{const{backcolor:t}=e.attrs;let n="";return t&&(n+=`background-color: ${t};`),["span",{style:n},0]}},CMe={attrs:{fontsize:{}},inline:!0,group:"inline",parseDOM:[{style:"font-size",getAttrs:e=>e?{fontsize:e}:{}}],toDOM:e=>{const{fontsize:t}=e.attrs;let n="";return t&&(n+=`font-size: ${t};`),["span",{style:n},0]}},IMe={attrs:{fontname:{}},inline:!0,group:"inline",parseDOM:[{style:"font-family",getAttrs:e=>({fontname:e&&typeof e=="string"?e.replace(/[\"\']/g,""):""})}],toDOM:e=>{const{fontname:t}=e.attrs;let n="";return t&&(n+=`font-family: ${t};`),["span",{style:n},0]}},NMe={attrs:{href:{},title:{default:null},target:{default:"_blank"}},inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs:e=>{const t=e.getAttribute("href"),n=e.getAttribute("title");return{href:t,title:n}}}],toDOM:e=>["a",e.attrs,0]},FMe={attrs:{index:{default:null}},parseDOM:[{tag:"mark",getAttrs:e=>({index:e.dataset.index})}],toDOM:e=>["mark",{"data-index":e.attrs.index},0]},{em:EMe,strong:XMe,code:WMe}=gJ,VMe={em:EMe,strong:XMe,fontsize:CMe,fontname:IMe,code:WMe,forecolor:kMe,backcolor:PMe,subscript:LMe,superscript:TMe,strikethrough:_Me,underline:OMe,link:NMe,mark:FMe},DMe=MMe,UMe=VMe,mJ=new $Z({nodes:DMe,marks:UMe}),Uk=e=>{const t=`
    ${e}
    `,r=new window.DOMParser().parseFromString(t,"text/html").body.firstElementChild;return TO.fromSchema(mJ).parse(r)},yJ=(e,t,n,r)=>new cwe(e,{state:Tp.create({doc:Uk(t),plugins:uMe(mJ,r)}),...n});function BMe(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(i){i(n)}),(r=e.get("*"))&&r.slice().map(function(i){i(t,n)})}}}var Ti=(e=>(e.RICH_TEXT_COMMAND="RICH_TEXT_COMMAND",e.SYNC_RICH_TEXT_ATTRS_TO_STORE="SYNC_RICH_TEXT_ATTRS_TO_STORE",e.OPEN_CHART_DATA_EDITOR="OPEN_CHART_DATA_EDITOR",e.OPEN_LATEX_EDITOR="OPEN_LATEX_EDITOR",e))(Ti||{});const Ki=BMe(),YMe=(e,t,n)=>{const{selection:r,doc:i}=e;if(!r||!i)return e;const{from:o,to:a}=r,{nodes:s}=t,l=s.blockquote,u=s.list_item,c=s.paragraph,f=[];n=n||"";const d=new Set([l,u,c]);return i.nodesBetween(o,a,(h,p)=>{const v=h.type;return(h.attrs.align||"")!==n&&d.has(v)&&f.push({node:h,pos:p,nodeType:v}),!0}),f.length&&f.forEach(h=>{const{node:p,pos:v,nodeType:g}=h;let{attrs:m}=p;n?m={...m,align:n}:m={...m,align:null},e=e.setNodeMarkup(v,g,m,p.marks)}),e},ZMe=(e,t)=>{const{state:n}=e,{schema:r,selection:i}=n,o=YMe(n.tr.setSelection(i),r,t);e.dispatch(o)};function QMe(e,t,n,r){if(!e.doc)return e;const i=e.doc.nodeAt(t);if(!i)return e;const o=0,a=8;let s=(i.attrs[r]||0)+n;if(sa&&(s=a),s===i.attrs[r])return e;const l={...i.attrs,[r]:s};return e.setNodeMarkup(t,i.type,l,i.marks)}const AJ=(e,t,n,r)=>{const{selection:i,doc:o}=e;if(!i||!o||!(i instanceof nr||i instanceof ia))return e;const{from:a,to:s}=i;return o.nodesBetween(a,s,(l,u)=>{const c=l.type;return c.name==="paragraph"||c.name==="blockquote"?(e=QMe(e,u,n,r),!1):!lx(l,t)}),e},HMe=(e,t)=>{const{state:n}=e,{schema:r,selection:i}=n,o=AJ(n.tr.setSelection(i),r,t,"indent");return o.docChanged?(e.dispatch(o),!0):!1},KMe=(e,t)=>{const{state:n}=e,{schema:r,selection:i}=n,o=AJ(n.tr.setSelection(i),r,t,"textIndent");return o.docChanged?(e.dispatch(o),!0):!1},Yx=(e,t,n,r={})=>(i,o)=>{const{schema:a,selection:s}=i,{$from:l,$to:u}=s,c=l.blockRange(u);if(!c)return!1;const f=LQ(h=>lx(h,a))(s);if(c.depth>=1&&f&&c.depth-f.depth<=1){if(f.node.type===e&&!n)return pJ(t)(i,o);if(lx(f.node,a)&&e.validContent(f.node.content)){const{tr:h}=i,p={...f.node.attrs,...r};return n&&(p.listStyleType=n),h.setNodeMarkup(f.pos,e,p),o&&o(h),!1}}const d={...r};return n&&(d.listStyleType=n),Wwe(e,d)(i,o)},F1=(e,t)=>{const{state:n}=e,{schema:r,selection:i}=n,o=n.tr.setSelection(i),{doc:a}=o;if(!a)return o;const{from:s,to:l}=i;a.nodesBetween(s,l,(u,c)=>{if(lx(u,r)&&s-3<=c&&l+3>=c+u.nodeSize){const f=Array.isArray(t)?t:[t];for(const d of f)o.setNodeAttribute(c,d.key,d.value)}return!1}),e.dispatch(o)},GMe=We({__name:"ProsemirrorEditor",props:{elementId:{},defaultColor:{},defaultFontName:{},value:{},editable:{type:Boolean,default:!1},autoFocus:{type:Boolean,default:!1}},emits:["update","focus","blur","mousedown"],setup(e,{expose:t,emit:n}){const r=e,i=n,o=pt(),{handleElementId:a,textFormatPainter:s,richTextAttrs:l,activeElementIdList:u}=Ve(o),{ctrlOrShiftKeyActive:c}=Ve(Ns()),f=he();let d;const h=Qn.debounce(function(L=!1){r.value.replace(/ style=\"\"/g,"")!==d.dom.innerHTML.replace(/ style=\"\"/g,"")&&i("update",{value:d.dom.innerHTML,ignore:L})},300,{trailing:!0}),p=()=>{(!c.value||u.value.length<=1)&&o.setDisableHotkeysState(!0),i("focus")},v=()=>{o.setDisableHotkeysState(!1),i("blur")},g=Qn.debounce(function(){const L=z8(d,{color:r.defaultColor,fontname:r.defaultFontName});o.setRichtextAttrs(L)},30,{trailing:!0}),m=(L,M)=>{const{ctrlKey:w,shiftKey:_,metaKey:C}=M,O=w||_||C,N=M.key.toUpperCase(),P=O&&(N===yt.Z||N===yt.Y);h(P),g()},y=Se(()=>r.value);Tt(y,()=>{if(!d||d.hasFocus())return;const{doc:L,tr:M}=d.state;d.dispatch(M.replaceRangeWith(0,L.content.size,Uk(y.value)))}),Tt(()=>r.editable,()=>{d.setProps({editable:()=>r.editable})}),t({focus:()=>d.focus()});const A=({target:L,action:M})=>{if(!L&&a.value!==r.elementId||L&&L!==r.elementId)return;const w="command"in M?[M]:M;for(const _ of w)if(_.command==="fontname"&&_.value!==void 0){const C=d.state.schema.marks.fontname.create({fontname:_.value});pi(d),Vl(d,C),_.value&&!document.fonts.check(`16px ${_.value}`)&&pn.warning("字体需要等待加载下载后生效,请稍等")}else if(_.command==="fontsize"&&_.value){const C=d.state.schema.marks.fontsize.create({fontsize:_.value});pi(d),Vl(d,C),F1(d,{key:"fontsize",value:_.value})}else if(_.command==="fontsize-add"){const C=_.value?+_.value:2;pi(d);const O=$7(d)+C+"px",N=d.state.schema.marks.fontsize.create({fontsize:O});Vl(d,N),F1(d,{key:"fontsize",value:O})}else if(_.command==="fontsize-reduce"){const C=_.value?+_.value:2;pi(d);let O=$7(d)-C;O<12&&(O=12);const N=d.state.schema.marks.fontsize.create({fontsize:O+"px"});Vl(d,N),F1(d,{key:"fontsize",value:O+"px"})}else if(_.command==="color"&&_.value){const C=d.state.schema.marks.forecolor.create({color:_.value});pi(d),Vl(d,C),F1(d,{key:"color",value:_.value})}else if(_.command==="backcolor"&&_.value){const C=d.state.schema.marks.backcolor.create({backcolor:_.value});pi(d),Vl(d,C)}else if(_.command==="bold")pi(d),si(d.state.schema.marks.strong)(d.state,d.dispatch);else if(_.command==="em")pi(d),si(d.state.schema.marks.em)(d.state,d.dispatch);else if(_.command==="underline")pi(d),si(d.state.schema.marks.underline)(d.state,d.dispatch);else if(_.command==="strikethrough")pi(d),si(d.state.schema.marks.strikethrough)(d.state,d.dispatch);else if(_.command==="subscript")si(d.state.schema.marks.subscript)(d.state,d.dispatch);else if(_.command==="superscript")si(d.state.schema.marks.superscript)(d.state,d.dispatch);else if(_.command==="blockquote")jR("blockquote",d.state)?r0e(d.state,d.dispatch):f0e(d.state.schema.nodes.blockquote)(d.state,d.dispatch);else if(_.command==="code")si(d.state.schema.marks.code)(d.state,d.dispatch);else if(_.command==="align"&&_.value)ZMe(d,_.value);else if(_.command==="indent"&&_.value)HMe(d,+_.value);else if(_.command==="textIndent"&&_.value)KMe(d,+_.value);else if(_.command==="bulletList"){const C=_.value||"",{bullet_list:O,list_item:N}=d.state.schema.nodes,P={color:l.value.color,fontsize:l.value.fontsize};Yx(O,N,C,P)(d.state,d.dispatch)}else if(_.command==="orderedList"){const C=_.value||"",{ordered_list:O,list_item:N}=d.state.schema.nodes,P={color:l.value.color,fontsize:l.value.fontsize};Yx(O,N,C,P)(d.state,d.dispatch)}else if(_.command==="clear"){pi(d);const{$from:C,$to:O}=d.state.selection;d.dispatch(d.state.tr.removeMark(C.pos,O.pos)),F1(d,[{key:"fontsize",value:""},{key:"color",value:""}])}else if(_.command==="link"){const C=d.state.schema.marks.link,{from:O,to:N}=d.state.selection,P=v0e(d.state.doc,O,N,C);if(P)if(_.value){const F=d.state.schema.marks.link.create({href:_.value,title:_.value});Vl(d,F,{from:P.from.pos,to:P.to.pos+1})}else d.dispatch(d.state.tr.removeMark(P.from.pos,P.to.pos+1,C));else if(A0e(d.state,C))if(_.value){const F=d.state.schema.marks.link.create({href:_.value,title:_.value});Vl(d,F)}else si(C)(d.state,d.dispatch);else _.value&&(pi(d),si(C,{href:_.value,title:_.value})(d.state,d.dispatch))}else _.command==="insert"&&_.value&&d.dispatch(d.state.tr.insertText(_.value));d.focus(),h(),g()},x=()=>{if(!s.value)return;const{keep:L,...M}=s.value,w=[{command:"clear"}];for(const _ of Object.keys(M)){const C=_,O=s.value[_];O===!0?w.push({command:C}):O&&w.push({command:C,value:O})}A({action:w}),L||o.setTextFormatPainter(null)};Vt(()=>{d=yJ(f.value,y.value,{handleDOMEvents:{focus:p,blur:v,keydown:m,click:g,mouseup:x},editable:()=>r.editable}),r.autoFocus&&d.focus()}),En(()=>{d&&d.destroy()});const S=()=>{a.value===r.elementId&&g()};return Ki.on(Ti.RICH_TEXT_COMMAND,A),Ki.on(Ti.SYNC_RICH_TEXT_ATTRS_TO_STORE,S),En(()=>{Ki.off(Ti.RICH_TEXT_COMMAND,A),Ki.off(Ti.SYNC_RICH_TEXT_ATTRS_TO_STORE,S)}),(L,M)=>(D(),q("div",{class:ze(["prosemirror-editor",{"format-painter":z(s)}]),ref_key:"editorViewRef",ref:f,onMousedown:M[0]||(M[0]=w=>i("mousedown",w))},null,34))}}),RJ=Be(GMe,[["__scopeId","data-v-32b03815"]]),bJ=e=>(rn("data-v-3b68a2d9"),e=e(),on(),e),zMe=bJ(()=>V("div",{class:"drag-handler top"},null,-1)),JMe=bJ(()=>V("div",{class:"drag-handler bottom"},null,-1)),$Me=We({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=pt(),r=st(),{handleElementId:i,isScaling:o}=Ve(n),{addHistorySnapshot:a}=nn(),s=he(),l=Se(()=>t.elementInfo.shadow),{shadowStyle:u}=hd(l),c=(y,R=!0)=>{t.elementInfo.lock||(y.stopPropagation(),t.selectElement(y,t.elementInfo,R))},f=he(-1),d=he(-1);Tt(o,()=>{i.value===t.elementInfo.id&&(o.value||(!t.elementInfo.vertical&&f.value!==-1&&(r.updateElement({id:t.elementInfo.id,props:{height:f.value}}),f.value=-1),t.elementInfo.vertical&&d.value!==-1&&(r.updateElement({id:t.elementInfo.id,props:{width:d.value}}),d.value=-1)))});const h=y=>{const R=y[0].contentRect;if(!s.value)return;const A=R.height+20,x=R.width+20;!t.elementInfo.vertical&&t.elementInfo.height!==A&&(o.value?f.value=A:r.updateElement({id:t.elementInfo.id,props:{height:A}})),t.elementInfo.vertical&&t.elementInfo.width!==x&&(o.value?d.value=x:r.updateElement({id:t.elementInfo.id,props:{width:x}}))},p=new ResizeObserver(h);Vt(()=>{s.value&&p.observe(s.value)}),En(()=>{s.value&&p.unobserve(s.value)});const v=(y,R=!1)=>{r.updateElement({id:t.elementInfo.id,props:{content:y}}),R||a()},g=Qn.debounce(function(){t.elementInfo.content.replace(/<[^>]+>/g,"")||r.deleteElement(t.elementInfo.id)},300,{trailing:!0}),m=Se(()=>i.value===t.elementInfo.id);return Tt(m,()=>{m.value||g()}),(y,R)=>{const A=_n("contextmenu");return D(),q("div",{class:ze(["editable-element-text",{lock:y.elementInfo.lock}]),style:Le({top:y.elementInfo.top+"px",left:y.elementInfo.left+"px",width:y.elementInfo.width+"px",height:y.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:Le({transform:`rotate(${y.elementInfo.rotate}deg)`})},[Ge((D(),q("div",{class:"element-content",ref_key:"elementRef",ref:s,style:Le({width:y.elementInfo.vertical?"auto":y.elementInfo.width+"px",height:y.elementInfo.vertical?y.elementInfo.height+"px":"auto",backgroundColor:y.elementInfo.fill,opacity:y.elementInfo.opacity,textShadow:z(u),lineHeight:y.elementInfo.lineHeight,letterSpacing:(y.elementInfo.wordSpace||0)+"px",color:y.elementInfo.defaultColor,fontFamily:y.elementInfo.defaultFontName,writingMode:y.elementInfo.vertical?"vertical-rl":"horizontal-tb"}),onMousedown:R[2]||(R[2]=x=>c(x)),onTouchstart:R[3]||(R[3]=x=>c(x))},[k(y3,{width:y.elementInfo.width,height:y.elementInfo.height,outline:y.elementInfo.outline},null,8,["width","height","outline"]),k(RJ,{class:"text",elementId:y.elementInfo.id,defaultColor:y.elementInfo.defaultColor,defaultFontName:y.elementInfo.defaultFontName,editable:!y.elementInfo.lock,value:y.elementInfo.content,style:Le({"--paragraphSpace":`${y.elementInfo.paragraphSpace===void 0?5:y.elementInfo.paragraphSpace}px`}),onUpdate:R[0]||(R[0]=({value:x,ignore:S})=>v(x,S)),onMousedown:R[1]||(R[1]=x=>c(x,!1))},null,8,["elementId","defaultColor","defaultFontName","editable","value","style"]),zMe,JMe],36)),[[A,y.contextmenus]])],4)],6)}}}),xJ=Be($Me,[["__scopeId","data-v-3b68a2d9"]]),jMe=["id","gradientTransform"],qMe=["offset","stop-color"],e5e=["id"],t5e=["offset","stop-color"],SJ=We({__name:"GradientDefs",props:{id:{},type:{},colors:{},rotate:{default:0}},setup(e){return(t,n)=>t.type==="linear"?(D(),q("linearGradient",{key:0,id:t.id,x1:"0%",y1:"0%",x2:"100%",y2:"0%",gradientTransform:`rotate(${t.rotate},0.5,0.5)`},[(D(!0),q(Ee,null,qe(t.colors,(r,i)=>(D(),q("stop",{key:i,offset:`${r.pos}%`,"stop-color":r.color},null,8,qMe))),128))],8,jMe)):(D(),q("radialGradient",{key:1,id:t.id},[(D(!0),q(Ee,null,qe(t.colors,(r,i)=>(D(),q("stop",{key:i,offset:`${r.pos}%`,"stop-color":r.color},null,8,t5e))),128))],8,e5e))}}),n5e=["width","height"],r5e={key:0},i5e=["transform"],o5e=["d","fill","stroke","stroke-width","stroke-dasharray"],a5e=We({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=pt(),r=st(),{handleElementId:i,shapeFormatPainter:o}=Ve(n),{addHistorySnapshot:a}=nn(),s=(M,w=!0)=>{t.elementInfo.lock||(M.stopPropagation(),t.selectElement(M,t.elementInfo,w))},l=()=>{if(!o.value)return;const{keep:M,...w}=o.value;r.updateElement({id:t.elementInfo.id,props:w}),a(),M||n.setShapeFormatPainter(null)},u=Se(()=>t.elementInfo.outline),{outlineWidth:c,outlineColor:f,strokeDashArray:d}=t1(u),h=Se(()=>t.elementInfo.shadow),{shadowStyle:p}=hd(h),v=Se(()=>t.elementInfo.flipH),g=Se(()=>t.elementInfo.flipV),{flipStyle:m}=m3(v,g),y=he(!1);Tt(i,()=>{i.value!==t.elementInfo.id&&y.value&&(y.value=!1)});const R=Se(()=>{const M={content:"",defaultFontName:"",defaultColor:"#000",align:"middle"};return t.elementInfo.text?t.elementInfo.text:M}),A=(M,w=!1)=>{const _={...R.value,content:M};r.updateElement({id:t.elementInfo.id,props:{text:_}}),w||a()},x=()=>{if(!t.elementInfo.text)return;t.elementInfo.text.content.replace(/<[^>]+>/g,"")||(r.removeElementProps({id:t.elementInfo.id,propName:"text"}),a())},S=he(),L=()=>{y.value=!0,Rr(()=>S.value&&S.value.focus())};return(M,w)=>{const _=_n("contextmenu");return D(),q("div",{class:ze(["editable-element-shape",{lock:M.elementInfo.lock,"format-painter":z(o)}]),style:Le({top:M.elementInfo.top+"px",left:M.elementInfo.left+"px",width:M.elementInfo.width+"px",height:M.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:Le({transform:`rotate(${M.elementInfo.rotate}deg)`})},[Ge((D(),q("div",{class:"element-content",style:Le({opacity:M.elementInfo.opacity,filter:z(p)?`drop-shadow(${z(p)})`:"",transform:z(m),color:R.value.defaultColor,fontFamily:R.value.defaultFontName}),onMousedown:w[3]||(w[3]=C=>s(C)),onMouseup:w[4]||(w[4]=C=>l()),onTouchstart:w[5]||(w[5]=C=>s(C)),onDblclick:w[6]||(w[6]=C=>L())},[(D(),q("svg",{overflow:"visible",width:M.elementInfo.width,height:M.elementInfo.height},[M.elementInfo.gradient?(D(),q("defs",r5e,[k(SJ,{id:`editabel-gradient-${M.elementInfo.id}`,type:M.elementInfo.gradient.type,colors:M.elementInfo.gradient.colors,rotate:M.elementInfo.gradient.rotate},null,8,["id","type","colors","rotate"])])):Ye("",!0),V("g",{transform:`scale(${M.elementInfo.width/M.elementInfo.viewBox[0]}, ${M.elementInfo.height/M.elementInfo.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`},[V("path",{class:"shape-path","vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",d:M.elementInfo.path,fill:M.elementInfo.gradient?`url(#editabel-gradient-${M.elementInfo.id})`:M.elementInfo.fill||"none",stroke:z(f),"stroke-width":z(c),"stroke-dasharray":z(d)},null,8,o5e)],8,i5e)],8,n5e)),V("div",{class:ze(["shape-text",[R.value.align,{editable:y.value||R.value.content}]])},[y.value||R.value.content?(D(),Oe(RJ,{key:0,ref_key:"prosemirrorEditorRef",ref:S,elementId:M.elementInfo.id,defaultColor:R.value.defaultColor,defaultFontName:R.value.defaultFontName,editable:!M.elementInfo.lock,value:R.value.content,onUpdate:w[0]||(w[0]=({value:C,ignore:O})=>A(C,O)),onBlur:w[1]||(w[1]=C=>x()),onMousedown:w[2]||(w[2]=C=>s(C,!1))},null,8,["elementId","defaultColor","defaultFontName","editable","value"])):Ye("",!0)],2)],36)),[[_,M.contextmenus]])],4)],6)}}}),wJ=Be(a5e,[["__scopeId","data-v-b868b2f7"]]),s5e=["id","markerWidth","markerHeight","refX","refY"],l5e=["d","fill","transform"],zf=We({__name:"LinePointMarker",props:{id:{},position:{},type:{},baseSize:{},color:{}},setup(e){const t=e,n={dot:"m0 5a5 5 0 1 0 10 0a5 5 0 1 0 -10 0z",arrow:"M0,0 L10,5 0,10 Z"},r={"arrow-start":180,"arrow-end":0},i=Se(()=>n[t.type]),o=Se(()=>r[`${t.type}-${t.position}`]||0),a=Se(()=>t.baseSize<2?2:t.baseSize);return(s,l)=>(D(),q("marker",{id:`${s.id}-${s.type}-${s.position}`,markerUnits:"userSpaceOnUse",orient:"auto",markerWidth:a.value*3,markerHeight:a.value*3,refX:a.value*1.5,refY:a.value*1.5},[V("path",{d:i.value,fill:s.color,transform:`scale(${a.value*.3}, ${a.value*.3}) rotate(${o.value}, 5, 5)`},null,8,l5e)],8,s5e))}}),u5e=["width","height"],c5e=["d","stroke","stroke-width","stroke-dasharray","marker-start","marker-end"],f5e=["d"],d5e=We({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=u=>{t.elementInfo.lock||(u.stopPropagation(),t.selectElement(u,t.elementInfo))},r=Se(()=>t.elementInfo.shadow),{shadowStyle:i}=hd(r),o=Se(()=>{const u=Math.abs(t.elementInfo.start[0]-t.elementInfo.end[0]);return u<24?24:u}),a=Se(()=>{const u=Math.abs(t.elementInfo.start[1]-t.elementInfo.end[1]);return u<24?24:u}),s=Se(()=>{const u=t.elementInfo.width;return t.elementInfo.style==="dashed"?u<=8?`${u*5} ${u*2.5}`:`${u*5} ${u*1.5}`:t.elementInfo.style==="dotted"?u<=8?`${u*1.8} ${u*1.6}`:`${u*1.5} ${u*1.2}`:"0 0"}),l=Se(()=>ek(t.elementInfo));return(u,c)=>{const f=_n("contextmenu");return D(),q("div",{class:ze(["editable-element-shape",{lock:u.elementInfo.lock}]),style:Le({top:u.elementInfo.top+"px",left:u.elementInfo.left+"px"})},[V("div",{class:"element-content",style:Le({filter:z(i)?`drop-shadow(${z(i)})`:""}),onMousedown:c[0]||(c[0]=d=>n(d)),onTouchstart:c[1]||(c[1]=d=>n(d))},[(D(),q("svg",{overflow:"visible",width:o.value,height:a.value},[V("defs",null,[u.elementInfo.points[0]?(D(),Oe(zf,{key:0,id:u.elementInfo.id,position:"start",type:u.elementInfo.points[0],color:u.elementInfo.color,baseSize:u.elementInfo.width},null,8,["id","type","color","baseSize"])):Ye("",!0),u.elementInfo.points[1]?(D(),Oe(zf,{key:1,id:u.elementInfo.id,position:"end",type:u.elementInfo.points[1],color:u.elementInfo.color,baseSize:u.elementInfo.width},null,8,["id","type","color","baseSize"])):Ye("",!0)]),V("path",{class:"line-point",d:l.value,stroke:u.elementInfo.color,"stroke-width":u.elementInfo.width,"stroke-dasharray":s.value,fill:"none","marker-start":u.elementInfo.points[0]?`url(#${u.elementInfo.id}-${u.elementInfo.points[0]}-start)`:"","marker-end":u.elementInfo.points[1]?`url(#${u.elementInfo.id}-${u.elementInfo.points[1]}-end)`:""},null,8,c5e),Ge(V("path",{class:"line-path",d:l.value,stroke:"transparent","stroke-width":"20",fill:"none"},null,8,f5e),[[f,u.contextmenus]])],8,u5e))],36)],6)}}}),MJ=Be(d5e,[["__scopeId","data-v-9dc09347"]]),h5e=({type:e,data:t,themeColors:n,textColor:r,lineSmooth:i,stack:o})=>{if(e==="bar")return{color:n,textStyle:r?{color:r}:{},legend:t.series.length>1?{top:"bottom",textStyle:r?{color:r}:{}}:void 0,xAxis:{type:"category",data:t.labels},yAxis:{type:"value"},series:t.series.map((a,s)=>{const l={data:a,name:t.legends[s],type:"bar",label:{show:!0}};return o&&(l.stack="A"),l})};if(e==="column")return{color:n,textStyle:r?{color:r}:{},legend:t.series.length>1?{top:"bottom",textStyle:r?{color:r}:{}}:void 0,yAxis:{type:"category",data:t.labels},xAxis:{type:"value"},series:t.series.map((a,s)=>{const l={data:a,name:t.legends[s],type:"bar",label:{show:!0}};return o&&(l.stack="A"),l})};if(e==="line")return{color:n,textStyle:r?{color:r}:{},legend:t.series.length>1?{top:"bottom",textStyle:r?{color:r}:{}}:void 0,xAxis:{type:"category",data:t.labels},yAxis:{type:"value"},series:t.series.map((a,s)=>{const l={data:a,name:t.legends[s],type:"line",smooth:i,label:{show:!0}};return o&&(l.stack="A"),l})};if(e==="pie")return{color:n,textStyle:r?{color:r}:{},legend:{top:"bottom",textStyle:r?{color:r}:{}},series:[{data:t.series[0].map((a,s)=>({value:a,name:t.labels[s]})),label:r?{color:r}:{},type:"pie",radius:"70%",emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{show:!0,fontSize:14,fontWeight:"bold"}}}]};if(e==="ring")return{color:n,textStyle:r?{color:r}:{},legend:{top:"bottom",textStyle:r?{color:r}:{}},series:[{data:t.series[0].map((a,s)=>({value:a,name:t.labels[s]})),label:r?{color:r}:{},type:"pie",radius:["40%","70%"],padAngle:1,avoidLabelOverlap:!1,itemStyle:{borderRadius:4},emphasis:{label:{show:!0,fontSize:14,fontWeight:"bold"}}}]};if(e==="area")return{color:n,textStyle:r?{color:r}:{},legend:t.series.length>1?{top:"bottom",textStyle:r?{color:r}:{}}:void 0,xAxis:{type:"category",boundaryGap:!1,data:t.labels},yAxis:{type:"value"},series:t.series.map((a,s)=>{const l={data:a,name:t.legends[s],type:"line",areaStyle:{},label:{show:!0}};return o&&(l.stack="A"),l})};if(e==="radar")return{color:n,textStyle:r?{color:r}:{},legend:t.series.length>1?{top:"bottom",textStyle:r?{color:r}:{}}:void 0,radar:{indicator:t.labels.map(a=>({name:a}))},series:[{data:t.series.map((a,s)=>({value:a,name:t.legends[s]})),type:"radar"}]};if(e==="scatter"){const a=[];for(let s=0;s0?2:0),L_(g,function(y,R){g[R]==="inherit"&&(g[R]=m[R])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=e.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?r.decal:p_(f,a),u.fill==="inherit"&&(u.fill=r[i]),u.stroke==="inherit"&&(u.stroke=r[c]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?r:n).opacity),s(u,r);var d=t.getModel("lineStyle"),h=d.getLineStyle();if(s(h,n),u.fill==="auto"&&(u.fill=r.fill),u.stroke==="auto"&&(u.stroke=r.fill),h.stroke==="auto"&&(h.stroke=r.fill),!o){var p=t.get("inactiveBorderWidth"),v=u[c];u.lineWidth=p==="auto"?r.lineWidth>0&&v?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=d.get("inactiveColor"),h.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function qIe(e){var t=e.icon||"roundRect",n=nd(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function WU(e,t,n,r){__(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:e??t}),T_(e,t,n,r)}function lee(e){for(var t=e.getZr().storage.getDisplayList(),n,r=0,i=t.length;ri[a],g=[-h.x,-h.y];r||(g[o]=c[u]);var m=[0,0],y=[-p.x,-p.y],R=ln(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(v){var A=n.get("pageButtonPosition",!0);A==="end"?y[o]+=i[a]-p[a]:m[o]+=p[a]+R}y[1-o]+=h[s]/2-p[s]/2,c.setPosition(g),f.setPosition(m),d.setPosition(y);var x={x:0,y:0};if(x[a]=v?i[a]:h[a],x[s]=Math.max(h[s],p[s]),x[l]=Math.min(0,p[l]+y[1-o]),f.__rectSize=i[a],v){var S={x:0,y:0};S[a]=Math.max(i[a]-p[a]-R,0),S[s]=x[s],f.setClipPath(new Oi({shape:S})),f.__rectSize=S[a]}else d.eachChild(function(M){M.attr({invisible:!0,silent:!0})});var L=this._getPageInfo(n);return L.pageIndex!=null&&mo(c,{x:L.contentPosition[0],y:L.contentPosition[1]},v?n:null),this._updatePageInfoView(n,L),x},t.prototype._pageGo=function(n,r,i){var o=this._getPageInfo(r)[n];o!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:o,legendId:r.id})},t.prototype._updatePageInfoView=function(n,r){var i=this._controllerGroup;ke(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",d=r[f]!=null,h=i.childOfName(c);h&&(h.setStyle("fill",d?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),h.cursor=d?"pointer":"default")});var o=i.childOfName("pageText"),a=n.get("pageFormatter"),s=r.pageIndex,l=s!=null?s+1:0,u=r.pageCount;o&&a&&o.setStyle("text",Kt(a)?a.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):a({current:l,total:u}))},t.prototype._getPageInfo=function(n){var r=n.get("scrollDataIndex",!0),i=this.getContentGroup(),o=this._containerGroup.__rectSize,a=n.getOrient().index,s=$L[a],l=jL[a],u=this._findTargetItemIndex(r),c=i.children(),f=c[u],d=c.length,h=d?1:0,p={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return p;var v=A(f);p.contentPosition[a]=-v.s;for(var g=u+1,m=v,y=v,R=null;g<=d;++g)R=A(c[g]),(!R&&y.e>m.s+o||R&&!x(R,m.s))&&(y.i>m.i?m=y:m=R,m&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=m.i),++p.pageCount)),y=R;for(var g=u-1,m=v,y=v,R=null;g>=-1;--g)R=A(c[g]),(!R||!x(y,R.s))&&m.i=L&&S.s<=L+o}},t.prototype._findTargetItemIndex=function(n){if(!this._showController)return 0;var r,i=this.getContentGroup(),o;return i.eachChild(function(a,s){var l=a.__legendDataIndex;o==null&&l!=null&&(o=s),l===n&&(r=s)}),r??o},t.type="legend.scroll",t}(see);function iNe(e){e.registerAction("legendScroll","legendscroll",function(t,n){var r=t.scrollDataIndex;r!=null&&n.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(r)})})}function oNe(e){r0(uee),e.registerComponentModel(nNe),e.registerComponentView(rNe),iNe(e)}function aNe(e){r0(uee),r0(oNe)}var qL=Math.sin,e8=Math.cos,cee=Math.PI,qd=Math.PI*2,sNe=180/cee,fee=function(){function e(){}return e.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},e.prototype.moveTo=function(t,n){this._add("M",t,n)},e.prototype.lineTo=function(t,n){this._add("L",t,n)},e.prototype.bezierCurveTo=function(t,n,r,i,o,a){this._add("C",t,n,r,i,o,a)},e.prototype.quadraticCurveTo=function(t,n,r,i){this._add("Q",t,n,r,i)},e.prototype.arc=function(t,n,r,i,o,a){this.ellipse(t,n,r,r,0,i,o,a)},e.prototype.ellipse=function(t,n,r,i,o,a,s,l){var u=s-a,c=!l,f=Math.abs(u),d=Lf(f-qd)||(c?u>=qd:-u>=qd),h=u>0?u%qd:u%qd+qd,p=!1;d?p=!0:Lf(f)?p=!1:p=h>=cee==!!c;var v=t+r*e8(a),g=n+i*qL(a);this._start&&this._add("M",v,g);var m=Math.round(o*sNe);if(d){var y=1/this._p,R=(c?1:-1)*(qd-y);this._add("A",r,i,m,1,+c,t+r*e8(a+R),n+i*qL(a+R)),y>.01&&this._add("A",r,i,m,0,+c,v,g)}else{var A=t+r*e8(s),x=n+i*qL(s);this._add("A",r,i,m,+p,+c,A,x)}},e.prototype.rect=function(t,n,r,i){this._add("M",t,n),this._add("l",r,0),this._add("l",0,i),this._add("l",-r,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(t,n,r,i,o,a,s,l,u){for(var c=[],f=this._p,d=1;d"}function gNe(e){return""}function ZP(e,t){t=t||{};var n=t.newline?` `:"";function r(i){var o=i.children,a=i.tag,s=i.attrs,l=i.text;return vNe(a,s)+(a!=="style"?G5e(l):l||"")+(o?""+n+Ot(o,function(u){return r(u)}).join(n)+n:"")+gNe(a)}return r(e)}function mNe(e,t,n){n=n||{};var r=n.newline?` -`:"",i=" {"+r,o=r+"}",a=Ot(Un(e),function(l){return l+i+Ot(Un(e[l]),function(u){return u+":"+e[l][u]+";"}).join(r)+o}).join(r),s=Ot(Un(t),function(l){return"@keyframes "+l+i+Ot(Un(t[l]),function(u){return u+i+Ot(Un(t[l][u]),function(c){var f=t[l][u][c];return c==="d"&&(f='path("'+f+'")'),c+":"+f+";"}).join(r)+o}).join(r)+o}).join(r);return!a&&!s?"":[""].join(r)}function k_(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function BU(e,t,n,r){return Ai("svg","root",{width:e,height:t,xmlns:dee,"xmlns:xlink":hee,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+e+" "+t:!1},n)}var yNe=0;function vee(){return yNe++}var YU={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},ah="transform-origin";function ANe(e,t,n){var r=vt({},e.shape);vt(r,t),e.buildPath(n,r);var i=new fee;return i.reset(JJ(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function RNe(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[ah]=n+"px "+r+"px")}var bNe={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function gee(e,t){var n=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function xNe(e,t,n){var r=e.shape.paths,i={},o,a;if(ke(r,function(l){var u=k_(n.zrId);u.animation=!0,q3(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,d=Un(c),h=d.length;if(h){a=d[h-1];var p=c[a];for(var v in p){var g=p[v];i[v]=i[v]||{d:""},i[v].d+=g.d||""}for(var m in f){var y=f[m].animation;y.indexOf(a)>=0&&(o=y)}}}),!!o){t.d=!1;var s=gee(i,n);return o.replace(a,s)}}function ZU(e){return Kt(e)?YU[e]?"cubic-bezier("+YU[e]+")":Jk(e)?e:"":""}function q3(e,t,n,r){var i=e.animators,o=i.length,a=[];if(e instanceof V$){var s=xNe(e,t,n);if(s)a.push(s);else if(!o)return}else if(!o)return;for(var l={},u=0;u0}).length){var de=gee(L,n);return de+" "+y[0]+" both"}}for(var g in l){var s=v(l[g]);s&&a.push(s)}if(a.length){var m=n.zrId+"-cls-"+vee();n.cssNodes["."+m]={animation:a.join(",")},t.class=m}}function SNe(e,t,n){if(!e.ignore)if(e.isSilent()){var r={"pointer-events":"none"};QU(r,t,n)}else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},o=i.fill;if(!o){var a=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,l=e.currentStates.indexOf("select")>=0&&s||a;l&&(o=X6(l))}var u=i.lineWidth;if(u){var c=!i.strokeNoScale&&e.transform?e.transform[0]:1;u=u/c}var r={cursor:"pointer"};o&&(r.fill=o),i.stroke&&(r.stroke=i.stroke),u&&(r["stroke-width"]=u),QU(r,t,n)}}function QU(e,t,n,r){var i=JSON.stringify(e),o=n.cssStyleCache[i];o||(o=n.zrId+"-cls-"+vee(),n.cssStyleCache[i]=o,n.cssNodes["."+o+":hover"]=e),t.class=t.class?t.class+" "+o:o}var M2=Math.round;function mee(e){return e&&Kt(e.src)}function yee(e){return e&&Rn(e.toDataURL)}function QP(e,t,n,r){dNe(function(i,o){var a=i==="fill"||i==="stroke";a&&zJ(o)?Ree(t,e,i,r):a&&$k(o)?bee(n,e,i,r):a&&o==="none"?e[i]="transparent":e[i]=o},t,n,!1),kNe(n,e,r)}function HP(e,t){var n=e8e(t);n&&(n.each(function(r,i){r!=null&&(e[(UU+i).toLowerCase()]=r+"")}),t.isSilent()&&(e[UU+"silent"]="true"))}function HU(e){return Lf(e[0]-1)&&Lf(e[1])&&Lf(e[2])&&Lf(e[3]-1)}function wNe(e){return Lf(e[4])&&Lf(e[5])}function KP(e,t,n){if(t&&!(wNe(t)&&HU(t))){var r=1e4;e.transform=HU(t)?"translate("+M2(t[4]*r)/r+" "+M2(t[5]*r)/r+")":SLe(t)}}function KU(e,t,n){for(var r=e.points,i=[],o=0;o"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";yu(d,g),yu(h,g)}else if(d==null||h==null){var m=function(_,C){if(_){var O=_.elm,N=d||C.width,P=h||C.height;_.tag==="pattern"&&(u?(P=1,N/=o.width):c&&(N=1,P/=o.height)),_.attrs.width=N,_.attrs.height=P,O&&(O.setAttribute("width",N),O.setAttribute("height",P))}},y=rP(p,null,e,function(_){l||m(S,_),m(f,_)});y&&y.width&&y.height&&(d=d||y.width,h=h||y.height)}f=Ai("image","img",{href:p,width:d,height:h}),a.width=d,a.height=h}else i.svgElement&&(f=Dn(i.svgElement),a.width=i.svgWidth,a.height=i.svgHeight);if(f){var R,A;l?R=A=1:u?(A=1,R=a.width/o.width):c?(R=1,A=a.height/o.height):a.patternUnits="userSpaceOnUse",R!=null&&!isNaN(R)&&(a.width=R),A!=null&&!isNaN(A)&&(a.height=A);var x=$J(i);x&&(a.patternTransform=x);var S=Ai("pattern","",a,[f]),L=ZP(S),M=r.patternCache,w=M[L];w||(w=r.zrId+"-p"+r.patternIdx++,M[L]=w,a.id=w,S=r.defs[w]=Ai("pattern",w,a,[f])),t[n]=M3(w)}}function PNe(e,t,n){var r=n.clipPathCache,i=n.defs,o=r[e.id];if(!o){o=n.zrId+"-c"+n.clipPathIdx++;var a={id:o};r[e.id]=o,i[o]=Ai("clipPath",o,a,[Aee(e,n)])}t["clip-path"]=M3(o)}function JU(e){return document.createTextNode(e)}function dh(e,t,n){e.insertBefore(t,n)}function $U(e,t){e.removeChild(t)}function jU(e,t){e.appendChild(t)}function xee(e){return e.parentNode}function See(e){return e.nextSibling}function t8(e,t){e.textContent=t}var qU=58,CNe=120,INe=Ai("","");function P_(e){return e===void 0}function Ql(e){return e!==void 0}function NNe(e,t,n){for(var r={},i=t;i<=n;++i){var o=e[i].key;o!==void 0&&(r[o]=i)}return r}function Xg(e,t){var n=e.key===t.key,r=e.tag===t.tag;return r&&n}function L2(e){var t,n=e.children,r=e.tag;if(Ql(r)){var i=e.elm=pee(r);if(GP(INe,e),It(n))for(t=0;to?(p=n[l+1]==null?null:n[l+1].elm,wee(e,p,n,i,l)):gS(e,t,r,o))}function Mp(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(GP(e,t),P_(t.text)?Ql(r)&&Ql(i)?r!==i&&FNe(n,r,i):Ql(i)?(Ql(e.text)&&t8(n,""),wee(n,null,i,0,i.length-1)):Ql(r)?gS(n,r,0,r.length-1):Ql(e.text)&&t8(n,""):e.text!==t.text&&(Ql(r)&&gS(n,r,0,r.length-1),t8(n,t.text)))}function ENe(e,t){if(Xg(e,t))Mp(e,t);else{var n=e.elm,r=xee(n);L2(t),r!==null&&(dh(r,t.elm,See(n)),gS(r,[e],0,0))}return t}var XNe=0,WNe=function(){function e(t,n,r){if(this.type="svg",this.refreshHover=eB(),this.configLayer=eB(),this.storage=n,this._opts=r=vt({},r),this.root=t,this._id="zr"+XNe++,this._oldVNode=BU(r.width,r.height),t&&!r.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var o=this._svgDom=this._oldVNode.elm=pee("svg");GP(null,this._oldVNode),i.appendChild(o),t.appendChild(i)}this.resize(r.width,r.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",ENe(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return zU(t,k_(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var n=this.storage.getDisplayList(!0),r=this._width,i=this._height,o=k_(this._id);o.animation=t.animation,o.willUpdate=t.willUpdate,o.compress=t.compress,o.emphasis=t.emphasis;var a=[],s=this._bgVNode=VNe(r,i,this._backgroundColor,o);s&&a.push(s);var l=t.compress?null:this._mainVNode=Ai("g","main",{},[]);this._paintList(n,o,l?l.children:a),l&&a.push(l);var u=Ot(Un(o.defs),function(d){return o.defs[d]});if(u.length&&a.push(Ai("defs","defs",{},u)),t.animation){var c=mNe(o.cssNodes,o.cssAnims,{newline:!0});if(c){var f=Ai("style","stl",{},[],c);a.push(f)}}return BU(r,i,a,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},ZP(this.renderToVNode({animation:ln(t.cssAnimation,!0),emphasis:ln(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:ln(t.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(t,n,r){for(var i=t.length,o=[],a=0,s,l,u=0,c=0;c=0&&!(d&&l&&d[v]===l[v]);v--);for(var g=p-1;g>v;g--)a--,s=o[a-1];for(var m=v+1;m{let a=[];if(t.themeColors.length>=10)a=t.themeColors;else if(t.themeColors.length===1)a=at(t.themeColors[0]).analogous(10).map(s=>s.toRgbString());else{const s=t.themeColors.length,l=at(t.themeColors[s-1]).analogous(11-s).map(u=>u.toRgbString());a=[...t.themeColors.slice(0,s-1),...l]}return a}),o=()=>{var s,l;const a=h5e({type:t.type,data:t.data,themeColors:i.value,textColor:t.textColor,lineSmooth:((s=t.options)==null?void 0:s.lineSmooth)||!1,stack:((l=t.options)==null?void 0:l.stack)||!1});a&&n.setOption(a,!0)};return Vt(()=>{n=Nke(r.value,null,{renderer:"svg"}),o();const a=()=>n.resize();new ResizeObserver(a).observe(r.value)}),Tt(()=>t.type,o),Tt(()=>t.data,o),Tt(()=>t.themeColors,o),Tt(()=>t.textColor,o),(a,s)=>(D(),q("div",{class:"chart",ref_key:"chartRef",ref:r},null,512))}}),Mee=Be(UNe,[["__scopeId","data-v-1e5b5ad9"]]),BNe=We({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=i=>{t.elementInfo.lock||(i.stopPropagation(),t.selectElement(i,t.elementInfo))},r=()=>{Ki.emit(Ti.OPEN_CHART_DATA_EDITOR)};return(i,o)=>{const a=_n("contextmenu");return D(),q("div",{class:ze(["editable-element-chart",{lock:i.elementInfo.lock}]),style:Le({top:i.elementInfo.top+"px",left:i.elementInfo.left+"px",width:i.elementInfo.width+"px",height:i.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:Le({transform:`rotate(${i.elementInfo.rotate}deg)`})},[Ge((D(),q("div",{class:"element-content",style:Le({backgroundColor:i.elementInfo.fill}),onMousedown:o[0]||(o[0]=s=>n(s)),onTouchstart:o[1]||(o[1]=s=>n(s)),onDblclick:o[2]||(o[2]=s=>r())},[k(y3,{width:i.elementInfo.width,height:i.elementInfo.height,outline:i.elementInfo.outline},null,8,["width","height","outline"]),k(Mee,{width:i.elementInfo.width,height:i.elementInfo.height,type:i.elementInfo.chartType,data:i.elementInfo.data,themeColors:i.elementInfo.themeColors,textColor:i.elementInfo.textColor,options:i.elementInfo.options},null,8,["width","height","type","data","themeColors","textColor","options"])],36)),[[a,i.contextmenus]])],4)],6)}}}),Lee=Be(BNe,[["__scopeId","data-v-3b1105a2"]]),Tee=e=>{if(!e)return{};const{bold:t,em:n,underline:r,strikethrough:i,color:o,backcolor:a,fontsize:s,fontname:l,align:u}=e;let c=`${r?"underline":""} ${i?"line-through":""}`;return c===" "&&(c="none"),{fontWeight:t?"bold":"normal",fontStyle:n?"italic":"normal",textDecoration:c,color:o||"#000",backgroundColor:a||"",fontSize:s||"14px",fontFamily:l||"",textAlign:u||"left"}},_ee=e=>e.replace(/\n/g,"
    ").replace(/ /g," "),Oee=e=>({hideCells:Se(()=>{const n=[];for(let r=0;r1||a.rowspan>1)for(let s=r;s{const t=he(["",""]);return Tt(()=>e.value,()=>{e.value&&(t.value=GH(e.value.color))},{immediate:!0}),{subThemeColor:t}},YNe=["innerHTML"],ZNe=We({__name:"CustomTextarea",props:{value:{default:""}},emits:["updateValue","insertExcelData"],setup(e,{emit:t}){const n=e,r=t,i=he(),o=he(""),a=he(!1);Tt(()=>n.value,()=>{a.value||(o.value=n.value,i.value&&(i.value.innerHTML=n.value))},{immediate:!0});const s=()=>{if(!i.value)return;const c=i.value.innerHTML;r("updateValue",c)},l=()=>{a.value=!0,i.value&&(i.value.onpaste=c=>{if(c.preventDefault(),!c.clipboardData)return;const f=c.clipboardData.items[0];f&&f.kind==="string"&&f.type==="text/plain"&&f.getAsString(d=>{if(typeof qO(d)=="object")return;const p=QH(d);if(p){r("insertExcelData",p),i.value&&(i.value.innerHTML=p[0][0]);return}document.execCommand("insertText",!1,d)})})},u=()=>{a.value=!1,i.value&&(i.value.onpaste=null)};return s0(()=>{i.value&&(i.value.onpaste=null)}),(c,f)=>(D(),q("div",{class:"custom-textarea",ref_key:"textareaRef",ref:i,contenteditable:!0,onFocus:f[0]||(f[0]=d=>l()),onBlur:f[1]||(f[1]=d=>u()),onInput:f[2]||(f[2]=d=>s()),innerHTML:o.value},null,40,YNe))}}),QNe=Be(ZNe,[["__scopeId","data-v-cfadb975"]]),HNe={key:0,class:"handler"},KNe=["onMousedown"],GNe=["width"],zNe=["rowspan","colspan","data-cell-index","onMousedown","onMouseenter"],JNe=["innerHTML"],$Ne=We({__name:"EditableTable",props:{data:{},width:{},cellMinHeight:{},colWidths:{},outline:{},theme:{},editable:{type:Boolean,default:!0}},emits:["change","changeColWidths","changeSelectedCells"],setup(e,{emit:t}){const n=e,r=t,{canvasScale:i}=Ve(pt()),o=he(!1),a=he([]),s=he([]),l=Se({get(){return n.data},set(ue){r("change",ue)}}),u=Se(()=>n.theme),{subThemeColor:c}=kee(u),f=he([]),d=Se(()=>f.value.reduce((ue,ce)=>ue+ce));Tt([()=>n.colWidths,()=>n.width],()=>{f.value=n.colWidths.map(ue=>ue*n.width)},{immediate:!0});const h=()=>{a.value=[],s.value=[]};Tt(()=>n.editable,()=>{n.editable||h()});const p=Se(()=>{const ue=[];for(let ce=1;ce$+X);ue.push(le)}return ue}),v=Se(()=>n.data),{hideCells:g}=Oee(v),m=Se(()=>{if(!a.value.length)return[];const[ue,ce]=a.value;if(!s.value.length)return[`${ue}_${ce}`];const[le,$]=s.value;if(ue===le&&ce===$)return[`${ue}_${ce}`];const X=[],j=Math.min(ue,le),se=Math.min(ce,$),ne=Math.max(ue,le),re=Math.max(ce,$);for(let ae=0;ae=j&&ae<=ne&&fe>=se&&fe<=re&&X.push(`${ae}_${fe}`)}return X});Tt(m,(ue,ce)=>{Qn.isEqual(ue,ce)||r("changeSelectedCells",m.value)});const y=Se(()=>m.value.length>1?null:m.value[0]),R=()=>o.value=!1,A=(ue,ce,le)=>{ue.button===0&&(s.value=[],o.value=!0,a.value=[ce,le])},x=(ue,ce)=>{o.value&&(s.value=[ue,ce])};Vt(()=>{document.addEventListener("mouseup",R)}),En(()=>{document.removeEventListener("mouseup",R)});const S=(ue,ce)=>g.value.includes(`${ue}_${ce}`),L=ue=>{const ce=l.value.length-1;a.value=[0,ue],s.value=[ce,ue]},M=ue=>{const ce=l.value[ue].length-1;a.value=[ue,0],s.value=[ue,ce]},w=()=>{const ue=l.value.length-1,ce=l.value[ue].length-1;a.value=[0,0],s.value=[ue,ce]},_=ue=>{const ce=JSON.parse(JSON.stringify(l.value)),le=l.value[ue],$=[];for(let X=0;X=0;j--)if(!S(j,X)){ce[j][X].rowspan=ce[j][X].rowspan-1;break}ce.splice(ue,1),l.value=ce},C=ue=>{const ce=JSON.parse(JSON.stringify(l.value)),le=[];for(let $=0;$=0;X--)if(!S($,X)){ce[$][X].colspan=ce[$][X].colspan-1;break}l.value=ce.map($=>($.splice(ue,1),$)),f.value.splice(ue,1),r("changeColWidths",f.value)},O=ue=>{const ce=JSON.parse(JSON.stringify(l.value)),le=[];for(let $=0;${l.value=l.value.map(ce=>{const le={colspan:1,rowspan:1,text:"",id:Zt(10)};return ce.splice(ue,0,le),ce}),f.value.splice(ue,0,100),r("changeColWidths",f.value)},P=(ue,ce)=>{let le=JSON.parse(JSON.stringify(l.value));const $={colspan:1,rowspan:1,text:""};if(ue){const X=[];for(let j=0;j{const j=[];for(let se=0;se{const[ue,ce]=a.value,[le,$]=s.value,X=Math.min(ue,le),j=Math.min(ce,$),se=Math.max(ue,le),ne=Math.max(ce,$),re=JSON.parse(JSON.stringify(l.value));re[X][j].rowspan=se-X+1,re[X][j].colspan=ne-j+1,l.value=re,h()},I=(ue,ce)=>{const le=JSON.parse(JSON.stringify(l.value));le[ue][ce].rowspan=1,le[ue][ce].colspan=1,l.value=le,h()},W=(ue,ce)=>{h();let le=!0;const $=f.value[ce],X=ue.pageX,j=50;document.onmousemove=se=>{if(!le)return;const ne=(se.pageX-X)/i.value,re=$+ne{le=!1,document.onmousemove=null,document.onmouseup=null,r("changeColWidths",f.value)}},U=()=>{const ue=JSON.parse(JSON.stringify(l.value));for(let ce=0;ce{Rr(()=>{const ue=document.querySelector(".cell-text.active");ue&&ue.focus()})},ee=()=>{const ue=(X,j)=>l.value[X]?l.value[X][j]?S(X,j)?ue(X,j+1):[X,j]:ue(X+1,0):null;s.value=[];const ce=a.value[0],le=a.value[1]+1,$=ue(ce,le);$?a.value=$:(O(ce+1),a.value=[ce+1,0]),Z()},B=ue=>{const ce=+m.value[0].split("_")[0],le=+m.value[0].split("_")[1],$=l.value.length,X=l.value[0].length,j=se=>{if(se[0]<0||se[1]<0||se[0]>$-1||se[1]>X-1)return[0,0];const ne=`${se[0]}_${se[1]}`;return g.value.includes(ne)?ue==="UP"?j([se[0],se[1]-1]):ue==="DOWN"?j([se[0],se[1]-1]):ue==="LEFT"?j([se[0]-1,se[1]]):ue==="RIGHT"?j([se[0]-1,se[1]]):[0,0]:se};if(ue==="UP"){const se=ce-1;if(se<0)return;s.value=[],a.value=j([se,le])}else if(ue==="DOWN"){const se=ce+1;if(se>$-1)return;s.value=[],a.value=j([se,le])}else if(ue==="LEFT"){const se=le-1;if(se<0)return;s.value=[],a.value=j([ce,se])}else if(ue==="RIGHT"){const se=le+1;if(se>X-1)return;s.value=[],a.value=j([ce,se])}Z()},Y=ue=>{var le;const ce=window.getSelection();if(ce&&ce.rangeCount>0){const $=ce.getRangeAt(0),X=$.cloneRange();X.selectNodeContents(ue),X.setEnd($.startContainer,$.startOffset);const j=X.toString().length;X.setEnd($.endContainer,$.endOffset);const se=X.toString().length,ne=((le=ue.textContent)==null?void 0:le.length)||0;return{start:j,end:se,len:ne}}return null},Q=ue=>{if(!n.editable||!m.value.length)return;const ce=ue.key.toUpperCase();if(m.value.length<2){if(ce===yt.TAB)ue.preventDefault(),ee();else if(ue.ctrlKey&&ce===yt.UP){ue.preventDefault();const le=+m.value[0].split("_")[0];O(le)}else if(ue.ctrlKey&&ce===yt.DOWN){ue.preventDefault();const le=+m.value[0].split("_")[0];O(le+1)}else if(ue.ctrlKey&&ce===yt.LEFT){ue.preventDefault();const le=+m.value[0].split("_")[1];N(le)}else if(ue.ctrlKey&&ce===yt.RIGHT){ue.preventDefault();const le=+m.value[0].split("_")[1];N(le+1)}else if(ce===yt.UP){const le=Y(ue.target);le&&le.start===le.end&&le.start===0&&B("UP")}else if(ce===yt.DOWN){const le=Y(ue.target);le&&le.start===le.end&&le.start===le.len&&B("DOWN")}else if(ce===yt.LEFT){const le=Y(ue.target);le&&le.start===le.end&&le.start===0&&B("LEFT")}else if(ce===yt.RIGHT){const le=Y(ue.target);le&&le.start===le.end&&le.start===le.len&&B("RIGHT")}}else ce===yt.DELETE&&U()};Vt(()=>{document.addEventListener("keydown",Q)}),En(()=>{document.removeEventListener("keydown",Q)});const K=Qn.debounce(function(ue,ce,le){l.value[ce][le].text=ue,r("change",l.value)},300,{trailing:!0}),te=(ue,ce,le)=>{const $=ue.length,X=ue[0].length;let j=0,se=0;ce+$>l.value.length&&(j=ce+$-l.value.length),le+X>l.value[0].length&&(se=le+X-l.value[0].length),(j||se)&&P(j,se),Rr(()=>{for(let ne=0;ne<$;ne++)for(let re=0;re{const ue=[];for(let ce=0;ce{const ue=J(),ce=ue.length>1,le=ue[0].length>1;return{canDeleteRow:ce,canDeleteCol:le}},G=(ue,ce)=>{const le=m.value.length>1,$=l.value[ue][ce],X=le,j=!le&&($.rowspan>1||$.colspan>1);return{canMerge:X,canSplit:j}},Ae=ue=>{const ce=ue.dataset.cellIndex,le=+ce.split("_")[0],$=+ce.split("_")[1];m.value.includes(`${le}_${$}`)||(a.value=[le,$],s.value=[]);const{canMerge:X,canSplit:j}=G(le,$),{canDeleteRow:se,canDeleteCol:ne}=de();return[{text:"插入列",children:[{text:"到左侧",handler:()=>N($)},{text:"到右侧",handler:()=>N($+1)}]},{text:"插入行",children:[{text:"到上方",handler:()=>O(le)},{text:"到下方",handler:()=>O(le+1)}]},{text:"删除列",disable:!ne,handler:()=>C($)},{text:"删除行",disable:!se,handler:()=>_(le)},{divider:!0},{text:"合并单元格",disable:!X,handler:F},{text:"取消合并单元格",disable:!j,handler:()=>I(le,$)},{divider:!0},{text:"选中当前列",handler:()=>L($)},{text:"选中当前行",handler:()=>M(le)},{text:"选中全部单元格",handler:w}]};return(ue,ce)=>{var $,X,j,se,ne;const le=_n("contextmenu");return D(),q("div",{class:"editable-table",style:Le({width:d.value+"px"})},[ue.editable?(D(),q("div",HNe,[(D(!0),q(Ee,null,qe(p.value,(re,ae)=>(D(),q("div",{class:"drag-line",key:ae,style:Le({left:re+"px"}),onMousedown:ve=>W(ve,ae)},null,44,KNe))),128))])):Ye("",!0),V("table",{class:ze({theme:u.value,"row-header":($=u.value)==null?void 0:$.rowHeader,"row-footer":(X=u.value)==null?void 0:X.rowFooter,"col-header":(j=u.value)==null?void 0:j.colHeader,"col-footer":(se=u.value)==null?void 0:se.colFooter}),style:Le(`--themeColor: ${(ne=u.value)==null?void 0:ne.color}; --subThemeColor1: ${z(c)[0]}; --subThemeColor2: ${z(c)[1]}`)},[V("colgroup",null,[(D(!0),q(Ee,null,qe(f.value,(re,ae)=>(D(),q("col",{span:"1",key:ae,width:re},null,8,GNe))),128))]),V("tbody",null,[(D(!0),q(Ee,null,qe(l.value,(re,ae)=>(D(),q("tr",{key:ae,style:Le({height:ue.cellMinHeight+"px"})},[(D(!0),q(Ee,null,qe(re,(ve,fe)=>Ge((D(),q("td",{class:ze(["cell",{selected:m.value.includes(`${ae}_${fe}`)&&m.value.length>1,active:y.value===`${ae}_${fe}`}]),style:Le({borderStyle:ue.outline.style,borderColor:ue.outline.color,borderWidth:ue.outline.width+"px",...z(Tee)(ve.style)}),key:ve.id,rowspan:ve.rowspan,colspan:ve.colspan,"data-cell-index":`${ae}_${fe}`,onMousedown:ge=>A(ge,ae,fe),onMouseenter:ge=>x(ae,fe)},[y.value===`${ae}_${fe}`?(D(),Oe(QNe,{key:0,class:ze(["cell-text",{active:y.value===`${ae}_${fe}`}]),style:Le({minHeight:ue.cellMinHeight-4+"px"}),value:ve.text,onUpdateValue:ge=>z(K)(ge,ae,fe),onInsertExcelData:ge=>te(ge,ae,fe)},null,8,["class","style","value","onUpdateValue","onInsertExcelData"])):(D(),q("div",{key:1,class:"cell-text",style:Le({minHeight:ue.cellMinHeight-4+"px"}),innerHTML:z(_ee)(ve.text)},null,12,JNe))],46,zNe)),[[hc,!z(g).includes(`${ae}_${fe}`)],[le,ge=>Ae(ge)]])),128))],4))),128))])],6)],4)}}}),jNe=Be($Ne,[["__scopeId","data-v-938823e2"]]),qNe={class:"element-content"},e7e=We({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=pt(),r=st(),{canvasScale:i,handleElementId:o,isScaling:a}=Ve(n),s=he(),{addHistorySnapshot:l}=nn(),u=y=>{t.elementInfo.lock||(y.stopPropagation(),t.selectElement(y,t.elementInfo))},c=he(!1);Tt(o,()=>{o.value!==t.elementInfo.id&&(c.value=!1)}),Tt(c,()=>{n.setDisableHotkeysState(c.value)});const f=()=>{t.elementInfo.lock||(c.value=!0)},d=he(-1);Tt(a,()=>{o.value===t.elementInfo.id&&(a.value&&(c.value=!1),!a.value&&d.value!==-1&&(r.updateElement({id:t.elementInfo.id,props:{height:d.value}}),d.value=-1))});const h=y=>{const R=y[0].contentRect;if(!s.value)return;const A=R.height;t.elementInfo.height!==A&&(a.value?d.value=A:r.updateElement({id:t.elementInfo.id,props:{height:A}}))},p=new ResizeObserver(h);Vt(()=>{s.value&&p.observe(s.value)}),En(()=>{s.value&&p.unobserve(s.value)});const v=y=>{r.updateElement({id:t.elementInfo.id,props:{data:y}}),l()},g=y=>{const R=y.reduce((x,S)=>x+S),A=y.map(x=>x/R);r.updateElement({id:t.elementInfo.id,props:{width:R,colWidths:A}}),l()},m=y=>{Rr(()=>n.setSelectedTableCells(y))};return(y,R)=>{const A=_n("contextmenu");return D(),q("div",{class:ze(["editable-element-table",{lock:y.elementInfo.lock}]),ref_key:"elementRef",ref:s,style:Le({top:y.elementInfo.top+"px",left:y.elementInfo.left+"px",width:y.elementInfo.width+"px"})},[V("div",{class:"rotate-wrapper",style:Le({transform:`rotate(${y.elementInfo.rotate}deg)`})},[Ge((D(),q("div",qNe,[k(jNe,{onMousedown:R[0]||(R[0]=Ft(()=>{},["stop"])),data:y.elementInfo.data,width:y.elementInfo.width,cellMinHeight:y.elementInfo.cellMinHeight,colWidths:y.elementInfo.colWidths,outline:y.elementInfo.outline,theme:y.elementInfo.theme,editable:c.value,onChange:R[1]||(R[1]=x=>v(x)),onChangeColWidths:R[2]||(R[2]=x=>g(x)),onChangeSelectedCells:R[3]||(R[3]=x=>m(x))},null,8,["data","width","cellMinHeight","colWidths","outline","theme","editable"]),!c.value||y.elementInfo.lock?(D(),q("div",{key:0,class:ze(["table-mask",{lock:y.elementInfo.lock}]),onDblclick:R[4]||(R[4]=x=>f()),onMousedown:R[5]||(R[5]=x=>u(x)),onTouchstart:R[6]||(R[6]=x=>u(x))},[z(o)===y.elementInfo.id?(D(),q("div",{key:0,class:"mask-tip",style:Le({transform:`scale(${1/z(i)})`})},"双击编辑",4)):Ye("",!0)],34)):Ye("",!0)])),[[A,y.contextmenus]])],4)],6)}}}),Pee=Be(e7e,[["__scopeId","data-v-7795910a"]]),t7e=["width","height","stroke","stroke-width"],n7e=["transform"],r7e=["d"],i7e=We({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=i=>{t.elementInfo.lock||(i.stopPropagation(),t.selectElement(i,t.elementInfo))},r=()=>{Ki.emit(Ti.OPEN_LATEX_EDITOR)};return(i,o)=>{const a=_n("contextmenu");return D(),q("div",{class:ze(["editable-element-latex",{lock:i.elementInfo.lock}]),style:Le({top:i.elementInfo.top+"px",left:i.elementInfo.left+"px",width:i.elementInfo.width+"px",height:i.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:Le({transform:`rotate(${i.elementInfo.rotate}deg)`})},[Ge((D(),q("div",{class:"element-content",onMousedown:o[0]||(o[0]=s=>n(s)),onTouchstart:o[1]||(o[1]=s=>n(s)),onDblclick:o[2]||(o[2]=s=>r())},[(D(),q("svg",{overflow:"visible",width:i.elementInfo.width,height:i.elementInfo.height,stroke:i.elementInfo.color,"stroke-width":i.elementInfo.strokeWidth,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[V("g",{transform:`scale(${i.elementInfo.width/i.elementInfo.viewBox[0]}, ${i.elementInfo.height/i.elementInfo.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`},[V("path",{d:i.elementInfo.path},null,8,r7e)],8,n7e)],8,t7e))],32)),[[a,i.contextmenus]])],4)],6)}}}),Cee=Be(i7e,[["__scopeId","data-v-b73586f6"]]),o7e=(e,t)=>{Vt(()=>{if(!t.value)return;let n="normal";if(/m3u8(#|\?|$)/i.exec(e)?n="hls":/.flv(#|\?|$)/i.exec(e)&&(n="flv"),t.value&&n==="hls"&&(t.value.canPlayType("application/x-mpegURL")||t.value.canPlayType("application/vnd.apple.mpegURL"))&&(n="normal"),n==="hls"){const r=window.Hls;if(r&&r.isSupported()){const i=new r;i.loadSource(e),i.attachMedia(t.value)}}else if(n==="flv"){const r=window.flvjs;if(r&&r.isSupported()){const i=r.createPlayer({type:"flv",url:e});i.attachMediaElement(t.value),i.load()}}})},zP=e=>(rn("data-v-597c0901"),e=e(),on(),e),a7e={key:0,class:"load-error"},s7e=["src","autoplay","poster"],l7e={class:"bezel"},u7e=zP(()=>V("div",{class:"controller-mask"},null,-1)),c7e={class:"controller"},f7e={class:"icons icons-left"},d7e={class:"icon-content"},h7e={class:"volume"},p7e={class:"icon-content"},v7e=zP(()=>V("span",{class:"thumb"},null,-1)),g7e=[v7e],m7e={class:"time"},y7e={class:"ptime"},A7e={class:"dtime"},R7e={class:"icons icons-right"},b7e={class:"speed"},x7e={class:"icon speed-icon"},S7e=["onClick"],w7e={class:"icon-content"},M7e={class:"bar"},L7e=zP(()=>V("span",{class:"thumb"},null,-1)),T7e=[L7e],_7e=We({__name:"index",props:{width:{},height:{},src:{},poster:{default:""},autoplay:{type:Boolean,default:!1},scale:{default:1}},setup(e){const t=e,n=(X=0)=>{if(X===0||isNaN(X))return"00:00";const j=ae=>ae<10?"0"+ae:""+ae,se=Math.floor(X/3600),ne=Math.floor((X-se*3600)/60),re=Math.floor(X-se*3600-ne*60);return(se>0?[se,ne,re]:[ne,re]).map(j).join(":")},r=X=>X.getBoundingClientRect().left,i=he(),o=he(),a=he(),s=he(.5),l=he(!0),u=he(0),c=he(0),f=he(0),d=he(!1),h=he(!1),p=he(1),v=he(!1),g=he("00:00"),m=he("0"),y=Se(()=>n(u.value)),R=Se(()=>n(c.value)),A=Se(()=>u.value/c.value*100+"%"),x=Se(()=>f.value/c.value*100+"%"),S=Se(()=>s.value*100+"%"),L=he(!1),M=[{label:"2x",value:2},{label:"1.5x",value:1.5},{label:"1.25x",value:1.25},{label:"1x",value:1},{label:"0.75x",value:.75},{label:"0.5x",value:.5}],w=X=>{i.value&&(X=Math.max(X,0),X=Math.min(X,c.value),i.value.currentTime=X,u.value=X)},_=()=>{i.value&&(l.value=!1,i.value.play(),h.value=!0)},C=()=>{i.value&&(l.value=!0,i.value.pause(),h.value=!0)},O=()=>{l.value?_():C()},N=X=>{i.value&&(X=Math.max(X,0),X=Math.min(X,1),i.value.volume=X,s.value=X,i.value.muted&&X!==0&&(i.value.muted=!1))},P=X=>{i.value&&(i.value.playbackRate=X),p.value=X},F=()=>{var X;c.value=((X=i.value)==null?void 0:X.duration)||0},I=()=>{var X;u.value=((X=i.value)==null?void 0:X.currentTime)||0},W=()=>{d.value?(w(0),_()):C()},U=()=>{var X;f.value=(X=i.value)!=null&&X.buffered.length?i.value.buffered.end(i.value.buffered.length-1):0},Z=he(!1),ee=()=>Z.value=!0,B=X=>{if(!i.value||!o.value)return;let se=(("clientX"in X?X.clientX:X.changedTouches[0].clientX)-r(o.value))/o.value.clientWidth;se=Math.max(se,0),se=Math.min(se,1);const ne=se*c.value;i.value.currentTime=ne,u.value=ne},Y=X=>{if(!i.value||!o.value)return;let se=(("clientX"in X?X.clientX:X.changedTouches[0].clientX)-r(o.value))/o.value.clientWidth;se=Math.max(se,0),se=Math.min(se,1);const ne=se*c.value;i.value.currentTime=ne,u.value=ne,document.removeEventListener("mousemove",B),document.removeEventListener("touchmove",B),document.removeEventListener("mouseup",Y),document.removeEventListener("touchend",Y)},Q=()=>{document.addEventListener("mousemove",B),document.addEventListener("touchmove",B),document.addEventListener("mouseup",Y),document.addEventListener("touchend",Y)},K=X=>{if(!a.value)return;const se=(("clientX"in X?X.clientX:X.changedTouches[0].clientX)-r(a.value))/45;N(se)},te=()=>{document.removeEventListener("mousemove",K),document.removeEventListener("touchmove",K),document.removeEventListener("mouseup",te),document.removeEventListener("touchend",te)},J=()=>{document.addEventListener("mousemove",K),document.addEventListener("touchmove",K),document.addEventListener("mouseup",te),document.addEventListener("touchend",te)},de=X=>{if(!a.value)return;const j=(X.clientX-r(a.value))/45;N(j)},G=X=>{if(c.value&&o.value){const j=o.value.getBoundingClientRect().left,se=X.clientX-j;if(se<0||se>o.value.offsetWidth)return;const ne=c.value*(se/o.value.offsetWidth);m.value=`${se-(ne>=3600?25:20)}px`,g.value=n(ne),v.value=!0}},Ae=()=>{i.value&&(i.value.muted?(i.value.muted=!1,N(.5)):(i.value.muted=!0,N(0)))},ue=()=>{d.value=!d.value},ce=he(-1),le=he(!1),$=()=>{le.value=!1,clearTimeout(ce.value),ce.value=setTimeout(()=>{var X;(X=i.value)!=null&&X.played.length&&(le.value=!0)},3e3)};return o7e(t.src,i),(X,j)=>{const se=xe("IconPause"),ne=xe("IconPlayOne"),re=xe("IconVolumeMute"),ae=xe("IconVolumeNotice"),ve=xe("IconVolumeSmall");return D(),q("div",{class:ze(["video-player",{"hide-controller":le.value}]),style:Le({width:X.width*X.scale+"px",height:X.height*X.scale+"px",transform:`scale(${1/X.scale})`}),onMousemove:j[22]||(j[22]=fe=>$()),onClick:j[23]||(j[23]=fe=>$())},[V("div",{class:"video-wrap",onClick:j[8]||(j[8]=fe=>O())},[Z.value?(D(),q("div",a7e,"视频加载失败")):Ye("",!0),V("video",{class:"video",ref_key:"videoRef",ref:i,src:X.src,autoplay:X.autoplay,poster:X.poster,"webkit-playsinline":"",playsinline:"",onDurationchange:j[0]||(j[0]=fe=>F()),onTimeupdate:j[1]||(j[1]=fe=>I()),onEnded:j[2]||(j[2]=fe=>W()),onProgress:j[3]||(j[3]=fe=>U()),onPlay:j[4]||(j[4]=fe=>{$(),l.value=!1}),onPause:j[5]||(j[5]=fe=>$()),onError:j[6]||(j[6]=fe=>ee())},null,40,s7e),V("div",l7e,[V("span",{class:ze(["bezel-icon",{"bezel-transition":h.value}]),onAnimationend:j[7]||(j[7]=fe=>h.value=!1)},[l.value?(D(),Oe(se,{key:0})):(D(),Oe(ne,{key:1}))],34)])]),u7e,V("div",c7e,[V("div",f7e,[V("div",{class:"icon play-icon",onClick:j[9]||(j[9]=fe=>O())},[V("span",d7e,[l.value?(D(),Oe(ne,{key:0})):(D(),Oe(se,{key:1}))])]),V("div",h7e,[V("div",{class:"icon volume-icon",onClick:j[10]||(j[10]=fe=>Ae())},[V("span",p7e,[s.value===0?(D(),Oe(re,{key:0})):s.value===1?(D(),Oe(ae,{key:1})):(D(),Oe(ve,{key:2}))])]),V("div",{class:"volume-bar-wrap",onMousedown:j[11]||(j[11]=fe=>J()),onTouchstart:j[12]||(j[12]=fe=>J()),onClick:j[13]||(j[13]=fe=>de(fe))},[V("div",{class:"volume-bar",ref_key:"volumeBarRef",ref:a},[V("div",{class:"volume-bar-inner",style:Le({width:S.value})},g7e,4)],512)],32)]),V("span",m7e,[V("span",y7e,dt(y.value),1),Ue(" / "),V("span",A7e,dt(R.value),1)])]),V("div",R7e,[V("div",b7e,[V("div",x7e,[V("span",{class:"icon-content",onClick:j[14]||(j[14]=fe=>L.value=!L.value)},dt(p.value===1?"倍速":p.value+"x"),1),L.value?(D(),q("div",{key:0,class:"speed-menu",onMouseleave:j[15]||(j[15]=fe=>L.value=!1)},[(D(),q(Ee,null,qe(M,fe=>V("div",{class:ze(["speed-menu-item",{active:fe.value===p.value}]),key:fe.label,onClick:ge=>P(fe.value)},dt(fe.label),11,S7e)),64))],32)):Ye("",!0)])]),V("div",{class:"loop",onClick:j[16]||(j[16]=fe=>ue())},[V("div",{class:ze(["icon loop-icon",{active:d.value}])},[V("span",w7e,"循环"+dt(d.value?"开":"关"),1)],2)])]),V("div",{class:"bar-wrap",ref_key:"playBarWrap",ref:o,onMousedown:j[17]||(j[17]=fe=>Q()),onTouchstart:j[18]||(j[18]=fe=>Q()),onMousemove:j[19]||(j[19]=fe=>G(fe)),onMouseenter:j[20]||(j[20]=fe=>v.value=!0),onMouseleave:j[21]||(j[21]=fe=>v.value=!1)},[V("div",{class:ze(["bar-time",{hidden:!v.value}]),style:Le({left:m.value})},dt(g.value),7),V("div",M7e,[V("div",{class:"loaded",style:Le({width:x.value})},null,4),V("div",{class:"played",style:Le({width:A.value})},T7e,4)])],544)])],38)}}}),Iee=Be(_7e,[["__scopeId","data-v-597c0901"]]),O7e=We({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,{canvasScale:n}=Ve(pt()),r=(i,o=!0)=>{t.elementInfo.lock||(i.stopPropagation(),t.selectElement(i,t.elementInfo,o))};return(i,o)=>{const a=_n("contextmenu");return D(),q("div",{class:ze(["editable-element-video",{lock:i.elementInfo.lock}]),style:Le({top:i.elementInfo.top+"px",left:i.elementInfo.left+"px",width:i.elementInfo.width+"px",height:i.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:Le({transform:`rotate(${i.elementInfo.rotate}deg)`})},[Ge((D(),q("div",{class:"element-content",onMousedown:o[2]||(o[2]=s=>r(s,!1)),onTouchstart:o[3]||(o[3]=s=>r(s,!1))},[k(Iee,{width:i.elementInfo.width,height:i.elementInfo.height,src:i.elementInfo.src,poster:i.elementInfo.poster,scale:z(n)},null,8,["width","height","src","poster","scale"]),(D(),q(Ee,null,qe(["t","b","l","r"],s=>V("div",{class:ze(["handler-border",s]),key:s,onMousedown:o[0]||(o[0]=l=>r(l)),onTouchstart:o[1]||(o[1]=l=>r(l))},null,34)),64))],32)),[[a,i.contextmenus]])],4)],6)}}}),Nee=Be(O7e,[["__scopeId","data-v-c50d3bc7"]]),Fee=e=>(rn("data-v-32038f5c"),e=e(),on(),e),k7e=["src","autoplay"],P7e={class:"controller"},C7e={class:"icons"},I7e={class:"icon-content"},N7e={class:"volume"},F7e={class:"icon-content"},E7e=Fee(()=>V("span",{class:"thumb"},null,-1)),X7e=[E7e],W7e={class:"time"},V7e={class:"ptime"},D7e={class:"dtime"},U7e={class:"bar"},B7e=Fee(()=>V("span",{class:"thumb"},null,-1)),Y7e=[B7e],Z7e=We({__name:"AudioPlayer",props:{src:{},loop:{type:Boolean},autoplay:{type:Boolean,default:!1},scale:{default:1}},setup(e,{expose:t}){const n=e,r=(te=0)=>{if(te===0||isNaN(te))return"00:00";const J=ue=>ue<10?"0"+ue:""+ue,de=Math.floor(te/3600),G=Math.floor((te-de*3600)/60),Ae=Math.floor(te-de*3600-G*60);return(de>0?[de,G,Ae]:[G,Ae]).map(J).join(":")},i=te=>te.getBoundingClientRect().left,o=he(),a=he(),s=he(),l=he(.5),u=he(!0),c=he(0),f=he(0),d=he(0),h=he(!1),p=he("00:00"),v=he("0"),g=Se(()=>r(c.value)),m=Se(()=>r(f.value)),y=Se(()=>c.value/f.value*100+"%"),R=Se(()=>d.value/f.value*100+"%"),A=Se(()=>l.value*100+"%"),x=te=>{o.value&&(te=Math.max(te,0),te=Math.min(te,f.value),o.value.currentTime=te,c.value=te)},S=()=>{o.value&&(u.value=!1,o.value.play())},L=()=>{o.value&&(u.value=!0,o.value.pause())},M=()=>{u.value?S():L()},w=te=>{o.value&&(te=Math.max(te,0),te=Math.min(te,1),o.value.volume=te,l.value=te,o.value.muted&&te!==0&&(o.value.muted=!1))},_=()=>{var te;f.value=((te=o.value)==null?void 0:te.duration)||0},C=()=>{var te;c.value=((te=o.value)==null?void 0:te.currentTime)||0},O=()=>{u.value=!1},N=()=>{n.loop?(x(0),S()):L()},P=()=>{var te;d.value=(te=o.value)!=null&&te.buffered.length?o.value.buffered.end(o.value.buffered.length-1):0},F=()=>pn.error("视频加载失败"),I=te=>{if(!o.value||!a.value)return;let de=(("clientX"in te?te.clientX:te.changedTouches[0].clientX)-i(a.value))/a.value.clientWidth;de=Math.max(de,0),de=Math.min(de,1);const G=de*f.value;o.value.currentTime=G,c.value=G},W=te=>{if(!o.value||!a.value)return;let de=(("clientX"in te?te.clientX:te.changedTouches[0].clientX)-i(a.value))/a.value.clientWidth;de=Math.max(de,0),de=Math.min(de,1);const G=de*f.value;o.value.currentTime=G,c.value=G,document.removeEventListener("mousemove",I),document.removeEventListener("touchmove",I),document.removeEventListener("mouseup",W),document.removeEventListener("touchend",W)},U=()=>{document.addEventListener("mousemove",I),document.addEventListener("touchmove",I),document.addEventListener("mouseup",W),document.addEventListener("touchend",W)},Z=te=>{if(!s.value)return;const de=(("clientX"in te?te.clientX:te.changedTouches[0].clientX)-i(s.value))/45;w(de)},ee=()=>{document.removeEventListener("mousemove",Z),document.removeEventListener("touchmove",Z),document.removeEventListener("mouseup",ee),document.removeEventListener("touchend",ee)},B=()=>{document.addEventListener("mousemove",Z),document.addEventListener("touchmove",Z),document.addEventListener("mouseup",ee),document.addEventListener("touchend",ee)},Y=te=>{if(!s.value)return;const J=(te.clientX-i(s.value))/45;w(J)},Q=te=>{if(f.value&&a.value){const J=a.value.getBoundingClientRect().left,de=te.clientX-J;if(de<0||de>a.value.offsetWidth)return;const G=f.value*(de/a.value.offsetWidth);v.value=`${de-(G>=3600?25:20)}px`,p.value=r(G),h.value=!0}},K=()=>{o.value&&(o.value.muted?(o.value.muted=!1,w(.5)):(o.value.muted=!0,w(0)))};return t({toggle:M}),(te,J)=>{const de=xe("IconPlayOne"),G=xe("IconPause"),Ae=xe("IconVolumeMute"),ue=xe("IconVolumeNotice"),ce=xe("IconVolumeSmall");return D(),q("div",{class:"audio-player",style:Le({transform:`scale(${1/te.scale})`})},[V("audio",{class:"audio",ref_key:"audioRef",ref:o,src:te.src,autoplay:te.autoplay,onDurationchange:J[0]||(J[0]=le=>_()),onTimeupdate:J[1]||(J[1]=le=>C()),onPlay:J[2]||(J[2]=le=>O()),onEnded:J[3]||(J[3]=le=>N()),onProgress:J[4]||(J[4]=le=>P()),onError:J[5]||(J[5]=le=>F())},null,40,k7e),V("div",P7e,[V("div",C7e,[V("div",{class:"icon play-icon",onClick:J[6]||(J[6]=le=>M())},[V("span",I7e,[u.value?(D(),Oe(de,{key:0})):(D(),Oe(G,{key:1}))])]),V("div",N7e,[V("div",{class:"icon volume-icon",onClick:J[7]||(J[7]=le=>K())},[V("span",F7e,[l.value===0?(D(),Oe(Ae,{key:0})):l.value===1?(D(),Oe(ue,{key:1})):(D(),Oe(ce,{key:2}))])]),V("div",{class:"volume-bar-wrap",onMousedown:J[8]||(J[8]=le=>B()),onTouchstart:J[9]||(J[9]=le=>B()),onClick:J[10]||(J[10]=le=>Y(le))},[V("div",{class:"volume-bar",ref_key:"volumeBarRef",ref:s},[V("div",{class:"volume-bar-inner",style:Le({width:A.value})},X7e,4)],512)],32)])]),V("span",W7e,[V("span",V7e,dt(g.value),1),Ue(" / "),V("span",D7e,dt(m.value),1)]),V("div",{class:"bar-wrap",ref_key:"playBarWrap",ref:a,onMousedown:J[11]||(J[11]=le=>U()),onTouchstart:J[12]||(J[12]=le=>U()),onMousemove:J[13]||(J[13]=le=>Q(le)),onMouseenter:J[14]||(J[14]=le=>h.value=!0),onMouseleave:J[15]||(J[15]=le=>h.value=!1)},[V("div",{class:ze(["bar-time",{hidden:!h.value}]),style:Le({left:v.value})},dt(p.value),7),V("div",U7e,[V("div",{class:"loaded",style:Le({width:R.value})},null,4),V("div",{class:"played",style:Le({width:y.value})},Y7e,4)])],544)])],4)}}}),Eee=Be(Z7e,[["__scopeId","data-v-32038f5c"]]),Q7e=We({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,{canvasScale:n,handleElementId:r}=Ve(pt()),{viewportRatio:i,viewportSize:o}=Ve(st()),a=Se(()=>Math.min(t.elementInfo.width,t.elementInfo.height)+"px"),s=Se(()=>{const u=o.value,c=o.value*i.value,f=280/n.value,d=50/n.value,h=t.elementInfo.width,p=t.elementInfo.height,v=t.elementInfo.left,g=t.elementInfo.top;let m=0,y=p;return v+f>=u&&(m=h-f),g+p+d>=c&&(y=-d),{left:m+"px",top:y+"px"}}),l=u=>{t.elementInfo.lock||(u.stopPropagation(),t.selectElement(u,t.elementInfo))};return(u,c)=>{const f=xe("IconVolumeNotice"),d=_n("contextmenu");return D(),q("div",{class:ze(["editable-element-audio",{lock:u.elementInfo.lock}]),style:Le({top:u.elementInfo.top+"px",left:u.elementInfo.left+"px",width:u.elementInfo.width+"px",height:u.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:Le({transform:`rotate(${u.elementInfo.rotate}deg)`})},[Ge((D(),q("div",{class:"element-content",onMousedown:c[1]||(c[1]=h=>l(h)),onTouchstart:c[2]||(c[2]=h=>l(h))},[k(f,{class:"audio-icon",style:Le({fontSize:a.value,color:u.elementInfo.color})},null,8,["style"]),z(r)===u.elementInfo.id?(D(),Oe(Eee,{key:0,class:"audio-player",style:Le({...s.value}),src:u.elementInfo.src,loop:u.elementInfo.loop,scale:z(n),onMousedown:c[0]||(c[0]=Ft(()=>{},["stop"]))},null,8,["style","src","loop","scale"])):Ye("",!0)],32)),[[d,u.contextmenus]])],4)],6)}}}),Xee=Be(Q7e,[["__scopeId","data-v-07f623ea"]]),H7e=["id"],K7e=We({__name:"EditableElement",props:{elementInfo:{},elementIndex:{},isMultiSelect:{type:Boolean},selectElement:{type:Function},openLinkDialog:{type:Function}},setup(e){const t=e,n=Se(()=>({[Et.IMAGE]:_z,[Et.TEXT]:xJ,[Et.SHAPE]:wJ,[Et.LINE]:MJ,[Et.CHART]:Lee,[Et.TABLE]:Pee,[Et.LATEX]:Cee,[Et.VIDEO]:Nee,[Et.AUDIO]:Xee})[t.elementInfo.type]||null),{orderElement:r}=G2(),{alignElementToCanvas:i}=g3(),{combineElements:o,uncombineElements:a}=rk(),{deleteElement:s}=K2(),{lockElement:l,unlockElement:u}=JH(),{copyElement:c,pasteElement:f,cutElement:d}=ik(),{selectAllElements:h}=r3(),p=()=>t.elementInfo.lock?[{text:"解锁",handler:()=>u(t.elementInfo)}]:[{text:"剪切",subText:"Ctrl + X",handler:d},{text:"复制",subText:"Ctrl + C",handler:c},{text:"粘贴",subText:"Ctrl + V",handler:f},{divider:!0},{text:"水平居中",handler:()=>i(gn.HORIZONTAL),children:[{text:"水平垂直居中",handler:()=>i(gn.CENTER)},{text:"水平居中",handler:()=>i(gn.HORIZONTAL)},{text:"左对齐",handler:()=>i(gn.LEFT)},{text:"右对齐",handler:()=>i(gn.RIGHT)}]},{text:"垂直居中",handler:()=>i(gn.VERTICAL),children:[{text:"水平垂直居中",handler:()=>i(gn.CENTER)},{text:"垂直居中",handler:()=>i(gn.VERTICAL)},{text:"顶部对齐",handler:()=>i(gn.TOP)},{text:"底部对齐",handler:()=>i(gn.BOTTOM)}]},{divider:!0},{text:"置于顶层",disable:t.isMultiSelect&&!t.elementInfo.groupId,handler:()=>r(t.elementInfo,Wr.TOP),children:[{text:"置于顶层",handler:()=>r(t.elementInfo,Wr.TOP)},{text:"上移一层",handler:()=>r(t.elementInfo,Wr.UP)}]},{text:"置于底层",disable:t.isMultiSelect&&!t.elementInfo.groupId,handler:()=>r(t.elementInfo,Wr.BOTTOM),children:[{text:"置于底层",handler:()=>r(t.elementInfo,Wr.BOTTOM)},{text:"下移一层",handler:()=>r(t.elementInfo,Wr.DOWN)}]},{divider:!0},{text:"设置链接",handler:t.openLinkDialog},{text:t.elementInfo.groupId?"取消组合":"组合",subText:"Ctrl + G",handler:t.elementInfo.groupId?a:o,hide:!t.isMultiSelect},{text:"全选",subText:"Ctrl + A",handler:h},{text:"锁定",subText:"Ctrl + L",handler:l},{text:"删除",subText:"Delete",handler:s}];return(v,g)=>(D(),q("div",{class:"editable-element",ref:"elementRef",id:`editable-element-${v.elementInfo.id}`,style:Le({zIndex:v.elementIndex})},[(D(),Oe(xu(n.value),{elementInfo:v.elementInfo,selectElement:v.selectElement,contextmenus:p},null,8,["elementInfo","selectElement"]))],12,H7e))}}),G7e=We({__name:"MouseSelection",props:{top:{},left:{},width:{},height:{},quadrant:{}},setup(e){return(t,n)=>(D(),q("div",{class:ze(`mouse-selection quadrant-${t.quadrant}`),style:Le({top:t.top+"px",left:t.left+"px",width:t.width+"px",height:t.height+"px"})},null,6))}}),z7e=Be(G7e,[["__scopeId","data-v-053bfa3e"]]),J7e={class:"grid-lines"},$7e=["d","stroke"],j7e=We({__name:"GridLines",setup(e){const{canvasScale:t,gridLineSize:n}=Ve(pt()),{currentSlide:r,viewportRatio:i,viewportSize:o}=Ve(st()),a=Se(()=>{var u;return(u=r.value)==null?void 0:u.background}),s=Se(()=>{var f;const u=((f=a.value)==null?void 0:f.color)||"#fff",c=["#000","#fff"];return at.mostReadable(u,c,{includeFallbackColors:!0}).setAlpha(.5).toRgbString()}),l=Se(()=>{const u=o.value,c=o.value*i.value;let f="";for(let d=0;d<=Math.floor(c/n.value);d++)f+=`M0 ${d*n.value} L${u} ${d*n.value} `;for(let d=0;d<=Math.floor(u/n.value);d++)f+=`M${d*n.value} 0 L${d*n.value} ${c} `;return f});return(u,c)=>(D(),q("svg",J7e,[V("path",{style:Le({transform:`scale(${z(t)})`}),d:l.value,fill:"none",stroke:s.value,"stroke-width":"0.3","stroke-dasharray":"5"},null,12,$7e)]))}}),q7e=Be(j7e,[["__scopeId","data-v-93264269"]]),e4=e=>({backgroundStyle:Se(()=>{if(!e.value)return{backgroundColor:"#fff"};const{type:n,color:r,image:i,gradient:o}=e.value;if(n==="solid")return{backgroundColor:r};if(n==="image"&&i){const{src:a,size:s}=i;return a?s==="repeat"?{backgroundImage:`url(${a}`,backgroundRepeat:"repeat",backgroundSize:"contain"}:{backgroundImage:`url(${a}`,backgroundRepeat:"no-repeat",backgroundSize:s||"cover"}:{backgroundColor:"#fff"}}else if(n==="gradient"&&o){const{type:a,colors:s,rotate:l}=o,u=s.map(c=>`${c.color} ${c.pos}%`);return a==="radial"?{backgroundImage:`radial-gradient(${u.join(",")}`}:{backgroundImage:`linear-gradient(${l}deg, ${u.join(",")}`}}return{backgroundColor:"#fff"}})}),e9e=We({__name:"ViewportBackground",setup(e){const{gridLineSize:t}=Ve(pt()),{currentSlide:n}=Ve(st()),r=Se(()=>{var o;return(o=n.value)==null?void 0:o.background}),{backgroundStyle:i}=e4(r);return(o,a)=>(D(),q("div",{class:"viewport-background",style:Le(z(i))},[z(t)?(D(),Oe(q7e,{key:0})):Ye("",!0)],4))}}),t9e=Be(e9e,[["__scopeId","data-v-203ea8ff"]]),n9e=We({__name:"AlignmentLine",props:{type:{},axis:{},length:{},canvasScale:{}},setup(e){const t=e,n=Se(()=>t.axis.x*t.canvasScale+"px"),r=Se(()=>t.axis.y*t.canvasScale+"px"),i=Se(()=>t.type==="vertical"?{height:t.length*t.canvasScale+"px"}:{width:t.length*t.canvasScale+"px"});return(o,a)=>(D(),q("div",{class:"alignment-line",style:Le({left:n.value,top:r.value})},[V("div",{class:ze(["line",o.type]),style:Le(i.value)},null,6)],4))}}),Wee=Be(n9e,[["__scopeId","data-v-7cd3d25d"]]),r9e={class:"ruler"},i9e={key:0},o9e={key:0},a9e=We({__name:"Ruler",props:{viewportStyles:{},elementList:{}},setup(e){const t=e,{canvasScale:n,activeElementIdList:r}=Ve(pt()),{viewportRatio:i,viewportSize:o}=Ve(st()),a=he(null);Bv(()=>{const l=t.elementList.filter(u=>r.value.includes(u.id));if(!l.length)return a.value=null;a.value=nc(l)});const s=Se(()=>t.viewportStyles.width*n.value/(o.value/100));return(l,u)=>(D(),q("div",r9e,[V("div",{class:"h",style:Le({width:l.viewportStyles.width*z(n)+"px",left:l.viewportStyles.left+"px"})},[(D(),q(Ee,null,qe(20,c=>V("div",{class:ze(["ruler-marker-100",{hide:s.value<36,omit:s.value<72}]),key:`h-marker-100-${c}`,style:Le({width:s.value+"px"})},[c*100<=z(o)?(D(),q("span",i9e,dt(c*100),1)):Ye("",!0)],6)),64)),a.value?(D(),q("div",{key:0,class:"range",style:Le({left:a.value.minX*z(n)+"px",width:(a.value.maxX-a.value.minX)*z(n)+"px"})},null,4)):Ye("",!0)],4),V("div",{class:"v",style:Le({height:l.viewportStyles.height*z(n)+"px",top:l.viewportStyles.top+"px"})},[(D(),q(Ee,null,qe(20,c=>V("div",{class:ze(["ruler-marker-100",{hide:s.value<36,omit:s.value<72}]),key:`v-marker-100-${c}`,style:Le({height:s.value+"px"})},[c*100<=z(o)*z(i)?(D(),q("span",o9e,dt(c*100),1)):Ye("",!0)],6)),64)),a.value?(D(),q("div",{key:0,class:"range",style:Le({top:a.value.minY*z(n)+"px",height:(a.value.maxY-a.value.minY)*z(n)+"px"})},null,4)):Ye("",!0)],4)]))}}),s9e=Be(a9e,[["__scopeId","data-v-c6df5cc2"]]),l9e=["width","height"],u9e=["d"],c9e=We({__name:"ElementCreateSelection",emits:["created"],setup(e,{emit:t}){const n=t,r=pt(),{creatingElement:i}=Ve(r),{ctrlOrShiftKeyActive:o}=Ve(Ns()),a=he(),s=he(),l=he(),u=he({x:0,y:0});Vt(()=>{if(!l.value)return;const{x:h,y:p}=l.value.getBoundingClientRect();u.value={x:h,y:p}});const c=h=>{let p=!0;const v=h.pageX,g=h.pageY;a.value=[v,g],document.onmousemove=m=>{if(!i.value||!p)return;let y=m.pageX,R=m.pageY;if(o.value){const A=y-v,x=R-g,S=Math.abs(A),L=Math.abs(x);if(i.value.type==="shape"){const M=x>0&&A<0||x<0&&A>0;S>L?R=M?g-A:g+A:y=M?v-x:v+x}else i.value.type==="line"&&(S>L?R=g:y=v)}s.value=[y,R]},document.onmouseup=m=>{var x,S;if(document.onmousemove=null,document.onmouseup=null,m.button===2){setTimeout(()=>r.setCreatingElement(null),0);return}p=!1;const y=m.pageX,R=m.pageY,A=30;if(((x=i.value)==null?void 0:x.type)==="line"&&(Math.abs(y-v)>=A||Math.abs(R-g)>=A))n("created",{start:a.value,end:s.value});else if(((S=i.value)==null?void 0:S.type)!=="line"&&Math.abs(y-v)>=A&&Math.abs(R-g)>=A)n("created",{start:a.value,end:s.value});else{const M=Math.min(y,v),w=Math.min(R,g),_=Math.max(y,v),C=Math.max(R,g),O=_-M>=A?_-M:200,N=C-w>=A?C-w:200;n("created",{start:[M,w],end:[M+O,w+N]})}}},f=Se(()=>{if(!a.value||!s.value||!i.value||i.value.type!=="line")return null;const[h,p]=a.value,[v,g]=s.value,m=Math.min(h,v),y=Math.max(h,v),R=Math.min(p,g),A=Math.max(p,g),x=y-m>=24?y-m:24,S=A-R>=24?A-R:24,L=h===m?0:y-m,M=p===R?0:A-R,w=v===m?0:y-m,_=g===R?0:A-R,C=`M${L}, ${M} L${w}, ${_}`;return{svgWidth:x,svgHeight:S,startX:L,startY:M,endX:w,endY:_,path:C}}),d=Se(()=>{if(!a.value||!s.value)return{};const[h,p]=a.value,[v,g]=s.value,m=Math.min(h,v),y=Math.max(h,v),R=Math.min(p,g),A=Math.max(p,g),x=y-m,S=A-R;return{left:m-u.value.x+"px",top:R-u.value.y+"px",width:x+"px",height:S+"px"}});return(h,p)=>{var v,g;return D(),q("div",{class:"element-create-selection",ref_key:"selectionRef",ref:l,onMousedown:p[0]||(p[0]=Ft(m=>c(m),["stop"])),onContextmenu:p[1]||(p[1]=Ft(()=>{},["stop","prevent"]))},[a.value&&s.value?(D(),q("div",{key:0,class:ze(["selection",(v=z(i))==null?void 0:v.type]),style:Le(d.value)},[((g=z(i))==null?void 0:g.type)==="line"&&f.value?(D(),q("svg",{key:0,overflow:"visible",width:f.value.svgWidth,height:f.value.svgHeight},[V("path",{d:f.value.path,stroke:"#d14424",fill:"none","stroke-width":"2"},null,8,u9e)],8,l9e)):Ye("",!0)],6)):Ye("",!0)],544)}}}),f9e=Be(c9e,[["__scopeId","data-v-7b17a883"]]),d9e={overflow:"visible"},h9e=["d","fill"],p9e=We({__name:"ShapeCreateCanvas",emits:["created"],setup(e,{emit:t}){const n=t,r=pt(),{ctrlOrShiftKeyActive:i}=Ve(Ns()),{theme:o}=Ve(st()),a=he(),s=he(!1),l=he({x:0,y:0});Vt(()=>{if(!a.value)return;const{x:A,y:x}=a.value.getBoundingClientRect();l.value={x:A,y:x}});const u=he(null),c=he([]),f=he(!1),d=(A,x=!1)=>{let S=A.pageX-l.value.x,L=A.pageY-l.value.y;if(x)return{pageX:S,pageY:L};if(i.value&&c.value.length){const[M,w]=c.value[c.value.length-1];Math.abs(M-S)-Math.abs(w-L)>0?L=w:S=M}return{pageX:S,pageY:L}},h=A=>{if(s.value){const{pageX:L,pageY:M}=d(A,!0);c.value.push([L,M]),u.value=null;return}const{pageX:x,pageY:S}=d(A);if(u.value=[x,S],c.value.length>=2){const[L,M]=c.value[0];Math.abs(L-x)<5&&Math.abs(M-S)<5?f.value=!0:f.value=!1}else f.value=!1},p=Se(()=>{let A="";for(let x=0;x{const x=c.value.map(I=>I[0]),S=c.value.map(I=>I[1]),L=Math.min(...x),M=Math.min(...S),w=Math.max(...x),_=Math.max(...S),C=c.value.map(I=>[I[0]-L,I[1]-M]);let O="";for(let I=0;I{const{pageX:x,pageY:S}=d(A);s.value=!0,f.value?n("created",v()):c.value.push([x,S]),document.onmouseup=()=>{s.value=!1}},m=()=>{r.setCreatingCustomShapeState(!1)},y=()=>{n("created",{...v(!1),fill:"rgba(0, 0, 0, 0)",outline:{width:2,color:o.value.themeColor,style:"solid"}}),m()},R=A=>{const x=A.key.toUpperCase();x===yt.ESC&&m(),x===yt.ENTER&&y()};return Vt(()=>{pn.success("点击绘制任意形状,首尾闭合完成绘制,按 ESC 键或鼠标右键取消,按 ENTER 键提前完成",{duration:0}),document.addEventListener("keydown",R)}),En(()=>{document.removeEventListener("keydown",R),pn.closeAll()}),(A,x)=>(D(),q("div",{class:"shape-create-canvas",ref_key:"shapeCanvasRef",ref:a,onMousedown:x[0]||(x[0]=Ft(S=>g(S),["stop"])),onMousemove:x[1]||(x[1]=S=>h(S)),onContextmenu:x[2]||(x[2]=Ft(S=>m(),["stop","prevent"]))},[(D(),q("svg",d9e,[V("path",{d:p.value,stroke:"#d14424",fill:f.value?"rgba(226, 83, 77, 0.15)":"none","stroke-width":"2"},null,8,h9e)]))],544))}}),v9e=Be(p9e,[["__scopeId","data-v-8ea8c340"]]),y0=(e,t)=>{const n=Se(()=>[{direction:Rt.LEFT_TOP,style:{}},{direction:Rt.TOP,style:{left:e.value/2+"px"}},{direction:Rt.RIGHT_TOP,style:{left:e.value+"px"}},{direction:Rt.LEFT,style:{top:t.value/2+"px"}},{direction:Rt.RIGHT,style:{left:e.value+"px",top:t.value/2+"px"}},{direction:Rt.LEFT_BOTTOM,style:{top:t.value+"px"}},{direction:Rt.BOTTOM,style:{left:e.value/2+"px",top:t.value+"px"}},{direction:Rt.RIGHT_BOTTOM,style:{left:e.value+"px",top:t.value+"px"}}]),r=Se(()=>[{direction:Rt.LEFT,style:{top:t.value/2+"px"}},{direction:Rt.RIGHT,style:{left:e.value+"px",top:t.value/2+"px"}}]),i=Se(()=>[{direction:Rt.TOP,style:{left:e.value/2+"px"}},{direction:Rt.BOTTOM,style:{left:e.value/2+"px",top:t.value+"px"}}]),o=Se(()=>[{type:mg.T,style:{width:e.value+"px"}},{type:mg.B,style:{top:t.value+"px",width:e.value+"px"}},{type:mg.L,style:{height:t.value+"px"}},{type:mg.R,style:{left:e.value+"px",height:t.value+"px"}}]);return{resizeHandlers:n,textElementResizeHandlers:r,verticalTextElementResizeHandlers:i,borderLines:o}},g9e=We({__name:"ResizeHandler",props:{type:{},rotate:{default:0}},setup(e){const t=e,n=Se(()=>{const r="rotate-",i=t.rotate;return i>-22.5&&i<=22.5?r+0:i>22.5&&i<=67.5?r+45:i>67.5&&i<=112.5?r+90:i>112.5&&i<=157.5?r+135:i>157.5||i<=-157.5?r+0:i>-157.5&&i<=-112.5?r+45:i>-112.5&&i<=-67.5?r+90:i>-67.5&&i<=-22.5?r+135:r+0});return(r,i)=>(D(),q("div",{class:ze(["resize-handler",n.value,r.type])},null,2))}}),gd=Be(g9e,[["__scopeId","data-v-bb3f9e62"]]),m9e=We({__name:"BorderLine",props:{type:{},isWide:{type:Boolean,default:!1}},setup(e){return(t,n)=>(D(),q("div",{class:ze(["border-line",t.type,{wide:t.isWide}])},null,2))}}),A0=Be(m9e,[["__scopeId","data-v-7114fb45"]]),y9e=We({__name:"MultiSelectOperate",props:{elementList:{},scaleMultiElement:{type:Function}},setup(e){const t=e,{activeElementIdList:n,canvasScale:r}=Ve(pt()),i=Se(()=>t.elementList.filter(d=>n.value.includes(d.id))),o=he({minX:0,maxX:0,minY:0,maxY:0}),a=Se(()=>(o.value.maxX-o.value.minX)*r.value),s=Se(()=>(o.value.maxY-o.value.minY)*r.value),{resizeHandlers:l,borderLines:u}=y0(a,s);Bv(()=>{const{minX:d,maxX:h,minY:p,maxY:v}=nc(i.value);o.value={minX:d,maxX:h,minY:p,maxY:v}});const f=Se(()=>i.value.some(d=>!((d.type==="image"||d.type==="shape")&&!d.rotate)));return(d,h)=>(D(),q("div",{class:"multi-select-operate",style:Le({left:o.value.minX*z(r)+"px",top:o.value.minY*z(r)+"px"})},[(D(!0),q(Ee,null,qe(z(u),p=>(D(),Oe(A0,{key:p.type,type:p.type,style:Le(p.style)},null,8,["type","style"]))),128)),f.value?Ye("",!0):(D(!0),q(Ee,{key:0},qe(z(l),p=>(D(),Oe(gd,{key:p.direction,type:p.direction,style:Le(p.style),onMousedown:Ft(v=>d.scaleMultiElement(v,o.value,p.direction),["stop"])},null,8,["type","style","onMousedown"]))),128))],4))}}),A9e=Be(y9e,[["__scopeId","data-v-135c8cb7"]]),R9e={},b9e={class:"rotate-handler"};function x9e(e,t){return D(),q("div",b9e)}const l1=Be(R9e,[["render",x9e],["__scopeId","data-v-9f21fc0f"]]),S9e={inheritAttrs:!1},w9e=We({...S9e,__name:"ImageElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(e){const t=e,{canvasScale:n,clipingImageElementId:r}=Ve(pt()),i=Se(()=>r.value===t.elementInfo.id),o=Se(()=>t.elementInfo.width*n.value),a=Se(()=>t.elementInfo.height*n.value),{resizeHandlers:s,borderLines:l}=y0(o,a);return(u,c)=>(D(),q("div",{class:ze(["image-element-operate",{cliping:i.value}])},[(D(!0),q(Ee,null,qe(z(l),f=>(D(),Oe(A0,{class:"operate-border-line",key:f.type,type:f.type,style:Le(f.style)},null,8,["type","style"]))),128)),u.handlerVisible?(D(),q(Ee,{key:0},[(D(!0),q(Ee,null,qe(z(s),f=>(D(),Oe(gd,{class:"operate-resize-handler",key:f.direction,type:f.direction,rotate:u.elementInfo.rotate,style:Le(f.style),onMousedown:Ft(d=>u.scaleElement(d,u.elementInfo,f.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),k(l1,{class:"operate-rotate-handler",style:Le({left:o.value/2+"px"}),onMousedown:c[0]||(c[0]=Ft(f=>u.rotateElement(f,u.elementInfo),["stop"]))},null,8,["style"])],64)):Ye("",!0)],2))}}),M9e=Be(w9e,[["__scopeId","data-v-2a1bef4e"]]),L9e={class:"text-element-operate"},T9e={inheritAttrs:!1},_9e=We({...T9e,__name:"TextElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(e){const t=e,{canvasScale:n}=Ve(pt()),r=Se(()=>t.elementInfo.width*n.value),i=Se(()=>t.elementInfo.height*n.value),{textElementResizeHandlers:o,verticalTextElementResizeHandlers:a,borderLines:s}=y0(r,i),l=Se(()=>t.elementInfo.vertical?a.value:o.value);return(u,c)=>(D(),q("div",L9e,[(D(!0),q(Ee,null,qe(z(s),f=>(D(),Oe(A0,{class:"operate-border-line",key:f.type,type:f.type,style:Le(f.style)},null,8,["type","style"]))),128)),u.handlerVisible?(D(),q(Ee,{key:0},[(D(!0),q(Ee,null,qe(l.value,f=>(D(),Oe(gd,{class:"operate-resize-handler",key:f.direction,type:f.direction,rotate:u.elementInfo.rotate,style:Le(f.style),onMousedown:Ft(d=>u.scaleElement(d,u.elementInfo,f.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),k(l1,{class:"operate-rotate-handler",style:Le({left:r.value/2+"px"}),onMousedown:c[0]||(c[0]=Ft(f=>u.rotateElement(f,u.elementInfo),["stop"]))},null,8,["style"])],64)):Ye("",!0)]))}}),O9e={class:"shape-element-operate"},k9e=["onMousedown"],P9e={inheritAttrs:!1},C9e=We({...P9e,__name:"ShapeElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function},moveShapeKeypoint:{type:Function}},setup(e){const t=e,{canvasScale:n}=Ve(pt()),r=Se(()=>t.elementInfo.width*n.value),i=Se(()=>t.elementInfo.height*n.value),{resizeHandlers:o,borderLines:a}=y0(r,i),s=Se(()=>{if(!t.elementInfo.pathFormula||t.elementInfo.keypoints===void 0)return[];const l=f0[t.elementInfo.pathFormula];return t.elementInfo.keypoints.map((u,c)=>{const f=l.getBaseSize[c],d=l.relative[c],h=f(t.elementInfo.width,t.elementInfo.height)*u;let p={};return d==="left"?p={left:h*n.value+"px"}:d==="right"?p={left:(t.elementInfo.width-h)*n.value+"px"}:d==="center"?p={left:(t.elementInfo.width-h)/2*n.value+"px"}:d==="top"?p={top:h*n.value+"px"}:d==="bottom"?p={top:(t.elementInfo.height-h)*n.value+"px"}:d==="left_bottom"?p={left:h*n.value+"px",top:t.elementInfo.height*n.value+"px"}:d==="right_bottom"?p={left:(t.elementInfo.width-h)*n.value+"px",top:t.elementInfo.height*n.value+"px"}:d==="top_right"?p={left:t.elementInfo.width*n.value+"px",top:h*n.value+"px"}:d==="bottom_right"&&(p={left:t.elementInfo.width*n.value+"px",top:(t.elementInfo.height-h)*n.value+"px"}),{keypoint:u,styles:p}})});return(l,u)=>(D(),q("div",O9e,[(D(!0),q(Ee,null,qe(z(a),c=>(D(),Oe(A0,{class:"operate-border-line",key:c.type,type:c.type,style:Le(c.style)},null,8,["type","style"]))),128)),l.handlerVisible?(D(),q(Ee,{key:0},[(D(!0),q(Ee,null,qe(z(o),c=>(D(),Oe(gd,{class:"operate-resize-handler",key:c.direction,type:c.direction,rotate:l.elementInfo.rotate,style:Le(c.style),onMousedown:Ft(f=>l.scaleElement(f,l.elementInfo,c.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),k(l1,{class:"operate-rotate-handler",style:Le({left:r.value/2+"px"}),onMousedown:u[0]||(u[0]=Ft(c=>l.rotateElement(c,l.elementInfo),["stop"]))},null,8,["style"]),(D(!0),q(Ee,null,qe(s.value,(c,f)=>(D(),q("div",{class:"operate-keypoint-handler",key:f,style:Le(c.styles),onMousedown:Ft(d=>l.moveShapeKeypoint(d,l.elementInfo,f),["stop"])},null,44,k9e))),128))],64)):Ye("",!0)]))}}),I9e=Be(C9e,[["__scopeId","data-v-11747e5a"]]),N9e={class:"line-element-operate"},F9e=["width","height","stroke"],E9e={key:0},X9e=["x1","y1","x2","y2"],W9e=["x1","y1","x2","y2"],V9e=["x1","y1","x2","y2"],D9e=["x1","y1","x2","y2"],U9e={inheritAttrs:!1},B9e=We({...U9e,__name:"LineElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},dragLineElement:{type:Function}},setup(e){const t=e,{canvasScale:n}=Ve(pt()),r=Se(()=>Math.max(t.elementInfo.start[0],t.elementInfo.end[0])),i=Se(()=>Math.max(t.elementInfo.start[1],t.elementInfo.end[1])),o=Se(()=>{const a=[{handler:Go.START,style:{left:t.elementInfo.start[0]*n.value+"px",top:t.elementInfo.start[1]*n.value+"px"}},{handler:Go.END,style:{left:t.elementInfo.end[0]*n.value+"px",top:t.elementInfo.end[1]*n.value+"px"}}];if(t.elementInfo.curve||t.elementInfo.broken||t.elementInfo.broken2){const s=t.elementInfo.curve||t.elementInfo.broken||t.elementInfo.broken2;a.push({handler:Go.C,style:{left:s[0]*n.value+"px",top:s[1]*n.value+"px"}})}else if(t.elementInfo.cubic){const[s,l]=t.elementInfo.cubic;a.push({handler:Go.C1,style:{left:s[0]*n.value+"px",top:s[1]*n.value+"px"}}),a.push({handler:Go.C2,style:{left:l[0]*n.value+"px",top:l[1]*n.value+"px"}})}return a});return(a,s)=>(D(),q("div",N9e,[a.handlerVisible?(D(),q(Ee,{key:0},[(D(!0),q(Ee,null,qe(o.value,l=>(D(),Oe(gd,{class:"operate-resize-handler",key:l.handler,style:Le(l.style),onMousedown:Ft(u=>a.dragLineElement(u,a.elementInfo,l.handler),["stop"])},null,8,["style","onMousedown"]))),128)),(D(),q("svg",{width:r.value||1,height:i.value||1,stroke:a.elementInfo.color,overflow:"visible",style:Le({transform:`scale(${z(n)})`})},[a.elementInfo.curve?(D(),q("g",E9e,[V("line",{class:"anchor-line",x1:a.elementInfo.start[0],y1:a.elementInfo.start[1],x2:a.elementInfo.curve[0],y2:a.elementInfo.curve[1]},null,8,X9e),V("line",{class:"anchor-line",x1:a.elementInfo.end[0],y1:a.elementInfo.end[1],x2:a.elementInfo.curve[0],y2:a.elementInfo.curve[1]},null,8,W9e)])):Ye("",!0),a.elementInfo.cubic?(D(!0),q(Ee,{key:1},qe(a.elementInfo.cubic,(l,u)=>(D(),q("g",{key:u},[u===0?(D(),q("line",{key:0,class:"anchor-line",x1:a.elementInfo.start[0],y1:a.elementInfo.start[1],x2:l[0],y2:l[1]},null,8,V9e)):Ye("",!0),u===1?(D(),q("line",{key:1,class:"anchor-line",x1:a.elementInfo.end[0],y1:a.elementInfo.end[1],x2:l[0],y2:l[1]},null,8,D9e)):Ye("",!0)]))),128)):Ye("",!0)],12,F9e))],64)):Ye("",!0)]))}}),Y9e=Be(B9e,[["__scopeId","data-v-9dea4d6a"]]),Z9e={class:"table-element-operate"},Q9e={inheritAttrs:!1},H9e=We({...Q9e,__name:"TableElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(e){const t=e,{canvasScale:n}=Ve(pt()),r=Se(()=>t.elementInfo.outline.width||1),i=Se(()=>(t.elementInfo.width+r.value)*n.value),o=Se(()=>t.elementInfo.height*n.value),{resizeHandlers:a,borderLines:s}=y0(i,o);return(l,u)=>(D(),q("div",Z9e,[(D(!0),q(Ee,null,qe(z(s),c=>(D(),Oe(A0,{class:"operate-border-line",key:c.type,type:c.type,style:Le(c.style)},null,8,["type","style"]))),128)),l.handlerVisible?(D(),q(Ee,{key:0},[(D(!0),q(Ee,null,qe(z(a),c=>(D(),Oe(gd,{class:"operate-resize-handler",key:c.direction,type:c.direction,rotate:l.elementInfo.rotate,style:Le(c.style),onMousedown:Ft(f=>l.scaleElement(f,l.elementInfo,c.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),k(l1,{class:"operate-rotate-handler",style:Le({left:i.value/2+"px"}),onMousedown:u[0]||(u[0]=Ft(c=>l.rotateElement(c,l.elementInfo),["stop"]))},null,8,["style"])],64)):Ye("",!0)]))}}),K9e={class:"common-element-operate"},G9e={inheritAttrs:!1},ER=We({...G9e,__name:"CommonElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(e){const t=e,{canvasScale:n}=Ve(pt()),r=Se(()=>t.elementInfo.width*n.value),i=Se(()=>t.elementInfo.height*n.value),{resizeHandlers:o,borderLines:a}=y0(r,i),s=Se(()=>["chart","video","audio"].includes(t.elementInfo.type));return(l,u)=>(D(),q("div",K9e,[(D(!0),q(Ee,null,qe(z(a),c=>(D(),Oe(A0,{class:"operate-border-line",key:c.type,type:c.type,style:Le(c.style)},null,8,["type","style"]))),128)),l.handlerVisible?(D(),q(Ee,{key:0},[(D(!0),q(Ee,null,qe(z(o),c=>(D(),Oe(gd,{class:"operate-resize-handler",key:c.direction,type:c.direction,rotate:l.elementInfo.rotate,style:Le(c.style),onMousedown:Ft(f=>l.scaleElement(f,l.elementInfo,c.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),s.value?Ye("",!0):(D(),Oe(l1,{key:0,class:"operate-rotate-handler",style:Le({left:r.value/2+"px"}),onMousedown:u[0]||(u[0]=Ft(c=>l.rotateElement(c,l.elementInfo),["stop"]))},null,8,["style"]))],64)):Ye("",!0)]))}}),Vee=()=>{const e=st(),{addHistorySnapshot:t}=nn();return{setLink:(i,o)=>{const a=/^(https?):\/\/[\w\-]+(\.[\w\-]+)+([\w\-.,@?^=%&:\/~+#]*[\w\-@?^=%&\/~+#])?$/;if(o.type==="web"&&!a.test(o.target))return pn.error("不是正确的网页链接地址"),!1;if(o.type==="slide"&&!o.target)return pn.error("请先选择链接目标"),!1;const s={link:o};return e.updateElement({id:i.id,props:s}),t(),!0},removeLink:i=>{e.removeElementProps({id:i.id,propName:"link"}),t()}}},z9e=We({__name:"Divider",props:{type:{default:"horizontal"},margin:{default:-1}},setup(e){return(t,n)=>(D(),q("div",{class:ze(["divider",t.type]),style:Le({margin:t.type==="horizontal"?`${t.margin>=0?t.margin:24}px 0`:`0 ${t.margin>=0?t.margin:8}px`})},null,6))}}),Ht=Be(z9e,[["__scopeId","data-v-80adabfa"]]),J9e=["href"],$9e={class:"btns"},j9e=We({__name:"LinkHandler",props:{elementInfo:{},link:{},openLinkDialog:{type:Function}},setup(e){const t=e,n=pt(),r=st(),{canvasScale:i}=Ve(n),{slides:o}=Ve(r),{removeLink:a}=Vee(),s=Se(()=>t.elementInfo.type==="line"?0:t.elementInfo.height),l=u=>{const c=o.value.findIndex(f=>f.id===u);c!==-1&&(n.setActiveElementIdList([]),r.updateSlideIndex(c))};return(u,c)=>(D(),q("div",{class:"link-handler",style:Le({top:s.value*z(i)+10+"px"})},[u.link.type==="web"?(D(),q("a",{key:0,class:"link",href:u.link.target,target:"_blank"},dt(u.link.target),9,J9e)):(D(),q("a",{key:1,class:"link",onClick:c[0]||(c[0]=f=>l(u.link.target))},"幻灯片页面 "+dt(u.link.target),1)),V("div",$9e,[V("div",{class:"btn",onClick:c[1]||(c[1]=f=>u.openLinkDialog())},"更换"),k(Ht,{type:"vertical"}),V("div",{class:"btn",onClick:c[2]||(c[2]=f=>z(a)(u.elementInfo))},"移除")])],4))}}),q9e=Be(j9e,[["__scopeId","data-v-821fa8e0"]]),eFe={key:1,class:"animation-index"},tFe=We({__name:"index",props:{elementInfo:{},isSelected:{type:Boolean},isActive:{type:Boolean},isActiveGroupElement:{type:Boolean},isMultiSelect:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function},dragLineElement:{type:Function},moveShapeKeypoint:{type:Function},openLinkDialog:{type:Function}},setup(e){const t=e,{canvasScale:n,toolbarState:r}=Ve(pt()),{formatedAnimations:i}=Ve(st()),o=Se(()=>({[Et.IMAGE]:M9e,[Et.TEXT]:_9e,[Et.SHAPE]:I9e,[Et.LINE]:Y9e,[Et.TABLE]:H9e,[Et.CHART]:ER,[Et.LATEX]:ER,[Et.VIDEO]:ER,[Et.AUDIO]:ER})[t.elementInfo.type]||null),a=Se(()=>{const u=[];for(let c=0;cd.elId).includes(t.elementInfo.id)&&u.push(c);return u}),s=Se(()=>"rotate"in t.elementInfo?t.elementInfo.rotate:0),l=Se(()=>"height"in t.elementInfo?t.elementInfo.height:0);return(u,c)=>(D(),q("div",{class:ze(["operate",{"multi-select":u.isMultiSelect&&!u.isActive}]),style:Le({top:u.elementInfo.top*z(n)+"px",left:u.elementInfo.left*z(n)+"px",transform:`rotate(${s.value}deg)`,transformOrigin:`${u.elementInfo.width*z(n)/2}px ${l.value*z(n)/2}px`})},[u.isSelected?(D(),Oe(xu(o.value),{key:0,elementInfo:u.elementInfo,handlerVisible:!u.elementInfo.lock&&(u.isActiveGroupElement||!u.isMultiSelect),rotateElement:u.rotateElement,scaleElement:u.scaleElement,dragLineElement:u.dragLineElement,moveShapeKeypoint:u.moveShapeKeypoint},null,8,["elementInfo","handlerVisible","rotateElement","scaleElement","dragLineElement","moveShapeKeypoint"])):Ye("",!0),z(r)==="elAnimation"&&a.value.length?(D(),q("div",eFe,[(D(!0),q(Ee,null,qe(a.value,f=>(D(),q("div",{class:"index-item",key:f},dt(f+1),1))),128))])):Ye("",!0),u.isActive&&u.elementInfo.link?(D(),Oe(q9e,{key:2,elementInfo:u.elementInfo,link:u.elementInfo.link,openLinkDialog:u.openLinkDialog,onMousedown:c[0]||(c[0]=Ft(()=>{},["stop"]))},null,8,["elementInfo","link","openLinkDialog"])):Ye("",!0)],6))}}),nFe=Be(tFe,[["__scopeId","data-v-7c6be7e7"]]),rFe=["src"],iFe=We({__name:"BaseImageElement",props:{elementInfo:{}},setup(e){const t=e,n=Se(()=>t.elementInfo.shadow),{shadowStyle:r}=hd(n),i=Se(()=>t.elementInfo.flipH),o=Se(()=>t.elementInfo.flipV),{flipStyle:a}=m3(i,o),s=Se(()=>t.elementInfo),{clipShape:l,imgPosition:u}=kk(s),c=Se(()=>t.elementInfo.filters),{filter:f}=Mz(c);return(d,h)=>(D(),q("div",{class:"base-element-image",style:Le({top:d.elementInfo.top+"px",left:d.elementInfo.left+"px",width:d.elementInfo.width+"px",height:d.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:Le({transform:`rotate(${d.elementInfo.rotate}deg)`})},[V("div",{class:"element-content",style:Le({filter:z(r)?`drop-shadow(${z(r)})`:"",transform:z(a)})},[k(Lz,{elementInfo:d.elementInfo},null,8,["elementInfo"]),V("div",{class:"image-content",style:Le({clipPath:z(l).style})},[V("img",{src:d.elementInfo.src,draggable:!1,style:Le({top:z(u).top,left:z(u).left,width:z(u).width,height:z(u).height,filter:z(f)}),alt:""},null,12,rFe),d.elementInfo.colorMask?(D(),q("div",{key:0,class:"color-mask",style:Le({backgroundColor:d.elementInfo.colorMask})},null,4)):Ye("",!0)],4)],4)],4)],4))}}),Dee=Be(iFe,[["__scopeId","data-v-67c9bdc0"]]),oFe=["innerHTML"],aFe=We({__name:"BaseTextElement",props:{elementInfo:{},target:{}},setup(e){const t=e,n=Se(()=>t.elementInfo.shadow),{shadowStyle:r}=hd(n);return(i,o)=>(D(),q("div",{class:"base-element-text",style:Le({top:i.elementInfo.top+"px",left:i.elementInfo.left+"px",width:i.elementInfo.width+"px",height:i.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:Le({transform:`rotate(${i.elementInfo.rotate}deg)`})},[V("div",{class:"element-content",style:Le({width:i.elementInfo.vertical?"auto":i.elementInfo.width+"px",height:i.elementInfo.vertical?i.elementInfo.height+"px":"auto",backgroundColor:i.elementInfo.fill,opacity:i.elementInfo.opacity,textShadow:z(r),lineHeight:i.elementInfo.lineHeight,letterSpacing:(i.elementInfo.wordSpace||0)+"px",color:i.elementInfo.defaultColor,fontFamily:i.elementInfo.defaultFontName,writingMode:i.elementInfo.vertical?"vertical-rl":"horizontal-tb"})},[k(y3,{width:i.elementInfo.width,height:i.elementInfo.height,outline:i.elementInfo.outline},null,8,["width","height","outline"]),V("div",{class:ze(["text ProseMirror-static",{thumbnail:i.target==="thumbnail"}]),style:Le({"--paragraphSpace":`${i.elementInfo.paragraphSpace===void 0?5:i.elementInfo.paragraphSpace}px`}),innerHTML:i.elementInfo.content},null,14,oFe)],4)],4)],4))}}),Uee=Be(aFe,[["__scopeId","data-v-a3ec163d"]]),sFe=["width","height"],lFe={key:0},uFe=["transform"],cFe=["d","fill","stroke","stroke-width","stroke-dasharray"],fFe=["innerHTML"],dFe=We({__name:"BaseShapeElement",props:{elementInfo:{}},setup(e){const t=e,n=Se(()=>t.elementInfo.outline),{outlineWidth:r,outlineColor:i,strokeDashArray:o}=t1(n),a=Se(()=>t.elementInfo.shadow),{shadowStyle:s}=hd(a),l=Se(()=>t.elementInfo.flipH),u=Se(()=>t.elementInfo.flipV),{flipStyle:c}=m3(l,u),f=Se(()=>{const d={content:"",defaultFontName:"",defaultColor:"#000",align:"middle"};return t.elementInfo.text?t.elementInfo.text:d});return(d,h)=>(D(),q("div",{class:"base-element-shape",style:Le({top:d.elementInfo.top+"px",left:d.elementInfo.left+"px",width:d.elementInfo.width+"px",height:d.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:Le({transform:`rotate(${d.elementInfo.rotate}deg)`})},[V("div",{class:"element-content",style:Le({opacity:d.elementInfo.opacity,filter:z(s)?`drop-shadow(${z(s)})`:"",transform:z(c),color:f.value.defaultColor,fontFamily:f.value.defaultFontName})},[(D(),q("svg",{overflow:"visible",width:d.elementInfo.width,height:d.elementInfo.height},[d.elementInfo.gradient?(D(),q("defs",lFe,[k(SJ,{id:`base-gradient-${d.elementInfo.id}`,type:d.elementInfo.gradient.type,colors:d.elementInfo.gradient.colors,rotate:d.elementInfo.gradient.rotate},null,8,["id","type","colors","rotate"])])):Ye("",!0),V("g",{transform:`scale(${d.elementInfo.width/d.elementInfo.viewBox[0]}, ${d.elementInfo.height/d.elementInfo.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`},[V("path",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",d:d.elementInfo.path,fill:d.elementInfo.gradient?`url(#base-gradient-${d.elementInfo.id})`:d.elementInfo.fill,stroke:z(i),"stroke-width":z(r),"stroke-dasharray":z(o)},null,8,cFe)],8,uFe)],8,sFe)),V("div",{class:ze(["shape-text",f.value.align])},[V("div",{class:"ProseMirror-static",innerHTML:f.value.content},null,8,fFe)],2)],4)],4)],4))}}),Bee=Be(dFe,[["__scopeId","data-v-03bd4549"]]),hFe=["width","height"],pFe=["d","stroke","stroke-width","stroke-dasharray","marker-start","marker-end"],vFe=We({__name:"BaseLineElement",props:{elementInfo:{}},setup(e){const t=e,n=Se(()=>t.elementInfo.shadow),{shadowStyle:r}=hd(n),i=Se(()=>{const l=Math.abs(t.elementInfo.start[0]-t.elementInfo.end[0]);return l<24?24:l}),o=Se(()=>{const l=Math.abs(t.elementInfo.start[1]-t.elementInfo.end[1]);return l<24?24:l}),a=Se(()=>{const l=t.elementInfo.width;return t.elementInfo.style==="dashed"?l<=8?`${l*5} ${l*2.5}`:`${l*5} ${l*1.5}`:t.elementInfo.style==="dotted"?l<=8?`${l*1.8} ${l*1.6}`:`${l*1.5} ${l*1.2}`:"0 0"}),s=Se(()=>ek(t.elementInfo));return(l,u)=>(D(),q("div",{class:"base-element-line",style:Le({top:l.elementInfo.top+"px",left:l.elementInfo.left+"px"})},[V("div",{class:"element-content",style:Le({filter:z(r)?`drop-shadow(${z(r)})`:""})},[(D(),q("svg",{overflow:"visible",width:i.value,height:o.value},[V("defs",null,[l.elementInfo.points[0]?(D(),Oe(zf,{key:0,id:l.elementInfo.id,position:"start",type:l.elementInfo.points[0],color:l.elementInfo.color,baseSize:l.elementInfo.width},null,8,["id","type","color","baseSize"])):Ye("",!0),l.elementInfo.points[1]?(D(),Oe(zf,{key:1,id:l.elementInfo.id,position:"end",type:l.elementInfo.points[1],color:l.elementInfo.color,baseSize:l.elementInfo.width},null,8,["id","type","color","baseSize"])):Ye("",!0)]),V("path",{d:s.value,stroke:l.elementInfo.color,"stroke-width":l.elementInfo.width,"stroke-dasharray":a.value,fill:"none","marker-start":l.elementInfo.points[0]?`url(#${l.elementInfo.id}-${l.elementInfo.points[0]}-start)`:"","marker-end":l.elementInfo.points[1]?`url(#${l.elementInfo.id}-${l.elementInfo.points[1]}-end)`:""},null,8,pFe)],8,hFe))],4)],4))}}),Yee=Be(vFe,[["__scopeId","data-v-833e88cd"]]),gFe=We({__name:"BaseChartElement",props:{elementInfo:{},target:{}},setup(e){return(t,n)=>(D(),q("div",{class:ze(["base-element-chart",{"is-thumbnail":t.target==="thumbnail"}]),style:Le({top:t.elementInfo.top+"px",left:t.elementInfo.left+"px",width:t.elementInfo.width+"px",height:t.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:Le({transform:`rotate(${t.elementInfo.rotate}deg)`})},[V("div",{class:"element-content",style:Le({backgroundColor:t.elementInfo.fill})},[k(y3,{width:t.elementInfo.width,height:t.elementInfo.height,outline:t.elementInfo.outline},null,8,["width","height","outline"]),k(Mee,{width:t.elementInfo.width,height:t.elementInfo.height,type:t.elementInfo.chartType,data:t.elementInfo.data,themeColors:t.elementInfo.themeColors,textColor:t.elementInfo.textColor,options:t.elementInfo.options},null,8,["width","height","type","data","themeColors","textColor","options"])],4)],4)],6))}}),Zee=Be(gFe,[["__scopeId","data-v-5a1fd6e3"]]),mFe=["width"],yFe=["rowspan","colspan"],AFe=["innerHTML"],RFe=We({__name:"StaticTable",props:{data:{},width:{},cellMinHeight:{},colWidths:{},outline:{},theme:{},editable:{type:Boolean,default:!0}},setup(e){const t=e,n=he([]),r=Se(()=>n.value.reduce((l,u)=>l+u));Tt([()=>t.colWidths,()=>t.width],()=>{n.value=t.colWidths.map(l=>l*t.width)},{immediate:!0});const i=Se(()=>t.data),{hideCells:o}=Oee(i),a=Se(()=>t.theme),{subThemeColor:s}=kee(a);return(l,u)=>{var c,f,d,h,p;return D(),q("div",{class:"static-table",style:Le({width:r.value+"px"})},[V("table",{class:ze({theme:a.value,"row-header":(c=a.value)==null?void 0:c.rowHeader,"row-footer":(f=a.value)==null?void 0:f.rowFooter,"col-header":(d=a.value)==null?void 0:d.colHeader,"col-footer":(h=a.value)==null?void 0:h.colFooter}),style:Le(`--themeColor: ${(p=a.value)==null?void 0:p.color}; --subThemeColor1: ${z(s)[0]}; --subThemeColor2: ${z(s)[1]}`)},[V("colgroup",null,[(D(!0),q(Ee,null,qe(n.value,(v,g)=>(D(),q("col",{span:"1",key:g,width:v},null,8,mFe))),128))]),V("tbody",null,[(D(!0),q(Ee,null,qe(l.data,(v,g)=>(D(),q("tr",{key:g,style:Le({height:l.cellMinHeight+"px"})},[(D(!0),q(Ee,null,qe(v,(m,y)=>Ge((D(),q("td",{class:"cell",style:Le({borderStyle:l.outline.style,borderColor:l.outline.color,borderWidth:l.outline.width+"px",...z(Tee)(m.style)}),key:m.id,rowspan:m.rowspan,colspan:m.colspan},[V("div",{class:"cell-text",style:Le({minHeight:l.cellMinHeight-4+"px"}),innerHTML:z(_ee)(m.text)},null,12,AFe)],12,yFe)),[[hc,!z(o).includes(`${g}_${y}`)]])),128))],4))),128))])],6)],4)}}}),bFe=Be(RFe,[["__scopeId","data-v-6d887dcd"]]),xFe={class:"element-content"},SFe=We({__name:"BaseTableElement",props:{elementInfo:{}},setup(e){return(t,n)=>(D(),q("div",{class:"base-element-table",style:Le({top:t.elementInfo.top+"px",left:t.elementInfo.left+"px",width:t.elementInfo.width+"px"})},[V("div",{class:"rotate-wrapper",style:Le({transform:`rotate(${t.elementInfo.rotate}deg)`})},[V("div",xFe,[k(bFe,{data:t.elementInfo.data,width:t.elementInfo.width,cellMinHeight:t.elementInfo.cellMinHeight,colWidths:t.elementInfo.colWidths,outline:t.elementInfo.outline,theme:t.elementInfo.theme},null,8,["data","width","cellMinHeight","colWidths","outline","theme"])])],4)],4))}}),Qee=Be(SFe,[["__scopeId","data-v-77cfa6e4"]]),wFe={class:"element-content"},MFe=["width","height","stroke","stroke-width"],LFe=["transform"],TFe=["d"],_Fe=We({__name:"BaseLatexElement",props:{elementInfo:{}},setup(e){return(t,n)=>(D(),q("div",{class:"base-element-latex",style:Le({top:t.elementInfo.top+"px",left:t.elementInfo.left+"px",width:t.elementInfo.width+"px",height:t.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:Le({transform:`rotate(${t.elementInfo.rotate}deg)`})},[V("div",wFe,[(D(),q("svg",{overflow:"visible",width:t.elementInfo.width,height:t.elementInfo.height,stroke:t.elementInfo.color,"stroke-width":t.elementInfo.strokeWidth,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[V("g",{transform:`scale(${t.elementInfo.width/t.elementInfo.viewBox[0]}, ${t.elementInfo.height/t.elementInfo.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`},[V("path",{d:t.elementInfo.path},null,8,TFe)],8,LFe)],8,MFe))])],4)],4))}}),Hee=Be(_Fe,[["__scopeId","data-v-93374af9"]]),OFe=We({__name:"BaseVideoElement",props:{elementInfo:{}},setup(e){return(t,n)=>{const r=xe("IconPlayOne");return D(),q("div",{class:"base-element-video",style:Le({top:t.elementInfo.top+"px",left:t.elementInfo.left+"px",width:t.elementInfo.width+"px",height:t.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:Le({transform:`rotate(${t.elementInfo.rotate}deg)`})},[V("div",{class:"element-content",style:Le({backgroundImage:t.elementInfo.poster?`url(${t.elementInfo.poster})`:""})},[k(r,{class:"icon"})],4)],4)],4)}}}),kFe=Be(OFe,[["__scopeId","data-v-2fb0e771"]]),PFe={class:"element-content"},CFe=We({__name:"BaseAudioElement",props:{elementInfo:{}},setup(e){const t=e,n=Se(()=>Math.min(t.elementInfo.width,t.elementInfo.height)+"px");return(r,i)=>{const o=xe("IconVolumeNotice");return D(),q("div",{class:"base-element-audio",style:Le({top:r.elementInfo.top+"px",left:r.elementInfo.left+"px",width:r.elementInfo.width+"px",height:r.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:Le({transform:`rotate(${r.elementInfo.rotate}deg)`})},[V("div",PFe,[k(o,{class:"audio-icon",style:Le({fontSize:n.value,color:r.elementInfo.color})},null,8,["style"])])],4)],4)}}}),IFe=Be(CFe,[["__scopeId","data-v-b33e6120"]]),NFe=We({__name:"ThumbnailElement",props:{elementInfo:{},elementIndex:{}},setup(e){const t=e,n=Se(()=>({[Et.IMAGE]:Dee,[Et.TEXT]:Uee,[Et.SHAPE]:Bee,[Et.LINE]:Yee,[Et.CHART]:Zee,[Et.TABLE]:Qee,[Et.LATEX]:Hee,[Et.VIDEO]:kFe,[Et.AUDIO]:IFe})[t.elementInfo.type]||null);return(r,i)=>(D(),q("div",{class:ze(["base-element",`base-element-${r.elementInfo.id}`]),style:Le({zIndex:r.elementIndex})},[(D(),Oe(xu(n.value),{elementInfo:r.elementInfo,target:"thumbnail"},null,8,["elementInfo"]))],6))}}),FFe={key:1,class:"placeholder"},EFe=We({__name:"index",props:{slide:{},size:{},visible:{type:Boolean,default:!0}},setup(e){const t=e,{viewportRatio:n,viewportSize:r}=Ve(st()),i=Se(()=>t.slide.background),{backgroundStyle:o}=e4(i),a=Se(()=>t.size/r.value);return l0(iy,a),(s,l)=>(D(),q("div",{class:"thumbnail-slide",style:Le({width:s.size+"px",height:s.size*z(n)+"px"})},[s.visible?(D(),q("div",{key:0,class:"elements",style:Le({width:z(r)+"px",height:z(r)*z(n)+"px",transform:`scale(${a.value})`})},[V("div",{class:"background",style:Le(z(o))},null,4),(D(!0),q(Ee,null,qe(s.slide.elements,(u,c)=>(D(),Oe(NFe,{key:u.id,elementInfo:u,elementIndex:c+1},null,8,["elementInfo","elementIndex"]))),128))],4)):(D(),q("div",FFe,"加载中 ..."))],4))}}),vl=Be(EFe,[["__scopeId","data-v-c8cdb1af"]]),XFe=["onClick"],WFe=We({__name:"Tabs",props:{value:{},tabs:{},card:{type:Boolean,default:!1},tabsStyle:{},tabStyle:{},spaceAround:{type:Boolean,default:!1},spaceBetween:{type:Boolean,default:!1}},emits:["update:value"],setup(e,{emit:t}){const n=t;return(r,i)=>(D(),q("div",{class:ze(["tabs",{card:r.card,"space-around":r.spaceAround,"space-between":r.spaceBetween}]),style:Le(r.tabsStyle||{})},[(D(!0),q(Ee,null,qe(r.tabs,o=>(D(),q("div",{class:ze(["tab",{active:o.key===r.value}]),key:o.key,style:Le({...r.tabStyle||{},"--color":o.color}),onClick:a=>n("update:value",o.key)},dt(o.label),15,XFe))),128))],6))}}),gl=Be(WFe,[["__scopeId","data-v-c7f9dce0"]]),VFe=We({__name:"Button",props:{checked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{default:"default"},size:{default:"normal"},first:{type:Boolean,default:!1},last:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const n=e,r=t,i=()=>{n.disabled||r("click")};return(o,a)=>(D(),q("button",{class:ze(["button",{disabled:o.disabled,checked:!o.disabled&&o.checked,default:!o.disabled&&o.type==="default",primary:!o.disabled&&o.type==="primary",checkbox:!o.disabled&&o.type==="checkbox",radio:!o.disabled&&o.type==="radio",small:o.size==="small",first:o.first,last:o.last}]),onClick:a[0]||(a[0]=s=>i())},[ar(o.$slots,"default",{},void 0,!0)],2))}}),et=Be(VFe,[["__scopeId","data-v-3a484f58"]]),DFe={key:0,class:"select-wrap"},UFe={class:"selector"},BFe={class:"icon"},YFe=["onClick"],ZFe={class:"selector"},QFe={class:"icon"},HFe=We({__name:"Select",props:{value:{},options:{},disabled:{type:Boolean,default:!1},search:{type:Boolean,default:!1},searchLabel:{default:"搜索"}},emits:["update:value"],setup(e,{emit:t}){const n=e,r=t,i=he(!1),o=he(),a=he(),s=he(0),l=he(""),u=Se(()=>{var p;return((p=n.options.find(v=>v.value===n.value))==null?void 0:p.label)||n.value}),c=Se(()=>{if(!n.search||!l.value.trim())return n.options;const p=n.options.filter(v=>v.label.toLowerCase().indexOf(l.value.toLowerCase())!==-1);return p.length?p:n.options});Tt(i,()=>{i.value?Rr(()=>{a.value&&a.value.focus()}):l.value=""}),s0(()=>{l.value=""});const f=()=>{o.value&&(s.value=o.value.clientWidth)},d=new ResizeObserver(f);Vt(()=>{o.value&&d.observe(o.value)}),En(()=>{o.value&&d.unobserve(o.value)});const h=p=>{p.disabled||(r("update:value",p.value),i.value=!1)};return(p,v)=>{const g=xe("IconDown");return p.disabled?(D(),q("div",DFe,[V("div",{class:"select disabled",ref_key:"selectRef",ref:o},[V("div",UFe,dt(p.value),1),V("div",BFe,[ar(p.$slots,"icon",{},()=>[k(g,{size:14})],!0)])],512)])):(D(),Oe(Nt,{key:1,class:"select-wrap",trigger:"click",value:i.value,"onUpdate:value":v[1]||(v[1]=m=>i.value=m),placement:"bottom",contentStyle:{padding:0,boxShadow:"0 6px 16px 0 rgba(0, 0, 0, 0.08)"}},{content:ie(()=>[p.search?(D(),q(Ee,{key:0},[k(pu,{ref_key:"searchInputRef",ref:a,simple:"",placeholder:p.searchLabel,value:l.value,"onUpdate:value":v[0]||(v[0]=m=>l.value=m),style:Le({width:s.value+2+"px"})},null,8,["placeholder","value","style"]),k(Ht,{margin:0})],64)):Ye("",!0),V("div",{class:"options",style:Le({width:s.value+2+"px"})},[(D(!0),q(Ee,null,qe(c.value,m=>(D(),q("div",{class:ze(["option",{disabled:m.disabled,selected:m.value===p.value}]),key:m.value,onClick:y=>h(m)},dt(m.label),11,YFe))),128))],4)]),default:ie(()=>[V("div",{class:"select",ref_key:"selectRef",ref:o},[V("div",ZFe,dt(u.value),1),V("div",QFe,[ar(p.$slots,"icon",{},()=>[k(g,{size:14})],!0)])],512)]),_:3},8,["value"]))}}}),Vr=Be(HFe,[["__scopeId","data-v-eb1f268a"]]),KFe=e=>(rn("data-v-853e5bc2"),e=e(),on(),e),GFe={class:"link-dialog"},zFe={key:2,class:"preview"},JFe=KFe(()=>V("div",null,"预览:",-1)),$Fe={class:"btns"},jFe=We({__name:"LinkDialog",emits:["close"],setup(e,{emit:t}){var p;const n=t,{handleElement:r}=Ve(pt()),{slides:i,currentSlide:o}=Ve(st()),a=he("web"),s=he(""),l=he(""),u=Se(()=>i.value.map((v,g)=>({label:`幻灯片 ${g+1}`,value:v.id,disabled:o.value.id===v.id})));l.value=((p=i.value.find(v=>v.id!==o.value.id))==null?void 0:p.id)||"";const c=Se(()=>l.value&&i.value.find(v=>v.id===l.value)||null),f=[{key:"web",label:"网页链接"},{key:"slide",label:"幻灯片页面"}],{setLink:d}=Vee();Vt(()=>{var v;(v=r.value)!=null&&v.link&&(r.value.link.type==="web"?s.value=r.value.link.target:r.value.link.type==="slide"&&(l.value=r.value.link.target),a.value=r.value.link.type)});const h=()=>{const v={type:a.value,target:a.value==="web"?s.value:l.value};r.value&&(d(r.value,v)?n("close"):s.value="")};return(v,g)=>(D(),q("div",GFe,[k(gl,{tabs:f,value:a.value,"onUpdate:value":g[0]||(g[0]=m=>a.value=m),tabsStyle:{marginBottom:"20px"}},null,8,["value"]),a.value==="web"?(D(),Oe(pu,{key:0,class:"input",value:s.value,"onUpdate:value":g[1]||(g[1]=m=>s.value=m),placeholder:"请输入网页链接地址"},null,8,["value"])):Ye("",!0),a.value==="slide"?(D(),Oe(Vr,{key:1,class:"input",value:l.value,"onUpdate:value":g[2]||(g[2]=m=>l.value=m),options:u.value},null,8,["value","options"])):Ye("",!0),a.value==="slide"&&c.value?(D(),q("div",zFe,[JFe,k(vl,{class:"thumbnail",slide:c.value,size:500},null,8,["slide"])])):Ye("",!0),V("div",$Fe,[k(et,{onClick:g[3]||(g[3]=m=>n("close")),style:{"margin-right":"10px"}},{default:ie(()=>[Ue("取消")]),_:1}),k(et,{type:"primary",onClick:g[4]||(g[4]=m=>h())},{default:ie(()=>[Ue("确认")]),_:1})])]))}}),qFe=Be(jFe,[["__scopeId","data-v-853e5bc2"]]),eEe=We({__name:"Modal",props:{visible:{type:Boolean},width:{default:480},closeButton:{type:Boolean,default:!1},closeOnClickMask:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},contentStyle:{}},emits:["update:visible","closed"],setup(e,{emit:t}){const{IconClose:n}=yx,r=e,i=he(),o=t,a=he(!1),s=Se(()=>({width:r.width+"px",...r.contentStyle||{}}));Tt(()=>r.visible,()=>{r.visible&&Rr(()=>i.value.focus())});const l=()=>{o("update:visible",!1),o("closed")},u=()=>{r.visible&&r.closeOnEsc&&l()},c=()=>{r.closeOnClickMask&&l()};return(f,d)=>(D(),Oe(bO,{to:"body"},[k(Qh,{name:"modal-fade"},{default:ie(()=>[Ge(V("div",{class:"modal",ref_key:"modalRef",ref:i,tabindex:"-1",onKeyup:d[4]||(d[4]=hl(h=>u(),["esc"]))},[V("div",{class:"mask",onClick:d[0]||(d[0]=h=>c())}),k(Qh,{name:"modal-zoom",onAfterLeave:d[2]||(d[2]=h=>a.value=!1),onBeforeEnter:d[3]||(d[3]=h=>a.value=!0)},{default:ie(()=>[Ge(V("div",{class:"modal-content",style:Le(s.value)},[f.closeButton?(D(),q("span",{key:0,class:"close-btn",onClick:d[1]||(d[1]=h=>l())},[k(z(n))])):Ye("",!0),a.value?ar(f.$slots,"default",{key:1},void 0,!0):Ye("",!0)],4),[[hc,f.visible]])]),_:3})],544),[[hc,f.visible]])]),_:3})]))}}),i0=Be(eEe,[["__scopeId","data-v-4d27bcca"]]),tEe={class:"operates"},nEe={key:2,class:"drag-mask"},rEe=We({__name:"index",setup(e){const t=pt(),{activeElementIdList:n,activeGroupElementId:r,handleElementId:i,hiddenElementIdList:o,editorAreaFocus:a,gridLineSize:s,showRuler:l,creatingElement:u,creatingCustomShape:c,canvasScale:f,textFormatPainter:d}=Ve(t),{currentSlide:h}=Ve(st()),{ctrlKeyState:p,spaceKeyState:v}=Ve(Ns()),g=he(),m=he([]),y=he(!1),R=()=>y.value=!0;Tt(i,()=>{t.setActiveGroupElementId("")});const A=he([]);Bv(()=>{A.value=h.value?JSON.parse(JSON.stringify(h.value.elements)):[]});const S=he(),{dragViewport:L,viewportStyles:M}=jSe(S);e3e(S);const{mouseSelection:w,mouseSelectionVisible:_,mouseSelectionQuadrant:C,updateMouseSelection:O}=qSe(A,g),{dragElement:N}=Sz(A,m,f),{dragLineElement:P}=r3e(A),{selectElement:F}=n3e(A,N),{scaleElement:I,scaleMultiElement:W}=xz(A,m,f),{rotateElement:U}=Rz(A,g,f),{moveShapeKeypoint:Z}=i3e(A,f),{selectAllElements:ee}=r3(),{deleteAllElements:B}=K2(),{pasteElement:Y}=ik(),{enterScreeningFromStart:Q}=cd(),{updateSlideIndex:K}=Ac(),{createTextElement:te,createShapeElement:J}=d0();Vt(()=>{n.value.length&&Rr(()=>t.setActiveElementIdList([]))});const de=ae=>{n.value.length&&t.setActiveElementIdList([]),v.value?L(ae):O(ae),a.value||t.setEditorareaFocus(!0),d.value&&t.setTextFormatPainter(null),$Se()},G=ae=>{if(n.value.length||u.value||c.value||!g.value)return;const ve=g.value.getBoundingClientRect(),fe=(ae.pageX-ve.x)/f.value,ge=(ae.pageY-ve.y)/f.value;te({left:fe,top:ge,width:200/f.value,height:0})};En(()=>{d.value&&t.setTextFormatPainter(null)});const Ae=()=>{a.value&&t.setEditorareaFocus(!1)},{scaleCanvas:ue}=ak(),ce=Qn.throttle(ue,100,{leading:!0,trailing:!1}),le=Qn.throttle(K,300,{leading:!0,trailing:!1}),$=ae=>{ae.preventDefault(),p.value?ae.deltaY>0?ce("-"):ae.deltaY<0&&ce("+"):ae.deltaY>0?le(yt.DOWN):ae.deltaY<0&&le(yt.UP)},X=()=>{t.setRulerState(!l.value)},{insertElementFromCreateSelection:j,formatCreateSelection:se}=o3e(g),ne=ae=>{const{start:ve,end:fe,path:ge,viewBox:Re}=ae,Xe=se({start:ve,end:fe});if(Xe){const Ne={};ae.fill&&(Ne.fill=ae.fill),ae.outline&&(Ne.outline=ae.outline),J(Xe,{path:ge,viewBox:Re},Ne)}t.setCreatingCustomShapeState(!1)},re=()=>[{text:"粘贴",subText:"Ctrl + V",handler:Y},{text:"全选",subText:"Ctrl + A",handler:ee},{text:"标尺",subText:l.value?"√":"",handler:X},{text:"网格线",handler:()=>t.setGridLineSize(s.value?0:50),children:[{text:"无",subText:s.value===0?"√":"",handler:()=>t.setGridLineSize(0)},{text:"小",subText:s.value===25?"√":"",handler:()=>t.setGridLineSize(25)},{text:"中",subText:s.value===50?"√":"",handler:()=>t.setGridLineSize(50)},{text:"大",subText:s.value===100?"√":"",handler:()=>t.setGridLineSize(100)}]},{text:"重置当前页",handler:B},{divider:!0},{text:"幻灯片放映",subText:"F5",handler:Q}];return l0(iy,f),(ae,ve)=>{const fe=_n("contextmenu"),ge=_n("click-outside");return Ge((D(),q("div",{class:"canvas",ref_key:"canvasRef",ref:S,onWheel:ve[4]||(ve[4]=Re=>$(Re)),onMousedown:ve[5]||(ve[5]=Re=>de(Re)),onDblclick:ve[6]||(ve[6]=Re=>G(Re))},[z(u)?(D(),Oe(f9e,{key:0,onCreated:ve[0]||(ve[0]=Re=>z(j)(Re))})):Ye("",!0),z(c)?(D(),Oe(v9e,{key:1,onCreated:ve[1]||(ve[1]=Re=>ne(Re))})):Ye("",!0),V("div",{class:"viewport-wrapper",style:Le({width:z(M).width*z(f)+"px",height:z(M).height*z(f)+"px",left:z(M).left+"px",top:z(M).top+"px"})},[V("div",tEe,[(D(!0),q(Ee,null,qe(m.value,(Re,Xe)=>(D(),Oe(Wee,{key:Xe,type:Re.type,axis:Re.axis,length:Re.length,canvasScale:z(f)},null,8,["type","axis","length","canvasScale"]))),128)),z(n).length>1?(D(),Oe(A9e,{key:0,elementList:A.value,scaleMultiElement:z(W)},null,8,["elementList","scaleMultiElement"])):Ye("",!0),(D(!0),q(Ee,null,qe(A.value,Re=>Ge((D(),Oe(nFe,{key:Re.id,elementInfo:Re,isSelected:z(n).includes(Re.id),isActive:z(i)===Re.id,isActiveGroupElement:z(r)===Re.id,isMultiSelect:z(n).length>1,rotateElement:z(U),scaleElement:z(I),openLinkDialog:R,dragLineElement:z(P),moveShapeKeypoint:z(Z)},null,8,["elementInfo","isSelected","isActive","isActiveGroupElement","isMultiSelect","rotateElement","scaleElement","dragLineElement","moveShapeKeypoint"])),[[hc,!z(o).includes(Re.id)]])),128)),k(t9e)]),V("div",{class:"viewport",ref_key:"viewportRef",ref:g,style:Le({transform:`scale(${z(f)})`})},[z(_)?(D(),Oe(z7e,{key:0,top:z(w).top,left:z(w).left,width:z(w).width,height:z(w).height,quadrant:z(C)},null,8,["top","left","width","height","quadrant"])):Ye("",!0),(D(!0),q(Ee,null,qe(A.value,(Re,Xe)=>Ge((D(),Oe(K7e,{key:Re.id,elementInfo:Re,elementIndex:Xe+1,isMultiSelect:z(n).length>1,selectElement:z(F),openLinkDialog:R},null,8,["elementInfo","elementIndex","isMultiSelect","selectElement"])),[[hc,!z(o).includes(Re.id)]])),128))],4)],4),z(v)?(D(),q("div",nEe)):Ye("",!0),z(l)?(D(),Oe(s9e,{key:3,viewportStyles:z(M),elementList:A.value},null,8,["viewportStyles","elementList"])):Ye("",!0),k(i0,{visible:y.value,"onUpdate:visible":ve[3]||(ve[3]=Re=>y.value=Re),width:540},{default:ie(()=>[k(qFe,{onClose:ve[2]||(ve[2]=Re=>y.value=!1)})]),_:1},8,["visible"])],32)),[[fe,re],[ge,Ae]])}}}),iEe=Be(rEe,[["__scopeId","data-v-904dbab0"]]),oEe={class:"shape-item-thumbnail"},aEe={class:"shape-content"},sEe={overflow:"visible",width:"18",height:"18"},lEe=["transform"],uEe=["fill","stroke","d"],cEe=We({__name:"ShapeItemThumbnail",props:{shape:{}},setup(e){return(t,n)=>(D(),q("div",oEe,[V("div",aEe,[(D(),q("svg",sEe,[V("g",{transform:`scale(${18/t.shape.viewBox[0]}, ${18/t.shape.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`},[V("path",{class:ze(["shape-path",{outlined:t.shape.outlined}]),"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:t.shape.outlined?"#999":"transparent",stroke:t.shape.outlined?"transparent":"#999","stroke-width":"2",d:t.shape.path},null,10,uEe)],8,lEe)]))])]))}}),Kee=Be(cEe,[["__scopeId","data-v-2896ae03"]]),fEe={class:"shape-pool"},dEe={class:"category-name"},hEe={class:"shape-list"},pEe=We({__name:"ShapePool",emits:["select"],setup(e,{emit:t}){const n=t,r=i=>{n("select",i)};return(i,o)=>(D(),q("div",fEe,[(D(!0),q(Ee,null,qe(z(tk),a=>(D(),q("div",{class:"category",key:a.type},[V("div",dEe,dt(a.type),1),V("div",hEe,[(D(!0),q(Ee,null,qe(a.children,(s,l)=>(D(),Oe(Kee,{class:"shape-item",key:l,shape:s,onClick:u=>r(s)},null,8,["shape","onClick"]))),128))])]))),128))]))}}),vEe=Be(pEe,[["__scopeId","data-v-d92f642a"]]),gEe=[{type:"直线",children:[{path:"M 0 0 L 20 20",style:"solid",points:["",""]},{path:"M 0 0 L 20 20",style:"dashed",points:["",""]},{path:"M 0 0 L 20 20",style:"solid",points:["","arrow"]},{path:"M 0 0 L 20 20",style:"dashed",points:["","arrow"]},{path:"M 0 0 L 20 20",style:"solid",points:["","dot"]}]},{type:"折线、曲线",children:[{path:"M 0 0 L 0 20 L 20 20",style:"solid",points:["","arrow"],isBroken:!0},{path:"M 0 0 L 10 0 L 10 20 L 20 20",style:"solid",points:["","arrow"],isBroken2:!0},{path:"M 0 0 Q 0 20 20 20",style:"solid",points:["","arrow"],isCurve:!0},{path:"M 0 0 C 20 0 0 20 20 20",style:"solid",points:["","arrow"],isCubic:!0}]}],mEe={class:"line-pool"},yEe={class:"category-name"},AEe={class:"line-list"},REe=["onClick"],bEe={overflow:"visible",width:"20",height:"20"},xEe=["d","stroke-dasharray","marker-start","marker-end"],SEe=We({__name:"LinePool",emits:["select"],setup(e,{emit:t}){const n=t,r=i=>{n("select",i)};return(i,o)=>(D(),q("div",mEe,[(D(!0),q(Ee,null,qe(z(gEe),(a,s)=>(D(),q("div",{class:"category",key:a.type},[V("div",yEe,dt(a.type),1),V("div",AEe,[(D(!0),q(Ee,null,qe(a.children,(l,u)=>(D(),q("div",{class:"line-item",key:u},[V("div",{class:"line-content",onClick:c=>r(l)},[(D(),q("svg",bEe,[V("defs",null,[l.points[0]?(D(),Oe(zf,{key:0,class:"line-marker",id:`preset-line-${s}-${u}`,position:"start",type:l.points[0],color:"currentColor",baseSize:2},null,8,["id","type"])):Ye("",!0),l.points[1]?(D(),Oe(zf,{key:1,class:"line-marker",id:`preset-line-${s}-${u}`,position:"end",type:l.points[1],color:"currentColor",baseSize:2},null,8,["id","type"])):Ye("",!0)]),V("path",{class:"line-path",d:l.path,stroke:"currentColor",fill:"none","stroke-width":"2","stroke-dasharray":l.style==="solid"?"0, 0":"4, 1","marker-start":l.points[0]?`url(#${`preset-line-${s}-${u}`}-${l.points[0]}-start)`:"","marker-end":l.points[1]?`url(#${`preset-line-${s}-${u}`}-${l.points[1]}-end)`:""},null,8,xEe)]))],8,REe)]))),128))])]))),128))]))}}),wEe=Be(SEe,[["__scopeId","data-v-fd42a3c4"]]),MEe={class:"chart-pool"},LEe=["onClick"],TEe={class:"name"},_Ee=We({__name:"ChartPool",emits:["select"],setup(e,{emit:t}){const n=t,r=["bar","column","line","area","scatter","pie","ring","radar"],i=o=>{n("select",o)};return(o,a)=>{const s=xe("IconChartLine"),l=xe("IconChartHistogram"),u=xe("IconChartPie"),c=xe("IconChartHistogramOne"),f=xe("IconChartLineArea"),d=xe("IconChartRing"),h=xe("IconChartScatter"),p=xe("IconRadarChart");return D(),q("ul",MEe,[(D(),q(Ee,null,qe(r,(v,g)=>V("li",{class:"chart-item",key:g},[V("div",{class:"chart-content",onClick:m=>i(v)},[v==="line"?(D(),Oe(s,{key:0,size:"24"})):v==="bar"?(D(),Oe(l,{key:1,size:"24"})):v==="pie"?(D(),Oe(u,{key:2,size:"24"})):v==="column"?(D(),Oe(c,{key:3,size:"24"})):v==="area"?(D(),Oe(f,{key:4,size:"24"})):v==="ring"?(D(),Oe(d,{key:5,size:"24"})):v==="scatter"?(D(),Oe(h,{key:6,size:"24"})):v==="radar"?(D(),Oe(p,{key:7,size:"23"})):Ye("",!0),V("div",TEe,dt(z(_T)[v]),1)],8,LEe)])),64))])}}}),OEe=Be(_Ee,[["__scopeId","data-v-55770a5d"]]),Gee=e=>(rn("data-v-ba8ef208"),e=e(),on(),e),kEe={class:"prefix"},PEe={class:"input-wrap"},CEe=["disabled","placeholder"],IEe={class:"handlers"},NEe=Gee(()=>V("svg",{fill:"currentColor",width:"1em",height:"1em",viewBox:"64 64 896 896"},[V("path",{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"})],-1)),FEe=[NEe],EEe=Gee(()=>V("svg",{fill:"currentColor",width:"1em",height:"1em",viewBox:"64 64 896 896"},[V("path",{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"})],-1)),XEe=[EEe],WEe={class:"suffix"},VEe=We({__name:"NumberInput",props:{value:{},disabled:{type:Boolean,default:!1},placeholder:{default:""},min:{default:0},max:{default:1/0},step:{default:1}},emits:["update:value","input","change","blur","focus","enter"],setup(e,{emit:t}){const n=e,r=t,i=he(0),o=he(!1);Tt(()=>n.value,()=>{n.value!==i.value&&(i.value=n.value)},{immediate:!0}),Tt(i,()=>{const c=+i.value;if(!isNaN(c)){{if(c>n.max)return;if(c{let c=+i.value;isNaN(c)?c=n.min:c>n.max?c=n.max:c{a(),r("enter",c)},l=c=>{a(),o.value=!1,r("blur",c)},u=c=>{o.value=!0,r("focus",c)};return(c,f)=>(D(),q("div",{class:ze(["number-input",{disabled:c.disabled,focused:o.value}])},[V("span",kEe,[ar(c.$slots,"prefix",{},void 0,!0)]),V("div",PEe,[Ge(V("input",{type:"text",disabled:c.disabled,"onUpdate:modelValue":f[0]||(f[0]=d=>i.value=d),placeholder:c.placeholder,onInput:f[1]||(f[1]=d=>r("input",d)),onFocus:f[2]||(f[2]=d=>u(d)),onBlur:f[3]||(f[3]=d=>l(d)),onChange:f[4]||(f[4]=d=>r("change",d)),onKeydown:f[5]||(f[5]=hl(d=>s(d),["enter"]))},null,40,CEe),[[Ym,i.value]]),V("div",IEe,[V("span",{class:"handler",onClick:f[6]||(f[6]=d=>i.value+=c.step)},FEe),V("span",{class:"handler",onClick:f[7]||(f[7]=d=>i.value-=c.step)},XEe)])]),V("span",WEe,[ar(c.$slots,"suffix",{},void 0,!0)])],2))}}),ta=Be(VEe,[["__scopeId","data-v-ba8ef208"]]),zee=e=>(rn("data-v-dcc16f05"),e=e(),on(),e),DEe={class:"table-generator"},UEe={class:"title"},BEe={class:"lef"},YEe=["onMouseenter"],ZEe={key:1,class:"custom"},QEe={class:"row"},HEe=zee(()=>V("div",{class:"label",style:{width:"25%"}},"行数:",-1)),KEe={class:"row"},GEe=zee(()=>V("div",{class:"label",style:{width:"25%"}},"列数:",-1)),zEe={class:"btns"},JEe=We({__name:"TableGenerator",emits:["insert","close"],setup(e,{emit:t}){const n=t,r=he([]),i=he(3),o=he(3),a=he(!1),s=()=>{if(!r.value.length)return;const[c,f]=r.value;n("insert",{row:c,col:f})},l=()=>{if(i.value<1||i.value>20||o.value<1||o.value>20)return pn.warning("行数/列数必须在0~20之间!");n("insert",{row:i.value,col:o.value}),a.value=!1},u=()=>{n("close"),a.value=!1};return(c,f)=>(D(),q("div",DEe,[V("div",UEe,[V("div",BEe,"表格 "+dt(r.value.length?`${r.value[0]} x ${r.value[1]}`:""),1),V("div",{class:"right",onClick:f[0]||(f[0]=d=>a.value=!a.value)},dt(a.value?"返回":"自定义"),1)]),a.value?(D(),q("div",ZEe,[V("div",QEe,[HEe,k(ta,{min:1,max:20,value:i.value,"onUpdate:value":f[3]||(f[3]=d=>i.value=d),style:{width:"75%"}},null,8,["value"])]),V("div",KEe,[GEe,k(ta,{min:1,max:20,value:o.value,"onUpdate:value":f[4]||(f[4]=d=>o.value=d),style:{width:"75%"}},null,8,["value"])]),V("div",zEe,[k(et,{class:"btn",onClick:f[5]||(f[5]=d=>u())},{default:ie(()=>[Ue("取消")]),_:1}),k(et,{class:"btn",type:"primary",onClick:f[6]||(f[6]=d=>l())},{default:ie(()=>[Ue("确认")]),_:1})])])):(D(),q("table",{key:0,onMouseleave:f[1]||(f[1]=d=>r.value=[]),onClick:f[2]||(f[2]=d=>s())},[V("tbody",null,[(D(),q(Ee,null,qe(10,d=>V("tr",{key:d},[(D(),q(Ee,null,qe(10,h=>V("td",{onMouseenter:p=>r.value=[d,h],key:h},[V("div",{class:ze(["cell",{active:r.value.length&&d<=r.value[0]&&h<=r.value[1]}])},null,2)],40,YEe)),64))])),64))])],32))]))}}),$Ee=Be(JEe,[["__scopeId","data-v-dcc16f05"]]),jEe={class:"media-input"},qEe={class:"btns"},eXe={class:"btns"},tXe=We({__name:"MediaInput",emits:["insertVideo","insertAudio","close"],setup(e,{emit:t}){const n=t,r=he("video"),i=he("https://mazwai.com/videvo_files/video/free/2019-01/small_watermarked/181004_04_Dolphins-Whale_06_preview.webm"),o=he("https://freesound.org/data/previews/614/614107_11861866-lq.mp3"),a=[{key:"video",label:"视频"},{key:"audio",label:"音频"}],s=()=>{if(!i.value)return pn.error("请先输入正确的视频地址");n("insertVideo",i.value)},l=()=>{if(!o.value)return pn.error("请先输入正确的音频地址");n("insertAudio",o.value)};return(u,c)=>(D(),q("div",jEe,[k(gl,{tabs:a,value:r.value,"onUpdate:value":c[0]||(c[0]=f=>r.value=f),tabsStyle:{marginBottom:"15px"}},null,8,["value"]),r.value==="video"?(D(),q(Ee,{key:0},[k(pu,{value:i.value,"onUpdate:value":c[1]||(c[1]=f=>i.value=f),placeholder:"请输入视频地址,e.g. https://xxx.mp4"},null,8,["value"]),V("div",qEe,[k(et,{onClick:c[2]||(c[2]=f=>n("close")),style:{"margin-right":"10px"}},{default:ie(()=>[Ue("取消")]),_:1}),k(et,{type:"primary",onClick:c[3]||(c[3]=f=>s())},{default:ie(()=>[Ue("确认")]),_:1})])],64)):Ye("",!0),r.value==="audio"?(D(),q(Ee,{key:1},[k(pu,{value:o.value,"onUpdate:value":c[4]||(c[4]=f=>o.value=f),placeholder:"请输入音频地址,e.g. https://xxx.mp3"},null,8,["value"]),V("div",eXe,[k(et,{onClick:c[5]||(c[5]=f=>n("close")),style:{"margin-right":"10px"}},{default:ie(()=>[Ue("取消")]),_:1}),k(et,{type:"primary",onClick:c[6]||(c[6]=f=>l())},{default:ie(()=>[Ue("确认")]),_:1})])],64)):Ye("",!0)]))}}),nXe=Be(tXe,[["__scopeId","data-v-999b18ca"]]);var XR=82;function Ep(e){return C_[e]==null&&rXe(e),C_[e]}function rXe(e){var t=iXe[e];if(t!=null){for(var n=t.substring(3,5),r=1*n.charCodeAt(0)-XR,i=1*n.charCodeAt(1)-XR,o=t.substring(5),a=[[]],s=1/0,l=-1/0,u=1/0,c=-1/0,f=0;ff>RfR",797:" 3D`D``D",798:" 3RRR>Rf",799:" 3D`DD``",800:" 3D`DR`R",801:" 3F^FY^K",802:" 3KYK^YF",803:" 3RRRDR`",804:" 3KYKFY^",805:" 3F^FK^Y",806:" 3KYKRYR",807:" 3MWMWWM",808:" 3RRRKRY",809:" 3MWMMWW",810:" 8GRRGPGMHJJHMGPGR",811:" 8GRGRGTHWJZM\\P]R]",812:" 8R]R]T]W\\ZZ\\W]T]R",813:" 8R]]R]P\\MZJWHTGRG",814:" 9D`DOGQKSPTTTYS]Q`O",815:" 9PUUDSGQKPPPTQYS]U`",816:" 9OTODQGSKTPTTSYQ]O`",817:" 9D`DUGSKQPPTPYQ]S`U",818:" 5KYRJYNKVRZ",819:" 5JZJRNKVYZR",820:" 5KYKVKNYVYN",821:" 5JZLXJPZTXL",822:" 23JZJ]L]O\\Q[TXUVVSVOULTJSIQIPJOLNONSOVPXS[U\\X]Z]",823:" 23I]]Z]X\\U[SXPVOSNONLOJPIQISJTLUOVSVVUXT[Q\\O]L]J",824:" 23JZZGXGUHSIPLONNQNUOXPZQ[S[TZUXVUVQUNTLQIOHLGJG",825:" 23G[GJGLHOIQLTNUQVUVXUZT[S[QZPXOUNQNNOLPISHUGXGZ",826:" 21E[EPFRHTJUMVQVUUXSZP[NZLWLSMQNNPLSKVKYL\\M^",827:" 19EYETHVKWPWSVVTXQYNYLXKVKSLPNNQMTMYN\\P_",828:" 26OUQOOQOSQUSUUSUQSOQO RQPPQPSQTSTTSTQSPQP RRQQRRSSRRQ",829:" 11RWRMSMUNVOWQWSVUUVSWRW",830:" 9D`DRJR RORUR RZR`R",831:" 5D`DUDO`O`U",832:" 6JZRDJR RRDZR",833:" 9D`DR`R RJYZY RP`T`",834:" 9D`DR`R RDRRb R`RRb",840:" 18KYQKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK",841:" 6LXLLLXXXXLLL",842:" 5KYRJKVYVRJ",843:" 6LXRHLRR\\XRRH",844:" 12JZRIPOJOOSMYRUWYUSZOTORI",845:" 6KYRKRY RKRYR",846:" 6MWMMWW RWMMW",847:" 9MWRLRX RMOWU RWOMU",850:" 35NVQNOONQNSOUQVSVUUVSVQUOSNQN ROQOS RPPPT RQOQU RRORU RSOSU RTPTT RUQUS",851:" 27NVNNNVVVVNNN ROOOU RPOPU RQOQU RRORU RSOSU RTOTU RUOUU",852:" 17MWRLMUWURL RROOT RROUT RRRQT RRRST",853:" 17LULRUWUMLR RORTU RORTO RRRTS RRRTQ",854:" 17MWRXWOMORX RRUUP RRUOP RRRSP RRRQP",855:" 17OXXROMOWXR RURPO RURPU RRRPQ RRRPS",856:" 22LXRLNWXPLPVWRL RRRRL RRRLP RRRNW RRRVW RRRXP",857:" 11RYRKRY RRKYNRQ RSMVNSO",860:" 13MWRLRX ROOUO RMUOWQXSXUWWU",861:" 11LXRLRX RLQMOWOXQ RPWTW",862:" 14KYMNWX RWNMX ROLLOKQ RULXOYQ",863:" 18I[NII[ RVI[[ RMM[[ RWMI[ RNIVI RMMWM",864:" 21I[RGRV RMJWP RWJMP RIVL\\ R[VX\\ RIV[V RL\\X\\",865:" 11G[MJSV RKPSL RG\\[\\[RG\\",866:" 14LXPLPPLPLTPTPXTXTTXTXPTPTLPL",867:" 32KYYPXNVLSKQKNLLNKQKSLVNXQYSYVXXVYT RYPWNUMSMQNPOOQOSPUQVSWUWWVYT",868:" 10KYRJKVYVRJ RRZYNKNRZ",869:" 34G]PIPGQFSFTGTI RGZHXJVKTLPLKMJOIUIWJXKXPYTZV\\X]Z RGZ]Z RQZP[Q\\S\\T[SZ",870:" 64JZRMRS RRSQ\\ RRSS\\ RQ\\S\\ RRMQJPHNG RQJNG RRMSJTHVG RSJVG RRMNKLKJM RPLLLJM RRMVKXKZM RTLXLZM RRMPNOOOR RRMPOOR RRMTNUOUR RRMTOUR",871:" 94JZRIRK RRNRP RRSRU RRYQ\\ RRYS\\ RQ\\S\\ RRGQIPJ RRGSITJ RPJRITJ RRKPNNOMN RRKTNVOWN RNOPORNTOVO RRPPSNTLTKRKSLT RRPTSVTXTYRYSXT RNTPTRSTTVT RRUPXOYMZLZKYJWJYLZ RRUTXUYWZXZYYZWZYXZ RMZOZRYUZWZ",872:" 40JZRYQ\\ RRYS\\ RQ\\S\\ RRYUZXZZXZUYTWTYRZOYMWLUMVJUHSGQGOHNJOMMLKMJOKRMTKTJUJXLZOZRY",873:" 32JZRYQ\\ RRYS\\ RQ\\S\\ RRYVXVVXUXRZQZLYIXHVHTGPGNHLHKIJLJQLRLUNVNXRY",874:" 15I[IPKR RLKNP RRGRO RXKVP R[PYR",899:" 6QSRQQRRSSRRQ",900:" 10PTQPPQPSQTSTTSTQSPQP",901:" 14NVQNOONQNSOUQVSVUUVSVQUOSNQN",902:" 18MWQMONNOMQMSNUOVQWSWUVVUWSWQVOUNSMQM",903:" 18KYQKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK",904:" 22G]PGMHJJHMGPGTHWJZM\\P]T]W\\ZZ\\W]T]P\\MZJWHTGPG",905:" 34AcPALBJCGEEGCJBLAPATBXCZE]G_JaLbPcTcXbZa]__]aZbXcTcPbLaJ_G]EZCXBTAPA",906:" 34fRAPCMDJDGCEA>H@JAMAZB]D_G`M`PaRc RRATCWDZD]C_AfHdJcMcZb]`_]`W`TaRc",909:" 33AcRAPCMDJDGCEABGAKAPBTDXG\\L`Rc RRATCWDZD]C_AbGcKcPbT`X]\\X`Rc RBHbH",997:" 3MWMXWX",998:" 3JZJZZZ",999:" 3JZJ]Z]",1001:" 18KYRKMX RRNVX RRKWX ROTTT RKXPX RTXYX",1002:" 35JZNKNX ROKOX RLKSKVLWNVPSQ RSKULVNUPSQ ROQSQVRWTWUVWSXLX RSQURVTVUUWSX",1003:" 24KYVLWKWOVLTKQKOLNMMPMSNVOWQXTXVWWU RQKOMNPNSOVQX",1004:" 26JZNKNX ROKOX RLKSKVLWMXPXSWVVWSXLX RSKULVMWPWSVVUWSX",1005:" 22JYNKNX ROKOX RSOSS RLKVKVOUK ROQSQ RLXVXVTUX",1006:" 20JXNKNX ROKOX RSOSS RLKVKVOUK ROQSQ RLXQX",1007:" 36K[VLWKWOVLTKQKOLNMMPMSNVOWQXTXVW RQKOMNPNSOVQX RTXUWVU RVSVX RWSWX RTSYS",1008:" 27J[NKNX ROKOX RVKVX RWKWX RLKQK RTKYK ROQVQ RLXQX RTXYX",1009:" 12NWRKRX RSKSX RPKUK RPXUX",1010:" 19LXSKSURWQX RTKTUSWQXPXNWMUNTOUNV RQKVK",1011:" 27JZNKNX ROKOX RWKOS RQQVX RRQWX RLKQK RTKYK RLXQX RTXYX",1012:" 14KXOKOX RPKPX RMKRK RMXWXWTVX",1013:" 30I\\MKMX RNNRX RNKRU RWKRX RWKWX RXKXX RKKNK RWKZK RKXOX RUXZX",1014:" 21JZNKNX ROMVX ROKVV RVKVX RLKOK RTKXK RLXPX",1015:" 32KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK",1016:" 25JYNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXQX",1017:" 47KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK RPWPUQTSTTUUZV[W[XZ RTUUXVZW[",1018:" 37JZNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXQX RSRTSUWVXWXXW RSRUSVWWX",1019:" 32KZVMWKWOVMULSKQKOLNMNOOPQQTRVSWT RNNOOQPTQVRWSWVVWTXRXPWOVNTNXOV",1020:" 16KZRKRX RSKSX RNKMOMKXKXOWK RPXUX",1021:" 20J[NKNUOWQXTXVWWUWK ROKOUPWQX RLKQK RUKYK",1022:" 15KYMKRX RNKRU RWKRX RKKPK RTKYK",1023:" 24I[LKOX RMKOT RRKOX RRKUX RSKUT RXKUX RJKOK RVKZK",1024:" 21KZNKVX ROKWX RWKNX RLKQK RTKYK RLXQX RTXYX",1025:" 20LYNKRRRX ROKSR RWKSRSX RLKQK RTKYK RPXUX",1026:" 16LYVKNX RWKOX ROKNONKWK RNXWXWTVX",1027:" 18KYRKMX RRNVX RRKWX ROTTT RKXPX RTXYX",1028:" 35JZNKNX ROKOX RLKSKVLWNVPSQ RSKULVNUPSQ ROQSQVRWTWUVWSXLX RSQURVTVUUWSX",1029:" 14KXOKOX RPKPX RMKWKWOVK RMXRX",1030:" 15KYRKLX RRMWX RRKXX RMWVW RLXXX",1031:" 22JYNKNX ROKOX RSOSS RLKVKVOUK ROQSQ RLXVXVTUX",1032:" 16LYVKNX RWKOX ROKNONKWK RNXWXWTVX",1033:" 27J[NKNX ROKOX RVKVX RWKWX RLKQK RTKYK ROQVQ RLXQX RTXYX",1034:" 44KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK RQOQT RTOTT RQQTQ RQRTR",1035:" 12NWRKRX RSKSX RPKUK RPXUX",1036:" 27JZNKNX ROKOX RWKOS RQQVX RRQWX RLKQK RTKYK RLXQX RTXYX",1037:" 15KYRKMX RRNVX RRKWX RKXPX RTXYX",1038:" 30I\\MKMX RNNRX RNKRU RWKRX RWKWX RXKXX RKKNK RWKZK RKXOX RUXZX",1039:" 21JZNKNX ROMVX ROKVV RVKVX RLKOK RTKXK RLXPX",1040:" 36JZMJLM RXJWM RPPOS RUPTS RMVLY RXVWY RMKWK RMLWL RPQTQ RPRTR RMWWW RMXWX",1041:" 32KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK",1042:" 21J[NKNX ROKOX RVKVX RWKWX RLKYK RLXQX RTXYX",1043:" 25JYNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXQX",1044:" 20K[MKRQ RNKSQMX RMKWKXOVK RNWWW RMXWXXTVX",1045:" 16KZRKRX RSKSX RNKMOMKXKXOWK RPXUX",1046:" 33KZMONLOKPKQLRORX RXOWLVKUKTLSOSX RMONMOLPLQMRO RXOWMVLULTMSO RPXUX",1047:" 40KZRKRX RSKSX RQNNOMQMRNTQUTUWTXRXQWOTNQN RQNOONQNROTQU RTUVTWRWQVOTN RPKUK RPXUX",1048:" 21KZNKVX ROKWX RWKNX RLKQK RTKYK RLXQX RTXYX",1049:" 33J[RKRX RSKSX RLPMONOOSQU RTUVSWOXOYP RMONROTQUTUVTWRXO RPKUK RPXUX",1050:" 35KZMVNXQXMRMONMOLQKTKVLWMXOXRTXWXXV ROUNRNOOMQK RTKVMWOWRVU RNWPW RUWWW",1051:" 18KYTKKX RSMTX RTKUX RNTTT RIXNX RRXWX",1052:" 34JYPKLX RQKMX RNKUKWLWNVPSQ RUKVLVNUPSQ ROQRQTRUSUUTWQXJX RRQTSTUSWQX",1053:" 25KXVLWLXKWNVLTKRKPLOMNOMRMUNWPXRXTWUU RRKPMOONRNVPX",1054:" 26JYPKLX RQKMX RNKTKVLWNWQVTUVTWQXJX RTKULVNVQUTTVSWQX",1055:" 22JYPKLX RQKMX RSORS RNKXKWNWK ROQRQ RJXTXUUSX",1056:" 20JXPKLX RQKMX RSORS RNKXKWNWK ROQRQ RJXOX",1057:" 33KYVLWLXKWNVLTKRKPLOMNOMRMUNWPXRXTWUVVS RRKPMOONRNVPX RRXTVUS RSSXS",1058:" 27J[PKLX RQKMX RXKTX RYKUX RNKSK RVK[K ROQVQ RJXOX RRXWX",1059:" 12NWTKPX RUKQX RRKWK RNXSX",1060:" 19LXUKRUQWPX RVKSURWPXOXMWLUMTNUMV RSKXK",1061:" 27JZPKLX RQKMX RYKOR RRPTX RSPUX RNKSK RVK[K RJXOX RRXWX",1062:" 14KXQKMX RRKNX ROKTK RKXUXVUTX",1063:" 30I\\OKKX ROMPX RPKQV RYKPX RYKUX RZKVX RMKPK RYK\\K RIXMX RSXXX",1064:" 21JZPKLX RPKTX RQKTU RXKTX RNKQK RVKZK RJXNX",1065:" 32KYRKPLOMNOMRMUNWPXRXTWUVVTWQWNVLTKRK RRKPMOONRNVPX RRXTVUTVQVMTK",1066:" 24JYPKLX RQKMX RNKUKWLXMXOWQTROR RUKWMWOVQTR RJXOX",1067:" 46KYRKPLOMNOMRMUNWPXRXTWUVVTWQWNVLTKRK RRKPMOONRNVPX RRXTVUTVQVMTK ROWOVPUQURVRZS[T[UZ RRVSZT[",1068:" 35JZPKLX RQKMX RNKUKWLXMXOWQTROR RUKWMWOVQTR RSRTWUXVXWW RSRTSUWVX RJXOX",1069:" 28KZWLXLYKXNWLUKRKPLOMOOPPUSVT RONPOURVSVVUWSXPXNWMULXMWNW",1070:" 16KZTKPX RUKQX RPKNNOKZKYNYK RNXSX",1071:" 20J[PKMUMWOXSXUWVUYK RQKNUNWOX RNKSK RWK[K",1072:" 15KYOKPX RPKQV RYKPX RMKRK RVK[K",1073:" 24I[NKMX ROKNV RTKMX RTKSX RUKTV RZKSX RLKQK RXK\\K",1074:" 21KZPKTX RQKUX RYKLX RNKSK RVK[K RJXOX RRXWX",1075:" 20LYPKRQPX RQKSQ RYKSQQX RNKSK RVK[K RNXSX",1076:" 16LYXKLX RYKMX RQKONPKYK RLXUXVUTX",1101:" 32LZQOPPPQOQOPQOTOVQVWWXXX RTOUQUWWX RURRSPTOUOWPXSXTWUU RRSPUPWQX",1102:" 29JYNKNX ROKOX RORPPROTOVPWRWUVWTXRXPWOU RTOUPVRVUUWTX RLKOK",1103:" 24LXVQUQURVRVQUPSOQOOPNRNUOWQXSXUWVV RQOPPOROUPWQX",1104:" 32L[VKVX RWKWX RVRUPSOQOOPNRNUOWQXSXUWVU RQOPPOROUPWQX RTKWK RVXYX",1105:" 26LXOSVSVRUPSOQOOPNRNUOWQXSXUWVV RUSUQSO RQOPPOROUPWQX",1106:" 20LWTKULUMVMVLTKRKPMPX RRKQMQX RNOSO RNXSX",1107:" 42LYQOOQOSQUSUUSUQSOQO RQOPQPSQU RSUTSTQSO RTPUOVO RPTOUOXPYTYVZ ROWPXTXVYV[T\\P\\N[NYPX",1108:" 28J[NKNX ROKOX RORPPROTOVPWRWX RTOUPVRVX RLKOK RLXQX RTXYX",1109:" 18NWRKRLSLSKRK RRORX RSOSX RPOSO RPXUX",1110:" 23NWSKSLTLTKSK RSOSZR\\ RTOTZR\\P\\O[OZPZP[O[ RQOTO",1111:" 27JZNKNX ROKOX RWOOU RRSVX RSSWX RLKOK RTOYO RLXQX RTXYX",1112:" 12NWRKRX RSKSX RPKSK RPXUX",1113:" 44F_JOJX RKOKX RKRLPNOPORPSRSX RPOQPRRRX RSRTPVOXOZP[R[X RXOYPZRZX RHOKO RHXMX RPXUX RXX]X",1114:" 28J[NONX ROOOX RORPPROTOVPWRWX RTOUPVRVX RLOOO RLXQX RTXYX",1115:" 28LYQOOPNRNUOWQXTXVWWUWRVPTOQO RQOPPOROUPWQX RTXUWVUVRUPTO",1116:" 32JYNON\\ ROOO\\ RORPPROTOVPWRWUVWTXRXPWOU RTOUPVRVUUWTX RLOOO RL\\Q\\",1117:" 29KYUOU\\ RVOV\\ RURTPROPONPMRMUNWPXRXTWUU RPOOPNRNUOWPX RS\\X\\",1118:" 22KXOOOX RPOPX RPRQPSOUOVPVQUQUPVP RMOPO RMXRX",1119:" 26LYTOUPUQVQVPTOQOOPORQSTTVU ROQQRTSVTVWTXQXOWOVPVPWQX",1120:" 14LWPKPVRXTXUWUV RQKQVRX RNOTO",1121:" 28J[NONUOWQXSXUWVU ROOOUPWQX RVOVX RWOWX RLOOO RTOWO RVXYX",1122:" 15KYNORX ROORV RVORX RLOQO RTOXO",1123:" 24I[LOOX RMOOU RROOX RROUX RSOUU RXOUX RJOOO RVOZO",1124:" 21KYNOUX ROOVX RVONX RLOQO RTOXO RLXPX RSXXX",1125:" 23KYNORX ROORV RVORXP[N\\M\\L[LZMZM[L[ RLOQO RTOXO",1126:" 16LXUONX RVOOX ROONQNOVO RNXVXVVUX",1127:" 32K[QOOPNQMSMUNWPXQXSWUUWRXO RQOOQNSNUOWPX RQOSOUPWWXX RSOTPVWXXYX",1128:" 40KXRKPMOOMUK\\ RQLPNNTL\\ RRKTKVLVNUPRQ RTKULUNTPRQ RRQTRUTUVTWRXQXOWNT RRQSRTTTVRX",1129:" 19KYLQNOPORPSSSXR\\ RLQNPPPRQSS RWOVRSXQ\\",1130:" 39KYSOQOOPNQMSMUNWPXRXTWUVVTVRUPRNQLQKRJTJUKVM RQOOQNSNVPX RRXTVUTUQSO RQLRKTKVM",1131:" 27LXVPTOQOOPOQPRRS RQOPPPQRS RRSOTNUNWPXSXUW RRSPTOUOWPX",1132:" 28LWRKQLQMSNVNVMSNPOOPNRNTOVPWRXSYS[R\\P\\O[ RSNQOPPOROTPVRX",1133:" 26IYJRKPLONOOPOQMX RMONPNQLX ROQPPROTOVPVRS\\ RTOUPURR\\",1134:" 35IYJSKQLPNPOQOVPX RMPNQNUOWPXQXSWTVUTVQVNULTKRKQLQNRPURWS RQXSVTTUQUNTK",1135:" 13NWROPVPWQXSXUWVU RSOQVQWRX",1136:" 26KYOOLX RPOMX RUOVPWPVOTORQOR RORPSRWTXVWWU RORQSSWTX",1137:" 15LXLKNKPLWX RNKOLVX RRPMX RRPNX",1138:" 26KZOOK\\ RPOL\\ RNUNWOXQXSWTV RVOTVTWUXWXXWYU RWOUVUWVX",1139:" 19JYNOMX ROONUMX RVRVOWOVRTUQWNXMX RLOOO",1140:" 36MXRKQLQMSNVN RTNQOPPPRRSUS RTNROQPQRRS RSSPTOUOWQXSYTZT[S\\Q\\ RSSQTPUPWQX",1141:" 28KXQOOPNQMSMUNWPXRXTWUVVTVRUPSOQO RQOOQNSNVPX RRXTVUTUQSO",1142:" 20IZPPMX RPPNX RTPSX RTPTX RKQMOXO RKQMPXP",1143:" 29JXSOQOOPNQMSJ\\ RQOOQNSK\\ RSOUPVRVTUVTWRXPXNWMU RSOUQUTTVRX",1144:" 28K[YOQOOPNQMSMUNWPXRXTWUVVTVRUPYP RQOOQNSNVPX RRXTVUTUQSO",1145:" 14KZSPQX RSPRX RMQOOXO RMQOPXP",1146:" 24JXKRLPMOOOPPPROUOWPX RNOOPORNUNWPXQXSWUUVRVOUOVP",1147:" 35KZOPNQMSMUNWPXRXUWWUXRXPWOUOTPSRRUO\\ RMUNVPWRWUVWTXR RXQWPUPSR RRUQXP\\",1148:" 17KXMONOPPS[T\\ RNOOPR[T\\U\\ RVOTRNYL\\",1149:" 28I[TKQ\\ RUKP\\ RJRKPLONOOPOVPWSWUVWT RMONPNTOWPXSXUWWTXRYO",1150:" 36JZNPPPPONPMQLSLUMWNXPXQWRUSR RLUNWPWRU RRRRWSXUXWVXTXRWPVOVPWP RRUSWUWWV",1151:" 32KZVOTVTWUXWXXWYU RWOUVUWVX RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX",1152:" 32JXOKMR RPKNRNVPX RNROPQOSOUPVRVTUVTWRXPXNWMUMR RSOUQUTTVRX RMKPK",1153:" 22KXUPUQVQUPSOQOOPNQMSMUNWPXRXTWUV RQOOQNSNVPX",1154:" 35KZWKTVTWUXWXXWYU RXKUVUWVX RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX RUKXK",1155:" 23KWNURTTSURUPSOQOOPNQMSMUNWPXRXTWUV RQOOQNSNVPX",1156:" 23MXWKXLXKVKTLSNPYO[N\\ RVKULTNQYP[N\\L\\L[M\\ RPOVO",1157:" 34KYVOTVSYR[ RWOUVTYR[P\\M\\L[M[N\\ RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX",1158:" 29KZPKLX RQKMX ROQPPROTOVPVRUUUWVX RTOUPURTUTWUXWXXWYU RNKQK",1159:" 26MWSKSLTLTKSK RNROPPOROSPSRRURWSX RQORPRRQUQWRXTXUWVU",1160:" 26MWTKTLULUKTK RORPPQOSOTPTRRYQ[O\\M\\M[N\\ RROSPSRQYP[O\\",1161:" 32KXPKLX RQKMX RVPUQVQVPUOTORQPROR RORPSQWRXTXUWVU RORQSRWSX RNKQK",1162:" 16NVSKPVPWQXSXTWUU RTKQVQWRX RQKTK",1163:" 46F^GRHPIOKOLPLQJX RJOKPKQIX RLQMPOOQOSPSQQX RQORPRQPX RSQTPVOXOZPZRYUYWZX RXOYPYRXUXWYX[X\\W]U",1164:" 33J[KRLPMOOOPPPQNX RNOOPOQMX RPQQPSOUOWPWRVUVWWX RUOVPVRUUUWVXXXYWZU",1165:" 28KXQOOPNQMSMUNWPXRXTWUVVTVRUPSOQO RQOOQNSNVPX RRXTVUTUQSO",1166:" 35JYKRLPMOOOPPPQM\\ RNOOPOQL\\ RPQROTOVPWRWTVVUWSXQXOVOT RTOVQVTUVSX RJ\\O\\",1167:" 28KYVOR\\ RWOS\\ RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX RP\\U\\",1168:" 22LXMRNPOOQORPRQPX RPOQPQQOX RRQSPUOVOWPWQVQWP",1169:" 24LYVPVQWQVPTOQOOPORQSTTVU ROQQRTSVTVWTXQXOWNVOVOW",1170:" 16NWSKPVPWQXSXTWUU RTKQVQWRX RPOUO",1171:" 33IZJRKPLONOOPORNUNWOX RMONPNRMUMWOXQXSWTV RVOTVTWUXWXXWYU RWOUVUWVX",1172:" 24JXKRLPMOOOPPPROUOWPX RNOOPORNUNWPXQXSWUUVRVOUOVP",1173:" 37H\\IRJPKOMONPNRMUMWNX RLOMPMRLULWNXOXQWRV RTORVRWTX RUOSVSWTXUXWWYUZRZOYOZP",1174:" 38JZMRNPPOROSPSR RQORPRRQUPWNXMXLWLVMVLW RXPWQXQXPWOVOTPSRRURWSX RQUQWRXTXVWWU",1175:" 35IYJRKPLONOOPORNUNWOX RMONPNRMUMWOXQXSWTV RVOTVSYR[ RWOUVTYR[P\\M\\L[M[N\\",1176:" 27KYWOWPVQNVMWMX RNQOOROUQ ROPRPUQVQ RNVOVRWUW ROVRXUXVV",1177:" 39H[RKSLSMTMTLRKOKMLLNLX ROKNLMNMX RXKYLYMZMZLXKVKTMTX RVKUMUX RJOWO RJXOX RRXWX",1178:" 29J[UKVLWLWKQKOLNNNX RQKPLONOX RVOVX RWOWX RLOWO RLXQX RTXYX",1179:" 27J[WKQKOLNNNX RQKPLONOX RUKVLVX RWKWX RLOVO RLXQX RTXYX",1180:" 48F_PKQLQMRMRLPKMKKLJNJX RMKLLKNKX RYKZL[L[KUKSLRNRX RUKTLSNSX RZOZX R[O[X RHO[O RHXMX RPXUX RXX]X",1181:" 46F_PKQLQMRMRLPKMKKLJNJX RMKLLKNKX R[KUKSLRNRX RUKTLSNSX RYKZLZX R[K[X RHOZO RHXMX RPXUX RXX]X",1182:" 12NWRORX RSOSX RPOSO RPXUX",1184:" 21LXVPTOROPPOQNSNUOWQXSXUW RROPQOSOVQX ROSSS",1185:" 35LYSKQLPMOONRNUOWPXRXTWUVVTWQWNVLUKSK RSKQMPOOSOVPX RRXTVUTVPVMUK ROQVQ",1186:" 34KZTKQ\\ RUKP\\ RQONPMRMUNWQXTXWWXUXRWPTOQO RQOOPNRNUOWQX RTXVWWUWRVPTO",1187:" 22LXUPVRVQUPSOQOOPNRNTOVRX RQOOQOTPVRXSYS[R\\P\\",1191:" 45I[VKWLXLVKSKQLPMOOLYK[J\\ RSKQMPOMYL[J\\H\\H[I\\ RZK[L[KYKWLVNSYR[Q\\ RYKXLWNTYS[Q\\O\\O[P\\ RLOYO",1192:" 38IZVKWLXLXKSKQLPMOOLYK[J\\ RSKQMPOMYL[J\\H\\H[I\\ RVOTVTWUXWXXWYU RWOUVUWVX RLOWO",1193:" 38IZVKWL RXKSKQLPMOOLYK[J\\ RSKQMPOMYL[J\\H\\H[I\\ RWKTVTWUXWXXWYU RXKUVUWVX RLOVO",1194:" 63F^SKTLTM RULSKPKNLMMLOIYH[G\\ RPKNMMOJYI[G\\E\\E[F\\ RZK[L\\L\\KWKUL RTMSOPYO[N\\ RWKUMTOQYP[N\\L\\L[M\\ RZOXVXWYX[X\\W]U R[OYVYWZX RIO[O",1195:" 63F^SKTLTM RULSKPKNLMMLOIYH[G\\ RPKNMMOJYI[G\\E\\E[F\\ RZK[L R\\KWKUL RTMSOPYO[N\\ RWKUMTOQYP[N\\L\\L[M\\ R[KXVXWYX[X\\W]U R\\KYVYWZX RIOZO",1196:" 20MWNROPPOROSPSRRURWSX RQORPRRQUQWRXTXUWVU",1200:" 28LYQKOLNONTOWQXTXVWWTWOVLTKQK RQKPLOOOTPWQX RTXUWVTVOULTK",1201:" 10LYPNSKSX RRLRX ROXVX",1202:" 35LYOMONNNNMOLQKTKVLWNVPTQQROSNUNX RTKULVNUPTQ RNWOVPVSWVWWV RPVSXVXWVWU",1203:" 39LYOMONNNNMOLQKTKVLWNVPTQ RTKULVNUPTQ RRQTQVRWTWUVWTXQXOWNVNUOUOV RTQURVTVUUWTX",1204:" 13LYSMSX RTKTX RTKMTXT RQXVX",1205:" 33LYOKNQ ROKVK ROLSLVK RNQOPQOTOVPWRWUVWTXQXOWNVNUOUOV RTOUPVRVUUWTX",1206:" 36LYVMVNWNWMVLTKRKPLOMNPNUOWQXTXVWWUWSVQTPQPNR RRKPMOPOUPWQX RTXUWVUVSUQTP",1207:" 22LYNKNO RVMRTPX RWKTQQX RNMPKRKUM RNMPLRLUMVM",1208:" 51LYQKOLNNOPQQTQVPWNVLTKQK RQKPLONPPQQ RTQUPVNULTK RQQORNTNUOWQXTXVWWUWTVRTQ RQQPROTOUPWQX RTXUWVUVTURTQ",1209:" 36LYOVOUNUNVOWQXSXUWVVWSWNVLTKQKOLNNNPORQSTSWQ RSXUVVSVNULTK RQKPLONOPPRQS",1210:" 6NVRVQWRXSWRV",1211:" 8NVSWRXQWRVSWSYQ[",1212:" 12NVROQPRQSPRO RRVQWRXSWRV",1213:" 14NVROQPRQSPRO RSWRXQWRVSWSYQ[",1214:" 15NVRKQLRSSLRK RRLRO RRVQWRXSWRV",1215:" 29LYNNONOONONNOLQKTKVLWNWOVQSRRSRTST RTKVMVPUQSR RRWRXSXSWRW",1216:" 6OVRKRP RSKRP",1217:" 12LXOKOP RPKOP RUKUP RVKUP",1218:" 10MWQKPLPNQOSOTNTLSKQK",1219:" 9MWRJRP ROKUO RUKOO",1220:" 3KZXHM\\",1221:" 16MWUHSJQMPPPTQWSZU\\ RSJRLQPQTRXSZ",1222:" 16MWOHQJSMTPTTSWQZO\\ RQJRLSPSTRXQZ",1223:" 12MWPHP\\ RQHQ\\ RPHUH RP\\U\\",1224:" 12MWSHS\\ RTHT\\ ROHTH RO\\T\\",1225:" 38LWSHQIPJPLRNSP RQIPL RSNRQ RPJQLSNSPRQPRRSSTSVQXPZ RRSSV RPXQ[ RSTRVPXPZQ[S\\",1226:" 38MXQHSITJTLRNQP RSITL RQNRQ RTJSLQNQPRQTRRSQTQVSXTZ RRSQV RTXS[ RQTRVTXTZS[Q\\",1227:" 4MWTHPRT\\",1228:" 4MWPHTRP\\",1229:" 3OURHR\\",1230:" 6MWPHP\\ RTHT\\",1231:" 3I[LRXR",1232:" 6I[RLRX RLRXR",1233:" 9JZRMRX RMRWR RMXWX",1234:" 9JZRMRX RMMWM RMRWR",1235:" 6JZMMWW RWMMW",1236:" 6NVRQQRRSSRRQ",1237:" 15I[RLQMRNSMRL RLRXR RRVQWRXSWRV",1238:" 6I[LPXP RLTXT",1239:" 9I[WLMX RLPXP RLTXT",1240:" 9I[LNXN RLRXR RLVXV",1241:" 4JZWLMRWX",1242:" 4JZMLWRMX",1243:" 10JZWKMOWS RMTWT RMXWX",1244:" 10JZMKWOMS RMTWT RMXWX",1245:" 21H[YUWUUTTSRPQOONNNLOKQKRLTNUOUQTRSTPUOWNYN",1246:" 16JZLTLRMPOPUSWSXR RLRMQOQUTWTXRXP",1247:" 8JZMSRPWS RMSRQWS",1248:" 7NVSKPO RSKTLPO",1249:" 7NVQKTO RQKPLTO",1250:" 14LXNKOMQNSNUMVK RNKONQOSOUNVK",1251:" 8NVSLRMQLRKSLSNQP",1252:" 8NVSKQMQORPSORNQO",1253:" 8NVQLRMSLRKQLQNSP",1254:" 8NVQKSMSORPQORNSO",1256:" 11JZWMQMONNOMQMSNUOVQWWW",1257:" 11JZMMMSNUOVQWSWUVVUWSWM",1258:" 11JZMMSMUNVOWQWSVUUVSWMW",1259:" 11JZMWMQNOONQMSMUNVOWQWW",1260:" 14JZWMQMONNOMQMSNUOVQWWW RMRUR",1261:" 13I[TOUPXRUTTU RUPWRUT RLRWR",1262:" 13MWRMRX ROPPORLTOUP RPORMTO",1263:" 13I[POOPLROTPU ROPMROT RMRXR",1264:" 13MWRLRW ROTPURXTUUT RPURWTU",1265:" 37KYVSUPSOQOOPNQMSMUNWPXRXTWUVVTWQWNVLTKQKPLQLRK RQOOQNSNVPX RRXTVUTVQVNULTK",1266:" 15JZLKRX RMKRV RXKRX RLKXK RNLWL",1267:" 10G[IOLORW RKORX R[FRX",1268:" 26I[XIXJYJYIXHVHTJSLROQUPYO[ RUITKSORUQXPZN\\L\\K[KZLZL[",1269:" 40I[XIXJYJYIXHVHTJSLROQUPYO[ RUITKSORUQXPZN\\L\\K[KZLZL[ RQNOONQNSOUQVSVUUVSVQUOSNQN",1270:" 26H\\ZRYTWUVUTTSSQPPONNMNKOJQJRKTMUNUPTQSSPTOVNWNYOZQZR",1271:" 26JZXKLX ROKPLPNOOMOLNLLMKOKSLVLXK RUTTUTWUXWXXWXUWTUT",1272:" 41J[YPXPXQYQYPXOWOVPUTTVSWQXOXMWLVLTMSORRPSNSLRKPKOLONPQUWWXXXYW ROXMVMTOR RONPPVWWX",1273:" 29J[UPSOQOPQPRQTSTUS RUOUSVTXTYRYQXNVLSKRKOLMNLQLRMUOWRXSXVW",1274:" 34KZQHQ\\ RTHT\\ RWLVLVMWMWLUKPKNLNNOPVSWT RNNOOVRWTWVVWTXQXOWNVNUOUOVNV",1275:" 12KYRKN\\ RVKR\\ RNQWQ RMVVV",1276:" 40LXTLSLSMTMTLSKQKPLPNQPTRUS RPNQOTQUSUUSW RQPOROTPVSXTY ROTPUSWTYT[S\\Q\\P[PZQZQ[P[",1277:" 29LXRKQLRMSLRK RRMRQ RRQQSRVSSRQ RRVR\\ RPOONNOOPPOTOUNVOUPTO",1278:" 42LXRMSLRKQLRMRQQRSURV RRQSRQURVRZQ[R\\S[RZ RPOONNOOPPOTOUNVOUPTO RPXOWNXOYPXTXUWVXUYTX",1279:" 12LYVKVX RNKVK RQQVQ RNXVX",1281:" 24H\\QKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK RRQQRRSSRRQ",1282:" 33LYQKPLPMQN RTKULUMTN RRNPOOQORPTRUSUUTVRVQUOSNRN RRURY RSUSY ROWVW",1283:" 23LYRKPLONOOPQRRSRUQVOVNULSKRK RRRRX RSRSX ROUVU",1284:" 24H\\QKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK RRKRY RKRYR",1285:" 25JYRRPQOQMRLTLUMWOXPXRWSUSTRR RWMRR RRMWMWR RRMVNWR",1286:" 25JZLLMKOKQLRNRPQRPSNT ROKPLQNQQPS RVKUX RWKTX RNTXT",1287:" 27JYNKNU ROKNR RNROPQOSOUPVQVTTVTXUYVYWX RSOUQUTTV RLKOK",1288:" 27LYONRKRQ RVNSKSQ RRQPROTOUPWRXSXUWVUVTURSQ RRTRUSUSTRT",1289:" 27JZRKRY RMKMPNRPSTSVRWPWK RLMMKNM RQMRKSM RVMWKXM ROVUV",1290:" 27JYNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXVXVUUX",1291:" 20LYWKTKQLONNQNSOVQXTYWY RWKTLRNQQQSRVTXWY",1292:" 23JZRRPQOQMRLTLUMWOXPXRWSUSTRR RSLQQ RWMRR RXQSS",1293:" 12KYPMTW RTMPW RMPWT RWPMT",1294:" 34J[OUMULVLXMYOYPXPVNTMRMONMOLQKTKVLWMXOXRWTUVUXVYXYYXYVXUVU RNMPLULWM",1295:" 34J[OOMOLNLLMKOKPLPNNPMRMUNWOXQYTYVXWWXUXRWPUNULVKXKYLYNXOVO RNWPXUXWW",1401:" 21F^KHK\\ RLHL\\ RXHX\\ RYHY\\ RHH\\H RH\\O\\ RU\\\\\\",1402:" 20H]KHRQJ\\ RJHQQ RJHYHZMXH RK[X[ RJ\\Y\\ZWX\\",1403:" 20KYVBTDRGPKOPOTPYR]T`Vb RTDRHQKPPPTQYR\\T`",1404:" 20KYNBPDRGTKUPUTTYR]P`Nb RPDRHSKTPTTSYR\\P`",1405:" 12KYOBOb RPBPb ROBVB RObVb",1406:" 12KYTBTb RUBUb RNBUB RNbUb",1407:" 40KYTBRCQDPFPHQJRKSMSOQQ RRCQEQGRISJTLTNSPORSTTVTXSZR[Q]Q_Ra RQSSUSWRYQZP\\P^Q`RaTb",1408:" 40KYPBRCSDTFTHSJRKQMQOSQ RRCSESGRIQJPLPNQPURQTPVPXQZR[S]S_Ra RSSQUQWRYSZT\\T^S`RaPb",1409:" 24KYU@RCPFOIOLPOSVTYT\\S_Ra RRCQEPHPKQNTUUXU[T^RaOd",1410:" 24KYO@RCTFUIULTOQVPYP\\Q_Ra RRCSETHTKSNPUOXO[P^RaUd",1411:" 13AXCRGRR` RGSRa RFSRb RX:Rb",1412:" 32F^[CZD[E\\D\\C[BYBWCUETGSJRNPZO^N` RVDUFTJRVQZP]O_MaKbIbHaH`I_J`Ia",2001:" 18H\\RFK[ RRFY[ RRIX[ RMUVU RI[O[ RU[[[",2002:" 45G]LFL[ RMFM[ RIFUFXGYHZJZLYNXOUP RUFWGXHYJYLXNWOUP RMPUPXQYRZTZWYYXZU[I[ RUPWQXRYTYWXYWZU[",2003:" 32G\\XIYLYFXIVGSFQFNGLIKKJNJSKVLXNZQ[S[VZXXYV RQFOGMILKKNKSLVMXOZQ[",2004:" 30G]LFL[ RMFM[ RIFSFVGXIYKZNZSYVXXVZS[I[ RSFUGWIXKYNYSXVWXUZS[",2005:" 22G\\LFL[ RMFM[ RSLST RIFYFYLXF RMPSP RI[Y[YUX[",2006:" 20G[LFL[ RMFM[ RSLST RIFYFYLXF RMPSP RI[P[",2007:" 40G^XIYLYFXIVGSFQFNGLIKKJNJSKVLXNZQ[S[VZXX RQFOGMILKKNKSLVMXOZQ[ RXSX[ RYSY[ RUS\\S",2008:" 27F^KFK[ RLFL[ RXFX[ RYFY[ RHFOF RUF\\F RLPXP RH[O[ RU[\\[",2009:" 12MXRFR[ RSFS[ ROFVF RO[V[",2010:" 20KZUFUWTZR[P[NZMXMVNUOVNW RTFTWSZR[ RQFXF",2011:" 27F\\KFK[ RLFL[ RYFLS RQOY[ RPOX[ RHFOF RUF[F RH[O[ RU[[[",2012:" 14I[NFN[ ROFO[ RKFRF RK[Z[ZUY[",2013:" 30F_KFK[ RLFRX RKFR[ RYFR[ RYFY[ RZFZ[ RHFLF RYF]F RH[N[ RV[][",2014:" 21G^LFL[ RMFYY RMHY[ RYFY[ RIFMF RVF\\F RI[O[",2015:" 44G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RQFOGMILKKOKRLVMXOZQ[ RS[UZWXXVYRYOXKWIUGSF",2016:" 29G]LFL[ RMFM[ RIFUFXGYHZJZMYOXPUQMQ RUFWGXHYJYMXOWPUQ RI[P[",2017:" 64G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RQFOGMILKKOKRLVMXOZQ[ RS[UZWXXVYRYOXKWIUGSF RNYNXOVQURUTVUXV_W`Y`Z^Z] RUXV\\W^X_Y_Z^",2018:" 45G]LFL[ RMFM[ RIFUFXGYHZJZLYNXOUPMP RUFWGXHYJYLXNWOUP RI[P[ RRPTQURXYYZZZ[Y RTQUSWZX[Z[[Y[X",2019:" 34H\\XIYFYLXIVGSFPFMGKIKKLMMNOOUQWRYT RKKMMONUPWQXRYTYXWZT[Q[NZLXKUK[LX",2020:" 16I\\RFR[ RSFS[ RLFKLKFZFZLYF RO[V[",2021:" 23F^KFKULXNZQ[S[VZXXYUYF RLFLUMXOZQ[ RHFOF RVF\\F",2022:" 15H\\KFR[ RLFRX RYFR[ RIFOF RUF[F",2023:" 24F^JFN[ RKFNV RRFN[ RRFV[ RSFVV RZFV[ RGFNF RWF]F",2024:" 21H\\KFX[ RLFY[ RYFK[ RIFOF RUF[F RI[O[ RU[[[",2025:" 20H]KFRQR[ RLFSQS[ RZFSQ RIFOF RVF\\F RO[V[",2026:" 16H\\XFK[ RYFL[ RLFKLKFYF RK[Y[YUX[",2027:" 18H\\RFK[ RRFY[ RRIX[ RMUVU RI[O[ RU[[[",2028:" 45G]LFL[ RMFM[ RIFUFXGYHZJZLYNXOUP RUFWGXHYJYLXNWOUP RMPUPXQYRZTZWYYXZU[I[ RUPWQXRYTYWXYWZU[",2029:" 14I[NFN[ ROFO[ RKFZFZLYF RK[R[",2030:" 15H\\RFJ[ RRFZ[ RRIY[ RKZYZ RJ[Z[",2031:" 22G\\LFL[ RMFM[ RSLST RIFYFYLXF RMPSP RI[Y[YUX[",2032:" 16H\\XFK[ RYFL[ RLFKLKFYF RK[Y[YUX[",2033:" 27F^KFK[ RLFL[ RXFX[ RYFY[ RHFOF RUF\\F RLPXP RH[O[ RU[\\[",2034:" 56G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RQFOGMILKKOKRLVMXOZQ[ RS[UZWXXVYRYOXKWIUGSF ROMOT RUMUT ROPUP ROQUQ",2035:" 12MXRFR[ RSFS[ ROFVF RO[V[",2036:" 27F\\KFK[ RLFL[ RYFLS RQOY[ RPOX[ RHFOF RUF[F RH[O[ RU[[[",2037:" 15H\\RFK[ RRFY[ RRIX[ RI[O[ RU[[[",2038:" 30F_KFK[ RLFRX RKFR[ RYFR[ RYFY[ RZFZ[ RHFLF RYF]F RH[N[ RV[][",2039:" 21G^LFL[ RMFYY RMHY[ RYFY[ RIFMF RVF\\F RI[O[",2040:" 36G]KEJJ RZEYJ RONNS RVNUS RKWJ\\ RZWY\\ RKGYG RKHYH ROPUP ROQUQ RKYYY RKZYZ",2041:" 44G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RQFOGMILKKOKRLVMXOZQ[ RS[UZWXXVYRYOXKWIUGSF",2042:" 21F^KFK[ RLFL[ RXFX[ RYFY[ RHF\\F RH[O[ RU[\\[",2043:" 29G]LFL[ RMFM[ RIFUFXGYHZJZMYOXPUQMQ RUFWGXHYJYMXOWPUQ RI[P[",2044:" 20H]KFRPJ[ RJFQP RJFYFZLXF RKZXZ RJ[Y[ZUX[",2045:" 16I\\RFR[ RSFS[ RLFKLKFZFZLYF RO[V[",2046:" 33I\\KKKILGMFOFPGQIRMR[ RKIMGOGQI RZKZIYGXFVFUGTISMS[ RZIXGVGTI RO[V[",2047:" 48H]RFR[ RSFS[ RPKMLLMKOKRLTMUPVUVXUYTZRZOYMXLUKPK RPKNLMMLOLRMTNUPV RUVWUXTYRYOXMWLUK ROFVF RO[V[",2048:" 21H\\KFX[ RLFY[ RYFK[ RIFOF RUF[F RI[O[ RU[[[",2049:" 41G^RFR[ RSFS[ RIMJLLMMQNSOTQU RJLKMLQMSNTQUTUWTXSYQZM[L RTUVTWSXQYM[L\\M ROFVF RO[V[",2050:" 43G]JXK[O[MWKSJPJLKIMGPFTFWGYIZLZPYSWWU[Y[ZX RMWLTKPKLLINGPF RTFVGXIYLYPXTWW RKZNZ RVZYZ",2051:" 18H\\UFH[ RUFV[ RTHU[ RLUUU RF[L[ RR[X[",2052:" 41F^OFI[ RPFJ[ RLFWFZG[I[KZNYOVP RWFYGZIZKYNXOVP RMPVPXQYSYUXXVZR[F[ RVPWQXSXUWXUZR[",2053:" 34H]ZH[H\\F[L[JZHYGWFTFQGOIMLLOKSKVLYMZP[S[UZWXXV RTFRGPINLMOLSLVMYNZP[",2054:" 30F]OFI[ RPFJ[ RLFUFXGYHZKZOYSWWUYSZO[F[ RUFWGXHYKYOXSVWTYRZO[",2055:" 22F]OFI[ RPFJ[ RTLRT RLF[FZLZF RMPSP RF[U[WVT[",2056:" 20F\\OFI[ RPFJ[ RTLRT RLF[FZLZF RMPSP RF[M[",2057:" 42H^ZH[H\\F[L[JZHYGWFTFQGOIMLLOKSKVLYMZP[R[UZWXYT RTFRGPINLMOLSLVMYNZP[ RR[TZVXXT RUT\\T",2058:" 27E_NFH[ ROFI[ R[FU[ R\\FV[ RKFRF RXF_F RLPXP RE[L[ RR[Y[",2059:" 12LYUFO[ RVFP[ RRFYF RL[S[",2060:" 21I[XFSWRYQZO[M[KZJXJVKULVKW RWFRWQYO[ RTF[F",2061:" 27F]OFI[ RPFJ[ R]FLS RSOW[ RROV[ RLFSF RYF_F RF[M[ RS[Y[",2062:" 14H\\QFK[ RRFL[ RNFUF RH[W[YUV[",2063:" 30E`NFH[ RNFO[ ROFPY R\\FO[ R\\FV[ R]FW[ RKFOF R\\F`F RE[K[ RS[Z[",2064:" 21F_OFI[ ROFVX ROIV[ R\\FV[ RLFOF RYF_F RF[L[",2065:" 42G]SFPGNILLKOJSJVKYLZN[Q[TZVXXUYRZNZKYHXGVFSF RSFQGOIMLLOKSKVLYN[ RQ[SZUXWUXRYNYKXHVF",2066:" 27F]OFI[ RPFJ[ RLFXF[G\\I\\K[NYPUQMQ RXFZG[I[KZNXPUQ RF[M[",2067:" 61G]SFPGNILLKOJSJVKYLZN[Q[TZVXXUYRZNZKYHXGVFSF RSFQGOIMLLOKSKVLYN[ RQ[SZUXWUXRYNYKXHVF RLYLXMVOUPURVSXS_T`V`W^W] RSXT^U_V_W^",2068:" 42F^OFI[ RPFJ[ RLFWFZG[I[KZNYOVPMP RWFYGZIZKYNXOVP RRPTQURVZW[Y[ZYZX RURWYXZYZZY RF[M[",2069:" 35G^ZH[H\\F[L[JZHYGVFRFOGMIMKNMONVRXT RMKOMVQWRXTXWWYVZS[O[LZKYJWJUI[JYKY",2070:" 16H]UFO[ RVFP[ ROFLLNF]F\\L\\F RL[S[",2071:" 25F_NFKQJUJXKZN[R[UZWXXU\\F ROFLQKUKXLZN[ RKFRF RYF_F",2072:" 15H\\NFO[ ROFPY R\\FO[ RLFRF RXF^F",2073:" 24E_MFK[ RNFLY RUFK[ RUFS[ RVFTY R]FS[ RJFQF RZF`F",2074:" 21G]NFU[ ROFV[ R\\FH[ RLFRF RXF^F RF[L[ RR[X[",2075:" 20H]NFRPO[ ROFSPP[ R]FSP RLFRF RYF_F RL[S[",2076:" 16G][FH[ R\\FI[ ROFLLNF\\F RH[V[XUU[",2077:" 46H\\KILKXWYYY[ RLLXX RKIKKLMXYY[ RPPLTKVKXLZK[ RKVMZ RLTLVMXMZK[ RSSXN RVIVLWNYNYLWKVI RVIWLYN",2101:" 39I]NONPMPMONNPMTMVNWOXQXXYZZ[ RWOWXXZZ[[[ RWQVRPSMTLVLXMZP[S[UZWX RPSNTMVMXNZP[",2102:" 33G\\LFL[ RMFM[ RMPONQMSMVNXPYSYUXXVZS[Q[OZMX RSMUNWPXSXUWXUZS[ RIFMF",2103:" 28H[WPVQWRXQXPVNTMQMNNLPKSKULXNZQ[S[VZXX RQMONMPLSLUMXOZQ[",2104:" 36H]WFW[ RXFX[ RWPUNSMQMNNLPKSKULXNZQ[S[UZWX RQMONMPLSLUMXOZQ[ RTFXF RW[[[",2105:" 31H[LSXSXQWOVNTMQMNNLPKSKULXNZQ[S[VZXX RWSWPVN RQMONMPLSLUMXOZQ[",2106:" 22KXUGTHUIVHVGUFSFQGPIP[ RSFRGQIQ[ RMMUM RM[T[",2107:" 60I\\QMONNOMQMSNUOVQWSWUVVUWSWQVOUNSMQM RONNPNTOV RUVVTVPUN RVOWNYMYNWN RNUMVLXLYM[P\\U\\X]Y^ RLYMZP[U[X\\Y^Y_XaUbObLaK_K^L\\O[",2108:" 28G]LFL[ RMFM[ RMPONRMTMWNXPX[ RTMVNWPW[ RIFMF RI[P[ RT[[[",2109:" 18MXRFQGRHSGRF RRMR[ RSMS[ ROMSM RO[V[",2110:" 25MXSFRGSHTGSF RTMT_SaQbObNaN`O_P`Oa RSMS_RaQb RPMTM",2111:" 27G\\LFL[ RMFM[ RWMMW RRSX[ RQSW[ RIFMF RTMZM RI[P[ RT[Z[",2112:" 12MXRFR[ RSFS[ ROFSF RO[V[",2113:" 44BcGMG[ RHMH[ RHPJNMMOMRNSPS[ ROMQNRPR[ RSPUNXMZM]N^P^[ RZM\\N]P][ RDMHM RD[K[ RO[V[ RZ[a[",2114:" 28G]LML[ RMMM[ RMPONRMTMWNXPX[ RTMVNWPW[ RIMMM RI[P[ RT[[[",2115:" 36H\\QMNNLPKSKULXNZQ[S[VZXXYUYSXPVNSMQM RQMONMPLSLUMXOZQ[ RS[UZWXXUXSWPUNSM",2116:" 36G\\LMLb RMMMb RMPONQMSMVNXPYSYUXXVZS[Q[OZMX RSMUNWPXSXUWXUZS[ RIMMM RIbPb",2117:" 33H\\WMWb RXMXb RWPUNSMQMNNLPKSKULXNZQ[S[UZWX RQMONMPLSLUMXOZQ[ RTb[b",2118:" 23IZNMN[ ROMO[ ROSPPRNTMWMXNXOWPVOWN RKMOM RK[R[",2119:" 32J[WOXMXQWOVNTMPMNNMOMQNRPSUUWVXW RMPNQPRUTWUXVXYWZU[Q[OZNYMWM[NY",2120:" 16KZPFPWQZS[U[WZXX RQFQWRZS[ RMMUM",2121:" 28G]LMLXMZP[R[UZWX RMMMXNZP[ RWMW[ RXMX[ RIMMM RTMXM RW[[[",2122:" 15I[LMR[ RMMRY RXMR[ RJMPM RTMZM",2123:" 24F^JMN[ RKMNX RRMN[ RRMV[ RSMVX RZMV[ RGMNM RWM]M",2124:" 21H\\LMW[ RMMX[ RXML[ RJMPM RTMZM RJ[P[ RT[Z[",2125:" 22H[LMR[ RMMRY RXMR[P_NaLbKbJaK`La RJMPM RTMZM",2126:" 16I[WML[ RXMM[ RMMLQLMXM RL[X[XWW[",2127:" 40G^QMNNLPKRJUJXKZN[P[RZUWWTYPZM RQMONMPLRKUKXLZN[ RQMSMUNVPXXYZZ[ RSMTNUPWXXZZ[[[",2128:" 57G\\TFQGOIMMLPKTJZIb RTFRGPINMMPLTKZJb RTFVFXGYHYKXMWNTOPO RVFXHXKWMVNTO RPOTPVRWTWWVYUZR[P[NZMYLV RPOSPURVTVWUYTZR[",2129:" 28H\\IPKNMMOMQNROSRSVRZOb RJOLNPNRO RZMYPXRSYP^Nb RYMXPWRSY",2130:" 44I\\VNTMRMONMQLTLWMYNZP[R[UZWWXTXQWOSJRHRFSEUEWFYH RRMPNNQMTMXNZ RR[TZVWWTWPVNTKSISGTFVFYH",2131:" 32I[XPVNTMPMNNNPPRSS RPMONOPQRSS RSSNTLVLXMZP[S[UZWX RSSOTMVMXNZP[",2132:" 31I[TFRGQHQIRJUKZKZJWKSMPOMRLULWMYP[S]T_TaSbQbPa RULQONRMUMWNYP[",2133:" 32G]HQIOKMNMONOPNTL[ RMMNNNPMTK[ RNTPPRNTMVMXNYOYRXWUb RVMXOXRWWTb",2134:" 44F]GQHOJMMMNNNPMUMXNZO[ RLMMNMPLULXMZO[Q[SZUXWUXRYMYIXGVFTFRHRJSMUPWRZT RSZUWVUWRXMXIWGVF",2135:" 15LXRMPTOXOZP[S[UYVW RSMQTPXPZQ[",2136:" 29H\\NMJ[ ROMK[ RXMYNZNYMWMUNQROSMS ROSQTSZT[ ROSPTRZS[U[WZYW",2137:" 23H\\KFMFOGPHQJWXXZY[ RMFOHPJVXWZY[Z[ RRMJ[ RRMK[",2138:" 28F]MMGb RNMHb RMPLVLYN[P[RZTXVU RXMUXUZV[Y[[Y\\W RYMVXVZW[",2139:" 24H\\NML[ ROMNSMXL[ RYMXQVU RZMYPXRVUTWQYOZL[ RKMOM",2140:" 45IZTFRGQHQIRJUKXK RUKQLOMNONQPSSTVT RUKRLPMOOOQQSST RSTOUMVLXLZN\\S^T_TaRbPb RSTPUNVMXMZO\\S^",2141:" 32I[RMONMQLTLWMYNZP[R[UZWWXTXQWOVNTMRM RRMPNNQMTMXNZ RR[TZVWWTWPVN",2142:" 22G]PNL[ RPNM[ RVNV[ RVNW[ RIPKNNM[M RIPKONN[N",2143:" 31H[LVMYNZP[R[UZWWXTXQWOVNTMRMONMQLTHb RR[TZVWWTWPVN RRMPNNQMTIb",2144:" 35H][MQMNNLQKTKWLYMZO[Q[TZVWWTWQVOUNSM RQMONMQLTLXMZ RQ[SZUWVTVPUN RUN[N",2145:" 16H\\SNP[ RSNQ[ RJPLNOMZM RJPLOONZN",2146:" 31H\\IQJOLMOMPNPPNVNYP[ RNMONOPMVMYNZP[Q[TZVXXUYRYOXMWNXOYR RXUYO",2147:" 37G]ONMOKQJTJWKYLZN[Q[TZWXYUZRZOXMVMTORSPXMb RJWLYNZQZTYWWYU RZOXNVNTPRSPYNb",2148:" 23I[KMMMONPPU_VaWb RMMNNOPT_UaWbYb RZMYOWRM]K`Jb",2149:" 34F]UFOb RVFNb RGQHOJMMMNNNPMUMXOZRZTYWVYS RLMMNMPLULXMZO[R[TZVXXUYS[M",2150:" 44F]JQLOONNMLNJQITIWJZK[M[OZQWRT RIWJYKZMZOYQW RQTQWRZS[U[WZYWZTZQYNXMWNYOZQ RQWRYSZUZWYYW",2151:" 39H]XMVTUXUZV[Y[[Y\\W RYMWTVXVZW[ RVTVQUNSMQMNNLQKTKWLYMZO[Q[SZUWVT RQMONMQLTLXMZ",2152:" 36H[PFLSLVMYNZ RQFMS RMSNPPNRMTMVNWOXQXTWWUZR[P[NZMWMS RVNWPWTVWTZR[ RMFQF",2153:" 25I[WPWQXQXPWNUMRMONMQLTLWMYNZP[R[UZWW RRMPNNQMTMXNZ",2154:" 42H]ZFVTUXUZV[Y[[Y\\W R[FWTVXVZW[ RVTVQUNSMQMNNLQKTKWLYMZO[Q[SZUWVT RQMONMQLTLXMZ RWF[F",2155:" 26I[MVQUTTWRXPWNUMRMONMQLTLWMYNZP[R[UZWX RRMPNNQMTMXNZ",2156:" 35KZZGYHZI[H[GZFXFVGUHTJSMP[O_Na RXFVHUJTNRWQ[P^O`NaLbJbIaI`J_K`Ja ROMYM",2157:" 43H\\YMU[T^RaObLbJaI`I_J^K_J` RXMT[S^QaOb RVTVQUNSMQMNNLQKTKWLYMZO[Q[SZUWVT RQMONMQLTLXMZ",2158:" 31H]PFJ[ RQFK[ RMTOPQNSMUMWNXOXQVWVZW[ RUMWOWQUWUZV[Y[[Y\\W RMFQF",2159:" 26LYUFTGUHVGUF RMQNOPMSMTNTQRWRZS[ RRMSNSQQWQZR[U[WYXW",2160:" 32LYVFUGVHWGVF RNQOOQMTMUNUQR[Q^P`OaMbKbJaJ`K_L`Ka RSMTNTQQ[P^O`Mb",2161:" 34H\\PFJ[ RQFK[ RXNWOXPYOYNXMWMUNQROSMS ROSQTSZT[ ROSPTRZS[U[WZYW RMFQF",2162:" 18MYUFQTPXPZQ[T[VYWW RVFRTQXQZR[ RRFVF",2163:" 52AbBQCOEMHMINIPHTF[ RGMHNHPGTE[ RHTJPLNNMPMRNSOSQP[ RPMRORQO[ RRTTPVNXMZM\\N]O]Q[W[Z\\[ RZM\\O\\QZWZZ[[^[`YaW",2164:" 37F]GQHOJMMMNNNPMTK[ RLMMNMPLTJ[ RMTOPQNSMUMWNXOXQVWVZW[ RUMWOWQUWUZV[Y[[Y\\W",2165:" 32I[RMONMQLTLWMYNZP[R[UZWWXTXQWOVNTMRM RRMPNNQMTMXNZ RR[TZVWWTWPVN",2166:" 42G\\HQIOKMNMONOPNTJb RMMNNNPMTIb RNTOQQNSMUMWNXOYQYTXWVZS[Q[OZNWNT RWNXPXTWWUZS[ RFbMb",2167:" 33H\\XMRb RYMSb RVTVQUNSMQMNNLQKTKWLYMZO[Q[SZUWVT RQMONMQLTLXMZ RObVb",2168:" 26IZJQKOMMPMQNQPPTN[ ROMPNPPOTM[ RPTRPTNVMXMYNYOXPWOXN",2169:" 28J[XOXPYPYOXNUMRMONNONQORVVWW RNPOQVUWVWYVZS[P[MZLYLXMXMY",2170:" 18KYTFPTOXOZP[S[UYVW RUFQTPXPZQ[ RNMWM",2171:" 37F]GQHOJMMMNNNQLWLYN[ RLMMNMQKWKYLZN[P[RZTXVT RXMVTUXUZV[Y[[Y\\W RYMWTVXVZW[",2172:" 26H\\IQJOLMOMPNPQNWNYP[ RNMONOQMWMYNZP[Q[TZVXXUYQYMXMYO",2173:" 41C`DQEOGMJMKNKQIWIYK[ RIMJNJQHWHYIZK[M[OZQXRV RTMRVRYSZU[W[YZ[X\\V]R]M\\M]O RUMSVSYU[",2174:" 42H\\KQMNOMRMSOSR RQMRORRQVPXNZL[K[JZJYKXLYKZ RQVQYR[U[WZYW RYNXOYPZOZNYMXMVNTPSRRVRYS[",2175:" 41G\\HQIOKMNMONOQMWMYO[ RMMNNNQLWLYMZO[Q[SZUXWT RZMV[U^SaPbMbKaJ`J_K^L_K` RYMU[T^RaPb",2176:" 31H\\YMXOVQNWLYK[ RLQMOOMRMVO RMOONRNVOXO RLYNYRZUZWY RNYR[U[WYXW",2177:" 43G^VGUHVIWHWGUFRFOGMILLL[ RRFPGNIMLM[ R\\G[H\\I]H]G\\FZFXGWIW[ RZFYGXIX[ RIM[M RI[P[ RT[[[",2178:" 33G]WGVHWIXHWGUFRFOGMILLL[ RRFPGNIMLM[ RWMW[ RXMX[ RIMXM RI[P[ RT[[[",2179:" 35G]VGUHVIWHWGUF RXFRFOGMILLL[ RRFPGNIMLM[ RWHW[ RXFX[ RIMWM RI[P[ RT[[[",2180:" 54BcRGQHRISHRGPFMFJGHIGLG[ RMFKGIIHLH[ R]G\\H]I^H]G[FXFUGSIRLR[ RXFVGTISLS[ R]M][ R^M^[ RDM^M RD[K[ RO[V[ RZ[a[",2181:" 56BcRGQHRISHRGPFMFJGHIGLG[ RMFKGIIHLH[ R\\G[H\\I]H]G[F R^FXFUGSIRLR[ RXFVGTISLS[ R]H][ R^F^[ RDM]M RD[K[ RO[V[ RZ[a[",2182:" 12MXRMR[ RSMS[ ROMSM RO[V[",2184:" 25IZWNUMRMONMPLSLVMYNZQ[T[VZ RRMPNNPMSMVNYOZQ[ RMTUT",2185:" 43I\\TFQGOJNLMOLTLXMZO[Q[TZVWWUXRYMYIXGVFTF RTFRGPJOLNOMTMXNZO[ RQ[SZUWVUWRXMXIWGVF RNPWP",2186:" 42G]UFOb RVFNb RQMMNKPJSJVKXMZP[S[WZYXZUZRYPWNTMQM RQMNNLPKSKVLXNZP[ RS[VZXXYUYRXPVNTM",2187:" 27I[TMVNXPXOWNTMQMNNMOLQLSMUOWSZ RQMONNOMQMSNUSZT\\T^S_Q_",2190:" 45G]LMKNJPJRKUOYP[ RJRKTOXP[P]O`MbLbKaJ_J\\KXMTOQRNTMVMYNZPZTYXWZU[T[SZSXTWUXTY RVMXNYPYTXXWZ",2191:" 69E_YGXHYIZHYGWFTFQGOINKMNLRJ[I_Ha RTFRGPIOKNNLWK[J^I`HaFbDbCaC`D_E`Da R_G^H_I`H`G_F]F[GZHYJXMU[T_Sa R]F[HZJYNWWV[U^T`SaQbObNaN`O_P`Oa RIM^M",2192:" 52F^[GZH[I\\H[GXFUFRGPIOKNNMRK[J_Ia RUFSGQIPKONMWL[K^J`IaGbEbDaD`E_F`Ea RYMWTVXVZW[Z[\\Y]W RZMXTWXWZX[ RJMZM",2193:" 54F^YGXHYIZHZGXF R\\FUFRGPIOKNNMRK[J_Ia RUFSGQIPKONMWL[K^J`IaGbEbDaD`E_F`Ea R[FWTVXVZW[Z[\\Y]W R\\FXTWXWZX[ RJMYM",2194:" 86@cTGSHTIUHTGRFOFLGJIIKHNGRE[D_Ca ROFMGKIJKINGWF[E^D`CaAb?b>a>`?_@`?a R`G_H`IaH`G]FZFWGUITKSNRRP[O_Na RZFXGVIUKTNRWQ[P^O`NaLbJbIaI`J_K`Ja R^M\\T[X[Z\\[_[aYbW R_M]T\\X\\Z][ RDM_M",2195:" 88@cTGSHTIUHTGRFOFLGJIIKHNGRE[D_Ca ROFMGKIJKINGWF[E^D`CaAb?b>a>`?_@`?a R^G]H^I_H_G]F RaFZFWGUITKSNRRP[O_Na RZFXGVIUKTNRWQ[P^O`NaLbJbIaI`J_K`Ja R`F\\T[X[Z\\[_[aYbW RaF]T\\X\\Z][ RDM^M",2196:" 20LYMQNOPMSMTNTQRWRZS[ RRMSNSQQWQZR[U[WYXW",2200:" 40H\\QFNGLJKOKRLWNZQ[S[VZXWYRYOXJVGSFQF RQFOGNHMJLOLRMWNYOZQ[ RS[UZVYWWXRXOWJVHUGSF",2201:" 11H\\NJPISFS[ RRGR[ RN[W[",2202:" 45H\\LJMKLLKKKJLHMGPFTFWGXHYJYLXNUPPRNSLUKXK[ RTFVGWHXJXLWNTPPR RKYLXNXSZVZXYYX RNXS[W[XZYXYV",2203:" 47H\\LJMKLLKKKJLHMGPFTFWGXIXLWNTOQO RTFVGWIWLVNTO RTOVPXRYTYWXYWZT[P[MZLYKWKVLUMVLW RWQXTXWWYVZT[",2204:" 13H\\THT[ RUFU[ RUFJUZU RQ[X[",2205:" 39H\\MFKP RKPMNPMSMVNXPYSYUXXVZS[P[MZLYKWKVLUMVLW RSMUNWPXSXUWXUZS[ RMFWF RMGRGWF",2206:" 48H\\WIVJWKXJXIWGUFRFOGMILKKOKULXNZQ[S[VZXXYUYTXQVOSNRNOOMQLT RRFPGNIMKLOLUMXOZQ[ RS[UZWXXUXTWQUOSN",2207:" 31H\\KFKL RKJLHNFPFUIWIXHYF RLHNGPGUI RYFYIXLTQSSRVR[ RXLSQRSQVQ[",2208:" 63H\\PFMGLILLMNPOTOWNXLXIWGTFPF RPFNGMIMLNNPO RTOVNWLWIVGTF RPOMPLQKSKWLYMZP[T[WZXYYWYSXQWPTO RPONPMQLSLWMYNZP[ RT[VZWYXWXSWQVPTO",2209:" 48H\\XMWPURRSQSNRLPKMKLLINGQFSFVGXIYLYRXVWXUZR[O[MZLXLWMVNWMX RQSORMPLMLLMIOGQF RSFUGWIXLXRWVVXTZR[",2210:" 6MWRYQZR[SZRY",2211:" 8MWR[QZRYSZS\\R^Q_",2212:" 12MWRMQNROSNRM RRYQZR[SZRY",2213:" 14MWRMQNROSNRM RR[QZRYSZS\\R^Q_",2214:" 15MWRFQHRTSHRF RRHRN RRYQZR[SZRY",2215:" 32I[MJNKMLLKLJMHNGPFSFVGWHXJXLWNVORQRT RSFUGVHWJWLVNTP RRYQZR[SZRY",2216:" 6NVRFQM RSFQM",2217:" 12JZNFMM ROFMM RVFUM RWFUM",2218:" 14KYQFOGNINKOMQNSNUMVKVIUGSFQF",2219:" 9JZRFRR RMIWO RWIMO",2220:" 3G][BIb",2221:" 20KYVBTDRGPKOPOTPYR]T`Vb RTDRHQKPPPTQYR\\T`",2222:" 20KYNBPDRGTKUPUTTYR]P`Nb RPDRHSKTPTTSYR\\P`",2223:" 12KYOBOb RPBPb ROBVB RObVb",2224:" 12KYTBTb RUBUb RNBUB RNbUb",2225:" 40KYTBRCQDPFPHQJRKSMSOQQ RRCQEQGRISJTLTNSPORSTTVTXSZR[Q]Q_Ra RQSSUSWRYQZP\\P^Q`RaTb",2226:" 40KYPBRCSDTFTHSJRKQMQOSQ RRCSESGRIQJPLPNQPURQTPVPXQZR[S]S_Ra RSSQUQWRYSZT\\T^S`RaPb",2227:" 4KYUBNRUb",2228:" 4KYOBVROb",2229:" 3NVRBRb",2230:" 6KYOBOb RUBUb",2231:" 3E_IR[R",2232:" 6E_RIR[ RIR[R",2233:" 9F^RJR[ RJRZR RJ[Z[",2234:" 9F^RJR[ RJJZJ RJRZR",2235:" 6G]KKYY RYKKY",2236:" 6MWRQQRRSSRRQ",2237:" 15E_RIQJRKSJRI RIR[R RRYQZR[SZRY",2238:" 6E_IO[O RIU[U",2239:" 9E_YIK[ RIO[O RIU[U",2240:" 9E_IM[M RIR[R RIW[W",2241:" 4F^ZIJRZ[",2242:" 4F^JIZRJ[",2243:" 10F^ZFJMZT RJVZV RJ[Z[",2244:" 10F^JFZMJT RJVZV RJ[Z[",2245:" 21F_[WYWWVUTRPQOONMNKOJQJSKUMVOVQURTUPWNYM[M",2246:" 24F^IUISJPLONOPPTSVTXTZS[Q RISJQLPNPPQTTVUXUZT[Q[O",2247:" 8G]JTROZT RJTRPZT",2248:" 7LXTFOL RTFUGOL",2249:" 7LXPFUL RPFOGUL",2250:" 18H\\KFLHNJQKSKVJXHYF RKFLINKQLSLVKXIYF",2251:" 8MWRHQGRFSGSIRKQL",2252:" 8MWSFRGQIQKRLSKRJ",2253:" 8MWRHSGRFQGQIRKSL",2254:" 8MWQFRGSISKRLQKRJ",2255:" 10E[HMLMRY RKMR[ R[BR[",2256:" 13F^ZJSJOKMLKNJQJSKVMXOYSZZZ",2257:" 13F^JJJQKULWNYQZSZVYXWYUZQZJ",2258:" 13F^JJQJUKWLYNZQZSYVWXUYQZJZ",2259:" 13F^JZJSKOLMNKQJSJVKXMYOZSZZ",2260:" 16F^ZJSJOKMLKNJQJSKVMXOYSZZZ RJRVR",2261:" 11E_XP[RXT RUMZRUW RIRZR",2262:" 11JZPLRITL RMORJWO RRJR[",2263:" 11E_LPIRLT ROMJROW RJR[R",2264:" 11JZPXR[TX RMURZWU RRIRZ",2265:" 44I\\XRWOVNTMRMONMQLTLWMYNZP[R[UZWXXUYPYKXHWGUFRFPGOHOIPIPH RRMPNNQMTMXNZ RR[TZVXWUXPXKWHUF",2266:" 15H\\JFR[ RKFRY RZFR[ RJFZF RKGYG",2267:" 10AbDMIMRY RHNR[ Rb:R[",2268:" 32F^[CZD[E\\D\\C[BYBWCUETGSJRNPZO^N` RVDUFTJRVQZP]O_MaKbIbHaH`I_J`Ia",2269:" 50F^[CZD[E\\D\\C[BYBWCUETGSJRNPZO^N` RVDUFTJRVQZP]O_MaKbIbHaH`I_J`Ia RQKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK",2270:" 26F_\\S[UYVWVUUTTQPPONNLNJOIQISJULVNVPUQTTPUOWNYN[O\\Q\\S",2271:" 32F^[FI[ RNFPHPJOLMMKMIKIIJGLFNFPGSHVHYG[F RWTUUTWTYV[X[ZZ[X[VYTWT",2272:" 49F_[NZO[P\\O\\N[MZMYNXPVUTXRZP[M[JZIXIUJSPORMSKSIRGPFNGMIMKNNPQUXWZZ[[[\\Z\\Y RM[KZJXJUKSMQ RMKNMVXXZZ[",2273:" 56E`WNVLTKQKOLNMMPMSNUPVSVUUVS RQKOMNPNSOUPV RWKVSVUXVZV\\T]Q]O\\L[JYHWGTFQFNGLHJJILHOHRIUJWLYNZQ[T[WZYYZX RXKWSWUXV",2274:" 42H\\PBP_ RTBT_ RXIWJXKYJYIWGTFPFMGKIKKLMMNOOUQWRYT RKKMMONUPWQXRYTYXWZT[P[MZKXKWLVMWLX",2275:" 12H]SFLb RYFRb RLQZQ RKWYW",2276:" 46JZUITJUKVJVIUGSFQFOGNINKOMQOVR ROMTPVRWTWVVXTZ RPNNPMRMTNVPXU[ RNVSYU[V]V_UaSbQbOaN_N^O]P^O_",2277:" 30JZRFQHRJSHRF RRFRb RRQQTRbSTRQ RLMNNPMNLLM RLMXM RTMVNXMVLTM",2278:" 56JZRFQHRJSHRF RRFRT RRPQRSVRXQVSRRP RRTRb RR^Q`RbS`R^ RLMNNPMNLLM RLMXM RTMVNXMVLTM RL[N\\P[NZL[ RL[X[ RT[V\\X[VZT[",2279:" 12I\\XFX[ RKFXF RPPXP RK[X[",2281:" 38E`QFNGKIILHOHRIUKXNZQ[T[WZZX\\U]R]O\\LZIWGTFQF RROQPQQRRSRTQTPSORO RRPRQSQSPRP",2282:" 45J[PFNGOIQJ RPFOGOI RUFWGVITJ RUFVGVI RQJOKNLMNMQNSOTQUTUVTWSXQXNWLVKTJQJ RRUR[ RSUS[ RNXWX",2283:" 27I\\RFOGMILLLMMPORRSSSVRXPYMYLXIVGSFRF RRSR[ RSSS[ RNWWW",2284:" 28D`PFMGJIHLGOGSHVJYM[P\\T\\W[ZY\\V]S]O\\LZIWGTFPF RRFR\\ RGQ]Q",2285:" 31G`PMMNKPJSJTKWMYPZQZTYVWWTWSVPTNQMPM R]GWG[HUN R]G]M\\IVO R\\HVN",2286:" 28F\\IIJGLFOFQGRIRLQOPQNSKU ROFPGQIQMPPNS RVFT[ RWFS[ RKUYU",2287:" 30I\\MFMU RNFMQ RMQNOONQMTMWNXPXRWTUV RTMVNWPWRTXTZU[W[YY RKFNF",2288:" 44I\\RNOOMQLTLUMXOZR[S[VZXXYUYTXQVOSNRN RRHNJRFRN RSHWJSFSN RRSQTQURVSVTUTTSSRS RRTRUSUSTRT",2289:" 37G^QHRFR[ RTHSFS[ RJHKFKMLPNRQSRS RMHLFLNMQ R[HZFZMYPWRTSSS RXHYFYNXQ RNWWW",2290:" 31G]LFL[ RMFM[ RIFUFXGYHZJZMYOXPUQMQ RUFWGXHYJYMXOWPUQ RI[Y[YVX[",2291:" 24H[YGUGQHNJLMKPKSLVNYQ[U\\Y\\ RYGVHSJQMPPPSQVSYV[Y\\",2292:" 27F_OQMQKRJSIUIWJYKZM[O[QZRYSWSURSQROQ RSHPQ RZJRR R\\QST",2293:" 12H\\OKUY RUKOY RKOYU RYOKU",2294:" 48F^NVLUKUIVHXHYI[K\\L\\N[OYOXNVKRJOJMKJMHPGTGWHYJZMZOYRVVUXUYV[X\\Y\\[[\\Y\\X[VYUXUVV RJMKKMIPHTHWIYKZM",2295:" 48F^NMLNKNIMHKHJIHKGLGNHOJOKNMKQJTJVKYM[P\\T\\W[YYZVZTYQVMUKUJVHXGYG[H\\J\\K[MYNXNVM RJVKXMZP[T[WZYXZV",2301:" 40F_JMILIJJHLGNGPHQIRKSP RIJKHMHOIPJQLRPR[ R[M\\L\\J[HYGWGUHTISKRP R\\JZHXHVIUJTLSPS[",2302:" 51F^IGJKKMMOPPTPWOYMZK[G RIGJJKLMNPOTOWNYLZJ[G RPONPMQLSLVMXOZQ[S[UZWXXVXSWQVPTO RPPNQMSMVNY RVYWVWSVQTP",2303:" 30F^MJMV RNKNU RVKVU RWJWV RIGKIMJPKTKWJYI[G RIYKWMVPUTUWVYW[Y",2304:" 48F^[ILIJJILINJPLQNQPPQNQLPJ[J RIMJOKPMQ RQMPKOJMI RIXXXZW[U[SZQXPVPTQSSSUTWIW R[TZRYQWP RSTTVUWWX",2305:" 48F]OUMTLTJUIWIXJZL[M[OZPXPWOUJPINIKJILHOGSGWHYJZLZOYRVUUWUYV[X[YZZX RMSKPJNJKKILH RSGVHXJYLYOXRVU",2306:" 48G_HKKHMKMV RJILLLV RMKPHRKRU ROIQLQU RRKUHWKW[ RTIVLV[ RWKZH[J\\M\\P[SZUXWUYP[ RYIZJ[M[PZSYUWWTYP[",2307:" 41F^ISMSLRKOKMLJNHQGSGVHXJYMYOXRWS[S RITOTMRLOLMMJOHQG RSGUHWJXMXOWRUT[T RKXYX RKYYY",2308:" 30F_GLJIMLMX RIJLMLX RMLPISLSX ROJRMRX RSLVIYLYW[Y RUJXMXXZZ]W",2309:" 33G]ZIJY RZIWJQJ RXKUKQJ RZIYLYR RXKXNYR RQRJR RPSMSJR RQRQY RPSPVQY",2310:" 33F^HOJKOU RJMOWRPWPZO[M[KZIXHWHUITKTMUPVRWUWXUZ RWHVIUKUMWQXTXWWYUZ",2311:" 36F^IOLLPN RKMOORLUN RQMTOWLYN RVMXO[L RIULRPT RKSOURRUT RQSTUWRYT RVSXU[R",2312:" 48F^JHNJPLQOQRPUNWJY RJHMIOJQLRO RRRQUOWMXJY RZHWIUJSLRO RRRSUUWWXZY RZHVJTLSOSRTUVWZY RIP[P RIQ[Q",2317:" 12NVQQQSSSSQQQ RQQSS RSQQS",2318:" 18JZMPQRTTVVWYW[V]U^ RMQST RMRPSTUVWWY",2319:" 18JZWKVMTOPQMR RSPMS RUFVGWIWKVNTPQRMT",2320:" 36H\\SMONLPKRKTLVNWQWUVXTYRYPXNVMSM RXNSM RVMQNLP RONKR RLVQW RNWSVXT RUVYR",2321:" 36H\\SMONLPKRKTLVNWQWUVXTYRYPXNVMSM RXNSM RVMQNLP RONKR RLVQW RNWSVXT RUVYR",2322:" 34J[SMPNNPMRMTNVPWRWUVWTXRXPWNUMSM ROPUM RNRVN RMTWO RNUXP ROVWR RPWVT",2323:" 18JZOGO^ RUFU] RMNWL RMOWM RMWWU RMXWV",2324:" 18JZNFNX RVLV^ RNNVL RNOVM RNWVU RNXVV",2325:" 25JZNBNW RNNQLTLVMWOWQVSSUQVNW RNNQMTMVN RUMVOVQUSSU",2326:" 18E_HIHL R\\I\\L RHI\\I RHJ\\J RHK\\K RHL\\L",2327:" 18JZMNMQ RWNWQ RMNWN RMOWO RMPWP RMQWQ",2328:" 49JZMLWX RMLONQOTOVNWMWKUKUMTO RONTO RQOWM RVKVN RULWL RWXUVSUPUNVMWMYOYOWPU RUVPU RSUMW RNVNY RMXOX",2329:" 26JZPOOMOKMKMMNNPOSOUNWL RNKNN RMLOL RMMSO RPOUN RWLWY",2330:" 86A^GfHfIeIdHcGcFdFfGhIiKiNhPfQdR`RUQ;Q4R/S-U,V,X-Y/Y3X6W8U;P?JCHEFHEJDNDREVGYJ[N\\R\\V[XZZW[T[PZMYKWITHPHMIKKJNJRKUMW RGdGeHeHdGd RU;Q?LCIFGIFKENERFVGXJ[ RR\\U[WZYWZTZPYMXKVITH",2331:"103EfNSOUQVSVUUVSVQUOSNQNOONPMSMVNYP[S\\V\\Y[[Y\\W]T]P\\MZJXIUHRHOIMJKLIOHSHXI]KaMcPeTfYf]e`cba RKLJNIRIXJ\\L`NbQdUeYe]d_cba RPOTO ROPUP RNQVQ RNRVR RNSVS ROTUT RPUTU RaLaNcNcLaL RbLbN RaMcM RaVaXcXcVaV RbVbX RaWcW",2332:" 30D`H@Hd RM@Md RW@Wd R\\@\\d RMMWK RMNWL RMOWM RMWWU RMXWV RMYWW",2367:" 12NVQQQSSSSQQQ RQQSS RSQQS",2368:" 18JZMPQRTTVVWYW[V]U^ RMQST RMRPSTUVWWY",2369:" 18JZWKVMTOPQMR RSPMS RUFVGWIWKVNTPQRMT",2370:" 32H\\PMMNLOKQKSLUMVPWTWWVXUYSYQXOWNTMPM RMNLPLSMUNVPW RWVXTXQWOVNTM",2371:" 36H\\SMONLPKRKTLVNWQWUVXTYRYPXNVMSM RXNSM RVMQNLP RONKR RLVQW RNWSVXT RUVYR",2372:" 34J[SMPNNPMRMTNVPWRWUVWTXRXPWNUMSM ROPUM RNRVN RMTWO RNUXP ROVWR RPWVT",2373:" 18JZOGO^ RUFU] RMNWL RMOWM RMWWU RMXWV",2374:" 18JZNFNX RVLV^ RNNVL RNOVM RNWVU RNXVV",2375:" 25JZNBNW RNNQLTLVMWOWQVSSUQVNW RNNQMTMVN RUMVOVQUSSU",2376:" 18E_HIHL R\\I\\L RHI\\I RHJ\\J RHK\\K RHL\\L",2377:" 18JZMNMQ RWNWQ RMNWN RMOWO RMPWP RMQWQ",2378:" 36JZQCVMRTRU RULQS RTITKPRRUUY RW\\UYSXQXOYN[N]O_Ra RW\\UZSYOYO]P_Ra RSXPZN]",2379:" 26JZPOOMOKMKMMNNPOSOUNWL RNKNN RMLOL RMMSO RPOUN RWLSY",2380:" 86A^GfHfIeIdHcGcFdFfGhIiKiNhPfQdR`RUQ;Q4R/S-U,V,X-Y/Y3X6W8U;P?JCHEFHEJDNDREVGYJ[N\\R\\V[XZZW[T[PZMYKWITHPHMIKKJNJRKUMW RGdGeHeHdGd RU;Q?LCIFGIFKENERFVGXJ[ RR\\U[WZYWZTZPYMXKVITH",2381:" 89IjNQOOQNSNUOVQVSUUSVQVOUNTMQMNNKPISHWH[I^K`NaRaW`[_]]`ZcVfQiMk RWHZI]K_N`R`W_[^]\\`YcTgQi RPOTO ROPUP RNQVQ RNRVR RNSVS ROTUT RPUTU ReLeNgNgLeL RfLfN ReMgM ReVeXgXgVeV RfVfX ReWgW",2382:" 85D`H>Hf RI>If RM>Mf RQBSBSDQDQAR?T>W>Y?[A\\D\\I[LYNWOUOSNRLQNOQNROSQVRXSVUUWUYV[X\\[\\`[cYeWfTfReQcQ`S`SbQb RRBRD RQCSC RY?ZA[D[IZLYN RRLRNPQNRPSRVRX RYVZX[[[`ZcYe RR`Rb RQaSa",2401:" 21AcHBHb RIBIb R[B[b R\\B\\b RDB`B RDbMb RWb`b",2402:" 23BaGBQPFb RFBPP REBPQ REB\\B^I[B RGa\\a RFb\\b^[[b",2403:" 28I[X+U1R8P=OANFMNMVN^OcPgRlUsXy RU1S6Q":2242,"~":2246,"@":2273,"\\":804}[e]}var Pa={SUB_SUP_SCALE:.75,SQRT_MAG_SCALE:.5,FRAC_SCALE:.85,LINE_SPACING:.5,FRAC_SPACING:.4};function oXe(e){e=e.replace(/\n/g," ");let t=0,n=[],r="";for(;t0&&(e[f].text=="^"||e[f].text=="_"||e[f].text=="'");)f--;c=e[f].bbox.y,e[u].text=="'"?e[u].bbox.y=c:(To(e[u],Pa.SUB_SUP_SCALE,null,0,0),Tn[e[f].text]&&Tn[e[f].text].flags.big?e[u].bbox.y=c-e[u].bbox.h:e[f].text=="\\int"?e[u].bbox.y=c:e[u].bbox.y=c-e[u].bbox.h/2)}else if(e[u].text=="_"){let c=1,f=u;for(;f>0&&(e[f].text=="^"||e[f].text=="_"||e[f].text=="'");)f--;c=e[f].bbox.y+e[f].bbox.h,To(e[u],Pa.SUB_SUP_SCALE,null,0,0),Tn[e[f].text]&&Tn[e[f].text].flags.big?e[u].bbox.y=c:e[f].text=="\\int"?e[u].bbox.y=c-e[u].bbox.h:e[u].bbox.y=c-e[u].bbox.h/2}function n(u,c,f,d,h){let p=u,v=h,g=1/0,m=-1/0;for(;d>0?p=0;){if(e[p].text==c)v++;else if(e[p].text==f){if(v--,v==0)break}else e[p].text=="^"||e[p].text=="_"||e[p].bbox&&(g=Math.min(g,e[p].bbox.y),m=Math.max(m,e[p].bbox.y+e[p].bbox.h));p+=d}return[g,m]}for(let u=0;uu.text=="&"||u.text=="\\\\"))return;let r=[],i=[],o=[];for(let u=0;u0&&(e.chld[y].text=="^"||e.chld[y].text=="_"||e.chld[y].text=="'");)y--;let R=Tn[e.chld[y].text]&&Tn[e.chld[y].text].flags.big;if(g.text=="'"){let A=y+1,x=0;for(;A1;lXe(e.chld,f);let p=$ee(e.chld);e.text=="\\text"&&(p.x-=1,p.w+=2);for(let v=0;vr.bbox.w)c=c/Math.max(a.w,1)*r.bbox.w,c+=r.bbox.x;else{c=c/16*i;let d=(r.bbox.w-a.w/16*i)/2;c+=r.bbox.x+d}if(Tn[r.text].flags.yfl)f=(f-a.ymin)/Math.max(a.ymax-a.ymin,1)*r.bbox.h,f+=r.bbox.y;else{if(f=f/16*i,o){let d=(a.ymax+a.ymin)/2;f-=d/16*i}f+=r.bbox.y+r.bbox.h/2}l.push([c,f])}t.push(l)}}else if(Tn[r.text]&&Tn[r.text].flags.txt||r.type=="char"){let a=r.bbox.x,s=!!(Tn[r.text]&&Tn[r.text].flags.txt);for(let l=Number(s);l16?h*=16/u.w:h+=(16-u.w)/2/16),h+=a,p+=r.bbox.y+r.bbox.h/2,f.push([h,p])}t.push(f)}r.mode=="tt"?a+=i:a+=u.w/16*i}}}return t}function El(e){return Math.round(e*100)/100}var JP=class{constructor(e){this._latex=e,this._tokens=oXe(e),this._tree=I_(this._tokens),Jee(this._tree.chld),Wl(this._tree),uXe(this._tree),this._polylines=cXe(this._tree)}resolveScale(e){var t,n,r,i;if(e==null)return[16,16,16,16];let o=(t=e.SCALE_X)!=null?t:16,a=(n=e.SCALE_Y)!=null?n:16;if(e.MIN_CHAR_H!=null){let u=0;for(let f=0;f"].join(r)}function k_(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function BU(e,t,n,r){return Ai("svg","root",{width:e,height:t,xmlns:dee,"xmlns:xlink":hee,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+e+" "+t:!1},n)}var yNe=0;function vee(){return yNe++}var YU={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},ah="transform-origin";function ANe(e,t,n){var r=vt({},e.shape);vt(r,t),e.buildPath(n,r);var i=new fee;return i.reset(JJ(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function RNe(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[ah]=n+"px "+r+"px")}var bNe={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function gee(e,t){var n=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function xNe(e,t,n){var r=e.shape.paths,i={},o,a;if(ke(r,function(l){var u=k_(n.zrId);u.animation=!0,q3(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,d=Un(c),h=d.length;if(h){a=d[h-1];var p=c[a];for(var v in p){var g=p[v];i[v]=i[v]||{d:""},i[v].d+=g.d||""}for(var m in f){var y=f[m].animation;y.indexOf(a)>=0&&(o=y)}}}),!!o){t.d=!1;var s=gee(i,n);return o.replace(a,s)}}function ZU(e){return Kt(e)?YU[e]?"cubic-bezier("+YU[e]+")":Jk(e)?e:"":""}function q3(e,t,n,r){var i=e.animators,o=i.length,a=[];if(e instanceof V$){var s=xNe(e,t,n);if(s)a.push(s);else if(!o)return}else if(!o)return;for(var l={},u=0;u0}).length){var de=gee(L,n);return de+" "+y[0]+" both"}}for(var g in l){var s=v(l[g]);s&&a.push(s)}if(a.length){var m=n.zrId+"-cls-"+vee();n.cssNodes["."+m]={animation:a.join(",")},t.class=m}}function SNe(e,t,n){if(!e.ignore)if(e.isSilent()){var r={"pointer-events":"none"};QU(r,t,n)}else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},o=i.fill;if(!o){var a=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,l=e.currentStates.indexOf("select")>=0&&s||a;l&&(o=X6(l))}var u=i.lineWidth;if(u){var c=!i.strokeNoScale&&e.transform?e.transform[0]:1;u=u/c}var r={cursor:"pointer"};o&&(r.fill=o),i.stroke&&(r.stroke=i.stroke),u&&(r["stroke-width"]=u),QU(r,t,n)}}function QU(e,t,n,r){var i=JSON.stringify(e),o=n.cssStyleCache[i];o||(o=n.zrId+"-cls-"+vee(),n.cssStyleCache[i]=o,n.cssNodes["."+o+":hover"]=e),t.class=t.class?t.class+" "+o:o}var M2=Math.round;function mee(e){return e&&Kt(e.src)}function yee(e){return e&&Rn(e.toDataURL)}function QP(e,t,n,r){dNe(function(i,o){var a=i==="fill"||i==="stroke";a&&zJ(o)?Ree(t,e,i,r):a&&$k(o)?bee(n,e,i,r):a&&o==="none"?e[i]="transparent":e[i]=o},t,n,!1),kNe(n,e,r)}function HP(e,t){var n=e8e(t);n&&(n.each(function(r,i){r!=null&&(e[(UU+i).toLowerCase()]=r+"")}),t.isSilent()&&(e[UU+"silent"]="true"))}function HU(e){return Lf(e[0]-1)&&Lf(e[1])&&Lf(e[2])&&Lf(e[3]-1)}function wNe(e){return Lf(e[4])&&Lf(e[5])}function KP(e,t,n){if(t&&!(wNe(t)&&HU(t))){var r=1e4;e.transform=HU(t)?"translate("+M2(t[4]*r)/r+" "+M2(t[5]*r)/r+")":SLe(t)}}function KU(e,t,n){for(var r=e.points,i=[],o=0;o"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";yu(d,g),yu(h,g)}else if(d==null||h==null){var m=function(_,C){if(_){var O=_.elm,N=d||C.width,P=h||C.height;_.tag==="pattern"&&(u?(P=1,N/=o.width):c&&(N=1,P/=o.height)),_.attrs.width=N,_.attrs.height=P,O&&(O.setAttribute("width",N),O.setAttribute("height",P))}},y=rP(p,null,e,function(_){l||m(S,_),m(f,_)});y&&y.width&&y.height&&(d=d||y.width,h=h||y.height)}f=Ai("image","img",{href:p,width:d,height:h}),a.width=d,a.height=h}else i.svgElement&&(f=Dn(i.svgElement),a.width=i.svgWidth,a.height=i.svgHeight);if(f){var R,A;l?R=A=1:u?(A=1,R=a.width/o.width):c?(R=1,A=a.height/o.height):a.patternUnits="userSpaceOnUse",R!=null&&!isNaN(R)&&(a.width=R),A!=null&&!isNaN(A)&&(a.height=A);var x=$J(i);x&&(a.patternTransform=x);var S=Ai("pattern","",a,[f]),L=ZP(S),M=r.patternCache,w=M[L];w||(w=r.zrId+"-p"+r.patternIdx++,M[L]=w,a.id=w,S=r.defs[w]=Ai("pattern",w,a,[f])),t[n]=M3(w)}}function PNe(e,t,n){var r=n.clipPathCache,i=n.defs,o=r[e.id];if(!o){o=n.zrId+"-c"+n.clipPathIdx++;var a={id:o};r[e.id]=o,i[o]=Ai("clipPath",o,a,[Aee(e,n)])}t["clip-path"]=M3(o)}function JU(e){return document.createTextNode(e)}function dh(e,t,n){e.insertBefore(t,n)}function $U(e,t){e.removeChild(t)}function jU(e,t){e.appendChild(t)}function xee(e){return e.parentNode}function See(e){return e.nextSibling}function t8(e,t){e.textContent=t}var qU=58,CNe=120,INe=Ai("","");function P_(e){return e===void 0}function Ql(e){return e!==void 0}function NNe(e,t,n){for(var r={},i=t;i<=n;++i){var o=e[i].key;o!==void 0&&(r[o]=i)}return r}function Xg(e,t){var n=e.key===t.key,r=e.tag===t.tag;return r&&n}function L2(e){var t,n=e.children,r=e.tag;if(Ql(r)){var i=e.elm=pee(r);if(GP(INe,e),It(n))for(t=0;to?(p=n[l+1]==null?null:n[l+1].elm,wee(e,p,n,i,l)):gS(e,t,r,o))}function Mp(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(GP(e,t),P_(t.text)?Ql(r)&&Ql(i)?r!==i&&FNe(n,r,i):Ql(i)?(Ql(e.text)&&t8(n,""),wee(n,null,i,0,i.length-1)):Ql(r)?gS(n,r,0,r.length-1):Ql(e.text)&&t8(n,""):e.text!==t.text&&(Ql(r)&&gS(n,r,0,r.length-1),t8(n,t.text)))}function ENe(e,t){if(Xg(e,t))Mp(e,t);else{var n=e.elm,r=xee(n);L2(t),r!==null&&(dh(r,t.elm,See(n)),gS(r,[e],0,0))}return t}var XNe=0,WNe=function(){function e(t,n,r){if(this.type="svg",this.refreshHover=eB(),this.configLayer=eB(),this.storage=n,this._opts=r=vt({},r),this.root=t,this._id="zr"+XNe++,this._oldVNode=BU(r.width,r.height),t&&!r.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var o=this._svgDom=this._oldVNode.elm=pee("svg");GP(null,this._oldVNode),i.appendChild(o),t.appendChild(i)}this.resize(r.width,r.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",ENe(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return zU(t,k_(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var n=this.storage.getDisplayList(!0),r=this._width,i=this._height,o=k_(this._id);o.animation=t.animation,o.willUpdate=t.willUpdate,o.compress=t.compress,o.emphasis=t.emphasis;var a=[],s=this._bgVNode=VNe(r,i,this._backgroundColor,o);s&&a.push(s);var l=t.compress?null:this._mainVNode=Ai("g","main",{},[]);this._paintList(n,o,l?l.children:a),l&&a.push(l);var u=Ot(Un(o.defs),function(d){return o.defs[d]});if(u.length&&a.push(Ai("defs","defs",{},u)),t.animation){var c=mNe(o.cssNodes,o.cssAnims,{newline:!0});if(c){var f=Ai("style","stl",{},[],c);a.push(f)}}return BU(r,i,a,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},ZP(this.renderToVNode({animation:ln(t.cssAnimation,!0),emphasis:ln(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:ln(t.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(t,n,r){for(var i=t.length,o=[],a=0,s,l,u=0,c=0;c=0&&!(d&&l&&d[v]===l[v]);v--);for(var g=p-1;g>v;g--)a--,s=o[a-1];for(var m=v+1;m{let a=[];if(t.themeColors.length>=10)a=t.themeColors;else if(t.themeColors.length===1)a=at(t.themeColors[0]).analogous(10).map(s=>s.toRgbString());else{const s=t.themeColors.length,l=at(t.themeColors[s-1]).analogous(11-s).map(u=>u.toRgbString());a=[...t.themeColors.slice(0,s-1),...l]}return a}),o=()=>{var s,l;const a=h5e({type:t.type,data:t.data,themeColors:i.value,textColor:t.textColor,lineSmooth:((s=t.options)==null?void 0:s.lineSmooth)||!1,stack:((l=t.options)==null?void 0:l.stack)||!1});a&&n.setOption(a,!0)};return Vt(()=>{n=Nke(r.value,null,{renderer:"svg"}),o();const a=()=>n.resize();new ResizeObserver(a).observe(r.value)}),Tt(()=>t.type,o),Tt(()=>t.data,o),Tt(()=>t.themeColors,o),Tt(()=>t.textColor,o),(a,s)=>(D(),q("div",{class:"chart",ref_key:"chartRef",ref:r},null,512))}}),Mee=Be(UNe,[["__scopeId","data-v-1e5b5ad9"]]),BNe=We({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=i=>{t.elementInfo.lock||(i.stopPropagation(),t.selectElement(i,t.elementInfo))},r=()=>{Ki.emit(Ti.OPEN_CHART_DATA_EDITOR)};return(i,o)=>{const a=_n("contextmenu");return D(),q("div",{class:ze(["editable-element-chart",{lock:i.elementInfo.lock}]),style:Le({top:i.elementInfo.top+"px",left:i.elementInfo.left+"px",width:i.elementInfo.width+"px",height:i.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:Le({transform:`rotate(${i.elementInfo.rotate}deg)`})},[Ge((D(),q("div",{class:"element-content",style:Le({backgroundColor:i.elementInfo.fill}),onMousedown:o[0]||(o[0]=s=>n(s)),onTouchstart:o[1]||(o[1]=s=>n(s)),onDblclick:o[2]||(o[2]=s=>r())},[k(y3,{width:i.elementInfo.width,height:i.elementInfo.height,outline:i.elementInfo.outline},null,8,["width","height","outline"]),k(Mee,{width:i.elementInfo.width,height:i.elementInfo.height,type:i.elementInfo.chartType,data:i.elementInfo.data,themeColors:i.elementInfo.themeColors,textColor:i.elementInfo.textColor,options:i.elementInfo.options},null,8,["width","height","type","data","themeColors","textColor","options"])],36)),[[a,i.contextmenus]])],4)],6)}}}),Lee=Be(BNe,[["__scopeId","data-v-3b1105a2"]]),Tee=e=>{if(!e)return{};const{bold:t,em:n,underline:r,strikethrough:i,color:o,backcolor:a,fontsize:s,fontname:l,align:u}=e;let c=`${r?"underline":""} ${i?"line-through":""}`;return c===" "&&(c="none"),{fontWeight:t?"bold":"normal",fontStyle:n?"italic":"normal",textDecoration:c,color:o||"#000",backgroundColor:a||"",fontSize:s||"14px",fontFamily:l||"",textAlign:u||"left"}},_ee=e=>e.replace(/\n/g,"
    ").replace(/ /g," "),Oee=e=>({hideCells:Se(()=>{const n=[];for(let r=0;r1||a.rowspan>1)for(let s=r;s{const t=he(["",""]);return Tt(()=>e.value,()=>{e.value&&(t.value=GH(e.value.color))},{immediate:!0}),{subThemeColor:t}},YNe=["innerHTML"],ZNe=We({__name:"CustomTextarea",props:{value:{default:""}},emits:["updateValue","insertExcelData"],setup(e,{emit:t}){const n=e,r=t,i=he(),o=he(""),a=he(!1);Tt(()=>n.value,()=>{a.value||(o.value=n.value,i.value&&(i.value.innerHTML=n.value))},{immediate:!0});const s=()=>{if(!i.value)return;const c=i.value.innerHTML;r("updateValue",c)},l=()=>{a.value=!0,i.value&&(i.value.onpaste=c=>{if(c.preventDefault(),!c.clipboardData)return;const f=c.clipboardData.items[0];f&&f.kind==="string"&&f.type==="text/plain"&&f.getAsString(d=>{if(typeof qO(d)=="object")return;const p=QH(d);if(p){r("insertExcelData",p),i.value&&(i.value.innerHTML=p[0][0]);return}document.execCommand("insertText",!1,d)})})},u=()=>{a.value=!1,i.value&&(i.value.onpaste=null)};return s0(()=>{i.value&&(i.value.onpaste=null)}),(c,f)=>(D(),q("div",{class:"custom-textarea",ref_key:"textareaRef",ref:i,contenteditable:!0,onFocus:f[0]||(f[0]=d=>l()),onBlur:f[1]||(f[1]=d=>u()),onInput:f[2]||(f[2]=d=>s()),innerHTML:o.value},null,40,YNe))}}),QNe=Be(ZNe,[["__scopeId","data-v-cfadb975"]]),HNe={key:0,class:"handler"},KNe=["onMousedown"],GNe=["width"],zNe=["rowspan","colspan","data-cell-index","onMousedown","onMouseenter"],JNe=["innerHTML"],$Ne=We({__name:"EditableTable",props:{data:{},width:{},cellMinHeight:{},colWidths:{},outline:{},theme:{},editable:{type:Boolean,default:!0}},emits:["change","changeColWidths","changeSelectedCells"],setup(e,{emit:t}){const n=e,r=t,{canvasScale:i}=Ve(pt()),o=he(!1),a=he([]),s=he([]),l=Se({get(){return n.data},set(ue){r("change",ue)}}),u=Se(()=>n.theme),{subThemeColor:c}=kee(u),f=he([]),d=Se(()=>f.value.reduce((ue,ce)=>ue+ce));Tt([()=>n.colWidths,()=>n.width],()=>{f.value=n.colWidths.map(ue=>ue*n.width)},{immediate:!0});const h=()=>{a.value=[],s.value=[]};Tt(()=>n.editable,()=>{n.editable||h()});const p=Se(()=>{const ue=[];for(let ce=1;ce$+X);ue.push(le)}return ue}),v=Se(()=>n.data),{hideCells:g}=Oee(v),m=Se(()=>{if(!a.value.length)return[];const[ue,ce]=a.value;if(!s.value.length)return[`${ue}_${ce}`];const[le,$]=s.value;if(ue===le&&ce===$)return[`${ue}_${ce}`];const X=[],j=Math.min(ue,le),se=Math.min(ce,$),ne=Math.max(ue,le),re=Math.max(ce,$);for(let ae=0;ae=j&&ae<=ne&&fe>=se&&fe<=re&&X.push(`${ae}_${fe}`)}return X});Tt(m,(ue,ce)=>{Qn.isEqual(ue,ce)||r("changeSelectedCells",m.value)});const y=Se(()=>m.value.length>1?null:m.value[0]),R=()=>o.value=!1,A=(ue,ce,le)=>{ue.button===0&&(s.value=[],o.value=!0,a.value=[ce,le])},x=(ue,ce)=>{o.value&&(s.value=[ue,ce])};Vt(()=>{document.addEventListener("mouseup",R)}),En(()=>{document.removeEventListener("mouseup",R)});const S=(ue,ce)=>g.value.includes(`${ue}_${ce}`),L=ue=>{const ce=l.value.length-1;a.value=[0,ue],s.value=[ce,ue]},M=ue=>{const ce=l.value[ue].length-1;a.value=[ue,0],s.value=[ue,ce]},w=()=>{const ue=l.value.length-1,ce=l.value[ue].length-1;a.value=[0,0],s.value=[ue,ce]},_=ue=>{const ce=JSON.parse(JSON.stringify(l.value)),le=l.value[ue],$=[];for(let X=0;X=0;j--)if(!S(j,X)){ce[j][X].rowspan=ce[j][X].rowspan-1;break}ce.splice(ue,1),l.value=ce},C=ue=>{const ce=JSON.parse(JSON.stringify(l.value)),le=[];for(let $=0;$=0;X--)if(!S($,X)){ce[$][X].colspan=ce[$][X].colspan-1;break}l.value=ce.map($=>($.splice(ue,1),$)),f.value.splice(ue,1),r("changeColWidths",f.value)},O=ue=>{const ce=JSON.parse(JSON.stringify(l.value)),le=[];for(let $=0;${l.value=l.value.map(ce=>{const le={colspan:1,rowspan:1,text:"",id:Zt(10)};return ce.splice(ue,0,le),ce}),f.value.splice(ue,0,100),r("changeColWidths",f.value)},P=(ue,ce)=>{let le=JSON.parse(JSON.stringify(l.value));const $={colspan:1,rowspan:1,text:""};if(ue){const X=[];for(let j=0;j{const j=[];for(let se=0;se{const[ue,ce]=a.value,[le,$]=s.value,X=Math.min(ue,le),j=Math.min(ce,$),se=Math.max(ue,le),ne=Math.max(ce,$),re=JSON.parse(JSON.stringify(l.value));re[X][j].rowspan=se-X+1,re[X][j].colspan=ne-j+1,l.value=re,h()},I=(ue,ce)=>{const le=JSON.parse(JSON.stringify(l.value));le[ue][ce].rowspan=1,le[ue][ce].colspan=1,l.value=le,h()},W=(ue,ce)=>{h();let le=!0;const $=f.value[ce],X=ue.pageX,j=50;document.onmousemove=se=>{if(!le)return;const ne=(se.pageX-X)/i.value,re=$+ne{le=!1,document.onmousemove=null,document.onmouseup=null,r("changeColWidths",f.value)}},U=()=>{const ue=JSON.parse(JSON.stringify(l.value));for(let ce=0;ce{Rr(()=>{const ue=document.querySelector(".cell-text.active");ue&&ue.focus()})},ee=()=>{const ue=(X,j)=>l.value[X]?l.value[X][j]?S(X,j)?ue(X,j+1):[X,j]:ue(X+1,0):null;s.value=[];const ce=a.value[0],le=a.value[1]+1,$=ue(ce,le);$?a.value=$:(O(ce+1),a.value=[ce+1,0]),Z()},B=ue=>{const ce=+m.value[0].split("_")[0],le=+m.value[0].split("_")[1],$=l.value.length,X=l.value[0].length,j=se=>{if(se[0]<0||se[1]<0||se[0]>$-1||se[1]>X-1)return[0,0];const ne=`${se[0]}_${se[1]}`;return g.value.includes(ne)?ue==="UP"?j([se[0],se[1]-1]):ue==="DOWN"?j([se[0],se[1]-1]):ue==="LEFT"?j([se[0]-1,se[1]]):ue==="RIGHT"?j([se[0]-1,se[1]]):[0,0]:se};if(ue==="UP"){const se=ce-1;if(se<0)return;s.value=[],a.value=j([se,le])}else if(ue==="DOWN"){const se=ce+1;if(se>$-1)return;s.value=[],a.value=j([se,le])}else if(ue==="LEFT"){const se=le-1;if(se<0)return;s.value=[],a.value=j([ce,se])}else if(ue==="RIGHT"){const se=le+1;if(se>X-1)return;s.value=[],a.value=j([ce,se])}Z()},Y=ue=>{var le;const ce=window.getSelection();if(ce&&ce.rangeCount>0){const $=ce.getRangeAt(0),X=$.cloneRange();X.selectNodeContents(ue),X.setEnd($.startContainer,$.startOffset);const j=X.toString().length;X.setEnd($.endContainer,$.endOffset);const se=X.toString().length,ne=((le=ue.textContent)==null?void 0:le.length)||0;return{start:j,end:se,len:ne}}return null},Q=ue=>{if(!n.editable||!m.value.length)return;const ce=ue.key.toUpperCase();if(m.value.length<2){if(ce===yt.TAB)ue.preventDefault(),ee();else if(ue.ctrlKey&&ce===yt.UP){ue.preventDefault();const le=+m.value[0].split("_")[0];O(le)}else if(ue.ctrlKey&&ce===yt.DOWN){ue.preventDefault();const le=+m.value[0].split("_")[0];O(le+1)}else if(ue.ctrlKey&&ce===yt.LEFT){ue.preventDefault();const le=+m.value[0].split("_")[1];N(le)}else if(ue.ctrlKey&&ce===yt.RIGHT){ue.preventDefault();const le=+m.value[0].split("_")[1];N(le+1)}else if(ce===yt.UP){const le=Y(ue.target);le&&le.start===le.end&&le.start===0&&B("UP")}else if(ce===yt.DOWN){const le=Y(ue.target);le&&le.start===le.end&&le.start===le.len&&B("DOWN")}else if(ce===yt.LEFT){const le=Y(ue.target);le&&le.start===le.end&&le.start===0&&B("LEFT")}else if(ce===yt.RIGHT){const le=Y(ue.target);le&&le.start===le.end&&le.start===le.len&&B("RIGHT")}}else ce===yt.DELETE&&U()};Vt(()=>{document.addEventListener("keydown",Q)}),En(()=>{document.removeEventListener("keydown",Q)});const K=Qn.debounce(function(ue,ce,le){l.value[ce][le].text=ue,r("change",l.value)},300,{trailing:!0}),te=(ue,ce,le)=>{const $=ue.length,X=ue[0].length;let j=0,se=0;ce+$>l.value.length&&(j=ce+$-l.value.length),le+X>l.value[0].length&&(se=le+X-l.value[0].length),(j||se)&&P(j,se),Rr(()=>{for(let ne=0;ne<$;ne++)for(let re=0;re{const ue=[];for(let ce=0;ce{const ue=J(),ce=ue.length>1,le=ue[0].length>1;return{canDeleteRow:ce,canDeleteCol:le}},G=(ue,ce)=>{const le=m.value.length>1,$=l.value[ue][ce],X=le,j=!le&&($.rowspan>1||$.colspan>1);return{canMerge:X,canSplit:j}},Ae=ue=>{const ce=ue.dataset.cellIndex,le=+ce.split("_")[0],$=+ce.split("_")[1];m.value.includes(`${le}_${$}`)||(a.value=[le,$],s.value=[]);const{canMerge:X,canSplit:j}=G(le,$),{canDeleteRow:se,canDeleteCol:ne}=de();return[{text:"插入列",children:[{text:"到左侧",handler:()=>N($)},{text:"到右侧",handler:()=>N($+1)}]},{text:"插入行",children:[{text:"到上方",handler:()=>O(le)},{text:"到下方",handler:()=>O(le+1)}]},{text:"删除列",disable:!ne,handler:()=>C($)},{text:"删除行",disable:!se,handler:()=>_(le)},{divider:!0},{text:"合并单元格",disable:!X,handler:F},{text:"取消合并单元格",disable:!j,handler:()=>I(le,$)},{divider:!0},{text:"选中当前列",handler:()=>L($)},{text:"选中当前行",handler:()=>M(le)},{text:"选中全部单元格",handler:w}]};return(ue,ce)=>{var $,X,j,se,ne;const le=_n("contextmenu");return D(),q("div",{class:"editable-table",style:Le({width:d.value+"px"})},[ue.editable?(D(),q("div",HNe,[(D(!0),q(Ee,null,qe(p.value,(re,ae)=>(D(),q("div",{class:"drag-line",key:ae,style:Le({left:re+"px"}),onMousedown:ve=>W(ve,ae)},null,44,KNe))),128))])):Ye("",!0),V("table",{class:ze({theme:u.value,"row-header":($=u.value)==null?void 0:$.rowHeader,"row-footer":(X=u.value)==null?void 0:X.rowFooter,"col-header":(j=u.value)==null?void 0:j.colHeader,"col-footer":(se=u.value)==null?void 0:se.colFooter}),style:Le(`--themeColor: ${(ne=u.value)==null?void 0:ne.color}; --subThemeColor1: ${z(c)[0]}; --subThemeColor2: ${z(c)[1]}`)},[V("colgroup",null,[(D(!0),q(Ee,null,qe(f.value,(re,ae)=>(D(),q("col",{span:"1",key:ae,width:re},null,8,GNe))),128))]),V("tbody",null,[(D(!0),q(Ee,null,qe(l.value,(re,ae)=>(D(),q("tr",{key:ae,style:Le({height:ue.cellMinHeight+"px"})},[(D(!0),q(Ee,null,qe(re,(ve,fe)=>Ge((D(),q("td",{class:ze(["cell",{selected:m.value.includes(`${ae}_${fe}`)&&m.value.length>1,active:y.value===`${ae}_${fe}`}]),style:Le({borderStyle:ue.outline.style,borderColor:ue.outline.color,borderWidth:ue.outline.width+"px",...z(Tee)(ve.style)}),key:ve.id,rowspan:ve.rowspan,colspan:ve.colspan,"data-cell-index":`${ae}_${fe}`,onMousedown:ge=>A(ge,ae,fe),onMouseenter:ge=>x(ae,fe)},[y.value===`${ae}_${fe}`?(D(),Oe(QNe,{key:0,class:ze(["cell-text",{active:y.value===`${ae}_${fe}`}]),style:Le({minHeight:ue.cellMinHeight-4+"px"}),value:ve.text,onUpdateValue:ge=>z(K)(ge,ae,fe),onInsertExcelData:ge=>te(ge,ae,fe)},null,8,["class","style","value","onUpdateValue","onInsertExcelData"])):(D(),q("div",{key:1,class:"cell-text",style:Le({minHeight:ue.cellMinHeight-4+"px"}),innerHTML:z(_ee)(ve.text)},null,12,JNe))],46,zNe)),[[hc,!z(g).includes(`${ae}_${fe}`)],[le,ge=>Ae(ge)]])),128))],4))),128))])],6)],4)}}}),jNe=Be($Ne,[["__scopeId","data-v-938823e2"]]),qNe={class:"element-content"},e7e=We({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=pt(),r=st(),{canvasScale:i,handleElementId:o,isScaling:a}=Ve(n),s=he(),{addHistorySnapshot:l}=nn(),u=y=>{t.elementInfo.lock||(y.stopPropagation(),t.selectElement(y,t.elementInfo))},c=he(!1);Tt(o,()=>{o.value!==t.elementInfo.id&&(c.value=!1)}),Tt(c,()=>{n.setDisableHotkeysState(c.value)});const f=()=>{t.elementInfo.lock||(c.value=!0)},d=he(-1);Tt(a,()=>{o.value===t.elementInfo.id&&(a.value&&(c.value=!1),!a.value&&d.value!==-1&&(r.updateElement({id:t.elementInfo.id,props:{height:d.value}}),d.value=-1))});const h=y=>{const R=y[0].contentRect;if(!s.value)return;const A=R.height;t.elementInfo.height!==A&&(a.value?d.value=A:r.updateElement({id:t.elementInfo.id,props:{height:A}}))},p=new ResizeObserver(h);Vt(()=>{s.value&&p.observe(s.value)}),En(()=>{s.value&&p.unobserve(s.value)});const v=y=>{r.updateElement({id:t.elementInfo.id,props:{data:y}}),l()},g=y=>{const R=y.reduce((x,S)=>x+S),A=y.map(x=>x/R);r.updateElement({id:t.elementInfo.id,props:{width:R,colWidths:A}}),l()},m=y=>{Rr(()=>n.setSelectedTableCells(y))};return(y,R)=>{const A=_n("contextmenu");return D(),q("div",{class:ze(["editable-element-table",{lock:y.elementInfo.lock}]),ref_key:"elementRef",ref:s,style:Le({top:y.elementInfo.top+"px",left:y.elementInfo.left+"px",width:y.elementInfo.width+"px"})},[V("div",{class:"rotate-wrapper",style:Le({transform:`rotate(${y.elementInfo.rotate}deg)`})},[Ge((D(),q("div",qNe,[k(jNe,{onMousedown:R[0]||(R[0]=Ft(()=>{},["stop"])),data:y.elementInfo.data,width:y.elementInfo.width,cellMinHeight:y.elementInfo.cellMinHeight,colWidths:y.elementInfo.colWidths,outline:y.elementInfo.outline,theme:y.elementInfo.theme,editable:c.value,onChange:R[1]||(R[1]=x=>v(x)),onChangeColWidths:R[2]||(R[2]=x=>g(x)),onChangeSelectedCells:R[3]||(R[3]=x=>m(x))},null,8,["data","width","cellMinHeight","colWidths","outline","theme","editable"]),!c.value||y.elementInfo.lock?(D(),q("div",{key:0,class:ze(["table-mask",{lock:y.elementInfo.lock}]),onDblclick:R[4]||(R[4]=x=>f()),onMousedown:R[5]||(R[5]=x=>u(x)),onTouchstart:R[6]||(R[6]=x=>u(x))},[z(o)===y.elementInfo.id?(D(),q("div",{key:0,class:"mask-tip",style:Le({transform:`scale(${1/z(i)})`})},"双击编辑",4)):Ye("",!0)],34)):Ye("",!0)])),[[A,y.contextmenus]])],4)],6)}}}),Pee=Be(e7e,[["__scopeId","data-v-7795910a"]]),t7e=["width","height","stroke","stroke-width"],n7e=["transform"],r7e=["d"],i7e=We({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=i=>{t.elementInfo.lock||(i.stopPropagation(),t.selectElement(i,t.elementInfo))},r=()=>{Ki.emit(Ti.OPEN_LATEX_EDITOR)};return(i,o)=>{const a=_n("contextmenu");return D(),q("div",{class:ze(["editable-element-latex",{lock:i.elementInfo.lock}]),style:Le({top:i.elementInfo.top+"px",left:i.elementInfo.left+"px",width:i.elementInfo.width+"px",height:i.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:Le({transform:`rotate(${i.elementInfo.rotate}deg)`})},[Ge((D(),q("div",{class:"element-content",onMousedown:o[0]||(o[0]=s=>n(s)),onTouchstart:o[1]||(o[1]=s=>n(s)),onDblclick:o[2]||(o[2]=s=>r())},[(D(),q("svg",{overflow:"visible",width:i.elementInfo.width,height:i.elementInfo.height,stroke:i.elementInfo.color,"stroke-width":i.elementInfo.strokeWidth,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[V("g",{transform:`scale(${i.elementInfo.width/i.elementInfo.viewBox[0]}, ${i.elementInfo.height/i.elementInfo.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`},[V("path",{d:i.elementInfo.path},null,8,r7e)],8,n7e)],8,t7e))],32)),[[a,i.contextmenus]])],4)],6)}}}),Cee=Be(i7e,[["__scopeId","data-v-b73586f6"]]),o7e=(e,t)=>{Vt(()=>{if(!t.value)return;let n="normal";if(/m3u8(#|\?|$)/i.exec(e)?n="hls":/.flv(#|\?|$)/i.exec(e)&&(n="flv"),t.value&&n==="hls"&&(t.value.canPlayType("application/x-mpegURL")||t.value.canPlayType("application/vnd.apple.mpegURL"))&&(n="normal"),n==="hls"){const r=window.Hls;if(r&&r.isSupported()){const i=new r;i.loadSource(e),i.attachMedia(t.value)}}else if(n==="flv"){const r=window.flvjs;if(r&&r.isSupported()){const i=r.createPlayer({type:"flv",url:e});i.attachMediaElement(t.value),i.load()}}})},zP=e=>(rn("data-v-597c0901"),e=e(),on(),e),a7e={key:0,class:"load-error"},s7e=["src","autoplay","poster"],l7e={class:"bezel"},u7e=zP(()=>V("div",{class:"controller-mask"},null,-1)),c7e={class:"controller"},f7e={class:"icons icons-left"},d7e={class:"icon-content"},h7e={class:"volume"},p7e={class:"icon-content"},v7e=zP(()=>V("span",{class:"thumb"},null,-1)),g7e=[v7e],m7e={class:"time"},y7e={class:"ptime"},A7e={class:"dtime"},R7e={class:"icons icons-right"},b7e={class:"speed"},x7e={class:"icon speed-icon"},S7e=["onClick"],w7e={class:"icon-content"},M7e={class:"bar"},L7e=zP(()=>V("span",{class:"thumb"},null,-1)),T7e=[L7e],_7e=We({__name:"index",props:{width:{},height:{},src:{},poster:{default:""},autoplay:{type:Boolean,default:!1},scale:{default:1}},setup(e){const t=e,n=(X=0)=>{if(X===0||isNaN(X))return"00:00";const j=ae=>ae<10?"0"+ae:""+ae,se=Math.floor(X/3600),ne=Math.floor((X-se*3600)/60),re=Math.floor(X-se*3600-ne*60);return(se>0?[se,ne,re]:[ne,re]).map(j).join(":")},r=X=>X.getBoundingClientRect().left,i=he(),o=he(),a=he(),s=he(.5),l=he(!0),u=he(0),c=he(0),f=he(0),d=he(!1),h=he(!1),p=he(1),v=he(!1),g=he("00:00"),m=he("0"),y=Se(()=>n(u.value)),R=Se(()=>n(c.value)),A=Se(()=>u.value/c.value*100+"%"),x=Se(()=>f.value/c.value*100+"%"),S=Se(()=>s.value*100+"%"),L=he(!1),M=[{label:"2x",value:2},{label:"1.5x",value:1.5},{label:"1.25x",value:1.25},{label:"1x",value:1},{label:"0.75x",value:.75},{label:"0.5x",value:.5}],w=X=>{i.value&&(X=Math.max(X,0),X=Math.min(X,c.value),i.value.currentTime=X,u.value=X)},_=()=>{i.value&&(l.value=!1,i.value.play(),h.value=!0)},C=()=>{i.value&&(l.value=!0,i.value.pause(),h.value=!0)},O=()=>{l.value?_():C()},N=X=>{i.value&&(X=Math.max(X,0),X=Math.min(X,1),i.value.volume=X,s.value=X,i.value.muted&&X!==0&&(i.value.muted=!1))},P=X=>{i.value&&(i.value.playbackRate=X),p.value=X},F=()=>{var X;c.value=((X=i.value)==null?void 0:X.duration)||0},I=()=>{var X;u.value=((X=i.value)==null?void 0:X.currentTime)||0},W=()=>{d.value?(w(0),_()):C()},U=()=>{var X;f.value=(X=i.value)!=null&&X.buffered.length?i.value.buffered.end(i.value.buffered.length-1):0},Z=he(!1),ee=()=>Z.value=!0,B=X=>{if(!i.value||!o.value)return;let se=(("clientX"in X?X.clientX:X.changedTouches[0].clientX)-r(o.value))/o.value.clientWidth;se=Math.max(se,0),se=Math.min(se,1);const ne=se*c.value;i.value.currentTime=ne,u.value=ne},Y=X=>{if(!i.value||!o.value)return;let se=(("clientX"in X?X.clientX:X.changedTouches[0].clientX)-r(o.value))/o.value.clientWidth;se=Math.max(se,0),se=Math.min(se,1);const ne=se*c.value;i.value.currentTime=ne,u.value=ne,document.removeEventListener("mousemove",B),document.removeEventListener("touchmove",B),document.removeEventListener("mouseup",Y),document.removeEventListener("touchend",Y)},Q=()=>{document.addEventListener("mousemove",B),document.addEventListener("touchmove",B),document.addEventListener("mouseup",Y),document.addEventListener("touchend",Y)},K=X=>{if(!a.value)return;const se=(("clientX"in X?X.clientX:X.changedTouches[0].clientX)-r(a.value))/45;N(se)},te=()=>{document.removeEventListener("mousemove",K),document.removeEventListener("touchmove",K),document.removeEventListener("mouseup",te),document.removeEventListener("touchend",te)},J=()=>{document.addEventListener("mousemove",K),document.addEventListener("touchmove",K),document.addEventListener("mouseup",te),document.addEventListener("touchend",te)},de=X=>{if(!a.value)return;const j=(X.clientX-r(a.value))/45;N(j)},G=X=>{if(c.value&&o.value){const j=o.value.getBoundingClientRect().left,se=X.clientX-j;if(se<0||se>o.value.offsetWidth)return;const ne=c.value*(se/o.value.offsetWidth);m.value=`${se-(ne>=3600?25:20)}px`,g.value=n(ne),v.value=!0}},Ae=()=>{i.value&&(i.value.muted?(i.value.muted=!1,N(.5)):(i.value.muted=!0,N(0)))},ue=()=>{d.value=!d.value},ce=he(-1),le=he(!1),$=()=>{le.value=!1,clearTimeout(ce.value),ce.value=setTimeout(()=>{var X;(X=i.value)!=null&&X.played.length&&(le.value=!0)},3e3)};return o7e(t.src,i),(X,j)=>{const se=xe("IconPause"),ne=xe("IconPlayOne"),re=xe("IconVolumeMute"),ae=xe("IconVolumeNotice"),ve=xe("IconVolumeSmall");return D(),q("div",{class:ze(["video-player",{"hide-controller":le.value}]),style:Le({width:X.width*X.scale+"px",height:X.height*X.scale+"px",transform:`scale(${1/X.scale})`}),onMousemove:j[22]||(j[22]=fe=>$()),onClick:j[23]||(j[23]=fe=>$())},[V("div",{class:"video-wrap",onClick:j[8]||(j[8]=fe=>O())},[Z.value?(D(),q("div",a7e,"视频加载失败")):Ye("",!0),V("video",{class:"video",ref_key:"videoRef",ref:i,src:X.src,autoplay:X.autoplay,poster:X.poster,"webkit-playsinline":"",playsinline:"",onDurationchange:j[0]||(j[0]=fe=>F()),onTimeupdate:j[1]||(j[1]=fe=>I()),onEnded:j[2]||(j[2]=fe=>W()),onProgress:j[3]||(j[3]=fe=>U()),onPlay:j[4]||(j[4]=fe=>{$(),l.value=!1}),onPause:j[5]||(j[5]=fe=>$()),onError:j[6]||(j[6]=fe=>ee())},null,40,s7e),V("div",l7e,[V("span",{class:ze(["bezel-icon",{"bezel-transition":h.value}]),onAnimationend:j[7]||(j[7]=fe=>h.value=!1)},[l.value?(D(),Oe(se,{key:0})):(D(),Oe(ne,{key:1}))],34)])]),u7e,V("div",c7e,[V("div",f7e,[V("div",{class:"icon play-icon",onClick:j[9]||(j[9]=fe=>O())},[V("span",d7e,[l.value?(D(),Oe(ne,{key:0})):(D(),Oe(se,{key:1}))])]),V("div",h7e,[V("div",{class:"icon volume-icon",onClick:j[10]||(j[10]=fe=>Ae())},[V("span",p7e,[s.value===0?(D(),Oe(re,{key:0})):s.value===1?(D(),Oe(ae,{key:1})):(D(),Oe(ve,{key:2}))])]),V("div",{class:"volume-bar-wrap",onMousedown:j[11]||(j[11]=fe=>J()),onTouchstart:j[12]||(j[12]=fe=>J()),onClick:j[13]||(j[13]=fe=>de(fe))},[V("div",{class:"volume-bar",ref_key:"volumeBarRef",ref:a},[V("div",{class:"volume-bar-inner",style:Le({width:S.value})},g7e,4)],512)],32)]),V("span",m7e,[V("span",y7e,dt(y.value),1),Ue(" / "),V("span",A7e,dt(R.value),1)])]),V("div",R7e,[V("div",b7e,[V("div",x7e,[V("span",{class:"icon-content",onClick:j[14]||(j[14]=fe=>L.value=!L.value)},dt(p.value===1?"倍速":p.value+"x"),1),L.value?(D(),q("div",{key:0,class:"speed-menu",onMouseleave:j[15]||(j[15]=fe=>L.value=!1)},[(D(),q(Ee,null,qe(M,fe=>V("div",{class:ze(["speed-menu-item",{active:fe.value===p.value}]),key:fe.label,onClick:ge=>P(fe.value)},dt(fe.label),11,S7e)),64))],32)):Ye("",!0)])]),V("div",{class:"loop",onClick:j[16]||(j[16]=fe=>ue())},[V("div",{class:ze(["icon loop-icon",{active:d.value}])},[V("span",w7e,"循环"+dt(d.value?"开":"关"),1)],2)])]),V("div",{class:"bar-wrap",ref_key:"playBarWrap",ref:o,onMousedown:j[17]||(j[17]=fe=>Q()),onTouchstart:j[18]||(j[18]=fe=>Q()),onMousemove:j[19]||(j[19]=fe=>G(fe)),onMouseenter:j[20]||(j[20]=fe=>v.value=!0),onMouseleave:j[21]||(j[21]=fe=>v.value=!1)},[V("div",{class:ze(["bar-time",{hidden:!v.value}]),style:Le({left:m.value})},dt(g.value),7),V("div",M7e,[V("div",{class:"loaded",style:Le({width:x.value})},null,4),V("div",{class:"played",style:Le({width:A.value})},T7e,4)])],544)])],38)}}}),Iee=Be(_7e,[["__scopeId","data-v-597c0901"]]),O7e=We({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,{canvasScale:n}=Ve(pt()),r=(i,o=!0)=>{t.elementInfo.lock||(i.stopPropagation(),t.selectElement(i,t.elementInfo,o))};return(i,o)=>{const a=_n("contextmenu");return D(),q("div",{class:ze(["editable-element-video",{lock:i.elementInfo.lock}]),style:Le({top:i.elementInfo.top+"px",left:i.elementInfo.left+"px",width:i.elementInfo.width+"px",height:i.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:Le({transform:`rotate(${i.elementInfo.rotate}deg)`})},[Ge((D(),q("div",{class:"element-content",onMousedown:o[2]||(o[2]=s=>r(s,!1)),onTouchstart:o[3]||(o[3]=s=>r(s,!1))},[k(Iee,{width:i.elementInfo.width,height:i.elementInfo.height,src:i.elementInfo.src,poster:i.elementInfo.poster,scale:z(n)},null,8,["width","height","src","poster","scale"]),(D(),q(Ee,null,qe(["t","b","l","r"],s=>V("div",{class:ze(["handler-border",s]),key:s,onMousedown:o[0]||(o[0]=l=>r(l)),onTouchstart:o[1]||(o[1]=l=>r(l))},null,34)),64))],32)),[[a,i.contextmenus]])],4)],6)}}}),Nee=Be(O7e,[["__scopeId","data-v-c50d3bc7"]]),Fee=e=>(rn("data-v-32038f5c"),e=e(),on(),e),k7e=["src","autoplay"],P7e={class:"controller"},C7e={class:"icons"},I7e={class:"icon-content"},N7e={class:"volume"},F7e={class:"icon-content"},E7e=Fee(()=>V("span",{class:"thumb"},null,-1)),X7e=[E7e],W7e={class:"time"},V7e={class:"ptime"},D7e={class:"dtime"},U7e={class:"bar"},B7e=Fee(()=>V("span",{class:"thumb"},null,-1)),Y7e=[B7e],Z7e=We({__name:"AudioPlayer",props:{src:{},loop:{type:Boolean},autoplay:{type:Boolean,default:!1},scale:{default:1}},setup(e,{expose:t}){const n=e,r=(te=0)=>{if(te===0||isNaN(te))return"00:00";const J=ue=>ue<10?"0"+ue:""+ue,de=Math.floor(te/3600),G=Math.floor((te-de*3600)/60),Ae=Math.floor(te-de*3600-G*60);return(de>0?[de,G,Ae]:[G,Ae]).map(J).join(":")},i=te=>te.getBoundingClientRect().left,o=he(),a=he(),s=he(),l=he(.5),u=he(!0),c=he(0),f=he(0),d=he(0),h=he(!1),p=he("00:00"),v=he("0"),g=Se(()=>r(c.value)),m=Se(()=>r(f.value)),y=Se(()=>c.value/f.value*100+"%"),R=Se(()=>d.value/f.value*100+"%"),A=Se(()=>l.value*100+"%"),x=te=>{o.value&&(te=Math.max(te,0),te=Math.min(te,f.value),o.value.currentTime=te,c.value=te)},S=()=>{o.value&&(u.value=!1,o.value.play())},L=()=>{o.value&&(u.value=!0,o.value.pause())},M=()=>{u.value?S():L()},w=te=>{o.value&&(te=Math.max(te,0),te=Math.min(te,1),o.value.volume=te,l.value=te,o.value.muted&&te!==0&&(o.value.muted=!1))},_=()=>{var te;f.value=((te=o.value)==null?void 0:te.duration)||0},C=()=>{var te;c.value=((te=o.value)==null?void 0:te.currentTime)||0},O=()=>{u.value=!1},N=()=>{n.loop?(x(0),S()):L()},P=()=>{var te;d.value=(te=o.value)!=null&&te.buffered.length?o.value.buffered.end(o.value.buffered.length-1):0},F=()=>pn.error("视频加载失败"),I=te=>{if(!o.value||!a.value)return;let de=(("clientX"in te?te.clientX:te.changedTouches[0].clientX)-i(a.value))/a.value.clientWidth;de=Math.max(de,0),de=Math.min(de,1);const G=de*f.value;o.value.currentTime=G,c.value=G},W=te=>{if(!o.value||!a.value)return;let de=(("clientX"in te?te.clientX:te.changedTouches[0].clientX)-i(a.value))/a.value.clientWidth;de=Math.max(de,0),de=Math.min(de,1);const G=de*f.value;o.value.currentTime=G,c.value=G,document.removeEventListener("mousemove",I),document.removeEventListener("touchmove",I),document.removeEventListener("mouseup",W),document.removeEventListener("touchend",W)},U=()=>{document.addEventListener("mousemove",I),document.addEventListener("touchmove",I),document.addEventListener("mouseup",W),document.addEventListener("touchend",W)},Z=te=>{if(!s.value)return;const de=(("clientX"in te?te.clientX:te.changedTouches[0].clientX)-i(s.value))/45;w(de)},ee=()=>{document.removeEventListener("mousemove",Z),document.removeEventListener("touchmove",Z),document.removeEventListener("mouseup",ee),document.removeEventListener("touchend",ee)},B=()=>{document.addEventListener("mousemove",Z),document.addEventListener("touchmove",Z),document.addEventListener("mouseup",ee),document.addEventListener("touchend",ee)},Y=te=>{if(!s.value)return;const J=(te.clientX-i(s.value))/45;w(J)},Q=te=>{if(f.value&&a.value){const J=a.value.getBoundingClientRect().left,de=te.clientX-J;if(de<0||de>a.value.offsetWidth)return;const G=f.value*(de/a.value.offsetWidth);v.value=`${de-(G>=3600?25:20)}px`,p.value=r(G),h.value=!0}},K=()=>{o.value&&(o.value.muted?(o.value.muted=!1,w(.5)):(o.value.muted=!0,w(0)))};return t({toggle:M}),(te,J)=>{const de=xe("IconPlayOne"),G=xe("IconPause"),Ae=xe("IconVolumeMute"),ue=xe("IconVolumeNotice"),ce=xe("IconVolumeSmall");return D(),q("div",{class:"audio-player",style:Le({transform:`scale(${1/te.scale})`})},[V("audio",{class:"audio",ref_key:"audioRef",ref:o,src:te.src,autoplay:te.autoplay,onDurationchange:J[0]||(J[0]=le=>_()),onTimeupdate:J[1]||(J[1]=le=>C()),onPlay:J[2]||(J[2]=le=>O()),onEnded:J[3]||(J[3]=le=>N()),onProgress:J[4]||(J[4]=le=>P()),onError:J[5]||(J[5]=le=>F())},null,40,k7e),V("div",P7e,[V("div",C7e,[V("div",{class:"icon play-icon",onClick:J[6]||(J[6]=le=>M())},[V("span",I7e,[u.value?(D(),Oe(de,{key:0})):(D(),Oe(G,{key:1}))])]),V("div",N7e,[V("div",{class:"icon volume-icon",onClick:J[7]||(J[7]=le=>K())},[V("span",F7e,[l.value===0?(D(),Oe(Ae,{key:0})):l.value===1?(D(),Oe(ue,{key:1})):(D(),Oe(ce,{key:2}))])]),V("div",{class:"volume-bar-wrap",onMousedown:J[8]||(J[8]=le=>B()),onTouchstart:J[9]||(J[9]=le=>B()),onClick:J[10]||(J[10]=le=>Y(le))},[V("div",{class:"volume-bar",ref_key:"volumeBarRef",ref:s},[V("div",{class:"volume-bar-inner",style:Le({width:A.value})},X7e,4)],512)],32)])]),V("span",W7e,[V("span",V7e,dt(g.value),1),Ue(" / "),V("span",D7e,dt(m.value),1)]),V("div",{class:"bar-wrap",ref_key:"playBarWrap",ref:a,onMousedown:J[11]||(J[11]=le=>U()),onTouchstart:J[12]||(J[12]=le=>U()),onMousemove:J[13]||(J[13]=le=>Q(le)),onMouseenter:J[14]||(J[14]=le=>h.value=!0),onMouseleave:J[15]||(J[15]=le=>h.value=!1)},[V("div",{class:ze(["bar-time",{hidden:!h.value}]),style:Le({left:v.value})},dt(p.value),7),V("div",U7e,[V("div",{class:"loaded",style:Le({width:R.value})},null,4),V("div",{class:"played",style:Le({width:y.value})},Y7e,4)])],544)])],4)}}}),Eee=Be(Z7e,[["__scopeId","data-v-32038f5c"]]),Q7e=We({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,{canvasScale:n,handleElementId:r}=Ve(pt()),{viewportRatio:i,viewportSize:o}=Ve(st()),a=Se(()=>Math.min(t.elementInfo.width,t.elementInfo.height)+"px"),s=Se(()=>{const u=o.value,c=o.value*i.value,f=280/n.value,d=50/n.value,h=t.elementInfo.width,p=t.elementInfo.height,v=t.elementInfo.left,g=t.elementInfo.top;let m=0,y=p;return v+f>=u&&(m=h-f),g+p+d>=c&&(y=-d),{left:m+"px",top:y+"px"}}),l=u=>{t.elementInfo.lock||(u.stopPropagation(),t.selectElement(u,t.elementInfo))};return(u,c)=>{const f=xe("IconVolumeNotice"),d=_n("contextmenu");return D(),q("div",{class:ze(["editable-element-audio",{lock:u.elementInfo.lock}]),style:Le({top:u.elementInfo.top+"px",left:u.elementInfo.left+"px",width:u.elementInfo.width+"px",height:u.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:Le({transform:`rotate(${u.elementInfo.rotate}deg)`})},[Ge((D(),q("div",{class:"element-content",onMousedown:c[1]||(c[1]=h=>l(h)),onTouchstart:c[2]||(c[2]=h=>l(h))},[k(f,{class:"audio-icon",style:Le({fontSize:a.value,color:u.elementInfo.color})},null,8,["style"]),z(r)===u.elementInfo.id?(D(),Oe(Eee,{key:0,class:"audio-player",style:Le({...s.value}),src:u.elementInfo.src,loop:u.elementInfo.loop,scale:z(n),onMousedown:c[0]||(c[0]=Ft(()=>{},["stop"]))},null,8,["style","src","loop","scale"])):Ye("",!0)],32)),[[d,u.contextmenus]])],4)],6)}}}),Xee=Be(Q7e,[["__scopeId","data-v-07f623ea"]]),H7e=["id"],K7e=We({__name:"EditableElement",props:{elementInfo:{},elementIndex:{},isMultiSelect:{type:Boolean},selectElement:{type:Function},openLinkDialog:{type:Function}},setup(e){const t=e,n=Se(()=>({[Et.IMAGE]:_z,[Et.TEXT]:xJ,[Et.SHAPE]:wJ,[Et.LINE]:MJ,[Et.CHART]:Lee,[Et.TABLE]:Pee,[Et.LATEX]:Cee,[Et.VIDEO]:Nee,[Et.AUDIO]:Xee})[t.elementInfo.type]||null),{orderElement:r}=G2(),{alignElementToCanvas:i}=g3(),{combineElements:o,uncombineElements:a}=rk(),{deleteElement:s}=K2(),{lockElement:l,unlockElement:u}=JH(),{copyElement:c,pasteElement:f,cutElement:d}=ik(),{selectAllElements:h}=r3(),p=()=>t.elementInfo.lock?[{text:"解锁",handler:()=>u(t.elementInfo)}]:[{text:"剪切",subText:"Ctrl + X",handler:d},{text:"复制",subText:"Ctrl + C",handler:c},{text:"粘贴",subText:"Ctrl + V",handler:f},{divider:!0},{text:"水平居中",handler:()=>i(gn.HORIZONTAL),children:[{text:"水平垂直居中",handler:()=>i(gn.CENTER)},{text:"水平居中",handler:()=>i(gn.HORIZONTAL)},{text:"左对齐",handler:()=>i(gn.LEFT)},{text:"右对齐",handler:()=>i(gn.RIGHT)}]},{text:"垂直居中",handler:()=>i(gn.VERTICAL),children:[{text:"水平垂直居中",handler:()=>i(gn.CENTER)},{text:"垂直居中",handler:()=>i(gn.VERTICAL)},{text:"顶部对齐",handler:()=>i(gn.TOP)},{text:"底部对齐",handler:()=>i(gn.BOTTOM)}]},{divider:!0},{text:"置于顶层",disable:t.isMultiSelect&&!t.elementInfo.groupId,handler:()=>r(t.elementInfo,Wr.TOP),children:[{text:"置于顶层",handler:()=>r(t.elementInfo,Wr.TOP)},{text:"上移一层",handler:()=>r(t.elementInfo,Wr.UP)}]},{text:"置于底层",disable:t.isMultiSelect&&!t.elementInfo.groupId,handler:()=>r(t.elementInfo,Wr.BOTTOM),children:[{text:"置于底层",handler:()=>r(t.elementInfo,Wr.BOTTOM)},{text:"下移一层",handler:()=>r(t.elementInfo,Wr.DOWN)}]},{divider:!0},{text:"设置链接",handler:t.openLinkDialog},{text:t.elementInfo.groupId?"取消组合":"组合",subText:"Ctrl + G",handler:t.elementInfo.groupId?a:o,hide:!t.isMultiSelect},{text:"全选",subText:"Ctrl + A",handler:h},{text:"锁定",subText:"Ctrl + L",handler:l},{text:"删除",subText:"Delete",handler:s}];return(v,g)=>(D(),q("div",{class:"editable-element",ref:"elementRef",id:`editable-element-${v.elementInfo.id}`,style:Le({zIndex:v.elementIndex})},[(D(),Oe(xu(n.value),{elementInfo:v.elementInfo,selectElement:v.selectElement,contextmenus:p},null,8,["elementInfo","selectElement"]))],12,H7e))}}),G7e=We({__name:"MouseSelection",props:{top:{},left:{},width:{},height:{},quadrant:{}},setup(e){return(t,n)=>(D(),q("div",{class:ze(`mouse-selection quadrant-${t.quadrant}`),style:Le({top:t.top+"px",left:t.left+"px",width:t.width+"px",height:t.height+"px"})},null,6))}}),z7e=Be(G7e,[["__scopeId","data-v-053bfa3e"]]),J7e={class:"grid-lines"},$7e=["d","stroke"],j7e=We({__name:"GridLines",setup(e){const{canvasScale:t,gridLineSize:n}=Ve(pt()),{currentSlide:r,viewportRatio:i,viewportSize:o}=Ve(st()),a=Se(()=>{var u;return(u=r.value)==null?void 0:u.background}),s=Se(()=>{var f;const u=((f=a.value)==null?void 0:f.color)||"#fff",c=["#000","#fff"];return at.mostReadable(u,c,{includeFallbackColors:!0}).setAlpha(.5).toRgbString()}),l=Se(()=>{const u=o.value,c=o.value*i.value;let f="";for(let d=0;d<=Math.floor(c/n.value);d++)f+=`M0 ${d*n.value} L${u} ${d*n.value} `;for(let d=0;d<=Math.floor(u/n.value);d++)f+=`M${d*n.value} 0 L${d*n.value} ${c} `;return f});return(u,c)=>(D(),q("svg",J7e,[V("path",{style:Le({transform:`scale(${z(t)})`}),d:l.value,fill:"none",stroke:s.value,"stroke-width":"0.3","stroke-dasharray":"5"},null,12,$7e)]))}}),q7e=Be(j7e,[["__scopeId","data-v-93264269"]]),e4=e=>({backgroundStyle:Se(()=>{if(!e.value)return{backgroundColor:"#fff"};const{type:n,color:r,image:i,gradient:o}=e.value;if(n==="solid")return{backgroundColor:r};if(n==="image"&&i){const{src:a,size:s}=i;return a?s==="repeat"?{backgroundImage:`url(${a}`,backgroundRepeat:"repeat",backgroundSize:"contain"}:{backgroundImage:`url(${a}`,backgroundRepeat:"no-repeat",backgroundSize:s||"cover"}:{backgroundColor:"#fff"}}else if(n==="gradient"&&o){const{type:a,colors:s,rotate:l}=o,u=s.map(c=>`${c.color} ${c.pos}%`);return a==="radial"?{backgroundImage:`radial-gradient(${u.join(",")}`}:{backgroundImage:`linear-gradient(${l}deg, ${u.join(",")}`}}return{backgroundColor:"#fff"}})}),e9e=We({__name:"ViewportBackground",setup(e){const{gridLineSize:t}=Ve(pt()),{currentSlide:n}=Ve(st()),r=Se(()=>{var o;return(o=n.value)==null?void 0:o.background}),{backgroundStyle:i}=e4(r);return(o,a)=>(D(),q("div",{class:"viewport-background",style:Le(z(i))},[z(t)?(D(),Oe(q7e,{key:0})):Ye("",!0)],4))}}),t9e=Be(e9e,[["__scopeId","data-v-203ea8ff"]]),n9e=We({__name:"AlignmentLine",props:{type:{},axis:{},length:{},canvasScale:{}},setup(e){const t=e,n=Se(()=>t.axis.x*t.canvasScale+"px"),r=Se(()=>t.axis.y*t.canvasScale+"px"),i=Se(()=>t.type==="vertical"?{height:t.length*t.canvasScale+"px"}:{width:t.length*t.canvasScale+"px"});return(o,a)=>(D(),q("div",{class:"alignment-line",style:Le({left:n.value,top:r.value})},[V("div",{class:ze(["line",o.type]),style:Le(i.value)},null,6)],4))}}),Wee=Be(n9e,[["__scopeId","data-v-7cd3d25d"]]),r9e={class:"ruler"},i9e={key:0},o9e={key:0},a9e=We({__name:"Ruler",props:{viewportStyles:{},elementList:{}},setup(e){const t=e,{canvasScale:n,activeElementIdList:r}=Ve(pt()),{viewportRatio:i,viewportSize:o}=Ve(st()),a=he(null);Bv(()=>{const l=t.elementList.filter(u=>r.value.includes(u.id));if(!l.length)return a.value=null;a.value=nc(l)});const s=Se(()=>t.viewportStyles.width*n.value/(o.value/100));return(l,u)=>(D(),q("div",r9e,[V("div",{class:"h",style:Le({width:l.viewportStyles.width*z(n)+"px",left:l.viewportStyles.left+"px"})},[(D(),q(Ee,null,qe(20,c=>V("div",{class:ze(["ruler-marker-100",{hide:s.value<36,omit:s.value<72}]),key:`h-marker-100-${c}`,style:Le({width:s.value+"px"})},[c*100<=z(o)?(D(),q("span",i9e,dt(c*100),1)):Ye("",!0)],6)),64)),a.value?(D(),q("div",{key:0,class:"range",style:Le({left:a.value.minX*z(n)+"px",width:(a.value.maxX-a.value.minX)*z(n)+"px"})},null,4)):Ye("",!0)],4),V("div",{class:"v",style:Le({height:l.viewportStyles.height*z(n)+"px",top:l.viewportStyles.top+"px"})},[(D(),q(Ee,null,qe(20,c=>V("div",{class:ze(["ruler-marker-100",{hide:s.value<36,omit:s.value<72}]),key:`v-marker-100-${c}`,style:Le({height:s.value+"px"})},[c*100<=z(o)*z(i)?(D(),q("span",o9e,dt(c*100),1)):Ye("",!0)],6)),64)),a.value?(D(),q("div",{key:0,class:"range",style:Le({top:a.value.minY*z(n)+"px",height:(a.value.maxY-a.value.minY)*z(n)+"px"})},null,4)):Ye("",!0)],4)]))}}),s9e=Be(a9e,[["__scopeId","data-v-c6df5cc2"]]),l9e=["width","height"],u9e=["d"],c9e=We({__name:"ElementCreateSelection",emits:["created"],setup(e,{emit:t}){const n=t,r=pt(),{creatingElement:i}=Ve(r),{ctrlOrShiftKeyActive:o}=Ve(Ns()),a=he(),s=he(),l=he(),u=he({x:0,y:0});Vt(()=>{if(!l.value)return;const{x:h,y:p}=l.value.getBoundingClientRect();u.value={x:h,y:p}});const c=h=>{let p=!0;const v=h.pageX,g=h.pageY;a.value=[v,g],document.onmousemove=m=>{if(!i.value||!p)return;let y=m.pageX,R=m.pageY;if(o.value){const A=y-v,x=R-g,S=Math.abs(A),L=Math.abs(x);if(i.value.type==="shape"){const M=x>0&&A<0||x<0&&A>0;S>L?R=M?g-A:g+A:y=M?v-x:v+x}else i.value.type==="line"&&(S>L?R=g:y=v)}s.value=[y,R]},document.onmouseup=m=>{var x,S;if(document.onmousemove=null,document.onmouseup=null,m.button===2){setTimeout(()=>r.setCreatingElement(null),0);return}p=!1;const y=m.pageX,R=m.pageY,A=30;if(((x=i.value)==null?void 0:x.type)==="line"&&(Math.abs(y-v)>=A||Math.abs(R-g)>=A))n("created",{start:a.value,end:s.value});else if(((S=i.value)==null?void 0:S.type)!=="line"&&Math.abs(y-v)>=A&&Math.abs(R-g)>=A)n("created",{start:a.value,end:s.value});else{const M=Math.min(y,v),w=Math.min(R,g),_=Math.max(y,v),C=Math.max(R,g),O=_-M>=A?_-M:200,N=C-w>=A?C-w:200;n("created",{start:[M,w],end:[M+O,w+N]})}}},f=Se(()=>{if(!a.value||!s.value||!i.value||i.value.type!=="line")return null;const[h,p]=a.value,[v,g]=s.value,m=Math.min(h,v),y=Math.max(h,v),R=Math.min(p,g),A=Math.max(p,g),x=y-m>=24?y-m:24,S=A-R>=24?A-R:24,L=h===m?0:y-m,M=p===R?0:A-R,w=v===m?0:y-m,_=g===R?0:A-R,C=`M${L}, ${M} L${w}, ${_}`;return{svgWidth:x,svgHeight:S,startX:L,startY:M,endX:w,endY:_,path:C}}),d=Se(()=>{if(!a.value||!s.value)return{};const[h,p]=a.value,[v,g]=s.value,m=Math.min(h,v),y=Math.max(h,v),R=Math.min(p,g),A=Math.max(p,g),x=y-m,S=A-R;return{left:m-u.value.x+"px",top:R-u.value.y+"px",width:x+"px",height:S+"px"}});return(h,p)=>{var v,g;return D(),q("div",{class:"element-create-selection",ref_key:"selectionRef",ref:l,onMousedown:p[0]||(p[0]=Ft(m=>c(m),["stop"])),onContextmenu:p[1]||(p[1]=Ft(()=>{},["stop","prevent"]))},[a.value&&s.value?(D(),q("div",{key:0,class:ze(["selection",(v=z(i))==null?void 0:v.type]),style:Le(d.value)},[((g=z(i))==null?void 0:g.type)==="line"&&f.value?(D(),q("svg",{key:0,overflow:"visible",width:f.value.svgWidth,height:f.value.svgHeight},[V("path",{d:f.value.path,stroke:"#d14424",fill:"none","stroke-width":"2"},null,8,u9e)],8,l9e)):Ye("",!0)],6)):Ye("",!0)],544)}}}),f9e=Be(c9e,[["__scopeId","data-v-7b17a883"]]),d9e={overflow:"visible"},h9e=["d","fill"],p9e=We({__name:"ShapeCreateCanvas",emits:["created"],setup(e,{emit:t}){const n=t,r=pt(),{ctrlOrShiftKeyActive:i}=Ve(Ns()),{theme:o}=Ve(st()),a=he(),s=he(!1),l=he({x:0,y:0});Vt(()=>{if(!a.value)return;const{x:A,y:x}=a.value.getBoundingClientRect();l.value={x:A,y:x}});const u=he(null),c=he([]),f=he(!1),d=(A,x=!1)=>{let S=A.pageX-l.value.x,L=A.pageY-l.value.y;if(x)return{pageX:S,pageY:L};if(i.value&&c.value.length){const[M,w]=c.value[c.value.length-1];Math.abs(M-S)-Math.abs(w-L)>0?L=w:S=M}return{pageX:S,pageY:L}},h=A=>{if(s.value){const{pageX:L,pageY:M}=d(A,!0);c.value.push([L,M]),u.value=null;return}const{pageX:x,pageY:S}=d(A);if(u.value=[x,S],c.value.length>=2){const[L,M]=c.value[0];Math.abs(L-x)<5&&Math.abs(M-S)<5?f.value=!0:f.value=!1}else f.value=!1},p=Se(()=>{let A="";for(let x=0;x{const x=c.value.map(I=>I[0]),S=c.value.map(I=>I[1]),L=Math.min(...x),M=Math.min(...S),w=Math.max(...x),_=Math.max(...S),C=c.value.map(I=>[I[0]-L,I[1]-M]);let O="";for(let I=0;I{const{pageX:x,pageY:S}=d(A);s.value=!0,f.value?n("created",v()):c.value.push([x,S]),document.onmouseup=()=>{s.value=!1}},m=()=>{r.setCreatingCustomShapeState(!1)},y=()=>{n("created",{...v(!1),fill:"rgba(0, 0, 0, 0)",outline:{width:2,color:o.value.themeColor,style:"solid"}}),m()},R=A=>{const x=A.key.toUpperCase();x===yt.ESC&&m(),x===yt.ENTER&&y()};return Vt(()=>{pn.success("点击绘制任意形状,首尾闭合完成绘制,按 ESC 键或鼠标右键取消,按 ENTER 键提前完成",{duration:0}),document.addEventListener("keydown",R)}),En(()=>{document.removeEventListener("keydown",R),pn.closeAll()}),(A,x)=>(D(),q("div",{class:"shape-create-canvas",ref_key:"shapeCanvasRef",ref:a,onMousedown:x[0]||(x[0]=Ft(S=>g(S),["stop"])),onMousemove:x[1]||(x[1]=S=>h(S)),onContextmenu:x[2]||(x[2]=Ft(S=>m(),["stop","prevent"]))},[(D(),q("svg",d9e,[V("path",{d:p.value,stroke:"#d14424",fill:f.value?"rgba(226, 83, 77, 0.15)":"none","stroke-width":"2"},null,8,h9e)]))],544))}}),v9e=Be(p9e,[["__scopeId","data-v-8ea8c340"]]),y0=(e,t)=>{const n=Se(()=>[{direction:Rt.LEFT_TOP,style:{}},{direction:Rt.TOP,style:{left:e.value/2+"px"}},{direction:Rt.RIGHT_TOP,style:{left:e.value+"px"}},{direction:Rt.LEFT,style:{top:t.value/2+"px"}},{direction:Rt.RIGHT,style:{left:e.value+"px",top:t.value/2+"px"}},{direction:Rt.LEFT_BOTTOM,style:{top:t.value+"px"}},{direction:Rt.BOTTOM,style:{left:e.value/2+"px",top:t.value+"px"}},{direction:Rt.RIGHT_BOTTOM,style:{left:e.value+"px",top:t.value+"px"}}]),r=Se(()=>[{direction:Rt.LEFT,style:{top:t.value/2+"px"}},{direction:Rt.RIGHT,style:{left:e.value+"px",top:t.value/2+"px"}}]),i=Se(()=>[{direction:Rt.TOP,style:{left:e.value/2+"px"}},{direction:Rt.BOTTOM,style:{left:e.value/2+"px",top:t.value+"px"}}]),o=Se(()=>[{type:mg.T,style:{width:e.value+"px"}},{type:mg.B,style:{top:t.value+"px",width:e.value+"px"}},{type:mg.L,style:{height:t.value+"px"}},{type:mg.R,style:{left:e.value+"px",height:t.value+"px"}}]);return{resizeHandlers:n,textElementResizeHandlers:r,verticalTextElementResizeHandlers:i,borderLines:o}},g9e=We({__name:"ResizeHandler",props:{type:{},rotate:{default:0}},setup(e){const t=e,n=Se(()=>{const r="rotate-",i=t.rotate;return i>-22.5&&i<=22.5?r+0:i>22.5&&i<=67.5?r+45:i>67.5&&i<=112.5?r+90:i>112.5&&i<=157.5?r+135:i>157.5||i<=-157.5?r+0:i>-157.5&&i<=-112.5?r+45:i>-112.5&&i<=-67.5?r+90:i>-67.5&&i<=-22.5?r+135:r+0});return(r,i)=>(D(),q("div",{class:ze(["resize-handler",n.value,r.type])},null,2))}}),gd=Be(g9e,[["__scopeId","data-v-bb3f9e62"]]),m9e=We({__name:"BorderLine",props:{type:{},isWide:{type:Boolean,default:!1}},setup(e){return(t,n)=>(D(),q("div",{class:ze(["border-line",t.type,{wide:t.isWide}])},null,2))}}),A0=Be(m9e,[["__scopeId","data-v-7114fb45"]]),y9e=We({__name:"MultiSelectOperate",props:{elementList:{},scaleMultiElement:{type:Function}},setup(e){const t=e,{activeElementIdList:n,canvasScale:r}=Ve(pt()),i=Se(()=>t.elementList.filter(d=>n.value.includes(d.id))),o=he({minX:0,maxX:0,minY:0,maxY:0}),a=Se(()=>(o.value.maxX-o.value.minX)*r.value),s=Se(()=>(o.value.maxY-o.value.minY)*r.value),{resizeHandlers:l,borderLines:u}=y0(a,s);Bv(()=>{const{minX:d,maxX:h,minY:p,maxY:v}=nc(i.value);o.value={minX:d,maxX:h,minY:p,maxY:v}});const f=Se(()=>i.value.some(d=>!((d.type==="image"||d.type==="shape")&&!d.rotate)));return(d,h)=>(D(),q("div",{class:"multi-select-operate",style:Le({left:o.value.minX*z(r)+"px",top:o.value.minY*z(r)+"px"})},[(D(!0),q(Ee,null,qe(z(u),p=>(D(),Oe(A0,{key:p.type,type:p.type,style:Le(p.style)},null,8,["type","style"]))),128)),f.value?Ye("",!0):(D(!0),q(Ee,{key:0},qe(z(l),p=>(D(),Oe(gd,{key:p.direction,type:p.direction,style:Le(p.style),onMousedown:Ft(v=>d.scaleMultiElement(v,o.value,p.direction),["stop"])},null,8,["type","style","onMousedown"]))),128))],4))}}),A9e=Be(y9e,[["__scopeId","data-v-135c8cb7"]]),R9e={},b9e={class:"rotate-handler"};function x9e(e,t){return D(),q("div",b9e)}const l1=Be(R9e,[["render",x9e],["__scopeId","data-v-9f21fc0f"]]),S9e={inheritAttrs:!1},w9e=We({...S9e,__name:"ImageElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(e){const t=e,{canvasScale:n,clipingImageElementId:r}=Ve(pt()),i=Se(()=>r.value===t.elementInfo.id),o=Se(()=>t.elementInfo.width*n.value),a=Se(()=>t.elementInfo.height*n.value),{resizeHandlers:s,borderLines:l}=y0(o,a);return(u,c)=>(D(),q("div",{class:ze(["image-element-operate",{cliping:i.value}])},[(D(!0),q(Ee,null,qe(z(l),f=>(D(),Oe(A0,{class:"operate-border-line",key:f.type,type:f.type,style:Le(f.style)},null,8,["type","style"]))),128)),u.handlerVisible?(D(),q(Ee,{key:0},[(D(!0),q(Ee,null,qe(z(s),f=>(D(),Oe(gd,{class:"operate-resize-handler",key:f.direction,type:f.direction,rotate:u.elementInfo.rotate,style:Le(f.style),onMousedown:Ft(d=>u.scaleElement(d,u.elementInfo,f.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),k(l1,{class:"operate-rotate-handler",style:Le({left:o.value/2+"px"}),onMousedown:c[0]||(c[0]=Ft(f=>u.rotateElement(f,u.elementInfo),["stop"]))},null,8,["style"])],64)):Ye("",!0)],2))}}),M9e=Be(w9e,[["__scopeId","data-v-2a1bef4e"]]),L9e={class:"text-element-operate"},T9e={inheritAttrs:!1},_9e=We({...T9e,__name:"TextElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(e){const t=e,{canvasScale:n}=Ve(pt()),r=Se(()=>t.elementInfo.width*n.value),i=Se(()=>t.elementInfo.height*n.value),{textElementResizeHandlers:o,verticalTextElementResizeHandlers:a,borderLines:s}=y0(r,i),l=Se(()=>t.elementInfo.vertical?a.value:o.value);return(u,c)=>(D(),q("div",L9e,[(D(!0),q(Ee,null,qe(z(s),f=>(D(),Oe(A0,{class:"operate-border-line",key:f.type,type:f.type,style:Le(f.style)},null,8,["type","style"]))),128)),u.handlerVisible?(D(),q(Ee,{key:0},[(D(!0),q(Ee,null,qe(l.value,f=>(D(),Oe(gd,{class:"operate-resize-handler",key:f.direction,type:f.direction,rotate:u.elementInfo.rotate,style:Le(f.style),onMousedown:Ft(d=>u.scaleElement(d,u.elementInfo,f.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),k(l1,{class:"operate-rotate-handler",style:Le({left:r.value/2+"px"}),onMousedown:c[0]||(c[0]=Ft(f=>u.rotateElement(f,u.elementInfo),["stop"]))},null,8,["style"])],64)):Ye("",!0)]))}}),O9e={class:"shape-element-operate"},k9e=["onMousedown"],P9e={inheritAttrs:!1},C9e=We({...P9e,__name:"ShapeElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function},moveShapeKeypoint:{type:Function}},setup(e){const t=e,{canvasScale:n}=Ve(pt()),r=Se(()=>t.elementInfo.width*n.value),i=Se(()=>t.elementInfo.height*n.value),{resizeHandlers:o,borderLines:a}=y0(r,i),s=Se(()=>{if(!t.elementInfo.pathFormula||t.elementInfo.keypoints===void 0)return[];const l=f0[t.elementInfo.pathFormula];return t.elementInfo.keypoints.map((u,c)=>{const f=l.getBaseSize[c],d=l.relative[c],h=f(t.elementInfo.width,t.elementInfo.height)*u;let p={};return d==="left"?p={left:h*n.value+"px"}:d==="right"?p={left:(t.elementInfo.width-h)*n.value+"px"}:d==="center"?p={left:(t.elementInfo.width-h)/2*n.value+"px"}:d==="top"?p={top:h*n.value+"px"}:d==="bottom"?p={top:(t.elementInfo.height-h)*n.value+"px"}:d==="left_bottom"?p={left:h*n.value+"px",top:t.elementInfo.height*n.value+"px"}:d==="right_bottom"?p={left:(t.elementInfo.width-h)*n.value+"px",top:t.elementInfo.height*n.value+"px"}:d==="top_right"?p={left:t.elementInfo.width*n.value+"px",top:h*n.value+"px"}:d==="bottom_right"&&(p={left:t.elementInfo.width*n.value+"px",top:(t.elementInfo.height-h)*n.value+"px"}),{keypoint:u,styles:p}})});return(l,u)=>(D(),q("div",O9e,[(D(!0),q(Ee,null,qe(z(a),c=>(D(),Oe(A0,{class:"operate-border-line",key:c.type,type:c.type,style:Le(c.style)},null,8,["type","style"]))),128)),l.handlerVisible?(D(),q(Ee,{key:0},[(D(!0),q(Ee,null,qe(z(o),c=>(D(),Oe(gd,{class:"operate-resize-handler",key:c.direction,type:c.direction,rotate:l.elementInfo.rotate,style:Le(c.style),onMousedown:Ft(f=>l.scaleElement(f,l.elementInfo,c.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),k(l1,{class:"operate-rotate-handler",style:Le({left:r.value/2+"px"}),onMousedown:u[0]||(u[0]=Ft(c=>l.rotateElement(c,l.elementInfo),["stop"]))},null,8,["style"]),(D(!0),q(Ee,null,qe(s.value,(c,f)=>(D(),q("div",{class:"operate-keypoint-handler",key:f,style:Le(c.styles),onMousedown:Ft(d=>l.moveShapeKeypoint(d,l.elementInfo,f),["stop"])},null,44,k9e))),128))],64)):Ye("",!0)]))}}),I9e=Be(C9e,[["__scopeId","data-v-11747e5a"]]),N9e={class:"line-element-operate"},F9e=["width","height","stroke"],E9e={key:0},X9e=["x1","y1","x2","y2"],W9e=["x1","y1","x2","y2"],V9e=["x1","y1","x2","y2"],D9e=["x1","y1","x2","y2"],U9e={inheritAttrs:!1},B9e=We({...U9e,__name:"LineElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},dragLineElement:{type:Function}},setup(e){const t=e,{canvasScale:n}=Ve(pt()),r=Se(()=>Math.max(t.elementInfo.start[0],t.elementInfo.end[0])),i=Se(()=>Math.max(t.elementInfo.start[1],t.elementInfo.end[1])),o=Se(()=>{const a=[{handler:Go.START,style:{left:t.elementInfo.start[0]*n.value+"px",top:t.elementInfo.start[1]*n.value+"px"}},{handler:Go.END,style:{left:t.elementInfo.end[0]*n.value+"px",top:t.elementInfo.end[1]*n.value+"px"}}];if(t.elementInfo.curve||t.elementInfo.broken||t.elementInfo.broken2){const s=t.elementInfo.curve||t.elementInfo.broken||t.elementInfo.broken2;a.push({handler:Go.C,style:{left:s[0]*n.value+"px",top:s[1]*n.value+"px"}})}else if(t.elementInfo.cubic){const[s,l]=t.elementInfo.cubic;a.push({handler:Go.C1,style:{left:s[0]*n.value+"px",top:s[1]*n.value+"px"}}),a.push({handler:Go.C2,style:{left:l[0]*n.value+"px",top:l[1]*n.value+"px"}})}return a});return(a,s)=>(D(),q("div",N9e,[a.handlerVisible?(D(),q(Ee,{key:0},[(D(!0),q(Ee,null,qe(o.value,l=>(D(),Oe(gd,{class:"operate-resize-handler",key:l.handler,style:Le(l.style),onMousedown:Ft(u=>a.dragLineElement(u,a.elementInfo,l.handler),["stop"])},null,8,["style","onMousedown"]))),128)),(D(),q("svg",{width:r.value||1,height:i.value||1,stroke:a.elementInfo.color,overflow:"visible",style:Le({transform:`scale(${z(n)})`})},[a.elementInfo.curve?(D(),q("g",E9e,[V("line",{class:"anchor-line",x1:a.elementInfo.start[0],y1:a.elementInfo.start[1],x2:a.elementInfo.curve[0],y2:a.elementInfo.curve[1]},null,8,X9e),V("line",{class:"anchor-line",x1:a.elementInfo.end[0],y1:a.elementInfo.end[1],x2:a.elementInfo.curve[0],y2:a.elementInfo.curve[1]},null,8,W9e)])):Ye("",!0),a.elementInfo.cubic?(D(!0),q(Ee,{key:1},qe(a.elementInfo.cubic,(l,u)=>(D(),q("g",{key:u},[u===0?(D(),q("line",{key:0,class:"anchor-line",x1:a.elementInfo.start[0],y1:a.elementInfo.start[1],x2:l[0],y2:l[1]},null,8,V9e)):Ye("",!0),u===1?(D(),q("line",{key:1,class:"anchor-line",x1:a.elementInfo.end[0],y1:a.elementInfo.end[1],x2:l[0],y2:l[1]},null,8,D9e)):Ye("",!0)]))),128)):Ye("",!0)],12,F9e))],64)):Ye("",!0)]))}}),Y9e=Be(B9e,[["__scopeId","data-v-9dea4d6a"]]),Z9e={class:"table-element-operate"},Q9e={inheritAttrs:!1},H9e=We({...Q9e,__name:"TableElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(e){const t=e,{canvasScale:n}=Ve(pt()),r=Se(()=>t.elementInfo.outline.width||1),i=Se(()=>(t.elementInfo.width+r.value)*n.value),o=Se(()=>t.elementInfo.height*n.value),{resizeHandlers:a,borderLines:s}=y0(i,o);return(l,u)=>(D(),q("div",Z9e,[(D(!0),q(Ee,null,qe(z(s),c=>(D(),Oe(A0,{class:"operate-border-line",key:c.type,type:c.type,style:Le(c.style)},null,8,["type","style"]))),128)),l.handlerVisible?(D(),q(Ee,{key:0},[(D(!0),q(Ee,null,qe(z(a),c=>(D(),Oe(gd,{class:"operate-resize-handler",key:c.direction,type:c.direction,rotate:l.elementInfo.rotate,style:Le(c.style),onMousedown:Ft(f=>l.scaleElement(f,l.elementInfo,c.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),k(l1,{class:"operate-rotate-handler",style:Le({left:i.value/2+"px"}),onMousedown:u[0]||(u[0]=Ft(c=>l.rotateElement(c,l.elementInfo),["stop"]))},null,8,["style"])],64)):Ye("",!0)]))}}),K9e={class:"common-element-operate"},G9e={inheritAttrs:!1},ER=We({...G9e,__name:"CommonElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(e){const t=e,{canvasScale:n}=Ve(pt()),r=Se(()=>t.elementInfo.width*n.value),i=Se(()=>t.elementInfo.height*n.value),{resizeHandlers:o,borderLines:a}=y0(r,i),s=Se(()=>["chart","video","audio"].includes(t.elementInfo.type));return(l,u)=>(D(),q("div",K9e,[(D(!0),q(Ee,null,qe(z(a),c=>(D(),Oe(A0,{class:"operate-border-line",key:c.type,type:c.type,style:Le(c.style)},null,8,["type","style"]))),128)),l.handlerVisible?(D(),q(Ee,{key:0},[(D(!0),q(Ee,null,qe(z(o),c=>(D(),Oe(gd,{class:"operate-resize-handler",key:c.direction,type:c.direction,rotate:l.elementInfo.rotate,style:Le(c.style),onMousedown:Ft(f=>l.scaleElement(f,l.elementInfo,c.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),s.value?Ye("",!0):(D(),Oe(l1,{key:0,class:"operate-rotate-handler",style:Le({left:r.value/2+"px"}),onMousedown:u[0]||(u[0]=Ft(c=>l.rotateElement(c,l.elementInfo),["stop"]))},null,8,["style"]))],64)):Ye("",!0)]))}}),Vee=()=>{const e=st(),{addHistorySnapshot:t}=nn();return{setLink:(i,o)=>{const a=/^(https?):\/\/[\w\-]+(\.[\w\-]+)+([\w\-.,@?^=%&:\/~+#]*[\w\-@?^=%&\/~+#])?$/;if(o.type==="web"&&!a.test(o.target))return pn.error("不是正确的网页链接地址"),!1;if(o.type==="slide"&&!o.target)return pn.error("请先选择链接目标"),!1;const s={link:o};return e.updateElement({id:i.id,props:s}),t(),!0},removeLink:i=>{e.removeElementProps({id:i.id,propName:"link"}),t()}}},z9e=We({__name:"Divider",props:{type:{default:"horizontal"},margin:{default:-1}},setup(e){return(t,n)=>(D(),q("div",{class:ze(["divider",t.type]),style:Le({margin:t.type==="horizontal"?`${t.margin>=0?t.margin:24}px 0`:`0 ${t.margin>=0?t.margin:8}px`})},null,6))}}),Ht=Be(z9e,[["__scopeId","data-v-80adabfa"]]),J9e=["href"],$9e={class:"btns"},j9e=We({__name:"LinkHandler",props:{elementInfo:{},link:{},openLinkDialog:{type:Function}},setup(e){const t=e,n=pt(),r=st(),{canvasScale:i}=Ve(n),{slides:o}=Ve(r),{removeLink:a}=Vee(),s=Se(()=>t.elementInfo.type==="line"?0:t.elementInfo.height),l=u=>{const c=o.value.findIndex(f=>f.id===u);c!==-1&&(n.setActiveElementIdList([]),r.updateSlideIndex(c))};return(u,c)=>(D(),q("div",{class:"link-handler",style:Le({top:s.value*z(i)+10+"px"})},[u.link.type==="web"?(D(),q("a",{key:0,class:"link",href:u.link.target,target:"_blank"},dt(u.link.target),9,J9e)):(D(),q("a",{key:1,class:"link",onClick:c[0]||(c[0]=f=>l(u.link.target))},"幻灯片页面 "+dt(u.link.target),1)),V("div",$9e,[V("div",{class:"btn",onClick:c[1]||(c[1]=f=>u.openLinkDialog())},"更换"),k(Ht,{type:"vertical"}),V("div",{class:"btn",onClick:c[2]||(c[2]=f=>z(a)(u.elementInfo))},"移除")])],4))}}),q9e=Be(j9e,[["__scopeId","data-v-821fa8e0"]]),eFe={key:1,class:"animation-index"},tFe=We({__name:"index",props:{elementInfo:{},isSelected:{type:Boolean},isActive:{type:Boolean},isActiveGroupElement:{type:Boolean},isMultiSelect:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function},dragLineElement:{type:Function},moveShapeKeypoint:{type:Function},openLinkDialog:{type:Function}},setup(e){const t=e,{canvasScale:n,toolbarState:r}=Ve(pt()),{formatedAnimations:i}=Ve(st()),o=Se(()=>({[Et.IMAGE]:M9e,[Et.TEXT]:_9e,[Et.SHAPE]:I9e,[Et.LINE]:Y9e,[Et.TABLE]:H9e,[Et.CHART]:ER,[Et.LATEX]:ER,[Et.VIDEO]:ER,[Et.AUDIO]:ER})[t.elementInfo.type]||null),a=Se(()=>{const u=[];for(let c=0;cd.elId).includes(t.elementInfo.id)&&u.push(c);return u}),s=Se(()=>"rotate"in t.elementInfo?t.elementInfo.rotate:0),l=Se(()=>"height"in t.elementInfo?t.elementInfo.height:0);return(u,c)=>(D(),q("div",{class:ze(["operate",{"multi-select":u.isMultiSelect&&!u.isActive}]),style:Le({top:u.elementInfo.top*z(n)+"px",left:u.elementInfo.left*z(n)+"px",transform:`rotate(${s.value}deg)`,transformOrigin:`${u.elementInfo.width*z(n)/2}px ${l.value*z(n)/2}px`})},[u.isSelected?(D(),Oe(xu(o.value),{key:0,elementInfo:u.elementInfo,handlerVisible:!u.elementInfo.lock&&(u.isActiveGroupElement||!u.isMultiSelect),rotateElement:u.rotateElement,scaleElement:u.scaleElement,dragLineElement:u.dragLineElement,moveShapeKeypoint:u.moveShapeKeypoint},null,8,["elementInfo","handlerVisible","rotateElement","scaleElement","dragLineElement","moveShapeKeypoint"])):Ye("",!0),z(r)==="elAnimation"&&a.value.length?(D(),q("div",eFe,[(D(!0),q(Ee,null,qe(a.value,f=>(D(),q("div",{class:"index-item",key:f},dt(f+1),1))),128))])):Ye("",!0),u.isActive&&u.elementInfo.link?(D(),Oe(q9e,{key:2,elementInfo:u.elementInfo,link:u.elementInfo.link,openLinkDialog:u.openLinkDialog,onMousedown:c[0]||(c[0]=Ft(()=>{},["stop"]))},null,8,["elementInfo","link","openLinkDialog"])):Ye("",!0)],6))}}),nFe=Be(tFe,[["__scopeId","data-v-7c6be7e7"]]),rFe=["src"],iFe=We({__name:"BaseImageElement",props:{elementInfo:{}},setup(e){const t=e,n=Se(()=>t.elementInfo.shadow),{shadowStyle:r}=hd(n),i=Se(()=>t.elementInfo.flipH),o=Se(()=>t.elementInfo.flipV),{flipStyle:a}=m3(i,o),s=Se(()=>t.elementInfo),{clipShape:l,imgPosition:u}=kk(s),c=Se(()=>t.elementInfo.filters),{filter:f}=Mz(c);return(d,h)=>(D(),q("div",{class:"base-element-image",style:Le({top:d.elementInfo.top+"px",left:d.elementInfo.left+"px",width:d.elementInfo.width+"px",height:d.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:Le({transform:`rotate(${d.elementInfo.rotate}deg)`})},[V("div",{class:"element-content",style:Le({filter:z(r)?`drop-shadow(${z(r)})`:"",transform:z(a)})},[k(Lz,{elementInfo:d.elementInfo},null,8,["elementInfo"]),V("div",{class:"image-content",style:Le({clipPath:z(l).style})},[V("img",{src:d.elementInfo.src,draggable:!1,style:Le({top:z(u).top,left:z(u).left,width:z(u).width,height:z(u).height,filter:z(f)}),alt:""},null,12,rFe),d.elementInfo.colorMask?(D(),q("div",{key:0,class:"color-mask",style:Le({backgroundColor:d.elementInfo.colorMask})},null,4)):Ye("",!0)],4)],4)],4)],4))}}),Dee=Be(iFe,[["__scopeId","data-v-67c9bdc0"]]),oFe=["innerHTML"],aFe=We({__name:"BaseTextElement",props:{elementInfo:{},target:{}},setup(e){const t=e,n=Se(()=>t.elementInfo.shadow),{shadowStyle:r}=hd(n);return(i,o)=>(D(),q("div",{class:"base-element-text",style:Le({top:i.elementInfo.top+"px",left:i.elementInfo.left+"px",width:i.elementInfo.width+"px",height:i.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:Le({transform:`rotate(${i.elementInfo.rotate}deg)`})},[V("div",{class:"element-content",style:Le({width:i.elementInfo.vertical?"auto":i.elementInfo.width+"px",height:i.elementInfo.vertical?i.elementInfo.height+"px":"auto",backgroundColor:i.elementInfo.fill,opacity:i.elementInfo.opacity,textShadow:z(r),lineHeight:i.elementInfo.lineHeight,letterSpacing:(i.elementInfo.wordSpace||0)+"px",color:i.elementInfo.defaultColor,fontFamily:i.elementInfo.defaultFontName,writingMode:i.elementInfo.vertical?"vertical-rl":"horizontal-tb"})},[k(y3,{width:i.elementInfo.width,height:i.elementInfo.height,outline:i.elementInfo.outline},null,8,["width","height","outline"]),V("div",{class:ze(["text ProseMirror-static",{thumbnail:i.target==="thumbnail"}]),style:Le({"--paragraphSpace":`${i.elementInfo.paragraphSpace===void 0?5:i.elementInfo.paragraphSpace}px`}),innerHTML:i.elementInfo.content},null,14,oFe)],4)],4)],4))}}),Uee=Be(aFe,[["__scopeId","data-v-a3ec163d"]]),sFe=["width","height"],lFe={key:0},uFe=["transform"],cFe=["d","fill","stroke","stroke-width","stroke-dasharray"],fFe=["innerHTML"],dFe=We({__name:"BaseShapeElement",props:{elementInfo:{}},setup(e){const t=e,n=Se(()=>t.elementInfo.outline),{outlineWidth:r,outlineColor:i,strokeDashArray:o}=t1(n),a=Se(()=>t.elementInfo.shadow),{shadowStyle:s}=hd(a),l=Se(()=>t.elementInfo.flipH),u=Se(()=>t.elementInfo.flipV),{flipStyle:c}=m3(l,u),f=Se(()=>{const d={content:"",defaultFontName:"",defaultColor:"#000",align:"middle"};return t.elementInfo.text?t.elementInfo.text:d});return(d,h)=>(D(),q("div",{class:"base-element-shape",style:Le({top:d.elementInfo.top+"px",left:d.elementInfo.left+"px",width:d.elementInfo.width+"px",height:d.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:Le({transform:`rotate(${d.elementInfo.rotate}deg)`})},[V("div",{class:"element-content",style:Le({opacity:d.elementInfo.opacity,filter:z(s)?`drop-shadow(${z(s)})`:"",transform:z(c),color:f.value.defaultColor,fontFamily:f.value.defaultFontName})},[(D(),q("svg",{overflow:"visible",width:d.elementInfo.width,height:d.elementInfo.height},[d.elementInfo.gradient?(D(),q("defs",lFe,[k(SJ,{id:`base-gradient-${d.elementInfo.id}`,type:d.elementInfo.gradient.type,colors:d.elementInfo.gradient.colors,rotate:d.elementInfo.gradient.rotate},null,8,["id","type","colors","rotate"])])):Ye("",!0),V("g",{transform:`scale(${d.elementInfo.width/d.elementInfo.viewBox[0]}, ${d.elementInfo.height/d.elementInfo.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`},[V("path",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",d:d.elementInfo.path,fill:d.elementInfo.gradient?`url(#base-gradient-${d.elementInfo.id})`:d.elementInfo.fill||"none",stroke:z(i),"stroke-width":z(r),"stroke-dasharray":z(o)},null,8,cFe)],8,uFe)],8,sFe)),V("div",{class:ze(["shape-text",f.value.align])},[V("div",{class:"ProseMirror-static",innerHTML:f.value.content},null,8,fFe)],2)],4)],4)],4))}}),Bee=Be(dFe,[["__scopeId","data-v-2215d86e"]]),hFe=["width","height"],pFe=["d","stroke","stroke-width","stroke-dasharray","marker-start","marker-end"],vFe=We({__name:"BaseLineElement",props:{elementInfo:{}},setup(e){const t=e,n=Se(()=>t.elementInfo.shadow),{shadowStyle:r}=hd(n),i=Se(()=>{const l=Math.abs(t.elementInfo.start[0]-t.elementInfo.end[0]);return l<24?24:l}),o=Se(()=>{const l=Math.abs(t.elementInfo.start[1]-t.elementInfo.end[1]);return l<24?24:l}),a=Se(()=>{const l=t.elementInfo.width;return t.elementInfo.style==="dashed"?l<=8?`${l*5} ${l*2.5}`:`${l*5} ${l*1.5}`:t.elementInfo.style==="dotted"?l<=8?`${l*1.8} ${l*1.6}`:`${l*1.5} ${l*1.2}`:"0 0"}),s=Se(()=>ek(t.elementInfo));return(l,u)=>(D(),q("div",{class:"base-element-line",style:Le({top:l.elementInfo.top+"px",left:l.elementInfo.left+"px"})},[V("div",{class:"element-content",style:Le({filter:z(r)?`drop-shadow(${z(r)})`:""})},[(D(),q("svg",{overflow:"visible",width:i.value,height:o.value},[V("defs",null,[l.elementInfo.points[0]?(D(),Oe(zf,{key:0,id:l.elementInfo.id,position:"start",type:l.elementInfo.points[0],color:l.elementInfo.color,baseSize:l.elementInfo.width},null,8,["id","type","color","baseSize"])):Ye("",!0),l.elementInfo.points[1]?(D(),Oe(zf,{key:1,id:l.elementInfo.id,position:"end",type:l.elementInfo.points[1],color:l.elementInfo.color,baseSize:l.elementInfo.width},null,8,["id","type","color","baseSize"])):Ye("",!0)]),V("path",{d:s.value,stroke:l.elementInfo.color,"stroke-width":l.elementInfo.width,"stroke-dasharray":a.value,fill:"none","marker-start":l.elementInfo.points[0]?`url(#${l.elementInfo.id}-${l.elementInfo.points[0]}-start)`:"","marker-end":l.elementInfo.points[1]?`url(#${l.elementInfo.id}-${l.elementInfo.points[1]}-end)`:""},null,8,pFe)],8,hFe))],4)],4))}}),Yee=Be(vFe,[["__scopeId","data-v-833e88cd"]]),gFe=We({__name:"BaseChartElement",props:{elementInfo:{},target:{}},setup(e){return(t,n)=>(D(),q("div",{class:ze(["base-element-chart",{"is-thumbnail":t.target==="thumbnail"}]),style:Le({top:t.elementInfo.top+"px",left:t.elementInfo.left+"px",width:t.elementInfo.width+"px",height:t.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:Le({transform:`rotate(${t.elementInfo.rotate}deg)`})},[V("div",{class:"element-content",style:Le({backgroundColor:t.elementInfo.fill})},[k(y3,{width:t.elementInfo.width,height:t.elementInfo.height,outline:t.elementInfo.outline},null,8,["width","height","outline"]),k(Mee,{width:t.elementInfo.width,height:t.elementInfo.height,type:t.elementInfo.chartType,data:t.elementInfo.data,themeColors:t.elementInfo.themeColors,textColor:t.elementInfo.textColor,options:t.elementInfo.options},null,8,["width","height","type","data","themeColors","textColor","options"])],4)],4)],6))}}),Zee=Be(gFe,[["__scopeId","data-v-5a1fd6e3"]]),mFe=["width"],yFe=["rowspan","colspan"],AFe=["innerHTML"],RFe=We({__name:"StaticTable",props:{data:{},width:{},cellMinHeight:{},colWidths:{},outline:{},theme:{},editable:{type:Boolean,default:!0}},setup(e){const t=e,n=he([]),r=Se(()=>n.value.reduce((l,u)=>l+u));Tt([()=>t.colWidths,()=>t.width],()=>{n.value=t.colWidths.map(l=>l*t.width)},{immediate:!0});const i=Se(()=>t.data),{hideCells:o}=Oee(i),a=Se(()=>t.theme),{subThemeColor:s}=kee(a);return(l,u)=>{var c,f,d,h,p;return D(),q("div",{class:"static-table",style:Le({width:r.value+"px"})},[V("table",{class:ze({theme:a.value,"row-header":(c=a.value)==null?void 0:c.rowHeader,"row-footer":(f=a.value)==null?void 0:f.rowFooter,"col-header":(d=a.value)==null?void 0:d.colHeader,"col-footer":(h=a.value)==null?void 0:h.colFooter}),style:Le(`--themeColor: ${(p=a.value)==null?void 0:p.color}; --subThemeColor1: ${z(s)[0]}; --subThemeColor2: ${z(s)[1]}`)},[V("colgroup",null,[(D(!0),q(Ee,null,qe(n.value,(v,g)=>(D(),q("col",{span:"1",key:g,width:v},null,8,mFe))),128))]),V("tbody",null,[(D(!0),q(Ee,null,qe(l.data,(v,g)=>(D(),q("tr",{key:g,style:Le({height:l.cellMinHeight+"px"})},[(D(!0),q(Ee,null,qe(v,(m,y)=>Ge((D(),q("td",{class:"cell",style:Le({borderStyle:l.outline.style,borderColor:l.outline.color,borderWidth:l.outline.width+"px",...z(Tee)(m.style)}),key:m.id,rowspan:m.rowspan,colspan:m.colspan},[V("div",{class:"cell-text",style:Le({minHeight:l.cellMinHeight-4+"px"}),innerHTML:z(_ee)(m.text)},null,12,AFe)],12,yFe)),[[hc,!z(o).includes(`${g}_${y}`)]])),128))],4))),128))])],6)],4)}}}),bFe=Be(RFe,[["__scopeId","data-v-6d887dcd"]]),xFe={class:"element-content"},SFe=We({__name:"BaseTableElement",props:{elementInfo:{}},setup(e){return(t,n)=>(D(),q("div",{class:"base-element-table",style:Le({top:t.elementInfo.top+"px",left:t.elementInfo.left+"px",width:t.elementInfo.width+"px"})},[V("div",{class:"rotate-wrapper",style:Le({transform:`rotate(${t.elementInfo.rotate}deg)`})},[V("div",xFe,[k(bFe,{data:t.elementInfo.data,width:t.elementInfo.width,cellMinHeight:t.elementInfo.cellMinHeight,colWidths:t.elementInfo.colWidths,outline:t.elementInfo.outline,theme:t.elementInfo.theme},null,8,["data","width","cellMinHeight","colWidths","outline","theme"])])],4)],4))}}),Qee=Be(SFe,[["__scopeId","data-v-77cfa6e4"]]),wFe={class:"element-content"},MFe=["width","height","stroke","stroke-width"],LFe=["transform"],TFe=["d"],_Fe=We({__name:"BaseLatexElement",props:{elementInfo:{}},setup(e){return(t,n)=>(D(),q("div",{class:"base-element-latex",style:Le({top:t.elementInfo.top+"px",left:t.elementInfo.left+"px",width:t.elementInfo.width+"px",height:t.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:Le({transform:`rotate(${t.elementInfo.rotate}deg)`})},[V("div",wFe,[(D(),q("svg",{overflow:"visible",width:t.elementInfo.width,height:t.elementInfo.height,stroke:t.elementInfo.color,"stroke-width":t.elementInfo.strokeWidth,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[V("g",{transform:`scale(${t.elementInfo.width/t.elementInfo.viewBox[0]}, ${t.elementInfo.height/t.elementInfo.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`},[V("path",{d:t.elementInfo.path},null,8,TFe)],8,LFe)],8,MFe))])],4)],4))}}),Hee=Be(_Fe,[["__scopeId","data-v-93374af9"]]),OFe=We({__name:"BaseVideoElement",props:{elementInfo:{}},setup(e){return(t,n)=>{const r=xe("IconPlayOne");return D(),q("div",{class:"base-element-video",style:Le({top:t.elementInfo.top+"px",left:t.elementInfo.left+"px",width:t.elementInfo.width+"px",height:t.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:Le({transform:`rotate(${t.elementInfo.rotate}deg)`})},[V("div",{class:"element-content",style:Le({backgroundImage:t.elementInfo.poster?`url(${t.elementInfo.poster})`:""})},[k(r,{class:"icon"})],4)],4)],4)}}}),kFe=Be(OFe,[["__scopeId","data-v-2fb0e771"]]),PFe={class:"element-content"},CFe=We({__name:"BaseAudioElement",props:{elementInfo:{}},setup(e){const t=e,n=Se(()=>Math.min(t.elementInfo.width,t.elementInfo.height)+"px");return(r,i)=>{const o=xe("IconVolumeNotice");return D(),q("div",{class:"base-element-audio",style:Le({top:r.elementInfo.top+"px",left:r.elementInfo.left+"px",width:r.elementInfo.width+"px",height:r.elementInfo.height+"px"})},[V("div",{class:"rotate-wrapper",style:Le({transform:`rotate(${r.elementInfo.rotate}deg)`})},[V("div",PFe,[k(o,{class:"audio-icon",style:Le({fontSize:n.value,color:r.elementInfo.color})},null,8,["style"])])],4)],4)}}}),IFe=Be(CFe,[["__scopeId","data-v-b33e6120"]]),NFe=We({__name:"ThumbnailElement",props:{elementInfo:{},elementIndex:{}},setup(e){const t=e,n=Se(()=>({[Et.IMAGE]:Dee,[Et.TEXT]:Uee,[Et.SHAPE]:Bee,[Et.LINE]:Yee,[Et.CHART]:Zee,[Et.TABLE]:Qee,[Et.LATEX]:Hee,[Et.VIDEO]:kFe,[Et.AUDIO]:IFe})[t.elementInfo.type]||null);return(r,i)=>(D(),q("div",{class:ze(["base-element",`base-element-${r.elementInfo.id}`]),style:Le({zIndex:r.elementIndex})},[(D(),Oe(xu(n.value),{elementInfo:r.elementInfo,target:"thumbnail"},null,8,["elementInfo"]))],6))}}),FFe={key:1,class:"placeholder"},EFe=We({__name:"index",props:{slide:{},size:{},visible:{type:Boolean,default:!0}},setup(e){const t=e,{viewportRatio:n,viewportSize:r}=Ve(st()),i=Se(()=>t.slide.background),{backgroundStyle:o}=e4(i),a=Se(()=>t.size/r.value);return l0(iy,a),(s,l)=>(D(),q("div",{class:"thumbnail-slide",style:Le({width:s.size+"px",height:s.size*z(n)+"px"})},[s.visible?(D(),q("div",{key:0,class:"elements",style:Le({width:z(r)+"px",height:z(r)*z(n)+"px",transform:`scale(${a.value})`})},[V("div",{class:"background",style:Le(z(o))},null,4),(D(!0),q(Ee,null,qe(s.slide.elements,(u,c)=>(D(),Oe(NFe,{key:u.id,elementInfo:u,elementIndex:c+1},null,8,["elementInfo","elementIndex"]))),128))],4)):(D(),q("div",FFe,"加载中 ..."))],4))}}),vl=Be(EFe,[["__scopeId","data-v-c8cdb1af"]]),XFe=["onClick"],WFe=We({__name:"Tabs",props:{value:{},tabs:{},card:{type:Boolean,default:!1},tabsStyle:{},tabStyle:{},spaceAround:{type:Boolean,default:!1},spaceBetween:{type:Boolean,default:!1}},emits:["update:value"],setup(e,{emit:t}){const n=t;return(r,i)=>(D(),q("div",{class:ze(["tabs",{card:r.card,"space-around":r.spaceAround,"space-between":r.spaceBetween}]),style:Le(r.tabsStyle||{})},[(D(!0),q(Ee,null,qe(r.tabs,o=>(D(),q("div",{class:ze(["tab",{active:o.key===r.value}]),key:o.key,style:Le({...r.tabStyle||{},"--color":o.color}),onClick:a=>n("update:value",o.key)},dt(o.label),15,XFe))),128))],6))}}),gl=Be(WFe,[["__scopeId","data-v-c7f9dce0"]]),VFe=We({__name:"Button",props:{checked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{default:"default"},size:{default:"normal"},first:{type:Boolean,default:!1},last:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const n=e,r=t,i=()=>{n.disabled||r("click")};return(o,a)=>(D(),q("button",{class:ze(["button",{disabled:o.disabled,checked:!o.disabled&&o.checked,default:!o.disabled&&o.type==="default",primary:!o.disabled&&o.type==="primary",checkbox:!o.disabled&&o.type==="checkbox",radio:!o.disabled&&o.type==="radio",small:o.size==="small",first:o.first,last:o.last}]),onClick:a[0]||(a[0]=s=>i())},[ar(o.$slots,"default",{},void 0,!0)],2))}}),et=Be(VFe,[["__scopeId","data-v-3a484f58"]]),DFe={key:0,class:"select-wrap"},UFe={class:"selector"},BFe={class:"icon"},YFe=["onClick"],ZFe={class:"selector"},QFe={class:"icon"},HFe=We({__name:"Select",props:{value:{},options:{},disabled:{type:Boolean,default:!1},search:{type:Boolean,default:!1},searchLabel:{default:"搜索"}},emits:["update:value"],setup(e,{emit:t}){const n=e,r=t,i=he(!1),o=he(),a=he(),s=he(0),l=he(""),u=Se(()=>{var p;return((p=n.options.find(v=>v.value===n.value))==null?void 0:p.label)||n.value}),c=Se(()=>{if(!n.search||!l.value.trim())return n.options;const p=n.options.filter(v=>v.label.toLowerCase().indexOf(l.value.toLowerCase())!==-1);return p.length?p:n.options});Tt(i,()=>{i.value?Rr(()=>{a.value&&a.value.focus()}):l.value=""}),s0(()=>{l.value=""});const f=()=>{o.value&&(s.value=o.value.clientWidth)},d=new ResizeObserver(f);Vt(()=>{o.value&&d.observe(o.value)}),En(()=>{o.value&&d.unobserve(o.value)});const h=p=>{p.disabled||(r("update:value",p.value),i.value=!1)};return(p,v)=>{const g=xe("IconDown");return p.disabled?(D(),q("div",DFe,[V("div",{class:"select disabled",ref_key:"selectRef",ref:o},[V("div",UFe,dt(p.value),1),V("div",BFe,[ar(p.$slots,"icon",{},()=>[k(g,{size:14})],!0)])],512)])):(D(),Oe(Nt,{key:1,class:"select-wrap",trigger:"click",value:i.value,"onUpdate:value":v[1]||(v[1]=m=>i.value=m),placement:"bottom",contentStyle:{padding:0,boxShadow:"0 6px 16px 0 rgba(0, 0, 0, 0.08)"}},{content:ie(()=>[p.search?(D(),q(Ee,{key:0},[k(pu,{ref_key:"searchInputRef",ref:a,simple:"",placeholder:p.searchLabel,value:l.value,"onUpdate:value":v[0]||(v[0]=m=>l.value=m),style:Le({width:s.value+2+"px"})},null,8,["placeholder","value","style"]),k(Ht,{margin:0})],64)):Ye("",!0),V("div",{class:"options",style:Le({width:s.value+2+"px"})},[(D(!0),q(Ee,null,qe(c.value,m=>(D(),q("div",{class:ze(["option",{disabled:m.disabled,selected:m.value===p.value}]),key:m.value,onClick:y=>h(m)},dt(m.label),11,YFe))),128))],4)]),default:ie(()=>[V("div",{class:"select",ref_key:"selectRef",ref:o},[V("div",ZFe,dt(u.value),1),V("div",QFe,[ar(p.$slots,"icon",{},()=>[k(g,{size:14})],!0)])],512)]),_:3},8,["value"]))}}}),Vr=Be(HFe,[["__scopeId","data-v-eb1f268a"]]),KFe=e=>(rn("data-v-853e5bc2"),e=e(),on(),e),GFe={class:"link-dialog"},zFe={key:2,class:"preview"},JFe=KFe(()=>V("div",null,"预览:",-1)),$Fe={class:"btns"},jFe=We({__name:"LinkDialog",emits:["close"],setup(e,{emit:t}){var p;const n=t,{handleElement:r}=Ve(pt()),{slides:i,currentSlide:o}=Ve(st()),a=he("web"),s=he(""),l=he(""),u=Se(()=>i.value.map((v,g)=>({label:`幻灯片 ${g+1}`,value:v.id,disabled:o.value.id===v.id})));l.value=((p=i.value.find(v=>v.id!==o.value.id))==null?void 0:p.id)||"";const c=Se(()=>l.value&&i.value.find(v=>v.id===l.value)||null),f=[{key:"web",label:"网页链接"},{key:"slide",label:"幻灯片页面"}],{setLink:d}=Vee();Vt(()=>{var v;(v=r.value)!=null&&v.link&&(r.value.link.type==="web"?s.value=r.value.link.target:r.value.link.type==="slide"&&(l.value=r.value.link.target),a.value=r.value.link.type)});const h=()=>{const v={type:a.value,target:a.value==="web"?s.value:l.value};r.value&&(d(r.value,v)?n("close"):s.value="")};return(v,g)=>(D(),q("div",GFe,[k(gl,{tabs:f,value:a.value,"onUpdate:value":g[0]||(g[0]=m=>a.value=m),tabsStyle:{marginBottom:"20px"}},null,8,["value"]),a.value==="web"?(D(),Oe(pu,{key:0,class:"input",value:s.value,"onUpdate:value":g[1]||(g[1]=m=>s.value=m),placeholder:"请输入网页链接地址"},null,8,["value"])):Ye("",!0),a.value==="slide"?(D(),Oe(Vr,{key:1,class:"input",value:l.value,"onUpdate:value":g[2]||(g[2]=m=>l.value=m),options:u.value},null,8,["value","options"])):Ye("",!0),a.value==="slide"&&c.value?(D(),q("div",zFe,[JFe,k(vl,{class:"thumbnail",slide:c.value,size:500},null,8,["slide"])])):Ye("",!0),V("div",$Fe,[k(et,{onClick:g[3]||(g[3]=m=>n("close")),style:{"margin-right":"10px"}},{default:ie(()=>[Ue("取消")]),_:1}),k(et,{type:"primary",onClick:g[4]||(g[4]=m=>h())},{default:ie(()=>[Ue("确认")]),_:1})])]))}}),qFe=Be(jFe,[["__scopeId","data-v-853e5bc2"]]),eEe=We({__name:"Modal",props:{visible:{type:Boolean},width:{default:480},closeButton:{type:Boolean,default:!1},closeOnClickMask:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},contentStyle:{}},emits:["update:visible","closed"],setup(e,{emit:t}){const{IconClose:n}=yx,r=e,i=he(),o=t,a=he(!1),s=Se(()=>({width:r.width+"px",...r.contentStyle||{}}));Tt(()=>r.visible,()=>{r.visible&&Rr(()=>i.value.focus())});const l=()=>{o("update:visible",!1),o("closed")},u=()=>{r.visible&&r.closeOnEsc&&l()},c=()=>{r.closeOnClickMask&&l()};return(f,d)=>(D(),Oe(bO,{to:"body"},[k(Qh,{name:"modal-fade"},{default:ie(()=>[Ge(V("div",{class:"modal",ref_key:"modalRef",ref:i,tabindex:"-1",onKeyup:d[4]||(d[4]=hl(h=>u(),["esc"]))},[V("div",{class:"mask",onClick:d[0]||(d[0]=h=>c())}),k(Qh,{name:"modal-zoom",onAfterLeave:d[2]||(d[2]=h=>a.value=!1),onBeforeEnter:d[3]||(d[3]=h=>a.value=!0)},{default:ie(()=>[Ge(V("div",{class:"modal-content",style:Le(s.value)},[f.closeButton?(D(),q("span",{key:0,class:"close-btn",onClick:d[1]||(d[1]=h=>l())},[k(z(n))])):Ye("",!0),a.value?ar(f.$slots,"default",{key:1},void 0,!0):Ye("",!0)],4),[[hc,f.visible]])]),_:3})],544),[[hc,f.visible]])]),_:3})]))}}),i0=Be(eEe,[["__scopeId","data-v-4d27bcca"]]),tEe={class:"operates"},nEe={key:2,class:"drag-mask"},rEe=We({__name:"index",setup(e){const t=pt(),{activeElementIdList:n,activeGroupElementId:r,handleElementId:i,hiddenElementIdList:o,editorAreaFocus:a,gridLineSize:s,showRuler:l,creatingElement:u,creatingCustomShape:c,canvasScale:f,textFormatPainter:d}=Ve(t),{currentSlide:h}=Ve(st()),{ctrlKeyState:p,spaceKeyState:v}=Ve(Ns()),g=he(),m=he([]),y=he(!1),R=()=>y.value=!0;Tt(i,()=>{t.setActiveGroupElementId("")});const A=he([]);Bv(()=>{A.value=h.value?JSON.parse(JSON.stringify(h.value.elements)):[]});const S=he(),{dragViewport:L,viewportStyles:M}=jSe(S);e3e(S);const{mouseSelection:w,mouseSelectionVisible:_,mouseSelectionQuadrant:C,updateMouseSelection:O}=qSe(A,g),{dragElement:N}=Sz(A,m,f),{dragLineElement:P}=r3e(A),{selectElement:F}=n3e(A,N),{scaleElement:I,scaleMultiElement:W}=xz(A,m,f),{rotateElement:U}=Rz(A,g,f),{moveShapeKeypoint:Z}=i3e(A,f),{selectAllElements:ee}=r3(),{deleteAllElements:B}=K2(),{pasteElement:Y}=ik(),{enterScreeningFromStart:Q}=cd(),{updateSlideIndex:K}=Ac(),{createTextElement:te,createShapeElement:J}=d0();Vt(()=>{n.value.length&&Rr(()=>t.setActiveElementIdList([]))});const de=ae=>{n.value.length&&t.setActiveElementIdList([]),v.value?L(ae):O(ae),a.value||t.setEditorareaFocus(!0),d.value&&t.setTextFormatPainter(null),$Se()},G=ae=>{if(n.value.length||u.value||c.value||!g.value)return;const ve=g.value.getBoundingClientRect(),fe=(ae.pageX-ve.x)/f.value,ge=(ae.pageY-ve.y)/f.value;te({left:fe,top:ge,width:200/f.value,height:0})};En(()=>{d.value&&t.setTextFormatPainter(null)});const Ae=()=>{a.value&&t.setEditorareaFocus(!1)},{scaleCanvas:ue}=ak(),ce=Qn.throttle(ue,100,{leading:!0,trailing:!1}),le=Qn.throttle(K,300,{leading:!0,trailing:!1}),$=ae=>{ae.preventDefault(),p.value?ae.deltaY>0?ce("-"):ae.deltaY<0&&ce("+"):ae.deltaY>0?le(yt.DOWN):ae.deltaY<0&&le(yt.UP)},X=()=>{t.setRulerState(!l.value)},{insertElementFromCreateSelection:j,formatCreateSelection:se}=o3e(g),ne=ae=>{const{start:ve,end:fe,path:ge,viewBox:Re}=ae,Xe=se({start:ve,end:fe});if(Xe){const Ne={};ae.fill&&(Ne.fill=ae.fill),ae.outline&&(Ne.outline=ae.outline),J(Xe,{path:ge,viewBox:Re},Ne)}t.setCreatingCustomShapeState(!1)},re=()=>[{text:"粘贴",subText:"Ctrl + V",handler:Y},{text:"全选",subText:"Ctrl + A",handler:ee},{text:"标尺",subText:l.value?"√":"",handler:X},{text:"网格线",handler:()=>t.setGridLineSize(s.value?0:50),children:[{text:"无",subText:s.value===0?"√":"",handler:()=>t.setGridLineSize(0)},{text:"小",subText:s.value===25?"√":"",handler:()=>t.setGridLineSize(25)},{text:"中",subText:s.value===50?"√":"",handler:()=>t.setGridLineSize(50)},{text:"大",subText:s.value===100?"√":"",handler:()=>t.setGridLineSize(100)}]},{text:"重置当前页",handler:B},{divider:!0},{text:"幻灯片放映",subText:"F5",handler:Q}];return l0(iy,f),(ae,ve)=>{const fe=_n("contextmenu"),ge=_n("click-outside");return Ge((D(),q("div",{class:"canvas",ref_key:"canvasRef",ref:S,onWheel:ve[4]||(ve[4]=Re=>$(Re)),onMousedown:ve[5]||(ve[5]=Re=>de(Re)),onDblclick:ve[6]||(ve[6]=Re=>G(Re))},[z(u)?(D(),Oe(f9e,{key:0,onCreated:ve[0]||(ve[0]=Re=>z(j)(Re))})):Ye("",!0),z(c)?(D(),Oe(v9e,{key:1,onCreated:ve[1]||(ve[1]=Re=>ne(Re))})):Ye("",!0),V("div",{class:"viewport-wrapper",style:Le({width:z(M).width*z(f)+"px",height:z(M).height*z(f)+"px",left:z(M).left+"px",top:z(M).top+"px"})},[V("div",tEe,[(D(!0),q(Ee,null,qe(m.value,(Re,Xe)=>(D(),Oe(Wee,{key:Xe,type:Re.type,axis:Re.axis,length:Re.length,canvasScale:z(f)},null,8,["type","axis","length","canvasScale"]))),128)),z(n).length>1?(D(),Oe(A9e,{key:0,elementList:A.value,scaleMultiElement:z(W)},null,8,["elementList","scaleMultiElement"])):Ye("",!0),(D(!0),q(Ee,null,qe(A.value,Re=>Ge((D(),Oe(nFe,{key:Re.id,elementInfo:Re,isSelected:z(n).includes(Re.id),isActive:z(i)===Re.id,isActiveGroupElement:z(r)===Re.id,isMultiSelect:z(n).length>1,rotateElement:z(U),scaleElement:z(I),openLinkDialog:R,dragLineElement:z(P),moveShapeKeypoint:z(Z)},null,8,["elementInfo","isSelected","isActive","isActiveGroupElement","isMultiSelect","rotateElement","scaleElement","dragLineElement","moveShapeKeypoint"])),[[hc,!z(o).includes(Re.id)]])),128)),k(t9e)]),V("div",{class:"viewport",ref_key:"viewportRef",ref:g,style:Le({transform:`scale(${z(f)})`})},[z(_)?(D(),Oe(z7e,{key:0,top:z(w).top,left:z(w).left,width:z(w).width,height:z(w).height,quadrant:z(C)},null,8,["top","left","width","height","quadrant"])):Ye("",!0),(D(!0),q(Ee,null,qe(A.value,(Re,Xe)=>Ge((D(),Oe(K7e,{key:Re.id,elementInfo:Re,elementIndex:Xe+1,isMultiSelect:z(n).length>1,selectElement:z(F),openLinkDialog:R},null,8,["elementInfo","elementIndex","isMultiSelect","selectElement"])),[[hc,!z(o).includes(Re.id)]])),128))],4)],4),z(v)?(D(),q("div",nEe)):Ye("",!0),z(l)?(D(),Oe(s9e,{key:3,viewportStyles:z(M),elementList:A.value},null,8,["viewportStyles","elementList"])):Ye("",!0),k(i0,{visible:y.value,"onUpdate:visible":ve[3]||(ve[3]=Re=>y.value=Re),width:540},{default:ie(()=>[k(qFe,{onClose:ve[2]||(ve[2]=Re=>y.value=!1)})]),_:1},8,["visible"])],32)),[[fe,re],[ge,Ae]])}}}),iEe=Be(rEe,[["__scopeId","data-v-904dbab0"]]),oEe={class:"shape-item-thumbnail"},aEe={class:"shape-content"},sEe={overflow:"visible",width:"18",height:"18"},lEe=["transform"],uEe=["fill","stroke","d"],cEe=We({__name:"ShapeItemThumbnail",props:{shape:{}},setup(e){return(t,n)=>(D(),q("div",oEe,[V("div",aEe,[(D(),q("svg",sEe,[V("g",{transform:`scale(${18/t.shape.viewBox[0]}, ${18/t.shape.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`},[V("path",{class:ze(["shape-path",{outlined:t.shape.outlined}]),"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:t.shape.outlined?"#999":"transparent",stroke:t.shape.outlined?"transparent":"#999","stroke-width":"2",d:t.shape.path},null,10,uEe)],8,lEe)]))])]))}}),Kee=Be(cEe,[["__scopeId","data-v-2896ae03"]]),fEe={class:"shape-pool"},dEe={class:"category-name"},hEe={class:"shape-list"},pEe=We({__name:"ShapePool",emits:["select"],setup(e,{emit:t}){const n=t,r=i=>{n("select",i)};return(i,o)=>(D(),q("div",fEe,[(D(!0),q(Ee,null,qe(z(tk),a=>(D(),q("div",{class:"category",key:a.type},[V("div",dEe,dt(a.type),1),V("div",hEe,[(D(!0),q(Ee,null,qe(a.children,(s,l)=>(D(),Oe(Kee,{class:"shape-item",key:l,shape:s,onClick:u=>r(s)},null,8,["shape","onClick"]))),128))])]))),128))]))}}),vEe=Be(pEe,[["__scopeId","data-v-d92f642a"]]),gEe=[{type:"直线",children:[{path:"M 0 0 L 20 20",style:"solid",points:["",""]},{path:"M 0 0 L 20 20",style:"dashed",points:["",""]},{path:"M 0 0 L 20 20",style:"solid",points:["","arrow"]},{path:"M 0 0 L 20 20",style:"dashed",points:["","arrow"]},{path:"M 0 0 L 20 20",style:"solid",points:["","dot"]}]},{type:"折线、曲线",children:[{path:"M 0 0 L 0 20 L 20 20",style:"solid",points:["","arrow"],isBroken:!0},{path:"M 0 0 L 10 0 L 10 20 L 20 20",style:"solid",points:["","arrow"],isBroken2:!0},{path:"M 0 0 Q 0 20 20 20",style:"solid",points:["","arrow"],isCurve:!0},{path:"M 0 0 C 20 0 0 20 20 20",style:"solid",points:["","arrow"],isCubic:!0}]}],mEe={class:"line-pool"},yEe={class:"category-name"},AEe={class:"line-list"},REe=["onClick"],bEe={overflow:"visible",width:"20",height:"20"},xEe=["d","stroke-dasharray","marker-start","marker-end"],SEe=We({__name:"LinePool",emits:["select"],setup(e,{emit:t}){const n=t,r=i=>{n("select",i)};return(i,o)=>(D(),q("div",mEe,[(D(!0),q(Ee,null,qe(z(gEe),(a,s)=>(D(),q("div",{class:"category",key:a.type},[V("div",yEe,dt(a.type),1),V("div",AEe,[(D(!0),q(Ee,null,qe(a.children,(l,u)=>(D(),q("div",{class:"line-item",key:u},[V("div",{class:"line-content",onClick:c=>r(l)},[(D(),q("svg",bEe,[V("defs",null,[l.points[0]?(D(),Oe(zf,{key:0,class:"line-marker",id:`preset-line-${s}-${u}`,position:"start",type:l.points[0],color:"currentColor",baseSize:2},null,8,["id","type"])):Ye("",!0),l.points[1]?(D(),Oe(zf,{key:1,class:"line-marker",id:`preset-line-${s}-${u}`,position:"end",type:l.points[1],color:"currentColor",baseSize:2},null,8,["id","type"])):Ye("",!0)]),V("path",{class:"line-path",d:l.path,stroke:"currentColor",fill:"none","stroke-width":"2","stroke-dasharray":l.style==="solid"?"0, 0":"4, 1","marker-start":l.points[0]?`url(#${`preset-line-${s}-${u}`}-${l.points[0]}-start)`:"","marker-end":l.points[1]?`url(#${`preset-line-${s}-${u}`}-${l.points[1]}-end)`:""},null,8,xEe)]))],8,REe)]))),128))])]))),128))]))}}),wEe=Be(SEe,[["__scopeId","data-v-fd42a3c4"]]),MEe={class:"chart-pool"},LEe=["onClick"],TEe={class:"name"},_Ee=We({__name:"ChartPool",emits:["select"],setup(e,{emit:t}){const n=t,r=["bar","column","line","area","scatter","pie","ring","radar"],i=o=>{n("select",o)};return(o,a)=>{const s=xe("IconChartLine"),l=xe("IconChartHistogram"),u=xe("IconChartPie"),c=xe("IconChartHistogramOne"),f=xe("IconChartLineArea"),d=xe("IconChartRing"),h=xe("IconChartScatter"),p=xe("IconRadarChart");return D(),q("ul",MEe,[(D(),q(Ee,null,qe(r,(v,g)=>V("li",{class:"chart-item",key:g},[V("div",{class:"chart-content",onClick:m=>i(v)},[v==="line"?(D(),Oe(s,{key:0,size:"24"})):v==="bar"?(D(),Oe(l,{key:1,size:"24"})):v==="pie"?(D(),Oe(u,{key:2,size:"24"})):v==="column"?(D(),Oe(c,{key:3,size:"24"})):v==="area"?(D(),Oe(f,{key:4,size:"24"})):v==="ring"?(D(),Oe(d,{key:5,size:"24"})):v==="scatter"?(D(),Oe(h,{key:6,size:"24"})):v==="radar"?(D(),Oe(p,{key:7,size:"23"})):Ye("",!0),V("div",TEe,dt(z(_T)[v]),1)],8,LEe)])),64))])}}}),OEe=Be(_Ee,[["__scopeId","data-v-55770a5d"]]),Gee=e=>(rn("data-v-ba8ef208"),e=e(),on(),e),kEe={class:"prefix"},PEe={class:"input-wrap"},CEe=["disabled","placeholder"],IEe={class:"handlers"},NEe=Gee(()=>V("svg",{fill:"currentColor",width:"1em",height:"1em",viewBox:"64 64 896 896"},[V("path",{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"})],-1)),FEe=[NEe],EEe=Gee(()=>V("svg",{fill:"currentColor",width:"1em",height:"1em",viewBox:"64 64 896 896"},[V("path",{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"})],-1)),XEe=[EEe],WEe={class:"suffix"},VEe=We({__name:"NumberInput",props:{value:{},disabled:{type:Boolean,default:!1},placeholder:{default:""},min:{default:0},max:{default:1/0},step:{default:1}},emits:["update:value","input","change","blur","focus","enter"],setup(e,{emit:t}){const n=e,r=t,i=he(0),o=he(!1);Tt(()=>n.value,()=>{n.value!==i.value&&(i.value=n.value)},{immediate:!0}),Tt(i,()=>{const c=+i.value;if(!isNaN(c)){{if(c>n.max)return;if(c{let c=+i.value;isNaN(c)?c=n.min:c>n.max?c=n.max:c{a(),r("enter",c)},l=c=>{a(),o.value=!1,r("blur",c)},u=c=>{o.value=!0,r("focus",c)};return(c,f)=>(D(),q("div",{class:ze(["number-input",{disabled:c.disabled,focused:o.value}])},[V("span",kEe,[ar(c.$slots,"prefix",{},void 0,!0)]),V("div",PEe,[Ge(V("input",{type:"text",disabled:c.disabled,"onUpdate:modelValue":f[0]||(f[0]=d=>i.value=d),placeholder:c.placeholder,onInput:f[1]||(f[1]=d=>r("input",d)),onFocus:f[2]||(f[2]=d=>u(d)),onBlur:f[3]||(f[3]=d=>l(d)),onChange:f[4]||(f[4]=d=>r("change",d)),onKeydown:f[5]||(f[5]=hl(d=>s(d),["enter"]))},null,40,CEe),[[Ym,i.value]]),V("div",IEe,[V("span",{class:"handler",onClick:f[6]||(f[6]=d=>i.value+=c.step)},FEe),V("span",{class:"handler",onClick:f[7]||(f[7]=d=>i.value-=c.step)},XEe)])]),V("span",WEe,[ar(c.$slots,"suffix",{},void 0,!0)])],2))}}),ta=Be(VEe,[["__scopeId","data-v-ba8ef208"]]),zee=e=>(rn("data-v-dcc16f05"),e=e(),on(),e),DEe={class:"table-generator"},UEe={class:"title"},BEe={class:"lef"},YEe=["onMouseenter"],ZEe={key:1,class:"custom"},QEe={class:"row"},HEe=zee(()=>V("div",{class:"label",style:{width:"25%"}},"行数:",-1)),KEe={class:"row"},GEe=zee(()=>V("div",{class:"label",style:{width:"25%"}},"列数:",-1)),zEe={class:"btns"},JEe=We({__name:"TableGenerator",emits:["insert","close"],setup(e,{emit:t}){const n=t,r=he([]),i=he(3),o=he(3),a=he(!1),s=()=>{if(!r.value.length)return;const[c,f]=r.value;n("insert",{row:c,col:f})},l=()=>{if(i.value<1||i.value>20||o.value<1||o.value>20)return pn.warning("行数/列数必须在0~20之间!");n("insert",{row:i.value,col:o.value}),a.value=!1},u=()=>{n("close"),a.value=!1};return(c,f)=>(D(),q("div",DEe,[V("div",UEe,[V("div",BEe,"表格 "+dt(r.value.length?`${r.value[0]} x ${r.value[1]}`:""),1),V("div",{class:"right",onClick:f[0]||(f[0]=d=>a.value=!a.value)},dt(a.value?"返回":"自定义"),1)]),a.value?(D(),q("div",ZEe,[V("div",QEe,[HEe,k(ta,{min:1,max:20,value:i.value,"onUpdate:value":f[3]||(f[3]=d=>i.value=d),style:{width:"75%"}},null,8,["value"])]),V("div",KEe,[GEe,k(ta,{min:1,max:20,value:o.value,"onUpdate:value":f[4]||(f[4]=d=>o.value=d),style:{width:"75%"}},null,8,["value"])]),V("div",zEe,[k(et,{class:"btn",onClick:f[5]||(f[5]=d=>u())},{default:ie(()=>[Ue("取消")]),_:1}),k(et,{class:"btn",type:"primary",onClick:f[6]||(f[6]=d=>l())},{default:ie(()=>[Ue("确认")]),_:1})])])):(D(),q("table",{key:0,onMouseleave:f[1]||(f[1]=d=>r.value=[]),onClick:f[2]||(f[2]=d=>s())},[V("tbody",null,[(D(),q(Ee,null,qe(10,d=>V("tr",{key:d},[(D(),q(Ee,null,qe(10,h=>V("td",{onMouseenter:p=>r.value=[d,h],key:h},[V("div",{class:ze(["cell",{active:r.value.length&&d<=r.value[0]&&h<=r.value[1]}])},null,2)],40,YEe)),64))])),64))])],32))]))}}),$Ee=Be(JEe,[["__scopeId","data-v-dcc16f05"]]),jEe={class:"media-input"},qEe={class:"btns"},eXe={class:"btns"},tXe=We({__name:"MediaInput",emits:["insertVideo","insertAudio","close"],setup(e,{emit:t}){const n=t,r=he("video"),i=he("https://mazwai.com/videvo_files/video/free/2019-01/small_watermarked/181004_04_Dolphins-Whale_06_preview.webm"),o=he("https://freesound.org/data/previews/614/614107_11861866-lq.mp3"),a=[{key:"video",label:"视频"},{key:"audio",label:"音频"}],s=()=>{if(!i.value)return pn.error("请先输入正确的视频地址");n("insertVideo",i.value)},l=()=>{if(!o.value)return pn.error("请先输入正确的音频地址");n("insertAudio",o.value)};return(u,c)=>(D(),q("div",jEe,[k(gl,{tabs:a,value:r.value,"onUpdate:value":c[0]||(c[0]=f=>r.value=f),tabsStyle:{marginBottom:"15px"}},null,8,["value"]),r.value==="video"?(D(),q(Ee,{key:0},[k(pu,{value:i.value,"onUpdate:value":c[1]||(c[1]=f=>i.value=f),placeholder:"请输入视频地址,e.g. https://xxx.mp4"},null,8,["value"]),V("div",qEe,[k(et,{onClick:c[2]||(c[2]=f=>n("close")),style:{"margin-right":"10px"}},{default:ie(()=>[Ue("取消")]),_:1}),k(et,{type:"primary",onClick:c[3]||(c[3]=f=>s())},{default:ie(()=>[Ue("确认")]),_:1})])],64)):Ye("",!0),r.value==="audio"?(D(),q(Ee,{key:1},[k(pu,{value:o.value,"onUpdate:value":c[4]||(c[4]=f=>o.value=f),placeholder:"请输入音频地址,e.g. https://xxx.mp3"},null,8,["value"]),V("div",eXe,[k(et,{onClick:c[5]||(c[5]=f=>n("close")),style:{"margin-right":"10px"}},{default:ie(()=>[Ue("取消")]),_:1}),k(et,{type:"primary",onClick:c[6]||(c[6]=f=>l())},{default:ie(()=>[Ue("确认")]),_:1})])],64)):Ye("",!0)]))}}),nXe=Be(tXe,[["__scopeId","data-v-999b18ca"]]);var XR=82;function Ep(e){return C_[e]==null&&rXe(e),C_[e]}function rXe(e){var t=iXe[e];if(t!=null){for(var n=t.substring(3,5),r=1*n.charCodeAt(0)-XR,i=1*n.charCodeAt(1)-XR,o=t.substring(5),a=[[]],s=1/0,l=-1/0,u=1/0,c=-1/0,f=0;ff>RfR",797:" 3D`D``D",798:" 3RRR>Rf",799:" 3D`DD``",800:" 3D`DR`R",801:" 3F^FY^K",802:" 3KYK^YF",803:" 3RRRDR`",804:" 3KYKFY^",805:" 3F^FK^Y",806:" 3KYKRYR",807:" 3MWMWWM",808:" 3RRRKRY",809:" 3MWMMWW",810:" 8GRRGPGMHJJHMGPGR",811:" 8GRGRGTHWJZM\\P]R]",812:" 8R]R]T]W\\ZZ\\W]T]R",813:" 8R]]R]P\\MZJWHTGRG",814:" 9D`DOGQKSPTTTYS]Q`O",815:" 9PUUDSGQKPPPTQYS]U`",816:" 9OTODQGSKTPTTSYQ]O`",817:" 9D`DUGSKQPPTPYQ]S`U",818:" 5KYRJYNKVRZ",819:" 5JZJRNKVYZR",820:" 5KYKVKNYVYN",821:" 5JZLXJPZTXL",822:" 23JZJ]L]O\\Q[TXUVVSVOULTJSIQIPJOLNONSOVPXS[U\\X]Z]",823:" 23I]]Z]X\\U[SXPVOSNONLOJPIQISJTLUOVSVVUXT[Q\\O]L]J",824:" 23JZZGXGUHSIPLONNQNUOXPZQ[S[TZUXVUVQUNTLQIOHLGJG",825:" 23G[GJGLHOIQLTNUQVUVXUZT[S[QZPXOUNQNNOLPISHUGXGZ",826:" 21E[EPFRHTJUMVQVUUXSZP[NZLWLSMQNNPLSKVKYL\\M^",827:" 19EYETHVKWPWSVVTXQYNYLXKVKSLPNNQMTMYN\\P_",828:" 26OUQOOQOSQUSUUSUQSOQO RQPPQPSQTSTTSTQSPQP RRQQRRSSRRQ",829:" 11RWRMSMUNVOWQWSVUUVSWRW",830:" 9D`DRJR RORUR RZR`R",831:" 5D`DUDO`O`U",832:" 6JZRDJR RRDZR",833:" 9D`DR`R RJYZY RP`T`",834:" 9D`DR`R RDRRb R`RRb",840:" 18KYQKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK",841:" 6LXLLLXXXXLLL",842:" 5KYRJKVYVRJ",843:" 6LXRHLRR\\XRRH",844:" 12JZRIPOJOOSMYRUWYUSZOTORI",845:" 6KYRKRY RKRYR",846:" 6MWMMWW RWMMW",847:" 9MWRLRX RMOWU RWOMU",850:" 35NVQNOONQNSOUQVSVUUVSVQUOSNQN ROQOS RPPPT RQOQU RRORU RSOSU RTPTT RUQUS",851:" 27NVNNNVVVVNNN ROOOU RPOPU RQOQU RRORU RSOSU RTOTU RUOUU",852:" 17MWRLMUWURL RROOT RROUT RRRQT RRRST",853:" 17LULRUWUMLR RORTU RORTO RRRTS RRRTQ",854:" 17MWRXWOMORX RRUUP RRUOP RRRSP RRRQP",855:" 17OXXROMOWXR RURPO RURPU RRRPQ RRRPS",856:" 22LXRLNWXPLPVWRL RRRRL RRRLP RRRNW RRRVW RRRXP",857:" 11RYRKRY RRKYNRQ RSMVNSO",860:" 13MWRLRX ROOUO RMUOWQXSXUWWU",861:" 11LXRLRX RLQMOWOXQ RPWTW",862:" 14KYMNWX RWNMX ROLLOKQ RULXOYQ",863:" 18I[NII[ RVI[[ RMM[[ RWMI[ RNIVI RMMWM",864:" 21I[RGRV RMJWP RWJMP RIVL\\ R[VX\\ RIV[V RL\\X\\",865:" 11G[MJSV RKPSL RG\\[\\[RG\\",866:" 14LXPLPPLPLTPTPXTXTTXTXPTPTLPL",867:" 32KYYPXNVLSKQKNLLNKQKSLVNXQYSYVXXVYT RYPWNUMSMQNPOOQOSPUQVSWUWWVYT",868:" 10KYRJKVYVRJ RRZYNKNRZ",869:" 34G]PIPGQFSFTGTI RGZHXJVKTLPLKMJOIUIWJXKXPYTZV\\X]Z RGZ]Z RQZP[Q\\S\\T[SZ",870:" 64JZRMRS RRSQ\\ RRSS\\ RQ\\S\\ RRMQJPHNG RQJNG RRMSJTHVG RSJVG RRMNKLKJM RPLLLJM RRMVKXKZM RTLXLZM RRMPNOOOR RRMPOOR RRMTNUOUR RRMTOUR",871:" 94JZRIRK RRNRP RRSRU RRYQ\\ RRYS\\ RQ\\S\\ RRGQIPJ RRGSITJ RPJRITJ RRKPNNOMN RRKTNVOWN RNOPORNTOVO RRPPSNTLTKRKSLT RRPTSVTXTYRYSXT RNTPTRSTTVT RRUPXOYMZLZKYJWJYLZ RRUTXUYWZXZYYZWZYXZ RMZOZRYUZWZ",872:" 40JZRYQ\\ RRYS\\ RQ\\S\\ RRYUZXZZXZUYTWTYRZOYMWLUMVJUHSGQGOHNJOMMLKMJOKRMTKTJUJXLZOZRY",873:" 32JZRYQ\\ RRYS\\ RQ\\S\\ RRYVXVVXUXRZQZLYIXHVHTGPGNHLHKIJLJQLRLUNVNXRY",874:" 15I[IPKR RLKNP RRGRO RXKVP R[PYR",899:" 6QSRQQRRSSRRQ",900:" 10PTQPPQPSQTSTTSTQSPQP",901:" 14NVQNOONQNSOUQVSVUUVSVQUOSNQN",902:" 18MWQMONNOMQMSNUOVQWSWUVVUWSWQVOUNSMQM",903:" 18KYQKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK",904:" 22G]PGMHJJHMGPGTHWJZM\\P]T]W\\ZZ\\W]T]P\\MZJWHTGPG",905:" 34AcPALBJCGEEGCJBLAPATBXCZE]G_JaLbPcTcXbZa]__]aZbXcTcPbLaJ_G]EZCXBTAPA",906:" 34fRAPCMDJDGCEA>H@JAMAZB]D_G`M`PaRc RRATCWDZD]C_AfHdJcMcZb]`_]`W`TaRc",909:" 33AcRAPCMDJDGCEABGAKAPBTDXG\\L`Rc RRATCWDZD]C_AbGcKcPbT`X]\\X`Rc RBHbH",997:" 3MWMXWX",998:" 3JZJZZZ",999:" 3JZJ]Z]",1001:" 18KYRKMX RRNVX RRKWX ROTTT RKXPX RTXYX",1002:" 35JZNKNX ROKOX RLKSKVLWNVPSQ RSKULVNUPSQ ROQSQVRWTWUVWSXLX RSQURVTVUUWSX",1003:" 24KYVLWKWOVLTKQKOLNMMPMSNVOWQXTXVWWU RQKOMNPNSOVQX",1004:" 26JZNKNX ROKOX RLKSKVLWMXPXSWVVWSXLX RSKULVMWPWSVVUWSX",1005:" 22JYNKNX ROKOX RSOSS RLKVKVOUK ROQSQ RLXVXVTUX",1006:" 20JXNKNX ROKOX RSOSS RLKVKVOUK ROQSQ RLXQX",1007:" 36K[VLWKWOVLTKQKOLNMMPMSNVOWQXTXVW RQKOMNPNSOVQX RTXUWVU RVSVX RWSWX RTSYS",1008:" 27J[NKNX ROKOX RVKVX RWKWX RLKQK RTKYK ROQVQ RLXQX RTXYX",1009:" 12NWRKRX RSKSX RPKUK RPXUX",1010:" 19LXSKSURWQX RTKTUSWQXPXNWMUNTOUNV RQKVK",1011:" 27JZNKNX ROKOX RWKOS RQQVX RRQWX RLKQK RTKYK RLXQX RTXYX",1012:" 14KXOKOX RPKPX RMKRK RMXWXWTVX",1013:" 30I\\MKMX RNNRX RNKRU RWKRX RWKWX RXKXX RKKNK RWKZK RKXOX RUXZX",1014:" 21JZNKNX ROMVX ROKVV RVKVX RLKOK RTKXK RLXPX",1015:" 32KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK",1016:" 25JYNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXQX",1017:" 47KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK RPWPUQTSTTUUZV[W[XZ RTUUXVZW[",1018:" 37JZNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXQX RSRTSUWVXWXXW RSRUSVWWX",1019:" 32KZVMWKWOVMULSKQKOLNMNOOPQQTRVSWT RNNOOQPTQVRWSWVVWTXRXPWOVNTNXOV",1020:" 16KZRKRX RSKSX RNKMOMKXKXOWK RPXUX",1021:" 20J[NKNUOWQXTXVWWUWK ROKOUPWQX RLKQK RUKYK",1022:" 15KYMKRX RNKRU RWKRX RKKPK RTKYK",1023:" 24I[LKOX RMKOT RRKOX RRKUX RSKUT RXKUX RJKOK RVKZK",1024:" 21KZNKVX ROKWX RWKNX RLKQK RTKYK RLXQX RTXYX",1025:" 20LYNKRRRX ROKSR RWKSRSX RLKQK RTKYK RPXUX",1026:" 16LYVKNX RWKOX ROKNONKWK RNXWXWTVX",1027:" 18KYRKMX RRNVX RRKWX ROTTT RKXPX RTXYX",1028:" 35JZNKNX ROKOX RLKSKVLWNVPSQ RSKULVNUPSQ ROQSQVRWTWUVWSXLX RSQURVTVUUWSX",1029:" 14KXOKOX RPKPX RMKWKWOVK RMXRX",1030:" 15KYRKLX RRMWX RRKXX RMWVW RLXXX",1031:" 22JYNKNX ROKOX RSOSS RLKVKVOUK ROQSQ RLXVXVTUX",1032:" 16LYVKNX RWKOX ROKNONKWK RNXWXWTVX",1033:" 27J[NKNX ROKOX RVKVX RWKWX RLKQK RTKYK ROQVQ RLXQX RTXYX",1034:" 44KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK RQOQT RTOTT RQQTQ RQRTR",1035:" 12NWRKRX RSKSX RPKUK RPXUX",1036:" 27JZNKNX ROKOX RWKOS RQQVX RRQWX RLKQK RTKYK RLXQX RTXYX",1037:" 15KYRKMX RRNVX RRKWX RKXPX RTXYX",1038:" 30I\\MKMX RNNRX RNKRU RWKRX RWKWX RXKXX RKKNK RWKZK RKXOX RUXZX",1039:" 21JZNKNX ROMVX ROKVV RVKVX RLKOK RTKXK RLXPX",1040:" 36JZMJLM RXJWM RPPOS RUPTS RMVLY RXVWY RMKWK RMLWL RPQTQ RPRTR RMWWW RMXWX",1041:" 32KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK",1042:" 21J[NKNX ROKOX RVKVX RWKWX RLKYK RLXQX RTXYX",1043:" 25JYNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXQX",1044:" 20K[MKRQ RNKSQMX RMKWKXOVK RNWWW RMXWXXTVX",1045:" 16KZRKRX RSKSX RNKMOMKXKXOWK RPXUX",1046:" 33KZMONLOKPKQLRORX RXOWLVKUKTLSOSX RMONMOLPLQMRO RXOWMVLULTMSO RPXUX",1047:" 40KZRKRX RSKSX RQNNOMQMRNTQUTUWTXRXQWOTNQN RQNOONQNROTQU RTUVTWRWQVOTN RPKUK RPXUX",1048:" 21KZNKVX ROKWX RWKNX RLKQK RTKYK RLXQX RTXYX",1049:" 33J[RKRX RSKSX RLPMONOOSQU RTUVSWOXOYP RMONROTQUTUVTWRXO RPKUK RPXUX",1050:" 35KZMVNXQXMRMONMOLQKTKVLWMXOXRTXWXXV ROUNRNOOMQK RTKVMWOWRVU RNWPW RUWWW",1051:" 18KYTKKX RSMTX RTKUX RNTTT RIXNX RRXWX",1052:" 34JYPKLX RQKMX RNKUKWLWNVPSQ RUKVLVNUPSQ ROQRQTRUSUUTWQXJX RRQTSTUSWQX",1053:" 25KXVLWLXKWNVLTKRKPLOMNOMRMUNWPXRXTWUU RRKPMOONRNVPX",1054:" 26JYPKLX RQKMX RNKTKVLWNWQVTUVTWQXJX RTKULVNVQUTTVSWQX",1055:" 22JYPKLX RQKMX RSORS RNKXKWNWK ROQRQ RJXTXUUSX",1056:" 20JXPKLX RQKMX RSORS RNKXKWNWK ROQRQ RJXOX",1057:" 33KYVLWLXKWNVLTKRKPLOMNOMRMUNWPXRXTWUVVS RRKPMOONRNVPX RRXTVUS RSSXS",1058:" 27J[PKLX RQKMX RXKTX RYKUX RNKSK RVK[K ROQVQ RJXOX RRXWX",1059:" 12NWTKPX RUKQX RRKWK RNXSX",1060:" 19LXUKRUQWPX RVKSURWPXOXMWLUMTNUMV RSKXK",1061:" 27JZPKLX RQKMX RYKOR RRPTX RSPUX RNKSK RVK[K RJXOX RRXWX",1062:" 14KXQKMX RRKNX ROKTK RKXUXVUTX",1063:" 30I\\OKKX ROMPX RPKQV RYKPX RYKUX RZKVX RMKPK RYK\\K RIXMX RSXXX",1064:" 21JZPKLX RPKTX RQKTU RXKTX RNKQK RVKZK RJXNX",1065:" 32KYRKPLOMNOMRMUNWPXRXTWUVVTWQWNVLTKRK RRKPMOONRNVPX RRXTVUTVQVMTK",1066:" 24JYPKLX RQKMX RNKUKWLXMXOWQTROR RUKWMWOVQTR RJXOX",1067:" 46KYRKPLOMNOMRMUNWPXRXTWUVVTWQWNVLTKRK RRKPMOONRNVPX RRXTVUTVQVMTK ROWOVPUQURVRZS[T[UZ RRVSZT[",1068:" 35JZPKLX RQKMX RNKUKWLXMXOWQTROR RUKWMWOVQTR RSRTWUXVXWW RSRTSUWVX RJXOX",1069:" 28KZWLXLYKXNWLUKRKPLOMOOPPUSVT RONPOURVSVVUWSXPXNWMULXMWNW",1070:" 16KZTKPX RUKQX RPKNNOKZKYNYK RNXSX",1071:" 20J[PKMUMWOXSXUWVUYK RQKNUNWOX RNKSK RWK[K",1072:" 15KYOKPX RPKQV RYKPX RMKRK RVK[K",1073:" 24I[NKMX ROKNV RTKMX RTKSX RUKTV RZKSX RLKQK RXK\\K",1074:" 21KZPKTX RQKUX RYKLX RNKSK RVK[K RJXOX RRXWX",1075:" 20LYPKRQPX RQKSQ RYKSQQX RNKSK RVK[K RNXSX",1076:" 16LYXKLX RYKMX RQKONPKYK RLXUXVUTX",1101:" 32LZQOPPPQOQOPQOTOVQVWWXXX RTOUQUWWX RURRSPTOUOWPXSXTWUU RRSPUPWQX",1102:" 29JYNKNX ROKOX RORPPROTOVPWRWUVWTXRXPWOU RTOUPVRVUUWTX RLKOK",1103:" 24LXVQUQURVRVQUPSOQOOPNRNUOWQXSXUWVV RQOPPOROUPWQX",1104:" 32L[VKVX RWKWX RVRUPSOQOOPNRNUOWQXSXUWVU RQOPPOROUPWQX RTKWK RVXYX",1105:" 26LXOSVSVRUPSOQOOPNRNUOWQXSXUWVV RUSUQSO RQOPPOROUPWQX",1106:" 20LWTKULUMVMVLTKRKPMPX RRKQMQX RNOSO RNXSX",1107:" 42LYQOOQOSQUSUUSUQSOQO RQOPQPSQU RSUTSTQSO RTPUOVO RPTOUOXPYTYVZ ROWPXTXVYV[T\\P\\N[NYPX",1108:" 28J[NKNX ROKOX RORPPROTOVPWRWX RTOUPVRVX RLKOK RLXQX RTXYX",1109:" 18NWRKRLSLSKRK RRORX RSOSX RPOSO RPXUX",1110:" 23NWSKSLTLTKSK RSOSZR\\ RTOTZR\\P\\O[OZPZP[O[ RQOTO",1111:" 27JZNKNX ROKOX RWOOU RRSVX RSSWX RLKOK RTOYO RLXQX RTXYX",1112:" 12NWRKRX RSKSX RPKSK RPXUX",1113:" 44F_JOJX RKOKX RKRLPNOPORPSRSX RPOQPRRRX RSRTPVOXOZP[R[X RXOYPZRZX RHOKO RHXMX RPXUX RXX]X",1114:" 28J[NONX ROOOX RORPPROTOVPWRWX RTOUPVRVX RLOOO RLXQX RTXYX",1115:" 28LYQOOPNRNUOWQXTXVWWUWRVPTOQO RQOPPOROUPWQX RTXUWVUVRUPTO",1116:" 32JYNON\\ ROOO\\ RORPPROTOVPWRWUVWTXRXPWOU RTOUPVRVUUWTX RLOOO RL\\Q\\",1117:" 29KYUOU\\ RVOV\\ RURTPROPONPMRMUNWPXRXTWUU RPOOPNRNUOWPX RS\\X\\",1118:" 22KXOOOX RPOPX RPRQPSOUOVPVQUQUPVP RMOPO RMXRX",1119:" 26LYTOUPUQVQVPTOQOOPORQSTTVU ROQQRTSVTVWTXQXOWOVPVPWQX",1120:" 14LWPKPVRXTXUWUV RQKQVRX RNOTO",1121:" 28J[NONUOWQXSXUWVU ROOOUPWQX RVOVX RWOWX RLOOO RTOWO RVXYX",1122:" 15KYNORX ROORV RVORX RLOQO RTOXO",1123:" 24I[LOOX RMOOU RROOX RROUX RSOUU RXOUX RJOOO RVOZO",1124:" 21KYNOUX ROOVX RVONX RLOQO RTOXO RLXPX RSXXX",1125:" 23KYNORX ROORV RVORXP[N\\M\\L[LZMZM[L[ RLOQO RTOXO",1126:" 16LXUONX RVOOX ROONQNOVO RNXVXVVUX",1127:" 32K[QOOPNQMSMUNWPXQXSWUUWRXO RQOOQNSNUOWPX RQOSOUPWWXX RSOTPVWXXYX",1128:" 40KXRKPMOOMUK\\ RQLPNNTL\\ RRKTKVLVNUPRQ RTKULUNTPRQ RRQTRUTUVTWRXQXOWNT RRQSRTTTVRX",1129:" 19KYLQNOPORPSSSXR\\ RLQNPPPRQSS RWOVRSXQ\\",1130:" 39KYSOQOOPNQMSMUNWPXRXTWUVVTVRUPRNQLQKRJTJUKVM RQOOQNSNVPX RRXTVUTUQSO RQLRKTKVM",1131:" 27LXVPTOQOOPOQPRRS RQOPPPQRS RRSOTNUNWPXSXUW RRSPTOUOWPX",1132:" 28LWRKQLQMSNVNVMSNPOOPNRNTOVPWRXSYS[R\\P\\O[ RSNQOPPOROTPVRX",1133:" 26IYJRKPLONOOPOQMX RMONPNQLX ROQPPROTOVPVRS\\ RTOUPURR\\",1134:" 35IYJSKQLPNPOQOVPX RMPNQNUOWPXQXSWTVUTVQVNULTKRKQLQNRPURWS RQXSVTTUQUNTK",1135:" 13NWROPVPWQXSXUWVU RSOQVQWRX",1136:" 26KYOOLX RPOMX RUOVPWPVOTORQOR RORPSRWTXVWWU RORQSSWTX",1137:" 15LXLKNKPLWX RNKOLVX RRPMX RRPNX",1138:" 26KZOOK\\ RPOL\\ RNUNWOXQXSWTV RVOTVTWUXWXXWYU RWOUVUWVX",1139:" 19JYNOMX ROONUMX RVRVOWOVRTUQWNXMX RLOOO",1140:" 36MXRKQLQMSNVN RTNQOPPPRRSUS RTNROQPQRRS RSSPTOUOWQXSYTZT[S\\Q\\ RSSQTPUPWQX",1141:" 28KXQOOPNQMSMUNWPXRXTWUVVTVRUPSOQO RQOOQNSNVPX RRXTVUTUQSO",1142:" 20IZPPMX RPPNX RTPSX RTPTX RKQMOXO RKQMPXP",1143:" 29JXSOQOOPNQMSJ\\ RQOOQNSK\\ RSOUPVRVTUVTWRXPXNWMU RSOUQUTTVRX",1144:" 28K[YOQOOPNQMSMUNWPXRXTWUVVTVRUPYP RQOOQNSNVPX RRXTVUTUQSO",1145:" 14KZSPQX RSPRX RMQOOXO RMQOPXP",1146:" 24JXKRLPMOOOPPPROUOWPX RNOOPORNUNWPXQXSWUUVRVOUOVP",1147:" 35KZOPNQMSMUNWPXRXUWWUXRXPWOUOTPSRRUO\\ RMUNVPWRWUVWTXR RXQWPUPSR RRUQXP\\",1148:" 17KXMONOPPS[T\\ RNOOPR[T\\U\\ RVOTRNYL\\",1149:" 28I[TKQ\\ RUKP\\ RJRKPLONOOPOVPWSWUVWT RMONPNTOWPXSXUWWTXRYO",1150:" 36JZNPPPPONPMQLSLUMWNXPXQWRUSR RLUNWPWRU RRRRWSXUXWVXTXRWPVOVPWP RRUSWUWWV",1151:" 32KZVOTVTWUXWXXWYU RWOUVUWVX RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX",1152:" 32JXOKMR RPKNRNVPX RNROPQOSOUPVRVTUVTWRXPXNWMUMR RSOUQUTTVRX RMKPK",1153:" 22KXUPUQVQUPSOQOOPNQMSMUNWPXRXTWUV RQOOQNSNVPX",1154:" 35KZWKTVTWUXWXXWYU RXKUVUWVX RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX RUKXK",1155:" 23KWNURTTSURUPSOQOOPNQMSMUNWPXRXTWUV RQOOQNSNVPX",1156:" 23MXWKXLXKVKTLSNPYO[N\\ RVKULTNQYP[N\\L\\L[M\\ RPOVO",1157:" 34KYVOTVSYR[ RWOUVTYR[P\\M\\L[M[N\\ RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX",1158:" 29KZPKLX RQKMX ROQPPROTOVPVRUUUWVX RTOUPURTUTWUXWXXWYU RNKQK",1159:" 26MWSKSLTLTKSK RNROPPOROSPSRRURWSX RQORPRRQUQWRXTXUWVU",1160:" 26MWTKTLULUKTK RORPPQOSOTPTRRYQ[O\\M\\M[N\\ RROSPSRQYP[O\\",1161:" 32KXPKLX RQKMX RVPUQVQVPUOTORQPROR RORPSQWRXTXUWVU RORQSRWSX RNKQK",1162:" 16NVSKPVPWQXSXTWUU RTKQVQWRX RQKTK",1163:" 46F^GRHPIOKOLPLQJX RJOKPKQIX RLQMPOOQOSPSQQX RQORPRQPX RSQTPVOXOZPZRYUYWZX RXOYPYRXUXWYX[X\\W]U",1164:" 33J[KRLPMOOOPPPQNX RNOOPOQMX RPQQPSOUOWPWRVUVWWX RUOVPVRUUUWVXXXYWZU",1165:" 28KXQOOPNQMSMUNWPXRXTWUVVTVRUPSOQO RQOOQNSNVPX RRXTVUTUQSO",1166:" 35JYKRLPMOOOPPPQM\\ RNOOPOQL\\ RPQROTOVPWRWTVVUWSXQXOVOT RTOVQVTUVSX RJ\\O\\",1167:" 28KYVOR\\ RWOS\\ RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX RP\\U\\",1168:" 22LXMRNPOOQORPRQPX RPOQPQQOX RRQSPUOVOWPWQVQWP",1169:" 24LYVPVQWQVPTOQOOPORQSTTVU ROQQRTSVTVWTXQXOWNVOVOW",1170:" 16NWSKPVPWQXSXTWUU RTKQVQWRX RPOUO",1171:" 33IZJRKPLONOOPORNUNWOX RMONPNRMUMWOXQXSWTV RVOTVTWUXWXXWYU RWOUVUWVX",1172:" 24JXKRLPMOOOPPPROUOWPX RNOOPORNUNWPXQXSWUUVRVOUOVP",1173:" 37H\\IRJPKOMONPNRMUMWNX RLOMPMRLULWNXOXQWRV RTORVRWTX RUOSVSWTXUXWWYUZRZOYOZP",1174:" 38JZMRNPPOROSPSR RQORPRRQUPWNXMXLWLVMVLW RXPWQXQXPWOVOTPSRRURWSX RQUQWRXTXVWWU",1175:" 35IYJRKPLONOOPORNUNWOX RMONPNRMUMWOXQXSWTV RVOTVSYR[ RWOUVTYR[P\\M\\L[M[N\\",1176:" 27KYWOWPVQNVMWMX RNQOOROUQ ROPRPUQVQ RNVOVRWUW ROVRXUXVV",1177:" 39H[RKSLSMTMTLRKOKMLLNLX ROKNLMNMX RXKYLYMZMZLXKVKTMTX RVKUMUX RJOWO RJXOX RRXWX",1178:" 29J[UKVLWLWKQKOLNNNX RQKPLONOX RVOVX RWOWX RLOWO RLXQX RTXYX",1179:" 27J[WKQKOLNNNX RQKPLONOX RUKVLVX RWKWX RLOVO RLXQX RTXYX",1180:" 48F_PKQLQMRMRLPKMKKLJNJX RMKLLKNKX RYKZL[L[KUKSLRNRX RUKTLSNSX RZOZX R[O[X RHO[O RHXMX RPXUX RXX]X",1181:" 46F_PKQLQMRMRLPKMKKLJNJX RMKLLKNKX R[KUKSLRNRX RUKTLSNSX RYKZLZX R[K[X RHOZO RHXMX RPXUX RXX]X",1182:" 12NWRORX RSOSX RPOSO RPXUX",1184:" 21LXVPTOROPPOQNSNUOWQXSXUW RROPQOSOVQX ROSSS",1185:" 35LYSKQLPMOONRNUOWPXRXTWUVVTWQWNVLUKSK RSKQMPOOSOVPX RRXTVUTVPVMUK ROQVQ",1186:" 34KZTKQ\\ RUKP\\ RQONPMRMUNWQXTXWWXUXRWPTOQO RQOOPNRNUOWQX RTXVWWUWRVPTO",1187:" 22LXUPVRVQUPSOQOOPNRNTOVRX RQOOQOTPVRXSYS[R\\P\\",1191:" 45I[VKWLXLVKSKQLPMOOLYK[J\\ RSKQMPOMYL[J\\H\\H[I\\ RZK[L[KYKWLVNSYR[Q\\ RYKXLWNTYS[Q\\O\\O[P\\ RLOYO",1192:" 38IZVKWLXLXKSKQLPMOOLYK[J\\ RSKQMPOMYL[J\\H\\H[I\\ RVOTVTWUXWXXWYU RWOUVUWVX RLOWO",1193:" 38IZVKWL RXKSKQLPMOOLYK[J\\ RSKQMPOMYL[J\\H\\H[I\\ RWKTVTWUXWXXWYU RXKUVUWVX RLOVO",1194:" 63F^SKTLTM RULSKPKNLMMLOIYH[G\\ RPKNMMOJYI[G\\E\\E[F\\ RZK[L\\L\\KWKUL RTMSOPYO[N\\ RWKUMTOQYP[N\\L\\L[M\\ RZOXVXWYX[X\\W]U R[OYVYWZX RIO[O",1195:" 63F^SKTLTM RULSKPKNLMMLOIYH[G\\ RPKNMMOJYI[G\\E\\E[F\\ RZK[L R\\KWKUL RTMSOPYO[N\\ RWKUMTOQYP[N\\L\\L[M\\ R[KXVXWYX[X\\W]U R\\KYVYWZX RIOZO",1196:" 20MWNROPPOROSPSRRURWSX RQORPRRQUQWRXTXUWVU",1200:" 28LYQKOLNONTOWQXTXVWWTWOVLTKQK RQKPLOOOTPWQX RTXUWVTVOULTK",1201:" 10LYPNSKSX RRLRX ROXVX",1202:" 35LYOMONNNNMOLQKTKVLWNVPTQQROSNUNX RTKULVNUPTQ RNWOVPVSWVWWV RPVSXVXWVWU",1203:" 39LYOMONNNNMOLQKTKVLWNVPTQ RTKULVNUPTQ RRQTQVRWTWUVWTXQXOWNVNUOUOV RTQURVTVUUWTX",1204:" 13LYSMSX RTKTX RTKMTXT RQXVX",1205:" 33LYOKNQ ROKVK ROLSLVK RNQOPQOTOVPWRWUVWTXQXOWNVNUOUOV RTOUPVRVUUWTX",1206:" 36LYVMVNWNWMVLTKRKPLOMNPNUOWQXTXVWWUWSVQTPQPNR RRKPMOPOUPWQX RTXUWVUVSUQTP",1207:" 22LYNKNO RVMRTPX RWKTQQX RNMPKRKUM RNMPLRLUMVM",1208:" 51LYQKOLNNOPQQTQVPWNVLTKQK RQKPLONPPQQ RTQUPVNULTK RQQORNTNUOWQXTXVWWUWTVRTQ RQQPROTOUPWQX RTXUWVUVTURTQ",1209:" 36LYOVOUNUNVOWQXSXUWVVWSWNVLTKQKOLNNNPORQSTSWQ RSXUVVSVNULTK RQKPLONOPPRQS",1210:" 6NVRVQWRXSWRV",1211:" 8NVSWRXQWRVSWSYQ[",1212:" 12NVROQPRQSPRO RRVQWRXSWRV",1213:" 14NVROQPRQSPRO RSWRXQWRVSWSYQ[",1214:" 15NVRKQLRSSLRK RRLRO RRVQWRXSWRV",1215:" 29LYNNONOONONNOLQKTKVLWNWOVQSRRSRTST RTKVMVPUQSR RRWRXSXSWRW",1216:" 6OVRKRP RSKRP",1217:" 12LXOKOP RPKOP RUKUP RVKUP",1218:" 10MWQKPLPNQOSOTNTLSKQK",1219:" 9MWRJRP ROKUO RUKOO",1220:" 3KZXHM\\",1221:" 16MWUHSJQMPPPTQWSZU\\ RSJRLQPQTRXSZ",1222:" 16MWOHQJSMTPTTSWQZO\\ RQJRLSPSTRXQZ",1223:" 12MWPHP\\ RQHQ\\ RPHUH RP\\U\\",1224:" 12MWSHS\\ RTHT\\ ROHTH RO\\T\\",1225:" 38LWSHQIPJPLRNSP RQIPL RSNRQ RPJQLSNSPRQPRRSSTSVQXPZ RRSSV RPXQ[ RSTRVPXPZQ[S\\",1226:" 38MXQHSITJTLRNQP RSITL RQNRQ RTJSLQNQPRQTRRSQTQVSXTZ RRSQV RTXS[ RQTRVTXTZS[Q\\",1227:" 4MWTHPRT\\",1228:" 4MWPHTRP\\",1229:" 3OURHR\\",1230:" 6MWPHP\\ RTHT\\",1231:" 3I[LRXR",1232:" 6I[RLRX RLRXR",1233:" 9JZRMRX RMRWR RMXWX",1234:" 9JZRMRX RMMWM RMRWR",1235:" 6JZMMWW RWMMW",1236:" 6NVRQQRRSSRRQ",1237:" 15I[RLQMRNSMRL RLRXR RRVQWRXSWRV",1238:" 6I[LPXP RLTXT",1239:" 9I[WLMX RLPXP RLTXT",1240:" 9I[LNXN RLRXR RLVXV",1241:" 4JZWLMRWX",1242:" 4JZMLWRMX",1243:" 10JZWKMOWS RMTWT RMXWX",1244:" 10JZMKWOMS RMTWT RMXWX",1245:" 21H[YUWUUTTSRPQOONNNLOKQKRLTNUOUQTRSTPUOWNYN",1246:" 16JZLTLRMPOPUSWSXR RLRMQOQUTWTXRXP",1247:" 8JZMSRPWS RMSRQWS",1248:" 7NVSKPO RSKTLPO",1249:" 7NVQKTO RQKPLTO",1250:" 14LXNKOMQNSNUMVK RNKONQOSOUNVK",1251:" 8NVSLRMQLRKSLSNQP",1252:" 8NVSKQMQORPSORNQO",1253:" 8NVQLRMSLRKQLQNSP",1254:" 8NVQKSMSORPQORNSO",1256:" 11JZWMQMONNOMQMSNUOVQWWW",1257:" 11JZMMMSNUOVQWSWUVVUWSWM",1258:" 11JZMMSMUNVOWQWSVUUVSWMW",1259:" 11JZMWMQNOONQMSMUNVOWQWW",1260:" 14JZWMQMONNOMQMSNUOVQWWW RMRUR",1261:" 13I[TOUPXRUTTU RUPWRUT RLRWR",1262:" 13MWRMRX ROPPORLTOUP RPORMTO",1263:" 13I[POOPLROTPU ROPMROT RMRXR",1264:" 13MWRLRW ROTPURXTUUT RPURWTU",1265:" 37KYVSUPSOQOOPNQMSMUNWPXRXTWUVVTWQWNVLTKQKPLQLRK RQOOQNSNVPX RRXTVUTVQVNULTK",1266:" 15JZLKRX RMKRV RXKRX RLKXK RNLWL",1267:" 10G[IOLORW RKORX R[FRX",1268:" 26I[XIXJYJYIXHVHTJSLROQUPYO[ RUITKSORUQXPZN\\L\\K[KZLZL[",1269:" 40I[XIXJYJYIXHVHTJSLROQUPYO[ RUITKSORUQXPZN\\L\\K[KZLZL[ RQNOONQNSOUQVSVUUVSVQUOSNQN",1270:" 26H\\ZRYTWUVUTTSSQPPONNMNKOJQJRKTMUNUPTQSSPTOVNWNYOZQZR",1271:" 26JZXKLX ROKPLPNOOMOLNLLMKOKSLVLXK RUTTUTWUXWXXWXUWTUT",1272:" 41J[YPXPXQYQYPXOWOVPUTTVSWQXOXMWLVLTMSORRPSNSLRKPKOLONPQUWWXXXYW ROXMVMTOR RONPPVWWX",1273:" 29J[UPSOQOPQPRQTSTUS RUOUSVTXTYRYQXNVLSKRKOLMNLQLRMUOWRXSXVW",1274:" 34KZQHQ\\ RTHT\\ RWLVLVMWMWLUKPKNLNNOPVSWT RNNOOVRWTWVVWTXQXOWNVNUOUOVNV",1275:" 12KYRKN\\ RVKR\\ RNQWQ RMVVV",1276:" 40LXTLSLSMTMTLSKQKPLPNQPTRUS RPNQOTQUSUUSW RQPOROTPVSXTY ROTPUSWTYT[S\\Q\\P[PZQZQ[P[",1277:" 29LXRKQLRMSLRK RRMRQ RRQQSRVSSRQ RRVR\\ RPOONNOOPPOTOUNVOUPTO",1278:" 42LXRMSLRKQLRMRQQRSURV RRQSRQURVRZQ[R\\S[RZ RPOONNOOPPOTOUNVOUPTO RPXOWNXOYPXTXUWVXUYTX",1279:" 12LYVKVX RNKVK RQQVQ RNXVX",1281:" 24H\\QKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK RRQQRRSSRRQ",1282:" 33LYQKPLPMQN RTKULUMTN RRNPOOQORPTRUSUUTVRVQUOSNRN RRURY RSUSY ROWVW",1283:" 23LYRKPLONOOPQRRSRUQVOVNULSKRK RRRRX RSRSX ROUVU",1284:" 24H\\QKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK RRKRY RKRYR",1285:" 25JYRRPQOQMRLTLUMWOXPXRWSUSTRR RWMRR RRMWMWR RRMVNWR",1286:" 25JZLLMKOKQLRNRPQRPSNT ROKPLQNQQPS RVKUX RWKTX RNTXT",1287:" 27JYNKNU ROKNR RNROPQOSOUPVQVTTVTXUYVYWX RSOUQUTTV RLKOK",1288:" 27LYONRKRQ RVNSKSQ RRQPROTOUPWRXSXUWVUVTURSQ RRTRUSUSTRT",1289:" 27JZRKRY RMKMPNRPSTSVRWPWK RLMMKNM RQMRKSM RVMWKXM ROVUV",1290:" 27JYNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXVXVUUX",1291:" 20LYWKTKQLONNQNSOVQXTYWY RWKTLRNQQQSRVTXWY",1292:" 23JZRRPQOQMRLTLUMWOXPXRWSUSTRR RSLQQ RWMRR RXQSS",1293:" 12KYPMTW RTMPW RMPWT RWPMT",1294:" 34J[OUMULVLXMYOYPXPVNTMRMONMOLQKTKVLWMXOXRWTUVUXVYXYYXYVXUVU RNMPLULWM",1295:" 34J[OOMOLNLLMKOKPLPNNPMRMUNWOXQYTYVXWWXUXRWPUNULVKXKYLYNXOVO RNWPXUXWW",1401:" 21F^KHK\\ RLHL\\ RXHX\\ RYHY\\ RHH\\H RH\\O\\ RU\\\\\\",1402:" 20H]KHRQJ\\ RJHQQ RJHYHZMXH RK[X[ RJ\\Y\\ZWX\\",1403:" 20KYVBTDRGPKOPOTPYR]T`Vb RTDRHQKPPPTQYR\\T`",1404:" 20KYNBPDRGTKUPUTTYR]P`Nb RPDRHSKTPTTSYR\\P`",1405:" 12KYOBOb RPBPb ROBVB RObVb",1406:" 12KYTBTb RUBUb RNBUB RNbUb",1407:" 40KYTBRCQDPFPHQJRKSMSOQQ RRCQEQGRISJTLTNSPORSTTVTXSZR[Q]Q_Ra RQSSUSWRYQZP\\P^Q`RaTb",1408:" 40KYPBRCSDTFTHSJRKQMQOSQ RRCSESGRIQJPLPNQPURQTPVPXQZR[S]S_Ra RSSQUQWRYSZT\\T^S`RaPb",1409:" 24KYU@RCPFOIOLPOSVTYT\\S_Ra RRCQEPHPKQNTUUXU[T^RaOd",1410:" 24KYO@RCTFUIULTOQVPYP\\Q_Ra RRCSETHTKSNPUOXO[P^RaUd",1411:" 13AXCRGRR` RGSRa RFSRb RX:Rb",1412:" 32F^[CZD[E\\D\\C[BYBWCUETGSJRNPZO^N` RVDUFTJRVQZP]O_MaKbIbHaH`I_J`Ia",2001:" 18H\\RFK[ RRFY[ RRIX[ RMUVU RI[O[ RU[[[",2002:" 45G]LFL[ RMFM[ RIFUFXGYHZJZLYNXOUP RUFWGXHYJYLXNWOUP RMPUPXQYRZTZWYYXZU[I[ RUPWQXRYTYWXYWZU[",2003:" 32G\\XIYLYFXIVGSFQFNGLIKKJNJSKVLXNZQ[S[VZXXYV RQFOGMILKKNKSLVMXOZQ[",2004:" 30G]LFL[ RMFM[ RIFSFVGXIYKZNZSYVXXVZS[I[ RSFUGWIXKYNYSXVWXUZS[",2005:" 22G\\LFL[ RMFM[ RSLST RIFYFYLXF RMPSP RI[Y[YUX[",2006:" 20G[LFL[ RMFM[ RSLST RIFYFYLXF RMPSP RI[P[",2007:" 40G^XIYLYFXIVGSFQFNGLIKKJNJSKVLXNZQ[S[VZXX RQFOGMILKKNKSLVMXOZQ[ RXSX[ RYSY[ RUS\\S",2008:" 27F^KFK[ RLFL[ RXFX[ RYFY[ RHFOF RUF\\F RLPXP RH[O[ RU[\\[",2009:" 12MXRFR[ RSFS[ ROFVF RO[V[",2010:" 20KZUFUWTZR[P[NZMXMVNUOVNW RTFTWSZR[ RQFXF",2011:" 27F\\KFK[ RLFL[ RYFLS RQOY[ RPOX[ RHFOF RUF[F RH[O[ RU[[[",2012:" 14I[NFN[ ROFO[ RKFRF RK[Z[ZUY[",2013:" 30F_KFK[ RLFRX RKFR[ RYFR[ RYFY[ RZFZ[ RHFLF RYF]F RH[N[ RV[][",2014:" 21G^LFL[ RMFYY RMHY[ RYFY[ RIFMF RVF\\F RI[O[",2015:" 44G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RQFOGMILKKOKRLVMXOZQ[ RS[UZWXXVYRYOXKWIUGSF",2016:" 29G]LFL[ RMFM[ RIFUFXGYHZJZMYOXPUQMQ RUFWGXHYJYMXOWPUQ RI[P[",2017:" 64G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RQFOGMILKKOKRLVMXOZQ[ RS[UZWXXVYRYOXKWIUGSF RNYNXOVQURUTVUXV_W`Y`Z^Z] RUXV\\W^X_Y_Z^",2018:" 45G]LFL[ RMFM[ RIFUFXGYHZJZLYNXOUPMP RUFWGXHYJYLXNWOUP RI[P[ RRPTQURXYYZZZ[Y RTQUSWZX[Z[[Y[X",2019:" 34H\\XIYFYLXIVGSFPFMGKIKKLMMNOOUQWRYT RKKMMONUPWQXRYTYXWZT[Q[NZLXKUK[LX",2020:" 16I\\RFR[ RSFS[ RLFKLKFZFZLYF RO[V[",2021:" 23F^KFKULXNZQ[S[VZXXYUYF RLFLUMXOZQ[ RHFOF RVF\\F",2022:" 15H\\KFR[ RLFRX RYFR[ RIFOF RUF[F",2023:" 24F^JFN[ RKFNV RRFN[ RRFV[ RSFVV RZFV[ RGFNF RWF]F",2024:" 21H\\KFX[ RLFY[ RYFK[ RIFOF RUF[F RI[O[ RU[[[",2025:" 20H]KFRQR[ RLFSQS[ RZFSQ RIFOF RVF\\F RO[V[",2026:" 16H\\XFK[ RYFL[ RLFKLKFYF RK[Y[YUX[",2027:" 18H\\RFK[ RRFY[ RRIX[ RMUVU RI[O[ RU[[[",2028:" 45G]LFL[ RMFM[ RIFUFXGYHZJZLYNXOUP RUFWGXHYJYLXNWOUP RMPUPXQYRZTZWYYXZU[I[ RUPWQXRYTYWXYWZU[",2029:" 14I[NFN[ ROFO[ RKFZFZLYF RK[R[",2030:" 15H\\RFJ[ RRFZ[ RRIY[ RKZYZ RJ[Z[",2031:" 22G\\LFL[ RMFM[ RSLST RIFYFYLXF RMPSP RI[Y[YUX[",2032:" 16H\\XFK[ RYFL[ RLFKLKFYF RK[Y[YUX[",2033:" 27F^KFK[ RLFL[ RXFX[ RYFY[ RHFOF RUF\\F RLPXP RH[O[ RU[\\[",2034:" 56G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RQFOGMILKKOKRLVMXOZQ[ RS[UZWXXVYRYOXKWIUGSF ROMOT RUMUT ROPUP ROQUQ",2035:" 12MXRFR[ RSFS[ ROFVF RO[V[",2036:" 27F\\KFK[ RLFL[ RYFLS RQOY[ RPOX[ RHFOF RUF[F RH[O[ RU[[[",2037:" 15H\\RFK[ RRFY[ RRIX[ RI[O[ RU[[[",2038:" 30F_KFK[ RLFRX RKFR[ RYFR[ RYFY[ RZFZ[ RHFLF RYF]F RH[N[ RV[][",2039:" 21G^LFL[ RMFYY RMHY[ RYFY[ RIFMF RVF\\F RI[O[",2040:" 36G]KEJJ RZEYJ RONNS RVNUS RKWJ\\ RZWY\\ RKGYG RKHYH ROPUP ROQUQ RKYYY RKZYZ",2041:" 44G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RQFOGMILKKOKRLVMXOZQ[ RS[UZWXXVYRYOXKWIUGSF",2042:" 21F^KFK[ RLFL[ RXFX[ RYFY[ RHF\\F RH[O[ RU[\\[",2043:" 29G]LFL[ RMFM[ RIFUFXGYHZJZMYOXPUQMQ RUFWGXHYJYMXOWPUQ RI[P[",2044:" 20H]KFRPJ[ RJFQP RJFYFZLXF RKZXZ RJ[Y[ZUX[",2045:" 16I\\RFR[ RSFS[ RLFKLKFZFZLYF RO[V[",2046:" 33I\\KKKILGMFOFPGQIRMR[ RKIMGOGQI RZKZIYGXFVFUGTISMS[ RZIXGVGTI RO[V[",2047:" 48H]RFR[ RSFS[ RPKMLLMKOKRLTMUPVUVXUYTZRZOYMXLUKPK RPKNLMMLOLRMTNUPV RUVWUXTYRYOXMWLUK ROFVF RO[V[",2048:" 21H\\KFX[ RLFY[ RYFK[ RIFOF RUF[F RI[O[ RU[[[",2049:" 41G^RFR[ RSFS[ RIMJLLMMQNSOTQU RJLKMLQMSNTQUTUWTXSYQZM[L RTUVTWSXQYM[L\\M ROFVF RO[V[",2050:" 43G]JXK[O[MWKSJPJLKIMGPFTFWGYIZLZPYSWWU[Y[ZX RMWLTKPKLLINGPF RTFVGXIYLYPXTWW RKZNZ RVZYZ",2051:" 18H\\UFH[ RUFV[ RTHU[ RLUUU RF[L[ RR[X[",2052:" 41F^OFI[ RPFJ[ RLFWFZG[I[KZNYOVP RWFYGZIZKYNXOVP RMPVPXQYSYUXXVZR[F[ RVPWQXSXUWXUZR[",2053:" 34H]ZH[H\\F[L[JZHYGWFTFQGOIMLLOKSKVLYMZP[S[UZWXXV RTFRGPINLMOLSLVMYNZP[",2054:" 30F]OFI[ RPFJ[ RLFUFXGYHZKZOYSWWUYSZO[F[ RUFWGXHYKYOXSVWTYRZO[",2055:" 22F]OFI[ RPFJ[ RTLRT RLF[FZLZF RMPSP RF[U[WVT[",2056:" 20F\\OFI[ RPFJ[ RTLRT RLF[FZLZF RMPSP RF[M[",2057:" 42H^ZH[H\\F[L[JZHYGWFTFQGOIMLLOKSKVLYMZP[R[UZWXYT RTFRGPINLMOLSLVMYNZP[ RR[TZVXXT RUT\\T",2058:" 27E_NFH[ ROFI[ R[FU[ R\\FV[ RKFRF RXF_F RLPXP RE[L[ RR[Y[",2059:" 12LYUFO[ RVFP[ RRFYF RL[S[",2060:" 21I[XFSWRYQZO[M[KZJXJVKULVKW RWFRWQYO[ RTF[F",2061:" 27F]OFI[ RPFJ[ R]FLS RSOW[ RROV[ RLFSF RYF_F RF[M[ RS[Y[",2062:" 14H\\QFK[ RRFL[ RNFUF RH[W[YUV[",2063:" 30E`NFH[ RNFO[ ROFPY R\\FO[ R\\FV[ R]FW[ RKFOF R\\F`F RE[K[ RS[Z[",2064:" 21F_OFI[ ROFVX ROIV[ R\\FV[ RLFOF RYF_F RF[L[",2065:" 42G]SFPGNILLKOJSJVKYLZN[Q[TZVXXUYRZNZKYHXGVFSF RSFQGOIMLLOKSKVLYN[ RQ[SZUXWUXRYNYKXHVF",2066:" 27F]OFI[ RPFJ[ RLFXF[G\\I\\K[NYPUQMQ RXFZG[I[KZNXPUQ RF[M[",2067:" 61G]SFPGNILLKOJSJVKYLZN[Q[TZVXXUYRZNZKYHXGVFSF RSFQGOIMLLOKSKVLYN[ RQ[SZUXWUXRYNYKXHVF RLYLXMVOUPURVSXS_T`V`W^W] RSXT^U_V_W^",2068:" 42F^OFI[ RPFJ[ RLFWFZG[I[KZNYOVPMP RWFYGZIZKYNXOVP RRPTQURVZW[Y[ZYZX RURWYXZYZZY RF[M[",2069:" 35G^ZH[H\\F[L[JZHYGVFRFOGMIMKNMONVRXT RMKOMVQWRXTXWWYVZS[O[LZKYJWJUI[JYKY",2070:" 16H]UFO[ RVFP[ ROFLLNF]F\\L\\F RL[S[",2071:" 25F_NFKQJUJXKZN[R[UZWXXU\\F ROFLQKUKXLZN[ RKFRF RYF_F",2072:" 15H\\NFO[ ROFPY R\\FO[ RLFRF RXF^F",2073:" 24E_MFK[ RNFLY RUFK[ RUFS[ RVFTY R]FS[ RJFQF RZF`F",2074:" 21G]NFU[ ROFV[ R\\FH[ RLFRF RXF^F RF[L[ RR[X[",2075:" 20H]NFRPO[ ROFSPP[ R]FSP RLFRF RYF_F RL[S[",2076:" 16G][FH[ R\\FI[ ROFLLNF\\F RH[V[XUU[",2077:" 46H\\KILKXWYYY[ RLLXX RKIKKLMXYY[ RPPLTKVKXLZK[ RKVMZ RLTLVMXMZK[ RSSXN RVIVLWNYNYLWKVI RVIWLYN",2101:" 39I]NONPMPMONNPMTMVNWOXQXXYZZ[ RWOWXXZZ[[[ RWQVRPSMTLVLXMZP[S[UZWX RPSNTMVMXNZP[",2102:" 33G\\LFL[ RMFM[ RMPONQMSMVNXPYSYUXXVZS[Q[OZMX RSMUNWPXSXUWXUZS[ RIFMF",2103:" 28H[WPVQWRXQXPVNTMQMNNLPKSKULXNZQ[S[VZXX RQMONMPLSLUMXOZQ[",2104:" 36H]WFW[ RXFX[ RWPUNSMQMNNLPKSKULXNZQ[S[UZWX RQMONMPLSLUMXOZQ[ RTFXF RW[[[",2105:" 31H[LSXSXQWOVNTMQMNNLPKSKULXNZQ[S[VZXX RWSWPVN RQMONMPLSLUMXOZQ[",2106:" 22KXUGTHUIVHVGUFSFQGPIP[ RSFRGQIQ[ RMMUM RM[T[",2107:" 60I\\QMONNOMQMSNUOVQWSWUVVUWSWQVOUNSMQM RONNPNTOV RUVVTVPUN RVOWNYMYNWN RNUMVLXLYM[P\\U\\X]Y^ RLYMZP[U[X\\Y^Y_XaUbObLaK_K^L\\O[",2108:" 28G]LFL[ RMFM[ RMPONRMTMWNXPX[ RTMVNWPW[ RIFMF RI[P[ RT[[[",2109:" 18MXRFQGRHSGRF RRMR[ RSMS[ ROMSM RO[V[",2110:" 25MXSFRGSHTGSF RTMT_SaQbObNaN`O_P`Oa RSMS_RaQb RPMTM",2111:" 27G\\LFL[ RMFM[ RWMMW RRSX[ RQSW[ RIFMF RTMZM RI[P[ RT[Z[",2112:" 12MXRFR[ RSFS[ ROFSF RO[V[",2113:" 44BcGMG[ RHMH[ RHPJNMMOMRNSPS[ ROMQNRPR[ RSPUNXMZM]N^P^[ RZM\\N]P][ RDMHM RD[K[ RO[V[ RZ[a[",2114:" 28G]LML[ RMMM[ RMPONRMTMWNXPX[ RTMVNWPW[ RIMMM RI[P[ RT[[[",2115:" 36H\\QMNNLPKSKULXNZQ[S[VZXXYUYSXPVNSMQM RQMONMPLSLUMXOZQ[ RS[UZWXXUXSWPUNSM",2116:" 36G\\LMLb RMMMb RMPONQMSMVNXPYSYUXXVZS[Q[OZMX RSMUNWPXSXUWXUZS[ RIMMM RIbPb",2117:" 33H\\WMWb RXMXb RWPUNSMQMNNLPKSKULXNZQ[S[UZWX RQMONMPLSLUMXOZQ[ RTb[b",2118:" 23IZNMN[ ROMO[ ROSPPRNTMWMXNXOWPVOWN RKMOM RK[R[",2119:" 32J[WOXMXQWOVNTMPMNNMOMQNRPSUUWVXW RMPNQPRUTWUXVXYWZU[Q[OZNYMWM[NY",2120:" 16KZPFPWQZS[U[WZXX RQFQWRZS[ RMMUM",2121:" 28G]LMLXMZP[R[UZWX RMMMXNZP[ RWMW[ RXMX[ RIMMM RTMXM RW[[[",2122:" 15I[LMR[ RMMRY RXMR[ RJMPM RTMZM",2123:" 24F^JMN[ RKMNX RRMN[ RRMV[ RSMVX RZMV[ RGMNM RWM]M",2124:" 21H\\LMW[ RMMX[ RXML[ RJMPM RTMZM RJ[P[ RT[Z[",2125:" 22H[LMR[ RMMRY RXMR[P_NaLbKbJaK`La RJMPM RTMZM",2126:" 16I[WML[ RXMM[ RMMLQLMXM RL[X[XWW[",2127:" 40G^QMNNLPKRJUJXKZN[P[RZUWWTYPZM RQMONMPLRKUKXLZN[ RQMSMUNVPXXYZZ[ RSMTNUPWXXZZ[[[",2128:" 57G\\TFQGOIMMLPKTJZIb RTFRGPINMMPLTKZJb RTFVFXGYHYKXMWNTOPO RVFXHXKWMVNTO RPOTPVRWTWWVYUZR[P[NZMYLV RPOSPURVTVWUYTZR[",2129:" 28H\\IPKNMMOMQNROSRSVRZOb RJOLNPNRO RZMYPXRSYP^Nb RYMXPWRSY",2130:" 44I\\VNTMRMONMQLTLWMYNZP[R[UZWWXTXQWOSJRHRFSEUEWFYH RRMPNNQMTMXNZ RR[TZVWWTWPVNTKSISGTFVFYH",2131:" 32I[XPVNTMPMNNNPPRSS RPMONOPQRSS RSSNTLVLXMZP[S[UZWX RSSOTMVMXNZP[",2132:" 31I[TFRGQHQIRJUKZKZJWKSMPOMRLULWMYP[S]T_TaSbQbPa RULQONRMUMWNYP[",2133:" 32G]HQIOKMNMONOPNTL[ RMMNNNPMTK[ RNTPPRNTMVMXNYOYRXWUb RVMXOXRWWTb",2134:" 44F]GQHOJMMMNNNPMUMXNZO[ RLMMNMPLULXMZO[Q[SZUXWUXRYMYIXGVFTFRHRJSMUPWRZT RSZUWVUWRXMXIWGVF",2135:" 15LXRMPTOXOZP[S[UYVW RSMQTPXPZQ[",2136:" 29H\\NMJ[ ROMK[ RXMYNZNYMWMUNQROSMS ROSQTSZT[ ROSPTRZS[U[WZYW",2137:" 23H\\KFMFOGPHQJWXXZY[ RMFOHPJVXWZY[Z[ RRMJ[ RRMK[",2138:" 28F]MMGb RNMHb RMPLVLYN[P[RZTXVU RXMUXUZV[Y[[Y\\W RYMVXVZW[",2139:" 24H\\NML[ ROMNSMXL[ RYMXQVU RZMYPXRVUTWQYOZL[ RKMOM",2140:" 45IZTFRGQHQIRJUKXK RUKQLOMNONQPSSTVT RUKRLPMOOOQQSST RSTOUMVLXLZN\\S^T_TaRbPb RSTPUNVMXMZO\\S^",2141:" 32I[RMONMQLTLWMYNZP[R[UZWWXTXQWOVNTMRM RRMPNNQMTMXNZ RR[TZVWWTWPVN",2142:" 22G]PNL[ RPNM[ RVNV[ RVNW[ RIPKNNM[M RIPKONN[N",2143:" 31H[LVMYNZP[R[UZWWXTXQWOVNTMRMONMQLTHb RR[TZVWWTWPVN RRMPNNQMTIb",2144:" 35H][MQMNNLQKTKWLYMZO[Q[TZVWWTWQVOUNSM RQMONMQLTLXMZ RQ[SZUWVTVPUN RUN[N",2145:" 16H\\SNP[ RSNQ[ RJPLNOMZM RJPLOONZN",2146:" 31H\\IQJOLMOMPNPPNVNYP[ RNMONOPMVMYNZP[Q[TZVXXUYRYOXMWNXOYR RXUYO",2147:" 37G]ONMOKQJTJWKYLZN[Q[TZWXYUZRZOXMVMTORSPXMb RJWLYNZQZTYWWYU RZOXNVNTPRSPYNb",2148:" 23I[KMMMONPPU_VaWb RMMNNOPT_UaWbYb RZMYOWRM]K`Jb",2149:" 34F]UFOb RVFNb RGQHOJMMMNNNPMUMXOZRZTYWVYS RLMMNMPLULXMZO[R[TZVXXUYS[M",2150:" 44F]JQLOONNMLNJQITIWJZK[M[OZQWRT RIWJYKZMZOYQW RQTQWRZS[U[WZYWZTZQYNXMWNYOZQ RQWRYSZUZWYYW",2151:" 39H]XMVTUXUZV[Y[[Y\\W RYMWTVXVZW[ RVTVQUNSMQMNNLQKTKWLYMZO[Q[SZUWVT RQMONMQLTLXMZ",2152:" 36H[PFLSLVMYNZ RQFMS RMSNPPNRMTMVNWOXQXTWWUZR[P[NZMWMS RVNWPWTVWTZR[ RMFQF",2153:" 25I[WPWQXQXPWNUMRMONMQLTLWMYNZP[R[UZWW RRMPNNQMTMXNZ",2154:" 42H]ZFVTUXUZV[Y[[Y\\W R[FWTVXVZW[ RVTVQUNSMQMNNLQKTKWLYMZO[Q[SZUWVT RQMONMQLTLXMZ RWF[F",2155:" 26I[MVQUTTWRXPWNUMRMONMQLTLWMYNZP[R[UZWX RRMPNNQMTMXNZ",2156:" 35KZZGYHZI[H[GZFXFVGUHTJSMP[O_Na RXFVHUJTNRWQ[P^O`NaLbJbIaI`J_K`Ja ROMYM",2157:" 43H\\YMU[T^RaObLbJaI`I_J^K_J` RXMT[S^QaOb RVTVQUNSMQMNNLQKTKWLYMZO[Q[SZUWVT RQMONMQLTLXMZ",2158:" 31H]PFJ[ RQFK[ RMTOPQNSMUMWNXOXQVWVZW[ RUMWOWQUWUZV[Y[[Y\\W RMFQF",2159:" 26LYUFTGUHVGUF RMQNOPMSMTNTQRWRZS[ RRMSNSQQWQZR[U[WYXW",2160:" 32LYVFUGVHWGVF RNQOOQMTMUNUQR[Q^P`OaMbKbJaJ`K_L`Ka RSMTNTQQ[P^O`Mb",2161:" 34H\\PFJ[ RQFK[ RXNWOXPYOYNXMWMUNQROSMS ROSQTSZT[ ROSPTRZS[U[WZYW RMFQF",2162:" 18MYUFQTPXPZQ[T[VYWW RVFRTQXQZR[ RRFVF",2163:" 52AbBQCOEMHMINIPHTF[ RGMHNHPGTE[ RHTJPLNNMPMRNSOSQP[ RPMRORQO[ RRTTPVNXMZM\\N]O]Q[W[Z\\[ RZM\\O\\QZWZZ[[^[`YaW",2164:" 37F]GQHOJMMMNNNPMTK[ RLMMNMPLTJ[ RMTOPQNSMUMWNXOXQVWVZW[ RUMWOWQUWUZV[Y[[Y\\W",2165:" 32I[RMONMQLTLWMYNZP[R[UZWWXTXQWOVNTMRM RRMPNNQMTMXNZ RR[TZVWWTWPVN",2166:" 42G\\HQIOKMNMONOPNTJb RMMNNNPMTIb RNTOQQNSMUMWNXOYQYTXWVZS[Q[OZNWNT RWNXPXTWWUZS[ RFbMb",2167:" 33H\\XMRb RYMSb RVTVQUNSMQMNNLQKTKWLYMZO[Q[SZUWVT RQMONMQLTLXMZ RObVb",2168:" 26IZJQKOMMPMQNQPPTN[ ROMPNPPOTM[ RPTRPTNVMXMYNYOXPWOXN",2169:" 28J[XOXPYPYOXNUMRMONNONQORVVWW RNPOQVUWVWYVZS[P[MZLYLXMXMY",2170:" 18KYTFPTOXOZP[S[UYVW RUFQTPXPZQ[ RNMWM",2171:" 37F]GQHOJMMMNNNQLWLYN[ RLMMNMQKWKYLZN[P[RZTXVT RXMVTUXUZV[Y[[Y\\W RYMWTVXVZW[",2172:" 26H\\IQJOLMOMPNPQNWNYP[ RNMONOQMWMYNZP[Q[TZVXXUYQYMXMYO",2173:" 41C`DQEOGMJMKNKQIWIYK[ RIMJNJQHWHYIZK[M[OZQXRV RTMRVRYSZU[W[YZ[X\\V]R]M\\M]O RUMSVSYU[",2174:" 42H\\KQMNOMRMSOSR RQMRORRQVPXNZL[K[JZJYKXLYKZ RQVQYR[U[WZYW RYNXOYPZOZNYMXMVNTPSRRVRYS[",2175:" 41G\\HQIOKMNMONOQMWMYO[ RMMNNNQLWLYMZO[Q[SZUXWT RZMV[U^SaPbMbKaJ`J_K^L_K` RYMU[T^RaPb",2176:" 31H\\YMXOVQNWLYK[ RLQMOOMRMVO RMOONRNVOXO RLYNYRZUZWY RNYR[U[WYXW",2177:" 43G^VGUHVIWHWGUFRFOGMILLL[ RRFPGNIMLM[ R\\G[H\\I]H]G\\FZFXGWIW[ RZFYGXIX[ RIM[M RI[P[ RT[[[",2178:" 33G]WGVHWIXHWGUFRFOGMILLL[ RRFPGNIMLM[ RWMW[ RXMX[ RIMXM RI[P[ RT[[[",2179:" 35G]VGUHVIWHWGUF RXFRFOGMILLL[ RRFPGNIMLM[ RWHW[ RXFX[ RIMWM RI[P[ RT[[[",2180:" 54BcRGQHRISHRGPFMFJGHIGLG[ RMFKGIIHLH[ R]G\\H]I^H]G[FXFUGSIRLR[ RXFVGTISLS[ R]M][ R^M^[ RDM^M RD[K[ RO[V[ RZ[a[",2181:" 56BcRGQHRISHRGPFMFJGHIGLG[ RMFKGIIHLH[ R\\G[H\\I]H]G[F R^FXFUGSIRLR[ RXFVGTISLS[ R]H][ R^F^[ RDM]M RD[K[ RO[V[ RZ[a[",2182:" 12MXRMR[ RSMS[ ROMSM RO[V[",2184:" 25IZWNUMRMONMPLSLVMYNZQ[T[VZ RRMPNNPMSMVNYOZQ[ RMTUT",2185:" 43I\\TFQGOJNLMOLTLXMZO[Q[TZVWWUXRYMYIXGVFTF RTFRGPJOLNOMTMXNZO[ RQ[SZUWVUWRXMXIWGVF RNPWP",2186:" 42G]UFOb RVFNb RQMMNKPJSJVKXMZP[S[WZYXZUZRYPWNTMQM RQMNNLPKSKVLXNZP[ RS[VZXXYUYRXPVNTM",2187:" 27I[TMVNXPXOWNTMQMNNMOLQLSMUOWSZ RQMONNOMQMSNUSZT\\T^S_Q_",2190:" 45G]LMKNJPJRKUOYP[ RJRKTOXP[P]O`MbLbKaJ_J\\KXMTOQRNTMVMYNZPZTYXWZU[T[SZSXTWUXTY RVMXNYPYTXXWZ",2191:" 69E_YGXHYIZHYGWFTFQGOINKMNLRJ[I_Ha RTFRGPIOKNNLWK[J^I`HaFbDbCaC`D_E`Da R_G^H_I`H`G_F]F[GZHYJXMU[T_Sa R]F[HZJYNWWV[U^T`SaQbObNaN`O_P`Oa RIM^M",2192:" 52F^[GZH[I\\H[GXFUFRGPIOKNNMRK[J_Ia RUFSGQIPKONMWL[K^J`IaGbEbDaD`E_F`Ea RYMWTVXVZW[Z[\\Y]W RZMXTWXWZX[ RJMZM",2193:" 54F^YGXHYIZHZGXF R\\FUFRGPIOKNNMRK[J_Ia RUFSGQIPKONMWL[K^J`IaGbEbDaD`E_F`Ea R[FWTVXVZW[Z[\\Y]W R\\FXTWXWZX[ RJMYM",2194:" 86@cTGSHTIUHTGRFOFLGJIIKHNGRE[D_Ca ROFMGKIJKINGWF[E^D`CaAb?b>a>`?_@`?a R`G_H`IaH`G]FZFWGUITKSNRRP[O_Na RZFXGVIUKTNRWQ[P^O`NaLbJbIaI`J_K`Ja R^M\\T[X[Z\\[_[aYbW R_M]T\\X\\Z][ RDM_M",2195:" 88@cTGSHTIUHTGRFOFLGJIIKHNGRE[D_Ca ROFMGKIJKINGWF[E^D`CaAb?b>a>`?_@`?a R^G]H^I_H_G]F RaFZFWGUITKSNRRP[O_Na RZFXGVIUKTNRWQ[P^O`NaLbJbIaI`J_K`Ja R`F\\T[X[Z\\[_[aYbW RaF]T\\X\\Z][ RDM^M",2196:" 20LYMQNOPMSMTNTQRWRZS[ RRMSNSQQWQZR[U[WYXW",2200:" 40H\\QFNGLJKOKRLWNZQ[S[VZXWYRYOXJVGSFQF RQFOGNHMJLOLRMWNYOZQ[ RS[UZVYWWXRXOWJVHUGSF",2201:" 11H\\NJPISFS[ RRGR[ RN[W[",2202:" 45H\\LJMKLLKKKJLHMGPFTFWGXHYJYLXNUPPRNSLUKXK[ RTFVGWHXJXLWNTPPR RKYLXNXSZVZXYYX RNXS[W[XZYXYV",2203:" 47H\\LJMKLLKKKJLHMGPFTFWGXIXLWNTOQO RTFVGWIWLVNTO RTOVPXRYTYWXYWZT[P[MZLYKWKVLUMVLW RWQXTXWWYVZT[",2204:" 13H\\THT[ RUFU[ RUFJUZU RQ[X[",2205:" 39H\\MFKP RKPMNPMSMVNXPYSYUXXVZS[P[MZLYKWKVLUMVLW RSMUNWPXSXUWXUZS[ RMFWF RMGRGWF",2206:" 48H\\WIVJWKXJXIWGUFRFOGMILKKOKULXNZQ[S[VZXXYUYTXQVOSNRNOOMQLT RRFPGNIMKLOLUMXOZQ[ RS[UZWXXUXTWQUOSN",2207:" 31H\\KFKL RKJLHNFPFUIWIXHYF RLHNGPGUI RYFYIXLTQSSRVR[ RXLSQRSQVQ[",2208:" 63H\\PFMGLILLMNPOTOWNXLXIWGTFPF RPFNGMIMLNNPO RTOVNWLWIVGTF RPOMPLQKSKWLYMZP[T[WZXYYWYSXQWPTO RPONPMQLSLWMYNZP[ RT[VZWYXWXSWQVPTO",2209:" 48H\\XMWPURRSQSNRLPKMKLLINGQFSFVGXIYLYRXVWXUZR[O[MZLXLWMVNWMX RQSORMPLMLLMIOGQF RSFUGWIXLXRWVVXTZR[",2210:" 6MWRYQZR[SZRY",2211:" 8MWR[QZRYSZS\\R^Q_",2212:" 12MWRMQNROSNRM RRYQZR[SZRY",2213:" 14MWRMQNROSNRM RR[QZRYSZS\\R^Q_",2214:" 15MWRFQHRTSHRF RRHRN RRYQZR[SZRY",2215:" 32I[MJNKMLLKLJMHNGPFSFVGWHXJXLWNVORQRT RSFUGVHWJWLVNTP RRYQZR[SZRY",2216:" 6NVRFQM RSFQM",2217:" 12JZNFMM ROFMM RVFUM RWFUM",2218:" 14KYQFOGNINKOMQNSNUMVKVIUGSFQF",2219:" 9JZRFRR RMIWO RWIMO",2220:" 3G][BIb",2221:" 20KYVBTDRGPKOPOTPYR]T`Vb RTDRHQKPPPTQYR\\T`",2222:" 20KYNBPDRGTKUPUTTYR]P`Nb RPDRHSKTPTTSYR\\P`",2223:" 12KYOBOb RPBPb ROBVB RObVb",2224:" 12KYTBTb RUBUb RNBUB RNbUb",2225:" 40KYTBRCQDPFPHQJRKSMSOQQ RRCQEQGRISJTLTNSPORSTTVTXSZR[Q]Q_Ra RQSSUSWRYQZP\\P^Q`RaTb",2226:" 40KYPBRCSDTFTHSJRKQMQOSQ RRCSESGRIQJPLPNQPURQTPVPXQZR[S]S_Ra RSSQUQWRYSZT\\T^S`RaPb",2227:" 4KYUBNRUb",2228:" 4KYOBVROb",2229:" 3NVRBRb",2230:" 6KYOBOb RUBUb",2231:" 3E_IR[R",2232:" 6E_RIR[ RIR[R",2233:" 9F^RJR[ RJRZR RJ[Z[",2234:" 9F^RJR[ RJJZJ RJRZR",2235:" 6G]KKYY RYKKY",2236:" 6MWRQQRRSSRRQ",2237:" 15E_RIQJRKSJRI RIR[R RRYQZR[SZRY",2238:" 6E_IO[O RIU[U",2239:" 9E_YIK[ RIO[O RIU[U",2240:" 9E_IM[M RIR[R RIW[W",2241:" 4F^ZIJRZ[",2242:" 4F^JIZRJ[",2243:" 10F^ZFJMZT RJVZV RJ[Z[",2244:" 10F^JFZMJT RJVZV RJ[Z[",2245:" 21F_[WYWWVUTRPQOONMNKOJQJSKUMVOVQURTUPWNYM[M",2246:" 24F^IUISJPLONOPPTSVTXTZS[Q RISJQLPNPPQTTVUXUZT[Q[O",2247:" 8G]JTROZT RJTRPZT",2248:" 7LXTFOL RTFUGOL",2249:" 7LXPFUL RPFOGUL",2250:" 18H\\KFLHNJQKSKVJXHYF RKFLINKQLSLVKXIYF",2251:" 8MWRHQGRFSGSIRKQL",2252:" 8MWSFRGQIQKRLSKRJ",2253:" 8MWRHSGRFQGQIRKSL",2254:" 8MWQFRGSISKRLQKRJ",2255:" 10E[HMLMRY RKMR[ R[BR[",2256:" 13F^ZJSJOKMLKNJQJSKVMXOYSZZZ",2257:" 13F^JJJQKULWNYQZSZVYXWYUZQZJ",2258:" 13F^JJQJUKWLYNZQZSYVWXUYQZJZ",2259:" 13F^JZJSKOLMNKQJSJVKXMYOZSZZ",2260:" 16F^ZJSJOKMLKNJQJSKVMXOYSZZZ RJRVR",2261:" 11E_XP[RXT RUMZRUW RIRZR",2262:" 11JZPLRITL RMORJWO RRJR[",2263:" 11E_LPIRLT ROMJROW RJR[R",2264:" 11JZPXR[TX RMURZWU RRIRZ",2265:" 44I\\XRWOVNTMRMONMQLTLWMYNZP[R[UZWXXUYPYKXHWGUFRFPGOHOIPIPH RRMPNNQMTMXNZ RR[TZVXWUXPXKWHUF",2266:" 15H\\JFR[ RKFRY RZFR[ RJFZF RKGYG",2267:" 10AbDMIMRY RHNR[ Rb:R[",2268:" 32F^[CZD[E\\D\\C[BYBWCUETGSJRNPZO^N` RVDUFTJRVQZP]O_MaKbIbHaH`I_J`Ia",2269:" 50F^[CZD[E\\D\\C[BYBWCUETGSJRNPZO^N` RVDUFTJRVQZP]O_MaKbIbHaH`I_J`Ia RQKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK",2270:" 26F_\\S[UYVWVUUTTQPPONNLNJOIQISJULVNVPUQTTPUOWNYN[O\\Q\\S",2271:" 32F^[FI[ RNFPHPJOLMMKMIKIIJGLFNFPGSHVHYG[F RWTUUTWTYV[X[ZZ[X[VYTWT",2272:" 49F_[NZO[P\\O\\N[MZMYNXPVUTXRZP[M[JZIXIUJSPORMSKSIRGPFNGMIMKNNPQUXWZZ[[[\\Z\\Y RM[KZJXJUKSMQ RMKNMVXXZZ[",2273:" 56E`WNVLTKQKOLNMMPMSNUPVSVUUVS RQKOMNPNSOUPV RWKVSVUXVZV\\T]Q]O\\L[JYHWGTFQFNGLHJJILHOHRIUJWLYNZQ[T[WZYYZX RXKWSWUXV",2274:" 42H\\PBP_ RTBT_ RXIWJXKYJYIWGTFPFMGKIKKLMMNOOUQWRYT RKKMMONUPWQXRYTYXWZT[P[MZKXKWLVMWLX",2275:" 12H]SFLb RYFRb RLQZQ RKWYW",2276:" 46JZUITJUKVJVIUGSFQFOGNINKOMQOVR ROMTPVRWTWVVXTZ RPNNPMRMTNVPXU[ RNVSYU[V]V_UaSbQbOaN_N^O]P^O_",2277:" 30JZRFQHRJSHRF RRFRb RRQQTRbSTRQ RLMNNPMNLLM RLMXM RTMVNXMVLTM",2278:" 56JZRFQHRJSHRF RRFRT RRPQRSVRXQVSRRP RRTRb RR^Q`RbS`R^ RLMNNPMNLLM RLMXM RTMVNXMVLTM RL[N\\P[NZL[ RL[X[ RT[V\\X[VZT[",2279:" 12I\\XFX[ RKFXF RPPXP RK[X[",2281:" 38E`QFNGKIILHOHRIUKXNZQ[T[WZZX\\U]R]O\\LZIWGTFQF RROQPQQRRSRTQTPSORO RRPRQSQSPRP",2282:" 45J[PFNGOIQJ RPFOGOI RUFWGVITJ RUFVGVI RQJOKNLMNMQNSOTQUTUVTWSXQXNWLVKTJQJ RRUR[ RSUS[ RNXWX",2283:" 27I\\RFOGMILLLMMPORRSSSVRXPYMYLXIVGSFRF RRSR[ RSSS[ RNWWW",2284:" 28D`PFMGJIHLGOGSHVJYM[P\\T\\W[ZY\\V]S]O\\LZIWGTFPF RRFR\\ RGQ]Q",2285:" 31G`PMMNKPJSJTKWMYPZQZTYVWWTWSVPTNQMPM R]GWG[HUN R]G]M\\IVO R\\HVN",2286:" 28F\\IIJGLFOFQGRIRLQOPQNSKU ROFPGQIQMPPNS RVFT[ RWFS[ RKUYU",2287:" 30I\\MFMU RNFMQ RMQNOONQMTMWNXPXRWTUV RTMVNWPWRTXTZU[W[YY RKFNF",2288:" 44I\\RNOOMQLTLUMXOZR[S[VZXXYUYTXQVOSNRN RRHNJRFRN RSHWJSFSN RRSQTQURVSVTUTTSSRS RRTRUSUSTRT",2289:" 37G^QHRFR[ RTHSFS[ RJHKFKMLPNRQSRS RMHLFLNMQ R[HZFZMYPWRTSSS RXHYFYNXQ RNWWW",2290:" 31G]LFL[ RMFM[ RIFUFXGYHZJZMYOXPUQMQ RUFWGXHYJYMXOWPUQ RI[Y[YVX[",2291:" 24H[YGUGQHNJLMKPKSLVNYQ[U\\Y\\ RYGVHSJQMPPPSQVSYV[Y\\",2292:" 27F_OQMQKRJSIUIWJYKZM[O[QZRYSWSURSQROQ RSHPQ RZJRR R\\QST",2293:" 12H\\OKUY RUKOY RKOYU RYOKU",2294:" 48F^NVLUKUIVHXHYI[K\\L\\N[OYOXNVKRJOJMKJMHPGTGWHYJZMZOYRVVUXUYV[X\\Y\\[[\\Y\\X[VYUXUVV RJMKKMIPHTHWIYKZM",2295:" 48F^NMLNKNIMHKHJIHKGLGNHOJOKNMKQJTJVKYM[P\\T\\W[YYZVZTYQVMUKUJVHXGYG[H\\J\\K[MYNXNVM RJVKXMZP[T[WZYXZV",2301:" 40F_JMILIJJHLGNGPHQIRKSP RIJKHMHOIPJQLRPR[ R[M\\L\\J[HYGWGUHTISKRP R\\JZHXHVIUJTLSPS[",2302:" 51F^IGJKKMMOPPTPWOYMZK[G RIGJJKLMNPOTOWNYLZJ[G RPONPMQLSLVMXOZQ[S[UZWXXVXSWQVPTO RPPNQMSMVNY RVYWVWSVQTP",2303:" 30F^MJMV RNKNU RVKVU RWJWV RIGKIMJPKTKWJYI[G RIYKWMVPUTUWVYW[Y",2304:" 48F^[ILIJJILINJPLQNQPPQNQLPJ[J RIMJOKPMQ RQMPKOJMI RIXXXZW[U[SZQXPVPTQSSSUTWIW R[TZRYQWP RSTTVUWWX",2305:" 48F]OUMTLTJUIWIXJZL[M[OZPXPWOUJPINIKJILHOGSGWHYJZLZOYRVUUWUYV[X[YZZX RMSKPJNJKKILH RSGVHXJYLYOXRVU",2306:" 48G_HKKHMKMV RJILLLV RMKPHRKRU ROIQLQU RRKUHWKW[ RTIVLV[ RWKZH[J\\M\\P[SZUXWUYP[ RYIZJ[M[PZSYUWWTYP[",2307:" 41F^ISMSLRKOKMLJNHQGSGVHXJYMYOXRWS[S RITOTMRLOLMMJOHQG RSGUHWJXMXOWRUT[T RKXYX RKYYY",2308:" 30F_GLJIMLMX RIJLMLX RMLPISLSX ROJRMRX RSLVIYLYW[Y RUJXMXXZZ]W",2309:" 33G]ZIJY RZIWJQJ RXKUKQJ RZIYLYR RXKXNYR RQRJR RPSMSJR RQRQY RPSPVQY",2310:" 33F^HOJKOU RJMOWRPWPZO[M[KZIXHWHUITKTMUPVRWUWXUZ RWHVIUKUMWQXTXWWYUZ",2311:" 36F^IOLLPN RKMOORLUN RQMTOWLYN RVMXO[L RIULRPT RKSOURRUT RQSTUWRYT RVSXU[R",2312:" 48F^JHNJPLQOQRPUNWJY RJHMIOJQLRO RRRQUOWMXJY RZHWIUJSLRO RRRSUUWWXZY RZHVJTLSOSRTUVWZY RIP[P RIQ[Q",2317:" 12NVQQQSSSSQQQ RQQSS RSQQS",2318:" 18JZMPQRTTVVWYW[V]U^ RMQST RMRPSTUVWWY",2319:" 18JZWKVMTOPQMR RSPMS RUFVGWIWKVNTPQRMT",2320:" 36H\\SMONLPKRKTLVNWQWUVXTYRYPXNVMSM RXNSM RVMQNLP RONKR RLVQW RNWSVXT RUVYR",2321:" 36H\\SMONLPKRKTLVNWQWUVXTYRYPXNVMSM RXNSM RVMQNLP RONKR RLVQW RNWSVXT RUVYR",2322:" 34J[SMPNNPMRMTNVPWRWUVWTXRXPWNUMSM ROPUM RNRVN RMTWO RNUXP ROVWR RPWVT",2323:" 18JZOGO^ RUFU] RMNWL RMOWM RMWWU RMXWV",2324:" 18JZNFNX RVLV^ RNNVL RNOVM RNWVU RNXVV",2325:" 25JZNBNW RNNQLTLVMWOWQVSSUQVNW RNNQMTMVN RUMVOVQUSSU",2326:" 18E_HIHL R\\I\\L RHI\\I RHJ\\J RHK\\K RHL\\L",2327:" 18JZMNMQ RWNWQ RMNWN RMOWO RMPWP RMQWQ",2328:" 49JZMLWX RMLONQOTOVNWMWKUKUMTO RONTO RQOWM RVKVN RULWL RWXUVSUPUNVMWMYOYOWPU RUVPU RSUMW RNVNY RMXOX",2329:" 26JZPOOMOKMKMMNNPOSOUNWL RNKNN RMLOL RMMSO RPOUN RWLWY",2330:" 86A^GfHfIeIdHcGcFdFfGhIiKiNhPfQdR`RUQ;Q4R/S-U,V,X-Y/Y3X6W8U;P?JCHEFHEJDNDREVGYJ[N\\R\\V[XZZW[T[PZMYKWITHPHMIKKJNJRKUMW RGdGeHeHdGd RU;Q?LCIFGIFKENERFVGXJ[ RR\\U[WZYWZTZPYMXKVITH",2331:"103EfNSOUQVSVUUVSVQUOSNQNOONPMSMVNYP[S\\V\\Y[[Y\\W]T]P\\MZJXIUHRHOIMJKLIOHSHXI]KaMcPeTfYf]e`cba RKLJNIRIXJ\\L`NbQdUeYe]d_cba RPOTO ROPUP RNQVQ RNRVR RNSVS ROTUT RPUTU RaLaNcNcLaL RbLbN RaMcM RaVaXcXcVaV RbVbX RaWcW",2332:" 30D`H@Hd RM@Md RW@Wd R\\@\\d RMMWK RMNWL RMOWM RMWWU RMXWV RMYWW",2367:" 12NVQQQSSSSQQQ RQQSS RSQQS",2368:" 18JZMPQRTTVVWYW[V]U^ RMQST RMRPSTUVWWY",2369:" 18JZWKVMTOPQMR RSPMS RUFVGWIWKVNTPQRMT",2370:" 32H\\PMMNLOKQKSLUMVPWTWWVXUYSYQXOWNTMPM RMNLPLSMUNVPW RWVXTXQWOVNTM",2371:" 36H\\SMONLPKRKTLVNWQWUVXTYRYPXNVMSM RXNSM RVMQNLP RONKR RLVQW RNWSVXT RUVYR",2372:" 34J[SMPNNPMRMTNVPWRWUVWTXRXPWNUMSM ROPUM RNRVN RMTWO RNUXP ROVWR RPWVT",2373:" 18JZOGO^ RUFU] RMNWL RMOWM RMWWU RMXWV",2374:" 18JZNFNX RVLV^ RNNVL RNOVM RNWVU RNXVV",2375:" 25JZNBNW RNNQLTLVMWOWQVSSUQVNW RNNQMTMVN RUMVOVQUSSU",2376:" 18E_HIHL R\\I\\L RHI\\I RHJ\\J RHK\\K RHL\\L",2377:" 18JZMNMQ RWNWQ RMNWN RMOWO RMPWP RMQWQ",2378:" 36JZQCVMRTRU RULQS RTITKPRRUUY RW\\UYSXQXOYN[N]O_Ra RW\\UZSYOYO]P_Ra RSXPZN]",2379:" 26JZPOOMOKMKMMNNPOSOUNWL RNKNN RMLOL RMMSO RPOUN RWLSY",2380:" 86A^GfHfIeIdHcGcFdFfGhIiKiNhPfQdR`RUQ;Q4R/S-U,V,X-Y/Y3X6W8U;P?JCHEFHEJDNDREVGYJ[N\\R\\V[XZZW[T[PZMYKWITHPHMIKKJNJRKUMW RGdGeHeHdGd RU;Q?LCIFGIFKENERFVGXJ[ RR\\U[WZYWZTZPYMXKVITH",2381:" 89IjNQOOQNSNUOVQVSUUSVQVOUNTMQMNNKPISHWH[I^K`NaRaW`[_]]`ZcVfQiMk RWHZI]K_N`R`W_[^]\\`YcTgQi RPOTO ROPUP RNQVQ RNRVR RNSVS ROTUT RPUTU ReLeNgNgLeL RfLfN ReMgM ReVeXgXgVeV RfVfX ReWgW",2382:" 85D`H>Hf RI>If RM>Mf RQBSBSDQDQAR?T>W>Y?[A\\D\\I[LYNWOUOSNRLQNOQNROSQVRXSVUUWUYV[X\\[\\`[cYeWfTfReQcQ`S`SbQb RRBRD RQCSC RY?ZA[D[IZLYN RRLRNPQNRPSRVRX RYVZX[[[`ZcYe RR`Rb RQaSa",2401:" 21AcHBHb RIBIb R[B[b R\\B\\b RDB`B RDbMb RWb`b",2402:" 23BaGBQPFb RFBPP REBPQ REB\\B^I[B RGa\\a RFb\\b^[[b",2403:" 28I[X+U1R8P=OANFMNMVN^OcPgRlUsXy RU1S6Q":2242,"~":2246,"@":2273,"\\":804}[e]}var Pa={SUB_SUP_SCALE:.75,SQRT_MAG_SCALE:.5,FRAC_SCALE:.85,LINE_SPACING:.5,FRAC_SPACING:.4};function oXe(e){e=e.replace(/\n/g," ");let t=0,n=[],r="";for(;t0&&(e[f].text=="^"||e[f].text=="_"||e[f].text=="'");)f--;c=e[f].bbox.y,e[u].text=="'"?e[u].bbox.y=c:(To(e[u],Pa.SUB_SUP_SCALE,null,0,0),Tn[e[f].text]&&Tn[e[f].text].flags.big?e[u].bbox.y=c-e[u].bbox.h:e[f].text=="\\int"?e[u].bbox.y=c:e[u].bbox.y=c-e[u].bbox.h/2)}else if(e[u].text=="_"){let c=1,f=u;for(;f>0&&(e[f].text=="^"||e[f].text=="_"||e[f].text=="'");)f--;c=e[f].bbox.y+e[f].bbox.h,To(e[u],Pa.SUB_SUP_SCALE,null,0,0),Tn[e[f].text]&&Tn[e[f].text].flags.big?e[u].bbox.y=c:e[f].text=="\\int"?e[u].bbox.y=c-e[u].bbox.h:e[u].bbox.y=c-e[u].bbox.h/2}function n(u,c,f,d,h){let p=u,v=h,g=1/0,m=-1/0;for(;d>0?p=0;){if(e[p].text==c)v++;else if(e[p].text==f){if(v--,v==0)break}else e[p].text=="^"||e[p].text=="_"||e[p].bbox&&(g=Math.min(g,e[p].bbox.y),m=Math.max(m,e[p].bbox.y+e[p].bbox.h));p+=d}return[g,m]}for(let u=0;uu.text=="&"||u.text=="\\\\"))return;let r=[],i=[],o=[];for(let u=0;u0&&(e.chld[y].text=="^"||e.chld[y].text=="_"||e.chld[y].text=="'");)y--;let R=Tn[e.chld[y].text]&&Tn[e.chld[y].text].flags.big;if(g.text=="'"){let A=y+1,x=0;for(;A1;lXe(e.chld,f);let p=$ee(e.chld);e.text=="\\text"&&(p.x-=1,p.w+=2);for(let v=0;vr.bbox.w)c=c/Math.max(a.w,1)*r.bbox.w,c+=r.bbox.x;else{c=c/16*i;let d=(r.bbox.w-a.w/16*i)/2;c+=r.bbox.x+d}if(Tn[r.text].flags.yfl)f=(f-a.ymin)/Math.max(a.ymax-a.ymin,1)*r.bbox.h,f+=r.bbox.y;else{if(f=f/16*i,o){let d=(a.ymax+a.ymin)/2;f-=d/16*i}f+=r.bbox.y+r.bbox.h/2}l.push([c,f])}t.push(l)}}else if(Tn[r.text]&&Tn[r.text].flags.txt||r.type=="char"){let a=r.bbox.x,s=!!(Tn[r.text]&&Tn[r.text].flags.txt);for(let l=Number(s);l16?h*=16/u.w:h+=(16-u.w)/2/16),h+=a,p+=r.bbox.y+r.bbox.h/2,f.push([h,p])}t.push(f)}r.mode=="tt"?a+=i:a+=u.w/16*i}}}return t}function El(e){return Math.round(e*100)/100}var JP=class{constructor(e){this._latex=e,this._tokens=oXe(e),this._tree=I_(this._tokens),Jee(this._tree.chld),Wl(this._tree),uXe(this._tree),this._polylines=cXe(this._tree)}resolveScale(e){var t,n,r,i;if(e==null)return[16,16,16,16];let o=(t=e.SCALE_X)!=null?t:16,a=(n=e.SCALE_Y)!=null?n:16;if(e.MIN_CHAR_H!=null){let u=0;for(let f=0;f`)}function NGe(e,t){var n=t.map(function(r,i){return{target:"../slideLayouts/slideLayout".concat(i+1,".xml"),type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout"}});return n.push({target:"../theme/theme1.xml",type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"}),dC(e,n)}function FGe(){return''.concat(Pi,` `)}function EGe(e,t,n){for(var r=0;r'):'',a=!((r=e.theme)===null||r===void 0)&&r.bodyFontFace?''):'';return''.concat(o,'').concat(a,'')}function WGe(e){var t=''.concat(Pi)+'');t+='',t+="",e.slides.forEach(function(r){return t+='')}),t+="",t+=''),t+=''),t+=''),t+="";for(var n=1;n<10;n++)t+="')+''+"");return t+="",e.sections&&e.sections.length>0&&(t+='',t+='',e.sections.forEach(function(r){t+=''),r._slides.forEach(function(i){return t+='')}),t+=""}),t+="",t+='',t+=""),t+="",t}function VGe(){return''.concat(Pi,'')}function DGe(){return''.concat(Pi,'')}function UGe(){return''.concat(Pi,'')}var BGe="3.12.0",YGe=function(){function e(){var t=this;this._version=BGe,this._alignH=G_,this._alignV=z_,this._chartType=H_,this._outputType=Q_,this._schemeColor=Oa,this._shapeType=K_,this._charts=ut,this._colors=J_,this._shapes=od,this.addNewSlide=function(a){var s=t.sections.length>0&&t.sections[t.sections.length-1]._slides.filter(function(l){return l._slideNum===t.slides[t.slides.length-1]._slideNum}).length>0;return a.sectionTitle=s?t.sections[t.sections.length-1].title:null,t.addSlide(a)},this.getSlide=function(a){return t.slides.filter(function(s){return s._slideNum===a})[0]},this.setSlideNumber=function(a){t.masterSlide._slideNumberProps=a,t.slideLayouts.filter(function(s){return s._name===Y_})[0]._slideNumberProps=a},this.createChartMediaRels=function(a,s,l){a._relsChart.forEach(function(u){return l.push(pGe(u,s))}),a._relsMedia.forEach(function(u){if(u.type!=="online"&&u.type!=="hyperlink"){var c=u.data&&typeof u.data=="string"?u.data:"";!c.includes(",")&&!c.includes(";")?c="image/png;base64,"+c:c.includes(",")?c.includes(";")||(c="image/png;"+c):c="image/png;base64,"+c,s.file(u.Target.replace("..","ppt"),c.split(",").pop(),{base64:!0})}})},this.writeFileToBrowser=function(a,s){return Ul(t,void 0,void 0,function(){var l,u;return Bl(this,function(c){switch(c.label){case 0:return l=document.createElement("a"),l.setAttribute("style","display:none;"),l.dataset.interception="off",document.body.appendChild(l),window.URL.createObjectURL?(u=window.URL.createObjectURL(new Blob([s],{type:"application/vnd.openxmlformats-officedocument.presentationml.presentation"})),l.href=u,l.download=a,l.click(),setTimeout(function(){window.URL.revokeObjectURL(u),document.body.removeChild(l)},100),[4,Promise.resolve(a)]):[3,2];case 1:return[2,c.sent()];case 2:return[2]}})})},this.exportPresentation=function(a){return Ul(t,void 0,void 0,function(){var s,l,u,c=this;return Bl(this,function(f){switch(f.label){case 0:return s=[],l=[],u=new Nte,this.slides.forEach(function(d){l=l.concat(x8(d))}),this.slideLayouts.forEach(function(d){l=l.concat(x8(d))}),l=l.concat(x8(this.masterSlide)),[4,Promise.all(l).then(function(){return Ul(c,void 0,void 0,function(){var d=this;return Bl(this,function(h){switch(h.label){case 0:return this.slides.forEach(function(p){p._slideLayout&&dGe(p)}),u.folder("_rels"),u.folder("docProps"),u.folder("ppt").folder("_rels"),u.folder("ppt/charts").folder("_rels"),u.folder("ppt/embeddings"),u.folder("ppt/media"),u.folder("ppt/slideLayouts").folder("_rels"),u.folder("ppt/slideMasters").folder("_rels"),u.folder("ppt/slides").folder("_rels"),u.folder("ppt/theme"),u.folder("ppt/notesMasters").folder("_rels"),u.folder("ppt/notesSlides").folder("_rels"),u.file("[Content_Types].xml",RGe(this.slides,this.slideLayouts,this.masterSlide)),u.file("_rels/.rels",bGe()),u.file("docProps/app.xml",xGe(this.slides,this.company)),u.file("docProps/core.xml",SGe(this.title,this.subject,this.author,this.revision)),u.file("ppt/_rels/presentation.xml.rels",wGe(this.slides)),u.file("ppt/theme/theme1.xml",XGe(this)),u.file("ppt/presentation.xml",WGe(this)),u.file("ppt/presProps.xml",VGe()),u.file("ppt/tableStyles.xml",DGe()),u.file("ppt/viewProps.xml",UGe()),this.slideLayouts.forEach(function(p,v){u.file("ppt/slideLayouts/slideLayout".concat(v+1,".xml"),OGe(p)),u.file("ppt/slideLayouts/_rels/slideLayout".concat(v+1,".xml.rels"),PGe(v+1,d.slideLayouts))}),this.slides.forEach(function(p,v){u.file("ppt/slides/slide".concat(v+1,".xml"),MGe(p)),u.file("ppt/slides/_rels/slide".concat(v+1,".xml.rels"),CGe(d.slides,d.slideLayouts,v+1)),u.file("ppt/notesSlides/notesSlide".concat(v+1,".xml"),_Ge(p)),u.file("ppt/notesSlides/_rels/notesSlide".concat(v+1,".xml.rels"),IGe(v+1))}),u.file("ppt/slideMasters/slideMaster1.xml",kGe(this.masterSlide,this.slideLayouts)),u.file("ppt/slideMasters/_rels/slideMaster1.xml.rels",NGe(this.masterSlide,this.slideLayouts)),u.file("ppt/notesMasters/notesMaster1.xml",TGe()),u.file("ppt/notesMasters/_rels/notesMaster1.xml.rels",FGe()),this.slideLayouts.forEach(function(p){d.createChartMediaRels(p,u,s)}),this.slides.forEach(function(p){d.createChartMediaRels(p,u,s)}),this.createChartMediaRels(this.masterSlide,u,s),[4,Promise.all(s).then(function(){return Ul(d,void 0,void 0,function(){return Bl(this,function(p){switch(p.label){case 0:return a.outputType!=="STREAM"?[3,2]:[4,u.generateAsync({type:"nodebuffer",compression:a.compression?"DEFLATE":"STORE"})];case 1:return[2,p.sent()];case 2:return a.outputType?[4,u.generateAsync({type:a.outputType})]:[3,4];case 3:return[2,p.sent()];case 4:return[4,u.generateAsync({type:"blob",compression:a.compression?"DEFLATE":"STORE"})];case 5:return[2,p.sent()]}})})})];case 1:return[2,h.sent()]}})})})];case 1:return[2,f.sent()]}})})};var n={name:"screen4x3",width:9144e3,height:6858e3},r={name:"screen16x9",width:9144e3,height:5143500},i={name:"screen16x10",width:9144e3,height:5715e3},o={name:"custom",width:12192e3,height:6858e3};this.LAYOUTS={LAYOUT_4x3:n,LAYOUT_16x9:r,LAYOUT_16x10:i,LAYOUT_WIDE:o},this._author="PptxGenJS",this._company="PptxGenJS",this._revision="1",this._subject="PptxGenJS Presentation",this._title="PptxGenJS Presentation",this._presLayout={name:this.LAYOUTS[cp].name,_sizeW:this.LAYOUTS[cp].width,_sizeH:this.LAYOUTS[cp].height,width:this.LAYOUTS[cp].width,height:this.LAYOUTS[cp].height},this._rtlMode=!1,this._slideLayouts=[{_margin:_2,_name:Y_,_presLayout:this._presLayout,_rels:[],_relsChart:[],_relsMedia:[],_slide:null,_slideNum:1e3,_slideNumberProps:null,_slideObjects:[]}],this._slides=[],this._sections=[],this._masterSlide={addChart:null,addImage:null,addMedia:null,addNotes:null,addShape:null,addTable:null,addText:null,_name:null,_presLayout:this._presLayout,_rId:null,_rels:[],_relsChart:[],_relsMedia:[],_slideId:null,_slideLayout:null,_slideNum:null,_slideNumberProps:null,_slideObjects:[]}}return Object.defineProperty(e.prototype,"layout",{get:function(){return this._layout},set:function(t){var n=this.LAYOUTS[t];if(n)this._layout=t,this._presLayout=n;else throw new Error("UNKNOWN-LAYOUT")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"author",{get:function(){return this._author},set:function(t){this._author=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"company",{get:function(){return this._company},set:function(t){this._company=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"revision",{get:function(){return this._revision},set:function(t){this._revision=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"subject",{get:function(){return this._subject},set:function(t){this._subject=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"theme",{get:function(){return this._theme},set:function(t){this._theme=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this._title},set:function(t){this._title=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rtlMode",{get:function(){return this._rtlMode},set:function(t){this._rtlMode=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"masterSlide",{get:function(){return this._masterSlide},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"slides",{get:function(){return this._slides},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sections",{get:function(){return this._sections},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"slideLayouts",{get:function(){return this._slideLayouts},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"AlignH",{get:function(){return this._alignH},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"AlignV",{get:function(){return this._alignV},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ChartType",{get:function(){return this._chartType},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"OutputType",{get:function(){return this._outputType},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"presLayout",{get:function(){return this._presLayout},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"SchemeColor",{get:function(){return this._schemeColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ShapeType",{get:function(){return this._shapeType},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"charts",{get:function(){return this._charts},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"colors",{get:function(){return this._colors},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shapes",{get:function(){return this._shapes},enumerable:!1,configurable:!0}),e.prototype.stream=function(t){return Ul(this,void 0,void 0,function(){return Bl(this,function(n){switch(n.label){case 0:return[4,this.exportPresentation({compression:t==null?void 0:t.compression,outputType:"STREAM"})];case 1:return[2,n.sent()]}})})},e.prototype.write=function(t){return Ul(this,void 0,void 0,function(){var n,r;return Bl(this,function(i){switch(i.label){case 0:return n=typeof t=="object"&&(t!=null&&t.outputType)?t.outputType:t||null,r=typeof t=="object"&&(t!=null&&t.compression)?t.compression:!1,[4,this.exportPresentation({compression:r,outputType:n})];case 1:return[2,i.sent()]}})})},e.prototype.writeFile=function(t){return Ul(this,void 0,void 0,function(){var n,r,i,o,a=this;return Bl(this,function(s){switch(s.label){case 0:return n=typeof require<"u"&&typeof window>"u"?require("fs"):null,typeof t=="string"&&console.log("Warning: `writeFile(filename)` is deprecated - please use `WriteFileProps` argument (v3.5.0)"),r=typeof t=="object"&&(t!=null&&t.fileName)?t.fileName:typeof t=="string"?t:"",i=typeof t=="object"&&(t!=null&&t.compression)?t.compression:!1,o=r?r.toString().toLowerCase().endsWith(".pptx")?r:r+".pptx":"Presentation.pptx",[4,this.exportPresentation({compression:i,outputType:n?"nodebuffer":null}).then(function(l){return Ul(a,void 0,void 0,function(){return Bl(this,function(u){switch(u.label){case 0:return n?[4,new Promise(function(c,f){n.writeFile(o,l,function(d){d?f(d):c(o)})})]:[3,2];case 1:return[2,u.sent()];case 2:return[4,this.writeFileToBrowser(o,l)];case 3:return[2,u.sent()]}})})})];case 1:return[2,s.sent()]}})})},e.prototype.addSection=function(t){t?t.title||console.warn("addSection requires a title"):console.warn("addSection requires an argument");var n={_type:"user",_slides:[],title:t.title};t.order?this.sections.splice(t.order,0,n):this._sections.push(n)},e.prototype.addSlide=function(t){var n=typeof t=="string"?t:t!=null&&t.masterName?t.masterName:"",r={_name:this.LAYOUTS[cp].name,_presLayout:this.presLayout,_rels:[],_relsChart:[],_relsMedia:[],_slideNum:this.slides.length+1};if(n){var i=this.slideLayouts.filter(function(l){return l._name===n})[0];i&&(r=i)}var o=new hGe({addSlide:this.addNewSlide,getSlide:this.getSlide,presLayout:this.presLayout,setSlideNum:this.setSlideNumber,slideId:this.slides.length+256,slideRId:this.slides.length+2,slideNumber:this.slides.length+1,slideLayout:r});if(this._slides.push(o),t!=null&&t.sectionTitle){var a=this.sections.filter(function(l){return l.title===t.sectionTitle})[0];a?a._slides.push(o):console.warn('addSlide: unable to find section with title: "'.concat(t.sectionTitle,'"'))}else if(this.sections&&this.sections.length>0&&!(t!=null&&t.sectionTitle)){var s=this._sections[this.sections.length-1];s._type==="default"?s._slides.push(o):this._sections.push({title:"Default-".concat(this.sections.filter(function(l){return l._type==="default"}).length+1),_type:"default",_slides:[o]})}return o},e.prototype.defineLayout=function(t){t?t.name?t.width?t.height?typeof t.height!="number"?console.warn("defineLayout `height` should be a number (inches)"):typeof t.width!="number"&&console.warn("defineLayout `width` should be a number (inches)"):console.warn("defineLayout requires `height`"):console.warn("defineLayout requires `width`"):console.warn("defineLayout requires `name`"):console.warn("defineLayout requires `{name, width, height}`"),this.LAYOUTS[t.name]={name:t.name,_sizeW:Math.round(Number(t.width)*jt),_sizeH:Math.round(Number(t.height)*jt),width:Math.round(Number(t.width)*jt),height:Math.round(Number(t.height)*jt)}},e.prototype.defineSlideMaster=function(t){if(!t.title)throw new Error("defineSlideMaster() object argument requires a `title` value. (https://gitbrent.github.io/PptxGenJS/docs/masters.html)");var n={_margin:t.margin||_2,_name:t.title,_presLayout:this.presLayout,_rels:[],_relsChart:[],_relsMedia:[],_slide:null,_slideNum:1e3+this.slideLayouts.length+1,_slideNumberProps:t.slideNumber||null,_slideObjects:[],background:t.background||null,bkgd:t.bkgd||null};lGe(t,n),this.slideLayouts.push(n),(t.background||t.bkgd)&&Bte(t.background,n),n._slideNumberProps&&!this.masterSlide._slideNumberProps&&(this.masterSlide._slideNumberProps=n._slideNumberProps)},e.prototype.tableToSlides=function(t,n){n===void 0&&(n={}),aGe(this,t,n,n!=null&&n.masterSlideName?this.slideLayouts.filter(function(r){return r._name===n.masterSlideName})[0]:null)},e}();const ZGe=["style","script","template"],QGe=["html","head","body","p","dt","dd","li","option","thead","th","tbody","tr","td","tfoot","colgroup"],HGe={li:["ul","ol","menu"],dt:["dl"],dd:["dl"],tbody:["table"],thead:["table"],tfoot:["table"],tr:["table"],td:["table"]},KGe=["!doctype","area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Uh=(e,t)=>{const n=t-e.position;MS(e,n)},MS=(e,t)=>{e.position=e.position+t},GGe=(e,t)=>{for(;;){const r=e.indexOf("<",t);if(r===-1)return r;const i=e.charAt(r+1);if(i==="/"||i==="!"||/[A-Za-z0-9]/.test(i))return r;t=r+1}return-1},Zte=e=>{const{str:t}=e;let n=GGe(t,e.position);if(n===e.position)return;n===-1&&(n=t.length);const r=t.slice(e.position,n);Uh(e,n),e.tokens.push({type:"text",content:r})},zGe=e=>{const{str:t}=e;MS(e,4);let n=t.indexOf("-->",e.position),r=n+3;n===-1&&(n=r=t.length);const i=t.slice(e.position,n);Uh(e,r),e.tokens.push({type:"comment",content:i})},JGe=e=>{const{str:t}=e,n=t.length;let r=e.position;for(;r"))break;r++}let i=r+1;for(;i"))break;i++}Uh(e,i);const o=t.slice(r,i);return e.tokens.push({type:"tag",content:o}),o},$Ge=e=>{const{str:t,tokens:n}=e;let r=e.position,i=null,o=r;const a=[],s=t.length;for(;r"){r!==o&&a.push(t.slice(o,r));break}if(/\s/.test(u)){r!==o&&a.push(t.slice(o,r)),o=r+1,r++;continue}if(u==="'"||u==='"'){i=u,r++;continue}r++}Uh(e,r);const l="attribute";for(let u=0;u1){const p=c+d;n.push({type:l,content:p}),u+=1;continue}const h=a[u+2];if(u+=1,h){const p=c+"="+h;n.push({type:l,content:p}),u+=1;continue}}}if(Qn.endsWith(c,"=")){const d=a[u+1];if(d&&d.indexOf("=")===-1){const p=c+d;n.push({type:l,content:p}),u+=1;continue}const h=c.slice(0,-1);n.push({type:l,content:h});continue}n.push({type:l,content:c})}},jGe=(e,t)=>{const{str:n,tokens:r}=t,i=e.toLowerCase(),o=n.length;let a=t.position;for(;a{const{str:t}=e,r=t.charAt(e.position+1)==="/";MS(e,r?2:1),e.tokens.push({type:"tag-start",close:r});const i=JGe(e);$Ge(e);const a=t.charAt(e.position)==="/";return MS(e,a?2:1),e.tokens.push({type:"tag-end",close:a}),i},qGe=e=>{const t=e.str,n=t.length;for(;e.position{const t={str:e,position:0,tokens:[]};return qGe(t),t.tokens},tze=e=>{const t={tagName:null,children:[]};return Hte({tokens:e,cursor:0,stack:[t]}),t.children},nze=(e,t)=>{const n=HGe[e];if(n){let r=t.length-1;for(;r>=0;){const i=t[r].tagName;if(i===e)break;if(i&&n.includes(i))return!0;r--}}return!1},kB=(e,t)=>{e.splice(t)},Hte=e=>{const{stack:t,tokens:n}=e;let{cursor:r}=e,i=t[t.length-1].children;const o=n.length;for(;r-1;)if(t[g].tagName===l){m=!0;break}for(;r0;){if(l===t[g].tagName){kB(t,g);const m=g-1;i=t[m].children;break}g=g-1}}const f=[];let d;for(;r{const n=e.indexOf(t);return n===-1?[e]:[e.slice(0,n),e.slice(n+t.length)]},ize=e=>{const t=e.charAt(0),n=e.length-1;return(t==='"'||t==="'")&&t===e.charAt(n)?e.slice(1,n):e},oze=e=>e.map(t=>{const n=rze(t.trim(),"="),r=n[0],i=typeof n[1]=="string"?ize(n[1]):null;return{key:r,value:i}}),Kte=e=>e.map(t=>{if(t.type==="element"){const r=Kte(t.children);return{type:"element",tagName:t.tagName.toLowerCase(),attributes:oze(t.attributes),children:r}}return{type:t.type,content:t.content}}),aze=e=>{const t=eze(e),n=tze(t);return Kte(n)},HR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",sze="data:image/svg+xml;base64,",lze=e=>{e=e.replace(/\r\n/g,` -`);let t="";for(let n=0;n127&&r<2048?(t+=String.fromCharCode(r>>6|192),t+=String.fromCharCode(r&63|128)):(t+=String.fromCharCode(r>>12|224),t+=String.fromCharCode(r>>6&63|128),t+=String.fromCharCode(r&63|128))}return t},uze=e=>{let t="",n,r,i,o,a,s,l,u=0;for(e=lze(e);u>2,a=(n&3)<<4|r>>4,s=(r&15)<<2|i>>6,l=i&63,isNaN(r)?s=l=64:isNaN(i)&&(l=64),t=t+HR.charAt(o)+HR.charAt(a)+HR.charAt(s)+HR.charAt(l);return t},PB=e=>{const n=new XMLSerializer().serializeToString(e);return sze+uze(n)},p4=()=>{const e=st(),{slides:t,theme:n,viewportRatio:r,title:i,viewportSize:o}=Ve(e),a=16,s=Se(()=>96*(o.value/960)),l=Se(()=>96/72*(o.value/960)),u=he(!1),c=(S,L,M,w=!0)=>{u.value=!0;const _=L==="png"?uDe:cDe;S.querySelectorAll("foreignObject [xmlns]").forEach(O=>O.removeAttribute("xmlns")),setTimeout(()=>{const O={quality:M,width:1600};w&&(O.fontEmbedCSS=""),_(S,O).then(N=>{u.value=!1,g8.saveAs(N,`${i.value}.${L}`)}).catch(()=>{u.value=!1,pn.error("导出图片失败")})},200)},f=S=>{const L=new Blob([jO(JSON.stringify(S))],{type:""});g8.saveAs(L,`${i.value}.pptist`)},d=()=>{const S={title:i.value,width:o.value,height:o.value*r.value,slides:t.value},L=new Blob([JSON.stringify(S)],{type:""});g8.saveAs(L,`${i.value}.json`)},h=S=>{const L=at(S),M=L.getAlpha(),w=M===0?"#ffffff":L.setAlpha(1).toHexString();return{alpha:M,color:w}},p=S=>{const L=aze(S);let M=!1,w=0;const _=[],C=(O,N={})=>{for(const P of O){if("tagName"in P&&["div","li","p"].includes(P.tagName)&&_.length){const U=_[_.length-1];U.options||(U.options={}),U.options.breakLine=!0}const I={...N},W="attributes"in P?P.attributes.find(U=>U.key==="style"):null;if(W&&W.value){const U=W.value.split(";");for(const Z of U){const[ee,B]=Z.split(": "),[Y,Q]=[Qn.trim(ee),Qn.trim(B)];Y&&Q&&(I[Y]=Q)}}if("tagName"in P){if(P.tagName==="em"&&(I["font-style"]="italic"),P.tagName==="strong"&&(I["font-weight"]="bold"),P.tagName==="sup"&&(I["vertical-align"]="super"),P.tagName==="sub"&&(I["vertical-align"]="sub"),P.tagName==="a"){const U=P.attributes.find(Z=>Z.key==="href");I.href=(U==null?void 0:U.value)||""}if(P.tagName==="ul"&&(I["list-type"]="ul"),P.tagName==="ol"&&(I["list-type"]="ol"),P.tagName==="li"&&(M=!0),P.tagName==="p"&&"attributes"in P){const U=P.attributes.find(Z=>Z.key==="data-indent");U&&U.value&&(w=+U.value)}}if("tagName"in P&&P.tagName==="br")_.push({text:"",options:{breakLine:!0}});else if("content"in P){const U=P.content.replace(/ /g," ").replace(/>/g,">").replace(/</g,"<").replace(/&/g,"&").replace(/\n/g,""),Z={};I["font-size"]&&(Z.fontSize=parseInt(I["font-size"])/l.value),I.color&&(Z.color=h(I.color).color),I["background-color"]&&(Z.highlight=h(I["background-color"]).color),I["text-decoration-line"]&&(I["text-decoration-line"].indexOf("underline")!==-1&&(Z.underline={color:Z.color||"#000000",style:"sng"}),I["text-decoration-line"].indexOf("line-through")!==-1&&(Z.strike="sngStrike")),I["text-decoration"]&&(I["text-decoration"].indexOf("underline")!==-1&&(Z.underline={color:Z.color||"#000000",style:"sng"}),I["text-decoration"].indexOf("line-through")!==-1&&(Z.strike="sngStrike")),I["vertical-align"]&&(I["vertical-align"]==="super"&&(Z.superscript=!0),I["vertical-align"]==="sub"&&(Z.subscript=!0)),I["text-align"]&&(Z.align=I["text-align"]),I["font-weight"]&&(Z.bold=I["font-weight"]==="bold"),I["font-style"]&&(Z.italic=I["font-style"]==="italic"),I["font-family"]&&(Z.fontFace=I["font-family"]),I.href&&(Z.hyperlink={url:I.href}),M&&I["list-type"]==="ol"&&(Z.bullet={type:"number",indent:(Z.fontSize||a)*1.25},Z.paraSpaceBefore=.1,M=!1),M&&I["list-type"]==="ul"&&(Z.bullet={indent:(Z.fontSize||a)*1.25},Z.paraSpaceBefore=.1,M=!1),w&&(Z.indentLevel=w,w=0),_.push({text:U,options:Z})}else"children"in P&&C(P.children,I)}};return C(L),_},v=(S,L={x:1,y:1})=>S.map(M=>{if(M.close!==void 0)return{close:!0};if(M.type==="M")return{x:M.x/s.value*L.x,y:M.y/s.value*L.y,moveTo:!0};if(M.curve){if(M.curve.type==="cubic")return{x:M.x/s.value*L.x,y:M.y/s.value*L.y,curve:{type:"cubic",x1:M.curve.x1/s.value*L.x,y1:M.curve.y1/s.value*L.y,x2:M.curve.x2/s.value*L.x,y2:M.curve.y2/s.value*L.y}};if(M.curve.type==="quadratic")return{x:M.x/s.value*L.x,y:M.y/s.value*L.y,curve:{type:"quadratic",x1:M.curve.x1/s.value*L.x,y1:M.curve.y1/s.value*L.y}}}return{x:M.x/s.value*L.x,y:M.y/s.value*L.y}}),g=S=>{const L=h(S.color),{h:M,v:w}=S;let _=4,C=45;return M===0&&w===0?(_=4,C=45):M===0?w>0?(_=w,C=90):(_=-w,C=270):w===0?M>0?(_=M,C=1):(_=-M,C=180):M>0&&w>0?(_=Math.max(M,w),C=45):M>0&&w<0?(_=Math.max(M,-w),C=315):M<0&&w>0?(_=Math.max(-M,w),C=135):M<0&&w<0&&(_=Math.max(-M,-w),C=225),{type:"outer",color:L.color.replace("#",""),opacity:L.alpha,blur:S.blur/l.value,offset:_,angle:C}},m={solid:"solid",dashed:"dash",dotted:"sysDot"},y=S=>{const L=h((S==null?void 0:S.color)||"#000000");return{color:L.color,transparency:(1-L.alpha)*100,width:(S.width||1)/l.value,dashType:S.style?m[S.style]:"solid"}},R=S=>{const{type:L,target:M}=S;if(L==="web")return{url:M};if(L==="slide"){const w=t.value.findIndex(_=>_.id===M);if(w!==-1)return{slide:w+1}}return null},A=S=>{const L=/^data:image\/[^;]+;base64,/;return S.match(L)!==null};return{exporting:u,exportImage:c,exportJSON:d,exportSpecificFile:f,exportPPTX:(S,L,M)=>{var _,C,O,N,P,F,I,W,U,Z,ee,B,Y,Q,K,te;u.value=!0;const w=new YGe;if(r.value===.625?w.layout="LAYOUT_16x10":r.value===.75?w.layout="LAYOUT_4x3":r.value===.70710678?(w.defineLayout({name:"A3",width:10,height:7.0710678}),w.layout="A3"):r.value===1.41421356?(w.defineLayout({name:"A3_V",width:10,height:14.1421356}),w.layout="A3_V"):w.layout="LAYOUT_16x9",L){const{color:J,alpha:de}=h(n.value.backgroundColor);w.defineSlideMaster({title:"PPTIST_MASTER",background:{color:J,transparency:(1-de)*100}})}for(const J of S){const de=w.addSlide();if(J.background){const G=J.background;if(G.type==="image"&&G.image)A(G.image.src)?de.background={data:G.image.src}:de.background={path:G.image.src};else if(G.type==="solid"&&G.color){const Ae=h(G.color);de.background={color:Ae.color,transparency:(1-Ae.alpha)*100}}else if(G.type==="gradient"&&G.gradient){const Ae=G.gradient.colors,ue=Ae[0].color,ce=Ae[Ae.length-1].color,le=at.mix(ue,ce).toHexString(),$=h(le);de.background={color:$.color,transparency:(1-$.alpha)*100}}}if(J.remark){const Ae=new DOMParser().parseFromString(J.remark,"text/html").body.querySelectorAll("p"),ue=[];for(const ce of Ae){const le=ce.textContent;ue.push(le||"")}de.addNotes(ue.join(` +`);let t="";for(let n=0;n127&&r<2048?(t+=String.fromCharCode(r>>6|192),t+=String.fromCharCode(r&63|128)):(t+=String.fromCharCode(r>>12|224),t+=String.fromCharCode(r>>6&63|128),t+=String.fromCharCode(r&63|128))}return t},uze=e=>{let t="",n,r,i,o,a,s,l,u=0;for(e=lze(e);u>2,a=(n&3)<<4|r>>4,s=(r&15)<<2|i>>6,l=i&63,isNaN(r)?s=l=64:isNaN(i)&&(l=64),t=t+HR.charAt(o)+HR.charAt(a)+HR.charAt(s)+HR.charAt(l);return t},PB=e=>{const n=new XMLSerializer().serializeToString(e);return sze+uze(n)},p4=()=>{const e=st(),{slides:t,theme:n,viewportRatio:r,title:i,viewportSize:o}=Ve(e),a=16,s=Se(()=>96*(o.value/960)),l=Se(()=>96/72*(o.value/960)),u=he(!1),c=(S,L,M,w=!0)=>{u.value=!0;const _=L==="png"?uDe:cDe;S.querySelectorAll("foreignObject [xmlns]").forEach(O=>O.removeAttribute("xmlns")),setTimeout(()=>{const O={quality:M,width:1600};w&&(O.fontEmbedCSS=""),_(S,O).then(N=>{u.value=!1,g8.saveAs(N,`${i.value}.${L}`)}).catch(()=>{u.value=!1,pn.error("导出图片失败")})},200)},f=S=>{const L=new Blob([jO(JSON.stringify(S))],{type:""});g8.saveAs(L,`${i.value}.pptist`)},d=()=>{const S={title:i.value,width:o.value,height:o.value*r.value,slides:t.value},L=new Blob([JSON.stringify(S)],{type:""});g8.saveAs(L,`${i.value}.json`)},h=S=>{if(!S)return{alpha:0,color:"#000000"};const L=at(S),M=L.getAlpha(),w=M===0?"#ffffff":L.setAlpha(1).toHexString();return{alpha:M,color:w}},p=S=>{const L=aze(S);let M=!1,w=0;const _=[],C=(O,N={})=>{for(const P of O){if("tagName"in P&&["div","li","p"].includes(P.tagName)&&_.length){const U=_[_.length-1];U.options||(U.options={}),U.options.breakLine=!0}const I={...N},W="attributes"in P?P.attributes.find(U=>U.key==="style"):null;if(W&&W.value){const U=W.value.split(";");for(const Z of U){const[ee,B]=Z.split(": "),[Y,Q]=[Qn.trim(ee),Qn.trim(B)];Y&&Q&&(I[Y]=Q)}}if("tagName"in P){if(P.tagName==="em"&&(I["font-style"]="italic"),P.tagName==="strong"&&(I["font-weight"]="bold"),P.tagName==="sup"&&(I["vertical-align"]="super"),P.tagName==="sub"&&(I["vertical-align"]="sub"),P.tagName==="a"){const U=P.attributes.find(Z=>Z.key==="href");I.href=(U==null?void 0:U.value)||""}if(P.tagName==="ul"&&(I["list-type"]="ul"),P.tagName==="ol"&&(I["list-type"]="ol"),P.tagName==="li"&&(M=!0),P.tagName==="p"&&"attributes"in P){const U=P.attributes.find(Z=>Z.key==="data-indent");U&&U.value&&(w=+U.value)}}if("tagName"in P&&P.tagName==="br")_.push({text:"",options:{breakLine:!0}});else if("content"in P){const U=P.content.replace(/ /g," ").replace(/>/g,">").replace(/</g,"<").replace(/&/g,"&").replace(/\n/g,""),Z={};I["font-size"]&&(Z.fontSize=parseInt(I["font-size"])/l.value),I.color&&(Z.color=h(I.color).color),I["background-color"]&&(Z.highlight=h(I["background-color"]).color),I["text-decoration-line"]&&(I["text-decoration-line"].indexOf("underline")!==-1&&(Z.underline={color:Z.color||"#000000",style:"sng"}),I["text-decoration-line"].indexOf("line-through")!==-1&&(Z.strike="sngStrike")),I["text-decoration"]&&(I["text-decoration"].indexOf("underline")!==-1&&(Z.underline={color:Z.color||"#000000",style:"sng"}),I["text-decoration"].indexOf("line-through")!==-1&&(Z.strike="sngStrike")),I["vertical-align"]&&(I["vertical-align"]==="super"&&(Z.superscript=!0),I["vertical-align"]==="sub"&&(Z.subscript=!0)),I["text-align"]&&(Z.align=I["text-align"]),I["font-weight"]&&(Z.bold=I["font-weight"]==="bold"),I["font-style"]&&(Z.italic=I["font-style"]==="italic"),I["font-family"]&&(Z.fontFace=I["font-family"]),I.href&&(Z.hyperlink={url:I.href}),M&&I["list-type"]==="ol"&&(Z.bullet={type:"number",indent:(Z.fontSize||a)*1.25},Z.paraSpaceBefore=.1,M=!1),M&&I["list-type"]==="ul"&&(Z.bullet={indent:(Z.fontSize||a)*1.25},Z.paraSpaceBefore=.1,M=!1),w&&(Z.indentLevel=w,w=0),_.push({text:U,options:Z})}else"children"in P&&C(P.children,I)}};return C(L),_},v=(S,L={x:1,y:1})=>S.map(M=>{if(M.close!==void 0)return{close:!0};if(M.type==="M")return{x:M.x/s.value*L.x,y:M.y/s.value*L.y,moveTo:!0};if(M.curve){if(M.curve.type==="cubic")return{x:M.x/s.value*L.x,y:M.y/s.value*L.y,curve:{type:"cubic",x1:M.curve.x1/s.value*L.x,y1:M.curve.y1/s.value*L.y,x2:M.curve.x2/s.value*L.x,y2:M.curve.y2/s.value*L.y}};if(M.curve.type==="quadratic")return{x:M.x/s.value*L.x,y:M.y/s.value*L.y,curve:{type:"quadratic",x1:M.curve.x1/s.value*L.x,y1:M.curve.y1/s.value*L.y}}}return{x:M.x/s.value*L.x,y:M.y/s.value*L.y}}),g=S=>{const L=h(S.color),{h:M,v:w}=S;let _=4,C=45;return M===0&&w===0?(_=4,C=45):M===0?w>0?(_=w,C=90):(_=-w,C=270):w===0?M>0?(_=M,C=1):(_=-M,C=180):M>0&&w>0?(_=Math.max(M,w),C=45):M>0&&w<0?(_=Math.max(M,-w),C=315):M<0&&w>0?(_=Math.max(-M,w),C=135):M<0&&w<0&&(_=Math.max(-M,-w),C=225),{type:"outer",color:L.color.replace("#",""),opacity:L.alpha,blur:S.blur/l.value,offset:_,angle:C}},m={solid:"solid",dashed:"dash",dotted:"sysDot"},y=S=>{const L=h((S==null?void 0:S.color)||"#000000");return{color:L.color,transparency:(1-L.alpha)*100,width:(S.width||1)/l.value,dashType:S.style?m[S.style]:"solid"}},R=S=>{const{type:L,target:M}=S;if(L==="web")return{url:M};if(L==="slide"){const w=t.value.findIndex(_=>_.id===M);if(w!==-1)return{slide:w+1}}return null},A=S=>{const L=/^data:image\/[^;]+;base64,/;return S.match(L)!==null};return{exporting:u,exportImage:c,exportJSON:d,exportSpecificFile:f,exportPPTX:(S,L,M)=>{var _,C,O,N,P,F,I,W,U,Z,ee,B,Y,Q,K,te;u.value=!0;const w=new YGe;if(r.value===.625?w.layout="LAYOUT_16x10":r.value===.75?w.layout="LAYOUT_4x3":r.value===.70710678?(w.defineLayout({name:"A3",width:10,height:7.0710678}),w.layout="A3"):r.value===1.41421356?(w.defineLayout({name:"A3_V",width:10,height:14.1421356}),w.layout="A3_V"):w.layout="LAYOUT_16x9",L){const{color:J,alpha:de}=h(n.value.backgroundColor);w.defineSlideMaster({title:"PPTIST_MASTER",background:{color:J,transparency:(1-de)*100}})}for(const J of S){const de=w.addSlide();if(J.background){const G=J.background;if(G.type==="image"&&G.image)A(G.image.src)?de.background={data:G.image.src}:de.background={path:G.image.src};else if(G.type==="solid"&&G.color){const Ae=h(G.color);de.background={color:Ae.color,transparency:(1-Ae.alpha)*100}}else if(G.type==="gradient"&&G.gradient){const Ae=G.gradient.colors,ue=Ae[0].color,ce=Ae[Ae.length-1].color,le=at.mix(ue,ce).toHexString(),$=h(le);de.background={color:$.color,transparency:(1-$.alpha)*100}}}if(J.remark){const Ae=new DOMParser().parseFromString(J.remark,"text/html").body.querySelectorAll("p"),ue=[];for(const ce of Ae){const le=ce.textContent;ue.push(le||"")}de.addNotes(ue.join(` `))}if(J.elements){for(const G of J.elements)if(G.type==="text"){const Ae=p(G.content),ue={x:G.left/s.value,y:G.top/s.value,w:G.width/s.value,h:G.height/s.value,fontSize:a/l.value,fontFace:"微软雅黑",color:"#000000",valign:"top",margin:10/l.value,paraSpaceBefore:5/l.value,lineSpacingMultiple:1.5/1.25,autoFit:!0};if(G.rotate&&(ue.rotate=G.rotate),G.wordSpace&&(ue.charSpacing=G.wordSpace/l.value),G.lineHeight&&(ue.lineSpacingMultiple=G.lineHeight/1.25),G.fill){const ce=h(G.fill),le=G.opacity===void 0?1:G.opacity;ue.fill={color:ce.color,transparency:(1-ce.alpha*le)*100}}G.defaultColor&&(ue.color=h(G.defaultColor).color),G.defaultFontName&&(ue.fontFace=G.defaultFontName),G.shadow&&(ue.shadow=g(G.shadow)),(_=G.outline)!=null&&_.width&&(ue.line=y(G.outline)),G.opacity!==void 0&&(ue.transparency=(1-G.opacity)*100),G.paragraphSpace!==void 0&&(ue.paraSpaceBefore=G.paragraphSpace/l.value),G.vertical&&(ue.vert="eaVert"),de.addText(Ae,ue)}else if(G.type==="image"){const Ae={x:G.left/s.value,y:G.top/s.value,w:G.width/s.value,h:G.height/s.value};if(A(G.src)?Ae.data=G.src:Ae.path=G.src,G.flipH&&(Ae.flipH=G.flipH),G.flipV&&(Ae.flipV=G.flipV),G.rotate&&(Ae.rotate=G.rotate),G.link){const ue=R(G.link);ue&&(Ae.hyperlink=ue)}if((C=G.filters)!=null&&C.opacity&&(Ae.transparency=100-parseInt((O=G.filters)==null?void 0:O.opacity)),G.clip){G.clip.shape==="ellipse"&&(Ae.rounding=!0);const[ue,ce]=G.clip.range,[le,$]=ue,[X,j]=ce,se=G.width/((X-le)/s.value),ne=G.height/((j-$)/s.value);Ae.w=se/s.value,Ae.h=ne/s.value,Ae.sizing={type:"crop",x:le/s.value*se/s.value,y:$/s.value*ne/s.value,w:(X-le)/s.value*se/s.value,h:(j-$)/s.value*ne/s.value}}de.addImage(Ae)}else if(G.type==="shape"){if(G.special){const Ae=document.querySelector(`.thumbnail-list .base-element-${G.id} svg`);if(Ae.clientWidth<1||Ae.clientHeight<1)continue;const ce={data:PB(Ae),x:G.left/s.value,y:G.top/s.value,w:G.width/s.value,h:G.height/s.value};if(G.rotate&&(ce.rotate=G.rotate),G.link){const le=R(G.link);le&&(ce.hyperlink=le)}de.addImage(ce)}else{const Ae={x:G.width/G.viewBox[0],y:G.height/G.viewBox[1]},ue=v(gX(G.path),Ae);let ce=h(G.fill);if(G.gradient){const X=G.gradient.colors,j=X[0].color,se=X[X.length-1].color,ne=at.mix(j,se).toHexString();ce=h(ne)}const le=G.opacity===void 0?1:G.opacity,$={x:G.left/s.value,y:G.top/s.value,w:G.width/s.value,h:G.height/s.value,fill:{color:ce.color,transparency:(1-ce.alpha*le)*100},points:ue};if(G.flipH&&($.flipH=G.flipH),G.flipV&&($.flipV=G.flipV),G.shadow&&($.shadow=g(G.shadow)),(N=G.outline)!=null&&N.width&&($.line=y(G.outline)),G.rotate&&($.rotate=G.rotate),G.link){const X=R(G.link);X&&($.hyperlink=X)}de.addShape("custGeom",$)}if(G.text){const Ae=p(G.text.content),ue={x:G.left/s.value,y:G.top/s.value,w:G.width/s.value,h:G.height/s.value,fontSize:a/l.value,fontFace:"微软雅黑",color:"#000000",paraSpaceBefore:5/l.value,valign:G.text.align};G.rotate&&(ue.rotate=G.rotate),G.text.defaultColor&&(ue.color=h(G.text.defaultColor).color),G.text.defaultFontName&&(ue.fontFace=G.text.defaultFontName),de.addText(Ae,ue)}}else if(G.type==="line"){const Ae=ek(G),ue=v(gX(Ae)),{minX:ce,maxX:le,minY:$,maxY:X}=ps(G),j=h(G.color),se={x:G.left/s.value,y:G.top/s.value,w:(le-ce)/s.value,h:(X-$)/s.value,line:{color:j.color,transparency:(1-j.alpha)*100,width:G.width/l.value,dashType:m[G.style],beginArrowType:G.points[0]?"arrow":"none",endArrowType:G.points[1]?"arrow":"none"},points:ue};G.shadow&&(se.shadow=g(G.shadow)),de.addShape("custGeom",se)}else if(G.type==="chart"){const Ae=[];for(let j=0;jh(j).color);else if(G.themeColors.length===1)ue=at(G.themeColors[0]).analogous(10).map(j=>h(j.toHexString()).color);else{const j=G.themeColors.length,se=at(G.themeColors[j-1]).analogous(11-j).map(ne=>ne.toHexString());ue=[...G.themeColors.slice(0,j-1),...se].map(ne=>h(ne).color)}const ce={x:G.left/s.value,y:G.top/s.value,w:G.width/s.value,h:G.height/s.value,chartColors:G.chartType==="pie"||G.chartType==="ring"?ue:ue.slice(0,G.data.series.length)},le=h(G.textColor||"#000000").color;ce.catAxisLabelColor=le,ce.valAxisLabelColor=le;const $=14/l.value;if(ce.catAxisLabelFontSize=$,ce.valAxisLabelFontSize=$,G.fill||G.outline){const j={};G.fill&&(j.fill={color:h(G.fill).color}),G.outline&&(j.border={pt:G.outline.width/l.value,color:h(G.outline.color).color}),ce.plotArea=j}(G.data.series.length>1&&G.chartType!=="scatter"||G.chartType==="pie"||G.chartType==="ring")&&(ce.showLegend=!0,ce.legendPos="b",ce.legendColor=le,ce.legendFontSize=$);let X=w.ChartType.bar;G.chartType==="bar"?(X=w.ChartType.bar,ce.barDir="col",(P=G.options)!=null&&P.stack&&(ce.barGrouping="stacked")):G.chartType==="column"?(X=w.ChartType.bar,ce.barDir="bar",(F=G.options)!=null&&F.stack&&(ce.barGrouping="stacked")):G.chartType==="line"?(X=w.ChartType.line,(I=G.options)!=null&&I.lineSmooth&&(ce.lineSmooth=!0)):G.chartType==="area"?X=w.ChartType.area:G.chartType==="radar"?X=w.ChartType.radar:G.chartType==="scatter"?(X=w.ChartType.scatter,ce.lineSize=0):G.chartType==="pie"?X=w.ChartType.pie:G.chartType==="ring"&&(X=w.ChartType.doughnut,ce.holeSize=60),de.addChart(X,Ae,ce)}else if(G.type==="table"){const Ae=[];for(let j=0;j1||re.rowspan>1)for(let ae=j;aeh(j)));for(let j=0;jG.width*j/s.value)};G.theme&&(X.fill={color:"#ffffff"}),G.outline.width&&G.outline.color&&(X.border={type:G.outline.style==="solid"?"solid":"dash",pt:G.outline.width/l.value,color:h(G.outline.color).color}),de.addTable(ue,X)}else if(G.type==="latex"){const Ae=document.querySelector(`.thumbnail-list .base-element-${G.id} svg`),ce={data:PB(Ae),x:G.left/s.value,y:G.top/s.value,w:G.width/s.value,h:G.height/s.value};if(G.link){const le=R(G.link);le&&(ce.hyperlink=le)}de.addImage(ce)}else if(!M&&(G.type==="video"||G.type==="audio")){const Ae={x:G.left/s.value,y:G.top/s.value,w:G.width/s.value,h:G.height/s.value,path:G.src,type:G.type};G.type==="video"&&G.poster&&(Ae.cover=G.poster);const ue=G.src.match(/\.([a-zA-Z0-9]+)(?:[\?#]|$)/);ue&&ue[1]?Ae.extn=ue[1]:G.ext&&(Ae.extn=G.ext);const ce=["avi","mp4","m4v","mov","wmv"],le=["mp3","m4a","mp4","wav","wma"];Ae.extn&&[...ce,...le].includes(Ae.extn)&&de.addMedia(Ae)}}}setTimeout(()=>{w.writeFile({fileName:`${i.value}.pptx`}).then(()=>u.value=!1).catch(()=>{u.value=!1,pn.error("导出失败")})},200)}}},v4=e=>(rn("data-v-32b43d99"),e=e(),on(),e),cze={class:"export-img-dialog"},fze={class:"thumbnails-view"},dze={class:"configs"},hze={class:"row"},pze=v4(()=>V("div",{class:"title"},"导出格式:",-1)),vze={class:"row"},gze=v4(()=>V("div",{class:"title"},"导出范围:",-1)),mze={key:0,class:"row"},yze=["data-range"],Aze={class:"row"},Rze=v4(()=>V("div",{class:"title"},"图片质量:",-1)),bze={class:"row"},xze=v4(()=>V("div",{class:"title"},"忽略在线字体:",-1)),Sze={class:"config-item"},wze={class:"btns"},Mze=We({__name:"ExportImage",emits:["close"],setup(e,{emit:t}){const n=t,{slides:r,currentSlide:i}=Ve(st()),o=he(),a=he("all"),s=he([1,r.value.length]),l=he("jpeg"),u=he(1),c=he(!0),f=Se(()=>a.value==="all"?r.value:a.value==="current"?[i.value]:r.value.filter((v,g)=>{const[m,y]=s.value;return g>=m-1&&g<=y-1})),{exportImage:d,exporting:h}=p4(),p=()=>{o.value&&d(o.value,l.value,u.value,c.value)};return(v,g)=>{const m=_n("tooltip");return D(),q("div",cze,[V("div",fze,[V("div",{class:"thumbnails",ref_key:"imageThumbnailsRef",ref:o},[(D(!0),q(Ee,null,qe(f.value,y=>(D(),Oe(vl,{class:"thumbnail",key:y.id,slide:y,size:1600},null,8,["slide"]))),128))],512)]),V("div",dze,[V("div",hze,[pze,k(bu,{class:"config-item",value:l.value,"onUpdate:value":g[0]||(g[0]=y=>l.value=y)},{default:ie(()=>[k($n,{style:{width:"50%"},value:"jpeg"},{default:ie(()=>[Ue("JPEG")]),_:1}),k($n,{style:{width:"50%"},value:"png"},{default:ie(()=>[Ue("PNG")]),_:1})]),_:1},8,["value"])]),V("div",vze,[gze,k(bu,{class:"config-item",value:a.value,"onUpdate:value":g[1]||(g[1]=y=>a.value=y)},{default:ie(()=>[k($n,{style:{width:"33.33%"},value:"all"},{default:ie(()=>[Ue("全部")]),_:1}),k($n,{style:{width:"33.33%"},value:"current"},{default:ie(()=>[Ue("当前页")]),_:1}),k($n,{style:{width:"33.33%"},value:"custom"},{default:ie(()=>[Ue("自定义")]),_:1})]),_:1},8,["value"])]),a.value==="custom"?(D(),q("div",mze,[V("div",{class:"title","data-range":`(${s.value[0]} ~ ${s.value[1]})`},"自定义范围:",8,yze),k(Gi,{class:"config-item",range:"",min:1,max:z(r).length,step:1,value:s.value,"onUpdate:value":g[2]||(g[2]=y=>s.value=y)},null,8,["max","value"])])):Ye("",!0),V("div",Aze,[Rze,k(Gi,{class:"config-item",min:0,max:1,step:.1,value:u.value,"onUpdate:value":g[3]||(g[3]=y=>u.value=y)},null,8,["value"])]),V("div",bze,[xze,V("div",Sze,[Ge(k(Is,{value:c.value,"onUpdate:value":g[4]||(g[4]=y=>c.value=y)},null,8,["value"]),[[m,"导出时默认忽略在线字体,若您在幻灯片中使用了在线字体,且希望导出后保留相关样式,可选择关闭【忽略在线字体】选项,但要注意这将会增加导出用时。"]])])])]),V("div",wze,[k(et,{class:"btn export",type:"primary",onClick:g[5]||(g[5]=y=>p())},{default:ie(()=>[Ue("导出图片")]),_:1}),k(et,{class:"btn close",onClick:g[6]||(g[6]=y=>n("close"))},{default:ie(()=>[Ue("关闭")]),_:1})]),k(ty,{loading:z(h),tip:"正在导出..."},null,8,["loading"])])}}}),Lze=Be(Mze,[["__scopeId","data-v-32b43d99"]]),Tze={class:"export-json-dialog"},_ze={class:"preview"},Oze={class:"btns"},kze=We({__name:"ExportJSON",emits:["close"],setup(e,{emit:t}){const n=t,{slides:r,viewportRatio:i,title:o,viewportSize:a}=Ve(st()),{exportJSON:s}=p4(),l=Se(()=>({title:o.value,width:a.value,height:a.value*i.value,slides:r.value}));return(u,c)=>(D(),q("div",Tze,[V("div",_ze,[V("pre",null,dt(l.value),1)]),V("div",Oze,[k(et,{class:"btn export",type:"primary",onClick:c[0]||(c[0]=f=>z(s)())},{default:ie(()=>[Ue("导出 JSON")]),_:1}),k(et,{class:"btn close",onClick:c[1]||(c[1]=f=>n("close"))},{default:ie(()=>[Ue("关闭")]),_:1})])]))}}),Pze=Be(kze,[["__scopeId","data-v-aaf5a228"]]),Cze=()=>{const e=document.createElement("iframe");return e.style.width="0",e.style.height="0",e.style.position="absolute",e.style.right="0",e.style.top="0",e.style.border="0",document.body.appendChild(e),e},Ize=(e,t,n)=>{const r="";let i="";const o=document.styleSheets;if(o){for(const f of o)if(f.cssRules)for(const d of f.cssRules)i+=d.cssText}const{width:a,height:s,margin:l}=n,u=` - - + +