123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- import{d as sC,r as Nm,b7 as t$,q as I1t,aM as lC,o as cC,c as fC,bP as N1t,bQ as L1t,ac as Lm,bR as R1t,Y as dC,a as Io,aW as M1t,f as e$,l as z1t,ao as $1t,aq as Rm,bB as H1t,bC as V1t,bE as U1t,aj as W1t,_ as G1t,__tla as q1t}from"./index-327f993b.js";let n$,K1t=Promise.all([(()=>{try{return q1t}catch{}})()]).then(async()=>{var ue=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ra(t){var e={exports:{}};return t(e,e.exports),e.exports}var ci,yh,bh=function(t){return t&&t.Math==Math&&t},kt=bh(typeof globalThis=="object"&&globalThis)||bh(typeof window=="object"&&window)||bh(typeof self=="object"&&self)||bh(typeof ue=="object"&&ue)||function(){return this}()||Function("return this")(),Mm=Function.prototype,pC=Mm.apply,o$=Mm.bind,hC=Mm.call,gC=typeof Reflect=="object"&&Reflect.apply||(o$?hC.bind(pC):function(){return hC.apply(pC,arguments)}),vC=Function.prototype,zm=vC.bind,$m=vC.call,i$=zm&&zm.bind($m),he=zm?function(t){return t&&i$($m,t)}:function(t){return t&&function(){return $m.apply(t,arguments)}},un=function(t){return typeof t=="function"},Nn=function(t){try{return!!t()}catch{return!0}},Ln=!Nn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Dc=Function.prototype.call,Rn=Dc.bind?Dc.bind(Dc):function(){return Dc.apply(Dc,arguments)},mC={}.propertyIsEnumerable,yC=Object.getOwnPropertyDescriptor,a$=yC&&!mC.call({1:2},1)?function(t){var e=yC(this,t);return!!e&&e.enumerable}:mC,Hm={f:a$},Lr=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},u$=he({}.toString),s$=he("".slice),Ma=function(t){return s$(u$(t),8,-1)},Vm=kt.Object,l$=he("".split),bC=Nn(function(){return!Vm("z").propertyIsEnumerable(0)})?function(t){return Ma(t)=="String"?l$(t,""):Vm(t)}:Vm,c$=kt.TypeError,Um=function(t){if(t==null)throw c$("Can't call method on "+t);return t},oo=function(t){return bC(Um(t))},Yn=function(t){return typeof t=="object"?t!==null:un(t)},Jn={},wC=function(t){return un(t)?t:void 0},ms=function(t,e){return arguments.length<2?wC(Jn[t])||wC(kt[t]):Jn[t]&&Jn[t][e]||kt[t]&&kt[t][e]},xc=he({}.isPrototypeOf),Wm=ms("navigator","userAgent")||"",EC=kt.process,DC=kt.Deno,xC=EC&&EC.versions||DC&&DC.version,CC=xC&&xC.v8;CC&&(yh=(ci=CC.split("."))[0]>0&&ci[0]<4?1:+(ci[0]+ci[1])),!yh&&Wm&&(!(ci=Wm.match(/Edge\/(\d+)/))||ci[1]>=74)&&(ci=Wm.match(/Chrome\/(\d+)/))&&(yh=+ci[1]);var wh,Eh=yh,io=!!Object.getOwnPropertySymbols&&!Nn(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Eh&&Eh<41}),Gm=io&&!Symbol.sham&&typeof Symbol.iterator=="symbol",f$=kt.Object,ys=Gm?function(t){return typeof t=="symbol"}:function(t){var e=ms("Symbol");return un(e)&&xc(e.prototype,f$(t))},d$=kt.String,qm=function(t){try{return d$(t)}catch{return"Object"}},p$=kt.TypeError,Km=function(t){if(un(t))return t;throw p$(qm(t)+" is not a function")},Dh=function(t,e){var n=t[e];return n==null?void 0:Km(n)},h$=kt.TypeError,g$=Object.defineProperty,fi=kt["__core-js_shared__"]||function(t,e){try{g$(kt,t,{value:e,configurable:!0,writable:!0})}catch{kt[t]=e}return e}("__core-js_shared__",{}),za=Ra(function(t){(t.exports=function(e,n){return fi[e]||(fi[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),v$=kt.Object,Cc=function(t){return v$(Um(t))},m$=he({}.hasOwnProperty),Ht=Object.hasOwn||function(t,e){return m$(Cc(t),e)},y$=0,b$=Math.random(),w$=he(1 .toString),xh=function(t){return"Symbol("+(t===void 0?"":t)+")_"+w$(++y$+b$,36)},Sc=za("wks"),$a=kt.Symbol,SC=$a&&$a.for,E$=Gm?$a:$a&&$a.withoutSetter||xh,En=function(t){if(!Ht(Sc,t)||!io&&typeof Sc[t]!="string"){var e="Symbol."+t;io&&Ht($a,t)?Sc[t]=$a[t]:Sc[t]=Gm&&SC?SC(e):E$(e)}return Sc[t]},D$=kt.TypeError,x$=En("toPrimitive"),bs=function(t){var e=function(n,r){if(!Yn(n)||ys(n))return n;var o,i=Dh(n,x$);if(i){if(r===void 0&&(r="default"),o=Rn(i,n,r),!Yn(o)||ys(o))return o;throw D$("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&un(s=a.toString)&&!Yn(l=Rn(s,a))||un(s=a.valueOf)&&!Yn(l=Rn(s,a))||u!=="string"&&un(s=a.toString)&&!Yn(l=Rn(s,a)))return l;throw h$("Can't convert object to primitive value")}(n,r)}(t,"string");return ys(e)?e:e+""},Xm=kt.document,C$=Yn(Xm)&&Yn(Xm.createElement),AC=function(t){return C$?Xm.createElement(t):{}},OC=!Ln&&!Nn(function(){return Object.defineProperty(AC("div"),"a",{get:function(){return 7}}).a!=7}),kC=Object.getOwnPropertyDescriptor,S$=Ln?kC:function(t,e){if(t=oo(t),e=bs(e),OC)try{return kC(t,e)}catch{}if(Ht(t,e))return Lr(!Rn(Hm.f,t,e),t[e])},Ch={f:S$},A$=/#|\.prototype\./,Ac=function(t,e){var n=k$[O$(t)];return n==F$||n!=B$&&(un(e)?Nn(e):!!e)},O$=Ac.normalize=function(t){return String(t).replace(A$,".").toLowerCase()},k$=Ac.data={},B$=Ac.NATIVE="N",F$=Ac.POLYFILL="P",T$=Ac,BC=he(he.bind),Ym=function(t,e){return Km(t),e===void 0?t:BC?BC(t,e):function(){return t.apply(e,arguments)}},_$=kt.String,P$=kt.TypeError,Zn=function(t){if(Yn(t))return t;throw P$(_$(t)+" is not an object")},j$=kt.TypeError,FC=Object.defineProperty,I$=Ln?FC:function(t,e,n){if(Zn(t),e=bs(e),Zn(n),OC)try{return FC(t,e,n)}catch{}if("get"in n||"set"in n)throw j$("Accessors not supported");return"value"in n&&(t[e]=n.value),t},di={f:I$},_n=Ln?function(t,e,n){return di.f(t,e,Lr(1,n))}:function(t,e,n){return t[e]=n,t},N$=Ch.f,L$=function(t){var e=function(n,r,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,o)}return gC(t,this,arguments)};return e.prototype=t.prototype,e},No=function(t,e){var n,r,o,i,a,u,s,l,c=t.target,f=t.global,p=t.stat,d=t.proto,g=f?kt:p?kt[c]:(kt[c]||{}).prototype,v=f?Jn:Jn[c]||_n(Jn,c,{})[c],m=v.prototype;for(o in e)n=!T$(f?o:c+(p?".":"#")+o,t.forced)&&g&&Ht(g,o),a=v[o],n&&(u=t.noTargetGet?(l=N$(g,o))&&l.value:g[o]),i=n&&u?u:e[o],n&&typeof a==typeof i||(s=t.bind&&n?Ym(i,kt):t.wrap&&n?L$(i):d&&un(i)?he(i):i,(t.sham||i&&i.sham||a&&a.sham)&&_n(s,"sham",!0),_n(v,o,s),d&&(Ht(Jn,r=c+"Prototype")||_n(Jn,r,{}),_n(Jn[r],o,i),t.real&&m&&!m[o]&&_n(m,o,i)))},TC=za("keys"),Sh=function(t){return TC[t]||(TC[t]=xh(t))},R$=!Nn(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),_C=Sh("IE_PROTO"),Jm=kt.Object,M$=Jm.prototype,Ah=R$?Jm.getPrototypeOf:function(t){var e=Cc(t);if(Ht(e,_C))return e[_C];var n=e.constructor;return un(n)&&e instanceof n?n.prototype:e instanceof Jm?M$:null},z$=kt.String,$$=kt.TypeError,Oh=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=he(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch{}return function(r,o){return Zn(r),function(i){if(typeof i=="object"||un(i))return i;throw $$("Can't set "+z$(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),H$=Math.ceil,V$=Math.floor,Zm=function(t){var e=+t;return e!=e||e===0?0:(e>0?V$:H$)(e)},U$=Math.max,W$=Math.min,Qm=function(t,e){var n=Zm(t);return n<0?U$(n+e,0):W$(n,e)},G$=Math.min,Oc=function(t){return(e=t.length)>0?G$(Zm(e),9007199254740991):0;var e},PC=function(t){return function(e,n,r){var o,i=oo(e),a=Oc(i),u=Qm(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},q$={includes:PC(!0),indexOf:PC(!1)},kc={},K$=q$.indexOf,jC=he([].push),IC=function(t,e){var n,r=oo(t),o=0,i=[];for(n in r)!Ht(kc,n)&&Ht(r,n)&&jC(i,n);for(;e.length>o;)Ht(r,n=e[o++])&&(~K$(i,n)||jC(i,n));return i},kh=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],X$=kh.concat("length","prototype"),Y$=Object.getOwnPropertyNames||function(t){return IC(t,X$)},ty={f:Y$},Bh={f:Object.getOwnPropertySymbols},J$=he([].concat),Z$=ms("Reflect","ownKeys")||function(t){var e=ty.f(Zn(t)),n=Bh.f;return n?J$(e,n(t)):e},ey=Object.keys||function(t){return IC(t,kh)},Q$=Ln?Object.defineProperties:function(t,e){Zn(t);for(var n,r=oo(e),o=ey(e),i=o.length,a=0;i>a;)di.f(t,n=o[a++],r[n]);return t},tH=ms("document","documentElement"),NC=Sh("IE_PROTO"),ny=function(){},LC=function(t){return"<script>"+t+"<\/script>"},RC=function(t){t.write(LC("")),t.close();var e=t.parentWindow.Object;return t=null,e},Fh=function(){try{wh=new ActiveXObject("htmlfile")}catch{}var t,e;Fh=typeof document<"u"?document.domain&&wh?RC(wh):((e=AC("iframe")).style.display="none",tH.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(LC("document.F=Object")),t.close(),t.F):RC(wh);for(var n=kh.length;n--;)delete Fh.prototype[kh[n]];return Fh()};kc[NC]=!0;var Lo=Object.create||function(t,e){var n;return t!==null?(ny.prototype=Zn(t),n=new ny,ny.prototype=null,n[NC]=t):n=Fh(),e===void 0?n:Q$(n,e)},ry=function(t,e,n){var r=bs(e);r in t?di.f(t,r,Lr(0,n)):t[r]=n},eH=kt.Array,nH=Math.max,MC=function(t,e,n){for(var r=Oc(t),o=Qm(e,r),i=Qm(n===void 0?r:n,r),a=eH(nH(i-o,0)),u=0;o<i;o++,u++)ry(a,u,t[o]);return a.length=u,a},rH=he("".replace),oH=he("".split),iH=he([].join),oy=String(Error("zxcasd").stack),zC=/\n\s*at [^:]*:[^\n]*/,aH=zC.test(oy),uH=/@[^\n]*\n/.test(oy)&&!/zxcasd/.test(oy),Ro={},sH=En("iterator"),lH=Array.prototype,$C={};$C[En("toStringTag")]="z";var iy=String($C)==="[object z]",cH=En("toStringTag"),fH=kt.Object,dH=Ma(function(){return arguments}())=="Arguments",Bc=iy?Ma:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=fH(t),cH))=="string"?n:dH?Ma(e):(r=Ma(e))=="Object"&&un(e.callee)?"Arguments":r},pH=En("iterator"),HC=function(t){if(t!=null)return Dh(t,pH)||Dh(t,"@@iterator")||Ro[Bc(t)]},hH=kt.TypeError,VC=function(t,e,n){var r,o;Zn(t);try{if(!(r=Dh(t,"return"))){if(e==="throw")throw n;return n}r=Rn(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return Zn(r),n},gH=kt.TypeError,Th=function(t,e){this.stopped=t,this.result=e},UC=Th.prototype,vH=kt.String,Fc=function(t){if(Bc(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return vH(t)},mH=!Nn(function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",Lr(1,7)),t.stack!==7)}),yH=En("toStringTag"),_h=kt.Error,bH=[].push,Tc=function(t,e){var n,r=arguments.length>2?arguments[2]:void 0,o=xc(ay,this);Oh?n=Oh(new _h(void 0),o?Ah(this):ay):(n=o?this:Lo(ay),_n(n,yH,"Error")),_n(n,"message",function(a,u){return a===void 0?arguments.length<2?"":u:Fc(a)}(e,"")),mH&&_n(n,"stack",function(a,u){if(typeof a!="string")return a;if(aH)for(;u--;)a=rH(a,zC,"");else if(uH)return iH(MC(oH(a,`
- `),u),`
- `);return a}(n.stack,1)),function(a,u){Yn(u)&&"cause"in u&&_n(a,"cause",u.cause)}(n,r);var i=[];return function(a,u,s){var l,c,f,p,d,g,v,m=s&&s.that,y=!(!s||!s.AS_ENTRIES),h=!(!s||!s.IS_ITERATOR),b=!(!s||!s.INTERRUPTED),w=Ym(u,m),D=function(x){return l&&VC(l,"normal",x),new Th(!0,x)},C=function(x){return y?(Zn(x),b?w(x[0],x[1],D):w(x[0],x[1])):b?w(x,D):w(x)};if(h)l=a;else{if(!(c=HC(a)))throw gH(qm(a)+" is not iterable");if(function(x){return x!==void 0&&(Ro.Array===x||lH[sH]===x)}(c)){for(f=0,p=Oc(a);p>f;f++)if((d=C(a[f]))&&xc(UC,d))return d;return new Th(!1)}l=function(x,S){var F=arguments.length<2?HC(x):S;if(Km(F))return Zn(Rn(F,x));throw hH(qm(x)+" is not iterable")}(a,c)}for(g=l.next;!(v=Rn(g,l)).done;){try{d=C(v.value)}catch(x){VC(l,"throw",x)}if(typeof d=="object"&&d&&xc(UC,d))return d}new Th(!1)}(t,bH,{that:i}),_n(n,"errors",i),n};Oh?Oh(Tc,_h):function(t,e){for(var n=Z$(e),r=di.f,o=Ch.f,i=0;i<n.length;i++){var a=n[i];Ht(t,a)||r(t,a,o(e,a))}}(Tc,_h);var ay=Tc.prototype=Lo(_h.prototype,{constructor:Lr(1,Tc),message:Lr(1,""),name:Lr(1,"AggregateError")});No({global:!0},{AggregateError:Tc});var wH=he(Function.toString);un(fi.inspectSource)||(fi.inspectSource=function(t){return wH(t)});var Ph,_c,jh,WC=fi.inspectSource,GC=kt.WeakMap,EH=un(GC)&&/native code/.test(WC(GC)),uy=kt.TypeError,DH=kt.WeakMap;if(EH||fi.state){var Ha=fi.state||(fi.state=new DH),xH=he(Ha.get),qC=he(Ha.has),CH=he(Ha.set);Ph=function(t,e){if(qC(Ha,t))throw new uy("Object already initialized");return e.facade=t,CH(Ha,t,e),e},_c=function(t){return xH(Ha,t)||{}},jh=function(t){return qC(Ha,t)}}else{var ws=Sh("state");kc[ws]=!0,Ph=function(t,e){if(Ht(t,ws))throw new uy("Object already initialized");return e.facade=t,_n(t,ws,e),e},_c=function(t){return Ht(t,ws)?t[ws]:{}},jh=function(t){return Ht(t,ws)}}var pi,KC,XC,Es={set:Ph,get:_c,has:jh,enforce:function(t){return jh(t)?_c(t):Ph(t,{})},getterFor:function(t){return function(e){var n;if(!Yn(e)||(n=_c(e)).type!==t)throw uy("Incompatible receiver, "+t+" required");return n}}},YC=Function.prototype,SH=Ln&&Object.getOwnPropertyDescriptor,sy=Ht(YC,"name"),AH={EXISTS:sy,PROPER:sy&&(function(){}).name==="something",CONFIGURABLE:sy&&(!Ln||Ln&&SH(YC,"name").configurable)},Ds=function(t,e,n,r){r&&r.enumerable?t[e]=n:_n(t,e,n)},ly=En("iterator"),JC=!1;[].keys&&("next"in(XC=[].keys())?(KC=Ah(Ah(XC)))!==Object.prototype&&(pi=KC):JC=!0);var OH=pi==null||Nn(function(){var t={};return pi[ly].call(t)!==t});pi=OH?{}:Lo(pi),un(pi[ly])||Ds(pi,ly,function(){return this});var ZC={IteratorPrototype:pi,BUGGY_SAFARI_ITERATORS:JC},kH=iy?{}.toString:function(){return"[object "+Bc(this)+"]"},BH=di.f,QC=En("toStringTag"),Ih=function(t,e,n,r){if(t){var o=n?t:t.prototype;Ht(o,QC)||BH(o,QC,{configurable:!0,value:e}),r&&!iy&&_n(o,"toString",kH)}},FH=ZC.IteratorPrototype,TH=function(){return this},_H=AH.PROPER,Nh=ZC.BUGGY_SAFARI_ITERATORS,cy=En("iterator"),PH=function(){return this},tS=function(t,e,n,r,o,i,a){(function(y,h,b,w){var D=h+" Iterator";y.prototype=Lo(FH,{next:Lr(1,b)}),Ih(y,D,!1,!0),Ro[D]=TH})(n,e,r);var u,s,l,c=function(y){if(y===o&&v)return v;if(!Nh&&y in d)return d[y];switch(y){case"keys":case"values":case"entries":return function(){return new n(this,y)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,g=d[cy]||d["@@iterator"]||o&&d[o],v=!Nh&&g||c(o),m=e=="Array"&&d.entries||g;if(m&&(u=Ah(m.call(new t)))!==Object.prototype&&u.next&&(Ih(u,f,!0,!0),Ro[f]=PH),_H&&o=="values"&&g&&g.name!=="values"&&(p=!0,v=function(){return Rn(g,this)}),o)if(s={values:c("values"),keys:i?v:c("keys"),entries:c("entries")},a)for(l in s)(Nh||p||!(l in d))&&Ds(d,l,s[l]);else No({target:e,proto:!0,forced:Nh||p},s);return a&&d[cy]!==v&&Ds(d,cy,v,{name:o}),Ro[e]=v,s},jH=Es.set,IH=Es.getterFor("Array Iterator");tS(Array,"Array",function(t,e){jH(this,{type:"Array Iterator",target:oo(t),index:0,kind:e})},function(){var t=IH(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values"),Ro.Arguments=Ro.Array;var NH=he("".charAt),eS=he("".charCodeAt),LH=he("".slice),nS=function(t){return function(e,n){var r,o,i=Fc(Um(e)),a=Zm(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=eS(i,a))<55296||r>56319||a+1===u||(o=eS(i,a+1))<56320||o>57343?t?NH(i,a):r:t?LH(i,a,a+2):o-56320+(r-55296<<10)+65536}},RH=(nS(!1),nS(!0)),MH=Es.set,zH=Es.getterFor("String Iterator");tS(String,"String",function(t){MH(this,{type:"String Iterator",string:Fc(t),index:0})},function(){var t,e=zH(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=RH(n,r),e.index+=t.length,{value:t,done:!1})});var $H=Jn.AggregateError,rS=En("toStringTag");for(var fy in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var oS=kt[fy],dy=oS&&oS.prototype;dy&&Bc(dy)!==rS&&_n(dy,rS,fy),Ro[fy]=Ro.Array}var hi,Lh,HH=$H,Rh=function(t){return t&&t.Math==Math&&t},xt=Rh(typeof globalThis=="object"&&globalThis)||Rh(typeof window=="object"&&window)||Rh(typeof self=="object"&&self)||Rh(typeof ue=="object"&&ue)||function(){return this}()||Function("return this")(),sn=function(t){try{return!!t()}catch{return!0}},ao=!sn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Pc=Function.prototype.call,ln=Pc.bind?Pc.bind(Pc):function(){return Pc.apply(Pc,arguments)},iS={}.propertyIsEnumerable,aS=Object.getOwnPropertyDescriptor,VH=aS&&!iS.call({1:2},1)?function(t){var e=aS(this,t);return!!e&&e.enumerable}:iS,UH={f:VH},gi=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},uS=Function.prototype,py=uS.bind,hy=uS.call,WH=py&&py.bind(hy),ie=py?function(t){return t&&WH(hy,t)}:function(t){return t&&function(){return hy.apply(t,arguments)}},GH=ie({}.toString),qH=ie("".slice),Va=function(t){return qH(GH(t),8,-1)},gy=xt.Object,KH=ie("".split),sS=sn(function(){return!gy("z").propertyIsEnumerable(0)})?function(t){return Va(t)=="String"?KH(t,""):gy(t)}:gy,XH=xt.TypeError,Mh=function(t){if(t==null)throw XH("Can't call method on "+t);return t},xs=function(t){return sS(Mh(t))},He=function(t){return typeof t=="function"},Rr=function(t){return typeof t=="object"?t!==null:He(t)},jc=function(t,e){return arguments.length<2?function(n){return He(n)?n:void 0}(xt[t]):xt[t]&&xt[t][e]},zh=ie({}.isPrototypeOf),vy=jc("navigator","userAgent")||"",lS=xt.process,cS=xt.Deno,fS=lS&&lS.versions||cS&&cS.version,dS=fS&&fS.v8;dS&&(Lh=(hi=dS.split("."))[0]>0&&hi[0]<4?1:+(hi[0]+hi[1])),!Lh&&vy&&(!(hi=vy.match(/Edge\/(\d+)/))||hi[1]>=74)&&(hi=vy.match(/Chrome\/(\d+)/))&&(Lh=+hi[1]);var pS=Lh,my=!!Object.getOwnPropertySymbols&&!sn(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&pS&&pS<41}),yy=my&&!Symbol.sham&&typeof Symbol.iterator=="symbol",YH=xt.Object,by=yy?function(t){return typeof t=="symbol"}:function(t){var e=jc("Symbol");return He(e)&&zh(e.prototype,YH(t))},JH=xt.String,wy=function(t){try{return JH(t)}catch{return"Object"}},ZH=xt.TypeError,Ey=function(t){if(He(t))return t;throw ZH(wy(t)+" is not a function")},Ic=function(t,e){var n=t[e];return n==null?void 0:Ey(n)},QH=xt.TypeError,tV=Object.defineProperty,Dy=function(t,e){try{tV(xt,t,{value:e,configurable:!0,writable:!0})}catch{xt[t]=e}return e},vi=xt["__core-js_shared__"]||Dy("__core-js_shared__",{}),xy=Ra(function(t){(t.exports=function(e,n){return vi[e]||(vi[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),eV=xt.Object,Cy=function(t){return eV(Mh(t))},nV=ie({}.hasOwnProperty),Mn=Object.hasOwn||function(t,e){return nV(Cy(t),e)},rV=0,oV=Math.random(),iV=ie(1 .toString),hS=function(t){return"Symbol("+(t===void 0?"":t)+")_"+iV(++rV+oV,36)},Nc=xy("wks"),Ua=xt.Symbol,gS=Ua&&Ua.for,aV=yy?Ua:Ua&&Ua.withoutSetter||hS,Pn=function(t){if(!Mn(Nc,t)||!my&&typeof Nc[t]!="string"){var e="Symbol."+t;my&&Mn(Ua,t)?Nc[t]=Ua[t]:Nc[t]=yy&&gS?gS(e):aV(e)}return Nc[t]},uV=xt.TypeError,sV=Pn("toPrimitive"),Sy=function(t){var e=function(n,r){if(!Rr(n)||by(n))return n;var o,i=Ic(n,sV);if(i){if(r===void 0&&(r="default"),o=ln(i,n,r),!Rr(o)||by(o))return o;throw uV("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&He(s=a.toString)&&!Rr(l=ln(s,a))||He(s=a.valueOf)&&!Rr(l=ln(s,a))||u!=="string"&&He(s=a.toString)&&!Rr(l=ln(s,a)))return l;throw QH("Can't convert object to primitive value")}(n,r)}(t,"string");return by(e)?e:e+""},Ay=xt.document,lV=Rr(Ay)&&Rr(Ay.createElement),Oy=function(t){return lV?Ay.createElement(t):{}},vS=!ao&&!sn(function(){return Object.defineProperty(Oy("div"),"a",{get:function(){return 7}}).a!=7}),mS=Object.getOwnPropertyDescriptor,cV=ao?mS:function(t,e){if(t=xs(t),e=Sy(e),vS)try{return mS(t,e)}catch{}if(Mn(t,e))return gi(!ln(UH.f,t,e),t[e])},ky={f:cV},fV=xt.String,dV=xt.TypeError,Qn=function(t){if(Rr(t))return t;throw dV(fV(t)+" is not an object")},pV=xt.TypeError,yS=Object.defineProperty,hV=ao?yS:function(t,e,n){if(Qn(t),e=Sy(e),Qn(n),vS)try{return yS(t,e,n)}catch{}if("get"in n||"set"in n)throw pV("Accessors not supported");return"value"in n&&(t[e]=n.value),t},Cs={f:hV},zn=ao?function(t,e,n){return Cs.f(t,e,gi(1,n))}:function(t,e,n){return t[e]=n,t},gV=ie(Function.toString);He(vi.inspectSource)||(vi.inspectSource=function(t){return gV(t)});var $h,Lc,Hh,By=vi.inspectSource,bS=xt.WeakMap,vV=He(bS)&&/native code/.test(By(bS)),wS=xy("keys"),Fy=function(t){return wS[t]||(wS[t]=hS(t))},Ty={},_y=xt.TypeError,mV=xt.WeakMap;if(vV||vi.state){var Wa=vi.state||(vi.state=new mV),yV=ie(Wa.get),ES=ie(Wa.has),bV=ie(Wa.set);$h=function(t,e){if(ES(Wa,t))throw new _y("Object already initialized");return e.facade=t,bV(Wa,t,e),e},Lc=function(t){return yV(Wa,t)||{}},Hh=function(t){return ES(Wa,t)}}else{var Ss=Fy("state");Ty[Ss]=!0,$h=function(t,e){if(Mn(t,Ss))throw new _y("Object already initialized");return e.facade=t,zn(t,Ss,e),e},Lc=function(t){return Mn(t,Ss)?t[Ss]:{}},Hh=function(t){return Mn(t,Ss)}}var Ga={set:$h,get:Lc,has:Hh,enforce:function(t){return Hh(t)?Lc(t):$h(t,{})},getterFor:function(t){return function(e){var n;if(!Rr(e)||(n=Lc(e)).type!==t)throw _y("Incompatible receiver, "+t+" required");return n}}},DS=Function.prototype,wV=ao&&Object.getOwnPropertyDescriptor,Py=Mn(DS,"name"),jy={EXISTS:Py,PROPER:Py&&(function(){}).name==="something",CONFIGURABLE:Py&&(!ao||ao&&wV(DS,"name").configurable)},mi=Ra(function(t){var e=jy.CONFIGURABLE,n=Ga.get,r=Ga.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;He(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Mn(u,"name")||e&&u.name!==d)&&zn(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==xt?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:zn(i,a,u)):f?i[a]=u:Dy(a,u)})(Function.prototype,"toString",function(){return He(this)&&n(this).source||By(this)})}),EV=Math.ceil,DV=Math.floor,Iy=function(t){var e=+t;return e!=e||e===0?0:(e>0?DV:EV)(e)},xV=Math.max,CV=Math.min,Ny=function(t,e){var n=Iy(t);return n<0?xV(n+e,0):CV(n,e)},SV=Math.min,xS=function(t){return t>0?SV(Iy(t),9007199254740991):0},Vh=function(t){return xS(t.length)},CS=function(t){return function(e,n,r){var o,i=xs(e),a=Vh(i),u=Ny(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},AV=(CS(!0),CS(!1)),SS=ie([].push),AS=function(t,e){var n,r=xs(t),o=0,i=[];for(n in r)!Mn(Ty,n)&&Mn(r,n)&&SS(i,n);for(;e.length>o;)Mn(r,n=e[o++])&&(~AV(i,n)||SS(i,n));return i},Uh=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],OV=Uh.concat("length","prototype"),kV=Object.getOwnPropertyNames||function(t){return AS(t,OV)},BV={f:kV},FV={f:Object.getOwnPropertySymbols},TV=ie([].concat),_V=jc("Reflect","ownKeys")||function(t){var e=BV.f(Qn(t)),n=FV.f;return n?TV(e,n(t)):e},OS=function(t,e){for(var n=_V(e),r=Cs.f,o=ky.f,i=0;i<n.length;i++){var a=n[i];Mn(t,a)||r(t,a,o(e,a))}},PV=/#|\.prototype\./,Rc=function(t,e){var n=IV[jV(t)];return n==LV||n!=NV&&(He(e)?sn(e):!!e)},jV=Rc.normalize=function(t){return String(t).replace(PV,".").toLowerCase()},IV=Rc.data={},NV=Rc.NATIVE="N",LV=Rc.POLYFILL="P",RV=Rc,MV=ky.f,Mc=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?xt:l?xt[u]||Dy(u,{}):(xt[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=MV(n,r))&&a.value:n[r],!RV(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;OS(i,o)}(t.sham||o&&o.sham)&&zn(i,"sham",!0),mi(n,r,i,t)}},kS={};kS[Pn("toStringTag")]="z";var Wh,Ly=String(kS)==="[object z]",zV=Pn("toStringTag"),$V=xt.Object,HV=Va(function(){return arguments}())=="Arguments",Gh=Ly?Va:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=$V(t),zV))=="string"?n:HV?Va(e):(r=Va(e))=="Object"&&He(e.callee)?"Arguments":r},VV=xt.String,qa=function(t){if(Gh(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return VV(t)},UV=function(){var t=Qn(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},Ry=xt.RegExp,My=sn(function(){var t=Ry("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),WV=My||sn(function(){return!Ry("a","y").sticky}),GV=My||sn(function(){var t=Ry("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),qV={BROKEN_CARET:GV,MISSED_STICKY:WV,UNSUPPORTED_Y:My},KV=Object.keys||function(t){return AS(t,Uh)},XV=ao?Object.defineProperties:function(t,e){Qn(t);for(var n,r=xs(e),o=KV(e),i=o.length,a=0;i>a;)Cs.f(t,n=o[a++],r[n]);return t},YV=jc("document","documentElement"),BS=Fy("IE_PROTO"),zy=function(){},FS=function(t){return"<script>"+t+"<\/script>"},TS=function(t){t.write(FS("")),t.close();var e=t.parentWindow.Object;return t=null,e},qh=function(){try{Wh=new ActiveXObject("htmlfile")}catch{}var t,e;qh=typeof document<"u"?document.domain&&Wh?TS(Wh):((e=Oy("iframe")).style.display="none",YV.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(FS("document.F=Object")),t.close(),t.F):TS(Wh);for(var n=Uh.length;n--;)delete qh.prototype[Uh[n]];return qh()};Ty[BS]=!0;var _S,$y,zc=Object.create||function(t,e){var n;return t!==null?(zy.prototype=Qn(t),n=new zy,zy.prototype=null,n[BS]=t):n=qh(),e===void 0?n:XV(n,e)},JV=xt.RegExp,ZV=sn(function(){var t=JV(".","s");return!(t.dotAll&&t.exec(`
- `)&&t.flags==="s")}),QV=xt.RegExp,tU=sn(function(){var t=QV("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),eU=Ga.get,nU=xy("native-string-replace",String.prototype.replace),Kh=RegExp.prototype.exec,Hy=Kh,rU=ie("".charAt),oU=ie("".indexOf),iU=ie("".replace),Vy=ie("".slice),Uy=($y=/b*/g,ln(Kh,_S=/a/,"a"),ln(Kh,$y,"a"),_S.lastIndex!==0||$y.lastIndex!==0),PS=qV.BROKEN_CARET,Wy=/()??/.exec("")[1]!==void 0;(Uy||Wy||PS||ZV||tU)&&(Hy=function(t){var e,n,r,o,i,a,u,s=this,l=eU(s),c=qa(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=ln(Hy,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=PS&&s.sticky,g=ln(UV,s),v=s.source,m=0,y=c;if(d&&(g=iU(g,"y",""),oU(g,"g")===-1&&(g+="g"),y=Vy(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&rU(c,s.lastIndex-1)!==`
- `)&&(v="(?: "+v+")",y=" "+y,m++),n=new RegExp("^(?:"+v+")",g)),Wy&&(n=new RegExp("^"+v+"$(?!\\s)",g)),Uy&&(r=s.lastIndex),o=ln(Kh,d?n:s,y),d?o?(o.input=Vy(o.input,m),o[0]=Vy(o[0],m),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Uy&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Wy&&o&&o.length>1&&ln(nU,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=zc(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var Xh=Hy;Mc({target:"RegExp",proto:!0,forced:/./.exec!==Xh},{exec:Xh}),Pn("species");var jS=RegExp.prototype,aU=ie("".charAt),IS=ie("".charCodeAt),uU=ie("".slice),NS=function(t){return function(e,n){var r,o,i=qa(Mh(e)),a=Iy(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=IS(i,a))<55296||r>56319||a+1===u||(o=IS(i,a+1))<56320||o>57343?t?aU(i,a):r:t?uU(i,a,a+2):o-56320+(r-55296<<10)+65536}},LS={codeAt:NS(!1),charAt:NS(!0)},sU=LS.charAt,lU=function(t,e,n){return e+(n?sU(t,e).length:1)},cU=xt.TypeError,RS=function(t,e){var n=t.exec;if(He(n)){var r=ln(n,t,e);return r!==null&&Qn(r),r}if(Va(t)==="RegExp")return ln(Xh,t,e);throw cU("RegExp#exec called on incompatible receiver")};(function(t,e,n,r){var o=Pn(t),i=!sn(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!sn(function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a){var u=ie(/./[o]),s=function(l,c,f){return[function(p){var d=Mh(this),g=p==null?void 0:Ic(p,l);return g?ln(g,p,d):new RegExp(p)[l](qa(d))},function(p){var d=Qn(this),g=qa(p),v=f(c,d,g);if(v.done)return v.value;if(!d.global)return RS(d,g);var m=d.unicode;d.lastIndex=0;for(var y,h=[],b=0;(y=RS(d,g))!==null;){var w=qa(y[0]);h[b]=w,w===""&&(d.lastIndex=lU(g,xS(d.lastIndex),m)),b++}return b===0?null:h}]}(o,""[t],function(l,c,f,p,d){var g=ie(l),v=c.exec;return v===Xh||v===jS.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:g(f,c,p)}:{done:!1}});mi(String.prototype,t,s[0]),mi(jS,o,s[1])}})("match"),Mc({global:!0},{globalThis:xt});var fU=!sn(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),MS=Fy("IE_PROTO"),Gy=xt.Object,dU=Gy.prototype,$c=fU?Gy.getPrototypeOf:function(t){var e=Cy(t);if(Mn(e,MS))return e[MS];var n=e.constructor;return He(n)&&e instanceof n?n.prototype:e instanceof Gy?dU:null},pU=xt.String,hU=xt.TypeError,As=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=ie(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch{}return function(r,o){return Qn(r),function(i){if(typeof i=="object"||He(i))return i;throw hU("Can't set "+pU(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),gU=xt.Array,vU=Math.max,mU=ie("".replace),yU=ie("".split),bU=ie([].join),qy=String(Error("zxcasd").stack),zS=/\n\s*at [^:]*:[^\n]*/,wU=zS.test(qy),EU=/@[^\n]*\n/.test(qy)&&!/zxcasd/.test(qy),$S=ie(ie.bind),HS=function(t,e){return Ey(t),e===void 0?t:$S?$S(t,e):function(){return t.apply(e,arguments)}},Os={},DU=Pn("iterator"),xU=Array.prototype,CU=Pn("iterator"),VS=function(t){if(t!=null)return Ic(t,CU)||Ic(t,"@@iterator")||Os[Gh(t)]},SU=xt.TypeError,US=function(t,e,n){var r,o;Qn(t);try{if(!(r=Ic(t,"return"))){if(e==="throw")throw n;return n}r=ln(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return Qn(r),n},AU=xt.TypeError,Yh=function(t,e){this.stopped=t,this.result=e},WS=Yh.prototype,OU=!sn(function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",gi(1,7)),t.stack!==7)}),kU=Pn("toStringTag"),Jh=xt.Error,BU=[].push,Hc=function(t,e){var n,r=arguments.length>2?arguments[2]:void 0,o=zh(Ky,this);As?n=As(new Jh(void 0),o?$c(this):Ky):(n=o?this:zc(Ky),zn(n,kU,"Error")),zn(n,"message",function(a,u){return a===void 0?arguments.length<2?"":u:qa(a)}(e,"")),OU&&zn(n,"stack",function(a,u){if(typeof a!="string")return a;if(wU)for(;u--;)a=mU(a,zS,"");else if(EU)return bU(function(s,l,c){for(var f,p,d,g,v=Vh(s),m=Ny(l,v),y=Ny(v,v),h=gU(vU(y-m,0)),b=0;m<y;m++,b++)f=h,p=b,d=s[m],(g=Sy(p))in f?Cs.f(f,g,gi(0,d)):f[g]=d;return h.length=b,h}(yU(a,`
- `),u),`
- `);return a}(n.stack,1)),function(a,u){Rr(u)&&"cause"in u&&zn(a,"cause",u.cause)}(n,r);var i=[];return function(a,u,s){var l,c,f,p,d,g,v,m=s&&s.that,y=!(!s||!s.AS_ENTRIES),h=!(!s||!s.IS_ITERATOR),b=!(!s||!s.INTERRUPTED),w=HS(u,m),D=function(x){return l&&US(l,"normal",x),new Yh(!0,x)},C=function(x){return y?(Qn(x),b?w(x[0],x[1],D):w(x[0],x[1])):b?w(x,D):w(x)};if(h)l=a;else{if(!(c=VS(a)))throw AU(wy(a)+" is not iterable");if(function(x){return x!==void 0&&(Os.Array===x||xU[DU]===x)}(c)){for(f=0,p=Vh(a);p>f;f++)if((d=C(a[f]))&&zh(WS,d))return d;return new Yh(!1)}l=function(x,S){var F=arguments.length<2?VS(x):S;if(Ey(F))return Qn(ln(F,x));throw SU(wy(x)+" is not iterable")}(a,c)}for(g=l.next;!(v=ln(g,l)).done;){try{d=C(v.value)}catch(x){US(l,"throw",x)}if(typeof d=="object"&&d&&zh(WS,d))return d}new Yh(!1)}(t,BU,{that:i}),zn(n,"errors",i),n};As?As(Hc,Jh):OS(Hc,Jh);var Ky=Hc.prototype=zc(Jh.prototype,{constructor:gi(1,Hc),message:gi(1,""),name:gi(1,"AggregateError")});Mc({global:!0},{AggregateError:Hc});var Xy=Pn("unscopables"),Yy=Array.prototype;Yy[Xy]==null&&Cs.f(Yy,Xy,{configurable:!0,value:zc(null)});var Ka,GS,qS,Jy=function(t){Yy[Xy][t]=!0},Zy=Pn("iterator"),KS=!1;[].keys&&("next"in(qS=[].keys())?(GS=$c($c(qS)))!==Object.prototype&&(Ka=GS):KS=!0);var FU=Ka==null||sn(function(){var t={};return Ka[Zy].call(t)!==t});FU&&(Ka={}),He(Ka[Zy])||mi(Ka,Zy,function(){return this});var Qy={IteratorPrototype:Ka,BUGGY_SAFARI_ITERATORS:KS},TU=Cs.f,XS=Pn("toStringTag"),YS=function(t,e,n){t&&!Mn(t=n?t:t.prototype,XS)&&TU(t,XS,{configurable:!0,value:e})},_U=Qy.IteratorPrototype,PU=function(){return this},jU=jy.PROPER,IU=jy.CONFIGURABLE,JS=Qy.IteratorPrototype,Zh=Qy.BUGGY_SAFARI_ITERATORS,Vc=Pn("iterator"),NU=function(){return this},ZS=function(t,e,n,r,o,i,a){(function(y,h,b,w){var D=h+" Iterator";y.prototype=zc(_U,{next:gi(1,b)}),YS(y,D,!1),Os[D]=PU})(n,e,r);var u,s,l,c=function(y){if(y===o&&v)return v;if(!Zh&&y in d)return d[y];switch(y){case"keys":case"values":case"entries":return function(){return new n(this,y)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,g=d[Vc]||d["@@iterator"]||o&&d[o],v=!Zh&&g||c(o),m=e=="Array"&&d.entries||g;if(m&&(u=$c(m.call(new t)))!==Object.prototype&&u.next&&($c(u)!==JS&&(As?As(u,JS):He(u[Vc])||mi(u,Vc,NU)),YS(u,f,!0)),jU&&o=="values"&&g&&g.name!=="values"&&(IU?zn(d,"name","values"):(p=!0,v=function(){return ln(g,this)})),o)if(s={values:c("values"),keys:i?v:c("keys"),entries:c("entries")},a)for(l in s)(Zh||p||!(l in d))&&mi(d,l,s[l]);else Mc({target:e,proto:!0,forced:Zh||p},s);return d[Vc]!==v&&mi(d,Vc,v,{name:o}),Os[e]=v,s},LU=Ga.set,RU=Ga.getterFor("Array Iterator"),Uc=ZS(Array,"Array",function(t,e){LU(this,{type:"Array Iterator",target:xs(t),index:0,kind:e})},function(){var t=RU(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");Os.Arguments=Os.Array,Jy("keys"),Jy("values"),Jy("entries");var MU=LS.charAt,zU=Ga.set,$U=Ga.getterFor("String Iterator");ZS(String,"String",function(t){zU(this,{type:"String Iterator",string:qa(t),index:0})},function(){var t,e=$U(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=MU(n,r),e.index+=t.length,{value:t,done:!1})});var tb,Qh={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},eb=Oy("span").classList,QS=eb&&eb.constructor&&eb.constructor.prototype,tA=QS===Object.prototype?void 0:QS,nb=Pn("iterator"),eA=Pn("toStringTag"),rb=Uc.values,nA=function(t,e){if(t){if(t[nb]!==rb)try{zn(t,nb,rb)}catch{t[nb]=rb}if(t[eA]||zn(t,eA,e),Qh[e]){for(var n in Uc)if(t[n]!==Uc[n])try{zn(t,n,Uc[n])}catch{t[n]=Uc[n]}}}};for(var ob in Qh)nA(xt[ob]&&xt[ob].prototype,ob);function rA(){typeof globalThis>"u"&&(window.globalThis=window)}function oA(){HH===void 0&&(window.AggregateError=function(t,e){var n=new Error(e);return n.errors=t,n})}nA(tA,"DOMTokenList"),typeof global>"u"?("ActiveXObject"in window&&console.error(`\u62B1\u6B49\uFF0CwangEditor V5+ \u7248\u672C\u5F00\u59CB\uFF0C\u4E0D\u5728\u652F\u6301 IE \u6D4F\u89C8\u5668
- Sorry, wangEditor V5+ versions do not support IE browser.`),rA(),oA()):global&&(!((tb=global.navigator)===null||tb===void 0)&&tb.userAgent.match("QQBrowser"))&&(rA(),oA());var t0=Array.isArray||function(t){return Ma(t)=="Array"},iA=function(){},HU=[],aA=ms("Reflect","construct"),ib=/^\s*(?:class|function)\b/,VU=he(ib.exec),UU=!ib.exec(iA),Wc=function(t){if(!un(t))return!1;try{return aA(iA,HU,t),!0}catch{return!1}},WU=!aA||Nn(function(){var t;return Wc(Wc.call)||!Wc(Object)||!Wc(function(){t=!0})||t})?function(t){if(!un(t))return!1;switch(Bc(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return UU||!!VU(ib,WC(t))}:Wc,GU=En("species"),uA=kt.Array,sA=function(t,e){return new(function(n){var r;return t0(n)&&(r=n.constructor,(WU(r)&&(r===uA||t0(r.prototype))||Yn(r)&&(r=r[GU])===null)&&(r=void 0)),r===void 0?uA:r}(t))(e===0?0:e)},qU=En("species"),lA=En("isConcatSpreadable"),cA=kt.TypeError,KU=Eh>=51||!Nn(function(){var t=[];return t[lA]=!1,t.concat()[0]!==t}),XU=Eh>=51||!Nn(function(){var t=[];return(t.constructor={})[qU]=function(){return{foo:1}},t.concat(Boolean).foo!==1}),YU=function(t){if(!Yn(t))return!1;var e=t[lA];return e!==void 0?!!e:t0(t)};No({target:"Array",proto:!0,forced:!KU||!XU},{concat:function(t){var e,n,r,o,i,a=Cc(this),u=sA(a,0),s=0;for(e=-1,r=arguments.length;e<r;e++)if(YU(i=e===-1?a:arguments[e])){if(s+(o=Oc(i))>9007199254740991)throw cA("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&ry(u,s,i[n])}else{if(s>=9007199254740991)throw cA("Maximum allowed index exceeded");ry(u,s++,i)}return u.length=s,u}});var fA=ty.f,dA=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],pA={f:function(t){return dA&&Ma(t)=="Window"?function(e){try{return fA(e)}catch{return MC(dA)}}(t):fA(oo(t))}},JU=he([].slice),ab={f:En},ZU=di.f,Ie=function(t){var e=Jn.Symbol||(Jn.Symbol={});Ht(e,t)||ZU(e,t,{value:ab.f(t)})},hA=he([].push),yi=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,g=Cc(s),v=bC(g),m=Ym(l,c),y=Oc(v),h=0,b=f||sA,w=e?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in v)&&(d=m(p=v[h],h,g),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:hA(w,p)}else switch(t){case 4:return!1;case 7:hA(w,p)}return i?-1:r||o?o:w}},e0=[yi(0),yi(1),yi(2),yi(3),yi(4),yi(5),yi(6),yi(7)][0],$n=Sh("hidden"),gA=En("toPrimitive"),QU=Es.set,vA=Es.getterFor("Symbol"),Mr=Object.prototype,bi=kt.Symbol,wi=bi&&bi.prototype,mA=kt.TypeError,ub=kt.QObject,Gc=ms("JSON","stringify"),yA=Ch.f,Ei=di.f,bA=pA.f,tW=Hm.f,wA=he([].push),Mo=za("symbols"),qc=za("op-symbols"),sb=za("string-to-symbol-registry"),lb=za("symbol-to-string-registry"),eW=za("wks"),cb=!ub||!ub.prototype||!ub.prototype.findChild,fb=Ln&&Nn(function(){return Lo(Ei({},"a",{get:function(){return Ei(this,"a",{value:7}).a}})).a!=7})?function(t,e,n){var r=yA(Mr,e);r&&delete Mr[e],Ei(t,e,n),r&&t!==Mr&&Ei(Mr,e,r)}:Ei,db=function(t,e){var n=Mo[t]=Lo(wi);return QU(n,{type:"Symbol",tag:t,description:e}),Ln||(n.description=e),n},n0=function(t,e,n){t===Mr&&n0(qc,e,n),Zn(t);var r=bs(e);return Zn(n),Ht(Mo,r)?(n.enumerable?(Ht(t,$n)&&t[$n][r]&&(t[$n][r]=!1),n=Lo(n,{enumerable:Lr(0,!1)})):(Ht(t,$n)||Ei(t,$n,Lr(1,{})),t[$n][r]=!0),fb(t,r,n)):Ei(t,r,n)},EA=function(t,e){Zn(t);var n=oo(e),r=ey(n).concat(pb(n));return e0(r,function(o){Ln&&!Rn(DA,n,o)||n0(t,o,n[o])}),t},DA=function(t){var e=bs(t),n=Rn(tW,this,e);return!(this===Mr&&Ht(Mo,e)&&!Ht(qc,e))&&(!(n||!Ht(this,e)||!Ht(Mo,e)||Ht(this,$n)&&this[$n][e])||n)},xA=function(t,e){var n=oo(t),r=bs(e);if(n!==Mr||!Ht(Mo,r)||Ht(qc,r)){var o=yA(n,r);return!o||!Ht(Mo,r)||Ht(n,$n)&&n[$n][r]||(o.enumerable=!0),o}},CA=function(t){var e=bA(oo(t)),n=[];return e0(e,function(r){Ht(Mo,r)||Ht(kc,r)||wA(n,r)}),n},pb=function(t){var e=t===Mr,n=bA(e?qc:oo(t)),r=[];return e0(n,function(o){!Ht(Mo,o)||e&&!Ht(Mr,o)||wA(r,Mo[o])}),r};if(io||(wi=(bi=function(){if(xc(wi,this))throw mA("Symbol is not a constructor");var t=arguments.length&&arguments[0]!==void 0?Fc(arguments[0]):void 0,e=xh(t),n=function(r){this===Mr&&Rn(n,qc,r),Ht(this,$n)&&Ht(this[$n],e)&&(this[$n][e]=!1),fb(this,e,Lr(1,r))};return Ln&&cb&&fb(Mr,e,{configurable:!0,set:n}),db(e,t)}).prototype,Ds(wi,"toString",function(){return vA(this).tag}),Ds(bi,"withoutSetter",function(t){return db(xh(t),t)}),Hm.f=DA,di.f=n0,Ch.f=xA,ty.f=pA.f=CA,Bh.f=pb,ab.f=function(t){return db(En(t),t)},Ln&&Ei(wi,"description",{configurable:!0,get:function(){return vA(this).description}})),No({global:!0,wrap:!0,forced:!io,sham:!io},{Symbol:bi}),e0(ey(eW),function(t){Ie(t)}),No({target:"Symbol",stat:!0,forced:!io},{for:function(t){var e=Fc(t);if(Ht(sb,e))return sb[e];var n=bi(e);return sb[e]=n,lb[n]=e,n},keyFor:function(t){if(!ys(t))throw mA(t+" is not a symbol");if(Ht(lb,t))return lb[t]},useSetter:function(){cb=!0},useSimple:function(){cb=!1}}),No({target:"Object",stat:!0,forced:!io,sham:!Ln},{create:function(t,e){return e===void 0?Lo(t):EA(Lo(t),e)},defineProperty:n0,defineProperties:EA,getOwnPropertyDescriptor:xA}),No({target:"Object",stat:!0,forced:!io},{getOwnPropertyNames:CA,getOwnPropertySymbols:pb}),No({target:"Object",stat:!0,forced:Nn(function(){Bh.f(1)})},{getOwnPropertySymbols:function(t){return Bh.f(Cc(t))}}),Gc){var nW=!io||Nn(function(){var t=bi();return Gc([t])!="[null]"||Gc({a:t})!="{}"||Gc(Object(t))!="{}"});No({target:"JSON",stat:!0,forced:nW},{stringify:function(t,e,n){var r=JU(arguments),o=e;if((Yn(e)||t!==void 0)&&!ys(t))return t0(e)||(e=function(i,a){if(un(o)&&(a=Rn(o,this,i,a)),!ys(a))return a}),r[1]=e,gC(Gc,null,r)}})}if(!wi[gA]){var rW=wi.valueOf;Ds(wi,gA,function(t){return Rn(rW,this)})}Ih(bi,"Symbol"),kc[$n]=!0,Ie("asyncIterator"),Ie("hasInstance"),Ie("isConcatSpreadable"),Ie("iterator"),Ie("match"),Ie("matchAll"),Ie("replace"),Ie("search"),Ie("species"),Ie("split"),Ie("toPrimitive"),Ie("toStringTag"),Ie("unscopables"),Ih(kt.JSON,"JSON",!0);var oW=Jn.Symbol;Ie("asyncDispose"),Ie("dispose"),Ie("matcher"),Ie("metadata"),Ie("observable"),Ie("patternMatch"),Ie("replaceAll");var r0=oW,iW=ab.f("iterator"),aW=Ra(function(t){function e(n){return typeof r0=="function"&&typeof iW=="symbol"?(t.exports=e=function(r){return typeof r},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(r){return r&&typeof r0=="function"&&r.constructor===r0&&r!==r0.prototype?"symbol":typeof r},t.exports.default=t.exports,t.exports.__esModule=!0),e(n)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0}),uW=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}(aW),SA=ky.f,sW=sn(function(){SA(1)});if(Mc({target:"Object",stat:!0,forced:!ao||sW,sham:!ao},{getOwnPropertyDescriptor:function(t,e){return SA(xs(t),e)}}),(typeof global>"u"?"undefined":uW(global))==="object"){var lW=Object.getOwnPropertyDescriptor(global,"window");global.window&&!lW.set||(global.window=global,global.requestAnimationFrame=function(){},global.navigator={userAgent:""},global.location={hostname:"0.0.0.0",port:0,protocol:"http:"},global.btoa=function(){},global.crypto={getRandomValues:function(t){return nodeCrypto.randomFillSync(t)}}),global.document!=null&&global.document.getElementsByTagName==null&&(global.document.getElementsByTagName=function(){return[]})}function AA(t){return Object.prototype.toString.call(t)==="[object Object]"}function Dn(t){var e,n;return AA(t)!==!1&&((e=t.constructor)===void 0||AA(n=e.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1)}function zr(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(n.length?" "+n.map(function(o){return"'"+o+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Xa(t){return!!t&&!!t[tr]}function Ya(t){return!!t&&(function(e){if(!e||typeof e!="object")return!1;var n=Object.getPrototypeOf(e);if(n===null)return!0;var r=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return r===Object||typeof r=="function"&&Function.toString.call(r)===hW}(t)||Array.isArray(t)||!!t[NA]||!!t.constructor[NA]||gb(t)||vb(t))}function Kc(t,e,n){n===void 0&&(n=!1),ks(t)===0?(n?Object.keys:kb)(t).forEach(function(r){n&&typeof r=="symbol"||e(r,t[r],t)}):t.forEach(function(r,o){return e(o,r,t)})}function ks(t){var e=t[tr];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:gb(t)?2:vb(t)?3:0}function hb(t,e){return ks(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function OA(t,e,n){var r=ks(t);r===2?t.set(e,n):r===3?(t.delete(e),t.add(n)):t[e]=n}function gb(t){return dW&&t instanceof Map}function vb(t){return pW&&t instanceof Set}function Ja(t){return t.o||t.t}function mb(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=gW(t);delete e[tr];for(var n=kb(e),r=0;r<n.length;r++){var o=n[r],i=e[o];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function yb(t,e){return e===void 0&&(e=!1),bb(t)||Xa(t)||!Ya(t)||(ks(t)>1&&(t.set=t.add=t.clear=t.delete=cW),Object.freeze(t),e&&Kc(t,function(n,r){return yb(r,!0)},!0)),t}function cW(){zr(2)}function bb(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function zo(t){var e=vW[t];return e||zr(18,t),e}function kA(){return Xc}function wb(t,e){e&&(zo("Patches"),t.u=[],t.s=[],t.v=e)}function o0(t){Eb(t),t.p.forEach(fW),t.p=null}function Eb(t){t===Xc&&(Xc=t.l)}function BA(t){return Xc={p:[],l:Xc,h:t,m:!0,_:0}}function fW(t){var e=t[tr];e.i===0||e.i===1?e.j():e.O=!0}function Db(t,e){e._=e.p.length;var n=e.p[0],r=t!==void 0&&t!==n;return e.h.g||zo("ES5").S(e,t,r),r?(n[tr].P&&(o0(e),zr(4)),Ya(t)&&(t=i0(e,t),e.l||a0(e,t)),e.u&&zo("Patches").M(n[tr],t,e.u,e.s)):t=i0(e,n,[]),o0(e),e.u&&e.v(e.u,e.s),t!==IA?t:void 0}function i0(t,e,n){if(bb(e))return e;var r=e[tr];if(!r)return Kc(e,function(i,a){return FA(t,r,e,i,a,n)},!0),e;if(r.A!==t)return e;if(!r.P)return a0(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=mb(r.k):r.o;Kc(r.i===3?new Set(o):o,function(i,a){return FA(t,r,o,i,a,n)}),a0(t,o,!1),n&&t.u&&zo("Patches").R(r,n,t.u,t.s)}return r.o}function FA(t,e,n,r,o,i){if(Xa(o)){var a=i0(t,o,i&&e&&e.i!==3&&!hb(e.D,r)?i.concat(r):void 0);if(OA(n,r,a),!Xa(a))return;t.m=!1}if(Ya(o)&&!bb(o)){if(!t.h.F&&t._<1)return;i0(t,o),e&&e.A.l||a0(t,o)}}function a0(t,e,n){n===void 0&&(n=!1),t.h.F&&t.m&&yb(e,n)}function xb(t,e){var n=t[tr];return(n?Ja(n):t)[e]}function TA(t,e){if(e in t)for(var n=Object.getPrototypeOf(t);n;){var r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=Object.getPrototypeOf(n)}}function Cb(t){t.P||(t.P=!0,t.l&&Cb(t.l))}function Sb(t){t.o||(t.o=mb(t.t))}function Ab(t,e,n){var r=gb(e)?zo("MapSet").N(e,n):vb(e)?zo("MapSet").T(e,n):t.g?function(o,i){var a=Array.isArray(o),u={i:a?1:0,A:i?i.A:kA(),P:!1,I:!1,D:{},l:i,t:o,k:null,o:null,j:null,C:!1},s=u,l=u0;a&&(s=[u],l=s0);var c=Proxy.revocable(s,l),f=c.revoke,p=c.proxy;return u.k=p,u.j=f,p}(e,n):zo("ES5").J(e,n);return(n?n.A:kA()).p.push(r),r}function _A(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return mb(t)}var PA,Xc,Ob=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",dW=typeof Map<"u",pW=typeof Set<"u",jA=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",IA=Ob?Symbol.for("immer-nothing"):((PA={})["immer-nothing"]=!0,PA),NA=Ob?Symbol.for("immer-draftable"):"__$immer_draftable",tr=Ob?Symbol.for("immer-state"):"__$immer_state",hW=""+Object.prototype.constructor,kb=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,gW=Object.getOwnPropertyDescriptors||function(t){var e={};return kb(t).forEach(function(n){e[n]=Object.getOwnPropertyDescriptor(t,n)}),e},vW={},u0={get:function(t,e){if(e===tr)return t;var n=Ja(t);if(!hb(n,e))return function(o,i,a){var u,s=TA(i,a);return s?"value"in s?s.value:(u=s.get)===null||u===void 0?void 0:u.call(o.k):void 0}(t,n,e);var r=n[e];return t.I||!Ya(r)?r:r===xb(t.t,e)?(Sb(t),t.o[e]=Ab(t.A.h,r,t)):r},has:function(t,e){return e in Ja(t)},ownKeys:function(t){return Reflect.ownKeys(Ja(t))},set:function(t,e,n){var r=TA(Ja(t),e);if(r!=null&&r.set)return r.set.call(t.k,n),!0;if(!t.P){var o=xb(Ja(t),e),i=o==null?void 0:o[tr];if(i&&i.t===n)return t.o[e]=n,t.D[e]=!1,!0;if(function(a,u){return a===u?a!==0||1/a==1/u:a!=a&&u!=u}(n,o)&&(n!==void 0||hb(t.t,e)))return!0;Sb(t),Cb(t)}return t.o[e]===n&&typeof n!="number"&&(n!==void 0||e in t.o)||(t.o[e]=n,t.D[e]=!0,!0)},deleteProperty:function(t,e){return xb(t.t,e)!==void 0||e in t.t?(t.D[e]=!1,Sb(t),Cb(t)):delete t.D[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var n=Ja(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:r.enumerable,value:n[e]}},defineProperty:function(){zr(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){zr(12)}},s0={};Kc(u0,function(t,e){s0[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),s0.deleteProperty=function(t,e){return u0.deleteProperty.call(this,t[0],e)},s0.set=function(t,e,n){return u0.set.call(this,t[0],e,n,t[0])};var mW=function(){function t(n){var r=this;this.g=jA,this.F=!0,this.produce=function(o,i,a){if(typeof o=="function"&&typeof i!="function"){var u=i;i=o;var s=r;return function(d){var g=this;d===void 0&&(d=u);for(var v=arguments.length,m=Array(v>1?v-1:0),y=1;y<v;y++)m[y-1]=arguments[y];return s.produce(d,function(h){var b;return(b=i).call.apply(b,[g,h].concat(m))})}}var l;if(typeof i!="function"&&zr(6),a!==void 0&&typeof a!="function"&&zr(7),Ya(o)){var c=BA(r),f=Ab(r,o,void 0),p=!0;try{l=i(f),p=!1}finally{p?o0(c):Eb(c)}return typeof Promise<"u"&&l instanceof Promise?l.then(function(d){return wb(c,a),Db(d,c)},function(d){throw o0(c),d}):(wb(c,a),Db(l,c))}if(!o||typeof o!="object")return(l=i(o))===IA?void 0:(l===void 0&&(l=o),r.F&&yb(l,!0),l);zr(21,o)},this.produceWithPatches=function(o,i){return typeof o=="function"?function(s){for(var l=arguments.length,c=Array(l>1?l-1:0),f=1;f<l;f++)c[f-1]=arguments[f];return r.produceWithPatches(s,function(p){return o.apply(void 0,[p].concat(c))})}:[r.produce(o,i,function(s,l){a=s,u=l}),a,u];var a,u},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var e=t.prototype;return e.createDraft=function(n){Ya(n)||zr(8),Xa(n)&&(n=function(i){return Xa(i)||zr(22,i),function a(u){if(!Ya(u))return u;var s,l=u[tr],c=ks(u);if(l){if(!l.P&&(l.i<4||!zo("ES5").K(l)))return l.t;l.I=!0,s=_A(u,c),l.I=!1}else s=_A(u,c);return Kc(s,function(f,p){l&&function(d,g){return ks(d)===2?d.get(g):d[g]}(l.t,f)===p||OA(s,f,a(p))}),c===3?new Set(s):s}(i)}(n));var r=BA(this),o=Ab(this,n,void 0);return o[tr].C=!0,Eb(r),o},e.finishDraft=function(n,r){var o=(n&&n[tr]).A;return wb(o,r),Db(void 0,o)},e.setAutoFreeze=function(n){this.F=n},e.setUseProxies=function(n){n&&!jA&&zr(20),this.g=n},e.applyPatches=function(n,r){var o;for(o=r.length-1;o>=0;o--){var i=r[o];if(i.path.length===0&&i.op==="replace"){n=i.value;break}}o>-1&&(r=r.slice(o+1));var a=zo("Patches").$;return Xa(n)?a(n,r):this.produce(n,function(u){return a(u,r)})},t}(),er=new mW,l0=er.produce;er.produceWithPatches.bind(er),er.setAutoFreeze.bind(er),er.setUseProxies.bind(er),er.applyPatches.bind(er);var LA=er.createDraft.bind(er),RA=er.finishDraft.bind(er);function uo(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c0=new WeakMap,Yc=new WeakMap,MA=new WeakMap,zA=new WeakMap,$A=new WeakMap,HA=new WeakMap;function VA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function f0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?VA(Object(n),!0).forEach(function(r){uo(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):VA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var yW=()=>{var t={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:e=>{for(var n of E.pathRefs(t))KW.transform(n,e);for(var r of E.pointRefs(t))XW.transform(r,e);for(var o of E.rangeRefs(t))JW.transform(o,e);var i=new Set,a=[],u=p=>{if(p){var d=p.join(",");i.has(d)||(i.add(d),a.push(p))}},s=c0.get(t)||[],l=bW(e);for(var c of s)u(_.transform(c,e));for(var f of l)u(f);c0.set(t,a),I.transform(t,e),t.operations.push(e),E.normalize(t),e.type==="set_selection"&&(t.marks=null),Yc.get(t)||(Yc.set(t,!0),Promise.resolve().then(()=>{Yc.set(t,!1),t.onChange(),t.operations=[]}))},addMark:(e,n)=>{var{selection:r}=t;if(r)if(L.isExpanded(r))I.setNodes(t,{[e]:n},{match:ot.isText,split:!0});else{var o=f0(f0({},E.marks(t)||{}),{},{[e]:n});t.marks=o,Yc.get(t)||t.onChange()}},deleteBackward:e=>{var{selection:n}=t;n&&L.isCollapsed(n)&&I.delete(t,{unit:e,reverse:!0})},deleteForward:e=>{var{selection:n}=t;n&&L.isCollapsed(n)&&I.delete(t,{unit:e})},deleteFragment:e=>{var{selection:n}=t;n&&L.isExpanded(n)&&I.delete(t,{reverse:e==="backward"})},getFragment:()=>{var{selection:e}=t;return e?tt.fragment(t,e):[]},insertBreak:()=>{I.splitNodes(t,{always:!0})},insertFragment:e=>{I.insertFragment(t,e)},insertNode:e=>{I.insertNodes(t,e)},insertText:e=>{var{selection:n,marks:r}=t;if(n){if(r){var o=f0({text:e},r);I.insertNodes(t,o)}else I.insertText(t,e);t.marks=null}},normalizeNode:e=>{var[n,r]=e;if(!ot.isText(n))if(ct.isElement(n)&&n.children.length===0)I.insertNodes(t,{text:""},{at:r.concat(0),voids:!0});else for(var o=!E.isEditor(n)&&ct.isElement(n)&&(t.isInline(n)||n.children.length===0||ot.isText(n.children[0])||t.isInline(n.children[0])),i=0,a=0;a<n.children.length;a++,i++){var u=tt.get(t,r);if(!ot.isText(u)){var s=n.children[a],l=u.children[i-1],c=a===n.children.length-1;(ot.isText(s)||ct.isElement(s)&&t.isInline(s))!==o?(I.removeNodes(t,{at:r.concat(i),voids:!0}),i--):ct.isElement(s)?t.isInline(s)&&(l!=null&&ot.isText(l)?c&&(I.insertNodes(t,{text:""},{at:r.concat(i+1),voids:!0}),i++):(I.insertNodes(t,{text:""},{at:r.concat(i),voids:!0}),i++)):l!=null&&ot.isText(l)&&(ot.equals(s,l,{loose:!0})?(I.mergeNodes(t,{at:r.concat(i),voids:!0}),i--):l.text===""?(I.removeNodes(t,{at:r.concat(i-1),voids:!0}),i--):s.text===""&&(I.removeNodes(t,{at:r.concat(i),voids:!0}),i--))}}},removeMark:e=>{var{selection:n}=t;if(n)if(L.isExpanded(n))I.unsetNodes(t,e,{match:ot.isText,split:!0});else{var r=f0({},E.marks(t)||{});delete r[e],t.marks=r,Yc.get(t)||t.onChange()}}};return t},bW=t=>{switch(t.type){case"insert_text":case"remove_text":case"set_node":var{path:e}=t;return _.levels(e);case"insert_node":var{node:n,path:r}=t,o=_.levels(r),i=ot.isText(n)?[]:Array.from(tt.nodes(n),w=>{var[,D]=w;return r.concat(D)});return[...o,...i];case"merge_node":var{path:a}=t;return[..._.ancestors(a),_.previous(a)];case"move_node":var{path:u,newPath:s}=t;if(_.equals(u,s))return[];var l=[],c=[];for(var f of _.ancestors(u)){var p=_.transform(f,t);l.push(p)}for(var d of _.ancestors(s)){var g=_.transform(d,t);c.push(g)}var v=c[c.length-1],m=s[s.length-1],y=v.concat(m);return[...l,...c,y];case"remove_node":var{path:h}=t;return[..._.ancestors(h)];case"split_node":var{path:b}=t;return[..._.levels(b),_.next(b)];default:return[]}};function $o(t,e){if(t==null)return{};var n,r,o=function(a,u){if(a==null)return{};var s,l,c={},f=Object.keys(a);for(l=0;l<f.length;l++)s=f[l],u.indexOf(s)>=0||(c[s]=a[s]);return c}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var At,Bb=function(t){var e=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=!e,r=e?CW(t):t,o=At.None,i=At.None,a=0,u=null;for(var s of r){var l=s.codePointAt(0);if(!l)break;var c=NW(s,l);if([o,i]=n?[i,c]:[c,o],Bs(o,At.ZWJ)&&Bs(i,At.ExtPict)&&!zW(n?t.substring(0,a):t.substring(0,t.length-a))||Bs(o,At.RI)&&Bs(i,At.RI)&&!(u=u!==null?!u:!!n||HW(t.substring(0,t.length-a)))||o!==At.None&&i!==At.None&&RW(o,i))break;a+=s.length}return a||1},wW=/\s/,EW=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,DW=/['\u2018\u2019]/,Fb=(t,e,n)=>{if(n){var r=t.length-e;return[t.slice(r,t.length),t.slice(0,r)]}return[t.slice(0,e),t.slice(e)]},xW=function t(e,n){var r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(wW.test(e))return!1;if(DW.test(e)){var o=Bb(n,r),[i,a]=Fb(n,o,r);if(t(i,a,r))return!0}return!EW.test(e)},CW=function*(t){for(var e=t.length-1,n=0;n<t.length;n++){var r=t.charAt(e-n);if(AW(r.charCodeAt(0))){var o=t.charAt(e-n-1);if(SW(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},SW=t=>t>=55296&&t<=56319,AW=t=>t>=56320&&t<=57343;(function(t){t[t.None=0]="None",t[t.Extend=1]="Extend",t[t.ZWJ=2]="ZWJ",t[t.RI=4]="RI",t[t.Prepend=8]="Prepend",t[t.SpacingMark=16]="SpacingMark",t[t.L=32]="L",t[t.V=64]="V",t[t.T=128]="T",t[t.LV=256]="LV",t[t.LVT=512]="LVT",t[t.ExtPict=1024]="ExtPict",t[t.Any=2048]="Any"})(At||(At={}));var OW=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,kW=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,BW=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,FW=/^[\u1100-\u115F\uA960-\uA97C]$/,TW=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,_W=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,PW=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,jW=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,IW=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,NW=(t,e)=>{var n=At.Any;return t.search(OW)!==-1&&(n|=At.Extend),e===8205&&(n|=At.ZWJ),e>=127462&&e<=127487&&(n|=At.RI),t.search(kW)!==-1&&(n|=At.Prepend),t.search(BW)!==-1&&(n|=At.SpacingMark),t.search(FW)!==-1&&(n|=At.L),t.search(TW)!==-1&&(n|=At.V),t.search(_W)!==-1&&(n|=At.T),t.search(PW)!==-1&&(n|=At.LV),t.search(jW)!==-1&&(n|=At.LVT),t.search(IW)!==-1&&(n|=At.ExtPict),n};function Bs(t,e){return(t&e)!=0}var LW=[[At.L,At.L|At.V|At.LV|At.LVT],[At.LV|At.V,At.V|At.T],[At.LVT|At.T,At.T],[At.Any,At.Extend|At.ZWJ],[At.Any,At.SpacingMark],[At.Prepend,At.Any],[At.ZWJ,At.ExtPict],[At.RI,At.RI]];function RW(t,e){return LW.findIndex(n=>Bs(t,n[0])&&Bs(e,n[1]))===-1}var MW=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,zW=t=>t.search(MW)!==-1,$W=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,HW=t=>{var e=t.match($W);return e!==null&&e[0].length/2%2==1},UA=t=>Dn(t)&&tt.isNodeList(t.children)&&!E.isEditor(t),ct={isAncestor:t=>Dn(t)&&tt.isNodeList(t.children),isElement:UA,isElementList:t=>Array.isArray(t)&&t.every(e=>ct.isElement(e)),isElementProps:t=>t.children!==void 0,isElementType:function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return UA(t)&&t[n]===e},matches(t,e){for(var n in e)if(n!=="children"&&t[n]!==e[n])return!1;return!0}},VW=["text"],UW=["text"];function WA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Fs(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?WA(Object(n),!0).forEach(function(r){uo(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):WA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var GA=new WeakMap,E={above(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:o=t.selection,match:i}=e;if(o){var a=E.path(t,o),u=r==="lowest";for(var[s,l]of E.levels(t,{at:a,voids:n,match:i,reverse:u}))if(!ot.isText(s)&&!_.equals(a,l))return[s,l]}},addMark(t,e,n){t.addMark(e,n)},after(t,e){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:E.point(t,e,{edge:"end"}),focus:E.end(t,[])},{distance:i=1}=r,a=0;for(var u of E.positions(t,Fs(Fs({},r),{},{at:o}))){if(a>i)break;a!==0&&(n=u),a++}return n},before(t,e){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:E.start(t,[]),focus:E.point(t,e,{edge:"start"})},{distance:i=1}=r,a=0;for(var u of E.positions(t,Fs(Fs({},r),{},{at:o,reverse:!0}))){if(a>i)break;a!==0&&(n=u),a++}return n},deleteBackward(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=e;t.deleteBackward(n)},deleteForward(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=e;t.deleteForward(n)},deleteFragment(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{direction:n="forward"}=e;t.deleteFragment(n)},edges:(t,e)=>[E.start(t,e),E.end(t,e)],end:(t,e)=>E.point(t,e,{edge:"end"}),first(t,e){var n=E.path(t,e,{edge:"start"});return E.node(t,n)},fragment(t,e){var n=E.range(t,e);return tt.fragment(t,n)},hasBlocks:(t,e)=>e.children.some(n=>E.isBlock(t,n)),hasInlines:(t,e)=>e.children.some(n=>ot.isText(n)||E.isInline(t,n)),hasTexts:(t,e)=>e.children.every(n=>ot.isText(n)),insertBreak(t){t.insertBreak()},insertFragment(t,e){t.insertFragment(e)},insertNode(t,e){t.insertNode(e)},insertText(t,e){t.insertText(e)},isBlock:(t,e)=>ct.isElement(e)&&!t.isInline(e),isEditor(t){if(!Dn(t))return!1;var e=GA.get(t);if(e!==void 0)return e;var n=typeof t.addMark=="function"&&typeof t.apply=="function"&&typeof t.deleteBackward=="function"&&typeof t.deleteForward=="function"&&typeof t.deleteFragment=="function"&&typeof t.insertBreak=="function"&&typeof t.insertFragment=="function"&&typeof t.insertNode=="function"&&typeof t.insertText=="function"&&typeof t.isInline=="function"&&typeof t.isVoid=="function"&&typeof t.normalizeNode=="function"&&typeof t.onChange=="function"&&typeof t.removeMark=="function"&&(t.marks===null||Dn(t.marks))&&(t.selection===null||L.isRange(t.selection))&&tt.isNodeList(t.children)&&Di.isOperationList(t.operations);return GA.set(t,n),n},isEnd(t,e,n){var r=E.end(t,n);return Tt.equals(e,r)},isEdge:(t,e,n)=>E.isStart(t,e,n)||E.isEnd(t,e,n),isEmpty(t,e){var{children:n}=e,[r]=n;return n.length===0||n.length===1&&ot.isText(r)&&r.text===""&&!t.isVoid(e)},isInline:(t,e)=>ct.isElement(e)&&t.isInline(e),isNormalizing(t){var e=MA.get(t);return e===void 0||e},isStart(t,e,n){if(e.offset!==0)return!1;var r=E.start(t,n);return Tt.equals(e,r)},isVoid:(t,e)=>ct.isElement(e)&&t.isVoid(e),last(t,e){var n=E.path(t,e,{edge:"end"});return E.node(t,n)},leaf(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=E.path(t,e,n);return[tt.leaf(t,r),r]},*levels(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=t.selection,reverse:r=!1,voids:o=!1}=e,{match:i}=e;if(i==null&&(i=()=>!0),n){var a=[],u=E.path(t,n);for(var[s,l]of tt.levels(t,u))if(i(s,l)&&(a.push([s,l]),!o&&E.isVoid(t,s)))break;r&&a.reverse(),yield*a}},marks(t){var{marks:e,selection:n}=t;if(!n)return null;if(e)return e;if(L.isExpanded(n)){var[r]=E.nodes(t,{match:ot.isText});if(r){var[o]=r;return $o(o,VW)}return{}}var{anchor:i}=n,{path:a}=i,[u]=E.leaf(t,a);if(i.offset===0){var s=E.previous(t,{at:a,match:ot.isText}),l=E.above(t,{match:d=>E.isBlock(t,d)});if(s&&l){var[c,f]=s,[,p]=l;_.isAncestor(p,f)&&(u=c)}}return $o(u,UW)},next(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=e,{match:o,at:i=t.selection}=e;if(i){var a=E.after(t,i,{voids:r});if(a){var[,u]=E.last(t,[]),s=[a.path,u];if(_.isPath(i)&&i.length===0)throw new Error("Cannot get the next node from the root node!");if(o==null)if(_.isPath(i)){var[l]=E.parent(t,i);o=f=>l.children.includes(f)}else o=()=>!0;var[c]=E.nodes(t,{at:s,match:o,mode:n,voids:r});return c}}},node(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=E.path(t,e,n);return[tt.get(t,r),r]},*nodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=t.selection,mode:r="all",universal:o=!1,reverse:i=!1,voids:a=!1}=e,{match:u}=e;if(u||(u=()=>!0),n){var s,l;if(WW.isSpan(n))s=n[0],l=n[1];else{var c=E.path(t,n,{edge:"start"}),f=E.path(t,n,{edge:"end"});s=i?f:c,l=i?c:f}var p,d=tt.nodes(t,{reverse:i,from:s,to:l,pass:b=>{var[w]=b;return!a&&E.isVoid(t,w)}}),g=[];for(var[v,m]of d){var y=p&&_.compare(m,p[1])===0;if(r!=="highest"||!y){if(u(v,m))if(r==="lowest"&&y)p=[v,m];else{var h=r==="lowest"?p:[v,m];h&&(o?g.push(h):yield h),p=[v,m]}else if(o&&!y&&ot.isText(v))return}}r==="lowest"&&p&&(o?g.push(p):yield p),o&&(yield*g)}},normalize(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:n=!1}=e,r=i=>c0.get(i)||[];if(E.isNormalizing(t)){if(n){var o=Array.from(tt.nodes(t),i=>{var[,a]=i;return a});c0.set(t,o)}r(t).length!==0&&E.withoutNormalizing(t,()=>{for(var i of r(t))if(tt.has(t,i)){var a=E.node(t,i),[u,s]=a;ct.isElement(u)&&u.children.length===0&&t.normalizeNode(a)}for(var l=42*r(t).length,c=0;r(t).length!==0;){if(c>l)throw new Error(`
- Could not completely normalize the editor after `.concat(l,` iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.
- `));var f=r(t).pop();if(tt.has(t,f)){var p=E.node(t,f);t.normalizeNode(p)}c++}})}},parent(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=E.path(t,e,n),o=_.parent(r);return E.node(t,o)},path(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:r,edge:o}=n;if(_.isPath(e)){if(o==="start"){var[,i]=tt.first(t,e);e=i}else if(o==="end"){var[,a]=tt.last(t,e);e=a}}return L.isRange(e)&&(e=o==="start"?L.start(e):o==="end"?L.end(e):_.common(e.anchor.path,e.focus.path)),Tt.isPoint(e)&&(e=e.path),r!=null&&(e=e.slice(0,r)),e},hasPath:(t,e)=>tt.has(t,e),pathRef(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:e,affinity:r,unref(){var{current:i}=o;return E.pathRefs(t).delete(o),o.current=null,i}};return E.pathRefs(t).add(o),o},pathRefs(t){var e=zA.get(t);return e||(e=new Set,zA.set(t,e)),e},point(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:r="start"}=n;if(_.isPath(e)){var o;if(r==="end"){var[,i]=tt.last(t,e);o=i}else{var[,a]=tt.first(t,e);o=a}var u=tt.get(t,o);if(!ot.isText(u))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(e,"] because it has no ").concat(r," text node."));return{path:o,offset:r==="end"?u.text.length:0}}if(L.isRange(e)){var[s,l]=L.edges(e);return r==="start"?s:l}return e},pointRef(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:e,affinity:r,unref(){var{current:i}=o;return E.pointRefs(t).delete(o),o.current=null,i}};return E.pointRefs(t).add(o),o},pointRefs(t){var e=$A.get(t);return e||(e=new Set,$A.set(t,e)),e},*positions(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=t.selection,unit:r="offset",reverse:o=!1,voids:i=!1}=e;if(n){var a=E.range(t,n),[u,s]=L.edges(a),l=o?s:u,c=!1,f="",p=0,d=0,g=0;for(var[v,m]of E.nodes(t,{at:n,reverse:o,voids:i})){if(ct.isElement(v)){if(!i&&t.isVoid(v)){yield E.start(t,m);continue}if(t.isInline(v))continue;if(E.hasInlines(t,v)){var y=_.isAncestor(m,s.path)?s:E.end(t,m),h=_.isAncestor(m,u.path)?u:E.start(t,m);f=E.string(t,{anchor:h,focus:y},{voids:i}),c=!0}}if(ot.isText(v)){var b=_.equals(m,l.path);for(b?(d=o?l.offset:v.text.length-l.offset,g=l.offset):(d=v.text.length,g=o?d:0),(b||c||r==="offset")&&(yield{path:m,offset:g},c=!1);;){if(p===0){if(f==="")break;p=w(f,r,o),f=Fb(f,p,o)[1]}if(g=o?g-p:g+p,(d-=p)<0){p=-d;break}p=0,yield{path:m,offset:g}}}}}function w(D,C,x){return C==="character"?Bb(D,x):C==="word"?function(S){for(var F=arguments.length>1&&arguments[1]!==void 0&&arguments[1],z=0,M=!1;S.length>0;){var R=Bb(S,F),[K,V]=Fb(S,R,F);if(xW(K,V,F))M=!0,z+=R;else{if(M)break;z+=R}S=V}return z}(D,x):C==="line"||C==="block"?D.length:1}},previous(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=e,{match:o,at:i=t.selection}=e;if(i){var a=E.before(t,i,{voids:r});if(a){var[,u]=E.first(t,[]),s=[a.path,u];if(_.isPath(i)&&i.length===0)throw new Error("Cannot get the previous node from the root node!");if(o==null)if(_.isPath(i)){var[l]=E.parent(t,i);o=f=>l.children.includes(f)}else o=()=>!0;var[c]=E.nodes(t,{reverse:!0,at:s,match:o,mode:n,voids:r});return c}}},range:(t,e,n)=>L.isRange(e)&&!n?e:{anchor:E.start(t,e),focus:E.end(t,n||e)},rangeRef(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:e,affinity:r,unref(){var{current:i}=o;return E.rangeRefs(t).delete(o),o.current=null,i}};return E.rangeRefs(t).add(o),o},rangeRefs(t){var e=HA.get(t);return e||(e=new Set,HA.set(t,e)),e},removeMark(t,e){t.removeMark(e)},setNormalizing(t,e){MA.set(t,e)},start:(t,e)=>E.point(t,e,{edge:"start"}),string(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,o=E.range(t,e),[i,a]=L.edges(o),u="";for(var[s,l]of E.nodes(t,{at:o,match:ot.isText,voids:r})){var c=s.text;_.equals(l,a.path)&&(c=c.slice(0,a.offset)),_.equals(l,i.path)&&(c=c.slice(i.offset)),u+=c}return u},unhangRange(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,[o,i]=L.edges(e);if(o.offset!==0||i.offset!==0||L.isCollapsed(e))return e;var a=E.above(t,{at:i,match:p=>E.isBlock(t,p)}),u=a?a[1]:[],s={anchor:E.start(t,[]),focus:i},l=!0;for(var[c,f]of E.nodes(t,{at:s,match:ot.isText,reverse:!0,voids:r}))if(l)l=!1;else if(c.text!==""||_.isBefore(f,u)){i={path:f,offset:c.text.length};break}return{anchor:o,focus:i}},void(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return E.above(t,Fs(Fs({},e),{},{match:n=>E.isVoid(t,n)}))},withoutNormalizing(t,e){var n=E.isNormalizing(t);E.setNormalizing(t,!1);try{e()}finally{E.setNormalizing(t,n)}E.normalize(t)}},WW={isSpan:t=>Array.isArray(t)&&t.length===2&&t.every(_.isPath)},GW=["children"],qW=["text"],qA=new WeakMap,tt={ancestor(t,e){var n=tt.get(t,e);if(ot.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(e,"] because it refers to a text node instead: ").concat(n));return n},*ancestors(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of _.ancestors(e,n)){var o=[tt.ancestor(t,r),r];yield o}},child(t,e){if(ot.isText(t))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(t)));var n=t.children[e];if(n==null)throw new Error("Cannot get child at index `".concat(e,"` in node: ").concat(JSON.stringify(t)));return n},*children(t,e){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{reverse:r=!1}=n,o=tt.ancestor(t,e),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var u=tt.child(o,a),s=e.concat(a);yield[u,s],a=r?a-1:a+1}},common(t,e,n){var r=_.common(e,n);return[tt.get(t,r),r]},descendant(t,e){var n=tt.get(t,e);if(E.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(e,"] because it refers to the root editor node instead: ").concat(n));return n},*descendants(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of tt.nodes(t,e))r.length!==0&&(yield[n,r])},*elements(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of tt.nodes(t,e))ct.isElement(n)&&(yield[n,r])},extractProps:t=>ct.isAncestor(t)?$o(t,GW):$o(t,qW),first(t,e){for(var n=e.slice(),r=tt.get(t,n);r&&!ot.isText(r)&&r.children.length!==0;)r=r.children[0],n.push(0);return[r,n]},fragment(t,e){if(ot.isText(t))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(t)));var n=l0({children:t.children},r=>{var[o,i]=L.edges(e),a=tt.nodes(r,{reverse:!0,pass:p=>{var[,d]=p;return!L.includes(e,d)}});for(var[,u]of a){if(!L.includes(e,u)){var s=tt.parent(r,u),l=u[u.length-1];s.children.splice(l,1)}if(_.equals(u,i.path)){var c=tt.leaf(r,u);c.text=c.text.slice(0,i.offset)}if(_.equals(u,o.path)){var f=tt.leaf(r,u);f.text=f.text.slice(o.offset)}}E.isEditor(r)&&(r.selection=null)});return n.children},get(t,e){for(var n=t,r=0;r<e.length;r++){var o=e[r];if(ot.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(e,"] in node: ").concat(JSON.stringify(t)));n=n.children[o]}return n},has(t,e){for(var n=t,r=0;r<e.length;r++){var o=e[r];if(ot.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:t=>ot.isText(t)||ct.isElement(t)||E.isEditor(t),isNodeList(t){if(!Array.isArray(t))return!1;var e=qA.get(t);if(e!==void 0)return e;var n=t.every(r=>tt.isNode(r));return qA.set(t,n),n},last(t,e){for(var n=e.slice(),r=tt.get(t,n);r&&!ot.isText(r)&&r.children.length!==0;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(t,e){var n=tt.get(t,e);if(!ot.isText(n))throw new Error("Cannot get the leaf node at path [".concat(e,"] because it refers to a non-leaf node: ").concat(n));return n},*levels(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of _.levels(e,n)){var o=tt.get(t,r);yield[o,r]}},matches:(t,e)=>ct.isElement(t)&&ct.isElementProps(e)&&ct.matches(t,e)||ot.isText(t)&&ot.isTextProps(e)&&ot.matches(t,e),*nodes(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{pass:n,reverse:r=!1}=e,{from:o=[],to:i}=e,a=new Set,u=[],s=t;!i||!(r?_.isBefore(u,i):_.isAfter(u,i));)if(a.has(s)||(yield[s,u]),a.has(s)||ot.isText(s)||s.children.length===0||n!=null&&n([s,u])!==!1){if(u.length===0)break;if(!r){var l=_.next(u);if(tt.has(t,l)){u=l,s=tt.get(t,u);continue}}r&&u[u.length-1]!==0?(u=_.previous(u),s=tt.get(t,u)):(u=_.parent(u),s=tt.get(t,u),a.add(s))}else{a.add(s);var c=r?s.children.length-1:0;_.isAncestor(u,o)&&(c=o[u.length]),u=u.concat(c),s=tt.get(t,u)}},parent(t,e){var n=_.parent(e),r=tt.get(t,n);if(ot.isText(r))throw new Error("Cannot get the parent of path [".concat(e,"] because it does not exist in the root."));return r},string:t=>ot.isText(t)?t.text:t.children.map(tt.string).join(""),*texts(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of tt.nodes(t,e))ot.isText(n)&&(yield[n,r])}};function KA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Ve(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?KA(Object(n),!0).forEach(function(r){uo(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):KA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Di={isNodeOperation:t=>Di.isOperation(t)&&t.type.endsWith("_node"),isOperation(t){if(!Dn(t))return!1;switch(t.type){case"insert_node":case"remove_node":return _.isPath(t.path)&&tt.isNode(t.node);case"insert_text":case"remove_text":return typeof t.offset=="number"&&typeof t.text=="string"&&_.isPath(t.path);case"merge_node":return typeof t.position=="number"&&_.isPath(t.path)&&Dn(t.properties);case"move_node":return _.isPath(t.path)&&_.isPath(t.newPath);case"set_node":return _.isPath(t.path)&&Dn(t.properties)&&Dn(t.newProperties);case"set_selection":return t.properties===null&&L.isRange(t.newProperties)||t.newProperties===null&&L.isRange(t.properties)||Dn(t.properties)&&Dn(t.newProperties);case"split_node":return _.isPath(t.path)&&typeof t.position=="number"&&Dn(t.properties);default:return!1}},isOperationList:t=>Array.isArray(t)&&t.every(e=>Di.isOperation(e)),isSelectionOperation:t=>Di.isOperation(t)&&t.type.endsWith("_selection"),isTextOperation:t=>Di.isOperation(t)&&t.type.endsWith("_text"),inverse(t){switch(t.type){case"insert_node":return Ve(Ve({},t),{},{type:"remove_node"});case"insert_text":return Ve(Ve({},t),{},{type:"remove_text"});case"merge_node":return Ve(Ve({},t),{},{type:"split_node",path:_.previous(t.path)});case"move_node":var{newPath:e,path:n}=t;if(_.equals(e,n))return t;if(_.isSibling(n,e))return Ve(Ve({},t),{},{path:e,newPath:n});var r=_.transform(n,t),o=_.transform(_.next(n),t);return Ve(Ve({},t),{},{path:r,newPath:o});case"remove_node":return Ve(Ve({},t),{},{type:"insert_node"});case"remove_text":return Ve(Ve({},t),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=t;return Ve(Ve({},t),{},{properties:a,newProperties:i});case"set_selection":var{properties:u,newProperties:s}=t;return Ve(Ve({},t),{},u==null?{properties:s,newProperties:null}:s==null?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return Ve(Ve({},t),{},{type:"merge_node",path:_.next(t.path)})}}},_={ancestors(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=e,r=_.levels(t,e);return n?r.slice(1):r.slice(0,-1)},common(t,e){for(var n=[],r=0;r<t.length&&r<e.length;r++){var o=t[r];if(o!==e[r])break;n.push(o)}return n},compare(t,e){for(var n=Math.min(t.length,e.length),r=0;r<n;r++){if(t[r]<e[r])return-1;if(t[r]>e[r])return 1}return 0},endsAfter(t,e){var n=t.length-1,r=t.slice(0,n),o=e.slice(0,n),i=t[n],a=e[n];return _.equals(r,o)&&i>a},endsAt(t,e){var n=t.length,r=t.slice(0,n),o=e.slice(0,n);return _.equals(r,o)},endsBefore(t,e){var n=t.length-1,r=t.slice(0,n),o=e.slice(0,n),i=t[n],a=e[n];return _.equals(r,o)&&i<a},equals:(t,e)=>t.length===e.length&&t.every((n,r)=>n===e[r]),hasPrevious:t=>t[t.length-1]>0,isAfter:(t,e)=>_.compare(t,e)===1,isAncestor:(t,e)=>t.length<e.length&&_.compare(t,e)===0,isBefore:(t,e)=>_.compare(t,e)===-1,isChild:(t,e)=>t.length===e.length+1&&_.compare(t,e)===0,isCommon:(t,e)=>t.length<=e.length&&_.compare(t,e)===0,isDescendant:(t,e)=>t.length>e.length&&_.compare(t,e)===0,isParent:(t,e)=>t.length+1===e.length&&_.compare(t,e)===0,isPath:t=>Array.isArray(t)&&(t.length===0||typeof t[0]=="number"),isSibling(t,e){if(t.length!==e.length)return!1;var n=t.slice(0,-1),r=e.slice(0,-1);return t[t.length-1]!==e[e.length-1]&&_.equals(n,r)},levels(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=e,r=[],o=0;o<=t.length;o++)r.push(t.slice(0,o));return n&&r.reverse(),r},next(t){if(t.length===0)throw new Error("Cannot get the next path of a root path [".concat(t,"], because it has no next index."));var e=t[t.length-1];return t.slice(0,-1).concat(e+1)},parent(t){if(t.length===0)throw new Error("Cannot get the parent path of the root path [".concat(t,"]."));return t.slice(0,-1)},previous(t){if(t.length===0)throw new Error("Cannot get the previous path of a root path [".concat(t,"], because it has no previous index."));var e=t[t.length-1];if(e<=0)throw new Error("Cannot get the previous path of a first child path [".concat(t,"] because it would result in a negative index."));return t.slice(0,-1).concat(e-1)},relative(t,e){if(!_.isAncestor(e,t)&&!_.equals(t,e))throw new Error("Cannot get the relative path of [".concat(t,"] inside ancestor [").concat(e,"], because it is not above or equal to the path."));return t.slice(e.length)},transform(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return l0(t,r=>{var{affinity:o="forward"}=n;if(t&&(t==null?void 0:t.length)!==0){if(r===null)return null;switch(e.type){case"insert_node":var{path:i}=e;(_.equals(i,r)||_.endsBefore(i,r)||_.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=e;if(_.equals(a,r)||_.isAncestor(a,r))return null;_.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:u,position:s}=e;_.equals(u,r)||_.endsBefore(u,r)?r[u.length-1]-=1:_.isAncestor(u,r)&&(r[u.length-1]-=1,r[u.length]+=s);break;case"split_node":var{path:l,position:c}=e;if(_.equals(l,r)){if(o==="forward")r[r.length-1]+=1;else if(o!=="backward")return null}else _.endsBefore(l,r)?r[l.length-1]+=1:_.isAncestor(l,r)&&t[l.length]>=c&&(r[l.length-1]+=1,r[l.length]-=c);break;case"move_node":var{path:f,newPath:p}=e;if(_.equals(f,p))return;if(_.isAncestor(f,r)||_.equals(f,r)){var d=p.slice();return _.endsBefore(f,p)&&f.length<p.length&&(d[f.length-1]-=1),d.concat(r.slice(f.length))}_.isSibling(f,p)&&(_.isAncestor(p,r)||_.equals(p,r))?_.endsBefore(f,r)?r[f.length-1]-=1:r[f.length-1]+=1:_.endsBefore(p,r)||_.equals(p,r)||_.isAncestor(p,r)?(_.endsBefore(f,r)&&(r[f.length-1]-=1),r[p.length-1]+=1):_.endsBefore(f,r)&&(_.equals(p,r)&&(r[p.length-1]+=1),r[f.length-1]-=1)}}})}},KW={transform(t,e){var{current:n,affinity:r}=t;if(n!=null){var o=_.transform(n,e,{affinity:r});t.current=o,o==null&&t.unref()}}};function XA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function YA(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?XA(Object(n),!0).forEach(function(r){uo(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):XA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Tt={compare(t,e){var n=_.compare(t.path,e.path);return n===0?t.offset<e.offset?-1:t.offset>e.offset?1:0:n},isAfter:(t,e)=>Tt.compare(t,e)===1,isBefore:(t,e)=>Tt.compare(t,e)===-1,equals:(t,e)=>t.offset===e.offset&&_.equals(t.path,e.path),isPoint:t=>Dn(t)&&typeof t.offset=="number"&&_.isPath(t.path),transform(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return l0(t,r=>{if(r===null)return null;var{affinity:o="forward"}=n,{path:i,offset:a}=r;switch(e.type){case"insert_node":case"move_node":r.path=_.transform(i,e,n);break;case"insert_text":_.equals(e.path,i)&&e.offset<=a&&(r.offset+=e.text.length);break;case"merge_node":_.equals(e.path,i)&&(r.offset+=e.position),r.path=_.transform(i,e,n);break;case"remove_text":_.equals(e.path,i)&&e.offset<=a&&(r.offset-=Math.min(a-e.offset,e.text.length));break;case"remove_node":if(_.equals(e.path,i)||_.isAncestor(e.path,i))return null;r.path=_.transform(i,e,n);break;case"split_node":if(_.equals(e.path,i)){if(e.position===a&&o==null)return null;(e.position<a||e.position===a&&o==="forward")&&(r.offset-=e.position,r.path=_.transform(i,e,YA(YA({},n),{},{affinity:"forward"})))}else r.path=_.transform(i,e,n)}})}},XW={transform(t,e){var{current:n,affinity:r}=t;if(n!=null){var o=Tt.transform(n,e,{affinity:r});t.current=o,o==null&&t.unref()}}},YW=["anchor","focus"];function JA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}var L={edges(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=e,{anchor:r,focus:o}=t;return L.isBackward(t)===n?[r,o]:[o,r]},end(t){var[,e]=L.edges(t);return e},equals:(t,e)=>Tt.equals(t.anchor,e.anchor)&&Tt.equals(t.focus,e.focus),includes(t,e){if(L.isRange(e)){if(L.includes(t,e.anchor)||L.includes(t,e.focus))return!0;var[n,r]=L.edges(t),[o,i]=L.edges(e);return Tt.isBefore(n,o)&&Tt.isAfter(r,i)}var[a,u]=L.edges(t),s=!1,l=!1;return Tt.isPoint(e)?(s=Tt.compare(e,a)>=0,l=Tt.compare(e,u)<=0):(s=_.compare(e,a.path)>=0,l=_.compare(e,u.path)<=0),s&&l},intersection(t,e){var n=$o(t,YW),[r,o]=L.edges(t),[i,a]=L.edges(e),u=Tt.isBefore(r,i)?i:r,s=Tt.isBefore(o,a)?o:a;return Tt.isBefore(s,u)?null:function(l){for(var c=1;c<arguments.length;c++){var f=arguments[c]!=null?arguments[c]:{};c%2?JA(Object(f),!0).forEach(function(p){uo(l,p,f[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(f)):JA(Object(f)).forEach(function(p){Object.defineProperty(l,p,Object.getOwnPropertyDescriptor(f,p))})}return l}({anchor:u,focus:s},n)},isBackward(t){var{anchor:e,focus:n}=t;return Tt.isAfter(e,n)},isCollapsed(t){var{anchor:e,focus:n}=t;return Tt.equals(e,n)},isExpanded:t=>!L.isCollapsed(t),isForward:t=>!L.isBackward(t),isRange:t=>Dn(t)&&Tt.isPoint(t.anchor)&&Tt.isPoint(t.focus),*points(t){yield[t.anchor,"anchor"],yield[t.focus,"focus"]},start(t){var[e]=L.edges(t);return e},transform(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return l0(t,r=>{if(r===null)return null;var o,i,{affinity:a="inward"}=n;if(a==="inward"){var u=L.isCollapsed(r);L.isForward(r)?(o="forward",i=u?o:"backward"):(o="backward",i=u?o:"forward")}else a==="outward"?L.isForward(r)?(o="backward",i="forward"):(o="forward",i="backward"):(o=a,i=a);var s=Tt.transform(r.anchor,e,{affinity:o}),l=Tt.transform(r.focus,e,{affinity:i});if(!s||!l)return null;r.anchor=s,r.focus=l})}},JW={transform(t,e){var{current:n,affinity:r}=t;if(n!=null){var o=L.transform(n,e,{affinity:r});t.current=o,o==null&&t.unref()}}},ZA=(t,e)=>{for(var n in t){var r=t[n],o=e[n];if(Dn(r)&&Dn(o)){if(!ZA(r,o))return!1}else if(Array.isArray(r)&&Array.isArray(o)){if(r.length!==o.length)return!1;for(var i=0;i<r.length;i++)if(r[i]!==o[i])return!1}else if(r!==o)return!1}for(var a in e)if(t[a]===void 0&&e[a]!==void 0)return!1;return!0},ZW=["text"],QW=["anchor","focus"];function QA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Ho(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?QA(Object(n),!0).forEach(function(r){uo(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):QA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var ot={equals(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:r=!1}=n;function o(i){return $o(i,ZW)}return ZA(r?o(t):t,r?o(e):e)},isText:t=>Dn(t)&&typeof t.text=="string",isTextList:t=>Array.isArray(t)&&t.every(e=>ot.isText(e)),isTextProps:t=>t.text!==void 0,matches(t,e){for(var n in e)if(n!=="text"&&(!t.hasOwnProperty(n)||t[n]!==e[n]))return!1;return!0},decorations(t,e){var n=[Ho({},t)];for(var r of e){var o=$o(r,QW),[i,a]=L.edges(r),u=[],s=0;for(var l of n){var{length:c}=l.text,f=s;if(s+=c,i.offset<=f&&a.offset>=s)Object.assign(l,o),u.push(l);else if(i.offset!==a.offset&&(i.offset===s||a.offset===f)||i.offset>s||a.offset<f||a.offset===f&&f!==0)u.push(l);else{var p=l,d=void 0,g=void 0;if(a.offset<s){var v=a.offset-f;g=Ho(Ho({},p),{},{text:p.text.slice(v)}),p=Ho(Ho({},p),{},{text:p.text.slice(0,v)})}if(i.offset>f){var m=i.offset-f;d=Ho(Ho({},p),{},{text:p.text.slice(0,m)}),p=Ho(Ho({},p),{},{text:p.text.slice(m)})}Object.assign(p,o),d&&u.push(d),u.push(p),g&&u.push(g)}}n=u}return n}};function t7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Jc(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?t7(Object(n),!0).forEach(function(r){uo(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):t7(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var tG={transform(t,e){t.children=LA(t.children);var n=t.selection&&LA(t.selection);try{n=((r,o,i)=>{switch(i.type){case"insert_node":var{path:a,node:u}=i,s=tt.parent(r,a),l=a[a.length-1];if(l>s.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(a,"] because the destination is past the end of the node."));if(s.children.splice(l,0,u),o)for(var[c,f]of L.points(o))o[f]=Tt.transform(c,i);break;case"insert_text":var{path:p,offset:d,text:g}=i;if(g.length===0)break;var v=tt.leaf(r,p),m=v.text.slice(0,d),y=v.text.slice(d);if(v.text=m+g+y,o)for(var[h,b]of L.points(o))o[b]=Tt.transform(h,i);break;case"merge_node":var{path:w}=i,D=tt.get(r,w),C=_.previous(w),x=tt.get(r,C),S=tt.parent(r,w),F=w[w.length-1];if(ot.isText(D)&&ot.isText(x))x.text+=D.text;else{if(ot.isText(D)||ot.isText(x))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(w,"] to nodes of different interfaces: ").concat(D," ").concat(x));x.children.push(...D.children)}if(S.children.splice(F,1),o)for(var[z,M]of L.points(o))o[M]=Tt.transform(z,i);break;case"move_node":var{path:R,newPath:K}=i;if(_.isAncestor(R,K))throw new Error("Cannot move a path [".concat(R,"] to new path [").concat(K,"] because the destination is inside itself."));var V=tt.get(r,R),U=tt.parent(r,R),W=R[R.length-1];U.children.splice(W,1);var Z=_.transform(R,i),lt=tt.get(r,_.parent(Z)),ut=Z[Z.length-1];if(lt.children.splice(ut,0,V),o)for(var[at,B]of L.points(o))o[B]=Tt.transform(at,i);break;case"remove_node":var{path:O}=i,T=O[O.length-1];if(tt.parent(r,O).children.splice(T,1),o)for(var[N,X]of L.points(o)){var G=Tt.transform(N,i);if(o!=null&&G!=null)o[X]=G;else{var st=void 0,ht=void 0;for(var[mt,Bt]of tt.texts(r)){if(_.compare(Bt,O)!==-1){ht=[mt,Bt];break}st=[mt,Bt]}var q=!1;st&&ht&&(q=_.equals(ht[1],O)?!_.hasPrevious(ht[1]):_.common(st[1],O).length<_.common(ht[1],O).length),st&&!q?(N.path=st[1],N.offset=st[0].text.length):ht?(N.path=ht[1],N.offset=0):o=null}}break;case"remove_text":var{path:Mt,offset:bt,text:gt}=i;if(gt.length===0)break;var Ft=tt.leaf(r,Mt),Pe=Ft.text.slice(0,bt),zt=Ft.text.slice(bt+gt.length);if(Ft.text=Pe+zt,o)for(var[Xt,Be]of L.points(o))o[Be]=Tt.transform(Xt,i);break;case"set_node":var{path:kn,properties:$t,newProperties:Bn}=i;if(kn.length===0)throw new Error("Cannot set properties on the root node!");var cs=tt.get(r,kn);for(var To in Bn){if(To==="children"||To==="text")throw new Error('Cannot set the "'.concat(To,'" property of nodes!'));var mc=Bn[To];mc==null?delete cs[To]:cs[To]=mc}for(var fs in $t)Bn.hasOwnProperty(fs)||delete cs[fs];break;case"set_selection":var{newProperties:to}=i;if(to==null)o=to;else{if(o==null){if(!L.isRange(to))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(to)," when there is no current selection."));o=Jc({},to)}for(var eo in to){var _o=to[eo];if(_o==null){if(eo==="anchor"||eo==="focus")throw new Error('Cannot remove the "'.concat(eo,'" selection property'));delete o[eo]}else o[eo]=_o}}break;case"split_node":var{path:Qe,position:gn,properties:Kn}=i;if(Qe.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(Qe,"] because the root node cannot be split."));var Ir,je=tt.get(r,Qe),Ia=tt.parent(r,Qe),ai=Qe[Qe.length-1];if(ot.isText(je)){var yc=je.text.slice(0,gn),bc=je.text.slice(gn);je.text=yc,Ir=Jc(Jc({},Kn),{},{text:bc})}else{var wc=je.children.slice(0,gn),ds=je.children.slice(gn);je.children=wc,Ir=Jc(Jc({},Kn),{},{children:ds})}if(Ia.children.splice(ai+1,0,Ir),o)for(var[ui,Fn]of L.points(o))o[Fn]=Tt.transform(ui,i)}return o})(t,n,e)}finally{t.children=RA(t.children),t.selection=n?Xa(n)?RA(n):n:null}}},eG=["text"],nG=["children"];function e7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function n7(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?e7(Object(n),!0).forEach(function(r){uo(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):e7(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var rG={insertNodes(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(t,()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:u,select:s}=n;if(tt.isNode(e)&&(e=[e]),e.length!==0){var[l]=e;if(a||(a=t.selection?t.selection:t.children.length>0?E.end(t,[]):[0],s=!0),s==null&&(s=!1),L.isRange(a))if(r||(a=E.unhangRange(t,a)),L.isCollapsed(a))a=a.anchor;else{var[,c]=L.edges(a),f=E.pointRef(t,c);I.delete(t,{at:a}),a=f.unref()}if(Tt.isPoint(a)){u==null&&(u=ot.isText(l)?C=>ot.isText(C):t.isInline(l)?C=>ot.isText(C)||E.isInline(t,C):C=>E.isBlock(t,C));var[p]=E.nodes(t,{at:a.path,match:u,mode:i,voids:o});if(!p)return;var[,d]=p,g=E.pathRef(t,d),v=E.isEnd(t,a,d);I.splitNodes(t,{at:a,match:u,mode:i,voids:o});var m=g.unref();a=v?_.next(m):m}var y=_.parent(a),h=a[a.length-1];if(o||!E.void(t,{at:y})){for(var b of e){var w=y.concat(h);h++,t.apply({type:"insert_node",path:w,node:b}),a=_.next(a)}if(a=_.previous(a),s){var D=E.end(t,a);D&&I.select(t,D)}}}})},liftNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{at:n=t.selection,mode:r="lowest",voids:o=!1}=e,{match:i}=e;if(i==null&&(i=_.isPath(n)?Ts(t,n):b=>E.isBlock(t,b)),n){var a=E.nodes(t,{at:n,match:i,mode:r,voids:o}),u=Array.from(a,b=>{var[,w]=b;return E.pathRef(t,w)});for(var s of u){var l=s.unref();if(l.length<2)throw new Error("Cannot lift node at a path [".concat(l,"] because it has a depth of less than `2`."));var c=E.node(t,_.parent(l)),[f,p]=c,d=l[l.length-1],{length:g}=f.children;if(g===1){var v=_.next(p);I.moveNodes(t,{at:l,to:v,voids:o}),I.removeNodes(t,{at:p,voids:o})}else if(d===0)I.moveNodes(t,{at:l,to:p,voids:o});else if(d===g-1){var m=_.next(p);I.moveNodes(t,{at:l,to:m,voids:o})}else{var y=_.next(l),h=_.next(p);I.splitNodes(t,{at:y,voids:o}),I.moveNodes(t,{at:l,to:h,voids:o})}}}})},mergeNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{match:n,at:r=t.selection}=e,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=e;if(r){if(n==null)if(_.isPath(r)){var[u]=E.parent(t,r);n=F=>u.children.includes(F)}else n=F=>E.isBlock(t,F);if(!o&&L.isRange(r)&&(r=E.unhangRange(t,r)),L.isRange(r))if(L.isCollapsed(r))r=r.anchor;else{var[,s]=L.edges(r),l=E.pointRef(t,s);I.delete(t,{at:r}),r=l.unref(),e.at==null&&I.select(t,r)}var[c]=E.nodes(t,{at:r,match:n,voids:i,mode:a}),f=E.previous(t,{at:r,match:n,voids:i,mode:a});if(c&&f){var[p,d]=c,[g,v]=f;if(d.length!==0&&v.length!==0){var m,y,h=_.next(v),b=_.common(d,v),w=_.isSibling(d,v),D=Array.from(E.levels(t,{at:d}),F=>{var[z]=F;return z}).slice(b.length).slice(0,-1),C=E.above(t,{at:d,mode:"highest",match:F=>D.includes(F)&&r7(t,F)}),x=C&&E.pathRef(t,C[1]);if(ot.isText(p)&&ot.isText(g)){var S=$o(p,eG);y=g.text.length,m=S}else{if(!ct.isElement(p)||!ct.isElement(g))throw new Error("Cannot merge the node at path [".concat(d,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(p)," ").concat(JSON.stringify(g)));S=$o(p,nG),y=g.children.length,m=S}w||I.moveNodes(t,{at:d,to:h,voids:i}),x&&I.removeNodes(t,{at:x.current,voids:i}),ct.isElement(g)&&E.isEmpty(t,g)||ot.isText(g)&&g.text===""&&v[v.length-1]!==0?I.removeNodes(t,{at:v,voids:i}):t.apply({type:"merge_node",path:h,position:y,properties:m}),x&&x.unref()}}}})},moveNodes(t,e){E.withoutNormalizing(t,()=>{var{to:n,at:r=t.selection,mode:o="lowest",voids:i=!1}=e,{match:a}=e;if(r){a==null&&(a=_.isPath(r)?Ts(t,r):d=>E.isBlock(t,d));var u=E.pathRef(t,n),s=E.nodes(t,{at:r,match:a,mode:o,voids:i}),l=Array.from(s,d=>{var[,g]=d;return E.pathRef(t,g)});for(var c of l){var f=c.unref(),p=u.current;f.length!==0&&t.apply({type:"move_node",path:f,newPath:p}),u.current&&_.isSibling(p,f)&&_.isAfter(p,f)&&(u.current=_.next(u.current))}u.unref()}})},removeNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{hanging:n=!1,voids:r=!1,mode:o="lowest"}=e,{at:i=t.selection,match:a}=e;if(i){a==null&&(a=_.isPath(i)?Ts(t,i):p=>E.isBlock(t,p)),!n&&L.isRange(i)&&(i=E.unhangRange(t,i));var u=E.nodes(t,{at:i,match:a,mode:o,voids:r}),s=Array.from(u,p=>{var[,d]=p;return E.pathRef(t,d)});for(var l of s){var c=l.unref();if(c){var[f]=E.node(t,c);t.apply({type:"remove_node",path:c,node:f})}}}})},setNodes(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(t,()=>{var{match:r,at:o=t.selection}=n,{hanging:i=!1,mode:a="lowest",split:u=!1,voids:s=!1}=n;if(o){if(r==null&&(r=_.isPath(o)?Ts(t,o):D=>E.isBlock(t,D)),!i&&L.isRange(o)&&(o=E.unhangRange(t,o)),u&&L.isRange(o)){if(L.isCollapsed(o)&&E.leaf(t,o.anchor)[0].text.length>0)return;var l=E.rangeRef(t,o,{affinity:"inward"}),[c,f]=L.edges(o),p=a==="lowest"?"lowest":"highest",d=E.isEnd(t,f,f.path);I.splitNodes(t,{at:f,match:r,mode:p,voids:s,always:!d});var g=E.isStart(t,c,c.path);I.splitNodes(t,{at:c,match:r,mode:p,voids:s,always:!g}),o=l.unref(),n.at==null&&I.select(t,o)}for(var[v,m]of E.nodes(t,{at:o,match:r,mode:a,voids:s})){var y={},h={};if(m.length!==0){var b=!1;for(var w in e)w!=="children"&&w!=="text"&&e[w]!==v[w]&&(b=!0,v.hasOwnProperty(w)&&(y[w]=v[w]),e[w]!=null&&(h[w]=e[w]));b&&t.apply({type:"set_node",path:m,properties:y,newProperties:h})}}}})},splitNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{mode:n="lowest",voids:r=!1}=e,{match:o,at:i=t.selection,height:a=0,always:u=!1}=e;if(o==null&&(o=V=>E.isBlock(t,V)),L.isRange(i)&&(i=oG(t,i)),_.isPath(i)){var s=i,l=E.point(t,s),[c]=E.parent(t,s);o=V=>V===c,a=l.path.length-s.length+1,i=l,u=!0}if(i){var f=E.pointRef(t,i,{affinity:"backward"}),[p]=E.nodes(t,{at:i,match:o,mode:n,voids:r});if(p){var d=E.void(t,{at:i,mode:"highest"});if(!r&&d){var[g,v]=d;if(ct.isElement(g)&&t.isInline(g)){var m=E.after(t,v);if(!m){var y=_.next(v);I.insertNodes(t,{text:""},{at:y,voids:r}),m=E.point(t,y)}i=m,u=!0}a=i.path.length-v.length+1,u=!0}var h=E.pointRef(t,i),b=i.path.length-a,[,w]=p,D=i.path.slice(0,b),C=a===0?i.offset:i.path[b]+0;for(var[x,S]of E.levels(t,{at:D,reverse:!0,voids:r})){var F=!1;if(S.length<w.length||S.length===0||!r&&E.isVoid(t,x))break;var z=f.current,M=E.isEnd(t,z,S);if(u||!f||!E.isEdge(t,z,S)){F=!0;var R=tt.extractProps(x);t.apply({type:"split_node",path:S,position:C,properties:R})}C=S[S.length-1]+(F||M?1:0)}if(e.at==null){var K=h.current||E.end(t,[]);I.select(t,K)}f.unref(),h.unref()}}})},unsetNodes(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(e)||(e=[e]);var r={};for(var o of e)r[o]=null;I.setNodes(t,r,n)},unwrapNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{mode:n="lowest",split:r=!1,voids:o=!1}=e,{at:i=t.selection,match:a}=e;if(i){a==null&&(a=_.isPath(i)?Ts(t,i):p=>E.isBlock(t,p)),_.isPath(i)&&(i=E.range(t,i));var u=L.isRange(i)?E.rangeRef(t,i):null,s=E.nodes(t,{at:i,match:a,mode:n,voids:o}),l=Array.from(s,p=>{var[,d]=p;return E.pathRef(t,d)}).reverse(),c=function(p){var d=p.unref(),[g]=E.node(t,d),v=E.range(t,d);r&&u&&(v=L.intersection(u.current,v)),I.liftNodes(t,{at:v,match:m=>ct.isAncestor(g)&&g.children.includes(m),voids:o})};for(var f of l)c(f);u&&u.unref()}})},wrapNodes(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(t,()=>{var{mode:r="lowest",split:o=!1,voids:i=!1}=n,{match:a,at:u=t.selection}=n;if(u){if(a==null&&(a=_.isPath(u)?Ts(t,u):t.isInline(e)?m=>E.isInline(t,m)||ot.isText(m):m=>E.isBlock(t,m)),o&&L.isRange(u)){var[s,l]=L.edges(u),c=E.rangeRef(t,u,{affinity:"inward"});I.splitNodes(t,{at:l,match:a,voids:i}),I.splitNodes(t,{at:s,match:a,voids:i}),u=c.unref(),n.at==null&&I.select(t,u)}var f=Array.from(E.nodes(t,{at:u,match:t.isInline(e)?m=>E.isBlock(t,m):m=>E.isEditor(m),mode:"lowest",voids:i}));for(var[,p]of f){var d=L.isRange(u)?L.intersection(u,E.range(t,p)):u;if(d){var g=Array.from(E.nodes(t,{at:d,match:a,mode:r,voids:i}));if(g.length>0){var v=function(){var[m]=g,y=g[g.length-1],[,h]=m,[,b]=y;if(h.length===0&&b.length===0)return"continue";var w=_.equals(h,b)?_.parent(h):_.common(h,b),D=E.range(t,h,b),C=E.node(t,w),[x]=C,S=w.length+1,F=_.next(b.slice(0,S)),z=n7(n7({},e),{},{children:[]});I.insertNodes(t,z,{at:F,voids:i}),I.moveNodes(t,{at:D,match:M=>ct.isAncestor(x)&&x.children.includes(M),to:F.concat(0),voids:i})}();if(v==="continue")continue}}}}})}},r7=(t,e)=>{if(ct.isElement(e)){var n=e;return!!E.isVoid(t,e)||n.children.length===1&&r7(t,n.children[0])}return!E.isEditor(e)},oG=(t,e)=>{if(L.isCollapsed(e))return e.anchor;var[,n]=L.edges(e),r=E.pointRef(t,n);return I.delete(t,{at:e}),r.unref()},Ts=(t,e)=>{var[n]=E.node(t,e);return r=>r===n};function o7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function i7(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?o7(Object(n),!0).forEach(function(r){uo(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o7(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var iG={collapse(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:n="anchor"}=e,{selection:r}=t;if(r){if(n==="anchor")I.select(t,r.anchor);else if(n==="focus")I.select(t,r.focus);else if(n==="start"){var[o]=L.edges(r);I.select(t,o)}else if(n==="end"){var[,i]=L.edges(r);I.select(t,i)}}},deselect(t){var{selection:e}=t;e&&t.apply({type:"set_selection",properties:e,newProperties:null})},move(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:n}=t,{distance:r=1,unit:o="character",reverse:i=!1}=e,{edge:a=null}=e;if(n){a==="start"&&(a=L.isBackward(n)?"focus":"anchor"),a==="end"&&(a=L.isBackward(n)?"anchor":"focus");var{anchor:u,focus:s}=n,l={distance:r,unit:o},c={};if(a==null||a==="anchor"){var f=i?E.before(t,u,l):E.after(t,u,l);f&&(c.anchor=f)}if(a==null||a==="focus"){var p=i?E.before(t,s,l):E.after(t,s,l);p&&(c.focus=p)}I.setSelection(t,c)}},select(t,e){var{selection:n}=t;if(e=E.range(t,e),n)I.setSelection(t,e);else{if(!L.isRange(e))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(e)));t.apply({type:"set_selection",properties:n,newProperties:e})}},setPoint(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:r}=t,{edge:o="both"}=n;if(r){o==="start"&&(o=L.isBackward(r)?"focus":"anchor"),o==="end"&&(o=L.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,u=o==="anchor"?i:a;I.setSelection(t,{[o==="anchor"?"anchor":"focus"]:i7(i7({},u),e)})}},setSelection(t,e){var{selection:n}=t,r={},o={};if(n){for(var i in e)(i==="anchor"&&e.anchor!=null&&!Tt.equals(e.anchor,n.anchor)||i==="focus"&&e.focus!=null&&!Tt.equals(e.focus,n.focus)||i!=="anchor"&&i!=="focus"&&e[i]!==n[i])&&(r[i]=n[i],o[i]=e[i]);Object.keys(r).length>0&&t.apply({type:"set_selection",properties:r,newProperties:o})}}},aG={delete(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{reverse:n=!1,unit:r="character",distance:o=1,voids:i=!1}=e,{at:a=t.selection,hanging:u=!1}=e;if(a){if(L.isRange(a)&&L.isCollapsed(a)&&(a=a.anchor),Tt.isPoint(a)){var s=E.void(t,{at:a,mode:"highest"});if(!i&&s){var[,l]=s;a=l}else{var c={unit:r,distance:o};a={anchor:a,focus:n?E.before(t,a,c)||E.start(t,[]):E.after(t,a,c)||E.end(t,[])},u=!0}}if(_.isPath(a))I.removeNodes(t,{at:a,voids:i});else if(!L.isCollapsed(a)){if(!u){var[,f]=L.edges(a),p=E.end(t,[]);Tt.equals(f,p)||(a=E.unhangRange(t,a,{voids:i}))}var[d,g]=L.edges(a),v=E.above(t,{match:ht=>E.isBlock(t,ht),at:d,voids:i}),m=E.above(t,{match:ht=>E.isBlock(t,ht),at:g,voids:i}),y=v&&m&&!_.equals(v[1],m[1]),h=_.equals(d.path,g.path),b=i?null:E.void(t,{at:d,mode:"highest"}),w=i?null:E.void(t,{at:g,mode:"highest"});if(b){var D=E.before(t,d);D&&v&&_.isAncestor(v[1],D.path)&&(d=D)}if(w){var C=E.after(t,g);C&&m&&_.isAncestor(m[1],C.path)&&(g=C)}var x,S=[];for(var F of E.nodes(t,{at:a,voids:i})){var[z,M]=F;x&&_.compare(M,x)===0||(!i&&E.isVoid(t,z)||!_.isCommon(M,d.path)&&!_.isCommon(M,g.path))&&(S.push(F),x=M)}var R=Array.from(S,ht=>{var[,mt]=ht;return E.pathRef(t,mt)}),K=E.pointRef(t,d),V=E.pointRef(t,g);if(!h&&!b){var U=K.current,[W]=E.leaf(t,U),{path:Z}=U,{offset:lt}=d,ut=W.text.slice(lt);ut.length>0&&t.apply({type:"remove_text",path:Z,offset:lt,text:ut})}for(var at of R){var B=at.unref();I.removeNodes(t,{at:B,voids:i})}if(!w){var O=V.current,[T]=E.leaf(t,O),{path:N}=O,X=h?d.offset:0,G=T.text.slice(X,g.offset);G.length>0&&t.apply({type:"remove_text",path:N,offset:X,text:G})}!h&&y&&V.current&&K.current&&I.mergeNodes(t,{at:V.current,hanging:!0,voids:i});var st=n?K.unref()||V.unref():V.unref()||K.unref();e.at==null&&st&&I.select(t,st)}}})},insertFragment(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(t,()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=t.selection}=n;if(e.length&&i){if(L.isRange(i))if(r||(i=E.unhangRange(t,i)),L.isCollapsed(i))i=i.anchor;else{var[,a]=L.edges(i);if(!o&&E.void(t,{at:a}))return;var u=E.pointRef(t,a);I.delete(t,{at:i}),i=u.unref()}else _.isPath(i)&&(i=E.start(t,i));if(o||!E.void(t,{at:i})){var s=E.above(t,{at:i,match:O=>E.isInline(t,O),mode:"highest",voids:o});if(s){var[,l]=s;E.isEnd(t,i,l)?i=E.after(t,l):E.isStart(t,i,l)&&(i=E.before(t,l))}var c=E.above(t,{match:O=>E.isBlock(t,O),at:i,voids:o}),[,f]=c,p=E.isStart(t,i,f),d=E.isEnd(t,i,f),g=p&&d,v=!p||p&&d,m=!d,[,y]=tt.first({children:e},[]),[,h]=tt.last({children:e},[]),b=[],w=O=>{var[T,N]=O;return!(N.length===0||!g&&(v&&_.isAncestor(N,y)&&ct.isElement(T)&&!t.isVoid(T)&&!t.isInline(T)||m&&_.isAncestor(N,h)&&ct.isElement(T)&&!t.isVoid(T)&&!t.isInline(T)))};for(var D of tt.nodes({children:e},{pass:w}))w(D)&&b.push(D);var C=[],x=[],S=[],F=!0,z=!1;for(var[M]of b)ct.isElement(M)&&!t.isInline(M)?(F=!1,z=!0,x.push(M)):F?C.push(M):S.push(M);var[R]=E.nodes(t,{at:i,match:O=>ot.isText(O)||E.isInline(t,O),mode:"highest",voids:o}),[,K]=R,V=E.isStart(t,i,K),U=E.isEnd(t,i,K),W=E.pathRef(t,d?_.next(f):f),Z=E.pathRef(t,U?_.next(K):K),lt=E.pathRef(t,f);I.splitNodes(t,{at:i,match:O=>z?E.isBlock(t,O):ot.isText(O)||E.isInline(t,O),mode:z?"lowest":"highest",voids:o});var ut=E.pathRef(t,!V||V&&U?_.next(K):K);if(I.insertNodes(t,C,{at:ut.current,match:O=>ot.isText(O)||E.isInline(t,O),mode:"highest",voids:o}),g&&x.length&&I.delete(t,{at:lt.unref(),voids:o}),I.insertNodes(t,x,{at:W.current,match:O=>E.isBlock(t,O),mode:"lowest",voids:o}),I.insertNodes(t,S,{at:Z.current,match:O=>ot.isText(O)||E.isInline(t,O),mode:"highest",voids:o}),!n.at){var at;at=S.length>0?_.previous(Z.current):x.length>0?_.previous(W.current):_.previous(ut.current);var B=E.end(t,at);I.select(t,B)}ut.unref(),W.unref(),Z.unref()}}})},insertText(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(t,()=>{var{voids:r=!1}=n,{at:o=t.selection}=n;if(o){if(_.isPath(o)&&(o=E.range(t,o)),L.isRange(o))if(L.isCollapsed(o))o=o.anchor;else{var i=L.end(o);if(!r&&E.void(t,{at:i}))return;var a=E.pointRef(t,i);I.delete(t,{at:o,voids:r}),o=a.unref(),I.setSelection(t,{anchor:o,focus:o})}if(r||!E.void(t,{at:o})){var{path:u,offset:s}=o;e.length>0&&t.apply({type:"insert_text",path:u,offset:s,text:e})}}})}};function a7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function d0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?a7(Object(n),!0).forEach(function(r){uo(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a7(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var I=d0(d0(d0(d0({},tG),rG),iG),aG),Tb="[object Map]",_b="[object Set]",uG=/^\[object .+?Constructor\]$/,sG=/^(?:0|[1-9]\d*)$/,Pb="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",jb="\uD83C[\uDFFB-\uDFFF]",u7="[^\uD800-\uDFFF]",s7="(?:\uD83C[\uDDE6-\uDDFF]){2}",l7="[\uD800-\uDBFF][\uDC00-\uDFFF]",c7="(?:"+Pb+"|"+jb+")?",lG="[\\ufe0e\\ufe0f]?"+c7+"(?:\\u200d(?:"+[u7,s7,l7].join("|")+")[\\ufe0e\\ufe0f]?"+c7+")*",cG="(?:"+[u7+Pb+"?",Pb,s7,l7,"[\uD800-\uDFFF]"].join("|")+")",fG=RegExp(jb+"(?="+jb+")|"+cG+lG,"g"),dG=RegExp("[\\u200d\uD800-\uDFFF\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),pG=typeof ue=="object"&&ue&&ue.Object===Object&&ue,hG=typeof self=="object"&&self&&self.Object===Object&&self,Za=pG||hG||Function("return this")();function gG(t){var e=-1,n=Array(t.size);return t.forEach(function(r,o){n[++e]=[o,r]}),n}function vG(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var f7,d7,mG=Function.prototype,p0=Object.prototype,Ib=Za["__core-js_shared__"],p7=function(){var t=/[^.]+$/.exec(Ib&&Ib.keys&&Ib.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),h7=mG.toString,h0=p0.hasOwnProperty,Zc=p0.toString,yG=RegExp("^"+h7.call(h0).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),g7=Za.Symbol,Nb=g7?g7.iterator:void 0,bG=p0.propertyIsEnumerable,wG=(f7=Object.keys,d7=Object,function(t){return f7(d7(t))}),Lb=Qc(Za,"DataView"),Rb=Qc(Za,"Map"),Mb=Qc(Za,"Promise"),zb=Qc(Za,"Set"),$b=Qc(Za,"WeakMap"),EG=tu(Lb),DG=tu(Rb),xG=tu(Mb),CG=tu(zb),SG=tu($b);function Qc(t,e){var n=function(r,o){return r==null?void 0:r[o]}(t,e);return function(r){if(!y7(r)||function(i){return!!p7&&p7 in i}(r))return!1;var o=m7(r)||function(i){var a=!1;if(i!=null&&typeof i.toString!="function")try{a=!!(i+"")}catch{}return a}(r)?yG:uG;return o.test(tu(r))}(n)?n:void 0}var Qa=function(t){return Zc.call(t)};function AG(t,e){return!!(e=e??9007199254740991)&&(typeof t=="number"||sG.test(t))&&t>-1&&t%1==0&&t<e}function tu(t){if(t!=null){try{return h7.call(t)}catch{}try{return t+""}catch{}}return""}(Lb&&Qa(new Lb(new ArrayBuffer(1)))!="[object DataView]"||Rb&&Qa(new Rb)!=Tb||Mb&&Qa(Mb.resolve())!="[object Promise]"||zb&&Qa(new zb)!=_b||$b&&Qa(new $b)!="[object WeakMap]")&&(Qa=function(t){var e=Zc.call(t),n=e=="[object Object]"?t.constructor:void 0,r=n?tu(n):void 0;if(r)switch(r){case EG:return"[object DataView]";case DG:return Tb;case xG:return"[object Promise]";case CG:return _b;case SG:return"[object WeakMap]"}return e});var v7=Array.isArray;function Hb(t){return t!=null&&function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991}(t.length)&&!m7(t)}function m7(t){var e=y7(t)?Zc.call(t):"";return e=="[object Function]"||e=="[object GeneratorFunction]"}function y7(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function b7(t){return!!t&&typeof t=="object"}function OG(t){return t?function(e,n){return function(r,o){for(var i=-1,a=r?r.length:0,u=Array(a);++i<a;)u[i]=o(r[i]);return u}(n,function(r){return e[r]})}(t,function(e){return Hb(e)?function(n,r){var o=v7(n)||function(s){return function(l){return b7(l)&&Hb(l)}(s)&&h0.call(s,"callee")&&(!bG.call(s,"callee")||Zc.call(s)=="[object Arguments]")}(n)?function(s,l){for(var c=-1,f=Array(s);++c<s;)f[c]=l(c);return f}(n.length,String):[],i=o.length,a=!!i;for(var u in n)!r&&!h0.call(n,u)||a&&(u=="length"||AG(u,i))||o.push(u);return o}(e):function(n){if(o=(r=n)&&r.constructor,r!==(typeof o=="function"&&o.prototype||p0))return wG(n);var r,o,i=[];for(var a in Object(n))h0.call(n,a)&&a!="constructor"&&i.push(a);return i}(e)}(t)):[]}var w7=function(t){if(!t)return[];if(Hb(t))return function(n){return typeof n=="string"||!v7(n)&&b7(n)&&Zc.call(n)=="[object String]"}(t)?function(n){return function(r){return dG.test(r)}(n)?function(r){return r.match(fG)||[]}(n):function(r){return r.split("")}(n)}(t):function(n,r){var o=-1,i=n.length;for(r||(r=Array(i));++o<i;)r[o]=n[o];return r}(t);if(Nb&&t[Nb])return function(n){for(var r,o=[];!(r=n.next()).done;)o.push(r.value);return o}(t[Nb]());var e=Qa(t);return(e==Tb?gG:e==_b?vG:OG)(t)};function E7(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function Vb(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(function(n){t[n]===void 0?t[n]=e[n]:E7(e[n])&&E7(t[n])&&Object.keys(e[n]).length>0&&Vb(t[n],e[n])})}var D7={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function tf(){var t=typeof document<"u"?document:{};return Vb(t,D7),t}var kG={document:D7,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(t){return typeof setTimeout>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame:function(t){typeof setTimeout<"u"&&clearTimeout(t)}};function eu(){var t=typeof window<"u"?window:{};return Vb(t,kG),t}function Ub(t){return Ub=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ub(t)}function g0(t,e){return g0=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},g0(t,e)}function Wb(t,e,n){return Wb=function(){if(typeof Reflect>"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}}()?Reflect.construct:function(r,o,i){var a=[null];a.push.apply(a,o);var u=new(Function.bind.apply(r,a));return i&&g0(u,i.prototype),u},Wb.apply(null,arguments)}function Gb(t){var e=typeof Map=="function"?new Map:void 0;return Gb=function(n){if(n===null||!function(o){return Function.toString.call(o).indexOf("[native code]")!==-1}(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(n))return e.get(n);e.set(n,r)}function r(){return Wb(n,arguments,Ub(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),g0(r,n)},Gb(t)}var xi=function(t){var e,n;function r(o){var i,a,u;return a=function(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}(i=t.call.apply(t,[this].concat(o))||this),u=a.__proto__,Object.defineProperty(a,"__proto__",{get:function(){return u},set:function(s){u.__proto__=s}}),i}return n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,r}(Gb(Array));function v0(t){t===void 0&&(t=[]);var e=[];return t.forEach(function(n){Array.isArray(n)?e.push.apply(e,v0(n)):e.push(n)}),e}function x7(t,e){return Array.prototype.filter.call(t,e)}function k(t,e){var n=eu(),r=tf(),o=[];if(!e&&t instanceof xi)return t;if(!t)return new xi(o);if(typeof t=="string"){var i=t.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){var a="div";i.indexOf("<li")===0&&(a="ul"),i.indexOf("<tr")===0&&(a="tbody"),i.indexOf("<td")!==0&&i.indexOf("<th")!==0||(a="tr"),i.indexOf("<tbody")===0&&(a="table"),i.indexOf("<option")===0&&(a="select");var u=r.createElement(a);u.innerHTML=i;for(var s=0;s<u.childNodes.length;s+=1)o.push(u.childNodes[s])}else o=function(l,c){if(typeof l!="string")return[l];for(var f=[],p=c.querySelectorAll(l),d=0;d<p.length;d+=1)f.push(p[d]);return f}(t.trim(),e||r)}else if(t.nodeType||t===n||t===r)o.push(t);else if(Array.isArray(t)){if(t instanceof xi)return t;o=t}return new xi(function(l){for(var c=[],f=0;f<l.length;f+=1)c.indexOf(l[f])===-1&&c.push(l[f]);return c}(o))}function _s(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=v0(e.map(function(o){return o.split(" ")}));return this.forEach(function(o){var i;(i=o.classList).add.apply(i,r)}),this}function Ps(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=v0(e.map(function(o){return o.split(" ")}));return this.forEach(function(o){var i;(i=o.classList).remove.apply(i,r)}),this}function js(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=v0(e.map(function(o){return o.split(" ")}));return x7(this,function(o){return r.filter(function(i){return o.classList.contains(i)}).length>0}).length>0}function gr(t,e){if(arguments.length===1&&typeof t=="string")return this[0]?this[0].getAttribute(t):void 0;for(var n=0;n<this.length;n+=1)if(arguments.length===2)this[n].setAttribute(t,e);else for(var r in t)this[n][r]=t[r],this[n].setAttribute(r,t[r]);return this}function m0(t){for(var e=0;e<this.length;e+=1)this[e].removeAttribute(t);return this}function Is(){var t=this[0];if(t){var e,n={};if(t.dataset)for(var r in t.dataset)n[r]=t.dataset[r];else for(var o=0;o<t.attributes.length;o+=1){var i=t.attributes[o];i.name.indexOf("data-")>=0&&(n[e=i.name.split("data-")[1],e.toLowerCase().replace(/-(.)/g,function(u,s){return s.toUpperCase()})]=i.value)}for(var a in n)n[a]==="false"?n[a]=!1:n[a]==="true"?n[a]=!0:parseFloat(n[a])===1*n[a]&&(n[a]*=1);return n}}function so(t){if(t===void 0){var e=this[0];if(!e)return;if(e.multiple&&e.nodeName.toLowerCase()==="select"){for(var n=[],r=0;r<e.selectedOptions.length;r+=1)n.push(e.selectedOptions[r].value);return n}return e.value}for(var o=0;o<this.length;o+=1){var i=this[o];if(Array.isArray(t)&&i.multiple&&i.nodeName.toLowerCase()==="select")for(var a=0;a<i.options.length;a+=1)i.options[a].selected=t.indexOf(i.options[a].value)>=0;else i.value=t}return this}function lo(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0],o=e[1],i=e[2],a=e[3];function u(v){var m=v.target;if(m){var y=v.target.dom7EventData||[];if(y.indexOf(v)<0&&y.unshift(v),k(m).is(o))i.apply(m,y);else for(var h=k(m).parents(),b=0;b<h.length;b+=1)k(h[b]).is(o)&&i.apply(h[b],y)}}function s(v){var m=v&&v.target&&v.target.dom7EventData||[];m.indexOf(v)<0&&m.unshift(v),i.apply(this,m)}typeof e[1]=="function"&&(r=e[0],i=e[1],a=e[2],o=void 0),a||(a=!1);for(var l,c=r.split(" "),f=0;f<this.length;f+=1){var p=this[f];if(o)for(l=0;l<c.length;l+=1){var d=c[l];p.dom7LiveListeners||(p.dom7LiveListeners={}),p.dom7LiveListeners[d]||(p.dom7LiveListeners[d]=[]),p.dom7LiveListeners[d].push({listener:i,proxyListener:u}),p.addEventListener(d,u,a)}else for(l=0;l<c.length;l+=1){var g=c[l];p.dom7Listeners||(p.dom7Listeners={}),p.dom7Listeners[g]||(p.dom7Listeners[g]=[]),p.dom7Listeners[g].push({listener:i,proxyListener:s}),p.addEventListener(g,s,a)}}return this}function C7(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0],o=e[1],i=e[2],a=e[3];typeof e[1]=="function"&&(r=e[0],i=e[1],a=e[2],o=void 0),a||(a=!1);for(var u=r.split(" "),s=0;s<u.length;s+=1)for(var l=u[s],c=0;c<this.length;c+=1){var f=this[c],p=void 0;if(!o&&f.dom7Listeners?p=f.dom7Listeners[l]:o&&f.dom7LiveListeners&&(p=f.dom7LiveListeners[l]),p&&p.length)for(var d=p.length-1;d>=0;d-=1){var g=p[d];i&&g.listener===i||i&&g.listener&&g.listener.dom7proxy&&g.listener.dom7proxy===i?(f.removeEventListener(l,g.proxyListener,a),p.splice(d,1)):i||(f.removeEventListener(l,g.proxyListener,a),p.splice(d,1))}}return this}function y0(){var t=eu();return this[0]===t?t.innerWidth:this.length>0?parseFloat(this.css("width")):null}function b0(){var t=eu();return this[0]===t?t.innerHeight:this.length>0?parseFloat(this.css("height")):null}function S7(){if(this.length>0){var t=eu(),e=tf(),n=this[0],r=n.getBoundingClientRect(),o=e.body,i=n.clientTop||o.clientTop||0,a=n.clientLeft||o.clientLeft||0,u=n===t?t.scrollY:n.scrollTop,s=n===t?t.scrollX:n.scrollLeft;return{top:r.top+u-i,left:r.left+s-a}}return null}function Ns(){for(var t=0;t<this.length;t+=1)this[t].style.display="none";return this}function w0(){for(var t=eu(),e=0;e<this.length;e+=1){var n=this[e];n.style.display==="none"&&(n.style.display=""),t.getComputedStyle(n,null).getPropertyValue("display")==="none"&&(n.style.display="block")}return this}function E0(t,e){var n,r=eu();if(arguments.length===1){if(typeof t!="string"){for(n=0;n<this.length;n+=1)for(var o in t)this[n].style[o]=t[o];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(t)}if(arguments.length===2&&typeof t=="string"){for(n=0;n<this.length;n+=1)this[n].style[t]=e;return this}return this}function D0(t){return t?(this.forEach(function(e,n){t.apply(e,[e,n])}),this):this}function A7(t){return k(x7(this,t))}function Ci(t){if(t===void 0)return this[0]?this[0].innerHTML:null;for(var e=0;e<this.length;e+=1)this[e].innerHTML=t;return this}function x0(t){if(t===void 0)return this[0]?this[0].textContent.trim():null;for(var e=0;e<this.length;e+=1)this[e].textContent=t;return this}function O7(t){var e,n,r=eu(),o=tf(),i=this[0];if(!i||t===void 0)return!1;if(typeof t=="string"){if(i.matches)return i.matches(t);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(t);if(i.msMatchesSelector)return i.msMatchesSelector(t);for(e=k(t),n=0;n<e.length;n+=1)if(e[n]===i)return!0;return!1}if(t===o)return i===o;if(t===r)return i===r;if(t.nodeType||t instanceof xi){for(e=t.nodeType?[t]:t,n=0;n<e.length;n+=1)if(e[n]===i)return!0;return!1}return!1}function vr(){for(var t,e=tf(),n=0;n<arguments.length;n+=1){t=n<0||arguments.length<=n?void 0:arguments[n];for(var r=0;r<this.length;r+=1)if(typeof t=="string"){var o=e.createElement("div");for(o.innerHTML=t;o.firstChild;)this[r].appendChild(o.firstChild)}else if(t instanceof xi)for(var i=0;i<t.length;i+=1)this[r].appendChild(t[i]);else this[r].appendChild(t)}return this}function k7(t){var e,n,r=tf();for(e=0;e<this.length;e+=1)if(typeof t=="string"){var o=r.createElement("div");for(o.innerHTML=t,n=o.childNodes.length-1;n>=0;n-=1)this[e].insertBefore(o.childNodes[n],this[e].childNodes[0])}else if(t instanceof xi)for(n=0;n<t.length;n+=1)this[e].insertBefore(t[n],this[e].childNodes[0]);else this[e].insertBefore(t,this[e].childNodes[0]);return this}function Ls(t){for(var e=[],n=0;n<this.length;n+=1)this[n].parentNode!==null&&(t?k(this[n].parentNode).is(t)&&e.push(this[n].parentNode):e.push(this[n].parentNode));return k(e)}function C0(t){for(var e=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)t?k(r).is(t)&&e.push(r):e.push(r),r=r.parentNode;return k(e)}function Rs(t){for(var e=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(t),o=0;o<r.length;o+=1)e.push(r[o]);return k(e)}function Ms(t){for(var e=[],n=0;n<this.length;n+=1)for(var r=this[n].children,o=0;o<r.length;o+=1)t&&!k(r[o]).is(t)||e.push(r[o]);return k(e)}function zs(){for(var t=0;t<this.length;t+=1)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this}function $s(){for(var t=0;t<this.length;t+=1){var e=this[t];if(e.nodeType===1){for(var n=0;n<e.childNodes.length;n+=1)e.childNodes[n].parentNode&&e.childNodes[n].parentNode.removeChild(e.childNodes[n]);e.textContent=""}}return this}k.fn=xi.prototype;var BG="resize scroll".split(" ");function B7(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];if(n[0]===void 0){for(var o=0;o<this.length;o+=1)BG.indexOf(t)<0&&(t in this[o]?this[o][t]():k(this[o]).trigger(t));return this}return this.on.apply(this,[t].concat(n))}}var F7=B7("click"),Si=B7("focus"),FG="[object GeneratorFunction]",TG=/^(?:0|[1-9]\d*)$/;function _G(t,e){for(var n=-1,r=t?t.length:0;++n<r&&e(t[n],n,t)!==!1;);return t}var S0=Object.prototype,qb=S0.hasOwnProperty,T7=S0.toString,PG=S0.propertyIsEnumerable,jG=function(t,e){return function(n){return t(e(n))}}(Object.keys,Object),_7,IG=(_7=function(t,e){return t&&NG(t,e,RG)},function(t,e){if(t==null)return t;if(!Kb(t))return _7(t,e);for(var n=t.length,r=-1,o=Object(t);++r<n&&e(o[r],r,o)!==!1;);return t}),NG=function(t,e,n){for(var r=-1,o=Object(t),i=n(t),a=i.length;a--;){var u=i[++r];if(e(o[u],u,o)===!1)break}return t};function LG(t,e){return!!(e=e??9007199254740991)&&(typeof t=="number"||TG.test(t))&&t>-1&&t%1==0&&t<e}var P7=Array.isArray;function Kb(t){return t!=null&&function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991}(t.length)&&!function(e){var n=function(r){var o=typeof r;return!!r&&(o=="object"||o=="function")}(e)?T7.call(e):"";return n=="[object Function]"||n==FG}(t)}function RG(t){return Kb(t)?function(e,n){var r=P7(e)||function(u){return function(s){return function(l){return!!l&&typeof l=="object"}(s)&&Kb(s)}(u)&&qb.call(u,"callee")&&(!PG.call(u,"callee")||T7.call(u)=="[object Arguments]")}(e)?function(u,s){for(var l=-1,c=Array(u);++l<u;)c[l]=s(l);return c}(e.length,String):[],o=r.length,i=!!o;for(var a in e)!n&&!qb.call(e,a)||i&&(a=="length"||LG(a,o))||r.push(a);return r}(t):function(e){if(r=(n=e)&&n.constructor,n!==(typeof r=="function"&&r.prototype||S0))return jG(e);var n,r,o=[];for(var i in Object(e))qb.call(e,i)&&i!="constructor"&&o.push(i);return o}(t)}function MG(t){return t}var Xb=function(t,e){return(P7(t)?_G:IG)(t,typeof e=="function"?e:MG)};let j7=(t=21)=>{let e="",n=crypto.getRandomValues(new Uint8Array(t));for(;t--;){let r=63&n[t];e+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return e};var zG=/^\s+|\s+$/g,$G=/^[-+]0x[0-9a-f]+$/i,HG=/^0b[01]+$/i,VG=/^0o[0-7]+$/i,UG=parseInt,WG=typeof ue=="object"&&ue&&ue.Object===Object&&ue,GG=typeof self=="object"&&self&&self.Object===Object&&self,qG=WG||GG||Function("return this")(),KG=Object.prototype.toString,XG=Math.max,YG=Math.min,Yb=function(){return qG.Date.now()};function JG(t,e,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,p=!0;if(typeof t!="function")throw new TypeError("Expected a function");function d(h){var b=r,w=o;return r=o=void 0,l=h,a=t.apply(w,b)}function g(h){var b=h-s;return s===void 0||b>=e||b<0||f&&h-l>=i}function v(){var h=Yb();if(g(h))return m(h);u=setTimeout(v,function(b){var w=e-(b-s);return f?YG(w,i-(b-l)):w}(h))}function m(h){return u=void 0,p&&r?d(h):(r=o=void 0,a)}function y(){var h=Yb(),b=g(h);if(r=arguments,o=this,s=h,b){if(u===void 0)return function(w){return l=w,u=setTimeout(v,e),c?d(w):a}(s);if(f)return u=setTimeout(v,e),d(s)}return u===void 0&&(u=setTimeout(v,e)),a}return e=I7(e)||0,A0(n)&&(c=!!n.leading,i=(f="maxWait"in n)?XG(I7(n.maxWait)||0,e):i,p="trailing"in n?!!n.trailing:p),y.cancel=function(){u!==void 0&&clearTimeout(u),l=0,r=s=o=u=void 0},y.flush=function(){return u===void 0?a:m(Yb())},y}function A0(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function I7(t){if(typeof t=="number")return t;if(function(r){return typeof r=="symbol"||function(o){return!!o&&typeof o=="object"}(r)&&KG.call(r)=="[object Symbol]"}(t))return NaN;if(A0(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=A0(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(zG,"");var n=HG.test(t);return n||VG.test(t)?UG(t.slice(2),n?2:8):$G.test(t)?NaN:+t}var nu=function(t,e,n){var r=!0,o=!0;if(typeof t!="function")throw new TypeError("Expected a function");return A0(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),JG(t,e,{leading:r,maxWait:e,trailing:o})};const ZG={createElement:function(t,e){return document.createElement(t,e)},createElementNS:function(t,e,n){return document.createElementNS(t,e,n)},createTextNode:function(t){return document.createTextNode(t)},createComment:function(t){return document.createComment(t)},insertBefore:function(t,e,n){t.insertBefore(e,n)},removeChild:function(t,e){t.removeChild(e)},appendChild:function(t,e){t.appendChild(e)},parentNode:function(t){return t.parentNode},nextSibling:function(t){return t.nextSibling},tagName:function(t){return t.tagName},setTextContent:function(t,e){t.textContent=e},getTextContent:function(t){return t.textContent},isElement:function(t){return t.nodeType===1},isText:function(t){return t.nodeType===3},isComment:function(t){return t.nodeType===8}};function ef(t,e,n,r,o){return{sel:t,data:e,children:n,text:r,elm:o,key:e===void 0?void 0:e.key}}const Jb=Array.isArray;function O0(t){return typeof t=="string"||typeof t=="number"||t instanceof String||t instanceof Number}function Zb(t){return t===void 0}function nr(t){return t!==void 0}const N7=ef("",{},[],void 0,void 0);function nf(t,e){var n,r;const o=t.key===e.key,i=((n=t.data)===null||n===void 0?void 0:n.is)===((r=e.data)===null||r===void 0?void 0:r.is);return t.sel===e.sel&&o&&i}function QG(t,e,n){var r;const o={};for(let i=e;i<=n;++i){const a=(r=t[i])===null||r===void 0?void 0:r.key;a!==void 0&&(o[a]=i)}return o}const tq=["create","update","remove","destroy","pre","post"];function eq(t,e){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=e!==void 0?e:ZG;for(const c of tq)for(const f of t){const p=f[c];p!==void 0&&n[c].push(p)}function o(c,f){return function(){if(--f==0){const p=r.parentNode(c);r.removeChild(p,c)}}}function i(c,f){var p,d;let g,v=c.data;if(v!==void 0){const h=(p=v.hook)===null||p===void 0?void 0:p.init;nr(h)&&(h(c),v=c.data)}const m=c.children,y=c.sel;if(y==="!")Zb(c.text)&&(c.text=""),c.elm=r.createComment(c.text);else if(y!==void 0){const h=y.indexOf("#"),b=y.indexOf(".",h),w=h>0?h:y.length,D=b>0?b:y.length,C=h!==-1||b!==-1?y.slice(0,Math.min(w,D)):y,x=c.elm=nr(v)&&nr(g=v.ns)?r.createElementNS(g,C,v):r.createElement(C,v);for(w<D&&x.setAttribute("id",y.slice(w+1,D)),b>0&&x.setAttribute("class",y.slice(D+1).replace(/\./g," ")),g=0;g<n.create.length;++g)n.create[g](N7,c);if(Jb(m))for(g=0;g<m.length;++g){const F=m[g];F!=null&&r.appendChild(x,i(F,f))}else O0(c.text)&&r.appendChild(x,r.createTextNode(c.text));const S=c.data.hook;nr(S)&&((d=S.create)===null||d===void 0||d.call(S,N7,c),S.insert&&f.push(c))}else c.elm=r.createTextNode(c.text);return c.elm}function a(c,f,p,d,g,v){for(;d<=g;++d){const m=p[d];m!=null&&r.insertBefore(c,i(m,v),f)}}function u(c){var f,p;const d=c.data;if(d!==void 0){(p=(f=d==null?void 0:d.hook)===null||f===void 0?void 0:f.destroy)===null||p===void 0||p.call(f,c);for(let g=0;g<n.destroy.length;++g)n.destroy[g](c);if(c.children!==void 0)for(let g=0;g<c.children.length;++g){const v=c.children[g];v!=null&&typeof v!="string"&&u(v)}}}function s(c,f,p,d){for(var g,v;p<=d;++p){let m,y;const h=f[p];if(h!=null)if(nr(h.sel)){u(h),m=n.remove.length+1,y=o(h.elm,m);for(let w=0;w<n.remove.length;++w)n.remove[w](h,y);const b=(v=(g=h==null?void 0:h.data)===null||g===void 0?void 0:g.hook)===null||v===void 0?void 0:v.remove;nr(b)?b(h,y):y()}else r.removeChild(c,h.elm)}}function l(c,f,p){var d,g,v,m,y;const h=(d=f.data)===null||d===void 0?void 0:d.hook;(g=h==null?void 0:h.prepatch)===null||g===void 0||g.call(h,c,f);const b=f.elm=c.elm,w=c.children,D=f.children;if(c!==f){if(f.data!==void 0){for(let C=0;C<n.update.length;++C)n.update[C](c,f);(m=(v=f.data.hook)===null||v===void 0?void 0:v.update)===null||m===void 0||m.call(v,c,f)}Zb(f.text)?nr(w)&&nr(D)?w!==D&&function(C,x,S,F){let z,M,R,K,V=0,U=0,W=x.length-1,Z=x[0],lt=x[W],ut=S.length-1,at=S[0],B=S[ut];for(;V<=W&&U<=ut;)Z==null?Z=x[++V]:lt==null?lt=x[--W]:at==null?at=S[++U]:B==null?B=S[--ut]:nf(Z,at)?(l(Z,at,F),Z=x[++V],at=S[++U]):nf(lt,B)?(l(lt,B,F),lt=x[--W],B=S[--ut]):nf(Z,B)?(l(Z,B,F),r.insertBefore(C,Z.elm,r.nextSibling(lt.elm)),Z=x[++V],B=S[--ut]):nf(lt,at)?(l(lt,at,F),r.insertBefore(C,lt.elm,Z.elm),lt=x[--W],at=S[++U]):(z===void 0&&(z=QG(x,V,W)),M=z[at.key],Zb(M)?r.insertBefore(C,i(at,F),Z.elm):(R=x[M],R.sel!==at.sel?r.insertBefore(C,i(at,F),Z.elm):(l(R,at,F),x[M]=void 0,r.insertBefore(C,R.elm,Z.elm))),at=S[++U]);(V<=W||U<=ut)&&(V>W?(K=S[ut+1]==null?null:S[ut+1].elm,a(C,K,S,U,ut,F)):s(C,x,V,W))}(b,w,D,p):nr(D)?(nr(c.text)&&r.setTextContent(b,""),a(b,null,D,0,D.length-1,p)):nr(w)?s(b,w,0,w.length-1):nr(c.text)&&r.setTextContent(b,""):c.text!==f.text&&(nr(w)&&s(b,w,0,w.length-1),r.setTextContent(b,f.text)),(y=h==null?void 0:h.postpatch)===null||y===void 0||y.call(h,c,f)}}return function(c,f){let p,d,g;const v=[];for(p=0;p<n.pre.length;++p)n.pre[p]();for(function(m){return m.sel!==void 0}(c)||(c=function(m){const y=m.id?"#"+m.id:"",h=m.getAttribute("class"),b=h?"."+h.split(" ").join("."):"";return ef(r.tagName(m).toLowerCase()+y+b,{},[],void 0,m)}(c)),nf(c,f)?l(c,f,v):(d=c.elm,g=r.parentNode(d),i(f,v),g!==null&&(r.insertBefore(g,f.elm,r.nextSibling(d)),s(g,[c],0,0))),p=0;p<v.length;++p)v[p].data.hook.insert(v[p]);for(p=0;p<n.post.length;++p)n.post[p]();return f}}function L7(t,e,n){if(t.ns="http://www.w3.org/2000/svg",n!=="foreignObject"&&e!==void 0)for(let r=0;r<e.length;++r){const o=e[r].data;o!==void 0&&L7(o,e[r].children,e[r].sel)}}function Hs(t,e,n){let r,o,i,a={};if(n!==void 0?(e!==null&&(a=e),Jb(n)?r=n:O0(n)?o=n.toString():n&&n.sel&&(r=[n])):e!=null&&(Jb(e)?r=e:O0(e)?o=e.toString():e&&e.sel?r=[e]:a=e),r!==void 0)for(i=0;i<r.length;++i)O0(r[i])&&(r[i]=ef(void 0,void 0,void 0,r[i],void 0));return t[0]!=="s"||t[1]!=="v"||t[2]!=="g"||t.length!==3&&t[3]!=="."&&t[3]!=="#"||L7(a,r,t),ef(t,a,r,o,void 0)}function R7(t,e){let n;const r=e.elm;let o=t.data.attrs,i=e.data.attrs;if((o||i)&&o!==i){for(n in o=o||{},i=i||{},i){const a=i[n];o[n]!==a&&(a===!0?r.setAttribute(n,""):a===!1?r.removeAttribute(n):n.charCodeAt(0)!==120?r.setAttribute(n,a):n.charCodeAt(3)===58?r.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,a):n.charCodeAt(5)===58?r.setAttributeNS("http://www.w3.org/1999/xlink",n,a):r.setAttribute(n,a))}for(n in o)n in i||r.removeAttribute(n)}}const nq={create:R7,update:R7};function M7(t,e){let n,r;const o=e.elm;let i=t.data.class,a=e.data.class;if((i||a)&&i!==a){for(r in i=i||{},a=a||{},i)i[r]&&!Object.prototype.hasOwnProperty.call(a,r)&&o.classList.remove(r);for(r in a)n=a[r],n!==i[r]&&o.classList[n?"add":"remove"](r)}}const rq={create:M7,update:M7},z7=/[A-Z]/g;function $7(t,e){const n=e.elm;let r,o=t.data.dataset,i=e.data.dataset;if(!o&&!i||o===i)return;o=o||{},i=i||{};const a=n.dataset;for(r in o)i[r]||(a?r in a&&delete a[r]:n.removeAttribute("data-"+r.replace(z7,"-$&").toLowerCase()));for(r in i)o[r]!==i[r]&&(a?a[r]=i[r]:n.setAttribute("data-"+r.replace(z7,"-$&").toLowerCase(),i[r]))}const oq={create:$7,update:$7};function H7(t,e,n){if(typeof t=="function")t.call(e,n,e);else if(typeof t=="object")for(let r=0;r<t.length;r++)H7(t[r],e,n)}function iq(t,e){const n=t.type,r=e.data.on;r&&r[n]&&H7(r[n],e,t)}function Qb(t,e){const n=t.data.on,r=t.listener,o=t.elm,i=e&&e.data.on,a=e&&e.elm;let u;if(n!==i){if(n&&r)if(i)for(u in n)i[u]||o.removeEventListener(u,r,!1);else for(u in n)o.removeEventListener(u,r,!1);if(i){const s=e.listener=t.listener||function l(c){iq(c,l.vnode)};if(s.vnode=e,n)for(u in i)n[u]||a.addEventListener(u,s,!1);else for(u in i)a.addEventListener(u,s,!1)}}}const aq={create:Qb,update:Qb,destroy:Qb};function V7(t,e){let n,r,o;const i=e.elm;let a=t.data.props,u=e.data.props;if((a||u)&&a!==u)for(n in a=a||{},u=u||{},u)r=u[n],o=a[n],o===r||n==="value"&&i[n]===r||(i[n]=r)}const uq={create:V7,update:V7},U7=typeof window<"u"&&window.requestAnimationFrame.bind(window)||setTimeout;let t2=!1;function sq(t,e,n){(function(r){U7(function(){U7(r)})})(function(){t[e]=n})}function W7(t,e){let n,r;const o=e.elm;let i=t.data.style,a=e.data.style;if(!i&&!a||i===a)return;i=i||{},a=a||{};const u="delayed"in i;for(r in i)a[r]||(r[0]==="-"&&r[1]==="-"?o.style.removeProperty(r):o.style[r]="");for(r in a)if(n=a[r],r==="delayed"&&a.delayed)for(const s in a.delayed)n=a.delayed[s],u&&n===i.delayed[s]||sq(o.style,s,n);else r!=="remove"&&n!==i[r]&&(r[0]==="-"&&r[1]==="-"?o.style.setProperty(r,n):o.style[r]=n)}const lq={pre:function(){t2=!1},create:W7,update:W7,destroy:function(t){let e,n;const r=t.elm,o=t.data.style;if(o&&(e=o.destroy))for(n in e)r.style[n]=e[n]},remove:function(t,e){const n=t.data.style;if(!n||!n.remove)return void e();let r;t2||(t.elm.offsetLeft,t2=!0);const o=t.elm;let i=0;const a=n.remove;let u=0;const s=[];for(r in a)s.push(r),o.style[r]=a[r];const l=getComputedStyle(o)["transition-property"].split(", ");for(;i<l.length;++i)s.indexOf(l[i])!==-1&&u++;o.addEventListener("transitionend",function(c){c.target===o&&--u,u===0&&e()})}};function G7(t,e){for(const n of t)n!=null&&n!==!1&&n!==""&&(Array.isArray(n)?G7(n,e):typeof n=="string"||typeof n=="number"||typeof n=="boolean"?e.push(ef(void 0,void 0,void 0,String(n),void 0)):e.push(n));return e}function wt(t,e,...n){const r=G7(n,[]);return typeof t=="function"?t(e,r):r.length===1&&!r[0].sel&&r[0].text?Hs(t,e,r[0].text):Hs(t,e,r)}wt||(wt={});var e2,cq=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,fq=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,q7="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",K7="["+q7+"]",k0="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",X7="\\d+",Y7="[a-z\\xdf-\\xf6\\xf8-\\xff]",J7="[^\uD800-\uDFFF"+q7+X7+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",n2="\uD83C[\uDFFB-\uDFFF]",Z7="[^\uD800-\uDFFF]",r2="(?:\uD83C[\uDDE6-\uDDFF]){2}",o2="[\uD800-\uDBFF][\uDC00-\uDFFF]",Vs="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Q7="(?:"+Y7+"|"+J7+")",dq="(?:"+Vs+"|"+J7+")",t9="(?:"+k0+"|"+n2+")?",e9="[\\ufe0e\\ufe0f]?"+t9+"(?:\\u200d(?:"+[Z7,r2,o2].join("|")+")[\\ufe0e\\ufe0f]?"+t9+")*",pq="(?:"+["[\\u2700-\\u27bf]",r2,o2].join("|")+")"+e9,hq="(?:"+[Z7+k0+"?",k0,r2,o2,"[\uD800-\uDFFF]"].join("|")+")",gq=RegExp("['\u2019]","g"),vq=RegExp(k0,"g"),mq=RegExp(n2+"(?="+n2+")|"+hq+e9,"g"),yq=RegExp([Vs+"?"+Y7+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[K7,Vs,"$"].join("|")+")",dq+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[K7,Vs+Q7,"$"].join("|")+")",Vs+"?"+Q7+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Vs+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",X7,pq].join("|"),"g"),bq=RegExp("[\\u200d\uD800-\uDFFF\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),wq=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Eq=typeof ue=="object"&&ue&&ue.Object===Object&&ue,Dq=typeof self=="object"&&self&&self.Object===Object&&self,xq=Eq||Dq||Function("return this")(),Cq=(e2={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"ss"},function(t){return e2==null?void 0:e2[t]});function n9(t){return bq.test(t)}var Sq=Object.prototype.toString,r9=xq.Symbol,o9=r9?r9.prototype:void 0,i9=o9?o9.toString:void 0;function B0(t){return t==null?"":function(e){if(typeof e=="string")return e;if(function(r){return typeof r=="symbol"||function(o){return!!o&&typeof o=="object"}(r)&&Sq.call(r)=="[object Symbol]"}(e))return i9?i9.call(e):"";var n=e+"";return n=="0"&&1/e==-1/0?"-0":n}(t)}for(var a9,Aq=(a9=function(t,e,n){return e=e.toLowerCase(),t+(n?Oq(B0(e).toLowerCase()):e)},function(t){return function(e,n,r,o){for(var i=-1,a=e?e.length:0;++i<a;)r=n(r,e[i],i,e);return r}(function(e,n,r){return e=B0(e),n===void 0?function(o){return wq.test(o)}(e)?function(o){return o.match(yq)||[]}(e):function(o){return o.match(cq)||[]}(e):e.match(n)||[]}(function(e){return(e=B0(e))&&e.replace(fq,Cq).replace(vq,"")}(t).replace(gq,"")),a9,"")}),Oq=function(t){var e=n9(t=B0(t))?function(o){return n9(o)?function(i){return i.match(mq)||[]}(o):function(i){return i.split("")}(o)}(t):void 0,n=e?e[0]:t.charAt(0),r=e?function(o,i,a){var u=o.length;return a=a===void 0?u:a,!i&&a>=u?o:function(s,l,c){var f=-1,p=s.length;l<0&&(l=-l>p?0:p+l),(c=c>p?p:c)<0&&(c+=p),p=l>c?0:c-l>>>0,l>>>=0;for(var d=Array(p);++f<p;)d[f]=s[f+l];return d}(o,i,a)}(e,1).join(""):t.slice(1);return n.toUpperCase()+r},kq=Aq,Bq=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),i2={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},u9={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:Bq?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},a2={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},F0=1;F0<20;F0++)a2["f"+F0]=111+F0;function s9(t,e,n){e&&!("byKey"in e)&&(n=e,e=null),Array.isArray(t)||(t=[t]);var r=t.map(function(i){return function(a,u){var s=u&&u.byKey,l={},c=(a=a.replace("++","+add")).split("+"),f=c.length;for(var p in i2)l[i2[p]]=!1;var d=!0,g=!1,v=void 0;try{for(var m,y=c[Symbol.iterator]();!(d=(m=y.next()).done);d=!0){var h=m.value,b=h.endsWith("?")&&h.length>1;b&&(h=h.slice(0,-1));var w=l9(h),D=i2[w];if(h.length>1&&!D&&!u9[h]&&!a2[w])throw new TypeError('Unknown modifier: "'+h+'"');f!==1&&D||(s?l.key=w:l.which=Fq(h)),D&&(l[D]=!b||null)}}catch(C){g=!0,v=C}finally{try{!d&&y.return&&y.return()}finally{if(g)throw v}}return l}(i,e)}),o=function(i){return r.some(function(a){return function(u,s){for(var l in u){var c=u[l],f=void 0;if(c!=null&&((f=l==="key"&&s.key!=null?s.key.toLowerCase():l==="which"?c===91&&s.which===93?91:s.which:s[l])!=null||c!==!1)&&f!==c)return!1}return!0}(a,i)})};return n==null?o:o(n)}function Fq(t){return t=l9(t),a2[t]||t.toUpperCase().charCodeAt(0)}function l9(t){return t=t.toLowerCase(),u9[t]||t}var Tq=s9,u2=function(t,e){return s9(t,{byKey:!0},e)},_q=/^\s+|\s+$/g,Pq=/^[-+]0x[0-9a-f]+$/i,jq=/^0b[01]+$/i,Iq=/^0o[0-7]+$/i,Nq=parseInt,Lq=typeof ue=="object"&&ue&&ue.Object===Object&&ue,Rq=typeof self=="object"&&self&&self.Object===Object&&self,Mq=Lq||Rq||Function("return this")(),zq=Object.prototype.toString,$q=Math.max,Hq=Math.min,s2=function(){return Mq.Date.now()};function l2(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function c9(t){if(typeof t=="number")return t;if(function(r){return typeof r=="symbol"||function(o){return!!o&&typeof o=="object"}(r)&&zq.call(r)=="[object Symbol]"}(t))return NaN;if(l2(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=l2(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(_q,"");var n=jq.test(t);return n||Iq.test(t)?Nq(t.slice(2),n?2:8):Pq.test(t)?NaN:+t}var Us,f9=function(t,e,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,p=!0;if(typeof t!="function")throw new TypeError("Expected a function");function d(h){var b=r,w=o;return r=o=void 0,l=h,a=t.apply(w,b)}function g(h){var b=h-s;return s===void 0||b>=e||b<0||f&&h-l>=i}function v(){var h=s2();if(g(h))return m(h);u=setTimeout(v,function(b){var w=e-(b-s);return f?Hq(w,i-(b-l)):w}(h))}function m(h){return u=void 0,p&&r?d(h):(r=o=void 0,a)}function y(){var h=s2(),b=g(h);if(r=arguments,o=this,s=h,b){if(u===void 0)return function(w){return l=w,u=setTimeout(v,e),c?d(w):a}(s);if(f)return u=setTimeout(v,e),d(s)}return u===void 0&&(u=setTimeout(v,e)),a}return e=c9(e)||0,l2(n)&&(c=!!n.leading,i=(f="maxWait"in n)?$q(c9(n.maxWait)||0,e):i,p="trailing"in n?!!n.trailing:p),y.cancel=function(){u!==void 0&&clearTimeout(u),l=0,r=s=o=u=void 0},y.flush=function(){return u===void 0?a:m(s2())},y},d9=Ra(function(t,e){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Boolean]",a="[object Date]",u="[object Function]",s="[object GeneratorFunction]",l="[object Map]",c="[object Number]",f="[object Object]",p="[object Promise]",d="[object RegExp]",g="[object Set]",v="[object String]",m="[object Symbol]",y="[object WeakMap]",h="[object ArrayBuffer]",b="[object DataView]",w="[object Float32Array]",D="[object Float64Array]",C="[object Int8Array]",x="[object Int16Array]",S="[object Int32Array]",F="[object Uint8Array]",z="[object Uint8ClampedArray]",M="[object Uint16Array]",R="[object Uint32Array]",K=/\w*$/,V=/^\[object .+?Constructor\]$/,U=/^(?:0|[1-9]\d*)$/,W={};W[o]=W["[object Array]"]=W[h]=W[b]=W[i]=W[a]=W[w]=W[D]=W[C]=W[x]=W[S]=W[l]=W[c]=W[f]=W[d]=W[g]=W[v]=W[m]=W[F]=W[z]=W[M]=W[R]=!0,W["[object Error]"]=W[u]=W[y]=!1;var Z=typeof ue=="object"&&ue&&ue.Object===Object&&ue,lt=typeof self=="object"&&self&&self.Object===Object&&self,ut=Z||lt||Function("return this")(),at=e&&!e.nodeType&&e,B=at&&t&&!t.nodeType&&t,O=B&&B.exports===at;function T(P,H){return P.set(H[0],H[1]),P}function N(P,H){return P.add(H),P}function X(P,H,Q,it){var oe=-1,pe=P?P.length:0;for(it&&pe&&(Q=P[++oe]);++oe<pe;)Q=H(Q,P[oe],oe,P);return Q}function G(P){var H=!1;if(P!=null&&typeof P.toString!="function")try{H=!!(P+"")}catch{}return H}function st(P){var H=-1,Q=Array(P.size);return P.forEach(function(it,oe){Q[++H]=[oe,it]}),Q}function ht(P,H){return function(Q){return P(H(Q))}}function mt(P){var H=-1,Q=Array(P.size);return P.forEach(function(it){Q[++H]=it}),Q}var Bt=Array.prototype,q=Function.prototype,Mt=Object.prototype,bt=ut["__core-js_shared__"],gt=function(){var P=/[^.]+$/.exec(bt&&bt.keys&&bt.keys.IE_PROTO||"");return P?"Symbol(src)_1."+P:""}(),Ft=q.toString,Pe=Mt.hasOwnProperty,zt=Mt.toString,Xt=RegExp("^"+Ft.call(Pe).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Be=O?ut.Buffer:void 0,kn=ut.Symbol,$t=ut.Uint8Array,Bn=ht(Object.getPrototypeOf,Object),cs=Object.create,To=Mt.propertyIsEnumerable,mc=Bt.splice,fs=Object.getOwnPropertySymbols,to=Be?Be.isBuffer:void 0,eo=ht(Object.keys,Object),_o=si(ut,"DataView"),Qe=si(ut,"Map"),gn=si(ut,"Promise"),Kn=si(ut,"Set"),Ir=si(ut,"WeakMap"),je=si(Object,"create"),Ia=j(_o),ai=j(Qe),yc=j(gn),bc=j(Kn),wc=j(Ir),ds=kn?kn.prototype:void 0,ui=ds?ds.valueOf:void 0;function Fn(P){var H=-1,Q=P?P.length:0;for(this.clear();++H<Q;){var it=P[H];this.set(it[0],it[1])}}function no(P){var H=-1,Q=P?P.length:0;for(this.clear();++H<Q;){var it=P[H];this.set(it[0],it[1])}}function In(P){var H=-1,Q=P?P.length:0;for(this.clear();++H<Q;){var it=P[H];this.set(it[0],it[1])}}function Na(P){this.__data__=new no(P)}function Po(P,H,Q){var it=P[H];Pe.call(P,H)&&$(it,Q)&&(Q!==void 0||H in P)||(P[H]=Q)}function ps(P,H){for(var Q=P.length;Q--;)if($(P[Q][0],H))return Q;return-1}function gh(P,H,Q,it,oe,pe,ee){var Jt;if(it&&(Jt=pe?it(P,oe,pe,ee):it(P)),Jt!==void 0)return Jt;if(!Yt(P))return P;var Nr=Y(P);if(Nr){if(Jt=function(Ct){var vt=Ct.length,Dt=Ct.constructor(vt);return vt&&typeof Ct[0]=="string"&&Pe.call(Ct,"index")&&(Dt.index=Ct.index,Dt.input=Ct.input),Dt}(P),!H)return function(Ct,vt){var Dt=-1,Tn=Ct.length;for(vt||(vt=Array(Tn));++Dt<Tn;)vt[Dt]=Ct[Dt];return vt}(P,Jt)}else{var tn=hr(P),ro=tn==u||tn==s;if(te(P))return function(Ct,vt){if(vt)return Ct.slice();var Dt=new Ct.constructor(Ct.length);return Ct.copy(Dt),Dt}(P,H);if(tn==f||tn==o||ro&&!pe){if(G(P))return pe?P:{};if(Jt=function(Ct){return typeof Ct.constructor!="function"||Bm(Ct)?{}:Yt(vt=Bn(Ct))?cs(vt):{};var vt}(ro?{}:P),!H)return function(Ct,vt){return Ec(Ct,vh(Ct),vt)}(P,function(Ct,vt){return Ct&&Ec(vt,Fe(vt),Ct)}(Jt,P))}else{if(!W[tn])return pe?P:{};Jt=function(Ct,vt,Dt,Tn){var Xn=Ct.constructor;switch(vt){case h:return La(Ct);case i:case a:return new Xn(+Ct);case b:return function(qt,me){var $e=me?La(qt.buffer):qt.buffer;return new qt.constructor($e,qt.byteOffset,qt.byteLength)}(Ct,Tn);case w:case D:case C:case x:case S:case F:case z:case M:case R:return function(qt,me){var $e=me?La(qt.buffer):qt.buffer;return new qt.constructor($e,qt.byteOffset,qt.length)}(Ct,Tn);case l:return function(qt,me,$e){return X(me?$e(st(qt),!0):st(qt),T,new qt.constructor)}(Ct,Tn,Dt);case c:case v:return new Xn(Ct);case d:return function(qt){var me=new qt.constructor(qt.source,K.exec(qt));return me.lastIndex=qt.lastIndex,me}(Ct);case g:return function(qt,me,$e){return X(me?$e(mt(qt),!0):mt(qt),N,new qt.constructor)}(Ct,Tn,Dt);case m:return function(qt){return ui?Object(ui.call(qt)):{}}(Ct)}}(P,tn,gh,H)}}ee||(ee=new Na);var mh=ee.get(P);if(mh)return mh;if(ee.set(P,Jt),!Nr)var Fm=Q?function(Ct){return function(vt,Dt,Tn){var Xn=Dt(vt);return Y(vt)?Xn:function(qt,me){for(var $e=-1,jo=me.length,gs=qt.length;++$e<jo;)qt[gs+$e]=me[$e];return qt}(Xn,Tn(vt))}(Ct,Fe,vh)}(P):Fe(P);return function(Ct,vt){for(var Dt=-1,Tn=Ct?Ct.length:0;++Dt<Tn&&vt(Ct[Dt],Dt)!==!1;);}(Fm||P,function(Ct,vt){Fm&&(Ct=P[vt=Ct]),Po(Jt,vt,gh(Ct,H,Q,it,vt,P,ee))}),Jt}function La(P){var H=new P.constructor(P.byteLength);return new $t(H).set(new $t(P)),H}function Ec(P,H,Q,it){Q||(Q={});for(var oe=-1,pe=H.length;++oe<pe;){var ee=H[oe],Jt=it?it(Q[ee],P[ee],ee,Q,P):void 0;Po(Q,ee,Jt===void 0?P[ee]:Jt)}return Q}function hs(P,H){var Q,it,oe=P.__data__;return((it=typeof(Q=H))=="string"||it=="number"||it=="symbol"||it=="boolean"?Q!=="__proto__":Q===null)?oe[typeof H=="string"?"string":"hash"]:oe.map}function si(P,H){var Q=function(it,oe){return it==null?void 0:it[oe]}(P,H);return function(it){return!(!Yt(it)||function(oe){return!!gt&> in oe}(it))&&(Rt(it)||G(it)?Xt:V).test(j(it))}(Q)?Q:void 0}Fn.prototype.clear=function(){this.__data__=je?je(null):{}},Fn.prototype.delete=function(P){return this.has(P)&&delete this.__data__[P]},Fn.prototype.get=function(P){var H=this.__data__;if(je){var Q=H[P];return Q===n?void 0:Q}return Pe.call(H,P)?H[P]:void 0},Fn.prototype.has=function(P){var H=this.__data__;return je?H[P]!==void 0:Pe.call(H,P)},Fn.prototype.set=function(P,H){return this.__data__[P]=je&&H===void 0?n:H,this},no.prototype.clear=function(){this.__data__=[]},no.prototype.delete=function(P){var H=this.__data__,Q=ps(H,P);return!(Q<0||(Q==H.length-1?H.pop():mc.call(H,Q,1),0))},no.prototype.get=function(P){var H=this.__data__,Q=ps(H,P);return Q<0?void 0:H[Q][1]},no.prototype.has=function(P){return ps(this.__data__,P)>-1},no.prototype.set=function(P,H){var Q=this.__data__,it=ps(Q,P);return it<0?Q.push([P,H]):Q[it][1]=H,this},In.prototype.clear=function(){this.__data__={hash:new Fn,map:new(Qe||no),string:new Fn}},In.prototype.delete=function(P){return hs(this,P).delete(P)},In.prototype.get=function(P){return hs(this,P).get(P)},In.prototype.has=function(P){return hs(this,P).has(P)},In.prototype.set=function(P,H){return hs(this,P).set(P,H),this},Na.prototype.clear=function(){this.__data__=new no},Na.prototype.delete=function(P){return this.__data__.delete(P)},Na.prototype.get=function(P){return this.__data__.get(P)},Na.prototype.has=function(P){return this.__data__.has(P)},Na.prototype.set=function(P,H){var Q=this.__data__;if(Q instanceof no){var it=Q.__data__;if(!Qe||it.length<199)return it.push([P,H]),this;Q=this.__data__=new In(it)}return Q.set(P,H),this};var vh=fs?ht(fs,Object):function(){return[]},hr=function(P){return zt.call(P)};function km(P,H){return!!(H=H??r)&&(typeof P=="number"||U.test(P))&&P>-1&&P%1==0&&P<H}function Bm(P){var H=P&&P.constructor;return P===(typeof H=="function"&&H.prototype||Mt)}function j(P){if(P!=null){try{return Ft.call(P)}catch{}try{return P+""}catch{}}return""}function $(P,H){return P===H||P!=P&&H!=H}(_o&&hr(new _o(new ArrayBuffer(1)))!=b||Qe&&hr(new Qe)!=l||gn&&hr(gn.resolve())!=p||Kn&&hr(new Kn)!=g||Ir&&hr(new Ir)!=y)&&(hr=function(P){var H=zt.call(P),Q=H==f?P.constructor:void 0,it=Q?j(Q):void 0;if(it)switch(it){case Ia:return b;case ai:return l;case yc:return p;case bc:return g;case wc:return y}return H});var Y=Array.isArray;function dt(P){return P!=null&&function(H){return typeof H=="number"&&H>-1&&H%1==0&&H<=r}(P.length)&&!Rt(P)}var te=to||function(){return!1};function Rt(P){var H=Yt(P)?zt.call(P):"";return H==u||H==s}function Yt(P){var H=typeof P;return!!P&&(H=="object"||H=="function")}function Fe(P){return dt(P)?function(H,Q){var it=Y(H)||function(Jt){return function(Nr){return function(tn){return!!tn&&typeof tn=="object"}(Nr)&&dt(Nr)}(Jt)&&Pe.call(Jt,"callee")&&(!To.call(Jt,"callee")||zt.call(Jt)==o)}(H)?function(Jt,Nr){for(var tn=-1,ro=Array(Jt);++tn<Jt;)ro[tn]=Nr(tn);return ro}(H.length,String):[],oe=it.length,pe=!!oe;for(var ee in H)!Q&&!Pe.call(H,ee)||pe&&(ee=="length"||km(ee,oe))||it.push(ee);return it}(P):function(H){if(!Bm(H))return eo(H);var Q=[];for(var it in Object(H))Pe.call(H,it)&&it!="constructor"&&Q.push(it);return Q}(P)}t.exports=function(P){return gh(P,!0,!0)}});function p9(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var Vq=0;function Uq(t,e,n){const r=[];return t.forEach(o=>typeof o!="string"?r.push(o):e[Symbol.split](o).forEach((i,a,u)=>{i!==""&&r.push(i),a<u.length-1&&r.push(n)})),r}function h9(t,e){const n=/\$/g;let r=[t];if(e==null)return r;for(const o of Object.keys(e))if(o!=="_"){let i=e[o];typeof i=="string"&&(i=n[Symbol.replace](i,"$$$$")),r=Uq(r,new RegExp(`%\\{${o}\\}`,"g"),i)}return r}var g9=(Us=function(t){return"__private_"+Vq+++"_"+t}("apply"),class{constructor(t){Object.defineProperty(this,Us,{value:Wq}),this.locale={strings:{},pluralize:e=>e===1?0:1},Array.isArray(t)?t.forEach(p9(this,Us)[Us],this):p9(this,Us)[Us](t)}translate(t,e){return this.translateArray(t,e).join("")}translateArray(t,e){if(!function(r,o){return Object.prototype.hasOwnProperty.call(r,o)}(this.locale.strings,t))throw new Error(`missing string: ${t}`);const n=this.locale.strings[t];if(typeof n=="object"){if(e&&e.smart_count!==void 0)return h9(n[this.locale.pluralize(e.smart_count)],e);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return h9(n,e)}});function Wq(t){if(t==null||!t.strings)return;const e=this.locale;this.locale={...e,strings:{...e.strings,...t.strings}},this.locale.pluralize=t.pluralize||e.pluralize}var v9=function(){var t={},e=t._fns={};return t.emit=function(n,r,o,i,a,u,s){var l=function(c){for(var f=e[c]?e[c]:[],p=c.indexOf(":"),d=p===-1?[c]:[c.substring(0,p),c.substring(p+1)],g=Object.keys(e),v=0,m=g.length;v<m;v++){var y=g[v];if(y==="*"&&(f=f.concat(e[y])),d.length===2&&d[0]===y){f=f.concat(e[y]);break}}return f}(n);l.length&&function(c,f,p){for(var d=0,g=f.length;d<g&&f[d];d++)f[d].event=c,f[d].apply(f[d],p)}(n,l,[r,o,i,a,u,s])},t.on=function(n,r){e[n]||(e[n]=[]),e[n].push(r)},t.once=function(n,r){this.on(n,function o(){r.apply(this,arguments),t.off(n,o)})},t.off=function(n,r){var o=[];if(n&&r)for(var i=this._fns[n],a=0,u=i?i.length:0;a<u;a++)i[a]!==r&&o.push(i[a]);o.length?this._fns[n]=o:delete this._fns[n]},t};let{urlAlphabet:Gq}={urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"},m9=t=>crypto.getRandomValues(new Uint8Array(t)),y9=(t,e,n)=>{let r=(2<<Math.log(t.length-1)/Math.LN2)-1,o=-~(1.6*r*e/t.length);return()=>{let i="";for(;;){let a=n(o),u=o;for(;u--;)if(i+=t[a[u]&r]||"",i.length===e)return i}}};var qq={nanoid:(t=21)=>{let e="",n=crypto.getRandomValues(new Uint8Array(t));for(;t--;){let r=63&n[t];e+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return e},customAlphabet:(t,e)=>y9(t,e,m9),customRandom:y9,urlAlphabet:Gq,random:m9},c2=function(t){if(typeof t!="number"||isNaN(t))throw new TypeError("Expected a number, got "+typeof t);var e=t<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(e&&(t=-t),t<1)return(e?"-":"")+t+" B";var r=Math.min(Math.floor(Math.log(t)/Math.log(1024)),n.length-1);t=Number(t/Math.pow(1024,r));var o=n[r];return t>=10||t%1==0?(e?"-":"")+t.toFixed(0)+" "+o:(e?"-":"")+t.toFixed(1)+" "+o};function b9(t,e){this.text=t=t||"",this.hasWild=~t.indexOf("*"),this.separator=e,this.parts=t.split(e)}b9.prototype.match=function(t){var e,n,r=!0,o=this.parts,i=o.length;if(typeof t=="string"||t instanceof String)if(this.hasWild||this.text==t){for(n=(t||"").split(this.separator),e=0;r&&e<i;e++)o[e]!=="*"&&(r=e<n.length&&o[e]===n[e]);r=r&&n}else r=!1;else if(typeof t.splice=="function")for(r=[],e=t.length;e--;)this.match(t[e])&&(r[r.length]=t[e]);else if(typeof t=="object")for(var a in r={},t)this.match(a)&&(r[a]=t[a]);return r};var Kq=/[\/\+\.]/,Xq=0,f2=function(t){return"__private_"+Xq+++"_"+t}("publish");class w9{constructor(){Object.defineProperty(this,f2,{value:Yq}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const n={...this.state},r={...this.state,...e};this.state=r,function(o,i){if(!Object.prototype.hasOwnProperty.call(o,i))throw new TypeError("attempted to use private field on non-instance");return o}(this,f2)[f2](n,r,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function Yq(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this.callbacks.forEach(r=>{r(...e)})}w9.VERSION="2.0.3";var E9=function(t){const e=t.lastIndexOf(".");return e===-1||e===t.length-1?{name:t,extension:void 0}:{name:t.slice(0,e),extension:t.slice(e+1)}},D9={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function x9(t){let e="";return t.replace(/[^A-Z0-9]/gi,n=>(e+=`-${function(r){return r.charCodeAt(0).toString(32)}(n)}`,"/"))+e}var Jq=function(t){if(t==null&&(t=typeof navigator<"u"?navigator.userAgent:null),!t)return!0;const e=/Edge\/(\d+\.\d+)/.exec(t);if(!e)return!0;const n=e[1];let[r,o]=n.split(".");return r=parseInt(r,10),o=parseInt(o,10),r<15||r===15&&o<15063||r>18||r===18&&o>=18218};function d2(t){return t<10?`0${t}`:t.toString()}var T0=function(){const t=new Date;return`${d2(t.getHours())}:${d2(t.getMinutes())}:${d2(t.getSeconds())}`},C9={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return console.error(`[Uppy] [${T0()}]`,...e)}},debugLogger:{debug:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return console.debug(`[Uppy] [${T0()}]`,...e)},warn:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return console.warn(`[Uppy] [${T0()}]`,...e)},error:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return console.error(`[Uppy] [${T0()}]`,...e)}}},Zq={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",backToSearch:"Back to Search",emptyFolderAdded:"No files were added from empty folder",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"}}},S9=qq;let A9,O9;function ft(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var Qq=0;function Ue(t){return"__private_"+Qq+++"_"+t}const{nanoid:tK}=S9,{justErrorsLogger:eK,debugLogger:nK}=C9;class co extends Error{constructor(){super(...arguments),this.isRestriction=!0}}typeof AggregateError>"u"&&(globalThis.AggregateError=class extends Error{constructor(t,e){super(e),this.errors=t}});class rK extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var vn=Ue("plugins"),rf=Ue("storeUnsubscribe"),Vo=Ue("emitter"),ru=Ue("preProcessors"),ou=Ue("uploaders"),Uo=Ue("postProcessors"),of=Ue("checkRestrictions"),p2=Ue("checkMinNumberOfFiles"),af=Ue("checkRequiredMetaFieldsOnFile"),h2=Ue("checkRequiredMetaFields"),en=Ue("showOrLogErrorAndThrow"),uf=Ue("assertNewUploadAllowed"),sf=Ue("checkAndCreateFileStateObject"),lf=Ue("startIfAutoProceed"),g2=Ue("addListeners"),$r=Ue("updateOnlineStatus"),Wo=Ue("createUpload"),v2=Ue("getUpload"),iu=Ue("removeUpload"),Go=Ue("runUpload");A9=Symbol.for("uppy test: getPlugins"),O9=Symbol.for("uppy test: createUpload");class k9{constructor(e){Object.defineProperty(this,Go,{value:vK}),Object.defineProperty(this,iu,{value:gK}),Object.defineProperty(this,v2,{value:hK}),Object.defineProperty(this,Wo,{value:pK}),Object.defineProperty(this,g2,{value:dK}),Object.defineProperty(this,lf,{value:fK}),Object.defineProperty(this,sf,{value:cK}),Object.defineProperty(this,uf,{value:lK}),Object.defineProperty(this,en,{value:sK}),Object.defineProperty(this,h2,{value:uK}),Object.defineProperty(this,af,{value:aK}),Object.defineProperty(this,p2,{value:iK}),Object.defineProperty(this,of,{value:oK}),Object.defineProperty(this,vn,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,rf,{writable:!0,value:void 0}),Object.defineProperty(this,Vo,{writable:!0,value:v9()}),Object.defineProperty(this,ru,{writable:!0,value:new Set}),Object.defineProperty(this,ou,{writable:!0,value:new Set}),Object.defineProperty(this,Uo,{writable:!0,value:new Set}),Object.defineProperty(this,$r,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=Zq;const n={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:{maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]},meta:{},onBeforeFileAdded:r=>r,onBeforeUpload:r=>r,store:new w9,logger:eK,infoTimeout:5e3};if(this.opts={...n,...e,restrictions:{...n.restrictions,...e&&e.restrictions}},e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=nK),this.log(`Using Core v${this.constructor.VERSION}`),this.opts.restrictions.allowedFileTypes&&this.opts.restrictions.allowedFileTypes!==null&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=nu(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:Jq(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),ft(this,rf)[rf]=this.store.subscribe((r,o,i)=>{this.emit("state-update",r,o,i),this.updateAll(o)}),this.opts.debug&&typeof window<"u"&&(window[this.opts.id]=this),ft(this,g2)[g2]()}emit(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];ft(this,Vo)[Vo].emit(e,...r)}on(e,n){return ft(this,Vo)[Vo].on(e,n),this}once(e,n){return ft(this,Vo)[Vo].once(e,n),this}off(e,n){return ft(this,Vo)[Vo].off(e,n),this}updateAll(e){this.iteratePlugins(n=>{n.update(e)})}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,n){if(!this.getState().files[e])throw new Error(`Can\u2019t set state for ${e} (the file could have been removed)`);this.setState({files:{...this.getState().files,[e]:{...this.getState().files[e],...n}}})}i18nInit(){const e=new g9([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...e&&e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins(n=>{n.setOptions()}),this.setState()}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},n={...this.getState().files},r={};Object.keys(n).forEach(o=>{const i={...n[o]};i.progress={...i.progress,...e},r[o]=i}),this.setState({files:r,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){ft(this,ru)[ru].add(e)}removePreProcessor(e){return ft(this,ru)[ru].delete(e)}addPostProcessor(e){ft(this,Uo)[Uo].add(e)}removePostProcessor(e){return ft(this,Uo)[Uo].delete(e)}addUploader(e){ft(this,ou)[ou].add(e)}removeUploader(e){return ft(this,ou)[ou].delete(e)}setMeta(e){const n={...this.getState().meta,...e},r={...this.getState().files};Object.keys(r).forEach(o=>{r[o]={...r[o],meta:{...r[o].meta,...e}}}),this.log("Adding metadata:"),this.log(e),this.setState({meta:n,files:r})}setFileMeta(e,n){const r={...this.getState().files};if(!r[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const o={...r[e].meta,...n};r[e]={...r[e],meta:o},this.setState({files:r})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){const{files:e,totalProgress:n,error:r}=this.getState(),o=Object.values(e),i=o.filter(g=>{let{progress:v}=g;return!v.uploadComplete&&v.uploadStarted}),a=o.filter(g=>!g.progress.uploadStarted),u=o.filter(g=>g.progress.uploadStarted||g.progress.preprocess||g.progress.postprocess),s=o.filter(g=>g.progress.uploadStarted),l=o.filter(g=>g.isPaused),c=o.filter(g=>g.progress.uploadComplete),f=o.filter(g=>g.error),p=i.filter(g=>!g.isPaused),d=o.filter(g=>g.progress.preprocess||g.progress.postprocess);return{newFiles:a,startedFiles:u,uploadStartedFiles:s,pausedFiles:l,completeFiles:c,erroredFiles:f,inProgressFiles:i,inProgressNotPausedFiles:p,processingFiles:d,isUploadStarted:s.length>0,isAllComplete:n===100&&c.length===o.length&&d.length===0,isAllErrored:!!r&&f.length===o.length,isAllPaused:i.length!==0&&l.length===i.length,isUploadInProgress:i.length>0,isSomeGhost:o.some(g=>g.isGhost)}}validateRestrictions(e,n){try{return ft(this,of)[of](e,n),{result:!0}}catch(r){return{result:!1,reason:r.message}}}checkIfFileAlreadyExists(e){const{files:n}=this.getState();return!(!n[e]||n[e].isGhost)}addFile(e){ft(this,uf)[uf](e);const{files:n}=this.getState();let r=ft(this,sf)[sf](n,e);return n[r.id]&&n[r.id].isGhost&&(r={...n[r.id],data:e.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${r.name}, ${r.id}`)),this.setState({files:{...n,[r.id]:r}}),this.emit("file-added",r),this.emit("files-added",[r]),this.log(`Added file: ${r.name}, ${r.id}, mime type: ${r.type}`),ft(this,lf)[lf](),r.id}addFiles(e){ft(this,uf)[uf]();const n={...this.getState().files},r=[],o=[];for(let i=0;i<e.length;i++)try{let a=ft(this,sf)[sf](n,e[i]);n[a.id]&&n[a.id].isGhost&&(a={...n[a.id],data:e[i].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${a.name}, ${a.id}`)),n[a.id]=a,r.push(a)}catch(a){a.isRestriction||o.push(a)}if(this.setState({files:n}),r.forEach(i=>{this.emit("file-added",i)}),this.emit("files-added",r),r.length>5?this.log(`Added batch of ${r.length} files`):Object.keys(r).forEach(i=>{this.log(`Added file: ${r[i].name}
- id: ${r[i].id}
- type: ${r[i].type}`)}),r.length>0&&ft(this,lf)[lf](),o.length>0){let i=`Multiple errors occurred while adding files:
- `;if(o.forEach(a=>{i+=`
- * ${a.message}`}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:o.length}),details:i},"error",this.opts.infoTimeout),typeof AggregateError=="function")throw new AggregateError(o,i);{const a=new Error(i);throw a.errors=o,a}}}removeFiles(e,n){const{files:r,currentUploads:o}=this.getState(),i={...r},a={...o},u=Object.create(null);function s(f){return u[f]===void 0}e.forEach(f=>{r[f]&&(u[f]=r[f],delete i[f])}),Object.keys(a).forEach(f=>{const p=o[f].fileIDs.filter(s);p.length!==0?a[f]={...o[f],fileIDs:p}:delete a[f]});const l={currentUploads:a,files:i};Object.keys(i).length===0&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),this.setState(l),this.calculateTotalProgress();const c=Object.keys(u);c.forEach(f=>{this.emit("file-removed",u[f],n)}),c.length>5?this.log(`Removed ${c.length} files`):this.log(`Removed files: ${c.join(", ")}`)}removeFile(e,n){n===void 0&&(n=null),this.removeFiles([e],n)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const n=!this.getFile(e).isPaused;return this.setFileState(e,{isPaused:n}),this.emit("upload-pause",e,n),n}pauseAll(){const e={...this.getState().files};Object.keys(e).filter(n=>!e[n].progress.uploadComplete&&e[n].progress.uploadStarted).forEach(n=>{const r={...e[n],isPaused:!0};e[n]=r}),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter(n=>!e[n].progress.uploadComplete&&e[n].progress.uploadStarted).forEach(n=>{const r={...e[n],isPaused:!1,error:null};e[n]=r}),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},n=Object.keys(e).filter(o=>e[o].error);if(n.forEach(o=>{const i={...e[o],isPaused:!1,error:null};e[o]=i}),this.setState({files:e,error:null}),this.emit("retry-all",n),n.length===0)return Promise.resolve({successful:[],failed:[]});const r=ft(this,Wo)[Wo](n,{forceAllowNewUpload:!0});return ft(this,Go)[Go](r)}cancelAll(){this.emit("cancel-all");const{files:e}=this.getState(),n=Object.keys(e);n.length&&this.removeFiles(n,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);const n=ft(this,Wo)[Wo]([e],{forceAllowNewUpload:!0});return ft(this,Go)[Go](n)}reset(){this.cancelAll()}logout(){this.iteratePlugins(e=>{e.provider&&e.provider.logout&&e.provider.logout()})}calculateProgress(e,n){if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const r=Number.isFinite(n.bytesTotal)&&n.bytesTotal>0;this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:n.bytesUploaded,bytesTotal:n.bytesTotal,percentage:r?Math.round(n.bytesUploaded/n.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const e=this.getFiles().filter(s=>s.progress.uploadStarted||s.progress.preprocess||s.progress.postprocess);if(e.length===0)return this.emit("progress",0),void this.setState({totalProgress:0});const n=e.filter(s=>s.progress.bytesTotal!=null),r=e.filter(s=>s.progress.bytesTotal==null);if(n.length===0){const s=100*e.length,l=r.reduce((f,p)=>f+p.progress.percentage,0),c=Math.round(l/s*100);return void this.setState({totalProgress:c})}let o=n.reduce((s,l)=>s+l.progress.bytesTotal,0);const i=o/n.length;o+=i*r.length;let a=0;n.forEach(s=>{a+=s.progress.bytesUploaded}),r.forEach(s=>{a+=i*(s.progress.percentage||0)/100});let u=o===0?0:Math.round(a/o*100);u>100&&(u=100),this.setState({totalProgress:u}),this.emit("progress",u)}updateOnlineStatus(){window.navigator.onLine===void 0||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,n){if(typeof e!="function")throw new TypeError(`Expected a plugin class, but got ${e===null?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`);const r=new e(this,n),o=r.id;if(!o)throw new Error("Your plugin must have an id");if(!r.type)throw new Error("Your plugin must have a type");const i=this.getPlugin(o);if(i){const a=`Already found a plugin named '${i.id}'. Tried to use: '${o}'.
- Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(a)}return e.VERSION&&this.log(`Using ${o} v${e.VERSION}`),r.type in ft(this,vn)[vn]?ft(this,vn)[vn][r.type].push(r):ft(this,vn)[vn][r.type]=[r],r.install(),this}getPlugin(e){for(const n of Object.values(ft(this,vn)[vn])){const r=n.find(o=>o.id===e);if(r!=null)return r}}[A9](e){return ft(this,vn)[vn][e]}iteratePlugins(e){Object.values(ft(this,vn)[vn]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const n=ft(this,vn)[vn][e.type],r=n.findIndex(i=>i.id===e.id);r!==-1&&n.splice(r,1);const o={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(o)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),ft(this,rf)[rf](),this.iteratePlugins(e=>{this.removePlugin(e)}),typeof window<"u"&&window.removeEventListener&&(window.removeEventListener("online",ft(this,$r)[$r]),window.removeEventListener("offline",ft(this,$r)[$r]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,n,r){n===void 0&&(n="info"),r===void 0&&(r=3e3);const o=typeof e=="object";this.setState({info:[...this.getState().info,{type:n,message:o?e.message:e,details:o?e.details:null}]}),setTimeout(()=>this.hideInfo(),r),this.emit("info-visible")}log(e,n){const{logger:r}=this.opts;switch(n){case"error":r.error(e);break;case"warning":r.warn(e);break;default:r.debug(e)}}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?ft(this,Go)[Go](e):(ft(this,iu)[iu](e),Promise.reject(new Error("Nonexistent upload")))}[O9](){return ft(this,Wo)[Wo](...arguments)}addResultData(e,n){if(!ft(this,v2)[v2](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:r}=this.getState(),o={...r[e],result:{...r[e].result,...n}};this.setState({currentUploads:{...r,[e]:o}})}upload(){var e;(e=ft(this,vn)[vn].uploader)!=null&&e.length||this.log("No uploader type plugins are used","warning");let{files:n}=this.getState();const r=this.opts.onBeforeUpload(n);return r===!1?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(r&&typeof r=="object"&&(n=r,this.setState({files:n})),Promise.resolve().then(()=>{ft(this,p2)[p2](n),ft(this,h2)[h2](n)}).catch(o=>{ft(this,en)[en](o)}).then(()=>{const{currentUploads:o}=this.getState(),i=Object.values(o).flatMap(s=>s.fileIDs),a=[];Object.keys(n).forEach(s=>{const l=this.getFile(s);l.progress.uploadStarted||i.indexOf(s)!==-1||a.push(l.id)});const u=ft(this,Wo)[Wo](a);return ft(this,Go)[Go](u)}).catch(o=>{ft(this,en)[en](o,{showInformer:!1})}))}}function oK(t,e){e===void 0&&(e=this.getFiles());const{maxFileSize:n,minFileSize:r,maxTotalFileSize:o,maxNumberOfFiles:i,allowedFileTypes:a}=this.opts.restrictions;if(i&&e.length+1>i)throw new co(`${this.i18n("youCanOnlyUploadX",{smart_count:i})}`);if(a&&!a.some(u=>u.indexOf("/")>-1?!!t.type&&function(s,l){function c(f){var p=function(d,g,v){var m=new b9(d,Kq||/[\/\.]/);return g!==void 0?m.match(g):m}(f,s);return p&&p.length>=2}return l?c(l.split(";")[0]):c}(t.type.replace(/;.*?$/,""),u):!(u[0]!=="."||!t.extension)&&t.extension.toLowerCase()===u.substr(1).toLowerCase())){const u=a.join(", ");throw new co(this.i18n("youCanOnlyUploadFileTypes",{types:u}))}if(o&&t.size!=null){let u=0;if(u+=t.size,e.forEach(s=>{u+=s.size}),u>o)throw new co(this.i18n("exceedsSize",{size:c2(o),file:t.name}))}if(n&&t.size!=null&&t.size>n)throw new co(this.i18n("exceedsSize",{size:c2(n),file:t.name}));if(r&&t.size!=null&&t.size<r)throw new co(this.i18n("inferiorSize",{size:c2(r)}))}function iK(t){const{minNumberOfFiles:e}=this.opts.restrictions;if(Object.keys(t).length<e)throw new co(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:e})}`)}function aK(t){const{requiredMetaFields:e}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],o=[];for(let i=0;i<e.length;i++)if(!n.call(t.meta,e[i])||t.meta[e[i]]===""){const a=new co(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:t.name})}`);r.push(a),o.push(e[i]),ft(this,en)[en](a,{file:t,showInformer:!1,throwErr:!1})}return this.setFileState(t.id,{missingRequiredMetaFields:o}),r}function uK(t){const e=Object.keys(t).flatMap(n=>{const r=this.getFile(n);return ft(this,af)[af](r)});if(e.length)throw new rK(e,`${this.i18n("missingRequiredMetaField")}`)}function sK(t,e){let{showInformer:n=!0,file:r=null,throwErr:o=!0}=e===void 0?{}:e;const i=typeof t=="object"?t.message:t,a=typeof t=="object"&&t.details?t.details:"";let u=i;if(a&&(u+=` ${a}`),t.isRestriction?(this.log(u),this.emit("restriction-failed",r,t)):this.log(u,"error"),n&&this.info({message:i,details:a},"error",this.opts.infoTimeout),o)throw typeof t=="object"?t:new Error(t)}function lK(t){const{allowNewUpload:e}=this.getState();e===!1&&ft(this,en)[en](new co(this.i18n("noMoreFilesAllowed")),{file:t})}function cK(t,e){const n=function(f){var p;if(f.type)return f.type;const d=f.name?(p=E9(f.name).extension)==null?void 0:p.toLowerCase():null;return d&&d in D9?D9[d]:"application/octet-stream"}(e),r=function(f,p){return p.name?p.name:f.split("/")[0]==="image"?`${f.split("/")[0]}.${f.split("/")[1]}`:"noname"}(n,e),o=E9(r).extension,i=!!e.isRemote,a=function(f){let p="uppy";return typeof f.name=="string"&&(p+=`-${x9(f.name.toLowerCase())}`),f.type!==void 0&&(p+=`-${f.type}`),f.meta&&typeof f.meta.relativePath=="string"&&(p+=`-${x9(f.meta.relativePath.toLowerCase())}`),f.data.size!==void 0&&(p+=`-${f.data.size}`),f.data.lastModified!==void 0&&(p+=`-${f.data.lastModified}`),p}({...e,type:n});if(this.checkIfFileAlreadyExists(a)){const f=new co(this.i18n("noDuplicates",{fileName:r}));ft(this,en)[en](f,{file:e})}const u=e.meta||{};u.name=r,u.type=n;const s=Number.isFinite(e.data.size)?e.data.size:null;let l={source:e.source||"",id:a,name:r,extension:o||"",meta:{...this.getState().meta,...u},type:n,data:e.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:s,uploadComplete:!1,uploadStarted:null},size:s,isRemote:i,remote:e.remote||"",preview:e.preview};const c=this.opts.onBeforeFileAdded(l,t);c===!1?ft(this,en)[en](new co("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:e}):typeof c=="object"&&c!==null&&(l=c);try{const f=Object.keys(t).map(p=>t[p]);ft(this,of)[of](l,f)}catch(f){ft(this,en)[en](f,{file:l})}return l}function fK(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(()=>{this.scheduledAutoProceed=null,this.upload().catch(t=>{t.isRestriction||this.log(t.stack||t.message||t)})},4))}function dK(){const t=(e,n,r)=>{let o=e.message||"Unknown error";e.details&&(o+=` ${e.details}`),this.setState({error:o}),n!=null&&n.id in this.getState().files&&this.setFileState(n.id,{error:o,response:r})};this.on("error",t),this.on("upload-error",(e,n,r)=>{if(t(n,e,r),typeof n=="object"&&n.message){const o=new Error(n.message);o.details=n.message,n.details&&(o.details+=` ${n.details}`),o.message=this.i18n("failedToUpload",{file:e.name}),ft(this,en)[en](o,{throwErr:!1})}else ft(this,en)[en](n,{throwErr:!1})}),this.on("upload",()=>{this.setState({error:null})}),this.on("upload-started",e=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(e,n)=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const r=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...r,postprocess:ft(this,Uo)[Uo].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:r.bytesTotal},response:n,uploadURL:n.uploadURL,isPaused:!1}),e.size==null&&this.setFileState(e.id,{size:n.bytesUploaded||r.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(e,n)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:n}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)}),this.on("preprocess-complete",e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n={...this.getState().files};n[e.id]={...n[e.id],progress:{...n[e.id].progress}},delete n[e.id].progress.preprocess,this.setState({files:n})}),this.on("postprocess-progress",(e,n)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:n}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)}),this.on("postprocess-complete",e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n={...this.getState().files};n[e.id]={...n[e.id],progress:{...n[e.id].progress}},delete n[e.id].progress.postprocess,this.setState({files:n})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",e=>{e&&ft(this,af)[af](e)}),typeof window<"u"&&window.addEventListener&&(window.addEventListener("online",ft(this,$r)[$r]),window.addEventListener("offline",ft(this,$r)[$r]),setTimeout(ft(this,$r)[$r],3e3))}function pK(t,e){e===void 0&&(e={});const{forceAllowNewUpload:n=!1}=e,{allowNewUpload:r,currentUploads:o}=this.getState();if(!r&&!n)throw new Error("Cannot create a new upload: already uploading.");const i=tK();return this.emit("upload",{id:i,fileIDs:t}),this.setState({allowNewUpload:this.opts.allowMultipleUploadBatches!==!1&&this.opts.allowMultipleUploads!==!1,currentUploads:{...o,[i]:{fileIDs:t,step:0,result:{}}}}),i}function hK(t){const{currentUploads:e}=this.getState();return e[t]}function gK(t){const e={...this.getState().currentUploads};delete e[t],this.setState({currentUploads:e})}async function vK(t){let{currentUploads:e}=this.getState(),n=e[t];const r=n.step||0,o=[...ft(this,ru)[ru],...ft(this,ou)[ou],...ft(this,Uo)[Uo]];try{for(let a=r;a<o.length&&n;a++){const u=o[a],s={...n,step:a};this.setState({currentUploads:{...e,[t]:s}}),await u(s.fileIDs,t),e=this.getState().currentUploads,n=e[t]}}catch(a){throw this.emit("error",a),ft(this,iu)[iu](t),a}if(n){n.fileIDs.forEach(l=>{const c=this.getFile(l);c&&c.progress.postprocess&&this.emit("postprocess-complete",c)});const a=n.fileIDs.map(l=>this.getFile(l)),u=a.filter(l=>!l.error),s=a.filter(l=>l.error);await this.addResultData(t,{successful:u,failed:s,uploadID:t}),e=this.getState().currentUploads,n=e[t]}let i;return n&&(i=n.result,this.emit("complete",i),ft(this,iu)[iu](t)),i==null&&this.log(`Not setting result for an upload that has been removed: ${t}`),i}k9.VERSION="2.1.3";var B9=k9,mK=Ra(function(t,e){var n,r,o,i,a,u,s,l,c={},f=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function d(B,O){for(var T in O)B[T]=O[T];return B}function g(B){var O=B.parentNode;O&&O.removeChild(B)}function v(B,O,T){var N,X,G,st={};for(G in O)G=="key"?N=O[G]:G=="ref"?X=O[G]:st[G]=O[G];if(arguments.length>2&&(st.children=arguments.length>3?n.call(arguments,2):T),typeof B=="function"&&B.defaultProps!=null)for(G in B.defaultProps)st[G]===void 0&&(st[G]=B.defaultProps[G]);return m(B,st,N,X,null)}function m(B,O,T,N,X){var G={type:B,props:O,key:T,ref:N,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:X??++o};return X==null&&r.vnode!=null&&r.vnode(G),G}function y(B){return B.children}function h(B,O){this.props=B,this.context=O}function b(B,O){if(O==null)return B.__?b(B.__,B.__.__k.indexOf(B)+1):null;for(var T;O<B.__k.length;O++)if((T=B.__k[O])!=null&&T.__e!=null)return T.__e;return typeof B.type=="function"?b(B):null}function w(B){var O,T;if((B=B.__)!=null&&B.__c!=null){for(B.__e=B.__c.base=null,O=0;O<B.__k.length;O++)if((T=B.__k[O])!=null&&T.__e!=null){B.__e=B.__c.base=T.__e;break}return w(B)}}function D(B){(!B.__d&&(B.__d=!0)&&a.push(B)&&!C.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||u)(C)}function C(){for(var B;C.__r=a.length;)B=a.sort(function(O,T){return O.__v.__b-T.__v.__b}),a=[],B.some(function(O){var T,N,X,G,st,ht;O.__d&&(st=(G=(T=O).__v).__e,(ht=T.__P)&&(N=[],(X=d({},G)).__v=G.__v+1,V(ht,G,X,T.__n,ht.ownerSVGElement!==void 0,G.__h!=null?[st]:null,N,st??b(G),G.__h),U(N,G),G.__e!=st&&w(G)))})}function x(B,O,T,N,X,G,st,ht,mt,Bt){var q,Mt,bt,gt,Ft,Pe,zt,Xt=N&&N.__k||f,Be=Xt.length;for(T.__k=[],q=0;q<O.length;q++)if((gt=T.__k[q]=(gt=O[q])==null||typeof gt=="boolean"?null:typeof gt=="string"||typeof gt=="number"||typeof gt=="bigint"?m(null,gt,null,null,gt):Array.isArray(gt)?m(y,{children:gt},null,null,null):gt.__b>0?m(gt.type,gt.props,gt.key,null,gt.__v):gt)!=null){if(gt.__=T,gt.__b=T.__b+1,(bt=Xt[q])===null||bt&>.key==bt.key&>.type===bt.type)Xt[q]=void 0;else for(Mt=0;Mt<Be;Mt++){if((bt=Xt[Mt])&>.key==bt.key&>.type===bt.type){Xt[Mt]=void 0;break}bt=null}V(B,gt,bt=bt||c,X,G,st,ht,mt,Bt),Ft=gt.__e,(Mt=gt.ref)&&bt.ref!=Mt&&(zt||(zt=[]),bt.ref&&zt.push(bt.ref,null,gt),zt.push(Mt,gt.__c||Ft,gt)),Ft!=null?(Pe==null&&(Pe=Ft),typeof gt.type=="function"&>.__k===bt.__k?gt.__d=mt=S(gt,mt,B):mt=F(B,gt,bt,Xt,Ft,mt),typeof T.type=="function"&&(T.__d=mt)):mt&&bt.__e==mt&&mt.parentNode!=B&&(mt=b(bt))}for(T.__e=Pe,q=Be;q--;)Xt[q]!=null&&(typeof T.type=="function"&&Xt[q].__e!=null&&Xt[q].__e==T.__d&&(T.__d=b(N,q+1)),lt(Xt[q],Xt[q]));if(zt)for(q=0;q<zt.length;q++)Z(zt[q],zt[++q],zt[++q])}function S(B,O,T){for(var N,X=B.__k,G=0;X&&G<X.length;G++)(N=X[G])&&(N.__=B,O=typeof N.type=="function"?S(N,O,T):F(T,N,N,X,N.__e,O));return O}function F(B,O,T,N,X,G){var st,ht,mt;if(O.__d!==void 0)st=O.__d,O.__d=void 0;else if(T==null||X!=G||X.parentNode==null)t:if(G==null||G.parentNode!==B)B.appendChild(X),st=null;else{for(ht=G,mt=0;(ht=ht.nextSibling)&&mt<N.length;mt+=2)if(ht==X)break t;B.insertBefore(X,G),st=G}return st!==void 0?st:X.nextSibling}function z(B,O,T){O[0]==="-"?B.setProperty(O,T):B[O]=T==null?"":typeof T!="number"||p.test(O)?T:T+"px"}function M(B,O,T,N,X){var G;t:if(O==="style")if(typeof T=="string")B.style.cssText=T;else{if(typeof N=="string"&&(B.style.cssText=N=""),N)for(O in N)T&&O in T||z(B.style,O,"");if(T)for(O in T)N&&T[O]===N[O]||z(B.style,O,T[O])}else if(O[0]==="o"&&O[1]==="n")G=O!==(O=O.replace(/Capture$/,"")),O=O.toLowerCase()in B?O.toLowerCase().slice(2):O.slice(2),B.l||(B.l={}),B.l[O+G]=T,T?N||B.addEventListener(O,G?K:R,G):B.removeEventListener(O,G?K:R,G);else if(O!=="dangerouslySetInnerHTML"){if(X)O=O.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(O!=="href"&&O!=="list"&&O!=="form"&&O!=="tabIndex"&&O!=="download"&&O in B)try{B[O]=T??"";break t}catch{}typeof T=="function"||(T!=null&&(T!==!1||O[0]==="a"&&O[1]==="r")?B.setAttribute(O,T):B.removeAttribute(O))}}function R(B){this.l[B.type+!1](r.event?r.event(B):B)}function K(B){this.l[B.type+!0](r.event?r.event(B):B)}function V(B,O,T,N,X,G,st,ht,mt){var Bt,q,Mt,bt,gt,Ft,Pe,zt,Xt,Be,kn,$t=O.type;if(O.constructor!==void 0)return null;T.__h!=null&&(mt=T.__h,ht=O.__e=T.__e,O.__h=null,G=[ht]),(Bt=r.__b)&&Bt(O);try{t:if(typeof $t=="function"){if(zt=O.props,Xt=(Bt=$t.contextType)&&N[Bt.__c],Be=Bt?Xt?Xt.props.value:Bt.__:N,T.__c?Pe=(q=O.__c=T.__c).__=q.__E:("prototype"in $t&&$t.prototype.render?O.__c=q=new $t(zt,Be):(O.__c=q=new h(zt,Be),q.constructor=$t,q.render=ut),Xt&&Xt.sub(q),q.props=zt,q.state||(q.state={}),q.context=Be,q.__n=N,Mt=q.__d=!0,q.__h=[]),q.__s==null&&(q.__s=q.state),$t.getDerivedStateFromProps!=null&&(q.__s==q.state&&(q.__s=d({},q.__s)),d(q.__s,$t.getDerivedStateFromProps(zt,q.__s))),bt=q.props,gt=q.state,Mt)$t.getDerivedStateFromProps==null&&q.componentWillMount!=null&&q.componentWillMount(),q.componentDidMount!=null&&q.__h.push(q.componentDidMount);else{if($t.getDerivedStateFromProps==null&&zt!==bt&&q.componentWillReceiveProps!=null&&q.componentWillReceiveProps(zt,Be),!q.__e&&q.shouldComponentUpdate!=null&&q.shouldComponentUpdate(zt,q.__s,Be)===!1||O.__v===T.__v){q.props=zt,q.state=q.__s,O.__v!==T.__v&&(q.__d=!1),q.__v=O,O.__e=T.__e,O.__k=T.__k,O.__k.forEach(function(Bn){Bn&&(Bn.__=O)}),q.__h.length&&st.push(q);break t}q.componentWillUpdate!=null&&q.componentWillUpdate(zt,q.__s,Be),q.componentDidUpdate!=null&&q.__h.push(function(){q.componentDidUpdate(bt,gt,Ft)})}q.context=Be,q.props=zt,q.state=q.__s,(Bt=r.__r)&&Bt(O),q.__d=!1,q.__v=O,q.__P=B,Bt=q.render(q.props,q.state,q.context),q.state=q.__s,q.getChildContext!=null&&(N=d(d({},N),q.getChildContext())),Mt||q.getSnapshotBeforeUpdate==null||(Ft=q.getSnapshotBeforeUpdate(bt,gt)),kn=Bt!=null&&Bt.type===y&&Bt.key==null?Bt.props.children:Bt,x(B,Array.isArray(kn)?kn:[kn],O,T,N,X,G,st,ht,mt),q.base=O.__e,O.__h=null,q.__h.length&&st.push(q),Pe&&(q.__E=q.__=null),q.__e=!1}else G==null&&O.__v===T.__v?(O.__k=T.__k,O.__e=T.__e):O.__e=W(T.__e,O,T,N,X,G,st,mt);(Bt=r.diffed)&&Bt(O)}catch(Bn){O.__v=null,(mt||G!=null)&&(O.__e=ht,O.__h=!!mt,G[G.indexOf(ht)]=null),r.__e(Bn,O,T)}}function U(B,O){r.__c&&r.__c(O,B),B.some(function(T){try{B=T.__h,T.__h=[],B.some(function(N){N.call(T)})}catch(N){r.__e(N,T.__v)}})}function W(B,O,T,N,X,G,st,ht){var mt,Bt,q,Mt=T.props,bt=O.props,gt=O.type,Ft=0;if(gt==="svg"&&(X=!0),G!=null){for(;Ft<G.length;Ft++)if((mt=G[Ft])&&"setAttribute"in mt==!!gt&&(gt?mt.localName===gt:mt.nodeType===3)){B=mt,G[Ft]=null;break}}if(B==null){if(gt===null)return document.createTextNode(bt);B=X?document.createElementNS("http://www.w3.org/2000/svg",gt):document.createElement(gt,bt.is&&bt),G=null,ht=!1}if(gt===null)Mt===bt||ht&&B.data===bt||(B.data=bt);else{if(G=G&&n.call(B.childNodes),Bt=(Mt=T.props||c).dangerouslySetInnerHTML,q=bt.dangerouslySetInnerHTML,!ht){if(G!=null)for(Mt={},Ft=0;Ft<B.attributes.length;Ft++)Mt[B.attributes[Ft].name]=B.attributes[Ft].value;(q||Bt)&&(q&&(Bt&&q.__html==Bt.__html||q.__html===B.innerHTML)||(B.innerHTML=q&&q.__html||""))}if(function(Pe,zt,Xt,Be,kn){var $t;for($t in Xt)$t==="children"||$t==="key"||$t in zt||M(Pe,$t,null,Xt[$t],Be);for($t in zt)kn&&typeof zt[$t]!="function"||$t==="children"||$t==="key"||$t==="value"||$t==="checked"||Xt[$t]===zt[$t]||M(Pe,$t,zt[$t],Xt[$t],Be)}(B,bt,Mt,X,ht),q)O.__k=[];else if(Ft=O.props.children,x(B,Array.isArray(Ft)?Ft:[Ft],O,T,N,X&>!=="foreignObject",G,st,G?G[0]:T.__k&&b(T,0),ht),G!=null)for(Ft=G.length;Ft--;)G[Ft]!=null&&g(G[Ft]);ht||("value"in bt&&(Ft=bt.value)!==void 0&&(Ft!==Mt.value||Ft!==B.value||gt==="progress"&&!Ft)&&M(B,"value",Ft,Mt.value,!1),"checked"in bt&&(Ft=bt.checked)!==void 0&&Ft!==B.checked&&M(B,"checked",Ft,Mt.checked,!1))}return B}function Z(B,O,T){try{typeof B=="function"?B(O):B.current=O}catch(N){r.__e(N,T)}}function lt(B,O,T){var N,X;if(r.unmount&&r.unmount(B),(N=B.ref)&&(N.current&&N.current!==B.__e||Z(N,null,O)),(N=B.__c)!=null){if(N.componentWillUnmount)try{N.componentWillUnmount()}catch(G){r.__e(G,O)}N.base=N.__P=null}if(N=B.__k)for(X=0;X<N.length;X++)N[X]&<(N[X],O,typeof B.type!="function");T||B.__e==null||g(B.__e),B.__e=B.__d=void 0}function ut(B,O,T){return this.constructor(B,T)}function at(B,O,T){var N,X,G;r.__&&r.__(B,O),X=(N=typeof T=="function")?null:T&&T.__k||O.__k,G=[],V(O,B=(!N&&T||O).__k=v(y,null,[B]),X||c,c,O.ownerSVGElement!==void 0,!N&&T?[T]:X?null:O.firstChild?n.call(O.childNodes):null,G,!N&&T?T:X?X.__e:O.firstChild,N),U(G,B)}n=f.slice,r={__e:function(B,O){for(var T,N,X;O=O.__;)if((T=O.__c)&&!T.__)try{if((N=T.constructor)&&N.getDerivedStateFromError!=null&&(T.setState(N.getDerivedStateFromError(B)),X=T.__d),T.componentDidCatch!=null&&(T.componentDidCatch(B),X=T.__d),X)return T.__E=T}catch(G){B=G}throw B}},o=0,i=function(B){return B!=null&&B.constructor===void 0},h.prototype.setState=function(B,O){var T;T=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=d({},this.state),typeof B=="function"&&(B=B(d({},T),this.props)),B&&d(T,B),B!=null&&this.__v&&(O&&this.__h.push(O),D(this))},h.prototype.forceUpdate=function(B){this.__v&&(this.__e=!0,B&&this.__h.push(B),D(this))},h.prototype.render=y,a=[],u=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,C.__r=0,l=0,e.Component=h,e.Fragment=y,e.cloneElement=function(B,O,T){var N,X,G,st=d({},B.props);for(G in O)G=="key"?N=O[G]:G=="ref"?X=O[G]:st[G]=O[G];return arguments.length>2&&(st.children=arguments.length>3?n.call(arguments,2):T),m(B.type,st,N||B.key,X||B.ref,null)},e.createContext=function(B,O){var T={__c:O="__cC"+l++,__:B,Consumer:function(N,X){return N.children(X)},Provider:function(N){var X,G;return this.getChildContext||(X=[],(G={})[O]=this,this.getChildContext=function(){return G},this.shouldComponentUpdate=function(st){this.props.value!==st.value&&X.some(D)},this.sub=function(st){X.push(st);var ht=st.componentWillUnmount;st.componentWillUnmount=function(){X.splice(X.indexOf(st),1),ht&&ht.call(st)}}),N.children}};return T.Provider.__=T.Consumer.contextType=T},e.createElement=v,e.createRef=function(){return{current:null}},e.h=v,e.hydrate=function B(O,T){at(O,T,B)},e.isValidElement=i,e.options=r,e.render=at,e.toChildArray=function B(O,T){return T=T||[],O==null||typeof O=="boolean"||(Array.isArray(O)?O.some(function(N){B(N,T)}):T.push(O)),T}}),m2=class{constructor(t,e){e===void 0&&(e={}),this.uppy=t,this.opts=e}getPluginState(){const{plugins:t}=this.uppy.getState();return t[this.id]||{}}setPluginState(t){const{plugins:e}=this.uppy.getState();this.uppy.setState({plugins:{...e,[this.id]:{...e[this.id],...t}}})}setOptions(t){this.opts={...this.opts,...t},this.setPluginState(),this.i18nInit()}i18nInit(){const t=new g9([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=t.translate.bind(t),this.i18nArray=t.translateArray.bind(t),this.setPluginState()}addTarget(){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw new Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}};function F9(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var yK=0;const{render:T9}=mK;var cf=function(t){return"__private_"+yK+++"_"+t}("updateUI");class y2 extends m2{constructor(){super(...arguments),Object.defineProperty(this,cf,{writable:!0,value:void 0})}mount(e,n){const r=n.id,o=function(u,s){return s===void 0&&(s=document),typeof u=="string"?s.querySelector(u):((l=u)==null?void 0:l.nodeType)===Node.ELEMENT_NODE?u:null;var l}(e);if(o){this.isTargetDOMEl=!0;const u=document.createDocumentFragment();return F9(this,cf)[cf]=function(s){let l=null,c=null;return function(){for(var f=arguments.length,p=new Array(f),d=0;d<f;d++)p[d]=arguments[d];return c=p,l||(l=Promise.resolve().then(()=>(l=null,s(...c)))),l}}(s=>{this.uppy.getPlugin(this.id)&&(T9(this.render(s),u),this.afterUpdate())}),this.uppy.log(`Installing ${r} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(o.innerHTML=""),T9(this.render(this.uppy.getState()),u),this.el=u.firstElementChild,o.appendChild(u),this.onMount(),this.el}let i;if(typeof e=="object"&&e instanceof y2)i=e;else if(typeof e=="function"){const u=e;this.uppy.iteratePlugins(s=>{if(s instanceof u)return i=s,!1})}if(i)return this.uppy.log(`Installing ${r} to ${i.id}`),this.parent=i,this.el=i.addTarget(n),this.onMount(),this.el;this.uppy.log(`Not installing ${r}`);let a=`Invalid target option given to ${r}.`;throw a+=typeof e=="function"?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(a)}update(e){var n,r;this.el!=null&&((n=(r=F9(this,cf))[cf])==null||n.call(r,e))}unmount(){var e;this.isTargetDOMEl&&((e=this.el)==null||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var bK=y2;const{debugLogger:wK}=C9;var ff=B9,EK=B9,DK=bK,xK=m2,CK=wK;ff.Uppy=EK,ff.UIPlugin=DK,ff.BasePlugin=xK,ff.debugLogger=CK;class SK extends Error{constructor(e,n){n===void 0&&(n=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=e,this.isNetworkError=!0,this.request=n}}var b2=SK,w2=function(){return fetch(...arguments).catch(t=>{throw t.name==="AbortError"?t:new b2(t)})};class AK extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var _0,Ai,fo,Oi,_9,OK=AK;function po(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var kK=0;function E2(t){return"__private_"+kK+++"_"+t}async function D2(t){if(t.status===401)throw new OK;const e=t.json();if(t.status<200||t.status>300){let n=`Failed request with status: ${t.status}. ${t.statusText}`;try{const r=await e;n=r.message?`${n} message: ${r.message}`:n,n=r.requestId?`${n} request-Id: ${r.requestId}`:n}finally{throw new Error(n)}}return e}var x2=(Ai=E2("getPostResponseFunc"),fo=E2("getUrl"),Oi=E2("errorHandler"),_9=_0=class r${constructor(e,n){Object.defineProperty(this,Oi,{value:FK}),Object.defineProperty(this,fo,{value:BK}),Object.defineProperty(this,Ai,{writable:!0,value:r=>o=>r?o:this.onReceiveResponse(o)}),this.uppy=e,this.opts=n,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}get hostname(){const{companion:e}=this.uppy.getState(),n=this.opts.companionUrl;return(e&&e[n]?e[n]:n).replace(/\/$/,"")}headers(){const e=this.opts.companionHeaders||{};return Promise.resolve({...r$.defaultHeaders,...e})}onReceiveResponse(e){const n=this.uppy.getState().companion||{},r=this.opts.companionUrl,{headers:o}=e;return o.has("i-am")&&o.get("i-am")!==n[r]&&this.uppy.setState({companion:{...n,[r]:o.get("i-am")}}),e}preflight(e){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(po(this,fo)[fo](e),{method:"OPTIONS"}).then(n=>(n.headers.has("access-control-allow-headers")&&(this.allowedHeaders=n.headers.get("access-control-allow-headers").split(",").map(r=>r.trim().toLowerCase())),this.preflightDone=!0,this.allowedHeaders.slice())).catch(n=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${n}`,"warning"),this.preflightDone=!0,this.allowedHeaders.slice()))}preflightAndHeaders(e){return Promise.all([this.preflight(e),this.headers()]).then(n=>{let[r,o]=n;return Object.keys(o).forEach(i=>{r.includes(i.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${i}`),delete o[i])}),o})}get(e,n){return this.preflightAndHeaders(e).then(r=>w2(po(this,fo)[fo](e),{method:"get",headers:r,credentials:this.opts.companionCookiesRule||"same-origin"})).then(po(this,Ai)[Ai](n)).then(D2).catch(po(this,Oi)[Oi]("get",e))}post(e,n,r){const o="post";return this.preflightAndHeaders(e).then(i=>w2(po(this,fo)[fo](e),{method:o,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(n)})).then(po(this,Ai)[Ai](r)).then(D2).catch(po(this,Oi)[Oi](o,e))}delete(e,n,r){const o="delete";return this.preflightAndHeaders(e).then(i=>w2(`${this.hostname}/${e}`,{method:o,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:n?JSON.stringify(n):null})).then(po(this,Ai)[Ai](r)).then(D2).catch(po(this,Oi)[Oi](o,e))}},_0.VERSION="2.0.4",_0.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${_0.VERSION}`},_9);function BK(t){return/^(https?:|)\/\//.test(t)?t:`${this.hostname}/${t}`}function FK(t,e){return n=>{var r;if((r=n)==null||!r.isAuthError){const o=new Error(`Could not ${t} ${po(this,fo)[fo](e)}`);o.cause=n,n=o}return Promise.reject(n)}}var ho,ki,mr,xn,P0,TK={setItem:(t,e)=>new Promise(n=>{localStorage.setItem(t,e),n()}),getItem:t=>Promise.resolve(localStorage.getItem(t)),removeItem:t=>new Promise(e=>{localStorage.removeItem(t),e()})};let P9,j9;function We(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var _K=0;function df(t){return"__private_"+_K+++"_"+t}var Bi,Ws,PK=(ho=df("queued"),ki=df("emitter"),mr=df("isOpen"),xn=df("socket"),P0=df("handleMessage"),P9=Symbol.for("uppy test: getSocket"),j9=Symbol.for("uppy test: getQueued"),class{constructor(t){Object.defineProperty(this,ho,{writable:!0,value:[]}),Object.defineProperty(this,ki,{writable:!0,value:v9()}),Object.defineProperty(this,mr,{writable:!0,value:!1}),Object.defineProperty(this,xn,{writable:!0,value:void 0}),Object.defineProperty(this,P0,{writable:!0,value:e=>{try{const n=JSON.parse(e.data);this.emit(n.action,n.payload)}catch(n){console.log(n)}}}),this.opts=t,t&&t.autoOpen===!1||this.open()}get isOpen(){return We(this,mr)[mr]}[P9](){return We(this,xn)[xn]}[j9](){return We(this,ho)[ho]}open(){We(this,xn)[xn]=new WebSocket(this.opts.target),We(this,xn)[xn].onopen=()=>{for(We(this,mr)[mr]=!0;We(this,ho)[ho].length>0&&We(this,mr)[mr];){const t=We(this,ho)[ho].shift();this.send(t.action,t.payload)}},We(this,xn)[xn].onclose=()=>{We(this,mr)[mr]=!1},We(this,xn)[xn].onmessage=We(this,P0)[P0]}close(){var t;(t=We(this,xn)[xn])==null||t.close()}send(t,e){We(this,mr)[mr]?We(this,xn)[xn].send(JSON.stringify({action:t,payload:e})):We(this,ho)[ho].push({action:t,payload:e})}on(t,e){We(this,ki)[ki].on(t,e)}emit(t,e){We(this,ki)[ki].emit(t,e)}once(t,e){We(this,ki)[ki].once(t,e)}}),jK={RequestClient:x2,Provider:class extends x2{constructor(t,e){super(t,e),this.provider=e.provider,this.id=this.provider,this.name=this.opts.name||(n=>this.id.split("-").map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(" "))(),this.pluginId=this.opts.pluginId,this.tokenKey=`companion-${this.pluginId}-auth-token`,this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}headers(){return Promise.all([super.headers(),this.getAuthToken()]).then(t=>{let[e,n]=t;const r={};return n&&(r["uppy-auth-token"]=n),this.companionKeysParams&&(r["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...e,...r}})}onReceiveResponse(t){t=super.onReceiveResponse(t);const e=this.uppy.getPlugin(this.pluginId),n=e.getPluginState().authenticated?t.status!==401:t.status<400;return e.setPluginState({authenticated:n}),t}setAuthToken(t){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,t)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(t){return t===void 0&&(t={}),this.preAuthToken&&(t.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?${new URLSearchParams(t)}`}fileUrl(t){return`${this.hostname}/${this.id}/get/${t}`}fetchPreAuthToken(){return this.companionKeysParams?this.post(`${this.id}/preauth/`,{params:this.companionKeysParams}).then(t=>{this.preAuthToken=t.token}).catch(t=>{this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${t}`,"warning")}):Promise.resolve()}list(t){return this.get(`${this.id}/list/${t||""}`)}logout(){return this.get(`${this.id}/logout`).then(t=>Promise.all([t,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)])).then(t=>{let[e]=t;return e})}static initPlugin(t,e,n){if(t.type="acquirer",t.files=[],n&&(t.opts={...n,...e}),e.serverUrl||e.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(e.companionAllowedHosts){const r=e.companionAllowedHosts;if(!(typeof r=="string"||Array.isArray(r)||r instanceof RegExp))throw new TypeError(`${t.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);t.opts.companionAllowedHosts=r}else/^(?!https?:\/\/).*$/i.test(e.companionUrl)?t.opts.companionAllowedHosts=`https://${e.companionUrl.replace(/^\/\//,"")}`:t.opts.companionAllowedHosts=new URL(e.companionUrl).origin;t.storage=t.opts.storage||TK}},SearchProvider:class extends x2{constructor(t,e){super(t,e),this.provider=e.provider,this.id=this.provider,this.name=this.opts.name||(n=>this.id.split("-").map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(" "))(),this.pluginId=this.opts.pluginId}fileUrl(t){return`${this.hostname}/search/${this.id}/get/${t}`}search(t,e){return e=e?`&${e}`:"",this.get(`search/${this.id}/list?q=${encodeURIComponent(t)}${e}`)}},Socket:PK},IK=nu(function(t,e,n){const{progress:r,bytesUploaded:o,bytesTotal:i}=e;r&&(t.uppy.log(`Upload progress: ${r}`),t.uppy.emit("upload-progress",n,{uploader:t,bytesUploaded:o,bytesTotal:i}))},300,{leading:!0,trailing:!0});function pf(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var NK=0;function I9(t){return"__private_"+NK+++"_"+t}var N9=(Bi=I9("emitter"),Ws=I9("events"),class{constructor(t){Object.defineProperty(this,Bi,{writable:!0,value:void 0}),Object.defineProperty(this,Ws,{writable:!0,value:[]}),pf(this,Bi)[Bi]=t}on(t,e){return pf(this,Ws)[Ws].push([t,e]),pf(this,Bi)[Bi].on(t,e)}remove(){for(const[t,e]of pf(this,Ws)[Ws].splice(0))pf(this,Bi)[Bi].off(t,e)}});function yr(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var LK=0;function j0(t){return"__private_"+LK+++"_"+t}var qo=j0("aliveTimer"),au=j0("isDone"),hf=j0("onTimedOut"),uu=j0("timeout"),L9=class{constructor(t,e){Object.defineProperty(this,qo,{writable:!0,value:void 0}),Object.defineProperty(this,au,{writable:!0,value:!1}),Object.defineProperty(this,hf,{writable:!0,value:void 0}),Object.defineProperty(this,uu,{writable:!0,value:void 0}),yr(this,uu)[uu]=t,yr(this,hf)[hf]=e}progress(){yr(this,au)[au]||yr(this,uu)[uu]>0&&(clearTimeout(yr(this,qo)[qo]),yr(this,qo)[qo]=setTimeout(yr(this,hf)[hf],yr(this,uu)[uu]))}done(){yr(this,au)[au]||(clearTimeout(yr(this,qo)[qo]),yr(this,qo)[qo]=null,yr(this,au)[au]=!0)}};function Ge(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var RK=0;function su(t){return"__private_"+RK+++"_"+t}var rr=su("activeRequests"),jn=su("queuedHandlers"),gf=su("call"),vf=su("queueNext"),C2=su("next"),S2=su("queue"),A2=su("dequeue");function MK(t){Ge(this,rr)[rr]+=1;let e,n=!1;try{e=t()}catch(r){throw Ge(this,rr)[rr]-=1,r}return{abort:()=>{n||(n=!0,Ge(this,rr)[rr]-=1,e(),Ge(this,vf)[vf]())},done:()=>{n||(n=!0,Ge(this,rr)[rr]-=1,Ge(this,vf)[vf]())}}}function zK(){queueMicrotask(()=>Ge(this,C2)[C2]())}function $K(){if(Ge(this,rr)[rr]>=this.limit||Ge(this,jn)[jn].length===0)return;const t=Ge(this,jn)[jn].shift(),e=Ge(this,gf)[gf](t.fn);t.abort=e.abort,t.done=e.done}function HK(t,e){e===void 0&&(e={});const n={fn:t,priority:e.priority||0,abort:()=>{Ge(this,A2)[A2](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=Ge(this,jn)[jn].findIndex(o=>n.priority>o.priority);return r===-1?Ge(this,jn)[jn].push(n):Ge(this,jn)[jn].splice(r,0,n),n}function VK(t){const e=Ge(this,jn)[jn].indexOf(t);e!==-1&&Ge(this,jn)[jn].splice(e,1)}var R9,M9,UK={RateLimitedQueue:class{constructor(t){Object.defineProperty(this,A2,{value:VK}),Object.defineProperty(this,S2,{value:HK}),Object.defineProperty(this,C2,{value:$K}),Object.defineProperty(this,vf,{value:zK}),Object.defineProperty(this,gf,{value:MK}),Object.defineProperty(this,rr,{writable:!0,value:0}),Object.defineProperty(this,jn,{writable:!0,value:[]}),this.limit=typeof t!="number"||t===0?1/0:t}run(t,e){return Ge(this,rr)[rr]<this.limit?Ge(this,gf)[gf](t):Ge(this,S2)[S2](t,e)}wrapPromiseFunction(t,e){var n=this;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];let a;const u=new Promise((s,l)=>{a=n.run(()=>{let c,f;try{f=Promise.resolve(t(...o))}catch(p){f=Promise.reject(p)}return f.then(p=>{c?l(c):(a.done(),s(p))},p=>{c?l(c):(a.done(),l(p))}),()=>{c=new Error("Cancelled")}},e)});return u.abort=()=>{a.abort()},u}}},internalRateLimitedQueue:Symbol("__queue")},z9=function(t){return!!t&&(t.readyState!==0&&t.readyState!==4||t.status===0)},WK={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:GK}=S9,{Provider:qK,RequestClient:KK,Socket:XK}=jK,{RateLimitedQueue:YK,internalRateLimitedQueue:O2}=UK;function $9(t,e){let n=e;return n||(n=new Error("Upload error")),typeof n=="string"&&(n=new Error(n)),n instanceof Error||(n=Object.assign(new Error("Upload error"),{data:n})),z9(t)?(n=new b2(n,t),n):(n.request=t,n)}function H9(t){return t.data.slice(0,t.data.size,t.meta.type)}var JK=(M9=R9=class extends m2{constructor(t,e){super(t,e),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=WK;const n={formData:!0,fieldName:e.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(r){let o={};try{o=JSON.parse(r)}catch(i){t.log(i)}return o},getResponseError(r,o){let i=new Error("Upload error");return z9(o)&&(i=new b2(i,o)),i},validateStatus:r=>r>=200&&r<300};if(this.opts={...n,...e},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),O2 in this.opts?this.requests=this.opts[O2]:this.requests=new YK(this.opts.limit),this.opts.bundle&&!this.opts.formData)throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");this.uploaderEvents=Object.create(null)}getOptions(t){const e=this.uppy.getState().xhrUpload,{headers:n}=this.opts,r={...this.opts,...e||{},...t.xhrUpload||{},headers:{}};return typeof n=="function"?r.headers=n(t):Object.assign(r.headers,this.opts.headers),e&&Object.assign(r.headers,e.headers),t.xhrUpload&&Object.assign(r.headers,t.xhrUpload.headers),r}addMetadata(t,e,n){(Array.isArray(n.metaFields)?n.metaFields:Object.keys(e)).forEach(r=>{t.append(r,e[r])})}createFormDataUpload(t,e){const n=new FormData;this.addMetadata(n,t.meta,e);const r=H9(t);return t.name?n.append(e.fieldName,r,t.meta.name):n.append(e.fieldName,r),n}createBundledUpload(t,e){const n=new FormData,{meta:r}=this.uppy.getState();return this.addMetadata(n,r,e),t.forEach(o=>{const i=this.getOptions(o),a=H9(o);o.name?n.append(i.fieldName,a,o.name):n.append(i.fieldName,a)}),n}upload(t,e,n){const r=this.getOptions(t);return this.uppy.log(`uploading ${e} of ${n}`),new Promise((o,i)=>{this.uppy.emit("upload-started",t);const a=r.formData?this.createFormDataUpload(t,r):t.data,u=new XMLHttpRequest;this.uploaderEvents[t.id]=new N9(this.uppy);const s=new L9(r.timeout,()=>{u.abort(),c.done();const f=new Error(this.i18n("timedOut",{seconds:Math.ceil(r.timeout/1e3)}));this.uppy.emit("upload-error",t,f),i(f)}),l=GK();u.upload.addEventListener("loadstart",()=>{this.uppy.log(`[XHRUpload] ${l} started`)}),u.upload.addEventListener("progress",f=>{this.uppy.log(`[XHRUpload] ${l} progress: ${f.loaded} / ${f.total}`),s.progress(),f.lengthComputable&&this.uppy.emit("upload-progress",t,{uploader:this,bytesUploaded:f.loaded,bytesTotal:f.total})}),u.addEventListener("load",f=>{if(this.uppy.log(`[XHRUpload] ${l} finished`),s.done(),c.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),r.validateStatus(f.target.status,u.responseText,u)){const v=r.getResponseData(u.responseText,u),m=v[r.responseUrlFieldName],y={status:f.target.status,body:v,uploadURL:m};return this.uppy.emit("upload-success",t,y),m&&this.uppy.log(`Download ${t.name} from ${m}`),o(t)}const p=r.getResponseData(u.responseText,u),d=$9(u,r.getResponseError(u.responseText,u)),g={status:f.target.status,body:p};return this.uppy.emit("upload-error",t,d,g),i(d)}),u.addEventListener("error",()=>{this.uppy.log(`[XHRUpload] ${l} errored`),s.done(),c.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null);const f=$9(u,r.getResponseError(u.responseText,u));return this.uppy.emit("upload-error",t,f),i(f)}),u.open(r.method.toUpperCase(),r.endpoint,!0),u.withCredentials=r.withCredentials,r.responseType!==""&&(u.responseType=r.responseType);const c=this.requests.run(()=>{this.uppy.emit("upload-started",t);const f=this.getOptions(t);return Object.keys(f.headers).forEach(p=>{u.setRequestHeader(p,f.headers[p])}),u.send(a),()=>{s.done(),u.abort()}});this.onFileRemove(t.id,()=>{c.abort(),i(new Error("File removed"))}),this.onCancelAll(t.id,()=>{c.abort(),i(new Error("Upload cancelled"))})})}uploadRemote(t){const e=this.getOptions(t);return new Promise((n,r)=>{this.uppy.emit("upload-started",t);const o={};(Array.isArray(e.metaFields)?e.metaFields:Object.keys(t.meta)).forEach(i=>{o[i]=t.meta[i]}),new(t.remote.providerOptions.provider?qK:KK)(this.uppy,t.remote.providerOptions).post(t.remote.url,{...t.remote.body,endpoint:e.endpoint,size:t.data.size,fieldname:e.fieldName,metadata:o,httpMethod:e.method,useFormData:e.formData,headers:e.headers}).then(i=>{const{token:a}=i,u=function(c){const f=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(c)[1];return`${/^http:\/\//i.test(c)?"ws":"wss"}://${f}`}(t.remote.companionUrl),s=new XK({target:`${u}/api/${a}`,autoOpen:!1});this.uploaderEvents[t.id]=new N9(this.uppy),this.onFileRemove(t.id,()=>{s.send("cancel",{}),l.abort(),n(`upload ${t.id} was removed`)}),this.onCancelAll(t.id,()=>{s.send("cancel",{}),l.abort(),n(`upload ${t.id} was canceled`)}),this.onRetry(t.id,()=>{s.send("pause",{}),s.send("resume",{})}),this.onRetryAll(t.id,()=>{s.send("pause",{}),s.send("resume",{})}),s.on("progress",c=>IK(this,c,t)),s.on("success",c=>{const f=e.getResponseData(c.response.responseText,c.response),p=f[e.responseUrlFieldName],d={status:c.response.status,body:f,uploadURL:p};return this.uppy.emit("upload-success",t,d),l.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),n()}),s.on("error",c=>{const f=c.response,p=f?e.getResponseError(f.responseText,f):Object.assign(new Error(c.error.message),{cause:c.error});this.uppy.emit("upload-error",t,p),l.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),r(p)});const l=this.requests.run(()=>(s.open(),t.isPaused&&s.send("pause",{}),()=>s.close()))}).catch(i=>{this.uppy.emit("upload-error",t,i),r(i)})})}uploadBundle(t){return new Promise((e,n)=>{const{endpoint:r}=this.opts,{method:o}=this.opts,i=this.uppy.getState().xhrUpload,a=this.createBundledUpload(t,{...this.opts,...i||{}}),u=new XMLHttpRequest,s=new L9(this.opts.timeout,()=>{u.abort();const c=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));l(c),n(c)}),l=c=>{t.forEach(f=>{this.uppy.emit("upload-error",f,c)})};u.upload.addEventListener("loadstart",()=>{this.uppy.log("[XHRUpload] started uploading bundle"),s.progress()}),u.upload.addEventListener("progress",c=>{s.progress(),c.lengthComputable&&t.forEach(f=>{this.uppy.emit("upload-progress",f,{uploader:this,bytesUploaded:c.loaded/c.total*f.size,bytesTotal:f.size})})}),u.addEventListener("load",c=>{if(s.done(),this.opts.validateStatus(c.target.status,u.responseText,u)){const p=this.opts.getResponseData(u.responseText,u),d={status:c.target.status,body:p};return t.forEach(g=>{this.uppy.emit("upload-success",g,d)}),e()}const f=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return f.request=u,l(f),n(f)}),u.addEventListener("error",()=>{s.done();const c=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return l(c),n(c)}),this.uppy.on("cancel-all",()=>{s.done(),u.abort()}),u.open(o.toUpperCase(),r,!0),u.withCredentials=this.opts.withCredentials,this.opts.responseType!==""&&(u.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach(c=>{u.setRequestHeader(c,this.opts.headers[c])}),u.send(a),t.forEach(c=>{this.uppy.emit("upload-started",c)})})}uploadFiles(t){const e=t.map((n,r)=>{const o=parseInt(r,10)+1,i=t.length;return n.error?Promise.reject(new Error(n.error)):n.isRemote?this.uploadRemote(n,o,i):this.upload(n,o,i)});return function(n){const r=[],o=[];function i(u){r.push(u)}function a(u){o.push(u)}return Promise.all(n.map(u=>u.then(i,a))).then(()=>({successful:r,failed:o}))}(e)}onFileRemove(t,e){this.uploaderEvents[t].on("file-removed",n=>{t===n.id&&e(n.id)})}onRetry(t,e){this.uploaderEvents[t].on("upload-retry",n=>{t===n&&e()})}onRetryAll(t,e){this.uploaderEvents[t].on("retry-all",()=>{this.uppy.getFile(t)&&e()})}onCancelAll(t,e){this.uploaderEvents[t].on("cancel-all",()=>{this.uppy.getFile(t)&&e()})}handleUpload(t){if(t.length===0)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();this.opts.limit!==0||this.opts[O2]||this.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0","warning"),this.uppy.log("[XHRUpload] Uploading...");const e=t.map(n=>this.uppy.getFile(n));if(this.opts.bundle){if(e.some(n=>n.isRemote))throw new Error("Can\u2019t upload remote files when the `bundle: true` option is set");if(typeof this.opts.headers=="function")throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(e)}return this.uploadFiles(e).then(()=>null)}install(){if(this.opts.bundle){const{capabilities:t}=this.uppy.getState();this.uppy.setState({capabilities:{...t,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:t}=this.uppy.getState();this.uppy.setState({capabilities:{...t,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},R9.VERSION="2.0.6",M9),V9=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function mf(t){var e={exports:{}};return t(e,e.exports),e.exports}var Fi,I0,N0=function(t){return t&&t.Math==Math&&t},J=N0(typeof globalThis=="object"&&globalThis)||N0(typeof window=="object"&&window)||N0(typeof self=="object"&&self)||N0(typeof V9=="object"&&V9)||function(){return this}()||Function("return this")(),ZK=Object.defineProperty,k2=function(t,e){try{ZK(J,t,{value:e,configurable:!0,writable:!0})}catch{J[t]=e}return e},Ti=J["__core-js_shared__"]||k2("__core-js_shared__",{}),B2=mf(function(t){(t.exports=function(e,n){return Ti[e]||(Ti[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),U9=Function.prototype,F2=U9.bind,T2=U9.call,QK=F2&&F2.bind(T2),pt=F2?function(t){return t&&QK(T2,t)}:function(t){return t&&function(){return T2.apply(t,arguments)}},tX=J.TypeError,br=function(t){if(t==null)throw tX("Can't call method on "+t);return t},eX=J.Object,_i=function(t){return eX(br(t))},nX=pt({}.hasOwnProperty),Ne=Object.hasOwn||function(t,e){return nX(_i(t),e)},rX=0,oX=Math.random(),iX=pt(1 .toString),_2=function(t){return"Symbol("+(t===void 0?"":t)+")_"+iX(++rX+oX,36)},ne=function(t){return typeof t=="function"},lu=function(t,e){return arguments.length<2?function(n){return ne(n)?n:void 0}(J[t]):J[t]&&J[t][e]},Gs=lu("navigator","userAgent")||"",W9=J.process,G9=J.Deno,q9=W9&&W9.versions||G9&&G9.version,K9=q9&&q9.v8;K9&&(I0=(Fi=K9.split("."))[0]>0&&Fi[0]<4?1:+(Fi[0]+Fi[1])),!I0&&Gs&&(!(Fi=Gs.match(/Edge\/(\d+)/))||Fi[1]>=74)&&(Fi=Gs.match(/Chrome\/(\d+)/))&&(I0=+Fi[1]);var yf=I0,Kt=function(t){try{return!!t()}catch{return!0}},P2=!!Object.getOwnPropertySymbols&&!Kt(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&yf&&yf<41}),j2=P2&&!Symbol.sham&&typeof Symbol.iterator=="symbol",bf=B2("wks"),cu=J.Symbol,X9=cu&&cu.for,aX=j2?cu:cu&&cu.withoutSetter||_2,we=function(t){if(!Ne(bf,t)||!P2&&typeof bf[t]!="string"){var e="Symbol."+t;P2&&Ne(cu,t)?bf[t]=cu[t]:bf[t]=j2&&X9?X9(e):aX(e)}return bf[t]},Y9={};Y9[we("toStringTag")]="z";var I2=String(Y9)==="[object z]",cn=!Kt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),ce=function(t){return typeof t=="object"?t!==null:ne(t)},N2=J.document,uX=ce(N2)&&ce(N2.createElement),wf=function(t){return uX?N2.createElement(t):{}},J9=!cn&&!Kt(function(){return Object.defineProperty(wf("div"),"a",{get:function(){return 7}}).a!=7}),sX=J.String,lX=J.TypeError,Le=function(t){if(ce(t))return t;throw lX(sX(t)+" is not an object")},Ef=Function.prototype.call,Vt=Ef.bind?Ef.bind(Ef):function(){return Ef.apply(Ef,arguments)},fu=pt({}.isPrototypeOf),cX=J.Object,L2=j2?function(t){return typeof t=="symbol"}:function(t){var e=lu("Symbol");return ne(e)&&fu(e.prototype,cX(t))},fX=J.String,L0=function(t){try{return fX(t)}catch{return"Object"}},dX=J.TypeError,Pi=function(t){if(ne(t))return t;throw dX(L0(t)+" is not a function")},du=function(t,e){var n=t[e];return n==null?void 0:Pi(n)},pX=J.TypeError,hX=J.TypeError,gX=we("toPrimitive"),R2=function(t){var e=function(n,r){if(!ce(n)||L2(n))return n;var o,i=du(n,gX);if(i){if(r===void 0&&(r="default"),o=Vt(i,n,r),!ce(o)||L2(o))return o;throw hX("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&ne(s=a.toString)&&!ce(l=Vt(s,a))||ne(s=a.valueOf)&&!ce(l=Vt(s,a))||u!=="string"&&ne(s=a.toString)&&!ce(l=Vt(s,a)))return l;throw pX("Can't convert object to primitive value")}(n,r)}(t,"string");return L2(e)?e:e+""},vX=J.TypeError,Z9=Object.defineProperty,Hr={f:cn?Z9:function(t,e,n){if(Le(t),e=R2(e),Le(n),J9)try{return Z9(t,e,n)}catch{}if("get"in n||"set"in n)throw vX("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},R0=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Vr=cn?function(t,e,n){return Hr.f(t,e,R0(1,n))}:function(t,e,n){return t[e]=n,t},mX=pt(Function.toString);ne(Ti.inspectSource)||(Ti.inspectSource=function(t){return mX(t)});var M0,Df,z0,$0=Ti.inspectSource,Q9=J.WeakMap,tO=ne(Q9)&&/native code/.test($0(Q9)),eO=B2("keys"),M2=function(t){return eO[t]||(eO[t]=_2(t))},H0={},z2=J.TypeError,yX=J.WeakMap;if(tO||Ti.state){var pu=Ti.state||(Ti.state=new yX),bX=pt(pu.get),nO=pt(pu.has),wX=pt(pu.set);M0=function(t,e){if(nO(pu,t))throw new z2("Object already initialized");return e.facade=t,wX(pu,t,e),e},Df=function(t){return bX(pu,t)||{}},z0=function(t){return nO(pu,t)}}else{var qs=M2("state");H0[qs]=!0,M0=function(t,e){if(Ne(t,qs))throw new z2("Object already initialized");return e.facade=t,Vr(t,qs,e),e},Df=function(t){return Ne(t,qs)?t[qs]:{}},z0=function(t){return Ne(t,qs)}}var Cn={set:M0,get:Df,has:z0,enforce:function(t){return z0(t)?Df(t):M0(t,{})},getterFor:function(t){return function(e){var n;if(!ce(e)||(n=Df(e)).type!==t)throw z2("Incompatible receiver, "+t+" required");return n}}},rO=Function.prototype,EX=cn&&Object.getOwnPropertyDescriptor,$2=Ne(rO,"name"),Ks={EXISTS:$2,PROPER:$2&&(function(){}).name==="something",CONFIGURABLE:$2&&(!cn||cn&&EX(rO,"name").configurable)},Hn=mf(function(t){var e=Ks.CONFIGURABLE,n=Cn.get,r=Cn.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;ne(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Ne(u,"name")||e&&u.name!==d)&&Vr(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==J?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Vr(i,a,u)):f?i[a]=u:k2(a,u)})(Function.prototype,"toString",function(){return ne(this)&&n(this).source||$0(this)})}),DX=pt({}.toString),xX=pt("".slice),Ur=function(t){return xX(DX(t),8,-1)},CX=we("toStringTag"),SX=J.Object,AX=Ur(function(){return arguments}())=="Arguments",V0=I2?Ur:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=SX(t),CX))=="string"?n:AX?Ur(e):(r=Ur(e))=="Object"&&ne(e.callee)?"Arguments":r},OX=I2?{}.toString:function(){return"[object "+V0(this)+"]"};I2||Hn(Object.prototype,"toString",OX,{unsafe:!0});var U0={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},H2=wf("span").classList,oO=H2&&H2.constructor&&H2.constructor.prototype,iO=oO===Object.prototype?void 0:oO,aO=pt(pt.bind),hu=function(t,e){return Pi(t),e===void 0?t:aO?aO(t,e):function(){return t.apply(e,arguments)}},V2=J.Object,kX=pt("".split),W0=Kt(function(){return!V2("z").propertyIsEnumerable(0)})?function(t){return Ur(t)=="String"?kX(t,""):V2(t)}:V2,BX=Math.ceil,FX=Math.floor,xf=function(t){var e=+t;return e!=e||e===0?0:(e>0?FX:BX)(e)},TX=Math.min,Xs=function(t){return t>0?TX(xf(t),9007199254740991):0},gu=function(t){return Xs(t.length)},G0=Array.isArray||function(t){return Ur(t)=="Array"},uO=function(){},_X=[],sO=lu("Reflect","construct"),U2=/^\s*(?:class|function)\b/,PX=pt(U2.exec),jX=!U2.exec(uO),Cf=function(t){if(!ne(t))return!1;try{return sO(uO,_X,t),!0}catch{return!1}},q0=!sO||Kt(function(){var t;return Cf(Cf.call)||!Cf(Object)||!Cf(function(){t=!0})||t})?function(t){if(!ne(t))return!1;switch(V0(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return jX||!!PX(U2,$0(t))}:Cf,IX=we("species"),lO=J.Array,cO=function(t,e){return new(function(n){var r;return G0(n)&&(r=n.constructor,(q0(r)&&(r===lO||G0(r.prototype))||ce(r)&&(r=r[IX])===null)&&(r=void 0)),r===void 0?lO:r}(t))(e===0?0:e)},fO=pt([].push),ji=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,g=_i(s),v=W0(g),m=hu(l,c),y=gu(v),h=0,b=f||cO,w=e?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in v)&&(d=m(p=v[h],h,g),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:fO(w,p)}else switch(t){case 4:return!1;case 7:fO(w,p)}return i?-1:r||o?o:w}},Ys={forEach:ji(0),map:ji(1),filter:ji(2),some:ji(3),every:ji(4),find:ji(5),findIndex:ji(6),filterReject:ji(7)},dO=function(t,e){var n=[][t];return!!n&&Kt(function(){n.call(null,e||function(){throw 1},1)})},NX=Ys.forEach,W2=dO("forEach")?[].forEach:function(t){return NX(this,t,arguments.length>1?arguments[1]:void 0)},pO=function(t){if(t&&t.forEach!==W2)try{Vr(t,"forEach",W2)}catch{t.forEach=W2}};for(var G2 in U0)U0[G2]&&pO(J[G2]&&J[G2].prototype);pO(iO);var hO={}.propertyIsEnumerable,gO=Object.getOwnPropertyDescriptor,LX=gO&&!hO.call({1:2},1)?function(t){var e=gO(this,t);return!!e&&e.enumerable}:hO,vO={f:LX},Ii=function(t){return W0(br(t))},mO=Object.getOwnPropertyDescriptor,Sf={f:cn?mO:function(t,e){if(t=Ii(t),e=R2(e),J9)try{return mO(t,e)}catch{}if(Ne(t,e))return R0(!Vt(vO.f,t,e),t[e])}},RX=Math.max,MX=Math.min,Js=function(t,e){var n=xf(t);return n<0?RX(n+e,0):MX(n,e)},yO=function(t){return function(e,n,r){var o,i=Ii(e),a=gu(i),u=Js(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},bO={includes:yO(!0),indexOf:yO(!1)},zX=bO.indexOf,wO=pt([].push),EO=function(t,e){var n,r=Ii(t),o=0,i=[];for(n in r)!Ne(H0,n)&&Ne(r,n)&&wO(i,n);for(;e.length>o;)Ne(r,n=e[o++])&&(~zX(i,n)||wO(i,n));return i},K0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],$X=K0.concat("length","prototype"),Af={f:Object.getOwnPropertyNames||function(t){return EO(t,$X)}},DO={f:Object.getOwnPropertySymbols},HX=pt([].concat),VX=lu("Reflect","ownKeys")||function(t){var e=Af.f(Le(t)),n=DO.f;return n?HX(e,n(t)):e},UX=function(t,e){for(var n=VX(e),r=Hr.f,o=Sf.f,i=0;i<n.length;i++){var a=n[i];Ne(t,a)||r(t,a,o(e,a))}},WX=/#|\.prototype\./,Of=function(t,e){var n=qX[GX(t)];return n==XX||n!=KX&&(ne(e)?Kt(e):!!e)},GX=Of.normalize=function(t){return String(t).replace(WX,".").toLowerCase()},qX=Of.data={},KX=Of.NATIVE="N",XX=Of.POLYFILL="P",kf=Of,YX=Sf.f,Ee=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?J:l?J[u]||k2(u,{}):(J[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=YX(n,r))&&a.value:n[r],!kf(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;UX(i,o)}(t.sham||o&&o.sham)&&Vr(i,"sham",!0),Hn(n,r,i,t)}},Zs=Object.keys||function(t){return EO(t,K0)},JX=Kt(function(){Zs(1)});function xO(t){return Object.prototype.toString.call(t)==="[object Object]"}Ee({target:"Object",stat:!0,forced:JX},{keys:function(t){return Zs(_i(t))}});var ZX={isHistory(t){return xO(e=t)!==!1&&((n=e.constructor)===void 0||xO(r=n.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1)&&Array.isArray(t.redos)&&Array.isArray(t.undos)&&(t.redos.length===0||Di.isOperationList(t.redos[0]))&&(t.undos.length===0||Di.isOperationList(t.undos[0]));var e,n,r}},q2=new WeakMap,K2=new WeakMap,Qs={isHistoryEditor:t=>ZX.isHistory(t.history)&&E.isEditor(t),isMerging:t=>K2.get(t),isSaving:t=>q2.get(t),redo(t){t.redo()},undo(t){t.undo()},withoutMerging(t,e){var n=Qs.isMerging(t);K2.set(t,!1),e(),K2.set(t,n)},withoutSaving(t,e){var n=Qs.isSaving(t);q2.set(t,!1),e(),q2.set(t,n)}},QX=J.String,se=function(t){if(V0(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return QX(t)},X2=function(){var t=Le(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},tY=Ks.PROPER,Y2=RegExp.prototype,CO=Y2.toString,eY=pt(X2),nY=Kt(function(){return CO.call({source:"a",flags:"b"})!="/a/b"}),rY=tY&&CO.name!="toString";(nY||rY)&&Hn(RegExp.prototype,"toString",function(){var t=Le(this),e=se(t.source),n=t.flags;return"/"+e+"/"+se(n===void 0&&fu(Y2,t)&&!("flags"in Y2)?eY(t):n)},{unsafe:!0});var X0,oY=cn?Object.defineProperties:function(t,e){Le(t);for(var n,r=Ii(e),o=Zs(e),i=o.length,a=0;i>a;)Hr.f(t,n=o[a++],r[n]);return t},J2=lu("document","documentElement"),SO=M2("IE_PROTO"),Z2=function(){},AO=function(t){return"<script>"+t+"<\/script>"},OO=function(t){t.write(AO("")),t.close();var e=t.parentWindow.Object;return t=null,e},Y0=function(){try{X0=new ActiveXObject("htmlfile")}catch{}var t,e;Y0=typeof document<"u"?document.domain&&X0?OO(X0):((e=wf("iframe")).style.display="none",J2.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(AO("document.F=Object")),t.close(),t.F):OO(X0);for(var n=K0.length;n--;)delete Y0.prototype[K0[n]];return Y0()};H0[SO]=!0;var J0=Object.create||function(t,e){var n;return t!==null?(Z2.prototype=Le(t),n=new Z2,Z2.prototype=null,n[SO]=t):n=Y0(),e===void 0?n:oY(n,e)},Q2=we("unscopables"),tw=Array.prototype;tw[Q2]==null&&Hr.f(tw,Q2,{configurable:!0,value:J0(null)});var Bf=function(t){tw[Q2][t]=!0},iY=bO.includes;Ee({target:"Array",proto:!0},{includes:function(t){return iY(this,t,arguments.length>1?arguments[1]:void 0)}}),Bf("includes");var aY=we("match"),ew=function(t){var e;return ce(t)&&((e=t[aY])!==void 0?!!e:Ur(t)=="RegExp")},uY=J.TypeError,nw=function(t){if(ew(t))throw uY("The method doesn't accept regular expressions");return t},sY=we("match"),rw=function(t){var e=/./;try{"/./"[t](e)}catch{try{return e[sY]=!1,"/./"[t](e)}catch{}}return!1},lY=pt("".indexOf);Ee({target:"String",proto:!0,forced:!rw("includes")},{includes:function(t){return!!~lY(se(br(this)),se(nw(t)),arguments.length>1?arguments[1]:void 0)}});var cY=/"/g,fY=pt("".replace);Ee({target:"String",proto:!0,forced:Kt(function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3})},{anchor:function(t){return e=t,n=se(br(this)),r="<a",(r+=' name="'+fY(se(e),cY,""")+'"')+">"+n+"</a>";var e,n,r}});var ow=function(t,e,n){var r,o;Le(t);try{if(!(r=du(t,"return"))){if(e==="throw")throw n;return n}r=Vt(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return Le(r),n},dY=function(t,e,n,r){try{return r?e(Le(n)[0],n[1]):e(n)}catch(o){ow(t,"throw",o)}},tl={},pY=we("iterator"),hY=Array.prototype,kO=function(t){return t!==void 0&&(tl.Array===t||hY[pY]===t)},Ff=function(t,e,n){var r=R2(e);r in t?Hr.f(t,r,R0(0,n)):t[r]=n},gY=we("iterator"),iw=function(t){if(t!=null)return du(t,gY)||du(t,"@@iterator")||tl[V0(t)]},vY=J.TypeError,BO=function(t,e){var n=arguments.length<2?iw(t):e;if(Pi(n))return Le(Vt(n,t));throw vY(L0(t)+" is not iterable")},FO=J.Array,TO=we("iterator"),_O=!1;try{var mY=0,PO={next:function(){return{done:!!mY++}},return:function(){_O=!0}};PO[TO]=function(){return this},Array.from(PO,function(){throw 2})}catch{}var aw=function(t,e){if(!e&&!_O)return!1;var n=!1;try{var r={};r[TO]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch{}return n},yY=!aw(function(t){Array.from(t)});Ee({target:"Array",stat:!0,forced:yY},{from:function(t){var e=_i(t),n=q0(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=o!==void 0;i&&(o=hu(o,r>2?arguments[2]:void 0));var a,u,s,l,c,f,p=iw(e),d=0;if(!p||this==FO&&kO(p))for(a=gu(e),u=n?new this(a):FO(a);a>d;d++)f=i?o(e[d],d):e[d],Ff(u,d,f);else for(c=(l=BO(e,p)).next,u=n?new this:[];!(s=Vt(c,l)).done;d++)f=i?dY(l,o,[s.value,d],!0):s.value,Ff(u,d,f);return u.length=d,u}});var vu,jO,IO,bY=pt("".charAt),NO=pt("".charCodeAt),wY=pt("".slice),LO=function(t){return function(e,n){var r,o,i=se(br(e)),a=xf(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=NO(i,a))<55296||r>56319||a+1===u||(o=NO(i,a+1))<56320||o>57343?t?bY(i,a):r:t?wY(i,a,a+2):o-56320+(r-55296<<10)+65536}},RO={codeAt:LO(!1),charAt:LO(!0)},EY=!Kt(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),MO=M2("IE_PROTO"),uw=J.Object,DY=uw.prototype,Z0=EY?uw.getPrototypeOf:function(t){var e=_i(t);if(Ne(e,MO))return e[MO];var n=e.constructor;return ne(n)&&e instanceof n?n.prototype:e instanceof uw?DY:null},sw=we("iterator"),zO=!1;[].keys&&("next"in(IO=[].keys())?(jO=Z0(Z0(IO)))!==Object.prototype&&(vu=jO):zO=!0);var xY=vu==null||Kt(function(){var t={};return vu[sw].call(t)!==t});xY&&(vu={}),ne(vu[sw])||Hn(vu,sw,function(){return this});var lw={IteratorPrototype:vu,BUGGY_SAFARI_ITERATORS:zO},CY=Hr.f,$O=we("toStringTag"),Q0=function(t,e,n){t&&!Ne(t=n?t:t.prototype,$O)&&CY(t,$O,{configurable:!0,value:e})},SY=lw.IteratorPrototype,AY=function(){return this},OY=J.String,kY=J.TypeError,el=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=pt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch{}return function(r,o){return Le(r),function(i){if(typeof i=="object"||ne(i))return i;throw kY("Can't set "+OY(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),BY=Ks.PROPER,FY=Ks.CONFIGURABLE,HO=lw.IteratorPrototype,tg=lw.BUGGY_SAFARI_ITERATORS,Tf=we("iterator"),TY=function(){return this},cw=function(t,e,n,r,o,i,a){(function(y,h,b,w){var D=h+" Iterator";y.prototype=J0(SY,{next:R0(1,b)}),Q0(y,D,!1),tl[D]=AY})(n,e,r);var u,s,l,c=function(y){if(y===o&&v)return v;if(!tg&&y in d)return d[y];switch(y){case"keys":case"values":case"entries":return function(){return new n(this,y)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,g=d[Tf]||d["@@iterator"]||o&&d[o],v=!tg&&g||c(o),m=e=="Array"&&d.entries||g;if(m&&(u=Z0(m.call(new t)))!==Object.prototype&&u.next&&(Z0(u)!==HO&&(el?el(u,HO):ne(u[Tf])||Hn(u,Tf,TY)),Q0(u,f,!0)),BY&&o=="values"&&g&&g.name!=="values"&&(FY?Vr(d,"name","values"):(p=!0,v=function(){return Vt(g,this)})),o)if(s={values:c("values"),keys:i?v:c("keys"),entries:c("entries")},a)for(l in s)(tg||p||!(l in d))&&Hn(d,l,s[l]);else Ee({target:e,proto:!0,forced:tg||p},s);return d[Tf]!==v&&Hn(d,Tf,v,{name:o}),tl[e]=v,s},_Y=RO.charAt,PY=Cn.set,jY=Cn.getterFor("String Iterator");cw(String,"String",function(t){PY(this,{type:"String Iterator",string:se(t),index:0})},function(){var t,e=jY(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=_Y(n,r),e.index+=t.length,{value:t,done:!1})});var fw,IY=Sf.f,VO=pt("".endsWith),NY=pt("".slice),LY=Math.min,UO=rw("endsWith"),RY=!(UO||(fw=IY(String.prototype,"endsWith"),!fw||fw.writable));Ee({target:"String",proto:!0,forced:!RY&&!UO},{endsWith:function(t){var e=se(br(this));nw(t);var n=arguments.length>1?arguments[1]:void 0,r=e.length,o=n===void 0?r:LY(Xs(n),r),i=se(t);return VO?VO(e,i,o):NY(e,o-i.length,o)===i}});var MY=pt([].join),zY=W0!=Object,$Y=dO("join",",");Ee({target:"Array",proto:!0,forced:zY||!$Y},{join:function(t){return MY(Ii(this),t===void 0?",":t)}});var HY=we("species"),eg=function(t){return yf>=51||!Kt(function(){var e=[];return(e.constructor={})[HY]=function(){return{foo:1}},e[t](Boolean).foo!==1})},VY=Ys.map,UY=eg("map");Ee({target:"Array",proto:!0,forced:!UY},{map:function(t){return VY(this,t,arguments.length>1?arguments[1]:void 0)}});var dw=J.RegExp,pw=Kt(function(){var t=dw("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),WY=pw||Kt(function(){return!dw("a","y").sticky}),ng={BROKEN_CARET:pw||Kt(function(){var t=dw("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:WY,UNSUPPORTED_Y:pw},GY=J.RegExp,hw=Kt(function(){var t=GY(".","s");return!(t.dotAll&&t.exec(`
- `)&&t.flags==="s")}),qY=J.RegExp,gw=Kt(function(){var t=qY("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),KY=Cn.get,XY=B2("native-string-replace",String.prototype.replace),rg=RegExp.prototype.exec,vw=rg,YY=pt("".charAt),JY=pt("".indexOf),ZY=pt("".replace),mw=pt("".slice),yw=function(){var t=/a/,e=/b*/g;return Vt(rg,t,"a"),Vt(rg,e,"a"),t.lastIndex!==0||e.lastIndex!==0}(),WO=ng.BROKEN_CARET,bw=/()??/.exec("")[1]!==void 0;(yw||bw||WO||hw||gw)&&(vw=function(t){var e,n,r,o,i,a,u,s=this,l=KY(s),c=se(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Vt(vw,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=WO&&s.sticky,g=Vt(X2,s),v=s.source,m=0,y=c;if(d&&(g=ZY(g,"y",""),JY(g,"g")===-1&&(g+="g"),y=mw(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&YY(c,s.lastIndex-1)!==`
- `)&&(v="(?: "+v+")",y=" "+y,m++),n=new RegExp("^(?:"+v+")",g)),bw&&(n=new RegExp("^"+v+"$(?!\\s)",g)),yw&&(r=s.lastIndex),o=Vt(rg,d?n:s,y),d?o?(o.input=mw(o.input,m),o[0]=mw(o[0],m),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:yw&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),bw&&o&&o.length>1&&Vt(XY,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=J0(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var _f=vw;Ee({target:"RegExp",proto:!0,forced:/./.exec!==_f},{exec:_f});var ww=Function.prototype,GO=ww.apply,QY=ww.bind,qO=ww.call,Ew=typeof Reflect=="object"&&Reflect.apply||(QY?qO.bind(GO):function(){return qO.apply(GO,arguments)}),tJ=we("species"),Dw=RegExp.prototype,xw=function(t,e,n,r){var o=we(t),i=!Kt(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!Kt(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[tJ]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=pt(/./[o]),s=e(o,""[t],function(l,c,f,p,d){var g=pt(l),v=c.exec;return v===_f||v===Dw.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:g(f,c,p)}:{done:!1}});Hn(String.prototype,t,s[0]),Hn(Dw,o,s[1])}r&&Vr(Dw[o],"sham",!0)},eJ=RO.charAt,Cw=function(t,e,n){return e+(n?eJ(t,e).length:1)},nJ=Math.floor,Sw=pt("".charAt),rJ=pt("".replace),Aw=pt("".slice),oJ=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,iJ=/\$([$&'`]|\d{1,2})/g,aJ=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=iJ;return o!==void 0&&(o=_i(o),s=oJ),rJ(i,s,function(l,c){var f;switch(Sw(c,0)){case"$":return"$";case"&":return t;case"`":return Aw(e,0,n);case"'":return Aw(e,a);case"<":f=o[Aw(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=nJ(p/10);return d===0?l:d<=u?r[d-1]===void 0?Sw(c,1):r[d-1]+Sw(c,1):l}f=r[p-1]}return f===void 0?"":f})},uJ=J.TypeError,Pf=function(t,e){var n=t.exec;if(ne(n)){var r=Vt(n,t,e);return r!==null&&Le(r),r}if(Ur(t)==="RegExp")return Vt(_f,t,e);throw uJ("RegExp#exec called on incompatible receiver")},Ow=we("replace"),sJ=Math.max,lJ=Math.min,cJ=pt([].concat),kw=pt([].push),KO=pt("".indexOf),XO=pt("".slice),fJ="a".replace(/./,"$0")==="$0",YO=!!/./[Ow]&&/./[Ow]("a","$0")==="";xw("replace",function(t,e,n){var r=YO?"$":"$0";return[function(o,i){var a=br(this),u=o==null?void 0:du(o,Ow);return u?Vt(u,o,a,i):Vt(e,se(a),o,i)},function(o,i){var a=Le(this),u=se(o);if(typeof i=="string"&&KO(i,r)===-1&&KO(i,"$<")===-1){var s=n(e,a,u,i);if(s.done)return s.value}var l=ne(i);l||(i=se(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var p=[];;){var d=Pf(a,u);if(d===null||(kw(p,d),!c))break;se(d[0])===""&&(a.lastIndex=Cw(u,Xs(a.lastIndex),f))}for(var g,v="",m=0,y=0;y<p.length;y++){for(var h=se((d=p[y])[0]),b=sJ(lJ(xf(d.index),u.length),0),w=[],D=1;D<d.length;D++)kw(w,(g=d[D])===void 0?g:String(g));var C=d.groups;if(l){var x=cJ([h],w,b,u);C!==void 0&&kw(x,C);var S=se(Ew(i,void 0,x))}else S=aJ(h,u,b,w,C,i);b>=m&&(v+=XO(u,m,b)+S,m=b+h.length)}return v+XO(u,m)}]},!!Kt(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!fJ||YO);var Bw=function(t,e){return Bw=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},Bw(t,e)};function nl(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}Bw(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var wr=function(){return wr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},wr.apply(this,arguments)};function Er(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ut(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Fw(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t}var dJ=0,JO=function(){this.id=""+dJ++},pJ=Cn.set,hJ=Cn.getterFor("Array Iterator"),jf=cw(Array,"Array",function(t,e){pJ(this,{type:"Array Iterator",target:Ii(t),index:0,kind:e})},function(){var t=hJ(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");tl.Arguments=tl.Array,Bf("keys"),Bf("values"),Bf("entries");var rl=function(t,e,n){for(var r in e)Hn(t,r,e[r],n);return t},gJ=J.Array,vJ=Math.max,Tw=function(t,e,n){for(var r=gu(t),o=Js(e,r),i=Js(n===void 0?r:n,r),a=gJ(vJ(i-o,0)),u=0;o<i;o++,u++)Ff(a,u,t[o]);return a.length=u,a},ZO=Af.f,QO=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],mJ={f:function(t){return QO&&Ur(t)=="Window"?function(e){try{return ZO(e)}catch{return Tw(QO)}}(t):ZO(Ii(t))}},tk=Kt(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),og=Object.isExtensible,mu=Kt(function(){og(1)})||tk?function(t){return!!ce(t)&&(!tk||Ur(t)!="ArrayBuffer")&&(!og||og(t))}:og,yJ=!Kt(function(){return Object.isExtensible(Object.preventExtensions({}))}),ig=mf(function(t){var e=Hr.f,n=!1,r=_2("meta"),o=0,i=function(u){e(u,r,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},n=!0;var u=Af.f,s=pt([].splice),l={};l[r]=1,u(l).length&&(Af.f=function(c){for(var f=u(c),p=0,d=f.length;p<d;p++)if(f[p]===r){s(f,p,1);break}return f},Ee({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:mJ.f}))},fastKey:function(u,s){if(!ce(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Ne(u,r)){if(!mu(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!Ne(u,r)){if(!mu(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return yJ&&n&&mu(u)&&!Ne(u,r)&&i(u),u}};H0[r]=!0}),bJ=J.TypeError,ag=function(t,e){this.stopped=t,this.result=e},ek=ag.prototype,If=function(t,e,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),d=!(!n||!n.INTERRUPTED),g=hu(e,c),v=function(y){return r&&ow(r,"normal",y),new ag(!0,y)},m=function(y){return f?(Le(y),d?g(y[0],y[1],v):g(y[0],y[1])):d?g(y,v):g(y)};if(p)r=t;else{if(!(o=iw(t)))throw bJ(L0(t)+" is not iterable");if(kO(o)){for(i=0,a=gu(t);a>i;i++)if((u=m(t[i]))&&fu(ek,u))return u;return new ag(!1)}r=BO(t,o)}for(s=r.next;!(l=Vt(s,r)).done;){try{u=m(l.value)}catch(y){ow(r,"throw",y)}if(typeof u=="object"&&u&&fu(ek,u))return u}return new ag(!1)},wJ=J.TypeError,ug=function(t,e){if(fu(e,t))return t;throw wJ("Incorrect invocation")},nk=function(t,e,n){var r,o;return el&&ne(r=e.constructor)&&r!==n&&ce(o=r.prototype)&&o!==n.prototype&&el(t,o),t},rk=function(t,e,n){var r=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=r?"set":"add",a=J[t],u=a&&a.prototype,s=a,l={},c=function(m){var y=pt(u[m]);Hn(u,m,m=="add"?function(h){return y(this,h===0?0:h),this}:m=="delete"?function(h){return!(o&&!ce(h))&&y(this,h===0?0:h)}:m=="get"?function(h){return o&&!ce(h)?void 0:y(this,h===0?0:h)}:m=="has"?function(h){return!(o&&!ce(h))&&y(this,h===0?0:h)}:function(h,b){return y(this,h===0?0:h,b),this})};if(kf(t,!ne(a)||!(o||u.forEach&&!Kt(function(){new a().entries().next()}))))s=n.getConstructor(e,t,r,i),ig.enable();else if(kf(t,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=Kt(function(){f.has(1)}),g=aw(function(m){new a(m)}),v=!o&&Kt(function(){for(var m=new a,y=5;y--;)m[i](y,y);return!m.has(-0)});g||((s=e(function(m,y){ug(m,u);var h=nk(new a,m,s);return y!=null&&If(y,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(d||v)&&(c("delete"),c("has"),r&&c("get")),(v||p)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,Ee({global:!0,forced:s!=a},l),Q0(s,t),o||n.setStrong(s,t,r),s},sg=ig.getWeakData,EJ=Cn.set,DJ=Cn.getterFor,xJ=Ys.find,CJ=Ys.findIndex,SJ=pt([].splice),AJ=0,lg=function(t){return t.frozen||(t.frozen=new ok)},ok=function(){this.entries=[]},_w=function(t,e){return xJ(t.entries,function(n){return n[0]===e})};ok.prototype={get:function(t){var e=_w(this,t);if(e)return e[1]},has:function(t){return!!_w(this,t)},set:function(t,e){var n=_w(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=CJ(this.entries,function(n){return n[0]===t});return~e&&SJ(this.entries,e,1),!!~e}};var Nf,ik={getConstructor:function(t,e,n,r){var o=t(function(s,l){ug(s,i),EJ(s,{type:e,id:AJ++,frozen:void 0}),l!=null&&If(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=DJ(e),u=function(s,l,c){var f=a(s),p=sg(Le(l),!0);return p===!0?lg(f).set(l,c):p[f.id]=c,s};return rl(i,{delete:function(s){var l=a(this);if(!ce(s))return!1;var c=sg(s);return c===!0?lg(l).delete(s):c&&Ne(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!ce(s))return!1;var c=sg(s);return c===!0?lg(l).has(s):c&&Ne(c,l.id)}}),rl(i,n?{get:function(s){var l=a(this);if(ce(s)){var c=sg(s);return c===!0?lg(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},cg=Cn.enforce,OJ=!J.ActiveXObject&&"ActiveXObject"in J,ak=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},kJ=rk("WeakMap",ak,ik);if(tO&&OJ){Nf=ik.getConstructor(ak,"WeakMap",!0),ig.enable();var Lf=kJ.prototype,uk=pt(Lf.delete),fg=pt(Lf.has),sk=pt(Lf.get),lk=pt(Lf.set);rl(Lf,{delete:function(t){if(ce(t)&&!mu(t)){var e=cg(this);return e.frozen||(e.frozen=new Nf),uk(this,t)||e.frozen.delete(t)}return uk(this,t)},has:function(t){if(ce(t)&&!mu(t)){var e=cg(this);return e.frozen||(e.frozen=new Nf),fg(this,t)||e.frozen.has(t)}return fg(this,t)},get:function(t){if(ce(t)&&!mu(t)){var e=cg(this);return e.frozen||(e.frozen=new Nf),fg(this,t)?sk(this,t):e.frozen.get(t)}return sk(this,t)},set:function(t,e){if(ce(t)&&!mu(t)){var n=cg(this);n.frozen||(n.frozen=new Nf),fg(this,t)?lk(this,t,e):n.frozen.set(t,e)}else lk(this,t,e);return this}})}var Pw=we("iterator"),ck=we("toStringTag"),jw=jf.values,fk=function(t,e){if(t){if(t[Pw]!==jw)try{Vr(t,Pw,jw)}catch{t[Pw]=jw}if(t[ck]||Vr(t,ck,e),U0[e]){for(var n in jf)if(t[n]!==jf[n])try{Vr(t,n,jf[n])}catch{t[n]=jf[n]}}}};for(var Iw in U0)fk(J[Iw]&&J[Iw].prototype,Iw);fk(iO,"DOMTokenList");var Nw=new WeakMap,Lw=new WeakMap,Rw=new WeakMap,dg=new WeakMap,Mw=new WeakMap,pg=new WeakMap,zw=new WeakMap,$w=new WeakMap,hg=new WeakMap,dk=new WeakMap,pk=new WeakMap,hk=new WeakMap,gk=new WeakMap,Rf=new WeakMap,ol=new WeakMap,Hw=new WeakMap,gg=new WeakMap,Vw=new WeakMap,vg=new WeakMap,mg=new WeakMap,vk=new WeakMap,yu=new WeakMap,Uw=new WeakMap,mk=new WeakMap,Ww=new WeakMap,BJ=Ys.find,yk=!0;"find"in[]&&Array(1).find(function(){yk=!1}),Ee({target:"Array",proto:!0,forced:yk},{find:function(t){return BJ(this,t,arguments.length>1?arguments[1]:void 0)}}),Bf("find"),Ee({global:!0},{globalThis:J});const FJ=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];E0&&(k.fn.css=E0),vr&&(k.fn.append=vr),_s&&(k.fn.addClass=_s),Ps&&(k.fn.removeClass=Ps),js&&(k.fn.hasClass=js),lo&&(k.fn.on=lo),Si&&(k.fn.focus=Si),gr&&(k.fn.attr=gr),m0&&(k.fn.removeAttr=m0),Ns&&(k.fn.hide=Ns),w0&&(k.fn.show=w0),S7&&(k.fn.offset=S7),y0&&(k.fn.width=y0),b0&&(k.fn.height=b0),Ls&&(k.fn.parent=Ls),C0&&(k.fn.parents=C0),O7&&(k.fn.is=O7),Is&&(k.fn.dataset=Is),so&&(k.fn.val=so),x0&&(k.fn.text=x0),Ci&&(k.fn.html=Ci),Ms&&(k.fn.children=Ms),zs&&(k.fn.remove=zs),Rs&&(k.fn.find=Rs),D0&&(k.fn.each=D0),$s&&(k.fn.empty=$s);var go,Sn,Gw=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||null},Wr=function(t){return bu(t)&&t.nodeType===1},bu=function(t){var e=Gw(t);return!!e&&t instanceof e.Node},bk=function(t){var e=t&&t.anchorNode&&Gw(t.anchorNode);return!!e&&t instanceof e.Selection},wk=function(t){return bu(t)&&t.nodeType===3},qw=function(t){var e,n,r;return(e=window.document.getElementById(t))!==null&&e!==void 0?e:((r=(n=window.document.activeElement)===null||n===void 0?void 0:n.shadowRoot)===null||r===void 0?void 0:r.getElementById(t))||null},Ek=function(t,e,n){for(var r,o=t.childNodes,i=o[e],a=e,u=!1,s=!1;(bu(r=i)&&r.nodeType===8||Wr(i)&&i.childNodes.length===0||Wr(i)&&i.getAttribute("contenteditable")==="false")&&(!u||!s);)a>=o.length?(u=!0,a=e-1,n="backward"):a<0?(s=!0,a=e+1,n="forward"):(i=o[a],e=a,a+=n==="forward"?1:-1);return[i,e]},TJ=function(t,e,n){return Ut(Ek(t,e,n),1)[0]},_J=function t(e){var n,r,o="";if(wk(e)&&e.nodeValue)return e.nodeValue;if(Wr(e)){try{for(var i=Er(Array.from(e.childNodes)),a=i.next();!a.done;a=i.next())o+=t(a.value)}catch(s){n={error:s}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}var u=getComputedStyle(e).getPropertyValue("display");u!=="block"&&u!=="list"&&u!=="table-row"&&e.tagName!=="BR"||(o+=`
- `)}return o};function Dk(t,e){if(!(t instanceof HTMLElement&&t.dataset.slateVoid==="true"))for(var n=t.childNodes,r=n.length;r--;){var o=n[r],i=o.nodeType;i==3?e(o,t):i!=1&&i!=9&&i!=11||Dk(o,e)}}function xk(t){if(t.length===0)return"";var e=t[0];return e.nodeType!==go.ELEMENT_NODE?"":e.tagName.toLowerCase()}(Sn=go||(go={}))[Sn.ELEMENT_NODE=1]="ELEMENT_NODE",Sn[Sn.TEXT_NODE=3]="TEXT_NODE",Sn[Sn.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",Sn[Sn.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",Sn[Sn.COMMENT_NODE=8]="COMMENT_NODE",Sn[Sn.DOCUMENT_NODE=9]="DOCUMENT_NODE",Sn[Sn.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",Sn[Sn.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE";var Kw=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),Mf=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),zf=typeof navigator<"u"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),PJ=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),jJ=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),Xw=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),$f=!jJ&&!PJ&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",A={getWindow:function(t){var e=vk.get(t);if(!e)throw new Error("Unable to find a host window element for this editor");return e},findKey:function(t,e){var n=mg.get(e);return n||(n=new JO,mg.set(e,n)),n},setNewKey:function(t){var e=new JO;mg.set(t,e)},findPath:function(t,e){for(var n=[],r=e;;){var o=ol.get(r);if(o==null){if(E.isEditor(r))return n;break}var i=Rf.get(r);if(i==null)break;n.unshift(i),r=o}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(e))},findDocumentOrShadowRoot:function(t){if(t.isDestroyed)return window.document;var e=A.toDOMNode(t,t),n=e.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&n.getSelection!=null?n:e.ownerDocument},getParentNode:function(t,e){return ol.get(e)||null},getParentsNodes:function(t,e){for(var n=[],r=e;r!==t&&r!=null;){var o=A.getParentNode(t,r);if(o==null)break;n.push(o),r=o}return n},getTopNode:function(t,e){var n=[A.findPath(t,e)[0]];return tt.get(t,n)},toDOMNode:function(t,e){var n;if(E.isEditor(e))n=Hw.get(t);else{var r=A.findKey(t,e);n=Vw.get(r)}if(!n)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(e));return n},hasDOMNode:function(t,e,n){n===void 0&&(n={});var r,o=n.editable,i=o!==void 0&&o,a=A.toDOMNode(t,t);try{r=Wr(e)?e:e.parentElement}catch(u){if(!u.message.includes('Permission denied to access property "nodeType"'))throw u}return!!r&&r.closest("[data-slate-editor]")===a&&(!i||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))},toDOMRange:function(t,e){var n=e.anchor,r=e.focus,o=L.isBackward(e),i=A.toDOMPoint(t,n),a=L.isCollapsed(e)?i:A.toDOMPoint(t,r),u=A.getWindow(t).document.createRange(),s=Ut(o?a:i,2),l=s[0],c=s[1],f=Ut(o?i:a,2),p=f[0],d=f[1],g=!!(Wr(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),v=!!(Wr(p)?p:p.parentElement).getAttribute("data-slate-zero-width");return u.setStart(l,g?1:c),u.setEnd(p,v?1:d),u},toDOMPoint:function(t,e){var n,r,o,i=Ut(E.node(t,e.path),1)[0],a=A.toDOMNode(t,i);E.void(t,{at:e})&&(e={path:e.path,offset:0});var u=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),s=0;try{for(var l=Er(u),c=l.next();!c.done;c=l.next()){var f=c.value,p=f.childNodes[0];if(p!=null&&p.textContent!=null){var d=p.textContent.length,g=f.getAttribute("data-slate-length"),v=s+(g==null?d:parseInt(g,10));if(e.offset<=v){o=[p,Math.min(d,Math.max(0,e.offset-s))];break}s=v}}}catch(m){n={error:m}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(e));return o},toSlateNode:function(t,e){var n=Wr(e)?e:e.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?gg.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: "+n);return r},findEventRange:function(t,e){"nativeEvent"in e&&(e=e.nativeEvent);var n=e.clientX,r=e.clientY,o=e.target;if(n==null||r==null)throw new Error("Cannot resolve a Slate range from a DOM event: "+e);var i,a=A.toSlateNode(t,e.target),u=A.findPath(t,a);if(E.isVoid(t,a)){var s=o.getBoundingClientRect(),l=t.isInline(a)?n-s.left<s.left+s.width-n:r-s.top<s.top+s.height-r,c=E.point(t,u,{edge:l?"start":"end"}),f=l?E.before(t,c):E.after(t,c);if(f)return E.range(t,f)}var p=this.getWindow(t).document;if(p.caretRangeFromPoint)i=p.caretRangeFromPoint(n,r);else{var d=p.caretPositionFromPoint(n,r);d&&((i=p.createRange()).setStart(d.offsetNode,d.offset),i.setEnd(d.offsetNode,d.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: "+e);return A.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(t,e,n){var r,o,i,a,u,s=n.exactMatch,l=n.suppressThrow;if((bk(e)?e.anchorNode:e.startContainer)&&(bk(e)?(r=e.anchorNode,o=e.anchorOffset,i=e.focusNode,a=e.focusOffset,u=Xw&&window.document.activeElement&&window.document.activeElement.shadowRoot?e.anchorNode===e.focusNode&&e.anchorOffset===e.focusOffset:e.isCollapsed):(r=e.startContainer,o=e.startOffset,i=e.endContainer,a=e.endOffset,u=e.collapsed)),r==null||i==null||o==null||a==null)throw new Error("Cannot resolve a Slate range from DOM range: "+e);var c=A.toSlatePoint(t,[r,o],{exactMatch:s,suppressThrow:l});if(!c)return null;var f=u?c:A.toSlatePoint(t,[i,a],{exactMatch:s,suppressThrow:l});if(!f)return null;var p={anchor:c,focus:f};return L.isExpanded(p)&&L.isForward(p)&&Wr(i)&&E.void(t,{at:p.focus,mode:"highest"})&&(p=E.unhangRange(t,p,{voids:!0})),p},toSlatePoint:function(t,e,n){var r,o=n.exactMatch,i=n.suppressThrow,a=Ut(o?e:function(h){var b,w=Ut(h,2),D=w[0],C=w[1];if(Wr(D)&&D.childNodes.length){var x=C===D.childNodes.length,S=x?C-1:C;for(D=(b=Ut(Ek(D,S,x?"backward":"forward"),2))[0],x=(S=b[1])<C;Wr(D)&&D.childNodes.length;){var F=x?D.childNodes.length-1:0;D=TJ(D,F,x?"backward":"forward")}C=x&&D.textContent!=null?D.textContent.length:0}return[D,C]}(e),2),u=a[0],s=a[1],l=u.parentNode,c=null,f=0;if(l){var p=l.closest('[data-slate-void="true"]'),d=l.closest("[data-slate-leaf]"),g=null;if(d){c=d.closest('[data-slate-node="text"]');var v=A.getWindow(t).document.createRange();v.setStart(c,0),v.setEnd(u,s);var m=v.cloneContents();Fw(Fw([],Ut(w7(m.querySelectorAll("[data-slate-zero-width]")))),Ut(w7(m.querySelectorAll("[contenteditable=false]")))).forEach(function(h){h.parentNode.removeChild(h)}),f=m.textContent.length,g=c}else p&&((d=p.querySelector("[data-slate-leaf]"))?(c=d.closest('[data-slate-node="text"]'),f=(g=d).textContent.length,g.querySelectorAll("[data-slate-zero-width]").forEach(function(h){f-=h.textContent.length})):f=1);g&&f===g.textContent.length&&(l.hasAttribute("data-slate-zero-width")||Mf&&(!((r=g.textContent)===null||r===void 0)&&r.endsWith(`
- `)))&&f--}if(!c){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+e)}var y=A.toSlateNode(t,c);return{path:A.findPath(t,y),offset:f}},hasRange:function(t,e){var n=e.anchor,r=e.focus;return E.hasPath(t,n.path)&&E.hasPath(t,r.path)},getNodeType:function(t){return ct.isElement(t)?t.type:""},checkNodeType:function(t,e){return this.getNodeType(t)===e},getNodesStr:function(t){return t.map(function(e){return tt.string(e)}).join("")},getSelectedElems:function(t){var e,n,r=[],o=E.nodes(t,{universal:!0});try{for(var i=Er(o),a=i.next();!a.done;a=i.next()){var u=Ut(a.value,1)[0];ct.isElement(u)&&r.push(u)}}catch(s){e={error:s}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r},getSelectedNodeByType:function(t,e){var n=this,r=Ut(E.nodes(t,{match:function(i){return n.checkNodeType(i,e)},universal:!0}),1),o=r[0];return o==null?null:o[0]},getSelectedTextNode:function(t){var e=Ut(E.nodes(t,{match:function(r){return ot.isText(r)},universal:!0}),1),n=e[0];return n==null?null:n[0]},isNodeSelected:function(t,e){var n=Ut(E.nodes(t,{match:function(o){return o===e},universal:!0}),1),r=n[0];return r!=null&&Ut(r,1)[0]===e},isSelectionAtLineEnd:function(t,e){var n=t.selection;return!!n&&(E.isEnd(t,n.anchor,e)||E.isEnd(t,n.focus,e))},getTextarea:function(t){var e=Nw.get(t);if(e==null)throw new Error("Cannot find textarea instance by editor");return e},getToolbar:function(t){return dg.get(t)||null},getHoverbar:function(t){return pg.get(t)||null},normalizeContent:function(t){t.children.forEach(function(e,n){t.normalizeNode([e,[n]])})},getLeftLengthOfMaxLength:function(t){var e=t.getConfig(),n=e.maxLength,r=e.onMaxLength;if(typeof n!="number"||n<=0)return 1/0;var o=n-t.getText().replace(/\r|\n|(\r\n)/g,"").length;return o<=0&&r&&r(t),o},cleanExposedTexNodeInSelectionBlock:function(t){var e,n,r,o,i=A.getTextarea(t).$textArea,a=i==null?void 0:i[0].childNodes;if(a)try{for(var u=Er(Array.from(a)),s=u.next();!s.done;s=u.next()){var l=s.value;if(l.nodeType!==3)break;l.remove()}}catch(v){e={error:v}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(e)throw e.error}}var c=E.nodes(t,{match:function(v){return!(!ct.isElement(v)||t.isInline(v))},universal:!0});try{for(var f=Er(c),p=f.next();!p.done;p=f.next()){var d=p.value;if(d!=null){var g=d[0];Dk(A.toDOMNode(t,g),function(v,m){var y=k(m);y.attr("data-slate-string")||y.attr("data-slate-zero-width")||y.attr("data-w-e-reserve")||m.removeChild(v)})}}}catch(v){r={error:v}}finally{try{p&&!p.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}},isLastNode:function(t,e){var n=t.children||[];return n[n.length-1]===e},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(t){var e,n,r=E.nodes(t,{match:function(u){return t.isVoid(u)}}),o=0;try{for(var i=Er(r),a=i.next();!a.done;a=i.next())a.value,o++}catch(u){e={error:u}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return o>0},isSelectedEmptyParagraph:function(t){var e=t.selection;if(e==null||L.isExpanded(e))return!1;var n=A.getSelectedNodeByType(t,"paragraph");if(n===null)return!1;var r=n.children;return r.length===1&&(r[0].text===""||void 0)},isEmptyPath:function(t,e){var n=E.node(t,e);if(n==null)return!1;var r=Ut(n,1)[0].children;return r.length===1&&r[0].text===""}},IJ=1,Ck={},Hf={},NJ=Ys.filter,LJ=eg("filter");Ee({target:"Array",proto:!0,forced:!LJ},{filter:function(t){return NJ(this,t,arguments.length>1?arguments[1]:void 0)}});var Yw=`
- \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,Sk=pt("".replace),yg="["+Yw+"]",RJ=RegExp("^"+yg+yg+"*"),MJ=RegExp(yg+yg+"*$"),Jw=function(t){return function(e){var n=se(br(e));return 1&t&&(n=Sk(n,RJ,"")),2&t&&(n=Sk(n,MJ,"")),n}},zJ={start:Jw(1),end:Jw(2),trim:Jw(3)},$J=Ks.PROPER,HJ=zJ.trim;Ee({target:"String",proto:!0,forced:function(t){return Kt(function(){return!!Yw[t]()||"\u200B\x85\u180E"[t]()!=="\u200B\x85\u180E"||$J&&Yw[t].name!==t})}("trim")},{trim:function(){return HJ(this)}});var Zw=[],Ak={};function VJ(t,e,n){var r=n.isInline(t)?"span":"div";return"<"+r+">"+e+"</"+r+">"}var Vf,il,Ok,Qw,bg=J.Promise,kk=we("species"),t4=function(t){var e=lu(t),n=Hr.f;cn&&e&&!e[kk]&&n(e,kk,{configurable:!0,get:function(){return this}})},UJ=J.TypeError,WJ=we("species"),Bk=function(t,e){var n,r=Le(t).constructor;return r===void 0||(n=Le(r)[WJ])==null?e:function(o){if(q0(o))return o;throw UJ(L0(o)+" is not a constructor")}(n)},Fk=pt([].slice),Tk=/(?:ipad|iphone|ipod).*applewebkit/i.test(Gs),Ni=Ur(J.process)=="process",e4=J.setImmediate,n4=J.clearImmediate,GJ=J.process,r4=J.Dispatch,qJ=J.Function,_k=J.MessageChannel,KJ=J.String,o4=0,Uf={};try{Vf=J.location}catch{}var i4=function(t){if(Ne(Uf,t)){var e=Uf[t];delete Uf[t],e()}},a4=function(t){return function(){i4(t)}},Pk=function(t){i4(t.data)},jk=function(t){J.postMessage(KJ(t),Vf.protocol+"//"+Vf.host)};e4&&n4||(e4=function(t){var e=Fk(arguments,1);return Uf[++o4]=function(){Ew(ne(t)?t:qJ(t),void 0,e)},il(o4),o4},n4=function(t){delete Uf[t]},Ni?il=function(t){GJ.nextTick(a4(t))}:r4&&r4.now?il=function(t){r4.now(a4(t))}:_k&&!Tk?(Qw=(Ok=new _k).port2,Ok.port1.onmessage=Pk,il=hu(Qw.postMessage,Qw)):J.addEventListener&&ne(J.postMessage)&&!J.importScripts&&Vf&&Vf.protocol!=="file:"&&!Kt(jk)?(il=jk,J.addEventListener("message",Pk,!1)):il="onreadystatechange"in wf("script")?function(t){J2.appendChild(wf("script")).onreadystatechange=function(){J2.removeChild(this),i4(t)}}:function(t){setTimeout(a4(t),0)});var Wf,wu,Gf,al,u4,s4,l4,Ik,Nk={set:e4,clear:n4},XJ=/ipad|iphone|ipod/i.test(Gs)&&J.Pebble!==void 0,YJ=/web0s(?!.*chrome)/i.test(Gs),JJ=Sf.f,c4=Nk.set,Lk=J.MutationObserver||J.WebKitMutationObserver,Rk=J.document,Mk=J.process,wg=J.Promise,zk=JJ(J,"queueMicrotask"),$k=zk&&zk.value;$k||(Wf=function(){var t,e;for(Ni&&(t=Mk.domain)&&t.exit();wu;){e=wu.fn,wu=wu.next;try{e()}catch(n){throw wu?al():Gf=void 0,n}}Gf=void 0,t&&t.enter()},Tk||Ni||YJ||!Lk||!Rk?!XJ&&wg&&wg.resolve?((l4=wg.resolve(void 0)).constructor=wg,Ik=hu(l4.then,l4),al=function(){Ik(Wf)}):Ni?al=function(){Mk.nextTick(Wf)}:(c4=hu(c4,J),al=function(){c4(Wf)}):(u4=!0,s4=Rk.createTextNode(""),new Lk(Wf).observe(s4,{characterData:!0}),al=function(){s4.data=u4=!u4}));var f4,Hk,Vk,Uk,Wk=$k||function(t){var e={fn:t,next:void 0};Gf&&(Gf.next=e),wu||(wu=e,al()),Gf=e},ZJ=function(t){var e,n;this.promise=new t(function(r,o){if(e!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");e=r,n=o}),this.resolve=Pi(e),this.reject=Pi(n)},d4={f:function(t){return new ZJ(t)}},p4=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},QJ=typeof window=="object",Gk=Nk.set,tZ=we("species"),vo="Promise",qk=Cn.getterFor(vo),eZ=Cn.set,nZ=Cn.getterFor(vo),Eu=bg&&bg.prototype,mo=bg,qf=Eu,Kk=J.TypeError,h4=J.document,g4=J.process,ul=d4.f,rZ=ul,oZ=!!(h4&&h4.createEvent&&J.dispatchEvent),Xk=ne(J.PromiseRejectionEvent),Yk=!1,Kf=kf(vo,function(){var t=$0(mo),e=t!==String(mo);if(!e&&yf===66)return!0;if(yf>=51&&/native code/.test(t))return!1;var n=new mo(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[tZ]=r,!(Yk=n.then(function(){})instanceof r)||!e&&QJ&&!Xk}),iZ=Kf||!aw(function(t){mo.all(t).catch(function(){})}),Jk=function(t){var e;return!(!ce(t)||!ne(e=t.then))&&e},v4=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;Wk(function(){for(var r=t.value,o=t.state==1,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,p=l.reject,d=l.domain;try{c?(o||(t.rejection===2&&uZ(t),t.rejection=1),c===!0?a=r:(d&&d.enter(),a=c(r),d&&(d.exit(),s=!0)),a===l.promise?p(Kk("Promise-chain cycle")):(u=Jk(a))?Vt(u,a,f,p):f(a)):p(r)}catch(g){d&&!s&&d.exit(),p(g)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&aZ(t)})}},Zk=function(t,e,n){var r,o;oZ?((r=h4.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),J.dispatchEvent(r)):r={promise:e,reason:n},!Xk&&(o=J["on"+t])?o(r):t==="unhandledrejection"&&function(i,a){var u=J.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))}("Unhandled promise rejection",n)},aZ=function(t){Vt(Gk,J,function(){var e,n=t.facade,r=t.value;if(Qk(t)&&(e=p4(function(){Ni?g4.emit("unhandledRejection",r,n):Zk("unhandledrejection",n,r)}),t.rejection=Ni||Qk(t)?2:1,e.error))throw e.value})},Qk=function(t){return t.rejection!==1&&!t.parent},uZ=function(t){Vt(Gk,J,function(){var e=t.facade;Ni?g4.emit("rejectionHandled",e):Zk("rejectionhandled",e,t.value)})},sl=function(t,e,n){return function(r){t(e,r,n)}},ll=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,v4(t,!0))},m4=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw Kk("Promise can't be resolved itself");var r=Jk(e);r?Wk(function(){var o={done:!1};try{Vt(r,e,sl(m4,o,t),sl(ll,o,t))}catch(i){ll(o,i,t)}}):(t.value=e,t.state=1,v4(t,!1))}catch(o){ll({done:!1},o,t)}}};if(Kf&&(qf=(mo=function(t){ug(this,qf),Pi(t),Vt(f4,this);var e=qk(this);try{t(sl(m4,e),sl(ll,e))}catch(n){ll(e,n)}}).prototype,(f4=function(t){eZ(this,{type:vo,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=rl(qf,{then:function(t,e){var n=nZ(this),r=n.reactions,o=ul(Bk(this,mo));return o.ok=!ne(t)||t,o.fail=ne(e)&&e,o.domain=Ni?g4.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&v4(n,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),Hk=function(){var t=new f4,e=qk(t);this.promise=t,this.resolve=sl(m4,e),this.reject=sl(ll,e)},d4.f=ul=function(t){return t===mo||t===Vk?new Hk(t):rZ(t)},ne(bg)&&Eu!==Object.prototype)){Uk=Eu.then,Yk||(Hn(Eu,"then",function(t,e){var n=this;return new mo(function(r,o){Vt(Uk,n,r,o)}).then(t,e)},{unsafe:!0}),Hn(Eu,"catch",qf.catch,{unsafe:!0}));try{delete Eu.constructor}catch{}el&&el(Eu,qf)}Ee({global:!0,wrap:!0,forced:Kf},{Promise:mo}),Q0(mo,vo,!1),t4(vo),Vk=lu(vo),Ee({target:vo,stat:!0,forced:Kf},{reject:function(t){var e=ul(this);return Vt(e.reject,void 0,t),e.promise}}),Ee({target:vo,stat:!0,forced:Kf},{resolve:function(t){return function(e,n){if(Le(e),ce(n)&&n.constructor===e)return n;var r=d4.f(e);return(0,r.resolve)(n),r.promise}(this,t)}}),Ee({target:vo,stat:!0,forced:iZ},{all:function(t){var e=this,n=ul(e),r=n.resolve,o=n.reject,i=p4(function(){var a=Pi(e.resolve),u=[],s=0,l=1;If(t,function(c){var f=s++,p=!1;l++,Vt(a,e,c).then(function(d){p||(p=!0,u[f]=d,--l||r(u))},o)}),--l||r(u)});return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=ul(e),r=n.reject,o=p4(function(){var i=Pi(e.resolve);If(t,function(a){Vt(i,e,a).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var cl=ng.UNSUPPORTED_Y,sZ=Math.min,tB=[].push,lZ=pt(/./.exec),fl=pt(tB),Xf=pt("".slice);function Dr(t){Promise.resolve().then(t)}function eB(t,e){return ct.isElement(t)?function(n,r){var o=n.type,i=o===void 0?"":o,a=n.children,u=a===void 0?[]:a,s=E.isVoid(r,n),l="";s||(l=u.map(function(y){return eB(y,r)}).join(""));var c=function(y){return Ak[y]||VJ}(i),f=c(n,l,r),p="";if(p=typeof f=="string"?f:f.html||"",s||Zw.forEach(function(y){return p=y(n,p)}),typeof f=="string")return p;var d=f.prefix,g=d===void 0?"":d,v=f.suffix,m=v===void 0?"":v;return g&&(p=g+p),m&&(p+=m),p}(t,e):function(n,r){var o=n.text;if(o==null)throw new Error("Current node is not slate Text "+JSON.stringify(n));var i=o;i=function(s){return s.replace(/ {2}/g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™")}(i);var a=A.getParentsNodes(r,n).some(function(s){return A.getNodeType(s)==="pre"});if(a||(i=i.replace(/\r\n|\r|\n/g,"<br>")),a&&(i=i.replace(/ /g," ")),i===""){var u=A.getParentNode(null,n);if(!u||u.children.length!==0)return i;i="<br>"}return Zw.forEach(function(s){return i=s(n,i)}),i}(t,e)}function nB(t){return"w-e-element-"+t}xw("split",function(t,e,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a=se(br(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[a];if(!ew(o))return Vt(e,a,o,u);for(var s,l,c,f=[],p=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),d=0,g=new RegExp(o.source,p+"g");(s=Vt(_f,g,a))&&!((l=g.lastIndex)>d&&(fl(f,Xf(a,d,s.index)),s.length>1&&s.index<a.length&&Ew(tB,f,Tw(s,1)),c=s[0].length,d=l,f.length>=u));)g.lastIndex===s.index&&g.lastIndex++;return d===a.length?!c&&lZ(g,"")||fl(f,""):fl(f,Xf(a,d)),f.length>u?Tw(f,0,u):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Vt(e,this,o,i)}:e,[function(o,i){var a=br(this),u=o==null?void 0:du(o,t);return u?Vt(u,o,a,i):Vt(r,se(a),o,i)},function(o,i){var a=Le(this),u=se(o),s=n(r,a,u,i,r!==e);if(s.done)return s.value;var l=Bk(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(cl?"g":"y"),p=new l(cl?"^(?:"+a.source+")":a,f),d=i===void 0?4294967295:i>>>0;if(d===0)return[];if(u.length===0)return Pf(p,u)===null?[u]:[];for(var g=0,v=0,m=[];v<u.length;){p.lastIndex=cl?0:v;var y,h=Pf(p,cl?Xf(u,v):u);if(h===null||(y=sZ(Xs(p.lastIndex+(cl?v:0)),u.length))===g)v=Cw(u,v,c);else{if(fl(m,Xf(u,g,v)),m.length===d)return m;for(var b=1;b<=h.length-1;b++)if(fl(m,h[b]),m.length===d)return m;v=g=y}}return fl(m,Xf(u,g)),m}]},!!Kt(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),cl);var rB=function(t,e){var n=(e.top+e.bottom)/2;return t.top<=n&&t.bottom>=n},oB=function(t,e,n){var r=A.toDOMRange(t,e).getBoundingClientRect(),o=A.toDOMRange(t,n).getBoundingClientRect();return rB(r,o)&&rB(o,r)},iB=["span","b","strong","i","em","s","strike","u","font","sub","sup"],aB=[],y4=[],Eg={},cZ=Hr.f,fZ=Af.f,dZ=Cn.enforce,pZ=we("match"),Ko=J.RegExp,dl=Ko.prototype,hZ=J.SyntaxError,gZ=pt(X2),vZ=pt(dl.exec),Dg=pt("".charAt),uB=pt("".replace),sB=pt("".indexOf),mZ=pt("".slice),yZ=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Du=/a/g,b4=/a/g,bZ=new Ko(Du)!==Du,lB=ng.MISSED_STICKY,wZ=ng.UNSUPPORTED_Y,EZ=cn&&(!bZ||lB||hw||gw||Kt(function(){return b4[pZ]=!1,Ko(Du)!=Du||Ko(b4)==b4||Ko(Du,"i")!="/a/i"}));if(kf("RegExp",EZ)){for(var Li=function(t,e){var n,r,o,i,a,u,s=fu(dl,this),l=ew(t),c=e===void 0,f=[],p=t;if(!s&&l&&c&&t.constructor===Li)return t;if((l||fu(dl,t))&&(t=t.source,c&&(e="flags"in p?p.flags:gZ(p))),t=t===void 0?"":se(t),e=e===void 0?"":se(e),p=t,hw&&"dotAll"in Du&&(r=!!e&&sB(e,"s")>-1)&&(e=uB(e,/s/g,"")),n=e,lB&&"sticky"in Du&&(o=!!e&&sB(e,"y")>-1)&&wZ&&(e=uB(e,/y/g,"")),gw&&(i=function(d){for(var g,v=d.length,m=0,y="",h=[],b={},w=!1,D=!1,C=0,x="";m<=v;m++){if((g=Dg(d,m))==="\\")g+=Dg(d,++m);else if(g==="]")w=!1;else if(!w)switch(!0){case g==="[":w=!0;break;case g==="(":vZ(yZ,mZ(d,m+1))&&(m+=2,D=!0),y+=g,C++;continue;case(g===">"&&D):if(x===""||Ne(b,x))throw new hZ("Invalid capture group name");b[x]=!0,h[h.length]=[x,C],D=!1,x="";continue}D?x+=g:y+=g}return[y,h]}(t),t=i[0],f=i[1]),a=nk(Ko(t,e),s?this:dl,Li),(r||o||f.length)&&(u=dZ(a),r&&(u.dotAll=!0,u.raw=Li(function(d){for(var g,v=d.length,m=0,y="",h=!1;m<=v;m++)(g=Dg(d,m))!=="\\"?h||g!=="."?(g==="["?h=!0:g==="]"&&(h=!1),y+=g):y+="[\\s\\S]":y+=g+Dg(d,++m);return y}(t),n)),o&&(u.sticky=!0),f.length&&(u.groups=f)),t!==p)try{Vr(a,"source",p===""?"(?:)":p)}catch{}return a},DZ=function(t){t in Li||cZ(Li,t,{configurable:!0,get:function(){return Ko[t]},set:function(e){Ko[t]=e}})},cB=fZ(Ko),fB=0;cB.length>fB;)DZ(cB[fB++]);dl.constructor=Li,Li.prototype=dl,Hn(J,"RegExp",Li)}t4("RegExp");var xZ=new RegExp(String.fromCharCode(160),"g");function dB(t){return t.replace(xZ," ")}function pB(t,e){var n=t.length;if(n){var r=t[n-1];if(ot.isText(r)){var o=Object.keys(r);if(o.length===1&&o[0]==="text")return r.text=r.text+e,!0}}return!1}function CZ(t,e,n){return{type:"paragraph",children:[{text:k(t).text().replace(/\s+/gm," ")}]}}function w4(t,e){var n=function(i,a){var u=[];if(i.attr("data-w-e-is-void")!=null)return u;var s=i[0].childNodes;return s.length===1&&s[0].nodeName==="BR"?(u.push({text:""}),u):(s.forEach(function(l){if(l.nodeType!==go.ELEMENT_NODE){if(l.nodeType===go.TEXT_NODE){var c=l.textContent||"";if(c.trim()===""&&c.indexOf(`
- `)>=0)return;c&&(c=dB(c),pB(u,c)||u.push({text:c}))}}else{if(l.nodeName==="BR")return void(pB(u,`
- `)||u.push({text:`
- `}));var f=D4(k(l),a);Array.isArray(f)?f.forEach(function(p){return u.push(p)}):u.push(f)}}),u)}(t,e),r=function(i){for(var a in Eg)if(i[0].matches(a))return Eg[a];return CZ}(t),o=r(t[0],n,e);return Array.isArray(o)||(o=[o]),o.forEach(function(i){E.isVoid(e,i)||(n.length===0&&(i.children=[{text:t.text().replace(/\s+/gm," ")}]),y4.forEach(function(a){i=a(t[0],i,e)}))}),o}function E4(t,e){t.parents("pre").length===0&&(t[0].innerHTML=t[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,`
- `));var n=t[0].textContent||"";n=function(o){return o.replace(/ /g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"\xAE").replace(/©/g,"\xA9").replace(/™/g,"\u2122").replace(/"/g,'"')}(n);var r={text:n=dB(n)};return y4.forEach(function(o){r=o(t[0],r,e)}),r}function D4(t,e){aB.forEach(function(r){var o=r.selector,i=r.preParseHtml;t[0].matches(o)&&(t=k(i(t[0])))});var n=xk(t);return n==="span"?t.attr("data-w-e-type")?w4(t,e):E4(t,e):n==="code"?xk(t.parent())==="pre"?w4(t,e):E4(t,e):iB.includes(n)?E4(t,e):w4(t,e)}function hB(t,e,n){var r=k(n);return!!r.attr(e)||(r.attr(e,"true"),t.on("destroyed",function(){r.removeAttr(e)}),!1)}function gB(t,e){e===void 0&&(e="");var n=[];e===""&&(e="<p><br></p>"),e.indexOf("<")!==0&&(e=e.split(/\n/).map(function(o){return"<p>"+o+"</p>"}).join(""));var r=k("<div>"+e+"</div>");return Array.from(r.children()).forEach(function(o){var i=D4(k(o),t);Array.isArray(i)?i.forEach(function(a){return n.push(a)}):n.push(i)}),n}var SZ=Hr.f,vB=ig.fastKey,mB=Cn.set,x4=Cn.getterFor,AZ={getConstructor:function(t,e,n,r){var o=t(function(l,c){ug(l,i),mB(l,{type:e,index:J0(null),first:void 0,last:void 0,size:0}),cn||(l.size=0),c!=null&&If(c,l[r],{that:l,AS_ENTRIES:n})}),i=o.prototype,a=x4(e),u=function(l,c,f){var p,d,g=a(l),v=s(l,c);return v?v.value=f:(g.last=v={index:d=vB(c,!0),key:c,value:f,previous:p=g.last,next:void 0,removed:!1},g.first||(g.first=v),p&&(p.next=v),cn?g.size++:l.size++,d!=="F"&&(g.index[d]=v)),l},s=function(l,c){var f,p=a(l),d=vB(c);if(d!=="F")return p.index[d];for(f=p.first;f;f=f.next)if(f.key==c)return f};return rl(i,{clear:function(){for(var l=a(this),c=l.index,f=l.first;f;)f.removed=!0,f.previous&&(f.previous=f.previous.next=void 0),delete c[f.index],f=f.next;l.first=l.last=void 0,cn?l.size=0:this.size=0},delete:function(l){var c=this,f=a(c),p=s(c,l);if(p){var d=p.next,g=p.previous;delete f.index[p.index],p.removed=!0,g&&(g.next=d),d&&(d.previous=g),f.first==p&&(f.first=d),f.last==p&&(f.last=g),cn?f.size--:c.size--}return!!p},forEach:function(l){for(var c,f=a(this),p=hu(l,arguments.length>1?arguments[1]:void 0);c=c?c.next:f.first;)for(p(c.value,c.key,this);c&&c.removed;)c=c.previous},has:function(l){return!!s(this,l)}}),rl(i,n?{get:function(l){var c=s(this,l);return c&&c.value},set:function(l,c){return u(this,l===0?0:l,c)}}:{add:function(l){return u(this,l=l===0?0:l,l)}}),cn&&SZ(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(t,e,n){var r=e+" Iterator",o=x4(e),i=x4(r);cw(t,e,function(a,u){mB(this,{type:r,target:a,state:o(a),kind:u,last:void 0})},function(){for(var a=i(this),u=a.kind,s=a.last;s&&s.removed;)s=s.previous;return a.target&&(a.last=s=s?s.next:a.state.first)?u=="keys"?{value:s.key,done:!1}:u=="values"?{value:s.value,done:!1}:{value:[s.key,s.value],done:!1}:(a.target=void 0,{value:void 0,done:!0})},n?"entries":"values",!n,!0),t4(e)}};rk("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},AZ);var yB=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function bB(t,e){t.isInline(e)?(t.insertNode(e),e.type==="link"&&t.insertFragment([{text:""}])):I.insertNodes(t,e,{mode:"highest"})}var OZ=function(t){var e=t,n=e.insertText;return e.insertFragment,e.setFragmentData=function(r){var o=e.selection;if(o){var i=Ut(L.edges(o),2),a=i[0],u=i[1],s=E.void(e,{at:a.path}),l=E.void(e,{at:u.path});if(!L.isCollapsed(o)||s){var c=A.toDOMRange(e,o),f=c.cloneContents(),p=f.childNodes[0];if(f.childNodes.forEach(function(D){D.textContent&&D.textContent.trim()!==""&&(p=D)}),l){var d=Ut(l,1)[0],g=c.cloneRange(),v=A.toDOMNode(e,d);g.setEndAfter(v),f=g.cloneContents()}if(s&&(p=f.querySelector("[data-slate-spacer]")),Array.from(f.querySelectorAll("[data-slate-zero-width]")).forEach(function(D){var C=D.getAttribute("data-slate-zero-width")==="n";D.textContent=C?`
- `:""}),wk(p)){var m=p.ownerDocument.createElement("span");m.style.whiteSpace="pre",m.appendChild(p),f.appendChild(m),p=m}var y=e.getFragment(),h=JSON.stringify(y),b=window.btoa(encodeURIComponent(h));p.setAttribute("data-slate-fragment",b),r.setData("application/x-slate-fragment",b);var w=f.ownerDocument.createElement("div");return w.appendChild(f),w.setAttribute("hidden","true"),f.ownerDocument.body.appendChild(w),r.setData("text/html",w.innerHTML),r.setData("text/plain",_J(w)),f.ownerDocument.body.removeChild(w),r}}},e.insertData=function(r){var o,i,a=r.getData("application/x-slate-fragment");if(a){var u=decodeURIComponent(window.atob(a)),s=JSON.parse(u);e.insertFragment(s)}else{var l=r.getData("text/plain"),c=r.getData("text/html");if(c)e.dangerouslyInsertHtml(c);else if(l){var f=l.split(/\r\n|\r|\n/),p=!1;try{for(var d=Er(f),g=d.next();!g.done;g=d.next()){var v=g.value;p&&I.splitNodes(e,{always:!0}),n(v),p=!0}}catch(m){o={error:m}}finally{try{g&&!g.done&&(i=d.return)&&i.call(d)}finally{if(o)throw o.error}}}}},e},Yf=function(t){return t!=null},kZ={object:!0,function:!0,undefined:!0},BZ=/^\s*class[\s{/}]/,FZ=Function.prototype.toString,wB=function(t){return!!function(e){if(typeof e!="function"||!hasOwnProperty.call(e,"length"))return!1;try{if(typeof e.length!="number"||typeof e.call!="function"||typeof e.apply!="function")return!1}catch{return!1}return!function(n){if(!function(r){return!!Yf(r)&&hasOwnProperty.call(kZ,typeof r)}(n))return!1;try{return!!n.constructor&&n.constructor.prototype===n}catch{return!1}}(e)}(t)&&!BZ.test(FZ.call(t))},C4=function(t){return t!=null},TZ=Object.keys,_Z=function(){try{return Object.keys("primitive"),!0}catch{return!1}}()?Object.keys:function(t){return TZ(C4(t)?Object(t):t)},PZ=Math.max,EB=function(){var t,e=Object.assign;return typeof e=="function"&&(e(t={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}()?Object.assign:function(t,e){var n,r,o,i=PZ(arguments.length,2);for(t=Object(function(a){if(!C4(a))throw new TypeError("Cannot use null or undefined");return a}(t)),o=function(a){try{t[a]=e[a]}catch(u){n||(n=u)}},r=1;r<i;++r)_Z(e=arguments[r]).forEach(o);if(n!==void 0)throw n;return t},jZ=Array.prototype.forEach,IZ=Object.create,DB=function(t){var e=IZ(null);return jZ.call(arguments,function(n){C4(n)&&function(r,o){var i;for(i in r)o[i]=r[i]}(Object(n),e)}),e},S4="razdwatrzy",NZ=String.prototype.indexOf,Jf=typeof S4.contains=="function"&&S4.contains("dwa")===!0&&S4.contains("foo")===!1?String.prototype.contains:function(t){return NZ.call(this,t,arguments[1])>-1},xg=mf(function(t){var e=t.exports=function(n,r){var o,i,a,u,s;return arguments.length<2||typeof n!="string"?(u=r,r=n,n=null):u=arguments[2],Yf(n)?(o=Jf.call(n,"c"),i=Jf.call(n,"e"),a=Jf.call(n,"w")):(o=a=!0,i=!1),s={value:r,configurable:o,enumerable:i,writable:a},u?EB(DB(u),s):s};e.gs=function(n,r,o){var i,a,u,s;return typeof n!="string"?(u=o,o=r,r=n,n=null):u=arguments[3],Yf(r)?wB(r)?Yf(o)?wB(o)||(u=o,o=void 0):o=void 0:(u=r,r=o=void 0):r=void 0,Yf(n)?(i=Jf.call(n,"c"),a=Jf.call(n,"e")):(i=!0,a=!1),s={get:r,set:o,configurable:i,enumerable:a},u?EB(DB(u),s):s}}),A4=function(t){if(typeof t!="function")throw new TypeError(t+" is not a function");return t},LZ=mf(function(t,e){var n,r,o,i,a,u,s,l=Function.prototype.apply,c=Function.prototype.call,f=Object.create,p=Object.defineProperty,d=Object.defineProperties,g=Object.prototype.hasOwnProperty,v={configurable:!0,enumerable:!1,writable:!0};n=function(m,y){var h;return A4(y),g.call(this,"__ee__")?h=this.__ee__:(h=v.value=f(null),p(this,"__ee__",v),v.value=null),h[m]?typeof h[m]=="object"?h[m].push(y):h[m]=[h[m],y]:h[m]=y,this},r=function(m,y){var h,b;return A4(y),b=this,n.call(this,m,h=function(){o.call(b,m,h),l.call(y,this,arguments)}),h.__eeOnceListener__=y,this},o=function(m,y){var h,b,w,D;if(A4(y),!g.call(this,"__ee__"))return this;if(!(h=this.__ee__)[m])return this;if(typeof(b=h[m])=="object")for(D=0;w=b[D];++D)w!==y&&w.__eeOnceListener__!==y||(b.length===2?h[m]=b[D?0:1]:b.splice(D,1));else b!==y&&b.__eeOnceListener__!==y||delete h[m];return this},i=function(m){var y,h,b,w,D;if(g.call(this,"__ee__")&&(w=this.__ee__[m]))if(typeof w=="object"){for(h=arguments.length,D=new Array(h-1),y=1;y<h;++y)D[y-1]=arguments[y];for(w=w.slice(),y=0;b=w[y];++y)l.call(b,this,D)}else switch(arguments.length){case 1:c.call(w,this);break;case 2:c.call(w,this,arguments[1]);break;case 3:c.call(w,this,arguments[1],arguments[2]);break;default:for(h=arguments.length,D=new Array(h-1),y=1;y<h;++y)D[y-1]=arguments[y];l.call(w,this,D)}},a={on:n,once:r,off:o,emit:i},u={on:xg(n),once:xg(r),off:xg(o),emit:xg(i)},s=d({},u),t.exports=e=function(m){return m==null?f(s):d(Object(m),u)},e.methods=a});function Cg(t){var e=mk.get(t);return e==null&&(e=LZ(),mk.set(t,e)),e}var Sg=new WeakMap;function xB(t,e){var n=Sg.get(t);n==null&&(n=new Set,Sg.set(t,n)),n.add(e)}function O4(t){var e=A.getTextarea(t).$textAreaContainer,n=e.width(),r=e.height(),o=e.offset();return{top:o.top,left:o.left,width:n,height:r}}function k4(t){var e={top:"0",left:"0"},n=t.selection;if(n==null)return e;var r=O4(t);if(r==null)return e;var o=r.top,i=r.left,a=r.width,u=r.height,s=A.toDOMRange(t,n).getClientRects()[0];if(s==null)return e;s.width;var l=s.height,c={},f=s.top-o,p=s.left-i;if(p>a/2){var d=a-p;c.right=d+5+"px"}else c.left=p+5+"px";if(f>u/2){var g=u-f;c.bottom=g+5+"px"}else{var v=f+l;v<0&&(v=0),c.top=v+5+"px"}return c}function B4(t,e,n){n===void 0&&(n="modal");var r={top:"0",left:"0"};if(t.selection==null)return r;var o=ct.isElement(e)&&t.isVoid(e),i=ct.isElement(e)&&t.isInline(e),a=vg.get(e);if(a==null)return r;var u=a.getBoundingClientRect(),s=u.top,l=u.left,c=u.height,f=u.width;if(o){var p=function(x){var S=[];S.push(x);for(var F=0;S.length>0;){var z=S.pop();if(z==null||++F>1e4)break;var M=z.nodeName;if(z.nodeType===1){var R=M.toLowerCase();if(FJ.includes(R)||R==="iframe"||R==="video")return z;var K=z.children||[],V=K.length;if(V)for(var U=V-1;U>=0;U--)S.push(K[U])}}return null}(a);if(p!=null){var d=p.getBoundingClientRect();s=d.top,c=d.height}}var g=O4(t);if(g==null)return r;var v,m=g.top,y=g.left,h=g.width,b=g.height,w={},D=s-m,C=l-y;if(n==="bar")return w.left=C+"px",D>40?w.bottom=b-D+5+"px":w.top=D+c+5+"px",w;if(n==="modal")return o?i?C>(h-f)/2?w.right=h-C+5+"px":w.left=C+f+5+"px":w.left="20px":w.left=C+"px",o?((v=D)<0&&(v=0),w.top=v+"px"):D>(b-c)/2?w.bottom=b-D+5+"px":((v=D+c)<0&&(v=0),w.top=v+5+"px"),w;throw new Error("type '"+n+"' is invalid")}function F4(t,e){Dr(function(){var n=O4(t);if(n!=null){var r,o=n.top,i=n.left,a=n.width,u=n.height,s=e.offset(),l=s.top,c=s.left,f=e.width(),p=e.height(),d=l-o,g=c-i,v=e.attr("style");if(v.indexOf("top")>=0&&(r=d+p-u)>0){var m=e.css("top"),y=parseInt(m.toString())-r;y<0&&(y=0),e.css("top",y+"px")}if(v.indexOf("bottom")>=0&&l<0){var h=e.css("bottom"),b=parseInt(h.toString())-Math.abs(l);e.css("bottom",b+"px")}if(v.indexOf("left")>=0&&(r=g+f-a)>0){var w=e.css("left"),D=parseInt(w.toString())-r;D<0&&(D=0),e.css("left",D+"px")}if(v.indexOf("right")>=0&&c<0){var C=e.css("right"),x=parseInt(C.toString())-Math.abs(c);e.css("right",x+"px")}}})}var RZ=eg("slice"),MZ=we("species"),T4=J.Array,zZ=Math.max;Ee({target:"Array",proto:!0,forced:!RZ},{slice:function(t,e){var n,r,o,i=Ii(this),a=gu(i),u=Js(t,a),s=Js(e===void 0?a:e,a);if(G0(i)&&(n=i.constructor,(q0(n)&&(n===T4||G0(n.prototype))||ce(n)&&(n=n[MZ])===null)&&(n=void 0),n===T4||n===void 0))return Fk(i,u,s);for(r=new(n===void 0?T4:n)(zZ(s-u,0)),o=0;u<s;u++,o++)u in i&&Ff(r,o,i[u]);return r.length=o,r}});var $Z=Sf.f,CB=pt("".startsWith),HZ=pt("".slice),VZ=Math.min,SB=rw("startsWith"),UZ=!SB&&!!function(){var t=$Z(String.prototype,"startsWith");return t&&!t.writable}();Ee({target:"String",proto:!0,forced:!UZ&&!SB},{startsWith:function(t){var e=se(br(this));nw(t);var n=Xs(VZ(arguments.length>1?arguments[1]:void 0,e.length)),r=se(t);return CB?CB(e,r,n):HZ(e,n,n+r.length)===r}});var pl=Object.assign,AB=Object.defineProperty,WZ=pt([].concat),OB=!pl||Kt(function(){if(cn&&pl({b:1},pl(AB({},"a",{enumerable:!0,get:function(){AB(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(o){e[o]=o}),pl({},t)[n]!=7||Zs(pl({},e)).join("")!=r})?function(t,e){for(var n=_i(t),r=arguments.length,o=1,i=DO.f,a=vO.f;r>o;)for(var u,s=W0(arguments[o++]),l=i?WZ(Zs(s),i(s)):Zs(s),c=l.length,f=0;c>f;)u=l[f++],cn&&!Vt(a,s,u)||(n[u]=s[u]);return n}:pl;Ee({target:"Object",stat:!0,forced:Object.assign!==OB},{assign:OB});var GZ=["props","attrs","style","dataset","on","hook"];function kB(t){var e=t.data,n=e===void 0?{}:e,r=t.children,o=r===void 0?[]:r;Object.keys(n).forEach(function(i){var a,u,s=n[i];if(i!=="key"){if(!GZ.includes(i)){if(i.startsWith("data-")){var l=i.slice(5);return l=kq(l),function(c,f){c.data==null&&(c.data={});var p=c.data;p.dataset==null&&(p.dataset={}),Object.assign(p.dataset,f)}(t,((a={})[l]=s,a)),void delete n[i]}(function(c,f){c.data==null&&(c.data={});var p=c.data;p.props==null&&(p.props={}),Object.assign(p.props,f)})(t,(u={},u[i]=s,u)),delete n[i]}}else t.key=s}),o.length>0&&o.forEach(function(i){typeof i!="string"&&kB(i)})}var _4=[],BB={};function qZ(t,e,n){return wt(n.isInline(t)?"span":"div",null,e)}function FB(t,e){return e===void 0&&(e=!1),wt("span",{"data-slate-string":!0},e?t+`
- `:t)}function P4(t,e){return t===void 0&&(t=0),e===void 0&&(e=!1),wt("span",{"data-slate-zero-width":e?"n":"z","data-slate-length":t},"\uFEFF",e?wt("br",null):null)}function j4(t,e,n,r){return Rf.set(t,e),ol.set(t,n),ct.isElement(t)?function(o,i){var a,u=A.findKey(i,o),s=i.isInline(o),l=E.isVoid(i,o),c=nB(u.id),f={id:c,key:u.id,"data-slate-node":"element","data-slate-inline":s},p=o.type,d=o.children,g=d===void 0?[]:d,v=function(D){return BB[D]||qZ}(p);a=l?null:g.map(function(D,C){return j4(D,C,o,i)});var m=v(o,a,i);if(l){f["data-slate-void"]=!0;var y=s?"span":"div",h=Ut(tt.texts(o),1),b=Ut(h[0],1)[0],w=wt(y,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},j4(b,0,o,i));m=wt(y,{style:{position:"relative"}},m,w),Rf.set(b,0),ol.set(b,o)}return m.data==null&&(m.data={}),Object.assign(m.data,f),l||s||(m=function(D,C){var x=C;return _4.forEach(function(S){x=S(D,C)}),x}(o,m)),Dr(function(){var D=qw(c);D!=null&&(Vw.set(u,D),vg.set(o,D),gg.set(D,o))}),m}(t,r):function(o,i,a){if(o.text==null)throw new Error("Current node is not slate Text "+JSON.stringify(o));var u=A.findKey(a,o),s=a.getConfig().decorate;if(s==null)throw new Error("Can not get config.decorate");var l=A.findPath(a,o),c=s([o,l]),f=ot.decorations(o,c),p=f.map(function(v,m){var y=function(h,b,w,D,C){b===void 0&&(b=!1);var x=h.text,S=A.findPath(C,w),F=_.parent(S);if(E.isEditor(D))throw new Error("Text node "+JSON.stringify(w)+" parent is Editor");return C.isVoid(D)?P4(tt.string(D).length):x!==""||D.children[D.children.length-1]!==w||C.isInline(D)||E.string(C,F)!==""?x===""?P4():b&&x.slice(-1)===`
- `?FB(x,!0):FB(x):P4(0,!0)}(v,m===f.length-1,o,i,a);return y=function(h,b){var w=b;return _4.forEach(function(D){w=D(h,w)}),w}(v,y),wt("span",{"data-slate-leaf":!0},y)}),d=function(v){return"w-e-text-"+v}(u.id),g=wt("span",{"data-slate-node":"text",id:d,key:u.id},p);return Dr(function(){var v=qw(d);v!=null&&(Vw.set(u,v),vg.set(o,v),gg.set(v,o))}),g}(t,n,r)}function KZ(t,e){var n,r=t.$scroll,o=function(v){return"w-e-textarea-"+v}(t.id),i=e.getConfig(),a=i.readOnly,u=i.autoFocus,s=function(v,m){return m===void 0&&(m=!1),Hs("div#"+v,{props:{contentEditable:!m}})}(o,a),l=e.children||[];s.children=l.map(function(v,m){var y=j4(v,m,e,e);return kB(y),y});var c=pk.get(t);if(c==null&&(c=!0),c){var f=function(v,m){return k(`<div
- id="`+v+`"
- data-slate-editor
- data-slate-node="value"
- suppressContentEditableWarning
- role="textarea"
- spellCheck="true"
- autoCorrect="true"
- autoCapitalize="true"
- ></div>`)}(o);r.append(f),t.$textArea=f,n=f[0],(d=eq([rq,uq,lq,oq,aq,nq]))(n,s),pk.set(t,!1),hk.set(t,d)}else{var p=gk.get(t),d=hk.get(t);if(p==null||d==null)return;n=p.elm,d(p,s)}if(n!=null||(n=qw(o))!=null){if((c?u:e.isFocused())&&n.focus({preventScroll:!0}),c){var g=Gw(n);g&&vk.set(e,g)}Hw.set(e,n),vg.set(e,n),gg.set(n,e),gk.set(t,s)}}function TB(t){return typeof t=="object"&&t!=null&&t.nodeType===1}function _B(t,e){return(!e||t!=="hidden")&&t!=="visible"&&t!=="clip"}function I4(t,e){if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){var n=getComputedStyle(t,null);return _B(n.overflowY,e)||_B(n.overflowX,e)||function(r){var o=function(i){if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}}(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)}(t)}return!1}function Ag(t,e,n,r,o,i,a,u){return i<t&&a>e||i>t&&a<e?0:i<=t&&u<=n||a>=e&&u>=n?i-t-r:a>e&&u<n||i<t&&u>n?a-e+o:0}function PB(t,e){var n=window,r=e.scrollMode,o=e.block,i=e.inline,a=e.boundary,u=e.skipOverflowHiddenElements,s=typeof a=="function"?a:function(Bt){return Bt!==a};if(!TB(t))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=t;TB(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}f!=null&&f===document.body&&I4(f)&&!I4(document.documentElement)||f!=null&&I4(f,u)&&c.push(f)}for(var p=n.visualViewport?n.visualViewport.width:innerWidth,d=n.visualViewport?n.visualViewport.height:innerHeight,g=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,m=t.getBoundingClientRect(),y=m.height,h=m.width,b=m.top,w=m.right,D=m.bottom,C=m.left,x=o==="start"||o==="nearest"?b:o==="end"?D:b+y/2,S=i==="center"?C+h/2:i==="end"?w:C,F=[],z=0;z<c.length;z++){var M=c[z],R=M.getBoundingClientRect(),K=R.height,V=R.width,U=R.top,W=R.right,Z=R.bottom,lt=R.left;if(r==="if-needed"&&b>=0&&C>=0&&D<=d&&w<=p&&b>=U&&D<=Z&&C>=lt&&w<=W)return F;var ut=getComputedStyle(M),at=parseInt(ut.borderLeftWidth,10),B=parseInt(ut.borderTopWidth,10),O=parseInt(ut.borderRightWidth,10),T=parseInt(ut.borderBottomWidth,10),N=0,X=0,G="offsetWidth"in M?M.offsetWidth-M.clientWidth-at-O:0,st="offsetHeight"in M?M.offsetHeight-M.clientHeight-B-T:0;if(l===M)N=o==="start"?x:o==="end"?x-d:o==="nearest"?Ag(v,v+d,d,B,T,v+x,v+x+y,y):x-d/2,X=i==="start"?S:i==="center"?S-p/2:i==="end"?S-p:Ag(g,g+p,p,at,O,g+S,g+S+h,h),N=Math.max(0,N+v),X=Math.max(0,X+g);else{N=o==="start"?x-U-B:o==="end"?x-Z+T+st:o==="nearest"?Ag(U,Z,K,B,T+st,x,x+y,y):x-(U+K/2)+st/2,X=i==="start"?S-lt-at:i==="center"?S-(lt+V/2)+G/2:i==="end"?S-W+O+G:Ag(lt,W,V,at,O+G,S,S+h,h);var ht=M.scrollLeft,mt=M.scrollTop;x+=mt-(N=Math.max(0,Math.min(mt+N,M.scrollHeight-K+st))),S+=ht-(X=Math.max(0,Math.min(ht+X,M.scrollWidth-V+G)))}F.push({el:M,top:N,left:X})}return F}function jB(t){return t===Object(t)&&Object.keys(t).length!==0}function xr(t,e){return bu(e)&&A.hasDOMNode(t,e,{editable:!0})}function IB(t,e){if(t.getConfig().readOnly)return!1;var n=hl(t,e)&&A.toSlateNode(t,e);return E.isVoid(t,n)}function hl(t,e){return bu(e)&&A.hasDOMNode(t,e)}function NB(t,e,n){n===void 0&&(n=!1);var r=e.selection,o=e.getConfig(),i=A.findDocumentOrShadowRoot(e).getSelection();if(i&&(!t.isComposing||n)&&e.isFocused()){var a=i.type!=="None";if(r||a){var u=Hw.get(e),s=!1;if(u.contains(i.anchorNode)&&u.contains(i.focusNode)&&(s=!0),a&&s&&r){var l=A.toSlateRange(e,i,{exactMatch:!0,suppressThrow:!0});if(l&&L.equals(l,r)){var c=!0;if(L.isCollapsed(r)){var f=i.anchorNode,p=i.anchorOffset;if(f===u){var d=u.childNodes,g=void 0;(g=d[p])&&g.matches("table")&&(c=!1),(g=d[p-1])&&g.matches("table")&&(c=!1)}}if(c)return}}if(!r||A.hasRange(e,r)){t.isUpdatingSelection=!0;var v=r&&A.toDOMRange(e,r);if(v){L.isBackward(r)?i.setBaseAndExtent(v.endContainer,v.endOffset,v.startContainer,v.startOffset):i.setBaseAndExtent(v.startContainer,v.startOffset,v.endContainer,v.endOffset);var m=v.startContainer.parentElement;if(!m.closest("[data-slate-spacer]")){m.getBoundingClientRect=v.getBoundingClientRect.bind(v);var y=document.body;(function(h,b){var w=!h.ownerDocument.documentElement.contains(h);if(jB(b)&&typeof b.behavior=="function")return b.behavior(w?[]:PB(h,b));if(!w){var D=function(C){return C===!1?{block:"end",inline:"nearest"}:jB(C)?C:{block:"start",inline:"nearest"}}(b);(function(C,x){x===void 0&&(x="auto");var S="scrollBehavior"in document.body.style;C.forEach(function(F){var z=F.el,M=F.top,R=F.left;z.scroll&&S?z.scroll({top:M,left:R,behavior:x}):(z.scrollTop=M,z.scrollLeft=R)})})(PB(h,D),D.behavior)}})(m,{scrollMode:"if-needed",boundary:o.scroll?u.parentElement:y,block:"end",behavior:"smooth"}),delete m.getBoundingClientRect}}else i.removeAllRanges();setTimeout(function(){v&&Mf&&u.focus(),t.isUpdatingSelection=!1})}else e.selection=A.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})}}}var N4=new WeakMap,LB=new WeakMap,XZ={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",splitBlock:"shift?+enter",undo:"mod+z",tab:"tab",selectAll:"mod+a"},YZ={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},JZ={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},ye=function(t){var e=XZ[t],n=YZ[t],r=JZ[t],o=e&&u2(e),i=n&&u2(n),a=r&&u2(r);return function(u){return!(!o||!o(u))||!!(Kw&&i&&i(u))||!(Kw||!a||!a(u))}},De={isBold:ye("bold"),isCompose:ye("compose"),isMoveBackward:ye("moveBackward"),isMoveForward:ye("moveForward"),isDeleteBackward:ye("deleteBackward"),isDeleteForward:ye("deleteForward"),isDeleteLineBackward:ye("deleteLineBackward"),isDeleteLineForward:ye("deleteLineForward"),isDeleteWordBackward:ye("deleteWordBackward"),isDeleteWordForward:ye("deleteWordForward"),isExtendBackward:ye("extendBackward"),isExtendForward:ye("extendForward"),isExtendLineBackward:ye("extendLineBackward"),isExtendLineForward:ye("extendLineForward"),isItalic:ye("italic"),isMoveLineBackward:ye("moveLineBackward"),isMoveLineForward:ye("moveLineForward"),isMoveWordBackward:ye("moveWordBackward"),isMoveWordForward:ye("moveWordForward"),isRedo:ye("redo"),isSplitBlock:ye("splitBlock"),isTransposeCharacter:ye("transposeCharacter"),isUndo:ye("undo"),isTab:ye("tab"),isSelectAll:ye("selectAll")};function qe(t){t.preventDefault()}var ZZ={beforeinput:function(t,e,n){var r=t,o=n.getConfig().readOnly;if($f&&!o&&xr(n,r.target)){var i=n.selection,a=r.inputType,u=r.dataTransfer||r.data||void 0;if(a!=="insertCompositionText"&&a!=="deleteCompositionText"){if(r.preventDefault(),!a.startsWith("delete")||a.startsWith("deleteBy")){var s=Ut(r.getTargetRanges(),1)[0];if(s){var l=A.toSlateRange(n,s,{exactMatch:!1,suppressThrow:!1});i&&L.equals(i,l)||I.select(n,l)}}if(i&&L.isExpanded(i)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";E.deleteFragment(n,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":E.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":E.deleteForward(n);break;case"deleteContentBackward":E.deleteBackward(n);break;case"deleteEntireSoftLine":E.deleteBackward(n,{unit:"line"}),E.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":E.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":E.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":E.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":E.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":E.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":E.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":E.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if(a==="insertFromPaste"&&!Ww.get(n))break;u instanceof DataTransfer?n.insertData(u):typeof u=="string"&&E.insertText(n,u)}}}},blur:function(t,e,n){var r=t,o=e.isUpdatingSelection,i=e.latestElement;if(!n.getConfig().readOnly&&!o&&xr(n,r.target)){var a=A.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var u=r.relatedTarget;if(!(u===A.toDOMNode(n,n)||Wr(u)&&u.hasAttribute("data-slate-spacer"))){if(u!=null&&bu(u)&&A.hasDOMNode(n,u)){var s=A.toSlateNode(n,u);if(ct.isElement(s)&&!n.isVoid(s))return}if(zf){var l=a.getSelection();l==null||l.removeAllRanges()}yu.delete(n)}}}},focus:function(t,e,n){var r=A.toDOMNode(n,n),o=A.findDocumentOrShadowRoot(n);e.latestElement=o.activeElement,Mf&&t.target!==r?r.focus():yu.set(n,!0)},click:function(t,e,n){if(!n.getConfig().readOnly&&hl(n,t.target)&&bu(t.target)){var r=A.toSlateNode(n,t.target),o=A.findPath(n,r);if(E.hasPath(n,o)&&tt.get(n,o)===r){var i=E.start(n,o),a=E.end(n,o),u=E.void(n,{at:i}),s=E.void(n,{at:a});if(u&&s&&_.equals(u[1],s[1])){var l=E.range(n,i);I.select(n,l)}}}},compositionstart:function(t,e,n){if(xr(n,t.target)){var r=n.selection;if(r&&L.isExpanded(r)&&(E.deleteFragment(n),Promise.resolve().then(function(){NB(e,n,!0)})),r&&L.isCollapsed(r)){var o=A.toDOMRange(n,r).startContainer,i=o.textContent||"";N4.set(n,i),LB.set(n,o)}e.isComposing=!0,function(a,u){var s;u.getConfig().placeholder&&u.isEmpty()&&a.showPlaceholder&&((s=a.$placeholder)===null||s===void 0||s.hide(),a.showPlaceholder=!1)}(e,n)}},compositionend:function(t,e,n){var r=t;if(xr(n,r.target)){e.isComposing=!1;var o=n.selection;if(o!=null){(Xw||Mf)&&A.cleanExposedTexNodeInSelectionBlock(n);for(var i=L.isBackward(o)?o.focus:o.anchor,a=Ut(E.node(n,[i.path[0]]),1)[0],u=0;u<i.path.length;u++){var s=Ut(E.node(n,i.path.slice(0,u+1)),1)[0];if(ct.isElement(s)&&((zf||Mf)&&s.type==="link"||s.type==="code")){A.setNewKey(a);break}}var l=r.data;if(l){if(n.getConfig().maxLength){var c=A.getLeftLengthOfMaxLength(n);c<l.length?(A.toDOMRange(n,o).startContainer.textContent=N4.get(n)||"",c>0&&E.insertText(n,l.slice(0,c)),e.changeViewState()):E.insertText(n,l)}else E.insertText(n,l);zf||setTimeout(function(){var f=n.selection;if(f!=null){var p=LB.get(n);p!=null&&A.toDOMRange(n,f).startContainer!==p&&(p.textContent=N4.get(n)||"")}})}}}},compositionupdate:function(t,e,n){xr(n,t.target)&&(e.isComposing=!0)},keydown:function(t,e,n){var r=t,o=n.selection;if(!n.getConfig().readOnly&&!e.isComposing&&xr(n,r.target)){if(function(a,u){var s=dg.get(a),l=s&&s.getMenus(),c=pg.get(a),f=c&&c.getMenus(),p=wr(wr({},l),f);for(var d in p){var g=p[d],v=g.hotkey;if(v&&Tq(v,u)&&!g.isDisabled(a)){var m=g.getValue(a);g.exec(a,m)}}}(n,r),De.isTab(r))return qe(r),void n.handleTab();if(De.isRedo(r))return qe(r),void(typeof n.redo=="function"&&n.redo());if(De.isUndo(r))return qe(r),void(typeof n.undo=="function"&&n.undo());if(De.isMoveLineBackward(r))return qe(r),void I.move(n,{unit:"line",reverse:!0});if(De.isMoveLineForward(r))return qe(r),void I.move(n,{unit:"line"});if(De.isExtendLineBackward(r))return qe(r),void I.move(n,{unit:"line",edge:"focus",reverse:!0});if(De.isExtendLineForward(r))return qe(r),void I.move(n,{unit:"line",edge:"focus"});if(De.isMoveBackward(r))return qe(r),void(o&&L.isCollapsed(o)?I.move(n,{reverse:!0}):I.collapse(n,{edge:"start"}));if(De.isMoveForward(r))return qe(r),void(o&&L.isCollapsed(o)?I.move(n):I.collapse(n,{edge:"end"}));if(De.isMoveWordBackward(r))return qe(r),o&&L.isExpanded(o)&&I.collapse(n,{edge:"focus"}),void I.move(n,{unit:"word",reverse:!0});if(De.isMoveWordForward(r))return qe(r),o&&L.isExpanded(o)&&I.collapse(n,{edge:"focus"}),void I.move(n,{unit:"word"});if(De.isSelectAll(r))return qe(r),void n.selectAll();if($f){if((Xw||zf)&&o&&(De.isDeleteBackward(r)||De.isDeleteForward(r))&&L.isCollapsed(o)){var i=tt.parent(n,o.anchor.path);if(ct.isElement(i)&&E.isVoid(n,i)&&E.isInline(n,i))return r.preventDefault(),void I.delete(n,{unit:"block"})}}else{if(De.isBold(r)||De.isItalic(r)||De.isTransposeCharacter(r))return void qe(r);if(De.isSplitBlock(r))return qe(r),void E.insertBreak(n);if(De.isDeleteBackward(r))return qe(r),void(o&&L.isExpanded(o)?E.deleteFragment(n,{direction:"backward"}):E.deleteBackward(n));if(De.isDeleteForward(r))return qe(r),void(o&&L.isExpanded(o)?E.deleteFragment(n,{direction:"forward"}):E.deleteForward(n));if(De.isDeleteLineBackward(r))return qe(r),void(o&&L.isExpanded(o)?E.deleteFragment(n,{direction:"backward"}):E.deleteBackward(n,{unit:"line"}));if(De.isDeleteLineForward(r))return qe(r),void(o&&L.isExpanded(o)?E.deleteFragment(n,{direction:"forward"}):E.deleteForward(n,{unit:"line"}));if(De.isDeleteWordBackward(r))return qe(r),void(o&&L.isExpanded(o)?E.deleteFragment(n,{direction:"backward"}):E.deleteBackward(n,{unit:"word"}));if(De.isDeleteWordForward(r))return qe(r),void(o&&L.isExpanded(o)?E.deleteFragment(n,{direction:"forward"}):E.deleteForward(n,{unit:"word"}))}}},keypress:function(t,e,n){if(!$f&&!n.getConfig().readOnly&&xr(n,t.target)){t.preventDefault();var r=t.key;E.insertText(n,r)}},copy:function(t,e,n){var r=t;if(xr(n,r.target)){r.preventDefault();var o=r.clipboardData;o!=null&&n.setFragmentData(o)}},cut:function(t,e,n){var r=t,o=n.selection;if(!n.getConfig().readOnly&&xr(n,r.target)){r.preventDefault();var i=r.clipboardData;if(i!=null&&(n.setFragmentData(i),o))if(L.isExpanded(o))E.deleteFragment(n);else{var a=tt.parent(n,o.anchor.path);E.isVoid(n,a)&&I.delete(n)}}},paste:function(t,e,n){Ww.set(n,!0);var r=t;if(!n.getConfig().readOnly&&xr(n,r.target)){var o=n.getConfig().customPaste;if(o&&o(n,r)===!1)return void Ww.set(n,!1);if(!$f||function(a){return a.clipboardData&&a.clipboardData.getData("text/plain")!==""&&a.clipboardData.types.length===1}(r)){r.preventDefault();var i=r.clipboardData;i!=null&&n.insertData(i)}}},dragover:function(t,e,n){if(hl(n,t.target)){var r=A.toSlateNode(n,t.target);E.isVoid(n,r)&&t.preventDefault()}},dragstart:function(t,e,n){var r=t;if(hl(n,r.target)&&!n.getConfig().readOnly){var o=A.toSlateNode(n,r.target),i=A.findPath(n,o);if(E.isVoid(n,o)||E.void(n,{at:i,voids:!0})){var a=E.range(n,i);I.select(n,a)}var u=r.dataTransfer;u!=null&&(e.isDraggingInternally=!0,n.setFragmentData(u))}},dragend:function(t,e,n){var r=t;n.getConfig().readOnly||e.isDraggingInternally&&hl(n,r.target)&&(e.isDraggingInternally=!1)},drop:function(t,e,n){var r=t,o=r.dataTransfer;if(!n.getConfig().readOnly&&hl(n,r.target)&&o!=null&&!($f&&zf&&o.files.length>0)){r.preventDefault();var i=n.selection,a=A.findEventRange(n,r);I.select(n,a),e.isDraggingInternally&&(i&&I.delete(n,{at:i}),e.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},QZ=1,tQ=function(){function t(e){var n=this;this.id=QZ++,this.$textArea=null,this.$progressBar=k('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=k('<div class="w-e-max-length-info"></div>'),this.isComposing=!1,this.isUpdatingSelection=!1,this.isDraggingInternally=!1,this.latestElement=null,this.showPlaceholder=!1,this.$placeholder=null,this.latestEditorSelection=null,this.onDOMSelectionChange=nu(function(){var a=n.editorInstance;(function(u,s){var l=u.isComposing,c=u.isUpdatingSelection,f=u.isDraggingInternally;if(!(s.getConfig().readOnly||l||c||f)){var p=A.findDocumentOrShadowRoot(s),d=p.activeElement,g=A.toDOMNode(s,s),v=p.getSelection();if(d===g?(u.latestElement=d,yu.set(s,!0)):yu.delete(s),!v)return I.deselect(s);var m=v.anchorNode,y=v.focusNode,h=xr(s,m)||IB(s,m),b=xr(s,y)||IB(s,y);if(h&&b){var w=A.toSlateRange(s,v,{exactMatch:!1,suppressThrow:!1});I.select(s,w)}else I.deselect(s)}})(n,a)},100);var r=k(e);if(r.length===0)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=r;var o=k('<div class="w-e-text-container"></div>');o.append(this.$progressBar),o.append(this.$maxLengthInfo),r.append(o);var i=k('<div class="w-e-scroll"></div>');o.append(i),this.$scroll=i,this.$textAreaContainer=o,Dr(function(){var a=n.editorInstance,u=A.getWindow(a);u.document.addEventListener("selectionchange",n.onDOMSelectionChange),a.on("destroyed",function(){u.document.removeEventListener("selectionchange",n.onDOMSelectionChange)}),o.on("click",function(){return a.hidePanelOrModal()}),a.on("change",n.changeViewState.bind(n));var s=a.getConfig().onChange;s&&a.on("change",function(){return s(a)}),n.onFocusAndOnBlur(),a.on("change",n.changeMaxLengthInfo.bind(n)),n.bindEvent()})}return Object.defineProperty(t.prototype,"editorInstance",{get:function(){var e=Lw.get(this);if(e==null)throw new Error("Can not get editor instance");return e},enumerable:!1,configurable:!0}),t.prototype.bindEvent=function(){var e=this,n=this.$textArea,r=this.$scroll,o=this.editorInstance;n!=null&&(Xb(ZZ,function(i,a){n.on(a,function(u){i(u,e,o)})}),o.getConfig().scroll&&(r.css("overflow-y","auto"),r.on("scroll",nu(function(){o.emit("scroll")},100))))},t.prototype.onFocusAndOnBlur=function(){var e=this,n=this.editorInstance,r=n.getConfig(),o=r.onBlur,i=r.onFocus;this.latestEditorSelection=n.selection,n.on("change",function(){e.latestEditorSelection==null&&n.selection!=null?setTimeout(function(){return i&&i(n)}):e.latestEditorSelection!=null&&n.selection==null&&setTimeout(function(){return o&&o(n)}),e.latestEditorSelection=n.selection})},t.prototype.changeMaxLengthInfo=function(){var e=this.editorInstance,n=e.getConfig().maxLength;if(n){var r=n-A.getLeftLengthOfMaxLength(e);this.$maxLengthInfo[0].innerHTML=r+"/"+n}},t.prototype.changeProgress=function(e){var n=this.$progressBar;n.css("width",e+"%"),e>=100&&setTimeout(function(){n.hide(),n.css("width","0"),n.show()},1e3)},t.prototype.changeViewState=function(){var e=this,n=this.editorInstance;KZ(this,n),function(r,o){var i,a=o.getConfig().placeholder;if(a){var u=o.isEmpty();if(u&&!r.showPlaceholder&&!r.isComposing){if(r.$placeholder==null){var s=k('<div class="w-e-text-placeholder">'+a+"</div>");r.$textAreaContainer.append(s),r.$placeholder=s}return r.$placeholder.show(),void(r.showPlaceholder=!0)}!u&&r.showPlaceholder&&((i=r.$placeholder)===null||i===void 0||i.hide(),r.showPlaceholder=!1)}}(this,n),Dr(function(){NB(e,n)})},t.prototype.destroy=function(){this.$textAreaContainer.remove()},t}();function L4(t){t.removeAttr("width"),t.removeAttr("height"),t.removeAttr("fill"),t.removeAttr("class"),t.removeAttr("t"),t.removeAttr("p-id");var e=t.children();e.length&&L4(e)}function R4(){return k('<svg viewBox="0 0 1024 1024"><path d="M498.7 655.8l-197.6-268c-8.1-10.9-0.3-26.4 13.3-26.4h395.2c13.6 0 21.4 15.4 13.3 26.4l-197.6 268c-6.6 9-20 9-26.6 0z"></path></svg>')}function RB(){return k('<div class="w-e-bar-divider"></div>')}function MB(t,e,n,r,o){if(o===void 0&&(o=!1),e){if(r){var i=Kw?"cmd":"ctrl";r=r.replace("mod",i)}if(o)r&&(t.attr("data-tooltip",r),t.addClass("w-e-menu-tooltip-v5"),t.addClass("tooltip-right"));else{var a=r?n+`
- `+r:n;t.attr("data-tooltip",a),t.addClass("w-e-menu-tooltip-v5")}}}xw("match",function(t,e,n){return[function(r){var o=br(this),i=r==null?void 0:du(r,t);return i?Vt(i,r,o):new RegExp(r)[t](se(o))},function(r){var o=Le(this),i=se(r),a=n(e,o,i);if(a.done)return a.value;if(!o.global)return Pf(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=Pf(o,i))!==null;){var f=se(s[0]);l[c]=f,f===""&&(o.lastIndex=Cw(i,Xs(o.lastIndex),u)),c++}return c===0?null:l}]});var M4=function(){function t(e,n,r){var o=this;r===void 0&&(r=!1),this.$elem=k('<div class="w-e-bar-item"></div>'),this.$button=k('<button type="button"></button>'),this.disabled=!1,this.menu=n;var i=n.tag,a=n.width;if(i!=="button")throw new Error("Invalid tag '"+i+"', expected 'button'");var u=n.title,s=n.hotkey,l=s===void 0?"":s,c=n.iconSvg,f=c===void 0?"":c,p=this.$button;if(f){var d=k(f);L4(d),p.append(d)}else p.text(u);MB(p,f,u,l,r),r&&f&&p.append(k('<span class="title">'+u+"</span>")),a&&p.css("width",a+"px"),p.attr("data-menu-key",e),this.$elem.append(p),Dr(function(){return o.init()})}return t.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(n){n.preventDefault(),ir(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())})},t.prototype.exec=function(){var e=ir(this),n=this.menu,r=n.getValue(e);n.exec(e,r)},t.prototype.setActive=function(){var e=ir(this),n=this.$button,r="active";this.menu.isActive(e)?n.addClass(r):n.removeClass(r)},t.prototype.setDisabled=function(){var e=ir(this),n=this.$button,r=this.menu.isDisabled(e);(e.selection==null||e.isDisabled())&&(r=!0),this.menu.alwaysEnable&&(r=!1);var o="disabled";r?n.addClass(o):n.removeClass(o),this.disabled=r},t.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},t}(),eQ=function(t){function e(n,r,o){return o===void 0&&(o=!1),t.call(this,n,r,o)||this}return nl(e,t),e.prototype.onButtonClick=function(){},e}(M4),z4=function(){function t(e){this.isShow=!1,this.showTime=0,this.record(e)}return t.prototype.record=function(e){var n=$w.get(e);n==null&&(n=new Set,$w.set(e,n)),n.add(this),hg.set(this,e)},t.prototype.renderContent=function(e){var n=this.$elem;n.empty(),n.append(e);var r=this.genSelfElem();r&&n.append(r)},t.prototype.appendTo=function(e){var n=this.$elem;e.append(n)},t.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var e=hg.get(this);e&&e.emit("modalOrPanelShow",this)}},t.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var e=hg.get(this);e&&e.emit("modalOrPanelHide")}},t}(),nQ=function(t){function e(n){var r=t.call(this,n)||this;return r.type="dropPanel",r.$elem=k('<div class="w-e-drop-panel"></div>'),r}return nl(e,t),e.prototype.genSelfElem=function(){return null},e}(z4),rQ=function(t){function e(n,r,o){o===void 0&&(o=!1);var i=t.call(this,n,r,o)||this;if(i.dropPanel=null,i.menu=r,r.showDropPanel){var a=R4();i.$button.append(a)}return i}return nl(e,t),e.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},e.prototype.handleDropPanel=function(){var n=this.menu;if(n.getPanelContentElem!=null){var r=ir(this);if(this.dropPanel==null){var o=new nQ(r),i=n.getPanelContentElem(r);o.renderContent(i),o.appendTo(this.$elem),o.show(),this.dropPanel=o}else{var a=this.dropPanel;a.isShow?a.hide():(i=n.getPanelContentElem(r),a.renderContent(i),a.show())}var u=this.dropPanel;if(u.isShow){var s=this.$elem,l=s.offset().left,c=s.parents(".w-e-bar");l-c.offset().left>=c.width()/2?u.$elem.css({left:"none",right:"0"}):u.$elem.css({left:"0",right:"none"})}}},e}(M4),oQ=function(t){function e(n,r){r===void 0&&(r=0);var o=t.call(this,n)||this;o.type="modal",o.$elem=k('<div class="w-e-modal"></div>'),o.width=0,r&&(o.width=r);var i=o.$elem;return i.on("click",function(a){return a.stopPropagation()}),i.on("keyup",function(a){a.code==="Escape"&&(o.hide(),n.restoreSelection())}),o}return nl(e,t),e.prototype.genSelfElem=function(){var n=this,r=k('<span class="btn-close"><svg viewBox="0 0 1024 1024"><path d="M1024 896.1024l-128 128L512 640 128 1024 0 896 384 512 0 128 128 0 512 384 896.1024 0l128 128L640 512z"></path></svg></span>'),o=hg.get(this);return r.on("click",function(){n.hide(),o==null||o.restoreSelection()}),r},e.prototype.setStyle=function(n){var r=this.width,o=this.$elem;o.attr("style",""),r&&o.css("width",r+"px"),o.css(n)},e}(z4);function or(t,e,n){var r=k('<label class="babel-container"></label>');r.append("<span>"+t+"</span>");var o=k('<input type="text" id="'+e+'" placeholder="'+(n||"")+'">');return r.append(o),[r[0],o[0]]}function gl(t,e){var n=k('<div class="button-container"></div>'),r=k('<button type="button" id="'+t+'">'+e+"</button>");return n.append(r),[n[0],r[0]]}var iQ=function(t){function e(n,r,o){o===void 0&&(o=!1);var i=t.call(this,n,r,o)||this;return i.$body=k("body"),i.modal=null,i.menu=r,i}return nl(e,t),e.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},e.prototype.getPosition=function(){var n=ir(this),r=this.menu.getModalPositionNode(n);return ct.isElement(r)?B4(n,r,"modal"):k4(n)},e.prototype.handleModal=function(){var n=ir(this),r=this.menu;if(this.modal==null){var o=new oQ(n,r.modalWidth);this.renderAndShowModal(o,!0),this.modal=o}else(o=this.modal).isShow?o.hide():this.renderAndShowModal(o,!1)},e.prototype.renderAndShowModal=function(n,r){r===void 0&&(r=!1);var o=ir(this),i=this.menu;if(i.getModalContentElem!=null){var a=A.getTextarea(o),u=A.getToolbar(o),s=((u==null?void 0:u.getConfig())||{}).modalAppendToBody,l=i.getModalContentElem(o);if(n.renderContent(l),s)n.setStyle({left:"0",right:"0"});else{var c=this.getPosition();n.setStyle(c)}r&&(s?n.appendTo(this.$body):n.appendTo(a.$textAreaContainer)),n.show(),s||F4(o,n.$elem),setTimeout(function(){o.blur()})}},e}(M4),aQ=function(t){function e(n,r){var o=t.call(this,n)||this;return o.type="selectList",o.$elem=k('<div class="w-e-select-list"></div>'),r&&o.$elem.css("width",r+"px"),o.$elem.on("click",function(i){i.stopPropagation()}),o}return nl(e,t),e.prototype.renderList=function(n){var r=this.$elem;r.empty();var o=k("<ul></ul>");n.forEach(function(i){var a=i.value,u=i.text,s=i.selected,l=i.styleForRenderMenuList,c=k('<li data-value="'+a+'"></li>');if(l&&c.css(l),s){var f=k('<svg viewBox="0 0 1446 1024"><path d="M574.116299 786.736392 1238.811249 48.517862C1272.390222 11.224635 1329.414799 7.827718 1366.75664 41.450462 1403.840015 74.840484 1406.731043 132.084741 1373.10189 169.433699L655.118888 966.834607C653.072421 969.716875 650.835807 972.514337 648.407938 975.210759 615.017957 1012.29409 558.292155 1015.652019 521.195664 982.250188L72.778218 578.493306C35.910826 545.297758 32.859041 488.584019 66.481825 451.242134 99.871807 414.158803 156.597563 410.800834 193.694055 444.202665L574.116299 786.736392Z"></path></svg>');c.append(f),c.addClass("selected")}c.append(k('<span data-value="'+a+'">'+u+"</span>")),c.attr("title",u),o.append(c)}),r.append(o)},e.prototype.genSelfElem=function(){return null},e}(z4),uQ=function(){function t(e,n,r){var o=this;r===void 0&&(r=!1),this.$elem=k('<div class="w-e-bar-item"></div>'),this.$button=k('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var i=n.tag,a=n.title,u=n.width,s=n.iconSvg,l=s===void 0?"":s,c=n.hotkey,f=c===void 0?"":c;if(i!=="select")throw new Error("Invalid tag '"+i+"', expected 'select'");var p=this.$button;u&&p.css("width",u+"px"),p.attr("data-menu-key",e),MB(p,l,a,f,r),this.$elem.append(p),this.menu=n,Dr(function(){return o.init()})}return t.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",function(n){n.preventDefault(),ir(e).hidePanelOrModal(),e.trigger()})},t.prototype.trigger=function(){var e=this,n=ir(this);if(!n.isDisabled()&&!this.disabled){var r=this.menu;if(this.selectList==null){this.selectList=new aQ(n,r.selectPanelWidth);var o=this.selectList,i=r.getOptions(n);o.renderList(i),o.appendTo(this.$elem),o.show(),o.$elem.on("click","li",function(a){var u=a.target;if(u!=null){a.preventDefault();var s=k(u).attr("data-value");e.onChange(s)}})}else(o=this.selectList).isShow?o.hide():(i=r.getOptions(n),o.renderList(i),o.show())}},t.prototype.onChange=function(e){var n=ir(this),r=this.menu;r.exec&&r.exec(n,e)},t.prototype.setSelectedValue=function(){var e=ir(this),n=this.menu,r=n.getValue(e),o=function(u,s){for(var l=u.length,c="",f=0;f<l;f++){var p=u[f];if(p.value===s){c=p.text;break}}return c}(n.getOptions(e),r.toString()),i=this.$button,a=R4();i.empty(),i.text(o),i.append(a)},t.prototype.setDisabled=function(){var e=ir(this),n=this.menu.isDisabled(e),r=this.$button;(e.selection==null||e.isDisabled())&&(n=!0);var o="disabled";n?r.addClass(o):r.removeClass(o),this.disabled=n},t.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},t}(),zB=function(){function t(e){this.$elem=k('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=k('<div class="w-e-bar-item-menus-container"></div>'),this.$button=k('<button type="button"></button>');var n=e.key,r=e.iconSvg,o=e.title,i=this.$elem,a=this.$button;if(r){var u=k(r);L4(u),a.append(u)}else a.text(o);a.attr("data-menu-key",n);var s=R4();a.append(s),i.append(a);var l=this.$container;i.append(l);var c=this.createObserver();this.observe(c)}return t.prototype.appendBarItem=function(e){var n=e.$elem;this.$container.append(n)},t.prototype.observe=function(e){var n=this.$container;e.observe(n[0],{childList:!0,subtree:!0,attributes:!0})},t.prototype.createObserver=function(){var e=this,n=this.$container,r=this.$button,o=new MutationObserver(function(){var i=n.find("button"),a=i.length;if(a!==0){var u=0;i.each(function(s){k(s).hasClass("disabled")&&u++}),o.disconnect(),u===a?r.addClass("disabled"):r.removeClass("disabled"),e.observe(o)}});return o},t}(),$B=new WeakMap;function ir(t){var e=zw.get(t);if(e==null)throw new Error("Can not get editor instance");return e}function HB(t,e,n){n===void 0&&(n=!1);var r=$B.get(e);if(r)return r;var o=e.tag;if(o==="button"){var i=e.showDropPanel,a=e.showModal;r=i?new rQ(t,e,n):a?new iQ(t,e,n):new eQ(t,e,n)}if(o==="select"&&(r=new uQ(t,e,n)),r==null)throw new Error("Invalid tag in menu "+JSON.stringify(e));return $B.set(e,r),r}function sQ(t,e){var n=t.selection;return n!=null&&!L.isCollapsed(n)&&!A.getSelectedElems(t).some(function(r){if(t.isVoid(r))return!0;var o=r.type;return!!["pre","code","table"].includes(o)||void 0})&&!!ot.isText(e)}var lQ=function(){function t(){var e=this;this.$elem=k('<div class="w-e-bar w-e-bar-hidden w-e-hover-bar"></div>'),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null,this.isShow=!1,this.changeHoverbarState=f9(function(){var n=e.isShow,r=e.getSelectedNodeAndMenuKeys()||{},o=r.node,i=o===void 0?null:o,a=r.menuKeys,u=a===void 0?[]:a;i!=null&&e.changeItemsState(),i&&ct.isElement(i)&&n&&e.isSamePath(i,e.prevSelectedNode)||(e.hideAndClean(),i!=null&&(e.registerItems(u),e.setPosition(i),e.show()),e.prevSelectedNode=i)},200),Dr(function(){var n=e.getEditorInstance(),r=e.$elem;r.on("mousedown",function(i){return i.preventDefault()},{passive:!1}),A.getTextarea(n).$textAreaContainer.append(r),n.on("change",e.changeHoverbarState);var o=e.hideAndClean.bind(e);n.on("scroll",o),n.on("fullScreen",o),n.on("unFullScreen",o)})}return t.prototype.getMenus=function(){return this.menus},t.prototype.hideAndClean=function(){var e=this.$elem;e.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],e.empty(),this.isShow=!1},t.prototype.checkPositionBottom=function(){var e=this.$elem,n=!1,r=window.innerHeight;r&&r>=360&&r-e[0].getBoundingClientRect().bottom<360&&(n=!0),n?e.addClass("w-e-bar-bottom"):e.removeClass("w-e-bar-bottom")},t.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},t.prototype.changeItemsState=function(){var e=this;Dr(function(){e.hoverbarItems.forEach(function(n){n.changeMenuState()})})},t.prototype.registerItems=function(e){var n=this,r=this.$elem;e.forEach(function(o){if(o!=="|")n.registerSingleItem(o);else{var i=RB();r.append(i)}})},t.prototype.registerSingleItem=function(e){var n=this.getEditorInstance(),r=this.menus,o=r[e];if(o==null){var i=Hf[e];if(i==null)throw new Error("Not found menu item factory by key '"+e+"'");if(typeof i!="function")throw new Error("Menu item factory (key='"+e+"') is not a function");o=i(),r[e]=o}var a=HB(e,o);this.hoverbarItems.push(a),zw.set(a,n),this.$elem.append(a.$elem)},t.prototype.setPosition=function(e){var n=this.getEditorInstance(),r=this.$elem;if(r.attr("style",""),ct.isElement(e)){var o=B4(n,e,"bar");return r.css(o),void F4(n,r)}if(ot.isText(e))return o=k4(n),r.css(o),void F4(n,r);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},t.prototype.getSelectedNodeAndMenuKeys=function(){var e=this.getEditorInstance();if(e.selection==null)return null;var n=this.getHoverbarKeysConf(),r=null,o=[],i=function(u){var s=n[u],l=s.match,c=s.menuKeys,f=c===void 0?[]:c,p=l||function(v,m){return A.checkNodeType(m,u)},d=Ut(E.nodes(e,{match:function(v){return p(e,v)},universal:!0}),1),g=d[0];if(g!=null)return r=g[0],o=f,"break"};for(var a in n)if(i(a)==="break")break;return r==null||o.length===0?null:{node:r,menuKeys:o}},t.prototype.getEditorInstance=function(){var e=Mw.get(this);if(e==null)throw new Error("Can not get editor instance");return e},t.prototype.getHoverbarKeysConf=function(){var e=this.getEditorInstance().getConfig().hoverbarKeys,n=e===void 0?{}:e,r=n.text;return r&&r.match==null&&(r.match=sQ),n},t.prototype.isSamePath=function(e,n){if(e==null||n==null)return!1;var r=A.findPath(null,e),o=A.findPath(null,n);return _.equals(r,o)},t.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},t}();function VB(t,e,n,r){if(Rf.set(t,e),ol.set(t,n),ct.isElement(t)){var o=t.children;if((o===void 0?[]:o).forEach(function(u,s){return VB(u,s,t,r)}),E.isVoid(r,t)){var i=Ut(tt.texts(t),1),a=Ut(i[0],1)[0];Rf.set(a,0),ol.set(a,t)}}}function cQ(t){var e=t.selector,n=e===void 0?"":e,r=t.config,o=r===void 0?{}:r,i=t.content,a=t.html,u=t.plugins,s=u===void 0?[]:u,l=(y=>{var h=y,{apply:b}=h;return h.history={undos:[],redos:[]},h.redo=()=>{var{history:w}=h,{redos:D}=w;if(D.length>0){var C=D[D.length-1];Qs.withoutSaving(h,()=>{E.withoutNormalizing(h,()=>{for(var x of C)h.apply(x)})}),w.redos.pop(),w.undos.push(C)}},h.undo=()=>{var{history:w}=h,{undos:D}=w;if(D.length>0){var C=D[D.length-1];Qs.withoutSaving(h,()=>{E.withoutNormalizing(h,()=>{var x=C.map(Di.inverse).reverse();for(var S of x)h.apply(S)})}),w.redos.push(C),w.undos.pop()}},h.apply=w=>{var{operations:D,history:C}=h,{undos:x}=C,S=x[x.length-1],F=S&&S[S.length-1],z=((V,U)=>!(!U||V.type!=="set_selection"||U.type!=="set_selection"))(w,F),M=Qs.isSaving(h),R=Qs.isMerging(h);if(M==null&&(M=((V,U)=>V.type!=="set_selection"||V.properties!=null&&V.newProperties!=null)(w)),M){if(R==null&&(R=S!=null&&(D.length!==0||((V,U)=>V.type==="set_selection"||!(!U||V.type!=="insert_text"||U.type!=="insert_text"||V.offset!==U.offset+U.text.length||!_.equals(V.path,U.path))||!(!U||V.type!=="remove_text"||U.type!=="remove_text"||V.offset+V.text.length!==U.offset||!_.equals(V.path,U.path)))(w,F)||z)),S&&R)z&&S.pop(),S.push(w);else{var K=[w];x.push(K)}for(;x.length>100;)x.shift();(V=>V.type!=="set_selection")(w)&&(C.redos=[])}b(w)},h})(function(y){var h=y,b=h.insertText,w=h.insertNode,D=h.insertFragment,C=h.dangerouslyInsertHtml;return h.insertText=function(x){if(h.getConfig().maxLength){var S=A.getLeftLengthOfMaxLength(h);S<=0||(S<x.length?b(x.slice(0,S)):b(x))}else b(x)},h.insertNode=function(x){if(h.getConfig().maxLength){var S=A.getLeftLengthOfMaxLength(h);S<=0||S<tt.string(x).length||w(x)}else w(x)},h.insertFragment=function(x){if(h.getConfig().maxLength)if(x.length!==1)x.forEach(function(F){h.insertNode(F)});else{var S=x[0];if(A.getLeftLengthOfMaxLength(h)<tt.string(S).length)return;D(x)}else D(x)},h.dangerouslyInsertHtml=function(x,S){if(x===void 0&&(x=""),S===void 0&&(S=!1),x)if(h.getConfig().maxLength){var F=A.getLeftLengthOfMaxLength(h);if(!(F<=0)){var z=document.createElement("div");z.innerHTML=x;var M=Array.from(z.childNodes).reduce(function(R,K){var V=K.nodeType,U=K.nodeName;return K?V===go.TEXT_NODE?R+(K.textContent||""):V===go.ELEMENT_NODE?yB.has(U.toLowerCase())?R:R+(K.textContent||""):R:R},"");F<M.length||C(x,S)}}else C(x,S)},h}(function(y){var h=y;return h.on=function(b,w){var D=Cg(h);if(D.on(b,w),b==="destroyed"&&xB(h,w),b!=="destroyed"){var C=function(){return D.off(b,w)};D.on("destroyed",C),xB(h,C)}},h.once=function(b,w){Cg(h).once(b,w)},h.off=function(b,w){Cg(h).off(b,w)},h.emit=function(b){for(var w=[],D=1;D<arguments.length;D++)w[D-1]=arguments[D];var C=Cg(h);C.emit.apply(C,Fw([b],Ut(w))),b==="destroyed"&&(function(x){return Sg.get(x)||new Set}(h).forEach(function(x){return C.off("destroyed",x)}),function(x){Sg.set(x,new Set)}(h))},h}(function(y){var h=y;return h.select=function(b){I.select(h,b)},h.deselect=function(){var b=h.selection,w=A.findDocumentOrShadowRoot(h).getSelection();w&&w.rangeCount>0&&w.removeAllRanges(),b&&I.deselect(y)},h.move=function(b,w){w===void 0&&(w=!1),b&&(b<0||I.move(y,{distance:b,unit:"character",reverse:w}))},h.moveReverse=function(b){h.move(b,!0)},h.restoreSelection=function(){var b=Uw.get(h);b!=null&&(h.focus(),I.select(h,b))},h.getSelectionPosition=function(){return k4(h)},h.getNodePosition=function(b){return B4(h,b)},h.isSelectedAll=function(){var b=h.selection;if(b==null)return!1;var w=Ut(L.edges(b),2),D=w[0],C=w[1],x=Ut(E.edges(h,[]),2),S=x[0],F=x[1];return!(!Tt.equals(D,S)||!Tt.equals(C,F))},h.selectAll=function(){var b=E.start(h,[]),w=E.end(h,[]);I.select(h,{anchor:b,focus:w})},h}(function(y){var h=y,b=h.onChange,w=h.insertText,D=h.apply,C=h.deleteBackward;return h.insertText=function(x){h.getConfig().readOnly||w(x)},h.apply=function(x){var S,F,z,M,R,K,V,U,W=[];switch(x.type){case"insert_text":case"remove_text":case"set_node":try{for(var Z=Er(E.levels(h,{at:x.path})),lt=Z.next();!lt.done;lt=Z.next()){var ut=Ut(lt.value,2),at=ut[0],B=ut[1],O=A.findKey(h,at);W.push([B,O])}}catch(Mt){S={error:Mt}}finally{try{lt&&!lt.done&&(F=Z.return)&&F.call(Z)}finally{if(S)throw S.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var T=Er(E.levels(h,{at:_.parent(x.path)})),N=T.next();!N.done;N=T.next()){var X=Ut(N.value,2);at=X[0],B=X[1],O=A.findKey(h,at),W.push([B,O])}}catch(Mt){z={error:Mt}}finally{try{N&&!N.done&&(M=T.return)&&M.call(T)}finally{if(z)throw z.error}}break;case"move_node":try{for(var G=Er(E.levels(h,{at:_.common(_.parent(x.path),_.parent(x.newPath))})),st=G.next();!st.done;st=G.next()){var ht=Ut(st.value,2);at=ht[0],B=ht[1],O=A.findKey(h,at),W.push([B,O])}}catch(Mt){R={error:Mt}}finally{try{st&&!st.done&&(K=G.return)&&K.call(G)}finally{if(R)throw R.error}}}D(x);try{for(var mt=Er(W),Bt=mt.next();!Bt.done;Bt=mt.next()){var q=Ut(Bt.value,2);B=q[0],O=q[1],at=Ut(E.node(h,B),1)[0],mg.set(at,O)}}catch(Mt){V={error:Mt}}finally{try{Bt&&!Bt.done&&(U=mt.return)&&U.call(mt)}finally{if(V)throw V.error}}},h.deleteBackward=function(x){if(x!=="line")return C(x);if(y.selection&&L.isCollapsed(y.selection)){var S=E.above(y,{match:function(R){return E.isBlock(y,R)},at:y.selection});if(S){var F=Ut(S,2)[1],z=E.range(y,F,y.selection.anchor),M=function(R,K){var V=E.range(R,L.end(K)),U=Array.from(E.positions(R,{at:K})),W=0,Z=U.length,lt=Math.floor(Z/2);if(oB(R,E.range(R,U[W]),V))return E.range(R,U[W],V);if(U.length<2)return E.range(R,U[U.length-1],V);for(;lt!==U.length&<!==W;)oB(R,E.range(R,U[lt]),V)?Z=lt:W=lt,lt=Math.floor((W+Z)/2);return E.range(R,U[Z],V)}(h,z);L.isCollapsed(M)||I.delete(y,{at:M})}}},h.onChange=function(){var x=h.selection;x!=null&&Uw.set(h,x),h.emit("change"),b()},h.handleTab=function(){h.insertText(" ")},h.getHtml=function(){var x=h.children;return(x===void 0?[]:x).map(function(S){return eB(S,h)}).join("")},h.getText=function(){var x=h.children;return(x===void 0?[]:x).map(function(S){return tt.string(S)}).join(`
- `)},h.getSelectionText=function(){var x=h.selection;return x==null?"":E.string(y,x)},h.getElemsByType=function(x,S){var F,z;S===void 0&&(S=!1);var M=[],R=E.nodes(h,{at:[],universal:!0});try{for(var K=Er(R),V=K.next();!V.done;V=K.next()){var U=Ut(V.value,1)[0];if(ct.isElement(U)&&(S?U.type.indexOf(x)>=0:U.type===x)){var W=nB(A.findKey(h,U).id);M.push(wr(wr({},U),{id:W}))}}}catch(Z){F={error:Z}}finally{try{V&&!V.done&&(z=K.return)&&z.call(K)}finally{if(F)throw F.error}}return M},h.getElemsByTypePrefix=function(x){return h.getElemsByType(x,!0)},h.isEmpty=function(){var x=h.children,S=x===void 0?[]:x;if(S.length>1)return!1;var F=S[0];if(F==null)return!0;if(ct.isElement(F)&&F.type==="paragraph"){var z=F.children,M=z===void 0?[]:z;if(M.length>1)return!1;var R=M[0];if(R==null||ot.isText(R)&&R.text==="")return!0}return!1},h.clear=function(){I.delete(h,{at:{anchor:E.start(h,[]),focus:E.end(h,[])}}),h.children.length===0&&I.insertNodes(h,[{type:"paragraph",children:[{text:""}]}])},h.getParentNode=function(x){return A.getParentNode(h,x)},h.dangerouslyInsertHtml=function(x,S){if(x===void 0&&(x=""),S===void 0&&(S=!1),x){var F=document.createElement("div");F.innerHTML=x;var z=Array.from(F.childNodes);if(z=z.filter(function(V){var U=V.nodeType,W=V.nodeName;return U===go.TEXT_NODE||U===go.ELEMENT_NODE&&!yB.has(W.toLowerCase())}),z.length!==0){var M=h.selection;if(M!=null){var R=null;A.isSelectedEmptyParagraph(h)&&!S&&(R=[M.focus.path[0]]),F.setAttribute("hidden","true"),document.body.appendChild(F);var K=0;z.forEach(function(V){var U=V.nodeType,W=V.nodeName,Z=V.textContent,lt=Z===void 0?"":Z;if(U!==go.TEXT_NODE)if(W!=="BR"){var ut=V,at=!1;if(iB.includes(W.toLowerCase()))at=!0;else for(var B in Eg)if(ut.matches(B)){at=!0;break}if(at){var O=D4(k(ut),h);return Array.isArray(O)?(O.forEach(function(N){return bB(h,N)}),K++):(bB(h,O),K++),void(A.isSelectedVoidNode(h)&&h.move(1))}var T=window.getComputedStyle(ut).display;A.isSelectedEmptyParagraph(h)||T.indexOf("inline")<0&&h.insertBreak(),h.dangerouslyInsertHtml(ut.innerHTML,!0)}else h.insertText(`
- `);else{if(!lt||!lt.trim())return;h.insertNode({text:lt})}}),K&&R&&A.isEmptyPath(h,R)&&I.removeNodes(h,{at:R}),F.remove()}}}},h.setHtml=function(x){x===void 0&&(x="");var S=h.isDisabled(),F=h.isFocused(),z=JSON.stringify(h.selection);h.enable(),h.focus(),h.clear();var M=gB(h,x);if(I.insertFragment(h,M),F||(h.deselect(),h.blur()),S&&(h.deselect(),h.disable()),h.isFocused())try{h.select(JSON.parse(z))}catch{h.select(E.start(h,[]))}},h}(function(y){var h=y;return h.getAllMenuKeys=function(){var b=[];for(var w in Hf)b.push(w);return b},h.getConfig=function(){var b=dk.get(h);if(b==null)throw new Error("Can not get editor config");return b},h.getMenuConfig=function(b){var w=h.getConfig().MENU_CONF;return(w===void 0?{}:w)[b]||{}},h.alert=function(b,w){w===void 0&&(w="info");var D=h.getConfig().customAlert;D&&D(b,w)},h}(function(y){var h=OZ(yW());return h.id="wangEditor-"+IJ++,h.isDestroyed=!1,h.isFullScreen=!1,h.focus=function(b){if(A.toDOMNode(h,h).focus({preventScroll:!0}),yu.set(h,!0),b){var w=E.end(h,[]);I.select(h,w)}else{var D=Uw.get(h);D?I.select(h,D):I.select(h,E.start(h,[]))}},h.isFocused=function(){return!!yu.get(h)},h.blur=function(){A.toDOMNode(h,h).blur(),I.deselect(h),yu.set(h,!1)},h.updateView=function(){A.getTextarea(h).changeViewState();var b=A.getToolbar(h);b&&b.changeToolbarState();var w=A.getHoverbar(h);w&&w.changeHoverbarState()},h.destroy=function(){if(!h.isDestroyed){var b=A.getTextarea(h);b.destroy(),Nw.delete(h),Lw.delete(b);var w=A.getToolbar(h);w&&(w.destroy(),dg.delete(h),Rw.delete(w));var D=A.getHoverbar(h);D&&(D.destroy(),pg.delete(h),Mw.delete(D)),h.isDestroyed=!0,h.emit("destroyed")}},h.scrollToElem=function(b){if(!h.getConfig().scroll){var w="\u7F16\u8F91\u5668\u7981\u7528\u4E86 scroll \uFF0C\u7F16\u8F91\u5668\u5185\u5BB9\u65E0\u6CD5\u6EDA\u52A8\uFF0C\u8BF7\u81EA\u884C\u5B9E\u73B0\u8BE5\u529F\u80FD";return w+=`
- You has disabled editor scroll, please do this yourself`,void console.warn(w)}var D=k("#"+b);if(D.length!==0){var C=D[0];if(!A.hasDOMNode(h,C))return w="Element (found by id is '"+b+"') is not in editor DOM",w+=`
- \u901A\u8FC7 id '`+b+"' \u627E\u5230\u7684 element \u4E0D\u5728 editor DOM \u4E4B\u5185",void console.error(w,C);var x=A.getTextarea(h),S=x.$textAreaContainer,F=x.$scroll,z=D.offset().top,M=S.offset().top;F[0].scrollBy({top:z-M,behavior:"smooth"})}},h.showProgressBar=function(b){b<1||A.getTextarea(h).changeProgress(b)},h.hidePanelOrModal=function(){var b=$w.get(h);b!=null&&b.forEach(function(w){return w.hide()})},h.enable=function(){h.getConfig().readOnly=!1,h.updateView()},h.disable=function(){h.getConfig().readOnly=!0,h.updateView()},h.isDisabled=function(){return h.getConfig().readOnly},h.toDOMNode=function(b){return A.toDOMNode(h,b)},h.fullScreen=function(){if(!h.isFullScreen){var b=null,w=A.getToolbar(h);w&&(b=w.$box);var D=A.getTextarea(h).$box.parent();if(b&&b.parent()[0]!==D[0])throw new Error(`Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent
- \u4E0D\u80FD\u8BBE\u7F6E\u5168\u5C4F\uFF0C\u56E0\u4E3A toolbar DOM \u7236\u8282\u70B9\u548C textarea DOM \u7236\u8282\u70B9\u4E0D\u4E00\u81F4`);D.addClass("w-e-full-screen-container");var C=D.css("z-index");D.attr("data-z-index",C.toString()),h.isFullScreen=!0,h.emit("fullScreen")}},h.unFullScreen=function(){if(h.isFullScreen){var b=A.getTextarea(h).$box.parent();setTimeout(function(){b.removeClass("w-e-full-screen-container"),h.isFullScreen=!1,h.emit("unFullScreen")},200)}},h.getEditableContainer=function(){return A.getTextarea(h).$textAreaContainer[0]},h}()))))));if(n&&function(y,h){return hB(y,"data-w-e-textarea",h)}(l,n))throw new Error("Repeated create editor by selector '"+n+"'");var c=function(y){y===void 0&&(y={});var h=d9(Ck),b={},w=y.MENU_CONF,D=w===void 0?{}:w;return Xb(h,function(C,x){b[x]=wr(wr({},C),D[x]||{})}),delete y.MENU_CONF,wr({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:b,hoverbarKeys:{},customAlert:function(C,x){window.alert(x+`:
- `+C)}},y)}(o);dk.set(l,c);var f=c.hoverbarKeys,p=f===void 0?{}:f;if(s.forEach(function(y){l=y(l)}),a!=null&&(l.children=gB(l,a)),i&&i.length&&(l.children=i),l.children.length===0&&(l.children=[{type:"paragraph",children:[{text:""}]}]),A.normalizeContent(l),n){var d=new tQ(n);Nw.set(l,d),Lw.set(d,l),d.changeViewState(),Dr(function(){var y=d.$scroll;y!=null&&y.height()<300&&console.warn(`\u7F16\u8F91\u533A\u57DF\u9AD8\u5EA6 < 300px \u8FD9\u53EF\u80FD\u4F1A\u5BFC\u81F4 modal hoverbar \u5B9A\u4F4D\u5F02\u5E38
- Textarea height < 300px . This may be cause modal and hoverbar position error`,y)});var g=void 0;Object.keys(p).length>0&&(g=new lQ,Mw.set(g,l),pg.set(l,g)),l.on("change",function(){l.hidePanelOrModal()}),l.on("scroll",function(){l.hidePanelOrModal()})}else l.children.forEach(function(y,h){return VB(y,h,l,l)});var v=c.onCreated,m=c.onDestroyed;return v&&l.on("created",function(){return v(l)}),m&&l.on("destroyed",function(){return m(l)}),Dr(function(){return l.emit("created")}),l}var fQ=eg("splice"),dQ=J.TypeError,pQ=Math.max,hQ=Math.min;Ee({target:"Array",proto:!0,forced:!fQ},{splice:function(t,e){var n,r,o,i,a,u,s=_i(this),l=gu(s),c=Js(t,l),f=arguments.length;if(f===0?n=r=0:f===1?(n=0,r=l-c):(n=f-2,r=hQ(pQ(xf(e),0),l-c)),l+n-r>9007199254740991)throw dQ("Maximum allowed length exceeded");for(o=cO(s,r),i=0;i<r;i++)(a=c+i)in s&&Ff(o,i,s[a]);if(o.length=r,n<r){for(i=c;i<l-r;i++)u=i+n,(a=i+r)in s?s[u]=s[a]:delete s[u];for(i=l;i>l-r+n;i--)delete s[i-1]}else if(n>r)for(i=l-r;i>c;i--)u=i+n-1,(a=i+r-1)in s?s[u]=s[a]:delete s[u];for(i=0;i<n;i++)s[i+c]=arguments[i+2];return s.length=l-r+n,o}});var gQ=function(){function t(e,n){var r=this;this.$toolbar=k('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=f9(function(){r.toolbarItems.forEach(function(a){a.changeMenuState()})},200),this.config=n;var o=k(e);if(o.length===0)throw new Error("Cannot find toolbar DOM by selector '"+e+"'");this.$box=o;var i=this.$toolbar;i.on("mousedown",function(a){return a.preventDefault()},{passive:!1}),o.append(i),Dr(function(){r.registerItems(),r.changeToolbarState(),r.getEditorInstance().on("change",r.changeToolbarState)})}return t.prototype.getMenus=function(){return this.menus},t.prototype.getConfig=function(){return this.config},t.prototype.registerItems=function(){var e=this,n="",r=this.$toolbar,o=this.config,i=o.toolbarKeys,a=i===void 0?[]:i,u=o.insertKeys,s=u===void 0?{index:0,keys:[]}:u,l=o.excludeKeys,c=l===void 0?[]:l,f=d9(a);s.keys.length>0&&(typeof s.keys=="string"&&(s.keys=[s.keys]),s.keys.forEach(function(g,v){f.splice(s.index+v,0,g)}));var p=f.filter(function(g){if(typeof g=="string"){if(c.includes(g))return!1}else if(c.includes(g.key))return!1;return!0}),d=p.length;p.forEach(function(g,v){if(g==="|"){if(v===0||v+1===d||n==="|")return;var m=RB();return r.append(m),void(n=g)}if(typeof g=="string")return e.registerSingleItem(g,e),void(n=g);e.registerGroup(g),n="group"})},t.prototype.registerGroup=function(e){var n=this,r=this.$toolbar,o=function(l){return new zB(l)}(e),i=e.menuKeys,a=i===void 0?[]:i,u=this.config.excludeKeys,s=u===void 0?[]:u;a.forEach(function(l){s.includes(l)||n.registerSingleItem(l,o)}),r.append(o.$elem)},t.prototype.registerSingleItem=function(e,n){var r=this.getEditorInstance(),o=n instanceof zB,i=this.menus,a=i[e];if(a==null){var u=Hf[e];if(u==null)throw new Error("Not found menu item factory by key '"+e+"'");if(typeof u!="function")throw new Error("Menu item factory (key='"+e+"') is not a function");a=u(),i[e]=a}else console.warn("Duplicated toolbar menu key '"+e+`'
- \u91CD\u590D\u6CE8\u518C\u4E86\u83DC\u5355\u680F menu '`+e+"'");var s=HB(e,a,o);this.toolbarItems.push(s),zw.set(s,r),o?n.appendBarItem(s):n.$toolbar.append(s.$elem)},t.prototype.getEditorInstance=function(){var e=Rw.get(this);if(e==null)throw new Error("Can not get editor instance");return e},t.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},t}(),vQ=Ks.EXISTS,mQ=Hr.f,UB=Function.prototype,yQ=pt(UB.toString),WB=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,bQ=pt(WB.exec);function GB(t){var e=t.server,n=e===void 0?"":e,r=t.fieldName,o=r===void 0?"":r,i=t.maxFileSize,a=i===void 0?10485760:i,u=t.maxNumberOfFiles,s=u===void 0?100:u,l=t.meta,c=l===void 0?{}:l,f=t.metaWithUrl,p=f!==void 0&&f,d=t.headers,g=d===void 0?{}:d,v=t.withCredentials,m=v!==void 0&&v,y=t.timeout,h=y===void 0?1e4:y,b=t.onBeforeUpload,w=b===void 0?function(K){return K}:b,D=t.onSuccess,C=D===void 0?function(K,V){}:D,x=t.onError,S=x===void 0?function(K,V,U){console.error(K.name+" upload error",V,U)}:x,F=t.onProgress,z=F===void 0?function(K){}:F;if(!n)throw new Error(`Cannot get upload server address
- \u6CA1\u6709\u914D\u7F6E\u4E0A\u4F20\u5730\u5740`);if(!o)throw new Error(`Cannot get fieldName
- \u6CA1\u6709\u914D\u7F6E fieldName`);var M=n;p&&(M=function(K,V){var U=Ut(K.split("#"),2),W=U[0],Z=U[1],lt=[];Xb(V,function(at,B){lt.push(B+"="+at)});var ut=lt.join("&");return W=W.indexOf("?")>0?W+"&"+ut:W+"?"+ut,Z?W+"#"+Z:W}(M,c));var R=new ff({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(JK,{endpoint:M,headers:g,formData:!0,fieldName:o,bundle:!0,withCredentials:m,timeout:h});return R.on("upload-success",function(K,V){var U=V.body,W=U===void 0?{}:U;try{C(K,W)}catch(Z){console.error("wangEditor upload file - onSuccess error",Z)}R.removeFile(K.id)}),R.on("progress",function(K){K<1||z(K)}),R.on("upload-error",function(K,V,U){try{S(K,V,U)}catch(W){console.error("wangEditor upload file - onError error",W)}R.removeFile(K.id)}),R.on("restriction-failed",function(K,V){try{S(K,V)}catch(U){console.error("wangEditor upload file - onError error",U)}R.removeFile(K.id)}),R}function Ri(t){return Ri=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ri(t)}function wQ(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ke(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),r.forEach(function(o){wQ(t,o,n[o])})}return t}function Xo(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function qB(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Yo(t,e,n){return e&&qB(t.prototype,e),n&&qB(t,n),t}function xu(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Zf(t,e){if(e&&(Ri(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xu(t)}function vl(t){return vl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},vl(t)}function $4(t,e){return $4=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},$4(t,e)}function Og(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&$4(t,e)}cn&&!vQ&&mQ(UB,"name",{configurable:!0,get:function(){try{return bQ(WB,yQ(this))[1]}catch{return""}}});var EQ={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,e){console&&console[t]&&console[t].apply(console,e)}},Jo=new(function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Xo(this,t),this.init(e,n)}return Yo(t,[{key:"init",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=e||EQ,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,n,r,o){return o&&!this.debug?null:(typeof e[0]=="string"&&(e[0]="".concat(r).concat(this.prefix," ").concat(e[0])),this.logger[n](e))}},{key:"create",value:function(e){return new t(this.logger,Ke({},{prefix:"".concat(this.prefix,":").concat(e,":")},this.options))}}]),t}()),Mi=function(){function t(){Xo(this,t),this.observers={}}return Yo(t,[{key:"on",value:function(e,n){var r=this;return e.split(" ").forEach(function(o){r.observers[o]=r.observers[o]||[],r.observers[o].push(n)}),this}},{key:"off",value:function(e,n){this.observers[e]&&(n?this.observers[e]=this.observers[e].filter(function(r){return r!==n}):delete this.observers[e])}},{key:"emit",value:function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];this.observers[e]&&[].concat(this.observers[e]).forEach(function(i){i.apply(void 0,r)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(function(i){i.apply(i,[e].concat(r))})}}]),t}();function Qf(){var t,e,n=new Promise(function(r,o){t=r,e=o});return n.resolve=t,n.reject=e,n}function KB(t){return t==null?"":""+t}function H4(t,e,n){function r(u){return u&&u.indexOf("###")>-1?u.replace(/###/g,"."):u}function o(){return!t||typeof t=="string"}for(var i=typeof e!="string"?[].concat(e):e.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!t[a]&&n&&(t[a]=new n),t=Object.prototype.hasOwnProperty.call(t,a)?t[a]:{}}return o()?{}:{obj:t,k:r(i.shift())}}function XB(t,e,n){var r=H4(t,e,Object);r.obj[r.k]=n}function kg(t,e){var n=H4(t,e),r=n.obj,o=n.k;if(r)return r[o]}function YB(t,e,n){var r=kg(t,n);return r!==void 0?r:kg(e,n)}function JB(t,e,n){for(var r in e)r!=="__proto__"&&r!=="constructor"&&(r in t?typeof t[r]=="string"||t[r]instanceof String||typeof e[r]=="string"||e[r]instanceof String?n&&(t[r]=e[r]):JB(t[r],e[r],n):t[r]=e[r]);return t}function ml(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var DQ={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function xQ(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,function(e){return DQ[e]}):t}var Bg=typeof window<"u"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function ZB(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(t){if(t[e])return t[e];for(var r=e.split(n),o=t,i=0;i<r.length;++i){if(!o||typeof o[r[i]]=="string"&&i+1<r.length)return;if(o[r[i]]===void 0){for(var a=2,u=r.slice(i,i+a).join(n),s=o[u];s===void 0&&r.length>i+a;)a++,s=o[u=r.slice(i,i+a).join(n)];if(s===void 0)return;if(typeof s=="string")return s;if(u&&typeof s[u]=="string")return s[u];var l=r.slice(i+a).join(n);return l?ZB(s,l,n):void 0}o=o[r[i]]}return o}}var CQ=function(t){function e(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Xo(this,e),r=Zf(this,vl(e).call(this)),Bg&&Mi.call(xu(r)),r.data=n||{},r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.options.ignoreJSONStructure===void 0&&(r.options.ignoreJSONStructure=!0),r}return Og(e,Mi),Yo(e,[{key:"addNamespaces",value:function(n){this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}},{key:"removeNamespaces",value:function(n){var r=this.options.ns.indexOf(n);r>-1&&this.options.ns.splice(r,1)}},{key:"getResource",value:function(n,r,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,u=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure,s=[n,r];o&&typeof o!="string"&&(s=s.concat(o)),o&&typeof o=="string"&&(s=s.concat(a?o.split(a):o)),n.indexOf(".")>-1&&(s=n.split("."));var l=kg(this.data,s);return l||!u||typeof o!="string"?l:ZB(this.data&&this.data[n]&&this.data[n][r],o,a)}},{key:"addResource",value:function(n,r,o,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},u=this.options.keySeparator;u===void 0&&(u=".");var s=[n,r];o&&(s=s.concat(u?o.split(u):o)),n.indexOf(".")>-1&&(i=r,r=(s=n.split("."))[1]),this.addNamespaces(r),XB(this.data,s,i),a.silent||this.emit("added",n,r,o,i)}},{key:"addResources",value:function(n,r,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var a in o)typeof o[a]!="string"&&Object.prototype.toString.apply(o[a])!=="[object Array]"||this.addResource(n,r,a,o[a],{silent:!0});i.silent||this.emit("added",n,r,o)}},{key:"addResourceBundle",value:function(n,r,o,i,a){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},s=[n,r];n.indexOf(".")>-1&&(i=o,o=r,r=(s=n.split("."))[1]),this.addNamespaces(r);var l=kg(this.data,s)||{};i?JB(l,o,a):l=Ke({},l,o),XB(this.data,s,l),u.silent||this.emit("added",n,r,o)}},{key:"removeResourceBundle",value:function(n,r){this.hasResourceBundle(n,r)&&delete this.data[n][r],this.removeNamespaces(r),this.emit("removed",n,r)}},{key:"hasResourceBundle",value:function(n,r){return this.getResource(n,r)!==void 0}},{key:"getResourceBundle",value:function(n,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?Ke({},{},this.getResource(n,r)):this.getResource(n,r)}},{key:"getDataByLanguage",value:function(n){return this.data[n]}},{key:"toJSON",value:function(){return this.data}}]),e}(),QB={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,e,n,r,o){var i=this;return t.forEach(function(a){i.processors[a]&&(e=i.processors[a].process(e,n,r,o))}),e}},tF={},eF=function(t){function e(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Xo(this,e),r=Zf(this,vl(e).call(this)),Bg&&Mi.call(xu(r)),function(i,a,u){i.forEach(function(s){a[s]&&(u[s]=a[s])})}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,xu(r)),r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.logger=Jo.create("translator"),r}return Og(e,Mi),Yo(e,[{key:"changeLanguage",value:function(n){n&&(this.language=n)}},{key:"exists",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(n==null)return!1;var o=this.resolve(n,r);return o&&o.res!==void 0}},{key:"extractFromKey",value:function(n,r){var o=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");var i=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,a=r.ns||this.options.defaultNS;if(o&&n.indexOf(o)>-1){var u=n.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:n,namespaces:a};var s=n.split(o);(o!==i||o===i&&this.options.ns.indexOf(s[0])>-1)&&(a=s.shift()),n=s.join(i)}return typeof a=="string"&&(a=[a]),{key:n,namespaces:a}}},{key:"translate",value:function(n,r,o){var i=this;if(Ri(r)!=="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r||(r={}),n==null)return"";Array.isArray(n)||(n=[String(n)]);var a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,u=this.extractFromKey(n[n.length-1],r),s=u.key,l=u.namespaces,c=l[l.length-1],f=r.lng||this.language,p=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&f.toLowerCase()==="cimode"){if(p){var d=r.nsSeparator||this.options.nsSeparator;return c+d+s}return s}var g=this.resolve(n,r),v=g&&g.res,m=g&&g.usedKey||s,y=g&&g.exactUsedKey||s,h=Object.prototype.toString.apply(v),b=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject;if(w&&v&&typeof v!="string"&&typeof v!="boolean"&&typeof v!="number"&&["[object Number]","[object Function]","[object RegExp]"].indexOf(h)<0&&(typeof b!="string"||h!=="[object Array]")){if(!r.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,v,Ke({},r,{ns:l})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(a){var D=h==="[object Array]",C=D?[]:{},x=D?y:m;for(var S in v)if(Object.prototype.hasOwnProperty.call(v,S)){var F="".concat(x).concat(a).concat(S);C[S]=this.translate(F,Ke({},r,{joinArrays:!1,ns:l})),C[S]===F&&(C[S]=v[S])}v=C}}else if(w&&typeof b=="string"&&h==="[object Array]")(v=v.join(b))&&(v=this.extendTranslation(v,n,r,o));else{var z=!1,M=!1,R=r.count!==void 0&&typeof r.count!="string",K=e.hasDefaultValue(r),V=R?this.pluralResolver.getSuffix(f,r.count):"",U=r["defaultValue".concat(V)]||r.defaultValue;!this.isValidLookup(v)&&K&&(z=!0,v=U),this.isValidLookup(v)||(M=!0,v=s);var W=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&M?void 0:v,Z=K&&U!==v&&this.options.updateMissing;if(M||z||Z){if(this.logger.log(Z?"updateKey":"missingKey",f,c,s,Z?U:v),a){var lt=this.resolve(s,Ke({},r,{keySeparator:!1}));lt&<.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var ut=[],at=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&at&&at[0])for(var B=0;B<at.length;B++)ut.push(at[B]);else this.options.saveMissingTo==="all"?ut=this.languageUtils.toResolveHierarchy(r.lng||this.language):ut.push(r.lng||this.language);var O=function(T,N,X){i.options.missingKeyHandler?i.options.missingKeyHandler(T,c,N,Z?X:W,Z,r):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(T,c,N,Z?X:W,Z,r),i.emit("missingKey",T,c,N,v)};this.options.saveMissing&&(this.options.saveMissingPlurals&&R?ut.forEach(function(T){i.pluralResolver.getSuffixes(T).forEach(function(N){O([T],s+N,r["defaultValue".concat(N)]||U)})}):O(ut,s,U))}v=this.extendTranslation(v,n,r,g,o),M&&v===s&&this.options.appendNamespaceToMissingKey&&(v="".concat(c,":").concat(s)),(M||z)&&this.options.parseMissingKeyHandler&&(v=this.options.parseMissingKeyHandler(v))}return v}},{key:"extendTranslation",value:function(n,r,o,i,a){var u=this;if(this.i18nFormat&&this.i18nFormat.parse)n=this.i18nFormat.parse(n,o,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init(Ke({},o,{interpolation:Ke({},this.options.interpolation,o.interpolation)}));var s,l=o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(l){var c=n.match(this.interpolator.nestingRegexp);s=c&&c.length}var f=o.replace&&typeof o.replace!="string"?o.replace:o;if(this.options.interpolation.defaultVariables&&(f=Ke({},this.options.interpolation.defaultVariables,f)),n=this.interpolator.interpolate(n,f,o.lng||this.language,o),l){var p=n.match(this.interpolator.nestingRegexp);s<(p&&p.length)&&(o.nest=!1)}o.nest!==!1&&(n=this.interpolator.nest(n,function(){for(var v=arguments.length,m=new Array(v),y=0;y<v;y++)m[y]=arguments[y];return a&&a[0]===m[0]&&!o.context?(u.logger.warn("It seems you are nesting recursively key: ".concat(m[0]," in key: ").concat(r[0])),null):u.translate.apply(u,m.concat([r]))},o)),o.interpolation&&this.interpolator.reset()}var d=o.postProcess||this.options.postProcess,g=typeof d=="string"?[d]:d;return n!=null&&g&&g.length&&o.applyPostProcessor!==!1&&(n=QB.handle(g,n,r,this.options&&this.options.postProcessPassResolved?Ke({i18nResolved:i},o):o,this)),n}},{key:"resolve",value:function(n){var r,o,i,a,u,s=this,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof n=="string"&&(n=[n]),n.forEach(function(c){if(!s.isValidLookup(r)){var f=s.extractFromKey(c,l),p=f.key;o=p;var d=f.namespaces;s.options.fallbackNS&&(d=d.concat(s.options.fallbackNS));var g=l.count!==void 0&&typeof l.count!="string",v=l.context!==void 0&&(typeof l.context=="string"||typeof l.context=="number")&&l.context!=="",m=l.lngs?l.lngs:s.languageUtils.toResolveHierarchy(l.lng||s.language,l.fallbackLng);d.forEach(function(y){s.isValidLookup(r)||(u=y,!tF["".concat(m[0],"-").concat(y)]&&s.utils&&s.utils.hasLoadedNamespace&&!s.utils.hasLoadedNamespace(u)&&(tF["".concat(m[0],"-").concat(y)]=!0,s.logger.warn('key "'.concat(o,'" for languages "').concat(m.join(", "),`" won't get resolved as namespace "`).concat(u,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),m.forEach(function(h){if(!s.isValidLookup(r)){a=h;var b,w,D=p,C=[D];for(s.i18nFormat&&s.i18nFormat.addLookupKeys?s.i18nFormat.addLookupKeys(C,p,h,y,l):(g&&(b=s.pluralResolver.getSuffix(h,l.count)),g&&v&&C.push(D+b),v&&C.push(D+="".concat(s.options.contextSeparator).concat(l.context)),g&&C.push(D+=b));w=C.pop();)s.isValidLookup(r)||(i=w,r=s.getResource(h,y,w,l))}}))})}}),{res:r,usedKey:o,exactUsedKey:i,usedLng:a,usedNS:u}}},{key:"isValidLookup",value:function(n){return!(n===void 0||!this.options.returnNull&&n===null||!this.options.returnEmptyString&&n==="")}},{key:"getResource",value:function(n,r,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(n,r,o,i):this.resourceStore.getResource(n,r,o,i)}}],[{key:"hasDefaultValue",value:function(n){var r="defaultValue";for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&r===o.substring(0,12)&&n[o]!==void 0)return!0;return!1}}]),e}();function V4(t){return t.charAt(0).toUpperCase()+t.slice(1)}var SQ=function(){function t(e){Xo(this,t),this.options=e,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Jo.create("languageUtils")}return Yo(t,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var n=e.split("-");return n.length===2?null:(n.pop(),n[n.length-1].toLowerCase()==="x"?null:this.formatLanguageCode(n.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var n=e.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function(e){if(typeof e=="string"&&e.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],r=e.split("-");return this.options.lowerCaseLng?r=r.map(function(o){return o.toLowerCase()}):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=V4(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=V4(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=V4(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",`function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it's usage asap.`),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var n,r=this;return e?(e.forEach(function(o){if(!n){var i=r.formatLanguageCode(o);r.options.supportedLngs&&!r.isSupportedCode(i)||(n=i)}}),!n&&this.options.supportedLngs&&e.forEach(function(o){if(!n){var i=r.getLanguagePartFromCode(o);if(r.isSupportedCode(i))return n=i;n=r.options.supportedLngs.find(function(a){if(a.indexOf(i)===0)return a})}}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n):null}},{key:"getFallbackCodes",value:function(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),typeof e=="string"&&(e=[e]),Object.prototype.toString.apply(e)==="[object Array]")return e;if(!n)return e.default||[];var r=e[n];return r||(r=e[this.getScriptPartFromCode(n)]),r||(r=e[this.formatLanguageCode(n)]),r||(r=e[this.getLanguagePartFromCode(n)]),r||(r=e.default),r||[]}},{key:"toResolveHierarchy",value:function(e,n){var r=this,o=this.getFallbackCodes(n||this.options.fallbackLng||[],e),i=[],a=function(u){u&&(r.isSupportedCode(u)?i.push(u):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(u)))};return typeof e=="string"&&e.indexOf("-")>-1?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(e))):typeof e=="string"&&a(this.formatLanguageCode(e)),o.forEach(function(u){i.indexOf(u)<0&&a(r.formatLanguageCode(u))}),i}}]),t}(),AQ=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],OQ={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}},kQ=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Xo(this,t),this.languageUtils=e,this.options=n,this.logger=Jo.create("pluralResolver"),this.rules=function(){var r={};return AQ.forEach(function(o){o.lngs.forEach(function(i){r[i]={numbers:o.nr,plurals:OQ[o.fc]}})}),r}()}return Yo(t,[{key:"addRule",value:function(e,n){this.rules[e]=n}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var n=this.getRule(e);return n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,n){return this.getSuffixes(e).map(function(r){return n+r})}},{key:"getSuffixes",value:function(e){var n=this,r=this.getRule(e);return r?r.numbers.map(function(o){return n.getSuffix(e,o)}):[]}},{key:"getSuffix",value:function(e,n){var r=this,o=this.getRule(e);if(o){var i=o.noAbs?o.plurals(n):o.plurals(Math.abs(n)),a=o.numbers[i];this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var u=function(){return r.options.prepend&&a.toString()?r.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):u():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1?u():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),t}(),BQ=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Xo(this,t),this.logger=Jo.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(n){return n},this.init(e)}return Yo(t,[{key:"init",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var n=e.interpolation;this.escape=n.escape!==void 0?n.escape:xQ,this.escapeValue=n.escapeValue===void 0||n.escapeValue,this.useRawValueToEscape=n.useRawValueToEscape!==void 0&&n.useRawValueToEscape,this.prefix=n.prefix?ml(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?ml(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?ml(n.nestingPrefix):n.nestingPrefixEscaped||ml("$t("),this.nestingSuffix=n.nestingSuffix?ml(n.nestingSuffix):n.nestingSuffixEscaped||ml(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0&&n.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function(e,n,r,o){var i,a,u,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(v){return v.replace(/\$/g,"$$$$")}var f=function(v){if(v.indexOf(s.formatSeparator)<0){var m=YB(n,l,v);return s.alwaysFormat?s.format(m,void 0,r,Ke({},o,n,{interpolationkey:v})):m}var y=v.split(s.formatSeparator),h=y.shift().trim(),b=y.join(s.formatSeparator).trim();return s.format(YB(n,l,h),b,r,Ke({},o,n,{interpolationkey:h}))};this.resetRegExp();var p=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,d=o&&o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,g=[{regex:this.regexpUnescape,safeValue:function(v){return c(v)}},{regex:this.regexp,safeValue:function(v){return s.escapeValue?c(s.escape(v)):c(v)}}];return g.forEach(function(v){for(u=0;i=v.regex.exec(e);){if((a=f(i[1].trim()))===void 0)if(typeof p=="function"){var m=p(e,i,o);a=typeof m=="string"?m:""}else{if(d){a=i[0];continue}s.logger.warn("missed to pass in variable ".concat(i[1]," for interpolating ").concat(e)),a=""}else typeof a=="string"||s.useRawValueToEscape||(a=KB(a));var y=v.safeValue(a);if(e=e.replace(i[0],y),d?(v.regex.lastIndex+=y.length,v.regex.lastIndex-=i[0].length):v.regex.lastIndex=0,++u>=s.maxReplaces)break}}),e}},{key:"nest",value:function(e,n){var r,o,i=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=Ke({},a);function s(p,d){var g=this.nestingOptionsSeparator;if(p.indexOf(g)<0)return p;var v=p.split(new RegExp("".concat(g,"[ ]*{"))),m="{".concat(v[1]);p=v[0],m=(m=this.interpolate(m,u)).replace(/'/g,'"');try{u=JSON.parse(m),d&&(u=Ke({},d,u))}catch(y){return this.logger.warn("failed parsing options string in nesting for key ".concat(p),y),"".concat(p).concat(g).concat(m)}return delete u.defaultValue,p}for(u.applyPostProcessor=!1,delete u.defaultValue;r=this.nestingRegexp.exec(e);){var l=[],c=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){var f=r[1].split(this.formatSeparator).map(function(p){return p.trim()});r[1]=f.shift(),l=f,c=!0}if((o=n(s.call(this,r[1].trim(),u),u))&&r[0]===e&&typeof o!="string")return o;typeof o!="string"&&(o=KB(o)),o||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(e)),o=""),c&&(o=l.reduce(function(p,d){return i.format(p,d,a.lng,Ke({},a,{interpolationkey:r[1].trim()}))},o.trim())),e=e.replace(r[0],o),this.regexp.lastIndex=0}return e}}]),t}(),FQ=function(t){function e(n,r,o){var i,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Xo(this,e),i=Zf(this,vl(e).call(this)),Bg&&Mi.call(xu(i)),i.backend=n,i.store=r,i.services=o,i.languageUtils=o.languageUtils,i.options=a,i.logger=Jo.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(o,a.backend,a),i}return Og(e,Mi),Yo(e,[{key:"queueLoad",value:function(n,r,o,i){var a=this,u=[],s=[],l=[],c=[];return n.forEach(function(f){var p=!0;r.forEach(function(d){var g="".concat(f,"|").concat(d);!o.reload&&a.store.hasResourceBundle(f,d)?a.state[g]=2:a.state[g]<0||(a.state[g]===1?s.indexOf(g)<0&&s.push(g):(a.state[g]=1,p=!1,s.indexOf(g)<0&&s.push(g),u.indexOf(g)<0&&u.push(g),c.indexOf(d)<0&&c.push(d)))}),p||l.push(f)}),(u.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:i}),{toLoad:u,pending:s,toLoadLanguages:l,toLoadNamespaces:c}}},{key:"loaded",value:function(n,r,o){var i=n.split("|"),a=i[0],u=i[1];r&&this.emit("failedLoading",a,u,r),o&&this.store.addResourceBundle(a,u,o),this.state[n]=r?-1:2;var s={};this.queue.forEach(function(l){(function(c,f,p,d){var g=H4(c,f,Object),v=g.obj,m=g.k;v[m]=v[m]||[],v[m].push(p)})(l.loaded,[a],u),function(c,f){for(var p=c.indexOf(f);p!==-1;)c.splice(p,1),p=c.indexOf(f)}(l.pending,n),r&&l.errors.push(r),l.pending.length!==0||l.done||(Object.keys(l.loaded).forEach(function(c){s[c]||(s[c]=[]),l.loaded[c].length&&l.loaded[c].forEach(function(f){s[c].indexOf(f)<0&&s[c].push(f)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(function(l){return!l.done})}},{key:"read",value:function(n,r,o){var i=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:350,s=arguments.length>5?arguments[5]:void 0;return n.length?this.backend[o](n,r,function(l,c){l&&c&&a<5?setTimeout(function(){i.read.call(i,n,r,o,a+1,2*u,s)},u):s(l,c)}):s(null,{})}},{key:"prepareLoading",value:function(n,r){var o=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();typeof n=="string"&&(n=this.languageUtils.toResolveHierarchy(n)),typeof r=="string"&&(r=[r]);var u=this.queueLoad(n,r,i,a);if(!u.toLoad.length)return u.pending.length||a(),null;u.toLoad.forEach(function(s){o.loadOne(s)})}},{key:"load",value:function(n,r,o){this.prepareLoading(n,r,{},o)}},{key:"reload",value:function(n,r,o){this.prepareLoading(n,r,{reload:!0},o)}},{key:"loadOne",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=n.split("|"),a=i[0],u=i[1];this.read(a,u,"read",void 0,void 0,function(s,l){s&&r.logger.warn("".concat(o,"loading namespace ").concat(u," for language ").concat(a," failed"),s),!s&&l&&r.logger.log("".concat(o,"loaded namespace ").concat(u," for language ").concat(a),l),r.loaded(n,s,l)})}},{key:"saveMissing",value:function(n,r,o,i,a){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)?this.logger.warn('did not save key "'.concat(o,'" as the namespace "').concat(r,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):o!=null&&o!==""&&(this.backend&&this.backend.create&&this.backend.create(n,r,o,i,null,Ke({},u,{isUpdate:a})),n&&n[0]&&this.store.addResource(n[0],r,o,i))}}]),e}();function nF(t){return typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.whitelist&&(t.whitelist&&t.whitelist.indexOf("cimode")<0&&(t.whitelist=t.whitelist.concat(["cimode"])),t.supportedLngs=t.whitelist),t.nonExplicitWhitelist&&(t.nonExplicitSupportedLngs=t.nonExplicitWhitelist),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function Fg(){}var TQ=function(t){function e(){var n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(Xo(this,e),n=Zf(this,vl(e).call(this)),Bg&&Mi.call(xu(n)),n.options=nF(r),n.services={},n.logger=Jo,n.modules={external:[]},o&&!n.isInitialized&&!r.isClone){if(!n.options.initImmediate)return n.init(r,o),Zf(n,xu(n));setTimeout(function(){n.init(r,o)},0)}return n}return Og(e,Mi),Yo(e,[{key:"init",value:function(){var n=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;function i(f){return f?typeof f=="function"?new f:f:null}if(typeof r=="function"&&(o=r,r={}),r.whitelist&&!r.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),r.nonExplicitWhitelist&&!r.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=Ke({},{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(f){var p={};if(Ri(f[1])==="object"&&(p=f[1]),typeof f[1]=="string"&&(p.defaultValue=f[1]),typeof f[2]=="string"&&(p.tDescription=f[2]),Ri(f[2])==="object"||Ri(f[3])==="object"){var d=f[3]||f[2];Object.keys(d).forEach(function(g){p[g]=d[g]})}return p},interpolation:{escapeValue:!0,format:function(f,p,d,g){return f},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}},this.options,nF(r)),this.format=this.options.interpolation.format,o||(o=Fg),!this.options.isClone){this.modules.logger?Jo.init(i(this.modules.logger),this.options):Jo.init(null,this.options);var a=new SQ(this.options);this.store=new CQ(this.options.resources,this.options);var u=this.services;u.logger=Jo,u.resourceStore=this.store,u.languageUtils=a,u.pluralResolver=new kQ(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u.interpolator=new BQ(this.options),u.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},u.backendConnector=new FQ(i(this.modules.backend),u.resourceStore,u,this.options),u.backendConnector.on("*",function(f){for(var p=arguments.length,d=new Array(p>1?p-1:0),g=1;g<p;g++)d[g-1]=arguments[g];n.emit.apply(n,[f].concat(d))}),this.modules.languageDetector&&(u.languageDetector=i(this.modules.languageDetector),u.languageDetector.init(u,this.options.detection,this.options)),this.modules.i18nFormat&&(u.i18nFormat=i(this.modules.i18nFormat),u.i18nFormat.init&&u.i18nFormat.init(this)),this.translator=new eF(this.services,this.options),this.translator.on("*",function(f){for(var p=arguments.length,d=new Array(p>1?p-1:0),g=1;g<p;g++)d[g-1]=arguments[g];n.emit.apply(n,[f].concat(d))}),this.modules.external.forEach(function(f){f.init&&f.init(n)})}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.length>0&&s[0]!=="dev"&&(this.options.lng=s[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(function(f){n[f]=function(){var p;return(p=n.store)[f].apply(p,arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(f){n[f]=function(){var p;return(p=n.store)[f].apply(p,arguments),n}});var l=Qf(),c=function(){var f=function(p,d){n.isInitialized&&!n.initializedStoreOnce&&n.logger.warn("init: i18next is already initialized. You should call init just once!"),n.isInitialized=!0,n.options.isClone||n.logger.log("initialized",n.options),n.emit("initialized",n.options),l.resolve(d),o(p,d)};if(n.languages&&n.options.compatibilityAPI!=="v1"&&!n.isInitialized)return f(null,n.t.bind(n));n.changeLanguage(n.options.lng,f)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),l}},{key:"loadResources",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Fg,i=typeof n=="string"?n:this.language;if(typeof n=="function"&&(o=n),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode")return o();var a=[],u=function(s){s&&r.services.languageUtils.toResolveHierarchy(s).forEach(function(l){a.indexOf(l)<0&&a.push(l)})};i?u(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(s){return u(s)}),this.options.preload&&this.options.preload.forEach(function(s){return u(s)}),this.services.backendConnector.load(a,this.options.ns,o)}else o(null)}},{key:"reloadResources",value:function(n,r,o){var i=Qf();return n||(n=this.languages),r||(r=this.options.ns),o||(o=Fg),this.services.backendConnector.reload(n,r,function(a){i.resolve(),o(a)}),i}},{key:"use",value:function(n){if(!n)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!n.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return n.type==="backend"&&(this.modules.backend=n),(n.type==="logger"||n.log&&n.warn&&n.error)&&(this.modules.logger=n),n.type==="languageDetector"&&(this.modules.languageDetector=n),n.type==="i18nFormat"&&(this.modules.i18nFormat=n),n.type==="postProcessor"&&QB.addPostProcessor(n),n.type==="3rdParty"&&this.modules.external.push(n),this}},{key:"changeLanguage",value:function(n,r){var o=this;this.isLanguageChangingTo=n;var i=Qf();this.emit("languageChanging",n);var a=function(u){n||u||!o.services.languageDetector||(u=[]);var s=typeof u=="string"?u:o.services.languageUtils.getBestMatchFromCodes(u);s&&(o.language||(o.language=s,o.languages=o.services.languageUtils.toResolveHierarchy(s)),o.translator.language||o.translator.changeLanguage(s),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(s)),o.loadResources(s,function(l){(function(c,f){f?(o.language=f,o.languages=o.services.languageUtils.toResolveHierarchy(f),o.translator.changeLanguage(f),o.isLanguageChangingTo=void 0,o.emit("languageChanged",f),o.logger.log("languageChanged",f)):o.isLanguageChangingTo=void 0,i.resolve(function(){return o.t.apply(o,arguments)}),r&&r(c,function(){return o.t.apply(o,arguments)})})(l,s)})};return n||!this.services.languageDetector||this.services.languageDetector.async?!n&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(n):a(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function(n,r,o){var i=this,a=function u(s,l){var c;if(Ri(l)!=="object"){for(var f=arguments.length,p=new Array(f>2?f-2:0),d=2;d<f;d++)p[d-2]=arguments[d];c=i.options.overloadTranslationOptionHandler([s,l].concat(p))}else c=Ke({},l);c.lng=c.lng||u.lng,c.lngs=c.lngs||u.lngs,c.ns=c.ns||u.ns;var g=i.options.keySeparator||".",v=o?"".concat(o).concat(g).concat(s):s;return i.t(v,c)};return typeof n=="string"?a.lng=n:a.lngs=n,a.ns=r,a.keyPrefix=o,a}},{key:"t",value:function(){var n;return this.translator&&(n=this.translator).translate.apply(n,arguments)}},{key:"exists",value:function(){var n;return this.translator&&(n=this.translator).exists.apply(n,arguments)}},{key:"setDefaultNamespace",value:function(n){this.options.defaultNS=n}},{key:"hasLoadedNamespace",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var i=this.languages[0],a=!!this.options&&this.options.fallbackLng,u=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;var s=function(c,f){var p=r.services.backendConnector.state["".concat(c,"|").concat(f)];return p===-1||p===2};if(o.precheck){var l=o.precheck(this,s);if(l!==void 0)return l}return!!this.hasResourceBundle(i,n)||!this.services.backendConnector.backend||!(!s(i,n)||a&&!s(u,n))}},{key:"loadNamespaces",value:function(n,r){var o=this,i=Qf();return this.options.ns?(typeof n=="string"&&(n=[n]),n.forEach(function(a){o.options.ns.indexOf(a)<0&&o.options.ns.push(a)}),this.loadResources(function(a){i.resolve(),r&&r(a)}),i):(r&&r(),Promise.resolve())}},{key:"loadLanguages",value:function(n,r){var o=Qf();typeof n=="string"&&(n=[n]);var i=this.options.preload||[],a=n.filter(function(u){return i.indexOf(u)<0});return a.length?(this.options.preload=i.concat(a),this.loadResources(function(u){o.resolve(),r&&r(u)}),o):(r&&r(),Promise.resolve())}},{key:"dir",value:function(n){return n||(n=this.languages&&this.languages.length>0?this.languages[0]:this.language),n?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(n))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){return new e(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}},{key:"cloneInstance",value:function(){var n=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Fg,i=Ke({},this.options,r,{isClone:!0}),a=new e(i);return["store","services","language"].forEach(function(u){a[u]=n[u]}),a.services=Ke({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new eF(a.services,a.options),a.translator.on("*",function(u){for(var s=arguments.length,l=new Array(s>1?s-1:0),c=1;c<s;c++)l[c-1]=arguments[c];a.emit.apply(a,[u].concat(l))}),a.init(i,o),a.translator.options=a.options,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),e}(),td=new TQ;function Vn(t,e){td.addResourceBundle(t,"translation",e,!0,!0)}td.init({lng:"zh-CN",resources:{}});var et=td.t.bind(td);Vn("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),Vn("zh-CN",{editor:{more:"\u66F4\u591A",justify:"\u5BF9\u9F50",indent:"\u7F29\u8FDB",image:"\u56FE\u7247",video:"\u89C6\u9891"}});var _Q=Ly?{}.toString:function(){return"[object "+Gh(this)+"]"};Ly||mi(Object.prototype,"toString",_Q,{unsafe:!0});var rF=Array.isArray||function(t){return Va(t)=="Array"},oF=function(){},PQ=[],iF=jc("Reflect","construct"),U4=/^\s*(?:class|function)\b/,jQ=ie(U4.exec),IQ=!U4.exec(oF),ed=function(t){if(!He(t))return!1;try{return iF(oF,PQ,t),!0}catch{return!1}},NQ=!iF||sn(function(){var t;return ed(ed.call)||!ed(Object)||!ed(function(){t=!0})||t})?function(t){if(!He(t))return!1;switch(Gh(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return IQ||!!jQ(U4,By(t))}:ed,LQ=Pn("species"),aF=xt.Array,RQ=function(t,e){return new(function(n){var r;return rF(n)&&(r=n.constructor,(NQ(r)&&(r===aF||rF(r.prototype))||Rr(r)&&(r=r[LQ])===null)&&(r=void 0)),r===void 0?aF:r}(t))(e===0?0:e)},uF=ie([].push),zi=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,g=Cy(s),v=sS(g),m=HS(l,c),y=Vh(v),h=0,b=f||RQ,w=e?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in v)&&(d=m(p=v[h],h,g),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:uF(w,p)}else switch(t){case 4:return!1;case 7:uF(w,p)}return i?-1:r||o?o:w}},MQ=[zi(0),zi(1),zi(2),zi(3),zi(4),zi(5),zi(6),zi(7)][0],zQ=function(t,e){var n=[].forEach;return!!n&&sn(function(){n.call(null,function(){throw 1},1)})}(),W4=zQ?[].forEach:function(t){return MQ(this,t,arguments.length>1?arguments[1]:void 0)},sF=function(t){if(t&&t.forEach!==W4)try{zn(t,"forEach",W4)}catch{t.forEach=W4}};for(var G4 in Qh)Qh[G4]&&sF(xt[G4]&&xt[G4].prototype);sF(tA),Vn("en",{common:{ok:"OK",delete:"Delete",enter:"Enter"},blockQuote:{title:"Quote"},codeBlock:{title:"Code block"},color:{color:"Font color",bgColor:"Back color",default:"Default color",clear:"Clear back color"},divider:{title:"Divider"},emotion:{title:"Emotion"},fontSize:{title:"Font size",default:"Default"},fontFamily:{title:"Font family",default:"Default"},fullScreen:{title:"Full screen"},header:{title:"Header",text:"Text"},image:{netImage:"Net image",delete:"Delete image",edit:"Edit image",viewLink:"View link",src:"Image src",desc:"Description",link:"Image link"},indent:{decrease:"Decrease",increase:"Increase"},justify:{left:"Left",right:"Right",center:"Center",justify:"Justify"},lineHeight:{title:"Line height",default:"Default"},link:{insert:"Insert link",text:"Link text",url:"Link source",unLink:"Unlink",edit:"Edit link",view:"View link"},textStyle:{bold:"Bold",clear:"Clear styles",code:"Inline code",italic:"Italic",sub:"Sub",sup:"Sup",through:"Through",underline:"Underline"},undo:{undo:"undo",redo:"Redo"},todo:{todo:"Todo"}}),Vn("zh-CN",{common:{ok:"\u786E\u5B9A",delete:"\u5220\u9664",enter:"\u56DE\u8F66"},blockQuote:{title:"\u5F15\u7528"},codeBlock:{title:"\u4EE3\u7801\u5757"},color:{color:"\u6587\u5B57\u989C\u8272",bgColor:"\u80CC\u666F\u8272",default:"\u9ED8\u8BA4\u989C\u8272",clear:"\u6E05\u9664\u80CC\u666F\u8272"},divider:{title:"\u5206\u5272\u7EBF"},emotion:{title:"\u8868\u60C5"},fontSize:{title:"\u5B57\u53F7",default:"\u9ED8\u8BA4\u5B57\u53F7"},fontFamily:{title:"\u5B57\u4F53",default:"\u9ED8\u8BA4\u5B57\u4F53"},fullScreen:{title:"\u5168\u5C4F"},header:{title:"\u6807\u9898",text:"\u6B63\u6587"},image:{netImage:"\u7F51\u7EDC\u56FE\u7247",delete:"\u5220\u9664\u56FE\u7247",edit:"\u7F16\u8F91\u56FE\u7247",viewLink:"\u67E5\u770B\u94FE\u63A5",src:"\u56FE\u7247\u5730\u5740",desc:"\u56FE\u7247\u63CF\u8FF0",link:"\u56FE\u7247\u94FE\u63A5"},indent:{decrease:"\u51CF\u5C11\u7F29\u8FDB",increase:"\u589E\u52A0\u7F29\u8FDB"},justify:{left:"\u5DE6\u5BF9\u9F50",right:"\u53F3\u5BF9\u9F50",center:"\u5C45\u4E2D\u5BF9\u9F50",justify:"\u4E24\u7AEF\u5BF9\u9F50"},lineHeight:{title:"\u884C\u9AD8",default:"\u9ED8\u8BA4\u884C\u9AD8"},link:{insert:"\u63D2\u5165\u94FE\u63A5",text:"\u94FE\u63A5\u6587\u672C",url:"\u94FE\u63A5\u5730\u5740",unLink:"\u53D6\u6D88\u94FE\u63A5",edit:"\u4FEE\u6539\u94FE\u63A5",view:"\u67E5\u770B\u94FE\u63A5"},textStyle:{bold:"\u7C97\u4F53",clear:"\u6E05\u9664\u683C\u5F0F",code:"\u884C\u5185\u4EE3\u7801",italic:"\u659C\u4F53",sub:"\u4E0B\u6807",sup:"\u4E0A\u6807",through:"\u5220\u9664\u7EBF",underline:"\u4E0B\u5212\u7EBF"},undo:{undo:"\u64A4\u9500",redo:"\u91CD\u505A"},todo:{todo:"\u5F85\u529E"}});var $Q={type:"paragraph",renderElem:function(t,e,n){return wt("p",null,e)}},Tg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _g(t){var e={exports:{}};return t(e,e.exports),e.exports}var $i,Pg,jg=function(t){return t&&t.Math==Math&&t},Ot=jg(typeof globalThis=="object"&&globalThis)||jg(typeof window=="object"&&window)||jg(typeof self=="object"&&self)||jg(typeof Tg=="object"&&Tg)||function(){return this}()||Function("return this")(),xe=function(t){try{return!!t()}catch{return!0}},Gr=!xe(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),nd=Function.prototype.call,Te=nd.bind?nd.bind(nd):function(){return nd.apply(nd,arguments)},lF={}.propertyIsEnumerable,cF=Object.getOwnPropertyDescriptor,HQ=cF&&!lF.call({1:2},1)?function(t){var e=cF(this,t);return!!e&&e.enumerable}:lF,fF={f:HQ},q4=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},dF=Function.prototype,K4=dF.bind,X4=dF.call,VQ=K4&&K4.bind(X4),yt=K4?function(t){return t&&VQ(X4,t)}:function(t){return t&&function(){return X4.apply(t,arguments)}},UQ=yt({}.toString),WQ=yt("".slice),Hi=function(t){return WQ(UQ(t),8,-1)},Y4=Ot.Object,GQ=yt("".split),Ig=xe(function(){return!Y4("z").propertyIsEnumerable(0)})?function(t){return Hi(t)=="String"?GQ(t,""):Y4(t)}:Y4,qQ=Ot.TypeError,Cr=function(t){if(t==null)throw qQ("Can't call method on "+t);return t},yl=function(t){return Ig(Cr(t))},mn=function(t){return typeof t=="function"},Sr=function(t){return typeof t=="object"?t!==null:mn(t)},rd=function(t,e){return arguments.length<2?function(n){return mn(n)?n:void 0}(Ot[t]):Ot[t]&&Ot[t][e]},pF=yt({}.isPrototypeOf),J4=rd("navigator","userAgent")||"",hF=Ot.process,gF=Ot.Deno,vF=hF&&hF.versions||gF&&gF.version,mF=vF&&vF.v8;mF&&(Pg=($i=mF.split("."))[0]>0&&$i[0]<4?1:+($i[0]+$i[1])),!Pg&&J4&&(!($i=J4.match(/Edge\/(\d+)/))||$i[1]>=74)&&($i=J4.match(/Chrome\/(\d+)/))&&(Pg=+$i[1]);var Z4=Pg,Q4=!!Object.getOwnPropertySymbols&&!xe(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Z4&&Z4<41}),tE=Q4&&!Symbol.sham&&typeof Symbol.iterator=="symbol",KQ=Ot.Object,eE=tE?function(t){return typeof t=="symbol"}:function(t){var e=rd("Symbol");return mn(e)&&pF(e.prototype,KQ(t))},XQ=Ot.String,yF=function(t){try{return XQ(t)}catch{return"Object"}},YQ=Ot.TypeError,bF=function(t){if(mn(t))return t;throw YQ(yF(t)+" is not a function")},Ng=function(t,e){var n=t[e];return n==null?void 0:bF(n)},JQ=Ot.TypeError,ZQ=Object.defineProperty,nE=function(t,e){try{ZQ(Ot,t,{value:e,configurable:!0,writable:!0})}catch{Ot[t]=e}return e},Vi=Ot["__core-js_shared__"]||nE("__core-js_shared__",{}),rE=_g(function(t){(t.exports=function(e,n){return Vi[e]||(Vi[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),QQ=Ot.Object,od=function(t){return QQ(Cr(t))},ttt=yt({}.hasOwnProperty),Ar=Object.hasOwn||function(t,e){return ttt(od(t),e)},ett=0,ntt=Math.random(),rtt=yt(1 .toString),wF=function(t){return"Symbol("+(t===void 0?"":t)+")_"+rtt(++ett+ntt,36)},id=rE("wks"),Cu=Ot.Symbol,EF=Cu&&Cu.for,ott=tE?Cu:Cu&&Cu.withoutSetter||wF,ar=function(t){if(!Ar(id,t)||!Q4&&typeof id[t]!="string"){var e="Symbol."+t;Q4&&Ar(Cu,t)?id[t]=Cu[t]:id[t]=tE&&EF?EF(e):ott(e)}return id[t]},itt=Ot.TypeError,att=ar("toPrimitive"),oE=function(t){var e=function(n,r){if(!Sr(n)||eE(n))return n;var o,i=Ng(n,att);if(i){if(r===void 0&&(r="default"),o=Te(i,n,r),!Sr(o)||eE(o))return o;throw itt("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&mn(s=a.toString)&&!Sr(l=Te(s,a))||mn(s=a.valueOf)&&!Sr(l=Te(s,a))||u!=="string"&&mn(s=a.toString)&&!Sr(l=Te(s,a)))return l;throw JQ("Can't convert object to primitive value")}(n,r)}(t,"string");return eE(e)?e:e+""},iE=Ot.document,utt=Sr(iE)&&Sr(iE.createElement),aE=function(t){return utt?iE.createElement(t):{}},DF=!Gr&&!xe(function(){return Object.defineProperty(aE("div"),"a",{get:function(){return 7}}).a!=7}),xF=Object.getOwnPropertyDescriptor,uE={f:Gr?xF:function(t,e){if(t=yl(t),e=oE(e),DF)try{return xF(t,e)}catch{}if(Ar(t,e))return q4(!Te(fF.f,t,e),t[e])}},stt=Ot.String,ltt=Ot.TypeError,ur=function(t){if(Sr(t))return t;throw ltt(stt(t)+" is not an object")},ctt=Ot.TypeError,CF=Object.defineProperty,bl={f:Gr?CF:function(t,e,n){if(ur(t),e=oE(e),ur(n),DF)try{return CF(t,e,n)}catch{}if("get"in n||"set"in n)throw ctt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},wl=Gr?function(t,e,n){return bl.f(t,e,q4(1,n))}:function(t,e,n){return t[e]=n,t},ftt=yt(Function.toString);mn(Vi.inspectSource)||(Vi.inspectSource=function(t){return ftt(t)});var Lg,ad,Rg,sE=Vi.inspectSource,SF=Ot.WeakMap,dtt=mn(SF)&&/native code/.test(sE(SF)),AF=rE("keys"),OF=function(t){return AF[t]||(AF[t]=wF(t))},lE={},cE=Ot.TypeError,ptt=Ot.WeakMap;if(dtt||Vi.state){var Su=Vi.state||(Vi.state=new ptt),htt=yt(Su.get),kF=yt(Su.has),gtt=yt(Su.set);Lg=function(t,e){if(kF(Su,t))throw new cE("Object already initialized");return e.facade=t,gtt(Su,t,e),e},ad=function(t){return htt(Su,t)||{}},Rg=function(t){return kF(Su,t)}}else{var El=OF("state");lE[El]=!0,Lg=function(t,e){if(Ar(t,El))throw new cE("Object already initialized");return e.facade=t,wl(t,El,e),e},ad=function(t){return Ar(t,El)?t[El]:{}},Rg=function(t){return Ar(t,El)}}var fE={set:Lg,get:ad,has:Rg,enforce:function(t){return Rg(t)?ad(t):Lg(t,{})},getterFor:function(t){return function(e){var n;if(!Sr(e)||(n=ad(e)).type!==t)throw cE("Incompatible receiver, "+t+" required");return n}}},BF=Function.prototype,vtt=Gr&&Object.getOwnPropertyDescriptor,dE=Ar(BF,"name"),Mg={EXISTS:dE,PROPER:dE&&(function(){}).name==="something",CONFIGURABLE:dE&&(!Gr||Gr&&vtt(BF,"name").configurable)},ud=_g(function(t){var e=Mg.CONFIGURABLE,n=fE.get,r=fE.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;mn(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Ar(u,"name")||e&&u.name!==d)&&wl(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==Ot?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:wl(i,a,u)):f?i[a]=u:nE(a,u)})(Function.prototype,"toString",function(){return mn(this)&&n(this).source||sE(this)})}),mtt=Math.ceil,ytt=Math.floor,Dl=function(t){var e=+t;return e!=e||e===0?0:(e>0?ytt:mtt)(e)},btt=Math.max,wtt=Math.min,sd=function(t,e){var n=Dl(t);return n<0?btt(n+e,0):wtt(n,e)},Ett=Math.min,ld=function(t){return t>0?Ett(Dl(t),9007199254740991):0},zg=function(t){return ld(t.length)},FF=function(t){return function(e,n,r){var o,i=yl(e),a=zg(i),u=sd(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},TF={includes:FF(!0),indexOf:FF(!1)},Dtt=TF.indexOf,_F=yt([].push),PF=function(t,e){var n,r=yl(t),o=0,i=[];for(n in r)!Ar(lE,n)&&Ar(r,n)&&_F(i,n);for(;e.length>o;)Ar(r,n=e[o++])&&(~Dtt(i,n)||_F(i,n));return i},$g=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],xtt=$g.concat("length","prototype"),Ctt={f:Object.getOwnPropertyNames||function(t){return PF(t,xtt)}},jF={f:Object.getOwnPropertySymbols},Stt=yt([].concat),Att=rd("Reflect","ownKeys")||function(t){var e=Ctt.f(ur(t)),n=jF.f;return n?Stt(e,n(t)):e},Ott=function(t,e){for(var n=Att(e),r=bl.f,o=uE.f,i=0;i<n.length;i++){var a=n[i];Ar(t,a)||r(t,a,o(e,a))}},ktt=/#|\.prototype\./,cd=function(t,e){var n=Ftt[Btt(t)];return n==_tt||n!=Ttt&&(mn(e)?xe(e):!!e)},Btt=cd.normalize=function(t){return String(t).replace(ktt,".").toLowerCase()},Ftt=cd.data={},Ttt=cd.NATIVE="N",_tt=cd.POLYFILL="P",Ptt=cd,jtt=uE.f,nn=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?Ot:l?Ot[u]||nE(u,{}):(Ot[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=jtt(n,r))&&a.value:n[r],!Ptt(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;Ott(i,o)}(t.sham||o&&o.sham)&&wl(i,"sham",!0),ud(n,r,i,t)}},IF=yt(yt.bind),Hg=Array.isArray||function(t){return Hi(t)=="Array"},NF={};NF[ar("toStringTag")]="z";var pE=String(NF)==="[object z]",Itt=ar("toStringTag"),Ntt=Ot.Object,Ltt=Hi(function(){return arguments}())=="Arguments",hE=pE?Hi:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=Ntt(t),Itt))=="string"?n:Ltt?Hi(e):(r=Hi(e))=="Object"&&mn(e.callee)?"Arguments":r},LF=function(){},Rtt=[],RF=rd("Reflect","construct"),gE=/^\s*(?:class|function)\b/,Mtt=yt(gE.exec),ztt=!gE.exec(LF),fd=function(t){if(!mn(t))return!1;try{return RF(LF,Rtt,t),!0}catch{return!1}},vE=!RF||xe(function(){var t;return fd(fd.call)||!fd(Object)||!fd(function(){t=!0})||t})?function(t){if(!mn(t))return!1;switch(hE(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return ztt||!!Mtt(gE,sE(t))}:fd,$tt=ar("species"),MF=Ot.Array,Htt=function(t,e){return new(function(n){var r;return Hg(n)&&(r=n.constructor,(vE(r)&&(r===MF||Hg(r.prototype))||Sr(r)&&(r=r[$tt])===null)&&(r=void 0)),r===void 0?MF:r}(t))(e===0?0:e)},zF=yt([].push),Ui=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,g=od(s),v=Ig(g),m=function(D,C){return bF(D),C===void 0?D:IF?IF(D,C):function(){return D.apply(C,arguments)}}(l,c),y=zg(v),h=0,b=f||Htt,w=e?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in v)&&(d=m(p=v[h],h,g),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:zF(w,p)}else switch(t){case 4:return!1;case 7:zF(w,p)}return i?-1:r||o?o:w}},Vg={forEach:Ui(0),map:Ui(1),filter:Ui(2),some:Ui(3),every:Ui(4),find:Ui(5),findIndex:Ui(6),filterReject:Ui(7)},Vtt=ar("species"),mE=function(t){return Z4>=51||!xe(function(){var e=[];return(e.constructor={})[Vtt]=function(){return{foo:1}},e[t](Boolean).foo!==1})},Utt=Vg.filter;nn({target:"Array",proto:!0,forced:!mE("filter")},{filter:function(t){return Utt(this,t,arguments.length>1?arguments[1]:void 0)}});var Wtt=pE?{}.toString:function(){return"[object "+hE(this)+"]"};pE||ud(Object.prototype,"toString",Wtt,{unsafe:!0});var Ug,Gtt=Ot.String,Ce=function(t){if(hE(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Gtt(t)},$F=function(){var t=ur(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},yE=Ot.RegExp,bE=xe(function(){var t=yE("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),qtt=bE||xe(function(){return!yE("a","y").sticky}),HF={BROKEN_CARET:bE||xe(function(){var t=yE("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:qtt,UNSUPPORTED_Y:bE},xl=Object.keys||function(t){return PF(t,$g)},Ktt=Gr?Object.defineProperties:function(t,e){ur(t);for(var n,r=yl(e),o=xl(e),i=o.length,a=0;i>a;)bl.f(t,n=o[a++],r[n]);return t},Xtt=rd("document","documentElement"),VF=OF("IE_PROTO"),wE=function(){},UF=function(t){return"<script>"+t+"<\/script>"},WF=function(t){t.write(UF("")),t.close();var e=t.parentWindow.Object;return t=null,e},Wg=function(){try{Ug=new ActiveXObject("htmlfile")}catch{}var t,e;Wg=typeof document<"u"?document.domain&&Ug?WF(Ug):((e=aE("iframe")).style.display="none",Xtt.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(UF("document.F=Object")),t.close(),t.F):WF(Ug);for(var n=$g.length;n--;)delete Wg.prototype[$g[n]];return Wg()};lE[VF]=!0;var GF,EE,qF=Object.create||function(t,e){var n;return t!==null?(wE.prototype=ur(t),n=new wE,wE.prototype=null,n[VF]=t):n=Wg(),e===void 0?n:Ktt(n,e)},Ytt=Ot.RegExp,Jtt=xe(function(){var t=Ytt(".","s");return!(t.dotAll&&t.exec(`
- `)&&t.flags==="s")}),Ztt=Ot.RegExp,Qtt=xe(function(){var t=Ztt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),tet=fE.get,eet=rE("native-string-replace",String.prototype.replace),Gg=RegExp.prototype.exec,DE=Gg,net=yt("".charAt),ret=yt("".indexOf),oet=yt("".replace),xE=yt("".slice),CE=(EE=/b*/g,Te(Gg,GF=/a/,"a"),Te(Gg,EE,"a"),GF.lastIndex!==0||EE.lastIndex!==0),KF=HF.BROKEN_CARET,SE=/()??/.exec("")[1]!==void 0;(CE||SE||KF||Jtt||Qtt)&&(DE=function(t){var e,n,r,o,i,a,u,s=this,l=tet(s),c=Ce(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Te(DE,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=KF&&s.sticky,g=Te($F,s),v=s.source,m=0,y=c;if(d&&(g=oet(g,"y",""),ret(g,"g")===-1&&(g+="g"),y=xE(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&net(c,s.lastIndex-1)!==`
- `)&&(v="(?: "+v+")",y=" "+y,m++),n=new RegExp("^(?:"+v+")",g)),SE&&(n=new RegExp("^"+v+"$(?!\\s)",g)),CE&&(r=s.lastIndex),o=Te(Gg,d?n:s,y),d?o?(o.input=xE(o.input,m),o[0]=xE(o[0],m),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:CE&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),SE&&o&&o.length>1&&Te(eet,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=qF(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var dd=DE;nn({target:"RegExp",proto:!0,forced:/./.exec!==dd},{exec:dd});var AE=Function.prototype,XF=AE.apply,iet=AE.bind,YF=AE.call,JF=typeof Reflect=="object"&&Reflect.apply||(iet?YF.bind(XF):function(){return YF.apply(XF,arguments)}),aet=ar("species"),OE=RegExp.prototype,kE=function(t,e,n,r){var o=ar(t),i=!xe(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!xe(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[aet]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=yt(/./[o]),s=e(o,""[t],function(l,c,f,p,d){var g=yt(l),v=c.exec;return v===dd||v===OE.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:g(f,c,p)}:{done:!1}});ud(String.prototype,t,s[0]),ud(OE,o,s[1])}r&&wl(OE[o],"sham",!0)},uet=yt("".charAt),ZF=yt("".charCodeAt),set=yt("".slice),cet=function(t){return function(e,n){var r,o,i=Ce(Cr(e)),a=Dl(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=ZF(i,a))<55296||r>56319||a+1===u||(o=ZF(i,a+1))<56320||o>57343?t?uet(i,a):r:t?set(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),BE=function(t,e,n){return e+(n?cet(t,e).length:1)},fet=Math.floor,FE=yt("".charAt),det=yt("".replace),TE=yt("".slice),pet=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,het=/\$([$&'`]|\d{1,2})/g,get=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=het;return o!==void 0&&(o=od(o),s=pet),det(i,s,function(l,c){var f;switch(FE(c,0)){case"$":return"$";case"&":return t;case"`":return TE(e,0,n);case"'":return TE(e,a);case"<":f=o[TE(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=fet(p/10);return d===0?l:d<=u?r[d-1]===void 0?FE(c,1):r[d-1]+FE(c,1):l}f=r[p-1]}return f===void 0?"":f})},vet=Ot.TypeError,pd=function(t,e){var n=t.exec;if(mn(n)){var r=Te(n,t,e);return r!==null&&ur(r),r}if(Hi(t)==="RegExp")return Te(dd,t,e);throw vet("RegExp#exec called on incompatible receiver")},_E=ar("replace"),met=Math.max,yet=Math.min,bet=yt([].concat),PE=yt([].push),QF=yt("".indexOf),tT=yt("".slice),wet="a".replace(/./,"$0")==="$0",eT=!!/./[_E]&&/./[_E]("a","$0")==="";kE("replace",function(t,e,n){var r=eT?"$":"$0";return[function(o,i){var a=Cr(this),u=o==null?void 0:Ng(o,_E);return u?Te(u,o,a,i):Te(e,Ce(a),o,i)},function(o,i){var a=ur(this),u=Ce(o);if(typeof i=="string"&&QF(i,r)===-1&&QF(i,"$<")===-1){var s=n(e,a,u,i);if(s.done)return s.value}var l=mn(i);l||(i=Ce(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var p=[];;){var d=pd(a,u);if(d===null||(PE(p,d),!c))break;Ce(d[0])===""&&(a.lastIndex=BE(u,ld(a.lastIndex),f))}for(var g,v="",m=0,y=0;y<p.length;y++){for(var h=Ce((d=p[y])[0]),b=met(yet(Dl(d.index),u.length),0),w=[],D=1;D<d.length;D++)PE(w,(g=d[D])===void 0?g:String(g));var C=d.groups;if(l){var x=bet([h],w,b,u);C!==void 0&&PE(x,C);var S=Ce(JF(i,void 0,x))}else S=get(h,u,b,w,C,i);b>=m&&(v+=tT(u,m,b)+S,m=b+h.length)}return v+tT(u,m)}]},!!xe(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!wet||eT);var jE=ar("unscopables"),IE=Array.prototype;IE[jE]==null&&bl.f(IE,jE,{configurable:!0,value:qF(null)});var nT=function(t){IE[jE][t]=!0},Eet=Vg.find,rT=!0;"find"in[]&&Array(1).find(function(){rT=!1}),nn({target:"Array",proto:!0,forced:rT},{find:function(t){return Eet(this,t,arguments.length>1?arguments[1]:void 0)}}),nT("find");var Det=ar("match"),oT=function(t){var e;return Sr(t)&&((e=t[Det])!==void 0?!!e:Hi(t)=="RegExp")},xet=Ot.TypeError,Cet=ar("species"),iT=function(t,e,n){var r=oE(e);r in t?bl.f(t,r,q4(0,n)):t[r]=n},Aet=Ot.Array,Oet=Math.max,aT=function(t,e,n){for(var r=zg(t),o=sd(e,r),i=sd(n===void 0?r:n,r),a=Aet(Oet(i-o,0)),u=0;o<i;o++,u++)iT(a,u,t[o]);return a.length=u,a},Cl=HF.UNSUPPORTED_Y,ket=Math.min,uT=[].push,Bet=yt(/./.exec),Sl=yt(uT),hd=yt("".slice);kE("split",function(t,e,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a=Ce(Cr(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[a];if(!oT(o))return Te(e,a,o,u);for(var s,l,c,f=[],p=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),d=0,g=new RegExp(o.source,p+"g");(s=Te(dd,g,a))&&!((l=g.lastIndex)>d&&(Sl(f,hd(a,d,s.index)),s.length>1&&s.index<a.length&&JF(uT,f,aT(s,1)),c=s[0].length,d=l,f.length>=u));)g.lastIndex===s.index&&g.lastIndex++;return d===a.length?!c&&Bet(g,"")||Sl(f,""):Sl(f,hd(a,d)),f.length>u?aT(f,0,u):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Te(e,this,o,i)}:e,[function(o,i){var a=Cr(this),u=o==null?void 0:Ng(o,t);return u?Te(u,o,a,i):Te(r,Ce(a),o,i)},function(o,i){var a=ur(this),u=Ce(o),s=n(r,a,u,i,r!==e);if(s.done)return s.value;var l=function(w,D){var C,x=ur(w).constructor;return x===void 0||(C=ur(x)[Cet])==null?D:function(S){if(vE(S))return S;throw xet(yF(S)+" is not a constructor")}(C)}(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Cl?"g":"y"),p=new l(Cl?"^(?:"+a.source+")":a,f),d=i===void 0?4294967295:i>>>0;if(d===0)return[];if(u.length===0)return pd(p,u)===null?[u]:[];for(var g=0,v=0,m=[];v<u.length;){p.lastIndex=Cl?0:v;var y,h=pd(p,Cl?hd(u,v):u);if(h===null||(y=ket(ld(p.lastIndex+(Cl?v:0)),u.length))===g)v=BE(u,v,c);else{if(Sl(m,hd(u,g,v)),m.length===d)return m;for(var b=1;b<=h.length-1;b++)if(Sl(m,h[b]),m.length===d)return m;v=g=y}}return Sl(m,hd(u,g)),m}]},!!xe(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),Cl);var NE=`
- \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,sT=yt("".replace),qg="["+NE+"]",Fet=RegExp("^"+qg+qg+"*"),Tet=RegExp(qg+qg+"*$"),LE=function(t){return function(e){var n=Ce(Cr(e));return 1&t&&(n=sT(n,Fet,"")),2&t&&(n=sT(n,Tet,"")),n}},_et={start:LE(1),end:LE(2),trim:LE(3)},Pet=Mg.PROPER,jet=_et.trim;function RE(t){return k("<div>"+t+"</div>").children().filter(function(e){return e.tagName!=="BR"}).length===0}function Al(t){return t.length===0?"":t[0].outerHTML}function Ol(t){return t.length?t[0].tagName.toLowerCase():""}function qr(t,e){for(var n="",r=(t.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var u=a.split(":");u[0].trim()===e&&(n=u[1].trim())}}return n}nn({target:"String",proto:!0,forced:xe(function(){return!!NE.trim()||"\u200B\x85\u180E".trim()!=="\u200B\x85\u180E"||Pet&&NE.trim.name!=="trim"})},{trim:function(){return jet(this)}}),nn({global:!0},{globalThis:Ot}),E0&&(k.fn.css=E0),vr&&(k.fn.append=vr),k7&&(k.fn.prepend=k7),_s&&(k.fn.addClass=_s),Ps&&(k.fn.removeClass=Ps),js&&(k.fn.hasClass=js),lo&&(k.fn.on=lo),C7&&(k.fn.off=C7),Si&&(k.fn.focus=Si),gr&&(k.fn.attr=gr),m0&&(k.fn.removeAttr=m0),Ns&&(k.fn.hide=Ns),w0&&(k.fn.show=w0),C0&&(k.fn.parents=C0),Is&&(k.fn.dataset=Is),so&&(k.fn.val=so),x0&&(k.fn.text=x0),Ci&&(k.fn.html=Ci),Ms&&(k.fn.children=Ms),zs&&(k.fn.remove=zs),Rs&&(k.fn.find=Rs),y0&&(k.fn.width=y0),b0&&(k.fn.height=b0),A7&&(k.fn.filter=A7),$s&&(k.fn.empty=$s);var Iet={selector:"p:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=k(t);return(e=e.filter(function(o){return!!ot.isText(o)||!!n.isInline(o)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:e}}},ME=function(t,e){return ME=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},ME(t,e)};function be(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}ME(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var Wi=function(){return Wi=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Wi.apply(this,arguments)};function Gi(t,e,n,r){return new(n||(n=Promise))(function(o,i){function a(l){try{s(r.next(l))}catch(c){i(c)}}function u(l){try{s(r.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof n?c:new n(function(f){f(c)})).then(a,u)}s((r=r.apply(t,e||[])).next())})}function qi(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(s){return function(l){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(c[0]===6&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(f){c=[6,f],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([s,l])}}}function lT(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Wt(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function cT(t){var e=Wt(E.nodes(t,{match:function(i){return t.children[0]===i},mode:"highest"}),1)[0];if(e==null)return!1;var n=e[0];if(!ct.isElement(n)||n.type==="paragraph"||tt.string(n)!=="")return!1;var r=n.children,o=r===void 0?[]:r;return!!ot.isText(o[0])&&(I.setNodes(t,{type:"paragraph"}),!0)}var Net={renderElems:[$Q],elemsToHtml:[{type:"paragraph",elemToHtml:function(t,e){return e===""?"<p><br></p>":"<p>"+e+"</p>"}}],parseElemsHtml:[Iet],editorPlugin:function(t){var e=t.deleteBackward,n=t.deleteForward;t.insertText,t.insertBreak;var r=t;return r.deleteBackward=function(o){cT(r)||e(o)},r.deleteForward=function(o){cT(r)||n(o)},r}},Let=/"/g,Ret=yt("".replace),gd=function(t,e,n,r){var o=Ce(Cr(t)),i="<"+e;return n!==""&&(i+=" "+n+'="'+Ret(Ce(r),Let,""")+'"'),i+">"+o+"</"+e+">"},vd=function(t){return xe(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})};function zE(t,e){var n=e,r=t,o=r.bold,i=r.italic,a=r.underline;return o&&(n="<strong>"+n+"</strong>"),r.code&&(n="<code>"+n+"</code>"),i&&(n="<em>"+n+"</em>"),a&&(n="<u>"+n+"</u>"),r.through&&(n="<s>"+n+"</s>"),r.sub&&(n="<sub>"+n+"</sub>"),r.sup&&(n="<sup>"+n+"</sup>"),n}function Au(t,e){return t.length!==0&&(!!t[0].matches(e)||t.find(e).length>0)}nn({target:"String",proto:!0,forced:vd("bold")},{bold:function(){return gd(this,"b","","")}}),nn({target:"String",proto:!0,forced:vd("italics")},{italics:function(){return gd(this,"i","","")}}),nn({target:"String",proto:!0,forced:vd("sub")},{sub:function(){return gd(this,"sub","","")}}),nn({target:"String",proto:!0,forced:vd("sup")},{sup:function(){return gd(this,"sup","","")}});var fT={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},$E=aE("span").classList,dT=$E&&$E.constructor&&$E.constructor.prototype,Met=dT===Object.prototype?void 0:dT,pT=function(t,e){var n=[][t];return!!n&&xe(function(){n.call(null,e||function(){throw 1},1)})},zet=Vg.forEach,HE=pT("forEach")?[].forEach:function(t){return zet(this,t,arguments.length>1?arguments[1]:void 0)},hT=function(t){if(t&&t.forEach!==HE)try{wl(t,"forEach",HE)}catch{t.forEach=HE}};for(var VE in fT)fT[VE]&&hT(Ot[VE]&&Ot[VE].prototype);function gT(t,e){return t.selection==null||!!Wt(E.nodes(t,{match:function(n){return A.getNodeType(n)==="pre"||!!E.isVoid(t,n)},universal:!0}),1)[0]}function $et(t,e){Object.keys(e).forEach(function(n){n!=="text"&&E.removeMark(t,n)})}hT(Met),nn({target:"Object",stat:!0,forced:xe(function(){xl(1)})},{keys:function(t){return xl(od(t))}});var Ou=function(){function t(){this.marksNeedToRemove=[],this.tag="button"}return t.prototype.getValue=function(e){var n=this.mark,r=E.marks(e);return r?r[n]:!!Wt(E.nodes(e,{match:function(o){return o[n]===!0}}),1)[0]},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){return gT(e,this.mark)},t.prototype.exec=function(e,n){var r=this.mark,o=this.marksNeedToRemove;n?e.removeMark(r):(e.addMark(r,!0),o&&o.forEach(function(i){return e.removeMark(i)}))},t}(),vT='<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>',mT='<svg viewBox="0 0 1024 1024"><path d="M924.402464 1023.068211H0.679665V99.345412h461.861399v98.909208H99.596867v725.896389h725.896389V561.206811h98.909208z" p-id="10909"></path><path d="M930.805104 22.977336l69.965436 69.965436-453.492405 453.492404-69.965435-69.901489z" p-id="10910"></path><path d="M1022.464381 304.030081h-98.917201V99.345412H709.230573V0.428211h313.233808z"></path></svg>',Het=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="bold",n.title=et("textStyle.bold"),n.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M707.872 484.64A254.88 254.88 0 0 0 768 320c0-141.152-114.848-256-256-256H192v896h384c141.152 0 256-114.848 256-256a256.096 256.096 0 0 0-124.128-219.36zM384 192h101.504c55.968 0 101.504 57.408 101.504 128s-45.536 128-101.504 128H384V192z m159.008 640H384v-256h159.008c58.464 0 106.016 57.408 106.016 128s-47.552 128-106.016 128z"></path></svg>',n.hotkey="mod+b",n}return be(e,t),e}(Ou),Vet=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="code",n.title=et("textStyle.code"),n.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M576 736l96 96 320-320L672 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224z"></path></svg>',n.hotkey="mod+e",n}return be(e,t),e}(Ou),Uet=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="italic",n.title=et("textStyle.italic"),n.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',n.hotkey="mod+i",n}return be(e,t),e}(Ou),Wet=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="through",n.title=et("textStyle.through"),n.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M1024 512v64h-234.496c27.52 38.496 42.496 82.688 42.496 128 0 70.88-36.672 139.04-100.576 186.976C672.064 935.488 594.144 960 512 960s-160.064-24.512-219.424-69.024C228.64 843.04 192 774.88 192 704h128c0 69.376 87.936 128 192 128s192-58.624 192-128-87.936-128-192-128H0v-64h299.52a385.984 385.984 0 0 1-6.944-5.024C228.64 459.04 192 390.88 192 320s36.672-139.04 100.576-186.976C351.936 88.512 429.856 64 512 64s160.064 24.512 219.424 69.024C795.328 180.96 832 249.12 832 320h-128c0-69.376-87.936-128-192-128s-192 58.624-192 128 87.936 128 192 128c78.976 0 154.048 22.688 212.48 64H1024z"></path></svg>',n.hotkey="mod+shift+x",n}return be(e,t),e}(Ou),Get=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="underline",n.title=et("textStyle.underline"),n.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 64l128 0 0 416c0 159.072-143.264 288-320 288s-320-128.928-320-288l0-416 128 0 0 416c0 40.16 18.24 78.688 51.36 108.512 36.896 33.216 86.848 51.488 140.64 51.488s103.744-18.304 140.64-51.488c33.12-29.792 51.36-68.352 51.36-108.512l0-416zM192 832l640 0 0 128-640 0z"></path></svg>',n.hotkey="mod+u",n}return be(e,t),e}(Ou),qet=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="sub",n.marksNeedToRemove=["sup"],n.title=et("textStyle.sub"),n.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M768 910.016v50.016h128v64h-192v-146.016l128-60V768h-128v-64h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',n.hotkey="",n}return be(e,t),e}(Ou),Ket=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="sup",n.marksNeedToRemove=["sub"],n.title=et("textStyle.sup"),n.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M768 206.016v50.016h128v64h-192V174.016l128-60V64h-128V0h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',n.hotkey="",n}return be(e,t),e}(Ou),Xet=function(){function t(){this.title=et("textStyle.clear"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return gT(e)},t.prototype.exec=function(e,n){var r,o,i=E.nodes(e,{match:function(s){return ot.isText(s)},universal:!0});try{for(var a=lT(i),u=a.next();!u.done;u=a.next())$et(e,u.value[0])}catch(s){r={error:s}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}},t}(),Yet={renderStyle:function(t,e){var n=t,r=n.bold,o=n.italic,i=n.underline,a=n.code,u=n.through,s=n.sub,l=n.sup,c=e;return r&&(c=wt("strong",null,c)),a&&(c=wt("code",null,c)),o&&(c=wt("em",null,c)),i&&(c=wt("u",null,c)),u&&(c=wt("s",null,c)),s&&(c=wt("sub",null,c)),l&&(c=wt("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new Het}},{key:"underline",factory:function(){return new Get}},{key:"italic",factory:function(){return new Uet}},{key:"through",factory:function(){return new Wet}},{key:"code",factory:function(){return new Vet}},{key:"sub",factory:function(){return new qet}},{key:"sup",factory:function(){return new Ket}},{key:"clearStyle",factory:function(){return new Xet}}],styleToHtml:function(t,e){if(!ot.isText(t))return e;if(RE(e))return zE(t,e);var n=k(e);if(Ol(n)==="br")return zE(t,"<br>");var r=n.html();return r=zE(t,r),n.html(r),Al(n)},parseStyleHtml:function(t,e,n){var r=k(t);if(!ot.isText(e))return e;var o=e;return Au(r,"b,strong")&&(o.bold=!0),Au(r,"i,em")&&(o.italic=!0),Au(r,"u")&&(o.underline=!0),Au(r,"s,strike")&&(o.through=!0),Au(r,"sub")&&(o.sub=!0),Au(r,"sup")&&(o.sup=!0),Au(r,"code")&&(o.code=!0),o}};function md(t){return function(e,n,r){return wt("h"+t,null,n)}}var Jet={type:"header1",renderElem:md(1)},Zet={type:"header2",renderElem:md(2)},Qet={type:"header3",renderElem:md(3)},tnt={type:"header4",renderElem:md(4)},ent={type:"header5",renderElem:md(5)},nnt=Mg.PROPER,UE=RegExp.prototype,yT=UE.toString,rnt=yt($F),ont=xe(function(){return yT.call({source:"a",flags:"b"})!="/a/b"}),int=nnt&&yT.name!="toString";(ont||int)&&ud(RegExp.prototype,"toString",function(){var t=ur(this),e=Ce(t.source),n=t.flags;return"/"+e+"/"+Ce(n===void 0&&pF(UE,t)&&!("flags"in UE)?rnt(t):n)},{unsafe:!0});var WE,ant=Ot.TypeError,bT=function(t){if(oT(t))throw ant("The method doesn't accept regular expressions");return t},unt=ar("match"),wT=function(t){var e=/./;try{"/./"[t](e)}catch{try{return e[unt]=!1,"/./"[t](e)}catch{}}return!1},snt=uE.f,ET=yt("".startsWith),lnt=yt("".slice),cnt=Math.min,DT=wT("startsWith");function xT(t){var e=Wt(E.nodes(t,{match:function(o){return A.getNodeType(o).startsWith("header")},universal:!0}),1),n=e[0];if(n==null)return"paragraph";var r=Wt(n,1)[0];return A.getNodeType(r)}function CT(t){return t.selection==null||!Wt(E.nodes(t,{match:function(e){var n=A.getNodeType(e);return n==="paragraph"||!!n.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function ST(t,e){e&&I.setNodes(t,{type:e})}nn({target:"String",proto:!0,forced:!(!DT&&(WE=snt(String.prototype,"startsWith"),WE&&!WE.writable)||DT)},{startsWith:function(t){var e=Ce(Cr(this));bT(t);var n=ld(cnt(arguments.length>1?arguments[1]:void 0,e.length)),r=Ce(t);return ET?ET(e,r,n):lnt(e,n,n+r.length)===r}});var fnt=function(){function t(){this.title=et("header.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M960 960c-51.2 0-102.4-3.2-153.6-3.2-51.2 0-99.2 3.2-150.4 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 57.6-28.8 86.4-48 19.2-12.8 19.2-60.8 19.2-80v-224-19.2c-9.6-3.2-19.2-3.2-28.8-3.2H320c-9.6 0-19.2 0-28.8 3.2V780.8c0 22.4 0 80 22.4 92.8 28.8 19.2 96-6.4 96 44.8 0 16-9.6 41.6-28.8 41.6-54.4 0-105.6-3.2-160-3.2-48 0-96 3.2-147.2 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 51.2-28.8 80-48 19.2-12.8 19.2-60.8 19.2-83.2V294.4c0-28.8 3.2-115.2-22.4-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z"></path></svg>',this.tag="select",this.width=60}return t.prototype.getOptions=function(e){var n=[{value:"header1",text:"H1",styleForRenderMenuList:{"font-size":"32px","font-weight":"bold"}},{value:"header2",text:"H2",styleForRenderMenuList:{"font-size":"24px","font-weight":"bold"}},{value:"header3",text:"H3",styleForRenderMenuList:{"font-size":"18px","font-weight":"bold"}},{value:"header4",text:"H4",styleForRenderMenuList:{"font-size":"16px","font-weight":"bold"}},{value:"header5",text:"H5",styleForRenderMenuList:{"font-size":"13px","font-weight":"bold"}},{value:"paragraph",text:et("header.text")}],r=this.getValue(e).toString();return n.forEach(function(o){o.value===r?o.selected=!0:delete o.selected}),n},t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){return xT(e)},t.prototype.isDisabled=function(e){return CT(e)},t.prototype.exec=function(e,n){ST(e,n.toString())},t}(),yd=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){return xT(e)},t.prototype.isActive=function(e){return this.getValue(e)===this.type},t.prototype.isDisabled=function(e){return CT(e)},t.prototype.exec=function(e,n){var r=this.type;ST(e,n===r?"paragraph":r)},t}(),dnt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H1",n.type="header1",n}return be(e,t),e}(yd),pnt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H2",n.type="header2",n}return be(e,t),e}(yd),hnt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H3",n.type="header3",n}return be(e,t),e}(yd),gnt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H4",n.type="header4",n}return be(e,t),e}(yd),vnt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H5",n.type="header5",n}return be(e,t),e}(yd),mnt={key:"headerSelect",factory:function(){return new fnt}},ynt={key:"header1",factory:function(){return new dnt}},bnt={key:"header2",factory:function(){return new pnt}},wnt={key:"header3",factory:function(){return new hnt}},Ent={key:"header4",factory:function(){return new gnt}},Dnt={key:"header5",factory:function(){return new vnt}};function bd(t){return function(e,n){return"<h"+t+">"+n+"</h"+t+">"}}function wd(t){return function(e,n,r){var o=k(e);return(n=n.filter(function(i){return!!ot.isText(i)||!!r.isInline(i)})).length===0&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+t,children:n}}}var xnt={renderElems:[Jet,Zet,Qet,tnt,ent],elemsToHtml:[{type:"header1",elemToHtml:bd(1)},{type:"header2",elemToHtml:bd(2)},{type:"header3",elemToHtml:bd(3)},{type:"header4",elemToHtml:bd(4)},{type:"header5",elemToHtml:bd(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:wd(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:wd(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:wd(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:wd(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:wd(5)}],menus:[mnt,ynt,bnt,wnt,Ent,Dnt],editorPlugin:function(t){var e=t.insertBreak;t.insertNode;var n=t;return n.insertBreak=function(){var r=Wt(E.nodes(n,{match:function(o){return A.getNodeType(o).startsWith("header")},universal:!0}),1)[0];r&&A.isSelectionAtLineEnd(t,r[1])?I.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):e()},n}},kl=Object.assign,AT=Object.defineProperty,Cnt=yt([].concat),OT=!kl||xe(function(){if(Gr&&kl({b:1},kl(AT({},"a",{enumerable:!0,get:function(){AT(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(o){e[o]=o}),kl({},t)[n]!=7||xl(kl({},e)).join("")!=r})?function(t,e){for(var n=od(t),r=arguments.length,o=1,i=jF.f,a=fF.f;r>o;)for(var u,s=Ig(arguments[o++]),l=i?Cnt(xl(s),i(s)):xl(s),c=l.length,f=0;c>f;)u=l[f++],Gr&&!Te(a,s,u)||(n[u]=s[u]);return n}:kl;function ku(t,e){t.data==null&&(t.data={});var n=t.data;n.style==null&&(n.style={}),Object.assign(n.style,e)}nn({target:"Object",stat:!0,forced:Object.assign!==OT},{assign:OT});var Snt={selector:"font",preParseHtml:function(t){var e=k(t);if(Ol(e)!=="font")return t;var n=e.attr("color")||"";return n&&(e.removeAttr("color"),e.css("color",n)),e[0]}},kT=function(){function t(){this.tag="button",this.showDropPanel=!0,this.$content=null}return t.prototype.exec=function(e,n){},t.prototype.getValue=function(e){var n=this.mark,r=E.marks(e);return r&&r[n]?r[n]:""},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){return e.selection==null||!!Wt(E.nodes(e,{match:function(n){return A.getNodeType(n)==="pre"||!!E.isVoid(e,n)},universal:!0}),1)[0]},t.prototype.getPanelContentElem=function(e){var n=this.mark;if(this.$content==null){var r=k('<ul class="w-e-panel-content-color"></ul>');r.on("click","li",function(l){var c=l.target;if(c!=null&&(l.preventDefault(),e.selection!=null)){var f=k(c).attr("data-value");f==="0"?E.removeMark(e,n):E.addMark(e,n,f)}}),this.$content=r}var o=this.$content;if(o==null)return document.createElement("ul");o.empty();var i=this.getValue(e),a=e.getMenuConfig(n).colors;(a===void 0?[]:a).forEach(function(l){var c=k('<div class="color-block" data-value="'+l+'"></div>');c.css("background-color",l);var f=k('<li data-value="'+l+'"></li>');i===l&&f.addClass("active"),f.append(c),o.append(f)});var u="";n==="color"&&(u=et("color.default")),n==="bgColor"&&(u=et("color.clear"));var s=k(`
- <li data-value="0" class="clear">
- <svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>
- `+u+`
- </li>
- `);return o.prepend(s),o[0]},t}(),Ant=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=et("color.color"),n.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 864h896v96H64zM360.58 576h302.85l81.53 224h102.16L579.24 64H444.77L176.89 800h102.16l81.53-224zM512 159.96L628.49 480H395.52L512 159.96z"></path></svg>',n.mark="color",n}return be(e,t),e}(kT),Ont=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=et("color.bgColor"),n.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M510.030769 315.076923l84.676923 196.923077h-177.230769l76.8-196.923077h15.753846zM945.230769 157.538462v708.923076c0 43.323077-35.446154 78.769231-78.769231 78.769231H157.538462c-43.323077 0-78.769231-35.446154-78.769231-78.769231V157.538462c0-43.323077 35.446154-78.769231 78.769231-78.769231h708.923076c43.323077 0 78.769231 35.446154 78.769231 78.769231z m-108.307692 643.938461L600.615385 216.615385c-5.907692-11.815385-15.753846-19.692308-29.538462-19.692308h-139.815385c-11.815385 0-23.630769 7.876923-27.56923 19.692308l-216.615385 584.861538c-3.938462 11.815385 3.938462 25.6 17.723077 25.6h80.738462c11.815385 0 23.630769-9.846154 27.56923-21.661538l63.015385-175.261539h263.876923l68.923077 175.261539c3.938462 11.815385 15.753846 21.661538 27.569231 21.661538h80.738461c13.784615 0 23.630769-13.784615 19.692308-25.6z"></path></svg>',n.mark="bgColor",n}return be(e,t),e}(kT),BT=["rgb(0, 0, 0)","rgb(38, 38, 38)","rgb(89, 89, 89)","rgb(140, 140, 140)","rgb(191, 191, 191)","rgb(217, 217, 217)","rgb(233, 233, 233)","rgb(245, 245, 245)","rgb(250, 250, 250)","rgb(255, 255, 255)","rgb(225, 60, 57)","rgb(231, 95, 51)","rgb(235, 144, 58)","rgb(245, 219, 77)","rgb(114, 192, 64)","rgb(89, 191, 192)","rgb(66, 144, 247)","rgb(54, 88, 226)","rgb(106, 57, 201)","rgb(216, 68, 147)","rgb(251, 233, 230)","rgb(252, 237, 225)","rgb(252, 239, 212)","rgb(252, 251, 207)","rgb(231, 246, 213)","rgb(218, 244, 240)","rgb(217, 237, 250)","rgb(224, 232, 250)","rgb(237, 225, 248)","rgb(246, 226, 234)","rgb(255, 163, 158)","rgb(255, 187, 150)","rgb(255, 213, 145)","rgb(255, 251, 143)","rgb(183, 235, 143)","rgb(135, 232, 222)","rgb(145, 213, 255)","rgb(173, 198, 255)","rgb(211, 173, 247)","rgb(255, 173, 210)","rgb(255, 77, 79)","rgb(255, 122, 69)","rgb(255, 169, 64)","rgb(255, 236, 61)","rgb(115, 209, 61)","rgb(54, 207, 201)","rgb(64, 169, 255)","rgb(89, 126, 247)","rgb(146, 84, 222)","rgb(247, 89, 171)","rgb(207, 19, 34)","rgb(212, 56, 13)","rgb(212, 107, 8)","rgb(212, 177, 6)","rgb(56, 158, 13)","rgb(8, 151, 156)","rgb(9, 109, 217)","rgb(29, 57, 196)","rgb(83, 29, 171)","rgb(196, 29, 127)","rgb(130, 0, 20)","rgb(135, 20, 0)","rgb(135, 56, 0)","rgb(97, 71, 0)","rgb(19, 82, 0)","rgb(0, 71, 79)","rgb(0, 58, 140)","rgb(6, 17, 120)","rgb(34, 7, 94)","rgb(120, 6, 80)"],knt={renderStyle:function(t,e){var n=t,r=n.color,o=n.bgColor,i=e;return r&&ku(i,{color:r}),o&&ku(i,{backgroundColor:o}),i},styleToHtml:function(t,e){if(!ot.isText(t))return e;var n,r=t,o=r.color,i=r.bgColor;return o||i?((RE(e)||Ol(n=k(e))!=="span")&&(n=k("<span>"+e+"</span>")),o&&n.css("color",o),i&&n.css("background-color",i),Al(n)):e},preParseHtml:[Snt],parseStyleHtml:function(t,e,n){var r=k(t);if(!ot.isText(e))return e;var o=e,i=qr(r,"color");i&&(o.color=i);var a=qr(r,"background-color");return a||(a=qr(r,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new Ant},config:{colors:BT}},{key:"bgColor",factory:function(){return new Ont},config:{colors:BT}}]},Bnt=/^(?:\w+:)?\/\/(\S+)$/,Fnt=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,Tnt=/^[^\s\.]+\.\S{2,}$/,_nt=TF.includes;function Kg(t){return t===void 0&&(t="r"),t+"-"+j7()}function GE(t){return t.replace(/</g,"<").replace(/>/g,">")}function FT(t,e,n,r){return Gi(this,void 0,void 0,function(){var o,i;return qi(this,function(a){switch(a.label){case 0:return(o=e.getMenuConfig(t).checkLink)?[4,o(n,r)]:[3,2];case 1:if(typeof(i=a.sent())=="string")return e.alert(i,"error"),[2,!1];if(i==null)return[2,!1];a.label=2;case 2:return[2,!0]}})})}function TT(t,e,n){return Gi(this,void 0,void 0,function(){var r;return qi(this,function(o){switch(o.label){case 0:return(r=e.getMenuConfig(t).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}})})}function qE(t){return t.selection==null||!!A.getSelectedElems(t).some(function(e){var n=e.type;return!!t.isVoid(e)||!!["pre","code","link"].includes(n)||void 0})}function KE(t,e){return{type:"link",url:GE(t),children:e?[{text:e}]:[]}}function _T(t,e,n){return Gi(this,void 0,void 0,function(){var r,o,i;return qi(this,function(a){switch(a.label){case 0:return n?(e||(e=n),t.restoreSelection(),qE(t)?[2]:[4,FT("insertLink",t,e,n)]):[2];case 1:return a.sent()?[4,TT("insertLink",t,n)]:[2];case 2:return r=a.sent(),(o=t.selection)==null||(L.isCollapsed(o)?(t.insertText(" "),i=KE(r,e),I.insertNodes(t,i),t.insertFragment([{text:" "}])):E.string(t,o)!==e?(t.deleteFragment(),i=KE(r,e),I.insertNodes(t,i)):(i=KE(r),I.wrapNodes(t,i,{split:!0}),I.collapse(t,{edge:"end"}))),[2]}})})}nn({target:"Array",proto:!0},{includes:function(t){return _nt(this,t,arguments.length>1?arguments[1]:void 0)}}),nT("includes");var Pnt={type:"link",renderElem:function(t,e,n){var r=t,o=r.url,i=r.target;return wt("a",{href:o,target:i===void 0?"_blank":i},e)}},jnt={selector:"a:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=k(t);return(e=e.filter(function(o){return!!ot.isText(o)||!!n.isInline(o)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]),{type:"link",url:r.attr("href")||"",target:r.attr("target")||"",children:e}}};function XE(){return Kg("w-e-insert-link")}var Int=function(){function t(){this.title=et("link.insert"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M440.224 635.776a51.84 51.84 0 0 1-36.768-15.232c-95.136-95.136-95.136-249.92 0-345.056l192-192C641.536 37.408 702.816 12.032 768 12.032s126.432 25.376 172.544 71.456c95.136 95.136 95.136 249.92 0 345.056l-87.776 87.776a51.968 51.968 0 1 1-73.536-73.536l87.776-87.776a140.16 140.16 0 0 0 0-197.984c-26.432-26.432-61.6-40.992-99.008-40.992s-72.544 14.56-99.008 40.992l-192 192a140.16 140.16 0 0 0 0 197.984 51.968 51.968 0 0 1-36.768 88.768z"></path><path d="M256 1012a242.4 242.4 0 0 1-172.544-71.456c-95.136-95.136-95.136-249.92 0-345.056l87.776-87.776a51.968 51.968 0 1 1 73.536 73.536l-87.776 87.776a140.16 140.16 0 0 0 0 197.984c26.432 26.432 61.6 40.992 99.008 40.992s72.544-14.56 99.008-40.992l192-192a140.16 140.16 0 0 0 0-197.984 51.968 51.968 0 1 1 73.536-73.536c95.136 95.136 95.136 249.92 0 345.056l-192 192A242.4 242.4 0 0 1 256 1012z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textInputId=XE(),this.urlInputId=XE(),this.buttonId=XE()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){return qE(e)},t.prototype.getModalPositionNode=function(e){return null},t.prototype.getModalContentElem=function(e){var n=e.selection,r=this,o=r.textInputId,i=r.urlInputId,a=r.buttonId,u=Wt(or(et("link.text"),o),2),s=u[0],l=k(u[1]),c=Wt(or(et("link.url"),i),2),f=c[0],p=k(c[1]),d=Wt(gl(a,et("common.ok")),1)[0];if(this.$content==null){var g=k("<div></div>");g.on("click","#"+a,function(y){y.preventDefault();var h=g.find("#"+o).val(),b=g.find("#"+i).val();_T(e,h,b),e.hidePanelOrModal()}),this.$content=g}var v=this.$content;if(v.empty(),v.append(s),v.append(f),v.append(d),n==null||L.isCollapsed(n))l.val("");else{var m=E.string(e,n);l.val(m)}return p.val(""),setTimeout(function(){l.focus()}),v[0]},t}();function PT(){return Kg("w-e-update-link")}var Nnt=function(){function t(){this.title=et("link.edit"),this.iconSvg=vT,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=PT(),this.buttonId=PT()}return t.prototype.getSelectedLinkElem=function(e){var n=A.getSelectedNodeByType(e,"link");return n??null},t.prototype.getValue=function(e){var n=this.getSelectedLinkElem(e);return n&&n.url||""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedLinkElem(e)==null},t.prototype.getModalPositionNode=function(e){return A.getSelectedNodeByType(e,"link")},t.prototype.getModalContentElem=function(e){var n=this.urlInputId,r=this.buttonId,o=Wt(or(et("link.url"),n),2),i=o[0],a=k(o[1]),u=Wt(gl(r,et("common.ok")),1)[0];if(this.$content==null){var s=k("<div></div>");s.on("click","button",function(f){f.preventDefault(),e.restoreSelection();var p=A.getSelectedNodeByType(e,"link"),d=p?tt.string(p):"",g=s.find("#"+n).val();(function(v,m,y){Gi(this,void 0,void 0,function(){var h,b;return qi(this,function(w){switch(w.label){case 0:return y?[4,FT("editLink",v,m,y)]:[2];case 1:return w.sent()?[4,TT("editLink",v,y)]:[2];case 2:return h=w.sent(),b={url:GE(h)},I.setNodes(v,b,{match:function(D){return A.checkNodeType(D,"link")}}),[2]}})})})(e,d,g),e.hidePanelOrModal()}),this.$content=s}var l=this.$content;l.empty(),l.append(i),l.append(u);var c=this.getValue(e);return a.val(c),setTimeout(function(){a.focus()}),l[0]},t}(),Lnt=function(){function t(){this.title=et("link.unLink"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M608.16328 811.815036c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.347563 89.347564c-118.525421 118.523421-311.38448 118.531421-429.919901 0-118.527421-118.529421-118.527421-311.39048 0-429.917901l89.349564-89.349563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.195613 79.195613c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.349563 89.347564c-56.143726 56.145726-56.143726 147.49928 0 203.645005 56.143726 56.143726 147.49928 56.145726 203.647005 0l89.347564-89.347563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.193613 79.195613z m-113.135447-520.429459c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.347564-89.347564c56.143726-56.149726 147.49928-56.145726 203.647006 0 56.143726 56.145726 56.143726 147.49928 0 203.645006l-89.349564 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.195613 79.195613c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.349564-89.349563c118.529421-118.529421 118.529421-311.38848 0-429.917901-118.531421-118.527421-311.38848-118.527421-429.919901 0l-89.347563 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.193613 79.195613z m469.653707 718.556492l45.253779-45.253779c18.745908-18.745908 18.745908-49.13776 0-67.881669L127.195629 14.062931c-18.745908-18.745908-49.13776-18.745908-67.881669 0L14.058181 59.31871c-18.745908 18.745908-18.745908 49.13776 0 67.881669l882.74169 882.74169c18.745908 18.743908 49.13776 18.743908 67.881669 0z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||A.getSelectedNodeByType(e,"link")==null},t.prototype.exec=function(e,n){this.isDisabled(e)||I.unwrapNodes(e,{match:function(r){return A.checkNodeType(r,"link")}})},t}(),Rnt=function(){function t(){this.title=et("link.view"),this.iconSvg=mT,this.tag="button"}return t.prototype.getSelectedLinkElem=function(e){var n=A.getSelectedNodeByType(e,"link");return n??null},t.prototype.getValue=function(e){var n=this.getSelectedLinkElem(e);return n&&n.url||""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedLinkElem(e)==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){if(!n||typeof n!="string")throw new Error("View link failed, link url is '"+n+"'");window.open(n,"_blank")}},t}(),jT={checkLink:function(t,e){return!0},parseLinkUrl:function(t){return t}},Mnt={renderElems:[Pnt],elemsToHtml:[{type:"link",elemToHtml:function(t,e){var n=t,r=n.url,o=n.target;return'<a href="'+r+'" target="'+(o===void 0?"_blank":o)+'">'+e+"</a>"}}],parseElemsHtml:[jnt],menus:[{key:"insertLink",factory:function(){return new Int},config:jT},{key:"editLink",factory:function(){return new Nnt},config:jT},{key:"unLink",factory:function(){return new Lnt}},{key:"viewLink",factory:function(){return new Rnt}}],editorPlugin:function(t){var e=t.isInline,n=t.insertData,r=t.normalizeNode;t.insertNode,t.insertText;var o=t;return o.isInline=function(i){return i.type==="link"||e(i)},o.insertData=function(i){var a=i.getData("text/plain");if(function(l){if(typeof l!="string")return!1;var c=l.match(Bnt);if(!c)return!1;var f=c[1];return!(!f||!Fnt.test(f)&&!Tnt.test(f))}(a)){if(!qE(o)){var u=o.selection;if(u!=null){var s=E.string(o,u);_T(o,s,a)}}}else n(i)},o.normalizeNode=function(i){var a=Wt(i,2),u=a[0],s=a[1];return A.getNodeType(u)!=="link"?r([u,s]):tt.string(u)===""?I.removeNodes(o,{at:s}):r([u,s])},o}},znt=yt(1 .valueOf),$nt=Ot.RangeError,Hnt=Ot.RangeError,IT=Ot.String,NT=Math.floor,YE=yt(function(t){var e=Ce(Cr(this)),n="",r=Dl(t);if(r<0||r==1/0)throw $nt("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n}),LT=yt("".slice),Ed=yt(1 .toFixed),Bl=function(t,e,n){return e===0?n:e%2==1?Bl(t,e-1,n*t):Bl(t*t,e/2,n)},Fl=function(t,e,n){for(var r=-1,o=n;++r<6;)o+=e*t[r],t[r]=o%1e7,o=NT(o/1e7)},JE=function(t,e){for(var n=6,r=0;--n>=0;)r+=t[n],t[n]=NT(r/e),r=r%e*1e7},RT=function(t){for(var e=6,n="";--e>=0;)if(n!==""||e===0||t[e]!==0){var r=IT(t[e]);n=n===""?r:n+YE("0",7-r.length)+r}return n};function MT(t,e){return"w-e-image-container-"+A.findKey(t,e).id}nn({target:"Number",proto:!0,forced:xe(function(){return Ed(8e-5,3)!=="0.000"||Ed(.9,0)!=="1"||Ed(1.255,2)!=="1.25"||Ed(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!xe(function(){Ed({})})},{toFixed:function(t){var e,n,r,o,i=znt(this),a=Dl(t),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw Hnt("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return IT(i);if(i<0&&(s="-",i=-i),i>1e-21)if(n=(e=function(c){for(var f=0,p=c;p>=4096;)f+=12,p/=4096;for(;p>=2;)f+=1,p/=2;return f}(i*Bl(2,69,1))-69)<0?i*Bl(2,-e,1):i/Bl(2,e,1),n*=4503599627370496,(e=52-e)>0){for(Fl(u,0,n),r=a;r>=7;)Fl(u,1e7,0),r-=7;for(Fl(u,Bl(10,r,1),0),r=e-1;r>=23;)JE(u,1<<23),r-=23;JE(u,1<<r),Fl(u,1,1),JE(u,2),l=RT(u)}else Fl(u,0,n),Fl(u,1<<-e,0),l=RT(u)+YE("0",a);return a>0?s+((o=l.length)<=a?"0."+YE("0",a-o)+l:LT(l,0,o-a)+"."+LT(l,o-a)):s+l}});var Vnt={type:"image",renderElem:function(t,e,n){var r=t,o=r.src,i=r.alt,a=i===void 0?"":i,u=r.href,s=u===void 0?"":u,l=r.style,c=l===void 0?{}:l,f=c.width,p=f===void 0?"":f,d=c.height,g=d===void 0?"":d,v=A.isNodeSelected(n,t),m={};p&&(m.width="100%"),g&&(m.height="100%");var y=wt("img",{style:m,src:o,alt:a,"data-href":s}),h=n.isDisabled();return v&&!h?function(b,w,D,C){var x=k("body"),S=MT(b,w),F=C.width,z=C.height,M=0,R=0,K=0,V=!1,U=null;function W(at){U=function(){var T=k("#"+S);if(T.length===0)throw new Error("Cannot find image container elem");return T}(),M=at;var B=U.find("img");if(B.length===0)throw new Error("Cannot find image elem");R=B.width(),K=B.height(),x.on("mousemove",Z),x.on("mouseup",lt);var O=A.getHoverbar(b);O&&O.hideAndClean()}var Z=nu(function(at){at.preventDefault();var B=at.clientX,O=R+(V?M-B:B-M),T=K*(O/R);U!=null&&(O<=15||T<=15||(U.css("width",O+"px"),U.css("height",T+"px")))},100);function lt(at){if(x.off("mousemove",Z),U!=null){var B=U.width().toFixed(2),O=U.height().toFixed(2),T={style:Wi(Wi({},w.style),{width:B+"px",height:O+"px"})};I.setNodes(b,T,{at:A.findPath(b,w)}),x.off("mouseup",lt)}}var ut={};return F&&(ut.width=F),z&&(ut.height=z),wt("div",{id:S,style:ut,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(at){var B=k(at.target);B.hasClass("w-e-image-dragger")&&(at.preventDefault(),(B.hasClass("left-top")||B.hasClass("left-bottom"))&&(V=!0),W(at.clientX))}}},D,wt("div",{className:"w-e-image-dragger left-top"}),wt("div",{className:"w-e-image-dragger right-top"}),wt("div",{className:"w-e-image-dragger left-bottom"}),wt("div",{className:"w-e-image-dragger right-bottom"}))}(n,t,y,{width:p,height:g}):function(b,w,D,C){var x=C.width,S=C.height,F={};return x&&(F.width=x),S&&(F.height=S),wt("div",{id:MT(b,w),style:F,className:"w-e-image-container"},D)}(n,t,y,{width:p,height:g})}},Unt={selector:"img:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=k(t),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:qr(r,"width"),height:qr(r,"height")},children:[{text:""}]}}};function zT(t,e,n,r,o){return r===void 0&&(r=""),o===void 0&&(o=""),Gi(this,void 0,void 0,function(){var i,a;return qi(this,function(u){switch(u.label){case 0:return(i=e.getMenuConfig(t).checkImage)?[4,i(n,r,o)]:[3,2];case 1:if(typeof(a=u.sent())=="string")return e.alert(a,"error"),[2,!1];if(a==null)return[2,!1];u.label=2;case 2:return[2,!0]}})})}function $T(t,e,n){return Gi(this,void 0,void 0,function(){var r;return qi(this,function(o){switch(o.label){case 0:return(r=e.getMenuConfig(t).parseImageSrc)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}})})}function Bu(t,e,n,r){return n===void 0&&(n=""),r===void 0&&(r=""),Gi(this,void 0,void 0,function(){var o,i,a;return qi(this,function(u){switch(u.label){case 0:return[4,zT("insertImage",t,e,n,r)];case 1:return u.sent()?[4,$T("insertImage",t,e)]:[2];case 2:return o=u.sent(),i={type:"image",src:GE(o),href:r,alt:n,style:{},children:[{text:""}]},t.selection===null&&t.restoreSelection(),A.getSelectedNodeByType(t,"image")&&t.move(1),Xg(t)||(I.insertNodes(t,i),(a=t.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}})})}function Xg(t){var e=t.selection;return e==null||!L.isCollapsed(e)||!!Wt(E.nodes(t,{match:function(n){var r=A.getNodeType(n);return r==="code"||r==="pre"||r==="link"||r==="list-item"||!!r.startsWith("header")||r==="blockquote"||!!E.isVoid(t,n)},universal:!0}),1)[0]}function Yg(){return Kg("w-e-insert-image")}var Wnt=function(){function t(){this.title=et("image.netImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=Yg(),this.altInputId=Yg(),this.hrefInputId=Yg(),this.buttonId=Yg()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){return Xg(e)},t.prototype.getModalPositionNode=function(e){return null},t.prototype.getModalContentElem=function(e){var n=this,r=this,o=r.srcInputId,i=r.altInputId,a=r.hrefInputId,u=r.buttonId,s=Wt(or(et("image.src"),o),2),l=s[0],c=k(s[1]),f=Wt(or(et("image.desc"),i),2),p=f[0],d=k(f[1]),g=Wt(or(et("image.link"),a),2),v=g[0],m=k(g[1]),y=Wt(gl(u,et("common.ok")),1)[0];if(this.$content==null){var h=k("<div></div>");h.on("click","#"+u,function(w){w.preventDefault();var D=h.find("#"+o).val().trim(),C=h.find("#"+i).val().trim(),x=h.find("#"+a).val().trim();n.insertImage(e,D,C,x),e.hidePanelOrModal()}),this.$content=h}var b=this.$content;return b.empty(),b.append(l),b.append(p),b.append(v),b.append(y),c.val(""),d.val(""),m.val(""),setTimeout(function(){c.focus()}),b[0]},t.prototype.insertImage=function(e,n,r,o){r===void 0&&(r=""),o===void 0&&(o=""),n&&(e.restoreSelection(),this.isDisabled(e)||Bu(e,n,r,o))},t}(),Gnt=function(){function t(){this.title=et("image.delete"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||A.getSelectedNodeByType(e,"image")==null},t.prototype.exec=function(e,n){this.isDisabled(e)||I.removeNodes(e,{match:function(r){return A.checkNodeType(r,"image")}})},t}();function Jg(){return Kg("w-e-edit-image")}var qnt=function(){function t(){this.title=et("image.edit"),this.iconSvg=vT,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=Jg(),this.altInputId=Jg(),this.hrefInputId=Jg(),this.buttonId=Jg()}return t.prototype.getValue=function(e){return""},t.prototype.getImageNode=function(e){return A.getSelectedNodeByType(e,"image")},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(e,"image")==null},t.prototype.getModalPositionNode=function(e){return this.getImageNode(e)},t.prototype.getModalContentElem=function(e){var n=this,r=this,o=r.srcInputId,i=r.altInputId,a=r.hrefInputId,u=r.buttonId,s=this.getImageNode(e);if(s==null)throw new Error("Not found selected image node");var l=Wt(or(et("image.src"),o),2),c=l[0],f=k(l[1]),p=Wt(or(et("image.desc"),i),2),d=p[0],g=k(p[1]),v=Wt(or(et("image.link"),a),2),m=v[0],y=k(v[1]),h=Wt(gl(u,et("common.ok")),1)[0];if(this.$content==null){var b=k("<div></div>");b.on("click","#"+u,function(M){M.preventDefault();var R=b.find("#"+o).val(),K=b.find("#"+i).val(),V=b.find("#"+a).val();n.updateImage(e,R,K,V),e.hidePanelOrModal()}),this.$content=b}var w=this.$content;w.empty(),w.append(c),w.append(d),w.append(m),w.append(h);var D=s,C=D.src,x=D.alt,S=x===void 0?"":x,F=D.href,z=F===void 0?"":F;return f.val(C),g.val(S),y.val(z),setTimeout(function(){f.focus()}),w[0]},t.prototype.updateImage=function(e,n,r,o,i){r===void 0&&(r=""),o===void 0&&(o=""),i===void 0&&(i={}),n&&(e.restoreSelection(),this.isDisabled(e)||function(a,u,s,l,c){s===void 0&&(s=""),l===void 0&&(l=""),c===void 0&&(c={}),Gi(this,void 0,void 0,function(){var f,p,d,g,v,m;return qi(this,function(y){switch(y.label){case 0:return[4,zT("editImage",a,u,s,l)];case 1:return y.sent()?[4,$T("editImage",a,u)]:[2];case 2:return f=y.sent(),(p=A.getSelectedNodeByType(a,"image"))==null||(d=p.style,g={src:f,alt:s,href:l,style:Wi(Wi({},d===void 0?{}:d),c)},I.setNodes(a,g,{match:function(h){return A.checkNodeType(h,"image")}}),v=A.getSelectedNodeByType(a,"image"),(m=a.getMenuConfig("editImage").onUpdatedImage)&&m(v)),[2]}})})}(e,n,r,o,i))},t}(),Knt=function(){function t(){this.title=et("image.viewLink"),this.iconSvg=mT,this.tag="button"}return t.prototype.getValue=function(e){var n=A.getSelectedNodeByType(e,"image");return n&&n.href||""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||!this.getValue(e)},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){if(!n||typeof n!="string")throw new Error("View image link failed, image.href is '"+n+"'");window.open(n,"_blank")}},t}(),ZE=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.getSelectedNode=function(e){return A.getSelectedNodeByType(e,"image")},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedNode(e)==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=this.getSelectedNode(e);if(r!=null){var o=A.getHoverbar(e);o&&o.hideAndClean();var i=r.style,a={style:Wi(Wi({},i===void 0?{}:i),{width:this.value,height:""})};I.setNodes(e,a,{match:function(u){return A.checkNodeType(u,"image")}})}}},t}(),Xnt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="30%",n.value="30%",n}return be(e,t),e}(ZE),Ynt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="50%",n.value="50%",n}return be(e,t),e}(ZE),Jnt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="100%",n.value="100%",n}return be(e,t),e}(ZE),HT={onInsertedImage:function(t){},onUpdatedImage:function(t){},checkImage:function(t,e,n){return!0},parseImageSrc:function(t){return t}},Znt={renderElems:[Vnt],elemsToHtml:[{type:"image",elemToHtml:function(t,e){var n=t,r=n.src,o=n.alt,i=o===void 0?"":o,a=n.href,u=a===void 0?"":a,s=n.style,l=s===void 0?{}:s,c=l.width,f=c===void 0?"":c,p=l.height,d=p===void 0?"":p,g="";return f&&(g+="width: "+f+";"),d&&(g+="height: "+d+";"),'<img src="'+r+'" alt="'+i+'" data-href="'+u+'" style="'+g+'"/>'}}],parseElemsHtml:[Unt],menus:[{key:"insertImage",factory:function(){return new Wnt},config:HT},{key:"deleteImage",factory:function(){return new Gnt}},{key:"editImage",factory:function(){return new qnt},config:HT},{key:"viewImageLink",factory:function(){return new Knt}},{key:"imageWidth30",factory:function(){return new Xnt}},{key:"imageWidth50",factory:function(){return new Ynt}},{key:"imageWidth100",factory:function(){return new Jnt}}],editorPlugin:function(t){var e=t.isInline,n=t.isVoid;t.insertNode;var r=t;return r.isInline=function(o){return o.type==="image"||e(o)},r.isVoid=function(o){return o.type==="image"||n(o)},r}},Qnt={type:"todo",renderElem:function(t,e,n){var r=!1;n.isDisabled()&&(r=!0);var o=wt("div",{style:{margin:"5px 0"}},wt("span",{contentEditable:!1,style:{marginRight:"0.5em"}},wt("input",{type:"checkbox",checked:t.checked,disabled:r,on:{change:function(i){var a=A.findPath(n,t),u={checked:i.target.checked};I.setNodes(n,u,{at:a})}}})),wt("span",null,e));return o}},trt=function(){function t(){this.title=et("todo.todo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M278.755556 403.911111l-79.644445 79.644445L455.111111 739.555556l568.888889-568.888889-79.644444-79.644445L455.111111 580.266667l-176.355555-176.355556zM910.222222 910.222222H113.777778V113.777778h568.888889V0H113.777778C51.2 0 0 51.2 0 113.777778v796.444444c0 62.577778 51.2 113.777778 113.777778 113.777778h796.444444c62.577778 0 113.777778-51.2 113.777778-113.777778V455.111111h-113.777778v455.111111z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!!A.getSelectedNodeByType(e,"todo")},t.prototype.isDisabled=function(e){return e.selection==null||!!A.getSelectedElems(e).some(function(n){if(E.isVoid(e,n)&&E.isBlock(e,n))return!0;var r=n.type;return!!["pre","table","list-item"].includes(r)||void 0})},t.prototype.exec=function(e,n){var r=this.isActive(e);I.setNodes(e,{type:r?"paragraph":"todo"})},t}(),ert={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(t,e,n){var r=k(t);(e=e.filter(function(i){return!!ot.isText(i)||!!n.isInline(i)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]);var o=!1;return r.find('input[type="checkbox"]').attr("checked")!=null&&(o=!0),{type:"todo",checked:o,children:e}}},nrt={renderElems:[Qnt],elemsToHtml:[{type:"todo",elemToHtml:function(t,e){return'<div data-w-e-type="todo"><input type="checkbox" disabled '+(t.checked?"checked":"")+">"+e+"</div>"}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(t){var e=k(t).find("li"),n=k('<div data-w-e-type="todo"></div>'),r=e.find("input[type]");return n.append(r),e.children()[0].remove(),n[0].innerHTML=n[0].innerHTML+e[0].innerHTML,n[0]}}],parseElemsHtml:[ert],menus:[{key:"todo",factory:function(){return new trt}}],editorPlugin:function(t){var e=t.deleteBackward,n=t;return n.deleteBackward=function(r){var o=t.selection;if(o&&L.isCollapsed(o)){var i=A.getSelectedNodeByType(t,"todo");if(i&&tt.string(i).length===0)return void I.setNodes(t,{type:"paragraph"},{mode:"highest"})}e(r)},n}},rrt={type:"blockquote",renderElem:function(t,e,n){return wt("blockquote",null,e)}},ort={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=k(t);return(e=e.filter(function(o){return!!ot.isText(o)||!!n.isInline(o)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:e}}},irt=function(){function t(){this.title=et("blockQuote.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!!A.getSelectedNodeByType(e,"blockquote")},t.prototype.isDisabled=function(e){return e.selection==null||!Wt(E.nodes(e,{match:function(n){var r=A.getNodeType(n);return r==="paragraph"||r==="blockquote"},universal:!0,mode:"highest"}),1)[0]},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=this.isActive(e)?"paragraph":"blockquote";I.setNodes(e,{type:r},{mode:"highest"})}},t}(),art={key:"blockquote",factory:function(){return new irt}},urt=yt([].slice),srt=mE("slice"),lrt=ar("species"),QE=Ot.Array,crt=Math.max;nn({target:"Array",proto:!0,forced:!srt},{slice:function(t,e){var n,r,o,i=yl(this),a=zg(i),u=sd(t,a),s=sd(e===void 0?a:e,a);if(Hg(i)&&(n=i.constructor,(vE(n)&&(n===QE||Hg(n.prototype))||Sr(n)&&(n=n[lrt])===null)&&(n=void 0),n===QE||n===void 0))return urt(i,u,s);for(r=new(n===void 0?QE:n)(crt(s-u,0)),o=0;u<s;u++,o++)u in i&&iT(r,o,i[u]);return r.length=o,r}});var frt={renderElems:[rrt],elemsToHtml:[{type:"blockquote",elemToHtml:function(t,e){return"<blockquote>"+e+"</blockquote>"}}],parseElemsHtml:[ort],menus:[art],editorPlugin:function(t){var e=t.insertBreak,n=t.insertText,r=t;return r.insertBreak=function(){var o=r.selection;if(o==null)return e();var i=Wt(E.nodes(t,{match:function(c){return A.checkNodeType(c,"blockquote")},universal:!0}),1)[0];if(!i)return e();var a=i[0],u=A.findPath(t,a),s=E.end(t,u);if(Tt.equals(s,o.focus)){var l=tt.string(a);if(l&&l.slice(-1)===`
- `)return t.deleteBackward("character"),void I.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n(`
- `)},r}},drt=function(){function t(){this.title=et("emotion.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return t.prototype.exec=function(e,n){},t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||!!Wt(E.nodes(e,{match:function(n){return A.getNodeType(n)==="pre"||!!E.isVoid(e,n)},universal:!0}),1)[0]},t.prototype.getPanelContentElem=function(e){if(this.$content==null){var n=k('<ul class="w-e-panel-content-emotion"></ul>');n.on("click","li",function(i){var a=i.target;if(a!=null){i.preventDefault();var u=k(a).text();e.insertText(u)}}),this.$content=n}var r=this.$content;if(r==null)return document.createElement("ul");r.empty();var o=e.getMenuConfig("emotion").emotions;return(o===void 0?[]:o).forEach(function(i){var a=k("<li>"+i+"</li>");r.append(a)}),r[0]},t}(),prt={menus:[{key:"emotion",factory:function(){return new drt},config:{emotions:"\u{1F600} \u{1F603} \u{1F604} \u{1F601} \u{1F606} \u{1F605} \u{1F602} \u{1F923} \u{1F60A} \u{1F607} \u{1F642} \u{1F643} \u{1F609} \u{1F60C} \u{1F60D} \u{1F618} \u{1F617} \u{1F619} \u{1F61A} \u{1F60B} \u{1F61B} \u{1F61D} \u{1F61C} \u{1F913} \u{1F60E} \u{1F60F} \u{1F612} \u{1F61E} \u{1F614} \u{1F61F} \u{1F615} \u{1F641} \u{1F623} \u{1F616} \u{1F62B} \u{1F629} \u{1F622} \u{1F62D} \u{1F624} \u{1F620} \u{1F621} \u{1F633} \u{1F631} \u{1F628} \u{1F917} \u{1F914} \u{1F636} \u{1F611} \u{1F62C} \u{1F644} \u{1F62F} \u{1F634} \u{1F637} \u{1F911} \u{1F608} \u{1F921} \u{1F4A9} \u{1F47B} \u{1F480} \u{1F440} \u{1F463} \u{1F450} \u{1F64C} \u{1F44F} \u{1F91D} \u{1F44D} \u{1F44E} \u{1F44A} \u270A \u{1F91B} \u{1F91C} \u{1F91E} \u270C\uFE0F \u{1F918} \u{1F44C} \u{1F448} \u{1F449} \u{1F446} \u{1F447} \u261D\uFE0F \u270B \u{1F91A} \u{1F590} \u{1F596} \u{1F44B} \u{1F919} \u{1F4AA} \u{1F595} \u270D\uFE0F \u{1F64F}".split(" ")}}]},hrt={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},grt={selector:"font",preParseHtml:function(t){var e=k(t);if(Ol(e)!=="font")return t;var n=e.attr("size")||"";n&&(e.removeAttr("size"),e.css("font-size",hrt[n]));var r=e.attr("face")||"";return r&&(e.removeAttr("face"),e.css("font-family",r)),e[0]}},vrt=yt("".indexOf);nn({target:"String",proto:!0,forced:!wT("includes")},{includes:function(t){return!!~vrt(Ce(Cr(this)),Ce(bT(t)),arguments.length>1?arguments[1]:void 0)}});var Ki,Zg,Qg=function(t){return t&&t.Math==Math&&t},_t=Qg(typeof globalThis=="object"&&globalThis)||Qg(typeof window=="object"&&window)||Qg(typeof self=="object"&&self)||Qg(typeof Tg=="object"&&Tg)||function(){return this}()||Function("return this")(),tD=Function.prototype,VT=tD.apply,mrt=tD.bind,UT=tD.call,WT=typeof Reflect=="object"&&Reflect.apply||(mrt?UT.bind(VT):function(){return UT.apply(VT,arguments)}),GT=Function.prototype,eD=GT.bind,nD=GT.call,yrt=eD&&eD.bind(nD),_e=eD?function(t){return t&&yrt(nD,t)}:function(t){return t&&function(){return nD.apply(t,arguments)}},yn=function(t){return typeof t=="function"},sr=function(t){try{return!!t()}catch{return!0}},Un=!sr(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Dd=Function.prototype.call,Kr=Dd.bind?Dd.bind(Dd):function(){return Dd.apply(Dd,arguments)},qT={}.propertyIsEnumerable,KT=Object.getOwnPropertyDescriptor,brt=KT&&!qT.call({1:2},1)?function(t){var e=KT(this,t);return!!e&&e.enumerable}:qT,rD={f:brt},Fu=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},wrt=_e({}.toString),Ert=_e("".slice),Tu=function(t){return Ert(wrt(t),8,-1)},oD=_t.Object,Drt=_e("".split),XT=sr(function(){return!oD("z").propertyIsEnumerable(0)})?function(t){return Tu(t)=="String"?Drt(t,""):oD(t)}:oD,xrt=_t.TypeError,iD=function(t){if(t==null)throw xrt("Can't call method on "+t);return t},yo=function(t){return XT(iD(t))},Or=function(t){return typeof t=="object"?t!==null:yn(t)},kr={},YT=function(t){return yn(t)?t:void 0},xd=function(t,e){return arguments.length<2?YT(kr[t])||YT(_t[t]):kr[t]&&kr[t][e]||_t[t]&&_t[t][e]},JT=_e({}.isPrototypeOf),aD=xd("navigator","userAgent")||"",ZT=_t.process,QT=_t.Deno,t_=ZT&&ZT.versions||QT&&QT.version,e_=t_&&t_.v8;e_&&(Zg=(Ki=e_.split("."))[0]>0&&Ki[0]<4?1:+(Ki[0]+Ki[1])),!Zg&&aD&&(!(Ki=aD.match(/Edge\/(\d+)/))||Ki[1]>=74)&&(Ki=aD.match(/Chrome\/(\d+)/))&&(Zg=+Ki[1]);var tv=Zg,bo=!!Object.getOwnPropertySymbols&&!sr(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&tv&&tv<41}),uD=bo&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Crt=_t.Object,Tl=uD?function(t){return typeof t=="symbol"}:function(t){var e=xd("Symbol");return yn(e)&&JT(e.prototype,Crt(t))},Srt=_t.String,Art=_t.TypeError,n_=function(t){if(yn(t))return t;throw Art(function(e){try{return Srt(e)}catch{return"Object"}}(t)+" is not a function")},Ort=_t.TypeError,krt=Object.defineProperty,Xi=_t["__core-js_shared__"]||function(t,e){try{krt(_t,t,{value:e,configurable:!0,writable:!0})}catch{_t[t]=e}return e}("__core-js_shared__",{}),_u=_g(function(t){(t.exports=function(e,n){return Xi[e]||(Xi[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),Brt=_t.Object,Cd=function(t){return Brt(iD(t))},Frt=_e({}.hasOwnProperty),Gt=Object.hasOwn||function(t,e){return Frt(Cd(t),e)},Trt=0,_rt=Math.random(),Prt=_e(1 .toString),ev=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Prt(++Trt+_rt,36)},Sd=_u("wks"),Pu=_t.Symbol,r_=Pu&&Pu.for,jrt=uD?Pu:Pu&&Pu.withoutSetter||ev,lr=function(t){if(!Gt(Sd,t)||!bo&&typeof Sd[t]!="string"){var e="Symbol."+t;bo&&Gt(Pu,t)?Sd[t]=Pu[t]:Sd[t]=uD&&r_?r_(e):jrt(e)}return Sd[t]},Irt=_t.TypeError,Nrt=lr("toPrimitive"),_l=function(t){var e=function(n,r){if(!Or(n)||Tl(n))return n;var o,i,a=(o=n[Nrt])==null?void 0:n_(o);if(a){if(r===void 0&&(r="default"),i=Kr(a,n,r),!Or(i)||Tl(i))return i;throw Irt("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(u,s){var l,c;if(s==="string"&&yn(l=u.toString)&&!Or(c=Kr(l,u))||yn(l=u.valueOf)&&!Or(c=Kr(l,u))||s!=="string"&&yn(l=u.toString)&&!Or(c=Kr(l,u)))return c;throw Ort("Can't convert object to primitive value")}(n,r)}(t,"string");return Tl(e)?e:e+""},sD=_t.document,Lrt=Or(sD)&&Or(sD.createElement),o_=function(t){return Lrt?sD.createElement(t):{}},i_=!Un&&!sr(function(){return Object.defineProperty(o_("div"),"a",{get:function(){return 7}}).a!=7}),a_=Object.getOwnPropertyDescriptor,lD={f:Un?a_:function(t,e){if(t=yo(t),e=_l(e),i_)try{return a_(t,e)}catch{}if(Gt(t,e))return Fu(!Kr(rD.f,t,e),t[e])}},Rrt=/#|\.prototype\./,Ad=function(t,e){var n=zrt[Mrt(t)];return n==Hrt||n!=$rt&&(yn(e)?sr(e):!!e)},Mrt=Ad.normalize=function(t){return String(t).replace(Rrt,".").toLowerCase()},zrt=Ad.data={},$rt=Ad.NATIVE="N",Hrt=Ad.POLYFILL="P",Vrt=Ad,u_=_e(_e.bind),s_=function(t,e){return n_(t),e===void 0?t:u_?u_(t,e):function(){return t.apply(e,arguments)}},Urt=_t.String,Wrt=_t.TypeError,ju=function(t){if(Or(t))return t;throw Wrt(Urt(t)+" is not an object")},Grt=_t.TypeError,l_=Object.defineProperty,Iu={f:Un?l_:function(t,e,n){if(ju(t),e=_l(e),ju(n),i_)try{return l_(t,e,n)}catch{}if("get"in n||"set"in n)throw Grt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},wo=Un?function(t,e,n){return Iu.f(t,e,Fu(1,n))}:function(t,e,n){return t[e]=n,t},qrt=lD.f,Krt=function(t){var e=function(n,r,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,o)}return WT(t,this,arguments)};return e.prototype=t.prototype,e},Yi=function(t,e){var n,r,o,i,a,u,s,l,c=t.target,f=t.global,p=t.stat,d=t.proto,g=f?_t:p?_t[c]:(_t[c]||{}).prototype,v=f?kr:kr[c]||wo(kr,c,{})[c],m=v.prototype;for(o in e)n=!Vrt(f?o:c+(p?".":"#")+o,t.forced)&&g&&Gt(g,o),a=v[o],n&&(u=t.noTargetGet?(l=qrt(g,o))&&l.value:g[o]),i=n&&u?u:e[o],n&&typeof a==typeof i||(s=t.bind&&n?s_(i,_t):t.wrap&&n?Krt(i):d&&yn(i)?_e(i):i,(t.sham||i&&i.sham||a&&a.sham)&&wo(s,"sham",!0),wo(v,o,s),d&&(Gt(kr,r=c+"Prototype")||wo(kr,r,{}),wo(kr[r],o,i),t.real&&m&&!m[o]&&wo(m,o,i)))},nv=Array.isArray||function(t){return Tu(t)=="Array"},Xrt=Math.ceil,Yrt=Math.floor,cD=function(t){var e=+t;return e!=e||e===0?0:(e>0?Yrt:Xrt)(e)},Jrt=Math.min,rv=function(t){return(e=t.length)>0?Jrt(cD(e),9007199254740991):0;var e},fD=function(t,e,n){var r=_l(e);r in t?Iu.f(t,r,Fu(0,n)):t[r]=n},c_={};c_[lr("toStringTag")]="z";var dD=String(c_)==="[object z]",Zrt=lr("toStringTag"),Qrt=_t.Object,tot=Tu(function(){return arguments}())=="Arguments",ov=dD?Tu:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=Qrt(t),Zrt))=="string"?n:tot?Tu(e):(r=Tu(e))=="Object"&&yn(e.callee)?"Arguments":r},eot=_e(Function.toString);yn(Xi.inspectSource)||(Xi.inspectSource=function(t){return eot(t)});var f_=Xi.inspectSource,d_=function(){},not=[],p_=xd("Reflect","construct"),pD=/^\s*(?:class|function)\b/,rot=_e(pD.exec),oot=!pD.exec(d_),Od=function(t){if(!yn(t))return!1;try{return p_(d_,not,t),!0}catch{return!1}},iot=!p_||sr(function(){var t;return Od(Od.call)||!Od(Object)||!Od(function(){t=!0})||t})?function(t){if(!yn(t))return!1;switch(ov(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return oot||!!rot(pD,f_(t))}:Od,aot=lr("species"),h_=_t.Array,g_=function(t,e){return new(function(n){var r;return nv(n)&&(r=n.constructor,(iot(r)&&(r===h_||nv(r.prototype))||Or(r)&&(r=r[aot])===null)&&(r=void 0)),r===void 0?h_:r}(t))(e===0?0:e)},uot=lr("species"),v_=lr("isConcatSpreadable"),m_=_t.TypeError,sot=tv>=51||!sr(function(){var t=[];return t[v_]=!1,t.concat()[0]!==t}),lot=tv>=51||!sr(function(){var t=[];return(t.constructor={})[uot]=function(){return{foo:1}},t.concat(Boolean).foo!==1}),cot=function(t){if(!Or(t))return!1;var e=t[v_];return e!==void 0?!!e:nv(t)};Yi({target:"Array",proto:!0,forced:!sot||!lot},{concat:function(t){var e,n,r,o,i,a=Cd(this),u=g_(a,0),s=0;for(e=-1,r=arguments.length;e<r;e++)if(cot(i=e===-1?a:arguments[e])){if(s+(o=rv(i))>9007199254740991)throw m_("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&fD(u,s,i[n])}else{if(s>=9007199254740991)throw m_("Maximum allowed index exceeded");fD(u,s++,i)}return u.length=s,u}});var iv,fot=_t.String,av=function(t){if(ov(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return fot(t)},dot=Math.max,pot=Math.min,hD=function(t,e){var n=cD(t);return n<0?dot(n+e,0):pot(n,e)},y_=function(t){return function(e,n,r){var o,i=yo(e),a=rv(i),u=hD(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},hot={includes:y_(!0),indexOf:y_(!1)},kd={},got=hot.indexOf,b_=_e([].push),w_=function(t,e){var n,r=yo(t),o=0,i=[];for(n in r)!Gt(kd,n)&&Gt(r,n)&&b_(i,n);for(;e.length>o;)Gt(r,n=e[o++])&&(~got(i,n)||b_(i,n));return i},uv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],gD=Object.keys||function(t){return w_(t,uv)},vot=Un?Object.defineProperties:function(t,e){ju(t);for(var n,r=yo(e),o=gD(e),i=o.length,a=0;i>a;)Iu.f(t,n=o[a++],r[n]);return t},mot=xd("document","documentElement"),E_=_u("keys"),sv=function(t){return E_[t]||(E_[t]=ev(t))},D_=sv("IE_PROTO"),vD=function(){},x_=function(t){return"<script>"+t+"<\/script>"},C_=function(t){t.write(x_("")),t.close();var e=t.parentWindow.Object;return t=null,e},lv=function(){try{iv=new ActiveXObject("htmlfile")}catch{}var t,e;lv=typeof document<"u"?document.domain&&iv?C_(iv):((e=o_("iframe")).style.display="none",mot.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(x_("document.F=Object")),t.close(),t.F):C_(iv);for(var n=uv.length;n--;)delete lv.prototype[uv[n]];return lv()};kd[D_]=!0;var cv,Bd,fv,Nu=Object.create||function(t,e){var n;return t!==null?(vD.prototype=ju(t),n=new vD,vD.prototype=null,n[D_]=t):n=lv(),e===void 0?n:vot(n,e)},yot=uv.concat("length","prototype"),S_={f:Object.getOwnPropertyNames||function(t){return w_(t,yot)}},bot=_t.Array,wot=Math.max,A_=S_.f,O_=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],k_={f:function(t){return O_&&Tu(t)=="Window"?function(e){try{return A_(e)}catch{return function(r,o,i){for(var a=rv(r),u=hD(void 0,a),s=hD(a,a),l=bot(wot(s-u,0)),c=0;u<s;u++,c++)fD(l,c,r[u]);return l.length=c,l}(O_)}}(t):A_(yo(t))}},mD={f:Object.getOwnPropertySymbols},Eot=_e([].slice),Pl=function(t,e,n,r){r&&r.enumerable?t[e]=n:wo(t,e,n)},yD={f:lr},Dot=Iu.f,Re=function(t){var e=kr.Symbol||(kr.Symbol={});Gt(e,t)||Dot(e,t,{value:yD.f(t)})},xot=dD?{}.toString:function(){return"[object "+ov(this)+"]"},Cot=Iu.f,B_=lr("toStringTag"),dv=function(t,e,n,r){if(t){var o=n?t:t.prototype;Gt(o,B_)||Cot(o,B_,{configurable:!0,value:e}),r&&!dD&&wo(o,"toString",xot)}},F_=_t.WeakMap,Sot=yn(F_)&&/native code/.test(f_(F_)),bD=_t.TypeError,Aot=_t.WeakMap;if(Sot||Xi.state){var Lu=Xi.state||(Xi.state=new Aot),Oot=_e(Lu.get),T_=_e(Lu.has),kot=_e(Lu.set);cv=function(t,e){if(T_(Lu,t))throw new bD("Object already initialized");return e.facade=t,kot(Lu,t,e),e},Bd=function(t){return Oot(Lu,t)||{}},fv=function(t){return T_(Lu,t)}}else{var jl=sv("state");kd[jl]=!0,cv=function(t,e){if(Gt(t,jl))throw new bD("Object already initialized");return e.facade=t,wo(t,jl,e),e},Bd=function(t){return Gt(t,jl)?t[jl]:{}},fv=function(t){return Gt(t,jl)}}var Il={set:cv,get:Bd,has:fv,enforce:function(t){return fv(t)?Bd(t):cv(t,{})},getterFor:function(t){return function(e){var n;if(!Or(e)||(n=Bd(e)).type!==t)throw bD("Incompatible receiver, "+t+" required");return n}}},__=_e([].push),Ji=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,g=Cd(s),v=XT(g),m=s_(l,c),y=rv(v),h=0,b=f||g_,w=e?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in v)&&(d=m(p=v[h],h,g),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:__(w,p)}else switch(t){case 4:return!1;case 7:__(w,p)}return i?-1:r||o?o:w}},pv=[Ji(0),Ji(1),Ji(2),Ji(3),Ji(4),Ji(5),Ji(6),Ji(7)][0],Wn=sv("hidden"),P_=lr("toPrimitive"),Bot=Il.set,j_=Il.getterFor("Symbol"),Xr=Object.prototype,Zi=_t.Symbol,Qi=Zi&&Zi.prototype,I_=_t.TypeError,wD=_t.QObject,Fd=xd("JSON","stringify"),N_=lD.f,ta=Iu.f,L_=k_.f,Fot=rD.f,R_=_e([].push),Zo=_u("symbols"),Td=_u("op-symbols"),ED=_u("string-to-symbol-registry"),DD=_u("symbol-to-string-registry"),Tot=_u("wks"),xD=!wD||!wD.prototype||!wD.prototype.findChild,CD=Un&&sr(function(){return Nu(ta({},"a",{get:function(){return ta(this,"a",{value:7}).a}})).a!=7})?function(t,e,n){var r=N_(Xr,e);r&&delete Xr[e],ta(t,e,n),r&&t!==Xr&&ta(Xr,e,r)}:ta,SD=function(t,e){var n=Zo[t]=Nu(Qi);return Bot(n,{type:"Symbol",tag:t,description:e}),Un||(n.description=e),n},hv=function(t,e,n){t===Xr&&hv(Td,e,n),ju(t);var r=_l(e);return ju(n),Gt(Zo,r)?(n.enumerable?(Gt(t,Wn)&&t[Wn][r]&&(t[Wn][r]=!1),n=Nu(n,{enumerable:Fu(0,!1)})):(Gt(t,Wn)||ta(t,Wn,Fu(1,{})),t[Wn][r]=!0),CD(t,r,n)):ta(t,r,n)},M_=function(t,e){ju(t);var n=yo(e),r=gD(n).concat(AD(n));return pv(r,function(o){Un&&!Kr(z_,n,o)||hv(t,o,n[o])}),t},z_=function(t){var e=_l(t),n=Kr(Fot,this,e);return!(this===Xr&&Gt(Zo,e)&&!Gt(Td,e))&&(!(n||!Gt(this,e)||!Gt(Zo,e)||Gt(this,Wn)&&this[Wn][e])||n)},$_=function(t,e){var n=yo(t),r=_l(e);if(n!==Xr||!Gt(Zo,r)||Gt(Td,r)){var o=N_(n,r);return!o||!Gt(Zo,r)||Gt(n,Wn)&&n[Wn][r]||(o.enumerable=!0),o}},H_=function(t){var e=L_(yo(t)),n=[];return pv(e,function(r){Gt(Zo,r)||Gt(kd,r)||R_(n,r)}),n},AD=function(t){var e=t===Xr,n=L_(e?Td:yo(t)),r=[];return pv(n,function(o){!Gt(Zo,o)||e&&!Gt(Xr,o)||R_(r,Zo[o])}),r};if(bo||(Qi=(Zi=function(){if(JT(Qi,this))throw I_("Symbol is not a constructor");var t=arguments.length&&arguments[0]!==void 0?av(arguments[0]):void 0,e=ev(t),n=function(r){this===Xr&&Kr(n,Td,r),Gt(this,Wn)&&Gt(this[Wn],e)&&(this[Wn][e]=!1),CD(this,e,Fu(1,r))};return Un&&xD&&CD(Xr,e,{configurable:!0,set:n}),SD(e,t)}).prototype,Pl(Qi,"toString",function(){return j_(this).tag}),Pl(Zi,"withoutSetter",function(t){return SD(ev(t),t)}),rD.f=z_,Iu.f=hv,lD.f=$_,S_.f=k_.f=H_,mD.f=AD,yD.f=function(t){return SD(lr(t),t)},Un&&ta(Qi,"description",{configurable:!0,get:function(){return j_(this).description}})),Yi({global:!0,wrap:!0,forced:!bo,sham:!bo},{Symbol:Zi}),pv(gD(Tot),function(t){Re(t)}),Yi({target:"Symbol",stat:!0,forced:!bo},{for:function(t){var e=av(t);if(Gt(ED,e))return ED[e];var n=Zi(e);return ED[e]=n,DD[n]=e,n},keyFor:function(t){if(!Tl(t))throw I_(t+" is not a symbol");if(Gt(DD,t))return DD[t]},useSetter:function(){xD=!0},useSimple:function(){xD=!1}}),Yi({target:"Object",stat:!0,forced:!bo,sham:!Un},{create:function(t,e){return e===void 0?Nu(t):M_(Nu(t),e)},defineProperty:hv,defineProperties:M_,getOwnPropertyDescriptor:$_}),Yi({target:"Object",stat:!0,forced:!bo},{getOwnPropertyNames:H_,getOwnPropertySymbols:AD}),Yi({target:"Object",stat:!0,forced:sr(function(){mD.f(1)})},{getOwnPropertySymbols:function(t){return mD.f(Cd(t))}}),Fd){var _ot=!bo||sr(function(){var t=Zi();return Fd([t])!="[null]"||Fd({a:t})!="{}"||Fd(Object(t))!="{}"});Yi({target:"JSON",stat:!0,forced:_ot},{stringify:function(t,e,n){var r=Eot(arguments),o=e;if((Or(e)||t!==void 0)&&!Tl(t))return nv(e)||(e=function(i,a){if(yn(o)&&(a=Kr(o,this,i,a)),!Tl(a))return a}),r[1]=e,WT(Fd,null,r)}})}if(!Qi[P_]){var Pot=Qi.valueOf;Pl(Qi,P_,function(t){return Kr(Pot,this)})}dv(Zi,"Symbol"),kd[Wn]=!0,Re("asyncIterator"),Re("hasInstance"),Re("isConcatSpreadable"),Re("iterator"),Re("match"),Re("matchAll"),Re("replace"),Re("search"),Re("species"),Re("split"),Re("toPrimitive"),Re("toStringTag"),Re("unscopables"),dv(_t.JSON,"JSON",!0);var ea,V_,U_,jot=kr.Symbol,Ru={},W_=Function.prototype,Iot=Un&&Object.getOwnPropertyDescriptor,OD=Gt(W_,"name"),Not={EXISTS:OD,PROPER:OD&&(function(){}).name==="something",CONFIGURABLE:OD&&(!Un||Un&&Iot(W_,"name").configurable)},Lot=!sr(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),G_=sv("IE_PROTO"),kD=_t.Object,Rot=kD.prototype,BD=Lot?kD.getPrototypeOf:function(t){var e=Cd(t);if(Gt(e,G_))return e[G_];var n=e.constructor;return yn(n)&&e instanceof n?n.prototype:e instanceof kD?Rot:null},FD=lr("iterator"),q_=!1;[].keys&&("next"in(U_=[].keys())?(V_=BD(BD(U_)))!==Object.prototype&&(ea=V_):q_=!0);var Mot=ea==null||sr(function(){var t={};return ea[FD].call(t)!==t});ea=Mot?{}:Nu(ea),yn(ea[FD])||Pl(ea,FD,function(){return this});var K_={IteratorPrototype:ea,BUGGY_SAFARI_ITERATORS:q_},zot=K_.IteratorPrototype,$ot=function(){return this};_t.String,_t.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var t={};try{_e(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(t,[])}catch{}}();var Hot=Not.PROPER,gv=K_.BUGGY_SAFARI_ITERATORS,TD=lr("iterator"),Vot=function(){return this},X_=function(t,e,n,r,o,i,a){(function(y,h,b,w){var D=h+" Iterator";y.prototype=Nu(zot,{next:Fu(1,b)}),dv(y,D,!1,!0),Ru[D]=$ot})(n,e,r);var u,s,l,c=function(y){if(y===o&&v)return v;if(!gv&&y in d)return d[y];switch(y){case"keys":case"values":case"entries":return function(){return new n(this,y)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,g=d[TD]||d["@@iterator"]||o&&d[o],v=!gv&&g||c(o),m=e=="Array"&&d.entries||g;if(m&&(u=BD(m.call(new t)))!==Object.prototype&&u.next&&(dv(u,f,!0,!0),Ru[f]=Vot),Hot&&o=="values"&&g&&g.name!=="values"&&(p=!0,v=function(){return Kr(g,this)}),o)if(s={values:c("values"),keys:i?v:c("keys"),entries:c("entries")},a)for(l in s)(gv||p||!(l in d))&&Pl(d,l,s[l]);else Yi({target:e,proto:!0,forced:gv||p},s);return a&&d[TD]!==v&&Pl(d,TD,v,{name:o}),Ru[e]=v,s},Uot=Il.set,Wot=Il.getterFor("Array Iterator");X_(Array,"Array",function(t,e){Uot(this,{type:"Array Iterator",target:yo(t),index:0,kind:e})},function(){var t=Wot(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values"),Ru.Arguments=Ru.Array;var Y_=lr("toStringTag");for(var _D in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var J_=_t[_D],PD=J_&&J_.prototype;PD&&ov(PD)!==Y_&&wo(PD,Y_,_D),Ru[_D]=Ru.Array}var Got=jot;Re("asyncDispose"),Re("dispose"),Re("matcher"),Re("metadata"),Re("observable"),Re("patternMatch"),Re("replaceAll");var vv=Got,qot=_e("".charAt),Z_=_e("".charCodeAt),Kot=_e("".slice),Xot=function(t){return function(e,n){var r,o,i=av(iD(e)),a=cD(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=Z_(i,a))<55296||r>56319||a+1===u||(o=Z_(i,a+1))<56320||o>57343?t?qot(i,a):r:t?Kot(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),Yot=Il.set,Jot=Il.getterFor("String Iterator");X_(String,"String",function(t){Yot(this,{type:"String Iterator",string:av(t),index:0})},function(){var t,e=Jot(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=Xot(n,r),e.index+=t.length,{value:t,done:!1})});var Zot=yD.f("iterator"),Qot=_g(function(t){function e(n){return typeof vv=="function"&&typeof Zot=="symbol"?(t.exports=e=function(r){return typeof r},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(r){return r&&typeof vv=="function"&&r.constructor===vv&&r!==vv.prototype?"symbol":typeof r},t.exports.default=t.exports,t.exports.__esModule=!0),e(n)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0}),Q_=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}(Qot),tit=Mg.EXISTS,eit=bl.f,tP=Function.prototype,nit=yt(tP.toString),eP=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,rit=yt(eP.exec);Gr&&!tit&&eit(tP,"name",{configurable:!0,get:function(){try{return rit(eP,nit(this))[1]}catch{return""}}});var nP=function(){function t(){this.tag="select",this.width=80}return t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){var n=this.mark,r=E.marks(e);return r&&r[n]?r[n]:""},t.prototype.isDisabled=function(e){return e.selection==null||(this.mark,!!Wt(E.nodes(e,{match:function(n){return A.getNodeType(n)==="pre"||!!E.isVoid(e,n)},universal:!0}),1)[0])},t.prototype.exec=function(e,n){var r=this.mark;n?e.addMark(r,n):e.removeMark(r)},t}(),oit=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=et("fontSize.title"),n.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',n.mark="fontSize",n}return be(e,t),e.prototype.getOptions=function(n){var r=[],o=n.getMenuConfig(this.mark).fontSizeList,i=o===void 0?[]:o;r.push({text:et("fontSize.default"),value:""}),i.forEach(function(u){if(typeof u=="string")r.push({text:u,value:u});else if(Q_(u)==="object"){var s=u.name,l=u.value;r.push({text:s,value:l})}});var a=this.getValue(n);return r.forEach(function(u){u.value===a?u.selected=!0:delete u.selected}),r},e}(nP),iit=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=et("fontFamily.title"),n.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M956.788364 152.110545h-24.110546l23.924364 9.029819 0.186182 121.018181h-65.070546l-86.574545-130.048H566.551273v650.14691l130.048 64.977454v65.163636h-390.050909v-65.163636l129.954909-64.977454V152.110545H198.283636L111.429818 282.065455H46.545455V69.259636C46.545455 33.792 82.664727 22.062545 98.955636 22.062545h812.683637c23.738182 0 45.056 15.173818 45.056 41.053091V169.425455v-17.221819z"></path></svg>',n.mark="fontFamily",n.selectPanelWidth=150,n}return be(e,t),e.prototype.getOptions=function(n){var r=[],o=n.getMenuConfig(this.mark).fontFamilyList,i=o===void 0?[]:o;r.push({text:et("fontFamily.default"),value:""}),i.forEach(function(u){if(typeof u=="string")r.push({text:u,value:u,styleForRenderMenuList:{"font-family":u}});else if(Q_(u)==="object"){var s=u.name,l=u.value;r.push({text:s,value:l,styleForRenderMenuList:{"font-family":l}})}});var a=this.getValue(n);return r.forEach(function(u){u.value===a?u.selected=!0:delete u.selected}),r},e}(nP),ait={renderStyle:function(t,e){var n=t,r=n.fontSize,o=n.fontFamily,i=e;return r&&ku(i,{fontSize:r}),o&&ku(i,{fontFamily:o}),i},styleToHtml:function(t,e){if(!ot.isText(t))return e;var n,r=t,o=r.fontSize,i=r.fontFamily;return o||i?((RE(e)||Ol(n=k(e))!=="span")&&(n=k("<span>"+e+"</span>")),o&&n.css("font-size",o),i&&n.css("font-family",i),Al(n)):e},preParseHtml:[grt],parseStyleHtml:function(t,e,n){var r=k(t);if(!ot.isText(e))return e;var o=e,i=n.getMenuConfig("fontSize").fontSizeList,a=i===void 0?[]:i,u=qr(r,"font-size"),s=a.find(function(d){return d.value&&d.value===u})||a.includes(u);u&&s&&(o.fontSize=u);var l=n.getMenuConfig("fontFamily").fontFamilyList,c=l===void 0?[]:l,f=qr(r,"font-family").replace(/"/g,""),p=c.find(function(d){return d.value&&d.value===f})||c.includes(f);return f&&p&&(o.fontFamily=f),o},menus:[{key:"fontSize",factory:function(){return new oit},config:{fontSizeList:["12px",{name:"13px",value:"13px"},"14px","15px","16px","19px",{name:"22px",value:"22px"},"24px","29px","32px","40px","48px"]}},{key:"fontFamily",factory:function(){return new iit},config:{fontFamilyList:["\u9ED1\u4F53",{name:"\u4EFF\u5B8B",value:"\u4EFF\u5B8B"},"\u6977\u4F53","\u6807\u6977\u4F53","\u534E\u6587\u4EFF\u5B8B","\u534E\u6587\u6977\u4F53",{name:"\u5B8B\u4F53",value:"\u5B8B\u4F53"},"\u5FAE\u8F6F\u96C5\u9ED1","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},uit={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(t){var e=k(t),n=qr(e,"padding-left");return/\dem/.test(n)&&e.css("text-indent","2em"),/\dpx/.test(n)&&parseInt(n,10)%32==0&&e.css("text-indent","2em"),e[0]}},rP=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){var n=Wt(E.nodes(e,{match:function(o){return!!o.indent},universal:!0}),1),r=n[0];return r==null?"":Wt(r,1)[0].indent||""},t.prototype.isActive=function(e){return!1},t.prototype.getMatchNode=function(e){var n=Wt(E.nodes(e,{match:function(r){var o=A.getNodeType(r);return o==="paragraph"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},t}(),sit=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=et("indent.decrease"),n.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',n}return be(e,t),e.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!r.indent},e.prototype.exec=function(n,r){I.setNodes(n,{indent:null},{match:function(o){return ct.isElement(o)}})},e}(rP),lit=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=et("indent.increase"),n.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',n}return be(e,t),e.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!!r.indent},e.prototype.exec=function(n,r){I.setNodes(n,{indent:"2em"},{match:function(o){return ct.isElement(o)},mode:"highest"})},e}(rP),cit={renderStyle:function(t,e){if(!ct.isElement(t))return e;var n=t.indent,r=e;return n&&ku(r,{textIndent:n}),r},styleToHtml:function(t,e){if(!ct.isElement(t))return e;var n=t.indent;if(!n)return e;var r=k(e);return r.css("text-indent",n),Al(r)},preParseHtml:[uit],parseStyleHtml:function(t,e,n){var r=k(t);if(!ct.isElement(e))return e;var o=e,i=qr(r,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new lit}},{key:"delIndent",factory:function(){return new sit}}]},mv=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.getMatchNode=function(e){var n=Wt(E.nodes(e,{match:function(r){var o=A.getNodeType(r);return o==="paragraph"||o==="blockquote"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},t.prototype.isDisabled=function(e){return e.selection==null||!!A.getSelectedElems(e).some(function(n){if(E.isVoid(e,n)&&E.isBlock(e,n))return!0;var r=n.type;return!!["pre","code"].includes(r)||void 0})},t}(),fit=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=et("justify.left"),n.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',n}return be(e,t),e.prototype.exec=function(n,r){I.setNodes(n,{textAlign:"left"},{match:function(o){return ct.isElement(o)&&!n.isInline(o)}})},e}(mv),dit=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=et("justify.right"),n.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',n}return be(e,t),e.prototype.exec=function(n,r){I.setNodes(n,{textAlign:"right"},{match:function(o){return ct.isElement(o)&&!n.isInline(o)}})},e}(mv),pit=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=et("justify.center"),n.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',n}return be(e,t),e.prototype.exec=function(n,r){I.setNodes(n,{textAlign:"center"},{match:function(o){return ct.isElement(o)&&!n.isInline(o)}})},e}(mv),hit=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=et("justify.justify"),n.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',n}return be(e,t),e.prototype.exec=function(n,r){I.setNodes(n,{textAlign:"justify"},{match:function(o){return ct.isElement(o)&&!n.isInline(o)}})},e}(mv),git={renderStyle:function(t,e){if(!ct.isElement(t))return e;var n=t.textAlign,r=e;return n&&ku(r,{textAlign:n}),r},styleToHtml:function(t,e){if(!ct.isElement(t))return e;var n=t.textAlign;if(!n)return e;var r=k(e);return r.css("text-align",n),Al(r)},parseStyleHtml:function(t,e,n){var r=k(t);if(!ct.isElement(e))return e;var o=e,i=qr(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new fit}},{key:"justifyRight",factory:function(){return new dit}},{key:"justifyCenter",factory:function(){return new pit}},{key:"justifyJustify",factory:function(){return new hit}}]},vit=function(){function t(){this.title=et("lineHeight.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M964 788a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526zM198.93 144.306c6.668-5.798 16.774-5.094 22.573 1.574l122.26 140.582a16 16 0 0 1 3.927 10.5c0 8.836-7.164 16-16 16h-61.8a8 8 0 0 0-8 8v390.077h69.819a16 16 0 0 1 10.502 3.928c6.666 5.8 7.37 15.906 1.57 22.573L221.476 878.123a16 16 0 0 1-1.57 1.57c-6.668 5.8-16.774 5.097-22.574-1.57L75.051 737.538a16 16 0 0 1-3.928-10.5c0-8.837 7.163-16 16-16h69.822V312.96H87.127a16 16 0 0 1-10.502-3.928c-6.666-5.8-7.37-15.906-1.57-22.573l122.303-140.582a16 16 0 0 1 1.572-1.572zM964 465a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z m0-323a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z"></path></svg>',this.tag="select",this.width=80}return t.prototype.getOptions=function(e){var n=[],r=e.getMenuConfig("lineHeight").lineHeightList,o=r===void 0?[]:r;n.push({text:et("lineHeight.default"),value:""}),o.forEach(function(a){n.push({text:a,value:a})});var i=this.getValue(e);return n.forEach(function(a){a.value===i?a.selected=!0:delete a.selected}),n},t.prototype.getMatchNode=function(e){var n=Wt(E.nodes(e,{match:function(r){var o=A.getNodeType(r);return!!o.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(o)},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){var n=this.getMatchNode(e);return n==null?"":ct.isElement(n)&&n.lineHeight||""},t.prototype.isDisabled=function(e){return e.selection==null||this.getMatchNode(e)==null},t.prototype.exec=function(e,n){I.setNodes(e,{lineHeight:n.toString()},{mode:"highest"})},t}(),mit={renderStyle:function(t,e){if(!ct.isElement(t))return e;var n=t.lineHeight,r=e;return n&&ku(r,{lineHeight:n}),r},styleToHtml:function(t,e){if(!ct.isElement(t))return e;var n=t.lineHeight;if(!n)return e;var r=k(e);return r.css("line-height",n),Al(r)},parseStyleHtml:function(t,e,n){var r=k(t);if(!ct.isElement(e))return e;var o=e,i=n.getMenuConfig("lineHeight").lineHeightList,a=i===void 0?[]:i,u=qr(r,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new vit},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},yit=function(){function t(){this.title=et("undo.redo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0.00032 576a510.72 510.72 0 0 0 173.344 384l84.672-96A383.136 383.136 0 0 1 128.00032 576C128.00032 363.936 299.93632 192 512.00032 192c106.048 0 202.048 42.976 271.52 112.48L640.00032 448h384V64l-149.984 149.984A510.272 510.272 0 0 0 512.00032 64C229.21632 64 0.00032 293.216 0.00032 576z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null},t.prototype.exec=function(e,n){typeof e.redo=="function"&&e.redo()},t}(),bit=function(){function t(){this.title=et("undo.undo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 64A510.272 510.272 0 0 0 149.984 213.984L0.032 64v384h384L240.512 304.48A382.784 382.784 0 0 1 512.032 192c212.064 0 384 171.936 384 384 0 114.688-50.304 217.632-130.016 288l84.672 96a510.72 510.72 0 0 0 173.344-384c0-282.784-229.216-512-512-512z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null},t.prototype.exec=function(e,n){typeof e.undo=="function"&&e.undo()},t}(),wit={menus:[{key:"redo",factory:function(){return new yit}},{key:"undo",factory:function(){return new bit}}]},Eit={type:"divider",renderElem:function(t,e,n){return Hs("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:A.isNodeSelected(n,t)?"true":""},style:{},on:{mousedown:function(r){return r.preventDefault()}}},[Hs("hr")])}},Dit=function(){function t(){this.title=et("divider.title"),this.iconSvg='<svg viewBox="0 0 1092 1024"><path d="M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||!!A.getSelectedElems(e).some(function(n){if(e.isVoid(n))return!0;var r=A.getNodeType(n);return r==="table"||r==="pre"||void 0})},t.prototype.exec=function(e,n){I.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},t}(),xit={renderElems:[Eit],elemsToHtml:[{type:"divider",elemToHtml:function(t,e){return"<hr/>"}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(t,e,n){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new Dit}}],editorPlugin:function(t){var e=t.isVoid,n=t.normalizeNode,r=t;return r.isVoid=function(o){return o.type==="divider"||e(o)},r.normalizeNode=function(o){var i=Wt(o,2),a=i[0],u=i[1];if(A.getNodeType(a)!=="divider")return n([a,u]);A.isLastNode(r,a)&&I.insertNodes(r,A.genEmptyParagraph(),{at:[u[0]+1]})},r}},Cit=Vg.map;nn({target:"Array",proto:!0,forced:!mE("map")},{map:function(t){return Cit(this,t,arguments.length>1?arguments[1]:void 0)}});var Sit=yt([].join),Ait=Ig!=Object,Oit=pT("join",",");nn({target:"Array",proto:!0,forced:Ait||!Oit},{join:function(t){return Sit(yl(this),t===void 0?",":t)}});var kit=function(){function t(){this.title=et("codeBlock.title"),this.iconSvg='<svg viewBox="0 0 1280 1024"><path d="M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z"></path></svg>',this.tag="button"}return t.prototype.getSelectCodeElem=function(e){var n=A.getSelectedNodeByType(e,"code");if(n==null)return null;var r=A.getParentNode(e,n);return r==null||A.getNodeType(r)!=="pre"?null:n},t.prototype.getValue=function(e){var n=this.getSelectCodeElem(e);return n==null?"":n.language||""},t.prototype.isActive=function(e){return!!this.getSelectCodeElem(e)},t.prototype.isDisabled=function(e){if(e.selection==null)return!0;var n=A.getSelectedElems(e);return!!n.some(function(r){return e.isVoid(r)})||!n.some(function(r){var o=A.getNodeType(r);if(o==="pre"||o==="paragraph")return!0})},t.prototype.exec=function(e,n){this.isActive(e)?this.changeToPlainText(e):this.changeToCodeBlock(e,n.toString())},t.prototype.changeToPlainText=function(e){var n=this.getSelectCodeElem(e);if(n!=null){var r=tt.string(n);I.removeNodes(e,{mode:"highest"});var o=r.split(`
- `).map(function(i){return{type:"paragraph",children:[{text:i}]}});I.insertNodes(e,o,{mode:"highest"})}},t.prototype.changeToCodeBlock=function(e,n){var r,o,i=[],a=E.nodes(e,{match:function(f){return e.children.includes(f)},universal:!0});try{for(var u=lT(a),s=u.next();!s.done;s=u.next()){var l=Wt(s.value,1)[0];l&&i.push(tt.string(l))}}catch(f){r={error:f}}finally{try{s&&!s.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}I.removeNodes(e,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:n,children:[{text:i.join(`
- `)}]}]};I.insertNodes(e,c,{mode:"highest"})},t}(),Bit={key:"codeBlock",factory:function(){return new kit}};nn({target:"String",proto:!0,forced:vd("anchor")},{anchor:function(t){return gd(this,"a","name",t)}}),kE("match",function(t,e,n){return[function(r){var o=Cr(this),i=r==null?void 0:Ng(r,t);return i?Te(i,r,o):new RegExp(r)[t](Ce(o))},function(r){var o=ur(this),i=Ce(r),a=n(e,o,i);if(a.done)return a.value;if(!o.global)return pd(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=pd(o,i))!==null;){var f=Ce(s[0]);l[c]=f,f===""&&(o.lastIndex=BE(i,ld(o.lastIndex),u)),c++}return c===0?null:l}]});var Fit={type:"pre",renderElem:function(t,e,n){return wt("pre",null,e)}},Tit={type:"code",renderElem:function(t,e,n){return wt("code",null,e)}},_it={selector:"pre:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=k(t);return(e=e.filter(function(o){return A.getNodeType(o)==="code"})).length===0&&(e=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:e.filter(function(o){return A.getNodeType(o)==="code"})}}},Pit={menus:[Bit],editorPlugin:function(t){var e=t.insertBreak,n=t.normalizeNode,r=t.insertData;t.insertNode;var o=t;return o.insertBreak=function(){var i=A.getSelectedNodeByType(o,"code");if(i!=null){var a=function(l,c){var f=c.selection;if(f==null)return"";var p=tt.string(l),d=f.anchor.offset,g=p.slice(0,d).split(`
- `),v=g.length;return v===0?"":g[v-1]}(i,o);if(a){var u=a.match(/^\s+/);if(u!=null&&u[0]!=null){var s=u[0];return void o.insertText(`
- `+s)}}o.insertText(`
- `)}else e()},o.normalizeNode=function(i){var a=Wt(i,2),u=a[0],s=a[1],l=A.getNodeType(u);return l==="code"&&s.length<=1&&I.setNodes(o,{type:"paragraph"},{at:s}),l==="pre"&&(A.isLastNode(o,u)&&I.insertNodes(o,A.genEmptyParagraph(),{at:[s[0]+1]}),A.getNodeType(u.children[0])!=="code"&&(I.unwrapNodes(o),I.setNodes(o,{type:"paragraph"},{mode:"highest"}))),n([u,s])},o.insertData=function(i){if(A.getSelectedNodeByType(o,"code")!=null){var a=i.getData("text/plain");E.insertText(o,a)}else r(i)},o},renderElems:[Fit,Tit],elemsToHtml:[{type:"code",elemToHtml:function(t,e){return"<code>"+e+"</code>"}},{type:"pre",elemToHtml:function(t,e){return"<pre>"+e+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(t){var e=k(t);if(Ol(e)!=="code")return t;var n=e.find("xmp");if(n.length===0)return t;var r=n.text();return n.remove(),e.text(r),e[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(t,e,n){return{type:"code",language:"",children:[{text:k(t)[0].textContent||""}]}}},_it]},jit=function(){function t(){this.title=et("fullScreen.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return e.isFullScreen},t.prototype.isDisabled=function(e){return!1},t.prototype.exec=function(e,n){e.isFullScreen?e.unFullScreen():e.fullScreen()},t}(),Iit={menus:[{key:"fullScreen",factory:function(){return new jit}}]},Nit=function(){function t(){this.title=et("common.enter"),this.iconSvg='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!!L.isExpanded(n)},t.prototype.exec=function(e,n){var r=e.selection;if(r!=null){var o=[r.anchor.path[0]];I.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:o}),e.select(E.start(e,o))}},t}(),Lit=[Yet,knt,ait,cit,git,mit,Znt,xit,prt,Mnt,Pit,frt,xnt,Net,nrt,wit,Iit,{menus:[{key:"enter",factory:function(){return new Nit}}]}];Vn("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),Vn("zh-CN",{listModule:{unOrderedList:"\u65E0\u5E8F\u5217\u8868",orderedList:"\u6709\u5E8F\u5217\u8868"}});var oP=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jD(t){var e={exports:{}};return t(e,e.exports),e.exports}var na,yv,bv=function(t){return t&&t.Math==Math&&t},Et=bv(typeof globalThis=="object"&&globalThis)||bv(typeof window=="object"&&window)||bv(typeof self=="object"&&self)||bv(typeof oP=="object"&&oP)||function(){return this}()||Function("return this")(),iP=Function.prototype,ID=iP.bind,ND=iP.call,Rit=ID&&ID.bind(ND),It=ID?function(t){return t&&Rit(ND,t)}:function(t){return t&&function(){return ND.apply(t,arguments)}},Se=function(t){try{return!!t()}catch{return!0}},Mit=It({}.toString),zit=It("".slice),Qo=function(t){return zit(Mit(t),8,-1)},LD=Et.Object,$it=It("".split),aP=Se(function(){return!LD("z").propertyIsEnumerable(0)})?function(t){return Qo(t)=="String"?$it(t,""):LD(t)}:LD,Hit=Et.TypeError,wv=function(t){if(t==null)throw Hit("Can't call method on "+t);return t},Nl=function(t){return aP(wv(t))},Vit=Object.defineProperty,RD=function(t,e){try{Vit(Et,t,{value:e,configurable:!0,writable:!0})}catch{Et[t]=e}return e},ra=Et["__core-js_shared__"]||RD("__core-js_shared__",{}),MD=jD(function(t){(t.exports=function(e,n){return ra[e]||(ra[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),Uit=Et.Object,_d=function(t){return Uit(wv(t))},Wit=It({}.hasOwnProperty),rn=Object.hasOwn||function(t,e){return Wit(_d(t),e)},Git=0,qit=Math.random(),Kit=It(1 .toString),zD=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Kit(++Git+qit,36)},Ae=function(t){return typeof t=="function"},Pd=function(t,e){return arguments.length<2?function(n){return Ae(n)?n:void 0}(Et[t]):Et[t]&&Et[t][e]},$D=Pd("navigator","userAgent")||"",uP=Et.process,sP=Et.Deno,lP=uP&&uP.versions||sP&&sP.version,cP=lP&&lP.v8;cP&&(yv=(na=cP.split("."))[0]>0&&na[0]<4?1:+(na[0]+na[1])),!yv&&$D&&(!(na=$D.match(/Edge\/(\d+)/))||na[1]>=74)&&(na=$D.match(/Chrome\/(\d+)/))&&(yv=+na[1]);var Ev,HD=yv,VD=!!Object.getOwnPropertySymbols&&!Se(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&HD&&HD<41}),UD=VD&&!Symbol.sham&&typeof Symbol.iterator=="symbol",jd=MD("wks"),Mu=Et.Symbol,fP=Mu&&Mu.for,Xit=UD?Mu:Mu&&Mu.withoutSetter||zD,bn=function(t){if(!rn(jd,t)||!VD&&typeof jd[t]!="string"){var e="Symbol."+t;VD&&rn(Mu,t)?jd[t]=Mu[t]:jd[t]=UD&&fP?fP(e):Xit(e)}return jd[t]},Oe=function(t){return typeof t=="object"?t!==null:Ae(t)},Yit=Et.String,Jit=Et.TypeError,Gn=function(t){if(Oe(t))return t;throw Jit(Yit(t)+" is not an object")},oa=!Se(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),WD=Et.document,Zit=Oe(WD)&&Oe(WD.createElement),GD=function(t){return Zit?WD.createElement(t):{}},dP=!oa&&!Se(function(){return Object.defineProperty(GD("div"),"a",{get:function(){return 7}}).a!=7}),Id=Function.prototype.call,on=Id.bind?Id.bind(Id):function(){return Id.apply(Id,arguments)},Dv=It({}.isPrototypeOf),Qit=Et.Object,qD=UD?function(t){return typeof t=="symbol"}:function(t){var e=Pd("Symbol");return Ae(e)&&Dv(e.prototype,Qit(t))},tat=Et.String,KD=function(t){try{return tat(t)}catch{return"Object"}},eat=Et.TypeError,XD=function(t){if(Ae(t))return t;throw eat(KD(t)+" is not a function")},Nd=function(t,e){var n=t[e];return n==null?void 0:XD(n)},nat=Et.TypeError,rat=Et.TypeError,oat=bn("toPrimitive"),YD=function(t){var e=function(n,r){if(!Oe(n)||qD(n))return n;var o,i=Nd(n,oat);if(i){if(r===void 0&&(r="default"),o=on(i,n,r),!Oe(o)||qD(o))return o;throw rat("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&Ae(s=a.toString)&&!Oe(l=on(s,a))||Ae(s=a.valueOf)&&!Oe(l=on(s,a))||u!=="string"&&Ae(s=a.toString)&&!Oe(l=on(s,a)))return l;throw nat("Can't convert object to primitive value")}(n,r)}(t,"string");return qD(e)?e:e+""},iat=Et.TypeError,pP=Object.defineProperty,zu={f:oa?pP:function(t,e,n){if(Gn(t),e=YD(e),Gn(n),dP)try{return pP(t,e,n)}catch{}if("get"in n||"set"in n)throw iat("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},aat=Math.ceil,uat=Math.floor,Ld=function(t){var e=+t;return e!=e||e===0?0:(e>0?uat:aat)(e)},sat=Math.max,lat=Math.min,JD=function(t,e){var n=Ld(t);return n<0?sat(n+e,0):lat(n,e)},cat=Math.min,hP=function(t){return t>0?cat(Ld(t),9007199254740991):0},Ll=function(t){return hP(t.length)},gP=function(t){return function(e,n,r){var o,i=Nl(e),a=Ll(i),u=JD(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},vP={includes:gP(!0),indexOf:gP(!1)},xv={},fat=vP.indexOf,mP=It([].push),yP=function(t,e){var n,r=Nl(t),o=0,i=[];for(n in r)!rn(xv,n)&&rn(r,n)&&mP(i,n);for(;e.length>o;)rn(r,n=e[o++])&&(~fat(i,n)||mP(i,n));return i},Cv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],dat=Object.keys||function(t){return yP(t,Cv)},pat=oa?Object.defineProperties:function(t,e){Gn(t);for(var n,r=Nl(e),o=dat(e),i=o.length,a=0;i>a;)zu.f(t,n=o[a++],r[n]);return t},hat=Pd("document","documentElement"),bP=MD("keys"),ZD=function(t){return bP[t]||(bP[t]=zD(t))},wP=ZD("IE_PROTO"),QD=function(){},EP=function(t){return"<script>"+t+"<\/script>"},DP=function(t){t.write(EP("")),t.close();var e=t.parentWindow.Object;return t=null,e},Sv=function(){try{Ev=new ActiveXObject("htmlfile")}catch{}var t,e;Sv=typeof document<"u"?document.domain&&Ev?DP(Ev):((e=GD("iframe")).style.display="none",hat.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(EP("document.F=Object")),t.close(),t.F):DP(Ev);for(var n=Cv.length;n--;)delete Sv.prototype[Cv[n]];return Sv()};xv[wP]=!0;var t3=Object.create||function(t,e){var n;return t!==null?(QD.prototype=Gn(t),n=new QD,QD.prototype=null,n[wP]=t):n=Sv(),e===void 0?n:pat(n,e)},e3=bn("unscopables"),n3=Array.prototype;n3[e3]==null&&zu.f(n3,e3,{configurable:!0,value:t3(null)});var Rd=function(t){n3[e3][t]=!0},Rl={},gat=It(Function.toString);Ae(ra.inspectSource)||(ra.inspectSource=function(t){return gat(t)});var Av,Md,Ov,r3=ra.inspectSource,xP=Et.WeakMap,CP=Ae(xP)&&/native code/.test(r3(xP)),kv=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},ia=oa?function(t,e,n){return zu.f(t,e,kv(1,n))}:function(t,e,n){return t[e]=n,t},o3=Et.TypeError,vat=Et.WeakMap;if(CP||ra.state){var $u=ra.state||(ra.state=new vat),mat=It($u.get),SP=It($u.has),yat=It($u.set);Av=function(t,e){if(SP($u,t))throw new o3("Object already initialized");return e.facade=t,yat($u,t,e),e},Md=function(t){return mat($u,t)||{}},Ov=function(t){return SP($u,t)}}else{var Ml=ZD("state");xv[Ml]=!0,Av=function(t,e){if(rn(t,Ml))throw new o3("Object already initialized");return e.facade=t,ia(t,Ml,e),e},Md=function(t){return rn(t,Ml)?t[Ml]:{}},Ov=function(t){return rn(t,Ml)}}var Hu,AP,OP,Eo={set:Av,get:Md,has:Ov,enforce:function(t){return Ov(t)?Md(t):Av(t,{})},getterFor:function(t){return function(e){var n;if(!Oe(e)||(n=Md(e)).type!==t)throw o3("Incompatible receiver, "+t+" required");return n}}},kP={}.propertyIsEnumerable,BP=Object.getOwnPropertyDescriptor,bat={f:BP&&!kP.call({1:2},1)?function(t){var e=BP(this,t);return!!e&&e.enumerable}:kP},FP=Object.getOwnPropertyDescriptor,TP={f:oa?FP:function(t,e){if(t=Nl(t),e=YD(e),dP)try{return FP(t,e)}catch{}if(rn(t,e))return kv(!on(bat.f,t,e),t[e])}},_P=Function.prototype,wat=oa&&Object.getOwnPropertyDescriptor,i3=rn(_P,"name"),a3={EXISTS:i3,PROPER:i3&&(function(){}).name==="something",CONFIGURABLE:i3&&(!oa||oa&&wat(_P,"name").configurable)},Do=jD(function(t){var e=a3.CONFIGURABLE,n=Eo.get,r=Eo.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;Ae(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!rn(u,"name")||e&&u.name!==d)&&ia(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==Et?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:ia(i,a,u)):f?i[a]=u:RD(a,u)})(Function.prototype,"toString",function(){return Ae(this)&&n(this).source||r3(this)})}),Eat=Cv.concat("length","prototype"),Bv={f:Object.getOwnPropertyNames||function(t){return yP(t,Eat)}},Dat={f:Object.getOwnPropertySymbols},xat=It([].concat),Cat=Pd("Reflect","ownKeys")||function(t){var e=Bv.f(Gn(t)),n=Dat.f;return n?xat(e,n(t)):e},Sat=function(t,e){for(var n=Cat(e),r=zu.f,o=TP.f,i=0;i<n.length;i++){var a=n[i];rn(t,a)||r(t,a,o(e,a))}},Aat=/#|\.prototype\./,zd=function(t,e){var n=kat[Oat(t)];return n==Fat||n!=Bat&&(Ae(e)?Se(e):!!e)},Oat=zd.normalize=function(t){return String(t).replace(Aat,".").toLowerCase()},kat=zd.data={},Bat=zd.NATIVE="N",Fat=zd.POLYFILL="P",u3=zd,Tat=TP.f,aa=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?Et:l?Et[u]||RD(u,{}):(Et[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=Tat(n,r))&&a.value:n[r],!u3(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;Sat(i,o)}(t.sham||o&&o.sham)&&ia(i,"sham",!0),Do(n,r,i,t)}},_at=!Se(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),PP=ZD("IE_PROTO"),s3=Et.Object,Pat=s3.prototype,Fv=_at?s3.getPrototypeOf:function(t){var e=_d(t);if(rn(e,PP))return e[PP];var n=e.constructor;return Ae(n)&&e instanceof n?n.prototype:e instanceof s3?Pat:null},l3=bn("iterator"),jP=!1;[].keys&&("next"in(OP=[].keys())?(AP=Fv(Fv(OP)))!==Object.prototype&&(Hu=AP):jP=!0);var jat=Hu==null||Se(function(){var t={};return Hu[l3].call(t)!==t});jat&&(Hu={}),Ae(Hu[l3])||Do(Hu,l3,function(){return this});var c3={IteratorPrototype:Hu,BUGGY_SAFARI_ITERATORS:jP},Iat=zu.f,IP=bn("toStringTag"),f3=function(t,e,n){t&&!rn(t=n?t:t.prototype,IP)&&Iat(t,IP,{configurable:!0,value:e})},Nat=c3.IteratorPrototype,Lat=function(){return this},Rat=Et.String,Mat=Et.TypeError,Tv=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=It(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch{}return function(r,o){return Gn(r),function(i){if(typeof i=="object"||Ae(i))return i;throw Mat("Can't set "+Rat(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),zat=a3.PROPER,$at=a3.CONFIGURABLE,NP=c3.IteratorPrototype,_v=c3.BUGGY_SAFARI_ITERATORS,$d=bn("iterator"),Hat=function(){return this},LP=function(t,e,n,r,o,i,a){(function(y,h,b,w){var D=h+" Iterator";y.prototype=t3(Nat,{next:kv(1,b)}),f3(y,D,!1),Rl[D]=Lat})(n,e,r);var u,s,l,c=function(y){if(y===o&&v)return v;if(!_v&&y in d)return d[y];switch(y){case"keys":case"values":case"entries":return function(){return new n(this,y)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,g=d[$d]||d["@@iterator"]||o&&d[o],v=!_v&&g||c(o),m=e=="Array"&&d.entries||g;if(m&&(u=Fv(m.call(new t)))!==Object.prototype&&u.next&&(Fv(u)!==NP&&(Tv?Tv(u,NP):Ae(u[$d])||Do(u,$d,Hat)),f3(u,f,!0)),zat&&o=="values"&&g&&g.name!=="values"&&($at?ia(d,"name","values"):(p=!0,v=function(){return on(g,this)})),o)if(s={values:c("values"),keys:i?v:c("keys"),entries:c("entries")},a)for(l in s)(_v||p||!(l in d))&&Do(d,l,s[l]);else aa({target:e,proto:!0,forced:_v||p},s);return d[$d]!==v&&Do(d,$d,v,{name:o}),Rl[e]=v,s},Vat=Eo.set,Uat=Eo.getterFor("Array Iterator"),Hd=LP(Array,"Array",function(t,e){Vat(this,{type:"Array Iterator",target:Nl(t),index:0,kind:e})},function(){var t=Uat(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");Rl.Arguments=Rl.Array,Rd("keys"),Rd("values"),Rd("entries");var RP={};RP[bn("toStringTag")]="z";var d3=String(RP)==="[object z]",Wat=bn("toStringTag"),Gat=Et.Object,qat=Qo(function(){return arguments}())=="Arguments",Pv=d3?Qo:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=Gat(t),Wat))=="string"?n:qat?Qo(e):(r=Qo(e))=="Object"&&Ae(e.callee)?"Arguments":r},Kat=d3?{}.toString:function(){return"[object "+Pv(this)+"]"};d3||Do(Object.prototype,"toString",Kat,{unsafe:!0});var Xat=Et.String,ti=function(t){if(Pv(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Xat(t)},Yat=It("".charAt),MP=It("".charCodeAt),Jat=It("".slice),zP=function(t){return function(e,n){var r,o,i=ti(wv(e)),a=Ld(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=MP(i,a))<55296||r>56319||a+1===u||(o=MP(i,a+1))<56320||o>57343?t?Yat(i,a):r:t?Jat(i,a,a+2):o-56320+(r-55296<<10)+65536}},$P={codeAt:zP(!1),charAt:zP(!0)},Zat=$P.charAt,Qat=Eo.set,tut=Eo.getterFor("String Iterator");LP(String,"String",function(t){Qat(this,{type:"String Iterator",string:ti(t),index:0})},function(){var t,e=tut(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=Zat(n,r),e.index+=t.length,{value:t,done:!1})});var p3=function(t,e,n){for(var r in e)Do(t,r,e[r],n);return t},eut=Et.Array,nut=Math.max,HP=Bv.f,VP=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],rut={f:function(t){return VP&&Qo(t)=="Window"?function(e){try{return HP(e)}catch{return function(r,o,i){for(var a,u,s,l,c=Ll(r),f=JD(void 0,c),p=JD(c,c),d=eut(nut(p-f,0)),g=0;f<p;f++,g++)a=d,u=g,s=r[f],(l=YD(u))in a?zu.f(a,l,kv(0,s)):a[l]=s;return d.length=g,d}(VP)}}(t):HP(Nl(t))}},UP=Se(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),jv=Object.isExtensible,Vu=Se(function(){jv(1)})||UP?function(t){return!!Oe(t)&&(!UP||Qo(t)!="ArrayBuffer")&&(!jv||jv(t))}:jv,out=!Se(function(){return Object.isExtensible(Object.preventExtensions({}))}),h3=jD(function(t){var e=zu.f,n=!1,r=zD("meta"),o=0,i=function(u){e(u,r,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},n=!0;var u=Bv.f,s=It([].splice),l={};l[r]=1,u(l).length&&(Bv.f=function(c){for(var f=u(c),p=0,d=f.length;p<d;p++)if(f[p]===r){s(f,p,1);break}return f},aa({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:rut.f}))},fastKey:function(u,s){if(!Oe(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!rn(u,r)){if(!Vu(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!rn(u,r)){if(!Vu(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return out&&n&&Vu(u)&&!rn(u,r)&&i(u),u}};xv[r]=!0}),WP=It(It.bind),g3=function(t,e){return XD(t),e===void 0?t:WP?WP(t,e):function(){return t.apply(e,arguments)}},iut=bn("iterator"),aut=Array.prototype,uut=bn("iterator"),GP=function(t){if(t!=null)return Nd(t,uut)||Nd(t,"@@iterator")||Rl[Pv(t)]},sut=Et.TypeError,qP=function(t,e,n){var r,o;Gn(t);try{if(!(r=Nd(t,"return"))){if(e==="throw")throw n;return n}r=on(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return Gn(r),n},lut=Et.TypeError,Iv=function(t,e){this.stopped=t,this.result=e},KP=Iv.prototype,XP=function(t,e,n){var r,o,i,a,u,s,l,c,f=n&&n.that,p=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),g=!(!n||!n.INTERRUPTED),v=g3(e,f),m=function(h){return r&&qP(r,"normal",h),new Iv(!0,h)},y=function(h){return p?(Gn(h),g?v(h[0],h[1],m):v(h[0],h[1])):g?v(h,m):v(h)};if(d)r=t;else{if(!(o=GP(t)))throw lut(KD(t)+" is not iterable");if((c=o)!==void 0&&(Rl.Array===c||aut[iut]===c)){for(i=0,a=Ll(t);a>i;i++)if((u=y(t[i]))&&Dv(KP,u))return u;return new Iv(!1)}r=function(h,b){var w=arguments.length<2?GP(h):b;if(XD(w))return Gn(on(w,h));throw sut(KD(h)+" is not iterable")}(t,o)}for(s=r.next;!(l=on(s,r)).done;){try{u=y(l.value)}catch(h){qP(r,"throw",h)}if(typeof u=="object"&&u&&Dv(KP,u))return u}return new Iv(!1)},cut=Et.TypeError,YP=function(t,e){if(Dv(e,t))return t;throw cut("Incorrect invocation")},JP=bn("iterator"),ZP=!1;try{var fut=0,QP={next:function(){return{done:!!fut++}},return:function(){ZP=!0}};QP[JP]=function(){return this},Array.from(QP,function(){throw 2})}catch{}var v3=Array.isArray||function(t){return Qo(t)=="Array"},tj=function(){},dut=[],ej=Pd("Reflect","construct"),m3=/^\s*(?:class|function)\b/,put=It(m3.exec),hut=!m3.exec(tj),Vd=function(t){if(!Ae(t))return!1;try{return ej(tj,dut,t),!0}catch{return!1}},gut=!ej||Se(function(){var t;return Vd(Vd.call)||!Vd(Object)||!Vd(function(){t=!0})||t})?function(t){if(!Ae(t))return!1;switch(Pv(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return hut||!!put(m3,r3(t))}:Vd,vut=bn("species"),nj=Et.Array,rj=function(t,e){return new(function(n){var r;return v3(n)&&(r=n.constructor,(gut(r)&&(r===nj||v3(r.prototype))||Oe(r)&&(r=r[vut])===null)&&(r=void 0)),r===void 0?nj:r}(t))(e===0?0:e)},oj=It([].push),ua=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,g=_d(s),v=aP(g),m=g3(l,c),y=Ll(v),h=0,b=f||rj,w=e?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in v)&&(d=m(p=v[h],h,g),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:oj(w,p)}else switch(t){case 4:return!1;case 7:oj(w,p)}return i?-1:r||o?o:w}},y3={forEach:ua(0),map:ua(1),filter:ua(2),some:ua(3),every:ua(4),find:ua(5),findIndex:ua(6),filterReject:ua(7)},Nv=h3.getWeakData,mut=Eo.set,yut=Eo.getterFor,but=y3.find,wut=y3.findIndex,Eut=It([].splice),Dut=0,Lv=function(t){return t.frozen||(t.frozen=new ij)},ij=function(){this.entries=[]},b3=function(t,e){return but(t.entries,function(n){return n[0]===e})};ij.prototype={get:function(t){var e=b3(this,t);if(e)return e[1]},has:function(t){return!!b3(this,t)},set:function(t,e){var n=b3(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=wut(this.entries,function(n){return n[0]===t});return~e&&Eut(this.entries,e,1),!!~e}};var Ud,aj={getConstructor:function(t,e,n,r){var o=t(function(s,l){YP(s,i),mut(s,{type:e,id:Dut++,frozen:void 0}),l!=null&&XP(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=yut(e),u=function(s,l,c){var f=a(s),p=Nv(Gn(l),!0);return p===!0?Lv(f).set(l,c):p[f.id]=c,s};return p3(i,{delete:function(s){var l=a(this);if(!Oe(s))return!1;var c=Nv(s);return c===!0?Lv(l).delete(s):c&&rn(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!Oe(s))return!1;var c=Nv(s);return c===!0?Lv(l).has(s):c&&rn(c,l.id)}}),p3(i,n?{get:function(s){var l=a(this);if(Oe(s)){var c=Nv(s);return c===!0?Lv(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},Rv=Eo.enforce,xut=!Et.ActiveXObject&&"ActiveXObject"in Et,uj=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Cut=function(t,e,n){var r=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=r?"set":"add",a=Et[t],u=a&&a.prototype,s=a,l={},c=function(m){var y=It(u[m]);Do(u,m,m=="add"?function(h){return y(this,h===0?0:h),this}:m=="delete"?function(h){return!(o&&!Oe(h))&&y(this,h===0?0:h)}:m=="get"?function(h){return o&&!Oe(h)?void 0:y(this,h===0?0:h)}:m=="has"?function(h){return!(o&&!Oe(h))&&y(this,h===0?0:h)}:function(h,b){return y(this,h===0?0:h,b),this})};if(u3(t,!Ae(a)||!(o||u.forEach&&!Se(function(){new a().entries().next()}))))s=n.getConstructor(e,t,r,i),h3.enable();else if(u3(t,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=Se(function(){f.has(1)}),g=function(m,y){if(!ZP)return!1;var h=!1;try{var b={};b[JP]=function(){return{next:function(){return{done:h=!0}}}},function(w){new a(w)}(b)}catch{}return h}(),v=!o&&Se(function(){for(var m=new a,y=5;y--;)m[i](y,y);return!m.has(-0)});g||((s=e(function(m,y){YP(m,u);var h=function(b,w,D){var C,x;return Tv&&Ae(C=w.constructor)&&C!==D&&Oe(x=C.prototype)&&x!==D.prototype&&Tv(b,x),b}(new a,m,s);return y!=null&&XP(y,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(d||v)&&(c("delete"),c("has"),r&&c("get")),(v||p)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,aa({global:!0,forced:s!=a},l),f3(s,t),o||n.setStrong(s,t,r),s}("WeakMap",uj,aj);if(CP&&xut){Ud=aj.getConstructor(uj,"WeakMap",!0),h3.enable();var Wd=Cut.prototype,sj=It(Wd.delete),Mv=It(Wd.has),lj=It(Wd.get),cj=It(Wd.set);p3(Wd,{delete:function(t){if(Oe(t)&&!Vu(t)){var e=Rv(this);return e.frozen||(e.frozen=new Ud),sj(this,t)||e.frozen.delete(t)}return sj(this,t)},has:function(t){if(Oe(t)&&!Vu(t)){var e=Rv(this);return e.frozen||(e.frozen=new Ud),Mv(this,t)||e.frozen.has(t)}return Mv(this,t)},get:function(t){if(Oe(t)&&!Vu(t)){var e=Rv(this);return e.frozen||(e.frozen=new Ud),Mv(this,t)?lj(this,t):e.frozen.get(t)}return lj(this,t)},set:function(t,e){if(Oe(t)&&!Vu(t)){var n=Rv(this);n.frozen||(n.frozen=new Ud),Mv(this,t)?cj(this,t,e):n.frozen.set(t,e)}else cj(this,t,e);return this}})}var fj={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},w3=GD("span").classList,dj=w3&&w3.constructor&&w3.constructor.prototype,Sut=dj===Object.prototype?void 0:dj,E3=bn("iterator"),pj=bn("toStringTag"),D3=Hd.values,hj=function(t,e){if(t){if(t[E3]!==D3)try{ia(t,E3,D3)}catch{t[E3]=D3}if(t[pj]||ia(t,pj,e),fj[e]){for(var n in Hd)if(t[n]!==Hd[n])try{ia(t,n,Hd[n])}catch{t[n]=Hd[n]}}}};for(var x3 in fj)hj(Et[x3]&&Et[x3].prototype,x3);hj(Sut,"DOMTokenList");var C3=new WeakMap,Aut={type:"list-item",renderElem:function(t,e,n){C3.set(t,n);var r=t,o=r.level,i=o===void 0?0:o,a=r.ordered,u={margin:"5px 0 5px "+20*i+"px"},s="";if(a!==void 0&&a){var l=function(f,p){var d=p,g=d.type,v=d.level,m=v===void 0?0:v,y=d.ordered,h=y!==void 0&&y;if(!h)return-1;var b=1,w=p,D=A.findPath(f,w);if(D[0]===0)return 1;for(;D[0]>0;){var C=_.previous(D),x=E.node(f,C);if(x==null)break;var S=x[0],F=S.level,z=F===void 0?0:F,M=S.type,R=S.ordered;if(M!==g||z<m)break;if(z===m){if(R!==h)break;b++}w=S,D=C}return b}(n,t);s=l+"."}else s=function(f){f===void 0&&(f=0);var p="";switch(f){case 0:p="\u2022";break;case 1:p="\u25E6";break;default:p="\u25AA"}return p}(i);var c=function(f){var p,d=f.children||[],g=d.length;if(g===0)return"";for(var v=0;v<g&&!p;v++){var m=d[v];ot.isText(m)&&(p=m)}return p==null?"":p.color||""}(t);return wt("div",{style:u},wt("span",{contentEditable:!1,style:{marginRight:"0.5em",color:c},"data-w-e-reserve":!0},s),wt("span",null,e))}},S3=function(t,e){return S3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},S3(t,e)};function gj(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}S3(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}function vj(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Gd(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function mj(t){return E.nodes(t,{at:t.selection||void 0,match:function(e){return A.findPath(t,e).length===1}})}var Out=vP.includes;aa({target:"Array",proto:!0},{includes:function(t){return Out(this,t,arguments.length>1?arguments[1]:void 0)}}),Rd("includes");var yj,A3,kut=function(){var t=Gn(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},O3=Et.RegExp,k3=Se(function(){var t=O3("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),But=k3||Se(function(){return!O3("a","y").sticky}),Fut={BROKEN_CARET:k3||Se(function(){var t=O3("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:But,UNSUPPORTED_Y:k3},Tut=Et.RegExp,_ut=Se(function(){var t=Tut(".","s");return!(t.dotAll&&t.exec(`
- `)&&t.flags==="s")}),Put=Et.RegExp,jut=Se(function(){var t=Put("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),Iut=Eo.get,Nut=MD("native-string-replace",String.prototype.replace),zv=RegExp.prototype.exec,B3=zv,Lut=It("".charAt),Rut=It("".indexOf),Mut=It("".replace),F3=It("".slice),T3=(A3=/b*/g,on(zv,yj=/a/,"a"),on(zv,A3,"a"),yj.lastIndex!==0||A3.lastIndex!==0),bj=Fut.BROKEN_CARET,_3=/()??/.exec("")[1]!==void 0;(T3||_3||bj||_ut||jut)&&(B3=function(t){var e,n,r,o,i,a,u,s=this,l=Iut(s),c=ti(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=on(B3,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=bj&&s.sticky,g=on(kut,s),v=s.source,m=0,y=c;if(d&&(g=Mut(g,"y",""),Rut(g,"g")===-1&&(g+="g"),y=F3(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Lut(c,s.lastIndex-1)!==`
- `)&&(v="(?: "+v+")",y=" "+y,m++),n=new RegExp("^(?:"+v+")",g)),_3&&(n=new RegExp("^"+v+"$(?!\\s)",g)),T3&&(r=s.lastIndex),o=on(zv,d?n:s,y),d?o?(o.input=F3(o.input,m),o[0]=F3(o[0],m),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:T3&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),_3&&o&&o.length>1&&on(Nut,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=t3(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var $v=B3;aa({target:"RegExp",proto:!0,forced:/./.exec!==$v},{exec:$v});var wj=function(){function t(){this.type="list-item",this.tag="button"}return t.prototype.getListNode=function(e){var n=this.type;return A.getSelectedNodeByType(e,n)},t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){var n=this.getListNode(e);if(n==null)return!1;var r=n.ordered;return(r!==void 0&&r)===this.ordered},t.prototype.isDisabled=function(e){return e.selection==null||!!A.getSelectedElems(e).some(function(n){if(E.isVoid(e,n)&&E.isBlock(e,n))return!0;var r=n.type;return!!["pre","code","table"].includes(r)||void 0})},t.prototype.exec=function(e,n){this.isActive(e)?I.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):I.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},t}(),zut=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.ordered=!1,n.title=et("listModule.unOrderedList"),n.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z"></path></svg>',n}return gj(e,t),e}(wj),$ut=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.ordered=!0,n.title=et("listModule.orderedList"),n.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z"></path></svg>',n}return gj(e,t),e}(wj),Hut={key:"bulletedList",factory:function(){return new zut}},Vut={key:"numberedList",factory:function(){return new $ut}},Ej=[],Uut={type:"list-item",elemToHtml:function(t,e){var n="",r="",o=t.ordered,i=o!==void 0&&o?"ol":"ul",a=function(l){var c=C3.get(l);if(c==null)return 0;var f=l,p=f.type,d=f.ordered,g=d!==void 0&&d,v=f.level,m=v===void 0?0:v,y=A.findPath(c,l);if(y[0]===0)return m+1;var h=_.previous(y),b=E.node(c,h);if(!b)return 0;var w=Gd(b,1)[0];if(A.getNodeType(w)!==p)return m+1;var D=w,C=D.ordered,x=C!==void 0&&C,S=D.level,F=S===void 0?0:S;return F<m?m-F:F>m?0:F===m?x===g?0:1:0}(t);if(a>0)for(var u=0;u<a;u++)n+="<"+i+">",Ej.push(i);var s=function(l){var c=C3.get(l);if(c==null)return 0;var f=l,p=f.type,d=f.ordered,g=d!==void 0&&d,v=f.level,m=v===void 0?0:v,y=A.findPath(c,l);if(y[0]===c.children.length-1)return m+1;var h=_.next(y),b=E.node(c,h);if(!b)return 0;var w=Gd(b,1)[0];if(A.getNodeType(w)!==p)return m+1;var D=w,C=D.ordered,x=C!==void 0&&C,S=D.level,F=S===void 0?0:S;return F<m?m-F:F>m?0:F===m?x===g?0:1:0}(t);if(s>0)for(u=0;u<s;u++)r+="</"+Ej.pop()+">";return{html:"<li>"+e+"</li>",prefix:n,suffix:r}}},Wut=bn("species"),Gut=y3.filter,qut=HD>=51||!Se(function(){var t=[];return(t.constructor={})[Wut]=function(){return{foo:1}},t.filter(Boolean).foo!==1});aa({target:"Array",proto:!0,forced:!qut},{filter:function(t){return Gut(this,t,arguments.length>1?arguments[1]:void 0)}});var P3=Function.prototype,Dj=P3.apply,Kut=P3.bind,xj=P3.call,Xut=typeof Reflect=="object"&&Reflect.apply||(Kut?xj.bind(Dj):function(){return xj.apply(Dj,arguments)}),Cj=(bn("species"),RegExp.prototype),Yut=$P.charAt,Jut=function(t,e,n){return e+(n?Yut(t,e).length:1)},Zut=Math.floor,j3=It("".charAt),Qut=It("".replace),I3=It("".slice),tst=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,est=/\$([$&'`]|\d{1,2})/g,nst=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=est;return o!==void 0&&(o=_d(o),s=tst),Qut(i,s,function(l,c){var f;switch(j3(c,0)){case"$":return"$";case"&":return t;case"`":return I3(e,0,n);case"'":return I3(e,a);case"<":f=o[I3(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=Zut(p/10);return d===0?l:d<=u?r[d-1]===void 0?j3(c,1):r[d-1]+j3(c,1):l}f=r[p-1]}return f===void 0?"":f})},rst=Et.TypeError,ost=function(t,e){var n=t.exec;if(Ae(n)){var r=on(n,t,e);return r!==null&&Gn(r),r}if(Qo(t)==="RegExp")return on($v,t,e);throw rst("RegExp#exec called on incompatible receiver")},N3=bn("replace"),ist=Math.max,ast=Math.min,ust=It([].concat),L3=It([].push),Sj=It("".indexOf),Aj=It("".slice),sst="a".replace(/./,"$0")==="$0",Oj=!!/./[N3]&&/./[N3]("a","$0")==="";(function(t,e,n,r){var o=bn(t),i=!Se(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!Se(function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=It(/./[o]),s=function(l,c,f){var p=Oj?"$":"$0";return[function(d,g){var v=wv(this),m=d==null?void 0:Nd(d,N3);return m?on(m,d,v,g):on(c,ti(v),d,g)},function(d,g){var v=Gn(this),m=ti(d);if(typeof g=="string"&&Sj(g,p)===-1&&Sj(g,"$<")===-1){var y=f(c,v,m,g);if(y.done)return y.value}var h=Ae(g);h||(g=ti(g));var b=v.global;if(b){var w=v.unicode;v.lastIndex=0}for(var D=[];;){var C=ost(v,m);if(C===null||(L3(D,C),!b))break;ti(C[0])===""&&(v.lastIndex=Jut(m,hP(v.lastIndex),w))}for(var x,S="",F=0,z=0;z<D.length;z++){for(var M=ti((C=D[z])[0]),R=ist(ast(Ld(C.index),m.length),0),K=[],V=1;V<C.length;V++)L3(K,(x=C[V])===void 0?x:String(x));var U=C.groups;if(h){var W=ust([M],K,R,m);U!==void 0&&L3(W,U);var Z=ti(Xut(g,void 0,W))}else Z=nst(M,m,R,K,U,g);R>=F&&(S+=Aj(m,F,R)+Z,F=R+M.length)}return S+Aj(m,F)}]}(0,""[t],function(l,c,f,p,d){var g=It(l),v=c.exec;return v===$v||v===Cj.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:g(f,c,p)}:{done:!1}});Do(String.prototype,t,s[0]),Do(Cj,o,s[1])}})("replace",0,!!Se(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!sst||Oj);var lst=Et.TypeError,kj=function(t,e,n,r,o,i,a,u){for(var s,l,c=o,f=0,p=!!a&&g3(a,u);f<r;){if(f in n){if(s=p?p(n[f],f,e):n[f],i>0&&v3(s))l=Ll(s),c=kj(t,e,s,l,c,i-1)-1;else{if(c>=9007199254740991)throw lst("Exceed the acceptable array length");t[c]=s}c++}f++}return c},cst=kj;function R3(t){return t.length?t[0].tagName.toLowerCase():""}aa({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=_d(this),n=Ll(e),r=rj(e,0);return r.length=cst(r,e,e,n,0,t===void 0?1:Ld(t)),r}}),Rd("flat"),aa({global:!0},{globalThis:Et}),vr&&(k.fn.append=vr),gr&&(k.fn.attr=gr),Ls&&(k.fn.parent=Ls);var fst={renderElems:[Aut],editorPlugin:function(t){var e=t.deleteBackward,n=t.handleTab,r=t.normalizeNode,o=t;return o.deleteBackward=function(i){var a=o.selection;if(a!=null)if(L.isExpanded(a))e(i);else{var u=A.getSelectedNodeByType(o,"list-item");if(u!=null)if(a.focus.offset!==0)e(i);else{var s=u.level,l=s===void 0?0:s;l>0?I.setNodes(o,{level:l-1}):I.setNodes(o,{type:"paragraph",ordered:void 0,level:void 0})}else e(i)}else e(i)},o.handleTab=function(){var i,a,u,s,l=o.selection;if(l!=null){if(L.isCollapsed(l)){var c=A.getSelectedNodeByType(o,"list-item");if(c==null)return void n();if(l.focus.offset===0){var f=c.level,p=f===void 0?0:f;return void I.setNodes(o,{level:p+1})}}if(L.isExpanded(l)){var d=0,g=!1;try{for(var v=vj(mj(o)),m=v.next();!m.done;m=v.next()){var y=Gd(m.value,1)[0];A.getNodeType(y)==="list-item"?d++:g=!0}}catch(x){i={error:x}}finally{try{m&&!m.done&&(a=v.return)&&a.call(v)}finally{if(i)throw i.error}}if(g||d<=1)return void n();try{for(var h=vj(mj(o)),b=h.next();!b.done;b=h.next()){var w=Gd(b.value,2),D=(y=w[0],w[1]),C=y.level;p=C===void 0?0:C,I.setNodes(o,{level:p+1},{at:D})}}catch(x){u={error:x}}finally{try{b&&!b.done&&(s=h.return)&&s.call(h)}finally{if(u)throw u.error}}}else n()}else n()},o.normalizeNode=function(i){var a=Gd(i,2),u=a[0],s=a[1],l=A.getNodeType(u);return l!=="bulleted-list"&&l!=="numbered-list"||I.unwrapNodes(o,{at:s}),r([u,s])},o},menus:[Hut,Vut],elemsToHtml:[Uut],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(t,e,n){return e.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=k(t);(e=e.filter(function(a){return!!ot.isText(a)||!!n.isInline(a)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]);var o=function(a){return R3(a.parent())==="ol"}(r),i=function(a){for(var u=0,s=a.parent(),l=R3(s);l==="ul"||l==="ol";)l=R3(s=s.parent()),u++;return u-1}(r);return{type:"list-item",ordered:o,level:i,children:e}}}]},Bj=Ra(function(t,e){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Array]",a="[object Boolean]",u="[object Date]",s="[object Error]",l="[object Function]",c="[object Map]",f="[object Number]",p="[object Object]",d="[object Promise]",g="[object RegExp]",v="[object Set]",m="[object String]",y="[object WeakMap]",h="[object ArrayBuffer]",b="[object DataView]",w=/^\[object .+?Constructor\]$/,D=/^(?:0|[1-9]\d*)$/,C={};C["[object Float32Array]"]=C["[object Float64Array]"]=C["[object Int8Array]"]=C["[object Int16Array]"]=C["[object Int32Array]"]=C["[object Uint8Array]"]=C["[object Uint8ClampedArray]"]=C["[object Uint16Array]"]=C["[object Uint32Array]"]=!0,C[o]=C[i]=C[h]=C[a]=C[b]=C[u]=C[s]=C[l]=C[c]=C[f]=C[p]=C[g]=C[v]=C[m]=C[y]=!1;var x=typeof ue=="object"&&ue&&ue.Object===Object&&ue,S=typeof self=="object"&&self&&self.Object===Object&&self,F=x||S||Function("return this")(),z=e&&!e.nodeType&&e,M=z&&t&&!t.nodeType&&t,R=M&&M.exports===z,K=R&&x.process,V=function(){try{return K&&K.binding&&K.binding("util")}catch{}}(),U=V&&V.isTypedArray;function W(j,$){for(var Y=-1,dt=j==null?0:j.length;++Y<dt;)if($(j[Y],Y,j))return!0;return!1}function Z(j){var $=-1,Y=Array(j.size);return j.forEach(function(dt,te){Y[++$]=[te,dt]}),Y}function lt(j){var $=-1,Y=Array(j.size);return j.forEach(function(dt){Y[++$]=dt}),Y}var ut=Array.prototype,at=Function.prototype,B=Object.prototype,O=F["__core-js_shared__"],T=at.toString,N=B.hasOwnProperty,X=function(){var j=/[^.]+$/.exec(O&&O.keys&&O.keys.IE_PROTO||"");return j?"Symbol(src)_1."+j:""}(),G=B.toString,st=RegExp("^"+T.call(N).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ht=R?F.Buffer:void 0,mt=F.Symbol,Bt=F.Uint8Array,q=B.propertyIsEnumerable,Mt=ut.splice,bt=mt?mt.toStringTag:void 0,gt=Object.getOwnPropertySymbols,Ft=ht?ht.isBuffer:void 0,Pe=function(j,$){return function(Y){return j($(Y))}}(Object.keys,Object),zt=Fn(F,"DataView"),Xt=Fn(F,"Map"),Be=Fn(F,"Promise"),kn=Fn(F,"Set"),$t=Fn(F,"WeakMap"),Bn=Fn(Object,"create"),cs=Po(zt),To=Po(Xt),mc=Po(Be),fs=Po(kn),to=Po($t),eo=mt?mt.prototype:void 0,_o=eo?eo.valueOf:void 0;function Qe(j){var $=-1,Y=j==null?0:j.length;for(this.clear();++$<Y;){var dt=j[$];this.set(dt[0],dt[1])}}function gn(j){var $=-1,Y=j==null?0:j.length;for(this.clear();++$<Y;){var dt=j[$];this.set(dt[0],dt[1])}}function Kn(j){var $=-1,Y=j==null?0:j.length;for(this.clear();++$<Y;){var dt=j[$];this.set(dt[0],dt[1])}}function Ir(j){var $=-1,Y=j==null?0:j.length;for(this.__data__=new Kn;++$<Y;)this.add(j[$])}function je(j){var $=this.__data__=new gn(j);this.size=$.size}function Ia(j,$){for(var Y=j.length;Y--;)if(ps(j[Y][0],$))return Y;return-1}function ai(j){return j==null?j===void 0?"[object Undefined]":"[object Null]":bt&&bt in Object(j)?function($){var Y=N.call($,bt),dt=$[bt];try{$[bt]=void 0;var te=!0}catch{}var Rt=G.call($);return te&&(Y?$[bt]=dt:delete $[bt]),Rt}(j):function($){return G.call($)}(j)}function yc(j){return hr(j)&&ai(j)==o}function bc(j,$,Y,dt,te){return j===$||(j==null||$==null||!hr(j)&&!hr($)?j!=j&&$!=$:function(Rt,Yt,Fe,P,H,Q){var it=La(Rt),oe=La(Yt),pe=it?i:In(Rt),ee=oe?i:In(Yt),Jt=(pe=pe==o?p:pe)==p,Nr=(ee=ee==o?p:ee)==p,tn=pe==ee;if(tn&&Ec(Rt)){if(!Ec(Yt))return!1;it=!0,Jt=!1}if(tn&&!Jt)return Q||(Q=new je),it||km(Rt)?wc(Rt,Yt,Fe,P,H,Q):function(vt,Dt,Tn,Xn,qt,me,$e){switch(Tn){case b:if(vt.byteLength!=Dt.byteLength||vt.byteOffset!=Dt.byteOffset)return!1;vt=vt.buffer,Dt=Dt.buffer;case h:return!(vt.byteLength!=Dt.byteLength||!me(new Bt(vt),new Bt(Dt)));case a:case u:case f:return ps(+vt,+Dt);case s:return vt.name==Dt.name&&vt.message==Dt.message;case g:case m:return vt==Dt+"";case c:var jo=Z;case v:var gs=1&Xn;if(jo||(jo=lt),vt.size!=Dt.size&&!gs)return!1;var vs=$e.get(vt);if(vs)return vs==Dt;Xn|=2,$e.set(vt,Dt);var li=wc(jo(vt),jo(Dt),Xn,qt,me,$e);return $e.delete(vt),li;case"[object Symbol]":if(_o)return _o.call(vt)==_o.call(Dt)}return!1}(Rt,Yt,pe,Fe,P,H,Q);if(!(1&Fe)){var ro=Jt&&N.call(Rt,"__wrapped__"),mh=Nr&&N.call(Yt,"__wrapped__");if(ro||mh){var Fm=ro?Rt.value():Rt,Ct=mh?Yt.value():Yt;return Q||(Q=new je),H(Fm,Ct,Fe,P,Q)}}return!!tn&&(Q||(Q=new je),function(vt,Dt,Tn,Xn,qt,me){var $e=1&Tn,jo=ds(vt),gs=jo.length;if(gs!=ds(Dt).length&&!$e)return!1;for(var vs=gs;vs--;){var li=jo[vs];if(!($e?li in Dt:N.call(Dt,li)))return!1}var Zz=me.get(vt);if(Zz&&me.get(Dt))return Zz==Dt;var Tm=!0;me.set(vt,Dt),me.set(Dt,vt);for(var uC=$e;++vs<gs;){var _m=vt[li=jo[vs]],Pm=Dt[li];if(Xn)var Qz=$e?Xn(Pm,_m,li,Dt,vt,me):Xn(_m,Pm,li,vt,Dt,me);if(!(Qz===void 0?_m===Pm||qt(_m,Pm,Tn,Xn,me):Qz)){Tm=!1;break}uC||(uC=li=="constructor")}if(Tm&&!uC){var jm=vt.constructor,Im=Dt.constructor;jm==Im||!("constructor"in vt)||!("constructor"in Dt)||typeof jm=="function"&&jm instanceof jm&&typeof Im=="function"&&Im instanceof Im||(Tm=!1)}return me.delete(vt),me.delete(Dt),Tm}(Rt,Yt,Fe,P,H,Q))}(j,$,Y,dt,bc,te))}function wc(j,$,Y,dt,te,Rt){var Yt=1&Y,Fe=j.length,P=$.length;if(Fe!=P&&!(Yt&&P>Fe))return!1;var H=Rt.get(j);if(H&&Rt.get($))return H==$;var Q=-1,it=!0,oe=2&Y?new Ir:void 0;for(Rt.set(j,$),Rt.set($,j);++Q<Fe;){var pe=j[Q],ee=$[Q];if(dt)var Jt=Yt?dt(ee,pe,Q,$,j,Rt):dt(pe,ee,Q,j,$,Rt);if(Jt!==void 0){if(Jt)continue;it=!1;break}if(oe){if(!W($,function(Nr,tn){if(ro=tn,!oe.has(ro)&&(pe===Nr||te(pe,Nr,Y,dt,Rt)))return oe.push(tn);var ro})){it=!1;break}}else if(pe!==ee&&!te(pe,ee,Y,dt,Rt)){it=!1;break}}return Rt.delete(j),Rt.delete($),it}function ds(j){return function($,Y,dt){var te=Y($);return La($)?te:function(Rt,Yt){for(var Fe=-1,P=Yt.length,H=Rt.length;++Fe<P;)Rt[H+Fe]=Yt[Fe];return Rt}(te,dt($))}(j,Bm,no)}function ui(j,$){var Y,dt,te=j.__data__;return((dt=typeof(Y=$))=="string"||dt=="number"||dt=="symbol"||dt=="boolean"?Y!=="__proto__":Y===null)?te[typeof $=="string"?"string":"hash"]:te.map}function Fn(j,$){var Y=function(dt,te){return dt==null?void 0:dt[te]}(j,$);return function(dt){return!(!vh(dt)||function(te){return!!X&&X in te}(dt))&&(hs(dt)?st:w).test(Po(dt))}(Y)?Y:void 0}Qe.prototype.clear=function(){this.__data__=Bn?Bn(null):{},this.size=0},Qe.prototype.delete=function(j){var $=this.has(j)&&delete this.__data__[j];return this.size-=$?1:0,$},Qe.prototype.get=function(j){var $=this.__data__;if(Bn){var Y=$[j];return Y===n?void 0:Y}return N.call($,j)?$[j]:void 0},Qe.prototype.has=function(j){var $=this.__data__;return Bn?$[j]!==void 0:N.call($,j)},Qe.prototype.set=function(j,$){var Y=this.__data__;return this.size+=this.has(j)?0:1,Y[j]=Bn&&$===void 0?n:$,this},gn.prototype.clear=function(){this.__data__=[],this.size=0},gn.prototype.delete=function(j){var $=this.__data__,Y=Ia($,j);return!(Y<0||(Y==$.length-1?$.pop():Mt.call($,Y,1),--this.size,0))},gn.prototype.get=function(j){var $=this.__data__,Y=Ia($,j);return Y<0?void 0:$[Y][1]},gn.prototype.has=function(j){return Ia(this.__data__,j)>-1},gn.prototype.set=function(j,$){var Y=this.__data__,dt=Ia(Y,j);return dt<0?(++this.size,Y.push([j,$])):Y[dt][1]=$,this},Kn.prototype.clear=function(){this.size=0,this.__data__={hash:new Qe,map:new(Xt||gn),string:new Qe}},Kn.prototype.delete=function(j){var $=ui(this,j).delete(j);return this.size-=$?1:0,$},Kn.prototype.get=function(j){return ui(this,j).get(j)},Kn.prototype.has=function(j){return ui(this,j).has(j)},Kn.prototype.set=function(j,$){var Y=ui(this,j),dt=Y.size;return Y.set(j,$),this.size+=Y.size==dt?0:1,this},Ir.prototype.add=Ir.prototype.push=function(j){return this.__data__.set(j,n),this},Ir.prototype.has=function(j){return this.__data__.has(j)},je.prototype.clear=function(){this.__data__=new gn,this.size=0},je.prototype.delete=function(j){var $=this.__data__,Y=$.delete(j);return this.size=$.size,Y},je.prototype.get=function(j){return this.__data__.get(j)},je.prototype.has=function(j){return this.__data__.has(j)},je.prototype.set=function(j,$){var Y=this.__data__;if(Y instanceof gn){var dt=Y.__data__;if(!Xt||dt.length<199)return dt.push([j,$]),this.size=++Y.size,this;Y=this.__data__=new Kn(dt)}return Y.set(j,$),this.size=Y.size,this};var no=gt?function(j){return j==null?[]:(j=Object(j),function($,Y){for(var dt=-1,te=$==null?0:$.length,Rt=0,Yt=[];++dt<te;){var Fe=$[dt];Y(Fe)&&(Yt[Rt++]=Fe)}return Yt}(gt(j),function($){return q.call(j,$)}))}:function(){return[]},In=ai;function Na(j,$){return!!($=$??r)&&(typeof j=="number"||D.test(j))&&j>-1&&j%1==0&&j<$}function Po(j){if(j!=null){try{return T.call(j)}catch{}try{return j+""}catch{}}return""}function ps(j,$){return j===$||j!=j&&$!=$}(zt&&In(new zt(new ArrayBuffer(1)))!=b||Xt&&In(new Xt)!=c||Be&&In(Be.resolve())!=d||kn&&In(new kn)!=v||$t&&In(new $t)!=y)&&(In=function(j){var $=ai(j),Y=$==p?j.constructor:void 0,dt=Y?Po(Y):"";if(dt)switch(dt){case cs:return b;case To:return c;case mc:return d;case fs:return v;case to:return y}return $});var gh=yc(function(){return arguments}())?yc:function(j){return hr(j)&&N.call(j,"callee")&&!q.call(j,"callee")},La=Array.isArray,Ec=Ft||function(){return!1};function hs(j){if(!vh(j))return!1;var $=ai(j);return $==l||$=="[object GeneratorFunction]"||$=="[object AsyncFunction]"||$=="[object Proxy]"}function si(j){return typeof j=="number"&&j>-1&&j%1==0&&j<=r}function vh(j){var $=typeof j;return j!=null&&($=="object"||$=="function")}function hr(j){return j!=null&&typeof j=="object"}var km=U?function(j){return function($){return j($)}}(U):function(j){return hr(j)&&si(j.length)&&!!C[ai(j)]};function Bm(j){return($=j)!=null&&si($.length)&&!hs($)?function(Y,dt){var te=La(Y),Rt=!te&&gh(Y),Yt=!te&&!Rt&&Ec(Y),Fe=!te&&!Rt&&!Yt&&km(Y),P=te||Rt||Yt||Fe,H=P?function(oe,pe){for(var ee=-1,Jt=Array(oe);++ee<oe;)Jt[ee]=pe(ee);return Jt}(Y.length,String):[],Q=H.length;for(var it in Y)!dt&&!N.call(Y,it)||P&&(it=="length"||Yt&&(it=="offset"||it=="parent")||Fe&&(it=="buffer"||it=="byteLength"||it=="byteOffset")||Na(it,Q))||H.push(it);return H}(j):function(Y){if(te=(dt=Y)&&dt.constructor,dt!==(typeof te=="function"&&te.prototype||B))return Pe(Y);var dt,te,Rt=[];for(var Yt in Object(Y))N.call(Y,Yt)&&Yt!="constructor"&&Rt.push(Yt);return Rt}(j);var $}t.exports=function(j,$){return bc(j,$)}});Vn("en",{tableModule:{deleteCol:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",widthAuto:"Width auto",insertCol:"Insert column",insertRow:"Insert row",insertTable:"Insert table",header:"Header"}}),Vn("zh-CN",{tableModule:{deleteCol:"\u5220\u9664\u5217",deleteRow:"\u5220\u9664\u884C",deleteTable:"\u5220\u9664\u8868\u683C",widthAuto:"\u5BBD\u5EA6\u81EA\u9002\u5E94",insertCol:"\u63D2\u5165\u5217",insertRow:"\u63D2\u5165\u884C",insertTable:"\u63D2\u5165\u8868\u683C",header:"\u8868\u5934"}});var Fj=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Tj(t){var e={exports:{}};return t(e,e.exports),e.exports}var sa,Hv,Vv=function(t){return t&&t.Math==Math&&t},Pt=Vv(typeof globalThis=="object"&&globalThis)||Vv(typeof window=="object"&&window)||Vv(typeof self=="object"&&self)||Vv(typeof Fj=="object"&&Fj)||function(){return this}()||Function("return this")(),Xe=function(t){try{return!!t()}catch{return!0}},la=!Xe(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),qd=Function.prototype.call,Ye=qd.bind?qd.bind(qd):function(){return qd.apply(qd,arguments)},_j={}.propertyIsEnumerable,Pj=Object.getOwnPropertyDescriptor,dst={f:Pj&&!_j.call({1:2},1)?function(t){var e=Pj(this,t);return!!e&&e.enumerable}:_j},M3=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},jj=Function.prototype,z3=jj.bind,$3=jj.call,pst=z3&&z3.bind($3),Lt=z3?function(t){return t&&pst($3,t)}:function(t){return t&&function(){return $3.apply(t,arguments)}},hst=Lt({}.toString),gst=Lt("".slice),ca=function(t){return gst(hst(t),8,-1)},H3=Pt.Object,vst=Lt("".split),Ij=Xe(function(){return!H3("z").propertyIsEnumerable(0)})?function(t){return ca(t)=="String"?vst(t,""):H3(t)}:H3,mst=Pt.TypeError,fa=function(t){if(t==null)throw mst("Can't call method on "+t);return t},Kd=function(t){return Ij(fa(t))},wn=function(t){return typeof t=="function"},Br=function(t){return typeof t=="object"?t!==null:wn(t)},Xd=function(t,e){return arguments.length<2?function(n){return wn(n)?n:void 0}(Pt[t]):Pt[t]&&Pt[t][e]},Nj=Lt({}.isPrototypeOf),V3=Xd("navigator","userAgent")||"",Lj=Pt.process,Rj=Pt.Deno,Mj=Lj&&Lj.versions||Rj&&Rj.version,zj=Mj&&Mj.v8;zj&&(Hv=(sa=zj.split("."))[0]>0&&sa[0]<4?1:+(sa[0]+sa[1])),!Hv&&V3&&(!(sa=V3.match(/Edge\/(\d+)/))||sa[1]>=74)&&(sa=V3.match(/Chrome\/(\d+)/))&&(Hv=+sa[1]);var U3=Hv,W3=!!Object.getOwnPropertySymbols&&!Xe(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&U3&&U3<41}),G3=W3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",yst=Pt.Object,q3=G3?function(t){return typeof t=="symbol"}:function(t){var e=Xd("Symbol");return wn(e)&&Nj(e.prototype,yst(t))},bst=Pt.String,$j=function(t){try{return bst(t)}catch{return"Object"}},wst=Pt.TypeError,Hj=function(t){if(wn(t))return t;throw wst($j(t)+" is not a function")},K3=function(t,e){var n=t[e];return n==null?void 0:Hj(n)},Est=Pt.TypeError,Dst=Object.defineProperty,X3=function(t,e){try{Dst(Pt,t,{value:e,configurable:!0,writable:!0})}catch{Pt[t]=e}return e},da=Pt["__core-js_shared__"]||X3("__core-js_shared__",{}),Y3=Tj(function(t){(t.exports=function(e,n){return da[e]||(da[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),xst=Pt.Object,J3=function(t){return xst(fa(t))},Cst=Lt({}.hasOwnProperty),Fr=Object.hasOwn||function(t,e){return Cst(J3(t),e)},Sst=0,Ast=Math.random(),Ost=Lt(1 .toString),Vj=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Ost(++Sst+Ast,36)},Yd=Y3("wks"),Uu=Pt.Symbol,Uj=Uu&&Uu.for,kst=G3?Uu:Uu&&Uu.withoutSetter||Vj,Tr=function(t){if(!Fr(Yd,t)||!W3&&typeof Yd[t]!="string"){var e="Symbol."+t;W3&&Fr(Uu,t)?Yd[t]=Uu[t]:Yd[t]=G3&&Uj?Uj(e):kst(e)}return Yd[t]},Bst=Pt.TypeError,Fst=Tr("toPrimitive"),Z3=function(t){var e=function(n,r){if(!Br(n)||q3(n))return n;var o,i=K3(n,Fst);if(i){if(r===void 0&&(r="default"),o=Ye(i,n,r),!Br(o)||q3(o))return o;throw Bst("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&wn(s=a.toString)&&!Br(l=Ye(s,a))||wn(s=a.valueOf)&&!Br(l=Ye(s,a))||u!=="string"&&wn(s=a.toString)&&!Br(l=Ye(s,a)))return l;throw Est("Can't convert object to primitive value")}(n,r)}(t,"string");return q3(e)?e:e+""},Q3=Pt.document,Tst=Br(Q3)&&Br(Q3.createElement),t6=function(t){return Tst?Q3.createElement(t):{}},Wj=!la&&!Xe(function(){return Object.defineProperty(t6("div"),"a",{get:function(){return 7}}).a!=7}),Gj=Object.getOwnPropertyDescriptor,qj={f:la?Gj:function(t,e){if(t=Kd(t),e=Z3(e),Wj)try{return Gj(t,e)}catch{}if(Fr(t,e))return M3(!Ye(dst.f,t,e),t[e])}},_st=Pt.String,Pst=Pt.TypeError,_r=function(t){if(Br(t))return t;throw Pst(_st(t)+" is not an object")},jst=Pt.TypeError,Kj=Object.defineProperty,Jd={f:la?Kj:function(t,e,n){if(_r(t),e=Z3(e),_r(n),Wj)try{return Kj(t,e,n)}catch{}if("get"in n||"set"in n)throw jst("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},zl=la?function(t,e,n){return Jd.f(t,e,M3(1,n))}:function(t,e,n){return t[e]=n,t},Ist=Lt(Function.toString);wn(da.inspectSource)||(da.inspectSource=function(t){return Ist(t)});var Uv,Zd,Wv,e6=da.inspectSource,Xj=Pt.WeakMap,Nst=wn(Xj)&&/native code/.test(e6(Xj)),Yj=Y3("keys"),Jj=function(t){return Yj[t]||(Yj[t]=Vj(t))},n6={},r6=Pt.TypeError,Lst=Pt.WeakMap;if(Nst||da.state){var Wu=da.state||(da.state=new Lst),Rst=Lt(Wu.get),Zj=Lt(Wu.has),Mst=Lt(Wu.set);Uv=function(t,e){if(Zj(Wu,t))throw new r6("Object already initialized");return e.facade=t,Mst(Wu,t,e),e},Zd=function(t){return Rst(Wu,t)||{}},Wv=function(t){return Zj(Wu,t)}}else{var $l=Jj("state");n6[$l]=!0,Uv=function(t,e){if(Fr(t,$l))throw new r6("Object already initialized");return e.facade=t,zl(t,$l,e),e},Zd=function(t){return Fr(t,$l)?t[$l]:{}},Wv=function(t){return Fr(t,$l)}}var o6={set:Uv,get:Zd,has:Wv,enforce:function(t){return Wv(t)?Zd(t):Uv(t,{})},getterFor:function(t){return function(e){var n;if(!Br(e)||(n=Zd(e)).type!==t)throw r6("Incompatible receiver, "+t+" required");return n}}},Qj=Function.prototype,zst=la&&Object.getOwnPropertyDescriptor,i6=Fr(Qj,"name"),a6={EXISTS:i6,PROPER:i6&&(function(){}).name==="something",CONFIGURABLE:i6&&(!la||la&&zst(Qj,"name").configurable)},Qd=Tj(function(t){var e=a6.CONFIGURABLE,n=o6.get,r=o6.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;wn(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Fr(u,"name")||e&&u.name!==d)&&zl(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==Pt?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:zl(i,a,u)):f?i[a]=u:X3(a,u)})(Function.prototype,"toString",function(){return wn(this)&&n(this).source||e6(this)})}),$st=Math.ceil,Hst=Math.floor,Gv=function(t){var e=+t;return e!=e||e===0?0:(e>0?Hst:$st)(e)},Vst=Math.max,Ust=Math.min,tp=function(t,e){var n=Gv(t);return n<0?Vst(n+e,0):Ust(n,e)},Wst=Math.min,u6=function(t){return t>0?Wst(Gv(t),9007199254740991):0},qv=function(t){return u6(t.length)},Gst=function(t){return function(e,n,r){var o,i=Kd(e),a=qv(i),u=tp(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}}(!1),tI=Lt([].push),eI=function(t,e){var n,r=Kd(t),o=0,i=[];for(n in r)!Fr(n6,n)&&Fr(r,n)&&tI(i,n);for(;e.length>o;)Fr(r,n=e[o++])&&(~Gst(i,n)||tI(i,n));return i},Kv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],qst=Kv.concat("length","prototype"),Kst={f:Object.getOwnPropertyNames||function(t){return eI(t,qst)}},Xst={f:Object.getOwnPropertySymbols},Yst=Lt([].concat),Jst=Xd("Reflect","ownKeys")||function(t){var e=Kst.f(_r(t)),n=Xst.f;return n?Yst(e,n(t)):e},Zst=function(t,e){for(var n=Jst(e),r=Jd.f,o=qj.f,i=0;i<n.length;i++){var a=n[i];Fr(t,a)||r(t,a,o(e,a))}},Qst=/#|\.prototype\./,ep=function(t,e){var n=elt[tlt(t)];return n==rlt||n!=nlt&&(wn(e)?Xe(e):!!e)},tlt=ep.normalize=function(t){return String(t).replace(Qst,".").toLowerCase()},elt=ep.data={},nlt=ep.NATIVE="N",rlt=ep.POLYFILL="P",olt=ep,ilt=qj.f,pa=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?Pt:l?Pt[u]||X3(u,{}):(Pt[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=ilt(n,r))&&a.value:n[r],!olt(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;Zst(i,o)}(t.sham||o&&o.sham)&&zl(i,"sham",!0),Qd(n,r,i,t)}},nI={};nI[Tr("toStringTag")]="z";var s6=String(nI)==="[object z]",alt=Tr("toStringTag"),ult=Pt.Object,slt=ca(function(){return arguments}())=="Arguments",l6=s6?ca:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=ult(t),alt))=="string"?n:slt?ca(e):(r=ca(e))=="Object"&&wn(e.callee)?"Arguments":r},llt=Pt.String,An=function(t){if(l6(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return llt(t)},clt=/"/g,flt=Lt("".replace);pa({target:"String",proto:!0,forced:Xe(function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3})},{anchor:function(t){return e=t,n=An(fa(this)),r="<a",(r+=' name="'+flt(An(e),clt,""")+'"')+">"+n+"</a>";var e,n,r}});var Xv,rI=function(){var t=_r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},c6=Pt.RegExp,f6=Xe(function(){var t=c6("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),dlt=f6||Xe(function(){return!c6("a","y").sticky}),oI={BROKEN_CARET:f6||Xe(function(){var t=c6("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:dlt,UNSUPPORTED_Y:f6},plt=Object.keys||function(t){return eI(t,Kv)},hlt=la?Object.defineProperties:function(t,e){_r(t);for(var n,r=Kd(e),o=plt(e),i=o.length,a=0;i>a;)Jd.f(t,n=o[a++],r[n]);return t},glt=Xd("document","documentElement"),iI=Jj("IE_PROTO"),d6=function(){},aI=function(t){return"<script>"+t+"<\/script>"},uI=function(t){t.write(aI("")),t.close();var e=t.parentWindow.Object;return t=null,e},Yv=function(){try{Xv=new ActiveXObject("htmlfile")}catch{}var t,e;Yv=typeof document<"u"?document.domain&&Xv?uI(Xv):((e=t6("iframe")).style.display="none",glt.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(aI("document.F=Object")),t.close(),t.F):uI(Xv);for(var n=Kv.length;n--;)delete Yv.prototype[Kv[n]];return Yv()};n6[iI]=!0;var sI,p6,lI=Object.create||function(t,e){var n;return t!==null?(d6.prototype=_r(t),n=new d6,d6.prototype=null,n[iI]=t):n=Yv(),e===void 0?n:hlt(n,e)},vlt=Pt.RegExp,mlt=Xe(function(){var t=vlt(".","s");return!(t.dotAll&&t.exec(`
- `)&&t.flags==="s")}),ylt=Pt.RegExp,blt=Xe(function(){var t=ylt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),wlt=o6.get,Elt=Y3("native-string-replace",String.prototype.replace),Jv=RegExp.prototype.exec,h6=Jv,Dlt=Lt("".charAt),xlt=Lt("".indexOf),Clt=Lt("".replace),g6=Lt("".slice),v6=(p6=/b*/g,Ye(Jv,sI=/a/,"a"),Ye(Jv,p6,"a"),sI.lastIndex!==0||p6.lastIndex!==0),cI=oI.BROKEN_CARET,m6=/()??/.exec("")[1]!==void 0;(v6||m6||cI||mlt||blt)&&(h6=function(t){var e,n,r,o,i,a,u,s=this,l=wlt(s),c=An(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Ye(h6,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=cI&&s.sticky,g=Ye(rI,s),v=s.source,m=0,y=c;if(d&&(g=Clt(g,"y",""),xlt(g,"g")===-1&&(g+="g"),y=g6(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Dlt(c,s.lastIndex-1)!==`
- `)&&(v="(?: "+v+")",y=" "+y,m++),n=new RegExp("^(?:"+v+")",g)),m6&&(n=new RegExp("^"+v+"$(?!\\s)",g)),v6&&(r=s.lastIndex),o=Ye(Jv,d?n:s,y),d?o?(o.input=g6(o.input,m),o[0]=g6(o[0],m),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:v6&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),m6&&o&&o.length>1&&Ye(Elt,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=lI(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var np=h6;pa({target:"RegExp",proto:!0,forced:/./.exec!==np},{exec:np});var Zv=Array.isArray||function(t){return ca(t)=="Array"},fI=function(){},Slt=[],dI=Xd("Reflect","construct"),y6=/^\s*(?:class|function)\b/,Alt=Lt(y6.exec),Olt=!y6.exec(fI),rp=function(t){if(!wn(t))return!1;try{return dI(fI,Slt,t),!0}catch{return!1}},b6=!dI||Xe(function(){var t;return rp(rp.call)||!rp(Object)||!rp(function(){t=!0})||t})?function(t){if(!wn(t))return!1;switch(l6(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Olt||!!Alt(y6,e6(t))}:rp,pI=function(t,e,n){var r=Z3(e);r in t?Jd.f(t,r,M3(0,n)):t[r]=n},klt=Tr("species"),w6=function(t){return U3>=51||!Xe(function(){var e=[];return(e.constructor={})[klt]=function(){return{foo:1}},e[t](Boolean).foo!==1})},Blt=Lt([].slice),Flt=w6("slice"),Tlt=Tr("species"),E6=Pt.Array,_lt=Math.max;function Yr(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function hI(t){var e=t.selection;if(e==null)return!1;var n=Yr(E.nodes(t,{match:function(i){return A.checkNodeType(i,"table-cell")}}),1)[0];if(n){var r=Yr(n,2)[1],o=E.start(t,r);if(Tt.equals(e.anchor,o))return!0}return!1}function gI(t,e){var n,r,o=E.nodes(t,{at:e,match:function(s){return A.getNodeType(s)==="table"}}),i=!1;try{for(var a=function(s){var l=typeof Symbol=="function"&&Symbol.iterator,c=l&&s[l],f=0;if(c)return c.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&f>=s.length&&(s=void 0),{value:s&&s[f++],done:!s}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")}(o),u=a.next();!u.done;u=a.next())u.value,i=!0}catch(s){n={error:s}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i}pa({target:"Array",proto:!0,forced:!Flt},{slice:function(t,e){var n,r,o,i=Kd(this),a=qv(i),u=tp(t,a),s=tp(e===void 0?a:e,a);if(Zv(i)&&(n=i.constructor,(b6(n)&&(n===E6||Zv(n.prototype))||Br(n)&&(n=n[Tlt])===null)&&(n=void 0),n===E6||n===void 0))return Blt(i,u,s);for(r=new(n===void 0?E6:n)(_lt(s-u,0)),o=0;u<s;u++,o++)u in i&&pI(r,o,i[u]);return r.length=o,r}});var vI=Lt(Lt.bind),Plt=Tr("species"),mI=Pt.Array,jlt=function(t,e){return new(function(n){var r;return Zv(n)&&(r=n.constructor,(b6(r)&&(r===mI||Zv(r.prototype))||Br(r)&&(r=r[Plt])===null)&&(r=void 0)),r===void 0?mI:r}(t))(e===0?0:e)},yI=Lt([].push),ha=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,g=J3(s),v=Ij(g),m=function(D,C){return Hj(D),C===void 0?D:vI?vI(D,C):function(){return D.apply(C,arguments)}}(l,c),y=qv(v),h=0,b=f||jlt,w=e?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in v)&&(d=m(p=v[h],h,g),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:yI(w,p)}else switch(t){case 4:return!1;case 7:yI(w,p)}return i?-1:r||o?o:w}},Qv={forEach:ha(0),map:ha(1),filter:ha(2),some:ha(3),every:ha(4),find:ha(5),findIndex:ha(6),filterReject:ha(7)},Ilt=Qv.map;pa({target:"Array",proto:!0,forced:!w6("map")},{map:function(t){return Ilt(this,t,arguments.length>1?arguments[1]:void 0)}});var Nlt=s6?{}.toString:function(){return"[object "+l6(this)+"]"};function t1(t){var e=t.children||[];return e.length===0?[]:(e[0]||{}).children||[]}function bI(t){return t1(t).every(function(e){return!!e.isHeader})}s6||Qd(Object.prototype,"toString",Nlt,{unsafe:!0});var Llt=a6.PROPER,D6=RegExp.prototype,wI=D6.toString,Rlt=Lt(rI),Mlt=Xe(function(){return wI.call({source:"a",flags:"b"})!="/a/b"}),zlt=Llt&&wI.name!="toString";(Mlt||zlt)&&Qd(RegExp.prototype,"toString",function(){var t=_r(this),e=An(t.source),n=t.flags;return"/"+e+"/"+An(n===void 0&&Nj(D6,t)&&!("flags"in D6)?Rlt(t):n)},{unsafe:!0});var x6=Tr("unscopables"),C6=Array.prototype;C6[x6]==null&&Jd.f(C6,x6,{configurable:!0,value:lI(null)});var $lt=Qv.find,EI=!0;"find"in[]&&Array(1).find(function(){EI=!1}),pa({target:"Array",proto:!0,forced:EI},{find:function(t){return $lt(this,t,arguments.length>1?arguments[1]:void 0)}}),C6[x6].find=!0;var S6=Function.prototype,DI=S6.apply,Hlt=S6.bind,xI=S6.call,CI=typeof Reflect=="object"&&Reflect.apply||(Hlt?xI.bind(DI):function(){return xI.apply(DI,arguments)}),Vlt=Tr("species"),A6=RegExp.prototype,SI=function(t,e,n,r){var o=Tr(t),i=!Xe(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!Xe(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[Vlt]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=Lt(/./[o]),s=e(o,""[t],function(l,c,f,p,d){var g=Lt(l),v=c.exec;return v===np||v===A6.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:g(f,c,p)}:{done:!1}});Qd(String.prototype,t,s[0]),Qd(A6,o,s[1])}r&&zl(A6[o],"sham",!0)},Ult=Tr("match"),Wlt=Pt.TypeError,Glt=Tr("species"),qlt=Lt("".charAt),AI=Lt("".charCodeAt),Klt=Lt("".slice),Xlt=function(t){return function(e,n){var r,o,i=An(fa(e)),a=Gv(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=AI(i,a))<55296||r>56319||a+1===u||(o=AI(i,a+1))<56320||o>57343?t?qlt(i,a):r:t?Klt(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),OI=function(t,e,n){return e+(n?Xlt(t,e).length:1)},Ylt=Pt.Array,Jlt=Math.max,kI=function(t,e,n){for(var r=qv(t),o=tp(e,r),i=tp(n===void 0?r:n,r),a=Ylt(Jlt(i-o,0)),u=0;o<i;o++,u++)pI(a,u,t[o]);return a.length=u,a},Zlt=Pt.TypeError,O6=function(t,e){var n=t.exec;if(wn(n)){var r=Ye(n,t,e);return r!==null&&_r(r),r}if(ca(t)==="RegExp")return Ye(np,t,e);throw Zlt("RegExp#exec called on incompatible receiver")},Hl=oI.UNSUPPORTED_Y,Qlt=Math.min,BI=[].push,tct=Lt(/./.exec),Vl=Lt(BI),op=Lt("".slice);SI("split",function(t,e,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a,u,s=An(fa(this)),l=i===void 0?4294967295:i>>>0;if(l===0)return[];if(o===void 0)return[s];if(!Br(a=o)||!((u=a[Ult])!==void 0?u:ca(a)=="RegExp"))return Ye(e,s,o,l);for(var c,f,p,d=[],g=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),v=0,m=new RegExp(o.source,g+"g");(c=Ye(np,m,s))&&!((f=m.lastIndex)>v&&(Vl(d,op(s,v,c.index)),c.length>1&&c.index<s.length&&CI(BI,d,kI(c,1)),p=c[0].length,v=f,d.length>=l));)m.lastIndex===c.index&&m.lastIndex++;return v===s.length?!p&&tct(m,"")||Vl(d,""):Vl(d,op(s,v)),d.length>l?kI(d,0,l):d}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Ye(e,this,o,i)}:e,[function(o,i){var a=fa(this),u=o==null?void 0:K3(o,t);return u?Ye(u,o,a,i):Ye(r,An(a),o,i)},function(o,i){var a=_r(this),u=An(o),s=n(r,a,u,i,r!==e);if(s.done)return s.value;var l=function(w,D){var C,x=_r(w).constructor;return x===void 0||(C=_r(x)[Glt])==null?D:function(S){if(b6(S))return S;throw Wlt($j(S)+" is not a constructor")}(C)}(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Hl?"g":"y"),p=new l(Hl?"^(?:"+a.source+")":a,f),d=i===void 0?4294967295:i>>>0;if(d===0)return[];if(u.length===0)return O6(p,u)===null?[u]:[];for(var g=0,v=0,m=[];v<u.length;){p.lastIndex=Hl?0:v;var y,h=O6(p,Hl?op(u,v):u);if(h===null||(y=Qlt(u6(p.lastIndex+(Hl?v:0)),u.length))===g)v=OI(u,v,c);else{if(Vl(m,op(u,g,v)),m.length===d)return m;for(var b=1;b<=h.length-1;b++)if(Vl(m,h[b]),m.length===d)return m;v=g=y}}return Vl(m,op(u,g)),m}]},!!Xe(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),Hl);var k6=`
- \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,FI=Lt("".replace),e1="["+k6+"]",ect=RegExp("^"+e1+e1+"*"),nct=RegExp(e1+e1+"*$"),B6=function(t){return function(e){var n=An(fa(e));return 1&t&&(n=FI(n,ect,"")),2&t&&(n=FI(n,nct,"")),n}},rct={start:B6(1),end:B6(2),trim:B6(3)},oct=a6.PROPER,ict=rct.trim;function TI(t){return t.length?t[0].tagName.toLowerCase():""}pa({target:"String",proto:!0,forced:function(t){return Xe(function(){return!!k6[t]()||"\u200B\x85\u180E"[t]()!=="\u200B\x85\u180E"||oct&&k6[t].name!==t})}("trim")},{trim:function(){return ict(this)}}),pa({global:!0},{globalThis:Pt}),vr&&(k.fn.append=vr),lo&&(k.fn.on=lo),Si&&(k.fn.focus=Si),gr&&(k.fn.attr=gr),so&&(k.fn.val=so),Ci&&(k.fn.html=Ci),Is&&(k.fn.dataset=Is),_s&&(k.fn.addClass=_s),Ps&&(k.fn.removeClass=Ps),Ms&&(k.fn.children=Ms),D0&&(k.fn.each=D0),Rs&&(k.fn.find=Rs);var ip=!1,_I=0,PI=0,ap=null,up=null,sp=k("body");function jI(t){ip=!1,up=null,ap=null,sp.off("mousemove",II),sp.off("mouseup",jI)}sp.on("mousedown",function(t){var e=t.target;if((e.tagName==="TH"||e.tagName==="TD")&&e.style.cursor==="col-resize"){e.style.cursor="auto",t.preventDefault(),ip=!0;var n=t.clientX;_I=n;var r=e.getBoundingClientRect().width;PI=r,sp.on("mousemove",II),sp.on("mouseup",jI)}});var II=nu(function(t){if(ip&&up!=null&&ap!=null){t.preventDefault();var e=t.clientX,n=PI+(e-_I);(n=Math.floor(100*n)/100)<30&&(n=30),I.setNodes(up,{width:n.toString()},{at:ap})}},100),act={type:"table",renderElem:function(t,e,n){var r=function(u,s){if(u.isDisabled())return!1;var l=u.selection;if(l==null||L.isCollapsed(l))return!0;var c=l.anchor,f=l.focus,p=A.findPath(u,s),d=E.start(u,p),g=E.end(u,p),v=Tt.compare(c,g)<=0&&Tt.compare(c,d)>=0,m=Tt.compare(f,g)<=0&&Tt.compare(f,d)>=0;return!!(v&&m&&_.equals(c.path.slice(0,3),f.path.slice(0,3)))}(n,t),o=t.width,i=o===void 0?"auto":o,a=wt("div",{className:"table-container","data-selected":A.isNodeSelected(n,t),on:{mousedown:function(u){if(u.target.tagName==="DIV"&&u.preventDefault(),!n.isDisabled()){var s=A.findPath(n,t),l=E.start(n,s),c=n.selection;c!=null?c.anchor.path[0]!==s[0]&&n.select(l):n.select(l)}}}},wt("table",{width:i,contentEditable:r},wt("colgroup",null,t1(t).map(function(u){var s=u.width;return wt("col",{width:s===void 0?"auto":s})})),wt("tbody",null,e)));return a}},uct={type:"table-row",renderElem:function(t,e,n){return wt("tr",null,e)}},sct={type:"table-cell",renderElem:function(t,e,n){var r=function(p,d){var g=A.getParentNode(p,d);if(g==null)return!1;var v=A.getParentNode(p,g);return v!=null&&t1(v).some(function(m){return m===d})}(n,t),o=t,i=o.colSpan,a=i===void 0?1:i,u=o.rowSpan,s=u===void 0?1:u,l=o.isHeader,c=l!==void 0&&l;if(!r)return wt("td",{colSpan:a,rowSpan:s},e);var f=wt(c?"th":"td",{colSpan:a,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:nu(function(p){var d=this.elm;if(d!=null){var g=d.getBoundingClientRect(),v=g.left,m=g.width,y=g.top,h=g.height,b=p.clientX,w=p.clientY;ip||(b>v+m-5&&b<v+m&&w>y&&w<y+h?(d.style.cursor="col-resize",up=n,ap=A.findPath(n,t)):ip||(d.style.cursor="auto",up=null,ap=null))}},100)}},e);return f}},lct={selector:"table",preParseHtml:function(t){var e=k(t);if(TI(e)!=="table")return t;var n=e.find("tbody");if(n.length===0)return t;var r=e.find("tr");return e.append(r),n.remove(),e[0]}},cct=Qv.filter;pa({target:"Array",proto:!0,forced:!w6("filter")},{filter:function(t){return cct(this,t,arguments.length>1?arguments[1]:void 0)}});var fct=Math.floor,F6=Lt("".charAt),dct=Lt("".replace),T6=Lt("".slice),pct=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,hct=/\$([$&'`]|\d{1,2})/g,gct=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=hct;return o!==void 0&&(o=J3(o),s=pct),dct(i,s,function(l,c){var f;switch(F6(c,0)){case"$":return"$";case"&":return t;case"`":return T6(e,0,n);case"'":return T6(e,a);case"<":f=o[T6(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=fct(p/10);return d===0?l:d<=u?r[d-1]===void 0?F6(c,1):r[d-1]+F6(c,1):l}f=r[p-1]}return f===void 0?"":f})},_6=Tr("replace"),vct=Math.max,mct=Math.min,yct=Lt([].concat),P6=Lt([].push),NI=Lt("".indexOf),LI=Lt("".slice),bct="a".replace(/./,"$0")==="$0",RI=!!/./[_6]&&/./[_6]("a","$0")==="";SI("replace",function(t,e,n){var r=RI?"$":"$0";return[function(o,i){var a=fa(this),u=o==null?void 0:K3(o,_6);return u?Ye(u,o,a,i):Ye(e,An(a),o,i)},function(o,i){var a=_r(this),u=An(o);if(typeof i=="string"&&NI(i,r)===-1&&NI(i,"$<")===-1){var s=n(e,a,u,i);if(s.done)return s.value}var l=wn(i);l||(i=An(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var p=[];;){var d=O6(a,u);if(d===null||(P6(p,d),!c))break;An(d[0])===""&&(a.lastIndex=OI(u,u6(a.lastIndex),f))}for(var g,v="",m=0,y=0;y<p.length;y++){for(var h=An((d=p[y])[0]),b=vct(mct(Gv(d.index),u.length),0),w=[],D=1;D<d.length;D++)P6(w,(g=d[D])===void 0?g:String(g));var C=d.groups;if(l){var x=yct([h],w,b,u);C!==void 0&&P6(x,C);var S=An(CI(i,void 0,x))}else S=gct(h,u,b,w,C,i);b>=m&&(v+=LI(u,m,b)+S,m=b+h.length)}return v+LI(u,m)}]},!!Xe(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!bct||RI);var wct={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=k(t);(e=e.filter(function(u){return!!ot.isText(u)||!!n.isInline(u)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]);var o=parseInt(r.attr("colSpan")||"1"),i=parseInt(r.attr("rowSpan")||"1"),a=r.attr("width")||"auto";return{type:"table-cell",isHeader:TI(r)==="th",colSpan:o,rowSpan:i,width:a,children:e}}},Ect={selector:"tr:not([data-w-e-type])",parseElemHtml:function(t,e,n){return{type:"table-row",children:e.filter(function(r){return A.getNodeType(r)==="table-cell"})}}},Dct={selector:"table:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=k(t),o="auto";return function(i,a){for(var u="",s=(i.attr("style")||"").split(";"),l=s.length,c=0;c<l;c++){var f=s[c];if(f){var p=f.split(":");p[0].trim()==="width"&&(u=p[1].trim())}}return u}(r)==="100%"&&(o="100%"),r.attr("width")==="100%"&&(o="100%"),{type:"table",width:o,children:e.filter(function(i){return A.getNodeType(i)==="table-row"})}}},xct=function(){function t(){this.title=et("tableModule.insertTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||!!A.getSelectedElems(e).some(function(r){var o=A.getNodeType(r);return o==="pre"||o==="table"||o==="list-item"||!!e.isVoid(r)})},t.prototype.getPanelContentElem=function(e){var n=this;if(this.$content)return this.$content[0];for(var r=k('<div class="w-e-panel-content-table"></div>'),o=k("<span>0 × 0</span>"),i=k("<table></table>"),a=0;a<10;a++){for(var u=k("<tr></tr>"),s=0;s<10;s++){var l=k("<td></td>");l.attr("data-x",s.toString()),l.attr("data-y",a.toString()),u.append(l),l.on("mouseenter",function(c){var f=c.target;if(f!=null){var p=k(f).dataset(),d=p.x,g=p.y;o[0].innerHTML=d+1+" × "+(g+1),i.children().each(function(v){k(v).children().each(function(m){var y=k(m),h=y.dataset(),b=h.x,w=h.y;b<=d&&w<=g?y.addClass("active"):y.removeClass("active")})})}}),l.on("click",function(c){c.preventDefault();var f=c.target;if(f!=null){var p=k(f).dataset(),d=p.x,g=p.y;n.insertTable(e,g+1,d+1)}})}i.append(u)}return r.append(i),r.append(o),this.$content=r,r[0]},t.prototype.insertTable=function(e,n,r){var o=parseInt(n,10),i=parseInt(r,10);if(o&&i&&!(o<=0||i<=0)){A.isSelectedEmptyParagraph(e)&&I.removeNodes(e,{mode:"highest"});var a=function(u,s){for(var l=[],c=0;c<u;c++){for(var f=[],p=0;p<s;p++){var d={type:"table-cell",children:[{text:""}]};c===0&&(d.isHeader=!0),f.push(d)}l.push({type:"table-row",children:f})}return{type:"table",width:"auto",children:l}}(o,i);I.insertNodes(e,a,{mode:"highest"})}},t}(),Cct=function(){function t(){this.title=et("tableModule.deleteTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){this.isDisabled(e)||I.removeNodes(e,{mode:"highest"})},t}(),Sct=function(){function t(){this.title=et("tableModule.insertRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=Yr(E.nodes(e,{match:function(d){return A.checkNodeType(d,"table-cell")},universal:!0}),1),o=Yr(r[0],2),i=o[0],a=o[1],u=A.getParentNode(e,i),s=(u==null?void 0:u.children.length)||0;if(s!==0){for(var l={type:"table-row",children:[]},c=0;c<s;c++)l.children.push({type:"table-cell",children:[{text:""}]});var f=_.parent(a),p=_.next(f);I.insertNodes(e,l,{at:p})}}},t}(),Act=function(){function t(){this.title=et("tableModule.deleteRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(e,"table-row")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=Yr(E.nodes(e,{match:function(s){return A.checkNodeType(s,"table-row")},universal:!0}),1),o=Yr(r[0],2),i=o[0],a=o[1],u=A.getParentNode(e,i);((u==null?void 0:u.children.length)||0)<=1?I.removeNodes(e,{mode:"highest"}):I.removeNodes(e,{at:a})}},t}(),MI={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},j6=t6("span").classList,zI=j6&&j6.constructor&&j6.constructor.prototype,Oct=zI===Object.prototype?void 0:zI,kct=Qv.forEach,Bct=function(t,e){var n=[].forEach;return!!n&&Xe(function(){n.call(null,function(){throw 1},1)})}(),I6=Bct?[].forEach:function(t){return kct(this,t,arguments.length>1?arguments[1]:void 0)},$I=function(t){if(t&&t.forEach!==I6)try{zl(t,"forEach",I6)}catch{t.forEach=I6}};for(var N6 in MI)MI[N6]&&$I(Pt[N6]&&Pt[N6].prototype);$I(Oct);var Fct=function(){function t(){this.title=et("tableModule.insertCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=Yr(E.nodes(e,{match:function(l){return A.checkNodeType(l,"table-cell")},universal:!0}),1),o=Yr(r[0],2),i=o[0],a=o[1],u=A.getParentNode(e,i);if(u!=null){var s=A.getParentNode(e,u);s!=null&&(s.children||[]).forEach(function(l,c){ct.isElement(l)&&(l.children||[]).forEach(function(f){var p=A.findPath(e,f);if(p.length===a.length&&Bj(p.slice(-1),a.slice(-1))){var d={type:"table-cell",children:[{text:""}]};c===0&&bI(s)&&(d.isHeader=!0),I.insertNodes(e,d,{at:p})}})})}}},t}(),Tct=function(){function t(){this.title=et("tableModule.deleteCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(e,"table-cell")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=Yr(E.nodes(e,{match:function(c){return A.checkNodeType(c,"table-cell")},universal:!0}),1),o=Yr(r[0],2),i=o[0],a=o[1],u=A.getParentNode(e,i),s=(u==null?void 0:u.children.length)||0;if(!u||s<=1)I.removeNodes(e,{mode:"highest"});else{var l=A.getParentNode(e,u);l!=null&&(l.children||[]).forEach(function(c){ct.isElement(c)&&(c.children||[]).forEach(function(f){var p=A.findPath(e,f);p.length===a.length&&Bj(p.slice(-1),a.slice(-1))&&I.removeNodes(e,{at:p})})})}}},t}(),_ct=function(){function t(){this.title=et("tableModule.header"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){var n=A.getSelectedNodeByType(e,"table");return n!=null&&bI(n)},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=!n,o=A.getSelectedNodeByType(e,"table");o!=null&&t1(o).forEach(function(i){return I.setNodes(e,{isHeader:r},{at:A.findPath(e,i)})})}},t}(),Pct=function(){function t(){this.title=et("tableModule.widthAuto"),this.iconSvg='<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){var n=A.getSelectedNodeByType(e,"table");return n!=null&&n.width==="100%"},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r={width:n?"auto":"100%"};I.setNodes(e,r,{mode:"highest"})}},t}(),jct={renderElems:[act,uct,sct],elemsToHtml:[{type:"table",elemToHtml:function(t,e){var n=t.width;return'<table style="width: '+(n===void 0?"auto":n)+';"><tbody>'+e+"</tbody></table>"}},{type:"table-row",elemToHtml:function(t,e){return"<tr>"+e+"</tr>"}},{type:"table-cell",elemToHtml:function(t,e){var n=t,r=n.colSpan,o=r===void 0?1:r,i=n.rowSpan,a=i===void 0?1:i,u=n.isHeader,s=u!==void 0&&u,l=n.width,c=s?"th":"td";return"<"+c+' colSpan="'+o+'" rowSpan="'+a+'" width="'+(l===void 0?"auto":l)+'">'+e+"</"+c+">"}}],preParseHtml:[lct],parseElemsHtml:[wct,Ect,Dct],menus:[{key:"insertTable",factory:function(){return new xct}},{key:"deleteTable",factory:function(){return new Cct}},{key:"insertTableRow",factory:function(){return new Sct}},{key:"deleteTableRow",factory:function(){return new Act}},{key:"insertTableCol",factory:function(){return new Fct}},{key:"deleteTableCol",factory:function(){return new Tct}},{key:"tableHeader",factory:function(){return new _ct}},{key:"tableFullWidth",factory:function(){return new Pct}}],editorPlugin:function(t){var e=t.insertBreak,n=t.deleteBackward,r=t.deleteForward,o=t.normalizeNode,i=t.insertData,a=t.handleTab,u=t.selectAll,s=t;return s.insertBreak=function(){A.getSelectedNodeByType(s,"table")==null?e():s.insertText(`
- `)},s.deleteBackward=function(l){if(!hI(s)){var c=s.selection;if(c){var f=E.before(s,c);if(f){var p=gI(s,f),d=gI(s,c);if(p&&!d)return}}n(l)}},s.handleTab=function(){var l;if(A.getSelectedNodeByType(s,"table")){var c=E.above(t);A.checkNodeType(c[0],"table-cell")&&I.select(t,c[1]);var f=E.next(t);if(f)f[0]&&f[0].text&&(f=(l=E.above(t,{at:f[1]}))!==null&&l!==void 0?l:f),I.select(t,f[1]);else{var p=s.children||[],d=p.length;if(A.checkNodeType(p[d-1],"table")){var g=A.genEmptyParagraph();I.insertNodes(s,g,{at:[d]}),s.handleTab()}}}else a()},s.deleteForward=function(l){hI(s)||r(l)},s.normalizeNode=function(l){var c=Yr(l,2),f=c[0],p=c[1];if(A.getNodeType(f)!=="table")return o([f,p]);if(A.isLastNode(s,f)){var d=A.genEmptyParagraph();I.insertNodes(s,d,{at:[p[0]+1]})}},s.insertData=function(l){if(A.getSelectedNodeByType(s,"table")!=null){var c=l.getData("text/plain");c===`
- `||/<img[^>]+>/.test(l.getData("text/html"))?i(l):E.insertText(s,c)}else i(l)},s.selectAll=function(){var l=s.selection;if(l!=null){var c=A.getSelectedNodeByType(s,"table-cell");if(c!=null){var f=l.anchor,p=l.focus;if(_.equals(f.path.slice(0,3),p.path.slice(0,3)))if(tt.string(c).length!==0){var d=A.findPath(s,c),g={anchor:E.start(s,d),focus:E.end(s,d)};s.select(g)}else u();else u()}else u()}else u()},s}};Vn("en",{videoModule:{delete:"Delete",uploadVideo:"Upload video",insertVideo:"Insert video",videoSrc:"Video source",videoSrcPlaceHolder:"Video file url, or third-party <iframe>",videoPoster:"Video poster",videoPosterPlaceHolder:"Poster image url",ok:"Ok",editSize:"Edit size",width:"Width",height:"Height"}}),Vn("zh-CN",{videoModule:{delete:"\u5220\u9664\u89C6\u9891",uploadVideo:"\u4E0A\u4F20\u89C6\u9891",insertVideo:"\u63D2\u5165\u89C6\u9891",videoSrc:"\u89C6\u9891\u5730\u5740",videoSrcPlaceHolder:"\u89C6\u9891\u6587\u4EF6 url \u6216\u7B2C\u4E09\u65B9 <iframe>",videoPoster:"\u89C6\u9891\u5C01\u9762",videoPosterPlaceHolder:"\u5C01\u9762\u56FE\u7247 url",ok:"\u786E\u5B9A",editSize:"\u4FEE\u6539\u5C3A\u5BF8",width:"\u5BBD\u5EA6",height:"\u9AD8\u5EA6"}});var n1=function(){return n1=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n1.apply(this,arguments)};function r1(t,e,n,r){return new(n||(n=Promise))(function(o,i){function a(l){try{s(r.next(l))}catch(c){i(c)}}function u(l){try{s(r.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof n?c:new n(function(f){f(c)})).then(a,u)}s((r=r.apply(t,e||[])).next())})}function o1(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(s){return function(l){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(c[0]===6&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(f){c=[6,f],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([s,l])}}}function Gu(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}var HI=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function L6(t){var e={exports:{}};return t(e,e.exports),e.exports}var ga,i1,a1=function(t){return t&&t.Math==Math&&t},rt=a1(typeof globalThis=="object"&&globalThis)||a1(typeof window=="object"&&window)||a1(typeof self=="object"&&self)||a1(typeof HI=="object"&&HI)||function(){return this}()||Function("return this")(),fe=function(t){try{return!!t()}catch{return!0}},xo=!fe(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),lp=Function.prototype.call,le=lp.bind?lp.bind(lp):function(){return lp.apply(lp,arguments)},VI={}.propertyIsEnumerable,UI=Object.getOwnPropertyDescriptor,Ict={f:UI&&!VI.call({1:2},1)?function(t){var e=UI(this,t);return!!e&&e.enumerable}:VI},u1=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},WI=Function.prototype,R6=WI.bind,M6=WI.call,Nct=R6&&R6.bind(M6),St=R6?function(t){return t&&Nct(M6,t)}:function(t){return t&&function(){return M6.apply(t,arguments)}},Lct=St({}.toString),Rct=St("".slice),Co=function(t){return Rct(Lct(t),8,-1)},z6=rt.Object,Mct=St("".split),$6=fe(function(){return!z6("z").propertyIsEnumerable(0)})?function(t){return Co(t)=="String"?Mct(t,""):z6(t)}:z6,zct=rt.TypeError,cp=function(t){if(t==null)throw zct("Can't call method on "+t);return t},va=function(t){return $6(cp(t))},re=function(t){return typeof t=="function"},ge=function(t){return typeof t=="object"?t!==null:re(t)},qu=function(t,e){return arguments.length<2?function(n){return re(n)?n:void 0}(rt[t]):rt[t]&&rt[t][e]},fp=St({}.isPrototypeOf),Ul=qu("navigator","userAgent")||"",GI=rt.process,qI=rt.Deno,KI=GI&&GI.versions||qI&&qI.version,XI=KI&&KI.v8;XI&&(i1=(ga=XI.split("."))[0]>0&&ga[0]<4?1:+(ga[0]+ga[1])),!i1&&Ul&&(!(ga=Ul.match(/Edge\/(\d+)/))||ga[1]>=74)&&(ga=Ul.match(/Chrome\/(\d+)/))&&(i1=+ga[1]);var dp=i1,H6=!!Object.getOwnPropertySymbols&&!fe(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&dp&&dp<41}),V6=H6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",$ct=rt.Object,U6=V6?function(t){return typeof t=="symbol"}:function(t){var e=qu("Symbol");return re(e)&&fp(e.prototype,$ct(t))},Hct=rt.String,s1=function(t){try{return Hct(t)}catch{return"Object"}},Vct=rt.TypeError,ma=function(t){if(re(t))return t;throw Vct(s1(t)+" is not a function")},pp=function(t,e){var n=t[e];return n==null?void 0:ma(n)},Uct=rt.TypeError,Wct=Object.defineProperty,W6=function(t,e){try{Wct(rt,t,{value:e,configurable:!0,writable:!0})}catch{rt[t]=e}return e},ya=rt["__core-js_shared__"]||W6("__core-js_shared__",{}),G6=L6(function(t){(t.exports=function(e,n){return ya[e]||(ya[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),Gct=rt.Object,l1=function(t){return Gct(cp(t))},qct=St({}.hasOwnProperty),Je=Object.hasOwn||function(t,e){return qct(l1(t),e)},Kct=0,Xct=Math.random(),Yct=St(1 .toString),q6=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Yct(++Kct+Xct,36)},hp=G6("wks"),Ku=rt.Symbol,YI=Ku&&Ku.for,Jct=V6?Ku:Ku&&Ku.withoutSetter||q6,Me=function(t){if(!Je(hp,t)||!H6&&typeof hp[t]!="string"){var e="Symbol."+t;H6&&Je(Ku,t)?hp[t]=Ku[t]:hp[t]=V6&&YI?YI(e):Jct(e)}return hp[t]},Zct=rt.TypeError,Qct=Me("toPrimitive"),K6=function(t){var e=function(n,r){if(!ge(n)||U6(n))return n;var o,i=pp(n,Qct);if(i){if(r===void 0&&(r="default"),o=le(i,n,r),!ge(o)||U6(o))return o;throw Zct("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&re(s=a.toString)&&!ge(l=le(s,a))||re(s=a.valueOf)&&!ge(l=le(s,a))||u!=="string"&&re(s=a.toString)&&!ge(l=le(s,a)))return l;throw Uct("Can't convert object to primitive value")}(n,r)}(t,"string");return U6(e)?e:e+""},X6=rt.document,tft=ge(X6)&&ge(X6.createElement),gp=function(t){return tft?X6.createElement(t):{}},JI=!xo&&!fe(function(){return Object.defineProperty(gp("div"),"a",{get:function(){return 7}}).a!=7}),ZI=Object.getOwnPropertyDescriptor,Y6={f:xo?ZI:function(t,e){if(t=va(t),e=K6(e),JI)try{return ZI(t,e)}catch{}if(Je(t,e))return u1(!le(Ict.f,t,e),t[e])}},eft=rt.String,nft=rt.TypeError,fn=function(t){if(ge(t))return t;throw nft(eft(t)+" is not an object")},rft=rt.TypeError,QI=Object.defineProperty,ei={f:xo?QI:function(t,e,n){if(fn(t),e=K6(e),fn(n),JI)try{return QI(t,e,n)}catch{}if("get"in n||"set"in n)throw rft("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},ba=xo?function(t,e,n){return ei.f(t,e,u1(1,n))}:function(t,e,n){return t[e]=n,t},oft=St(Function.toString);re(ya.inspectSource)||(ya.inspectSource=function(t){return oft(t)});var c1,vp,f1,d1=ya.inspectSource,tN=rt.WeakMap,eN=re(tN)&&/native code/.test(d1(tN)),nN=G6("keys"),J6=function(t){return nN[t]||(nN[t]=q6(t))},p1={},Z6=rt.TypeError,ift=rt.WeakMap;if(eN||ya.state){var Xu=ya.state||(ya.state=new ift),aft=St(Xu.get),rN=St(Xu.has),uft=St(Xu.set);c1=function(t,e){if(rN(Xu,t))throw new Z6("Object already initialized");return e.facade=t,uft(Xu,t,e),e},vp=function(t){return aft(Xu,t)||{}},f1=function(t){return rN(Xu,t)}}else{var Wl=J6("state");p1[Wl]=!0,c1=function(t,e){if(Je(t,Wl))throw new Z6("Object already initialized");return e.facade=t,ba(t,Wl,e),e},vp=function(t){return Je(t,Wl)?t[Wl]:{}},f1=function(t){return Je(t,Wl)}}var cr={set:c1,get:vp,has:f1,enforce:function(t){return f1(t)?vp(t):c1(t,{})},getterFor:function(t){return function(e){var n;if(!ge(e)||(n=vp(e)).type!==t)throw Z6("Incompatible receiver, "+t+" required");return n}}},oN=Function.prototype,sft=xo&&Object.getOwnPropertyDescriptor,Q6=Je(oN,"name"),Gl={EXISTS:Q6,PROPER:Q6&&(function(){}).name==="something",CONFIGURABLE:Q6&&(!xo||xo&&sft(oN,"name").configurable)},fr=L6(function(t){var e=Gl.CONFIGURABLE,n=cr.get,r=cr.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;re(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Je(u,"name")||e&&u.name!==d)&&ba(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==rt?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:ba(i,a,u)):f?i[a]=u:W6(a,u)})(Function.prototype,"toString",function(){return re(this)&&n(this).source||d1(this)})}),lft=Math.ceil,cft=Math.floor,h1=function(t){var e=+t;return e!=e||e===0?0:(e>0?cft:lft)(e)},fft=Math.max,dft=Math.min,mp=function(t,e){var n=h1(t);return n<0?fft(n+e,0):dft(n,e)},pft=Math.min,iN=function(t){return t>0?pft(h1(t),9007199254740991):0},yp=function(t){return iN(t.length)},aN=function(t){return function(e,n,r){var o,i=va(e),a=yp(i),u=mp(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},uN={includes:aN(!0),indexOf:aN(!1)},hft=uN.indexOf,sN=St([].push),lN=function(t,e){var n,r=va(t),o=0,i=[];for(n in r)!Je(p1,n)&&Je(r,n)&&sN(i,n);for(;e.length>o;)Je(r,n=e[o++])&&(~hft(i,n)||sN(i,n));return i},g1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],gft=g1.concat("length","prototype"),v1={f:Object.getOwnPropertyNames||function(t){return lN(t,gft)}},vft={f:Object.getOwnPropertySymbols},mft=St([].concat),yft=qu("Reflect","ownKeys")||function(t){var e=v1.f(fn(t)),n=vft.f;return n?mft(e,n(t)):e},bft=function(t,e){for(var n=yft(e),r=ei.f,o=Y6.f,i=0;i<n.length;i++){var a=n[i];Je(t,a)||r(t,a,o(e,a))}},wft=/#|\.prototype\./,bp=function(t,e){var n=Dft[Eft(t)];return n==Cft||n!=xft&&(re(e)?fe(e):!!e)},Eft=bp.normalize=function(t){return String(t).replace(wft,".").toLowerCase()},Dft=bp.data={},xft=bp.NATIVE="N",Cft=bp.POLYFILL="P",m1=bp,Sft=Y6.f,qn=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?rt:l?rt[u]||W6(u,{}):(rt[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=Sft(n,r))&&a.value:n[r],!m1(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;bft(i,o)}(t.sham||o&&o.sham)&&ba(i,"sham",!0),fr(n,r,i,t)}},cN={};cN[Me("toStringTag")]="z";var t8=String(cN)==="[object z]",Aft=Me("toStringTag"),Oft=rt.Object,kft=Co(function(){return arguments}())=="Arguments",y1=t8?Co:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=Oft(t),Aft))=="string"?n:kft?Co(e):(r=Co(e))=="Object"&&re(e.callee)?"Arguments":r},Bft=rt.String,Pr=function(t){if(y1(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Bft(t)},e8=`
- \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,fN=St("".replace),b1="["+e8+"]",Fft=RegExp("^"+b1+b1+"*"),Tft=RegExp(b1+b1+"*$"),n8=function(t){return function(e){var n=Pr(cp(e));return 1&t&&(n=fN(n,Fft,"")),2&t&&(n=fN(n,Tft,"")),n}},_ft={start:n8(1),end:n8(2),trim:n8(3)},Pft=Gl.PROPER,jft=_ft.trim;function dN(t){return t.length?t[0].tagName.toLowerCase():""}function pN(t,e,n){e===void 0&&(e="auto"),n===void 0&&(n="auto");var r=k(t);return r.attr("width",e),r.attr("height",n),r[0].outerHTML}qn({target:"String",proto:!0,forced:fe(function(){return!!e8.trim()||"\u200B\x85\u180E".trim()!=="\u200B\x85\u180E"||Pft&&e8.trim.name!=="trim"})},{trim:function(){return jft(this)}}),qn({global:!0},{globalThis:rt}),vr&&(k.fn.append=vr),lo&&(k.fn.on=lo),Si&&(k.fn.focus=Si),gr&&(k.fn.attr=gr),so&&(k.fn.val=so),Ci&&(k.fn.html=Ci),Ls&&(k.fn.parent=Ls),js&&(k.fn.hasClass=js),$s&&(k.fn.empty=$s);var w1,Ift={type:"video",renderElem:function(t,e,n){var r,o=t,i=o.src,a=i===void 0?"":i,u=o.poster,s=u===void 0?"":u,l=o.width,c=l===void 0?"auto":l,f=o.height,p=f===void 0?"auto":f,d=A.isNodeSelected(n,t);if(a.trim().indexOf("<iframe ")===0)r=wt("div",{className:"w-e-textarea-video-container","data-selected":d?"true":"",innerHTML:pN(a,c,p)});else{var g=wt("video",{poster:s,controls:!0},wt("source",{src:a,type:"video/mp4"}),`Sorry, your browser doesn't support embedded videos.
- \u62B1\u6B49\uFF0C\u6D4F\u89C8\u5668\u4E0D\u652F\u6301 video \u89C6\u9891`);c!=="auto"&&(g.data.width=c),p!=="auto"&&(g.data.height=p),r=wt("div",{className:"w-e-textarea-video-container","data-selected":d?"true":""},g)}return Hs("div",{props:{contentEditable:!1},on:{mousedown:function(v){return v.preventDefault()}}},r)}},Nft={type:"video",elemToHtml:function(t,e){var n=t,r=n.src,o=r===void 0?"":r,i=n.poster,a=i===void 0?"":i,u=n.width,s=u===void 0?"auto":u,l=n.height,c=l===void 0?"auto":l,f=`<div data-w-e-type="video" data-w-e-is-void>
- `;return o.trim().indexOf("<iframe ")===0?f+=pN(o,s,c):f+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+c+'"><source src="'+o+'" type="video/mp4"/></video>',f+`
- </div>`}},Lft=Object.keys||function(t){return lN(t,g1)},Rft=xo?Object.defineProperties:function(t,e){fn(t);for(var n,r=va(e),o=Lft(e),i=o.length,a=0;i>a;)ei.f(t,n=o[a++],r[n]);return t},r8=qu("document","documentElement"),hN=J6("IE_PROTO"),o8=function(){},gN=function(t){return"<script>"+t+"<\/script>"},vN=function(t){t.write(gN("")),t.close();var e=t.parentWindow.Object;return t=null,e},E1=function(){try{w1=new ActiveXObject("htmlfile")}catch{}var t,e;E1=typeof document<"u"?document.domain&&w1?vN(w1):((e=gp("iframe")).style.display="none",r8.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(gN("document.F=Object")),t.close(),t.F):vN(w1);for(var n=g1.length;n--;)delete E1.prototype[g1[n]];return E1()};p1[hN]=!0;var i8=Object.create||function(t,e){var n;return t!==null?(o8.prototype=fn(t),n=new o8,o8.prototype=null,n[hN]=t):n=E1(),e===void 0?n:Rft(n,e)},a8=Me("unscopables"),u8=Array.prototype;u8[a8]==null&&ei.f(u8,a8,{configurable:!0,value:i8(null)});var wp=function(t){u8[a8][t]=!0},Mft=uN.includes;qn({target:"Array",proto:!0},{includes:function(t){return Mft(this,t,arguments.length>1?arguments[1]:void 0)}}),wp("includes");var zft={selector:"iframe,video,p",preParseHtml:function(t){var e=k(t),n=e;if(dN(e)==="p"){var r=e.children();if(r.length===1){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=k(o))}}var a=dN(n);if(a!=="iframe"&&a!=="video"||n.parent().attr("data-w-e-type")==="video")return n[0];var u=k('<div data-w-e-type="video" data-w-e-is-void></div>');return u.append(n),u[0]}},mN=St(St.bind),Ep=function(t,e){return ma(t),e===void 0?t:mN?mN(t,e):function(){return t.apply(e,arguments)}},D1=Array.isArray||function(t){return Co(t)=="Array"},yN=function(){},$ft=[],bN=qu("Reflect","construct"),s8=/^\s*(?:class|function)\b/,Hft=St(s8.exec),Vft=!s8.exec(yN),Dp=function(t){if(!re(t))return!1;try{return bN(yN,$ft,t),!0}catch{return!1}},l8=!bN||fe(function(){var t;return Dp(Dp.call)||!Dp(Object)||!Dp(function(){t=!0})||t})?function(t){if(!re(t))return!1;switch(y1(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Vft||!!Hft(s8,d1(t))}:Dp,Uft=Me("species"),wN=rt.Array,Wft=function(t,e){return new(function(n){var r;return D1(n)&&(r=n.constructor,(l8(r)&&(r===wN||D1(r.prototype))||ge(r)&&(r=r[Uft])===null)&&(r=void 0)),r===void 0?wN:r}(t))(e===0?0:e)},EN=St([].push),wa=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,g=l1(s),v=$6(g),m=Ep(l,c),y=yp(v),h=0,b=f||Wft,w=e?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in v)&&(d=m(p=v[h],h,g),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:EN(w,p)}else switch(t){case 4:return!1;case 7:EN(w,p)}return i?-1:r||o?o:w}},c8={forEach:wa(0),map:wa(1),filter:wa(2),some:wa(3),every:wa(4),find:wa(5),findIndex:wa(6),filterReject:wa(7)},Gft=c8.find,DN=!0;"find"in[]&&Array(1).find(function(){DN=!1}),qn({target:"Array",proto:!0,forced:DN},{find:function(t){return Gft(this,t,arguments.length>1?arguments[1]:void 0)}}),wp("find");var qft=t8?{}.toString:function(){return"[object "+y1(this)+"]"};function xN(t,e,n,r){return e===void 0&&(e=""),n===void 0&&(n="auto"),r===void 0&&(r="auto"),{type:"video",src:t,poster:e,width:n,height:r,children:[{text:""}]}}t8||fr(Object.prototype,"toString",qft,{unsafe:!0});var CN,f8,Kft={selector:'div[data-w-e-type="video"]',parseElemHtml:function(t,e,n){var r=k(t),o="",i="",a="auto",u="auto",s=r.find("iframe");if(s.length>0)return a=s.attr("width")||"auto",u=s.attr("height")||"auto",xN(o=s[0].outerHTML,i,a,u);var l=r.find("video");return(o=l.attr("src")||"")||l.length>0&&(o=l.find("source").attr("src")||""),a=l.attr("width")||"auto",u=l.attr("height")||"auto",xN(o,i=l.attr("poster")||"",a,u)}},SN=function(){var t=fn(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},d8=rt.RegExp,p8=fe(function(){var t=d8("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),Xft=p8||fe(function(){return!d8("a","y").sticky}),Yft={BROKEN_CARET:p8||fe(function(){var t=d8("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:Xft,UNSUPPORTED_Y:p8},Jft=rt.RegExp,Zft=fe(function(){var t=Jft(".","s");return!(t.dotAll&&t.exec(`
- `)&&t.flags==="s")}),Qft=rt.RegExp,tdt=fe(function(){var t=Qft("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),edt=cr.get,ndt=G6("native-string-replace",String.prototype.replace),x1=RegExp.prototype.exec,h8=x1,rdt=St("".charAt),odt=St("".indexOf),idt=St("".replace),g8=St("".slice),v8=(f8=/b*/g,le(x1,CN=/a/,"a"),le(x1,f8,"a"),CN.lastIndex!==0||f8.lastIndex!==0),AN=Yft.BROKEN_CARET,m8=/()??/.exec("")[1]!==void 0;(v8||m8||AN||Zft||tdt)&&(h8=function(t){var e,n,r,o,i,a,u,s=this,l=edt(s),c=Pr(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=le(h8,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=AN&&s.sticky,g=le(SN,s),v=s.source,m=0,y=c;if(d&&(g=idt(g,"y",""),odt(g,"g")===-1&&(g+="g"),y=g8(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&rdt(c,s.lastIndex-1)!==`
- `)&&(v="(?: "+v+")",y=" "+y,m++),n=new RegExp("^(?:"+v+")",g)),m8&&(n=new RegExp("^"+v+"$(?!\\s)",g)),v8&&(r=s.lastIndex),o=le(x1,d?n:s,y),d?o?(o.input=g8(o.input,m),o[0]=g8(o[0],m),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:v8&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),m8&&o&&o.length>1&&le(ndt,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=i8(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var C1=h8;qn({target:"RegExp",proto:!0,forced:/./.exec!==C1},{exec:C1});var y8=Function.prototype,ON=y8.apply,adt=y8.bind,kN=y8.call,BN=typeof Reflect=="object"&&Reflect.apply||(adt?kN.bind(ON):function(){return kN.apply(ON,arguments)}),FN=(Me("species"),RegExp.prototype),udt=St("".charAt),TN=St("".charCodeAt),sdt=St("".slice),_N=function(t){return function(e,n){var r,o,i=Pr(cp(e)),a=h1(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=TN(i,a))<55296||r>56319||a+1===u||(o=TN(i,a+1))<56320||o>57343?t?udt(i,a):r:t?sdt(i,a,a+2):o-56320+(r-55296<<10)+65536}},PN={codeAt:_N(!1),charAt:_N(!0)},ldt=PN.charAt,cdt=function(t,e,n){return e+(n?ldt(t,e).length:1)},fdt=Math.floor,b8=St("".charAt),ddt=St("".replace),w8=St("".slice),pdt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,hdt=/\$([$&'`]|\d{1,2})/g,gdt=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=hdt;return o!==void 0&&(o=l1(o),s=pdt),ddt(i,s,function(l,c){var f;switch(b8(c,0)){case"$":return"$";case"&":return t;case"`":return w8(e,0,n);case"'":return w8(e,a);case"<":f=o[w8(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=fdt(p/10);return d===0?l:d<=u?r[d-1]===void 0?b8(c,1):r[d-1]+b8(c,1):l}f=r[p-1]}return f===void 0?"":f})},vdt=rt.TypeError,mdt=function(t,e){var n=t.exec;if(re(n)){var r=le(n,t,e);return r!==null&&fn(r),r}if(Co(t)==="RegExp")return le(C1,t,e);throw vdt("RegExp#exec called on incompatible receiver")},E8=Me("replace"),ydt=Math.max,bdt=Math.min,wdt=St([].concat),D8=St([].push),jN=St("".indexOf),IN=St("".slice),Edt="a".replace(/./,"$0")==="$0",NN=!!/./[E8]&&/./[E8]("a","$0")==="";function LN(t){return t===void 0&&(t="r"),t+"-"+j7()}(function(t,e,n,r){var o=Me(t),i=!fe(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!fe(function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=St(/./[o]),s=function(l,c,f){var p=NN?"$":"$0";return[function(d,g){var v=cp(this),m=d==null?void 0:pp(d,E8);return m?le(m,d,v,g):le(c,Pr(v),d,g)},function(d,g){var v=fn(this),m=Pr(d);if(typeof g=="string"&&jN(g,p)===-1&&jN(g,"$<")===-1){var y=f(c,v,m,g);if(y.done)return y.value}var h=re(g);h||(g=Pr(g));var b=v.global;if(b){var w=v.unicode;v.lastIndex=0}for(var D=[];;){var C=mdt(v,m);if(C===null||(D8(D,C),!b))break;Pr(C[0])===""&&(v.lastIndex=cdt(m,iN(v.lastIndex),w))}for(var x,S="",F=0,z=0;z<D.length;z++){for(var M=Pr((C=D[z])[0]),R=ydt(bdt(h1(C.index),m.length),0),K=[],V=1;V<C.length;V++)D8(K,(x=C[V])===void 0?x:String(x));var U=C.groups;if(h){var W=wdt([M],K,R,m);U!==void 0&&D8(W,U);var Z=Pr(BN(g,void 0,W))}else Z=gdt(M,m,R,K,U,g);R>=F&&(S+=IN(m,F,R)+Z,F=R+M.length)}return S+IN(m,F)}]}(0,""[t],function(l,c,f,p,d){var g=St(l),v=c.exec;return v===C1||v===FN.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:g(f,c,p)}:{done:!1}});fr(String.prototype,t,s[0]),fr(FN,o,s[1])}})("replace",0,!!fe(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!Edt||NN);var S1=rt.Promise,A1=function(t,e,n){for(var r in e)fr(t,r,e[r],n);return t},Ddt=rt.String,xdt=rt.TypeError,ql=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=St(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch{}return function(r,o){return fn(r),function(i){if(typeof i=="object"||re(i))return i;throw xdt("Can't set "+Ddt(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),Cdt=ei.f,RN=Me("toStringTag"),O1=function(t,e,n){t&&!Je(t=n?t:t.prototype,RN)&&Cdt(t,RN,{configurable:!0,value:e})},MN=Me("species"),Sdt=rt.TypeError,x8=function(t,e){if(fp(e,t))return t;throw Sdt("Incorrect invocation")},Kl={},Adt=Me("iterator"),Odt=Array.prototype,kdt=Me("iterator"),zN=function(t){if(t!=null)return pp(t,kdt)||pp(t,"@@iterator")||Kl[y1(t)]},Bdt=rt.TypeError,$N=function(t,e,n){var r,o;fn(t);try{if(!(r=pp(t,"return"))){if(e==="throw")throw n;return n}r=le(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return fn(r),n},Fdt=rt.TypeError,k1=function(t,e){this.stopped=t,this.result=e},HN=k1.prototype,B1=function(t,e,n){var r,o,i,a,u,s,l,c,f=n&&n.that,p=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),g=!(!n||!n.INTERRUPTED),v=Ep(e,f),m=function(h){return r&&$N(r,"normal",h),new k1(!0,h)},y=function(h){return p?(fn(h),g?v(h[0],h[1],m):v(h[0],h[1])):g?v(h,m):v(h)};if(d)r=t;else{if(!(o=zN(t)))throw Fdt(s1(t)+" is not iterable");if((c=o)!==void 0&&(Kl.Array===c||Odt[Adt]===c)){for(i=0,a=yp(t);a>i;i++)if((u=y(t[i]))&&fp(HN,u))return u;return new k1(!1)}r=function(h,b){var w=arguments.length<2?zN(h):b;if(ma(w))return fn(le(w,h));throw Bdt(s1(h)+" is not iterable")}(t,o)}for(s=r.next;!(l=le(s,r)).done;){try{u=y(l.value)}catch(h){$N(r,"throw",h)}if(typeof u=="object"&&u&&fp(HN,u))return u}return new k1(!1)},VN=Me("iterator"),UN=!1;try{var Tdt=0,WN={next:function(){return{done:!!Tdt++}},return:function(){UN=!0}};WN[VN]=function(){return this},Array.from(WN,function(){throw 2})}catch{}var xp,Xl,GN,C8,qN=function(t,e){if(!e&&!UN)return!1;var n=!1;try{var r={};r[VN]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch{}return n},_dt=rt.TypeError,Pdt=Me("species"),KN=St([].slice),XN=/(?:ipad|iphone|ipod).*applewebkit/i.test(Ul),Ea=Co(rt.process)=="process",S8=rt.setImmediate,A8=rt.clearImmediate,jdt=rt.process,O8=rt.Dispatch,Idt=rt.Function,YN=rt.MessageChannel,Ndt=rt.String,k8=0,Cp={};try{xp=rt.location}catch{}var B8=function(t){if(Je(Cp,t)){var e=Cp[t];delete Cp[t],e()}},F8=function(t){return function(){B8(t)}},JN=function(t){B8(t.data)},ZN=function(t){rt.postMessage(Ndt(t),xp.protocol+"//"+xp.host)};S8&&A8||(S8=function(t){var e=KN(arguments,1);return Cp[++k8]=function(){BN(re(t)?t:Idt(t),void 0,e)},Xl(k8),k8},A8=function(t){delete Cp[t]},Ea?Xl=function(t){jdt.nextTick(F8(t))}:O8&&O8.now?Xl=function(t){O8.now(F8(t))}:YN&&!XN?(C8=(GN=new YN).port2,GN.port1.onmessage=JN,Xl=Ep(C8.postMessage,C8)):rt.addEventListener&&re(rt.postMessage)&&!rt.importScripts&&xp&&xp.protocol!=="file:"&&!fe(ZN)?(Xl=ZN,rt.addEventListener("message",JN,!1)):Xl="onreadystatechange"in gp("script")?function(t){r8.appendChild(gp("script")).onreadystatechange=function(){r8.removeChild(this),B8(t)}}:function(t){setTimeout(F8(t),0)});var Sp,Yu,Ap,Yl,T8,_8,P8,QN,tL={set:S8,clear:A8},Ldt=/ipad|iphone|ipod/i.test(Ul)&&rt.Pebble!==void 0,Rdt=/web0s(?!.*chrome)/i.test(Ul),Mdt=Y6.f,j8=tL.set,eL=rt.MutationObserver||rt.WebKitMutationObserver,nL=rt.document,rL=rt.process,F1=rt.Promise,oL=Mdt(rt,"queueMicrotask"),iL=oL&&oL.value;iL||(Sp=function(){var t,e;for(Ea&&(t=rL.domain)&&t.exit();Yu;){e=Yu.fn,Yu=Yu.next;try{e()}catch(n){throw Yu?Yl():Ap=void 0,n}}Ap=void 0,t&&t.enter()},XN||Ea||Rdt||!eL||!nL?!Ldt&&F1&&F1.resolve?((P8=F1.resolve(void 0)).constructor=F1,QN=Ep(P8.then,P8),Yl=function(){QN(Sp)}):Ea?Yl=function(){rL.nextTick(Sp)}:(j8=Ep(j8,rt),Yl=function(){j8(Sp)}):(T8=!0,_8=nL.createTextNode(""),new eL(Sp).observe(_8,{characterData:!0}),Yl=function(){_8.data=T8=!T8}));var I8,aL,uL,sL,lL=iL||function(t){var e={fn:t,next:void 0};Ap&&(Ap.next=e),Yu||(Yu=e,Yl()),Ap=e},zdt=function(t){var e,n;this.promise=new t(function(r,o){if(e!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");e=r,n=o}),this.resolve=ma(e),this.reject=ma(n)},N8={f:function(t){return new zdt(t)}},L8=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},$dt=typeof window=="object",cL=tL.set,Hdt=Me("species"),ni="Promise",fL=cr.getterFor(ni),Vdt=cr.set,Udt=cr.getterFor(ni),Ju=S1&&S1.prototype,So=S1,Op=Ju,dL=rt.TypeError,R8=rt.document,M8=rt.process,Jl=N8.f,Wdt=Jl,Gdt=!!(R8&&R8.createEvent&&rt.dispatchEvent),pL=re(rt.PromiseRejectionEvent),hL=!1,kp=m1(ni,function(){var t=d1(So),e=t!==String(So);if(!e&&dp===66)return!0;if(dp>=51&&/native code/.test(t))return!1;var n=new So(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[Hdt]=r,!(hL=n.then(function(){})instanceof r)||!e&&$dt&&!pL}),qdt=kp||!qN(function(t){So.all(t).catch(function(){})}),gL=function(t){var e;return!(!ge(t)||!re(e=t.then))&&e},z8=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;lL(function(){for(var r=t.value,o=t.state==1,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,p=l.reject,d=l.domain;try{c?(o||(t.rejection===2&&Xdt(t),t.rejection=1),c===!0?a=r:(d&&d.enter(),a=c(r),d&&(d.exit(),s=!0)),a===l.promise?p(dL("Promise-chain cycle")):(u=gL(a))?le(u,a,f,p):f(a)):p(r)}catch(g){d&&!s&&d.exit(),p(g)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&Kdt(t)})}},vL=function(t,e,n){var r,o;Gdt?((r=R8.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),rt.dispatchEvent(r)):r={promise:e,reason:n},!pL&&(o=rt["on"+t])?o(r):t==="unhandledrejection"&&function(i,a){var u=rt.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))}("Unhandled promise rejection",n)},Kdt=function(t){le(cL,rt,function(){var e,n=t.facade,r=t.value;if(mL(t)&&(e=L8(function(){Ea?M8.emit("unhandledRejection",r,n):vL("unhandledrejection",n,r)}),t.rejection=Ea||mL(t)?2:1,e.error))throw e.value})},mL=function(t){return t.rejection!==1&&!t.parent},Xdt=function(t){le(cL,rt,function(){var e=t.facade;Ea?M8.emit("rejectionHandled",e):vL("rejectionhandled",e,t.value)})},Zl=function(t,e,n){return function(r){t(e,r,n)}},Ql=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,z8(t,!0))},$8=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw dL("Promise can't be resolved itself");var r=gL(e);r?lL(function(){var o={done:!1};try{le(r,e,Zl($8,o,t),Zl(Ql,o,t))}catch(i){Ql(o,i,t)}}):(t.value=e,t.state=1,z8(t,!1))}catch(o){Ql({done:!1},o,t)}}};if(kp&&(Op=(So=function(t){x8(this,Op),ma(t),le(I8,this);var e=fL(this);try{t(Zl($8,e),Zl(Ql,e))}catch(n){Ql(e,n)}}).prototype,(I8=function(t){Vdt(this,{type:ni,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=A1(Op,{then:function(t,e){var n=Udt(this),r=n.reactions,o=Jl(function(i,a){var u,s=fn(i).constructor;return s===void 0||(u=fn(s)[Pdt])==null?a:function(l){if(l8(l))return l;throw _dt(s1(l)+" is not a constructor")}(u)}(this,So));return o.ok=!re(t)||t,o.fail=re(e)&&e,o.domain=Ea?M8.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&z8(n,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),aL=function(){var t=new I8,e=fL(t);this.promise=t,this.resolve=Zl($8,e),this.reject=Zl(Ql,e)},N8.f=Jl=function(t){return t===So||t===uL?new aL(t):Wdt(t)},re(S1)&&Ju!==Object.prototype)){sL=Ju.then,hL||(fr(Ju,"then",function(t,e){var n=this;return new So(function(r,o){le(sL,n,r,o)}).then(t,e)},{unsafe:!0}),fr(Ju,"catch",Op.catch,{unsafe:!0}));try{delete Ju.constructor}catch{}ql&&ql(Ju,Op)}function Bp(t,e,n){return n===void 0&&(n=""),r1(this,void 0,void 0,function(){var r,o,i,a,u,s,l;return o1(this,function(c){switch(c.label){case 0:return e?(t.restoreSelection(),r=t.getMenuConfig("insertVideo"),o=r.onInsertedVideo,i=r.checkVideo,a=r.parseVideoSrc,[4,i(e,n)]):[2];case 1:return typeof(u=c.sent())=="string"?(t.alert(u,"error"),[2]):u==null?[2]:[4,a(e)];case 2:return(s=c.sent()).trim().indexOf("<iframe ")!==0&&(s=s.replace(/</g,"<").replace(/>/g,">")),l={type:"video",src:s,poster:n,children:[{text:""}]},Promise.resolve().then(function(){I.insertNodes(t,l)}),o(l),[2]}})})}function H8(){return LN("w-e-insert-video")}qn({global:!0,wrap:!0,forced:kp},{Promise:So}),O1(So,ni,!1),function(t){var e=qu("Promise"),n=ei.f;xo&&e&&!e[MN]&&n(e,MN,{configurable:!0,get:function(){return this}})}(),uL=qu(ni),qn({target:ni,stat:!0,forced:kp},{reject:function(t){var e=Jl(this);return le(e.reject,void 0,t),e.promise}}),qn({target:ni,stat:!0,forced:kp},{resolve:function(t){return function(e,n){if(fn(e),ge(n)&&n.constructor===e)return n;var r=N8.f(e);return(0,r.resolve)(n),r.promise}(this,t)}}),qn({target:ni,stat:!0,forced:qdt},{all:function(t){var e=this,n=Jl(e),r=n.resolve,o=n.reject,i=L8(function(){var a=ma(e.resolve),u=[],s=0,l=1;B1(t,function(c){var f=s++,p=!1;l++,le(a,e,c).then(function(d){p||(p=!0,u[f]=d,--l||r(u))},o)}),--l||r(u)});return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=Jl(e),r=n.reject,o=L8(function(){var i=ma(e.resolve);B1(t,function(a){le(i,e,a).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var Ydt=function(){function t(){this.title=et("videoModule.insertVideo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.srcInputId=H8(),this.posterInputId=H8(),this.buttonId=H8()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||!!A.getSelectedElems(e).some(function(r){var o=A.getNodeType(r);return o==="pre"||o==="list-item"||!!e.isVoid(r)})},t.prototype.getModalPositionNode=function(e){return null},t.prototype.getModalContentElem=function(e){var n=this,r=this,o=r.srcInputId,i=r.posterInputId,a=r.buttonId,u=Gu(or(et("videoModule.videoSrc"),o,et("videoModule.videoSrcPlaceHolder")),2),s=u[0],l=u[1],c=Gu(or(et("videoModule.videoPoster"),i,et("videoModule.videoPosterPlaceHolder")),2),f=c[0],p=c[1],d=k(l),g=k(p),v=Gu(gl(a,et("videoModule.ok")),1)[0];if(this.$content==null){var m=k("<div></div>");m.on("click","#"+a,function(h){return r1(n,void 0,void 0,function(){var b,w;return o1(this,function(D){switch(D.label){case 0:return h.preventDefault(),b=m.find("#"+o).val().trim(),w=m.find("#"+i).val().trim(),[4,Bp(e,b,w)];case 1:return D.sent(),e.hidePanelOrModal(),[2]}})})}),this.$content=m}var y=this.$content;return y.empty(),y.append(s),y.append(f),y.append(v),d.val(""),g.val(""),setTimeout(function(){d.focus()}),y[0]},t}(),Jdt=St([].join),Zdt=$6!=Object,Qdt=function(t,e){var n=[].join;return!!n&&fe(function(){n.call(null,",",1)})}();qn({target:"Array",proto:!0,forced:Zdt||!Qdt},{join:function(t){return Jdt(va(this),t===void 0?",":t)}});var Zu,yL,bL,tpt=!fe(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),wL=J6("IE_PROTO"),V8=rt.Object,ept=V8.prototype,T1=tpt?V8.getPrototypeOf:function(t){var e=l1(t);if(Je(e,wL))return e[wL];var n=e.constructor;return re(n)&&e instanceof n?n.prototype:e instanceof V8?ept:null},U8=Me("iterator"),EL=!1;[].keys&&("next"in(bL=[].keys())?(yL=T1(T1(bL)))!==Object.prototype&&(Zu=yL):EL=!0);var npt=Zu==null||fe(function(){var t={};return Zu[U8].call(t)!==t});npt&&(Zu={}),re(Zu[U8])||fr(Zu,U8,function(){return this});var W8={IteratorPrototype:Zu,BUGGY_SAFARI_ITERATORS:EL},rpt=W8.IteratorPrototype,opt=function(){return this},ipt=Gl.PROPER,apt=Gl.CONFIGURABLE,DL=W8.IteratorPrototype,_1=W8.BUGGY_SAFARI_ITERATORS,Fp=Me("iterator"),upt=function(){return this},xL=function(t,e,n,r,o,i,a){(function(y,h,b,w){var D=h+" Iterator";y.prototype=i8(rpt,{next:u1(1,b)}),O1(y,D,!1),Kl[D]=opt})(n,e,r);var u,s,l,c=function(y){if(y===o&&v)return v;if(!_1&&y in d)return d[y];switch(y){case"keys":case"values":case"entries":return function(){return new n(this,y)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,g=d[Fp]||d["@@iterator"]||o&&d[o],v=!_1&&g||c(o),m=e=="Array"&&d.entries||g;if(m&&(u=T1(m.call(new t)))!==Object.prototype&&u.next&&(T1(u)!==DL&&(ql?ql(u,DL):re(u[Fp])||fr(u,Fp,upt)),O1(u,f,!0)),ipt&&o=="values"&&g&&g.name!=="values"&&(apt?ba(d,"name","values"):(p=!0,v=function(){return le(g,this)})),o)if(s={values:c("values"),keys:i?v:c("keys"),entries:c("entries")},a)for(l in s)(_1||p||!(l in d))&&fr(d,l,s[l]);else qn({target:e,proto:!0,forced:_1||p},s);return d[Fp]!==v&&fr(d,Fp,v,{name:o}),Kl[e]=v,s},spt=cr.set,lpt=cr.getterFor("Array Iterator"),Tp=xL(Array,"Array",function(t,e){spt(this,{type:"Array Iterator",target:va(t),index:0,kind:e})},function(){var t=lpt(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");Kl.Arguments=Kl.Array,wp("keys"),wp("values"),wp("entries");var cpt=PN.charAt,fpt=cr.set,dpt=cr.getterFor("String Iterator");xL(String,"String",function(t){fpt(this,{type:"String Iterator",string:Pr(t),index:0})},function(){var t,e=dpt(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=cpt(n,r),e.index+=t.length,{value:t,done:!1})});var CL=function(t,e,n){var r=K6(e);r in t?ei.f(t,r,u1(0,n)):t[r]=n},ppt=rt.Array,hpt=Math.max,SL=v1.f,AL=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],gpt={f:function(t){return AL&&Co(t)=="Window"?function(e){try{return SL(e)}catch{return function(r,o,i){for(var a=yp(r),u=mp(void 0,a),s=mp(a,a),l=ppt(hpt(s-u,0)),c=0;u<s;u++,c++)CL(l,c,r[u]);return l.length=c,l}(AL)}}(t):SL(va(t))}},OL=fe(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),P1=Object.isExtensible,Qu=fe(function(){P1(1)})||OL?function(t){return!!ge(t)&&(!OL||Co(t)!="ArrayBuffer")&&(!P1||P1(t))}:P1,vpt=!fe(function(){return Object.isExtensible(Object.preventExtensions({}))}),G8=L6(function(t){var e=ei.f,n=!1,r=q6("meta"),o=0,i=function(u){e(u,r,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},n=!0;var u=v1.f,s=St([].splice),l={};l[r]=1,u(l).length&&(v1.f=function(c){for(var f=u(c),p=0,d=f.length;p<d;p++)if(f[p]===r){s(f,p,1);break}return f},qn({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:gpt.f}))},fastKey:function(u,s){if(!ge(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Je(u,r)){if(!Qu(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!Je(u,r)){if(!Qu(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return vpt&&n&&Qu(u)&&!Je(u,r)&&i(u),u}};p1[r]=!0}),j1=G8.getWeakData,mpt=cr.set,ypt=cr.getterFor,bpt=c8.find,wpt=c8.findIndex,Ept=St([].splice),Dpt=0,I1=function(t){return t.frozen||(t.frozen=new kL)},kL=function(){this.entries=[]},q8=function(t,e){return bpt(t.entries,function(n){return n[0]===e})};kL.prototype={get:function(t){var e=q8(this,t);if(e)return e[1]},has:function(t){return!!q8(this,t)},set:function(t,e){var n=q8(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=wpt(this.entries,function(n){return n[0]===t});return~e&&Ept(this.entries,e,1),!!~e}};var _p,BL={getConstructor:function(t,e,n,r){var o=t(function(s,l){x8(s,i),mpt(s,{type:e,id:Dpt++,frozen:void 0}),l!=null&&B1(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=ypt(e),u=function(s,l,c){var f=a(s),p=j1(fn(l),!0);return p===!0?I1(f).set(l,c):p[f.id]=c,s};return A1(i,{delete:function(s){var l=a(this);if(!ge(s))return!1;var c=j1(s);return c===!0?I1(l).delete(s):c&&Je(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!ge(s))return!1;var c=j1(s);return c===!0?I1(l).has(s):c&&Je(c,l.id)}}),A1(i,n?{get:function(s){var l=a(this);if(ge(s)){var c=j1(s);return c===!0?I1(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},N1=cr.enforce,xpt=!rt.ActiveXObject&&"ActiveXObject"in rt,FL=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Cpt=function(t,e,n){var r=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=r?"set":"add",a=rt[t],u=a&&a.prototype,s=a,l={},c=function(m){var y=St(u[m]);fr(u,m,m=="add"?function(h){return y(this,h===0?0:h),this}:m=="delete"?function(h){return!(o&&!ge(h))&&y(this,h===0?0:h)}:m=="get"?function(h){return o&&!ge(h)?void 0:y(this,h===0?0:h)}:m=="has"?function(h){return!(o&&!ge(h))&&y(this,h===0?0:h)}:function(h,b){return y(this,h===0?0:h,b),this})};if(m1(t,!re(a)||!(o||u.forEach&&!fe(function(){new a().entries().next()}))))s=n.getConstructor(e,t,r,i),G8.enable();else if(m1(t,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=fe(function(){f.has(1)}),g=qN(function(m){new a(m)}),v=!o&&fe(function(){for(var m=new a,y=5;y--;)m[i](y,y);return!m.has(-0)});g||((s=e(function(m,y){x8(m,u);var h=function(b,w,D){var C,x;return ql&&re(C=w.constructor)&&C!==D&&ge(x=C.prototype)&&x!==D.prototype&&ql(b,x),b}(new a,m,s);return y!=null&&B1(y,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(d||v)&&(c("delete"),c("has"),r&&c("get")),(v||p)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,qn({global:!0,forced:s!=a},l),O1(s,t),o||n.setStrong(s,t,r),s}("WeakMap",FL,BL);if(eN&&xpt){_p=BL.getConstructor(FL,"WeakMap",!0),G8.enable();var Pp=Cpt.prototype,TL=St(Pp.delete),L1=St(Pp.has),_L=St(Pp.get),PL=St(Pp.set);A1(Pp,{delete:function(t){if(ge(t)&&!Qu(t)){var e=N1(this);return e.frozen||(e.frozen=new _p),TL(this,t)||e.frozen.delete(t)}return TL(this,t)},has:function(t){if(ge(t)&&!Qu(t)){var e=N1(this);return e.frozen||(e.frozen=new _p),L1(this,t)||e.frozen.has(t)}return L1(this,t)},get:function(t){if(ge(t)&&!Qu(t)){var e=N1(this);return e.frozen||(e.frozen=new _p),L1(this,t)?_L(this,t):e.frozen.get(t)}return _L(this,t)},set:function(t,e){if(ge(t)&&!Qu(t)){var n=N1(this);n.frozen||(n.frozen=new _p),L1(this,t)?PL(this,t,e):n.frozen.set(t,e)}else PL(this,t,e);return this}})}var jL={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},K8=gp("span").classList,IL=K8&&K8.constructor&&K8.constructor.prototype,Spt=IL===Object.prototype?void 0:IL,X8=Me("iterator"),NL=Me("toStringTag"),Y8=Tp.values,LL=function(t,e){if(t){if(t[X8]!==Y8)try{ba(t,X8,Y8)}catch{t[X8]=Y8}if(t[NL]||ba(t,NL,e),jL[e]){for(var n in Tp)if(t[n]!==Tp[n])try{ba(t,n,Tp[n])}catch{t[n]=Tp[n]}}}};for(var J8 in jL)LL(rt[J8]&&rt[J8].prototype,J8);LL(Spt,"DOMTokenList");var Apt=Gl.EXISTS,Opt=ei.f,RL=Function.prototype,kpt=St(RL.toString),ML=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Bpt=St(ML.exec);xo&&!Apt&&Opt(RL,"name",{configurable:!0,get:function(){try{return Bpt(ML,kpt(this))[1]}catch{return""}}});var Fpt=Me("species"),Tpt=dp>=51||!fe(function(){var t=[];return(t.constructor={})[Fpt]=function(){return{foo:1}},t.slice(Boolean).foo!==1}),_pt=Me("species"),Z8=rt.Array,Ppt=Math.max;function zL(t){return t.getMenuConfig("uploadVideo")}qn({target:"Array",proto:!0,forced:!Tpt},{slice:function(t,e){var n,r,o,i=va(this),a=yp(i),u=mp(t,a),s=mp(e===void 0?a:e,a);if(D1(i)&&(n=i.constructor,(l8(n)&&(n===Z8||D1(n.prototype))||ge(n)&&(n=n[_pt])===null)&&(n=void 0),n===Z8||n===void 0))return KN(i,u,s);for(r=new(n===void 0?Z8:n)(Ppt(s-u,0)),o=0;u<s;u++,o++)u in i&&CL(r,o,i[u]);return r.length=o,r}});var $L=new WeakMap;function jpt(t,e){return r1(this,void 0,void 0,function(){var n,r,o,i;return o1(this,function(a){switch(a.label){case 0:return n=function(u){var s=$L.get(u);if(s!=null)return s;var l=zL(u),c=l.onSuccess,f=l.onProgress,p=l.onFailed,d=l.customInsert,g=l.onError;return s=GB(n1(n1({},l),{onProgress:function(v){u.showProgressBar(v),f&&f(v)},onSuccess:function(v,m){if(d)return d(m,function(S,F){return Bp(u,S,F)}),void c(v,m);var y=m.errno,h=y===void 0?1:y,b=m.data,w=b===void 0?{}:b;if(h===0){var D=w.url,C=D===void 0?"":D,x=w.poster;Bp(u,C,x===void 0?"":x),c(v,m)}else p(v,m)},onError:function(v,m,y){g(v,m,y)}})),$L.set(u,s),s}(t),r=e.name,o=e.type,i=e.size,n.addFile({name:r,type:o,size:i,data:e}),[4,n.upload()];case 1:return a.sent(),[2]}})})}var Ipt=function(){function t(){this.title=et("videoModule.uploadVideo"),this.iconSvg='<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){var r=this.getMenuConfig(e),o=r.allowedFileTypes,i=o===void 0?[]:o,a=r.customBrowseAndUpload;if(a)a(function(c,f){return Bp(e,c,f)});else{var u="";i.length>0&&(u='accept="'+i.join(", ")+'"');var s=k("body"),l=k('<input type="file" '+u+" multiple/>");l.hide(),s.append(l),l.click(),l.on("change",function(){var c=l[0].files;(function(f,p){var d,g;r1(this,void 0,void 0,function(){var v,m,y,h,b,w;return o1(this,function(D){switch(D.label){case 0:if(p==null)return[2];v=Array.prototype.slice.call(p),m=zL(f).customUpload,D.label=1;case 1:D.trys.push([1,9,10,15]),y=function(C){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var x,S=C[Symbol.asyncIterator];return S?S.call(C):(C=function(z){var M=typeof Symbol=="function"&&Symbol.iterator,R=M&&z[M],K=0;if(R)return R.call(z);if(z&&typeof z.length=="number")return{next:function(){return z&&K>=z.length&&(z=void 0),{value:z&&z[K++],done:!z}}};throw new TypeError(M?"Object is not iterable.":"Symbol.iterator is not defined.")}(C),x={},F("next"),F("throw"),F("return"),x[Symbol.asyncIterator]=function(){return this},x);function F(z){x[z]=C[z]&&function(M){return new Promise(function(R,K){(function(V,U,W,Z){Promise.resolve(Z).then(function(lt){V({value:lt,done:W})},U)})(R,K,(M=C[z](M)).done,M.value)})}}}(v),D.label=2;case 2:return[4,y.next()];case 3:return(h=D.sent()).done?[3,8]:(b=h.value,m?[4,m(b,function(C,x){return Bp(f,C,x)})]:[3,5]);case 4:return D.sent(),[3,7];case 5:return[4,jpt(f,b)];case 6:D.sent(),D.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return w=D.sent(),d={error:w},[3,15];case 10:return D.trys.push([10,,13,14]),h&&!h.done&&(g=y.return)?[4,g.call(y)]:[3,12];case 11:D.sent(),D.label=12;case 12:return[3,14];case 13:if(d)throw d.error;return[7];case 14:return[7];case 15:return[2]}})})})(e,c)})}},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||!!A.getSelectedElems(e).some(function(r){var o=A.getNodeType(r);return o==="pre"||o==="list-item"||!!e.isVoid(r)})},t.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},t}(),Npt=Gl.PROPER,Q8=RegExp.prototype,HL=Q8.toString,Lpt=St(SN),Rpt=fe(function(){return HL.call({source:"a",flags:"b"})!="/a/b"}),Mpt=Npt&&HL.name!="toString";function tx(){return LN("w-e-insert-video")}(Rpt||Mpt)&&fr(RegExp.prototype,"toString",function(){var t=fn(this),e=Pr(t.source),n=t.flags;return"/"+e+"/"+Pr(n===void 0&&fp(Q8,t)&&!("flags"in Q8)?Lpt(t):n)},{unsafe:!0});var zpt=function(){function t(){this.title=et("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=tx(),this.heightInputId=tx(),this.buttonId=tx()}return t.prototype.getSelectedVideoNode=function(e){return A.getSelectedNodeByType(e,"video")},t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedVideoNode(e)==null},t.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},t.prototype.getModalContentElem=function(e){var n=this,r=n.widthInputId,o=n.heightInputId,i=n.buttonId,a=Gu(or(et("videoModule.width"),r,"auto"),2),u=a[0],s=k(a[1]),l=Gu(or(et("videoModule.height"),o,"auto"),2),c=l[0],f=k(l[1]),p=Gu(gl(i,et("videoModule.ok")),1)[0];if(this.$content==null){var d=k("<div></div>");d.on("click","#"+i,function(w){w.preventDefault();var D=d.find("#"+r).val().trim(),C=d.find("#"+o).val().trim(),x=parseInt(D),S=parseInt(C),F=x?x.toString():"auto",z=S?S.toString():"auto";e.restoreSelection(),I.setNodes(e,{width:F,height:z},{match:function(M){return A.checkNodeType(M,"video")}}),e.hidePanelOrModal()}),this.$content=d}var g=this.$content;g.empty(),g.append(u),g.append(c),g.append(p);var v=this.getSelectedVideoNode(e);if(v==null)return g[0];var m=v.width,y=m===void 0?"auto":m,h=v.height,b=h===void 0?"auto":h;return s.val(y),f.val(b),setTimeout(function(){s.focus()}),g[0]},t}(),$pt={renderElems:[Ift],elemsToHtml:[Nft],preParseHtml:[zft],parseElemsHtml:[Kft],menus:[{key:"insertVideo",factory:function(){return new Ydt},config:{onInsertedVideo:function(t){},checkVideo:function(t,e){return!0},parseVideoSrc:function(t){return t}}},{key:"uploadVideo",factory:function(){return new Ipt},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(t){return t},onProgress:function(t){},onSuccess:function(t,e){},onFailed:function(t,e){console.error("'"+t.name+"' upload failed",e)},onError:function(t,e,n){console.error("'"+t.name+" upload error",e,n)}}},{key:"editVideoSize",factory:function(){return new zpt}}],editorPlugin:function(t){var e=t.isVoid,n=t.normalizeNode,r=t;return r.isVoid=function(o){return o.type==="video"||e(o)},r.normalizeNode=function(o){var i=Gu(o,2),a=i[0],u=i[1];return A.getNodeType(a)==="video"&&A.isLastNode(r,a)&&I.insertNodes(r,A.genEmptyParagraph(),{at:[u[0]+1]}),n([a,u])},r}};Vn("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),Vn("zh-CN",{uploadImgModule:{uploadImage:"\u4E0A\u4F20\u56FE\u7247",uploadError:"{{fileName}} \u4E0A\u4F20\u51FA\u9519"}});var VL=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ex(t){var e={exports:{}};return t(e,e.exports),e.exports}var Da,R1,M1=function(t){return t&&t.Math==Math&&t},nt=M1(typeof globalThis=="object"&&globalThis)||M1(typeof window=="object"&&window)||M1(typeof self=="object"&&self)||M1(typeof VL=="object"&&VL)||function(){return this}()||Function("return this")(),ve=function(t){try{return!!t()}catch{return!0}},Ao=!ve(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),jp=Function.prototype.call,Zt=jp.bind?jp.bind(jp):function(){return jp.apply(jp,arguments)},UL={}.propertyIsEnumerable,WL=Object.getOwnPropertyDescriptor,Hpt={f:WL&&!UL.call({1:2},1)?function(t){var e=WL(this,t);return!!e&&e.enumerable}:UL},z1=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},GL=Function.prototype,nx=GL.bind,rx=GL.call,Vpt=nx&&nx.bind(rx),jt=nx?function(t){return t&&Vpt(rx,t)}:function(t){return t&&function(){return rx.apply(t,arguments)}},Upt=jt({}.toString),Wpt=jt("".slice),Jr=function(t){return Wpt(Upt(t),8,-1)},ox=nt.Object,Gpt=jt("".split),ix=ve(function(){return!ox("z").propertyIsEnumerable(0)})?function(t){return Jr(t)=="String"?Gpt(t,""):ox(t)}:ox,qpt=nt.TypeError,Ip=function(t){if(t==null)throw qpt("Can't call method on "+t);return t},xa=function(t){return ix(Ip(t))},ae=function(t){return typeof t=="function"},de=function(t){return typeof t=="object"?t!==null:ae(t)},ts=function(t,e){return arguments.length<2?function(n){return ae(n)?n:void 0}(nt[t]):nt[t]&&nt[t][e]},Np=jt({}.isPrototypeOf),tc=ts("navigator","userAgent")||"",qL=nt.process,KL=nt.Deno,XL=qL&&qL.versions||KL&&KL.version,YL=XL&&XL.v8;YL&&(R1=(Da=YL.split("."))[0]>0&&Da[0]<4?1:+(Da[0]+Da[1])),!R1&&tc&&(!(Da=tc.match(/Edge\/(\d+)/))||Da[1]>=74)&&(Da=tc.match(/Chrome\/(\d+)/))&&(R1=+Da[1]);var Lp=R1,ax=!!Object.getOwnPropertySymbols&&!ve(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Lp&&Lp<41}),ux=ax&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Kpt=nt.Object,sx=ux?function(t){return typeof t=="symbol"}:function(t){var e=ts("Symbol");return ae(e)&&Np(e.prototype,Kpt(t))},Xpt=nt.String,$1=function(t){try{return Xpt(t)}catch{return"Object"}},Ypt=nt.TypeError,Ca=function(t){if(ae(t))return t;throw Ypt($1(t)+" is not a function")},Rp=function(t,e){var n=t[e];return n==null?void 0:Ca(n)},Jpt=nt.TypeError,Zpt=Object.defineProperty,lx=function(t,e){try{Zpt(nt,t,{value:e,configurable:!0,writable:!0})}catch{nt[t]=e}return e},Sa=nt["__core-js_shared__"]||lx("__core-js_shared__",{}),cx=ex(function(t){(t.exports=function(e,n){return Sa[e]||(Sa[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),Qpt=nt.Object,fx=function(t){return Qpt(Ip(t))},tht=jt({}.hasOwnProperty),Ze=Object.hasOwn||function(t,e){return tht(fx(t),e)},eht=0,nht=Math.random(),rht=jt(1 .toString),dx=function(t){return"Symbol("+(t===void 0?"":t)+")_"+rht(++eht+nht,36)},Mp=cx("wks"),es=nt.Symbol,JL=es&&es.for,oht=ux?es:es&&es.withoutSetter||dx,ze=function(t){if(!Ze(Mp,t)||!ax&&typeof Mp[t]!="string"){var e="Symbol."+t;ax&&Ze(es,t)?Mp[t]=es[t]:Mp[t]=ux&&JL?JL(e):oht(e)}return Mp[t]},iht=nt.TypeError,aht=ze("toPrimitive"),px=function(t){var e=function(n,r){if(!de(n)||sx(n))return n;var o,i=Rp(n,aht);if(i){if(r===void 0&&(r="default"),o=Zt(i,n,r),!de(o)||sx(o))return o;throw iht("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&ae(s=a.toString)&&!de(l=Zt(s,a))||ae(s=a.valueOf)&&!de(l=Zt(s,a))||u!=="string"&&ae(s=a.toString)&&!de(l=Zt(s,a)))return l;throw Jpt("Can't convert object to primitive value")}(n,r)}(t,"string");return sx(e)?e:e+""},hx=nt.document,uht=de(hx)&&de(hx.createElement),zp=function(t){return uht?hx.createElement(t):{}},ZL=!Ao&&!ve(function(){return Object.defineProperty(zp("div"),"a",{get:function(){return 7}}).a!=7}),QL=Object.getOwnPropertyDescriptor,gx={f:Ao?QL:function(t,e){if(t=xa(t),e=px(e),ZL)try{return QL(t,e)}catch{}if(Ze(t,e))return z1(!Zt(Hpt.f,t,e),t[e])}},sht=nt.String,lht=nt.TypeError,dn=function(t){if(de(t))return t;throw lht(sht(t)+" is not an object")},cht=nt.TypeError,tR=Object.defineProperty,ri={f:Ao?tR:function(t,e,n){if(dn(t),e=px(e),dn(n),ZL)try{return tR(t,e,n)}catch{}if("get"in n||"set"in n)throw cht("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Oo=Ao?function(t,e,n){return ri.f(t,e,z1(1,n))}:function(t,e,n){return t[e]=n,t},fht=jt(Function.toString);ae(Sa.inspectSource)||(Sa.inspectSource=function(t){return fht(t)});var H1,$p,V1,U1=Sa.inspectSource,eR=nt.WeakMap,nR=ae(eR)&&/native code/.test(U1(eR)),rR=cx("keys"),vx=function(t){return rR[t]||(rR[t]=dx(t))},W1={},mx=nt.TypeError,dht=nt.WeakMap;if(nR||Sa.state){var ns=Sa.state||(Sa.state=new dht),pht=jt(ns.get),oR=jt(ns.has),hht=jt(ns.set);H1=function(t,e){if(oR(ns,t))throw new mx("Object already initialized");return e.facade=t,hht(ns,t,e),e},$p=function(t){return pht(ns,t)||{}},V1=function(t){return oR(ns,t)}}else{var ec=vx("state");W1[ec]=!0,H1=function(t,e){if(Ze(t,ec))throw new mx("Object already initialized");return e.facade=t,Oo(t,ec,e),e},$p=function(t){return Ze(t,ec)?t[ec]:{}},V1=function(t){return Ze(t,ec)}}var dr={set:H1,get:$p,has:V1,enforce:function(t){return V1(t)?$p(t):H1(t,{})},getterFor:function(t){return function(e){var n;if(!de(e)||(n=$p(e)).type!==t)throw mx("Incompatible receiver, "+t+" required");return n}}},iR=Function.prototype,ght=Ao&&Object.getOwnPropertyDescriptor,yx=Ze(iR,"name"),Hp={EXISTS:yx,PROPER:yx&&(function(){}).name==="something",CONFIGURABLE:yx&&(!Ao||Ao&&ght(iR,"name").configurable)},pr=ex(function(t){var e=Hp.CONFIGURABLE,n=dr.get,r=dr.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;ae(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Ze(u,"name")||e&&u.name!==d)&&Oo(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==nt?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Oo(i,a,u)):f?i[a]=u:lx(a,u)})(Function.prototype,"toString",function(){return ae(this)&&n(this).source||U1(this)})}),vht=Math.ceil,mht=Math.floor,bx=function(t){var e=+t;return e!=e||e===0?0:(e>0?mht:vht)(e)},yht=Math.max,bht=Math.min,Vp=function(t,e){var n=bx(t);return n<0?yht(n+e,0):bht(n,e)},wht=Math.min,aR=function(t){return t>0?wht(bx(t),9007199254740991):0},Up=function(t){return aR(t.length)},Eht=function(t){return function(e,n,r){var o,i=xa(e),a=Up(i),u=Vp(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}}(!1),uR=jt([].push),sR=function(t,e){var n,r=xa(t),o=0,i=[];for(n in r)!Ze(W1,n)&&Ze(r,n)&&uR(i,n);for(;e.length>o;)Ze(r,n=e[o++])&&(~Eht(i,n)||uR(i,n));return i},G1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Dht=G1.concat("length","prototype"),q1={f:Object.getOwnPropertyNames||function(t){return sR(t,Dht)}},xht={f:Object.getOwnPropertySymbols},Cht=jt([].concat),Sht=ts("Reflect","ownKeys")||function(t){var e=q1.f(dn(t)),n=xht.f;return n?Cht(e,n(t)):e},Aht=function(t,e){for(var n=Sht(e),r=ri.f,o=gx.f,i=0;i<n.length;i++){var a=n[i];Ze(t,a)||r(t,a,o(e,a))}},Oht=/#|\.prototype\./,Wp=function(t,e){var n=Bht[kht(t)];return n==Tht||n!=Fht&&(ae(e)?ve(e):!!e)},kht=Wp.normalize=function(t){return String(t).replace(Oht,".").toLowerCase()},Bht=Wp.data={},Fht=Wp.NATIVE="N",Tht=Wp.POLYFILL="P",K1=Wp,_ht=gx.f,ko=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?nt:l?nt[u]||lx(u,{}):(nt[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=_ht(n,r))&&a.value:n[r],!K1(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;Aht(i,o)}(t.sham||o&&o.sham)&&Oo(i,"sham",!0),pr(n,r,i,t)}},X1=Array.isArray||function(t){return Jr(t)=="Array"},lR={};lR[ze("toStringTag")]="z";var wx=String(lR)==="[object z]",Pht=ze("toStringTag"),jht=nt.Object,Iht=Jr(function(){return arguments}())=="Arguments",Y1=wx?Jr:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=jht(t),Pht))=="string"?n:Iht?Jr(e):(r=Jr(e))=="Object"&&ae(e.callee)?"Arguments":r},cR=function(){},Nht=[],fR=ts("Reflect","construct"),Ex=/^\s*(?:class|function)\b/,Lht=jt(Ex.exec),Rht=!Ex.exec(cR),Gp=function(t){if(!ae(t))return!1;try{return fR(cR,Nht,t),!0}catch{return!1}},Dx=!fR||ve(function(){var t;return Gp(Gp.call)||!Gp(Object)||!Gp(function(){t=!0})||t})?function(t){if(!ae(t))return!1;switch(Y1(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Rht||!!Lht(Ex,U1(t))}:Gp,dR=function(t,e,n){var r=px(e);r in t?ri.f(t,r,z1(0,n)):t[r]=n},Mht=ze("species"),pR=jt([].slice),zht=Lp>=51||!ve(function(){var t=[];return(t.constructor={})[Mht]=function(){return{foo:1}},t.slice(Boolean).foo!==1}),$ht=ze("species"),xx=nt.Array,Hht=Math.max;ko({target:"Array",proto:!0,forced:!zht},{slice:function(t,e){var n,r,o,i=xa(this),a=Up(i),u=Vp(t,a),s=Vp(e===void 0?a:e,a);if(X1(i)&&(n=i.constructor,(Dx(n)&&(n===xx||X1(n.prototype))||de(n)&&(n=n[$ht])===null)&&(n=void 0),n===xx||n===void 0))return pR(i,u,s);for(r=new(n===void 0?xx:n)(Hht(s-u,0)),o=0;u<s;u++,o++)u in i&&dR(r,o,i[u]);return r.length=o,r}});var Vht=wx?{}.toString:function(){return"[object "+Y1(this)+"]"};wx||pr(Object.prototype,"toString",Vht,{unsafe:!0});var J1,Uht=nt.String,Aa=function(t){if(Y1(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Uht(t)},hR=function(){var t=dn(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},Cx=nt.RegExp,Sx=ve(function(){var t=Cx("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),Wht=Sx||ve(function(){return!Cx("a","y").sticky}),gR={BROKEN_CARET:Sx||ve(function(){var t=Cx("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:Wht,UNSUPPORTED_Y:Sx},Ght=Object.keys||function(t){return sR(t,G1)},qht=Ao?Object.defineProperties:function(t,e){dn(t);for(var n,r=xa(e),o=Ght(e),i=o.length,a=0;i>a;)ri.f(t,n=o[a++],r[n]);return t},Ax=ts("document","documentElement"),vR=vx("IE_PROTO"),Ox=function(){},mR=function(t){return"<script>"+t+"<\/script>"},yR=function(t){t.write(mR("")),t.close();var e=t.parentWindow.Object;return t=null,e},Z1=function(){try{J1=new ActiveXObject("htmlfile")}catch{}var t,e;Z1=typeof document<"u"?document.domain&&J1?yR(J1):((e=zp("iframe")).style.display="none",Ax.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(mR("document.F=Object")),t.close(),t.F):yR(J1);for(var n=G1.length;n--;)delete Z1.prototype[G1[n]];return Z1()};W1[vR]=!0;var bR,kx,Bx=Object.create||function(t,e){var n;return t!==null?(Ox.prototype=dn(t),n=new Ox,Ox.prototype=null,n[vR]=t):n=Z1(),e===void 0?n:qht(n,e)},Kht=nt.RegExp,Xht=ve(function(){var t=Kht(".","s");return!(t.dotAll&&t.exec(`
- `)&&t.flags==="s")}),Yht=nt.RegExp,Jht=ve(function(){var t=Yht("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),Zht=dr.get,Qht=cx("native-string-replace",String.prototype.replace),Q1=RegExp.prototype.exec,Fx=Q1,t0t=jt("".charAt),e0t=jt("".indexOf),n0t=jt("".replace),Tx=jt("".slice),_x=(kx=/b*/g,Zt(Q1,bR=/a/,"a"),Zt(Q1,kx,"a"),bR.lastIndex!==0||kx.lastIndex!==0),wR=gR.BROKEN_CARET,Px=/()??/.exec("")[1]!==void 0;(_x||Px||wR||Xht||Jht)&&(Fx=function(t){var e,n,r,o,i,a,u,s=this,l=Zht(s),c=Aa(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Zt(Fx,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=wR&&s.sticky,g=Zt(hR,s),v=s.source,m=0,y=c;if(d&&(g=n0t(g,"y",""),e0t(g,"g")===-1&&(g+="g"),y=Tx(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&t0t(c,s.lastIndex-1)!==`
- `)&&(v="(?: "+v+")",y=" "+y,m++),n=new RegExp("^(?:"+v+")",g)),Px&&(n=new RegExp("^"+v+"$(?!\\s)",g)),_x&&(r=s.lastIndex),o=Zt(Q1,d?n:s,y),d?o?(o.input=Tx(o.input,m),o[0]=Tx(o[0],m),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:_x&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Px&&o&&o.length>1&&Zt(Qht,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=Bx(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var qp=Fx;ko({target:"RegExp",proto:!0,forced:/./.exec!==qp},{exec:qp});var jx=Function.prototype,ER=jx.apply,r0t=jx.bind,DR=jx.call,xR=typeof Reflect=="object"&&Reflect.apply||(r0t?DR.bind(ER):function(){return DR.apply(ER,arguments)}),o0t=ze("species"),Ix=RegExp.prototype,i0t=ze("match"),a0t=nt.TypeError,u0t=ze("species"),CR=function(t,e){var n,r=dn(t).constructor;return r===void 0||(n=dn(r)[u0t])==null?e:function(o){if(Dx(o))return o;throw a0t($1(o)+" is not a constructor")}(n)},s0t=jt("".charAt),SR=jt("".charCodeAt),l0t=jt("".slice),AR=function(t){return function(e,n){var r,o,i=Aa(Ip(e)),a=bx(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=SR(i,a))<55296||r>56319||a+1===u||(o=SR(i,a+1))<56320||o>57343?t?s0t(i,a):r:t?l0t(i,a,a+2):o-56320+(r-55296<<10)+65536}},OR={codeAt:AR(!1),charAt:AR(!0)},c0t=OR.charAt,f0t=function(t,e,n){return e+(n?c0t(t,e).length:1)},d0t=nt.Array,p0t=Math.max,Nx=function(t,e,n){for(var r=Up(t),o=Vp(e,r),i=Vp(n===void 0?r:n,r),a=d0t(p0t(i-o,0)),u=0;o<i;o++,u++)dR(a,u,t[o]);return a.length=u,a},h0t=nt.TypeError,kR=function(t,e){var n=t.exec;if(ae(n)){var r=Zt(n,t,e);return r!==null&&dn(r),r}if(Jr(t)==="RegExp")return Zt(qp,t,e);throw h0t("RegExp#exec called on incompatible receiver")},nc=gR.UNSUPPORTED_Y,g0t=Math.min,BR=[].push,v0t=jt(/./.exec),rc=jt(BR),Kp=jt("".slice);(function(t,e,n,r){var o=ze(t),i=!ve(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!ve(function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[o0t]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=jt(/./[o]),s=function(l,c,f){var p;return p="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(d,g){var v,m,y=Aa(Ip(this)),h=g===void 0?4294967295:g>>>0;if(h===0)return[];if(d===void 0)return[y];if(!de(v=d)||!((m=v[i0t])!==void 0?m:Jr(v)=="RegExp"))return Zt(c,y,d,h);for(var b,w,D,C=[],x=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(d.sticky?"y":""),S=0,F=new RegExp(d.source,x+"g");(b=Zt(qp,F,y))&&!((w=F.lastIndex)>S&&(rc(C,Kp(y,S,b.index)),b.length>1&&b.index<y.length&&xR(BR,C,Nx(b,1)),D=b[0].length,S=w,C.length>=h));)F.lastIndex===b.index&&F.lastIndex++;return S===y.length?!D&&v0t(F,"")||rc(C,""):rc(C,Kp(y,S)),C.length>h?Nx(C,0,h):C}:"0".split(void 0,0).length?function(d,g){return d===void 0&&g===0?[]:Zt(c,this,d,g)}:c,[function(d,g){var v=Ip(this),m=d==null?void 0:Rp(d,l);return m?Zt(m,d,v,g):Zt(p,Aa(v),d,g)},function(d,g){var v=dn(this),m=Aa(d),y=f(p,v,m,g,p!==c);if(y.done)return y.value;var h=CR(v,RegExp),b=v.unicode,w=(v.ignoreCase?"i":"")+(v.multiline?"m":"")+(v.unicode?"u":"")+(nc?"g":"y"),D=new h(nc?"^(?:"+v.source+")":v,w),C=g===void 0?4294967295:g>>>0;if(C===0)return[];if(m.length===0)return kR(D,m)===null?[m]:[];for(var x=0,S=0,F=[];S<m.length;){D.lastIndex=nc?0:S;var z,M=kR(D,nc?Kp(m,S):m);if(M===null||(z=g0t(aR(D.lastIndex+(nc?S:0)),m.length))===x)S=f0t(m,S,b);else{if(rc(F,Kp(m,x,S)),F.length===C)return F;for(var R=1;R<=M.length-1;R++)if(rc(F,M[R]),F.length===C)return F;S=x=z}}return rc(F,Kp(m,x)),F}]}(o,""[t],function(l,c,f,p,d){var g=jt(l),v=c.exec;return v===qp||v===Ix.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:g(f,c,p)}:{done:!1}});pr(String.prototype,t,s[0]),pr(Ix,o,s[1])}r&&Oo(Ix[o],"sham",!0)})("split",0,!!ve(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),nc);var tm=function(){return tm=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},tm.apply(this,arguments)};function Lx(t,e,n,r){return new(n||(n=Promise))(function(o,i){function a(l){try{s(r.next(l))}catch(c){i(c)}}function u(l){try{s(r.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof n?c:new n(function(f){f(c)})).then(a,u)}s((r=r.apply(t,e||[])).next())})}function Rx(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(s){return function(l){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(c[0]===6&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(f){c=[6,f],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([s,l])}}}var Mx=ze("unscopables"),zx=Array.prototype;zx[Mx]==null&&ri.f(zx,Mx,{configurable:!0,value:Bx(null)});var rs,FR,TR,$x=function(t){zx[Mx][t]=!0},oc={},m0t=!ve(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),_R=vx("IE_PROTO"),Hx=nt.Object,y0t=Hx.prototype,em=m0t?Hx.getPrototypeOf:function(t){var e=fx(t);if(Ze(e,_R))return e[_R];var n=e.constructor;return ae(n)&&e instanceof n?n.prototype:e instanceof Hx?y0t:null},Vx=ze("iterator"),PR=!1;[].keys&&("next"in(TR=[].keys())?(FR=em(em(TR)))!==Object.prototype&&(rs=FR):PR=!0);var b0t=rs==null||ve(function(){var t={};return rs[Vx].call(t)!==t});b0t&&(rs={}),ae(rs[Vx])||pr(rs,Vx,function(){return this});var Ux={IteratorPrototype:rs,BUGGY_SAFARI_ITERATORS:PR},w0t=ri.f,jR=ze("toStringTag"),nm=function(t,e,n){t&&!Ze(t=n?t:t.prototype,jR)&&w0t(t,jR,{configurable:!0,value:e})},E0t=Ux.IteratorPrototype,D0t=function(){return this},x0t=nt.String,C0t=nt.TypeError,ic=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=jt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch{}return function(r,o){return dn(r),function(i){if(typeof i=="object"||ae(i))return i;throw C0t("Can't set "+x0t(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),S0t=Hp.PROPER,A0t=Hp.CONFIGURABLE,IR=Ux.IteratorPrototype,rm=Ux.BUGGY_SAFARI_ITERATORS,Xp=ze("iterator"),O0t=function(){return this},NR=function(t,e,n,r,o,i,a){(function(y,h,b,w){var D=h+" Iterator";y.prototype=Bx(E0t,{next:z1(1,b)}),nm(y,D,!1),oc[D]=D0t})(n,e,r);var u,s,l,c=function(y){if(y===o&&v)return v;if(!rm&&y in d)return d[y];switch(y){case"keys":case"values":case"entries":return function(){return new n(this,y)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,g=d[Xp]||d["@@iterator"]||o&&d[o],v=!rm&&g||c(o),m=e=="Array"&&d.entries||g;if(m&&(u=em(m.call(new t)))!==Object.prototype&&u.next&&(em(u)!==IR&&(ic?ic(u,IR):ae(u[Xp])||pr(u,Xp,O0t)),nm(u,f,!0)),S0t&&o=="values"&&g&&g.name!=="values"&&(A0t?Oo(d,"name","values"):(p=!0,v=function(){return Zt(g,this)})),o)if(s={values:c("values"),keys:i?v:c("keys"),entries:c("entries")},a)for(l in s)(rm||p||!(l in d))&&pr(d,l,s[l]);else ko({target:e,proto:!0,forced:rm||p},s);return d[Xp]!==v&&pr(d,Xp,v,{name:o}),oc[e]=v,s},k0t=dr.set,B0t=dr.getterFor("Array Iterator"),Yp=NR(Array,"Array",function(t,e){k0t(this,{type:"Array Iterator",target:xa(t),index:0,kind:e})},function(){var t=B0t(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");oc.Arguments=oc.Array,$x("keys"),$x("values"),$x("entries");var F0t=OR.charAt,T0t=dr.set,_0t=dr.getterFor("String Iterator");NR(String,"String",function(t){T0t(this,{type:"String Iterator",string:Aa(t),index:0})},function(){var t,e=_0t(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=F0t(n,r),e.index+=t.length,{value:t,done:!1})});var om=function(t,e,n){for(var r in e)pr(t,r,e[r],n);return t},LR=q1.f,RR=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],P0t={f:function(t){return RR&&Jr(t)=="Window"?function(e){try{return LR(e)}catch{return Nx(RR)}}(t):LR(xa(t))}},MR=ve(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),im=Object.isExtensible,os=ve(function(){im(1)})||MR?function(t){return!!de(t)&&(!MR||Jr(t)!="ArrayBuffer")&&(!im||im(t))}:im,j0t=!ve(function(){return Object.isExtensible(Object.preventExtensions({}))}),Wx=ex(function(t){var e=ri.f,n=!1,r=dx("meta"),o=0,i=function(u){e(u,r,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},n=!0;var u=q1.f,s=jt([].splice),l={};l[r]=1,u(l).length&&(q1.f=function(c){for(var f=u(c),p=0,d=f.length;p<d;p++)if(f[p]===r){s(f,p,1);break}return f},ko({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:P0t.f}))},fastKey:function(u,s){if(!de(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Ze(u,r)){if(!os(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!Ze(u,r)){if(!os(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return j0t&&n&&os(u)&&!Ze(u,r)&&i(u),u}};W1[r]=!0}),zR=jt(jt.bind),Jp=function(t,e){return Ca(t),e===void 0?t:zR?zR(t,e):function(){return t.apply(e,arguments)}},I0t=ze("iterator"),N0t=Array.prototype,L0t=ze("iterator"),$R=function(t){if(t!=null)return Rp(t,L0t)||Rp(t,"@@iterator")||oc[Y1(t)]},R0t=nt.TypeError,HR=function(t,e,n){var r,o;dn(t);try{if(!(r=Rp(t,"return"))){if(e==="throw")throw n;return n}r=Zt(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return dn(r),n},M0t=nt.TypeError,am=function(t,e){this.stopped=t,this.result=e},VR=am.prototype,um=function(t,e,n){var r,o,i,a,u,s,l,c,f=n&&n.that,p=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),g=!(!n||!n.INTERRUPTED),v=Jp(e,f),m=function(h){return r&&HR(r,"normal",h),new am(!0,h)},y=function(h){return p?(dn(h),g?v(h[0],h[1],m):v(h[0],h[1])):g?v(h,m):v(h)};if(d)r=t;else{if(!(o=$R(t)))throw M0t($1(t)+" is not iterable");if((c=o)!==void 0&&(oc.Array===c||N0t[I0t]===c)){for(i=0,a=Up(t);a>i;i++)if((u=y(t[i]))&&Np(VR,u))return u;return new am(!1)}r=function(h,b){var w=arguments.length<2?$R(h):b;if(Ca(w))return dn(Zt(w,h));throw R0t($1(h)+" is not iterable")}(t,o)}for(s=r.next;!(l=Zt(s,r)).done;){try{u=y(l.value)}catch(h){HR(r,"throw",h)}if(typeof u=="object"&&u&&Np(VR,u))return u}return new am(!1)},z0t=nt.TypeError,Gx=function(t,e){if(Np(e,t))return t;throw z0t("Incorrect invocation")},UR=ze("iterator"),WR=!1;try{var $0t=0,GR={next:function(){return{done:!!$0t++}},return:function(){WR=!0}};GR[UR]=function(){return this},Array.from(GR,function(){throw 2})}catch{}var qR=function(t,e){if(!e&&!WR)return!1;var n=!1;try{var r={};r[UR]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch{}return n},H0t=ze("species"),KR=nt.Array,V0t=function(t,e){return new(function(n){var r;return X1(n)&&(r=n.constructor,(Dx(r)&&(r===KR||X1(r.prototype))||de(r)&&(r=r[H0t])===null)&&(r=void 0)),r===void 0?KR:r}(t))(e===0?0:e)},XR=jt([].push),Oa=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,g=fx(s),v=ix(g),m=Jp(l,c),y=Up(v),h=0,b=f||V0t,w=e?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in v)&&(d=m(p=v[h],h,g),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:XR(w,p)}else switch(t){case 4:return!1;case 7:XR(w,p)}return i?-1:r||o?o:w}},qx={forEach:Oa(0),map:Oa(1),filter:Oa(2),some:Oa(3),every:Oa(4),find:Oa(5),findIndex:Oa(6),filterReject:Oa(7)},sm=Wx.getWeakData,U0t=dr.set,W0t=dr.getterFor,G0t=qx.find,q0t=qx.findIndex,K0t=jt([].splice),X0t=0,lm=function(t){return t.frozen||(t.frozen=new YR)},YR=function(){this.entries=[]},Kx=function(t,e){return G0t(t.entries,function(n){return n[0]===e})};YR.prototype={get:function(t){var e=Kx(this,t);if(e)return e[1]},has:function(t){return!!Kx(this,t)},set:function(t,e){var n=Kx(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=q0t(this.entries,function(n){return n[0]===t});return~e&&K0t(this.entries,e,1),!!~e}};var Zp,JR={getConstructor:function(t,e,n,r){var o=t(function(s,l){Gx(s,i),U0t(s,{type:e,id:X0t++,frozen:void 0}),l!=null&&um(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=W0t(e),u=function(s,l,c){var f=a(s),p=sm(dn(l),!0);return p===!0?lm(f).set(l,c):p[f.id]=c,s};return om(i,{delete:function(s){var l=a(this);if(!de(s))return!1;var c=sm(s);return c===!0?lm(l).delete(s):c&&Ze(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!de(s))return!1;var c=sm(s);return c===!0?lm(l).has(s):c&&Ze(c,l.id)}}),om(i,n?{get:function(s){var l=a(this);if(de(s)){var c=sm(s);return c===!0?lm(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},cm=dr.enforce,Y0t=!nt.ActiveXObject&&"ActiveXObject"in nt,ZR=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},J0t=function(t,e,n){var r=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=r?"set":"add",a=nt[t],u=a&&a.prototype,s=a,l={},c=function(m){var y=jt(u[m]);pr(u,m,m=="add"?function(h){return y(this,h===0?0:h),this}:m=="delete"?function(h){return!(o&&!de(h))&&y(this,h===0?0:h)}:m=="get"?function(h){return o&&!de(h)?void 0:y(this,h===0?0:h)}:m=="has"?function(h){return!(o&&!de(h))&&y(this,h===0?0:h)}:function(h,b){return y(this,h===0?0:h,b),this})};if(K1(t,!ae(a)||!(o||u.forEach&&!ve(function(){new a().entries().next()}))))s=n.getConstructor(e,t,r,i),Wx.enable();else if(K1(t,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=ve(function(){f.has(1)}),g=qR(function(m){new a(m)}),v=!o&&ve(function(){for(var m=new a,y=5;y--;)m[i](y,y);return!m.has(-0)});g||((s=e(function(m,y){Gx(m,u);var h=function(b,w,D){var C,x;return ic&&ae(C=w.constructor)&&C!==D&&de(x=C.prototype)&&x!==D.prototype&&ic(b,x),b}(new a,m,s);return y!=null&&um(y,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(d||v)&&(c("delete"),c("has"),r&&c("get")),(v||p)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,ko({global:!0,forced:s!=a},l),nm(s,t),o||n.setStrong(s,t,r),s}("WeakMap",ZR,JR);if(nR&&Y0t){Zp=JR.getConstructor(ZR,"WeakMap",!0),Wx.enable();var Qp=J0t.prototype,QR=jt(Qp.delete),fm=jt(Qp.has),tM=jt(Qp.get),eM=jt(Qp.set);om(Qp,{delete:function(t){if(de(t)&&!os(t)){var e=cm(this);return e.frozen||(e.frozen=new Zp),QR(this,t)||e.frozen.delete(t)}return QR(this,t)},has:function(t){if(de(t)&&!os(t)){var e=cm(this);return e.frozen||(e.frozen=new Zp),fm(this,t)||e.frozen.has(t)}return fm(this,t)},get:function(t){if(de(t)&&!os(t)){var e=cm(this);return e.frozen||(e.frozen=new Zp),fm(this,t)?tM(this,t):e.frozen.get(t)}return tM(this,t)},set:function(t,e){if(de(t)&&!os(t)){var n=cm(this);n.frozen||(n.frozen=new Zp),fm(this,t)?eM(this,t,e):n.frozen.set(t,e)}else eM(this,t,e);return this}})}var dm={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Xx=zp("span").classList,nM=Xx&&Xx.constructor&&Xx.constructor.prototype,rM=nM===Object.prototype?void 0:nM,Yx=ze("iterator"),oM=ze("toStringTag"),Jx=Yp.values,iM=function(t,e){if(t){if(t[Yx]!==Jx)try{Oo(t,Yx,Jx)}catch{t[Yx]=Jx}if(t[oM]||Oo(t,oM,e),dm[e]){for(var n in Yp)if(t[n]!==Yp[n])try{Oo(t,n,Yp[n])}catch{t[n]=Yp[n]}}}};for(var Zx in dm)iM(nt[Zx]&&nt[Zx].prototype,Zx);iM(rM,"DOMTokenList");var aM=function(t,e){var n=[][t];return!!n&&ve(function(){n.call(null,e||function(){throw 1},1)})},Z0t=qx.forEach,Qx=aM("forEach")?[].forEach:function(t){return Z0t(this,t,arguments.length>1?arguments[1]:void 0)},uM=function(t){if(t&&t.forEach!==Qx)try{Oo(t,"forEach",Qx)}catch{t.forEach=Qx}};for(var t5 in dm)dm[t5]&&uM(nt[t5]&&nt[t5].prototype);uM(rM);var th,ac,sM,e5,pm=nt.Promise,lM=ze("species"),cM=/(?:ipad|iphone|ipod).*applewebkit/i.test(tc),ka=Jr(nt.process)=="process",n5=nt.setImmediate,r5=nt.clearImmediate,Q0t=nt.process,o5=nt.Dispatch,tgt=nt.Function,fM=nt.MessageChannel,egt=nt.String,i5=0,eh={};try{th=nt.location}catch{}var a5=function(t){if(Ze(eh,t)){var e=eh[t];delete eh[t],e()}},u5=function(t){return function(){a5(t)}},dM=function(t){a5(t.data)},pM=function(t){nt.postMessage(egt(t),th.protocol+"//"+th.host)};n5&&r5||(n5=function(t){var e=pR(arguments,1);return eh[++i5]=function(){xR(ae(t)?t:tgt(t),void 0,e)},ac(i5),i5},r5=function(t){delete eh[t]},ka?ac=function(t){Q0t.nextTick(u5(t))}:o5&&o5.now?ac=function(t){o5.now(u5(t))}:fM&&!cM?(e5=(sM=new fM).port2,sM.port1.onmessage=dM,ac=Jp(e5.postMessage,e5)):nt.addEventListener&&ae(nt.postMessage)&&!nt.importScripts&&th&&th.protocol!=="file:"&&!ve(pM)?(ac=pM,nt.addEventListener("message",dM,!1)):ac="onreadystatechange"in zp("script")?function(t){Ax.appendChild(zp("script")).onreadystatechange=function(){Ax.removeChild(this),a5(t)}}:function(t){setTimeout(u5(t),0)});var nh,is,rh,uc,s5,l5,c5,hM,gM={set:n5,clear:r5},ngt=/ipad|iphone|ipod/i.test(tc)&&nt.Pebble!==void 0,rgt=/web0s(?!.*chrome)/i.test(tc),ogt=gx.f,f5=gM.set,vM=nt.MutationObserver||nt.WebKitMutationObserver,mM=nt.document,yM=nt.process,hm=nt.Promise,bM=ogt(nt,"queueMicrotask"),wM=bM&&bM.value;wM||(nh=function(){var t,e;for(ka&&(t=yM.domain)&&t.exit();is;){e=is.fn,is=is.next;try{e()}catch(n){throw is?uc():rh=void 0,n}}rh=void 0,t&&t.enter()},cM||ka||rgt||!vM||!mM?!ngt&&hm&&hm.resolve?((c5=hm.resolve(void 0)).constructor=hm,hM=Jp(c5.then,c5),uc=function(){hM(nh)}):ka?uc=function(){yM.nextTick(nh)}:(f5=Jp(f5,nt),uc=function(){f5(nh)}):(s5=!0,l5=mM.createTextNode(""),new vM(nh).observe(l5,{characterData:!0}),uc=function(){l5.data=s5=!s5}));var d5,EM,DM,xM,CM=wM||function(t){var e={fn:t,next:void 0};rh&&(rh.next=e),is||(is=e,uc()),rh=e},igt=function(t){var e,n;this.promise=new t(function(r,o){if(e!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");e=r,n=o}),this.resolve=Ca(e),this.reject=Ca(n)},p5={f:function(t){return new igt(t)}},h5=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},agt=typeof window=="object",SM=gM.set,ugt=ze("species"),oi="Promise",AM=dr.getterFor(oi),sgt=dr.set,lgt=dr.getterFor(oi),as=pm&&pm.prototype,Bo=pm,oh=as,OM=nt.TypeError,g5=nt.document,v5=nt.process,sc=p5.f,cgt=sc,fgt=!!(g5&&g5.createEvent&&nt.dispatchEvent),kM=ae(nt.PromiseRejectionEvent),BM=!1,ih=K1(oi,function(){var t=U1(Bo),e=t!==String(Bo);if(!e&&Lp===66)return!0;if(Lp>=51&&/native code/.test(t))return!1;var n=new Bo(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[ugt]=r,!(BM=n.then(function(){})instanceof r)||!e&&agt&&!kM}),dgt=ih||!qR(function(t){Bo.all(t).catch(function(){})}),FM=function(t){var e;return!(!de(t)||!ae(e=t.then))&&e},m5=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;CM(function(){for(var r=t.value,o=t.state==1,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,p=l.reject,d=l.domain;try{c?(o||(t.rejection===2&&hgt(t),t.rejection=1),c===!0?a=r:(d&&d.enter(),a=c(r),d&&(d.exit(),s=!0)),a===l.promise?p(OM("Promise-chain cycle")):(u=FM(a))?Zt(u,a,f,p):f(a)):p(r)}catch(g){d&&!s&&d.exit(),p(g)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&pgt(t)})}},TM=function(t,e,n){var r,o;fgt?((r=g5.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),nt.dispatchEvent(r)):r={promise:e,reason:n},!kM&&(o=nt["on"+t])?o(r):t==="unhandledrejection"&&function(i,a){var u=nt.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))}("Unhandled promise rejection",n)},pgt=function(t){Zt(SM,nt,function(){var e,n=t.facade,r=t.value;if(_M(t)&&(e=h5(function(){ka?v5.emit("unhandledRejection",r,n):TM("unhandledrejection",n,r)}),t.rejection=ka||_M(t)?2:1,e.error))throw e.value})},_M=function(t){return t.rejection!==1&&!t.parent},hgt=function(t){Zt(SM,nt,function(){var e=t.facade;ka?v5.emit("rejectionHandled",e):TM("rejectionhandled",e,t.value)})},lc=function(t,e,n){return function(r){t(e,r,n)}},cc=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,m5(t,!0))},y5=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw OM("Promise can't be resolved itself");var r=FM(e);r?CM(function(){var o={done:!1};try{Zt(r,e,lc(y5,o,t),lc(cc,o,t))}catch(i){cc(o,i,t)}}):(t.value=e,t.state=1,m5(t,!1))}catch(o){cc({done:!1},o,t)}}};if(ih&&(oh=(Bo=function(t){Gx(this,oh),Ca(t),Zt(d5,this);var e=AM(this);try{t(lc(y5,e),lc(cc,e))}catch(n){cc(e,n)}}).prototype,(d5=function(t){sgt(this,{type:oi,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=om(oh,{then:function(t,e){var n=lgt(this),r=n.reactions,o=sc(CR(this,Bo));return o.ok=!ae(t)||t,o.fail=ae(e)&&e,o.domain=ka?v5.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&m5(n,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),EM=function(){var t=new d5,e=AM(t);this.promise=t,this.resolve=lc(y5,e),this.reject=lc(cc,e)},p5.f=sc=function(t){return t===Bo||t===DM?new EM(t):cgt(t)},ae(pm)&&as!==Object.prototype)){xM=as.then,BM||(pr(as,"then",function(t,e){var n=this;return new Bo(function(r,o){Zt(xM,n,r,o)}).then(t,e)},{unsafe:!0}),pr(as,"catch",oh.catch,{unsafe:!0}));try{delete as.constructor}catch{}ic&&ic(as,oh)}ko({global:!0,wrap:!0,forced:ih},{Promise:Bo}),nm(Bo,oi,!1),function(t){var e=ts("Promise"),n=ri.f;Ao&&e&&!e[lM]&&n(e,lM,{configurable:!0,get:function(){return this}})}(),DM=ts(oi),ko({target:oi,stat:!0,forced:ih},{reject:function(t){var e=sc(this);return Zt(e.reject,void 0,t),e.promise}}),ko({target:oi,stat:!0,forced:ih},{resolve:function(t){return function(e,n){if(dn(e),de(n)&&n.constructor===e)return n;var r=p5.f(e);return(0,r.resolve)(n),r.promise}(this,t)}}),ko({target:oi,stat:!0,forced:dgt},{all:function(t){var e=this,n=sc(e),r=n.resolve,o=n.reject,i=h5(function(){var a=Ca(e.resolve),u=[],s=0,l=1;um(t,function(c){var f=s++,p=!1;l++,Zt(a,e,c).then(function(d){p||(p=!0,u[f]=d,--l||r(u))},o)}),--l||r(u)});return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=sc(e),r=n.reject,o=h5(function(){var i=Ca(e.resolve);um(t,function(a){Zt(i,e,a).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var ggt=Hp.PROPER,b5=RegExp.prototype,PM=b5.toString,vgt=jt(hR),mgt=ve(function(){return PM.call({source:"a",flags:"b"})!="/a/b"}),ygt=ggt&&PM.name!="toString";(mgt||ygt)&&pr(RegExp.prototype,"toString",function(){var t=dn(this),e=Aa(t.source),n=t.flags;return"/"+e+"/"+Aa(n===void 0&&Np(b5,t)&&!("flags"in b5)?vgt(t):n)},{unsafe:!0});var bgt=Hp.EXISTS,wgt=ri.f,jM=Function.prototype,Egt=jt(jM.toString),IM=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Dgt=jt(IM.exec);Ao&&!bgt&&wgt(jM,"name",{configurable:!0,get:function(){try{return Dgt(IM,Egt(this))[1]}catch{return""}}});var NM=new WeakMap;function LM(t){return t.getMenuConfig("uploadImage")}function xgt(t,e){return Lx(this,void 0,void 0,function(){return Rx(this,function(n){return[2,new Promise(function(r){var o=new FileReader;o.readAsDataURL(e),o.onload=function(){var i=o.result;if(i){var a=i.toString(),u=a.indexOf("data:image")===0?"":a;Bu(t,a,e.name,u),r("ok")}}})]})})}function Cgt(t,e){return Lx(this,void 0,void 0,function(){var n,r,o,i;return Rx(this,function(a){switch(a.label){case 0:return n=function(u){var s=NM.get(u);if(s!=null)return s;var l=LM(u),c=l.onSuccess,f=l.onProgress,p=l.onFailed,d=l.customInsert,g=l.onError;return s=GB(tm(tm({},l),{onProgress:function(v){u.showProgressBar(v),f&&f(v)},onSuccess:function(v,m){if(d)return d(m,function(z,M,R){return Bu(u,z,M,R)}),void c(v,m);var y=m.errno,h=y===void 0?1:y,b=m.data,w=b===void 0?{}:b;if(h===0){if(Array.isArray(w))w.forEach(function(z){var M=z.url,R=M===void 0?"":M,K=z.alt,V=K===void 0?"":K,U=z.href;Bu(u,R,V,U===void 0?"":U)});else{var D=w.url,C=D===void 0?"":D,x=w.alt,S=x===void 0?"":x,F=w.href;Bu(u,C,S,F===void 0?"":F)}c(v,m)}else p(v,m)},onError:function(v,m,y){g(v,m,y)}})),NM.set(u,s),s}(t),r=e.name,o=e.type,i=e.size,n.addFile({name:r,type:o,size:i,data:e}),[4,n.upload()];case 1:return a.sent(),[2]}})})}function RM(t,e){var n,r;return Lx(this,void 0,void 0,function(){var o,i,a,u,s,l,c,f,p;return Rx(this,function(d){switch(d.label){case 0:if(e==null)return[2];o=Array.prototype.slice.call(e),i=LM(t),a=i.customUpload,u=i.base64LimitSize,d.label=1;case 1:d.trys.push([1,11,12,17]),s=function(g){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var v,m=g[Symbol.asyncIterator];return m?m.call(g):(g=function(h){var b=typeof Symbol=="function"&&Symbol.iterator,w=b&&h[b],D=0;if(w)return w.call(h);if(h&&typeof h.length=="number")return{next:function(){return h&&D>=h.length&&(h=void 0),{value:h&&h[D++],done:!h}}};throw new TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.")}(g),v={},y("next"),y("throw"),y("return"),v[Symbol.asyncIterator]=function(){return this},v);function y(h){v[h]=g[h]&&function(b){return new Promise(function(w,D){(function(C,x,S,F){Promise.resolve(F).then(function(z){C({value:z,done:S})},x)})(w,D,(b=g[h](b)).done,b.value)})}}}(o),d.label=2;case 2:return[4,s.next()];case 3:return(l=d.sent()).done?[3,10]:(c=l.value,f=c.size,u&&f<=u?[4,xgt(t,c)]:[3,5]);case 4:return d.sent(),[3,9];case 5:return a?[4,a(c,function(g,v,m){return Bu(t,g,v,m)})]:[3,7];case 6:return d.sent(),[3,9];case 7:return[4,Cgt(t,c)];case 8:d.sent(),d.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return p=d.sent(),n={error:p},[3,17];case 12:return d.trys.push([12,,15,16]),l&&!l.done&&(r=s.return)?[4,r.call(s)]:[3,14];case 13:d.sent(),d.label=14;case 14:return[3,16];case 15:if(n)throw n.error;return[7];case 16:return[7];case 17:return[2]}})})}var Sgt=jt([].join),Agt=ix!=Object,Ogt=aM("join",",");ko({target:"Array",proto:!0,forced:Agt||!Ogt},{join:function(t){return Sgt(xa(this),t===void 0?",":t)}}),vr&&(k.fn.append=vr),lo&&(k.fn.on=lo),zs&&(k.fn.remove=zs),so&&(k.fn.val=so),F7&&(k.fn.click=F7),Ns&&(k.fn.hide=Ns);var kgt=function(){function t(){this.title=et("uploadImgModule.uploadImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return Xg(e)},t.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadImage")},t.prototype.exec=function(e,n){var r=this.getMenuConfig(e),o=r.allowedFileTypes,i=o===void 0?[]:o,a=r.customBrowseAndUpload;if(a)a(function(c,f,p){return Bu(e,c,f,p)});else{var u="";i.length>0&&(u='accept="'+i.join(", ")+'"');var s=k("body"),l=k('<input type="file" '+u+" multiple/>");l.hide(),s.append(l),l.click(),l.on("change",function(){var c=l[0].files;RM(e,c)})}},t}(),Bgt={menus:[{key:"uploadImage",factory:function(){return new kgt},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(t){return t},onProgress:function(t){},onSuccess:function(t,e){},onFailed:function(t,e){console.error("'"+t.name+"' upload failed",e)},onError:function(t,e,n){console.error("'"+t.name+"' upload error",n)},base64LimitSize:0}}],editorPlugin:function(t){var e=t.insertData,n=t;return n.insertData=function(r){if(Xg(n))e(r);else if(r.getData("text/plain"))e(r);else{var o=r.files;o.length<=0?e(r):Array.prototype.slice.call(o).some(function(i){return function(a,u){var s=typeof Symbol=="function"&&a[Symbol.iterator];if(!s)return a;var l,c,f=s.call(a),p=[];try{for(;(u===void 0||u-- >0)&&!(l=f.next()).done;)p.push(l.value)}catch(d){c={error:d}}finally{try{l&&!l.done&&(s=f.return)&&s.call(f)}finally{if(c)throw c.error}}return p}(i.type.split("/"),1)[0]==="image"})?RM(t,o):e(r)}},n}};Vn("en",{highLightModule:{selectLang:"Language"}}),Vn("zh-CN",{highLightModule:{selectLang:"\u9009\u62E9\u8BED\u8A00"}});var gm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function w5(t){var e={exports:{}};return t(e,e.exports),e.exports}var Ba,vm,mm=function(t){return t&&t.Math==Math&&t},Nt=mm(typeof globalThis=="object"&&globalThis)||mm(typeof window=="object"&&window)||mm(typeof self=="object"&&self)||mm(typeof gm=="object"&&gm)||function(){return this}()||Function("return this")(),Fgt=Object.defineProperty,E5=function(t,e){try{Fgt(Nt,t,{value:e,configurable:!0,writable:!0})}catch{Nt[t]=e}return e},Fa=Nt["__core-js_shared__"]||E5("__core-js_shared__",{}),D5=w5(function(t){(t.exports=function(e,n){return Fa[e]||(Fa[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),MM=Function.prototype,x5=MM.bind,C5=MM.call,Tgt=x5&&x5.bind(C5),Qt=x5?function(t){return t&&Tgt(C5,t)}:function(t){return t&&function(){return C5.apply(t,arguments)}},_gt=Nt.TypeError,fc=function(t){if(t==null)throw _gt("Can't call method on "+t);return t},Pgt=Nt.Object,S5=function(t){return Pgt(fc(t))},jgt=Qt({}.hasOwnProperty),jr=Object.hasOwn||function(t,e){return jgt(S5(t),e)},Igt=0,Ngt=Math.random(),Lgt=Qt(1 .toString),zM=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Lgt(++Igt+Ngt,36)},On=function(t){return typeof t=="function"},ah=function(t,e){return arguments.length<2?function(n){return On(n)?n:void 0}(Nt[t]):Nt[t]&&Nt[t][e]},A5=ah("navigator","userAgent")||"",$M=Nt.process,HM=Nt.Deno,VM=$M&&$M.versions||HM&&HM.version,UM=VM&&VM.v8;UM&&(vm=(Ba=UM.split("."))[0]>0&&Ba[0]<4?1:+(Ba[0]+Ba[1])),!vm&&A5&&(!(Ba=A5.match(/Edge\/(\d+)/))||Ba[1]>=74)&&(Ba=A5.match(/Chrome\/(\d+)/))&&(vm=+Ba[1]);var WM=vm,pn=function(t){try{return!!t()}catch{return!0}},O5=!!Object.getOwnPropertySymbols&&!pn(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&WM&&WM<41}),k5=O5&&!Symbol.sham&&typeof Symbol.iterator=="symbol",uh=D5("wks"),us=Nt.Symbol,GM=us&&us.for,Rgt=k5?us:us&&us.withoutSetter||zM,Ta=function(t){if(!jr(uh,t)||!O5&&typeof uh[t]!="string"){var e="Symbol."+t;O5&&jr(us,t)?uh[t]=us[t]:uh[t]=k5&&GM?GM(e):Rgt(e)}return uh[t]},qM={};qM[Ta("toStringTag")]="z";var B5=String(qM)==="[object z]",Fo=!pn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Zr=function(t){return typeof t=="object"?t!==null:On(t)},F5=Nt.document,Mgt=Zr(F5)&&Zr(F5.createElement),T5=function(t){return Mgt?F5.createElement(t):{}},KM=!Fo&&!pn(function(){return Object.defineProperty(T5("div"),"a",{get:function(){return 7}}).a!=7}),zgt=Nt.String,$gt=Nt.TypeError,Qr=function(t){if(Zr(t))return t;throw $gt(zgt(t)+" is not an object")},sh=Function.prototype.call,an=sh.bind?sh.bind(sh):function(){return sh.apply(sh,arguments)},XM=Qt({}.isPrototypeOf),Hgt=Nt.Object,_5=k5?function(t){return typeof t=="symbol"}:function(t){var e=ah("Symbol");return On(e)&&XM(e.prototype,Hgt(t))},Vgt=Nt.String,YM=function(t){try{return Vgt(t)}catch{return"Object"}},Ugt=Nt.TypeError,JM=function(t){if(On(t))return t;throw Ugt(YM(t)+" is not a function")},ZM=function(t,e){var n=t[e];return n==null?void 0:JM(n)},Wgt=Nt.TypeError,Ggt=Nt.TypeError,qgt=Ta("toPrimitive"),P5=function(t){var e=function(n,r){if(!Zr(n)||_5(n))return n;var o,i=ZM(n,qgt);if(i){if(r===void 0&&(r="default"),o=an(i,n,r),!Zr(o)||_5(o))return o;throw Ggt("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&On(s=a.toString)&&!Zr(l=an(s,a))||On(s=a.valueOf)&&!Zr(l=an(s,a))||u!=="string"&&On(s=a.toString)&&!Zr(l=an(s,a)))return l;throw Wgt("Can't convert object to primitive value")}(n,r)}(t,"string");return _5(e)?e:e+""},Kgt=Nt.TypeError,QM=Object.defineProperty,ym={f:Fo?QM:function(t,e,n){if(Qr(t),e=P5(e),Qr(n),KM)try{return QM(t,e,n)}catch{}if("get"in n||"set"in n)throw Kgt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},j5=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},dc=Fo?function(t,e,n){return ym.f(t,e,j5(1,n))}:function(t,e,n){return t[e]=n,t},Xgt=Qt(Function.toString);On(Fa.inspectSource)||(Fa.inspectSource=function(t){return Xgt(t)});var bm,lh,wm,I5=Fa.inspectSource,tz=Nt.WeakMap,Ygt=On(tz)&&/native code/.test(I5(tz)),ez=D5("keys"),nz=function(t){return ez[t]||(ez[t]=zM(t))},N5={},L5=Nt.TypeError,Jgt=Nt.WeakMap;if(Ygt||Fa.state){var ss=Fa.state||(Fa.state=new Jgt),Zgt=Qt(ss.get),rz=Qt(ss.has),Qgt=Qt(ss.set);bm=function(t,e){if(rz(ss,t))throw new L5("Object already initialized");return e.facade=t,Qgt(ss,t,e),e},lh=function(t){return Zgt(ss,t)||{}},wm=function(t){return rz(ss,t)}}else{var pc=nz("state");N5[pc]=!0,bm=function(t,e){if(jr(t,pc))throw new L5("Object already initialized");return e.facade=t,dc(t,pc,e),e},lh=function(t){return jr(t,pc)?t[pc]:{}},wm=function(t){return jr(t,pc)}}var R5={set:bm,get:lh,has:wm,enforce:function(t){return wm(t)?lh(t):bm(t,{})},getterFor:function(t){return function(e){var n;if(!Zr(e)||(n=lh(e)).type!==t)throw L5("Incompatible receiver, "+t+" required");return n}}},oz=Function.prototype,tvt=Fo&&Object.getOwnPropertyDescriptor,M5=jr(oz,"name"),iz={EXISTS:M5,PROPER:M5&&(function(){}).name==="something",CONFIGURABLE:M5&&(!Fo||Fo&&tvt(oz,"name").configurable)},ch=w5(function(t){var e=iz.CONFIGURABLE,n=R5.get,r=R5.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;On(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!jr(u,"name")||e&&u.name!==d)&&dc(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==Nt?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:dc(i,a,u)):f?i[a]=u:E5(a,u)})(Function.prototype,"toString",function(){return On(this)&&n(this).source||I5(this)})}),evt=Qt({}.toString),nvt=Qt("".slice),_a=function(t){return nvt(evt(t),8,-1)},rvt=Ta("toStringTag"),ovt=Nt.Object,ivt=_a(function(){return arguments}())=="Arguments",z5=B5?_a:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=ovt(t),rvt))=="string"?n:ivt?_a(e):(r=_a(e))=="Object"&&On(e.callee)?"Arguments":r},avt=B5?{}.toString:function(){return"[object "+z5(this)+"]"};B5||ch(Object.prototype,"toString",avt,{unsafe:!0});var az,uz={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},$5=T5("span").classList,sz=$5&&$5.constructor&&$5.constructor.prototype,uvt=sz===Object.prototype?void 0:sz,lz=Qt(Qt.bind),H5=Nt.Object,svt=Qt("".split),V5=pn(function(){return!H5("z").propertyIsEnumerable(0)})?function(t){return _a(t)=="String"?svt(t,""):H5(t)}:H5,lvt=Math.ceil,cvt=Math.floor,U5=function(t){var e=+t;return e!=e||e===0?0:(e>0?cvt:lvt)(e)},fvt=Math.min,cz=function(t){return t>0?fvt(U5(t),9007199254740991):0},W5=function(t){return cz(t.length)},fz=Array.isArray||function(t){return _a(t)=="Array"},dz=function(){},dvt=[],pz=ah("Reflect","construct"),G5=/^\s*(?:class|function)\b/,pvt=Qt(G5.exec),hvt=!G5.exec(dz),fh=function(t){if(!On(t))return!1;try{return pz(dz,dvt,t),!0}catch{return!1}},hz=!pz||pn(function(){var t;return fh(fh.call)||!fh(Object)||!fh(function(){t=!0})||t})?function(t){if(!On(t))return!1;switch(z5(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return hvt||!!pvt(G5,I5(t))}:fh,gvt=Ta("species"),gz=Nt.Array,vvt=function(t,e){return new(function(n){var r;return fz(n)&&(r=n.constructor,(hz(r)&&(r===gz||fz(r.prototype))||Zr(r)&&(r=r[gvt])===null)&&(r=void 0)),r===void 0?gz:r}(t))(e===0?0:e)},vz=Qt([].push),Pa=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,g=S5(s),v=V5(g),m=function(D,C){return JM(D),C===void 0?D:lz?lz(D,C):function(){return D.apply(C,arguments)}}(l,c),y=W5(v),h=0,b=f||vvt,w=e?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in v)&&(d=m(p=v[h],h,g),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:vz(w,p)}else switch(t){case 4:return!1;case 7:vz(w,p)}return i?-1:r||o?o:w}},mvt=[Pa(0),Pa(1),Pa(2),Pa(3),Pa(4),Pa(5),Pa(6),Pa(7)][0],q5=(az=[].forEach)&&pn(function(){az.call(null,function(){throw 1},1)})?[].forEach:function(t){return mvt(this,t,arguments.length>1?arguments[1]:void 0)},mz=function(t){if(t&&t.forEach!==q5)try{dc(t,"forEach",q5)}catch{t.forEach=q5}};for(var K5 in uz)uz[K5]&&mz(Nt[K5]&&Nt[K5].prototype);mz(uvt);var yz={}.propertyIsEnumerable,bz=Object.getOwnPropertyDescriptor,wz={f:bz&&!yz.call({1:2},1)?function(t){var e=bz(this,t);return!!e&&e.enumerable}:yz},Em=function(t){return V5(fc(t))},Ez=Object.getOwnPropertyDescriptor,Dz={f:Fo?Ez:function(t,e){if(t=Em(t),e=P5(e),KM)try{return Ez(t,e)}catch{}if(jr(t,e))return j5(!an(wz.f,t,e),t[e])}},yvt=Math.max,bvt=Math.min,X5=function(t,e){var n=U5(t);return n<0?yvt(n+e,0):bvt(n,e)},wvt=function(t){return function(e,n,r){var o,i=Em(e),a=W5(i),u=X5(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}}(!1),xz=Qt([].push),Cz=function(t,e){var n,r=Em(t),o=0,i=[];for(n in r)!jr(N5,n)&&jr(r,n)&&xz(i,n);for(;e.length>o;)jr(r,n=e[o++])&&(~wvt(i,n)||xz(i,n));return i},Dm=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Evt=Dm.concat("length","prototype"),Dvt={f:Object.getOwnPropertyNames||function(t){return Cz(t,Evt)}},Sz={f:Object.getOwnPropertySymbols},xvt=Qt([].concat),Cvt=ah("Reflect","ownKeys")||function(t){var e=Dvt.f(Qr(t)),n=Sz.f;return n?xvt(e,n(t)):e},Svt=function(t,e){for(var n=Cvt(e),r=ym.f,o=Dz.f,i=0;i<n.length;i++){var a=n[i];jr(t,a)||r(t,a,o(e,a))}},Avt=/#|\.prototype\./,dh=function(t,e){var n=kvt[Ovt(t)];return n==Fvt||n!=Bvt&&(On(e)?pn(e):!!e)},Ovt=dh.normalize=function(t){return String(t).replace(Avt,".").toLowerCase()},kvt=dh.data={},Bvt=dh.NATIVE="N",Fvt=dh.POLYFILL="P",Tvt=dh,_vt=Dz.f,xm=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?Nt:l?Nt[u]||E5(u,{}):(Nt[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=_vt(n,r))&&a.value:n[r],!Tvt(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;Svt(i,o)}(t.sham||o&&o.sham)&&dc(i,"sham",!0),ch(n,r,i,t)}},Cm=Object.keys||function(t){return Cz(t,Dm)},hc=Object.assign,Az=Object.defineProperty,Pvt=Qt([].concat),Oz=!hc||pn(function(){if(Fo&&hc({b:1},hc(Az({},"a",{enumerable:!0,get:function(){Az(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(o){e[o]=o}),hc({},t)[n]!=7||Cm(hc({},e)).join("")!=r})?function(t,e){for(var n=S5(t),r=arguments.length,o=1,i=Sz.f,a=wz.f;r>o;)for(var u,s=V5(arguments[o++]),l=i?Pvt(Cm(s),i(s)):Cm(s),c=l.length,f=0;c>f;)u=l[f++],Fo&&!an(a,s,u)||(n[u]=s[u]);return n}:hc;xm({target:"Object",stat:!0,forced:Object.assign!==Oz},{assign:Oz});var kz=w5(function(t){var e=function(n){var r=/\blang(?:uage)?-([\w-]+)\b/i,o=0,i={},a={manual:n.Prism&&n.Prism.manual,disableWorkerMessageHandler:n.Prism&&n.Prism.disableWorkerMessageHandler,util:{encode:function m(y){return y instanceof u?new u(y.type,m(y.content),y.alias):Array.isArray(y)?y.map(m):y.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(m){return Object.prototype.toString.call(m).slice(8,-1)},objId:function(m){return m.__id||Object.defineProperty(m,"__id",{value:++o}),m.__id},clone:function m(y,h){var b,w;switch(h=h||{},a.util.type(y)){case"Object":if(w=a.util.objId(y),h[w])return h[w];for(var D in b={},h[w]=b,y)y.hasOwnProperty(D)&&(b[D]=m(y[D],h));return b;case"Array":return w=a.util.objId(y),h[w]?h[w]:(b=[],h[w]=b,y.forEach(function(C,x){b[x]=m(C,h)}),b);default:return y}},getLanguage:function(m){for(;m&&!r.test(m.className);)m=m.parentElement;return m?(m.className.match(r)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(b){var m=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(b.stack)||[])[1];if(m){var y=document.getElementsByTagName("script");for(var h in y)if(y[h].src==m)return y[h]}return null}},isActive:function(m,y,h){for(var b="no-"+y;m;){var w=m.classList;if(w.contains(y))return!0;if(w.contains(b))return!1;m=m.parentElement}return!!h}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(m,y){var h=a.util.clone(a.languages[m]);for(var b in y)h[b]=y[b];return h},insertBefore:function(m,y,h,b){var w=(b=b||a.languages)[m],D={};for(var C in w)if(w.hasOwnProperty(C)){if(C==y)for(var x in h)h.hasOwnProperty(x)&&(D[x]=h[x]);h.hasOwnProperty(C)||(D[C]=w[C])}var S=b[m];return b[m]=D,a.languages.DFS(a.languages,function(F,z){z===S&&F!=m&&(this[F]=D)}),D},DFS:function m(y,h,b,w){w=w||{};var D=a.util.objId;for(var C in y)if(y.hasOwnProperty(C)){h.call(y,C,y[C],b||C);var x=y[C],S=a.util.type(x);S!=="Object"||w[D(x)]?S!=="Array"||w[D(x)]||(w[D(x)]=!0,m(x,h,C,w)):(w[D(x)]=!0,m(x,h,null,w))}}},plugins:{},highlightAll:function(m,y){a.highlightAllUnder(document,m,y)},highlightAllUnder:function(m,y,h){var b={callback:h,container:m,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};a.hooks.run("before-highlightall",b),b.elements=Array.prototype.slice.apply(b.container.querySelectorAll(b.selector)),a.hooks.run("before-all-elements-highlight",b);for(var w,D=0;w=b.elements[D++];)a.highlightElement(w,y===!0,b.callback)},highlightElement:function(m,y,h){var b=a.util.getLanguage(m),w=a.languages[b];m.className=m.className.replace(r,"").replace(/\s+/g," ")+" language-"+b;var D=m.parentElement;D&&D.nodeName.toLowerCase()==="pre"&&(D.className=D.className.replace(r,"").replace(/\s+/g," ")+" language-"+b);var C={element:m,language:b,grammar:w,code:m.textContent};function x(F){C.highlightedCode=F,a.hooks.run("before-insert",C),C.element.innerHTML=C.highlightedCode,a.hooks.run("after-highlight",C),a.hooks.run("complete",C),h&&h.call(C.element)}if(a.hooks.run("before-sanity-check",C),(D=C.element.parentElement)&&D.nodeName.toLowerCase()==="pre"&&!D.hasAttribute("tabindex")&&D.setAttribute("tabindex","0"),!C.code)return a.hooks.run("complete",C),void(h&&h.call(C.element));if(a.hooks.run("before-highlight",C),C.grammar)if(y&&n.Worker){var S=new Worker(a.filename);S.onmessage=function(F){x(F.data)},S.postMessage(JSON.stringify({language:C.language,code:C.code,immediateClose:!0}))}else x(a.highlight(C.code,C.grammar,C.language));else x(a.util.encode(C.code))},highlight:function(m,y,h){var b={code:m,grammar:y,language:h};return a.hooks.run("before-tokenize",b),b.tokens=a.tokenize(b.code,b.grammar),a.hooks.run("after-tokenize",b),u.stringify(a.util.encode(b.tokens),b.language)},tokenize:function(m,y){var h=y.rest;if(h){for(var b in h)y[b]=h[b];delete y.rest}var w=new c;return f(w,w.head,m),l(m,w,y,w.head,0),function(D){for(var C=[],x=D.head.next;x!==D.tail;)C.push(x.value),x=x.next;return C}(w)},hooks:{all:{},add:function(m,y){var h=a.hooks.all;h[m]=h[m]||[],h[m].push(y)},run:function(m,y){var h=a.hooks.all[m];if(h&&h.length)for(var b,w=0;b=h[w++];)b(y)}},Token:u};function u(m,y,h,b){this.type=m,this.content=y,this.alias=h,this.length=0|(b||"").length}function s(m,y,h,b){m.lastIndex=y;var w=m.exec(h);if(w&&b&&w[1]){var D=w[1].length;w.index+=D,w[0]=w[0].slice(D)}return w}function l(m,y,h,b,w,D){for(var C in h)if(h.hasOwnProperty(C)&&h[C]){var x=h[C];x=Array.isArray(x)?x:[x];for(var S=0;S<x.length;++S){if(D&&D.cause==C+","+S)return;var F=x[S],z=F.inside,M=!!F.lookbehind,R=!!F.greedy,K=F.alias;if(R&&!F.pattern.global){var V=F.pattern.toString().match(/[imsuy]*$/)[0];F.pattern=RegExp(F.pattern.source,V+"g")}for(var U=F.pattern||F,W=b.next,Z=w;W!==y.tail&&!(D&&Z>=D.reach);Z+=W.value.length,W=W.next){var lt=W.value;if(y.length>m.length)return;if(!(lt instanceof u)){var ut,at=1;if(R){if(!(ut=s(U,Z,m,M)))break;var B=ut.index,O=ut.index+ut[0].length,T=Z;for(T+=W.value.length;B>=T;)T+=(W=W.next).value.length;if(Z=T-=W.value.length,W.value instanceof u)continue;for(var N=W;N!==y.tail&&(T<O||typeof N.value=="string");N=N.next)at++,T+=N.value.length;at--,lt=m.slice(Z,T),ut.index-=Z}else if(!(ut=s(U,0,lt,M)))continue;B=ut.index;var X=ut[0],G=lt.slice(0,B),st=lt.slice(B+X.length),ht=Z+lt.length;D&&ht>D.reach&&(D.reach=ht);var mt=W.prev;if(G&&(mt=f(y,mt,G),Z+=G.length),p(y,mt,at),W=f(y,mt,new u(C,z?a.tokenize(X,z):X,K,X)),st&&f(y,W,st),at>1){var Bt={cause:C+","+S,reach:ht};l(m,y,h,W.prev,Z,Bt),D&&Bt.reach>D.reach&&(D.reach=Bt.reach)}}}}}}function c(){var m={value:null,prev:null,next:null},y={value:null,prev:m,next:null};m.next=y,this.head=m,this.tail=y,this.length=0}function f(m,y,h){var b=y.next,w={value:h,prev:y,next:b};return y.next=w,b.prev=w,m.length++,w}function p(m,y,h){for(var b=y.next,w=0;w<h&&b!==m.tail;w++)b=b.next;y.next=b,b.prev=y,m.length-=w}if(n.Prism=a,u.stringify=function m(y,h){if(typeof y=="string")return y;if(Array.isArray(y)){var b="";return y.forEach(function(S){b+=m(S,h)}),b}var w={type:y.type,content:m(y.content,h),tag:"span",classes:["token",y.type],attributes:{},language:h},D=y.alias;D&&(Array.isArray(D)?Array.prototype.push.apply(w.classes,D):w.classes.push(D)),a.hooks.run("wrap",w);var C="";for(var x in w.attributes)C+=" "+x+'="'+(w.attributes[x]||"").replace(/"/g,""")+'"';return"<"+w.tag+' class="'+w.classes.join(" ")+'"'+C+">"+w.content+"</"+w.tag+">"},!n.document)return n.addEventListener&&(a.disableWorkerMessageHandler||n.addEventListener("message",function(m){var y=JSON.parse(m.data),h=y.language,b=y.code,w=y.immediateClose;n.postMessage(a.highlight(b,a.languages[h],h)),w&&n.close()},!1)),a;var d=a.util.currentScript();function g(){a.manual||a.highlightAll()}if(d&&(a.filename=d.src,d.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var v=document.readyState;v==="loading"||v==="interactive"&&d&&d.defer?document.addEventListener("DOMContentLoaded",g):window.requestAnimationFrame?window.requestAnimationFrame(g):window.setTimeout(g,16)}return a}(typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{});t.exports&&(t.exports=e),gm!==void 0&&(gm.Prism=e),e.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(n){n.type==="entity"&&(n.attributes.title=n.content.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,r){var o={};o["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[r]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};i["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var a={};a[n]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:i},e.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(n,r){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+n+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:e.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml,function(n){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;n.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},n.languages.css.atrule.inside.rest=n.languages.css;var o=n.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))}(e),e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript,function(){if(e!==void 0&&typeof document<"u"){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var n={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},r="data-src-status",o='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',i=/\blang(?:uage)?-([\w-]+)\b/i;e.hooks.add("before-highlightall",function(s){s.selector+=", "+o}),e.hooks.add("before-sanity-check",function(s){var l=s.element;if(l.matches(o)){s.code="",l.setAttribute(r,"loading");var c=l.appendChild(document.createElement("CODE"));c.textContent="Loading\u2026";var f=l.getAttribute("data-src"),p=s.language;if(p==="none"){var d=(/\.(\w+)$/.exec(f)||[,"none"])[1];p=n[d]||d}u(c,p),u(l,p);var g=e.plugins.autoloader;g&&g.loadLanguages(p);var v=new XMLHttpRequest;v.open("GET",f,!0),v.onreadystatechange=function(){v.readyState==4&&(v.status<400&&v.responseText?(l.setAttribute(r,"loaded"),c.textContent=v.responseText,e.highlightElement(c)):(l.setAttribute(r,"failed"),v.status>=400?c.textContent="\u2716 Error "+v.status+" while fetching file: "+v.statusText:c.textContent="\u2716 Error: File does not exist or is empty"))},v.send(null)}}),e.plugins.fileHighlight={highlight:function(s){for(var l,c=(s||document).querySelectorAll(o),f=0;l=c[f++];)e.highlightElement(l)}};var a=!1;e.fileHighlight=function(){a||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),a=!0),e.plugins.fileHighlight.highlight.apply(this,arguments)}}function u(s,l){var c=s.className;c=c.replace(i," ")+" language-"+l,s.className=c.replace(/\s+/g," ").trim()}}()});(function(t){var e=t.util.clone(t.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(s,l){return s=s.replace(/<S>/g,function(){return n}).replace(/<BRACES>/g,function(){return r}).replace(/<SPREAD>/g,function(){return o}),RegExp(s,l)}o=i(o).source,t.languages.jsx=t.languages.extend("markup",e),t.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=e.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx},alias:"language-javascript"}},t.languages.jsx.tag);var a=function(s){return s?typeof s=="string"?s:typeof s.content=="string"?s.content:s.content.map(a).join(""):""},u=function(s){for(var l=[],c=0;c<s.length;c++){var f=s[c],p=!1;if(typeof f!="string"&&(f.type==="tag"&&f.content[0]&&f.content[0].type==="tag"?f.content[0].content[0].content==="</"?l.length>0&&l[l.length-1].tagName===a(f.content[0].content[1])&&l.pop():f.content[f.content.length-1].content==="/>"||l.push({tagName:a(f.content[0].content[1]),openedBraces:0}):l.length>0&&f.type==="punctuation"&&f.content==="{"?l[l.length-1].openedBraces++:l.length>0&&l[l.length-1].openedBraces>0&&f.type==="punctuation"&&f.content==="}"?l[l.length-1].openedBraces--:p=!0),(p||typeof f=="string")&&l.length>0&&l[l.length-1].openedBraces===0){var d=a(f);c<s.length-1&&(typeof s[c+1]=="string"||s[c+1].type==="plain-text")&&(d+=a(s[c+1]),s.splice(c+1,1)),c>0&&(typeof s[c-1]=="string"||s[c-1].type==="plain-text")&&(d=a(s[c-1])+d,s.splice(c-1,1),c--),s[c]=new t.Token("plain-text",d,null,d)}f.content&&typeof f.content!="string"&&u(f.content)}};t.hooks.add("after-tokenize",function(s){s.language!=="jsx"&&s.language!=="tsx"||u(s.tokens)})})(Prism),function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|as|declare|implements|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter;var e=t.languages.extend("typescript",{});delete e["class-name"],t.languages.typescript["class-name"].inside=e,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e}}}}),t.languages.ts=t.languages.typescript}(Prism),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.replace(/&/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(t,e){var n={};n["language-"+e]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[e]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+e]={pattern:/[\s\S]+/,inside:Prism.languages[e]};var o={};o[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return t}),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(t,e){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[e,"language-"+e],inside:Prism.languages[e]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,number:/(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/}),delete Prism.languages.go["class-name"],function(t){var e=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;t.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:e,variable:/\$+(?:\w+\b|(?=\{))/i,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:null|false)\b/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:o,punctuation:i};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:t.languages.php},u=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];t.languages.insertBefore("php","variable",{string:u,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:e,string:u,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:o,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",function(s){/<\?/.test(s.code)&&t.languages["markup-templating"].buildPlaceholders(s,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)}),t.hooks.add("after-tokenize",function(s){t.languages["markup-templating"].tokenizePlaceholders(s,"php")})}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c.boolean,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,function(t){var e=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:e,function:[t.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),t.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:e,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return e.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(t){var e=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return e.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return e.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:e,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:true|false)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:module|import)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return n})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])}(Prism),function(t){function e(O,T){return O.replace(/<<(\d+)>>/g,function(N,X){return"(?:"+T[+X]+")"})}function n(O,T,N){return RegExp(e(O,T),N||"")}function r(O,T){for(var N=0;N<T;N++)O=O.replace(/<<self>>/g,function(){return"(?:"+O+")"});return O.replace(/<<self>>/g,"[^\\s\\S]")}var o="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",a="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",u="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function s(O){return"\\b(?:"+O.trim().replace(/ /g,"|")+")\\b"}var l=s(i),c=RegExp(s(o+" "+i+" "+a+" "+u)),f=s(i+" "+a+" "+u),p=s(o+" "+i+" "+u),d=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),g=r(/\((?:[^()]|<<self>>)*\)/.source,2),v=/@?\b[A-Za-z_]\w*\b/.source,m=e(/<<0>>(?:\s*<<1>>)?/.source,[v,d]),y=e(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,m]),h=/\[\s*(?:,\s*)*\]/.source,b=e(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,h]),w=e(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[d,g,h]),D=e(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),C=e(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[D,y,h]),x={keyword:c,punctuation:/[<>()?,.:[\]]/},S=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,F=/"(?:\\.|[^\\"\r\n])*"/.source,z=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[z]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[F]),lookbehind:!0,greedy:!0},{pattern:RegExp(S),greedy:!0,alias:"character"}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:x},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[v,C]),lookbehind:!0,inside:x},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[v]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,m]),lookbehind:!0,inside:x},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:x},{pattern:n(/(\bwhere\s+)<<0>>/.source,[v]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:x},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[C,p,v]),inside:x}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),t.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),t.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[v]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[v]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[g]),lookbehind:!0,alias:"class-name",inside:x},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[C,y]),inside:x,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[C]),lookbehind:!0,inside:x,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[v,d]),inside:{function:n(/^<<0>>/.source,[v]),generic:{pattern:RegExp(d),alias:"class-name",inside:x}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,m,v,C,c.source,g,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[m,g]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:c,"class-name":{pattern:RegExp(C),greedy:!0,inside:x},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var M=F+"|"+S,R=e(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[M]),K=r(e(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[R]),2),V=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,U=e(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,K]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[V,U]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[V]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[K]),inside:t.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var W=/:[^}\r\n]+/.source,Z=r(e(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[R]),2),lt=e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[Z,W]),ut=r(e(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[M]),2),at=e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[ut,W]);function B(O,T){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[O]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[T,W]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:t.languages.csharp}}},string:/[\s\S]+/}}t.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[lt]),lookbehind:!0,greedy:!0,inside:B(lt,Z)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[at]),lookbehind:!0,greedy:!0,inside:B(at,ut)}]})}(Prism),Prism.languages.dotnet=Prism.languages.cs=Prism.languages.csharp,Prism.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:[^\S\r\n]_[^\S\r\n]*(?:\r\n?|\n)|.)+/i,alias:"comment",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[^\S\r\n]*(?:\d+([/-])\d+\1\d+(?:[^\S\r\n]+(?:\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?))?|\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?)[^\S\r\n]*#/i,alias:"builtin"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:U?[ILS]|[FRD])?/i,boolean:/\b(?:True|False|Nothing)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Until|Xor)\b/i,operator:[/[+\-*/\\^<=>&#@$%!]/,{pattern:/([^\S\r\n])_(?=[^\S\r\n]*[\r\n])/,lookbehind:!0}],punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages["visual-basic"],Prism.languages.vba=Prism.languages["visual-basic"],Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:TRUE|FALSE|NULL)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(t){t.languages.ruby=t.languages.extend("clike",{comment:[/#.*/,{pattern:/^=begin\s[\s\S]*?^=end/m,greedy:!0}],"class-name":{pattern:/(\b(?:class)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/});var e={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:t.languages.ruby}};delete t.languages.ruby.function,t.languages.insertBefore("ruby","keyword",{regex:[{pattern:RegExp(/%r/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:e}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:e}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:{pattern:/(^|[^:]):[a-zA-Z_]\w*(?:[?!]|\b)/,lookbehind:!0},"method-definition":{pattern:/(\bdef\s+)[\w.]+/,lookbehind:!0,inside:{function:/\w+$/,rest:t.languages.ruby}}}),t.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,constant:/\b[A-Z]\w*(?:[?!]|\b)/}),t.languages.ruby.string=[{pattern:RegExp(/%[qQiIwWxs]?/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"),greedy:!0,inside:{interpolation:e}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:e}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?/}},interpolation:e}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?'|'$/}}}}],t.languages.rb=t.languages.ruby}(Prism),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:true|false)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:true|false)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=Prism.languages.swift}),function(t){var e="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+e),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+e),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/};t.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+e),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+e),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=t.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=t.languages.bash[o[a]];t.languages.shell=t.languages.bash}(Prism),function(t){var e=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(l){return l=l.replace(/<inner>/g,function(){return e}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+l+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"font-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(l){["url","bold","italic","strike","code-snippet"].forEach(function(c){l!==c&&(t.languages.markdown[l].inside.content.inside[c]=t.languages.markdown[c])})}),t.hooks.add("after-tokenize",function(l){l.language!=="markdown"&&l.language!=="md"||function c(f){if(f&&typeof f!="string")for(var p=0,d=f.length;p<d;p++){var g=f[p];if(g.type==="code"){var v=g.content[1],m=g.content[3];if(v&&m&&v.type==="code-language"&&m.type==="code-block"&&typeof v.content=="string"){var y=v.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),h="language-"+(y=(/[a-z][\w-]*/i.exec(y)||[""])[0].toLowerCase());m.alias?typeof m.alias=="string"?m.alias=[m.alias,h]:m.alias.push(h):m.alias=[h]}}else c(g.content)}}(l.tokens)}),t.hooks.add("wrap",function(l){if(l.type==="code-block"){for(var c="",f=0,p=l.classes.length;f<p;f++){var d=l.classes[f],g=/language-(.+)/.exec(d);if(g){c=g[1];break}}var v=t.languages[c];if(v)l.content=t.highlight(function(y){return y.replace(a,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(h,b){var w;return(b=b.toLowerCase())[0]==="#"?(w=b[1]==="x"?parseInt(b.slice(2),16):Number(b.slice(1)),s(w)):u[b]||h})}(l.content),v,c);else if(c&&c!=="none"&&t.plugins.autoloader){var m="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random());l.attributes.id=m,t.plugins.autoloader.loadLanguages(c,function(){var y=document.getElementById(m);y&&(y.innerHTML=t.highlight(y.textContent,t.languages[c],c))})}}});var a=RegExp(t.languages.markup.tag.pattern.source,"gi"),u={amp:"&",lt:"<",gt:">",quot:'"'},s=String.fromCodePoint||String.fromCharCode;t.languages.md=t.languages.markdown}(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},Prism.languages.groovy=Prism.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:as|def|in|abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),Prism.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),Prism.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:setup|given|when|then|and|cleanup|expect|where):/}),Prism.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),Prism.hooks.add("wrap",function(t){if(t.language==="groovy"&&t.type==="string"){var e=t.content[0];if(e!="'"){var n=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;e==="$"&&(n=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),t.content=t.content.replace(/</g,"<").replace(/&/g,"&"),t.content=Prism.highlight(t.content,{expression:{pattern:n,lookbehind:!0,inside:Prism.languages.groovy}}),t.classes.push(e==="/"?"regex":"gstring")}}});var jvt=["comment","prolog","doctype","cdata","punctuation","namespace","property","tag","boolean","number","constant","symbol","deleted","selector","attr-name","string","builtin","inserted","operator","entity","url","string","atrule","attr-value","keyword","function","class-name","regex","important","variable","bold","italic","entity","char"];function Bz(t){return typeof t=="string"?t.length:typeof t.content=="string"?t.content.length:t.content.reduce(function(e,n){return e+Bz(n)},0)}var Sm,Ivt=Nt.String,ii=function(t){if(z5(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Ivt(t)},Fz=function(){var t=Qr(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},Y5=Nt.RegExp,J5=pn(function(){var t=Y5("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),Nvt=J5||pn(function(){return!Y5("a","y").sticky}),Tz={BROKEN_CARET:J5||pn(function(){var t=Y5("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:Nvt,UNSUPPORTED_Y:J5},Lvt=Fo?Object.defineProperties:function(t,e){Qr(t);for(var n,r=Em(e),o=Cm(e),i=o.length,a=0;i>a;)ym.f(t,n=o[a++],r[n]);return t},Rvt=ah("document","documentElement"),_z=nz("IE_PROTO"),Z5=function(){},Pz=function(t){return"<script>"+t+"<\/script>"},jz=function(t){t.write(Pz("")),t.close();var e=t.parentWindow.Object;return t=null,e},Am=function(){try{Sm=new ActiveXObject("htmlfile")}catch{}var t,e;Am=typeof document<"u"?document.domain&&Sm?jz(Sm):((e=T5("iframe")).style.display="none",Rvt.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(Pz("document.F=Object")),t.close(),t.F):jz(Sm);for(var n=Dm.length;n--;)delete Am.prototype[Dm[n]];return Am()};N5[_z]=!0;var Iz,Q5,Mvt=Object.create||function(t,e){var n;return t!==null?(Z5.prototype=Qr(t),n=new Z5,Z5.prototype=null,n[_z]=t):n=Am(),e===void 0?n:Lvt(n,e)},zvt=Nt.RegExp,$vt=pn(function(){var t=zvt(".","s");return!(t.dotAll&&t.exec(`
- `)&&t.flags==="s")}),Hvt=Nt.RegExp,Vvt=pn(function(){var t=Hvt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),Uvt=R5.get,Wvt=D5("native-string-replace",String.prototype.replace),Om=RegExp.prototype.exec,tC=Om,Gvt=Qt("".charAt),qvt=Qt("".indexOf),Kvt=Qt("".replace),eC=Qt("".slice),nC=(Q5=/b*/g,an(Om,Iz=/a/,"a"),an(Om,Q5,"a"),Iz.lastIndex!==0||Q5.lastIndex!==0),Nz=Tz.BROKEN_CARET,rC=/()??/.exec("")[1]!==void 0;(nC||rC||Nz||$vt||Vvt)&&(tC=function(t){var e,n,r,o,i,a,u,s=this,l=Uvt(s),c=ii(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=an(tC,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=Nz&&s.sticky,g=an(Fz,s),v=s.source,m=0,y=c;if(d&&(g=Kvt(g,"y",""),qvt(g,"g")===-1&&(g+="g"),y=eC(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Gvt(c,s.lastIndex-1)!==`
- `)&&(v="(?: "+v+")",y=" "+y,m++),n=new RegExp("^(?:"+v+")",g)),rC&&(n=new RegExp("^"+v+"$(?!\\s)",g)),nC&&(r=s.lastIndex),o=an(Om,d?n:s,y),d?o?(o.input=eC(o.input,m),o[0]=eC(o[0],m),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:nC&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),rC&&o&&o.length>1&&an(Wvt,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=Mvt(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var ph=tC;xm({target:"RegExp",proto:!0,forced:/./.exec!==ph},{exec:ph});var oC=Function.prototype,Lz=oC.apply,Xvt=oC.bind,Rz=oC.call,Yvt=typeof Reflect=="object"&&Reflect.apply||(Xvt?Rz.bind(Lz):function(){return Rz.apply(Lz,arguments)}),Jvt=Ta("species"),iC=RegExp.prototype,Zvt=Ta("match"),Qvt=Nt.TypeError,t1t=Ta("species"),e1t=Qt("".charAt),Mz=Qt("".charCodeAt),n1t=Qt("".slice),r1t=function(t){return function(e,n){var r,o,i=ii(fc(e)),a=U5(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=Mz(i,a))<55296||r>56319||a+1===u||(o=Mz(i,a+1))<56320||o>57343?t?e1t(i,a):r:t?n1t(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),o1t=function(t,e,n){return e+(n?r1t(t,e).length:1)},i1t=Nt.Array,a1t=Math.max,zz=function(t,e,n){for(var r,o,i,a,u=W5(t),s=X5(e,u),l=X5(n===void 0?u:n,u),c=i1t(a1t(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=t[s],(a=P5(o))in r?ym.f(r,a,j5(0,i)):r[a]=i;return c.length=f,c},u1t=Nt.TypeError,$z=function(t,e){var n=t.exec;if(On(n)){var r=an(n,t,e);return r!==null&&Qr(r),r}if(_a(t)==="RegExp")return an(ph,t,e);throw u1t("RegExp#exec called on incompatible receiver")},gc=Tz.UNSUPPORTED_Y,s1t=Math.min,Hz=[].push,l1t=Qt(/./.exec),vc=Qt(Hz),hh=Qt("".slice);(function(t,e,n,r){var o=Ta(t),i=!pn(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!pn(function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[Jvt]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=Qt(/./[o]),s=function(l,c,f){var p;return p="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(d,g){var v,m,y=ii(fc(this)),h=g===void 0?4294967295:g>>>0;if(h===0)return[];if(d===void 0)return[y];if(!Zr(v=d)||!((m=v[Zvt])!==void 0?m:_a(v)=="RegExp"))return an(c,y,d,h);for(var b,w,D,C=[],x=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(d.sticky?"y":""),S=0,F=new RegExp(d.source,x+"g");(b=an(ph,F,y))&&!((w=F.lastIndex)>S&&(vc(C,hh(y,S,b.index)),b.length>1&&b.index<y.length&&Yvt(Hz,C,zz(b,1)),D=b[0].length,S=w,C.length>=h));)F.lastIndex===b.index&&F.lastIndex++;return S===y.length?!D&&l1t(F,"")||vc(C,""):vc(C,hh(y,S)),C.length>h?zz(C,0,h):C}:"0".split(void 0,0).length?function(d,g){return d===void 0&&g===0?[]:an(c,this,d,g)}:c,[function(d,g){var v=fc(this),m=d==null?void 0:ZM(d,l);return m?an(m,d,v,g):an(p,ii(v),d,g)},function(d,g){var v=Qr(this),m=ii(d),y=f(p,v,m,g,p!==c);if(y.done)return y.value;var h=function(K,V){var U,W=Qr(K).constructor;return W===void 0||(U=Qr(W)[t1t])==null?V:function(Z){if(hz(Z))return Z;throw Qvt(YM(Z)+" is not a constructor")}(U)}(v,RegExp),b=v.unicode,w=(v.ignoreCase?"i":"")+(v.multiline?"m":"")+(v.unicode?"u":"")+(gc?"g":"y"),D=new h(gc?"^(?:"+v.source+")":v,w),C=g===void 0?4294967295:g>>>0;if(C===0)return[];if(m.length===0)return $z(D,m)===null?[m]:[];for(var x=0,S=0,F=[];S<m.length;){D.lastIndex=gc?0:S;var z,M=$z(D,gc?hh(m,S):m);if(M===null||(z=s1t(cz(D.lastIndex+(gc?S:0)),m.length))===x)S=o1t(m,S,b);else{if(vc(F,hh(m,x,S)),F.length===C)return F;for(var R=1;R<=M.length-1;R++)if(vc(F,M[R]),F.length===C)return F;S=x=z}}return vc(F,hh(m,x)),F}]}(o,""[t],function(l,c,f,p,d){var g=Qt(l),v=c.exec;return v===ph||v===iC.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:g(f,c,p)}:{done:!1}});ch(String.prototype,t,s[0]),ch(iC,o,s[1])}r&&dc(iC[o],"sham",!0)})("split",0,!!pn(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),gc),xm({global:!0},{globalThis:Nt}),gr&&(k.fn.attr=gr);var c1t=iz.PROPER,aC=RegExp.prototype,Vz=aC.toString,f1t=Qt(Fz),d1t=pn(function(){return Vz.call({source:"a",flags:"b"})!="/a/b"}),p1t=c1t&&Vz.name!="toString";(d1t||p1t)&&ch(RegExp.prototype,"toString",function(){var t=Qr(this),e=ii(t.source),n=t.flags;return"/"+e+"/"+ii(n===void 0&&XM(aC,t)&&!("flags"in aC)?f1t(t):n)},{unsafe:!0});var h1t=function(){function t(){this.title=et("highLightModule.selectLang"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z"></path></svg>',this.tag="select",this.width=95,this.selectPanelWidth=115}return t.prototype.getOptions=function(e){var n=[],r=e.getMenuConfig("codeSelectLang").codeLangs,o=r===void 0?[]:r;n.push({text:"plain text",value:""}),o.forEach(function(a){var u=a.text,s=a.value;n.push({text:u,value:s})});var i=this.getValue(e);return n.forEach(function(a){a.value===i?a.selected=!0:delete a.selected}),n},t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){var n=this.getSelectCodeElem(e);if(n==null||!ct.isElement(n))return"";var r=n.language.toString(),o=e.getMenuConfig("codeSelectLang").codeLangs;return(o===void 0?[]:o).some(function(i){return i.value===r})?r:""},t.prototype.isDisabled=function(e){return e.selection==null||!this.getSelectCodeElem(e)},t.prototype.exec=function(e,n){if(this.getSelectCodeElem(e)!=null){var r={language:n.toString()};I.setNodes(e,r,{match:function(o){return A.checkNodeType(o,"code")}})}},t.prototype.getSelectCodeElem=function(e){var n=A.getSelectedNodeByType(e,"code");if(n==null)return null;var r=A.getParentNode(e,n);return ct.isElement(r)?r.type!=="pre"?null:n:null},t}(),g1t={renderStyle:function(t,e){var n=t,r=e,o="";return jvt.forEach(function(i){n[i]&&(o=i)}),o&&function(i,a){i.data==null&&(i.data={});var u=i.data;u.props==null&&(u.props={}),Object.assign(u.props,{className:a})}(r,o="token "+o),r},parseStyleHtml:function(t,e,n){var r=k(t);if(!ct.isElement(e)||A.getNodeType(e)!=="code")return e;var o=e,i=r.attr("class")||"";return i.indexOf("language-")===0?o.language=i.split("-")[1]||"":o.language=i.toLowerCase(),o},menus:[{key:"codeSelectLang",factory:function(){return new h1t},config:{codeLangs:[{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Lua",value:"lua"},{text:"Groovy",value:"groovy"},{text:"Markdown",value:"markdown"}]}}],elemsToHtml:[{type:"code",elemToHtml:function(t,e){var n=t.language,r=n===void 0?"":n;return"<code "+(r?'class="language-'+r+'"':"")+">"+e+"</code>"}}]},v1t=/"/g,m1t=Qt("".replace);xm({target:"String",proto:!0,forced:pn(function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3})},{anchor:function(t){return e=t,n=ii(fc(this)),r="<a",(r+=' name="'+m1t(ii(e),v1t,""")+'"')+">"+n+"</a>";var e,n,r}});var Uz=function(t){var e,n,r,o=function(y,h){var b=typeof Symbol=="function"&&y[Symbol.iterator];if(!b)return y;var w,D,C=b.call(y),x=[];try{for(;(h===void 0||h-- >0)&&!(w=C.next()).done;)x.push(w.value)}catch(S){D={error:S}}finally{try{w&&!w.done&&(b=C.return)&&b.call(C)}finally{if(D)throw D.error}}return x}(t,2),i=o[0],a=o[1],u=[],s=function(y){if(!ot.isText(y))return null;var h=A.getParentNode(null,y);if(h&&A.getNodeType(h)==="code"){var b=A.getParentNode(null,h);if(b&&A.getNodeType(b)==="pre")return h}return null}(i);if(s==null)return u;var l=s.language,c=l===void 0?"":l;if(!c)return u;var f=function(y,h){if(!h)return[];var b=kz.languages[h];return b?kz.tokenize(y.text,b):[]}(i,c),p=0;try{for(var d=function(y){var h=typeof Symbol=="function"&&Symbol.iterator,b=h&&y[h],w=0;if(b)return b.call(y);if(y&&typeof y.length=="number")return{next:function(){return y&&w>=y.length&&(y=void 0),{value:y&&y[w++],done:!y}}};throw new TypeError(h?"Object is not iterable.":"Symbol.iterator is not defined.")}(f),g=d.next();!g.done;g=d.next()){var v=g.value,m=p+Bz(v);typeof v!="string"&&u.push(((r={})[v.type]=!0,r.anchor={path:a,offset:p},r.focus={path:a,offset:m},r)),p=m}}catch(y){e={error:y}}finally{try{g&&!g.done&&(n=d.return)&&n.call(d)}finally{if(e)throw e.error}}return u},ke=function(){return ke=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},ke.apply(this,arguments)},hn=function(){function t(){throw new Error(`\u4E0D\u80FD\u5B9E\u4F8B\u5316
- Can not construct a instance`)}return t.setEditorConfig=function(e){e===void 0&&(e={}),this.editorConfig=ke(ke({},this.editorConfig),e)},t.setSimpleEditorConfig=function(e){e===void 0&&(e={}),this.simpleEditorConfig=ke(ke({},this.simpleEditorConfig),e)},t.setToolbarConfig=function(e){e===void 0&&(e={}),this.toolbarConfig=ke(ke({},this.toolbarConfig),e)},t.setSimpleToolbarConfig=function(e){e===void 0&&(e={}),this.simpleToolbarConfig=ke(ke({},this.simpleToolbarConfig),e)},t.registerPlugin=function(e){this.plugins.push(e)},t.registerMenu=function(e,n){(function(r,o){var i=r.key,a=r.factory,u=r.config,s=wr(wr({},u),o||{});if(Hf[i]!=null)throw new Error("Duplicated key '"+i+"' in menu items");Hf[i]=a,function(l,c){c!=null&&(Ck[l]=c)}(i,s)})(e,n)},t.registerRenderElem=function(e){(function(n){var r=n.type,o=n.renderElem;BB[r||""]=o})(e)},t.registerRenderStyle=function(e){(function(n){_4.push(n)})(e)},t.registerElemToHtml=function(e){(function(n){var r=n.type,o=n.elemToHtml;Ak[r||""]=o})(e)},t.registerStyleToHtml=function(e){(function(n){Zw.push(n)})(e)},t.registerPreParseHtml=function(e){(function(n){aB.push(n)})(e)},t.registerParseElemHtml=function(e){(function(n){var r=n.selector,o=n.parseElemHtml;Eg[r]=o})(e)},t.registerParseStyleHtml=function(e){(function(n){y4.push(n)})(e)},t.registerModule=function(e){ls(e)},t.editorConfig={},t.simpleEditorConfig={},t.toolbarConfig={},t.simpleToolbarConfig={},t.plugins=[],t}();function ls(t){var e=t.menus,n=t.renderElems,r=t.renderStyle,o=t.elemsToHtml,i=t.styleToHtml,a=t.preParseHtml,u=t.parseElemsHtml,s=t.parseStyleHtml,l=t.editorPlugin;e&&e.forEach(function(c){return hn.registerMenu(c)}),n&&n.forEach(function(c){return hn.registerRenderElem(c)}),r&&hn.registerRenderStyle(r),o&&o.forEach(function(c){return hn.registerElemToHtml(c)}),i&&hn.registerStyleToHtml(i),a&&a.forEach(function(c){return hn.registerPreParseHtml(c)}),u&&u.forEach(function(c){return hn.registerParseElemHtml(c)}),s&&hn.registerParseStyleHtml(s),l&&hn.registerPlugin(l)}Lit.forEach(function(t){return ls(t)}),ls(fst),ls(jct),ls($pt),ls(Bgt),ls(g1t);var Wz='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',Gz={link:{menuKeys:["editLink","unLink","viewLink"]},image:{menuKeys:["imageWidth30","imageWidth50","imageWidth100","editImage","viewImageLink","deleteImage"]},pre:{menuKeys:["enter","codeBlock","codeSelectLang"]},table:{menuKeys:["enter","tableHeader","tableFullWidth","insertTableRow","deleteTableRow","insertTableCol","deleteTableCol","deleteTable"]},divider:{menuKeys:["enter"]},video:{menuKeys:["enter","editVideoSize"]}},y1t={hoverbarKeys:ke(ke({},Gz),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};hn.setEditorConfig(ke(ke({},y1t),{decorate:Uz}));var b1t={hoverbarKeys:Gz};hn.setSimpleEditorConfig(ke(ke({},b1t),{decorate:Uz}));var w1t={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:et("editor.more"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:et("editor.justify"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:et("editor.indent"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:et("editor.image"),iconSvg:Wz,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:et("editor.video"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"]};hn.setToolbarConfig(w1t);var E1t={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:et("editor.image"),iconSvg:Wz,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};hn.setSimpleToolbarConfig(E1t);var D1t=Object.defineProperty,x1t=Object.defineProperties,C1t=Object.getOwnPropertyDescriptors,qz=Object.getOwnPropertySymbols,S1t=Object.prototype.hasOwnProperty,A1t=Object.prototype.propertyIsEnumerable,Kz=(t,e,n)=>e in t?D1t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,O1t=(t,e)=>{for(var n in e||(e={}))S1t.call(e,n)&&Kz(t,n,e[n]);if(qz)for(var n of qz(e))A1t.call(e,n)&&Kz(t,n,e[n]);return t},k1t=(t,e)=>x1t(t,C1t(e));function ja(t){let e=`\u8BF7\u4F7F\u7528 '@${t}' \u4E8B\u4EF6\uFF0C\u4E0D\u8981\u653E\u5728 props \u4E2D`;return e+=`
- Please use '@${t}' event instead of props`,e}var Xz=(t,e)=>{for(const[n,r]of e)t[n]=r;return t};const B1t=sC({props:{mode:{type:String,default:"default"},defaultContent:{type:Array,default:[]},defaultHtml:{type:String,default:""},defaultConfig:{type:Object,default:{}},modelValue:{type:String,default:""}},setup(t,e){const n=Nm(null),r=t$(null),o=Nm(""),i=()=>{if(!n.value)return;const a=L1t(t.defaultContent);(function(u){u===void 0&&(u={});var s=u.selector,l=s===void 0?"":s,c=u.content,f=c===void 0?[]:c,p=u.html,d=u.config,g=d===void 0?{}:d,v=u.mode,m=(v===void 0?"default":v)==="simple"?hn.simpleEditorConfig:hn.editorConfig,y=ke(ke({},m.hoverbarKeys||{}),g.hoverbarKeys||{});cQ({selector:l,config:ke(ke(ke({},m),g),{hoverbarKeys:y}),content:f,html:p,plugins:hn.plugins})})({selector:n.value,mode:t.mode,content:a||[],html:t.defaultHtml||t.modelValue||"",config:k1t(O1t({},t.defaultConfig),{onCreated(u){if(r.value=u,e.emit("onCreated",u),t.defaultConfig.onCreated){const s=ja("onCreated");throw new Error(s)}},onChange(u){const s=u.getHtml();if(o.value=s,e.emit("update:modelValue",s),e.emit("onChange",u),t.defaultConfig.onChange){const l=ja("onChange");throw new Error(l)}},onDestroyed(u){if(e.emit("onDestroyed",u),t.defaultConfig.onDestroyed){const s=ja("onDestroyed");throw new Error(s)}},onMaxLength(u){if(e.emit("onMaxLength",u),t.defaultConfig.onMaxLength){const s=ja("onMaxLength");throw new Error(s)}},onFocus(u){if(e.emit("onFocus",u),t.defaultConfig.onFocus){const s=ja("onFocus");throw new Error(s)}},onBlur(u){if(e.emit("onBlur",u),t.defaultConfig.onBlur){const s=ja("onBlur");throw new Error(s)}},customAlert(u,s){if(e.emit("customAlert",u,s),t.defaultConfig.customAlert){const l=ja("customAlert");throw new Error(l)}},customPaste:(u,s)=>{if(t.defaultConfig.customPaste){const c=ja("customPaste");throw new Error(c)}let l;return e.emit("customPaste",u,s,c=>{l=c}),l}})})};return I1t(()=>{i()}),lC(()=>t.modelValue,a=>{a!==o.value&&function(u){const s=r.value;s!=null&&s.setHtml(u)}(a)}),{box:n}}}),F1t={ref:"box",style:{height:"100%"}};var T1t=Xz(B1t,[["render",function(t,e,n,r,o,i){return cC(),fC("div",F1t,null,512)}]]);const _1t=sC({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(t){const e=Nm(null),n=r=>{if(e.value){if(r==null)throw new Error("Not found instance of Editor when create <Toolbar/> component");A.getToolbar(r)||function(o){var i=o.selector,a=o.editor,u=o.config,s=u===void 0?{}:u,l=o.mode,c=l===void 0?"default":l;if(!i)throw new Error("Cannot find 'selector' when create toolbar");var f=c==="simple"?hn.simpleToolbarConfig:hn.toolbarConfig,p=function(d,g){if(d==null)throw new Error("Cannot create toolbar, because editor is null");var v=g.selector,m=g.config,y=m===void 0?{}:m;if(function(w,D){return hB(w,"data-w-e-toolbar",D)}(d,v))throw new Error("Repeated create toolbar by selector '"+v+"'");var h=wr({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},y||{}),b=new gQ(v,h);return Rw.set(b,d),dg.set(d,b),b}(a,{selector:i,config:ke(ke({},f),s)})}({editor:r,selector:e.value||"<div></div>",mode:t.mode,config:t.defaultConfig})}};return N1t(()=>{const{editor:r}=t;r!=null&&n(r)}),{selector:e}}}),P1t={ref:"selector"};var j1t=Xz(_1t,[["render",function(t,e,n,r,o,i){return cC(),fC("div",P1t,null,512)}]]);let Yz,Jz;Yz={class:"z-99 border-1 border-[var(--el-border-color)] border-solid"},Jz=sC({name:"Editor",__name:"Editor",props:{editorId:Lm.string.def("wangeEditor-1"),height:Lm.oneOfType([Number,String]).def("500px"),editorConfig:{type:Object,default:()=>{}},readonly:Lm.bool.def(!1),modelValue:Lm.string.def("")},emits:["change","update:modelValue"],setup(t,{expose:e,emit:n}){const r=R1t(),o=dC(()=>r.getCurrentLocale);(function(d){td.changeLanguage(d)})(Io(o).lang);const i=t,a=n,u=t$(),s=Nm("");lC(()=>i.modelValue,d=>{d!==Io(s)&&(s.value=d)},{immediate:!0}),lC(()=>s.value,d=>{a("update:modelValue",d)});const l=d=>{u.value=d},c=dC(()=>Object.assign({placeholder:"\u8BF7\u8F93\u5165\u5185\u5BB9...",readOnly:i.readonly,customAlert:(d,g)=>{switch(g){case"success":Rm.success(d);break;case"info":default:Rm.info(d);break;case"warning":Rm.warning(d);break;case"error":Rm.error(d)}},autoFocus:!1,scroll:!0,MENU_CONF:{uploadImage:{server:"http://10.0.5.227:8002/admin-api/infra/file/upload",maxFileSize:5242880,maxNumberOfFiles:10,allowedFileTypes:["image/*"],meta:{updateSupport:0},metaWithUrl:!0,headers:{Accept:"*",Authorization:"Bearer "+H1t(),"tenant-id":V1t()},withCredentials:!0,timeout:5e3,fieldName:"file",onBeforeUpload:d=>(console.log(d),d),onProgress(d){console.log("progress",d)},onSuccess(d,g){console.log("onSuccess",d,g)},onFailed(d,g){alert(g.message),console.log("onFailed",d,g)},onError(d,g,v){alert(g.message),console.error("onError",d,g,v)},customInsert(d,g){g(d.data,"image",d.data)}}},uploadImgShowBase64:!0},i.editorConfig||{})),f=dC(()=>({height:U1t(i.height)?`${i.height}px`:i.height})),p=d=>{a("change",d)};return M1t(()=>{const d=Io(u.value);d==null||d.destroy()}),e({getEditorRef:async()=>(await W1t(),Io(u.value))}),(d,g)=>(cC(),fC("div",Yz,[e$(Io(j1t),{editor:Io(u),editorId:t.editorId,class:"border-0 b-b-1 border-[var(--el-border-color)] border-solid"},null,8,["editor","editorId"]),e$(Io(T1t),{modelValue:Io(s),"onUpdate:modelValue":g[0]||(g[0]=v=>z1t(s)?s.value=v:null),defaultConfig:Io(c),editorId:t.editorId,style:$1t(Io(f)),onOnChange:p,onOnCreated:l},null,8,["modelValue","defaultConfig","editorId","style"])]))}}),n$=G1t(Jz,[["__file","D:/zhongxing/mall-newfeifan-zx-admin/src/components/Editor/src/Editor.vue"]])});export{n$ as _,K1t as __tla};
|