123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- import{i as At,a as cf,b as Xo,g as Ll,r as Ro,e as xu,c as df,d as To,f as Ts,h as Rf,j as Vo,L as Ba,M as as,k as $u,t as ol,S as is,l as ff,m as za,n as Du,o as zn,p as pf,q as Vs,s as H,u as ga,v as Io,w as Ge,x as Yo,y as Gt,z as rs,A as us,B as qe,C as hf,D as ki,E as Pe,F as Co,G as Sa,H as vf,I as Ol,J as Bu,K as Ze,N as kt,O as zu,P as v,Q as eo,R as _,T as mf,U as Rt,V as Mf,W as Do,X as gf,Y as Sf,Z as et,_ as Ot,$ as an,a0 as cs,a1 as ju,a2 as ao,a3 as Bo,a4 as hn,a5 as q,a6 as Of,a7 as Pf,a8 as qu,a9 as Nf,aa as Xf,ab as Qn,ac as we,ad as Zn,ae as g,af as b,ag as j,ah as ie,ai as E,aj as We,ak as m,al as k,am as Q,an as yt,ao as It,ap as to,aq as N,ar as ja,as as Fe,at as Me,au as ee,av as tt,aw as ln,ax as _n,ay as Ct,az as de,aA as Nt,aB as io,aC as fo,aD as Tf,aE as Vf,aF as yf,aG as Lf,aH as ec,aI as yo,aJ as tc,aK as bf,aL as on,aM as qa,aN as If,aO as Yf,aP as Wf,aQ as ds,aR as jt,aS as Hn,aT as nc,aU as ys,aV as oc,aW as qs,aX as Uf,aY as te,aZ as ze,a_ as me,a$ as Yt,b0 as lc,b1 as Qf,b2 as sc,b3 as Ff,b4 as Ji,b5 as Zf,b6 as Af,b7 as Kf,b8 as _f,b9 as ac,ba as ic,bb as Hf,bc as Cf,bd as Gf,be as Ef,bf as xi,bg as wf,bh as kf,bi as $i,bj as Jf,bk as rc,bl as xf,bm as $f,bn as Di,bo as Oe,bp as uc,bq as cc,br as Bi,bs as ei,bt as vt,bu as Xe,bv as Ue,bw as oe,bx as st,by as Mn,bz as mt,bA as Df,bB as ea,bC as Bf,bD as zf,bE as es,bF as jf,bG as fe,bH as Je,bI as xe,bJ as ut,bK as Zt,bL as vn,bM as $t,bN as dc,bO as ot,bP as Ls,bQ as ti,bR as qf,bS as Rc,bT as ll,bU as fc,bV as ep,bW as Oa,bX as pc,bY as bs,bZ as hc,b_ as tp,b$ as vc,c0 as St,c1 as np,c2 as op,c3 as lp,c4 as sp,c5 as ap,c6 as ip,c7 as rp,c8 as up,c9 as cp,ca as mc,cb as dp,cc as Rs,cd as Rp,ce as Pa,cf as Tt,cg as Pn,ch as zi,ci as fp,cj as pp,ck as hp,cl as vp,cm as mp,cn as ke,co as Mp,cp as kl,cq as gp,cr as bl,cs as Sp,ct as gt,cu as Op,cv as Pp,cw as Np,cx as Xp,cy as ji}from"./index-C1DTprc-.js";import{u as Il,c as Na,g as Fn,a as Tp,p as Xa,i as Vp,K as Ye,m as Wt,b as Is,d as yp,j as Lp,e as bp,H as Ip,P as Ke,f as fs,h as ta,k as An,l as Ys,n as Mc,o as Yp,q as Wp,_ as Up,E as gc,r as Qp,s as Fp,t as Zp,v as ps,C as Ap,w as Kp,x as _p,y as Hp,z as Cp,V as Gp,A as Ep,B as wp,D as ct,F as xo,G as kp,I as Ce,T as ni,J as Jp,L as fl,M as xp,N as $p,O as Dp,Q as Bp,R as zp,S as jp,U as qi,W as qp,X as Vn,Y as eh,Z as Sc,$ as th,a0 as er,a1 as tr,a2 as nr,a3 as Zo,a4 as na,a5 as nh,a6 as oh,a7 as wo,a8 as oi,a9 as lh}from"./index-k5J5Npuv.js";import{C as Ta,a as sh,S as sl,b as Oc,D as Pc}from"./vuedraggable.umd-Dl0fCOhv.js";import{u as ah,a as Nc,b as Xc,c as li,d as Yl,f as or,e as Pl,E as ih}from"./index-ZQt3X5xI.js";const rh='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',uh=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,lr=e=>Array.from(e.querySelectorAll(rh)).filter(t=>ch(t)&&uh(t)),ch=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},Wn=(e,t,{checkForDefaultPrevented:n=!0}={})=>l=>{const s=e==null?void 0:e(l);if(n===!1||!s)return t==null?void 0:t(l)},dh=()=>At&&/firefox/i.test(window.navigator.userAgent);var Rh=/\s/;function fh(e){for(var t=e.length;t--&&Rh.test(e.charAt(t)););return t}var ph=/^\s+/;function hh(e){return e&&e.slice(0,fh(e)+1).replace(ph,"")}var sr=NaN,vh=/^[-+]0x[0-9a-f]+$/i,mh=/^0b[01]+$/i,Mh=/^0o[0-7]+$/i,gh=parseInt;function ar(e){if(typeof e=="number")return e;if(cf(e))return sr;if(Xo(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Xo(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=hh(e);var n=mh.test(e);return n||Mh.test(e)?gh(e.slice(2),n?2:8):vh.test(e)?sr:+e}function Sh(e){return e}var Va=Ll(Ro,"WeakMap"),ir=Object.create,Oh=function(){function e(){}return function(t){if(!Xo(t))return{};if(ir)return ir(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Ph(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n<o;)t[n]=e[n];return t}var rr=function(){try{var e=Ll(Object,"defineProperty");return e({},"",{}),e}catch{}}();function Nh(e,t){for(var n=-1,o=e==null?0:e.length;++n<o&&t(e[n],n,e)!==!1;);return e}function Xh(e,t,n,o){e.length;for(var l=n+1;l--;)if(t(e[l],l,e))return l;return-1}var Th=9007199254740991,Vh=/^(?:0|[1-9]\d*)$/;function Tc(e,t){var n=typeof e;return t=t??Th,!!t&&(n=="number"||n!="symbol"&&Vh.test(e))&&e>-1&&e%1==0&&e<t}function Vc(e,t,n){t=="__proto__"&&rr?rr(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var yh=Object.prototype,Lh=yh.hasOwnProperty;function yc(e,t,n){var o=e[t];(!(Lh.call(e,t)&&xu(o,n))||n===void 0&&!(t in e))&&Vc(e,t,n)}function Ws(e,t,n,o){var l=!n;n||(n={});for(var s=-1,a=t.length;++s<a;){var i=t[s],u=void 0;u===void 0&&(u=e[i]),l?Vc(n,i,u):yc(n,i,u)}return n}var bh=9007199254740991;function si(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=bh}function Lc(e){return e!=null&&si(e.length)&&!df(e)}var Ih=Object.prototype;function ai(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Ih;return e===n}function Yh(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}var Wh="[object Arguments]";function ur(e){return To(e)&&Ts(e)==Wh}var bc=Object.prototype,Uh=bc.hasOwnProperty,Qh=bc.propertyIsEnumerable,Ic=ur(function(){return arguments}())?ur:function(e){return To(e)&&Uh.call(e,"callee")&&!Qh.call(e,"callee")};function Fh(){return!1}var Yc=typeof exports=="object"&&exports&&!exports.nodeType&&exports,cr=Yc&&typeof module=="object"&&module&&!module.nodeType&&module,Zh=cr&&cr.exports===Yc,dr=Zh?Ro.Buffer:void 0,Ah=dr?dr.isBuffer:void 0,hs=Ah||Fh,Kh="[object Arguments]",_h="[object Array]",Hh="[object Boolean]",Ch="[object Date]",Gh="[object Error]",Eh="[object Function]",wh="[object Map]",kh="[object Number]",Jh="[object Object]",xh="[object RegExp]",$h="[object Set]",Dh="[object String]",Bh="[object WeakMap]",zh="[object ArrayBuffer]",jh="[object DataView]",qh="[object Float32Array]",ev="[object Float64Array]",tv="[object Int8Array]",nv="[object Int16Array]",ov="[object Int32Array]",lv="[object Uint8Array]",sv="[object Uint8ClampedArray]",av="[object Uint16Array]",iv="[object Uint32Array]",it={};it[qh]=it[ev]=it[tv]=it[nv]=it[ov]=it[lv]=it[sv]=it[av]=it[iv]=!0;it[Kh]=it[_h]=it[zh]=it[Hh]=it[jh]=it[Ch]=it[Gh]=it[Eh]=it[wh]=it[kh]=it[Jh]=it[xh]=it[$h]=it[Dh]=it[Bh]=!1;function rv(e){return To(e)&&si(e.length)&&!!it[Ts(e)]}function ii(e){return function(t){return e(t)}}var Wc=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ml=Wc&&typeof module=="object"&&module&&!module.nodeType&&module,uv=Ml&&Ml.exports===Wc,oa=uv&&Rf.process,zo=function(){try{var e=Ml&&Ml.require&&Ml.require("util").types;return e||oa&&oa.binding&&oa.binding("util")}catch{}}(),Rr=zo&&zo.isTypedArray,Uc=Rr?ii(Rr):rv,cv=Object.prototype,dv=cv.hasOwnProperty;function Qc(e,t){var n=Vo(e),o=!n&&Ic(e),l=!n&&!o&&hs(e),s=!n&&!o&&!l&&Uc(e),a=n||o||l||s,i=a?Yh(e.length,String):[],u=i.length;for(var r in e)(t||dv.call(e,r))&&!(a&&(r=="length"||l&&(r=="offset"||r=="parent")||s&&(r=="buffer"||r=="byteLength"||r=="byteOffset")||Tc(r,u)))&&i.push(r);return i}function Fc(e,t){return function(n){return e(t(n))}}var Rv=Fc(Object.keys,Object),fv=Object.prototype,pv=fv.hasOwnProperty;function hv(e){if(!ai(e))return Rv(e);var t=[];for(var n in Object(e))pv.call(e,n)&&n!="constructor"&&t.push(n);return t}function Us(e){return Lc(e)?Qc(e):hv(e)}function vv(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var mv=Object.prototype,Mv=mv.hasOwnProperty;function gv(e){if(!Xo(e))return vv(e);var t=ai(e),n=[];for(var o in e)o=="constructor"&&(t||!Mv.call(e,o))||n.push(o);return n}function ri(e){return Lc(e)?Qc(e,!0):gv(e)}function Zc(e,t){for(var n=-1,o=t.length,l=e.length;++n<o;)e[l+n]=t[n];return e}var Ac=Fc(Object.getPrototypeOf,Object);function Sv(){this.__data__=new Ba,this.size=0}function Ov(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Pv(e){return this.__data__.get(e)}function Nv(e){return this.__data__.has(e)}var Xv=200;function Tv(e,t){var n=this.__data__;if(n instanceof Ba){var o=n.__data__;if(!as||o.length<Xv-1)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new $u(o)}return n.set(e,t),this.size=n.size,this}function yn(e){var t=this.__data__=new Ba(e);this.size=t.size}yn.prototype.clear=Sv;yn.prototype.delete=Ov;yn.prototype.get=Pv;yn.prototype.has=Nv;yn.prototype.set=Tv;function Vv(e,t){return e&&Ws(t,Us(t),e)}function yv(e,t){return e&&Ws(t,ri(t),e)}var Kc=typeof exports=="object"&&exports&&!exports.nodeType&&exports,fr=Kc&&typeof module=="object"&&module&&!module.nodeType&&module,Lv=fr&&fr.exports===Kc,pr=Lv?Ro.Buffer:void 0,hr=pr?pr.allocUnsafe:void 0;function bv(e,t){if(t)return e.slice();var n=e.length,o=hr?hr(n):new e.constructor(n);return e.copy(o),o}function Iv(e,t){for(var n=-1,o=e==null?0:e.length,l=0,s=[];++n<o;){var a=e[n];t(a,n,e)&&(s[l++]=a)}return s}function _c(){return[]}var Yv=Object.prototype,Wv=Yv.propertyIsEnumerable,vr=Object.getOwnPropertySymbols,ui=vr?function(e){return e==null?[]:(e=Object(e),Iv(vr(e),function(t){return Wv.call(e,t)}))}:_c;function Uv(e,t){return Ws(e,ui(e),t)}var Qv=Object.getOwnPropertySymbols,Hc=Qv?function(e){for(var t=[];e;)Zc(t,ui(e)),e=Ac(e);return t}:_c;function Fv(e,t){return Ws(e,Hc(e),t)}function Cc(e,t,n){var o=t(e);return Vo(e)?o:Zc(o,n(e))}function ya(e){return Cc(e,Us,ui)}function Zv(e){return Cc(e,ri,Hc)}var La=Ll(Ro,"DataView"),ba=Ll(Ro,"Promise"),Ia=Ll(Ro,"Set"),mr="[object Map]",Av="[object Object]",Mr="[object Promise]",gr="[object Set]",Sr="[object WeakMap]",Or="[object DataView]",Kv=ol(La),_v=ol(as),Hv=ol(ba),Cv=ol(Ia),Gv=ol(Va),Rn=Ts;(La&&Rn(new La(new ArrayBuffer(1)))!=Or||as&&Rn(new as)!=mr||ba&&Rn(ba.resolve())!=Mr||Ia&&Rn(new Ia)!=gr||Va&&Rn(new Va)!=Sr)&&(Rn=function(e){var t=Ts(e),n=t==Av?e.constructor:void 0,o=n?ol(n):"";if(o)switch(o){case Kv:return Or;case _v:return mr;case Hv:return Mr;case Cv:return gr;case Gv:return Sr}return t});var Ev=Object.prototype,wv=Ev.hasOwnProperty;function kv(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&wv.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var vs=Ro.Uint8Array;function ci(e){var t=new e.constructor(e.byteLength);return new vs(t).set(new vs(e)),t}function Jv(e,t){var n=t?ci(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var xv=/\w*$/;function $v(e){var t=new e.constructor(e.source,xv.exec(e));return t.lastIndex=e.lastIndex,t}var Pr=is?is.prototype:void 0,Nr=Pr?Pr.valueOf:void 0;function Dv(e){return Nr?Object(Nr.call(e)):{}}function Bv(e,t){var n=t?ci(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var zv="[object Boolean]",jv="[object Date]",qv="[object Map]",em="[object Number]",tm="[object RegExp]",nm="[object Set]",om="[object String]",lm="[object Symbol]",sm="[object ArrayBuffer]",am="[object DataView]",im="[object Float32Array]",rm="[object Float64Array]",um="[object Int8Array]",cm="[object Int16Array]",dm="[object Int32Array]",Rm="[object Uint8Array]",fm="[object Uint8ClampedArray]",pm="[object Uint16Array]",hm="[object Uint32Array]";function vm(e,t,n){var o=e.constructor;switch(t){case sm:return ci(e);case zv:case jv:return new o(+e);case am:return Jv(e,n);case im:case rm:case um:case cm:case dm:case Rm:case fm:case pm:case hm:return Bv(e,n);case qv:return new o;case em:case om:return new o(e);case tm:return $v(e);case nm:return new o;case lm:return Dv(e)}}function mm(e){return typeof e.constructor=="function"&&!ai(e)?Oh(Ac(e)):{}}var Mm="[object Map]";function gm(e){return To(e)&&Rn(e)==Mm}var Xr=zo&&zo.isMap,Sm=Xr?ii(Xr):gm,Om="[object Set]";function Pm(e){return To(e)&&Rn(e)==Om}var Tr=zo&&zo.isSet,Nm=Tr?ii(Tr):Pm,Xm=1,Tm=2,Vm=4,Gc="[object Arguments]",ym="[object Array]",Lm="[object Boolean]",bm="[object Date]",Im="[object Error]",Ec="[object Function]",Ym="[object GeneratorFunction]",Wm="[object Map]",Um="[object Number]",wc="[object Object]",Qm="[object RegExp]",Fm="[object Set]",Zm="[object String]",Am="[object Symbol]",Km="[object WeakMap]",_m="[object ArrayBuffer]",Hm="[object DataView]",Cm="[object Float32Array]",Gm="[object Float64Array]",Em="[object Int8Array]",wm="[object Int16Array]",km="[object Int32Array]",Jm="[object Uint8Array]",xm="[object Uint8ClampedArray]",$m="[object Uint16Array]",Dm="[object Uint32Array]",at={};at[Gc]=at[ym]=at[_m]=at[Hm]=at[Lm]=at[bm]=at[Cm]=at[Gm]=at[Em]=at[wm]=at[km]=at[Wm]=at[Um]=at[wc]=at[Qm]=at[Fm]=at[Zm]=at[Am]=at[Jm]=at[xm]=at[$m]=at[Dm]=!0;at[Im]=at[Ec]=at[Km]=!1;function ts(e,t,n,o,l,s){var a,i=t&Xm,u=t&Tm,r=t&Vm;if(a!==void 0)return a;if(!Xo(e))return e;var c=Vo(e);if(c){if(a=kv(e),!i)return Ph(e,a)}else{var d=Rn(e),R=d==Ec||d==Ym;if(hs(e))return bv(e,i);if(d==wc||d==Gc||R&&!l){if(a=u||R?{}:mm(e),!i)return u?Fv(e,yv(a,e)):Uv(e,Vv(a,e))}else{if(!at[d])return l?e:{};a=vm(e,d,i)}}s||(s=new yn);var p=s.get(e);if(p)return p;s.set(e,a),Nm(e)?e.forEach(function(P){a.add(ts(P,t,n,P,e,s))}):Sm(e)&&e.forEach(function(P,O){a.set(O,ts(P,t,n,O,e,s))});var f=r?u?Zv:ya:u?ri:Us,h=c?void 0:f(e);return Nh(h||e,function(P,O){h&&(O=P,P=e[O]),yc(a,O,ts(P,t,n,O,e,s))}),a}var Bm=1,zm=4;function Vr(e){return ts(e,Bm|zm)}var jm="__lodash_hash_undefined__";function qm(e){return this.__data__.set(e,jm),this}function eM(e){return this.__data__.has(e)}function ms(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new $u;++t<n;)this.add(e[t])}ms.prototype.add=ms.prototype.push=qm;ms.prototype.has=eM;function tM(e,t){for(var n=-1,o=e==null?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1}function nM(e,t){return e.has(t)}var oM=1,lM=2;function kc(e,t,n,o,l,s){var a=n&oM,i=e.length,u=t.length;if(i!=u&&!(a&&u>i))return!1;var r=s.get(e),c=s.get(t);if(r&&c)return r==t&&c==e;var d=-1,R=!0,p=n&lM?new ms:void 0;for(s.set(e,t),s.set(t,e);++d<i;){var f=e[d],h=t[d];if(o)var P=a?o(h,f,d,t,e,s):o(f,h,d,e,t,s);if(P!==void 0){if(P)continue;R=!1;break}if(p){if(!tM(t,function(O,L){if(!nM(p,L)&&(f===O||l(f,O,n,o,s)))return p.push(L)})){R=!1;break}}else if(!(f===h||l(f,h,n,o,s))){R=!1;break}}return s.delete(e),s.delete(t),R}function sM(e){var t=-1,n=Array(e.size);return e.forEach(function(o,l){n[++t]=[l,o]}),n}function aM(e){var t=-1,n=Array(e.size);return e.forEach(function(o){n[++t]=o}),n}var iM=1,rM=2,uM="[object Boolean]",cM="[object Date]",dM="[object Error]",RM="[object Map]",fM="[object Number]",pM="[object RegExp]",hM="[object Set]",vM="[object String]",mM="[object Symbol]",MM="[object ArrayBuffer]",gM="[object DataView]",yr=is?is.prototype:void 0,la=yr?yr.valueOf:void 0;function SM(e,t,n,o,l,s,a){switch(n){case gM:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case MM:return!(e.byteLength!=t.byteLength||!s(new vs(e),new vs(t)));case uM:case cM:case fM:return xu(+e,+t);case dM:return e.name==t.name&&e.message==t.message;case pM:case vM:return e==t+"";case RM:var i=sM;case hM:var u=o&iM;if(i||(i=aM),e.size!=t.size&&!u)return!1;var r=a.get(e);if(r)return r==t;o|=rM,a.set(e,t);var c=kc(i(e),i(t),o,l,s,a);return a.delete(e),c;case mM:if(la)return la.call(e)==la.call(t)}return!1}var OM=1,PM=Object.prototype,NM=PM.hasOwnProperty;function XM(e,t,n,o,l,s){var a=n&OM,i=ya(e),u=i.length,r=ya(t),c=r.length;if(u!=c&&!a)return!1;for(var d=u;d--;){var R=i[d];if(!(a?R in t:NM.call(t,R)))return!1}var p=s.get(e),f=s.get(t);if(p&&f)return p==t&&f==e;var h=!0;s.set(e,t),s.set(t,e);for(var P=a;++d<u;){R=i[d];var O=e[R],L=t[R];if(o)var S=a?o(L,O,R,t,e,s):o(O,L,R,e,t,s);if(!(S===void 0?O===L||l(O,L,n,o,s):S)){h=!1;break}P||(P=R=="constructor")}if(h&&!P){var X=e.constructor,M=t.constructor;X!=M&&"constructor"in e&&"constructor"in t&&!(typeof X=="function"&&X instanceof X&&typeof M=="function"&&M instanceof M)&&(h=!1)}return s.delete(e),s.delete(t),h}var TM=1,Lr="[object Arguments]",br="[object Array]",Jl="[object Object]",VM=Object.prototype,Ir=VM.hasOwnProperty;function yM(e,t,n,o,l,s){var a=Vo(e),i=Vo(t),u=a?br:Rn(e),r=i?br:Rn(t);u=u==Lr?Jl:u,r=r==Lr?Jl:r;var c=u==Jl,d=r==Jl,R=u==r;if(R&&hs(e)){if(!hs(t))return!1;a=!0,c=!1}if(R&&!c)return s||(s=new yn),a||Uc(e)?kc(e,t,n,o,l,s):SM(e,t,u,n,o,l,s);if(!(n&TM)){var p=c&&Ir.call(e,"__wrapped__"),f=d&&Ir.call(t,"__wrapped__");if(p||f){var h=p?e.value():e,P=f?t.value():t;return s||(s=new yn),l(h,P,n,o,s)}}return R?(s||(s=new yn),XM(e,t,n,o,l,s)):!1}function Qs(e,t,n,o,l){return e===t?!0:e==null||t==null||!To(e)&&!To(t)?e!==e&&t!==t:yM(e,t,n,o,Qs,l)}var LM=1,bM=2;function IM(e,t,n,o){var l=n.length,s=l;if(e==null)return!s;for(e=Object(e);l--;){var a=n[l];if(a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++l<s;){a=n[l];var i=a[0],u=e[i],r=a[1];if(a[2]){if(u===void 0&&!(i in e))return!1}else{var c=new yn,d;if(!(d===void 0?Qs(r,u,LM|bM,o,c):d))return!1}}return!0}function Jc(e){return e===e&&!Xo(e)}function YM(e){for(var t=Us(e),n=t.length;n--;){var o=t[n],l=e[o];t[n]=[o,l,Jc(l)]}return t}function xc(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function WM(e){var t=YM(e);return t.length==1&&t[0][2]?xc(t[0][0],t[0][1]):function(n){return n===e||IM(n,e,t)}}function UM(e,t){return e!=null&&t in Object(e)}function QM(e,t,n){t=ff(t,e);for(var o=-1,l=t.length,s=!1;++o<l;){var a=za(t[o]);if(!(s=e!=null&&n(e,a)))break;e=e[a]}return s||++o!=l?s:(l=e==null?0:e.length,!!l&&si(l)&&Tc(a,l)&&(Vo(e)||Ic(e)))}function FM(e,t){return e!=null&&QM(e,t,UM)}var ZM=1,AM=2;function KM(e,t){return Du(e)&&Jc(t)?xc(za(e),t):function(n){var o=zn(n,e);return o===void 0&&o===t?FM(n,e):Qs(t,o,ZM|AM)}}function _M(e){return function(t){return t==null?void 0:t[e]}}function HM(e){return function(t){return pf(t,e)}}function CM(e){return Du(e)?_M(za(e)):HM(e)}function GM(e){return typeof e=="function"?e:e==null?Sh:typeof e=="object"?Vo(e)?KM(e[0],e[1]):WM(e):CM(e)}var sa=function(){return Ro.Date.now()},EM="Expected a function",wM=Math.max,kM=Math.min;function JM(e,t,n){var o,l,s,a,i,u,r=0,c=!1,d=!1,R=!0;if(typeof e!="function")throw new TypeError(EM);t=ar(t)||0,Xo(n)&&(c=!!n.leading,d="maxWait"in n,s=d?wM(ar(n.maxWait)||0,t):s,R="trailing"in n?!!n.trailing:R);function p(y){var Y=o,T=l;return o=l=void 0,r=y,a=e.apply(T,Y),a}function f(y){return r=y,i=setTimeout(O,t),c?p(y):a}function h(y){var Y=y-u,T=y-r,V=t-Y;return d?kM(V,s-T):V}function P(y){var Y=y-u,T=y-r;return u===void 0||Y>=t||Y<0||d&&T>=s}function O(){var y=sa();if(P(y))return L(y);i=setTimeout(O,h(y))}function L(y){return i=void 0,R&&o?p(y):(o=l=void 0,a)}function S(){i!==void 0&&clearTimeout(i),r=0,o=u=l=i=void 0}function X(){return i===void 0?a:L(sa())}function M(){var y=sa(),Y=P(y);if(o=arguments,l=this,u=y,Y){if(i===void 0)return f(u);if(d)return clearTimeout(i),i=setTimeout(O,t),p(u)}return i===void 0&&(i=setTimeout(O,t)),a}return M.cancel=S,M.flush=X,M}function xM(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var l=o-1;return Xh(e,GM(t),l)}function jo(e,t){return Qs(e,t)}function Wo(e){return e==null}function $M(e){return e===void 0}const DM=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d");class BM extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Wl(e,t){throw new BM(`[${e}] ${t}`)}let xl;const zM=e=>{var t;if(!At)return 0;if(xl!==void 0)return xl;const n=document.createElement("div");n.className=`${e}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const o=n.offsetWidth;n.style.overflow="scroll";const l=document.createElement("div");l.style.width="100%",n.appendChild(l);const s=l.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),xl=o-s,xl};function jM(e,t){if(!At)return;if(!t){e.scrollTop=0;return}const n=[];let o=t.offsetParent;for(;o!==null&&e!==o&&e.contains(o);)n.push(o),o=o.offsetParent;const l=t.offsetTop+n.reduce((u,r)=>u+r.offsetTop,0),s=l+t.offsetHeight,a=e.scrollTop,i=a+e.clientHeight;l<a?e.scrollTop=l:s>i&&(e.scrollTop=s-e.clientHeight)}const dn="update:modelValue",$c="change",qM=e=>["",...Vs].includes(e);var ns=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(ns||{});const Dc=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),eg=["class","style"],tg=/^on[A-Z]/,ng=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,o=H(()=>((n==null?void 0:n.value)||[]).concat(eg)),l=Io();return l?H(()=>{var s;return ga(Object.entries((s=l.proxy)==null?void 0:s.$attrs).filter(([a])=>!o.value.includes(a)&&!(t&&tg.test(a))))}):H(()=>({}))},og=(e,t,n,o)=>{let l={offsetX:0,offsetY:0};const s=u=>{const r=u.clientX,c=u.clientY,{offsetX:d,offsetY:R}=l,p=e.value.getBoundingClientRect(),f=p.left,h=p.top,P=p.width,O=p.height,L=document.documentElement.clientWidth,S=document.documentElement.clientHeight,X=-f+d,M=-h+R,y=L-f-P+d,Y=S-h-O+R,T=I=>{let W=d+I.clientX-r,F=R+I.clientY-c;o!=null&&o.value||(W=Math.min(Math.max(W,X),y),F=Math.min(Math.max(F,M),Y)),l={offsetX:W,offsetY:F},e.value&&(e.value.style.transform=`translate(${rs(W)}, ${rs(F)})`)},V=()=>{document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",V)};document.addEventListener("mousemove",T),document.addEventListener("mouseup",V)},a=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",s)},i=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",s)};Ge(()=>{Yo(()=>{n.value?a():i()})}),Gt(()=>{i()})},lg=(e,t={})=>{us(e)||Wl("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||qe("popup"),o=hf(()=>n.bm("parent","hidden"));if(!At||ki(document.body,o.value))return;let l=0,s=!1,a="0";const i=()=>{setTimeout(()=>{Ol(document==null?void 0:document.body,o.value),s&&document&&(document.body.style.width=a)},200)};Pe(e,u=>{if(!u){i();return}s=!ki(document.body,o.value),s&&(a=document.body.style.width),l=zM(n.namespace.value);const r=document.documentElement.clientHeight<document.body.scrollHeight,c=Co(document.body,"overflowY");l>0&&(r||c==="scroll")&&s&&(document.body.style.width=`calc(100% - ${l}px)`),Sa(document.body,o.value)}),vf(()=>i())},sg=Bu({type:Ze(Boolean),default:null}),ag=Bu({type:Ze(Function)}),Bc=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,o=[t],l={[e]:sg,[n]:ag};return{useModelToggle:({indicator:a,toggleReason:i,shouldHideWhenRouteChanges:u,shouldProceed:r,onShow:c,onHide:d})=>{const R=Io(),{emit:p}=R,f=R.props,h=H(()=>kt(f[n])),P=H(()=>f[e]===null),O=Y=>{a.value!==!0&&(a.value=!0,i&&(i.value=Y),kt(c)&&c(Y))},L=Y=>{a.value!==!1&&(a.value=!1,i&&(i.value=Y),kt(d)&&d(Y))},S=Y=>{if(f.disabled===!0||kt(r)&&!r())return;const T=h.value&&At;T&&p(t,!0),(P.value||!T)&&O(Y)},X=Y=>{if(f.disabled===!0||!At)return;const T=h.value&&At;T&&p(t,!1),(P.value||!T)&&L(Y)},M=Y=>{zu(Y)&&(f.disabled&&Y?h.value&&p(t,!1):a.value!==Y&&(Y?O():L()))},y=()=>{a.value?X():S()};return Pe(()=>f[e],M),u&&R.appContext.config.globalProperties.$route!==void 0&&Pe(()=>({...R.proxy.$route}),()=>{u.value&&a.value&&X()}),Ge(()=>{M(f[e])}),{hide:X,show:S,toggle:y,hasUpdateHandler:h}},useModelToggleProps:l,useModelToggleEmits:o}};Bc("modelValue");const ig=(e,t,n={})=>{const o={name:"updateState",enabled:!0,phase:"write",fn:({state:u})=>{const r=rg(u);Object.assign(a.value,r)},requires:["computeStyles"]},l=H(()=>{const{onFirstUpdate:u,placement:r,strategy:c,modifiers:d}=v(n);return{onFirstUpdate:u,placement:r||"bottom",strategy:c||"absolute",modifiers:[...d||[],o,{name:"applyStyles",enabled:!1}]}}),s=eo(),a=_({styles:{popper:{position:v(l).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),i=()=>{s.value&&(s.value.destroy(),s.value=void 0)};return Pe(l,u=>{const r=v(s);r&&r.setOptions(u)},{deep:!0}),Pe([e,t],([u,r])=>{i(),!(!u||!r)&&(s.value=mf(u,r,v(l)))}),Gt(()=>{i()}),{state:H(()=>{var u;return{...((u=v(s))==null?void 0:u.state)||{}}}),styles:H(()=>v(a).styles),attributes:H(()=>v(a).attributes),update:()=>{var u;return(u=v(s))==null?void 0:u.update()},forceUpdate:()=>{var u;return(u=v(s))==null?void 0:u.forceUpdate()},instanceRef:H(()=>v(s))}};function rg(e){const t=Object.keys(e.elements),n=ga(t.map(l=>[l,e.styles[l]||{}])),o=ga(t.map(l=>[l,e.attributes[l]]));return{styles:n,attributes:o}}const zc=e=>{if(!e)return{onClick:Rt,onMousedown:Rt,onMouseup:Rt};let t=!1,n=!1;return{onClick:a=>{t&&n&&e(a),t=n=!1},onMousedown:a=>{t=a.target===a.currentTarget},onMouseup:a=>{n=a.target===a.currentTarget}}};function Yr(){let e;const t=(o,l)=>{n(),e=window.setTimeout(o,l)},n=()=>window.clearTimeout(e);return Mf(()=>n()),{registerTimeout:t,cancelTimeout:n}}let Go=[];const Wr=e=>{const t=e;t.key===Do.esc&&Go.forEach(n=>n(t))},ug=e=>{Ge(()=>{Go.length===0&&document.addEventListener("keydown",Wr),At&&Go.push(e)}),Gt(()=>{Go=Go.filter(t=>t!==e),Go.length===0&&At&&document.removeEventListener("keydown",Wr)})};let Ur;const jc=()=>{const e=Sf(),t=ah(),n=H(()=>`${e.value}-popper-container-${t.prefix}`),o=H(()=>`#${n.value}`);return{id:n,selector:o}},cg=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},dg=()=>{const{id:e,selector:t}=jc();return gf(()=>{At&&!Ur&&!document.body.querySelector(t.value)&&(Ur=cg(e.value))}),{id:e,selector:t}},Rg=et({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),fg=({showAfter:e,hideAfter:t,autoClose:n,open:o,close:l})=>{const{registerTimeout:s}=Yr(),{registerTimeout:a,cancelTimeout:i}=Yr();return{onOpen:c=>{s(()=>{o(c);const d=v(n);Ot(d)&&d>0&&a(()=>{l(c)},d)},v(e))},onClose:c=>{i(),s(()=>{l(c)},v(t))}}},qc=Symbol("elForwardRef"),pg=e=>{an(qc,{setForwardRef:n=>{e.value=n}})},hg=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}});function vg(e){const t=_();function n(){if(e.value==null)return;const{selectionStart:l,selectionEnd:s,value:a}=e.value;if(l==null||s==null)return;const i=a.slice(0,Math.max(0,l)),u=a.slice(Math.max(0,s));t.value={selectionStart:l,selectionEnd:s,value:a,beforeTxt:i,afterTxt:u}}function o(){if(e.value==null||t.value==null)return;const{value:l}=e.value,{beforeTxt:s,afterTxt:a,selectionStart:i}=t.value;if(s==null||a==null||i==null)return;let u=l.length;if(l.endsWith(a))u=l.length-a.length;else if(l.startsWith(s))u=s.length;else{const r=s[i-1],c=l.indexOf(r,i-1);c!==-1&&(u=c+1)}e.value.setSelectionRange(u,u)}return[n,o]}function ed(e,{afterFocus:t,beforeBlur:n,afterBlur:o}={}){const l=Io(),{emit:s}=l,a=eo(),i=_(!1),u=d=>{i.value||(i.value=!0,s("focus",d),t==null||t())},r=d=>{var R;kt(n)&&n(d)||d.relatedTarget&&((R=a.value)!=null&&R.contains(d.relatedTarget))||(i.value=!1,s("blur",d),o==null||o())},c=()=>{var d;(d=e.value)==null||d.focus()};return Pe(a,d=>{d&&d.setAttribute("tabindex","-1")}),cs(a,"click",c),{wrapperRef:a,isFocused:i,handleFocus:u,handleBlur:r}}let cn;const mg=`
- height:0 !important;
- visibility:hidden !important;
- ${dh()?"":"overflow:hidden !important;"}
- position:absolute !important;
- z-index:-1000 !important;
- top:0 !important;
- right:0 !important;
- `,Mg=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function gg(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),o=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),l=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:Mg.map(a=>`${a}:${t.getPropertyValue(a)}`).join(";"),paddingSize:o,borderSize:l,boxSizing:n}}function Qr(e,t=1,n){var o;cn||(cn=document.createElement("textarea"),document.body.appendChild(cn));const{paddingSize:l,borderSize:s,boxSizing:a,contextStyle:i}=gg(e);cn.setAttribute("style",`${i};${mg}`),cn.value=e.value||e.placeholder||"";let u=cn.scrollHeight;const r={};a==="border-box"?u=u+s:a==="content-box"&&(u=u-l),cn.value="";const c=cn.scrollHeight-l;if(Ot(t)){let d=c*t;a==="border-box"&&(d=d+l+s),u=Math.max(d,u),r.minHeight=`${d}px`}if(Ot(n)){let d=c*n;a==="border-box"&&(d=d+l+s),u=Math.min(d,u)}return r.height=`${u}px`,(o=cn.parentNode)==null||o.removeChild(cn),cn=void 0,r}const Sg=et({id:{type:String,default:void 0},size:ju,disabled:Boolean,modelValue:{type:Ze([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:Ze([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:ao},prefixIcon:{type:ao},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:Ze([Object,Array,String]),default:()=>Bo({})},autofocus:{type:Boolean,default:!1}}),Og={[dn]:e=>hn(e),input:e=>hn(e),change:e=>hn(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},Pg=["role"],Ng=["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],Xg=["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],Tg=q({name:"ElInput",inheritAttrs:!1}),Vg=q({...Tg,props:Sg,emits:Og,setup(e,{expose:t,emit:n}){const o=e,l=Of(),s=Pf(),a=H(()=>{const pe={};return o.containerRole==="combobox"&&(pe["aria-haspopup"]=l["aria-haspopup"],pe["aria-owns"]=l["aria-owns"],pe["aria-expanded"]=l["aria-expanded"]),pe}),i=H(()=>[o.type==="textarea"?P.b():h.b(),h.m(p.value),h.is("disabled",f.value),h.is("exceed",B.value),{[h.b("group")]:s.prepend||s.append,[h.bm("group","append")]:s.append,[h.bm("group","prepend")]:s.prepend,[h.m("prefix")]:s.prefix||o.prefixIcon,[h.m("suffix")]:s.suffix||o.suffixIcon||o.clearable||o.showPassword,[h.bm("suffix","password-clear")]:Re.value&&ae.value,[h.b("hidden")]:o.type==="hidden"},l.class]),u=H(()=>[h.e("wrapper"),h.is("focus",I.value)]),r=ng({excludeKeys:H(()=>Object.keys(a.value))}),{form:c,formItem:d}=Nc(),{inputId:R}=Xc(o,{formItemContext:d}),p=li(),f=Yl(),h=qe("input"),P=qe("textarea"),O=eo(),L=eo(),S=_(!1),X=_(!1),M=_(!1),y=_(),Y=eo(o.inputStyle),T=H(()=>O.value||L.value),{wrapperRef:V,isFocused:I,handleFocus:W,handleBlur:F}=ed(T,{afterBlur(){var pe;o.validateEvent&&((pe=d==null?void 0:d.validate)==null||pe.call(d,"blur").catch(Ee=>void 0))}}),C=H(()=>{var pe;return(pe=c==null?void 0:c.statusIcon)!=null?pe:!1}),Z=H(()=>(d==null?void 0:d.validateState)||""),K=H(()=>Z.value&&qu[Z.value]),U=H(()=>M.value?Nf:Xf),G=H(()=>[l.style]),D=H(()=>[o.inputStyle,Y.value,{resize:o.resize}]),le=H(()=>Wo(o.modelValue)?"":String(o.modelValue)),Re=H(()=>o.clearable&&!f.value&&!o.readonly&&!!le.value&&(I.value||S.value)),ae=H(()=>o.showPassword&&!f.value&&!o.readonly&&!!le.value&&(!!le.value||I.value)),Se=H(()=>o.showWordLimit&&!!o.maxlength&&(o.type==="text"||o.type==="textarea")&&!f.value&&!o.readonly&&!o.showPassword),J=H(()=>le.value.length),B=H(()=>!!Se.value&&J.value>Number(o.maxlength)),Ie=H(()=>!!s.suffix||!!o.suffixIcon||Re.value||o.showPassword||Se.value||!!Z.value&&C.value),[ce,z]=vg(O);Qn(L,pe=>{if(w(),!Se.value||o.resize!=="both")return;const Ee=pe[0],{width:ft}=Ee.contentRect;y.value={right:`calc(100% - ${ft+15+6}px)`}});const ne=()=>{const{type:pe,autosize:Ee}=o;if(!(!At||pe!=="textarea"||!L.value))if(Ee){const ft=ln(Ee)?Ee.minRows:void 0,In=ln(Ee)?Ee.maxRows:void 0,vo=Qr(L.value,ft,In);Y.value={overflowY:"hidden",...vo},we(()=>{L.value.offsetHeight,Y.value=vo})}else Y.value={minHeight:Qr(L.value).minHeight}},w=(pe=>{let Ee=!1;return()=>{var ft;if(Ee||!o.autosize)return;((ft=L.value)==null?void 0:ft.offsetParent)===null||(pe(),Ee=!0)}})(ne),$=()=>{const pe=T.value,Ee=o.formatter?o.formatter(le.value):le.value;!pe||pe.value===Ee||(pe.value=Ee)},A=async pe=>{ce();let{value:Ee}=pe.target;if(o.formatter&&(Ee=o.parser?o.parser(Ee):Ee),!X.value){if(Ee===le.value){$();return}n(dn,Ee),n("input",Ee),await we(),$(),z()}},x=pe=>{n("change",pe.target.value)},re=pe=>{n("compositionstart",pe),X.value=!0},ue=pe=>{var Ee;n("compositionupdate",pe);const ft=(Ee=pe.target)==null?void 0:Ee.value,In=ft[ft.length-1]||"";X.value=!Dc(In)},Te=pe=>{n("compositionend",pe),X.value&&(X.value=!1,A(pe))},Ae=()=>{M.value=!M.value,Qe()},Qe=async()=>{var pe;await we(),(pe=T.value)==null||pe.focus()},Ne=()=>{var pe;return(pe=T.value)==null?void 0:pe.blur()},he=pe=>{S.value=!1,n("mouseleave",pe)},Le=pe=>{S.value=!0,n("mouseenter",pe)},ve=pe=>{n("keydown",pe)},_e=()=>{var pe;(pe=T.value)==null||pe.select()},je=()=>{n(dn,""),n("change",""),n("clear"),n("input","")};return Pe(()=>o.modelValue,()=>{var pe;we(()=>ne()),o.validateEvent&&((pe=d==null?void 0:d.validate)==null||pe.call(d,"change").catch(Ee=>void 0))}),Pe(le,()=>$()),Pe(()=>o.type,async()=>{await we(),$(),ne()}),Ge(()=>{!o.formatter&&o.parser,$(),we(ne)}),t({input:O,textarea:L,ref:T,textareaStyle:D,autosize:Zn(o,"autosize"),focus:Qe,blur:Ne,select:_e,clear:je,resizeTextarea:ne}),(pe,Ee)=>(g(),b("div",to(v(a),{class:v(i),style:v(G),role:pe.containerRole,onMouseenter:Le,onMouseleave:he}),[j(" input "),pe.type!=="textarea"?(g(),b(ie,{key:0},[j(" prepend slot "),pe.$slots.prepend?(g(),b("div",{key:0,class:E(v(h).be("group","prepend"))},[We(pe.$slots,"prepend")],2)):j("v-if",!0),m("div",{ref_key:"wrapperRef",ref:V,class:E(v(u))},[j(" prefix slot "),pe.$slots.prefix||pe.prefixIcon?(g(),b("span",{key:0,class:E(v(h).e("prefix"))},[m("span",{class:E(v(h).e("prefix-inner"))},[We(pe.$slots,"prefix"),pe.prefixIcon?(g(),k(v(It),{key:0,class:E(v(h).e("icon"))},{default:Q(()=>[(g(),k(yt(pe.prefixIcon)))]),_:1},8,["class"])):j("v-if",!0)],2)],2)):j("v-if",!0),m("input",to({id:v(R),ref_key:"input",ref:O,class:v(h).e("inner")},v(r),{minlength:pe.minlength,maxlength:pe.maxlength,type:pe.showPassword?M.value?"text":"password":pe.type,disabled:v(f),readonly:pe.readonly,autocomplete:pe.autocomplete,tabindex:pe.tabindex,"aria-label":pe.label,placeholder:pe.placeholder,style:pe.inputStyle,form:pe.form,autofocus:pe.autofocus,onCompositionstart:re,onCompositionupdate:ue,onCompositionend:Te,onInput:A,onFocus:Ee[0]||(Ee[0]=(...ft)=>v(W)&&v(W)(...ft)),onBlur:Ee[1]||(Ee[1]=(...ft)=>v(F)&&v(F)(...ft)),onChange:x,onKeydown:ve}),null,16,Ng),j(" suffix slot "),v(Ie)?(g(),b("span",{key:1,class:E(v(h).e("suffix"))},[m("span",{class:E(v(h).e("suffix-inner"))},[!v(Re)||!v(ae)||!v(Se)?(g(),b(ie,{key:0},[We(pe.$slots,"suffix"),pe.suffixIcon?(g(),k(v(It),{key:0,class:E(v(h).e("icon"))},{default:Q(()=>[(g(),k(yt(pe.suffixIcon)))]),_:1},8,["class"])):j("v-if",!0)],64)):j("v-if",!0),v(Re)?(g(),k(v(It),{key:1,class:E([v(h).e("icon"),v(h).e("clear")]),onMousedown:Fe(v(Rt),["prevent"]),onClick:je},{default:Q(()=>[N(v(ja))]),_:1},8,["class","onMousedown"])):j("v-if",!0),v(ae)?(g(),k(v(It),{key:2,class:E([v(h).e("icon"),v(h).e("password")]),onClick:Ae},{default:Q(()=>[(g(),k(yt(v(U))))]),_:1},8,["class"])):j("v-if",!0),v(Se)?(g(),b("span",{key:3,class:E(v(h).e("count"))},[m("span",{class:E(v(h).e("count-inner"))},Me(v(J))+" / "+Me(pe.maxlength),3)],2)):j("v-if",!0),v(Z)&&v(K)&&v(C)?(g(),k(v(It),{key:4,class:E([v(h).e("icon"),v(h).e("validateIcon"),v(h).is("loading",v(Z)==="validating")])},{default:Q(()=>[(g(),k(yt(v(K))))]),_:1},8,["class"])):j("v-if",!0)],2)],2)):j("v-if",!0)],2),j(" append slot "),pe.$slots.append?(g(),b("div",{key:1,class:E(v(h).be("group","append"))},[We(pe.$slots,"append")],2)):j("v-if",!0)],64)):(g(),b(ie,{key:1},[j(" textarea "),m("textarea",to({id:v(R),ref_key:"textarea",ref:L,class:v(P).e("inner")},v(r),{minlength:pe.minlength,maxlength:pe.maxlength,tabindex:pe.tabindex,disabled:v(f),readonly:pe.readonly,autocomplete:pe.autocomplete,style:v(D),"aria-label":pe.label,placeholder:pe.placeholder,form:pe.form,autofocus:pe.autofocus,onCompositionstart:re,onCompositionupdate:ue,onCompositionend:Te,onInput:A,onFocus:Ee[2]||(Ee[2]=(...ft)=>v(W)&&v(W)(...ft)),onBlur:Ee[3]||(Ee[3]=(...ft)=>v(F)&&v(F)(...ft)),onChange:x,onKeydown:ve}),null,16,Xg),v(Se)?(g(),b("span",{key:0,style:ee(y.value),class:E(v(h).e("count"))},Me(v(J))+" / "+Me(pe.maxlength),7)):j("v-if",!0)],64))],16,Pg))}});var yg=tt(Vg,[["__file","input.vue"]]);const di=_n(yg),Ao=4,Lg={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},bg=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),Ri=Symbol("scrollbarContextKey"),Ig=et({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),Yg="Thumb",Wg=q({__name:"thumb",props:Ig,setup(e){const t=e,n=Ct(Ri),o=qe("scrollbar");n||Wl(Yg,"can not inject scrollbar context");const l=_(),s=_(),a=_({}),i=_(!1);let u=!1,r=!1,c=At?document.onselectstart:null;const d=H(()=>Lg[t.vertical?"vertical":"horizontal"]),R=H(()=>bg({size:t.size,move:t.move,bar:d.value})),p=H(()=>l.value[d.value.offset]**2/n.wrapElement[d.value.scrollSize]/t.ratio/s.value[d.value.offset]),f=y=>{var Y;if(y.stopPropagation(),y.ctrlKey||[1,2].includes(y.button))return;(Y=window.getSelection())==null||Y.removeAllRanges(),P(y);const T=y.currentTarget;T&&(a.value[d.value.axis]=T[d.value.offset]-(y[d.value.client]-T.getBoundingClientRect()[d.value.direction]))},h=y=>{if(!s.value||!l.value||!n.wrapElement)return;const Y=Math.abs(y.target.getBoundingClientRect()[d.value.direction]-y[d.value.client]),T=s.value[d.value.offset]/2,V=(Y-T)*100*p.value/l.value[d.value.offset];n.wrapElement[d.value.scroll]=V*n.wrapElement[d.value.scrollSize]/100},P=y=>{y.stopImmediatePropagation(),u=!0,document.addEventListener("mousemove",O),document.addEventListener("mouseup",L),c=document.onselectstart,document.onselectstart=()=>!1},O=y=>{if(!l.value||!s.value||u===!1)return;const Y=a.value[d.value.axis];if(!Y)return;const T=(l.value.getBoundingClientRect()[d.value.direction]-y[d.value.client])*-1,V=s.value[d.value.offset]-Y,I=(T-V)*100*p.value/l.value[d.value.offset];n.wrapElement[d.value.scroll]=I*n.wrapElement[d.value.scrollSize]/100},L=()=>{u=!1,a.value[d.value.axis]=0,document.removeEventListener("mousemove",O),document.removeEventListener("mouseup",L),M(),r&&(i.value=!1)},S=()=>{r=!1,i.value=!!t.size},X=()=>{r=!0,i.value=u};Gt(()=>{M(),document.removeEventListener("mouseup",L)});const M=()=>{document.onselectstart!==c&&(document.onselectstart=c)};return cs(Zn(n,"scrollbarElement"),"mousemove",S),cs(Zn(n,"scrollbarElement"),"mouseleave",X),(y,Y)=>(g(),k(io,{name:v(o).b("fade"),persisted:""},{default:Q(()=>[de(m("div",{ref_key:"instance",ref:l,class:E([v(o).e("bar"),v(o).is(v(d).key)]),onMousedown:h},[m("div",{ref_key:"thumb",ref:s,class:E(v(o).e("thumb")),style:ee(v(R)),onMousedown:f},null,38)],34),[[Nt,y.always||i.value]])]),_:1},8,["name"]))}});var Fr=tt(Wg,[["__file","thumb.vue"]]);const Ug=et({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),Qg=q({__name:"bar",props:Ug,setup(e,{expose:t}){const n=e,o=Ct(Ri),l=_(0),s=_(0),a=_(""),i=_(""),u=_(1),r=_(1);return t({handleScroll:R=>{if(R){const p=R.offsetHeight-Ao,f=R.offsetWidth-Ao;s.value=R.scrollTop*100/p*u.value,l.value=R.scrollLeft*100/f*r.value}},update:()=>{const R=o==null?void 0:o.wrapElement;if(!R)return;const p=R.offsetHeight-Ao,f=R.offsetWidth-Ao,h=p**2/R.scrollHeight,P=f**2/R.scrollWidth,O=Math.max(h,n.minSize),L=Math.max(P,n.minSize);u.value=h/(p-h)/(O/(p-O)),r.value=P/(f-P)/(L/(f-L)),i.value=O+Ao<p?`${O}px`:"",a.value=L+Ao<f?`${L}px`:""}}),(R,p)=>(g(),b(ie,null,[N(Fr,{move:l.value,ratio:r.value,size:a.value,always:R.always},null,8,["move","ratio","size","always"]),N(Fr,{move:s.value,ratio:u.value,size:i.value,vertical:"",always:R.always},null,8,["move","ratio","size","always"])],64))}});var Fg=tt(Qg,[["__file","bar.vue"]]);const Zg=et({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:Ze([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},id:String,role:String,ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical"]}}),Ag={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Ot)},Kg="ElScrollbar",_g=q({name:Kg}),Hg=q({..._g,props:Zg,emits:Ag,setup(e,{expose:t,emit:n}){const o=e,l=qe("scrollbar");let s,a;const i=_(),u=_(),r=_(),c=_(),d=H(()=>{const S={};return o.height&&(S.height=rs(o.height)),o.maxHeight&&(S.maxHeight=rs(o.maxHeight)),[o.wrapStyle,S]}),R=H(()=>[o.wrapClass,l.e("wrap"),{[l.em("wrap","hidden-default")]:!o.native}]),p=H(()=>[l.e("view"),o.viewClass]),f=()=>{var S;u.value&&((S=c.value)==null||S.handleScroll(u.value),n("scroll",{scrollTop:u.value.scrollTop,scrollLeft:u.value.scrollLeft}))};function h(S,X){ln(S)?u.value.scrollTo(S):Ot(S)&&Ot(X)&&u.value.scrollTo(S,X)}const P=S=>{Ot(S)&&(u.value.scrollTop=S)},O=S=>{Ot(S)&&(u.value.scrollLeft=S)},L=()=>{var S;(S=c.value)==null||S.update()};return Pe(()=>o.noresize,S=>{S?(s==null||s(),a==null||a()):({stop:s}=Qn(r,L),a=cs("resize",L))},{immediate:!0}),Pe(()=>[o.maxHeight,o.height],()=>{o.native||we(()=>{var S;L(),u.value&&((S=c.value)==null||S.handleScroll(u.value))})}),an(Ri,fo({scrollbarElement:i,wrapElement:u})),Ge(()=>{o.native||we(()=>{L()})}),Tf(()=>L()),t({wrapRef:u,update:L,scrollTo:h,setScrollTop:P,setScrollLeft:O,handleScroll:f}),(S,X)=>(g(),b("div",{ref_key:"scrollbarRef",ref:i,class:E(v(l).b())},[m("div",{ref_key:"wrapRef",ref:u,class:E(v(R)),style:ee(v(d)),onScroll:f},[(g(),k(yt(S.tag),{id:S.id,ref_key:"resizeRef",ref:r,class:E(v(p)),style:ee(S.viewStyle),role:S.role,"aria-label":S.ariaLabel,"aria-orientation":S.ariaOrientation},{default:Q(()=>[We(S.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],38),S.native?j("v-if",!0):(g(),k(Fg,{key:0,ref_key:"barRef",ref:c,always:S.always,"min-size":S.minSize},null,8,["always","min-size"]))],2))}});var Cg=tt(Hg,[["__file","scrollbar.vue"]]);const Gg=_n(Cg),fi=Symbol("popper"),td=Symbol("popperContent"),Eg=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],nd=et({role:{type:String,values:Eg,default:"tooltip"}}),wg=q({name:"ElPopper",inheritAttrs:!1}),kg=q({...wg,props:nd,setup(e,{expose:t}){const n=e,o=_(),l=_(),s=_(),a=_(),i=H(()=>n.role),u={triggerRef:o,popperInstanceRef:l,contentRef:s,referenceRef:a,role:i};return t(u),an(fi,u),(r,c)=>We(r.$slots,"default")}});var Jg=tt(kg,[["__file","popper.vue"]]);const od=et({arrowOffset:{type:Number,default:5}}),xg=q({name:"ElPopperArrow",inheritAttrs:!1}),$g=q({...xg,props:od,setup(e,{expose:t}){const n=e,o=qe("popper"),{arrowOffset:l,arrowRef:s,arrowStyle:a}=Ct(td,void 0);return Pe(()=>n.arrowOffset,i=>{l.value=i}),Gt(()=>{s.value=void 0}),t({arrowRef:s}),(i,u)=>(g(),b("span",{ref_key:"arrowRef",ref:s,class:E(v(o).e("arrow")),style:ee(v(a)),"data-popper-arrow":""},null,6))}});var Dg=tt($g,[["__file","arrow.vue"]]);const Bg="ElOnlyChild",zg=q({name:Bg,setup(e,{slots:t,attrs:n}){var o;const l=Ct(qc),s=hg((o=l==null?void 0:l.setForwardRef)!=null?o:Rt);return()=>{var a;const i=(a=t.default)==null?void 0:a.call(t,n);if(!i||i.length>1)return null;const u=ld(i);return u?de(Vf(u,n),[[s]]):null}}});function ld(e){if(!e)return null;const t=e;for(const n of t){if(ln(n))switch(n.type){case Lf:continue;case yf:case"svg":return Zr(n);case ie:return ld(n.children);default:return n}return Zr(n)}return null}function Zr(e){const t=qe("only-child");return N("span",{class:t.e("content")},[e])}const sd=et({virtualRef:{type:Ze(Object)},virtualTriggering:Boolean,onMouseenter:{type:Ze(Function)},onMouseleave:{type:Ze(Function)},onClick:{type:Ze(Function)},onKeydown:{type:Ze(Function)},onFocus:{type:Ze(Function)},onBlur:{type:Ze(Function)},onContextmenu:{type:Ze(Function)},id:String,open:Boolean}),jg=q({name:"ElPopperTrigger",inheritAttrs:!1}),qg=q({...jg,props:sd,setup(e,{expose:t}){const n=e,{role:o,triggerRef:l}=Ct(fi,void 0);pg(l);const s=H(()=>i.value?n.id:void 0),a=H(()=>{if(o&&o.value==="tooltip")return n.open&&n.id?n.id:void 0}),i=H(()=>{if(o&&o.value!=="tooltip")return o.value}),u=H(()=>i.value?`${n.open}`:void 0);let r;return Ge(()=>{Pe(()=>n.virtualRef,c=>{c&&(l.value=ec(c))},{immediate:!0}),Pe(l,(c,d)=>{r==null||r(),r=void 0,yo(c)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(R=>{var p;const f=n[R];f&&(c.addEventListener(R.slice(2).toLowerCase(),f),(p=d==null?void 0:d.removeEventListener)==null||p.call(d,R.slice(2).toLowerCase(),f))}),r=Pe([s,a,i,u],R=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((p,f)=>{Wo(R[f])?c.removeAttribute(p):c.setAttribute(p,R[f])})},{immediate:!0})),yo(d)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(R=>d.removeAttribute(R))},{immediate:!0})}),Gt(()=>{r==null||r(),r=void 0}),t({triggerRef:l}),(c,d)=>c.virtualTriggering?j("v-if",!0):(g(),k(v(zg),to({key:0},c.$attrs,{"aria-controls":v(s),"aria-describedby":v(a),"aria-expanded":v(u),"aria-haspopup":v(i)}),{default:Q(()=>[We(c.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var eS=tt(qg,[["__file","trigger.vue"]]);const aa="focus-trap.focus-after-trapped",ia="focus-trap.focus-after-released",tS="focus-trap.focusout-prevented",Ar={cancelable:!0,bubbles:!1},nS={cancelable:!0,bubbles:!1},Kr="focusAfterTrapped",_r="focusAfterReleased",oS=Symbol("elFocusTrap"),pi=_(),Fs=_(0),hi=_(0);let $l=0;const ad=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const l=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||l?NodeFilter.FILTER_SKIP:o.tabIndex>=0||o===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},Hr=(e,t)=>{for(const n of e)if(!lS(n,t))return n},lS=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},sS=e=>{const t=ad(e),n=Hr(t,e),o=Hr(t.reverse(),e);return[n,o]},aS=e=>e instanceof HTMLInputElement&&"select"in e,kn=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),hi.value=window.performance.now(),e!==n&&aS(e)&&t&&e.select()}};function Cr(e,t){const n=[...e],o=e.indexOf(t);return o!==-1&&n.splice(o,1),n}const iS=()=>{let e=[];return{push:o=>{const l=e[0];l&&o!==l&&l.pause(),e=Cr(e,o),e.unshift(o)},remove:o=>{var l,s;e=Cr(e,o),(s=(l=e[0])==null?void 0:l.resume)==null||s.call(l)}}},rS=(e,t=!1)=>{const n=document.activeElement;for(const o of e)if(kn(o,t),document.activeElement!==n)return},Gr=iS(),uS=()=>Fs.value>hi.value,Dl=()=>{pi.value="pointer",Fs.value=window.performance.now()},Er=()=>{pi.value="keyboard",Fs.value=window.performance.now()},cS=()=>(Ge(()=>{$l===0&&(document.addEventListener("mousedown",Dl),document.addEventListener("touchstart",Dl),document.addEventListener("keydown",Er)),$l++}),Gt(()=>{$l--,$l<=0&&(document.removeEventListener("mousedown",Dl),document.removeEventListener("touchstart",Dl),document.removeEventListener("keydown",Er))}),{focusReason:pi,lastUserFocusTimestamp:Fs,lastAutomatedFocusTimestamp:hi}),Bl=e=>new CustomEvent(tS,{...nS,detail:e}),dS=q({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[Kr,_r,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=_();let o,l;const{focusReason:s}=cS();ug(f=>{e.trapped&&!a.paused&&t("release-requested",f)});const a={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},i=f=>{if(!e.loop&&!e.trapped||a.paused)return;const{key:h,altKey:P,ctrlKey:O,metaKey:L,currentTarget:S,shiftKey:X}=f,{loop:M}=e,y=h===Do.tab&&!P&&!O&&!L,Y=document.activeElement;if(y&&Y){const T=S,[V,I]=sS(T);if(V&&I){if(!X&&Y===I){const F=Bl({focusReason:s.value});t("focusout-prevented",F),F.defaultPrevented||(f.preventDefault(),M&&kn(V,!0))}else if(X&&[V,T].includes(Y)){const F=Bl({focusReason:s.value});t("focusout-prevented",F),F.defaultPrevented||(f.preventDefault(),M&&kn(I,!0))}}else if(Y===T){const F=Bl({focusReason:s.value});t("focusout-prevented",F),F.defaultPrevented||f.preventDefault()}}};an(oS,{focusTrapRef:n,onKeydown:i}),Pe(()=>e.focusTrapEl,f=>{f&&(n.value=f)},{immediate:!0}),Pe([n],([f],[h])=>{f&&(f.addEventListener("keydown",i),f.addEventListener("focusin",c),f.addEventListener("focusout",d)),h&&(h.removeEventListener("keydown",i),h.removeEventListener("focusin",c),h.removeEventListener("focusout",d))});const u=f=>{t(Kr,f)},r=f=>t(_r,f),c=f=>{const h=v(n);if(!h)return;const P=f.target,O=f.relatedTarget,L=P&&h.contains(P);e.trapped||O&&h.contains(O)||(o=O),L&&t("focusin",f),!a.paused&&e.trapped&&(L?l=P:kn(l,!0))},d=f=>{const h=v(n);if(!(a.paused||!h))if(e.trapped){const P=f.relatedTarget;!Wo(P)&&!h.contains(P)&&setTimeout(()=>{if(!a.paused&&e.trapped){const O=Bl({focusReason:s.value});t("focusout-prevented",O),O.defaultPrevented||kn(l,!0)}},0)}else{const P=f.target;P&&h.contains(P)||t("focusout",f)}};async function R(){await we();const f=v(n);if(f){Gr.push(a);const h=f.contains(document.activeElement)?o:document.activeElement;if(o=h,!f.contains(h)){const O=new Event(aa,Ar);f.addEventListener(aa,u),f.dispatchEvent(O),O.defaultPrevented||we(()=>{let L=e.focusStartEl;hn(L)||(kn(L),document.activeElement!==L&&(L="first")),L==="first"&&rS(ad(f),!0),(document.activeElement===h||L==="container")&&kn(f)})}}}function p(){const f=v(n);if(f){f.removeEventListener(aa,u);const h=new CustomEvent(ia,{...Ar,detail:{focusReason:s.value}});f.addEventListener(ia,r),f.dispatchEvent(h),!h.defaultPrevented&&(s.value=="keyboard"||!uS()||f.contains(document.activeElement))&&kn(o??document.body),f.removeEventListener(ia,r),Gr.remove(a)}}return Ge(()=>{e.trapped&&R(),Pe(()=>e.trapped,f=>{f?R():p()})}),Gt(()=>{e.trapped&&p()}),{onKeydown:i}}});function RS(e,t,n,o,l,s){return We(e.$slots,"default",{handleKeydown:e.onKeydown})}var id=tt(dS,[["render",RS],["__file","focus-trap.vue"]]);const fS=["fixed","absolute"],pS=et({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Ze(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:tc,default:"bottom"},popperOptions:{type:Ze(Object),default:()=>({})},strategy:{type:String,values:fS,default:"absolute"}}),rd=et({...pS,id:String,style:{type:Ze([String,Array,Object])},className:{type:Ze([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:Ze([String,Array,Object])},popperStyle:{type:Ze([String,Array,Object])},referenceEl:{type:Ze(Object)},triggerTargetEl:{type:Ze(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),hS={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},vS=(e,t=[])=>{const{placement:n,strategy:o,popperOptions:l}=e,s={placement:n,strategy:o,...l,modifiers:[...MS(e),...t]};return gS(s,l==null?void 0:l.modifiers),s},mS=e=>{if(At)return ec(e)};function MS(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:o}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:o}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function gS(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const SS=0,OS=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:o,role:l}=Ct(fi,void 0),s=_(),a=_(),i=H(()=>({name:"eventListeners",enabled:!!e.visible})),u=H(()=>{var O;const L=v(s),S=(O=v(a))!=null?O:SS;return{name:"arrow",enabled:!$M(L),options:{element:L,padding:S}}}),r=H(()=>({onFirstUpdate:()=>{f()},...vS(e,[v(u),v(i)])})),c=H(()=>mS(e.referenceEl)||v(o)),{attributes:d,state:R,styles:p,update:f,forceUpdate:h,instanceRef:P}=ig(c,n,r);return Pe(P,O=>t.value=O),Ge(()=>{Pe(()=>{var O;return(O=v(c))==null?void 0:O.getBoundingClientRect()},()=>{f()})}),{attributes:d,arrowRef:s,contentRef:n,instanceRef:P,state:R,styles:p,role:l,forceUpdate:h,update:f}},PS=(e,{attributes:t,styles:n,role:o})=>{const{nextZIndex:l}=bf(),s=qe("popper"),a=H(()=>v(t).popper),i=_(Ot(e.zIndex)?e.zIndex:l()),u=H(()=>[s.b(),s.is("pure",e.pure),s.is(e.effect),e.popperClass]),r=H(()=>[{zIndex:v(i)},v(n).popper,e.popperStyle||{}]),c=H(()=>o.value==="dialog"?"false":void 0),d=H(()=>v(n).arrow||{});return{ariaModal:c,arrowStyle:d,contentAttrs:a,contentClass:u,contentStyle:r,contentZIndex:i,updateZIndex:()=>{i.value=Ot(e.zIndex)?e.zIndex:l()}}},NS=(e,t)=>{const n=_(!1),o=_();return{focusStartRef:o,trapped:n,onFocusAfterReleased:r=>{var c;((c=r.detail)==null?void 0:c.focusReason)!=="pointer"&&(o.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:r=>{e.visible&&!n.value&&(r.target&&(o.value=r.target),n.value=!0)},onFocusoutPrevented:r=>{e.trapping||(r.detail.focusReason==="pointer"&&r.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,t("close")}}},XS=q({name:"ElPopperContent"}),TS=q({...XS,props:rd,emits:hS,setup(e,{expose:t,emit:n}){const o=e,{focusStartRef:l,trapped:s,onFocusAfterReleased:a,onFocusAfterTrapped:i,onFocusInTrap:u,onFocusoutPrevented:r,onReleaseRequested:c}=NS(o,n),{attributes:d,arrowRef:R,contentRef:p,styles:f,instanceRef:h,role:P,update:O}=OS(o),{ariaModal:L,arrowStyle:S,contentAttrs:X,contentClass:M,contentStyle:y,updateZIndex:Y}=PS(o,{styles:f,attributes:d,role:P}),T=Ct(or,void 0),V=_();an(td,{arrowStyle:S,arrowRef:R,arrowOffset:V}),T&&(T.addInputId||T.removeInputId)&&an(or,{...T,addInputId:Rt,removeInputId:Rt});let I;const W=(C=!0)=>{O(),C&&Y()},F=()=>{W(!1),o.visible&&o.focusOnShow?s.value=!0:o.visible===!1&&(s.value=!1)};return Ge(()=>{Pe(()=>o.triggerTargetEl,(C,Z)=>{I==null||I(),I=void 0;const K=v(C||p.value),U=v(Z||p.value);yo(K)&&(I=Pe([P,()=>o.ariaLabel,L,()=>o.id],G=>{["role","aria-label","aria-modal","id"].forEach((D,le)=>{Wo(G[le])?K.removeAttribute(D):K.setAttribute(D,G[le])})},{immediate:!0})),U!==K&&yo(U)&&["role","aria-label","aria-modal","id"].forEach(G=>{U.removeAttribute(G)})},{immediate:!0}),Pe(()=>o.visible,F,{immediate:!0})}),Gt(()=>{I==null||I(),I=void 0}),t({popperContentRef:p,popperInstanceRef:h,updatePopper:W,contentStyle:y}),(C,Z)=>(g(),b("div",to({ref_key:"contentRef",ref:p},v(X),{style:v(y),class:v(M),tabindex:"-1",onMouseenter:Z[0]||(Z[0]=K=>C.$emit("mouseenter",K)),onMouseleave:Z[1]||(Z[1]=K=>C.$emit("mouseleave",K))}),[N(v(id),{trapped:v(s),"trap-on-focus-in":!0,"focus-trap-el":v(p),"focus-start-el":v(l),onFocusAfterTrapped:v(i),onFocusAfterReleased:v(a),onFocusin:v(u),onFocusoutPrevented:v(r),onReleaseRequested:v(c)},{default:Q(()=>[We(C.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var VS=tt(TS,[["__file","content.vue"]]);const yS=_n(Jg),vi=Symbol("elTooltip"),mi=et({...Rg,...rd,appendTo:{type:Ze([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:Ze(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),ud=et({...sd,disabled:Boolean,trigger:{type:Ze([String,Array]),default:"hover"},triggerKeys:{type:Ze(Array),default:()=>[Do.enter,Do.space]}}),{useModelToggleProps:LS,useModelToggleEmits:bS,useModelToggle:IS}=Bc("visible"),YS=et({...nd,...LS,...mi,...ud,...od,showArrow:{type:Boolean,default:!0}}),WS=[...bS,"before-show","before-hide","show","hide","open","close"],US=(e,t)=>on(e)?e.includes(t):e===t,Ko=(e,t,n)=>o=>{US(v(e),t)&&n(o)},QS=q({name:"ElTooltipTrigger"}),FS=q({...QS,props:ud,setup(e,{expose:t}){const n=e,o=qe("tooltip"),{controlled:l,id:s,open:a,onOpen:i,onClose:u,onToggle:r}=Ct(vi,void 0),c=_(null),d=()=>{if(v(l)||n.disabled)return!0},R=Zn(n,"trigger"),p=Wn(d,Ko(R,"hover",i)),f=Wn(d,Ko(R,"hover",u)),h=Wn(d,Ko(R,"click",X=>{X.button===0&&r(X)})),P=Wn(d,Ko(R,"focus",i)),O=Wn(d,Ko(R,"focus",u)),L=Wn(d,Ko(R,"contextmenu",X=>{X.preventDefault(),r(X)})),S=Wn(d,X=>{const{code:M}=X;n.triggerKeys.includes(M)&&(X.preventDefault(),r(X))});return t({triggerRef:c}),(X,M)=>(g(),k(v(eS),{id:v(s),"virtual-ref":X.virtualRef,open:v(a),"virtual-triggering":X.virtualTriggering,class:E(v(o).e("trigger")),onBlur:v(O),onClick:v(h),onContextmenu:v(L),onFocus:v(P),onMouseenter:v(p),onMouseleave:v(f),onKeydown:v(S)},{default:Q(()=>[We(X.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var ZS=tt(FS,[["__file","trigger.vue"]]);const AS=q({name:"ElTooltipContent",inheritAttrs:!1}),KS=q({...AS,props:mi,setup(e,{expose:t}){const n=e,{selector:o}=jc(),l=qe("tooltip"),s=_(null),a=_(!1),{controlled:i,id:u,open:r,trigger:c,onClose:d,onOpen:R,onShow:p,onHide:f,onBeforeShow:h,onBeforeHide:P}=Ct(vi,void 0),O=H(()=>n.transition||`${l.namespace.value}-fade-in-linear`),L=H(()=>n.persistent);Gt(()=>{a.value=!0});const S=H(()=>v(L)?!0:v(r)),X=H(()=>n.disabled?!1:v(r)),M=H(()=>n.appendTo||o.value),y=H(()=>{var G;return(G=n.style)!=null?G:{}}),Y=H(()=>!v(r)),T=()=>{f()},V=()=>{if(v(i))return!0},I=Wn(V,()=>{n.enterable&&v(c)==="hover"&&R()}),W=Wn(V,()=>{v(c)==="hover"&&d()}),F=()=>{var G,D;(D=(G=s.value)==null?void 0:G.updatePopper)==null||D.call(G),h==null||h()},C=()=>{P==null||P()},Z=()=>{p(),U=If(H(()=>{var G;return(G=s.value)==null?void 0:G.popperContentRef}),()=>{if(v(i))return;v(c)!=="hover"&&d()})},K=()=>{n.virtualTriggering||d()};let U;return Pe(()=>v(r),G=>{G||U==null||U()},{flush:"post"}),Pe(()=>n.content,()=>{var G,D;(D=(G=s.value)==null?void 0:G.updatePopper)==null||D.call(G)}),t({contentRef:s}),(G,D)=>(g(),k(qa,{disabled:!G.teleported,to:v(M)},[N(io,{name:v(O),onAfterLeave:T,onBeforeEnter:F,onAfterEnter:Z,onBeforeLeave:C},{default:Q(()=>[v(S)?de((g(),k(v(VS),to({key:0,id:v(u),ref_key:"contentRef",ref:s},G.$attrs,{"aria-label":G.ariaLabel,"aria-hidden":v(Y),"boundaries-padding":G.boundariesPadding,"fallback-placements":G.fallbackPlacements,"gpu-acceleration":G.gpuAcceleration,offset:G.offset,placement:G.placement,"popper-options":G.popperOptions,strategy:G.strategy,effect:G.effect,enterable:G.enterable,pure:G.pure,"popper-class":G.popperClass,"popper-style":[G.popperStyle,v(y)],"reference-el":G.referenceEl,"trigger-target-el":G.triggerTargetEl,visible:v(X),"z-index":G.zIndex,onMouseenter:v(I),onMouseleave:v(W),onBlur:K,onClose:v(d)}),{default:Q(()=>[a.value?j("v-if",!0):We(G.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[Nt,v(X)]]):j("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var _S=tt(KS,[["__file","content.vue"]]);const HS=["innerHTML"],CS={key:1},GS=q({name:"ElTooltip"}),ES=q({...GS,props:YS,emits:WS,setup(e,{expose:t,emit:n}){const o=e;dg();const l=Pl(),s=_(),a=_(),i=()=>{var O;const L=v(s);L&&((O=L.popperInstanceRef)==null||O.update())},u=_(!1),r=_(),{show:c,hide:d,hasUpdateHandler:R}=IS({indicator:u,toggleReason:r}),{onOpen:p,onClose:f}=fg({showAfter:Zn(o,"showAfter"),hideAfter:Zn(o,"hideAfter"),autoClose:Zn(o,"autoClose"),open:c,close:d}),h=H(()=>zu(o.visible)&&!R.value);an(vi,{controlled:h,id:l,open:Yf(u),trigger:Zn(o,"trigger"),onOpen:O=>{p(O)},onClose:O=>{f(O)},onToggle:O=>{v(u)?f(O):p(O)},onShow:()=>{n("show",r.value)},onHide:()=>{n("hide",r.value)},onBeforeShow:()=>{n("before-show",r.value)},onBeforeHide:()=>{n("before-hide",r.value)},updatePopper:i}),Pe(()=>o.disabled,O=>{O&&u.value&&(u.value=!1)});const P=O=>{var L,S;const X=(S=(L=a.value)==null?void 0:L.contentRef)==null?void 0:S.popperContentRef,M=(O==null?void 0:O.relatedTarget)||document.activeElement;return X&&X.contains(M)};return Wf(()=>u.value&&d()),t({popperRef:s,contentRef:a,isFocusInsideContent:P,updatePopper:i,onOpen:p,onClose:f,hide:d}),(O,L)=>(g(),k(v(yS),{ref_key:"popperRef",ref:s,role:O.role},{default:Q(()=>[N(ZS,{disabled:O.disabled,trigger:O.trigger,"trigger-keys":O.triggerKeys,"virtual-ref":O.virtualRef,"virtual-triggering":O.virtualTriggering},{default:Q(()=>[O.$slots.default?We(O.$slots,"default",{key:0}):j("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),N(_S,{ref_key:"contentRef",ref:a,"aria-label":O.ariaLabel,"boundaries-padding":O.boundariesPadding,content:O.content,disabled:O.disabled,effect:O.effect,enterable:O.enterable,"fallback-placements":O.fallbackPlacements,"hide-after":O.hideAfter,"gpu-acceleration":O.gpuAcceleration,offset:O.offset,persistent:O.persistent,"popper-class":O.popperClass,"popper-style":O.popperStyle,placement:O.placement,"popper-options":O.popperOptions,pure:O.pure,"raw-content":O.rawContent,"reference-el":O.referenceEl,"trigger-target-el":O.triggerTargetEl,"show-after":O.showAfter,strategy:O.strategy,teleported:O.teleported,transition:O.transition,"virtual-triggering":O.virtualTriggering,"z-index":O.zIndex,"append-to":O.appendTo},{default:Q(()=>[We(O.$slots,"content",{},()=>[O.rawContent?(g(),b("span",{key:0,innerHTML:O.content},null,8,HS)):(g(),b("span",CS,Me(O.content),1))]),O.showArrow?(g(),k(v(Dg),{key:0,"arrow-offset":O.arrowOffset},null,8,["arrow-offset"])):j("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var wS=tt(ES,[["__file","tooltip.vue"]]);const kS=_n(wS),Jn=new Map;let wr;At&&(document.addEventListener("mousedown",e=>wr=e),document.addEventListener("mouseup",e=>{for(const t of Jn.values())for(const{documentHandler:n}of t)n(e,wr)}));function kr(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:yo(t.arg)&&n.push(t.arg),function(o,l){const s=t.instance.popperRef,a=o.target,i=l==null?void 0:l.target,u=!t||!t.instance,r=!a||!i,c=e.contains(a)||e.contains(i),d=e===a,R=n.length&&n.some(f=>f==null?void 0:f.contains(a))||n.length&&n.includes(i),p=s&&(s.contains(a)||s.contains(i));u||r||c||d||R||p||t.value(o,l)}}const JS={beforeMount(e,t){Jn.has(e)||Jn.set(e,[]),Jn.get(e).push({documentHandler:kr(e,t),bindingFn:t.value})},updated(e,t){Jn.has(e)||Jn.set(e,[]);const n=Jn.get(e),o=n.findIndex(s=>s.bindingFn===t.oldValue),l={documentHandler:kr(e,t),bindingFn:t.value};o>=0?n.splice(o,1,l):n.push(l)},unmounted(e){Jn.delete(e)}},Ya="_trap-focus-children",go=[],Jr=e=>{if(go.length===0)return;const t=go[go.length-1][Ya];if(t.length>0&&e.code===Do.tab){if(t.length===1){e.preventDefault(),document.activeElement!==t[0]&&t[0].focus();return}const n=e.shiftKey,o=e.target===t[0],l=e.target===t[t.length-1];o&&n&&(e.preventDefault(),t[t.length-1].focus()),l&&!n&&(e.preventDefault(),t[0].focus())}},xS={beforeMount(e){e[Ya]=lr(e),go.push(e),go.length<=1&&document.addEventListener("keydown",Jr)},updated(e){we(()=>{e[Ya]=lr(e)})},unmounted(){go.shift(),go.length===0&&document.removeEventListener("keydown",Jr)}},cd=et({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:Vs},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),$S={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},DS=q({name:"ElTag"}),BS=q({...DS,props:cd,emits:$S,setup(e,{emit:t}){const n=e,o=li(),l=qe("tag"),s=H(()=>{const{type:u,hit:r,effect:c,closable:d,round:R}=n;return[l.b(),l.is("closable",d),l.m(u||"primary"),l.m(o.value),l.m(c),l.is("hit",r),l.is("round",R)]}),a=u=>{t("close",u)},i=u=>{t("click",u)};return(u,r)=>u.disableTransitions?(g(),b("span",{key:0,class:E(v(s)),style:ee({backgroundColor:u.color}),onClick:i},[m("span",{class:E(v(l).e("content"))},[We(u.$slots,"default")],2),u.closable?(g(),k(v(It),{key:0,class:E(v(l).e("close")),onClick:Fe(a,["stop"])},{default:Q(()=>[N(v(ds))]),_:1},8,["class","onClick"])):j("v-if",!0)],6)):(g(),k(io,{key:1,name:`${v(l).namespace.value}-zoom-in-center`,appear:""},{default:Q(()=>[m("span",{class:E(v(s)),style:ee({backgroundColor:u.color}),onClick:i},[m("span",{class:E(v(l).e("content"))},[We(u.$slots,"default")],2),u.closable?(g(),k(v(It),{key:0,class:E(v(l).e("close")),onClick:Fe(a,["stop"])},{default:Q(()=>[N(v(ds))]),_:1},8,["class","onClick"])):j("v-if",!0)],6)]),_:3},8,["name"]))}});var zS=tt(BS,[["__file","tag.vue"]]);const jS=_n(zS),qS=et({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:Ze([String,Array,Object])},zIndex:{type:Ze([String,Number])}}),eO={click:e=>e instanceof MouseEvent},tO="overlay";var nO=q({name:"ElOverlay",props:qS,emits:eO,setup(e,{slots:t,emit:n}){const o=qe(tO),l=u=>{n("click",u)},{onClick:s,onMousedown:a,onMouseup:i}=zc(e.customMaskEvent?void 0:l);return()=>e.mask?N("div",{class:[o.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:s,onMousedown:a,onMouseup:i},[We(t,"default")],ns.STYLE|ns.CLASS|ns.PROPS,["onClick","onMouseup","onMousedown"]):jt("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[We(t,"default")])}});const oO=nO,dd=Symbol("elPaginationKey"),lO=et({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:ao}}),sO={click:e=>e instanceof MouseEvent},aO=["disabled","aria-label","aria-disabled"],iO={key:0},rO=q({name:"ElPaginationPrev"}),uO=q({...rO,props:lO,emits:sO,setup(e){const t=e,{t:n}=Hn(),o=H(()=>t.disabled||t.currentPage<=1);return(l,s)=>(g(),b("button",{type:"button",class:"btn-prev",disabled:v(o),"aria-label":l.prevText||v(n)("el.pagination.prev"),"aria-disabled":v(o),onClick:s[0]||(s[0]=a=>l.$emit("click",a))},[l.prevText?(g(),b("span",iO,Me(l.prevText),1)):(g(),k(v(It),{key:1},{default:Q(()=>[(g(),k(yt(l.prevIcon)))]),_:1}))],8,aO))}});var cO=tt(uO,[["__file","prev.vue"]]);const dO=et({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:ao}}),RO=["disabled","aria-label","aria-disabled"],fO={key:0},pO=q({name:"ElPaginationNext"}),hO=q({...pO,props:dO,emits:["click"],setup(e){const t=e,{t:n}=Hn(),o=H(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(l,s)=>(g(),b("button",{type:"button",class:"btn-next",disabled:v(o),"aria-label":l.nextText||v(n)("el.pagination.next"),"aria-disabled":v(o),onClick:s[0]||(s[0]=a=>l.$emit("click",a))},[l.nextText?(g(),b("span",fO,Me(l.nextText),1)):(g(),k(v(It),{key:1},{default:Q(()=>[(g(),k(yt(l.nextIcon)))]),_:1}))],8,RO))}});var vO=tt(hO,[["__file","next.vue"]]);const Rd=Symbol("ElSelectGroup"),Zs=Symbol("ElSelect");function mO(e,t){const n=Ct(Zs),o=Ct(Rd,{disabled:!1}),l=H(()=>n.props.multiple?c(n.props.modelValue,e.value):c([n.props.modelValue],e.value)),s=H(()=>{if(n.props.multiple){const p=n.props.modelValue||[];return!l.value&&p.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),a=H(()=>e.label||(ln(e.value)?"":e.value)),i=H(()=>e.value||e.label||""),u=H(()=>e.disabled||t.groupDisabled||s.value),r=Io(),c=(p=[],f)=>{if(ln(e.value)){const h=n.props.valueKey;return p&&p.some(P=>nc(zn(P,h))===zn(f,h))}else return p&&p.includes(f)},d=()=>{!e.disabled&&!o.disabled&&(n.states.hoveringIndex=n.optionsArray.indexOf(r.proxy))},R=p=>{const f=new RegExp(DM(p),"i");t.visible=f.test(a.value)||e.created};return Pe(()=>a.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),Pe(()=>e.value,(p,f)=>{const{remote:h,valueKey:P}=n.props;if(jo(p,f)||(n.onOptionDestroy(f,r.proxy),n.onOptionCreate(r.proxy)),!e.created&&!h){if(P&&ln(p)&&ln(f)&&p[P]===f[P])return;n.setSelected()}}),Pe(()=>o.disabled,()=>{t.groupDisabled=o.disabled},{immediate:!0}),{select:n,currentLabel:a,currentValue:i,itemSelected:l,isDisabled:u,hoverItem:d,updateOption:R}}const MO=q({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(e){const t=qe("select"),n=Pl(),o=H(()=>[t.be("dropdown","item"),t.is("disabled",v(i)),t.is("selected",v(a)),t.is("hovering",v(R))]),l=fo({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:s,itemSelected:a,isDisabled:i,select:u,hoverItem:r,updateOption:c}=mO(e,l),{visible:d,hover:R}=ys(l),p=Io().proxy;u.onOptionCreate(p),Gt(()=>{const h=p.value,{selected:P}=u.states,L=(u.props.multiple?P:[P]).some(S=>S.value===p.value);we(()=>{u.states.cachedOptions.get(h)===p&&!L&&u.states.cachedOptions.delete(h)}),u.onOptionDestroy(h,p)});function f(){e.disabled!==!0&&l.groupDisabled!==!0&&u.handleOptionSelect(p)}return{ns:t,id:n,containerKls:o,currentLabel:s,itemSelected:a,isDisabled:i,select:u,hoverItem:r,updateOption:c,visible:d,hover:R,selectOptionClick:f,states:l}}}),gO=["id","aria-disabled","aria-selected"];function SO(e,t,n,o,l,s){return de((g(),b("li",{id:e.id,class:E(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMouseenter:t[0]||(t[0]=(...a)=>e.hoverItem&&e.hoverItem(...a)),onClick:t[1]||(t[1]=Fe((...a)=>e.selectOptionClick&&e.selectOptionClick(...a),["stop"]))},[We(e.$slots,"default",{},()=>[m("span",null,Me(e.currentLabel),1)])],42,gO)),[[Nt,e.visible]])}var Mi=tt(MO,[["render",SO],["__file","option.vue"]]);const OO=q({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=Ct(Zs),t=qe("select"),n=H(()=>e.props.popperClass),o=H(()=>e.props.multiple),l=H(()=>e.props.fitInputWidth),s=_("");function a(){var i;s.value=`${(i=e.selectRef)==null?void 0:i.offsetWidth}px`}return Ge(()=>{a(),Qn(e.selectRef,a)}),{ns:t,minWidth:s,popperClass:n,isMultiple:o,isFitInputWidth:l}}});function PO(e,t,n,o,l,s){return g(),b("div",{class:E([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:ee({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(g(),b("div",{key:0,class:E(e.ns.be("dropdown","header"))},[We(e.$slots,"header")],2)):j("v-if",!0),We(e.$slots,"default"),e.$slots.footer?(g(),b("div",{key:1,class:E(e.ns.be("dropdown","footer"))},[We(e.$slots,"footer")],2)):j("v-if",!0)],6)}var NO=tt(OO,[["render",PO],["__file","select-dropdown.vue"]]);function XO(e){const t=_(!1);return{handleCompositionStart:()=>{t.value=!0},handleCompositionUpdate:s=>{const a=s.target.value,i=a[a.length-1]||"";t.value=!Dc(i)},handleCompositionEnd:s=>{t.value&&(t.value=!1,kt(e)&&e(s))}}}const TO=11,VO=(e,t)=>{const{t:n}=Hn(),o=Pl(),l=qe("select"),s=qe("input"),a=fo({inputValue:"",options:new Map,cachedOptions:new Map,disabledOptions:new Map,optionValues:[],selected:e.multiple?[]:{},selectionWidth:0,calculatorWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),i=_(null),u=_(null),r=_(null),c=_(null),d=_(null),R=_(null),p=_(null),f=_(null),h=_(null),P=_(null),O=_(null),L=_(null),{wrapperRef:S,isFocused:X,handleFocus:M,handleBlur:y}=ed(d,{afterFocus(){e.automaticDropdown&&!Y.value&&(Y.value=!0,a.menuVisibleOnFocus=!0)},beforeBlur(se){var ye,nt;return((ye=r.value)==null?void 0:ye.isFocusInsideContent(se))||((nt=c.value)==null?void 0:nt.isFocusInsideContent(se))},afterBlur(){Y.value=!1,a.menuVisibleOnFocus=!1}}),Y=_(!1),T=_(),{form:V,formItem:I}=Nc(),{inputId:W}=Xc(e,{formItemContext:I}),F=H(()=>e.disabled||(V==null?void 0:V.disabled)),C=H(()=>J.value.some(se=>se.value==="")),Z=H(()=>e.multiple?on(e.modelValue)&&e.modelValue.length>0:!Wo(e.modelValue)&&(e.modelValue!==""||C.value)),K=H(()=>e.clearable&&!F.value&&a.inputHovering&&Z.value),U=H(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),G=H(()=>l.is("reverse",U.value&&Y.value)),D=H(()=>(I==null?void 0:I.validateState)||""),le=H(()=>qu[D.value]),Re=H(()=>e.remote?300:0),ae=H(()=>e.loading?e.loadingText||n("el.select.loading"):e.remote&&!a.inputValue&&a.options.size===0?!1:e.filterable&&a.inputValue&&a.options.size>0&&Se.value===0?e.noMatchText||n("el.select.noMatch"):a.options.size===0?e.noDataText||n("el.select.noData"):null),Se=H(()=>J.value.filter(se=>se.visible).length),J=H(()=>{const se=Array.from(a.options.values()),ye=[];return a.optionValues.forEach(nt=>{const Mt=se.findIndex(Gn=>Gn.value===nt);Mt>-1&&ye.push(se[Mt])}),ye.length>=se.length?ye:se}),B=H(()=>Array.from(a.cachedOptions.values())),Ie=H(()=>{const se=J.value.filter(ye=>!ye.created).some(ye=>ye.currentLabel===a.inputValue);return e.filterable&&e.allowCreate&&a.inputValue!==""&&!se}),ce=()=>{e.filterable&&kt(e.filterMethod)||e.filterable&&e.remote&&kt(e.remoteMethod)||J.value.forEach(se=>{se.updateOption(a.inputValue)})},z=li(),ne=H(()=>["small"].includes(z.value)?"small":"default"),ge=H({get(){return Y.value&&ae.value!==!1},set(se){Y.value=se}}),w=H(()=>on(e.modelValue)?e.modelValue.length===0&&!a.inputValue:e.filterable?!a.inputValue:!0),$=H(()=>{var se;const ye=(se=e.placeholder)!=null?se:n("el.select.placeholder");return e.multiple||!Z.value?ye:a.selectedLabel});Pe(()=>e.modelValue,(se,ye)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(a.inputValue="",A("")),re(),!jo(se,ye)&&e.validateEvent&&(I==null||I.validate("change").catch(nt=>void 0))},{flush:"post",deep:!0}),Pe(()=>Y.value,se=>{se?A(a.inputValue):(a.inputValue="",a.previousQuery=null,a.isBeforeHide=!0),t("visible-change",se)}),Pe(()=>a.options.entries(),()=>{var se;if(!At)return;const ye=((se=i.value)==null?void 0:se.querySelectorAll("input"))||[];(!e.filterable&&!e.defaultFirstOption&&!oc(e.modelValue)||!Array.from(ye).includes(document.activeElement))&&re(),e.defaultFirstOption&&(e.filterable||e.remote)&&Se.value&&x()},{flush:"post"}),Pe(()=>a.hoveringIndex,se=>{Ot(se)&&se>-1?T.value=J.value[se]||{}:T.value={},J.value.forEach(ye=>{ye.hover=T.value===ye})}),Yo(()=>{a.isBeforeHide||ce()});const A=se=>{a.previousQuery!==se&&(a.previousQuery=se,e.filterable&&kt(e.filterMethod)?e.filterMethod(se):e.filterable&&e.remote&&kt(e.remoteMethod)&&e.remoteMethod(se),e.defaultFirstOption&&(e.filterable||e.remote)&&Se.value?we(x):we(Te))},x=()=>{const se=J.value.filter(Mt=>Mt.visible&&!Mt.disabled&&!Mt.states.groupDisabled),ye=se.find(Mt=>Mt.created),nt=se[0];a.hoveringIndex=dl(J.value,ye||nt)},re=()=>{if(e.multiple)a.selectedLabel="";else{const ye=ue(e.modelValue);a.selectedLabel=ye.currentLabel,a.selected=ye;return}const se=[];on(e.modelValue)&&e.modelValue.forEach(ye=>{se.push(ue(ye))}),a.selected=se},ue=se=>{let ye;const nt=qs(se).toLowerCase()==="object",Mt=qs(se).toLowerCase()==="null",Gn=qs(se).toLowerCase()==="undefined";for(let mo=a.cachedOptions.size-1;mo>=0;mo--){const gn=B.value[mo];if(nt?zn(gn.value,e.valueKey)===zn(se,e.valueKey):gn.value===se){ye={value:se,currentLabel:gn.currentLabel,isDisabled:gn.isDisabled};break}}if(ye)return ye;const Fo=nt?se.label:!Mt&&!Gn?se:"";return{value:se,currentLabel:Fo}},Te=()=>{e.multiple?a.hoveringIndex=J.value.findIndex(se=>a.selected.some(ye=>Rl(ye)===Rl(se))):a.hoveringIndex=J.value.findIndex(se=>Rl(se)===Rl(a.selected))},Ae=()=>{a.selectionWidth=u.value.getBoundingClientRect().width},Qe=()=>{a.calculatorWidth=R.value.getBoundingClientRect().width},Ne=()=>{a.collapseItemWidth=O.value.getBoundingClientRect().width},he=()=>{var se,ye;(ye=(se=r.value)==null?void 0:se.updatePopper)==null||ye.call(se)},Le=()=>{var se,ye;(ye=(se=c.value)==null?void 0:se.updatePopper)==null||ye.call(se)},ve=()=>{a.inputValue.length>0&&!Y.value&&(Y.value=!0),A(a.inputValue)},_e=se=>{if(a.inputValue=se.target.value,e.remote)je();else return ve()},je=JM(()=>{ve()},Re.value),pe=se=>{jo(e.modelValue,se)||t($c,se)},Ee=se=>xM(se,ye=>!a.disabledOptions.has(ye)),ft=se=>{if(e.multiple&&se.code!==Do.delete&&se.target.value.length<=0){const ye=e.modelValue.slice(),nt=Ee(ye);if(nt<0)return;ye.splice(nt,1),t(dn,ye),pe(ye)}},In=(se,ye)=>{const nt=a.selected.indexOf(ye);if(nt>-1&&!F.value){const Mt=e.modelValue.slice();Mt.splice(nt,1),t(dn,Mt),pe(Mt),t("remove-tag",ye.value)}se.stopPropagation(),El()},vo=se=>{se.stopPropagation();const ye=e.multiple?[]:void 0;if(e.multiple)for(const nt of a.selected)nt.isDisabled&&ye.push(nt.value);t(dn,ye),pe(ye),a.hoveringIndex=-1,Y.value=!1,t("clear"),El()},cl=se=>{if(e.multiple){const ye=(e.modelValue||[]).slice(),nt=dl(ye,se.value);nt>-1?ye.splice(nt,1):(e.multipleLimit<=0||ye.length<e.multipleLimit)&&ye.push(se.value),t(dn,ye),pe(ye),se.created&&A(""),e.filterable&&!e.reserveKeyword&&(a.inputValue="")}else t(dn,se.value),pe(se.value),Y.value=!1;El(),!Y.value&&we(()=>{Gl(se)})},dl=(se=[],ye)=>{if(!ln(ye))return se.indexOf(ye);const nt=e.valueKey;let Mt=-1;return se.some((Gn,Fo)=>nc(zn(Gn,nt))===zn(ye,nt)?(Mt=Fo,!0):!1),Mt},Gl=se=>{var ye,nt,Mt,Gn,Fo;const wl=on(se)?se[0]:se;let mo=null;if(wl!=null&&wl.value){const gn=J.value.filter(wi=>wi.value===wl.value);gn.length>0&&(mo=gn[0].$el)}if(r.value&&mo){const gn=(Gn=(Mt=(nt=(ye=r.value)==null?void 0:ye.popperRef)==null?void 0:nt.contentRef)==null?void 0:Mt.querySelector)==null?void 0:Gn.call(Mt,`.${l.be("dropdown","wrap")}`);gn&&jM(gn,mo)}(Fo=L.value)==null||Fo.handleScroll()},kR=se=>{a.options.set(se.value,se),a.cachedOptions.set(se.value,se),se.disabled&&a.disabledOptions.set(se.value,se)},JR=(se,ye)=>{a.options.get(se)===ye&&a.options.delete(se)},{handleCompositionStart:xR,handleCompositionUpdate:$R,handleCompositionEnd:DR}=XO(se=>_e(se)),BR=H(()=>{var se,ye;return(ye=(se=r.value)==null?void 0:se.popperRef)==null?void 0:ye.contentRef}),zR=()=>{we(()=>Gl(a.selected))},El=()=>{var se;(se=d.value)==null||se.focus()},jR=()=>{Ci()},qR=se=>{vo(se)},Ci=se=>{if(Y.value=!1,X.value){const ye=new FocusEvent("focus",se);we(()=>y(ye))}},ef=()=>{a.inputValue.length>0?a.inputValue="":Y.value=!1},Gi=()=>{F.value||(a.menuVisibleOnFocus?a.menuVisibleOnFocus=!1:Y.value=!Y.value)},tf=()=>{Y.value?J.value[a.hoveringIndex]&&cl(J.value[a.hoveringIndex]):Gi()},Rl=se=>ln(se.value)?zn(se.value,e.valueKey):se.value,nf=H(()=>J.value.filter(se=>se.visible).every(se=>se.disabled)),of=H(()=>e.multiple?e.collapseTags?a.selected.slice(0,e.maxCollapseTags):a.selected:[]),lf=H(()=>e.multiple?e.collapseTags?a.selected.slice(e.maxCollapseTags):[]:[]),Ei=se=>{if(!Y.value){Y.value=!0;return}if(!(a.options.size===0||Se.value===0)&&!nf.value){se==="next"?(a.hoveringIndex++,a.hoveringIndex===a.options.size&&(a.hoveringIndex=0)):se==="prev"&&(a.hoveringIndex--,a.hoveringIndex<0&&(a.hoveringIndex=a.options.size-1));const ye=J.value[a.hoveringIndex];(ye.disabled===!0||ye.states.groupDisabled===!0||!ye.visible)&&Ei(se),we(()=>Gl(T.value))}},sf=()=>{if(!u.value)return 0;const se=window.getComputedStyle(u.value);return Number.parseFloat(se.gap||"6px")},af=H(()=>{const se=sf();return{maxWidth:`${O.value&&e.maxCollapseTags===1?a.selectionWidth-a.collapseItemWidth-se:a.selectionWidth}px`}}),rf=H(()=>({maxWidth:`${a.selectionWidth}px`})),uf=H(()=>({width:`${Math.max(a.calculatorWidth,TO)}px`}));return e.multiple&&!on(e.modelValue)&&t(dn,[]),!e.multiple&&on(e.modelValue)&&t(dn,""),Qn(u,Ae),Qn(R,Qe),Qn(h,he),Qn(S,he),Qn(P,Le),Qn(O,Ne),Ge(()=>{re()}),{inputId:W,contentId:o,nsSelect:l,nsInput:s,states:a,isFocused:X,expanded:Y,optionsArray:J,hoverOption:T,selectSize:z,filteredOptionsCount:Se,resetCalculatorWidth:Qe,updateTooltip:he,updateTagTooltip:Le,debouncedOnInputChange:je,onInput:_e,deletePrevTag:ft,deleteTag:In,deleteSelected:vo,handleOptionSelect:cl,scrollToOption:Gl,hasModelValue:Z,shouldShowPlaceholder:w,currentPlaceholder:$,showClose:K,iconComponent:U,iconReverse:G,validateState:D,validateIcon:le,showNewOption:Ie,updateOptions:ce,collapseTagSize:ne,setSelected:re,selectDisabled:F,emptyText:ae,handleCompositionStart:xR,handleCompositionUpdate:$R,handleCompositionEnd:DR,onOptionCreate:kR,onOptionDestroy:JR,handleMenuEnter:zR,handleFocus:M,focus:El,blur:jR,handleBlur:y,handleClearClick:qR,handleClickOutside:Ci,handleEsc:ef,toggleMenu:Gi,selectOption:tf,getValueKey:Rl,navigateOptions:Ei,dropdownMenuVisible:ge,showTagList:of,collapseTagList:lf,tagStyle:af,collapseTagStyle:rf,inputStyle:uf,popperRef:BR,inputRef:d,tooltipRef:r,tagTooltipRef:c,calculatorRef:R,prefixRef:p,suffixRef:f,selectRef:i,wrapperRef:S,selectionRef:u,scrollbarRef:L,menuRef:h,tagMenuRef:P,collapseItemRef:O}};var yO=q({name:"ElOptions",setup(e,{slots:t}){const n=Ct(Zs);let o=[];return()=>{var l,s;const a=(l=t.default)==null?void 0:l.call(t),i=[];function u(r){on(r)&&r.forEach(c=>{var d,R,p,f;const h=(d=(c==null?void 0:c.type)||{})==null?void 0:d.name;h==="ElOptionGroup"?u(!hn(c.children)&&!on(c.children)&&kt((R=c.children)==null?void 0:R.default)?(p=c.children)==null?void 0:p.default():c.children):h==="ElOption"?i.push((f=c.props)==null?void 0:f.value):on(c.children)&&u(c.children)})}return a.length&&u((s=a[0])==null?void 0:s.children),jo(i,o)||(o=i,n&&(n.states.optionValues=i)),a}}});const LO=et({name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:ju,effect:{type:Ze(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:Ze(Object),default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:mi.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:ao,default:ja},fitInputWidth:Boolean,suffixIcon:{type:ao,default:Uf},tagType:{...cd.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,placement:{type:Ze(String),values:tc,default:"bottom-start"},fallbackPlacements:{type:Ze(Array),default:["bottom-start","top-start","right","left"]},ariaLabel:{type:String,default:void 0}}),xr="ElSelect",bO=q({name:xr,componentName:xr,components:{ElInput:di,ElSelectMenu:NO,ElOption:Mi,ElOptions:yO,ElTag:jS,ElScrollbar:Gg,ElTooltip:kS,ElIcon:It},directives:{ClickOutside:JS},props:LO,emits:[dn,$c,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const n=VO(e,t);return an(Zs,fo({props:e,states:n.states,optionsArray:n.optionsArray,handleOptionSelect:n.handleOptionSelect,onOptionCreate:n.onOptionCreate,onOptionDestroy:n.onOptionDestroy,selectRef:n.selectRef,setSelected:n.setSelected})),{...n}}}),IO=["id","disabled","autocomplete","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label"],YO=["textContent"];function WO(e,t,n,o,l,s){const a=te("el-tag"),i=te("el-tooltip"),u=te("el-icon"),r=te("el-option"),c=te("el-options"),d=te("el-scrollbar"),R=te("el-select-menu"),p=ze("click-outside");return de((g(),b("div",{ref:"selectRef",class:E([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),onMouseenter:t[14]||(t[14]=f=>e.states.inputHovering=!0),onMouseleave:t[15]||(t[15]=f=>e.states.inputHovering=!1),onClick:t[16]||(t[16]=Fe((...f)=>e.toggleMenu&&e.toggleMenu(...f),["stop"]))},[N(i,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,onBeforeShow:e.handleMenuEnter,onHide:t[13]||(t[13]=f=>e.states.isBeforeHide=!1)},{default:Q(()=>{var f;return[m("div",{ref:"wrapperRef",class:E([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)])},[e.$slots.prefix?(g(),b("div",{key:0,ref:"prefixRef",class:E(e.nsSelect.e("prefix"))},[We(e.$slots,"prefix")],2)):j("v-if",!0),m("div",{ref:"selectionRef",class:E([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?We(e.$slots,"tag",{key:0},()=>[(g(!0),b(ie,null,me(e.showTagList,h=>(g(),b("div",{key:e.getValueKey(h),class:E(e.nsSelect.e("selected-item"))},[N(a,{closable:!e.selectDisabled&&!h.isDisabled,size:e.collapseTagSize,type:e.tagType,"disable-transitions":"",style:ee(e.tagStyle),onClose:P=>e.deleteTag(P,h)},{default:Q(()=>[m("span",{class:E(e.nsSelect.e("tags-text"))},Me(h.currentLabel),3)]),_:2},1032,["closable","size","type","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(g(),k(i,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:Q(()=>[m("div",{ref:"collapseItemRef",class:E(e.nsSelect.e("selected-item"))},[N(a,{closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":"",style:ee(e.collapseTagStyle)},{default:Q(()=>[m("span",{class:E(e.nsSelect.e("tags-text"))}," + "+Me(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","style"])],2)]),content:Q(()=>[m("div",{ref:"tagMenuRef",class:E(e.nsSelect.e("selection"))},[(g(!0),b(ie,null,me(e.collapseTagList,h=>(g(),b("div",{key:e.getValueKey(h),class:E(e.nsSelect.e("selected-item"))},[N(a,{class:"in-tooltip",closable:!e.selectDisabled&&!h.isDisabled,size:e.collapseTagSize,type:e.tagType,"disable-transitions":"",onClose:P=>e.deleteTag(P,h)},{default:Q(()=>[m("span",{class:E(e.nsSelect.e("tags-text"))},Me(h.currentLabel),3)]),_:2},1032,["closable","size","type","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):j("v-if",!0)]):j("v-if",!0),e.selectDisabled?j("v-if",!0):(g(),b("div",{key:1,class:E([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[de(m("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":t[0]||(t[0]=h=>e.states.inputValue=h),type:"text",class:E([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:ee(e.inputStyle),role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":((f=e.hoverOption)==null?void 0:f.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onFocus:t[1]||(t[1]=(...h)=>e.handleFocus&&e.handleFocus(...h)),onBlur:t[2]||(t[2]=(...h)=>e.handleBlur&&e.handleBlur(...h)),onKeydown:[t[3]||(t[3]=Yt(Fe(h=>e.navigateOptions("next"),["stop","prevent"]),["down"])),t[4]||(t[4]=Yt(Fe(h=>e.navigateOptions("prev"),["stop","prevent"]),["up"])),t[5]||(t[5]=Yt(Fe((...h)=>e.handleEsc&&e.handleEsc(...h),["stop","prevent"]),["esc"])),t[6]||(t[6]=Yt(Fe((...h)=>e.selectOption&&e.selectOption(...h),["stop","prevent"]),["enter"])),t[7]||(t[7]=Yt(Fe((...h)=>e.deletePrevTag&&e.deletePrevTag(...h),["stop"]),["delete"]))],onCompositionstart:t[8]||(t[8]=(...h)=>e.handleCompositionStart&&e.handleCompositionStart(...h)),onCompositionupdate:t[9]||(t[9]=(...h)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...h)),onCompositionend:t[10]||(t[10]=(...h)=>e.handleCompositionEnd&&e.handleCompositionEnd(...h)),onInput:t[11]||(t[11]=(...h)=>e.onInput&&e.onInput(...h)),onClick:t[12]||(t[12]=Fe((...h)=>e.toggleMenu&&e.toggleMenu(...h),["stop"]))},null,46,IO),[[lc,e.states.inputValue]]),e.filterable?(g(),b("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:E(e.nsSelect.e("input-calculator")),textContent:Me(e.states.inputValue)},null,10,YO)):j("v-if",!0)],2)),e.shouldShowPlaceholder?(g(),b("div",{key:2,class:E([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[m("span",null,Me(e.currentPlaceholder),1)],2)):j("v-if",!0)],2),m("div",{ref:"suffixRef",class:E(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClose?(g(),k(u,{key:0,class:E([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:Q(()=>[(g(),k(yt(e.iconComponent)))]),_:1},8,["class"])):j("v-if",!0),e.showClose&&e.clearIcon?(g(),k(u,{key:1,class:E([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:Q(()=>[(g(),k(yt(e.clearIcon)))]),_:1},8,["class","onClick"])):j("v-if",!0),e.validateState&&e.validateIcon?(g(),k(u,{key:2,class:E([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:Q(()=>[(g(),k(yt(e.validateIcon)))]),_:1},8,["class"])):j("v-if",!0)],2)],2)]}),content:Q(()=>[N(R,{ref:"menuRef"},{default:Q(()=>[e.$slots.header?(g(),b("div",{key:0,class:E(e.nsSelect.be("dropdown","header"))},[We(e.$slots,"header")],2)):j("v-if",!0),de(N(d,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:E([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:Q(()=>[e.showNewOption?(g(),k(r,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):j("v-if",!0),N(c,null,{default:Q(()=>[We(e.$slots,"default")]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label"]),[[Nt,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(g(),b("div",{key:1,class:E(e.nsSelect.be("dropdown","loading"))},[We(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(g(),b("div",{key:2,class:E(e.nsSelect.be("dropdown","empty"))},[We(e.$slots,"empty",{},()=>[m("span",null,Me(e.emptyText),1)])],2)):j("v-if",!0),e.$slots.footer?(g(),b("div",{key:3,class:E(e.nsSelect.be("dropdown","footer"))},[We(e.$slots,"footer")],2)):j("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-options","fallback-placements","effect","transition","persistent","onBeforeShow"])],34)),[[p,e.handleClickOutside,e.popperRef]])}var UO=tt(bO,[["render",WO],["__file","select.vue"]]);const QO=q({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=qe("select"),n=_(null),o=Io(),l=_([]);an(Rd,fo({...ys(e)}));const s=H(()=>l.value.some(u=>u.visible===!0)),a=u=>{const r=[];return on(u.children)&&u.children.forEach(c=>{var d,R;c.type&&c.type.name==="ElOption"&&c.component&&c.component.proxy?r.push(c.component.proxy):(d=c.children)!=null&&d.length?r.push(...a(c)):(R=c.component)!=null&&R.subTree&&r.push(...a(c.component.subTree))}),r},i=()=>{l.value=a(o.subTree)};return Ge(()=>{i()}),Qf(n,i,{attributes:!0,subtree:!0,childList:!0}),{groupRef:n,visible:s,ns:t}}});function FO(e,t,n,o,l,s){return de((g(),b("ul",{ref:"groupRef",class:E(e.ns.be("group","wrap"))},[m("li",{class:E(e.ns.be("group","title"))},Me(e.label),3),m("li",null,[m("ul",{class:E(e.ns.b("group"))},[We(e.$slots,"default")],2)])],2)),[[Nt,e.visible]])}var fd=tt(QO,[["render",FO],["__file","option-group.vue"]]);const ZO=_n(UO,{Option:Mi,OptionGroup:fd}),AO=sc(Mi);sc(fd);const gi=()=>Ct(dd,{}),KO=et({pageSize:{type:Number,required:!0},pageSizes:{type:Ze(Array),default:()=>Bo([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,teleported:Boolean,size:{type:String,values:Vs}}),_O=q({name:"ElPaginationSizes"}),HO=q({..._O,props:KO,emits:["page-size-change"],setup(e,{emit:t}){const n=e,{t:o}=Hn(),l=qe("pagination"),s=gi(),a=_(n.pageSize);Pe(()=>n.pageSizes,(r,c)=>{if(!jo(r,c)&&Array.isArray(r)){const d=r.includes(n.pageSize)?n.pageSize:n.pageSizes[0];t("page-size-change",d)}}),Pe(()=>n.pageSize,r=>{a.value=r});const i=H(()=>n.pageSizes);function u(r){var c;r!==a.value&&(a.value=r,(c=s.handleSizeChange)==null||c.call(s,Number(r)))}return(r,c)=>(g(),b("span",{class:E(v(l).e("sizes"))},[N(v(ZO),{"model-value":a.value,disabled:r.disabled,"popper-class":r.popperClass,size:r.size,teleported:r.teleported,"validate-event":!1,onChange:u},{default:Q(()=>[(g(!0),b(ie,null,me(v(i),d=>(g(),k(v(AO),{key:d,value:d,label:d+v(o)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size","teleported"])],2))}});var CO=tt(HO,[["__file","sizes.vue"]]);const GO=et({size:{type:String,values:Vs}}),EO=["disabled"],wO=q({name:"ElPaginationJumper"}),kO=q({...wO,props:GO,setup(e){const{t}=Hn(),n=qe("pagination"),{pageCount:o,disabled:l,currentPage:s,changeEvent:a}=gi(),i=_(),u=H(()=>{var d;return(d=i.value)!=null?d:s==null?void 0:s.value});function r(d){i.value=d?+d:""}function c(d){d=Math.trunc(+d),a==null||a(d),i.value=void 0}return(d,R)=>(g(),b("span",{class:E(v(n).e("jump")),disabled:v(l)},[m("span",{class:E([v(n).e("goto")])},Me(v(t)("el.pagination.goto")),3),N(v(di),{size:d.size,class:E([v(n).e("editor"),v(n).is("in-pagination")]),min:1,max:v(o),disabled:v(l),"model-value":v(u),"validate-event":!1,label:v(t)("el.pagination.page"),type:"number","onUpdate:modelValue":r,onChange:c},null,8,["size","class","max","disabled","model-value","label"]),m("span",{class:E([v(n).e("classifier")])},Me(v(t)("el.pagination.pageClassifier")),3)],10,EO))}});var JO=tt(kO,[["__file","jumper.vue"]]);const xO=et({total:{type:Number,default:1e3}}),$O=["disabled"],DO=q({name:"ElPaginationTotal"}),BO=q({...DO,props:xO,setup(e){const{t}=Hn(),n=qe("pagination"),{disabled:o}=gi();return(l,s)=>(g(),b("span",{class:E(v(n).e("total")),disabled:v(o)},Me(v(t)("el.pagination.total",{total:l.total})),11,$O))}});var zO=tt(BO,[["__file","total.vue"]]);const jO=et({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),qO=["onKeyup"],eP=["aria-current","aria-label","tabindex"],tP=["tabindex","aria-label"],nP=["aria-current","aria-label","tabindex"],oP=["tabindex","aria-label"],lP=["aria-current","aria-label","tabindex"],sP=q({name:"ElPaginationPager"}),aP=q({...sP,props:jO,emits:["change"],setup(e,{emit:t}){const n=e,o=qe("pager"),l=qe("icon"),{t:s}=Hn(),a=_(!1),i=_(!1),u=_(!1),r=_(!1),c=_(!1),d=_(!1),R=H(()=>{const X=n.pagerCount,M=(X-1)/2,y=Number(n.currentPage),Y=Number(n.pageCount);let T=!1,V=!1;Y>X&&(y>X-M&&(T=!0),y<Y-M&&(V=!0));const I=[];if(T&&!V){const W=Y-(X-2);for(let F=W;F<Y;F++)I.push(F)}else if(!T&&V)for(let W=2;W<X;W++)I.push(W);else if(T&&V){const W=Math.floor(X/2)-1;for(let F=y-W;F<=y+W;F++)I.push(F)}else for(let W=2;W<Y;W++)I.push(W);return I}),p=H(()=>["more","btn-quickprev",l.b(),o.is("disabled",n.disabled)]),f=H(()=>["more","btn-quicknext",l.b(),o.is("disabled",n.disabled)]),h=H(()=>n.disabled?-1:0);Yo(()=>{const X=(n.pagerCount-1)/2;a.value=!1,i.value=!1,n.pageCount>n.pagerCount&&(n.currentPage>n.pagerCount-X&&(a.value=!0),n.currentPage<n.pageCount-X&&(i.value=!0))});function P(X=!1){n.disabled||(X?u.value=!0:r.value=!0)}function O(X=!1){X?c.value=!0:d.value=!0}function L(X){const M=X.target;if(M.tagName.toLowerCase()==="li"&&Array.from(M.classList).includes("number")){const y=Number(M.textContent);y!==n.currentPage&&t("change",y)}else M.tagName.toLowerCase()==="li"&&Array.from(M.classList).includes("more")&&S(X)}function S(X){const M=X.target;if(M.tagName.toLowerCase()==="ul"||n.disabled)return;let y=Number(M.textContent);const Y=n.pageCount,T=n.currentPage,V=n.pagerCount-2;M.className.includes("more")&&(M.className.includes("quickprev")?y=T-V:M.className.includes("quicknext")&&(y=T+V)),Number.isNaN(+y)||(y<1&&(y=1),y>Y&&(y=Y)),y!==T&&t("change",y)}return(X,M)=>(g(),b("ul",{class:E(v(o).b()),onClick:S,onKeyup:Yt(L,["enter"])},[X.pageCount>0?(g(),b("li",{key:0,class:E([[v(o).is("active",X.currentPage===1),v(o).is("disabled",X.disabled)],"number"]),"aria-current":X.currentPage===1,"aria-label":v(s)("el.pagination.currentPage",{pager:1}),tabindex:v(h)}," 1 ",10,eP)):j("v-if",!0),a.value?(g(),b("li",{key:1,class:E(v(p)),tabindex:v(h),"aria-label":v(s)("el.pagination.prevPages",{pager:X.pagerCount-2}),onMouseenter:M[0]||(M[0]=y=>P(!0)),onMouseleave:M[1]||(M[1]=y=>u.value=!1),onFocus:M[2]||(M[2]=y=>O(!0)),onBlur:M[3]||(M[3]=y=>c.value=!1)},[(u.value||c.value)&&!X.disabled?(g(),k(v(Ff),{key:0})):(g(),k(v(Ji),{key:1}))],42,tP)):j("v-if",!0),(g(!0),b(ie,null,me(v(R),y=>(g(),b("li",{key:y,class:E([[v(o).is("active",X.currentPage===y),v(o).is("disabled",X.disabled)],"number"]),"aria-current":X.currentPage===y,"aria-label":v(s)("el.pagination.currentPage",{pager:y}),tabindex:v(h)},Me(y),11,nP))),128)),i.value?(g(),b("li",{key:2,class:E(v(f)),tabindex:v(h),"aria-label":v(s)("el.pagination.nextPages",{pager:X.pagerCount-2}),onMouseenter:M[4]||(M[4]=y=>P()),onMouseleave:M[5]||(M[5]=y=>r.value=!1),onFocus:M[6]||(M[6]=y=>O()),onBlur:M[7]||(M[7]=y=>d.value=!1)},[(r.value||d.value)&&!X.disabled?(g(),k(v(Zf),{key:0})):(g(),k(v(Ji),{key:1}))],42,oP)):j("v-if",!0),X.pageCount>1?(g(),b("li",{key:3,class:E([[v(o).is("active",X.currentPage===X.pageCount),v(o).is("disabled",X.disabled)],"number"]),"aria-current":X.currentPage===X.pageCount,"aria-label":v(s)("el.pagination.currentPage",{pager:X.pageCount}),tabindex:v(h)},Me(X.pageCount),11,lP)):j("v-if",!0)],42,qO))}});var iP=tt(aP,[["__file","pager.vue"]]);const Et=e=>typeof e!="number",rP=et({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>Ot(e)&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:Ze(Array),default:()=>Bo([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:ao,default:()=>Af},nextText:{type:String,default:""},nextIcon:{type:ao,default:()=>Kf},teleported:{type:Boolean,default:!0},small:Boolean,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),uP={"update:current-page":e=>Ot(e),"update:page-size":e=>Ot(e),"size-change":e=>Ot(e),change:(e,t)=>Ot(e)&&Ot(t),"current-change":e=>Ot(e),"prev-click":e=>Ot(e),"next-click":e=>Ot(e)},$r="ElPagination";var cP=q({name:$r,props:rP,emits:uP,setup(e,{emit:t,slots:n}){const{t:o}=Hn(),l=qe("pagination"),s=Io().vnode.props||{},a="onUpdate:currentPage"in s||"onUpdate:current-page"in s||"onCurrentChange"in s,i="onUpdate:pageSize"in s||"onUpdate:page-size"in s||"onSizeChange"in s,u=H(()=>{if(Et(e.total)&&Et(e.pageCount)||!Et(e.currentPage)&&!a)return!1;if(e.layout.includes("sizes")){if(Et(e.pageCount)){if(!Et(e.total)&&!Et(e.pageSize)&&!i)return!1}else if(!i)return!1}return!0}),r=_(Et(e.defaultPageSize)?10:e.defaultPageSize),c=_(Et(e.defaultCurrentPage)?1:e.defaultCurrentPage),d=H({get(){return Et(e.pageSize)?r.value:e.pageSize},set(S){Et(e.pageSize)&&(r.value=S),i&&(t("update:page-size",S),t("size-change",S))}}),R=H(()=>{let S=0;return Et(e.pageCount)?Et(e.total)||(S=Math.max(1,Math.ceil(e.total/d.value))):S=e.pageCount,S}),p=H({get(){return Et(e.currentPage)?c.value:e.currentPage},set(S){let X=S;S<1?X=1:S>R.value&&(X=R.value),Et(e.currentPage)&&(c.value=X),a&&(t("update:current-page",X),t("current-change",X))}});Pe(R,S=>{p.value>S&&(p.value=S)}),Pe([p,d],S=>{t("change",...S)},{flush:"post"});function f(S){p.value=S}function h(S){d.value=S;const X=R.value;p.value>X&&(p.value=X)}function P(){e.disabled||(p.value-=1,t("prev-click",p.value))}function O(){e.disabled||(p.value+=1,t("next-click",p.value))}function L(S,X){S&&(S.props||(S.props={}),S.props.class=[S.props.class,X].join(" "))}return an(dd,{pageCount:R,disabled:H(()=>e.disabled),currentPage:p,changeEvent:f,handleSizeChange:h}),()=>{var S,X;if(!u.value)return o("el.pagination.deprecationWarning"),null;if(!e.layout||e.hideOnSinglePage&&R.value<=1)return null;const M=[],y=[],Y=jt("div",{class:l.e("rightwrapper")},y),T={prev:jt(cO,{disabled:e.disabled,currentPage:p.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:P}),jumper:jt(JO,{size:e.small?"small":"default"}),pager:jt(iP,{currentPage:p.value,pageCount:R.value,pagerCount:e.pagerCount,onChange:f,disabled:e.disabled}),next:jt(vO,{disabled:e.disabled,currentPage:p.value,pageCount:R.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:O}),sizes:jt(CO,{pageSize:d.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,teleported:e.teleported,size:e.small?"small":"default"}),slot:(X=(S=n==null?void 0:n.default)==null?void 0:S.call(n))!=null?X:null,total:jt(zO,{total:Et(e.total)?0:e.total})},V=e.layout.split(",").map(W=>W.trim());let I=!1;return V.forEach(W=>{if(W==="->"){I=!0;return}I?y.push(T[W]):M.push(T[W])}),L(M[0],l.is("first")),L(M[M.length-1],l.is("last")),I&&y.length>0&&(L(y[0],l.is("first")),L(y[y.length-1],l.is("last")),M.push(Y)),jt("div",{class:[l.b(),l.is("background",e.background),{[l.m("small")]:e.small}]},M)}}});const dP=_n(cP),RP=et({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:{type:Boolean,default:!1},duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:Ze(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:Ze([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:Ze(Function),default:e=>`${e}%`}}),fP=["aria-valuenow"],pP={viewBox:"0 0 100 100"},hP=["d","stroke","stroke-linecap","stroke-width"],vP=["d","stroke","opacity","stroke-linecap","stroke-width"],mP={key:0},MP=q({name:"ElProgress"}),gP=q({...MP,props:RP,setup(e){const t=e,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},o=qe("progress"),l=H(()=>({width:`${t.percentage}%`,animationDuration:`${t.duration}s`,backgroundColor:L(t.percentage)})),s=H(()=>(t.strokeWidth/t.width*100).toFixed(1)),a=H(()=>["circle","dashboard"].includes(t.type)?Number.parseInt(`${50-Number.parseFloat(s.value)/2}`,10):0),i=H(()=>{const S=a.value,X=t.type==="dashboard";return`
- M 50 50
- m 0 ${X?"":"-"}${S}
- a ${S} ${S} 0 1 1 0 ${X?"-":""}${S*2}
- a ${S} ${S} 0 1 1 0 ${X?"":"-"}${S*2}
- `}),u=H(()=>2*Math.PI*a.value),r=H(()=>t.type==="dashboard"?.75:1),c=H(()=>`${-1*u.value*(1-r.value)/2}px`),d=H(()=>({strokeDasharray:`${u.value*r.value}px, ${u.value}px`,strokeDashoffset:c.value})),R=H(()=>({strokeDasharray:`${u.value*r.value*(t.percentage/100)}px, ${u.value}px`,strokeDashoffset:c.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),p=H(()=>{let S;return t.color?S=L(t.percentage):S=n[t.status]||n.default,S}),f=H(()=>t.status==="warning"?_f:t.type==="line"?t.status==="success"?ac:ja:t.status==="success"?ic:ds),h=H(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),P=H(()=>t.format(t.percentage));function O(S){const X=100/S.length;return S.map((y,Y)=>hn(y)?{color:y,percentage:(Y+1)*X}:y).sort((y,Y)=>y.percentage-Y.percentage)}const L=S=>{var X;const{color:M}=t;if(kt(M))return M(S);if(hn(M))return M;{const y=O(M);for(const Y of y)if(Y.percentage>S)return Y.color;return(X=y[y.length-1])==null?void 0:X.color}};return(S,X)=>(g(),b("div",{class:E([v(o).b(),v(o).m(S.type),v(o).is(S.status),{[v(o).m("without-text")]:!S.showText,[v(o).m("text-inside")]:S.textInside}]),role:"progressbar","aria-valuenow":S.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[S.type==="line"?(g(),b("div",{key:0,class:E(v(o).b("bar"))},[m("div",{class:E(v(o).be("bar","outer")),style:ee({height:`${S.strokeWidth}px`})},[m("div",{class:E([v(o).be("bar","inner"),{[v(o).bem("bar","inner","indeterminate")]:S.indeterminate},{[v(o).bem("bar","inner","striped")]:S.striped},{[v(o).bem("bar","inner","striped-flow")]:S.stripedFlow}]),style:ee(v(l))},[(S.showText||S.$slots.default)&&S.textInside?(g(),b("div",{key:0,class:E(v(o).be("bar","innerText"))},[We(S.$slots,"default",{percentage:S.percentage},()=>[m("span",null,Me(v(P)),1)])],2)):j("v-if",!0)],6)],6)],2)):(g(),b("div",{key:1,class:E(v(o).b("circle")),style:ee({height:`${S.width}px`,width:`${S.width}px`})},[(g(),b("svg",pP,[m("path",{class:E(v(o).be("circle","track")),d:v(i),stroke:`var(${v(o).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":S.strokeLinecap,"stroke-width":v(s),fill:"none",style:ee(v(d))},null,14,hP),m("path",{class:E(v(o).be("circle","path")),d:v(i),stroke:v(p),fill:"none",opacity:S.percentage?1:0,"stroke-linecap":S.strokeLinecap,"stroke-width":v(s),style:ee(v(R))},null,14,vP)]))],6)),(S.showText||S.$slots.default)&&!S.textInside?(g(),b("div",{key:2,class:E(v(o).e("text")),style:ee({fontSize:`${v(h)}px`})},[We(S.$slots,"default",{percentage:S.percentage},()=>[S.status?(g(),k(v(It),{key:1},{default:Q(()=>[(g(),k(yt(v(f))))]),_:1})):(g(),b("span",mP,Me(v(P)),1))])],6)):j("v-if",!0)],10,fP))}});var SP=tt(gP,[["__file","progress.vue"]]);const pd=_n(SP),hd=Symbol("uploadContextKey"),OP="ElUpload";class PP extends Error{constructor(t,n,o,l){super(t),this.name="UploadAjaxError",this.status=n,this.method=o,this.url=l}}function Dr(e,t,n){let o;return n.response?o=`${n.response.error||n.response}`:n.responseText?o=`${n.responseText}`:o=`fail to ${t.method} ${e} ${n.status}`,new PP(o,n.status,t.method,e)}function NP(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const XP=e=>{typeof XMLHttpRequest>"u"&&Wl(OP,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",s=>{const a=s;a.percent=s.total>0?s.loaded/s.total*100:0,e.onProgress(a)});const o=new FormData;if(e.data)for(const[s,a]of Object.entries(e.data))on(a)&&a.length?o.append(s,...a):o.append(s,a);o.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(Dr(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(Dr(n,e,t));e.onSuccess(NP(t))}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const l=e.headers||{};if(l instanceof Headers)l.forEach((s,a)=>t.setRequestHeader(a,s));else for(const[s,a]of Object.entries(l))Wo(a)||t.setRequestHeader(s,String(a));return t.send(o),t},vd=["text","picture","picture-card"];let TP=1;const Wa=()=>Date.now()+TP++,md=et({action:{type:String,default:"#"},headers:{type:Ze(Object)},method:{type:String,default:"post"},data:{type:Ze([Object,Function,Promise]),default:()=>Bo({})},multiple:{type:Boolean,default:!1},name:{type:String,default:"file"},drag:{type:Boolean,default:!1},withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:Ze(Array),default:()=>Bo([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:vd,default:"text"},httpRequest:{type:Ze(Function),default:XP},disabled:Boolean,limit:Number}),VP=et({...md,beforeUpload:{type:Ze(Function),default:Rt},beforeRemove:{type:Ze(Function)},onRemove:{type:Ze(Function),default:Rt},onChange:{type:Ze(Function),default:Rt},onPreview:{type:Ze(Function),default:Rt},onSuccess:{type:Ze(Function),default:Rt},onProgress:{type:Ze(Function),default:Rt},onError:{type:Ze(Function),default:Rt},onExceed:{type:Ze(Function),default:Rt},crossorigin:{type:Ze(String)}}),yP=et({files:{type:Ze(Array),default:()=>Bo([])},disabled:{type:Boolean,default:!1},handlePreview:{type:Ze(Function),default:Rt},listType:{type:String,values:vd,default:"text"},crossorigin:{type:Ze(String)}}),LP={remove:e=>!!e},bP=["onKeydown"],IP=["src","crossorigin"],YP=["onClick"],WP=["title"],UP=["onClick"],QP=["onClick"],FP=q({name:"ElUploadList"}),ZP=q({...FP,props:yP,emits:LP,setup(e,{emit:t}){const n=e,{t:o}=Hn(),l=qe("upload"),s=qe("icon"),a=qe("list"),i=Yl(),u=_(!1),r=H(()=>[l.b("list"),l.bm("list",n.listType),l.is("disabled",n.disabled)]),c=d=>{t("remove",d)};return(d,R)=>(g(),k(Ef,{tag:"ul",class:E(v(r)),name:v(a).b()},{default:Q(()=>[(g(!0),b(ie,null,me(d.files,p=>(g(),b("li",{key:p.uid||p.name,class:E([v(l).be("list","item"),v(l).is(p.status),{focusing:u.value}]),tabindex:"0",onKeydown:Yt(f=>!v(i)&&c(p),["delete"]),onFocus:R[0]||(R[0]=f=>u.value=!0),onBlur:R[1]||(R[1]=f=>u.value=!1),onClick:R[2]||(R[2]=f=>u.value=!1)},[We(d.$slots,"default",{file:p},()=>[d.listType==="picture"||p.status!=="uploading"&&d.listType==="picture-card"?(g(),b("img",{key:0,class:E(v(l).be("list","item-thumbnail")),src:p.url,crossorigin:d.crossorigin,alt:""},null,10,IP)):j("v-if",!0),p.status==="uploading"||d.listType!=="picture-card"?(g(),b("div",{key:1,class:E(v(l).be("list","item-info"))},[m("a",{class:E(v(l).be("list","item-name")),onClick:Fe(f=>d.handlePreview(p),["prevent"])},[N(v(It),{class:E(v(s).m("document"))},{default:Q(()=>[N(v(Hf))]),_:1},8,["class"]),m("span",{class:E(v(l).be("list","item-file-name")),title:p.name},Me(p.name),11,WP)],10,YP),p.status==="uploading"?(g(),k(v(pd),{key:0,type:d.listType==="picture-card"?"circle":"line","stroke-width":d.listType==="picture-card"?6:2,percentage:Number(p.percentage),style:ee(d.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):j("v-if",!0)],2)):j("v-if",!0),m("label",{class:E(v(l).be("list","item-status-label"))},[d.listType==="text"?(g(),k(v(It),{key:0,class:E([v(s).m("upload-success"),v(s).m("circle-check")])},{default:Q(()=>[N(v(ac))]),_:1},8,["class"])):["picture-card","picture"].includes(d.listType)?(g(),k(v(It),{key:1,class:E([v(s).m("upload-success"),v(s).m("check")])},{default:Q(()=>[N(v(ic))]),_:1},8,["class"])):j("v-if",!0)],2),v(i)?j("v-if",!0):(g(),k(v(It),{key:2,class:E(v(s).m("close")),onClick:f=>c(p)},{default:Q(()=>[N(v(ds))]),_:2},1032,["class","onClick"])),j(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),j(" This is a bug which needs to be fixed "),j(" TODO: Fix the incorrect navigation interaction "),v(i)?j("v-if",!0):(g(),b("i",{key:3,class:E(v(s).m("close-tip"))},Me(v(o)("el.upload.deleteTip")),3)),d.listType==="picture-card"?(g(),b("span",{key:4,class:E(v(l).be("list","item-actions"))},[m("span",{class:E(v(l).be("list","item-preview")),onClick:f=>d.handlePreview(p)},[N(v(It),{class:E(v(s).m("zoom-in"))},{default:Q(()=>[N(v(Cf))]),_:1},8,["class"])],10,UP),v(i)?j("v-if",!0):(g(),b("span",{key:0,class:E(v(l).be("list","item-delete")),onClick:f=>c(p)},[N(v(It),{class:E(v(s).m("delete"))},{default:Q(()=>[N(v(Gf))]),_:1},8,["class"])],10,QP))],2)):j("v-if",!0)])],42,bP))),128)),We(d.$slots,"append")]),_:3},8,["class","name"]))}});var Br=tt(ZP,[["__file","upload-list.vue"]]);const AP=et({disabled:{type:Boolean,default:!1}}),KP={file:e=>on(e)},_P=["onDrop","onDragover"],Md="ElUploadDrag",HP=q({name:Md}),CP=q({...HP,props:AP,emits:KP,setup(e,{emit:t}){Ct(hd)||Wl(Md,"usage: <el-upload><el-upload-dragger /></el-upload>");const o=qe("upload"),l=_(!1),s=Yl(),a=u=>{if(s.value)return;l.value=!1,u.stopPropagation();const r=Array.from(u.dataTransfer.files);t("file",r)},i=()=>{s.value||(l.value=!0)};return(u,r)=>(g(),b("div",{class:E([v(o).b("dragger"),v(o).is("dragover",l.value)]),onDrop:Fe(a,["prevent"]),onDragover:Fe(i,["prevent"]),onDragleave:r[0]||(r[0]=Fe(c=>l.value=!1,["prevent"]))},[We(u.$slots,"default")],42,_P))}});var GP=tt(CP,[["__file","upload-dragger.vue"]]);const EP=et({...md,beforeUpload:{type:Ze(Function),default:Rt},onRemove:{type:Ze(Function),default:Rt},onStart:{type:Ze(Function),default:Rt},onSuccess:{type:Ze(Function),default:Rt},onProgress:{type:Ze(Function),default:Rt},onError:{type:Ze(Function),default:Rt},onExceed:{type:Ze(Function),default:Rt}}),wP=["onKeydown"],kP=["name","multiple","accept"],JP=q({name:"ElUploadContent",inheritAttrs:!1}),xP=q({...JP,props:EP,setup(e,{expose:t}){const n=e,o=qe("upload"),l=Yl(),s=eo({}),a=eo(),i=h=>{if(h.length===0)return;const{autoUpload:P,limit:O,fileList:L,multiple:S,onStart:X,onExceed:M}=n;if(O&&L.length+h.length>O){M(h,L);return}S||(h=h.slice(0,1));for(const y of h){const Y=y;Y.uid=Wa(),X(Y),P&&u(Y)}},u=async h=>{if(a.value.value="",!n.beforeUpload)return c(h);let P,O={};try{const S=n.data,X=n.beforeUpload(h);O=xi(n.data)?Vr(n.data):n.data,P=await X,xi(n.data)&&jo(S,O)&&(O=Vr(n.data))}catch{P=!1}if(P===!1){n.onRemove(h);return}let L=h;P instanceof Blob&&(P instanceof File?L=P:L=new File([P],h.name,{type:h.type})),c(Object.assign(L,{uid:h.uid}),O)},r=async(h,P)=>kt(h)?h(P):h,c=async(h,P)=>{const{headers:O,data:L,method:S,withCredentials:X,name:M,action:y,onProgress:Y,onSuccess:T,onError:V,httpRequest:I}=n;try{P=await r(P??L,h)}catch{n.onRemove(h);return}const{uid:W}=h,F={headers:O||{},withCredentials:X,file:h,data:P,method:S,filename:M,action:y,onProgress:Z=>{Y(Z,h)},onSuccess:Z=>{T(Z,h),delete s.value[W]},onError:Z=>{V(Z,h),delete s.value[W]}},C=I(F);s.value[W]=C,C instanceof Promise&&C.then(F.onSuccess,F.onError)},d=h=>{const P=h.target.files;P&&i(Array.from(P))},R=()=>{l.value||(a.value.value="",a.value.click())},p=()=>{R()};return t({abort:h=>{wf(s.value).filter(h?([O])=>String(h.uid)===O:()=>!0).forEach(([O,L])=>{L instanceof XMLHttpRequest&&L.abort(),delete s.value[O]})},upload:u}),(h,P)=>(g(),b("div",{class:E([v(o).b(),v(o).m(h.listType),v(o).is("drag",h.drag)]),tabindex:"0",onClick:R,onKeydown:Yt(Fe(p,["self"]),["enter","space"])},[h.drag?(g(),k(GP,{key:0,disabled:v(l),onFile:i},{default:Q(()=>[We(h.$slots,"default")]),_:3},8,["disabled"])):We(h.$slots,"default",{key:1}),m("input",{ref_key:"inputRef",ref:a,class:E(v(o).e("input")),name:h.name,multiple:h.multiple,accept:h.accept,type:"file",onChange:d,onClick:P[0]||(P[0]=Fe(()=>{},["stop"]))},null,42,kP)],42,wP))}});var zr=tt(xP,[["__file","upload-content.vue"]]);const jr="ElUpload",qr=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},$P=(e,t)=>{const n=kf(e,"fileList",void 0,{passive:!0}),o=R=>n.value.find(p=>p.uid===R.uid);function l(R){var p;(p=t.value)==null||p.abort(R)}function s(R=["ready","uploading","success","fail"]){n.value=n.value.filter(p=>!R.includes(p.status))}const a=(R,p)=>{const f=o(p);f&&(console.error(R),f.status="fail",n.value.splice(n.value.indexOf(f),1),e.onError(R,f,n.value),e.onChange(f,n.value))},i=(R,p)=>{const f=o(p);f&&(e.onProgress(R,f,n.value),f.status="uploading",f.percentage=Math.round(R.percent))},u=(R,p)=>{const f=o(p);f&&(f.status="success",f.response=R,e.onSuccess(R,f,n.value),e.onChange(f,n.value))},r=R=>{Wo(R.uid)&&(R.uid=Wa());const p={name:R.name,percentage:0,status:"ready",size:R.size,raw:R,uid:R.uid};if(e.listType==="picture-card"||e.listType==="picture")try{p.url=URL.createObjectURL(R)}catch(f){f.message,e.onError(f,p,n.value)}n.value=[...n.value,p],e.onChange(p,n.value)},c=async R=>{const p=R instanceof File?o(R):R;p||Wl(jr,"file to be removed not found");const f=h=>{l(h);const P=n.value;P.splice(P.indexOf(h),1),e.onRemove(h,P),qr(h)};e.beforeRemove?await e.beforeRemove(p,n.value)!==!1&&f(p):f(p)};function d(){n.value.filter(({status:R})=>R==="ready").forEach(({raw:R})=>{var p;return R&&((p=t.value)==null?void 0:p.upload(R))})}return Pe(()=>e.listType,R=>{R!=="picture-card"&&R!=="picture"||(n.value=n.value.map(p=>{const{raw:f,url:h}=p;if(!h&&f)try{p.url=URL.createObjectURL(f)}catch(P){e.onError(P,p,n.value)}return p}))}),Pe(n,R=>{for(const p of R)p.uid||(p.uid=Wa()),p.status||(p.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:l,clearFiles:s,handleError:a,handleProgress:i,handleStart:r,handleSuccess:u,handleRemove:c,submit:d,revokeFileObjectURL:qr}},DP=q({name:"ElUpload"}),BP=q({...DP,props:VP,setup(e,{expose:t}){const n=e,o=Yl(),l=eo(),{abort:s,submit:a,clearFiles:i,uploadFiles:u,handleStart:r,handleError:c,handleRemove:d,handleSuccess:R,handleProgress:p,revokeFileObjectURL:f}=$P(n,l),h=H(()=>n.listType==="picture-card"),P=H(()=>({...n,fileList:u.value,onStart:r,onProgress:p,onSuccess:R,onError:c,onRemove:d}));return Gt(()=>{u.value.forEach(f)}),an(hd,{accept:Zn(n,"accept")}),t({abort:s,submit:a,clearFiles:i,handleStart:r,handleRemove:d}),(O,L)=>(g(),b("div",null,[v(h)&&O.showFileList?(g(),k(Br,{key:0,disabled:v(o),"list-type":O.listType,files:v(u),crossorigin:O.crossorigin,"handle-preview":O.onPreview,onRemove:v(d)},$i({append:Q(()=>[N(zr,to({ref_key:"uploadRef",ref:l},v(P)),{default:Q(()=>[O.$slots.trigger?We(O.$slots,"trigger",{key:0}):j("v-if",!0),!O.$slots.trigger&&O.$slots.default?We(O.$slots,"default",{key:1}):j("v-if",!0)]),_:3},16)]),_:2},[O.$slots.file?{name:"default",fn:Q(({file:S})=>[We(O.$slots,"file",{file:S})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):j("v-if",!0),!v(h)||v(h)&&!O.showFileList?(g(),k(zr,to({key:1,ref_key:"uploadRef",ref:l},v(P)),{default:Q(()=>[O.$slots.trigger?We(O.$slots,"trigger",{key:0}):j("v-if",!0),!O.$slots.trigger&&O.$slots.default?We(O.$slots,"default",{key:1}):j("v-if",!0)]),_:3},16)):j("v-if",!0),O.$slots.trigger?We(O.$slots,"default",{key:2}):j("v-if",!0),We(O.$slots,"tip"),!v(h)&&O.showFileList?(g(),k(Br,{key:3,disabled:v(o),"list-type":O.listType,files:v(u),crossorigin:O.crossorigin,"handle-preview":O.onPreview,onRemove:v(d)},$i({_:2},[O.$slots.file?{name:"default",fn:Q(({file:S})=>[We(O.$slots,"file",{file:S})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):j("v-if",!0)]))}});var zP=tt(BP,[["__file","upload.vue"]]);const jP=_n(zP);function qP(e){let t;const n=_(!1),o=fo({...e,originalPosition:"",originalOverflow:"",visible:!1});function l(R){o.text=R}function s(){const R=o.parent,p=d.ns;if(!R.vLoadingAddClassList){let f=R.getAttribute("loading-number");f=Number.parseInt(f)-1,f?R.setAttribute("loading-number",f.toString()):(Ol(R,p.bm("parent","relative")),R.removeAttribute("loading-number")),Ol(R,p.bm("parent","hidden"))}a(),c.unmount()}function a(){var R,p;(p=(R=d.$el)==null?void 0:R.parentNode)==null||p.removeChild(d.$el)}function i(){var R;e.beforeClose&&!e.beforeClose()||(n.value=!0,clearTimeout(t),t=window.setTimeout(u,400),o.visible=!1,(R=e.closed)==null||R.call(e))}function u(){if(!n.value)return;const R=o.parent;n.value=!1,R.vLoadingAddClassList=void 0,s()}const r=q({name:"ElLoading",setup(R,{expose:p}){const{ns:f,zIndex:h}=rc("loading");return p({ns:f,zIndex:h}),()=>{const P=o.spinner||o.svg,O=jt("svg",{class:"circular",viewBox:o.svgViewBox?o.svgViewBox:"0 0 50 50",...P?{innerHTML:P}:{}},[jt("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),L=o.text?jt("p",{class:f.b("text")},[o.text]):void 0;return jt(io,{name:f.b("fade"),onAfterLeave:u},{default:Q(()=>[de(N("div",{style:{backgroundColor:o.background||""},class:[f.b("mask"),o.customClass,o.fullscreen?"is-fullscreen":""]},[jt("div",{class:f.b("spinner")},[O,L])]),[[Nt,o.visible]])])})}}}),c=Jf(r),d=c.mount(document.createElement("div"));return{...ys(o),setText:l,removeElLoadingChild:a,close:i,handleAfterLeave:u,vm:d,get $el(){return d.$el}}}let zl;const Ua=function(e={}){if(!At)return;const t=eN(e);if(t.fullscreen&&zl)return zl;const n=qP({...t,closed:()=>{var l;(l=t.closed)==null||l.call(t),t.fullscreen&&(zl=void 0)}});tN(t,t.parent,n),eu(t,t.parent,n),t.parent.vLoadingAddClassList=()=>eu(t,t.parent,n);let o=t.parent.getAttribute("loading-number");return o?o=`${Number.parseInt(o)+1}`:o="1",t.parent.setAttribute("loading-number",o),t.parent.appendChild(n.$el),we(()=>n.visible.value=t.visible),t.fullscreen&&(zl=n),n},eN=e=>{var t,n,o,l;let s;return hn(e.target)?s=(t=document.querySelector(e.target))!=null?t:document.body:s=e.target||document.body,{parent:s===document.body||e.body?document.body:s,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:s===document.body&&((n=e.fullscreen)!=null?n:!0),lock:(o=e.lock)!=null?o:!1,customClass:e.customClass||"",visible:(l=e.visible)!=null?l:!0,target:s}},tN=async(e,t,n)=>{const{nextZIndex:o}=n.vm.zIndex||n.vm._.exposed.zIndex,l={};if(e.fullscreen)n.originalPosition.value=Co(document.body,"position"),n.originalOverflow.value=Co(document.body,"overflow"),l.zIndex=o();else if(e.parent===document.body){n.originalPosition.value=Co(document.body,"position"),await we();for(const s of["top","left"]){const a=s==="top"?"scrollTop":"scrollLeft";l[s]=`${e.target.getBoundingClientRect()[s]+document.body[a]+document.documentElement[a]-Number.parseInt(Co(document.body,`margin-${s}`),10)}px`}for(const s of["height","width"])l[s]=`${e.target.getBoundingClientRect()[s]}px`}else n.originalPosition.value=Co(t,"position");for(const[s,a]of Object.entries(l))n.$el.style[s]=a},eu=(e,t,n)=>{const o=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?Ol(t,o.bm("parent","relative")):Sa(t,o.bm("parent","relative")),e.fullscreen&&e.lock?Sa(t,o.bm("parent","hidden")):Ol(t,o.bm("parent","hidden"))},os=Symbol("ElLoading"),tu=(e,t)=>{var n,o,l,s;const a=t.instance,i=R=>ln(t.value)?t.value[R]:void 0,u=R=>{const p=hn(R)&&(a==null?void 0:a[R])||R;return p&&_(p)},r=R=>u(i(R)||e.getAttribute(`element-loading-${xf(R)}`)),c=(n=i("fullscreen"))!=null?n:t.modifiers.fullscreen,d={text:r("text"),svg:r("svg"),svgViewBox:r("svgViewBox"),spinner:r("spinner"),background:r("background"),customClass:r("customClass"),fullscreen:c,target:(o=i("target"))!=null?o:c?void 0:e,body:(l=i("body"))!=null?l:t.modifiers.body,lock:(s=i("lock"))!=null?s:t.modifiers.lock};e[os]={options:d,instance:Ua(d)}},nN=(e,t)=>{for(const n of Object.keys(t))us(t[n])&&(t[n].value=e[n])},nu={mounted(e,t){t.value&&tu(e,t)},updated(e,t){const n=e[os];t.oldValue!==t.value&&(t.value&&!t.oldValue?tu(e,t):t.value&&t.oldValue?ln(t.value)&&nN(t.value,n.options):n==null||n.instance.close())},unmounted(e){var t;(t=e[os])==null||t.instance.close(),e[os]=null}},oN={install(e){e.directive("loading",nu),e.config.globalProperties.$loading=Ua},directive:nu,service:Ua},lN=q({name:"ElMessageBox",directives:{TrapFocus:xS},components:{ElButton:ih,ElFocusTrap:id,ElInput:di,ElOverlay:oO,ElIcon:It,...$f},inheritAttrs:!1,props:{buttonSize:{type:String,validator:qM},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:n,zIndex:o,ns:l,size:s}=rc("message-box",H(()=>e.buttonSize)),{t:a}=n,{nextZIndex:i}=o,u=_(!1),r=fo({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:i()}),c=H(()=>{const U=r.type;return{[l.bm("icon",U)]:U&&Di[U]}}),d=Pl(),R=Pl(),p=H(()=>r.icon||Di[r.type]||""),f=H(()=>!!r.message),h=_(),P=_(),O=_(),L=_(),S=_(),X=H(()=>r.confirmButtonClass);Pe(()=>r.inputValue,async U=>{await we(),e.boxType==="prompt"&&U!==null&&F()},{immediate:!0}),Pe(()=>u.value,U=>{var G,D;U&&(e.boxType!=="prompt"&&(r.autofocus?O.value=(D=(G=S.value)==null?void 0:G.$el)!=null?D:h.value:O.value=h.value),r.zIndex=i()),e.boxType==="prompt"&&(U?we().then(()=>{var le;L.value&&L.value.$el&&(r.autofocus?O.value=(le=C())!=null?le:h.value:O.value=h.value)}):(r.editorErrorMessage="",r.validateError=!1))});const M=H(()=>e.draggable),y=H(()=>e.overflow);og(h,P,M,y),Ge(async()=>{await we(),e.closeOnHashChange&&window.addEventListener("hashchange",Y)}),Gt(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",Y)});function Y(){u.value&&(u.value=!1,we(()=>{r.action&&t("action",r.action)}))}const T=()=>{e.closeOnClickModal&&W(r.distinguishCancelAndClose?"close":"cancel")},V=zc(T),I=U=>{if(r.inputType!=="textarea")return U.preventDefault(),W("confirm")},W=U=>{var G;e.boxType==="prompt"&&U==="confirm"&&!F()||(r.action=U,r.beforeClose?(G=r.beforeClose)==null||G.call(r,U,r,Y):Y())},F=()=>{if(e.boxType==="prompt"){const U=r.inputPattern;if(U&&!U.test(r.inputValue||""))return r.editorErrorMessage=r.inputErrorMessage||a("el.messagebox.error"),r.validateError=!0,!1;const G=r.inputValidator;if(typeof G=="function"){const D=G(r.inputValue);if(D===!1)return r.editorErrorMessage=r.inputErrorMessage||a("el.messagebox.error"),r.validateError=!0,!1;if(typeof D=="string")return r.editorErrorMessage=D,r.validateError=!0,!1}}return r.editorErrorMessage="",r.validateError=!1,!0},C=()=>{const U=L.value.$refs;return U.input||U.textarea},Z=()=>{W("close")},K=()=>{e.closeOnPressEscape&&Z()};return e.lockScroll&&lg(u),{...ys(r),ns:l,overlayEvent:V,visible:u,hasMessage:f,typeClass:c,contentId:d,inputId:R,btnSize:s,iconComponent:p,confirmButtonClasses:X,rootRef:h,focusStartRef:O,headerRef:P,inputRef:L,confirmRef:S,doClose:Y,handleClose:Z,onCloseRequested:K,handleWrapperClick:T,handleInputEnter:I,handleAction:W,t:a}}}),sN=["aria-label","aria-describedby"],aN=["aria-label"],iN=["id"];function rN(e,t,n,o,l,s){const a=te("el-icon"),i=te("close"),u=te("el-input"),r=te("el-button"),c=te("el-focus-trap"),d=te("el-overlay");return g(),k(io,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=R=>e.$emit("vanish")),persisted:""},{default:Q(()=>[de(N(d,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:Q(()=>[m("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:E(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...R)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...R)),onMousedown:t[9]||(t[9]=(...R)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...R)),onMouseup:t[10]||(t[10]=(...R)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...R))},[N(c,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:Q(()=>[m("div",{ref:"rootRef",class:E([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:ee(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=Fe(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(g(),b("div",{key:0,ref:"headerRef",class:E([e.ns.e("header"),{"show-close":e.showClose}])},[m("div",{class:E(e.ns.e("title"))},[e.iconComponent&&e.center?(g(),k(a,{key:0,class:E([e.ns.e("status"),e.typeClass])},{default:Q(()=>[(g(),k(yt(e.iconComponent)))]),_:1},8,["class"])):j("v-if",!0),m("span",null,Me(e.title),1)],2),e.showClose?(g(),b("button",{key:0,type:"button",class:E(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=R=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=Yt(Fe(R=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[N(a,{class:E(e.ns.e("close"))},{default:Q(()=>[N(i)]),_:1},8,["class"])],42,aN)):j("v-if",!0)],2)):j("v-if",!0),m("div",{id:e.contentId,class:E(e.ns.e("content"))},[m("div",{class:E(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(g(),k(a,{key:0,class:E([e.ns.e("status"),e.typeClass])},{default:Q(()=>[(g(),k(yt(e.iconComponent)))]),_:1},8,["class"])):j("v-if",!0),e.hasMessage?(g(),b("div",{key:1,class:E(e.ns.e("message"))},[We(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(g(),k(yt(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(g(),k(yt(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:Q(()=>[Oe(Me(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):j("v-if",!0)],2),de(m("div",{class:E(e.ns.e("input"))},[N(u,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=R=>e.inputValue=R),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:E({invalid:e.validateError}),onKeydown:Yt(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),m("div",{class:E(e.ns.e("errormsg")),style:ee({visibility:e.editorErrorMessage?"visible":"hidden"})},Me(e.editorErrorMessage),7)],2),[[Nt,e.showInput]])],10,iN),m("div",{class:E(e.ns.e("btns"))},[e.showCancelButton?(g(),k(r,{key:0,loading:e.cancelButtonLoading,class:E([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=R=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=Yt(Fe(R=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:Q(()=>[Oe(Me(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):j("v-if",!0),de(N(r,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,class:E([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=R=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=Yt(Fe(R=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:Q(()=>[Oe(Me(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[Nt,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,sN)]),_:3},8,["z-index","overlay-class","mask"]),[[Nt,e.visible]])]),_:3})}var uN=tt(lN,[["render",rN],["__file","index.vue"]]);const Nl=new Map,cN=e=>{let t=document.body;return e.appendTo&&(hn(e.appendTo)&&(t=document.querySelector(e.appendTo)),yo(e.appendTo)&&(t=e.appendTo),yo(t)||(t=document.body)),t},dN=(e,t,n=null)=>{const o=N(uN,e,kt(e.message)||uc(e.message)?{default:kt(e.message)?e.message:()=>e.message}:null);return o.appContext=n,cc(o,t),cN(e).appendChild(t.firstElementChild),o.component},RN=()=>document.createElement("div"),fN=(e,t)=>{const n=RN();e.onVanish=()=>{cc(null,n),Nl.delete(l)},e.onAction=s=>{const a=Nl.get(l);let i;e.showInput?i={value:l.inputValue,action:s}:i=s,e.callback?e.callback(i,o.proxy):s==="cancel"||s==="close"?e.distinguishCancelAndClose&&s!=="cancel"?a.reject("close"):a.reject("cancel"):a.resolve(i)};const o=dN(e,n,t),l=o.proxy;for(const s in e)Bi(e,s)&&!Bi(l.$props,s)&&(l[s]=e[s]);return l.visible=!0,l};function al(e,t=null){if(!At)return Promise.reject();let n;return hn(e)||uc(e)?e={message:e}:n=e.callback,new Promise((o,l)=>{const s=fN(e,t??al._context);Nl.set(s,{options:e,callback:n,resolve:o,reject:l})})}const pN=["alert","confirm","prompt"],hN={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};pN.forEach(e=>{al[e]=vN(e)});function vN(e){return(t,n,o,l)=>{let s="";return ln(n)?(o=n,s=""):oc(n)?s="":s=n,al(Object.assign({title:s,message:t,type:"",...hN[e]},o,{boxType:e}),l)}}al.close=()=>{Nl.forEach((e,t)=>{t.doClose()}),Nl.clear()};al._context=null;const xn=al;xn.install=e=>{xn._context=e._context,e.config.globalProperties.$msgbox=xn,e.config.globalProperties.$messageBox=xn,e.config.globalProperties.$alert=xn.alert,e.config.globalProperties.$confirm=xn.confirm,e.config.globalProperties.$prompt=xn.prompt};const mN=xn;var Vt=(e=>(e.UP="up",e.DOWN="down",e.TOP="top",e.BOTTOM="bottom",e))(Vt||{}),De=(e=>(e.TOP="top",e.BOTTOM="bottom",e.LEFT="left",e.RIGHT="right",e.VERTICAL="vertical",e.HORIZONTAL="horizontal",e.CENTER="center",e))(De||{}),vl=(e=>(e.T="top",e.B="bottom",e.L="left",e.R="right",e))(vl||{}),be=(e=>(e.LEFT_TOP="left-top",e.TOP="top",e.RIGHT_TOP="right-top",e.LEFT="left",e.RIGHT="right",e.LEFT_BOTTOM="left-bottom",e.BOTTOM="bottom",e.RIGHT_BOTTOM="right-bottom",e))(be||{}),qt=(e=>(e.START="start",e.END="end",e.C="ctrl",e.C1="ctrl1",e.C2="ctrl2",e))(qt||{});const gd="pptist",Sd=e=>Ta.AES.encrypt(e,gd).toString(),MN=e=>Ta.AES.decrypt(e,gd).toString(Ta.enc.Utf8),Od=e=>new Promise((t,n)=>{const o=document.createElement("button"),l=new sh(o,{text:()=>e,action:()=>"copy",container:document.body});l.on("success",s=>{l.destroy(),t(s)}),l.on("error",s=>{l.destroy(),n(s)}),document.body.appendChild(o),o.click(),document.body.removeChild(o)}),Pd=()=>new Promise((e,t)=>{var n;(n=navigator.clipboard)!=null&&n.readText?navigator.clipboard.readText().then(o=>(o||t("剪贴板为空或者不包含文本"),e(o))):t("浏览器不支持或禁止访问剪贴板,请使用快捷键 Ctrl + V")}),Si=e=>{let t;try{t=JSON.parse(MN(e))}catch{t=e}return t},Nd=e=>{const t=e.split(`\r
- `);t[t.length-1]===""&&t.pop();let n=-1;const o=[];for(const l in t){if(o[l]=t[l].split(" "),o[l].length===1)return null;if(n===-1)n=o[l].length;else if(n!==o[l].length)return null}return o},gN=e=>new Promise(t=>{const n=document.createElement("img");n.src=e,n.style.opacity="0",document.body.appendChild(n),n.onload=()=>{const o=n.clientWidth,l=n.clientHeight;n.onload=null,n.onerror=null,document.body.removeChild(n),t({width:o,height:l})},n.onerror=()=>{n.onload=null,n.onerror=null}}),Uo=e=>new Promise(t=>{const n=new FileReader;n.addEventListener("load",()=>{t(n.result)}),n.readAsDataURL(e)}),SN=e=>{if(!/<svg[\s\S]*?>[\s\S]*?<\/svg>/i.test(e))return!1;try{return new DOMParser().parseFromString(e,"image/svg+xml").documentElement.nodeName==="svg"}catch{return!1}},ON=e=>{const t=new Blob([e],{type:"image/svg+xml"});return new File([t],`${Date.now()}.svg`,{type:"image/svg+xml"})},Qa={bar:"柱状图",column:"条形图",line:"折线图",area:"面积图",scatter:"散点图",pie:"饼图",ring:"环形图",radar:"雷达图"},PN={bar:{labels:["类别1","类别2","类别3","类别4","类别5"],legends:["系列1","系列2"],series:[[12,19,5,2,18],[7,11,13,21,9]]},column:{labels:["类别1","类别2","类别3","类别4","类别5"],legends:["系列1","系列2"],series:[[12,19,5,2,18],[7,11,13,21,9]]},line:{labels:["类别1","类别2","类别3","类别4","类别5"],legends:["系列1","系列2"],series:[[12,19,5,2,18],[7,11,13,21,9]]},pie:{labels:["类别1","类别2","类别3","类别4","类别5"],legends:["值"],series:[[12,19,5,2,18]]},ring:{labels:["类别1","类别2","类别3","类别4","类别5"],legends:["值"],series:[[12,19,5,2,18]]},area:{labels:["类别1","类别2","类别3","类别4","类别5"],legends:["系列1","系列2"],series:[[12,19,5,2,18],[7,11,13,21,9]]},radar:{labels:["类别1","类别2","类别3","类别4","类别5"],legends:["系列1","系列2"],series:[[12,19,5,2,18],[7,11,13,21,9]]},scatter:{labels:["坐标1","坐标2","坐标3","坐标4","坐标5"],legends:["X","Y"],series:[[12,19,5,2,18],[7,11,13,21,9]]}},NN=[["#d87c7c","#919e8b","#d7ab82","#6e7074","#61a0a8","#efa18d"],["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78"],["#516b91","#59c4e6","#edafda","#93b7e3","#a5e7f0","#cbb0e3"],["#893448","#d95850","#eb8146","#ffb248","#f2d643","#ebdba4"],["#4ea397","#22c3aa","#7bd9a5","#d0648a","#f58db2","#f2b3c9"],["#3fb1e3","#6be6c1","#626c91","#a0a7e6","#c4ebad","#96dee8"],["#fc97af","#87f7cf","#f7f494","#72ccff","#f7c5a0","#d4a4eb"],["#c1232b","#27727b","#fcce10","#e87c25","#b5c334","#fe8463"],["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3"],["#e01f54","#001852","#f5e8c8","#b8d2c7","#c6b38e","#a4d8c2"],["#c12e34","#e6b600","#0098d9","#2b821d","#005eaa","#339ca8"],["#8a7ca8","#e098c7","#8fd3e8","#71669e","#cc70af","#7cb4cc"]],He=()=>{const e=ei(),t=Il(),n=vt.debounce(function(){t.isSave=!1,e.addSnapshot()},300,{trailing:!0}),o=vt.throttle(function(){t.isSave=!1,e.reDo()},100,{leading:!0,trailing:!1}),l=vt.throttle(function(){t.isSave=!1,e.unDo()},100,{leading:!0,trailing:!1});return{addHistorySnapshot:n,redo:o,undo:l}},il=()=>{const e=Xe(),t=Ue(),{creatingElement:n}=oe(e),{theme:o,viewportRatio:l,viewportSize:s}=oe(t),{addHistorySnapshot:a}=He(),i=(L,S)=>{t.addElement(L),e.setActiveElementIdList([L.id]),n.value&&e.setCreatingElement(null),setTimeout(()=>{e.setEditorareaFocus(!0)},0),S&&S(),a()};return{createImageElement:L=>{gN(L).then(({width:S,height:X})=>{const M=X/S;M<l.value&&S>s.value?(S=s.value,X=S*M):X>s.value*l.value&&(X=s.value*l.value,S=X/M),i({type:"image",id:st(10),src:L,width:S,height:X,left:(s.value-S)/2,top:(s.value*l.value-X)/2,fixedRatio:!0,rotate:0})})},createChartElement:L=>{i({type:"chart",id:st(10),chartType:L,left:300,top:81.25,width:800,height:800,rotate:0,themeColors:[o.value.themeColor],textColor:o.value.fontColor,data:PN[L]})},createTableElement:(L,S)=>{const X={fontname:o.value.fontName,color:o.value.fontColor},M=[];for(let W=0;W<L;W++){const F=[];for(let C=0;C<S;C++)F.push({id:st(10),colspan:1,rowspan:1,text:"",style:X});M.push(F)}const y=200,Y=72,T=new Array(S).fill(1/S),V=S*y,I=L*Y;i({type:"table",id:st(10),width:V,height:I,colWidths:T,rotate:0,data:M,left:(s.value-V)/2,top:(s.value*l.value-I)/2,outline:{width:2,style:"solid",color:"#eeece1"},theme:{color:o.value.themeColor,rowHeader:!0,rowFooter:!1,colHeader:!1,colFooter:!1},cellMinHeight:72})},createTextElement:(L,S)=>{const{left:X,top:M,width:y,height:Y}=L,T=(S==null?void 0:S.content)||"",V=(S==null?void 0:S.vertical)||!1,I=st(10);i({type:"text",id:I,left:X,top:M,width:y,height:Y,content:T,rotate:0,defaultFontName:o.value.fontName,defaultColor:o.value.fontColor,vertical:V},()=>{setTimeout(()=>{const W=document.querySelector(`#editable-element-${I} .ProseMirror`);W&&W.focus()},0)})},createShapeElement:(L,S,X={})=>{const{left:M,top:y,width:Y,height:T}=L,V={type:"shape",id:st(10),left:M,top:y,width:Y,height:T,viewBox:S.viewBox,path:S.path,fill:o.value.themeColor,fixedRatio:!1,rotate:0,...X};if(S.withborder&&(V.outline=o.value.outline),S.special&&(V.special=!0),S.pathFormula){V.pathFormula=S.pathFormula,V.viewBox=[Y,T];const I=sl[S.pathFormula];"editable"in I&&I.editable?(V.path=I.formula(Y,T,I.defaultValue),V.keypoints=I.defaultValue):V.path=I.formula(Y,T)}i(V)},createLineElement:(L,S)=>{const{left:X,top:M,start:y,end:Y}=L,T={type:"line",id:st(10),left:X,top:M,start:y,end:Y,points:S.points,color:o.value.themeColor,style:S.style,width:4};S.isBroken&&(T.broken=[(y[0]+Y[0])/2,(y[1]+Y[1])/2]),S.isBroken2&&(T.broken2=[(y[0]+Y[0])/2,(y[1]+Y[1])/2]),S.isCurve&&(T.curve=[(y[0]+Y[0])/2,(y[1]+Y[1])/2]),S.isCubic&&(T.cubic=[[(y[0]+Y[0])/2,(y[1]+Y[1])/2],[(y[0]+Y[0])/2,(y[1]+Y[1])/2]]),i(T)},createLatexElement:L=>{i({type:"latex",id:st(10),width:L.w,height:L.h,rotate:0,left:(s.value-L.w)/2,top:(s.value*l.value-L.h)/2,path:L.path,latex:L.latex,color:o.value.fontColor,strokeWidth:4,viewBox:[L.w,L.h],fixedRatio:!0})},createVideoElement:L=>{i({type:"elf",subtype:"elf-video",id:st(10),width:1e3,height:600,rotate:0,left:(s.value-1e3)/2,top:(s.value*l.value-600)/2,src:L,autoplay:!1})},createAudioElement:L=>{i({type:"elf",subtype:"elf-audio",id:st(10),width:100,height:100,rotate:0,left:(s.value-100)/2,top:(s.value*l.value-100)/2,loop:!1,autoplay:!1,fixedRatio:!0,color:o.value.themeColor,src:L})},createCloudCoachElement:(L,S)=>{i({type:"elf",subtype:"elf-sing-play",id:st(10),width:s.value,height:s.value*l.value,rotate:0,left:0,top:0,sid:L,title:S})}}},Xd=()=>{const e=Xe(),t=Ue(),{currentSlide:n}=oe(t),{addHistorySnapshot:o}=He();return{addElementsFromData:a=>{const{groupIdMap:i,elIdMap:u}=Na(a),r=a[0];let c=0,d;do d=n.value.elements.find(R=>{if(R.type!==r.type)return!1;const{minX:p,maxX:f,minY:h,maxY:P}=Fn(R),{minX:O,maxX:L,minY:S,maxY:X}=Fn({...r,left:r.left+c,top:r.top+c});return p===O&&f===L&&h===S&&P===X}),d&&(c+=10);while(d);for(const R of a)R.id=u[R.id],R.left=R.left+c,R.top=R.top+c,R.groupId&&(R.groupId=i[R.groupId]);t.addElement(a),e.setActiveElementIdList(Object.values(u)),o()},addSlidesFromData:a=>{const i=Tp(a),u=a.map(r=>{const{groupIdMap:c,elIdMap:d}=Na(r.elements);for(const R of r.elements)R.id=d[R.id],R.groupId&&(R.groupId=c[R.groupId]),R.link&&R.link.type==="slide"&&(i[R.link.target]?R.link.target=i[R.link.target]:delete R.link);if(r.animations)for(const R of r.animations)R.id=st(10),R.elId=d[R.elId];return{...r,id:i[r.id]}});t.addSlide(u),o()}}},XN=e=>/^https:\/\/pptist.cn(\/[\w-./?%&=]*)?\.(jpg|jpeg|png|svg|webp)(\?.*)?$/i.test(e),Oi=()=>{const{shiftKeyState:e}=oe(Mn()),{createTextElement:t,createImageElement:n}=il(),{addElementsFromData:o,addSlidesFromData:l}=Xd(),s=i=>{t({left:0,top:0,width:600,height:50},{content:i})};return{pasteTextClipboardData:(i,u)=>{const r=(u==null?void 0:u.onlySlide)||!1,c=(u==null?void 0:u.onlyElements)||!1,d=Si(i);if(typeof d=="object"){const{type:R,data:p}=d;R==="elements"&&!r?o(p):R==="slides"&&!c&&l(p)}else if(!c&&!r)if(e.value){const R=Xa(d);s(R)}else if(XN(d))n(d);else if(Vp(d))s(`<a href="${d}" title="${d}" target="_blank">${d}</a>`);else if(SN(d)){const R=ON(d);Uo(R).then(p=>n(p))}else{const R=Xa(d);s(R)}}}},Ul=()=>{const e=Xe(),t=Ue(),{selectedSlidesIndex:n,activeElementIdList:o}=oe(e),{currentSlide:l,slides:s,theme:a,slideIndex:i}=oe(t),u=H(()=>[...n.value,i.value]),r=H(()=>s.value.filter((V,I)=>u.value.includes(I))),c=H(()=>r.value.map(V=>V.id)),{pasteTextClipboardData:d}=Oi(),{addSlidesFromData:R}=Xd(),{addHistorySnapshot:p}=He(),f=()=>{const V={id:st(10),elements:[],background:{type:"solid",color:a.value.backgroundColor}};t.updateSlideIndex(0),e.setActiveElementIdList([]),t.setSlides([V])},h=V=>{V===Ye.UP&&i.value>0?(o.value.length&&e.setActiveElementIdList([]),t.updateSlideIndex(i.value-1)):V===Ye.DOWN&&i.value<s.value.length-1&&(o.value.length&&e.setActiveElementIdList([]),t.updateSlideIndex(i.value+1))},P=()=>{const V=Sd(JSON.stringify({type:"slides",data:r.value}));Od(V).then(()=>{e.setThumbnailsFocus(!0)})},O=()=>{Pd().then(V=>{d(V,{onlySlide:!0})}).catch(V=>Wt.warning(V))},L=()=>{const V={id:st(10),elements:[],background:{type:"solid",color:a.value.backgroundColor}};e.setActiveElementIdList([]),t.addSlide(V),p()},S=V=>{const{groupIdMap:I,elIdMap:W}=Na(V.elements);for(const C of V.elements)C.id=W[C.id],C.groupId&&(C.groupId=I[C.groupId]);const F={...V,id:st(10)};e.setActiveElementIdList([]),t.addSlide(F),p()},X=()=>{const V=JSON.parse(JSON.stringify(l.value));R([V])},M=(V=c.value)=>{s.value.length===V.length?f():t.deleteSlide(V),e.updateSelectedSlidesIndex([]),p()};return{resetSlides:f,updateSlideIndex:h,copySlide:P,pasteSlide:O,createSlide:L,createSlideByTemplate:S,copyAndPasteSlide:X,deleteSlide:M,cutSlide:()=>{const V=[...c.value];P(),M(V)},selectAllSlide:()=>{const V=Array.from(Array(s.value.length),(I,W)=>W);e.setActiveElementIdList([]),e.updateSelectedSlidesIndex(V)},sortSlides:(V,I)=>{if(I===V)return;const W=JSON.parse(JSON.stringify(s.value)),F=W[I],C=F.sectionTag;if(C){const K=W[I+1];delete F.sectionTag,K&&!K.sectionTag&&(K.sectionTag=C)}if(V===0){const K=W[0].sectionTag;K&&(delete W[0].sectionTag,F.sectionTag=K)}const Z=W[I];W.splice(I,1),W.splice(V,0,Z),t.setSlides(W),t.updateSlideIndex(V)}}},Td=()=>{const e=Xe(),t=Ue(),{activeElementIdList:n}=oe(e),{currentSlide:o}=oe(t),{addHistorySnapshot:l}=He();return{lockElement:()=>{const i=JSON.parse(JSON.stringify(o.value.elements));for(const u of i)n.value.includes(u.id)&&(u.lock=!0);t.updateSlide({elements:i}),e.setActiveElementIdList([]),l()},unlockElement:i=>{const u=JSON.parse(JSON.stringify(o.value.elements));if(i.groupId){const r=[];for(const c of u)c.groupId===i.groupId&&(c.lock=!1,r.push(c.id));t.updateSlide({elements:u}),e.setActiveElementIdList(r)}else{for(const r of u)if(r.id===i.id){r.lock=!1;break}t.updateSlide({elements:u}),e.setActiveElementIdList([i.id])}l()}}},As=()=>{const e=Xe(),t=Ue(),{activeElementIdList:n,activeGroupElementId:o}=oe(e),{currentSlide:l}=oe(t),{addHistorySnapshot:s}=He();return{deleteElement:()=>{if(!n.value.length)return;let u=[];o.value?u=l.value.elements.filter(r=>r.id!==o.value):u=l.value.elements.filter(r=>!n.value.includes(r.id)),e.setActiveElementIdList([]),t.updateSlide({elements:u}),s()},deleteAllElements:()=>{l.value.elements.length&&(e.setActiveElementIdList([]),t.updateSlide({elements:[]}),s())}}},Pi=()=>{const e=Xe(),t=Ue(),{activeElementIdList:n,activeElementList:o,handleElementId:l}=oe(e),{currentSlide:s}=oe(t),{addHistorySnapshot:a}=He();return{canCombine:H(()=>{if(o.value.length<2)return!1;const c=o.value[0].groupId;return c?!o.value.every(R=>(R.groupId&&R.groupId)===c):!0}),combineElements:()=>{if(!o.value.length)return;let c=JSON.parse(JSON.stringify(s.value.elements));const d=st(10),R=[];for(const P of c)n.value.includes(P.id)&&(P.groupId=d,R.push(P));const p=c.findIndex(P=>P.id===R[R.length-1].id),f=R.map(P=>P.id);c=c.filter(P=>!f.includes(P.id));const h=p-R.length+1;c.splice(h,0,...R),t.updateSlide({elements:c}),a()},uncombineElements:()=>{if(!o.value.length||!o.value.some(p=>p.groupId))return;const d=JSON.parse(JSON.stringify(s.value.elements));for(const p of d)n.value.includes(p.id)&&p.groupId&&delete p.groupId;t.updateSlide({elements:d});const R=l.value?[l.value]:[];e.setActiveElementIdList(R),a()}}},Ni=()=>{const e=Xe(),{activeElementIdList:t,activeElementList:n}=oe(e),{pasteTextClipboardData:o}=Oi(),{deleteElement:l}=As(),s=()=>{if(!t.value.length)return;const r=Sd(JSON.stringify({type:"elements",data:n.value}));Od(r).then(()=>{e.setEditorareaFocus(!0)})},a=()=>{s(),l()},i=()=>{Pd().then(r=>{o(r)}).catch(r=>Wt.warning(r))};return{copyElement:s,cutElement:a,pasteElement:i,quickCopyElement:()=>{s(),i()}}},Ks=()=>{const e=Xe(),{currentSlide:t}=oe(Ue()),{hiddenElementIdList:n,handleElementId:o}=oe(e);return{selectAllElements:()=>{const i=t.value.elements.filter(u=>!u.lock&&!n.value.includes(u.id)).map(u=>u.id);e.setActiveElementIdList(i)},selectElement:a=>{o.value===a||n.value.includes(a)||t.value.elements.filter(u=>u.lock).some(u=>u.id===a)||e.setActiveElementIdList([a])}}},TN=()=>{const e=Ue(),{activeElementIdList:t,activeGroupElementId:n}=oe(Xe()),{currentSlide:o}=oe(e),{addHistorySnapshot:l}=He();return{moveElement:(a,i=1)=>{let u=[];const r=c=>{let{left:d,top:R}=c;switch(a){case Ye.LEFT:d=d-i;break;case Ye.RIGHT:d=d+i;break;case Ye.UP:R=R-i;break;case Ye.DOWN:R=R+i;break}return{...c,left:d,top:R}};n.value?u=o.value.elements.map(c=>n.value===c.id?r(c):c):u=o.value.elements.map(c=>t.value.includes(c.id)?r(c):c),e.updateSlide({elements:u}),l()}}},_s=()=>{const e=Ue(),{currentSlide:t}=oe(e),{addHistorySnapshot:n}=He(),o=(r,c)=>({minLevel:r.findIndex(d=>d.id===c[0].id),maxLevel:r.findIndex(d=>d.id===c[c.length-1].id)}),l=(r,c)=>{const d=JSON.parse(JSON.stringify(r));if(c.groupId){const R=d.filter(O=>O.groupId===c.groupId),{minLevel:p,maxLevel:f}=o(r,R);if(f===r.length-1)return;const h=d[f+1],P=d.splice(p,R.length);if(h.groupId){const O=d.filter(L=>L.groupId===h.groupId);d.splice(p+O.length,0,...P)}else d.splice(p+1,0,...P)}else{const R=r.findIndex(h=>h.id===c.id);if(R===r.length-1)return;const p=d[R+1],f=d.splice(R,1)[0];if(p.groupId){const h=d.filter(P=>P.groupId===p.groupId);d.splice(R+h.length,0,f)}else d.splice(R+1,0,f)}return d},s=(r,c)=>{const d=JSON.parse(JSON.stringify(r));if(c.groupId){const R=d.filter(P=>P.groupId===c.groupId),{minLevel:p}=o(r,R);if(p===0)return;const f=d[p-1],h=d.splice(p,R.length);if(f.groupId){const P=d.filter(O=>O.groupId===f.groupId);d.splice(p-P.length,0,...h)}else d.splice(p-1,0,...h)}else{const R=r.findIndex(h=>h.id===c.id);if(R===0)return;const p=d[R-1],f=d.splice(R,1)[0];if(p.groupId){const h=d.filter(P=>P.groupId===p.groupId);d.splice(R-h.length,0,f)}else d.splice(R-1,0,f)}return d},a=(r,c)=>{const d=JSON.parse(JSON.stringify(r));if(c.groupId){const R=d.filter(P=>P.groupId===c.groupId),{minLevel:p,maxLevel:f}=o(r,R);if(f===r.length-1)return null;const h=d.splice(p,R.length);d.push(...h)}else{const R=r.findIndex(p=>p.id===c.id);if(R===r.length-1)return null;d.splice(R,1),d.push(c)}return d},i=(r,c)=>{const d=JSON.parse(JSON.stringify(r));if(c.groupId){const R=d.filter(h=>h.groupId===c.groupId),{minLevel:p}=o(r,R);if(p===0)return;const f=d.splice(p,R.length);d.unshift(...f)}else{const R=r.findIndex(p=>p.id===c.id);if(R===0)return;d.splice(R,1),d.unshift(c)}return d};return{orderElement:(r,c)=>{let d;c===Vt.UP?d=l(t.value.elements,r):c===Vt.DOWN?d=s(t.value.elements,r):c===Vt.TOP?d=a(t.value.elements,r):c===Vt.BOTTOM&&(d=i(t.value.elements,r)),d&&(e.updateSlide({elements:d}),n())}}},Xi=()=>{const e=Xe(),{canvasPercentage:t,canvasScale:n,canvasDragged:o}=oe(e);return{canvasScalePercentage:H(()=>Math.round(n.value*100)+"%"),setCanvasScalePercentage:u=>{const r=Math.round(u/n.value*t.value)/100;e.setCanvasPercentage(r)},scaleCanvas:u=>{let r=t.value;const c=5,d=200,R=30;u==="+"&&r<=d&&(r+=c),u==="-"&&r>=R&&(r-=c),e.setCanvasPercentage(r)},resetCanvas:()=>{e.setCanvasPercentage(90),o&&e.setCanvasDragged(!1)}}},VN=()=>{const e=Xe(),t=Mn(),{activeElementIdList:n,disableHotkeys:o,handleElement:l,handleElementId:s,editorAreaFocus:a,thumbnailsFocus:i,showSearchPanel:u}=oe(e),{currentSlide:r}=oe(Ue()),{ctrlKeyState:c,shiftKeyState:d,spaceKeyState:R}=oe(t),{updateSlideIndex:p,copySlide:f,createSlide:h,deleteSlide:P,cutSlide:O,copyAndPasteSlide:L,selectAllSlide:S}=Ul(),{combineElements:X,uncombineElements:M}=Pi(),{deleteElement:y}=As(),{lockElement:Y}=Td(),{copyElement:T,cutElement:V,quickCopyElement:I}=Ni(),{selectAllElements:W}=Ks(),{moveElement:F}=TN(),{orderElement:C}=_s(),{redo:Z,undo:K}=He(),{enterScreening:U,enterScreeningFromStart:G}=Is(),{scaleCanvas:D,resetCanvas:le}=Xi(),Re=()=>{n.value.length?T():i.value&&f()},ae=()=>{n.value.length?V():i.value&&O()},Se=()=>{n.value.length?I():i.value&&L()},J=()=>{a.value&&W(),i.value&&S()},B=()=>{a.value&&Y()},Ie=()=>{a.value&&X()},ce=()=>{a.value&&M()},z=()=>{n.value.length?y():i.value&&P()},ne=ue=>{n.value.length?F(ue):(ue===Ye.UP||ue===Ye.DOWN)&&p(ue)},ge=ue=>{ue===Ye.PAGEUP?p(Ye.UP):ue===Ye.PAGEDOWN&&p(Ye.DOWN)},w=ue=>{l.value&&C(l.value,ue)},$=()=>{i.value&&h()},A=()=>{if(!r.value.elements.length)return;if(!s.value){const Qe=r.value.elements[0];e.setActiveElementIdList([Qe.id]);return}const ue=r.value.elements.findIndex(Qe=>Qe.id===s.value),Te=ue>=r.value.elements.length-1?0:ue+1,Ae=r.value.elements[Te].id;e.setActiveElementIdList([Ae])},x=ue=>{const{ctrlKey:Te,shiftKey:Ae,altKey:Qe,metaKey:Ne}=ue,he=Te||Ne,Le=ue.key.toUpperCase();if(he&&!c.value&&t.setCtrlKeyState(!0),Ae&&!d.value&&t.setShiftKeyState(!0),!o.value&&Le===Ye.SPACE&&t.setSpaceKeyState(!0),Ae&&Le===Ye.F5){ue.preventDefault(),U(),t.setShiftKeyState(!1);return}if(Le===Ye.F5){ue.preventDefault(),G();return}if(Te&&Le===Ye.F){ue.preventDefault(),e.setSearchPanelState(!u.value);return}if(!(!a.value&&!i.value)){if(he&&Le===Ye.C){if(o.value)return;ue.preventDefault(),Re()}if(he&&Le===Ye.X){if(o.value)return;ue.preventDefault(),ae()}if(he&&Le===Ye.D){if(o.value)return;ue.preventDefault(),Se()}if(he&&Le===Ye.Z){if(o.value)return;ue.preventDefault(),K()}if(he&&Le===Ye.Y){if(o.value)return;ue.preventDefault(),Z()}if(he&&Le===Ye.A){if(o.value)return;ue.preventDefault(),J()}if(he&&Le===Ye.L){if(o.value)return;ue.preventDefault(),B()}if(!Ae&&he&&Le===Ye.G){if(o.value)return;ue.preventDefault(),Ie()}if(Ae&&he&&Le===Ye.G){if(o.value)return;ue.preventDefault(),ce()}if(Qe&&Le===Ye.F){if(o.value)return;ue.preventDefault(),w(Vt.TOP)}if(Qe&&Le===Ye.B){if(o.value)return;ue.preventDefault(),w(Vt.BOTTOM)}if(Le===Ye.DELETE||Le===Ye.BACKSPACE){if(o.value)return;ue.preventDefault(),z()}if(Le===Ye.UP){if(o.value)return;ue.preventDefault(),ne(Ye.UP)}if(Le===Ye.DOWN){if(o.value)return;ue.preventDefault(),ne(Ye.DOWN)}if(Le===Ye.LEFT){if(o.value)return;ue.preventDefault(),ne(Ye.LEFT)}if(Le===Ye.RIGHT){if(o.value)return;ue.preventDefault(),ne(Ye.RIGHT)}if(Le===Ye.PAGEUP){if(o.value)return;ue.preventDefault(),ge(Ye.PAGEUP)}if(Le===Ye.PAGEDOWN){if(o.value)return;ue.preventDefault(),ge(Ye.PAGEDOWN)}if(Le===Ye.ENTER){if(o.value)return;ue.preventDefault(),$()}if(Le===Ye.MINUS){if(o.value)return;ue.preventDefault(),D("-")}if(Le===Ye.EQUAL){if(o.value)return;ue.preventDefault(),D("+")}if(Le===Ye.DIGIT_0){if(o.value)return;ue.preventDefault(),le()}if(Le===Ye.TAB){if(o.value)return;ue.preventDefault(),A()}a.value&&!Ae&&!he&&!o.value&&(Le===Ye.T?e.setCreatingElement({type:"text"}):Le===Ye.R?e.setCreatingElement({type:"shape",data:{viewBox:[200,200],path:"M 0 0 L 200 0 L 200 200 L 0 200 Z"}}):Le===Ye.O?e.setCreatingElement({type:"shape",data:{viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z"}}):Le===Ye.L&&e.setCreatingElement({type:"line",data:{path:"M 0 0 L 20 20",style:"solid",points:["",""]}}))}},re=()=>{c.value&&t.setCtrlKeyState(!1),d.value&&t.setShiftKeyState(!1),R.value&&t.setSpaceKeyState(!1)};Ge(()=>{document.addEventListener("keydown",x),document.addEventListener("keyup",re),window.addEventListener("blur",re)}),mt(()=>{document.removeEventListener("keydown",x),document.removeEventListener("keyup",re),window.removeEventListener("blur",re)})},yN=()=>{const{editorAreaFocus:e,thumbnailsFocus:t,disableHotkeys:n}=oe(Xe()),{pasteTextClipboardData:o}=Oi(),{createImageElement:l}=il(),s=i=>{Uo(i).then(u=>l(u))},a=i=>{if(!e.value&&!t.value||n.value||!i.clipboardData)return;const u=i.clipboardData.items,r=u[0];if(r){for(const c of u)if(c.kind==="file"&&c.type.indexOf("image")!==-1){const d=c.getAsFile();d&&s(d);return}r.kind==="string"&&r.type==="text/plain"&&r.getAsString(c=>o(c))}};Ge(()=>{document.addEventListener("paste",a)}),mt(()=>{document.removeEventListener("paste",a)})},LN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAnFBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD4jUzeAAAAM3RSTlMA/eZMgL8N4+sUBmY6+s/LmY5rPxn18ca6lDPe1qmeg3JvYVtEK7CkfjYwJB4L2oqHVEtTlax6AAABcklEQVRIx92U2WKCQAxFAavAIKAiat3qvlW75f//rYnYMUwlo6+eJ2fIwXDD4DwPWSv1vYLxNrOWhwMo0bbVf4DBmywU9w+8ghh/uzWpfkUV7a7+vzque++CMDW6Dn3cGA8bF9Q/IcHrId8YxsAJJkZsPu6VdxZgMDnxyx6A55SJcsOoK0EgjrtN/UIS66C5INCgVPKGIYhQ0MtHhCX19IiwR6F1S1DNaPdygxYKaXQwBdXxQCRdlwS1ARv5mgsTsJMyoQlIP6pVMu9hwfoqDM5JSMywYqGFrgsQnEShg0KkBVq92g9mUwt9XGXyyace1J/Qda3jjvRDkjCnjuxv4EoL/XN/AkUq10njyhfrWSok0Eza9o4yLdAp3Iv1LBUUiJEjolPRwqcs6FS0MBTrjzwV/46OZjyVhIQvWUj5nKYkLMX6H+BzWgEthe+7WtCcZnwmhFtJfL6jugphAFaCUorhCCwkB/PVGuduJcn223kqfgEhmmiReOQYtgAAAABJRU5ErkJggg==";function bN(e,t){var n=0,o={};e.addEventListener("message",function(l){var s=l.data;if(s.type==="RPC")if(s.id){var a=o[s.id];a&&(delete o[s.id],s.error?a[1](Object.assign(Error(s.error.message),s.error)):a[0](s.result))}else{var i=document.createEvent("Event");i.initEvent(s.method,!1,!1),i.data=s.params,e.dispatchEvent(i)}}),t.forEach(function(l){e[l]=function(){var s=arguments;return new Promise(function(a,i){var u=++n;o[u]=[a,i],e.postMessage({type:"RPC",id:u,method:l,params:[].slice.call(s)})})}})}var IN=bN;const YN=Df(IN),WN=["createTaskController","destoryTaskController","addCourseWareTask","getRunJobIds","initOssResource","destroyOssResource"];function UN(e){const t=new Blob(e),n=new Worker(URL.createObjectURL(t),{name:"worker/mine1-coursewares.[contenthash:8].worker.js"});return URL.revokeObjectURL(URL.createObjectURL(t)),YN(n,WN),n.ready=new Promise(function(o){n.addEventListener("ready",function(){o(n)})}),n}let Nn=null,Vd=e=>{};const QN=()=>new Promise(async(e,t)=>{if(!Nn){const n=Il(),o=await ea.get("./pptworker/cos-js-sdk-v5.min.js"),l=await ea.get("./pptworker/upload.js"),s=await ea.get("./pptworker/pptJson.js");Nn=new UN([o.data,`\r
- const filePath = "${n.id}/"\r
- `,l.data,s.data]),Nn.ready.then(()=>Nn.createTaskController()).then(()=>{Nn.onmessage=FN}).then(()=>{Nn.initOssResource(Bf,zf())}).then(e(Nn)).catch(t);return}e(Nn)}),yd=(e,t)=>new Promise((n,o)=>{Nn?(Vd=t,Nn.addCourseWareTask(e).then(l=>{e=null,n(l)}).catch(o)):o("worker没有初始化")}),FN=e=>{const{type:t,result:n={}}=e.data;t==="progress"&&Vd(n)},ZN=()=>{const{addHistorySnapshot:e}=He(),t=_(!1),n=_(0);return Ge(()=>{QN()}),{importPPTXFile:l=>{var i;const s=l[0];if(!s)return;t.value=!0,n.value=0;const a=`.${(i=s.name.split("."))==null?void 0:i.reverse()[0]}`;yd({type:"uploadCourseware",extra:{outputName:s.name.trim(),name:s.name.replace(a,"").trim(),type:s.type,suffix:a,path:s.webkitRelativePath,paths:s.webkitRelativePath.split("/"),files:s}},u=>{console.log(u,"导入"),n.value=parseInt(u.progress),u.progress===100&&(u.status==="done"?yp(u.extra.url).then(r=>{r.code===200?(Lp(r.data),e(),t.value=!1):(t.value=!1,es({showClose:!0,message:"导入失败!",type:"error"}))}):u.status!=="doing"&&(t.value=!1,es({showClose:!0,message:"导入失败!",type:"error"})))}).catch(u=>{t.value=!1,es({showClose:!0,message:"导入失败!",type:"error"}),console.log(u)})},importing:t,importProgress:n}},AN=()=>{const e=_(!1),t=_(0);return{exportPPTX:()=>{const{blob:o,title:l}=bp(),s=URL.createObjectURL(o);t.value=0,e.value=!0,yd({type:"downloadCourseware",extra:{id:"",type:"pptx",outputName:`${l}.pptx`,name:l,jsonUrl:s}},a=>{if(console.log(a,"导出"),a.status==="doing"&&parseInt(a.progress)===100||(t.value=parseInt(a.progress)),a.progress===100)if(a.status==="done"){e.value=!1;const{extra:i={}}=a,{name:u,buffer:r}=i;jf(new Blob([r]),u)}else a.status!=="doing"&&(e.value=!1)}).catch(a=>{e.value=!1,console.log(a)})},exporting:e,exportProgress:t}},KN={class:"hotkey-doc"},_N={class:"title"},HN={class:"label"},CN={class:"value"},GN=q({__name:"HotkeyDoc",setup(e){return(t,n)=>(g(),b("div",KN,[(g(!0),b(ie,null,me(v(Ip),o=>(g(),b(ie,{key:o.type},[m("div",_N,Me(o.type),1),(g(!0),b(ie,null,me(o.children,l=>(g(),b("div",{class:"hotkey-item",key:l.label},[m("div",HN,Me(l.label),1),m("div",CN,Me(l.value),1)]))),128))],64))),128))]))}}),EN=fe(GN,[["__scopeId","data-v-2498929a"]]),wN=["accept"],kN=q({__name:"FileInput",props:{accept:{default:"image/*"}},emits:["change"],setup(e,{emit:t}){const n=t,o=_(),l=()=>{o.value&&(o.value.value="",o.value.click())},s=a=>{const i=a.target.files;i&&n("change",i)};return(a,i)=>(g(),b("div",{class:"file-input",onClick:i[1]||(i[1]=u=>l())},[We(a.$slots,"default",{},void 0,!0),m("input",{class:"input",type:"file",name:"upload",ref_key:"inputRef",ref:o,accept:a.accept,onChange:i[0]||(i[0]=u=>s(u))},null,40,wN)]))}}),Ql=fe(kN,[["__scopeId","data-v-058d398f"]]),JN={key:0,class:"fullscreen-spin"},xN={class:"spin"},$N={class:"text"},DN=q({__name:"FullscreenSpin",props:{loading:{type:Boolean,default:!1},tip:{default:""},progress:{default:0}},setup(e){return(t,n)=>t.loading?(g(),b("div",JN,[m("div",xN,[N(v(pd),{class:"progress",percentage:t.progress,"show-text":!1},null,8,["percentage"]),m("div",$N,Me(`${t.tip} ${t.progress}%`),1)])])):j("",!0)}}),BN=fe(DN,[["__scopeId","data-v-4e064927"]]),zN={class:"header"},jN=q({__name:"Drawer",props:{visible:{type:Boolean},width:{default:320},contentStyle:{},placement:{default:"right"}},emits:["update:visible"],setup(e,{emit:t}){const n=e,o=t,l=_(!1),s=H(()=>({width:n.width+"px",...n.contentStyle||{}}));return(a,i)=>{const u=te("IconClose");return g(),k(qa,{to:"body"},[N(io,{name:`drawer-slide-${a.placement}`,onAfterLeave:i[1]||(i[1]=r=>l.value=!1),onBeforeEnter:i[2]||(i[2]=r=>l.value=!0)},{default:Q(()=>[de(m("div",{class:E(["drawer",a.placement]),style:ee({width:n.width+"px"})},[m("div",zN,[We(a.$slots,"title",{},void 0,!0),m("span",{class:"close-btn",onClick:i[0]||(i[0]=r=>o("update:visible",!1))},[N(u)])]),l.value?(g(),b("div",{key:0,class:"content",style:ee(s.value)},[We(a.$slots,"default",{},void 0,!0)],4)):j("",!0)],6),[[Nt,a.visible]])]),_:3},8,["name"])])}}}),qN=fe(jN,[["__scopeId","data-v-fa9c5fff"]]),eX=q({__name:"PopoverMenuItem",props:{center:{type:Boolean,default:!1},active:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=t;return(o,l)=>(g(),b("div",{class:E(["popover-menu-item",[o.center&&"center",o.active&&"active"]]),onClick:l[0]||(l[0]=s=>n("click"))},[We(o.$slots,"default",{},void 0,!0)],2))}}),bt=fe(eX,[["__scopeId","data-v-6d578d0b"]]),Ld=e=>(Je("data-v-8228e588"),e=e(),xe(),e),tX={class:"editor-header"},nX={class:"left"},oX=Ld(()=>m("img",{class:"icon",src:LN},null,-1)),lX=[oX],sX=Ld(()=>m("div",{class:"line"},null,-1)),aX={class:"title"},iX={class:"title-text"},rX=q({__name:"index",setup(e){const t=Ue(),{title:n}=oe(t),{resetSlides:o}=Ul(),l=_(!1),s=_(!1),a=_("import"),{importPPTXFile:i,importing:u,importProgress:r}=ZN(),{exportPPTX:c,exporting:d,exportProgress:R}=AN();function p(){l.value=!1,mN.confirm("导出pptx可能会丢失一些内容,确认导出?","提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{a.value="export",c()}).catch(()=>{})}const f=H(()=>a.value==="export"?{loading:d.value,progress:R.value,tip:"正在导出中,请稍等…"}:{loading:u.value,progress:r.value,tip:"正在导入中,请稍等…"}),h=Il();function P(){h.updatePPT()}function O(){window.close()}return(L,S)=>(g(),b("div",tX,[m("div",nX,[N(Ke,{trigger:"click",placement:"bottom-start",value:l.value,"onUpdate:value":S[3]||(S[3]=X=>l.value=X)},{content:Q(()=>[N(Ql,{accept:"application/vnd.openxmlformats-officedocument.presentationml.presentation",onChange:S[0]||(S[0]=X=>{a.value="import",v(i)(X),l.value=!1})},{default:Q(()=>[N(bt,null,{default:Q(()=>[Oe("导入pptx")]),_:1})]),_:1}),N(bt,{onClick:p},{default:Q(()=>[Oe("导出pptx")]),_:1}),N(bt,{onClick:S[1]||(S[1]=()=>{v(o)(),l.value=!1})},{default:Q(()=>[Oe("重置幻灯片")]),_:1}),N(bt,{onClick:S[2]||(S[2]=()=>{l.value=!1,s.value=!0})},{default:Q(()=>[Oe("快捷操作")]),_:1})]),default:Q(()=>[m("div",{class:E(["menuCon",{menuVisible:l.value}])},lX,2)]),_:1},8,["value"]),sX,m("div",aX,[m("div",iX,Me(v(n)),1)])]),m("div",{class:"right"},[m("div",{class:"cancelBtn",onClick:O},"退出"),m("div",{class:"saveBtn",onClick:P},"保存课件")]),N(qN,{width:320,visible:s.value,"onUpdate:visible":S[4]||(S[4]=X=>s.value=X),placement:"right"},{title:Q(()=>[Oe("快捷操作")]),default:Q(()=>[N(EN)]),_:1},8,["visible"]),N(BN,{loading:f.value.loading,progress:f.value.progress,tip:f.value.tip},null,8,["loading","progress","tip"])]))}}),uX=fe(rX,[["__scopeId","data-v-8228e588"]]),cX=()=>{const e=window.getSelection();e&&e.removeAllRanges()},dX=e=>{const t=_(0),n=_(0),o=Xe(),{canvasPercentage:l,canvasDragged:s}=oe(o),{viewportRatio:a,viewportSize:i}=oe(Ue()),u=()=>{if(!e.value)return;const p=e.value.clientWidth,f=e.value.clientHeight;if(f/p>a.value){const h=p*(l.value/100);o.setCanvasScale(h/i.value),t.value=(p-h)/2,n.value=(f-h*a.value)/2}else{const h=f*(l.value/100);o.setCanvasScale(h/(i.value*a.value)),t.value=(p-h/a.value)/2,n.value=(f-h)/2}};Pe(l,(p,f)=>{if(!e.value)return;const h=e.value.clientWidth,P=e.value.clientHeight;if(P/h>a.value){const O=h*(p/100),L=h*(f/100),S=O*a.value,X=L*a.value;o.setCanvasScale(O/i.value),t.value=t.value-(O-L)/2,n.value=n.value-(S-X)/2}else{const O=P*(p/100),L=P*(f/100),S=O/a.value,X=L/a.value;o.setCanvasScale(O/(i.value*a.value)),t.value=t.value-(S-X)/2,n.value=n.value-(O-L)/2}}),Pe(a,u),Pe(i,u),Pe(s,()=>{s.value||u()});const c=H(()=>({width:i.value,height:i.value*a.value,left:t.value,top:n.value})),d=new ResizeObserver(u);return Ge(()=>{e.value&&d.observe(e.value)}),mt(()=>{e.value&&d.unobserve(e.value)}),{viewportStyles:c,dragViewport:p=>{let f=!0;const h=p.pageX,P=p.pageY,O=t.value,L=n.value;document.onmousemove=S=>{if(!f)return;const X=S.pageX,M=S.pageY;t.value=O+(X-h),n.value=L+(M-P)},document.onmouseup=()=>{f=!1,document.onmousemove=null,document.onmouseup=null,o.setCanvasDragged(!0)}}}},RX=(e,t)=>{const n=Xe(),{canvasScale:o,hiddenElementIdList:l}=oe(n),s=_(!1),a=_(1),i=_({top:0,left:0,width:0,height:0});return{mouseSelection:i,mouseSelectionVisible:s,mouseSelectionQuadrant:a,updateMouseSelection:r=>{if(!t.value)return;let c=!0;const d=t.value.getBoundingClientRect(),R=5,p=r.pageX,f=r.pageY,h=(p-d.x)/o.value,P=(f-d.y)/o.value;i.value={top:P,left:h,width:0,height:0},s.value=!1,a.value=4,document.onmousemove=O=>{if(!c)return;const L=O.pageX,S=O.pageY,X=(L-p)/o.value,M=(S-f)/o.value,y=Math.abs(X),Y=Math.abs(M);if(y<R||Y<R)return;let T=0;X>0&&M>0?T=4:X<0&&M<0?T=2:X>0&&M<0?T=1:X<0&&M>0&&(T=3),i.value={...i.value,width:y,height:Y},s.value=!0,a.value=T},document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null,c=!1;let O=[];for(let S=0;S<e.value.length;S++){const X=e.value[S],M=i.value.left,y=i.value.top,Y=i.value.width,T=i.value.height,{minX:V,maxX:I,minY:W,maxY:F}=Fn(X);let C=!1;a.value===4?C=V>M&&I<M+Y&&W>y&&F<y+T:a.value===2?C=V>M-Y&&I<M-Y+Y&&W>y-T&&F<y-T+T:a.value===1?C=V>M&&I<M+Y&&W>y-T&&F<y-T+T:a.value===3&&(C=V>M-Y&&I<M-Y+Y&&W>y&&F<y+T),C&&!X.lock&&!l.value.includes(X.id)&&O.push(X)}O=O.filter(S=>{if(S.groupId){const X=O.map(y=>y.id);return e.value.filter(y=>y.groupId===S.groupId).every(y=>X.includes(y.id))}return!0});const L=O.map(S=>S.id);n.setActiveElementIdList(L),s.value=!1}}}},fX=e=>{const{disableHotkeys:t}=oe(Xe()),{createImageElement:n,createTextElement:o}=il(),l=s=>{if(!s.dataTransfer||s.dataTransfer.items.length===0)return;const a=s.dataTransfer.items[0];if(a.kind==="file"&&a.type.indexOf("image")!==-1){const i=a.getAsFile();i&&Uo(i).then(u=>n(u))}else a.kind==="string"&&a.type==="text/plain"&&a.getAsString(i=>{if(t.value)return;const u=Xa(i);o({left:0,top:0,width:600,height:50},{content:u})})};Ge(()=>{e.value&&e.value.addEventListener("drop",l),document.ondragleave=s=>s.preventDefault(),document.ondrop=s=>s.preventDefault(),document.ondragenter=s=>s.preventDefault(),document.ondragover=s=>s.preventDefault()}),mt(()=>{e.value&&e.value.removeEventListener("drop",l),document.ondragleave=null,document.ondrop=null,document.ondragenter=null,document.ondragover=null})},pX=(e,t)=>{const n=Math.atan2(e,t);return 180/Math.PI*n},hX=(e,t,n)=>{const o=Ue(),{addHistorySnapshot:l}=He();return{rotateElement:(a,i)=>{const u=!(a instanceof MouseEvent);if(u&&(!a.changedTouches||!a.changedTouches[0]))return;let r=!0,c=0;const d=i.rotate||0,R=i.left,p=i.top,f=i.width,h=i.height,P=R+f/2,O=p+h/2;if(!t.value)return;const L=t.value.getBoundingClientRect(),S=M=>{if(!r)return;const y=M instanceof MouseEvent?M.pageX:M.changedTouches[0].pageX,Y=M instanceof MouseEvent?M.pageY:M.changedTouches[0].pageY,T=(y-L.left)/n.value,V=(Y-L.top)/n.value,I=T-P,W=O-V;c=pX(I,W);const F=5;Math.abs(c)<=F?c=0:c>0&&Math.abs(c-45)<=F?c-=c-45:c<0&&Math.abs(c+45)<=F?c-=c+45:c>0&&Math.abs(c-90)<=F?c-=c-90:c<0&&Math.abs(c+90)<=F?c-=c+90:c>0&&Math.abs(c-135)<=F?c-=c-135:c<0&&Math.abs(c+135)<=F?c-=c+135:c>0&&Math.abs(c-180)<=F?c-=c-180:c<0&&Math.abs(c+180)<=F&&(c-=c+180),e.value=e.value.map(C=>i.id===C.id?{...C,rotate:c}:C)},X=()=>{r=!1,document.onmousemove=null,document.onmouseup=null,d!==c&&(o.updateSlide({elements:e.value}),l())};u?(document.ontouchmove=S,document.ontouchend=X):(document.onmousemove=S,document.onmouseup=X)}}},ml={text:"文本",image:"图片",shape:"形状",line:"线条",chart:"图表",table:"表格",video:"视频",audio:"音频",latex:"公式"},bd={text:20,image:20,shape:20,chart:200,table:20,video:250,audio:20,latex:20},ou=(e,t)=>{const{left:n,top:o,width:l,height:s}=e,a=Math.sqrt(Math.pow(l,2)+Math.pow(s,2))/2,i=Math.atan(s/l)*180/Math.PI,u=(180-t-i)*Math.PI/180,r=(i-t)*Math.PI/180,c=(90-t)*Math.PI/180,d=t*Math.PI/180,R=l/2,p=s/2,f=n+R,h=o+p,P={left:f+a*Math.cos(u),top:h-a*Math.sin(u)},O={left:f+p*Math.cos(c),top:h-p*Math.sin(c)},L={left:f+a*Math.cos(r),top:h-a*Math.sin(r)},S={left:f+R*Math.cos(d),top:h+R*Math.sin(d)},X={left:f-a*Math.cos(u),top:h+a*Math.sin(u)},M={left:f-p*Math.sin(d),top:h+p*Math.cos(d)},y={left:f-a*Math.cos(r),top:h+a*Math.sin(r)},Y={left:f-R*Math.cos(d),top:h-R*Math.sin(d)};return{leftTopPoint:P,topPoint:O,rightTopPoint:L,rightPoint:S,rightBottomPoint:X,bottomPoint:M,leftBottomPoint:y,leftPoint:Y}},lu=(e,t)=>({[be.RIGHT_BOTTOM]:t.leftTopPoint,[be.LEFT_BOTTOM]:t.rightTopPoint,[be.LEFT_TOP]:t.rightBottomPoint,[be.RIGHT_TOP]:t.leftBottomPoint,[be.TOP]:t.bottomPoint,[be.BOTTOM]:t.topPoint,[be.LEFT]:t.rightPoint,[be.RIGHT]:t.leftPoint})[e],vX=(e,t,n)=>{const o=Xe(),l=Ue(),{activeElementIdList:s,activeGroupElementId:a}=oe(o),{viewportRatio:i,viewportSize:u}=oe(l),{ctrlOrShiftKeyActive:r}=oe(Mn()),{addHistorySnapshot:c}=He();return{scaleElement:(p,f,h)=>{const P=!(p instanceof MouseEvent);if(P&&(!p.changedTouches||!p.changedTouches[0]))return;let O=!0;o.setScalingState(!0);const L=f.left,S=f.top,X=f.width,M=f.height,y=f.type==="table"?f.cellMinHeight:0,Y="rotate"in f&&f.rotate?f.rotate:0,T=Math.PI*Y/180,V=r.value||"fixedRatio"in f&&f.fixedRatio,I=X/M,W=P?p.changedTouches[0].pageX:p.pageX,F=P?p.changedTouches[0].pageY:p.pageY,C=bd[f.type]||20,Z=J=>J<C?C:J;let K,U=0,G=0,D=[],le=[];if("rotate"in f&&f.rotate){const{left:J,top:B,width:Ie,height:ce}=f;K=ou({left:J,top:B,width:Ie,height:ce},Y);const z=lu(h,K);U=z.left,G=z.top}else{const J=u.value,B=u.value*i.value,Ie=f.id===a.value;for(const A of e.value){if("rotate"in A&&A.rotate||A.type==="line"||Ie&&A.id===f.id||!Ie&&s.value.includes(A.id))continue;const x=A.left,re=A.top,ue=A.width,Te=A.height,Ae=x+ue,Qe=re+Te,Ne={value:re,range:[x,Ae]},he={value:Qe,range:[x,Ae]},Le={value:x,range:[re,Qe]},ve={value:Ae,range:[re,Qe]};D.push(Ne,he),le.push(Le,ve)}const ce={value:0,range:[0,J]},z={value:B,range:[0,J]},ne={value:B/2,range:[0,J]},ge={value:0,range:[0,B]},w={value:J,range:[0,B]},$={value:J/2,range:[0,B]};D.push(ce,z,ne),le.push(ge,w,$),D=fs(D),le=fs(le)}const Re=(J,B)=>{const ce=[];let z=!1,ne=!1;const ge={offsetX:0,offsetY:0};if(B||B===0)for(let w=0;w<D.length;w++){const{value:$,range:A}=D[w],x=Math.min(...A,J||0),re=Math.max(...A,J||0);Math.abs(B-$)<5&&!ne&&(ge.offsetY=B-$,ne=!0,ce.push({type:"horizontal",axis:{x:x-50,y:$},length:re-x+100}))}if(J||J===0)for(let w=0;w<le.length;w++){const{value:$,range:A}=le[w],x=Math.min(...A,B||0),re=Math.max(...A,B||0);Math.abs(J-$)<5&&!z&&(ge.offsetX=J-$,z=!0,ce.push({type:"vertical",axis:{x:$,y:x-50},length:re-x+100}))}return t.value=ce,ge},ae=J=>{if(!O)return;const B=J instanceof MouseEvent?J.pageX:J.changedTouches[0].pageX,Ie=J instanceof MouseEvent?J.pageY:J.changedTouches[0].pageY,ce=B-W,z=Ie-F;let ne=X,ge=M,w=L,$=S;if(Y){const A=(Math.cos(T)*ce+Math.sin(T)*z)/n.value;let x=(Math.cos(T)*z-Math.sin(T)*ce)/n.value;V&&((h===be.RIGHT_BOTTOM||h===be.LEFT_TOP)&&(x=A/I),(h===be.LEFT_BOTTOM||h===be.RIGHT_TOP)&&(x=-A/I)),h===be.RIGHT_BOTTOM?(ne=Z(X+A),ge=Z(M+x)):h===be.LEFT_BOTTOM?(ne=Z(X-A),ge=Z(M+x),w=L-(ne-X)):h===be.LEFT_TOP?(ne=Z(X-A),ge=Z(M-x),w=L-(ne-X),$=S-(ge-M)):h===be.RIGHT_TOP?(ne=Z(X+A),ge=Z(M-x),$=S-(ge-M)):h===be.TOP?(ge=Z(M-x),$=S-(ge-M)):h===be.BOTTOM?ge=Z(M+x):h===be.LEFT?(ne=Z(X-A),w=L-(ne-X)):h===be.RIGHT&&(ne=Z(X+A));const re=ou({width:ne,height:ge,left:w,top:$},Y),ue=lu(h,re),Te=ue.left,Ae=ue.top,Qe=Te-U,Ne=Ae-G;w=w-Qe,$=$-Ne}else{let A=ce/n.value,x=z/n.value;if(V&&((h===be.RIGHT_BOTTOM||h===be.LEFT_TOP)&&(x=A/I),(h===be.LEFT_BOTTOM||h===be.RIGHT_TOP)&&(x=-A/I)),h===be.RIGHT_BOTTOM){const{offsetX:re,offsetY:ue}=Re(L+X+A,S+M+x);A=A-re,x=x-ue,V&&(ue?A=x*I:x=A/I),ne=Z(X+A),ge=Z(M+x)}else if(h===be.LEFT_BOTTOM){const{offsetX:re,offsetY:ue}=Re(L+A,S+M+x);A=A-re,x=x-ue,V&&(ue?A=-x*I:x=-A/I),ne=Z(X-A),ge=Z(M+x),w=L-(ne-X)}else if(h===be.LEFT_TOP){const{offsetX:re,offsetY:ue}=Re(L+A,S+x);A=A-re,x=x-ue,V&&(ue?A=x*I:x=A/I),ne=Z(X-A),ge=Z(M-x),w=L-(ne-X),$=S-(ge-M)}else if(h===be.RIGHT_TOP){const{offsetX:re,offsetY:ue}=Re(L+X+A,S+x);A=A-re,x=x-ue,V&&(ue?A=-x*I:x=-A/I),ne=Z(X+A),ge=Z(M-x),$=S-(ge-M)}else if(h===be.LEFT){const{offsetX:re}=Re(L+A,null);A=A-re,ne=Z(X-A),w=L-(ne-X)}else if(h===be.RIGHT){const{offsetX:re}=Re(L+X+A,null);A=A-re,ne=Z(X+A)}else if(h===be.TOP){const{offsetY:re}=Re(null,S+x);x=x-re,ge=Z(M-x),$=S-(ge-M)}else if(h===be.BOTTOM){const{offsetY:re}=Re(null,S+M+x);x=x-re,ge=Z(M+x)}}e.value=e.value.map(A=>{if(f.id!==A.id)return A;if(A.type==="shape"&&"pathFormula"in A&&A.pathFormula){const x=sl[A.pathFormula];let re="";return"editable"in x?re=x.formula(ne,ge,A.keypoints):re=x.formula(ne,ge),{...A,left:w,top:$,width:ne,height:ge,viewBox:[ne,ge],path:re}}if(A.type==="table"){let x=y+(ge-M)/A.data.length;return x=x<36?36:x,x===y?{...A,left:w,width:ne}:{...A,left:w,top:$,width:ne,height:ge,cellMinHeight:x<36?36:x}}return{...A,left:w,top:$,width:ne,height:ge}})},Se=J=>{O=!1,document.ontouchmove=null,document.ontouchend=null,document.onmousemove=null,document.onmouseup=null,t.value=[];const B=J instanceof MouseEvent?J.pageX:J.changedTouches[0].pageX,Ie=J instanceof MouseEvent?J.pageY:J.changedTouches[0].pageY;W===B&&F===Ie||(l.updateSlide({elements:e.value}),o.setScalingState(!1),c())};P?(document.ontouchmove=ae,document.ontouchend=Se):(document.onmousemove=ae,document.onmouseup=Se)},scaleMultiElement:(p,f,h)=>{let P=!0;const{minX:O,maxX:L,minY:S,maxY:X}=f,M=L-O,y=X-S,Y=M/y,T=p.pageX,V=p.pageY,I=JSON.parse(JSON.stringify(e.value));document.onmousemove=W=>{if(!P)return;const F=W.pageX,C=W.pageY,Z=(F-T)/n.value;let K=(C-V)/n.value;r.value&&((h===be.RIGHT_BOTTOM||h===be.LEFT_TOP)&&(K=Z/Y),(h===be.LEFT_BOTTOM||h===be.RIGHT_TOP)&&(K=-Z/Y));let U=O,G=L,D=S,le=X;h===be.RIGHT_BOTTOM?(G=L+Z,le=X+K):h===be.LEFT_BOTTOM?(U=O+Z,le=X+K):h===be.LEFT_TOP?(U=O+Z,D=S+K):h===be.RIGHT_TOP?(G=L+Z,D=S+K):h===be.TOP?D=S+K:h===be.BOTTOM?le=X+K:h===be.LEFT?U=O+Z:h===be.RIGHT&&(G=L+Z);const Re=G-U,ae=le-D;let Se=Re/M,J=ae/y;Se<=0&&(Se=0),J<=0&&(J=0),e.value=e.value.map(B=>{if((B.type==="image"||B.type==="shape")&&s.value.includes(B.id)){const Ie=I.find(ce=>ce.id===B.id);return{...B,width:Ie.width*Se,height:Ie.height*J,left:U+(Ie.left-O)*Se,top:D+(Ie.top-S)*J}}return B})},document.onmouseup=W=>{P=!1,document.onmousemove=null,document.onmouseup=null,!(T===W.pageX&&V===W.pageY)&&(l.updateSlide({elements:e.value}),c())}}}},mX=(e,t)=>{const n=Xe(),{activeElementIdList:o,activeGroupElementId:l,handleElementId:s,editorAreaFocus:a}=oe(n),{ctrlOrShiftKeyActive:i}=oe(Mn());return{selectElement:(r,c,d=!0)=>{if(a.value||n.setEditorareaFocus(!0),o.value.includes(c.id)){if(i.value){let R=[];if(c.groupId){const p=[];e.value.forEach(f=>{f.groupId===c.groupId&&p.push(f.id)}),R=o.value.filter(f=>!p.includes(f))}else R=o.value.filter(p=>p!==c.id);R.length>0&&n.setActiveElementIdList(R)}else if(s.value!==c.id)n.setHandleElementId(c.id);else if(l.value!==c.id){const R=r instanceof MouseEvent?r.pageX:r.changedTouches[0].pageX,p=r instanceof MouseEvent?r.pageY:r.changedTouches[0].pageY;r.target.onmouseup=f=>{const h=f.pageX,P=f.pageY;R===h&&p===P&&(n.setActiveGroupElementId(c.id),f.target.onmouseup=null)}}}else{let R=[];if(i.value?R=[...o.value,c.id]:R=[c.id],c.groupId){const p=[];e.value.forEach(f=>{f.groupId===c.groupId&&p.push(f.id)}),R=[...R,...p]}n.setActiveElementIdList(vt.uniq(R)),n.setHandleElementId(c.id)}d&&t(r,c)}}},MX=(e,t,n)=>{const o=Ue(),{activeElementIdList:l,activeGroupElementId:s}=oe(Xe()),{shiftKeyState:a}=oe(Mn()),{viewportRatio:i,viewportSize:u}=oe(o),{addHistorySnapshot:r}=He();return{dragElement:(d,R)=>{const p=!(d instanceof MouseEvent);if(p&&(!d.changedTouches||!d.changedTouches[0])||!l.value.includes(R.id))return;let f=!0;e.value.map(J=>{l.value.includes(J.id)&&J.type==="elf"&&J.subtype==="elf-sing-play"&&(J.isMove=!0)});const h=u.value,P=u.value*i.value,O=5,S=JSON.parse(JSON.stringify(e.value)).filter(J=>l.value.includes(J.id)),X=R.left,M=R.top,y=R.width,Y="height"in R&&R.height?R.height:0,T="rotate"in R&&R.rotate?R.rotate:0,V=p?d.changedTouches[0].pageX:d.pageX,I=p?d.changedTouches[0].pageY:d.pageY;let W=null;const F=R.id===s.value;let C=[],Z=[];for(const J of e.value){if(J.type==="line"||F&&J.id===R.id||!F&&l.value.includes(J.id))continue;let B,Ie,ce,z;if("rotate"in J&&J.rotate){const{xRange:Qe,yRange:Ne}=ta({left:J.left,top:J.top,width:J.width,height:J.height,rotate:J.rotate});B=Qe[0],Ie=Ne[0],ce=Qe[1]-Qe[0],z=Ne[1]-Ne[0]}else B=J.left,Ie=J.top,ce=J.width,z=J.height;const ne=B+ce,ge=Ie+z,w=Ie+z/2,$=B+ce/2,A={value:Ie,range:[B,ne]},x={value:ge,range:[B,ne]},re={value:w,range:[B,ne]},ue={value:B,range:[Ie,ge]},Te={value:ne,range:[Ie,ge]},Ae={value:$,range:[Ie,ge]};C.push(A,x,re),Z.push(ue,Te,Ae)}const K={value:0,range:[0,h]},U={value:P,range:[0,h]},G={value:P/2,range:[0,h]},D={value:0,range:[0,P]},le={value:h,range:[0,P]},Re={value:h/2,range:[0,P]};C.push(K,U,G),Z.push(D,le,Re),C=fs(C),Z=fs(Z);const ae=J=>{const B=J instanceof MouseEvent?J.pageX:J.changedTouches[0].pageX,Ie=J instanceof MouseEvent?J.pageY:J.changedTouches[0].pageY;if(W!==!1&&(W=Math.abs(V-B)<O&&Math.abs(I-Ie)<O),!f||W)return;let ce=(B-V)/n.value,z=(Ie-I)/n.value;a.value&&(Math.abs(ce)>Math.abs(z)&&(z=0),Math.abs(ce)<Math.abs(z)&&(ce=0));let ne=X+ce,ge=M+z,w,$,A,x;if(l.value.length===1||F)if(T){const{xRange:Ne,yRange:he}=ta({left:ne,top:ge,width:y,height:Y,rotate:T});w=Ne[0],$=Ne[1],A=he[0],x=he[1]}else R.type==="line"?(w=ne,$=ne+Math.max(R.start[0],R.end[0]),A=ge,x=ge+Math.max(R.start[1],R.end[1])):(w=ne,$=ne+y,A=ge,x=ge+Y);else{const Ne=[],he=[],Le=[],ve=[];for(let _e=0;_e<S.length;_e++){const je=S[_e],pe=je.left+ce,Ee=je.top+z,ft=je.width,In="height"in je&&je.height?je.height:0,vo="rotate"in je&&je.rotate?je.rotate:0;if("rotate"in je&&je.rotate){const{xRange:cl,yRange:dl}=ta({left:pe,top:Ee,width:ft,height:In,rotate:vo});Ne.push(cl[0]),he.push(dl[0]),Le.push(cl[1]),ve.push(dl[1])}else je.type==="line"?(Ne.push(pe),he.push(Ee),Le.push(pe+Math.max(je.start[0],je.end[0])),ve.push(Ee+Math.max(je.start[1],je.end[1]))):(Ne.push(pe),he.push(Ee),Le.push(pe+ft),ve.push(Ee+In))}w=Math.min(...Ne),$=Math.max(...Le),A=Math.min(...he),x=Math.max(...ve)}const re=w+($-w)/2,ue=A+(x-A)/2,Te=[];let Ae=!1,Qe=!1;for(let Ne=0;Ne<C.length;Ne++){const{value:he,range:Le}=C[Ne],ve=Math.min(...Le,w,$),_e=Math.max(...Le,w,$);Math.abs(A-he)<O&&!Qe&&(ge=ge-(A-he),Qe=!0,Te.push({type:"horizontal",axis:{x:ve-50,y:he},length:_e-ve+100})),Math.abs(x-he)<O&&!Qe&&(ge=ge-(x-he),Qe=!0,Te.push({type:"horizontal",axis:{x:ve-50,y:he},length:_e-ve+100})),Math.abs(ue-he)<O&&!Qe&&(ge=ge-(ue-he),Qe=!0,Te.push({type:"horizontal",axis:{x:ve-50,y:he},length:_e-ve+100}))}for(let Ne=0;Ne<Z.length;Ne++){const{value:he,range:Le}=Z[Ne],ve=Math.min(...Le,A,x),_e=Math.max(...Le,A,x);Math.abs(w-he)<O&&!Ae&&(ne=ne-(w-he),Ae=!0,Te.push({type:"vertical",axis:{x:he,y:ve-50},length:_e-ve+100})),Math.abs($-he)<O&&!Ae&&(ne=ne-($-he),Ae=!0,Te.push({type:"vertical",axis:{x:he,y:ve-50},length:_e-ve+100})),Math.abs(re-he)<O&&!Ae&&(ne=ne-(re-he),Ae=!0,Te.push({type:"vertical",axis:{x:he,y:ve-50},length:_e-ve+100}))}if(t.value=Te,l.value.length===1||F)e.value=e.value.map(Ne=>Ne.id===R.id?{...Ne,left:ne,top:ge}:Ne);else{const Ne=e.value.find(he=>he.id===R.id);if(!Ne)return;e.value=e.value.map(he=>l.value.includes(he.id)?he.id===R.id?{...he,left:ne,top:ge}:{...he,left:he.left+(ne-Ne.left),top:he.top+(ge-Ne.top)}:he)}},Se=J=>{f=!1,e.value.map(ce=>{l.value.includes(ce.id)&&ce.type==="elf"&&ce.subtype==="elf-sing-play"&&(ce.isMove=!1)}),document.ontouchmove=null,document.ontouchend=null,document.onmousemove=null,document.onmouseup=null,t.value=[];const B=J instanceof MouseEvent?J.pageX:J.changedTouches[0].pageX,Ie=J instanceof MouseEvent?J.pageY:J.changedTouches[0].pageY;V===B&&I===Ie||(o.updateSlide({elements:e.value}),r())};p?(document.ontouchmove=ae,document.ontouchend=Se):(document.onmousemove=ae,document.onmouseup=Se)}}},gX=e=>{const t=Ue(),{canvasScale:n}=oe(Xe()),{ctrlOrShiftKeyActive:o}=oe(Mn()),{addHistorySnapshot:l}=He();return{dragLineElement:(a,i,u)=>{let r=!0;const c=8,d=a.pageX,R=a.pageY,p=[];for(let f=0;f<e.value.length;f++){const h=e.value[f];if(h.type==="line"||h.rotate)continue;const P=h.left,O=h.top,L=h.width,S=h.height,X=P+L,M=O+S,y=O+S/2,Y=P+L/2,T={x:Y,y:O},V={x:Y,y:M},I={x:P,y},W={x:X,y},F={x:P,y:O},C={x:X,y:O},Z={x:P,y:M},K={x:X,y:M};p.push(T,V,I,W,F,C,Z,K)}document.onmousemove=f=>{if(!r)return;const h=f.pageX,P=f.pageY,O=(h-d)/n.value,L=(P-R)/n.value;let S=i.left+i.start[0],X=i.top+i.start[1],M=i.left+i.end[0],y=i.top+i.end[1];const Y=i.broken||i.broken2||i.curve||[0,0];let T=i.left+Y[0],V=i.top+Y[1];const[I,W]=i.cubic||[[0,0],[0,0]];let F=i.left+I[0],C=i.top+I[1],Z=i.left+W[0],K=i.top+W[1];if(u===qt.START){S=S+O,X=X+L,Math.abs(S-M)<c&&(S=M),Math.abs(X-y)<c&&(X=y);for(const Se of p){const{x:J,y:B}=Se;if(Math.abs(J-S)<c&&Math.abs(B-X)<c){S=J,X=B;break}}}else if(u===qt.END){M=M+O,y=y+L,Math.abs(S-M)<c&&(M=S),Math.abs(X-y)<c&&(y=X);for(const Se of p){const{x:J,y:B}=Se;if(Math.abs(J-M)<c&&Math.abs(B-y)<c){M=J,y=B;break}}}else u===qt.C?(T=T+O,V=V+L,Math.abs(T-S)<c&&(T=S),Math.abs(V-X)<c&&(V=X),Math.abs(T-M)<c&&(T=M),Math.abs(V-y)<c&&(V=y),Math.abs(T-(S+M)/2)<c&&Math.abs(V-(X+y)/2)<c&&(T=(S+M)/2,V=(X+y)/2)):u===qt.C1?(F=F+O,C=C+L,Math.abs(F-S)<c&&(F=S),Math.abs(C-X)<c&&(C=X),Math.abs(F-M)<c&&(F=M),Math.abs(C-y)<c&&(C=y)):u===qt.C2&&(Z=Z+O,K=K+L,Math.abs(Z-S)<c&&(Z=S),Math.abs(K-X)<c&&(K=X),Math.abs(Z-M)<c&&(Z=M),Math.abs(K-y)<c&&(K=y));const U=Math.min(S,M),G=Math.min(X,y),D=Math.max(S,M),le=Math.max(X,y),Re=[0,0],ae=[D-U,le-G];S>M&&(Re[0]=D-U,ae[0]=0),X>y&&(Re[1]=le-G,ae[1]=0),e.value=e.value.map(Se=>{if(Se.id===i.id){const J={...Se,left:U,top:G,start:Re,end:ae};return u===qt.START||u===qt.END?(o.value?(i.broken&&(J.broken=[T-U,V-G]),i.curve&&(J.curve=[T-U,V-G]),i.cubic&&(J.cubic=[[F-U,C-G],[Z-U,K-G]])):(i.broken&&(J.broken=[(Re[0]+ae[0])/2,(Re[1]+ae[1])/2]),i.curve&&(J.curve=[(Re[0]+ae[0])/2,(Re[1]+ae[1])/2]),i.cubic&&(J.cubic=[[(Re[0]+ae[0])/2,(Re[1]+ae[1])/2],[(Re[0]+ae[0])/2,(Re[1]+ae[1])/2]])),i.broken2&&(J.broken2=[(Re[0]+ae[0])/2,(Re[1]+ae[1])/2])):u===qt.C?(i.broken&&(J.broken=[T-U,V-G]),i.curve&&(J.curve=[T-U,V-G]),i.broken2&&(D-U>=le-G?J.broken2=[T-U,J.broken2[1]]:J.broken2=[J.broken2[0],V-G])):i.cubic&&(J.cubic=[[F-U,C-G],[Z-U,K-G]]),J}return Se})},document.onmouseup=f=>{r=!1,document.onmousemove=null,document.onmouseup=null;const h=f.pageX,P=f.pageY;d===h&&R===P||(t.updateSlide({elements:e.value}),l())}}}},SX=(e,t)=>{const n=Ue(),{addHistorySnapshot:o}=He();return{moveShapeKeypoint:(s,a,i=0)=>{const u=!(s instanceof MouseEvent);if(u&&(!s.changedTouches||!s.changedTouches[0]))return;let r=!0;const c=u?s.changedTouches[0].pageX:s.pageX,d=u?s.changedTouches[0].pageY:s.pageY,R=a.keypoints,p=sl[a.pathFormula];let f=null;if("editable"in p&&p.editable){const O=p.getBaseSize[i],L=p.range[i],S=p.relative[i],X=R[i],M=O(a.width,a.height),y=M*X,[Y,T]=L;f={baseSize:M,originPos:y,min:Y,max:T,relative:S}}const h=O=>{if(!r)return;const L=O instanceof MouseEvent?O.pageX:O.changedTouches[0].pageX,S=O instanceof MouseEvent?O.pageY:O.changedTouches[0].pageY,X=(L-c)/t.value,M=(S-d)/t.value;e.value=e.value.map(y=>{if(y.id===a.id&&f){const{baseSize:Y,originPos:T,min:V,max:I,relative:W}=f,F=y;let C=0;W==="center"?C=(T-X*2)/Y:W==="left"?C=(T+X)/Y:W==="right"?C=(T-X)/Y:W==="top"?C=(T+M)/Y:W==="bottom"?C=(T-M)/Y:W==="left_bottom"?C=(T+X)/Y:W==="right_bottom"?C=(T-X)/Y:W==="top_right"?C=(T+M)/Y:W==="bottom_right"&&(C=(T-M)/Y),C<V&&(C=V),C>I&&(C=I);let Z=[];return Array.isArray(R)?(Z=[...R],Z[i]=C):Z=[C],{...y,keypoints:Z,path:p.formula(F.width,F.height,Z)}}return y})},P=O=>{r=!1,document.ontouchmove=null,document.ontouchend=null,document.onmousemove=null,document.onmouseup=null;const L=O instanceof MouseEvent?O.pageX:O.changedTouches[0].pageX,S=O instanceof MouseEvent?O.pageY:O.changedTouches[0].pageY;c===L&&d===S||(n.updateSlide({elements:e.value}),o())};u?(document.ontouchmove=h,document.ontouchend=P):(document.onmousemove=h,document.onmouseup=P)}}},OX=e=>{const t=Xe(),{canvasScale:n,creatingElement:o}=oe(t),l=c=>{const{start:d,end:R}=c;if(!e.value)return;const p=e.value.getBoundingClientRect(),[f,h]=d,[P,O]=R,L=Math.min(f,P),S=Math.max(f,P),X=Math.min(h,O),M=Math.max(h,O),y=(L-p.x)/n.value,Y=(X-p.y)/n.value,T=(S-L)/n.value,V=(M-X)/n.value;return{left:y,top:Y,width:T,height:V}},s=c=>{const{start:d,end:R}=c;if(!e.value)return;const p=e.value.getBoundingClientRect(),[f,h]=d,[P,O]=R,L=Math.min(f,P),S=Math.max(f,P),X=Math.min(h,O),M=Math.max(h,O),y=(L-p.x)/n.value,Y=(X-p.y)/n.value,T=(S-L)/n.value,V=(M-X)/n.value;return{left:y,top:Y,start:[f===L?0:T,h===X?0:V],end:[P===L?0:T,O===X?0:V]}},{createTextElement:a,createShapeElement:i,createLineElement:u}=il();return{formatCreateSelection:l,insertElementFromCreateSelection:c=>{if(!o.value)return;const d=o.value.type;if(d==="text"){const R=l(c);R&&a(R,{vertical:o.value.vertical})}else if(d==="shape"){const R=l(c);R&&i(R,o.value.data)}else if(d==="line"){const R=s(c);R&&u(R,o.value.data)}t.setCreatingElement(null)}}},Ti=()=>{const e=Ue(),{activeElementIdList:t,activeElementList:n}=oe(Xe()),{currentSlide:o,viewportRatio:l,viewportSize:s}=oe(e),{addHistorySnapshot:a}=He();return{alignElementToCanvas:u=>{const r=s.value,c=s.value*l.value,{minX:d,maxX:R,minY:p,maxY:f}=An(n.value),h=JSON.parse(JSON.stringify(o.value.elements));for(const P of h)if(t.value.includes(P.id)){if(u===De.CENTER){const O=p+(f-p)/2-c/2,L=d+(R-d)/2-r/2;P.top=P.top-O,P.left=P.left-L}if(u===De.TOP){const O=p-0;P.top=P.top-O}else if(u===De.VERTICAL){const O=p+(f-p)/2-c/2;P.top=P.top-O}else if(u===De.BOTTOM){const O=f-c;P.top=P.top-O}else if(u===De.LEFT){const O=d-0;P.left=P.left-O}else if(u===De.HORIZONTAL){const O=d+(R-d)/2-r/2;P.left=P.left-O}else if(u===De.RIGHT){const O=R-r;P.left=P.left-O}}e.updateSlide({elements:h}),a()}}},Id=e=>(Je("data-v-f5a86b3f"),e=e(),xe(),e),PX=["src"],NX=["src"],XX=["onMousedown"],TX=Id(()=>m("svg",{width:"16",height:"16",fill:"#fff",stroke:"#333"},[m("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)),VX=[TX],yX=["onMousedown"],LX=Id(()=>m("svg",{width:"16",height:"16",fill:"#fff",stroke:"#333"},[m("path",{"stroke-width":"0.3","shape-rendering":"crispEdges",d:"M 16 0 L 0 0 L 0 4 L 16 4 Z"})],-1)),bX=[LX],IX=q({__name:"ImageClipHandler",props:{src:{},clipPath:{},width:{},height:{},top:{},left:{},rotate:{},clipData:{}},emits:["clip"],setup(e,{emit:t}){const n=e,o=t,{canvasScale:l}=oe(Xe()),{ctrlOrShiftKeyActive:s}=oe(Mn()),a=_({top:"0",left:"0"}),i=_(!1),u=_(null),r=()=>{const[T,V]=n.clipData?n.clipData.range:[[0,0],[100,100]],I=(V[0]-T[0])/100,W=(V[1]-T[1])/100,F=T[0]/I,C=T[1]/W;return{widthScale:I,heightScale:W,left:F,top:C}},c=H(()=>{const{widthScale:T,heightScale:V,left:I,top:W}=r();return{left:-I,top:-W,width:100/T,height:100/V}}),d=H(()=>({top:c.value.top+"%",left:c.value.left+"%",width:c.value.width+"%",height:c.value.height+"%"})),R=_({top:0,left:0,width:0,height:0}),p=H(()=>{const{top:T,left:V,width:I,height:W}=R.value;return{top:T+"%",left:V+"%",width:I+"%",height:W+"%"}}),f=H(()=>{const T=c.value.width,V=c.value.height,{top:I,left:W,width:F,height:C}=R.value;return{left:-W*(100/F)+"%",top:-I*(100/C)+"%",width:T/F*100+"%",height:V/C*100+"%"}}),h=()=>{const{left:T,top:V}=r();R.value={left:T,top:V,width:100,height:100},a.value={top:-V+"%",left:-T+"%"}},P=()=>{if(i.value)return;if(!u.value){o("clip",null);return}const{left:T,top:V}=r(),I={left:(R.value.left-T)/100*n.width,top:(R.value.top-V)/100*n.height,width:(R.value.width-100)/100*n.width,height:(R.value.height-100)/100*n.height},W={range:u.value,position:I};o("clip",W)},O=T=>{T.key.toUpperCase()===Ye.ENTER&&P()};Ge(()=>{h(),document.addEventListener("keydown",O)}),mt(()=>{document.removeEventListener("keydown",O)});const L=()=>{const T={left:parseInt(f.value.left),top:parseInt(f.value.top),width:parseInt(f.value.width),height:parseInt(f.value.height)},V=100/T.width,I=100/T.height,W=[-T.left*V,-T.top*I],F=[V*100+W[0],I*100+W[1]];u.value=[W,F]},S=T=>{i.value=!0;let V=!0;const I=T.pageX,W=T.pageY,F=c.value,C={...R.value};document.onmousemove=Z=>{if(!V)return;const K=Z.pageX,U=Z.pageY,G=(K-I)/l.value,D=(U-W)/l.value,le=Math.sqrt(G*G+D*D),ae=Math.atan2(D,G)-n.rotate/180*Math.PI,Se=le*Math.cos(ae)/n.width*100,J=le*Math.sin(ae)/n.height*100;let B=C.left+Se,Ie=C.top+J;B<0?B=0:B+C.width>F.width&&(B=F.width-C.width),Ie<0?Ie=0:Ie+C.height>F.height&&(Ie=F.height-C.height),R.value={...R.value,left:B,top:Ie}},document.onmouseup=()=>{V=!1,document.onmousemove=null,document.onmouseup=null,L(),setTimeout(()=>{i.value=!1},0)}},X=(T,V)=>{i.value=!0;let I=!0;const W=50/n.width*100,F=50/n.height*100,C=T.pageX,Z=T.pageY,K=c.value,U={...R.value},G=R.value.width/R.value.height;document.onmousemove=D=>{if(!I)return;const le=D.pageX,Re=D.pageY,ae=(le-C)/l.value,Se=(Re-Z)/l.value,J=Math.sqrt(ae*ae+Se*Se),Ie=Math.atan2(Se,ae)-n.rotate/180*Math.PI;let ce=J*Math.cos(Ie)/n.width*100,z=J*Math.sin(Ie)/n.height*100;s.value&&((V===be.RIGHT_BOTTOM||V===be.LEFT_TOP)&&(z=ce/G),(V===be.LEFT_BOTTOM||V===be.RIGHT_TOP)&&(z=-ce/G));let ne,ge,w,$;V===be.LEFT_TOP?(U.left+ce<0&&(ce=-U.left),U.top+z<0&&(z=-U.top),U.width-ce<W&&(ce=U.width-W),U.height-z<F&&(z=U.height-F),w=U.width-ce,$=U.height-z,ne=U.left+ce,ge=U.top+z):V===be.RIGHT_TOP?(U.left+U.width+ce>K.width&&(ce=K.width-(U.left+U.width)),U.top+z<0&&(z=-U.top),U.width+ce<W&&(ce=W-U.width),U.height-z<F&&(z=U.height-F),w=U.width+ce,$=U.height-z,ne=U.left,ge=U.top+z):V===be.LEFT_BOTTOM?(U.left+ce<0&&(ce=-U.left),U.top+U.height+z>K.height&&(z=K.height-(U.top+U.height)),U.width-ce<W&&(ce=U.width-W),U.height+z<F&&(z=F-U.height),w=U.width-ce,$=U.height+z,ne=U.left+ce,ge=U.top):V===be.RIGHT_BOTTOM?(U.left+U.width+ce>K.width&&(ce=K.width-(U.left+U.width)),U.top+U.height+z>K.height&&(z=K.height-(U.top+U.height)),U.width+ce<W&&(ce=W-U.width),U.height+z<F&&(z=F-U.height),w=U.width+ce,$=U.height+z,ne=U.left,ge=U.top):V===be.TOP?(U.top+z<0&&(z=-U.top),U.height-z<F&&(z=U.height-F),w=U.width,$=U.height-z,ne=U.left,ge=U.top+z):V===be.BOTTOM?(U.top+U.height+z>K.height&&(z=K.height-(U.top+U.height)),U.height+z<F&&(z=F-U.height),w=U.width,$=U.height+z,ne=U.left,ge=U.top):V===be.LEFT?(U.left+ce<0&&(ce=-U.left),U.width-ce<W&&(ce=U.width-W),w=U.width-ce,$=U.height,ne=U.left+ce,ge=U.top):(U.left+U.width+ce>K.width&&(ce=K.width-(U.left+U.width)),U.width+ce<W&&(ce=W-U.width),$=U.height,w=U.width+ce,ne=U.left,ge=U.top),R.value={left:ne,top:ge,width:w,height:$}},document.onmouseup=()=>{I=!1,document.onmousemove=null,document.onmouseup=null,L(),setTimeout(()=>i.value=!1,0)}},M=H(()=>{const T="rotate-",V=n.rotate;return V>-22.5&&V<=22.5?T+0:V>22.5&&V<=67.5?T+45:V>67.5&&V<=112.5?T+90:V>112.5&&V<=157.5?T+135:V>157.5||V<=-157.5?T+0:V>-157.5&&V<=-112.5?T+45:V>-112.5&&V<=-67.5?T+90:V>-67.5&&V<=-22.5?T+135:T+0}),y=[be.LEFT_TOP,be.RIGHT_TOP,be.LEFT_BOTTOM,be.RIGHT_BOTTOM],Y=[be.TOP,be.BOTTOM,be.LEFT,be.RIGHT];return(T,V)=>{const I=ze("click-outside");return de((g(),b("div",{class:"image-clip-handler",style:ee(a.value)},[m("img",{class:"bottom-img",src:T.src,draggable:!1,alt:"",style:ee(d.value)},null,12,PX),m("div",{class:"top-image-content",style:ee({...p.value,clipPath:T.clipPath})},[m("img",{class:"top-img",src:T.src,draggable:!1,alt:"",style:ee(f.value)},null,12,NX)],4),m("div",{class:"operate",style:ee(p.value),onMousedown:V[0]||(V[0]=Fe(W=>S(W),["stop"]))},[(g(),b(ie,null,me(y,W=>m("div",{class:E(["clip-point",W,M.value]),key:W,onMousedown:Fe(F=>X(F,W),["stop"])},VX,42,XX)),64)),(g(),b(ie,null,me(Y,W=>m("div",{class:E(["clip-point",W,M.value]),key:W,onMousedown:Fe(F=>X(F,W),["stop"])},bX,42,yX)),64))],36)],4)),[[I,P]])}}}),YX=fe(IX,[["__scopeId","data-v-f5a86b3f"]]),WX=["src"],UX=q({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=Xe(),o=Ue(),{clipingImageElementId:l}=oe(n),s=H(()=>l.value===t.elementInfo.id),{addHistorySnapshot:a}=He(),i=H(()=>t.elementInfo.shadow),{shadowStyle:u}=Ys(i),r=H(()=>t.elementInfo.flipH),c=H(()=>t.elementInfo.flipV),{flipStyle:d}=Mc(r,c),R=H(()=>t.elementInfo),{clipShape:p,imgPosition:f}=Yp(R),h=H(()=>t.elementInfo.filters),{filter:P}=Wp(h),O=S=>{t.elementInfo.lock||(S.stopPropagation(),t.selectElement(S,t.elementInfo))},L=S=>{if(n.setClipingImageElementId(""),!S)return;const{range:X,position:M}=S,y=t.elementInfo.clip||{shape:"rect",range:[[0,0],[100,100]]},Y=t.elementInfo.left+M.left,T=t.elementInfo.top+M.top,V=t.elementInfo.width+M.width,I=t.elementInfo.height+M.height;let W=0,F=0;if(t.elementInfo.rotate){const Z=Y+V/2-(t.elementInfo.left+t.elementInfo.width/2),K=-(T+I/2-(t.elementInfo.top+t.elementInfo.height/2)),U=-t.elementInfo.rotate*Math.PI/180,G=Z*Math.cos(U)-K*Math.sin(U),D=Z*Math.sin(U)+K*Math.cos(U);W=G-Z,F=-(D-K)}const C={clip:{...y,range:X},left:Y+W,top:T+F,width:V,height:I};o.updateElement({id:t.elementInfo.id,props:C}),a()};return(S,X)=>{const M=ze("contextmenu");return g(),b("div",{class:E(["editable-element-image",{lock:S.elementInfo.lock}]),style:ee({top:S.elementInfo.top+"px",left:S.elementInfo.left+"px",width:S.elementInfo.width+"px",height:S.elementInfo.height+"px"})},[m("div",{class:"rotate-wrapper",style:ee({transform:`rotate(${S.elementInfo.rotate}deg)`})},[s.value?(g(),k(YX,{key:0,src:S.elementInfo.src,clipData:S.elementInfo.clip,width:S.elementInfo.width,height:S.elementInfo.height,top:S.elementInfo.top,left:S.elementInfo.left,rotate:S.elementInfo.rotate,clipPath:v(p).style,onClip:X[0]||(X[0]=y=>L(y))},null,8,["src","clipData","width","height","top","left","rotate","clipPath"])):de((g(),b("div",{key:1,class:"element-content",style:ee({filter:v(u)?`drop-shadow(${v(u)})`:"",transform:v(d)}),onMousedown:X[2]||(X[2]=y=>O(y)),onTouchstart:X[3]||(X[3]=y=>O(y))},[N(Up,{elementInfo:S.elementInfo},null,8,["elementInfo"]),m("div",{class:"image-content",style:ee({clipPath:v(p).style})},[m("img",{src:S.elementInfo.src,draggable:!1,style:ee({top:v(f).top,left:v(f).left,width:v(f).width,height:v(f).height,filter:v(P)}),onDragstart:X[1]||(X[1]=Fe(()=>{},["prevent"])),alt:""},null,44,WX),S.elementInfo.colorMask?(g(),b("div",{key:0,class:"color-mask",style:ee({backgroundColor:S.elementInfo.colorMask})},null,4)):j("",!0)],4)],36)),[[M,S.contextmenus]])],4)],6)}}}),QX=fe(UX,[["__scopeId","data-v-fa7e0876"]]),Qt=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},Xl=function(e){let t=e.assignedSlot||e.parentNode;return t&&t.nodeType==11?t.host:t};let Fa=null;const Un=function(e,t,n){let o=Fa||(Fa=document.createRange());return o.setEnd(e,n??e.nodeValue.length),o.setStart(e,t||0),o},FX=function(){Fa=null},Lo=function(e,t,n,o){return n&&(su(e,t,n,o,-1)||su(e,t,n,o,1))},ZX=/^(img|br|input|textarea|hr)$/i;function su(e,t,n,o,l){for(;;){if(e==n&&t==o)return!0;if(t==(l<0?0:Tn(e))){let s=e.parentNode;if(!s||s.nodeType!=1||Fl(e)||ZX.test(e.nodeName)||e.contentEditable=="false")return!1;t=Qt(e)+(l<0?0:1),e=s}else if(e.nodeType==1){if(e=e.childNodes[t+(l<0?-1:0)],e.contentEditable=="false")return!1;t=l<0?Tn(e):0}else return!1}}function Tn(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function AX(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=Tn(e)}else if(e.parentNode&&!Fl(e))t=Qt(e),e=e.parentNode;else return null}}function KX(e,t){for(;;){if(e.nodeType==3&&t<e.nodeValue.length)return e;if(e.nodeType==1&&t<e.childNodes.length){if(e.contentEditable=="false")return null;e=e.childNodes[t],t=0}else if(e.parentNode&&!Fl(e))t=Qt(e)+1,e=e.parentNode;else return null}}function _X(e,t,n){for(let o=t==0,l=t==Tn(e);o||l;){if(e==n)return!0;let s=Qt(e);if(e=e.parentNode,!e)return!1;o=o&&s==0,l=l&&s==Tn(e)}}function Fl(e){let t;for(let n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}const Hs=function(e){return e.focusNode&&Lo(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function Mo(e,t){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}function HX(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function CX(e,t,n){if(e.caretPositionFromPoint)try{let o=e.caretPositionFromPoint(t,n);if(o)return{node:o.offsetNode,offset:o.offset}}catch{}if(e.caretRangeFromPoint){let o=e.caretRangeFromPoint(t,n);if(o)return{node:o.startContainer,offset:o.startOffset}}}const Ln=typeof navigator<"u"?navigator:null,au=typeof document<"u"?document:null,po=Ln&&Ln.userAgent||"",Za=/Edge\/(\d+)/.exec(po),Yd=/MSIE \d/.exec(po),Aa=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(po),tn=!!(Yd||Aa||Za),no=Yd?document.documentMode:Aa?+Aa[1]:Za?+Za[1]:0,mn=!tn&&/gecko\/(\d+)/i.test(po);mn&&+(/Firefox\/(\d+)/.exec(po)||[0,0])[1];const Ka=!tn&&/Chrome\/(\d+)/.exec(po),_t=!!Ka,Wd=Ka?+Ka[1]:0,Dt=!tn&&!!Ln&&/Apple Computer/.test(Ln.vendor),qo=Dt&&(/Mobile\/\w+/.test(po)||!!Ln&&Ln.maxTouchPoints>2),rn=qo||(Ln?/Mac/.test(Ln.platform):!1),GX=Ln?/Win/.test(Ln.platform):!1,fn=/Android \d/.test(po),Zl=!!au&&"webkitFontSmoothing"in au.documentElement.style,EX=Zl?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function wX(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 Yn(e,t){return typeof e=="number"?e:e[t]}function kX(e){let t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,o=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*o}}function iu(e,t,n){let o=e.someProp("scrollThreshold")||0,l=e.someProp("scrollMargin")||5,s=e.dom.ownerDocument;for(let a=n||e.dom;a;a=Xl(a)){if(a.nodeType!=1)continue;let i=a,u=i==s.body,r=u?wX(s):kX(i),c=0,d=0;if(t.top<r.top+Yn(o,"top")?d=-(r.top-t.top+Yn(l,"top")):t.bottom>r.bottom-Yn(o,"bottom")&&(d=t.bottom-t.top>r.bottom-r.top?t.top+Yn(l,"top")-r.top:t.bottom-r.bottom+Yn(l,"bottom")),t.left<r.left+Yn(o,"left")?c=-(r.left-t.left+Yn(l,"left")):t.right>r.right-Yn(o,"right")&&(c=t.right-r.right+Yn(l,"right")),c||d)if(u)s.defaultView.scrollBy(c,d);else{let R=i.scrollLeft,p=i.scrollTop;d&&(i.scrollTop+=d),c&&(i.scrollLeft+=c);let f=i.scrollLeft-R,h=i.scrollTop-p;t={left:t.left-f,top:t.top-h,right:t.right-f,bottom:t.bottom-h}}if(u||/^(fixed|sticky)$/.test(getComputedStyle(a).position))break}}function JX(e){let t=e.dom.getBoundingClientRect(),n=Math.max(0,t.top),o,l;for(let s=(t.left+t.right)/2,a=n+1;a<Math.min(innerHeight,t.bottom);a+=5){let i=e.root.elementFromPoint(s,a);if(!i||i==e.dom||!e.dom.contains(i))continue;let u=i.getBoundingClientRect();if(u.top>=n-20){o=i,l=u.top;break}}return{refDOM:o,refTop:l,stack:Ud(e.dom)}}function Ud(e){let t=[],n=e.ownerDocument;for(let o=e;o&&(t.push({dom:o,top:o.scrollTop,left:o.scrollLeft}),e!=n);o=Xl(o));return t}function xX({refDOM:e,refTop:t,stack:n}){let o=e?e.getBoundingClientRect().top:0;Qd(n,o==0?0:o-t)}function Qd(e,t){for(let n=0;n<e.length;n++){let{dom:o,top:l,left:s}=e[n];o.scrollTop!=l+t&&(o.scrollTop=l+t),o.scrollLeft!=s&&(o.scrollLeft=s)}}let _o=null;function $X(e){if(e.setActive)return e.setActive();if(_o)return e.focus(_o);let t=Ud(e);e.focus(_o==null?{get preventScroll(){return _o={preventScroll:!0},!0}}:void 0),_o||(_o=!1,Qd(t,0))}function Fd(e,t){let n,o=2e8,l,s=0,a=t.top,i=t.top,u,r;for(let c=e.firstChild,d=0;c;c=c.nextSibling,d++){let R;if(c.nodeType==1)R=c.getClientRects();else if(c.nodeType==3)R=Un(c).getClientRects();else continue;for(let p=0;p<R.length;p++){let f=R[p];if(f.top<=a&&f.bottom>=i){a=Math.max(f.bottom,a),i=Math.min(f.top,i);let h=f.left>t.left?f.left-t.left:f.right<t.left?t.left-f.right:0;if(h<o){n=c,o=h,l=h&&n.nodeType==3?{left:f.right<t.left?f.right:f.left,top:t.top}:t,c.nodeType==1&&h&&(s=d+(t.left>=(f.left+f.right)/2?1:0));continue}}else f.top>t.top&&!u&&f.left<=t.left&&f.right>=t.left&&(u=c,r={left:Math.max(f.left,Math.min(f.right,t.left)),top:f.top});!n&&(t.left>=f.right&&t.top>=f.top||t.left>=f.left&&t.top>=f.bottom)&&(s=d+1)}}return!n&&u&&(n=u,l=r,o=0),n&&n.nodeType==3?DX(n,l):!n||o&&n.nodeType==1?{node:e,offset:s}:Fd(n,l)}function DX(e,t){let n=e.nodeValue.length,o=document.createRange();for(let l=0;l<n;l++){o.setEnd(e,l+1),o.setStart(e,l);let s=$n(o,1);if(s.top!=s.bottom&&Vi(t,s))return{node:e,offset:l+(t.left>=(s.left+s.right)/2?1:0)}}return{node:e,offset:0}}function Vi(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function BX(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}function zX(e,t,n){let{node:o,offset:l}=Fd(t,n),s=-1;if(o.nodeType==1&&!o.firstChild){let a=o.getBoundingClientRect();s=a.left!=a.right&&n.left>(a.left+a.right)/2?1:-1}return e.docView.posFromDOM(o,l,s)}function jX(e,t,n,o){let l=-1;for(let s=t,a=!1;s!=e.dom;){let i=e.docView.nearestDesc(s,!0);if(!i)return null;if(i.dom.nodeType==1&&(i.node.isBlock&&i.parent||!i.contentDOM)){let u=i.dom.getBoundingClientRect();if(i.node.isBlock&&i.parent&&(!a&&u.left>o.left||u.top>o.top?l=i.posBefore:(!a&&u.right<o.left||u.bottom<o.top)&&(l=i.posAfter),a=!0),!i.contentDOM&&l<0&&!i.node.isText)return(i.node.isBlock?o.top<(u.top+u.bottom)/2:o.left<(u.left+u.right)/2)?i.posBefore:i.posAfter}s=i.dom.parentNode}return l>-1?l:e.docView.posFromDOM(t,n,-1)}function Zd(e,t,n){let o=e.childNodes.length;if(o&&n.top<n.bottom)for(let l=Math.max(0,Math.min(o-1,Math.floor(o*(t.top-n.top)/(n.bottom-n.top))-2)),s=l;;){let a=e.childNodes[s];if(a.nodeType==1){let i=a.getClientRects();for(let u=0;u<i.length;u++){let r=i[u];if(Vi(t,r))return Zd(a,t,r)}}if((s=(s+1)%o)==l)break}return e}function qX(e,t){let n=e.dom.ownerDocument,o,l=0,s=CX(n,t.left,t.top);s&&({node:o,offset:l}=s);let a=(e.root.elementFromPoint?e.root:n).elementFromPoint(t.left,t.top),i;if(!a||!e.dom.contains(a.nodeType!=1?a.parentNode:a)){let r=e.dom.getBoundingClientRect();if(!Vi(t,r)||(a=Zd(e.dom,t,r),!a))return null}if(Dt)for(let r=a;o&&r;r=Xl(r))r.draggable&&(o=void 0);if(a=BX(a,t),o){if(mn&&o.nodeType==1&&(l=Math.min(l,o.childNodes.length),l<o.childNodes.length)){let c=o.childNodes[l],d;c.nodeName=="IMG"&&(d=c.getBoundingClientRect()).right<=t.left&&d.bottom>t.top&&l++}let r;Zl&&l&&o.nodeType==1&&(r=o.childNodes[l-1]).nodeType==1&&r.contentEditable=="false"&&r.getBoundingClientRect().top>=t.top&&l--,o==e.dom&&l==o.childNodes.length-1&&o.lastChild.nodeType==1&&t.top>o.lastChild.getBoundingClientRect().bottom?i=e.state.doc.content.size:(l==0||o.nodeType!=1||o.childNodes[l-1].nodeName!="BR")&&(i=jX(e,o,l,t))}i==null&&(i=zX(e,a,t));let u=e.docView.nearestDesc(a,!0);return{pos:i,inside:u?u.posAtStart-u.border:-1}}function ru(e){return e.top<e.bottom||e.left<e.right}function $n(e,t){let n=e.getClientRects();if(n.length){let o=n[t<0?0:n.length-1];if(ru(o))return o}return Array.prototype.find.call(n,ru)||e.getBoundingClientRect()}const e1=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function Ad(e,t,n){let{node:o,offset:l,atom:s}=e.docView.domFromPos(t,n<0?-1:1),a=Zl||mn;if(o.nodeType==3)if(a&&(e1.test(o.nodeValue)||(n<0?!l:l==o.nodeValue.length))){let u=$n(Un(o,l,l),n);if(mn&&l&&/\s/.test(o.nodeValue[l-1])&&l<o.nodeValue.length){let r=$n(Un(o,l-1,l-1),-1);if(r.top==u.top){let c=$n(Un(o,l,l+1),-1);if(c.top!=u.top)return pl(c,c.left<r.left)}}return u}else{let u=l,r=l,c=n<0?1:-1;return n<0&&!l?(r++,c=-1):n>=0&&l==o.nodeValue.length?(u--,c=1):n<0?u--:r++,pl($n(Un(o,u,r),c),c<0)}if(!e.state.doc.resolve(t-(s||0)).parent.inlineContent){if(s==null&&l&&(n<0||l==Tn(o))){let u=o.childNodes[l-1];if(u.nodeType==1)return ra(u.getBoundingClientRect(),!1)}if(s==null&&l<Tn(o)){let u=o.childNodes[l];if(u.nodeType==1)return ra(u.getBoundingClientRect(),!0)}return ra(o.getBoundingClientRect(),n>=0)}if(s==null&&l&&(n<0||l==Tn(o))){let u=o.childNodes[l-1],r=u.nodeType==3?Un(u,Tn(u)-(a?0:1)):u.nodeType==1&&(u.nodeName!="BR"||!u.nextSibling)?u:null;if(r)return pl($n(r,1),!1)}if(s==null&&l<Tn(o)){let u=o.childNodes[l];for(;u.pmViewDesc&&u.pmViewDesc.ignoreForCoords;)u=u.nextSibling;let r=u?u.nodeType==3?Un(u,0,a?0:1):u.nodeType==1?u:null:null;if(r)return pl($n(r,-1),!0)}return pl($n(o.nodeType==3?Un(o):o,-n),n>=0)}function pl(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 ra(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 Kd(e,t,n){let o=e.state,l=e.root.activeElement;o!=t&&e.updateState(t),l!=e.dom&&e.focus();try{return n()}finally{o!=t&&e.updateState(o),l!=e.dom&&l&&l.focus()}}function t1(e,t,n){let o=t.selection,l=n=="up"?o.$from:o.$to;return Kd(e,t,()=>{let{node:s}=e.docView.domFromPos(l.pos,n=="up"?-1:1);for(;;){let i=e.docView.nearestDesc(s,!0);if(!i)break;if(i.node.isBlock){s=i.contentDOM||i.dom;break}s=i.dom.parentNode}let a=Ad(e,l.pos,1);for(let i=s.firstChild;i;i=i.nextSibling){let u;if(i.nodeType==1)u=i.getClientRects();else if(i.nodeType==3)u=Un(i,0,i.nodeValue.length).getClientRects();else continue;for(let r=0;r<u.length;r++){let c=u[r];if(c.bottom>c.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 n1=/[\u0590-\u08ac]/;function o1(e,t,n){let{$head:o}=t.selection;if(!o.parent.isTextblock)return!1;let l=o.parentOffset,s=!l,a=l==o.parent.content.size,i=e.domSelection();return!n1.test(o.parent.textContent)||!i.modify?n=="left"||n=="backward"?s:a:Kd(e,t,()=>{let{focusNode:u,focusOffset:r,anchorNode:c,anchorOffset:d}=e.domSelectionRange(),R=i.caretBidiLevel;i.modify("move",n,"character");let p=o.depth?e.docView.domAfterPos(o.before()):e.dom,{focusNode:f,focusOffset:h}=e.domSelectionRange(),P=f&&!p.contains(f.nodeType==1?f:f.parentNode)||u==f&&r==h;try{i.collapse(c,d),u&&(u!=c||r!=d)&&i.extend&&i.extend(u,r)}catch{}return R!=null&&(i.caretBidiLevel=R),P})}let uu=null,cu=null,du=!1;function l1(e,t,n){return uu==t&&cu==n?du:(uu=t,cu=n,du=n=="up"||n=="down"?t1(e,t,n):o1(e,t,n))}const un=0,Ru=1,So=2,bn=3;class Al{constructor(t,n,o,l){this.parent=t,this.children=n,this.dom=o,this.contentDOM=l,this.dirty=un,o.pmViewDesc=this}matchesWidget(t){return!1}matchesMark(t){return!1}matchesNode(t,n,o){return!1}matchesHack(t){return!1}parseRule(){return null}stopEvent(t){return!1}get size(){let t=0;for(let n=0;n<this.children.length;n++)t+=this.children[n].size;return t}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let t=0;t<this.children.length;t++)this.children[t].destroy()}posBeforeChild(t){for(let n=0,o=this.posAtStart;;n++){let l=this.children[n];if(l==t)return o;o+=l.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(t,n,o){if(this.contentDOM&&this.contentDOM.contains(t.nodeType==1?t:t.parentNode))if(o<0){let s,a;if(t==this.contentDOM)s=t.childNodes[n-1];else{for(;t.parentNode!=this.contentDOM;)t=t.parentNode;s=t.previousSibling}for(;s&&!((a=s.pmViewDesc)&&a.parent==this);)s=s.previousSibling;return s?this.posBeforeChild(a)+a.size:this.posAtStart}else{let s,a;if(t==this.contentDOM)s=t.childNodes[n];else{for(;t.parentNode!=this.contentDOM;)t=t.parentNode;s=t.nextSibling}for(;s&&!((a=s.pmViewDesc)&&a.parent==this);)s=s.nextSibling;return s?this.posBeforeChild(a):this.posAtEnd}let l;if(t==this.dom&&this.contentDOM)l=n>Qt(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))l=t.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let s=t;;s=s.parentNode){if(s==this.dom){l=!1;break}if(s.previousSibling)break}if(l==null&&n==t.childNodes.length)for(let s=t;;s=s.parentNode){if(s==this.dom){l=!0;break}if(s.nextSibling)break}}return l??o>0?this.posAtEnd:this.posAtStart}nearestDesc(t,n=!1){for(let o=!0,l=t;l;l=l.parentNode){let s=this.getDesc(l),a;if(s&&(!n||s.node))if(o&&(a=s.nodeDOM)&&!(a.nodeType==1?a.contains(t.nodeType==1?t:t.parentNode):a==t))o=!1;else return s}}getDesc(t){let n=t.pmViewDesc;for(let o=n;o;o=o.parent)if(o==this)return n}posFromDOM(t,n,o){for(let l=t;l;l=l.parentNode){let s=this.getDesc(l);if(s)return s.localPosFromDOM(t,n,o)}return-1}descAt(t){for(let n=0,o=0;n<this.children.length;n++){let l=this.children[n],s=o+l.size;if(o==t&&s!=o){for(;!l.border&&l.children.length;)l=l.children[0];return l}if(t<s)return l.descAt(t-o-l.border);o=s}}domFromPos(t,n){if(!this.contentDOM)return{node:this.dom,offset:0,atom:t+1};let o=0,l=0;for(let s=0;o<this.children.length;o++){let a=this.children[o],i=s+a.size;if(i>t||a instanceof Hd){l=t-s;break}s=i}if(l)return this.children[o].domFromPos(l-this.children[o].border,n);for(let s;o&&!(s=this.children[o-1]).size&&s instanceof _d&&s.side>=0;o--);if(n<=0){let s,a=!0;for(;s=o?this.children[o-1]:null,!(!s||s.dom.parentNode==this.contentDOM);o--,a=!1);return s&&n&&a&&!s.border&&!s.domAtom?s.domFromPos(s.size,n):{node:this.contentDOM,offset:s?Qt(s.dom)+1:0}}else{let s,a=!0;for(;s=o<this.children.length?this.children[o]:null,!(!s||s.dom.parentNode==this.contentDOM);o++,a=!1);return s&&a&&!s.border&&!s.domAtom?s.domFromPos(0,n):{node:this.contentDOM,offset:s?Qt(s.dom):this.contentDOM.childNodes.length}}}parseRange(t,n,o=0){if(this.children.length==0)return{node:this.contentDOM,from:t,to:n,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let l=-1,s=-1;for(let a=o,i=0;;i++){let u=this.children[i],r=a+u.size;if(l==-1&&t<=r){let c=a+u.border;if(t>=c&&n<=r-u.border&&u.node&&u.contentDOM&&this.contentDOM.contains(u.contentDOM))return u.parseRange(t,n,c);t=a;for(let d=i;d>0;d--){let R=this.children[d-1];if(R.size&&R.dom.parentNode==this.contentDOM&&!R.emptyChildAt(1)){l=Qt(R.dom)+1;break}t-=R.size}l==-1&&(l=0)}if(l>-1&&(r>n||i==this.children.length-1)){n=r;for(let c=i+1;c<this.children.length;c++){let d=this.children[c];if(d.size&&d.dom.parentNode==this.contentDOM&&!d.emptyChildAt(-1)){s=Qt(d.dom);break}n+=d.size}s==-1&&(s=this.contentDOM.childNodes.length);break}a=r}return{node:this.contentDOM,from:t,to:n,fromOffset:l,toOffset:s}}emptyChildAt(t){if(this.border||!this.contentDOM||!this.children.length)return!1;let n=this.children[t<0?0:this.children.length-1];return n.size==0||n.emptyChildAt(t)}domAfterPos(t){let{node:n,offset:o}=this.domFromPos(t,0);if(n.nodeType!=1||o==n.childNodes.length)throw new RangeError("No node after pos "+t);return n.childNodes[o]}setSelection(t,n,o,l=!1){let s=Math.min(t,n),a=Math.max(t,n);for(let R=0,p=0;R<this.children.length;R++){let f=this.children[R],h=p+f.size;if(s>p&&a<h)return f.setSelection(t-p-f.border,n-p-f.border,o,l);p=h}let i=this.domFromPos(t,t?-1:1),u=n==t?i:this.domFromPos(n,n?-1:1),r=o.getSelection(),c=!1;if((mn||Dt)&&t==n){let{node:R,offset:p}=i;if(R.nodeType==3){if(c=!!(p&&R.nodeValue[p-1]==`
- `),c&&p==R.nodeValue.length)for(let f=R,h;f;f=f.parentNode){if(h=f.nextSibling){h.nodeName=="BR"&&(i=u={node:h.parentNode,offset:Qt(h)+1});break}let P=f.pmViewDesc;if(P&&P.node&&P.node.isBlock)break}}else{let f=R.childNodes[p-1];c=f&&(f.nodeName=="BR"||f.contentEditable=="false")}}if(mn&&r.focusNode&&r.focusNode!=u.node&&r.focusNode.nodeType==1){let R=r.focusNode.childNodes[r.focusOffset];R&&R.contentEditable=="false"&&(l=!0)}if(!(l||c&&Dt)&&Lo(i.node,i.offset,r.anchorNode,r.anchorOffset)&&Lo(u.node,u.offset,r.focusNode,r.focusOffset))return;let d=!1;if((r.extend||t==n)&&!c){r.collapse(i.node,i.offset);try{t!=n&&r.extend(u.node,u.offset),d=!0}catch{}}if(!d){if(t>n){let p=i;i=u,u=p}let R=document.createRange();R.setEnd(u.node,u.offset),R.setStart(i.node,i.offset),r.removeAllRanges(),r.addRange(R)}}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 o=0,l=0;l<this.children.length;l++){let s=this.children[l],a=o+s.size;if(o==a?t<=a&&n>=o:t<a&&n>o){let i=o+s.border,u=a-s.border;if(t>=i&&n<=u){this.dirty=t==o||n==a?So:Ru,t==i&&n==u&&(s.contentLost||s.dom.parentNode!=this.contentDOM)?s.dirty=bn:s.markDirty(t-i,n-i);return}else s.dirty=s.dom==s.contentDOM&&s.dom.parentNode==this.contentDOM&&!s.children.length?So:bn}o=a}this.dirty=So}markParentsDirty(){let t=1;for(let n=this.parent;n;n=n.parent,t++){let o=t==1?So:Ru;n.dirty<o&&(n.dirty=o)}}get domAtom(){return!1}get ignoreForCoords(){return!1}isText(t){return!1}}class _d extends Al{constructor(t,n,o,l){let s,a=n.type.toDOM;if(typeof a=="function"&&(a=a(o,()=>{if(!s)return l;if(s.parent)return s.parent.posBeforeChild(s)})),!n.type.spec.raw){if(a.nodeType!=1){let i=document.createElement("span");i.appendChild(a),a=i}a.contentEditable="false",a.classList.add("ProseMirror-widget")}super(t,[],a,null),this.widget=n,this.widget=n,s=this}matchesWidget(t){return this.dirty==un&&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 s1 extends Al{constructor(t,n,o,l){super(t,[],n,null),this.textDOM=o,this.text=l}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 bo extends Al{constructor(t,n,o,l){super(t,[],o,l),this.mark=n}static create(t,n,o,l){let s=l.nodeViews[n.type.name],a=s&&s(n,l,o);return(!a||!a.dom)&&(a=Ls.renderSpec(document,n.type.spec.toDOM(n,o),null,n.attrs)),new bo(t,n,a.dom,a.contentDOM||a.dom)}parseRule(){return this.dirty&bn||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(t){return this.dirty!=bn&&this.mark.eq(t)}markDirty(t,n){if(super.markDirty(t,n),this.dirty!=un){let o=this.parent;for(;!o.node;)o=o.parent;o.dirty<this.dirty&&(o.dirty=this.dirty),this.dirty=un}}slice(t,n,o){let l=bo.create(this.parent,this.mark,!0,o),s=this.children,a=this.size;n<a&&(s=Ca(s,n,a,o)),t>0&&(s=Ca(s,0,t,o));for(let i=0;i<s.length;i++)s[i].parent=l;return l.children=s,l}}class oo extends Al{constructor(t,n,o,l,s,a,i,u,r){super(t,[],s,a),this.node=n,this.outerDeco=o,this.innerDeco=l,this.nodeDOM=i}static create(t,n,o,l,s,a){let i=s.nodeViews[n.type.name],u,r=i&&i(n,s,()=>{if(!u)return a;if(u.parent)return u.parent.posBeforeChild(u)},o,l),c=r&&r.dom,d=r&&r.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:d}=Ls.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!d&&!n.isText&&c.nodeName!="BR"&&(c.hasAttribute("contenteditable")||(c.contentEditable="false"),n.type.spec.draggable&&(c.draggable=!0));let R=c;return c=Ed(c,o,n),r?u=new a1(t,n,o,l,c,d||null,R,r,s,a+1):n.isText?new Cs(t,n,o,l,c,R,s):new oo(t,n,o,l,c,d||null,R,s,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 o=this.children[n];if(this.dom.contains(o.dom.parentNode)){t.contentElement=o.dom.parentNode;break}}t.contentElement||(t.getContent=()=>ot.empty)}return t}matchesNode(t,n,o){return this.dirty==un&&t.eq(this.node)&&Ha(n,this.outerDeco)&&o.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(t,n){let o=this.node.inlineContent,l=n,s=t.composing?this.localCompositionInfo(t,n):null,a=s&&s.pos>-1?s:null,i=s&&s.pos<0,u=new r1(this,a&&a.node,t);d1(this.node,this.innerDeco,(r,c,d)=>{r.spec.marks?u.syncToMarks(r.spec.marks,o,t):r.type.side>=0&&!d&&u.syncToMarks(c==this.node.childCount?qf.none:this.node.child(c).marks,o,t),u.placeWidget(r,t,l)},(r,c,d,R)=>{u.syncToMarks(r.marks,o,t);let p;u.findNodeMatch(r,c,d,R)||i&&t.state.selection.from>l&&t.state.selection.to<l+r.nodeSize&&(p=u.findIndexWithChild(s.node))>-1&&u.updateNodeAt(r,c,d,p,t)||u.updateNextNode(r,c,d,t,R,l)||u.addNode(r,c,d,t,l),l+=r.nodeSize}),u.syncToMarks([],o,t),this.node.isTextblock&&u.addTextblockHacks(),u.destroyRest(),(u.changed||this.dirty==So)&&(a&&this.protectLocalComposition(t,a),Cd(this.contentDOM,this.children,t),qo&&R1(this.dom))}localCompositionInfo(t,n){let{from:o,to:l}=t.state.selection;if(!(t.state.selection instanceof Zt)||o<n||l>n+this.node.content.size)return null;let s=t.input.compositionNode;if(!s||!this.dom.contains(s.parentNode))return null;if(this.node.inlineContent){let a=s.nodeValue,i=f1(this.node.content,a,o-n,l-n);return i<0?null:{node:s,pos:i,text:a}}else return{node:s,pos:-1,text:""}}protectLocalComposition(t,{node:n,pos:o,text:l}){if(this.getDesc(n))return;let s=n;for(;s.parentNode!=this.contentDOM;s=s.parentNode){for(;s.previousSibling;)s.parentNode.removeChild(s.previousSibling);for(;s.nextSibling;)s.parentNode.removeChild(s.nextSibling);s.pmViewDesc&&(s.pmViewDesc=void 0)}let a=new s1(this,s,n,l);t.input.compositionNodes.push(a),this.children=Ca(this.children,o,o+l.length,t,a)}update(t,n,o,l){return this.dirty==bn||!t.sameMarkup(this.node)?!1:(this.updateInner(t,n,o,l),!0)}updateInner(t,n,o,l){this.updateOuterDeco(n),this.node=t,this.innerDeco=o,this.contentDOM&&this.updateChildren(l,this.posAtStart),this.dirty=un}updateOuterDeco(t){if(Ha(t,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,o=this.dom;this.dom=Gd(this.dom,this.nodeDOM,_a(this.outerDeco,this.node,n),_a(t,this.node,n)),this.dom!=o&&(o.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 fu(e,t,n,o,l){Ed(o,t,e);let s=new oo(void 0,e,t,n,o,o,o,l,0);return s.contentDOM&&s.updateChildren(l,0),s}class Cs extends oo{constructor(t,n,o,l,s,a,i){super(t,n,o,l,s,null,a,i,0)}parseRule(){let t=this.nodeDOM.parentNode;for(;t&&t!=this.dom&&!t.pmIsDeco;)t=t.parentNode;return{skip:t||!0}}update(t,n,o,l){return this.dirty==bn||this.dirty!=un&&!this.inParent()||!t.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=un||t.text!=this.node.text)&&t.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=t.text,l.trackWrites==this.nodeDOM&&(l.trackWrites=null)),this.node=t,this.dirty=un,!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,o){return t==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(t,n,o)}ignoreMutation(t){return t.type!="characterData"&&t.type!="selection"}slice(t,n,o){let l=this.node.cut(t,n),s=document.createTextNode(l.text);return new Cs(this.parent,l,this.outerDeco,this.innerDeco,s,s,o)}markDirty(t,n){super.markDirty(t,n),this.dom!=this.nodeDOM&&(t==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=bn)}get domAtom(){return!1}isText(t){return this.node.text==t}}class Hd extends Al{parseRule(){return{ignore:!0}}matchesHack(t){return this.dirty==un&&this.dom.nodeName==t}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class a1 extends oo{constructor(t,n,o,l,s,a,i,u,r,c){super(t,n,o,l,s,a,i,r,c),this.spec=u}update(t,n,o,l){if(this.dirty==bn)return!1;if(this.spec.update){let s=this.spec.update(t,n,o);return s&&this.updateInner(t,n,o,l),s}else return!this.contentDOM&&!t.isLeaf?!1:super.update(t,n,o,l)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(t,n,o,l){this.spec.setSelection?this.spec.setSelection(t,n,o):super.setSelection(t,n,o,l)}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 Cd(e,t,n){let o=e.firstChild,l=!1;for(let s=0;s<t.length;s++){let a=t[s],i=a.dom;if(i.parentNode==e){for(;i!=o;)o=pu(o),l=!0;o=o.nextSibling}else l=!0,e.insertBefore(i,o);if(a instanceof bo){let u=o?o.previousSibling:e.lastChild;Cd(a.contentDOM,a.children,n),o=u?u.nextSibling:e.firstChild}}for(;o;)o=pu(o),l=!0;l&&n.trackWrites==e&&(n.trackWrites=null)}const gl=function(e){e&&(this.nodeName=e)};gl.prototype=Object.create(null);const Oo=[new gl];function _a(e,t,n){if(e.length==0)return Oo;let o=n?Oo[0]:new gl,l=[o];for(let s=0;s<e.length;s++){let a=e[s].type.attrs;if(a){a.nodeName&&l.push(o=new gl(a.nodeName));for(let i in a){let u=a[i];u!=null&&(n&&l.length==1&&l.push(o=new gl(t.isInline?"span":"div")),i=="class"?o.class=(o.class?o.class+" ":"")+u:i=="style"?o.style=(o.style?o.style+";":"")+u:i!="nodeName"&&(o[i]=u))}}}return l}function Gd(e,t,n,o){if(n==Oo&&o==Oo)return t;let l=t;for(let s=0;s<o.length;s++){let a=o[s],i=n[s];if(s){let u;i&&i.nodeName==a.nodeName&&l!=e&&(u=l.parentNode)&&u.nodeName.toLowerCase()==a.nodeName||(u=document.createElement(a.nodeName),u.pmIsDeco=!0,u.appendChild(l),i=Oo[0]),l=u}i1(l,i||Oo[0],a)}return l}function i1(e,t,n){for(let o in t)o!="class"&&o!="style"&&o!="nodeName"&&!(o in n)&&e.removeAttribute(o);for(let o in n)o!="class"&&o!="style"&&o!="nodeName"&&n[o]!=t[o]&&e.setAttribute(o,n[o]);if(t.class!=n.class){let o=t.class?t.class.split(" ").filter(Boolean):[],l=n.class?n.class.split(" ").filter(Boolean):[];for(let s=0;s<o.length;s++)l.indexOf(o[s])==-1&&e.classList.remove(o[s]);for(let s=0;s<l.length;s++)o.indexOf(l[s])==-1&&e.classList.add(l[s]);e.classList.length==0&&e.removeAttribute("class")}if(t.style!=n.style){if(t.style){let o=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,l;for(;l=o.exec(t.style);)e.style.removeProperty(l[1])}n.style&&(e.style.cssText+=n.style)}}function Ed(e,t,n){return Gd(e,e,Oo,_a(t,n,e.nodeType!=1))}function Ha(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].type.eq(t[n].type))return!1;return!0}function pu(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}class r1{constructor(t,n,o){this.lock=n,this.view=o,this.index=0,this.stack=[],this.changed=!1,this.top=t,this.preMatch=u1(t.node.content,t)}destroyBetween(t,n){if(t!=n){for(let o=t;o<n;o++)this.top.children[o].destroy();this.top.children.splice(t,n-t),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(t,n,o){let l=0,s=this.stack.length>>1,a=Math.min(s,t.length);for(;l<a&&(l==s-1?this.top:this.stack[l+1<<1]).matchesMark(t[l])&&t[l].type.spec.spanning!==!1;)l++;for(;l<s;)this.destroyRest(),this.top.dirty=un,this.index=this.stack.pop(),this.top=this.stack.pop(),s--;for(;s<t.length;){this.stack.push(this.top,this.index+1);let i=-1;for(let u=this.index;u<Math.min(this.index+3,this.top.children.length);u++){let r=this.top.children[u];if(r.matchesMark(t[s])&&!this.isLocked(r.dom)){i=u;break}}if(i>-1)i>this.index&&(this.changed=!0,this.destroyBetween(this.index,i)),this.top=this.top.children[this.index];else{let u=bo.create(this.top,t[s],n,o);this.top.children.splice(this.index,0,u),this.top=u,this.changed=!0}this.index=0,s++}}findNodeMatch(t,n,o,l){let s=-1,a;if(l>=this.preMatch.index&&(a=this.preMatch.matches[l-this.preMatch.index]).parent==this.top&&a.matchesNode(t,n,o))s=this.top.children.indexOf(a,this.index);else for(let i=this.index,u=Math.min(this.top.children.length,i+5);i<u;i++){let r=this.top.children[i];if(r.matchesNode(t,n,o)&&!this.preMatch.matched.has(r)){s=i;break}}return s<0?!1:(this.destroyBetween(this.index,s),this.index++,!0)}updateNodeAt(t,n,o,l,s){let a=this.top.children[l];return a.dirty==bn&&a.dom==a.contentDOM&&(a.dirty=So),a.update(t,n,o,s)?(this.destroyBetween(this.index,l),this.index++,!0):!1}findIndexWithChild(t){for(;;){let n=t.parentNode;if(!n)return-1;if(n==this.top.contentDOM){let o=t.pmViewDesc;if(o){for(let l=this.index;l<this.top.children.length;l++)if(this.top.children[l]==o)return l}return-1}t=n}}updateNextNode(t,n,o,l,s,a){for(let i=this.index;i<this.top.children.length;i++){let u=this.top.children[i];if(u instanceof oo){let r=this.preMatch.matched.get(u);if(r!=null&&r!=s)return!1;let c=u.dom,d,R=this.isLocked(c)&&!(t.isText&&u.node&&u.node.isText&&u.nodeDOM.nodeValue==t.text&&u.dirty!=bn&&Ha(n,u.outerDeco));if(!R&&u.update(t,n,o,l))return this.destroyBetween(this.index,i),u.dom!=c&&(this.changed=!0),this.index++,!0;if(!R&&(d=this.recreateWrapper(u,t,n,o,l,a)))return this.top.children[this.index]=d,d.contentDOM&&(d.dirty=So,d.updateChildren(l,a+1),d.dirty=un),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(t,n,o,l,s,a){if(t.dirty||n.isAtom||!t.children.length||!t.node.content.eq(n.content))return null;let i=oo.create(this.top,n,o,l,s,a);if(i.contentDOM){i.children=t.children,t.children=[];for(let u of i.children)u.parent=i}return t.destroy(),i}addNode(t,n,o,l,s){let a=oo.create(this.top,t,n,o,l,s);a.contentDOM&&a.updateChildren(l,s+1),this.top.children.splice(this.index++,0,a),this.changed=!0}placeWidget(t,n,o){let l=this.index<this.top.children.length?this.top.children[this.index]:null;if(l&&l.matchesWidget(t)&&(t==l.widget||!l.widget.type.toDOM.parentNode))this.index++;else{let s=new _d(this.top,t,n,o);this.top.children.splice(this.index++,0,s),this.changed=!0}}addTextblockHacks(){let t=this.top.children[this.index-1],n=this.top;for(;t instanceof bo;)n=t,t=n.children[n.children.length-1];(!t||!(t instanceof Cs)||/\n$/.test(t.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(t.node.text))&&((Dt||_t)&&t&&t.dom.contentEditable=="false"&&this.addHackNode("IMG",n),this.addHackNode("BR",this.top))}addHackNode(t,n){if(n==this.top&&this.index<n.children.length&&n.children[this.index].matchesHack(t))this.index++;else{let o=document.createElement(t);t=="IMG"&&(o.className="ProseMirror-separator",o.alt=""),t=="BR"&&(o.className="ProseMirror-trailingBreak");let l=new Hd(this.top,[],o,null);n!=this.top?n.children.push(l):n.children.splice(this.index++,0,l),this.changed=!0}}isLocked(t){return this.lock&&(t==this.lock||t.nodeType==1&&t.contains(this.lock.parentNode))}}function u1(e,t){let n=t,o=n.children.length,l=e.childCount,s=new Map,a=[];e:for(;l>0;){let i;for(;;)if(o){let r=n.children[o-1];if(r instanceof bo)n=r,o=r.children.length;else{i=r,o--;break}}else{if(n==t)break e;o=n.parent.children.indexOf(n),n=n.parent}let u=i.node;if(u){if(u!=e.child(l-1))break;--l,s.set(i,l),a.push(i)}}return{index:l,matched:s,matches:a.reverse()}}function c1(e,t){return e.type.side-t.type.side}function d1(e,t,n,o){let l=t.locals(e),s=0;if(l.length==0){for(let r=0;r<e.childCount;r++){let c=e.child(r);o(c,l,t.forChild(s,c),r),s+=c.nodeSize}return}let a=0,i=[],u=null;for(let r=0;;){let c,d;for(;a<l.length&&l[a].to==s;){let P=l[a++];P.widget&&(c?(d||(d=[c])).push(P):c=P)}if(c)if(d){d.sort(c1);for(let P=0;P<d.length;P++)n(d[P],r,!!u)}else n(c,r,!!u);let R,p;if(u)p=-1,R=u,u=null;else if(r<e.childCount)p=r,R=e.child(r++);else break;for(let P=0;P<i.length;P++)i[P].to<=s&&i.splice(P--,1);for(;a<l.length&&l[a].from<=s&&l[a].to>s;)i.push(l[a++]);let f=s+R.nodeSize;if(R.isText){let P=f;a<l.length&&l[a].from<P&&(P=l[a].from);for(let O=0;O<i.length;O++)i[O].to<P&&(P=i[O].to);P<f&&(u=R.cut(P-s),R=R.cut(0,P-s),f=P,p=-1)}else for(;a<l.length&&l[a].to<f;)a++;let h=R.isInline&&!R.isLeaf?i.filter(P=>!P.inline):i.slice();o(R,h,t.forChild(s,R),p),s=f}}function R1(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 f1(e,t,n,o){for(let l=0,s=0;l<e.childCount&&s<=o;){let a=e.child(l++),i=s;if(s+=a.nodeSize,!a.isText)continue;let u=a.text;for(;l<e.childCount;){let r=e.child(l++);if(s+=r.nodeSize,!r.isText)break;u+=r.text}if(s>=n){if(s>=o&&u.slice(o-t.length-i,o-i)==t)return o-t.length;let r=i<o?u.lastIndexOf(t,o-i-1):-1;if(r>=0&&r+t.length+i>=n)return i+r;if(n==o&&u.length>=o+t.length-i&&u.slice(o-i,o-i+t.length)==t)return o}}return-1}function Ca(e,t,n,o,l){let s=[];for(let a=0,i=0;a<e.length;a++){let u=e[a],r=i,c=i+=u.size;r>=n||c<=t?s.push(u):(r<t&&s.push(u.slice(0,t-r,o)),l&&(s.push(l),l=void 0),c>n&&s.push(u.slice(n-r,u.size,o)))}return s}function yi(e,t=null){let n=e.domSelectionRange(),o=e.state.doc;if(!n.focusNode)return null;let l=e.docView.nearestDesc(n.focusNode),s=l&&l.size==0,a=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(a<0)return null;let i=o.resolve(a),u,r;if(Hs(n)){for(u=i;l&&!l.node;)l=l.parent;let c=l.node;if(l&&c.isAtom&&ut.isSelectable(c)&&l.parent&&!(c.isInline&&_X(n.focusNode,n.focusOffset,l.dom))){let d=l.posBefore;r=new ut(a==d?i:o.resolve(d))}}else{let c=e.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(c<0)return null;u=o.resolve(c)}if(!r){let c=t=="pointer"||e.state.selection.head<i.pos&&!s?1:-1;r=Li(e,u,i,c)}return r}function wd(e){return e.editable?e.hasFocus():Jd(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function Kn(e,t=!1){let n=e.state.selection;if(kd(e,n),!!wd(e)){if(!t&&e.input.mouseDown&&e.input.mouseDown.allowDefault&&_t){let o=e.domSelectionRange(),l=e.domObserver.currentSelection;if(o.anchorNode&&l.anchorNode&&Lo(o.anchorNode,o.anchorOffset,l.anchorNode,l.anchorOffset)){e.input.mouseDown.delayedSelectionSync=!0,e.domObserver.setCurSelection();return}}if(e.domObserver.disconnectSelection(),e.cursorWrapper)h1(e);else{let{anchor:o,head:l}=n,s,a;hu&&!(n instanceof Zt)&&(n.$from.parent.inlineContent||(s=vu(e,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(a=vu(e,n.to))),e.docView.setSelection(o,l,e.root,t),hu&&(s&&mu(s),a&&mu(a)),n.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&p1(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}}const hu=Dt||_t&&Wd<63;function vu(e,t){let{node:n,offset:o}=e.docView.domFromPos(t,0),l=o<n.childNodes.length?n.childNodes[o]:null,s=o?n.childNodes[o-1]:null;if(Dt&&l&&l.contentEditable=="false")return ua(l);if((!l||l.contentEditable=="false")&&(!s||s.contentEditable=="false")){if(l)return ua(l);if(s)return ua(s)}}function ua(e){return e.contentEditable="true",Dt&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function mu(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function p1(e){let t=e.dom.ownerDocument;t.removeEventListener("selectionchange",e.input.hideSelectionGuard);let n=e.domSelectionRange(),o=n.anchorNode,l=n.anchorOffset;t.addEventListener("selectionchange",e.input.hideSelectionGuard=()=>{(n.anchorNode!=o||n.anchorOffset!=l)&&(t.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout(()=>{(!wd(e)||e.state.selection.visible)&&e.dom.classList.remove("ProseMirror-hideselection")},20))})}function h1(e){let t=e.domSelection(),n=document.createRange(),o=e.cursorWrapper.dom,l=o.nodeName=="IMG";l?n.setEnd(o.parentNode,Qt(o)+1):n.setEnd(o,0),n.collapse(!1),t.removeAllRanges(),t.addRange(n),!l&&!e.state.selection.visible&&tn&&no<=11&&(o.disabled=!0,o.disabled=!1)}function kd(e,t){if(t instanceof ut){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(Mu(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else Mu(e)}function Mu(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function Li(e,t,n,o){return e.someProp("createSelectionBetween",l=>l(e,t,n))||Zt.between(t,n,o)}function gu(e){return e.editable&&!e.hasFocus()?!1:Jd(e)}function Jd(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 v1(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return Lo(t.node,t.offset,n.anchorNode,n.anchorOffset)}function Ga(e,t){let{$anchor:n,$head:o}=e.selection,l=t>0?n.max(o):n.min(o),s=l.parent.inlineContent?l.depth?e.doc.resolve(t>0?l.after():l.before()):null:l;return s&&vn.findFrom(s,t)}function Dn(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function Su(e,t,n){let o=e.state.selection;if(o instanceof Zt)if(n.indexOf("s")>-1){let{$head:l}=o,s=l.textOffset?null:t<0?l.nodeBefore:l.nodeAfter;if(!s||s.isText||!s.isLeaf)return!1;let a=e.state.doc.resolve(l.pos+s.nodeSize*(t<0?-1:1));return Dn(e,new Zt(o.$anchor,a))}else if(o.empty){if(e.endOfTextblock(t>0?"forward":"backward")){let l=Ga(e.state,t);return l&&l instanceof ut?Dn(e,l):!1}else if(!(rn&&n.indexOf("m")>-1)){let l=o.$head,s=l.textOffset?null:t<0?l.nodeBefore:l.nodeAfter,a;if(!s||s.isText)return!1;let i=t<0?l.pos-s.nodeSize:l.pos;return s.isAtom||(a=e.docView.descAt(i))&&!a.contentDOM?ut.isSelectable(s)?Dn(e,new ut(t<0?e.state.doc.resolve(l.pos-s.nodeSize):l)):Zl?Dn(e,new Zt(e.state.doc.resolve(t<0?i:i+s.nodeSize))):!1:!1}}else return!1;else{if(o instanceof ut&&o.node.isInline)return Dn(e,new Zt(t>0?o.$to:o.$from));{let l=Ga(e.state,t);return l?Dn(e,l):!1}}}function Ms(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function Sl(e,t){let n=e.pmViewDesc;return n&&n.size==0&&(t<0||e.nextSibling||e.nodeName!="BR")}function Ho(e,t){return t<0?m1(e):M1(e)}function m1(e){let t=e.domSelectionRange(),n=t.focusNode,o=t.focusOffset;if(!n)return;let l,s,a=!1;for(mn&&n.nodeType==1&&o<Ms(n)&&Sl(n.childNodes[o],-1)&&(a=!0);;)if(o>0){if(n.nodeType!=1)break;{let i=n.childNodes[o-1];if(Sl(i,-1))l=n,s=--o;else if(i.nodeType==3)n=i,o=n.nodeValue.length;else break}}else{if(xd(n))break;{let i=n.previousSibling;for(;i&&Sl(i,-1);)l=n.parentNode,s=Qt(i),i=i.previousSibling;if(i)n=i,o=Ms(n);else{if(n=n.parentNode,n==e.dom)break;o=0}}}a?Ea(e,n,o):l&&Ea(e,l,s)}function M1(e){let t=e.domSelectionRange(),n=t.focusNode,o=t.focusOffset;if(!n)return;let l=Ms(n),s,a;for(;;)if(o<l){if(n.nodeType!=1)break;let i=n.childNodes[o];if(Sl(i,1))s=n,a=++o;else break}else{if(xd(n))break;{let i=n.nextSibling;for(;i&&Sl(i,1);)s=i.parentNode,a=Qt(i)+1,i=i.nextSibling;if(i)n=i,o=0,l=Ms(n);else{if(n=n.parentNode,n==e.dom)break;o=l=0}}}s&&Ea(e,s,a)}function xd(e){let t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function g1(e,t){for(;e&&t==e.childNodes.length&&!Fl(e);)t=Qt(e)+1,e=e.parentNode;for(;e&&t<e.childNodes.length;){let n=e.childNodes[t];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;e=n,t=0}}function S1(e,t){for(;e&&!t&&!Fl(e);)t=Qt(e),e=e.parentNode;for(;e&&t;){let n=e.childNodes[t-1];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;e=n,t=e.childNodes.length}}function Ea(e,t,n){if(t.nodeType!=3){let s,a;(a=g1(t,n))?(t=a,n=0):(s=S1(t,n))&&(t=s,n=s.nodeValue.length)}let o=e.domSelection();if(Hs(o)){let s=document.createRange();s.setEnd(t,n),s.setStart(t,n),o.removeAllRanges(),o.addRange(s)}else o.extend&&o.extend(t,n);e.domObserver.setCurSelection();let{state:l}=e;setTimeout(()=>{e.state==l&&Kn(e)},50)}function Ou(e,t){let n=e.state.doc.resolve(t);if(!(_t||GX)&&n.parent.inlineContent){let l=e.coordsAtPos(t);if(t>n.start()){let s=e.coordsAtPos(t-1),a=(s.top+s.bottom)/2;if(a>l.top&&a<l.bottom&&Math.abs(s.left-l.left)>1)return s.left<l.left?"ltr":"rtl"}if(t<n.end()){let s=e.coordsAtPos(t+1),a=(s.top+s.bottom)/2;if(a>l.top&&a<l.bottom&&Math.abs(s.left-l.left)>1)return s.left>l.left?"ltr":"rtl"}}return getComputedStyle(e.dom).direction=="rtl"?"rtl":"ltr"}function Pu(e,t,n){let o=e.state.selection;if(o instanceof Zt&&!o.empty||n.indexOf("s")>-1||rn&&n.indexOf("m")>-1)return!1;let{$from:l,$to:s}=o;if(!l.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let a=Ga(e.state,t);if(a&&a instanceof ut)return Dn(e,a)}if(!l.parent.inlineContent){let a=t<0?l:s,i=o instanceof Rc?vn.near(a,t):vn.findFrom(a,t);return i?Dn(e,i):!1}return!1}function Nu(e,t){if(!(e.state.selection instanceof Zt))return!0;let{$head:n,$anchor:o,empty:l}=e.state.selection;if(!n.sameParent(o))return!0;if(!l)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let s=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(s&&!s.isText){let a=e.state.tr;return t<0?a.delete(n.pos-s.nodeSize,n.pos):a.delete(n.pos,n.pos+s.nodeSize),e.dispatch(a),!0}return!1}function Xu(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function O1(e){if(!Dt||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 o=t.firstChild;Xu(e,o,"true"),setTimeout(()=>Xu(e,o,"false"),20)}return!1}function P1(e){let t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}function N1(e,t){let n=t.keyCode,o=P1(t);if(n==8||rn&&n==72&&o=="c")return Nu(e,-1)||Ho(e,-1);if(n==46&&!t.shiftKey||rn&&n==68&&o=="c")return Nu(e,1)||Ho(e,1);if(n==13||n==27)return!0;if(n==37||rn&&n==66&&o=="c"){let l=n==37?Ou(e,e.state.selection.from)=="ltr"?-1:1:-1;return Su(e,l,o)||Ho(e,l)}else if(n==39||rn&&n==70&&o=="c"){let l=n==39?Ou(e,e.state.selection.from)=="ltr"?1:-1:1;return Su(e,l,o)||Ho(e,l)}else{if(n==38||rn&&n==80&&o=="c")return Pu(e,-1,o)||Ho(e,-1);if(n==40||rn&&n==78&&o=="c")return O1(e)||Pu(e,1,o)||Ho(e,1);if(o==(rn?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function $d(e,t){e.someProp("transformCopied",p=>{t=p(t,e)});let n=[],{content:o,openStart:l,openEnd:s}=t;for(;l>1&&s>1&&o.childCount==1&&o.firstChild.childCount==1;){l--,s--;let p=o.firstChild;n.push(p.type.name,p.attrs!=p.type.defaultAttrs?p.attrs:null),o=p.content}let a=e.someProp("clipboardSerializer")||Ls.fromSchema(e.state.schema),i=eR(),u=i.createElement("div");u.appendChild(a.serializeFragment(o,{document:i}));let r=u.firstChild,c,d=0;for(;r&&r.nodeType==1&&(c=qd[r.nodeName.toLowerCase()]);){for(let p=c.length-1;p>=0;p--){let f=i.createElement(c[p]);for(;u.firstChild;)f.appendChild(u.firstChild);u.appendChild(f),d++}r=u.firstChild}r&&r.nodeType==1&&r.setAttribute("data-pm-slice",`${l} ${s}${d?` -${d}`:""} ${JSON.stringify(n)}`);let R=e.someProp("clipboardTextSerializer",p=>p(t,e))||t.content.textBetween(0,t.content.size,`
- `);return{dom:u,text:R,slice:t}}function Dd(e,t,n,o,l){let s=l.parent.type.spec.code,a,i;if(!n&&!t)return null;let u=t&&(o||s||!n);if(u){if(e.someProp("transformPastedText",R=>{t=R(t,s||o,e)}),s)return t?new $t(ot.from(e.state.schema.text(t.replace(/\r\n?/g,`
- `))),0,0):$t.empty;let d=e.someProp("clipboardTextParser",R=>R(t,l,o,e));if(d)i=d;else{let R=l.marks(),{schema:p}=e.state,f=Ls.fromSchema(p);a=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(h=>{let P=a.appendChild(document.createElement("p"));h&&P.appendChild(f.serializeNode(p.text(h,R)))})}}else e.someProp("transformPastedHTML",d=>{n=d(n,e)}),a=V1(n),Zl&&y1(a);let r=a&&a.querySelector("[data-pm-slice]"),c=r&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(r.getAttribute("data-pm-slice")||"");if(c&&c[3])for(let d=+c[3];d>0;d--){let R=a.firstChild;for(;R&&R.nodeType!=1;)R=R.nextSibling;if(!R)break;a=R}if(i||(i=(e.someProp("clipboardParser")||e.someProp("domParser")||ti.fromSchema(e.state.schema)).parseSlice(a,{preserveWhitespace:!!(u||c),context:l,ruleFromNode(R){return R.nodeName=="BR"&&!R.nextSibling&&R.parentNode&&!X1.test(R.parentNode.nodeName)?{ignore:!0}:null}})),c)i=L1(Tu(i,+c[1],+c[2]),c[4]);else if(i=$t.maxOpen(T1(i.content,l),!0),i.openStart||i.openEnd){let d=0,R=0;for(let p=i.content.firstChild;d<i.openStart&&!p.type.spec.isolating;d++,p=p.firstChild);for(let p=i.content.lastChild;R<i.openEnd&&!p.type.spec.isolating;R++,p=p.lastChild);i=Tu(i,d,R)}return e.someProp("transformPasted",d=>{i=d(i,e)}),i}const X1=/^(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 T1(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let l=t.node(n).contentMatchAt(t.index(n)),s,a=[];if(e.forEach(i=>{if(!a)return;let u=l.findWrapping(i.type),r;if(!u)return a=null;if(r=a.length&&s.length&&zd(u,s,i,a[a.length-1],0))a[a.length-1]=r;else{a.length&&(a[a.length-1]=jd(a[a.length-1],s.length));let c=Bd(i,u);a.push(c),l=l.matchType(c.type),s=u}}),a)return ot.from(a)}return e}function Bd(e,t,n=0){for(let o=t.length-1;o>=n;o--)e=t[o].create(null,ot.from(e));return e}function zd(e,t,n,o,l){if(l<e.length&&l<t.length&&e[l]==t[l]){let s=zd(e,t,n,o.lastChild,l+1);if(s)return o.copy(o.content.replaceChild(o.childCount-1,s));if(o.contentMatchAt(o.childCount).matchType(l==e.length-1?n.type:e[l+1]))return o.copy(o.content.append(ot.from(Bd(n,e,l+1))))}}function jd(e,t){if(t==0)return e;let n=e.content.replaceChild(e.childCount-1,jd(e.lastChild,t-1)),o=e.contentMatchAt(e.childCount).fillBefore(ot.empty,!0);return e.copy(n.append(o))}function wa(e,t,n,o,l,s){let a=t<0?e.firstChild:e.lastChild,i=a.content;return e.childCount>1&&(s=0),l<o-1&&(i=wa(i,t,n,o,l+1,s)),l>=n&&(i=t<0?a.contentMatchAt(0).fillBefore(i,s<=l).append(i):i.append(a.contentMatchAt(a.childCount).fillBefore(ot.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,a.copy(i))}function Tu(e,t,n){return t<e.openStart&&(e=new $t(wa(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new $t(wa(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}const qd={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let Vu=null;function eR(){return Vu||(Vu=document.implementation.createHTMLDocument("title"))}function V1(e){let t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n=eR().createElement("div"),o=/<([a-z][^>\s]+)/i.exec(e),l;if((l=o&&qd[o[1].toLowerCase()])&&(e=l.map(s=>"<"+s+">").join("")+e+l.map(s=>"</"+s+">").reverse().join("")),n.innerHTML=e,l)for(let s=0;s<l.length;s++)n=n.querySelector(l[s])||n;return n}function y1(e){let t=e.querySelectorAll(_t?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<t.length;n++){let o=t[n];o.childNodes.length==1&&o.textContent==" "&&o.parentNode&&o.parentNode.replaceChild(e.ownerDocument.createTextNode(" "),o)}}function L1(e,t){if(!e.size)return e;let n=e.content.firstChild.type.schema,o;try{o=JSON.parse(t)}catch{return e}let{content:l,openStart:s,openEnd:a}=e;for(let i=o.length-2;i>=0;i-=2){let u=n.nodes[o[i]];if(!u||u.hasRequiredAttrs())break;l=ot.from(u.create(o[i+1],l)),s++,a++}return new $t(l,s,a)}const Bt={},zt={},b1={touchstart:!0,touchmove:!0};class I1{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 Y1(e){for(let t in Bt){let n=Bt[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=o=>{U1(e,o)&&!bi(e,o)&&(e.editable||!(o.type in zt))&&n(e,o)},b1[t]?{passive:!0}:void 0)}Dt&&e.dom.addEventListener("input",()=>null),ka(e)}function qn(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function W1(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 ka(e){e.someProp("handleDOMEvents",t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=o=>bi(e,o))})}function bi(e,t){return e.someProp("handleDOMEvents",n=>{let o=n[t.type];return o?o(e,t)||t.defaultPrevented:!1})}function U1(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 Q1(e,t){!bi(e,t)&&Bt[t.type]&&(e.editable||!(t.type in zt))&&Bt[t.type](e,t)}zt.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=n.keyCode==16||n.shiftKey,!nR(e,n)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!(fn&&_t&&n.keyCode==13)))if(n.keyCode!=229&&e.domObserver.forceFlush(),qo&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let o=Date.now();e.input.lastIOSEnter=o,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==o&&(e.someProp("handleKeyDown",l=>l(e,Mo(13,"Enter"))),e.input.lastIOSEnter=0)},200)}else e.someProp("handleKeyDown",o=>o(e,n))||N1(e,n)?n.preventDefault():qn(e,"key")};zt.keyup=(e,t)=>{t.keyCode==16&&(e.input.shiftKey=!1)};zt.keypress=(e,t)=>{let n=t;if(nR(e,n)||!n.charCode||n.ctrlKey&&!n.altKey||rn&&n.metaKey)return;if(e.someProp("handleKeyPress",l=>l(e,n))){n.preventDefault();return}let o=e.state.selection;if(!(o instanceof Zt)||!o.$from.sameParent(o.$to)){let l=String.fromCharCode(n.charCode);!/[\r\n]/.test(l)&&!e.someProp("handleTextInput",s=>s(e,o.$from.pos,o.$to.pos,l))&&e.dispatch(e.state.tr.insertText(l).scrollIntoView()),n.preventDefault()}};function Gs(e){return{left:e.clientX,top:e.clientY}}function F1(e,t){let n=t.x-e.clientX,o=t.y-e.clientY;return n*n+o*o<100}function Ii(e,t,n,o,l){if(o==-1)return!1;let s=e.state.doc.resolve(o);for(let a=s.depth+1;a>0;a--)if(e.someProp(t,i=>a>s.depth?i(e,n,s.nodeAfter,s.before(a),l,!0):i(e,n,s.node(a),s.before(a),l,!1)))return!0;return!1}function $o(e,t,n){e.focused||e.focus();let o=e.state.tr.setSelection(t);o.setMeta("pointer",!0),e.dispatch(o)}function Z1(e,t){if(t==-1)return!1;let n=e.state.doc.resolve(t),o=n.nodeAfter;return o&&o.isAtom&&ut.isSelectable(o)?($o(e,new ut(n)),!0):!1}function A1(e,t){if(t==-1)return!1;let n=e.state.selection,o,l;n instanceof ut&&(o=n.node);let s=e.state.doc.resolve(t);for(let a=s.depth+1;a>0;a--){let i=a>s.depth?s.nodeAfter:s.node(a);if(ut.isSelectable(i)){o&&n.$from.depth>0&&a>=n.$from.depth&&s.before(n.$from.depth+1)==n.$from.pos?l=s.before(n.$from.depth):l=s.before(a);break}}return l!=null?($o(e,ut.create(e.state.doc,l)),!0):!1}function K1(e,t,n,o,l){return Ii(e,"handleClickOn",t,n,o)||e.someProp("handleClick",s=>s(e,t,o))||(l?A1(e,n):Z1(e,n))}function _1(e,t,n,o){return Ii(e,"handleDoubleClickOn",t,n,o)||e.someProp("handleDoubleClick",l=>l(e,t,o))}function H1(e,t,n,o){return Ii(e,"handleTripleClickOn",t,n,o)||e.someProp("handleTripleClick",l=>l(e,t,o))||C1(e,n,o)}function C1(e,t,n){if(n.button!=0)return!1;let o=e.state.doc;if(t==-1)return o.inlineContent?($o(e,Zt.create(o,0,o.content.size)),!0):!1;let l=o.resolve(t);for(let s=l.depth+1;s>0;s--){let a=s>l.depth?l.nodeAfter:l.node(s),i=l.before(s);if(a.inlineContent)$o(e,Zt.create(o,i+1,i+1+a.content.size));else if(ut.isSelectable(a))$o(e,ut.create(o,i));else continue;return!0}}function Yi(e){return gs(e)}const tR=rn?"metaKey":"ctrlKey";Bt.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let o=Yi(e),l=Date.now(),s="singleClick";l-e.input.lastClick.time<500&&F1(n,e.input.lastClick)&&!n[tR]&&(e.input.lastClick.type=="singleClick"?s="doubleClick":e.input.lastClick.type=="doubleClick"&&(s="tripleClick")),e.input.lastClick={time:l,x:n.clientX,y:n.clientY,type:s};let a=e.posAtCoords(Gs(n));a&&(s=="singleClick"?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new G1(e,a,n,!!o)):(s=="doubleClick"?_1:H1)(e,a.pos,a.inside,n)?n.preventDefault():qn(e,"pointer"))};class G1{constructor(t,n,o,l){this.view=t,this.pos=n,this.event=o,this.flushed=l,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=t.state.doc,this.selectNode=!!o[tR],this.allowDefault=o.shiftKey;let s,a;if(n.inside>-1)s=t.state.doc.nodeAt(n.inside),a=n.inside;else{let c=t.state.doc.resolve(n.pos);s=c.parent,a=c.depth?c.before():0}const i=l?null:o.target,u=i?t.docView.nearestDesc(i,!0):null;this.target=u&&u.dom.nodeType==1?u.dom:null;let{selection:r}=t.state;(o.button==0&&s.type.spec.draggable&&s.type.spec.selectable!==!1||r instanceof ut&&r.from<=a&&r.to>a)&&(this.mightDrag={node:s,pos:a,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&mn&&!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)),qn(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(()=>Kn(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(Gs(t))),this.updateAllowDefault(t),this.allowDefault||!n?qn(this.view,"pointer"):K1(this.view,n.pos,n.inside,t,this.selectNode)?t.preventDefault():t.button==0&&(this.flushed||Dt&&this.mightDrag&&!this.mightDrag.node.isAtom||_t&&!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)?($o(this.view,vn.near(this.view.state.doc.resolve(n.pos))),t.preventDefault()):qn(this.view,"pointer")}move(t){this.updateAllowDefault(t),qn(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)}}Bt.touchstart=e=>{e.input.lastTouch=Date.now(),Yi(e),qn(e,"pointer")};Bt.touchmove=e=>{e.input.lastTouch=Date.now(),qn(e,"pointer")};Bt.contextmenu=e=>Yi(e);function nR(e,t){return e.composing?!0:Dt&&Math.abs(t.timeStamp-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}const E1=fn?5e3:-1;zt.compositionstart=zt.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(o=>o.type.spec.inclusive===!1)))e.markCursor=e.state.storedMarks||n.marks(),gs(e,!0),e.markCursor=null;else if(gs(e),mn&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let o=e.domSelectionRange();for(let l=o.focusNode,s=o.focusOffset;l&&l.nodeType==1&&s!=0;){let a=s<0?l.lastChild:l.childNodes[s-1];if(!a)break;if(a.nodeType==3){e.domSelection().collapse(a,a.nodeValue.length);break}else l=a,s=-1}}e.input.composing=!0}oR(e,E1)};zt.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++,oR(e,20))};function oR(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>gs(e),t))}function lR(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=k1());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function w1(e){let t=e.domSelectionRange();if(!t.focusNode)return null;let n=AX(t.focusNode,t.focusOffset),o=KX(t.focusNode,t.focusOffset);if(n&&o&&n!=o){let l=o.pmViewDesc,s=e.domObserver.lastChangedTextNode;if(n==s||o==s)return s;if(!l||!l.isText(o.nodeValue))return o;if(e.input.compositionNode==o){let a=n.pmViewDesc;if(!(!a||!a.isText(n.nodeValue)))return o}}return n||o}function k1(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}function gs(e,t=!1){if(!(fn&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),lR(e),t||e.docView&&e.docView.dirty){let n=yi(e);return n&&!n.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(n)):e.updateState(e.state),!0}return!1}}function J1(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 o=getSelection(),l=document.createRange();l.selectNodeContents(t),e.dom.blur(),o.removeAllRanges(),o.addRange(l),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}const Tl=tn&&no<15||qo&&EX<604;Bt.copy=zt.cut=(e,t)=>{let n=t,o=e.state.selection,l=n.type=="cut";if(o.empty)return;let s=Tl?null:n.clipboardData,a=o.content(),{dom:i,text:u}=$d(e,a);s?(n.preventDefault(),s.clearData(),s.setData("text/html",i.innerHTML),s.setData("text/plain",u)):J1(e,i),l&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function x1(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function $1(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,o=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(o.contentEditable="true"),o.style.cssText="position: fixed; left: -10000px; top: 10px",o.focus();let l=e.input.shiftKey&&e.input.lastKeyCode!=45;setTimeout(()=>{e.focus(),o.parentNode&&o.parentNode.removeChild(o),n?Vl(e,o.value,null,l,t):Vl(e,o.textContent,o.innerHTML,l,t)},50)}function Vl(e,t,n,o,l){let s=Dd(e,t,n,o,e.state.selection.$from);if(e.someProp("handlePaste",u=>u(e,l,s||$t.empty)))return!0;if(!s)return!1;let a=x1(s),i=a?e.state.tr.replaceSelectionWith(a,o):e.state.tr.replaceSelection(s);return e.dispatch(i.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function sR(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," "):""}zt.paste=(e,t)=>{let n=t;if(e.composing&&!fn)return;let o=Tl?null:n.clipboardData,l=e.input.shiftKey&&e.input.lastKeyCode!=45;o&&Vl(e,sR(o),o.getData("text/html"),l,n)?n.preventDefault():$1(e,n)};class aR{constructor(t,n,o){this.slice=t,this.move=n,this.node=o}}const iR=rn?"altKey":"ctrlKey";Bt.dragstart=(e,t)=>{let n=t,o=e.input.mouseDown;if(o&&o.done(),!n.dataTransfer)return;let l=e.state.selection,s=l.empty?null:e.posAtCoords(Gs(n)),a;if(!(s&&s.pos>=l.from&&s.pos<=(l instanceof ut?l.to-1:l.to))){if(o&&o.mightDrag)a=ut.create(e.state.doc,o.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let d=e.docView.nearestDesc(n.target,!0);d&&d.node.type.spec.draggable&&d!=e.docView&&(a=ut.create(e.state.doc,d.posBefore))}}let i=(a||e.state.selection).content(),{dom:u,text:r,slice:c}=$d(e,i);(!n.dataTransfer.files.length||!_t||Wd>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(Tl?"Text":"text/html",u.innerHTML),n.dataTransfer.effectAllowed="copyMove",Tl||n.dataTransfer.setData("text/plain",r),e.dragging=new aR(c,!n[iR],a)};Bt.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)};zt.dragover=zt.dragenter=(e,t)=>t.preventDefault();zt.drop=(e,t)=>{let n=t,o=e.dragging;if(e.dragging=null,!n.dataTransfer)return;let l=e.posAtCoords(Gs(n));if(!l)return;let s=e.state.doc.resolve(l.pos),a=o&&o.slice;a?e.someProp("transformPasted",f=>{a=f(a,e)}):a=Dd(e,sR(n.dataTransfer),Tl?null:n.dataTransfer.getData("text/html"),!1,s);let i=!!(o&&!n[iR]);if(e.someProp("handleDrop",f=>f(e,n,a||$t.empty,i))){n.preventDefault();return}if(!a)return;n.preventDefault();let u=a?dc(e.state.doc,s.pos,a):s.pos;u==null&&(u=s.pos);let r=e.state.tr;if(i){let{node:f}=o;f?f.replace(r):r.deleteSelection()}let c=r.mapping.map(u),d=a.openStart==0&&a.openEnd==0&&a.content.childCount==1,R=r.doc;if(d?r.replaceRangeWith(c,c,a.content.firstChild):r.replaceRange(c,c,a),r.doc.eq(R))return;let p=r.doc.resolve(c);if(d&&ut.isSelectable(a.content.firstChild)&&p.nodeAfter&&p.nodeAfter.sameMarkup(a.content.firstChild))r.setSelection(new ut(p));else{let f=r.mapping.map(u);r.mapping.maps[r.mapping.maps.length-1].forEach((h,P,O,L)=>f=L),r.setSelection(Li(e,p,r.doc.resolve(f)))}e.focus(),e.dispatch(r.setMeta("uiEvent","drop"))};Bt.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())&&Kn(e)},20))};Bt.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)};Bt.beforeinput=(e,t)=>{if(_t&&fn&&t.inputType=="deleteContentBackward"){e.domObserver.flushSoon();let{domChangeCount:o}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=o||(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",s=>s(e,Mo(8,"Backspace")))))return;let{$cursor:l}=e.state.selection;l&&l.pos>0&&e.dispatch(e.state.tr.delete(l.pos-1,l.pos).scrollIntoView())},50)}};for(let e in zt)Bt[e]=zt[e];function yl(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 Ss{constructor(t,n){this.toDOM=t,this.spec=n||Po,this.side=this.spec.side||0}map(t,n,o,l){let{pos:s,deleted:a}=t.mapResult(n.from+l,this.side<0?-1:1);return a?null:new sn(s-o,s-o,this)}valid(){return!0}eq(t){return this==t||t instanceof Ss&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&yl(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}}class lo{constructor(t,n){this.attrs=t,this.spec=n||Po}map(t,n,o,l){let s=t.map(n.from+l,this.spec.inclusiveStart?-1:1)-o,a=t.map(n.to+l,this.spec.inclusiveEnd?1:-1)-o;return s>=a?null:new sn(s,a,this)}valid(t,n){return n.from<n.to}eq(t){return this==t||t instanceof lo&&yl(this.attrs,t.attrs)&&yl(this.spec,t.spec)}static is(t){return t.type instanceof lo}destroy(){}}class Wi{constructor(t,n){this.attrs=t,this.spec=n||Po}map(t,n,o,l){let s=t.mapResult(n.from+l,1);if(s.deleted)return null;let a=t.mapResult(n.to+l,-1);return a.deleted||a.pos<=s.pos?null:new sn(s.pos-o,a.pos-o,this)}valid(t,n){let{index:o,offset:l}=t.content.findIndex(n.from),s;return l==n.from&&!(s=t.child(o)).isText&&l+s.nodeSize==n.to}eq(t){return this==t||t instanceof Wi&&yl(this.attrs,t.attrs)&&yl(this.spec,t.spec)}destroy(){}}class sn{constructor(t,n,o){this.from=t,this.to=n,this.type=o}copy(t,n){return new sn(t,n,this.type)}eq(t,n=0){return this.type.eq(t.type)&&this.from+n==t.from&&this.to+n==t.to}map(t,n,o){return this.type.map(t,this,n,o)}static widget(t,n,o){return new sn(t,t,new Ss(n,o))}static inline(t,n,o,l){return new sn(t,n,new lo(o,l))}static node(t,n,o,l){return new sn(t,n,new Wi(o,l))}get spec(){return this.type.spec}get inline(){return this.type instanceof lo}get widget(){return this.type instanceof Ss}}const Eo=[],Po={};class Pt{constructor(t,n){this.local=t.length?t:Eo,this.children=n.length?n:Eo}static create(t,n){return n.length?Os(n,t,0,Po):Kt}find(t,n,o){let l=[];return this.findInner(t??0,n??1e9,l,0,o),l}findInner(t,n,o,l,s){for(let a=0;a<this.local.length;a++){let i=this.local[a];i.from<=n&&i.to>=t&&(!s||s(i.spec))&&o.push(i.copy(i.from+l,i.to+l))}for(let a=0;a<this.children.length;a+=3)if(this.children[a]<n&&this.children[a+1]>t){let i=this.children[a]+1;this.children[a+2].findInner(t-i,n-i,o,l+i,s)}}map(t,n,o){return this==Kt||t.maps.length==0?this:this.mapInner(t,n,0,0,o||Po)}mapInner(t,n,o,l,s){let a;for(let i=0;i<this.local.length;i++){let u=this.local[i].map(t,o,l);u&&u.type.valid(n,u)?(a||(a=[])).push(u):s.onRemove&&s.onRemove(this.local[i].spec)}return this.children.length?D1(this.children,a||[],t,n,o,l,s):a?new Pt(a.sort(No),Eo):Kt}add(t,n){return n.length?this==Kt?Pt.create(t,n):this.addInner(t,n,0):this}addInner(t,n,o){let l,s=0;t.forEach((i,u)=>{let r=u+o,c;if(c=uR(n,i,r)){for(l||(l=this.children.slice());s<l.length&&l[s]<u;)s+=3;l[s]==u?l[s+2]=l[s+2].addInner(i,c,r+1):l.splice(s,0,u,u+i.nodeSize,Os(c,i,r+1,Po)),s+=3}});let a=rR(s?cR(n):n,-o);for(let i=0;i<a.length;i++)a[i].type.valid(t,a[i])||a.splice(i--,1);return new Pt(a.length?this.local.concat(a).sort(No):this.local,l||this.children)}remove(t){return t.length==0||this==Kt?this:this.removeInner(t,0)}removeInner(t,n){let o=this.children,l=this.local;for(let s=0;s<o.length;s+=3){let a,i=o[s]+n,u=o[s+1]+n;for(let c=0,d;c<t.length;c++)(d=t[c])&&d.from>i&&d.to<u&&(t[c]=null,(a||(a=[])).push(d));if(!a)continue;o==this.children&&(o=this.children.slice());let r=o[s+2].removeInner(a,i+1);r!=Kt?o[s+2]=r:(o.splice(s,3),s-=3)}if(l.length){for(let s=0,a;s<t.length;s++)if(a=t[s])for(let i=0;i<l.length;i++)l[i].eq(a,n)&&(l==this.local&&(l=this.local.slice()),l.splice(i--,1))}return o==this.children&&l==this.local?this:l.length||o.length?new Pt(l,o):Kt}forChild(t,n){if(this==Kt)return this;if(n.isLeaf)return Pt.empty;let o,l;for(let i=0;i<this.children.length;i+=3)if(this.children[i]>=t){this.children[i]==t&&(o=this.children[i+2]);break}let s=t+1,a=s+n.content.size;for(let i=0;i<this.local.length;i++){let u=this.local[i];if(u.from<a&&u.to>s&&u.type instanceof lo){let r=Math.max(s,u.from)-s,c=Math.min(a,u.to)-s;r<c&&(l||(l=[])).push(u.copy(r,c))}}if(l){let i=new Pt(l.sort(No),Eo);return o?new jn([i,o]):i}return o||Kt}eq(t){if(this==t)return!0;if(!(t instanceof Pt)||this.local.length!=t.local.length||this.children.length!=t.children.length)return!1;for(let n=0;n<this.local.length;n++)if(!this.local[n].eq(t.local[n]))return!1;for(let n=0;n<this.children.length;n+=3)if(this.children[n]!=t.children[n]||this.children[n+1]!=t.children[n+1]||!this.children[n+2].eq(t.children[n+2]))return!1;return!0}locals(t){return Ui(this.localsInner(t))}localsInner(t){if(this==Kt)return Eo;if(t.inlineContent||!this.local.some(lo.is))return this.local;let n=[];for(let o=0;o<this.local.length;o++)this.local[o].type instanceof lo||n.push(this.local[o]);return n}}Pt.empty=new Pt([],[]);Pt.removeOverlap=Ui;const Kt=Pt.empty;class jn{constructor(t){this.members=t}map(t,n){const o=this.members.map(l=>l.map(t,n,Po));return jn.from(o)}forChild(t,n){if(n.isLeaf)return Pt.empty;let o=[];for(let l=0;l<this.members.length;l++){let s=this.members[l].forChild(t,n);s!=Kt&&(s instanceof jn?o=o.concat(s.members):o.push(s))}return jn.from(o)}eq(t){if(!(t instanceof jn)||t.members.length!=this.members.length)return!1;for(let n=0;n<this.members.length;n++)if(!this.members[n].eq(t.members[n]))return!1;return!0}locals(t){let n,o=!0;for(let l=0;l<this.members.length;l++){let s=this.members[l].localsInner(t);if(s.length)if(!n)n=s;else{o&&(n=n.slice(),o=!1);for(let a=0;a<s.length;a++)n.push(s[a])}}return n?Ui(o?n:n.sort(No)):Eo}static from(t){switch(t.length){case 0:return Kt;case 1:return t[0];default:return new jn(t.every(n=>n instanceof Pt)?t:t.reduce((n,o)=>n.concat(o instanceof Pt?o:o.members),[]))}}}function D1(e,t,n,o,l,s,a){let i=e.slice();for(let r=0,c=s;r<n.maps.length;r++){let d=0;n.maps[r].forEach((R,p,f,h)=>{let P=h-f-(p-R);for(let O=0;O<i.length;O+=3){let L=i[O+1];if(L<0||R>L+c-d)continue;let S=i[O]+c-d;p>=S?i[O+1]=R<=S?-2:-1:R>=c&&P&&(i[O]+=P,i[O+1]+=P)}d+=P}),c=n.maps[r].map(c,-1)}let u=!1;for(let r=0;r<i.length;r+=3)if(i[r+1]<0){if(i[r+1]==-2){u=!0,i[r+1]=-1;continue}let c=n.map(e[r]+s),d=c-l;if(d<0||d>=o.content.size){u=!0;continue}let R=n.map(e[r+1]+s,-1),p=R-l,{index:f,offset:h}=o.content.findIndex(d),P=o.maybeChild(f);if(P&&h==d&&h+P.nodeSize==p){let O=i[r+2].mapInner(n,P,c+1,e[r]+s+1,a);O!=Kt?(i[r]=d,i[r+1]=p,i[r+2]=O):(i[r+1]=-2,u=!0)}else u=!0}if(u){let r=B1(i,e,t,n,l,s,a),c=Os(r,o,0,a);t=c.local;for(let d=0;d<i.length;d+=3)i[d+1]<0&&(i.splice(d,3),d-=3);for(let d=0,R=0;d<c.children.length;d+=3){let p=c.children[d];for(;R<i.length&&i[R]<p;)R+=3;i.splice(R,0,c.children[d],c.children[d+1],c.children[d+2])}}return new Pt(t.sort(No),i)}function rR(e,t){if(!t||!e.length)return e;let n=[];for(let o=0;o<e.length;o++){let l=e[o];n.push(new sn(l.from+t,l.to+t,l.type))}return n}function B1(e,t,n,o,l,s,a){function i(u,r){for(let c=0;c<u.local.length;c++){let d=u.local[c].map(o,l,r);d?n.push(d):a.onRemove&&a.onRemove(u.local[c].spec)}for(let c=0;c<u.children.length;c+=3)i(u.children[c+2],u.children[c]+r+1)}for(let u=0;u<e.length;u+=3)e[u+1]==-1&&i(e[u+2],t[u]+s+1);return n}function uR(e,t,n){if(t.isLeaf)return null;let o=n+t.nodeSize,l=null;for(let s=0,a;s<e.length;s++)(a=e[s])&&a.from>n&&a.to<o&&((l||(l=[])).push(a),e[s]=null);return l}function cR(e){let t=[];for(let n=0;n<e.length;n++)e[n]!=null&&t.push(e[n]);return t}function Os(e,t,n,o){let l=[],s=!1;t.forEach((i,u)=>{let r=uR(e,i,u+n);if(r){s=!0;let c=Os(r,i,n+u+1,o);c!=Kt&&l.push(u,u+i.nodeSize,c)}});let a=rR(s?cR(e):e,-n).sort(No);for(let i=0;i<a.length;i++)a[i].type.valid(t,a[i])||(o.onRemove&&o.onRemove(a[i].spec),a.splice(i--,1));return a.length||l.length?new Pt(a,l):Kt}function No(e,t){return e.from-t.from||e.to-t.to}function Ui(e){let t=e;for(let n=0;n<t.length-1;n++){let o=t[n];if(o.from!=o.to)for(let l=n+1;l<t.length;l++){let s=t[l];if(s.from==o.from){s.to!=o.to&&(t==e&&(t=e.slice()),t[l]=s.copy(s.from,o.to),yu(t,l+1,s.copy(o.to,s.to)));continue}else{s.from<o.to&&(t==e&&(t=e.slice()),t[n]=o.copy(o.from,s.from),yu(t,l,o.copy(s.from,o.to)));break}}}return t}function yu(e,t,n){for(;t<e.length&&No(n,e[t])>0;)t++;e.splice(t,0,n)}function ca(e){let t=[];return e.someProp("decorations",n=>{let o=n(e.state);o&&o!=Kt&&t.push(o)}),e.cursorWrapper&&t.push(Pt.create(e.state.doc,[e.cursorWrapper.deco])),jn.from(t)}const z1={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},j1=tn&&no<=11;class q1{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 eT{constructor(t,n){this.view=t,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new q1,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(o=>{for(let l=0;l<o.length;l++)this.queue.push(o[l]);tn&&no<=11&&o.some(l=>l.type=="childList"&&l.removedNodes.length||l.type=="characterData"&&l.oldValue.length>l.target.nodeValue.length)?this.flushSoon():this.flush()}),j1&&(this.onCharData=o=>{this.queue.push({target:o.target,type:"characterData",oldValue:o.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,z1)),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;n<t.length;n++)this.queue.push(t[n]);window.setTimeout(()=>this.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(gu(this.view)){if(this.suppressingSelectionUpdates)return Kn(this.view);if(tn&&no<=11&&!this.view.state.selection.empty){let t=this.view.domSelectionRange();if(t.focusNode&&Lo(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,o;for(let s=t.focusNode;s;s=Xl(s))n.add(s);for(let s=t.anchorNode;s;s=Xl(s))if(n.has(s)){o=s;break}let l=o&&this.view.docView.nearestDesc(o);if(l&&l.ignoreMutation({type:"selection",target:o.nodeType==3?o.parentNode:o}))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 o=t.domSelectionRange(),l=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(o)&&gu(t)&&!this.ignoreSelectionChange(o),s=-1,a=-1,i=!1,u=[];if(t.editable)for(let c=0;c<n.length;c++){let d=this.registerMutation(n[c],u);d&&(s=s<0?d.from:Math.min(d.from,s),a=a<0?d.to:Math.max(d.to,a),d.typeOver&&(i=!0))}if(mn&&u.length){let c=u.filter(d=>d.nodeName=="BR");if(c.length==2){let[d,R]=c;d.parentNode&&d.parentNode.parentNode==R.parentNode?R.remove():d.remove()}else{let{focusNode:d}=this.currentSelection;for(let R of c){let p=R.parentNode;p&&p.nodeName=="LI"&&(!d||oT(t,d)!=p)&&R.remove()}}}let r=null;s<0&&l&&t.input.lastFocus>Date.now()-200&&Math.max(t.input.lastTouch,t.input.lastClick.time)<Date.now()-300&&Hs(o)&&(r=yi(t))&&r.eq(vn.near(t.state.doc.resolve(0),1))?(t.input.lastFocus=0,Kn(t),this.currentSelection.set(o),t.scrollToSelection()):(s>-1||l)&&(s>-1&&(t.docView.markDirty(s,a),tT(t)),this.handleDOMChange(s,a,i,u),t.docView&&t.docView.dirty?t.updateState(t.state):this.currentSelection.eq(o)||Kn(t),this.currentSelection.set(o))}registerMutation(t,n){if(n.indexOf(t.target)>-1)return null;let o=this.view.docView.nearestDesc(t.target);if(t.type=="attributes"&&(o==this.view.docView||t.attributeName=="contenteditable"||t.attributeName=="style"&&!t.oldValue&&!t.target.getAttribute("style"))||!o||o.ignoreMutation(t))return null;if(t.type=="childList"){for(let c=0;c<t.addedNodes.length;c++){let d=t.addedNodes[c];n.push(d),d.nodeType==3&&(this.lastChangedTextNode=d)}if(o.contentDOM&&o.contentDOM!=o.dom&&!o.contentDOM.contains(t.target))return{from:o.posBefore,to:o.posAfter};let l=t.previousSibling,s=t.nextSibling;if(tn&&no<=11&&t.addedNodes.length)for(let c=0;c<t.addedNodes.length;c++){let{previousSibling:d,nextSibling:R}=t.addedNodes[c];(!d||Array.prototype.indexOf.call(t.addedNodes,d)<0)&&(l=d),(!R||Array.prototype.indexOf.call(t.addedNodes,R)<0)&&(s=R)}let a=l&&l.parentNode==t.target?Qt(l)+1:0,i=o.localPosFromDOM(t.target,a,-1),u=s&&s.parentNode==t.target?Qt(s):t.target.childNodes.length,r=o.localPosFromDOM(t.target,u,1);return{from:i,to:r}}else return t.type=="attributes"?{from:o.posAtStart-o.border,to:o.posAtEnd+o.border}:(this.lastChangedTextNode=t.target,{from:o.posAtStart,to:o.posAtEnd,typeOver:t.target.nodeValue==t.oldValue})}}let Lu=new WeakMap,bu=!1;function tT(e){if(!Lu.has(e)&&(Lu.set(e,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(e.dom).whiteSpace)!==-1)){if(e.requiresGeckoHackNode=mn,bu)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),bu=!0}}function Iu(e,t){let n=t.startContainer,o=t.startOffset,l=t.endContainer,s=t.endOffset,a=e.domAtPos(e.state.selection.anchor);return Lo(a.node,a.offset,l,s)&&([n,o,l,s]=[l,s,n,o]),{anchorNode:n,anchorOffset:o,focusNode:l,focusOffset:s}}function nT(e,t){if(t.getComposedRanges){let l=t.getComposedRanges(e.root)[0];if(l)return Iu(e,l)}let n;function o(l){l.preventDefault(),l.stopImmediatePropagation(),n=l.getTargetRanges()[0]}return e.dom.addEventListener("beforeinput",o,!0),document.execCommand("indent"),e.dom.removeEventListener("beforeinput",o,!0),n?Iu(e,n):null}function oT(e,t){for(let n=t.parentNode;n&&n!=e.dom;n=n.parentNode){let o=e.docView.nearestDesc(n,!0);if(o&&o.node.isBlock)return n}return null}function lT(e,t,n){let{node:o,fromOffset:l,toOffset:s,from:a,to:i}=e.docView.parseRange(t,n),u=e.domSelectionRange(),r,c=u.anchorNode;if(c&&e.dom.contains(c.nodeType==1?c:c.parentNode)&&(r=[{node:c,offset:u.anchorOffset}],Hs(u)||r.push({node:u.focusNode,offset:u.focusOffset})),_t&&e.input.lastKeyCode===8)for(let P=s;P>l;P--){let O=o.childNodes[P-1],L=O.pmViewDesc;if(O.nodeName=="BR"&&!L){s=P;break}if(!L||L.size)break}let d=e.state.doc,R=e.someProp("domParser")||ti.fromSchema(e.state.schema),p=d.resolve(a),f=null,h=R.parse(o,{topNode:p.parent,topMatch:p.parent.contentMatchAt(p.index()),topOpen:!0,from:l,to:s,preserveWhitespace:p.parent.type.whitespace=="pre"?"full":!0,findPositions:r,ruleFromNode:sT,context:p});if(r&&r[0].pos!=null){let P=r[0].pos,O=r[1]&&r[1].pos;O==null&&(O=P),f={anchor:P+a,head:O+a}}return{doc:h,sel:f,from:a,to:i}}function sT(e){let t=e.pmViewDesc;if(t)return t.parseRule();if(e.nodeName=="BR"&&e.parentNode){if(Dt&&/^(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||Dt&&/^(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 aT=/^(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 iT(e,t,n,o,l){let s=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let V=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,I=yi(e,V);if(I&&!e.state.selection.eq(I)){if(_t&&fn&&e.input.lastKeyCode===13&&Date.now()-100<e.input.lastKeyCodeTime&&e.someProp("handleKeyDown",F=>F(e,Mo(13,"Enter"))))return;let W=e.state.tr.setSelection(I);V=="pointer"?W.setMeta("pointer",!0):V=="key"&&W.scrollIntoView(),s&&W.setMeta("composition",s),e.dispatch(W)}return}let a=e.state.doc.resolve(t),i=a.sharedDepth(n);t=a.before(i+1),n=e.state.doc.resolve(n).after(i+1);let u=e.state.selection,r=lT(e,t,n),c=e.state.doc,d=c.slice(r.from,r.to),R,p;e.input.lastKeyCode===8&&Date.now()-100<e.input.lastKeyCodeTime?(R=e.state.selection.to,p="end"):(R=e.state.selection.from,p="start"),e.input.lastKeyCode=null;let f=cT(d.content,r.doc.content,r.from,R,p);if((qo&&e.input.lastIOSEnter>Date.now()-225||fn)&&l.some(V=>V.nodeType==1&&!aT.test(V.nodeName))&&(!f||f.endA>=f.endB)&&e.someProp("handleKeyDown",V=>V(e,Mo(13,"Enter")))){e.input.lastIOSEnter=0;return}if(!f)if(o&&u instanceof Zt&&!u.empty&&u.$head.sameParent(u.$anchor)&&!e.composing&&!(r.sel&&r.sel.anchor!=r.sel.head))f={start:u.from,endA:u.to,endB:u.to};else{if(r.sel){let V=Yu(e,e.state.doc,r.sel);if(V&&!V.eq(e.state.selection)){let I=e.state.tr.setSelection(V);s&&I.setMeta("composition",s),e.dispatch(I)}}return}e.input.domChangeCount++,e.state.selection.from<e.state.selection.to&&f.start==f.endB&&e.state.selection instanceof Zt&&(f.start>e.state.selection.from&&f.start<=e.state.selection.from+2&&e.state.selection.from>=r.from?f.start=e.state.selection.from:f.endA<e.state.selection.to&&f.endA>=e.state.selection.to-2&&e.state.selection.to<=r.to&&(f.endB+=e.state.selection.to-f.endA,f.endA=e.state.selection.to)),tn&&no<=11&&f.endB==f.start+1&&f.endA==f.start&&f.start>r.from&&r.doc.textBetween(f.start-r.from-1,f.start-r.from+1)==" "&&(f.start--,f.endA--,f.endB--);let h=r.doc.resolveNoCache(f.start-r.from),P=r.doc.resolveNoCache(f.endB-r.from),O=c.resolve(f.start),L=h.sameParent(P)&&h.parent.inlineContent&&O.end()>=f.endA,S;if((qo&&e.input.lastIOSEnter>Date.now()-225&&(!L||l.some(V=>V.nodeName=="DIV"||V.nodeName=="P"))||!L&&h.pos<r.doc.content.size&&!h.sameParent(P)&&(S=vn.findFrom(r.doc.resolve(h.pos+1),1,!0))&&S.head==P.pos)&&e.someProp("handleKeyDown",V=>V(e,Mo(13,"Enter")))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>f.start&&uT(c,f.start,f.endA,h,P)&&e.someProp("handleKeyDown",V=>V(e,Mo(8,"Backspace")))){fn&&_t&&e.domObserver.suppressSelectionUpdates();return}_t&&fn&&f.endB==f.start&&(e.input.lastAndroidDelete=Date.now()),fn&&!L&&h.start()!=P.start()&&P.parentOffset==0&&h.depth==P.depth&&r.sel&&r.sel.anchor==r.sel.head&&r.sel.head==f.endA&&(f.endB-=2,P=r.doc.resolveNoCache(f.endB-r.from),setTimeout(()=>{e.someProp("handleKeyDown",function(V){return V(e,Mo(13,"Enter"))})},20));let X=f.start,M=f.endA,y,Y,T;if(L){if(h.pos==P.pos)tn&&no<=11&&h.parentOffset==0&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>Kn(e),20)),y=e.state.tr.delete(X,M),Y=c.resolve(f.start).marksAcross(c.resolve(f.endA));else if(f.endA==f.endB&&(T=rT(h.parent.content.cut(h.parentOffset,P.parentOffset),O.parent.content.cut(O.parentOffset,f.endA-O.start()))))y=e.state.tr,T.type=="add"?y.addMark(X,M,T.mark):y.removeMark(X,M,T.mark);else if(h.parent.child(h.index()).isText&&h.index()==P.index()-(P.textOffset?0:1)){let V=h.parent.textBetween(h.parentOffset,P.parentOffset);if(e.someProp("handleTextInput",I=>I(e,X,M,V)))return;y=e.state.tr.insertText(V,X,M)}}if(y||(y=e.state.tr.replace(X,M,r.doc.slice(f.start-r.from,f.endB-r.from))),r.sel){let V=Yu(e,y.doc,r.sel);V&&!(_t&&fn&&e.composing&&V.empty&&(f.start!=f.endB||e.input.lastAndroidDelete<Date.now()-100)&&(V.head==X||V.head==y.mapping.map(M)-1)||tn&&V.empty&&V.head==X)&&y.setSelection(V)}Y&&y.ensureMarks(Y),s&&y.setMeta("composition",s),e.dispatch(y.scrollIntoView())}function Yu(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:Li(e,t.resolve(n.anchor),t.resolve(n.head))}function rT(e,t){let n=e.firstChild.marks,o=t.firstChild.marks,l=n,s=o,a,i,u;for(let c=0;c<o.length;c++)l=o[c].removeFromSet(l);for(let c=0;c<n.length;c++)s=n[c].removeFromSet(s);if(l.length==1&&s.length==0)i=l[0],a="add",u=c=>c.mark(i.addToSet(c.marks));else if(l.length==0&&s.length==1)i=s[0],a="remove",u=c=>c.mark(i.removeFromSet(c.marks));else return null;let r=[];for(let c=0;c<t.childCount;c++)r.push(u(t.child(c)));if(ot.from(r).eq(e))return{mark:i,type:a}}function uT(e,t,n,o,l){if(n-t<=l.pos-o.pos||da(o,!0,!1)<l.pos)return!1;let s=e.resolve(t);if(!o.parent.isTextblock){let i=s.nodeAfter;return i!=null&&n==t+i.nodeSize}if(s.parentOffset<s.parent.content.size||!s.parent.isTextblock)return!1;let a=e.resolve(da(s,!0,!0));return!a.parent.isTextblock||a.pos>n||da(a,!0,!1)<n?!1:o.parent.content.cut(o.parentOffset).eq(a.parent.content)}function da(e,t,n){let o=e.depth,l=t?e.end():e.pos;for(;o>0&&(t||e.indexAfter(o)==e.node(o).childCount);)o--,l++,t=!1;if(n){let s=e.node(o).maybeChild(e.indexAfter(o));for(;s&&!s.isLeaf;)s=s.firstChild,l++}return l}function cT(e,t,n,o,l){let s=e.findDiffStart(t,n);if(s==null)return null;let{a,b:i}=e.findDiffEnd(t,n+e.size,n+t.size);if(l=="end"){let u=Math.max(0,s-Math.min(a,i));o-=a+u-s}if(a<s&&e.size<t.size){let u=o<=s&&o>=a?s-o:0;s-=u,s&&s<t.size&&Wu(t.textBetween(s-1,s+1))&&(s+=u?1:-1),i=s+(i-a),a=s}else if(i<s){let u=o<=s&&o>=i?s-o:0;s-=u,s&&s<e.size&&Wu(e.textBetween(s-1,s+1))&&(s+=u?1:-1),a=s+(a-i),i=s}return{start:s,endA:a,endB:i}}function Wu(e){if(e.length!=2)return!1;let t=e.charCodeAt(0),n=e.charCodeAt(1);return t>=56320&&t<=57343&&n>=55296&&n<=56319}class dT{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 I1,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(Au),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=Fu(this),Qu(this),this.nodeViews=Zu(this),this.docView=fu(this.state.doc,Uu(this),ca(this),this.dom,this),this.domObserver=new eT(this,(o,l,s,a)=>iT(this,o,l,s,a)),this.domObserver.start(),Y1(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&&ka(this);let n=this._props;this._props=t,t.plugins&&(t.plugins.forEach(Au),this.directPlugins=t.plugins),this.updateStateInner(t.state,n)}setProps(t){let n={};for(let o in this._props)n[o]=this._props[o];n.state=this.state;for(let o in t)n[o]=t[o];this.update(n)}updateState(t){this.updateStateInner(t,this._props)}updateStateInner(t,n){var o;let l=this.state,s=!1,a=!1;t.storedMarks&&this.composing&&(lR(this),a=!0),this.state=t;let i=l.plugins!=t.plugins||this._props.plugins!=n.plugins;if(i||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let p=Zu(this);fT(p,this.nodeViews)&&(this.nodeViews=p,s=!0)}(i||n.handleDOMEvents!=this._props.handleDOMEvents)&&ka(this),this.editable=Fu(this),Qu(this);let u=ca(this),r=Uu(this),c=l.plugins!=t.plugins&&!l.doc.eq(t.doc)?"reset":t.scrollToSelection>l.scrollToSelection?"to selection":"preserve",d=s||!this.docView.matchesNode(t.doc,r,u);(d||!t.selection.eq(l.selection))&&(a=!0);let R=c=="preserve"&&a&&this.dom.style.overflowAnchor==null&&JX(this);if(a){this.domObserver.stop();let p=d&&(tn||_t)&&!this.composing&&!l.selection.empty&&!t.selection.empty&&RT(l.selection,t.selection);if(d){let f=_t?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=w1(this)),(s||!this.docView.update(t.doc,r,u,this))&&(this.docView.updateOuterDeco(r),this.docView.destroy(),this.docView=fu(t.doc,r,u,this.dom,this)),f&&!this.trackWrites&&(p=!0)}p||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&v1(this))?Kn(this,p):(kd(this,t.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(l),!((o=this.dragging)===null||o===void 0)&&o.node&&!l.doc.eq(t.doc)&&this.updateDraggedNode(this.dragging,l),c=="reset"?this.dom.scrollTop=0:c=="to selection"?this.scrollToSelection():R&&xX(R)}scrollToSelection(){let t=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof ut){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&iu(this,n.getBoundingClientRect(),t)}else iu(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;n<this.directPlugins.length;n++){let o=this.directPlugins[n];o.spec.view&&this.pluginViews.push(o.spec.view(this))}for(let n=0;n<this.state.plugins.length;n++){let o=this.state.plugins[n];o.spec.view&&this.pluginViews.push(o.spec.view(this))}}else for(let n=0;n<this.pluginViews.length;n++){let o=this.pluginViews[n];o.update&&o.update(this,t)}}updateDraggedNode(t,n){let o=t.node,l=-1;if(this.state.doc.nodeAt(o.from)==o.node)l=o.from;else{let s=o.from+(this.state.doc.content.size-n.doc.content.size);(s>0&&this.state.doc.nodeAt(s))==o.node&&(l=s)}this.dragging=new aR(t.slice,t.move,l<0?void 0:ut.create(this.state.doc,l))}someProp(t,n){let o=this._props&&this._props[t],l;if(o!=null&&(l=n?n(o):o))return l;for(let a=0;a<this.directPlugins.length;a++){let i=this.directPlugins[a].props[t];if(i!=null&&(l=n?n(i):i))return l}let s=this.state.plugins;if(s)for(let a=0;a<s.length;a++){let i=s[a].props[t];if(i!=null&&(l=n?n(i):i))return l}}hasFocus(){if(tn){let t=this.root.activeElement;if(t==this.dom)return!0;if(!t||!this.dom.contains(t))return!1;for(;t&&this.dom!=t&&this.dom.contains(t);){if(t.contentEditable=="false")return!1;t=t.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&$X(this.dom),Kn(this),this.domObserver.start()}get root(){let t=this._root;if(t==null){for(let n=this.dom.parentNode;n;n=n.parentNode)if(n.nodeType==9||n.nodeType==11&&n.host)return n.getSelection||(Object.getPrototypeOf(n).getSelection=()=>n.ownerDocument.getSelection()),this._root=n}return t||document}updateRoot(){this._root=null}posAtCoords(t){return qX(this,t)}coordsAtPos(t,n=1){return Ad(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,o=-1){let l=this.docView.posFromDOM(t,n,o);if(l==null)throw new RangeError("DOM position not inside the editor");return l}endOfTextblock(t,n){return l1(this,n||this.state,t)}pasteHTML(t,n){return Vl(this,"",t,!1,n||new ClipboardEvent("paste"))}pasteText(t,n){return Vl(this,t,null,!0,n||new ClipboardEvent("paste"))}destroy(){this.docView&&(W1(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],ca(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,FX())}get isDestroyed(){return this.docView==null}dispatchEvent(t){return Q1(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 Dt&&this.root.nodeType===11&&HX(this.dom.ownerDocument)==this.dom&&nT(this,t)||t}domSelection(){return this.root.getSelection()}}function Uu(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 o in n)o=="class"?t.class+=" "+n[o]:o=="style"?t.style=(t.style?t.style+";":"")+n[o]:!t[o]&&o!="contenteditable"&&o!="nodeName"&&(t[o]=String(n[o]))}),t.translate||(t.translate="no"),[sn.node(0,e.state.doc.content.size,t)]}function Qu(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:sn.widget(e.state.selection.head,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function Fu(e){return!e.someProp("editable",t=>t(e.state)===!1)}function RT(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 Zu(e){let t=Object.create(null);function n(o){for(let l in o)Object.prototype.hasOwnProperty.call(t,l)||(t[l]=o[l])}return e.someProp("nodeViews",n),e.someProp("markViews",n),t}function fT(e,t){let n=0,o=0;for(let l in e){if(e[l]!=t[l])return!0;n++}for(let l in t)o++;return n!=o}function Au(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 ro={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:"'"},Ps={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},pT=typeof navigator<"u"&&/Mac/.test(navigator.platform),hT=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var Ft=0;Ft<10;Ft++)ro[48+Ft]=ro[96+Ft]=String(Ft);for(var Ft=1;Ft<=24;Ft++)ro[Ft+111]="F"+Ft;for(var Ft=65;Ft<=90;Ft++)ro[Ft]=String.fromCharCode(Ft+32),Ps[Ft]=String.fromCharCode(Ft);for(var Ra in ro)Ps.hasOwnProperty(Ra)||(Ps[Ra]=ro[Ra]);function vT(e){var t=pT&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||hT&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!t&&e.key||(e.shiftKey?Ps:ro)[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 mT=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function MT(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n=="Space"&&(n=" ");let o,l,s,a;for(let i=0;i<t.length-1;i++){let u=t[i];if(/^(cmd|meta|m)$/i.test(u))a=!0;else if(/^a(lt)?$/i.test(u))o=!0;else if(/^(c|ctrl|control)$/i.test(u))l=!0;else if(/^s(hift)?$/i.test(u))s=!0;else if(/^mod$/i.test(u))mT?a=!0:l=!0;else throw new Error("Unrecognized modifier name: "+u)}return o&&(n="Alt-"+n),l&&(n="Ctrl-"+n),a&&(n="Meta-"+n),s&&(n="Shift-"+n),n}function gT(e){let t=Object.create(null);for(let n in e)t[MT(n)]=e[n];return t}function fa(e,t,n=!0){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),n&&t.shiftKey&&(e="Shift-"+e),e}function Ku(e){return new ll({props:{handleKeyDown:dR(e)}})}function dR(e){let t=gT(e);return function(n,o){let l=vT(o),s,a=t[fa(l,o)];if(a&&a(n.state,n.dispatch,n))return!0;if(l.length==1&&l!=" "){if(o.shiftKey){let i=t[fa(l,o,!1)];if(i&&i(n.state,n.dispatch,n))return!0}if((o.shiftKey||o.altKey||o.metaKey||l.charCodeAt(0)>127)&&(s=ro[o.keyCode])&&s!=l){let i=t[fa(s,o)];if(i&&i(n.state,n.dispatch,n))return!0}}return!1}}var Ns=200,Ut=function(){};Ut.prototype.append=function(t){return t.length?(t=Ut.from(t),!this.length&&t||t.length<Ns&&this.leafAppend(t)||this.length<Ns&&t.leafPrepend(this)||this.appendInner(t)):this};Ut.prototype.prepend=function(t){return t.length?Ut.from(t).append(this):this};Ut.prototype.appendInner=function(t){return new ST(this,t)};Ut.prototype.slice=function(t,n){return t===void 0&&(t=0),n===void 0&&(n=this.length),t>=n?Ut.empty:this.sliceInner(Math.max(0,t),Math.min(this.length,n))};Ut.prototype.get=function(t){if(!(t<0||t>=this.length))return this.getInner(t)};Ut.prototype.forEach=function(t,n,o){n===void 0&&(n=0),o===void 0&&(o=this.length),n<=o?this.forEachInner(t,n,o,0):this.forEachInvertedInner(t,n,o,0)};Ut.prototype.map=function(t,n,o){n===void 0&&(n=0),o===void 0&&(o=this.length);var l=[];return this.forEach(function(s,a){return l.push(t(s,a))},n,o),l};Ut.from=function(t){return t instanceof Ut?t:t&&t.length?new RR(t):Ut.empty};var RR=function(e){function t(o){e.call(this),this.values=o}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(l,s){return l==0&&s==this.length?this:new t(this.values.slice(l,s))},t.prototype.getInner=function(l){return this.values[l]},t.prototype.forEachInner=function(l,s,a,i){for(var u=s;u<a;u++)if(l(this.values[u],i+u)===!1)return!1},t.prototype.forEachInvertedInner=function(l,s,a,i){for(var u=s-1;u>=a;u--)if(l(this.values[u],i+u)===!1)return!1},t.prototype.leafAppend=function(l){if(this.length+l.length<=Ns)return new t(this.values.concat(l.flatten()))},t.prototype.leafPrepend=function(l){if(this.length+l.length<=Ns)return new t(l.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(Ut);Ut.empty=new RR([]);var ST=function(e){function t(n,o){e.call(this),this.left=n,this.right=o,this.length=n.length+o.length,this.depth=Math.max(n.depth,o.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(o){return o<this.left.length?this.left.get(o):this.right.get(o-this.left.length)},t.prototype.forEachInner=function(o,l,s,a){var i=this.left.length;if(l<i&&this.left.forEachInner(o,l,Math.min(s,i),a)===!1||s>i&&this.right.forEachInner(o,Math.max(l-i,0),Math.min(this.length,s)-i,a+i)===!1)return!1},t.prototype.forEachInvertedInner=function(o,l,s,a){var i=this.left.length;if(l>i&&this.right.forEachInvertedInner(o,l-i,Math.max(s,i)-i,a+i)===!1||s<i&&this.left.forEachInvertedInner(o,Math.min(l,i),s,a)===!1)return!1},t.prototype.sliceInner=function(o,l){if(o==0&&l==this.length)return this;var s=this.left.length;return l<=s?this.left.slice(o,l):o>=s?this.right.slice(o-s,l-s):this.left.slice(o,s).append(this.right.slice(0,l-s))},t.prototype.leafAppend=function(o){var l=this.right.leafAppend(o);if(l)return new t(this.left,l)},t.prototype.leafPrepend=function(o){var l=this.left.leafPrepend(o);if(l)return new t(l,this.right)},t.prototype.appendInner=function(o){return this.left.depth>=Math.max(this.right.depth,o.depth)+1?new t(this.left,new t(this.right,o)):new t(this,o)},t}(Ut);const OT=500;class pn{constructor(t,n){this.items=t,this.eventCount=n}popEvent(t,n){if(this.eventCount==0)return null;let o=this.items.length;for(;;o--)if(this.items.get(o-1).selection){--o;break}let l,s;n&&(l=this.remapping(o,this.items.length),s=l.maps.length);let a=t.tr,i,u,r=[],c=[];return this.items.forEach((d,R)=>{if(!d.step){l||(l=this.remapping(o,R+1),s=l.maps.length),s--,c.push(d);return}if(l){c.push(new Xn(d.map));let p=d.step.map(l.slice(s)),f;p&&a.maybeStep(p).doc&&(f=a.mapping.maps[a.mapping.maps.length-1],r.push(new Xn(f,void 0,void 0,r.length+c.length))),s--,f&&l.appendMap(f,s)}else a.maybeStep(d.step);if(d.selection)return i=l?d.selection.map(l.slice(s)):d.selection,u=new pn(this.items.slice(0,o).append(c.reverse().concat(r)),this.eventCount-1),!1},this.items.length,0),{remaining:u,transform:a,selection:i}}addTransform(t,n,o,l){let s=[],a=this.eventCount,i=this.items,u=!l&&i.length?i.get(i.length-1):null;for(let c=0;c<t.steps.length;c++){let d=t.steps[c].invert(t.docs[c]),R=new Xn(t.mapping.maps[c],d,n),p;(p=u&&u.merge(R))&&(R=p,c?s.pop():i=i.slice(0,i.length-1)),s.push(R),n&&(a++,n=void 0),l||(u=R)}let r=a-o.depth;return r>NT&&(i=PT(i,r),a-=r),new pn(i.append(s),a)}remapping(t,n){let o=new ep;return this.items.forEach((l,s)=>{let a=l.mirrorOffset!=null&&s-l.mirrorOffset>=t?o.maps.length-l.mirrorOffset:void 0;o.appendMap(l.map,a)},t,n),o}addMaps(t){return this.eventCount==0?this:new pn(this.items.append(t.map(n=>new Xn(n))),this.eventCount)}rebased(t,n){if(!this.eventCount)return this;let o=[],l=Math.max(0,this.items.length-n),s=t.mapping,a=t.steps.length,i=this.eventCount;this.items.forEach(R=>{R.selection&&i--},l);let u=n;this.items.forEach(R=>{let p=s.getMirror(--u);if(p==null)return;a=Math.min(a,p);let f=s.maps[p];if(R.step){let h=t.steps[p].invert(t.docs[p]),P=R.selection&&R.selection.map(s.slice(u+1,p));P&&i++,o.push(new Xn(f,h,P))}else o.push(new Xn(f))},l);let r=[];for(let R=n;R<a;R++)r.push(new Xn(s.maps[R]));let c=this.items.slice(0,l).append(r).append(o),d=new pn(c,i);return d.emptyItemCount()>OT&&(d=d.compress(this.items.length-o.length)),d}emptyItemCount(){let t=0;return this.items.forEach(n=>{n.step||t++}),t}compress(t=this.items.length){let n=this.remapping(0,t),o=n.maps.length,l=[],s=0;return this.items.forEach((a,i)=>{if(i>=t)l.push(a),a.selection&&s++;else if(a.step){let u=a.step.map(n.slice(o)),r=u&&u.getMap();if(o--,r&&n.appendMap(r,o),u){let c=a.selection&&a.selection.map(n.slice(o));c&&s++;let d=new Xn(r.invert(),u,c),R,p=l.length-1;(R=l.length&&l[p].merge(d))?l[p]=R:l.push(d)}}else a.map&&o--},this.items.length,0),new pn(Ut.from(l.reverse()),s)}}pn.empty=new pn(Ut.empty,0);function PT(e,t){let n;return e.forEach((o,l)=>{if(o.selection&&t--==0)return n=l,!1}),e.slice(n)}class Xn{constructor(t,n,o,l){this.map=t,this.step=n,this.selection=o,this.mirrorOffset=l}merge(t){if(this.step&&t.step&&!t.selection){let n=t.step.merge(this.step);if(n)return new Xn(n.getMap().invert(),n,this.selection)}}}class Bn{constructor(t,n,o,l,s){this.done=t,this.undone=n,this.prevRanges=o,this.prevTime=l,this.prevComposition=s}}const NT=20;function XT(e,t,n,o){let l=n.getMeta(so),s;if(l)return l.historyState;n.getMeta(VT)&&(e=new Bn(e.done,e.undone,null,0,-1));let a=n.getMeta("appendedTransaction");if(n.steps.length==0)return e;if(a&&a.getMeta(so))return a.getMeta(so).redo?new Bn(e.done.addTransform(n,void 0,o,ls(t)),e.undone,_u(n.mapping.maps[n.steps.length-1]),e.prevTime,e.prevComposition):new Bn(e.done,e.undone.addTransform(n,void 0,o,ls(t)),null,e.prevTime,e.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(a&&a.getMeta("addToHistory")===!1)){let i=n.getMeta("composition"),u=e.prevTime==0||!a&&e.prevComposition!=i&&(e.prevTime<(n.time||0)-o.newGroupDelay||!TT(n,e.prevRanges)),r=a?pa(e.prevRanges,n.mapping):_u(n.mapping.maps[n.steps.length-1]);return new Bn(e.done.addTransform(n,u?t.selection.getBookmark():void 0,o,ls(t)),pn.empty,r,n.time,i??e.prevComposition)}else return(s=n.getMeta("rebased"))?new Bn(e.done.rebased(n,s),e.undone.rebased(n,s),pa(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new Bn(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),pa(e.prevRanges,n.mapping),e.prevTime,e.prevComposition)}function TT(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach((o,l)=>{for(let s=0;s<t.length;s+=2)o<=t[s+1]&&l>=t[s]&&(n=!0)}),n}function _u(e){let t=[];return e.forEach((n,o,l,s)=>t.push(l,s)),t}function pa(e,t){if(!e)return null;let n=[];for(let o=0;o<e.length;o+=2){let l=t.map(e[o],1),s=t.map(e[o+1],-1);l<=s&&n.push(l,s)}return n}function fR(e,t,n,o){let l=ls(t),s=so.get(t).spec.config,a=(o?e.undone:e.done).popEvent(t,l);if(!a)return;let i=a.selection.resolve(a.transform.doc),u=(o?e.done:e.undone).addTransform(a.transform,t.selection.getBookmark(),s,l),r=new Bn(o?u:a.remaining,o?a.remaining:u,null,0,-1);n(a.transform.setSelection(i).setMeta(so,{redo:o,historyState:r}).scrollIntoView())}let ha=!1,Hu=null;function ls(e){let t=e.plugins;if(Hu!=t){ha=!1,Hu=t;for(let n=0;n<t.length;n++)if(t[n].spec.historyPreserveItems){ha=!0;break}}return ha}const so=new fc("history"),VT=new fc("closeHistory");function yT(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new ll({key:so,state:{init(){return new Bn(pn.empty,pn.empty,null,0,-1)},apply(t,n,o){return XT(n,o,t,e)}},config:e,props:{handleDOMEvents:{beforeinput(t,n){let o=n.inputType,l=o=="historyUndo"?pR:o=="historyRedo"?hR:null;return l?(n.preventDefault(),l(t.state,t.dispatch)):!1}}}})}const pR=(e,t)=>{let n=so.getState(e);return!n||n.done.eventCount==0?!1:(t&&fR(n,e,t,!1),!0)},hR=(e,t)=>{let n=so.getState(e);return!n||n.undone.eventCount==0?!1:(t&&fR(n,e,t,!0),!0)};function LT(e={}){return new ll({view(t){return new bT(t,e)}})}class bT{constructor(t,n){var o;this.editorView=t,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(o=n.width)!==null&&o!==void 0?o:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(l=>{let s=a=>{this[l](a)};return t.dom.addEventListener(l,s),{name:l,handler:s}})}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,o;if(n){let i=t.nodeBefore,u=t.nodeAfter;if(i||u){let r=this.editorView.nodeDOM(this.cursorPos-(i?i.nodeSize:0));if(r){let c=r.getBoundingClientRect(),d=i?c.bottom:c.top;i&&u&&(d=(d+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),o={left:c.left,right:c.right,top:d-this.width/2,bottom:d+this.width/2}}}}if(!o){let i=this.editorView.coordsAtPos(this.cursorPos);o={left:i.left-this.width/2,right:i.left+this.width/2,top:i.top,bottom:i.bottom}}let l=this.editorView.dom.offsetParent;this.element||(this.element=l.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 s,a;if(!l||l==document.body&&getComputedStyle(l).position=="static")s=-pageXOffset,a=-pageYOffset;else{let i=l.getBoundingClientRect();s=i.left-l.scrollLeft,a=i.top-l.scrollTop}this.element.style.left=o.left-s+"px",this.element.style.top=o.top-a+"px",this.element.style.width=o.right-o.left+"px",this.element.style.height=o.bottom-o.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}),o=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),l=o&&o.type.spec.disableDropCursor,s=typeof l=="function"?l(this.editorView,n,t):l;if(n&&!s){let a=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let i=dc(this.editorView.state.doc,a,this.editorView.dragging.slice);i!=null&&(a=i)}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 pt extends vn{constructor(t){super(t,t)}map(t,n){let o=t.resolve(n.map(this.head));return pt.valid(o)?new pt(o):vn.near(o)}content(){return $t.empty}eq(t){return t instanceof pt&&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 pt(t.resolve(n.pos))}getBookmark(){return new Qi(this.anchor)}static valid(t){let n=t.parent;if(n.isTextblock||!IT(t)||!YT(t))return!1;let o=n.type.spec.allowGapCursor;if(o!=null)return o;let l=n.contentMatchAt(t.index()).defaultType;return l&&l.isTextblock}static findGapCursorFrom(t,n,o=!1){e:for(;;){if(!o&&pt.valid(t))return t;let l=t.pos,s=null;for(let a=t.depth;;a--){let i=t.node(a);if(n>0?t.indexAfter(a)<i.childCount:t.index(a)>0){s=i.child(n>0?t.indexAfter(a):t.index(a)-1);break}else if(a==0)return null;l+=n;let u=t.doc.resolve(l);if(pt.valid(u))return u}for(;;){let a=n>0?s.firstChild:s.lastChild;if(!a){if(s.isAtom&&!s.isText&&!ut.isSelectable(s)){t=t.doc.resolve(l+s.nodeSize*n),o=!1;continue e}break}s=a,l+=n;let i=t.doc.resolve(l);if(pt.valid(i))return i}return null}}}pt.prototype.visible=!1;pt.findFrom=pt.findGapCursorFrom;vn.jsonID("gapcursor",pt);class Qi{constructor(t){this.pos=t}map(t){return new Qi(t.map(this.pos))}resolve(t){let n=t.resolve(this.pos);return pt.valid(n)?new pt(n):vn.near(n)}}function IT(e){for(let t=e.depth;t>=0;t--){let n=e.index(t),o=e.node(t);if(n==0){if(o.type.spec.isolating)return!0;continue}for(let l=o.child(n-1);;l=l.lastChild){if(l.childCount==0&&!l.inlineContent||l.isAtom||l.type.spec.isolating)return!0;if(l.inlineContent)return!1}}return!0}function YT(e){for(let t=e.depth;t>=0;t--){let n=e.indexAfter(t),o=e.node(t);if(n==o.childCount){if(o.type.spec.isolating)return!0;continue}for(let l=o.child(n);;l=l.firstChild){if(l.childCount==0&&!l.inlineContent||l.isAtom||l.type.spec.isolating)return!0;if(l.inlineContent)return!1}}return!0}function WT(){return new ll({props:{decorations:ZT,createSelectionBetween(e,t,n){return t.pos==n.pos&&pt.valid(n)?new pt(n):null},handleClick:QT,handleKeyDown:UT,handleDOMEvents:{beforeinput:FT}}})}const UT=dR({ArrowLeft:jl("horiz",-1),ArrowRight:jl("horiz",1),ArrowUp:jl("vert",-1),ArrowDown:jl("vert",1)});function jl(e,t){const n=e=="vert"?t>0?"down":"up":t>0?"right":"left";return function(o,l,s){let a=o.selection,i=t>0?a.$to:a.$from,u=a.empty;if(a instanceof Zt){if(!s.endOfTextblock(n)||i.depth==0)return!1;u=!1,i=o.doc.resolve(t>0?i.after():i.before())}let r=pt.findGapCursorFrom(i,t,u);return r?(l&&l(o.tr.setSelection(new pt(r))),!0):!1}}function QT(e,t,n){if(!e||!e.editable)return!1;let o=e.state.doc.resolve(t);if(!pt.valid(o))return!1;let l=e.posAtCoords({left:n.clientX,top:n.clientY});return l&&l.inside>-1&&ut.isSelectable(e.state.doc.nodeAt(l.inside))?!1:(e.dispatch(e.state.tr.setSelection(new pt(o))),!0)}function FT(e,t){if(t.inputType!="insertCompositionText"||!(e.state.selection instanceof pt))return!1;let{$from:n}=e.state.selection,o=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!o)return!1;let l=ot.empty;for(let a=o.length-1;a>=0;a--)l=ot.from(o[a].createAndFill(null,l));let s=e.state.tr.replace(n.pos,n.pos,new $t(l,0,0));return s.setSelection(Zt.near(s.doc.resolve(n.pos+1))),e.dispatch(s),!1}function ZT(e){if(!(e.selection instanceof pt))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",Pt.create(e.doc,[sn.widget(e.selection.head,t,{key:"gapcursor"})])}const AT=["li",0],KT={parseDOM:[{tag:"li"}],toDOM(){return AT},defining:!0};function _T(e,t=null){return function(n,o){let{$from:l,$to:s}=n.selection,a=l.blockRange(s),i=!1,u=a;if(!a)return!1;if(a.depth>=2&&l.node(a.depth-1).type.compatibleContent(e)&&a.startIndex==0){if(l.index(a.depth-1)==0)return!1;let c=n.doc.resolve(a.start-2);u=new Oa(c,c,a.depth),a.endIndex<a.parent.childCount&&(a=new Oa(l,n.doc.resolve(s.end(a.depth)),a.depth)),i=!0}let r=pc(u,e,t,a);return r?(o&&o(HT(n.tr,a,r,i,e).scrollIntoView()),!0):!1}}function HT(e,t,n,o,l){let s=ot.empty;for(let c=n.length-1;c>=0;c--)s=ot.from(n[c].type.create(n[c].attrs,s));e.step(new bs(t.start-(o?2:0),t.end,t.start,t.end,new $t(s,0,0),n.length,!0));let a=0;for(let c=0;c<n.length;c++)n[c].type==l&&(a=c+1);let i=n.length-a,u=t.start+n.length-(o?2:0),r=t.parent;for(let c=t.startIndex,d=t.endIndex,R=!0;c<d;c++,R=!1)!R&&hc(e.doc,u,i)&&(e.split(u,i),u+=2*i),u+=r.child(c).nodeSize;return e}function CT(e,t){return function(n,o){let{$from:l,$to:s,node:a}=n.selection;if(a&&a.isBlock||l.depth<2||!l.sameParent(s))return!1;let i=l.node(-1);if(i.type!=e)return!1;if(l.parent.content.size==0&&l.node(-1).childCount==l.indexAfter(-1)){if(l.depth==3||l.node(-3).type!=e||l.index(-2)!=l.node(-2).childCount-1)return!1;if(o){let d=ot.empty,R=l.index(-1)?1:l.index(-2)?2:3;for(let O=l.depth-R;O>=l.depth-3;O--)d=ot.from(l.node(O).copy(d));let p=l.indexAfter(-1)<l.node(-2).childCount?1:l.indexAfter(-2)<l.node(-3).childCount?2:3;d=d.append(ot.from(e.createAndFill()));let f=l.before(l.depth-(R-1)),h=n.tr.replace(f,l.after(-p),new $t(d,4-R,0)),P=-1;h.doc.nodesBetween(f,h.doc.content.size,(O,L)=>{if(P>-1)return!1;O.isTextblock&&O.content.size==0&&(P=L+1)}),P>-1&&h.setSelection(vn.near(h.doc.resolve(P))),o(h.scrollIntoView())}return!0}let u=s.pos==l.end()?i.contentMatchAt(0).defaultType:null,r=n.tr.delete(l.pos,s.pos),c=u?[null,{type:u}]:void 0;return hc(r.doc,l.pos,2,c)?(o&&o(r.split(l.pos,2,c).scrollIntoView()),!0):!1}}function vR(e){return function(t,n){let{$from:o,$to:l}=t.selection,s=o.blockRange(l,a=>a.childCount>0&&a.firstChild.type==e);return s?n?o.node(s.depth-1).type==e?GT(t,n,e,s):ET(t,n,s):!0:!1}}function GT(e,t,n,o){let l=e.tr,s=o.end,a=o.$to.end(o.depth);s<a&&(l.step(new bs(s-1,a,s,a,new $t(ot.from(n.create(null,o.parent.copy())),1,0),1,!0)),o=new Oa(l.doc.resolve(o.$from.pos),l.doc.resolve(a),o.depth));const i=tp(o);if(i==null)return!1;l.lift(o,i);let u=l.mapping.map(s,-1)-1;return vc(l.doc,u)&&l.join(u),t(l.scrollIntoView()),!0}function ET(e,t,n){let o=e.tr,l=n.parent;for(let p=n.end,f=n.endIndex-1,h=n.startIndex;f>h;f--)p-=l.child(f).nodeSize,o.delete(p-1,p+1);let s=o.doc.resolve(n.start),a=s.nodeAfter;if(o.mapping.map(n.end)!=n.start+s.nodeAfter.nodeSize)return!1;let i=n.startIndex==0,u=n.endIndex==l.childCount,r=s.node(-1),c=s.index(-1);if(!r.canReplace(c+(i?0:1),c+1,a.content.append(u?ot.empty:ot.from(l))))return!1;let d=s.pos,R=d+a.nodeSize;return o.step(new bs(d-(i?1:0),R+(u?1:0),d+1,R-1,new $t((i?ot.empty:ot.from(l.copy(ot.empty))).append(u?ot.empty:ot.from(l.copy(ot.empty))),i?0:1,u?0:1),i?0:1)),t(o.scrollIntoView()),!0}function Cu(e){return function(t,n){let{$from:o,$to:l}=t.selection,s=o.blockRange(l,r=>r.childCount>0&&r.firstChild.type==e);if(!s)return!1;let a=s.startIndex;if(a==0)return!1;let i=s.parent,u=i.child(a-1);if(u.type!=e)return!1;if(n){let r=u.lastChild&&u.lastChild.type==i.type,c=ot.from(r?e.create():null),d=new $t(ot.from(e.create(null,ot.from(i.type.create(null,c)))),r?3:1,0),R=s.start,p=s.end;n(t.tr.step(new bs(R-(r?3:1),p,R,p,d,1,!0)).scrollIntoView())}return!0}}class Cn{constructor(t,n,o={}){this.match=t,this.match=t,this.handler=typeof n=="string"?wT(n):n,this.undoable=o.undoable!==!1,this.inCode=o.inCode||!1}}function wT(e){return function(t,n,o,l){let s=e;if(n[1]){let a=n[0].lastIndexOf(n[1]);s+=n[0].slice(a+n[1].length),o+=a;let i=o-l;i>0&&(s=n[0].slice(a-i,a)+s,o=l)}return t.tr.insertText(s,o,l)}}const kT=500;function JT({rules:e}){let t=new ll({state:{init(){return null},apply(n,o){let l=n.getMeta(this);return l||(n.selectionSet||n.docChanged?null:o)}},props:{handleTextInput(n,o,l,s){return Gu(n,o,l,s,e,t)},handleDOMEvents:{compositionend:n=>{setTimeout(()=>{let{$cursor:o}=n.state.selection;o&&Gu(n,o.pos,o.pos,"",e,t)})}}},isInputRules:!0});return t}function Gu(e,t,n,o,l,s){if(e.composing)return!1;let a=e.state,i=a.doc.resolve(t),u=i.parent.textBetween(Math.max(0,i.parentOffset-kT),i.parentOffset,null,"")+o;for(let r=0;r<l.length;r++){let c=l[r];if(i.parent.type.spec.code){if(!c.inCode)continue}else if(c.inCode==="only")continue;let d=c.match.exec(u),R=d&&c.handler(a,d,t-(d[0].length-o.length),n);if(R)return c.undoable&&R.setMeta(s,{transform:R,from:t,to:n,text:o}),e.dispatch(R),!0}return!1}const xT=(e,t)=>{let n=e.plugins;for(let o=0;o<n.length;o++){let l=n[o],s;if(l.spec.isInputRules&&(s=l.getState(e))){if(t){let a=e.tr,i=s.transform;for(let u=i.steps.length-1;u>=0;u--)a.step(i.steps[u].invert(i.docs[u]));if(s.text){let u=a.doc.resolve(s.from).marks();a.replaceWith(s.from,s.to,e.schema.text(s.text,u))}else a.delete(s.from,s.to);t(a)}return!0}}return!1},$T=new Cn(/--$/,"—"),DT=new Cn(/\.\.\.$/,"…"),BT=new Cn(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/,"“"),zT=new Cn(/"$/,"”"),jT=new Cn(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/,"‘"),qT=new Cn(/'$/,"’"),e0=[BT,zT,jT,qT];function Fi(e,t,n=null,o){return new Cn(e,(l,s,a,i)=>{let u=n instanceof Function?n(s):n,r=l.tr.delete(a,i),c=r.doc.resolve(a),d=c.blockRange(),R=d&&pc(d,t,u);if(!R)return null;r.wrap(d,R);let p=r.doc.resolve(a-1).nodeBefore;return p&&p.type==t&&vc(r.doc,a-1)&&(!o||o(s,p))&&r.join(a-1),r})}const t0=e=>{const t={},n=(o,l)=>t[o]=l;return n("Alt-ArrowUp",op),n("Alt-ArrowDown",lp),n("Mod-z",pR),n("Mod-y",hR),n("Backspace",xT),n("Escape",sp),n("Mod-b",St(e.marks.strong)),n("Mod-i",St(e.marks.em)),n("Mod-u",St(e.marks.underline)),n("Mod-d",St(e.marks.strikethrough)),n("Mod-e",St(e.marks.code)),n("Mod-;",St(e.marks.superscript)),n("Mod-'",St(e.marks.subscript)),n("Enter",np(CT(e.nodes.list_item),up,rp,ip,ap)),n("Mod-[",vR(e.nodes.list_item)),n("Mod-]",Cu(e.nodes.list_item)),n("Tab",Cu(e.nodes.list_item)),t},n0=e=>Fi(/^\s*>\s$/,e),o0=e=>Fi(/^(\d+)\.\s$/,e,t=>({order:+t[1]}),(t,n)=>n.childCount+n.attrs.order===+t[1]),l0=e=>Fi(/^\s*([-+*])\s$/,e),s0=()=>{const e=/(?:^|\s)((?:`)((?:[^`]+))(?:`))$/;return new Cn(e,(t,n,o,l)=>{const{schema:s}=t,a=t.tr.insertText(`${n[2]} `,o,l),i=s.marks.code.create();return a.addMark(o,o+n[2].length,i)})},a0=()=>{const e=/(?:https?:\/\/)?[\w-]+(?:\.[\w-]+)+\.?(?:\d+)?(?:\/\S*)?$/;return new Cn(e,(t,n,o,l)=>{const{schema:s}=t,a=t.tr.insertText(n[0],o,l),i=s.marks.link.create({href:n[0],title:n[0]});return a.addMark(o,o+n[0].length,i)})},i0=e=>{const t=[...e0,DT,$T];return t.push(n0(e.nodes.blockquote)),t.push(o0(e.nodes.ordered_list)),t.push(l0(e.nodes.bullet_list)),t.push(s0()),t.push(a0()),JT({rules:t})},r0=e=>e.type.name==="paragraph"&&e.nodeSize===2,u0=e=>new ll({props:{decorations(t){const{$from:n}=t.selection;if(r0(n.parent)){const o=sn.node(n.before(),n.after(),{"data-placeholder":e});return Pt.create(t.doc,[o])}}}}),c0=(e,t)=>{const n=t==null?void 0:t.placeholder,o=[i0(e),Ku(t0(e)),Ku(cp),LT(),WT(),yT()];return n&&o.push(u0(n)),o},d0=["p",0],R0=["blockquote",0],f0=["hr"],p0=["pre",["code",0]],h0=["br"],mR={doc:{content:"block+"},paragraph:{content:"inline*",group:"block",parseDOM:[{tag:"p"}],toDOM(){return d0}},blockquote:{content:"block+",group:"block",defining:!0,parseDOM:[{tag:"blockquote"}],toDOM(){return R0}},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM(){return f0}},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 p0}},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:o}=e.attrs;return["img",{src:t,alt:n,title:o}]}},hard_break:{inline:!0,group:"inline",selectable:!1,parseDOM:[{tag:"br"}],toDOM(){return h0}}},v0=["em",0],m0=["strong",0],M0=["code",0],MR={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 v0}},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 m0}},code:{parseDOM:[{tag:"code"}],toDOM(){return M0}}};new mc({nodes:mR,marks:MR});const g0={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:o,fontSize:l,color:s}=e.style;return o&&(n.listStyleType=o),l&&(n.fontsize=l),s&&(n.color=s),n}}],toDOM:e=>{const{order:t,listStyleType:n,fontsize:o,color:l}=e.attrs;let s="";n&&(s+=`list-style-type: ${n};`),o&&(s+=`font-size: ${o};`),l&&(s+=`color: ${l};`);const a={style:s};return t!==1&&(a.start=t),["ol",a,0]}},S0={attrs:{listStyleType:{default:""},fontsize:{default:""},color:{default:""}},content:"list_item+",group:"block",parseDOM:[{tag:"ul",getAttrs:e=>{const t={},{listStyleType:n,fontSize:o,color:l}=e.style;return n&&(t.listStyleType=n),o&&(t.fontsize=o),l&&(t.color=l),t}}],toDOM:e=>{const{listStyleType:t,fontsize:n,color:o}=e.attrs;let l="";return t&&(l+=`list-style-type: ${t};`),n&&(l+=`font-size: ${n};`),o&&(l+=`color: ${o};`),["ul",{style:l},0]}},O0={...KT,content:"paragraph block*",group:"block"},P0={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 o=e.getAttribute("align")||t||"";o=/(left|right|center|justify)/.test(o)?o:"";let l=0;n&&(/em/.test(n)?l=parseInt(n):/px/.test(n)&&(l=Math.floor(parseInt(n)/20),l||(l=1)));const s=+(e.getAttribute("data-indent")||0);return{align:o,indent:s,textIndent:l}}},{tag:"img",ignore:!0},{tag:"pre",skip:!0}],toDOM:e=>{const{align:t,indent:n,textIndent:o}=e.attrs;let l="";t&&t!=="left"&&(l+=`text-align: ${t};`),o&&(l+=`text-indent: ${o*20}px;`);const s={style:l};return n&&(s["data-indent"]=n),["p",s,0]}},{doc:N0,blockquote:X0,text:T0}=mR,V0={doc:N0,paragraph:P0,blockquote:X0,text:T0,ordered_list:g0,bullet_list:S0,list_item:O0},y0={excludes:"subscript",parseDOM:[{tag:"sub"},{style:"vertical-align",getAttrs:e=>e==="sub"&&null}],toDOM:()=>["sub",0]},L0={excludes:"superscript",parseDOM:[{tag:"sup"},{style:"vertical-align",getAttrs:e=>e==="super"&&null}],toDOM:()=>["sup",0]},b0={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]},I0={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]},Y0={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]}},W0={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]}},U0={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]}},Q0={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]}},F0={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]},Z0={attrs:{index:{default:null}},parseDOM:[{tag:"mark",getAttrs:e=>({index:e.dataset.index})}],toDOM:e=>["mark",{"data-index":e.attrs.index},0]},{em:A0,strong:K0,code:_0}=MR,H0={em:A0,strong:K0,fontsize:U0,fontname:Q0,code:_0,forecolor:Y0,backcolor:W0,subscript:y0,superscript:L0,strikethrough:b0,underline:I0,link:F0,mark:Z0},C0=V0,G0=H0,gR=new mc({nodes:C0,marks:G0}),Zi=e=>{const t=`<div>${e}</div>`,o=new window.DOMParser().parseFromString(t,"text/html").body.firstElementChild;return ti.fromSchema(gR).parse(o)},SR=(e,t,n,o)=>new dT(e,{state:dp.create({doc:Zi(t),plugins:c0(gR,o)}),...n});function E0(e){return{all:e=e||new Map,on:function(t,n){var o=e.get(t);o?o.push(n):e.set(t,[n])},off:function(t,n){var o=e.get(t);o&&(n?o.splice(o.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var o=e.get(t);o&&o.slice().map(function(l){l(n)}),(o=e.get("*"))&&o.slice().map(function(l){l(t,n)})}}}var Ht=(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))(Ht||{});const Jt=E0(),w0=(e,t,n)=>{const{selection:o,doc:l}=e;if(!o||!l)return e;const{from:s,to:a}=o,{nodes:i}=t,u=i.blockquote,r=i.list_item,c=i.paragraph,d=[];n=n||"";const R=new Set([u,r,c]);return l.nodesBetween(s,a,(p,f)=>{const h=p.type;return(p.attrs.align||"")!==n&&R.has(h)&&d.push({node:p,pos:f,nodeType:h}),!0}),d.length&&d.forEach(p=>{const{node:f,pos:h,nodeType:P}=p;let{attrs:O}=f;n?O={...O,align:n}:O={...O,align:null},e=e.setNodeMarkup(h,P,O,f.marks)}),e},k0=(e,t)=>{const{state:n}=e,{schema:o,selection:l}=n,s=w0(n.tr.setSelection(l),o,t);e.dispatch(s)};function J0(e,t,n,o){if(!e.doc)return e;const l=e.doc.nodeAt(t);if(!l)return e;const s=0,a=8;let i=(l.attrs[o]||0)+n;if(i<s&&(i=s),i>a&&(i=a),i===l.attrs[o])return e;const u={...l.attrs,[o]:i};return e.setNodeMarkup(t,l.type,u,l.marks)}const OR=(e,t,n,o)=>{const{selection:l,doc:s}=e;if(!l||!s||!(l instanceof Zt||l instanceof Rc))return e;const{from:a,to:i}=l;return s.nodesBetween(a,i,(u,r)=>{const c=u.type;return c.name==="paragraph"||c.name==="blockquote"?(e=J0(e,r,n,o),!1):!Rs(u,t)}),e},x0=(e,t)=>{const{state:n}=e,{schema:o,selection:l}=n,s=OR(n.tr.setSelection(l),o,t,"indent");return s.docChanged?(e.dispatch(s),!0):!1},$0=(e,t)=>{const{state:n}=e,{schema:o,selection:l}=n,s=OR(n.tr.setSelection(l),o,t,"textIndent");return s.docChanged?(e.dispatch(s),!0):!1},Xs=(e,t,n,o={})=>(l,s)=>{const{schema:a,selection:i}=l,{$from:u,$to:r}=i,c=u.blockRange(r);if(!c)return!1;const d=Rp(p=>Rs(p,a))(i);if(c.depth>=1&&d&&c.depth-d.depth<=1){if(d.node.type===e&&!n)return vR(t)(l,s);if(Rs(d.node,a)&&e.validContent(d.node.content)){const{tr:p}=l,f={...d.node.attrs,...o};return n&&(f.listStyleType=n),p.setNodeMarkup(d.pos,e,f),s&&s(p),!1}}const R={...o};return n&&(R.listStyleType=n),_T(e,R)(l,s)},hl=(e,t)=>{const{state:n}=e,{schema:o,selection:l}=n,s=n.tr.setSelection(l),{doc:a}=s;if(!a)return s;const{from:i,to:u}=l;a.nodesBetween(i,u,(r,c)=>{if(Rs(r,o)&&i-3<=c&&u+3>=c+r.nodeSize){const d=Array.isArray(t)?t:[t];for(const R of d)s.setNodeAttribute(c,R.key,R.value)}return!1}),e.dispatch(s)},D0=q({__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 o=e,l=n,s=Xe(),{handleElementId:a,textFormatPainter:i,richTextAttrs:u}=oe(s),r=_();let c;const d=vt.debounce(function(M=!1){o.value.replace(/ style=\"\"/g,"")!==c.dom.innerHTML.replace(/ style=\"\"/g,"")&&l("update",{value:c.dom.innerHTML,ignore:M})},300,{trailing:!0}),R=()=>{s.setDisableHotkeysState(!0),l("focus")},p=()=>{s.setDisableHotkeysState(!1),l("blur")},f=vt.debounce(function(){const M=Pa(c,{color:o.defaultColor,fontname:o.defaultFontName});s.setRichtextAttrs(M)},30,{trailing:!0}),h=(M,y)=>{const{ctrlKey:Y,shiftKey:T,metaKey:V}=y,I=Y||T||V,W=y.key.toUpperCase(),F=I&&(W===Ye.Z||W===Ye.Y);d(F),f()},P=H(()=>o.value);Pe(P,()=>{if(!c||c.hasFocus())return;const{doc:M,tr:y}=c.state;c.dispatch(y.replaceRangeWith(0,M.content.size,Zi(P.value)))}),Pe(()=>o.editable,()=>{c.setProps({editable:()=>o.editable})}),t({focus:()=>c.focus()});const L=({target:M,action:y})=>{if(!M&&a.value!==o.elementId||M&&M!==o.elementId)return;const Y="command"in y?[y]:y;for(const T of Y)if(T.command==="fontname"&&T.value){const V=c.state.schema.marks.fontname.create({fontname:T.value});Tt(c),Pn(c,V)}else if(T.command==="fontsize"&&T.value){const V=c.state.schema.marks.fontsize.create({fontsize:T.value});Tt(c),Pn(c,V),hl(c,{key:"fontsize",value:T.value})}else if(T.command==="fontsize-add"){const V=T.value?+T.value:2;Tt(c);const I=zi(c)+V+"px",W=c.state.schema.marks.fontsize.create({fontsize:I});Pn(c,W),hl(c,{key:"fontsize",value:I})}else if(T.command==="fontsize-reduce"){const V=T.value?+T.value:2;Tt(c);let I=zi(c)-V;I<12&&(I=12);const W=c.state.schema.marks.fontsize.create({fontsize:I+"px"});Pn(c,W),hl(c,{key:"fontsize",value:I+"px"})}else if(T.command==="color"&&T.value){const V=c.state.schema.marks.forecolor.create({color:T.value});Tt(c),Pn(c,V),hl(c,{key:"color",value:T.value})}else if(T.command==="backcolor"&&T.value){const V=c.state.schema.marks.backcolor.create({backcolor:T.value});Tt(c),Pn(c,V)}else if(T.command==="bold")Tt(c),St(c.state.schema.marks.strong)(c.state,c.dispatch);else if(T.command==="em")Tt(c),St(c.state.schema.marks.em)(c.state,c.dispatch);else if(T.command==="underline")Tt(c),St(c.state.schema.marks.underline)(c.state,c.dispatch);else if(T.command==="strikethrough")Tt(c),St(c.state.schema.marks.strikethrough)(c.state,c.dispatch);else if(T.command==="subscript")St(c.state.schema.marks.subscript)(c.state,c.dispatch);else if(T.command==="superscript")St(c.state.schema.marks.superscript)(c.state,c.dispatch);else if(T.command==="blockquote")fp("blockquote",c.state)?pp(c.state,c.dispatch):hp(c.state.schema.nodes.blockquote)(c.state,c.dispatch);else if(T.command==="code")St(c.state.schema.marks.code)(c.state,c.dispatch);else if(T.command==="align"&&T.value)k0(c,T.value);else if(T.command==="indent"&&T.value)x0(c,+T.value);else if(T.command==="textIndent"&&T.value)$0(c,+T.value);else if(T.command==="bulletList"){const V=T.value||"",{bullet_list:I,list_item:W}=c.state.schema.nodes,F={color:u.value.color,fontsize:u.value.fontsize};Xs(I,W,V,F)(c.state,c.dispatch)}else if(T.command==="orderedList"){const V=T.value||"",{ordered_list:I,list_item:W}=c.state.schema.nodes,F={color:u.value.color,fontsize:u.value.fontsize};Xs(I,W,V,F)(c.state,c.dispatch)}else if(T.command==="clear"){Tt(c);const{$from:V,$to:I}=c.state.selection;c.dispatch(c.state.tr.removeMark(V.pos,I.pos)),hl(c,[{key:"fontsize",value:""},{key:"color",value:""}])}else if(T.command==="link"){const V=c.state.schema.marks.link,{from:I,to:W}=c.state.selection,F=vp(c.state.doc,I,W,V);if(F)if(T.value){const C=c.state.schema.marks.link.create({href:T.value,title:T.value});Pn(c,C,{from:F.from.pos,to:F.to.pos+1})}else c.dispatch(c.state.tr.removeMark(F.from.pos,F.to.pos+1,V));else if(mp(c.state,V))if(T.value){const C=c.state.schema.marks.link.create({href:T.value,title:T.value});Pn(c,C)}else St(V)(c.state,c.dispatch);else T.value&&(Tt(c),St(V,{href:T.value,title:T.value})(c.state,c.dispatch))}else T.command==="insert"&&T.value&&c.dispatch(c.state.tr.insertText(T.value));c.focus(),d(),f()},S=()=>{if(!i.value)return;const{keep:M,...y}=i.value,Y=[{command:"clear"}];for(const T of Object.keys(y)){const V=T,I=i.value[T];I===!0?Y.push({command:V}):I&&Y.push({command:V,value:I})}L({action:Y}),M||s.setTextFormatPainter(null)};Ge(()=>{c=SR(r.value,P.value,{handleDOMEvents:{focus:R,blur:p,keydown:h,click:f,mouseup:S},editable:()=>o.editable}),o.autoFocus&&c.focus()}),mt(()=>{c&&c.destroy()});const X=()=>{a.value===o.elementId&&f()};return Jt.on(Ht.RICH_TEXT_COMMAND,L),Jt.on(Ht.SYNC_RICH_TEXT_ATTRS_TO_STORE,X),mt(()=>{Jt.off(Ht.RICH_TEXT_COMMAND,L),Jt.off(Ht.SYNC_RICH_TEXT_ATTRS_TO_STORE,X)}),(M,y)=>(g(),b("div",{class:E(["prosemirror-editor",{"format-painter":v(i)}]),ref_key:"editorViewRef",ref:r,onMousedown:y[0]||(y[0]=Y=>l("mousedown",Y))},null,34))}}),PR=fe(D0,[["__scopeId","data-v-69f4a3a5"]]),NR=e=>(Je("data-v-50e519ce"),e=e(),xe(),e),B0=NR(()=>m("div",{class:"drag-handler top"},null,-1)),z0=NR(()=>m("div",{class:"drag-handler bottom"},null,-1)),j0=q({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=Xe(),o=Ue(),{handleElementId:l,isScaling:s}=oe(n),{addHistorySnapshot:a}=He(),i=_(),u=H(()=>t.elementInfo.shadow),{shadowStyle:r}=Ys(u),c=(L,S=!0)=>{t.elementInfo.lock||(L.stopPropagation(),t.selectElement(L,t.elementInfo,S))},d=_(-1),R=_(-1);Pe(s,()=>{l.value===t.elementInfo.id&&(s.value||(!t.elementInfo.vertical&&d.value!==-1&&(o.updateElement({id:t.elementInfo.id,props:{height:d.value}}),d.value=-1),t.elementInfo.vertical&&R.value!==-1&&(o.updateElement({id:t.elementInfo.id,props:{width:R.value}}),R.value=-1)))});const p=L=>{const S=L[0].contentRect;if(!i.value)return;const X=S.height+20,M=S.width+20;!t.elementInfo.vertical&&t.elementInfo.height!==X&&(s.value?d.value=X:o.updateElement({id:t.elementInfo.id,props:{height:X}})),t.elementInfo.vertical&&t.elementInfo.width!==M&&(s.value?R.value=M:o.updateElement({id:t.elementInfo.id,props:{width:M}}))},f=new ResizeObserver(p);Ge(()=>{i.value&&f.observe(i.value)}),mt(()=>{i.value&&f.unobserve(i.value)});const h=(L,S=!1)=>{o.updateElement({id:t.elementInfo.id,props:{content:L}}),S||a()},P=vt.debounce(function(){t.elementInfo.content.replace(/<[^>]+>/g,"")||o.deleteElement(t.elementInfo.id)},300,{trailing:!0}),O=H(()=>l.value===t.elementInfo.id);return Pe(O,()=>{O.value||P()}),(L,S)=>{const X=ze("contextmenu");return g(),b("div",{class:E(["editable-element-text",{lock:L.elementInfo.lock}]),style:ee({top:L.elementInfo.top+"px",left:L.elementInfo.left+"px",width:L.elementInfo.width+"px",height:L.elementInfo.height+"px"})},[m("div",{class:"rotate-wrapper",style:ee({transform:`rotate(${L.elementInfo.rotate}deg)`})},[de((g(),b("div",{class:"element-content",ref_key:"elementRef",ref:i,style:ee({width:L.elementInfo.vertical?"auto":L.elementInfo.width+"px",height:L.elementInfo.vertical?L.elementInfo.height+"px":"auto",backgroundColor:L.elementInfo.fill,opacity:L.elementInfo.opacity,textShadow:v(r),lineHeight:L.elementInfo.lineHeight,letterSpacing:(L.elementInfo.wordSpace||0)+"px",color:L.elementInfo.defaultColor,fontFamily:L.elementInfo.defaultFontName,writingMode:L.elementInfo.vertical?"vertical-rl":"horizontal-tb"}),onMousedown:S[2]||(S[2]=M=>c(M)),onTouchstart:S[3]||(S[3]=M=>c(M))},[N(gc,{width:L.elementInfo.width,height:L.elementInfo.height,outline:L.elementInfo.outline},null,8,["width","height","outline"]),N(PR,{class:"text",elementId:L.elementInfo.id,defaultColor:L.elementInfo.defaultColor,defaultFontName:L.elementInfo.defaultFontName,editable:!L.elementInfo.lock,value:L.elementInfo.content,style:ee({"--paragraphSpace":`${L.elementInfo.paragraphSpace===void 0?5:L.elementInfo.paragraphSpace}px`}),onUpdate:S[0]||(S[0]=({value:M,ignore:y})=>h(M,y)),onMousedown:S[1]||(S[1]=M=>c(M,!1))},null,8,["elementId","defaultColor","defaultFontName","editable","value","style"]),B0,z0],36)),[[X,L.contextmenus]])],4)],6)}}}),q0=fe(j0,[["__scopeId","data-v-50e519ce"]]),eV=["width","height"],tV={key:0},nV=["transform"],oV=["d","fill","stroke","stroke-width","stroke-dasharray"],lV=q({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=Xe(),o=Ue(),{handleElementId:l,shapeFormatPainter:s}=oe(n),{addHistorySnapshot:a}=He(),i=(T,V=!0)=>{t.elementInfo.lock||(T.stopPropagation(),t.selectElement(T,t.elementInfo,V))},u=()=>{if(!s.value)return;const{keep:T,...V}=s.value;o.updateElement({id:t.elementInfo.id,props:V}),a(),T||n.setShapeFormatPainter(null)},r=H(()=>t.elementInfo.outline),{outlineWidth:c,outlineColor:d,strokeDashArray:R}=Qp(r),p=H(()=>t.elementInfo.shadow),{shadowStyle:f}=Ys(p),h=H(()=>t.elementInfo.flipH),P=H(()=>t.elementInfo.flipV),{flipStyle:O}=Mc(h,P),L=_(!1);Pe(l,()=>{l.value!==t.elementInfo.id&&L.value&&(L.value=!1)});const S=H(()=>{const T={content:"",defaultFontName:"微软雅黑",defaultColor:"#000",align:"middle"};return t.elementInfo.text?t.elementInfo.text:T}),X=(T,V=!1)=>{const I={...S.value,content:T};o.updateElement({id:t.elementInfo.id,props:{text:I}}),V||a()},M=()=>{if(!t.elementInfo.text)return;t.elementInfo.text.content.replace(/<[^>]+>/g,"")||(o.removeElementProps({id:t.elementInfo.id,propName:"text"}),a())},y=_(),Y=()=>{L.value=!0,we(()=>y.value&&y.value.focus())};return(T,V)=>{const I=ze("contextmenu");return g(),b("div",{class:E(["editable-element-shape",{lock:T.elementInfo.lock,"format-painter":v(s)}]),style:ee({top:T.elementInfo.top+"px",left:T.elementInfo.left+"px",width:T.elementInfo.width+"px",height:T.elementInfo.height+"px"})},[m("div",{class:"rotate-wrapper",style:ee({transform:`rotate(${T.elementInfo.rotate}deg)`})},[de((g(),b("div",{class:"element-content",style:ee({opacity:T.elementInfo.opacity,filter:v(f)?`drop-shadow(${v(f)})`:"",transform:v(O),color:S.value.defaultColor,fontFamily:S.value.defaultFontName}),onMousedown:V[3]||(V[3]=W=>i(W)),onMouseup:V[4]||(V[4]=W=>u()),onTouchstart:V[5]||(V[5]=W=>i(W)),onDblclick:V[6]||(V[6]=W=>Y())},[(g(),b("svg",{overflow:"visible",width:T.elementInfo.width,height:T.elementInfo.height},[T.elementInfo.gradient?(g(),b("defs",tV,[N(Fp,{id:`editabel-gradient-${T.elementInfo.id}`,type:T.elementInfo.gradient.type,colors:T.elementInfo.gradient.colors,rotate:T.elementInfo.gradient.rotate},null,8,["id","type","colors","rotate"])])):j("",!0),m("g",{transform:`scale(${T.elementInfo.width/(T.elementInfo.viewBox[0]||T.elementInfo.viewBox)}, ${T.elementInfo.height/(T.elementInfo.viewBox[1]||T.elementInfo.viewBox)}) translate(0,0) matrix(1,0,0,1,0,0)`},[m("path",{class:"shape-path","vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",d:T.elementInfo.path,fill:T.elementInfo.gradient?`url(#editabel-gradient-${T.elementInfo.id})`:T.elementInfo.fill,stroke:v(d),"stroke-width":v(c),"stroke-dasharray":v(R)},null,8,oV)],8,nV)],8,eV)),m("div",{class:E(["shape-text",[S.value.align,{editable:L.value||S.value.content}]])},[L.value||S.value.content?(g(),k(PR,{key:0,ref_key:"prosemirrorEditorRef",ref:y,elementId:T.elementInfo.id,defaultColor:S.value.defaultColor,defaultFontName:S.value.defaultFontName,editable:!T.elementInfo.lock,value:S.value.content,onUpdate:V[0]||(V[0]=({value:W,ignore:F})=>X(W,F)),onBlur:V[1]||(V[1]=W=>M()),onMousedown:V[2]||(V[2]=W=>i(W,!1))},null,8,["elementId","defaultColor","defaultFontName","editable","value"])):j("",!0)],2)],36)),[[I,T.contextmenus]])],4)],6)}}}),sV=fe(lV,[["__scopeId","data-v-ac679947"]]),aV=["width","height"],iV=["d","stroke","stroke-width","stroke-dasharray","marker-start","marker-end"],rV=["d"],uV=q({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=r=>{t.elementInfo.lock||(r.stopPropagation(),t.selectElement(r,t.elementInfo))},o=H(()=>t.elementInfo.shadow),{shadowStyle:l}=Ys(o),s=H(()=>{const r=Math.abs(t.elementInfo.start[0]-t.elementInfo.end[0]);return r<24?24:r}),a=H(()=>{const r=Math.abs(t.elementInfo.start[1]-t.elementInfo.end[1]);return r<24?24:r}),i=H(()=>{const r=t.elementInfo.width;return t.elementInfo.style==="dashed"?r<=8?`${r*5} ${r*2.5}`:`${r*5} ${r*1.5}`:t.elementInfo.style==="dotted"?r<=8?`${r*1.8} ${r*1.6}`:`${r*1.5} ${r*1.2}`:"0 0"}),u=H(()=>Zp(t.elementInfo));return(r,c)=>{const d=ze("contextmenu");return g(),b("div",{class:E(["editable-element-shape",{lock:r.elementInfo.lock}]),style:ee({top:r.elementInfo.top+"px",left:r.elementInfo.left+"px"})},[m("div",{class:"element-content",style:ee({filter:v(l)?`drop-shadow(${v(l)})`:""}),onMousedown:c[0]||(c[0]=R=>n(R)),onTouchstart:c[1]||(c[1]=R=>n(R))},[(g(),b("svg",{overflow:"visible",width:s.value,height:a.value},[m("defs",null,[r.elementInfo.points[0]?(g(),k(ps,{key:0,id:r.elementInfo.id,position:"start",type:r.elementInfo.points[0],color:r.elementInfo.color,baseSize:r.elementInfo.width},null,8,["id","type","color","baseSize"])):j("",!0),r.elementInfo.points[1]?(g(),k(ps,{key:1,id:r.elementInfo.id,position:"end",type:r.elementInfo.points[1],color:r.elementInfo.color,baseSize:r.elementInfo.width},null,8,["id","type","color","baseSize"])):j("",!0)]),m("path",{class:"line-point",d:u.value,stroke:r.elementInfo.color,"stroke-width":r.elementInfo.width,"stroke-dasharray":i.value,fill:"none","marker-start":r.elementInfo.points[0]?`url(#${r.elementInfo.id}-${r.elementInfo.points[0]}-start)`:"","marker-end":r.elementInfo.points[1]?`url(#${r.elementInfo.id}-${r.elementInfo.points[1]}-end)`:""},null,8,iV),de(m("path",{class:"line-path",d:u.value,stroke:"transparent","stroke-width":"20",fill:"none"},null,8,rV),[[d,r.contextmenus]])],8,aV))],36)],6)}}}),cV=fe(uV,[["__scopeId","data-v-4bb147a5"]]),dV=q({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=l=>{t.elementInfo.lock||(l.stopPropagation(),t.selectElement(l,t.elementInfo))},o=()=>{Jt.emit(Ht.OPEN_CHART_DATA_EDITOR)};return(l,s)=>{const a=ze("contextmenu");return g(),b("div",{class:E(["editable-element-chart",{lock:l.elementInfo.lock}]),style:ee({top:l.elementInfo.top+"px",left:l.elementInfo.left+"px",width:l.elementInfo.width+"px",height:l.elementInfo.height+"px"})},[m("div",{class:"rotate-wrapper",style:ee({transform:`rotate(${l.elementInfo.rotate}deg)`})},[de((g(),b("div",{class:"element-content",style:ee({backgroundColor:l.elementInfo.fill}),onMousedown:s[0]||(s[0]=i=>n(i)),onTouchstart:s[1]||(s[1]=i=>n(i)),onDblclick:s[2]||(s[2]=i=>o())},[N(gc,{width:l.elementInfo.width,height:l.elementInfo.height,outline:l.elementInfo.outline},null,8,["width","height","outline"]),N(Ap,{width:l.elementInfo.width,height:l.elementInfo.height,type:l.elementInfo.chartType,data:l.elementInfo.data,themeColors:l.elementInfo.themeColors,textColor:l.elementInfo.textColor,options:l.elementInfo.options},null,8,["width","height","type","data","themeColors","textColor","options"])],36)),[[a,l.contextmenus]])],4)],6)}}}),RV=fe(dV,[["__scopeId","data-v-3b1105a2"]]),fV=["innerHTML"],pV=q({__name:"CustomTextarea",props:{value:{default:""}},emits:["updateValue","insertExcelData"],setup(e,{emit:t}){const n=e,o=t,l=_(),s=_(""),a=_(!1);Pe(()=>n.value,()=>{a.value||(s.value=n.value,l.value&&(l.value.innerHTML=n.value))},{immediate:!0});const i=()=>{if(!l.value)return;const c=l.value.innerHTML;o("updateValue",c)},u=()=>{a.value=!0,l.value&&(l.value.onpaste=c=>{if(c.preventDefault(),!c.clipboardData)return;const d=c.clipboardData.items[0];d&&d.kind==="string"&&d.type==="text/plain"&&d.getAsString(R=>{if(typeof Si(R)=="object")return;const f=Nd(R);if(f){o("insertExcelData",f),l.value&&(l.value.innerHTML=f[0][0]);return}document.execCommand("insertText",!1,R)})})},r=()=>{a.value=!1,l.value&&(l.value.onpaste=null)};return Gt(()=>{l.value&&(l.value.onpaste=null)}),(c,d)=>(g(),b("div",{class:"custom-textarea",ref_key:"textareaRef",ref:l,contenteditable:!0,onFocus:d[0]||(d[0]=R=>u()),onBlur:d[1]||(d[1]=R=>r()),onInput:d[2]||(d[2]=R=>i()),innerHTML:s.value},null,40,fV))}}),hV=fe(pV,[["__scopeId","data-v-738bec9b"]]),vV={key:0,class:"handler"},mV=["onMousedown"],MV=["width"],gV=["rowspan","colspan","data-cell-index","onMousedown","onMouseenter"],SV=["innerHTML"],OV=q({__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,o=t,{canvasScale:l}=oe(Xe()),s=_(!1),a=_([]),i=_([]),u=H({get(){return n.data},set(w){o("change",w)}}),r=H(()=>n.theme),{subThemeColor:c}=Kp(r),d=_([]),R=H(()=>d.value.reduce((w,$)=>w+$));Pe([()=>n.colWidths,()=>n.width],()=>{d.value=n.colWidths.map(w=>w*n.width)},{immediate:!0});const p=()=>{a.value=[],i.value=[]};Pe(()=>n.editable,()=>{n.editable||p()});const f=H(()=>{const w=[];for(let $=1;$<d.value.length+1;$++){const A=d.value.slice(0,$).reduce((x,re)=>x+re);w.push(A)}return w}),h=H(()=>n.data),{hideCells:P}=_p(h),O=H(()=>{if(!a.value.length)return[];const[w,$]=a.value;if(!i.value.length)return[`${w}_${$}`];const[A,x]=i.value;if(w===A&&$===x)return[`${w}_${$}`];const re=[],ue=Math.min(w,A),Te=Math.min($,x),Ae=Math.max(w,A),Qe=Math.max($,x);for(let Ne=0;Ne<u.value.length;Ne++){const he=u.value[Ne];for(let Le=0;Le<he.length;Le++)Ne>=ue&&Ne<=Ae&&Le>=Te&&Le<=Qe&&re.push(`${Ne}_${Le}`)}return re});Pe(O,(w,$)=>{vt.isEqual(w,$)||o("changeSelectedCells",O.value)});const L=H(()=>O.value.length>1?null:O.value[0]),S=()=>s.value=!1,X=(w,$,A)=>{w.button===0&&(i.value=[],s.value=!0,a.value=[$,A])},M=(w,$)=>{s.value&&(i.value=[w,$])};Ge(()=>{document.addEventListener("mouseup",S)}),mt(()=>{document.removeEventListener("mouseup",S)});const y=(w,$)=>P.value.includes(`${w}_${$}`),Y=w=>{const $=u.value.length-1;a.value=[0,w],i.value=[$,w]},T=w=>{const $=u.value[w].length-1;a.value=[w,0],i.value=[w,$]},V=()=>{const w=u.value.length-1,$=u.value[w].length-1;a.value=[0,0],i.value=[w,$]},I=w=>{const $=JSON.parse(JSON.stringify(u.value)),A=u.value[w],x=[];for(let re=0;re<A.length;re++)y(w,re)&&x.push(re);for(const re of x)for(let ue=w;ue>=0;ue--)if(!y(ue,re)){$[ue][re].rowspan=$[ue][re].rowspan-1;break}$.splice(w,1),u.value=$},W=w=>{const $=JSON.parse(JSON.stringify(u.value)),A=[];for(let x=0;x<u.value.length;x++)y(x,w)&&A.push(x);for(const x of A)for(let re=w;re>=0;re--)if(!y(x,re)){$[x][re].colspan=$[x][re].colspan-1;break}u.value=$.map(x=>(x.splice(w,1),x)),d.value.splice(w,1),o("changeColWidths",d.value)},F=w=>{const $=JSON.parse(JSON.stringify(u.value)),A=[];for(let x=0;x<$[0].length;x++)A.push({colspan:1,rowspan:1,text:"",id:st(10)});$.splice(w,0,A),u.value=$},C=w=>{u.value=u.value.map($=>{const A={colspan:1,rowspan:1,text:"",id:st(10)};return $.splice(w,0,A),$}),d.value.splice(w,0,100),o("changeColWidths",d.value)},Z=(w,$)=>{let A=JSON.parse(JSON.stringify(u.value));const x={colspan:1,rowspan:1,text:""};if(w){const re=[];for(let ue=0;ue<w;ue++){const Te=[];for(let Ae=0;Ae<A[0].length;Ae++)Te.push({...x,id:st(10)});re.push(Te)}A=[...A,...re]}$&&(A=A.map(re=>{const ue=[];for(let Te=0;Te<$;Te++){const Ae={...x,id:st(10)};ue.push(Ae)}return[...re,...ue]}),d.value=[...d.value,...new Array($).fill(100)],o("changeColWidths",d.value)),u.value=A},K=()=>{const[w,$]=a.value,[A,x]=i.value,re=Math.min(w,A),ue=Math.min($,x),Te=Math.max(w,A),Ae=Math.max($,x),Qe=JSON.parse(JSON.stringify(u.value));Qe[re][ue].rowspan=Te-re+1,Qe[re][ue].colspan=Ae-ue+1,u.value=Qe,p()},U=(w,$)=>{const A=JSON.parse(JSON.stringify(u.value));A[w][$].rowspan=1,A[w][$].colspan=1,u.value=A,p()},G=(w,$)=>{p();let A=!0;const x=d.value[$],re=w.pageX,ue=50;document.onmousemove=Te=>{if(!A)return;const Ae=(Te.pageX-re)/l.value,Qe=x+Ae<ue?ue:Math.round(x+Ae);d.value[$]=Qe},document.onmouseup=()=>{A=!1,document.onmousemove=null,document.onmouseup=null,o("changeColWidths",d.value)}},D=()=>{const w=JSON.parse(JSON.stringify(u.value));for(let $=0;$<w.length;$++)for(let A=0;A<w[$].length;A++)O.value.includes(`${$}_${A}`)&&(w[$][A].text="");u.value=w},le=()=>{we(()=>{const w=document.querySelector(".cell-text.active");w&&w.focus()})},Re=()=>{const w=(re,ue)=>u.value[re]?u.value[re][ue]?y(re,ue)?w(re,ue+1):[re,ue]:w(re+1,0):null;i.value=[];const $=a.value[0],A=a.value[1]+1,x=w($,A);x?a.value=x:(F($+1),a.value=[$+1,0]),le()},ae=w=>{const $=+O.value[0].split("_")[0],A=+O.value[0].split("_")[1],x=u.value.length,re=u.value[0].length,ue=Te=>{if(Te[0]<0||Te[1]<0||Te[0]>x-1||Te[1]>re-1)return[0,0];const Ae=`${Te[0]}_${Te[1]}`;return P.value.includes(Ae)?w==="UP"?ue([Te[0],Te[1]-1]):w==="DOWN"?ue([Te[0],Te[1]-1]):w==="LEFT"?ue([Te[0]-1,Te[1]]):w==="RIGHT"?ue([Te[0]-1,Te[1]]):[0,0]:Te};if(w==="UP"){const Te=$-1;if(Te<0)return;i.value=[],a.value=ue([Te,A])}else if(w==="DOWN"){const Te=$+1;if(Te>x-1)return;i.value=[],a.value=ue([Te,A])}else if(w==="LEFT"){const Te=A-1;if(Te<0)return;i.value=[],a.value=ue([$,Te])}else if(w==="RIGHT"){const Te=A+1;if(Te>re-1)return;i.value=[],a.value=ue([$,Te])}le()},Se=w=>{var A;const $=window.getSelection();if($&&$.rangeCount>0){const x=$.getRangeAt(0),re=x.cloneRange();re.selectNodeContents(w),re.setEnd(x.startContainer,x.startOffset);const ue=re.toString().length;re.setEnd(x.endContainer,x.endOffset);const Te=re.toString().length,Ae=((A=w.textContent)==null?void 0:A.length)||0;return{start:ue,end:Te,len:Ae}}return null},J=w=>{if(!n.editable||!O.value.length)return;const $=w.key.toUpperCase();if(O.value.length<2){if($===Ye.TAB)w.preventDefault(),Re();else if(w.ctrlKey&&$===Ye.UP){w.preventDefault();const A=+O.value[0].split("_")[0];F(A)}else if(w.ctrlKey&&$===Ye.DOWN){w.preventDefault();const A=+O.value[0].split("_")[0];F(A+1)}else if(w.ctrlKey&&$===Ye.LEFT){w.preventDefault();const A=+O.value[0].split("_")[1];C(A)}else if(w.ctrlKey&&$===Ye.RIGHT){w.preventDefault();const A=+O.value[0].split("_")[1];C(A+1)}else if($===Ye.UP){const A=Se(w.target);A&&A.start===A.end&&A.start===0&&ae("UP")}else if($===Ye.DOWN){const A=Se(w.target);A&&A.start===A.end&&A.start===A.len&&ae("DOWN")}else if($===Ye.LEFT){const A=Se(w.target);A&&A.start===A.end&&A.start===0&&ae("LEFT")}else if($===Ye.RIGHT){const A=Se(w.target);A&&A.start===A.end&&A.start===A.len&&ae("RIGHT")}}else $===Ye.DELETE&&D()};Ge(()=>{document.addEventListener("keydown",J)}),mt(()=>{document.removeEventListener("keydown",J)});const B=vt.debounce(function(w,$,A){u.value[$][A].text=w,o("change",u.value)},300,{trailing:!0}),Ie=(w,$,A)=>{const x=w.length,re=w[0].length;let ue=0,Te=0;$+x>u.value.length&&(ue=$+x-u.value.length),A+re>u.value[0].length&&(Te=A+re-u.value[0].length),(ue||Te)&&Z(ue,Te),we(()=>{for(let Ae=0;Ae<x;Ae++)for(let Qe=0;Qe<re;Qe++)u.value[$+Ae][A+Qe]&&(u.value[$+Ae][A+Qe].text=w[Ae][Qe]);o("change",u.value)})},ce=()=>{const w=[];for(let $=0;$<u.value.length;$++){const A=u.value[$],x=[];for(let re=0;re<A.length;re++)y($,re)||x.push(A[re]);x.length&&w.push(x)}return w},z=()=>{const w=ce(),$=w.length>1,A=w[0].length>1;return{canDeleteRow:$,canDeleteCol:A}},ne=(w,$)=>{const A=O.value.length>1,x=u.value[w][$],re=A,ue=!A&&(x.rowspan>1||x.colspan>1);return{canMerge:re,canSplit:ue}},ge=w=>{const $=w.dataset.cellIndex,A=+$.split("_")[0],x=+$.split("_")[1];O.value.includes(`${A}_${x}`)||(a.value=[A,x],i.value=[]);const{canMerge:re,canSplit:ue}=ne(A,x),{canDeleteRow:Te,canDeleteCol:Ae}=z();return[{text:"插入列",children:[{text:"到左侧",handler:()=>C(x)},{text:"到右侧",handler:()=>C(x+1)}]},{text:"插入行",children:[{text:"到上方",handler:()=>F(A)},{text:"到下方",handler:()=>F(A+1)}]},{text:"删除列",disable:!Ae,handler:()=>W(x)},{text:"删除行",disable:!Te,handler:()=>I(A)},{divider:!0},{text:"合并单元格",disable:!re,handler:K},{text:"取消合并单元格",disable:!ue,handler:()=>U(A,x)},{divider:!0},{text:"选中当前列",handler:()=>Y(x)},{text:"选中当前行",handler:()=>T(A)},{text:"选中全部单元格",handler:V}]};return(w,$)=>{var x,re,ue,Te,Ae;const A=ze("contextmenu");return g(),b("div",{class:"editable-table",style:ee({width:R.value+"px"})},[w.editable?(g(),b("div",vV,[(g(!0),b(ie,null,me(f.value,(Qe,Ne)=>(g(),b("div",{class:"drag-line",key:Ne,style:ee({left:Qe+"px"}),onMousedown:he=>G(he,Ne)},null,44,mV))),128))])):j("",!0),m("table",{class:E({theme:r.value,"row-header":(x=r.value)==null?void 0:x.rowHeader,"row-footer":(re=r.value)==null?void 0:re.rowFooter,"col-header":(ue=r.value)==null?void 0:ue.colHeader,"col-footer":(Te=r.value)==null?void 0:Te.colFooter}),style:ee(`--themeColor: ${(Ae=r.value)==null?void 0:Ae.color}; --subThemeColor1: ${v(c)[0]}; --subThemeColor2: ${v(c)[1]}`)},[m("colgroup",null,[(g(!0),b(ie,null,me(d.value,(Qe,Ne)=>(g(),b("col",{span:"1",key:Ne,width:Qe},null,8,MV))),128))]),m("tbody",null,[(g(!0),b(ie,null,me(u.value,(Qe,Ne)=>(g(),b("tr",{key:Ne,style:ee({height:w.cellMinHeight+"px"})},[(g(!0),b(ie,null,me(Qe,(he,Le)=>de((g(),b("td",{class:E(["cell",{selected:O.value.includes(`${Ne}_${Le}`)&&O.value.length>1,active:L.value===`${Ne}_${Le}`}]),style:ee({borderStyle:w.outline.style,borderColor:w.outline.color,borderWidth:w.outline.width+"px",...v(Hp)(he.style)}),key:he.id,rowspan:he.rowspan,colspan:he.colspan,"data-cell-index":`${Ne}_${Le}`,onMousedown:ve=>X(ve,Ne,Le),onMouseenter:ve=>M(Ne,Le)},[L.value===`${Ne}_${Le}`?(g(),k(hV,{key:0,class:E(["cell-text",{active:L.value===`${Ne}_${Le}`}]),style:ee({minHeight:w.cellMinHeight-4+"px"}),value:he.text,onUpdateValue:ve=>v(B)(ve,Ne,Le),onInsertExcelData:ve=>Ie(ve,Ne,Le)},null,8,["class","style","value","onUpdateValue","onInsertExcelData"])):(g(),b("div",{key:1,class:"cell-text",style:ee({minHeight:w.cellMinHeight-4+"px"}),innerHTML:v(Cp)(he.text)},null,12,SV))],46,gV)),[[Nt,!v(P).includes(`${Ne}_${Le}`)],[A,ve=>ge(ve)]])),128))],4))),128))])],6)],4)}}}),PV=fe(OV,[["__scopeId","data-v-46c7aa10"]]),NV={class:"element-content"},XV=q({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=Xe(),o=Ue(),{canvasScale:l,handleElementId:s,isScaling:a}=oe(n),i=_(),{addHistorySnapshot:u}=He(),r=L=>{t.elementInfo.lock||(L.stopPropagation(),t.selectElement(L,t.elementInfo))},c=_(!1);Pe(s,()=>{s.value!==t.elementInfo.id&&(c.value=!1)}),Pe(c,()=>{n.setDisableHotkeysState(c.value)});const d=()=>{t.elementInfo.lock||(c.value=!0)},R=_(-1);Pe(a,()=>{s.value===t.elementInfo.id&&(a.value&&(c.value=!1),!a.value&&R.value!==-1&&(o.updateElement({id:t.elementInfo.id,props:{height:R.value}}),R.value=-1))});const p=L=>{const S=L[0].contentRect;if(!i.value)return;const X=S.height;t.elementInfo.height!==X&&(a.value?R.value=X:o.updateElement({id:t.elementInfo.id,props:{height:X}}))},f=new ResizeObserver(p);Ge(()=>{i.value&&f.observe(i.value)}),mt(()=>{i.value&&f.unobserve(i.value)});const h=L=>{o.updateElement({id:t.elementInfo.id,props:{data:L}}),u()},P=L=>{const S=L.reduce((M,y)=>M+y),X=L.map(M=>M/S);o.updateElement({id:t.elementInfo.id,props:{width:S,colWidths:X}}),u()},O=L=>{we(()=>n.setSelectedTableCells(L))};return(L,S)=>{const X=ze("contextmenu");return g(),b("div",{class:E(["editable-element-table",{lock:L.elementInfo.lock}]),ref_key:"elementRef",ref:i,style:ee({top:L.elementInfo.top+"px",left:L.elementInfo.left+"px",width:L.elementInfo.width+"px"})},[m("div",{class:"rotate-wrapper",style:ee({transform:`rotate(${L.elementInfo.rotate}deg)`})},[de((g(),b("div",NV,[N(PV,{onMousedown:S[0]||(S[0]=Fe(()=>{},["stop"])),data:L.elementInfo.data,width:L.elementInfo.width,cellMinHeight:L.elementInfo.cellMinHeight,colWidths:L.elementInfo.colWidths,outline:L.elementInfo.outline,theme:L.elementInfo.theme,editable:c.value,onChange:S[1]||(S[1]=M=>h(M)),onChangeColWidths:S[2]||(S[2]=M=>P(M)),onChangeSelectedCells:S[3]||(S[3]=M=>O(M))},null,8,["data","width","cellMinHeight","colWidths","outline","theme","editable"]),!c.value||L.elementInfo.lock?(g(),b("div",{key:0,class:E(["table-mask",{lock:L.elementInfo.lock}]),onDblclick:S[4]||(S[4]=M=>d()),onMousedown:S[5]||(S[5]=M=>r(M)),onTouchstart:S[6]||(S[6]=M=>r(M))},[v(s)===L.elementInfo.id?(g(),b("div",{key:0,class:"mask-tip",style:ee({transform:`scale(${1/v(l)})`})},"双击编辑",4)):j("",!0)],34)):j("",!0)])),[[X,L.contextmenus]])],4)],6)}}}),TV=fe(XV,[["__scopeId","data-v-c58bc4e2"]]),VV=["width","height","stroke","stroke-width"],yV=["transform"],LV=["d"],bV=q({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=l=>{t.elementInfo.lock||(l.stopPropagation(),t.selectElement(l,t.elementInfo))},o=()=>{Jt.emit(Ht.OPEN_LATEX_EDITOR)};return(l,s)=>{const a=ze("contextmenu");return g(),b("div",{class:E(["editable-element-latex",{lock:l.elementInfo.lock}]),style:ee({top:l.elementInfo.top+"px",left:l.elementInfo.left+"px",width:l.elementInfo.width+"px",height:l.elementInfo.height+"px"})},[m("div",{class:"rotate-wrapper",style:ee({transform:`rotate(${l.elementInfo.rotate}deg)`})},[de((g(),b("div",{class:"element-content",onMousedown:s[0]||(s[0]=i=>n(i)),onTouchstart:s[1]||(s[1]=i=>n(i)),onDblclick:s[2]||(s[2]=i=>o())},[(g(),b("svg",{overflow:"visible",width:l.elementInfo.width,height:l.elementInfo.height,stroke:l.elementInfo.color,"stroke-width":l.elementInfo.strokeWidth,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[m("g",{transform:`scale(${l.elementInfo.width/(l.elementInfo.viewBox[0]||l.elementInfo.viewBox)}, ${l.elementInfo.height/(l.elementInfo.viewBox[1]||l.elementInfo.viewBox)}) translate(0,0) matrix(1,0,0,1,0,0)`},[m("path",{d:l.elementInfo.path},null,8,LV)],8,yV)],8,VV))],32)),[[a,l.contextmenus]])],4)],6)}}}),IV=fe(bV,[["__scopeId","data-v-e3bc936e"]]),YV=q({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,{canvasScale:n}=oe(Xe()),o=(l,s=!0)=>{t.elementInfo.lock||(l.stopPropagation(),t.selectElement(l,t.elementInfo,s))};return(l,s)=>{const a=ze("contextmenu");return g(),b("div",{class:E(["editable-element-video",{lock:l.elementInfo.lock}]),style:ee({top:l.elementInfo.top+"px",left:l.elementInfo.left+"px",width:l.elementInfo.width+"px",height:l.elementInfo.height+"px"})},[m("div",{class:"rotate-wrapper",style:ee({transform:`rotate(${l.elementInfo.rotate}deg)`})},[de((g(),b("div",{class:"element-content",onMousedown:s[2]||(s[2]=i=>o(i,!1)),onTouchstart:s[3]||(s[3]=i=>o(i,!1))},[N(Gp,{width:l.elementInfo.width,height:l.elementInfo.height,src:l.elementInfo.src,poster:l.elementInfo.poster,scale:v(n)},null,8,["width","height","src","poster","scale"]),(g(),b(ie,null,me(["t","b","l","r"],i=>m("div",{class:E(["handler-border",i]),key:i,onMousedown:s[0]||(s[0]=u=>o(u)),onTouchstart:s[1]||(s[1]=u=>o(u))},null,34)),64))],32)),[[a,l.contextmenus]])],4)],6)}}}),WV=fe(YV,[["__scopeId","data-v-1d545cfa"]]),UV=q({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,{canvasScale:n,handleElementId:o}=oe(Xe()),{viewportRatio:l,viewportSize:s}=oe(Ue()),a=H(()=>Math.min(t.elementInfo.width,t.elementInfo.height)+"px"),i=H(()=>{const r=s.value,c=s.value*l.value,d=280/n.value,R=50/n.value,p=t.elementInfo.width,f=t.elementInfo.height,h=t.elementInfo.left,P=t.elementInfo.top;let O=0,L=f;return h+d>=r&&(O=p-d),P+f+R>=c&&(L=-R),{left:O+"px",top:L+"px"}}),u=r=>{t.elementInfo.lock||(r.stopPropagation(),t.selectElement(r,t.elementInfo))};return(r,c)=>{const d=te("IconVolumeNotice"),R=ze("contextmenu");return g(),b("div",{class:E(["editable-element-audio",{lock:r.elementInfo.lock}]),style:ee({top:r.elementInfo.top+"px",left:r.elementInfo.left+"px",width:r.elementInfo.width+"px",height:r.elementInfo.height+"px"})},[m("div",{class:"rotate-wrapper",style:ee({transform:`rotate(${r.elementInfo.rotate}deg)`})},[de((g(),b("div",{class:"element-content",onMousedown:c[1]||(c[1]=p=>u(p)),onTouchstart:c[2]||(c[2]=p=>u(p))},[N(d,{class:"audio-icon",style:ee({fontSize:a.value,color:r.elementInfo.color})},null,8,["style"]),v(o)===r.elementInfo.id?(g(),k(Ep,{key:0,class:"audio-player",style:ee({...i.value}),src:r.elementInfo.src,loop:r.elementInfo.loop,scale:v(n),onMousedown:c[0]||(c[0]=Fe(()=>{},["stop"]))},null,8,["style","src","loop","scale"])):j("",!0)],32)),[[R,r.contextmenus]])],4)],6)}}}),QV=fe(UV,[["__scopeId","data-v-620c29b4"]]),FV=q({__name:"cloudCoachElement",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=Xe(),{canvasScale:o}=oe(n),l=H(()=>n.handleElementId!==t.elementInfo.id||t.elementInfo.isMove),s=(a,i=!0)=>{t.elementInfo.lock||(a.stopPropagation(),t.selectElement(a,t.elementInfo,i))};return(a,i)=>{const u=ze("contextmenu");return g(),b("div",{class:E(["editable-element-cloudCoach",{lock:a.elementInfo.lock}]),style:ee({top:a.elementInfo.top+"px",left:a.elementInfo.left+"px",width:a.elementInfo.width+"px",height:a.elementInfo.height+"px"})},[m("div",{class:"rotate-wrapper",style:ee({transform:`rotate(${a.elementInfo.rotate}deg)`})},[de((g(),b("div",{class:"element-content",onMousedown:i[4]||(i[4]=r=>s(r)),onTouchstart:i[5]||(i[5]=r=>s(r))},[l.value?(g(),b("div",{key:0,onMousedown:i[0]||(i[0]=Fe(r=>s(r,!1),["stop"])),onTouchstart:i[1]||(i[1]=Fe(r=>s(r,!1),["stop"])),class:"mask"},null,32)):j("",!0),N(v(wp),{id:a.elementInfo.sid,width:a.elementInfo.width,height:a.elementInfo.height,scale:v(o)},null,8,["id","width","height","scale"]),(g(),b(ie,null,me(["t","b","l","r"],r=>m("div",{class:E(["handler-border",r]),key:r,onMousedown:i[2]||(i[2]=c=>s(c)),onTouchstart:i[3]||(i[3]=c=>s(c))},null,34)),64))],32)),[[u,a.contextmenus]])],4)],6)}}}),ZV=fe(FV,[["__scopeId","data-v-d56dd529"]]),AV=["id"],KV=q({__name:"EditableElement",props:{elementInfo:{},elementIndex:{},isMultiSelect:{type:Boolean},selectElement:{type:Function},openLinkDialog:{type:Function}},setup(e){const t=e,n=H(()=>{const h={[ct.IMAGE]:QX,[ct.TEXT]:q0,[ct.SHAPE]:sV,[ct.LINE]:cV,[ct.CHART]:RV,[ct.TABLE]:TV,[ct.LATEX]:IV,[ct.ELF]:null},P={[xo.AUDIO]:QV,[xo.VIDEO]:WV,[xo.SING_PLAY]:ZV};return h[t.elementInfo.type]||P[t.elementInfo.subtype]||null}),{orderElement:o}=_s(),{alignElementToCanvas:l}=Ti(),{combineElements:s,uncombineElements:a}=Pi(),{deleteElement:i}=As(),{lockElement:u,unlockElement:r}=Td(),{copyElement:c,pasteElement:d,cutElement:R}=Ni(),{selectAllElements:p}=Ks(),f=()=>t.elementInfo.lock?[{text:"解锁",handler:()=>r(t.elementInfo)}]:[{text:"剪切",subText:"Ctrl + X",handler:R},{text:"复制",subText:"Ctrl + C",handler:c},{text:"粘贴",subText:"Ctrl + V",handler:d},{divider:!0},{text:"水平居中",handler:()=>l(De.HORIZONTAL),children:[{text:"水平垂直居中",handler:()=>l(De.CENTER)},{text:"水平居中",handler:()=>l(De.HORIZONTAL)},{text:"左对齐",handler:()=>l(De.LEFT)},{text:"右对齐",handler:()=>l(De.RIGHT)}]},{text:"垂直居中",handler:()=>l(De.VERTICAL),children:[{text:"水平垂直居中",handler:()=>l(De.CENTER)},{text:"垂直居中",handler:()=>l(De.VERTICAL)},{text:"顶部对齐",handler:()=>l(De.TOP)},{text:"底部对齐",handler:()=>l(De.BOTTOM)}]},{divider:!0},{text:"置于顶层",disable:t.isMultiSelect&&!t.elementInfo.groupId,handler:()=>o(t.elementInfo,Vt.TOP),children:[{text:"置于顶层",handler:()=>o(t.elementInfo,Vt.TOP)},{text:"上移一层",handler:()=>o(t.elementInfo,Vt.UP)}]},{text:"置于底层",disable:t.isMultiSelect&&!t.elementInfo.groupId,handler:()=>o(t.elementInfo,Vt.BOTTOM),children:[{text:"置于底层",handler:()=>o(t.elementInfo,Vt.BOTTOM)},{text:"下移一层",handler:()=>o(t.elementInfo,Vt.DOWN)}]},{divider:!0},{text:"设置链接",handler:t.openLinkDialog},{text:t.elementInfo.groupId?"取消组合":"组合",subText:"Ctrl + G",handler:t.elementInfo.groupId?a:s,hide:!t.isMultiSelect},{text:"全选",subText:"Ctrl + A",handler:p},{text:"锁定",subText:"Ctrl + L",handler:u},{text:"删除",subText:"Delete",handler:i}];return(h,P)=>(g(),b("div",{class:"editable-element",ref:"elementRef",id:`editable-element-${h.elementInfo.id}`,style:ee({zIndex:h.elementIndex})},[(g(),k(yt(n.value),{elementInfo:h.elementInfo,selectElement:h.selectElement,contextmenus:f},null,8,["elementInfo","selectElement"]))],12,AV))}}),_V=q({__name:"MouseSelection",props:{top:{},left:{},width:{},height:{},quadrant:{}},setup(e){return(t,n)=>(g(),b("div",{class:E(`mouse-selection quadrant-${t.quadrant}`),style:ee({top:t.top+"px",left:t.left+"px",width:t.width+"px",height:t.height+"px"})},null,6))}}),HV=fe(_V,[["__scopeId","data-v-c1acfb75"]]),CV={class:"grid-lines"},GV=["d","stroke"],EV=q({__name:"GridLines",setup(e){const{canvasScale:t,gridLineSize:n}=oe(Xe()),{currentSlide:o,viewportRatio:l,viewportSize:s}=oe(Ue()),a=H(()=>{var r;return(r=o.value)==null?void 0:r.background}),i=H(()=>{var d;const r=((d=a.value)==null?void 0:d.color)||"#fff",c=["#000","#fff"];return ke.mostReadable(r,c,{includeFallbackColors:!0}).setAlpha(.5).toRgbString()}),u=H(()=>{const r=s.value,c=s.value*l.value;let d="";for(let R=0;R<=Math.floor(c/n.value);R++)d+=`M0 ${R*n.value} L${r} ${R*n.value} `;for(let R=0;R<=Math.floor(r/n.value);R++)d+=`M${R*n.value} 0 L${R*n.value} ${c} `;return d});return(r,c)=>(g(),b("svg",CV,[m("path",{style:ee({transform:`scale(${v(t)})`}),d:u.value,fill:"none",stroke:i.value,"stroke-width":"0.3","stroke-dasharray":"5"},null,12,GV)]))}}),wV=fe(EV,[["__scopeId","data-v-a0656213"]]),kV=q({__name:"ViewportBackground",setup(e){const{gridLineSize:t}=oe(Xe()),{currentSlide:n}=oe(Ue()),o=H(()=>{var s;return(s=n.value)==null?void 0:s.background}),{backgroundStyle:l}=kp(o);return(s,a)=>(g(),b("div",{class:"viewport-background",style:ee(v(l))},[v(t)?(g(),k(wV,{key:0})):j("",!0)],4))}}),JV=fe(kV,[["__scopeId","data-v-af32677c"]]),xV=q({__name:"AlignmentLine",props:{type:{},axis:{},length:{},canvasScale:{}},setup(e){const t=e,n=H(()=>t.axis.x*t.canvasScale+"px"),o=H(()=>t.axis.y*t.canvasScale+"px"),l=H(()=>t.type==="vertical"?{height:t.length*t.canvasScale+"px"}:{width:t.length*t.canvasScale+"px"});return(s,a)=>(g(),b("div",{class:"alignment-line",style:ee({left:n.value,top:o.value})},[m("div",{class:E(["line",s.type]),style:ee(l.value)},null,6)],4))}}),$V=fe(xV,[["__scopeId","data-v-b479d842"]]),DV={class:"ruler"},BV={key:0},zV={key:0},jV=q({__name:"Ruler",props:{viewportStyles:{},elementList:{}},setup(e){const t=e,{canvasScale:n,activeElementIdList:o}=oe(Xe()),{viewportRatio:l,viewportSize:s}=oe(Ue()),a=_(null);Yo(()=>{const u=t.elementList.filter(r=>o.value.includes(r.id));if(!u.length)return a.value=null;a.value=An(u)});const i=H(()=>t.viewportStyles.width*n.value/(s.value/100));return(u,r)=>(g(),b("div",DV,[m("div",{class:"h",style:ee({width:u.viewportStyles.width*v(n)+"px",left:u.viewportStyles.left+"px"})},[(g(),b(ie,null,me(20,c=>m("div",{class:E(["ruler-marker-100",{hide:i.value<36,omit:i.value<72}]),key:`h-marker-100-${c}`,style:ee({width:i.value+"px"})},[c*100<=v(s)?(g(),b("span",BV,Me(c*100),1)):j("",!0)],6)),64)),a.value?(g(),b("div",{key:0,class:"range",style:ee({left:a.value.minX*v(n)+"px",width:(a.value.maxX-a.value.minX)*v(n)+"px"})},null,4)):j("",!0)],4),m("div",{class:"v",style:ee({height:u.viewportStyles.height*v(n)+"px",top:u.viewportStyles.top+"px"})},[(g(),b(ie,null,me(20,c=>m("div",{class:E(["ruler-marker-100",{hide:i.value<36,omit:i.value<72}]),key:`v-marker-100-${c}`,style:ee({height:i.value+"px"})},[c*100<=v(s)*v(l)?(g(),b("span",zV,Me(c*100),1)):j("",!0)],6)),64)),a.value?(g(),b("div",{key:0,class:"range",style:ee({top:a.value.minY*v(n)+"px",height:(a.value.maxY-a.value.minY)*v(n)+"px"})},null,4)):j("",!0)],4)]))}}),qV=fe(jV,[["__scopeId","data-v-dba47cf5"]]),ey=["width","height"],ty=["d"],ny=q({__name:"ElementCreateSelection",emits:["created"],setup(e,{emit:t}){const n=t,o=Xe(),{creatingElement:l}=oe(o),{ctrlOrShiftKeyActive:s}=oe(Mn()),a=_(),i=_(),u=_(),r=_({x:0,y:0});Ge(()=>{if(!u.value)return;const{x:p,y:f}=u.value.getBoundingClientRect();r.value={x:p,y:f}});const c=p=>{let f=!0;const h=p.pageX,P=p.pageY;a.value=[h,P],document.onmousemove=O=>{if(!l.value||!f)return;let L=O.pageX,S=O.pageY;if(s.value){const X=L-h,M=S-P,y=Math.abs(X),Y=Math.abs(M);if(l.value.type==="shape"){const T=M>0&&X<0||M<0&&X>0;y>Y?S=T?P-X:P+X:L=T?h-M:h+M}else l.value.type==="line"&&(y>Y?S=P:L=h)}i.value=[L,S]},document.onmouseup=O=>{var M,y;if(document.onmousemove=null,document.onmouseup=null,O.button===2){setTimeout(()=>o.setCreatingElement(null),0);return}f=!1;const L=O.pageX,S=O.pageY,X=30;if(((M=l.value)==null?void 0:M.type)==="line"&&(Math.abs(L-h)>=X||Math.abs(S-P)>=X))n("created",{start:a.value,end:i.value});else if(((y=l.value)==null?void 0:y.type)!=="line"&&Math.abs(L-h)>=X&&Math.abs(S-P)>=X)n("created",{start:a.value,end:i.value});else{const T=Math.min(L,h),V=Math.min(S,P),I=Math.max(L,h),W=Math.max(S,P),F=I-T>=X?I-T:200,C=W-V>=X?W-V:200;n("created",{start:[T,V],end:[T+F,V+C]})}}},d=H(()=>{if(!a.value||!i.value||!l.value||l.value.type!=="line")return null;const[p,f]=a.value,[h,P]=i.value,O=Math.min(p,h),L=Math.max(p,h),S=Math.min(f,P),X=Math.max(f,P),M=L-O>=24?L-O:24,y=X-S>=24?X-S:24,Y=p===O?0:L-O,T=f===S?0:X-S,V=h===O?0:L-O,I=P===S?0:X-S,W=`M${Y}, ${T} L${V}, ${I}`;return{svgWidth:M,svgHeight:y,startX:Y,startY:T,endX:V,endY:I,path:W}}),R=H(()=>{if(!a.value||!i.value)return{};const[p,f]=a.value,[h,P]=i.value,O=Math.min(p,h),L=Math.max(p,h),S=Math.min(f,P),X=Math.max(f,P),M=L-O,y=X-S;return{left:O-r.value.x+"px",top:S-r.value.y+"px",width:M+"px",height:y+"px"}});return(p,f)=>{var h,P;return g(),b("div",{class:"element-create-selection",ref_key:"selectionRef",ref:u,onMousedown:f[0]||(f[0]=Fe(O=>c(O),["stop"])),onContextmenu:f[1]||(f[1]=Fe(()=>{},["stop","prevent"]))},[a.value&&i.value?(g(),b("div",{key:0,class:E(["selection",(h=v(l))==null?void 0:h.type]),style:ee(R.value)},[((P=v(l))==null?void 0:P.type)==="line"&&d.value?(g(),b("svg",{key:0,overflow:"visible",width:d.value.svgWidth,height:d.value.svgHeight},[m("path",{d:d.value.path,stroke:"#5b9bd5",fill:"none","stroke-width":"2"},null,8,ty)],8,ey)):j("",!0)],6)):j("",!0)],544)}}}),oy=fe(ny,[["__scopeId","data-v-9739adcc"]]),ly={overflow:"visible"},sy=["d","fill"],ay=q({__name:"ShapeCreateCanvas",emits:["created"],setup(e,{emit:t}){const n=t,o=Xe(),{ctrlOrShiftKeyActive:l}=oe(Mn()),{theme:s}=oe(Ue()),a=_(),i=_(!1),u=_({x:0,y:0});Ge(()=>{if(!a.value)return;const{x:X,y:M}=a.value.getBoundingClientRect();u.value={x:X,y:M}});const r=_(null),c=_([]),d=_(!1),R=(X,M=!1)=>{let y=X.pageX-u.value.x,Y=X.pageY-u.value.y;if(M)return{pageX:y,pageY:Y};if(l.value&&c.value.length){const[T,V]=c.value[c.value.length-1];Math.abs(T-y)-Math.abs(V-Y)>0?Y=V:y=T}return{pageX:y,pageY:Y}},p=X=>{if(i.value){const{pageX:Y,pageY:T}=R(X,!0);c.value.push([Y,T]),r.value=null;return}const{pageX:M,pageY:y}=R(X);if(r.value=[M,y],c.value.length>=2){const[Y,T]=c.value[0];Math.abs(Y-M)<5&&Math.abs(T-y)<5?d.value=!0:d.value=!1}else d.value=!1},f=H(()=>{let X="";for(let M=0;M<c.value.length;M++){const y=c.value[M];M===0?X+=`M ${y[0]} ${y[1]} `:X+=`L ${y[0]} ${y[1]} `}return c.value.length&&r.value&&(X+=`L ${r.value[0]} ${r.value[1]}`),X}),h=(X=!0)=>{const M=c.value.map(U=>U[0]),y=c.value.map(U=>U[1]),Y=Math.min(...M),T=Math.min(...y),V=Math.max(...M),I=Math.max(...y),W=c.value.map(U=>[U[0]-Y,U[1]-T]);let F="";for(let U=0;U<W.length;U++){const G=W[U];U===0?F+=`M ${G[0]} ${G[1]} `:F+=`L ${G[0]} ${G[1]} `}X&&(F+="Z");const C=[Y+u.value.x,T+u.value.y],Z=[V+u.value.x,I+u.value.y],K=[V-Y,I-T];return{start:C,end:Z,path:F,viewBox:K}},P=X=>{const{pageX:M,pageY:y}=R(X);i.value=!0,d.value?n("created",h()):c.value.push([M,y]),document.onmouseup=()=>{i.value=!1}},O=()=>{o.setCreatingCustomShapeState(!1)},L=()=>{n("created",{...h(!1),fill:"rgba(0, 0, 0, 0)",outline:{width:2,color:s.value.themeColor,style:"solid"}}),O()},S=X=>{const M=X.key.toUpperCase();M===Ye.ESC&&O(),M===Ye.ENTER&&L()};return Ge(()=>{Wt.success("点击绘制任意形状,首尾闭合完成绘制,按 ESC 键或鼠标右键取消,按 ENTER 键提前完成",{duration:0}),document.addEventListener("keydown",S)}),mt(()=>{document.removeEventListener("keydown",S),Wt.closeAll()}),(X,M)=>(g(),b("div",{class:"shape-create-canvas",ref_key:"shapeCanvasRef",ref:a,onMousedown:M[0]||(M[0]=Fe(y=>P(y),["stop"])),onMousemove:M[1]||(M[1]=y=>p(y)),onContextmenu:M[2]||(M[2]=Fe(y=>O(),["stop","prevent"]))},[(g(),b("svg",ly,[m("path",{d:f.value,stroke:"#5b9bd5",fill:d.value?"rgba(226, 83, 77, 0.15)":"none","stroke-width":"2"},null,8,sy)]))],544))}}),iy=fe(ay,[["__scopeId","data-v-1cad1846"]]),rl=(e,t)=>{const n=H(()=>[{direction:be.LEFT_TOP,style:{}},{direction:be.TOP,style:{left:e.value/2+"px"}},{direction:be.RIGHT_TOP,style:{left:e.value+"px"}},{direction:be.LEFT,style:{top:t.value/2+"px"}},{direction:be.RIGHT,style:{left:e.value+"px",top:t.value/2+"px"}},{direction:be.LEFT_BOTTOM,style:{top:t.value+"px"}},{direction:be.BOTTOM,style:{left:e.value/2+"px",top:t.value+"px"}},{direction:be.RIGHT_BOTTOM,style:{left:e.value+"px",top:t.value+"px"}}]),o=H(()=>[{direction:be.LEFT,style:{top:t.value/2+"px"}},{direction:be.RIGHT,style:{left:e.value+"px",top:t.value/2+"px"}}]),l=H(()=>[{direction:be.TOP,style:{left:e.value/2+"px"}},{direction:be.BOTTOM,style:{left:e.value/2+"px",top:t.value+"px"}}]),s=H(()=>[{type:vl.T,style:{width:e.value+"px"}},{type:vl.B,style:{top:t.value+"px",width:e.value+"px"}},{type:vl.L,style:{height:t.value+"px"}},{type:vl.R,style:{left:e.value+"px",height:t.value+"px"}}]);return{resizeHandlers:n,textElementResizeHandlers:o,verticalTextElementResizeHandlers:l,borderLines:s}},ry=q({__name:"ResizeHandler",props:{type:{},rotate:{default:0}},setup(e){const t=e,n=H(()=>{const o="rotate-",l=t.rotate;return l>-22.5&&l<=22.5?o+0:l>22.5&&l<=67.5?o+45:l>67.5&&l<=112.5?o+90:l>112.5&&l<=157.5?o+135:l>157.5||l<=-157.5?o+0:l>-157.5&&l<=-112.5?o+45:l>-112.5&&l<=-67.5?o+90:l>-67.5&&l<=-22.5?o+135:o+0});return(o,l)=>(g(),b("div",{class:E(["resize-handler",n.value,o.type])},null,2))}}),Qo=fe(ry,[["__scopeId","data-v-844cb182"]]),uy=q({__name:"BorderLine",props:{type:{},isWide:{type:Boolean,default:!1}},setup(e){return(t,n)=>(g(),b("div",{class:E(["border-line",t.type,{wide:t.isWide}])},null,2))}}),ul=fe(uy,[["__scopeId","data-v-39bc862b"]]),cy=q({__name:"MultiSelectOperate",props:{elementList:{},scaleMultiElement:{type:Function}},setup(e){const t=e,{activeElementIdList:n,canvasScale:o}=oe(Xe()),l=H(()=>t.elementList.filter(R=>n.value.includes(R.id))),s=_({minX:0,maxX:0,minY:0,maxY:0}),a=H(()=>(s.value.maxX-s.value.minX)*o.value),i=H(()=>(s.value.maxY-s.value.minY)*o.value),{resizeHandlers:u,borderLines:r}=rl(a,i);Yo(()=>{const{minX:R,maxX:p,minY:f,maxY:h}=An(l.value);s.value={minX:R,maxX:p,minY:f,maxY:h}});const d=H(()=>l.value.some(R=>!((R.type==="image"||R.type==="shape")&&!R.rotate)));return(R,p)=>(g(),b("div",{class:"multi-select-operate",style:ee({left:s.value.minX*v(o)+"px",top:s.value.minY*v(o)+"px"})},[(g(!0),b(ie,null,me(v(r),f=>(g(),k(ul,{key:f.type,type:f.type,style:ee(f.style)},null,8,["type","style"]))),128)),d.value?j("",!0):(g(!0),b(ie,{key:0},me(v(u),f=>(g(),k(Qo,{key:f.direction,type:f.direction,style:ee(f.style),onMousedown:Fe(h=>R.scaleMultiElement(h,s.value,f.direction),["stop"])},null,8,["type","style","onMousedown"]))),128))],4))}}),dy=fe(cy,[["__scopeId","data-v-3618c996"]]),Ry={},fy={class:"rotate-handler"};function py(e,t){return g(),b("div",fy)}const Kl=fe(Ry,[["render",py],["__scopeId","data-v-7f7f964f"]]),hy={inheritAttrs:!1},vy=q({...hy,__name:"ImageElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(e){const t=e,{canvasScale:n,clipingImageElementId:o}=oe(Xe()),l=H(()=>o.value===t.elementInfo.id),s=H(()=>t.elementInfo.width*n.value),a=H(()=>t.elementInfo.height*n.value),{resizeHandlers:i,borderLines:u}=rl(s,a);return(r,c)=>(g(),b("div",{class:E(["image-element-operate",{cliping:l.value}])},[(g(!0),b(ie,null,me(v(u),d=>(g(),k(ul,{class:"operate-border-line",key:d.type,type:d.type,style:ee(d.style)},null,8,["type","style"]))),128)),r.handlerVisible?(g(),b(ie,{key:0},[(g(!0),b(ie,null,me(v(i),d=>(g(),k(Qo,{class:"operate-resize-handler",key:d.direction,type:d.direction,rotate:r.elementInfo.rotate,style:ee(d.style),onMousedown:Fe(R=>r.scaleElement(R,r.elementInfo,d.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),N(Kl,{class:"operate-rotate-handler",style:ee({left:s.value/2+"px"}),onMousedown:c[0]||(c[0]=Fe(d=>r.rotateElement(d,r.elementInfo),["stop"]))},null,8,["style"])],64)):j("",!0)],2))}}),my=fe(vy,[["__scopeId","data-v-2a1bef4e"]]),My={class:"text-element-operate"},gy={inheritAttrs:!1},Sy=q({...gy,__name:"TextElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(e){const t=e,{canvasScale:n}=oe(Xe()),o=H(()=>t.elementInfo.width*n.value),l=H(()=>t.elementInfo.height*n.value),{textElementResizeHandlers:s,verticalTextElementResizeHandlers:a,borderLines:i}=rl(o,l),u=H(()=>t.elementInfo.vertical?a.value:s.value);return(r,c)=>(g(),b("div",My,[(g(!0),b(ie,null,me(v(i),d=>(g(),k(ul,{class:"operate-border-line",key:d.type,type:d.type,style:ee(d.style)},null,8,["type","style"]))),128)),r.handlerVisible?(g(),b(ie,{key:0},[(g(!0),b(ie,null,me(u.value,d=>(g(),k(Qo,{class:"operate-resize-handler",key:d.direction,type:d.direction,rotate:r.elementInfo.rotate,style:ee(d.style),onMousedown:Fe(R=>r.scaleElement(R,r.elementInfo,d.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),N(Kl,{class:"operate-rotate-handler",style:ee({left:o.value/2+"px"}),onMousedown:c[0]||(c[0]=Fe(d=>r.rotateElement(d,r.elementInfo),["stop"]))},null,8,["style"])],64)):j("",!0)]))}}),Oy={class:"shape-element-operate"},Py=["onMousedown"],Ny={inheritAttrs:!1},Xy=q({...Ny,__name:"ShapeElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function},moveShapeKeypoint:{type:Function}},setup(e){const t=e,{canvasScale:n}=oe(Xe()),o=H(()=>t.elementInfo.width*n.value),l=H(()=>t.elementInfo.height*n.value),{resizeHandlers:s,borderLines:a}=rl(o,l),i=H(()=>{if(!t.elementInfo.pathFormula||t.elementInfo.keypoints===void 0)return[];const u=sl[t.elementInfo.pathFormula];return t.elementInfo.keypoints.map((r,c)=>{const d=u.getBaseSize[c],R=u.relative[c],p=d(t.elementInfo.width,t.elementInfo.height)*r;let f={};return R==="left"?f={left:p*n.value+"px"}:R==="right"?f={left:(t.elementInfo.width-p)*n.value+"px"}:R==="center"?f={left:(t.elementInfo.width-p)/2*n.value+"px"}:R==="top"?f={top:p*n.value+"px"}:R==="bottom"?f={top:(t.elementInfo.height-p)*n.value+"px"}:R==="left_bottom"?f={left:p*n.value+"px",top:t.elementInfo.height*n.value+"px"}:R==="right_bottom"?f={left:(t.elementInfo.width-p)*n.value+"px",top:t.elementInfo.height*n.value+"px"}:R==="top_right"?f={left:t.elementInfo.width*n.value+"px",top:p*n.value+"px"}:R==="bottom_right"&&(f={left:t.elementInfo.width*n.value+"px",top:(t.elementInfo.height-p)*n.value+"px"}),{keypoint:r,styles:f}})});return(u,r)=>(g(),b("div",Oy,[(g(!0),b(ie,null,me(v(a),c=>(g(),k(ul,{class:"operate-border-line",key:c.type,type:c.type,style:ee(c.style)},null,8,["type","style"]))),128)),u.handlerVisible?(g(),b(ie,{key:0},[(g(!0),b(ie,null,me(v(s),c=>(g(),k(Qo,{class:"operate-resize-handler",key:c.direction,type:c.direction,rotate:u.elementInfo.rotate,style:ee(c.style),onMousedown:Fe(d=>u.scaleElement(d,u.elementInfo,c.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),N(Kl,{class:"operate-rotate-handler",style:ee({left:o.value/2+"px"}),onMousedown:r[0]||(r[0]=Fe(c=>u.rotateElement(c,u.elementInfo),["stop"]))},null,8,["style"]),(g(!0),b(ie,null,me(i.value,(c,d)=>(g(),b("div",{class:"operate-keypoint-handler",key:d,style:ee(c.styles),onMousedown:Fe(R=>u.moveShapeKeypoint(R,u.elementInfo,d),["stop"])},null,44,Py))),128))],64)):j("",!0)]))}}),Ty=fe(Xy,[["__scopeId","data-v-e764f589"]]),Vy={class:"line-element-operate"},yy=["width","height","stroke"],Ly={key:0},by=["x1","y1","x2","y2"],Iy=["x1","y1","x2","y2"],Yy=["x1","y1","x2","y2"],Wy=["x1","y1","x2","y2"],Uy={inheritAttrs:!1},Qy=q({...Uy,__name:"LineElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},dragLineElement:{type:Function}},setup(e){const t=e,{canvasScale:n}=oe(Xe()),o=H(()=>Math.max(t.elementInfo.start[0],t.elementInfo.end[0])),l=H(()=>Math.max(t.elementInfo.start[1],t.elementInfo.end[1])),s=H(()=>{const a=[{handler:qt.START,style:{left:t.elementInfo.start[0]*n.value+"px",top:t.elementInfo.start[1]*n.value+"px"}},{handler:qt.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 i=t.elementInfo.curve||t.elementInfo.broken||t.elementInfo.broken2;a.push({handler:qt.C,style:{left:i[0]*n.value+"px",top:i[1]*n.value+"px"}})}else if(t.elementInfo.cubic){const[i,u]=t.elementInfo.cubic;a.push({handler:qt.C1,style:{left:i[0]*n.value+"px",top:i[1]*n.value+"px"}}),a.push({handler:qt.C2,style:{left:u[0]*n.value+"px",top:u[1]*n.value+"px"}})}return a});return(a,i)=>(g(),b("div",Vy,[a.handlerVisible?(g(),b(ie,{key:0},[(g(!0),b(ie,null,me(s.value,u=>(g(),k(Qo,{class:"operate-resize-handler",key:u.handler,style:ee(u.style),onMousedown:Fe(r=>a.dragLineElement(r,a.elementInfo,u.handler),["stop"])},null,8,["style","onMousedown"]))),128)),(g(),b("svg",{width:o.value||1,height:l.value||1,stroke:a.elementInfo.color,overflow:"visible",style:ee({transform:`scale(${v(n)})`})},[a.elementInfo.curve?(g(),b("g",Ly,[m("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,by),m("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,Iy)])):j("",!0),a.elementInfo.cubic?(g(!0),b(ie,{key:1},me(a.elementInfo.cubic,(u,r)=>(g(),b("g",{key:r},[r===0?(g(),b("line",{key:0,class:"anchor-line",x1:a.elementInfo.start[0],y1:a.elementInfo.start[1],x2:u[0],y2:u[1]},null,8,Yy)):j("",!0),r===1?(g(),b("line",{key:1,class:"anchor-line",x1:a.elementInfo.end[0],y1:a.elementInfo.end[1],x2:u[0],y2:u[1]},null,8,Wy)):j("",!0)]))),128)):j("",!0)],12,yy))],64)):j("",!0)]))}}),Fy=fe(Qy,[["__scopeId","data-v-ccfba7f7"]]),Zy={class:"table-element-operate"},Ay={inheritAttrs:!1},Ky=q({...Ay,__name:"TableElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(e){const t=e,{canvasScale:n}=oe(Xe()),o=H(()=>t.elementInfo.outline.width||1),l=H(()=>(t.elementInfo.width+o.value)*n.value),s=H(()=>t.elementInfo.height*n.value),{resizeHandlers:a,borderLines:i}=rl(l,s);return(u,r)=>(g(),b("div",Zy,[(g(!0),b(ie,null,me(v(i),c=>(g(),k(ul,{class:"operate-border-line",key:c.type,type:c.type,style:ee(c.style)},null,8,["type","style"]))),128)),u.handlerVisible?(g(),b(ie,{key:0},[(g(!0),b(ie,null,me(v(a),c=>(g(),k(Qo,{class:"operate-resize-handler",key:c.direction,type:c.direction,rotate:u.elementInfo.rotate,style:ee(c.style),onMousedown:Fe(d=>u.scaleElement(d,u.elementInfo,c.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),N(Kl,{class:"operate-rotate-handler",style:ee({left:l.value/2+"px"}),onMousedown:r[0]||(r[0]=Fe(c=>u.rotateElement(c,u.elementInfo),["stop"]))},null,8,["style"])],64)):j("",!0)]))}}),_y={class:"common-element-operate"},Hy={inheritAttrs:!1},va=q({...Hy,__name:"CommonElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(e){const t=e,{canvasScale:n}=oe(Xe()),o=H(()=>t.elementInfo.width*n.value),l=H(()=>t.elementInfo.height*n.value),{resizeHandlers:s,borderLines:a}=rl(o,l),i=H(()=>["chart","elf"].includes(t.elementInfo.type));return(u,r)=>(g(),b("div",_y,[(g(!0),b(ie,null,me(v(a),c=>(g(),k(ul,{class:"operate-border-line",key:c.type,type:c.type,style:ee(c.style)},null,8,["type","style"]))),128)),u.handlerVisible?(g(),b(ie,{key:0},[(g(!0),b(ie,null,me(v(s),c=>(g(),k(Qo,{class:"operate-resize-handler",key:c.direction,type:c.direction,rotate:u.elementInfo.rotate,style:ee(c.style),onMousedown:Fe(d=>u.scaleElement(d,u.elementInfo,c.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),i.value?j("",!0):(g(),k(Kl,{key:0,class:"operate-rotate-handler",style:ee({left:o.value/2+"px"}),onMousedown:r[0]||(r[0]=Fe(c=>u.rotateElement(c,u.elementInfo),["stop"]))},null,8,["style"]))],64)):j("",!0)]))}}),XR=()=>{const e=Ue(),{addHistorySnapshot:t}=He();return{setLink:(l,s)=>{const a=/^(https?):\/\/[\w\-]+(\.[\w\-]+)+([\w\-.,@?^=%&:\/~+#]*[\w\-@?^=%&\/~+#])?$/;if(s.type==="web"&&!a.test(s.target))return Wt.error("不是正确的网页链接地址"),!1;if(s.type==="slide"&&!s.target)return Wt.error("请先选择链接目标"),!1;const i={link:s};return e.updateElement({id:l.id,props:i}),t(),!0},removeLink:l=>{e.removeElementProps({id:l.id,propName:"link"}),t()}}},Cy=["href"],Gy={class:"btns"},Ey=q({__name:"LinkHandler",props:{elementInfo:{},link:{},openLinkDialog:{type:Function}},setup(e){const t=e,n=Xe(),o=Ue(),{canvasScale:l}=oe(n),{slides:s}=oe(o),{removeLink:a}=XR(),i=H(()=>t.elementInfo.type==="line"?0:t.elementInfo.height),u=r=>{const c=s.value.findIndex(d=>d.id===r);c!==-1&&(n.setActiveElementIdList([]),o.updateSlideIndex(c))};return(r,c)=>(g(),b("div",{class:"link-handler",style:ee({top:i.value*v(l)+10+"px"})},[r.link.type==="web"?(g(),b("a",{key:0,class:"link",href:r.link.target,target:"_blank"},Me(r.link.target),9,Cy)):(g(),b("a",{key:1,class:"link",onClick:c[0]||(c[0]=d=>u(r.link.target))},"幻灯片页面 "+Me(r.link.target),1)),m("div",Gy,[m("div",{class:"btn",onClick:c[1]||(c[1]=d=>r.openLinkDialog())},"更换"),N(Ce,{type:"vertical"}),m("div",{class:"btn",onClick:c[2]||(c[2]=d=>v(a)(r.elementInfo))},"移除")])],4))}}),wy=fe(Ey,[["__scopeId","data-v-2b064319"]]),ky={key:1,class:"animation-index"},Jy=q({__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:o}=oe(Xe()),{formatedAnimations:l}=oe(Ue()),s=H(()=>({[ct.IMAGE]:my,[ct.TEXT]:Sy,[ct.SHAPE]:Ty,[ct.LINE]:Fy,[ct.TABLE]:Ky,[ct.CHART]:va,[ct.LATEX]:va,[ct.ELF]:va})[t.elementInfo.type]||null),a=H(()=>{const r=[];for(let c=0;c<l.value.length;c++)l.value[c].animations.map(R=>R.elId).includes(t.elementInfo.id)&&r.push(c);return r}),i=H(()=>"rotate"in t.elementInfo?t.elementInfo.rotate:0),u=H(()=>"height"in t.elementInfo?t.elementInfo.height:0);return(r,c)=>(g(),b("div",{class:E(["operate",{"multi-select":r.isMultiSelect&&!r.isActive}]),style:ee({top:r.elementInfo.top*v(n)+"px",left:r.elementInfo.left*v(n)+"px",transform:`rotate(${i.value}deg)`,transformOrigin:`${r.elementInfo.width*v(n)/2}px ${u.value*v(n)/2}px`})},[r.isSelected?(g(),k(yt(s.value),{key:0,elementInfo:r.elementInfo,handlerVisible:!r.elementInfo.lock&&(r.isActiveGroupElement||!r.isMultiSelect),rotateElement:r.rotateElement,scaleElement:r.scaleElement,dragLineElement:r.dragLineElement,moveShapeKeypoint:r.moveShapeKeypoint},null,8,["elementInfo","handlerVisible","rotateElement","scaleElement","dragLineElement","moveShapeKeypoint"])):j("",!0),v(o)==="elAnimation"&&a.value.length?(g(),b("div",ky,[(g(!0),b(ie,null,me(a.value,d=>(g(),b("div",{class:"index-item",key:d},Me(d+1),1))),128))])):j("",!0),r.isActive&&r.elementInfo.link?(g(),k(wy,{key:2,elementInfo:r.elementInfo,link:r.elementInfo.link,openLinkDialog:r.openLinkDialog,onMousedown:c[0]||(c[0]=Fe(()=>{},["stop"]))},null,8,["elementInfo","link","openLinkDialog"])):j("",!0)],6))}}),xy=fe(Jy,[["__scopeId","data-v-1ff7dd88"]]),$y=["onClick"],Dy=q({__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(o,l)=>(g(),b("div",{class:E(["tabs",{card:o.card,"space-around":o.spaceAround,"space-between":o.spaceBetween}]),style:ee(o.tabsStyle||{})},[(g(!0),b(ie,null,me(o.tabs,s=>(g(),b("div",{class:E(["tab",{active:s.key===o.value}]),key:s.key,style:ee({...o.tabStyle||{},"--color":s.color}),onClick:a=>n("update:value",s.key)},Me(s.label),15,$y))),128))],6))}}),uo=fe(Dy,[["__scopeId","data-v-ad9c9630"]]),By={class:"prefix"},zy=["disabled","value","placeholder"],jy={class:"suffix"},qy=q({__name:"Input",props:{value:{},disabled:{type:Boolean,default:!1},placeholder:{default:""},simple:{type:Boolean,default:!1}},emits:["update:value","input","change","blur","focus","enter"],setup(e,{expose:t,emit:n}){const o=n,l=_(!1),s=c=>{o("update:value",c.target.value)},a=c=>{l.value=!1,o("blur",c)},i=c=>{l.value=!0,o("focus",c)},u=_();return t({focus:()=>{u.value&&u.value.focus()}}),(c,d)=>(g(),b("div",{class:E(["input",{disabled:c.disabled,focused:l.value,simple:c.simple}])},[m("span",By,[We(c.$slots,"prefix",{},void 0,!0)]),m("input",{type:"text",ref_key:"inputRef",ref:u,disabled:c.disabled,value:c.value,placeholder:c.placeholder,onInput:d[0]||(d[0]=R=>s(R)),onFocus:d[1]||(d[1]=R=>i(R)),onBlur:d[2]||(d[2]=R=>a(R)),onChange:d[3]||(d[3]=R=>o("change",R)),onKeydown:d[4]||(d[4]=Yt(R=>o("enter",R),["enter"]))},null,40,zy),m("span",jy,[We(c.$slots,"suffix",{},void 0,!0)])],2))}}),el=fe(qy,[["__scopeId","data-v-8376a8ac"]]),eL=q({__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,o=t,l=()=>{n.disabled||o("click")};return(s,a)=>(g(),b("button",{class:E(["button",{disabled:s.disabled,checked:!s.disabled&&s.checked,default:!s.disabled&&s.type==="default",primary:!s.disabled&&s.type==="primary",checkbox:!s.disabled&&s.type==="checkbox",radio:!s.disabled&&s.type==="radio",small:s.size==="small",first:s.first,last:s.last}]),onClick:a[0]||(a[0]=i=>l())},[We(s.$slots,"default",{},void 0,!0)],2))}}),Ve=fe(eL,[["__scopeId","data-v-a85d4d53"]]),tL={key:0,class:"select-wrap"},nL={class:"selector"},oL={class:"icon"},lL=["onClick"],sL={class:"selector"},aL={class:"icon"},iL=q({__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,o=t,l=_(!1),s=_(),a=_(),i=_(0),u=_(""),r=H(()=>{var f;return((f=n.options.find(h=>h.value===n.value))==null?void 0:f.label)||n.value}),c=H(()=>{if(!n.search||!u.value.trim())return n.options;const f=n.options.filter(h=>h.label.toLowerCase().indexOf(u.value.toLowerCase())!==-1);return f.length?f:n.options});Pe(l,()=>{l.value?we(()=>{a.value&&a.value.focus()}):u.value=""}),Gt(()=>{u.value=""});const d=()=>{s.value&&(i.value=s.value.clientWidth)},R=new ResizeObserver(d);Ge(()=>{s.value&&R.observe(s.value)}),mt(()=>{s.value&&R.unobserve(s.value)});const p=f=>{f.disabled||(o("update:value",f.value),l.value=!1)};return(f,h)=>{const P=te("IconDown");return f.disabled?(g(),b("div",tL,[m("div",{class:"select disabled",ref_key:"selectRef",ref:s},[m("div",nL,Me(f.value),1),m("div",oL,[We(f.$slots,"icon",{},()=>[N(P,{size:14})],!0)])],512)])):(g(),k(Ke,{key:1,class:"select-wrap",trigger:"click",value:l.value,"onUpdate:value":h[1]||(h[1]=O=>l.value=O),placement:"bottom",contentStyle:{padding:0,boxShadow:"0 6px 16px 0 rgba(0, 0, 0, 0.08)"}},{content:Q(()=>[f.search?(g(),b(ie,{key:0},[N(el,{ref_key:"searchInputRef",ref:a,simple:"",placeholder:f.searchLabel,value:u.value,"onUpdate:value":h[0]||(h[0]=O=>u.value=O),style:ee({width:i.value+2+"px"})},null,8,["placeholder","value","style"]),N(Ce,{margin:0})],64)):j("",!0),m("div",{class:"options",style:ee({width:i.value+2+"px"})},[(g(!0),b(ie,null,me(c.value,O=>(g(),b("div",{class:E(["option",{disabled:O.disabled,selected:O.value===f.value}]),key:O.value,onClick:L=>p(O)},Me(O.label),11,lL))),128))],4)]),default:Q(()=>[m("div",{class:"select",ref_key:"selectRef",ref:s},[m("div",sL,Me(r.value),1),m("div",aL,[We(f.$slots,"icon",{},()=>[N(P,{size:14})],!0)])],512)]),_:3},8,["value"]))}}}),rt=fe(iL,[["__scopeId","data-v-b124c276"]]),rL=e=>(Je("data-v-aad6909f"),e=e(),xe(),e),uL={class:"link-dialog"},cL={key:2,class:"preview"},dL=rL(()=>m("div",null,"预览:",-1)),RL={class:"btns"},fL=q({__name:"LinkDialog",emits:["close"],setup(e,{emit:t}){var f;const n=t,{handleElement:o}=oe(Xe()),{slides:l,currentSlide:s}=oe(Ue()),a=_("web"),i=_(""),u=_(""),r=H(()=>l.value.map((h,P)=>({label:`幻灯片 ${P+1}`,value:h.id,disabled:s.value.id===h.id})));u.value=((f=l.value.find(h=>h.id!==s.value.id))==null?void 0:f.id)||"";const c=H(()=>u.value&&l.value.find(h=>h.id===u.value)||null),d=[{key:"web",label:"网页链接"},{key:"slide",label:"幻灯片页面"}],{setLink:R}=XR();Ge(()=>{var h;(h=o.value)!=null&&h.link&&(o.value.link.type==="web"?i.value=o.value.link.target:o.value.link.type==="slide"&&(u.value=o.value.link.target),a.value=o.value.link.type)});const p=()=>{const h={type:a.value,target:a.value==="web"?i.value:u.value};o.value&&(R(o.value,h)?n("close"):i.value="")};return(h,P)=>(g(),b("div",uL,[N(uo,{tabs:d,value:a.value,"onUpdate:value":P[0]||(P[0]=O=>a.value=O),tabsStyle:{marginBottom:"20px"}},null,8,["value"]),a.value==="web"?(g(),k(el,{key:0,class:"input",value:i.value,"onUpdate:value":P[1]||(P[1]=O=>i.value=O),placeholder:"请输入网页链接地址"},null,8,["value"])):j("",!0),a.value==="slide"?(g(),k(rt,{key:1,class:"input",value:u.value,"onUpdate:value":P[2]||(P[2]=O=>u.value=O),options:r.value},null,8,["value","options"])):j("",!0),a.value==="slide"&&c.value?(g(),b("div",cL,[dL,N(ni,{class:"thumbnail",slide:c.value,size:500},null,8,["slide"])])):j("",!0),m("div",RL,[N(Ve,{onClick:P[3]||(P[3]=O=>n("close")),style:{"margin-right":"10px"}},{default:Q(()=>[Oe("取消")]),_:1}),N(Ve,{type:"primary",onClick:P[4]||(P[4]=O=>p())},{default:Q(()=>[Oe("确认")]),_:1})])]))}}),pL=fe(fL,[["__scopeId","data-v-aad6909f"]]),hL=q({__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}=Mp,o=e,l=_(),s=t,a=_(!1),i=H(()=>({width:o.width+"px",...o.contentStyle||{}}));Pe(()=>o.visible,()=>{o.visible&&we(()=>l.value.focus())});const u=()=>{s("update:visible",!1),s("closed")},r=()=>{o.visible&&o.closeOnEsc&&u()},c=()=>{o.closeOnClickMask&&u()};return(d,R)=>(g(),k(qa,{to:"body"},[N(io,{name:"modal-fade"},{default:Q(()=>[de(m("div",{class:"modal",ref_key:"modalRef",ref:l,tabindex:"-1",onKeyup:R[4]||(R[4]=Yt(p=>r(),["esc"]))},[m("div",{class:"mask",onClick:R[0]||(R[0]=p=>c())}),N(io,{name:"modal-zoom",onAfterLeave:R[2]||(R[2]=p=>a.value=!1),onBeforeEnter:R[3]||(R[3]=p=>a.value=!0)},{default:Q(()=>[de(m("div",{class:"modal-content",style:ee(i.value)},[d.closeButton?(g(),b("span",{key:0,class:"close-btn",onClick:R[1]||(R[1]=p=>u())},[N(v(n))])):j("",!0),a.value?We(d.$slots,"default",{key:1},void 0,!0):j("",!0)],4),[[Nt,d.visible]])]),_:3})],544),[[Nt,d.visible]])]),_:3})]))}}),tl=fe(hL,[["__scopeId","data-v-189609cf"]]),vL={class:"operates"},mL={key:2,class:"drag-mask"},ML=q({__name:"index",setup(e){const t=Xe(),{activeElementIdList:n,activeGroupElementId:o,handleElementId:l,hiddenElementIdList:s,editorAreaFocus:a,gridLineSize:i,showRuler:u,creatingElement:r,creatingCustomShape:c,canvasScale:d,textFormatPainter:R}=oe(t),{currentSlide:p}=oe(Ue()),{ctrlKeyState:f,spaceKeyState:h}=oe(Mn()),P=_(),O=_([]),L=_(!1),S=()=>L.value=!0;Pe(l,()=>{t.setActiveGroupElementId("")});const X=_([]);Yo(()=>{X.value=p.value?JSON.parse(JSON.stringify(p.value.elements)):[]});const y=_(),{dragViewport:Y,viewportStyles:T}=dX(y);fX(y);const{mouseSelection:V,mouseSelectionVisible:I,mouseSelectionQuadrant:W,updateMouseSelection:F}=RX(X,P),{dragElement:C}=MX(X,O,d),{dragLineElement:Z}=gX(X),{selectElement:K}=mX(X,C),{scaleElement:U,scaleMultiElement:G}=vX(X,O,d),{rotateElement:D}=hX(X,P,d),{moveShapeKeypoint:le}=SX(X,d),{selectAllElements:Re}=Ks(),{deleteAllElements:ae}=As(),{pasteElement:Se}=Ni(),{enterScreeningFromStart:J}=Is(),{updateSlideIndex:B}=Ul(),{createTextElement:Ie,createShapeElement:ce}=il();Ge(()=>{n.value.length&&we(()=>t.setActiveElementIdList([]))});const z=Ne=>{n.value.length&&t.setActiveElementIdList([]),h.value?Y(Ne):F(Ne),a.value||t.setEditorareaFocus(!0),R.value&&t.setTextFormatPainter(null),cX()},ne=Ne=>{if(n.value.length||r.value||c.value||!P.value)return;const he=P.value.getBoundingClientRect(),Le=(Ne.pageX-he.x)/d.value,ve=(Ne.pageY-he.y)/d.value;Ie({left:Le,top:ve,width:200/d.value,height:0})};mt(()=>{R.value&&t.setTextFormatPainter(null)});const ge=()=>{a.value&&t.setEditorareaFocus(!1)},{scaleCanvas:w}=Xi(),$=vt.throttle(w,100,{leading:!0,trailing:!1}),A=vt.throttle(B,300,{leading:!0,trailing:!1}),x=Ne=>{Ne.preventDefault(),f.value?Ne.deltaY>0?$("-"):Ne.deltaY<0&&$("+"):Ne.deltaY>0?A(Ye.DOWN):Ne.deltaY<0&&A(Ye.UP)},re=()=>{t.setRulerState(!u.value)},{insertElementFromCreateSelection:ue,formatCreateSelection:Te}=OX(P),Ae=Ne=>{const{start:he,end:Le,path:ve,viewBox:_e}=Ne,je=Te({start:he,end:Le});if(je){const pe={};Ne.fill&&(pe.fill=Ne.fill),Ne.outline&&(pe.outline=Ne.outline),ce(je,{path:ve,viewBox:_e},pe)}t.setCreatingCustomShapeState(!1)},Qe=()=>[{text:"粘贴",subText:"Ctrl + V",handler:Se},{text:"全选",subText:"Ctrl + A",handler:Re},{text:"标尺",subText:u.value?"√":"",handler:re},{text:"网格线",handler:()=>t.setGridLineSize(i.value?0:50),children:[{text:"无",subText:i.value===0?"√":"",handler:()=>t.setGridLineSize(0)},{text:"小",subText:i.value===25?"√":"",handler:()=>t.setGridLineSize(25)},{text:"中",subText:i.value===50?"√":"",handler:()=>t.setGridLineSize(50)},{text:"大",subText:i.value===100?"√":"",handler:()=>t.setGridLineSize(100)}]},{text:"重置当前页",handler:ae},{divider:!0},{text:"幻灯片放映",subText:"F5",handler:J}];return an(Jp,d),(Ne,he)=>{const Le=ze("contextmenu"),ve=ze("click-outside");return de((g(),b("div",{class:"canvas",ref_key:"canvasRef",ref:y,onWheel:he[4]||(he[4]=_e=>x(_e)),onMousedown:he[5]||(he[5]=_e=>z(_e)),onDblclick:he[6]||(he[6]=_e=>ne(_e))},[v(r)?(g(),k(oy,{key:0,onCreated:he[0]||(he[0]=_e=>v(ue)(_e))})):j("",!0),v(c)?(g(),k(iy,{key:1,onCreated:he[1]||(he[1]=_e=>Ae(_e))})):j("",!0),m("div",{class:"viewport-wrapper",style:ee({width:v(T).width*v(d)+"px",height:v(T).height*v(d)+"px",left:v(T).left+"px",top:v(T).top+"px"})},[m("div",vL,[(g(!0),b(ie,null,me(O.value,(_e,je)=>(g(),k($V,{key:je,type:_e.type,axis:_e.axis,length:_e.length,canvasScale:v(d)},null,8,["type","axis","length","canvasScale"]))),128)),v(n).length>1?(g(),k(dy,{key:0,elementList:X.value,scaleMultiElement:v(G)},null,8,["elementList","scaleMultiElement"])):j("",!0),(g(!0),b(ie,null,me(X.value,_e=>de((g(),k(xy,{key:_e.id,elementInfo:_e,isSelected:v(n).includes(_e.id),isActive:v(l)===_e.id,isActiveGroupElement:v(o)===_e.id,isMultiSelect:v(n).length>1,rotateElement:v(D),scaleElement:v(U),openLinkDialog:S,dragLineElement:v(Z),moveShapeKeypoint:v(le)},null,8,["elementInfo","isSelected","isActive","isActiveGroupElement","isMultiSelect","rotateElement","scaleElement","dragLineElement","moveShapeKeypoint"])),[[Nt,!v(s).includes(_e.id)]])),128)),N(JV)]),m("div",{class:"viewport",ref_key:"viewportRef",ref:P,style:ee({transform:`scale(${v(d)})`})},[v(I)?(g(),k(HV,{key:0,top:v(V).top,left:v(V).left,width:v(V).width,height:v(V).height,quadrant:v(W)},null,8,["top","left","width","height","quadrant"])):j("",!0),(g(!0),b(ie,null,me(X.value,(_e,je)=>de((g(),k(KV,{key:_e.id,elementInfo:_e,elementIndex:je+1,isMultiSelect:v(n).length>1,selectElement:v(K),openLinkDialog:S},null,8,["elementInfo","elementIndex","isMultiSelect","selectElement"])),[[Nt,!v(s).includes(_e.id)]])),128))],4)],4),v(h)?(g(),b("div",mL)):j("",!0),v(u)?(g(),k(qV,{key:3,viewportStyles:v(T),elementList:X.value},null,8,["viewportStyles","elementList"])):j("",!0),N(tl,{visible:L.value,"onUpdate:visible":he[3]||(he[3]=_e=>L.value=_e),width:540},{default:Q(()=>[N(pL,{onClose:he[2]||(he[2]=_e=>L.value=!1)})]),_:1},8,["visible"])],32)),[[Le,Qe],[ve,ge]])}}}),gL=fe(ML,[["__scopeId","data-v-b3a3d981"]]),SL="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAjVBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADqhzP4AAAALnRSTlMAbY+Q2eX0P+rSwvDgoXdORQjdlSP4zL1xZ2NJOjYxJx7txrWnflIOhoRXW1oUdCJEfAAAASxJREFUSMftlNtigjAMhoFRjgoC4yCgOKdM3Zb3f7w1V+0qPV14pd9l8v/QtEmcF3P1bqW/RBAUFvrrB4A/muvPVA+fX3b69mCszyKqTx6n71B/NL9Tl9jpt6hvJjt9enpb5LLNxT/vYlBS+21f8Ia+Bh1BMnOGqQE9JOMco481nN1FsiopAfNrzhGio9w4EqZqhcfquNAGHT5ziIQpza/CO0codexj7GQ+MpRqR0gAooGP5CUox2dN01g358DK4p30UIRm/0/XjI7jr8RQNABE+NyNqMo4AQTiPd78qHVkeADwIwYPuaM0fEuz+iMxzItm6K+VoXk4cwbWGkbsU9Z8Jowxa28NbIBSV4z3nWpEg7uKvUCzBERi5ZpZ6Jmk1iwykaLzlrjiqnx2/gDr4kHdoskXDAAAAABJRU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GBxUn5PpFSDGRtAPkPWbvY55ilZMrUa1DpAOWMesu6xACVjEDmrmL9SEFbLoAfuySP0IyCvGA72LnLg0GGiWxOpCrUD6AyKtFS6aPkZEbYclohd3tgl9pxxDdA0P/F3hNBAc414DqRDhwdcP6EgzsQRpzJoD4PeUBgIqYAPCZMAGgEkwAFRcwXOCFCxQ8wF5YWzK9YK21lKwH17yFnaVxXs4x9LR2rnwmwt+44etUnjf2Efh7QE7Bkg7Q4YD2P/bAfG2wRX0DixreDGmyA5MAAAAASUVORK5CYII=",TR="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAyVBMVEUAAAD/eAD/eQD/eQD/egD/fAD/eAD/eAD/eAD/eQD/dwD/eAD/eAD/eAD/eQD/egD/eQD/dgD/eAD/eQD/eQD/egD/eQD/egD/gAD/eAD8+/z92rz/kTD90ar9yZz+oVH+oE3/fg3+uHv+qmH/iB//hhr/fAn8+fn89/T89fD859b84cr9zKL9voj+r2j+pFX+nEb/lTb/jCX88er87uP87N/84s3838f91bP9xJT9wo/9uoD+tXX+tHT+p1r+nEf/mD7/jiv/gREoNUZnAAAAGXRSTlMAmc3cgkD8+PPisaeiiGJMJAbRknZFOywUkOe6wQAAARpJREFUSMfN08dygzAUhWErBMe9pOsiqgH3mt7L+z9UFhl5kNBY925s/+vzzYAQlSOv16pX+Y4cV913atySo+xdbq+479eJoMuJ4JIKTvcP0q8oDMPFW/CcosASZMO4BPo3V92mBrwt8LkOem3G2IkGnuR+kungmjEDCP7nj+8x18DthREMAF7FJjecUocZQQYwNR9rW4LyW/8YAZOg/ExzEohHcE8C3AdYkUAEMCMBfgejmAReAAZokItIrAA8JIim8ialGPDrwbYEAwp7mCDAEooJOwgUsLADXwFzO0gU8GkH2biwf8jtgIdDkI3XqA+3lgfrb7BX4zuZecGHQP8PssOCcyJoVGmgccZJoInbOxK0ari9WznG/gDnxpslFwsdvQAAAABJRU5ErkJggg==",yL="data:image/png;base64,iVBOR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={class:"shape-item-thumbnail"},FL={class:"shape-content"},ZL={overflow:"visible",width:"18",height:"18"},AL=["transform"],KL=["fill","stroke","d"],_L=q({__name:"ShapeItemThumbnail",props:{shape:{}},setup(e){return(t,n)=>(g(),b("div",QL,[m("div",FL,[(g(),b("svg",ZL,[m("g",{transform:`scale(${18/(t.shape.viewBox[0]||t.shape.viewBox)}, ${18/(t.shape.viewBox[1]||t.shape.viewBox)}) translate(0,0) matrix(1,0,0,1,0,0)`},[m("path",{class:E(["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,KL)],8,AL)]))])]))}}),yR=fe(_L,[["__scopeId","data-v-8645cf7f"]]),HL={class:"shape-pool"},CL={class:"category-name"},GL={class:"shape-list"},EL=q({__name:"ShapePool",emits:["select"],setup(e,{emit:t}){const n=t,o=l=>{n("select",l)};return(l,s)=>(g(),b("div",HL,[(g(!0),b(ie,null,me(v(Oc),a=>(g(),b("div",{class:"category",key:a.type},[m("div",CL,Me(a.type),1),m("div",GL,[(g(!0),b(ie,null,me(a.children,(i,u)=>(g(),k(yR,{class:"shape-item",key:u,shape:i,onClick:r=>o(i)},null,8,["shape","onClick"]))),128))])]))),128))]))}}),wL=fe(EL,[["__scopeId","data-v-bfed4bc8"]]),kL=[{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}]}],JL={class:"line-pool"},xL={class:"category-name"},$L={class:"line-list"},DL=["onClick"],BL={overflow:"visible",width:"20",height:"20"},zL=["d","stroke-dasharray","marker-start","marker-end"],jL=q({__name:"LinePool",emits:["select"],setup(e,{emit:t}){const n=t,o=l=>{n("select",l)};return(l,s)=>(g(),b("div",JL,[(g(!0),b(ie,null,me(v(kL),(a,i)=>(g(),b("div",{class:"category",key:a.type},[m("div",xL,Me(a.type),1),m("div",$L,[(g(!0),b(ie,null,me(a.children,(u,r)=>(g(),b("div",{class:"line-item",key:r},[m("div",{class:"line-content",onClick:c=>o(u)},[(g(),b("svg",BL,[m("defs",null,[u.points[0]?(g(),k(ps,{key:0,class:"line-marker",id:`preset-line-${i}-${r}`,position:"start",type:u.points[0],color:"currentColor",baseSize:2},null,8,["id","type"])):j("",!0),u.points[1]?(g(),k(ps,{key:1,class:"line-marker",id:`preset-line-${i}-${r}`,position:"end",type:u.points[1],color:"currentColor",baseSize:2},null,8,["id","type"])):j("",!0)]),m("path",{class:"line-path",d:u.path,stroke:"currentColor",fill:"none","stroke-width":"2","stroke-dasharray":u.style==="solid"?"0, 0":"4, 1","marker-start":u.points[0]?`url(#${`preset-line-${i}-${r}`}-${u.points[0]}-start)`:"","marker-end":u.points[1]?`url(#${`preset-line-${i}-${r}`}-${u.points[1]}-end)`:""},null,8,zL)]))],8,DL)]))),128))])]))),128))]))}}),qL=fe(jL,[["__scopeId","data-v-2fdfc0a5"]]),eb={class:"chart-pool"},tb=["onClick"],nb={class:"name"},ob=q({__name:"ChartPool",emits:["select"],setup(e,{emit:t}){const n=t,o=["bar","column","line","area","scatter","pie","ring","radar"],l=s=>{n("select",s)};return(s,a)=>{const i=te("IconChartLine"),u=te("IconChartHistogram"),r=te("IconChartPie"),c=te("IconChartHistogramOne"),d=te("IconChartLineArea"),R=te("IconChartRing"),p=te("IconChartScatter"),f=te("IconRadarChart");return g(),b("ul",eb,[(g(),b(ie,null,me(o,(h,P)=>m("li",{class:"chart-item",key:P},[m("div",{class:"chart-content",onClick:O=>l(h)},[h==="line"?(g(),k(i,{key:0,size:"24"})):h==="bar"?(g(),k(u,{key:1,size:"24"})):h==="pie"?(g(),k(r,{key:2,size:"24"})):h==="column"?(g(),k(c,{key:3,size:"24"})):h==="area"?(g(),k(d,{key:4,size:"24"})):h==="ring"?(g(),k(R,{key:5,size:"24"})):h==="scatter"?(g(),k(p,{key:6,size:"24"})):h==="radar"?(g(),k(f,{key:7,size:"23"})):j("",!0),m("div",nb,Me(v(Qa)[h]),1)],8,tb)])),64))])}}}),lb=fe(ob,[["__scopeId","data-v-1216fb52"]]),LR=e=>(Je("data-v-2235b1b3"),e=e(),xe(),e),sb={class:"prefix"},ab={class:"input-wrap"},ib=["disabled","placeholder"],rb={class:"handlers"},ub=LR(()=>m("svg",{fill:"currentColor",width:"1em",height:"1em",viewBox:"64 64 896 896"},[m("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)),cb=[ub],db=LR(()=>m("svg",{fill:"currentColor",width:"1em",height:"1em",viewBox:"64 64 896 896"},[m("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)),Rb=[db],fb={class:"suffix"},pb=q({__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,o=t,l=_(0),s=_(!1);Pe(()=>n.value,()=>{n.value!==l.value&&(l.value=n.value)},{immediate:!0}),Pe(l,()=>{const c=+l.value;if(!isNaN(c)){{if(c>n.max)return;if(c<n.min)return}l.value=c,o("update:value",l.value)}});const a=()=>{let c=+l.value;isNaN(c)?c=n.min:c>n.max?c=n.max:c<n.min&&(c=n.min),l.value=c,o("update:value",l.value)},i=c=>{a(),o("enter",c)},u=c=>{a(),s.value=!1,o("blur",c)},r=c=>{s.value=!0,o("focus",c)};return(c,d)=>(g(),b("div",{class:E(["number-input",{disabled:c.disabled,focused:s.value}])},[m("span",sb,[We(c.$slots,"prefix",{},void 0,!0)]),m("div",ab,[de(m("input",{type:"text",disabled:c.disabled,"onUpdate:modelValue":d[0]||(d[0]=R=>l.value=R),placeholder:c.placeholder,onInput:d[1]||(d[1]=R=>o("input",R)),onFocus:d[2]||(d[2]=R=>r(R)),onBlur:d[3]||(d[3]=R=>u(R)),onChange:d[4]||(d[4]=R=>o("change",R)),onKeydown:d[5]||(d[5]=Yt(R=>i(R),["enter"]))},null,40,ib),[[lc,l.value]]),m("div",rb,[m("span",{class:"handler",onClick:d[6]||(d[6]=R=>l.value+=c.step)},cb),m("span",{class:"handler",onClick:d[7]||(d[7]=R=>l.value-=c.step)},Rb)])]),m("span",fb,[We(c.$slots,"suffix",{},void 0,!0)])],2))}}),en=fe(pb,[["__scopeId","data-v-2235b1b3"]]),bR=e=>(Je("data-v-f869c45f"),e=e(),xe(),e),hb={class:"table-generator"},vb={class:"title"},mb={class:"lef"},Mb=["onMouseenter"],gb={key:1,class:"custom"},Sb={class:"row"},Ob=bR(()=>m("div",{class:"label",style:{width:"25%"}},"行数:",-1)),Pb={class:"row"},Nb=bR(()=>m("div",{class:"label",style:{width:"25%"}},"列数:",-1)),Xb={class:"btns"},Tb=q({__name:"TableGenerator",emits:["insert","close"],setup(e,{emit:t}){const n=t,o=_([]),l=_(3),s=_(3),a=_(!1),i=()=>{if(!o.value.length)return;const[c,d]=o.value;n("insert",{row:c,col:d})},u=()=>{if(l.value<1||l.value>20)return Wt.warning("行数/列数必须在0~20之间!");if(s.value<1||s.value>20)return Wt.warning("行数/列数必须在0~20之间!");n("insert",{row:l.value,col:s.value}),a.value=!1},r=()=>{n("close"),a.value=!1};return(c,d)=>(g(),b("div",hb,[m("div",vb,[m("div",mb,"表格 "+Me(o.value.length?`${o.value[0]} x ${o.value[1]}`:""),1),m("div",{class:"right",onClick:d[0]||(d[0]=R=>a.value=!a.value)},Me(a.value?"返回":"自定义"),1)]),a.value?(g(),b("div",gb,[m("div",Sb,[Ob,N(en,{min:1,max:20,value:l.value,"onUpdate:value":d[3]||(d[3]=R=>l.value=R),style:{width:"75%"}},null,8,["value"])]),m("div",Pb,[Nb,N(en,{min:1,max:20,value:s.value,"onUpdate:value":d[4]||(d[4]=R=>s.value=R),style:{width:"75%"}},null,8,["value"])]),m("div",Xb,[N(Ve,{class:"btn",onClick:d[5]||(d[5]=R=>r())},{default:Q(()=>[Oe("取消")]),_:1}),N(Ve,{class:"btn",type:"primary",onClick:d[6]||(d[6]=R=>u())},{default:Q(()=>[Oe("确认")]),_:1})])])):(g(),b("table",{key:0,onMouseleave:d[1]||(d[1]=R=>o.value=[]),onClick:d[2]||(d[2]=R=>i())},[m("tbody",null,[(g(),b(ie,null,me(10,R=>m("tr",{key:R},[(g(),b(ie,null,me(10,p=>m("td",{onMouseenter:f=>o.value=[R,p],key:p},[m("div",{class:E(["cell",{active:o.value.length&&R<=o.value[0]&&p<=o.value[1]}])},null,2)],40,Mb)),64))])),64))])],32))]))}}),Vb=fe(Tb,[["__scopeId","data-v-f869c45f"]]);var ql=82;function ko(e){return Ja[e]==null&&yb(e),Ja[e]}function yb(e){var t=Lb[e];if(t!=null){for(var n=t.substring(3,5),o=1*n.charCodeAt(0)-ql,l=1*n.charCodeAt(1)-ql,s=t.substring(5),a=[[]],i=1/0,u=-1/0,r=1/0,c=-1/0,d=0;d<s.length;){var R=s.substring(d,d+2);if(R==" R")a.push([]);else{var p=R.charCodeAt(0)-ql-o,f=R.charCodeAt(1)-ql;i=Math.min(f,i),u=Math.max(f,u),r=Math.min(p,r),c=Math.max(p,c),a[a.length-1].push([p,f])}d+=2}Ja[e]={w:l-o,xmin:r,xmax:c,ymin:i,ymax:u,polylines:a}}}var Ja={},Lb={1:" 9MWRMNV RRMVV RPSTS",2:" 16MWOMOV ROMSMUNUPSQ ROQSQURUUSVOV",3:" 11MXVNTMRMPNOPOSPURVTVVU",4:" 12MWOMOV ROMRMTNUPUSTURVOV",5:" 12MWOMOV ROMUM ROQSQ ROVUV",6:" 9MVOMOV ROMUM ROQSQ",7:" 15MXVNTMRMPNOPOSPURVTVVUVR RSRVR",8:" 9MWOMOV RUMUV ROQUQ",9:" 3PTRMRV",10:" 7NUSMSTRVPVOTOS",11:" 9MWOMOV RUMOS RQQUV",12:" 6MVOMOV ROVUV",13:" 12LXNMNV RNMRV RVMRV RVMVV",14:" 9MWOMOV ROMUV RUMUV",15:" 14MXRMPNOPOSPURVSVUUVSVPUNSMRM",16:" 10MWOMOV ROMSMUNUQSROR",17:" 17MXRMPNOPOSPURVSVUUVSVPUNSMRM RSTVW",18:" 13MWOMOV ROMSMUNUQSROR RRRUV",19:" 13MWUNSMQMONOOPPTRUSUUSVQVOU",20:" 6MWRMRV RNMVM",21:" 9MXOMOSPURVSVUUVSVM",22:" 6MWNMRV RVMRV",23:" 12LXNMPV RRMPV RRMTV RVMTV",24:" 6MWOMUV RUMOV",25:" 7MWNMRQRV RVMRQ",26:" 9MWUMOV ROMUM ROVUV",27:" 9MWRMNV RRMVV RPSTS",28:" 16MWOMOV ROMSMUNUPSQ ROQSQURUUSVOV",29:" 6MVOMOV ROMUM",30:" 9MWRMNV RRMVV RNVVV",31:" 12MWOMOV ROMUM ROQSQ ROVUV",32:" 9MWUMOV ROMUM ROVUV",33:" 9MWOMOV RUMUV ROQUQ",34:" 20MXRMPNOPOSPURVSVUUVSVPUNSMRM RQQTR RTQQR",35:" 3PTRMRV",36:" 9MWOMOV RUMOS RQQUV",37:" 6MWRMNV RRMVV",38:" 12LXNMNV RNMRV RVMRV RVMVV",39:" 9MWOMOV ROMUV RUMUV",40:" 12MWOMUM RPQTR RTQPR ROVUV",41:" 14MXRMPNOPOSPURVSVUUVSVPUNSMRM",42:" 9MWOMOV RUMUV ROMUM",43:" 10MWOMOV ROMSMUNUQSROR",44:" 10MWOMRQOV ROMUM ROVUV",45:" 6MWRMRV RNMVM",46:" 15MWNONNOMPMQNRPRV RVOVNUMTMSNRP",47:" 13LXRMRV RPONPNSPTTTVSVPTOPO",48:" 6MWOMUV RUMOV",49:" 12LXRMRV RNOOPOSQTSTUSUPVO",50:" 13MXOVQVOROPPNRMSMUNVPVRTVVV",200:" 12MWRMPNOPOSPURVTUUSUPTNRM",201:" 4MWPORMRV",202:" 9MWONQMSMUNUPTROVUV",203:" 15MWONQMSMUNUPSQ RRQSQURUUSVQVOU",204:" 7MWSMSV RSMNSVS",205:" 14MWPMOQQPRPTQUSTURVQVOU RPMTM",206:" 14MWTMRMPNOPOSPURVTUUSTQRPPQOS",207:" 6MWUMQV ROMUM",208:" 19MWQMONOPQQSQUPUNSMQM RQQOROUQVSVUUURSQ",209:" 14MWUPTRRSPROPPNRMTNUPUSTURVPV",210:" 6PURURVSVSURU",211:" 7PUSVRVRUSUSWRY",212:" 12PURPRQSQSPRP RRURVSVSURU",213:" 13PURPRQSQSPRP RSVRVRUSUSWRY",214:" 12PURMRR RSMSR RRURVSVSURU",215:" 17NWPNRMSMUNUPRQRRSRSQUP RRURVSVSURU",216:" 3PTRMRQ",217:" 6NVPMPQ RTMTQ",218:" 10NVQMPNPPQQSQTPTNSMQM",219:" 16MWUNSMQMONOPQQTRUSUUSVQVOU RRLRW",220:" 3MWVLNW",221:" 7OVTLRNQPQSRUTW",222:" 7NUPLRNSPSSRUPW",223:" 3PTRLRW",224:" 3LXNRVR",225:" 6LXRNRV RNRVR",226:" 6LXNPVP RNTVT",227:" 6MWOOUU RUOOU",228:" 9MWRORU ROPUT RUPOT",229:" 6PURQRRSRSQRQ",230:" 7PUSMRORQSQSPRP",231:" 7PUSNRNRMSMSORQ",232:" 7LXSOVRSU RNRVR",233:" 12MXRLPW RULSW ROPVP ROSVS",234:" 21LXVRURTSSURVOVNUNSORRQSPSNRMPMONOPQSSUUVVV",235:" 20LXNNOQOSNV RVNUQUSVV RNNQOSOVN RNVQUSUVV",501:" 9I[RFJ[ RRFZ[ RMTWT",502:" 24G\\KFK[ RKFTFWGXHYJYLXNWOTP RKPTPWQXRYTYWXYWZT[K[",503:" 19H]ZKYIWGUFQFOGMILKKNKSLVMXOZQ[U[WZYXZV",504:" 16G\\KFK[ RKFRFUGWIXKYNYSXVWXUZR[K[",505:" 12H[LFL[ RLFYF RLPTP RL[Y[",506:" 9HZLFL[ RLFYF RLPTP",507:" 23H]ZKYIWGUFQFOGMILKKNKSLVMXOZQ[U[WZYXZVZS RUSZS",508:" 9G]KFK[ RYFY[ RKPYP",509:" 3NVRFR[",510:" 11JZVFVVUYTZR[P[NZMYLVLT",511:" 9G\\KFK[ RYFKT RPOY[",512:" 6HYLFL[ RL[X[",513:" 12F^JFJ[ RJFR[ RZFR[ RZFZ[",514:" 9G]KFK[ RKFY[ RYFY[",515:" 22G]PFNGLIKKJNJSKVLXNZP[T[VZXXYVZSZNYKXIVGTFPF",516:" 14G\\KFK[ RKFTFWGXHYJYMXOWPTQKQ",517:" 25G]PFNGLIKKJNJSKVLXNZP[T[VZXXYVZSZNYKXIVGTFPF RSWY]",518:" 17G\\KFK[ RKFTFWGXHYJYLXNWOTPKP RRPY[",519:" 21H\\YIWGTFPFMGKIKKLMMNOOUQWRXSYUYXWZT[P[MZKX",520:" 6JZRFR[ RKFYF",521:" 11G]KFKULXNZQ[S[VZXXYUYF",522:" 6I[JFR[ RZFR[",523:" 12F^HFM[ RRFM[ RRFW[ R\\FW[",524:" 6H\\KFY[ RYFK[",525:" 7I[JFRPR[ RZFR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 18I\\QMONMPLSLUMXOZQ[T[VZXXYUYSXPVNTMQM",616:" 18H[LMLb RLPNNPMSMUNWPXSXUWXUZS[P[NZLX",617:" 18I\\XMXb RXPVNTMQMONMPLSLUMXOZQ[T[VZXX",618:" 9KXOMO[ ROSPPRNTMWM",619:" 18J[XPWNTMQMNNMPNRPSUTWUXWXXWZT[Q[NZMX",620:" 9MYRFRWSZU[W[ ROMVM",621:" 11I\\MMMWNZP[S[UZXW RXMX[",622:" 6JZLMR[ RXMR[",623:" 12G]JMN[ RRMN[ RRMV[ RZMV[",624:" 6J[MMX[ RXMM[",625:" 10JZLMR[ RXMR[P_NaLbKb",626:" 9J[XMM[ RMMXM RM[X[",627:" 24H]QMONMPLRKUKXLZN[P[RZUWWTYPZM RQMSMTNUPWXXZY[Z[",628:" 31I\\UFSGQIOMNPMTLZKb RUFWFYHYKXMWNUORO RROTPVRWTWWVYUZS[Q[OZNYMV",629:" 17I\\JPLNNMOMQNROSRSVR[ RZMYPXRR[P_Ob",630:" 24I[TMQMONMPLSLVMYNZP[R[TZVXWUWRVOTMRKQIQGRFTFVGXI",631:" 19JZWOVNTMQMONOPPRSS RSSOTMVMXNZP[S[UZWX",632:" 23JYTFRGQHQIRJUKXK RXKTMQONRMUMWNYP[S]T_TaSbQbP`",633:" 19H\\IQJOLMNMONOPNTL[ RNTPPRNTMVMXOXRWWTb",634:" 27G\\HQIOKMMMNNNPMUMXNZO[Q[SZUWVUWRXMXJWGUFSFRHRJSMUPWRZT",635:" 9LWRMPTOXOZP[R[TYUW",636:" 19I[OMK[ RYNXMWMUNQROSNS RNSPTQUSZT[U[VZ",637:" 9JZKFMFOGPHX[ RRML[",638:" 21H]OMIb RNQMVMYO[Q[SZUXWT RYMWTVXVZW[Y[[Y\\W",639:" 14I[LMOMNSMXL[ RYMXPWRUURXOZL[",640:" 29JZTFRGQHQIRJUKXK RUKRLPMOOOQQSTTVT RTTPUNVMXMZO\\S^T_TaRbPb",641:" 18J[RMPNNPMSMVNYO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FTFVGWHXJXLWNUQK[Y[",703:" 16H\\MFXFRNUNWOXPYSYUXXVZS[P[MZLYKW",704:" 7H\\UFKTZT RUFU[",705:" 18H\\WFMFLOMNPMSMVNXPYSYUXXVZS[P[MZLYKW",706:" 24H\\XIWGTFRFOGMJLOLTMXOZR[S[VZXXYUYTXQVOSNRNOOMQLT",707:" 6H\\YFO[ RKFYF",708:" 30H\\PFMGLILKMMONSOVPXRYTYWXYWZT[P[MZLYKWKTLRNPQOUNWMXKXIWGTFPF",709:" 24H\\XMWPURRSQSNRLPKMKLLINGQFRFUGWIXMXRWWUZR[P[MZLX",710:" 6MWRYQZR[SZRY",711:" 9MWSZR[QZRYSZS\\R^Q_",712:" 12MWRMQNROSNRM RRYQZR[SZRY",713:" 15MWRMQNROSNRM RSZR[QZRYSZS\\R^Q_",714:" 9MWRFRT RRYQZR[SZRY",715:" 21I[LKLJMHNGPFTFVGWHXJXLWNVORQRT RRYQZR[SZRY",716:" 3NVRFRM",717:" 6JZNFNM RVFVM",718:" 14KYQFOGNINKOMQNSNUMVKVIUGSFQF",719:" 27H\\PBP_ RTBT_ RYIWGTFPFMGKIKKLMMNOOUQWRXSYUYXWZT[P[MZKX",720:" 3G][BIb",721:" 11KYVBTDRGPKOPOTPYR]T`Vb",722:" 11KYNBPDRGTKUPUTTYR]P`Nb",723:" 3NVRBRb",724:" 3E_IR[R",725:" 6E_RIR[ RIR[R",726:" 6E_IO[O RIU[U",727:" 6G]KKYY RYKKY",728:" 9JZRLRX RMOWU RWOMU",729:" 6MWRQQRRSSRRQ",730:" 8MWSFRGQIQKRLSKRJ",731:" 8MWRHQGRFSGSIRKQL",732:" 9E_UMXP[RXTUW RIR[R",733:" 12H]SBLb RYBRb RLOZO RKUYU",734:" 35E_\\O\\N[MZMYNXPVUTXRZP[L[JZIYHWHUISJRQNRMSKSIRGPFNGMIMKNNPQUXWZY[[[\\Z\\Y",735:" 28G]IIJKKOKUJYI[ R[IZKYOYUZY[[ RIIKJOKUKYJ[I RI[KZOYUYYZ[[",737:" 6KYOBO[ RUBU[",738:" 6F^RBR[ RI[[[",739:" 4F^[BI[[[",740:" 18E_RIQJRKSJRI RIYHZI[JZIY R[YZZ[[\\Z[Y",741:" 33F^RHNLKPJSJUKWMXOXQWRU RRHVLYPZSZUYWWXUXSWRU RRUQYP\\ RRUSYT\\ RP\\T\\",742:" 26F^RNQKPINHMHKIJKJOKRLTNWR\\ RRNSKTIVHWHYIZKZOYRXTVWR\\",743:" 20F^RGPJLOIR RRGTJXO[R RIRLUPZR] R[RXUTZR]",744:" 48F^RTTWVXXXZW[U[SZQXPVPSQ RSQUOVMVKUISHQHOINKNMOOQQ RQQNPLPJQISIUJWLXNXPWRT RRTQYP\\ RRTSYT\\ RP\\T\\",745:" 55F^RRR[Q\\ RRVQ\\ RRIQHOHNINKONRR RRISHUHVIVKUNRR RRRNOLNJNIOIQJR RRRVOXNZN[O[QZR RRRNULVJVIUISJR RRRVUXVZV[U[SZR",746:" 55F^ISJSLTMVMXLZ RISIRJQLQMRNTNWMYLZ RRGPIOLOOQUQXPZR\\ RRGTIULUOSUSXTZR\\ R[S[RZQXQWRVTVWWYXZ R[SZSXTWVWXXZ RKVYV",750:" 18PSSRRSQSPRPQQPRPSQSSRUQV RQQQRRRRQQQ",751:" 16PTQPPQPSQTSTTSTQSPQP RRQQRRSSRRQ",752:" 9NVPOTU RTOPU RNRVR",753:" 28MWRKQMOPMR RRKSMUPWR RRMOQ RRMUQ RROPQ RROTQ RQQSQ RMRWR",754:" 26MWMRMQNOONQMSMUNVOWQWR RPNTN ROOUO RNPVP RNQVQ RMRWR",755:" 14LRLFLRRRLF RLIPQ RLLOR RLOMQ",756:" 10MWRKQMOPMR RRKSMUPWR",757:" 11MWWRWQVOUNSMQMONNOMQMR",758:" 13G]]R]P\\MZJWHTGPGMHJJHMGPGR",759:" 11MWMRMSNUOVQWSWUVVUWSWR",760:" 7LXLPNRQSSSVRXP",761:" 6RURUTTURTPRO",762:" 7RVRRUPVNVLUKTK",763:" 7NRRROPNNNLOKPK",764:" 21MWWHVGTFQFOGNHMJMLNNOOUSVTWVWXVZU[S\\P\\N[MZ",765:" 21G]IWHVGTGQHOINKMMMONPOTUUVWWYW[V\\U]S]P\\N[M",766:" 31G]RRTUUVWWYW[V\\U]S]Q\\O[NYMWMUNTOPUOVMWKWIVHUGSGQHOINKMMMONPORR",767:" 22H\\KFK[ RHF[FQP[Z RZV[Y\\[ RZVZY RWYZY RWYZZ\\[",768:" 30KYUARBPCNELHKLKRLUNWQXSXVWXUYR RKPLMNKQJSJVKXMYPYVXZV]T_R`Oa",796:" 3>f>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:" 10KYRJK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O{U{[z_ydwitmqqmtiwdy_z[{U{OzIyEw@t;q7m3i0d-_+[*U)O)",908:" 34>fRAPCMDJDGCEA>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[VKWLXLVKSKQLP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NMPLRLUMVM",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`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VGTF 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[BYB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JTLSPS[",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 ReV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UZWX RWPSNPNNOMPLSLUMXNYPZSZWX",2618:" 21KYOMO[P[ ROMPMP[ RPSQPSNUMXM RPSQQSOUNXNXM",2619:" 50J[XPWNTMQMNNMPNRPSUUWV RVUWWWXVZ RWYTZQZNY ROZNXMX RXPWPVN RWOTNQNNO RONNPOR RNQPRUTWUXWXXWZT[Q[NZMX",2620:" 16MXRFR[S[ RRFSFS[ ROMVMVN ROMONVN",2621:" 25H\\LMLWMZO[R[TZWW RLMMMMWNYPZRZTYWW RWMW[X[ RWMXMX[",2622:" 14JZLMR[ RLMMMRY RXMWMRY RXMR[",2623:" 26F^IMN[ RIMJMNX RRMNX RRPN[ RRPV[ RRMVX R[MZMVX R[MV[",2624:" 16I[LMW[X[ RLMMMX[ RXMWML[ RXMM[L[",2625:" 17JZLMR[ RLMMMRY RXMWMRYNb RXMR[ObNb",2626:" 20I[VNL[ RXMNZ RLMXM RLMLNVN RNZXZX[ RL[X[",2651:" 33K[UUTSRRPRNSMTLVLXMZO[Q[SZTX RPRNTMVMYO[ RVRTXTZV[XZYY[V RWRUXUZV[",2652:" 23LZLVNSPO RSFMXMZO[P[RZTXUUURVVWWXWZV RTFNXNZO[",2653:" 22LXTSSTTTTSSRQROSNTMVMXNZP[S[VYXV RQROTNVNYP[",2654:" 33K[UUTSRRPRNSMTLVLXMZO[Q[SZTX RPRNTMVMYO[ RZFTXTZV[XZYY[V R[FUXUZV[",2655:" 23LXOYQXRWSUSSRRQROSNTMVMXNZP[S[VYXV RQROTNVNYP[",2656:" 27OXRRUOWLXIXGWFUGTIKdKfLgNfOcPZQ[S[UZVYXV RTISNRRO[M`Kd",2657:" 38K[UUTSRRPRNSMTLVLXMZO[Q[SZTX RPRNTMVMYO[ RVRPd RWRT[R`PdOfMgLfLdMaO_R]V[YY[V",2658:" 30L[LVNSPO RSFL[ RTFM[ ROUQSSRTRVSVUUXUZV[ RTRUSUUTXTZV[XZYY[V",2659:" 19NVSLRMSNTMSL RQROXOZQ[SZTYVV RRRPXPZQ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:" 14MXSMRNSOTNSM RP[OZPYQZQ[P]N_",2764:" 17MXUFTGRS RUGRS RUFVGRS RPYOZP[QZPY",2765:" 34H]OJPKOLNKNJOHPGSFWFZG[I[KZMYNSPQQQSRTTT RWFYGZIZKYMXNVO RPYOZP[QZPY",2766:" 8MXVFTHSJSKTLUKTJ",2767:" 8MXUHTGUFVGVHUJSL",2768:" 55E_\\N[O\\P]O]N\\M[MYNWPRXPZN[K[HZGXGVHTISKRPPROTMUKUITGRFPGOIOLPRQUSXUZW[Y[ZYZX RK[IZHXHVITJSPP ROLPQQTSWUYWZYZZY",2769:" 41H]TBL_ RYBQ_ RZJYKZL[K[JZHYGVFRFOGMIMKNMONVRXT RMKOMVQWRXTXWWYVZS[O[LZKYJWJVKULVKW",2770:" 3G]_BEb",2771:" 20KZZBVESHQKOONTNXO]P`Qb RVESIQMPPOUOZP_Qb",2772:" 20JYSBTDUGVLVPUUSYQ\\N_Jb RSBTEUJUOTTSWQ[N_",2773:" 9J[TFTR ROIYO RYIOO",2774:" 3E_IR[R",2775:" 6E_RIR[ RIR[R",2776:" 6E_IO[O RIU[U",2777:" 6NWUFSM RVFSM",2778:" 12I[PFNM RQFNM RYFWM RZFWM",2779:" 14KZSFQGPIPKQMSNUNWMXKXIWGUFSF",2801:" 18H\\RFK[ RRFY[ RRIX[ RMUVU RI[O[ RU[[[",2802:" 31G]LFL[ RMFM[ RIFYFYLXF RMPUPXQYRZTZWYYXZU[I[ RUPWQXRYTYWXYWZU[",2803:" 45G]LFL[ RMFM[ RIFUFXGYHZJZLYNXOUP RUFWGXHYJYLXNWOUP RMPUPXQYRZTZWYYXZU[I[ RUPWQXRYTYWXYWZU[",2804:" 14I[NFN[ ROFO[ RKFZFZLYF RK[R[",2805:" 31F^NFNLMTLXKZJ[ RXFX[ RYFY[ RKF\\F RG[\\[ RG[Gb RH[Gb R[[\\b R\\[\\b",2806:" 22G\\LFL[ RMFM[ RSLST RIFYFYLXF RMPSP RI[Y[YUX[",2807:" 71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UWRXNXIWGVF RLXMVOUPURVSXT]U^V^W] RT^U_V_ RSXS_T`V`W]W\\",3068:" 78F^OFI[ RPFJ[ RQFK[ RLFWFZG[I[KZNYOVPNP RYGZIZKYNXO RWFXGYIYKXNVP RRPTQURWXXYYYZX RWYXZYZ RURVZW[Y[ZXZW RF[N[ RMFPG RNFOH RRFPH RSFPG RJZG[ RJYH[ RKYL[ RJZM[",3069:" 44G^ZH[H\\F[L[JZHYGVFRFOGMIMLNNPPVSWUWXVZ RNLONVRWT ROGNINKOMUPWRXTXWWYVZS[O[LZKYJWJUI[JYKY",3070:" 54G]TFN[ RUFO[ RVFP[ RMFKL R]F\\L RMF]F RK[S[ RNFKL RPFLI RRFMG RYF\\G RZF\\H R[F\\I R\\F\\L ROZL[ ROYM[ RPYQ[ ROZR[",3071:" 48F_NFKQJUJXKZN[R[UZWXXU\\G ROFLQKUKYLZ RPFMQLULYN[ RKFSF RYF_F RLFOG RMFNH RQFOH RRFOG RZF\\G R^F\\G",3072:" 35H\\NFNHOYO[ ROGPX RPFQW R[GO[ RLFSF RXF^F RMFNH RQFPH RRFOG RYF[G R]F[G",3073:" 57E_MFMHKYK[ RNGLX ROFMW RUFMWK[ RUFUHSYS[ RVGTX RWFUW R]GUWS[ RJFRF RUFWF RZF`F RKFNG RLFMH RPFNI RQFNG R[F]G R_F]G",3074:" 54G]NFT[ ROFU[ RPFV[ R[GIZ RLFSF RXF^F RF[L[ RQ[X[ RMFOH RQFPH RRFPG RYF[G R]F[G RIZG[ RIZK[ RTZR[ RTYS[ RUYW[",3075:" 51G]MFQPN[ RNFRPO[ ROFSPP[ R\\GSP RKFRF RYF_F RK[S[ RLFNG RPFOH RQFNG RZF\\G R^F\\G ROZL[ ROYM[ RPYQ[ ROZR[",3076:" 35G]ZFH[ R[FI[ R\\FJ[ R\\FNFLL RH[V[XU ROFLL RPFMI RRFNG RR[VZ RT[WX RU[XU",3101:" 54I]NPNOOOOQMQMONNPMTMVNWOXQXXYZZ[ RVOWQ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YWZXZYY",3269:" 52H]TBL_ RYBQ_ RZKZJYJYL[L[JZHYGVFRFOGMIMLNNPPVSWUWXVZ RNLONVRWT ROGNINKOMUPWRXTXWWYVZS[O[LZKYJWJULULWKWKV",3270:" 8G^_BEbFb R_B`BFb",3271:" 32JZZBXCUERHPKNOMSMXN\\O_Qb RSHQKOONTN\\ RZBWDTGRJQLPOOSN\\ RNTO]P`Qb",3272:" 32JZSBUEVHWLWQVUTYR\\O_LaJb RVHVPUUSYQ\\ RSBTDUGVP RVHUQTUSXRZP]M`Jb",3273:" 39J[TFSGUQTR RTFTR RTFUGSQTR ROIPIXOYO ROIYO ROIOJYNYO RYIXIPOOO RYIOO RYIYJONOO",3274:" 8F_JQ[Q[R RJQJR[R",3275:" 16F_RIRZSZ RRISISZ RJQ[Q[R RJQJR[R",3276:" 16F_JM[M[N RJMJN[N RJU[U[V RJUJV[V",3277:" 11MWUFTGRM RUGRM RUFVGRM",3278:" 22H\\PFOGMM RPGMM RPFQGMM RZFYGWM RZGWM RZF[GWM",3279:" 30KZSFQGPIPKQMSNUNWMXKXIWGUFSF RSFPIQMUNXKWGSF RUFQGPKSNWMXIUF",3301:" 62F^IHJIIJHIIGKFMFOGPHQKQOPRNTLUIV ROHPKPPOR RMFNGOJOPNSLU RLVOY RKVOZ RIVN[UV R\\G[H\\H\\G[FYFWGVHUJUYW[[W RWHVJVXXZ RYFXGWJWWYY",3302:"101E_GQGRHSJSLRLOKMIJIHKF RKOIK RJSKRKPIMHKHIIGKFNFPGQHRJRRQUOW RPHQJQT RNFOGPJPUOW RRISGUFWFYGZH[J\\K RYHZJ RWFXGYJZK\\K R\\KRP RYM[O\\R\\U[XYZV[S[PZJWIWHX RXNYN[P RVNYO[Q\\S RTZRZLWKW RZYXZUZRYNWKVIVHXHZI[JZIY",3303:" 79F^RHPFNFLGJJINIRJVLYNZQ[T[WZYY[W RLHKJJMJRKVMYPZ RNFMGLIKMKQLUMWOYRZUZXY[W RUFRHQIPKPLQNTPURUT R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G[IYKXNXPY RJYNYOZ RG[JZMZN[PY RRJLX RNSVS",3502:"110F^HHJFMFOGQF RKGNG RHHJGLHOHQF RMKLLKNKOIOHPHRIQKQKW RLMLU RIPLP RMKMTLVKW RRIQJPLPU RQKQS RRIRRQTPU RRIXFZG[I[KYMUO RXGZIZK RVGXHYIYLWN RWNZP[R[X RYPZRZW RWNXOYQYX RJ[MYPXTXWY RLZOYTYVZ RJ[NZSZU[WYYX[X RUOUX RURYR RUUYU",3503:" 69E]NGLHJJILHOHSIVJXMZP[S[VZXYZW[U RJKINISKWNYQZTZWY RNGLIKKJNJRKUNXQYTYWXYW[U RPJPV RQJQT RRIRSQUPV RPJRIUFWGYGZF RTGVHXH RSHUIWIYHZF RWIWX",3504:" 72G^IFWFYGZIZX RKGWGYIYW RIFJGLHWHXIXX ROKNLMNMOKOJPJRKQMQMV RNMNT RKPNP ROKOSNUMV RI[LYOXSXVY RKZNYSYUZ RI[MZRZT[VYXXZX RRHRX RRMTNVNXM RRSTRVRXS",3505:" 94G]IHKFMFOGQF RLGNG RIHKGMHOHQF RNKMLLNLOJOIPIRJQLQLW RMMMU RJPMP RNKNTMVLW RQMRJSHTGVFXF[G RTHVGXGZH RRJSIUHWHYI[G RQURRSPTOVOXP RTPVPWQ RRRSQUQVRXP RK[NYRXWX[Y RMZPYWYZZ RK[OZVZY[[Y RQMQX",3506:" 91F]JHLFOFQGSF RMGPG RJHLGNHQHSF RPKOLNNNOLOKPKRLQNQNV ROMOT RLPOP RPKPSOUNV RSJSYRZQZMXKXIYG[ RTJTX RTPXP RPZOZMYJY RUIUOXO RXQUQUWTYP[N[LZJZG[ RSJUIXFZG\\G]F RWGYH[H RVHXIZI\\H]F RXIXW",3507:" 87E^NGLHJJILHOHRIUJWLYNZQ[U[XZZX[V[SZQYPWOUO RJKINISJV RNGLIKKJNJSKVLXNZ RYXZWZSYQ RU[WZXYYWYSXQWPUO RPJPW RQJQU RRIRTQVPW RPJRIUFWGYGZF RTGVHXH RSHUIWIYHZF RYHUOU[ RUSYS RUVYV",3508:"112F^HHJFMFOGQF RKGNG RHHJGLHOHQF RMKLLKNKOIOHPHRIQKQKW RLMLU RIPLP RMKMTLVKW RJ[MYPXSXUY RLZOYRYTZ RJ[NZQZS[UY RRIQJPLPU RQKQS RRIRRQTPU RRITGVFXFZG RWGXGYH RTGVGXIZG RUOWNYLZM[P[TZXX[ RXMYNZPZUYX RWNXNYPYUX[ RUOUY RURYR RUUYU",3509:" 67I\\LHNFQFTGVF ROGSG RLHNGQHTHVF RSKRLQNQOOONPNROQQQQV RRMRT ROPRP RSKSSRUQV RYHWJVMVXUZSZOXMXKYI[ RWKWW RRZQZOYLY RYHXJXVWXUZS[P[NZKZI[",3510:" 65H\\LHNFQFTGVF ROGSG RLHNGQHTHVF RSKRLQNQOOONPNROQQQQV RRMRT ROPRP RSKSSRUQV RYHWJVMVXUZ RWKWW RYHXJXVWXUZR[O[LZJXJVKULUMVLWKW RJVMV",3511:"115F^HHJFMFOGQF RKGNG RHHJGLHOHQF RMKLLKNKOIOHPHRIQKQKW RLMLU RIPLP RMKMTLVKW RJ[MYPXSXUY RLZNYRYTZ RJ[NZQZS[UY RRIQJPLPU RQKQS RRIRRQTPU RRITGVFXFZG RWGXGYH RTGVGXIZG RUOXLYM[N RWMYN[N R[NYQWSUU RWSYTZX[Z\\Z RYVZZ RWSXTYZZ[[[\\Z RUOUY",3512:" 85G]IHKFNFPGRF RLGOG RIHKGMHPHRF RNKMLLNLOJOIPIRJQLQLW RMMMU RJPMP RNKNTMVLW RK[NYRXWX[Y RMZPYWYZZ RK[OZVZY[[Y RSIRJQLQU RRKRS RSISRRTQU RSIUGWFYF[G RXGYGZH RUGWGYI[G RWGWX",3513:"107D`LJKKJMJOHOGPGRHQJQJU RKLKS RHPKP RLJLRKTJU RE[GYIXKXMYNYOX RHYKYMZ RE[GZJZL[M[NZOX RLJPFTJTWUYVY RPGSJSXRYSZTYSX RPPSP RNHOHRKROOO ROQRQRXQYS[VYWX RTJ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RRJRX RRMTNVNXM RRSTRVRXS",3526:" 57H\\XGWIROOSMWJ[ RVKNV RZFWJUNRRMXLZ RJHLFOGUGZF RKGOHSHWG RJHNIRIVHXG RLZNYRXVXZY RMZQYUYYZ RJ[OZUZX[ZY RMPQP RTPXP",3601:" 53J[PRNTMVMXNZP[RYUX RMVNXOYQZ RNTNVOXQYRY RNPPPSOUNVMXOWPWXXYYY RONNOQO RTOWOVNVYWZ RMOOMPNROUPUYW[YY RMORT",3602:" 44I[LHMJMXKY RNJMHNGNXQZ RLHOFOXQYRZ RKYMYOZP[RZUYWY ROPROTNUMVNXOYOWPWY RTNVOVX RROSOUPUY",3603:" 35JXNONXLYMYOZP[ ROOOYQZ RPOPXRYSYQZP[ RNORNTMUNWOXO RSNTOVO RPORNTPVPXO",3604:" 41IZRMPNMOMXKY RNONXQZ RRMOOOXQYRZ RKYMYOZP[RZUYWY RMHPFQIWOWY RPINHOGPIVOVX RMHUPUY",3605:" 32JXNONXLYMYOZP[ ROOOYQZ RPOPXRYSYQZP[ RNORNTMWQURPU RSNVQ RPORNUR",3606:" 41JWNHNXLYMYOZP[ ROHOYQZ RPHPXRYSYQZP[ RNHQGSFTGVHWH RRGSHUH RPHQGSIUIWH RKMNM RPMTM",3607:" 56I[MOMXKYLYNZO[PZRYUX RNPNYPZ ROOOXQYRY RMOOORNTMUNWOYOWPW\\V_TaRbQaO`M` RSNVPV\\ RSaQ`P` RRNSOUPUZV]V_ RTaS`Q_O_M`",3608:" 47I[LHMJMXKYLYNZO[ RNJMHNGNYPZ RLHOFOXQYO[ ROPROTNUMVNXOYOWPWYU[T] RTNVOVYU[ RROSOUPUYT]T`UbVbT`",3609:" 35MWRFPHRITHRF RRGQHSHRG RRMQNOOQPQYS[UY RRPSORNQORPRYSZ RRMSNUOSPSXTYUY",3610:" 39MWRFPHRITHRF RRGQHSHRG RRMQNOOQPQYS[T] RRPSORNQORPRYS[ RRMSNUOSPSYT]T`RbPbPaRb",3611:" 50IZLHMJMXKYL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UXWX RMNNONXQZ RLMNNOOOWPXRY RUMVNXOYOWPWX RTNVOVW RUMSOUPUX",3623:" 57E_HMIOIXL[NYQX RINJOJXMZ RHMJNKOKWLXNY RQMOOQPQXT[VYYX[X RPNRORXUZ RQMRNTOSPSWTXVY RYMZN\\O]O[P[X RXNZOZW RYMWOYPYX",3624:" 59H[KOLONPOQSYTZV[XY RMNOOTYVZ RKOMMONPOTWUXWYXY RRSUMVNXNYM RUNVOWO RTOVPXOYM RQUN[MZKZJ[ RNZMYLY ROYMXKYJ[ RMTPT RSTVT",3625:" 60I[KOLOMPMXKY RLNNONYPZ RKOMMOOOXQYRY RKYLYNZO[PZRYUX RUMVNXOYOWPW\\V_TaRbQaO`M` RTNVOV\\ RSaQ`P` RUMSOUPUZV]V_ RTaS`Q_O_M`",3626:" 38I[XML[ RLONPQPTOXM RMNOOSO RLONMPNTNXM RL[PYSXVXXY RQYUYWZ RL[PZTZV[XY RNTVT",3700:" 42H\\LHLXJY RMIMXPZ RNHNXPYQZ RLHNHSGUF RSGTHVIVY RTGWIWX RUFVGXHZHXIXY RJYLYNZO[QZVYXY",3701:" 27H\\OHPIQKQXOY RQIPHQGRIRYTZ ROHRFSHSXUYVY ROYPYRZS[TZVY",3702:" 48H\\LHNHPGQFSGVHXH RPHRG RLHNIPIRHSG RVHVP RWIWO RXHXPQPNQLSKVK[ RK[OYSXVXZY RNZQYVYYZ RK[PZUZX[ZY",3703:" 57H\\LHMHOGPFRGVHXH ROHQG RLHNIPIRG RVHVO RWIWN RXHXOVOSPQQ RQPSQVRXRXY RWSWX RVRVY RKYMXOXQYRZ ROYQZ RKYMYOZP[RZVYXY",3704:" 41H\\UFKPKUTU RVUZU[V[TZU RLPLT RMNMU RTGTXRY RUJVHUGUYWZ RUFWHVJVXXYYY RRYSYUZV[WZYY",3705:" 53H\\LFLO RLFXF RMGVG RLHUHWGXF RVLUMSNOOLO RSNTNVOVY RUMWNWX RVLWMYNZNXOXY RKYMXOXQYRZ ROYQZ RKYMYOZP[RZVYXY",3706:" 59H\\LHLXJY RMIMXPZ RNHNXPYQZ RLHNHRGTFUGWHXH RSGUH RRGTIVIXH RNPOPSOUNVM RSOTOVPVY RUNWPWX RVMWNYOZOXPXY RJYLYNZO[QZVYXY",3707:" 38H\\KHMFPGUGZF RLGOHTHWG RKHOIRIVHZF RZFYHWKSOQRPUPXQ[ RRQQTQWRZ RUMSPRSRVSYQ[",3708:" 71H\\LILO RMJMN RNINO RLINISHUGVF RSHTHVIVO RUGWHWN RVFWGYHZHXIXO RLONOVRXR RXOVONRLR RLRLXJY RMSMXPZ RNRNXPYQZ RVRVY RWSWX RXRXY RJYLYNZO[QZVYXY",3709:" 60H\\LHLQJR RMIMROS RNHNQPRQR RLHNHSGUF RSGTHVIVY RTGWIWX RUFVGXHZHXIXY RJRKRMSNTOSQRUQVQ RKYMXOXQYRZ ROYQZ RKYMYOZP[RZVYXY",3710:" 11LXRXPZR[TZRX RRYQZSZRY",3711:" 14LXR^R\\PZRXSZS\\R^P_ RRYQZR[RY",3712:" 22LXRMPORPTORM RRNQOSORN RRXPZR[TZRX RRYQZSZRY",3713:" 25LXRMPORPTORM RRNQOSORN RR^R\\PZRXSZS\\R^P_ RRYQZR[RY",3714:" 30LXRFQGOHQIRT RRISHRGQHRIRT RRFSGUHSIRT RRXPZR[TZRX RRYQZSZRY",3715:" 51I[LJMHNGQFSFVGWHXJXLWNUPSQ RMJNH RVHWIWMVN RLJNKNIOGQF RSFUGVIVMUOSQ RRQRTSQQQRT RRXPZR[TZRX RRYQZSZRY",3716:" 14LXTFRGQIQKRMTKRIRG RRJRLSKRJ",3717:" 14LXRLRJPHRFSHSJRLPM RRGQHRIRG",3718:" 62E_YNZO[O\\N RXOYP[P RXPYQZQ[P\\N RYNST RRUL[HVNP ROOSKOFJLPRTXVZX[Z[[Z\\X RLZIV RRKOG RKLPQTWVYXZ[Z RMZIU RRLNG RKKQQUWVXXY[Y\\X",3719:" 60H\\PBP_ RTBT_ RTFVGWIWKY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[ ROIUFWHUISG RTGVH RLMOM RQMUM",3907:" 41J[MPMXP[UY RNPNXPZ ROOOWRZ RMPOOTMWPW]V_U`SaQaO`MaObQa RTNVPV]U_ RPaNa RRNUQU^T`Sa",3908:" 42I[NHLFMJMXLYN[ RNHNXMYNZOYNX RNHPFOJOXPYN[ ROORNTMWPWYT]T`UbVbT` RTNVPVYU[ RRNUQUZT]",3909:" 37MWRFPHRJTHRF RRGQHRISHRG RRMPOQPQXPYR[ RRPSORNQORPRXQYRZSYRX RRMTOSPSXTYR[",3910:" 37MWRFPHRJTHRF RRGQHRISHRG RRMPOQPQYT] RRPSORNQORPRYS[ RRMTOSPSZT]T`RbPaPbRb",3911:" 51IZNHLFMJMXLYN[ RNHNXMYNZOYNX RNHPFOJOXPYN[ ROPRNTMVPSROU RSNUP RRNTQ RRSSTTYV[XY RSSTUUYVZ RSRTSVXWYXY",3912:" 21MWRHPFQJQXPYR[ RRHRXQYRZSYRX RRHTFSJSXTYR[",3913:" 66E_GOHOIPIXHYJ[ RINJOJXIYJZKYJX RGOIMKOKXLYJ[ RKONNPMSOSXTYR[ RPNRORXQYRZSYRX RNNQPQXPYR[ RSOVNXM[O[X\\YZ[ RXNZOZXYYZZ[YZX RVNYPYXXYZ[",3914:" 44I[KOLOMPMXLYN[ RMNNONXMYNZOYNX RKOMMOOOXPYN[ ROORNTMWOWXXYV[ RTNVOVXUYVZWYVX RRNUPUXTYV[",3915:" 28JZMPMXP[UYWX RNPNXPZ ROOOWRZ RMPOOTMWPWX RTNVPVX RRNUQUY",3916:" 47IZLMMOMXKYMYM_LbN` RNON` RLMNNOOOXQYRZ RNYOYQZ ROZP[UYWX ROZO_PbN` ROORNTMWPWX RTNVPVX RRNUQUY",3917:" 31J[MPMXP[UY RNPNXPZ ROOOWRZ RMPOOTMWPW_XbV` RTNVPV` RRNUQU_TbV`",3918:" 31KXMONOOPOXNYP[ RONPOPXOYPZQYPX RMOOMQOQXRYP[ RQOUMWOUPSN RTNVO",3919:" 41JZMPMSOUURWTWX RNPNSOT ROOOSPT RUSVTVX RTSUTUY RMPSMVNTOQN RRNUN RWXQ[MYOXSZ ROYQZ",3920:" 27MWRHPFQJQXPYR[ RRHRXQYRZSYRX RRHTFSJSXTYR[ RNMQM RSMVM",3921:" 40I[KOLOMPMYP[UY RMNNONYPZ RKOMMOOOXRZ RVMXOWPWXXYYY RVPWOVNUOVPVYWZ RVMTOUPUYW[YY",3922:" 36I[LMMOMXQ[SYWW RMNNONXQZ RLMNNOOOWRYSY RVMXOWPWW RVPWOVNUOVPVW RVMTOUPUX",3923:" 59E_HMIOIXM[OYQX RINJOJXMZ RHMJNKOKWNYOY RRMPOQPQXU[WY[W RRPSORNQORPRXUZ RRMTOSPSWVYWY RZM\\O[P[W RZP[OZNYOZPZW RZMXOYPYX",3924:" 39I[LONPUZV[XY RMNOOUYWZ RLONMONVXXY RXMVMVOXOXMVOSS RQUNYL[N[NYLYL[ RNTQT RSTVT",3925:" 49I[KOLOMPMYP[UY RMNNONYPZ RKOMMOOOXRZ RVMXOWPW]V_U`SaQaO`MaObQa RVPWOVNUOVPV^U_ RPaNa RVMTOUPU^T`Sa",3926:" 43L[RNOPOORNTMWOWSRU RTNVOVS RRNUPUSTT RRUWWW]V_U`SaQaO`MaObQa RVWV^U_ RPaNa RTVUWU^T`Sa"},$e={"\\frac":{glyph:0,arity:2,flags:{}},"\\binom":{glyph:0,arity:2,flags:{}},"\\sqrt":{glyph:2267,arity:1,flags:{opt:!0,xfl:!0,yfl:!0}},"^":{glyph:0,arity:1,flags:{}},_:{glyph:0,arity:1,flags:{}},"(":{glyph:2221,arity:0,flags:{yfl:!0}},")":{glyph:2222,arity:0,flags:{yfl:!0}},"[":{glyph:2223,arity:0,flags:{yfl:!0}},"]":{glyph:2224,arity:0,flags:{yfl:!0}},"\\langle":{glyph:2227,arity:0,flags:{yfl:!0}},"\\rangle":{glyph:2228,arity:0,flags:{yfl:!0}},"|":{glyph:2229,arity:0,flags:{yfl:!0}},"\\|":{glyph:2230,arity:0,flags:{yfl:!0}},"\\{":{glyph:2225,arity:0,flags:{yfl:!0}},"\\}":{glyph:2226,arity:0,flags:{yfl:!0}},"\\#":{glyph:2275,arity:0,flags:{}},"\\$":{glyph:2274,arity:0,flags:{}},"\\&":{glyph:2273,arity:0,flags:{}},"\\%":{glyph:2271,arity:0,flags:{}},"\\begin":{glyph:0,arity:1,flags:{}},"\\end":{glyph:0,arity:1,flags:{}},"\\left":{glyph:0,arity:1,flags:{}},"\\right":{glyph:0,arity:1,flags:{}},"\\middle":{glyph:0,arity:1,flags:{}},"\\cdot":{glyph:2236,arity:0,flags:{}},"\\pm":{glyph:2233,arity:0,flags:{}},"\\mp":{glyph:2234,arity:0,flags:{}},"\\times":{glyph:2235,arity:0,flags:{}},"\\div":{glyph:2237,arity:0,flags:{}},"\\leqq":{glyph:2243,arity:0,flags:{}},"\\geqq":{glyph:2244,arity:0,flags:{}},"\\leq":{glyph:2243,arity:0,flags:{}},"\\geq":{glyph:2244,arity:0,flags:{}},"\\propto":{glyph:2245,arity:0,flags:{}},"\\sim":{glyph:2246,arity:0,flags:{}},"\\equiv":{glyph:2240,arity:0,flags:{}},"\\dagger":{glyph:2277,arity:0,flags:{}},"\\ddagger":{glyph:2278,arity:0,flags:{}},"\\ell":{glyph:662,arity:0,flags:{}},"\\vec":{glyph:2261,arity:1,flags:{hat:!0,xfl:!0,yfl:!0}},"\\overrightarrow":{glyph:2261,arity:1,flags:{hat:!0,xfl:!0,yfl:!0}},"\\overleftarrow":{glyph:2263,arity:1,flags:{hat:!0,xfl:!0,yfl:!0}},"\\bar":{glyph:2231,arity:1,flags:{hat:!0,xfl:!0}},"\\overline":{glyph:2231,arity:1,flags:{hat:!0,xfl:!0}},"\\widehat":{glyph:2247,arity:1,flags:{hat:!0,xfl:!0,yfl:!0}},"\\hat":{glyph:2247,arity:1,flags:{hat:!0}},"\\acute":{glyph:2248,arity:1,flags:{hat:!0}},"\\grave":{glyph:2249,arity:1,flags:{hat:!0}},"\\breve":{glyph:2250,arity:1,flags:{hat:!0}},"\\tilde":{glyph:2246,arity:1,flags:{hat:!0}},"\\underline":{glyph:2231,arity:1,flags:{mat:!0,xfl:!0}},"\\not":{glyph:2220,arity:1,flags:{}},"\\neq":{glyph:2239,arity:1,flags:{}},"\\ne":{glyph:2239,arity:1,flags:{}},"\\exists":{glyph:2279,arity:0,flags:{}},"\\in":{glyph:2260,arity:0,flags:{}},"\\subset":{glyph:2256,arity:0,flags:{}},"\\supset":{glyph:2258,arity:0,flags:{}},"\\cup":{glyph:2257,arity:0,flags:{}},"\\cap":{glyph:2259,arity:0,flags:{}},"\\infty":{glyph:2270,arity:0,flags:{}},"\\partial":{glyph:2265,arity:0,flags:{}},"\\nabla":{glyph:2266,arity:0,flags:{}},"\\aleph":{glyph:2077,arity:0,flags:{}},"\\wp":{glyph:2190,arity:0,flags:{}},"\\therefore":{glyph:740,arity:0,flags:{}},"\\mid":{glyph:2229,arity:0,flags:{}},"\\sum":{glyph:2402,arity:0,flags:{big:!0}},"\\prod":{glyph:2401,arity:0,flags:{big:!0}},"\\bigoplus":{glyph:2284,arity:0,flags:{big:!0}},"\\bigodot":{glyph:2281,arity:0,flags:{big:!0}},"\\int":{glyph:2412,arity:0,flags:{yfl:!0}},"\\oint":{glyph:2269,arity:0,flags:{yfl:!0}},"\\oplus":{glyph:1284,arity:0,flags:{}},"\\odot":{glyph:1281,arity:0,flags:{}},"\\perp":{glyph:738,arity:0,flags:{}},"\\angle":{glyph:739,arity:0,flags:{}},"\\triangle":{glyph:842,arity:0,flags:{}},"\\Box":{glyph:841,arity:0,flags:{}},"\\rightarrow":{glyph:2261,arity:0,flags:{}},"\\to":{glyph:2261,arity:0,flags:{}},"\\leftarrow":{glyph:2263,arity:0,flags:{}},"\\gets":{glyph:2263,arity:0,flags:{}},"\\circ":{glyph:902,arity:0,flags:{}},"\\bigcirc":{glyph:904,arity:0,flags:{}},"\\bullet":{glyph:828,arity:0,flags:{}},"\\star":{glyph:856,arity:0,flags:{}},"\\diamond":{glyph:743,arity:0,flags:{}},"\\ast":{glyph:728,arity:0,flags:{}},"\\log":{glyph:0,arity:0,flags:{txt:!0}},"\\ln":{glyph:0,arity:0,flags:{txt:!0}},"\\exp":{glyph:0,arity:0,flags:{txt:!0}},"\\mod":{glyph:0,arity:0,flags:{txt:!0}},"\\lim":{glyph:0,arity:0,flags:{txt:!0,big:!0}},"\\sin":{glyph:0,arity:0,flags:{txt:!0}},"\\cos":{glyph:0,arity:0,flags:{txt:!0}},"\\tan":{glyph:0,arity:0,flags:{txt:!0}},"\\csc":{glyph:0,arity:0,flags:{txt:!0}},"\\sec":{glyph:0,arity:0,flags:{txt:!0}},"\\cot":{glyph:0,arity:0,flags:{txt:!0}},"\\sinh":{glyph:0,arity:0,flags:{txt:!0}},"\\cosh":{glyph:0,arity:0,flags:{txt:!0}},"\\tanh":{glyph:0,arity:0,flags:{txt:!0}},"\\csch":{glyph:0,arity:0,flags:{txt:!0}},"\\sech":{glyph:0,arity:0,flags:{txt:!0}},"\\coth":{glyph:0,arity:0,flags:{txt:!0}},"\\arcsin":{glyph:0,arity:0,flags:{txt:!0}},"\\arccos":{glyph:0,arity:0,flags:{txt:!0}},"\\arctan":{glyph:0,arity:0,flags:{txt:!0}},"\\arccsc":{glyph:0,arity:0,flags:{txt:!0}},"\\arcsec":{glyph:0,arity:0,flags:{txt:!0}},"\\arccot":{glyph:0,arity:0,flags:{txt:!0}},"\\text":{glyph:0,arity:1,flags:{}},"\\mathnormal":{glyph:0,arity:1,flags:{}},"\\mathrm":{glyph:0,arity:1,flags:{}},"\\mathit":{glyph:0,arity:1,flags:{}},"\\mathbf":{glyph:0,arity:1,flags:{}},"\\mathsf":{glyph:0,arity:1,flags:{}},"\\mathtt":{glyph:0,arity:1,flags:{}},"\\mathfrak":{glyph:0,arity:1,flags:{}},"\\mathcal":{glyph:0,arity:1,flags:{}},"\\mathbb":{glyph:0,arity:1,flags:{}},"\\mathscr":{glyph:0,arity:1,flags:{}},"\\rm":{glyph:0,arity:1,flags:{}},"\\it":{glyph:0,arity:1,flags:{}},"\\bf":{glyph:0,arity:1,flags:{}},"\\sf":{glyph:0,arity:1,flags:{}},"\\tt":{glyph:0,arity:1,flags:{}},"\\frak":{glyph:0,arity:1,flags:{}},"\\cal":{glyph:0,arity:1,flags:{}},"\\bb":{glyph:0,arity:1,flags:{}},"\\scr":{glyph:0,arity:1,flags:{}},"\\quad":{glyph:0,arity:0,flags:{}},"\\,":{glyph:0,arity:0,flags:{}},"\\.":{glyph:0,arity:0,flags:{}},"\\;":{glyph:0,arity:0,flags:{}},"\\!":{glyph:0,arity:0,flags:{}},"\\alpha":{glyph:2127,flags:{}},"\\beta":{glyph:2128,flags:{}},"\\gamma":{glyph:2129,flags:{}},"\\delta":{glyph:2130,flags:{}},"\\varepsilon":{glyph:2131,flags:{}},"\\zeta":{glyph:2132,flags:{}},"\\eta":{glyph:2133,flags:{}},"\\vartheta":{glyph:2134,flags:{}},"\\iota":{glyph:2135,flags:{}},"\\kappa":{glyph:2136,flags:{}},"\\lambda":{glyph:2137,flags:{}},"\\mu":{glyph:2138,flags:{}},"\\nu":{glyph:2139,flags:{}},"\\xi":{glyph:2140,flags:{}},"\\omicron":{glyph:2141,flags:{}},"\\pi":{glyph:2142,flags:{}},"\\rho":{glyph:2143,flags:{}},"\\sigma":{glyph:2144,flags:{}},"\\tau":{glyph:2145,flags:{}},"\\upsilon":{glyph:2146,flags:{}},"\\varphi":{glyph:2147,flags:{}},"\\chi":{glyph:2148,flags:{}},"\\psi":{glyph:2149,flags:{}},"\\omega":{glyph:2150,flags:{}},"\\epsilon":{glyph:2184,flags:{}},"\\theta":{glyph:2185,flags:{}},"\\phi":{glyph:2186,flags:{}},"\\varsigma":{glyph:2187,flags:{}},"\\Alpha":{glyph:2027,flags:{}},"\\Beta":{glyph:2028,flags:{}},"\\Gamma":{glyph:2029,flags:{}},"\\Delta":{glyph:2030,flags:{}},"\\Epsilon":{glyph:2031,flags:{}},"\\Zeta":{glyph:2032,flags:{}},"\\Eta":{glyph:2033,flags:{}},"\\Theta":{glyph:2034,flags:{}},"\\Iota":{glyph:2035,flags:{}},"\\Kappa":{glyph:2036,flags:{}},"\\Lambda":{glyph:2037,flags:{}},"\\Mu":{glyph:2038,flags:{}},"\\Nu":{glyph:2039,flags:{}},"\\Xi":{glyph:2040,flags:{}},"\\Omicron":{glyph:2041,flags:{}},"\\Pi":{glyph:2042,flags:{}},"\\Rho":{glyph:2043,flags:{}},"\\Sigma":{glyph:2044,flags:{}},"\\Tau":{glyph:2045,flags:{}},"\\Upsilon":{glyph:2046,flags:{}},"\\Phi":{glyph:2047,flags:{}},"\\Chi":{glyph:2048,flags:{}},"\\Psi":{glyph:2049,flags:{}},"\\Omega":{glyph:2050,flags:{}}};function ss(e,t="math"){let n=e.charCodeAt(0);if(65<=n&&n<=90){let o=n-65;return t=="text"||t=="rm"?o+2001:t=="tt"?o+501:t=="bf"||t=="bb"?o+3001:t=="sf"?o+2501:t=="frak"?o+3301:t=="scr"||t=="cal"?o+2551:o+2051}if(97<=n&&n<=122){let o=n-97;return t=="text"||t=="rm"?o+2101:t=="tt"?o+601:t=="bf"||t=="bb"?o+3101:t=="sf"?o+2601:t=="frak"?o+3401:t=="scr"||t=="cal"?o+2651:o+2151}if(48<=n&&n<=57){let o=n-48;return t=="it"?o+2750:t=="bf"?o+3200:t=="tt"?o+700:o+2200}return{".":2210,",":2211,":":2212,";":2213,"!":2214,"?":2215,"'":2216,'"':2217,"*":2219,"/":2220,"-":2231,"+":2232,"=":2238,"<":2241,">":2242,"~":2246,"@":2273,"\\":804}[e]}var nn={SUB_SUP_SCALE:.75,SQRT_MAG_SCALE:.5,FRAC_SCALE:.85,LINE_SPACING:.5,FRAC_SPACING:.4};function bb(e){e=e.replace(/\n/g," ");let t=0,n=[],o="";for(;t<e.length;)e[t]==" "?o.length&&(n.push(o),o=""):e[t]=="\\"?o.length==1&&o[0]=="\\"?o+=e[t]:(o.length&&n.push(o),o=e[t]):/[A-Za-z0-9\.]/.test(e[t])?o+=e[t]:(o.length&&o!="\\"&&(n.push(o),o=""),o+=e[t],n.push(o),o=""),t++;return o.length&&n.push(o),n}function Ib(e){return{type:$e[e]?"symb":"char",mode:"math",text:e,chld:[],bbox:null}}function xa(e){let t=0,n={type:"node",text:"",mode:"math",chld:[],bbox:null};function o(){if(e[t]!="[")return null;let s=0,a=t,i;for(;a<e.length;){if(e[a]=="[")s++;else if(e[a]=="]"&&(s--,!s))break;a++}return i=xa(e.slice(t+1,a)),t=a,i}function l(s){let a=t,i=a,u=0,r=0,c=[];for(;a<e.length;){if(e[a]=="{")u||(i=a),u++;else if(e[a]=="}"){if(u--,!u&&(c.push(xa(e.slice(i+1,a))),r++,r==s))break}else if(u==0&&(c.push(Ib(e[a])),r++,r==s))break;a++}return t=a,c}for(t=0;t<e.length;t++){let s=$e[e[t]],a={type:"",text:e[t],mode:"math",chld:[],bbox:null};if(s)if(s.arity){t++,a.type="func";let i=null;s.flags.opt&&(i=o(),i&&t++);let u=l(s.arity);a.chld=u,i&&a.chld.push(i)}else a.type="symb";else e[t]=="{"?(a.type="node",a.text="",a.chld=l(1)):a.type="char";n.chld.push(a)}return n.chld.length==1&&(n=n.chld[0]),n}function IR(e){let t=0;for(;t<e.length;){if(e[t].text=="\\begin"){let n;for(n=t;n<e.length&&e[n].text!="\\end";n++);let o=e.splice(t+1,n-(t+1));IR(o),e[t].text=e[t].chld[0].text,e[t].chld=o,e.splice(t+1,1)}t++}}function wt(e,t,n,o,l,s){if(n==null&&(n=t),!!e.bbox){s&&(e.bbox.x*=t,e.bbox.y*=n),e.bbox.w*=t,e.bbox.h*=n;for(var a=0;a<e.chld.length;a++)wt(e.chld[a],t,n,0,0,!0);e.bbox.x+=o,e.bbox.y+=l}}function YR(e){let t=1/0,n=-1/0,o=1/0,l=-1/0;for(let s=0;s<e.length;s++)e[s].bbox&&(t=Math.min(t,e[s].bbox.x),o=Math.min(o,e[s].bbox.y),n=Math.max(n,e[s].bbox.x+e[s].bbox.w),l=Math.max(l,e[s].bbox.y+e[s].bbox.h));return{x:t,y:o,w:n-t,h:l-o}}function Yb(e){if(!e.length)return null;let t=YR(e);for(let o=0;o<e.length;o++)e[o].bbox&&(e[o].bbox.x-=t.x,e[o].bbox.y-=t.y);return{type:"node",text:"",mode:"math",chld:e,bbox:t}}function Wb(e,t="center"){for(let r=0;r<e.length;r++)if(e[r].text=="^"||e[r].text=="'"){let c=0,d=r;for(;d>0&&(e[d].text=="^"||e[d].text=="_"||e[d].text=="'");)d--;c=e[d].bbox.y,e[r].text=="'"?e[r].bbox.y=c:(wt(e[r],nn.SUB_SUP_SCALE,null,0,0),$e[e[d].text]&&$e[e[d].text].flags.big?e[r].bbox.y=c-e[r].bbox.h:e[d].text=="\\int"?e[r].bbox.y=c:e[r].bbox.y=c-e[r].bbox.h/2)}else if(e[r].text=="_"){let c=1,d=r;for(;d>0&&(e[d].text=="^"||e[d].text=="_"||e[d].text=="'");)d--;c=e[d].bbox.y+e[d].bbox.h,wt(e[r],nn.SUB_SUP_SCALE,null,0,0),$e[e[d].text]&&$e[e[d].text].flags.big?e[r].bbox.y=c:e[d].text=="\\int"?e[r].bbox.y=c-e[r].bbox.h:e[r].bbox.y=c-e[r].bbox.h/2}function n(r,c,d,R,p){let f=r,h=p,P=1/0,O=-1/0;for(;R>0?f<e.length:f>=0;){if(e[f].text==c)h++;else if(e[f].text==d){if(h--,h==0)break}else e[f].text=="^"||e[f].text=="_"||e[f].bbox&&(P=Math.min(P,e[f].bbox.y),O=Math.max(O,e[f].bbox.y+e[f].bbox.h));f+=R}return[P,O]}for(let r=0;r<e.length;r++)if(e[r].text=="\\left"){const[c,d]=n(r,"\\left","\\right",1,0);c!=1/0&&d!=-1/0&&(e[r].bbox.y=c,wt(e[r],1,(d-c)/e[r].bbox.h,0,0))}else if(e[r].text=="\\right"){const[c,d]=n(r,"\\right","\\left",-1,0);c!=1/0&&d!=-1/0&&(e[r].bbox.y=c,wt(e[r],1,(d-c)/e[r].bbox.h,0,0))}else if(e[r].text=="\\middle"){const[c,d]=n(r,"\\right","\\left",-1,1),[R,p]=n(r,"\\left","\\right",1,1);let f=Math.min(c,R),h=Math.max(d,p);f!=1/0&&h!=-1/0&&(e[r].bbox.y=f,wt(e[r],1,(h-f)/e[r].bbox.h,0,0))}if(!e.some(r=>r.text=="&"||r.text=="\\\\"))return;let o=[],l=[],s=[];for(let r=0;r<e.length;r++)e[r].text=="&"?(l.push(s),s=[]):e[r].text=="\\\\"?(s.length&&(l.push(s),s=[]),o.push(l),l=[]):s.push(e[r]);s.length&&l.push(s),l.length&&o.push(l);let a=[],i=[];for(let r=0;r<o.length;r++){let c=[];for(let d=0;d<o[r].length;d++){let R=Yb(o[r][d]);R&&(a[d]=a[d]||0,a[d]=Math.max(R.bbox.w+1,a[d])),c[d]=R}i.push(c)}let u=[];for(let r=0;r<i.length;r++){let c=1/0,d=-1/0;for(let R=0;R<i[r].length;R++)i[r][R]&&(c=Math.min(c,i[r][R].bbox.y),d=Math.max(d,i[r][R].bbox.y+i[r][R].bbox.h));u.push([c,d])}for(let r=0;r<u.length;r++)(u[r][0]==1/0||u[r][1]==1/0)&&(u[r][0]=r==0?0:u[r-1][1],u[r][1]=u[r][0]+2);for(let r=1;r<i.length;r++){let c=u[r-1][1]-u[r][0]+nn.LINE_SPACING;for(let d=0;d<i[r].length;d++)i[r][d]&&(i[r][d].bbox.y+=c);u[r][0]+=c,u[r][1]+=c}e.splice(0,e.length);for(let r=0;r<i.length;r++){let c=0;for(let d=0;d<i[r].length;d++){let R=i[r][d];if(!R){c+=a[d];continue}R.bbox.x+=c,c+=a[d]-R.bbox.w,t=="center"?R.bbox.x+=(a[d]-R.bbox.w)/2:t=="left"||(t=="right"||t=="equation"&&d!=i[r].length-1)&&(R.bbox.x+=a[d]-R.bbox.w),e.push(R)}}}function On(e,t="math"){var n,o,l;let s=(n={"\\text":"text","\\mathnormal":"math","\\mathrm":"rm","\\mathit":"it","\\mathbf":"bf","\\mathsf":"sf","\\mathtt":"tt","\\mathfrak":"frak","\\mathcal":"cal","\\mathbb":"bb","\\mathscr":"scr","\\rm":"rm","\\it":"it","\\bf":"bf","\\sf":"tt","\\tt":"tt","\\frak":"frak","\\cal":"cal","\\bb":"bb","\\scr":"scr"}[e.text])!=null?n:t;if(!e.chld.length){if($e[e.text])if($e[e.text].flags.big)e.text=="\\lim"?e.bbox={x:0,y:0,w:3.5,h:2}:e.bbox={x:0,y:-.5,w:3,h:3};else if($e[e.text].flags.txt){let i=0;for(var a=1;a<e.text.length;a++)i+=ko(ss(e.text[a],"text")).w;i/=16,e.bbox={x:0,y:0,w:i,h:2}}else if($e[e.text].glyph){let i=ko($e[e.text].glyph).w;i/=16,e.text=="\\int"||e.text=="\\oint"?e.bbox={x:0,y:-1.5,w:i,h:5}:e.bbox={x:0,y:0,w:i,h:2}}else e.bbox={x:0,y:0,w:1,h:2};else{let i=0;for(var a=0;a<e.text.length;a++)ko(ss(e.text[a],s))&&(s=="tt"?i+=16:i+=ko(ss(e.text[a],s)).w);i/=16,e.bbox={x:0,y:0,w:i,h:2}}e.mode=s;return}if(e.text=="\\frac"){let i=e.chld[0],u=e.chld[1],r=nn.FRAC_SCALE;On(i),On(u),i.bbox.x=0,i.bbox.y=0,u.bbox.x=0,u.bbox.y=0;let c=Math.max(i.bbox.w,u.bbox.w)*r;wt(i,r,null,(c-i.bbox.w*r)/2,0),wt(u,r,null,(c-u.bbox.w*r)/2,i.bbox.h+nn.FRAC_SPACING),e.bbox={x:0,y:-i.bbox.h+1-nn.FRAC_SPACING/2,w:c,h:i.bbox.h+u.bbox.h+nn.FRAC_SPACING}}else if(e.text=="\\binom"){let i=e.chld[0],u=e.chld[1];On(i),On(u),i.bbox.x=0,i.bbox.y=0,u.bbox.x=0,u.bbox.y=0;let r=Math.max(i.bbox.w,u.bbox.w);wt(i,1,null,(r-i.bbox.w)/2+1,0),wt(u,1,null,(r-u.bbox.w)/2+1,i.bbox.h),e.bbox={x:0,y:-i.bbox.h+1,w:r+2,h:i.bbox.h+u.bbox.h}}else if(e.text=="\\sqrt"){let i=e.chld[0];On(i);let u=e.chld[1],r=0;u&&(On(u),r=Math.max(u.bbox.w*nn.SQRT_MAG_SCALE-.5,0),wt(u,nn.SQRT_MAG_SCALE,null,0,.5)),wt(i,1,null,1+r,.5),e.bbox={x:0,y:2-i.bbox.h-.5,w:i.bbox.w+1+r,h:i.bbox.h+.5}}else if($e[e.text]&&$e[e.text].flags.hat){let i=e.chld[0];On(i),wt(i,1,null,0,.5),e.bbox={x:0,y:-.5,w:i.bbox.w,h:i.bbox.h+.5}}else if($e[e.text]&&$e[e.text].flags.mat){let i=e.chld[0];On(i),e.bbox={x:0,y:0,w:i.bbox.w,h:i.bbox.h+.5}}else{let i=0,u=0,r=1;for(let h=0;h<e.chld.length;h++){let P=e.chld[h],O=(o={"\\quad":2,"\\,":2*3/18,"\\:":2*4/18,"\\;":2*5/18,"\\!":2*-3/18}[P.text])!=null?o:null;if(P.text=="\\\\"){u+=r,i=0,r=1;continue}else{if(P.text=="&")continue;if(O!=null){i+=O;continue}else{if(On(P,s),wt(P,1,null,i,u),P.text=="^"||P.text=="_"||P.text=="'"){let L=h;for(;L>0&&(e.chld[L].text=="^"||e.chld[L].text=="_"||e.chld[L].text=="'");)L--;let S=$e[e.chld[L].text]&&$e[e.chld[L].text].flags.big;if(P.text=="'"){let X=L+1,M=0;for(;X<h;)e.chld[X].text=="'"&&M++,X++;P.bbox.x=e.chld[L].bbox.x+e.chld[L].bbox.w+P.bbox.w*M,i=Math.max(i,P.bbox.x+P.bbox.w)}else if(S){let X=e.chld[L].bbox.x+(e.chld[L].bbox.w-P.bbox.w*nn.SUB_SUP_SCALE)/2;P.bbox.x=X,i=Math.max(i,e.chld[L].bbox.x+e.chld[L].bbox.w+(P.bbox.w*nn.SUB_SUP_SCALE-e.chld[L].bbox.w)/2)}else P.bbox.x=e.chld[L].bbox.x+e.chld[L].bbox.w,i=Math.max(i,P.bbox.x+P.bbox.w*nn.SUB_SUP_SCALE)}else i+=P.bbox.w;t=="text"&&(i+=1),r=Math.max(P.bbox.y+P.bbox.h-u,r)}}}u+=r;let c={bmatrix:["[","]"],pmatrix:["(",")"],Bmatrix:["\\{","\\}"],cases:["\\{"]},d=(l={bmatrix:"center",pmatrix:"center",Bmatrix:"center",cases:"left",matrix:"center",aligned:"equation"}[e.text])!=null?l:"left",R=!!c[e.text],p=!!c[e.text]&&c[e.text].length>1;Wb(e.chld,d);let f=YR(e.chld);e.text=="\\text"&&(f.x-=1,f.w+=2);for(let h=0;h<e.chld.length;h++)wt(e.chld[h],1,null,-f.x+(R?1.5:0),-f.y);e.bbox={x:0,y:0,w:f.w+1.5*Number(R)+1.5*Number(p),h:f.h},R&&e.chld.unshift({type:"symb",text:c[e.text][0],mode:e.mode,chld:[],bbox:{x:0,y:0,w:1,h:f.h}}),p&&e.chld.push({type:"symb",text:c[e.text][1],mode:e.mode,chld:[],bbox:{x:f.w+2,y:0,w:1,h:f.h}}),(R||p||e.text=="matrix")&&(e.type="node",e.text="",e.bbox.y-=(e.bbox.h-2)/2)}}function Ub(e){function t(o,l,s){let a=[];if(o.bbox){if(l+=o.bbox.x,s+=o.bbox.y,o.text=="\\frac"){let u=o.chld[1].bbox.y-(o.chld[0].bbox.y+o.chld[0].bbox.h),r={type:"symb",mode:o.mode,text:"\\bar",bbox:{x:l,y:s+(o.chld[1].bbox.y-u/2)-u/2,w:o.bbox.w,h:u},chld:[]};a.push(r)}else if(o.text=="\\sqrt"){let u=o.chld[0].bbox.y,r=Math.max(0,o.chld[0].bbox.x-o.chld[0].bbox.h/2),c={type:"symb",mode:o.mode,text:"\\sqrt",bbox:{x:l+r,y:s+u/2,w:o.chld[0].bbox.x-r,h:o.bbox.h-u/2},chld:[]};a.push(c),a.push({type:"symb",text:"\\bar",mode:o.mode,bbox:{x:l+o.chld[0].bbox.x,y:s,w:o.bbox.w-o.chld[0].bbox.x,h:u},chld:[]})}else if(o.text=="\\binom"){let u=Math.min(o.chld[0].bbox.x,o.chld[1].bbox.x),r={type:"symb",mode:o.mode,text:"(",bbox:{x:l,y:s,w:u,h:o.bbox.h},chld:[]};a.push(r),a.push({type:"symb",text:")",mode:o.mode,bbox:{x:l+o.bbox.w-u,y:s,w:u,h:o.bbox.h},chld:[]})}else if($e[o.text]&&$e[o.text].flags.hat){let u=o.chld[0].bbox.y,r={type:"symb",mode:o.mode,text:o.text,bbox:{x:l,y:s,w:o.bbox.w,h:u},chld:[]};a.push(r)}else if($e[o.text]&&$e[o.text].flags.mat){let u=o.chld[0].bbox.h,r={type:"symb",text:o.text,mode:o.mode,bbox:{x:l,y:s+u,w:o.bbox.w,h:o.bbox.h-u},chld:[]};a.push(r)}else if(o.type!="node"&&o.text!="^"&&o.text!="_"){let u={type:o.type=="func"?"symb":o.type,text:o.text,mode:o.mode,bbox:{x:l,y:s,w:o.bbox.w,h:o.bbox.h},chld:[]};a.push(u)}}for(var i=0;i<o.chld.length;i++){let u=t(o.chld[i],l,s);a.push(...u)}return a}let n=t(e,-e.bbox.x,-e.bbox.y);e.type="node",e.text="",e.chld=n}function Qb(e){let t=[];for(let n=0;n<e.chld.length;n++){let o=e.chld[n],l=o.bbox.h/2,s=!1;if($e[o.text]&&$e[o.text].flags.hat&&!$e[o.text].flags.xfl&&!$e[o.text].flags.yfl&&(l*=4,s=!0),$e[o.text]&&$e[o.text].glyph){let a=ko($e[o.text].glyph);for(let i=0;i<a.polylines.length;i++){let u=[];for(let r=0;r<a.polylines[i].length;r++){let c=a.polylines[i][r][0],d=a.polylines[i][r][1];if($e[o.text].flags.xfl)c=(c-a.xmin)/Math.max(a.xmax-a.xmin,1)*o.bbox.w,c+=o.bbox.x;else if(a.w/16*l>o.bbox.w)c=c/Math.max(a.w,1)*o.bbox.w,c+=o.bbox.x;else{c=c/16*l;let R=(o.bbox.w-a.w/16*l)/2;c+=o.bbox.x+R}if($e[o.text].flags.yfl)d=(d-a.ymin)/Math.max(a.ymax-a.ymin,1)*o.bbox.h,d+=o.bbox.y;else{if(d=d/16*l,s){let R=(a.ymax+a.ymin)/2;d-=R/16*l}d+=o.bbox.y+o.bbox.h/2}u.push([c,d])}t.push(u)}}else if($e[o.text]&&$e[o.text].flags.txt||o.type=="char"){let a=o.bbox.x,i=!!($e[o.text]&&$e[o.text].flags.txt);for(let u=Number(i);u<o.text.length;u++){let r=ko(ss(o.text[u],i?"text":o.mode));if(!r){console.warn("unmapped character: "+o.text[u]);continue}for(let c=0;c<r.polylines.length;c++){let d=[];for(let R=0;R<r.polylines[c].length;R++){let p=r.polylines[c][R][0],f=r.polylines[c][R][1];p/=16,f/=16,p*=l,f*=l,o.mode=="tt"&&(r.w>16?p*=16/r.w:p+=(16-r.w)/2/16),p+=a,f+=o.bbox.y+o.bbox.h/2,d.push([p,f])}t.push(d)}o.mode=="tt"?a+=l:a+=r.w/16*l}}}return t}function Sn(e){return Math.round(e*100)/100}var Ai=class{constructor(e){this._latex=e,this._tokens=bb(e),this._tree=xa(this._tokens),IR(this._tree.chld),On(this._tree),Ub(this._tree),this._polylines=Qb(this._tree)}resolveScale(e){var t,n,o,l;if(e==null)return[16,16,16,16];let s=(t=e.SCALE_X)!=null?t:16,a=(n=e.SCALE_Y)!=null?n:16;if(e.MIN_CHAR_H!=null){let r=0;for(let d=0;d<this._tree.chld.length;d++){let R=this._tree.chld[d];(R.type=="char"||$e[R.text]&&($e[R.text].flags.txt||!Object.keys($e[R.text].flags).length))&&(r=Math.min(R.bbox.h,r))}let c=Math.max(1,e.MIN_CHAR_H/r);s*=c,a*=c}if(e.MAX_W!=null){let r=s;s=Math.min(s,e.MAX_W/this._tree.bbox.w),a*=s/r}if(e.MAX_H!=null){let r=a;a=Math.min(a,e.MAX_H/this._tree.bbox.h),s*=a/r}let i=(o=e.MARGIN_X)!=null?o:s,u=(l=e.MARGIN_Y)!=null?l:a;return[i,u,s,a]}polylines(e){e||(e={});let t=[],[n,o,l,s]=this.resolveScale(e);for(let a=0;a<this._polylines.length;a++){t.push([]);for(let i=0;i<this._polylines[a].length;i++){let[u,r]=this._polylines[a][i];t[t.length-1].push([n+u*l,o+r*s])}}return t}pathd(e){e||(e={});let t="",[n,o,l,s]=this.resolveScale(e);for(let a=0;a<this._polylines.length;a++)for(let i=0;i<this._polylines[a].length;i++){let[u,r]=this._polylines[a][i];t+=i?"L":"M",t+=`${Sn(n+u*l)} ${Sn(o+r*s)}`}return t}svg(e){var t,n;e||(e={});let[o,l,s,a]=this.resolveScale(e),i=Sn(this._tree.bbox.w*s+o*2),u=Sn(this._tree.bbox.h*a+l*2),r=`<svg
- xmlns="http://www.w3.org/2000/svg"
- width="${i}" height="${u}"
- fill="none" stroke="${(t=e.FG_COLOR)!=null?t:"black"}" stroke-width="${(n=e.STROKE_W)!=null?n:1}"
- stroke-linecap="round" stroke-linejoin="round"
- >`;e.BG_COLOR&&(r+=`<rect x="0" y="0" width="${i}" height="${u}" fill="${e.BG_COLOR}" stroke="none"></rect>`),r+='<path d="';for(let c=0;c<this._polylines.length;c++){r+="M";for(let d=0;d<this._polylines[c].length;d++){let[R,p]=this._polylines[c][d];r+=Sn(o+R*s)+" "+Sn(l+p*a)+" "}}return r+='"/>',r+="</svg>",r}pdf(e){var t;e||(e={});let[n,o,l,s]=this.resolveScale(e),a=Sn(this._tree.bbox.w*l+n*2),i=Sn(this._tree.bbox.h*s+o*2),u=`%PDF-1.1
- %%¥±ë
- 1 0 obj
- << /Type /Catalog
- /Pages 2 0 R
- >>endobj
- 2 0 obj
- << /Type /Pages
- /Kids [3 0 R]
- /Count 1
- /MediaBox [0 0 ${a} ${i}]
- >>
- endobj
- 3 0 obj
- << /Type /Page
- /Parent 2 0 R
- /Resources
- << /Font
- << /F1
- << /Type /Font
- /Subtype /Type1
- /BaseFont /Times-Roman
- >>
- >>
- >>
- /Contents [`,r="",c=4;for(let f=0;f<this._polylines.length;f++){r+=`${c} 0 obj
- << /Length 0 >>
- stream
- 1 j 1 J ${(t=e.STROKE_W)!=null?t:1} w
- `;for(var d=0;d<this._polylines[f].length;d++){var[R,p]=this._polylines[f][d];r+=`${Sn(n+R*l)} ${Sn(i-(o+p*s))} ${d?"l":"m"} `}r+=`
- S
- endstream
- endobj
- `,u+=`${c} 0 R `,c++}return u+=`]
- >>
- endobj
- `,r+=`
- trailer
- << /Root 1 0 R
- /Size 0
- >>startxref
- %%EOF
- `,u+r}boxes(e){e||(e={});let[t,n,o,l]=this.resolveScale(e),s=[];for(let a=0;a<this._tree.chld.length;a++){let{x:i,y:u,w:r,h:c}=this._tree.chld[a].bbox;s.push({x:t+i*o,y:n+u*l,w:r*o,h:c*l})}return s}box(e){e||(e={});let[t,n,o,l]=this.resolveScale(e);return{x:t+this._tree.bbox.x*o,y:n+this._tree.bbox.y*l,w:this._tree.bbox.w*o,h:this._tree.bbox.h*l}}};nn.SUB_SUP_SCALE=.5;const Fb=[{label:"高斯公式",latex:"\\int\\int\\int _ { \\Omega } \\left( \\frac { \\partial {P} } { \\partial {x} } + \\frac { \\partial {Q} } { \\partial {y} } + \\frac { \\partial {R} }{ \\partial {z} } \\right) \\mathrm { d } V = \\oint _ { \\partial \\Omega } ( P \\cos \\alpha + Q \\cos \\beta + R \\cos \\gamma ) \\mathrm{ d} S"},{label:"傅里叶级数",latex:"f(x) = \\frac {a_0} 2 + \\sum_{n = 1}^\\infty {({a_n}\\cos {nx} + {b_n}\\sin {nx})}"},{label:"泰勒展开式",latex:"e ^ { x } = 1 + \\frac { x } { 1 ! } + \\frac { x ^ { 2 } } { 2 ! } + \\frac { x ^ { 3 } } { 3 ! } + ... , \\quad - \\infty < x < \\infty"},{label:"定积分",latex:"\\lim_ { n \\rightarrow + \\infty } \\sum _ { i = 1 } ^ { n } f \\left[ a + \\frac { i } { n } ( b - a ) \\right] \\frac { b - a } { n } = \\int _ { a } ^ { b } f ( x ) dx"},{label:"三角恒等式1",latex:"\\sin \\alpha \\pm \\sin \\beta = 2 \\sin \\frac { 1 } { 2 } ( \\alpha \\pm \\beta ) \\cos \\frac { 1 } { 2 } ( \\alpha \\mp \\beta )"},{label:"三角恒等式2",latex:"\\cos \\alpha + \\cos \\beta = 2 \\cos \\frac { 1 } { 2 } ( \\alpha + \\beta ) \\cos \\frac { 1 } { 2 } ( \\alpha - \\beta )"},{label:"和的展开式",latex:"( 1 + x ) ^ { n } = 1 + \\frac { n x } { 1 ! } + \\frac { n ( n - 1 ) x ^ { 2 } } { 2 ! } + ..."},{label:"欧拉公式",latex:" e^{ix} = \\cos {x} + i\\sin {x}"},{label:"贝努利方程",latex:"\\frac {dy} {dx} + P(x)y = Q(x) y^n ({n} \\not= {0,1})"},{label:"全微分方程",latex:"du(x,y) = P(x,y)dx + Q(x,y)dy = 0"},{label:"非齐次方程",latex:"y = (\\int Q(x) e^{\\int {P(x)dx}}dx + C)e^{-\\int {P(x)dx}}"},{label:"柯西中值定理",latex:"\\frac{{f(b) - f(a)}}{{F(b) - F(a)}} = \\frac{{f'(\\xi )}}{{F'(\\xi )}}"},{label:"拉格朗日中值定理",latex:"f(b) - f(a) = f'(\\xi )(b - a)"},{label:"导数公式",latex:"(\\arcsin x)' = \\frac{1}{{\\sqrt {1 - x^2} }}"},{label:"三角函数积分",latex:"\\int {tgxdx = - \\ln \\left| {\\cos x} \\right| + C}"},{label:"二次曲面",latex:"\\frac{{{x^2}}}{{{a^2}}} + \\frac{{{y^2}}}{{{b^2}}} - \\frac{{{z^2}}}{{{c^2}}} = 1"},{label:"二阶微分",latex:"\\frac {{d^2}y} {dx^2} + P(x) \\frac {dy} {dx} + Q(x)y = f(x)"},{label:"方向导数",latex:"\\frac{{\\partial f}}{{\\partial l}} = \\frac{{\\partial f}}{{\\partial x}}\\cos \\phi + \\frac{{\\partial f}}{{\\partial y}}\\sin \\phi"}],ma=[{type:"operators",label:"数学",children:[{latex:"\\cdot"},{latex:"\\pm"},{latex:"\\mp"},{latex:"+"},{latex:"-"},{latex:"\\times"},{latex:"\\div"},{latex:"<"},{latex:">"},{latex:"="},{latex:"\\neq\\ne"},{latex:"\\leqq"},{latex:"\\geqq"},{latex:"\\leq"},{latex:"\\geq"},{latex:"\\propto"},{latex:"\\sim"},{latex:"\\equiv"},{latex:"\\dagger"},{latex:"\\ddagger"},{latex:"\\ell"},{latex:"\\#"},{latex:"\\$"},{latex:"\\&"},{latex:"\\%"},{latex:"\\langle\\rangle"},{latex:"()"},{latex:"[]"},{latex:"\\{\\}"},{latex:"||"},{latex:"\\|"},{latex:"\\exists"},{latex:"\\in"},{latex:"\\subset"},{latex:"\\supset"},{latex:"\\cup"},{latex:"\\cap"},{latex:"\\infty"},{latex:"\\partial"},{latex:"\\nabla"},{latex:"\\aleph"},{latex:"\\wp"},{latex:"\\therefore"},{latex:"\\mid"},{latex:"\\sum"},{latex:"\\prod"},{latex:"\\bigoplus"},{latex:"\\bigodot"},{latex:"\\int"},{latex:"\\oint"},{latex:"\\oplus"},{latex:"\\odot"},{latex:"\\perp"},{latex:"\\angle"},{latex:"\\triangle"},{latex:"\\Box"},{latex:"\\rightarrow"},{latex:"\\to"},{latex:"\\leftarrow"},{latex:"\\gets"},{latex:"\\circ"},{latex:"\\bigcirc"},{latex:"\\bullet"},{latex:"\\star"},{latex:"\\diamond"},{latex:"\\ast"},{latex:","},{latex:"."},{latex:";"},{latex:"!"}]},{type:"group",label:"组合",children:[{latex:"\\frac{a}{b}"},{latex:"\\frac{dx}{dx}"},{latex:"\\frac{\\partial a}{\\partial b}"},{latex:"\\sqrt{x}"},{latex:"\\sqrt[n]{x}"},{latex:"x^{n}"},{latex:"x_{n}"},{latex:"x_a^b"},{latex:"\\int_{a}^{b}"},{latex:"\\oint_a^b"},{latex:"\\lim_{a \\rightarrow b}"},{latex:"\\prod_a^b"},{latex:"\\sum_a^b"},{latex:"\\left(\\begin{array}a \\\\ b\\end{array}\\right)"},{latex:"\\begin{bmatrix}a & b \\\\ c & d \\end{bmatrix}"},{latex:"\\begin{cases}a & x = 0 \\\\ b & x > 0\\end{cases}"},{latex:"\\hat{a}"},{latex:"\\breve{a}"},{latex:"\\acute{a}"},{latex:"\\grave{a}"},{latex:"\\tilde{a}"},{latex:"\\bar{a}"},{latex:"\\vec{a}"},{latex:"\\underline{a}"},{latex:"\\overline{a}"},{latex:"\\widehat{ab}"},{latex:"\\overleftarrow{ab}"},{latex:"\\overrightarrow{ab}"}]},{type:"verbatim",label:"函数",children:[{latex:"\\log"},{latex:"\\ln"},{latex:"\\exp"},{latex:"\\mod"},{latex:"\\lim"},{latex:"\\sin"},{latex:"\\cos"},{latex:"\\tan"},{latex:"\\csc"},{latex:"\\sec"},{latex:"\\cot"},{latex:"\\sinh"},{latex:"\\cosh"},{latex:"\\tanh"},{latex:"\\csch"},{latex:"\\sech"},{latex:"\\coth"},{latex:"\\arcsin"},{latex:"\\arccos"},{latex:"\\arctan"},{latex:"\\arccsc"},{latex:"\\arcsec"},{latex:"\\arccot"}]},{type:"greek",label:"希腊字母",children:[{latex:"\\alpha"},{latex:"\\beta"},{latex:"\\gamma"},{latex:"\\delta"},{latex:"\\varepsilon"},{latex:"\\zeta"},{latex:"\\eta"},{latex:"\\vartheta"},{latex:"\\iota"},{latex:"\\kappa"},{latex:"\\lambda"},{latex:"\\mu"},{latex:"\\nu"},{latex:"\\xi"},{latex:"\\omicron"},{latex:"\\pi"},{latex:"\\rho"},{latex:"\\sigma"},{latex:"\\tau"},{latex:"\\upsilon"},{latex:"\\varphi"},{latex:"\\chi"},{latex:"\\psi"},{latex:"\\omega"},{latex:"\\epsilon"},{latex:"\\theta"},{latex:"\\phi"},{latex:"\\varsigma"},{latex:"\\Alpha"},{latex:"\\Beta"},{latex:"\\Gamma"},{latex:"\\Delta"},{latex:"\\Epsilon"},{latex:"\\Zeta"},{latex:"\\Eta"},{latex:"\\Theta"},{latex:"\\Iota"},{latex:"\\Kappa"},{latex:"\\Lambda"},{latex:"\\Mu"},{latex:"\\Nu"},{latex:"\\Xi"},{latex:"\\Omicron"},{latex:"\\Pi"},{latex:"\\Rho"},{latex:"\\Sigma"},{latex:"\\Tau"},{latex:"\\Upsilon"},{latex:"\\Phi"},{latex:"\\Chi"},{latex:"\\Psi"},{latex:"\\Omega"}]}],Zb=["width","height"],Ab=["transform"],Kb=["d"],_b=q({__name:"FormulaContent",props:{latex:{},width:{},height:{}},setup(e){const t=e,n=_({x:0,y:0,w:0,h:0}),o=_("");Pe(()=>t.latex,()=>{const s=new Ai(t.latex);o.value=s.pathd({}),n.value=s.box({})},{immediate:!0});const l=H(()=>{const s=n.value.w+32,a=n.value.h+32;return s>t.width||a>t.height?s/a>t.width/t.height?t.width/s:t.height/a:1});return(s,a)=>(g(),b("svg",{class:"formula-content",overflow:"visible",width:n.value.w+32,height:n.value.h+32,stroke:"#000","stroke-width":"1",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[m("g",{transform:`scale(${l.value}, ${l.value}) translate(0,0) matrix(1,0,0,1,0,0)`,"transform-origin":"0 50%"},[m("path",{d:o.value},null,8,Kb)],8,Ab)],8,Zb))}}),Eu=fe(_b,[["__scopeId","data-v-3b4e4b30"]]),Hb=["innerHTML"],Cb=q({__name:"SymbolContent",props:{latex:{}},setup(e){const t=e,n=H(()=>new Ai(t.latex).svg({SCALE_X:10,SCALE_Y:10}));return(o,l)=>(g(),b("div",{class:"symbol-content",innerHTML:n.value},null,8,Hb))}}),Gb=["disabled","value","rows","placeholder"],Eb=q({__name:"TextArea",props:{value:{},rows:{default:4},padding:{},disabled:{type:Boolean,default:!1},resizable:{type:Boolean,default:!1},placeholder:{default:""}},emits:["update:value","focus","blur"],setup(e,{expose:t,emit:n}){const o=n,l=i=>{o("update:value",i.target.value)},s=_();return t({focus:()=>{s.value&&s.value.focus()}}),(i,u)=>(g(),b("textarea",{class:E(["textarea",{disabled:i.disabled,resizable:i.resizable}]),ref_key:"textareaRef",ref:s,disabled:i.disabled,value:i.value,rows:i.rows,placeholder:i.placeholder,style:ee({padding:i.padding?`${i.padding}px`:"10px"}),onInput:u[0]||(u[0]=r=>l(r)),onFocus:u[1]||(u[1]=r=>o("focus",r)),onBlur:u[2]||(u[2]=r=>o("blur",r))},null,46,Gb))}}),$a=fe(Eb,[["__scopeId","data-v-5b019163"]]),wb={class:"latex-editor"},kb={class:"container"},Jb={class:"left"},xb={class:"input-area"},$b={class:"preview"},Db={key:0,class:"placeholder"},Bb={key:1,class:"preview-content"},zb={class:"right"},jb={class:"content"},qb={key:0,class:"symbol"},eI={class:"symbol-pool"},tI=["onClick"],nI={key:1,class:"formula"},oI={class:"formula-title"},lI=["onClick"],sI={class:"footer"},aI=q({__name:"index",props:{value:{default:""}},emits:["update","close"],setup(e,{emit:t}){const n=[{label:"常用符号",key:"symbol"},{label:"预置公式",key:"formula"}],o=e,l=t,s=Fb,a=ma.map(f=>({label:f.label,key:f.type})),i=_(""),u=_("symbol"),r=_(),c=_(ma[0].type),d=H(()=>{const f=ma.find(h=>h.type===c.value);return(f==null?void 0:f.children)||[]});Ge(()=>{o.value&&(i.value=o.value)});const R=()=>{if(!i.value)return Wt.error("公式不能为空");const f=new Ai(i.value),h=f.pathd({}),P=f.box({});l("update",{latex:i.value,path:h,w:P.w+32,h:P.h+32})},p=f=>{r.value&&(r.value.focus(),document.execCommand("insertText",!1,f))};return(f,h)=>(g(),b("div",wb,[m("div",kb,[m("div",Jb,[m("div",xb,[N($a,{value:i.value,"onUpdate:value":h[0]||(h[0]=P=>i.value=P),placeholder:"输入 LaTeX 公式",ref_key:"textAreaRef",ref:r},null,8,["value"])]),m("div",$b,[i.value?(g(),b("div",Bb,[N(Eu,{width:518,height:138,latex:i.value},null,8,["latex"])])):(g(),b("div",Db,"公式预览"))])]),m("div",zb,[N(uo,{tabs:n,value:u.value,"onUpdate:value":h[1]||(h[1]=P=>u.value=P),card:""},null,8,["value"]),m("div",jb,[u.value==="symbol"?(g(),b("div",qb,[N(uo,{tabs:v(a),value:c.value,"onUpdate:value":h[2]||(h[2]=P=>c.value=P),spaceBetween:"",tabsStyle:{margin:"10px 10px 0"}},null,8,["tabs","value"]),m("div",eI,[(g(!0),b(ie,null,me(d.value,P=>(g(),b("div",{class:"symbol-item",key:P.latex,onClick:O=>p(P.latex)},[N(Cb,{latex:P.latex},null,8,["latex"])],8,tI))),128))])])):(g(),b("div",nI,[(g(!0),b(ie,null,me(v(s),P=>(g(),b("div",{class:"formula-item",key:P.label},[m("div",oI,Me(P.label),1),m("div",{class:"formula-item-content",onClick:O=>i.value=P.latex},[N(Eu,{width:236,height:60,latex:P.latex},null,8,["latex"])],8,lI)]))),128))]))])])]),m("div",sI,[N(Ve,{class:"btn",onClick:h[3]||(h[3]=P=>l("close"))},{default:Q(()=>[Oe("取消")]),_:1}),N(Ve,{class:"btn",type:"primary",onClick:h[4]||(h[4]=P=>R())},{default:Q(()=>[Oe("确定")]),_:1})])]))}}),WR=fe(aI,[["__scopeId","data-v-ce1af109"]]),iI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8BAMAAADI0sRBAAAAFVBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAASAQCkAAAAB3RSTlMAZlIHHQtTUaVLqwAAAJdJREFUOMvt00EOQDAQhWFRDlBhT1xALLrmBhzB/S9hYfHL5E2a2Ek6u+nrJ1SnKvXTard31xwmPruFJkyDifc406TYm7iO8HDF0cRhgq+vrWaNnR63mFWJ4Q6GgxUHaw6WHCw5WHKw5GAv/vrwxKtlP8w/li+Hyi/xscuTug7gy71MYLjCcG8MHj6qIYL3mRHMDXCpf9YN/hoZY8xwSc8AAAAASUVORK5CYII=",rI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAb1BMVEUAAAAdmf8ajP8ZjP8Zjf8Zjv8ajv8mmv8Zjf8ZjP8Zjf8Zjf8Zjf8dkv8ekv8Zjf8ajf8bjv8ajf8Zjf8ajf8Zjf8ajv8Zjf8ckP8ZjP8ajf8ajP8ajf8ajf8ajP8bjf8ZjP8bj/8cjv9Av/8ZjP9SuGnJAAAAJHRSTlMACb3q3lAxDfrKqqKYHxbxgl7j07CMamQo8rrPx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6/bzGbSRmPI5yomSzcuDR7ea5B6Q80celwydyn0AAAAABJRU5ErkJggg==",RI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAYCAMAAADNlS1EAAAA9lBMVEUAAAD/bGb/Ul7/bnr/VF3/Q17/TF//X1//Tl7/P1//b1n/Ol//P1//a1r/alr/OWD/UV3/Z1r/WF7/SWD/OmD/b1v/XVz/UWH/SWb/VF3/Y1v/YFr/alv/QF//ZFr/YVz/WF3/aVr/SF7/XFz/TF7/ZVr/VF3/T1z/aFr/cVn/XVz/P17/UV3/d1j/S13/c1n/V1z/aFz/OGD/XVv/Tl3/WV3/SV3/dVn/cFr/b1n/cV3/OGH/X1r/VFz/T1z/Z1n/Wlv/WFv/XFv/ZFr/V1z/UVz/Ylr/SF3/Ol//RV7/Pl7/Ql7/YVr/bFn/aVn/TF3/Sl3/cFgC4AhdAAAAPHRSTlMACjwF9qFbF/Hq593NsaOaj4BaU1NCLR8R+vr29fLr6ufm49XPx8XBvb23s62tqqaYjo2MhnlwbWBTNDJyAgToAAABBklEQVQY02XR13KDMBAF0AUb3LvjOL333ptAVCPAYPz/P5NVYSaO90lz5nLZkUBO5e5Dg7V5WDY/1/BqmWXd/+FmluW0s2ob3Kg/WMFOnlN/Ntup/bEvbv6ckBcAXTV/71LMzYnnncBjVVrtqDTHfbMUdrkR4jmOG1hhuIk0mFBfGpIV2vYrLkMv8VNhrrBFXYMnWlogrYhGcIYmCOvQiiiKDdhXdcF5H2Pc4jZsl3U69KWle3Cg6m4B4F5Y0oBruV2dbzc9jtM0SVowlL81gY/JjfVAO8ScfaFepYHGfgD0LdzEBDk3jLFnfhhW7YWu0GCsVxGnyWnxrrDdGkM5I0Ne+XQsYr8qIkCzZAWpZAAAAABJRU5ErkJggg==",fI=""+new URL("nomore-B64RwV-C.png",import.meta.url).href,pI=e=>(Je("data-v-25efa560"),e=e(),xe(),e),hI={class:"Empty"},vI=pI(()=>m("img",{src:fI,alt:""},null,-1)),mI={class:"text"},MI=q({__name:"Empty",props:{text:{default:"暂无内容"}},setup(e){const t=e;return(n,o)=>(g(),b("div",hI,[vI,m("div",mI,Me(t.text),1)]))}}),gI=fe(MI,[["__scopeId","data-v-25efa560"]]),SI=["innerHTML"],OI=q({__name:"ellipsisScroll",props:{title:{},autoScroll:{type:Boolean}},setup(e){const t=e,n=_(),o=_(!1);Ge(()=>{var u,r;t!=null&&t.autoScroll?we(()=>{a(n.value)}):((u=n.value)==null||u.addEventListener("mouseenter",s),(r=n.value)==null||r.addEventListener("mouseleave",i))}),mt(()=>{var u,r;t!=null&&t.autoScroll||((u=n.value)==null||u.removeEventListener("mouseenter",s),(r=n.value)==null||r.removeEventListener("mouseleave",i))});let l=0;function s(u){const r=u.target;l=r.scrollWidth-r.clientWidth,l>0?o.value=!0:o.value=!1}function a(u){l=u.scrollWidth-u.clientWidth,l>0?o.value=!0:o.value=!1}function i(){o.value=!1}return(u,r)=>(g(),b("div",{ref_key:"ellipsisScrollDom",ref:n,class:E([[o.value&&"isScroll",o.value&&t.autoScroll&&"autoScroll"],"ellipsisScroll"]),innerHTML:t.title},null,10,SI))}}),wu=fe(OI,[["__scopeId","data-v-326fd55a"]]),PI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAMAAADypuvZAAABTVBMVEX///8AAAD/////////////////////////6e7/////////////////////////////////////////tMT/wM3/4+n/9ff//P3/////epX/2eH/7/P/n7L/gJr/Q2j/S2//kqj/Z4f/cI7/m6//gZv/s8L/mK3/2OD/qbv/0dv/U3b/bYr/TnL/VHf/iqL/oLL/U3b/WXr/fZf/h5//ZoX/eZX/iKH/oLL/zNb/Q2n/X3//dZH/fpj/aIf/UHP/QGf/Nl//gZr/ZIP/V3n/S2//PWT/KFT/cI3/bYv/IU7/e5b/eJP/a4n/XH3/WXr/VHf/UnX/SG3/Rmz/Lln/hZ3/Wnz/M1z/HUv/ZoX/YYH/TnL/O2P/K1b/JVL/jaT/h5//OWH/iqL/co//cY7/GEf/T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ORw0KGgoAAAANSUhEUgAAADQAAAA0CAMAAADypuvZAAAAtFBMVEX///8AAAD///////8cHBwHBwfd3d0hISExMTHY2Nj6+vr///////////////////////////////////////////////////////////////////8RERETExNHR0e4uLjv7+/i4uIODg5KSkpbW1tiYmJ4eHikpKSpqamvr6/Gxsb///8pKSk5OTlFRUVtbW1/f3+Ojo6WlpaVlZWfn5/AwMDMzMzPz8/r6+vz8/P///8AAACxlxxRAAAAO3RSTlPMAL0d+P3R9/PSzcfEtbGloJZ3dHBSOy4pJQae+vnu2M7R++3p6OPc2tnVOfXx7ubi397e3NbU08/OnU0PPMIAAAIVSURBVEjHnZbXesIwDIVV4pJBoYwQCAUaoMzuPfT+79VTSBPLSclXnyvJ1g+KLduik6KcfrfTqjUatVan23dKAgpQHDZJqBnGFVB0QSW6iI5Awzb9ofbwD2jUoyPqjcog55yO6twpQoMaVag2MKHrM6rU2bWEBilTQQ10yElzq8zQyaGRtgYVqzHKoGytq9X7hYb0Dw1TqP0fqH2AIjn6fu8pd7EOiIL1wlXe/bucj/aQqNHPKz7IfX11U/PqU1TvDxTrI4nHvzo9zUwv0WNiQKE+sEDIdOvvVmOGxqudv53CWOgxISD9zF0i4HFvzVxkONubjxi81E/lCTmk6Q4fkJp1z6unJj7zTgsC0te8AJ+BSFN1fGCQu0C6clZRiZT4LSAdzXtjvimDbpjfcg9IS/NmzJMyaMI8yz0g4lDMmf0i4zPPNRdIQ3exJ6sitMLe6X5DQi/ILzGZBNm9CEimFyjmpQktmVUg02uJgOds90WVPIuRFtZP6BYV54tVQBXeihAgXWP3EeMedjKrwbGsEiB9MrJBKSk/+x+FEjLyBeKQoTWo+eZgb+Zg1iQFBEfD0BYULxOs9ZLBbM35ZnoIpXYKwZOHhwkj0x2ZCrPjLvQx5VTTj+JsnF8sUhvFkNpQUV/iChMKnjzvKSibiWwuS6tr2eYBsHpqbB41m+fT5qG2aQlsmg+bNseqobJv3eybRKt29BtSNDxLqIqa3AAAAABJRU5ErkJggg==",ho=e=>(Je("data-v-b9087c13"),e=e(),xe(),e),XI={class:"cloudCoachList"},TI={class:"headCon"},VI=ho(()=>m("div",{class:"headLeft"},[m("img",{class:"tipImg",src:TR,alt:""}),m("div",{class:"title"},"乐谱")],-1)),yI={class:"headright"},LI={class:"content"},bI={class:"tabTools"},II={class:"tabCon"},YI=["onClick"],WI={class:"query"},UI=ho(()=>m("img",{class:"img",src:rI,alt:""},null,-1)),QI={class:"musicListCon"},FI={class:"queryFromList"},ZI=ho(()=>m("div",{class:"tit"},"教程:",-1)),AI={class:"queryFromCon"},KI=["onClick"],_I={class:"queryFromList"},HI=ho(()=>m("div",{class:"tit"},"场景:",-1)),CI={class:"queryFromCon"},GI=["onClick"],EI={class:"queryFromList"},wI=ho(()=>m("div",{class:"tit"},"乐器:",-1)),kI={class:"queryFromCon"},JI=["onClick"],xI=ho(()=>m("img",{src:uI,alt:""},null,-1)),$I=ho(()=>m("img",{src:cI,alt:""},null,-1)),DI={class:"musicListConBox"},BI={key:0,class:"musicListBox"},zI={class:"musicLeft"},jI={class:"iconCon"},qI=["src"],eY={key:0,class:"jxImg",src:dI,alt:""},tY={class:"musicInfo"},nY={class:"info"},oY={key:0,class:"hotInfo"},lY=ho(()=>m("img",{src:RI,alt:""},null,-1)),sY={key:1,class:"play"},aY={key:2,class:"sing"},iY={class:"musicUserName"},rY={class:"musicRight"},uY=["onClick","src"],cY=["onClick"],dY={class:"pagination"},RY=q({__name:"cloudCoachList",emits:["update","close"],setup(e,{emit:t}){const n=t;function o(F,C){n("update",F,C),n("close")}const l=fl.fromType==="PLATFORM"?[{label:"共享资源",value:2}]:[{label:"相关资源",value:5},{label:"共享资源",value:2},{label:"我的资源",value:3},{label:"我的收藏",value:4}],s=[{text:"全部",value:""},{text:"演唱",value:"SING"},{text:"演奏",value:"PLAY"},{text:"演唱+演奏",value:"PLAY,SING"}],a=_([]),i=_([]),u=fo({page:1,rows:21,total:0,sourceType:l[0].value,name:"",bookVersionId:"",audioPlayTypes:"",subject:{id:"",name:""}}),r=_([]),c=_(!0),d=oN.directive,R=_(!0);p();function p(){Promise.all([kl(xp),kl($p)]).then(F=>{const[C,Z]=F;C.code===200&&(i.value=C.data.map(K=>K.instruments.length>1?Object.assign(K,{isExpand:_(!1)}):K),f()),Z.code===200&&(a.value=[{id:"",name:"全部"},...Z.data.map(K=>({id:K.id,name:K.name}))]),y()})}function f(){if(i.value.length>0){const F=i.value.reduce((K,U)=>(K.push(...U.instruments),K),[]),C=fl.instrumentId,Z=C?F.find(K=>K.id===C):F[0];Z&&(u.subject.id=Z.id,u.subject.name=Z.name)}}function h(){u.page=1,u.rows=21,u.total=0,u.sourceType=5,u.name="",u.bookVersionId="",u.audioPlayTypes="",u.subject={id:"",name:""},f()}function P(F){h(),R.value=!0,u.sourceType=F,y()}function O(F){u.bookVersionId=F,y()}function L(F){u.audioPlayTypes=F,y()}function S(F){u.subject.id=F.id,u.subject.name=F.name,y()}function X(F){return F.instruments.some(C=>C.id===u.subject.id)}function M(F){u.page=F,T()}function y(){u.page=1,u.rows=21,T()}let Y;function T(){c.value=!0;let{sourceType:F,subject:C,audioPlayTypes:Z,name:K,page:U,rows:G,bookVersionId:D}=u,le=C.id;const Re=Z?Z.split(","):[];let ae;F===5&&(Re[0]==="SING"&&(le=""),ae={name:K,type:"MUSIC",sourceType:F,musicalInstrumentId:le,enableFlag:!0,page:U,rows:G,audioPlayTypes:Re,lessonCoursewareKnowledgeId:fl.lessonCoursewareKnowledgeId}),F===2&&(Re[0]==="SING"&&(le=""),ae={name:K,type:"MUSIC",sourceType:F,musicalInstrumentId:le,enableFlag:!0,page:U,rows:G,audioPlayTypes:Re,lessonCoursewareKnowledgeId:fl.lessonCoursewareKnowledgeId,bookVersionId:D}),F===3&&(ae={name:K,type:"MUSIC",sourceType:F,musicalInstrumentId:le,enableFlag:!0,page:U,rows:G}),F===4&&(Re[0]==="SING"&&(le=""),ae={name:K,type:"MUSIC",sourceType:F,musicalInstrumentId:le,enableFlag:!0,page:U,rows:G,audioPlayTypes:Re}),Y&&Y.abort(),Y=new AbortController,kl(Dp,ae,Y).then(Se=>{Se.code!==gp&&(Se.code===200&&(r.value=Se.data.rows.map(J=>(J.highName=W(J.name,u.name),J)),u.total=Se.data.total),c.value=!1)})}function V(F){kl(Bp,{favoriteFlag:F.favoriteFlag?0:1,materialId:F.id,type:"MUSIC"}).then(C=>{C.code===200&&(F.favoriteFlag=!F.favoriteFlag)})}function I(F){return F>=1e4?(F/1e4).toFixed(1).replace(/\.0$/,"")+"万":F.toString()}const W=(F,C)=>{if(!F)return"";if(!C)return F;const Z=new RegExp(`(${C})`,"gi");return F.replace(Z,'<span class="highlighted">$1</span>')};return(F,C)=>(g(),b("div",XI,[m("div",TI,[VI,m("div",yI,[m("img",{onClick:C[0]||(C[0]=Z=>n("close")),class:"closeBtn",src:iI,alt:""})])]),m("div",LI,[m("div",bI,[m("div",II,[(g(!0),b(ie,null,me(v(l),Z=>(g(),b("div",{class:E(["tab",{active:Z.value===u.sourceType}]),onClick:K=>P(Z.value),key:Z.value},Me(Z.label),11,YI))),128))]),m("div",WI,[N(el,{placeholder:"请输入搜索关键词",value:u.name,"onUpdate:value":C[1]||(C[1]=Z=>u.name=Z),onEnter:y},{prefix:Q(()=>[UI]),suffix:Q(()=>[m("div",{class:"queryBtn",onClick:y},"搜索")]),_:1},8,["value"])])]),m("div",QI,[m("div",{class:E(["queryFrom",{isExpandAct:!R.value}])},[de(m("div",FI,[ZI,m("div",AI,[(g(!0),b(ie,null,me(a.value,Z=>(g(),b("div",{key:Z.id,onClick:K=>O(Z.id),class:E(["queryTip",u.bookVersionId===Z.id&&"active"])},Me(Z.name),11,KI))),128))])],512),[[Nt,u.sourceType===2]]),de(m("div",_I,[HI,m("div",CI,[(g(),b(ie,null,me(s,Z=>m("div",{key:Z.value,onClick:K=>L(Z.value),class:E(["queryTip",u.audioPlayTypes===Z.value&&"active"])},Me(Z.text),11,GI)),64))])],512),[[Nt,u.sourceType!==3]]),de(m("div",EI,[wI,m("div",kI,[(g(!0),b(ie,null,me(i.value,Z=>(g(),b(ie,null,[Z.instruments.length===1?(g(),b("div",{class:E(["queryTip",u.subject.id===Z.instruments[0].id&&"active"]),onClick:K=>S(Z.instruments[0]),key:Z.id},Me(Z.instruments[0].name),11,JI)):(g(),k(Ke,{value:Z.isExpand,"onUpdate:value":K=>Z.isExpand=K,trigger:"mouseenter",offset:-4,key:Z.id+"_"},{content:Q(()=>[(g(!0),b(ie,null,me(Z.instruments,K=>(g(),k(bt,{onClick:()=>{Z.isExpand=!1,S(K)},key:K.id,active:K.id===u.subject.id},{default:Q(()=>[Oe(Me(K.name),1)]),_:2},1032,["onClick","active"]))),128))]),default:Q(()=>[m("div",{class:E(["queryTip",{hoverActive:X(Z)}])},[m("div",null,Me(X(Z)?u.subject.name:Z.name),1),xI],2)]),_:2},1032,["value","onUpdate:value"]))],64))),256))])],512),[[Nt,u.audioPlayTypes!=="SING"]])],2),de(m("div",{onClick:C[2]||(C[2]=Z=>R.value=!R.value),class:E(["isExpand",{active:R.value}])},[m("div",null,Me(R.value?"收起":"展开"),1),$I],2),[[Nt,u.sourceType===2]]),de((g(),b("div",DI,[m("div",{class:E(["musicList",{empty:!r.value.length&&!c.value}])},[r.value.length&&!c.value?(g(),b("div",BI,[(g(!0),b(ie,null,me(r.value,Z=>{var K,U;return g(),b("div",{class:"musicCon",key:Z.id},[m("div",zI,[m("div",jI,[m("img",{class:"icon",src:Z.titleImg,alt:""},null,8,qI),Z.sourceFrom==="PLATFORM"?(g(),b("img",eY)):j("",!0)]),m("div",tY,[N(v(wu),{class:"musicTit",title:Z.highName||""},null,8,["title"]),m("div",nY,[Z.usedNum?(g(),b("div",oY,[lY,m("div",null,Me(I(Z.usedNum)),1)])):j("",!0),(K=Z.audioPlayTypes)!=null&&K.includes("SING")?(g(),b("div",sY,"演唱")):j("",!0),(U=Z.audioPlayTypes)!=null&&U.includes("PLAY")?(g(),b("div",aY,"演奏")):j("",!0),m("div",iY,[N(v(wu),{title:Z.composer||""},null,8,["title"])])])])]),m("div",rY,[v(fl).fromType!=="PLATFORM"?(g(),b("img",{key:0,class:"sc",onClick:G=>V(Z),src:Z.favoriteFlag?v(PI):v(NI),alt:""},null,8,uY)):j("",!0),m("div",{class:"addBtn",onClick:G=>o(Z.id,Z.name)},"添加",8,cY)])])}),128))])):j("",!0),!r.value.length&&!c.value?(g(),k(v(gI),{key:1})):j("",!0)],2),de(m("div",dY,[N(v(dP),{layout:"prev, pager, next","default-page-size":21,onCurrentChange:M,total:u.total},null,8,["total"])],512),[[Nt,r.value.length]])])),[[v(d),c.value]])])])]))}}),fY=fe(RY,[["__scopeId","data-v-b9087c13"]]),lt=e=>(Je("data-v-7c477c6b"),e=e(),xe(),e),pY={class:"canvas-tool"},hY={class:"left-handler"},vY=lt(()=>m("img",{src:SL,alt:""},null,-1)),mY=lt(()=>m("div",null,"撤销",-1)),MY=[vY,mY],gY=lt(()=>m("img",{src:OL,alt:""},null,-1)),SY=lt(()=>m("div",null,"恢复",-1)),OY=[gY,SY],PY=lt(()=>m("div",{class:"line"},null,-1)),NY=lt(()=>m("img",{src:PL,alt:""},null,-1)),XY=lt(()=>m("div",null,"批注",-1)),TY=[NY,XY],VY=lt(()=>m("img",{src:NL,alt:""},null,-1)),yY=lt(()=>m("div",null,"选择",-1)),LY=[VY,yY],bY=lt(()=>m("img",{src:XL,alt:""},null,-1)),IY=lt(()=>m("div",null,"查找",-1)),YY=[bY,IY],WY=lt(()=>m("div",{class:"line"},null,-1)),UY=lt(()=>m("div",{class:"arrow-btn"},[m("div",null,"播放")],-1)),QY={class:"add-element-handler"},FY=lt(()=>m("div",{class:"handler-item"},[m("img",{class:"itemImg",src:TL,alt:""}),m("div",{class:"tit"},"图片")],-1)),ZY=lt(()=>m("div",{class:"handler-item"},[m("img",{class:"itemImg",src:VL,alt:""}),m("div",{class:"tit"},"音视频")],-1)),AY=lt(()=>m("img",{class:"itemImg",src:TR,alt:""},null,-1)),KY=lt(()=>m("div",{class:"tit"},"乐谱",-1)),_Y=[AY,KY],HY=lt(()=>m("img",{class:"itemImg",src:yL,alt:""},null,-1)),CY=lt(()=>m("div",{class:"charTit tit"},[m("div",null,"文字"),m("img",{src:VR,alt:""})],-1)),GY=lt(()=>m("img",{class:"itemImg",src:LL,alt:""},null,-1)),EY=lt(()=>m("div",{class:"charTit tit"},[m("div",null,"形状"),m("img",{src:VR,alt:""})],-1)),wY=lt(()=>m("img",{class:"itemImg",src:bL,alt:""},null,-1)),kY=lt(()=>m("div",{class:"tit"},"线条",-1)),JY=lt(()=>m("img",{class:"itemImg",src:IL,alt:""},null,-1)),xY=lt(()=>m("div",{class:"menuItem"},[m("img",{src:YL,alt:""}),m("div",{class:"tit"},"图表")],-1)),$Y=lt(()=>m("div",{class:"menuItem"},[m("img",{src:WL,alt:""}),m("div",{class:"tit"},"表格")],-1)),DY=lt(()=>m("div",{class:"menuItem"},[m("img",{src:UL,alt:""}),m("div",{class:"tit"},"公式")],-1)),BY=lt(()=>m("div",{class:"tit"},"更多工具",-1)),zY={class:"right-handler"},jY=q({__name:"index",setup(e){const t=Il(),n=Xe(),{creatingElement:o,creatingCustomShape:l,showSelectPanel:s,showSearchPanel:a,showNotesPanel:i}=oe(n),{canUndo:u,canRedo:r}=oe(ei()),{redo:c,undo:d}=He(),{scaleCanvas:R,setCanvasScalePercentage:p,resetCanvas:f,canvasScalePercentage:h}=Xi(),P=[200,150,125,100,75,50],O=_(!1),{enterScreening:L,enterScreeningFromStart:S}=Is(),X=$=>{p($),O.value=!1},{createImageElement:M,createChartElement:y,createTableElement:Y,createLatexElement:T,createVideoElement:V,createAudioElement:I,createCloudCoachElement:W}=il(),F=$=>{const A=$[0];A&&Uo(A).then(x=>M(x))},C=_(!1),Z=_(!1),K=_(!1),U=_(!1),G=_(!1),D=_(!1),le=_(!1),Re=_(!1),ae=_(!1);function Se($){const A=/\.(mp3|wav|m4a)$/i.test($.file.name)?"audio":"video";zp($.file.name,$.file,`${t.id}/`).then(x=>{A==="audio"?I(x):V(x)}).catch(()=>{es({showClose:!0,message:"上传失败!",type:"error"})})}function J($,A){W($,A),Re.value=!1}const B=($=!1)=>{n.setCreatingElement({type:"text",vertical:$})},Ie=$=>{n.setCreatingElement({type:"shape",data:$}),C.value=!1},ce=()=>{n.setCreatingCustomShapeState(!0),C.value=!1},z=$=>{n.setCreatingElement({type:"line",data:$}),Z.value=!1},ne=()=>{n.setSelectPanelState(!s.value)},ge=()=>{n.setSearchPanelState(!a.value)},w=()=>{n.setNotesPanelState(!i.value)};return($,A)=>{var Ne,he,Le;const x=te("IconTextRotationNone"),re=te("IconTextRotationDown"),ue=te("IconMinus"),Te=te("IconPlus"),Ae=te("IconFullScreen"),Qe=ze("tooltip");return g(),b("div",pY,[m("div",hY,[de((g(),b("div",{class:E(["leftHandler-item",{disable:!v(u)}]),onClick:A[0]||(A[0]=ve=>v(d)())},MY,2)),[[Qe,"撤销(Ctrl + Z)"]]),de((g(),b("div",{class:E(["leftHandler-item",{disable:!v(r)}]),onClick:A[1]||(A[1]=ve=>v(c)())},OY,2)),[[Qe,"恢复(Ctrl + Y)"]]),PY,de((g(),b("div",{class:E(["leftHandler-item",{active:v(i)}]),onClick:A[2]||(A[2]=ve=>w())},TY,2)),[[Qe,"批注"]]),de((g(),b("div",{class:E(["leftHandler-item",{active:v(s)}]),onClick:A[3]||(A[3]=ve=>ne())},LY,2)),[[Qe,"选择"]]),de((g(),b("div",{class:E(["leftHandler-item",{active:v(a)}]),onClick:A[4]||(A[4]=ve=>ge())},YY,2)),[[Qe,"查找/替换(Ctrl + F)"]]),WY,N(Ke,{trigger:"click",center:""},{content:Q(()=>[N(bt,{onClick:A[5]||(A[5]=ve=>v(S)())},{default:Q(()=>[Oe("从头开始")]),_:1}),N(bt,{onClick:A[6]||(A[6]=ve=>v(L)())},{default:Q(()=>[Oe("从当前页开始")]),_:1})]),default:Q(()=>[UY]),_:1})]),m("div",QY,[N(Ql,{onChange:A[7]||(A[7]=ve=>F(ve))},{default:Q(()=>[FY]),_:1}),N(v(jP),{action:"","show-file-list":!1,accept:".mp4,.avi,.flv,.mp3,.wav,.m4a","http-request":ve=>{Se(ve)}},{default:Q(()=>[ZY]),_:1},8,["http-request"]),m("div",{class:"handler-item",onClick:A[8]||(A[8]=ve=>Re.value=!0)},_Y),m("div",{class:E(["handler-item",{active:((Ne=v(o))==null?void 0:Ne.type)==="text"}]),onClick:A[12]||(A[12]=ve=>B())},[HY,N(Ke,{trigger:"click",value:D.value,"onUpdate:value":A[11]||(A[11]=ve=>D.value=ve),offset:10},{content:Q(()=>[N(bt,{center:"",onClick:A[9]||(A[9]=()=>{B(),D.value=!1})},{default:Q(()=>[N(x),Oe(" 横向文本框")]),_:1}),N(bt,{center:"",onClick:A[10]||(A[10]=()=>{B(!0),D.value=!1})},{default:Q(()=>[N(re),Oe(" 竖向文本框")]),_:1})]),default:Q(()=>[CY]),_:1},8,["value"])],2),m("div",{class:E(["handler-item",{active:v(l)||((he=v(o))==null?void 0:he.type)==="shape"}]),onClick:A[18]||(A[18]=ve=>C.value=!0)},[N(Ke,{trigger:"click",value:C.value,"onUpdate:value":A[14]||(A[14]=ve=>C.value=ve),offset:10},{content:Q(()=>[N(wL,{onSelect:A[13]||(A[13]=ve=>Ie(ve))})]),default:Q(()=>[GY]),_:1},8,["value"]),N(Ke,{trigger:"click",value:le.value,"onUpdate:value":A[16]||(A[16]=ve=>le.value=ve),offset:10,onClick:A[17]||(A[17]=Fe(()=>{},["stop"]))},{content:Q(()=>[N(bt,{center:"",onClick:A[15]||(A[15]=()=>{ce(),le.value=!1})},{default:Q(()=>[Oe("自由绘制")]),_:1})]),default:Q(()=>[EY]),_:1},8,["value"])],2),m("div",{class:E(["handler-item",{active:((Le=v(o))==null?void 0:Le.type)==="line"}]),onClick:A[22]||(A[22]=ve=>Z.value=!0)},[wY,N(Ke,{trigger:"click",value:Z.value,"onUpdate:value":A[20]||(A[20]=ve=>Z.value=ve),offset:10,onClick:A[21]||(A[21]=Fe(()=>{},["stop"]))},{content:Q(()=>[N(qL,{onSelect:A[19]||(A[19]=ve=>z(ve))})]),default:Q(()=>[kY]),_:1},8,["value"])],2),m("div",{class:"handler-item",onClick:A[33]||(A[33]=ve=>ae.value=!0)},[JY,N(Ke,{trigger:"click",value:ae.value,"onUpdate:value":A[28]||(A[28]=ve=>ae.value=ve),offset:10,onClick:A[29]||(A[29]=Fe(()=>{},["stop"]))},{content:Q(()=>[N(bt,{onClick:A[25]||(A[25]=ve=>K.value=!0)},{default:Q(()=>[N(Ke,{trigger:"click",value:K.value,"onUpdate:value":A[24]||(A[24]=ve=>K.value=ve),placement:"right",offsetOne:50,offset:36},{content:Q(()=>[N(lb,{onSelect:A[23]||(A[23]=ve=>{v(y)(ve),K.value=!1})})]),default:Q(()=>[xY]),_:1},8,["value"])]),_:1}),N(bt,{onClick:A[26]||(A[26]=ve=>U.value=!0)},{default:Q(()=>[$Y]),_:1}),N(bt,{onClick:A[27]||(A[27]=()=>{ae.value=!1,G.value=!0})},{default:Q(()=>[DY]),_:1})]),default:Q(()=>[BY]),_:1},8,["value"]),N(Ke,{trigger:"click",value:U.value,"onUpdate:value":A[32]||(A[32]=ve=>U.value=ve),placement:"right",offsetOne:200,offset:70},{content:Q(()=>[N(Vb,{onClose:A[30]||(A[30]=ve=>U.value=!1),onInsert:A[31]||(A[31]=({row:ve,col:_e})=>{v(Y)(ve,_e),U.value=!1})})]),_:1},8,["value"])])]),m("div",zY,[de(N(ue,{class:"rightHandler-item",onClick:A[34]||(A[34]=ve=>v(R)("-"))},null,512),[[Qe,"画布缩小(Ctrl + -)"]]),N(Ke,{trigger:"click",value:O.value,"onUpdate:value":A[36]||(A[36]=ve=>O.value=ve)},{content:Q(()=>[(g(),b(ie,null,me(P,ve=>N(bt,{center:"",key:ve,onClick:_e=>X(ve)},{default:Q(()=>[Oe(Me(ve)+"%",1)]),_:2},1032,["onClick"])),64)),N(bt,{center:"",onClick:A[35]||(A[35]=ve=>v(f)())},{default:Q(()=>[Oe("适应屏幕")]),_:1})]),default:Q(()=>[m("div",{class:E(["text",{canvasScaleVisible:O.value}])},Me(v(h)),3)]),_:1},8,["value"]),de(N(Te,{class:"rightHandler-item",onClick:A[37]||(A[37]=ve=>v(R)("+"))},null,512),[[Qe,"画布放大(Ctrl + =)"]]),de(N(Ae,{class:"rightHandler-item resetCanvas",onClick:A[38]||(A[38]=ve=>v(f)())},null,512),[[Qe,"适应屏幕(Ctrl + 0)"]])]),N(tl,{visible:G.value,"onUpdate:visible":A[41]||(A[41]=ve=>G.value=ve),width:880},{default:Q(()=>[N(WR,{onClose:A[39]||(A[39]=ve=>G.value=!1),onUpdate:A[40]||(A[40]=ve=>{v(T)(ve),G.value=!1})})]),_:1},8,["visible"]),N(tl,{contentStyle:{width:"70%",minWidth:"1200px",height:"86%",boxShadow:"0px 2px 10px 0px rgba(0,0,0,0.08)",borderRadius:"16px",border:"1px solid #DEDEDE",padding:"0"},visible:Re.value,"onUpdate:visible":A[43]||(A[43]=ve=>Re.value=ve)},{default:Q(()=>[N(v(fY),{onUpdate:J,onClose:A[42]||(A[42]=()=>{Re.value=!1})})]),_:1},8,["visible"])])}}}),qY=fe(jY,[["__scopeId","data-v-7c477c6b"]]),eW="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoBAMAAAB+0KVeAAAAD1BMVEUAAAAUFRUTFRceHh4TFBVWgLSjAAAABHRSTlMAs5IRXUzuuQAAACNJREFUKM9jGPLASBAOlOGCKi5w4IRTEFM7YTDq+GHieCoDAOOaGE+bFYNzAAAAAElFTkSuQmCC",tW="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAgVBMVEUAAADn5+fm5ubn5+fo6Oju7u7m5ubn5+fn5+fn5+fn5+fm5ubm5ubo6Ojn5+fn5+fm5ubp6enm5ubu7u7n5+fn5+f///8ZjP/n5+f6+vru7u739/fy8vJarf88nv/4+Pjx8fHb7f+/3/+dz//v9/+Ox/98vv8qlf+s1v+j0f9Cof+Tra/LAAAAFnRSTlMA6/l/YQ7u39XSy8Sljo1zUzszHhWx3xK16QAAAadJREFUWMOUk9t2gjAQRSeJci8gYjwJqLT2+v8/2Cxb1xJMGNjv2TlzJqEQba2KLBZSijgrVN3SKpoyxYS0bGgh2yqBw/adMdphTNdbOJJqu+S4igAMRk8wA4BIsYqNAOxFe7lYQGxojn0OWKODGAvkewqyE0CnZ+kAsQvGl7CaxUIGxngBer2AHnghD4dRfGaMg/d+oxdiPBk24/O8YTPpX47z81PI3Wj/Ytof36R4fA85rF6JRT4qQK/moYat8BXA1yDuP0v5B+CHUP8BIs8Gv0+nH3aX0V+EyhPgenSc37gI1U2Q4Pn/n483Tq9zggsScjS+FRzvfL7PLqJxghJDUOD4uoYFA0onSGHCgvkqDFKiFtBhAVMF0FINGxZwVVjUpNCHBVwVPRQV6MICrooOBWUwYQFXhUFGMSMY8fEkiElABwW8AYLkKsF5KpC/pdeBCQAwDALBfdx/QCcQhFug0DbRfz6Ar8CPyN/Ig8SjzMvE66yBwpHGobpiPWesc7FwtWm5cr0rYCjiMGQp5iloKuoybDvuu3C48rh0ufa5eLr6unyz/heBeRkuuDIOdwAAAABJRU5ErkJggg==",nW="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAflBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////8ZjP7///9Npv7m8/5stv4djv6+3/6YzP5brf7G4v74+/71+v7r9f6RyP41mv4qlP4mkv7H4/7s9f72pq2TAAAAF3RSTlMA+e3q1A7fy8Sljo2AfnNiYVM7Mx4Vsd3JZ38AAAG1SURBVFjDnJTntoMgEAaxpPe6g6CmavL+L3iPt50kSqLM/29Y2F2Ui91qNhr0wyAI+4PRbLVTndhMYl6IJ5u26d48Bk7pxehrYW1x1eaSnoB43msTn4ZwzrSVJ6zOzhBOPyqWEdxyKw3Y/AbR8m18O4SDFif6AMOtO7+OSIy8xSREa1d+EZCW8oEyJVg058eQSQsyGDfl9xyNtMIc2Tedf9fSEn2v17DgqKU1+sji5f0DjHTAEKyf+h+RSScyosd5GJJKR1KGD/NLUkpHyoTl//5EGOmMIfrbrCkH8eDA9LeAEGcH8yTJnb0k/Clh/qaABBJxcWOuKmJycQEgLnLiKr/hbP0E9kz1T07IxE8gGZPvG2hfga7usONkfQX2xE6tSMVXICkrNePiL7gwUyOMv8AwUgO0v0AzUH2u/oIrfRVS1OYfB7W9KAhVgK3Pv9Pw2keCr9Lr2AYAGISBIBNQU1Ky/4T0SFS3QKQkYP/zAXwFfkT+Rh4kHmVeJl5nDRSPNA9Vj/XIGigWrDYtV653BQxFHIcsxzwHTUddh23HfRcOVx6Xrqt9/WlfX+1z8XT1dflm/V/eaCV4pluuvAAAAABJRU5ErkJggg==",oW=()=>{const e=Ue(),{slides:t}=oe(e),{addHistorySnapshot:n}=He(),{deleteSlide:o}=Ul();return{createSection:()=>{e.updateSlide({sectionTag:{id:st(6)}}),n()},removeSection:r=>{if(!r)return;const c=t.value.find(d=>{var R;return((R=d.sectionTag)==null?void 0:R.id)===r});e.removeSlideProps({id:c.id,propName:"sectionTag"}),n()},removeAllSection:()=>{const r=t.value.map(c=>(c.sectionTag&&delete c.sectionTag,c));e.setSlides(r),n()},removeSectionSlides:r=>{let c=0;r&&(c=t.value.findIndex(R=>{var p;return((p=R.sectionTag)==null?void 0:p.id)===r}));const d=[];for(let R=c;R<t.value.length;R++){const p=t.value[R];if(R!==c&&p.sectionTag)break;d.push(p.id)}o(d)},updateSectionTitle:(r,c)=>{if(c){if(r==="default")e.updateSlide({sectionTag:{id:st(6),title:c}},t.value[0].id);else{const d=t.value.find(R=>{var p;return((p=R.sectionTag)==null?void 0:p.id)===r});if(!d)return;e.updateSlide({sectionTag:{...d.sectionTag,title:c}},d.id)}n()}}}},lW=e=>(Je("data-v-078545d1"),e=e(),xe(),e),sW={class:"layout-pool"},aW=lW(()=>m("div",{class:"header"},"页面模板",-1)),iW={class:"list"},rW={class:"btns"},uW=q({__name:"LayoutPool",emits:["select"],setup(e,{emit:t}){const n=t,o=Ue(),{layouts:l}=oe(o),s=a=>{n("select",a)};return(a,i)=>(g(),b("div",sW,[aW,m("div",iW,[(g(!0),b(ie,null,me(v(l),u=>(g(),b("div",{class:"layout-item",key:u.id},[N(ni,{class:"thumbnail",slide:u,size:180},null,8,["slide"]),m("div",rW,[N(Ve,{class:"btn",type:"primary",size:"small",onClick:r=>s(u)},{default:Q(()=>[Oe("插入模板")]),_:2},1032,["onClick"])])]))),128))])]))}}),cW=fe(uW,[["__scopeId","data-v-078545d1"]]),dW=e=>(Je("data-v-141b42bb"),e=e(),xe(),e),RW={class:"add-slide"},fW=dW(()=>m("div",{class:"select-btn"},[m("img",{src:eW,alt:""})],-1)),pW={class:"thumbnail-container"},hW=["data-section-id"],vW=["id","value"],mW={key:1,class:"text"},MW={class:"text-content"},gW=["onMousedown"],SW={class:"thumbnail"},OW={key:0,class:"tools"},PW={class:"page-number"},NW=q({__name:"index",setup(e){const t=Xe(),n=Ue(),o=Mn(),{selectedSlidesIndex:l,thumbnailsFocus:s}=oe(t),{slides:a,slideIndex:i,currentSlide:u}=oe(n),{ctrlKeyState:r,shiftKeyState:c}=oe(o),{slidesLoadLimit:d}=jp(),R=H(()=>[...l.value,i.value]),p=_(!1),f=H(()=>a.value.some(z=>z.sectionTag)),{copySlide:h,pasteSlide:P,createSlide:O,createSlideByTemplate:L,copyAndPasteSlide:S,deleteSlide:X,cutSlide:M,selectAllSlide:y,sortSlides:Y}=Ul(),{createSection:T,removeSection:V,removeAllSection:I,removeSectionSlides:W,updateSectionTitle:F}=oW(),C=_();Pe(()=>i.value,()=>{R.value.length&&t.updateSelectedSlidesIndex([]),we(()=>{var ne,ge;const z=(ge=(ne=C.value)==null?void 0:ne.$el)==null?void 0:ge.querySelector(".thumbnail-item.active");C.value&&z&&!qi(z,C.value.$el)&&setTimeout(()=>{z.scrollIntoView({behavior:"smooth"})},100)})}),Ge(()=>{var ne,ge;const z=(ge=(ne=C.value)==null?void 0:ne.$el)==null?void 0:ge.querySelector(".thumbnail-item.active");C.value&&z&&!qi(z,C.value.$el)&&setTimeout(()=>{z.scrollIntoView()},100)});const Z=z=>{t.setActiveElementIdList([]),i.value!==z&&n.updateSlideIndex(z)},K=(z,ne)=>{if(le.value)return;const ge=R.value.length>1;if(!(ge&&R.value.includes(ne)&&z.button!==0))if(r.value)if(i.value===ne){if(!ge)return;const w=R.value.filter($=>$!==ne);t.updateSelectedSlidesIndex(w),Z(R.value[0])}else if(R.value.includes(ne)){const w=R.value.filter($=>$!==ne);t.updateSelectedSlidesIndex(w)}else{const w=[...R.value,ne];t.updateSelectedSlidesIndex(w)}else if(c.value){if(i.value===ne&&!ge)return;let w=Math.min(...R.value),$=ne;ne<w&&($=Math.max(...R.value),w=ne);const A=[];for(let x=w;x<=$;x++)A.push(x);t.updateSelectedSlidesIndex(A)}else t.updateSelectedSlidesIndex([]),Z(ne)},U=z=>{s.value!==z&&(t.setThumbnailsFocus(z),z||t.updateSelectedSlidesIndex([]))},G=z=>{const{newIndex:ne,oldIndex:ge}=z;ne===void 0||ge===void 0||ne===ge||Y(ne,ge)},D=()=>{t.setNotesPanelState(!0)},le=_(""),Re=z=>{t.setDisableHotkeysState(!0),le.value=z||"default",we(()=>{document.querySelector(`#section-title-input-${z||"default"}`).focus()})},ae=z=>{const ne=z.target.value;F(le.value,ne),le.value="",t.setDisableHotkeysState(!1)},Se=z=>{const ne=z.dataset.sectionId;return[{text:"删除节",handler:()=>V(ne)},{text:"删除节和幻灯片",handler:()=>{t.setActiveElementIdList([]),W(ne)}},{text:"删除所有节",handler:I},{text:"重命名节",handler:()=>Re(ne)}]},{enterScreening:J,enterScreeningFromStart:B}=Is(),Ie=()=>[{text:"粘贴",subText:"Ctrl + V",handler:P},{text:"全选",subText:"Ctrl + A",handler:y},{text:"新建页面",subText:"Enter",handler:O},{text:"幻灯片放映",subText:"F5",handler:B}],ce=()=>[{text:"剪切",subText:"Ctrl + X",handler:M},{text:"复制",subText:"Ctrl + C",handler:h},{text:"粘贴",subText:"Ctrl + V",handler:P},{text:"全选",subText:"Ctrl + A",handler:y},{divider:!0},{text:"新建页面",subText:"Enter",handler:O},{text:"复制页面",subText:"Ctrl + D",handler:S},{text:"删除页面",subText:"Delete",handler:()=>X()},{text:"增加节",handler:T,disable:!!u.value.sectionTag},{divider:!0},{text:"从当前放映",subText:"Shift + F5",handler:J}];return(z,ne)=>{const ge=te("IconPlus"),w=ze("contextmenu"),$=ze("tooltip"),A=ze("click-outside");return de((g(),b("div",{class:"thumbnails",onMousedown:ne[9]||(ne[9]=()=>U(!0))},[m("div",RW,[m("div",{class:"btn",onClick:ne[0]||(ne[0]=x=>v(O)())},[N(ge,{class:"icon"}),Oe("添加幻灯片")]),N(Ke,{trigger:"click",placement:"bottom-start",value:p.value,"onUpdate:value":ne[2]||(ne[2]=x=>p.value=x),center:""},{content:Q(()=>[N(cW,{onSelect:ne[1]||(ne[1]=x=>{v(L)(x),p.value=!1})})]),default:Q(()=>[fW]),_:1},8,["value"])]),N(v(Pc),{class:"thumbnail-list",ref_key:"thumbnailsRef",ref:C,modelValue:v(a),animation:200,scroll:!0,scrollSensitivity:50,disabled:le.value,onEnd:G,itemKey:"id"},{item:Q(({element:x,index:re})=>{var ue,Te,Ae,Qe,Ne;return[m("div",pW,[x.sectionTag||f.value&&re===0?de((g(),b("div",{key:0,class:"section-title","data-section-id":((ue=x==null?void 0:x.sectionTag)==null?void 0:ue.id)||""},[le.value===((Te=x==null?void 0:x.sectionTag)==null?void 0:Te.id)||re===0&&le.value==="default"?(g(),b("input",{key:0,id:`section-title-input-${((Ae=x==null?void 0:x.sectionTag)==null?void 0:Ae.id)||"default"}`,type:"text",value:((Qe=x==null?void 0:x.sectionTag)==null?void 0:Qe.title)||"",placeholder:"输入节名称",onBlur:ne[3]||(ne[3]=he=>ae(he)),onKeydown:ne[4]||(ne[4]=Yt(Fe(he=>ae(he),["stop"]),["enter"]))},null,40,vW)):(g(),b("span",mW,[m("div",MW,Me(x!=null&&x.sectionTag?((Ne=x==null?void 0:x.sectionTag)==null?void 0:Ne.title)||"无标题节":"默认节"),1)]))],8,hW)),[[w,Se]]):j("",!0),de((g(),b("div",{class:E(["thumbnail-item",{active:v(i)===re,selected:R.value.includes(re)}]),onMousedown:he=>K(he,re),onDblclick:ne[8]||(ne[8]=he=>v(J)())},[m("div",{class:E(["label",{"offset-left":re>=99}])},Me(v(qp)(re+1,2)),3),m("div",SW,[N(ni,{id:`thumbnailSlide_${re}`,slide:x,size:180,visible:re<v(d)},null,8,["id","slide","visible"]),v(i)===re?(g(),b("div",OW,[de(m("img",{src:tW,onClick:ne[5]||(ne[5]=(...he)=>v(J)&&v(J)(...he)),alt:""},null,512),[[$,"预览"]]),de(m("img",{src:nW,onClick:ne[6]||(ne[6]=(...he)=>v(O)&&v(O)(...he)),alt:""},null,512),[[$,"添加幻灯片"]])])):j("",!0)]),x.notes&&x.notes.length?(g(),b("div",{key:0,class:"note-flag",onClick:ne[7]||(ne[7]=he=>D())},Me(x.notes.length),1)):j("",!0)],42,gW)),[[w,ce]])])]}),_:1},8,["modelValue","disabled"]),m("div",PW,"幻灯片 "+Me(v(i)+1)+" / "+Me(v(a).length),1)],32)),[[A,()=>U(!1)],[w,Ie]])}}}),XW=fe(NW,[["__scopeId","data-v-141b42bb"]]),TW=e=>(Je("data-v-d83f2a68"),e=e(),xe(),e),VW={class:"element-opacity"},yW={class:"row"},LW=TW(()=>m("div",{style:{width:"40%"}},"不透明度:",-1)),bW=q({__name:"ElementOpacity",setup(e){const t=Ue(),{handleElement:n}=oe(Xe()),o=_(1);Pe(n,()=>{n.value&&(o.value="opacity"in n.value&&n.value.opacity!==void 0?n.value.opacity:1)},{deep:!0,immediate:!0});const{addHistorySnapshot:l}=He(),s=a=>{if(!n.value)return;const i={opacity:a};t.updateElement({id:n.value.id,props:i}),l()};return(a,i)=>(g(),b("div",VW,[m("div",yW,[LW,N(Vn,{min:0,max:1,step:.1,value:o.value,"onUpdate:value":i[0]||(i[0]=u=>s(u)),style:{width:"60%"}},null,8,["value"])])]))}}),UR=fe(bW,[["__scopeId","data-v-d83f2a68"]]),IW={class:"color-block"},YW=q({__name:"ColorButton",props:{color:{}},setup(e){return(t,n)=>{const o=te("IconPlatte");return g(),k(Ve,{class:"color-btn"},{default:Q(()=>[m("div",IW,[m("div",{class:"content",style:ee({backgroundColor:t.color})},null,4)]),N(o,{class:"color-btn-icon"})]),_:1})}}}),ht=fe(YW,[["__scopeId","data-v-24206558"]]),WW=q({__name:"Checkboard",props:{size:{default:8},white:{default:"#fff"},grey:{default:"#e6e6e6"}},setup(e){const t=e,n={},o=(a,i,u)=>{const r=document.createElement("canvas");r.width=r.height=u*2;const c=r.getContext("2d");return c?(c.fillStyle=a,c.fillRect(0,0,r.width,r.height),c.fillStyle=i,c.fillRect(0,0,u,u),c.translate(u,u),c.fillRect(0,0,u,u),r.toDataURL()):null},l=(a,i,u)=>{const r=a+","+i+","+u;if(n[r])return n[r];const c=o(a,i,u);return n[r]=c,c},s=H(()=>({backgroundImage:`url(${l(t.white,t.grey,t.size)})`}));return(a,i)=>(g(),b("div",{class:"checkerboard",style:ee(s.value)},null,4))}}),Da=fe(WW,[["__scopeId","data-v-444c8909"]]),UW=e=>(Je("data-v-3527e29f"),e=e(),xe(),e),QW={class:"alpha"},FW={class:"alpha-checkboard-wrap"},ZW=UW(()=>m("div",{class:"alpha-picker"},null,-1)),AW=[ZW],KW=q({__name:"Alpha",props:{value:{}},emits:["colorChange"],setup(e,{emit:t}){const n=e,o=t,l=H(()=>n.value),s=H(()=>{const c=[l.value.r,l.value.g,l.value.b].join(",");return`linear-gradient(to right, rgba(${c}, 0) 0%, rgba(${c}, 1) 100%)`}),a=_(),i=c=>{if(c.preventDefault(),!a.value)return;const d=a.value.clientWidth,R=a.value.getBoundingClientRect().left+window.pageXOffset,p=c.pageX-R;let f;p<0?f=0:p>d?f=1:f=Math.round(p*100/d)/100,l.value.a!==f&&o("colorChange",{r:l.value.r,g:l.value.g,b:l.value.b,a:f})},u=()=>{window.removeEventListener("mousemove",i),window.removeEventListener("mouseup",u)},r=c=>{i(c),window.addEventListener("mousemove",i),window.addEventListener("mouseup",u)};return mt(u),(c,d)=>(g(),b("div",QW,[m("div",FW,[N(Da)]),m("div",{class:"alpha-gradient",style:ee({background:s.value})},null,4),m("div",{class:"alpha-container",ref_key:"alphaRef",ref:a,onMousedown:d[0]||(d[0]=R=>r(R))},[m("div",{class:"alpha-pointer",style:ee({left:l.value.a*100+"%"})},AW,4)],544)]))}}),_W=fe(KW,[["__scopeId","data-v-3527e29f"]]),HW=e=>(Je("data-v-2eff9899"),e=e(),xe(),e),CW={class:"hue"},GW=HW(()=>m("div",{class:"hue-picker"},null,-1)),EW=[GW],wW=q({__name:"Hue",props:{value:{},hue:{}},emits:["colorChange"],setup(e,{emit:t}){const n=e,o=t,l=_(0),s=_(""),a=H(()=>{const R=ke(n.value).toHsl();return n.hue!==-1&&(R.h=n.hue),R}),i=H(()=>a.value.h===0&&s.value==="right"?"100%":a.value.h*100/360+"%");Pe(()=>n.value,()=>{const R=ke(n.value).toHsl(),p=R.s===0?n.hue:R.h;p!==0&&p-l.value>0&&(s.value="right"),p!==0&&p-l.value<0&&(s.value="left"),l.value=p});const u=_(),r=R=>{if(R.preventDefault(),!u.value)return;const p=u.value.clientWidth,f=u.value.getBoundingClientRect().left+window.pageXOffset,h=R.pageX-f;let P,O;h<0?P=0:h>p?P=360:(O=h*100/p,P=360*O/100),(n.hue===-1||a.value.h!==P)&&o("colorChange",{h:P,l:a.value.l,s:a.value.s,a:a.value.a})},c=()=>{window.removeEventListener("mousemove",r),window.removeEventListener("mouseup",c)},d=R=>{r(R),window.addEventListener("mousemove",r),window.addEventListener("mouseup",c)};return mt(c),(R,p)=>(g(),b("div",CW,[m("div",{class:"hue-container",ref_key:"hueRef",ref:u,onMousedown:p[0]||(p[0]=f=>d(f))},[m("div",{class:"hue-pointer",style:ee({left:i.value})},EW,4)],544)]))}}),kW=fe(wW,[["__scopeId","data-v-2eff9899"]]),Ki=e=>(Je("data-v-ee7c000f"),e=e(),xe(),e),JW=Ki(()=>m("div",{class:"saturation-white"},null,-1)),xW=Ki(()=>m("div",{class:"saturation-black"},null,-1)),$W=Ki(()=>m("div",{class:"saturation-circle"},null,-1)),DW=[$W],BW=q({__name:"Saturation",props:{value:{},hue:{}},emits:["colorChange"],setup(e,{emit:t}){const n=e,o=t,l=H(()=>{const p=ke(n.value).toHsv();return n.hue!==-1&&(p.h=n.hue),p}),s=H(()=>`hsl(${l.value.h}, 100%, 50%)`),a=H(()=>-(l.value.v*100)+1+100+"%"),i=H(()=>l.value.s*100+"%"),u=vt.throttle(function(p){o("colorChange",p)},20,{leading:!0,trailing:!1}),r=_(),c=p=>{if(p.preventDefault(),!r.value)return;const f=r.value.clientWidth,h=r.value.clientHeight,P=r.value.getBoundingClientRect().left+window.pageXOffset,O=r.value.getBoundingClientRect().top+window.pageYOffset,L=vt.clamp(p.pageX-P,0,f),S=vt.clamp(p.pageY-O,0,h),X=L/f,M=vt.clamp(-(S/h)+1,0,1);u({h:l.value.h,s:X,v:M,a:l.value.a})},d=()=>{window.removeEventListener("mousemove",c),window.removeEventListener("mouseup",d)},R=p=>{c(p),window.addEventListener("mousemove",c),window.addEventListener("mouseup",d)};return mt(d),(p,f)=>(g(),b("div",{class:"saturation",ref_key:"saturationRef",ref:r,style:ee({background:s.value}),onMousedown:f[0]||(f[0]=h=>R(h))},[JW,xW,m("div",{class:"saturation-pointer",style:ee({top:a.value,left:i.value})},DW,4)],36))}}),zW=fe(BW,[["__scopeId","data-v-ee7c000f"]]),jW={class:"editable-input"},qW=["value"],eU=q({__name:"EditableInput",props:{value:{}},emits:["colorChange"],setup(e,{emit:t}){const n=e,o=t,l=H(()=>{let a="";return n.value.a<1?a=ke(n.value).toHex8String().toUpperCase():a=ke(n.value).toHexString().toUpperCase(),a.replace("#","")}),s=a=>{const i=a.target.value;if(i.length>=6){const u=ke(i);u.isValid()&&o("colorChange",u.toRgb())}};return(a,i)=>(g(),b("div",jW,[m("input",{class:"input-content",value:l.value,onInput:i[0]||(i[0]=u=>s(u))},null,40,qW)]))}}),tU=fe(eU,[["__scopeId","data-v-9a17323d"]]),nU={class:"color-picker"},oU={class:"picker-saturation-wrap"},lU={class:"picker-controls"},sU={class:"picker-color-wrap"},aU={class:"picker-sliders"},iU={class:"picker-hue-wrap"},rU={class:"picker-alpha-wrap"},uU={class:"picker-field"},cU={class:"picker-presets"},dU=["onClick"],RU={class:"picker-gradient-presets"},fU=["onClick"],pU={class:"picker-presets"},hU=["onClick"],vU={key:0,class:"recent-colors-title"},mU={class:"picker-presets"},MU=["onClick"],ku="RECENT_COLORS",gU=q({__name:"index",props:{modelValue:{default:"#e86b99"}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=t,l=[["#7f7f7f","#f2f2f2"],["#0d0d0d","#808080"],["#1c1a10","#ddd8c3"],["#0e243d","#c6d9f0"],["#233f5e","#dae5f0"],["#632623","#f2dbdb"],["#4d602c","#eaf1de"],["#3f3150","#e6e0ec"],["#1e5867","#d9eef3"],["#99490f","#fee9da"]],s=(X,M,y)=>{const Y=ke(X).toRgb(),T=ke(M).toRgb(),V=(T.r-Y.r)/y,I=(T.g-Y.g)/y,W=(T.b-Y.b)/y,F=[];for(let C=0;C<y;C++){const Z=ke({r:Y.r+V*C,g:Y.g+I*C,b:Y.b+W*C}).toRgbString();F.push(Z)}return F},a=()=>{const X=[];for(const M of l)X.push(s(M[1],M[0],5));return X},i=["#000000","#ffffff","#eeece1","#1e497b","#4e81bb","#e2534d","#9aba60","#8165a0","#47acc5","#f9974c"],u=["#c21401","#ff1e02","#ffc12a","#ffff3a","#90cf5b","#00af57","#00afee","#0071be","#00215f","#72349d"],r=_(-1),c=_([]),d=H({get(){return ke(n.modelValue).toRgb()},set(X){const M=`rgba(${[X.r,X.g,X.b,X.a].join(",")})`;o("update:modelValue",M)}}),R=a(),p=H(()=>`rgba(${[d.value.r,d.value.g,d.value.b,d.value.a].join(",")})`),f=X=>{r.value=ke(X).toHsl().h,o("update:modelValue",X)},h=vt.debounce(function(){const X=ke(d.value).toRgbString();if(!c.value.includes(X)){c.value=[X,...c.value];const M=10;c.value.length>M&&(c.value=c.value.slice(0,M))}},300,{trailing:!0});Ge(()=>{const X=localStorage.getItem(ku);X&&(c.value=JSON.parse(X))}),Pe(c,()=>{const X=JSON.stringify(c.value);localStorage.setItem(ku,X)});const P=X=>{"h"in X?(r.value=X.h,d.value=ke(X).toRgb()):(r.value=ke(X).toHsl().h,d.value=X),h()},O=()=>{"EyeDropper"in window?L():S()},L=()=>{Wt.success("按 ESC 键关闭取色吸管",{duration:0}),new window.EyeDropper().open().then(M=>{const y=ke(M.sRGBHex);r.value=y.toHsl().h,d.value=y.toRgb(),Wt.closeAll(),h()}).catch(()=>{Wt.closeAll()})},S=()=>{const X=document.querySelector(".canvas");if(!X)return;const M=document.createElement("div");M.style.cssText="position: fixed; top: 0; left: 0; bottom: 0; right: 0; z-index: 9999; cursor: wait;",document.body.appendChild(M);const y=document.createElement("div");y.style.cssText="position: absolute; top: -100px; left: -100px; width: 16px; height: 16px; border: 1px solid #000; z-index: 999",M.appendChild(y);const{left:Y,top:T,width:V,height:I}=X.getBoundingClientRect();eh(X,{filter:F=>!(F.tagName&&F.tagName.toUpperCase()==="FOREIGNOBJECT"||F.classList&&F.classList.contains("operate")),fontEmbedCSS:"",width:V,height:I,canvasWidth:V,canvasHeight:I,pixelRatio:1}).then(F=>{F.style.cssText=`position: absolute; top: ${T}px; left: ${Y}px; cursor: crosshair;`,M.style.cursor="default",M.appendChild(F);const C=F.getContext("2d");if(!C)return;let Z="";const K=D=>{const le=D.x,Re=D.y,ae=le-Y,Se=Re-T,[J,B,Ie,ce]=C.getImageData(ae,Se,1,1).data;Z=`rgba(${J}, ${B}, ${Ie}, ${(ce/255).toFixed(2)})`,y.style.left=le+10+"px",y.style.top=Re+10+"px",y.style.backgroundColor=Z},U=()=>{Z="",y.style.left="-100px",y.style.top="-100px",y.style.backgroundColor=""},G=D=>{if(Z&&D.button===0){const le=ke(Z);r.value=le.toHsl().h,d.value=le.toRgb(),h()}document.body.removeChild(M),F.removeEventListener("mousemove",K),F.removeEventListener("mouseleave",U),window.removeEventListener("mousedown",G)};F.addEventListener("mousemove",K),F.addEventListener("mouseleave",U),window.addEventListener("mousedown",G)}).catch(()=>{Wt.error("取色吸管初始化失败"),document.body.removeChild(M)})};return(X,M)=>{const y=te("IconNeedle");return g(),b("div",nU,[m("div",oU,[N(zW,{value:d.value,hue:r.value,onColorChange:M[0]||(M[0]=Y=>P(Y))},null,8,["value","hue"])]),m("div",lU,[m("div",sU,[m("div",{class:"picker-current-color",style:ee({background:p.value})},null,4),N(Da)]),m("div",aU,[m("div",iU,[N(kW,{value:d.value,hue:r.value,onColorChange:M[1]||(M[1]=Y=>P(Y))},null,8,["value","hue"])]),m("div",rU,[N(_W,{value:d.value,onColorChange:M[2]||(M[2]=Y=>P(Y))},null,8,["value"])])])]),m("div",uU,[N(tU,{class:"input",value:d.value,onColorChange:M[3]||(M[3]=Y=>P(Y))},null,8,["value"]),m("div",{class:"straw",onClick:M[4]||(M[4]=Y=>O())},[N(y)]),m("div",{class:"transparent",onClick:M[5]||(M[5]=Y=>f("#00000000"))},[N(Da)])]),m("div",cU,[(g(),b(ie,null,me(i,Y=>m("div",{class:"picker-presets-color",key:Y,style:ee({background:Y}),onClick:T=>f(Y)},null,12,dU)),64))]),m("div",RU,[(g(!0),b(ie,null,me(v(R),(Y,T)=>(g(),b("div",{class:"picker-gradient-col",key:T},[(g(!0),b(ie,null,me(Y,V=>(g(),b("div",{class:"picker-gradient-color",key:V,style:ee({background:V}),onClick:I=>f(V)},null,12,fU))),128))]))),128))]),m("div",pU,[(g(),b(ie,null,me(u,Y=>m("div",{key:Y,class:"picker-presets-color",style:ee({background:Y}),onClick:T=>f(Y)},null,12,hU)),64))]),c.value.length?(g(),b("div",vU,"最近使用:")):j("",!0),m("div",mU,[(g(!0),b(ie,null,me(c.value,Y=>(g(),b("div",{key:Y,class:"picker-presets-color alpha",onClick:T=>f(Y)},[m("div",{class:"picker-presets-color-content",style:ee({background:Y})},null,4)],8,MU))),128))])])}}}),Be=fe(gU,[["__scopeId","data-v-407eef80"]]),SU=e=>(Je("data-v-0ae5f9b9"),e=e(),xe(),e),OU=SU(()=>m("span",{class:"switch-core"},null,-1)),PU=[OU],NU=q({__name:"Switch",props:{value:{type:Boolean},disabled:{type:Boolean,default:!1}},emits:["update:value"],setup(e,{emit:t}){const n=e,o=t,l=()=>{n.disabled||o("update:value",!n.value)};return(s,a)=>(g(),b("span",{class:E(["switch",{active:s.value,disabled:s.disabled}]),onClick:a[0]||(a[0]=i=>l())},PU,2))}}),co=fe(NU,[["__scopeId","data-v-0ae5f9b9"]]),Es=e=>(Je("data-v-d29e0148"),e=e(),xe(),e),XU={class:"element-outline"},TU={key:0,class:"row"},VU=Es(()=>m("div",{style:{width:"40%"}},"启用边框:",-1)),yU={class:"switch-wrapper",style:{width:"60%"}},LU={class:"row"},bU=Es(()=>m("div",{style:{width:"40%"}},"边框样式:",-1)),IU={class:"row"},YU=Es(()=>m("div",{style:{width:"40%"}},"边框颜色:",-1)),WU={class:"row"},UU=Es(()=>m("div",{style:{width:"40%"}},"边框粗细:",-1)),QU=q({__name:"ElementOutline",props:{fixed:{type:Boolean,default:!1}},setup(e){const t=Ue(),{theme:n}=oe(t),{handleElement:o}=oe(Xe()),l=_(),s=_(!1);Pe(o,()=>{o.value&&(l.value="outline"in o.value?o.value.outline:void 0,s.value=!!l.value)},{deep:!0,immediate:!0});const{addHistorySnapshot:a}=He(),i=r=>{if(!o.value)return;const c={outline:{...l.value,...r}};t.updateElement({id:o.value.id,props:c}),a()},u=r=>{if(o.value){if(r){const c=n.value.outline;t.updateElement({id:o.value.id,props:{outline:c}})}else t.removeElementProps({id:o.value.id,propName:"outline"});a()}};return(r,c)=>(g(),b("div",XU,[r.fixed?j("",!0):(g(),b("div",TU,[VU,m("div",yU,[N(co,{value:s.value,"onUpdate:value":c[0]||(c[0]=d=>u(d))},null,8,["value"])])])),s.value&&l.value?(g(),b(ie,{key:1},[m("div",LU,[bU,N(rt,{style:{width:"60%"},value:l.value.style||"","onUpdate:value":c[1]||(c[1]=d=>i({style:d})),options:[{label:"实线边框",value:"solid"},{label:"虚线边框",value:"dashed"},{label:"点线边框",value:"dotted"}]},null,8,["value"])]),m("div",IU,[YU,N(Ke,{trigger:"click",style:{width:"60%"}},{content:Q(()=>[N(Be,{modelValue:l.value.color,"onUpdate:modelValue":c[2]||(c[2]=d=>i({color:d}))},null,8,["modelValue"])]),default:Q(()=>[N(ht,{color:l.value.color||"#000"},null,8,["color"])]),_:1})]),m("div",WU,[UU,N(en,{value:l.value.width||0,"onUpdate:value":c[3]||(c[3]=d=>i({width:d})),style:{width:"60%"}},null,8,["value"])])],64)):j("",!0)]))}}),_l=fe(QU,[["__scopeId","data-v-d29e0148"]]),Hl=e=>(Je("data-v-c05b3547"),e=e(),xe(),e),FU={class:"element-shadow"},ZU={class:"row"},AU=Hl(()=>m("div",{style:{width:"40%"}},"启用阴影:",-1)),KU={class:"switch-wrapper",style:{width:"60%"}},_U={class:"row"},HU=Hl(()=>m("div",{style:{width:"40%"}},"水平阴影:",-1)),CU={class:"row"},GU=Hl(()=>m("div",{style:{width:"40%"}},"垂直阴影:",-1)),EU={class:"row"},wU=Hl(()=>m("div",{style:{width:"40%"}},"模糊距离:",-1)),kU={class:"row"},JU=Hl(()=>m("div",{style:{width:"40%"}},"阴影颜色:",-1)),xU=q({__name:"ElementShadow",setup(e){const t=Ue(),{theme:n}=oe(t),{handleElement:o}=oe(Xe()),l=_(),s=_(!1);Pe(o,()=>{o.value&&(l.value="shadow"in o.value?o.value.shadow:void 0,s.value=!!l.value)},{deep:!0,immediate:!0});const{addHistorySnapshot:a}=He(),i=r=>{if(!o.value||!l.value)return;const c={...l.value,...r};t.updateElement({id:o.value.id,props:{shadow:c}}),a()},u=r=>{if(o.value){if(r){const c=n.value.shadow;t.updateElement({id:o.value.id,props:{shadow:c}})}else t.removeElementProps({id:o.value.id,propName:"shadow"});a()}};return(r,c)=>(g(),b("div",FU,[m("div",ZU,[AU,m("div",KU,[N(co,{value:s.value,"onUpdate:value":c[0]||(c[0]=d=>u(d))},null,8,["value"])])]),s.value&&l.value?(g(),b(ie,{key:0},[m("div",_U,[HU,N(Vn,{style:{width:"60%"},min:-10,max:10,step:1,value:l.value.h,"onUpdate:value":c[1]||(c[1]=d=>i({h:d}))},null,8,["value"])]),m("div",CU,[GU,N(Vn,{style:{width:"60%"},min:-10,max:10,step:1,value:l.value.v,"onUpdate:value":c[2]||(c[2]=d=>i({v:d}))},null,8,["value"])]),m("div",EU,[wU,N(Vn,{style:{width:"60%"},min:1,max:20,step:1,value:l.value.blur,"onUpdate:value":c[3]||(c[3]=d=>i({blur:d}))},null,8,["value"])]),m("div",kU,[JU,N(Ke,{trigger:"click",style:{width:"60%"}},{content:Q(()=>[N(Be,{modelValue:l.value.color,"onUpdate:modelValue":c[4]||(c[4]=d=>i({color:d}))},null,8,["modelValue"])]),default:Q(()=>[N(ht,{color:l.value.color},null,8,["color"])]),_:1})])],64)):j("",!0)]))}}),ws=fe(xU,[["__scopeId","data-v-c05b3547"]]),$U=()=>{const e=Xe(),{richTextAttrs:t,textFormatPainter:n}=oe(e);return{toggleTextFormatPainter:(l=!1)=>{n.value?e.setTextFormatPainter(null):e.setTextFormatPainter({keep:l,bold:t.value.bold,em:t.value.em,underline:t.value.underline,strikethrough:t.value.strikethrough,color:t.value.color,backcolor:t.value.backcolor,fontname:t.value.fontname,fontsize:t.value.fontsize,align:t.value.align})}}},DU={class:"text-color-block"},BU=q({__name:"TextColorButton",props:{color:{}},setup(e){return(t,n)=>(g(),k(Ve,{class:"text-color-btn"},{default:Q(()=>[We(t.$slots,"default",{},void 0,!0),m("div",DU,[m("div",{class:"text-color-block-content",style:ee({backgroundColor:t.color})},null,4)])]),_:3}))}}),nl=fe(BU,[["__scopeId","data-v-79358407"]]),Lt=q({__name:"CheckboxButton",props:{checked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup(e){return(t,n)=>(g(),k(Ve,{checked:t.checked,disabled:t.disabled,type:"checkbox"},{default:Q(()=>[We(t.$slots,"default")]),_:3},8,["checked","disabled"]))}}),zU=q({__name:"ButtonGroup",props:{passive:{type:Boolean,default:!1}},setup(e){return(t,n)=>(g(),b("div",{class:E(["button-group",{passive:t.passive}]),ref:"groupRef"},[We(t.$slots,"default",{},void 0,!0)],2))}}),dt=fe(zU,[["__scopeId","data-v-22d6e97c"]]),jU={},qU={class:"select-group"};function eQ(e,t){return g(),b("div",qU,[We(e.$slots,"default",{},void 0,!0)])}const _i=fe(jU,[["render",eQ],["__scopeId","data-v-6a2eb73a"]]),xt=q({__name:"RadioButton",props:{value:{},disabled:{type:Boolean,default:!1}},setup(e){const{value:t,updateValue:n}=Ct(Sc);return(o,l)=>(g(),k(Ve,{checked:!o.disabled&&v(t)===o.value,disabled:o.disabled,type:"radio",onClick:l[0]||(l[0]=s=>!o.disabled&&v(n)(o.value))},{default:Q(()=>[We(o.$slots,"default")]),_:3},8,["checked","disabled"]))}}),ks=q({__name:"RadioGroup",props:{value:{},disabled:{type:Boolean,default:!1}},emits:["update:value"],setup(e,{emit:t}){const n=e,o=t,l=a=>{n.disabled||o("update:value",a)},s=H(()=>n.value);return an(Sc,{value:s,updateValue:l}),(a,i)=>(g(),k(dt,{class:"radio-group"},{default:Q(()=>[We(a.$slots,"default")]),_:3}))}}),Js=e=>(Je("data-v-a61fb9f5"),e=e(),xe(),e),tQ={class:"rich-text-base"},nQ={class:"link-popover"},oQ={class:"btns"},lQ={class:"row",passive:""},sQ={class:"list-wrap"},aQ=["onClick"],iQ=Js(()=>m("span",null,null,-1)),rQ=[iQ],uQ=Js(()=>m("div",{style:{width:"10px"}},null,-1)),cQ={class:"list-wrap"},dQ=["onClick"],RQ=Js(()=>m("span",null,null,-1)),fQ=[RQ],pQ={class:"row"},hQ=Js(()=>m("div",{style:{width:"10px"}},null,-1)),vQ=q({__name:"RichTextBase",setup(e){const{richTextAttrs:t,availableFonts:n,textFormatPainter:o}=oe(Xe()),{toggleTextFormatPainter:l}=$U(),s=["24px","28px","32px","36px","40px","44px","48px","56px","64px","72px","80px","88px","96px","108px","120px","132px","144px","152px","160px","176px","192px","208px","224px","240px"],a=(L,S)=>{Jt.emit(Ht.RICH_TEXT_COMMAND,{action:{command:L,value:S}})},i=_(!1),u=_(!1),r=_(!1),c=_(!1),d=_(["disc","circle","square"]),R=_(["decimal","lower-roman","upper-roman","lower-alpha","upper-alpha","lower-greek"]),p=_(""),f=_(!1);Pe(t,()=>f.value=!1);const h=()=>{p.value=t.value.link},P=L=>{if(!L||!/^(https?):\/\/[\w\-]+(\.[\w\-]+)+([\w\-.,@?^=%&:\/~+#]*[\w\-@?^=%&\/~+#])?$/.test(L))return Wt.error("不是正确的网页链接地址");a("link",L),f.value=!1},O=()=>{a("link"),f.value=!1};return(L,S)=>{const X=te("IconFontSize"),M=te("IconAddText"),y=te("IconText"),Y=te("IconHighLight"),T=te("IconTextBold"),V=te("IconTextItalic"),I=te("IconTextUnderline"),W=te("IconStrikethrough"),F=te("IconCode"),C=te("IconQuote"),Z=te("IconFormat"),K=te("IconFormatBrush"),U=te("IconLinkOne"),G=te("IconAlignTextLeft"),D=te("IconAlignTextCenter"),le=te("IconAlignTextRight"),Re=te("IconAlignTextBoth"),ae=te("IconList"),Se=te("IconDown"),J=te("IconOrderedList"),B=te("IconIndentLeft"),Ie=te("IconIndentRight"),ce=ze("tooltip");return g(),b("div",tQ,[N(_i,{class:"row"},{default:Q(()=>[N(rt,{class:"font-select",style:{width:"60%"},value:v(t).fontname,search:"",searchLabel:"搜索字体","onUpdate:value":S[0]||(S[0]=z=>a("fontname",z)),options:[...v(n),...v(bl)]},{icon:Q(()=>[N(X)]),_:1},8,["value","options"]),N(rt,{style:{width:"40%"},value:v(t).fontsize,search:"",searchLabel:"搜索字号","onUpdate:value":S[1]||(S[1]=z=>a("fontsize",z)),options:s.map(z=>({label:z,value:z}))},{icon:Q(()=>[N(M)]),_:1},8,["value","options"])]),_:1}),N(dt,{class:"row",passive:""},{default:Q(()=>[N(Ke,{trigger:"click",style:{width:"30%"}},{content:Q(()=>[N(Be,{modelValue:v(t).color,"onUpdate:modelValue":S[2]||(S[2]=z=>a("color",z))},null,8,["modelValue"])]),default:Q(()=>[de((g(),k(nl,{first:"",color:v(t).color},{default:Q(()=>[N(y)]),_:1},8,["color"])),[[ce,"文字颜色"]])]),_:1}),N(Ke,{trigger:"click",style:{width:"30%"}},{content:Q(()=>[N(Be,{modelValue:v(t).backcolor,"onUpdate:modelValue":S[3]||(S[3]=z=>a("backcolor",z))},null,8,["modelValue"])]),default:Q(()=>[de((g(),k(nl,{color:v(t).backcolor},{default:Q(()=>[N(Y)]),_:1},8,["color"])),[[ce,"文字高亮"]])]),_:1}),de((g(),k(Ve,{class:"font-size-btn",style:{width:"20%"},onClick:S[4]||(S[4]=z=>a("fontsize-add"))},{default:Q(()=>[N(X),Oe("+")]),_:1})),[[ce,"增大字号"]]),de((g(),k(Ve,{last:"",class:"font-size-btn",style:{width:"20%"},onClick:S[5]||(S[5]=z=>a("fontsize-reduce"))},{default:Q(()=>[N(X),Oe("-")]),_:1})),[[ce,"减小字号"]])]),_:1}),N(dt,{class:"row"},{default:Q(()=>[de((g(),k(Lt,{style:{flex:"1"},checked:v(t).bold,onClick:S[6]||(S[6]=z=>a("bold"))},{default:Q(()=>[N(T)]),_:1},8,["checked"])),[[ce,"加粗"]]),de((g(),k(Lt,{style:{flex:"1"},checked:v(t).em,onClick:S[7]||(S[7]=z=>a("em"))},{default:Q(()=>[N(V)]),_:1},8,["checked"])),[[ce,"斜体"]]),de((g(),k(Lt,{style:{flex:"1"},checked:v(t).underline,onClick:S[8]||(S[8]=z=>a("underline"))},{default:Q(()=>[N(I)]),_:1},8,["checked"])),[[ce,"下划线"]]),de((g(),k(Lt,{style:{flex:"1"},checked:v(t).strikethrough,onClick:S[9]||(S[9]=z=>a("strikethrough"))},{default:Q(()=>[N(W)]),_:1},8,["checked"])),[[ce,"删除线"]])]),_:1}),N(dt,{class:"row"},{default:Q(()=>[de((g(),k(Lt,{style:{flex:"1"},checked:v(t).superscript,onClick:S[10]||(S[10]=z=>a("superscript"))},{default:Q(()=>[Oe("A²")]),_:1},8,["checked"])),[[ce,"上标"]]),de((g(),k(Lt,{style:{flex:"1"},checked:v(t).subscript,onClick:S[11]||(S[11]=z=>a("subscript"))},{default:Q(()=>[Oe("A₂")]),_:1},8,["checked"])),[[ce,"下标"]]),de((g(),k(Lt,{style:{flex:"1"},checked:v(t).code,onClick:S[12]||(S[12]=z=>a("code"))},{default:Q(()=>[N(F)]),_:1},8,["checked"])),[[ce,"行内代码"]]),de((g(),k(Lt,{style:{flex:"1"},checked:v(t).blockquote,onClick:S[13]||(S[13]=z=>a("blockquote"))},{default:Q(()=>[N(C)]),_:1},8,["checked"])),[[ce,"引用"]])]),_:1}),N(dt,{class:"row",passive:""},{default:Q(()=>[de((g(),k(Lt,{first:"",style:{flex:"1"},onClick:S[14]||(S[14]=z=>a("clear"))},{default:Q(()=>[N(Z)]),_:1})),[[ce,"清除格式"]]),de((g(),k(Lt,{style:{flex:"1"},checked:!!v(o),onClick:S[15]||(S[15]=z=>v(l)()),onDblclick:S[16]||(S[16]=z=>v(l)(!0))},{default:Q(()=>[N(K)]),_:1},8,["checked"])),[[ce,"格式刷(双击连续使用)"]]),N(Ke,{placement:"bottom-end",trigger:"click",value:f.value,"onUpdate:value":S[21]||(S[21]=z=>f.value=z),style:{width:"33.33%"}},{content:Q(()=>[m("div",nQ,[N(el,{value:p.value,"onUpdate:value":S[17]||(S[17]=z=>p.value=z),placeholder:"请输入超链接"},null,8,["value"]),m("div",oQ,[N(Ve,{size:"small",disabled:!v(t).link,onClick:S[18]||(S[18]=z=>O()),style:{"margin-right":"5px"}},{default:Q(()=>[Oe("移除")]),_:1},8,["disabled"]),N(Ve,{size:"small",type:"primary",onClick:S[19]||(S[19]=z=>P(p.value))},{default:Q(()=>[Oe("确认")]),_:1})])])]),default:Q(()=>[de((g(),k(Lt,{last:"",style:{width:"100%"},checked:!!v(t).link,onClick:S[20]||(S[20]=z=>h())},{default:Q(()=>[N(U)]),_:1},8,["checked"])),[[ce,"超链接"]])]),_:1},8,["value"])]),_:1}),N(Ce),N(ks,{class:"row","button-style":"solid",value:v(t).align,"onUpdate:value":S[22]||(S[22]=z=>a("align",z))},{default:Q(()=>[de((g(),k(xt,{value:"left",style:{flex:"1"}},{default:Q(()=>[N(G)]),_:1})),[[ce,"左对齐"]]),de((g(),k(xt,{value:"center",style:{flex:"1"}},{default:Q(()=>[N(D)]),_:1})),[[ce,"居中"]]),de((g(),k(xt,{value:"right",style:{flex:"1"}},{default:Q(()=>[N(le)]),_:1})),[[ce,"右对齐"]]),de((g(),k(xt,{value:"justify",style:{flex:"1"}},{default:Q(()=>[N(Re)]),_:1})),[[ce,"两端对齐"]])]),_:1},8,["value"]),m("div",lQ,[N(dt,{style:{flex:"1"}},{default:Q(()=>[de((g(),k(Ve,{first:"",type:v(t).bulletList?"primary":"default",style:{flex:"1"},onClick:S[23]||(S[23]=z=>a("bulletList"))},{default:Q(()=>[N(ae)]),_:1},8,["type"])),[[ce,"项目符号"]]),N(Ke,{trigger:"click",value:i.value,"onUpdate:value":S[24]||(S[24]=z=>i.value=z)},{content:Q(()=>[m("div",sQ,[(g(!0),b(ie,null,me(d.value,z=>(g(),b("ul",{class:"list",key:z,style:ee({listStyleType:z}),onClick:ne=>a("bulletList",z)},[(g(),b(ie,null,me(3,ne=>m("li",{class:"list-item",key:ne},rQ)),64))],12,aQ))),128))])]),default:Q(()=>[N(Ve,{last:"",class:"popover-btn"},{default:Q(()=>[N(Se)]),_:1})]),_:1},8,["value"])]),_:1}),uQ,N(dt,{style:{flex:"1"},passive:""},{default:Q(()=>[de((g(),k(Ve,{first:"",type:v(t).orderedList?"primary":"default",style:{flex:"1"},onClick:S[25]||(S[25]=z=>a("orderedList"))},{default:Q(()=>[N(J)]),_:1},8,["type"])),[[ce,"编号"]]),N(Ke,{trigger:"click",value:u.value,"onUpdate:value":S[26]||(S[26]=z=>u.value=z)},{content:Q(()=>[m("div",cQ,[(g(!0),b(ie,null,me(R.value,z=>(g(),b("ul",{class:"list",key:z,style:ee({listStyleType:z}),onClick:ne=>a("orderedList",z)},[(g(),b(ie,null,me(3,ne=>m("li",{class:"list-item",key:ne},fQ)),64))],12,dQ))),128))])]),default:Q(()=>[N(Ve,{last:"",class:"popover-btn"},{default:Q(()=>[N(Se)]),_:1})]),_:1},8,["value"])]),_:1})]),m("div",pQ,[N(dt,{style:{flex:"1"},passive:""},{default:Q(()=>[de((g(),k(Ve,{first:"",style:{flex:"1"},onClick:S[27]||(S[27]=z=>a("indent","-1"))},{default:Q(()=>[N(B)]),_:1})),[[ce,"减小段落缩进"]]),N(Ke,{trigger:"click",value:r.value,"onUpdate:value":S[29]||(S[29]=z=>r.value=z)},{content:Q(()=>[N(bt,{onClick:S[28]||(S[28]=z=>a("textIndent","-1"))},{default:Q(()=>[Oe("减小首行缩进")]),_:1})]),default:Q(()=>[N(Ve,{last:"",class:"popover-btn"},{default:Q(()=>[N(Se)]),_:1})]),_:1},8,["value"])]),_:1}),hQ,N(dt,{style:{flex:"1"},passive:""},{default:Q(()=>[de((g(),k(Ve,{first:"",style:{flex:"1"},onClick:S[30]||(S[30]=z=>a("indent","+1"))},{default:Q(()=>[N(Ie)]),_:1})),[[ce,"增大段落缩进"]]),N(Ke,{trigger:"click",value:c.value,"onUpdate:value":S[32]||(S[32]=z=>c.value=z)},{content:Q(()=>[N(bt,{onClick:S[31]||(S[31]=z=>a("textIndent","+1"))},{default:Q(()=>[Oe("增大首行缩进")]),_:1})]),default:Q(()=>[N(Ve,{last:"",class:"popover-btn"},{default:Q(()=>[N(Se)]),_:1})]),_:1},8,["value"])]),_:1})])])}}}),QR=fe(vQ,[["__scopeId","data-v-a61fb9f5"]]),xs=e=>(Je("data-v-c2e2a5a9"),e=e(),xe(),e),mQ={class:"text-style-panel"},MQ={class:"preset-style"},gQ=["onClick"],SQ={class:"row"},OQ=xs(()=>m("div",{style:{width:"40%"}},"行间距:",-1)),PQ={class:"row"},NQ=xs(()=>m("div",{style:{width:"40%"}},"段间距:",-1)),XQ={class:"row"},TQ=xs(()=>m("div",{style:{width:"40%"}},"字间距:",-1)),VQ={class:"row"},yQ=xs(()=>m("div",{style:{width:"40%"}},"文本框填充:",-1)),LQ=q({__name:"TextStylePanel",setup(e){const t=[{label:"大标题",style:{fontSize:"26px",fontWeight:700},cmd:[{command:"clear"},{command:"bold"},{command:"fontsize",value:"132px"},{command:"align",value:"center"}]},{label:"小标题",style:{fontSize:"22px",fontWeight:700},cmd:[{command:"clear"},{command:"bold"},{command:"fontsize",value:"80px"},{command:"align",value:"center"}]},{label:"正文",style:{fontSize:"20px"},cmd:[{command:"clear"},{command:"fontsize",value:"40px"}]},{label:"正文[小]",style:{fontSize:"18px"},cmd:[{command:"clear"},{command:"fontsize",value:"36px"}]},{label:"注释 1",style:{fontSize:"16px",fontStyle:"italic"},cmd:[{command:"clear"},{command:"fontsize",value:"32px"},{command:"em"}]},{label:"注释 2",style:{fontSize:"16px",textDecoration:"underline"},cmd:[{command:"clear"},{command:"fontsize",value:"32px"},{command:"underline"}]}],n=Xe(),o=Ue(),{handleElement:l,handleElementId:s}=oe(n),{addHistorySnapshot:a}=He(),i=X=>{o.updateElement({id:s.value,props:X}),a()},u=_("#000"),r=_(),c=_(),d=_();Pe(l,()=>{!l.value||l.value.type!=="text"||(u.value=l.value.fill||"#fff",r.value=l.value.lineHeight||1.5,c.value=l.value.wordSpace||0,d.value=l.value.paragraphSpace===void 0?5:l.value.paragraphSpace,Jt.emit(Ht.SYNC_RICH_TEXT_ATTRS_TO_STORE))},{deep:!0,immediate:!0});const R=[.9,1,1.15,1.2,1.4,1.5,1.8,2,2.5,3],p=[0,1,2,3,4,5,6,8,10],f=[0,5,10,15,20,25,30,40,50,80],h=X=>{i({lineHeight:X})},P=X=>{i({paragraphSpace:X})},O=X=>{i({wordSpace:X})},L=X=>{i({fill:X})},S=X=>{Jt.emit(Ht.RICH_TEXT_COMMAND,{action:X})};return(X,M)=>{const y=te("IconRowHeight"),Y=te("IconVerticalSpacingBetweenItems"),T=te("IconFullwidth");return g(),b("div",mQ,[m("div",MQ,[(g(),b(ie,null,me(t,V=>m("div",{class:"preset-style-item",key:V.label,style:ee(V.style),onClick:I=>S(V.cmd)},Me(V.label),13,gQ)),64))]),N(Ce),N(QR),N(Ce),m("div",SQ,[OQ,N(rt,{style:{width:"60%"},value:r.value||1,"onUpdate:value":M[0]||(M[0]=V=>h(V)),options:R.map(V=>({label:V+"倍",value:V}))},{icon:Q(()=>[N(y)]),_:1},8,["value","options"])]),m("div",PQ,[NQ,N(rt,{style:{width:"60%"},value:d.value||0,"onUpdate:value":M[1]||(M[1]=V=>P(V)),options:f.map(V=>({label:V+"px",value:V}))},{icon:Q(()=>[N(Y)]),_:1},8,["value","options"])]),m("div",XQ,[TQ,N(rt,{style:{width:"60%"},value:c.value||0,"onUpdate:value":M[2]||(M[2]=V=>O(V)),options:p.map(V=>({label:V+"px",value:V}))},{icon:Q(()=>[N(T)]),_:1},8,["value","options"])]),m("div",VQ,[yQ,N(Ke,{trigger:"click",style:{width:"60%"}},{content:Q(()=>[N(Be,{modelValue:u.value,"onUpdate:modelValue":M[3]||(M[3]=V=>L(V))},null,8,["modelValue"])]),default:Q(()=>[N(ht,{color:u.value},null,8,["color"])]),_:1})]),N(Ce),N(_l),N(Ce),N(ws),N(Ce),N(UR)])}}}),bQ=fe(LQ,[["__scopeId","data-v-c2e2a5a9"]]),IQ={class:"element-flip"},YQ=q({__name:"ElementFlip",setup(e){const t=Ue(),{handleElement:n}=oe(Xe()),o=_(!1),l=_(!1);Pe(n,()=>{n.value&&(n.value.type==="image"||n.value.type==="shape")&&(o.value=!!n.value.flipH,l.value=!!n.value.flipV)},{deep:!0,immediate:!0});const{addHistorySnapshot:s}=He(),a=i=>{n.value&&(t.updateElement({id:n.value.id,props:i}),s())};return(i,u)=>{const r=te("IconFlipVertically"),c=te("IconFlipHorizontally");return g(),b("div",IQ,[N(dt,{class:"row"},{default:Q(()=>[N(Lt,{style:{flex:"1"},checked:l.value,onClick:u[0]||(u[0]=d=>a({flipV:!l.value}))},{default:Q(()=>[N(r),Oe(" 垂直翻转")]),_:1},8,["checked"]),N(Lt,{style:{flex:"1"},checked:o.value,onClick:u[1]||(u[1]=d=>a({flipH:!o.value}))},{default:Q(()=>[N(c),Oe(" 水平翻转")]),_:1},8,["checked"])]),_:1})])}}}),FR=fe(YQ,[["__scopeId","data-v-97a958ef"]]),WQ=e=>(Je("data-v-0742dbd7"),e=e(),xe(),e),UQ={class:"element-filter"},QQ={class:"row"},FQ=WQ(()=>m("div",{style:{flex:"2"}},"启用滤镜:",-1)),ZQ={class:"switch-wrapper",style:{flex:"3"}},AQ={class:"presets"},KQ=["onClick"],_Q=["src"],HQ={class:"preset-label"},CQ={class:"filter"},GQ={class:"name"},EQ=q({__name:"ElementFilter",setup(e){const t=[{label:"模糊",key:"blur",default:0,value:0,unit:"px",max:10,step:1},{label:"亮度",key:"brightness",default:100,value:100,unit:"%",max:200,step:5},{label:"对比度",key:"contrast",default:100,value:100,unit:"%",max:200,step:5},{label:"灰度",key:"grayscale",default:0,value:0,unit:"%",max:100,step:5},{label:"饱和度",key:"saturate",default:100,value:100,unit:"%",max:200,step:5},{label:"色相",key:"hue-rotate",default:0,value:0,unit:"deg",max:360,step:10},{label:"褐色",key:"sepia",default:0,value:0,unit:"%",max:100,step:5},{label:"反转",key:"invert",default:0,value:0,unit:"%",max:100,step:5},{label:"不透明度",key:"opacity",default:100,value:100,unit:"%",max:100,step:5}],n=[{label:"黑白",values:{grayscale:"100%"}},{label:"复古",values:{sepia:"50%",contrast:"110%",brightness:"90%"}},{label:"锐化",values:{contrast:"150%"}},{label:"柔和",values:{brightness:"110%",contrast:"90%"}},{label:"暖色",values:{sepia:"30%",saturate:"135%"}},{label:"明亮",values:{brightness:"110%",contrast:"110%"}},{label:"鲜艳",values:{saturate:"200%"}},{label:"模糊",values:{blur:"2px"}},{label:"反转",values:{invert:"100%"}}],o=Ue(),{handleElement:l,handleElementId:s}=oe(Xe()),a=l,i=_(JSON.parse(JSON.stringify(t))),u=_(!1),{addHistorySnapshot:r}=He();Pe(l,()=>{if(!l.value||l.value.type!=="image")return;const f=l.value.filters;f?(i.value=t.map(h=>{const P=f[h.key];return P?{...h,value:parseInt(P)}:h}),u.value=!0):(i.value=JSON.parse(JSON.stringify(t)),u.value=!1)},{deep:!0,immediate:!0});const c=f=>{let h="";const P=Object.keys(f);for(const O of P)h+=`${O}(${f[O]}) `;return h},d=(f,h)=>{const L={...l.value.filters||{},[f.key]:`${h}${f.unit}`};o.updateElement({id:s.value,props:{filters:L}}),r()},R=f=>{l.value&&(f?o.updateElement({id:l.value.id,props:{filters:{}}}):o.removeElementProps({id:l.value.id,propName:"filters"}),r())},p=f=>{o.updateElement({id:s.value,props:{filters:f}}),r()};return(f,h)=>(g(),b("div",UQ,[m("div",QQ,[FQ,m("div",ZQ,[N(co,{value:u.value,"onUpdate:value":h[0]||(h[0]=P=>R(P))},null,8,["value"])])]),u.value?(g(),b(ie,{key:0},[m("div",AQ,[(g(),b(ie,null,me(n,(P,O)=>m("div",{class:"preset-item",key:O,onClick:L=>p(P.values)},[m("img",{src:v(a).src,alt:"",style:ee({filter:c(P.values)})},null,12,_Q),m("span",HQ,Me(P.label),1)],8,KQ)),64))]),m("div",CQ,[(g(!0),b(ie,null,me(i.value,P=>(g(),b("div",{class:"filter-item",key:P.key},[m("div",GQ,Me(P.label),1),N(Vn,{class:"filter-slider",max:P.max,min:0,step:P.step,value:P.value,"onUpdate:value":O=>d(P,O)},null,8,["max","step","value","onUpdate:value"])]))),128))])],64)):j("",!0)]))}}),wQ=fe(EQ,[["__scopeId","data-v-0742dbd7"]]),ZR=e=>(Je("data-v-07ebbf49"),e=e(),xe(),e),kQ={class:"element-color-mask"},JQ={class:"row"},xQ=ZR(()=>m("div",{style:{width:"40%"}},"着色(蒙版):",-1)),$Q={class:"switch-wrapper",style:{width:"60%"}},DQ={key:0,class:"row",style:{"margin-top":"15px"}},BQ=ZR(()=>m("div",{style:{width:"40%"}},"蒙版颜色:",-1)),Ju="rgba(226, 83, 77, 0.5)",zQ=q({__name:"ElementColorMask",setup(e){const t=Ue(),{handleElement:n,handleElementId:o}=oe(Xe()),l=_(Ju),s=_(!1),{addHistorySnapshot:a}=He();Pe(n,()=>{!n.value||n.value.type!=="image"||(n.value.colorMask?(l.value=n.value.colorMask,s.value=!0):s.value=!1)},{deep:!0,immediate:!0});const i=r=>{n.value&&(r?t.updateElement({id:n.value.id,props:{colorMask:Ju}}):t.removeElementProps({id:n.value.id,propName:"colorMask"}),a())},u=r=>{t.updateElement({id:o.value,props:{colorMask:r}}),a()};return(r,c)=>(g(),b("div",kQ,[m("div",JQ,[xQ,m("div",$Q,[N(co,{value:s.value,"onUpdate:value":c[0]||(c[0]=d=>i(d))},null,8,["value"])])]),s.value?(g(),b("div",DQ,[BQ,N(Ke,{trigger:"click",style:{width:"60%"}},{content:Q(()=>[N(Be,{modelValue:l.value,"onUpdate:modelValue":c[1]||(c[1]=d=>u(d))},null,8,["modelValue"])]),default:Q(()=>[N(ht,{color:l.value},null,8,["color"])]),_:1})])):j("",!0)]))}}),jQ=fe(zQ,[["__scopeId","data-v-07ebbf49"]]),AR=e=>(Je("data-v-ace5b669"),e=e(),xe(),e),qQ={class:"image-style-panel"},eF={class:"clip"},tF=AR(()=>m("div",{class:"title"},"按形状:",-1)),nF={class:"shape-clip"},oF=["onClick"],lF={key:0,class:"title"},sF={class:"row"},aF=AR(()=>m("div",{style:{width:"40%"}},"圆角半径:",-1)),iF=q({__name:"ImageStylePanel",setup(e){const t=th,n=[{label:"纵横比(正方形)",children:[{key:"1:1",ratio:1/1}]},{label:"纵横比(纵向)",children:[{key:"2:3",ratio:3/2},{key:"3:4",ratio:4/3},{key:"3:5",ratio:5/3},{key:"4:5",ratio:5/4}]},{label:"纵横比(横向)",children:[{key:"3:2",ratio:2/3},{key:"4:3",ratio:3/4},{key:"5:3",ratio:3/5},{key:"5:4",ratio:4/5}]},{children:[{key:"16:9",ratio:9/16},{key:"16:10",ratio:10/16}]}],o=Xe(),l=Ue(),{handleElement:s,handleElementId:a}=oe(o),{currentSlide:i}=oe(l),u=s,r=_(!1),{addHistorySnapshot:c}=He(),d=()=>{o.setClipingImageElementId(a.value),r.value=!1},R=()=>{const L=s.value,S=L.width,X=L.height,M=L.left,y=L.top,Y=L.clip?L.clip.range:[[0,0],[100,100]],T=S/((Y[1][0]-Y[0][0])/100),V=X/((Y[1][1]-Y[0][1])/100),I=M-T*(Y[0][0]/100),W=y-V*(Y[0][1]/100);return{originClipRange:Y,originWidth:T,originHeight:V,originLeft:I,originTop:W}},p=L=>{s.value&&(l.updateElement({id:a.value,props:L}),c())},f=(L,S=0)=>{const X=s.value,{originClipRange:M,originWidth:y,originHeight:Y,originLeft:T,originTop:V}=R();if(S){const I=Y/y,W=0,F=100;let C;if(I>S){const Z=(1-S/I)/2*100;C=[[W,Z],[F,F-Z]]}else{const Z=(1-I/S)/2*100;C=[[Z,W],[F-Z,F]]}p({clip:{...X.clip,shape:L,range:C},left:T+y*(C[0][0]/100),top:V+Y*(C[0][1]/100),width:y*(C[1][0]-C[0][0])/100,height:Y*(C[1][1]-C[0][1])/100})}else{const I={...X.clip,shape:L,range:M};let W={clip:I};L==="rect"&&(W={clip:I,radius:0}),p(W)}d()},h=L=>{const S=L[0];S&&Uo(S).then(X=>{p({src:X})})},P=()=>{if(s.value.clip){const{originWidth:S,originHeight:X,originLeft:M,originTop:y}=R();p({left:M,top:y,width:S,height:X})}l.removeElementProps({id:a.value,propName:["clip","outline","flip","shadow","filters","colorMask"]}),c()},O=()=>{const L=s.value,S={...i.value.background,type:"image",image:L.src,imageSize:"cover"};l.updateSlide({background:S}),c()};return(L,S)=>{const X=te("IconTailoring"),M=te("IconDown"),y=te("IconTransform"),Y=te("IconUndo"),T=te("IconTheme");return g(),b("div",qQ,[m("div",{class:"origin-image",style:ee({backgroundImage:`url(${v(u).src})`})},null,4),N(FR),N(dt,{class:"row",passive:""},{default:Q(()=>[N(Ve,{first:"",style:{width:"calc(100% / 6 * 5)"},onClick:S[0]||(S[0]=V=>d())},{default:Q(()=>[N(X,{class:"btn-icon"}),Oe(" 裁剪图片")]),_:1}),N(Ke,{trigger:"click",value:r.value,"onUpdate:value":S[1]||(S[1]=V=>r.value=V),style:{width:"calc(100% / 6)"}},{content:Q(()=>[m("div",eF,[tF,m("div",nF,[(g(!0),b(ie,null,me(v(t),(V,I)=>(g(),b("div",{class:"shape-clip-item",key:I,onClick:W=>f(I)},[m("div",{class:"shape",style:ee({clipPath:V.style})},null,4)],8,oF))),128))]),(g(),b(ie,null,me(n,V=>(g(),b(ie,{key:V.label},[V.label?(g(),b("div",lF,"按"+Me(V.label)+":",1)):j("",!0),N(dt,{class:"row"},{default:Q(()=>[(g(!0),b(ie,null,me(V.children,I=>(g(),k(Ve,{style:{flex:"1"},key:I.key,onClick:W=>f("rect",I.ratio)},{default:Q(()=>[Oe(Me(I.key),1)]),_:2},1032,["onClick"]))),128))]),_:2},1024)],64))),64))])]),default:Q(()=>[N(Ve,{last:"",class:"popover-btn",style:{width:"100%"}},{default:Q(()=>[N(M)]),_:1})]),_:1},8,["value"])]),_:1}),m("div",sF,[aF,N(en,{value:v(u).radius||0,"onUpdate:value":S[2]||(S[2]=V=>p({radius:V})),style:{width:"60%"}},null,8,["value"])]),N(Ce),N(jQ),N(Ce),N(wQ),N(Ce),N(_l),N(Ce),N(ws),N(Ce),N(Ql,{onChange:S[3]||(S[3]=V=>h(V))},{default:Q(()=>[N(Ve,{class:"full-width-btn"},{default:Q(()=>[N(y,{class:"btn-icon"}),Oe(" 替换图片")]),_:1})]),_:1}),N(Ve,{class:"full-width-btn",onClick:S[4]||(S[4]=V=>P())},{default:Q(()=>[N(Y,{class:"btn-icon"}),Oe(" 重置样式")]),_:1}),N(Ve,{class:"full-width-btn",onClick:S[5]||(S[5]=V=>O())},{default:Q(()=>[N(T,{class:"btn-icon"}),Oe(" 设为背景")]),_:1})])}}}),rF=fe(iF,[["__scopeId","data-v-ace5b669"]]),uF=()=>{const e=Xe(),{shapeFormatPainter:t,handleElement:n}=oe(e);return{toggleShapeFormatPainter:(l=!1)=>{const s=n.value;t.value?e.setShapeFormatPainter(null):e.setShapeFormatPainter({keep:l,fill:s.fill,gradient:s.gradient,outline:s.outline,opacity:s.opacity,shadow:s.shadow})}}},cF={class:"gradient-bar"},dF=["onMousedown","onContextmenu"],RF=q({__name:"GradientBar",props:{value:{}},emits:["update:value","update:index"],setup(e,{emit:t}){const n=e,o=t,l=_([]),s=_(),a=_(0);Yo(()=>{l.value=n.value,a.value>n.value.length-1&&(a.value=0)}),Pe(a,()=>{o("update:index",a.value)});const i=H(()=>`linear-gradient(to right, ${l.value.map(R=>`${R.color} ${R.pos}%`).join(",")})`),u=d=>{if(n.value.length<=2)return;d===a.value?a.value=d-1<0?0:d-1:a.value===n.value.length-1&&(a.value=n.value.length-2);const R=n.value.filter((p,f)=>f!==d);o("update:value",R)},r=d=>{let R=!0;document.onmousemove=p=>{if(!R||!s.value)return;let f=Math.round((p.clientX-s.value.getBoundingClientRect().left)/s.value.clientWidth*100);f>100&&(f=100),f<0&&(f=0),l.value=l.value.map((h,P)=>P===d?{...h,pos:f}:h)},document.onmouseup=()=>{R=!1;const p=l.value[d],f=[...l.value];f.splice(d,1);let h=0;for(let P=0;P<f.length;P++)p.pos>f[P].pos&&(h=P+1);a.value=h,f.splice(h,0,p),o("update:value",f),document.onmousemove=null,document.onmouseup=null}},c=d=>{if(n.value.length>=6||!s.value)return;const R=Math.round((d.clientX-s.value.getBoundingClientRect().left)/s.value.clientWidth*100);let p=0;for(let P=0;P<n.value.length;P++)R>n.value[P].pos&&(p=P+1);const f=n.value[p-1]?n.value[p-1].color:n.value[p].color,h=[...n.value];h.splice(p,0,{pos:R,color:f}),a.value=p,o("update:value",h)};return(d,R)=>(g(),b("div",cF,[m("div",{class:"bar",ref_key:"barRef",ref:s,style:ee({backgroundImage:i.value}),onClick:R[0]||(R[0]=p=>c(p))},null,4),(g(!0),b(ie,null,me(l.value,(p,f)=>(g(),b("div",{class:E(["point",{active:a.value===f}]),key:p.pos+"-"+f,style:ee({backgroundColor:p.color,left:`calc(${p.pos}% - 5px)`}),onMousedown:Fe(h=>r(f),["left"]),onContextmenu:Fe(h=>u(f),["right"])},null,46,dF))),128))]))}}),KR=fe(RF,[["__scopeId","data-v-3fe7c583"]]),$s=e=>(Je("data-v-da387ff7"),e=e(),xe(),e),fF={class:"shape-style-panel"},pF={class:"title"},hF=$s(()=>m("span",null,"点击替换形状",-1)),vF={class:"shape-pool"},mF={class:"shape-list"},MF={class:"row"},gF=$s(()=>m("div",{style:{width:"10px"}},null,-1)),SF={class:"row"},OF={class:"row"},PF=$s(()=>m("div",{style:{width:"40%"}},"当前色块:",-1)),NF={key:0,class:"row"},XF=$s(()=>m("div",{style:{width:"40%"}},"渐变角度:",-1)),TF={class:"row"},VF=q({__name:"ShapeStylePanel",setup(e){const t=Xe(),n=Ue(),{handleElement:o,handleElementId:l,shapeFormatPainter:s}=oe(t),a=o,i=_("#000"),u=_({type:"linear",rotate:0,colors:[{pos:0,color:"#fff"},{pos:100,color:"#fff"}]}),r=_("fill"),c=_("middle"),d=_(0);Pe(o,()=>{var y,Y;if(!o.value||o.value.type!=="shape")return;i.value=o.value.fill||"#fff";const M=[{pos:0,color:i.value},{pos:100,color:"#fff"}];u.value=o.value.gradient||{type:"linear",rotate:0,colors:M},r.value=o.value.gradient?"gradient":"fill",c.value=((Y=(y=o.value)==null?void 0:y.text)==null?void 0:Y.align)||"middle"},{deep:!0,immediate:!0});const{addHistorySnapshot:R}=He(),{toggleShapeFormatPainter:p}=uF(),f=M=>{n.updateElement({id:l.value,props:M}),R()},h=M=>{M==="fill"?(n.removeElementProps({id:l.value,propName:"gradient"}),R()):(d.value=0,f({gradient:u.value}))},P=M=>{if(!u.value)return;const y={...u.value,...M};f({gradient:y})},O=M=>{const y=u.value.colors.map((Y,T)=>T===d.value?{...Y,color:M}:Y);P({colors:y})},L=M=>{f({fill:M})},S=M=>{const{width:y,height:Y}=o.value,T={viewBox:M.viewBox,path:M.path,special:M.special};if(M.pathFormula){T.pathFormula=M.pathFormula,T.viewBox=[y,Y];const V=sl[M.pathFormula];"editable"in V?(T.path=V.formula(y,Y,V.defaultValue),T.keypoints=V.defaultValue):T.path=V.formula(y,Y)}else T.pathFormula=void 0,T.keypoints=void 0;f(T)},X=M=>{const y=o.value,Y={content:"",defaultFontName:"微软雅黑",defaultColor:"#000",align:"middle"},T=y.text||Y;f({text:{...T,align:M}})};return(M,y)=>{var C;const Y=te("IconDown"),T=te("IconAlignTextTopOne"),V=te("IconAlignTextMiddleOne"),I=te("IconAlignTextBottomOne"),W=te("IconFormatBrush"),F=ze("tooltip");return g(),b("div",fF,[m("div",pF,[hF,N(Y)]),m("div",vF,[(g(!0),b(ie,null,me(v(Oc),Z=>(g(),b("div",{class:"category",key:Z.type},[m("div",mF,[(g(!0),b(ie,null,me(Z.children,(K,U)=>(g(),k(yR,{class:"shape-item",key:U,shape:K,onClick:G=>S(K)},null,8,["shape","onClick"]))),128))])]))),128))]),m("div",MF,[N(rt,{style:{flex:"1"},value:r.value,"onUpdate:value":y[0]||(y[0]=Z=>h(Z)),options:[{label:"纯色填充",value:"fill"},{label:"渐变填充",value:"gradient"}]},null,8,["value"]),gF,r.value==="fill"?(g(),k(Ke,{key:0,trigger:"click",style:{flex:"1"}},{content:Q(()=>[N(Be,{modelValue:i.value,"onUpdate:modelValue":y[1]||(y[1]=Z=>L(Z))},null,8,["modelValue"])]),default:Q(()=>[N(ht,{color:i.value},null,8,["color"])]),_:1})):(g(),k(rt,{key:1,style:{flex:"1"},value:u.value.type,"onUpdate:value":y[2]||(y[2]=Z=>P({type:Z})),options:[{label:"线性渐变",value:"linear"},{label:"径向渐变",value:"radial"}]},null,8,["value"]))]),r.value==="gradient"?(g(),b(ie,{key:0},[m("div",SF,[N(KR,{value:u.value.colors,"onUpdate:value":y[3]||(y[3]=Z=>P({colors:Z})),"onUpdate:index":y[4]||(y[4]=Z=>d.value=Z)},null,8,["value"])]),m("div",OF,[PF,N(Ke,{trigger:"click",style:{width:"60%"}},{content:Q(()=>[N(Be,{modelValue:u.value.colors[d.value].color,"onUpdate:modelValue":y[5]||(y[5]=Z=>O(Z))},null,8,["modelValue"])]),default:Q(()=>[N(ht,{color:u.value.colors[d.value].color},null,8,["color"])]),_:1})]),u.value.type==="linear"?(g(),b("div",NF,[XF,N(Vn,{style:{width:"60%"},min:0,max:360,step:15,value:u.value.rotate,"onUpdate:value":y[6]||(y[6]=Z=>P({rotate:Z}))},null,8,["value"])])):j("",!0)],64)):j("",!0),N(FR),N(Ce),(C=v(a).text)!=null&&C.content?(g(),b(ie,{key:1},[N(QR),N(Ce),N(ks,{class:"row","button-style":"solid",value:c.value,"onUpdate:value":y[7]||(y[7]=Z=>X(Z))},{default:Q(()=>[de((g(),k(xt,{value:"top",style:{flex:"1"}},{default:Q(()=>[N(T)]),_:1})),[[F,"顶对齐"]]),de((g(),k(xt,{value:"middle",style:{flex:"1"}},{default:Q(()=>[N(V)]),_:1})),[[F,"居中"]]),de((g(),k(xt,{value:"bottom",style:{flex:"1"}},{default:Q(()=>[N(I)]),_:1})),[[F,"底对齐"]])]),_:1},8,["value"]),N(Ce)],64)):j("",!0),N(_l),N(Ce),N(ws),N(Ce),N(UR),N(Ce),m("div",TF,[de((g(),k(Lt,{style:{flex:"1"},checked:!!v(s),onClick:y[8]||(y[8]=Z=>v(p)()),onDblclick:y[9]||(y[9]=Z=>v(p)(!0))},{default:Q(()=>[N(W),Oe(" 形状格式刷")]),_:1},8,["checked"])),[[F,"双击连续使用"]])])])}}}),yF=fe(VF,[["__scopeId","data-v-da387ff7"]]),Cl=e=>(Je("data-v-549730c4"),e=e(),xe(),e),LF={class:"line-style-panel"},bF={class:"row"},IF=Cl(()=>m("div",{style:{width:"40%"}},"线条样式:",-1)),YF={class:"row"},WF=Cl(()=>m("div",{style:{width:"40%"}},"线条颜色:",-1)),UF={class:"row"},QF=Cl(()=>m("div",{style:{width:"40%"}},"线条宽度:",-1)),FF={class:"row"},ZF=Cl(()=>m("div",{style:{width:"40%"}},"起点样式:",-1)),AF={class:"row"},KF=Cl(()=>m("div",{style:{width:"40%"}},"终点样式:",-1)),_F={class:"row"},HF=q({__name:"LineStylePanel",setup(e){const t=Ue(),{handleElement:n}=oe(Xe()),o=n,{addHistorySnapshot:l}=He(),s=a=>{n.value&&(t.updateElement({id:n.value.id,props:a}),l())};return(a,i)=>{const u=te("IconSwitch");return g(),b("div",LF,[m("div",bF,[IF,N(rt,{style:{width:"60%"},value:v(o).style,"onUpdate:value":i[0]||(i[0]=r=>s({style:r})),options:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}]},null,8,["value"])]),m("div",YF,[WF,N(Ke,{trigger:"click",style:{width:"60%"}},{content:Q(()=>[N(Be,{modelValue:v(o).color,"onUpdate:modelValue":i[1]||(i[1]=r=>s({color:r}))},null,8,["modelValue"])]),default:Q(()=>[N(ht,{color:v(o).color},null,8,["color"])]),_:1})]),m("div",UF,[QF,N(en,{value:v(o).width,"onUpdate:value":i[2]||(i[2]=r=>s({width:r})),style:{width:"60%"}},null,8,["value"])]),m("div",FF,[ZF,N(rt,{style:{width:"60%"},value:v(o).points[0],"onUpdate:value":i[3]||(i[3]=r=>s({points:[r,v(o).points[1]]})),options:[{label:"无",value:""},{label:"箭头",value:"arrow"},{label:"圆点",value:"dot"}]},null,8,["value"])]),m("div",AF,[KF,N(rt,{style:{width:"60%"},value:v(o).points[1],"onUpdate:value":i[4]||(i[4]=r=>s({points:[v(o).points[0],r]})),options:[{label:"无",value:""},{label:"箭头",value:"arrow"},{label:"圆点",value:"dot"}]},null,8,["value"])]),N(Ce),m("div",_F,[N(Ve,{style:{flex:"1"},onClick:i[5]||(i[5]=r=>s({start:v(o).end,end:v(o).start}))},{default:Q(()=>[N(u),Oe(" 交换方向")]),_:1})]),N(Ce),N(ws)])}}}),CF=fe(HF,[["__scopeId","data-v-549730c4"]]),_R=e=>(Je("data-v-89bf0ce6"),e=e(),xe(),e),GF={class:"chart-data-editor"},EF={class:"editor-content"},wF={class:"handler"},kF={class:"col-header"},JF={class:"col-key"},xF={class:"row-header"},$F={class:"row-key"},DF=_R(()=>m("div",{class:"all-header"},[m("svg",{class:"triangle",width:"8",height:"8",viewBox:"0 0 8 8",xmlns:"http://www.w3.org/2000/svg"},[m("path",{d:"M8,0 L8,8 L0,8 L8,0",fill:"#ccc"})])],-1)),BF={class:"range-box"},zF=["id","onFocus","onPaste"],jF={class:"btns"},qF={class:"left"},eZ=_R(()=>m("span",{class:"change"},"点击更换",-1)),tZ={class:"right"},nZ="ABCDEFGHIJKLMNOPQRSTUVWXYZ",En=100,wn=32,oZ=q({__name:"ChartDataEditor",props:{type:{},data:{}},emits:["save","close"],setup(e,{emit:t}){const n=e,o=t,l=["bar","column","line","area","scatter","pie","ring","radar"],s=_(!1),a=_([0,0]),i=_({width:0,height:0}),u=_(null),r=_("bar"),c=H(()=>{const X=a.value[0]*En,M=a.value[1]*wn;return[{type:"t",style:{width:X+"px"}},{type:"b",style:{top:M+"px",width:X+"px"}},{type:"l",style:{height:M+"px"}},{type:"r",style:{left:X+"px",height:M+"px"}}]}),d=H(()=>{const X=a.value[0]*En,M=a.value[1]*wn;return{left:X+"px",top:M+"px"}});Ge(()=>{r.value=n.type;const X=[],{labels:M,legends:y,series:Y}=n.data,T=M.length,V=Y.length;X.push(["",...y]);for(let I=0;I<T;I++){const W=[M[I]];for(let F=0;F<V;F++)W.push(Y[F][I]+"");X.push(W)}for(let I=0;I<T+1;I++)for(let W=0;W<V+1;W++){const F=document.querySelector(`#cell-${I}-${W}`);F&&(F.value=X[I][W]+"")}a.value=[V+1,T+1]});const p=()=>{if(!u.value)return;const[X,M]=u.value,y=document.querySelector(`#cell-${X+1}-${M}`);y&&y.focus()},f=X=>{X.key.toUpperCase()===Ye.ENTER&&p()};Ge(()=>{document.addEventListener("keydown",f)}),mt(()=>{document.removeEventListener("keydown",f)});const h=()=>{const[X,M]=a.value,y=[];let Y=[],T=[];for(let V=1;V<M;V++){let I=`类别${V}`;const W=document.querySelector(`#cell-${V}-0`);W&&W.value&&(I=W.value),y.push(I)}for(let V=1;V<X;V++){let I=`系列${V}`;const W=document.querySelector(`#cell-0-${V}`);W&&W.value&&(I=W.value),Y.push(I)}for(let V=1;V<X;V++){const I=[];for(let W=1;W<M;W++){const F=document.querySelector(`#cell-${W}-${V}`);let C=0;F&&F.value&&+F.value&&(C=+F.value),I.push(C)}T.push(I)}r.value==="scatter"&&(Y.length>2&&(Y=Y.slice(0,2),T=T.slice(0,2)),Y.length<2&&(Y.push("Y"),T.push(T[0]))),(r.value==="ring"||r.value==="pie")&&Y.length>1&&(Y=Y.slice(0,1),T=T.slice(0,1)),o("save",{data:{labels:y,legends:Y,series:T},type:r.value})},P=()=>{for(let X=1;X<31;X++)for(let M=1;M<7;M++){const y=document.querySelector(`#cell-${X}-${M}`);y&&(y.value="")}},O=(X,M,y)=>{if(X.preventDefault(),!X.clipboardData)return;const Y=X.clipboardData.items[0];Y&&Y.kind==="string"&&Y.type==="text/plain"&&Y.getAsString(T=>{if(typeof Si(T)=="object")return;const I=Nd(T);if(I){const W=M+I.length,F=y+I[0].length;for(let C=M;C<W;C++)for(let Z=y;Z<F;Z++){const K=document.querySelector(`#cell-${C}-${Z}`);K&&(K.value=I[C-M][Z-y])}}})},L=()=>o("close"),S=X=>{let M=!0;const y=X.pageX,Y=X.pageY,T=a.value[0]*En,V=a.value[1]*wn;document.onmousemove=I=>{if(!M)return;const W=I.pageX,F=I.pageY,C=W-y,Z=F-Y,K=T+C,U=V+Z;i.value={width:K,height:U}},document.onmouseup=I=>{M=!1,document.onmousemove=null,document.onmouseup=null;const W=I.pageX,F=I.pageY;if(y===W&&Y===F)return;let C=i.value.width,Z=i.value.height;C%En>En*.5&&(C=C+(En-C%En)),Z%wn>wn*.5&&(Z=Z+(wn-Z%wn));let K=Math.round(Z/wn),U=Math.round(C/En);K<3&&(K=3),U<2&&(U=2),a.value=[U,K],i.value={width:0,height:0}}};return(X,M)=>(g(),b("div",GF,[m("div",EF,[m("div",wF,[m("div",kF,[(g(),b(ie,null,me(7,y=>m("div",{class:"col-header-item",key:y},[m("div",JF,Me(nZ[y-1]),1)])),64))]),m("div",xF,[(g(),b(ie,null,me(31,y=>m("div",{class:"row-header-item",key:y},[m("div",$F,Me(y),1)])),64))]),DF]),m("div",BF,[m("div",{class:"temp-range",style:ee({width:i.value.width+"px",height:i.value.height+"px"})},null,4),(g(!0),b(ie,null,me(c.value,y=>(g(),b("div",{class:E(["range-line",y.type]),key:y.type,style:ee(y.style)},null,6))),128)),m("div",{class:"resizable",style:ee(d.value),onMousedown:M[0]||(M[0]=Fe(y=>S(y),["stop"]))},null,36)]),m("table",null,[m("tbody",null,[(g(),b(ie,null,me(31,y=>m("tr",{key:y},[(g(),b(ie,null,me(7,Y=>m("td",{key:Y,class:E({head:Y===1&&y<=a.value[1]||y===1&&Y<=a.value[0]})},[y===1&&Y===1?j("",!0):(g(),b("input",{key:0,class:E(["item",{selected:y<=a.value[1]&&Y<=a.value[0]}]),id:`cell-${y-1}-${Y-1}`,autocomplete:"off",onFocus:T=>u.value=[y-1,Y-1],onPaste:T=>O(T,y-1,Y-1)},null,42,zF))],2)),64))])),64))])])]),m("div",jF,[m("div",qF,[Oe(" 图表类型:"+Me(v(Qa)[r.value])+" ",1),N(Ke,{trigger:"click",placement:"top",value:s.value,"onUpdate:value":M[1]||(M[1]=y=>s.value=y)},{content:Q(()=>[(g(),b(ie,null,me(l,y=>N(bt,{center:"",key:y,onClick:Y=>{r.value=y,s.value=!1}},{default:Q(()=>[Oe(Me(v(Qa)[y]),1)]),_:2},1032,["onClick"])),64))]),default:Q(()=>[eZ]),_:1},8,["value"])]),m("div",tZ,[N(Ve,{class:"btn",onClick:M[2]||(M[2]=y=>L())},{default:Q(()=>[Oe("取消")]),_:1}),N(Ve,{class:"btn",onClick:M[3]||(M[3]=y=>P())},{default:Q(()=>[Oe("清空数据")]),_:1}),N(Ve,{type:"primary",class:"btn",onClick:M[4]||(M[4]=y=>h())},{default:Q(()=>[Oe("确认")]),_:1})])])]))}}),lZ=fe(oZ,[["__scopeId","data-v-89bf0ce6"]]),sZ=e=>(Je("data-v-714bf49f"),e=e(),xe(),e),aZ=sZ(()=>m("span",{class:"checkbox-input"},null,-1)),iZ=["checked"],rZ={class:"checkbox-label"},uZ=q({__name:"Checkbox",props:{value:{type:Boolean},disabled:{type:Boolean,default:!1}},emits:["update:value"],setup(e,{emit:t}){const n=e,o=t,l=s=>{n.disabled||o("update:value",s.target.checked)};return(s,a)=>(g(),b("label",{class:E(["checkbox",{checked:s.value,disabled:s.disabled}]),onChange:a[0]||(a[0]=i=>l(i))},[aZ,m("input",{class:"checkbox-original",type:"checkbox",checked:s.value},null,8,iZ),m("span",rZ,[We(s.$slots,"default",{},void 0,!0)])],34))}}),Jo=fe(uZ,[["__scopeId","data-v-714bf49f"]]),HR=e=>(Je("data-v-e8d419d8"),e=e(),xe(),e),cZ={class:"chart-style-panel"},dZ={class:"row"},RZ={class:"row"},fZ=HR(()=>m("div",{style:{width:"40%"}},"背景填充:",-1)),pZ={class:"row"},hZ=HR(()=>m("div",{style:{width:"40%"}},"文字颜色:",-1)),vZ={style:{width:"40%"}},mZ={class:"color-btn-wrap",style:{width:"100%"}},MZ=["onClick"],gZ={class:"preset-themes"},SZ=["onClick","onMouseenter"],OZ=q({__name:"index",setup(e){const t=Xe(),n=Ue(),{handleElement:o,handleElementId:l}=oe(t),{theme:s}=oe(n),a=o,i=_(!1),u=_(!1),r=_([-1,-1]),{addHistorySnapshot:c}=He(),d=_("#000"),R=_([]),p=_(""),f=_(!1),h=_(!1);Pe(o,()=>{if(!(!o.value||o.value.type!=="chart")){if(d.value=o.value.fill||"#fff",f.value=!1,h.value=!1,o.value.options){const{lineSmooth:I,stack:W}=o.value.options;I!==void 0&&(f.value=I),W!==void 0&&(h.value=W)}R.value=o.value.themeColors,p.value=o.value.textColor||"#333"}},{deep:!0,immediate:!0});const P=I=>{n.updateElement({id:l.value,props:I}),c()},O=I=>{i.value=!1,P({data:I.data,chartType:I.type})},L=I=>{P({fill:I})},S=I=>{const F={...o.value.options,...I};P({options:F})},X=(I,W)=>{const F={themeColors:R.value.map((C,Z)=>Z===W?I:C)};P(F)},M=()=>{const I={themeColors:[...R.value,s.value.themeColor]};P(I)},y=(I,W)=>{const F=I.slice(0,W+1);P({themeColors:F}),u.value=!1},Y=I=>{const W={themeColors:R.value.filter((F,C)=>C!==I)};P(W)},T=I=>{P({textColor:I})},V=()=>i.value=!0;return Jt.on(Ht.OPEN_CHART_DATA_EDITOR,V),mt(()=>{Jt.off(Ht.OPEN_CHART_DATA_EDITOR,V)}),(I,W)=>{const F=te("IconEdit"),C=te("IconCloseSmall"),Z=te("IconPlus"),K=ze("tooltip");return g(),b("div",cZ,[N(Ve,{class:"full-width-btn",onClick:W[0]||(W[0]=U=>i.value=!0)},{default:Q(()=>[N(F,{class:"btn-icon"}),Oe(" 编辑图表 ")]),_:1}),N(Ce),["bar","column","area","line"].includes(v(a).chartType)?(g(),b(ie,{key:0},[m("div",dZ,[N(Jo,{"onUpdate:value":W[1]||(W[1]=U=>S({stack:U})),value:h.value,style:{flex:"2"}},{default:Q(()=>[Oe("堆叠样式")]),_:1},8,["value"]),v(a).chartType==="line"?(g(),k(Jo,{key:0,"onUpdate:value":W[2]||(W[2]=U=>S({lineSmooth:U})),value:f.value,style:{flex:"3"}},{default:Q(()=>[Oe("使用平滑曲线")]),_:1},8,["value"])):j("",!0)]),N(Ce)],64)):j("",!0),m("div",RZ,[fZ,N(Ke,{trigger:"click",style:{width:"60%"}},{content:Q(()=>[N(Be,{modelValue:d.value,"onUpdate:modelValue":W[3]||(W[3]=U=>L(U))},null,8,["modelValue"])]),default:Q(()=>[N(ht,{color:d.value},null,8,["color"])]),_:1})]),m("div",pZ,[hZ,N(Ke,{trigger:"click",style:{width:"60%"}},{content:Q(()=>[N(Be,{modelValue:p.value,"onUpdate:modelValue":W[4]||(W[4]=U=>T(U))},null,8,["modelValue"])]),default:Q(()=>[N(ht,{color:p.value},null,8,["color"])]),_:1})]),N(Ce),(g(!0),b(ie,null,me(R.value,(U,G)=>(g(),b("div",{class:"row",key:G},[m("div",vZ,Me(G===0?"主题配色:":""),1),N(Ke,{trigger:"click",style:{width:"60%"}},{content:Q(()=>[N(Be,{modelValue:U,"onUpdate:modelValue":D=>X(D,G)},null,8,["modelValue","onUpdate:modelValue"])]),default:Q(()=>[m("div",mZ,[N(ht,{color:U},null,8,["color"]),G!==0?de((g(),b("div",{key:0,class:"delete-color-btn",onClick:Fe(D=>Y(G),["stop"])},[N(C)],8,MZ)),[[K,"删除"]]):j("",!0)])]),_:2},1024)]))),128)),N(dt,{class:"row",passive:""},{default:Q(()=>[N(Ke,{trigger:"click",open:u.value,"onUpdate:open":W[6]||(W[6]=U=>u.value=U),style:{width:"40%"}},{content:Q(()=>[m("div",gZ,[(g(!0),b(ie,null,me(v(NN),(U,G)=>(g(),b("div",{class:"preset-theme",key:G},[(g(!0),b(ie,null,me(U,(D,le)=>(g(),b("div",{class:E(["preset-theme-color",{select:r.value[0]===G&&le<=r.value[1]}]),key:D,style:ee({backgroundColor:D}),onClick:Re=>y(U,le),onMouseenter:Re=>r.value=[G,le],onMouseleave:W[5]||(W[5]=Re=>r.value=[-1,-1])},null,46,SZ))),128))]))),128))])]),default:Q(()=>[N(Ve,{first:"",style:{width:"100%"}},{default:Q(()=>[Oe("推荐主题")]),_:1})]),_:1},8,["open"]),N(Ve,{last:"",disabled:R.value.length>=10,style:{width:"60%"},onClick:W[7]||(W[7]=U=>M())},{default:Q(()=>[N(Z,{class:"btn-icon"}),Oe(" 添加主题色 ")]),_:1},8,["disabled"])]),_:1}),N(Ce),N(_l),N(tl,{visible:i.value,"onUpdate:visible":W[10]||(W[10]=U=>i.value=U),width:640},{default:Q(()=>[N(lZ,{type:v(a).chartType,data:v(a).data,onClose:W[8]||(W[8]=U=>i.value=!1),onSave:W[9]||(W[9]=U=>O(U))},null,8,["type","data"])]),_:1},8,["visible"])])}}}),PZ=fe(OZ,[["__scopeId","data-v-e8d419d8"]]),Ds=e=>(Je("data-v-eb30aaee"),e=e(),xe(),e),NZ={class:"table-style-panel"},XZ={class:"row"},TZ=Ds(()=>m("div",{style:{width:"40%"}},"行数:",-1)),VZ={class:"set-count",style:{width:"60%"}},yZ={class:"count-text"},LZ={class:"row"},bZ=Ds(()=>m("div",{style:{width:"40%"}},"列数:",-1)),IZ={class:"set-count",style:{width:"60%"}},YZ={class:"count-text"},WZ={class:"row theme-switch"},UZ=Ds(()=>m("div",{style:{width:"40%"}},"启用主题表格:",-1)),QZ={class:"switch-wrapper",style:{width:"60%"}},FZ={class:"row"},ZZ={class:"row"},AZ={class:"row"},KZ=Ds(()=>m("div",{style:{width:"40%"}},"主题颜色:",-1)),_Z=q({__name:"TableStylePanel",setup(e){const t=Ue(),{handleElement:n,handleElementId:o,selectedTableCells:l,availableFonts:s}=oe(Xe()),a=H(()=>t.theme.themeColor),i=["24px","28px","32px","36px","40px","44px","48px","56px","64px"],u=_({bold:!1,em:!1,underline:!1,strikethrough:!1,color:"#000",backcolor:"",fontsize:"24px",fontname:"微软雅黑",align:"left"}),r=_(),c=_(!1),d=_(0),R=_(0),p=_(0),f=_(0);Pe(n,()=>{!n.value||n.value.type!=="table"||(r.value=n.value.theme,c.value=!!r.value,d.value=n.value.data.length,R.value=n.value.data[0].length,p.value=n.value.data.length,f.value=n.value.data[0].length)},{deep:!0,immediate:!0});const{addHistorySnapshot:h}=He(),P=()=>{if(!n.value||n.value.type!=="table")return;let Y=0,T=0;if(l.value.length){const I=l.value[0];Y=+I.split("_")[0],T=+I.split("_")[1]}const V=n.value.data[Y][T].style;V?u.value={bold:!!V.bold,em:!!V.em,underline:!!V.underline,strikethrough:!!V.strikethrough,color:V.color||"#000",backcolor:V.backcolor||"",fontsize:V.fontsize||"24px",fontname:V.fontname||"微软雅黑",align:V.align||"left"}:u.value={bold:!1,em:!1,underline:!1,strikethrough:!1,color:"#000",backcolor:"",fontsize:"24px",fontname:"微软雅黑",align:"left"}};Ge(()=>{l.value.length&&P()}),Pe(l,P);const O=Y=>{t.updateElement({id:o.value,props:Y}),h()},L=Y=>{const T=n.value,V=JSON.parse(JSON.stringify(T.data));for(let I=0;I<V.length;I++)for(let W=0;W<V[I].length;W++)if(!l.value.length||l.value.includes(`${I}_${W}`)){const F=V[I][W].style||{};V[I][W].style={...F,...Y}}O({data:V}),P()},S=Y=>{if(!r.value)return;const T={...r.value,...Y};O({theme:T})},X=Y=>{if(Y){const T={theme:{color:a.value,rowHeader:!0,rowFooter:!1,colHeader:!1,colFooter:!1}};O(T)}else t.removeElementProps({id:o.value,propName:"theme"}),h()},M=Y=>{const T=n.value,V=T.data.length;if(Y>V){const I=new Array(R.value).fill({id:st(10),colspan:1,rowspan:1,text:""}),W=new Array(Y-V).fill(I),F=JSON.parse(JSON.stringify(T.data));F.push(...W),O({data:F})}else{const I=T.data.slice(0,Y);O({data:I})}},y=Y=>{const T=n.value,V=T.data[0].length;let I=T.data,W=T.colWidths.map(K=>K*T.width);if(Y>V){I=I.map(U=>{const G=new Array(Y-V).fill({id:st(10),colspan:1,rowspan:1,text:""});return U.push(...G),U});const K=new Array(Y-V).fill(100);W.push(...K)}else I=I.map(K=>K.slice(0,Y)),W=W.slice(0,Y);const F=W.reduce((K,U)=>K+U),C=W.map(K=>K/F);O({width:F,data:I,colWidths:C})};return(Y,T)=>{const V=te("IconFontSize"),I=te("IconAddText"),W=te("IconText"),F=te("IconFill"),C=te("IconTextBold"),Z=te("IconTextItalic"),K=te("IconTextUnderline"),U=te("IconStrikethrough"),G=te("IconAlignTextLeft"),D=te("IconAlignTextCenter"),le=te("IconAlignTextRight"),Re=te("IconAlignTextBoth"),ae=te("IconMinus"),Se=te("IconPlus"),J=ze("tooltip");return g(),b("div",NZ,[N(_i,{class:"row"},{default:Q(()=>[N(rt,{style:{width:"50%"},value:u.value.fontname,search:"",searchLabel:"搜索字体","onUpdate:value":T[0]||(T[0]=B=>L({fontname:B})),options:[...v(s),...v(bl)]},{icon:Q(()=>[N(V)]),_:1},8,["value","options"]),N(rt,{style:{width:"50%"},value:u.value.fontsize,search:"",searchLabel:"搜索字号","onUpdate:value":T[1]||(T[1]=B=>L({fontsize:B})),options:i.map(B=>({label:B,value:B}))},{icon:Q(()=>[N(I)]),_:1},8,["value","options"])]),_:1}),N(dt,{class:"row",passive:""},{default:Q(()=>[N(Ke,{trigger:"click",style:{width:"50%"}},{content:Q(()=>[N(Be,{modelValue:u.value.color,"onUpdate:modelValue":T[2]||(T[2]=B=>L({color:B}))},null,8,["modelValue"])]),default:Q(()=>[de((g(),k(nl,{first:"",color:u.value.color},{default:Q(()=>[N(W)]),_:1},8,["color"])),[[J,"文字颜色"]])]),_:1}),N(Ke,{trigger:"click",style:{width:"50%"}},{content:Q(()=>[N(Be,{modelValue:u.value.backcolor,"onUpdate:modelValue":T[3]||(T[3]=B=>L({backcolor:B}))},null,8,["modelValue"])]),default:Q(()=>[de((g(),k(nl,{last:"",color:u.value.backcolor},{default:Q(()=>[N(F)]),_:1},8,["color"])),[[J,"单元格填充"]])]),_:1})]),_:1}),N(dt,{class:"row"},{default:Q(()=>[de((g(),k(Lt,{style:{flex:"1"},checked:u.value.bold,onClick:T[4]||(T[4]=B=>L({bold:!u.value.bold}))},{default:Q(()=>[N(C)]),_:1},8,["checked"])),[[J,"加粗"]]),de((g(),k(Lt,{style:{flex:"1"},checked:u.value.em,onClick:T[5]||(T[5]=B=>L({em:!u.value.em}))},{default:Q(()=>[N(Z)]),_:1},8,["checked"])),[[J,"斜体"]]),de((g(),k(Lt,{style:{flex:"1"},checked:u.value.underline,onClick:T[6]||(T[6]=B=>L({underline:!u.value.underline}))},{default:Q(()=>[N(K)]),_:1},8,["checked"])),[[J,"下划线"]]),de((g(),k(Lt,{style:{flex:"1"},checked:u.value.strikethrough,onClick:T[7]||(T[7]=B=>L({strikethrough:!u.value.strikethrough}))},{default:Q(()=>[N(U)]),_:1},8,["checked"])),[[J,"删除线"]])]),_:1}),N(ks,{class:"row","button-style":"solid",value:u.value.align,"onUpdate:value":T[8]||(T[8]=B=>L({align:B}))},{default:Q(()=>[de((g(),k(xt,{value:"left",style:{flex:"1"}},{default:Q(()=>[N(G)]),_:1})),[[J,"左对齐"]]),de((g(),k(xt,{value:"center",style:{flex:"1"}},{default:Q(()=>[N(D)]),_:1})),[[J,"居中"]]),de((g(),k(xt,{value:"right",style:{flex:"1"}},{default:Q(()=>[N(le)]),_:1})),[[J,"右对齐"]]),de((g(),k(xt,{value:"justify",style:{flex:"1"}},{default:Q(()=>[N(Re)]),_:1})),[[J,"两端对齐"]])]),_:1},8,["value"]),N(Ce),N(_l,{fixed:!0}),N(Ce),m("div",XZ,[TZ,m("div",VZ,[N(Ve,{class:"btn",disabled:d.value<=1,onClick:T[9]||(T[9]=B=>M(d.value-1))},{default:Q(()=>[N(ae)]),_:1},8,["disabled"]),m("div",yZ,Me(d.value),1),N(Ve,{class:"btn",disabled:d.value>=30,onClick:T[10]||(T[10]=B=>M(d.value+1))},{default:Q(()=>[N(Se)]),_:1},8,["disabled"])])]),m("div",LZ,[bZ,m("div",IZ,[N(Ve,{class:"btn",disabled:R.value<=1,onClick:T[11]||(T[11]=B=>y(R.value-1))},{default:Q(()=>[N(ae)]),_:1},8,["disabled"]),m("div",YZ,Me(R.value),1),N(Ve,{class:"btn",disabled:R.value>=30,onClick:T[12]||(T[12]=B=>y(R.value+1))},{default:Q(()=>[N(Se)]),_:1},8,["disabled"])])]),N(Ce),m("div",WZ,[UZ,m("div",QZ,[N(co,{value:c.value,"onUpdate:value":T[13]||(T[13]=B=>X(B))},null,8,["value"])])]),r.value?(g(),b(ie,{key:0},[m("div",FZ,[N(Jo,{"onUpdate:value":T[14]||(T[14]=B=>S({rowHeader:B})),value:r.value.rowHeader,style:{flex:"1"}},{default:Q(()=>[Oe("标题行")]),_:1},8,["value"]),N(Jo,{"onUpdate:value":T[15]||(T[15]=B=>S({rowFooter:B})),value:r.value.rowFooter,style:{flex:"1"}},{default:Q(()=>[Oe("汇总行")]),_:1},8,["value"])]),m("div",ZZ,[N(Jo,{"onUpdate:value":T[16]||(T[16]=B=>S({colHeader:B})),value:r.value.colHeader,style:{flex:"1"}},{default:Q(()=>[Oe("第一列")]),_:1},8,["value"]),N(Jo,{"onUpdate:value":T[17]||(T[17]=B=>S({colFooter:B})),value:r.value.colFooter,style:{flex:"1"}},{default:Q(()=>[Oe("最后一列")]),_:1},8,["value"])]),m("div",AZ,[KZ,N(Ke,{trigger:"click",style:{width:"60%"}},{content:Q(()=>[N(Be,{modelValue:r.value.color,"onUpdate:modelValue":T[18]||(T[18]=B=>S({color:B}))},null,8,["modelValue"])]),default:Q(()=>[N(ht,{color:r.value.color},null,8,["color"])]),_:1})])],64)):j("",!0)])}}}),HZ=fe(_Z,[["__scopeId","data-v-eb30aaee"]]),CR=e=>(Je("data-v-c6a0fce0"),e=e(),xe(),e),CZ={class:"latex-style-panel"},GZ={class:"row"},EZ={class:"row"},wZ=CR(()=>m("div",{style:{width:"40%"}},"颜色:",-1)),kZ={class:"row"},JZ=CR(()=>m("div",{style:{width:"40%"}},"粗细:",-1)),xZ=q({__name:"LatexStylePanel",setup(e){const t=Ue(),{handleElement:n}=oe(Xe()),o=n,l=_(!1),{addHistorySnapshot:s}=He(),a=r=>{n.value&&(t.updateElement({id:n.value.id,props:r}),s())},i=r=>{a({path:r.path,latex:r.latex,width:r.w,height:r.h,viewBox:[r.w,r.h]})},u=()=>l.value=!0;return Jt.on(Ht.OPEN_LATEX_EDITOR,u),mt(()=>{Jt.off(Ht.OPEN_LATEX_EDITOR,u)}),(r,c)=>(g(),b("div",CZ,[m("div",GZ,[N(Ve,{style:{flex:"1"},onClick:c[0]||(c[0]=d=>l.value=!0)},{default:Q(()=>[Oe("编辑 LaTeX")]),_:1})]),N(Ce),m("div",EZ,[wZ,N(Ke,{trigger:"click",style:{width:"60%"}},{content:Q(()=>[N(Be,{modelValue:v(o).color,"onUpdate:modelValue":c[1]||(c[1]=d=>a({color:d}))},null,8,["modelValue"])]),default:Q(()=>[N(ht,{color:v(o).color},null,8,["color"])]),_:1})]),m("div",kZ,[JZ,N(en,{min:1,max:3,value:v(o).strokeWidth,"onUpdate:value":c[2]||(c[2]=d=>a({strokeWidth:d})),style:{width:"60%"}},null,8,["value"])]),N(tl,{visible:l.value,"onUpdate:visible":c[5]||(c[5]=d=>l.value=d),width:880},{default:Q(()=>[N(WR,{value:v(o).latex,onClose:c[3]||(c[3]=d=>l.value=!1),onUpdate:c[4]||(c[4]=d=>{i(d),l.value=!1})},null,8,["value"])]),_:1},8,["visible"])]))}}),$Z=fe(xZ,[["__scopeId","data-v-c6a0fce0"]]),GR=e=>(Je("data-v-4562458f"),e=e(),xe(),e),DZ={class:"video-style-panel"},BZ=GR(()=>m("div",{class:"title"},"视频预览封面",-1)),zZ={class:"background-image-wrapper"},jZ={class:"background-image"},qZ={class:"row"},e2={class:"row switch-row"},t2=GR(()=>m("div",{style:{width:"40%"}},"自动播放:",-1)),n2={class:"switch-wrapper",style:{width:"60%"}},o2=q({__name:"VideoStylePanel",setup(e){const t=Ue(),{handleElement:n}=oe(Xe()),o=n,{addHistorySnapshot:l}=He(),s=i=>{n.value&&(t.updateElement({id:n.value.id,props:i}),l())},a=i=>{const u=i[0];u&&Uo(u).then(r=>s({poster:r}))};return(i,u)=>{const r=te("IconPlus");return g(),b("div",DZ,[BZ,m("div",zZ,[N(Ql,{onChange:u[0]||(u[0]=c=>a(c))},{default:Q(()=>[m("div",jZ,[m("div",{class:"content",style:ee({backgroundImage:v(o).poster?`url(${v(o).poster})`:""})},[N(r)],4)])]),_:1})]),m("div",qZ,[N(Ve,{style:{flex:"1"},onClick:u[1]||(u[1]=c=>s({poster:""}))},{default:Q(()=>[Oe("重置封面")]),_:1})]),m("div",e2,[t2,m("div",n2,[N(co,{value:v(o).autoplay,"onUpdate:value":u[2]||(u[2]=c=>s({autoplay:c}))},null,8,["value"])])])])}}}),l2=fe(o2,[["__scopeId","data-v-4562458f"]]),Hi=e=>(Je("data-v-f70950aa"),e=e(),xe(),e),s2={class:"audio-style-panel"},a2={class:"row"},i2=Hi(()=>m("div",{style:{width:"40%"}},"图标颜色:",-1)),r2={class:"row switch-row"},u2=Hi(()=>m("div",{style:{width:"40%"}},"自动播放:",-1)),c2={class:"switch-wrapper",style:{width:"60%"}},d2={class:"row switch-row"},R2=Hi(()=>m("div",{style:{width:"40%"}},"循环播放:",-1)),f2={class:"switch-wrapper",style:{width:"60%"}},p2=q({__name:"AudioStylePanel",setup(e){const t=Ue(),{handleElement:n}=oe(Xe()),o=n,{addHistorySnapshot:l}=He(),s=a=>{n.value&&(t.updateElement({id:n.value.id,props:a}),l())};return(a,i)=>(g(),b("div",s2,[m("div",a2,[i2,N(Ke,{trigger:"click",style:{width:"60%"}},{content:Q(()=>[N(Be,{modelValue:v(o).color,"onUpdate:modelValue":i[0]||(i[0]=u=>s({color:u}))},null,8,["modelValue"])]),default:Q(()=>[N(ht,{color:v(o).color},null,8,["color"])]),_:1})]),m("div",r2,[u2,m("div",c2,[N(co,{value:v(o).autoplay,"onUpdate:value":i[1]||(i[1]=u=>s({autoplay:u}))},null,8,["value"])])]),m("div",d2,[R2,m("div",f2,[N(co,{value:v(o).loop,"onUpdate:value":i[2]||(i[2]=u=>s({loop:u}))},null,8,["value"])])])]))}}),h2=fe(p2,[["__scopeId","data-v-f70950aa"]]),Bs=e=>(Je("data-v-54170157"),e=e(),xe(),e),v2={class:"multi-style-panel"},m2={class:"row"},M2=Bs(()=>m("div",{style:{width:"40%"}},"填充颜色:",-1)),g2={class:"row"},S2=Bs(()=>m("div",{style:{width:"40%"}},"边框样式:",-1)),O2={class:"row"},P2=Bs(()=>m("div",{style:{width:"40%"}},"边框颜色:",-1)),N2={class:"row"},X2=Bs(()=>m("div",{style:{width:"40%"}},"边框粗细:",-1)),T2=q({__name:"MultiStylePanel",setup(e){const t=Ue(),{richTextAttrs:n,availableFonts:o,activeElementList:l}=oe(Xe()),{addHistorySnapshot:s}=He(),a=(p,f)=>{t.updateElement({id:p,props:f}),s()},i=["24px","28px","32px","36px","40px","44px","48px","56px","64px","72px","80px","88px","96px","108px","120px","132px","144px","152px","160px","176px","192px","208px","224px","240px"],u=_("#fff"),r=_({width:0,color:"#fff",style:"solid"}),c=p=>{for(const f of l.value){if((f.type==="text"||f.type==="shape"||f.type==="chart")&&a(f.id,{fill:p}),f.type==="table"){const h=JSON.parse(JSON.stringify(f.data));for(let P=0;P<h.length;P++)for(let O=0;O<h[P].length;O++){const L=h[P][O].style||{};h[P][O].style={...L,backcolor:p}}a(f.id,{data:h})}f.type==="elf"&&f.subtype==="elf-audio"&&a(f.id,{color:p})}u.value=p},d=p=>{for(const f of l.value){if(f.type==="text"||f.type==="image"||f.type==="shape"||f.type==="table"||f.type==="chart"){const P={outline:{...f.outline||{width:2,color:"#000",style:"solid"},...p}};a(f.id,P)}f.type==="line"&&a(f.id,p)}r.value={...r.value,...p}},R=(p,f)=>{var h;for(const P of l.value){if((P.type==="text"||P.type==="shape"&&((h=P.text)!=null&&h.content))&&Jt.emit(Ht.RICH_TEXT_COMMAND,{target:P.id,action:{command:p,value:f}}),P.type==="table"){const O=JSON.parse(JSON.stringify(P.data));for(let L=0;L<O.length;L++)for(let S=0;S<O[L].length;S++){const X=O[L][S].style||{};O[L][S].style={...X,[p]:f}}a(P.id,{data:O})}P.type==="latex"&&p==="color"&&a(P.id,{color:f})}};return(p,f)=>{const h=te("IconFontSize"),P=te("IconAddText"),O=te("IconText"),L=te("IconHighLight"),S=te("IconAlignTextLeft"),X=te("IconAlignTextCenter"),M=te("IconAlignTextRight"),y=te("IconAlignTextBoth"),Y=ze("tooltip");return g(),b("div",v2,[m("div",m2,[M2,N(Ke,{trigger:"click",style:{width:"60%"}},{content:Q(()=>[N(Be,{modelValue:u.value,"onUpdate:modelValue":f[0]||(f[0]=T=>c(T))},null,8,["modelValue"])]),default:Q(()=>[N(ht,{color:u.value},null,8,["color"])]),_:1})]),N(Ce),m("div",g2,[S2,N(rt,{style:{width:"60%"},value:r.value.style||"","onUpdate:value":f[1]||(f[1]=T=>d({style:T})),options:[{label:"实线边框",value:"solid"},{label:"虚线边框",value:"dashed"},{label:"点线边框",value:"dotted"}]},null,8,["value"])]),m("div",O2,[P2,N(Ke,{trigger:"click",style:{width:"60%"}},{content:Q(()=>[N(Be,{modelValue:r.value.color,"onUpdate:modelValue":f[2]||(f[2]=T=>d({color:T}))},null,8,["modelValue"])]),default:Q(()=>[N(ht,{color:r.value.color||"#000"},null,8,["color"])]),_:1})]),m("div",N2,[X2,N(en,{value:r.value.width||0,"onUpdate:value":f[3]||(f[3]=T=>d({width:T})),style:{width:"60%"}},null,8,["value"])]),N(Ce),N(_i,{class:"row"},{default:Q(()=>[N(rt,{style:{width:"60%"},value:v(n).fontname,search:"",searchLabel:"搜索字体","onUpdate:value":f[4]||(f[4]=T=>R("fontname",T)),options:[...v(o),...v(bl)]},{icon:Q(()=>[N(h)]),_:1},8,["value","options"]),N(rt,{style:{width:"40%"},value:v(n).fontsize,search:"",searchLabel:"搜索字号","onUpdate:value":f[5]||(f[5]=T=>R("fontsize",T)),options:i.map(T=>({label:T,value:T}))},{icon:Q(()=>[N(P)]),_:1},8,["value","options"])]),_:1}),N(dt,{class:"row",passive:""},{default:Q(()=>[N(Ke,{trigger:"click",style:{width:"30%"}},{content:Q(()=>[N(Be,{modelValue:v(n).color,"onUpdate:modelValue":f[6]||(f[6]=T=>R("color",T))},null,8,["modelValue"])]),default:Q(()=>[de((g(),k(nl,{first:"",color:v(n).color},{default:Q(()=>[N(O)]),_:1},8,["color"])),[[Y,"文字颜色"]])]),_:1}),N(Ke,{trigger:"click",style:{width:"30%"}},{content:Q(()=>[N(Be,{modelValue:v(n).backcolor,"onUpdate:modelValue":f[7]||(f[7]=T=>R("backcolor",T))},null,8,["modelValue"])]),default:Q(()=>[de((g(),k(nl,{color:v(n).backcolor},{default:Q(()=>[N(L)]),_:1},8,["color"])),[[Y,"文字高亮"]])]),_:1}),de((g(),k(Ve,{class:"font-size-btn",style:{width:"20%"},onClick:f[8]||(f[8]=T=>R("fontsize-add","2"))},{default:Q(()=>[N(h),Oe("+")]),_:1})),[[Y,"增大字号"]]),de((g(),k(Ve,{last:"",class:"font-size-btn",style:{width:"20%"},onClick:f[9]||(f[9]=T=>R("fontsize-reduce","2"))},{default:Q(()=>[N(h),Oe("-")]),_:1})),[[Y,"减小字号"]])]),_:1}),N(ks,{class:"row","button-style":"solid",value:v(n).align,"onUpdate:value":f[10]||(f[10]=T=>R("align",T))},{default:Q(()=>[de((g(),k(xt,{value:"left",style:{flex:"1"}},{default:Q(()=>[N(S)]),_:1})),[[Y,"左对齐"]]),de((g(),k(xt,{value:"center",style:{flex:"1"}},{default:Q(()=>[N(X)]),_:1})),[[Y,"居中"]]),de((g(),k(xt,{value:"right",style:{flex:"1"}},{default:Q(()=>[N(M)]),_:1})),[[Y,"右对齐"]]),de((g(),k(xt,{value:"justify",style:{flex:"1"}},{default:Q(()=>[N(y)]),_:1})),[[Y,"两端对齐"]])]),_:1},8,["value"])])}}}),V2=fe(T2,[["__scopeId","data-v-54170157"]]),y2={},L2={class:"CloudCoachStylePanel"};function b2(e,t){return g(),b("div",L2,"云教练")}const I2=fe(y2,[["render",b2]]),Y2={class:"element-style-panel"},W2=q({__name:"index",setup(e){const t={[ct.TEXT]:bQ,[ct.IMAGE]:rF,[ct.SHAPE]:yF,[ct.LINE]:CF,[ct.CHART]:PZ,[ct.TABLE]:HZ,[ct.LATEX]:$Z,[ct.ELF]:null},n={[xo.AUDIO]:h2,[xo.VIDEO]:l2,[xo.SING_PLAY]:I2},{activeElementIdList:o,activeElementList:l,handleElement:s,activeGroupElementId:a}=oe(Xe()),i=H(()=>{if(o.value.length>1){if(!a.value)return V2;const u=l.value.find(r=>r.id===a.value);return u&&(t[u.type]||n[u.subtype])||null}return s.value&&(t[s.value.type]||n[s.value.subtype])||null});return(u,r)=>(g(),b("div",Y2,[(g(),k(yt(i.value)))]))}}),zs=e=>(Je("data-v-02afcbeb"),e=e(),xe(),e),U2={class:"element-positopn-panel"},Q2=zs(()=>m("div",{class:"title"},"层级:",-1)),F2=zs(()=>m("div",{class:"title"},"对齐:",-1)),Z2={class:"row"},A2=zs(()=>m("div",{style:{width:"10%"}},null,-1)),K2={key:0,class:"row"},_2={key:1,style:{width:"10%"}},H2={class:"row"},C2=zs(()=>m("div",{style:{width:"7%"}},null,-1)),G2=q({__name:"ElementPositionPanel",setup(e){const t=Ue(),{handleElement:n,handleElementId:o}=oe(Xe()),l=_(0),s=_(0),a=_(0),i=_(0),u=_(0),r=_(!1),c=H(()=>n.value&&bd[n.value.type]||20),d=H(()=>{var T;return((T=n.value)==null?void 0:T.type)==="text"&&!n.value.vertical}),R=H(()=>{var T;return((T=n.value)==null?void 0:T.type)==="text"&&n.value.vertical});Pe(n,()=>{n.value&&(l.value=vt.round(n.value.left,1),s.value=vt.round(n.value.top,1),r.value="fixedRatio"in n.value&&!!n.value.fixedRatio,n.value.type!=="line"&&(a.value=vt.round(n.value.width,1),i.value=vt.round(n.value.height,1),u.value="rotate"in n.value&&n.value.rotate!==void 0?vt.round(n.value.rotate,1):0))},{deep:!0,immediate:!0});const{orderElement:p}=_s(),{alignElementToCanvas:f}=Ti(),{addHistorySnapshot:h}=He(),P=T=>{const V={left:T};t.updateElement({id:o.value,props:V}),h()},O=T=>{const V={top:T};t.updateElement({id:o.value,props:V}),h()},L=(T,V)=>{if(n.value&&n.value.type==="shape"&&"pathFormula"in n.value&&n.value.pathFormula){const I=sl[n.value.pathFormula];let W="";return"editable"in I&&I.editable?W=I.formula(T,V,n.value.keypoints):W=I.formula(T,V),{viewBox:[T,V],path:W}}return null},S=T=>{if(!n.value||n.value.type==="line"||R.value)return;let V=i.value;if(r.value){const F=a.value/i.value;V=T/F<c.value?c.value:T/F}let I={width:T,height:V};const W=L(T,V);W&&(I={width:T,height:V,...W}),t.updateElement({id:o.value,props:I}),h()},X=T=>{if(!n.value||n.value.type==="line"||n.value.type==="table"||d.value)return;let V=a.value;if(r.value){const F=a.value/i.value;V=T*F<c.value?c.value:T*F}let I={width:V,height:T};const W=L(V,T);W&&(I={width:V,height:T,...W}),t.updateElement({id:o.value,props:I}),h()},M=T=>{const V={rotate:T};t.updateElement({id:o.value,props:V}),h()},y=T=>{const V={fixedRatio:T};t.updateElement({id:o.value,props:V}),h()},Y=T=>{let V=Math.floor(u.value/45)*45;T==="+"?V=V+45:T==="-"&&(V=V-45),V<-180&&(V=-180),V>180&&(V=180);const I={rotate:V};t.updateElement({id:o.value,props:I}),h()};return(T,V)=>{const I=te("IconSendToBack"),W=te("IconBringToFrontOne"),F=te("IconBringToFront"),C=te("IconSentToBack"),Z=te("IconAlignLeft"),K=te("IconAlignVertically"),U=te("IconAlignRight"),G=te("IconAlignTop"),D=te("IconAlignHorizontally"),le=te("IconAlignBottom"),Re=te("IconLock"),ae=te("IconUnlock"),Se=te("IconRotate"),J=ze("tooltip");return g(),b("div",U2,[Q2,N(dt,{class:"row"},{default:Q(()=>[N(Ve,{style:{flex:"1"},onClick:V[0]||(V[0]=B=>v(p)(v(n),v(Vt).TOP))},{default:Q(()=>[N(I,{class:"btn-icon"}),Oe(" 置顶")]),_:1}),N(Ve,{style:{flex:"1"},onClick:V[1]||(V[1]=B=>v(p)(v(n),v(Vt).BOTTOM))},{default:Q(()=>[N(W,{class:"btn-icon"}),Oe(" 置底")]),_:1})]),_:1}),N(dt,{class:"row"},{default:Q(()=>[N(Ve,{style:{flex:"1"},onClick:V[2]||(V[2]=B=>v(p)(v(n),v(Vt).UP))},{default:Q(()=>[N(F,{class:"btn-icon"}),Oe(" 上移")]),_:1}),N(Ve,{style:{flex:"1"},onClick:V[3]||(V[3]=B=>v(p)(v(n),v(Vt).DOWN))},{default:Q(()=>[N(C,{class:"btn-icon"}),Oe(" 下移")]),_:1})]),_:1}),N(Ce),F2,N(dt,{class:"row"},{default:Q(()=>[de((g(),k(Ve,{style:{flex:"1"},onClick:V[4]||(V[4]=B=>v(f)(v(De).LEFT))},{default:Q(()=>[N(Z)]),_:1})),[[J,"左对齐"]]),de((g(),k(Ve,{style:{flex:"1"},onClick:V[5]||(V[5]=B=>v(f)(v(De).HORIZONTAL))},{default:Q(()=>[N(K)]),_:1})),[[J,"水平居中"]]),de((g(),k(Ve,{style:{flex:"1"},onClick:V[6]||(V[6]=B=>v(f)(v(De).RIGHT))},{default:Q(()=>[N(U)]),_:1})),[[J,"右对齐"]])]),_:1}),N(dt,{class:"row"},{default:Q(()=>[de((g(),k(Ve,{style:{flex:"1"},onClick:V[7]||(V[7]=B=>v(f)(v(De).TOP))},{default:Q(()=>[N(G)]),_:1})),[[J,"上对齐"]]),de((g(),k(Ve,{style:{flex:"1"},onClick:V[8]||(V[8]=B=>v(f)(v(De).VERTICAL))},{default:Q(()=>[N(D)]),_:1})),[[J,"垂直居中"]]),de((g(),k(Ve,{style:{flex:"1"},onClick:V[9]||(V[9]=B=>v(f)(v(De).BOTTOM))},{default:Q(()=>[N(le)]),_:1})),[[J,"下对齐"]])]),_:1}),N(Ce),m("div",Z2,[N(en,{step:5,value:l.value,"onUpdate:value":V[10]||(V[10]=B=>P(B)),style:{width:"45%"}},{prefix:Q(()=>[Oe(" 水平: ")]),_:1},8,["value"]),A2,N(en,{step:5,value:s.value,"onUpdate:value":V[11]||(V[11]=B=>O(B)),style:{width:"45%"}},{prefix:Q(()=>[Oe(" 垂直: ")]),_:1},8,["value"])]),v(n).type!=="line"?(g(),b("div",K2,[N(en,{min:c.value,max:1500,step:5,disabled:R.value,value:a.value,"onUpdate:value":V[12]||(V[12]=B=>S(B)),style:{width:"45%"}},{prefix:Q(()=>[Oe(" 宽度: ")]),_:1},8,["min","disabled","value"]),["image","shape"].includes(v(n).type)||["elf-audio"].includes(v(n).subtype)?(g(),b(ie,{key:0},[r.value?de((g(),k(Re,{key:0,style:{width:"10%"},class:"icon-btn active",onClick:V[13]||(V[13]=B=>y(!1))},null,512)),[[J,"解除宽高比锁定"]]):de((g(),k(ae,{key:1,style:{width:"10%"},class:"icon-btn",onClick:V[14]||(V[14]=B=>y(!0))},null,512)),[[J,"宽高比锁定"]])],64)):(g(),b("div",_2)),N(en,{min:c.value,max:800,step:5,disabled:d.value||v(n).type==="table",value:i.value,"onUpdate:value":V[15]||(V[15]=B=>X(B)),style:{width:"45%"}},{prefix:Q(()=>[Oe(" 高度: ")]),_:1},8,["min","disabled","value"])])):j("",!0),["line","elf"].includes(v(n).type)?j("",!0):(g(),b(ie,{key:1},[N(Ce),m("div",H2,[N(en,{min:-180,max:180,step:5,value:u.value,"onUpdate:value":V[16]||(V[16]=B=>M(B)),style:{width:"45%"}},{prefix:Q(()=>[Oe(" 旋转: ")]),_:1},8,["value"]),C2,m("div",{class:"text-btn",onClick:V[17]||(V[17]=B=>Y("-")),style:{width:"24%"}},[N(Se),Oe(" -45°")]),m("div",{class:"text-btn",onClick:V[18]||(V[18]=B=>Y("+")),style:{width:"24%"}},[N(Se,{style:{transform:"rotateY(180deg)"}}),Oe(" +45°")])])],64))])}}}),E2=fe(G2,[["__scopeId","data-v-02afcbeb"]]),ER=e=>(Je("data-v-1a98ad93"),e=e(),xe(),e),w2={class:"element-animation-panel"},k2={key:0,class:"element-animation"},J2={class:"type-title"},x2={class:"pool-item-wrapper"},$2=["onMouseenter","onClick"],D2={key:0,class:"mask"},B2={key:1,class:"tip"},z2={class:"sequence-content"},j2={class:"index"},q2={class:"text"},eA={class:"handler"},tA={key:0,class:"configs"},nA={class:"config-item"},oA=ER(()=>m("div",{style:{width:"35%"}},"持续时长:",-1)),lA={class:"config-item"},sA=ER(()=>m("div",{style:{width:"35%"}},"触发方式:",-1)),aA={class:"config-item"},iA=q({__name:"ElementAnimationPanel",setup(e){const t={};for(const Z of er)for(const K of Z.children)t[K.value]=K.name;for(const Z of tr)for(const K of Z.children)t[K.value]=K.name;for(const Z of nr)for(const K of Z.children)t[K.value]=K.name;const n=["in","out","attention"],o=Ue(),{handleElement:l,handleElementId:s}=oe(Xe()),{currentSlide:a,formatedAnimations:i,currentSlideAnimations:u}=oe(o),r=[{key:"in",label:"入场",color:"#68a490"},{key:"out",label:"退场",color:"#d86344"},{key:"attention",label:"强调",color:"#e8b76a"}],c=_("in"),d=_(!1);Pe(()=>s.value,()=>{p.value=!1});const R=_(""),p=_(!1),{addHistorySnapshot:f}=He(),h=H(()=>{const Z=[];for(let K=0;K<i.value.length;K++){const U=i.value[K];for(let G=0;G<U.animations.length;G++){const D=U.animations[G],le=a.value.elements.find(Se=>Se.id===D.elId);if(!le)continue;const Re=ml[le.type],ae=t[D.effect];Z.push({...D,index:G===0?K+1:"",elType:Re,animationEffect:ae})}}return Z}),P=H(()=>u.value.filter(U=>U.elId===s.value)||[]),O=Z=>{const K=u.value.filter(U=>U.id!==Z);o.updateSlide({animations:K}),f()},L=Z=>{const{newIndex:K,oldIndex:U}=Z;if(K===void 0||U===void 0||K===U)return;const G=JSON.parse(JSON.stringify(u.value)),D=G[U];G.splice(U,1),G.splice(K,0,D),o.updateSlide({animations:G}),f()},S=(Z,K,U)=>{const G=document.querySelector(`#editable-element-${Z} [class^=editable-element-]`);if(G){const D=`${Zo}${K}`;document.documentElement.style.setProperty("--animate-duration",`${U}ms`),G.classList.add(`${Zo}animated`,D);const le=()=>{document.documentElement.style.removeProperty("--animate-duration"),G.classList.remove(`${Zo}animated`,D)};G.addEventListener("animationend",le,{once:!0})}},X=async()=>{d.value=!d.value;for(let Z=0;Z<h.value.length&&d.value;Z++){const K=h.value[Z];K.index!==1&&K.trigger!=="meantime"&&await new Promise(U=>setTimeout(U,K.duration+100)),S(K.elId,K.effect,K.duration),Z>=h.value.length-1&&(d.value=!1)}},M=(Z,K)=>{if(K<100||K>5e3)return;const U=u.value.map(G=>G.id===Z?{...G,duration:K}:G);o.updateSlide({animations:U}),f()},y=(Z,K)=>{const U=u.value.map(G=>G.id===Z?{...G,trigger:K}:G);o.updateSlide({animations:U}),f()},Y=(Z,K)=>{const U=u.value.map(le=>le.id===T.value?{...le,type:Z,effect:K}:le);o.updateSlide({animations:U}),p.value=!1,f();const G=u.value.find(le=>le.elId===s.value),D=(G==null?void 0:G.duration)||na;setTimeout(()=>{S(s.value,K,D)},0)},T=_(""),V=(Z,K)=>{if(T.value){Y(Z,K);return}const U=JSON.parse(JSON.stringify(u.value));U.push({id:st(10),elId:s.value,type:Z,effect:K,duration:na,trigger:nh}),o.updateSlide({animations:U}),p.value=!1,f(),setTimeout(()=>{S(s.value,K,na)},0)},I=_(!1),W=Z=>{Z?setTimeout(()=>I.value=!0,600):I.value=!1},F=Z=>{p.value=!0,T.value=Z,W(!0)},C={in:er,out:tr,attention:nr};return(Z,K)=>{const U=te("IconEffects"),G=te("IconClick"),D=te("IconPlayOne"),le=te("IconCloseSmall"),Re=ze("tooltip");return g(),b("div",w2,[v(l)?(g(),b("div",k2,[N(Ke,{trigger:"click",value:p.value,"onUpdate:value":[K[3]||(K[3]=ae=>p.value=ae),K[4]||(K[4]=ae=>W(ae))],style:{width:"100%"}},{content:Q(()=>[N(uo,{tabs:r,value:c.value,"onUpdate:value":K[0]||(K[0]=ae=>c.value=ae),tabsStyle:{marginBottom:"20px"},tabStyle:{width:"33.333%"},spaceAround:""},null,8,["value"]),(g(),b(ie,null,me(n,ae=>(g(),b(ie,null,[c.value===ae?(g(),b("div",{class:E(["animation-pool",ae]),key:ae},[(g(!0),b(ie,null,me(C[ae],Se=>(g(),b("div",{class:"pool-type",key:Se.name},[m("div",J2,Me(Se.name)+":",1),m("div",x2,[(g(!0),b(ie,null,me(Se.children,J=>(g(),b("div",{class:"pool-item",key:J.name,onMouseenter:B=>R.value=J.value,onMouseleave:K[1]||(K[1]=B=>R.value=""),onClick:B=>V(ae,J.value)},[m("div",{class:E(["animation-box",[`${v(Zo)}animated`,`${v(Zo)}fast`,R.value===J.value&&`${v(Zo)}${J.value}`]])},Me(J.name),3)],40,$2))),128))])]))),128)),I.value?j("",!0):(g(),b("div",D2))],2)):j("",!0)],64))),64))]),default:Q(()=>[N(Ve,{class:"element-animation-btn",onClick:K[2]||(K[2]=ae=>T.value="")},{default:Q(()=>[N(U,{style:{"margin-right":"5px"}}),Oe(" 添加动画 ")]),_:1})]),_:1},8,["value"])])):(g(),b("div",B2,[N(G,{style:{"margin-right":"5px"}}),Oe(" 选中画布中的元素添加动画")])),N(Ce),N(v(Pc),{class:"animation-sequence",modelValue:h.value,animation:200,scroll:!0,scrollSensitivity:50,handle:".sequence-content",itemKey:"id",onEnd:L},{item:Q(({element:ae})=>{var Se,J;return[m("div",{class:E(["sequence-item",[ae.type,{active:((Se=v(l))==null?void 0:Se.id)===ae.elId}]])},[m("div",z2,[m("div",j2,Me(ae.index),1),m("div",q2,"【"+Me(ae.elType)+"】"+Me(ae.animationEffect),1),m("div",eA,[de(N(D,{class:"handler-btn",onClick:B=>S(ae.elId,ae.effect,ae.duration)},null,8,["onClick"]),[[Re,"预览"]]),de(N(le,{class:"handler-btn",onClick:B=>O(ae.id)},null,8,["onClick"]),[[Re,"删除"]])])]),((J=P.value[0])==null?void 0:J.elId)===ae.elId?(g(),b("div",tA,[N(Ce,{margin:16}),m("div",nA,[oA,N(en,{min:500,max:3e3,step:500,value:ae.duration,"onUpdate:value":B=>M(ae.id,B),style:{width:"65%"}},null,8,["value","onUpdate:value"])]),m("div",lA,[sA,N(rt,{value:ae.trigger,"onUpdate:value":B=>y(ae.id,B),style:{width:"65%"},options:[{label:"主动触发",value:"click"},{label:"与上一动画同时",value:"meantime"},{label:"上一动画之后",value:"auto"}]},null,8,["value","onUpdate:value"])]),m("div",aA,[N(Ve,{style:{width:"100%"},onClick:B=>F(ae.id)},{default:Q(()=>[Oe("更换动画")]),_:2},1032,["onClick"])])])):j("",!0)],2)]}),_:1},8,["modelValue"]),h.value.length>=2?(g(),b(ie,{key:2},[N(Ce),N(Ve,{onClick:K[5]||(K[5]=ae=>X())},{default:Q(()=>[Oe(Me(d.value?"停止预览":"预览全部"),1)]),_:1})],64)):j("",!0)])}}}),rA=fe(iA,[["__scopeId","data-v-1a98ad93"]]),uA=[{background:"#ffffff",fontColor:"#333333",fontname:"Microsoft Yahei",colors:["#5b9bd5","#ed7d31","#a5a5a5","#ffc000","#4472c4","#70ad47"]},{background:"#ffffff",fontColor:"#333333",fontname:"Microsoft Yahei",colors:["#83992a","#3c9670","#44709d","#a23b32","#d87728","#deb340"]},{background:"#ffffff",fontColor:"#333333",fontname:"Microsoft Yahei",colors:["#e48312","#bd582c","#865640","#9b8357","#c2bc80","#94a088"]},{background:"#ffffff",fontColor:"#333333",fontname:"Microsoft Yahei",colors:["#bdc8df","#003fa9","#f5ba00","#ff7567","#7676d9","#923ffc"]},{background:"#ffffff",fontColor:"#333333",fontname:"Microsoft Yahei",colors:["#90c225","#54a121","#e6b91e","#e86618","#c42f19","#918756"]},{background:"#ffffff",fontColor:"#333333",fontname:"Microsoft Yahei",colors:["#1cade4","#2683c6","#27ced7","#42ba97","#3e8853","#62a39f"]},{background:"#e9efd6",fontColor:"#333333",fontname:"Microsoft Yahei",colors:["#a5300f","#de7e18","#9f8351","#728653","#92aa4c","#6aac91"]},{background:"#17444e",fontColor:"#ffffff",fontname:"Microsoft Yahei",colors:["#b01513","#ea6312","#e6b729","#6bab90","#55839a","#9e5d9d"]},{background:"#36234d",fontColor:"#ffffff",fontname:"Microsoft Yahei",colors:["#b31166","#e33d6f","#e45f3c","#e9943a","#9b6bf2","#d63cd0"]},{background:"#247fad",fontColor:"#ffffff",fontname:"Microsoft Yahei",colors:["#052f61","#a50e82","#14967c","#6a9e1f","#e87d37","#c62324"]},{background:"#103f55",fontColor:"#ffffff",fontname:"Microsoft Yahei",colors:["#40aebd","#97e8d5","#a1cf49","#628f3e","#f2df3a","#fcb01c"]},{background:"#242367",fontColor:"#ffffff",fontname:"Microsoft Yahei",colors:["#ac3ec1","#477bd1","#46b298","#90ba4c","#dd9d31","#e25345"]},{background:"#e4b75e",fontColor:"#333333",fontname:"Microsoft Yahei",colors:["#f0a22e","#a5644e","#b58b80","#c3986d","#a19574","#c17529"]},{background:"#333333",fontColor:"#ffffff",fontname:"Microsoft Yahei",colors:["#bdc8df","#003fa9","#f5ba00","#ff7567","#7676d9","#923ffc"]}],wR=()=>{const e=Ue(),{slides:t,currentSlide:n,theme:o}=oe(e),{addHistorySnapshot:l}=He(),s=R=>{var y,Y,T,V,I,W,F,C,Z;const p=Array.isArray(R)?R:[R],f=[],h=[],P=[],O=[];for(const K of p){if(K.background)if(K.background.type==="solid"&&K.background.color)f.push({area:1,value:K.background.color});else if(K.background.type==="gradient"&&K.background.gradient){const U=K.background.gradient.colors.length;f.push(...K.background.gradient.colors.map(G=>({area:1/U,value:G.color})))}else f.push({area:1,value:o.value.backgroundColor});for(const U of K.elements){const G=U.width;let D=0;if(U.type==="line"){const[Re,ae]=U.start,[Se,J]=U.end;D=Math.sqrt(Math.pow(Math.abs(Re-Se),2)+Math.pow(Math.abs(ae-J),2))}else D=U.height;const le=G*D;if(U.type==="shape"||U.type==="text"){if(U.fill&&h.push({area:le,value:U.fill}),U.type==="shape"&&U.gradient){const ce=U.gradient.colors.length;h.push(...U.gradient.colors.map(z=>({area:1/ce*le,value:z.color})))}const Re=(U.type==="shape"?(y=U.text)==null?void 0:y.content:U.content)||"";if(!Re)continue;const ae=Re.replace(/<[^>]+>/g,"").replace(/\s*/g,""),Se=Re.match(/<[^>]+color: .+?<\/.+?>/g),J=Re.match(/<[^>]+font-family: .+?<\/.+?>/g);let B=1,Ie=1;if(Se)for(const ce of Se){const z=ce.match(/color: (.+?);/);if(!z)continue;const ne=ce.replace(/<[^>]+>/g,"").replace(/\s*/g,""),ge=z[1],w=ne.length/ae.length;B=B-w,P.push({area:le*w,value:ge})}if(J)for(const ce of J){const z=ce.match(/font-family: (.+?);/);if(!z)continue;const ne=ce.replace(/<[^>]+>/g,"").replace(/\s*/g,""),ge=z[1],w=ne.length/ae.length;Ie=Ie-w,O.push({area:le*w,value:ge})}if(B){const z=(U.type==="shape"?(Y=U.text)==null?void 0:Y.defaultColor:U.defaultColor)||o.value.fontColor;P.push({area:le*B,value:z})}if(Ie){const z=(U.type==="shape"?(T=U.text)==null?void 0:T.defaultFontName:U.defaultFontName)||o.value.fontName;O.push({area:le*Ie,value:z})}}else if(U.type==="table"){const Re=U.data.length*U.data[0].length;let ae=0;for(const Se of U.data)for(const J of Se)if((V=J.style)!=null&&V.backcolor&&(ae+=1,h.push({area:le/Re,value:(I=J.style)==null?void 0:I.backcolor})),J.text){const B=J.text.length>=10?1:J.text.length/10;(W=J.style)!=null&&W.color&&P.push({area:le/Re*B,value:(F=J.style)==null?void 0:F.color}),(C=J.style)!=null&&C.fontname&&P.push({area:le/Re*B,value:(Z=J.style)==null?void 0:Z.fontname})}if(U.theme){const Se=1-ae/Re;h.push({area:le*Se,value:U.theme.color})}}else U.type==="chart"?(U.fill&&h.push({area:le*.5,value:U.fill}),h.push({area:le*.5,value:U.themeColors[0]})):U.type==="line"?h.push({area:le,value:U.color}):U.type==="elf"&&U.subtype==="elf-audio"?h.push({area:le,value:U.color}):U.type==="latex"&&P.push({area:le,value:U.color})}}const L={};for(const K of f){const U=ke(K.value).toRgbString();U!=="rgba(0, 0, 0, 0)"&&(L[U]?L[U]+=K.area:L[U]=K.area)}const S={};for(const K of h){const U=ke(K.value).toRgbString();U!=="rgba(0, 0, 0, 0)"&&(S[U]?S[U]+=K.area:S[U]=K.area)}const X={};for(const K of P){const U=ke(K.value).toRgbString();U!=="rgba(0, 0, 0, 0)"&&(X[U]?X[U]+=K.area:X[U]=K.area)}const M={};for(const K of O)M[K.value]?M[K.value]+=K.area:M[K.value]=K.area;return{backgroundColors:Object.keys(L).sort((K,U)=>L[U]-L[K]),themeColors:Object.keys(S).sort((K,U)=>S[U]-S[K]),fontColors:Object.keys(X).sort((K,U)=>X[U]-X[K]),fontNames:Object.keys(M).sort((K,U)=>M[U]-M[K])}},a=R=>{const p=[];for(const f of R.elements){if(f.type==="shape"&&ke(f.fill).getAlpha()!==0){const h=ke(f.fill).toRgbString();p.includes(h)||p.push(h)}if(f.type==="text"&&f.fill&&ke(f.fill).getAlpha()!==0){const h=ke(f.fill).toRgbString();p.includes(h)||p.push(h)}if(f.type==="table"&&f.theme&&ke(f.theme.color).getAlpha()!==0){const h=ke(f.theme.color).toRgbString();p.includes(h)||p.push(h)}if(f.type==="chart"&&f.themeColors[0]&&ke(f.themeColors[0]).getAlpha()!==0){const h=ke(f.themeColors[0]).toRgbString();p.includes(h)||p.push(h)}if(f.type==="line"&&ke(f.color).getAlpha()!==0){const h=ke(f.color).toRgbString();p.includes(h)||p.push(h)}if(f.type==="elf"&&f.subtype==="elf-audio"&&ke(f.color).getAlpha()!==0){const h=ke(f.color).toRgbString();p.includes(h)||p.push(h)}}return p},i=(R,p)=>{const f=a(R),h={};if(f.length>p.length){const O=ke(p[0]).analogous(f.length-p.length+10).map(L=>L.toHexString()).slice(1);p.push(...O)}for(let P=0;P<f.length;P++)h[f[P]]=p[P];return h},u=(R,p)=>{const f=i(R,p.colors);(!R.background||R.background.type!=="image")&&(R.background={type:"solid",color:p.background});for(const h of R.elements){if(h.type==="shape"&&(h.fill=f[ke(h.fill).toRgbString()]||h.fill,h.gradient&&delete h.gradient),h.type==="text"&&(h.fill&&(h.fill=f[ke(h.fill).toRgbString()]||h.fill),h.defaultColor=p.fontColor,h.defaultFontName=p.fontname),h.type==="table"){h.theme&&(h.theme.color=f[ke(h.theme.color).toRgbString()]||h.theme.color);for(const P of h.data)for(const O of P)O.style&&(O.style.color=p.fontColor,O.style.fontname=p.fontname)}h.type==="chart"&&(h.themeColors=[f[ke(h.themeColors[0]).toRgbString()]],h.textColor=p.fontColor),h.type==="line"&&(h.color=f[ke(h.color).toRgbString()]||h.color),h.type==="elf"&&h.subtype==="elf-audio"&&(h.color=f[ke(h.color).toRgbString()]||h.color),h.type==="latex"&&(h.color=p.fontColor)}};return{getSlidesThemeStyles:s,applyPresetThemeToSingleSlide:R=>{const p=JSON.parse(JSON.stringify(n.value));u(p,R),e.updateSlide({background:p.background,elements:p.elements}),l()},applyPresetThemeToAllSlides:R=>{const p=JSON.parse(JSON.stringify(t.value));for(const f of p)u(f,R);e.setTheme({backgroundColor:R.background,themeColor:R.colors[0],fontColor:R.fontColor,fontName:R.fontname}),e.setSlides(p),l()},applyThemeToAllSlides:(R=!1)=>{const p=JSON.parse(JSON.stringify(t.value)),{themeColor:f,backgroundColor:h,fontColor:P,fontName:O,outline:L,shadow:S}=o.value;for(const X of p){(!X.background||X.background.type!=="image")&&(X.background={type:"solid",color:h});for(const M of X.elements)if(R&&("outline"in M&&M.outline&&(M.outline=L),"shadow"in M&&M.shadow&&(M.shadow=S)),M.type==="shape")M.fill=f,M.gradient&&delete M.gradient;else if(M.type==="line")M.color=f;else if(M.type==="text")M.defaultColor=P,M.defaultFontName=O,M.fill&&(M.fill=f);else if(M.type==="table"){M.theme&&(M.theme.color=f);for(const y of M.data)for(const Y of y)Y.style&&(Y.style.color=P,Y.style.fontname=O)}else M.type==="chart"?(M.themeColors=[f],M.textColor=P):M.type==="latex"?M.color=P:M.type==="elf"&&M.subtype==="elf-audio"&&(M.color=f)}e.setSlides(p),l()}}},js=e=>(Je("data-v-6eb81523"),e=e(),xe(),e),cA={class:"theme-styles-extract"},dA={class:"content"},RA={class:"config-item"},fA=js(()=>m("div",{class:"label"},"字体:",-1)),pA={class:"values"},hA={class:"handler"},vA=["onClick"],mA=["onClick"],MA={class:"config-item"},gA=js(()=>m("div",{class:"label"},"文字颜色:",-1)),SA={class:"values"},OA={class:"handler"},PA=["onClick"],NA=["onClick"],XA={class:"config-item"},TA=js(()=>m("div",{class:"label"},"背景颜色:",-1)),VA={class:"values"},yA={class:"handler"},LA=["onClick"],bA=["onClick"],IA={class:"config-item"},YA=js(()=>m("div",{class:"label"},"主题色:",-1)),WA={class:"values"},UA={class:"handler"},QA=["onClick"],FA=["onClick"],ZA={class:"btns"},AA=q({__name:"ThemeStylesExtract",emits:["close"],setup(e,{emit:t}){const n=t,o=Ue(),{slides:l,currentSlide:s}=oe(o),{getSlidesThemeStyles:a}=wR(),i=[{key:"single",label:"从当前页中提取"},{key:"all",label:"从全部幻灯片提取"}],u=_("single"),r=_({});Ge(()=>{const f={};for(const h of Sp)f[h.value]=h.label;for(const h of bl)f[h.value]=h.label;r.value=f});const c=_({backgroundColors:[],themeColors:[],fontColors:[],fontNames:[]}),d=_({backgroundColor:0,themeColor:0,fontColor:0,fontName:0});Pe(u,()=>{u.value==="single"?c.value=a(s.value):c.value=a(l.value)}),Ge(()=>{c.value=a(s.value)});const R=f=>{o.setTheme(f)},p=()=>{o.setTheme({backgroundColor:c.value.backgroundColors[d.value.backgroundColor],themeColor:c.value.themeColors[d.value.themeColor],fontColor:c.value.fontColors[d.value.fontColor],fontName:c.value.fontNames[d.value.fontName]}),n("close")};return(f,h)=>(g(),b("div",cA,[N(uo,{tabs:i,value:u.value,"onUpdate:value":h[0]||(h[0]=P=>u.value=P),tabsStyle:{marginBottom:"12px"},tabStyle:{padding:"8px 12px"}},null,8,["value"]),m("div",dA,[m("div",RA,[fA,m("div",pA,[(g(!0),b(ie,null,me(c.value.fontNames,(P,O)=>(g(),b("div",{class:"value-wrap",key:P},[m("div",{class:"value",style:ee({fontFamily:P})},Me(r.value[P]||P),5),m("div",hA,[m("div",{class:E(["state",{active:d.value.fontName===O}])},"√",2),m("div",{class:"config-btn",onClick:L=>d.value.fontName=O},"选择",8,vA),m("div",{class:"config-btn",onClick:L=>{R({fontName:P}),d.value.fontName=O}},"配置到主题",8,mA)])]))),128))])]),m("div",MA,[gA,m("div",SA,[(g(!0),b(ie,null,me(c.value.fontColors,(P,O)=>(g(),b("div",{class:"value-wrap",key:P},[m("div",{class:"value",style:ee({backgroundColor:P})},null,4),m("div",OA,[m("div",{class:E(["state",{active:d.value.fontColor===O}])},"√",2),m("div",{class:"config-btn",onClick:L=>d.value.fontColor=O},"选择",8,PA),m("div",{class:"config-btn",onClick:L=>{R({fontColor:P}),d.value.fontColor=O}},"配置到主题",8,NA)])]))),128))])]),m("div",XA,[TA,m("div",VA,[(g(!0),b(ie,null,me(c.value.backgroundColors,(P,O)=>(g(),b("div",{class:"value-wrap",key:P},[m("div",{class:"value",style:ee({backgroundColor:P})},null,4),m("div",yA,[m("div",{class:E(["state",{active:d.value.backgroundColor===O}])},"√",2),m("div",{class:"config-btn",onClick:L=>d.value.backgroundColor=O},"选择",8,LA),m("div",{class:"config-btn",onClick:L=>{R({backgroundColor:P}),d.value.backgroundColor=O}},"配置到主题",8,bA)])]))),128))])]),m("div",IA,[YA,m("div",WA,[(g(!0),b(ie,null,me(c.value.themeColors,(P,O)=>(g(),b("div",{class:"value-wrap",key:P},[m("div",{class:"value",style:ee({backgroundColor:P})},null,4),m("div",UA,[m("div",{class:E(["state",{active:d.value.themeColor===O}])},"√",2),m("div",{class:"config-btn",onClick:L=>d.value.themeColor=O},"选择",8,QA),m("div",{class:"config-btn",onClick:L=>{R({themeColor:P}),d.value.themeColor=O}},"配置到主题",8,FA)])]))),128))])])]),m("div",ZA,[N(Ve,{class:"btn",type:"primary",onClick:h[1]||(h[1]=P=>p())},{default:Q(()=>[Oe("将选中配置保存为主题")]),_:1})])]))}}),KA=fe(AA,[["__scopeId","data-v-6eb81523"]]),Xt=e=>(Je("data-v-6fa8d31a"),e=e(),xe(),e),_A={class:"slide-design-panel"},HA=Xt(()=>m("div",{class:"title"},"背景填充",-1)),CA={class:"row"},GA=Xt(()=>m("div",{style:{width:"10px"}},null,-1)),EA={key:0,class:"background-image-wrapper"},wA={class:"background-image"},kA={key:1,class:"background-gradient-wrapper"},JA={class:"row"},xA={class:"row"},$A=Xt(()=>m("div",{style:{width:"40%"}},"当前色块:",-1)),DA={key:0,class:"row"},BA=Xt(()=>m("div",{style:{width:"40%"}},"渐变角度:",-1)),zA={class:"row"},jA={class:"row"},qA=Xt(()=>m("div",{style:{width:"40%"}},"画布尺寸:",-1)),eK={class:"title"},tK=Xt(()=>m("span",null,"全局主题",-1)),nK=Xt(()=>m("span",{class:"text"},"更多",-1)),oK={class:"row"},lK=Xt(()=>m("div",{style:{width:"40%"}},"字体:",-1)),sK={class:"row"},aK=Xt(()=>m("div",{style:{width:"40%"}},"字号:",-1)),iK={class:"row"},rK=Xt(()=>m("div",{style:{width:"40%"}},"字体颜色:",-1)),uK={class:"row"},cK=Xt(()=>m("div",{style:{width:"40%"}},"背景颜色:",-1)),dK={class:"row"},RK=Xt(()=>m("div",{style:{width:"40%"}},"主题色:",-1)),fK={class:"row"},pK=Xt(()=>m("div",{style:{width:"40%"}},"边框样式:",-1)),hK={class:"row"},vK=Xt(()=>m("div",{style:{width:"40%"}},"边框颜色:",-1)),mK={class:"row"},MK=Xt(()=>m("div",{style:{width:"40%"}},"边框粗细:",-1)),gK={class:"row",style:{height:"30px"}},SK=Xt(()=>m("div",{style:{width:"40%"}},"水平阴影:",-1)),OK={class:"row",style:{height:"30px"}},PK=Xt(()=>m("div",{style:{width:"40%"}},"垂直阴影:",-1)),NK={class:"row",style:{height:"30px"}},XK=Xt(()=>m("div",{style:{width:"40%"}},"模糊距离:",-1)),TK={class:"row"},VK=Xt(()=>m("div",{style:{width:"40%"}},"阴影颜色:",-1)),yK={class:"row"},LK={class:"row"},bK=Xt(()=>m("div",{class:"title"},"预置主题",-1)),IK={class:"theme-list"},YK={class:"theme-item-content"},WK={class:"colors"},UK={class:"btns"},QK=q({__name:"SlideDesignPanel",setup(e){const t=Ue(),{availableFonts:n}=oe(Xe()),{slides:o,currentSlide:l,viewportRatio:s,theme:a}=oe(t),i=_(!1),u=_(!1),r=_(0),c=H(()=>l.value.background?l.value.background:{type:"solid",value:"#fff"}),{addHistorySnapshot:d}=He(),{applyPresetThemeToSingleSlide:R,applyPresetThemeToAllSlides:p,applyThemeToAllSlides:f}=wR(),h=V=>{if(V==="solid"){const I={...c.value,type:"solid",color:c.value.color||"#fff"};t.updateSlide({background:I})}else if(V==="image"){const I={...c.value,type:"image",image:c.value.image||"",imageSize:c.value.imageSize||"cover"};t.updateSlide({background:I})}else{const I={...c.value,type:"gradient",gradient:c.value.gradient||{type:"linear",colors:[{pos:0,color:"#fff"},{pos:100,color:"#fff"}],rotate:0}};r.value=0,t.updateSlide({background:I})}d()},P=V=>{t.updateSlide({background:{...c.value,...V}}),d()},O=V=>{P({gradient:{...c.value.gradient,...V}})},L=V=>{const I=c.value.gradient.colors.map((W,F)=>F===r.value?{...W,color:V}:W);O({colors:I})},S=V=>{P({...c.value,...V})},X=V=>{const I=V[0];I&&Uo(I).then(W=>S({image:W}))},M=()=>{const V=o.value.map(I=>({...I,background:l.value.background}));t.setSlides(V),d()},y=V=>{t.setTheme(V)},Y=V=>{t.setViewportRatio(V)},T=["24px","28px","32px","36px","40px","44px","48px","56px","64px","72px","80px","88px","96px","108px","120px","132px","144px","152px","160px","176px","192px","208px","224px","240px"];return(V,I)=>{var K,U,G;const W=te("IconPlus"),F=te("IconDown"),C=te("IconRight"),Z=te("IconAddText");return g(),b(ie,null,[m("div",_A,[HA,m("div",CA,[N(rt,{style:{flex:"1"},value:c.value.type,"onUpdate:value":I[0]||(I[0]=D=>h(D)),options:[{label:"纯色填充",value:"solid"},{label:"图片填充",value:"image"},{label:"渐变填充",value:"gradient"}]},null,8,["value"]),GA,c.value.type==="solid"?(g(),k(Ke,{key:0,trigger:"click",style:{flex:"1"}},{content:Q(()=>[N(Be,{modelValue:c.value.color,"onUpdate:modelValue":I[1]||(I[1]=D=>P({color:D}))},null,8,["modelValue"])]),default:Q(()=>[N(ht,{color:c.value.color||"#fff"},null,8,["color"])]),_:1})):c.value.type==="image"?(g(),k(rt,{key:1,style:{flex:"1"},value:c.value.imageSize||"cover","onUpdate:value":I[2]||(I[2]=D=>S({imageSize:D})),options:[{label:"缩放",value:"contain"},{label:"拼贴",value:"repeat"},{label:"缩放铺满",value:"cover"}]},null,8,["value"])):(g(),k(rt,{key:2,style:{flex:"1"},value:((K=c.value.gradient)==null?void 0:K.type)||"","onUpdate:value":I[3]||(I[3]=D=>O({type:D})),options:[{label:"线性渐变",value:"linear"},{label:"径向渐变",value:"radial"}]},null,8,["value"]))]),c.value.type==="image"?(g(),b("div",EA,[N(Ql,{onChange:I[4]||(I[4]=D=>X(D))},{default:Q(()=>[m("div",wA,[m("div",{class:"content",style:ee({backgroundImage:`url(${c.value.image})`})},[N(W)],4)])]),_:1})])):j("",!0),c.value.type==="gradient"?(g(),b("div",kA,[m("div",JA,[N(KR,{value:((U=c.value.gradient)==null?void 0:U.colors)||[],"onUpdate:value":I[5]||(I[5]=D=>O({colors:D})),"onUpdate:index":I[6]||(I[6]=D=>r.value=D)},null,8,["value"])]),m("div",xA,[$A,N(Ke,{trigger:"click",style:{width:"60%"}},{content:Q(()=>[N(Be,{modelValue:c.value.gradient.colors[r.value].color,"onUpdate:modelValue":I[7]||(I[7]=D=>L(D))},null,8,["modelValue"])]),default:Q(()=>[N(ht,{color:c.value.gradient.colors[r.value].color},null,8,["color"])]),_:1})]),((G=c.value.gradient)==null?void 0:G.type)==="linear"?(g(),b("div",DA,[BA,N(Vn,{min:0,max:360,step:15,value:c.value.gradient.rotate||0,"onUpdate:value":I[8]||(I[8]=D=>O({rotate:D})),style:{width:"60%"}},null,8,["value"])])):j("",!0)])):j("",!0),m("div",zA,[N(Ve,{style:{flex:"1"},onClick:I[9]||(I[9]=D=>M())},{default:Q(()=>[Oe("应用背景到全部")]),_:1})]),N(Ce),m("div",jA,[qA,N(rt,{style:{width:"60%"},value:v(s),"onUpdate:value":I[10]||(I[10]=D=>Y(D)),options:[{label:"宽屏 16 : 9",value:.5625},{label:"宽屏 16 : 10",value:.625},{label:"标准 4 : 3",value:.75},{label:"纸张 A3 / A4",value:.70710678},{label:"竖向 A3 / A4",value:1.41421356}]},null,8,["value"])]),N(Ce),m("div",eK,[tK,m("span",{class:"more",onClick:I[11]||(I[11]=D=>i.value=!i.value)},[nK,i.value?(g(),k(F,{key:0})):(g(),k(C,{key:1}))])]),m("div",oK,[lK,N(rt,{style:{width:"60%"},value:v(a).fontName,search:"",searchLabel:"搜索字体","onUpdate:value":I[12]||(I[12]=D=>y({fontName:D})),options:[...v(n),...v(bl)]},null,8,["value","options"])]),m("div",sK,[aK,N(rt,{style:{width:"60%"},value:v(a).fontSize,search:"",searchLabel:"搜索字号","onUpdate:value":I[13]||(I[13]=D=>y({fontSize:D})),options:T.map(D=>({label:D,value:D}))},{icon:Q(()=>[N(Z)]),_:1},8,["value","options"])]),m("div",iK,[rK,N(Ke,{trigger:"click",style:{width:"60%"}},{content:Q(()=>[N(Be,{modelValue:v(a).fontColor,"onUpdate:modelValue":I[14]||(I[14]=D=>y({fontColor:D}))},null,8,["modelValue"])]),default:Q(()=>[N(ht,{color:v(a).fontColor},null,8,["color"])]),_:1})]),m("div",uK,[cK,N(Ke,{trigger:"click",style:{width:"60%"}},{content:Q(()=>[N(Be,{modelValue:v(a).backgroundColor,"onUpdate:modelValue":I[15]||(I[15]=D=>y({backgroundColor:D}))},null,8,["modelValue"])]),default:Q(()=>[N(ht,{color:v(a).backgroundColor},null,8,["color"])]),_:1})]),m("div",dK,[RK,N(Ke,{trigger:"click",style:{width:"60%"}},{content:Q(()=>[N(Be,{modelValue:v(a).themeColor,"onUpdate:modelValue":I[16]||(I[16]=D=>y({themeColor:D}))},null,8,["modelValue"])]),default:Q(()=>[N(ht,{color:v(a).themeColor},null,8,["color"])]),_:1})]),i.value?(g(),b(ie,{key:2},[m("div",fK,[pK,N(rt,{style:{width:"60%"},value:v(a).outline.style||"","onUpdate:value":I[17]||(I[17]=D=>y({outline:{...v(a).outline,style:D}})),options:[{label:"实线边框",value:"solid"},{label:"虚线边框",value:"dashed"},{label:"点线边框",value:"dotted"}]},null,8,["value"])]),m("div",hK,[vK,N(Ke,{trigger:"click",style:{width:"60%"}},{content:Q(()=>[N(Be,{modelValue:v(a).outline.color,"onUpdate:modelValue":I[18]||(I[18]=D=>y({outline:{...v(a).outline,color:D}}))},null,8,["modelValue"])]),default:Q(()=>[N(ht,{color:v(a).outline.color||"#000"},null,8,["color"])]),_:1})]),m("div",mK,[MK,N(en,{value:v(a).outline.width||0,"onUpdate:value":I[19]||(I[19]=D=>y({outline:{...v(a).outline,width:D}})),style:{width:"60%"}},null,8,["value"])]),m("div",gK,[SK,N(Vn,{style:{width:"60%"},min:-10,max:10,step:1,value:v(a).shadow.h,"onUpdate:value":I[20]||(I[20]=D=>y({shadow:{...v(a).shadow,h:D}}))},null,8,["value"])]),m("div",OK,[PK,N(Vn,{style:{width:"60%"},min:-10,max:10,step:1,value:v(a).shadow.v,"onUpdate:value":I[21]||(I[21]=D=>y({shadow:{...v(a).shadow,v:D}}))},null,8,["value"])]),m("div",NK,[XK,N(Vn,{style:{width:"60%"},min:1,max:20,step:1,value:v(a).shadow.blur,"onUpdate:value":I[22]||(I[22]=D=>y({shadow:{...v(a).shadow,blur:D}}))},null,8,["value"])]),m("div",TK,[VK,N(Ke,{trigger:"click",style:{width:"60%"}},{content:Q(()=>[N(Be,{modelValue:v(a).shadow.color,"onUpdate:modelValue":I[23]||(I[23]=D=>y({shadow:{...v(a).shadow,color:D}}))},null,8,["modelValue"])]),default:Q(()=>[N(ht,{color:v(a).shadow.color},null,8,["color"])]),_:1})])],64)):j("",!0),m("div",yK,[N(Ve,{style:{flex:"1"},onClick:I[24]||(I[24]=D=>v(f)(i.value))},{default:Q(()=>[Oe("应用主题到全部")]),_:1})]),m("div",LK,[N(Ve,{style:{flex:"1"},onClick:I[25]||(I[25]=D=>u.value=!0)},{default:Q(()=>[Oe("从幻灯片提取主题")]),_:1})]),N(Ce),bK,m("div",IK,[(g(!0),b(ie,null,me(v(uA),(D,le)=>(g(),b("div",{class:"theme-item",key:le,style:ee({backgroundColor:D.background,fontFamily:D.fontname})},[m("div",YK,[m("div",{class:"text",style:ee({color:D.fontColor})},"文字 Aa",4),m("div",WK,[(g(!0),b(ie,null,me(D.colors,(Re,ae)=>(g(),b("div",{class:"color-block",key:ae,style:ee({backgroundColor:Re})},null,4))),128))]),m("div",UK,[N(Ve,{type:"primary",size:"small",onClick:Re=>v(R)(D)},{default:Q(()=>[Oe("应用")]),_:2},1032,["onClick"]),N(Ve,{type:"primary",size:"small",style:{"margin-top":"3px"},onClick:Re=>v(p)(D)},{default:Q(()=>[Oe("应用全局")]),_:2},1032,["onClick"])])])],4))),128))])]),N(tl,{visible:u.value,"onUpdate:visible":I[27]||(I[27]=D=>u.value=D),width:320,onClosed:I[28]||(I[28]=D=>u.value=!1)},{default:Q(()=>[N(KA,{onClose:I[26]||(I[26]=D=>u.value=!1)})]),_:1},8,["visible"])],64)}}}),FK=fe(QK,[["__scopeId","data-v-6fa8d31a"]]),ZK={class:"slide-animation-panel"},AK={class:"animation-pool"},KK=["onClick"],_K={class:"animation-text"},HK=q({__name:"SlideAnimationPanel",setup(e){const t=Ue(),{slides:n,currentSlide:o}=oe(t),l=H(()=>o.value.turningMode||"slideY"),s=oh,{addHistorySnapshot:a}=He(),i=r=>{r!==l.value&&(t.updateSlide({turningMode:r}),a())},u=()=>{const r=n.value.map(c=>({...c,turningMode:o.value.turningMode}));t.setSlides(r),Wt.success("已应用到全部"),a()};return(r,c)=>(g(),b("div",ZK,[m("div",AK,[(g(!0),b(ie,null,me(v(s),d=>(g(),b("div",{class:E(["animation-item",{active:l.value===d.value}]),key:d.label,onClick:R=>i(d.value)},[m("div",{class:E(["animation-block",d.value])},null,2),m("div",_K,Me(d.label),1)],10,KK))),128))]),N(Ve,{style:{width:"100%"},onClick:c[0]||(c[0]=d=>u())},{default:Q(()=>[Oe("应用到全部")]),_:1})]))}}),CK=fe(HK,[["__scopeId","data-v-a402b7ad"]]),GK=()=>{const e=Ue(),{activeElementIdList:t,activeElementList:n}=oe(Xe()),{currentSlide:o}=oe(e),{addHistorySnapshot:l}=He();return{alignActiveElement:a=>{const{minX:i,maxX:u,minY:r,maxY:c}=An(n.value),d=JSON.parse(JSON.stringify(o.value.elements)),R={};for(const p of n.value)if(p.groupId&&!R[p.groupId]){const f=n.value.filter(h=>h.groupId===p.groupId);R[p.groupId]=An(f)}if(a===De.LEFT)d.forEach(p=>{if(t.value.includes(p.id))if(p.groupId){const h=R[p.groupId].minX-i;p.left=p.left-h}else if("rotate"in p&&p.rotate){const{offsetX:f}=wo({left:p.left,top:p.top,width:p.width,height:p.height,rotate:p.rotate});p.left=i-f}else p.left=i});else if(a===De.RIGHT)d.forEach(p=>{if(t.value.includes(p.id))if(p.groupId){const h=R[p.groupId].maxX-u;p.left=p.left-h}else{const f=p.type==="line"?Math.max(p.start[0],p.end[0]):p.width;if("rotate"in p&&p.rotate){const{offsetX:h}=wo({left:p.left,top:p.top,width:p.width,height:p.height,rotate:p.rotate});p.left=u-f+h}else p.left=u-f}});else if(a===De.TOP)d.forEach(p=>{if(t.value.includes(p.id))if(p.groupId){const h=R[p.groupId].minY-r;p.top=p.top-h}else if("rotate"in p&&p.rotate){const{offsetY:f}=wo({left:p.left,top:p.top,width:p.width,height:p.height,rotate:p.rotate});p.top=r-f}else p.top=r});else if(a===De.BOTTOM)d.forEach(p=>{if(t.value.includes(p.id))if(p.groupId){const h=R[p.groupId].maxY-c;p.top=p.top-h}else{const f=p.type==="line"?Math.max(p.start[1],p.end[1]):p.height;if("rotate"in p&&p.rotate){const{offsetY:h}=wo({left:p.left,top:p.top,width:p.width,height:p.height,rotate:p.rotate});p.top=c-f+h}else p.top=c-f}});else if(a===De.HORIZONTAL){const p=(i+u)/2;d.forEach(f=>{if(t.value.includes(f.id))if(f.groupId){const h=R[f.groupId],O=(h.maxX+h.minX)/2-p;f.left=f.left-O}else{const h=f.type==="line"?Math.max(f.start[0],f.end[0]):f.width;f.left=p-h/2}})}else if(a===De.VERTICAL){const p=(r+c)/2;d.forEach(f=>{if(t.value.includes(f.id))if(f.groupId){const h=R[f.groupId],O=(h.maxY+h.minY)/2-p;f.top=f.top-O}else{const h=f.type==="line"?Math.max(f.start[1],f.end[1]):f.height;f.top=p-h/2}})}e.updateSlide({elements:d}),l()}}},EK=()=>{const e=Ue(),{activeElementIdList:t,activeElementList:n}=oe(Xe()),{currentSlide:o}=oe(e),{addHistorySnapshot:l}=He();return{displayItemCount:H(()=>{let u=0;const r=[];for(const c of n.value)c.groupId?r.includes(c.groupId)||(r.push(c.groupId),u+=1):u+=1;return u}),uniformHorizontalDisplay:()=>{const{minX:u,maxX:r}=An(n.value),c=JSON.parse(JSON.stringify(n.value)),d=JSON.parse(JSON.stringify(o.value.elements)),R=[];let p=[];for(const M of c)if(M.groupId)p.find(Y=>Y.groupId===M.groupId)?p=p.map(Y=>Y.groupId===M.groupId?{...Y,els:[...Y.els,M]}:Y):p.push({groupId:M.groupId,els:[M]});else{const{minX:y,maxX:Y}=Fn(M);R.push({min:y,max:Y,el:M})}const f=[];for(const M of p){const{minX:y,maxX:Y}=An(M.els);f.push({min:y,max:Y,els:M.els})}const h=[...R,...f];h.sort((M,y)=>M.min-y.min);let P=0;for(const M of h){const y=M.max-M.min;P+=y}const O=(r-u-P)/(h.length-1),L=[],S=h[0];let X={min:S.min,max:S.max};if("el"in S)L.push({pos:S.min,el:S.el});else for(const M of S.els){const{minX:y}=Fn(M);L.push({pos:y,el:M})}for(let M=1;M<h.length;M++){const y=h[M],Y=X.max-X.min,T=X.min+Y+O,V=y.max-y.min;if(X={min:T,max:T+V},"el"in y)L.push({pos:T,el:y.el});else for(const I of y.els){const{minX:W}=Fn(I),F=W-y.min;L.push({pos:T+F,el:I})}}for(const M of d)if(t.value.includes(M.id)){for(const y of L)if(y.el.id===M.id)if("rotate"in M&&M.rotate){const{offsetX:Y}=wo({left:M.left,top:M.top,width:M.width,height:M.height,rotate:M.rotate});M.left=y.pos-Y}else M.left=y.pos}e.updateSlide({elements:d}),l()},uniformVerticalDisplay:()=>{const{minY:u,maxY:r}=An(n.value),c=JSON.parse(JSON.stringify(n.value)),d=JSON.parse(JSON.stringify(o.value.elements)),R=[];let p=[];for(const M of c)if(M.groupId)p.find(Y=>Y.groupId===M.groupId)?p=p.map(Y=>Y.groupId===M.groupId?{...Y,els:[...Y.els,M]}:Y):p.push({groupId:M.groupId,els:[M]});else{const{minY:y,maxY:Y}=Fn(M);R.push({min:y,max:Y,el:M})}const f=[];for(const M of p){const{minY:y,maxY:Y}=An(M.els);f.push({min:y,max:Y,els:M.els})}const h=[...R,...f];h.sort((M,y)=>M.min-y.min);let P=0;for(const M of h){const y=M.max-M.min;P+=y}const O=(r-u-P)/(h.length-1),L=[],S=h[0];let X={min:S.min,max:S.max};if("el"in S)L.push({pos:S.min,el:S.el});else for(const M of S.els){const{minY:y}=Fn(M);L.push({pos:y,el:M})}for(let M=1;M<h.length;M++){const y=h[M],Y=X.max-X.min,T=X.min+Y+O,V=y.max-y.min;if(X={min:T,max:T+V},"el"in y)L.push({pos:T,el:y.el});else for(const I of y.els){const{minY:W}=Fn(I),F=W-y.min;L.push({pos:T+F,el:I})}}for(const M of d)if(t.value.includes(M.id)){for(const y of L)if(y.el.id===M.id)if("rotate"in M&&M.rotate){const{offsetY:Y}=wo({left:M.left,top:M.top,width:M.width,height:M.height,rotate:M.rotate});M.top=y.pos-Y}else M.top=y.pos}e.updateSlide({elements:d}),l()}}},wK={class:"multi-position-panel"},kK=q({__name:"MultiPositionPanel",setup(e){const{canCombine:t,combineElements:n,uncombineElements:o}=Pi(),{alignActiveElement:l}=GK(),{alignElementToCanvas:s}=Ti(),{displayItemCount:a,uniformHorizontalDisplay:i,uniformVerticalDisplay:u}=EK(),r=c=>{t.value?l(c):s(c)};return(c,d)=>{const R=te("IconAlignLeft"),p=te("IconAlignHorizontally"),f=te("IconAlignRight"),h=te("IconAlignTop"),P=te("IconAlignVertically"),O=te("IconAlignBottom"),L=te("IconGroup"),S=te("IconUngroup"),X=ze("tooltip");return g(),b("div",wK,[N(dt,{class:"row"},{default:Q(()=>[de((g(),k(Ve,{style:{flex:"1"},onClick:d[0]||(d[0]=M=>r(v(De).LEFT))},{default:Q(()=>[N(R)]),_:1})),[[X,"左对齐"]]),de((g(),k(Ve,{style:{flex:"1"},onClick:d[1]||(d[1]=M=>r(v(De).HORIZONTAL))},{default:Q(()=>[N(p)]),_:1})),[[X,"水平居中"]]),de((g(),k(Ve,{style:{flex:"1"},onClick:d[2]||(d[2]=M=>r(v(De).RIGHT))},{default:Q(()=>[N(f)]),_:1})),[[X,"右对齐"]])]),_:1}),N(dt,{class:"row"},{default:Q(()=>[de((g(),k(Ve,{style:{flex:"1"},onClick:d[3]||(d[3]=M=>r(v(De).TOP))},{default:Q(()=>[N(h)]),_:1})),[[X,"上对齐"]]),de((g(),k(Ve,{style:{flex:"1"},onClick:d[4]||(d[4]=M=>r(v(De).VERTICAL))},{default:Q(()=>[N(P)]),_:1})),[[X,"垂直居中"]]),de((g(),k(Ve,{style:{flex:"1"},onClick:d[5]||(d[5]=M=>r(v(De).BOTTOM))},{default:Q(()=>[N(O)]),_:1})),[[X,"下对齐"]])]),_:1}),v(a)>2?(g(),k(dt,{key:0,class:"row"},{default:Q(()=>[N(Ve,{style:{flex:"1"},onClick:d[6]||(d[6]=M=>v(i)())},{default:Q(()=>[Oe("水平均匀分布")]),_:1}),N(Ve,{style:{flex:"1"},onClick:d[7]||(d[7]=M=>v(u)())},{default:Q(()=>[Oe("垂直均匀分布")]),_:1})]),_:1})):j("",!0),N(Ce),N(dt,{class:"row"},{default:Q(()=>[N(Ve,{disabled:!v(t),onClick:d[8]||(d[8]=M=>v(n)()),style:{flex:"1"}},{default:Q(()=>[N(L,{style:{"margin-right":"3px"}}),Oe("组合")]),_:1},8,["disabled"]),N(Ve,{disabled:v(t),onClick:d[9]||(d[9]=M=>v(o)()),style:{flex:"1"}},{default:Q(()=>[N(S,{style:{"margin-right":"3px"}}),Oe("取消组合")]),_:1},8,["disabled"])]),_:1})])}}}),JK=fe(kK,[["__scopeId","data-v-06321d2c"]]),Ma=[{key:"letter",label:"字母",children:["α","β","γ","δ","ϵ","ε","ζ","η","θ","ϑ","ι","κ","λ","μ","ν","ξ","π","ϖ","ρ","ϱ","σ","ς","τ","υ","ϕ","φ","χ","ψ","ω","Γ","Δ","Θ","Λ","Ξ","Π","Σ","Υ","Φ","Ψ","Ω","𝐀","𝐁","𝐂","𝐃","𝐄","𝐅","𝐆","𝐇","𝐈","𝐉","𝐊","𝐋","𝐌","𝐍","𝐎","𝐏","𝐐","𝐑","𝐒","𝐓","𝐔","𝐕","𝐖","𝐗","𝐘","𝐙","𝐚","𝐛","𝐜","𝐝","𝐞","𝐟","𝐠","𝐡","𝐢","𝐣","𝐤","𝐥","𝐦","𝐧","𝐨","𝐩","𝐪","𝐫","𝐬","𝐭","𝐮","𝐯","𝐰","𝐱","𝐲","𝐳","𝓐","𝓑","𝓒","𝓓","𝓔","𝓕","𝓖","𝓗","𝓘","𝓙","𝓚","𝓛","𝓜","𝓝","𝓞","𝓟","𝓠","𝓡","𝓢","𝓣","𝓤","𝓥","𝓦","𝓧","𝓨","𝓩","𝓪","𝓫","𝓬","𝓭","𝓮","𝓯","𝓰","𝓱","𝓲","𝓳","𝓴","𝓵","𝓶","𝓷","𝓸","𝓹","𝓺","𝓻","𝓼","𝓽","𝓾","𝓿","𝔀","𝔁","𝔂","𝔃"]},{key:"number",label:"序号",children:["①","②","③","④","⑤","⑥","⑦","⑧","⑨","⑩","⑪","⑫","⑬","⑭","⑮","⑯","⑰","⑱","⑲","⑳","⑴","⑵","⑶","⑷","⑸","⑹","⑺","⑻","⑼","⑽","⑾","⑿","⒀","⒁","⒂","⒃","⒄","⒅","⒆","⒇","º","¹","²","³","⁴","⁵","⁶","⁷","⁸","⁹","₀","₁","₂","₃","₄","₅","₆","₇","₈","₉","Ⅰ","Ⅱ","Ⅲ","Ⅳ","Ⅴ","Ⅵ","Ⅶ","Ⅷ","Ⅸ","Ⅹ","Ⅺ","Ⅻ","Ⅼ","Ⅽ","Ⅾ","Ⅿ","ⅰ","ⅱ","ⅲ","ⅳ","ⅴ","ⅵ","ⅶ","ⅷ","ⅸ","ⅹ","ⅺ","ⅻ","ⅼ","ⅽ","ⅾ","ⅿ","ↀ","ↁ","ↂ","㊀","㊁","㊂","㊃","㊄","㊅","㊆","㊇","㊈","㊉","㈠","㈡","㈢","㈣","㈤","㈥","㈦","㈧","㈨","㈩","𝟘","𝟙","𝟚","𝟛","𝟜","𝟝","𝟞","𝟟","𝟠","𝟡"]},{key:"math",label:"数学",children:["+","-","×","÷","=","~","¬","±","%","°","ǃ","‰","‱","½","⅓","⅔","¼","¾","<",">","l","o","g","l","g","l","n","⨂","⨁","⨄","⨃","⨅","⨆","√","∛","∜","∝","∞","∟","∠","∡","∢","∧","∨","∩","∪","∫","∬","∭","∮","∯","∰","∱","∲","∳","∴","∵","∼","∽","∾","∿","≃","≄","≅","≆","≇","≈","≊","≋","≌","≍","≎","≏","≐","≑","≒","≓","≔","≕","≤","≥","≦","≧","≨","≩","≪","≫","≺","≻","≼","≽","≾","≿","⊀","⊁","⊂","⊃","⊄","⊅","⊆","⊇","⊈","⊉","⊊","⊋","⊏","⊐","⊑","⊒","⊓","⊔","⊢","⊣","⊤","⊥","⊦","⊧","⊨","⊩","⊪","⊫","⊬","⊭","⊮","⊯","⊲","⊳","⊴","⊵","⋀","⋁","⋂","⋃","⋉","⋊","⋋","⋌","⟨","⟩","⟪","⟫","⟮","⟯","⧼","⧽","⦰"]},{key:"arrow",label:"箭头",children:["←","↑","→","↓","↔","↕","↖","↗","↘","↙","↚","↛","↜","↝","↞","↟","↠","↡","↢","↣","↤","↥","↦","↧","↨","↫","↬","↭","↮","↯","↰","↱","↲","↳","↴","↵","↶","↷","↸","↹","↺","↻","↼","↽","↾","↿","⇀","⇁","⇂","⇃","⇄","⇅","⇆","⇇","⇈","⇉","⇊","⇋","⇌","⇍","⇎","⇏","⇐","⇑","⇒","⇓","⇔","⇕","⇖","⇗","⇘","⇙","⇚","⇛","⇜","⇝","⇞","⇟","⇠","⇡","⇢","⇣","⇤","⇥","⇦","⇧","⇨","⇩","⇪","⇫","⇬","⇭","⇮","⇯","⇰","⇱","⇲","⇳","⇴","⇵","⇶","⇷","⇸","⇹","⇺","⇻","⇼","⇽","⇾","⇿"]},{key:"graph",label:"图形",children:["▢","▣","▤","▥","▦","▧","▨","▩","▭","▮","▯","▰","▱","▲","▷","▼","◁","◈","◉","◍","◐","◑","◒","◓","◔","◕","◧","◨","◩","◪","◫","◬","◭","◮"]}],xK={class:"symbol-panel"},$K={class:"pool"},DK=["onClick"],BK={class:"symbol"},zK=q({__name:"SymbolPanel",setup(e){const t=_(Ma[0].key),n=H(()=>{const s=Ma.find(a=>a.key===t.value);return(s==null?void 0:s.children)||[]}),o=Ma.map(s=>({key:s.key,label:s.label})),l=s=>{Jt.emit(Ht.RICH_TEXT_COMMAND,{action:{command:"insert",value:s}})};return(s,a)=>(g(),b("div",xK,[N(uo,{tabs:v(o),value:t.value,"onUpdate:value":a[0]||(a[0]=i=>t.value=i),tabsStyle:{marginBottom:"8px"},spaceBetween:""},null,8,["tabs","value"]),m("div",$K,[(g(!0),b(ie,null,me(n.value,(i,u)=>(g(),b("div",{class:"symbol-item",key:u,onClick:r=>l(i)},[m("div",BK,Me(i),1)],8,DK))),128))])]))}}),jK=fe(zK,[["__scopeId","data-v-322fade4"]]),qK={class:"toolbar"},e_={class:"content"},t_=q({__name:"index",setup(e){const t=Xe(),{activeElementIdList:n,handleElement:o,toolbarState:l}=oe(t),s=H(()=>{var d,R,p;return((d=o.value)==null?void 0:d.type)==="text"?[{label:"样式",key:gt.EL_STYLE},{label:"符号",key:gt.SYMBOL},{label:"位置",key:gt.EL_POSITION},{label:"动画",key:gt.EL_ANIMATION}]:((R=o.value)==null?void 0:R.type)==="elf"&&((p=o.value)==null?void 0:p.subtype)==="elf-sing-play"?[{label:"位置",key:gt.EL_POSITION},{label:"动画",key:gt.EL_ANIMATION}]:[{label:"样式",key:gt.EL_STYLE},{label:"位置",key:gt.EL_POSITION},{label:"动画",key:gt.EL_ANIMATION}]}),a=[{label:"设计",key:gt.SLIDE_DESIGN},{label:"切换",key:gt.SLIDE_ANIMATION},{label:"动画",key:gt.EL_ANIMATION}],i=[{label:"样式",key:gt.EL_STYLE},{label:"位置",key:gt.MULTI_POSITION}],u=d=>{t.setToolbarState(d)},r=H(()=>{if(n.value.length){if(n.value.length>1)return i}else return a;return s.value});Pe(r,()=>{const d=r.value.map(R=>R.key);d.includes(l.value)||t.setToolbarState(d[0])});const c=H(()=>({[gt.EL_STYLE]:W2,[gt.EL_POSITION]:E2,[gt.EL_ANIMATION]:rA,[gt.SLIDE_DESIGN]:FK,[gt.SLIDE_ANIMATION]:CK,[gt.MULTI_POSITION]:JK,[gt.SYMBOL]:jK})[l.value]||null);return(d,R)=>(g(),b("div",qK,[N(uo,{tabs:r.value,value:v(l),card:"","onUpdate:value":R[0]||(R[0]=p=>u(p))},null,8,["tabs","value"]),m("div",e_,[(g(),k(yt(c.value)))])]))}}),n_=fe(t_,[["__scopeId","data-v-ccacc337"]]),o_={class:"editor"},l_=q({__name:"Editor",props:{value:{}},emits:["update"],setup(e,{expose:t,emit:n}){const o=e,l=n,s=Xe(),a=_();let i;const u=_(),r=_(),c=_(),d=()=>{r.value&&r.value.hide()},R=vt.debounce(function(){l("update",i.dom.innerHTML)},300,{trailing:!0}),p=()=>{s.setDisableHotkeysState(!0)},f=()=>{s.setDisableHotkeysState(!1)};t({updateTextContent:()=>{if(!i)return;const{doc:L,tr:S}=i.state;i.dispatch(S.replaceRangeWith(0,L.content.size,Zi(o.value)))}});const P=()=>{const L=window.getSelection();if(!L||!L.anchorNode||!L.focusNode||L.isCollapsed||L.type==="Caret"||L.type==="None")return;const S=L.getRangeAt(0);if(r.value){u.value=Pa(i);const{x:X,y:M,left:y,top:Y}=S.getBoundingClientRect();r.value.setProps({getReferenceClientRect:()=>({x:X,y:M,left:y,top:Y,height:0,width:0,right:y,bottom:Y})}),r.value.show()}},O=(L,S)=>{if(L==="color"&&S){const X=i.state.schema.marks.forecolor.create({color:S});Tt(i),Pn(i,X)}else if(L==="backcolor"&&S){const X=i.state.schema.marks.backcolor.create({backcolor:S});Tt(i),Pn(i,X)}else if(L==="bold")Tt(i),St(i.state.schema.marks.strong)(i.state,i.dispatch);else if(L==="em")Tt(i),St(i.state.schema.marks.em)(i.state,i.dispatch);else if(L==="underline")Tt(i),St(i.state.schema.marks.underline)(i.state,i.dispatch);else if(L==="strikethrough")Tt(i),St(i.state.schema.marks.strikethrough)(i.state,i.dispatch);else if(L==="bulletList"){const{bullet_list:X,list_item:M}=i.state.schema.nodes;Xs(X,M,"")(i.state,i.dispatch)}else if(L==="orderedList"){const{ordered_list:X,list_item:M}=i.state.schema.nodes;Xs(X,M,"")(i.state,i.dispatch)}else if(L==="clear"){Tt(i);const{$from:X,$to:M}=i.state.selection;i.dispatch(i.state.tr.removeMark(X.pos,M.pos))}i.focus(),R(),u.value=Pa(i)};return Ge(()=>{i=SR(a.value,o.value,{handleDOMEvents:{focus:p,blur:f,mouseup:P,mousedown:()=>{var L;(L=window.getSelection())==null||L.removeAllRanges(),d()},keydown:d,input:R}},{placeholder:"点击输入演讲者备注"}),r.value=Op(a.value,{duration:0,content:c.value,interactive:!0,trigger:"manual",placement:"top-start",hideOnClick:"toggle",offset:[0,6]})}),mt(()=>{i&&i.destroy()}),(L,S)=>{var Z,K,U,G,D,le;const X=te("IconTextBold"),M=te("IconTextItalic"),y=te("IconTextUnderline"),Y=te("IconStrikethrough"),T=te("IconText"),V=te("IconHighLight"),I=te("IconList"),W=te("IconOrderedList"),F=te("IconFormat"),C=ze("click-outside");return de((g(),b("div",o_,[m("div",{class:"prosemirror-editor",ref_key:"editorViewRef",ref:a},null,512),m("div",{class:"menu",ref_key:"menuRef",ref:c},[m("button",{class:E({active:(Z=u.value)==null?void 0:Z.bold}),onClick:S[0]||(S[0]=Re=>O("bold"))},[N(X)],2),m("button",{class:E({active:(K=u.value)==null?void 0:K.em}),onClick:S[1]||(S[1]=Re=>O("em"))},[N(M)],2),m("button",{class:E({active:(U=u.value)==null?void 0:U.underline}),onClick:S[2]||(S[2]=Re=>O("underline"))},[N(y)],2),m("button",{class:E({active:(G=u.value)==null?void 0:G.strikethrough}),onClick:S[3]||(S[3]=Re=>O("strikethrough"))},[N(Y)],2),N(Ke,{trigger:"click",style:{width:"30%"}},{content:Q(()=>{var Re;return[N(Be,{modelValue:(Re=u.value)==null?void 0:Re.color,"onUpdate:modelValue":S[4]||(S[4]=ae=>O("color",ae))},null,8,["modelValue"])]}),default:Q(()=>[m("button",null,[N(T)])]),_:1}),N(Ke,{trigger:"click",style:{width:"30%"}},{content:Q(()=>{var Re;return[N(Be,{modelValue:(Re=u.value)==null?void 0:Re.backcolor,"onUpdate:modelValue":S[5]||(S[5]=ae=>O("backcolor",ae))},null,8,["modelValue"])]}),default:Q(()=>[m("button",null,[N(V)])]),_:1}),m("button",{class:E({active:(D=u.value)==null?void 0:D.bulletList}),onClick:S[6]||(S[6]=Re=>O("bulletList"))},[N(I)],2),m("button",{class:E({active:(le=u.value)==null?void 0:le.orderedList}),onClick:S[7]||(S[7]=Re=>O("orderedList"))},[N(W)],2),m("button",{onClick:S[8]||(S[8]=Re=>O("clear"))},[N(F)])],512)])),[[C,d]])}}}),s_=fe(l_,[["__scopeId","data-v-e48fc0f0"]]),a_={class:"remark"},i_=q({__name:"index",props:{height:{}},emits:["update:height"],setup(e,{emit:t}){const n=e,o=t,l=Ue(),{currentSlide:s}=oe(l),a=_();Pe(()=>s.value.id,()=>{we(()=>{a.value.updateTextContent()})},{immediate:!0});const i=H(()=>{var c;return((c=s.value)==null?void 0:c.remark)||""}),u=c=>{l.updateSlide({remark:c})},r=c=>{let d=!0;const R=c.pageY,p=n.height;document.onmousemove=f=>{if(!d)return;let O=-(f.pageY-R)+p;O<40&&(O=40),O>360&&(O=360),o("update:height",O)},document.onmouseup=()=>{d=!1,document.onmousemove=null,document.onmouseup=null}};return(c,d)=>(g(),b("div",a_,[m("div",{class:"resize-handler",onMousedown:d[0]||(d[0]=R=>r(R))},null,32),N(s_,{value:i.value,ref_key:"editorRef",ref:a,onUpdate:d[1]||(d[1]=R=>u(R))},null,8,["value"])]))}}),r_=fe(i_,[["__scopeId","data-v-b18b55a0"]]),u_=()=>{const e=Ue(),t=Xe(),{currentSlide:n}=oe(e),{activeElementIdList:o,hiddenElementIdList:l}=oe(t);return{toggleHideElement:u=>{l.value.includes(u)?t.setHiddenElementIdList(l.value.filter(r=>r!==u)):t.setHiddenElementIdList([...l.value,u]),o.value.includes(u)&&t.setActiveElementIdList([])},showAllElements:()=>{const u=n.value.elements.map(c=>c.id),r=l.value.filter(c=>!u.includes(c));t.setHiddenElementIdList(r)},hideAllElements:()=>{const u=n.value.elements.map(r=>r.id);t.setHiddenElementIdList([...l.value,...u]),o.value.length&&t.setActiveElementIdList([])}}},c_=e=>(Je("data-v-022f9cd0"),e=e(),xe(),e),d_={key:0,class:"handler"},R_={class:"btns"},f_={key:0,class:"icon-btns"},p_={class:"element-list"},h_={key:0,class:"group-els"},v_=c_(()=>m("div",{class:"group-title"},"组合",-1)),m_=["onClick","onDblclick"],M_=["id","value","onBlur","onKeydown"],g_={key:1,class:"name"},S_={class:"icons"},O_=["onClick","onDblclick"],P_=["id","value","onBlur","onKeydown"],N_={key:1,class:"name"},X_={class:"icons"},T_=q({__name:"SelectPanel",setup(e){const t=Ue(),n=Xe(),{currentSlide:o}=oe(t),{handleElement:l,handleElementId:s,activeElementIdList:a,activeGroupElementId:i,hiddenElementIdList:u}=oe(n),{orderElement:r}=_s(),{selectElement:c}=Ks(),{toggleHideElement:d,showAllElements:R,hideAllElements:p}=u_(),f=H(()=>{const X=[];for(const M of o.value.elements)if(M.groupId){const y=X[X.length-1];y&&y.type==="group"&&y.id&&y.id===M.groupId?y.elements.push(M):X.push({type:"group",id:M.groupId,elements:[M]})}else X.push(M);return X}),h=(X,M)=>{if(s.value===M||u.value.includes(M))return;const y=X.elements.map(Y=>Y.id);n.setActiveElementIdList(y),n.setHandleElementId(M),we(()=>n.setActiveGroupElementId(M))},P=_(""),O=(X,M)=>{const y=X.target.value;t.updateElement({id:M,props:{name:y}}),P.value=""},L=X=>{P.value=X,we(()=>{document.querySelector(`#select-panel-input-${X}`).focus()})},S=()=>{n.setSelectPanelState(!1)};return(X,M)=>{const y=te("IconDown"),Y=te("IconUp"),T=te("IconPreviewClose"),V=te("IconPreviewOpen");return g(),k(oi,{class:"select-panel",width:200,height:360,title:`选择(${v(a).length}/${v(o).elements.length})`,left:-270,top:90,onClose:M[4]||(M[4]=I=>S())},{default:Q(()=>[f.value.length?(g(),b("div",d_,[m("div",R_,[N(Ve,{size:"small",style:{"margin-right":"5px"},onClick:M[0]||(M[0]=I=>v(R)())},{default:Q(()=>[Oe("全部显示")]),_:1}),N(Ve,{size:"small",onClick:M[1]||(M[1]=I=>v(p)())},{default:Q(()=>[Oe("全部隐藏")]),_:1})]),v(l)?(g(),b("div",f_,[N(y,{class:"icon-btn",onClick:M[2]||(M[2]=I=>v(r)(v(l),v(Vt).UP))}),N(Y,{class:"icon-btn",onClick:M[3]||(M[3]=I=>v(r)(v(l),v(Vt).DOWN))})])):j("",!0)])):j("",!0),m("div",p_,[(g(!0),b(ie,null,me(f.value,I=>(g(),b(ie,{key:I.id},[I.type==="group"?(g(),b("div",h_,[v_,(g(!0),b(ie,null,me(I.elements,W=>(g(),b("div",{class:E(["item",{active:v(a).includes(W.id),"group-active":v(i).includes(W.id)}]),key:W.id,onClick:F=>h(I,W.id),onDblclick:F=>L(W.id)},[P.value===W.id?(g(),b("input",{key:0,id:`select-panel-input-${W.id}`,value:W.name||v(ml)[W.type],class:"input",type:"text",onBlur:F=>O(F,W.id),onKeydown:Yt(F=>O(F,W.id),["enter"])},null,40,M_)):(g(),b("div",g_,Me(W.name||v(ml)[W.type]),1)),m("div",S_,[v(u).includes(W.id)?(g(),k(T,{key:0,style:{"font-size":"17px"},onClick:Fe(F=>v(d)(W.id),["stop"])},null,8,["onClick"])):(g(),k(V,{key:1,style:{"font-size":"17px"},onClick:Fe(F=>v(d)(W.id),["stop"])},null,8,["onClick"]))])],42,m_))),128))])):(g(),b("div",{key:1,class:E(["item",{active:v(a).includes(I.id)}]),onClick:W=>v(c)(I.id),onDblclick:W=>L(I.id)},[P.value===I.id?(g(),b("input",{key:0,id:`select-panel-input-${I.id}`,value:I.name||v(ml)[I.type],class:"input",type:"text",onBlur:W=>O(W,I.id),onKeydown:Yt(W=>O(W,I.id),["enter"])},null,40,P_)):(g(),b("div",N_,Me(I.name||v(ml)[I.type]),1)),m("div",X_,[v(u).includes(I.id)?(g(),k(T,{key:0,style:{"font-size":"17px"},onClick:Fe(W=>v(d)(I.id),["stop"])},null,8,["onClick"])):(g(),k(V,{key:1,style:{"font-size":"17px"},onClick:Fe(W=>v(d)(I.id),["stop"])},null,8,["onClick"]))])],42,O_))],64))),128))])]),_:1},8,["title"])}}}),V_=fe(T_,[["__scopeId","data-v-022f9cd0"]]),y_=()=>{const e=Xe(),t=Ue(),{handleElement:n}=oe(e),{slides:o,slideIndex:l,currentSlide:s}=oe(t),a=_(""),i=_(""),u=_([]),r=_(-1),c=_("g"),d=()=>{const W=[],F=new RegExp(a.value,c.value),C=/(<([^>]+)>)/g;for(const Z of o.value)for(const K of Z.elements)if(K.type==="text"){const G=K.content.replace(C,"").match(F);G&&W.push(...new Array(G.length).fill({slideId:Z.id,elId:K.id,elType:K.type}))}else if(K.type==="shape"&&K.text&&K.text.content){const G=K.text.content.replace(C,"").match(F);G&&W.push(...new Array(G.length).fill({slideId:Z.id,elId:K.id,elType:K.type}))}else if(K.type==="table")for(let U=0;U<K.data.length;U++){const G=K.data[U];for(let D=0;D<G.length;D++){const le=G[D];if(!le.text)continue;const ae=le.text.replace(C,"").match(F);ae&&W.push(...new Array(ae.length).fill({slideId:Z.id,elId:K.id,elType:K.type,cellIndex:[U,D]}))}}W.length?(u.value=W,r.value=0,L()):(Wt.warning("未查找到匹配项"),O())},R=W=>{const F=[...W.childNodes],C=[];for(;F.length;){const Z=F.shift();Z.nodeType===Z.TEXT_NODE?Z.wholeText&&C.push(Z):F.unshift(...Z.childNodes)}return C},p=W=>{let F=0;return W.map(Z=>{const K=F,U=F+Z.wholeText.length;return F=U,{text:Z.wholeText,startIdx:K,endIdx:U}})},f=(W,F)=>{const C=new RegExp(F,c.value),Z=[];let K=C.exec(W);for(;K;)Z.push(K),K=C.exec(W);return Z},h=(W,F,C,Z)=>{for(let K=C.length-1;K>=0;K--){const U=C[K],G=U.index,D=G+U[0].length;for(let le=0;le<F.length;le++){const{text:Re,startIdx:ae,endIdx:Se}=F[le];if(Se<G)continue;if(ae>=D)break;let J=W[le];const B=Math.max(0,G-ae),Ie=Math.min(Se,D)-ae-B;B>0&&(J=J.splitText(B)),Ie<J.wholeText.length&&J.splitText(Ie);const ce=document.createElement("mark");ce.dataset.index=Z+K+"",ce.innerText=Re.substring(B,B+Ie),J.parentNode.replaceChild(ce,J)}}},P=(W,F)=>{for(const C of W)C.innerHTML=C.innerHTML.replace(new RegExp(a.value,c.value),()=>`<mark data-index=${F++}>${a.value}</mark>`)},O=()=>{const W=document.querySelectorAll(".editable-element mark");for(const F of W)setTimeout(()=>{const C=F.parentNode,Z=F.textContent;C.replaceChild(document.createTextNode(Z),F)},0)},L=()=>{O(),setTimeout(()=>{for(let W=0;W<u.value.length;W++){const F=u.value[W-1],C=u.value[W];if(C.slideId!==s.value.id||F&&F.elId===C.elId)continue;const Z=document.querySelector(`#editable-element-${C.elId}`);if(Z)if(C.elType==="table"){const K=Z.querySelectorAll(".cell-text");P(K,W)}else{const K=R(Z),U=p(K),G=U.map(({text:le})=>le).join(""),D=f(G,a.value);h(K,U,D,W)}}},0)},S=()=>{const W=document.querySelectorAll("mark[data-index]");for(const F of W)setTimeout(()=>{const C=F.dataset.index;C!==void 0&&+C===r.value?F.classList.add("active"):F.classList.remove("active")},0)},X=()=>{if(r.value===-1)return;const W=u.value[r.value];if(W.slideId===s.value.id)setTimeout(S,0);else{const F=o.value.findIndex(C=>C.id===W.slideId);F!==-1&&t.updateSlideIndex(F)}},M=()=>{if(!a.value)return Wt.warning("请先输入查找内容");e.setActiveElementIdList([]),r.value===-1?d():r.value<u.value.length-1?r.value+=1:r.value=0,X()},y=()=>{if(!a.value)return Wt.warning("请先输入查找内容");e.setActiveElementIdList([]),r.value===-1?d():r.value>0?r.value-=1:r.value=u.value.length-1,X()},Y=()=>{if(!a.value)return;if(r.value===-1){M();return}const W=u.value[r.value];let F=null;if(W.elType==="table"){const[U,G]=W.cellIndex;F=document.querySelector(`#editable-element-${W.elId} .cell[data-cell-index="${U}_${G}"] .cell-text`)}else F=document.querySelector(`#editable-element-${W.elId} .ProseMirror`);if(!F)return;const C=document.createElement("div");C.innerHTML=F.innerHTML;let Z=!1;const K=C.querySelectorAll("mark[data-index]");for(const U of K){const G=U.parentNode;if(U.classList.contains("active"))Z?G.removeChild(U):(G.replaceChild(document.createTextNode(i.value),U),Z=!0);else{const D=U.textContent;G.replaceChild(document.createTextNode(D),U)}}if(W.elType==="text"){const U={content:C.innerHTML};t.updateElement({id:W.elId,props:U})}else if(W.elType==="shape"){const U=s.value.elements.find(G=>G.id===W.elId);if(U&&U.type==="shape"&&U.text){const G={text:{...U.text,content:C.innerHTML}};t.updateElement({id:W.elId,props:G})}}else if(W.elType==="table"){const U=s.value.elements.find(G=>G.id===W.elId);if(U&&U.type==="table"){const D={data:U.data.map((le,Re)=>Re===W.cellIndex[0]?le.map((ae,Se)=>Se===W.cellIndex[1]?{...ae,text:C.innerHTML}:ae):le)};t.updateElement({id:W.elId,props:D})}}u.value.splice(r.value,1),u.value.length?(r.value>u.value.length-1&&(r.value=0),we(()=>{L(),X()})):r.value=-1},T=()=>{var W;if(a.value){if(r.value===-1){M();return}for(let F=0;F<u.value.length;F++){const C=u.value[F-1],Z=u.value[F];if(C&&C.elId===Z.elId)continue;const K=o.value.find(D=>D.id===Z.slideId);if(!K)continue;const U=K.elements.find(D=>D.id===Z.elId);if(!U)continue;const G=document.createElement("div");if(U.type==="text"?G.innerHTML=U.content:U.type==="shape"&&(G.innerHTML=((W=U.text)==null?void 0:W.content)||""),Z.elType==="table"){const le={data:U.data.map(Re=>Re.map(ae=>ae.text?{...ae,text:ae.text.replace(new RegExp(a.value,"g"),i.value)}:ae))};t.updateElement({id:Z.elId,slideId:Z.slideId,props:le})}else{const D=R(G),le=p(D),Re=le.map(({text:B})=>B).join(""),ae=f(Re,a.value);h(D,le,ae,F);const Se=G.querySelectorAll("mark[data-index]");let J=-1;for(const B of Se){const Ie=+B.dataset.index,ce=B.parentNode;Ie===J?ce.removeChild(B):(ce.replaceChild(document.createTextNode(i.value),B),J=Ie)}if(Z.elType==="text"){const B={content:G.innerHTML};t.updateElement({id:Z.elId,slideId:Z.slideId,props:B})}else if(Z.elType==="shape"){const B=s.value.elements.find(Ie=>Ie.id===Z.elId);if(B&&B.type==="shape"&&B.text){const Ie={text:{...B.text,content:G.innerHTML}};t.updateElement({id:Z.elId,slideId:Z.slideId,props:Ie})}}}}u.value=[],r.value=-1}},V=()=>{r.value=-1,u.value=[],a.value||O()};return Pe(a,V),Pe(l,()=>{we(()=>{L(),setTimeout(S,0)})}),Pe(n,()=>{n.value&&(r.value=-1,u.value=[],O())}),Gt(O),{searchWord:a,replaceWord:i,searchResults:u,searchIndex:r,modifiers:c,searchNext:M,searchPrev:y,replace:Y,replaceAll:T,toggleModifiers:()=>{c.value=c.value==="g"?"gi":"g",V()}}},L_={class:"count"},b_={key:1,class:"footer"},I_=q({__name:"SearchPanel",setup(e){const t=Xe(),{searchWord:n,replaceWord:o,searchResults:l,searchIndex:s,modifiers:a,searchNext:i,searchPrev:u,replace:r,replaceAll:c,toggleModifiers:d}=y_(),R=_("search"),p=[{key:"search",label:"查找"},{key:"replace",label:"替换"}],f=()=>{t.setSearchPanelState(!1)},h=_();return Ge(()=>{h.value.focus()}),Pe(R,()=>{we(()=>{h.value.focus()})}),(P,O)=>{const L=te("IconClose"),S=te("IconLeft"),X=te("IconRight"),M=ze("tooltip");return g(),k(oi,{class:"search-panel",width:330,height:0,left:-270,top:90},{default:Q(()=>[m("div",{class:"close-btn",onClick:O[0]||(O[0]=y=>f()),onMousedown:O[1]||(O[1]=Fe(()=>{},["stop"]))},[N(L)],32),N(uo,{tabs:p,value:R.value,"onUpdate:value":O[2]||(O[2]=y=>R.value=y)},null,8,["value"]),m("div",{class:E(["content",R.value]),onMousedown:O[12]||(O[12]=Fe(()=>{},["stop"]))},[N(el,{class:"input",value:v(n),"onUpdate:value":O[6]||(O[6]=y=>us(n)?n.value=y:null),placeholder:"输入查找内容",onEnter:O[7]||(O[7]=y=>v(i)()),ref_key:"searchInpRef",ref:h},{suffix:Q(()=>[m("span",L_,Me(v(s)+1)+"/"+Me(v(l).length),1),N(Ce,{type:"vertical"}),de((g(),b("span",{class:E(["ignore-case",{active:v(a)==="g"}]),onClick:O[3]||(O[3]=y=>v(d)())},[Oe("Aa")],2)),[[M,"忽略大小写"]]),N(Ce,{type:"vertical"}),de(N(S,{class:"next-btn left",onClick:O[4]||(O[4]=y=>v(u)())},null,512),[[M,"上一个"]]),de(N(X,{class:"next-btn right",onClick:O[5]||(O[5]=y=>v(i)())},null,512),[[M,"下一个"]])]),_:1},8,["value"]),R.value==="replace"?(g(),k(el,{key:0,class:"input",value:v(o),"onUpdate:value":O[8]||(O[8]=y=>us(o)?o.value=y:null),placeholder:"输入替换内容",onEnter:O[9]||(O[9]=y=>v(r)())},null,8,["value"])):j("",!0),R.value==="replace"?(g(),b("div",b_,[N(Ve,{disabled:!v(n),style:{"margin-left":"5px"},onClick:O[10]||(O[10]=y=>v(r)())},{default:Q(()=>[Oe("替换")]),_:1},8,["disabled"]),N(Ve,{disabled:!v(n),type:"primary",style:{"margin-left":"5px"},onClick:O[11]||(O[11]=y=>v(c)())},{default:Q(()=>[Oe("全部替换")]),_:1},8,["disabled"])])):j("",!0)],34)]),_:1})}}}),Y_=fe(I_,[["__scopeId","data-v-d3675e58"]]),W_={class:"container"},U_={class:"notes"},Q_=["onClick"],F_={class:"header note-header"},Z_={class:"user"},A_={class:"avatar"},K_={class:"user-info"},__={class:"username"},H_={class:"time"},C_={class:"btns"},G_=["onClick"],E_=["onClick"],w_={class:"content"},k_={key:0,class:"replies"},J_={class:"header reply-header"},x_={class:"user"},$_={class:"avatar"},D_={class:"user-info"},B_={class:"username"},z_={class:"time"},j_={class:"btns"},q_=["onClick"],eH={class:"content"},tH={key:1,class:"note-reply"},nH={class:"reply-btns"},oH={key:0,class:"empty"},lH={class:"send"},sH={class:"footer"},aH=q({__name:"NotesPanel",setup(e){const t=Ue(),n=Xe(),{slideIndex:o,currentSlide:l}=oe(t),{handleElementId:s}=oe(n),a=_(""),i=_(""),u=H(()=>{var X;return((X=l.value)==null?void 0:X.notes)||[]}),r=_(""),c=_(""),d=_(),R=Pp();Pe(o,()=>{r.value="",c.value=""});const p=()=>{if(!a.value){d.value&&d.value.focus();return}const X={id:st(),content:a.value,time:new Date().getTime(),user:R.userInfo.nickname||"用户"+new Date().getTime()};s.value&&(X.elId=s.value);const M=[...u.value,X];t.updateSlide({notes:M}),a.value=""},f=X=>{const M=u.value.filter(y=>y.id!==X);t.updateSlide({notes:M})},h=()=>{if(!i.value)return;const X=u.value.find(T=>T.id===c.value);if(!X)return;const M=[...X.replies||[],{id:st(),content:i.value,time:new Date().getTime(),user:R.userInfo.nickname||"用户"+new Date().getTime()}],y={...X,replies:M},Y=u.value.map(T=>T.id===c.value?y:T);t.updateSlide({notes:Y}),i.value="",c.value=""},P=(X,M)=>{const y=u.value.find(I=>I.id===X);if(!y||!y.replies)return;const Y=y.replies.filter(I=>I.id!==M),T={...y,replies:Y},V=u.value.map(I=>I.id===X?T:I);t.updateSlide({notes:V})},O=X=>{r.value=X.id,X.elId?l.value.elements.map(y=>y.id).includes(X.elId)?n.setActiveElementIdList([X.elId]):n.setActiveElementIdList([]):n.setActiveElementIdList([])},L=()=>{t.updateSlide({notes:[]})},S=()=>{n.setNotesPanelState(!1)};return(X,M)=>{const y=te("IconUser"),Y=te("IconDelete"),T=ze("tooltip");return g(),k(oi,{class:"notes-panel",width:300,height:560,title:`幻灯片${v(o)+1}的批注`,left:-270,top:90,minWidth:300,minHeight:400,maxWidth:480,maxHeight:780,resizeable:"",onClose:M[7]||(M[7]=V=>S())},{default:Q(()=>[m("div",W_,[m("div",U_,[(g(!0),b(ie,null,me(u.value,V=>{var I;return g(),b("div",{class:E(["note",{active:r.value===V.id}]),key:V.id,onClick:W=>O(V)},[m("div",F_,[m("div",Z_,[m("div",A_,[N(y)]),m("div",K_,[m("div",__,Me(V.user),1),m("div",H_,Me(new Date(V.time).toLocaleString()),1)])]),m("div",C_,[m("div",{class:"btn reply",onClick:W=>c.value=V.id},"回复",8,G_),m("div",{class:"btn delete",onClick:Fe(W=>f(V.id),["stop"])},"删除",8,E_)])]),m("div",w_,Me(V.content),1),(I=V.replies)!=null&&I.length?(g(),b("div",k_,[(g(!0),b(ie,null,me(V.replies,W=>(g(),b("div",{class:"reply-item",key:W.id},[m("div",J_,[m("div",x_,[m("div",$_,[N(y)]),m("div",D_,[m("div",B_,Me(W.user),1),m("div",z_,Me(new Date(W.time).toLocaleString()),1)])]),m("div",j_,[m("div",{class:"btn delete",onClick:Fe(F=>P(V.id,W.id),["stop"])},"删除",8,q_)])]),m("div",eH,Me(W.content),1)]))),128))])):j("",!0),c.value===V.id?(g(),b("div",tH,[N($a,{padding:6,value:i.value,"onUpdate:value":M[0]||(M[0]=W=>i.value=W),placeholder:"输入回复内容",rows:1},null,8,["value"]),m("div",nH,[N(Ve,{class:"btn",size:"small",onClick:M[1]||(M[1]=W=>c.value="")},{default:Q(()=>[Oe("取消")]),_:1}),N(Ve,{class:"btn",size:"small",type:"primary",onClick:M[2]||(M[2]=W=>h())},{default:Q(()=>[Oe("回复")]),_:1})])])):j("",!0)],10,Q_)}),128)),u.value.length?j("",!0):(g(),b("div",oH,"本页暂无批注"))]),m("div",lH,[N($a,{ref_key:"textAreaRef",ref:d,value:a.value,"onUpdate:value":M[3]||(M[3]=V=>a.value=V),padding:6,placeholder:`输入批注(为${v(s)?"选中元素":"当前页幻灯片"})`,rows:2,onFocus:M[4]||(M[4]=()=>{c.value="",r.value=""})},null,8,["value","placeholder"]),m("div",sH,[de(N(Y,{class:"btn icon",style:{flex:"1"},onClick:M[5]||(M[5]=V=>L())},null,512),[[T,"清空本页批注"]]),N(Ve,{type:"primary",class:"btn",style:{flex:"12"},onClick:M[6]||(M[6]=V=>p())},{default:Q(()=>[Oe("添加批注")]),_:1})])])])]),_:1},8,["title"])}}}),iH=fe(aH,[["__scopeId","data-v-4246a7cc"]]),rH={class:"pptist-editor"},uH={class:"layout-content"},cH={class:"layout-content-center"},dH=q({__name:"index",setup(e){const t=Xe(),{showSelectPanel:n,showSearchPanel:o,showNotesPanel:l}=oe(t),s=_(50);return VN(),yN(),(a,i)=>(g(),b(ie,null,[m("div",rH,[N(uX,{class:"layout-header"}),N(qY,{class:"center-top"}),m("div",uH,[N(XW,{class:"layout-content-left"}),m("div",cH,[N(gL,{class:"center-body",style:ee({height:`calc(100% - ${s.value}px)`})},null,8,["style"]),N(r_,{class:"center-bottom",height:s.value,"onUpdate:height":i[0]||(i[0]=u=>s.value=u),style:ee({height:`${s.value}px`})},null,8,["height","style"])]),N(n_,{class:"layout-content-right"})])]),v(n)?(g(),k(V_,{key:0})):j("",!0),v(o)?(g(),k(Y_,{key:1})):j("",!0),v(l)?(g(),k(iH,{key:2})):j("",!0)],64))}}),RH=fe(dH,[["__scopeId","data-v-79ffbda7"]]),fH={class:"pptEditor"},pH=q({__name:"pptEditor",setup(e){const t=Il(),n=Xe(),o=ei(),l=Np(),{databaseId:s}=oe(n),{screening:a}=oe(l);return l.setScreenMode("pptEditor"),window.onbeforeunload=()=>{if(!t.isSave)return!1},t.initPPTData().then(async()=>{await Xp(),o.initSnapshotDatabase()}),Ge(async()=>{n.setAvailableFonts()}),window.addEventListener("unload",()=>{const i=localStorage.getItem(ji),u=i?JSON.parse(i):[];u.push(s.value);const r=JSON.stringify(u);localStorage.setItem(ji,r)}),(i,u)=>(g(),b("div",fH,[v(a)?(g(),k(lh,{key:0})):(g(),k(RH,{key:1}))]))}}),gH=fe(pH,[["__scopeId","data-v-de3191cb"]]);export{gH as default};
|