import{B as hR,a as vR,C as mR,D as gR,E as SR,b as MR,c as OR,F as me,K as xR,R as PR,S as NR,d as TR,T as Ci,e as XR,f as yR,g as ss,h as Od,i as LR,V as bR,j as VR,k as IR,l as FR,m as YR,n as UR,o as WR,p as AR,q as ee,r as QR,s as te,t as Re,u as A,v as X,w as ZR,x as KR,y as ER,z as CR,A as si,G as HR,H as Xe,I as L,J as GR,L as wR,M as pe,N as JR,O as DR,P as kR,Q as BR,U as _R,W as $R,X as zR,Y as jR,Z as qR,_ as ep,$ as tp,a0 as Hi,a1 as np,a2 as op,a3 as lp,a4 as xd,a5 as sp,a6 as ap,a7 as rp,a8 as ip,a9 as cp,aa as Gi,ab as up,ac as dp,ad as fp,ae as Rp,af as qs,ag as pp,ah as hp,ai as wi,aj as vp,ak as mp,al as gp,am as Pl,an as St,ao as re,ap as Sp,aq as ue,ar as Mp,as as Op,at as ro,au as xp,av as Pp,aw as Np,ax as pt,ay as Tp,az as Xp,aA as Pd,aB as yp,aC as Ct,aD as Lp,aE as V,aF as st,aG as ps,aH as bp,aI as at,aJ as Vp,aK as Nd,aL as Ip,aM as _,aN as Fp,aO as Ji,aP as ye,aQ as je,aR as ce,aS as Mt,aT as Tn,aU as Yp,aV as Up,aW as Wp,aX as Ap,aY as Qp,aZ as Zp,a_ as Kp,a$ as Io,b0 as Ep,b1 as Cp,b2 as Hp,b3 as Ye,b4 as Gp,b5 as wp,b6 as Jp,b7 as Di,b8 as Td,b9 as Dp,ba as kp,bb as Bp,bc as I,bd as Xd,be as _p,bf as $p,bg as zp,bh as jp,bi as yd,bj as qp,bk as e2,bl as t2,bm as n2,bn as o2,bo as Ld,bp as to,bq as l2,br as s2,bs as Ce,bt as Il,bu as a2,bv as r2,bw as i2,bx as Z,by as c2,bz as xe,bA as Fn,bB as u2,bC as He,bD as d2,bE as tl,bF as hs,bG as sl,bH as ki,bI as bd,bJ as f2,bK as nl,bL as Oa,bM as R2,bN as as,bO as Bi,bP as ea,bQ as Vd,bR as Fl,bS as ta,bT as p2,bU as h2,bV as E0,bW as no,bX as v2,bY as C0,bZ as m2,b_ as g2,b$ as S2,c0 as Jt,c1 as _i,c2 as M2,c3 as rs,c4 as H0,c5 as Eo,c6 as O2,c7 as mt,c8 as G0,c9 as na,ca as Fo,cb as x2,cc as P2,cd as N2,ce as T2,cf as In,cg as Id,ch as Co,ci as ai,cj as $i,ck as X2,cl as Fd,cm as Yd,cn as Ud,co as Wd,cp as y2,cq as L2,cr as b2,cs as V2,ct as w0,cu as I2,cv as F2,cw as Y2,cx as U2,cy as J0,cz as D0,cA as W2,cB as k0,cC as tt,cD as xa,cE as zi,cF as ji,cG as Et,cH as Le,cI as Qe,cJ as de,cK as Pt,cL as kn,cM as $a,cN as A2,cO as Q2,cP as Gs,cQ as Z2,cR as Me,cS as Lt,cT as ln,cU as Jn,cV as mn,cW as Ad,cX as Ot,cY as Pa,cZ as qi,c_ as K2,c$ as Qd,d0 as Yl,d1 as Zd,d2 as E2,d3 as ri,d4 as Kd,d5 as Na,d6 as Ed,d7 as C2,d8 as Cd,d9 as wt,da as H2,db as G2,dc as w2,dd as J2,de as D2,df as k2,dg as B2,dh as _2,di as $2,dj as Hd,dk as z2,dl as oa,dm as j2,dn as ii,dp as Bt,dq as $n,dr as B0,ds as q2,dt as eh,du as th,dv as nh,dw as oh,dx as nt,dy as lh,dz as sh,dA as vs,dB as ah,dC as Ht,dD as rh,dE as ih,dF as ch,dG as uh,dH as _0}from"./index-DBygDY21.js";import{S as lt,u as ms,c as ci,g as uo,a as dh,p as ui,i as fh,K as We,m as zt,b as Ta,d as Rh,j as ph,e as hh,H as vh,P as Je,f as la,h as za,k as fo,l as Xa,n as Gd,o as mh,q as gh,_ as Sh,E as wd,r as Mh,s as Oh,t as xh,v as sa,C as Ph,w as Nh,x as Th,y as Xh,z as yh,V as Lh,A as bh,B as Vh,D as Vt,F as Nl,G as Ih,I as qe,T as e0,J as Fh,L as Yh,M as Uh,N as Wh,O as Ah,Q as Qh,R as eo,U as Zh,W as Jd,X as Kh,Y as $0,Z as z0,$ as j0,a0 as ul,a1 as ja,a2 as Eh,a3 as Ch,a4 as Sl,a5 as t0,a6 as Hh}from"./index-BJ2AGjfq.js";import{u as Gh,a as wh,b as Jh,c as gs,E as Dd,d as q0}from"./index-C60qUvnf.js";/** * vue v3.4.34 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/const Dh=()=>{},kh=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:hR,BaseTransitionPropsValidators:vR,Comment:mR,DeprecationTypes:gR,EffectScope:SR,ErrorCodes:MR,ErrorTypeStrings:OR,Fragment:me,KeepAlive:xR,ReactiveEffect:PR,Static:NR,Suspense:TR,Teleport:Ci,Text:XR,TrackOpTypes:yR,Transition:ss,TransitionGroup:Od,TriggerOpTypes:LR,VueElement:bR,assertNumber:VR,callWithAsyncErrorHandling:IR,callWithErrorHandling:FR,camelize:YR,capitalize:UR,cloneVNode:WR,compatUtils:AR,compile:Dh,computed:ee,createApp:QR,createBlock:te,createCommentVNode:Re,createElementBlock:A,createElementVNode:X,createHydrationRenderer:ZR,createPropsRestProxy:KR,createRenderer:ER,createSSRApp:CR,createSlots:si,createStaticVNode:HR,createTextVNode:Xe,createVNode:L,customRef:GR,defineAsyncComponent:wR,defineComponent:pe,defineCustomElement:JR,defineEmits:DR,defineExpose:kR,defineModel:BR,defineOptions:_R,defineProps:$R,defineSSRCustomElement:zR,defineSlots:jR,devtools:qR,effect:ep,effectScope:tp,getCurrentInstance:Hi,getCurrentScope:np,getTransitionRawChildren:op,guardReactiveProps:lp,h:xd,handleError:sp,hasInjectionContext:ap,hydrate:rp,initCustomFormatter:ip,initDirectivesForSSR:cp,inject:Gi,isMemoSame:up,isProxy:dp,isReactive:fp,isReadonly:Rp,isRef:qs,isRuntimeOnly:pp,isShallow:hp,isVNode:wi,markRaw:vp,mergeDefaults:mp,mergeModels:gp,mergeProps:Pl,nextTick:St,normalizeClass:re,normalizeProps:Sp,normalizeStyle:ue,onActivated:Mp,onBeforeMount:Op,onBeforeUnmount:ro,onBeforeUpdate:xp,onDeactivated:Pp,onErrorCaptured:Np,onMounted:pt,onRenderTracked:Tp,onRenderTriggered:Xp,onScopeDispose:Pd,onServerPrefetch:yp,onUnmounted:Ct,onUpdated:Lp,openBlock:V,popScopeId:st,provide:ps,proxyRefs:bp,pushScopeId:at,queuePostFlushCb:Vp,reactive:Nd,readonly:Ip,ref:_,registerRuntimeCompiler:Fp,render:Ji,renderList:ye,renderSlot:je,resolveComponent:ce,resolveDirective:Mt,resolveDynamicComponent:Tn,resolveFilter:Yp,resolveTransitionHooks:Up,setBlockTracking:Wp,setDevtoolsHook:Ap,setTransitionHooks:Qp,shallowReactive:Zp,shallowReadonly:Kp,shallowRef:Io,ssrContextKey:Ep,ssrUtils:Cp,stop:Hp,toDisplayString:Ye,toHandlerKey:Gp,toHandlers:wp,toRaw:Jp,toRef:Di,toRefs:Td,toValue:Dp,transformVNodeArgs:kp,triggerRef:Bp,unref:I,useAttrs:Xd,useCssModule:_p,useCssVars:$p,useModel:zp,useSSRContext:jp,useSlots:yd,useTransitionState:qp,vModelCheckbox:e2,vModelDynamic:t2,vModelRadio:n2,vModelSelect:o2,vModelText:Ld,vShow:to,version:l2,warn:s2,watch:Ce,watchEffect:Il,watchPostEffect:a2,watchSyncEffect:r2,withAsyncContext:i2,withCtx:Z,withDefaults:c2,withDirectives:xe,withKeys:Fn,withMemo:u2,withModifiers:He,withScopeId:d2},Symbol.toStringTag,{value:"Module"})),Bh='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',_h=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,ec=e=>Array.from(e.querySelectorAll(Bh)).filter(t=>$h(t)&&_h(t)),$h=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}},zh=()=>tl&&/firefox/i.test(window.navigator.userAgent);var di=hs(sl,"WeakMap"),tc=Object.create,jh=function(){function e(){}return function(t){if(!ki(t))return{};if(tc)return tc(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function qh(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n-1&&e%1==0&&e-1&&e%1==0&&e<=av}function $d(e){return e!=null&&_d(e.length)&&!f2(e)}var rv=Object.prototype;function n0(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||rv;return e===n}function iv(e,t){for(var n=-1,o=Array(e);++nr))return!1;var i=a.get(e),u=a.get(t);if(i&&u)return i==t&&u==e;var d=-1,f=!0,p=n&A4?new ia:void 0;for(a.set(e,t),a.set(t,e);++d{var t;if(!tl)return 0;if(Is!==void 0)return Is;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 a=l.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),Is=o-a,Is},vi="update:modelValue",c3=e=>["",...p2].includes(e);var Js=(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))(Js||{});const u3=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),d3=["class","style"],f3=/^on[A-Z]/,R3=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,o=ee(()=>((n==null?void 0:n.value)||[]).concat(d3)),l=Hi();return l?ee(()=>{var a;return h2(Object.entries((a=l.proxy)==null?void 0:a.$attrs).filter(([s])=>!o.value.includes(s)&&!(t&&f3.test(s))))}):ee(()=>({}))},p3=(e,t,n,o)=>{let l={offsetX:0,offsetY:0};const a=c=>{const i=c.clientX,u=c.clientY,{offsetX:d,offsetY:f}=l,p=e.value.getBoundingClientRect(),R=p.left,h=p.top,v=p.width,M=p.height,g=document.documentElement.clientWidth,m=document.documentElement.clientHeight,O=-R+d,S=-h+f,P=g-R-v+d,b=m-h-M+f,N=T=>{let y=d+T.clientX-i,Y=f+T.clientY-u;o!=null&&o.value||(y=Math.min(Math.max(y,O),P),Y=Math.min(Math.max(Y,S),b)),l={offsetX:y,offsetY:Y},e.value&&(e.value.style.transform=`translate(${E0(y)}, ${E0(Y)})`)},x=()=>{document.removeEventListener("mousemove",N),document.removeEventListener("mouseup",x)};document.addEventListener("mousemove",N),document.addEventListener("mouseup",x)},s=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",a)},r=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",a)};pt(()=>{Il(()=>{n.value?s():r()})}),ro(()=>{r()})},h3=(e,t={})=>{qs(e)||ba("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||no("popup"),o=v2(()=>n.bm("parent","hidden"));if(!tl||C0(document.body,o.value))return;let l=0,a=!1,s="0";const r=()=>{setTimeout(()=>{S2(document==null?void 0:document.body,o.value),a&&document&&(document.body.style.width=s)},200)};Ce(e,c=>{if(!c){r();return}a=!C0(document.body,o.value),a&&(s=document.body.style.width),l=i3(n.namespace.value);const i=document.documentElement.clientHeight0&&(i||u==="scroll")&&a&&(document.body.style.width=`calc(100% - ${l}px)`),g2(document.body,o.value)}),Pd(()=>r())},hf=e=>{if(!e)return{onClick:Jt,onMousedown:Jt,onMouseup:Jt};let t=!1,n=!1;return{onClick:s=>{t&&n&&e(s),t=n=!1},onMousedown:s=>{t=s.target===s.currentTarget},onMouseup:s=>{n=s.target===s.currentTarget}}};let vl=[];const Tc=e=>{const t=e;t.key===_i.esc&&vl.forEach(n=>n(t))},v3=e=>{pt(()=>{vl.length===0&&document.addEventListener("keydown",Tc),tl&&vl.push(e)}),ro(()=>{vl=vl.filter(t=>t!==e),vl.length===0&&tl&&document.removeEventListener("keydown",Tc)})};function m3(e){const t=_();function n(){if(e.value==null)return;const{selectionStart:l,selectionEnd:a,value:s}=e.value;if(l==null||a==null)return;const r=s.slice(0,Math.max(0,l)),c=s.slice(Math.max(0,a));t.value={selectionStart:l,selectionEnd:a,value:s,beforeTxt:r,afterTxt:c}}function o(){if(e.value==null||t.value==null)return;const{value:l}=e.value,{beforeTxt:a,afterTxt:s,selectionStart:r}=t.value;if(a==null||s==null||r==null)return;let c=l.length;if(l.endsWith(s))c=l.length-s.length;else if(l.startsWith(a))c=a.length;else{const i=a[r-1],u=l.indexOf(i,r-1);u!==-1&&(c=u+1)}e.value.setSelectionRange(c,c)}return[n,o]}function g3(e,{afterFocus:t,beforeBlur:n,afterBlur:o}={}){const l=Hi(),{emit:a}=l,s=Io(),r=_(!1),c=d=>{r.value||(r.value=!0,a("focus",d),t==null||t())},i=d=>{var f;rs(n)&&n(d)||d.relatedTarget&&((f=s.value)!=null&&f.contains(d.relatedTarget))||(r.value=!1,a("blur",d),o==null||o())},u=()=>{var d;(d=e.value)==null||d.focus()};return Ce(s,d=>{d&&d.setAttribute("tabindex","-1")}),M2(s,"click",u),{wrapperRef:s,isFocused:r,handleFocus:c,handleBlur:i}}let Zn;const S3=` height:0 !important; visibility:hidden !important; ${zh()?"":"overflow:hidden !important;"} position:absolute !important; z-index:-1000 !important; top:0 !important; right:0 !important; `,M3=["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 O3(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:M3.map(s=>`${s}:${t.getPropertyValue(s)}`).join(";"),paddingSize:o,borderSize:l,boxSizing:n}}function Xc(e,t=1,n){var o;Zn||(Zn=document.createElement("textarea"),document.body.appendChild(Zn));const{paddingSize:l,borderSize:a,boxSizing:s,contextStyle:r}=O3(e);Zn.setAttribute("style",`${r};${S3}`),Zn.value=e.value||e.placeholder||"";let c=Zn.scrollHeight;const i={};s==="border-box"?c=c+a:s==="content-box"&&(c=c-l),Zn.value="";const u=Zn.scrollHeight-l;if(H0(t)){let d=u*t;s==="border-box"&&(d=d+l+a),c=Math.max(d,c),i.minHeight=`${d}px`}if(H0(n)){let d=u*n;s==="border-box"&&(d=d+l+a),c=Math.min(d,c)}return i.height=`${c}px`,(o=Zn.parentNode)==null||o.removeChild(Zn),Zn=void 0,i}const x3=Eo({id:{type:String,default:void 0},size:O2,disabled:Boolean,modelValue:{type:mt([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:mt([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:G0},prefixIcon:{type:G0},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:mt([Object,Array,String]),default:()=>na({})},autofocus:{type:Boolean,default:!1}}),P3={[vi]:e=>Fo(e),input:e=>Fo(e),change:e=>Fo(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},N3=["role"],T3=["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],X3=["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],y3=pe({name:"ElInput",inheritAttrs:!1}),L3=pe({...y3,props:x3,emits:P3,setup(e,{expose:t,emit:n}){const o=e,l=Xd(),a=yd(),s=ee(()=>{const ge={};return o.containerRole==="combobox"&&(ge["aria-haspopup"]=l["aria-haspopup"],ge["aria-owns"]=l["aria-owns"],ge["aria-expanded"]=l["aria-expanded"]),ge}),r=ee(()=>[o.type==="textarea"?v.b():h.b(),h.m(p.value),h.is("disabled",R.value),h.is("exceed",E.value),{[h.b("group")]:a.prepend||a.append,[h.bm("group","append")]:a.append,[h.bm("group","prepend")]:a.prepend,[h.m("prefix")]:a.prefix||o.prefixIcon,[h.m("suffix")]:a.suffix||o.suffixIcon||o.clearable||o.showPassword,[h.bm("suffix","password-clear")]:se.value&&H.value,[h.b("hidden")]:o.type==="hidden"},l.class]),c=ee(()=>[h.e("wrapper"),h.is("focus",T.value)]),i=R3({excludeKeys:ee(()=>Object.keys(s.value))}),{form:u,formItem:d}=Gh(),{inputId:f}=wh(o,{formItemContext:d}),p=Jh(),R=gs(),h=no("input"),v=no("textarea"),M=Io(),g=Io(),m=_(!1),O=_(!1),S=_(!1),P=_(),b=Io(o.inputStyle),N=ee(()=>M.value||g.value),{wrapperRef:x,isFocused:T,handleFocus:y,handleBlur:Y}=g3(N,{afterBlur(){var ge;o.validateEvent&&((ge=d==null?void 0:d.validate)==null||ge.call(d,"blur").catch(Ge=>void 0))}}),U=ee(()=>{var ge;return(ge=u==null?void 0:u.statusIcon)!=null?ge:!1}),W=ee(()=>(d==null?void 0:d.validateState)||""),C=ee(()=>W.value&&x2[W.value]),F=ee(()=>S.value?P2:N2),J=ee(()=>[l.style]),w=ee(()=>[o.inputStyle,b.value,{resize:o.resize}]),q=ee(()=>La(o.modelValue)?"":String(o.modelValue)),se=ee(()=>o.clearable&&!R.value&&!o.readonly&&!!q.value&&(T.value||m.value)),H=ee(()=>o.showPassword&&!R.value&&!o.readonly&&!!q.value&&(!!q.value||T.value)),G=ee(()=>o.showWordLimit&&!!o.maxlength&&(o.type==="text"||o.type==="textarea")&&!R.value&&!o.readonly&&!o.showPassword),Q=ee(()=>q.value.length),E=ee(()=>!!G.value&&Q.value>Number(o.maxlength)),le=ee(()=>!!a.suffix||!!o.suffixIcon||se.value||o.showPassword||G.value||!!W.value&&U.value),[B,D]=m3(M);T2(g,ge=>{if(k(),!G.value||o.resize!=="both")return;const Ge=ge[0],{width:vt}=Ge.contentRect;P.value={right:`calc(100% - ${vt+15+6}px)`}});const z=()=>{const{type:ge,autosize:Ge}=o;if(!(!tl||ge!=="textarea"||!g.value))if(Ge){const vt=ai(Ge)?Ge.minRows:void 0,fn=ai(Ge)?Ge.maxRows:void 0,ne=Xc(g.value,vt,fn);b.value={overflowY:"hidden",...ne},St(()=>{g.value.offsetHeight,b.value=ne})}else b.value={minHeight:Xc(g.value).minHeight}},k=(ge=>{let Ge=!1;return()=>{var vt;if(Ge||!o.autosize)return;((vt=g.value)==null?void 0:vt.offsetParent)===null||(ge(),Ge=!0)}})(z),j=()=>{const ge=N.value,Ge=o.formatter?o.formatter(q.value):q.value;!ge||ge.value===Ge||(ge.value=Ge)},K=async ge=>{B();let{value:Ge}=ge.target;if(o.formatter&&(Ge=o.parser?o.parser(Ge):Ge),!O.value){if(Ge===q.value){j();return}n(vi,Ge),n("input",Ge),await St(),j(),D()}},$=ge=>{n("change",ge.target.value)},ae=ge=>{n("compositionstart",ge),O.value=!0},fe=ge=>{var Ge;n("compositionupdate",ge);const vt=(Ge=ge.target)==null?void 0:Ge.value,fn=vt[vt.length-1]||"";O.value=!u3(fn)},Ne=ge=>{n("compositionend",ge),O.value&&(O.value=!1,K(ge))},Fe=()=>{S.value=!S.value,Ue()},Ue=async()=>{var ge;await St(),(ge=N.value)==null||ge.focus()},Oe=()=>{var ge;return(ge=N.value)==null?void 0:ge.blur()},Se=ge=>{m.value=!1,n("mouseleave",ge)},Te=ge=>{m.value=!0,n("mouseenter",ge)},ve=ge=>{n("keydown",ge)},Ze=()=>{var ge;(ge=N.value)==null||ge.select()},rt=()=>{n(vi,""),n("change",""),n("clear"),n("input","")};return Ce(()=>o.modelValue,()=>{var ge;St(()=>z()),o.validateEvent&&((ge=d==null?void 0:d.validate)==null||ge.call(d,"change").catch(Ge=>void 0))}),Ce(q,()=>j()),Ce(()=>o.type,async()=>{await St(),j(),z()}),pt(()=>{!o.formatter&&o.parser,j(),St(z)}),t({input:M,textarea:g,ref:N,textareaStyle:w,autosize:Di(o,"autosize"),focus:Ue,blur:Oe,select:Ze,clear:rt,resizeTextarea:z}),(ge,Ge)=>(V(),A("div",Pl(I(s),{class:I(r),style:I(J),role:ge.containerRole,onMouseenter:Te,onMouseleave:Se}),[Re(" input "),ge.type!=="textarea"?(V(),A(me,{key:0},[Re(" prepend slot "),ge.$slots.prepend?(V(),A("div",{key:0,class:re(I(h).be("group","prepend"))},[je(ge.$slots,"prepend")],2)):Re("v-if",!0),X("div",{ref_key:"wrapperRef",ref:x,class:re(I(c))},[Re(" prefix slot "),ge.$slots.prefix||ge.prefixIcon?(V(),A("span",{key:0,class:re(I(h).e("prefix"))},[X("span",{class:re(I(h).e("prefix-inner"))},[je(ge.$slots,"prefix"),ge.prefixIcon?(V(),te(I(In),{key:0,class:re(I(h).e("icon"))},{default:Z(()=>[(V(),te(Tn(ge.prefixIcon)))]),_:1},8,["class"])):Re("v-if",!0)],2)],2)):Re("v-if",!0),X("input",Pl({id:I(f),ref_key:"input",ref:M,class:I(h).e("inner")},I(i),{minlength:ge.minlength,maxlength:ge.maxlength,type:ge.showPassword?S.value?"text":"password":ge.type,disabled:I(R),readonly:ge.readonly,autocomplete:ge.autocomplete,tabindex:ge.tabindex,"aria-label":ge.label,placeholder:ge.placeholder,style:ge.inputStyle,form:ge.form,autofocus:ge.autofocus,onCompositionstart:ae,onCompositionupdate:fe,onCompositionend:Ne,onInput:K,onFocus:Ge[0]||(Ge[0]=(...vt)=>I(y)&&I(y)(...vt)),onBlur:Ge[1]||(Ge[1]=(...vt)=>I(Y)&&I(Y)(...vt)),onChange:$,onKeydown:ve}),null,16,T3),Re(" suffix slot "),I(le)?(V(),A("span",{key:1,class:re(I(h).e("suffix"))},[X("span",{class:re(I(h).e("suffix-inner"))},[!I(se)||!I(H)||!I(G)?(V(),A(me,{key:0},[je(ge.$slots,"suffix"),ge.suffixIcon?(V(),te(I(In),{key:0,class:re(I(h).e("icon"))},{default:Z(()=>[(V(),te(Tn(ge.suffixIcon)))]),_:1},8,["class"])):Re("v-if",!0)],64)):Re("v-if",!0),I(se)?(V(),te(I(In),{key:1,class:re([I(h).e("icon"),I(h).e("clear")]),onMousedown:He(I(Jt),["prevent"]),onClick:rt},{default:Z(()=>[L(I(Id))]),_:1},8,["class","onMousedown"])):Re("v-if",!0),I(H)?(V(),te(I(In),{key:2,class:re([I(h).e("icon"),I(h).e("password")]),onClick:Fe},{default:Z(()=>[(V(),te(Tn(I(F))))]),_:1},8,["class"])):Re("v-if",!0),I(G)?(V(),A("span",{key:3,class:re(I(h).e("count"))},[X("span",{class:re(I(h).e("count-inner"))},Ye(I(Q))+" / "+Ye(ge.maxlength),3)],2)):Re("v-if",!0),I(W)&&I(C)&&I(U)?(V(),te(I(In),{key:4,class:re([I(h).e("icon"),I(h).e("validateIcon"),I(h).is("loading",I(W)==="validating")])},{default:Z(()=>[(V(),te(Tn(I(C))))]),_:1},8,["class"])):Re("v-if",!0)],2)],2)):Re("v-if",!0)],2),Re(" append slot "),ge.$slots.append?(V(),A("div",{key:1,class:re(I(h).be("group","append"))},[je(ge.$slots,"append")],2)):Re("v-if",!0)],64)):(V(),A(me,{key:1},[Re(" textarea "),X("textarea",Pl({id:I(f),ref_key:"textarea",ref:g,class:I(v).e("inner")},I(i),{minlength:ge.minlength,maxlength:ge.maxlength,tabindex:ge.tabindex,disabled:I(R),readonly:ge.readonly,autocomplete:ge.autocomplete,style:I(w),"aria-label":ge.label,placeholder:ge.placeholder,form:ge.form,autofocus:ge.autofocus,onCompositionstart:ae,onCompositionupdate:fe,onCompositionend:Ne,onInput:K,onFocus:Ge[2]||(Ge[2]=(...vt)=>I(y)&&I(y)(...vt)),onBlur:Ge[3]||(Ge[3]=(...vt)=>I(Y)&&I(Y)(...vt)),onChange:$,onKeydown:ve}),null,16,X3),I(G)?(V(),A("span",{key:0,style:ue(P.value),class:re(I(h).e("count"))},Ye(I(Q))+" / "+Ye(ge.maxlength),7)):Re("v-if",!0)],64))],16,N3))}});var b3=Co(L3,[["__file","input.vue"]]);const V3=$i(b3),tr="focus-trap.focus-after-trapped",nr="focus-trap.focus-after-released",I3="focus-trap.focusout-prevented",yc={cancelable:!0,bubbles:!1},F3={cancelable:!0,bubbles:!1},Lc="focusAfterTrapped",bc="focusAfterReleased",Y3=Symbol("elFocusTrap"),i0=_(),Va=_(0),c0=_(0);let Fs=0;const vf=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},Vc=(e,t)=>{for(const n of e)if(!U3(n,t))return n},U3=(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},W3=e=>{const t=vf(e),n=Vc(t,e),o=Vc(t.reverse(),e);return[n,o]},A3=e=>e instanceof HTMLInputElement&&"select"in e,Oo=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),c0.value=window.performance.now(),e!==n&&A3(e)&&t&&e.select()}};function Ic(e,t){const n=[...e],o=e.indexOf(t);return o!==-1&&n.splice(o,1),n}const Q3=()=>{let e=[];return{push:o=>{const l=e[0];l&&o!==l&&l.pause(),e=Ic(e,o),e.unshift(o)},remove:o=>{var l,a;e=Ic(e,o),(a=(l=e[0])==null?void 0:l.resume)==null||a.call(l)}}},Z3=(e,t=!1)=>{const n=document.activeElement;for(const o of e)if(Oo(o,t),document.activeElement!==n)return},Fc=Q3(),K3=()=>Va.value>c0.value,Ys=()=>{i0.value="pointer",Va.value=window.performance.now()},Yc=()=>{i0.value="keyboard",Va.value=window.performance.now()},E3=()=>(pt(()=>{Fs===0&&(document.addEventListener("mousedown",Ys),document.addEventListener("touchstart",Ys),document.addEventListener("keydown",Yc)),Fs++}),ro(()=>{Fs--,Fs<=0&&(document.removeEventListener("mousedown",Ys),document.removeEventListener("touchstart",Ys),document.removeEventListener("keydown",Yc))}),{focusReason:i0,lastUserFocusTimestamp:Va,lastAutomatedFocusTimestamp:c0}),Us=e=>new CustomEvent(I3,{...F3,detail:e}),C3=pe({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[Lc,bc,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=_();let o,l;const{focusReason:a}=E3();v3(R=>{e.trapped&&!s.paused&&t("release-requested",R)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},r=R=>{if(!e.loop&&!e.trapped||s.paused)return;const{key:h,altKey:v,ctrlKey:M,metaKey:g,currentTarget:m,shiftKey:O}=R,{loop:S}=e,P=h===_i.tab&&!v&&!M&&!g,b=document.activeElement;if(P&&b){const N=m,[x,T]=W3(N);if(x&&T){if(!O&&b===T){const Y=Us({focusReason:a.value});t("focusout-prevented",Y),Y.defaultPrevented||(R.preventDefault(),S&&Oo(x,!0))}else if(O&&[x,N].includes(b)){const Y=Us({focusReason:a.value});t("focusout-prevented",Y),Y.defaultPrevented||(R.preventDefault(),S&&Oo(T,!0))}}else if(b===N){const Y=Us({focusReason:a.value});t("focusout-prevented",Y),Y.defaultPrevented||R.preventDefault()}}};ps(Y3,{focusTrapRef:n,onKeydown:r}),Ce(()=>e.focusTrapEl,R=>{R&&(n.value=R)},{immediate:!0}),Ce([n],([R],[h])=>{R&&(R.addEventListener("keydown",r),R.addEventListener("focusin",u),R.addEventListener("focusout",d)),h&&(h.removeEventListener("keydown",r),h.removeEventListener("focusin",u),h.removeEventListener("focusout",d))});const c=R=>{t(Lc,R)},i=R=>t(bc,R),u=R=>{const h=I(n);if(!h)return;const v=R.target,M=R.relatedTarget,g=v&&h.contains(v);e.trapped||M&&h.contains(M)||(o=M),g&&t("focusin",R),!s.paused&&e.trapped&&(g?l=v:Oo(l,!0))},d=R=>{const h=I(n);if(!(s.paused||!h))if(e.trapped){const v=R.relatedTarget;!La(v)&&!h.contains(v)&&setTimeout(()=>{if(!s.paused&&e.trapped){const M=Us({focusReason:a.value});t("focusout-prevented",M),M.defaultPrevented||Oo(l,!0)}},0)}else{const v=R.target;v&&h.contains(v)||t("focusout",R)}};async function f(){await St();const R=I(n);if(R){Fc.push(s);const h=R.contains(document.activeElement)?o:document.activeElement;if(o=h,!R.contains(h)){const M=new Event(tr,yc);R.addEventListener(tr,c),R.dispatchEvent(M),M.defaultPrevented||St(()=>{let g=e.focusStartEl;Fo(g)||(Oo(g),document.activeElement!==g&&(g="first")),g==="first"&&Z3(vf(R),!0),(document.activeElement===h||g==="container")&&Oo(R)})}}}function p(){const R=I(n);if(R){R.removeEventListener(tr,c);const h=new CustomEvent(nr,{...yc,detail:{focusReason:a.value}});R.addEventListener(nr,i),R.dispatchEvent(h),!h.defaultPrevented&&(a.value=="keyboard"||!K3()||R.contains(document.activeElement))&&Oo(o??document.body),R.removeEventListener(nr,i),Fc.remove(s)}}return pt(()=>{e.trapped&&f(),Ce(()=>e.trapped,R=>{R?f():p()})}),ro(()=>{e.trapped&&p()}),{onKeydown:r}}});function H3(e,t,n,o,l,a){return je(e.$slots,"default",{handleKeydown:e.onKeydown})}var G3=Co(C3,[["render",H3],["__file","focus-trap.vue"]]);const mi="_trap-focus-children",_o=[],Uc=e=>{if(_o.length===0)return;const t=_o[_o.length-1][mi];if(t.length>0&&e.code===_i.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())}},w3={beforeMount(e){e[mi]=ec(e),_o.push(e),_o.length<=1&&document.addEventListener("keydown",Uc)},updated(e){St(()=>{e[mi]=ec(e)})},unmounted(){_o.shift(),_o.length===0&&document.removeEventListener("keydown",Uc)}},J3=Eo({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:mt([String,Array,Object])},zIndex:{type:mt([String,Number])}}),D3={click:e=>e instanceof MouseEvent},k3="overlay";var B3=pe({name:"ElOverlay",props:J3,emits:D3,setup(e,{slots:t,emit:n}){const o=no(k3),l=c=>{n("click",c)},{onClick:a,onMousedown:s,onMouseup:r}=hf(e.customMaskEvent?void 0:l);return()=>e.mask?L("div",{class:[o.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:a,onMousedown:s,onMouseup:r},[je(t,"default")],Js.STYLE|Js.CLASS|Js.PROPS,["onClick","onMouseup","onMousedown"]):xd("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[je(t,"default")])}});const _3=B3,$3=Eo({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:mt(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:mt([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:mt(Function),default:e=>`${e}%`}}),z3=["aria-valuenow"],j3={viewBox:"0 0 100 100"},q3=["d","stroke","stroke-linecap","stroke-width"],eg=["d","stroke","opacity","stroke-linecap","stroke-width"],tg={key:0},ng=pe({name:"ElProgress"}),og=pe({...ng,props:$3,setup(e){const t=e,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},o=no("progress"),l=ee(()=>({width:`${t.percentage}%`,animationDuration:`${t.duration}s`,backgroundColor:g(t.percentage)})),a=ee(()=>(t.strokeWidth/t.width*100).toFixed(1)),s=ee(()=>["circle","dashboard"].includes(t.type)?Number.parseInt(`${50-Number.parseFloat(a.value)/2}`,10):0),r=ee(()=>{const m=s.value,O=t.type==="dashboard";return` M 50 50 m 0 ${O?"":"-"}${m} a ${m} ${m} 0 1 1 0 ${O?"-":""}${m*2} a ${m} ${m} 0 1 1 0 ${O?"":"-"}${m*2} `}),c=ee(()=>2*Math.PI*s.value),i=ee(()=>t.type==="dashboard"?.75:1),u=ee(()=>`${-1*c.value*(1-i.value)/2}px`),d=ee(()=>({strokeDasharray:`${c.value*i.value}px, ${c.value}px`,strokeDashoffset:u.value})),f=ee(()=>({strokeDasharray:`${c.value*i.value*(t.percentage/100)}px, ${c.value}px`,strokeDashoffset:u.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),p=ee(()=>{let m;return t.color?m=g(t.percentage):m=n[t.status]||n.default,m}),R=ee(()=>t.status==="warning"?X2:t.type==="line"?t.status==="success"?Fd:Id:t.status==="success"?Yd:Ud),h=ee(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),v=ee(()=>t.format(t.percentage));function M(m){const O=100/m.length;return m.map((P,b)=>Fo(P)?{color:P,percentage:(b+1)*O}:P).sort((P,b)=>P.percentage-b.percentage)}const g=m=>{var O;const{color:S}=t;if(rs(S))return S(m);if(Fo(S))return S;{const P=M(S);for(const b of P)if(b.percentage>m)return b.color;return(O=P[P.length-1])==null?void 0:O.color}};return(m,O)=>(V(),A("div",{class:re([I(o).b(),I(o).m(m.type),I(o).is(m.status),{[I(o).m("without-text")]:!m.showText,[I(o).m("text-inside")]:m.textInside}]),role:"progressbar","aria-valuenow":m.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[m.type==="line"?(V(),A("div",{key:0,class:re(I(o).b("bar"))},[X("div",{class:re(I(o).be("bar","outer")),style:ue({height:`${m.strokeWidth}px`})},[X("div",{class:re([I(o).be("bar","inner"),{[I(o).bem("bar","inner","indeterminate")]:m.indeterminate},{[I(o).bem("bar","inner","striped")]:m.striped},{[I(o).bem("bar","inner","striped-flow")]:m.stripedFlow}]),style:ue(I(l))},[(m.showText||m.$slots.default)&&m.textInside?(V(),A("div",{key:0,class:re(I(o).be("bar","innerText"))},[je(m.$slots,"default",{percentage:m.percentage},()=>[X("span",null,Ye(I(v)),1)])],2)):Re("v-if",!0)],6)],6)],2)):(V(),A("div",{key:1,class:re(I(o).b("circle")),style:ue({height:`${m.width}px`,width:`${m.width}px`})},[(V(),A("svg",j3,[X("path",{class:re(I(o).be("circle","track")),d:I(r),stroke:`var(${I(o).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":m.strokeLinecap,"stroke-width":I(a),fill:"none",style:ue(I(d))},null,14,q3),X("path",{class:re(I(o).be("circle","path")),d:I(r),stroke:I(p),fill:"none",opacity:m.percentage?1:0,"stroke-linecap":m.strokeLinecap,"stroke-width":I(a),style:ue(I(f))},null,14,eg)]))],6)),(m.showText||m.$slots.default)&&!m.textInside?(V(),A("div",{key:2,class:re(I(o).e("text")),style:ue({fontSize:`${I(h)}px`})},[je(m.$slots,"default",{percentage:m.percentage},()=>[m.status?(V(),te(I(In),{key:1},{default:Z(()=>[(V(),te(Tn(I(R))))]),_:1})):(V(),A("span",tg,Ye(I(v)),1))])],6)):Re("v-if",!0)],10,z3))}});var lg=Co(og,[["__file","progress.vue"]]);const mf=$i(lg),gf=Symbol("uploadContextKey"),sg="ElUpload";class ag extends Error{constructor(t,n,o,l){super(t),this.name="UploadAjaxError",this.status=n,this.method=o,this.url=l}}function Wc(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 ag(o,n.status,t.method,e)}function rg(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const ig=e=>{typeof XMLHttpRequest>"u"&&ba(sg,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",a=>{const s=a;s.percent=a.total>0?a.loaded/a.total*100:0,e.onProgress(s)});const o=new FormData;if(e.data)for(const[a,s]of Object.entries(e.data))Wd(s)&&s.length?o.append(a,...s):o.append(a,s);o.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(Wc(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(Wc(n,e,t));e.onSuccess(rg(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((a,s)=>t.setRequestHeader(s,a));else for(const[a,s]of Object.entries(l))La(s)||t.setRequestHeader(a,String(s));return t.send(o),t},Sf=["text","picture","picture-card"];let cg=1;const gi=()=>Date.now()+cg++,Mf=Eo({action:{type:String,default:"#"},headers:{type:mt(Object)},method:{type:String,default:"post"},data:{type:mt([Object,Function,Promise]),default:()=>na({})},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:mt(Array),default:()=>na([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:Sf,default:"text"},httpRequest:{type:mt(Function),default:ig},disabled:Boolean,limit:Number}),ug=Eo({...Mf,beforeUpload:{type:mt(Function),default:Jt},beforeRemove:{type:mt(Function)},onRemove:{type:mt(Function),default:Jt},onChange:{type:mt(Function),default:Jt},onPreview:{type:mt(Function),default:Jt},onSuccess:{type:mt(Function),default:Jt},onProgress:{type:mt(Function),default:Jt},onError:{type:mt(Function),default:Jt},onExceed:{type:mt(Function),default:Jt},crossorigin:{type:mt(String)}}),dg=Eo({files:{type:mt(Array),default:()=>na([])},disabled:{type:Boolean,default:!1},handlePreview:{type:mt(Function),default:Jt},listType:{type:String,values:Sf,default:"text"},crossorigin:{type:mt(String)}}),fg={remove:e=>!!e},Rg=["onKeydown"],pg=["src","crossorigin"],hg=["onClick"],vg=["title"],mg=["onClick"],gg=["onClick"],Sg=pe({name:"ElUploadList"}),Mg=pe({...Sg,props:dg,emits:fg,setup(e,{emit:t}){const n=e,{t:o}=y2(),l=no("upload"),a=no("icon"),s=no("list"),r=gs(),c=_(!1),i=ee(()=>[l.b("list"),l.bm("list",n.listType),l.is("disabled",n.disabled)]),u=d=>{t("remove",d)};return(d,f)=>(V(),te(Od,{tag:"ul",class:re(I(i)),name:I(s).b()},{default:Z(()=>[(V(!0),A(me,null,ye(d.files,p=>(V(),A("li",{key:p.uid||p.name,class:re([I(l).be("list","item"),I(l).is(p.status),{focusing:c.value}]),tabindex:"0",onKeydown:Fn(R=>!I(r)&&u(p),["delete"]),onFocus:f[0]||(f[0]=R=>c.value=!0),onBlur:f[1]||(f[1]=R=>c.value=!1),onClick:f[2]||(f[2]=R=>c.value=!1)},[je(d.$slots,"default",{file:p},()=>[d.listType==="picture"||p.status!=="uploading"&&d.listType==="picture-card"?(V(),A("img",{key:0,class:re(I(l).be("list","item-thumbnail")),src:p.url,crossorigin:d.crossorigin,alt:""},null,10,pg)):Re("v-if",!0),p.status==="uploading"||d.listType!=="picture-card"?(V(),A("div",{key:1,class:re(I(l).be("list","item-info"))},[X("a",{class:re(I(l).be("list","item-name")),onClick:He(R=>d.handlePreview(p),["prevent"])},[L(I(In),{class:re(I(a).m("document"))},{default:Z(()=>[L(I(L2))]),_:1},8,["class"]),X("span",{class:re(I(l).be("list","item-file-name")),title:p.name},Ye(p.name),11,vg)],10,hg),p.status==="uploading"?(V(),te(I(mf),{key:0,type:d.listType==="picture-card"?"circle":"line","stroke-width":d.listType==="picture-card"?6:2,percentage:Number(p.percentage),style:ue(d.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):Re("v-if",!0)],2)):Re("v-if",!0),X("label",{class:re(I(l).be("list","item-status-label"))},[d.listType==="text"?(V(),te(I(In),{key:0,class:re([I(a).m("upload-success"),I(a).m("circle-check")])},{default:Z(()=>[L(I(Fd))]),_:1},8,["class"])):["picture-card","picture"].includes(d.listType)?(V(),te(I(In),{key:1,class:re([I(a).m("upload-success"),I(a).m("check")])},{default:Z(()=>[L(I(Yd))]),_:1},8,["class"])):Re("v-if",!0)],2),I(r)?Re("v-if",!0):(V(),te(I(In),{key:2,class:re(I(a).m("close")),onClick:R=>u(p)},{default:Z(()=>[L(I(Ud))]),_:2},1032,["class","onClick"])),Re(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),Re(" This is a bug which needs to be fixed "),Re(" TODO: Fix the incorrect navigation interaction "),I(r)?Re("v-if",!0):(V(),A("i",{key:3,class:re(I(a).m("close-tip"))},Ye(I(o)("el.upload.deleteTip")),3)),d.listType==="picture-card"?(V(),A("span",{key:4,class:re(I(l).be("list","item-actions"))},[X("span",{class:re(I(l).be("list","item-preview")),onClick:R=>d.handlePreview(p)},[L(I(In),{class:re(I(a).m("zoom-in"))},{default:Z(()=>[L(I(b2))]),_:1},8,["class"])],10,mg),I(r)?Re("v-if",!0):(V(),A("span",{key:0,class:re(I(l).be("list","item-delete")),onClick:R=>u(p)},[L(I(In),{class:re(I(a).m("delete"))},{default:Z(()=>[L(I(V2))]),_:1},8,["class"])],10,gg))],2)):Re("v-if",!0)])],42,Rg))),128)),je(d.$slots,"append")]),_:3},8,["class","name"]))}});var Ac=Co(Mg,[["__file","upload-list.vue"]]);const Og=Eo({disabled:{type:Boolean,default:!1}}),xg={file:e=>Wd(e)},Pg=["onDrop","onDragover"],Of="ElUploadDrag",Ng=pe({name:Of}),Tg=pe({...Ng,props:Og,emits:xg,setup(e,{emit:t}){Gi(gf)||ba(Of,"usage: ");const o=no("upload"),l=_(!1),a=gs(),s=c=>{if(a.value)return;l.value=!1,c.stopPropagation();const i=Array.from(c.dataTransfer.files);t("file",i)},r=()=>{a.value||(l.value=!0)};return(c,i)=>(V(),A("div",{class:re([I(o).b("dragger"),I(o).is("dragover",l.value)]),onDrop:He(s,["prevent"]),onDragover:He(r,["prevent"]),onDragleave:i[0]||(i[0]=He(u=>l.value=!1,["prevent"]))},[je(c.$slots,"default")],42,Pg))}});var Xg=Co(Tg,[["__file","upload-dragger.vue"]]);const yg=Eo({...Mf,beforeUpload:{type:mt(Function),default:Jt},onRemove:{type:mt(Function),default:Jt},onStart:{type:mt(Function),default:Jt},onSuccess:{type:mt(Function),default:Jt},onProgress:{type:mt(Function),default:Jt},onError:{type:mt(Function),default:Jt},onExceed:{type:mt(Function),default:Jt}}),Lg=["onKeydown"],bg=["name","multiple","accept"],Vg=pe({name:"ElUploadContent",inheritAttrs:!1}),Ig=pe({...Vg,props:yg,setup(e,{expose:t}){const n=e,o=no("upload"),l=gs(),a=Io({}),s=Io(),r=h=>{if(h.length===0)return;const{autoUpload:v,limit:M,fileList:g,multiple:m,onStart:O,onExceed:S}=n;if(M&&g.length+h.length>M){S(h,g);return}m||(h=h.slice(0,1));for(const P of h){const b=P;b.uid=gi(),O(b),v&&c(b)}},c=async h=>{if(s.value.value="",!n.beforeUpload)return u(h);let v,M={};try{const m=n.data,O=n.beforeUpload(h);M=w0(n.data)?Mc(n.data):n.data,v=await O,w0(n.data)&&a3(m,M)&&(M=Mc(n.data))}catch{v=!1}if(v===!1){n.onRemove(h);return}let g=h;v instanceof Blob&&(v instanceof File?g=v:g=new File([v],h.name,{type:h.type})),u(Object.assign(g,{uid:h.uid}),M)},i=async(h,v)=>rs(h)?h(v):h,u=async(h,v)=>{const{headers:M,data:g,method:m,withCredentials:O,name:S,action:P,onProgress:b,onSuccess:N,onError:x,httpRequest:T}=n;try{v=await i(v??g,h)}catch{n.onRemove(h);return}const{uid:y}=h,Y={headers:M||{},withCredentials:O,file:h,data:v,method:m,filename:S,action:P,onProgress:W=>{b(W,h)},onSuccess:W=>{N(W,h),delete a.value[y]},onError:W=>{x(W,h),delete a.value[y]}},U=T(Y);a.value[y]=U,U instanceof Promise&&U.then(Y.onSuccess,Y.onError)},d=h=>{const v=h.target.files;v&&r(Array.from(v))},f=()=>{l.value||(s.value.value="",s.value.click())},p=()=>{f()};return t({abort:h=>{I2(a.value).filter(h?([M])=>String(h.uid)===M:()=>!0).forEach(([M,g])=>{g instanceof XMLHttpRequest&&g.abort(),delete a.value[M]})},upload:c}),(h,v)=>(V(),A("div",{class:re([I(o).b(),I(o).m(h.listType),I(o).is("drag",h.drag)]),tabindex:"0",onClick:f,onKeydown:Fn(He(p,["self"]),["enter","space"])},[h.drag?(V(),te(Xg,{key:0,disabled:I(l),onFile:r},{default:Z(()=>[je(h.$slots,"default")]),_:3},8,["disabled"])):je(h.$slots,"default",{key:1}),X("input",{ref_key:"inputRef",ref:s,class:re(I(o).e("input")),name:h.name,multiple:h.multiple,accept:h.accept,type:"file",onChange:d,onClick:v[0]||(v[0]=He(()=>{},["stop"]))},null,42,bg)],42,Lg))}});var Qc=Co(Ig,[["__file","upload-content.vue"]]);const Zc="ElUpload",Kc=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},Fg=(e,t)=>{const n=F2(e,"fileList",void 0,{passive:!0}),o=f=>n.value.find(p=>p.uid===f.uid);function l(f){var p;(p=t.value)==null||p.abort(f)}function a(f=["ready","uploading","success","fail"]){n.value=n.value.filter(p=>!f.includes(p.status))}const s=(f,p)=>{const R=o(p);R&&(console.error(f),R.status="fail",n.value.splice(n.value.indexOf(R),1),e.onError(f,R,n.value),e.onChange(R,n.value))},r=(f,p)=>{const R=o(p);R&&(e.onProgress(f,R,n.value),R.status="uploading",R.percentage=Math.round(f.percent))},c=(f,p)=>{const R=o(p);R&&(R.status="success",R.response=f,e.onSuccess(f,R,n.value),e.onChange(R,n.value))},i=f=>{La(f.uid)&&(f.uid=gi());const p={name:f.name,percentage:0,status:"ready",size:f.size,raw:f,uid:f.uid};if(e.listType==="picture-card"||e.listType==="picture")try{p.url=URL.createObjectURL(f)}catch(R){R.message,e.onError(R,p,n.value)}n.value=[...n.value,p],e.onChange(p,n.value)},u=async f=>{const p=f instanceof File?o(f):f;p||ba(Zc,"file to be removed not found");const R=h=>{l(h);const v=n.value;v.splice(v.indexOf(h),1),e.onRemove(h,v),Kc(h)};e.beforeRemove?await e.beforeRemove(p,n.value)!==!1&&R(p):R(p)};function d(){n.value.filter(({status:f})=>f==="ready").forEach(({raw:f})=>{var p;return f&&((p=t.value)==null?void 0:p.upload(f))})}return Ce(()=>e.listType,f=>{f!=="picture-card"&&f!=="picture"||(n.value=n.value.map(p=>{const{raw:R,url:h}=p;if(!h&&R)try{p.url=URL.createObjectURL(R)}catch(v){e.onError(v,p,n.value)}return p}))}),Ce(n,f=>{for(const p of f)p.uid||(p.uid=gi()),p.status||(p.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:l,clearFiles:a,handleError:s,handleProgress:r,handleStart:i,handleSuccess:c,handleRemove:u,submit:d,revokeFileObjectURL:Kc}},Yg=pe({name:"ElUpload"}),Ug=pe({...Yg,props:ug,setup(e,{expose:t}){const n=e,o=gs(),l=Io(),{abort:a,submit:s,clearFiles:r,uploadFiles:c,handleStart:i,handleError:u,handleRemove:d,handleSuccess:f,handleProgress:p,revokeFileObjectURL:R}=Fg(n,l),h=ee(()=>n.listType==="picture-card"),v=ee(()=>({...n,fileList:c.value,onStart:i,onProgress:p,onSuccess:f,onError:u,onRemove:d}));return ro(()=>{c.value.forEach(R)}),ps(gf,{accept:Di(n,"accept")}),t({abort:a,submit:s,clearFiles:r,handleStart:i,handleRemove:d}),(M,g)=>(V(),A("div",null,[I(h)&&M.showFileList?(V(),te(Ac,{key:0,disabled:I(o),"list-type":M.listType,files:I(c),crossorigin:M.crossorigin,"handle-preview":M.onPreview,onRemove:I(d)},si({append:Z(()=>[L(Qc,Pl({ref_key:"uploadRef",ref:l},I(v)),{default:Z(()=>[M.$slots.trigger?je(M.$slots,"trigger",{key:0}):Re("v-if",!0),!M.$slots.trigger&&M.$slots.default?je(M.$slots,"default",{key:1}):Re("v-if",!0)]),_:3},16)]),_:2},[M.$slots.file?{name:"default",fn:Z(({file:m})=>[je(M.$slots,"file",{file:m})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):Re("v-if",!0),!I(h)||I(h)&&!M.showFileList?(V(),te(Qc,Pl({key:1,ref_key:"uploadRef",ref:l},I(v)),{default:Z(()=>[M.$slots.trigger?je(M.$slots,"trigger",{key:0}):Re("v-if",!0),!M.$slots.trigger&&M.$slots.default?je(M.$slots,"default",{key:1}):Re("v-if",!0)]),_:3},16)):Re("v-if",!0),M.$slots.trigger?je(M.$slots,"default",{key:2}):Re("v-if",!0),je(M.$slots,"tip"),!I(h)&&M.showFileList?(V(),te(Ac,{key:3,disabled:I(o),"list-type":M.listType,files:I(c),crossorigin:M.crossorigin,"handle-preview":M.onPreview,onRemove:I(d)},si({_:2},[M.$slots.file?{name:"default",fn:Z(({file:m})=>[je(M.$slots,"file",{file:m})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):Re("v-if",!0)]))}});var Wg=Co(Ug,[["__file","upload.vue"]]);const Ag=$i(Wg),Qg=pe({name:"ElMessageBox",directives:{TrapFocus:w3},components:{ElButton:Dd,ElFocusTrap:G3,ElInput:V3,ElOverlay:_3,ElIcon:In,...Y2},inheritAttrs:!1,props:{buttonSize:{type:String,validator:c3},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:a}=U2("message-box",ee(()=>e.buttonSize)),{t:s}=n,{nextZIndex:r}=o,c=_(!1),i=Nd({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:r()}),u=ee(()=>{const F=i.type;return{[l.bm("icon",F)]:F&&J0[F]}}),d=q0(),f=q0(),p=ee(()=>i.icon||J0[i.type]||""),R=ee(()=>!!i.message),h=_(),v=_(),M=_(),g=_(),m=_(),O=ee(()=>i.confirmButtonClass);Ce(()=>i.inputValue,async F=>{await St(),e.boxType==="prompt"&&F!==null&&Y()},{immediate:!0}),Ce(()=>c.value,F=>{var J,w;F&&(e.boxType!=="prompt"&&(i.autofocus?M.value=(w=(J=m.value)==null?void 0:J.$el)!=null?w:h.value:M.value=h.value),i.zIndex=r()),e.boxType==="prompt"&&(F?St().then(()=>{var q;g.value&&g.value.$el&&(i.autofocus?M.value=(q=U())!=null?q:h.value:M.value=h.value)}):(i.editorErrorMessage="",i.validateError=!1))});const S=ee(()=>e.draggable),P=ee(()=>e.overflow);p3(h,v,S,P),pt(async()=>{await St(),e.closeOnHashChange&&window.addEventListener("hashchange",b)}),ro(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",b)});function b(){c.value&&(c.value=!1,St(()=>{i.action&&t("action",i.action)}))}const N=()=>{e.closeOnClickModal&&y(i.distinguishCancelAndClose?"close":"cancel")},x=hf(N),T=F=>{if(i.inputType!=="textarea")return F.preventDefault(),y("confirm")},y=F=>{var J;e.boxType==="prompt"&&F==="confirm"&&!Y()||(i.action=F,i.beforeClose?(J=i.beforeClose)==null||J.call(i,F,i,b):b())},Y=()=>{if(e.boxType==="prompt"){const F=i.inputPattern;if(F&&!F.test(i.inputValue||""))return i.editorErrorMessage=i.inputErrorMessage||s("el.messagebox.error"),i.validateError=!0,!1;const J=i.inputValidator;if(typeof J=="function"){const w=J(i.inputValue);if(w===!1)return i.editorErrorMessage=i.inputErrorMessage||s("el.messagebox.error"),i.validateError=!0,!1;if(typeof w=="string")return i.editorErrorMessage=w,i.validateError=!0,!1}}return i.editorErrorMessage="",i.validateError=!1,!0},U=()=>{const F=g.value.$refs;return F.input||F.textarea},W=()=>{y("close")},C=()=>{e.closeOnPressEscape&&W()};return e.lockScroll&&h3(c),{...Td(i),ns:l,overlayEvent:x,visible:c,hasMessage:R,typeClass:u,contentId:d,inputId:f,btnSize:a,iconComponent:p,confirmButtonClasses:O,rootRef:h,focusStartRef:M,headerRef:v,inputRef:g,confirmRef:m,doClose:b,handleClose:W,onCloseRequested:C,handleWrapperClick:N,handleInputEnter:T,handleAction:y,t:s}}}),Zg=["aria-label","aria-describedby"],Kg=["aria-label"],Eg=["id"];function Cg(e,t,n,o,l,a){const s=ce("el-icon"),r=ce("close"),c=ce("el-input"),i=ce("el-button"),u=ce("el-focus-trap"),d=ce("el-overlay");return V(),te(ss,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=f=>e.$emit("vanish")),persisted:""},{default:Z(()=>[xe(L(d,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:Z(()=>[X("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:re(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...f)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...f)),onMousedown:t[9]||(t[9]=(...f)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...f)),onMouseup:t[10]||(t[10]=(...f)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...f))},[L(u,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:Z(()=>[X("div",{ref:"rootRef",class:re([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:ue(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=He(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(V(),A("div",{key:0,ref:"headerRef",class:re([e.ns.e("header"),{"show-close":e.showClose}])},[X("div",{class:re(e.ns.e("title"))},[e.iconComponent&&e.center?(V(),te(s,{key:0,class:re([e.ns.e("status"),e.typeClass])},{default:Z(()=>[(V(),te(Tn(e.iconComponent)))]),_:1},8,["class"])):Re("v-if",!0),X("span",null,Ye(e.title),1)],2),e.showClose?(V(),A("button",{key:0,type:"button",class:re(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=f=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=Fn(He(f=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[L(s,{class:re(e.ns.e("close"))},{default:Z(()=>[L(r)]),_:1},8,["class"])],42,Kg)):Re("v-if",!0)],2)):Re("v-if",!0),X("div",{id:e.contentId,class:re(e.ns.e("content"))},[X("div",{class:re(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(V(),te(s,{key:0,class:re([e.ns.e("status"),e.typeClass])},{default:Z(()=>[(V(),te(Tn(e.iconComponent)))]),_:1},8,["class"])):Re("v-if",!0),e.hasMessage?(V(),A("div",{key:1,class:re(e.ns.e("message"))},[je(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(V(),te(Tn(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(V(),te(Tn(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:Z(()=>[Xe(Ye(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):Re("v-if",!0)],2),xe(X("div",{class:re(e.ns.e("input"))},[L(c,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=f=>e.inputValue=f),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:re({invalid:e.validateError}),onKeydown:Fn(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),X("div",{class:re(e.ns.e("errormsg")),style:ue({visibility:e.editorErrorMessage?"visible":"hidden"})},Ye(e.editorErrorMessage),7)],2),[[to,e.showInput]])],10,Eg),X("div",{class:re(e.ns.e("btns"))},[e.showCancelButton?(V(),te(i,{key:0,loading:e.cancelButtonLoading,class:re([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=f=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=Fn(He(f=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:Z(()=>[Xe(Ye(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):Re("v-if",!0),xe(L(i,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,class:re([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=f=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=Fn(He(f=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:Z(()=>[Xe(Ye(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[to,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,Zg)]),_:3},8,["z-index","overlay-class","mask"]),[[to,e.visible]])]),_:3})}var Hg=Co(Qg,[["render",Cg],["__file","index.vue"]]);const is=new Map,Gg=e=>{let t=document.body;return e.appendTo&&(Fo(e.appendTo)&&(t=document.querySelector(e.appendTo)),k0(e.appendTo)&&(t=e.appendTo),k0(t)||(t=document.body)),t},wg=(e,t,n=null)=>{const o=L(Hg,e,rs(e.message)||wi(e.message)?{default:rs(e.message)?e.message:()=>e.message}:null);return o.appContext=n,Ji(o,t),Gg(e).appendChild(t.firstElementChild),o.component},Jg=()=>document.createElement("div"),Dg=(e,t)=>{const n=Jg();e.onVanish=()=>{Ji(null,n),is.delete(l)},e.onAction=a=>{const s=is.get(l);let r;e.showInput?r={value:l.inputValue,action:a}:r=a,e.callback?e.callback(r,o.proxy):a==="cancel"||a==="close"?e.distinguishCancelAndClose&&a!=="cancel"?s.reject("close"):s.reject("cancel"):s.resolve(r)};const o=wg(e,n,t),l=o.proxy;for(const a in e)D0(e,a)&&!D0(l.$props,a)&&(l[a]=e[a]);return l.visible=!0,l};function Ul(e,t=null){if(!tl)return Promise.reject();let n;return Fo(e)||wi(e)?e={message:e}:n=e.callback,new Promise((o,l)=>{const a=Dg(e,t??Ul._context);is.set(a,{options:e,callback:n,resolve:o,reject:l})})}const kg=["alert","confirm","prompt"],Bg={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};kg.forEach(e=>{Ul[e]=_g(e)});function _g(e){return(t,n,o,l)=>{let a="";return ai(n)?(o=n,a=""):W2(n)?a="":a=n,Ul(Object.assign({title:a,message:t,type:"",...Bg[e]},o,{boxType:e}),l)}}Ul.close=()=>{is.forEach((e,t)=>{t.doClose()}),is.clear()};Ul._context=null;const xo=Ul;xo.install=e=>{xo._context=e._context,e.config.globalProperties.$msgbox=xo,e.config.globalProperties.$messageBox=xo,e.config.globalProperties.$alert=xo.alert,e.config.globalProperties.$confirm=xo.confirm,e.config.globalProperties.$prompt=xo.prompt};const $g=xo;var _t=(e=>(e.UP="up",e.DOWN="down",e.TOP="top",e.BOTTOM="bottom",e))(_t||{}),ft=(e=>(e.TOP="top",e.BOTTOM="bottom",e.LEFT="left",e.RIGHT="right",e.VERTICAL="vertical",e.HORIZONTAL="horizontal",e.CENTER="center",e))(ft||{}),Jl=(e=>(e.T="top",e.B="bottom",e.L="left",e.R="right",e))(Jl||{}),Ie=(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))(Ie||{}),Pn=(e=>(e.START="start",e.END="end",e.C="ctrl",e.C1="ctrl1",e.C2="ctrl2",e))(Pn||{}),xf={exports:{}};/*! * clipboard.js v2.0.11 * https://clipboardjs.com/ * * Licensed MIT © Zeno Rocha */(function(e,t){(function(o,l){e.exports=l()})(tt,function(){return function(){var n={686:function(a,s,r){r.d(s,{default:function(){return H}});var c=r(279),i=r.n(c),u=r(370),d=r.n(u),f=r(817),p=r.n(f);function R(G){try{return document.execCommand(G)}catch{return!1}}var h=function(Q){var E=p()(Q);return R("cut"),E},v=h;function M(G){var Q=document.documentElement.getAttribute("dir")==="rtl",E=document.createElement("textarea");E.style.fontSize="12pt",E.style.border="0",E.style.padding="0",E.style.margin="0",E.style.position="absolute",E.style[Q?"right":"left"]="-9999px";var le=window.pageYOffset||document.documentElement.scrollTop;return E.style.top="".concat(le,"px"),E.setAttribute("readonly",""),E.value=G,E}var g=function(Q,E){var le=M(Q);E.container.appendChild(le);var B=p()(le);return R("copy"),le.remove(),B},m=function(Q){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},le="";return typeof Q=="string"?le=g(Q,E):Q instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(Q==null?void 0:Q.type)?le=g(Q.value,E):(le=p()(Q),R("copy")),le},O=m;function S(G){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?S=function(E){return typeof E}:S=function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},S(G)}var P=function(){var Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},E=Q.action,le=E===void 0?"copy":E,B=Q.container,D=Q.target,z=Q.text;if(le!=="copy"&&le!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(D!==void 0)if(D&&S(D)==="object"&&D.nodeType===1){if(le==="copy"&&D.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(le==="cut"&&(D.hasAttribute("readonly")||D.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(z)return O(z,{container:B});if(D)return le==="cut"?v(D):O(D,{container:B})},b=P;function N(G){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?N=function(E){return typeof E}:N=function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},N(G)}function x(G,Q){if(!(G instanceof Q))throw new TypeError("Cannot call a class as a function")}function T(G,Q){for(var E=0;E"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function w(G){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(E){return E.__proto__||Object.getPrototypeOf(E)},w(G)}function q(G,Q){var E="data-clipboard-".concat(G);if(Q.hasAttribute(E))return Q.getAttribute(E)}var se=function(G){Y(E,G);var Q=W(E);function E(le,B){var D;return x(this,E),D=Q.call(this),D.resolveOptions(B),D.listenClick(le),D}return y(E,[{key:"resolveOptions",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof B.action=="function"?B.action:this.defaultAction,this.target=typeof B.target=="function"?B.target:this.defaultTarget,this.text=typeof B.text=="function"?B.text:this.defaultText,this.container=N(B.container)==="object"?B.container:document.body}},{key:"listenClick",value:function(B){var D=this;this.listener=d()(B,"click",function(z){return D.onClick(z)})}},{key:"onClick",value:function(B){var D=B.delegateTarget||B.currentTarget,z=this.action(D)||"copy",he=b({action:z,container:this.container,target:this.target(D),text:this.text(D)});this.emit(he?"success":"error",{action:z,text:he,trigger:D,clearSelection:function(){D&&D.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(B){return q("action",B)}},{key:"defaultTarget",value:function(B){var D=q("target",B);if(D)return document.querySelector(D)}},{key:"defaultText",value:function(B){return q("text",B)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(B){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return O(B,D)}},{key:"cut",value:function(B){return v(B)}},{key:"isSupported",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],D=typeof B=="string"?[B]:B,z=!!document.queryCommandSupported;return D.forEach(function(he){z=z&&!!document.queryCommandSupported(he)}),z}}]),E}(i()),H=se},828:function(a){var s=9;if(typeof Element<"u"&&!Element.prototype.matches){var r=Element.prototype;r.matches=r.matchesSelector||r.mozMatchesSelector||r.msMatchesSelector||r.oMatchesSelector||r.webkitMatchesSelector}function c(i,u){for(;i&&i.nodeType!==s;){if(typeof i.matches=="function"&&i.matches(u))return i;i=i.parentNode}}a.exports=c},438:function(a,s,r){var c=r(828);function i(f,p,R,h,v){var M=d.apply(this,arguments);return f.addEventListener(R,M,v),{destroy:function(){f.removeEventListener(R,M,v)}}}function u(f,p,R,h,v){return typeof f.addEventListener=="function"?i.apply(null,arguments):typeof R=="function"?i.bind(null,document).apply(null,arguments):(typeof f=="string"&&(f=document.querySelectorAll(f)),Array.prototype.map.call(f,function(M){return i(M,p,R,h,v)}))}function d(f,p,R,h){return function(v){v.delegateTarget=c(v.target,p),v.delegateTarget&&h.call(f,v)}}a.exports=u},879:function(a,s){s.node=function(r){return r!==void 0&&r instanceof HTMLElement&&r.nodeType===1},s.nodeList=function(r){var c=Object.prototype.toString.call(r);return r!==void 0&&(c==="[object NodeList]"||c==="[object HTMLCollection]")&&"length"in r&&(r.length===0||s.node(r[0]))},s.string=function(r){return typeof r=="string"||r instanceof String},s.fn=function(r){var c=Object.prototype.toString.call(r);return c==="[object Function]"}},370:function(a,s,r){var c=r(879),i=r(438);function u(R,h,v){if(!R&&!h&&!v)throw new Error("Missing required arguments");if(!c.string(h))throw new TypeError("Second argument must be a String");if(!c.fn(v))throw new TypeError("Third argument must be a Function");if(c.node(R))return d(R,h,v);if(c.nodeList(R))return f(R,h,v);if(c.string(R))return p(R,h,v);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function d(R,h,v){return R.addEventListener(h,v),{destroy:function(){R.removeEventListener(h,v)}}}function f(R,h,v){return Array.prototype.forEach.call(R,function(M){M.addEventListener(h,v)}),{destroy:function(){Array.prototype.forEach.call(R,function(M){M.removeEventListener(h,v)})}}}function p(R,h,v){return i(document.body,R,h,v)}a.exports=u},817:function(a){function s(r){var c;if(r.nodeName==="SELECT")r.focus(),c=r.value;else if(r.nodeName==="INPUT"||r.nodeName==="TEXTAREA"){var i=r.hasAttribute("readonly");i||r.setAttribute("readonly",""),r.select(),r.setSelectionRange(0,r.value.length),i||r.removeAttribute("readonly"),c=r.value}else{r.hasAttribute("contenteditable")&&r.focus();var u=window.getSelection(),d=document.createRange();d.selectNodeContents(r),u.removeAllRanges(),u.addRange(d),c=u.toString()}return c}a.exports=s},279:function(a){function s(){}s.prototype={on:function(r,c,i){var u=this.e||(this.e={});return(u[r]||(u[r]=[])).push({fn:c,ctx:i}),this},once:function(r,c,i){var u=this;function d(){u.off(r,d),c.apply(i,arguments)}return d._=c,this.on(r,d,i)},emit:function(r){var c=[].slice.call(arguments,1),i=((this.e||(this.e={}))[r]||[]).slice(),u=0,d=i.length;for(u;u>>2]>>>24-b%4*8&255;m[S+b>>>2]|=N<<24-(S+b)%4*8}else for(var x=0;x>>2]=O[x>>>2];return this.sigBytes+=P,this},clamp:function(){var g=this.words,m=this.sigBytes;g[m>>>2]&=4294967295<<32-m%4*8,g.length=o.ceil(m/4)},clone:function(){var g=u.clone.call(this);return g.words=this.words.slice(0),g},random:function(g){for(var m=[],O=0;O>>2]>>>24-P%4*8&255;S.push((b>>>4).toString(16)),S.push((b&15).toString(16))}return S.join("")},parse:function(g){for(var m=g.length,O=[],S=0;S>>3]|=parseInt(g.substr(S,2),16)<<24-S%8*4;return new d.init(O,m/2)}},R=f.Latin1={stringify:function(g){for(var m=g.words,O=g.sigBytes,S=[],P=0;P>>2]>>>24-P%4*8&255;S.push(String.fromCharCode(b))}return S.join("")},parse:function(g){for(var m=g.length,O=[],S=0;S>>2]|=(g.charCodeAt(S)&255)<<24-S%4*8;return new d.init(O,m)}},h=f.Utf8={stringify:function(g){try{return decodeURIComponent(escape(R.stringify(g)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(g){return R.parse(unescape(encodeURIComponent(g)))}},v=i.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new d.init,this._nDataBytes=0},_append:function(g){typeof g=="string"&&(g=h.parse(g)),this._data.concat(g),this._nDataBytes+=g.sigBytes},_process:function(g){var m,O=this._data,S=O.words,P=O.sigBytes,b=this.blockSize,N=b*4,x=P/N;g?x=o.ceil(x):x=o.max((x|0)-this._minBufferSize,0);var T=x*b,y=o.min(T*4,P);if(T){for(var Y=0;Y>>2]|=c[d]<<24-d%4*8;s.call(this,u,i)}else s.apply(this,arguments)};r.prototype=a}}(),n.lib.WordArray})}(sr)),sr.exports}var ar={exports:{}},Gc;function lS(){return Gc||(Gc=1,function(e,t){(function(n,o){e.exports=o(Rt())})(tt,function(n){return function(){var o=n,l=o.lib,a=l.WordArray,s=o.enc;s.Utf16=s.Utf16BE={stringify:function(c){for(var i=c.words,u=c.sigBytes,d=[],f=0;f>>2]>>>16-f%4*8&65535;d.push(String.fromCharCode(p))}return d.join("")},parse:function(c){for(var i=c.length,u=[],d=0;d>>1]|=c.charCodeAt(d)<<16-d%2*16;return a.create(u,i*2)}},s.Utf16LE={stringify:function(c){for(var i=c.words,u=c.sigBytes,d=[],f=0;f>>2]>>>16-f%4*8&65535);d.push(String.fromCharCode(p))}return d.join("")},parse:function(c){for(var i=c.length,u=[],d=0;d>>1]|=r(c.charCodeAt(d)<<16-d%2*16);return a.create(u,i*2)}};function r(c){return c<<8&4278255360|c>>>8&16711935}}(),n.enc.Utf16})}(ar)),ar.exports}var rr={exports:{}},wc;function al(){return wc||(wc=1,function(e,t){(function(n,o){e.exports=o(Rt())})(tt,function(n){return function(){var o=n,l=o.lib,a=l.WordArray,s=o.enc;s.Base64={stringify:function(c){var i=c.words,u=c.sigBytes,d=this._map;c.clamp();for(var f=[],p=0;p>>2]>>>24-p%4*8&255,h=i[p+1>>>2]>>>24-(p+1)%4*8&255,v=i[p+2>>>2]>>>24-(p+2)%4*8&255,M=R<<16|h<<8|v,g=0;g<4&&p+g*.75>>6*(3-g)&63));var m=d.charAt(64);if(m)for(;f.length%4;)f.push(m);return f.join("")},parse:function(c){var i=c.length,u=this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var f=0;f>>6-p%4*2,v=R|h;d[f>>>2]|=v<<24-f%4*8,f++}return a.create(d,f)}}(),n.enc.Base64})}(rr)),rr.exports}var ir={exports:{}},Jc;function sS(){return Jc||(Jc=1,function(e,t){(function(n,o){e.exports=o(Rt())})(tt,function(n){return function(){var o=n,l=o.lib,a=l.WordArray,s=o.enc;s.Base64url={stringify:function(c,i){i===void 0&&(i=!0);var u=c.words,d=c.sigBytes,f=i?this._safe_map:this._map;c.clamp();for(var p=[],R=0;R>>2]>>>24-R%4*8&255,v=u[R+1>>>2]>>>24-(R+1)%4*8&255,M=u[R+2>>>2]>>>24-(R+2)%4*8&255,g=h<<16|v<<8|M,m=0;m<4&&R+m*.75>>6*(3-m)&63));var O=f.charAt(64);if(O)for(;p.length%4;)p.push(O);return p.join("")},parse:function(c,i){i===void 0&&(i=!0);var u=c.length,d=i?this._safe_map:this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var p=0;p>>6-p%4*2,v=R|h;d[f>>>2]|=v<<24-f%4*8,f++}return a.create(d,f)}}(),n.enc.Base64url})}(ir)),ir.exports}var cr={exports:{}},Dc;function rl(){return Dc||(Dc=1,function(e,t){(function(n,o){e.exports=o(Rt())})(tt,function(n){return function(o){var l=n,a=l.lib,s=a.WordArray,r=a.Hasher,c=l.algo,i=[];(function(){for(var h=0;h<64;h++)i[h]=o.abs(o.sin(h+1))*4294967296|0})();var u=c.MD5=r.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(h,v){for(var M=0;M<16;M++){var g=v+M,m=h[g];h[g]=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360}var O=this._hash.words,S=h[v+0],P=h[v+1],b=h[v+2],N=h[v+3],x=h[v+4],T=h[v+5],y=h[v+6],Y=h[v+7],U=h[v+8],W=h[v+9],C=h[v+10],F=h[v+11],J=h[v+12],w=h[v+13],q=h[v+14],se=h[v+15],H=O[0],G=O[1],Q=O[2],E=O[3];H=d(H,G,Q,E,S,7,i[0]),E=d(E,H,G,Q,P,12,i[1]),Q=d(Q,E,H,G,b,17,i[2]),G=d(G,Q,E,H,N,22,i[3]),H=d(H,G,Q,E,x,7,i[4]),E=d(E,H,G,Q,T,12,i[5]),Q=d(Q,E,H,G,y,17,i[6]),G=d(G,Q,E,H,Y,22,i[7]),H=d(H,G,Q,E,U,7,i[8]),E=d(E,H,G,Q,W,12,i[9]),Q=d(Q,E,H,G,C,17,i[10]),G=d(G,Q,E,H,F,22,i[11]),H=d(H,G,Q,E,J,7,i[12]),E=d(E,H,G,Q,w,12,i[13]),Q=d(Q,E,H,G,q,17,i[14]),G=d(G,Q,E,H,se,22,i[15]),H=f(H,G,Q,E,P,5,i[16]),E=f(E,H,G,Q,y,9,i[17]),Q=f(Q,E,H,G,F,14,i[18]),G=f(G,Q,E,H,S,20,i[19]),H=f(H,G,Q,E,T,5,i[20]),E=f(E,H,G,Q,C,9,i[21]),Q=f(Q,E,H,G,se,14,i[22]),G=f(G,Q,E,H,x,20,i[23]),H=f(H,G,Q,E,W,5,i[24]),E=f(E,H,G,Q,q,9,i[25]),Q=f(Q,E,H,G,N,14,i[26]),G=f(G,Q,E,H,U,20,i[27]),H=f(H,G,Q,E,w,5,i[28]),E=f(E,H,G,Q,b,9,i[29]),Q=f(Q,E,H,G,Y,14,i[30]),G=f(G,Q,E,H,J,20,i[31]),H=p(H,G,Q,E,T,4,i[32]),E=p(E,H,G,Q,U,11,i[33]),Q=p(Q,E,H,G,F,16,i[34]),G=p(G,Q,E,H,q,23,i[35]),H=p(H,G,Q,E,P,4,i[36]),E=p(E,H,G,Q,x,11,i[37]),Q=p(Q,E,H,G,Y,16,i[38]),G=p(G,Q,E,H,C,23,i[39]),H=p(H,G,Q,E,w,4,i[40]),E=p(E,H,G,Q,S,11,i[41]),Q=p(Q,E,H,G,N,16,i[42]),G=p(G,Q,E,H,y,23,i[43]),H=p(H,G,Q,E,W,4,i[44]),E=p(E,H,G,Q,J,11,i[45]),Q=p(Q,E,H,G,se,16,i[46]),G=p(G,Q,E,H,b,23,i[47]),H=R(H,G,Q,E,S,6,i[48]),E=R(E,H,G,Q,Y,10,i[49]),Q=R(Q,E,H,G,q,15,i[50]),G=R(G,Q,E,H,T,21,i[51]),H=R(H,G,Q,E,J,6,i[52]),E=R(E,H,G,Q,N,10,i[53]),Q=R(Q,E,H,G,C,15,i[54]),G=R(G,Q,E,H,P,21,i[55]),H=R(H,G,Q,E,U,6,i[56]),E=R(E,H,G,Q,se,10,i[57]),Q=R(Q,E,H,G,y,15,i[58]),G=R(G,Q,E,H,w,21,i[59]),H=R(H,G,Q,E,x,6,i[60]),E=R(E,H,G,Q,F,10,i[61]),Q=R(Q,E,H,G,b,15,i[62]),G=R(G,Q,E,H,W,21,i[63]),O[0]=O[0]+H|0,O[1]=O[1]+G|0,O[2]=O[2]+Q|0,O[3]=O[3]+E|0},_doFinalize:function(){var h=this._data,v=h.words,M=this._nDataBytes*8,g=h.sigBytes*8;v[g>>>5]|=128<<24-g%32;var m=o.floor(M/4294967296),O=M;v[(g+64>>>9<<4)+15]=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360,v[(g+64>>>9<<4)+14]=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360,h.sigBytes=(v.length+1)*4,this._process();for(var S=this._hash,P=S.words,b=0;b<4;b++){var N=P[b];P[b]=(N<<8|N>>>24)&16711935|(N<<24|N>>>8)&4278255360}return S},clone:function(){var h=r.clone.call(this);return h._hash=this._hash.clone(),h}});function d(h,v,M,g,m,O,S){var P=h+(v&M|~v&g)+m+S;return(P<>>32-O)+v}function f(h,v,M,g,m,O,S){var P=h+(v&g|M&~g)+m+S;return(P<>>32-O)+v}function p(h,v,M,g,m,O,S){var P=h+(v^M^g)+m+S;return(P<>>32-O)+v}function R(h,v,M,g,m,O,S){var P=h+(M^(v|~g))+m+S;return(P<>>32-O)+v}l.MD5=r._createHelper(u),l.HmacMD5=r._createHmacHelper(u)}(Math),n.MD5})}(cr)),cr.exports}var ur={exports:{}},kc;function Nf(){return kc||(kc=1,function(e,t){(function(n,o){e.exports=o(Rt())})(tt,function(n){return function(){var o=n,l=o.lib,a=l.WordArray,s=l.Hasher,r=o.algo,c=[],i=r.SHA1=s.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(u,d){for(var f=this._hash.words,p=f[0],R=f[1],h=f[2],v=f[3],M=f[4],g=0;g<80;g++){if(g<16)c[g]=u[d+g]|0;else{var m=c[g-3]^c[g-8]^c[g-14]^c[g-16];c[g]=m<<1|m>>>31}var O=(p<<5|p>>>27)+M+c[g];g<20?O+=(R&h|~R&v)+1518500249:g<40?O+=(R^h^v)+1859775393:g<60?O+=(R&h|R&v|h&v)-1894007588:O+=(R^h^v)-899497514,M=v,v=h,h=R<<30|R>>>2,R=p,p=O}f[0]=f[0]+p|0,f[1]=f[1]+R|0,f[2]=f[2]+h|0,f[3]=f[3]+v|0,f[4]=f[4]+M|0},_doFinalize:function(){var u=this._data,d=u.words,f=this._nDataBytes*8,p=u.sigBytes*8;return d[p>>>5]|=128<<24-p%32,d[(p+64>>>9<<4)+14]=Math.floor(f/4294967296),d[(p+64>>>9<<4)+15]=f,u.sigBytes=d.length*4,this._process(),this._hash},clone:function(){var u=s.clone.call(this);return u._hash=this._hash.clone(),u}});o.SHA1=s._createHelper(i),o.HmacSHA1=s._createHmacHelper(i)}(),n.SHA1})}(ur)),ur.exports}var dr={exports:{}},Bc;function u0(){return Bc||(Bc=1,function(e,t){(function(n,o){e.exports=o(Rt())})(tt,function(n){return function(o){var l=n,a=l.lib,s=a.WordArray,r=a.Hasher,c=l.algo,i=[],u=[];(function(){function p(M){for(var g=o.sqrt(M),m=2;m<=g;m++)if(!(M%m))return!1;return!0}function R(M){return(M-(M|0))*4294967296|0}for(var h=2,v=0;v<64;)p(h)&&(v<8&&(i[v]=R(o.pow(h,1/2))),u[v]=R(o.pow(h,1/3)),v++),h++})();var d=[],f=c.SHA256=r.extend({_doReset:function(){this._hash=new s.init(i.slice(0))},_doProcessBlock:function(p,R){for(var h=this._hash.words,v=h[0],M=h[1],g=h[2],m=h[3],O=h[4],S=h[5],P=h[6],b=h[7],N=0;N<64;N++){if(N<16)d[N]=p[R+N]|0;else{var x=d[N-15],T=(x<<25|x>>>7)^(x<<14|x>>>18)^x>>>3,y=d[N-2],Y=(y<<15|y>>>17)^(y<<13|y>>>19)^y>>>10;d[N]=T+d[N-7]+Y+d[N-16]}var U=O&S^~O&P,W=v&M^v&g^M&g,C=(v<<30|v>>>2)^(v<<19|v>>>13)^(v<<10|v>>>22),F=(O<<26|O>>>6)^(O<<21|O>>>11)^(O<<7|O>>>25),J=b+F+U+u[N]+d[N],w=C+W;b=P,P=S,S=O,O=m+J|0,m=g,g=M,M=v,v=J+w|0}h[0]=h[0]+v|0,h[1]=h[1]+M|0,h[2]=h[2]+g|0,h[3]=h[3]+m|0,h[4]=h[4]+O|0,h[5]=h[5]+S|0,h[6]=h[6]+P|0,h[7]=h[7]+b|0},_doFinalize:function(){var p=this._data,R=p.words,h=this._nDataBytes*8,v=p.sigBytes*8;return R[v>>>5]|=128<<24-v%32,R[(v+64>>>9<<4)+14]=o.floor(h/4294967296),R[(v+64>>>9<<4)+15]=h,p.sigBytes=R.length*4,this._process(),this._hash},clone:function(){var p=r.clone.call(this);return p._hash=this._hash.clone(),p}});l.SHA256=r._createHelper(f),l.HmacSHA256=r._createHmacHelper(f)}(Math),n.SHA256})}(dr)),dr.exports}var fr={exports:{}},_c;function aS(){return _c||(_c=1,function(e,t){(function(n,o,l){e.exports=o(Rt(),u0())})(tt,function(n){return function(){var o=n,l=o.lib,a=l.WordArray,s=o.algo,r=s.SHA256,c=s.SHA224=r.extend({_doReset:function(){this._hash=new a.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var i=r._doFinalize.call(this);return i.sigBytes-=4,i}});o.SHA224=r._createHelper(c),o.HmacSHA224=r._createHmacHelper(c)}(),n.SHA224})}(fr)),fr.exports}var Rr={exports:{}},$c;function Tf(){return $c||($c=1,function(e,t){(function(n,o,l){e.exports=o(Rt(),Ia())})(tt,function(n){return function(){var o=n,l=o.lib,a=l.Hasher,s=o.x64,r=s.Word,c=s.WordArray,i=o.algo;function u(){return r.create.apply(r,arguments)}var d=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)],f=[];(function(){for(var R=0;R<80;R++)f[R]=u()})();var p=i.SHA512=a.extend({_doReset:function(){this._hash=new c.init([new r.init(1779033703,4089235720),new r.init(3144134277,2227873595),new r.init(1013904242,4271175723),new r.init(2773480762,1595750129),new r.init(1359893119,2917565137),new r.init(2600822924,725511199),new r.init(528734635,4215389547),new r.init(1541459225,327033209)])},_doProcessBlock:function(R,h){for(var v=this._hash.words,M=v[0],g=v[1],m=v[2],O=v[3],S=v[4],P=v[5],b=v[6],N=v[7],x=M.high,T=M.low,y=g.high,Y=g.low,U=m.high,W=m.low,C=O.high,F=O.low,J=S.high,w=S.low,q=P.high,se=P.low,H=b.high,G=b.low,Q=N.high,E=N.low,le=x,B=T,D=y,z=Y,he=U,k=W,j=C,K=F,$=J,ae=w,fe=q,Ne=se,Fe=H,Ue=G,Oe=Q,Se=E,Te=0;Te<80;Te++){var ve,Ze,rt=f[Te];if(Te<16)Ze=rt.high=R[h+Te*2]|0,ve=rt.low=R[h+Te*2+1]|0;else{var ge=f[Te-15],Ge=ge.high,vt=ge.low,fn=(Ge>>>1|vt<<31)^(Ge>>>8|vt<<24)^Ge>>>7,ne=(vt>>>1|Ge<<31)^(vt>>>8|Ge<<24)^(vt>>>7|Ge<<25),oe=f[Te-2],ie=oe.high,Pe=oe.low,Ae=(ie>>>19|Pe<<13)^(ie<<3|Pe>>>29)^ie>>>6,De=(Pe>>>19|ie<<13)^(Pe<<3|ie>>>29)^(Pe>>>6|ie<<26),$e=f[Te-7],ht=$e.high,Yt=$e.low,ke=f[Te-16],Ke=ke.high,we=ke.low;ve=ne+Yt,Ze=fn+ht+(ve>>>0>>0?1:0),ve=ve+De,Ze=Ze+Ae+(ve>>>0>>0?1:0),ve=ve+we,Ze=Ze+Ke+(ve>>>0>>0?1:0),rt.high=Ze,rt.low=ve}var it=$&fe^~$&Fe,ut=ae&Ne^~ae&Ue,sn=le&D^le&he^D&he,Kl=B&z^B&k^z&k,_a=(le>>>28|B<<4)^(le<<30|B>>>2)^(le<<25|B>>>7),wo=(B>>>28|le<<4)^(B<<30|le>>>2)^(B<<25|le>>>7),dR=($>>>14|ae<<18)^($>>>18|ae<<14)^($<<23|ae>>>9),fR=(ae>>>14|$<<18)^(ae>>>18|$<<14)^(ae<<23|$>>>9),Q0=d[Te],RR=Q0.high,Z0=Q0.low,yn=Se+fR,go=Oe+dR+(yn>>>0>>0?1:0),yn=yn+ut,go=go+it+(yn>>>0>>0?1:0),yn=yn+Z0,go=go+RR+(yn>>>0>>0?1:0),yn=yn+ve,go=go+Ze+(yn>>>0>>0?1:0),K0=wo+Kl,pR=_a+sn+(K0>>>0>>0?1:0);Oe=Fe,Se=Ue,Fe=fe,Ue=Ne,fe=$,Ne=ae,ae=K+yn|0,$=j+go+(ae>>>0>>0?1:0)|0,j=he,K=k,he=D,k=z,D=le,z=B,B=yn+K0|0,le=go+pR+(B>>>0>>0?1:0)|0}T=M.low=T+B,M.high=x+le+(T>>>0>>0?1:0),Y=g.low=Y+z,g.high=y+D+(Y>>>0>>0?1:0),W=m.low=W+k,m.high=U+he+(W>>>0>>0?1:0),F=O.low=F+K,O.high=C+j+(F>>>0>>0?1:0),w=S.low=w+ae,S.high=J+$+(w>>>0>>0?1:0),se=P.low=se+Ne,P.high=q+fe+(se>>>0>>0?1:0),G=b.low=G+Ue,b.high=H+Fe+(G>>>0>>0?1:0),E=N.low=E+Se,N.high=Q+Oe+(E>>>0>>0?1:0)},_doFinalize:function(){var R=this._data,h=R.words,v=this._nDataBytes*8,M=R.sigBytes*8;h[M>>>5]|=128<<24-M%32,h[(M+128>>>10<<5)+30]=Math.floor(v/4294967296),h[(M+128>>>10<<5)+31]=v,R.sigBytes=h.length*4,this._process();var g=this._hash.toX32();return g},clone:function(){var R=a.clone.call(this);return R._hash=this._hash.clone(),R},blockSize:1024/32});o.SHA512=a._createHelper(p),o.HmacSHA512=a._createHmacHelper(p)}(),n.SHA512})}(Rr)),Rr.exports}var pr={exports:{}},zc;function rS(){return zc||(zc=1,function(e,t){(function(n,o,l){e.exports=o(Rt(),Ia(),Tf())})(tt,function(n){return function(){var o=n,l=o.x64,a=l.Word,s=l.WordArray,r=o.algo,c=r.SHA512,i=r.SHA384=c.extend({_doReset:function(){this._hash=new s.init([new a.init(3418070365,3238371032),new a.init(1654270250,914150663),new a.init(2438529370,812702999),new a.init(355462360,4144912697),new a.init(1731405415,4290775857),new a.init(2394180231,1750603025),new a.init(3675008525,1694076839),new a.init(1203062813,3204075428)])},_doFinalize:function(){var u=c._doFinalize.call(this);return u.sigBytes-=16,u}});o.SHA384=c._createHelper(i),o.HmacSHA384=c._createHmacHelper(i)}(),n.SHA384})}(pr)),pr.exports}var hr={exports:{}},jc;function iS(){return jc||(jc=1,function(e,t){(function(n,o,l){e.exports=o(Rt(),Ia())})(tt,function(n){return function(o){var l=n,a=l.lib,s=a.WordArray,r=a.Hasher,c=l.x64,i=c.Word,u=l.algo,d=[],f=[],p=[];(function(){for(var v=1,M=0,g=0;g<24;g++){d[v+5*M]=(g+1)*(g+2)/2%64;var m=M%5,O=(2*v+3*M)%5;v=m,M=O}for(var v=0;v<5;v++)for(var M=0;M<5;M++)f[v+5*M]=M+(2*v+3*M)%5*5;for(var S=1,P=0;P<24;P++){for(var b=0,N=0,x=0;x<7;x++){if(S&1){var T=(1<>>24)&16711935|(S<<24|S>>>8)&4278255360,P=(P<<8|P>>>24)&16711935|(P<<24|P>>>8)&4278255360;var b=g[O];b.high^=P,b.low^=S}for(var N=0;N<24;N++){for(var x=0;x<5;x++){for(var T=0,y=0,Y=0;Y<5;Y++){var b=g[x+5*Y];T^=b.high,y^=b.low}var U=R[x];U.high=T,U.low=y}for(var x=0;x<5;x++)for(var W=R[(x+4)%5],C=R[(x+1)%5],F=C.high,J=C.low,T=W.high^(F<<1|J>>>31),y=W.low^(J<<1|F>>>31),Y=0;Y<5;Y++){var b=g[x+5*Y];b.high^=T,b.low^=y}for(var w=1;w<25;w++){var T,y,b=g[w],q=b.high,se=b.low,H=d[w];H<32?(T=q<>>32-H,y=se<>>32-H):(T=se<>>64-H,y=q<>>64-H);var G=R[f[w]];G.high=T,G.low=y}var Q=R[0],E=g[0];Q.high=E.high,Q.low=E.low;for(var x=0;x<5;x++)for(var Y=0;Y<5;Y++){var w=x+5*Y,b=g[w],le=R[w],B=R[(x+1)%5+5*Y],D=R[(x+2)%5+5*Y];b.high=le.high^~B.high&D.high,b.low=le.low^~B.low&D.low}var b=g[0],z=p[N];b.high^=z.high,b.low^=z.low}},_doFinalize:function(){var v=this._data,M=v.words;this._nDataBytes*8;var g=v.sigBytes*8,m=this.blockSize*32;M[g>>>5]|=1<<24-g%32,M[(o.ceil((g+1)/m)*m>>>5)-1]|=128,v.sigBytes=M.length*4,this._process();for(var O=this._state,S=this.cfg.outputLength/8,P=S/8,b=[],N=0;N>>24)&16711935|(T<<24|T>>>8)&4278255360,y=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,b.push(y),b.push(T)}return new s.init(b,S)},clone:function(){for(var v=r.clone.call(this),M=v._state=this._state.slice(0),g=0;g<25;g++)M[g]=M[g].clone();return v}});l.SHA3=r._createHelper(h),l.HmacSHA3=r._createHmacHelper(h)}(Math),n.SHA3})}(hr)),hr.exports}var vr={exports:{}},qc;function cS(){return qc||(qc=1,function(e,t){(function(n,o){e.exports=o(Rt())})(tt,function(n){/** @preserve (c) 2012 by Cédric Mesnil. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */return function(o){var l=n,a=l.lib,s=a.WordArray,r=a.Hasher,c=l.algo,i=s.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),u=s.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),d=s.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),f=s.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),p=s.create([0,1518500249,1859775393,2400959708,2840853838]),R=s.create([1352829926,1548603684,1836072691,2053994217,0]),h=c.RIPEMD160=r.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(P,b){for(var N=0;N<16;N++){var x=b+N,T=P[x];P[x]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360}var y=this._hash.words,Y=p.words,U=R.words,W=i.words,C=u.words,F=d.words,J=f.words,w,q,se,H,G,Q,E,le,B,D;Q=w=y[0],E=q=y[1],le=se=y[2],B=H=y[3],D=G=y[4];for(var z,N=0;N<80;N+=1)z=w+P[b+W[N]]|0,N<16?z+=v(q,se,H)+Y[0]:N<32?z+=M(q,se,H)+Y[1]:N<48?z+=g(q,se,H)+Y[2]:N<64?z+=m(q,se,H)+Y[3]:z+=O(q,se,H)+Y[4],z=z|0,z=S(z,F[N]),z=z+G|0,w=G,G=H,H=S(se,10),se=q,q=z,z=Q+P[b+C[N]]|0,N<16?z+=O(E,le,B)+U[0]:N<32?z+=m(E,le,B)+U[1]:N<48?z+=g(E,le,B)+U[2]:N<64?z+=M(E,le,B)+U[3]:z+=v(E,le,B)+U[4],z=z|0,z=S(z,J[N]),z=z+D|0,Q=D,D=B,B=S(le,10),le=E,E=z;z=y[1]+se+B|0,y[1]=y[2]+H+D|0,y[2]=y[3]+G+Q|0,y[3]=y[4]+w+E|0,y[4]=y[0]+q+le|0,y[0]=z},_doFinalize:function(){var P=this._data,b=P.words,N=this._nDataBytes*8,x=P.sigBytes*8;b[x>>>5]|=128<<24-x%32,b[(x+64>>>9<<4)+14]=(N<<8|N>>>24)&16711935|(N<<24|N>>>8)&4278255360,P.sigBytes=(b.length+1)*4,this._process();for(var T=this._hash,y=T.words,Y=0;Y<5;Y++){var U=y[Y];y[Y]=(U<<8|U>>>24)&16711935|(U<<24|U>>>8)&4278255360}return T},clone:function(){var P=r.clone.call(this);return P._hash=this._hash.clone(),P}});function v(P,b,N){return P^b^N}function M(P,b,N){return P&b|~P&N}function g(P,b,N){return(P|~b)^N}function m(P,b,N){return P&N|b&~N}function O(P,b,N){return P^(b|~N)}function S(P,b){return P<>>32-b}l.RIPEMD160=r._createHelper(h),l.HmacRIPEMD160=r._createHmacHelper(h)}(),n.RIPEMD160})}(vr)),vr.exports}var mr={exports:{}},eu;function d0(){return eu||(eu=1,function(e,t){(function(n,o){e.exports=o(Rt())})(tt,function(n){(function(){var o=n,l=o.lib,a=l.Base,s=o.enc,r=s.Utf8,c=o.algo;c.HMAC=a.extend({init:function(i,u){i=this._hasher=new i.init,typeof u=="string"&&(u=r.parse(u));var d=i.blockSize,f=d*4;u.sigBytes>f&&(u=i.finalize(u)),u.clamp();for(var p=this._oKey=u.clone(),R=this._iKey=u.clone(),h=p.words,v=R.words,M=0;M>>2]&255;T.sigBytes-=y}};a.BlockCipher=p.extend({cfg:p.cfg.extend({mode:v,padding:g}),reset:function(){var T;p.reset.call(this);var y=this.cfg,Y=y.iv,U=y.mode;this._xformMode==this._ENC_XFORM_MODE?T=U.createEncryptor:(T=U.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==T?this._mode.init(this,Y&&Y.words):(this._mode=T.call(U,this,Y&&Y.words),this._mode.__creator=T)},_doProcessBlock:function(T,y){this._mode.processBlock(T,y)},_doFinalize:function(){var T,y=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(y.pad(this._data,this.blockSize),T=this._process(!0)):(T=this._process(!0),y.unpad(T)),T},blockSize:128/32});var m=a.CipherParams=s.extend({init:function(T){this.mixIn(T)},toString:function(T){return(T||this.formatter).stringify(this)}}),O=l.format={},S=O.OpenSSL={stringify:function(T){var y,Y=T.ciphertext,U=T.salt;return U?y=r.create([1398893684,1701076831]).concat(U).concat(Y):y=Y,y.toString(u)},parse:function(T){var y,Y=u.parse(T),U=Y.words;return U[0]==1398893684&&U[1]==1701076831&&(y=r.create(U.slice(2,4)),U.splice(0,4),Y.sigBytes-=16),m.create({ciphertext:Y,salt:y})}},P=a.SerializableCipher=s.extend({cfg:s.extend({format:S}),encrypt:function(T,y,Y,U){U=this.cfg.extend(U);var W=T.createEncryptor(Y,U),C=W.finalize(y),F=W.cfg;return m.create({ciphertext:C,key:Y,iv:F.iv,algorithm:T,mode:F.mode,padding:F.padding,blockSize:T.blockSize,formatter:U.format})},decrypt:function(T,y,Y,U){U=this.cfg.extend(U),y=this._parse(y,U.format);var W=T.createDecryptor(Y,U).finalize(y.ciphertext);return W},_parse:function(T,y){return typeof T=="string"?y.parse(T,this):T}}),b=l.kdf={},N=b.OpenSSL={execute:function(T,y,Y,U,W){if(U||(U=r.random(64/8)),W)var C=f.create({keySize:y+Y,hasher:W}).compute(T,U);else var C=f.create({keySize:y+Y}).compute(T,U);var F=r.create(C.words.slice(y),Y*4);return C.sigBytes=y*4,m.create({key:C,iv:F,salt:U})}},x=a.PasswordBasedCipher=P.extend({cfg:P.cfg.extend({kdf:N}),encrypt:function(T,y,Y,U){U=this.cfg.extend(U);var W=U.kdf.execute(Y,T.keySize,T.ivSize,U.salt,U.hasher);U.iv=W.iv;var C=P.encrypt.call(this,T,y,W.key,U);return C.mixIn(W),C},decrypt:function(T,y,Y,U){U=this.cfg.extend(U),y=this._parse(y,U.format);var W=U.kdf.execute(Y,T.keySize,T.ivSize,y.salt,U.hasher);U.iv=W.iv;var C=P.decrypt.call(this,T,y,W.key,U);return C}})}()})}(Mr)),Mr.exports}var Or={exports:{}},lu;function dS(){return lu||(lu=1,function(e,t){(function(n,o,l){e.exports=o(Rt(),qt())})(tt,function(n){return n.mode.CFB=function(){var o=n.lib.BlockCipherMode.extend();o.Encryptor=o.extend({processBlock:function(a,s){var r=this._cipher,c=r.blockSize;l.call(this,a,s,c,r),this._prevBlock=a.slice(s,s+c)}}),o.Decryptor=o.extend({processBlock:function(a,s){var r=this._cipher,c=r.blockSize,i=a.slice(s,s+c);l.call(this,a,s,c,r),this._prevBlock=i}});function l(a,s,r,c){var i,u=this._iv;u?(i=u.slice(0),this._iv=void 0):i=this._prevBlock,c.encryptBlock(i,0);for(var d=0;d>24&255)===255){var c=r>>16&255,i=r>>8&255,u=r&255;c===255?(c=0,i===255?(i=0,u===255?u=0:++u):++i):++c,r=0,r+=c<<16,r+=i<<8,r+=u}else r+=1<<24;return r}function a(r){return(r[0]=l(r[0]))===0&&(r[1]=l(r[1])),r}var s=o.Encryptor=o.extend({processBlock:function(r,c){var i=this._cipher,u=i.blockSize,d=this._iv,f=this._counter;d&&(f=this._counter=d.slice(0),this._iv=void 0),a(f);var p=f.slice(0);i.encryptBlock(p,0);for(var R=0;R>>2]|=r<<24-c%4*8,o.sigBytes+=r},unpad:function(o){var l=o.words[o.sigBytes-1>>>2]&255;o.sigBytes-=l}},n.pad.Ansix923})}(Xr)),Xr.exports}var yr={exports:{}},uu;function mS(){return uu||(uu=1,function(e,t){(function(n,o,l){e.exports=o(Rt(),qt())})(tt,function(n){return n.pad.Iso10126={pad:function(o,l){var a=l*4,s=a-o.sigBytes%a;o.concat(n.lib.WordArray.random(s-1)).concat(n.lib.WordArray.create([s<<24],1))},unpad:function(o){var l=o.words[o.sigBytes-1>>>2]&255;o.sigBytes-=l}},n.pad.Iso10126})}(yr)),yr.exports}var Lr={exports:{}},du;function gS(){return du||(du=1,function(e,t){(function(n,o,l){e.exports=o(Rt(),qt())})(tt,function(n){return n.pad.Iso97971={pad:function(o,l){o.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(o,l)},unpad:function(o){n.pad.ZeroPadding.unpad(o),o.sigBytes--}},n.pad.Iso97971})}(Lr)),Lr.exports}var br={exports:{}},fu;function SS(){return fu||(fu=1,function(e,t){(function(n,o,l){e.exports=o(Rt(),qt())})(tt,function(n){return n.pad.ZeroPadding={pad:function(o,l){var a=l*4;o.clamp(),o.sigBytes+=a-(o.sigBytes%a||a)},unpad:function(o){for(var l=o.words,a=o.sigBytes-1,a=o.sigBytes-1;a>=0;a--)if(l[a>>>2]>>>24-a%4*8&255){o.sigBytes=a+1;break}}},n.pad.ZeroPadding})}(br)),br.exports}var Vr={exports:{}},Ru;function MS(){return Ru||(Ru=1,function(e,t){(function(n,o,l){e.exports=o(Rt(),qt())})(tt,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})}(Vr)),Vr.exports}var Ir={exports:{}},pu;function OS(){return pu||(pu=1,function(e,t){(function(n,o,l){e.exports=o(Rt(),qt())})(tt,function(n){return function(o){var l=n,a=l.lib,s=a.CipherParams,r=l.enc,c=r.Hex,i=l.format;i.Hex={stringify:function(u){return u.ciphertext.toString(c)},parse:function(u){var d=c.parse(u);return s.create({ciphertext:d})}}}(),n.format.Hex})}(Ir)),Ir.exports}var Fr={exports:{}},hu;function xS(){return hu||(hu=1,function(e,t){(function(n,o,l){e.exports=o(Rt(),al(),rl(),Ho(),qt())})(tt,function(n){return function(){var o=n,l=o.lib,a=l.BlockCipher,s=o.algo,r=[],c=[],i=[],u=[],d=[],f=[],p=[],R=[],h=[],v=[];(function(){for(var m=[],O=0;O<256;O++)O<128?m[O]=O<<1:m[O]=O<<1^283;for(var S=0,P=0,O=0;O<256;O++){var b=P^P<<1^P<<2^P<<3^P<<4;b=b>>>8^b&255^99,r[S]=b,c[b]=S;var N=m[S],x=m[N],T=m[x],y=m[b]*257^b*16843008;i[S]=y<<24|y>>>8,u[S]=y<<16|y>>>16,d[S]=y<<8|y>>>24,f[S]=y;var y=T*16843009^x*65537^N*257^S*16843008;p[b]=y<<24|y>>>8,R[b]=y<<16|y>>>16,h[b]=y<<8|y>>>24,v[b]=y,S?(S=N^m[m[m[T^N]]],P^=m[m[P]]):S=P=1}})();var M=[0,1,2,4,8,16,32,64,128,27,54],g=s.AES=a.extend({_doReset:function(){var m;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var O=this._keyPriorReset=this._key,S=O.words,P=O.sigBytes/4,b=this._nRounds=P+6,N=(b+1)*4,x=this._keySchedule=[],T=0;T6&&T%P==4&&(m=r[m>>>24]<<24|r[m>>>16&255]<<16|r[m>>>8&255]<<8|r[m&255]):(m=m<<8|m>>>24,m=r[m>>>24]<<24|r[m>>>16&255]<<16|r[m>>>8&255]<<8|r[m&255],m^=M[T/P|0]<<24),x[T]=x[T-P]^m);for(var y=this._invKeySchedule=[],Y=0;Y>>24]]^R[r[m>>>16&255]]^h[r[m>>>8&255]]^v[r[m&255]]}}},encryptBlock:function(m,O){this._doCryptBlock(m,O,this._keySchedule,i,u,d,f,r)},decryptBlock:function(m,O){var S=m[O+1];m[O+1]=m[O+3],m[O+3]=S,this._doCryptBlock(m,O,this._invKeySchedule,p,R,h,v,c);var S=m[O+1];m[O+1]=m[O+3],m[O+3]=S},_doCryptBlock:function(m,O,S,P,b,N,x,T){for(var y=this._nRounds,Y=m[O]^S[0],U=m[O+1]^S[1],W=m[O+2]^S[2],C=m[O+3]^S[3],F=4,J=1;J>>24]^b[U>>>16&255]^N[W>>>8&255]^x[C&255]^S[F++],q=P[U>>>24]^b[W>>>16&255]^N[C>>>8&255]^x[Y&255]^S[F++],se=P[W>>>24]^b[C>>>16&255]^N[Y>>>8&255]^x[U&255]^S[F++],H=P[C>>>24]^b[Y>>>16&255]^N[U>>>8&255]^x[W&255]^S[F++];Y=w,U=q,W=se,C=H}var w=(T[Y>>>24]<<24|T[U>>>16&255]<<16|T[W>>>8&255]<<8|T[C&255])^S[F++],q=(T[U>>>24]<<24|T[W>>>16&255]<<16|T[C>>>8&255]<<8|T[Y&255])^S[F++],se=(T[W>>>24]<<24|T[C>>>16&255]<<16|T[Y>>>8&255]<<8|T[U&255])^S[F++],H=(T[C>>>24]<<24|T[Y>>>16&255]<<16|T[U>>>8&255]<<8|T[W&255])^S[F++];m[O]=w,m[O+1]=q,m[O+2]=se,m[O+3]=H},keySize:256/32});o.AES=a._createHelper(g)}(),n.AES})}(Fr)),Fr.exports}var Yr={exports:{}},vu;function PS(){return vu||(vu=1,function(e,t){(function(n,o,l){e.exports=o(Rt(),al(),rl(),Ho(),qt())})(tt,function(n){return function(){var o=n,l=o.lib,a=l.WordArray,s=l.BlockCipher,r=o.algo,c=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],i=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],d=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],f=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],p=r.DES=s.extend({_doReset:function(){for(var M=this._key,g=M.words,m=[],O=0;O<56;O++){var S=c[O]-1;m[O]=g[S>>>5]>>>31-S%32&1}for(var P=this._subKeys=[],b=0;b<16;b++){for(var N=P[b]=[],x=u[b],O=0;O<24;O++)N[O/6|0]|=m[(i[O]-1+x)%28]<<31-O%6,N[4+(O/6|0)]|=m[28+(i[O+24]-1+x)%28]<<31-O%6;N[0]=N[0]<<1|N[0]>>>31;for(var O=1;O<7;O++)N[O]=N[O]>>>(O-1)*4+3;N[7]=N[7]<<5|N[7]>>>27}for(var T=this._invSubKeys=[],O=0;O<16;O++)T[O]=P[15-O]},encryptBlock:function(M,g){this._doCryptBlock(M,g,this._subKeys)},decryptBlock:function(M,g){this._doCryptBlock(M,g,this._invSubKeys)},_doCryptBlock:function(M,g,m){this._lBlock=M[g],this._rBlock=M[g+1],R.call(this,4,252645135),R.call(this,16,65535),h.call(this,2,858993459),h.call(this,8,16711935),R.call(this,1,1431655765);for(var O=0;O<16;O++){for(var S=m[O],P=this._lBlock,b=this._rBlock,N=0,x=0;x<8;x++)N|=d[x][((b^S[x])&f[x])>>>0];this._lBlock=b,this._rBlock=P^N}var T=this._lBlock;this._lBlock=this._rBlock,this._rBlock=T,R.call(this,1,1431655765),h.call(this,8,16711935),h.call(this,2,858993459),R.call(this,16,65535),R.call(this,4,252645135),M[g]=this._lBlock,M[g+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function R(M,g){var m=(this._lBlock>>>M^this._rBlock)&g;this._rBlock^=m,this._lBlock^=m<>>M^this._lBlock)&g;this._lBlock^=m,this._rBlock^=m<192.");var m=g.slice(0,2),O=g.length<4?g.slice(0,2):g.slice(2,4),S=g.length<6?g.slice(0,2):g.slice(4,6);this._des1=p.createEncryptor(a.create(m)),this._des2=p.createEncryptor(a.create(O)),this._des3=p.createEncryptor(a.create(S))},encryptBlock:function(M,g){this._des1.encryptBlock(M,g),this._des2.decryptBlock(M,g),this._des3.encryptBlock(M,g)},decryptBlock:function(M,g){this._des3.decryptBlock(M,g),this._des2.encryptBlock(M,g),this._des1.decryptBlock(M,g)},keySize:192/32,ivSize:64/32,blockSize:64/32});o.TripleDES=s._createHelper(v)}(),n.TripleDES})}(Yr)),Yr.exports}var Ur={exports:{}},mu;function NS(){return mu||(mu=1,function(e,t){(function(n,o,l){e.exports=o(Rt(),al(),rl(),Ho(),qt())})(tt,function(n){return function(){var o=n,l=o.lib,a=l.StreamCipher,s=o.algo,r=s.RC4=a.extend({_doReset:function(){for(var u=this._key,d=u.words,f=u.sigBytes,p=this._S=[],R=0;R<256;R++)p[R]=R;for(var R=0,h=0;R<256;R++){var v=R%f,M=d[v>>>2]>>>24-v%4*8&255;h=(h+p[R]+M)%256;var g=p[R];p[R]=p[h],p[h]=g}this._i=this._j=0},_doProcessBlock:function(u,d){u[d]^=c.call(this)},keySize:256/32,ivSize:0});function c(){for(var u=this._S,d=this._i,f=this._j,p=0,R=0;R<4;R++){d=(d+1)%256,f=(f+u[d])%256;var h=u[d];u[d]=u[f],u[f]=h,p|=u[(u[d]+u[f])%256]<<24-R*8}return this._i=d,this._j=f,p}o.RC4=a._createHelper(r);var i=s.RC4Drop=r.extend({cfg:r.cfg.extend({drop:192}),_doReset:function(){r._doReset.call(this);for(var u=this.cfg.drop;u>0;u--)c.call(this)}});o.RC4Drop=a._createHelper(i)}(),n.RC4})}(Ur)),Ur.exports}var Wr={exports:{}},gu;function TS(){return gu||(gu=1,function(e,t){(function(n,o,l){e.exports=o(Rt(),al(),rl(),Ho(),qt())})(tt,function(n){return function(){var o=n,l=o.lib,a=l.StreamCipher,s=o.algo,r=[],c=[],i=[],u=s.Rabbit=a.extend({_doReset:function(){for(var f=this._key.words,p=this.cfg.iv,R=0;R<4;R++)f[R]=(f[R]<<8|f[R]>>>24)&16711935|(f[R]<<24|f[R]>>>8)&4278255360;var h=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],v=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var R=0;R<4;R++)d.call(this);for(var R=0;R<8;R++)v[R]^=h[R+4&7];if(p){var M=p.words,g=M[0],m=M[1],O=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,S=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360,P=O>>>16|S&4294901760,b=S<<16|O&65535;v[0]^=O,v[1]^=P,v[2]^=S,v[3]^=b,v[4]^=O,v[5]^=P,v[6]^=S,v[7]^=b;for(var R=0;R<4;R++)d.call(this)}},_doProcessBlock:function(f,p){var R=this._X;d.call(this),r[0]=R[0]^R[5]>>>16^R[3]<<16,r[1]=R[2]^R[7]>>>16^R[5]<<16,r[2]=R[4]^R[1]>>>16^R[7]<<16,r[3]=R[6]^R[3]>>>16^R[1]<<16;for(var h=0;h<4;h++)r[h]=(r[h]<<8|r[h]>>>24)&16711935|(r[h]<<24|r[h]>>>8)&4278255360,f[p+h]^=r[h]},blockSize:128/32,ivSize:64/32});function d(){for(var f=this._X,p=this._C,R=0;R<8;R++)c[R]=p[R];p[0]=p[0]+1295307597+this._b|0,p[1]=p[1]+3545052371+(p[0]>>>0>>0?1:0)|0,p[2]=p[2]+886263092+(p[1]>>>0>>0?1:0)|0,p[3]=p[3]+1295307597+(p[2]>>>0>>0?1:0)|0,p[4]=p[4]+3545052371+(p[3]>>>0>>0?1:0)|0,p[5]=p[5]+886263092+(p[4]>>>0>>0?1:0)|0,p[6]=p[6]+1295307597+(p[5]>>>0>>0?1:0)|0,p[7]=p[7]+3545052371+(p[6]>>>0>>0?1:0)|0,this._b=p[7]>>>0>>0?1:0;for(var R=0;R<8;R++){var h=f[R]+p[R],v=h&65535,M=h>>>16,g=((v*v>>>17)+v*M>>>15)+M*M,m=((h&4294901760)*h|0)+((h&65535)*h|0);i[R]=g^m}f[0]=i[0]+(i[7]<<16|i[7]>>>16)+(i[6]<<16|i[6]>>>16)|0,f[1]=i[1]+(i[0]<<8|i[0]>>>24)+i[7]|0,f[2]=i[2]+(i[1]<<16|i[1]>>>16)+(i[0]<<16|i[0]>>>16)|0,f[3]=i[3]+(i[2]<<8|i[2]>>>24)+i[1]|0,f[4]=i[4]+(i[3]<<16|i[3]>>>16)+(i[2]<<16|i[2]>>>16)|0,f[5]=i[5]+(i[4]<<8|i[4]>>>24)+i[3]|0,f[6]=i[6]+(i[5]<<16|i[5]>>>16)+(i[4]<<16|i[4]>>>16)|0,f[7]=i[7]+(i[6]<<8|i[6]>>>24)+i[5]|0}o.Rabbit=a._createHelper(u)}(),n.Rabbit})}(Wr)),Wr.exports}var Ar={exports:{}},Su;function XS(){return Su||(Su=1,function(e,t){(function(n,o,l){e.exports=o(Rt(),al(),rl(),Ho(),qt())})(tt,function(n){return function(){var o=n,l=o.lib,a=l.StreamCipher,s=o.algo,r=[],c=[],i=[],u=s.RabbitLegacy=a.extend({_doReset:function(){var f=this._key.words,p=this.cfg.iv,R=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],h=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var v=0;v<4;v++)d.call(this);for(var v=0;v<8;v++)h[v]^=R[v+4&7];if(p){var M=p.words,g=M[0],m=M[1],O=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,S=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360,P=O>>>16|S&4294901760,b=S<<16|O&65535;h[0]^=O,h[1]^=P,h[2]^=S,h[3]^=b,h[4]^=O,h[5]^=P,h[6]^=S,h[7]^=b;for(var v=0;v<4;v++)d.call(this)}},_doProcessBlock:function(f,p){var R=this._X;d.call(this),r[0]=R[0]^R[5]>>>16^R[3]<<16,r[1]=R[2]^R[7]>>>16^R[5]<<16,r[2]=R[4]^R[1]>>>16^R[7]<<16,r[3]=R[6]^R[3]>>>16^R[1]<<16;for(var h=0;h<4;h++)r[h]=(r[h]<<8|r[h]>>>24)&16711935|(r[h]<<24|r[h]>>>8)&4278255360,f[p+h]^=r[h]},blockSize:128/32,ivSize:64/32});function d(){for(var f=this._X,p=this._C,R=0;R<8;R++)c[R]=p[R];p[0]=p[0]+1295307597+this._b|0,p[1]=p[1]+3545052371+(p[0]>>>0>>0?1:0)|0,p[2]=p[2]+886263092+(p[1]>>>0>>0?1:0)|0,p[3]=p[3]+1295307597+(p[2]>>>0>>0?1:0)|0,p[4]=p[4]+3545052371+(p[3]>>>0>>0?1:0)|0,p[5]=p[5]+886263092+(p[4]>>>0>>0?1:0)|0,p[6]=p[6]+1295307597+(p[5]>>>0>>0?1:0)|0,p[7]=p[7]+3545052371+(p[6]>>>0>>0?1:0)|0,this._b=p[7]>>>0>>0?1:0;for(var R=0;R<8;R++){var h=f[R]+p[R],v=h&65535,M=h>>>16,g=((v*v>>>17)+v*M>>>15)+M*M,m=((h&4294901760)*h|0)+((h&65535)*h|0);i[R]=g^m}f[0]=i[0]+(i[7]<<16|i[7]>>>16)+(i[6]<<16|i[6]>>>16)|0,f[1]=i[1]+(i[0]<<8|i[0]>>>24)+i[7]|0,f[2]=i[2]+(i[1]<<16|i[1]>>>16)+(i[0]<<16|i[0]>>>16)|0,f[3]=i[3]+(i[2]<<8|i[2]>>>24)+i[1]|0,f[4]=i[4]+(i[3]<<16|i[3]>>>16)+(i[2]<<16|i[2]>>>16)|0,f[5]=i[5]+(i[4]<<8|i[4]>>>24)+i[3]|0,f[6]=i[6]+(i[5]<<16|i[5]>>>16)+(i[4]<<16|i[4]>>>16)|0,f[7]=i[7]+(i[6]<<8|i[6]>>>24)+i[5]|0}o.RabbitLegacy=a._createHelper(u)}(),n.RabbitLegacy})}(Ar)),Ar.exports}var Qr={exports:{}},Mu;function yS(){return Mu||(Mu=1,function(e,t){(function(n,o,l){e.exports=o(Rt(),al(),rl(),Ho(),qt())})(tt,function(n){return function(){var o=n,l=o.lib,a=l.BlockCipher,s=o.algo;const r=16,c=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],i=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var u={pbox:[],sbox:[]};function d(v,M){let g=M>>24&255,m=M>>16&255,O=M>>8&255,S=M&255,P=v.sbox[0][g]+v.sbox[1][m];return P=P^v.sbox[2][O],P=P+v.sbox[3][S],P}function f(v,M,g){let m=M,O=g,S;for(let P=0;P1;--P)m=m^v.pbox[P],O=d(v,m)^O,S=m,m=O,O=S;return S=m,m=O,O=S,O=O^v.pbox[1],m=m^v.pbox[0],{left:m,right:O}}function R(v,M,g){for(let b=0;b<4;b++){v.sbox[b]=[];for(let N=0;N<256;N++)v.sbox[b][N]=i[b][N]}let m=0;for(let b=0;b=g&&(m=0);let O=0,S=0,P=0;for(let b=0;bSi.AES.encrypt(e,Xf).toString(),bS=e=>Si.AES.decrypt(e,Xf).toString(Si.enc.Utf8),Lf=e=>new Promise((t,n)=>{const o=document.createElement("button"),l=new jg(o,{text:()=>e,action:()=>"copy",container:document.body});l.on("success",a=>{l.destroy(),t(a)}),l.on("error",a=>{l.destroy(),n(a)}),document.body.appendChild(o),o.click(),document.body.removeChild(o)}),bf=()=>new Promise((e,t)=>{var n;(n=navigator.clipboard)!=null&&n.readText?navigator.clipboard.readText().then(o=>(o||t("剪贴板为空或者不包含文本"),e(o))):t("浏览器不支持或禁止访问剪贴板,请使用快捷键 Ctrl + V")}),f0=e=>{let t;try{t=JSON.parse(bS(e))}catch{t=e}return t},Vf=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},VS=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}}),il=e=>new Promise(t=>{const n=new FileReader;n.addEventListener("load",()=>{t(n.result)}),n.readAsDataURL(e)}),IS=e=>{if(!/[\s\S]*?<\/svg>/i.test(e))return!1;try{return new DOMParser().parseFromString(e,"image/svg+xml").documentElement.nodeName==="svg"}catch{return!1}},FS=e=>{const t=new Blob([e],{type:"image/svg+xml"});return new File([t],`${Date.now()}.svg`,{type:"image/svg+xml"})},Wl={[lt.ROUND_RECT]:{editable:!0,defaultValue:[.125],range:[[0,.5]],relative:["left"],getBaseSize:[(e,t)=>Math.min(e,t)],formula:(e,t,n)=>{const o=Math.min(e,t)*n[0];return`M ${o} 0 L ${e-o} 0 Q ${e} 0 ${e} ${o} L ${e} ${t-o} Q ${e} ${t} ${e-o} ${t} L ${o} ${t} Q 0 ${t} 0 ${t-o} L 0 ${o} Q 0 0 ${o} 0 Z`}},[lt.CUT_RECT_DIAGONAL]:{editable:!0,defaultValue:[.2],range:[[0,.9]],relative:["right"],getBaseSize:[(e,t)=>Math.min(e,t)],formula:(e,t,n)=>{const o=Math.min(e,t)*n[0];return`M 0 ${t-o} L 0 0 L ${e-o} 0 L ${e} ${o} L ${e} ${t} L ${o} ${t} Z`}},[lt.CUT_RECT_SINGLE]:{editable:!0,defaultValue:[.2],range:[[0,.9]],relative:["right"],getBaseSize:[(e,t)=>Math.min(e,t)],formula:(e,t,n)=>{const o=Math.min(e,t)*n[0];return`M 0 ${t} L 0 0 L ${e-o} 0 L ${e} ${o} L ${e} ${t} Z`}},[lt.CUT_RECT_SAMESIDE]:{editable:!0,defaultValue:[.2],range:[[0,.5]],relative:["left"],getBaseSize:[(e,t)=>Math.min(e,t)],formula:(e,t,n)=>{const o=Math.min(e,t)*n[0];return`M 0 ${o} L ${o} 0 L ${e-o} 0 L ${e} ${o} L ${e} ${t} L 0 ${t} Z`}},[lt.ROUND_RECT_DIAGONAL]:{editable:!0,defaultValue:[.125],range:[[0,1]],relative:["left"],getBaseSize:[(e,t)=>Math.min(e,t)],formula:(e,t,n)=>{const o=Math.min(e,t)*n[0];return`M ${o} 0 L ${e} 0 L ${e} ${t-o} Q ${e} ${t} ${e-o} ${t} L 0 ${t} L 0 ${o} Q 0 0 ${o} 0 Z`}},[lt.ROUND_RECT_SINGLE]:{editable:!0,defaultValue:[.125],range:[[0,1]],relative:["right"],getBaseSize:[(e,t)=>Math.min(e,t)],formula:(e,t,n)=>{const o=Math.min(e,t)*n[0];return`M 0 0 L ${e-o} 0 Q ${e} 0 ${e} ${o} L ${e} ${t} L 0 ${t} L 0 0 Z`}},[lt.ROUND_RECT_SAMESIDE]:{editable:!0,defaultValue:[.125],range:[[0,.5]],relative:["left"],getBaseSize:[(e,t)=>Math.min(e,t)],formula:(e,t,n)=>{const o=Math.min(e,t)*n[0];return`M 0 ${o} Q 0 0 ${o} 0 L ${e-o} 0 Q ${e} 0 ${e} ${o} L ${e} ${t} L 0 ${t} Z`}},[lt.CUT_ROUND_RECT]:{editable:!0,defaultValue:[.125],range:[[0,.5]],relative:["left"],getBaseSize:[(e,t)=>Math.min(e,t)],formula:(e,t,n)=>{const o=Math.min(e,t)*n[0];return`M ${o} 0 L ${e-o} 0 L ${e} ${o} L ${e} ${t} L 0 ${t} L 0 ${o} Q 0 0 ${o} 0 Z`}},[lt.MESSAGE]:{editable:!0,range:[[0,.8],[.1,.3]],defaultValue:[.3,.2],relative:["left_bottom","bottom"],getBaseSize:[e=>e,(e,t)=>t],formula:(e,t,n)=>{const o=e*n[0],l=e*.2,a=t*n[1];return`M 0 0 L ${e} 0 L ${e} ${t-a} L ${o+l} ${t-a} L ${o} ${t} L ${o} ${t-a} L 0 ${t-a} Z`}},[lt.ROUND_MESSAGE]:{formula:(e,t)=>{const n=Math.min(e,t)*.125,o=Math.min(e,t)*.2,l=Math.min(e,t)*.2;return`M 0 ${n} Q 0 0 ${n} 0 L ${e-n} 0 Q ${e} 0 ${e} ${n} L ${e} ${t-n-l} Q ${e} ${t-l} ${e-n} ${t-l} L ${e/2} ${t-l} L ${e/2-o} ${t} L ${e/2-o} ${t-l} L ${n} ${t-l} Q 0 ${t-l} 0 ${t-n-l} L 0 ${n} Z`}},[lt.L]:{editable:!0,defaultValue:[.25],range:[[.1,.9]],relative:["left"],getBaseSize:[(e,t)=>Math.min(e,t)],formula:(e,t,n)=>{const o=Math.min(e,t)*n[0];return`M 0 0 L 0 ${t} L ${e} ${t} L ${e} ${t-o} L ${o} ${t-o} L ${o} 0 Z`}},[lt.RING_RECT]:{editable:!0,defaultValue:[.25],range:[[.1,.45]],relative:["left"],getBaseSize:[(e,t)=>Math.min(e,t)],formula:(e,t,n)=>{const o=Math.min(e,t)*n[0];return`M 0 0 ${e} 0 ${e} ${t} L 0 ${t} L 0 0 Z M ${o} ${o} L ${o} ${t-o} L ${e-o} ${t-o} L ${e-o} ${o} Z`}},[lt.PLUS]:{editable:!0,defaultValue:[.25],range:[[.1,.9]],relative:["center"],getBaseSize:[(e,t)=>Math.min(e,t)],formula:(e,t,n)=>{const o=Math.min(e,t)*n[0];return`M ${e/2-o/2} 0 L ${e/2-o/2} ${t/2-o/2} L 0 ${t/2-o/2} L 0 ${t/2+o/2} L ${e/2-o/2} ${t/2+o/2} L ${e/2-o/2} ${t} L ${e/2+o/2} ${t} L ${e/2+o/2} ${t/2+o/2} L ${e} ${t/2+o/2} L ${e} ${t/2-o/2} L ${e/2+o/2} ${t/2-o/2} L ${e/2+o/2} 0 Z`}},[lt.TRIANGLE]:{editable:!0,defaultValue:[.5],range:[[0,1]],relative:["left"],getBaseSize:[e=>e],formula:(e,t,n)=>`M ${e*n[0]} 0 L 0 ${t} L ${e} ${t} Z`},[lt.PARALLELOGRAM_LEFT]:{editable:!0,defaultValue:[.25],range:[[0,.9]],relative:["left"],getBaseSize:[e=>e],formula:(e,t,n)=>{const o=e*n[0];return`M ${o} 0 L ${e} 0 L ${e-o} ${t} L 0 ${t} Z`}},[lt.PARALLELOGRAM_RIGHT]:{editable:!0,defaultValue:[.25],range:[[0,.9]],relative:["right"],getBaseSize:[e=>e],formula:(e,t,n)=>{const o=e*n[0];return`M 0 0 L ${e-o} 0 L ${e} ${t} L ${o} ${t} Z`}},[lt.TRAPEZOID]:{editable:!0,defaultValue:[.25],range:[[0,.5]],relative:["left"],getBaseSize:[e=>e],formula:(e,t,n)=>{const o=e*n[0];return`M ${o} 0 L ${e-o} 0 L ${e} ${t} L 0 ${t} Z`}},[lt.BULLET]:{editable:!0,defaultValue:[.2],range:[[0,1]],relative:["top"],getBaseSize:[(e,t)=>t],formula:(e,t,n)=>{const o=t*n[0];return`M ${e/2} 0 L 0 ${o} L 0 ${t} L ${e} ${t} L ${e} ${o} Z`}},[lt.INDICATOR]:{editable:!0,defaultValue:[.2],range:[[0,.9]],relative:["right"],getBaseSize:[e=>e],formula:(e,t,n)=>{const o=e*n[0];return`M ${e} ${t/2} L ${e-o} 0 L 0 0 L ${o} ${t/2} L 0 ${t} L ${e-o} ${t} Z`}}},If=[{type:"矩形",children:[{viewBox:[200,200],path:"M 0 0 L 200 0 L 200 200 L 0 200 Z",pptxShapeType:"rect"},{viewBox:[200,200],path:"M 50 0 L 150 0 Q 200 0 200 50 L 200 150 Q 200 200 150 200 L 50 200 Q 0 200 0 150 L 0 50 Q 0 0 50 0 Z",pathFormula:lt.ROUND_RECT,pptxShapeType:"roundRect"},{viewBox:[200,200],path:"M 0 200 L 0 0 L 150 0 L 200 50 L 200 200 Z",pathFormula:lt.CUT_RECT_SINGLE,pptxShapeType:"snip1Rect"},{viewBox:[200,200],path:"M 0 50 L 50 0 L 150 0 L 200 50 L 200 200 L 0 200 Z",pathFormula:lt.CUT_RECT_SAMESIDE,pptxShapeType:"snip2SameRect"},{viewBox:[200,200],path:"M 0 150 L 0 0 L 150 0 L 200 50 L 200 200 L 50 200 Z",pathFormula:lt.CUT_RECT_DIAGONAL,pptxShapeType:"snip2DiagRect"},{viewBox:[200,200],path:"M 50 0 L 150 0 L 200 50 L 200 200 L 0 200 L 0 50 Q 0 0 50 0 Z",pathFormula:lt.CUT_ROUND_RECT,pptxShapeType:"snipRoundRect"},{viewBox:[200,200],path:"M 0 0 L 150 0 Q 200 0 200 50 L 200 200 L 0 200 L 0 0 Z",pathFormula:lt.ROUND_RECT_SINGLE,pptxShapeType:"round1Rect"},{viewBox:[200,200],path:"M 0 50 Q 0 0 50 0 L 150 0 Q 200 0 200 50 L 200 200 L 0 200 Z",pathFormula:lt.ROUND_RECT_SAMESIDE,pptxShapeType:"round2SameRect"},{viewBox:[200,200],path:"M 50 0 L 200 0 L 200 150 Q 200 200 150 200 L 0 200 L 0 50 Q 0 0 50 0 Z",pathFormula:lt.ROUND_RECT_DIAGONAL,pptxShapeType:"round2DiagRect"}]},{type:"常用形状",children:[{viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",pptxShapeType:"ellipse"},{viewBox:[200,200],path:"M 100 0 L 0 200 L 200 200 L 100 0 Z",pathFormula:lt.TRIANGLE,pptxShapeType:"triangle"},{viewBox:[200,200],path:"M 0 0 L 0 200 L 200 200 Z"},{viewBox:[200,200],path:"M 70 20 L 0 160 Q 0 200 40 200 L 160 200 Q 200 200 200 160 L 130 20 Q 100 -20 70 20 Z"},{viewBox:[200,200],path:"M 50 0 L 200 0 L 150 200 L 0 200 L 50 0 Z",pathFormula:lt.PARALLELOGRAM_LEFT,pptxShapeType:"parallelogram"},{viewBox:[200,200],path:"M 0 0 L 150 0 L 200 200 L 50 200 L 0 0 Z",pathFormula:lt.PARALLELOGRAM_RIGHT},{viewBox:[200,200],path:"M 50 0 L 150 0 L 200 200 L 0 200 L 50 0 Z",pathFormula:lt.TRAPEZOID,pptxShapeType:"trapezoid"},{viewBox:[200,200],path:"M 100 0 L 0 100 L 100 200 L 200 100 L 100 0 Z",pptxShapeType:"diamond"},{viewBox:[200,200],path:"M 100 0 L 0 50 L 0 200 L 200 200 L 200 50 L 100 0 Z",pathFormula:lt.BULLET},{viewBox:[200,200],path:"M 200 100 L 150 0 L 0 0 L 50 100 L 0 200 L 150 200 L 200 100 Z",pathFormula:lt.INDICATOR},{viewBox:[200,200],path:"M 0 0 C 80 20 120 20 200 0 C 180 80 180 120 200 200 C 80 180 120 180 0 200 C 20 120 20 80 0 0 Z"},{viewBox:[200,200],path:"M 10 10 C 60 0 140 0 190 10 C 200 60 200 140 190 190 C 140 200 60 200 10 190 C 0 140 0 60 10 10 Z"},{viewBox:[200,200],path:"M 0 200 A 50 100 0 1 1 200 200 L 0 200 Z"},{viewBox:[200,200],path:"M 40 20 A 100 100 0 1 0 200 100 L 100 100 L 40 20 Z"},{viewBox:[200,200],path:"M 100 0 A 100 100 102 1 0 200 100 L 100 100 L 100 0 Z",pptxShapeType:"pie"},{viewBox:[200,200],path:"M 160 20 A 100 100 0 1 0 200 100 L 100 100 L 160 20 Z"},{viewBox:[200,200],path:"M 100 0 A 100 100 102 1 0 200 100 L 100 0 Z",pptxShapeType:"chord"},{viewBox:[200,200],path:"M 100 0 A 100 100 102 1 0 200 100 L 200 0 L 100 0 Z",pptxShapeType:"teardrop"},{viewBox:[200,200],path:"M 0 0 L 200 0 Q 200 200 0 200 L 0 0 Z"},{viewBox:[200,200],path:"M100,0 L200,76.6 L161.8,200 L38.2,200 L0,76.6 Z",pptxShapeType:"pentagon"},{viewBox:[200,200],path:"M 40 0 L 160 0 L 200 100 L 160 200 L 40 200 L 0 100 Z",pptxShapeType:"hexagon"},{viewBox:[200,200],path:"M 100 0 L 0 60 L 0 140 L 100 200 L 200 140 L 200 60 L 100 0 Z"},{viewBox:[200,200],path:"M100,0 L170.71,29.29 L200,100 L170.71,170.71 L100,200 L29.29,170.71 L0,100 L29.29,29.29 Z"},{viewBox:[200,200],path:"M 60 0 L 140 0 L 200 60 L 200 140 L 140 200 L 60 200 L 0 140 L 0 60 L 60 0 Z",pptxShapeType:"octagon"},{viewBox:[200,200],path:"M 75 0 L 125 0 L 175 25 L 200 75 L 200 125 L 175 175 L 125 200 L 75 200 L 25 175 L 0 125 L 0 75 L 25 25 L 75 0 Z",pptxShapeType:"dodecagon"},{viewBox:[200,200],path:"M 150 0 A 50 100 0 1 1 150 200 L 0 200 L 0 0 L 150 0 Z"},{viewBox:[200,200],path:"M 50 0 A 25 50 0 1 0 50 200 L 150 200 A 25 50 0 1 0 150 0 L 50 0 Z"},{viewBox:[200,200],path:"M 150 0 A 50 100 0 1 1 150 200 L 0 200 A 50 100 0 0 0 0 0 L 150 0 Z"},{viewBox:[200,200],path:"M 200 0 L 200 200 L 0 200 L 0 100 L 200 0 Z",pptxShapeType:"flowChartManualInput"},{viewBox:[200,200],path:"M 0 0 L 200 100 L 200 200 L 0 200 L 0 0 Z"},{viewBox:[200,200],path:"M 0 0 L 200 0 L 200 150 C 110 140 110 240 0 180 Z",pptxShapeType:"flowChartDocument"},{viewBox:[200,200],path:"M 200 0 L 100 0 L 0 100 L 0 200 L 200 0 Z",pptxShapeType:"diagStripe"},{viewBox:[200,200],path:"M 50 0 L 150 0 L 150 50 L 200 50 L 200 150 L 150 150 L 150 200 L 50 200 L 50 150 L 0 150 L 0 50 L 50 50 L 50 0 Z"},{viewBox:[200,200],path:"M 0 0 L 0 200 L 200 200 L 200 140 L 60 140 L 60 0 L 0 0 Z",pathFormula:lt.L,pptxShapeType:"corner"},{viewBox:[200,200],path:"M0 0 L200 0 L200 200 L0 200 L0 0 Z M50 50 L50 150 L150 150 L150 50 Z",pathFormula:lt.RING_RECT,pptxShapeType:"frame"},{viewBox:[200,200],path:"M0 100 A100 100 0 1 1 0 101 Z M150 100 A50 50 0 1 0 150 101 Z",pptxShapeType:"donut"},{viewBox:[200,200],path:"M 70 0 L 70 70 L 0 70 L 0 130 L 70 130 L 70 200 L 130 200 L 130 130 L 200 130 L 200 70 L 130 70 L 130 0 L 70 0 Z",pathFormula:lt.PLUS,pptxShapeType:"mathPlus"},{viewBox:[200,200],path:"M 0 70 L 200 70 L 200 130 L 0 130 Z",pptxShapeType:"mathMinus"},{viewBox:[200,200],path:"M 40 0 L 0 40 L 60 100 L 0 160 L 40 200 L 100 140 L 160 200 L 200 160 L 140 100 L 200 40 L 160 0 L 100 60 L 40 0 Z",pptxShapeType:"mathMultiply"},{viewBox:[200,200],path:"M 0 80 L 200 80 L 200 120 L 0 120 Z M 100 0 A 25 25 0 1 1 100 50 A 25 25 0 1 1 100 0 M 100 200 A 25 25 0 1 1 100 150 A 25 25 0 1 1 100 200",pptxShapeType:"mathDivide"},{viewBox:[200,200],path:"M 0 30 L 200 30 L 200 80 L 0 80 Z M 0 120 L 200 120 L 200 170 L 0 170 Z",pptxShapeType:"mathEqual"},{viewBox:[200,200],path:"M 120 0 L 170 0 L 150 40 L 200 40 L 200 80 L 130 80 L 110 120 L 200 120 L 200 160 L 90 160 L 70 200 L 20 200 L 40 160 L 0 160 L 0 120 L 60 120 L 80 80 L 0 80 L 0 40 L 100 40 Z",pptxShapeType:"mathNotEqual"},{viewBox:[200,200],path:"M 0 0 L 200 0 L 200 160 L 100 160 L 60 200 L 60 160 L 0 160 Z",pathFormula:lt.MESSAGE,pptxShapeType:"wedgeRectCallout"},{viewBox:[200,200],path:"M 0 40 Q 0 0 40 0 L 160 0 Q 200 0 200 40 L 200 120 Q 200 160 160 160 L 100 160 L 60 200 L 60 160 L 40 160 Q 0 160 0 120 L 0 40 Z",pathFormula:lt.ROUND_MESSAGE,pptxShapeType:"wedgeRoundRectCallout"},{viewBox:[200,200],path:"M 180 160 A 100 100 0 1 0 100 200 L 200 200 L 200 160 L 180 160 Z",pptxShapeType:"flowChartMagneticTape"},{viewBox:[200,200],path:"M 200 0 L 0 0 L 200 200 L 0 200 L 200 0 Z",pptxShapeType:"flowChartCollate"},{viewBox:[200,200],path:"M 0 20 C 60 60 140 -40 200 20 L 200 180 C 140 140 60 240 0 180 L 0 20 Z",pptxShapeType:"wave"},{viewBox:[200,200],path:"M 0 20 C 40 -40 60 60 100 20 C 140 -40 160 60 200 20 L 200 180 C 140 240 160 140 100 180 C 40 240 60 140 0 180 L 0 20 Z",pptxShapeType:"doubleWave"},{viewBox:[200,200],path:"M 100 0 Q 0 50 0 175 Q 100 225 200 175 Q 200 50 100 0 Z"},{viewBox:[200,200],path:"M 0 100 A 50 50 0 1 1 200 100 L 100 200 L 0 100 Z"},{viewBox:[200,200],path:"M 100 0 L 120 80 L 200 100 L 120 120 L 100 200 L 80 120 L 0 100 L 80 80 L 100 0 Z",pptxShapeType:"star4"},{viewBox:[1024,1024],path:"M1018.67652554 400.05983681l-382.95318779-5.89158658L512 34.78141155 388.27666225 394.16825023l-382.95318779 5.89158658L311.68602415 629.83174977l-117.83174978 365.27842665 312.25413766-223.88032637 312.25413904 223.88032637-117.83175116-365.27842665 318.14572563-229.77191296z",pptxShapeType:"star5",special:!0},{viewBox:[200,200],path:"M 100 0 L 60 60 L 0 100 L 60 140 L 100 200 L 140 140 L 200 100 L 140 60 L 100 0 Z"},{viewBox:[200,200],path:"M 100 0 L 140 60 L 200 60 L 160 100 L 200 140 L 140 140 L 100 200 L 60 140 L 0 140 L 40 100 L 0 60 L 60 60 L 100 0 Z",pptxShapeType:"star6"},{viewBox:[200,200],path:"M 100 0 L 130 30 L 170 30 L 170 70 L 200 100 L 170 130 L 170 170 L 130 170 L 100 200 L 70 170 L 30 170 L 30 130 L 0 100 L 30 70 L 30 30 L 70 30 L 100 0",pptxShapeType:"star8"},{viewBox:[200,200],path:"M 100 0 A 50 50 0 1 0 200 120 A 100 100 0 1 1 100 0 Z"},{viewBox:[200,200],path:"M 120 0 L 100 80 L 200 80 L 80 200 L 100 120 L 0 120 L 120 0 Z"},{viewBox:[200,200],path:"M 30 50 Q 40 -20 120 10 Q 180 -10 180 40 Q 210 70 190 100 C 210 140 180 170 160 170 Q 140 210 100 180 C 70 210 20 190 30 150 C -10 140 -10 80 30 50",pptxShapeType:"cloud"},{viewBox:[200,200],path:"M 100 0 L 0 100 L 100 200 L 200 100 L 100 0 Z M 200 100 L 0 100",withborder:!0,pptxShapeType:"flowChartSort"},{viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z M 170 30 L 30 170",withborder:!0},{viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z M 30 30 L 170 170",withborder:!0},{viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z M 170 30 L 30 170 M 30 30 L 170 170",withborder:!0,pptxShapeType:"flowChartSummingJunction"},{viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z M 200 100 L 0 100 M 100 0 L 100 200",withborder:!0,pptxShapeType:"flowChartOr"},{viewBox:[200,200],path:"M 160 0 A 40 100 0 1 1 160 200 L 40 200 A 40 100 0 1 1 40 0 L 160 0 Z M 160 200 A 40 100 0 1 1 160 0",withborder:!0,pptxShapeType:"flowChartMagneticDrum"},{viewBox:[200,200],path:"M 0 40 A 50 20 0 1 1 200 40 L 200 160 A 50 20 0 1 1 0 160 L 0 40 Z M 200 40 A 50 20 0 1 1 0 40",withborder:!0,pptxShapeType:"can"},{viewBox:[200,200],path:"M 200 0 L 50 0 L 0 50 L 0 200 L 150 200 L 200 150 L 200 0 Z M 200 0 L 150 50 M 150 50 L 0 50 M 150 50 L 150 200",withborder:!0,pptxShapeType:"cube"}]},{type:"箭头",children:[{viewBox:[200,200],path:"M 100 0 L 0 100 L 50 100 L 50 200 L 150 200 L 150 100 L 200 100 L 100 0 Z",pptxShapeType:"upArrow"},{viewBox:[200,200],path:"M 100 200 L 200 100 L 150 100 L 150 0 L 50 0 L 50 100 L 0 100 L 100 200 Z",pptxShapeType:"downArrow"},{viewBox:[200,200],path:"M 0 100 L 100 0 L 100 50 L 200 50 L 200 150 L 100 150 L 100 200 L 0 100 Z",pptxShapeType:"leftArrow"},{viewBox:[200,200],path:"M 200 100 L 100 0 L 100 50 L 0 50 L 0 150 L 100 150 L 100 200 L 200 100 Z",pptxShapeType:"rightArrow"},{viewBox:[200,200],path:"M 100 0 L 0 60 L 60 60 L 60 140 L 0 140 L 100 200 L 200 140 L 140 140 L 140 60 L 200 60 L 100 0 Z",pptxShapeType:"upDownArrow"},{viewBox:[200,200],path:"M 0 100 L 60 0 L 60 60 L 140 60 L 140 0 L 200 100 L 140 200 L 140 140 L 60 140 L 60 200 L 0 100 Z",pptxShapeType:"leftRightArrow"},{viewBox:[200,200],path:"M 100 0 L 60 40 L 80 40 L 80 80 L 40 80 L 40 60 L 0 100 L 40 140 L 40 120 L 80 120 L 80 160 L 60 160 L 100 200 L 140 160 L 120 160 L 120 120 L 160 120 L 160 140 L 200 100 L 160 60 L 160 80 L 120 80 L 120 40 L 140 40 L 100 0 Z",pptxShapeType:"quadArrow"},{viewBox:[200,200],path:"M 0 100 L 100 0 L 100 50 L 200 50 L 150 100 L 200 150 L 100 150 L 100 200 L 0 100 Z"},{viewBox:[200,200],path:"M 200 100 L 100 0 L 100 50 L 0 50 L 50 100 L 0 150 L 100 150 L 100 200 L 200 100 Z",pptxShapeType:"notchedRightArrow"},{viewBox:[200,200],path:"M 0 100 L 80 20 L 80 80 L 120 80 L 120 0 L 200 0 L 200 200 L 120 200 L 120 120 L 80 120 L 80 180 L 0 100 Z",pptxShapeType:"leftArrowCallout"},{viewBox:[200,200],path:"M 200 100 L 120 20 L 120 80 L 80 80 L 80 0 L 0 0 L 0 200 L 80 200 L 80 120 L 120 120 L 120 180 L 200 100 Z",pptxShapeType:"rightArrowCallout"},{viewBox:[200,200],path:"M 0 0 L 120 0 L 200 100 L 120 200 L 0 200 L 80 100 L 0 0 Z",pptxShapeType:"chevron"},{viewBox:[200,200],path:"M 80 0 L 200 0 L 120 100 L 200 200 L 80 200 L 0 100 L 80 0 Z"},{viewBox:[200,200],path:"M 0 0 L 140 0 L 200 100 L 140 200 L 0 200 L 0 100 L 0 0 Z",pptxShapeType:"homePlate"},{viewBox:[200,200],path:"M 60 0 L 200 0 L 200 100 L 200 200 L 60 200 L 0 100 L 60 0 Z"},{viewBox:[200,200],path:"M 0 0 L 200 100 L 0 200 L 60 100 L 0 0 Z"},{viewBox:[200,200],path:"M 200 0 L 0 100 L 200 200 L 140 100 L 200 0 Z"},{viewBox:[200,200],path:"M 0 0 L 80 0 L 200 100 L 80 200 L 0 200 L 120 100 L 0 0 Z"},{viewBox:[200,200],path:"M 200 0 L 120 0 L 0 100 L 120 200 L 200 200 L 80 100 L 200 0 Z"},{viewBox:[200,200],path:"M 0 200 L 180 200 L 180 40 L 200 40 L 160 0 L 120 40 L 140 40 L 140 160 L 0 160 L 0 200 Z",pptxShapeType:"bentUpArrow"},{viewBox:[200,200],path:"M 0 200 L 0 20 L 160 20 L 160 0 L 200 40 L 160 80 L 160 60 L 40 60 L 40 200 L 0 200 Z"},{viewBox:[200,200],path:"M 40 180 L 180 180 L 180 40 L 200 40 L 160 0 L 120 40 L 140 40 L 140 140 L 40 140 L 40 120 L 0 160 L 40 200 L 40 180 Z",pptxShapeType:"leftUpArrow"},{viewBox:[1024,1024],path:"M398.208 302.912V64L0 482.112l398.208 418.176V655.36c284.48 0 483.584 95.552 625.792 304.64-56.896-298.688-227.584-597.312-625.792-657.088z",special:!0},{viewBox:[1024,1024],path:"M625.792 302.912V64L1024 482.112l-398.208 418.176V655.36C341.312 655.36 142.208 750.912 0 960c56.896-298.688 227.584-597.312 625.792-657.088z",special:!0}]},{type:"其他形状",children:[{viewBox:[1024,1024],path:"M995.336 243.4016c-15.7584-36.5736-38.3376-69.26639999-66.91440001-97.37280001-28.5768-27.98879999-61.73999999-49.8624-98.78399999-65.26799998-38.22-15.876-78.6744-23.8728-120.4224-23.87280001-57.97680001 0-114.5424 15.876-163.69919999 45.864-11.76 7.17360001-22.932 15.05279999-33.51600001 23.63760001-10.584-8.5848-21.75600001-16.46400001-33.51600001-23.63760001-49.1568-29.98799999-105.7224-45.86399999-163.69919999-45.864-41.74799999 0-82.2024 7.9968-120.4224 23.87280001-36.9264 15.28799999-70.2072 37.27919999-98.78399999 65.26799998-28.6944 28.10640001-51.156 60.79919999-66.91440001 97.37280001-16.34639999 37.9848-24.696 78.3216-24.696 119.83439999 0 39.1608 7.9968 79.96800001 23.8728 121.48080001 13.28880001 34.692 32.34000001 70.67760001 56.6832 107.016 38.57279999 57.5064 91.61040001 117.4824 157.4664 178.28160001 109.1328 100.78319999 217.2072 170.4024 221.79359999 173.22479998l27.87120001 17.8752c12.348 7.8792 28.224 7.8792 40.572 0l27.87119999-17.8752c4.58639999-2.94 112.54319999-72.44159999 221.79360001-173.22479998 65.85599999-60.79919999 118.89359999-120.7752 157.4664-178.28160001 24.3432-36.33839999 43.512-72.324 56.68319999-107.016 15.876-41.5128 23.8728-82.32 23.87280001-121.48080001 0.1176-41.5128-8.232-81.8496-24.5784-119.83439999z",special:!0},{viewBox:[1024,1024],path:"M985.20746667 343.50079998l-303.32586667-44.08319999L546.28693333 24.5248c-3.70346666-7.5264-9.79626667-13.6192-17.32266665-17.32266668-18.87573334-9.3184-41.81333333-1.55306667-51.25120001 17.32266668L342.1184 299.41759999l-303.32586667 44.08319999c-8.36266667 1.19466667-16.00853333 5.13706667-21.8624 11.11040001-14.69440001 15.17226667-14.45546667 39.30453334 0.71679999 54.1184l219.46026668 213.9648-51.84853333 302.1312c-1.43359999 8.24320001-0.11946667 16.8448 3.82293333 24.25173333 9.79626667 18.6368 32.9728 25.92426667 51.6096 16.00853334L512 822.44266665l271.3088 142.64320001c7.40693333 3.9424 16.00853333 5.25653333 24.25173333 3.82293333 20.78719999-3.584 34.7648-23.296 31.1808-44.0832l-51.84853333-302.1312 219.46026668-213.9648c5.97333334-5.85386666 9.91573333-13.49973334 11.11039999-21.8624 3.2256-20.90666667-11.34933333-40.26026667-32.256-43.36640001z",special:!0},{viewBox:[1024,1024],path:"M852.65066667 405.84533333C800.54044445 268.40177778 667.76177778 170.66666667 512.22755555 170.66666667S223.91466667 268.288 171.80444445 405.73155555C74.29688889 431.33155555 2.27555555 520.07822222 2.27555555 625.77777778c0 125.72444445 101.83111111 227.55555555 227.44177778 227.55555555h564.56533334C919.89333333 853.33333333 1021.72444445 751.50222222 1021.72444445 625.77777778c0-105.472-71.79377778-194.21866667-169.07377778-219.93244445z",special:!0},{viewBox:[1024,1024],path:"M926.25224691 323.7371485H654.6457886L898.88200917 15.14388241c5.05486373-6.53433603 0.49315743-16.02761669-7.76722963-16.02761668H418.30008701c-3.45210206 0-6.78091476 1.84934039-8.50696579 4.93157436L90.35039154 555.76772251c-3.82197013 6.53433603 0.86302552 14.7947231 8.50696578 14.79472311h215.01664245l-110.22068713 440.88274851c-2.34249783 9.61657002 9.24670194 16.39748478 16.39748477 9.49328065L933.03316167 340.62779071c6.41104668-6.0411786 2.09591911-16.8906422-6.78091476-16.89064221z",special:!0},{viewBox:[1024,1024],path:"M878.47822222 463.30311111c-22.18666667-49.83466667-53.93066667-93.98044445-94.32177777-131.072l-33.10933334-30.37866666c-4.89244445-4.32355555-12.62933333-2.38933333-14.79111111 3.75466666l-14.79111111 42.43911111c-9.216 26.624-26.16888889 53.81688889-50.176 80.55466667-1.59288889 1.70666667-3.41333333 2.16177778-4.66488889 2.27555556-1.25155555 0.11377778-3.18577778-0.11377778-4.89244445-1.70666667-1.59288889-1.36533333-2.38933333-3.41333333-2.27555555-5.46133333 4.20977778-68.49422222-16.27022222-145.74933333-61.09866667-229.83111112C561.26577778 124.01777778 509.72444445 69.51822222 445.32622222 31.51644445l-46.99022222-27.648c-6.144-3.64088889-13.99466667 1.13777778-13.65333333 8.30577777l2.50311111 54.61333333c1.70666667 37.31911111-2.61688889 70.31466667-12.85688889 97.73511112-12.51555555 33.56444445-30.49244445 64.73955555-53.47555556 92.72888888-16.15644445 19.56977778-34.24711111 37.20533333-54.04444444 52.45155556-47.90044445 36.75022222-87.38133333 84.65066667-114.11911111 138.24C125.72444445 502.10133333 111.50222222 562.74488889 111.50222222 623.50222222c0 53.70311111 10.58133333 105.69955555 31.51644445 154.73777778 20.25244445 47.21777778 49.152 89.77066667 85.90222222 126.17955555 36.864 36.40888889 79.64444445 65.08088889 127.31733333 84.992C405.61777778 1010.11911111 457.95555555 1020.58666667 512 1020.58666667s106.38222222-10.46755555 155.76177778-31.06133334c47.67288889-19.91111111 90.56711111-48.46933333 127.31733333-84.992 36.864-36.40888889 65.76355555-78.96177778 85.90222222-126.17955555 20.93511111-49.03822222 31.51644445-101.03466667 31.51644445-154.73777778 0-55.52355555-11.37777778-109.45422222-34.01955556-160.31288889z",special:!0},{viewBox:[1024,1024],path:"M968.20337778 20.11591112H705.44042667c-22.17301333 0-41.92483556 15.16430222-47.14951111 37.33731555C642.36202666 124.73685332 582.08711111 173.03324444 512 173.03324444s-130.36202666-48.29639112-146.29091556-115.58001777c-5.22467555-22.17301333-24.84906667-37.33731556-47.14951111-37.33731555H55.79662222c-30.96576 0-56.06968889 25.10392889-56.06968888 56.06968888v321.12639999c0 30.96576 25.10392889 56.06968889 56.06968888 56.06968889h95.57333334v494.43271112c0 30.96576 25.10392889 56.06968889 56.06968889 56.06968888h609.1207111c30.96576 0 56.06968889-25.10392889 56.06968889-56.06968888V453.38168888h95.57333334c30.96576 0 56.06968889-25.10392889 56.06968888-56.06968889V76.1856c0-30.96576-25.10392889-56.06968889-56.06968888-56.06968888z",special:!0},{viewBox:[1024,1024],path:"M980.94648889 239.80714666H523.46880001L373.99210666 96.82944c-1.91146667-1.78403556-4.46008889-2.80348444-7.00871111-2.80348445H43.05351111c-22.55530667 0-40.77795555 18.22264888-40.77795555 40.77795557v754.39217776c0 22.55530667 18.22264888 40.77795555 40.77795555 40.77795557h937.89297778c22.55530667 0 40.77795555-18.22264888 40.77795555-40.77795557V280.58510222c0-22.55530667-18.22264888-40.77795555-40.77795555-40.77795556z",special:!0},{viewBox:[1024,1024],path:"M972.60904597 164.57058577L841.30587843 33.39070759c-18.86327195-18.86327195-44.1375906-29.34286748-70.64480282-29.3428675-26.75379095 0-51.90482023 10.47959553-70.76809219 29.3428675L558.60337778 174.68031322c-18.86327195 18.86327195-29.34286748 44.1375906-29.34286749 70.64480283 0 26.75379095 10.47959553 51.90482023 29.34286749 70.76809218l103.31648301 103.31648302c-24.28800376 53.50758189-57.69942011 101.59043198-99.24793416 143.13894603-41.42522469 41.67180341-89.63136414 75.08321976-143.13894603 99.61780223L316.21649759 558.84995649c-18.86327195-18.86327195-44.1375906-29.34286748-70.64480283-29.34286747-26.75379095 0-51.90482023 10.47959553-70.76809217 29.34286747L33.39070759 700.01627278c-18.86327195 18.86327195-29.34286748 44.1375906-29.3428675 70.76809217 0 26.75379095 10.47959553 51.90482023 29.3428675 70.76809219l131.05658883 131.05658883c30.08260365 30.205893 71.63111769 47.34311394 114.28923598 47.34311394 9.00012323 0 17.63037836-0.73973616 26.13734414-2.21920846 166.19405621-27.37023774 331.03192945-115.76870829 464.06114804-248.67463751C901.84095379 636.27567408 990.11613498 471.56109018 1017.85624079 304.87387654c8.38367642-50.91850535-8.50696579-103.31648302-45.24719482-140.30329077z",special:!0},{viewBox:[1024,1024],path:"M910.60451556 640.96028445c-20.38897778-65.49959112-43.83630221-120.54983112-79.89930667-210.64362666C836.31217778 193.67708444 737.93535999 2.27555556 511.36284444 2.27555556 282.24170667 2.27555556 186.03121778 197.50001778 192.14791111 430.31665779c-36.19043555 90.22122667-59.51032888 144.88917333-79.89930667 210.64362666-43.32657778 139.53706668-29.30915556 197.26336001-18.60494222 198.53767111 22.9376 2.80348444 89.32920888-105.00323556 89.32920889-105.00323556 0 62.44124445 32.11264001 143.86972444 101.69002667 202.61546667-33.64181333 10.32192-109.20846222 38.10190221-91.24067556 68.55793777 14.52714667 24.59420444 250.01984 15.67402668 317.94062222 8.02816 67.92078222 7.64586667 303.41347556 16.56604444 317.94062223-8.02816 17.96778667-30.32860444-57.72629333-58.23601779-91.24067555-68.55793777 69.57738667-58.87317334 101.69002667-140.30165333 101.69002667-202.61546667 0 0 66.39160889 107.80672 89.32920888 105.00323556 10.83164445-1.40174222 24.84906667-59.12803556-18.47751111-198.53767111z",special:!0},{viewBox:[1024,1024],path:"M1016.86992592 199.24764445c-37.13706667 16.01991111-77.55093333 27.54939259-119.17842962 32.03982222 42.96248889-25.60758518 75.60912592-66.02145185 91.02222222-114.08118519-39.68568889 23.66577778-84.58998518 41.02068148-131.31472593 50.00154074C819.53374815 126.79395555 765.76995555 101.79318518 706.18074075 101.79318518c-114.688 0-206.92385185 92.96402963-206.92385186 207.04521482 0 16.01991111 1.94180741 32.03982222 5.09724444 47.45291852-171.72859259-8.98085925-324.88865185-91.02222222-426.71217778-216.63288889-17.96171852 30.82619259-28.15620741 66.02145185-28.1562074 104.49351112 0 71.84687408 36.53025185 135.19834075 92.23585185 172.45677036-33.98162963-1.33499259-66.02145185-10.92266667-93.57084445-26.33576296v2.54862222c0 100.6098963 71.1186963 183.98625185 165.90317037 203.1616-17.3549037 4.49042963-35.92343703 7.03905185-54.49197037 7.03905185-13.47128889 0-26.2144-1.33499259-39.07887407-3.15543704C146.69748148 681.90814815 223.03478518 741.49736297 313.93564445 743.43917037c-71.1186963 55.7056-160.19911111 88.4736-256.9253926 88.4736-17.3549037 0-33.37481482-0.60681482-50.00154074-2.54862222C98.75911111 888.22518518 207.62168889 922.20681482 324.85831111 922.20681482 705.45256297 922.20681482 913.71140741 606.90583703 913.71140741 333.23235555c0-8.98085925 0-17.96171852-0.60681482-26.94257777 40.2925037-29.4912 75.60912592-66.02145185 103.76533333-107.04213333z",special:!0},{viewBox:[1024,1024],path:"M917.96720197 1.08889505H106.03279803C53.56084718 1.08889505 9.37393998 45.27580225 9.37393998 97.74775309v5.52336372c0 19.33177108 8.28504494 41.42522469 22.0934536 55.23363205l331.40179753 392.15879462v325.87843379c0 16.57008987 8.28504494 30.37849854 22.09345359 35.90186098l209.88780469 104.94390299 2.76168121 2.76168121c27.61681602 11.04672615 55.23363335-8.28504494 55.23363335-38.66354218V550.66354348l331.40179753-392.15879462c35.90186097-41.42522469 30.37849854-102.18222047-11.04672616-135.32240022-11.04672615-13.80840865-33.14017975-22.0934536-55.23363335-22.09345359z",special:!0},{viewBox:[1024,1024],path:"M491.70164031 97.48884502a25.89076502 25.89076502 0 0 1 40.59671938 0L745.66415762 367.01171317a25.89076502 25.89076502 0 0 0 30.49932208 7.72839349l208.00640948-89.14190458a25.89076502 25.89076502 0 0 1 35.56096592 29.06238339l-115.18801541 554.96855704A103.56306132 103.56306132 0 0 1 803.14165689 952.14301275H220.85834311a103.56306132 103.56306132 0 0 1-101.4011828-82.51387024l-115.18801541-554.96855704a25.89076502 25.89076502 0 0 1 35.54802012-29.06238339l208.01935528 89.14190458a25.89076502 25.89076502 0 0 0 30.49932208-7.72839349l213.36579793-269.52286815z",special:!0},{viewBox:[1024,1024],path:"M643.02466884 387.7801525c19.85376751-88.69205333 33.718272-152.84087467 41.61900049-192.57389433C704.52292267 95.17283515 652.90057916 2.27555515 550.58614084 2.27555515c-92.26012484 0-138.59407685 45.84971417-165.91530666 137.49816969l-0.70087152 2.67605334c-16.40038399 74.13942085-41.47882668 131.61085116-74.6746315 172.73287031a189.06953915 189.06953915 0 0 1-143.04142182 70.44391902l-26.17434983 0.5606965C77.66380049 387.52529067 27.76177817 438.90551468 27.76177817 501.84374084V881.55022182c0 77.4144 62.25009818 140.17422182 139.05282766 140.17422303h492.82707951c101.23127467 0 191.59267516-63.995904 225.93535999-159.98976l102.37815468-286.22301868c26.04691951-72.82688-11.39234134-153.15945284-83.63303784-179.42300483a138.04612267 138.04612267 0 0 0-47.17499733-8.30850884H643.02466884z",special:!0},{viewBox:[1024,1024],path:"M512 512c140.82958222 0 254.86222222-114.03264 254.86222222-254.86222222S652.82958222 2.27555555 512 2.27555555a254.78940445 254.78940445 0 0 0-254.86222222 254.86222223C257.13777778 397.96736 371.17041778 512 512 512z m0 72.81777778c-170.10232889 0-509.72444445 97.57582222-509.72444445 291.27111111v145.63555556h1019.4488889v-145.63555556c0-193.69528889-339.62211555-291.27111111-509.72444445-291.27111111z",special:!0},{viewBox:[1024,1024],path:"M1019.81297778 564.50161779l-138.89991111-472.51456c-8.66531556-25.99594668-29.43658667-43.45400889-57.21656889-43.45400891s-50.33528889 15.67402668-59.00060446 41.66997334l-92.00526221 274.48661334H351.69166222L259.6864 90.33045333c-8.66531556-25.99594668-31.22062222-41.66997333-59.00060444-41.66997332s-50.33528889 17.33063112-57.2165689 43.45400887L4.69674667 564.50161779c-5.22467555 17.33063112 1.78403556 36.44529778 15.67402667 46.89464887l491.11950221 368.27591113 492.77610666-368.27591113c13.76256-10.32192 20.77127111-29.43658667 15.54659557-46.89464887z",special:!0},{viewBox:[1024,1024],path:"M927.78951111 340.39277037c-12.01493333-47.81700741 12.01493333-124.03294815 89.08041481-150.97552592l-82.40545184-4.36906667s-31.19028148-109.22666667-174.27721483-118.9357037c-143.08693333-9.8304-236.65777778-3.64088889-236.65777777-3.6408889s106.07122963 67.47780741 63.5941926 187.74850371c-31.06891852 63.71555555-79.85682963 116.02299259-132.04290371 175.61220741-1.57771852 1.57771852-3.03407408 3.15543703-4.2477037 4.49042962C278.25493333 624.86755555 7.13007408 934.34311111 7.13007408 934.34311111c298.43152592 78.15774815 498.43768889-7.64586667 616.76657777-110.56165926 24.87940741-0.24272592 43.5693037-0.36408889 56.19105185-0.36408888 164.8109037 0 304.13558518-142.72284445 298.43152593-301.4656-3.88361482-109.1053037-38.71478518-133.74198518-50.72971852-181.5589926z",special:!0},{viewBox:[1024,1024],path:"M997.8886764 504.17210418L537.2729208 43.89182982c-13.97838539-13.97838539-36.56745619-13.97838539-50.5458416 0L26.1113236 504.17210418c-13.41924998 13.41924998-21.02349164 31.64706454-21.02349163 50.65766867 0 39.47496036 32.09437288 71.56933323 71.56933324 71.56933323h48.53295408V954.83524937c0 19.79339373 15.99127289 35.78466661 35.78466663 35.78466662H440.43066677V740.12724968h125.24633315v250.49266631h297.34821416c19.79339373 0 35.78466661-15.99127289 35.78466663-35.78466662V626.39910608h48.53295408c19.01060414 0 37.23841869-7.49241457 50.65766869-21.02349163 27.84494371-27.95677079 27.84494371-73.24673948-0.11182708-101.20351027z",special:!0},{viewBox:[1024,1024],path:"M1009.13013121 349.27572283L674.72427717 14.86986879c-8.82158299-8.82158299-20.35749924-13.16451618-31.89341544-13.16451618s-23.07183245 4.34293316-31.89341547 13.16451618L392.29790453 233.6451272c-16.5574327-1.90003326-33.25058207-2.71433322-49.94373146-2.71433324-99.34459624 0-198.68919249 32.70771543-280.25490606 98.12314628-20.90036589 16.69314938-22.52896582 48.04369819-3.66434987 67.04403081l246.59717401 246.59717401-292.33368895 292.06225564c-3.52863319 3.52863319-5.83581644 8.27871636-6.24296642 13.30023282l-4.61436649 50.48659809c-1.22144996 12.75736619 8.95729967 23.6146991 21.57894918 23.6146991 0.6785833 0 1.35716662 0 2.03574992-0.13571666l50.48659809-4.61436649c5.02151649-0.40714999 9.77159962-2.71433322 13.30023282-6.24296643l292.33368896-292.33368896 246.59717402 246.59717401c8.82158299 8.82158299 20.35749924 13.16451618 31.89341544 13.16451618 13.16451618 0 26.19331567-5.70009979 35.15061536-16.82886604 76.40848044-95.40881307 108.16617924-214.83947521 95.27309638-330.33435417l218.63954175-218.63954173c17.50744934-17.37173267 17.50744934-45.8722316 0-63.51539759z",special:!0},{viewBox:[1024,1024],path:"M976.62005979 160.47737905c-0.39452595-0.39452595-80.35178503 78.64217259-239.47725131 237.50462156l-111.6508437-111.65084369 237.89914752-237.89914752c-125.19623464-75.35445635-286.03131335-56.02268482-390.31767264 48.26367449-81.92988882 81.92988882-112.57140424 200.15616502-83.37648398 310.09739626l2.36715569 8.81107954-372.82702222 372.69551356c-8.15353628 8.15353628-8.15353628 21.56741857 0 29.72095487l185.95323084 185.95323084c8.15353628 8.15353628 21.56741857 8.15353628 29.72095485 0l372.56400493-372.56400493 8.81107953 2.3671557c110.07273989 29.32642892 228.29901608-1.18357785 310.36041356-83.24497533 104.41786795-104.2863593 123.74963948-265.12143802 49.97328693-390.05465535z",special:!0},{viewBox:[1024,1024],path:"M512 2.27555555C230.51377778 2.27555555 2.27555555 230.51377778 2.27555555 512s228.23822222 509.72444445 509.72444445 509.72444445 509.72444445-228.23822222 509.72444445-509.72444445S793.48622222 2.27555555 512 2.27555555z m220.16 343.26755556l-239.616 332.23111111c-14.44977778 20.13866667-44.37333333 20.13866667-58.82311111 0L291.84 481.16622222c-4.32355555-6.03022222 0-14.44977778 7.39555555-14.44977777h53.36177778c11.60533333 0 22.64177778 5.57511111 29.46844445 15.13244444l81.00977777 112.41244444 178.85866667-248.03555555c6.82666667-9.44355555 17.74933333-15.13244445 29.46844445-15.13244445H724.76444445c7.39555555 0 11.71911111 8.41955555 7.39555555 14.44977778z",special:!0},{viewBox:[1024,1024],path:"M512 2.27555555C230.51377778 2.27555555 2.27555555 230.51377778 2.27555555 512s228.23822222 509.72444445 509.72444445 509.72444445 509.72444445-228.23822222 509.72444445-509.72444445S793.48622222 2.27555555 512 2.27555555z m218.45333333 537.03111112c0 5.00622222-4.096 9.10222222-9.10222222 9.10222222H302.64888889c-5.00622222 0-9.10222222-4.096-9.10222222-9.10222222v-54.61333334c0-5.00622222 4.096-9.10222222 9.10222222-9.10222222h418.70222222c5.00622222 0 9.10222222 4.096 9.10222222 9.10222222v54.61333334z",special:!0},{viewBox:[1024,1024],path:"M512 2.27555555C230.51377778 2.27555555 2.27555555 230.51377778 2.27555555 512s228.23822222 509.72444445 509.72444445 509.72444445 509.72444445-228.23822222 509.72444445-509.72444445S793.48622222 2.27555555 512 2.27555555z m188.18844445 703.37422223l-75.09333334-0.34133333L512 570.48177778l-112.98133333 134.71288889-75.20711112 0.34133333c-5.00622222 0-9.10222222-3.98222222-9.10222222-9.10222222 0-2.16177778 0.79644445-4.20977778 2.16177778-5.91644445l148.02488889-176.35555555L316.87111111 337.92c-1.36533333-1.70666667-2.16177778-3.75466667-2.16177778-5.91644445 0-5.00622222 4.096-9.10222222 9.10222222-9.10222222l75.20711112 0.34133334L512 458.06933333l112.98133333-134.71288888 75.09333334-0.34133334c5.00622222 0 9.10222222 3.98222222 9.10222222 9.10222222 0 2.16177778-0.79644445 4.20977778-2.16177778 5.91644445L559.21777778 514.27555555l147.91111111 176.35555556c1.36533333 1.70666667 2.16177778 3.75466667 2.16177778 5.91644444 0 5.00622222-4.096 9.10222222-9.10222222 9.10222223z",special:!0},{viewBox:[1024,1024],path:"M512 2.27555555C230.51377778 2.27555555 2.27555555 230.51377778 2.27555555 512s228.23822222 509.72444445 509.72444445 509.72444445 509.72444445-228.23822222 509.72444445-509.72444445S793.48622222 2.27555555 512 2.27555555z m218.45333333 537.03111112c0 5.00622222-4.096 9.10222222-9.10222222 9.10222222H548.40888889v172.94222222c0 5.00622222-4.096 9.10222222-9.10222222 9.10222222h-54.61333334c-5.00622222 0-9.10222222-4.096-9.10222222-9.10222222V548.40888889H302.64888889c-5.00622222 0-9.10222222-4.096-9.10222222-9.10222222v-54.61333334c0-5.00622222 4.096-9.10222222 9.10222222-9.10222222h172.94222222V302.64888889c0-5.00622222 4.096-9.10222222 9.10222222-9.10222222h54.61333334c5.00622222 0 9.10222222 4.096 9.10222222 9.10222222v172.94222222h172.94222222c5.00622222 0 9.10222222 4.096 9.10222222 9.10222222v54.61333334z",special:!0},{viewBox:[1024,1024],path:"M512 2.27555555C230.51377778 2.27555555 2.27555555 230.51377778 2.27555555 512s228.23822222 509.72444445 509.72444445 509.72444445 509.72444445-228.23822222 509.72444445-509.72444445S793.48622222 2.27555555 512 2.27555555z m163.95377778 517.57511112L427.46311111 700.64355555c-1.59288889 1.13777778-3.41333333 1.70666667-5.34755556 1.70666667-5.00622222 0-9.10222222-4.096-9.10222222-9.10222222V331.88977778c0-1.93422222 0.56888889-3.75466667 1.70666667-5.34755556 2.95822222-4.096 8.64711111-5.00622222 12.74311111-2.048L675.95377778 505.17333333c0.79644445 0.56888889 1.47911111 1.25155555 2.048 2.048 2.95822222 3.98222222 2.048 9.67111111-2.048 12.62933334z",special:!0},{viewBox:[1024,1024],path:"M512 2.27555555C230.51377778 2.27555555 2.27555555 230.51377778 2.27555555 512s228.23822222 509.72444445 509.72444445 509.72444445 509.72444445-228.23822222 509.72444445-509.72444445S793.48622222 2.27555555 512 2.27555555z m200.81777778 666.39644445l-32.54044445 44.37333333c-2.95822222 4.096-8.64711111 4.89244445-12.74311111 1.93422222L479.34577778 577.76355555c-2.38933333-1.70666667-3.75466667-4.43733333-3.75466667-7.39555555V257.13777778c0-5.00622222 4.096-9.10222222 9.10222222-9.10222223h54.72711112c5.00622222 0 9.10222222 4.096 9.10222222 9.10222223v281.6l162.24711111 117.30488889c4.096 2.84444445 5.00622222 8.53333333 2.048 12.62933333z",special:!0},{viewBox:[1024,1024],path:"M981.10577778 314.48177778c-25.6-61.09866667-62.464-115.93955555-109.34044445-163.04355556-46.87644445-46.99022222-101.60355555-83.968-162.70222222-109.568C646.59911111 15.58755555 580.38044445 2.27555555 512 2.27555555h-2.27555555c-68.83555555 0.34133333-135.39555555 13.99466667-198.08711112 40.84622223-60.52977778 25.94133333-114.80177778 62.80533333-161.22311111 109.79555555-46.42133333 46.99022222-82.83022222 101.60355555-108.08888889 162.47466667C16.27022222 378.42488889 3.072 445.44 3.41333333 514.38933333c0.34133333 78.96177778 19.22844445 157.35466667 54.49955556 227.44177778v172.94222222c0 28.89955555 23.43822222 52.33777778 52.224 52.33777778h172.71466666c69.97333333 35.38488889 148.13866667 54.272 226.98666667 54.61333334h2.38933333c68.03911111 0 133.91644445-13.19822222 196.03911112-39.02577778 60.75733333-25.37244445 115.37066667-61.78133333 162.13333333-108.31644445 46.87644445-46.53511111 83.74044445-100.92088889 109.568-161.56444444 26.73777778-62.80533333 40.39111111-129.59288889 40.73244445-198.54222223 0.22755555-69.29066667-13.19822222-136.53333333-39.59466667-199.79377777zM284.89955555 566.61333333c-30.03733333 0-54.49955555-24.46222222-54.49955555-54.61333333s24.46222222-54.61333333 54.49955555-54.61333333 54.49955555 24.46222222 54.49955556 54.61333333-24.34844445 54.61333333-54.49955556 54.61333333z m227.10044445 0c-30.03733333 0-54.49955555-24.46222222-54.49955555-54.61333333s24.46222222-54.61333333 54.49955555-54.61333333 54.49955555 24.46222222 54.49955555 54.61333333-24.46222222 54.61333333-54.49955555 54.61333333z m227.10044445 0c-30.03733333 0-54.49955555-24.46222222-54.49955556-54.61333333s24.46222222-54.61333333 54.49955556-54.61333333 54.49955555 24.46222222 54.49955555 54.61333333-24.46222222 54.61333333-54.49955555 54.61333333z",special:!0},{viewBox:[1024,1024],path:"M980.2224823 3.06251924H43.7775177c-22.52048353 0-40.71499847 18.19451494-40.71499846 40.71499846v936.4449646c0 22.52048353 18.19451494 40.71499847 40.71499846 40.71499846h936.4449646c22.52048353 0 40.71499847-18.19451494 40.71499846-40.71499846V43.7775177c0-22.52048353-18.19451494-40.71499847-40.71499846-40.71499846zM745.4750693 325.8561164l-267.95558363 371.52436096c-16.15876501 22.52048353-49.62140436 22.52048353-65.78016939 0L253.07805667 477.51948567c-4.83490607-6.74342161 0-16.15876501 8.27023406-16.15876499h59.67291961c12.97790576 0 25.31963967 6.23448413 32.95370188 16.92217123l90.59087157 125.70755774 200.01242995-277.37092701c7.63406221-10.56045272 19.84856175-16.92217125 32.95370189-16.92217124H737.20483524c8.27023407 0 13.10514012 9.41534338 8.27023406 16.158765z",special:!0},{viewBox:[1024,1024],path:"M980.2224823 3.06251924H43.7775177c-22.52048353 0-40.71499847 18.19451494-40.71499846 40.71499846v936.4449646c0 22.52048353 18.19451494 40.71499847 40.71499846 40.71499846h936.4449646c22.52048353 0 40.71499847-18.19451494 40.71499846-40.71499846V43.7775177c0-22.52048353-18.19451494-40.71499847-40.71499846-40.71499846zM756.28999077 542.53624885c0 5.59831228-4.58043732 10.17874961-10.17874962 10.17874962H277.88875885c-5.59831228 0-10.17874961-4.58043732-10.17874962-10.17874962v-61.0724977c0-5.59831228 4.58043732-10.17874961 10.17874962-10.17874962h468.2224823c5.59831228 0 10.17874961 4.58043732 10.17874962 10.17874962v61.0724977z",special:!0},{viewBox:[1024,1024],path:"M980.2224823 3.06251924H43.7775177c-22.52048353 0-40.71499847 18.19451494-40.71499846 40.71499846v936.4449646c0 22.52048353 18.19451494 40.71499847 40.71499846 40.71499846h936.4449646c22.52048353 0 40.71499847-18.19451494 40.71499846-40.71499846V43.7775177c0-22.52048353-18.19451494-40.71499847-40.71499846-40.71499846zM720.79160148 697.63494611c5.59831228 6.61618726 0.8906406 16.6677025-7.76129658 16.66770249h-74.94104404c-5.98001539 0-11.70556205-2.67192177-15.64982754-7.25235911L512 575.36271635l-110.43943332 131.68757314c-3.81703111 4.58043732-9.54257777 7.25235911-15.64982754 7.25235911H310.9696951c-8.65193717 0-13.35960887-10.05151525-7.76129658-16.66770249L458.81603326 512 303.20839852 326.36505389c-5.59831228-6.61618726-0.8906406-16.6677025 7.76129658-16.66770249h74.94104404c5.98001539 0 11.70556205 2.67192177 15.64982754 7.25235911L512 448.63728365l110.43943332-131.68757314c3.81703111-4.58043732 9.54257777-7.25235911 15.64982754-7.25235911H713.0303049c8.65193717 0 13.35960887 10.05151525 7.76129658 16.66770249L565.18396674 512l155.60763474 185.63494611z",special:!0},{viewBox:[1024,1024],path:"M980.2224823 3.06251924H43.7775177c-22.52048353 0-40.71499847 18.19451494-40.71499846 40.71499846v936.4449646c0 22.52048353 18.19451494 40.71499847 40.71499846 40.71499846h936.4449646c22.52048353 0 40.71499847-18.19451494 40.71499846-40.71499846V43.7775177c0-22.52048353-18.19451494-40.71499847-40.71499846-40.71499846zM677.02297814 523.19662459L423.31764398 722.70011704c-9.41534338 7.37959347-23.28388974 0.76340622-23.28388975-11.19662459V312.62374191c0-11.9600308 13.86854636-18.70345241 23.28388975-11.19662457l253.70533416 199.37625807c7.25235911 5.72554666 7.25235911 16.6677025 0 22.39324918z",special:!0},{viewBox:[1024,1024],path:"M980.2224823 3.06251924H43.7775177c-22.52048353 0-40.71499847 18.19451494-40.71499846 40.71499846v936.4449646c0 22.52048353 18.19451494 40.71499847 40.71499846 40.71499846h936.4449646c22.52048353 0 40.71499847-18.19451494 40.71499846-40.71499846V43.7775177c0-22.52048353-18.19451494-40.71499847-40.71499846-40.71499846zM756.28999077 542.53624885c0 5.59831228-4.58043732 10.17874961-10.17874962 10.17874962H552.71499847v193.39624268c0 5.59831228-4.58043732 10.17874961-10.17874962 10.17874962h-61.0724977c-5.59831228 0-10.17874961-4.58043732-10.17874962-10.17874962V552.71499847H277.88875885c-5.59831228 0-10.17874961-4.58043732-10.17874962-10.17874962v-61.0724977c0-5.59831228 4.58043732-10.17874961 10.17874962-10.17874962h193.39624268V277.88875885c0-5.59831228 4.58043732-10.17874961 10.17874962-10.17874962h61.0724977c5.59831228 0 10.17874961 4.58043732 10.17874962 10.17874962v193.39624268h193.39624268c5.59831228 0 10.17874961 4.58043732 10.17874962 10.17874962v61.0724977z",special:!0},{viewBox:[1024,1024],path:"M902.67315697 135.41705551L528.62204754 7.94466448C524.10877635 6.40354749 518.05438818 5.63298899 512 5.63298899s-12.10877635 0.7705585-16.62204754 2.31167549L121.32684303 135.41705551c-9.13662215 3.08223399-16.62204754 13.64989334-16.62204753 23.33691443v531.02488283c0 9.68702108 6.27454775 22.45627614 13.87005291 28.51066431L498.0198673 1013.9638196c3.85279247 2.9721542 8.8063828 4.51327118 13.87005291 4.51327118s10.12734022-1.54111698 13.87005291-4.51327118l379.4450189-295.67430252c7.59550517-5.94430839 13.87005291-18.71356345 13.87005291-28.51066431V158.75396994c0.22015956-9.68702108-7.26526581-20.14460066-16.40188796-23.33691443zM712.89560763 323.43332829L478.86598471 645.63685899c-7.04510625 9.68702108-21.57563786 9.68702108-28.6207441 0l-139.14084824-191.5388259c-4.18303182-5.8342286 0-13.9801327 7.15518603-13.9801327h60.76404132c5.61406904 0 11.0079785 2.75199463 14.31037204 7.26526582l71.22162091 97.97100864 166.11039557-228.74579323c3.30239355-4.51327118 8.58622323-7.26526581 14.31037204-7.26526581H705.7404216c7.15518602 0.11007979 11.33821785 8.25598388 7.15518603 14.09021248z",special:!0},{viewBox:[1024,1024],path:"M959.86498307 186.28001231H797.00498922v-101.78749614c0-44.91373267-36.51626425-81.42999692-81.42999691-81.42999693H308.42500769c-44.91373267 0-81.42999692 36.51626425-81.42999691 81.42999693v101.78749614H64.13501693c-22.52048353 0-40.71499847 18.19451494-40.71499846 40.71499847v40.71499845c0 5.59831228 4.58043732 10.17874961 10.17874961 10.17874962h76.8495596l31.42688945 665.43575611c2.03574992 43.38692024 37.91584233 77.61296581 81.30276254 77.6129658h577.64404066c43.5141546 0 79.26701262-34.09881122 81.30276254-77.6129658l31.42688945-665.43575611H990.40123192c5.59831228 0 10.17874961-4.58043732 10.17874961-10.17874962v-40.71499845c0-22.52048353-18.19451494-40.71499847-40.71499846-40.71499847z m-254.46874039 0H318.60375732v-91.60874653h386.79248536v91.60874653z",special:!0},{viewBox:[1024,1024],path:"M980.2224823 248.62485371H654.50249462V104.85001539c0-22.52048353-18.19451494-40.71499847-40.71499847-40.71499846H94.67126578v-50.89374808c0-5.59831228-4.58043732-10.17874961-10.17874961-10.17874961h-71.25124732c-5.59831228 0-10.17874961 4.58043732-10.17874961 10.17874961v997.5174623c0 5.59831228 4.58043732 10.17874961 10.17874961 10.17874961h71.25124732c5.59831228 0 10.17874961-4.58043732 10.17874961-10.17874961V674.85999383h315.54123807v143.77483833c0 22.52048353 18.19451494 40.71499847 40.71499846 40.71499846h529.29497999c22.52048353 0 40.71499847-18.19451494 40.71499846-40.71499846V289.33985217c0-22.52048353-18.19451494-40.71499847-40.71499846-40.71499846z",special:!0},{viewBox:[1024,1024],path:"M804.63905145 265.16532183V94.67126578h109.42155836c5.59831228 0 10.17874961-4.58043732 10.17874961-10.17874961v-71.25124732c0-5.59831228-4.58043732-10.17874961-10.17874961-10.17874961H109.93939019c-5.59831228 0-10.17874961 4.58043732-10.17874961 10.17874961v71.25124732c0 5.59831228 4.58043732 10.17874961 10.17874961 10.17874961h109.42155836v170.49405605c0 103.6960117 53.94737296 194.92305513 135.3773699 246.83467817-81.42999692 51.91162303-135.37736988 143.13866646-135.3773699 246.83467817v170.49405605h-109.42155836c-5.59831228 0-10.17874961 4.58043732-10.17874961 10.17874961v71.25124732c0 5.59831228 4.58043732 10.17874961 10.17874961 10.17874961h804.12121962c5.59831228 0 10.17874961-4.58043732 10.17874961-10.17874961v-71.25124732c0-5.59831228-4.58043732-10.17874961-10.17874961-10.17874961h-109.42155836V758.83467817c0-103.6960117-53.94737296-194.92305513-135.3773699-246.83467817 81.42999692-51.91162303 135.37736988-143.13866646 135.3773699-246.83467817z",special:!0},{viewBox:[1024,1024],path:"M1020.928 448.44373333l-35.36213334-373.4528c-1.79200001-19.3536-17.2032-34.64533332-36.55679999-36.55679999L575.55626667 3.072h-0.47786666c-3.82293334 0-6.8096 1.19466667-9.07946669 3.46453333L6.53653333 565.99893332c-4.65919999 4.65919999-4.65919999 12.1856 0 16.84480001l434.61973334 434.61973334c2.26986667 2.26986667 5.25653333 3.46453333 8.48213333 3.46453333s6.21226667-1.19466667 8.48213333-3.46453333l559.46239999-559.46239999c2.38933332-2.5088 3.584-5.97333334 3.34506668-9.55733335zM735.40266668 362.66666667c-42.17173333 0-76.45866667-34.28693333-76.45866667-76.45866667s34.28693333-76.45866667 76.45866667-76.45866667 76.45866667 34.28693333 76.45866665 76.45866667-34.28693333 76.45866667-76.45866665 76.45866667z",special:!0}]},{type:"线性",children:[{viewBox:[1024,1024],path:"M1009.55537674 75.96950982l-61.38012212-61.38012214c-4.48769762-4.48769762-11.870684-4.48769762-16.3583816 0L14.44462326 931.67210859c-4.48769762 4.48769762-4.48769762 11.870684 0 16.35838159l61.38012212 61.38012214c4.48769762 4.48769762 11.870684 4.48769762 16.3583816 0L1009.41061232 92.18312698c4.63246205-4.34293316 4.63246205-11.72591956 0.14476442-16.21361716zM210.88996692 419.35075905c114.94296453 0 208.46079213-93.51782759 208.46079213-208.46079213s-93.51782759-208.46079213-208.46079213-208.4607921-208.46079213 93.51782759-208.4607921 208.4607921 93.51782759 208.46079213 208.4607921 208.46079213z m0-312.69118816c57.47148228 0 104.23039605 46.75891379 104.23039607 104.23039603s-46.75891379 104.23039605-104.23039607 104.23039607-104.23039605-46.75891379-104.23039603-104.23039607 46.75891379-104.23039605 104.23039603-104.23039603zM813.11003308 604.64924095c-114.94296453 0-208.46079213 93.51782759-208.46079213 208.46079213s93.51782759 208.46079213 208.46079213 208.4607921 208.46079213-93.51782759 208.4607921-208.4607921-93.51782759-208.46079213-208.4607921-208.46079213z m0 312.69118816c-57.47148228 0-104.23039605-46.75891379-104.23039607-104.23039603s46.75891379-104.23039605 104.23039607-104.23039607 104.23039605 46.75891379 104.23039603 104.23039607-46.75891379 104.23039605-104.23039603 104.23039603z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M1004.96017383 478.58365209L483.27851088 25.80594621c-4.00443838-3.45210207-9.11354943-5.3852792-14.49882864-5.38527921h-122.20441284c-10.21822208 0-14.91308089 12.70373557-7.18037228 19.33177152l483.57045622 419.77561022H14.8973037c-6.07569962 0-11.04672658 4.97102697-11.04672658 11.04672657v82.85044938c0 6.07569962 4.97102697 11.04672658 11.04672658 11.04672657h807.92996557L339.25681303 984.24756148c-7.7327086 6.76612003-3.0378498 19.33177153 7.18037229 19.33177152h126.34693531c2.62359757 0 5.24719513-0.96658859 7.18037228-2.76168164L1004.96017383 545.41634791c20.2983601-17.67476253 20.2983601-49.1579333 0-66.83269582z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M1011.38217956 558.9924242L545.80649025 22.43713295c-17.81503843-20.62055629-49.79794206-20.62055629-67.75325638 0L12.61782044 558.9924242c-6.31241519 7.29434645-1.12220714 18.51641789 8.41655359 18.51641789h113.62347344c6.45269109 0 12.62483038-2.80551785 16.97338308-7.71517411L458.69516062 215.87758959V1005.77114384c0 6.1721393 5.04993216 11.22207145 11.22207144 11.22207145h84.16553588c6.1721393 0 11.22207145-5.04993216 11.22207144-11.22207145V215.87758959l307.06393007 353.91607839c4.20827679 4.90965626 10.38041608 7.71517413 16.97338308 7.71517411h113.62347344c9.53876074 0 14.72896878-11.22207145 8.41655359-18.51641789z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M1009.1026963 459.52804874H201.17273073l483.57045624-419.77561022c7.7327086-6.76612003 3.0378498-19.33177153-7.18037229-19.33177152h-122.20441283c-5.3852792 0-10.49439025 1.93317715-14.49882866 5.38527921L19.03982617 478.58365209c-20.2983601 17.67476253-20.2983601 49.1579333 0 66.69461175L543.89742302 1000.81765136c2.07126124 1.79509307 4.55677472 2.76168163 7.18037228 2.76168164h126.3469353c10.21822208 0 14.91308089-12.70373557 7.18037228-19.33177152L201.17273073 564.47195126H1009.1026963c6.07569962 0 11.04672658-4.97102697 11.04672658-11.04672657v-82.85044938c0-6.07569962-4.97102697-11.04672658-11.04672658-11.04672657z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M1002.96562597 446.49115791h-113.62347344c-6.45269109 0-12.62483038 2.80551785-16.97338308 7.71517411L565.30483938 808.12241041V18.22885616c0-6.1721393-5.04993216-11.22207145-11.22207144-11.22207145h-84.16553588c-6.1721393 0-11.22207145 5.04993216-11.22207144 11.22207145v789.89355425L151.63123055 454.20633202c-4.20827679-4.90965626-10.38041608-7.71517413-16.97338308-7.71517411h-113.62347344c-9.53876074 0-14.72896878 11.36234735-8.41655359 18.51641789L478.19350975 1001.56286705c17.81503843 20.62055629 49.79794206 20.62055629 67.75325638 0L1011.38217956 465.0075758c6.31241519-7.29434645 1.12220714-18.51641789-8.41655359-18.51641789z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M975.82443246 622.46726585H14.8973037c-6.07569962 0-11.04672658 4.97102697-11.04672658 11.04672658v82.85044937c0 6.07569962 4.97102697 11.04672658 11.04672658 11.04672659h835.6848661L651.32683905 980.10503902c-5.66144737 7.18037229-0.55233633 17.9509307 8.69929718 17.9509307h100.11095967c6.76612003 0 13.11798782-3.0378498 17.39859437-8.42312903l233.08593092-295.63802022c22.78387358-28.99765728 2.20934532-71.52755463-34.79718873-71.52755462zM1009.1026963 296.58883161H173.4178302l199.25533075-252.69387063c5.66144737-7.18037229 0.55233633-17.9509307-8.69929718-17.9509307h-100.11095967c-6.76612003 0-13.11798782 3.0378498-17.39859437 8.42312903L13.37837881 330.00517953c-22.78387358 28.99765728-2.20934532 71.52755463 34.65910466 71.52755462h961.06521283c6.07569962 0 11.04672658-4.97102697 11.04672658-11.04672658v-82.85044937c0-6.07569962-4.97102697-11.04672658-11.04672658-11.04672659z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M1010.75873115 64.13501693H13.24126885c-5.59831228 0-10.17874961 4.58043732-10.17874961 10.17874961v81.42999691c0 5.59831228 4.58043732 10.17874961 10.17874961 10.17874964h997.5174623c5.59831228 0 10.17874961-4.58043732 10.17874961-10.17874964v-81.42999691c0-5.59831228-4.58043732-10.17874961-10.17874961-10.17874961zM1010.75873115 858.07748691H13.24126885c-5.59831228 0-10.17874961 4.58043732-10.17874961 10.17874964v81.42999691c0 5.59831228 4.58043732 10.17874961 10.17874961 10.17874961h997.5174623c5.59831228 0 10.17874961-4.58043732 10.17874961-10.17874961v-81.42999691c0-5.59831228-4.58043732-10.17874961-10.17874961-10.17874964zM1010.75873115 461.10625194H13.24126885c-5.59831228 0-10.17874961 4.58043732-10.17874961 10.17874959v81.42999694c0 5.59831228 4.58043732 10.17874961 10.17874961 10.17874959h997.5174623c5.59831228 0 10.17874961-4.58043732 10.17874961-10.17874959v-81.42999694c0-5.59831228-4.58043732-10.17874961-10.17874961-10.17874959z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M591.98717801 512l405.34042913-483.16579151c6.79427767-8.02960089 1.08090782-20.22841761-9.41933951-20.2284176h-123.22349044c-7.25752386 0-14.20621693 3.24272343-18.99309439 8.80167789L511.38233839 415.95362022 177.07299399 17.40746878c-4.63246205-5.55895447-11.58115512-8.80167789-18.99309439-8.80167789H34.85640916c-10.50024731 0-16.21361717 12.19881672-9.41933952 20.2284176L430.77749876 512 25.43706964 995.16579151c-6.79427767 8.02960089-1.08090782 20.22841761 9.41933952 20.2284176h123.22349044c7.25752386 0 14.20621693-3.24272343 18.99309439-8.80167789l334.3093444-398.54615144 334.30934441 398.54615144c4.63246205 5.55895447 11.58115512 8.80167789 18.99309439 8.80167789h123.22349044c10.50024731 0 16.21361717-12.19881672 9.41933951-20.2284176L591.98717801 512z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M953.5488 832.61667556c-24.08448-57.08913778-58.74574221-108.31644445-102.70947556-152.28017777-43.96373333-43.96373333-95.19104-78.49756444-152.28017777-102.70947558-0.50972445-0.25486222-1.01944888-0.38229333-1.52917334-0.63715555C776.41955556 519.64586667 828.02915556 426.23886221 828.02915556 320.85333332c0-174.58062221-141.44853334-316.02915556-316.02915556-316.02915554S195.97084444 146.27271111 195.97084444 320.85333332c0 105.38552889 51.6096 198.79253333 130.99918223 256.26396447-0.50972445 0.25486222-1.01944888 0.38229333-1.52917334 0.63715555-57.08913778 24.08448-108.31644445 58.61831112-152.28017777 102.70947554-43.96373333 43.96373333-78.49756444 95.19104-102.70947556 152.28017779C46.74901333 888.55893332 34.13333334 947.8144 32.85902222 1008.72647111c-0.12743111 5.7344 4.46008889 10.44935111 10.19448889 10.44935111h76.45866667c5.60696888 0 10.06705778-4.46008889 10.19448889-9.93962666 2.54862221-98.37681778 42.05226667-190.50951112 111.88451555-260.34176001 72.25344-72.25344 168.20906666-112.01194667 270.40881778-112.01194667s198.15537778 39.75850667 270.40881778 112.01194667C852.24106667 818.72668444 891.74471111 910.85937779 894.29333333 1009.23619556c0.12743111 5.60696888 4.58752 9.93962667 10.19448889 9.93962666h76.45866667c5.7344 0 10.32192-4.71495112 10.19448889-10.44935111-1.27431111-60.91207112-13.88999112-120.16753779-37.59217778-176.10979555zM512 540.03484444c-58.49088 0-113.54112-22.81016889-154.95623111-64.22527999S292.81848888 379.34421333 292.81848888 320.85333332c0-58.49088 22.81016889-113.54112 64.22528001-154.9562311S453.50912 101.67182221 512 101.67182221s113.54112 22.81016889 154.95623111 64.22528001S731.18151112 262.36245333 731.18151112 320.85333332c0 58.49088-22.81016889 113.54112-64.22528001 154.95623113S570.49088 540.03484444 512 540.03484444z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M985.31555555 111.50222222H38.68444445c-20.13866667 0-36.40888889 16.27022222-36.4088889 36.40888889v728.17777778c0 20.13866667 16.27022222 36.40888889 36.4088889 36.40888889h946.6311111c20.13866667 0 36.40888889-16.27022222 36.4088889-36.40888889V147.91111111c0-20.13866667-16.27022222-36.40888889-36.4088889-36.40888889z m-45.5111111 126.06577778V830.57777778H84.19555555V237.568l-31.40266666-24.46222222 44.71466666-57.45777778 48.6968889 37.888h731.70488888l48.69688889-37.888 44.71466667 57.45777778-31.51644444 24.46222222z M877.90933333 193.42222222L512 477.86666667 146.09066667 193.42222222l-48.69688889-37.888-44.71466667 57.45777778 31.40266667 24.46222222 388.66488889 302.19377778c22.98311111 17.86311111 55.18222222 17.86311111 78.16533333 0L939.80444445 237.568l31.40266666-24.46222222-44.71466666-57.45777778-48.58311112 37.77422222z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M985.31555555 88.74666667H38.68444445c-20.13866667 0-36.40888889 16.27022222-36.4088889 36.40888888v564.33777778c0 20.13866667 16.27022222 36.40888889 36.4088889 36.40888889h432.35555555v127.43111111H275.34222222c-10.01244445 0-18.20444445 8.192-18.20444444 18.20444445v54.61333333c0 5.00622222 4.096 9.10222222 9.10222222 9.10222222h491.52c5.00622222 0 9.10222222-4.096 9.10222222-9.10222222v-54.61333333c0-10.01244445-8.192-18.20444445-18.20444444-18.20444445H552.96V725.90222222h432.35555555c20.13866667 0 36.40888889-16.27022222 36.4088889-36.40888889V125.15555555c0-20.13866667-16.27022222-36.40888889-36.4088889-36.40888888z m-45.5111111 555.23555555H84.19555555V170.66666667h855.6088889v473.31555555z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M512 2.27555555C230.51377778 2.27555555 2.27555555 230.51377778 2.27555555 512s228.23822222 509.72444445 509.72444445 509.72444445 509.72444445-228.23822222 509.72444445-509.72444445S793.48622222 2.27555555 512 2.27555555z m0 932.97777778c-233.69955555 0-423.25333333-189.55377778-423.25333333-423.25333333 0-101.26222222 35.61244445-194.33244445 95.00444444-267.15022222l595.39911111 595.39911111C706.33244445 899.64088889 613.26222222 935.25333333 512 935.25333333z m328.24888889-156.10311111L244.84977778 183.75111111C317.66755555 124.35911111 410.73777778 88.74666667 512 88.74666667c233.69955555 0 423.25333333 189.55377778 423.25333333 423.25333333 0 101.26222222-35.61244445 194.33244445-95.00444444 267.15022222z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M901.80266667 257.82044445L656.95288889 12.97066667c-6.82666667-6.82666667-16.04266667-10.69511111-25.71377778-10.69511112H147.91111111c-20.13866667 0-36.40888889 16.27022222-36.40888889 36.4088889v946.6311111c0 20.13866667 16.27022222 36.40888889 36.40888889 36.4088889h728.17777778c20.13866667 0 36.40888889-16.27022222 36.40888889-36.4088889V283.648c0-9.67111111-3.86844445-19.00088889-10.69511111-25.82755555zM828.52977778 300.37333333H614.4V86.24355555L828.52977778 300.37333333z m2.048 639.43111112H193.42222222V84.19555555h343.60888889v245.76c0 26.39644445 21.39022222 47.78666667 47.78666667 47.78666667h245.76v562.06222223z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M981.07392 55.79662222H42.92608c-31.22062222 0-50.71758221 34.02410666-35.04355556 61.16693334L304.28728889 620.82616888V927.42542221c0 22.55530667 18.09521779 40.77795555 40.52309333 40.77795557h334.37923556c22.42787556 0 40.52309333-18.22264888 40.52309333-40.77795557V620.82616888L1016.24490667 116.96355556c15.54659555-27.14282666-3.95036444-61.16693333-35.17098667-61.16693334zM628.47203556 876.45297779H395.52796444V677.66044445h233.07150222v198.79253334z m12.23338666-301.50200891l-12.10595556 21.15356445h-233.19893332l-12.10595556-21.15356445L130.59868445 147.54702221h762.8026311L640.70542222 574.95096888z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M980.62285431 4.54099753H654.39920987c-4.2719763 0-7.76722963 3.49525333-7.76722962 7.76722964v72.4941432c0 4.2719763 3.49525333 7.76722963 7.76722962 7.76722963h207.64393877L604.04167111 350.57107753c-64.72691358-49.83972347-143.69374815-76.7661195-226.67365136-76.7661195-99.54999309 0-193.27456395 38.83614815-263.5679921 109.25903012S4.54099753 547.08198717 4.54099753 646.63198025s38.83614815 193.27456395 109.25903012 263.5679921C184.09345581 980.62285431 277.81802667 1019.45900247 377.36801975 1019.45900247s193.27456395-38.83614815 263.5679921-109.25903012C711.35889383 839.90654419 750.19504197 746.18197333 750.19504197 646.63198025c0-82.9799032-26.92639605-161.68783013-76.63666567-226.41474372L931.4304 162.34521283V369.60079013c0 4.2719763 3.49525333 7.76722963 7.76722963 7.76722962h72.4941432c4.2719763 0 7.76722963-3.49525333 7.76722964-7.76722962V43.37714569c0-21.35988148-17.47626667-38.83614815-38.83614816-38.83614816zM377.36801975 921.07409383c-151.33152395 0-274.44211358-123.11058963-274.44211358-274.44211358s123.11058963-274.44211358 274.44211358-274.44211358 274.44211358 123.11058963 274.44211358 274.44211358-123.11058963 274.44211358-274.44211358 274.44211358z",special:!0,outlined:!0}]}],Mi={bar:"柱状图",column:"条形图",line:"折线图",area:"面积图",scatter:"散点图",pie:"饼图",ring:"环形图",radar:"雷达图"},YS={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]]}},US=[["#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"]],_e=()=>{const e=ji(),t=ms(),n=Et.debounce(function(){t.isSave=!1,e.addSnapshot()},300,{trailing:!0}),o=Et.throttle(function(){t.isSave=!1,e.reDo()},100,{leading:!0,trailing:!1}),l=Et.throttle(function(){t.isSave=!1,e.unDo()},100,{leading:!0,trailing:!1});return{addHistorySnapshot:n,redo:o,undo:l}},Al=()=>{const e=Le(),t=Qe(),{creatingElement:n}=de(e),{theme:o,viewportRatio:l,viewportSize:a}=de(t),{addHistorySnapshot:s}=_e(),r=(g,m)=>{t.addElement(g),e.setActiveElementIdList([g.id]),n.value&&e.setCreatingElement(null),setTimeout(()=>{e.setEditorareaFocus(!0)},0),m&&m(),s()};return{createImageElement:g=>{VS(g).then(({width:m,height:O})=>{const S=O/m;Sa.value?(m=a.value,O=m*S):O>a.value*l.value&&(O=a.value*l.value,m=O/S),r({type:"image",id:Pt(10),src:g,width:m,height:O,left:(a.value-m)/2,top:(a.value*l.value-O)/2,fixedRatio:!0,rotate:0})})},createChartElement:g=>{r({type:"chart",id:Pt(10),chartType:g,left:300,top:81.25,width:800,height:800,rotate:0,themeColors:[o.value.themeColor],textColor:o.value.fontColor,data:YS[g]})},createTableElement:(g,m)=>{const O={fontname:o.value.fontName,color:o.value.fontColor},S=[];for(let y=0;y{const{left:O,top:S,width:P,height:b}=g,N=(m==null?void 0:m.content)||"",x=(m==null?void 0:m.vertical)||!1,T=Pt(10);r({type:"text",id:T,left:O,top:S,width:P,height:b,content:N,rotate:0,defaultFontName:o.value.fontName,defaultColor:o.value.fontColor,vertical:x},()=>{setTimeout(()=>{const y=document.querySelector(`#editable-element-${T} .ProseMirror`);y&&y.focus()},0)})},createShapeElement:(g,m,O={})=>{const{left:S,top:P,width:b,height:N}=g,x={type:"shape",id:Pt(10),left:S,top:P,width:b,height:N,viewBox:m.viewBox,path:m.path,fill:o.value.themeColor,fixedRatio:!1,rotate:0,...O};if(m.withborder&&(x.outline=o.value.outline),m.special&&(x.special=!0),m.pathFormula){x.pathFormula=m.pathFormula,x.viewBox=[b,N];const T=Wl[m.pathFormula];"editable"in T&&T.editable?(x.path=T.formula(b,N,T.defaultValue),x.keypoints=T.defaultValue):x.path=T.formula(b,N)}r(x)},createLineElement:(g,m)=>{const{left:O,top:S,start:P,end:b}=g,N={type:"line",id:Pt(10),left:O,top:S,start:P,end:b,points:m.points,color:o.value.themeColor,style:m.style,width:4};m.isBroken&&(N.broken=[(P[0]+b[0])/2,(P[1]+b[1])/2]),m.isBroken2&&(N.broken2=[(P[0]+b[0])/2,(P[1]+b[1])/2]),m.isCurve&&(N.curve=[(P[0]+b[0])/2,(P[1]+b[1])/2]),m.isCubic&&(N.cubic=[[(P[0]+b[0])/2,(P[1]+b[1])/2],[(P[0]+b[0])/2,(P[1]+b[1])/2]]),r(N)},createLatexElement:g=>{r({type:"latex",id:Pt(10),width:g.w,height:g.h,rotate:0,left:(a.value-g.w)/2,top:(a.value*l.value-g.h)/2,path:g.path,latex:g.latex,color:o.value.fontColor,strokeWidth:4,viewBox:[g.w,g.h],fixedRatio:!0})},createVideoElement:g=>{r({type:"elf",subtype:"elf-video",id:Pt(10),width:1e3,height:600,rotate:0,left:(a.value-1e3)/2,top:(a.value*l.value-600)/2,src:g,autoplay:!1})},createAudioElement:g=>{r({type:"elf",subtype:"elf-audio",id:Pt(10),width:100,height:100,rotate:0,left:(a.value-100)/2,top:(a.value*l.value-100)/2,loop:!1,autoplay:!1,fixedRatio:!0,color:o.value.themeColor,src:g})},createCloudCoachElement:g=>{r({type:"elf",subtype:"elf-sing-play",id:Pt(10),width:a.value,height:a.value*l.value,rotate:0,left:0,top:0,sid:g})}}},Ff=()=>{const e=Le(),t=Qe(),{currentSlide:n}=de(t),{addHistorySnapshot:o}=_e();return{addElementsFromData:s=>{const{groupIdMap:r,elIdMap:c}=ci(s),i=s[0];let u=0,d;do d=n.value.elements.find(f=>{if(f.type!==i.type)return!1;const{minX:p,maxX:R,minY:h,maxY:v}=uo(f),{minX:M,maxX:g,minY:m,maxY:O}=uo({...i,left:i.left+u,top:i.top+u});return p===M&&R===g&&h===m&&v===O}),d&&(u+=10);while(d);for(const f of s)f.id=c[f.id],f.left=f.left+u,f.top=f.top+u,f.groupId&&(f.groupId=r[f.groupId]);t.addElement(s),e.setActiveElementIdList(Object.values(c)),o()},addSlidesFromData:s=>{const r=dh(s),c=s.map(i=>{const{groupIdMap:u,elIdMap:d}=ci(i.elements);for(const f of i.elements)f.id=d[f.id],f.groupId&&(f.groupId=u[f.groupId]),f.link&&f.link.type==="slide"&&(r[f.link.target]?f.link.target=r[f.link.target]:delete f.link);if(i.animations)for(const f of i.animations)f.id=Pt(10),f.elId=d[f.elId];return{...i,id:r[i.id]}});t.addSlide(c),o()}}},WS=e=>/^https:\/\/pptist.cn(\/[\w-./?%&=]*)?\.(jpg|jpeg|png|svg|webp)(\?.*)?$/i.test(e),R0=()=>{const{shiftKeyState:e}=de(kn()),{createTextElement:t,createImageElement:n}=Al(),{addElementsFromData:o,addSlidesFromData:l}=Ff(),a=r=>{t({left:0,top:0,width:600,height:50},{content:r})};return{pasteTextClipboardData:(r,c)=>{const i=(c==null?void 0:c.onlySlide)||!1,u=(c==null?void 0:c.onlyElements)||!1,d=f0(r);if(typeof d=="object"){const{type:f,data:p}=d;f==="elements"&&!i?o(p):f==="slides"&&!u&&l(p)}else if(!u&&!i)if(e.value){const f=ui(d);a(f)}else if(WS(d))n(d);else if(fh(d))a(`${d}`);else if(IS(d)){const f=FS(d);il(f).then(p=>n(p))}else{const f=ui(d);a(f)}}}},Ss=()=>{const e=Le(),t=Qe(),{selectedSlidesIndex:n,activeElementIdList:o}=de(e),{currentSlide:l,slides:a,theme:s,slideIndex:r}=de(t),c=ee(()=>[...n.value,r.value]),i=ee(()=>a.value.filter((x,T)=>c.value.includes(T))),u=ee(()=>i.value.map(x=>x.id)),{pasteTextClipboardData:d}=R0(),{addSlidesFromData:f}=Ff(),{addHistorySnapshot:p}=_e(),R=()=>{const x={id:Pt(10),elements:[],background:{type:"solid",color:s.value.backgroundColor}};t.updateSlideIndex(0),e.setActiveElementIdList([]),t.setSlides([x])},h=x=>{x===We.UP&&r.value>0?(o.value.length&&e.setActiveElementIdList([]),t.updateSlideIndex(r.value-1)):x===We.DOWN&&r.value{const x=yf(JSON.stringify({type:"slides",data:i.value}));Lf(x).then(()=>{e.setThumbnailsFocus(!0)})},M=()=>{bf().then(x=>{d(x,{onlySlide:!0})}).catch(x=>zt.warning(x))},g=()=>{const x={id:Pt(10),elements:[],background:{type:"solid",color:s.value.backgroundColor}};e.setActiveElementIdList([]),t.addSlide(x),p()},m=x=>{const{groupIdMap:T,elIdMap:y}=ci(x.elements);for(const U of x.elements)U.id=y[U.id],U.groupId&&(U.groupId=T[U.groupId]);const Y={...x,id:Pt(10)};e.setActiveElementIdList([]),t.addSlide(Y),p()},O=()=>{const x=JSON.parse(JSON.stringify(l.value));f([x])},S=(x=u.value)=>{a.value.length===x.length?R():t.deleteSlide(x),e.updateSelectedSlidesIndex([]),p()};return{resetSlides:R,updateSlideIndex:h,copySlide:v,pasteSlide:M,createSlide:g,createSlideByTemplate:m,copyAndPasteSlide:O,deleteSlide:S,cutSlide:()=>{const x=[...u.value];v(),S(x)},selectAllSlide:()=>{const x=Array.from(Array(a.value.length),(T,y)=>y);e.setActiveElementIdList([]),e.updateSelectedSlidesIndex(x)},sortSlides:(x,T)=>{if(T===x)return;const y=JSON.parse(JSON.stringify(a.value)),Y=y[T],U=Y.sectionTag;if(U){const C=y[T+1];delete Y.sectionTag,C&&!C.sectionTag&&(C.sectionTag=U)}if(x===0){const C=y[0].sectionTag;C&&(delete y[0].sectionTag,Y.sectionTag=C)}const W=y[T];y.splice(T,1),y.splice(x,0,W),t.setSlides(y),t.updateSlideIndex(x)}}},Yf=()=>{const e=Le(),t=Qe(),{activeElementIdList:n}=de(e),{currentSlide:o}=de(t),{addHistorySnapshot:l}=_e();return{lockElement:()=>{const r=JSON.parse(JSON.stringify(o.value.elements));for(const c of r)n.value.includes(c.id)&&(c.lock=!0);t.updateSlide({elements:r}),e.setActiveElementIdList([]),l()},unlockElement:r=>{const c=JSON.parse(JSON.stringify(o.value.elements));if(r.groupId){const i=[];for(const u of c)u.groupId===r.groupId&&(u.lock=!1,i.push(u.id));t.updateSlide({elements:c}),e.setActiveElementIdList(i)}else{for(const i of c)if(i.id===r.id){i.lock=!1;break}t.updateSlide({elements:c}),e.setActiveElementIdList([r.id])}l()}}},Fa=()=>{const e=Le(),t=Qe(),{activeElementIdList:n,activeGroupElementId:o}=de(e),{currentSlide:l}=de(t),{addHistorySnapshot:a}=_e();return{deleteElement:()=>{if(!n.value.length)return;let c=[];o.value?c=l.value.elements.filter(i=>i.id!==o.value):c=l.value.elements.filter(i=>!n.value.includes(i.id)),e.setActiveElementIdList([]),t.updateSlide({elements:c}),a()},deleteAllElements:()=>{l.value.elements.length&&(e.setActiveElementIdList([]),t.updateSlide({elements:[]}),a())}}},p0=()=>{const e=Le(),t=Qe(),{activeElementIdList:n,activeElementList:o,handleElementId:l}=de(e),{currentSlide:a}=de(t),{addHistorySnapshot:s}=_e();return{canCombine:ee(()=>{if(o.value.length<2)return!1;const u=o.value[0].groupId;return u?!o.value.every(f=>(f.groupId&&f.groupId)===u):!0}),combineElements:()=>{if(!o.value.length)return;let u=JSON.parse(JSON.stringify(a.value.elements));const d=Pt(10),f=[];for(const v of u)n.value.includes(v.id)&&(v.groupId=d,f.push(v));const p=u.findIndex(v=>v.id===f[f.length-1].id),R=f.map(v=>v.id);u=u.filter(v=>!R.includes(v.id));const h=p-f.length+1;u.splice(h,0,...f),t.updateSlide({elements:u}),s()},uncombineElements:()=>{if(!o.value.length||!o.value.some(p=>p.groupId))return;const d=JSON.parse(JSON.stringify(a.value.elements));for(const p of d)n.value.includes(p.id)&&p.groupId&&delete p.groupId;t.updateSlide({elements:d});const f=l.value?[l.value]:[];e.setActiveElementIdList(f),s()}}},h0=()=>{const e=Le(),{activeElementIdList:t,activeElementList:n}=de(e),{pasteTextClipboardData:o}=R0(),{deleteElement:l}=Fa(),a=()=>{if(!t.value.length)return;const i=yf(JSON.stringify({type:"elements",data:n.value}));Lf(i).then(()=>{e.setEditorareaFocus(!0)})},s=()=>{a(),l()},r=()=>{bf().then(i=>{o(i)}).catch(i=>zt.warning(i))};return{copyElement:a,cutElement:s,pasteElement:r,quickCopyElement:()=>{a(),r()}}},Ya=()=>{const e=Le(),{currentSlide:t}=de(Qe()),{hiddenElementIdList:n,handleElementId:o}=de(e);return{selectAllElements:()=>{const r=t.value.elements.filter(c=>!c.lock&&!n.value.includes(c.id)).map(c=>c.id);e.setActiveElementIdList(r)},selectElement:s=>{o.value===s||n.value.includes(s)||t.value.elements.filter(c=>c.lock).some(c=>c.id===s)||e.setActiveElementIdList([s])}}},AS=()=>{const e=Qe(),{activeElementIdList:t,activeGroupElementId:n}=de(Le()),{currentSlide:o}=de(e),{addHistorySnapshot:l}=_e();return{moveElement:(s,r=1)=>{let c=[];const i=u=>{let{left:d,top:f}=u;switch(s){case We.LEFT:d=d-r;break;case We.RIGHT:d=d+r;break;case We.UP:f=f-r;break;case We.DOWN:f=f+r;break}return{...u,left:d,top:f}};n.value?c=o.value.elements.map(u=>n.value===u.id?i(u):u):c=o.value.elements.map(u=>t.value.includes(u.id)?i(u):u),e.updateSlide({elements:c}),l()}}},Ua=()=>{const e=Qe(),{currentSlide:t}=de(e),{addHistorySnapshot:n}=_e(),o=(i,u)=>({minLevel:i.findIndex(d=>d.id===u[0].id),maxLevel:i.findIndex(d=>d.id===u[u.length-1].id)}),l=(i,u)=>{const d=JSON.parse(JSON.stringify(i));if(u.groupId){const f=d.filter(M=>M.groupId===u.groupId),{minLevel:p,maxLevel:R}=o(i,f);if(R===i.length-1)return;const h=d[R+1],v=d.splice(p,f.length);if(h.groupId){const M=d.filter(g=>g.groupId===h.groupId);d.splice(p+M.length,0,...v)}else d.splice(p+1,0,...v)}else{const f=i.findIndex(h=>h.id===u.id);if(f===i.length-1)return;const p=d[f+1],R=d.splice(f,1)[0];if(p.groupId){const h=d.filter(v=>v.groupId===p.groupId);d.splice(f+h.length,0,R)}else d.splice(f+1,0,R)}return d},a=(i,u)=>{const d=JSON.parse(JSON.stringify(i));if(u.groupId){const f=d.filter(v=>v.groupId===u.groupId),{minLevel:p}=o(i,f);if(p===0)return;const R=d[p-1],h=d.splice(p,f.length);if(R.groupId){const v=d.filter(M=>M.groupId===R.groupId);d.splice(p-v.length,0,...h)}else d.splice(p-1,0,...h)}else{const f=i.findIndex(h=>h.id===u.id);if(f===0)return;const p=d[f-1],R=d.splice(f,1)[0];if(p.groupId){const h=d.filter(v=>v.groupId===p.groupId);d.splice(f-h.length,0,R)}else d.splice(f-1,0,R)}return d},s=(i,u)=>{const d=JSON.parse(JSON.stringify(i));if(u.groupId){const f=d.filter(v=>v.groupId===u.groupId),{minLevel:p,maxLevel:R}=o(i,f);if(R===i.length-1)return null;const h=d.splice(p,f.length);d.push(...h)}else{const f=i.findIndex(p=>p.id===u.id);if(f===i.length-1)return null;d.splice(f,1),d.push(u)}return d},r=(i,u)=>{const d=JSON.parse(JSON.stringify(i));if(u.groupId){const f=d.filter(h=>h.groupId===u.groupId),{minLevel:p}=o(i,f);if(p===0)return;const R=d.splice(p,f.length);d.unshift(...R)}else{const f=i.findIndex(p=>p.id===u.id);if(f===0)return;d.splice(f,1),d.unshift(u)}return d};return{orderElement:(i,u)=>{let d;u===_t.UP?d=l(t.value.elements,i):u===_t.DOWN?d=a(t.value.elements,i):u===_t.TOP?d=s(t.value.elements,i):u===_t.BOTTOM&&(d=r(t.value.elements,i)),d&&(e.updateSlide({elements:d}),n())}}},v0=()=>{const e=Le(),{canvasPercentage:t,canvasScale:n,canvasDragged:o}=de(e);return{canvasScalePercentage:ee(()=>Math.round(n.value*100)+"%"),setCanvasScalePercentage:c=>{const i=Math.round(c/n.value*t.value)/100;e.setCanvasPercentage(i)},scaleCanvas:c=>{let i=t.value;const u=5,d=200,f=30;c==="+"&&i<=d&&(i+=u),c==="-"&&i>=f&&(i-=u),e.setCanvasPercentage(i)},resetCanvas:()=>{e.setCanvasPercentage(90),o&&e.setCanvasDragged(!1)}}},QS=()=>{const e=Le(),t=kn(),{activeElementIdList:n,disableHotkeys:o,handleElement:l,handleElementId:a,editorAreaFocus:s,thumbnailsFocus:r,showSearchPanel:c}=de(e),{currentSlide:i}=de(Qe()),{ctrlKeyState:u,shiftKeyState:d,spaceKeyState:f}=de(t),{updateSlideIndex:p,copySlide:R,createSlide:h,deleteSlide:v,cutSlide:M,copyAndPasteSlide:g,selectAllSlide:m}=Ss(),{combineElements:O,uncombineElements:S}=p0(),{deleteElement:P}=Fa(),{lockElement:b}=Yf(),{copyElement:N,cutElement:x,quickCopyElement:T}=h0(),{selectAllElements:y}=Ya(),{moveElement:Y}=AS(),{orderElement:U}=Ua(),{redo:W,undo:C}=_e(),{enterScreening:F,enterScreeningFromStart:J}=Ta(),{scaleCanvas:w,resetCanvas:q}=v0(),se=()=>{n.value.length?N():r.value&&R()},H=()=>{n.value.length?x():r.value&&M()},G=()=>{n.value.length?T():r.value&&g()},Q=()=>{s.value&&y(),r.value&&m()},E=()=>{s.value&&b()},le=()=>{s.value&&O()},B=()=>{s.value&&S()},D=()=>{n.value.length?P():r.value&&v()},z=fe=>{n.value.length?Y(fe):(fe===We.UP||fe===We.DOWN)&&p(fe)},he=fe=>{fe===We.PAGEUP?p(We.UP):fe===We.PAGEDOWN&&p(We.DOWN)},k=fe=>{l.value&&U(l.value,fe)},j=()=>{r.value&&h()},K=()=>{if(!i.value.elements.length)return;if(!a.value){const Ue=i.value.elements[0];e.setActiveElementIdList([Ue.id]);return}const fe=i.value.elements.findIndex(Ue=>Ue.id===a.value),Ne=fe>=i.value.elements.length-1?0:fe+1,Fe=i.value.elements[Ne].id;e.setActiveElementIdList([Fe])},$=fe=>{const{ctrlKey:Ne,shiftKey:Fe,altKey:Ue,metaKey:Oe}=fe,Se=Ne||Oe,Te=fe.key.toUpperCase();if(Se&&!u.value&&t.setCtrlKeyState(!0),Fe&&!d.value&&t.setShiftKeyState(!0),!o.value&&Te===We.SPACE&&t.setSpaceKeyState(!0),Fe&&Te===We.F5){fe.preventDefault(),F(),t.setShiftKeyState(!1);return}if(Te===We.F5){fe.preventDefault(),J();return}if(Ne&&Te===We.F){fe.preventDefault(),e.setSearchPanelState(!c.value);return}if(!(!s.value&&!r.value)){if(Se&&Te===We.C){if(o.value)return;fe.preventDefault(),se()}if(Se&&Te===We.X){if(o.value)return;fe.preventDefault(),H()}if(Se&&Te===We.D){if(o.value)return;fe.preventDefault(),G()}if(Se&&Te===We.Z){if(o.value)return;fe.preventDefault(),C()}if(Se&&Te===We.Y){if(o.value)return;fe.preventDefault(),W()}if(Se&&Te===We.A){if(o.value)return;fe.preventDefault(),Q()}if(Se&&Te===We.L){if(o.value)return;fe.preventDefault(),E()}if(!Fe&&Se&&Te===We.G){if(o.value)return;fe.preventDefault(),le()}if(Fe&&Se&&Te===We.G){if(o.value)return;fe.preventDefault(),B()}if(Ue&&Te===We.F){if(o.value)return;fe.preventDefault(),k(_t.TOP)}if(Ue&&Te===We.B){if(o.value)return;fe.preventDefault(),k(_t.BOTTOM)}if(Te===We.DELETE||Te===We.BACKSPACE){if(o.value)return;fe.preventDefault(),D()}if(Te===We.UP){if(o.value)return;fe.preventDefault(),z(We.UP)}if(Te===We.DOWN){if(o.value)return;fe.preventDefault(),z(We.DOWN)}if(Te===We.LEFT){if(o.value)return;fe.preventDefault(),z(We.LEFT)}if(Te===We.RIGHT){if(o.value)return;fe.preventDefault(),z(We.RIGHT)}if(Te===We.PAGEUP){if(o.value)return;fe.preventDefault(),he(We.PAGEUP)}if(Te===We.PAGEDOWN){if(o.value)return;fe.preventDefault(),he(We.PAGEDOWN)}if(Te===We.ENTER){if(o.value)return;fe.preventDefault(),j()}if(Te===We.MINUS){if(o.value)return;fe.preventDefault(),w("-")}if(Te===We.EQUAL){if(o.value)return;fe.preventDefault(),w("+")}if(Te===We.DIGIT_0){if(o.value)return;fe.preventDefault(),q()}if(Te===We.TAB){if(o.value)return;fe.preventDefault(),K()}s.value&&!Fe&&!Se&&!o.value&&(Te===We.T?e.setCreatingElement({type:"text"}):Te===We.R?e.setCreatingElement({type:"shape",data:{viewBox:[200,200],path:"M 0 0 L 200 0 L 200 200 L 0 200 Z"}}):Te===We.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"}}):Te===We.L&&e.setCreatingElement({type:"line",data:{path:"M 0 0 L 20 20",style:"solid",points:["",""]}}))}},ae=()=>{u.value&&t.setCtrlKeyState(!1),d.value&&t.setShiftKeyState(!1),f.value&&t.setSpaceKeyState(!1)};pt(()=>{document.addEventListener("keydown",$),document.addEventListener("keyup",ae),window.addEventListener("blur",ae)}),Ct(()=>{document.removeEventListener("keydown",$),document.removeEventListener("keyup",ae),window.removeEventListener("blur",ae)})},ZS=()=>{const{editorAreaFocus:e,thumbnailsFocus:t,disableHotkeys:n}=de(Le()),{pasteTextClipboardData:o}=R0(),{createImageElement:l}=Al(),a=r=>{il(r).then(c=>l(c))},s=r=>{if(!e.value&&!t.value||n.value||!r.clipboardData)return;const c=r.clipboardData.items,i=c[0];if(i){for(const u of c)if(u.kind==="file"&&u.type.indexOf("image")!==-1){const d=u.getAsFile();d&&a(d);return}i.kind==="string"&&i.type==="text/plain"&&i.getAsString(u=>o(u))}};pt(()=>{document.addEventListener("paste",s)}),Ct(()=>{document.removeEventListener("paste",s)})},KS="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 ES(e,t){var n=0,o={};e.addEventListener("message",function(l){var a=l.data;if(a.type==="RPC")if(a.id){var s=o[a.id];s&&(delete o[a.id],a.error?s[1](Object.assign(Error(a.error.message),a.error)):s[0](a.result))}else{var r=document.createEvent("Event");r.initEvent(a.method,!1,!1),r.data=a.params,e.dispatchEvent(r)}}),t.forEach(function(l){e[l]=function(){var a=arguments;return new Promise(function(s,r){var c=++n;o[c]=[s,r],e.postMessage({type:"RPC",id:c,method:l,params:[].slice.call(a)})})}})}var CS=ES;const HS=xa(CS),GS=["createTaskController","destoryTaskController","addCourseWareTask","getRunJobIds","initOssResource","destroyOssResource"];function wS(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)),HS(n,GS),n.ready=new Promise(function(o){n.addEventListener("ready",function(){o(n)})}),n}let zn=null,Uf=e=>{};const JS=()=>new Promise(async(e,t)=>{if(!zn){const n=ms(),o=await $a.get("./pptworker/cos-js-sdk-v5.min.js"),l=await $a.get("./pptworker/upload.js"),a=await $a.get("./pptworker/pptJson.js");zn=new wS([o.data,`\r const filePath = "${n.id}/"\r `,l.data,a.data]),zn.ready.then(()=>zn.createTaskController()).then(()=>{zn.onmessage=DS}).then(()=>{zn.initOssResource(A2,Q2())}).then(e(zn)).catch(t);return}e(zn)}),Wf=(e,t)=>new Promise((n,o)=>{zn?(Uf=t,zn.addCourseWareTask(e).then(l=>{e=null,n(l)}).catch(o)):o("worker没有初始化")}),DS=e=>{const{type:t,result:n={}}=e.data;t==="progress"&&Uf(n)},kS=()=>{const{addHistorySnapshot:e}=_e(),t=_(!1),n=_(0);return pt(()=>{JS()}),{importPPTXFile:l=>{var r;const a=l[0];if(!a)return;t.value=!0,n.value=0;const s=`.${(r=a.name.split("."))==null?void 0:r.reverse()[0]}`;Wf({type:"uploadCourseware",extra:{outputName:a.name.trim(),name:a.name.replace(s,"").trim(),type:a.type,suffix:s,path:a.webkitRelativePath,paths:a.webkitRelativePath.split("/"),files:a}},c=>{console.log(c,"导入"),n.value=parseInt(c.progress),c.progress===100&&(c.status==="done"?Rh(c.extra.url).then(i=>{i.code===200?(ph(i.data),e(),t.value=!1):(t.value=!1,Gs({showClose:!0,message:"导入失败!",type:"error"}))}):c.status!=="doing"&&(t.value=!1,Gs({showClose:!0,message:"导入失败!",type:"error"})))}).catch(c=>{t.value=!1,Gs({showClose:!0,message:"导入失败!",type:"error"}),console.log(c)})},importing:t,importProgress:n}},BS=()=>{const e=_(!1),t=_(0);return{exportPPTX:()=>{const{blob:o,title:l}=hh(),a=URL.createObjectURL(o);t.value=0,e.value=!0,Wf({type:"downloadCourseware",extra:{id:"",type:"pptx",outputName:`${l}.pptx`,name:l,jsonUrl:a}},s=>{if(console.log(s,"导出"),s.status==="doing"&&parseInt(s.progress)===100||(t.value=parseInt(s.progress)),s.progress===100)if(s.status==="done"){e.value=!1;const{extra:r={}}=s,{name:c,buffer:i}=r;Z2(new Blob([i]),c)}else s.status!=="doing"&&(e.value=!1)}).catch(s=>{e.value=!1,console.log(s)})},exporting:e,exportProgress:t}},_S={class:"hotkey-doc"},$S={class:"title"},zS={class:"label"},jS={class:"value"},qS=pe({__name:"HotkeyDoc",setup(e){return(t,n)=>(V(),A("div",_S,[(V(!0),A(me,null,ye(I(vh),o=>(V(),A(me,{key:o.type},[X("div",$S,Ye(o.type),1),(V(!0),A(me,null,ye(o.children,l=>(V(),A("div",{class:"hotkey-item",key:l.label},[X("div",zS,Ye(l.label),1),X("div",jS,Ye(l.value),1)]))),128))],64))),128))]))}}),eM=Me(qS,[["__scopeId","data-v-2498929a"]]),tM=["accept"],nM=pe({__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())},a=s=>{const r=s.target.files;r&&n("change",r)};return(s,r)=>(V(),A("div",{class:"file-input",onClick:r[1]||(r[1]=c=>l())},[je(s.$slots,"default",{},void 0,!0),X("input",{class:"input",type:"file",name:"upload",ref_key:"inputRef",ref:o,accept:s.accept,onChange:r[0]||(r[0]=c=>a(c))},null,40,tM)]))}}),Ms=Me(nM,[["__scopeId","data-v-058d398f"]]),oM={key:0,class:"fullscreen-spin"},lM={class:"spin"},sM={class:"text"},aM=pe({__name:"FullscreenSpin",props:{loading:{type:Boolean,default:!1},tip:{default:""},progress:{default:0}},setup(e){return(t,n)=>t.loading?(V(),A("div",oM,[X("div",lM,[L(I(mf),{class:"progress",percentage:t.progress,"show-text":!1},null,8,["percentage"]),X("div",sM,Ye(`${t.tip} ${t.progress}%`),1)])])):Re("",!0)}}),rM=Me(aM,[["__scopeId","data-v-4e064927"]]),iM={class:"header"},cM=pe({__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),a=ee(()=>({width:n.width+"px",...n.contentStyle||{}}));return(s,r)=>{const c=ce("IconClose");return V(),te(Ci,{to:"body"},[L(ss,{name:`drawer-slide-${s.placement}`,onAfterLeave:r[1]||(r[1]=i=>l.value=!1),onBeforeEnter:r[2]||(r[2]=i=>l.value=!0)},{default:Z(()=>[xe(X("div",{class:re(["drawer",s.placement]),style:ue({width:n.width+"px"})},[X("div",iM,[je(s.$slots,"title",{},void 0,!0),X("span",{class:"close-btn",onClick:r[0]||(r[0]=i=>o("update:visible",!1))},[L(c)])]),l.value?(V(),A("div",{key:0,class:"content",style:ue(a.value)},[je(s.$slots,"default",{},void 0,!0)],4)):Re("",!0)],6),[[to,s.visible]])]),_:3},8,["name"])])}}}),uM=Me(cM,[["__scopeId","data-v-fa9c5fff"]]),dM=pe({__name:"PopoverMenuItem",props:{center:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const n=t;return(o,l)=>(V(),A("div",{class:re(["popover-menu-item",{center:o.center}]),onClick:l[0]||(l[0]=a=>n("click"))},[je(o.$slots,"default",{},void 0,!0)],2))}}),tn=Me(dM,[["__scopeId","data-v-9fb314a0"]]),Af=e=>(at("data-v-d7d1cf12"),e=e(),st(),e),fM={class:"editor-header"},RM={class:"left"},pM=Af(()=>X("img",{class:"icon",src:KS},null,-1)),hM=[pM],vM=Af(()=>X("div",{class:"line"},null,-1)),mM={class:"title"},gM={class:"title-text"},SM=pe({__name:"index",setup(e){const t=Qe(),{title:n}=de(t),{resetSlides:o}=Ss(),l=_(!1),a=_(!1),s=_("import"),{importPPTXFile:r,importing:c,importProgress:i}=kS(),{exportPPTX:u,exporting:d,exportProgress:f}=BS();function p(){l.value=!1,$g.confirm("导出pptx可能会丢失一些内容,确认导出?","提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{s.value="export",u()}).catch(()=>{})}const R=ee(()=>s.value==="export"?{loading:d.value,progress:f.value,tip:"正在导出中,请稍等…"}:{loading:c.value,progress:i.value,tip:"正在导入中,请稍等…"}),h=ms();function v(){h.updatePPT()}function M(){window.close()}return(g,m)=>(V(),A("div",fM,[X("div",RM,[L(Je,{trigger:"click",placement:"bottom-start",value:l.value,"onUpdate:value":m[3]||(m[3]=O=>l.value=O)},{content:Z(()=>[L(Ms,{accept:"application/vnd.openxmlformats-officedocument.presentationml.presentation",onChange:m[0]||(m[0]=O=>{s.value="import",I(r)(O),l.value=!1})},{default:Z(()=>[L(tn,null,{default:Z(()=>[Xe("导入pptx")]),_:1})]),_:1}),L(tn,{onClick:p},{default:Z(()=>[Xe("导出pptx")]),_:1}),L(tn,{onClick:m[1]||(m[1]=()=>{I(o)(),l.value=!1})},{default:Z(()=>[Xe("重置幻灯片")]),_:1}),L(tn,{onClick:m[2]||(m[2]=()=>{l.value=!1,a.value=!0})},{default:Z(()=>[Xe("快捷操作")]),_:1})]),default:Z(()=>[X("div",{class:re(["menuCon",{menuVisible:l.value}])},hM,2)]),_:1},8,["value"]),vM,X("div",mM,[X("div",gM,Ye(I(n)),1)])]),X("div",{class:"right"},[X("div",{class:"cancelBtn",onClick:M},"取消"),X("div",{class:"saveBtn",onClick:v},"保存课件")]),L(uM,{width:320,visible:a.value,"onUpdate:visible":m[4]||(m[4]=O=>a.value=O),placement:"right"},{title:Z(()=>[Xe("快捷操作")]),default:Z(()=>[L(eM)]),_:1},8,["visible"]),L(rM,{loading:R.value.loading,progress:R.value.progress,tip:R.value.tip},null,8,["loading","progress","tip"])]))}}),MM=Me(SM,[["__scopeId","data-v-d7d1cf12"]]),OM=()=>{const e=window.getSelection();e&&e.removeAllRanges()},xM=e=>{const t=_(0),n=_(0),o=Le(),{canvasPercentage:l,canvasDragged:a}=de(o),{viewportRatio:s,viewportSize:r}=de(Qe()),c=()=>{if(!e.value)return;const p=e.value.clientWidth,R=e.value.clientHeight;if(R/p>s.value){const h=p*(l.value/100);o.setCanvasScale(h/r.value),t.value=(p-h)/2,n.value=(R-h*s.value)/2}else{const h=R*(l.value/100);o.setCanvasScale(h/(r.value*s.value)),t.value=(p-h/s.value)/2,n.value=(R-h)/2}};Ce(l,(p,R)=>{if(!e.value)return;const h=e.value.clientWidth,v=e.value.clientHeight;if(v/h>s.value){const M=h*(p/100),g=h*(R/100),m=M*s.value,O=g*s.value;o.setCanvasScale(M/r.value),t.value=t.value-(M-g)/2,n.value=n.value-(m-O)/2}else{const M=v*(p/100),g=v*(R/100),m=M/s.value,O=g/s.value;o.setCanvasScale(M/(r.value*s.value)),t.value=t.value-(m-O)/2,n.value=n.value-(M-g)/2}}),Ce(s,c),Ce(r,c),Ce(a,()=>{a.value||c()});const u=ee(()=>({width:r.value,height:r.value*s.value,left:t.value,top:n.value})),d=new ResizeObserver(c);return pt(()=>{e.value&&d.observe(e.value)}),Ct(()=>{e.value&&d.unobserve(e.value)}),{viewportStyles:u,dragViewport:p=>{let R=!0;const h=p.pageX,v=p.pageY,M=t.value,g=n.value;document.onmousemove=m=>{if(!R)return;const O=m.pageX,S=m.pageY;t.value=M+(O-h),n.value=g+(S-v)},document.onmouseup=()=>{R=!1,document.onmousemove=null,document.onmouseup=null,o.setCanvasDragged(!0)}}}},PM=(e,t)=>{const n=Le(),{canvasScale:o,hiddenElementIdList:l}=de(n),a=_(!1),s=_(1),r=_({top:0,left:0,width:0,height:0});return{mouseSelection:r,mouseSelectionVisible:a,mouseSelectionQuadrant:s,updateMouseSelection:i=>{if(!t.value)return;let u=!0;const d=t.value.getBoundingClientRect(),f=5,p=i.pageX,R=i.pageY,h=(p-d.x)/o.value,v=(R-d.y)/o.value;r.value={top:v,left:h,width:0,height:0},a.value=!1,s.value=4,document.onmousemove=M=>{if(!u)return;const g=M.pageX,m=M.pageY,O=(g-p)/o.value,S=(m-R)/o.value,P=Math.abs(O),b=Math.abs(S);if(P0&&S>0?N=4:O<0&&S<0?N=2:O>0&&S<0?N=1:O<0&&S>0&&(N=3),r.value={...r.value,width:P,height:b},a.value=!0,s.value=N},document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null,u=!1;let M=[];for(let m=0;mS&&TP&&YS-b&&TP-N&&YS&&TP-N&&YS-b&&TP&&Y{if(m.groupId){const O=M.map(P=>P.id);return e.value.filter(P=>P.groupId===m.groupId).every(P=>O.includes(P.id))}return!0});const g=M.map(m=>m.id);n.setActiveElementIdList(g),a.value=!1}}}},NM=e=>{const{disableHotkeys:t}=de(Le()),{createImageElement:n,createTextElement:o}=Al(),l=a=>{if(!a.dataTransfer||a.dataTransfer.items.length===0)return;const s=a.dataTransfer.items[0];if(s.kind==="file"&&s.type.indexOf("image")!==-1){const r=s.getAsFile();r&&il(r).then(c=>n(c))}else s.kind==="string"&&s.type==="text/plain"&&s.getAsString(r=>{if(t.value)return;const c=ui(r);o({left:0,top:0,width:600,height:50},{content:c})})};pt(()=>{e.value&&e.value.addEventListener("drop",l),document.ondragleave=a=>a.preventDefault(),document.ondrop=a=>a.preventDefault(),document.ondragenter=a=>a.preventDefault(),document.ondragover=a=>a.preventDefault()}),Ct(()=>{e.value&&e.value.removeEventListener("drop",l),document.ondragleave=null,document.ondrop=null,document.ondragenter=null,document.ondragover=null})},TM=(e,t)=>{const n=Math.atan2(e,t);return 180/Math.PI*n},XM=(e,t,n)=>{const o=Qe(),{addHistorySnapshot:l}=_e();return{rotateElement:(s,r)=>{const c=!(s instanceof MouseEvent);if(c&&(!s.changedTouches||!s.changedTouches[0]))return;let i=!0,u=0;const d=r.rotate||0,f=r.left,p=r.top,R=r.width,h=r.height,v=f+R/2,M=p+h/2;if(!t.value)return;const g=t.value.getBoundingClientRect(),m=S=>{if(!i)return;const P=S instanceof MouseEvent?S.pageX:S.changedTouches[0].pageX,b=S instanceof MouseEvent?S.pageY:S.changedTouches[0].pageY,N=(P-g.left)/n.value,x=(b-g.top)/n.value,T=N-v,y=M-x;u=TM(T,y);const Y=5;Math.abs(u)<=Y?u=0:u>0&&Math.abs(u-45)<=Y?u-=u-45:u<0&&Math.abs(u+45)<=Y?u-=u+45:u>0&&Math.abs(u-90)<=Y?u-=u-90:u<0&&Math.abs(u+90)<=Y?u-=u+90:u>0&&Math.abs(u-135)<=Y?u-=u-135:u<0&&Math.abs(u+135)<=Y?u-=u+135:u>0&&Math.abs(u-180)<=Y?u-=u-180:u<0&&Math.abs(u+180)<=Y&&(u-=u+180),e.value=e.value.map(U=>r.id===U.id?{...U,rotate:u}:U)},O=()=>{i=!1,document.onmousemove=null,document.onmouseup=null,d!==u&&(o.updateSlide({elements:e.value}),l())};c?(document.ontouchmove=m,document.ontouchend=O):(document.onmousemove=m,document.onmouseup=O)}}},Dl={text:"文本",image:"图片",shape:"形状",line:"线条",chart:"图表",table:"表格",video:"视频",audio:"音频",latex:"公式"},Qf={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:a}=e,s=Math.sqrt(Math.pow(l,2)+Math.pow(a,2))/2,r=Math.atan(a/l)*180/Math.PI,c=(180-t-r)*Math.PI/180,i=(r-t)*Math.PI/180,u=(90-t)*Math.PI/180,d=t*Math.PI/180,f=l/2,p=a/2,R=n+f,h=o+p,v={left:R+s*Math.cos(c),top:h-s*Math.sin(c)},M={left:R+p*Math.cos(u),top:h-p*Math.sin(u)},g={left:R+s*Math.cos(i),top:h-s*Math.sin(i)},m={left:R+f*Math.cos(d),top:h+f*Math.sin(d)},O={left:R-s*Math.cos(c),top:h+s*Math.sin(c)},S={left:R-p*Math.sin(d),top:h+p*Math.cos(d)},P={left:R-s*Math.cos(i),top:h+s*Math.sin(i)},b={left:R-f*Math.cos(d),top:h-f*Math.sin(d)};return{leftTopPoint:v,topPoint:M,rightTopPoint:g,rightPoint:m,rightBottomPoint:O,bottomPoint:S,leftBottomPoint:P,leftPoint:b}},xu=(e,t)=>({[Ie.RIGHT_BOTTOM]:t.leftTopPoint,[Ie.LEFT_BOTTOM]:t.rightTopPoint,[Ie.LEFT_TOP]:t.rightBottomPoint,[Ie.RIGHT_TOP]:t.leftBottomPoint,[Ie.TOP]:t.bottomPoint,[Ie.BOTTOM]:t.topPoint,[Ie.LEFT]:t.rightPoint,[Ie.RIGHT]:t.leftPoint})[e],yM=(e,t,n)=>{const o=Le(),l=Qe(),{activeElementIdList:a,activeGroupElementId:s}=de(o),{viewportRatio:r,viewportSize:c}=de(l),{ctrlOrShiftKeyActive:i}=de(kn()),{addHistorySnapshot:u}=_e();return{scaleElement:(p,R,h)=>{const v=!(p instanceof MouseEvent);if(v&&(!p.changedTouches||!p.changedTouches[0]))return;let M=!0;o.setScalingState(!0);const g=R.left,m=R.top,O=R.width,S=R.height,P=R.type==="table"?R.cellMinHeight:0,b="rotate"in R&&R.rotate?R.rotate:0,N=Math.PI*b/180,x=i.value||"fixedRatio"in R&&R.fixedRatio,T=O/S,y=v?p.changedTouches[0].pageX:p.pageX,Y=v?p.changedTouches[0].pageY:p.pageY,U=Qf[R.type]||20,W=Q=>Q{const B=[];let D=!1,z=!1;const he={offsetX:0,offsetY:0};if(E||E===0)for(let k=0;k{if(!M)return;const E=Q instanceof MouseEvent?Q.pageX:Q.changedTouches[0].pageX,le=Q instanceof MouseEvent?Q.pageY:Q.changedTouches[0].pageY,B=E-y,D=le-Y;let z=O,he=S,k=g,j=m;if(b){const K=(Math.cos(N)*B+Math.sin(N)*D)/n.value;let $=(Math.cos(N)*D-Math.sin(N)*B)/n.value;x&&((h===Ie.RIGHT_BOTTOM||h===Ie.LEFT_TOP)&&($=K/T),(h===Ie.LEFT_BOTTOM||h===Ie.RIGHT_TOP)&&($=-K/T)),h===Ie.RIGHT_BOTTOM?(z=W(O+K),he=W(S+$)):h===Ie.LEFT_BOTTOM?(z=W(O-K),he=W(S+$),k=g-(z-O)):h===Ie.LEFT_TOP?(z=W(O-K),he=W(S-$),k=g-(z-O),j=m-(he-S)):h===Ie.RIGHT_TOP?(z=W(O+K),he=W(S-$),j=m-(he-S)):h===Ie.TOP?(he=W(S-$),j=m-(he-S)):h===Ie.BOTTOM?he=W(S+$):h===Ie.LEFT?(z=W(O-K),k=g-(z-O)):h===Ie.RIGHT&&(z=W(O+K));const ae=Ou({width:z,height:he,left:k,top:j},b),fe=xu(h,ae),Ne=fe.left,Fe=fe.top,Ue=Ne-F,Oe=Fe-J;k=k-Ue,j=j-Oe}else{let K=B/n.value,$=D/n.value;if(x&&((h===Ie.RIGHT_BOTTOM||h===Ie.LEFT_TOP)&&($=K/T),(h===Ie.LEFT_BOTTOM||h===Ie.RIGHT_TOP)&&($=-K/T)),h===Ie.RIGHT_BOTTOM){const{offsetX:ae,offsetY:fe}=se(g+O+K,m+S+$);K=K-ae,$=$-fe,x&&(fe?K=$*T:$=K/T),z=W(O+K),he=W(S+$)}else if(h===Ie.LEFT_BOTTOM){const{offsetX:ae,offsetY:fe}=se(g+K,m+S+$);K=K-ae,$=$-fe,x&&(fe?K=-$*T:$=-K/T),z=W(O-K),he=W(S+$),k=g-(z-O)}else if(h===Ie.LEFT_TOP){const{offsetX:ae,offsetY:fe}=se(g+K,m+$);K=K-ae,$=$-fe,x&&(fe?K=$*T:$=K/T),z=W(O-K),he=W(S-$),k=g-(z-O),j=m-(he-S)}else if(h===Ie.RIGHT_TOP){const{offsetX:ae,offsetY:fe}=se(g+O+K,m+$);K=K-ae,$=$-fe,x&&(fe?K=-$*T:$=-K/T),z=W(O+K),he=W(S-$),j=m-(he-S)}else if(h===Ie.LEFT){const{offsetX:ae}=se(g+K,null);K=K-ae,z=W(O-K),k=g-(z-O)}else if(h===Ie.RIGHT){const{offsetX:ae}=se(g+O+K,null);K=K-ae,z=W(O+K)}else if(h===Ie.TOP){const{offsetY:ae}=se(null,m+$);$=$-ae,he=W(S-$),j=m-(he-S)}else if(h===Ie.BOTTOM){const{offsetY:ae}=se(null,m+S+$);$=$-ae,he=W(S+$)}}e.value=e.value.map(K=>{if(R.id!==K.id)return K;if(K.type==="shape"&&"pathFormula"in K&&K.pathFormula){const $=Wl[K.pathFormula];let ae="";return"editable"in $?ae=$.formula(z,he,K.keypoints):ae=$.formula(z,he),{...K,left:k,top:j,width:z,height:he,viewBox:[z,he],path:ae}}if(K.type==="table"){let $=P+(he-S)/K.data.length;return $=$<36?36:$,$===P?{...K,left:k,width:z}:{...K,left:k,top:j,width:z,height:he,cellMinHeight:$<36?36:$}}return{...K,left:k,top:j,width:z,height:he}})},G=Q=>{M=!1,document.ontouchmove=null,document.ontouchend=null,document.onmousemove=null,document.onmouseup=null,t.value=[];const E=Q instanceof MouseEvent?Q.pageX:Q.changedTouches[0].pageX,le=Q instanceof MouseEvent?Q.pageY:Q.changedTouches[0].pageY;y===E&&Y===le||(l.updateSlide({elements:e.value}),o.setScalingState(!1),u())};v?(document.ontouchmove=H,document.ontouchend=G):(document.onmousemove=H,document.onmouseup=G)},scaleMultiElement:(p,R,h)=>{let v=!0;const{minX:M,maxX:g,minY:m,maxY:O}=R,S=g-M,P=O-m,b=S/P,N=p.pageX,x=p.pageY,T=JSON.parse(JSON.stringify(e.value));document.onmousemove=y=>{if(!v)return;const Y=y.pageX,U=y.pageY,W=(Y-N)/n.value;let C=(U-x)/n.value;i.value&&((h===Ie.RIGHT_BOTTOM||h===Ie.LEFT_TOP)&&(C=W/b),(h===Ie.LEFT_BOTTOM||h===Ie.RIGHT_TOP)&&(C=-W/b));let F=M,J=g,w=m,q=O;h===Ie.RIGHT_BOTTOM?(J=g+W,q=O+C):h===Ie.LEFT_BOTTOM?(F=M+W,q=O+C):h===Ie.LEFT_TOP?(F=M+W,w=m+C):h===Ie.RIGHT_TOP?(J=g+W,w=m+C):h===Ie.TOP?w=m+C:h===Ie.BOTTOM?q=O+C:h===Ie.LEFT?F=M+W:h===Ie.RIGHT&&(J=g+W);const se=J-F,H=q-w;let G=se/S,Q=H/P;G<=0&&(G=0),Q<=0&&(Q=0),e.value=e.value.map(E=>{if((E.type==="image"||E.type==="shape")&&a.value.includes(E.id)){const le=T.find(B=>B.id===E.id);return{...E,width:le.width*G,height:le.height*Q,left:F+(le.left-M)*G,top:w+(le.top-m)*Q}}return E})},document.onmouseup=y=>{v=!1,document.onmousemove=null,document.onmouseup=null,!(N===y.pageX&&x===y.pageY)&&(l.updateSlide({elements:e.value}),u())}}}},LM=(e,t)=>{const n=Le(),{activeElementIdList:o,activeGroupElementId:l,handleElementId:a,editorAreaFocus:s}=de(n),{ctrlOrShiftKeyActive:r}=de(kn());return{selectElement:(i,u,d=!0)=>{if(s.value||n.setEditorareaFocus(!0),o.value.includes(u.id)){if(r.value){let f=[];if(u.groupId){const p=[];e.value.forEach(R=>{R.groupId===u.groupId&&p.push(R.id)}),f=o.value.filter(R=>!p.includes(R))}else f=o.value.filter(p=>p!==u.id);f.length>0&&n.setActiveElementIdList(f)}else if(a.value!==u.id)n.setHandleElementId(u.id);else if(l.value!==u.id){const f=i instanceof MouseEvent?i.pageX:i.changedTouches[0].pageX,p=i instanceof MouseEvent?i.pageY:i.changedTouches[0].pageY;i.target.onmouseup=R=>{const h=R.pageX,v=R.pageY;f===h&&p===v&&(n.setActiveGroupElementId(u.id),R.target.onmouseup=null)}}}else{let f=[];if(r.value?f=[...o.value,u.id]:f=[u.id],u.groupId){const p=[];e.value.forEach(R=>{R.groupId===u.groupId&&p.push(R.id)}),f=[...f,...p]}n.setActiveElementIdList(Et.uniq(f)),n.setHandleElementId(u.id)}d&&t(i,u)}}},bM=(e,t,n)=>{const o=Qe(),{activeElementIdList:l,activeGroupElementId:a}=de(Le()),{shiftKeyState:s}=de(kn()),{viewportRatio:r,viewportSize:c}=de(o),{addHistorySnapshot:i}=_e();return{dragElement:(d,f)=>{const p=!(d instanceof MouseEvent);if(p&&(!d.changedTouches||!d.changedTouches[0])||!l.value.includes(f.id))return;let R=!0;e.value.map(Q=>{l.value.includes(Q.id)&&Q.type==="elf"&&Q.subtype==="elf-sing-play"&&(Q.isMove=!0)});const h=c.value,v=c.value*r.value,M=5,m=JSON.parse(JSON.stringify(e.value)).filter(Q=>l.value.includes(Q.id)),O=f.left,S=f.top,P=f.width,b="height"in f&&f.height?f.height:0,N="rotate"in f&&f.rotate?f.rotate:0,x=p?d.changedTouches[0].pageX:d.pageX,T=p?d.changedTouches[0].pageY:d.pageY;let y=null;const Y=f.id===a.value;let U=[],W=[];for(const Q of e.value){if(Q.type==="line"||Y&&Q.id===f.id||!Y&&l.value.includes(Q.id))continue;let E,le,B,D;if("rotate"in Q&&Q.rotate){const{xRange:Ue,yRange:Oe}=za({left:Q.left,top:Q.top,width:Q.width,height:Q.height,rotate:Q.rotate});E=Ue[0],le=Oe[0],B=Ue[1]-Ue[0],D=Oe[1]-Oe[0]}else E=Q.left,le=Q.top,B=Q.width,D=Q.height;const z=E+B,he=le+D,k=le+D/2,j=E+B/2,K={value:le,range:[E,z]},$={value:he,range:[E,z]},ae={value:k,range:[E,z]},fe={value:E,range:[le,he]},Ne={value:z,range:[le,he]},Fe={value:j,range:[le,he]};U.push(K,$,ae),W.push(fe,Ne,Fe)}const C={value:0,range:[0,h]},F={value:v,range:[0,h]},J={value:v/2,range:[0,h]},w={value:0,range:[0,v]},q={value:h,range:[0,v]},se={value:h/2,range:[0,v]};U.push(C,F,J),W.push(w,q,se),U=la(U),W=la(W);const H=Q=>{const E=Q instanceof MouseEvent?Q.pageX:Q.changedTouches[0].pageX,le=Q instanceof MouseEvent?Q.pageY:Q.changedTouches[0].pageY;if(y!==!1&&(y=Math.abs(x-E)Math.abs(D)&&(D=0),Math.abs(B)Oe.id===f.id?{...Oe,left:z,top:he}:Oe);else{const Oe=e.value.find(Se=>Se.id===f.id);if(!Oe)return;e.value=e.value.map(Se=>l.value.includes(Se.id)?Se.id===f.id?{...Se,left:z,top:he}:{...Se,left:Se.left+(z-Oe.left),top:Se.top+(he-Oe.top)}:Se)}},G=Q=>{R=!1,e.value.map(B=>{l.value.includes(B.id)&&B.type==="elf"&&B.subtype==="elf-sing-play"&&(B.isMove=!1)}),document.ontouchmove=null,document.ontouchend=null,document.onmousemove=null,document.onmouseup=null,t.value=[];const E=Q instanceof MouseEvent?Q.pageX:Q.changedTouches[0].pageX,le=Q instanceof MouseEvent?Q.pageY:Q.changedTouches[0].pageY;x===E&&T===le||(o.updateSlide({elements:e.value}),i())};p?(document.ontouchmove=H,document.ontouchend=G):(document.onmousemove=H,document.onmouseup=G)}}},VM=e=>{const t=Qe(),{canvasScale:n}=de(Le()),{ctrlOrShiftKeyActive:o}=de(kn()),{addHistorySnapshot:l}=_e();return{dragLineElement:(s,r,c)=>{let i=!0;const u=8,d=s.pageX,f=s.pageY,p=[];for(let R=0;R{if(!i)return;const h=R.pageX,v=R.pageY,M=(h-d)/n.value,g=(v-f)/n.value;let m=r.left+r.start[0],O=r.top+r.start[1],S=r.left+r.end[0],P=r.top+r.end[1];const b=r.broken||r.broken2||r.curve||[0,0];let N=r.left+b[0],x=r.top+b[1];const[T,y]=r.cubic||[[0,0],[0,0]];let Y=r.left+T[0],U=r.top+T[1],W=r.left+y[0],C=r.top+y[1];if(c===Pn.START){m=m+M,O=O+g,Math.abs(m-S)S&&(se[0]=w-F,H[0]=0),O>P&&(se[1]=q-J,H[1]=0),e.value=e.value.map(G=>{if(G.id===r.id){const Q={...G,left:F,top:J,start:se,end:H};return c===Pn.START||c===Pn.END?(o.value?(r.broken&&(Q.broken=[N-F,x-J]),r.curve&&(Q.curve=[N-F,x-J]),r.cubic&&(Q.cubic=[[Y-F,U-J],[W-F,C-J]])):(r.broken&&(Q.broken=[(se[0]+H[0])/2,(se[1]+H[1])/2]),r.curve&&(Q.curve=[(se[0]+H[0])/2,(se[1]+H[1])/2]),r.cubic&&(Q.cubic=[[(se[0]+H[0])/2,(se[1]+H[1])/2],[(se[0]+H[0])/2,(se[1]+H[1])/2]])),r.broken2&&(Q.broken2=[(se[0]+H[0])/2,(se[1]+H[1])/2])):c===Pn.C?(r.broken&&(Q.broken=[N-F,x-J]),r.curve&&(Q.curve=[N-F,x-J]),r.broken2&&(w-F>=q-J?Q.broken2=[N-F,Q.broken2[1]]:Q.broken2=[Q.broken2[0],x-J])):r.cubic&&(Q.cubic=[[Y-F,U-J],[W-F,C-J]]),Q}return G})},document.onmouseup=R=>{i=!1,document.onmousemove=null,document.onmouseup=null;const h=R.pageX,v=R.pageY;d===h&&f===v||(t.updateSlide({elements:e.value}),l())}}}},IM=(e,t)=>{const n=Qe(),{addHistorySnapshot:o}=_e();return{moveShapeKeypoint:(a,s,r=0)=>{const c=!(a instanceof MouseEvent);if(c&&(!a.changedTouches||!a.changedTouches[0]))return;let i=!0;const u=c?a.changedTouches[0].pageX:a.pageX,d=c?a.changedTouches[0].pageY:a.pageY,f=s.keypoints,p=Wl[s.pathFormula];let R=null;if("editable"in p&&p.editable){const M=p.getBaseSize[r],g=p.range[r],m=p.relative[r],O=f[r],S=M(s.width,s.height),P=S*O,[b,N]=g;R={baseSize:S,originPos:P,min:b,max:N,relative:m}}const h=M=>{if(!i)return;const g=M instanceof MouseEvent?M.pageX:M.changedTouches[0].pageX,m=M instanceof MouseEvent?M.pageY:M.changedTouches[0].pageY,O=(g-u)/t.value,S=(m-d)/t.value;e.value=e.value.map(P=>{if(P.id===s.id&&R){const{baseSize:b,originPos:N,min:x,max:T,relative:y}=R,Y=P;let U=0;y==="center"?U=(N-O*2)/b:y==="left"?U=(N+O)/b:y==="right"?U=(N-O)/b:y==="top"?U=(N+S)/b:y==="bottom"?U=(N-S)/b:y==="left_bottom"?U=(N+O)/b:y==="right_bottom"?U=(N-O)/b:y==="top_right"?U=(N+S)/b:y==="bottom_right"&&(U=(N-S)/b),UT&&(U=T);let W=[];return Array.isArray(f)?(W=[...f],W[r]=U):W=[U],{...P,keypoints:W,path:p.formula(Y.width,Y.height,W)}}return P})},v=M=>{i=!1,document.ontouchmove=null,document.ontouchend=null,document.onmousemove=null,document.onmouseup=null;const g=M instanceof MouseEvent?M.pageX:M.changedTouches[0].pageX,m=M instanceof MouseEvent?M.pageY:M.changedTouches[0].pageY;u===g&&d===m||(n.updateSlide({elements:e.value}),o())};c?(document.ontouchmove=h,document.ontouchend=v):(document.onmousemove=h,document.onmouseup=v)}}},FM=e=>{const t=Le(),{canvasScale:n,creatingElement:o}=de(t),l=u=>{const{start:d,end:f}=u;if(!e.value)return;const p=e.value.getBoundingClientRect(),[R,h]=d,[v,M]=f,g=Math.min(R,v),m=Math.max(R,v),O=Math.min(h,M),S=Math.max(h,M),P=(g-p.x)/n.value,b=(O-p.y)/n.value,N=(m-g)/n.value,x=(S-O)/n.value;return{left:P,top:b,width:N,height:x}},a=u=>{const{start:d,end:f}=u;if(!e.value)return;const p=e.value.getBoundingClientRect(),[R,h]=d,[v,M]=f,g=Math.min(R,v),m=Math.max(R,v),O=Math.min(h,M),S=Math.max(h,M),P=(g-p.x)/n.value,b=(O-p.y)/n.value,N=(m-g)/n.value,x=(S-O)/n.value;return{left:P,top:b,start:[R===g?0:N,h===O?0:x],end:[v===g?0:N,M===O?0:x]}},{createTextElement:s,createShapeElement:r,createLineElement:c}=Al();return{formatCreateSelection:l,insertElementFromCreateSelection:u=>{if(!o.value)return;const d=o.value.type;if(d==="text"){const f=l(u);f&&s(f,{vertical:o.value.vertical})}else if(d==="shape"){const f=l(u);f&&r(f,o.value.data)}else if(d==="line"){const f=a(u);f&&c(f,o.value.data)}t.setCreatingElement(null)}}},m0=()=>{const e=Qe(),{activeElementIdList:t,activeElementList:n}=de(Le()),{currentSlide:o,viewportRatio:l,viewportSize:a}=de(e),{addHistorySnapshot:s}=_e();return{alignElementToCanvas:c=>{const i=a.value,u=a.value*l.value,{minX:d,maxX:f,minY:p,maxY:R}=fo(n.value),h=JSON.parse(JSON.stringify(o.value.elements));for(const v of h)if(t.value.includes(v.id)){if(c===ft.CENTER){const M=p+(R-p)/2-u/2,g=d+(f-d)/2-i/2;v.top=v.top-M,v.left=v.left-g}if(c===ft.TOP){const M=p-0;v.top=v.top-M}else if(c===ft.VERTICAL){const M=p+(R-p)/2-u/2;v.top=v.top-M}else if(c===ft.BOTTOM){const M=R-u;v.top=v.top-M}else if(c===ft.LEFT){const M=d-0;v.left=v.left-M}else if(c===ft.HORIZONTAL){const M=d+(f-d)/2-i/2;v.left=v.left-M}else if(c===ft.RIGHT){const M=f-i;v.left=v.left-M}}e.updateSlide({elements:h}),s()}}},Zf=e=>(at("data-v-f5a86b3f"),e=e(),st(),e),YM=["src"],UM=["src"],WM=["onMousedown"],AM=Zf(()=>X("svg",{width:"16",height:"16",fill:"#fff",stroke:"#333"},[X("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)),QM=[AM],ZM=["onMousedown"],KM=Zf(()=>X("svg",{width:"16",height:"16",fill:"#fff",stroke:"#333"},[X("path",{"stroke-width":"0.3","shape-rendering":"crispEdges",d:"M 16 0 L 0 0 L 0 4 L 16 4 Z"})],-1)),EM=[KM],CM=pe({__name:"ImageClipHandler",props:{src:{},clipPath:{},width:{},height:{},top:{},left:{},rotate:{},clipData:{}},emits:["clip"],setup(e,{emit:t}){const n=e,o=t,{canvasScale:l}=de(Le()),{ctrlOrShiftKeyActive:a}=de(kn()),s=_({top:"0",left:"0"}),r=_(!1),c=_(null),i=()=>{const[N,x]=n.clipData?n.clipData.range:[[0,0],[100,100]],T=(x[0]-N[0])/100,y=(x[1]-N[1])/100,Y=N[0]/T,U=N[1]/y;return{widthScale:T,heightScale:y,left:Y,top:U}},u=ee(()=>{const{widthScale:N,heightScale:x,left:T,top:y}=i();return{left:-T,top:-y,width:100/N,height:100/x}}),d=ee(()=>({top:u.value.top+"%",left:u.value.left+"%",width:u.value.width+"%",height:u.value.height+"%"})),f=_({top:0,left:0,width:0,height:0}),p=ee(()=>{const{top:N,left:x,width:T,height:y}=f.value;return{top:N+"%",left:x+"%",width:T+"%",height:y+"%"}}),R=ee(()=>{const N=u.value.width,x=u.value.height,{top:T,left:y,width:Y,height:U}=f.value;return{left:-y*(100/Y)+"%",top:-T*(100/U)+"%",width:N/Y*100+"%",height:x/U*100+"%"}}),h=()=>{const{left:N,top:x}=i();f.value={left:N,top:x,width:100,height:100},s.value={top:-x+"%",left:-N+"%"}},v=()=>{if(r.value)return;if(!c.value){o("clip",null);return}const{left:N,top:x}=i(),T={left:(f.value.left-N)/100*n.width,top:(f.value.top-x)/100*n.height,width:(f.value.width-100)/100*n.width,height:(f.value.height-100)/100*n.height},y={range:c.value,position:T};o("clip",y)},M=N=>{N.key.toUpperCase()===We.ENTER&&v()};pt(()=>{h(),document.addEventListener("keydown",M)}),Ct(()=>{document.removeEventListener("keydown",M)});const g=()=>{const N={left:parseInt(R.value.left),top:parseInt(R.value.top),width:parseInt(R.value.width),height:parseInt(R.value.height)},x=100/N.width,T=100/N.height,y=[-N.left*x,-N.top*T],Y=[x*100+y[0],T*100+y[1]];c.value=[y,Y]},m=N=>{r.value=!0;let x=!0;const T=N.pageX,y=N.pageY,Y=u.value,U={...f.value};document.onmousemove=W=>{if(!x)return;const C=W.pageX,F=W.pageY,J=(C-T)/l.value,w=(F-y)/l.value,q=Math.sqrt(J*J+w*w),H=Math.atan2(w,J)-n.rotate/180*Math.PI,G=q*Math.cos(H)/n.width*100,Q=q*Math.sin(H)/n.height*100;let E=U.left+G,le=U.top+Q;E<0?E=0:E+U.width>Y.width&&(E=Y.width-U.width),le<0?le=0:le+U.height>Y.height&&(le=Y.height-U.height),f.value={...f.value,left:E,top:le}},document.onmouseup=()=>{x=!1,document.onmousemove=null,document.onmouseup=null,g(),setTimeout(()=>{r.value=!1},0)}},O=(N,x)=>{r.value=!0;let T=!0;const y=50/n.width*100,Y=50/n.height*100,U=N.pageX,W=N.pageY,C=u.value,F={...f.value},J=f.value.width/f.value.height;document.onmousemove=w=>{if(!T)return;const q=w.pageX,se=w.pageY,H=(q-U)/l.value,G=(se-W)/l.value,Q=Math.sqrt(H*H+G*G),le=Math.atan2(G,H)-n.rotate/180*Math.PI;let B=Q*Math.cos(le)/n.width*100,D=Q*Math.sin(le)/n.height*100;a.value&&((x===Ie.RIGHT_BOTTOM||x===Ie.LEFT_TOP)&&(D=B/J),(x===Ie.LEFT_BOTTOM||x===Ie.RIGHT_TOP)&&(D=-B/J));let z,he,k,j;x===Ie.LEFT_TOP?(F.left+B<0&&(B=-F.left),F.top+D<0&&(D=-F.top),F.width-BC.width&&(B=C.width-(F.left+F.width)),F.top+D<0&&(D=-F.top),F.width+BC.height&&(D=C.height-(F.top+F.height)),F.width-BC.width&&(B=C.width-(F.left+F.width)),F.top+F.height+D>C.height&&(D=C.height-(F.top+F.height)),F.width+BC.height&&(D=C.height-(F.top+F.height)),F.height+DC.width&&(B=C.width-(F.left+F.width)),F.width+B{T=!1,document.onmousemove=null,document.onmouseup=null,g(),setTimeout(()=>r.value=!1,0)}},S=ee(()=>{const N="rotate-",x=n.rotate;return x>-22.5&&x<=22.5?N+0:x>22.5&&x<=67.5?N+45:x>67.5&&x<=112.5?N+90:x>112.5&&x<=157.5?N+135:x>157.5||x<=-157.5?N+0:x>-157.5&&x<=-112.5?N+45:x>-112.5&&x<=-67.5?N+90:x>-67.5&&x<=-22.5?N+135:N+0}),P=[Ie.LEFT_TOP,Ie.RIGHT_TOP,Ie.LEFT_BOTTOM,Ie.RIGHT_BOTTOM],b=[Ie.TOP,Ie.BOTTOM,Ie.LEFT,Ie.RIGHT];return(N,x)=>{const T=Mt("click-outside");return xe((V(),A("div",{class:"image-clip-handler",style:ue(s.value)},[X("img",{class:"bottom-img",src:N.src,draggable:!1,alt:"",style:ue(d.value)},null,12,YM),X("div",{class:"top-image-content",style:ue({...p.value,clipPath:N.clipPath})},[X("img",{class:"top-img",src:N.src,draggable:!1,alt:"",style:ue(R.value)},null,12,UM)],4),X("div",{class:"operate",style:ue(p.value),onMousedown:x[0]||(x[0]=He(y=>m(y),["stop"]))},[(V(),A(me,null,ye(P,y=>X("div",{class:re(["clip-point",y,S.value]),key:y,onMousedown:He(Y=>O(Y,y),["stop"])},QM,42,WM)),64)),(V(),A(me,null,ye(b,y=>X("div",{class:re(["clip-point",y,S.value]),key:y,onMousedown:He(Y=>O(Y,y),["stop"])},EM,42,ZM)),64))],36)],4)),[[T,v]])}}}),HM=Me(CM,[["__scopeId","data-v-f5a86b3f"]]),GM=["src"],wM=pe({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=Le(),o=Qe(),{clipingImageElementId:l}=de(n),a=ee(()=>l.value===t.elementInfo.id),{addHistorySnapshot:s}=_e(),r=ee(()=>t.elementInfo.shadow),{shadowStyle:c}=Xa(r),i=ee(()=>t.elementInfo.flipH),u=ee(()=>t.elementInfo.flipV),{flipStyle:d}=Gd(i,u),f=ee(()=>t.elementInfo),{clipShape:p,imgPosition:R}=mh(f),h=ee(()=>t.elementInfo.filters),{filter:v}=gh(h),M=m=>{t.elementInfo.lock||(m.stopPropagation(),t.selectElement(m,t.elementInfo))},g=m=>{if(n.setClipingImageElementId(""),!m)return;const{range:O,position:S}=m,P=t.elementInfo.clip||{shape:"rect",range:[[0,0],[100,100]]},b=t.elementInfo.left+S.left,N=t.elementInfo.top+S.top,x=t.elementInfo.width+S.width,T=t.elementInfo.height+S.height;let y=0,Y=0;if(t.elementInfo.rotate){const W=b+x/2-(t.elementInfo.left+t.elementInfo.width/2),C=-(N+T/2-(t.elementInfo.top+t.elementInfo.height/2)),F=-t.elementInfo.rotate*Math.PI/180,J=W*Math.cos(F)-C*Math.sin(F),w=W*Math.sin(F)+C*Math.cos(F);y=J-W,Y=-(w-C)}const U={clip:{...P,range:O},left:b+y,top:N+Y,width:x,height:T};o.updateElement({id:t.elementInfo.id,props:U}),s()};return(m,O)=>{const S=Mt("contextmenu");return V(),A("div",{class:re(["editable-element-image",{lock:m.elementInfo.lock}]),style:ue({top:m.elementInfo.top+"px",left:m.elementInfo.left+"px",width:m.elementInfo.width+"px",height:m.elementInfo.height+"px"})},[X("div",{class:"rotate-wrapper",style:ue({transform:`rotate(${m.elementInfo.rotate}deg)`})},[a.value?(V(),te(HM,{key:0,src:m.elementInfo.src,clipData:m.elementInfo.clip,width:m.elementInfo.width,height:m.elementInfo.height,top:m.elementInfo.top,left:m.elementInfo.left,rotate:m.elementInfo.rotate,clipPath:I(p).style,onClip:O[0]||(O[0]=P=>g(P))},null,8,["src","clipData","width","height","top","left","rotate","clipPath"])):xe((V(),A("div",{key:1,class:"element-content",style:ue({filter:I(c)?`drop-shadow(${I(c)})`:"",transform:I(d)}),onMousedown:O[2]||(O[2]=P=>M(P)),onTouchstart:O[3]||(O[3]=P=>M(P))},[L(Sh,{elementInfo:m.elementInfo},null,8,["elementInfo"]),X("div",{class:"image-content",style:ue({clipPath:I(p).style})},[X("img",{src:m.elementInfo.src,draggable:!1,style:ue({top:I(R).top,left:I(R).left,width:I(R).width,height:I(R).height,filter:I(v)}),onDragstart:O[1]||(O[1]=He(()=>{},["prevent"])),alt:""},null,44,GM),m.elementInfo.colorMask?(V(),A("div",{key:0,class:"color-mask",style:ue({backgroundColor:m.elementInfo.colorMask})},null,4)):Re("",!0)],4)],36)),[[S,m.contextmenus]])],4)],6)}}}),JM=Me(wM,[["__scopeId","data-v-fa7e0876"]]),nn=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},cs=function(e){let t=e.assignedSlot||e.parentNode;return t&&t.nodeType==11?t.host:t};let Oi=null;const co=function(e,t,n){let o=Oi||(Oi=document.createRange());return o.setEnd(e,n??e.nodeValue.length),o.setStart(e,t||0),o},DM=function(){Oi=null},ol=function(e,t,n,o){return n&&(Pu(e,t,n,o,-1)||Pu(e,t,n,o,1))},kM=/^(img|br|input|textarea|hr)$/i;function Pu(e,t,n,o,l){for(;;){if(e==n&&t==o)return!0;if(t==(l<0?0:qn(e))){let a=e.parentNode;if(!a||a.nodeType!=1||Os(e)||kM.test(e.nodeName)||e.contentEditable=="false")return!1;t=nn(e)+(l<0?0:1),e=a}else if(e.nodeType==1){if(e=e.childNodes[t+(l<0?-1:0)],e.contentEditable=="false")return!1;t=l<0?qn(e):0}else return!1}}function qn(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function BM(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=qn(e)}else if(e.parentNode&&!Os(e))t=nn(e),e=e.parentNode;else return null}}function _M(e,t){for(;;){if(e.nodeType==3&&t2),Wn=yl||(lo?/Mac/.test(lo.platform):!1),qM=lo?/Win/.test(lo.platform):!1,Gn=/Android \d/.test(Go),xs=!!Nu&&"webkitFontSmoothing"in Nu.documentElement.style,e5=xs?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function t5(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 io(e,t){return typeof e=="number"?e:e[t]}function n5(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 Tu(e,t,n){let o=e.someProp("scrollThreshold")||0,l=e.someProp("scrollMargin")||5,a=e.dom.ownerDocument;for(let s=n||e.dom;s;s=cs(s)){if(s.nodeType!=1)continue;let r=s,c=r==a.body,i=c?t5(a):n5(r),u=0,d=0;if(t.topi.bottom-io(o,"bottom")&&(d=t.bottom-t.top>i.bottom-i.top?t.top+io(l,"top")-i.top:t.bottom-i.bottom+io(l,"bottom")),t.lefti.right-io(o,"right")&&(u=t.right-i.right+io(l,"right")),u||d)if(c)a.defaultView.scrollBy(u,d);else{let f=r.scrollLeft,p=r.scrollTop;d&&(r.scrollTop+=d),u&&(r.scrollLeft+=u);let R=r.scrollLeft-f,h=r.scrollTop-p;t={left:t.left-R,top:t.top-h,right:t.right-R,bottom:t.bottom-h}}if(c||/^(fixed|sticky)$/.test(getComputedStyle(s).position))break}}function o5(e){let t=e.dom.getBoundingClientRect(),n=Math.max(0,t.top),o,l;for(let a=(t.left+t.right)/2,s=n+1;s=n-20){o=r,l=c.top;break}}return{refDOM:o,refTop:l,stack:Cf(e.dom)}}function Cf(e){let t=[],n=e.ownerDocument;for(let o=e;o&&(t.push({dom:o,top:o.scrollTop,left:o.scrollLeft}),e!=n);o=cs(o));return t}function l5({refDOM:e,refTop:t,stack:n}){let o=e?e.getBoundingClientRect().top:0;Hf(n,o==0?0:o-t)}function Hf(e,t){for(let n=0;n=r){s=Math.max(R.bottom,s),r=Math.min(R.top,r);let h=R.left>t.left?R.left-t.left:R.right=(R.left+R.right)/2?1:0));continue}}else R.top>t.top&&!c&&R.left<=t.left&&R.right>=t.left&&(c=u,i={left:Math.max(R.left,Math.min(R.right,t.left)),top:R.top});!n&&(t.left>=R.right&&t.top>=R.top||t.left>=R.left&&t.top>=R.bottom)&&(a=d+1)}}return!n&&c&&(n=c,l=i,o=0),n&&n.nodeType==3?a5(n,l):!n||o&&n.nodeType==1?{node:e,offset:a}:Gf(n,l)}function a5(e,t){let n=e.nodeValue.length,o=document.createRange();for(let l=0;l=(a.left+a.right)/2?1:0)}}return{node:e,offset:0}}function g0(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function r5(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left(s.left+s.right)/2?1:-1}return e.docView.posFromDOM(o,l,a)}function c5(e,t,n,o){let l=-1;for(let a=t,s=!1;a!=e.dom;){let r=e.docView.nearestDesc(a,!0);if(!r)return null;if(r.dom.nodeType==1&&(r.node.isBlock&&r.parent||!r.contentDOM)){let c=r.dom.getBoundingClientRect();if(r.node.isBlock&&r.parent&&(!s&&c.left>o.left||c.top>o.top?l=r.posBefore:(!s&&c.right-1?l:e.docView.posFromDOM(t,n,-1)}function wf(e,t,n){let o=e.childNodes.length;if(o&&n.topt.top&&l++}let i;xs&&l&&o.nodeType==1&&(i=o.childNodes[l-1]).nodeType==1&&i.contentEditable=="false"&&i.getBoundingClientRect().top>=t.top&&l--,o==e.dom&&l==o.childNodes.length-1&&o.lastChild.nodeType==1&&t.top>o.lastChild.getBoundingClientRect().bottom?r=e.state.doc.content.size:(l==0||o.nodeType!=1||o.childNodes[l-1].nodeName!="BR")&&(r=c5(e,o,l,t))}r==null&&(r=i5(e,s,t));let c=e.docView.nearestDesc(s,!0);return{pos:r,inside:c?c.posAtStart-c.border:-1}}function Xu(e){return e.top=0&&l==o.nodeValue.length?(c--,u=1):n<0?c--:i++,El(Po(co(o,c,i),u),u<0)}if(!e.state.doc.resolve(t-(a||0)).parent.inlineContent){if(a==null&&l&&(n<0||l==qn(o))){let c=o.childNodes[l-1];if(c.nodeType==1)return Zr(c.getBoundingClientRect(),!1)}if(a==null&&l=0)}if(a==null&&l&&(n<0||l==qn(o))){let c=o.childNodes[l-1],i=c.nodeType==3?co(c,qn(c)-(s?0:1)):c.nodeType==1&&(c.nodeName!="BR"||!c.nextSibling)?c:null;if(i)return El(Po(i,1),!1)}if(a==null&&l=0)}function El(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 Zr(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 Df(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 f5(e,t,n){let o=t.selection,l=n=="up"?o.$from:o.$to;return Df(e,t,()=>{let{node:a}=e.docView.domFromPos(l.pos,n=="up"?-1:1);for(;;){let r=e.docView.nearestDesc(a,!0);if(!r)break;if(r.node.isBlock){a=r.contentDOM||r.dom;break}a=r.dom.parentNode}let s=Jf(e,l.pos,1);for(let r=a.firstChild;r;r=r.nextSibling){let c;if(r.nodeType==1)c=r.getClientRects();else if(r.nodeType==3)c=co(r,0,r.nodeValue.length).getClientRects();else continue;for(let i=0;iu.top+1&&(n=="up"?s.top-u.top>(u.bottom-s.top)*2:u.bottom-s.bottom>(s.bottom-u.top)*2))return!1}}return!0})}const R5=/[\u0590-\u08ac]/;function p5(e,t,n){let{$head:o}=t.selection;if(!o.parent.isTextblock)return!1;let l=o.parentOffset,a=!l,s=l==o.parent.content.size,r=e.domSelection();return!R5.test(o.parent.textContent)||!r.modify?n=="left"||n=="backward"?a:s:Df(e,t,()=>{let{focusNode:c,focusOffset:i,anchorNode:u,anchorOffset:d}=e.domSelectionRange(),f=r.caretBidiLevel;r.modify("move",n,"character");let p=o.depth?e.docView.domAfterPos(o.before()):e.dom,{focusNode:R,focusOffset:h}=e.domSelectionRange(),v=R&&!p.contains(R.nodeType==1?R:R.parentNode)||c==R&&i==h;try{r.collapse(u,d),c&&(c!=u||i!=d)&&r.extend&&r.extend(c,i)}catch{}return f!=null&&(r.caretBidiLevel=f),v})}let yu=null,Lu=null,bu=!1;function h5(e,t,n){return yu==t&&Lu==n?bu:(yu=t,Lu=n,bu=n=="up"||n=="down"?f5(e,t,n):p5(e,t,n))}const An=0,Vu=1,$o=2,so=3;class Ps{constructor(t,n,o,l){this.parent=t,this.children=n,this.dom=o,this.contentDOM=l,this.dirty=An,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;nnn(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 a=t;;a=a.parentNode){if(a==this.dom){l=!1;break}if(a.previousSibling)break}if(l==null&&n==t.childNodes.length)for(let a=t;;a=a.parentNode){if(a==this.dom){l=!0;break}if(a.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 a=this.getDesc(l),s;if(a&&(!n||a.node))if(o&&(s=a.nodeDOM)&&!(s.nodeType==1?s.contains(t.nodeType==1?t:t.parentNode):s==t))o=!1;else return a}}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 a=this.getDesc(l);if(a)return a.localPosFromDOM(t,n,o)}return-1}descAt(t){for(let n=0,o=0;nt||s instanceof Bf){l=t-a;break}a=r}if(l)return this.children[o].domFromPos(l-this.children[o].border,n);for(let a;o&&!(a=this.children[o-1]).size&&a instanceof kf&&a.side>=0;o--);if(n<=0){let a,s=!0;for(;a=o?this.children[o-1]:null,!(!a||a.dom.parentNode==this.contentDOM);o--,s=!1);return a&&n&&s&&!a.border&&!a.domAtom?a.domFromPos(a.size,n):{node:this.contentDOM,offset:a?nn(a.dom)+1:0}}else{let a,s=!0;for(;a=o=u&&n<=i-c.border&&c.node&&c.contentDOM&&this.contentDOM.contains(c.contentDOM))return c.parseRange(t,n,u);t=s;for(let d=r;d>0;d--){let f=this.children[d-1];if(f.size&&f.dom.parentNode==this.contentDOM&&!f.emptyChildAt(1)){l=nn(f.dom)+1;break}t-=f.size}l==-1&&(l=0)}if(l>-1&&(i>n||r==this.children.length-1)){n=i;for(let u=r+1;up&&sn){let p=r;r=c,c=p}let f=document.createRange();f.setEnd(c.node,c.offset),f.setStart(r.node,r.offset),i.removeAllRanges(),i.addRange(f)}}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=o:to){let r=o+a.border,c=s-a.border;if(t>=r&&n<=c){this.dirty=t==o||n==s?$o:Vu,t==r&&n==c&&(a.contentLost||a.dom.parentNode!=this.contentDOM)?a.dirty=so:a.markDirty(t-r,n-r);return}else a.dirty=a.dom==a.contentDOM&&a.dom.parentNode==this.contentDOM&&!a.children.length?$o:so}o=s}this.dirty=$o}markParentsDirty(){let t=1;for(let n=this.parent;n;n=n.parent,t++){let o=t==1?$o:Vu;n.dirty{if(!a)return l;if(a.parent)return a.parent.posBeforeChild(a)})),!n.type.spec.raw){if(s.nodeType!=1){let r=document.createElement("span");r.appendChild(s),s=r}s.contentEditable="false",s.classList.add("ProseMirror-widget")}super(t,[],s,null),this.widget=n,this.widget=n,a=this}matchesWidget(t){return this.dirty==An&&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 v5 extends Ps{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 ll extends Ps{constructor(t,n,o,l){super(t,[],o,l),this.mark=n}static create(t,n,o,l){let a=l.nodeViews[n.type.name],s=a&&a(n,l,o);return(!s||!s.dom)&&(s=Pa.renderSpec(document,n.type.spec.toDOM(n,o),null,n.attrs)),new ll(t,n,s.dom,s.contentDOM||s.dom)}parseRule(){return this.dirty&so||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(t){return this.dirty!=so&&this.mark.eq(t)}markDirty(t,n){if(super.markDirty(t,n),this.dirty!=An){let o=this.parent;for(;!o.node;)o=o.parent;o.dirty0&&(a=yi(a,0,t,o));for(let r=0;r{if(!c)return s;if(c.parent)return c.parent.posBeforeChild(c)},o,l),u=i&&i.dom,d=i&&i.contentDOM;if(n.isText){if(!u)u=document.createTextNode(n.text);else if(u.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else u||({dom:u,contentDOM:d}=Pa.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!d&&!n.isText&&u.nodeName!="BR"&&(u.hasAttribute("contenteditable")||(u.contentEditable="false"),n.type.spec.draggable&&(u.draggable=!0));let f=u;return u=zf(u,o,n),i?c=new m5(t,n,o,l,u,d||null,f,i,a,s+1):n.isText?new Aa(t,n,o,l,u,f,a):new Uo(t,n,o,l,u,d||null,f,a,s+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==An&&t.eq(this.node)&&Xi(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,a=t.composing?this.localCompositionInfo(t,n):null,s=a&&a.pos>-1?a:null,r=a&&a.pos<0,c=new S5(this,s&&s.node,t);x5(this.node,this.innerDeco,(i,u,d)=>{i.spec.marks?c.syncToMarks(i.spec.marks,o,t):i.type.side>=0&&!d&&c.syncToMarks(u==this.node.childCount?K2.none:this.node.child(u).marks,o,t),c.placeWidget(i,t,l)},(i,u,d,f)=>{c.syncToMarks(i.marks,o,t);let p;c.findNodeMatch(i,u,d,f)||r&&t.state.selection.from>l&&t.state.selection.to-1&&c.updateNodeAt(i,u,d,p,t)||c.updateNextNode(i,u,d,t,f,l)||c.addNode(i,u,d,t,l),l+=i.nodeSize}),c.syncToMarks([],o,t),this.node.isTextblock&&c.addTextblockHacks(),c.destroyRest(),(c.changed||this.dirty==$o)&&(s&&this.protectLocalComposition(t,s),_f(this.contentDOM,this.children,t),yl&&P5(this.dom))}localCompositionInfo(t,n){let{from:o,to:l}=t.state.selection;if(!(t.state.selection instanceof ln)||on+this.node.content.size)return null;let a=t.input.compositionNode;if(!a||!this.dom.contains(a.parentNode))return null;if(this.node.inlineContent){let s=a.nodeValue,r=N5(this.node.content,s,o-n,l-n);return r<0?null:{node:a,pos:r,text:s}}else return{node:a,pos:-1,text:""}}protectLocalComposition(t,{node:n,pos:o,text:l}){if(this.getDesc(n))return;let a=n;for(;a.parentNode!=this.contentDOM;a=a.parentNode){for(;a.previousSibling;)a.parentNode.removeChild(a.previousSibling);for(;a.nextSibling;)a.parentNode.removeChild(a.nextSibling);a.pmViewDesc&&(a.pmViewDesc=void 0)}let s=new v5(this,a,n,l);t.input.compositionNodes.push(s),this.children=yi(this.children,o,o+l.length,t,s)}update(t,n,o,l){return this.dirty==so||!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=An}updateOuterDeco(t){if(Xi(t,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,o=this.dom;this.dom=$f(this.dom,this.nodeDOM,Ti(this.outerDeco,this.node,n),Ti(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 Iu(e,t,n,o,l){zf(o,t,e);let a=new Uo(void 0,e,t,n,o,o,o,l,0);return a.contentDOM&&a.updateChildren(l,0),a}class Aa extends Uo{constructor(t,n,o,l,a,s,r){super(t,n,o,l,a,null,s,r,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==so||this.dirty!=An&&!this.inParent()||!t.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=An||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=An,!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),a=document.createTextNode(l.text);return new Aa(this.parent,l,this.outerDeco,this.innerDeco,a,a,o)}markDirty(t,n){super.markDirty(t,n),this.dom!=this.nodeDOM&&(t==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=so)}get domAtom(){return!1}isText(t){return this.node.text==t}}class Bf extends Ps{parseRule(){return{ignore:!0}}matchesHack(t){return this.dirty==An&&this.dom.nodeName==t}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class m5 extends Uo{constructor(t,n,o,l,a,s,r,c,i,u){super(t,n,o,l,a,s,r,i,u),this.spec=c}update(t,n,o,l){if(this.dirty==so)return!1;if(this.spec.update){let a=this.spec.update(t,n,o);return a&&this.updateInner(t,n,o,l),a}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 _f(e,t,n){let o=e.firstChild,l=!1;for(let a=0;a>1,s=Math.min(a,t.length);for(;l-1)r>this.index&&(this.changed=!0,this.destroyBetween(this.index,r)),this.top=this.top.children[this.index];else{let c=ll.create(this.top,t[a],n,o);this.top.children.splice(this.index,0,c),this.top=c,this.changed=!0}this.index=0,a++}}findNodeMatch(t,n,o,l){let a=-1,s;if(l>=this.preMatch.index&&(s=this.preMatch.matches[l-this.preMatch.index]).parent==this.top&&s.matchesNode(t,n,o))a=this.top.children.indexOf(s,this.index);else for(let r=this.index,c=Math.min(this.top.children.length,r+5);r0;){let r;for(;;)if(o){let i=n.children[o-1];if(i instanceof ll)n=i,o=i.children.length;else{r=i,o--;break}}else{if(n==t)break e;o=n.parent.children.indexOf(n),n=n.parent}let c=r.node;if(c){if(c!=e.child(l-1))break;--l,a.set(r,l),s.push(r)}}return{index:l,matched:a,matches:s.reverse()}}function O5(e,t){return e.type.side-t.type.side}function x5(e,t,n,o){let l=t.locals(e),a=0;if(l.length==0){for(let i=0;ia;)r.push(l[s++]);let R=a+f.nodeSize;if(f.isText){let v=R;s!v.inline):r.slice();o(f,h,t.forChild(a,f),p),a=R}}function P5(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 N5(e,t,n,o){for(let l=0,a=0;l=n){if(a>=o&&c.slice(o-t.length-r,o-r)==t)return o-t.length;let i=r=0&&i+t.length+r>=n)return r+i;if(n==o&&c.length>=o+t.length-r&&c.slice(o-r,o-r+t.length)==t)return o}}return-1}function yi(e,t,n,o,l){let a=[];for(let s=0,r=0;s=n||u<=t?a.push(c):(in&&a.push(c.slice(n-i,c.size,o)))}return a}function S0(e,t=null){let n=e.domSelectionRange(),o=e.state.doc;if(!n.focusNode)return null;let l=e.docView.nearestDesc(n.focusNode),a=l&&l.size==0,s=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(s<0)return null;let r=o.resolve(s),c,i;if(Wa(n)){for(c=r;l&&!l.node;)l=l.parent;let u=l.node;if(l&&u.isAtom&&Lt.isSelectable(u)&&l.parent&&!(u.isInline&&$M(n.focusNode,n.focusOffset,l.dom))){let d=l.posBefore;i=new Lt(s==d?r:o.resolve(d))}}else{let u=e.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(u<0)return null;c=o.resolve(u)}if(!i){let u=t=="pointer"||e.state.selection.head{(n.anchorNode!=o||n.anchorOffset!=l)&&(t.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout(()=>{(!jf(e)||e.state.selection.visible)&&e.dom.classList.remove("ProseMirror-hideselection")},20))})}function X5(e){let t=e.domSelection(),n=document.createRange(),o=e.cursorWrapper.dom,l=o.nodeName=="IMG";l?n.setEnd(o.parentNode,nn(o)+1):n.setEnd(o,0),n.collapse(!1),t.removeAllRanges(),t.addRange(n),!l&&!e.state.selection.visible&&Xn&&Yo<=11&&(o.disabled=!0,o.disabled=!1)}function qf(e,t){if(t instanceof Lt){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(Au(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else Au(e)}function Au(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function M0(e,t,n,o){return e.someProp("createSelectionBetween",l=>l(e,t,n))||ln.between(t,n,o)}function Qu(e){return e.editable&&!e.hasFocus()?!1:e1(e)}function e1(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 y5(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return ol(t.node,t.offset,n.anchorNode,n.anchorOffset)}function Li(e,t){let{$anchor:n,$head:o}=e.selection,l=t>0?n.max(o):n.min(o),a=l.parent.inlineContent?l.depth?e.doc.resolve(t>0?l.after():l.before()):null:l;return a&&Jn.findFrom(a,t)}function No(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function Zu(e,t,n){let o=e.state.selection;if(o instanceof ln)if(n.indexOf("s")>-1){let{$head:l}=o,a=l.textOffset?null:t<0?l.nodeBefore:l.nodeAfter;if(!a||a.isText||!a.isLeaf)return!1;let s=e.state.doc.resolve(l.pos+a.nodeSize*(t<0?-1:1));return No(e,new ln(o.$anchor,s))}else if(o.empty){if(e.endOfTextblock(t>0?"forward":"backward")){let l=Li(e.state,t);return l&&l instanceof Lt?No(e,l):!1}else if(!(Wn&&n.indexOf("m")>-1)){let l=o.$head,a=l.textOffset?null:t<0?l.nodeBefore:l.nodeAfter,s;if(!a||a.isText)return!1;let r=t<0?l.pos-a.nodeSize:l.pos;return a.isAtom||(s=e.docView.descAt(r))&&!s.contentDOM?Lt.isSelectable(a)?No(e,new Lt(t<0?e.state.doc.resolve(l.pos-a.nodeSize):l)):xs?No(e,new ln(e.state.doc.resolve(t<0?r:r+a.nodeSize))):!1:!1}}else return!1;else{if(o instanceof Lt&&o.node.isInline)return No(e,new ln(t>0?o.$to:o.$from));{let l=Li(e.state,t);return l?No(e,l):!1}}}function ca(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function ql(e,t){let n=e.pmViewDesc;return n&&n.size==0&&(t<0||e.nextSibling||e.nodeName!="BR")}function fl(e,t){return t<0?L5(e):b5(e)}function L5(e){let t=e.domSelectionRange(),n=t.focusNode,o=t.focusOffset;if(!n)return;let l,a,s=!1;for(Dn&&n.nodeType==1&&o0){if(n.nodeType!=1)break;{let r=n.childNodes[o-1];if(ql(r,-1))l=n,a=--o;else if(r.nodeType==3)n=r,o=n.nodeValue.length;else break}}else{if(t1(n))break;{let r=n.previousSibling;for(;r&&ql(r,-1);)l=n.parentNode,a=nn(r),r=r.previousSibling;if(r)n=r,o=ca(n);else{if(n=n.parentNode,n==e.dom)break;o=0}}}s?bi(e,n,o):l&&bi(e,l,a)}function b5(e){let t=e.domSelectionRange(),n=t.focusNode,o=t.focusOffset;if(!n)return;let l=ca(n),a,s;for(;;)if(o{e.state==l&&po(e)},50)}function Ku(e,t){let n=e.state.doc.resolve(t);if(!(un||qM)&&n.parent.inlineContent){let l=e.coordsAtPos(t);if(t>n.start()){let a=e.coordsAtPos(t-1),s=(a.top+a.bottom)/2;if(s>l.top&&s1)return a.leftl.top&&s1)return a.left>l.left?"ltr":"rtl"}}return getComputedStyle(e.dom).direction=="rtl"?"rtl":"ltr"}function Eu(e,t,n){let o=e.state.selection;if(o instanceof ln&&!o.empty||n.indexOf("s")>-1||Wn&&n.indexOf("m")>-1)return!1;let{$from:l,$to:a}=o;if(!l.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let s=Li(e.state,t);if(s&&s instanceof Lt)return No(e,s)}if(!l.parent.inlineContent){let s=t<0?l:a,r=o instanceof Qd?Jn.near(s,t):Jn.findFrom(s,t);return r?No(e,r):!1}return!1}function Cu(e,t){if(!(e.state.selection instanceof ln))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 a=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(a&&!a.isText){let s=e.state.tr;return t<0?s.delete(n.pos-a.nodeSize,n.pos):s.delete(n.pos,n.pos+a.nodeSize),e.dispatch(s),!0}return!1}function Hu(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function F5(e){if(!gn||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;Hu(e,o,"true"),setTimeout(()=>Hu(e,o,"false"),20)}return!1}function Y5(e){let t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}function U5(e,t){let n=t.keyCode,o=Y5(t);if(n==8||Wn&&n==72&&o=="c")return Cu(e,-1)||fl(e,-1);if(n==46&&!t.shiftKey||Wn&&n==68&&o=="c")return Cu(e,1)||fl(e,1);if(n==13||n==27)return!0;if(n==37||Wn&&n==66&&o=="c"){let l=n==37?Ku(e,e.state.selection.from)=="ltr"?-1:1:-1;return Zu(e,l,o)||fl(e,l)}else if(n==39||Wn&&n==70&&o=="c"){let l=n==39?Ku(e,e.state.selection.from)=="ltr"?1:-1:1;return Zu(e,l,o)||fl(e,l)}else{if(n==38||Wn&&n==80&&o=="c")return Eu(e,-1,o)||fl(e,-1);if(n==40||Wn&&n==78&&o=="c")return F5(e)||Eu(e,1,o)||fl(e,1);if(o==(Wn?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function n1(e,t){e.someProp("transformCopied",p=>{t=p(t,e)});let n=[],{content:o,openStart:l,openEnd:a}=t;for(;l>1&&a>1&&o.childCount==1&&o.firstChild.childCount==1;){l--,a--;let p=o.firstChild;n.push(p.type.name,p.attrs!=p.type.defaultAttrs?p.attrs:null),o=p.content}let s=e.someProp("clipboardSerializer")||Pa.fromSchema(e.state.schema),r=i1(),c=r.createElement("div");c.appendChild(s.serializeFragment(o,{document:r}));let i=c.firstChild,u,d=0;for(;i&&i.nodeType==1&&(u=r1[i.nodeName.toLowerCase()]);){for(let p=u.length-1;p>=0;p--){let R=r.createElement(u[p]);for(;c.firstChild;)R.appendChild(c.firstChild);c.appendChild(R),d++}i=c.firstChild}i&&i.nodeType==1&&i.setAttribute("data-pm-slice",`${l} ${a}${d?` -${d}`:""} ${JSON.stringify(n)}`);let f=e.someProp("clipboardTextSerializer",p=>p(t,e))||t.content.textBetween(0,t.content.size,` `);return{dom:c,text:f,slice:t}}function o1(e,t,n,o,l){let a=l.parent.type.spec.code,s,r;if(!n&&!t)return null;let c=t&&(o||a||!n);if(c){if(e.someProp("transformPastedText",f=>{t=f(t,a||o,e)}),a)return t?new mn(Ot.from(e.state.schema.text(t.replace(/\r\n?/g,` `))),0,0):mn.empty;let d=e.someProp("clipboardTextParser",f=>f(t,l,o,e));if(d)r=d;else{let f=l.marks(),{schema:p}=e.state,R=Pa.fromSchema(p);s=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(h=>{let v=s.appendChild(document.createElement("p"));h&&v.appendChild(R.serializeNode(p.text(h,f)))})}}else e.someProp("transformPastedHTML",d=>{n=d(n,e)}),s=Q5(n),xs&&Z5(s);let i=s&&s.querySelector("[data-pm-slice]"),u=i&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(i.getAttribute("data-pm-slice")||"");if(u&&u[3])for(let d=+u[3];d>0;d--){let f=s.firstChild;for(;f&&f.nodeType!=1;)f=f.nextSibling;if(!f)break;s=f}if(r||(r=(e.someProp("clipboardParser")||e.someProp("domParser")||qi.fromSchema(e.state.schema)).parseSlice(s,{preserveWhitespace:!!(c||u),context:l,ruleFromNode(f){return f.nodeName=="BR"&&!f.nextSibling&&f.parentNode&&!W5.test(f.parentNode.nodeName)?{ignore:!0}:null}})),u)r=K5(Gu(r,+u[1],+u[2]),u[4]);else if(r=mn.maxOpen(A5(r.content,l),!0),r.openStart||r.openEnd){let d=0,f=0;for(let p=r.content.firstChild;d{r=d(r,e)}),r}const W5=/^(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 A5(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)),a,s=[];if(e.forEach(r=>{if(!s)return;let c=l.findWrapping(r.type),i;if(!c)return s=null;if(i=s.length&&a.length&&s1(c,a,r,s[s.length-1],0))s[s.length-1]=i;else{s.length&&(s[s.length-1]=a1(s[s.length-1],a.length));let u=l1(r,c);s.push(u),l=l.matchType(u.type),a=c}}),s)return Ot.from(s)}return e}function l1(e,t,n=0){for(let o=t.length-1;o>=n;o--)e=t[o].create(null,Ot.from(e));return e}function s1(e,t,n,o,l){if(l1&&(a=0),l=n&&(r=t<0?s.contentMatchAt(0).fillBefore(r,a<=l).append(r):r.append(s.contentMatchAt(s.childCount).fillBefore(Ot.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,s.copy(r))}function Gu(e,t,n){return t]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n=i1().createElement("div"),o=/<([a-z][^>\s]+)/i.exec(e),l;if((l=o&&r1[o[1].toLowerCase()])&&(e=l.map(a=>"<"+a+">").join("")+e+l.map(a=>"").reverse().join("")),n.innerHTML=e,l)for(let a=0;a=0;r-=2){let c=n.nodes[o[r]];if(!c||c.hasRequiredAttrs())break;l=Ot.from(c.create(o[r+1],l)),a++,s++}return new mn(l,a,s)}const Sn={},Mn={},E5={touchstart:!0,touchmove:!0};class C5{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 H5(e){for(let t in Sn){let n=Sn[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=o=>{w5(e,o)&&!O0(e,o)&&(e.editable||!(o.type in Mn))&&n(e,o)},E5[t]?{passive:!0}:void 0)}gn&&e.dom.addEventListener("input",()=>null),Ii(e)}function bo(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function G5(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 Ii(e){e.someProp("handleDOMEvents",t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=o=>O0(e,o))})}function O0(e,t){return e.someProp("handleDOMEvents",n=>{let o=n[t.type];return o?o(e,t)||t.defaultPrevented:!1})}function w5(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 J5(e,t){!O0(e,t)&&Sn[t.type]&&(e.editable||!(t.type in Mn))&&Sn[t.type](e,t)}Mn.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=n.keyCode==16||n.shiftKey,!u1(e,n)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!(Gn&&un&&n.keyCode==13)))if(n.keyCode!=229&&e.domObserver.forceFlush(),yl&&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,Bo(13,"Enter"))),e.input.lastIOSEnter=0)},200)}else e.someProp("handleKeyDown",o=>o(e,n))||U5(e,n)?n.preventDefault():bo(e,"key")};Mn.keyup=(e,t)=>{t.keyCode==16&&(e.input.shiftKey=!1)};Mn.keypress=(e,t)=>{let n=t;if(u1(e,n)||!n.charCode||n.ctrlKey&&!n.altKey||Wn&&n.metaKey)return;if(e.someProp("handleKeyPress",l=>l(e,n))){n.preventDefault();return}let o=e.state.selection;if(!(o instanceof ln)||!o.$from.sameParent(o.$to)){let l=String.fromCharCode(n.charCode);!/[\r\n]/.test(l)&&!e.someProp("handleTextInput",a=>a(e,o.$from.pos,o.$to.pos,l))&&e.dispatch(e.state.tr.insertText(l).scrollIntoView()),n.preventDefault()}};function Qa(e){return{left:e.clientX,top:e.clientY}}function D5(e,t){let n=t.x-e.clientX,o=t.y-e.clientY;return n*n+o*o<100}function x0(e,t,n,o,l){if(o==-1)return!1;let a=e.state.doc.resolve(o);for(let s=a.depth+1;s>0;s--)if(e.someProp(t,r=>s>a.depth?r(e,n,a.nodeAfter,a.before(s),l,!0):r(e,n,a.node(s),a.before(s),l,!1)))return!0;return!1}function Tl(e,t,n){e.focused||e.focus();let o=e.state.tr.setSelection(t);o.setMeta("pointer",!0),e.dispatch(o)}function k5(e,t){if(t==-1)return!1;let n=e.state.doc.resolve(t),o=n.nodeAfter;return o&&o.isAtom&&Lt.isSelectable(o)?(Tl(e,new Lt(n)),!0):!1}function B5(e,t){if(t==-1)return!1;let n=e.state.selection,o,l;n instanceof Lt&&(o=n.node);let a=e.state.doc.resolve(t);for(let s=a.depth+1;s>0;s--){let r=s>a.depth?a.nodeAfter:a.node(s);if(Lt.isSelectable(r)){o&&n.$from.depth>0&&s>=n.$from.depth&&a.before(n.$from.depth+1)==n.$from.pos?l=a.before(n.$from.depth):l=a.before(s);break}}return l!=null?(Tl(e,Lt.create(e.state.doc,l)),!0):!1}function _5(e,t,n,o,l){return x0(e,"handleClickOn",t,n,o)||e.someProp("handleClick",a=>a(e,t,o))||(l?B5(e,n):k5(e,n))}function $5(e,t,n,o){return x0(e,"handleDoubleClickOn",t,n,o)||e.someProp("handleDoubleClick",l=>l(e,t,o))}function z5(e,t,n,o){return x0(e,"handleTripleClickOn",t,n,o)||e.someProp("handleTripleClick",l=>l(e,t,o))||j5(e,n,o)}function j5(e,t,n){if(n.button!=0)return!1;let o=e.state.doc;if(t==-1)return o.inlineContent?(Tl(e,ln.create(o,0,o.content.size)),!0):!1;let l=o.resolve(t);for(let a=l.depth+1;a>0;a--){let s=a>l.depth?l.nodeAfter:l.node(a),r=l.before(a);if(s.inlineContent)Tl(e,ln.create(o,r+1,r+1+s.content.size));else if(Lt.isSelectable(s))Tl(e,Lt.create(o,r));else continue;return!0}}function P0(e){return ua(e)}const c1=Wn?"metaKey":"ctrlKey";Sn.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let o=P0(e),l=Date.now(),a="singleClick";l-e.input.lastClick.time<500&&D5(n,e.input.lastClick)&&!n[c1]&&(e.input.lastClick.type=="singleClick"?a="doubleClick":e.input.lastClick.type=="doubleClick"&&(a="tripleClick")),e.input.lastClick={time:l,x:n.clientX,y:n.clientY,type:a};let s=e.posAtCoords(Qa(n));s&&(a=="singleClick"?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new q5(e,s,n,!!o)):(a=="doubleClick"?$5:z5)(e,s.pos,s.inside,n)?n.preventDefault():bo(e,"pointer"))};class q5{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[c1],this.allowDefault=o.shiftKey;let a,s;if(n.inside>-1)a=t.state.doc.nodeAt(n.inside),s=n.inside;else{let u=t.state.doc.resolve(n.pos);a=u.parent,s=u.depth?u.before():0}const r=l?null:o.target,c=r?t.docView.nearestDesc(r,!0):null;this.target=c&&c.dom.nodeType==1?c.dom:null;let{selection:i}=t.state;(o.button==0&&a.type.spec.draggable&&a.type.spec.selectable!==!1||i instanceof Lt&&i.from<=s&&i.to>s)&&(this.mightDrag={node:a,pos:s,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&Dn&&!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)),bo(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(()=>po(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(Qa(t))),this.updateAllowDefault(t),this.allowDefault||!n?bo(this.view,"pointer"):_5(this.view,n.pos,n.inside,t,this.selectNode)?t.preventDefault():t.button==0&&(this.flushed||gn&&this.mightDrag&&!this.mightDrag.node.isAtom||un&&!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)?(Tl(this.view,Jn.near(this.view.state.doc.resolve(n.pos))),t.preventDefault()):bo(this.view,"pointer")}move(t){this.updateAllowDefault(t),bo(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)}}Sn.touchstart=e=>{e.input.lastTouch=Date.now(),P0(e),bo(e,"pointer")};Sn.touchmove=e=>{e.input.lastTouch=Date.now(),bo(e,"pointer")};Sn.contextmenu=e=>P0(e);function u1(e,t){return e.composing?!0:gn&&Math.abs(t.timeStamp-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}const e8=Gn?5e3:-1;Mn.compositionstart=Mn.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(),ua(e,!0),e.markCursor=null;else if(ua(e),Dn&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let o=e.domSelectionRange();for(let l=o.focusNode,a=o.focusOffset;l&&l.nodeType==1&&a!=0;){let s=a<0?l.lastChild:l.childNodes[a-1];if(!s)break;if(s.nodeType==3){e.domSelection().collapse(s,s.nodeValue.length);break}else l=s,a=-1}}e.input.composing=!0}d1(e,e8)};Mn.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++,d1(e,20))};function d1(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>ua(e),t))}function f1(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=n8());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function t8(e){let t=e.domSelectionRange();if(!t.focusNode)return null;let n=BM(t.focusNode,t.focusOffset),o=_M(t.focusNode,t.focusOffset);if(n&&o&&n!=o){let l=o.pmViewDesc,a=e.domObserver.lastChangedTextNode;if(n==a||o==a)return a;if(!l||!l.isText(o.nodeValue))return o;if(e.input.compositionNode==o){let s=n.pmViewDesc;if(!(!s||!s.isText(n.nodeValue)))return o}}return n||o}function n8(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}function ua(e,t=!1){if(!(Gn&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),f1(e),t||e.docView&&e.docView.dirty){let n=S0(e);return n&&!n.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(n)):e.updateState(e.state),!0}return!1}}function o8(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 us=Xn&&Yo<15||yl&&e5<604;Sn.copy=Mn.cut=(e,t)=>{let n=t,o=e.state.selection,l=n.type=="cut";if(o.empty)return;let a=us?null:n.clipboardData,s=o.content(),{dom:r,text:c}=n1(e,s);a?(n.preventDefault(),a.clearData(),a.setData("text/html",r.innerHTML),a.setData("text/plain",c)):o8(e,r),l&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function l8(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function s8(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?ds(e,o.value,null,l,t):ds(e,o.textContent,o.innerHTML,l,t)},50)}function ds(e,t,n,o,l){let a=o1(e,t,n,o,e.state.selection.$from);if(e.someProp("handlePaste",c=>c(e,l,a||mn.empty)))return!0;if(!a)return!1;let s=l8(a),r=s?e.state.tr.replaceSelectionWith(s,o):e.state.tr.replaceSelection(a);return e.dispatch(r.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function R1(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," "):""}Mn.paste=(e,t)=>{let n=t;if(e.composing&&!Gn)return;let o=us?null:n.clipboardData,l=e.input.shiftKey&&e.input.lastKeyCode!=45;o&&ds(e,R1(o),o.getData("text/html"),l,n)?n.preventDefault():s8(e,n)};class p1{constructor(t,n,o){this.slice=t,this.move=n,this.node=o}}const h1=Wn?"altKey":"ctrlKey";Sn.dragstart=(e,t)=>{let n=t,o=e.input.mouseDown;if(o&&o.done(),!n.dataTransfer)return;let l=e.state.selection,a=l.empty?null:e.posAtCoords(Qa(n)),s;if(!(a&&a.pos>=l.from&&a.pos<=(l instanceof Lt?l.to-1:l.to))){if(o&&o.mightDrag)s=Lt.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&&(s=Lt.create(e.state.doc,d.posBefore))}}let r=(s||e.state.selection).content(),{dom:c,text:i,slice:u}=n1(e,r);(!n.dataTransfer.files.length||!un||Ef>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(us?"Text":"text/html",c.innerHTML),n.dataTransfer.effectAllowed="copyMove",us||n.dataTransfer.setData("text/plain",i),e.dragging=new p1(u,!n[h1],s)};Sn.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)};Mn.dragover=Mn.dragenter=(e,t)=>t.preventDefault();Mn.drop=(e,t)=>{let n=t,o=e.dragging;if(e.dragging=null,!n.dataTransfer)return;let l=e.posAtCoords(Qa(n));if(!l)return;let a=e.state.doc.resolve(l.pos),s=o&&o.slice;s?e.someProp("transformPasted",R=>{s=R(s,e)}):s=o1(e,R1(n.dataTransfer),us?null:n.dataTransfer.getData("text/html"),!1,a);let r=!!(o&&!n[h1]);if(e.someProp("handleDrop",R=>R(e,n,s||mn.empty,r))){n.preventDefault();return}if(!s)return;n.preventDefault();let c=s?Ad(e.state.doc,a.pos,s):a.pos;c==null&&(c=a.pos);let i=e.state.tr;if(r){let{node:R}=o;R?R.replace(i):i.deleteSelection()}let u=i.mapping.map(c),d=s.openStart==0&&s.openEnd==0&&s.content.childCount==1,f=i.doc;if(d?i.replaceRangeWith(u,u,s.content.firstChild):i.replaceRange(u,u,s),i.doc.eq(f))return;let p=i.doc.resolve(u);if(d&&Lt.isSelectable(s.content.firstChild)&&p.nodeAfter&&p.nodeAfter.sameMarkup(s.content.firstChild))i.setSelection(new Lt(p));else{let R=i.mapping.map(c);i.mapping.maps[i.mapping.maps.length-1].forEach((h,v,M,g)=>R=g),i.setSelection(M0(e,p,i.doc.resolve(R)))}e.focus(),e.dispatch(i.setMeta("uiEvent","drop"))};Sn.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())&&po(e)},20))};Sn.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)};Sn.beforeinput=(e,t)=>{if(un&&Gn&&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",a=>a(e,Bo(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 Mn)Sn[e]=Mn[e];function fs(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 da{constructor(t,n){this.toDOM=t,this.spec=n||jo,this.side=this.spec.side||0}map(t,n,o,l){let{pos:a,deleted:s}=t.mapResult(n.from+l,this.side<0?-1:1);return s?null:new Yn(a-o,a-o,this)}valid(){return!0}eq(t){return this==t||t instanceof da&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&fs(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}}class Wo{constructor(t,n){this.attrs=t,this.spec=n||jo}map(t,n,o,l){let a=t.map(n.from+l,this.spec.inclusiveStart?-1:1)-o,s=t.map(n.to+l,this.spec.inclusiveEnd?1:-1)-o;return a>=s?null:new Yn(a,s,this)}valid(t,n){return n.from=t&&(!a||a(r.spec))&&o.push(r.copy(r.from+l,r.to+l))}for(let s=0;st){let r=this.children[s]+1;this.children[s+2].findInner(t-r,n-r,o,l+r,a)}}map(t,n,o){return this==rn||t.maps.length==0?this:this.mapInner(t,n,0,0,o||jo)}mapInner(t,n,o,l,a){let s;for(let r=0;r{let i=c+o,u;if(u=m1(n,r,i)){for(l||(l=this.children.slice());ar&&d.to=t){this.children[r]==t&&(o=this.children[r+2]);break}let a=t+1,s=a+n.content.size;for(let r=0;ra&&c.type instanceof Wo){let i=Math.max(a,c.from)-a,u=Math.min(s,c.to)-a;il.map(t,n,jo));return yo.from(o)}forChild(t,n){if(n.isLeaf)return Dt.empty;let o=[];for(let l=0;ln instanceof Dt)?t:t.reduce((n,o)=>n.concat(o instanceof Dt?o:o.members),[]))}}}function a8(e,t,n,o,l,a,s){let r=e.slice();for(let i=0,u=a;i{let v=h-R-(p-f);for(let M=0;Mg+u-d)continue;let m=r[M]+u-d;p>=m?r[M+1]=f<=m?-2:-1:f>=u&&v&&(r[M]+=v,r[M+1]+=v)}d+=v}),u=n.maps[i].map(u,-1)}let c=!1;for(let i=0;i=o.content.size){c=!0;continue}let f=n.map(e[i+1]+a,-1),p=f-l,{index:R,offset:h}=o.content.findIndex(d),v=o.maybeChild(R);if(v&&h==d&&h+v.nodeSize==p){let M=r[i+2].mapInner(n,v,u+1,e[i]+a+1,s);M!=rn?(r[i]=d,r[i+1]=p,r[i+2]=M):(r[i+1]=-2,c=!0)}else c=!0}if(c){let i=r8(r,e,t,n,l,a,s),u=fa(i,o,0,s);t=u.local;for(let d=0;dn&&s.to{let i=m1(e,r,c+n);if(i){a=!0;let u=fa(i,r,n+c+1,o);u!=rn&&l.push(c,c+r.nodeSize,u)}});let s=v1(a?g1(e):e,-n).sort(qo);for(let r=0;r0;)t++;e.splice(t,0,n)}function Er(e){let t=[];return e.someProp("decorations",n=>{let o=n(e.state);o&&o!=rn&&t.push(o)}),e.cursorWrapper&&t.push(Dt.create(e.state.doc,[e.cursorWrapper.deco])),yo.from(t)}const i8={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},c8=Xn&&Yo<=11;class u8{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 d8{constructor(t,n){this.view=t,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new u8,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(o=>{for(let l=0;ll.type=="childList"&&l.removedNodes.length||l.type=="characterData"&&l.oldValue.length>l.target.nodeValue.length)?this.flushSoon():this.flush()}),c8&&(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,i8)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let t=this.observer.takeRecords();if(t.length){for(let n=0;nthis.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(Qu(this.view)){if(this.suppressingSelectionUpdates)return po(this.view);if(Xn&&Yo<=11&&!this.view.state.selection.empty){let t=this.view.domSelectionRange();if(t.focusNode&&ol(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 a=t.focusNode;a;a=cs(a))n.add(a);for(let a=t.anchorNode;a;a=cs(a))if(n.has(a)){o=a;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)&&Qu(t)&&!this.ignoreSelectionChange(o),a=-1,s=-1,r=!1,c=[];if(t.editable)for(let u=0;ud.nodeName=="BR");if(u.length==2){let[d,f]=u;d.parentNode&&d.parentNode.parentNode==f.parentNode?f.remove():d.remove()}else{let{focusNode:d}=this.currentSelection;for(let f of u){let p=f.parentNode;p&&p.nodeName=="LI"&&(!d||p8(t,d)!=p)&&f.remove()}}}let i=null;a<0&&l&&t.input.lastFocus>Date.now()-200&&Math.max(t.input.lastTouch,t.input.lastClick.time)-1||l)&&(a>-1&&(t.docView.markDirty(a,s),f8(t)),this.handleDOMChange(a,s,r,c),t.docView&&t.docView.dirty?t.updateState(t.state):this.currentSelection.eq(o)||po(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 u=0;ul;v--){let M=o.childNodes[v-1],g=M.pmViewDesc;if(M.nodeName=="BR"&&!g){a=v;break}if(!g||g.size)break}let d=e.state.doc,f=e.someProp("domParser")||qi.fromSchema(e.state.schema),p=d.resolve(s),R=null,h=f.parse(o,{topNode:p.parent,topMatch:p.parent.contentMatchAt(p.index()),topOpen:!0,from:l,to:a,preserveWhitespace:p.parent.type.whitespace=="pre"?"full":!0,findPositions:i,ruleFromNode:v8,context:p});if(i&&i[0].pos!=null){let v=i[0].pos,M=i[1]&&i[1].pos;M==null&&(M=v),R={anchor:v+s,head:M+s}}return{doc:h,sel:R,from:s,to:r}}function v8(e){let t=e.pmViewDesc;if(t)return t.parseRule();if(e.nodeName=="BR"&&e.parentNode){if(gn&&/^(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||gn&&/^(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 m8=/^(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 g8(e,t,n,o,l){let a=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let x=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,T=S0(e,x);if(T&&!e.state.selection.eq(T)){if(un&&Gn&&e.input.lastKeyCode===13&&Date.now()-100Y(e,Bo(13,"Enter"))))return;let y=e.state.tr.setSelection(T);x=="pointer"?y.setMeta("pointer",!0):x=="key"&&y.scrollIntoView(),a&&y.setMeta("composition",a),e.dispatch(y)}return}let s=e.state.doc.resolve(t),r=s.sharedDepth(n);t=s.before(r+1),n=e.state.doc.resolve(n).after(r+1);let c=e.state.selection,i=h8(e,t,n),u=e.state.doc,d=u.slice(i.from,i.to),f,p;e.input.lastKeyCode===8&&Date.now()-100Date.now()-225||Gn)&&l.some(x=>x.nodeType==1&&!m8.test(x.nodeName))&&(!R||R.endA>=R.endB)&&e.someProp("handleKeyDown",x=>x(e,Bo(13,"Enter")))){e.input.lastIOSEnter=0;return}if(!R)if(o&&c instanceof ln&&!c.empty&&c.$head.sameParent(c.$anchor)&&!e.composing&&!(i.sel&&i.sel.anchor!=i.sel.head))R={start:c.from,endA:c.to,endB:c.to};else{if(i.sel){let x=_u(e,e.state.doc,i.sel);if(x&&!x.eq(e.state.selection)){let T=e.state.tr.setSelection(x);a&&T.setMeta("composition",a),e.dispatch(T)}}return}e.input.domChangeCount++,e.state.selection.frome.state.selection.from&&R.start<=e.state.selection.from+2&&e.state.selection.from>=i.from?R.start=e.state.selection.from:R.endA=e.state.selection.to-2&&e.state.selection.to<=i.to&&(R.endB+=e.state.selection.to-R.endA,R.endA=e.state.selection.to)),Xn&&Yo<=11&&R.endB==R.start+1&&R.endA==R.start&&R.start>i.from&&i.doc.textBetween(R.start-i.from-1,R.start-i.from+1)=="  "&&(R.start--,R.endA--,R.endB--);let h=i.doc.resolveNoCache(R.start-i.from),v=i.doc.resolveNoCache(R.endB-i.from),M=u.resolve(R.start),g=h.sameParent(v)&&h.parent.inlineContent&&M.end()>=R.endA,m;if((yl&&e.input.lastIOSEnter>Date.now()-225&&(!g||l.some(x=>x.nodeName=="DIV"||x.nodeName=="P"))||!g&&h.posx(e,Bo(13,"Enter")))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>R.start&&M8(u,R.start,R.endA,h,v)&&e.someProp("handleKeyDown",x=>x(e,Bo(8,"Backspace")))){Gn&&un&&e.domObserver.suppressSelectionUpdates();return}un&&Gn&&R.endB==R.start&&(e.input.lastAndroidDelete=Date.now()),Gn&&!g&&h.start()!=v.start()&&v.parentOffset==0&&h.depth==v.depth&&i.sel&&i.sel.anchor==i.sel.head&&i.sel.head==R.endA&&(R.endB-=2,v=i.doc.resolveNoCache(R.endB-i.from),setTimeout(()=>{e.someProp("handleKeyDown",function(x){return x(e,Bo(13,"Enter"))})},20));let O=R.start,S=R.endA,P,b,N;if(g){if(h.pos==v.pos)Xn&&Yo<=11&&h.parentOffset==0&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>po(e),20)),P=e.state.tr.delete(O,S),b=u.resolve(R.start).marksAcross(u.resolve(R.endA));else if(R.endA==R.endB&&(N=S8(h.parent.content.cut(h.parentOffset,v.parentOffset),M.parent.content.cut(M.parentOffset,R.endA-M.start()))))P=e.state.tr,N.type=="add"?P.addMark(O,S,N.mark):P.removeMark(O,S,N.mark);else if(h.parent.child(h.index()).isText&&h.index()==v.index()-(v.textOffset?0:1)){let x=h.parent.textBetween(h.parentOffset,v.parentOffset);if(e.someProp("handleTextInput",T=>T(e,O,S,x)))return;P=e.state.tr.insertText(x,O,S)}}if(P||(P=e.state.tr.replace(O,S,i.doc.slice(R.start-i.from,R.endB-i.from))),i.sel){let x=_u(e,P.doc,i.sel);x&&!(un&&Gn&&e.composing&&x.empty&&(R.start!=R.endB||e.input.lastAndroidDeletet.content.size?null:M0(e,t.resolve(n.anchor),t.resolve(n.head))}function S8(e,t){let n=e.firstChild.marks,o=t.firstChild.marks,l=n,a=o,s,r,c;for(let u=0;uu.mark(r.addToSet(u.marks));else if(l.length==0&&a.length==1)r=a[0],s="remove",c=u=>u.mark(r.removeFromSet(u.marks));else return null;let i=[];for(let u=0;un||Cr(s,!0,!1)0&&(t||e.indexAfter(o)==e.node(o).childCount);)o--,l++,t=!1;if(n){let a=e.node(o).maybeChild(e.indexAfter(o));for(;a&&!a.isLeaf;)a=a.firstChild,l++}return l}function O8(e,t,n,o,l){let a=e.findDiffStart(t,n);if(a==null)return null;let{a:s,b:r}=e.findDiffEnd(t,n+e.size,n+t.size);if(l=="end"){let c=Math.max(0,a-Math.min(s,r));o-=s+c-a}if(s=s?a-o:0;a-=c,a&&a=r?a-o:0;a-=c,a&&a=56320&&t<=57343&&n>=55296&&n<=56319}class x8{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 C5,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(td),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=qu(this),ju(this),this.nodeViews=ed(this),this.docView=Iu(this.state.doc,zu(this),Er(this),this.dom,this),this.domObserver=new d8(this,(o,l,a,s)=>g8(this,o,l,a,s)),this.domObserver.start(),H5(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&&Ii(this);let n=this._props;this._props=t,t.plugins&&(t.plugins.forEach(td),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,a=!1,s=!1;t.storedMarks&&this.composing&&(f1(this),s=!0),this.state=t;let r=l.plugins!=t.plugins||this._props.plugins!=n.plugins;if(r||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let p=ed(this);N8(p,this.nodeViews)&&(this.nodeViews=p,a=!0)}(r||n.handleDOMEvents!=this._props.handleDOMEvents)&&Ii(this),this.editable=qu(this),ju(this);let c=Er(this),i=zu(this),u=l.plugins!=t.plugins&&!l.doc.eq(t.doc)?"reset":t.scrollToSelection>l.scrollToSelection?"to selection":"preserve",d=a||!this.docView.matchesNode(t.doc,i,c);(d||!t.selection.eq(l.selection))&&(s=!0);let f=u=="preserve"&&s&&this.dom.style.overflowAnchor==null&&o5(this);if(s){this.domObserver.stop();let p=d&&(Xn||un)&&!this.composing&&!l.selection.empty&&!t.selection.empty&&P8(l.selection,t.selection);if(d){let R=un?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=t8(this)),(a||!this.docView.update(t.doc,i,c,this))&&(this.docView.updateOuterDeco(i),this.docView.destroy(),this.docView=Iu(t.doc,i,c,this.dom,this)),R&&!this.trackWrites&&(p=!0)}p||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&y5(this))?po(this,p):(qf(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),u=="reset"?this.dom.scrollTop=0:u=="to selection"?this.scrollToSelection():f&&l5(f)}scrollToSelection(){let t=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof Lt){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&Tu(this,n.getBoundingClientRect(),t)}else Tu(this,this.coordsAtPos(this.state.selection.head,1),t)}destroyPluginViews(){let t;for(;t=this.pluginViews.pop();)t.destroy&&t.destroy()}updatePluginViews(t){if(!t||t.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n0&&this.state.doc.nodeAt(a))==o.node&&(l=a)}this.dragging=new p1(t.slice,t.move,l<0?void 0:Lt.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 s=0;sn.ownerDocument.getSelection()),this._root=n}return t||document}updateRoot(){this._root=null}posAtCoords(t){return u5(this,t)}coordsAtPos(t,n=1){return Jf(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 h5(this,n||this.state,t)}pasteHTML(t,n){return ds(this,"",t,!1,n||new ClipboardEvent("paste"))}pasteText(t,n){return ds(this,t,null,!0,n||new ClipboardEvent("paste"))}destroy(){this.docView&&(G5(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Er(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,DM())}get isDestroyed(){return this.docView==null}dispatchEvent(t){return J5(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 gn&&this.root.nodeType===11&&zM(this.dom.ownerDocument)==this.dom&&R8(this,t)||t}domSelection(){return this.root.getSelection()}}function zu(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"),[Yn.node(0,e.state.doc.content.size,t)]}function ju(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:Yn.widget(e.state.selection.head,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function qu(e){return!e.someProp("editable",t=>t(e.state)===!1)}function P8(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 ed(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 N8(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 td(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 Qo={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:"'"},Ra={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},T8=typeof navigator<"u"&&/Mac/.test(navigator.platform),X8=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var on=0;on<10;on++)Qo[48+on]=Qo[96+on]=String(on);for(var on=1;on<=24;on++)Qo[on+111]="F"+on;for(var on=65;on<=90;on++)Qo[on]=String.fromCharCode(on+32),Ra[on]=String.fromCharCode(on);for(var Hr in Qo)Ra.hasOwnProperty(Hr)||(Ra[Hr]=Qo[Hr]);function y8(e){var t=T8&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||X8&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!t&&e.key||(e.shiftKey?Ra:Qo)[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 L8=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function b8(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n=="Space"&&(n=" ");let o,l,a,s;for(let r=0;r127)&&(a=Qo[o.keyCode])&&a!=l){let r=t[Gr(a,o)];if(r&&r(n.state,n.dispatch,n))return!0}}return!1}}var pa=200,jt=function(){};jt.prototype.append=function(t){return t.length?(t=jt.from(t),!this.length&&t||t.length=n?jt.empty:this.sliceInner(Math.max(0,t),Math.min(this.length,n))};jt.prototype.get=function(t){if(!(t<0||t>=this.length))return this.getInner(t)};jt.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)};jt.prototype.map=function(t,n,o){n===void 0&&(n=0),o===void 0&&(o=this.length);var l=[];return this.forEach(function(a,s){return l.push(t(a,s))},n,o),l};jt.from=function(t){return t instanceof jt?t:t&&t.length?new M1(t):jt.empty};var M1=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,a){return l==0&&a==this.length?this:new t(this.values.slice(l,a))},t.prototype.getInner=function(l){return this.values[l]},t.prototype.forEachInner=function(l,a,s,r){for(var c=a;c=s;c--)if(l(this.values[c],r+c)===!1)return!1},t.prototype.leafAppend=function(l){if(this.length+l.length<=pa)return new t(this.values.concat(l.flatten()))},t.prototype.leafPrepend=function(l){if(this.length+l.length<=pa)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}(jt);jt.empty=new M1([]);var I8=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 or&&this.right.forEachInner(o,Math.max(l-r,0),Math.min(this.length,a)-r,s+r)===!1)return!1},t.prototype.forEachInvertedInner=function(o,l,a,s){var r=this.left.length;if(l>r&&this.right.forEachInvertedInner(o,l-r,Math.max(a,r)-r,s+r)===!1||a=a?this.right.slice(o-a,l-a):this.left.slice(o,a).append(this.right.slice(0,l-a))},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}(jt);const F8=500;class wn{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,a;n&&(l=this.remapping(o,this.items.length),a=l.maps.length);let s=t.tr,r,c,i=[],u=[];return this.items.forEach((d,f)=>{if(!d.step){l||(l=this.remapping(o,f+1),a=l.maps.length),a--,u.push(d);return}if(l){u.push(new jn(d.map));let p=d.step.map(l.slice(a)),R;p&&s.maybeStep(p).doc&&(R=s.mapping.maps[s.mapping.maps.length-1],i.push(new jn(R,void 0,void 0,i.length+u.length))),a--,R&&l.appendMap(R,a)}else s.maybeStep(d.step);if(d.selection)return r=l?d.selection.map(l.slice(a)):d.selection,c=new wn(this.items.slice(0,o).append(u.reverse().concat(i)),this.eventCount-1),!1},this.items.length,0),{remaining:c,transform:s,selection:r}}addTransform(t,n,o,l){let a=[],s=this.eventCount,r=this.items,c=!l&&r.length?r.get(r.length-1):null;for(let u=0;uU8&&(r=Y8(r,i),s-=i),new wn(r.append(a),s)}remapping(t,n){let o=new E2;return this.items.forEach((l,a)=>{let s=l.mirrorOffset!=null&&a-l.mirrorOffset>=t?o.maps.length-l.mirrorOffset:void 0;o.appendMap(l.map,s)},t,n),o}addMaps(t){return this.eventCount==0?this:new wn(this.items.append(t.map(n=>new jn(n))),this.eventCount)}rebased(t,n){if(!this.eventCount)return this;let o=[],l=Math.max(0,this.items.length-n),a=t.mapping,s=t.steps.length,r=this.eventCount;this.items.forEach(f=>{f.selection&&r--},l);let c=n;this.items.forEach(f=>{let p=a.getMirror(--c);if(p==null)return;s=Math.min(s,p);let R=a.maps[p];if(f.step){let h=t.steps[p].invert(t.docs[p]),v=f.selection&&f.selection.map(a.slice(c+1,p));v&&r++,o.push(new jn(R,h,v))}else o.push(new jn(R))},l);let i=[];for(let f=n;fF8&&(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=[],a=0;return this.items.forEach((s,r)=>{if(r>=t)l.push(s),s.selection&&a++;else if(s.step){let c=s.step.map(n.slice(o)),i=c&&c.getMap();if(o--,i&&n.appendMap(i,o),c){let u=s.selection&&s.selection.map(n.slice(o));u&&a++;let d=new jn(i.invert(),c,u),f,p=l.length-1;(f=l.length&&l[p].merge(d))?l[p]=f:l.push(d)}}else s.map&&o--},this.items.length,0),new wn(jt.from(l.reverse()),a)}}wn.empty=new wn(jt.empty,0);function Y8(e,t){let n;return e.forEach((o,l)=>{if(o.selection&&t--==0)return n=l,!1}),e.slice(n)}class jn{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 jn(n.getMap().invert(),n,this.selection)}}}class To{constructor(t,n,o,l,a){this.done=t,this.undone=n,this.prevRanges=o,this.prevTime=l,this.prevComposition=a}}const U8=20;function W8(e,t,n,o){let l=n.getMeta(Ao),a;if(l)return l.historyState;n.getMeta(Q8)&&(e=new To(e.done,e.undone,null,0,-1));let s=n.getMeta("appendedTransaction");if(n.steps.length==0)return e;if(s&&s.getMeta(Ao))return s.getMeta(Ao).redo?new To(e.done.addTransform(n,void 0,o,Ds(t)),e.undone,od(n.mapping.maps[n.steps.length-1]),e.prevTime,e.prevComposition):new To(e.done,e.undone.addTransform(n,void 0,o,Ds(t)),null,e.prevTime,e.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(s&&s.getMeta("addToHistory")===!1)){let r=n.getMeta("composition"),c=e.prevTime==0||!s&&e.prevComposition!=r&&(e.prevTime<(n.time||0)-o.newGroupDelay||!A8(n,e.prevRanges)),i=s?wr(e.prevRanges,n.mapping):od(n.mapping.maps[n.steps.length-1]);return new To(e.done.addTransform(n,c?t.selection.getBookmark():void 0,o,Ds(t)),wn.empty,i,n.time,r??e.prevComposition)}else return(a=n.getMeta("rebased"))?new To(e.done.rebased(n,a),e.undone.rebased(n,a),wr(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new To(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),wr(e.prevRanges,n.mapping),e.prevTime,e.prevComposition)}function A8(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach((o,l)=>{for(let a=0;a=t[a]&&(n=!0)}),n}function od(e){let t=[];return e.forEach((n,o,l,a)=>t.push(l,a)),t}function wr(e,t){if(!e)return null;let n=[];for(let o=0;o{let n=Ao.getState(e);return!n||n.done.eventCount==0?!1:(t&&O1(n,e,t,!1),!0)},P1=(e,t)=>{let n=Ao.getState(e);return!n||n.undone.eventCount==0?!1:(t&&O1(n,e,t,!0),!0)};function K8(e={}){return new Yl({view(t){return new E8(t,e)}})}class E8{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 a=s=>{this[l](s)};return t.dom.addEventListener(l,a),{name:l,handler:a}})}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 r=t.nodeBefore,c=t.nodeAfter;if(r||c){let i=this.editorView.nodeDOM(this.cursorPos-(r?r.nodeSize:0));if(i){let u=i.getBoundingClientRect(),d=r?u.bottom:u.top;r&&c&&(d=(d+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),o={left:u.left,right:u.right,top:d-this.width/2,bottom:d+this.width/2}}}}if(!o){let r=this.editorView.coordsAtPos(this.cursorPos);o={left:r.left-this.width/2,right:r.left+this.width/2,top:r.top,bottom:r.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 a,s;if(!l||l==document.body&&getComputedStyle(l).position=="static")a=-pageXOffset,s=-pageYOffset;else{let r=l.getBoundingClientRect();a=r.left-l.scrollLeft,s=r.top-l.scrollTop}this.element.style.left=o.left-a+"px",this.element.style.top=o.top-s+"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,a=typeof l=="function"?l(this.editorView,n,t):l;if(n&&!a){let s=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let r=Ad(this.editorView.state.doc,s,this.editorView.dragging.slice);r!=null&&(s=r)}this.setCursor(s),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 Zt extends Jn{constructor(t){super(t,t)}map(t,n){let o=t.resolve(n.map(this.head));return Zt.valid(o)?new Zt(o):Jn.near(o)}content(){return mn.empty}eq(t){return t instanceof Zt&&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 Zt(t.resolve(n.pos))}getBookmark(){return new X0(this.anchor)}static valid(t){let n=t.parent;if(n.isTextblock||!C8(t)||!H8(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&&Zt.valid(t))return t;let l=t.pos,a=null;for(let s=t.depth;;s--){let r=t.node(s);if(n>0?t.indexAfter(s)0){a=r.child(n>0?t.indexAfter(s):t.index(s)-1);break}else if(s==0)return null;l+=n;let c=t.doc.resolve(l);if(Zt.valid(c))return c}for(;;){let s=n>0?a.firstChild:a.lastChild;if(!s){if(a.isAtom&&!a.isText&&!Lt.isSelectable(a)){t=t.doc.resolve(l+a.nodeSize*n),o=!1;continue e}break}a=s,l+=n;let r=t.doc.resolve(l);if(Zt.valid(r))return r}return null}}}Zt.prototype.visible=!1;Zt.findFrom=Zt.findGapCursorFrom;Jn.jsonID("gapcursor",Zt);class X0{constructor(t){this.pos=t}map(t){return new X0(t.map(this.pos))}resolve(t){let n=t.resolve(this.pos);return Zt.valid(n)?new Zt(n):Jn.near(n)}}function C8(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 H8(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 G8(){return new Yl({props:{decorations:k8,createSelectionBetween(e,t,n){return t.pos==n.pos&&Zt.valid(n)?new Zt(n):null},handleClick:J8,handleKeyDown:w8,handleDOMEvents:{beforeinput:D8}}})}const w8=S1({ArrowLeft:Ws("horiz",-1),ArrowRight:Ws("horiz",1),ArrowUp:Ws("vert",-1),ArrowDown:Ws("vert",1)});function Ws(e,t){const n=e=="vert"?t>0?"down":"up":t>0?"right":"left";return function(o,l,a){let s=o.selection,r=t>0?s.$to:s.$from,c=s.empty;if(s instanceof ln){if(!a.endOfTextblock(n)||r.depth==0)return!1;c=!1,r=o.doc.resolve(t>0?r.after():r.before())}let i=Zt.findGapCursorFrom(r,t,c);return i?(l&&l(o.tr.setSelection(new Zt(i))),!0):!1}}function J8(e,t,n){if(!e||!e.editable)return!1;let o=e.state.doc.resolve(t);if(!Zt.valid(o))return!1;let l=e.posAtCoords({left:n.clientX,top:n.clientY});return l&&l.inside>-1&&Lt.isSelectable(e.state.doc.nodeAt(l.inside))?!1:(e.dispatch(e.state.tr.setSelection(new Zt(o))),!0)}function D8(e,t){if(t.inputType!="insertCompositionText"||!(e.state.selection instanceof Zt))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 s=o.length-1;s>=0;s--)l=Ot.from(o[s].createAndFill(null,l));let a=e.state.tr.replace(n.pos,n.pos,new mn(l,0,0));return a.setSelection(ln.near(a.doc.resolve(n.pos+1))),e.dispatch(a),!1}function k8(e){if(!(e.selection instanceof Zt))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",Dt.create(e.doc,[Yn.widget(e.selection.head,t,{key:"gapcursor"})])}const B8=["li",0],_8={parseDOM:[{tag:"li"}],toDOM(){return B8},defining:!0};function $8(e,t=null){return function(n,o){let{$from:l,$to:a}=n.selection,s=l.blockRange(a),r=!1,c=s;if(!s)return!1;if(s.depth>=2&&l.node(s.depth-1).type.compatibleContent(e)&&s.startIndex==0){if(l.index(s.depth-1)==0)return!1;let u=n.doc.resolve(s.start-2);c=new ri(u,u,s.depth),s.endIndex=0;u--)a=Ot.from(n[u].type.create(n[u].attrs,a));e.step(new Na(t.start-(o?2:0),t.end,t.start,t.end,new mn(a,0,0),n.length,!0));let s=0;for(let u=0;u=l.depth-3;M--)d=Ot.from(l.node(M).copy(d));let p=l.indexAfter(-1){if(v>-1)return!1;M.isTextblock&&M.content.size==0&&(v=g+1)}),v>-1&&h.setSelection(Jn.near(h.doc.resolve(v))),o(h.scrollIntoView())}return!0}let c=a.pos==l.end()?r.contentMatchAt(0).defaultType:null,i=n.tr.delete(l.pos,a.pos),u=c?[null,{type:c}]:void 0;return Ed(i.doc,l.pos,2,u)?(o&&o(i.split(l.pos,2,u).scrollIntoView()),!0):!1}}function N1(e){return function(t,n){let{$from:o,$to:l}=t.selection,a=o.blockRange(l,s=>s.childCount>0&&s.firstChild.type==e);return a?n?o.node(a.depth-1).type==e?q8(t,n,e,a):eO(t,n,a):!0:!1}}function q8(e,t,n,o){let l=e.tr,a=o.end,s=o.$to.end(o.depth);ah;R--)p-=l.child(R).nodeSize,o.delete(p-1,p+1);let a=o.doc.resolve(n.start),s=a.nodeAfter;if(o.mapping.map(n.end)!=n.start+a.nodeAfter.nodeSize)return!1;let r=n.startIndex==0,c=n.endIndex==l.childCount,i=a.node(-1),u=a.index(-1);if(!i.canReplace(u+(r?0:1),u+1,s.content.append(c?Ot.empty:Ot.from(l))))return!1;let d=a.pos,f=d+s.nodeSize;return o.step(new Na(d-(r?1:0),f+(c?1:0),d+1,f-1,new mn((r?Ot.empty:Ot.from(l.copy(Ot.empty))).append(c?Ot.empty:Ot.from(l.copy(Ot.empty))),r?0:1,c?0:1),r?0:1)),t(o.scrollIntoView()),!0}function sd(e){return function(t,n){let{$from:o,$to:l}=t.selection,a=o.blockRange(l,i=>i.childCount>0&&i.firstChild.type==e);if(!a)return!1;let s=a.startIndex;if(s==0)return!1;let r=a.parent,c=r.child(s-1);if(c.type!=e)return!1;if(n){let i=c.lastChild&&c.lastChild.type==r.type,u=Ot.from(i?e.create():null),d=new mn(Ot.from(e.create(null,Ot.from(r.type.create(null,u)))),i?3:1,0),f=a.start,p=a.end;n(t.tr.step(new Na(f-(i?3:1),p,f,p,d,1,!0)).scrollIntoView())}return!0}}class vo{constructor(t,n,o={}){this.match=t,this.match=t,this.handler=typeof n=="string"?tO(n):n,this.undoable=o.undoable!==!1,this.inCode=o.inCode||!1}}function tO(e){return function(t,n,o,l){let a=e;if(n[1]){let s=n[0].lastIndexOf(n[1]);a+=n[0].slice(s+n[1].length),o+=s;let r=o-l;r>0&&(a=n[0].slice(s-r,s)+a,o=l)}return t.tr.insertText(a,o,l)}}const nO=500;function oO({rules:e}){let t=new Yl({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,a){return ad(n,o,l,a,e,t)},handleDOMEvents:{compositionend:n=>{setTimeout(()=>{let{$cursor:o}=n.state.selection;o&&ad(n,o.pos,o.pos,"",e,t)})}}},isInputRules:!0});return t}function ad(e,t,n,o,l,a){if(e.composing)return!1;let s=e.state,r=s.doc.resolve(t),c=r.parent.textBetween(Math.max(0,r.parentOffset-nO),r.parentOffset,null,"")+o;for(let i=0;i{let n=e.plugins;for(let o=0;o=0;c--)s.step(r.steps[c].invert(r.docs[c]));if(a.text){let c=s.doc.resolve(a.from).marks();s.replaceWith(a.from,a.to,e.schema.text(a.text,c))}else s.delete(a.from,a.to);t(s)}return!0}}return!1},sO=new vo(/--$/,"—"),aO=new vo(/\.\.\.$/,"…"),rO=new vo(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/,"“"),iO=new vo(/"$/,"”"),cO=new vo(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/,"‘"),uO=new vo(/'$/,"’"),dO=[rO,iO,cO,uO];function y0(e,t,n=null,o){return new vo(e,(l,a,s,r)=>{let c=n instanceof Function?n(a):n,i=l.tr.delete(s,r),u=i.doc.resolve(s),d=u.blockRange(),f=d&&Kd(d,t,c);if(!f)return null;i.wrap(d,f);let p=i.doc.resolve(s-1).nodeBefore;return p&&p.type==t&&Cd(i.doc,s-1)&&(!o||o(a,p))&&i.join(s-1),i})}const fO=e=>{const t={},n=(o,l)=>t[o]=l;return n("Alt-ArrowUp",G2),n("Alt-ArrowDown",w2),n("Mod-z",x1),n("Mod-y",P1),n("Backspace",lO),n("Escape",J2),n("Mod-b",wt(e.marks.strong)),n("Mod-i",wt(e.marks.em)),n("Mod-u",wt(e.marks.underline)),n("Mod-d",wt(e.marks.strikethrough)),n("Mod-e",wt(e.marks.code)),n("Mod-;",wt(e.marks.superscript)),n("Mod-'",wt(e.marks.subscript)),n("Enter",H2(j8(e.nodes.list_item),_2,B2,k2,D2)),n("Mod-[",N1(e.nodes.list_item)),n("Mod-]",sd(e.nodes.list_item)),n("Tab",sd(e.nodes.list_item)),t},RO=e=>y0(/^\s*>\s$/,e),pO=e=>y0(/^(\d+)\.\s$/,e,t=>({order:+t[1]}),(t,n)=>n.childCount+n.attrs.order===+t[1]),hO=e=>y0(/^\s*([-+*])\s$/,e),vO=()=>{const e=/(?:^|\s)((?:`)((?:[^`]+))(?:`))$/;return new vo(e,(t,n,o,l)=>{const{schema:a}=t,s=t.tr.insertText(`${n[2]} `,o,l),r=a.marks.code.create();return s.addMark(o,o+n[2].length,r)})},mO=()=>{const e=/(?:https?:\/\/)?[\w-]+(?:\.[\w-]+)+\.?(?:\d+)?(?:\/\S*)?$/;return new vo(e,(t,n,o,l)=>{const{schema:a}=t,s=t.tr.insertText(n[0],o,l),r=a.marks.link.create({href:n[0],title:n[0]});return s.addMark(o,o+n[0].length,r)})},gO=e=>{const t=[...dO,aO,sO];return t.push(RO(e.nodes.blockquote)),t.push(pO(e.nodes.ordered_list)),t.push(hO(e.nodes.bullet_list)),t.push(vO()),t.push(mO()),oO({rules:t})},SO=e=>e.type.name==="paragraph"&&e.nodeSize===2,MO=e=>new Yl({props:{decorations(t){const{$from:n}=t.selection;if(SO(n.parent)){const o=Yn.node(n.before(),n.after(),{"data-placeholder":e});return Dt.create(t.doc,[o])}}}}),OO=(e,t)=>{const n=t==null?void 0:t.placeholder,o=[gO(e),nd(fO(e)),nd($2),K8(),G8(),Z8()];return n&&o.push(MO(n)),o},xO=["p",0],PO=["blockquote",0],NO=["hr"],TO=["pre",["code",0]],XO=["br"],T1={doc:{content:"block+"},paragraph:{content:"inline*",group:"block",parseDOM:[{tag:"p"}],toDOM(){return xO}},blockquote:{content:"block+",group:"block",defining:!0,parseDOM:[{tag:"blockquote"}],toDOM(){return PO}},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM(){return NO}},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 TO}},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 XO}}},yO=["em",0],LO=["strong",0],bO=["code",0],X1={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 yO}},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 LO}},code:{parseDOM:[{tag:"code"}],toDOM(){return bO}}};new Hd({nodes:T1,marks:X1});const VO={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:a}=e.style;return o&&(n.listStyleType=o),l&&(n.fontsize=l),a&&(n.color=a),n}}],toDOM:e=>{const{order:t,listStyleType:n,fontsize:o,color:l}=e.attrs;let a="";n&&(a+=`list-style-type: ${n};`),o&&(a+=`font-size: ${o};`),l&&(a+=`color: ${l};`);const s={style:a};return t!==1&&(s.start=t),["ol",s,0]}},IO={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]}},FO={..._8,content:"paragraph block*",group:"block"},YO={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 a=+(e.getAttribute("data-indent")||0);return{align:o,indent:a,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 a={style:l};return n&&(a["data-indent"]=n),["p",a,0]}},{doc:UO,blockquote:WO,text:AO}=T1,QO={doc:UO,paragraph:YO,blockquote:WO,text:AO,ordered_list:VO,bullet_list:IO,list_item:FO},ZO={excludes:"subscript",parseDOM:[{tag:"sub"},{style:"vertical-align",getAttrs:e=>e==="sub"&&null}],toDOM:()=>["sub",0]},KO={excludes:"superscript",parseDOM:[{tag:"sup"},{style:"vertical-align",getAttrs:e=>e==="super"&&null}],toDOM:()=>["sup",0]},EO={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]},CO={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]},HO={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]}},GO={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]}},wO={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]}},JO={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]}},DO={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]},kO={attrs:{index:{default:null}},parseDOM:[{tag:"mark",getAttrs:e=>({index:e.dataset.index})}],toDOM:e=>["mark",{"data-index":e.attrs.index},0]},{em:BO,strong:_O,code:$O}=X1,zO={em:BO,strong:_O,fontsize:wO,fontname:JO,code:$O,forecolor:HO,backcolor:GO,subscript:ZO,superscript:KO,strikethrough:EO,underline:CO,link:DO,mark:kO},jO=QO,qO=zO,y1=new Hd({nodes:jO,marks:qO}),L0=e=>{const t=`
${e}
`,o=new window.DOMParser().parseFromString(t,"text/html").body.firstElementChild;return qi.fromSchema(y1).parse(o)},L1=(e,t,n,o)=>new x8(e,{state:z2.create({doc:L0(t),plugins:OO(y1,o)}),...n});function e6(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 dn=(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))(dn||{});const hn=e6(),t6=(e,t,n)=>{const{selection:o,doc:l}=e;if(!o||!l)return e;const{from:a,to:s}=o,{nodes:r}=t,c=r.blockquote,i=r.list_item,u=r.paragraph,d=[];n=n||"";const f=new Set([c,i,u]);return l.nodesBetween(a,s,(p,R)=>{const h=p.type;return(p.attrs.align||"")!==n&&f.has(h)&&d.push({node:p,pos:R,nodeType:h}),!0}),d.length&&d.forEach(p=>{const{node:R,pos:h,nodeType:v}=p;let{attrs:M}=R;n?M={...M,align:n}:M={...M,align:null},e=e.setNodeMarkup(h,v,M,R.marks)}),e},n6=(e,t)=>{const{state:n}=e,{schema:o,selection:l}=n,a=t6(n.tr.setSelection(l),o,t);e.dispatch(a)};function o6(e,t,n,o){if(!e.doc)return e;const l=e.doc.nodeAt(t);if(!l)return e;const a=0,s=8;let r=(l.attrs[o]||0)+n;if(rs&&(r=s),r===l.attrs[o])return e;const c={...l.attrs,[o]:r};return e.setNodeMarkup(t,l.type,c,l.marks)}const b1=(e,t,n,o)=>{const{selection:l,doc:a}=e;if(!l||!a||!(l instanceof ln||l instanceof Qd))return e;const{from:s,to:r}=l;return a.nodesBetween(s,r,(c,i)=>{const u=c.type;return u.name==="paragraph"||u.name==="blockquote"?(e=o6(e,i,n,o),!1):!oa(c,t)}),e},l6=(e,t)=>{const{state:n}=e,{schema:o,selection:l}=n,a=b1(n.tr.setSelection(l),o,t,"indent");return a.docChanged?(e.dispatch(a),!0):!1},s6=(e,t)=>{const{state:n}=e,{schema:o,selection:l}=n,a=b1(n.tr.setSelection(l),o,t,"textIndent");return a.docChanged?(e.dispatch(a),!0):!1},ha=(e,t,n,o={})=>(l,a)=>{const{schema:s,selection:r}=l,{$from:c,$to:i}=r,u=c.blockRange(i);if(!u)return!1;const d=j2(p=>oa(p,s))(r);if(u.depth>=1&&d&&u.depth-d.depth<=1){if(d.node.type===e&&!n)return N1(t)(l,a);if(oa(d.node,s)&&e.validContent(d.node.content)){const{tr:p}=l,R={...d.node.attrs,...o};return n&&(R.listStyleType=n),p.setNodeMarkup(d.pos,e,R),a&&a(p),!1}}const f={...o};return n&&(f.listStyleType=n),$8(e,f)(l,a)},Cl=(e,t)=>{const{state:n}=e,{schema:o,selection:l}=n,a=n.tr.setSelection(l),{doc:s}=a;if(!s)return a;const{from:r,to:c}=l;s.nodesBetween(r,c,(i,u)=>{if(oa(i,o)&&r-3<=u&&c+3>=u+i.nodeSize){const d=Array.isArray(t)?t:[t];for(const f of d)a.setNodeAttribute(u,f.key,f.value)}return!1}),e.dispatch(a)},a6=pe({__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,a=Le(),{handleElementId:s,textFormatPainter:r,richTextAttrs:c}=de(a),i=_();let u;const d=Et.debounce(function(S=!1){o.value.replace(/ style=\"\"/g,"")!==u.dom.innerHTML.replace(/ style=\"\"/g,"")&&l("update",{value:u.dom.innerHTML,ignore:S})},300,{trailing:!0}),f=()=>{a.setDisableHotkeysState(!0),l("focus")},p=()=>{a.setDisableHotkeysState(!1),l("blur")},R=Et.debounce(function(){const S=ii(u,{color:o.defaultColor,fontname:o.defaultFontName});a.setRichtextAttrs(S)},30,{trailing:!0}),h=(S,P)=>{const{ctrlKey:b,shiftKey:N,metaKey:x}=P,T=b||N||x,y=P.key.toUpperCase(),Y=T&&(y===We.Z||y===We.Y);d(Y),R()},v=ee(()=>o.value);Ce(v,()=>{if(!u||u.hasFocus())return;const{doc:S,tr:P}=u.state;u.dispatch(P.replaceRangeWith(0,S.content.size,L0(v.value)))}),Ce(()=>o.editable,()=>{u.setProps({editable:()=>o.editable})}),t({focus:()=>u.focus()});const g=({target:S,action:P})=>{if(!S&&s.value!==o.elementId||S&&S!==o.elementId)return;const b="command"in P?[P]:P;for(const N of b)if(N.command==="fontname"&&N.value){const x=u.state.schema.marks.fontname.create({fontname:N.value});Bt(u),$n(u,x)}else if(N.command==="fontsize"&&N.value){const x=u.state.schema.marks.fontsize.create({fontsize:N.value});Bt(u),$n(u,x),Cl(u,{key:"fontsize",value:N.value})}else if(N.command==="fontsize-add"){const x=N.value?+N.value:2;Bt(u);const T=B0(u)+x+"px",y=u.state.schema.marks.fontsize.create({fontsize:T});$n(u,y),Cl(u,{key:"fontsize",value:T})}else if(N.command==="fontsize-reduce"){const x=N.value?+N.value:2;Bt(u);let T=B0(u)-x;T<12&&(T=12);const y=u.state.schema.marks.fontsize.create({fontsize:T+"px"});$n(u,y),Cl(u,{key:"fontsize",value:T+"px"})}else if(N.command==="color"&&N.value){const x=u.state.schema.marks.forecolor.create({color:N.value});Bt(u),$n(u,x),Cl(u,{key:"color",value:N.value})}else if(N.command==="backcolor"&&N.value){const x=u.state.schema.marks.backcolor.create({backcolor:N.value});Bt(u),$n(u,x)}else if(N.command==="bold")Bt(u),wt(u.state.schema.marks.strong)(u.state,u.dispatch);else if(N.command==="em")Bt(u),wt(u.state.schema.marks.em)(u.state,u.dispatch);else if(N.command==="underline")Bt(u),wt(u.state.schema.marks.underline)(u.state,u.dispatch);else if(N.command==="strikethrough")Bt(u),wt(u.state.schema.marks.strikethrough)(u.state,u.dispatch);else if(N.command==="subscript")wt(u.state.schema.marks.subscript)(u.state,u.dispatch);else if(N.command==="superscript")wt(u.state.schema.marks.superscript)(u.state,u.dispatch);else if(N.command==="blockquote")q2("blockquote",u.state)?eh(u.state,u.dispatch):th(u.state.schema.nodes.blockquote)(u.state,u.dispatch);else if(N.command==="code")wt(u.state.schema.marks.code)(u.state,u.dispatch);else if(N.command==="align"&&N.value)n6(u,N.value);else if(N.command==="indent"&&N.value)l6(u,+N.value);else if(N.command==="textIndent"&&N.value)s6(u,+N.value);else if(N.command==="bulletList"){const x=N.value||"",{bullet_list:T,list_item:y}=u.state.schema.nodes,Y={color:c.value.color,fontsize:c.value.fontsize};ha(T,y,x,Y)(u.state,u.dispatch)}else if(N.command==="orderedList"){const x=N.value||"",{ordered_list:T,list_item:y}=u.state.schema.nodes,Y={color:c.value.color,fontsize:c.value.fontsize};ha(T,y,x,Y)(u.state,u.dispatch)}else if(N.command==="clear"){Bt(u);const{$from:x,$to:T}=u.state.selection;u.dispatch(u.state.tr.removeMark(x.pos,T.pos)),Cl(u,[{key:"fontsize",value:""},{key:"color",value:""}])}else if(N.command==="link"){const x=u.state.schema.marks.link,{from:T,to:y}=u.state.selection,Y=nh(u.state.doc,T,y,x);if(Y)if(N.value){const U=u.state.schema.marks.link.create({href:N.value,title:N.value});$n(u,U,{from:Y.from.pos,to:Y.to.pos+1})}else u.dispatch(u.state.tr.removeMark(Y.from.pos,Y.to.pos+1,x));else if(oh(u.state,x))if(N.value){const U=u.state.schema.marks.link.create({href:N.value,title:N.value});$n(u,U)}else wt(x)(u.state,u.dispatch);else N.value&&(Bt(u),wt(x,{href:N.value,title:N.value})(u.state,u.dispatch))}else N.command==="insert"&&N.value&&u.dispatch(u.state.tr.insertText(N.value));u.focus(),d(),R()},m=()=>{if(!r.value)return;const{keep:S,...P}=r.value,b=[{command:"clear"}];for(const N of Object.keys(P)){const x=N,T=r.value[N];T===!0?b.push({command:x}):T&&b.push({command:x,value:T})}g({action:b}),S||a.setTextFormatPainter(null)};pt(()=>{u=L1(i.value,v.value,{handleDOMEvents:{focus:f,blur:p,keydown:h,click:R,mouseup:m},editable:()=>o.editable}),o.autoFocus&&u.focus()}),Ct(()=>{u&&u.destroy()});const O=()=>{s.value===o.elementId&&R()};return hn.on(dn.RICH_TEXT_COMMAND,g),hn.on(dn.SYNC_RICH_TEXT_ATTRS_TO_STORE,O),Ct(()=>{hn.off(dn.RICH_TEXT_COMMAND,g),hn.off(dn.SYNC_RICH_TEXT_ATTRS_TO_STORE,O)}),(S,P)=>(V(),A("div",{class:re(["prosemirror-editor",{"format-painter":I(r)}]),ref_key:"editorViewRef",ref:i,onMousedown:P[0]||(P[0]=b=>l("mousedown",b))},null,34))}}),V1=Me(a6,[["__scopeId","data-v-69f4a3a5"]]),I1=e=>(at("data-v-50e519ce"),e=e(),st(),e),r6=I1(()=>X("div",{class:"drag-handler top"},null,-1)),i6=I1(()=>X("div",{class:"drag-handler bottom"},null,-1)),c6=pe({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=Le(),o=Qe(),{handleElementId:l,isScaling:a}=de(n),{addHistorySnapshot:s}=_e(),r=_(),c=ee(()=>t.elementInfo.shadow),{shadowStyle:i}=Xa(c),u=(g,m=!0)=>{t.elementInfo.lock||(g.stopPropagation(),t.selectElement(g,t.elementInfo,m))},d=_(-1),f=_(-1);Ce(a,()=>{l.value===t.elementInfo.id&&(a.value||(!t.elementInfo.vertical&&d.value!==-1&&(o.updateElement({id:t.elementInfo.id,props:{height:d.value}}),d.value=-1),t.elementInfo.vertical&&f.value!==-1&&(o.updateElement({id:t.elementInfo.id,props:{width:f.value}}),f.value=-1)))});const p=g=>{const m=g[0].contentRect;if(!r.value)return;const O=m.height+20,S=m.width+20;!t.elementInfo.vertical&&t.elementInfo.height!==O&&(a.value?d.value=O:o.updateElement({id:t.elementInfo.id,props:{height:O}})),t.elementInfo.vertical&&t.elementInfo.width!==S&&(a.value?f.value=S:o.updateElement({id:t.elementInfo.id,props:{width:S}}))},R=new ResizeObserver(p);pt(()=>{r.value&&R.observe(r.value)}),Ct(()=>{r.value&&R.unobserve(r.value)});const h=(g,m=!1)=>{o.updateElement({id:t.elementInfo.id,props:{content:g}}),m||s()},v=Et.debounce(function(){t.elementInfo.content.replace(/<[^>]+>/g,"")||o.deleteElement(t.elementInfo.id)},300,{trailing:!0}),M=ee(()=>l.value===t.elementInfo.id);return Ce(M,()=>{M.value||v()}),(g,m)=>{const O=Mt("contextmenu");return V(),A("div",{class:re(["editable-element-text",{lock:g.elementInfo.lock}]),style:ue({top:g.elementInfo.top+"px",left:g.elementInfo.left+"px",width:g.elementInfo.width+"px",height:g.elementInfo.height+"px"})},[X("div",{class:"rotate-wrapper",style:ue({transform:`rotate(${g.elementInfo.rotate}deg)`})},[xe((V(),A("div",{class:"element-content",ref_key:"elementRef",ref:r,style:ue({width:g.elementInfo.vertical?"auto":g.elementInfo.width+"px",height:g.elementInfo.vertical?g.elementInfo.height+"px":"auto",backgroundColor:g.elementInfo.fill,opacity:g.elementInfo.opacity,textShadow:I(i),lineHeight:g.elementInfo.lineHeight,letterSpacing:(g.elementInfo.wordSpace||0)+"px",color:g.elementInfo.defaultColor,fontFamily:g.elementInfo.defaultFontName,writingMode:g.elementInfo.vertical?"vertical-rl":"horizontal-tb"}),onMousedown:m[2]||(m[2]=S=>u(S)),onTouchstart:m[3]||(m[3]=S=>u(S))},[L(wd,{width:g.elementInfo.width,height:g.elementInfo.height,outline:g.elementInfo.outline},null,8,["width","height","outline"]),L(V1,{class:"text",elementId:g.elementInfo.id,defaultColor:g.elementInfo.defaultColor,defaultFontName:g.elementInfo.defaultFontName,editable:!g.elementInfo.lock,value:g.elementInfo.content,style:ue({"--paragraphSpace":`${g.elementInfo.paragraphSpace===void 0?5:g.elementInfo.paragraphSpace}px`}),onUpdate:m[0]||(m[0]=({value:S,ignore:P})=>h(S,P)),onMousedown:m[1]||(m[1]=S=>u(S,!1))},null,8,["elementId","defaultColor","defaultFontName","editable","value","style"]),r6,i6],36)),[[O,g.contextmenus]])],4)],6)}}}),u6=Me(c6,[["__scopeId","data-v-50e519ce"]]),d6=["width","height"],f6={key:0},R6=["transform"],p6=["d","fill","stroke","stroke-width","stroke-dasharray"],h6=pe({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=Le(),o=Qe(),{handleElementId:l,shapeFormatPainter:a}=de(n),{addHistorySnapshot:s}=_e(),r=(N,x=!0)=>{t.elementInfo.lock||(N.stopPropagation(),t.selectElement(N,t.elementInfo,x))},c=()=>{if(!a.value)return;const{keep:N,...x}=a.value;o.updateElement({id:t.elementInfo.id,props:x}),s(),N||n.setShapeFormatPainter(null)},i=ee(()=>t.elementInfo.outline),{outlineWidth:u,outlineColor:d,strokeDashArray:f}=Mh(i),p=ee(()=>t.elementInfo.shadow),{shadowStyle:R}=Xa(p),h=ee(()=>t.elementInfo.flipH),v=ee(()=>t.elementInfo.flipV),{flipStyle:M}=Gd(h,v),g=_(!1);Ce(l,()=>{l.value!==t.elementInfo.id&&g.value&&(g.value=!1)});const m=ee(()=>{const N={content:"",defaultFontName:"微软雅黑",defaultColor:"#000",align:"middle"};return t.elementInfo.text?t.elementInfo.text:N}),O=(N,x=!1)=>{const T={...m.value,content:N};o.updateElement({id:t.elementInfo.id,props:{text:T}}),x||s()},S=()=>{if(!t.elementInfo.text)return;t.elementInfo.text.content.replace(/<[^>]+>/g,"")||(o.removeElementProps({id:t.elementInfo.id,propName:"text"}),s())},P=_(),b=()=>{g.value=!0,St(()=>P.value&&P.value.focus())};return(N,x)=>{const T=Mt("contextmenu");return V(),A("div",{class:re(["editable-element-shape",{lock:N.elementInfo.lock,"format-painter":I(a)}]),style:ue({top:N.elementInfo.top+"px",left:N.elementInfo.left+"px",width:N.elementInfo.width+"px",height:N.elementInfo.height+"px"})},[X("div",{class:"rotate-wrapper",style:ue({transform:`rotate(${N.elementInfo.rotate}deg)`})},[xe((V(),A("div",{class:"element-content",style:ue({opacity:N.elementInfo.opacity,filter:I(R)?`drop-shadow(${I(R)})`:"",transform:I(M),color:m.value.defaultColor,fontFamily:m.value.defaultFontName}),onMousedown:x[3]||(x[3]=y=>r(y)),onMouseup:x[4]||(x[4]=y=>c()),onTouchstart:x[5]||(x[5]=y=>r(y)),onDblclick:x[6]||(x[6]=y=>b())},[(V(),A("svg",{overflow:"visible",width:N.elementInfo.width,height:N.elementInfo.height},[N.elementInfo.gradient?(V(),A("defs",f6,[L(Oh,{id:`editabel-gradient-${N.elementInfo.id}`,type:N.elementInfo.gradient.type,colors:N.elementInfo.gradient.colors,rotate:N.elementInfo.gradient.rotate},null,8,["id","type","colors","rotate"])])):Re("",!0),X("g",{transform:`scale(${N.elementInfo.width/(N.elementInfo.viewBox[0]||N.elementInfo.viewBox)}, ${N.elementInfo.height/(N.elementInfo.viewBox[1]||N.elementInfo.viewBox)}) translate(0,0) matrix(1,0,0,1,0,0)`},[X("path",{class:"shape-path","vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",d:N.elementInfo.path,fill:N.elementInfo.gradient?`url(#editabel-gradient-${N.elementInfo.id})`:N.elementInfo.fill,stroke:I(d),"stroke-width":I(u),"stroke-dasharray":I(f)},null,8,p6)],8,R6)],8,d6)),X("div",{class:re(["shape-text",[m.value.align,{editable:g.value||m.value.content}]])},[g.value||m.value.content?(V(),te(V1,{key:0,ref_key:"prosemirrorEditorRef",ref:P,elementId:N.elementInfo.id,defaultColor:m.value.defaultColor,defaultFontName:m.value.defaultFontName,editable:!N.elementInfo.lock,value:m.value.content,onUpdate:x[0]||(x[0]=({value:y,ignore:Y})=>O(y,Y)),onBlur:x[1]||(x[1]=y=>S()),onMousedown:x[2]||(x[2]=y=>r(y,!1))},null,8,["elementId","defaultColor","defaultFontName","editable","value"])):Re("",!0)],2)],36)),[[T,N.contextmenus]])],4)],6)}}}),v6=Me(h6,[["__scopeId","data-v-ac679947"]]),m6=["width","height"],g6=["d","stroke","stroke-width","stroke-dasharray","marker-start","marker-end"],S6=["d"],M6=pe({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=i=>{t.elementInfo.lock||(i.stopPropagation(),t.selectElement(i,t.elementInfo))},o=ee(()=>t.elementInfo.shadow),{shadowStyle:l}=Xa(o),a=ee(()=>{const i=Math.abs(t.elementInfo.start[0]-t.elementInfo.end[0]);return i<24?24:i}),s=ee(()=>{const i=Math.abs(t.elementInfo.start[1]-t.elementInfo.end[1]);return i<24?24:i}),r=ee(()=>{const i=t.elementInfo.width;return t.elementInfo.style==="dashed"?i<=8?`${i*5} ${i*2.5}`:`${i*5} ${i*1.5}`:t.elementInfo.style==="dotted"?i<=8?`${i*1.8} ${i*1.6}`:`${i*1.5} ${i*1.2}`:"0 0"}),c=ee(()=>xh(t.elementInfo));return(i,u)=>{const d=Mt("contextmenu");return V(),A("div",{class:re(["editable-element-shape",{lock:i.elementInfo.lock}]),style:ue({top:i.elementInfo.top+"px",left:i.elementInfo.left+"px"})},[X("div",{class:"element-content",style:ue({filter:I(l)?`drop-shadow(${I(l)})`:""}),onMousedown:u[0]||(u[0]=f=>n(f)),onTouchstart:u[1]||(u[1]=f=>n(f))},[(V(),A("svg",{overflow:"visible",width:a.value,height:s.value},[X("defs",null,[i.elementInfo.points[0]?(V(),te(sa,{key:0,id:i.elementInfo.id,position:"start",type:i.elementInfo.points[0],color:i.elementInfo.color,baseSize:i.elementInfo.width},null,8,["id","type","color","baseSize"])):Re("",!0),i.elementInfo.points[1]?(V(),te(sa,{key:1,id:i.elementInfo.id,position:"end",type:i.elementInfo.points[1],color:i.elementInfo.color,baseSize:i.elementInfo.width},null,8,["id","type","color","baseSize"])):Re("",!0)]),X("path",{class:"line-point",d:c.value,stroke:i.elementInfo.color,"stroke-width":i.elementInfo.width,"stroke-dasharray":r.value,fill:"none","marker-start":i.elementInfo.points[0]?`url(#${i.elementInfo.id}-${i.elementInfo.points[0]}-start)`:"","marker-end":i.elementInfo.points[1]?`url(#${i.elementInfo.id}-${i.elementInfo.points[1]}-end)`:""},null,8,g6),xe(X("path",{class:"line-path",d:c.value,stroke:"transparent","stroke-width":"20",fill:"none"},null,8,S6),[[d,i.contextmenus]])],8,m6))],36)],6)}}}),O6=Me(M6,[["__scopeId","data-v-4bb147a5"]]),x6=pe({__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=()=>{hn.emit(dn.OPEN_CHART_DATA_EDITOR)};return(l,a)=>{const s=Mt("contextmenu");return V(),A("div",{class:re(["editable-element-chart",{lock:l.elementInfo.lock}]),style:ue({top:l.elementInfo.top+"px",left:l.elementInfo.left+"px",width:l.elementInfo.width+"px",height:l.elementInfo.height+"px"})},[X("div",{class:"rotate-wrapper",style:ue({transform:`rotate(${l.elementInfo.rotate}deg)`})},[xe((V(),A("div",{class:"element-content",style:ue({backgroundColor:l.elementInfo.fill}),onMousedown:a[0]||(a[0]=r=>n(r)),onTouchstart:a[1]||(a[1]=r=>n(r)),onDblclick:a[2]||(a[2]=r=>o())},[L(wd,{width:l.elementInfo.width,height:l.elementInfo.height,outline:l.elementInfo.outline},null,8,["width","height","outline"]),L(Ph,{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)),[[s,l.contextmenus]])],4)],6)}}}),P6=Me(x6,[["__scopeId","data-v-3b1105a2"]]),N6=["innerHTML"],T6=pe({__name:"CustomTextarea",props:{value:{default:""}},emits:["updateValue","insertExcelData"],setup(e,{emit:t}){const n=e,o=t,l=_(),a=_(""),s=_(!1);Ce(()=>n.value,()=>{s.value||(a.value=n.value,l.value&&(l.value.innerHTML=n.value))},{immediate:!0});const r=()=>{if(!l.value)return;const u=l.value.innerHTML;o("updateValue",u)},c=()=>{s.value=!0,l.value&&(l.value.onpaste=u=>{if(u.preventDefault(),!u.clipboardData)return;const d=u.clipboardData.items[0];d&&d.kind==="string"&&d.type==="text/plain"&&d.getAsString(f=>{if(typeof f0(f)=="object")return;const R=Vf(f);if(R){o("insertExcelData",R),l.value&&(l.value.innerHTML=R[0][0]);return}document.execCommand("insertText",!1,f)})})},i=()=>{s.value=!1,l.value&&(l.value.onpaste=null)};return ro(()=>{l.value&&(l.value.onpaste=null)}),(u,d)=>(V(),A("div",{class:"custom-textarea",ref_key:"textareaRef",ref:l,contenteditable:!0,onFocus:d[0]||(d[0]=f=>c()),onBlur:d[1]||(d[1]=f=>i()),onInput:d[2]||(d[2]=f=>r()),innerHTML:a.value},null,40,N6))}}),X6=Me(T6,[["__scopeId","data-v-738bec9b"]]),y6={key:0,class:"handler"},L6=["onMousedown"],b6=["width"],V6=["rowspan","colspan","data-cell-index","onMousedown","onMouseenter"],I6=["innerHTML"],F6=pe({__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}=de(Le()),a=_(!1),s=_([]),r=_([]),c=ee({get(){return n.data},set(k){o("change",k)}}),i=ee(()=>n.theme),{subThemeColor:u}=Nh(i),d=_([]),f=ee(()=>d.value.reduce((k,j)=>k+j));Ce([()=>n.colWidths,()=>n.width],()=>{d.value=n.colWidths.map(k=>k*n.width)},{immediate:!0});const p=()=>{s.value=[],r.value=[]};Ce(()=>n.editable,()=>{n.editable||p()});const R=ee(()=>{const k=[];for(let j=1;j$+ae);k.push(K)}return k}),h=ee(()=>n.data),{hideCells:v}=Th(h),M=ee(()=>{if(!s.value.length)return[];const[k,j]=s.value;if(!r.value.length)return[`${k}_${j}`];const[K,$]=r.value;if(k===K&&j===$)return[`${k}_${j}`];const ae=[],fe=Math.min(k,K),Ne=Math.min(j,$),Fe=Math.max(k,K),Ue=Math.max(j,$);for(let Oe=0;Oe=fe&&Oe<=Fe&&Te>=Ne&&Te<=Ue&&ae.push(`${Oe}_${Te}`)}return ae});Ce(M,(k,j)=>{Et.isEqual(k,j)||o("changeSelectedCells",M.value)});const g=ee(()=>M.value.length>1?null:M.value[0]),m=()=>a.value=!1,O=(k,j,K)=>{k.button===0&&(r.value=[],a.value=!0,s.value=[j,K])},S=(k,j)=>{a.value&&(r.value=[k,j])};pt(()=>{document.addEventListener("mouseup",m)}),Ct(()=>{document.removeEventListener("mouseup",m)});const P=(k,j)=>v.value.includes(`${k}_${j}`),b=k=>{const j=c.value.length-1;s.value=[0,k],r.value=[j,k]},N=k=>{const j=c.value[k].length-1;s.value=[k,0],r.value=[k,j]},x=()=>{const k=c.value.length-1,j=c.value[k].length-1;s.value=[0,0],r.value=[k,j]},T=k=>{const j=JSON.parse(JSON.stringify(c.value)),K=c.value[k],$=[];for(let ae=0;ae=0;fe--)if(!P(fe,ae)){j[fe][ae].rowspan=j[fe][ae].rowspan-1;break}j.splice(k,1),c.value=j},y=k=>{const j=JSON.parse(JSON.stringify(c.value)),K=[];for(let $=0;$=0;ae--)if(!P($,ae)){j[$][ae].colspan=j[$][ae].colspan-1;break}c.value=j.map($=>($.splice(k,1),$)),d.value.splice(k,1),o("changeColWidths",d.value)},Y=k=>{const j=JSON.parse(JSON.stringify(c.value)),K=[];for(let $=0;${c.value=c.value.map(j=>{const K={colspan:1,rowspan:1,text:"",id:Pt(10)};return j.splice(k,0,K),j}),d.value.splice(k,0,100),o("changeColWidths",d.value)},W=(k,j)=>{let K=JSON.parse(JSON.stringify(c.value));const $={colspan:1,rowspan:1,text:""};if(k){const ae=[];for(let fe=0;fe{const fe=[];for(let Ne=0;Ne{const[k,j]=s.value,[K,$]=r.value,ae=Math.min(k,K),fe=Math.min(j,$),Ne=Math.max(k,K),Fe=Math.max(j,$),Ue=JSON.parse(JSON.stringify(c.value));Ue[ae][fe].rowspan=Ne-ae+1,Ue[ae][fe].colspan=Fe-fe+1,c.value=Ue,p()},F=(k,j)=>{const K=JSON.parse(JSON.stringify(c.value));K[k][j].rowspan=1,K[k][j].colspan=1,c.value=K,p()},J=(k,j)=>{p();let K=!0;const $=d.value[j],ae=k.pageX,fe=50;document.onmousemove=Ne=>{if(!K)return;const Fe=(Ne.pageX-ae)/l.value,Ue=$+Fe{K=!1,document.onmousemove=null,document.onmouseup=null,o("changeColWidths",d.value)}},w=()=>{const k=JSON.parse(JSON.stringify(c.value));for(let j=0;j{St(()=>{const k=document.querySelector(".cell-text.active");k&&k.focus()})},se=()=>{const k=(ae,fe)=>c.value[ae]?c.value[ae][fe]?P(ae,fe)?k(ae,fe+1):[ae,fe]:k(ae+1,0):null;r.value=[];const j=s.value[0],K=s.value[1]+1,$=k(j,K);$?s.value=$:(Y(j+1),s.value=[j+1,0]),q()},H=k=>{const j=+M.value[0].split("_")[0],K=+M.value[0].split("_")[1],$=c.value.length,ae=c.value[0].length,fe=Ne=>{if(Ne[0]<0||Ne[1]<0||Ne[0]>$-1||Ne[1]>ae-1)return[0,0];const Fe=`${Ne[0]}_${Ne[1]}`;return v.value.includes(Fe)?k==="UP"?fe([Ne[0],Ne[1]-1]):k==="DOWN"?fe([Ne[0],Ne[1]-1]):k==="LEFT"?fe([Ne[0]-1,Ne[1]]):k==="RIGHT"?fe([Ne[0]-1,Ne[1]]):[0,0]:Ne};if(k==="UP"){const Ne=j-1;if(Ne<0)return;r.value=[],s.value=fe([Ne,K])}else if(k==="DOWN"){const Ne=j+1;if(Ne>$-1)return;r.value=[],s.value=fe([Ne,K])}else if(k==="LEFT"){const Ne=K-1;if(Ne<0)return;r.value=[],s.value=fe([j,Ne])}else if(k==="RIGHT"){const Ne=K+1;if(Ne>ae-1)return;r.value=[],s.value=fe([j,Ne])}q()},G=k=>{var K;const j=window.getSelection();if(j&&j.rangeCount>0){const $=j.getRangeAt(0),ae=$.cloneRange();ae.selectNodeContents(k),ae.setEnd($.startContainer,$.startOffset);const fe=ae.toString().length;ae.setEnd($.endContainer,$.endOffset);const Ne=ae.toString().length,Fe=((K=k.textContent)==null?void 0:K.length)||0;return{start:fe,end:Ne,len:Fe}}return null},Q=k=>{if(!n.editable||!M.value.length)return;const j=k.key.toUpperCase();if(M.value.length<2){if(j===We.TAB)k.preventDefault(),se();else if(k.ctrlKey&&j===We.UP){k.preventDefault();const K=+M.value[0].split("_")[0];Y(K)}else if(k.ctrlKey&&j===We.DOWN){k.preventDefault();const K=+M.value[0].split("_")[0];Y(K+1)}else if(k.ctrlKey&&j===We.LEFT){k.preventDefault();const K=+M.value[0].split("_")[1];U(K)}else if(k.ctrlKey&&j===We.RIGHT){k.preventDefault();const K=+M.value[0].split("_")[1];U(K+1)}else if(j===We.UP){const K=G(k.target);K&&K.start===K.end&&K.start===0&&H("UP")}else if(j===We.DOWN){const K=G(k.target);K&&K.start===K.end&&K.start===K.len&&H("DOWN")}else if(j===We.LEFT){const K=G(k.target);K&&K.start===K.end&&K.start===0&&H("LEFT")}else if(j===We.RIGHT){const K=G(k.target);K&&K.start===K.end&&K.start===K.len&&H("RIGHT")}}else j===We.DELETE&&w()};pt(()=>{document.addEventListener("keydown",Q)}),Ct(()=>{document.removeEventListener("keydown",Q)});const E=Et.debounce(function(k,j,K){c.value[j][K].text=k,o("change",c.value)},300,{trailing:!0}),le=(k,j,K)=>{const $=k.length,ae=k[0].length;let fe=0,Ne=0;j+$>c.value.length&&(fe=j+$-c.value.length),K+ae>c.value[0].length&&(Ne=K+ae-c.value[0].length),(fe||Ne)&&W(fe,Ne),St(()=>{for(let Fe=0;Fe<$;Fe++)for(let Ue=0;Ue{const k=[];for(let j=0;j{const k=B(),j=k.length>1,K=k[0].length>1;return{canDeleteRow:j,canDeleteCol:K}},z=(k,j)=>{const K=M.value.length>1,$=c.value[k][j],ae=K,fe=!K&&($.rowspan>1||$.colspan>1);return{canMerge:ae,canSplit:fe}},he=k=>{const j=k.dataset.cellIndex,K=+j.split("_")[0],$=+j.split("_")[1];M.value.includes(`${K}_${$}`)||(s.value=[K,$],r.value=[]);const{canMerge:ae,canSplit:fe}=z(K,$),{canDeleteRow:Ne,canDeleteCol:Fe}=D();return[{text:"插入列",children:[{text:"到左侧",handler:()=>U($)},{text:"到右侧",handler:()=>U($+1)}]},{text:"插入行",children:[{text:"到上方",handler:()=>Y(K)},{text:"到下方",handler:()=>Y(K+1)}]},{text:"删除列",disable:!Fe,handler:()=>y($)},{text:"删除行",disable:!Ne,handler:()=>T(K)},{divider:!0},{text:"合并单元格",disable:!ae,handler:C},{text:"取消合并单元格",disable:!fe,handler:()=>F(K,$)},{divider:!0},{text:"选中当前列",handler:()=>b($)},{text:"选中当前行",handler:()=>N(K)},{text:"选中全部单元格",handler:x}]};return(k,j)=>{var $,ae,fe,Ne,Fe;const K=Mt("contextmenu");return V(),A("div",{class:"editable-table",style:ue({width:f.value+"px"})},[k.editable?(V(),A("div",y6,[(V(!0),A(me,null,ye(R.value,(Ue,Oe)=>(V(),A("div",{class:"drag-line",key:Oe,style:ue({left:Ue+"px"}),onMousedown:Se=>J(Se,Oe)},null,44,L6))),128))])):Re("",!0),X("table",{class:re({theme:i.value,"row-header":($=i.value)==null?void 0:$.rowHeader,"row-footer":(ae=i.value)==null?void 0:ae.rowFooter,"col-header":(fe=i.value)==null?void 0:fe.colHeader,"col-footer":(Ne=i.value)==null?void 0:Ne.colFooter}),style:ue(`--themeColor: ${(Fe=i.value)==null?void 0:Fe.color}; --subThemeColor1: ${I(u)[0]}; --subThemeColor2: ${I(u)[1]}`)},[X("colgroup",null,[(V(!0),A(me,null,ye(d.value,(Ue,Oe)=>(V(),A("col",{span:"1",key:Oe,width:Ue},null,8,b6))),128))]),X("tbody",null,[(V(!0),A(me,null,ye(c.value,(Ue,Oe)=>(V(),A("tr",{key:Oe,style:ue({height:k.cellMinHeight+"px"})},[(V(!0),A(me,null,ye(Ue,(Se,Te)=>xe((V(),A("td",{class:re(["cell",{selected:M.value.includes(`${Oe}_${Te}`)&&M.value.length>1,active:g.value===`${Oe}_${Te}`}]),style:ue({borderStyle:k.outline.style,borderColor:k.outline.color,borderWidth:k.outline.width+"px",...I(Xh)(Se.style)}),key:Se.id,rowspan:Se.rowspan,colspan:Se.colspan,"data-cell-index":`${Oe}_${Te}`,onMousedown:ve=>O(ve,Oe,Te),onMouseenter:ve=>S(Oe,Te)},[g.value===`${Oe}_${Te}`?(V(),te(X6,{key:0,class:re(["cell-text",{active:g.value===`${Oe}_${Te}`}]),style:ue({minHeight:k.cellMinHeight-4+"px"}),value:Se.text,onUpdateValue:ve=>I(E)(ve,Oe,Te),onInsertExcelData:ve=>le(ve,Oe,Te)},null,8,["class","style","value","onUpdateValue","onInsertExcelData"])):(V(),A("div",{key:1,class:"cell-text",style:ue({minHeight:k.cellMinHeight-4+"px"}),innerHTML:I(yh)(Se.text)},null,12,I6))],46,V6)),[[to,!I(v).includes(`${Oe}_${Te}`)],[K,ve=>he(ve)]])),128))],4))),128))])],6)],4)}}}),Y6=Me(F6,[["__scopeId","data-v-46c7aa10"]]),U6={class:"element-content"},W6=pe({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=Le(),o=Qe(),{canvasScale:l,handleElementId:a,isScaling:s}=de(n),r=_(),{addHistorySnapshot:c}=_e(),i=g=>{t.elementInfo.lock||(g.stopPropagation(),t.selectElement(g,t.elementInfo))},u=_(!1);Ce(a,()=>{a.value!==t.elementInfo.id&&(u.value=!1)}),Ce(u,()=>{n.setDisableHotkeysState(u.value)});const d=()=>{t.elementInfo.lock||(u.value=!0)},f=_(-1);Ce(s,()=>{a.value===t.elementInfo.id&&(s.value&&(u.value=!1),!s.value&&f.value!==-1&&(o.updateElement({id:t.elementInfo.id,props:{height:f.value}}),f.value=-1))});const p=g=>{const m=g[0].contentRect;if(!r.value)return;const O=m.height;t.elementInfo.height!==O&&(s.value?f.value=O:o.updateElement({id:t.elementInfo.id,props:{height:O}}))},R=new ResizeObserver(p);pt(()=>{r.value&&R.observe(r.value)}),Ct(()=>{r.value&&R.unobserve(r.value)});const h=g=>{o.updateElement({id:t.elementInfo.id,props:{data:g}}),c()},v=g=>{const m=g.reduce((S,P)=>S+P),O=g.map(S=>S/m);o.updateElement({id:t.elementInfo.id,props:{width:m,colWidths:O}}),c()},M=g=>{St(()=>n.setSelectedTableCells(g))};return(g,m)=>{const O=Mt("contextmenu");return V(),A("div",{class:re(["editable-element-table",{lock:g.elementInfo.lock}]),ref_key:"elementRef",ref:r,style:ue({top:g.elementInfo.top+"px",left:g.elementInfo.left+"px",width:g.elementInfo.width+"px"})},[X("div",{class:"rotate-wrapper",style:ue({transform:`rotate(${g.elementInfo.rotate}deg)`})},[xe((V(),A("div",U6,[L(Y6,{onMousedown:m[0]||(m[0]=He(()=>{},["stop"])),data:g.elementInfo.data,width:g.elementInfo.width,cellMinHeight:g.elementInfo.cellMinHeight,colWidths:g.elementInfo.colWidths,outline:g.elementInfo.outline,theme:g.elementInfo.theme,editable:u.value,onChange:m[1]||(m[1]=S=>h(S)),onChangeColWidths:m[2]||(m[2]=S=>v(S)),onChangeSelectedCells:m[3]||(m[3]=S=>M(S))},null,8,["data","width","cellMinHeight","colWidths","outline","theme","editable"]),!u.value||g.elementInfo.lock?(V(),A("div",{key:0,class:re(["table-mask",{lock:g.elementInfo.lock}]),onDblclick:m[4]||(m[4]=S=>d()),onMousedown:m[5]||(m[5]=S=>i(S)),onTouchstart:m[6]||(m[6]=S=>i(S))},[I(a)===g.elementInfo.id?(V(),A("div",{key:0,class:"mask-tip",style:ue({transform:`scale(${1/I(l)})`})},"双击编辑",4)):Re("",!0)],34)):Re("",!0)])),[[O,g.contextmenus]])],4)],6)}}}),A6=Me(W6,[["__scopeId","data-v-c58bc4e2"]]),Q6=["width","height","stroke","stroke-width"],Z6=["transform"],K6=["d"],E6=pe({__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=()=>{hn.emit(dn.OPEN_LATEX_EDITOR)};return(l,a)=>{const s=Mt("contextmenu");return V(),A("div",{class:re(["editable-element-latex",{lock:l.elementInfo.lock}]),style:ue({top:l.elementInfo.top+"px",left:l.elementInfo.left+"px",width:l.elementInfo.width+"px",height:l.elementInfo.height+"px"})},[X("div",{class:"rotate-wrapper",style:ue({transform:`rotate(${l.elementInfo.rotate}deg)`})},[xe((V(),A("div",{class:"element-content",onMousedown:a[0]||(a[0]=r=>n(r)),onTouchstart:a[1]||(a[1]=r=>n(r)),onDblclick:a[2]||(a[2]=r=>o())},[(V(),A("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"},[X("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)`},[X("path",{d:l.elementInfo.path},null,8,K6)],8,Z6)],8,Q6))],32)),[[s,l.contextmenus]])],4)],6)}}}),C6=Me(E6,[["__scopeId","data-v-e3bc936e"]]),H6=pe({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,{canvasScale:n}=de(Le()),o=(l,a=!0)=>{t.elementInfo.lock||(l.stopPropagation(),t.selectElement(l,t.elementInfo,a))};return(l,a)=>{const s=Mt("contextmenu");return V(),A("div",{class:re(["editable-element-video",{lock:l.elementInfo.lock}]),style:ue({top:l.elementInfo.top+"px",left:l.elementInfo.left+"px",width:l.elementInfo.width+"px",height:l.elementInfo.height+"px"})},[X("div",{class:"rotate-wrapper",style:ue({transform:`rotate(${l.elementInfo.rotate}deg)`})},[xe((V(),A("div",{class:"element-content",onMousedown:a[2]||(a[2]=r=>o(r,!1)),onTouchstart:a[3]||(a[3]=r=>o(r,!1))},[L(Lh,{width:l.elementInfo.width,height:l.elementInfo.height,src:l.elementInfo.src,poster:l.elementInfo.poster,scale:I(n)},null,8,["width","height","src","poster","scale"]),(V(),A(me,null,ye(["t","b","l","r"],r=>X("div",{class:re(["handler-border",r]),key:r,onMousedown:a[0]||(a[0]=c=>o(c)),onTouchstart:a[1]||(a[1]=c=>o(c))},null,34)),64))],32)),[[s,l.contextmenus]])],4)],6)}}}),G6=Me(H6,[["__scopeId","data-v-1d545cfa"]]),w6=pe({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,{canvasScale:n,handleElementId:o}=de(Le()),{viewportRatio:l,viewportSize:a}=de(Qe()),s=ee(()=>Math.min(t.elementInfo.width,t.elementInfo.height)+"px"),r=ee(()=>{const i=a.value,u=a.value*l.value,d=280/n.value,f=50/n.value,p=t.elementInfo.width,R=t.elementInfo.height,h=t.elementInfo.left,v=t.elementInfo.top;let M=0,g=R;return h+d>=i&&(M=p-d),v+R+f>=u&&(g=-f),{left:M+"px",top:g+"px"}}),c=i=>{t.elementInfo.lock||(i.stopPropagation(),t.selectElement(i,t.elementInfo))};return(i,u)=>{const d=ce("IconVolumeNotice"),f=Mt("contextmenu");return V(),A("div",{class:re(["editable-element-audio",{lock:i.elementInfo.lock}]),style:ue({top:i.elementInfo.top+"px",left:i.elementInfo.left+"px",width:i.elementInfo.width+"px",height:i.elementInfo.height+"px"})},[X("div",{class:"rotate-wrapper",style:ue({transform:`rotate(${i.elementInfo.rotate}deg)`})},[xe((V(),A("div",{class:"element-content",onMousedown:u[1]||(u[1]=p=>c(p)),onTouchstart:u[2]||(u[2]=p=>c(p))},[L(d,{class:"audio-icon",style:ue({fontSize:s.value,color:i.elementInfo.color})},null,8,["style"]),I(o)===i.elementInfo.id?(V(),te(bh,{key:0,class:"audio-player",style:ue({...r.value}),src:i.elementInfo.src,loop:i.elementInfo.loop,scale:I(n),onMousedown:u[0]||(u[0]=He(()=>{},["stop"]))},null,8,["style","src","loop","scale"])):Re("",!0)],32)),[[f,i.contextmenus]])],4)],6)}}}),J6=Me(w6,[["__scopeId","data-v-620c29b4"]]),D6=pe({__name:"cloudCoachElement",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=Le(),{canvasScale:o}=de(n),l=ee(()=>n.handleElementId!==t.elementInfo.id||t.elementInfo.isMove),a=(s,r=!0)=>{t.elementInfo.lock||(s.stopPropagation(),t.selectElement(s,t.elementInfo,r))};return(s,r)=>{const c=Mt("contextmenu");return V(),A("div",{class:re(["editable-element-cloudCoach",{lock:s.elementInfo.lock}]),style:ue({top:s.elementInfo.top+"px",left:s.elementInfo.left+"px",width:s.elementInfo.width+"px",height:s.elementInfo.height+"px"})},[X("div",{class:"rotate-wrapper",style:ue({transform:`rotate(${s.elementInfo.rotate}deg)`})},[xe((V(),A("div",{class:"element-content",onMousedown:r[4]||(r[4]=i=>a(i)),onTouchstart:r[5]||(r[5]=i=>a(i))},[l.value?(V(),A("div",{key:0,onMousedown:r[0]||(r[0]=He(i=>a(i,!1),["stop"])),onTouchstart:r[1]||(r[1]=He(i=>a(i,!1),["stop"])),class:"mask"},null,32)):Re("",!0),L(I(Vh),{id:s.elementInfo.sid,width:s.elementInfo.width,height:s.elementInfo.height,scale:I(o)},null,8,["id","width","height","scale"]),(V(),A(me,null,ye(["t","b","l","r"],i=>X("div",{class:re(["handler-border",i]),key:i,onMousedown:r[2]||(r[2]=u=>a(u)),onTouchstart:r[3]||(r[3]=u=>a(u))},null,34)),64))],32)),[[c,s.contextmenus]])],4)],6)}}}),k6=Me(D6,[["__scopeId","data-v-d56dd529"]]),B6=["id"],_6=pe({__name:"EditableElement",props:{elementInfo:{},elementIndex:{},isMultiSelect:{type:Boolean},selectElement:{type:Function},openLinkDialog:{type:Function}},setup(e){const t=e,n=ee(()=>{const h={[Vt.IMAGE]:JM,[Vt.TEXT]:u6,[Vt.SHAPE]:v6,[Vt.LINE]:O6,[Vt.CHART]:P6,[Vt.TABLE]:A6,[Vt.LATEX]:C6,[Vt.ELF]:null},v={[Nl.AUDIO]:J6,[Nl.VIDEO]:G6,[Nl.SING_PLAY]:k6};return h[t.elementInfo.type]||v[t.elementInfo.subtype]||null}),{orderElement:o}=Ua(),{alignElementToCanvas:l}=m0(),{combineElements:a,uncombineElements:s}=p0(),{deleteElement:r}=Fa(),{lockElement:c,unlockElement:i}=Yf(),{copyElement:u,pasteElement:d,cutElement:f}=h0(),{selectAllElements:p}=Ya(),R=()=>t.elementInfo.lock?[{text:"解锁",handler:()=>i(t.elementInfo)}]:[{text:"剪切",subText:"Ctrl + X",handler:f},{text:"复制",subText:"Ctrl + C",handler:u},{text:"粘贴",subText:"Ctrl + V",handler:d},{divider:!0},{text:"水平居中",handler:()=>l(ft.HORIZONTAL),children:[{text:"水平垂直居中",handler:()=>l(ft.CENTER)},{text:"水平居中",handler:()=>l(ft.HORIZONTAL)},{text:"左对齐",handler:()=>l(ft.LEFT)},{text:"右对齐",handler:()=>l(ft.RIGHT)}]},{text:"垂直居中",handler:()=>l(ft.VERTICAL),children:[{text:"水平垂直居中",handler:()=>l(ft.CENTER)},{text:"垂直居中",handler:()=>l(ft.VERTICAL)},{text:"顶部对齐",handler:()=>l(ft.TOP)},{text:"底部对齐",handler:()=>l(ft.BOTTOM)}]},{divider:!0},{text:"置于顶层",disable:t.isMultiSelect&&!t.elementInfo.groupId,handler:()=>o(t.elementInfo,_t.TOP),children:[{text:"置于顶层",handler:()=>o(t.elementInfo,_t.TOP)},{text:"上移一层",handler:()=>o(t.elementInfo,_t.UP)}]},{text:"置于底层",disable:t.isMultiSelect&&!t.elementInfo.groupId,handler:()=>o(t.elementInfo,_t.BOTTOM),children:[{text:"置于底层",handler:()=>o(t.elementInfo,_t.BOTTOM)},{text:"下移一层",handler:()=>o(t.elementInfo,_t.DOWN)}]},{divider:!0},{text:"设置链接",handler:t.openLinkDialog},{text:t.elementInfo.groupId?"取消组合":"组合",subText:"Ctrl + G",handler:t.elementInfo.groupId?s:a,hide:!t.isMultiSelect},{text:"全选",subText:"Ctrl + A",handler:p},{text:"锁定",subText:"Ctrl + L",handler:c},{text:"删除",subText:"Delete",handler:r}];return(h,v)=>(V(),A("div",{class:"editable-element",ref:"elementRef",id:`editable-element-${h.elementInfo.id}`,style:ue({zIndex:h.elementIndex})},[(V(),te(Tn(n.value),{elementInfo:h.elementInfo,selectElement:h.selectElement,contextmenus:R},null,8,["elementInfo","selectElement"]))],12,B6))}}),$6=pe({__name:"MouseSelection",props:{top:{},left:{},width:{},height:{},quadrant:{}},setup(e){return(t,n)=>(V(),A("div",{class:re(`mouse-selection quadrant-${t.quadrant}`),style:ue({top:t.top+"px",left:t.left+"px",width:t.width+"px",height:t.height+"px"})},null,6))}}),z6=Me($6,[["__scopeId","data-v-c1acfb75"]]),j6={class:"grid-lines"},q6=["d","stroke"],ex=pe({__name:"GridLines",setup(e){const{canvasScale:t,gridLineSize:n}=de(Le()),{currentSlide:o,viewportRatio:l,viewportSize:a}=de(Qe()),s=ee(()=>{var i;return(i=o.value)==null?void 0:i.background}),r=ee(()=>{var d;const i=((d=s.value)==null?void 0:d.color)||"#fff",u=["#000","#fff"];return nt.mostReadable(i,u,{includeFallbackColors:!0}).setAlpha(.5).toRgbString()}),c=ee(()=>{const i=a.value,u=a.value*l.value;let d="";for(let f=0;f<=Math.floor(u/n.value);f++)d+=`M0 ${f*n.value} L${i} ${f*n.value} `;for(let f=0;f<=Math.floor(i/n.value);f++)d+=`M${f*n.value} 0 L${f*n.value} ${u} `;return d});return(i,u)=>(V(),A("svg",j6,[X("path",{style:ue({transform:`scale(${I(t)})`}),d:c.value,fill:"none",stroke:r.value,"stroke-width":"0.3","stroke-dasharray":"5"},null,12,q6)]))}}),tx=Me(ex,[["__scopeId","data-v-a0656213"]]),nx=pe({__name:"ViewportBackground",setup(e){const{gridLineSize:t}=de(Le()),{currentSlide:n}=de(Qe()),o=ee(()=>{var a;return(a=n.value)==null?void 0:a.background}),{backgroundStyle:l}=Ih(o);return(a,s)=>(V(),A("div",{class:"viewport-background",style:ue(I(l))},[I(t)?(V(),te(tx,{key:0})):Re("",!0)],4))}}),ox=Me(nx,[["__scopeId","data-v-af32677c"]]),lx=pe({__name:"AlignmentLine",props:{type:{},axis:{},length:{},canvasScale:{}},setup(e){const t=e,n=ee(()=>t.axis.x*t.canvasScale+"px"),o=ee(()=>t.axis.y*t.canvasScale+"px"),l=ee(()=>t.type==="vertical"?{height:t.length*t.canvasScale+"px"}:{width:t.length*t.canvasScale+"px"});return(a,s)=>(V(),A("div",{class:"alignment-line",style:ue({left:n.value,top:o.value})},[X("div",{class:re(["line",a.type]),style:ue(l.value)},null,6)],4))}}),sx=Me(lx,[["__scopeId","data-v-b479d842"]]),ax={class:"ruler"},rx={key:0},ix={key:0},cx=pe({__name:"Ruler",props:{viewportStyles:{},elementList:{}},setup(e){const t=e,{canvasScale:n,activeElementIdList:o}=de(Le()),{viewportRatio:l,viewportSize:a}=de(Qe()),s=_(null);Il(()=>{const c=t.elementList.filter(i=>o.value.includes(i.id));if(!c.length)return s.value=null;s.value=fo(c)});const r=ee(()=>t.viewportStyles.width*n.value/(a.value/100));return(c,i)=>(V(),A("div",ax,[X("div",{class:"h",style:ue({width:c.viewportStyles.width*I(n)+"px",left:c.viewportStyles.left+"px"})},[(V(),A(me,null,ye(20,u=>X("div",{class:re(["ruler-marker-100",{hide:r.value<36,omit:r.value<72}]),key:`h-marker-100-${u}`,style:ue({width:r.value+"px"})},[u*100<=I(a)?(V(),A("span",rx,Ye(u*100),1)):Re("",!0)],6)),64)),s.value?(V(),A("div",{key:0,class:"range",style:ue({left:s.value.minX*I(n)+"px",width:(s.value.maxX-s.value.minX)*I(n)+"px"})},null,4)):Re("",!0)],4),X("div",{class:"v",style:ue({height:c.viewportStyles.height*I(n)+"px",top:c.viewportStyles.top+"px"})},[(V(),A(me,null,ye(20,u=>X("div",{class:re(["ruler-marker-100",{hide:r.value<36,omit:r.value<72}]),key:`v-marker-100-${u}`,style:ue({height:r.value+"px"})},[u*100<=I(a)*I(l)?(V(),A("span",ix,Ye(u*100),1)):Re("",!0)],6)),64)),s.value?(V(),A("div",{key:0,class:"range",style:ue({top:s.value.minY*I(n)+"px",height:(s.value.maxY-s.value.minY)*I(n)+"px"})},null,4)):Re("",!0)],4)]))}}),ux=Me(cx,[["__scopeId","data-v-dba47cf5"]]),dx=["width","height"],fx=["d"],Rx=pe({__name:"ElementCreateSelection",emits:["created"],setup(e,{emit:t}){const n=t,o=Le(),{creatingElement:l}=de(o),{ctrlOrShiftKeyActive:a}=de(kn()),s=_(),r=_(),c=_(),i=_({x:0,y:0});pt(()=>{if(!c.value)return;const{x:p,y:R}=c.value.getBoundingClientRect();i.value={x:p,y:R}});const u=p=>{let R=!0;const h=p.pageX,v=p.pageY;s.value=[h,v],document.onmousemove=M=>{if(!l.value||!R)return;let g=M.pageX,m=M.pageY;if(a.value){const O=g-h,S=m-v,P=Math.abs(O),b=Math.abs(S);if(l.value.type==="shape"){const N=S>0&&O<0||S<0&&O>0;P>b?m=N?v-O:v+O:g=N?h-S:h+S}else l.value.type==="line"&&(P>b?m=v:g=h)}r.value=[g,m]},document.onmouseup=M=>{var S,P;if(document.onmousemove=null,document.onmouseup=null,M.button===2){setTimeout(()=>o.setCreatingElement(null),0);return}R=!1;const g=M.pageX,m=M.pageY,O=30;if(((S=l.value)==null?void 0:S.type)==="line"&&(Math.abs(g-h)>=O||Math.abs(m-v)>=O))n("created",{start:s.value,end:r.value});else if(((P=l.value)==null?void 0:P.type)!=="line"&&Math.abs(g-h)>=O&&Math.abs(m-v)>=O)n("created",{start:s.value,end:r.value});else{const N=Math.min(g,h),x=Math.min(m,v),T=Math.max(g,h),y=Math.max(m,v),Y=T-N>=O?T-N:200,U=y-x>=O?y-x:200;n("created",{start:[N,x],end:[N+Y,x+U]})}}},d=ee(()=>{if(!s.value||!r.value||!l.value||l.value.type!=="line")return null;const[p,R]=s.value,[h,v]=r.value,M=Math.min(p,h),g=Math.max(p,h),m=Math.min(R,v),O=Math.max(R,v),S=g-M>=24?g-M:24,P=O-m>=24?O-m:24,b=p===M?0:g-M,N=R===m?0:O-m,x=h===M?0:g-M,T=v===m?0:O-m,y=`M${b}, ${N} L${x}, ${T}`;return{svgWidth:S,svgHeight:P,startX:b,startY:N,endX:x,endY:T,path:y}}),f=ee(()=>{if(!s.value||!r.value)return{};const[p,R]=s.value,[h,v]=r.value,M=Math.min(p,h),g=Math.max(p,h),m=Math.min(R,v),O=Math.max(R,v),S=g-M,P=O-m;return{left:M-i.value.x+"px",top:m-i.value.y+"px",width:S+"px",height:P+"px"}});return(p,R)=>{var h,v;return V(),A("div",{class:"element-create-selection",ref_key:"selectionRef",ref:c,onMousedown:R[0]||(R[0]=He(M=>u(M),["stop"])),onContextmenu:R[1]||(R[1]=He(()=>{},["stop","prevent"]))},[s.value&&r.value?(V(),A("div",{key:0,class:re(["selection",(h=I(l))==null?void 0:h.type]),style:ue(f.value)},[((v=I(l))==null?void 0:v.type)==="line"&&d.value?(V(),A("svg",{key:0,overflow:"visible",width:d.value.svgWidth,height:d.value.svgHeight},[X("path",{d:d.value.path,stroke:"#5b9bd5",fill:"none","stroke-width":"2"},null,8,fx)],8,dx)):Re("",!0)],6)):Re("",!0)],544)}}}),px=Me(Rx,[["__scopeId","data-v-9739adcc"]]),hx={overflow:"visible"},vx=["d","fill"],mx=pe({__name:"ShapeCreateCanvas",emits:["created"],setup(e,{emit:t}){const n=t,o=Le(),{ctrlOrShiftKeyActive:l}=de(kn()),{theme:a}=de(Qe()),s=_(),r=_(!1),c=_({x:0,y:0});pt(()=>{if(!s.value)return;const{x:O,y:S}=s.value.getBoundingClientRect();c.value={x:O,y:S}});const i=_(null),u=_([]),d=_(!1),f=(O,S=!1)=>{let P=O.pageX-c.value.x,b=O.pageY-c.value.y;if(S)return{pageX:P,pageY:b};if(l.value&&u.value.length){const[N,x]=u.value[u.value.length-1];Math.abs(N-P)-Math.abs(x-b)>0?b=x:P=N}return{pageX:P,pageY:b}},p=O=>{if(r.value){const{pageX:b,pageY:N}=f(O,!0);u.value.push([b,N]),i.value=null;return}const{pageX:S,pageY:P}=f(O);if(i.value=[S,P],u.value.length>=2){const[b,N]=u.value[0];Math.abs(b-S)<5&&Math.abs(N-P)<5?d.value=!0:d.value=!1}else d.value=!1},R=ee(()=>{let O="";for(let S=0;S{const S=u.value.map(F=>F[0]),P=u.value.map(F=>F[1]),b=Math.min(...S),N=Math.min(...P),x=Math.max(...S),T=Math.max(...P),y=u.value.map(F=>[F[0]-b,F[1]-N]);let Y="";for(let F=0;F{const{pageX:S,pageY:P}=f(O);r.value=!0,d.value?n("created",h()):u.value.push([S,P]),document.onmouseup=()=>{r.value=!1}},M=()=>{o.setCreatingCustomShapeState(!1)},g=()=>{n("created",{...h(!1),fill:"rgba(0, 0, 0, 0)",outline:{width:2,color:a.value.themeColor,style:"solid"}}),M()},m=O=>{const S=O.key.toUpperCase();S===We.ESC&&M(),S===We.ENTER&&g()};return pt(()=>{zt.success("点击绘制任意形状,首尾闭合完成绘制,按 ESC 键或鼠标右键取消,按 ENTER 键提前完成",{duration:0}),document.addEventListener("keydown",m)}),Ct(()=>{document.removeEventListener("keydown",m),zt.closeAll()}),(O,S)=>(V(),A("div",{class:"shape-create-canvas",ref_key:"shapeCanvasRef",ref:s,onMousedown:S[0]||(S[0]=He(P=>v(P),["stop"])),onMousemove:S[1]||(S[1]=P=>p(P)),onContextmenu:S[2]||(S[2]=He(P=>M(),["stop","prevent"]))},[(V(),A("svg",hx,[X("path",{d:R.value,stroke:"#5b9bd5",fill:d.value?"rgba(226, 83, 77, 0.15)":"none","stroke-width":"2"},null,8,vx)]))],544))}}),gx=Me(mx,[["__scopeId","data-v-1cad1846"]]),Ql=(e,t)=>{const n=ee(()=>[{direction:Ie.LEFT_TOP,style:{}},{direction:Ie.TOP,style:{left:e.value/2+"px"}},{direction:Ie.RIGHT_TOP,style:{left:e.value+"px"}},{direction:Ie.LEFT,style:{top:t.value/2+"px"}},{direction:Ie.RIGHT,style:{left:e.value+"px",top:t.value/2+"px"}},{direction:Ie.LEFT_BOTTOM,style:{top:t.value+"px"}},{direction:Ie.BOTTOM,style:{left:e.value/2+"px",top:t.value+"px"}},{direction:Ie.RIGHT_BOTTOM,style:{left:e.value+"px",top:t.value+"px"}}]),o=ee(()=>[{direction:Ie.LEFT,style:{top:t.value/2+"px"}},{direction:Ie.RIGHT,style:{left:e.value+"px",top:t.value/2+"px"}}]),l=ee(()=>[{direction:Ie.TOP,style:{left:e.value/2+"px"}},{direction:Ie.BOTTOM,style:{left:e.value/2+"px",top:t.value+"px"}}]),a=ee(()=>[{type:Jl.T,style:{width:e.value+"px"}},{type:Jl.B,style:{top:t.value+"px",width:e.value+"px"}},{type:Jl.L,style:{height:t.value+"px"}},{type:Jl.R,style:{left:e.value+"px",height:t.value+"px"}}]);return{resizeHandlers:n,textElementResizeHandlers:o,verticalTextElementResizeHandlers:l,borderLines:a}},Sx=pe({__name:"ResizeHandler",props:{type:{},rotate:{default:0}},setup(e){const t=e,n=ee(()=>{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)=>(V(),A("div",{class:re(["resize-handler",n.value,o.type])},null,2))}}),cl=Me(Sx,[["__scopeId","data-v-844cb182"]]),Mx=pe({__name:"BorderLine",props:{type:{},isWide:{type:Boolean,default:!1}},setup(e){return(t,n)=>(V(),A("div",{class:re(["border-line",t.type,{wide:t.isWide}])},null,2))}}),Zl=Me(Mx,[["__scopeId","data-v-39bc862b"]]),Ox=pe({__name:"MultiSelectOperate",props:{elementList:{},scaleMultiElement:{type:Function}},setup(e){const t=e,{activeElementIdList:n,canvasScale:o}=de(Le()),l=ee(()=>t.elementList.filter(f=>n.value.includes(f.id))),a=_({minX:0,maxX:0,minY:0,maxY:0}),s=ee(()=>(a.value.maxX-a.value.minX)*o.value),r=ee(()=>(a.value.maxY-a.value.minY)*o.value),{resizeHandlers:c,borderLines:i}=Ql(s,r);Il(()=>{const{minX:f,maxX:p,minY:R,maxY:h}=fo(l.value);a.value={minX:f,maxX:p,minY:R,maxY:h}});const d=ee(()=>l.value.some(f=>!((f.type==="image"||f.type==="shape")&&!f.rotate)));return(f,p)=>(V(),A("div",{class:"multi-select-operate",style:ue({left:a.value.minX*I(o)+"px",top:a.value.minY*I(o)+"px"})},[(V(!0),A(me,null,ye(I(i),R=>(V(),te(Zl,{key:R.type,type:R.type,style:ue(R.style)},null,8,["type","style"]))),128)),d.value?Re("",!0):(V(!0),A(me,{key:0},ye(I(c),R=>(V(),te(cl,{key:R.direction,type:R.direction,style:ue(R.style),onMousedown:He(h=>f.scaleMultiElement(h,a.value,R.direction),["stop"])},null,8,["type","style","onMousedown"]))),128))],4))}}),xx=Me(Ox,[["__scopeId","data-v-3618c996"]]),Px={},Nx={class:"rotate-handler"};function Tx(e,t){return V(),A("div",Nx)}const Ns=Me(Px,[["render",Tx],["__scopeId","data-v-7f7f964f"]]),Xx={inheritAttrs:!1},yx=pe({...Xx,__name:"ImageElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(e){const t=e,{canvasScale:n,clipingImageElementId:o}=de(Le()),l=ee(()=>o.value===t.elementInfo.id),a=ee(()=>t.elementInfo.width*n.value),s=ee(()=>t.elementInfo.height*n.value),{resizeHandlers:r,borderLines:c}=Ql(a,s);return(i,u)=>(V(),A("div",{class:re(["image-element-operate",{cliping:l.value}])},[(V(!0),A(me,null,ye(I(c),d=>(V(),te(Zl,{class:"operate-border-line",key:d.type,type:d.type,style:ue(d.style)},null,8,["type","style"]))),128)),i.handlerVisible?(V(),A(me,{key:0},[(V(!0),A(me,null,ye(I(r),d=>(V(),te(cl,{class:"operate-resize-handler",key:d.direction,type:d.direction,rotate:i.elementInfo.rotate,style:ue(d.style),onMousedown:He(f=>i.scaleElement(f,i.elementInfo,d.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),L(Ns,{class:"operate-rotate-handler",style:ue({left:a.value/2+"px"}),onMousedown:u[0]||(u[0]=He(d=>i.rotateElement(d,i.elementInfo),["stop"]))},null,8,["style"])],64)):Re("",!0)],2))}}),Lx=Me(yx,[["__scopeId","data-v-2a1bef4e"]]),bx={class:"text-element-operate"},Vx={inheritAttrs:!1},Ix=pe({...Vx,__name:"TextElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(e){const t=e,{canvasScale:n}=de(Le()),o=ee(()=>t.elementInfo.width*n.value),l=ee(()=>t.elementInfo.height*n.value),{textElementResizeHandlers:a,verticalTextElementResizeHandlers:s,borderLines:r}=Ql(o,l),c=ee(()=>t.elementInfo.vertical?s.value:a.value);return(i,u)=>(V(),A("div",bx,[(V(!0),A(me,null,ye(I(r),d=>(V(),te(Zl,{class:"operate-border-line",key:d.type,type:d.type,style:ue(d.style)},null,8,["type","style"]))),128)),i.handlerVisible?(V(),A(me,{key:0},[(V(!0),A(me,null,ye(c.value,d=>(V(),te(cl,{class:"operate-resize-handler",key:d.direction,type:d.direction,rotate:i.elementInfo.rotate,style:ue(d.style),onMousedown:He(f=>i.scaleElement(f,i.elementInfo,d.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),L(Ns,{class:"operate-rotate-handler",style:ue({left:o.value/2+"px"}),onMousedown:u[0]||(u[0]=He(d=>i.rotateElement(d,i.elementInfo),["stop"]))},null,8,["style"])],64)):Re("",!0)]))}}),Fx={class:"shape-element-operate"},Yx=["onMousedown"],Ux={inheritAttrs:!1},Wx=pe({...Ux,__name:"ShapeElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function},moveShapeKeypoint:{type:Function}},setup(e){const t=e,{canvasScale:n}=de(Le()),o=ee(()=>t.elementInfo.width*n.value),l=ee(()=>t.elementInfo.height*n.value),{resizeHandlers:a,borderLines:s}=Ql(o,l),r=ee(()=>{if(!t.elementInfo.pathFormula||t.elementInfo.keypoints===void 0)return[];const c=Wl[t.elementInfo.pathFormula];return t.elementInfo.keypoints.map((i,u)=>{const d=c.getBaseSize[u],f=c.relative[u],p=d(t.elementInfo.width,t.elementInfo.height)*i;let R={};return f==="left"?R={left:p*n.value+"px"}:f==="right"?R={left:(t.elementInfo.width-p)*n.value+"px"}:f==="center"?R={left:(t.elementInfo.width-p)/2*n.value+"px"}:f==="top"?R={top:p*n.value+"px"}:f==="bottom"?R={top:(t.elementInfo.height-p)*n.value+"px"}:f==="left_bottom"?R={left:p*n.value+"px",top:t.elementInfo.height*n.value+"px"}:f==="right_bottom"?R={left:(t.elementInfo.width-p)*n.value+"px",top:t.elementInfo.height*n.value+"px"}:f==="top_right"?R={left:t.elementInfo.width*n.value+"px",top:p*n.value+"px"}:f==="bottom_right"&&(R={left:t.elementInfo.width*n.value+"px",top:(t.elementInfo.height-p)*n.value+"px"}),{keypoint:i,styles:R}})});return(c,i)=>(V(),A("div",Fx,[(V(!0),A(me,null,ye(I(s),u=>(V(),te(Zl,{class:"operate-border-line",key:u.type,type:u.type,style:ue(u.style)},null,8,["type","style"]))),128)),c.handlerVisible?(V(),A(me,{key:0},[(V(!0),A(me,null,ye(I(a),u=>(V(),te(cl,{class:"operate-resize-handler",key:u.direction,type:u.direction,rotate:c.elementInfo.rotate,style:ue(u.style),onMousedown:He(d=>c.scaleElement(d,c.elementInfo,u.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),L(Ns,{class:"operate-rotate-handler",style:ue({left:o.value/2+"px"}),onMousedown:i[0]||(i[0]=He(u=>c.rotateElement(u,c.elementInfo),["stop"]))},null,8,["style"]),(V(!0),A(me,null,ye(r.value,(u,d)=>(V(),A("div",{class:"operate-keypoint-handler",key:d,style:ue(u.styles),onMousedown:He(f=>c.moveShapeKeypoint(f,c.elementInfo,d),["stop"])},null,44,Yx))),128))],64)):Re("",!0)]))}}),Ax=Me(Wx,[["__scopeId","data-v-e764f589"]]),Qx={class:"line-element-operate"},Zx=["width","height","stroke"],Kx={key:0},Ex=["x1","y1","x2","y2"],Cx=["x1","y1","x2","y2"],Hx=["x1","y1","x2","y2"],Gx=["x1","y1","x2","y2"],wx={inheritAttrs:!1},Jx=pe({...wx,__name:"LineElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},dragLineElement:{type:Function}},setup(e){const t=e,{canvasScale:n}=de(Le()),o=ee(()=>Math.max(t.elementInfo.start[0],t.elementInfo.end[0])),l=ee(()=>Math.max(t.elementInfo.start[1],t.elementInfo.end[1])),a=ee(()=>{const s=[{handler:Pn.START,style:{left:t.elementInfo.start[0]*n.value+"px",top:t.elementInfo.start[1]*n.value+"px"}},{handler:Pn.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 r=t.elementInfo.curve||t.elementInfo.broken||t.elementInfo.broken2;s.push({handler:Pn.C,style:{left:r[0]*n.value+"px",top:r[1]*n.value+"px"}})}else if(t.elementInfo.cubic){const[r,c]=t.elementInfo.cubic;s.push({handler:Pn.C1,style:{left:r[0]*n.value+"px",top:r[1]*n.value+"px"}}),s.push({handler:Pn.C2,style:{left:c[0]*n.value+"px",top:c[1]*n.value+"px"}})}return s});return(s,r)=>(V(),A("div",Qx,[s.handlerVisible?(V(),A(me,{key:0},[(V(!0),A(me,null,ye(a.value,c=>(V(),te(cl,{class:"operate-resize-handler",key:c.handler,style:ue(c.style),onMousedown:He(i=>s.dragLineElement(i,s.elementInfo,c.handler),["stop"])},null,8,["style","onMousedown"]))),128)),(V(),A("svg",{width:o.value||1,height:l.value||1,stroke:s.elementInfo.color,overflow:"visible",style:ue({transform:`scale(${I(n)})`})},[s.elementInfo.curve?(V(),A("g",Kx,[X("line",{class:"anchor-line",x1:s.elementInfo.start[0],y1:s.elementInfo.start[1],x2:s.elementInfo.curve[0],y2:s.elementInfo.curve[1]},null,8,Ex),X("line",{class:"anchor-line",x1:s.elementInfo.end[0],y1:s.elementInfo.end[1],x2:s.elementInfo.curve[0],y2:s.elementInfo.curve[1]},null,8,Cx)])):Re("",!0),s.elementInfo.cubic?(V(!0),A(me,{key:1},ye(s.elementInfo.cubic,(c,i)=>(V(),A("g",{key:i},[i===0?(V(),A("line",{key:0,class:"anchor-line",x1:s.elementInfo.start[0],y1:s.elementInfo.start[1],x2:c[0],y2:c[1]},null,8,Hx)):Re("",!0),i===1?(V(),A("line",{key:1,class:"anchor-line",x1:s.elementInfo.end[0],y1:s.elementInfo.end[1],x2:c[0],y2:c[1]},null,8,Gx)):Re("",!0)]))),128)):Re("",!0)],12,Zx))],64)):Re("",!0)]))}}),Dx=Me(Jx,[["__scopeId","data-v-ccfba7f7"]]),kx={class:"table-element-operate"},Bx={inheritAttrs:!1},_x=pe({...Bx,__name:"TableElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(e){const t=e,{canvasScale:n}=de(Le()),o=ee(()=>t.elementInfo.outline.width||1),l=ee(()=>(t.elementInfo.width+o.value)*n.value),a=ee(()=>t.elementInfo.height*n.value),{resizeHandlers:s,borderLines:r}=Ql(l,a);return(c,i)=>(V(),A("div",kx,[(V(!0),A(me,null,ye(I(r),u=>(V(),te(Zl,{class:"operate-border-line",key:u.type,type:u.type,style:ue(u.style)},null,8,["type","style"]))),128)),c.handlerVisible?(V(),A(me,{key:0},[(V(!0),A(me,null,ye(I(s),u=>(V(),te(cl,{class:"operate-resize-handler",key:u.direction,type:u.direction,rotate:c.elementInfo.rotate,style:ue(u.style),onMousedown:He(d=>c.scaleElement(d,c.elementInfo,u.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),L(Ns,{class:"operate-rotate-handler",style:ue({left:l.value/2+"px"}),onMousedown:i[0]||(i[0]=He(u=>c.rotateElement(u,c.elementInfo),["stop"]))},null,8,["style"])],64)):Re("",!0)]))}}),$x={class:"common-element-operate"},zx={inheritAttrs:!1},Dr=pe({...zx,__name:"CommonElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(e){const t=e,{canvasScale:n}=de(Le()),o=ee(()=>t.elementInfo.width*n.value),l=ee(()=>t.elementInfo.height*n.value),{resizeHandlers:a,borderLines:s}=Ql(o,l),r=ee(()=>["chart","elf"].includes(t.elementInfo.type));return(c,i)=>(V(),A("div",$x,[(V(!0),A(me,null,ye(I(s),u=>(V(),te(Zl,{class:"operate-border-line",key:u.type,type:u.type,style:ue(u.style)},null,8,["type","style"]))),128)),c.handlerVisible?(V(),A(me,{key:0},[(V(!0),A(me,null,ye(I(a),u=>(V(),te(cl,{class:"operate-resize-handler",key:u.direction,type:u.direction,rotate:c.elementInfo.rotate,style:ue(u.style),onMousedown:He(d=>c.scaleElement(d,c.elementInfo,u.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),r.value?Re("",!0):(V(),te(Ns,{key:0,class:"operate-rotate-handler",style:ue({left:o.value/2+"px"}),onMousedown:i[0]||(i[0]=He(u=>c.rotateElement(u,c.elementInfo),["stop"]))},null,8,["style"]))],64)):Re("",!0)]))}}),F1=()=>{const e=Qe(),{addHistorySnapshot:t}=_e();return{setLink:(l,a)=>{const s=/^(https?):\/\/[\w\-]+(\.[\w\-]+)+([\w\-.,@?^=%&:\/~+#]*[\w\-@?^=%&\/~+#])?$/;if(a.type==="web"&&!s.test(a.target))return zt.error("不是正确的网页链接地址"),!1;if(a.type==="slide"&&!a.target)return zt.error("请先选择链接目标"),!1;const r={link:a};return e.updateElement({id:l.id,props:r}),t(),!0},removeLink:l=>{e.removeElementProps({id:l.id,propName:"link"}),t()}}},jx=["href"],qx={class:"btns"},eP=pe({__name:"LinkHandler",props:{elementInfo:{},link:{},openLinkDialog:{type:Function}},setup(e){const t=e,n=Le(),o=Qe(),{canvasScale:l}=de(n),{slides:a}=de(o),{removeLink:s}=F1(),r=ee(()=>t.elementInfo.type==="line"?0:t.elementInfo.height),c=i=>{const u=a.value.findIndex(d=>d.id===i);u!==-1&&(n.setActiveElementIdList([]),o.updateSlideIndex(u))};return(i,u)=>(V(),A("div",{class:"link-handler",style:ue({top:r.value*I(l)+10+"px"})},[i.link.type==="web"?(V(),A("a",{key:0,class:"link",href:i.link.target,target:"_blank"},Ye(i.link.target),9,jx)):(V(),A("a",{key:1,class:"link",onClick:u[0]||(u[0]=d=>c(i.link.target))},"幻灯片页面 "+Ye(i.link.target),1)),X("div",qx,[X("div",{class:"btn",onClick:u[1]||(u[1]=d=>i.openLinkDialog())},"更换"),L(qe,{type:"vertical"}),X("div",{class:"btn",onClick:u[2]||(u[2]=d=>I(s)(i.elementInfo))},"移除")])],4))}}),tP=Me(eP,[["__scopeId","data-v-2b064319"]]),nP={key:1,class:"animation-index"},oP=pe({__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}=de(Le()),{formatedAnimations:l}=de(Qe()),a=ee(()=>({[Vt.IMAGE]:Lx,[Vt.TEXT]:Ix,[Vt.SHAPE]:Ax,[Vt.LINE]:Dx,[Vt.TABLE]:_x,[Vt.CHART]:Dr,[Vt.LATEX]:Dr,[Vt.ELF]:Dr})[t.elementInfo.type]||null),s=ee(()=>{const i=[];for(let u=0;uf.elId).includes(t.elementInfo.id)&&i.push(u);return i}),r=ee(()=>"rotate"in t.elementInfo?t.elementInfo.rotate:0),c=ee(()=>"height"in t.elementInfo?t.elementInfo.height:0);return(i,u)=>(V(),A("div",{class:re(["operate",{"multi-select":i.isMultiSelect&&!i.isActive}]),style:ue({top:i.elementInfo.top*I(n)+"px",left:i.elementInfo.left*I(n)+"px",transform:`rotate(${r.value}deg)`,transformOrigin:`${i.elementInfo.width*I(n)/2}px ${c.value*I(n)/2}px`})},[i.isSelected?(V(),te(Tn(a.value),{key:0,elementInfo:i.elementInfo,handlerVisible:!i.elementInfo.lock&&(i.isActiveGroupElement||!i.isMultiSelect),rotateElement:i.rotateElement,scaleElement:i.scaleElement,dragLineElement:i.dragLineElement,moveShapeKeypoint:i.moveShapeKeypoint},null,8,["elementInfo","handlerVisible","rotateElement","scaleElement","dragLineElement","moveShapeKeypoint"])):Re("",!0),I(o)==="elAnimation"&&s.value.length?(V(),A("div",nP,[(V(!0),A(me,null,ye(s.value,d=>(V(),A("div",{class:"index-item",key:d},Ye(d+1),1))),128))])):Re("",!0),i.isActive&&i.elementInfo.link?(V(),te(tP,{key:2,elementInfo:i.elementInfo,link:i.elementInfo.link,openLinkDialog:i.openLinkDialog,onMousedown:u[0]||(u[0]=He(()=>{},["stop"]))},null,8,["elementInfo","link","openLinkDialog"])):Re("",!0)],6))}}),lP=Me(oP,[["__scopeId","data-v-1ff7dd88"]]),sP=["onClick"],aP=pe({__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)=>(V(),A("div",{class:re(["tabs",{card:o.card,"space-around":o.spaceAround,"space-between":o.spaceBetween}]),style:ue(o.tabsStyle||{})},[(V(!0),A(me,null,ye(o.tabs,a=>(V(),A("div",{class:re(["tab",{active:a.key===o.value}]),key:a.key,style:ue({...o.tabStyle||{},"--color":a.color}),onClick:s=>n("update:value",a.key)},Ye(a.label),15,sP))),128))],6))}}),Zo=Me(aP,[["__scopeId","data-v-ad9c9630"]]),rP={class:"prefix"},iP=["disabled","value","placeholder"],cP={class:"suffix"},uP=pe({__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),a=u=>{o("update:value",u.target.value)},s=u=>{l.value=!1,o("blur",u)},r=u=>{l.value=!0,o("focus",u)},c=_();return t({focus:()=>{c.value&&c.value.focus()}}),(u,d)=>(V(),A("div",{class:re(["input",{disabled:u.disabled,focused:l.value,simple:u.simple}])},[X("span",rP,[je(u.$slots,"prefix",{},void 0,!0)]),X("input",{type:"text",ref_key:"inputRef",ref:c,disabled:u.disabled,value:u.value,placeholder:u.placeholder,onInput:d[0]||(d[0]=f=>a(f)),onFocus:d[1]||(d[1]=f=>r(f)),onBlur:d[2]||(d[2]=f=>s(f)),onChange:d[3]||(d[3]=f=>o("change",f)),onKeydown:d[4]||(d[4]=Fn(f=>o("enter",f),["enter"]))},null,40,iP),X("span",cP,[je(u.$slots,"suffix",{},void 0,!0)])],2))}}),Rs=Me(uP,[["__scopeId","data-v-8376a8ac"]]),dP=pe({__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(a,s)=>(V(),A("button",{class:re(["button",{disabled:a.disabled,checked:!a.disabled&&a.checked,default:!a.disabled&&a.type==="default",primary:!a.disabled&&a.type==="primary",checkbox:!a.disabled&&a.type==="checkbox",radio:!a.disabled&&a.type==="radio",small:a.size==="small",first:a.first,last:a.last}]),onClick:s[0]||(s[0]=r=>l())},[je(a.$slots,"default",{},void 0,!0)],2))}}),Ve=Me(dP,[["__scopeId","data-v-a85d4d53"]]),fP={key:0,class:"select-wrap"},RP={class:"selector"},pP={class:"icon"},hP=["onClick"],vP={class:"selector"},mP={class:"icon"},gP=pe({__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),a=_(),s=_(),r=_(0),c=_(""),i=ee(()=>{var R;return((R=n.options.find(h=>h.value===n.value))==null?void 0:R.label)||n.value}),u=ee(()=>{if(!n.search||!c.value.trim())return n.options;const R=n.options.filter(h=>h.label.toLowerCase().indexOf(c.value.toLowerCase())!==-1);return R.length?R:n.options});Ce(l,()=>{l.value?St(()=>{s.value&&s.value.focus()}):c.value=""}),ro(()=>{c.value=""});const d=()=>{a.value&&(r.value=a.value.clientWidth)},f=new ResizeObserver(d);pt(()=>{a.value&&f.observe(a.value)}),Ct(()=>{a.value&&f.unobserve(a.value)});const p=R=>{R.disabled||(o("update:value",R.value),l.value=!1)};return(R,h)=>{const v=ce("IconDown");return R.disabled?(V(),A("div",fP,[X("div",{class:"select disabled",ref_key:"selectRef",ref:a},[X("div",RP,Ye(R.value),1),X("div",pP,[je(R.$slots,"icon",{},()=>[L(v,{size:14})],!0)])],512)])):(V(),te(Je,{key:1,class:"select-wrap",trigger:"click",value:l.value,"onUpdate:value":h[1]||(h[1]=M=>l.value=M),placement:"bottom",contentStyle:{padding:0,boxShadow:"0 6px 16px 0 rgba(0, 0, 0, 0.08)"}},{content:Z(()=>[R.search?(V(),A(me,{key:0},[L(Rs,{ref_key:"searchInputRef",ref:s,simple:"",placeholder:R.searchLabel,value:c.value,"onUpdate:value":h[0]||(h[0]=M=>c.value=M),style:ue({width:r.value+2+"px"})},null,8,["placeholder","value","style"]),L(qe,{margin:0})],64)):Re("",!0),X("div",{class:"options",style:ue({width:r.value+2+"px"})},[(V(!0),A(me,null,ye(u.value,M=>(V(),A("div",{class:re(["option",{disabled:M.disabled,selected:M.value===R.value}]),key:M.value,onClick:g=>p(M)},Ye(M.label),11,hP))),128))],4)]),default:Z(()=>[X("div",{class:"select",ref_key:"selectRef",ref:a},[X("div",vP,Ye(i.value),1),X("div",mP,[je(R.$slots,"icon",{},()=>[L(v,{size:14})],!0)])],512)]),_:3},8,["value"]))}}}),yt=Me(gP,[["__scopeId","data-v-b124c276"]]),SP=e=>(at("data-v-aad6909f"),e=e(),st(),e),MP={class:"link-dialog"},OP={key:2,class:"preview"},xP=SP(()=>X("div",null,"预览:",-1)),PP={class:"btns"},NP=pe({__name:"LinkDialog",emits:["close"],setup(e,{emit:t}){var R;const n=t,{handleElement:o}=de(Le()),{slides:l,currentSlide:a}=de(Qe()),s=_("web"),r=_(""),c=_(""),i=ee(()=>l.value.map((h,v)=>({label:`幻灯片 ${v+1}`,value:h.id,disabled:a.value.id===h.id})));c.value=((R=l.value.find(h=>h.id!==a.value.id))==null?void 0:R.id)||"";const u=ee(()=>c.value&&l.value.find(h=>h.id===c.value)||null),d=[{key:"web",label:"网页链接"},{key:"slide",label:"幻灯片页面"}],{setLink:f}=F1();pt(()=>{var h;(h=o.value)!=null&&h.link&&(o.value.link.type==="web"?r.value=o.value.link.target:o.value.link.type==="slide"&&(c.value=o.value.link.target),s.value=o.value.link.type)});const p=()=>{const h={type:s.value,target:s.value==="web"?r.value:c.value};o.value&&(f(o.value,h)?n("close"):r.value="")};return(h,v)=>(V(),A("div",MP,[L(Zo,{tabs:d,value:s.value,"onUpdate:value":v[0]||(v[0]=M=>s.value=M),tabsStyle:{marginBottom:"20px"}},null,8,["value"]),s.value==="web"?(V(),te(Rs,{key:0,class:"input",value:r.value,"onUpdate:value":v[1]||(v[1]=M=>r.value=M),placeholder:"请输入网页链接地址"},null,8,["value"])):Re("",!0),s.value==="slide"?(V(),te(yt,{key:1,class:"input",value:c.value,"onUpdate:value":v[2]||(v[2]=M=>c.value=M),options:i.value},null,8,["value","options"])):Re("",!0),s.value==="slide"&&u.value?(V(),A("div",OP,[xP,L(e0,{class:"thumbnail",slide:u.value,size:500},null,8,["slide"])])):Re("",!0),X("div",PP,[L(Ve,{onClick:v[3]||(v[3]=M=>n("close")),style:{"margin-right":"10px"}},{default:Z(()=>[Xe("取消")]),_:1}),L(Ve,{type:"primary",onClick:v[4]||(v[4]=M=>p())},{default:Z(()=>[Xe("确认")]),_:1})])]))}}),TP=Me(NP,[["__scopeId","data-v-aad6909f"]]),XP=pe({__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}=lh,o=e,l=_(),a=t,s=_(!1),r=ee(()=>({width:o.width+"px",...o.contentStyle||{}}));Ce(()=>o.visible,()=>{o.visible&&St(()=>l.value.focus())});const c=()=>{a("update:visible",!1),a("closed")},i=()=>{o.visible&&o.closeOnEsc&&c()},u=()=>{o.closeOnClickMask&&c()};return(d,f)=>(V(),te(Ci,{to:"body"},[L(ss,{name:"modal-fade"},{default:Z(()=>[xe(X("div",{class:"modal",ref_key:"modalRef",ref:l,tabindex:"-1",onKeyup:f[4]||(f[4]=Fn(p=>i(),["esc"]))},[X("div",{class:"mask",onClick:f[0]||(f[0]=p=>u())}),L(ss,{name:"modal-zoom",onAfterLeave:f[2]||(f[2]=p=>s.value=!1),onBeforeEnter:f[3]||(f[3]=p=>s.value=!0)},{default:Z(()=>[xe(X("div",{class:"modal-content",style:ue(r.value)},[d.closeButton?(V(),A("span",{key:0,class:"close-btn",onClick:f[1]||(f[1]=p=>c())},[L(I(n))])):Re("",!0),s.value?je(d.$slots,"default",{key:1},void 0,!0):Re("",!0)],4),[[to,d.visible]])]),_:3})],544),[[to,d.visible]])]),_:3})]))}}),Ll=Me(XP,[["__scopeId","data-v-189609cf"]]),yP={class:"operates"},LP={key:2,class:"drag-mask"},bP=pe({__name:"index",setup(e){const t=Le(),{activeElementIdList:n,activeGroupElementId:o,handleElementId:l,hiddenElementIdList:a,editorAreaFocus:s,gridLineSize:r,showRuler:c,creatingElement:i,creatingCustomShape:u,canvasScale:d,textFormatPainter:f}=de(t),{currentSlide:p}=de(Qe()),{ctrlKeyState:R,spaceKeyState:h}=de(kn()),v=_(),M=_([]),g=_(!1),m=()=>g.value=!0;Ce(l,()=>{t.setActiveGroupElementId("")});const O=_([]);Il(()=>{O.value=p.value?JSON.parse(JSON.stringify(p.value.elements)):[]});const P=_(),{dragViewport:b,viewportStyles:N}=xM(P);NM(P);const{mouseSelection:x,mouseSelectionVisible:T,mouseSelectionQuadrant:y,updateMouseSelection:Y}=PM(O,v),{dragElement:U}=bM(O,M,d),{dragLineElement:W}=VM(O),{selectElement:C}=LM(O,U),{scaleElement:F,scaleMultiElement:J}=yM(O,M,d),{rotateElement:w}=XM(O,v,d),{moveShapeKeypoint:q}=IM(O,d),{selectAllElements:se}=Ya(),{deleteAllElements:H}=Fa(),{pasteElement:G}=h0(),{enterScreeningFromStart:Q}=Ta(),{updateSlideIndex:E}=Ss(),{createTextElement:le,createShapeElement:B}=Al();pt(()=>{n.value.length&&St(()=>t.setActiveElementIdList([]))});const D=Oe=>{n.value.length&&t.setActiveElementIdList([]),h.value?b(Oe):Y(Oe),s.value||t.setEditorareaFocus(!0),f.value&&t.setTextFormatPainter(null),OM()},z=Oe=>{if(n.value.length||i.value||u.value||!v.value)return;const Se=v.value.getBoundingClientRect(),Te=(Oe.pageX-Se.x)/d.value,ve=(Oe.pageY-Se.y)/d.value;le({left:Te,top:ve,width:200/d.value,height:0})};Ct(()=>{f.value&&t.setTextFormatPainter(null)});const he=()=>{s.value&&t.setEditorareaFocus(!1)},{scaleCanvas:k}=v0(),j=Et.throttle(k,100,{leading:!0,trailing:!1}),K=Et.throttle(E,300,{leading:!0,trailing:!1}),$=Oe=>{Oe.preventDefault(),R.value?Oe.deltaY>0?j("-"):Oe.deltaY<0&&j("+"):Oe.deltaY>0?K(We.DOWN):Oe.deltaY<0&&K(We.UP)},ae=()=>{t.setRulerState(!c.value)},{insertElementFromCreateSelection:fe,formatCreateSelection:Ne}=FM(v),Fe=Oe=>{const{start:Se,end:Te,path:ve,viewBox:Ze}=Oe,rt=Ne({start:Se,end:Te});if(rt){const ge={};Oe.fill&&(ge.fill=Oe.fill),Oe.outline&&(ge.outline=Oe.outline),B(rt,{path:ve,viewBox:Ze},ge)}t.setCreatingCustomShapeState(!1)},Ue=()=>[{text:"粘贴",subText:"Ctrl + V",handler:G},{text:"全选",subText:"Ctrl + A",handler:se},{text:"标尺",subText:c.value?"√":"",handler:ae},{text:"网格线",handler:()=>t.setGridLineSize(r.value?0:50),children:[{text:"无",subText:r.value===0?"√":"",handler:()=>t.setGridLineSize(0)},{text:"小",subText:r.value===25?"√":"",handler:()=>t.setGridLineSize(25)},{text:"中",subText:r.value===50?"√":"",handler:()=>t.setGridLineSize(50)},{text:"大",subText:r.value===100?"√":"",handler:()=>t.setGridLineSize(100)}]},{text:"重置当前页",handler:H},{divider:!0},{text:"幻灯片放映",subText:"F5",handler:Q}];return ps(Fh,d),(Oe,Se)=>{const Te=Mt("contextmenu"),ve=Mt("click-outside");return xe((V(),A("div",{class:"canvas",ref_key:"canvasRef",ref:P,onWheel:Se[4]||(Se[4]=Ze=>$(Ze)),onMousedown:Se[5]||(Se[5]=Ze=>D(Ze)),onDblclick:Se[6]||(Se[6]=Ze=>z(Ze))},[I(i)?(V(),te(px,{key:0,onCreated:Se[0]||(Se[0]=Ze=>I(fe)(Ze))})):Re("",!0),I(u)?(V(),te(gx,{key:1,onCreated:Se[1]||(Se[1]=Ze=>Fe(Ze))})):Re("",!0),X("div",{class:"viewport-wrapper",style:ue({width:I(N).width*I(d)+"px",height:I(N).height*I(d)+"px",left:I(N).left+"px",top:I(N).top+"px"})},[X("div",yP,[(V(!0),A(me,null,ye(M.value,(Ze,rt)=>(V(),te(sx,{key:rt,type:Ze.type,axis:Ze.axis,length:Ze.length,canvasScale:I(d)},null,8,["type","axis","length","canvasScale"]))),128)),I(n).length>1?(V(),te(xx,{key:0,elementList:O.value,scaleMultiElement:I(J)},null,8,["elementList","scaleMultiElement"])):Re("",!0),(V(!0),A(me,null,ye(O.value,Ze=>xe((V(),te(lP,{key:Ze.id,elementInfo:Ze,isSelected:I(n).includes(Ze.id),isActive:I(l)===Ze.id,isActiveGroupElement:I(o)===Ze.id,isMultiSelect:I(n).length>1,rotateElement:I(w),scaleElement:I(F),openLinkDialog:m,dragLineElement:I(W),moveShapeKeypoint:I(q)},null,8,["elementInfo","isSelected","isActive","isActiveGroupElement","isMultiSelect","rotateElement","scaleElement","dragLineElement","moveShapeKeypoint"])),[[to,!I(a).includes(Ze.id)]])),128)),L(ox)]),X("div",{class:"viewport",ref_key:"viewportRef",ref:v,style:ue({transform:`scale(${I(d)})`})},[I(T)?(V(),te(z6,{key:0,top:I(x).top,left:I(x).left,width:I(x).width,height:I(x).height,quadrant:I(y)},null,8,["top","left","width","height","quadrant"])):Re("",!0),(V(!0),A(me,null,ye(O.value,(Ze,rt)=>xe((V(),te(_6,{key:Ze.id,elementInfo:Ze,elementIndex:rt+1,isMultiSelect:I(n).length>1,selectElement:I(C),openLinkDialog:m},null,8,["elementInfo","elementIndex","isMultiSelect","selectElement"])),[[to,!I(a).includes(Ze.id)]])),128))],4)],4),I(h)?(V(),A("div",LP)):Re("",!0),I(c)?(V(),te(ux,{key:3,viewportStyles:I(N),elementList:O.value},null,8,["viewportStyles","elementList"])):Re("",!0),L(Ll,{visible:g.value,"onUpdate:visible":Se[3]||(Se[3]=Ze=>g.value=Ze),width:540},{default:Z(()=>[L(TP,{onClose:Se[2]||(Se[2]=Ze=>g.value=!1)})]),_:1},8,["visible"])],32)),[[Te,Ue],[ve,he]])}}}),VP=Me(bP,[["__scopeId","data-v-b3a3d981"]]),IP="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAjVBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADqhzP4AAAALnRSTlMAbY+Q2eX0P+rSwvDgoXdORQjdlSP4zL1xZ2NJOjYxJx7txrWnflIOhoRXW1oUdCJEfAAAASxJREFUSMftlNtigjAMhoFRjgoC4yCgOKdM3Zb3f7w1V+0qPV14pd9l8v/QtEmcF3P1bqW/RBAUFvrrB4A/muvPVA+fX3b69mCszyKqTx6n71B/NL9Tl9jpt6hvJjt9enpb5LLNxT/vYlBS+21f8Ia+Bh1BMnOGqQE9JOMco481nN1FsiopAfNrzhGio9w4EqZqhcfquNAGHT5ziIQpza/CO0codexj7GQ+MpRqR0gAooGP5CUox2dN01g358DK4p30UIRm/0/XjI7jr8RQNABE+NyNqMo4AQTiPd78qHVkeADwIwYPuaM0fEuz+iMxzItm6K+VoXk4cwbWGkbsU9Z8Jowxa28NbIBSV4z3nWpEg7uKvUCzBERi5ZpZ6Jmk1iwykaLzlrjiqnx2/gDr4kHdoskXDAAAAABJRU5ErkJggg==",FP="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAllBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA6C80qAAAAMXRSTlMAbZCP2+X06tdOQCYgcWbu4NLEwKZFOwf4oJWNhUgy8M29tHp3WlI3Dsl/YgviljYUa6J7lAAAATlJREFUSMftVMtywjAMNG3ewSEPSEJCSikQWqAP///PVSoz2EzseHToCfaQmci7tixLyx7QYNr0JH7lCX9FEZSOEDOK4v1NgOJIuUMBCn9LVuwoihwV/F8V8Qco3AlZkQzjYbJ60mI+GyrOycapxSiCWOH3uSdsqE+Sv3WFHa/yhOUaA07R7CZaHHE9KK98jumkTcwMWDjIj67/UYodFrFRvqOsY0dmL0Z+FCB/IQOdDzU271/+8TslsoTA3MIP1RnJ4ABjQt/IT0M1dHChwpWB/5Mjv7+tgQcZjc20u7+N7WGPlpmw8SF/ioCFU/hoUiJAXtoOtawEyIezQ7ZGR1Fg860JSV3aOzsQFBxN4bOJCff2LiP6pR1RPnAkmwl4raYDRm0m0zzs+WQ2srow2DRY5bMGLa/YXeMX/1ZGGbP8aiQAAAAASUVORK5CYII=",YP="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAaVBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAnbPKNAAAAInRSTlMAwBQ1oHVg1ftqWvKrEQf39dso49rRTiLlx7WKgH07Lxtk97MBXAAAAN5JREFUSMft1NkOgjAQBdARpNKFRQTcBef/P9IhmSAKpX0yMXDeIPemzbQpLFnShLOaBIaKDTptCuipDD1kCtgxRy/5kQuGPrTZzjKaQoYLOS1XgEOR0RI8IOqewelMsQQ6QTcCcOoGGayFnxSu1W6kutoLCicpa0HiJGktpJcYR+JL+ldjXQvWAtDx6gAcAk2HPuiWt4hIftvSOvpyKwf7CN83SLddXB5wShwCu2NP2eLkDr36hOxpjZ9qGHooIQz95t3tpfikHjAWIdsL8BJ5x5nguLekwpLjvlpYhBeC8kPaxUxGfAAAAABJRU5ErkJggg==",UP="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAn1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3kz5EAAAANHRSTlMA/GL3BfTcpAjlzrISDemNim8v8ODBt5mWh39rVlJMRDo2KhsV7NW9q5xaSCAfD8R8dyklOuSM0QAAAZJJREFUSMfVlNlygkAQRRsEAUFx33dx3+P9/28LzSRYCGLzlpw3qvoUVM8c6M9iVKkQX47mLosIfQDafiUXemBKg4tUaECxbhgy4Yhf2geRcOLRrVIqM4lRAmo03Sil2/wsVMI5j0h3lGKdPglWODUnIvveUgvzvXxhGA7pxHh+CUzrbucJ43CkToqzpYFx9JwdN8MB9/nURcRm+lawNaBMT2YVpXQW74wyoCU++lBWyu6RLbgAkvfVaKzBaP0gS/ABjClJdWCCMYcZtegAbvTKaq8WVhulFjbn881Ky0VEeUJJPL52lEFVb/0s7OW7aoBJMcZqMRkNrO3GREw9KXQAnONkS0hTT1d6JMUIacxdkK60QRHeOh7TnIrbv+mz5SWz0t7zZY41GE0WKyO/0o66erz7mbBS5so3iMSV0oGD430JK61y1kOKEFVa5z+OLRFUpQ8+sglJUJVynFuSoCqd8mEtSQZXyl36JKSLiNpFKvhK0EmKDuZKYuZgFnIh4Pk9FaANtIIiwtg0p1QI26D/yDe9Z04iYFw4gwAAAABJRU5ErkJggg==",WP="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAilBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAATAggvAAAALXRSTlMA7zL3++ogB5WPOeAR0Lywrcm2eExB2MKdcGhlYV5WMSgaC+RsHBXZxsWKD4LKsAERAAABqklEQVRIx91U2ZKCMBAEAwhy36IiiOe6m///vZ0JK0XlUmvf7BegpzuZdBKMT8XSObwuXt1Dk1JqHaOT88LQjU1nuJVP9Hufcsh6nd4dRSRN3HVWjR9moZQHEVPE+2H8dporflu5ysD0X6s5tWEr2mj68TjyHOIcpXS9qD+xpHaxTYnvsrkGnNcOJHn6j/HLKan4giurWEFAg/3jy86iE3zcuR4IIm4hro71QFiWUciea2Q82RQr7ODh9Avs8cf6010IULzhDob9aI2975FbJO74lkCx4wyQHhkMBVow8LsH5zM1VHDA4HKhApUoDViN9WM8nf/AIlQBo645CiLM1MdY0vCR0kpp6LBhydFW3uAcii3HnYBrVIYUigdJ1FeFHo9NKLA39c2qobQV2BLvyVmm32FlKfIZTjxIGiJsAhE9/u6iQNDbVLVFBV61quf6IRRQqOOmlneZDV9TBnMhd2wsrJKkdWCNQZdj/npHaU8KMv1cC1PjCDwQzmFDPgudw3A8n04It9Cb3oHocjdO68Rt2fnhHXr803Fcvus4G+84fGttvIfA+Bj8ApjRRQeim+SZAAAAAElFTkSuQmCC",AP="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAZlBMVEUAAAAajf8ajf8bkv+k0v97vv+k0v98vv+k0f9/v/+k0v98vf8ZjP6j0f97vf////8ymP6Wy/9AoP6ez//o8/6u1v44nP55vP6azf+RyP8tlv7u9v6i0P5xuP5Rqf5JpP4nk/52u/7ed0PhAAAADHRSTlMA6aYc5uamphwc7e1iLsguAAAA80lEQVRIx93R2Q6CMBCFYcBdqQ5lFRX0/V/SKWAHacxMQ+IF5/r/ki7BMraKwli0MFp1PeU8MSKKPRYhCH1AiCD22n8B5FmWgxzA7YK7gRjkl265GGQ9yOYC/kizLz3/WZmiSdPGBzQK18hBq7q1UtDee3BvZUBjPwgtATpVdqnmQWF6EgUBpifhAF2W2n5jpSarYAr0GTcISJSzBAZAvRW16V1Rj0FR9qAsqHeFBbY34nlVP3a1ALC3o97ZB8Br1FeKBTXfExD3BJ4PQU/gu08UC4Q9AWFPYOPTrxHs+P+ibREcTvL+uA+M2G1k/Xq7DxaxN/MkXZxLgZjXAAAAAElFTkSuQmCC",QP="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAe1BMVEUAAAD/X2r/Xmn/YGr/Xmj/X2j/Y2z/a3f/X2n/X2n/ZXL/Xmn/X2n/Xmn/Xmn/X2n/X2n/YGr/YGv/Xmj/Xmn/YGn/YGn/Xmn/Xmj/X2j/X2n/Xmn/ZGr/X2j/X2j/X2n/YGr/X23/X2j/X2n/X2r/X2r/YWv/Ymz/Xmjx4bQMAAAAKHRSTlMAdKJN++4XCJvJDvOH36pqZC8r47BFQM2WkoxTJ+i/cEkj19R7Xjc0DkpKcgAAARJJREFUSMfdlelugzAQhCfENsbcTqAcOXqX93/CJl4cIaRK3v4p6vxhtNI3GhYD2KSMlh1aMd2V1ogmpyNO0hnxjIxGUhsH6Ju/4oOGBxUn5PpFSDGRtAPkPWbvY55ilZMrUa1DpAOWMesu6xACVjEDmrmL9SEFbLoAfuySP0IyCvGA72LnLg0GGiWxOpCrUD6AyKtFS6aPkZEbYclohd3tgl9pxxDdA0P/F3hNBAc414DqRDhwdcP6EgzsQRpzJoD4PeUBgIqYAPCZMAGgEkwAFRcwXOCFCxQ8wF5YWzK9YK21lKwH17yFnaVxXs4x9LR2rnwmwt+44etUnjf2Efh7QE7Bkg7Q4YD2P/bAfG2wRX0DixreDGmyA5MAAAAASUVORK5CYII=",ZP="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==",KP="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAAAAAClZ7nPAAAAAXRSTlMAQObYZgAAAChJREFUGNNjwAf4/wPBB6KoA+wPmImiGBjYHzAwDEqK+f//A8RQ+AAANWVSOQAUvaoAAAAASUVORK5CYII=",Y1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAIBAMAAAA7P9P/AAAAKlBMVEUAAAAVFxcUFRYUFRYUFRYTFRYTFRUWFhYVFRUaGhocHBwVFRYTFRcTFBXQWHqiAAAADXRSTlMAPPbr28aEUiQUCZSSqlxh2AAAADdJREFUCNdjYLsLAgkMPGB6AwNXLJC6uoCBYQqQ9mRgYOCwvXu5gQEIhO4qMoAA+90CBjAQBGIAxTUWlqG28UUAAAAASUVORK5CYII=",EP="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAVFBMVEUAAACVyv+Ryf+b2f+QyP+PyP8ajf+QyP+QyP8ajf+PyP8bkv+PyP+QyP+Qyf8ajf+Sy/8ZjP6Px/+KxP4cjf5zuv5er/4mkv59vv46nf6Cwf5Vqv5saB0DAAAAEXRSTlMAGJYG8vTm48emghzZv0ftLWnfym4AAADnSURBVEjH7dXbEoIgFIXhOIjiMTcHtd7/PbtpmrEFm+iy6b/mY1ABL180WLMyGTu8jV/WQstZ2LWYPQFTBuYE1g/6g18G/ohhd24P8fAfgC06euWkKAB/d3Sq6RUHtkBQJ7LAbzdK1F5z4DkehUgDHyhTp5LgTtn6FNhcHjQiASIxSQTecUArAAexzQAiDySAwIMJwM6DEYDjga4G3yzJ1D60rX2tw1Lz4eCXVdwakORXhImG395Yzx8gTHX8EcVEy18C2LVlrplkokteZEyqb/Cq5BNS0ystcXpMzXIatR4nOcPsNT0AdYRxGhQkWqAAAAAASUVORK5CYII=",CP="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAPFBMVEUAAAD/YWr/ZG3/Xmj/X2r/Xmj/X2j/Xmr/X2j/Xmj/X2j/YWr/X2r/X2v/Ymr/YWn/X2n/X2j/X2n/XmjlRuqJAAAAE3RSTlMAVyDhirLVZ/fyk2xeQzww+MSh55GTOwAAAIRJREFUSMft0EkKgDAQRNFSO4nzlPvfVaRVMBu7FoJI/roeIY3cW5UlsR2COF/HuBrG076d49XzO6JDhjSJqPHYkhBv+Hd1Jw60EdAmgDYDTHXEjbUiuTEnoreLrlLizKI4byB2gcMEuzjNZBZqXCOM0LLIIotvi5EWaGmBXgVn2hE/aAPRNRdtZYxsbQAAAABJRU5ErkJggg==",HP="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAA5FBMVEUAAAAajP8bj///gAAFyYH/eAAHyoIGyYEFyYD/eQAGyYH/eAAGyIEGyYAajf8FyYH/eQAIy4Maj/8R0Ysu0aIFyYAFyYAGyYEFyYAajP8GyYAGyYAGyYAFyYEZjP//eQAbj/8JyoT/ewAGy4ILzYcajf//eQAZjP8FyIEFyYAFyYEFyYEGyIEGyYD/eQAFyYEGyYEGyoIHyoIHyoL/eAAFyYL/egAGy4L/ewAIyoIbj/8FyoUHzIUIzIYNy4kb25v/eAAajP8Zjf//eQAajf8bjv8HyoEbjf8fk/8ZjP7/eAAFyICoTa+7AAAASXRSTlMAxkII9ulJfPLu29fTsJJcSToyDgX66eLAuaWfmY6DgT42NCoW+PbezcjGurasl5WId21pZmJfVVBCMDAlHRMJ9Ozo6KZzc1UhDbTKVAAAAXhJREFUSMe11tdygkAYBWBMCCqICGLvJcbeazSanui+//tEWOVfhpszyeTMMDDwfxdnudiV/p74/ZHnoQrNPx695CBwQyD0byBXtSzr6xUH3+7DxwU0jFJWN8WRhHbHo605qPLVOoZso9iRmZPMQQBvp2uiHLzEy+Xy+7lDgXmpCeBEufWXzvDhyPmaQaDHmBpWmpIis6IPaIl6vZ7QAmDM5KY7orO2D6x5+QBYsbTtfNnJLGWLYO7elwGwYyxfU8K6U2IrgtawUqkMWwEgRZiXBVJayhIYQaBEoAsBg4AMgQajNBAgyQQMCHQIlCAwIpCFwIJABAJbRnlCgJ0isEKA1CYwhkCRQB8CMwJpCNTE1gg4CK0VBEgxAmEIFAjoEJgSyEDAZJQ9ApIC2CBAbD2BQJ5AHgKfBFQIbBgliQCxtYkASSUwhcCAQAECEwIxCCgEZAjsCfTcF1Fv/jlwdBD/dbof5su6vIro3H84sS7A7KoDZ6v7XX4A6sFrKk8/UQIAAAAASUVORK5CYII=",GP="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAAkFBMVEUAAAD/fgP/eQD/fwT/egD/gA3/hhn/eQD/eAD/ewH/ewH/eQD/fAL/fAP/gAb/hg3/eAD/eAD/eAD/eAD/eQD/egD/eQD/eQD/egD/fgX/fgP/fgP/fwf/eAD/eQD/eQD/eQD/fgX/fwb/egD/egD/fQP/hwD/eQD/eQD/eQD/eAD/eAD/eQD/eQD/fgf/eABRxlO/AAAAL3RSTlMAgBR4RxAF+/Z1OOYmIxcL3r2imX5oXVRLMyAcDu3EwoZuUEExKwjv1caysJ6PRTA24CEAAAEOSURBVDjLpdNpc4MgEIBh0AQ1HkmMR2rMffQu///ftVBIq7uyTvt+foadZYD9szSbj4M+5/7pKobBpciXT56CKn+Gq837QqoMVB0byNpDqJSFtoe+m8XKQMg/uq4KJYDYmaUWOCw2P+4cOCA/3l2zlRBiw1+kG0Z2YUlAnnzDHQlP2iWSgHZ2REOu39LzCJh9ORGMgKl6MxKB7bSb0JcDIdoawHrSK9XwLMlKc41ktYYtDc3XiSkXmO1WFNzBtfEiA2+PxOSUmSI3zJntFjsPbNi9ygUPBlGLL8VvKPZDbtF7Id5+wCWsl3hD504ZrAS7h4VgWHMedq5llUFjaZ1vzWGvlcfcedfJ+pKxv/cJpjeFTKX9Tj4AAAAASUVORK5CYII=",wP="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAAQlBMVEUAAAAGyYEGyYYFyYAGyIAGyYEIzoQHyoEHy4MFyICD5MH///8v0ZZu37dZ2qur7NTV9epE1qEo0JJL16QazYqQ5saxGv/XAAAACXRSTlMAqir55YgfTU4aqSEPAAAAbUlEQVQ4y+3UwQqAIAyA4WU6m6WV1vu/al4KRwd3M6TvNvhhsMOgKWWGCqMgsyNVjTaHmgQ0AJIIgiIR9YefDs+1ECgFLj3hNhccecf5PkPxHeNSOPLIxTvku/b36v5ClJ0H5U8KJtHbEz/Sli6Pai90D3pmcwAAAABJRU5ErkJggg==",JP="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAAflBMVEUAAAAZjf8ajf8ajf8ajf8ajf8ZjP8ajf8ajf8Zjf8ajf8Zjf8Zjf8cj/8ajf8ZjP8ZjP8ajf8ajf8cj/8dkP8Zjf8ajf8Zjf8ajf8cjf8ajv8bjv8dkP8hl/8Zjf8bjf8ajf8ajv8dj/8ajP8blP8ajf8ajP8bjf8ajv8ZjP6/qIRiAAAAKXRSTlMA3ubFubyDdWuhZ67TSc+M9JNiPyvq3NiyXFBBHgmYfXE6NBQT68h7WD5AMTwAAAEnSURBVDjLzZTZboMwFAUPCXilrNlIQkKSbvn/Hyw3lmXjprL6gNp5sGA0QhdbMuagL/PEUXyQ44Wn8rIHUd6nDIAKVA0iD2wK7AK1AZGYl7KV5mEJZEG48EMF9hdhLYRY4aqUkjaUwlJ6YQtLZ8MGlosXSsbYFYdx1TbcMYv8H39NyE5HwuL7WetAbUGcA9sAXaAYHgzZ0pE2pJrUUxnHXCidOvQnqf1EKTzgweTd2AXq/HR7dj9tT+JE/GSqoRrXNY+Ge7TVfb2CcKHmhtMkLF7RJiscExcKGA5eaEpQF/niSAYgj/8MzQdcKi98l4bUhaY76huVkRn3NF9+Q+PC+sXAJ2HS0pof3iIzRk/md9deGVgOiKcXaV9vFo4tI3feempz6jEDX86qfVUJrjNrAAAAAElFTkSuQmCC",DP={class:"shape-item-thumbnail"},kP={class:"shape-content"},BP={overflow:"visible",width:"18",height:"18"},_P=["transform"],$P=["fill","stroke","d"],zP=pe({__name:"ShapeItemThumbnail",props:{shape:{}},setup(e){return(t,n)=>(V(),A("div",DP,[X("div",kP,[(V(),A("svg",BP,[X("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)`},[X("path",{class:re(["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,$P)],8,_P)]))])]))}}),U1=Me(zP,[["__scopeId","data-v-8645cf7f"]]),jP={class:"shape-pool"},qP={class:"category-name"},e7={class:"shape-list"},t7=pe({__name:"ShapePool",emits:["select"],setup(e,{emit:t}){const n=t,o=l=>{n("select",l)};return(l,a)=>(V(),A("div",jP,[(V(!0),A(me,null,ye(I(If),s=>(V(),A("div",{class:"category",key:s.type},[X("div",qP,Ye(s.type),1),X("div",e7,[(V(!0),A(me,null,ye(s.children,(r,c)=>(V(),te(U1,{class:"shape-item",key:c,shape:r,onClick:i=>o(r)},null,8,["shape","onClick"]))),128))])]))),128))]))}}),n7=Me(t7,[["__scopeId","data-v-bfed4bc8"]]),o7=[{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}]}],l7={class:"line-pool"},s7={class:"category-name"},a7={class:"line-list"},r7=["onClick"],i7={overflow:"visible",width:"20",height:"20"},c7=["d","stroke-dasharray","marker-start","marker-end"],u7=pe({__name:"LinePool",emits:["select"],setup(e,{emit:t}){const n=t,o=l=>{n("select",l)};return(l,a)=>(V(),A("div",l7,[(V(!0),A(me,null,ye(I(o7),(s,r)=>(V(),A("div",{class:"category",key:s.type},[X("div",s7,Ye(s.type),1),X("div",a7,[(V(!0),A(me,null,ye(s.children,(c,i)=>(V(),A("div",{class:"line-item",key:i},[X("div",{class:"line-content",onClick:u=>o(c)},[(V(),A("svg",i7,[X("defs",null,[c.points[0]?(V(),te(sa,{key:0,class:"line-marker",id:`preset-line-${r}-${i}`,position:"start",type:c.points[0],color:"currentColor",baseSize:2},null,8,["id","type"])):Re("",!0),c.points[1]?(V(),te(sa,{key:1,class:"line-marker",id:`preset-line-${r}-${i}`,position:"end",type:c.points[1],color:"currentColor",baseSize:2},null,8,["id","type"])):Re("",!0)]),X("path",{class:"line-path",d:c.path,stroke:"currentColor",fill:"none","stroke-width":"2","stroke-dasharray":c.style==="solid"?"0, 0":"4, 1","marker-start":c.points[0]?`url(#${`preset-line-${r}-${i}`}-${c.points[0]}-start)`:"","marker-end":c.points[1]?`url(#${`preset-line-${r}-${i}`}-${c.points[1]}-end)`:""},null,8,c7)]))],8,r7)]))),128))])]))),128))]))}}),d7=Me(u7,[["__scopeId","data-v-2fdfc0a5"]]),f7={class:"chart-pool"},R7=["onClick"],p7={class:"name"},h7=pe({__name:"ChartPool",emits:["select"],setup(e,{emit:t}){const n=t,o=["bar","column","line","area","scatter","pie","ring","radar"],l=a=>{n("select",a)};return(a,s)=>{const r=ce("IconChartLine"),c=ce("IconChartHistogram"),i=ce("IconChartPie"),u=ce("IconChartHistogramOne"),d=ce("IconChartLineArea"),f=ce("IconChartRing"),p=ce("IconChartScatter"),R=ce("IconRadarChart");return V(),A("ul",f7,[(V(),A(me,null,ye(o,(h,v)=>X("li",{class:"chart-item",key:v},[X("div",{class:"chart-content",onClick:M=>l(h)},[h==="line"?(V(),te(r,{key:0,size:"24"})):h==="bar"?(V(),te(c,{key:1,size:"24"})):h==="pie"?(V(),te(i,{key:2,size:"24"})):h==="column"?(V(),te(u,{key:3,size:"24"})):h==="area"?(V(),te(d,{key:4,size:"24"})):h==="ring"?(V(),te(f,{key:5,size:"24"})):h==="scatter"?(V(),te(p,{key:6,size:"24"})):h==="radar"?(V(),te(R,{key:7,size:"23"})):Re("",!0),X("div",p7,Ye(I(Mi)[h]),1)],8,R7)])),64))])}}}),v7=Me(h7,[["__scopeId","data-v-1216fb52"]]),W1=e=>(at("data-v-2235b1b3"),e=e(),st(),e),m7={class:"prefix"},g7={class:"input-wrap"},S7=["disabled","placeholder"],M7={class:"handlers"},O7=W1(()=>X("svg",{fill:"currentColor",width:"1em",height:"1em",viewBox:"64 64 896 896"},[X("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)),x7=[O7],P7=W1(()=>X("svg",{fill:"currentColor",width:"1em",height:"1em",viewBox:"64 64 896 896"},[X("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)),N7=[P7],T7={class:"suffix"},X7=pe({__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),a=_(!1);Ce(()=>n.value,()=>{n.value!==l.value&&(l.value=n.value)},{immediate:!0}),Ce(l,()=>{const u=+l.value;if(!isNaN(u)){{if(u>n.max)return;if(u{let u=+l.value;isNaN(u)?u=n.min:u>n.max?u=n.max:u{s(),o("enter",u)},c=u=>{s(),a.value=!1,o("blur",u)},i=u=>{a.value=!0,o("focus",u)};return(u,d)=>(V(),A("div",{class:re(["number-input",{disabled:u.disabled,focused:a.value}])},[X("span",m7,[je(u.$slots,"prefix",{},void 0,!0)]),X("div",g7,[xe(X("input",{type:"text",disabled:u.disabled,"onUpdate:modelValue":d[0]||(d[0]=f=>l.value=f),placeholder:u.placeholder,onInput:d[1]||(d[1]=f=>o("input",f)),onFocus:d[2]||(d[2]=f=>i(f)),onBlur:d[3]||(d[3]=f=>c(f)),onChange:d[4]||(d[4]=f=>o("change",f)),onKeydown:d[5]||(d[5]=Fn(f=>r(f),["enter"]))},null,40,S7),[[Ld,l.value]]),X("div",M7,[X("span",{class:"handler",onClick:d[6]||(d[6]=f=>l.value+=u.step)},x7),X("span",{class:"handler",onClick:d[7]||(d[7]=f=>l.value-=u.step)},N7)])]),X("span",T7,[je(u.$slots,"suffix",{},void 0,!0)])],2))}}),Nn=Me(X7,[["__scopeId","data-v-2235b1b3"]]),A1=e=>(at("data-v-f869c45f"),e=e(),st(),e),y7={class:"table-generator"},L7={class:"title"},b7={class:"lef"},V7=["onMouseenter"],I7={key:1,class:"custom"},F7={class:"row"},Y7=A1(()=>X("div",{class:"label",style:{width:"25%"}},"行数:",-1)),U7={class:"row"},W7=A1(()=>X("div",{class:"label",style:{width:"25%"}},"列数:",-1)),A7={class:"btns"},Q7=pe({__name:"TableGenerator",emits:["insert","close"],setup(e,{emit:t}){const n=t,o=_([]),l=_(3),a=_(3),s=_(!1),r=()=>{if(!o.value.length)return;const[u,d]=o.value;n("insert",{row:u,col:d})},c=()=>{if(l.value<1||l.value>20)return zt.warning("行数/列数必须在0~20之间!");if(a.value<1||a.value>20)return zt.warning("行数/列数必须在0~20之间!");n("insert",{row:l.value,col:a.value}),s.value=!1},i=()=>{n("close"),s.value=!1};return(u,d)=>(V(),A("div",y7,[X("div",L7,[X("div",b7,"表格 "+Ye(o.value.length?`${o.value[0]} x ${o.value[1]}`:""),1),X("div",{class:"right",onClick:d[0]||(d[0]=f=>s.value=!s.value)},Ye(s.value?"返回":"自定义"),1)]),s.value?(V(),A("div",I7,[X("div",F7,[Y7,L(Nn,{min:1,max:20,value:l.value,"onUpdate:value":d[3]||(d[3]=f=>l.value=f),style:{width:"75%"}},null,8,["value"])]),X("div",U7,[W7,L(Nn,{min:1,max:20,value:a.value,"onUpdate:value":d[4]||(d[4]=f=>a.value=f),style:{width:"75%"}},null,8,["value"])]),X("div",A7,[L(Ve,{class:"btn",onClick:d[5]||(d[5]=f=>i())},{default:Z(()=>[Xe("取消")]),_:1}),L(Ve,{class:"btn",type:"primary",onClick:d[6]||(d[6]=f=>c())},{default:Z(()=>[Xe("确认")]),_:1})])])):(V(),A("table",{key:0,onMouseleave:d[1]||(d[1]=f=>o.value=[]),onClick:d[2]||(d[2]=f=>r())},[X("tbody",null,[(V(),A(me,null,ye(10,f=>X("tr",{key:f},[(V(),A(me,null,ye(10,p=>X("td",{onMouseenter:R=>o.value=[f,p],key:p},[X("div",{class:re(["cell",{active:o.value.length&&f<=o.value[0]&&p<=o.value[1]}])},null,2)],40,V7)),64))])),64))])],32))]))}}),Z7=Me(Q7,[["__scopeId","data-v-f869c45f"]]);var As=82;function Ml(e){return Fi[e]==null&&K7(e),Fi[e]}function K7(e){var t=E7[e];if(t!=null){for(var n=t.substring(3,5),o=1*n.charCodeAt(0)-As,l=1*n.charCodeAt(1)-As,a=t.substring(5),s=[[]],r=1/0,c=-1/0,i=1/0,u=-1/0,d=0;df>RfR",797:" 3D`D``D",798:" 3RRR>Rf",799:" 3D`DD``",800:" 3D`DR`R",801:" 3F^FY^K",802:" 3KYK^YF",803:" 3RRRDR`",804:" 3KYKFY^",805:" 3F^FK^Y",806:" 3KYKRYR",807:" 3MWMWWM",808:" 3RRRKRY",809:" 3MWMMWW",810:" 8GRRGPGMHJJHMGPGR",811:" 8GRGRGTHWJZM\\P]R]",812:" 8R]R]T]W\\ZZ\\W]T]R",813:" 8R]]R]P\\MZJWHTGRG",814:" 9D`DOGQKSPTTTYS]Q`O",815:" 9PUUDSGQKPPPTQYS]U`",816:" 9OTODQGSKTPTTSYQ]O`",817:" 9D`DUGSKQPPTPYQ]S`U",818:" 5KYRJYNKVRZ",819:" 5JZJRNKVYZR",820:" 5KYKVKNYVYN",821:" 5JZLXJPZTXL",822:" 23JZJ]L]O\\Q[TXUVVSVOULTJSIQIPJOLNONSOVPXS[U\\X]Z]",823:" 23I]]Z]X\\U[SXPVOSNONLOJPIQISJTLUOVSVVUXT[Q\\O]L]J",824:" 23JZZGXGUHSIPLONNQNUOXPZQ[S[TZUXVUVQUNTLQIOHLGJG",825:" 23G[GJGLHOIQLTNUQVUVXUZT[S[QZPXOUNQNNOLPISHUGXGZ",826:" 21E[EPFRHTJUMVQVUUXSZP[NZLWLSMQNNPLSKVKYL\\M^",827:" 19EYETHVKWPWSVVTXQYNYLXKVKSLPNNQMTMYN\\P_",828:" 26OUQOOQOSQUSUUSUQSOQO RQPPQPSQTSTTSTQSPQP RRQQRRSSRRQ",829:" 11RWRMSMUNVOWQWSVUUVSWRW",830:" 9D`DRJR RORUR RZR`R",831:" 5D`DUDO`O`U",832:" 6JZRDJR RRDZR",833:" 9D`DR`R RJYZY RP`T`",834:" 9D`DR`R RDRRb R`RRb",840:" 18KYQKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK",841:" 6LXLLLXXXXLLL",842:" 5KYRJKVYVRJ",843:" 6LXRHLRR\\XRRH",844:" 12JZRIPOJOOSMYRUWYUSZOTORI",845:" 6KYRKRY RKRYR",846:" 6MWMMWW RWMMW",847:" 9MWRLRX RMOWU RWOMU",850:" 35NVQNOONQNSOUQVSVUUVSVQUOSNQN ROQOS RPPPT RQOQU RRORU RSOSU RTPTT RUQUS",851:" 27NVNNNVVVVNNN ROOOU RPOPU RQOQU RRORU RSOSU RTOTU RUOUU",852:" 17MWRLMUWURL RROOT RROUT RRRQT RRRST",853:" 17LULRUWUMLR RORTU RORTO RRRTS RRRTQ",854:" 17MWRXWOMORX RRUUP RRUOP RRRSP RRRQP",855:" 17OXXROMOWXR RURPO RURPU RRRPQ RRRPS",856:" 22LXRLNWXPLPVWRL RRRRL RRRLP RRRNW RRRVW RRRXP",857:" 11RYRKRY RRKYNRQ RSMVNSO",860:" 13MWRLRX ROOUO RMUOWQXSXUWWU",861:" 11LXRLRX RLQMOWOXQ RPWTW",862:" 14KYMNWX RWNMX ROLLOKQ RULXOYQ",863:" 18I[NII[ RVI[[ RMM[[ RWMI[ RNIVI RMMWM",864:" 21I[RGRV RMJWP RWJMP RIVL\\ R[VX\\ RIV[V RL\\X\\",865:" 11G[MJSV RKPSL RG\\[\\[RG\\",866:" 14LXPLPPLPLTPTPXTXTTXTXPTPTLPL",867:" 32KYYPXNVLSKQKNLLNKQKSLVNXQYSYVXXVYT RYPWNUMSMQNPOOQOSPUQVSWUWWVYT",868:" 10KYRJKVYVRJ RRZYNKNRZ",869:" 34G]PIPGQFSFTGTI RGZHXJVKTLPLKMJOIUIWJXKXPYTZV\\X]Z RGZ]Z RQZP[Q\\S\\T[SZ",870:" 64JZRMRS RRSQ\\ RRSS\\ RQ\\S\\ RRMQJPHNG RQJNG RRMSJTHVG RSJVG RRMNKLKJM RPLLLJM RRMVKXKZM RTLXLZM RRMPNOOOR RRMPOOR RRMTNUOUR RRMTOUR",871:" 94JZRIRK RRNRP RRSRU RRYQ\\ RRYS\\ RQ\\S\\ RRGQIPJ RRGSITJ RPJRITJ RRKPNNOMN RRKTNVOWN RNOPORNTOVO RRPPSNTLTKRKSLT RRPTSVTXTYRYSXT RNTPTRSTTVT RRUPXOYMZLZKYJWJYLZ RRUTXUYWZXZYYZWZYXZ RMZOZRYUZWZ",872:" 40JZRYQ\\ RRYS\\ RQ\\S\\ RRYUZXZZXZUYTWTYRZOYMWLUMVJUHSGQGOHNJOMMLKMJOKRMTKTJUJXLZOZRY",873:" 32JZRYQ\\ RRYS\\ RQ\\S\\ RRYVXVVXUXRZQZLYIXHVHTGPGNHLHKIJLJQLRLUNVNXRY",874:" 15I[IPKR RLKNP RRGRO RXKVP R[PYR",899:" 6QSRQQRRSSRRQ",900:" 10PTQPPQPSQTSTTSTQSPQP",901:" 14NVQNOONQNSOUQVSVUUVSVQUOSNQN",902:" 18MWQMONNOMQMSNUOVQWSWUVVUWSWQVOUNSMQM",903:" 18KYQKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK",904:" 22G]PGMHJJHMGPGTHWJZM\\P]T]W\\ZZ\\W]T]P\\MZJWHTGPG",905:" 34AcPALBJCGEEGCJBLAPATBXCZE]G_JaLbPcTcXbZa]__]aZbXcTcPbLaJ_G]EZCXBTAPA",906:" 34fRAPCMDJDGCEA>H@JAMAZB]D_G`M`PaRc RRATCWDZD]C_AfHdJcMcZb]`_]`W`TaRc",909:" 33AcRAPCMDJDGCEABGAKAPBTDXG\\L`Rc RRATCWDZD]C_AbGcKcPbT`X]\\X`Rc RBHbH",997:" 3MWMXWX",998:" 3JZJZZZ",999:" 3JZJ]Z]",1001:" 18KYRKMX RRNVX RRKWX ROTTT RKXPX RTXYX",1002:" 35JZNKNX ROKOX RLKSKVLWNVPSQ RSKULVNUPSQ ROQSQVRWTWUVWSXLX RSQURVTVUUWSX",1003:" 24KYVLWKWOVLTKQKOLNMMPMSNVOWQXTXVWWU RQKOMNPNSOVQX",1004:" 26JZNKNX ROKOX RLKSKVLWMXPXSWVVWSXLX RSKULVMWPWSVVUWSX",1005:" 22JYNKNX ROKOX RSOSS RLKVKVOUK ROQSQ RLXVXVTUX",1006:" 20JXNKNX ROKOX RSOSS RLKVKVOUK ROQSQ RLXQX",1007:" 36K[VLWKWOVLTKQKOLNMMPMSNVOWQXTXVW RQKOMNPNSOVQX RTXUWVU RVSVX RWSWX RTSYS",1008:" 27J[NKNX ROKOX RVKVX RWKWX RLKQK RTKYK ROQVQ RLXQX RTXYX",1009:" 12NWRKRX RSKSX RPKUK RPXUX",1010:" 19LXSKSURWQX RTKTUSWQXPXNWMUNTOUNV RQKVK",1011:" 27JZNKNX ROKOX RWKOS RQQVX RRQWX RLKQK RTKYK RLXQX RTXYX",1012:" 14KXOKOX RPKPX RMKRK RMXWXWTVX",1013:" 30I\\MKMX RNNRX RNKRU RWKRX RWKWX RXKXX RKKNK RWKZK RKXOX RUXZX",1014:" 21JZNKNX ROMVX ROKVV RVKVX RLKOK RTKXK RLXPX",1015:" 32KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK",1016:" 25JYNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXQX",1017:" 47KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK RPWPUQTSTTUUZV[W[XZ RTUUXVZW[",1018:" 37JZNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXQX RSRTSUWVXWXXW RSRUSVWWX",1019:" 32KZVMWKWOVMULSKQKOLNMNOOPQQTRVSWT RNNOOQPTQVRWSWVVWTXRXPWOVNTNXOV",1020:" 16KZRKRX RSKSX RNKMOMKXKXOWK RPXUX",1021:" 20J[NKNUOWQXTXVWWUWK ROKOUPWQX RLKQK RUKYK",1022:" 15KYMKRX RNKRU RWKRX RKKPK RTKYK",1023:" 24I[LKOX RMKOT RRKOX RRKUX RSKUT RXKUX RJKOK RVKZK",1024:" 21KZNKVX ROKWX RWKNX RLKQK RTKYK RLXQX RTXYX",1025:" 20LYNKRRRX ROKSR RWKSRSX RLKQK RTKYK RPXUX",1026:" 16LYVKNX RWKOX ROKNONKWK RNXWXWTVX",1027:" 18KYRKMX RRNVX RRKWX ROTTT RKXPX RTXYX",1028:" 35JZNKNX ROKOX RLKSKVLWNVPSQ RSKULVNUPSQ ROQSQVRWTWUVWSXLX RSQURVTVUUWSX",1029:" 14KXOKOX RPKPX RMKWKWOVK RMXRX",1030:" 15KYRKLX RRMWX RRKXX RMWVW RLXXX",1031:" 22JYNKNX ROKOX RSOSS RLKVKVOUK ROQSQ RLXVXVTUX",1032:" 16LYVKNX RWKOX ROKNONKWK RNXWXWTVX",1033:" 27J[NKNX ROKOX RVKVX RWKWX RLKQK RTKYK ROQVQ RLXQX RTXYX",1034:" 44KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK RQOQT RTOTT RQQTQ RQRTR",1035:" 12NWRKRX RSKSX RPKUK RPXUX",1036:" 27JZNKNX ROKOX RWKOS RQQVX RRQWX RLKQK RTKYK RLXQX RTXYX",1037:" 15KYRKMX RRNVX RRKWX RKXPX RTXYX",1038:" 30I\\MKMX RNNRX RNKRU RWKRX RWKWX RXKXX RKKNK RWKZK RKXOX RUXZX",1039:" 21JZNKNX ROMVX ROKVV RVKVX RLKOK RTKXK RLXPX",1040:" 36JZMJLM RXJWM RPPOS RUPTS RMVLY RXVWY RMKWK RMLWL RPQTQ RPRTR RMWWW RMXWX",1041:" 32KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK",1042:" 21J[NKNX ROKOX RVKVX RWKWX RLKYK RLXQX RTXYX",1043:" 25JYNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXQX",1044:" 20K[MKRQ RNKSQMX RMKWKXOVK RNWWW RMXWXXTVX",1045:" 16KZRKRX RSKSX RNKMOMKXKXOWK RPXUX",1046:" 33KZMONLOKPKQLRORX RXOWLVKUKTLSOSX RMONMOLPLQMRO RXOWMVLULTMSO RPXUX",1047:" 40KZRKRX RSKSX RQNNOMQMRNTQUTUWTXRXQWOTNQN RQNOONQNROTQU RTUVTWRWQVOTN RPKUK RPXUX",1048:" 21KZNKVX ROKWX RWKNX RLKQK RTKYK RLXQX RTXYX",1049:" 33J[RKRX RSKSX RLPMONOOSQU RTUVSWOXOYP RMONROTQUTUVTWRXO RPKUK RPXUX",1050:" 35KZMVNXQXMRMONMOLQKTKVLWMXOXRTXWXXV ROUNRNOOMQK RTKVMWOWRVU RNWPW RUWWW",1051:" 18KYTKKX RSMTX RTKUX RNTTT RIXNX RRXWX",1052:" 34JYPKLX RQKMX RNKUKWLWNVPSQ RUKVLVNUPSQ ROQRQTRUSUUTWQXJX RRQTSTUSWQX",1053:" 25KXVLWLXKWNVLTKRKPLOMNOMRMUNWPXRXTWUU RRKPMOONRNVPX",1054:" 26JYPKLX RQKMX RNKTKVLWNWQVTUVTWQXJX RTKULVNVQUTTVSWQX",1055:" 22JYPKLX RQKMX RSORS RNKXKWNWK ROQRQ RJXTXUUSX",1056:" 20JXPKLX RQKMX RSORS RNKXKWNWK ROQRQ RJXOX",1057:" 33KYVLWLXKWNVLTKRKPLOMNOMRMUNWPXRXTWUVVS RRKPMOONRNVPX RRXTVUS RSSXS",1058:" 27J[PKLX RQKMX RXKTX RYKUX RNKSK RVK[K ROQVQ RJXOX RRXWX",1059:" 12NWTKPX RUKQX RRKWK RNXSX",1060:" 19LXUKRUQWPX RVKSURWPXOXMWLUMTNUMV RSKXK",1061:" 27JZPKLX RQKMX RYKOR RRPTX RSPUX RNKSK RVK[K RJXOX RRXWX",1062:" 14KXQKMX RRKNX ROKTK RKXUXVUTX",1063:" 30I\\OKKX ROMPX RPKQV RYKPX RYKUX RZKVX RMKPK RYK\\K RIXMX RSXXX",1064:" 21JZPKLX RPKTX RQKTU RXKTX RNKQK RVKZK RJXNX",1065:" 32KYRKPLOMNOMRMUNWPXRXTWUVVTWQWNVLTKRK RRKPMOONRNVPX RRXTVUTVQVMTK",1066:" 24JYPKLX RQKMX RNKUKWLXMXOWQTROR RUKWMWOVQTR RJXOX",1067:" 46KYRKPLOMNOMRMUNWPXRXTWUVVTWQWNVLTKRK RRKPMOONRNVPX RRXTVUTVQVMTK ROWOVPUQURVRZS[T[UZ RRVSZT[",1068:" 35JZPKLX RQKMX RNKUKWLXMXOWQTROR RUKWMWOVQTR RSRTWUXVXWW RSRTSUWVX RJXOX",1069:" 28KZWLXLYKXNWLUKRKPLOMOOPPUSVT RONPOURVSVVUWSXPXNWMULXMWNW",1070:" 16KZTKPX RUKQX RPKNNOKZKYNYK RNXSX",1071:" 20J[PKMUMWOXSXUWVUYK RQKNUNWOX RNKSK RWK[K",1072:" 15KYOKPX RPKQV RYKPX RMKRK RVK[K",1073:" 24I[NKMX ROKNV RTKMX RTKSX RUKTV RZKSX RLKQK RXK\\K",1074:" 21KZPKTX RQKUX RYKLX RNKSK RVK[K RJXOX RRXWX",1075:" 20LYPKRQPX RQKSQ RYKSQQX RNKSK RVK[K RNXSX",1076:" 16LYXKLX RYKMX RQKONPKYK RLXUXVUTX",1101:" 32LZQOPPPQOQOPQOTOVQVWWXXX RTOUQUWWX RURRSPTOUOWPXSXTWUU RRSPUPWQX",1102:" 29JYNKNX ROKOX RORPPROTOVPWRWUVWTXRXPWOU RTOUPVRVUUWTX RLKOK",1103:" 24LXVQUQURVRVQUPSOQOOPNRNUOWQXSXUWVV RQOPPOROUPWQX",1104:" 32L[VKVX RWKWX RVRUPSOQOOPNRNUOWQXSXUWVU RQOPPOROUPWQX RTKWK RVXYX",1105:" 26LXOSVSVRUPSOQOOPNRNUOWQXSXUWVV RUSUQSO RQOPPOROUPWQX",1106:" 20LWTKULUMVMVLTKRKPMPX RRKQMQX RNOSO RNXSX",1107:" 42LYQOOQOSQUSUUSUQSOQO RQOPQPSQU RSUTSTQSO RTPUOVO RPTOUOXPYTYVZ ROWPXTXVYV[T\\P\\N[NYPX",1108:" 28J[NKNX ROKOX RORPPROTOVPWRWX RTOUPVRVX RLKOK RLXQX RTXYX",1109:" 18NWRKRLSLSKRK RRORX RSOSX RPOSO RPXUX",1110:" 23NWSKSLTLTKSK RSOSZR\\ RTOTZR\\P\\O[OZPZP[O[ RQOTO",1111:" 27JZNKNX ROKOX RWOOU RRSVX RSSWX RLKOK RTOYO RLXQX RTXYX",1112:" 12NWRKRX RSKSX RPKSK RPXUX",1113:" 44F_JOJX RKOKX RKRLPNOPORPSRSX RPOQPRRRX RSRTPVOXOZP[R[X RXOYPZRZX RHOKO RHXMX RPXUX RXX]X",1114:" 28J[NONX ROOOX RORPPROTOVPWRWX RTOUPVRVX RLOOO RLXQX RTXYX",1115:" 28LYQOOPNRNUOWQXTXVWWUWRVPTOQO RQOPPOROUPWQX RTXUWVUVRUPTO",1116:" 32JYNON\\ ROOO\\ RORPPROTOVPWRWUVWTXRXPWOU RTOUPVRVUUWTX RLOOO RL\\Q\\",1117:" 29KYUOU\\ RVOV\\ RURTPROPONPMRMUNWPXRXTWUU RPOOPNRNUOWPX RS\\X\\",1118:" 22KXOOOX RPOPX RPRQPSOUOVPVQUQUPVP RMOPO RMXRX",1119:" 26LYTOUPUQVQVPTOQOOPORQSTTVU ROQQRTSVTVWTXQXOWOVPVPWQX",1120:" 14LWPKPVRXTXUWUV RQKQVRX RNOTO",1121:" 28J[NONUOWQXSXUWVU ROOOUPWQX RVOVX RWOWX RLOOO RTOWO RVXYX",1122:" 15KYNORX ROORV RVORX RLOQO RTOXO",1123:" 24I[LOOX RMOOU RROOX RROUX RSOUU RXOUX RJOOO RVOZO",1124:" 21KYNOUX ROOVX RVONX RLOQO RTOXO RLXPX RSXXX",1125:" 23KYNORX ROORV RVORXP[N\\M\\L[LZMZM[L[ RLOQO RTOXO",1126:" 16LXUONX RVOOX ROONQNOVO RNXVXVVUX",1127:" 32K[QOOPNQMSMUNWPXQXSWUUWRXO RQOOQNSNUOWPX RQOSOUPWWXX RSOTPVWXXYX",1128:" 40KXRKPMOOMUK\\ RQLPNNTL\\ RRKTKVLVNUPRQ RTKULUNTPRQ RRQTRUTUVTWRXQXOWNT RRQSRTTTVRX",1129:" 19KYLQNOPORPSSSXR\\ RLQNPPPRQSS RWOVRSXQ\\",1130:" 39KYSOQOOPNQMSMUNWPXRXTWUVVTVRUPRNQLQKRJTJUKVM RQOOQNSNVPX RRXTVUTUQSO RQLRKTKVM",1131:" 27LXVPTOQOOPOQPRRS RQOPPPQRS RRSOTNUNWPXSXUW RRSPTOUOWPX",1132:" 28LWRKQLQMSNVNVMSNPOOPNRNTOVPWRXSYS[R\\P\\O[ RSNQOPPOROTPVRX",1133:" 26IYJRKPLONOOPOQMX RMONPNQLX ROQPPROTOVPVRS\\ RTOUPURR\\",1134:" 35IYJSKQLPNPOQOVPX RMPNQNUOWPXQXSWTVUTVQVNULTKRKQLQNRPURWS RQXSVTTUQUNTK",1135:" 13NWROPVPWQXSXUWVU RSOQVQWRX",1136:" 26KYOOLX RPOMX RUOVPWPVOTORQOR RORPSRWTXVWWU RORQSSWTX",1137:" 15LXLKNKPLWX RNKOLVX RRPMX RRPNX",1138:" 26KZOOK\\ RPOL\\ RNUNWOXQXSWTV RVOTVTWUXWXXWYU RWOUVUWVX",1139:" 19JYNOMX ROONUMX RVRVOWOVRTUQWNXMX RLOOO",1140:" 36MXRKQLQMSNVN RTNQOPPPRRSUS RTNROQPQRRS RSSPTOUOWQXSYTZT[S\\Q\\ RSSQTPUPWQX",1141:" 28KXQOOPNQMSMUNWPXRXTWUVVTVRUPSOQO RQOOQNSNVPX RRXTVUTUQSO",1142:" 20IZPPMX RPPNX RTPSX RTPTX RKQMOXO RKQMPXP",1143:" 29JXSOQOOPNQMSJ\\ RQOOQNSK\\ RSOUPVRVTUVTWRXPXNWMU RSOUQUTTVRX",1144:" 28K[YOQOOPNQMSMUNWPXRXTWUVVTVRUPYP RQOOQNSNVPX RRXTVUTUQSO",1145:" 14KZSPQX RSPRX RMQOOXO RMQOPXP",1146:" 24JXKRLPMOOOPPPROUOWPX RNOOPORNUNWPXQXSWUUVRVOUOVP",1147:" 35KZOPNQMSMUNWPXRXUWWUXRXPWOUOTPSRRUO\\ RMUNVPWRWUVWTXR RXQWPUPSR RRUQXP\\",1148:" 17KXMONOPPS[T\\ RNOOPR[T\\U\\ RVOTRNYL\\",1149:" 28I[TKQ\\ RUKP\\ RJRKPLONOOPOVPWSWUVWT RMONPNTOWPXSXUWWTXRYO",1150:" 36JZNPPPPONPMQLSLUMWNXPXQWRUSR RLUNWPWRU RRRRWSXUXWVXTXRWPVOVPWP RRUSWUWWV",1151:" 32KZVOTVTWUXWXXWYU RWOUVUWVX RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX",1152:" 32JXOKMR RPKNRNVPX RNROPQOSOUPVRVTUVTWRXPXNWMUMR RSOUQUTTVRX RMKPK",1153:" 22KXUPUQVQUPSOQOOPNQMSMUNWPXRXTWUV RQOOQNSNVPX",1154:" 35KZWKTVTWUXWXXWYU RXKUVUWVX RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX RUKXK",1155:" 23KWNURTTSURUPSOQOOPNQMSMUNWPXRXTWUV RQOOQNSNVPX",1156:" 23MXWKXLXKVKTLSNPYO[N\\ RVKULTNQYP[N\\L\\L[M\\ RPOVO",1157:" 34KYVOTVSYR[ RWOUVTYR[P\\M\\L[M[N\\ RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX",1158:" 29KZPKLX RQKMX ROQPPROTOVPVRUUUWVX RTOUPURTUTWUXWXXWYU RNKQK",1159:" 26MWSKSLTLTKSK RNROPPOROSPSRRURWSX RQORPRRQUQWRXTXUWVU",1160:" 26MWTKTLULUKTK RORPPQOSOTPTRRYQ[O\\M\\M[N\\ RROSPSRQYP[O\\",1161:" 32KXPKLX RQKMX RVPUQVQVPUOTORQPROR RORPSQWRXTXUWVU RORQSRWSX RNKQK",1162:" 16NVSKPVPWQXSXTWUU RTKQVQWRX RQKTK",1163:" 46F^GRHPIOKOLPLQJX RJOKPKQIX RLQMPOOQOSPSQQX RQORPRQPX RSQTPVOXOZPZRYUYWZX RXOYPYRXUXWYX[X\\W]U",1164:" 33J[KRLPMOOOPPPQNX RNOOPOQMX RPQQPSOUOWPWRVUVWWX RUOVPVRUUUWVXXXYWZU",1165:" 28KXQOOPNQMSMUNWPXRXTWUVVTVRUPSOQO RQOOQNSNVPX RRXTVUTUQSO",1166:" 35JYKRLPMOOOPPPQM\\ RNOOPOQL\\ RPQROTOVPWRWTVVUWSXQXOVOT RTOVQVTUVSX RJ\\O\\",1167:" 28KYVOR\\ RWOS\\ RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX RP\\U\\",1168:" 22LXMRNPOOQORPRQPX RPOQPQQOX RRQSPUOVOWPWQVQWP",1169:" 24LYVPVQWQVPTOQOOPORQSTTVU ROQQRTSVTVWTXQXOWNVOVOW",1170:" 16NWSKPVPWQXSXTWUU RTKQVQWRX RPOUO",1171:" 33IZJRKPLONOOPORNUNWOX RMONPNRMUMWOXQXSWTV RVOTVTWUXWXXWYU RWOUVUWVX",1172:" 24JXKRLPMOOOPPPROUOWPX RNOOPORNUNWPXQXSWUUVRVOUOVP",1173:" 37H\\IRJPKOMONPNRMUMWNX RLOMPMRLULWNXOXQWRV RTORVRWTX RUOSVSWTXUXWWYUZRZOYOZP",1174:" 38JZMRNPPOROSPSR RQORPRRQUPWNXMXLWLVMVLW RXPWQXQXPWOVOTPSRRURWSX RQUQWRXTXVWWU",1175:" 35IYJRKPLONOOPORNUNWOX RMONPNRMUMWOXQXSWTV RVOTVSYR[ RWOUVTYR[P\\M\\L[M[N\\",1176:" 27KYWOWPVQNVMWMX RNQOOROUQ ROPRPUQVQ RNVOVRWUW ROVRXUXVV",1177:" 39H[RKSLSMTMTLRKOKMLLNLX ROKNLMNMX RXKYLYMZMZLXKVKTMTX RVKUMUX RJOWO RJXOX RRXWX",1178:" 29J[UKVLWLWKQKOLNNNX RQKPLONOX RVOVX RWOWX RLOWO RLXQX RTXYX",1179:" 27J[WKQKOLNNNX RQKPLONOX RUKVLVX RWKWX RLOVO RLXQX RTXYX",1180:" 48F_PKQLQMRMRLPKMKKLJNJX RMKLLKNKX RYKZL[L[KUKSLRNRX RUKTLSNSX RZOZX R[O[X RHO[O RHXMX RPXUX RXX]X",1181:" 46F_PKQLQMRMRLPKMKKLJNJX RMKLLKNKX R[KUKSLRNRX RUKTLSNSX RYKZLZX R[K[X RHOZO RHXMX RPXUX RXX]X",1182:" 12NWRORX RSOSX RPOSO RPXUX",1184:" 21LXVPTOROPPOQNSNUOWQXSXUW RROPQOSOVQX ROSSS",1185:" 35LYSKQLPMOONRNUOWPXRXTWUVVTWQWNVLUKSK RSKQMPOOSOVPX RRXTVUTVPVMUK ROQVQ",1186:" 34KZTKQ\\ RUKP\\ RQONPMRMUNWQXTXWWXUXRWPTOQO RQOOPNRNUOWQX RTXVWWUWRVPTO",1187:" 22LXUPVRVQUPSOQOOPNRNTOVRX RQOOQOTPVRXSYS[R\\P\\",1191:" 45I[VKWLXLVKSKQLPMOOLYK[J\\ RSKQMPOMYL[J\\H\\H[I\\ RZK[L[KYKWLVNSYR[Q\\ RYKXLWNTYS[Q\\O\\O[P\\ RLOYO",1192:" 38IZVKWLXLXKSKQLPMOOLYK[J\\ RSKQMPOMYL[J\\H\\H[I\\ RVOTVTWUXWXXWYU RWOUVUWVX RLOWO",1193:" 38IZVKWL RXKSKQLPMOOLYK[J\\ RSKQMPOMYL[J\\H\\H[I\\ RWKTVTWUXWXXWYU RXKUVUWVX RLOVO",1194:" 63F^SKTLTM RULSKPKNLMMLOIYH[G\\ RPKNMMOJYI[G\\E\\E[F\\ RZK[L\\L\\KWKUL RTMSOPYO[N\\ RWKUMTOQYP[N\\L\\L[M\\ RZOXVXWYX[X\\W]U R[OYVYWZX RIO[O",1195:" 63F^SKTLTM RULSKPKNLMMLOIYH[G\\ RPKNMMOJYI[G\\E\\E[F\\ RZK[L R\\KWKUL RTMSOPYO[N\\ RWKUMTOQYP[N\\L\\L[M\\ R[KXVXWYX[X\\W]U R\\KYVYWZX RIOZO",1196:" 20MWNROPPOROSPSRRURWSX RQORPRRQUQWRXTXUWVU",1200:" 28LYQKOLNONTOWQXTXVWWTWOVLTKQK RQKPLOOOTPWQX RTXUWVTVOULTK",1201:" 10LYPNSKSX RRLRX ROXVX",1202:" 35LYOMONNNNMOLQKTKVLWNVPTQQROSNUNX RTKULVNUPTQ RNWOVPVSWVWWV RPVSXVXWVWU",1203:" 39LYOMONNNNMOLQKTKVLWNVPTQ RTKULVNUPTQ RRQTQVRWTWUVWTXQXOWNVNUOUOV RTQURVTVUUWTX",1204:" 13LYSMSX RTKTX RTKMTXT RQXVX",1205:" 33LYOKNQ ROKVK ROLSLVK RNQOPQOTOVPWRWUVWTXQXOWNVNUOUOV RTOUPVRVUUWTX",1206:" 36LYVMVNWNWMVLTKRKPLOMNPNUOWQXTXVWWUWSVQTPQPNR RRKPMOPOUPWQX RTXUWVUVSUQTP",1207:" 22LYNKNO RVMRTPX RWKTQQX RNMPKRKUM RNMPLRLUMVM",1208:" 51LYQKOLNNOPQQTQVPWNVLTKQK RQKPLONPPQQ RTQUPVNULTK RQQORNTNUOWQXTXVWWUWTVRTQ RQQPROTOUPWQX RTXUWVUVTURTQ",1209:" 36LYOVOUNUNVOWQXSXUWVVWSWNVLTKQKOLNNNPORQSTSWQ RSXUVVSVNULTK RQKPLONOPPRQS",1210:" 6NVRVQWRXSWRV",1211:" 8NVSWRXQWRVSWSYQ[",1212:" 12NVROQPRQSPRO RRVQWRXSWRV",1213:" 14NVROQPRQSPRO RSWRXQWRVSWSYQ[",1214:" 15NVRKQLRSSLRK RRLRO RRVQWRXSWRV",1215:" 29LYNNONOONONNOLQKTKVLWNWOVQSRRSRTST RTKVMVPUQSR RRWRXSXSWRW",1216:" 6OVRKRP RSKRP",1217:" 12LXOKOP RPKOP RUKUP RVKUP",1218:" 10MWQKPLPNQOSOTNTLSKQK",1219:" 9MWRJRP ROKUO RUKOO",1220:" 3KZXHM\\",1221:" 16MWUHSJQMPPPTQWSZU\\ RSJRLQPQTRXSZ",1222:" 16MWOHQJSMTPTTSWQZO\\ RQJRLSPSTRXQZ",1223:" 12MWPHP\\ RQHQ\\ RPHUH RP\\U\\",1224:" 12MWSHS\\ RTHT\\ ROHTH RO\\T\\",1225:" 38LWSHQIPJPLRNSP RQIPL RSNRQ RPJQLSNSPRQPRRSSTSVQXPZ RRSSV RPXQ[ RSTRVPXPZQ[S\\",1226:" 38MXQHSITJTLRNQP RSITL RQNRQ RTJSLQNQPRQTRRSQTQVSXTZ RRSQV RTXS[ RQTRVTXTZS[Q\\",1227:" 4MWTHPRT\\",1228:" 4MWPHTRP\\",1229:" 3OURHR\\",1230:" 6MWPHP\\ RTHT\\",1231:" 3I[LRXR",1232:" 6I[RLRX RLRXR",1233:" 9JZRMRX RMRWR RMXWX",1234:" 9JZRMRX RMMWM RMRWR",1235:" 6JZMMWW RWMMW",1236:" 6NVRQQRRSSRRQ",1237:" 15I[RLQMRNSMRL RLRXR RRVQWRXSWRV",1238:" 6I[LPXP RLTXT",1239:" 9I[WLMX RLPXP RLTXT",1240:" 9I[LNXN RLRXR RLVXV",1241:" 4JZWLMRWX",1242:" 4JZMLWRMX",1243:" 10JZWKMOWS RMTWT RMXWX",1244:" 10JZMKWOMS RMTWT RMXWX",1245:" 21H[YUWUUTTSRPQOONNNLOKQKRLTNUOUQTRSTPUOWNYN",1246:" 16JZLTLRMPOPUSWSXR RLRMQOQUTWTXRXP",1247:" 8JZMSRPWS RMSRQWS",1248:" 7NVSKPO RSKTLPO",1249:" 7NVQKTO RQKPLTO",1250:" 14LXNKOMQNSNUMVK RNKONQOSOUNVK",1251:" 8NVSLRMQLRKSLSNQP",1252:" 8NVSKQMQORPSORNQO",1253:" 8NVQLRMSLRKQLQNSP",1254:" 8NVQKSMSORPQORNSO",1256:" 11JZWMQMONNOMQMSNUOVQWWW",1257:" 11JZMMMSNUOVQWSWUVVUWSWM",1258:" 11JZMMSMUNVOWQWSVUUVSWMW",1259:" 11JZMWMQNOONQMSMUNVOWQWW",1260:" 14JZWMQMONNOMQMSNUOVQWWW RMRUR",1261:" 13I[TOUPXRUTTU RUPWRUT RLRWR",1262:" 13MWRMRX ROPPORLTOUP RPORMTO",1263:" 13I[POOPLROTPU ROPMROT RMRXR",1264:" 13MWRLRW ROTPURXTUUT RPURWTU",1265:" 37KYVSUPSOQOOPNQMSMUNWPXRXTWUVVTWQWNVLTKQKPLQLRK RQOOQNSNVPX RRXTVUTVQVNULTK",1266:" 15JZLKRX RMKRV RXKRX RLKXK RNLWL",1267:" 10G[IOLORW RKORX R[FRX",1268:" 26I[XIXJYJYIXHVHTJSLROQUPYO[ RUITKSORUQXPZN\\L\\K[KZLZL[",1269:" 40I[XIXJYJYIXHVHTJSLROQUPYO[ RUITKSORUQXPZN\\L\\K[KZLZL[ RQNOONQNSOUQVSVUUVSVQUOSNQN",1270:" 26H\\ZRYTWUVUTTSSQPPONNMNKOJQJRKTMUNUPTQSSPTOVNWNYOZQZR",1271:" 26JZXKLX ROKPLPNOOMOLNLLMKOKSLVLXK RUTTUTWUXWXXWXUWTUT",1272:" 41J[YPXPXQYQYPXOWOVPUTTVSWQXOXMWLVLTMSORRPSNSLRKPKOLONPQUWWXXXYW ROXMVMTOR RONPPVWWX",1273:" 29J[UPSOQOPQPRQTSTUS RUOUSVTXTYRYQXNVLSKRKOLMNLQLRMUOWRXSXVW",1274:" 34KZQHQ\\ RTHT\\ RWLVLVMWMWLUKPKNLNNOPVSWT RNNOOVRWTWVVWTXQXOWNVNUOUOVNV",1275:" 12KYRKN\\ RVKR\\ RNQWQ RMVVV",1276:" 40LXTLSLSMTMTLSKQKPLPNQPTRUS RPNQOTQUSUUSW RQPOROTPVSXTY ROTPUSWTYT[S\\Q\\P[PZQZQ[P[",1277:" 29LXRKQLRMSLRK RRMRQ RRQQSRVSSRQ RRVR\\ RPOONNOOPPOTOUNVOUPTO",1278:" 42LXRMSLRKQLRMRQQRSURV RRQSRQURVRZQ[R\\S[RZ RPOONNOOPPOTOUNVOUPTO RPXOWNXOYPXTXUWVXUYTX",1279:" 12LYVKVX RNKVK RQQVQ RNXVX",1281:" 24H\\QKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK RRQQRRSSRRQ",1282:" 33LYQKPLPMQN RTKULUMTN RRNPOOQORPTRUSUUTVRVQUOSNRN RRURY RSUSY ROWVW",1283:" 23LYRKPLONOOPQRRSRUQVOVNULSKRK RRRRX RSRSX ROUVU",1284:" 24H\\QKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK RRKRY RKRYR",1285:" 25JYRRPQOQMRLTLUMWOXPXRWSUSTRR RWMRR RRMWMWR RRMVNWR",1286:" 25JZLLMKOKQLRNRPQRPSNT ROKPLQNQQPS RVKUX RWKTX RNTXT",1287:" 27JYNKNU ROKNR RNROPQOSOUPVQVTTVTXUYVYWX RSOUQUTTV RLKOK",1288:" 27LYONRKRQ RVNSKSQ RRQPROTOUPWRXSXUWVUVTURSQ RRTRUSUSTRT",1289:" 27JZRKRY RMKMPNRPSTSVRWPWK RLMMKNM RQMRKSM RVMWKXM ROVUV",1290:" 27JYNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXVXVUUX",1291:" 20LYWKTKQLONNQNSOVQXTYWY RWKTLRNQQQSRVTXWY",1292:" 23JZRRPQOQMRLTLUMWOXPXRWSUSTRR RSLQQ RWMRR RXQSS",1293:" 12KYPMTW RTMPW RMPWT RWPMT",1294:" 34J[OUMULVLXMYOYPXPVNTMRMONMOLQKTKVLWMXOXRWTUVUXVYXYYXYVXUVU RNMPLULWM",1295:" 34J[OOMOLNLLMKOKPLPNNPMRMUNWOXQYTYVXWWXUXRWPUNULVKXKYLYNXOVO RNWPXUXWW",1401:" 21F^KHK\\ RLHL\\ RXHX\\ RYHY\\ RHH\\H RH\\O\\ RU\\\\\\",1402:" 20H]KHRQJ\\ RJHQQ RJHYHZMXH RK[X[ RJ\\Y\\ZWX\\",1403:" 20KYVBTDRGPKOPOTPYR]T`Vb RTDRHQKPPPTQYR\\T`",1404:" 20KYNBPDRGTKUPUTTYR]P`Nb RPDRHSKTPTTSYR\\P`",1405:" 12KYOBOb RPBPb ROBVB RObVb",1406:" 12KYTBTb RUBUb RNBUB RNbUb",1407:" 40KYTBRCQDPFPHQJRKSMSOQQ RRCQEQGRISJTLTNSPORSTTVTXSZR[Q]Q_Ra RQSSUSWRYQZP\\P^Q`RaTb",1408:" 40KYPBRCSDTFTHSJRKQMQOSQ RRCSESGRIQJPLPNQPURQTPVPXQZR[S]S_Ra RSSQUQWRYSZT\\T^S`RaPb",1409:" 24KYU@RCPFOIOLPOSVTYT\\S_Ra RRCQEPHPKQNTUUXU[T^RaOd",1410:" 24KYO@RCTFUIULTOQVPYP\\Q_Ra RRCSETHTKSNPUOXO[P^RaUd",1411:" 13AXCRGRR` RGSRa RFSRb RX:Rb",1412:" 32F^[CZD[E\\D\\C[BYBWCUETGSJRNPZO^N` RVDUFTJRVQZP]O_MaKbIbHaH`I_J`Ia",2001:" 18H\\RFK[ RRFY[ RRIX[ RMUVU RI[O[ RU[[[",2002:" 45G]LFL[ RMFM[ RIFUFXGYHZJZLYNXOUP RUFWGXHYJYLXNWOUP RMPUPXQYRZTZWYYXZU[I[ RUPWQXRYTYWXYWZU[",2003:" 32G\\XIYLYFXIVGSFQFNGLIKKJNJSKVLXNZQ[S[VZXXYV RQFOGMILKKNKSLVMXOZQ[",2004:" 30G]LFL[ RMFM[ RIFSFVGXIYKZNZSYVXXVZS[I[ RSFUGWIXKYNYSXVWXUZS[",2005:" 22G\\LFL[ RMFM[ RSLST RIFYFYLXF RMPSP RI[Y[YUX[",2006:" 20G[LFL[ RMFM[ RSLST RIFYFYLXF RMPSP RI[P[",2007:" 40G^XIYLYFXIVGSFQFNGLIKKJNJSKVLXNZQ[S[VZXX RQFOGMILKKNKSLVMXOZQ[ RXSX[ RYSY[ RUS\\S",2008:" 27F^KFK[ RLFL[ RXFX[ RYFY[ RHFOF RUF\\F RLPXP RH[O[ RU[\\[",2009:" 12MXRFR[ RSFS[ ROFVF RO[V[",2010:" 20KZUFUWTZR[P[NZMXMVNUOVNW RTFTWSZR[ RQFXF",2011:" 27F\\KFK[ RLFL[ RYFLS RQOY[ RPOX[ RHFOF RUF[F RH[O[ RU[[[",2012:" 14I[NFN[ ROFO[ RKFRF RK[Z[ZUY[",2013:" 30F_KFK[ RLFRX RKFR[ RYFR[ RYFY[ RZFZ[ RHFLF RYF]F RH[N[ RV[][",2014:" 21G^LFL[ RMFYY RMHY[ RYFY[ RIFMF RVF\\F RI[O[",2015:" 44G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RQFOGMILKKOKRLVMXOZQ[ RS[UZWXXVYRYOXKWIUGSF",2016:" 29G]LFL[ RMFM[ RIFUFXGYHZJZMYOXPUQMQ RUFWGXHYJYMXOWPUQ RI[P[",2017:" 64G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RQFOGMILKKOKRLVMXOZQ[ RS[UZWXXVYRYOXKWIUGSF RNYNXOVQURUTVUXV_W`Y`Z^Z] RUXV\\W^X_Y_Z^",2018:" 45G]LFL[ RMFM[ RIFUFXGYHZJZLYNXOUPMP RUFWGXHYJYLXNWOUP RI[P[ RRPTQURXYYZZZ[Y RTQUSWZX[Z[[Y[X",2019:" 34H\\XIYFYLXIVGSFPFMGKIKKLMMNOOUQWRYT RKKMMONUPWQXRYTYXWZT[Q[NZLXKUK[LX",2020:" 16I\\RFR[ RSFS[ RLFKLKFZFZLYF RO[V[",2021:" 23F^KFKULXNZQ[S[VZXXYUYF RLFLUMXOZQ[ RHFOF RVF\\F",2022:" 15H\\KFR[ RLFRX RYFR[ RIFOF RUF[F",2023:" 24F^JFN[ RKFNV RRFN[ RRFV[ RSFVV RZFV[ RGFNF RWF]F",2024:" 21H\\KFX[ RLFY[ RYFK[ RIFOF RUF[F RI[O[ RU[[[",2025:" 20H]KFRQR[ RLFSQS[ RZFSQ RIFOF RVF\\F RO[V[",2026:" 16H\\XFK[ RYFL[ RLFKLKFYF RK[Y[YUX[",2027:" 18H\\RFK[ RRFY[ RRIX[ RMUVU RI[O[ RU[[[",2028:" 45G]LFL[ RMFM[ RIFUFXGYHZJZLYNXOUP RUFWGXHYJYLXNWOUP RMPUPXQYRZTZWYYXZU[I[ RUPWQXRYTYWXYWZU[",2029:" 14I[NFN[ ROFO[ RKFZFZLYF RK[R[",2030:" 15H\\RFJ[ RRFZ[ RRIY[ RKZYZ RJ[Z[",2031:" 22G\\LFL[ RMFM[ RSLST RIFYFYLXF RMPSP RI[Y[YUX[",2032:" 16H\\XFK[ RYFL[ RLFKLKFYF RK[Y[YUX[",2033:" 27F^KFK[ RLFL[ RXFX[ RYFY[ RHFOF RUF\\F RLPXP RH[O[ RU[\\[",2034:" 56G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RQFOGMILKKOKRLVMXOZQ[ RS[UZWXXVYRYOXKWIUGSF ROMOT RUMUT ROPUP ROQUQ",2035:" 12MXRFR[ RSFS[ ROFVF RO[V[",2036:" 27F\\KFK[ RLFL[ RYFLS RQOY[ RPOX[ RHFOF RUF[F RH[O[ RU[[[",2037:" 15H\\RFK[ RRFY[ RRIX[ RI[O[ RU[[[",2038:" 30F_KFK[ RLFRX RKFR[ RYFR[ RYFY[ RZFZ[ RHFLF RYF]F RH[N[ RV[][",2039:" 21G^LFL[ RMFYY RMHY[ RYFY[ RIFMF RVF\\F RI[O[",2040:" 36G]KEJJ RZEYJ RONNS RVNUS RKWJ\\ RZWY\\ RKGYG RKHYH ROPUP ROQUQ RKYYY RKZYZ",2041:" 44G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RQFOGMILKKOKRLVMXOZQ[ RS[UZWXXVYRYOXKWIUGSF",2042:" 21F^KFK[ RLFL[ RXFX[ RYFY[ RHF\\F RH[O[ RU[\\[",2043:" 29G]LFL[ RMFM[ RIFUFXGYHZJZMYOXPUQMQ RUFWGXHYJYMXOWPUQ RI[P[",2044:" 20H]KFRPJ[ RJFQP RJFYFZLXF RKZXZ RJ[Y[ZUX[",2045:" 16I\\RFR[ RSFS[ RLFKLKFZFZLYF RO[V[",2046:" 33I\\KKKILGMFOFPGQIRMR[ RKIMGOGQI RZKZIYGXFVFUGTISMS[ RZIXGVGTI RO[V[",2047:" 48H]RFR[ RSFS[ RPKMLLMKOKRLTMUPVUVXUYTZRZOYMXLUKPK RPKNLMMLOLRMTNUPV RUVWUXTYRYOXMWLUK ROFVF RO[V[",2048:" 21H\\KFX[ RLFY[ RYFK[ RIFOF RUF[F RI[O[ RU[[[",2049:" 41G^RFR[ RSFS[ RIMJLLMMQNSOTQU RJLKMLQMSNTQUTUWTXSYQZM[L RTUVTWSXQYM[L\\M ROFVF RO[V[",2050:" 43G]JXK[O[MWKSJPJLKIMGPFTFWGYIZLZPYSWWU[Y[ZX RMWLTKPKLLINGPF RTFVGXIYLYPXTWW RKZNZ RVZYZ",2051:" 18H\\UFH[ RUFV[ RTHU[ RLUUU RF[L[ RR[X[",2052:" 41F^OFI[ RPFJ[ RLFWFZG[I[KZNYOVP RWFYGZIZKYNXOVP RMPVPXQYSYUXXVZR[F[ RVPWQXSXUWXUZR[",2053:" 34H]ZH[H\\F[L[JZHYGWFTFQGOIMLLOKSKVLYMZP[S[UZWXXV RTFRGPINLMOLSLVMYNZP[",2054:" 30F]OFI[ RPFJ[ RLFUFXGYHZKZOYSWWUYSZO[F[ RUFWGXHYKYOXSVWTYRZO[",2055:" 22F]OFI[ RPFJ[ RTLRT RLF[FZLZF RMPSP RF[U[WVT[",2056:" 20F\\OFI[ RPFJ[ RTLRT RLF[FZLZF RMPSP RF[M[",2057:" 42H^ZH[H\\F[L[JZHYGWFTFQGOIMLLOKSKVLYMZP[R[UZWXYT RTFRGPINLMOLSLVMYNZP[ RR[TZVXXT RUT\\T",2058:" 27E_NFH[ ROFI[ R[FU[ R\\FV[ RKFRF RXF_F RLPXP RE[L[ RR[Y[",2059:" 12LYUFO[ RVFP[ RRFYF RL[S[",2060:" 21I[XFSWRYQZO[M[KZJXJVKULVKW RWFRWQYO[ RTF[F",2061:" 27F]OFI[ RPFJ[ R]FLS RSOW[ RROV[ RLFSF RYF_F RF[M[ RS[Y[",2062:" 14H\\QFK[ RRFL[ RNFUF RH[W[YUV[",2063:" 30E`NFH[ RNFO[ ROFPY R\\FO[ R\\FV[ R]FW[ RKFOF R\\F`F RE[K[ RS[Z[",2064:" 21F_OFI[ ROFVX ROIV[ R\\FV[ RLFOF RYF_F RF[L[",2065:" 42G]SFPGNILLKOJSJVKYLZN[Q[TZVXXUYRZNZKYHXGVFSF RSFQGOIMLLOKSKVLYN[ RQ[SZUXWUXRYNYKXHVF",2066:" 27F]OFI[ RPFJ[ RLFXF[G\\I\\K[NYPUQMQ RXFZG[I[KZNXPUQ RF[M[",2067:" 61G]SFPGNILLKOJSJVKYLZN[Q[TZVXXUYRZNZKYHXGVFSF RSFQGOIMLLOKSKVLYN[ RQ[SZUXWUXRYNYKXHVF RLYLXMVOUPURVSXS_T`V`W^W] RSXT^U_V_W^",2068:" 42F^OFI[ RPFJ[ RLFWFZG[I[KZNYOVPMP RWFYGZIZKYNXOVP RRPTQURVZW[Y[ZYZX RURWYXZYZZY RF[M[",2069:" 35G^ZH[H\\F[L[JZHYGVFRFOGMIMKNMONVRXT RMKOMVQWRXTXWWYVZS[O[LZKYJWJUI[JYKY",2070:" 16H]UFO[ RVFP[ ROFLLNF]F\\L\\F RL[S[",2071:" 25F_NFKQJUJXKZN[R[UZWXXU\\F ROFLQKUKXLZN[ RKFRF RYF_F",2072:" 15H\\NFO[ ROFPY R\\FO[ RLFRF RXF^F",2073:" 24E_MFK[ RNFLY RUFK[ RUFS[ RVFTY R]FS[ RJFQF RZF`F",2074:" 21G]NFU[ ROFV[ R\\FH[ RLFRF RXF^F RF[L[ RR[X[",2075:" 20H]NFRPO[ ROFSPP[ R]FSP RLFRF RYF_F RL[S[",2076:" 16G][FH[ R\\FI[ ROFLLNF\\F RH[V[XUU[",2077:" 46H\\KILKXWYYY[ RLLXX RKIKKLMXYY[ RPPLTKVKXLZK[ RKVMZ RLTLVMXMZK[ RSSXN RVIVLWNYNYLWKVI RVIWLYN",2101:" 39I]NONPMPMONNPMTMVNWOXQXXYZZ[ RWOWXXZZ[[[ RWQVRPSMTLVLXMZP[S[UZWX RPSNTMVMXNZP[",2102:" 33G\\LFL[ RMFM[ RMPONQMSMVNXPYSYUXXVZS[Q[OZMX RSMUNWPXSXUWXUZS[ RIFMF",2103:" 28H[WPVQWRXQXPVNTMQMNNLPKSKULXNZQ[S[VZXX RQMONMPLSLUMXOZQ[",2104:" 36H]WFW[ RXFX[ RWPUNSMQMNNLPKSKULXNZQ[S[UZWX RQMONMPLSLUMXOZQ[ RTFXF RW[[[",2105:" 31H[LSXSXQWOVNTMQMNNLPKSKULXNZQ[S[VZXX RWSWPVN RQMONMPLSLUMXOZQ[",2106:" 22KXUGTHUIVHVGUFSFQGPIP[ RSFRGQIQ[ RMMUM RM[T[",2107:" 60I\\QMONNOMQMSNUOVQWSWUVVUWSWQVOUNSMQM RONNPNTOV RUVVTVPUN RVOWNYMYNWN RNUMVLXLYM[P\\U\\X]Y^ RLYMZP[U[X\\Y^Y_XaUbObLaK_K^L\\O[",2108:" 28G]LFL[ RMFM[ RMPONRMTMWNXPX[ RTMVNWPW[ RIFMF RI[P[ RT[[[",2109:" 18MXRFQGRHSGRF RRMR[ RSMS[ ROMSM RO[V[",2110:" 25MXSFRGSHTGSF RTMT_SaQbObNaN`O_P`Oa RSMS_RaQb RPMTM",2111:" 27G\\LFL[ RMFM[ RWMMW RRSX[ RQSW[ RIFMF RTMZM RI[P[ RT[Z[",2112:" 12MXRFR[ RSFS[ ROFSF RO[V[",2113:" 44BcGMG[ RHMH[ RHPJNMMOMRNSPS[ ROMQNRPR[ RSPUNXMZM]N^P^[ RZM\\N]P][ RDMHM RD[K[ RO[V[ RZ[a[",2114:" 28G]LML[ RMMM[ RMPONRMTMWNXPX[ RTMVNWPW[ RIMMM RI[P[ RT[[[",2115:" 36H\\QMNNLPKSKULXNZQ[S[VZXXYUYSXPVNSMQM RQMONMPLSLUMXOZQ[ RS[UZWXXUXSWPUNSM",2116:" 36G\\LMLb RMMMb RMPONQMSMVNXPYSYUXXVZS[Q[OZMX RSMUNWPXSXUWXUZS[ RIMMM RIbPb",2117:" 33H\\WMWb RXMXb RWPUNSMQMNNLPKSKULXNZQ[S[UZWX RQMONMPLSLUMXOZQ[ RTb[b",2118:" 23IZNMN[ ROMO[ ROSPPRNTMWMXNXOWPVOWN RKMOM RK[R[",2119:" 32J[WOXMXQWOVNTMPMNNMOMQNRPSUUWVXW RMPNQPRUTWUXVXYWZU[Q[OZNYMWM[NY",2120:" 16KZPFPWQZS[U[WZXX RQFQWRZS[ RMMUM",2121:" 28G]LMLXMZP[R[UZWX RMMMXNZP[ RWMW[ RXMX[ RIMMM RTMXM RW[[[",2122:" 15I[LMR[ RMMRY RXMR[ RJMPM RTMZM",2123:" 24F^JMN[ RKMNX RRMN[ RRMV[ RSMVX RZMV[ RGMNM RWM]M",2124:" 21H\\LMW[ RMMX[ RXML[ RJMPM RTMZM RJ[P[ RT[Z[",2125:" 22H[LMR[ RMMRY RXMR[P_NaLbKbJaK`La RJMPM RTMZM",2126:" 16I[WML[ RXMM[ RMMLQLMXM RL[X[XWW[",2127:" 40G^QMNNLPKRJUJXKZN[P[RZUWWTYPZM RQMONMPLRKUKXLZN[ RQMSMUNVPXXYZZ[ RSMTNUPWXXZZ[[[",2128:" 57G\\TFQGOIMMLPKTJZIb RTFRGPINMMPLTKZJb RTFVFXGYHYKXMWNTOPO RVFXHXKWMVNTO RPOTPVRWTWWVYUZR[P[NZMYLV RPOSPURVTVWUYTZR[",2129:" 28H\\IPKNMMOMQNROSRSVRZOb RJOLNPNRO RZMYPXRSYP^Nb RYMXPWRSY",2130:" 44I\\VNTMRMONMQLTLWMYNZP[R[UZWWXTXQWOSJRHRFSEUEWFYH RRMPNNQMTMXNZ RR[TZVWWTWPVNTKSISGTFVFYH",2131:" 32I[XPVNTMPMNNNPPRSS RPMONOPQRSS RSSNTLVLXMZP[S[UZWX RSSOTMVMXNZP[",2132:" 31I[TFRGQHQIRJUKZKZJWKSMPOMRLULWMYP[S]T_TaSbQbPa RULQONRMUMWNYP[",2133:" 32G]HQIOKMNMONOPNTL[ RMMNNNPMTK[ RNTPPRNTMVMXNYOYRXWUb RVMXOXRWWTb",2134:" 44F]GQHOJMMMNNNPMUMXNZO[ RLMMNMPLULXMZO[Q[SZUXWUXRYMYIXGVFTFRHRJSMUPWRZT RSZUWVUWRXMXIWGVF",2135:" 15LXRMPTOXOZP[S[UYVW RSMQTPXPZQ[",2136:" 29H\\NMJ[ ROMK[ RXMYNZNYMWMUNQROSMS ROSQTSZT[ ROSPTRZS[U[WZYW",2137:" 23H\\KFMFOGPHQJWXXZY[ RMFOHPJVXWZY[Z[ RRMJ[ RRMK[",2138:" 28F]MMGb RNMHb RMPLVLYN[P[RZTXVU RXMUXUZV[Y[[Y\\W RYMVXVZW[",2139:" 24H\\NML[ ROMNSMXL[ RYMXQVU RZMYPXRVUTWQYOZL[ RKMOM",2140:" 45IZTFRGQHQIRJUKXK RUKQLOMNONQPSSTVT RUKRLPMOOOQQSST RSTOUMVLXLZN\\S^T_TaRbPb RSTPUNVMXMZO\\S^",2141:" 32I[RMONMQLTLWMYNZP[R[UZWWXTXQWOVNTMRM RRMPNNQMTMXNZ RR[TZVWWTWPVN",2142:" 22G]PNL[ RPNM[ RVNV[ RVNW[ RIPKNNM[M RIPKONN[N",2143:" 31H[LVMYNZP[R[UZWWXTXQWOVNTMRMONMQLTHb RR[TZVWWTWPVN RRMPNNQMTIb",2144:" 35H][MQMNNLQKTKWLYMZO[Q[TZVWWTWQVOUNSM RQMONMQLTLXMZ RQ[SZUWVTVPUN RUN[N",2145:" 16H\\SNP[ RSNQ[ RJPLNOMZM RJPLOONZN",2146:" 31H\\IQJOLMOMPNPPNVNYP[ RNMONOPMVMYNZP[Q[TZVXXUYRYOXMWNXOYR RXUYO",2147:" 37G]ONMOKQJTJWKYLZN[Q[TZWXYUZRZOXMVMTORSPXMb RJWLYNZQZTYWWYU RZOXNVNTPRSPYNb",2148:" 23I[KMMMONPPU_VaWb RMMNNOPT_UaWbYb RZMYOWRM]K`Jb",2149:" 34F]UFOb RVFNb RGQHOJMMMNNNPMUMXOZRZTYWVYS RLMMNMPLULXMZO[R[TZVXXUYS[M",2150:" 44F]JQLOONNMLNJQITIWJZK[M[OZQWRT RIWJYKZMZOYQW RQTQWRZS[U[WZYWZTZQYNXMWNYOZQ RQWRYSZUZWYYW",2151:" 39H]XMVTUXUZV[Y[[Y\\W RYMWTVXVZW[ RVTVQUNSMQMNNLQKTKWLYMZO[Q[SZUWVT RQMONMQLTLXMZ",2152:" 36H[PFLSLVMYNZ RQFMS RMSNPPNRMTMVNWOXQXTWWUZR[P[NZMWMS RVNWPWTVWTZR[ RMFQF",2153:" 25I[WPWQXQXPWNUMRMONMQLTLWMYNZP[R[UZWW RRMPNNQMTMXNZ",2154:" 42H]ZFVTUXUZV[Y[[Y\\W R[FWTVXVZW[ RVTVQUNSMQMNNLQKTKWLYMZO[Q[SZUWVT RQMONMQLTLXMZ RWF[F",2155:" 26I[MVQUTTWRXPWNUMRMONMQLTLWMYNZP[R[UZWX RRMPNNQMTMXNZ",2156:" 35KZZGYHZI[H[GZFXFVGUHTJSMP[O_Na RXFVHUJTNRWQ[P^O`NaLbJbIaI`J_K`Ja ROMYM",2157:" 43H\\YMU[T^RaObLbJaI`I_J^K_J` RXMT[S^QaOb RVTVQUNSMQMNNLQKTKWLYMZO[Q[SZUWVT RQMONMQLTLXMZ",2158:" 31H]PFJ[ RQFK[ RMTOPQNSMUMWNXOXQVWVZW[ RUMWOWQUWUZV[Y[[Y\\W RMFQF",2159:" 26LYUFTGUHVGUF RMQNOPMSMTNTQRWRZS[ RRMSNSQQWQZR[U[WYXW",2160:" 32LYVFUGVHWGVF RNQOOQMTMUNUQR[Q^P`OaMbKbJaJ`K_L`Ka RSMTNTQQ[P^O`Mb",2161:" 34H\\PFJ[ RQFK[ RXNWOXPYOYNXMWMUNQROSMS ROSQTSZT[ ROSPTRZS[U[WZYW RMFQF",2162:" 18MYUFQTPXPZQ[T[VYWW RVFRTQXQZR[ RRFVF",2163:" 52AbBQCOEMHMINIPHTF[ RGMHNHPGTE[ RHTJPLNNMPMRNSOSQP[ RPMRORQO[ RRTTPVNXMZM\\N]O]Q[W[Z\\[ RZM\\O\\QZWZZ[[^[`YaW",2164:" 37F]GQHOJMMMNNNPMTK[ RLMMNMPLTJ[ RMTOPQNSMUMWNXOXQVWVZW[ RUMWOWQUWUZV[Y[[Y\\W",2165:" 32I[RMONMQLTLWMYNZP[R[UZWWXTXQWOVNTMRM RRMPNNQMTMXNZ RR[TZVWWTWPVN",2166:" 42G\\HQIOKMNMONOPNTJb RMMNNNPMTIb RNTOQQNSMUMWNXOYQYTXWVZS[Q[OZNWNT RWNXPXTWWUZS[ RFbMb",2167:" 33H\\XMRb RYMSb RVTVQUNSMQMNNLQKTKWLYMZO[Q[SZUWVT RQMONMQLTLXMZ RObVb",2168:" 26IZJQKOMMPMQNQPPTN[ ROMPNPPOTM[ RPTRPTNVMXMYNYOXPWOXN",2169:" 28J[XOXPYPYOXNUMRMONNONQORVVWW RNPOQVUWVWYVZS[P[MZLYLXMXMY",2170:" 18KYTFPTOXOZP[S[UYVW RUFQTPXPZQ[ RNMWM",2171:" 37F]GQHOJMMMNNNQLWLYN[ RLMMNMQKWKYLZN[P[RZTXVT RXMVTUXUZV[Y[[Y\\W RYMWTVXVZW[",2172:" 26H\\IQJOLMOMPNPQNWNYP[ RNMONOQMWMYNZP[Q[TZVXXUYQYMXMYO",2173:" 41C`DQEOGMJMKNKQIWIYK[ RIMJNJQHWHYIZK[M[OZQXRV RTMRVRYSZU[W[YZ[X\\V]R]M\\M]O RUMSVSYU[",2174:" 42H\\KQMNOMRMSOSR RQMRORRQVPXNZL[K[JZJYKXLYKZ RQVQYR[U[WZYW RYNXOYPZOZNYMXMVNTPSRRVRYS[",2175:" 41G\\HQIOKMNMONOQMWMYO[ RMMNNNQLWLYMZO[Q[SZUXWT RZMV[U^SaPbMbKaJ`J_K^L_K` RYMU[T^RaPb",2176:" 31H\\YMXOVQNWLYK[ RLQMOOMRMVO RMOONRNVOXO RLYNYRZUZWY RNYR[U[WYXW",2177:" 43G^VGUHVIWHWGUFRFOGMILLL[ RRFPGNIMLM[ R\\G[H\\I]H]G\\FZFXGWIW[ RZFYGXIX[ RIM[M RI[P[ RT[[[",2178:" 33G]WGVHWIXHWGUFRFOGMILLL[ RRFPGNIMLM[ RWMW[ RXMX[ RIMXM RI[P[ RT[[[",2179:" 35G]VGUHVIWHWGUF RXFRFOGMILLL[ RRFPGNIMLM[ RWHW[ RXFX[ RIMWM RI[P[ RT[[[",2180:" 54BcRGQHRISHRGPFMFJGHIGLG[ RMFKGIIHLH[ R]G\\H]I^H]G[FXFUGSIRLR[ RXFVGTISLS[ R]M][ R^M^[ RDM^M RD[K[ RO[V[ RZ[a[",2181:" 56BcRGQHRISHRGPFMFJGHIGLG[ RMFKGIIHLH[ R\\G[H\\I]H]G[F R^FXFUGSIRLR[ RXFVGTISLS[ R]H][ R^F^[ RDM]M RD[K[ RO[V[ RZ[a[",2182:" 12MXRMR[ RSMS[ ROMSM RO[V[",2184:" 25IZWNUMRMONMPLSLVMYNZQ[T[VZ RRMPNNPMSMVNYOZQ[ RMTUT",2185:" 43I\\TFQGOJNLMOLTLXMZO[Q[TZVWWUXRYMYIXGVFTF RTFRGPJOLNOMTMXNZO[ RQ[SZUWVUWRXMXIWGVF RNPWP",2186:" 42G]UFOb RVFNb RQMMNKPJSJVKXMZP[S[WZYXZUZRYPWNTMQM RQMNNLPKSKVLXNZP[ RS[VZXXYUYRXPVNTM",2187:" 27I[TMVNXPXOWNTMQMNNMOLQLSMUOWSZ RQMONNOMQMSNUSZT\\T^S_Q_",2190:" 45G]LMKNJPJRKUOYP[ RJRKTOXP[P]O`MbLbKaJ_J\\KXMTOQRNTMVMYNZPZTYXWZU[T[SZSXTWUXTY RVMXNYPYTXXWZ",2191:" 69E_YGXHYIZHYGWFTFQGOINKMNLRJ[I_Ha RTFRGPIOKNNLWK[J^I`HaFbDbCaC`D_E`Da R_G^H_I`H`G_F]F[GZHYJXMU[T_Sa R]F[HZJYNWWV[U^T`SaQbObNaN`O_P`Oa RIM^M",2192:" 52F^[GZH[I\\H[GXFUFRGPIOKNNMRK[J_Ia RUFSGQIPKONMWL[K^J`IaGbEbDaD`E_F`Ea RYMWTVXVZW[Z[\\Y]W RZMXTWXWZX[ RJMZM",2193:" 54F^YGXHYIZHZGXF R\\FUFRGPIOKNNMRK[J_Ia RUFSGQIPKONMWL[K^J`IaGbEbDaD`E_F`Ea R[FWTVXVZW[Z[\\Y]W R\\FXTWXWZX[ RJMYM",2194:" 86@cTGSHTIUHTGRFOFLGJIIKHNGRE[D_Ca ROFMGKIJKINGWF[E^D`CaAb?b>a>`?_@`?a R`G_H`IaH`G]FZFWGUITKSNRRP[O_Na RZFXGVIUKTNRWQ[P^O`NaLbJbIaI`J_K`Ja R^M\\T[X[Z\\[_[aYbW R_M]T\\X\\Z][ RDM_M",2195:" 88@cTGSHTIUHTGRFOFLGJIIKHNGRE[D_Ca ROFMGKIJKINGWF[E^D`CaAb?b>a>`?_@`?a R^G]H^I_H_G]F RaFZFWGUITKSNRRP[O_Na RZFXGVIUKTNRWQ[P^O`NaLbJbIaI`J_K`Ja R`F\\T[X[Z\\[_[aYbW RaF]T\\X\\Z][ RDM^M",2196:" 20LYMQNOPMSMTNTQRWRZS[ RRMSNSQQWQZR[U[WYXW",2200:" 40H\\QFNGLJKOKRLWNZQ[S[VZXWYRYOXJVGSFQF RQFOGNHMJLOLRMWNYOZQ[ RS[UZVYWWXRXOWJVHUGSF",2201:" 11H\\NJPISFS[ RRGR[ RN[W[",2202:" 45H\\LJMKLLKKKJLHMGPFTFWGXHYJYLXNUPPRNSLUKXK[ RTFVGWHXJXLWNTPPR RKYLXNXSZVZXYYX RNXS[W[XZYXYV",2203:" 47H\\LJMKLLKKKJLHMGPFTFWGXIXLWNTOQO RTFVGWIWLVNTO RTOVPXRYTYWXYWZT[P[MZLYKWKVLUMVLW RWQXTXWWYVZT[",2204:" 13H\\THT[ RUFU[ RUFJUZU RQ[X[",2205:" 39H\\MFKP RKPMNPMSMVNXPYSYUXXVZS[P[MZLYKWKVLUMVLW RSMUNWPXSXUWXUZS[ RMFWF RMGRGWF",2206:" 48H\\WIVJWKXJXIWGUFRFOGMILKKOKULXNZQ[S[VZXXYUYTXQVOSNRNOOMQLT RRFPGNIMKLOLUMXOZQ[ RS[UZWXXUXTWQUOSN",2207:" 31H\\KFKL RKJLHNFPFUIWIXHYF RLHNGPGUI RYFYIXLTQSSRVR[ RXLSQRSQVQ[",2208:" 63H\\PFMGLILLMNPOTOWNXLXIWGTFPF RPFNGMIMLNNPO RTOVNWLWIVGTF RPOMPLQKSKWLYMZP[T[WZXYYWYSXQWPTO RPONPMQLSLWMYNZP[ RT[VZWYXWXSWQVPTO",2209:" 48H\\XMWPURRSQSNRLPKMKLLINGQFSFVGXIYLYRXVWXUZR[O[MZLXLWMVNWMX RQSORMPLMLLMIOGQF RSFUGWIXLXRWVVXTZR[",2210:" 6MWRYQZR[SZRY",2211:" 8MWR[QZRYSZS\\R^Q_",2212:" 12MWRMQNROSNRM RRYQZR[SZRY",2213:" 14MWRMQNROSNRM RR[QZRYSZS\\R^Q_",2214:" 15MWRFQHRTSHRF RRHRN RRYQZR[SZRY",2215:" 32I[MJNKMLLKLJMHNGPFSFVGWHXJXLWNVORQRT RSFUGVHWJWLVNTP RRYQZR[SZRY",2216:" 6NVRFQM RSFQM",2217:" 12JZNFMM ROFMM RVFUM RWFUM",2218:" 14KYQFOGNINKOMQNSNUMVKVIUGSFQF",2219:" 9JZRFRR RMIWO RWIMO",2220:" 3G][BIb",2221:" 20KYVBTDRGPKOPOTPYR]T`Vb RTDRHQKPPPTQYR\\T`",2222:" 20KYNBPDRGTKUPUTTYR]P`Nb RPDRHSKTPTTSYR\\P`",2223:" 12KYOBOb RPBPb ROBVB RObVb",2224:" 12KYTBTb RUBUb RNBUB RNbUb",2225:" 40KYTBRCQDPFPHQJRKSMSOQQ RRCQEQGRISJTLTNSPORSTTVTXSZR[Q]Q_Ra RQSSUSWRYQZP\\P^Q`RaTb",2226:" 40KYPBRCSDTFTHSJRKQMQOSQ RRCSESGRIQJPLPNQPURQTPVPXQZR[S]S_Ra RSSQUQWRYSZT\\T^S`RaPb",2227:" 4KYUBNRUb",2228:" 4KYOBVROb",2229:" 3NVRBRb",2230:" 6KYOBOb RUBUb",2231:" 3E_IR[R",2232:" 6E_RIR[ RIR[R",2233:" 9F^RJR[ RJRZR RJ[Z[",2234:" 9F^RJR[ RJJZJ RJRZR",2235:" 6G]KKYY RYKKY",2236:" 6MWRQQRRSSRRQ",2237:" 15E_RIQJRKSJRI RIR[R RRYQZR[SZRY",2238:" 6E_IO[O RIU[U",2239:" 9E_YIK[ RIO[O RIU[U",2240:" 9E_IM[M RIR[R RIW[W",2241:" 4F^ZIJRZ[",2242:" 4F^JIZRJ[",2243:" 10F^ZFJMZT RJVZV RJ[Z[",2244:" 10F^JFZMJT RJVZV RJ[Z[",2245:" 21F_[WYWWVUTRPQOONMNKOJQJSKUMVOVQURTUPWNYM[M",2246:" 24F^IUISJPLONOPPTSVTXTZS[Q RISJQLPNPPQTTVUXUZT[Q[O",2247:" 8G]JTROZT RJTRPZT",2248:" 7LXTFOL RTFUGOL",2249:" 7LXPFUL RPFOGUL",2250:" 18H\\KFLHNJQKSKVJXHYF RKFLINKQLSLVKXIYF",2251:" 8MWRHQGRFSGSIRKQL",2252:" 8MWSFRGQIQKRLSKRJ",2253:" 8MWRHSGRFQGQIRKSL",2254:" 8MWQFRGSISKRLQKRJ",2255:" 10E[HMLMRY RKMR[ R[BR[",2256:" 13F^ZJSJOKMLKNJQJSKVMXOYSZZZ",2257:" 13F^JJJQKULWNYQZSZVYXWYUZQZJ",2258:" 13F^JJQJUKWLYNZQZSYVWXUYQZJZ",2259:" 13F^JZJSKOLMNKQJSJVKXMYOZSZZ",2260:" 16F^ZJSJOKMLKNJQJSKVMXOYSZZZ RJRVR",2261:" 11E_XP[RXT RUMZRUW RIRZR",2262:" 11JZPLRITL RMORJWO RRJR[",2263:" 11E_LPIRLT ROMJROW RJR[R",2264:" 11JZPXR[TX RMURZWU RRIRZ",2265:" 44I\\XRWOVNTMRMONMQLTLWMYNZP[R[UZWXXUYPYKXHWGUFRFPGOHOIPIPH RRMPNNQMTMXNZ RR[TZVXWUXPXKWHUF",2266:" 15H\\JFR[ RKFRY RZFR[ RJFZF RKGYG",2267:" 10AbDMIMRY RHNR[ Rb:R[",2268:" 32F^[CZD[E\\D\\C[BYBWCUETGSJRNPZO^N` RVDUFTJRVQZP]O_MaKbIbHaH`I_J`Ia",2269:" 50F^[CZD[E\\D\\C[BYBWCUETGSJRNPZO^N` RVDUFTJRVQZP]O_MaKbIbHaH`I_J`Ia RQKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK",2270:" 26F_\\S[UYVWVUUTTQPPONNLNJOIQISJULVNVPUQTTPUOWNYN[O\\Q\\S",2271:" 32F^[FI[ RNFPHPJOLMMKMIKIIJGLFNFPGSHVHYG[F RWTUUTWTYV[X[ZZ[X[VYTWT",2272:" 49F_[NZO[P\\O\\N[MZMYNXPVUTXRZP[M[JZIXIUJSPORMSKSIRGPFNGMIMKNNPQUXWZZ[[[\\Z\\Y RM[KZJXJUKSMQ RMKNMVXXZZ[",2273:" 56E`WNVLTKQKOLNMMPMSNUPVSVUUVS RQKOMNPNSOUPV RWKVSVUXVZV\\T]Q]O\\L[JYHWGTFQFNGLHJJILHOHRIUJWLYNZQ[T[WZYYZX RXKWSWUXV",2274:" 42H\\PBP_ RTBT_ RXIWJXKYJYIWGTFPFMGKIKKLMMNOOUQWRYT RKKMMONUPWQXRYTYXWZT[P[MZKXKWLVMWLX",2275:" 12H]SFLb RYFRb RLQZQ RKWYW",2276:" 46JZUITJUKVJVIUGSFQFOGNINKOMQOVR ROMTPVRWTWVVXTZ RPNNPMRMTNVPXU[ RNVSYU[V]V_UaSbQbOaN_N^O]P^O_",2277:" 30JZRFQHRJSHRF RRFRb RRQQTRbSTRQ RLMNNPMNLLM RLMXM RTMVNXMVLTM",2278:" 56JZRFQHRJSHRF RRFRT RRPQRSVRXQVSRRP RRTRb RR^Q`RbS`R^ RLMNNPMNLLM RLMXM RTMVNXMVLTM RL[N\\P[NZL[ RL[X[ RT[V\\X[VZT[",2279:" 12I\\XFX[ RKFXF RPPXP RK[X[",2281:" 38E`QFNGKIILHOHRIUKXNZQ[T[WZZX\\U]R]O\\LZIWGTFQF RROQPQQRRSRTQTPSORO RRPRQSQSPRP",2282:" 45J[PFNGOIQJ RPFOGOI RUFWGVITJ RUFVGVI RQJOKNLMNMQNSOTQUTUVTWSXQXNWLVKTJQJ RRUR[ RSUS[ RNXWX",2283:" 27I\\RFOGMILLLMMPORRSSSVRXPYMYLXIVGSFRF RRSR[ RSSS[ RNWWW",2284:" 28D`PFMGJIHLGOGSHVJYM[P\\T\\W[ZY\\V]S]O\\LZIWGTFPF RRFR\\ RGQ]Q",2285:" 31G`PMMNKPJSJTKWMYPZQZTYVWWTWSVPTNQMPM R]GWG[HUN R]G]M\\IVO R\\HVN",2286:" 28F\\IIJGLFOFQGRIRLQOPQNSKU ROFPGQIQMPPNS RVFT[ RWFS[ RKUYU",2287:" 30I\\MFMU RNFMQ RMQNOONQMTMWNXPXRWTUV RTMVNWPWRTXTZU[W[YY RKFNF",2288:" 44I\\RNOOMQLTLUMXOZR[S[VZXXYUYTXQVOSNRN RRHNJRFRN RSHWJSFSN RRSQTQURVSVTUTTSSRS RRTRUSUSTRT",2289:" 37G^QHRFR[ RTHSFS[ RJHKFKMLPNRQSRS RMHLFLNMQ R[HZFZMYPWRTSSS RXHYFYNXQ RNWWW",2290:" 31G]LFL[ RMFM[ RIFUFXGYHZJZMYOXPUQMQ RUFWGXHYJYMXOWPUQ RI[Y[YVX[",2291:" 24H[YGUGQHNJLMKPKSLVNYQ[U\\Y\\ RYGVHSJQMPPPSQVSYV[Y\\",2292:" 27F_OQMQKRJSIUIWJYKZM[O[QZRYSWSURSQROQ RSHPQ RZJRR R\\QST",2293:" 12H\\OKUY RUKOY RKOYU RYOKU",2294:" 48F^NVLUKUIVHXHYI[K\\L\\N[OYOXNVKRJOJMKJMHPGTGWHYJZMZOYRVVUXUYV[X\\Y\\[[\\Y\\X[VYUXUVV RJMKKMIPHTHWIYKZM",2295:" 48F^NMLNKNIMHKHJIHKGLGNHOJOKNMKQJTJVKYM[P\\T\\W[YYZVZTYQVMUKUJVHXGYG[H\\J\\K[MYNXNVM RJVKXMZP[T[WZYXZV",2301:" 40F_JMILIJJHLGNGPHQIRKSP RIJKHMHOIPJQLRPR[ R[M\\L\\J[HYGWGUHTISKRP R\\JZHXHVIUJTLSPS[",2302:" 51F^IGJKKMMOPPTPWOYMZK[G RIGJJKLMNPOTOWNYLZJ[G RPONPMQLSLVMXOZQ[S[UZWXXVXSWQVPTO RPPNQMSMVNY RVYWVWSVQTP",2303:" 30F^MJMV RNKNU RVKVU RWJWV RIGKIMJPKTKWJYI[G RIYKWMVPUTUWVYW[Y",2304:" 48F^[ILIJJILINJPLQNQPPQNQLPJ[J RIMJOKPMQ RQMPKOJMI RIXXXZW[U[SZQXPVPTQSSSUTWIW R[TZRYQWP RSTTVUWWX",2305:" 48F]OUMTLTJUIWIXJZL[M[OZPXPWOUJPINIKJILHOGSGWHYJZLZOYRVUUWUYV[X[YZZX RMSKPJNJKKILH RSGVHXJYLYOXRVU",2306:" 48G_HKKHMKMV RJILLLV RMKPHRKRU ROIQLQU RRKUHWKW[ RTIVLV[ RWKZH[J\\M\\P[SZUXWUYP[ RYIZJ[M[PZSYUWWTYP[",2307:" 41F^ISMSLRKOKMLJNHQGSGVHXJYMYOXRWS[S RITOTMRLOLMMJOHQG RSGUHWJXMXOWRUT[T RKXYX RKYYY",2308:" 30F_GLJIMLMX RIJLMLX RMLPISLSX ROJRMRX RSLVIYLYW[Y RUJXMXXZZ]W",2309:" 33G]ZIJY RZIWJQJ RXKUKQJ RZIYLYR RXKXNYR RQRJR RPSMSJR RQRQY RPSPVQY",2310:" 33F^HOJKOU RJMOWRPWPZO[M[KZIXHWHUITKTMUPVRWUWXUZ RWHVIUKUMWQXTXWWYUZ",2311:" 36F^IOLLPN RKMOORLUN RQMTOWLYN RVMXO[L RIULRPT RKSOURRUT RQSTUWRYT RVSXU[R",2312:" 48F^JHNJPLQOQRPUNWJY RJHMIOJQLRO RRRQUOWMXJY RZHWIUJSLRO RRRSUUWWXZY RZHVJTLSOSRTUVWZY RIP[P RIQ[Q",2317:" 12NVQQQSSSSQQQ RQQSS RSQQS",2318:" 18JZMPQRTTVVWYW[V]U^ RMQST RMRPSTUVWWY",2319:" 18JZWKVMTOPQMR RSPMS RUFVGWIWKVNTPQRMT",2320:" 36H\\SMONLPKRKTLVNWQWUVXTYRYPXNVMSM RXNSM RVMQNLP RONKR RLVQW RNWSVXT RUVYR",2321:" 36H\\SMONLPKRKTLVNWQWUVXTYRYPXNVMSM RXNSM RVMQNLP RONKR RLVQW RNWSVXT RUVYR",2322:" 34J[SMPNNPMRMTNVPWRWUVWTXRXPWNUMSM ROPUM RNRVN RMTWO RNUXP ROVWR RPWVT",2323:" 18JZOGO^ RUFU] RMNWL RMOWM RMWWU RMXWV",2324:" 18JZNFNX RVLV^ RNNVL RNOVM RNWVU RNXVV",2325:" 25JZNBNW RNNQLTLVMWOWQVSSUQVNW RNNQMTMVN RUMVOVQUSSU",2326:" 18E_HIHL R\\I\\L RHI\\I RHJ\\J RHK\\K RHL\\L",2327:" 18JZMNMQ RWNWQ RMNWN RMOWO RMPWP RMQWQ",2328:" 49JZMLWX RMLONQOTOVNWMWKUKUMTO RONTO RQOWM RVKVN RULWL RWXUVSUPUNVMWMYOYOWPU RUVPU RSUMW RNVNY RMXOX",2329:" 26JZPOOMOKMKMMNNPOSOUNWL RNKNN RMLOL RMMSO RPOUN RWLWY",2330:" 86A^GfHfIeIdHcGcFdFfGhIiKiNhPfQdR`RUQ;Q4R/S-U,V,X-Y/Y3X6W8U;P?JCHEFHEJDNDREVGYJ[N\\R\\V[XZZW[T[PZMYKWITHPHMIKKJNJRKUMW RGdGeHeHdGd RU;Q?LCIFGIFKENERFVGXJ[ RR\\U[WZYWZTZPYMXKVITH",2331:"103EfNSOUQVSVUUVSVQUOSNQNOONPMSMVNYP[S\\V\\Y[[Y\\W]T]P\\MZJXIUHRHOIMJKLIOHSHXI]KaMcPeTfYf]e`cba RKLJNIRIXJ\\L`NbQdUeYe]d_cba RPOTO ROPUP RNQVQ RNRVR RNSVS ROTUT RPUTU RaLaNcNcLaL RbLbN RaMcM RaVaXcXcVaV RbVbX RaWcW",2332:" 30D`H@Hd RM@Md RW@Wd R\\@\\d RMMWK RMNWL RMOWM RMWWU RMXWV RMYWW",2367:" 12NVQQQSSSSQQQ RQQSS RSQQS",2368:" 18JZMPQRTTVVWYW[V]U^ RMQST RMRPSTUVWWY",2369:" 18JZWKVMTOPQMR RSPMS RUFVGWIWKVNTPQRMT",2370:" 32H\\PMMNLOKQKSLUMVPWTWWVXUYSYQXOWNTMPM RMNLPLSMUNVPW RWVXTXQWOVNTM",2371:" 36H\\SMONLPKRKTLVNWQWUVXTYRYPXNVMSM RXNSM RVMQNLP RONKR RLVQW RNWSVXT RUVYR",2372:" 34J[SMPNNPMRMTNVPWRWUVWTXRXPWNUMSM ROPUM RNRVN RMTWO RNUXP ROVWR RPWVT",2373:" 18JZOGO^ RUFU] RMNWL RMOWM RMWWU RMXWV",2374:" 18JZNFNX RVLV^ RNNVL RNOVM RNWVU RNXVV",2375:" 25JZNBNW RNNQLTLVMWOWQVSSUQVNW RNNQMTMVN RUMVOVQUSSU",2376:" 18E_HIHL R\\I\\L RHI\\I RHJ\\J RHK\\K RHL\\L",2377:" 18JZMNMQ RWNWQ RMNWN RMOWO RMPWP RMQWQ",2378:" 36JZQCVMRTRU RULQS RTITKPRRUUY RW\\UYSXQXOYN[N]O_Ra RW\\UZSYOYO]P_Ra RSXPZN]",2379:" 26JZPOOMOKMKMMNNPOSOUNWL RNKNN RMLOL RMMSO RPOUN RWLSY",2380:" 86A^GfHfIeIdHcGcFdFfGhIiKiNhPfQdR`RUQ;Q4R/S-U,V,X-Y/Y3X6W8U;P?JCHEFHEJDNDREVGYJ[N\\R\\V[XZZW[T[PZMYKWITHPHMIKKJNJRKUMW RGdGeHeHdGd RU;Q?LCIFGIFKENERFVGXJ[ RR\\U[WZYWZTZPYMXKVITH",2381:" 89IjNQOOQNSNUOVQVSUUSVQVOUNTMQMNNKPISHWH[I^K`NaRaW`[_]]`ZcVfQiMk RWHZI]K_N`R`W_[^]\\`YcTgQi RPOTO ROPUP RNQVQ RNRVR RNSVS ROTUT RPUTU ReLeNgNgLeL RfLfN ReMgM ReVeXgXgVeV RfVfX ReWgW",2382:" 85D`H>Hf RI>If RM>Mf RQBSBSDQDQAR?T>W>Y?[A\\D\\I[LYNWOUOSNRLQNOQNROSQVRXSVUUWUYV[X\\[\\`[cYeWfTfReQcQ`S`SbQb RRBRD RQCSC RY?ZA[D[IZLYN RRLRNPQNRPSRVRX RYVZX[[[`ZcYe RR`Rb RQaSa",2401:" 21AcHBHb RIBIb R[B[b R\\B\\b RDB`B RDbMb RWb`b",2402:" 23BaGBQPFb RFBPP REBPQ REB\\B^I[B RGa\\a RFb\\b^[[b",2403:" 28I[X+U1R8P=OANFMNMVN^OcPgRlUsXy RU1S6Q":2242,"~":2246,"@":2273,"\\":804}[e]}var Vn={SUB_SUP_SCALE:.75,SQRT_MAG_SCALE:.5,FRAC_SCALE:.85,LINE_SPACING:.5,FRAC_SPACING:.4};function C7(e){e=e.replace(/\n/g," ");let t=0,n=[],o="";for(;t0&&(e[d].text=="^"||e[d].text=="_"||e[d].text=="'");)d--;u=e[d].bbox.y,e[i].text=="'"?e[i].bbox.y=u:(pn(e[i],Vn.SUB_SUP_SCALE,null,0,0),ct[e[d].text]&&ct[e[d].text].flags.big?e[i].bbox.y=u-e[i].bbox.h:e[d].text=="\\int"?e[i].bbox.y=u:e[i].bbox.y=u-e[i].bbox.h/2)}else if(e[i].text=="_"){let u=1,d=i;for(;d>0&&(e[d].text=="^"||e[d].text=="_"||e[d].text=="'");)d--;u=e[d].bbox.y+e[d].bbox.h,pn(e[i],Vn.SUB_SUP_SCALE,null,0,0),ct[e[d].text]&&ct[e[d].text].flags.big?e[i].bbox.y=u:e[d].text=="\\int"?e[i].bbox.y=u-e[i].bbox.h:e[i].bbox.y=u-e[i].bbox.h/2}function n(i,u,d,f,p){let R=i,h=p,v=1/0,M=-1/0;for(;f>0?R=0;){if(e[R].text==u)h++;else if(e[R].text==d){if(h--,h==0)break}else e[R].text=="^"||e[R].text=="_"||e[R].bbox&&(v=Math.min(v,e[R].bbox.y),M=Math.max(M,e[R].bbox.y+e[R].bbox.h));R+=f}return[v,M]}for(let i=0;ii.text=="&"||i.text=="\\\\"))return;let o=[],l=[],a=[];for(let i=0;i0&&(e.chld[g].text=="^"||e.chld[g].text=="_"||e.chld[g].text=="'");)g--;let m=ct[e.chld[g].text]&&ct[e.chld[g].text].flags.big;if(v.text=="'"){let O=g+1,S=0;for(;O1;w7(e.chld,d);let R=Z1(e.chld);e.text=="\\text"&&(R.x-=1,R.w+=2);for(let h=0;ho.bbox.w)u=u/Math.max(s.w,1)*o.bbox.w,u+=o.bbox.x;else{u=u/16*l;let f=(o.bbox.w-s.w/16*l)/2;u+=o.bbox.x+f}if(ct[o.text].flags.yfl)d=(d-s.ymin)/Math.max(s.ymax-s.ymin,1)*o.bbox.h,d+=o.bbox.y;else{if(d=d/16*l,a){let f=(s.ymax+s.ymin)/2;d-=f/16*l}d+=o.bbox.y+o.bbox.h/2}c.push([u,d])}t.push(c)}}else if(ct[o.text]&&ct[o.text].flags.txt||o.type=="char"){let s=o.bbox.x,r=!!(ct[o.text]&&ct[o.text].flags.txt);for(let c=Number(r);c16?p*=16/i.w:p+=(16-i.w)/2/16),p+=s,R+=o.bbox.y+o.bbox.h/2,d.push([p,R])}t.push(d)}o.mode=="tt"?s+=l:s+=i.w/16*l}}}return t}function Bn(e){return Math.round(e*100)/100}var b0=class{constructor(e){this._latex=e,this._tokens=C7(e),this._tree=Yi(this._tokens),Q1(this._tree.chld),_n(this._tree),J7(this._tree),this._polylines=D7(this._tree)}resolveScale(e){var t,n,o,l;if(e==null)return[16,16,16,16];let a=(t=e.SCALE_X)!=null?t:16,s=(n=e.SCALE_Y)!=null?n:16;if(e.MIN_CHAR_H!=null){let i=0;for(let d=0;d`;e.BG_COLOR&&(i+=``),i+='>endobj 2 0 obj << /Type /Pages /Kids [3 0 R] /Count 1 /MediaBox [0 0 ${s} ${r}] >> endobj 3 0 obj << /Type /Page /Parent 2 0 R /Resources << /Font << /F1 << /Type /Font /Subtype /Type1 /BaseFont /Times-Roman >> >> >> /Contents [`,i="",u=4;for(let R=0;R> stream 1 j 1 J ${(t=e.STROKE_W)!=null?t:1} w `;for(var d=0;d> endobj `,i+=` trailer << /Root 1 0 R /Size 0 >>startxref %%EOF `,c+i}boxes(e){e||(e={});let[t,n,o,l]=this.resolveScale(e),a=[];for(let s=0;s"},{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"}]}],B7=["width","height"],_7=["transform"],$7=["d"],z7=pe({__name:"FormulaContent",props:{latex:{},width:{},height:{}},setup(e){const t=e,n=_({x:0,y:0,w:0,h:0}),o=_("");Ce(()=>t.latex,()=>{const a=new b0(t.latex);o.value=a.pathd({}),n.value=a.box({})},{immediate:!0});const l=ee(()=>{const a=n.value.w+32,s=n.value.h+32;return a>t.width||s>t.height?a/s>t.width/t.height?t.width/a:t.height/s:1});return(a,s)=>(V(),A("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"},[X("g",{transform:`scale(${l.value}, ${l.value}) translate(0,0) matrix(1,0,0,1,0,0)`,"transform-origin":"0 50%"},[X("path",{d:o.value},null,8,$7)],8,_7)],8,B7))}}),rd=Me(z7,[["__scopeId","data-v-3b4e4b30"]]),j7=["innerHTML"],q7=pe({__name:"SymbolContent",props:{latex:{}},setup(e){const t=e,n=ee(()=>new b0(t.latex).svg({SCALE_X:10,SCALE_Y:10}));return(o,l)=>(V(),A("div",{class:"symbol-content",innerHTML:n.value},null,8,j7))}}),eN=["disabled","value","rows","placeholder"],tN=pe({__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=r=>{o("update:value",r.target.value)},a=_();return t({focus:()=>{a.value&&a.value.focus()}}),(r,c)=>(V(),A("textarea",{class:re(["textarea",{disabled:r.disabled,resizable:r.resizable}]),ref_key:"textareaRef",ref:a,disabled:r.disabled,value:r.value,rows:r.rows,placeholder:r.placeholder,style:ue({padding:r.padding?`${r.padding}px`:"10px"}),onInput:c[0]||(c[0]=i=>l(i)),onFocus:c[1]||(c[1]=i=>o("focus",i)),onBlur:c[2]||(c[2]=i=>o("blur",i))},null,46,eN))}}),Ui=Me(tN,[["__scopeId","data-v-5b019163"]]),nN={class:"latex-editor"},oN={class:"container"},lN={class:"left"},sN={class:"input-area"},aN={class:"preview"},rN={key:0,class:"placeholder"},iN={key:1,class:"preview-content"},cN={class:"right"},uN={class:"content"},dN={key:0,class:"symbol"},fN={class:"symbol-pool"},RN=["onClick"],pN={key:1,class:"formula"},hN={class:"formula-title"},vN=["onClick"],mN={class:"footer"},gN=pe({__name:"index",props:{value:{default:""}},emits:["update","close"],setup(e,{emit:t}){const n=[{label:"常用符号",key:"symbol"},{label:"预置公式",key:"formula"}],o=e,l=t,a=k7,s=kr.map(R=>({label:R.label,key:R.type})),r=_(""),c=_("symbol"),i=_(),u=_(kr[0].type),d=ee(()=>{const R=kr.find(h=>h.type===u.value);return(R==null?void 0:R.children)||[]});pt(()=>{o.value&&(r.value=o.value)});const f=()=>{if(!r.value)return zt.error("公式不能为空");const R=new b0(r.value),h=R.pathd({}),v=R.box({});l("update",{latex:r.value,path:h,w:v.w+32,h:v.h+32})},p=R=>{i.value&&(i.value.focus(),document.execCommand("insertText",!1,R))};return(R,h)=>(V(),A("div",nN,[X("div",oN,[X("div",lN,[X("div",sN,[L(Ui,{value:r.value,"onUpdate:value":h[0]||(h[0]=v=>r.value=v),placeholder:"输入 LaTeX 公式",ref_key:"textAreaRef",ref:i},null,8,["value"])]),X("div",aN,[r.value?(V(),A("div",iN,[L(rd,{width:518,height:138,latex:r.value},null,8,["latex"])])):(V(),A("div",rN,"公式预览"))])]),X("div",cN,[L(Zo,{tabs:n,value:c.value,"onUpdate:value":h[1]||(h[1]=v=>c.value=v),card:""},null,8,["value"]),X("div",uN,[c.value==="symbol"?(V(),A("div",dN,[L(Zo,{tabs:I(s),value:u.value,"onUpdate:value":h[2]||(h[2]=v=>u.value=v),spaceBetween:"",tabsStyle:{margin:"10px 10px 0"}},null,8,["tabs","value"]),X("div",fN,[(V(!0),A(me,null,ye(d.value,v=>(V(),A("div",{class:"symbol-item",key:v.latex,onClick:M=>p(v.latex)},[L(q7,{latex:v.latex},null,8,["latex"])],8,RN))),128))])])):(V(),A("div",pN,[(V(!0),A(me,null,ye(I(a),v=>(V(),A("div",{class:"formula-item",key:v.label},[X("div",hN,Ye(v.label),1),X("div",{class:"formula-item-content",onClick:M=>r.value=v.latex},[L(rd,{width:236,height:60,latex:v.latex},null,8,["latex"])],8,vN)]))),128))]))])])]),X("div",mN,[L(Ve,{class:"btn",onClick:h[3]||(h[3]=v=>l("close"))},{default:Z(()=>[Xe("取消")]),_:1}),L(Ve,{class:"btn",type:"primary",onClick:h[4]||(h[4]=v=>f())},{default:Z(()=>[Xe("确定")]),_:1})])]))}}),K1=Me(gN,[["__scopeId","data-v-ce1af109"]]),SN=e=>(at("data-v-9bb549df"),e=e(),st(),e),MN={class:"cloudCoachList"},ON=SN(()=>X("div",{class:"name"},"乐谱",-1)),xN={class:"listCon"},PN=pe({__name:"cloudCoachList",emits:["update"],setup(e,{emit:t}){const n=t;function o(a){n("update",a)}const l=_([]);return sh(Yh,{type:"MUSIC",sourceType:2,enableFlag:!0,page:1,rows:20}).then(a=>{a.code===200&&(l.value=a.data.rows)}),(a,s)=>(V(),A("div",MN,[ON,X("div",xN,[(V(!0),A(me,null,ye(l.value,r=>(V(),A("div",{class:"list",key:r.id},[X("div",null,"曲目名称:"+Ye(r.name),1),L(I(Dd),{onClick:c=>o(r.id)},{default:Z(()=>[Xe("添加")]),_:2},1032,["onClick"])]))),128))])]))}}),NN=Me(PN,[["__scopeId","data-v-9bb549df"]]),xt=e=>(at("data-v-726df80d"),e=e(),st(),e),TN={class:"canvas-tool"},XN={class:"left-handler"},yN=xt(()=>X("img",{src:IP,alt:""},null,-1)),LN=xt(()=>X("div",null,"撤销",-1)),bN=[yN,LN],VN=xt(()=>X("img",{src:FP,alt:""},null,-1)),IN=xt(()=>X("div",null,"恢复",-1)),FN=[VN,IN],YN=xt(()=>X("div",{class:"line"},null,-1)),UN=xt(()=>X("img",{src:YP,alt:""},null,-1)),WN=xt(()=>X("div",null,"批注",-1)),AN=[UN,WN],QN=xt(()=>X("img",{src:UP,alt:""},null,-1)),ZN=xt(()=>X("div",null,"选择",-1)),KN=[QN,ZN],EN=xt(()=>X("img",{src:WP,alt:""},null,-1)),CN=xt(()=>X("div",null,"查找",-1)),HN=[EN,CN],GN=xt(()=>X("div",{class:"line"},null,-1)),wN=xt(()=>X("div",{class:"arrow-btn"},[X("div",null,"播放")],-1)),JN={class:"add-element-handler"},DN=xt(()=>X("div",{class:"handler-item"},[X("img",{class:"itemImg",src:AP,alt:""}),X("div",{class:"tit"},"图片")],-1)),kN=xt(()=>X("div",{class:"handler-item"},[X("img",{class:"itemImg",src:QP,alt:""}),X("div",{class:"tit"},"音视频")],-1)),BN=xt(()=>X("img",{class:"itemImg",src:ZP,alt:""},null,-1)),_N=xt(()=>X("div",{class:"tit"},"乐谱",-1)),$N=[BN,_N],zN=xt(()=>X("img",{class:"itemImg",src:KP,alt:""},null,-1)),jN=xt(()=>X("div",{class:"charTit tit"},[X("div",null,"文字"),X("img",{src:Y1,alt:""})],-1)),qN=xt(()=>X("img",{class:"itemImg",src:EP,alt:""},null,-1)),eT=xt(()=>X("div",{class:"charTit tit"},[X("div",null,"形状"),X("img",{src:Y1,alt:""})],-1)),tT=xt(()=>X("img",{class:"itemImg",src:CP,alt:""},null,-1)),nT=xt(()=>X("div",{class:"tit"},"线条",-1)),oT=xt(()=>X("img",{class:"itemImg",src:HP,alt:""},null,-1)),lT=xt(()=>X("div",{class:"menuItem"},[X("img",{src:GP,alt:""}),X("div",{class:"tit"},"图表")],-1)),sT=xt(()=>X("div",{class:"menuItem"},[X("img",{src:wP,alt:""}),X("div",{class:"tit"},"表格")],-1)),aT=xt(()=>X("div",{class:"menuItem"},[X("img",{src:JP,alt:""}),X("div",{class:"tit"},"公式")],-1)),rT=xt(()=>X("div",{class:"tit"},"更多工具",-1)),iT={class:"right-handler"},cT=pe({__name:"index",setup(e){const t=ms(),n=Le(),{creatingElement:o,creatingCustomShape:l,showSelectPanel:a,showSearchPanel:s,showNotesPanel:r}=de(n),{canUndo:c,canRedo:i}=de(ji()),{redo:u,undo:d}=_e(),{scaleCanvas:f,setCanvasScalePercentage:p,resetCanvas:R,canvasScalePercentage:h}=v0(),v=[200,150,125,100,75,50],M=_(!1),{enterScreening:g,enterScreeningFromStart:m}=Ta(),O=j=>{p(j),M.value=!1},{createImageElement:S,createChartElement:P,createTableElement:b,createLatexElement:N,createVideoElement:x,createAudioElement:T,createCloudCoachElement:y}=Al(),Y=j=>{const K=j[0];K&&il(K).then($=>S($))},U=_(!1),W=_(!1),C=_(!1),F=_(!1),J=_(!1),w=_(!1),q=_(!1),se=_(!1),H=_(!1);function G(j){const K=/\.(mp3|wav|m4a)$/i.test(j.file.name)?"audio":"video";Uh(j.file.name,j.file,`${t.id}/`).then($=>{K==="audio"?T($):x($)}).catch(()=>{Gs({showClose:!0,message:"上传失败!",type:"error"})})}function Q(j){y(j),se.value=!1}const E=(j=!1)=>{n.setCreatingElement({type:"text",vertical:j})},le=j=>{n.setCreatingElement({type:"shape",data:j}),U.value=!1},B=()=>{n.setCreatingCustomShapeState(!0),U.value=!1},D=j=>{n.setCreatingElement({type:"line",data:j}),W.value=!1},z=()=>{n.setSelectPanelState(!a.value)},he=()=>{n.setSearchPanelState(!s.value)},k=()=>{n.setNotesPanelState(!r.value)};return(j,K)=>{var Oe,Se,Te;const $=ce("IconTextRotationNone"),ae=ce("IconTextRotationDown"),fe=ce("IconMinus"),Ne=ce("IconPlus"),Fe=ce("IconFullScreen"),Ue=Mt("tooltip");return V(),A("div",TN,[X("div",XN,[xe((V(),A("div",{class:re(["leftHandler-item",{disable:!I(c)}]),onClick:K[0]||(K[0]=ve=>I(d)())},bN,2)),[[Ue,"撤销(Ctrl + Z)"]]),xe((V(),A("div",{class:re(["leftHandler-item",{disable:!I(i)}]),onClick:K[1]||(K[1]=ve=>I(u)())},FN,2)),[[Ue,"恢复(Ctrl + Y)"]]),YN,xe((V(),A("div",{class:re(["leftHandler-item",{active:I(r)}]),onClick:K[2]||(K[2]=ve=>k())},AN,2)),[[Ue,"批注"]]),xe((V(),A("div",{class:re(["leftHandler-item",{active:I(a)}]),onClick:K[3]||(K[3]=ve=>z())},KN,2)),[[Ue,"选择"]]),xe((V(),A("div",{class:re(["leftHandler-item",{active:I(s)}]),onClick:K[4]||(K[4]=ve=>he())},HN,2)),[[Ue,"查找/替换(Ctrl + F)"]]),GN,L(Je,{trigger:"click",center:""},{content:Z(()=>[L(tn,{onClick:K[5]||(K[5]=ve=>I(m)())},{default:Z(()=>[Xe("从头开始")]),_:1}),L(tn,{onClick:K[6]||(K[6]=ve=>I(g)())},{default:Z(()=>[Xe("从当前页开始")]),_:1})]),default:Z(()=>[wN]),_:1})]),X("div",JN,[L(Ms,{onChange:K[7]||(K[7]=ve=>Y(ve))},{default:Z(()=>[DN]),_:1}),L(I(Ag),{action:"","show-file-list":!1,accept:".mp4,.avi,.flv,.mp3,.wav,.m4a","http-request":ve=>{G(ve)}},{default:Z(()=>[kN]),_:1},8,["http-request"]),X("div",{class:"handler-item",onClick:K[8]||(K[8]=ve=>se.value=!0)},$N),X("div",{class:re(["handler-item",{active:((Oe=I(o))==null?void 0:Oe.type)==="text"}]),onClick:K[12]||(K[12]=ve=>E())},[zN,L(Je,{trigger:"click",value:w.value,"onUpdate:value":K[11]||(K[11]=ve=>w.value=ve),offset:10},{content:Z(()=>[L(tn,{center:"",onClick:K[9]||(K[9]=()=>{E(),w.value=!1})},{default:Z(()=>[L($),Xe(" 横向文本框")]),_:1}),L(tn,{center:"",onClick:K[10]||(K[10]=()=>{E(!0),w.value=!1})},{default:Z(()=>[L(ae),Xe(" 竖向文本框")]),_:1})]),default:Z(()=>[jN]),_:1},8,["value"])],2),X("div",{class:re(["handler-item",{active:I(l)||((Se=I(o))==null?void 0:Se.type)==="shape"}]),onClick:K[18]||(K[18]=ve=>U.value=!0)},[L(Je,{trigger:"click",value:U.value,"onUpdate:value":K[14]||(K[14]=ve=>U.value=ve),offset:10},{content:Z(()=>[L(n7,{onSelect:K[13]||(K[13]=ve=>le(ve))})]),default:Z(()=>[qN]),_:1},8,["value"]),L(Je,{trigger:"click",value:q.value,"onUpdate:value":K[16]||(K[16]=ve=>q.value=ve),offset:10,onClick:K[17]||(K[17]=He(()=>{},["stop"]))},{content:Z(()=>[L(tn,{center:"",onClick:K[15]||(K[15]=()=>{B(),q.value=!1})},{default:Z(()=>[Xe("自由绘制")]),_:1})]),default:Z(()=>[eT]),_:1},8,["value"])],2),X("div",{class:re(["handler-item",{active:((Te=I(o))==null?void 0:Te.type)==="line"}]),onClick:K[22]||(K[22]=ve=>W.value=!0)},[tT,L(Je,{trigger:"click",value:W.value,"onUpdate:value":K[20]||(K[20]=ve=>W.value=ve),offset:10,onClick:K[21]||(K[21]=He(()=>{},["stop"]))},{content:Z(()=>[L(d7,{onSelect:K[19]||(K[19]=ve=>D(ve))})]),default:Z(()=>[nT]),_:1},8,["value"])],2),X("div",{class:"handler-item",onClick:K[33]||(K[33]=ve=>H.value=!0)},[oT,L(Je,{trigger:"click",value:H.value,"onUpdate:value":K[28]||(K[28]=ve=>H.value=ve),offset:10,onClick:K[29]||(K[29]=He(()=>{},["stop"]))},{content:Z(()=>[L(tn,{onClick:K[25]||(K[25]=ve=>C.value=!0)},{default:Z(()=>[L(Je,{trigger:"click",value:C.value,"onUpdate:value":K[24]||(K[24]=ve=>C.value=ve),placement:"right",offsetOne:50,offset:36},{content:Z(()=>[L(v7,{onSelect:K[23]||(K[23]=ve=>{I(P)(ve),C.value=!1})})]),default:Z(()=>[lT]),_:1},8,["value"])]),_:1}),L(tn,{onClick:K[26]||(K[26]=ve=>F.value=!0)},{default:Z(()=>[sT]),_:1}),L(tn,{onClick:K[27]||(K[27]=()=>{H.value=!1,J.value=!0})},{default:Z(()=>[aT]),_:1})]),default:Z(()=>[rT]),_:1},8,["value"]),L(Je,{trigger:"click",value:F.value,"onUpdate:value":K[32]||(K[32]=ve=>F.value=ve),placement:"right",offsetOne:200,offset:70},{content:Z(()=>[L(Z7,{onClose:K[30]||(K[30]=ve=>F.value=!1),onInsert:K[31]||(K[31]=({row:ve,col:Ze})=>{I(b)(ve,Ze),F.value=!1})})]),_:1},8,["value"])])]),X("div",iT,[xe(L(fe,{class:"rightHandler-item",onClick:K[34]||(K[34]=ve=>I(f)("-"))},null,512),[[Ue,"画布缩小(Ctrl + -)"]]),L(Je,{trigger:"click",value:M.value,"onUpdate:value":K[36]||(K[36]=ve=>M.value=ve)},{content:Z(()=>[(V(),A(me,null,ye(v,ve=>L(tn,{center:"",key:ve,onClick:Ze=>O(ve)},{default:Z(()=>[Xe(Ye(ve)+"%",1)]),_:2},1032,["onClick"])),64)),L(tn,{center:"",onClick:K[35]||(K[35]=ve=>I(R)())},{default:Z(()=>[Xe("适应屏幕")]),_:1})]),default:Z(()=>[X("div",{class:re(["text",{canvasScaleVisible:M.value}])},Ye(I(h)),3)]),_:1},8,["value"]),xe(L(Ne,{class:"rightHandler-item",onClick:K[37]||(K[37]=ve=>I(f)("+"))},null,512),[[Ue,"画布放大(Ctrl + =)"]]),xe(L(Fe,{class:"rightHandler-item resetCanvas",onClick:K[38]||(K[38]=ve=>I(R)())},null,512),[[Ue,"适应屏幕(Ctrl + 0)"]])]),L(Ll,{visible:J.value,"onUpdate:visible":K[41]||(K[41]=ve=>J.value=ve),width:880},{default:Z(()=>[L(K1,{onClose:K[39]||(K[39]=ve=>J.value=!1),onUpdate:K[40]||(K[40]=ve=>{I(N)(ve),J.value=!1})})]),_:1},8,["visible"]),L(Ll,{contentStyle:{width:"800px",height:"600px",boxShadow:"0px 2px 10px 0px rgba(0,0,0,0.08)",borderRadius:"16px",border:"1px solid #DEDEDE",padding:"0"},visible:se.value,"onUpdate:visible":K[43]||(K[43]=ve=>se.value=ve)},{default:Z(()=>[L(I(NN),{onUpdate:Q,onClose:K[42]||(K[42]=()=>{se.value=!1})})]),_:1},8,["visible"])])}}}),uT=Me(cT,[["__scopeId","data-v-726df80d"]]),dT="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoBAMAAAB+0KVeAAAAD1BMVEUAAAAUFRUTFRceHh4TFBVWgLSjAAAABHRSTlMAs5IRXUzuuQAAACNJREFUKM9jGPLASBAOlOGCKi5w4IRTEFM7YTDq+GHieCoDAOOaGE+bFYNzAAAAAElFTkSuQmCC",fT="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==",RT="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==",pT=()=>{const e=Qe(),{slides:t}=de(e),{addHistorySnapshot:n}=_e(),{deleteSlide:o}=Ss();return{createSection:()=>{e.updateSlide({sectionTag:{id:Pt(6)}}),n()},removeSection:i=>{if(!i)return;const u=t.value.find(d=>{var f;return((f=d.sectionTag)==null?void 0:f.id)===i});e.removeSlideProps({id:u.id,propName:"sectionTag"}),n()},removeAllSection:()=>{const i=t.value.map(u=>(u.sectionTag&&delete u.sectionTag,u));e.setSlides(i),n()},removeSectionSlides:i=>{let u=0;i&&(u=t.value.findIndex(f=>{var p;return((p=f.sectionTag)==null?void 0:p.id)===i}));const d=[];for(let f=u;f{if(u){if(i==="default")e.updateSlide({sectionTag:{id:Pt(6),title:u}},t.value[0].id);else{const d=t.value.find(f=>{var p;return((p=f.sectionTag)==null?void 0:p.id)===i});if(!d)return;e.updateSlide({sectionTag:{...d.sectionTag,title:u}},d.id)}n()}}}},hT=e=>(at("data-v-078545d1"),e=e(),st(),e),vT={class:"layout-pool"},mT=hT(()=>X("div",{class:"header"},"页面模板",-1)),gT={class:"list"},ST={class:"btns"},MT=pe({__name:"LayoutPool",emits:["select"],setup(e,{emit:t}){const n=t,o=Qe(),{layouts:l}=de(o),a=s=>{n("select",s)};return(s,r)=>(V(),A("div",vT,[mT,X("div",gT,[(V(!0),A(me,null,ye(I(l),c=>(V(),A("div",{class:"layout-item",key:c.id},[L(e0,{class:"thumbnail",slide:c,size:180},null,8,["slide"]),X("div",ST,[L(Ve,{class:"btn",type:"primary",size:"small",onClick:i=>a(c)},{default:Z(()=>[Xe("插入模板")]),_:2},1032,["onClick"])])]))),128))])]))}}),OT=Me(MT,[["__scopeId","data-v-078545d1"]]);var E1={exports:{}};const xT=zi(kh);/**! * Sortable 1.14.0 * @author RubaXa * @author owenm * @license MIT */function id(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,o)}return n}function ao(e){for(var t=1;t=0)&&(n[l]=e[l]);return n}function TT(e,t){if(e==null)return{};var n=NT(e,t),o,l;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(l=0;l=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}function XT(e){return yT(e)||LT(e)||bT(e)||VT()}function yT(e){if(Array.isArray(e))return Wi(e)}function LT(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bT(e,t){if(e){if(typeof e=="string")return Wi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Wi(e,t)}}function Wi(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function YT(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Cn(e,t,n,o){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&va(e,t):va(e,t))||o&&e===n)return e;if(e===n)break}while(e=YT(e))}return null}var ud=/\s+/g;function Ut(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var o=(" "+e.className+" ").replace(ud," ").replace(" "+t+" "," ");e.className=(o+(n?" "+t:"")).replace(ud," ")}}function Ee(e,t,n){var o=e&&e.style;if(o){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in o)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),o[t]=n+(typeof n=="string"?"":"px")}}function el(e,t){var n="";if(typeof e=="string")n=e;else do{var o=Ee(e,"transform");o&&o!=="none"&&(n=o+" "+n)}while(!t&&(e=e.parentNode));var l=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return l&&new l(n)}function G1(e,t,n){if(e){var o=e.getElementsByTagName(t),l=0,a=o.length;if(n)for(;l=a,!s)return o;if(o===oo())break;o=Vo(o,!1)}return!1}function bl(e,t,n,o){for(var l=0,a=0,s=e.children;a2&&arguments[2]!==void 0?arguments[2]:{},l=o.evt,a=TT(o,ET);Xs.pluginEvent.bind(Be)(t,n,ao({dragEl:be,parentEl:Wt,ghostEl:et,rootEl:bt,nextEl:ko,lastDownEl:_s,cloneEl:At,cloneHidden:Lo,dragStarted:Bl,putSortable:en,activeSortable:Be.active,originalEvent:l,oldIndex:Ol,oldDraggableIndex:ns,newIndex:bn,newDraggableIndex:Xo,hideGhostForTarget:_1,unhideGhostForTarget:$1,cloneNowHidden:function(){Lo=!0},cloneNowShown:function(){Lo=!1},dispatchSortableEvent:function(r){Rn({sortable:n,name:r,originalEvent:l})}},a))};function Rn(e){kl(ao({putSortable:en,cloneEl:At,targetEl:be,rootEl:bt,oldIndex:Ol,oldDraggableIndex:ns,newIndex:bn,newDraggableIndex:Xo},e))}var be,Wt,et,bt,ko,_s,At,Lo,Ol,bn,ns,Xo,Qs,en,gl=!1,ma=!1,ga=[],Jo,Kn,zr,jr,pd,hd,Bl,pl,os,ls=!1,Zs=!1,$s,an,qr=[],Ai=!1,Sa=[],Za=typeof document<"u",Ks=C1,vd=Ts||mo?"cssFloat":"float",CT=Za&&!FT&&!C1&&"draggable"in document.createElement("div"),D1=function(){if(Za){if(mo)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),k1=function(t,n){var o=Ee(t),l=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),a=bl(t,0,n),s=bl(t,1,n),r=a&&Ee(a),c=s&&Ee(s),i=r&&parseInt(r.marginLeft)+parseInt(r.marginRight)+It(a).width,u=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+It(s).width;if(o.display==="flex")return o.flexDirection==="column"||o.flexDirection==="column-reverse"?"vertical":"horizontal";if(o.display==="grid")return o.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(a&&r.float&&r.float!=="none"){var d=r.float==="left"?"left":"right";return s&&(c.clear==="both"||c.clear===d)?"vertical":"horizontal"}return a&&(r.display==="block"||r.display==="flex"||r.display==="table"||r.display==="grid"||i>=l&&o[vd]==="none"||s&&o[vd]==="none"&&i+u>l)?"vertical":"horizontal"},HT=function(t,n,o){var l=o?t.left:t.top,a=o?t.right:t.bottom,s=o?t.width:t.height,r=o?n.left:n.top,c=o?n.right:n.bottom,i=o?n.width:n.height;return l===r||a===c||l+s/2===r+i/2},GT=function(t,n){var o;return ga.some(function(l){var a=l[cn].options.emptyInsertThreshold;if(!(!a||V0(l))){var s=It(l),r=t>=s.left-a&&t<=s.right+a,c=n>=s.top-a&&n<=s.bottom+a;if(r&&c)return o=l}}),o},B1=function(t){function n(a,s){return function(r,c,i,u){var d=r.options.group.name&&c.options.group.name&&r.options.group.name===c.options.group.name;if(a==null&&(s||d))return!0;if(a==null||a===!1)return!1;if(s&&a==="clone")return a;if(typeof a=="function")return n(a(r,c,i,u),s)(r,c,i,u);var f=(s?r:c).options.group.name;return a===!0||typeof a=="string"&&a===f||a.join&&a.indexOf(f)>-1}}var o={},l=t.group;(!l||Bs(l)!="object")&&(l={name:l}),o.name=l.name,o.checkPull=n(l.pull,!0),o.checkPut=n(l.put),o.revertClone=l.revertClone,t.group=o},_1=function(){!D1&&et&&Ee(et,"display","none")},$1=function(){!D1&&et&&Ee(et,"display","")};Za&&document.addEventListener("click",function(e){if(ma)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),ma=!1,!1},!0);var Do=function(t){if(be){t=t.touches?t.touches[0]:t;var n=GT(t.clientX,t.clientY);if(n){var o={};for(var l in t)t.hasOwnProperty(l)&&(o[l]=t[l]);o.target=o.rootEl=n,o.preventDefault=void 0,o.stopPropagation=void 0,n[cn]._onDragOver(o)}}},wT=function(t){be&&be.parentNode[cn]._isOutsideThisEl(t.target)};function Be(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=Qn({},t),e[cn]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return k1(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(s,r){s.setData("Text",r.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Be.supportPointer!==!1&&"PointerEvent"in window&&!es,emptyInsertThreshold:5};Xs.initializePlugins(this,e,n);for(var o in n)!(o in t)&&(t[o]=n[o]);B1(t);for(var l in this)l.charAt(0)==="_"&&typeof this[l]=="function"&&(this[l]=this[l].bind(this));this.nativeDraggable=t.forceFallback?!1:CT,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?dt(e,"pointerdown",this._onTapStart):(dt(e,"mousedown",this._onTapStart),dt(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(dt(e,"dragover",this),dt(e,"dragenter",this)),ga.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Qn(this,QT())}Be.prototype={constructor:Be,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(pl=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,be):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,o=this.el,l=this.options,a=l.preventOnFilter,s=t.type,r=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,c=(r||t).target,i=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||c,u=l.filter;if(jT(o),!be&&!(/mousedown|pointerdown/.test(s)&&t.button!==0||l.disabled)&&!i.isContentEditable&&!(!this.nativeDraggable&&es&&c&&c.tagName.toUpperCase()==="SELECT")&&(c=Cn(c,l.draggable,o,!1),!(c&&c.animated)&&_s!==c)){if(Ol=Qt(c),ns=Qt(c,l.draggable),typeof u=="function"){if(u.call(this,t,c,this)){Rn({sortable:n,rootEl:i,name:"filter",targetEl:c,toEl:o,fromEl:o}),On("filter",n,{evt:t}),a&&t.cancelable&&t.preventDefault();return}}else if(u&&(u=u.split(",").some(function(d){if(d=Cn(i,d.trim(),o,!1),d)return Rn({sortable:n,rootEl:d,name:"filter",targetEl:c,fromEl:o,toEl:o}),On("filter",n,{evt:t}),!0}),u)){a&&t.cancelable&&t.preventDefault();return}l.handle&&!Cn(i,l.handle,o,!1)||this._prepareDragStart(t,r,c)}}},_prepareDragStart:function(t,n,o){var l=this,a=l.el,s=l.options,r=a.ownerDocument,c;if(o&&!be&&o.parentNode===a){var i=It(o);if(bt=a,be=o,Wt=be.parentNode,ko=be.nextSibling,_s=o,Qs=s.group,Be.dragged=be,Jo={target:be,clientX:(n||t).clientX,clientY:(n||t).clientY},pd=Jo.clientX-i.left,hd=Jo.clientY-i.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,be.style["will-change"]="all",c=function(){if(On("delayEnded",l,{evt:t}),Be.eventCanceled){l._onDrop();return}l._disableDelayedDragEvents(),!cd&&l.nativeDraggable&&(be.draggable=!0),l._triggerDragStart(t,n),Rn({sortable:l,name:"choose",originalEvent:t}),Ut(be,s.chosenClass,!0)},s.ignore.split(",").forEach(function(u){G1(be,u.trim(),ei)}),dt(r,"dragover",Do),dt(r,"mousemove",Do),dt(r,"touchmove",Do),dt(r,"mouseup",l._onDrop),dt(r,"touchend",l._onDrop),dt(r,"touchcancel",l._onDrop),cd&&this.nativeDraggable&&(this.options.touchStartThreshold=4,be.draggable=!0),On("delayStart",this,{evt:t}),s.delay&&(!s.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Ts||mo))){if(Be.eventCanceled){this._onDrop();return}dt(r,"mouseup",l._disableDelayedDrag),dt(r,"touchend",l._disableDelayedDrag),dt(r,"touchcancel",l._disableDelayedDrag),dt(r,"mousemove",l._delayedDragTouchMoveHandler),dt(r,"touchmove",l._delayedDragTouchMoveHandler),s.supportPointer&&dt(r,"pointermove",l._delayedDragTouchMoveHandler),l._dragStartTimer=setTimeout(c,s.delay)}else c()}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){be&&ei(be),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;ot(t,"mouseup",this._disableDelayedDrag),ot(t,"touchend",this._disableDelayedDrag),ot(t,"touchcancel",this._disableDelayedDrag),ot(t,"mousemove",this._delayedDragTouchMoveHandler),ot(t,"touchmove",this._delayedDragTouchMoveHandler),ot(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?dt(document,"pointermove",this._onTouchMove):n?dt(document,"touchmove",this._onTouchMove):dt(document,"mousemove",this._onTouchMove):(dt(be,"dragend",this),dt(bt,"dragstart",this._onDragStart));try{document.selection?zs(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(gl=!1,bt&&be){On("dragStarted",this,{evt:n}),this.nativeDraggable&&dt(document,"dragover",wT);var o=this.options;!t&&Ut(be,o.dragClass,!1),Ut(be,o.ghostClass,!0),Be.active=this,t&&this._appendGhost(),Rn({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Kn){this._lastX=Kn.clientX,this._lastY=Kn.clientY,_1();for(var t=document.elementFromPoint(Kn.clientX,Kn.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Kn.clientX,Kn.clientY),t!==n);)n=t;if(be.parentNode[cn]._isOutsideThisEl(t),n)do{if(n[cn]){var o=void 0;if(o=n[cn]._onDragOver({clientX:Kn.clientX,clientY:Kn.clientY,target:t,rootEl:n}),o&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);$1()}},_onTouchMove:function(t){if(Jo){var n=this.options,o=n.fallbackTolerance,l=n.fallbackOffset,a=t.touches?t.touches[0]:t,s=et&&el(et,!0),r=et&&s&&s.a,c=et&&s&&s.d,i=Ks&&an&&fd(an),u=(a.clientX-Jo.clientX+l.x)/(r||1)+(i?i[0]-qr[0]:0)/(r||1),d=(a.clientY-Jo.clientY+l.y)/(c||1)+(i?i[1]-qr[1]:0)/(c||1);if(!Be.active&&!gl){if(o&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))=0&&(Rn({rootEl:Wt,name:"add",toEl:Wt,fromEl:bt,originalEvent:t}),Rn({sortable:this,name:"remove",toEl:Wt,originalEvent:t}),Rn({rootEl:Wt,name:"sort",toEl:Wt,fromEl:bt,originalEvent:t}),Rn({sortable:this,name:"sort",toEl:Wt,originalEvent:t})),en&&en.save()):bn!==Ol&&bn>=0&&(Rn({sortable:this,name:"update",toEl:Wt,originalEvent:t}),Rn({sortable:this,name:"sort",toEl:Wt,originalEvent:t})),Be.active&&((bn==null||bn===-1)&&(bn=Ol,Xo=ns),Rn({sortable:this,name:"end",toEl:Wt,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){On("nulling",this),bt=be=Wt=et=ko=At=_s=Lo=Jo=Kn=Bl=bn=Xo=Ol=ns=pl=os=en=Qs=Be.dragged=Be.ghost=Be.clone=Be.active=null,Sa.forEach(function(t){t.checked=!0}),Sa.length=zr=jr=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":be&&(this._onDragOver(t),JT(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,o=this.el.children,l=0,a=o.length,s=this.options;lo.right+l||e.clientX<=o.right&&e.clientY>o.bottom&&e.clientX>=o.left:e.clientX>o.right&&e.clientY>o.top||e.clientX<=o.right&&e.clientY>o.bottom+l}function _T(e,t,n,o,l,a,s,r){var c=o?e.clientY:e.clientX,i=o?n.height:n.width,u=o?n.top:n.left,d=o?n.bottom:n.right,f=!1;if(!s){if(r&&$su+i*a/2:cd-$s)return-os}else if(c>u+i*(1-l)/2&&cd-i*a/2)?c>u+i/2?1:-1:0}function $T(e){return Qt(be)1&&(ze.forEach(function(r){a.addAnimationState({target:r,rect:xn?It(r):s}),_r(r),r.fromRect=s,o.removeAnimationState(r)}),xn=!1,oX(!this.options.removeCloneOnHide,l))},dragOverCompleted:function(n){var o=n.sortable,l=n.isOwner,a=n.insertion,s=n.activeSortable,r=n.parentEl,c=n.putSortable,i=this.options;if(a){if(l&&s._hideClone(),Gl=!1,i.animation&&ze.length>1&&(xn||!l&&!s.options.sort&&!c)){var u=It(Nt,!1,!0,!0);ze.forEach(function(f){f!==Nt&&(Rd(f,u),r.appendChild(f))}),xn=!0}if(!l)if(xn||Hs(),ze.length>1){var d=Cs;s._showClone(o),s.options.animation&&!Cs&&d&&Ln.forEach(function(f){s.addAnimationState({target:f,rect:wl}),f.fromRect=wl,f.thisAnimationDuration=null})}else s._showClone(o)}},dragOverAnimationCapture:function(n){var o=n.dragRect,l=n.isOwner,a=n.activeSortable;if(ze.forEach(function(r){r.thisAnimationDuration=null}),a.options.animation&&!l&&a.multiDrag.isMultiDrag){wl=Qn({},o);var s=el(Nt,!0);wl.top-=s.f,wl.left-=s.e}},dragOverAnimationComplete:function(){xn&&(xn=!1,Hs())},drop:function(n){var o=n.originalEvent,l=n.rootEl,a=n.parentEl,s=n.sortable,r=n.dispatchSortableEvent,c=n.oldIndex,i=n.putSortable,u=i||this.sortable;if(o){var d=this.options,f=a.children;if(!hl)if(d.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),Ut(Nt,d.selectedClass,!~ze.indexOf(Nt)),~ze.indexOf(Nt))ze.splice(ze.indexOf(Nt),1),Hl=null,kl({sortable:s,rootEl:l,name:"deselect",targetEl:Nt,originalEvt:o});else{if(ze.push(Nt),kl({sortable:s,rootEl:l,name:"select",targetEl:Nt,originalEvt:o}),o.shiftKey&&Hl&&s.el.contains(Hl)){var p=Qt(Hl),R=Qt(Nt);if(~p&&~R&&p!==R){var h,v;for(R>p?(v=p,h=R):(v=R,h=p+1);v1){var M=It(Nt),g=Qt(Nt,":not(."+this.options.selectedClass+")");if(!Gl&&d.animation&&(Nt.thisAnimationDuration=null),u.captureAnimationState(),!Gl&&(d.animation&&(Nt.fromRect=M,ze.forEach(function(O){if(O.thisAnimationDuration=null,O!==Nt){var S=xn?It(O):M;O.fromRect=S,u.addAnimationState({target:O,rect:S})}})),Hs(),ze.forEach(function(O){f[g]?a.insertBefore(O,f[g]):a.appendChild(O),g++}),c===Qt(Nt))){var m=!1;ze.forEach(function(O){if(O.sortableIndex!==Qt(O)){m=!0;return}}),m&&r("update")}ze.forEach(function(O){_r(O)}),u.animateAll()}En=u}(l===a||i&&i.lastPutMode!=="clone")&&Ln.forEach(function(O){O.parentNode&&O.parentNode.removeChild(O)})}},nullingGlobal:function(){this.isMultiDrag=hl=!1,Ln.length=0},destroyGlobal:function(){this._deselectMultiDrag(),ot(document,"pointerup",this._deselectMultiDrag),ot(document,"mouseup",this._deselectMultiDrag),ot(document,"touchend",this._deselectMultiDrag),ot(document,"keydown",this._checkKeyDown),ot(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof hl<"u"&&hl)&&En===this.sortable&&!(n&&Cn(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;ze.length;){var o=ze[0];Ut(o,this.options.selectedClass,!1),ze.shift(),kl({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:o,originalEvt:n})}},_checkKeyDown:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},Qn(e,{pluginName:"multiDrag",utils:{select:function(n){var o=n.parentNode[cn];!o||!o.options.multiDrag||~ze.indexOf(n)||(En&&En!==o&&(En.multiDrag._deselectMultiDrag(),En=o),Ut(n,o.options.selectedClass,!0),ze.push(n))},deselect:function(n){var o=n.parentNode[cn],l=ze.indexOf(n);!o||!o.options.multiDrag||!~l||(Ut(n,o.options.selectedClass,!1),ze.splice(l,1))}},eventProperties:function(){var n=this,o=[],l=[];return ze.forEach(function(a){o.push({multiDragElement:a,index:a.sortableIndex});var s;xn&&a!==Nt?s=-1:xn?s=Qt(a,":not(."+n.options.selectedClass+")"):s=Qt(a),l.push({multiDragElement:a,index:s})}),{items:XT(ze),clones:[].concat(Ln),oldIndicies:o,newIndicies:l}},optionListeners:{multiDragKey:function(n){return n=n.toLowerCase(),n==="ctrl"?n="Control":n.length>1&&(n=n.charAt(0).toUpperCase()+n.substr(1)),n}}})}function oX(e,t){ze.forEach(function(n,o){var l=t.children[n.sortableIndex+(e?Number(o):0)];l?t.insertBefore(n,l):t.appendChild(n)})}function gd(e,t){Ln.forEach(function(n,o){var l=t.children[n.sortableIndex+(e?Number(o):0)];l?t.insertBefore(n,l):t.appendChild(n)})}function Hs(){ze.forEach(function(e){e!==Nt&&e.parentNode&&e.parentNode.removeChild(e)})}Be.mount(new qT);Be.mount(Y0,F0);const lX=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:nX,Sortable:Be,Swap:eX,default:Be},Symbol.toStringTag,{value:"Module"})),sX=zi(lX);(function(e,t){(function(o,l){e.exports=l(xT,sX)})(typeof self<"u"?self:tt,function(n,o){return function(l){var a={};function s(r){if(a[r])return a[r].exports;var c=a[r]={i:r,l:!1,exports:{}};return l[r].call(c.exports,c,c.exports,s),c.l=!0,c.exports}return s.m=l,s.c=a,s.d=function(r,c,i){s.o(r,c)||Object.defineProperty(r,c,{enumerable:!0,get:i})},s.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},s.t=function(r,c){if(c&1&&(r=s(r)),c&8||c&4&&typeof r=="object"&&r&&r.__esModule)return r;var i=Object.create(null);if(s.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:r}),c&2&&typeof r!="string")for(var u in r)s.d(i,u,(function(d){return r[d]}).bind(null,u));return i},s.n=function(r){var c=r&&r.__esModule?function(){return r.default}:function(){return r};return s.d(c,"a",c),c},s.o=function(r,c){return Object.prototype.hasOwnProperty.call(r,c)},s.p="",s(s.s="fb15")}({"00ee":function(l,a,s){var r=s("b622"),c=r("toStringTag"),i={};i[c]="z",l.exports=String(i)==="[object z]"},"0366":function(l,a,s){var r=s("1c0b");l.exports=function(c,i,u){if(r(c),i===void 0)return c;switch(u){case 0:return function(){return c.call(i)};case 1:return function(d){return c.call(i,d)};case 2:return function(d,f){return c.call(i,d,f)};case 3:return function(d,f,p){return c.call(i,d,f,p)}}return function(){return c.apply(i,arguments)}}},"057f":function(l,a,s){var r=s("fc6a"),c=s("241c").f,i={}.toString,u=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],d=function(f){try{return c(f)}catch{return u.slice()}};l.exports.f=function(p){return u&&i.call(p)=="[object Window]"?d(p):c(r(p))}},"06cf":function(l,a,s){var r=s("83ab"),c=s("d1e7"),i=s("5c6c"),u=s("fc6a"),d=s("c04e"),f=s("5135"),p=s("0cfb"),R=Object.getOwnPropertyDescriptor;a.f=r?R:function(v,M){if(v=u(v),M=d(M,!0),p)try{return R(v,M)}catch{}if(f(v,M))return i(!c.f.call(v,M),v[M])}},"0cfb":function(l,a,s){var r=s("83ab"),c=s("d039"),i=s("cc12");l.exports=!r&&!c(function(){return Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(l,a,s){var r=s("23e7"),c=s("d58f").left,i=s("a640"),u=s("ae40"),d=i("reduce"),f=u("reduce",{1:0});r({target:"Array",proto:!0,forced:!d||!f},{reduce:function(R){return c(this,R,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(l,a,s){var r=s("c6b6"),c=s("9263");l.exports=function(i,u){var d=i.exec;if(typeof d=="function"){var f=d.call(i,u);if(typeof f!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return f}if(r(i)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return c.call(i,u)}},"159b":function(l,a,s){var r=s("da84"),c=s("fdbc"),i=s("17c2"),u=s("9112");for(var d in c){var f=r[d],p=f&&f.prototype;if(p&&p.forEach!==i)try{u(p,"forEach",i)}catch{p.forEach=i}}},"17c2":function(l,a,s){var r=s("b727").forEach,c=s("a640"),i=s("ae40"),u=c("forEach"),d=i("forEach");l.exports=!u||!d?function(p){return r(this,p,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(l,a,s){var r=s("d066");l.exports=r("document","documentElement")},"1c0b":function(l,a){l.exports=function(s){if(typeof s!="function")throw TypeError(String(s)+" is not a function");return s}},"1c7e":function(l,a,s){var r=s("b622"),c=r("iterator"),i=!1;try{var u=0,d={next:function(){return{done:!!u++}},return:function(){i=!0}};d[c]=function(){return this},Array.from(d,function(){throw 2})}catch{}l.exports=function(f,p){if(!p&&!i)return!1;var R=!1;try{var h={};h[c]=function(){return{next:function(){return{done:R=!0}}}},f(h)}catch{}return R}},"1d80":function(l,a){l.exports=function(s){if(s==null)throw TypeError("Can't call method on "+s);return s}},"1dde":function(l,a,s){var r=s("d039"),c=s("b622"),i=s("2d00"),u=c("species");l.exports=function(d){return i>=51||!r(function(){var f=[],p=f.constructor={};return p[u]=function(){return{foo:1}},f[d](Boolean).foo!==1})}},"23cb":function(l,a,s){var r=s("a691"),c=Math.max,i=Math.min;l.exports=function(u,d){var f=r(u);return f<0?c(f+d,0):i(f,d)}},"23e7":function(l,a,s){var r=s("da84"),c=s("06cf").f,i=s("9112"),u=s("6eeb"),d=s("ce4e"),f=s("e893"),p=s("94ca");l.exports=function(R,h){var v=R.target,M=R.global,g=R.stat,m,O,S,P,b,N;if(M?O=r:g?O=r[v]||d(v,{}):O=(r[v]||{}).prototype,O)for(S in h){if(b=h[S],R.noTargetGet?(N=c(O,S),P=N&&N.value):P=O[S],m=p(M?S:v+(g?".":"#")+S,R.forced),!m&&P!==void 0){if(typeof b==typeof P)continue;f(b,P)}(R.sham||P&&P.sham)&&i(b,"sham",!0),u(O,S,b,R)}}},"241c":function(l,a,s){var r=s("ca84"),c=s("7839"),i=c.concat("length","prototype");a.f=Object.getOwnPropertyNames||function(d){return r(d,i)}},"25f0":function(l,a,s){var r=s("6eeb"),c=s("825a"),i=s("d039"),u=s("ad6d"),d="toString",f=RegExp.prototype,p=f[d],R=i(function(){return p.call({source:"a",flags:"b"})!="/a/b"}),h=p.name!=d;(R||h)&&r(RegExp.prototype,d,function(){var M=c(this),g=String(M.source),m=M.flags,O=String(m===void 0&&M instanceof RegExp&&!("flags"in f)?u.call(M):m);return"/"+g+"/"+O},{unsafe:!0})},"2ca0":function(l,a,s){var r=s("23e7"),c=s("06cf").f,i=s("50c4"),u=s("5a34"),d=s("1d80"),f=s("ab13"),p=s("c430"),R="".startsWith,h=Math.min,v=f("startsWith"),M=!p&&!v&&!!function(){var g=c(String.prototype,"startsWith");return g&&!g.writable}();r({target:"String",proto:!0,forced:!M&&!v},{startsWith:function(m){var O=String(d(this));u(m);var S=i(h(arguments.length>1?arguments[1]:void 0,O.length)),P=String(m);return R?R.call(O,P,S):O.slice(S,S+P.length)===P}})},"2d00":function(l,a,s){var r=s("da84"),c=s("342f"),i=r.process,u=i&&i.versions,d=u&&u.v8,f,p;d?(f=d.split("."),p=f[0]+f[1]):c&&(f=c.match(/Edge\/(\d+)/),(!f||f[1]>=74)&&(f=c.match(/Chrome\/(\d+)/),f&&(p=f[1]))),l.exports=p&&+p},"342f":function(l,a,s){var r=s("d066");l.exports=r("navigator","userAgent")||""},"35a1":function(l,a,s){var r=s("f5df"),c=s("3f8c"),i=s("b622"),u=i("iterator");l.exports=function(d){if(d!=null)return d[u]||d["@@iterator"]||c[r(d)]}},"37e8":function(l,a,s){var r=s("83ab"),c=s("9bf2"),i=s("825a"),u=s("df75");l.exports=r?Object.defineProperties:function(f,p){i(f);for(var R=u(p),h=R.length,v=0,M;h>v;)c.f(f,M=R[v++],p[M]);return f}},"3bbe":function(l,a,s){var r=s("861d");l.exports=function(c){if(!r(c)&&c!==null)throw TypeError("Can't set "+String(c)+" as a prototype");return c}},"3ca3":function(l,a,s){var r=s("6547").charAt,c=s("69f3"),i=s("7dd0"),u="String Iterator",d=c.set,f=c.getterFor(u);i(String,"String",function(p){d(this,{type:u,string:String(p),index:0})},function(){var R=f(this),h=R.string,v=R.index,M;return v>=h.length?{value:void 0,done:!0}:(M=r(h,v),R.index+=M.length,{value:M,done:!1})})},"3f8c":function(l,a){l.exports={}},4160:function(l,a,s){var r=s("23e7"),c=s("17c2");r({target:"Array",proto:!0,forced:[].forEach!=c},{forEach:c})},"428f":function(l,a,s){var r=s("da84");l.exports=r},"44ad":function(l,a,s){var r=s("d039"),c=s("c6b6"),i="".split;l.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(u){return c(u)=="String"?i.call(u,""):Object(u)}:Object},"44d2":function(l,a,s){var r=s("b622"),c=s("7c73"),i=s("9bf2"),u=r("unscopables"),d=Array.prototype;d[u]==null&&i.f(d,u,{configurable:!0,value:c(null)}),l.exports=function(f){d[u][f]=!0}},"44e7":function(l,a,s){var r=s("861d"),c=s("c6b6"),i=s("b622"),u=i("match");l.exports=function(d){var f;return r(d)&&((f=d[u])!==void 0?!!f:c(d)=="RegExp")}},4930:function(l,a,s){var r=s("d039");l.exports=!!Object.getOwnPropertySymbols&&!r(function(){return!String(Symbol())})},"4d64":function(l,a,s){var r=s("fc6a"),c=s("50c4"),i=s("23cb"),u=function(d){return function(f,p,R){var h=r(f),v=c(h.length),M=i(R,v),g;if(d&&p!=p){for(;v>M;)if(g=h[M++],g!=g)return!0}else for(;v>M;M++)if((d||M in h)&&h[M]===p)return d||M||0;return!d&&-1}};l.exports={includes:u(!0),indexOf:u(!1)}},"4de4":function(l,a,s){var r=s("23e7"),c=s("b727").filter,i=s("1dde"),u=s("ae40"),d=i("filter"),f=u("filter");r({target:"Array",proto:!0,forced:!d||!f},{filter:function(R){return c(this,R,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(l,a,s){var r=s("0366"),c=s("7b0b"),i=s("9bdd"),u=s("e95a"),d=s("50c4"),f=s("8418"),p=s("35a1");l.exports=function(h){var v=c(h),M=typeof this=="function"?this:Array,g=arguments.length,m=g>1?arguments[1]:void 0,O=m!==void 0,S=p(v),P=0,b,N,x,T,y,Y;if(O&&(m=r(m,g>2?arguments[2]:void 0,2)),S!=null&&!(M==Array&&u(S)))for(T=S.call(v),y=T.next,N=new M;!(x=y.call(T)).done;P++)Y=O?i(T,m,[x.value,P],!0):x.value,f(N,P,Y);else for(b=d(v.length),N=new M(b);b>P;P++)Y=O?m(v[P],P):v[P],f(N,P,Y);return N.length=P,N}},"4fad":function(l,a,s){var r=s("23e7"),c=s("6f53").entries;r({target:"Object",stat:!0},{entries:function(u){return c(u)}})},"50c4":function(l,a,s){var r=s("a691"),c=Math.min;l.exports=function(i){return i>0?c(r(i),9007199254740991):0}},5135:function(l,a){var s={}.hasOwnProperty;l.exports=function(r,c){return s.call(r,c)}},5319:function(l,a,s){var r=s("d784"),c=s("825a"),i=s("7b0b"),u=s("50c4"),d=s("a691"),f=s("1d80"),p=s("8aa5"),R=s("14c3"),h=Math.max,v=Math.min,M=Math.floor,g=/\$([$&'`]|\d\d?|<[^>]*>)/g,m=/\$([$&'`]|\d\d?)/g,O=function(S){return S===void 0?S:String(S)};r("replace",2,function(S,P,b,N){var x=N.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,T=N.REPLACE_KEEPS_$0,y=x?"$":"$0";return[function(W,C){var F=f(this),J=W==null?void 0:W[S];return J!==void 0?J.call(W,F,C):P.call(String(F),W,C)},function(U,W){if(!x&&T||typeof W=="string"&&W.indexOf(y)===-1){var C=b(P,U,this,W);if(C.done)return C.value}var F=c(U),J=String(this),w=typeof W=="function";w||(W=String(W));var q=F.global;if(q){var se=F.unicode;F.lastIndex=0}for(var H=[];;){var G=R(F,J);if(G===null||(H.push(G),!q))break;var Q=String(G[0]);Q===""&&(F.lastIndex=p(J,u(F.lastIndex),se))}for(var E="",le=0,B=0;B=le&&(E+=J.slice(le,z)+$,le=z+D.length)}return E+J.slice(le)}];function Y(U,W,C,F,J,w){var q=C+U.length,se=F.length,H=m;return J!==void 0&&(J=i(J),H=g),P.call(w,H,function(G,Q){var E;switch(Q.charAt(0)){case"$":return"$";case"&":return U;case"`":return W.slice(0,C);case"'":return W.slice(q);case"<":E=J[Q.slice(1,-1)];break;default:var le=+Q;if(le===0)return G;if(le>se){var B=M(le/10);return B===0?G:B<=se?F[B-1]===void 0?Q.charAt(1):F[B-1]+Q.charAt(1):G}E=F[le-1]}return E===void 0?"":E})}})},5692:function(l,a,s){var r=s("c430"),c=s("c6cd");(l.exports=function(i,u){return c[i]||(c[i]=u!==void 0?u:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(l,a,s){var r=s("d066"),c=s("241c"),i=s("7418"),u=s("825a");l.exports=r("Reflect","ownKeys")||function(f){var p=c.f(u(f)),R=i.f;return R?p.concat(R(f)):p}},"5a34":function(l,a,s){var r=s("44e7");l.exports=function(c){if(r(c))throw TypeError("The method doesn't accept regular expressions");return c}},"5c6c":function(l,a){l.exports=function(s,r){return{enumerable:!(s&1),configurable:!(s&2),writable:!(s&4),value:r}}},"5db7":function(l,a,s){var r=s("23e7"),c=s("a2bf"),i=s("7b0b"),u=s("50c4"),d=s("1c0b"),f=s("65f0");r({target:"Array",proto:!0},{flatMap:function(R){var h=i(this),v=u(h.length),M;return d(R),M=f(h,0),M.length=c(M,h,h,v,0,1,R,arguments.length>1?arguments[1]:void 0),M}})},6547:function(l,a,s){var r=s("a691"),c=s("1d80"),i=function(u){return function(d,f){var p=String(c(d)),R=r(f),h=p.length,v,M;return R<0||R>=h?u?"":void 0:(v=p.charCodeAt(R),v<55296||v>56319||R+1===h||(M=p.charCodeAt(R+1))<56320||M>57343?u?p.charAt(R):v:u?p.slice(R,R+2):(v-55296<<10)+(M-56320)+65536)}};l.exports={codeAt:i(!1),charAt:i(!0)}},"65f0":function(l,a,s){var r=s("861d"),c=s("e8b5"),i=s("b622"),u=i("species");l.exports=function(d,f){var p;return c(d)&&(p=d.constructor,typeof p=="function"&&(p===Array||c(p.prototype))?p=void 0:r(p)&&(p=p[u],p===null&&(p=void 0))),new(p===void 0?Array:p)(f===0?0:f)}},"69f3":function(l,a,s){var r=s("7f9a"),c=s("da84"),i=s("861d"),u=s("9112"),d=s("5135"),f=s("f772"),p=s("d012"),R=c.WeakMap,h,v,M,g=function(x){return M(x)?v(x):h(x,{})},m=function(x){return function(T){var y;if(!i(T)||(y=v(T)).type!==x)throw TypeError("Incompatible receiver, "+x+" required");return y}};if(r){var O=new R,S=O.get,P=O.has,b=O.set;h=function(x,T){return b.call(O,x,T),T},v=function(x){return S.call(O,x)||{}},M=function(x){return P.call(O,x)}}else{var N=f("state");p[N]=!0,h=function(x,T){return u(x,N,T),T},v=function(x){return d(x,N)?x[N]:{}},M=function(x){return d(x,N)}}l.exports={set:h,get:v,has:M,enforce:g,getterFor:m}},"6eeb":function(l,a,s){var r=s("da84"),c=s("9112"),i=s("5135"),u=s("ce4e"),d=s("8925"),f=s("69f3"),p=f.get,R=f.enforce,h=String(String).split("String");(l.exports=function(v,M,g,m){var O=m?!!m.unsafe:!1,S=m?!!m.enumerable:!1,P=m?!!m.noTargetGet:!1;if(typeof g=="function"&&(typeof M=="string"&&!i(g,"name")&&c(g,"name",M),R(g).source=h.join(typeof M=="string"?M:"")),v===r){S?v[M]=g:u(M,g);return}else O?!P&&v[M]&&(S=!0):delete v[M];S?v[M]=g:c(v,M,g)})(Function.prototype,"toString",function(){return typeof this=="function"&&p(this).source||d(this)})},"6f53":function(l,a,s){var r=s("83ab"),c=s("df75"),i=s("fc6a"),u=s("d1e7").f,d=function(f){return function(p){for(var R=i(p),h=c(R),v=h.length,M=0,g=[],m;v>M;)m=h[M++],(!r||u.call(R,m))&&g.push(f?[m,R[m]]:R[m]);return g}};l.exports={entries:d(!0),values:d(!1)}},"73d9":function(l,a,s){var r=s("44d2");r("flatMap")},7418:function(l,a){a.f=Object.getOwnPropertySymbols},"746f":function(l,a,s){var r=s("428f"),c=s("5135"),i=s("e538"),u=s("9bf2").f;l.exports=function(d){var f=r.Symbol||(r.Symbol={});c(f,d)||u(f,d,{value:i.f(d)})}},7839:function(l,a){l.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(l,a,s){var r=s("1d80");l.exports=function(c){return Object(r(c))}},"7c73":function(l,a,s){var r=s("825a"),c=s("37e8"),i=s("7839"),u=s("d012"),d=s("1be4"),f=s("cc12"),p=s("f772"),R=">",h="<",v="prototype",M="script",g=p("IE_PROTO"),m=function(){},O=function(x){return h+M+R+x+h+"/"+M+R},S=function(x){x.write(O("")),x.close();var T=x.parentWindow.Object;return x=null,T},P=function(){var x=f("iframe"),T="java"+M+":",y;return x.style.display="none",d.appendChild(x),x.src=String(T),y=x.contentWindow.document,y.open(),y.write(O("document.F=Object")),y.close(),y.F},b,N=function(){try{b=document.domain&&new ActiveXObject("htmlfile")}catch{}N=b?S(b):P();for(var x=i.length;x--;)delete N[v][i[x]];return N()};u[g]=!0,l.exports=Object.create||function(T,y){var Y;return T!==null?(m[v]=r(T),Y=new m,m[v]=null,Y[g]=T):Y=N(),y===void 0?Y:c(Y,y)}},"7dd0":function(l,a,s){var r=s("23e7"),c=s("9ed3"),i=s("e163"),u=s("d2bb"),d=s("d44e"),f=s("9112"),p=s("6eeb"),R=s("b622"),h=s("c430"),v=s("3f8c"),M=s("ae93"),g=M.IteratorPrototype,m=M.BUGGY_SAFARI_ITERATORS,O=R("iterator"),S="keys",P="values",b="entries",N=function(){return this};l.exports=function(x,T,y,Y,U,W,C){c(y,T,Y);var F=function(B){if(B===U&&H)return H;if(!m&&B in q)return q[B];switch(B){case S:return function(){return new y(this,B)};case P:return function(){return new y(this,B)};case b:return function(){return new y(this,B)}}return function(){return new y(this)}},J=T+" Iterator",w=!1,q=x.prototype,se=q[O]||q["@@iterator"]||U&&q[U],H=!m&&se||F(U),G=T=="Array"&&q.entries||se,Q,E,le;if(G&&(Q=i(G.call(new x)),g!==Object.prototype&&Q.next&&(!h&&i(Q)!==g&&(u?u(Q,g):typeof Q[O]!="function"&&f(Q,O,N)),d(Q,J,!0,!0),h&&(v[J]=N))),U==P&&se&&se.name!==P&&(w=!0,H=function(){return se.call(this)}),(!h||C)&&q[O]!==H&&f(q,O,H),v[T]=H,U)if(E={values:F(P),keys:W?H:F(S),entries:F(b)},C)for(le in E)(m||w||!(le in q))&&p(q,le,E[le]);else r({target:T,proto:!0,forced:m||w},E);return E}},"7f9a":function(l,a,s){var r=s("da84"),c=s("8925"),i=r.WeakMap;l.exports=typeof i=="function"&&/native code/.test(c(i))},"825a":function(l,a,s){var r=s("861d");l.exports=function(c){if(!r(c))throw TypeError(String(c)+" is not an object");return c}},"83ab":function(l,a,s){var r=s("d039");l.exports=!r(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(l,a,s){var r=s("c04e"),c=s("9bf2"),i=s("5c6c");l.exports=function(u,d,f){var p=r(d);p in u?c.f(u,p,i(0,f)):u[p]=f}},"861d":function(l,a){l.exports=function(s){return typeof s=="object"?s!==null:typeof s=="function"}},8875:function(l,a,s){var r,c,i;(function(u,d){c=[],r=d,i=typeof r=="function"?r.apply(a,c):r,i!==void 0&&(l.exports=i)})(typeof self<"u"?self:this,function(){function u(){var d=Object.getOwnPropertyDescriptor(document,"currentScript");if(!d&&"currentScript"in document&&document.currentScript||d&&d.get!==u&&document.currentScript)return document.currentScript;try{throw new Error}catch(b){var f=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,p=/@([^@]*):(\d+):(\d+)\s*$/ig,R=f.exec(b.stack)||p.exec(b.stack),h=R&&R[1]||!1,v=R&&R[2]||!1,M=document.location.href.replace(document.location.hash,""),g,m,O,S=document.getElementsByTagName("script");h===M&&(g=document.documentElement.outerHTML,m=new RegExp("(?:[^\\n]+?\\n){0,"+(v-2)+"}[^<]*