123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181 |
- import{O as a$,T as vS,R as u$,K as s$}from"./index.144928e4.js";import{l as mS}from"./elementPlus.8e650391.js";import{d as Z3,s as lj,r as pl,w as h4,k as yS,A as l$,j as cj,ai as bS,o as Q3,c as e5,U as wS,K as $m,b as c$,ae as f$}from"./vue.86c1cb21.js";var st=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function d$(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function as(e){var t={exports:{}};return e(t,t.exports),t.exports}var mi,z0,Fh=function(e){return e&&e.Math==Math&&e},Be=Fh(typeof globalThis=="object"&&globalThis)||Fh(typeof window=="object"&&window)||Fh(typeof self=="object"&&self)||Fh(typeof st=="object"&&st)||function(){return this}()||Function("return this")(),t5=Function.prototype,ES=t5.apply,p$=t5.bind,DS=t5.call,fj=typeof Reflect=="object"&&Reflect.apply||(p$?DS.bind(ES):function(){return DS.apply(ES,arguments)}),dj=Function.prototype,g4=dj.bind,v4=dj.call,h$=g4&&g4.bind(v4),gt=g4?function(e){return e&&h$(v4,e)}:function(e){return e&&function(){return v4.apply(e,arguments)}},sn=function(e){return typeof e=="function"},Gn=function(e){try{return!!e()}catch{return!0}},Hn=!Gn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Bc=Function.prototype.call,zn=Bc.bind?Bc.bind(Bc):function(){return Bc.apply(Bc,arguments)},CS={}.propertyIsEnumerable,SS=Object.getOwnPropertyDescriptor,g$=SS&&!CS.call({1:2},1)?function(e){var t=SS(this,e);return!!t&&t.enumerable}:CS,n5={f:g$},Yr=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},v$=gt({}.toString),m$=gt("".slice),Eu=function(e){return m$(v$(e),8,-1)},Hm=Be.Object,y$=gt("".split),pj=Gn(function(){return!Hm("z").propertyIsEnumerable(0)})?function(e){return Eu(e)=="String"?y$(e,""):Hm(e)}:Hm,b$=Be.TypeError,r5=function(e){if(e==null)throw b$("Can't call method on "+e);return e},jo=function(e){return pj(r5(e))},er=function(e){return typeof e=="object"?e!==null:sn(e)},Qn={},xS=function(e){return sn(e)?e:void 0},oc=function(e,t){return arguments.length<2?xS(Qn[e])||xS(Be[e]):Qn[e]&&Qn[e][t]||Be[e]&&Be[e][t]},_d=gt({}.isPrototypeOf),Um=oc("navigator","userAgent")||"",AS=Be.process,OS=Be.Deno,BS=AS&&AS.versions||OS&&OS.version,kS=BS&&BS.v8;kS&&(z0=(mi=kS.split("."))[0]>0&&mi[0]<4?1:+(mi[0]+mi[1])),!z0&&Um&&(!(mi=Um.match(/Edge\/(\d+)/))||mi[1]>=74)&&(mi=Um.match(/Chrome\/(\d+)/))&&(z0=+mi[1]);var Th,wg=z0,po=!!Object.getOwnPropertySymbols&&!Gn(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&wg&&wg<41}),o5=po&&!Symbol.sham&&typeof Symbol.iterator=="symbol",w$=Be.Object,hl=o5?function(e){return typeof e=="symbol"}:function(e){var t=oc("Symbol");return sn(t)&&_d(t.prototype,w$(e))},E$=Be.String,m4=function(e){try{return E$(e)}catch{return"Object"}},D$=Be.TypeError,i5=function(e){if(sn(e))return e;throw D$(m4(e)+" is not a function")},Eg=function(e,t){var n=e[t];return n==null?void 0:i5(n)},C$=Be.TypeError,S$=Object.defineProperty,ea=Be["__core-js_shared__"]||function(e,t){try{S$(Be,e,{value:t,configurable:!0,writable:!0})}catch{Be[e]=t}return t}("__core-js_shared__",{}),us=as(function(e){(e.exports=function(t,n){return ea[t]||(ea[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),x$=Be.Object,Fp=function(e){return x$(r5(e))},A$=gt({}.hasOwnProperty),Ue=Object.hasOwn||function(e,t){return A$(Fp(e),t)},O$=0,B$=Math.random(),k$=gt(1 .toString),Dg=function(e){return"Symbol("+(e===void 0?"":e)+")_"+k$(++O$+B$,36)},kc=us("wks"),Du=Be.Symbol,FS=Du&&Du.for,F$=o5?Du:Du&&Du.withoutSetter||Dg,kn=function(e){if(!Ue(kc,e)||!po&&typeof kc[e]!="string"){var t="Symbol."+e;po&&Ue(Du,e)?kc[e]=Du[e]:kc[e]=o5&&FS?FS(t):F$(t)}return kc[e]},T$=Be.TypeError,_$=kn("toPrimitive"),j$=function(e,t){if(!er(e)||hl(e))return e;var n,r=Eg(e,_$);if(r){if(t===void 0&&(t="default"),n=zn(r,e,t),!er(n)||hl(n))return n;throw T$("Can't convert object to primitive value")}return t===void 0&&(t="number"),function(o,i){var a,u;if(i==="string"&&sn(a=o.toString)&&!er(u=zn(a,o))||sn(a=o.valueOf)&&!er(u=zn(a,o))||i!=="string"&&sn(a=o.toString)&&!er(u=zn(a,o)))return u;throw C$("Can't convert object to primitive value")}(e,t)},ic=function(e){var t=j$(e,"string");return hl(t)?t:t+""},y4=Be.document,P$=er(y4)&&er(y4.createElement),hj=function(e){return P$?y4.createElement(e):{}},gj=!Hn&&!Gn(function(){return Object.defineProperty(hj("div"),"a",{get:function(){return 7}}).a!=7}),TS=Object.getOwnPropertyDescriptor,I$=Hn?TS:function(e,t){if(e=jo(e),t=ic(t),gj)try{return TS(e,t)}catch{}if(Ue(e,t))return Yr(!zn(n5.f,e,t),e[t])},_1={f:I$},N$=/#|\.prototype\./,Tp=function(e,t){var n=L$[R$(e)];return n==z$||n!=M$&&(sn(t)?Gn(t):!!t)},R$=Tp.normalize=function(e){return String(e).replace(N$,".").toLowerCase()},L$=Tp.data={},M$=Tp.NATIVE="N",z$=Tp.POLYFILL="P",$$=Tp,_S=gt(gt.bind),a5=function(e,t){return i5(e),t===void 0?e:_S?_S(e,t):function(){return e.apply(t,arguments)}},H$=Be.String,U$=Be.TypeError,ar=function(e){if(er(e))return e;throw U$(H$(e)+" is not an object")},V$=Be.TypeError,jS=Object.defineProperty,W$=Hn?jS:function(e,t,n){if(ar(e),t=ic(t),ar(n),gj)try{return jS(e,t,n)}catch{}if("get"in n||"set"in n)throw V$("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Pa={f:W$},_n=Hn?function(e,t,n){return Pa.f(e,t,Yr(1,n))}:function(e,t,n){return e[t]=n,e},G$=_1.f,q$=function(e){var t=function(n,r,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,o)}return fj(e,this,arguments)};return t.prototype=e.prototype,t},qo=function(e,t){var n,r,o,i,a,u,s,l,c=e.target,f=e.global,p=e.stat,d=e.proto,m=f?Be:p?Be[c]:(Be[c]||{}).prototype,g=f?Qn:Qn[c]||_n(Qn,c,{})[c],v=g.prototype;for(o in t)n=!$$(f?o:c+(p?".":"#")+o,e.forced)&&m&&Ue(m,o),a=g[o],n&&(u=e.noTargetGet?(l=G$(m,o))&&l.value:m[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?a5(i,Be):e.wrap&&n?q$(i):d&&sn(i)?gt(i):i,(e.sham||i&&i.sham||a&&a.sham)&&_n(s,"sham",!0),_n(g,o,s),d&&(Ue(Qn,r=c+"Prototype")||_n(Qn,r,{}),_n(Qn[r],o,i),e.real&&v&&!v[o]&&_n(v,o,i)))},PS=us("keys"),j1=function(e){return PS[e]||(PS[e]=Dg(e))},K$=!Gn(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),IS=j1("IE_PROTO"),b4=Be.Object,Y$=b4.prototype,Cg=K$?b4.getPrototypeOf:function(e){var t=Fp(e);if(Ue(t,IS))return t[IS];var n=t.constructor;return sn(n)&&t instanceof n?n.prototype:t instanceof b4?Y$:null},X$=Be.String,J$=Be.TypeError,Sg=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=gt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return ar(r),function(i){if(typeof i=="object"||sn(i))return i;throw J$("Can't set "+X$(i)+" as a prototype")}(o),t?e(r,o):r.__proto__=o,r}}():void 0),Z$=Math.ceil,Q$=Math.floor,u5=function(e){var t=+e;return t!=t||t===0?0:(t>0?Q$:Z$)(t)},eH=Math.max,tH=Math.min,w4=function(e,t){var n=u5(e);return n<0?eH(n+t,0):tH(n,t)},nH=Math.min,_p=function(e){return(t=e.length)>0?nH(u5(t),9007199254740991):0;var t},NS=function(e){return function(t,n,r){var o,i=jo(t),a=_p(i),u=w4(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},rH={includes:NS(!0),indexOf:NS(!1)},jp={},oH=rH.indexOf,RS=gt([].push),vj=function(e,t){var n,r=jo(e),o=0,i=[];for(n in r)!Ue(jp,n)&&Ue(r,n)&&RS(i,n);for(;t.length>o;)Ue(r,n=t[o++])&&(~oH(i,n)||RS(i,n));return i},xg=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],iH=xg.concat("length","prototype"),aH=Object.getOwnPropertyNames||function(e){return vj(e,iH)},s5={f:aH},$0={f:Object.getOwnPropertySymbols},uH=gt([].concat),sH=oc("Reflect","ownKeys")||function(e){var t=s5.f(ar(e)),n=$0.f;return n?uH(t,n(e)):t},l5=Object.keys||function(e){return vj(e,xg)},lH=Hn?Object.defineProperties:function(e,t){ar(e);for(var n,r=jo(t),o=l5(t),i=o.length,a=0;i>a;)Pa.f(e,n=o[a++],r[n]);return e},cH=oc("document","documentElement"),mj=j1("IE_PROTO"),Vm=function(){},yj=function(e){return"<script>"+e+"<\/script>"},LS=function(e){e.write(yj("")),e.close();var t=e.parentWindow.Object;return e=null,t},H0=function(){try{Th=new ActiveXObject("htmlfile")}catch{}var e,t;H0=typeof document<"u"?document.domain&&Th?LS(Th):((t=hj("iframe")).style.display="none",cH.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(yj("document.F=Object")),e.close(),e.F):LS(Th);for(var n=xg.length;n--;)delete H0.prototype[xg[n]];return H0()};jp[mj]=!0;var oi=Object.create||function(e,t){var n;return e!==null?(Vm.prototype=ar(e),n=new Vm,Vm.prototype=null,n[mj]=e):n=H0(),t===void 0?n:lH(n,t)},E4=function(e,t,n){var r=ic(t);r in e?Pa.f(e,r,Yr(0,n)):e[r]=n},fH=Be.Array,dH=Math.max,bj=function(e,t,n){for(var r=_p(e),o=w4(t,r),i=w4(n===void 0?r:n,r),a=fH(dH(i-o,0)),u=0;o<i;o++,u++)E4(a,u,e[o]);return a.length=u,a},pH=gt("".replace),hH=gt("".split),gH=gt([].join),D4=String(Error("zxcasd").stack),wj=/\n\s*at [^:]*:[^\n]*/,vH=wj.test(D4),mH=/@[^\n]*\n/.test(D4)&&!/zxcasd/.test(D4),yH=function(e,t){if(typeof e!="string")return e;if(vH)for(;t--;)e=pH(e,wj,"");else if(mH)return gH(bj(hH(e,`
- `),t),`
- `);return e},bH=function(e,t){er(t)&&"cause"in t&&_n(e,"cause",t.cause)},ei={},wH=kn("iterator"),EH=Array.prototype,Ej={};Ej[kn("toStringTag")]="z";var c5=String(Ej)==="[object z]",DH=kn("toStringTag"),CH=Be.Object,SH=Eu(function(){return arguments}())=="Arguments",Pp=c5?Eu:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(t=CH(e),DH))=="string"?n:SH?Eu(t):(r=Eu(t))=="Object"&&sn(t.callee)?"Arguments":r},xH=kn("iterator"),MS=function(e){if(e!=null)return Eg(e,xH)||Eg(e,"@@iterator")||ei[Pp(e)]},AH=Be.TypeError,zS=function(e,t,n){var r,o;ar(e);try{if(!(r=Eg(e,"return"))){if(t==="throw")throw n;return n}r=zn(r,e)}catch(i){o=!0,r=i}if(t==="throw")throw n;if(o)throw r;return ar(r),n},OH=Be.TypeError,U0=function(e,t){this.stopped=e,this.result=t},$S=U0.prototype,BH=function(e,t,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),m=a5(t,c),g=function(y){return r&&zS(r,"normal",y),new U0(!0,y)},v=function(y){return f?(ar(y),d?m(y[0],y[1],g):m(y[0],y[1])):d?m(y,g):m(y)};if(p)r=e;else{if(!(o=MS(e)))throw OH(m4(e)+" is not iterable");if(function(y){return y!==void 0&&(ei.Array===y||EH[wH]===y)}(o)){for(i=0,a=_p(e);a>i;i++)if((u=v(e[i]))&&_d($S,u))return u;return new U0(!1)}r=function(y,h){var b=arguments.length<2?MS(y):h;if(i5(b))return ar(zn(b,y));throw AH(m4(y)+" is not iterable")}(e,o)}for(s=r.next;!(l=zn(s,r)).done;){try{u=v(l.value)}catch(y){zS(r,"throw",y)}if(typeof u=="object"&&u&&_d($S,u))return u}return new U0(!1)},kH=Be.String,jd=function(e){if(Pp(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return kH(e)},FH=function(e,t){return e===void 0?arguments.length<2?"":t:jd(e)},TH=!Gn(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Yr(1,7)),e.stack!==7)}),_H=kn("toStringTag"),Ag=Be.Error,jH=[].push,Pd=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=_d(Wm,this);Sg?n=Sg(new Ag(void 0),o?Cg(this):Wm):(n=o?this:oi(Wm),_n(n,_H,"Error")),_n(n,"message",FH(t,"")),TH&&_n(n,"stack",yH(n.stack,1)),bH(n,r);var i=[];return BH(e,jH,{that:i}),_n(n,"errors",i),n};Sg?Sg(Pd,Ag):function(e,t){for(var n=sH(t),r=Pa.f,o=_1.f,i=0;i<n.length;i++){var a=n[i];Ue(e,a)||r(e,a,o(t,a))}}(Pd,Ag);var Wm=Pd.prototype=oi(Ag.prototype,{constructor:Yr(1,Pd),message:Yr(1,""),name:Yr(1,"AggregateError")});qo({global:!0},{AggregateError:Pd});var PH=gt(Function.toString);sn(ea.inspectSource)||(ea.inspectSource=function(e){return PH(e)});var Og,id,Bg,Dj=ea.inspectSource,HS=Be.WeakMap,IH=sn(HS)&&/native code/.test(Dj(HS)),C4=Be.TypeError,NH=Be.WeakMap;if(IH||ea.state){var Ga=ea.state||(ea.state=new NH),RH=gt(Ga.get),US=gt(Ga.has),LH=gt(Ga.set);Og=function(e,t){if(US(Ga,e))throw new C4("Object already initialized");return t.facade=e,LH(Ga,e,t),t},id=function(e){return RH(Ga,e)||{}},Bg=function(e){return US(Ga,e)}}else{var Cs=j1("state");jp[Cs]=!0,Og=function(e,t){if(Ue(e,Cs))throw new C4("Object already initialized");return t.facade=e,_n(e,Cs,t),t},id=function(e){return Ue(e,Cs)?e[Cs]:{}},Bg=function(e){return Ue(e,Cs)}}var Ki,VS,WS,ac={set:Og,get:id,has:Bg,enforce:function(e){return Bg(e)?id(e):Og(e,{})},getterFor:function(e){return function(t){var n;if(!er(t)||(n=id(t)).type!==e)throw C4("Incompatible receiver, "+e+" required");return n}}},Cj=Function.prototype,MH=Hn&&Object.getOwnPropertyDescriptor,Gm=Ue(Cj,"name"),zH={EXISTS:Gm,PROPER:Gm&&(function(){}).name==="something",CONFIGURABLE:Gm&&(!Hn||Hn&&MH(Cj,"name").configurable)},Ol=function(e,t,n,r){r&&r.enumerable?e[t]=n:_n(e,t,n)},S4=kn("iterator"),Sj=!1;[].keys&&("next"in(WS=[].keys())?(VS=Cg(Cg(WS)))!==Object.prototype&&(Ki=VS):Sj=!0);var $H=Ki==null||Gn(function(){var e={};return Ki[S4].call(e)!==e});Ki=$H?{}:oi(Ki),sn(Ki[S4])||Ol(Ki,S4,function(){return this});var xj={IteratorPrototype:Ki,BUGGY_SAFARI_ITERATORS:Sj},HH=c5?{}.toString:function(){return"[object "+Pp(this)+"]"},UH=Pa.f,GS=kn("toStringTag"),kg=function(e,t,n,r){if(e){var o=n?e:e.prototype;Ue(o,GS)||UH(o,GS,{configurable:!0,value:t}),r&&!c5&&_n(o,"toString",HH)}},VH=xj.IteratorPrototype,WH=function(){return this},GH=zH.PROPER,_h=xj.BUGGY_SAFARI_ITERATORS,qm=kn("iterator"),qH=function(){return this},Aj=function(e,t,n,r,o,i,a){(function(y,h,b,w){var D=h+" Iterator";y.prototype=oi(VH,{next:Yr(+!w,b)}),kg(y,D,!1,!0),ei[D]=WH})(n,t,r);var u,s,l,c=function(y){if(y===o&&g)return g;if(!_h&&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=t+" Iterator",p=!1,d=e.prototype,m=d[qm]||d["@@iterator"]||o&&d[o],g=!_h&&m||c(o),v=t=="Array"&&d.entries||m;if(v&&(u=Cg(v.call(new e)))!==Object.prototype&&u.next&&(kg(u,f,!0,!0),ei[f]=qH),GH&&o=="values"&&m&&m.name!=="values"&&(p=!0,g=function(){return zn(m,this)}),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(_h||p||!(l in d))&&Ol(d,l,s[l]);else qo({target:t,proto:!0,forced:_h||p},s);return a&&d[qm]!==g&&Ol(d,qm,g,{name:o}),ei[t]=g,s},KH=ac.set,YH=ac.getterFor("Array Iterator");Aj(Array,"Array",function(e,t){KH(this,{type:"Array Iterator",target:jo(e),index:0,kind:t})},function(){var e=YH(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),ei.Arguments=ei.Array;var XH=gt("".charAt),qS=gt("".charCodeAt),JH=gt("".slice),KS=function(e){return function(t,n){var r,o,i=jd(r5(t)),a=u5(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=qS(i,a))<55296||r>56319||a+1===u||(o=qS(i,a+1))<56320||o>57343?e?XH(i,a):r:e?JH(i,a,a+2):o-56320+(r-55296<<10)+65536}},ZH={codeAt:KS(!1),charAt:KS(!0)}.charAt,QH=ac.set,eU=ac.getterFor("String Iterator");Aj(String,"String",function(e){QH(this,{type:"String Iterator",string:jd(e),index:0})},function(){var e,t=eU(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=ZH(n,r),t.index+=e.length,{value:e,done:!1})});var tU=Qn.AggregateError,YS=kn("toStringTag");for(var Km 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 XS=Be[Km],Ym=XS&&XS.prototype;Ym&&Pp(Ym)!==YS&&_n(Ym,YS,Km),ei[Km]=ei.Array}var yi,V0,nU=tU,jh=function(e){return e&&e.Math==Math&&e},Ee=jh(typeof globalThis=="object"&&globalThis)||jh(typeof window=="object"&&window)||jh(typeof self=="object"&&self)||jh(typeof st=="object"&&st)||function(){return this}()||Function("return this")(),cn=function(e){try{return!!e()}catch{return!0}},Ao=!cn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Fc=Function.prototype.call,un=Fc.bind?Fc.bind(Fc):function(){return Fc.apply(Fc,arguments)},JS={}.propertyIsEnumerable,ZS=Object.getOwnPropertyDescriptor,rU=ZS&&!JS.call({1:2},1)?function(e){var t=ZS(this,e);return!!t&&t.enumerable}:JS,oU={f:rU},ta=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Oj=Function.prototype,x4=Oj.bind,A4=Oj.call,iU=x4&&x4.bind(A4),it=x4?function(e){return e&&iU(A4,e)}:function(e){return e&&function(){return A4.apply(e,arguments)}},aU=it({}.toString),uU=it("".slice),Cu=function(e){return uU(aU(e),8,-1)},Xm=Ee.Object,sU=it("".split),Bj=cn(function(){return!Xm("z").propertyIsEnumerable(0)})?function(e){return Cu(e)=="String"?sU(e,""):Xm(e)}:Xm,lU=Ee.TypeError,P1=function(e){if(e==null)throw lU("Can't call method on "+e);return e},uc=function(e){return Bj(P1(e))},Gt=function(e){return typeof e=="function"},Ur=function(e){return typeof e=="object"?e!==null:Gt(e)},cU=function(e){return Gt(e)?e:void 0},Ip=function(e,t){return arguments.length<2?cU(Ee[e]):Ee[e]&&Ee[e][t]},Fg=it({}.isPrototypeOf),Jm=Ip("navigator","userAgent")||"",QS=Ee.process,ex=Ee.Deno,tx=QS&&QS.versions||ex&&ex.version,nx=tx&&tx.v8;nx&&(V0=(yi=nx.split("."))[0]>0&&yi[0]<4?1:+(yi[0]+yi[1])),!V0&&Jm&&(!(yi=Jm.match(/Edge\/(\d+)/))||yi[1]>=74)&&(yi=Jm.match(/Chrome\/(\d+)/))&&(V0=+yi[1]);var rx=V0,O4=!!Object.getOwnPropertySymbols&&!cn(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&rx&&rx<41}),f5=O4&&!Symbol.sham&&typeof Symbol.iterator=="symbol",fU=Ee.Object,B4=f5?function(e){return typeof e=="symbol"}:function(e){var t=Ip("Symbol");return Gt(t)&&Fg(t.prototype,fU(e))},dU=Ee.String,k4=function(e){try{return dU(e)}catch{return"Object"}},pU=Ee.TypeError,d5=function(e){if(Gt(e))return e;throw pU(k4(e)+" is not a function")},Id=function(e,t){var n=e[t];return n==null?void 0:d5(n)},hU=Ee.TypeError,gU=Object.defineProperty,p5=function(e,t){try{gU(Ee,e,{value:t,configurable:!0,writable:!0})}catch{Ee[e]=t}return t},na=Ee["__core-js_shared__"]||p5("__core-js_shared__",{}),h5=as(function(e){(e.exports=function(t,n){return na[t]||(na[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),vU=Ee.Object,g5=function(e){return vU(P1(e))},mU=it({}.hasOwnProperty),Un=Object.hasOwn||function(e,t){return mU(g5(e),t)},yU=0,bU=Math.random(),wU=it(1 .toString),kj=function(e){return"Symbol("+(e===void 0?"":e)+")_"+wU(++yU+bU,36)},Tc=h5("wks"),Su=Ee.Symbol,ox=Su&&Su.for,EU=f5?Su:Su&&Su.withoutSetter||kj,In=function(e){if(!Un(Tc,e)||!O4&&typeof Tc[e]!="string"){var t="Symbol."+e;O4&&Un(Su,e)?Tc[e]=Su[e]:Tc[e]=f5&&ox?ox(t):EU(t)}return Tc[e]},DU=Ee.TypeError,CU=In("toPrimitive"),SU=function(e,t){if(!Ur(e)||B4(e))return e;var n,r=Id(e,CU);if(r){if(t===void 0&&(t="default"),n=un(r,e,t),!Ur(n)||B4(n))return n;throw DU("Can't convert object to primitive value")}return t===void 0&&(t="number"),function(o,i){var a,u;if(i==="string"&&Gt(a=o.toString)&&!Ur(u=un(a,o))||Gt(a=o.valueOf)&&!Ur(u=un(a,o))||i!=="string"&&Gt(a=o.toString)&&!Ur(u=un(a,o)))return u;throw hU("Can't convert object to primitive value")}(e,t)},v5=function(e){var t=SU(e,"string");return B4(t)?t:t+""},F4=Ee.document,xU=Ur(F4)&&Ur(F4.createElement),m5=function(e){return xU?F4.createElement(e):{}},Fj=!Ao&&!cn(function(){return Object.defineProperty(m5("div"),"a",{get:function(){return 7}}).a!=7}),ix=Object.getOwnPropertyDescriptor,AU=Ao?ix:function(e,t){if(e=uc(e),t=v5(t),Fj)try{return ix(e,t)}catch{}if(Un(e,t))return ta(!un(oU.f,e,t),e[t])},y5={f:AU},OU=Ee.String,BU=Ee.TypeError,ur=function(e){if(Ur(e))return e;throw BU(OU(e)+" is not an object")},kU=Ee.TypeError,ax=Object.defineProperty,FU=Ao?ax:function(e,t,n){if(ur(e),t=v5(t),ur(n),Fj)try{return ax(e,t,n)}catch{}if("get"in n||"set"in n)throw kU("Accessors not supported");return"value"in n&&(e[t]=n.value),e},sc={f:FU},Pn=Ao?function(e,t,n){return sc.f(e,t,ta(1,n))}:function(e,t,n){return e[t]=n,e},TU=it(Function.toString);Gt(na.inspectSource)||(na.inspectSource=function(e){return TU(e)});var Tg,ad,_g,b5=na.inspectSource,ux=Ee.WeakMap,_U=Gt(ux)&&/native code/.test(b5(ux)),sx=h5("keys"),w5=function(e){return sx[e]||(sx[e]=kj(e))},E5={},T4=Ee.TypeError,jU=Ee.WeakMap;if(_U||na.state){var qa=na.state||(na.state=new jU),PU=it(qa.get),lx=it(qa.has),IU=it(qa.set);Tg=function(e,t){if(lx(qa,e))throw new T4("Object already initialized");return t.facade=e,IU(qa,e,t),t},ad=function(e){return PU(qa,e)||{}},_g=function(e){return lx(qa,e)}}else{var Ss=w5("state");E5[Ss]=!0,Tg=function(e,t){if(Un(e,Ss))throw new T4("Object already initialized");return t.facade=e,Pn(e,Ss,t),t},ad=function(e){return Un(e,Ss)?e[Ss]:{}},_g=function(e){return Un(e,Ss)}}var Wu={set:Tg,get:ad,has:_g,enforce:function(e){return _g(e)?ad(e):Tg(e,{})},getterFor:function(e){return function(t){var n;if(!Ur(t)||(n=ad(t)).type!==e)throw T4("Incompatible receiver, "+e+" required");return n}}},Tj=Function.prototype,NU=Ao&&Object.getOwnPropertyDescriptor,Zm=Un(Tj,"name"),D5={EXISTS:Zm,PROPER:Zm&&(function(){}).name==="something",CONFIGURABLE:Zm&&(!Ao||Ao&&NU(Tj,"name").configurable)},ra=as(function(e){var t=D5.CONFIGURABLE,n=Wu.get,r=Wu.enforce,o=String(String).split("String");(e.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;Gt(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Un(u,"name")||t&&u.name!==d)&&Pn(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==Ee?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Pn(i,a,u)):f?i[a]=u:p5(a,u)})(Function.prototype,"toString",function(){return Gt(this)&&n(this).source||b5(this)})}),RU=Math.ceil,LU=Math.floor,C5=function(e){var t=+e;return t!=t||t===0?0:(t>0?LU:RU)(t)},MU=Math.max,zU=Math.min,_4=function(e,t){var n=C5(e);return n<0?MU(n+t,0):zU(n,t)},$U=Math.min,_j=function(e){return e>0?$U(C5(e),9007199254740991):0},I1=function(e){return _j(e.length)},cx=function(e){return function(t,n,r){var o,i=uc(t),a=I1(i),u=_4(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},HU={includes:cx(!0),indexOf:cx(!1)}.indexOf,fx=it([].push),jj=function(e,t){var n,r=uc(e),o=0,i=[];for(n in r)!Un(E5,n)&&Un(r,n)&&fx(i,n);for(;t.length>o;)Un(r,n=t[o++])&&(~HU(i,n)||fx(i,n));return i},jg=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],UU=jg.concat("length","prototype"),VU=Object.getOwnPropertyNames||function(e){return jj(e,UU)},WU={f:VU},GU={f:Object.getOwnPropertySymbols},qU=it([].concat),KU=Ip("Reflect","ownKeys")||function(e){var t=WU.f(ur(e)),n=GU.f;return n?qU(t,n(e)):t},Pj=function(e,t){for(var n=KU(t),r=sc.f,o=y5.f,i=0;i<n.length;i++){var a=n[i];Un(e,a)||r(e,a,o(t,a))}},YU=/#|\.prototype\./,Np=function(e,t){var n=JU[XU(e)];return n==QU||n!=ZU&&(Gt(t)?cn(t):!!t)},XU=Np.normalize=function(e){return String(e).replace(YU,".").toLowerCase()},JU=Np.data={},ZU=Np.NATIVE="N",QU=Np.POLYFILL="P",eV=Np,tV=y5.f,Rp=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Ee:l?Ee[u]||p5(u,{}):(Ee[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=tV(n,r))&&a.value:n[r],!eV(s?r:u+(l?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;Pj(i,o)}(e.sham||o&&o.sham)&&Pn(i,"sham",!0),ra(n,r,i,e)}},Ij={};Ij[In("toStringTag")]="z";var Ph,S5=String(Ij)==="[object z]",nV=In("toStringTag"),rV=Ee.Object,oV=Cu(function(){return arguments}())=="Arguments",N1=S5?Cu:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(t=rV(e),nV))=="string"?n:oV?Cu(t):(r=Cu(t))=="Object"&&Gt(t.callee)?"Arguments":r},iV=Ee.String,xu=function(e){if(N1(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return iV(e)},aV=function(){var e=ur(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},x5=Ee.RegExp,A5=cn(function(){var e=x5("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),uV=A5||cn(function(){return!x5("a","y").sticky}),sV=A5||cn(function(){var e=x5("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),lV={BROKEN_CARET:sV,MISSED_STICKY:uV,UNSUPPORTED_Y:A5},cV=Object.keys||function(e){return jj(e,jg)},fV=Ao?Object.defineProperties:function(e,t){ur(e);for(var n,r=uc(t),o=cV(t),i=o.length,a=0;i>a;)sc.f(e,n=o[a++],r[n]);return e},dV=Ip("document","documentElement"),Nj=w5("IE_PROTO"),Qm=function(){},Rj=function(e){return"<script>"+e+"<\/script>"},dx=function(e){e.write(Rj("")),e.close();var t=e.parentWindow.Object;return e=null,t},W0=function(){try{Ph=new ActiveXObject("htmlfile")}catch{}var e,t;W0=typeof document<"u"?document.domain&&Ph?dx(Ph):((t=m5("iframe")).style.display="none",dV.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(Rj("document.F=Object")),e.close(),e.F):dx(Ph);for(var n=jg.length;n--;)delete W0.prototype[jg[n]];return W0()};E5[Nj]=!0;var px,ey,Lp=Object.create||function(e,t){var n;return e!==null?(Qm.prototype=ur(e),n=new Qm,Qm.prototype=null,n[Nj]=e):n=W0(),t===void 0?n:fV(n,t)},pV=Ee.RegExp,hV=cn(function(){var e=pV(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")}),gV=Ee.RegExp,vV=cn(function(){var e=gV("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),mV=Wu.get,yV=h5("native-string-replace",String.prototype.replace),Pg=RegExp.prototype.exec,j4=Pg,bV=it("".charAt),wV=it("".indexOf),EV=it("".replace),ty=it("".slice),ny=(ey=/b*/g,un(Pg,px=/a/,"a"),un(Pg,ey,"a"),px.lastIndex!==0||ey.lastIndex!==0),hx=lV.BROKEN_CARET,ry=/()??/.exec("")[1]!==void 0;(ny||ry||hx||hV||vV)&&(j4=function(e){var t,n,r,o,i,a,u,s=this,l=mV(s),c=xu(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=un(j4,f,c),s.lastIndex=f.lastIndex,t;var p=l.groups,d=hx&&s.sticky,m=un(aV,s),g=s.source,v=0,y=c;if(d&&(m=EV(m,"y",""),wV(m,"g")===-1&&(m+="g"),y=ty(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&bV(c,s.lastIndex-1)!==`
- `)&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",m)),ry&&(n=new RegExp("^"+g+"$(?!\\s)",m)),ny&&(r=s.lastIndex),o=un(Pg,d?n:s,y),d?o?(o.input=ty(o.input,v),o[0]=ty(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:ny&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),ry&&o&&o.length>1&&un(yV,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=Lp(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var Ig=j4;Rp({target:"RegExp",proto:!0,forced:/./.exec!==Ig},{exec:Ig});var DV=In("species"),oy=RegExp.prototype,CV=it("".charAt),gx=it("".charCodeAt),SV=it("".slice),vx=function(e){return function(t,n){var r,o,i=xu(P1(t)),a=C5(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=gx(i,a))<55296||r>56319||a+1===u||(o=gx(i,a+1))<56320||o>57343?e?CV(i,a):r:e?SV(i,a,a+2):o-56320+(r-55296<<10)+65536}},Lj={codeAt:vx(!1),charAt:vx(!0)},xV=Lj.charAt,AV=function(e,t,n){return t+(n?xV(e,t).length:1)},OV=Ee.TypeError,mx=function(e,t){var n=e.exec;if(Gt(n)){var r=un(n,e,t);return r!==null&&ur(r),r}if(Cu(e)==="RegExp")return un(Ig,e,t);throw OV("RegExp#exec called on incompatible receiver")};(function(e,t,n,r){var o=In(e),i=!cn(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!cn(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[DV]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=it(/./[o]),s=t(o,""[e],function(l,c,f,p,d){var m=it(l),g=c.exec;return g===Ig||g===oy.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:m(f,c,p)}:{done:!1}});ra(String.prototype,e,s[0]),ra(oy,o,s[1])}r&&Pn(oy[o],"sham",!0)})("match",function(e,t,n){return[function(r){var o=P1(this),i=r==null?void 0:Id(r,e);return i?un(i,r,o):new RegExp(r)[e](xu(o))},function(r){var o=ur(this),i=xu(r),a=n(t,o,i);if(a.done)return a.value;if(!o.global)return mx(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=mx(o,i))!==null;){var f=xu(s[0]);l[c]=f,f===""&&(o.lastIndex=AV(i,_j(o.lastIndex),u)),c++}return c===0?null:l}]}),Rp({global:!0},{globalThis:Ee});var BV=!cn(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),yx=w5("IE_PROTO"),P4=Ee.Object,kV=P4.prototype,Nd=BV?P4.getPrototypeOf:function(e){var t=g5(e);if(Un(t,yx))return t[yx];var n=t.constructor;return Gt(n)&&t instanceof n?n.prototype:t instanceof P4?kV:null},FV=Ee.String,TV=Ee.TypeError,Bl=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=it(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return ur(r),function(i){if(typeof i=="object"||Gt(i))return i;throw TV("Can't set "+FV(i)+" as a prototype")}(o),t?e(r,o):r.__proto__=o,r}}():void 0),_V=Ee.Array,jV=Math.max,PV=it("".replace),IV=it("".split),NV=it([].join),I4=String(Error("zxcasd").stack),Mj=/\n\s*at [^:]*:[^\n]*/,RV=Mj.test(I4),LV=/@[^\n]*\n/.test(I4)&&!/zxcasd/.test(I4),MV=function(e,t){if(typeof e!="string")return e;if(RV)for(;t--;)e=PV(e,Mj,"");else if(LV)return NV(function(n,r,o){for(var i,a,u,s,l=I1(n),c=_4(r,l),f=_4(o===void 0?l:o,l),p=_V(jV(f-c,0)),d=0;c<f;c++,d++)i=p,a=d,u=n[c],s=void 0,(s=v5(a))in i?sc.f(i,s,ta(0,u)):i[s]=u;return p.length=d,p}(IV(e,`
- `),t),`
- `);return e},zV=function(e,t){Ur(t)&&"cause"in t&&Pn(e,"cause",t.cause)},bx=it(it.bind),zj=function(e,t){return d5(e),t===void 0?e:bx?bx(e,t):function(){return e.apply(t,arguments)}},kl={},$V=In("iterator"),HV=Array.prototype,UV=In("iterator"),wx=function(e){if(e!=null)return Id(e,UV)||Id(e,"@@iterator")||kl[N1(e)]},VV=Ee.TypeError,Ex=function(e,t,n){var r,o;ur(e);try{if(!(r=Id(e,"return"))){if(t==="throw")throw n;return n}r=un(r,e)}catch(i){o=!0,r=i}if(t==="throw")throw n;if(o)throw r;return ur(r),n},WV=Ee.TypeError,G0=function(e,t){this.stopped=e,this.result=t},Dx=G0.prototype,GV=function(e,t,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),m=zj(t,c),g=function(y){return r&&Ex(r,"normal",y),new G0(!0,y)},v=function(y){return f?(ur(y),d?m(y[0],y[1],g):m(y[0],y[1])):d?m(y,g):m(y)};if(p)r=e;else{if(!(o=wx(e)))throw WV(k4(e)+" is not iterable");if(function(y){return y!==void 0&&(kl.Array===y||HV[$V]===y)}(o)){for(i=0,a=I1(e);a>i;i++)if((u=v(e[i]))&&Fg(Dx,u))return u;return new G0(!1)}r=function(y,h){var b=arguments.length<2?wx(y):h;if(d5(b))return ur(un(b,y));throw VV(k4(y)+" is not iterable")}(e,o)}for(s=r.next;!(l=un(s,r)).done;){try{u=v(l.value)}catch(y){Ex(r,"throw",y)}if(typeof u=="object"&&u&&Fg(Dx,u))return u}return new G0(!1)},qV=function(e,t){return e===void 0?arguments.length<2?"":t:xu(e)},KV=!cn(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",ta(1,7)),e.stack!==7)}),YV=In("toStringTag"),Ng=Ee.Error,XV=[].push,Rd=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=Fg(iy,this);Bl?n=Bl(new Ng(void 0),o?Nd(this):iy):(n=o?this:Lp(iy),Pn(n,YV,"Error")),Pn(n,"message",qV(t,"")),KV&&Pn(n,"stack",MV(n.stack,1)),zV(n,r);var i=[];return GV(e,XV,{that:i}),Pn(n,"errors",i),n};Bl?Bl(Rd,Ng):Pj(Rd,Ng);var iy=Rd.prototype=Lp(Ng.prototype,{constructor:ta(1,Rd),message:ta(1,""),name:ta(1,"AggregateError")});Rp({global:!0},{AggregateError:Rd});var N4=In("unscopables"),R4=Array.prototype;R4[N4]==null&&sc.f(R4,N4,{configurable:!0,value:Lp(null)});var Au,Cx,Sx,ay=function(e){R4[N4][e]=!0},L4=In("iterator"),$j=!1;[].keys&&("next"in(Sx=[].keys())?(Cx=Nd(Nd(Sx)))!==Object.prototype&&(Au=Cx):$j=!0);var JV=Au==null||cn(function(){var e={};return Au[L4].call(e)!==e});JV&&(Au={}),Gt(Au[L4])||ra(Au,L4,function(){return this});var O5={IteratorPrototype:Au,BUGGY_SAFARI_ITERATORS:$j},ZV=sc.f,xx=In("toStringTag"),Ax=function(e,t,n){e&&!Un(e=n?e:e.prototype,xx)&&ZV(e,xx,{configurable:!0,value:t})},QV=O5.IteratorPrototype,eW=function(){return this},tW=D5.PROPER,nW=D5.CONFIGURABLE,Ox=O5.IteratorPrototype,Ih=O5.BUGGY_SAFARI_ITERATORS,_c=In("iterator"),rW=function(){return this},Hj=function(e,t,n,r,o,i,a){(function(y,h,b,w){var D=h+" Iterator";y.prototype=Lp(QV,{next:ta(+!w,b)}),Ax(y,D,!1),kl[D]=eW})(n,t,r);var u,s,l,c=function(y){if(y===o&&g)return g;if(!Ih&&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=t+" Iterator",p=!1,d=e.prototype,m=d[_c]||d["@@iterator"]||o&&d[o],g=!Ih&&m||c(o),v=t=="Array"&&d.entries||m;if(v&&(u=Nd(v.call(new e)))!==Object.prototype&&u.next&&(Nd(u)!==Ox&&(Bl?Bl(u,Ox):Gt(u[_c])||ra(u,_c,rW)),Ax(u,f,!0)),tW&&o=="values"&&m&&m.name!=="values"&&(nW?Pn(d,"name","values"):(p=!0,g=function(){return un(m,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(Ih||p||!(l in d))&&ra(d,l,s[l]);else Rp({target:t,proto:!0,forced:Ih||p},s);return d[_c]!==g&&ra(d,_c,g,{name:o}),kl[t]=g,s},oW=Wu.set,iW=Wu.getterFor("Array Iterator"),Yf=Hj(Array,"Array",function(e,t){oW(this,{type:"Array Iterator",target:uc(e),index:0,kind:t})},function(){var e=iW(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values");kl.Arguments=kl.Array,ay("keys"),ay("values"),ay("entries");var aW=Lj.charAt,uW=Wu.set,sW=Wu.getterFor("String Iterator");Hj(String,"String",function(e){uW(this,{type:"String Iterator",string:xu(e),index:0})},function(){var e,t=sW(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=aW(n,r),t.index+=e.length,{value:e,done:!1})});var uy,Rg={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},sy=m5("span").classList,Bx=sy&&sy.constructor&&sy.constructor.prototype,Uj=Bx===Object.prototype?void 0:Bx,ly=In("iterator"),kx=In("toStringTag"),cy=Yf.values,Vj=function(e,t){if(e){if(e[ly]!==cy)try{Pn(e,ly,cy)}catch{e[ly]=cy}if(e[kx]||Pn(e,kx,t),Rg[t]){for(var n in Yf)if(e[n]!==Yf[n])try{Pn(e,n,Yf[n])}catch{e[n]=Yf[n]}}}};for(var fy in Rg)Vj(Ee[fy]&&Ee[fy].prototype,fy);Vj(Uj,"DOMTokenList"),(typeof global>"u"||global&&!((uy=global.navigator)===null||uy===void 0)&&uy.userAgent.match("QQBrowser"))&&(lW(),cW());function lW(){typeof globalThis>"u"&&(window.globalThis=window)}function cW(){nU===void 0&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}var Fx,Lg=Array.isArray||function(e){return Eu(e)=="Array"},Wj=function(){},fW=[],Gj=oc("Reflect","construct"),B5=/^\s*(?:class|function)\b/,dW=gt(B5.exec),pW=!B5.exec(Wj),jc=function(e){if(!sn(e))return!1;try{return Gj(Wj,fW,e),!0}catch{return!1}},hW=!Gj||Gn(function(){var e;return jc(jc.call)||!jc(Object)||!jc(function(){e=!0})||e})?function(e){if(!sn(e))return!1;switch(Pp(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return pW||!!dW(B5,Dj(e))}:jc,gW=kn("species"),Tx=Be.Array,qj=function(e,t){return new(function(n){var r;return Lg(n)&&(r=n.constructor,(hW(r)&&(r===Tx||Lg(r.prototype))||er(r)&&(r=r[gW])===null)&&(r=void 0)),r===void 0?Tx:r}(e))(t===0?0:t)},vW=kn("species"),Kj=kn("isConcatSpreadable"),_x=Be.TypeError,mW=wg>=51||!Gn(function(){var e=[];return e[Kj]=!1,e.concat()[0]!==e}),yW=(Fx="concat",wg>=51||!Gn(function(){var e=[];return(e.constructor={})[vW]=function(){return{foo:1}},e[Fx](Boolean).foo!==1})),bW=function(e){if(!er(e))return!1;var t=e[Kj];return t!==void 0?!!t:Lg(e)};qo({target:"Array",proto:!0,forced:!mW||!yW},{concat:function(e){var t,n,r,o,i,a=Fp(this),u=qj(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(bW(i=t===-1?a:arguments[t])){if(s+(o=_p(i))>9007199254740991)throw _x("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&E4(u,s,i[n])}else{if(s>=9007199254740991)throw _x("Maximum allowed index exceeded");E4(u,s++,i)}return u.length=s,u}});var jx=s5.f,Px=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Yj={f:function(e){return Px&&Eu(e)=="Window"?function(t){try{return jx(t)}catch{return bj(Px)}}(e):jx(jo(e))}},wW=gt([].slice),k5={f:kn},EW=Pa.f,Pt=function(e){var t=Qn.Symbol||(Qn.Symbol={});Ue(t,e)||EW(t,e,{value:k5.f(e)})},Ix=gt([].push),bi=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var p,d,m=Fp(s),g=pj(m),v=a5(l,c),y=_p(g),h=0,b=f||qj,w=t?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in g)&&(d=v(p=g[h],h,m),e))if(t)w[h]=d;else if(d)switch(e){case 3:return!0;case 5:return p;case 6:return h;case 2:Ix(w,p)}else switch(e){case 4:return!1;case 7:Ix(w,p)}return i?-1:r||o?o:w}},R1={forEach:bi(0),map:bi(1),filter:bi(2),some:bi(3),every:bi(4),find:bi(5),findIndex:bi(6),filterReject:bi(7)}.forEach,Ln=j1("hidden"),Nx=kn("toPrimitive"),DW=ac.set,Rx=ac.getterFor("Symbol"),Gr=Object.prototype,Vi=Be.Symbol,Yi=Vi&&Vi.prototype,Lx=Be.TypeError,dy=Be.QObject,Pc=oc("JSON","stringify"),Xj=_1.f,Wi=Pa.f,Jj=Yj.f,CW=n5.f,Zj=gt([].push),ii=us("symbols"),Mp=us("op-symbols"),py=us("string-to-symbol-registry"),hy=us("symbol-to-string-registry"),SW=us("wks"),gy=!dy||!dy.prototype||!dy.prototype.findChild,M4=Hn&&Gn(function(){return oi(Wi({},"a",{get:function(){return Wi(this,"a",{value:7}).a}})).a!=7})?function(e,t,n){var r=Xj(Gr,t);r&&delete Gr[t],Wi(e,t,n),r&&e!==Gr&&Wi(Gr,t,r)}:Wi,vy=function(e,t){var n=ii[e]=oi(Yi);return DW(n,{type:"Symbol",tag:e,description:t}),Hn||(n.description=t),n},Mg=function(e,t,n){e===Gr&&Mg(Mp,t,n),ar(e);var r=ic(t);return ar(n),Ue(ii,r)?(n.enumerable?(Ue(e,Ln)&&e[Ln][r]&&(e[Ln][r]=!1),n=oi(n,{enumerable:Yr(0,!1)})):(Ue(e,Ln)||Wi(e,Ln,Yr(1,{})),e[Ln][r]=!0),M4(e,r,n)):Wi(e,r,n)},Mx=function(e,t){ar(e);var n=jo(t),r=l5(n).concat(z4(n));return R1(r,function(o){Hn&&!zn(Qj,n,o)||Mg(e,o,n[o])}),e},Qj=function(e){var t=ic(e),n=zn(CW,this,t);return!(this===Gr&&Ue(ii,t)&&!Ue(Mp,t))&&(!(n||!Ue(this,t)||!Ue(ii,t)||Ue(this,Ln)&&this[Ln][t])||n)},zx=function(e,t){var n=jo(e),r=ic(t);if(n!==Gr||!Ue(ii,r)||Ue(Mp,r)){var o=Xj(n,r);return!o||!Ue(ii,r)||Ue(n,Ln)&&n[Ln][r]||(o.enumerable=!0),o}},$x=function(e){var t=Jj(jo(e)),n=[];return R1(t,function(r){Ue(ii,r)||Ue(jp,r)||Zj(n,r)}),n},z4=function(e){var t=e===Gr,n=Jj(t?Mp:jo(e)),r=[];return R1(n,function(o){!Ue(ii,o)||t&&!Ue(Gr,o)||Zj(r,ii[o])}),r};if(po||(Yi=(Vi=function(){if(_d(Yi,this))throw Lx("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==void 0?jd(arguments[0]):void 0,t=Dg(e),n=function(r){this===Gr&&zn(n,Mp,r),Ue(this,Ln)&&Ue(this[Ln],t)&&(this[Ln][t]=!1),M4(this,t,Yr(1,r))};return Hn&&gy&&M4(Gr,t,{configurable:!0,set:n}),vy(t,e)}).prototype,Ol(Yi,"toString",function(){return Rx(this).tag}),Ol(Vi,"withoutSetter",function(e){return vy(Dg(e),e)}),n5.f=Qj,Pa.f=Mg,_1.f=zx,s5.f=Yj.f=$x,$0.f=z4,k5.f=function(e){return vy(kn(e),e)},Hn&&Wi(Yi,"description",{configurable:!0,get:function(){return Rx(this).description}})),qo({global:!0,wrap:!0,forced:!po,sham:!po},{Symbol:Vi}),R1(l5(SW),function(e){Pt(e)}),qo({target:"Symbol",stat:!0,forced:!po},{for:function(e){var t=jd(e);if(Ue(py,t))return py[t];var n=Vi(t);return py[t]=n,hy[n]=t,n},keyFor:function(e){if(!hl(e))throw Lx(e+" is not a symbol");if(Ue(hy,e))return hy[e]},useSetter:function(){gy=!0},useSimple:function(){gy=!1}}),qo({target:"Object",stat:!0,forced:!po,sham:!Hn},{create:function(e,t){return t===void 0?oi(e):Mx(oi(e),t)},defineProperty:Mg,defineProperties:Mx,getOwnPropertyDescriptor:zx}),qo({target:"Object",stat:!0,forced:!po},{getOwnPropertyNames:$x,getOwnPropertySymbols:z4}),qo({target:"Object",stat:!0,forced:Gn(function(){$0.f(1)})},{getOwnPropertySymbols:function(e){return $0.f(Fp(e))}}),Pc){var xW=!po||Gn(function(){var e=Vi();return Pc([e])!="[null]"||Pc({a:e})!="{}"||Pc(Object(e))!="{}"});qo({target:"JSON",stat:!0,forced:xW},{stringify:function(e,t,n){var r=wW(arguments),o=t;if((er(t)||e!==void 0)&&!hl(e))return Lg(t)||(t=function(i,a){if(sn(o)&&(a=zn(o,this,i,a)),!hl(a))return a}),r[1]=t,fj(Pc,null,r)}})}if(!Yi[Nx]){var AW=Yi.valueOf;Ol(Yi,Nx,function(e){return zn(AW,this)})}kg(Vi,"Symbol"),jp[Ln]=!0,Pt("asyncIterator"),Pt("hasInstance"),Pt("isConcatSpreadable"),Pt("iterator"),Pt("match"),Pt("matchAll"),Pt("replace"),Pt("search"),Pt("species"),Pt("split"),Pt("toPrimitive"),Pt("toStringTag"),Pt("unscopables"),kg(Be.JSON,"JSON",!0);var OW=Qn.Symbol;Pt("asyncDispose"),Pt("dispose"),Pt("matcher"),Pt("metadata"),Pt("observable"),Pt("patternMatch"),Pt("replaceAll");var Nh=OW,BW=k5.f("iterator"),kW=as(function(e){function t(n){return typeof Nh=="function"&&typeof BW=="symbol"?(e.exports=t=function(r){return typeof r},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(r){return r&&typeof Nh=="function"&&r.constructor===Nh&&r!==Nh.prototype?"symbol":typeof r},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}),FW=d$(kW),eP=y5.f,TW=cn(function(){eP(1)});if(Rp({target:"Object",stat:!0,forced:!Ao||TW,sham:!Ao},{getOwnPropertyDescriptor:function(e,t){return eP(uc(e),t)}}),(typeof global>"u"?"undefined":FW(global))==="object"){var _W=Object.getOwnPropertyDescriptor(global,"window");global.window&&!_W.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(e){return nodeCrypto.randomFillSync(e)}}),global.document!=null&&global.document.getElementsByTagName==null&&(global.document.getElementsByTagName=function(){return[]})}/*!
- * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
- *
- * Copyright (c) 2014-2017, Jon Schlinkert.
- * Released under the MIT License.
- */function Hx(e){return Object.prototype.toString.call(e)==="[object Object]"}function xn(e){var t,n;return Hx(e)!==!1&&((t=e.constructor)===void 0||Hx(n=t.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1)}function Vr(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(o){return"'"+o+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Gu(e){return!!e&&!!e[sr]}function qu(e){return!!e&&(function(t){if(!t||typeof t!="object")return!1;var n=Object.getPrototypeOf(t);if(n===null)return!0;var r=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return r===Object||typeof r=="function"&&Function.toString.call(r)===LW}(e)||Array.isArray(e)||!!e[Xx]||!!e.constructor[Xx]||F5(e)||T5(e))}function Ld(e,t,n){n===void 0&&(n=!1),Fl(e)===0?(n?Object.keys:N5)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,o){return t(o,r,e)})}function Fl(e){var t=e[sr];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:F5(e)?2:T5(e)?3:0}function $4(e,t){return Fl(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function tP(e,t,n){var r=Fl(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function F5(e){return NW&&e instanceof Map}function T5(e){return RW&&e instanceof Set}function iu(e){return e.o||e.t}function _5(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=MW(e);delete t[sr];for(var n=N5(t),r=0;r<n.length;r++){var o=n[r],i=t[o];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function j5(e,t){return t===void 0&&(t=!1),P5(e)||Gu(e)||!qu(e)||(Fl(e)>1&&(e.set=e.add=e.clear=e.delete=jW),Object.freeze(e),t&&Ld(e,function(n,r){return j5(r,!0)},!0)),e}function jW(){Vr(2)}function P5(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function ti(e){var t=zW[e];return t||Vr(18,e),t}function Ux(){return Md}function my(e,t){t&&(ti("Patches"),e.u=[],e.s=[],e.v=t)}function zg(e){H4(e),e.p.forEach(PW),e.p=null}function H4(e){e===Md&&(Md=e.l)}function Vx(e){return Md={p:[],l:Md,h:e,m:!0,_:0}}function PW(e){var t=e[sr];t.i===0||t.i===1?t.j():t.O=!0}function yy(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||ti("ES5").S(t,e,r),r?(n[sr].P&&(zg(t),Vr(4)),qu(e)&&(e=$g(t,e),t.l||Hg(t,e)),t.u&&ti("Patches").M(n[sr],e,t.u,t.s)):e=$g(t,n,[]),zg(t),t.u&&t.v(t.u,t.s),e!==nP?e:void 0}function $g(e,t,n){if(P5(t))return t;var r=t[sr];if(!r)return Ld(t,function(i,a){return Wx(e,r,t,i,a,n)},!0),t;if(r.A!==e)return t;if(!r.P)return Hg(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=_5(r.k):r.o;Ld(r.i===3?new Set(o):o,function(i,a){return Wx(e,r,o,i,a,n)}),Hg(e,o,!1),n&&e.u&&ti("Patches").R(r,n,e.u,e.s)}return r.o}function Wx(e,t,n,r,o,i){if(Gu(o)){var a=$g(e,o,i&&t&&t.i!==3&&!$4(t.D,r)?i.concat(r):void 0);if(tP(n,r,a),!Gu(a))return;e.m=!1}if(qu(o)&&!P5(o)){if(!e.h.F&&e._<1)return;$g(e,o),t&&t.A.l||Hg(e,o)}}function Hg(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&j5(t,n)}function by(e,t){var n=e[sr];return(n?iu(n):e)[t]}function Gx(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function U4(e){e.P||(e.P=!0,e.l&&U4(e.l))}function wy(e){e.o||(e.o=_5(e.t))}function V4(e,t,n){var r=F5(t)?ti("MapSet").N(t,n):T5(t)?ti("MapSet").T(t,n):e.g?function(o,i){var a=Array.isArray(o),u={i:a?1:0,A:i?i.A:Ux(),P:!1,I:!1,D:{},l:i,t:o,k:null,o:null,j:null,C:!1},s=u,l=q0;a&&(s=[u],l=K0);var c=Proxy.revocable(s,l),f=c.revoke,p=c.proxy;return u.k=p,u.j=f,p}(t,n):ti("ES5").J(t,n);return(n?n.A:Ux()).p.push(r),r}function IW(e){return Gu(e)||Vr(22,e),function t(n){if(!qu(n))return n;var r,o=n[sr],i=Fl(n);if(o){if(!o.P&&(o.i<4||!ti("ES5").K(o)))return o.t;o.I=!0,r=qx(n,i),o.I=!1}else r=qx(n,i);return Ld(r,function(a,u){o&&function(s,l){return Fl(s)===2?s.get(l):s[l]}(o.t,a)===u||tP(r,a,t(u))}),i===3?new Set(r):r}(e)}function qx(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return _5(e)}var Kx,Md,I5=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",NW=typeof Map<"u",RW=typeof Set<"u",Yx=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",nP=I5?Symbol.for("immer-nothing"):((Kx={})["immer-nothing"]=!0,Kx),Xx=I5?Symbol.for("immer-draftable"):"__$immer_draftable",sr=I5?Symbol.for("immer-state"):"__$immer_state",LW=""+Object.prototype.constructor,N5=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,MW=Object.getOwnPropertyDescriptors||function(e){var t={};return N5(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},zW={},q0={get:function(e,t){if(t===sr)return e;var n=iu(e);if(!$4(n,t))return function(o,i,a){var u,s=Gx(i,a);return s?"value"in s?s.value:(u=s.get)===null||u===void 0?void 0:u.call(o.k):void 0}(e,n,t);var r=n[t];return e.I||!qu(r)?r:r===by(e.t,t)?(wy(e),e.o[t]=V4(e.A.h,r,e)):r},has:function(e,t){return t in iu(e)},ownKeys:function(e){return Reflect.ownKeys(iu(e))},set:function(e,t,n){var r=Gx(iu(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=by(iu(e),t),i=o==null?void 0:o[sr];if(i&&i.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(function(a,u){return a===u?a!==0||1/a==1/u:a!=a&&u!=u}(n,o)&&(n!==void 0||$4(e.t,t)))return!0;wy(e),U4(e)}return e.o[t]===n&&typeof n!="number"&&(n!==void 0||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return by(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,wy(e),U4(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=iu(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){Vr(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Vr(12)}},K0={};Ld(q0,function(e,t){K0[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),K0.deleteProperty=function(e,t){return q0.deleteProperty.call(this,e[0],t)},K0.set=function(e,t,n){return q0.set.call(this,e[0],t,n,e[0])};var $W=function(){function e(n){var r=this;this.g=Yx,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 m=this;d===void 0&&(d=u);for(var g=arguments.length,v=Array(g>1?g-1:0),y=1;y<g;y++)v[y-1]=arguments[y];return s.produce(d,function(h){var b;return(b=i).call.apply(b,[m,h].concat(v))})}}var l;if(typeof i!="function"&&Vr(6),a!==void 0&&typeof a!="function"&&Vr(7),qu(o)){var c=Vx(r),f=V4(r,o,void 0),p=!0;try{l=i(f),p=!1}finally{p?zg(c):H4(c)}return typeof Promise<"u"&&l instanceof Promise?l.then(function(d){return my(c,a),yy(d,c)},function(d){throw zg(c),d}):(my(c,a),yy(l,c))}if(!o||typeof o!="object")return(l=i(o))===nP?void 0:(l===void 0&&(l=o),r.F&&j5(l,!0),l);Vr(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 t=e.prototype;return t.createDraft=function(n){qu(n)||Vr(8),Gu(n)&&(n=IW(n));var r=Vx(this),o=V4(this,n,void 0);return o[sr].C=!0,H4(r),o},t.finishDraft=function(n,r){var o=(n&&n[sr]).A;return my(o,r),yy(void 0,o)},t.setAutoFreeze=function(n){this.F=n},t.setUseProxies=function(n){n&&!Yx&&Vr(20),this.g=n},t.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=ti("Patches").$;return Gu(n)?a(n,r):this.produce(n,function(u){return a(u,r)})},e}(),Jn=new $W,L1=Jn.produce;Jn.produceWithPatches.bind(Jn),Jn.setAutoFreeze.bind(Jn),Jn.setUseProxies.bind(Jn),Jn.applyPatches.bind(Jn);var Jx=Jn.createDraft.bind(Jn),Zx=Jn.finishDraft.bind(Jn);function Po(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ug=new WeakMap,Ic=new WeakMap,Qx=new WeakMap,eA=new WeakMap,tA=new WeakMap,nA=new WeakMap;function rA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Rh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rA(Object(n),!0).forEach(function(r){Po(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var HW=()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of E.pathRefs(e))yG.transform(n,t);for(var r of E.pointRefs(e))bG.transform(r,t);for(var o of E.rangeRefs(e))EG.transform(o,t);var i=new Set,a=[],u=p=>{if(p){var d=p.join(",");i.has(d)||(i.add(d),a.push(p))}},s=Ug.get(e)||[],l=UW(t);for(var c of s)u(P.transform(c,t));for(var f of l)u(f);Ug.set(e,a),I.transform(e,t),e.operations.push(t),E.normalize(e),t.type==="set_selection"&&(e.marks=null),Ic.get(e)||(Ic.set(e,!0),Promise.resolve().then(()=>{Ic.set(e,!1),e.onChange(),e.operations=[]}))},addMark:(t,n)=>{var{selection:r}=e;if(r)if(R.isExpanded(r))I.setNodes(e,{[t]:n},{match:oe.isText,split:!0});else{var o=Rh(Rh({},E.marks(e)||{}),{},{[t]:n});e.marks=o,Ic.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:n}=e;n&&R.isCollapsed(n)&&I.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&R.isCollapsed(n)&&I.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&R.isExpanded(n)&&I.delete(e,{reverse:t==="backward"})},getFragment:()=>{var{selection:t}=e;return t?Z.fragment(e,t):[]},insertBreak:()=>{I.splitNodes(e,{always:!0})},insertFragment:t=>{I.insertFragment(e,t)},insertNode:t=>{I.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var o=Rh({text:t},r);I.insertNodes(e,o)}else I.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!oe.isText(n))if(ce.isElement(n)&&n.children.length===0)I.insertNodes(e,{text:""},{at:r.concat(0),voids:!0});else for(var o=!E.isEditor(n)&&ce.isElement(n)&&(e.isInline(n)||n.children.length===0||oe.isText(n.children[0])||e.isInline(n.children[0])),i=0,a=0;a<n.children.length;a++,i++){var u=Z.get(e,r);if(!oe.isText(u)){var s=n.children[a],l=u.children[i-1],c=a===n.children.length-1;(oe.isText(s)||ce.isElement(s)&&e.isInline(s))!==o?(I.removeNodes(e,{at:r.concat(i),voids:!0}),i--):ce.isElement(s)?e.isInline(s)&&(l!=null&&oe.isText(l)?c&&(I.insertNodes(e,{text:""},{at:r.concat(i+1),voids:!0}),i++):(I.insertNodes(e,{text:""},{at:r.concat(i),voids:!0}),i++)):l!=null&&oe.isText(l)&&(oe.equals(s,l,{loose:!0})?(I.mergeNodes(e,{at:r.concat(i),voids:!0}),i--):l.text===""?(I.removeNodes(e,{at:r.concat(i-1),voids:!0}),i--):s.text===""&&(I.removeNodes(e,{at:r.concat(i),voids:!0}),i--))}}},removeMark:t=>{var{selection:n}=e;if(n)if(R.isExpanded(n))I.unsetNodes(e,t,{match:oe.isText,split:!0});else{var r=Rh({},E.marks(e)||{});delete r[t],e.marks=r,Ic.get(e)||e.onChange()}}};return e},UW=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return P.levels(t);case"insert_node":var{node:n,path:r}=e,o=P.levels(r),i=oe.isText(n)?[]:Array.from(Z.nodes(n),w=>{var[,D]=w;return r.concat(D)});return[...o,...i];case"merge_node":var{path:a}=e;return[...P.ancestors(a),P.previous(a)];case"move_node":var{path:u,newPath:s}=e;if(P.equals(u,s))return[];var l=[],c=[];for(var f of P.ancestors(u)){var p=P.transform(f,e);l.push(p)}for(var d of P.ancestors(s)){var m=P.transform(d,e);c.push(m)}var g=c[c.length-1],v=s[s.length-1],y=g.concat(v);return[...l,...c,y];case"remove_node":var{path:h}=e;return[...P.ancestors(h)];case"split_node":var{path:b}=e;return[...P.levels(b),P.next(b)];default:return[]}};function ai(e,t){if(e==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}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Se,W4=function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=!t,r=t?KW(e):e,o=Se.None,i=Se.None,a=0,u=null;for(var s of r){var l=s.codePointAt(0);if(!l)break;var c=aG(s,l);if([o,i]=n?[i,c]:[c,o],ul(o,Se.ZWJ)&&ul(i,Se.ExtPict)&&!cG(n?e.substring(0,a):e.substring(0,e.length-a))||ul(o,Se.RI)&&ul(i,Se.RI)&&!(u=u!==null?!u:!!n||dG(e.substring(0,e.length-a)))||o!==Se.None&&i!==Se.None&&sG(o,i))break;a+=s.length}return a||1},VW=/\s/,WW=/[\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]/,GW=/['\u2018\u2019]/,G4=(e,t,n)=>{if(n){var r=e.length-t;return[e.slice(r,e.length),e.slice(0,r)]}return[e.slice(0,t),e.slice(t)]},qW=function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(VW.test(t))return!1;if(GW.test(t)){var o=W4(n,r),[i,a]=G4(n,o,r);if(e(i,a,r))return!0}return!WW.test(t)},KW=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(XW(r.charCodeAt(0))){var o=e.charAt(t-n-1);if(YW(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},YW=e=>e>=55296&&e<=56319,XW=e=>e>=56320&&e<=57343;(function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"})(Se||(Se={}));var JW=/^(?:[\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])$/,ZW=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,QW=/^(?:[\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])$/,eG=/^[\u1100-\u115F\uA960-\uA97C]$/,tG=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,nG=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,rG=/^[\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]$/,oG=/^[\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]$/,iG=/^(?:[\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])$/,aG=(e,t)=>{var n=Se.Any;return e.search(JW)!==-1&&(n|=Se.Extend),t===8205&&(n|=Se.ZWJ),t>=127462&&t<=127487&&(n|=Se.RI),e.search(ZW)!==-1&&(n|=Se.Prepend),e.search(QW)!==-1&&(n|=Se.SpacingMark),e.search(eG)!==-1&&(n|=Se.L),e.search(tG)!==-1&&(n|=Se.V),e.search(nG)!==-1&&(n|=Se.T),e.search(rG)!==-1&&(n|=Se.LV),e.search(oG)!==-1&&(n|=Se.LVT),e.search(iG)!==-1&&(n|=Se.ExtPict),n};function ul(e,t){return(e&t)!=0}var uG=[[Se.L,Se.L|Se.V|Se.LV|Se.LVT],[Se.LV|Se.V,Se.V|Se.T],[Se.LVT|Se.T,Se.T],[Se.Any,Se.Extend|Se.ZWJ],[Se.Any,Se.SpacingMark],[Se.Prepend,Se.Any],[Se.ZWJ,Se.ExtPict],[Se.RI,Se.RI]];function sG(e,t){return uG.findIndex(n=>ul(e,n[0])&&ul(t,n[1]))===-1}var lG=/(?:[\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$/,cG=e=>e.search(lG)!==-1,fG=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,dG=e=>{var t=e.match(fG);return t!==null&&t[0].length/2%2==1},oA=e=>xn(e)&&Z.isNodeList(e.children)&&!E.isEditor(e),ce={isAncestor:e=>xn(e)&&Z.isNodeList(e.children),isElement:oA,isElementList:e=>Array.isArray(e)&&e.every(t=>ce.isElement(t)),isElementProps:e=>e.children!==void 0,isElementType:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return oA(e)&&e[n]===t},matches(e,t){for(var n in t)if(n!=="children"&&e[n]!==t[n])return!1;return!0}},pG=["text"],hG=["text"];function iA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function xs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iA(Object(n),!0).forEach(function(r){Po(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var aA=new WeakMap,E={above(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:o=e.selection,match:i}=t;if(o){var a=E.path(e,o),u=r==="lowest";for(var[s,l]of E.levels(e,{at:a,voids:n,match:i,reverse:u}))if(!oe.isText(s)&&!P.equals(a,l))return[s,l]}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:E.point(e,t,{edge:"end"}),focus:E.end(e,[])},{distance:i=1}=r,a=0;for(var u of E.positions(e,xs(xs({},r),{},{at:o}))){if(a>i)break;a!==0&&(n=u),a++}return n},before(e,t){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:E.start(e,[]),focus:E.point(e,t,{edge:"start"})},{distance:i=1}=r,a=0;for(var u of E.positions(e,xs(xs({},r),{},{at:o,reverse:!0}))){if(a>i)break;a!==0&&(n=u),a++}return n},deleteBackward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{direction:n="forward"}=t;e.deleteFragment(n)},edges:(e,t)=>[E.start(e,t),E.end(e,t)],end:(e,t)=>E.point(e,t,{edge:"end"}),first(e,t){var n=E.path(e,t,{edge:"start"});return E.node(e,n)},fragment(e,t){var n=E.range(e,t);return Z.fragment(e,n)},hasBlocks:(e,t)=>t.children.some(n=>E.isBlock(e,n)),hasInlines:(e,t)=>t.children.some(n=>oe.isText(n)||E.isInline(e,n)),hasTexts:(e,t)=>t.children.every(n=>oe.isText(n)),insertBreak(e){e.insertBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>ce.isElement(t)&&!e.isInline(t),isEditor(e){if(!xn(e))return!1;var t=aA.get(e);if(t!==void 0)return t;var n=typeof e.addMark=="function"&&typeof e.apply=="function"&&typeof e.deleteBackward=="function"&&typeof e.deleteForward=="function"&&typeof e.deleteFragment=="function"&&typeof e.insertBreak=="function"&&typeof e.insertFragment=="function"&&typeof e.insertNode=="function"&&typeof e.insertText=="function"&&typeof e.isInline=="function"&&typeof e.isVoid=="function"&&typeof e.normalizeNode=="function"&&typeof e.onChange=="function"&&typeof e.removeMark=="function"&&(e.marks===null||xn(e.marks))&&(e.selection===null||R.isRange(e.selection))&&Z.isNodeList(e.children)&&Xi.isOperationList(e.operations);return aA.set(e,n),n},isEnd(e,t,n){var r=E.end(e,n);return ke.equals(t,r)},isEdge:(e,t,n)=>E.isStart(e,t,n)||E.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[r]=n;return n.length===0||n.length===1&&oe.isText(r)&&r.text===""&&!e.isVoid(t)},isInline:(e,t)=>ce.isElement(t)&&e.isInline(t),isNormalizing(e){var t=Qx.get(e);return t===void 0||t},isStart(e,t,n){if(t.offset!==0)return!1;var r=E.start(e,n);return ke.equals(t,r)},isVoid:(e,t)=>ce.isElement(t)&&e.isVoid(t),last(e,t){var n=E.path(e,t,{edge:"end"});return E.node(e,n)},leaf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=E.path(e,t,n);return[Z.leaf(e,r),r]},*levels(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:o=!1}=t,{match:i}=t;if(i==null&&(i=()=>!0),n){var a=[],u=E.path(e,n);for(var[s,l]of Z.levels(e,u))if(i(s,l)&&(a.push([s,l]),!o&&E.isVoid(e,s)))break;r&&a.reverse(),yield*a}},marks(e){var{marks:t,selection:n}=e;if(!n)return null;if(t)return t;if(R.isExpanded(n)){var[r]=E.nodes(e,{match:oe.isText});if(r){var[o]=r;return ai(o,pG)}return{}}var{anchor:i}=n,{path:a}=i,[u]=E.leaf(e,a);if(i.offset===0){var s=E.previous(e,{at:a,match:oe.isText}),l=E.above(e,{match:d=>E.isBlock(e,d)});if(s&&l){var[c,f]=s,[,p]=l;P.isAncestor(p,f)&&(u=c)}}return ai(u,hG)},next(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=E.after(e,i,{voids:r});if(a){var[,u]=E.last(e,[]),s=[a.path,u];if(P.isPath(i)&&i.length===0)throw new Error("Cannot get the next node from the root node!");if(o==null)if(P.isPath(i)){var[l]=E.parent(e,i);o=f=>l.children.includes(f)}else o=()=>!0;var[c]=E.nodes(e,{at:s,match:o,mode:n,voids:r});return c}}},node(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=E.path(e,t,n);return[Z.get(e,r),r]},*nodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,mode:r="all",universal:o=!1,reverse:i=!1,voids:a=!1}=t,{match:u}=t;if(u||(u=()=>!0),n){var s,l;if(gG.isSpan(n))s=n[0],l=n[1];else{var c=E.path(e,n,{edge:"start"}),f=E.path(e,n,{edge:"end"});s=i?f:c,l=i?c:f}var p,d=Z.nodes(e,{reverse:i,from:s,to:l,pass:b=>{var[w]=b;return!a&&E.isVoid(e,w)}}),m=[];for(var[g,v]of d){var y=p&&P.compare(v,p[1])===0;if(r!=="highest"||!y){if(u(g,v))if(r==="lowest"&&y)p=[g,v];else{var h=r==="lowest"?p:[g,v];h&&(o?m.push(h):yield h),p=[g,v]}else if(o&&!y&&oe.isText(g))return}}r==="lowest"&&p&&(o?m.push(p):yield p),o&&(yield*m)}},normalize(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:n=!1}=t,r=i=>Ug.get(i)||[];if(E.isNormalizing(e)){if(n){var o=Array.from(Z.nodes(e),i=>{var[,a]=i;return a});Ug.set(e,o)}r(e).length!==0&&E.withoutNormalizing(e,()=>{for(var i of r(e))if(Z.has(e,i)){var a=E.node(e,i),[u,s]=a;ce.isElement(u)&&u.children.length===0&&e.normalizeNode(a)}for(var l=42*r(e).length,c=0;r(e).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(e).pop();if(Z.has(e,f)){var p=E.node(e,f);e.normalizeNode(p)}c++}})}},parent(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=E.path(e,t,n),o=P.parent(r);return E.node(e,o)},path(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:r,edge:o}=n;if(P.isPath(t)){if(o==="start"){var[,i]=Z.first(e,t);t=i}else if(o==="end"){var[,a]=Z.last(e,t);t=a}}return R.isRange(t)&&(t=o==="start"?R.start(t):o==="end"?R.end(t):P.common(t.anchor.path,t.focus.path)),ke.isPoint(t)&&(t=t.path),r!=null&&(t=t.slice(0,r)),t},hasPath:(e,t)=>Z.has(e,t),pathRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:i}=o;return E.pathRefs(e).delete(o),o.current=null,i}};return E.pathRefs(e).add(o),o},pathRefs(e){var t=eA.get(e);return t||(t=new Set,eA.set(e,t)),t},point(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:r="start"}=n;if(P.isPath(t)){var o;if(r==="end"){var[,i]=Z.last(e,t);o=i}else{var[,a]=Z.first(e,t);o=a}var u=Z.get(e,o);if(!oe.isText(u))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(t,"] because it has no ").concat(r," text node."));return{path:o,offset:r==="end"?u.text.length:0}}if(R.isRange(t)){var[s,l]=R.edges(t);return r==="start"?s:l}return t},pointRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:i}=o;return E.pointRefs(e).delete(o),o.current=null,i}};return E.pointRefs(e).add(o),o},pointRefs(e){var t=tA.get(e);return t||(t=new Set,tA.set(e,t)),t},*positions(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,unit:r="offset",reverse:o=!1,voids:i=!1}=t;if(n){var a=E.range(e,n),[u,s]=R.edges(a),l=o?s:u,c=!1,f="",p=0,d=0,m=0;for(var[g,v]of E.nodes(e,{at:n,reverse:o,voids:i})){if(ce.isElement(g)){if(!i&&e.isVoid(g)){yield E.start(e,v);continue}if(e.isInline(g))continue;if(E.hasInlines(e,g)){var y=P.isAncestor(v,s.path)?s:E.end(e,v),h=P.isAncestor(v,u.path)?u:E.start(e,v);f=E.string(e,{anchor:h,focus:y},{voids:i}),c=!0}}if(oe.isText(g)){var b=P.equals(v,l.path);for(b?(d=o?l.offset:g.text.length-l.offset,m=l.offset):(d=g.text.length,m=o?d:0),(b||c||r==="offset")&&(yield{path:v,offset:m},c=!1);;){if(p===0){if(f==="")break;p=w(f,r,o),f=G4(f,p,o)[1]}if(m=o?m-p:m+p,(d-=p)<0){p=-d;break}p=0,yield{path:v,offset:m}}}}}function w(D,S,C){return S==="character"?W4(D,C):S==="word"?function(O){for(var F=arguments.length>1&&arguments[1]!==void 0&&arguments[1],L=0,H=!1;O.length>0;){var M=W4(O,F),[K,V]=G4(O,M,F);if(qW(K,V,F))H=!0,L+=M;else{if(H)break;L+=M}O=V}return L}(D,C):S==="line"||S==="block"?D.length:1}},previous(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=E.before(e,i,{voids:r});if(a){var[,u]=E.first(e,[]),s=[a.path,u];if(P.isPath(i)&&i.length===0)throw new Error("Cannot get the previous node from the root node!");if(o==null)if(P.isPath(i)){var[l]=E.parent(e,i);o=f=>l.children.includes(f)}else o=()=>!0;var[c]=E.nodes(e,{reverse:!0,at:s,match:o,mode:n,voids:r});return c}}},range:(e,t,n)=>R.isRange(t)&&!n?t:{anchor:E.start(e,t),focus:E.end(e,n||t)},rangeRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:i}=o;return E.rangeRefs(e).delete(o),o.current=null,i}};return E.rangeRefs(e).add(o),o},rangeRefs(e){var t=nA.get(e);return t||(t=new Set,nA.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){Qx.set(e,t)},start:(e,t)=>E.point(e,t,{edge:"start"}),string(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,o=E.range(e,t),[i,a]=R.edges(o),u="";for(var[s,l]of E.nodes(e,{at:o,match:oe.isText,voids:r})){var c=s.text;P.equals(l,a.path)&&(c=c.slice(0,a.offset)),P.equals(l,i.path)&&(c=c.slice(i.offset)),u+=c}return u},unhangRange(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,[o,i]=R.edges(t);if(o.offset!==0||i.offset!==0||R.isCollapsed(t))return t;var a=E.above(e,{at:i,match:p=>E.isBlock(e,p)}),u=a?a[1]:[],s={anchor:E.start(e,[]),focus:i},l=!0;for(var[c,f]of E.nodes(e,{at:s,match:oe.isText,reverse:!0,voids:r}))if(l)l=!1;else if(c.text!==""||P.isBefore(f,u)){i={path:f,offset:c.text.length};break}return{anchor:o,focus:i}},void(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return E.above(e,xs(xs({},t),{},{match:n=>E.isVoid(e,n)}))},withoutNormalizing(e,t){var n=E.isNormalizing(e);E.setNormalizing(e,!1);try{t()}finally{E.setNormalizing(e,n)}E.normalize(e)}},gG={isSpan:e=>Array.isArray(e)&&e.length===2&&e.every(P.isPath)},vG=["children"],mG=["text"],uA=new WeakMap,Z={ancestor(e,t){var n=Z.get(e,t);if(oe.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(n));return n},*ancestors(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of P.ancestors(t,n)){var o=[Z.ancestor(e,r),r];yield o}},child(e,t){if(oe.isText(e))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(e)));var n=e.children[t];if(n==null)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(JSON.stringify(e)));return n},*children(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{reverse:r=!1}=n,o=Z.ancestor(e,t),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var u=Z.child(o,a),s=t.concat(a);yield[u,s],a=r?a-1:a+1}},common(e,t,n){var r=P.common(t,n);return[Z.get(e,r),r]},descendant(e,t){var n=Z.get(e,t);if(E.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(n));return n},*descendants(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of Z.nodes(e,t))r.length!==0&&(yield[n,r])},*elements(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of Z.nodes(e,t))ce.isElement(n)&&(yield[n,r])},extractProps:e=>ce.isAncestor(e)?ai(e,vG):ai(e,mG),first(e,t){for(var n=t.slice(),r=Z.get(e,n);r&&!oe.isText(r)&&r.children.length!==0;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(oe.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));var n=L1({children:e.children},r=>{var[o,i]=R.edges(t),a=Z.nodes(r,{reverse:!0,pass:p=>{var[,d]=p;return!R.includes(t,d)}});for(var[,u]of a){if(!R.includes(t,u)){var s=Z.parent(r,u),l=u[u.length-1];s.children.splice(l,1)}if(P.equals(u,i.path)){var c=Z.leaf(r,u);c.text=c.text.slice(0,i.offset)}if(P.equals(u,o.path)){var f=Z.leaf(r,u);f.text=f.text.slice(o.offset)}}E.isEditor(r)&&(r.selection=null)});return n.children},get(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(oe.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(JSON.stringify(e)));n=n.children[o]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(oe.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:e=>oe.isText(e)||ce.isElement(e)||E.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=uA.get(e);if(t!==void 0)return t;var n=e.every(r=>Z.isNode(r));return uA.set(e,n),n},last(e,t){for(var n=t.slice(),r=Z.get(e,n);r&&!oe.isText(r)&&r.children.length!==0;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(e,t){var n=Z.get(e,t);if(!oe.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(n));return n},*levels(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of P.levels(t,n)){var o=Z.get(e,r);yield[o,r]}},matches:(e,t)=>ce.isElement(e)&&ce.isElementProps(t)&&ce.matches(e,t)||oe.isText(e)&&oe.isTextProps(t)&&oe.matches(e,t),*nodes(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:o=[],to:i}=t,a=new Set,u=[],s=e;!i||!(r?P.isBefore(u,i):P.isAfter(u,i));)if(a.has(s)||(yield[s,u]),a.has(s)||oe.isText(s)||s.children.length===0||n!=null&&n([s,u])!==!1){if(u.length===0)break;if(!r){var l=P.next(u);if(Z.has(e,l)){u=l,s=Z.get(e,u);continue}}r&&u[u.length-1]!==0?(u=P.previous(u),s=Z.get(e,u)):(u=P.parent(u),s=Z.get(e,u),a.add(s))}else{a.add(s);var c=r?s.children.length-1:0;P.isAncestor(u,o)&&(c=o[u.length]),u=u.concat(c),s=Z.get(e,u)}},parent(e,t){var n=P.parent(t),r=Z.get(e,n);if(oe.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string:e=>oe.isText(e)?e.text:e.children.map(Z.string).join(""),*texts(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of Z.nodes(e,t))oe.isText(n)&&(yield[n,r])}};function sA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function zt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sA(Object(n),!0).forEach(function(r){Po(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Xi={isNodeOperation:e=>Xi.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!xn(e))return!1;switch(e.type){case"insert_node":case"remove_node":return P.isPath(e.path)&&Z.isNode(e.node);case"insert_text":case"remove_text":return typeof e.offset=="number"&&typeof e.text=="string"&&P.isPath(e.path);case"merge_node":return typeof e.position=="number"&&P.isPath(e.path)&&xn(e.properties);case"move_node":return P.isPath(e.path)&&P.isPath(e.newPath);case"set_node":return P.isPath(e.path)&&xn(e.properties)&&xn(e.newProperties);case"set_selection":return e.properties===null&&R.isRange(e.newProperties)||e.newProperties===null&&R.isRange(e.properties)||xn(e.properties)&&xn(e.newProperties);case"split_node":return P.isPath(e.path)&&typeof e.position=="number"&&xn(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every(t=>Xi.isOperation(t)),isSelectionOperation:e=>Xi.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>Xi.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return zt(zt({},e),{},{type:"remove_node"});case"insert_text":return zt(zt({},e),{},{type:"remove_text"});case"merge_node":return zt(zt({},e),{},{type:"split_node",path:P.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(P.equals(t,n))return e;if(P.isSibling(n,t))return zt(zt({},e),{},{path:t,newPath:n});var r=P.transform(n,e),o=P.transform(P.next(n),e);return zt(zt({},e),{},{path:r,newPath:o});case"remove_node":return zt(zt({},e),{},{type:"insert_node"});case"remove_text":return zt(zt({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=e;return zt(zt({},e),{},{properties:a,newProperties:i});case"set_selection":var{properties:u,newProperties:s}=e;return zt(zt({},e),{},u==null?{properties:s,newProperties:null}:s==null?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return zt(zt({},e),{},{type:"merge_node",path:P.next(e.path)})}}},P={ancestors(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=P.levels(e,t);return r=n?r.slice(1):r.slice(0,-1)},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var o=e[r];if(o!==t[r])break;n.push(o)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return P.equals(r,o)&&i>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return P.equals(r,o)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return P.equals(r,o)&&i<a},equals:(e,t)=>e.length===t.length&&e.every((n,r)=>n===t[r]),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>P.compare(e,t)===1,isAncestor:(e,t)=>e.length<t.length&&P.compare(e,t)===0,isBefore:(e,t)=>P.compare(e,t)===-1,isChild:(e,t)=>e.length===t.length+1&&P.compare(e,t)===0,isCommon:(e,t)=>e.length<=t.length&&P.compare(e,t)===0,isDescendant:(e,t)=>e.length>t.length&&P.compare(e,t)===0,isParent:(e,t)=>e.length+1===t.length&&P.compare(e,t)===0,isPath:e=>Array.isArray(e)&&(e.length===0||typeof e[0]=="number"),isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&P.equals(n,r)},levels(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=[],o=0;o<=e.length;o++)r.push(e.slice(0,o));return n&&r.reverse(),r},next(e){if(e.length===0)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},parent(e){if(e.length===0)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(e.length===0)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!P.isAncestor(t,e)&&!P.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return L1(e,r=>{var{affinity:o="forward"}=n;if(e&&(e==null?void 0:e.length)!==0){if(r===null)return null;switch(t.type){case"insert_node":var{path:i}=t;(P.equals(i,r)||P.endsBefore(i,r)||P.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=t;if(P.equals(a,r)||P.isAncestor(a,r))return null;P.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:u,position:s}=t;P.equals(u,r)||P.endsBefore(u,r)?r[u.length-1]-=1:P.isAncestor(u,r)&&(r[u.length-1]-=1,r[u.length]+=s);break;case"split_node":var{path:l,position:c}=t;if(P.equals(l,r)){if(o==="forward")r[r.length-1]+=1;else if(o!=="backward")return null}else P.endsBefore(l,r)?r[l.length-1]+=1:P.isAncestor(l,r)&&e[l.length]>=c&&(r[l.length-1]+=1,r[l.length]-=c);break;case"move_node":var{path:f,newPath:p}=t;if(P.equals(f,p))return;if(P.isAncestor(f,r)||P.equals(f,r)){var d=p.slice();return P.endsBefore(f,p)&&f.length<p.length&&(d[f.length-1]-=1),d.concat(r.slice(f.length))}P.isSibling(f,p)&&(P.isAncestor(p,r)||P.equals(p,r))?P.endsBefore(f,r)?r[f.length-1]-=1:r[f.length-1]+=1:P.endsBefore(p,r)||P.equals(p,r)||P.isAncestor(p,r)?(P.endsBefore(f,r)&&(r[f.length-1]-=1),r[p.length-1]+=1):P.endsBefore(f,r)&&(P.equals(p,r)&&(r[p.length-1]+=1),r[f.length-1]-=1)}}})}},yG={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var o=P.transform(n,t,{affinity:r});e.current=o,o==null&&e.unref()}}};function lA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function cA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lA(Object(n),!0).forEach(function(r){Po(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var ke={compare(e,t){var n=P.compare(e.path,t.path);return n===0?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>ke.compare(e,t)===1,isBefore:(e,t)=>ke.compare(e,t)===-1,equals:(e,t)=>e.offset===t.offset&&P.equals(e.path,t.path),isPoint:e=>xn(e)&&typeof e.offset=="number"&&P.isPath(e.path),transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return L1(e,r=>{if(r===null)return null;var{affinity:o="forward"}=n,{path:i,offset:a}=r;switch(t.type){case"insert_node":case"move_node":r.path=P.transform(i,t,n);break;case"insert_text":P.equals(t.path,i)&&t.offset<=a&&(r.offset+=t.text.length);break;case"merge_node":P.equals(t.path,i)&&(r.offset+=t.position),r.path=P.transform(i,t,n);break;case"remove_text":P.equals(t.path,i)&&t.offset<=a&&(r.offset-=Math.min(a-t.offset,t.text.length));break;case"remove_node":if(P.equals(t.path,i)||P.isAncestor(t.path,i))return null;r.path=P.transform(i,t,n);break;case"split_node":if(P.equals(t.path,i)){if(t.position===a&&o==null)return null;(t.position<a||t.position===a&&o==="forward")&&(r.offset-=t.position,r.path=P.transform(i,t,cA(cA({},n),{},{affinity:"forward"})))}else r.path=P.transform(i,t,n)}})}},bG={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var o=ke.transform(n,t,{affinity:r});e.current=o,o==null&&e.unref()}}},wG=["anchor","focus"];function fA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}var R={edges(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return R.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=R.edges(e);return t},equals:(e,t)=>ke.equals(e.anchor,t.anchor)&&ke.equals(e.focus,t.focus),includes(e,t){if(R.isRange(t)){if(R.includes(e,t.anchor)||R.includes(e,t.focus))return!0;var[n,r]=R.edges(e),[o,i]=R.edges(t);return ke.isBefore(n,o)&&ke.isAfter(r,i)}var[a,u]=R.edges(e),s=!1,l=!1;return ke.isPoint(t)?(s=ke.compare(t,a)>=0,l=ke.compare(t,u)<=0):(s=P.compare(t,a.path)>=0,l=P.compare(t,u.path)<=0),s&&l},intersection(e,t){var n=ai(e,wG),[r,o]=R.edges(e),[i,a]=R.edges(t),u=ke.isBefore(r,i)?i:r,s=ke.isBefore(o,a)?o:a;return ke.isBefore(s,u)?null:function(l){for(var c=1;c<arguments.length;c++){var f=arguments[c]!=null?arguments[c]:{};c%2?fA(Object(f),!0).forEach(function(p){Po(l,p,f[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(f)):fA(Object(f)).forEach(function(p){Object.defineProperty(l,p,Object.getOwnPropertyDescriptor(f,p))})}return l}({anchor:u,focus:s},n)},isBackward(e){var{anchor:t,focus:n}=e;return ke.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return ke.equals(t,n)},isExpanded:e=>!R.isCollapsed(e),isForward:e=>!R.isBackward(e),isRange:e=>xn(e)&&ke.isPoint(e.anchor)&&ke.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=R.edges(e);return t},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return L1(e,r=>{if(r===null)return null;var o,i,{affinity:a="inward"}=n;if(a==="inward"){var u=R.isCollapsed(r);R.isForward(r)?(o="forward",i=u?o:"backward"):(o="backward",i=u?o:"forward")}else a==="outward"?R.isForward(r)?(o="backward",i="forward"):(o="forward",i="backward"):(o=a,i=a);var s=ke.transform(r.anchor,t,{affinity:o}),l=ke.transform(r.focus,t,{affinity:i});if(!s||!l)return null;r.anchor=s,r.focus=l})}},EG={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var o=R.transform(n,t,{affinity:r});e.current=o,o==null&&e.unref()}}},rP=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if(xn(r)&&xn(o)){if(!rP(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 t)if(e[a]===void 0&&t[a]!==void 0)return!1;return!0},DG=["text"],CG=["anchor","focus"];function dA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ho(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dA(Object(n),!0).forEach(function(r){Po(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var oe={equals(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:r=!1}=n;function o(i){return ai(i,DG)}return rP(r?o(e):e,r?o(t):t)},isText:e=>xn(e)&&typeof e.text=="string",isTextList:e=>Array.isArray(e)&&e.every(t=>oe.isText(t)),isTextProps:e=>e.text!==void 0,matches(e,t){for(var n in t)if(n!=="text"&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[Ho({},e)];for(var r of t){var o=ai(r,CG),[i,a]=R.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,m=void 0;if(a.offset<s){var g=a.offset-f;m=Ho(Ho({},p),{},{text:p.text.slice(g)}),p=Ho(Ho({},p),{},{text:p.text.slice(0,g)})}if(i.offset>f){var v=i.offset-f;d=Ho(Ho({},p),{},{text:p.text.slice(0,v)}),p=Ho(Ho({},p),{},{text:p.text.slice(v)})}Object.assign(p,o),d&&u.push(d),u.push(p),m&&u.push(m)}}n=u}return n}};function pA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Nc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pA(Object(n),!0).forEach(function(r){Po(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var SG={transform(e,t){e.children=Jx(e.children);var n=e.selection&&Jx(e.selection);try{n=((r,o,i)=>{switch(i.type){case"insert_node":var{path:a,node:u}=i,s=Z.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 R.points(o))o[f]=ke.transform(c,i);break;case"insert_text":var{path:p,offset:d,text:m}=i;if(m.length===0)break;var g=Z.leaf(r,p),v=g.text.slice(0,d),y=g.text.slice(d);if(g.text=v+m+y,o)for(var[h,b]of R.points(o))o[b]=ke.transform(h,i);break;case"merge_node":var{path:w}=i,D=Z.get(r,w),S=P.previous(w),C=Z.get(r,S),O=Z.parent(r,w),F=w[w.length-1];if(oe.isText(D)&&oe.isText(C))C.text+=D.text;else{if(oe.isText(D)||oe.isText(C))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(w,"] to nodes of different interfaces: ").concat(D," ").concat(C));C.children.push(...D.children)}if(O.children.splice(F,1),o)for(var[L,H]of R.points(o))o[H]=ke.transform(L,i);break;case"move_node":var{path:M,newPath:K}=i;if(P.isAncestor(M,K))throw new Error("Cannot move a path [".concat(M,"] to new path [").concat(K,"] because the destination is inside itself."));var V=Z.get(r,M),G=Z.parent(r,M),q=M[M.length-1];G.children.splice(q,1);var re=P.transform(M,i),le=Z.get(r,P.parent(re)),se=re[re.length-1];if(le.children.splice(se,0,V),o)for(var[ae,B]of R.points(o))o[B]=ke.transform(ae,i);break;case"remove_node":var{path:x}=i,j=x[x.length-1];if(Z.parent(r,x).children.splice(j,1),o)for(var[$,Y]of R.points(o)){var U=ke.transform($,i);if(o!=null&&U!=null)o[Y]=U;else{var ie=void 0,ge=void 0;for(var[ve,De]of Z.texts(r)){if(P.compare(De,x)!==-1){ge=[ve,De];break}ie=[ve,De]}var W=!1;ie&&ge&&(W=P.equals(ge[1],x)?!P.hasPrevious(ge[1]):P.common(ie[1],x).length<P.common(ge[1],x).length),ie&&!W?($.path=ie[1],$.offset=ie[0].text.length):ge?($.path=ge[1],$.offset=0):o=null}}break;case"remove_text":var{path:Ne,offset:Ae,text:de}=i;if(de.length===0)break;var Oe=Z.leaf(r,Ne),kt=Oe.text.slice(0,Ae),$e=Oe.text.slice(Ae+de.length);if(Oe.text=kt+$e,o)for(var[et,mt]of R.points(o))o[mt]=ke.transform(et,i);break;case"set_node":var{path:yn,properties:ze,newProperties:Nn}=i;if(yn.length===0)throw new Error("Cannot set properties on the root node!");var Nr=Z.get(r,yn);for(var oo in Nn){if(oo==="children"||oo==="text")throw new Error('Cannot set the "'.concat(oo,'" property of nodes!'));var ys=Nn[oo];ys==null?delete Nr[oo]:Nr[oo]=ys}for(var Ha in ze)Nn.hasOwnProperty(Ha)||delete Nr[Ha];break;case"set_selection":var{newProperties:Rr}=i;if(Rr==null)o=Rr;else{if(o==null){if(!R.isRange(Rr))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(Rr)," when there is no current selection."));o=Nc({},Rr)}for(var io in Rr){var No=Rr[io];if(No==null){if(io==="anchor"||io==="focus")throw new Error('Cannot remove the "'.concat(io,'" selection property'));delete o[io]}else o[io]=No}}break;case"split_node":var{path:bn,position:wn,properties:En}=i;if(bn.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(bn,"] because the root node cannot be split."));var Fn,rn=Z.get(r,bn),hr=Z.parent(r,bn),Sc=bn[bn.length-1];if(oe.isText(rn)){var di=rn.text.slice(0,wn),Ro=rn.text.slice(wn);rn.text=di,Fn=Nc(Nc({},En),{},{text:Ro})}else{var bs=rn.children.slice(0,wn),Ua=rn.children.slice(wn);rn.children=bs,Fn=Nc(Nc({},En),{},{children:Ua})}if(hr.children.splice(Sc+1,0,Fn),o)for(var[ws,Lr]of R.points(o))o[Lr]=ke.transform(ws,i)}return o})(e,n,t)}finally{e.children=Zx(e.children),e.selection=n?Gu(n)?Zx(n):n:null}}},xG=["text"],AG=["children"];function hA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function gA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hA(Object(n),!0).forEach(function(r){Po(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var OG={insertNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(e,()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:u,select:s}=n;if(Z.isNode(t)&&(t=[t]),t.length!==0){var[l]=t;if(a||(a=e.selection?e.selection:e.children.length>0?E.end(e,[]):[0],s=!0),s==null&&(s=!1),R.isRange(a))if(r||(a=E.unhangRange(e,a)),R.isCollapsed(a))a=a.anchor;else{var[,c]=R.edges(a),f=E.pointRef(e,c);I.delete(e,{at:a}),a=f.unref()}if(ke.isPoint(a)){u==null&&(u=oe.isText(l)?S=>oe.isText(S):e.isInline(l)?S=>oe.isText(S)||E.isInline(e,S):S=>E.isBlock(e,S));var[p]=E.nodes(e,{at:a.path,match:u,mode:i,voids:o});if(!p)return;var[,d]=p,m=E.pathRef(e,d),g=E.isEnd(e,a,d);I.splitNodes(e,{at:a,match:u,mode:i,voids:o});var v=m.unref();a=g?P.next(v):v}var y=P.parent(a),h=a[a.length-1];if(o||!E.void(e,{at:y})){for(var b of t){var w=y.concat(h);h++,e.apply({type:"insert_node",path:w,node:b}),a=P.next(a)}if(a=P.previous(a),s){var D=E.end(e,a);D&&I.select(e,D)}}}})},liftNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(e,()=>{var{at:n=e.selection,mode:r="lowest",voids:o=!1}=t,{match:i}=t;if(i==null&&(i=P.isPath(n)?As(e,n):b=>E.isBlock(e,b)),n){var a=E.nodes(e,{at:n,match:i,mode:r,voids:o}),u=Array.from(a,b=>{var[,w]=b;return E.pathRef(e,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(e,P.parent(l)),[f,p]=c,d=l[l.length-1],{length:m}=f.children;if(m===1){var g=P.next(p);I.moveNodes(e,{at:l,to:g,voids:o}),I.removeNodes(e,{at:p,voids:o})}else if(d===0)I.moveNodes(e,{at:l,to:p,voids:o});else if(d===m-1){var v=P.next(p);I.moveNodes(e,{at:l,to:v,voids:o})}else{var y=P.next(l),h=P.next(p);I.splitNodes(e,{at:y,voids:o}),I.moveNodes(e,{at:l,to:h,voids:o})}}}})},mergeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(e,()=>{var{match:n,at:r=e.selection}=t,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=t;if(r){if(n==null)if(P.isPath(r)){var[u]=E.parent(e,r);n=F=>u.children.includes(F)}else n=F=>E.isBlock(e,F);if(!o&&R.isRange(r)&&(r=E.unhangRange(e,r)),R.isRange(r))if(R.isCollapsed(r))r=r.anchor;else{var[,s]=R.edges(r),l=E.pointRef(e,s);I.delete(e,{at:r}),r=l.unref(),t.at==null&&I.select(e,r)}var[c]=E.nodes(e,{at:r,match:n,voids:i,mode:a}),f=E.previous(e,{at:r,match:n,voids:i,mode:a});if(c&&f){var[p,d]=c,[m,g]=f;if(d.length!==0&&g.length!==0){var v,y,h=P.next(g),b=P.common(d,g),w=P.isSibling(d,g),D=Array.from(E.levels(e,{at:d}),F=>{var[L]=F;return L}).slice(b.length).slice(0,-1),S=E.above(e,{at:d,mode:"highest",match:F=>D.includes(F)&&oP(e,F)}),C=S&&E.pathRef(e,S[1]);if(oe.isText(p)&&oe.isText(m)){var O=ai(p,xG);y=m.text.length,v=O}else{if(!ce.isElement(p)||!ce.isElement(m))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(m)));O=ai(p,AG),y=m.children.length,v=O}w||I.moveNodes(e,{at:d,to:h,voids:i}),C&&I.removeNodes(e,{at:C.current,voids:i}),ce.isElement(m)&&E.isEmpty(e,m)||oe.isText(m)&&m.text===""&&g[g.length-1]!==0?I.removeNodes(e,{at:g,voids:i}):e.apply({type:"merge_node",path:h,position:y,properties:v}),C&&C.unref()}}}})},moveNodes(e,t){E.withoutNormalizing(e,()=>{var{to:n,at:r=e.selection,mode:o="lowest",voids:i=!1}=t,{match:a}=t;if(r){a==null&&(a=P.isPath(r)?As(e,r):d=>E.isBlock(e,d));var u=E.pathRef(e,n),s=E.nodes(e,{at:r,match:a,mode:o,voids:i}),l=Array.from(s,d=>{var[,m]=d;return E.pathRef(e,m)});for(var c of l){var f=c.unref(),p=u.current;f.length!==0&&e.apply({type:"move_node",path:f,newPath:p}),u.current&&P.isSibling(p,f)&&P.isAfter(p,f)&&(u.current=P.next(u.current))}u.unref()}})},removeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(e,()=>{var{hanging:n=!1,voids:r=!1,mode:o="lowest"}=t,{at:i=e.selection,match:a}=t;if(i){a==null&&(a=P.isPath(i)?As(e,i):p=>E.isBlock(e,p)),!n&&R.isRange(i)&&(i=E.unhangRange(e,i));var u=E.nodes(e,{at:i,match:a,mode:o,voids:r}),s=Array.from(u,p=>{var[,d]=p;return E.pathRef(e,d)});for(var l of s){var c=l.unref();if(c){var[f]=E.node(e,c);e.apply({type:"remove_node",path:c,node:f})}}}})},setNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(e,()=>{var{match:r,at:o=e.selection}=n,{hanging:i=!1,mode:a="lowest",split:u=!1,voids:s=!1}=n;if(o){if(r==null&&(r=P.isPath(o)?As(e,o):D=>E.isBlock(e,D)),!i&&R.isRange(o)&&(o=E.unhangRange(e,o)),u&&R.isRange(o)){if(R.isCollapsed(o)&&E.leaf(e,o.anchor)[0].text.length>0)return;var l=E.rangeRef(e,o,{affinity:"inward"}),[c,f]=R.edges(o),p=a==="lowest"?"lowest":"highest",d=E.isEnd(e,f,f.path);I.splitNodes(e,{at:f,match:r,mode:p,voids:s,always:!d});var m=E.isStart(e,c,c.path);I.splitNodes(e,{at:c,match:r,mode:p,voids:s,always:!m}),o=l.unref(),n.at==null&&I.select(e,o)}for(var[g,v]of E.nodes(e,{at:o,match:r,mode:a,voids:s})){var y={},h={};if(v.length!==0){var b=!1;for(var w in t)w!=="children"&&w!=="text"&&t[w]!==g[w]&&(b=!0,g.hasOwnProperty(w)&&(y[w]=g[w]),t[w]!=null&&(h[w]=t[w]));b&&e.apply({type:"set_node",path:v,properties:y,newProperties:h})}}}})},splitNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(e,()=>{var{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection,height:a=0,always:u=!1}=t;if(o==null&&(o=V=>E.isBlock(e,V)),R.isRange(i)&&(i=BG(e,i)),P.isPath(i)){var s=i,l=E.point(e,s),[c]=E.parent(e,s);o=V=>V===c,a=l.path.length-s.length+1,i=l,u=!0}if(i){var f=E.pointRef(e,i,{affinity:"backward"}),[p]=E.nodes(e,{at:i,match:o,mode:n,voids:r});if(p){var d=E.void(e,{at:i,mode:"highest"});if(!r&&d){var[m,g]=d;if(ce.isElement(m)&&e.isInline(m)){var v=E.after(e,g);if(!v){var y=P.next(g);I.insertNodes(e,{text:""},{at:y,voids:r}),v=E.point(e,y)}i=v,u=!0}a=i.path.length-g.length+1,u=!0}var h=E.pointRef(e,i),b=i.path.length-a,[,w]=p,D=i.path.slice(0,b),S=a===0?i.offset:i.path[b]+0;for(var[C,O]of E.levels(e,{at:D,reverse:!0,voids:r})){var F=!1;if(O.length<w.length||O.length===0||!r&&E.isVoid(e,C))break;var L=f.current,H=E.isEnd(e,L,O);if(u||!f||!E.isEdge(e,L,O)){F=!0;var M=Z.extractProps(C);e.apply({type:"split_node",path:O,position:S,properties:M})}S=O[O.length-1]+(F||H?1:0)}if(t.at==null){var K=h.current||E.end(e,[]);I.select(e,K)}f.unref(),h.unref()}}})},unsetNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var o of t)r[o]=null;I.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(e,()=>{var{mode:n="lowest",split:r=!1,voids:o=!1}=t,{at:i=e.selection,match:a}=t;if(i){a==null&&(a=P.isPath(i)?As(e,i):p=>E.isBlock(e,p)),P.isPath(i)&&(i=E.range(e,i));var u=R.isRange(i)?E.rangeRef(e,i):null,s=E.nodes(e,{at:i,match:a,mode:n,voids:o}),l=Array.from(s,p=>{var[,d]=p;return E.pathRef(e,d)}).reverse(),c=function(p){var d=p.unref(),[m]=E.node(e,d),g=E.range(e,d);r&&u&&(g=R.intersection(u.current,g)),I.liftNodes(e,{at:g,match:v=>ce.isAncestor(m)&&m.children.includes(v),voids:o})};for(var f of l)c(f);u&&u.unref()}})},wrapNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(e,()=>{var{mode:r="lowest",split:o=!1,voids:i=!1}=n,{match:a,at:u=e.selection}=n;if(u){if(a==null&&(a=P.isPath(u)?As(e,u):e.isInline(t)?v=>E.isInline(e,v)||oe.isText(v):v=>E.isBlock(e,v)),o&&R.isRange(u)){var[s,l]=R.edges(u),c=E.rangeRef(e,u,{affinity:"inward"});I.splitNodes(e,{at:l,match:a,voids:i}),I.splitNodes(e,{at:s,match:a,voids:i}),u=c.unref(),n.at==null&&I.select(e,u)}var f=Array.from(E.nodes(e,{at:u,match:e.isInline(t)?v=>E.isBlock(e,v):v=>E.isEditor(v),mode:"lowest",voids:i}));for(var[,p]of f){var d=R.isRange(u)?R.intersection(u,E.range(e,p)):u;if(d){var m=Array.from(E.nodes(e,{at:d,match:a,mode:r,voids:i}));if(m.length>0){var g=function(){var[v]=m,y=m[m.length-1],[,h]=v,[,b]=y;if(h.length===0&&b.length===0)return"continue";var w=P.equals(h,b)?P.parent(h):P.common(h,b),D=E.range(e,h,b),S=E.node(e,w),[C]=S,O=w.length+1,F=P.next(b.slice(0,O)),L=gA(gA({},t),{},{children:[]});I.insertNodes(e,L,{at:F,voids:i}),I.moveNodes(e,{at:D,match:H=>ce.isAncestor(C)&&C.children.includes(H),to:F.concat(0),voids:i})}();if(g==="continue")continue}}}}})}},oP=(e,t)=>{if(ce.isElement(t)){var n=t;return!!E.isVoid(e,t)||n.children.length===1&&oP(e,n.children[0])}return!E.isEditor(t)},BG=(e,t)=>{if(R.isCollapsed(t))return t.anchor;var[,n]=R.edges(t),r=E.pointRef(e,n);return I.delete(e,{at:t}),r.unref()},As=(e,t)=>{var[n]=E.node(e,t);return r=>r===n};function vA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function mA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vA(Object(n),!0).forEach(function(r){Po(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var kG={collapse(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:n="anchor"}=t,{selection:r}=e;if(r){if(n==="anchor")I.select(e,r.anchor);else if(n==="focus")I.select(e,r.focus);else if(n==="start"){var[o]=R.edges(r);I.select(e,o)}else if(n==="end"){var[,i]=R.edges(r);I.select(e,i)}}},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:n}=e,{distance:r=1,unit:o="character",reverse:i=!1}=t,{edge:a=null}=t;if(n){a==="start"&&(a=R.isBackward(n)?"focus":"anchor"),a==="end"&&(a=R.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(e,u,l):E.after(e,u,l);f&&(c.anchor=f)}if(a==null||a==="focus"){var p=i?E.before(e,s,l):E.after(e,s,l);p&&(c.focus=p)}I.setSelection(e,c)}},select(e,t){var{selection:n}=e;if(t=E.range(e,t),n)I.setSelection(e,t);else{if(!R.isRange(t))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(t)));e.apply({type:"set_selection",properties:n,newProperties:t})}},setPoint(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:r}=e,{edge:o="both"}=n;if(r){o==="start"&&(o=R.isBackward(r)?"focus":"anchor"),o==="end"&&(o=R.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,u=o==="anchor"?i:a;I.setSelection(e,{[o==="anchor"?"anchor":"focus"]:mA(mA({},u),t)})}},setSelection(e,t){var{selection:n}=e,r={},o={};if(n){for(var i in t)(i==="anchor"&&t.anchor!=null&&!ke.equals(t.anchor,n.anchor)||i==="focus"&&t.focus!=null&&!ke.equals(t.focus,n.focus)||i!=="anchor"&&i!=="focus"&&t[i]!==n[i])&&(r[i]=n[i],o[i]=t[i]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:o})}}},FG={delete(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(e,()=>{var{reverse:n=!1,unit:r="character",distance:o=1,voids:i=!1}=t,{at:a=e.selection,hanging:u=!1}=t;if(a){if(R.isRange(a)&&R.isCollapsed(a)&&(a=a.anchor),ke.isPoint(a)){var s=E.void(e,{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(e,a,c)||E.start(e,[]):E.after(e,a,c)||E.end(e,[])},u=!0}}if(P.isPath(a))I.removeNodes(e,{at:a,voids:i});else if(!R.isCollapsed(a)){if(!u){var[,f]=R.edges(a),p=E.end(e,[]);ke.equals(f,p)||(a=E.unhangRange(e,a,{voids:i}))}var[d,m]=R.edges(a),g=E.above(e,{match:ge=>E.isBlock(e,ge),at:d,voids:i}),v=E.above(e,{match:ge=>E.isBlock(e,ge),at:m,voids:i}),y=g&&v&&!P.equals(g[1],v[1]),h=P.equals(d.path,m.path),b=i?null:E.void(e,{at:d,mode:"highest"}),w=i?null:E.void(e,{at:m,mode:"highest"});if(b){var D=E.before(e,d);D&&g&&P.isAncestor(g[1],D.path)&&(d=D)}if(w){var S=E.after(e,m);S&&v&&P.isAncestor(v[1],S.path)&&(m=S)}var C,O=[];for(var F of E.nodes(e,{at:a,voids:i})){var[L,H]=F;C&&P.compare(H,C)===0||(!i&&E.isVoid(e,L)||!P.isCommon(H,d.path)&&!P.isCommon(H,m.path))&&(O.push(F),C=H)}var M=Array.from(O,ge=>{var[,ve]=ge;return E.pathRef(e,ve)}),K=E.pointRef(e,d),V=E.pointRef(e,m);if(!h&&!b){var G=K.current,[q]=E.leaf(e,G),{path:re}=G,{offset:le}=d,se=q.text.slice(le);se.length>0&&e.apply({type:"remove_text",path:re,offset:le,text:se})}for(var ae of M){var B=ae.unref();I.removeNodes(e,{at:B,voids:i})}if(!w){var x=V.current,[j]=E.leaf(e,x),{path:$}=x,Y=h?d.offset:0,U=j.text.slice(Y,m.offset);U.length>0&&e.apply({type:"remove_text",path:$,offset:Y,text:U})}!h&&y&&V.current&&K.current&&I.mergeNodes(e,{at:V.current,hanging:!0,voids:i});var ie=n?K.unref()||V.unref():V.unref()||K.unref();t.at==null&&ie&&I.select(e,ie)}}})},insertFragment(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(e,()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=e.selection}=n;if(t.length&&i){if(R.isRange(i))if(r||(i=E.unhangRange(e,i)),R.isCollapsed(i))i=i.anchor;else{var[,a]=R.edges(i);if(!o&&E.void(e,{at:a}))return;var u=E.pointRef(e,a);I.delete(e,{at:i}),i=u.unref()}else P.isPath(i)&&(i=E.start(e,i));if(o||!E.void(e,{at:i})){var s=E.above(e,{at:i,match:x=>E.isInline(e,x),mode:"highest",voids:o});if(s){var[,l]=s;E.isEnd(e,i,l)?i=E.after(e,l):E.isStart(e,i,l)&&(i=E.before(e,l))}var c=E.above(e,{match:x=>E.isBlock(e,x),at:i,voids:o}),[,f]=c,p=E.isStart(e,i,f),d=E.isEnd(e,i,f),m=p&&d,g=!p||p&&d,v=!d,[,y]=Z.first({children:t},[]),[,h]=Z.last({children:t},[]),b=[],w=x=>{var[j,$]=x;return $.length!==0&&(!!m||!(g&&P.isAncestor($,y)&&ce.isElement(j)&&!e.isVoid(j)&&!e.isInline(j))&&!(v&&P.isAncestor($,h)&&ce.isElement(j)&&!e.isVoid(j)&&!e.isInline(j)))};for(var D of Z.nodes({children:t},{pass:w}))w(D)&&b.push(D);var S=[],C=[],O=[],F=!0,L=!1;for(var[H]of b)ce.isElement(H)&&!e.isInline(H)?(F=!1,L=!0,C.push(H)):F?S.push(H):O.push(H);var[M]=E.nodes(e,{at:i,match:x=>oe.isText(x)||E.isInline(e,x),mode:"highest",voids:o}),[,K]=M,V=E.isStart(e,i,K),G=E.isEnd(e,i,K),q=E.pathRef(e,d?P.next(f):f),re=E.pathRef(e,G?P.next(K):K),le=E.pathRef(e,f);I.splitNodes(e,{at:i,match:x=>L?E.isBlock(e,x):oe.isText(x)||E.isInline(e,x),mode:L?"lowest":"highest",voids:o});var se=E.pathRef(e,!V||V&&G?P.next(K):K);if(I.insertNodes(e,S,{at:se.current,match:x=>oe.isText(x)||E.isInline(e,x),mode:"highest",voids:o}),m&&C.length&&I.delete(e,{at:le.unref(),voids:o}),I.insertNodes(e,C,{at:q.current,match:x=>E.isBlock(e,x),mode:"lowest",voids:o}),I.insertNodes(e,O,{at:re.current,match:x=>oe.isText(x)||E.isInline(e,x),mode:"highest",voids:o}),!n.at){var ae;ae=O.length>0?P.previous(re.current):C.length>0?P.previous(q.current):P.previous(se.current);var B=E.end(e,ae);I.select(e,B)}se.unref(),q.unref(),re.unref()}}})},insertText(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(e,()=>{var{voids:r=!1}=n,{at:o=e.selection}=n;if(o){if(P.isPath(o)&&(o=E.range(e,o)),R.isRange(o))if(R.isCollapsed(o))o=o.anchor;else{var i=R.end(o);if(!r&&E.void(e,{at:i}))return;var a=E.pointRef(e,i);I.delete(e,{at:o,voids:r}),o=a.unref(),I.setSelection(e,{anchor:o,focus:o})}if(r||!E.void(e,{at:o})){var{path:u,offset:s}=o;t.length>0&&e.apply({type:"insert_text",path:u,offset:s,text:t})}}})}};function yA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Lh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yA(Object(n),!0).forEach(function(r){Po(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var I=Lh(Lh(Lh(Lh({},SG),OG),kG),FG),q4="[object Map]",K4="[object Set]",TG=/^\[object .+?Constructor\]$/,_G=/^(?:0|[1-9]\d*)$/,jG="[\\ud800-\\udfff]",Y4="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",X4="\\ud83c[\\udffb-\\udfff]",iP="[^\\ud800-\\udfff]",aP="(?:\\ud83c[\\udde6-\\uddff]){2}",uP="[\\ud800-\\udbff][\\udc00-\\udfff]",bA="(?:"+Y4+"|"+X4+")?",PG="[\\ufe0e\\ufe0f]?"+bA+("(?:\\u200d(?:"+[iP,aP,uP].join("|")+")[\\ufe0e\\ufe0f]?"+bA+")*"),IG="(?:"+[iP+Y4+"?",Y4,aP,uP,jG].join("|")+")",NG=RegExp(X4+"(?="+X4+")|"+IG+PG,"g"),RG=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),LG=typeof st=="object"&&st&&st.Object===Object&&st,MG=typeof self=="object"&&self&&self.Object===Object&&self,ss=LG||MG||Function("return this")();function zG(e,t){return function(n,r){for(var o=-1,i=n?n.length:0,a=Array(i);++o<i;)a[o]=r(n[o],o,n);return a}(t,function(n){return e[n]})}function $G(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}function HG(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}function UG(e){return function(t){return RG.test(t)}(e)?function(t){return t.match(NG)||[]}(e):function(t){return t.split("")}(e)}var wA,EA,VG=Function.prototype,M1=Object.prototype,Ey=ss["__core-js_shared__"],DA=function(){var e=/[^.]+$/.exec(Ey&&Ey.keys&&Ey.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),sP=VG.toString,Vg=M1.hasOwnProperty,zp=M1.toString,WG=RegExp("^"+sP.call(Vg).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),CA=ss.Symbol,Dy=CA?CA.iterator:void 0,GG=M1.propertyIsEnumerable,qG=(wA=Object.keys,EA=Object,function(e){return wA(EA(e))}),J4=$p(ss,"DataView"),Z4=$p(ss,"Map"),Q4=$p(ss,"Promise"),eE=$p(ss,"Set"),tE=$p(ss,"WeakMap"),KG=ls(J4),YG=ls(Z4),XG=ls(Q4),JG=ls(eE),ZG=ls(tE);function QG(e,t){var n=lP(e)||function(a){return function(u){return dP(u)&&R5(u)}(a)&&Vg.call(a,"callee")&&(!GG.call(a,"callee")||zp.call(a)=="[object Arguments]")}(e)?function(a,u){for(var s=-1,l=Array(a);++s<a;)l[s]=u(s);return l}(e.length,String):[],r=n.length,o=!!r;for(var i in e)!t&&!Vg.call(e,i)||o&&(i=="length"||nq(i,r))||n.push(i);return n}function eq(e){if(!fP(e)||function(n){return!!DA&&DA in n}(e))return!1;var t=cP(e)||function(n){var r=!1;if(n!=null&&typeof n.toString!="function")try{r=!!(n+"")}catch{}return r}(e)?WG:TG;return t.test(ls(e))}function tq(e){if(n=(t=e)&&t.constructor,r=typeof n=="function"&&n.prototype||M1,t!==r)return qG(e);var t,n,r,o=[];for(var i in Object(e))Vg.call(e,i)&&i!="constructor"&&o.push(i);return o}function $p(e,t){var n=function(r,o){return r==null?void 0:r[o]}(e,t);return eq(n)?n:void 0}var au=function(e){return zp.call(e)};function nq(e,t){return!!(t=t??9007199254740991)&&(typeof e=="number"||_G.test(e))&&e>-1&&e%1==0&&e<t}function ls(e){if(e!=null){try{return sP.call(e)}catch{}try{return e+""}catch{}}return""}(J4&&au(new J4(new ArrayBuffer(1)))!="[object DataView]"||Z4&&au(new Z4)!=q4||Q4&&au(Q4.resolve())!="[object Promise]"||eE&&au(new eE)!=K4||tE&&au(new tE)!="[object WeakMap]")&&(au=function(e){var t=zp.call(e),n=t=="[object Object]"?e.constructor:void 0,r=n?ls(n):void 0;if(r)switch(r){case KG:return"[object DataView]";case YG:return q4;case XG:return"[object Promise]";case JG:return K4;case ZG:return"[object WeakMap]"}return t});var lP=Array.isArray;function R5(e){return e!=null&&function(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=9007199254740991}(e.length)&&!cP(e)}function cP(e){var t=fP(e)?zp.call(e):"";return t=="[object Function]"||t=="[object GeneratorFunction]"}function fP(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function dP(e){return!!e&&typeof e=="object"}function rq(e){return e?zG(e,function(t){return R5(t)?QG(t):tq(t)}(e)):[]}var SA=function(e){if(!e)return[];if(R5(e))return function(n){return typeof n=="string"||!lP(n)&&dP(n)&&zp.call(n)=="[object String]"}(e)?UG(e):function(n,r){var o=-1,i=n.length;for(r||(r=Array(i));++o<i;)r[o]=n[o];return r}(e);if(Dy&&e[Dy])return function(n){for(var r,o=[];!(r=n.next()).done;)o.push(r.value);return o}(e[Dy]());var t=au(e);return(t==q4?$G:t==K4?HG:rq)(e)};function xA(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function L5(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach(function(n){e[n]===void 0?e[n]=t[n]:xA(t[n])&&xA(e[n])&&Object.keys(t[n]).length>0&&L5(e[n],t[n])})}var pP={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 Hp(){var e=typeof document<"u"?document:{};return L5(e,pP),e}var oq={document:pP,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(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){typeof setTimeout<"u"&&clearTimeout(e)}};function cs(){var e=typeof window<"u"?window:{};return L5(e,oq),e}function nE(e){return nE=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},nE(e)}function Wg(e,t){return Wg=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},Wg(e,t)}function iq(){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}}function rE(e,t,n){return rE=iq()?Reflect.construct:function(r,o,i){var a=[null];a.push.apply(a,o);var u=new(Function.bind.apply(r,a));return i&&Wg(u,i.prototype),u},rE.apply(null,arguments)}function oE(e){var t=typeof Map=="function"?new Map:void 0;return oE=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(t!==void 0){if(t.has(n))return t.get(n);t.set(n,r)}function r(){return rE(n,arguments,nE(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Wg(r,n)},oE(e)}var Ji=function(e){var t,n;function r(o){var i,a,u;return i=e.call.apply(e,[this].concat(o))||this,a=function(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}(i),u=a.__proto__,Object.defineProperty(a,"__proto__",{get:function(){return u},set:function(s){u.__proto__=s}}),i}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(oE(Array));function z1(e){e===void 0&&(e=[]);var t=[];return e.forEach(function(n){Array.isArray(n)?t.push.apply(t,z1(n)):t.push(n)}),t}function hP(e,t){return Array.prototype.filter.call(e,t)}function k(e,t){var n=cs(),r=Hp(),o=[];if(!t&&e instanceof Ji)return e;if(!e)return new Ji(o);if(typeof e=="string"){var i=e.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}(e.trim(),t||r)}else if(e.nodeType||e===n||e===r)o.push(e);else if(Array.isArray(e)){if(e instanceof Ji)return e;o=e}return new Ji(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 Tl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=z1(t.map(function(o){return o.split(" ")}));return this.forEach(function(o){var i;(i=o.classList).add.apply(i,r)}),this}function _l(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=z1(t.map(function(o){return o.split(" ")}));return this.forEach(function(o){var i;(i=o.classList).remove.apply(i,r)}),this}function jl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=z1(t.map(function(o){return o.split(" ")}));return hP(this,function(o){return r.filter(function(i){return o.classList.contains(i)}).length>0}).length>0}function Fr(e,t){if(arguments.length===1&&typeof e=="string")return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n<this.length;n+=1)if(arguments.length===2)this[n].setAttribute(e,t);else for(var r in e)this[n][r]=e[r],this[n].setAttribute(r,e[r]);return this}function Gg(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function Pl(){var e=this[0];if(e){var t,n={};if(e.dataset)for(var r in e.dataset)n[r]=e.dataset[r];else for(var o=0;o<e.attributes.length;o+=1){var i=e.attributes[o];i.name.indexOf("data-")>=0&&(n[t=i.name.split("data-")[1],t.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 Oo(e){if(e===void 0){var t=this[0];if(!t)return;if(t.multiple&&t.nodeName.toLowerCase()==="select"){for(var n=[],r=0;r<t.selectedOptions.length;r+=1)n.push(t.selectedOptions[r].value);return n}return t.value}for(var o=0;o<this.length;o+=1){var i=this[o];if(Array.isArray(e)&&i.multiple&&i.nodeName.toLowerCase()==="select")for(var a=0;a<i.options.length;a+=1)i.options[a].selected=e.indexOf(i.options[a].value)>=0;else i.value=e}return this}function Bo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];function u(g){var v=g.target;if(v){var y=g.target.dom7EventData||[];if(y.indexOf(g)<0&&y.unshift(g),k(v).is(o))i.apply(v,y);else for(var h=k(v).parents(),b=0;b<h.length;b+=1)k(h[b]).is(o)&&i.apply(h[b],y)}}function s(g){var v=g&&g.target&&g.target.dom7EventData||[];v.indexOf(g)<0&&v.unshift(g),i.apply(this,v)}typeof t[1]=="function"&&(r=t[0],i=t[1],a=t[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 m=c[l];p.dom7Listeners||(p.dom7Listeners={}),p.dom7Listeners[m]||(p.dom7Listeners[m]=[]),p.dom7Listeners[m].push({listener:i,proxyListener:s}),p.addEventListener(m,s,a)}}return this}function AA(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];typeof t[1]=="function"&&(r=t[0],i=t[1],a=t[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 m=p[d];i&&m.listener===i||i&&m.listener&&m.listener.dom7proxy&&m.listener.dom7proxy===i?(f.removeEventListener(l,m.proxyListener,a),p.splice(d,1)):i||(f.removeEventListener(l,m.proxyListener,a),p.splice(d,1))}}return this}function qg(){var e=cs();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function Kg(){var e=cs();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function OA(){if(this.length>0){var e=cs(),t=Hp(),n=this[0],r=n.getBoundingClientRect(),o=t.body,i=n.clientTop||o.clientTop||0,a=n.clientLeft||o.clientLeft||0,u=n===e?e.scrollY:n.scrollTop,s=n===e?e.scrollX:n.scrollLeft;return{top:r.top+u-i,left:r.left+s-a}}return null}function Il(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function Yg(){for(var e=cs(),t=0;t<this.length;t+=1){var n=this[t];n.style.display==="none"&&(n.style.display=""),e.getComputedStyle(n,null).getPropertyValue("display")==="none"&&(n.style.display="block")}return this}function Xg(e,t){var n,r=cs();if(arguments.length===1){if(typeof e!="string"){for(n=0;n<this.length;n+=1)for(var o in e)this[n].style[o]=e[o];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(e)}if(arguments.length===2&&typeof e=="string"){for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}return this}function Jg(e){return e?(this.forEach(function(t,n){e.apply(t,[t,n])}),this):this}function BA(e){return k(hP(this,e))}function Da(e){if(e===void 0)return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function Zg(e){if(e===void 0)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function kA(e){var t,n,r=cs(),o=Hp(),i=this[0];if(!i||e===void 0)return!1;if(typeof e=="string"){if(i.matches)return i.matches(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e);if(i.msMatchesSelector)return i.msMatchesSelector(e);for(t=k(e),n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}if(e===o)return i===o;if(e===r)return i===r;if(e.nodeType||e instanceof Ji){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}return!1}function Tr(){for(var e,t=Hp(),n=0;n<arguments.length;n+=1){e=n<0||arguments.length<=n?void 0:arguments[n];for(var r=0;r<this.length;r+=1)if(typeof e=="string"){var o=t.createElement("div");for(o.innerHTML=e;o.firstChild;)this[r].appendChild(o.firstChild)}else if(e instanceof Ji)for(var i=0;i<e.length;i+=1)this[r].appendChild(e[i]);else this[r].appendChild(e)}return this}function FA(e){var t,n,r=Hp();for(t=0;t<this.length;t+=1)if(typeof e=="string"){var o=r.createElement("div");for(o.innerHTML=e,n=o.childNodes.length-1;n>=0;n-=1)this[t].insertBefore(o.childNodes[n],this[t].childNodes[0])}else if(e instanceof Ji)for(n=0;n<e.length;n+=1)this[t].insertBefore(e[n],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this}function Nl(e){for(var t=[],n=0;n<this.length;n+=1)this[n].parentNode!==null&&(e?k(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return k(t)}function Qg(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?k(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return k(t)}function Rl(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(e),o=0;o<r.length;o+=1)t.push(r[o]);return k(t)}function Ll(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].children,o=0;o<r.length;o+=1)e&&!k(r[o]).is(e)||t.push(r[o]);return k(t)}function Ml(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function zl(){for(var e=0;e<this.length;e+=1){var t=this[e];if(t.nodeType===1){for(var n=0;n<t.childNodes.length;n+=1)t.childNodes[n].parentNode&&t.childNodes[n].parentNode.removeChild(t.childNodes[n]);t.textContent=""}}return this}k.fn=Ji.prototype;var aq="resize scroll".split(" ");function gP(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(n[0]===void 0){for(var o=0;o<this.length;o+=1)aq.indexOf(e)<0&&(e in this[o]?this[o][e]():k(this[o]).trigger(e));return this}return this.on.apply(this,[e].concat(n))}}var TA=gP("click"),Ca=gP("focus"),uq="[object GeneratorFunction]",sq=/^(?:0|[1-9]\d*)$/;function lq(e,t){for(var n=-1,r=e?e.length:0;++n<r&&t(e[n],n,e)!==!1;);return e}var $1=Object.prototype,iE=$1.hasOwnProperty,vP=$1.toString,cq=$1.propertyIsEnumerable,fq=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object);function dq(e,t){var n=mP(e)||function(a){return function(u){return function(s){return!!s&&typeof s=="object"}(u)&&M5(u)}(a)&&iE.call(a,"callee")&&(!cq.call(a,"callee")||vP.call(a)=="[object Arguments]")}(e)?function(a,u){for(var s=-1,l=Array(a);++s<a;)l[s]=u(s);return l}(e.length,String):[],r=n.length,o=!!r;for(var i in e)!t&&!iE.call(e,i)||o&&(i=="length"||vq(i,r))||n.push(i);return n}var _A,pq=(_A=function(e,t){return e&&hq(e,t,mq)},function(e,t){if(e==null)return e;if(!M5(e))return _A(e,t);for(var n=e.length,r=-1,o=Object(e);++r<n&&t(o[r],r,o)!==!1;);return e}),hq=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),u=a.length;u--;){var s=a[e?u:++o];if(n(i[s],s,i)===!1)break}return t}}();function gq(e){if(n=(t=e)&&t.constructor,r=typeof n=="function"&&n.prototype||$1,t!==r)return fq(e);var t,n,r,o=[];for(var i in Object(e))iE.call(e,i)&&i!="constructor"&&o.push(i);return o}function vq(e,t){return!!(t=t??9007199254740991)&&(typeof e=="number"||sq.test(e))&&e>-1&&e%1==0&&e<t}var mP=Array.isArray;function M5(e){return e!=null&&function(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=9007199254740991}(e.length)&&!function(t){var n=function(r){var o=typeof r;return!!r&&(o=="object"||o=="function")}(t)?vP.call(t):"";return n=="[object Function]"||n==uq}(e)}function mq(e){return M5(e)?dq(e):gq(e)}function yq(e){return e}var z5=function(e,t){return(mP(e)?lq:pq)(e,typeof t=="function"?t:yq)};let yP=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t};var bq=/^\s+|\s+$/g,wq=/^[-+]0x[0-9a-f]+$/i,Eq=/^0b[01]+$/i,Dq=/^0o[0-7]+$/i,Cq=parseInt,Sq=typeof st=="object"&&st&&st.Object===Object&&st,xq=typeof self=="object"&&self&&self.Object===Object&&self,Aq=Sq||xq||Function("return this")(),Oq=Object.prototype.toString,Bq=Math.max,kq=Math.min,Cy=function(){return Aq.Date.now()};function Fq(e,t,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,p=!0;if(typeof e!="function")throw new TypeError("Expected a function");function d(b){var w=r,D=o;return r=o=void 0,l=b,a=e.apply(D,w)}function m(b){return l=b,u=setTimeout(v,t),c?d(b):a}function g(b){var w=b-s;return s===void 0||w>=t||w<0||f&&b-l>=i}function v(){var b=Cy();if(g(b))return y(b);u=setTimeout(v,function(w){var D=t-(w-s);return f?kq(D,i-(w-l)):D}(b))}function y(b){return u=void 0,p&&r?d(b):(r=o=void 0,a)}function h(){var b=Cy(),w=g(b);if(r=arguments,o=this,s=b,w){if(u===void 0)return m(s);if(f)return u=setTimeout(v,t),d(s)}return u===void 0&&(u=setTimeout(v,t)),a}return t=jA(t)||0,ev(n)&&(c=!!n.leading,i=(f="maxWait"in n)?Bq(jA(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p),h.cancel=function(){u!==void 0&&clearTimeout(u),l=0,r=s=o=u=void 0},h.flush=function(){return u===void 0?a:y(Cy())},h}function ev(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function jA(e){if(typeof e=="number")return e;if(function(r){return typeof r=="symbol"||function(o){return!!o&&typeof o=="object"}(r)&&Oq.call(r)=="[object Symbol]"}(e))return NaN;if(ev(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ev(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(bq,"");var n=Eq.test(e);return n||Dq.test(e)?Cq(e.slice(2),n?2:8):wq.test(e)?NaN:+e}var Ku=function(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError("Expected a function");return ev(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Fq(e,t,{leading:r,maxWait:t,trailing:o})};const Tq={createElement:function(e,t){return document.createElement(e,t)},createElementNS:function(e,t,n){return document.createElementNS(e,t,n)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},getTextContent:function(e){return e.textContent},isElement:function(e){return e.nodeType===1},isText:function(e){return e.nodeType===3},isComment:function(e){return e.nodeType===8}};function zd(e,t,n,r,o){return{sel:e,data:t,children:n,text:r,elm:o,key:t===void 0?void 0:t.key}}const aE=Array.isArray;function Y0(e){return typeof e=="string"||typeof e=="number"||e instanceof String||e instanceof Number}function Sy(e){return e===void 0}function Xn(e){return e!==void 0}const PA=zd("",{},[],void 0,void 0);function Rc(e,t){var n,r;const o=e.key===t.key,i=((n=e.data)===null||n===void 0?void 0:n.is)===((r=t.data)===null||r===void 0?void 0:r.is);return e.sel===t.sel&&o&&i}function _q(e,t,n){var r;const o={};for(let i=t;i<=n;++i){const a=(r=e[i])===null||r===void 0?void 0:r.key;a!==void 0&&(o[a]=i)}return o}const jq=["create","update","remove","destroy","pre","post"];function Pq(e,t){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=t!==void 0?t:Tq;for(const f of jq)for(const p of e){const d=p[f];d!==void 0&&n[f].push(d)}function o(f){const p=f.id?"#"+f.id:"",d=f.getAttribute("class"),m=d?"."+d.split(" ").join("."):"";return zd(r.tagName(f).toLowerCase()+p+m,{},[],void 0,f)}function i(f,p){return function(){if(--p==0){const d=r.parentNode(f);r.removeChild(d,f)}}}function a(f,p){var d,m;let g,v=f.data;if(v!==void 0){const b=(d=v.hook)===null||d===void 0?void 0:d.init;Xn(b)&&(b(f),v=f.data)}const y=f.children,h=f.sel;if(h==="!")Sy(f.text)&&(f.text=""),f.elm=r.createComment(f.text);else if(h!==void 0){const b=h.indexOf("#"),w=h.indexOf(".",b),D=b>0?b:h.length,S=w>0?w:h.length,C=b!==-1||w!==-1?h.slice(0,Math.min(D,S)):h,O=f.elm=Xn(v)&&Xn(g=v.ns)?r.createElementNS(g,C,v):r.createElement(C,v);for(D<S&&O.setAttribute("id",h.slice(D+1,S)),w>0&&O.setAttribute("class",h.slice(S+1).replace(/\./g," ")),g=0;g<n.create.length;++g)n.create[g](PA,f);if(aE(y))for(g=0;g<y.length;++g){const L=y[g];L!=null&&r.appendChild(O,a(L,p))}else Y0(f.text)&&r.appendChild(O,r.createTextNode(f.text));const F=f.data.hook;Xn(F)&&((m=F.create)===null||m===void 0||m.call(F,PA,f),F.insert&&p.push(f))}else f.elm=r.createTextNode(f.text);return f.elm}function u(f,p,d,m,g,v){for(;m<=g;++m){const y=d[m];y!=null&&r.insertBefore(f,a(y,v),p)}}function s(f){var p,d;const m=f.data;if(m!==void 0){(d=(p=m==null?void 0:m.hook)===null||p===void 0?void 0:p.destroy)===null||d===void 0||d.call(p,f);for(let g=0;g<n.destroy.length;++g)n.destroy[g](f);if(f.children!==void 0)for(let g=0;g<f.children.length;++g){const v=f.children[g];v!=null&&typeof v!="string"&&s(v)}}}function l(f,p,d,m){for(var g,v;d<=m;++d){let y,h;const b=p[d];if(b!=null)if(Xn(b.sel)){s(b),y=n.remove.length+1,h=i(b.elm,y);for(let D=0;D<n.remove.length;++D)n.remove[D](b,h);const w=(v=(g=b==null?void 0:b.data)===null||g===void 0?void 0:g.hook)===null||v===void 0?void 0:v.remove;Xn(w)?w(b,h):h()}else r.removeChild(f,b.elm)}}function c(f,p,d){var m,g,v,y,h;const b=(m=p.data)===null||m===void 0?void 0:m.hook;(g=b==null?void 0:b.prepatch)===null||g===void 0||g.call(b,f,p);const w=p.elm=f.elm,D=f.children,S=p.children;if(f!==p){if(p.data!==void 0){for(let C=0;C<n.update.length;++C)n.update[C](f,p);(y=(v=p.data.hook)===null||v===void 0?void 0:v.update)===null||y===void 0||y.call(v,f,p)}Sy(p.text)?Xn(D)&&Xn(S)?D!==S&&function(C,O,F,L){let H,M,K,V,G=0,q=0,re=O.length-1,le=O[0],se=O[re],ae=F.length-1,B=F[0],x=F[ae];for(;G<=re&&q<=ae;)le==null?le=O[++G]:se==null?se=O[--re]:B==null?B=F[++q]:x==null?x=F[--ae]:Rc(le,B)?(c(le,B,L),le=O[++G],B=F[++q]):Rc(se,x)?(c(se,x,L),se=O[--re],x=F[--ae]):Rc(le,x)?(c(le,x,L),r.insertBefore(C,le.elm,r.nextSibling(se.elm)),le=O[++G],x=F[--ae]):Rc(se,B)?(c(se,B,L),r.insertBefore(C,se.elm,le.elm),se=O[--re],B=F[++q]):(H===void 0&&(H=_q(O,G,re)),M=H[B.key],Sy(M)?r.insertBefore(C,a(B,L),le.elm):(K=O[M],K.sel!==B.sel?r.insertBefore(C,a(B,L),le.elm):(c(K,B,L),O[M]=void 0,r.insertBefore(C,K.elm,le.elm))),B=F[++q]);(G<=re||q<=ae)&&(G>re?(V=F[ae+1]==null?null:F[ae+1].elm,u(C,V,F,q,ae,L)):l(C,O,G,re))}(w,D,S,d):Xn(S)?(Xn(f.text)&&r.setTextContent(w,""),u(w,null,S,0,S.length-1,d)):Xn(D)?l(w,D,0,D.length-1):Xn(f.text)&&r.setTextContent(w,""):f.text!==p.text&&(Xn(D)&&l(w,D,0,D.length-1),r.setTextContent(w,p.text)),(h=b==null?void 0:b.postpatch)===null||h===void 0||h.call(b,f,p)}}return function(f,p){let d,m,g;const v=[];for(d=0;d<n.pre.length;++d)n.pre[d]();for(function(y){return y.sel!==void 0}(f)||(f=o(f)),Rc(f,p)?c(f,p,v):(m=f.elm,g=r.parentNode(m),a(p,v),g!==null&&(r.insertBefore(g,p.elm,r.nextSibling(m)),l(g,[f],0,0))),d=0;d<v.length;++d)v[d].data.hook.insert(v[d]);for(d=0;d<n.post.length;++d)n.post[d]();return p}}function bP(e,t,n){if(e.ns="http://www.w3.org/2000/svg",n!=="foreignObject"&&t!==void 0)for(let r=0;r<t.length;++r){const o=t[r].data;o!==void 0&&bP(o,t[r].children,t[r].sel)}}function $l(e,t,n){let r,o,i,a={};if(n!==void 0?(t!==null&&(a=t),aE(n)?r=n:Y0(n)?o=n.toString():n&&n.sel&&(r=[n])):t!=null&&(aE(t)?r=t:Y0(t)?o=t.toString():t&&t.sel?r=[t]:a=t),r!==void 0)for(i=0;i<r.length;++i)Y0(r[i])&&(r[i]=zd(void 0,void 0,void 0,r[i],void 0));return e[0]!=="s"||e[1]!=="v"||e[2]!=="g"||e.length!==3&&e[3]!=="."&&e[3]!=="#"||bP(a,r,e),zd(e,a,r,o,void 0)}function IA(e,t){let n;const r=t.elm;let o=e.data.attrs,i=t.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 Iq={create:IA,update:IA};function NA(e,t){let n,r;const o=t.elm;let i=e.data.class,a=t.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 Nq={create:NA,update:NA},RA=/[A-Z]/g;function LA(e,t){const n=t.elm;let r,o=e.data.dataset,i=t.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(RA,"-$&").toLowerCase()));for(r in i)o[r]!==i[r]&&(a?a[r]=i[r]:n.setAttribute("data-"+r.replace(RA,"-$&").toLowerCase(),i[r]))}const Rq={create:LA,update:LA};function wP(e,t,n){if(typeof e=="function")e.call(t,n,t);else if(typeof e=="object")for(let r=0;r<e.length;r++)wP(e[r],t,n)}function Lq(e,t){const n=e.type,r=t.data.on;r&&r[n]&&wP(r[n],t,e)}function xy(e,t){const n=e.data.on,r=e.listener,o=e.elm,i=t&&t.data.on,a=t&&t.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=t.listener=e.listener||function l(c){Lq(c,l.vnode)};if(s.vnode=t,n)for(u in i)n[u]||a.addEventListener(u,s,!1);else for(u in i)a.addEventListener(u,s,!1)}}}const Mq={create:xy,update:xy,destroy:xy};function MA(e,t){let n,r,o;const i=t.elm;let a=e.data.props,u=t.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 zq={create:MA,update:MA},zA=typeof window<"u"&&window.requestAnimationFrame.bind(window)||setTimeout;let Ay=!1;function $q(e,t,n){(function(r){zA(function(){zA(r)})})(function(){e[t]=n})}function $A(e,t){let n,r;const o=t.elm;let i=e.data.style,a=t.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]||$q(o.style,s,n);else r!=="remove"&&n!==i[r]&&(r[0]==="-"&&r[1]==="-"?o.style.setProperty(r,n):o.style[r]=n)}const Hq={pre:function(){Ay=!1},create:$A,update:$A,destroy:function(e){let t,n;const r=e.elm,o=e.data.style;if(o&&(t=o.destroy))for(n in t)r.style[n]=t[n]},remove:function(e,t){const n=e.data.style;if(!n||!n.remove)return void t();let r;Ay||(e.elm.offsetLeft,Ay=!0);const o=e.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&&t()})}};function EP(e,t){for(const n of e)n!=null&&n!==!1&&n!==""&&(Array.isArray(n)?EP(n,t):typeof n=="string"||typeof n=="number"||typeof n=="boolean"?t.push(zd(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function be(e,t,...n){const r=EP(n,[]);return typeof e=="function"?e(t,r):r.length===1&&!r[0].sel&&r[0].text?$l(e,t,r[0].text):$l(e,t,r)}be||(be={});var Uq=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Vq=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,DP="\\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",Wq="[\\ud800-\\udfff]",HA="["+DP+"]",tv="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",CP="\\d+",Gq="[\\u2700-\\u27bf]",SP="[a-z\\xdf-\\xf6\\xf8-\\xff]",xP="[^\\ud800-\\udfff"+DP+CP+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",uE="\\ud83c[\\udffb-\\udfff]",AP="[^\\ud800-\\udfff]",$5="(?:\\ud83c[\\udde6-\\uddff]){2}",H5="[\\ud800-\\udbff][\\udc00-\\udfff]",tl="[A-Z\\xc0-\\xd6\\xd8-\\xde]",UA="(?:"+SP+"|"+xP+")",qq="(?:"+tl+"|"+xP+")",VA="(?:"+tv+"|"+uE+")?",OP="[\\ufe0e\\ufe0f]?"+VA+("(?:\\u200d(?:"+[AP,$5,H5].join("|")+")[\\ufe0e\\ufe0f]?"+VA+")*"),Kq="(?:"+[Gq,$5,H5].join("|")+")"+OP,Yq="(?:"+[AP+tv+"?",tv,$5,H5,Wq].join("|")+")",Xq=RegExp("['’]","g"),Jq=RegExp(tv,"g"),Zq=RegExp(uE+"(?="+uE+")|"+Yq+OP,"g"),Qq=RegExp([tl+"?"+SP+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[HA,tl,"$"].join("|")+")",qq+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[HA,tl+UA,"$"].join("|")+")",tl+"?"+UA+"+(?:['’](?:d|ll|m|re|s|t|ve))?",tl+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",CP,Kq].join("|"),"g"),eK=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),tK=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nK=typeof st=="object"&&st&&st.Object===Object&&st,rK=typeof self=="object"&&self&&self.Object===Object&&self,oK=nK||rK||Function("return this")(),Oy,iK=(Oy={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"ss"},function(e){return Oy==null?void 0:Oy[e]});function BP(e){return eK.test(e)}function aK(e){return BP(e)?function(t){return t.match(Zq)||[]}(e):function(t){return t.split("")}(e)}var uK=Object.prototype.toString,WA=oK.Symbol,GA=WA?WA.prototype:void 0,qA=GA?GA.toString:void 0;function sK(e){if(typeof e=="string")return e;if(function(n){return typeof n=="symbol"||function(r){return!!r&&typeof r=="object"}(n)&&uK.call(n)=="[object Symbol]"}(e))return qA?qA.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function lK(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:function(o,i,a){var u=-1,s=o.length;i<0&&(i=-i>s?0:s+i),(a=a>s?s:a)<0&&(a+=s),s=i>a?0:a-i>>>0,i>>>=0;for(var l=Array(s);++u<s;)l[u]=o[u+i];return l}(e,t,n)}function X0(e){return e==null?"":sK(e)}var KA,cK=(KA=function(e,t,n){return t=t.toLowerCase(),e+(n?fK(X0(t).toLowerCase()):t)},function(e){return function(t,n,r,o){var i=-1,a=t?t.length:0;for(o&&a&&(r=t[++i]);++i<a;)r=n(r,t[i],i,t);return r}(function(t,n,r){return t=X0(t),(n=r?void 0:n)===void 0?function(o){return tK.test(o)}(t)?function(o){return o.match(Qq)||[]}(t):function(o){return o.match(Uq)||[]}(t):t.match(n)||[]}(function(t){return(t=X0(t))&&t.replace(Vq,iK).replace(Jq,"")}(e).replace(Xq,"")),KA,"")}),YA,fK=(YA="toUpperCase",function(e){var t=BP(e=X0(e))?aK(e):void 0,n=t?t[0]:e.charAt(0),r=t?lK(t,1).join(""):e.slice(1);return n[YA]()+r});for(var dK=cK,pK=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),By={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},kP={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:pK?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},U5={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},Mh=1;Mh<20;Mh++)U5["f"+Mh]=111+Mh;function FP(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.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 By)l[By[p]]=!1;var d=!0,m=!1,g=void 0;try{for(var v,y=c[Symbol.iterator]();!(d=(v=y.next()).done);d=!0){var h=v.value,b=h.endsWith("?")&&h.length>1;b&&(h=h.slice(0,-1));var w=TP(h),D=By[w];if(h.length>1&&!D&&!kP[h]&&!U5[w])throw new TypeError('Unknown modifier: "'+h+'"');f!==1&&D||(s?l.key=w:l.which=hK(h)),D&&(l[D]=!b||null)}}catch(S){m=!0,g=S}finally{try{!d&&y.return&&y.return()}finally{if(m)throw g}}return l}(i,t)}),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 hK(e){return e=TP(e),U5[e]||e.toUpperCase().charCodeAt(0)}function TP(e){return e=e.toLowerCase(),e=kP[e]||e}var gK=FP,ky=function(e,t){return FP(e,{byKey:!0},t)},vK=/^\s+|\s+$/g,mK=/^[-+]0x[0-9a-f]+$/i,yK=/^0b[01]+$/i,bK=/^0o[0-7]+$/i,wK=parseInt,EK=typeof st=="object"&&st&&st.Object===Object&&st,DK=typeof self=="object"&&self&&self.Object===Object&&self,CK=EK||DK||Function("return this")(),SK=Object.prototype.toString,xK=Math.max,AK=Math.min,Fy=function(){return CK.Date.now()};function sE(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function XA(e){if(typeof e=="number")return e;if(function(r){return typeof r=="symbol"||function(o){return!!o&&typeof o=="object"}(r)&&SK.call(r)=="[object Symbol]"}(e))return NaN;if(sE(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=sE(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(vK,"");var n=yK.test(e);return n||bK.test(e)?wK(e.slice(2),n?2:8):mK.test(e)?NaN:+e}var Os,_P=function(e,t,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,p=!0;if(typeof e!="function")throw new TypeError("Expected a function");function d(b){var w=r,D=o;return r=o=void 0,l=b,a=e.apply(D,w)}function m(b){return l=b,u=setTimeout(v,t),c?d(b):a}function g(b){var w=b-s;return s===void 0||w>=t||w<0||f&&b-l>=i}function v(){var b=Fy();if(g(b))return y(b);u=setTimeout(v,function(w){var D=t-(w-s);return f?AK(D,i-(w-l)):D}(b))}function y(b){return u=void 0,p&&r?d(b):(r=o=void 0,a)}function h(){var b=Fy(),w=g(b);if(r=arguments,o=this,s=b,w){if(u===void 0)return m(s);if(f)return u=setTimeout(v,t),d(s)}return u===void 0&&(u=setTimeout(v,t)),a}return t=XA(t)||0,sE(n)&&(c=!!n.leading,i=(f="maxWait"in n)?xK(XA(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p),h.cancel=function(){u!==void 0&&clearTimeout(u),l=0,r=s=o=u=void 0},h.flush=function(){return u===void 0?a:y(Fy())},h},jP=as(function(e,t){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]",m="[object Set]",g="[object String]",v="[object Symbol]",y="[object WeakMap]",h="[object ArrayBuffer]",b="[object DataView]",w="[object Float32Array]",D="[object Float64Array]",S="[object Int8Array]",C="[object Int16Array]",O="[object Int32Array]",F="[object Uint8Array]",L="[object Uint8ClampedArray]",H="[object Uint16Array]",M="[object Uint32Array]",K=/\w*$/,V=/^\[object .+?Constructor\]$/,G=/^(?:0|[1-9]\d*)$/,q={};q[o]=q["[object Array]"]=q[h]=q[b]=q[i]=q[a]=q[w]=q[D]=q[S]=q[C]=q[O]=q[l]=q[c]=q[f]=q[d]=q[m]=q[g]=q[v]=q[F]=q[L]=q[H]=q[M]=!0,q["[object Error]"]=q[u]=q[y]=!1;var re=typeof st=="object"&&st&&st.Object===Object&&st,le=typeof self=="object"&&self&&self.Object===Object&&self,se=re||le||Function("return this")(),ae=t&&!t.nodeType&&t,B=ae&&e&&!e.nodeType&&e,x=B&&B.exports===ae;function j(T,z){return T.set(z[0],z[1]),T}function $(T,z){return T.add(z),T}function Y(T,z,ee,ue){var Me=-1,pt=T?T.length:0;for(ue&&pt&&(ee=T[++Me]);++Me<pt;)ee=z(ee,T[Me],Me,T);return ee}function U(T){var z=!1;if(T!=null&&typeof T.toString!="function")try{z=!!(T+"")}catch{}return z}function ie(T){var z=-1,ee=Array(T.size);return T.forEach(function(ue,Me){ee[++z]=[Me,ue]}),ee}function ge(T,z){return function(ee){return T(z(ee))}}function ve(T){var z=-1,ee=Array(T.size);return T.forEach(function(ue){ee[++z]=ue}),ee}var De=Array.prototype,W=Function.prototype,Ne=Object.prototype,Ae=se["__core-js_shared__"],de=function(){var T=/[^.]+$/.exec(Ae&&Ae.keys&&Ae.keys.IE_PROTO||"");return T?"Symbol(src)_1."+T:""}(),Oe=W.toString,kt=Ne.hasOwnProperty,$e=Ne.toString,et=RegExp("^"+Oe.call(kt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),mt=x?se.Buffer:void 0,yn=se.Symbol,ze=se.Uint8Array,Nn=ge(Object.getPrototypeOf,Object),Nr=Object.create,oo=Ne.propertyIsEnumerable,ys=De.splice,Ha=Object.getOwnPropertySymbols,Rr=mt?mt.isBuffer:void 0,io=ge(Object.keys,Object),No=ao(se,"DataView"),bn=ao(se,"Map"),wn=ao(se,"Promise"),En=ao(se,"Set"),Fn=ao(se,"WeakMap"),rn=ao(Object,"create"),hr=so(No),Sc=so(bn),di=so(wn),Ro=so(En),bs=so(Fn),Ua=yn?yn.prototype:void 0,ws=Ua?Ua.valueOf:void 0;function Lr(T){var z=-1,ee=T?T.length:0;for(this.clear();++z<ee;){var ue=T[z];this.set(ue[0],ue[1])}}function gr(T){var z=-1,ee=T?T.length:0;for(this.clear();++z<ee;){var ue=T[z];this.set(ue[0],ue[1])}}function Lo(T){var z=-1,ee=T?T.length:0;for(this.clear();++z<ee;){var ue=T[z];this.set(ue[0],ue[1])}}function Mr(T){this.__data__=new gr(T)}function pi(T,z){var ee=_(T)||function(nt){return function(We){return function(Jt){return!!Jt&&typeof Jt=="object"}(We)&&N(We)}(nt)&&kt.call(nt,"callee")&&(!oo.call(nt,"callee")||$e.call(nt)==o)}(T)?function(nt,We){for(var Jt=-1,Dn=Array(nt);++Jt<nt;)Dn[Jt]=We(Jt);return Dn}(T.length,String):[],ue=ee.length,Me=!!ue;for(var pt in T)!z&&!kt.call(T,pt)||Me&&(pt=="length"||Dh(pt,ue))||ee.push(pt);return ee}function wh(T,z,ee){var ue=T[z];kt.call(T,z)&&Ch(ue,ee)&&(ee!==void 0||z in T)||(T[z]=ee)}function Yn(T,z){for(var ee=T.length;ee--;)if(Ch(T[ee][0],z))return ee;return-1}function xc(T,z,ee,ue,Me,pt,nt){var We;if(ue&&(We=pt?ue(T,Me,pt,nt):ue(T)),We!==void 0)return We;if(!tt(T))return T;var Jt=_(T);if(Jt){if(We=function(ye){var Xe=ye.length,jt=ye.constructor(Xe);return Xe&&typeof ye[0]=="string"&&kt.call(ye,"index")&&(jt.index=ye.index,jt.input=ye.input),jt}(T),!z)return function(ye,Xe){var jt=-1,Re=ye.length;for(Xe||(Xe=Array(Re));++jt<Re;)Xe[jt]=ye[jt];return Xe}(T,We)}else{var Dn=uo(T),Va=Dn==u||Dn==s;if(J(T))return function(ye,Xe){if(Xe)return ye.slice();var jt=new ye.constructor(ye.length);return ye.copy(jt),jt}(T,z);if(Dn==f||Dn==o||Va&&!pt){if(U(T))return pt?T:{};if(We=function(ye){return typeof ye.constructor!="function"||hi(ye)?{}:(Xe=Nn(ye),tt(Xe)?Nr(Xe):{});var Xe}(Va?{}:T),!z)return function(ye,Xe){return Eh(ye,Ac(ye),Xe)}(T,function(ye,Xe){return ye&&Eh(Xe,je(Xe),ye)}(We,T))}else{if(!q[Dn])return pt?T:{};We=function(ye,Xe,jt,Re){var Ge=ye.constructor;switch(Xe){case h:return Es(ye);case i:case a:return new Ge(+ye);case b:return function(qe,Ft){var Tn=Ft?Es(qe.buffer):qe.buffer;return new qe.constructor(Tn,qe.byteOffset,qe.byteLength)}(ye,Re);case w:case D:case S:case C:case O:case F:case L:case H:case M:return function(qe,Ft){var Tn=Ft?Es(qe.buffer):qe.buffer;return new qe.constructor(Tn,qe.byteOffset,qe.length)}(ye,Re);case l:return function(qe,Ft,Tn){return Y(Ft?Tn(ie(qe),!0):ie(qe),j,new qe.constructor)}(ye,Re,jt);case c:case g:return new Ge(ye);case d:return function(qe){var Ft=new qe.constructor(qe.source,K.exec(qe));return Ft.lastIndex=qe.lastIndex,Ft}(ye);case m:return function(qe,Ft,Tn){return Y(Ft?Tn(ve(qe),!0):ve(qe),$,new qe.constructor)}(ye,Re,jt);case v:return function(qe){return ws?Object(ws.call(qe)):{}}(ye)}}(T,Dn,xc,z)}}nt||(nt=new Mr);var $o=nt.get(T);if($o)return $o;if(nt.set(T,We),!Jt)var gi=ee?function(ye){return function(Xe,jt,Re){var Ge=jt(Xe);return _(Xe)?Ge:function(qe,Ft){for(var Tn=-1,Rn=Ft.length,zr=qe.length;++Tn<Rn;)qe[zr+Tn]=Ft[Tn];return qe}(Ge,Re(Xe))}(ye,je,Ac)}(T):je(T);return function(ye,Xe){for(var jt=-1,Re=ye?ye.length:0;++jt<Re&&Xe(ye[jt],jt,ye)!==!1;);}(gi||T,function(ye,Xe){gi&&(ye=T[Xe=ye]),wh(We,Xe,xc(ye,z,ee,ue,Xe,T,nt))}),We}function Mo(T){return!(!tt(T)||function(z){return!!de&&de in z}(T))&&(he(T)||U(T)?et:V).test(so(T))}function Es(T){var z=new T.constructor(T.byteLength);return new ze(z).set(new ze(T)),z}function Eh(T,z,ee,ue){ee||(ee={});for(var Me=-1,pt=z.length;++Me<pt;){var nt=z[Me],We=ue?ue(ee[nt],T[nt],nt,ee,T):void 0;wh(ee,nt,We===void 0?T[nt]:We)}return ee}function zo(T,z){var ee,ue,Me=T.__data__;return((ue=typeof(ee=z))=="string"||ue=="number"||ue=="symbol"||ue=="boolean"?ee!=="__proto__":ee===null)?Me[typeof z=="string"?"string":"hash"]:Me.map}function ao(T,z){var ee=function(ue,Me){return ue==null?void 0:ue[Me]}(T,z);return Mo(ee)?ee:void 0}Lr.prototype.clear=function(){this.__data__=rn?rn(null):{}},Lr.prototype.delete=function(T){return this.has(T)&&delete this.__data__[T]},Lr.prototype.get=function(T){var z=this.__data__;if(rn){var ee=z[T];return ee===n?void 0:ee}return kt.call(z,T)?z[T]:void 0},Lr.prototype.has=function(T){var z=this.__data__;return rn?z[T]!==void 0:kt.call(z,T)},Lr.prototype.set=function(T,z){return this.__data__[T]=rn&&z===void 0?n:z,this},gr.prototype.clear=function(){this.__data__=[]},gr.prototype.delete=function(T){var z=this.__data__,ee=Yn(z,T);return!(ee<0)&&(ee==z.length-1?z.pop():ys.call(z,ee,1),!0)},gr.prototype.get=function(T){var z=this.__data__,ee=Yn(z,T);return ee<0?void 0:z[ee][1]},gr.prototype.has=function(T){return Yn(this.__data__,T)>-1},gr.prototype.set=function(T,z){var ee=this.__data__,ue=Yn(ee,T);return ue<0?ee.push([T,z]):ee[ue][1]=z,this},Lo.prototype.clear=function(){this.__data__={hash:new Lr,map:new(bn||gr),string:new Lr}},Lo.prototype.delete=function(T){return zo(this,T).delete(T)},Lo.prototype.get=function(T){return zo(this,T).get(T)},Lo.prototype.has=function(T){return zo(this,T).has(T)},Lo.prototype.set=function(T,z){return zo(this,T).set(T,z),this},Mr.prototype.clear=function(){this.__data__=new gr},Mr.prototype.delete=function(T){return this.__data__.delete(T)},Mr.prototype.get=function(T){return this.__data__.get(T)},Mr.prototype.has=function(T){return this.__data__.has(T)},Mr.prototype.set=function(T,z){var ee=this.__data__;if(ee instanceof gr){var ue=ee.__data__;if(!bn||ue.length<199)return ue.push([T,z]),this;ee=this.__data__=new Lo(ue)}return ee.set(T,z),this};var Ac=Ha?ge(Ha,Object):function(){return[]},uo=function(T){return $e.call(T)};function Dh(T,z){return!!(z=z??r)&&(typeof T=="number"||G.test(T))&&T>-1&&T%1==0&&T<z}function hi(T){var z=T&&T.constructor;return T===(typeof z=="function"&&z.prototype||Ne)}function so(T){if(T!=null){try{return Oe.call(T)}catch{}try{return T+""}catch{}}return""}function Ch(T,z){return T===z||T!=T&&z!=z}(No&&uo(new No(new ArrayBuffer(1)))!=b||bn&&uo(new bn)!=l||wn&&uo(wn.resolve())!=p||En&&uo(new En)!=m||Fn&&uo(new Fn)!=y)&&(uo=function(T){var z=$e.call(T),ee=z==f?T.constructor:void 0,ue=ee?so(ee):void 0;if(ue)switch(ue){case hr:return b;case Sc:return l;case di:return p;case Ro:return m;case bs:return y}return z});var _=Array.isArray;function N(T){return T!=null&&function(z){return typeof z=="number"&&z>-1&&z%1==0&&z<=r}(T.length)&&!he(T)}var J=Rr||function(){return!1};function he(T){var z=tt(T)?$e.call(T):"";return z==u||z==s}function tt(T){var z=typeof T;return!!T&&(z=="object"||z=="function")}function je(T){return N(T)?pi(T):function(z){if(!hi(z))return io(z);var ee=[];for(var ue in Object(z))kt.call(z,ue)&&ue!="constructor"&&ee.push(ue);return ee}(T)}e.exports=function(T){return xc(T,!0,!0)}});function JA(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var OK=0;function BK(e){return"__private_"+OK+++"_"+e}function kK(e,t,n){const r=[];return e.forEach(o=>typeof o!="string"?r.push(o):t[Symbol.split](o).forEach((i,a,u)=>{i!==""&&r.push(i),a<u.length-1&&r.push(n)})),r}/**
- * Takes a string with placeholder variables like `%{smart_count} file selected`
- * and replaces it with values from options `{smart_count: 5}`
- *
- * @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
- * taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
- *
- * @param {string} phrase that needs interpolation, with placeholders
- * @param {object} options with values that will be used to replace placeholders
- * @returns {any[]} interpolated
- */function ZA(e,t){const n=/\$/g;let r=[e];if(t==null)return r;for(const o of Object.keys(t))if(o!=="_"){let i=t[o];typeof i=="string"&&(i=n[Symbol.replace](i,"$$$$")),r=kK(r,new RegExp(`%\\{${o}\\}`,"g"),i)}return r}var PP=(Os=BK("apply"),class{constructor(e){Object.defineProperty(this,Os,{value:FK}),this.locale={strings:{},pluralize:t=>t===1?0:1},Array.isArray(e)?e.forEach(JA(this,Os)[Os],this):JA(this,Os)[Os](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!function(r,o){return Object.prototype.hasOwnProperty.call(r,o)}(this.locale.strings,e))throw new Error(`missing string: ${e}`);const n=this.locale.strings[e];if(typeof n=="object"){if(t&&t.smart_count!==void 0)return ZA(n[this.locale.pluralize(t.smart_count)],t);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return ZA(n,t)}});function FK(e){if(e==null||!e.strings)return;const t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}var IP=function(){var e={},t=e._fns={};return e.emit=function(n,r,o,i,a,u,s){var l=function(c){for(var f=t[c]?t[c]:[],p=c.indexOf(":"),d=p===-1?[c]:[c.substring(0,p),c.substring(p+1)],m=Object.keys(t),g=0,v=m.length;g<v;g++){var y=m[g];if(y==="*"&&(f=f.concat(t[y])),d.length===2&&d[0]===y){f=f.concat(t[y]);break}}return f}(n);l.length&&function(c,f,p){for(var d=0,m=f.length;d<m&&f[d];d++)f[d].event=c,f[d].apply(f[d],p)}(n,l,[r,o,i,a,u,s])},e.on=function(n,r){t[n]||(t[n]=[]),t[n].push(r)},e.once=function(n,r){this.on(n,function o(){r.apply(this,arguments),e.off(n,o)})},e.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]},e},TK={urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"};let{urlAlphabet:_K}=TK,QA=e=>crypto.getRandomValues(new Uint8Array(e)),e7=(e,t,n)=>{let r=(2<<Math.log(e.length-1)/Math.LN2)-1,o=-~(1.6*r*t/e.length);return()=>{let i="";for(;;){let a=n(o),u=o;for(;u--;)if(i+=e[a[u]&r]||"",i.length===t)return i}}};var jK={nanoid:(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t},customAlphabet:(e,t)=>e7(e,t,QA),customRandom:e7,urlAlphabet:_K,random:QA},Ty=function(e){if(typeof e!="number"||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var r=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1);e=Number(e/Math.pow(1024,r));var o=n[r];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+o:(t?"-":"")+e.toFixed(1)+" "+o};function NP(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}NP.prototype.match=function(e){var t,n,r=!0,o=this.parts,i=o.length;if(typeof e=="string"||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||"").split(this.separator),t=0;r&&t<i;t++)o[t]!=="*"&&(r=t<n.length&&o[t]===n[t]);r=r&&n}else r=!1;else if(typeof e.splice=="function")for(r=[],t=e.length;t--;)this.match(e[t])&&(r[r.length]=e[t]);else if(typeof e=="object")for(var a in r={},e)this.match(a)&&(r[a]=e[a]);return r};var PK=/[\/\+\.]/,IK=function(e,t){function n(r){var o=function(i,a,u){var s=new NP(i,u||/[\/\.]/);return a!==void 0?s.match(a):s}(r,e,PK);return o&&o.length>=2}return t?n(t.split(";")[0]):n},NK=0;function RK(e){return"__private_"+NK+++"_"+e}var _y=RK("publish");class RP{constructor(){Object.defineProperty(this,_y,{value:LK}),this.state={},this.callbacks=[]}getState(){return this.state}setState(t){const n={...this.state},r={...this.state,...t};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,_y)[_y](n,r,t)}subscribe(t){return this.callbacks.push(t),()=>{this.callbacks.splice(this.callbacks.indexOf(t),1)}}}function LK(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach(r=>{r(...t)})}RP.VERSION="2.0.3";var t7=function(e){const t=e.lastIndexOf(".");return t===-1||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}},n7={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 r7(e){let t="";return e.replace(/[^A-Z0-9]/gi,n=>(t+=`-${function(r){return r.charCodeAt(0).toString(32)}(n)}`,"/"))+t}var MK=function(e){if(e==null&&(e=typeof navigator<"u"?navigator.userAgent:null),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const n=t[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},LP={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]}},debugLogger:{debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]},warn:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]}}},zK={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}"}}},MP=jK;let zP,$P;function fe(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var $K=0;function Xt(e){return"__private_"+$K+++"_"+e}const{nanoid:HK}=MP,{justErrorsLogger:UK,debugLogger:VK}=LP;class mo extends Error{constructor(){super(...arguments),this.isRestriction=!0}}typeof AggregateError>"u"&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}});class WK extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var pn=Xt("plugins"),Lc=Xt("storeUnsubscribe"),Uo=Xt("emitter"),fu=Xt("preProcessors"),du=Xt("uploaders"),Yo=Xt("postProcessors"),ud=Xt("checkRestrictions"),jy=Xt("checkMinNumberOfFiles"),$d=Xt("checkRequiredMetaFieldsOnFile"),Py=Xt("checkRequiredMetaFields"),Zt=Xt("showOrLogErrorAndThrow"),Mc=Xt("assertNewUploadAllowed"),zc=Xt("checkAndCreateFileStateObject"),$c=Xt("startIfAutoProceed"),Iy=Xt("addListeners"),Hr=Xt("updateOnlineStatus"),Vo=Xt("createUpload"),Ny=Xt("getUpload"),vu=Xt("removeUpload"),Wo=Xt("runUpload");zP=Symbol.for("uppy test: getPlugins"),$P=Symbol.for("uppy test: createUpload");class HP{constructor(t){Object.defineProperty(this,Wo,{value:oY}),Object.defineProperty(this,vu,{value:rY}),Object.defineProperty(this,Ny,{value:nY}),Object.defineProperty(this,Vo,{value:tY}),Object.defineProperty(this,Iy,{value:eY}),Object.defineProperty(this,$c,{value:QK}),Object.defineProperty(this,zc,{value:ZK}),Object.defineProperty(this,Mc,{value:JK}),Object.defineProperty(this,Zt,{value:XK}),Object.defineProperty(this,Py,{value:YK}),Object.defineProperty(this,$d,{value:KK}),Object.defineProperty(this,jy,{value:qK}),Object.defineProperty(this,ud,{value:GK}),Object.defineProperty(this,pn,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,Lc,{writable:!0,value:void 0}),Object.defineProperty(this,Uo,{writable:!0,value:IP()}),Object.defineProperty(this,fu,{writable:!0,value:new Set}),Object.defineProperty(this,du,{writable:!0,value:new Set}),Object.defineProperty(this,Yo,{writable:!0,value:new Set}),Object.defineProperty(this,Hr,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=zK;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 RP,logger:UK,infoTimeout:5e3};if(this.opts={...n,...t,restrictions:{...n.restrictions,...t&&t.restrictions}},t&&t.logger&&t.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"):t&&t.debug&&(this.opts.logger=VK),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=Ku(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:MK(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),fe(this,Lc)[Lc]=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),fe(this,Iy)[Iy]()}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];fe(this,Uo)[Uo].emit(t,...r)}on(t,n){return fe(this,Uo)[Uo].on(t,n),this}once(t,n){return fe(this,Uo)[Uo].once(t,n),this}off(t,n){return fe(this,Uo)[Uo].off(t,n),this}updateAll(t){this.iteratePlugins(n=>{n.update(t)})}setState(t){this.store.setState(t)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(t,n){if(!this.getState().files[t])throw new Error(`Can’t set state for ${t} (the file could have been removed)`);this.setState({files:{...this.getState().files,[t]:{...this.getState().files[t],...n}}})}i18nInit(){const t=new PP([this.defaultLocale,this.opts.locale]);this.i18n=t.translate.bind(t),this.i18nArray=t.translateArray.bind(t),this.locale=t.locale}setOptions(t){this.opts={...this.opts,...t,restrictions:{...this.opts.restrictions,...t&&t.restrictions}},t.meta&&this.setMeta(t.meta),this.i18nInit(),t.locale&&this.iteratePlugins(n=>{n.setOptions()}),this.setState()}resetProgress(){const t={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,...t},r[o]=i}),this.setState({files:r,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(t){fe(this,fu)[fu].add(t)}removePreProcessor(t){return fe(this,fu)[fu].delete(t)}addPostProcessor(t){fe(this,Yo)[Yo].add(t)}removePostProcessor(t){return fe(this,Yo)[Yo].delete(t)}addUploader(t){fe(this,du)[du].add(t)}removeUploader(t){return fe(this,du)[du].delete(t)}setMeta(t){const n={...this.getState().meta,...t},r={...this.getState().files};Object.keys(r).forEach(o=>{r[o]={...r[o],meta:{...r[o].meta,...t}}}),this.log("Adding metadata:"),this.log(t),this.setState({meta:n,files:r})}setFileMeta(t,n){const r={...this.getState().files};if(!r[t])return void this.log("Was trying to set metadata for a file that has been removed: ",t);const o={...r[t].meta,...n};r[t]={...r[t],meta:o},this.setState({files:r})}getFile(t){return this.getState().files[t]}getFiles(){const{files:t}=this.getState();return Object.values(t)}getObjectOfFilesPerState(){const{files:t,totalProgress:n,error:r}=this.getState(),o=Object.values(t),i=o.filter(m=>{let{progress:g}=m;return!g.uploadComplete&&g.uploadStarted}),a=o.filter(m=>!m.progress.uploadStarted),u=o.filter(m=>m.progress.uploadStarted||m.progress.preprocess||m.progress.postprocess),s=o.filter(m=>m.progress.uploadStarted),l=o.filter(m=>m.isPaused),c=o.filter(m=>m.progress.uploadComplete),f=o.filter(m=>m.error),p=i.filter(m=>!m.isPaused),d=o.filter(m=>m.progress.preprocess||m.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(m=>m.isGhost)}}validateRestrictions(t,n){try{return fe(this,ud)[ud](t,n),{result:!0}}catch(r){return{result:!1,reason:r.message}}}checkIfFileAlreadyExists(t){const{files:n}=this.getState();return!(!n[t]||n[t].isGhost)}addFile(t){fe(this,Mc)[Mc](t);const{files:n}=this.getState();let r=fe(this,zc)[zc](n,t);return n[r.id]&&n[r.id].isGhost&&(r={...n[r.id],data:t.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}`),fe(this,$c)[$c](),r.id}addFiles(t){fe(this,Mc)[Mc]();const n={...this.getState().files},r=[],o=[];for(let i=0;i<t.length;i++)try{let a=fe(this,zc)[zc](n,t[i]);n[a.id]&&n[a.id].isGhost&&(a={...n[a.id],data:t[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&&fe(this,$c)[$c](),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(t,n){const{files:r,currentUploads:o}=this.getState(),i={...r},a={...o},u=Object.create(null);function s(f){return u[f]===void 0}t.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(t,n){n===void 0&&(n=null),this.removeFiles([t],n)}pauseResume(t){if(!this.getState().capabilities.resumableUploads||this.getFile(t).uploadComplete)return;const n=!this.getFile(t).isPaused;return this.setFileState(t,{isPaused:n}),this.emit("upload-pause",t,n),n}pauseAll(){const t={...this.getState().files};Object.keys(t).filter(n=>!t[n].progress.uploadComplete&&t[n].progress.uploadStarted).forEach(n=>{const r={...t[n],isPaused:!0};t[n]=r}),this.setState({files:t}),this.emit("pause-all")}resumeAll(){const t={...this.getState().files};Object.keys(t).filter(n=>!t[n].progress.uploadComplete&&t[n].progress.uploadStarted).forEach(n=>{const r={...t[n],isPaused:!1,error:null};t[n]=r}),this.setState({files:t}),this.emit("resume-all")}retryAll(){const t={...this.getState().files},n=Object.keys(t).filter(o=>t[o].error);if(n.forEach(o=>{const i={...t[o],isPaused:!1,error:null};t[o]=i}),this.setState({files:t,error:null}),this.emit("retry-all",n),n.length===0)return Promise.resolve({successful:[],failed:[]});const r=fe(this,Vo)[Vo](n,{forceAllowNewUpload:!0});return fe(this,Wo)[Wo](r)}cancelAll(){this.emit("cancel-all");const{files:t}=this.getState(),n=Object.keys(t);n.length&&this.removeFiles(n,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(t){this.setFileState(t,{error:null,isPaused:!1}),this.emit("upload-retry",t);const n=fe(this,Vo)[Vo]([t],{forceAllowNewUpload:!0});return fe(this,Wo)[Wo](n)}reset(){this.cancelAll()}logout(){this.iteratePlugins(t=>{t.provider&&t.provider.logout&&t.provider.logout()})}calculateProgress(t,n){if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const r=Number.isFinite(n.bytesTotal)&&n.bytesTotal>0;this.setFileState(t.id,{progress:{...this.getFile(t.id).progress,bytesUploaded:n.bytesUploaded,bytesTotal:n.bytesTotal,percentage:r?Math.round(n.bytesUploaded/n.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const t=this.getFiles().filter(s=>s.progress.uploadStarted||s.progress.preprocess||s.progress.postprocess);if(t.length===0)return this.emit("progress",0),void this.setState({totalProgress:0});const n=t.filter(s=>s.progress.bytesTotal!=null),r=t.filter(s=>s.progress.bytesTotal==null);if(n.length===0){const s=100*t.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(t,n){if(typeof t!="function")throw new TypeError(`Expected a plugin class, but got ${t===null?"null":typeof t}. Please verify that the plugin was imported and spelled correctly.`);const r=new t(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 t.VERSION&&this.log(`Using ${o} v${t.VERSION}`),r.type in fe(this,pn)[pn]?fe(this,pn)[pn][r.type].push(r):fe(this,pn)[pn][r.type]=[r],r.install(),this}getPlugin(t){for(const n of Object.values(fe(this,pn)[pn])){const r=n.find(o=>o.id===t);if(r!=null)return r}}[zP](t){return fe(this,pn)[pn][t]}iteratePlugins(t){Object.values(fe(this,pn)[pn]).flat(1).forEach(t)}removePlugin(t){this.log(`Removing plugin ${t.id}`),this.emit("plugin-remove",t),t.uninstall&&t.uninstall();const n=fe(this,pn)[pn][t.type],r=n.findIndex(i=>i.id===t.id);r!==-1&&n.splice(r,1);const o={plugins:{...this.getState().plugins,[t.id]:void 0}};this.setState(o)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),fe(this,Lc)[Lc](),this.iteratePlugins(t=>{this.removePlugin(t)}),typeof window<"u"&&window.removeEventListener&&(window.removeEventListener("online",fe(this,Hr)[Hr]),window.removeEventListener("offline",fe(this,Hr)[Hr]))}hideInfo(){const{info:t}=this.getState();this.setState({info:t.slice(1)}),this.emit("info-hidden")}info(t,n,r){n===void 0&&(n="info"),r===void 0&&(r=3e3);const o=typeof t=="object";this.setState({info:[...this.getState().info,{type:n,message:o?t.message:t,details:o?t.details:null}]}),setTimeout(()=>this.hideInfo(),r),this.emit("info-visible")}log(t,n){const{logger:r}=this.opts;switch(n){case"error":r.error(t);break;case"warning":r.warn(t);break;default:r.debug(t)}}restore(t){return this.log(`Core: attempting to restore upload "${t}"`),this.getState().currentUploads[t]?fe(this,Wo)[Wo](t):(fe(this,vu)[vu](t),Promise.reject(new Error("Nonexistent upload")))}[$P](){return fe(this,Vo)[Vo](...arguments)}addResultData(t,n){if(!fe(this,Ny)[Ny](t))return void this.log(`Not setting result for an upload that has been removed: ${t}`);const{currentUploads:r}=this.getState(),o={...r[t],result:{...r[t].result,...n}};this.setState({currentUploads:{...r,[t]:o}})}upload(){var t;(t=fe(this,pn)[pn].uploader)!=null&&t.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(()=>{fe(this,jy)[jy](n),fe(this,Py)[Py](n)}).catch(o=>{fe(this,Zt)[Zt](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=fe(this,Vo)[Vo](a);return fe(this,Wo)[Wo](u)}).catch(o=>{fe(this,Zt)[Zt](o,{showInformer:!1})}))}}function GK(e,t){t===void 0&&(t=this.getFiles());const{maxFileSize:n,minFileSize:r,maxTotalFileSize:o,maxNumberOfFiles:i,allowedFileTypes:a}=this.opts.restrictions;if(i&&t.length+1>i)throw new mo(`${this.i18n("youCanOnlyUploadX",{smart_count:i})}`);if(a&&!a.some(u=>u.indexOf("/")>-1?!!e.type&&IK(e.type.replace(/;.*?$/,""),u):!(u[0]!=="."||!e.extension)&&e.extension.toLowerCase()===u.substr(1).toLowerCase())){const u=a.join(", ");throw new mo(this.i18n("youCanOnlyUploadFileTypes",{types:u}))}if(o&&e.size!=null){let u=0;if(u+=e.size,t.forEach(s=>{u+=s.size}),u>o)throw new mo(this.i18n("exceedsSize",{size:Ty(o),file:e.name}))}if(n&&e.size!=null&&e.size>n)throw new mo(this.i18n("exceedsSize",{size:Ty(n),file:e.name}));if(r&&e.size!=null&&e.size<r)throw new mo(this.i18n("inferiorSize",{size:Ty(r)}))}function qK(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new mo(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:t})}`)}function KK(e){const{requiredMetaFields:t}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],o=[];for(let i=0;i<t.length;i++)if(!n.call(e.meta,t[i])||e.meta[t[i]]===""){const a=new mo(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})}`);r.push(a),o.push(t[i]),fe(this,Zt)[Zt](a,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:o}),r}function YK(e){const t=Object.keys(e).flatMap(n=>{const r=this.getFile(n);return fe(this,$d)[$d](r)});if(t.length)throw new WK(t,`${this.i18n("missingRequiredMetaField")}`)}function XK(e,t){let{showInformer:n=!0,file:r=null,throwErr:o=!0}=t===void 0?{}:t;const i=typeof e=="object"?e.message:e,a=typeof e=="object"&&e.details?e.details:"";let u=i;if(a&&(u+=` ${a}`),e.isRestriction?(this.log(u),this.emit("restriction-failed",r,e)):this.log(u,"error"),n&&this.info({message:i,details:a},"error",this.opts.infoTimeout),o)throw typeof e=="object"?e:new Error(e)}function JK(e){const{allowNewUpload:t}=this.getState();t===!1&&fe(this,Zt)[Zt](new mo(this.i18n("noMoreFilesAllowed")),{file:e})}function ZK(e,t){const n=function(f){var p;if(f.type)return f.type;const d=f.name?(p=t7(f.name).extension)==null?void 0:p.toLowerCase():null;return d&&d in n7?n7[d]:"application/octet-stream"}(t),r=function(f,p){return p.name?p.name:f.split("/")[0]==="image"?`${f.split("/")[0]}.${f.split("/")[1]}`:"noname"}(n,t),o=t7(r).extension,i=!!t.isRemote,a=function(f){let p="uppy";return typeof f.name=="string"&&(p+=`-${r7(f.name.toLowerCase())}`),f.type!==void 0&&(p+=`-${f.type}`),f.meta&&typeof f.meta.relativePath=="string"&&(p+=`-${r7(f.meta.relativePath.toLowerCase())}`),f.data.size!==void 0&&(p+=`-${f.data.size}`),f.data.lastModified!==void 0&&(p+=`-${f.data.lastModified}`),p}({...t,type:n});if(this.checkIfFileAlreadyExists(a)){const f=new mo(this.i18n("noDuplicates",{fileName:r}));fe(this,Zt)[Zt](f,{file:t})}const u=t.meta||{};u.name=r,u.type=n;const s=Number.isFinite(t.data.size)?t.data.size:null;let l={source:t.source||"",id:a,name:r,extension:o||"",meta:{...this.getState().meta,...u},type:n,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:s,uploadComplete:!1,uploadStarted:null},size:s,isRemote:i,remote:t.remote||"",preview:t.preview};const c=this.opts.onBeforeFileAdded(l,e);c===!1?fe(this,Zt)[Zt](new mo("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:t}):typeof c=="object"&&c!==null&&(l=c);try{const f=Object.keys(e).map(p=>e[p]);fe(this,ud)[ud](l,f)}catch(f){fe(this,Zt)[Zt](f,{file:l})}return l}function QK(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(()=>{this.scheduledAutoProceed=null,this.upload().catch(e=>{e.isRestriction||this.log(e.stack||e.message||e)})},4))}function eY(){const e=(t,n,r)=>{let o=t.message||"Unknown error";t.details&&(o+=` ${t.details}`),this.setState({error:o}),n!=null&&n.id in this.getState().files&&this.setFileState(n.id,{error:o,response:r})};this.on("error",e),this.on("upload-error",(t,n,r)=>{if(e(n,t,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:t.name}),fe(this,Zt)[Zt](o,{throwErr:!1})}else fe(this,Zt)[Zt](n,{throwErr:!1})}),this.on("upload",()=>{this.setState({error:null})}),this.on("upload-started",t=>{this.getFile(t.id)?this.setFileState(t.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:t.size}}):this.log(`Not setting progress for a file that has been removed: ${t.id}`)}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(t,n)=>{if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const r=this.getFile(t.id).progress;this.setFileState(t.id,{progress:{...r,postprocess:fe(this,Yo)[Yo].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:r.bytesTotal},response:n,uploadURL:n.uploadURL,isPaused:!1}),t.size==null&&this.setFileState(t.id,{size:n.bytesUploaded||r.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(t,n)=>{this.getFile(t.id)?this.setFileState(t.id,{progress:{...this.getFile(t.id).progress,preprocess:n}}):this.log(`Not setting progress for a file that has been removed: ${t.id}`)}),this.on("preprocess-complete",t=>{if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const n={...this.getState().files};n[t.id]={...n[t.id],progress:{...n[t.id].progress}},delete n[t.id].progress.preprocess,this.setState({files:n})}),this.on("postprocess-progress",(t,n)=>{this.getFile(t.id)?this.setFileState(t.id,{progress:{...this.getState().files[t.id].progress,postprocess:n}}):this.log(`Not setting progress for a file that has been removed: ${t.id}`)}),this.on("postprocess-complete",t=>{if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const n={...this.getState().files};n[t.id]={...n[t.id],progress:{...n[t.id].progress}},delete n[t.id].progress.postprocess,this.setState({files:n})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",t=>{t&&fe(this,$d)[$d](t)}),typeof window<"u"&&window.addEventListener&&(window.addEventListener("online",fe(this,Hr)[Hr]),window.addEventListener("offline",fe(this,Hr)[Hr]),setTimeout(fe(this,Hr)[Hr],3e3))}function tY(e,t){t===void 0&&(t={});const{forceAllowNewUpload:n=!1}=t,{allowNewUpload:r,currentUploads:o}=this.getState();if(!r&&!n)throw new Error("Cannot create a new upload: already uploading.");const i=HK();return this.emit("upload",{id:i,fileIDs:e}),this.setState({allowNewUpload:this.opts.allowMultipleUploadBatches!==!1&&this.opts.allowMultipleUploads!==!1,currentUploads:{...o,[i]:{fileIDs:e,step:0,result:{}}}}),i}function nY(e){const{currentUploads:t}=this.getState();return t[e]}function rY(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function oY(e){let{currentUploads:t}=this.getState(),n=t[e];const r=n.step||0,o=[...fe(this,fu)[fu],...fe(this,du)[du],...fe(this,Yo)[Yo]];try{for(let a=r;a<o.length&&n;a++){const u=o[a],s={...n,step:a};this.setState({currentUploads:{...t,[e]:s}}),await u(s.fileIDs,e),t=this.getState().currentUploads,n=t[e]}}catch(a){throw this.emit("error",a),fe(this,vu)[vu](e),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(e,{successful:u,failed:s,uploadID:e}),t=this.getState().currentUploads,n=t[e]}let i;return n&&(i=n.result,this.emit("complete",i),fe(this,vu)[vu](e)),i==null&&this.log(`Not setting result for an upload that has been removed: ${e}`),i}HP.VERSION="2.1.3";var UP=HP,iY=as(function(e,t){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,x){for(var j in x)B[j]=x[j];return B}function m(B){var x=B.parentNode;x&&x.removeChild(B)}function g(B,x,j){var $,Y,U,ie={};for(U in x)U=="key"?$=x[U]:U=="ref"?Y=x[U]:ie[U]=x[U];if(arguments.length>2&&(ie.children=arguments.length>3?n.call(arguments,2):j),typeof B=="function"&&B.defaultProps!=null)for(U in B.defaultProps)ie[U]===void 0&&(ie[U]=B.defaultProps[U]);return v(B,ie,$,Y,null)}function v(B,x,j,$,Y){var U={type:B,props:x,key:j,ref:$,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:Y??++o};return Y==null&&r.vnode!=null&&r.vnode(U),U}function y(B){return B.children}function h(B,x){this.props=B,this.context=x}function b(B,x){if(x==null)return B.__?b(B.__,B.__.__k.indexOf(B)+1):null;for(var j;x<B.__k.length;x++)if((j=B.__k[x])!=null&&j.__e!=null)return j.__e;return typeof B.type=="function"?b(B):null}function w(B){var x,j;if((B=B.__)!=null&&B.__c!=null){for(B.__e=B.__c.base=null,x=0;x<B.__k.length;x++)if((j=B.__k[x])!=null&&j.__e!=null){B.__e=B.__c.base=j.__e;break}return w(B)}}function D(B){(!B.__d&&(B.__d=!0)&&a.push(B)&&!S.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||u)(S)}function S(){for(var B;S.__r=a.length;)B=a.sort(function(x,j){return x.__v.__b-j.__v.__b}),a=[],B.some(function(x){var j,$,Y,U,ie,ge;x.__d&&(ie=(U=(j=x).__v).__e,(ge=j.__P)&&($=[],(Y=d({},U)).__v=U.__v+1,V(ge,U,Y,j.__n,ge.ownerSVGElement!==void 0,U.__h!=null?[ie]:null,$,ie??b(U),U.__h),G($,U),U.__e!=ie&&w(U)))})}function C(B,x,j,$,Y,U,ie,ge,ve,De){var W,Ne,Ae,de,Oe,kt,$e,et=$&&$.__k||f,mt=et.length;for(j.__k=[],W=0;W<x.length;W++)if((de=j.__k[W]=(de=x[W])==null||typeof de=="boolean"?null:typeof de=="string"||typeof de=="number"||typeof de=="bigint"?v(null,de,null,null,de):Array.isArray(de)?v(y,{children:de},null,null,null):de.__b>0?v(de.type,de.props,de.key,null,de.__v):de)!=null){if(de.__=j,de.__b=j.__b+1,(Ae=et[W])===null||Ae&&de.key==Ae.key&&de.type===Ae.type)et[W]=void 0;else for(Ne=0;Ne<mt;Ne++){if((Ae=et[Ne])&&de.key==Ae.key&&de.type===Ae.type){et[Ne]=void 0;break}Ae=null}V(B,de,Ae=Ae||c,Y,U,ie,ge,ve,De),Oe=de.__e,(Ne=de.ref)&&Ae.ref!=Ne&&($e||($e=[]),Ae.ref&&$e.push(Ae.ref,null,de),$e.push(Ne,de.__c||Oe,de)),Oe!=null?(kt==null&&(kt=Oe),typeof de.type=="function"&&de.__k===Ae.__k?de.__d=ve=O(de,ve,B):ve=F(B,de,Ae,et,Oe,ve),typeof j.type=="function"&&(j.__d=ve)):ve&&Ae.__e==ve&&ve.parentNode!=B&&(ve=b(Ae))}for(j.__e=kt,W=mt;W--;)et[W]!=null&&(typeof j.type=="function"&&et[W].__e!=null&&et[W].__e==j.__d&&(j.__d=b($,W+1)),le(et[W],et[W]));if($e)for(W=0;W<$e.length;W++)re($e[W],$e[++W],$e[++W])}function O(B,x,j){for(var $,Y=B.__k,U=0;Y&&U<Y.length;U++)($=Y[U])&&($.__=B,x=typeof $.type=="function"?O($,x,j):F(j,$,$,Y,$.__e,x));return x}function F(B,x,j,$,Y,U){var ie,ge,ve;if(x.__d!==void 0)ie=x.__d,x.__d=void 0;else if(j==null||Y!=U||Y.parentNode==null)e:if(U==null||U.parentNode!==B)B.appendChild(Y),ie=null;else{for(ge=U,ve=0;(ge=ge.nextSibling)&&ve<$.length;ve+=2)if(ge==Y)break e;B.insertBefore(Y,U),ie=U}return ie!==void 0?ie:Y.nextSibling}function L(B,x,j){x[0]==="-"?B.setProperty(x,j):B[x]=j==null?"":typeof j!="number"||p.test(x)?j:j+"px"}function H(B,x,j,$,Y){var U;e:if(x==="style")if(typeof j=="string")B.style.cssText=j;else{if(typeof $=="string"&&(B.style.cssText=$=""),$)for(x in $)j&&x in j||L(B.style,x,"");if(j)for(x in j)$&&j[x]===$[x]||L(B.style,x,j[x])}else if(x[0]==="o"&&x[1]==="n")U=x!==(x=x.replace(/Capture$/,"")),x=x.toLowerCase()in B?x.toLowerCase().slice(2):x.slice(2),B.l||(B.l={}),B.l[x+U]=j,j?$||B.addEventListener(x,U?K:M,U):B.removeEventListener(x,U?K:M,U);else if(x!=="dangerouslySetInnerHTML"){if(Y)x=x.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(x!=="href"&&x!=="list"&&x!=="form"&&x!=="tabIndex"&&x!=="download"&&x in B)try{B[x]=j??"";break e}catch{}typeof j=="function"||(j!=null&&(j!==!1||x[0]==="a"&&x[1]==="r")?B.setAttribute(x,j):B.removeAttribute(x))}}function M(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,x,j,$,Y,U,ie,ge,ve){var De,W,Ne,Ae,de,Oe,kt,$e,et,mt,yn,ze=x.type;if(x.constructor!==void 0)return null;j.__h!=null&&(ve=j.__h,ge=x.__e=j.__e,x.__h=null,U=[ge]),(De=r.__b)&&De(x);try{e:if(typeof ze=="function"){if($e=x.props,et=(De=ze.contextType)&&$[De.__c],mt=De?et?et.props.value:De.__:$,j.__c?kt=(W=x.__c=j.__c).__=W.__E:("prototype"in ze&&ze.prototype.render?x.__c=W=new ze($e,mt):(x.__c=W=new h($e,mt),W.constructor=ze,W.render=se),et&&et.sub(W),W.props=$e,W.state||(W.state={}),W.context=mt,W.__n=$,Ne=W.__d=!0,W.__h=[]),W.__s==null&&(W.__s=W.state),ze.getDerivedStateFromProps!=null&&(W.__s==W.state&&(W.__s=d({},W.__s)),d(W.__s,ze.getDerivedStateFromProps($e,W.__s))),Ae=W.props,de=W.state,Ne)ze.getDerivedStateFromProps==null&&W.componentWillMount!=null&&W.componentWillMount(),W.componentDidMount!=null&&W.__h.push(W.componentDidMount);else{if(ze.getDerivedStateFromProps==null&&$e!==Ae&&W.componentWillReceiveProps!=null&&W.componentWillReceiveProps($e,mt),!W.__e&&W.shouldComponentUpdate!=null&&W.shouldComponentUpdate($e,W.__s,mt)===!1||x.__v===j.__v){W.props=$e,W.state=W.__s,x.__v!==j.__v&&(W.__d=!1),W.__v=x,x.__e=j.__e,x.__k=j.__k,x.__k.forEach(function(Nn){Nn&&(Nn.__=x)}),W.__h.length&&ie.push(W);break e}W.componentWillUpdate!=null&&W.componentWillUpdate($e,W.__s,mt),W.componentDidUpdate!=null&&W.__h.push(function(){W.componentDidUpdate(Ae,de,Oe)})}W.context=mt,W.props=$e,W.state=W.__s,(De=r.__r)&&De(x),W.__d=!1,W.__v=x,W.__P=B,De=W.render(W.props,W.state,W.context),W.state=W.__s,W.getChildContext!=null&&($=d(d({},$),W.getChildContext())),Ne||W.getSnapshotBeforeUpdate==null||(Oe=W.getSnapshotBeforeUpdate(Ae,de)),yn=De!=null&&De.type===y&&De.key==null?De.props.children:De,C(B,Array.isArray(yn)?yn:[yn],x,j,$,Y,U,ie,ge,ve),W.base=x.__e,x.__h=null,W.__h.length&&ie.push(W),kt&&(W.__E=W.__=null),W.__e=!1}else U==null&&x.__v===j.__v?(x.__k=j.__k,x.__e=j.__e):x.__e=q(j.__e,x,j,$,Y,U,ie,ve);(De=r.diffed)&&De(x)}catch(Nn){x.__v=null,(ve||U!=null)&&(x.__e=ge,x.__h=!!ve,U[U.indexOf(ge)]=null),r.__e(Nn,x,j)}}function G(B,x){r.__c&&r.__c(x,B),B.some(function(j){try{B=j.__h,j.__h=[],B.some(function($){$.call(j)})}catch($){r.__e($,j.__v)}})}function q(B,x,j,$,Y,U,ie,ge){var ve,De,W,Ne=j.props,Ae=x.props,de=x.type,Oe=0;if(de==="svg"&&(Y=!0),U!=null){for(;Oe<U.length;Oe++)if((ve=U[Oe])&&"setAttribute"in ve==!!de&&(de?ve.localName===de:ve.nodeType===3)){B=ve,U[Oe]=null;break}}if(B==null){if(de===null)return document.createTextNode(Ae);B=Y?document.createElementNS("http://www.w3.org/2000/svg",de):document.createElement(de,Ae.is&&Ae),U=null,ge=!1}if(de===null)Ne===Ae||ge&&B.data===Ae||(B.data=Ae);else{if(U=U&&n.call(B.childNodes),De=(Ne=j.props||c).dangerouslySetInnerHTML,W=Ae.dangerouslySetInnerHTML,!ge){if(U!=null)for(Ne={},Oe=0;Oe<B.attributes.length;Oe++)Ne[B.attributes[Oe].name]=B.attributes[Oe].value;(W||De)&&(W&&(De&&W.__html==De.__html||W.__html===B.innerHTML)||(B.innerHTML=W&&W.__html||""))}if(function(kt,$e,et,mt,yn){var ze;for(ze in et)ze==="children"||ze==="key"||ze in $e||H(kt,ze,null,et[ze],mt);for(ze in $e)yn&&typeof $e[ze]!="function"||ze==="children"||ze==="key"||ze==="value"||ze==="checked"||et[ze]===$e[ze]||H(kt,ze,$e[ze],et[ze],mt)}(B,Ae,Ne,Y,ge),W)x.__k=[];else if(Oe=x.props.children,C(B,Array.isArray(Oe)?Oe:[Oe],x,j,$,Y&&de!=="foreignObject",U,ie,U?U[0]:j.__k&&b(j,0),ge),U!=null)for(Oe=U.length;Oe--;)U[Oe]!=null&&m(U[Oe]);ge||("value"in Ae&&(Oe=Ae.value)!==void 0&&(Oe!==Ne.value||Oe!==B.value||de==="progress"&&!Oe)&&H(B,"value",Oe,Ne.value,!1),"checked"in Ae&&(Oe=Ae.checked)!==void 0&&Oe!==B.checked&&H(B,"checked",Oe,Ne.checked,!1))}return B}function re(B,x,j){try{typeof B=="function"?B(x):B.current=x}catch($){r.__e($,j)}}function le(B,x,j){var $,Y;if(r.unmount&&r.unmount(B),($=B.ref)&&($.current&&$.current!==B.__e||re($,null,x)),($=B.__c)!=null){if($.componentWillUnmount)try{$.componentWillUnmount()}catch(U){r.__e(U,x)}$.base=$.__P=null}if($=B.__k)for(Y=0;Y<$.length;Y++)$[Y]&&le($[Y],x,typeof B.type!="function");j||B.__e==null||m(B.__e),B.__e=B.__d=void 0}function se(B,x,j){return this.constructor(B,j)}function ae(B,x,j){var $,Y,U;r.__&&r.__(B,x),Y=($=typeof j=="function")?null:j&&j.__k||x.__k,U=[],V(x,B=(!$&&j||x).__k=g(y,null,[B]),Y||c,c,x.ownerSVGElement!==void 0,!$&&j?[j]:Y?null:x.firstChild?n.call(x.childNodes):null,U,!$&&j?j:Y?Y.__e:x.firstChild,$),G(U,B)}n=f.slice,r={__e:function(B,x){for(var j,$,Y;x=x.__;)if((j=x.__c)&&!j.__)try{if(($=j.constructor)&&$.getDerivedStateFromError!=null&&(j.setState($.getDerivedStateFromError(B)),Y=j.__d),j.componentDidCatch!=null&&(j.componentDidCatch(B),Y=j.__d),Y)return j.__E=j}catch(U){B=U}throw B}},o=0,i=function(B){return B!=null&&B.constructor===void 0},h.prototype.setState=function(B,x){var j;j=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=d({},this.state),typeof B=="function"&&(B=B(d({},j),this.props)),B&&d(j,B),B!=null&&this.__v&&(x&&this.__h.push(x),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,S.__r=0,l=0,t.Component=h,t.Fragment=y,t.cloneElement=function(B,x,j){var $,Y,U,ie=d({},B.props);for(U in x)U=="key"?$=x[U]:U=="ref"?Y=x[U]:ie[U]=x[U];return arguments.length>2&&(ie.children=arguments.length>3?n.call(arguments,2):j),v(B.type,ie,$||B.key,Y||B.ref,null)},t.createContext=function(B,x){var j={__c:x="__cC"+l++,__:B,Consumer:function($,Y){return $.children(Y)},Provider:function($){var Y,U;return this.getChildContext||(Y=[],(U={})[x]=this,this.getChildContext=function(){return U},this.shouldComponentUpdate=function(ie){this.props.value!==ie.value&&Y.some(D)},this.sub=function(ie){Y.push(ie);var ge=ie.componentWillUnmount;ie.componentWillUnmount=function(){Y.splice(Y.indexOf(ie),1),ge&&ge.call(ie)}}),$.children}};return j.Provider.__=j.Consumer.contextType=j},t.createElement=g,t.createRef=function(){return{current:null}},t.h=g,t.hydrate=function B(x,j){ae(x,j,B)},t.isValidElement=i,t.options=r,t.render=ae,t.toChildArray=function B(x,j){return j=j||[],x==null||typeof x=="boolean"||(Array.isArray(x)?x.some(function($){B($,j)}):j.push(x)),j}}),aY=function(e,t){return t===void 0&&(t=document),typeof e=="string"?t.querySelector(e):((n=e)==null?void 0:n.nodeType)===Node.ELEMENT_NODE?e:null;var n},V5=class{constructor(e,t){t===void 0&&(t={}),this.uppy=e,this.opts=t}getPluginState(){const{plugins:e}=this.uppy.getState();return e[this.id]||{}}setPluginState(e){const{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(),this.i18nInit()}i18nInit(){const e=new PP([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),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 o7(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var uY=0;function sY(e){return"__private_"+uY+++"_"+e}const{render:i7}=iY;var Hc=sY("updateUI");class W5 extends V5{constructor(){super(...arguments),Object.defineProperty(this,Hc,{writable:!0,value:void 0})}mount(t,n){const r=n.id,o=aY(t);if(o){this.isTargetDOMEl=!0;const u=document.createDocumentFragment();return o7(this,Hc)[Hc]=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)&&(i7(this.render(s),u),this.afterUpdate())}),this.uppy.log(`Installing ${r} to a DOM element '${t}'`),this.opts.replaceTargetContent&&(o.innerHTML=""),i7(this.render(this.uppy.getState()),u),this.el=u.firstElementChild,o.appendChild(u),this.onMount(),this.el}let i;if(typeof t=="object"&&t instanceof W5)i=t;else if(typeof t=="function"){const u=t;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 t=="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(t){var n,r;this.el!=null&&((n=(r=o7(this,Hc))[Hc])==null||n.call(r,t))}unmount(){var t;this.isTargetDOMEl&&((t=this.el)==null||t.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var lY=W5;const{debugLogger:cY}=LP;var Xf=UP,fY=UP,dY=lY,pY=V5,hY=cY;Xf.Uppy=fY,Xf.UIPlugin=dY,Xf.BasePlugin=pY,Xf.debugLogger=hY;class gY extends Error{constructor(t,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=t,this.isNetworkError=!0,this.request=n}}var G5=gY,Ry=function(){return fetch(...arguments).catch(e=>{throw e.name==="AbortError"?e:new G5(e)})};class vY extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var zh,wi,fo,Ei,a7,mY=vY;function co(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var yY=0;function Ly(e){return"__private_"+yY+++"_"+e}async function My(e){if(e.status===401)throw new mY;const t=e.json();if(e.status<200||e.status>300){let n=`Failed request with status: ${e.status}. ${e.statusText}`;try{const r=await t;n=r.message?`${n} message: ${r.message}`:n,n=r.requestId?`${n} request-Id: ${r.requestId}`:n}finally{throw new Error(n)}}return t}var zy=(wi=Ly("getPostResponseFunc"),fo=Ly("getUrl"),Ei=Ly("errorHandler"),a7=zh=class VP{constructor(t,n){Object.defineProperty(this,Ei,{value:wY}),Object.defineProperty(this,fo,{value:bY}),Object.defineProperty(this,wi,{writable:!0,value:r=>o=>r?o:this.onReceiveResponse(o)}),this.uppy=t,this.opts=n,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}get hostname(){const{companion:t}=this.uppy.getState(),n=this.opts.companionUrl;return(t&&t[n]?t[n]:n).replace(/\/$/,"")}headers(){const t=this.opts.companionHeaders||{};return Promise.resolve({...VP.defaultHeaders,...t})}onReceiveResponse(t){const n=this.uppy.getState().companion||{},r=this.opts.companionUrl,{headers:o}=t;return o.has("i-am")&&o.get("i-am")!==n[r]&&this.uppy.setState({companion:{...n,[r]:o.get("i-am")}}),t}preflight(t){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(co(this,fo)[fo](t),{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(t){return Promise.all([this.preflight(t),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(t,n){return this.preflightAndHeaders(t).then(r=>Ry(co(this,fo)[fo](t),{method:"get",headers:r,credentials:this.opts.companionCookiesRule||"same-origin"})).then(co(this,wi)[wi](n)).then(My).catch(co(this,Ei)[Ei]("get",t))}post(t,n,r){const o="post";return this.preflightAndHeaders(t).then(i=>Ry(co(this,fo)[fo](t),{method:o,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(n)})).then(co(this,wi)[wi](r)).then(My).catch(co(this,Ei)[Ei](o,t))}delete(t,n,r){const o="delete";return this.preflightAndHeaders(t).then(i=>Ry(`${this.hostname}/${t}`,{method:o,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:n?JSON.stringify(n):null})).then(co(this,wi)[wi](r)).then(My).catch(co(this,Ei)[Ei](o,t))}},zh.VERSION="2.0.4",zh.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${zh.VERSION}`},a7);function bY(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function wY(e,t){return n=>{var r;if((r=n)==null||!r.isAuthError){const o=new Error(`Could not ${e} ${co(this,fo)[fo](t)}`);o.cause=n,n=o}return Promise.reject(n)}}var EY={setItem:(e,t)=>new Promise(n=>{localStorage.setItem(e,t),n()}),getItem:e=>Promise.resolve(localStorage.getItem(e)),removeItem:e=>new Promise(t=>{localStorage.removeItem(e),t()})},lo,Di,vr,Cn,$h;let u7,s7;function $t(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var DY=0;function Uc(e){return"__private_"+DY+++"_"+e}var CY=(lo=Uc("queued"),Di=Uc("emitter"),vr=Uc("isOpen"),Cn=Uc("socket"),$h=Uc("handleMessage"),u7=Symbol.for("uppy test: getSocket"),s7=Symbol.for("uppy test: getQueued"),class{constructor(e){Object.defineProperty(this,lo,{writable:!0,value:[]}),Object.defineProperty(this,Di,{writable:!0,value:IP()}),Object.defineProperty(this,vr,{writable:!0,value:!1}),Object.defineProperty(this,Cn,{writable:!0,value:void 0}),Object.defineProperty(this,$h,{writable:!0,value:t=>{try{const n=JSON.parse(t.data);this.emit(n.action,n.payload)}catch{}}}),this.opts=e,e&&e.autoOpen===!1||this.open()}get isOpen(){return $t(this,vr)[vr]}[u7](){return $t(this,Cn)[Cn]}[s7](){return $t(this,lo)[lo]}open(){$t(this,Cn)[Cn]=new WebSocket(this.opts.target),$t(this,Cn)[Cn].onopen=()=>{for($t(this,vr)[vr]=!0;$t(this,lo)[lo].length>0&&$t(this,vr)[vr];){const e=$t(this,lo)[lo].shift();this.send(e.action,e.payload)}},$t(this,Cn)[Cn].onclose=()=>{$t(this,vr)[vr]=!1},$t(this,Cn)[Cn].onmessage=$t(this,$h)[$h]}close(){var e;(e=$t(this,Cn)[Cn])==null||e.close()}send(e,t){$t(this,vr)[vr]?$t(this,Cn)[Cn].send(JSON.stringify({action:e,payload:t})):$t(this,lo)[lo].push({action:e,payload:t})}on(e,t){$t(this,Di)[Di].on(e,t)}emit(e,t){$t(this,Di)[Di].emit(e,t)}once(e,t){$t(this,Di)[Di].once(e,t)}}),SY={RequestClient:zy,Provider:class extends zy{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(n=>n.split("-").map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(" "))(this.id),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(e=>{let[t,n]=e;const r={};return n&&(r["uppy-auth-token"]=n),this.companionKeysParams&&(r["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...t,...r}})}onReceiveResponse(e){e=super.onReceiveResponse(e);const t=this.uppy.getPlugin(this.pluginId),n=t.getPluginState().authenticated?e.status!==401:e.status<400;return t.setPluginState({authenticated:n}),e}setAuthToken(e){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,e)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(e){return e===void 0&&(e={}),this.preAuthToken&&(e.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?${new URLSearchParams(e)}`}fileUrl(e){return`${this.hostname}/${this.id}/get/${e}`}fetchPreAuthToken(){return this.companionKeysParams?this.post(`${this.id}/preauth/`,{params:this.companionKeysParams}).then(e=>{this.preAuthToken=e.token}).catch(e=>{this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${e}`,"warning")}):Promise.resolve()}list(e){return this.get(`${this.id}/list/${e||""}`)}logout(){return this.get(`${this.id}/logout`).then(e=>Promise.all([e,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)])).then(e=>{let[t]=e;return t})}static initPlugin(e,t,n){if(e.type="acquirer",e.files=[],n&&(e.opts={...n,...t}),t.serverUrl||t.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(t.companionAllowedHosts){const r=t.companionAllowedHosts;if(!(typeof r=="string"||Array.isArray(r)||r instanceof RegExp))throw new TypeError(`${e.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);e.opts.companionAllowedHosts=r}else/^(?!https?:\/\/).*$/i.test(t.companionUrl)?e.opts.companionAllowedHosts=`https://${t.companionUrl.replace(/^\/\//,"")}`:e.opts.companionAllowedHosts=new URL(t.companionUrl).origin;e.storage=e.opts.storage||EY}},SearchProvider:class extends zy{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(n=>n.split("-").map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(" "))(this.id),this.pluginId=this.opts.pluginId}fileUrl(e){return`${this.hostname}/search/${this.id}/get/${e}`}search(e,t){return t=t?`&${t}`:"",this.get(`search/${this.id}/list?q=${encodeURIComponent(e)}${t}`)}},Socket:CY},Ci,Bs,xY=Ku(function(e,t,n){const{progress:r,bytesUploaded:o,bytesTotal:i}=t;r&&(e.uppy.log(`Upload progress: ${r}`),e.uppy.emit("upload-progress",n,{uploader:e,bytesUploaded:o,bytesTotal:i}))},300,{leading:!0,trailing:!0});function Vc(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var AY=0;function l7(e){return"__private_"+AY+++"_"+e}var c7=(Ci=l7("emitter"),Bs=l7("events"),class{constructor(e){Object.defineProperty(this,Ci,{writable:!0,value:void 0}),Object.defineProperty(this,Bs,{writable:!0,value:[]}),Vc(this,Ci)[Ci]=e}on(e,t){return Vc(this,Bs)[Bs].push([e,t]),Vc(this,Ci)[Ci].on(e,t)}remove(){for(const[e,t]of Vc(this,Bs)[Bs].splice(0))Vc(this,Ci)[Ci].off(e,t)}});function mr(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var OY=0;function H1(e){return"__private_"+OY+++"_"+e}var Go=H1("aliveTimer"),Ka=H1("isDone"),Wc=H1("onTimedOut"),Ya=H1("timeout"),f7=class{constructor(e,t){Object.defineProperty(this,Go,{writable:!0,value:void 0}),Object.defineProperty(this,Ka,{writable:!0,value:!1}),Object.defineProperty(this,Wc,{writable:!0,value:void 0}),Object.defineProperty(this,Ya,{writable:!0,value:void 0}),mr(this,Ya)[Ya]=e,mr(this,Wc)[Wc]=t}progress(){mr(this,Ka)[Ka]||mr(this,Ya)[Ya]>0&&(clearTimeout(mr(this,Go)[Go]),mr(this,Go)[Go]=setTimeout(mr(this,Wc)[Wc],mr(this,Ya)[Ya]))}done(){mr(this,Ka)[Ka]||(clearTimeout(mr(this,Go)[Go]),mr(this,Go)[Go]=null,mr(this,Ka)[Ka]=!0)}};function Vt(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var BY=0;function fs(e){return"__private_"+BY+++"_"+e}function kY(){return new Error("Cancelled")}var Zn=fs("activeRequests"),jn=fs("queuedHandlers"),sd=fs("call"),Jf=fs("queueNext"),lE=fs("next"),$y=fs("queue"),cE=fs("dequeue");function FY(e){Vt(this,Zn)[Zn]+=1;let t,n=!1;try{t=e()}catch(r){throw Vt(this,Zn)[Zn]-=1,r}return{abort:()=>{n||(n=!0,Vt(this,Zn)[Zn]-=1,t(),Vt(this,Jf)[Jf]())},done:()=>{n||(n=!0,Vt(this,Zn)[Zn]-=1,Vt(this,Jf)[Jf]())}}}function TY(){queueMicrotask(()=>Vt(this,lE)[lE]())}function _Y(){if(Vt(this,Zn)[Zn]>=this.limit||Vt(this,jn)[jn].length===0)return;const e=Vt(this,jn)[jn].shift(),t=Vt(this,sd)[sd](e.fn);e.abort=t.abort,e.done=t.done}function jY(e,t){t===void 0&&(t={});const n={fn:e,priority:t.priority||0,abort:()=>{Vt(this,cE)[cE](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=Vt(this,jn)[jn].findIndex(o=>n.priority>o.priority);return r===-1?Vt(this,jn)[jn].push(n):Vt(this,jn)[jn].splice(r,0,n),n}function PY(e){const t=Vt(this,jn)[jn].indexOf(e);t!==-1&&Vt(this,jn)[jn].splice(t,1)}var IY={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,cE,{value:PY}),Object.defineProperty(this,$y,{value:jY}),Object.defineProperty(this,lE,{value:_Y}),Object.defineProperty(this,Jf,{value:TY}),Object.defineProperty(this,sd,{value:FY}),Object.defineProperty(this,Zn,{writable:!0,value:0}),Object.defineProperty(this,jn,{writable:!0,value:[]}),this.limit=typeof e!="number"||e===0?1/0:e}run(e,t){return Vt(this,Zn)[Zn]<this.limit?Vt(this,sd)[sd](e):Vt(this,$y)[$y](e,t)}wrapPromiseFunction(e,t){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(e(...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=kY()}},t)});return u.abort=()=>{a.abort()},u}}},internalRateLimitedQueue:Symbol("__queue")},d7,p7,WP=function(e){return!!e&&(e.readyState!==0&&e.readyState!==4||e.status===0)},NY={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:RY}=MP,{Provider:LY,RequestClient:MY,Socket:zY}=SY,{RateLimitedQueue:$Y,internalRateLimitedQueue:Hy}=IY;function h7(e,t){let n=t;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})),WP(e)?(n=new G5(n,e),n):(n.request=e,n)}function g7(e){return e.data.slice(0,e.data.size,e.meta.type)}var HY=(p7=d7=class extends V5{constructor(e,t){super(e,t),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=NY;const n={formData:!0,fieldName:t.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){e.log(i)}return o},getResponseError(r,o){let i=new Error("Upload error");return WP(o)&&(i=new G5(i,o)),i},validateStatus:r=>r>=200&&r<300};if(this.opts={...n,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),Hy in this.opts?this.requests=this.opts[Hy]:this.requests=new $Y(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(e){const t=this.uppy.getState().xhrUpload,{headers:n}=this.opts,r={...this.opts,...t||{},...e.xhrUpload||{},headers:{}};return typeof n=="function"?r.headers=n(e):Object.assign(r.headers,this.opts.headers),t&&Object.assign(r.headers,t.headers),e.xhrUpload&&Object.assign(r.headers,e.xhrUpload.headers),r}addMetadata(e,t,n){(Array.isArray(n.metaFields)?n.metaFields:Object.keys(t)).forEach(r=>{e.append(r,t[r])})}createFormDataUpload(e,t){const n=new FormData;this.addMetadata(n,e.meta,t);const r=g7(e);return e.name?n.append(t.fieldName,r,e.meta.name):n.append(t.fieldName,r),n}createBundledUpload(e,t){const n=new FormData,{meta:r}=this.uppy.getState();return this.addMetadata(n,r,t),e.forEach(o=>{const i=this.getOptions(o),a=g7(o);o.name?n.append(i.fieldName,a,o.name):n.append(i.fieldName,a)}),n}upload(e,t,n){const r=this.getOptions(e);return this.uppy.log(`uploading ${t} of ${n}`),new Promise((o,i)=>{this.uppy.emit("upload-started",e);const a=r.formData?this.createFormDataUpload(e,r):e.data,u=new XMLHttpRequest;this.uploaderEvents[e.id]=new c7(this.uppy);const s=new f7(r.timeout,()=>{u.abort(),c.done();const f=new Error(this.i18n("timedOut",{seconds:Math.ceil(r.timeout/1e3)}));this.uppy.emit("upload-error",e,f),i(f)}),l=RY();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",e,{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[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r.validateStatus(f.target.status,u.responseText,u)){const g=r.getResponseData(u.responseText,u),v=g[r.responseUrlFieldName],y={status:f.target.status,body:g,uploadURL:v};return this.uppy.emit("upload-success",e,y),v&&this.uppy.log(`Download ${e.name} from ${v}`),o(e)}const p=r.getResponseData(u.responseText,u),d=h7(u,r.getResponseError(u.responseText,u)),m={status:f.target.status,body:p};return this.uppy.emit("upload-error",e,d,m),i(d)}),u.addEventListener("error",()=>{this.uppy.log(`[XHRUpload] ${l} errored`),s.done(),c.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null);const f=h7(u,r.getResponseError(u.responseText,u));return this.uppy.emit("upload-error",e,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",e);const f=this.getOptions(e);return Object.keys(f.headers).forEach(p=>{u.setRequestHeader(p,f.headers[p])}),u.send(a),()=>{s.done(),u.abort()}});this.onFileRemove(e.id,()=>{c.abort(),i(new Error("File removed"))}),this.onCancelAll(e.id,()=>{c.abort(),i(new Error("Upload cancelled"))})})}uploadRemote(e){const t=this.getOptions(e);return new Promise((n,r)=>{this.uppy.emit("upload-started",e);const o={};(Array.isArray(t.metaFields)?t.metaFields:Object.keys(e.meta)).forEach(i=>{o[i]=e.meta[i]}),new(e.remote.providerOptions.provider?LY:MY)(this.uppy,e.remote.providerOptions).post(e.remote.url,{...e.remote.body,endpoint:t.endpoint,size:e.data.size,fieldname:t.fieldName,metadata:o,httpMethod:t.method,useFormData:t.formData,headers:t.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}`}(e.remote.companionUrl),s=new zY({target:`${u}/api/${a}`,autoOpen:!1});this.uploaderEvents[e.id]=new c7(this.uppy),this.onFileRemove(e.id,()=>{s.send("cancel",{}),l.abort(),n(`upload ${e.id} was removed`)}),this.onCancelAll(e.id,()=>{s.send("cancel",{}),l.abort(),n(`upload ${e.id} was canceled`)}),this.onRetry(e.id,()=>{s.send("pause",{}),s.send("resume",{})}),this.onRetryAll(e.id,()=>{s.send("pause",{}),s.send("resume",{})}),s.on("progress",c=>xY(this,c,e)),s.on("success",c=>{const f=t.getResponseData(c.response.responseText,c.response),p=f[t.responseUrlFieldName],d={status:c.response.status,body:f,uploadURL:p};return this.uppy.emit("upload-success",e,d),l.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),n()}),s.on("error",c=>{const f=c.response,p=f?t.getResponseError(f.responseText,f):Object.assign(new Error(c.error.message),{cause:c.error});this.uppy.emit("upload-error",e,p),l.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r(p)});const l=this.requests.run(()=>(s.open(),e.isPaused&&s.send("pause",{}),()=>s.close()))}).catch(i=>{this.uppy.emit("upload-error",e,i),r(i)})})}uploadBundle(e){return new Promise((t,n)=>{const{endpoint:r}=this.opts,{method:o}=this.opts,i=this.uppy.getState().xhrUpload,a=this.createBundledUpload(e,{...this.opts,...i||{}}),u=new XMLHttpRequest,s=new f7(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=>{e.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&&e.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 e.forEach(m=>{this.uppy.emit("upload-success",m,d)}),t()}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),e.forEach(c=>{this.uppy.emit("upload-started",c)})})}uploadFiles(e){const t=e.map((n,r)=>{const o=parseInt(r,10)+1,i=e.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}))}(t)}onFileRemove(e,t){this.uploaderEvents[e].on("file-removed",n=>{e===n.id&&t(n.id)})}onRetry(e,t){this.uploaderEvents[e].on("upload-retry",n=>{e===n&&t()})}onRetryAll(e,t){this.uploaderEvents[e].on("retry-all",()=>{this.uppy.getFile(e)&&t()})}onCancelAll(e,t){this.uploaderEvents[e].on("cancel-all",()=>{this.uppy.getFile(e)&&t()})}handleUpload(e){if(e.length===0)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();this.opts.limit!==0||this.opts[Hy]||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 t=e.map(n=>this.uppy.getFile(n));if(this.opts.bundle){if(t.some(n=>n.isRemote))throw new Error("Can’t 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(t)}return this.uploadFiles(t).then(()=>null)}install(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},d7.VERSION="2.0.6",p7),v7=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Up(e){var t={exports:{}};return e(t,t.exports),t.exports}var Si,J0,Hh=function(e){return e&&e.Math==Math&&e},X=Hh(typeof globalThis=="object"&&globalThis)||Hh(typeof window=="object"&&window)||Hh(typeof self=="object"&&self)||Hh(typeof v7=="object"&&v7)||function(){return this}()||Function("return this")(),UY=Object.defineProperty,q5=function(e,t){try{UY(X,e,{value:t,configurable:!0,writable:!0})}catch{X[e]=t}return t},oa=X["__core-js_shared__"]||q5("__core-js_shared__",{}),K5=Up(function(e){(e.exports=function(t,n){return oa[t]||(oa[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),GP=Function.prototype,fE=GP.bind,dE=GP.call,VY=fE&&fE.bind(dE),pe=fE?function(e){return e&&VY(dE,e)}:function(e){return e&&function(){return dE.apply(e,arguments)}},WY=X.TypeError,_r=function(e){if(e==null)throw WY("Can't call method on "+e);return e},GY=X.Object,Ia=function(e){return GY(_r(e))},qY=pe({}.hasOwnProperty),Nt=Object.hasOwn||function(e,t){return qY(Ia(e),t)},KY=0,YY=Math.random(),XY=pe(1 .toString),Y5=function(e){return"Symbol("+(e===void 0?"":e)+")_"+XY(++KY+YY,36)},rt=function(e){return typeof e=="function"},JY=function(e){return rt(e)?e:void 0},ds=function(e,t){return arguments.length<2?JY(X[e]):X[e]&&X[e][t]},gl=ds("navigator","userAgent")||"",m7=X.process,y7=X.Deno,b7=m7&&m7.versions||y7&&y7.version,w7=b7&&b7.v8;w7&&(J0=(Si=w7.split("."))[0]>0&&Si[0]<4?1:+(Si[0]+Si[1])),!J0&&gl&&(!(Si=gl.match(/Edge\/(\d+)/))||Si[1]>=74)&&(Si=gl.match(/Chrome\/(\d+)/))&&(J0=+Si[1]);var Hd=J0,Je=function(e){try{return!!e()}catch{return!0}},pE=!!Object.getOwnPropertySymbols&&!Je(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Hd&&Hd<41}),X5=pE&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Gc=K5("wks"),Ou=X.Symbol,E7=Ou&&Ou.for,ZY=X5?Ou:Ou&&Ou.withoutSetter||Y5,St=function(e){if(!Nt(Gc,e)||!pE&&typeof Gc[e]!="string"){var t="Symbol."+e;pE&&Nt(Ou,e)?Gc[e]=Ou[e]:Gc[e]=X5&&E7?E7(t):ZY(t)}return Gc[e]},qP={};qP[St("toStringTag")]="z";var J5=String(qP)==="[object z]",an=!Je(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),ct=function(e){return typeof e=="object"?e!==null:rt(e)},hE=X.document,QY=ct(hE)&&ct(hE.createElement),Ud=function(e){return QY?hE.createElement(e):{}},KP=!an&&!Je(function(){return Object.defineProperty(Ud("div"),"a",{get:function(){return 7}}).a!=7}),eX=X.String,tX=X.TypeError,Rt=function(e){if(ct(e))return e;throw tX(eX(e)+" is not an object")},qc=Function.prototype.call,Ve=qc.bind?qc.bind(qc):function(){return qc.apply(qc,arguments)},Yu=pe({}.isPrototypeOf),nX=X.Object,Uy=X5?function(e){return typeof e=="symbol"}:function(e){var t=ds("Symbol");return rt(t)&&Yu(t.prototype,nX(e))},rX=X.String,U1=function(e){try{return rX(e)}catch{return"Object"}},oX=X.TypeError,Sa=function(e){if(rt(e))return e;throw oX(U1(e)+" is not a function")},Xu=function(e,t){var n=e[t];return n==null?void 0:Sa(n)},iX=X.TypeError,aX=X.TypeError,uX=St("toPrimitive"),Z5=function(e){var t=function(n,r){if(!ct(n)||Uy(n))return n;var o,i=Xu(n,uX);if(i){if(r===void 0&&(r="default"),o=Ve(i,n,r),!ct(o)||Uy(o))return o;throw aX("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&rt(s=a.toString)&&!ct(l=Ve(s,a))||rt(s=a.valueOf)&&!ct(l=Ve(s,a))||u!=="string"&&rt(s=a.toString)&&!ct(l=Ve(s,a)))return l;throw iX("Can't convert object to primitive value")}(n,r)}(e,"string");return Uy(t)?t:t+""},sX=X.TypeError,D7=Object.defineProperty,ro={f:an?D7:function(e,t,n){if(Rt(e),t=Z5(t),Rt(n),KP)try{return D7(e,t,n)}catch{}if("get"in n||"set"in n)throw sX("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},V1=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Xr=an?function(e,t,n){return ro.f(e,t,V1(1,n))}:function(e,t,n){return e[t]=n,e},lX=pe(Function.toString);rt(oa.inspectSource)||(oa.inspectSource=function(e){return lX(e)});var nv,ld,rv,W1=oa.inspectSource,C7=X.WeakMap,YP=rt(C7)&&/native code/.test(W1(C7)),S7=K5("keys"),Q5=function(e){return S7[e]||(S7[e]=Y5(e))},G1={},gE=X.TypeError,cX=X.WeakMap;if(YP||oa.state){var Xa=oa.state||(oa.state=new cX),fX=pe(Xa.get),x7=pe(Xa.has),dX=pe(Xa.set);nv=function(e,t){if(x7(Xa,e))throw new gE("Object already initialized");return t.facade=e,dX(Xa,e,t),t},ld=function(e){return fX(Xa,e)||{}},rv=function(e){return x7(Xa,e)}}else{var ks=Q5("state");G1[ks]=!0,nv=function(e,t){if(Nt(e,ks))throw new gE("Object already initialized");return t.facade=e,Xr(e,ks,t),t},ld=function(e){return Nt(e,ks)?e[ks]:{}},rv=function(e){return Nt(e,ks)}}var Bn={set:nv,get:ld,has:rv,enforce:function(e){return rv(e)?ld(e):nv(e,{})},getterFor:function(e){return function(t){var n;if(!ct(t)||(n=ld(t)).type!==e)throw gE("Incompatible receiver, "+e+" required");return n}}},XP=Function.prototype,pX=an&&Object.getOwnPropertyDescriptor,Vy=Nt(XP,"name"),lc={EXISTS:Vy,PROPER:Vy&&(function(){}).name==="something",CONFIGURABLE:Vy&&(!an||an&&pX(XP,"name").configurable)},Vn=Up(function(e){var t=lc.CONFIGURABLE,n=Bn.get,r=Bn.enforce,o=String(String).split("String");(e.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;rt(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Nt(u,"name")||t&&u.name!==d)&&Xr(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==X?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Xr(i,a,u)):f?i[a]=u:q5(a,u)})(Function.prototype,"toString",function(){return rt(this)&&n(this).source||W1(this)})}),hX=pe({}.toString),gX=pe("".slice),Jr=function(e){return gX(hX(e),8,-1)},vX=St("toStringTag"),mX=X.Object,yX=Jr(function(){return arguments}())=="Arguments",q1=J5?Jr:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(t=mX(e),vX))=="string"?n:yX?Jr(t):(r=Jr(t))=="Object"&&rt(t.callee)?"Arguments":r},bX=J5?{}.toString:function(){return"[object "+q1(this)+"]"};J5||Vn(Object.prototype,"toString",bX,{unsafe:!0});var ov={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},Wy=Ud("span").classList,A7=Wy&&Wy.constructor&&Wy.constructor.prototype,JP=A7===Object.prototype?void 0:A7,O7=pe(pe.bind),Ju=function(e,t){return Sa(e),t===void 0?e:O7?O7(e,t):function(){return e.apply(t,arguments)}},Gy=X.Object,wX=pe("".split),K1=Je(function(){return!Gy("z").propertyIsEnumerable(0)})?function(e){return Jr(e)=="String"?wX(e,""):Gy(e)}:Gy,EX=Math.ceil,DX=Math.floor,Vp=function(e){var t=+e;return t!=t||t===0?0:(t>0?DX:EX)(t)},CX=Math.min,cc=function(e){return e>0?CX(Vp(e),9007199254740991):0},ps=function(e){return cc(e.length)},iv=Array.isArray||function(e){return Jr(e)=="Array"},ZP=function(){},SX=[],QP=ds("Reflect","construct"),e8=/^\s*(?:class|function)\b/,xX=pe(e8.exec),AX=!e8.exec(ZP),Kc=function(e){if(!rt(e))return!1;try{return QP(ZP,SX,e),!0}catch{return!1}},Y1=!QP||Je(function(){var e;return Kc(Kc.call)||!Kc(Object)||!Kc(function(){e=!0})||e})?function(e){if(!rt(e))return!1;switch(q1(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return AX||!!xX(e8,W1(e))}:Kc,OX=St("species"),B7=X.Array,eI=function(e,t){return new(function(n){var r;return iv(n)&&(r=n.constructor,(Y1(r)&&(r===B7||iv(r.prototype))||ct(r)&&(r=r[OX])===null)&&(r=void 0)),r===void 0?B7:r}(e))(t===0?0:t)},k7=pe([].push),xi=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var p,d,m=Ia(s),g=K1(m),v=Ju(l,c),y=ps(g),h=0,b=f||eI,w=t?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in g)&&(d=v(p=g[h],h,m),e))if(t)w[h]=d;else if(d)switch(e){case 3:return!0;case 5:return p;case 6:return h;case 2:k7(w,p)}else switch(e){case 4:return!1;case 7:k7(w,p)}return i?-1:r||o?o:w}},fc={forEach:xi(0),map:xi(1),filter:xi(2),some:xi(3),every:xi(4),find:xi(5),findIndex:xi(6),filterReject:xi(7)},tI=function(e,t){var n=[][e];return!!n&&Je(function(){n.call(null,t||function(){throw 1},1)})},BX=fc.forEach,qy=tI("forEach")?[].forEach:function(e){return BX(this,e,arguments.length>1?arguments[1]:void 0)},nI=function(e){if(e&&e.forEach!==qy)try{Xr(e,"forEach",qy)}catch{e.forEach=qy}};for(var Ky in ov)ov[Ky]&&nI(X[Ky]&&X[Ky].prototype);nI(JP);var F7={}.propertyIsEnumerable,T7=Object.getOwnPropertyDescriptor,kX=T7&&!F7.call({1:2},1)?function(e){var t=T7(this,e);return!!t&&t.enumerable}:F7,rI={f:kX},Na=function(e){return K1(_r(e))},_7=Object.getOwnPropertyDescriptor,Wp={f:an?_7:function(e,t){if(e=Na(e),t=Z5(t),KP)try{return _7(e,t)}catch{}if(Nt(e,t))return V1(!Ve(rI.f,e,t),e[t])}},FX=Math.max,TX=Math.min,Hl=function(e,t){var n=Vp(e);return n<0?FX(n+t,0):TX(n,t)},j7=function(e){return function(t,n,r){var o,i=Na(t),a=ps(i),u=Hl(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},oI={includes:j7(!0),indexOf:j7(!1)},_X=oI.indexOf,P7=pe([].push),iI=function(e,t){var n,r=Na(e),o=0,i=[];for(n in r)!Nt(G1,n)&&Nt(r,n)&&P7(i,n);for(;t.length>o;)Nt(r,n=t[o++])&&(~_X(i,n)||P7(i,n));return i},av=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],jX=av.concat("length","prototype"),Vd={f:Object.getOwnPropertyNames||function(e){return iI(e,jX)}},aI={f:Object.getOwnPropertySymbols},PX=pe([].concat),IX=ds("Reflect","ownKeys")||function(e){var t=Vd.f(Rt(e)),n=aI.f;return n?PX(t,n(e)):t},NX=function(e,t){for(var n=IX(t),r=ro.f,o=Wp.f,i=0;i<n.length;i++){var a=n[i];Nt(e,a)||r(e,a,o(t,a))}},RX=/#|\.prototype\./,Gp=function(e,t){var n=MX[LX(e)];return n==$X||n!=zX&&(rt(t)?Je(t):!!t)},LX=Gp.normalize=function(e){return String(e).replace(RX,".").toLowerCase()},MX=Gp.data={},zX=Gp.NATIVE="N",$X=Gp.POLYFILL="P",Wd=Gp,HX=Wp.f,Dt=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?X:l?X[u]||q5(u,{}):(X[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=HX(n,r))&&a.value:n[r],!Wd(s?r:u+(l?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;NX(i,o)}(e.sham||o&&o.sham)&&Xr(i,"sham",!0),Vn(n,r,i,e)}},vl=Object.keys||function(e){return iI(e,av)},UX=Je(function(){vl(1)});/*!
- * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
- *
- * Copyright (c) 2014-2017, Jon Schlinkert.
- * Released under the MIT License.
- */function I7(e){return Object.prototype.toString.call(e)==="[object Object]"}Dt({target:"Object",stat:!0,forced:UX},{keys:function(e){return vl(Ia(e))}});var VX={isHistory(e){return I7(t=e)!==!1&&((n=t.constructor)===void 0||I7(r=n.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(e.redos.length===0||Xi.isOperationList(e.redos[0]))&&(e.undos.length===0||Xi.isOperationList(e.undos[0]));var t,n,r}},Yy=new WeakMap,Xy=new WeakMap,sl={isHistoryEditor:e=>VX.isHistory(e.history)&&E.isEditor(e),isMerging:e=>Xy.get(e),isSaving:e=>Yy.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=sl.isMerging(e);Xy.set(e,!1),t(),Xy.set(e,n)},withoutSaving(e,t){var n=sl.isSaving(e);Yy.set(e,!1),t(),Yy.set(e,n)}},WX=X.String,ut=function(e){if(q1(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return WX(e)},t8=function(){var e=Rt(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},GX=lc.PROPER,vE=RegExp.prototype,uI=vE.toString,qX=pe(t8),KX=Je(function(){return uI.call({source:"a",flags:"b"})!="/a/b"}),YX=GX&&uI.name!="toString";(KX||YX)&&Vn(RegExp.prototype,"toString",function(){var e=Rt(this),t=ut(e.source),n=e.flags;return"/"+t+"/"+ut(n===void 0&&Yu(vE,e)&&!("flags"in vE)?qX(e):n)},{unsafe:!0});var Uh,XX=an?Object.defineProperties:function(e,t){Rt(e);for(var n,r=Na(t),o=vl(t),i=o.length,a=0;i>a;)ro.f(e,n=o[a++],r[n]);return e},mE=ds("document","documentElement"),sI=Q5("IE_PROTO"),Jy=function(){},lI=function(e){return"<script>"+e+"<\/script>"},N7=function(e){e.write(lI("")),e.close();var t=e.parentWindow.Object;return e=null,t},Z0=function(){try{Uh=new ActiveXObject("htmlfile")}catch{}var e,t;Z0=typeof document<"u"?document.domain&&Uh?N7(Uh):((t=Ud("iframe")).style.display="none",mE.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(lI("document.F=Object")),e.close(),e.F):N7(Uh);for(var n=av.length;n--;)delete Z0.prototype[av[n]];return Z0()};G1[sI]=!0;var X1=Object.create||function(e,t){var n;return e!==null?(Jy.prototype=Rt(e),n=new Jy,Jy.prototype=null,n[sI]=e):n=Z0(),t===void 0?n:XX(n,t)},yE=St("unscopables"),bE=Array.prototype;bE[yE]==null&&ro.f(bE,yE,{configurable:!0,value:X1(null)});var cd=function(e){bE[yE][e]=!0},JX=oI.includes;Dt({target:"Array",proto:!0},{includes:function(e){return JX(this,e,arguments.length>1?arguments[1]:void 0)}}),cd("includes");var ZX=St("match"),n8=function(e){var t;return ct(e)&&((t=e[ZX])!==void 0?!!t:Jr(e)=="RegExp")},QX=X.TypeError,r8=function(e){if(n8(e))throw QX("The method doesn't accept regular expressions");return e},eJ=St("match"),o8=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[eJ]=!1,"/./"[e](t)}catch{}}return!1},tJ=pe("".indexOf);Dt({target:"String",proto:!0,forced:!o8("includes")},{includes:function(e){return!!~tJ(ut(_r(this)),ut(r8(e)),arguments.length>1?arguments[1]:void 0)}});var nJ=/"/g,rJ=pe("".replace);Dt({target:"String",proto:!0,forced:Je(function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})},{anchor:function(e){return t=e,n=ut(_r(this)),r="<a",(r+=' name="'+rJ(ut(t),nJ,""")+'"')+">"+n+"</a>";var t,n,r}});var wE=function(e,t,n){var r,o;Rt(e);try{if(!(r=Xu(e,"return"))){if(t==="throw")throw n;return n}r=Ve(r,e)}catch(i){o=!0,r=i}if(t==="throw")throw n;if(o)throw r;return Rt(r),n},oJ=function(e,t,n,r){try{return r?t(Rt(n)[0],n[1]):t(n)}catch(o){wE(e,"throw",o)}},Ul={},iJ=St("iterator"),aJ=Array.prototype,cI=function(e){return e!==void 0&&(Ul.Array===e||aJ[iJ]===e)},Gd=function(e,t,n){var r=Z5(t);r in e?ro.f(e,r,V1(0,n)):e[r]=n},uJ=St("iterator"),i8=function(e){if(e!=null)return Xu(e,uJ)||Xu(e,"@@iterator")||Ul[q1(e)]},sJ=X.TypeError,fI=function(e,t){var n=arguments.length<2?i8(e):t;if(Sa(n))return Rt(Ve(n,e));throw sJ(U1(e)+" is not iterable")},R7=X.Array,dI=St("iterator"),pI=!1;try{var lJ=0,L7={next:function(){return{done:!!lJ++}},return:function(){pI=!0}};L7[dI]=function(){return this},Array.from(L7,function(){throw 2})}catch{}var a8=function(e,t){if(!t&&!pI)return!1;var n=!1;try{var r={};r[dI]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},cJ=!a8(function(e){Array.from(e)});Dt({target:"Array",stat:!0,forced:cJ},{from:function(e){var t=Ia(e),n=Y1(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=o!==void 0;i&&(o=Ju(o,r>2?arguments[2]:void 0));var a,u,s,l,c,f,p=i8(t),d=0;if(!p||this==R7&&cI(p))for(a=ps(t),u=n?new this(a):R7(a);a>d;d++)f=i?o(t[d],d):t[d],Gd(u,d,f);else for(c=(l=fI(t,p)).next,u=n?new this:[];!(s=Ve(c,l)).done;d++)f=i?oJ(l,o,[s.value,d],!0):s.value,Gd(u,d,f);return u.length=d,u}});var Bu,M7,z7,fJ=pe("".charAt),$7=pe("".charCodeAt),dJ=pe("".slice),H7=function(e){return function(t,n){var r,o,i=ut(_r(t)),a=Vp(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=$7(i,a))<55296||r>56319||a+1===u||(o=$7(i,a+1))<56320||o>57343?e?fJ(i,a):r:e?dJ(i,a,a+2):o-56320+(r-55296<<10)+65536}},hI={codeAt:H7(!1),charAt:H7(!0)},pJ=!Je(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),U7=Q5("IE_PROTO"),EE=X.Object,hJ=EE.prototype,uv=pJ?EE.getPrototypeOf:function(e){var t=Ia(e);if(Nt(t,U7))return t[U7];var n=t.constructor;return rt(n)&&t instanceof n?n.prototype:t instanceof EE?hJ:null},DE=St("iterator"),gI=!1;[].keys&&("next"in(z7=[].keys())?(M7=uv(uv(z7)))!==Object.prototype&&(Bu=M7):gI=!0);var gJ=Bu==null||Je(function(){var e={};return Bu[DE].call(e)!==e});gJ&&(Bu={}),rt(Bu[DE])||Vn(Bu,DE,function(){return this});var u8={IteratorPrototype:Bu,BUGGY_SAFARI_ITERATORS:gI},vJ=ro.f,V7=St("toStringTag"),sv=function(e,t,n){e&&!Nt(e=n?e:e.prototype,V7)&&vJ(e,V7,{configurable:!0,value:t})},mJ=u8.IteratorPrototype,yJ=function(){return this},bJ=X.String,wJ=X.TypeError,Vl=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=pe(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return Rt(r),function(i){if(typeof i=="object"||rt(i))return i;throw wJ("Can't set "+bJ(i)+" as a prototype")}(o),t?e(r,o):r.__proto__=o,r}}():void 0),EJ=lc.PROPER,DJ=lc.CONFIGURABLE,W7=u8.IteratorPrototype,Vh=u8.BUGGY_SAFARI_ITERATORS,Yc=St("iterator"),CJ=function(){return this},s8=function(e,t,n,r,o,i,a){(function(y,h,b,w){var D=h+" Iterator";y.prototype=X1(mJ,{next:V1(1,b)}),sv(y,D,!1),Ul[D]=yJ})(n,t,r);var u,s,l,c=function(y){if(y===o&&g)return g;if(!Vh&&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=t+" Iterator",p=!1,d=e.prototype,m=d[Yc]||d["@@iterator"]||o&&d[o],g=!Vh&&m||c(o),v=t=="Array"&&d.entries||m;if(v&&(u=uv(v.call(new e)))!==Object.prototype&&u.next&&(uv(u)!==W7&&(Vl?Vl(u,W7):rt(u[Yc])||Vn(u,Yc,CJ)),sv(u,f,!0)),EJ&&o=="values"&&m&&m.name!=="values"&&(DJ?Xr(d,"name","values"):(p=!0,g=function(){return Ve(m,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(Vh||p||!(l in d))&&Vn(d,l,s[l]);else Dt({target:t,proto:!0,forced:Vh||p},s);return d[Yc]!==g&&Vn(d,Yc,g,{name:o}),Ul[t]=g,s},SJ=hI.charAt,xJ=Bn.set,AJ=Bn.getterFor("String Iterator");s8(String,"String",function(e){xJ(this,{type:"String Iterator",string:ut(e),index:0})},function(){var e,t=AJ(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=SJ(n,r),t.index+=e.length,{value:e,done:!1})});var Zy,OJ=Wp.f,G7=pe("".endsWith),BJ=pe("".slice),kJ=Math.min,vI=o8("endsWith"),FJ=!(vI||(Zy=OJ(String.prototype,"endsWith"),!Zy||Zy.writable));Dt({target:"String",proto:!0,forced:!FJ&&!vI},{endsWith:function(e){var t=ut(_r(this));r8(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=n===void 0?r:kJ(cc(n),r),i=ut(e);return G7?G7(t,i,o):BJ(t,o-i.length,o)===i}});var TJ=pe([].join),_J=K1!=Object,jJ=tI("join",",");Dt({target:"Array",proto:!0,forced:_J||!jJ},{join:function(e){return TJ(Na(this),e===void 0?",":e)}});var PJ=St("species"),J1=function(e){return Hd>=51||!Je(function(){var t=[];return(t.constructor={})[PJ]=function(){return{foo:1}},t[e](Boolean).foo!==1})},IJ=fc.map,NJ=J1("map");Dt({target:"Array",proto:!0,forced:!NJ},{map:function(e){return IJ(this,e,arguments.length>1?arguments[1]:void 0)}});var l8=X.RegExp,CE=Je(function(){var e=l8("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),RJ=CE||Je(function(){return!l8("a","y").sticky}),Z1={BROKEN_CARET:CE||Je(function(){var e=l8("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:RJ,UNSUPPORTED_Y:CE},LJ=X.RegExp,c8=Je(function(){var e=LJ(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")}),MJ=X.RegExp,f8=Je(function(){var e=MJ("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),zJ=Bn.get,$J=K5("native-string-replace",String.prototype.replace),lv=RegExp.prototype.exec,SE=lv,HJ=pe("".charAt),UJ=pe("".indexOf),VJ=pe("".replace),Qy=pe("".slice),eb=function(){var e=/a/,t=/b*/g;return Ve(lv,e,"a"),Ve(lv,t,"a"),e.lastIndex!==0||t.lastIndex!==0}(),q7=Z1.BROKEN_CARET,tb=/()??/.exec("")[1]!==void 0;(eb||tb||q7||c8||f8)&&(SE=function(e){var t,n,r,o,i,a,u,s=this,l=zJ(s),c=ut(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Ve(SE,f,c),s.lastIndex=f.lastIndex,t;var p=l.groups,d=q7&&s.sticky,m=Ve(t8,s),g=s.source,v=0,y=c;if(d&&(m=VJ(m,"y",""),UJ(m,"g")===-1&&(m+="g"),y=Qy(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&HJ(c,s.lastIndex-1)!==`
- `)&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",m)),tb&&(n=new RegExp("^"+g+"$(?!\\s)",m)),eb&&(r=s.lastIndex),o=Ve(lv,d?n:s,y),d?o?(o.input=Qy(o.input,v),o[0]=Qy(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:eb&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),tb&&o&&o.length>1&&Ve($J,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=X1(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var qd=SE;Dt({target:"RegExp",proto:!0,forced:/./.exec!==qd},{exec:qd});var d8=Function.prototype,K7=d8.apply,WJ=d8.bind,Y7=d8.call,p8=typeof Reflect=="object"&&Reflect.apply||(WJ?Y7.bind(K7):function(){return Y7.apply(K7,arguments)}),GJ=St("species"),nb=RegExp.prototype,h8=function(e,t,n,r){var o=St(e),i=!Je(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!Je(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[GJ]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=pe(/./[o]),s=t(o,""[e],function(l,c,f,p,d){var m=pe(l),g=c.exec;return g===qd||g===nb.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:m(f,c,p)}:{done:!1}});Vn(String.prototype,e,s[0]),Vn(nb,o,s[1])}r&&Xr(nb[o],"sham",!0)},qJ=hI.charAt,g8=function(e,t,n){return t+(n?qJ(e,t).length:1)},KJ=Math.floor,rb=pe("".charAt),YJ=pe("".replace),ob=pe("".slice),XJ=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,JJ=/\$([$&'`]|\d{1,2})/g,ZJ=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=JJ;return o!==void 0&&(o=Ia(o),s=XJ),YJ(i,s,function(l,c){var f;switch(rb(c,0)){case"$":return"$";case"&":return e;case"`":return ob(t,0,n);case"'":return ob(t,a);case"<":f=o[ob(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=KJ(p/10);return d===0?l:d<=u?r[d-1]===void 0?rb(c,1):r[d-1]+rb(c,1):l}f=r[p-1]}return f===void 0?"":f})},QJ=X.TypeError,Kd=function(e,t){var n=e.exec;if(rt(n)){var r=Ve(n,e,t);return r!==null&&Rt(r),r}if(Jr(e)==="RegExp")return Ve(qd,e,t);throw QJ("RegExp#exec called on incompatible receiver")},xE=St("replace"),eZ=Math.max,tZ=Math.min,nZ=pe([].concat),ib=pe([].push),X7=pe("".indexOf),J7=pe("".slice),rZ="a".replace(/./,"$0")==="$0",Z7=!!/./[xE]&&/./[xE]("a","$0")==="";h8("replace",function(e,t,n){var r=Z7?"$":"$0";return[function(o,i){var a=_r(this),u=o==null?void 0:Xu(o,xE);return u?Ve(u,o,a,i):Ve(t,ut(a),o,i)},function(o,i){var a=Rt(this),u=ut(o);if(typeof i=="string"&&X7(i,r)===-1&&X7(i,"$<")===-1){var s=n(t,a,u,i);if(s.done)return s.value}var l=rt(i);l||(i=ut(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var p=[];;){var d=Kd(a,u);if(d===null||(ib(p,d),!c))break;ut(d[0])===""&&(a.lastIndex=g8(u,cc(a.lastIndex),f))}for(var m,g="",v=0,y=0;y<p.length;y++){for(var h=ut((d=p[y])[0]),b=eZ(tZ(Vp(d.index),u.length),0),w=[],D=1;D<d.length;D++)ib(w,(m=d[D])===void 0?m:String(m));var S=d.groups;if(l){var C=nZ([h],w,b,u);S!==void 0&&ib(C,S);var O=ut(p8(i,void 0,C))}else O=ZJ(h,u,b,w,S,i);b>=v&&(g+=J7(u,v,b)+O,v=b+h.length)}return g+J7(u,v)}]},!!Je(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!rZ||Z7);/*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */var AE=function(e,t){return AE=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])},AE(e,t)};function dc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}AE(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Er=function(){return Er=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Er.apply(this,arguments)};function Dr(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function He(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(t===void 0||t-- >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 OE(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}var oZ=0,Q7=function(){this.id=""+oZ++},iZ=Bn.set,aZ=Bn.getterFor("Array Iterator"),Zf=s8(Array,"Array",function(e,t){iZ(this,{type:"Array Iterator",target:Na(e),index:0,kind:t})},function(){var e=aZ(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values");Ul.Arguments=Ul.Array,cd("keys"),cd("values"),cd("entries");var Wl=function(e,t,n){for(var r in t)Vn(e,r,t[r],n);return e},uZ=X.Array,sZ=Math.max,BE=function(e,t,n){for(var r=ps(e),o=Hl(t,r),i=Hl(n===void 0?r:n,r),a=uZ(sZ(i-o,0)),u=0;o<i;o++,u++)Gd(a,u,e[o]);return a.length=u,a},e9=Vd.f,t9=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],lZ={f:function(e){return t9&&Jr(e)=="Window"?function(t){try{return e9(t)}catch{return BE(t9)}}(e):e9(Na(e))}},n9=Je(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),Wh=Object.isExtensible,mu=Je(function(){Wh(1)})||n9?function(e){return!!ct(e)&&(!n9||Jr(e)!="ArrayBuffer")&&(!Wh||Wh(e))}:Wh,cZ=!Je(function(){return Object.isExtensible(Object.preventExtensions({}))}),Q1=Up(function(e){var t=ro.f,n=!1,r=Y5("meta"),o=0,i=function(u){t(u,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var u=Vd.f,s=pe([].splice),l={};l[r]=1,u(l).length&&(Vd.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},Dt({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:lZ.f}))},fastKey:function(u,s){if(!ct(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Nt(u,r)){if(!mu(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!Nt(u,r)){if(!mu(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return cZ&&n&&mu(u)&&!Nt(u,r)&&i(u),u}};G1[r]=!0}),fZ=X.TypeError,Q0=function(e,t){this.stopped=e,this.result=t},r9=Q0.prototype,Yd=function(e,t,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),m=Ju(t,c),g=function(y){return r&&wE(r,"normal",y),new Q0(!0,y)},v=function(y){return f?(Rt(y),d?m(y[0],y[1],g):m(y[0],y[1])):d?m(y,g):m(y)};if(p)r=e;else{if(!(o=i8(e)))throw fZ(U1(e)+" is not iterable");if(cI(o)){for(i=0,a=ps(e);a>i;i++)if((u=v(e[i]))&&Yu(r9,u))return u;return new Q0(!1)}r=fI(e,o)}for(s=r.next;!(l=Ve(s,r)).done;){try{u=v(l.value)}catch(y){wE(r,"throw",y)}if(typeof u=="object"&&u&&Yu(r9,u))return u}return new Q0(!1)},dZ=X.TypeError,em=function(e,t){if(Yu(t,e))return e;throw dZ("Incorrect invocation")},mI=function(e,t,n){var r,o;return Vl&&rt(r=t.constructor)&&r!==n&&ct(o=r.prototype)&&o!==n.prototype&&Vl(e,o),e},yI=function(e,t,n){var r=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,i=r?"set":"add",a=X[e],u=a&&a.prototype,s=a,l={},c=function(v){var y=pe(u[v]);Vn(u,v,v=="add"?function(h){return y(this,h===0?0:h),this}:v=="delete"?function(h){return!(o&&!ct(h))&&y(this,h===0?0:h)}:v=="get"?function(h){return o&&!ct(h)?void 0:y(this,h===0?0:h)}:v=="has"?function(h){return!(o&&!ct(h))&&y(this,h===0?0:h)}:function(h,b){return y(this,h===0?0:h,b),this})};if(Wd(e,!rt(a)||!(o||u.forEach&&!Je(function(){new a().entries().next()}))))s=n.getConstructor(t,e,r,i),Q1.enable();else if(Wd(e,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=Je(function(){f.has(1)}),m=a8(function(v){new a(v)}),g=!o&&Je(function(){for(var v=new a,y=5;y--;)v[i](y,y);return!v.has(-0)});m||((s=t(function(v,y){em(v,u);var h=mI(new a,v,s);return y!=null&&Yd(y,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(d||g)&&(c("delete"),c("has"),r&&c("get")),(g||p)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,Dt({global:!0,forced:s!=a},l),sv(s,e),o||n.setStrong(s,e,r),s},Gh=Q1.getWeakData,pZ=Bn.set,hZ=Bn.getterFor,gZ=fc.find,vZ=fc.findIndex,mZ=pe([].splice),yZ=0,qh=function(e){return e.frozen||(e.frozen=new bI)},bI=function(){this.entries=[]},ab=function(e,t){return gZ(e.entries,function(n){return n[0]===t})};bI.prototype={get:function(e){var t=ab(this,e);if(t)return t[1]},has:function(e){return!!ab(this,e)},set:function(e,t){var n=ab(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=vZ(this.entries,function(n){return n[0]===e});return~t&&mZ(this.entries,t,1),!!~t}};var Xc,wI={getConstructor:function(e,t,n,r){var o=e(function(s,l){em(s,i),pZ(s,{type:t,id:yZ++,frozen:void 0}),l!=null&&Yd(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=hZ(t),u=function(s,l,c){var f=a(s),p=Gh(Rt(l),!0);return p===!0?qh(f).set(l,c):p[f.id]=c,s};return Wl(i,{delete:function(s){var l=a(this);if(!ct(s))return!1;var c=Gh(s);return c===!0?qh(l).delete(s):c&&Nt(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!ct(s))return!1;var c=Gh(s);return c===!0?qh(l).has(s):c&&Nt(c,l.id)}}),Wl(i,n?{get:function(s){var l=a(this);if(ct(s)){var c=Gh(s);return c===!0?qh(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}},Kh=Bn.enforce,bZ=!X.ActiveXObject&&"ActiveXObject"in X,EI=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},wZ=yI("WeakMap",EI,wI);if(YP&&bZ){Xc=wI.getConstructor(EI,"WeakMap",!0),Q1.enable();var Jc=wZ.prototype,o9=pe(Jc.delete),Yh=pe(Jc.has),i9=pe(Jc.get),a9=pe(Jc.set);Wl(Jc,{delete:function(e){if(ct(e)&&!mu(e)){var t=Kh(this);return t.frozen||(t.frozen=new Xc),o9(this,e)||t.frozen.delete(e)}return o9(this,e)},has:function(e){if(ct(e)&&!mu(e)){var t=Kh(this);return t.frozen||(t.frozen=new Xc),Yh(this,e)||t.frozen.has(e)}return Yh(this,e)},get:function(e){if(ct(e)&&!mu(e)){var t=Kh(this);return t.frozen||(t.frozen=new Xc),Yh(this,e)?i9(this,e):t.frozen.get(e)}return i9(this,e)},set:function(e,t){if(ct(e)&&!mu(e)){var n=Kh(this);n.frozen||(n.frozen=new Xc),Yh(this,e)?a9(this,e,t):n.frozen.set(e,t)}else a9(this,e,t);return this}})}var ub=St("iterator"),u9=St("toStringTag"),sb=Zf.values,DI=function(e,t){if(e){if(e[ub]!==sb)try{Xr(e,ub,sb)}catch{e[ub]=sb}if(e[u9]||Xr(e,u9,t),ov[t]){for(var n in Zf)if(e[n]!==Zf[n])try{Xr(e,n,Zf[n])}catch{e[n]=Zf[n]}}}};for(var lb in ov)DI(X[lb]&&X[lb].prototype,lb);DI(JP,"DOMTokenList");var kE=new WeakMap,FE=new WeakMap,v8=new WeakMap,tm=new WeakMap,TE=new WeakMap,cv=new WeakMap,m8=new WeakMap,_E=new WeakMap,eg=new WeakMap,s9=new WeakMap,l9=new WeakMap,c9=new WeakMap,f9=new WeakMap,Xd=new WeakMap,Gl=new WeakMap,y8=new WeakMap,fv=new WeakMap,jE=new WeakMap,dv=new WeakMap,tg=new WeakMap,CI=new WeakMap,ku=new WeakMap,cb=new WeakMap,d9=new WeakMap,fb=new WeakMap,EZ=fc.find,p9=!0;"find"in[]&&Array(1).find(function(){p9=!1}),Dt({target:"Array",proto:!0,forced:p9},{find:function(e){return EZ(this,e,arguments.length>1?arguments[1]:void 0)}}),cd("find"),Dt({global:!0},{globalThis:X});const DZ=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];Xg&&(k.fn.css=Xg),Tr&&(k.fn.append=Tr),Tl&&(k.fn.addClass=Tl),_l&&(k.fn.removeClass=_l),jl&&(k.fn.hasClass=jl),Bo&&(k.fn.on=Bo),Ca&&(k.fn.focus=Ca),Fr&&(k.fn.attr=Fr),Gg&&(k.fn.removeAttr=Gg),Il&&(k.fn.hide=Il),Yg&&(k.fn.show=Yg),OA&&(k.fn.offset=OA),qg&&(k.fn.width=qg),Kg&&(k.fn.height=Kg),Nl&&(k.fn.parent=Nl),Qg&&(k.fn.parents=Qg),kA&&(k.fn.is=kA),Pl&&(k.fn.dataset=Pl),Oo&&(k.fn.val=Oo),Zg&&(k.fn.text=Zg),Da&&(k.fn.html=Da),Ll&&(k.fn.children=Ll),Ml&&(k.fn.remove=Ml),Rl&&(k.fn.find=Rl),Jg&&(k.fn.each=Jg),zl&&(k.fn.empty=zl);var yo,Sn,b8=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},$r=function(e){return Zu(e)&&e.nodeType===1},Zu=function(e){var t=b8(e);return!!t&&e instanceof t.Node},h9=function(e){var t=e&&e.anchorNode&&b8(e.anchorNode);return!!t&&e instanceof t.Selection},SI=function(e){return Zu(e)&&e.nodeType===3},PE=function(e){var t,n,r;return(t=window.document.getElementById(e))!==null&&t!==void 0?t:((r=(n=window.document.activeElement)===null||n===void 0?void 0:n.shadowRoot)===null||r===void 0?void 0:r.getElementById(e))||null},xI=function(e,t,n){for(var r,o=e.childNodes,i=o[t],a=t,u=!1,s=!1;(Zu(r=i)&&r.nodeType===8||$r(i)&&i.childNodes.length===0||$r(i)&&i.getAttribute("contenteditable")==="false")&&(!u||!s);)a>=o.length?(u=!0,a=t-1,n="backward"):a<0?(s=!0,a=t+1,n="forward"):(i=o[a],t=a,a+=n==="forward"?1:-1);return[i,t]},CZ=function(e,t,n){return He(xI(e,t,n),1)[0]},SZ=function e(t){var n,r,o="";if(SI(t)&&t.nodeValue)return t.nodeValue;if($r(t)){try{for(var i=Dr(Array.from(t.childNodes)),a=i.next();!a.done;a=i.next())o+=e(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(t).getPropertyValue("display");u!=="block"&&u!=="list"&&u!=="table-row"&&t.tagName!=="BR"||(o+=`
- `)}return o};function AI(e,t){if(!(e instanceof HTMLElement&&e.dataset.slateVoid==="true"))for(var n=e.childNodes,r=n.length;r--;){var o=n[r],i=o.nodeType;i==3?t(o,e):i!=1&&i!=9&&i!=11||AI(o,t)}}function g9(e){if(e.length===0)return"";var t=e[0];return t.nodeType!==yo.ELEMENT_NODE?"":t.tagName.toLowerCase()}(Sn=yo||(yo={}))[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 IE=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),fd=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Zc=typeof navigator<"u"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),xZ=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),AZ=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),NE=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),Qc=!AZ&&!xZ&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",A={getWindow:function(e){var t=CI.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey:function(e,t){var n=tg.get(t);return n||(n=new Q7,tg.set(t,n)),n},setNewKey:function(e){var t=new Q7;tg.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var o=Gl.get(r);if(o==null){if(E.isEditor(r))return n;break}var i=Xd.get(r);if(i==null)break;n.unshift(i),r=o}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(t))},findDocumentOrShadowRoot:function(e){if(e.isDestroyed)return window.document;var t=A.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&n.getSelection!=null?n:t.ownerDocument},getParentNode:function(e,t){return Gl.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&r!=null;){var o=A.getParentNode(e,r);if(o==null)break;n.push(o),r=o}return n},getTopNode:function(e,t){var n=[A.findPath(e,t)[0]];return Z.get(e,n)},toDOMNode:function(e,t){var n;if(E.isEditor(t))n=y8.get(e);else{var r=A.findKey(e,t);n=jE.get(r)}if(!n)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(t));return n},hasDOMNode:function(e,t,n){n===void 0&&(n={});var r,o=n.editable,i=o!==void 0&&o,a=A.toDOMNode(e,e);try{r=$r(t)?t:t.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(e,t){var n=t.anchor,r=t.focus,o=R.isBackward(t),i=A.toDOMPoint(e,n),a=R.isCollapsed(t)?i:A.toDOMPoint(e,r),u=A.getWindow(e).document.createRange(),s=He(o?a:i,2),l=s[0],c=s[1],f=He(o?i:a,2),p=f[0],d=f[1],m=!!($r(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),g=!!($r(p)?p:p.parentElement).getAttribute("data-slate-zero-width");return u.setStart(l,m?1:c),u.setEnd(p,g?1:d),u},toDOMPoint:function(e,t){var n,r,o,i=He(E.node(e,t.path),1)[0],a=A.toDOMNode(e,i);E.void(e,{at:t})&&(t={path:t.path,offset:0});var u=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),s=0;try{for(var l=Dr(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,m=f.getAttribute("data-slate-length"),g=s+(m==null?d:parseInt(m,10));if(t.offset<=g){o=[p,Math.min(d,Math.max(0,t.offset-s))];break}s=g}}}catch(v){n={error:v}}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(t));return o},toSlateNode:function(e,t){var n=$r(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?fv.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: "+n);return r},findEventRange:function(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var n=t.clientX,r=t.clientY,o=t.target;if(n==null||r==null)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);var i,a=A.toSlateNode(e,t.target),u=A.findPath(e,a);if(E.isVoid(e,a)){var s=o.getBoundingClientRect(),l=e.isInline(a)?n-s.left<s.left+s.width-n:r-s.top<s.top+s.height-r,c=E.point(e,u,{edge:l?"start":"end"}),f=l?E.before(e,c):E.after(e,c);if(f)return E.range(e,f)}var p=this.getWindow(e).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: "+t);return A.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(e,t,n){var r,o,i,a,u,s=n.exactMatch,l=n.suppressThrow;if((h9(t)?t.anchorNode:t.startContainer)&&(h9(t)?(r=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,u=NE&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(r=t.startContainer,o=t.startOffset,i=t.endContainer,a=t.endOffset,u=t.collapsed)),r==null||i==null||o==null||a==null)throw new Error("Cannot resolve a Slate range from DOM range: "+t);var c=A.toSlatePoint(e,[r,o],{exactMatch:s,suppressThrow:l});if(!c)return null;var f=u?c:A.toSlatePoint(e,[i,a],{exactMatch:s,suppressThrow:l});if(!f)return null;var p={anchor:c,focus:f};return R.isExpanded(p)&&R.isForward(p)&&$r(i)&&E.void(e,{at:p.focus,mode:"highest"})&&(p=E.unhangRange(e,p,{voids:!0})),p},toSlatePoint:function(e,t,n){var r,o=n.exactMatch,i=n.suppressThrow,a=He(o?t:function(h){var b,w=He(h,2),D=w[0],S=w[1];if($r(D)&&D.childNodes.length){var C=S===D.childNodes.length,O=C?S-1:S;for(D=(b=He(xI(D,O,C?"backward":"forward"),2))[0],C=(O=b[1])<S;$r(D)&&D.childNodes.length;){var F=C?D.childNodes.length-1:0;D=CZ(D,F,C?"backward":"forward")}S=C&&D.textContent!=null?D.textContent.length:0}return[D,S]}(t),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]"),m=null;if(d){c=d.closest('[data-slate-node="text"]');var g=A.getWindow(e).document.createRange();g.setStart(c,0),g.setEnd(u,s);var v=g.cloneContents();OE(OE([],He(SA(v.querySelectorAll("[data-slate-zero-width]")))),He(SA(v.querySelectorAll("[contenteditable=false]")))).forEach(function(h){h.parentNode.removeChild(h)}),f=v.textContent.length,m=c}else p&&((d=p.querySelector("[data-slate-leaf]"))?(c=d.closest('[data-slate-node="text"]'),f=(m=d).textContent.length,m.querySelectorAll("[data-slate-zero-width]").forEach(function(h){f-=h.textContent.length})):f=1);m&&f===m.textContent.length&&(l.hasAttribute("data-slate-zero-width")||fd&&!((r=m.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: "+t)}var y=A.toSlateNode(e,c);return{path:A.findPath(e,y),offset:f}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return E.hasPath(e,n.path)&&E.hasPath(e,r.path)},getNodeType:function(e){return ce.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map(function(t){return Z.string(t)}).join("")},getSelectedElems:function(e){var t,n,r=[],o=E.nodes(e,{universal:!0});try{for(var i=Dr(o),a=i.next();!a.done;a=i.next()){var u=He(a.value,1)[0];ce.isElement(u)&&r.push(u)}}catch(s){t={error:s}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},getSelectedNodeByType:function(e,t){var n=this,r=He(E.nodes(e,{match:function(i){return n.checkNodeType(i,t)},universal:!0}),1),o=r[0];return o==null?null:o[0]},getSelectedTextNode:function(e){var t=He(E.nodes(e,{match:function(r){return oe.isText(r)},universal:!0}),1),n=t[0];return n==null?null:n[0]},isNodeSelected:function(e,t){var n=He(E.nodes(e,{match:function(o){return o===t},universal:!0}),1),r=n[0];return r!=null&&He(r,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(E.isEnd(e,n.anchor,t)||E.isEnd(e,n.focus,t))},getTextarea:function(e){var t=kE.get(e);if(t==null)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return tm.get(e)||null},getHoverbar:function(e){return cv.get(e)||null},normalizeContent:function(e){e.children.forEach(function(t,n){e.normalizeNode([t,[n]])})},getLeftLengthOfMaxLength:function(e){var t=e.getConfig(),n=t.maxLength,r=t.onMaxLength;if(typeof n!="number"||n<=0)return 1/0;var o=n-e.getText().replace(/\r|\n|(\r\n)/g,"").length;return o<=0&&r&&r(e),o},cleanExposedTexNodeInSelectionBlock:function(e){var t,n,r,o,i=A.getTextarea(e).$textArea,a=i==null?void 0:i[0].childNodes;if(a)try{for(var u=Dr(Array.from(a)),s=u.next();!s.done;s=u.next()){var l=s.value;if(l.nodeType!==3)break;l.remove()}}catch(g){t={error:g}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}var c=E.nodes(e,{match:function(g){return!(!ce.isElement(g)||e.isInline(g))},universal:!0});try{for(var f=Dr(c),p=f.next();!p.done;p=f.next()){var d=p.value;if(d!=null){var m=d[0];AI(A.toDOMNode(e,m),function(g,v){var y=k(v);y.attr("data-slate-string")||y.attr("data-slate-zero-width")||y.attr("data-w-e-reserve")||v.removeChild(g)})}}}catch(g){r={error:g}}finally{try{p&&!p.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}},isLastNode:function(e,t){var n=e.children||[];return n[n.length-1]===t},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(e){var t,n,r=E.nodes(e,{match:function(u){return e.isVoid(u)}}),o=0;try{for(var i=Dr(r),a=i.next();!a.done;a=i.next())a.value,o++}catch(u){t={error:u}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return o>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(t==null||R.isExpanded(t))return!1;var n=A.getSelectedNodeByType(e,"paragraph");if(n===null)return!1;var r=n.children;return r.length===1&&(r[0].text===""||void 0)},isEmptyPath:function(e,t){var n=E.node(e,t);if(n==null)return!1;var r=He(n,1)[0].children;return r.length===1&&r[0].text===""}},OZ=1,OI={},Jd={},BZ=fc.filter,kZ=J1("filter");Dt({target:"Array",proto:!0,forced:!kZ},{filter:function(e){return BZ(this,e,arguments.length>1?arguments[1]:void 0)}});var RE=`
- \v\f\r \u2028\u2029\uFEFF`,v9=pe("".replace),pv="["+RE+"]",FZ=RegExp("^"+pv+pv+"*"),TZ=RegExp(pv+pv+"*$"),db=function(e){return function(t){var n=ut(_r(t));return 1&e&&(n=v9(n,FZ,"")),2&e&&(n=v9(n,TZ,"")),n}},_Z={start:db(1),end:db(2),trim:db(3)},jZ=lc.PROPER,PZ=_Z.trim;Dt({target:"String",proto:!0,forced:function(e){return Je(function(){return!!RE[e]()||"
"[e]()!=="
"||jZ&&RE[e].name!==e})}("trim")},{trim:function(){return PZ(this)}});var LE=[],BI={};function IZ(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}var Zd,Fs,m9,pb,hv=X.Promise,y9=St("species"),w8=function(e){var t=ds(e),n=ro.f;an&&t&&!t[y9]&&n(t,y9,{configurable:!0,get:function(){return this}})},NZ=X.TypeError,RZ=St("species"),kI=function(e,t){var n,r=Rt(e).constructor;return r===void 0||(n=Rt(r)[RZ])==null?t:function(o){if(Y1(o))return o;throw NZ(U1(o)+" is not a constructor")}(n)},FI=pe([].slice),TI=/(?:ipad|iphone|ipod).*applewebkit/i.test(gl),ia=Jr(X.process)=="process",ME=X.setImmediate,zE=X.clearImmediate,LZ=X.process,hb=X.Dispatch,MZ=X.Function,b9=X.MessageChannel,zZ=X.String,gb=0,dd={};try{Zd=X.location}catch{}var E8=function(e){if(Nt(dd,e)){var t=dd[e];delete dd[e],t()}},vb=function(e){return function(){E8(e)}},w9=function(e){E8(e.data)},E9=function(e){X.postMessage(zZ(e),Zd.protocol+"//"+Zd.host)};ME&&zE||(ME=function(e){var t=FI(arguments,1);return dd[++gb]=function(){p8(rt(e)?e:MZ(e),void 0,t)},Fs(gb),gb},zE=function(e){delete dd[e]},ia?Fs=function(e){LZ.nextTick(vb(e))}:hb&&hb.now?Fs=function(e){hb.now(vb(e))}:b9&&!TI?(pb=(m9=new b9).port2,m9.port1.onmessage=w9,Fs=Ju(pb.postMessage,pb)):X.addEventListener&&rt(X.postMessage)&&!X.importScripts&&Zd&&Zd.protocol!=="file:"&&!Je(E9)?(Fs=E9,X.addEventListener("message",w9,!1)):Fs="onreadystatechange"in Ud("script")?function(e){mE.appendChild(Ud("script")).onreadystatechange=function(){mE.removeChild(this),E8(e)}}:function(e){setTimeout(vb(e),0)});var ef,pu,pd,nl,mb,yb,bb,D9,_I={set:ME,clear:zE},$Z=/ipad|iphone|ipod/i.test(gl)&&X.Pebble!==void 0,HZ=/web0s(?!.*chrome)/i.test(gl),UZ=Wp.f,wb=_I.set,C9=X.MutationObserver||X.WebKitMutationObserver,S9=X.document,x9=X.process,Xh=X.Promise,A9=UZ(X,"queueMicrotask"),jI=A9&&A9.value;jI||(ef=function(){var e,t;for(ia&&(e=x9.domain)&&e.exit();pu;){t=pu.fn,pu=pu.next;try{t()}catch(n){throw pu?nl():pd=void 0,n}}pd=void 0,e&&e.enter()},TI||ia||HZ||!C9||!S9?!$Z&&Xh&&Xh.resolve?((bb=Xh.resolve(void 0)).constructor=Xh,D9=Ju(bb.then,bb),nl=function(){D9(ef)}):ia?nl=function(){x9.nextTick(ef)}:(wb=Ju(wb,X),nl=function(){wb(ef)}):(mb=!0,yb=S9.createTextNode(""),new C9(ef).observe(yb,{characterData:!0}),nl=function(){yb.data=mb=!mb}));var Eb,O9,PI,B9,II=jI||function(e){var t={fn:e,next:void 0};pd&&(pd.next=t),pu||(pu=t,nl()),pd=t},VZ=function(e){var t,n;this.promise=new e(function(r,o){if(t!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");t=r,n=o}),this.resolve=Sa(t),this.reject=Sa(n)},D8={f:function(e){return new VZ(e)}},$E=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},WZ=typeof window=="object",NI=_I.set,GZ=St("species"),go="Promise",k9=Bn.getterFor(go),qZ=Bn.set,KZ=Bn.getterFor(go),uu=hv&&hv.prototype,bo=hv,tf=uu,RI=X.TypeError,HE=X.document,C8=X.process,ml=D8.f,YZ=ml,XZ=!!(HE&&HE.createEvent&&X.dispatchEvent),LI=rt(X.PromiseRejectionEvent),MI=!1,hd=Wd(go,function(){var e=W1(bo),t=e!==String(bo);if(!t&&Hd===66)return!0;if(Hd>=51&&/native code/.test(e))return!1;var n=new bo(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[GZ]=r,!(MI=n.then(function(){})instanceof r)||!t&&WZ&&!LI}),JZ=hd||!a8(function(e){bo.all(e).catch(function(){})}),zI=function(e){var t;return!(!ct(e)||!rt(t=e.then))&&t},S8=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;II(function(){for(var r=e.value,o=e.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||(e.rejection===2&&QZ(e),e.rejection=1),c===!0?a=r:(d&&d.enter(),a=c(r),d&&(d.exit(),s=!0)),a===l.promise?p(RI("Promise-chain cycle")):(u=zI(a))?Ve(u,a,f,p):f(a)):p(r)}catch(m){d&&!s&&d.exit(),p(m)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&ZZ(e)})}},$I=function(e,t,n){var r,o;XZ?((r=HE.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),X.dispatchEvent(r)):r={promise:t,reason:n},!LI&&(o=X["on"+e])?o(r):e==="unhandledrejection"&&function(i,a){var u=X.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))}("Unhandled promise rejection",n)},ZZ=function(e){Ve(NI,X,function(){var t,n=e.facade,r=e.value;if(F9(e)&&(t=$E(function(){ia?C8.emit("unhandledRejection",r,n):$I("unhandledrejection",n,r)}),e.rejection=ia||F9(e)?2:1,t.error))throw t.value})},F9=function(e){return e.rejection!==1&&!e.parent},QZ=function(e){Ve(NI,X,function(){var t=e.facade;ia?C8.emit("rejectionHandled",t):$I("rejectionhandled",t,e.value)})},ll=function(e,t,n){return function(r){e(t,r,n)}},yl=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,S8(e,!0))},UE=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw RI("Promise can't be resolved itself");var r=zI(t);r?II(function(){var o={done:!1};try{Ve(r,t,ll(UE,o,e),ll(yl,o,e))}catch(i){yl(o,i,e)}}):(e.value=t,e.state=1,S8(e,!1))}catch(o){yl({done:!1},o,e)}}};if(hd&&(tf=(bo=function(e){em(this,tf),Sa(e),Ve(Eb,this);var t=k9(this);try{e(ll(UE,t),ll(yl,t))}catch(n){yl(t,n)}}).prototype,(Eb=function(e){qZ(this,{type:go,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Wl(tf,{then:function(e,t){var n=KZ(this),r=n.reactions,o=ml(kI(this,bo));return o.ok=!rt(e)||e,o.fail=rt(t)&&t,o.domain=ia?C8.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&S8(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),O9=function(){var e=new Eb,t=k9(e);this.promise=e,this.resolve=ll(UE,t),this.reject=ll(yl,t)},D8.f=ml=function(e){return e===bo||e===PI?new O9(e):YZ(e)},rt(hv)&&uu!==Object.prototype)){B9=uu.then,MI||(Vn(uu,"then",function(e,t){var n=this;return new bo(function(r,o){Ve(B9,n,r,o)}).then(e,t)},{unsafe:!0}),Vn(uu,"catch",tf.catch,{unsafe:!0}));try{delete uu.constructor}catch{}Vl&&Vl(uu,tf)}Dt({global:!0,wrap:!0,forced:hd},{Promise:bo}),sv(bo,go,!1),w8(go),PI=ds(go),Dt({target:go,stat:!0,forced:hd},{reject:function(e){var t=ml(this);return Ve(t.reject,void 0,e),t.promise}}),Dt({target:go,stat:!0,forced:hd},{resolve:function(e){return function(t,n){if(Rt(t),ct(n)&&n.constructor===t)return n;var r=D8.f(t);return(0,r.resolve)(n),r.promise}(this,e)}}),Dt({target:go,stat:!0,forced:JZ},{all:function(e){var t=this,n=ml(t),r=n.resolve,o=n.reject,i=$E(function(){var a=Sa(t.resolve),u=[],s=0,l=1;Yd(e,function(c){var f=s++,p=!1;l++,Ve(a,t,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(e){var t=this,n=ml(t),r=n.reject,o=$E(function(){var i=Sa(t.resolve);Yd(e,function(a){Ve(i,t,a).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var Ts=Z1.UNSUPPORTED_Y,eQ=Math.min,HI=[].push,tQ=pe(/./.exec),_s=pe(HI),nf=pe("".slice);function jr(e){Promise.resolve().then(e)}function UI(e,t){return ce.isElement(e)?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 UI(y,r)}).join(""));var c=function(y){return BI[y]||IZ}(i),f=c(n,l,r),p="";if(p=typeof f=="string"?f:f.html||"",s||LE.forEach(function(y){return p=y(n,p)}),typeof f=="string")return p;var d=f.prefix,m=d===void 0?"":d,g=f.suffix,v=g===void 0?"":g;return m&&(p=m+p),v&&(p+=v),p}(e,t):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 LE.forEach(function(s){return i=s(n,i)}),i}(e,t)}function VI(e){return"w-e-element-"+e}h8("split",function(e,t,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=ut(_r(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[a];if(!n8(o))return Ve(t,a,o,u);for(var s,l,c,f=[],p=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),d=0,m=new RegExp(o.source,p+"g");(s=Ve(qd,m,a))&&!((l=m.lastIndex)>d&&(_s(f,nf(a,d,s.index)),s.length>1&&s.index<a.length&&p8(HI,f,BE(s,1)),c=s[0].length,d=l,f.length>=u));)m.lastIndex===s.index&&m.lastIndex++;return d===a.length?!c&&tQ(m,"")||_s(f,""):_s(f,nf(a,d)),f.length>u?BE(f,0,u):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Ve(t,this,o,i)}:t,[function(o,i){var a=_r(this),u=o==null?void 0:Xu(o,e);return u?Ve(u,o,a,i):Ve(r,ut(a),o,i)},function(o,i){var a=Rt(this),u=ut(o),s=n(r,a,u,i,r!==t);if(s.done)return s.value;var l=kI(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Ts?"g":"y"),p=new l(Ts?"^(?:"+a.source+")":a,f),d=i===void 0?4294967295:i>>>0;if(d===0)return[];if(u.length===0)return Kd(p,u)===null?[u]:[];for(var m=0,g=0,v=[];g<u.length;){p.lastIndex=Ts?0:g;var y,h=Kd(p,Ts?nf(u,g):u);if(h===null||(y=eQ(cc(p.lastIndex+(Ts?g:0)),u.length))===m)g=g8(u,g,c);else{if(_s(v,nf(u,m,g)),v.length===d)return v;for(var b=1;b<=h.length-1;b++)if(_s(v,h[b]),v.length===d)return v;g=m=y}}return _s(v,nf(u,m)),v}]},!!Je(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),Ts);var T9=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},_9=function(e,t,n){var r=A.toDOMRange(e,t).getBoundingClientRect(),o=A.toDOMRange(e,n).getBoundingClientRect();return T9(r,o)&&T9(o,r)},WI=["span","b","strong","i","em","s","strike","u","font","sub","sup"],GI=[],x8=[],gv={},nQ=ro.f,rQ=Vd.f,oQ=Bn.enforce,iQ=St("match"),Zo=X.RegExp,rl=Zo.prototype,aQ=X.SyntaxError,uQ=pe(t8),sQ=pe(rl.exec),Jh=pe("".charAt),j9=pe("".replace),P9=pe("".indexOf),lQ=pe("".slice),cQ=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Fu=/a/g,Db=/a/g,fQ=new Zo(Fu)!==Fu,qI=Z1.MISSED_STICKY,dQ=Z1.UNSUPPORTED_Y,pQ=an&&(!fQ||qI||c8||f8||Je(function(){return Db[iQ]=!1,Zo(Fu)!=Fu||Zo(Db)==Db||Zo(Fu,"i")!="/a/i"}));if(Wd("RegExp",pQ)){for(var Ai=function(e,t){var n,r,o,i,a,u,s=Yu(rl,this),l=n8(e),c=t===void 0,f=[],p=e;if(!s&&l&&c&&e.constructor===Ai)return e;if((l||Yu(rl,e))&&(e=e.source,c&&(t="flags"in p?p.flags:uQ(p))),e=e===void 0?"":ut(e),t=t===void 0?"":ut(t),p=e,c8&&"dotAll"in Fu&&(r=!!t&&P9(t,"s")>-1)&&(t=j9(t,/s/g,"")),n=t,qI&&"sticky"in Fu&&(o=!!t&&P9(t,"y")>-1)&&dQ&&(t=j9(t,/y/g,"")),f8&&(i=function(d){for(var m,g=d.length,v=0,y="",h=[],b={},w=!1,D=!1,S=0,C="";v<=g;v++){if((m=Jh(d,v))==="\\")m+=Jh(d,++v);else if(m==="]")w=!1;else if(!w)switch(!0){case m==="[":w=!0;break;case m==="(":sQ(cQ,lQ(d,v+1))&&(v+=2,D=!0),y+=m,S++;continue;case(m===">"&&D):if(C===""||Nt(b,C))throw new aQ("Invalid capture group name");b[C]=!0,h[h.length]=[C,S],D=!1,C="";continue}D?C+=m:y+=m}return[y,h]}(e),e=i[0],f=i[1]),a=mI(Zo(e,t),s?this:rl,Ai),(r||o||f.length)&&(u=oQ(a),r&&(u.dotAll=!0,u.raw=Ai(function(d){for(var m,g=d.length,v=0,y="",h=!1;v<=g;v++)(m=Jh(d,v))!=="\\"?h||m!=="."?(m==="["?h=!0:m==="]"&&(h=!1),y+=m):y+="[\\s\\S]":y+=m+Jh(d,++v);return y}(e),n)),o&&(u.sticky=!0),f.length&&(u.groups=f)),e!==p)try{Xr(a,"source",p===""?"(?:)":p)}catch{}return a},hQ=function(e){e in Ai||nQ(Ai,e,{configurable:!0,get:function(){return Zo[e]},set:function(t){Zo[e]=t}})},I9=rQ(Zo),N9=0;I9.length>N9;)hQ(I9[N9++]);rl.constructor=Ai,Ai.prototype=rl,Vn(X,"RegExp",Ai)}w8("RegExp");var gQ=new RegExp(String.fromCharCode(160),"g");function KI(e){return e.replace(gQ," ")}function R9(e,t){var n=e.length;if(n){var r=e[n-1];if(oe.isText(r)){var o=Object.keys(r);if(o.length===1&&o[0]==="text")return r.text=r.text+t,!0}}return!1}function vQ(e,t,n){return{type:"paragraph",children:[{text:k(e).text().replace(/\s+/gm," ")}]}}function Cb(e,t){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!==yo.ELEMENT_NODE){if(l.nodeType===yo.TEXT_NODE){var c=l.textContent||"";if(c.trim()===""&&c.indexOf(`
- `)>=0)return;c&&(c=KI(c),R9(u,c)||u.push({text:c}))}}else{if(l.nodeName==="BR")return void(R9(u,`
- `)||u.push({text:`
- `}));var f=A8(k(l),a);Array.isArray(f)?f.forEach(function(p){return u.push(p)}):u.push(f)}}),u)}(e,t),r=function(i){for(var a in gv)if(i[0].matches(a))return gv[a];return vQ}(e),o=r(e[0],n,t);return Array.isArray(o)||(o=[o]),o.forEach(function(i){E.isVoid(t,i)||(n.length===0&&(i.children=[{text:e.text().replace(/\s+/gm," ")}]),x8.forEach(function(a){i=a(e[0],i,t)}))}),o}function Sb(e,t){e.parents("pre").length===0&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,`
- `));var n=e[0].textContent||"";n=function(o){return o.replace(/ /g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™").replace(/"/g,'"')}(n);var r={text:n=KI(n)};return x8.forEach(function(o){r=o(e[0],r,t)}),r}function A8(e,t){GI.forEach(function(r){var o=r.selector,i=r.preParseHtml;e[0].matches(o)&&(e=k(i(e[0])))});var n=g9(e);return n==="span"?e.attr("data-w-e-type")?Cb(e,t):Sb(e,t):n==="code"?g9(e.parent())==="pre"?Cb(e,t):Sb(e,t):WI.includes(n)?Sb(e,t):Cb(e,t)}function YI(e,t,n){var r=k(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",function(){r.removeAttr(t)}),!1)}function L9(e,t){t===void 0&&(t="");var n=[];t===""&&(t="<p><br></p>"),t.indexOf("<")!==0&&(t=t.split(/\n/).map(function(o){return"<p>"+o+"</p>"}).join(""));var r=k("<div>"+t+"</div>");return Array.from(r.children()).forEach(function(o){var i=A8(k(o),e);Array.isArray(i)?i.forEach(function(a){return n.push(a)}):n.push(i)}),n}var mQ=ro.f,M9=Q1.fastKey,z9=Bn.set,xb=Bn.getterFor,yQ={getConstructor:function(e,t,n,r){var o=e(function(l,c){em(l,i),z9(l,{type:t,index:X1(null),first:void 0,last:void 0,size:0}),an||(l.size=0),c!=null&&Yd(c,l[r],{that:l,AS_ENTRIES:n})}),i=o.prototype,a=xb(t),u=function(l,c,f){var p,d,m=a(l),g=s(l,c);return g?g.value=f:(m.last=g={index:d=M9(c,!0),key:c,value:f,previous:p=m.last,next:void 0,removed:!1},m.first||(m.first=g),p&&(p.next=g),an?m.size++:l.size++,d!=="F"&&(m.index[d]=g)),l},s=function(l,c){var f,p=a(l),d=M9(c);if(d!=="F")return p.index[d];for(f=p.first;f;f=f.next)if(f.key==c)return f};return Wl(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,an?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,m=p.previous;delete f.index[p.index],p.removed=!0,m&&(m.next=d),d&&(d.previous=m),f.first==p&&(f.first=d),f.last==p&&(f.last=m),an?f.size--:c.size--}return!!p},forEach:function(l){for(var c,f=a(this),p=Ju(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)}}),Wl(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)}}),an&&mQ(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=xb(t),i=xb(r);s8(e,t,function(a,u){z9(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),w8(t)}};yI("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},yQ);var $9=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function H9(e,t){e.isInline(t)?(e.insertNode(t),t.type==="link"&&e.insertFragment([{text:""}])):I.insertNodes(e,t,{mode:"highest"})}var bQ=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(r){var o=t.selection;if(o){var i=He(R.edges(o),2),a=i[0],u=i[1],s=E.void(t,{at:a.path}),l=E.void(t,{at:u.path});if(!R.isCollapsed(o)||s){var c=A.toDOMRange(t,o),f=c.cloneContents(),p=f.childNodes[0];if(f.childNodes.forEach(function(D){D.textContent&&D.textContent.trim()!==""&&(p=D)}),l){var d=He(l,1)[0],m=c.cloneRange(),g=A.toDOMNode(t,d);m.setEndAfter(g),f=m.cloneContents()}if(s&&(p=f.querySelector("[data-slate-spacer]")),Array.from(f.querySelectorAll("[data-slate-zero-width]")).forEach(function(D){var S=D.getAttribute("data-slate-zero-width")==="n";D.textContent=S?`
- `:""}),SI(p)){var v=p.ownerDocument.createElement("span");v.style.whiteSpace="pre",v.appendChild(p),f.appendChild(v),p=v}var y=t.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",SZ(w)),f.ownerDocument.body.removeChild(w),r}}},t.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);t.insertFragment(s)}else{var l=r.getData("text/plain"),c=r.getData("text/html");if(c)t.dangerouslyInsertHtml(c);else if(l){var f=l.split(/\r\n|\r|\n/),p=!1;try{for(var d=Dr(f),m=d.next();!m.done;m=d.next()){var g=m.value;p&&I.splitNodes(t,{always:!0}),n(g),p=!0}}catch(v){o={error:v}}finally{try{m&&!m.done&&(i=d.return)&&i.call(d)}finally{if(o)throw o.error}}}}},t},Qf=function(e){return e!=null},wQ={object:!0,function:!0,undefined:!0},EQ=/^\s*class[\s{/}]/,DQ=Function.prototype.toString,U9=function(e){return!!function(t){if(typeof t!="function"||!hasOwnProperty.call(t,"length"))return!1;try{if(typeof t.length!="number"||typeof t.call!="function"||typeof t.apply!="function")return!1}catch{return!1}return!function(n){if(!function(r){return!!Qf(r)&&hasOwnProperty.call(wQ,typeof r)}(n))return!1;try{return!!n.constructor&&n.constructor.prototype===n}catch{return!1}}(t)}(e)&&!EQ.test(DQ.call(e))},O8=function(e){return e!=null},CQ=Object.keys,SQ=function(){try{return Object.keys("primitive"),!0}catch{return!1}}()?Object.keys:function(e){return CQ(O8(e)?Object(e):e)},xQ=function(e){if(!O8(e))throw new TypeError("Cannot use null or undefined");return e},AQ=Math.max,V9=function(){var e,t=Object.assign;return typeof t=="function"&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}()?Object.assign:function(e,t){var n,r,o,i=AQ(arguments.length,2);for(e=Object(xQ(e)),o=function(a){try{e[a]=t[a]}catch(u){n||(n=u)}},r=1;r<i;++r)SQ(t=arguments[r]).forEach(o);if(n!==void 0)throw n;return e},OQ=Array.prototype.forEach,BQ=Object.create,kQ=function(e,t){var n;for(n in e)t[n]=e[n]},W9=function(e){var t=BQ(null);return OQ.call(arguments,function(n){O8(n)&&kQ(Object(n),t)}),t},Ab="razdwatrzy",FQ=String.prototype.indexOf,rf=typeof Ab.contains=="function"&&Ab.contains("dwa")===!0&&Ab.contains("foo")===!1?String.prototype.contains:function(e){return FQ.call(this,e,arguments[1])>-1},Zh=Up(function(e){var t=e.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],Qf(n)?(o=rf.call(n,"c"),i=rf.call(n,"e"),a=rf.call(n,"w")):(o=a=!0,i=!1),s={value:r,configurable:o,enumerable:i,writable:a},u?V9(W9(u),s):s};t.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],Qf(r)?U9(r)?Qf(o)?U9(o)||(u=o,o=void 0):o=void 0:(u=r,r=o=void 0):r=void 0,Qf(n)?(i=rf.call(n,"c"),a=rf.call(n,"e")):(i=!0,a=!1),s={get:r,set:o,configurable:i,enumerable:a},u?V9(W9(u),s):s}}),Ob=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},TQ=Up(function(e,t){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,m=Object.prototype.hasOwnProperty,g={configurable:!0,enumerable:!1,writable:!0};n=function(v,y){var h;return Ob(y),m.call(this,"__ee__")?h=this.__ee__:(h=g.value=f(null),p(this,"__ee__",g),g.value=null),h[v]?typeof h[v]=="object"?h[v].push(y):h[v]=[h[v],y]:h[v]=y,this},r=function(v,y){var h,b;return Ob(y),b=this,n.call(this,v,h=function(){o.call(b,v,h),l.call(y,this,arguments)}),h.__eeOnceListener__=y,this},o=function(v,y){var h,b,w,D;if(Ob(y),!m.call(this,"__ee__"))return this;if(!(h=this.__ee__)[v])return this;if(typeof(b=h[v])=="object")for(D=0;w=b[D];++D)w!==y&&w.__eeOnceListener__!==y||(b.length===2?h[v]=b[D?0:1]:b.splice(D,1));else b!==y&&b.__eeOnceListener__!==y||delete h[v];return this},i=function(v){var y,h,b,w,D;if(m.call(this,"__ee__")&&(w=this.__ee__[v]))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:Zh(n),once:Zh(r),off:Zh(o),emit:Zh(i)},s=d({},u),e.exports=t=function(v){return v==null?f(s):d(Object(v),u)},t.methods=a});function Qh(e){var t=d9.get(e);return t==null&&(t=TQ(),d9.set(e,t)),t}var vv=new WeakMap;function G9(e,t){var n=vv.get(e);n==null&&(n=new Set,vv.set(e,n)),n.add(t)}function _Q(e){return vv.get(e)||new Set}function jQ(e){vv.set(e,new Set)}function B8(e){var t=A.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),o=t.offset();return{top:o.top,left:o.left,width:n,height:r}}function k8(e){var t={top:"0",left:"0"},n=e.selection;if(n==null)return t;var r=B8(e);if(r==null)return t;var o=r.top,i=r.left,a=r.width,u=r.height,s=A.toDOMRange(e,n).getClientRects()[0];if(s==null)return t;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 m=u-f;c.bottom=m+5+"px"}else{var g=f+l;g<0&&(g=0),c.top=g+5+"px"}return c}function F8(e,t,n){n===void 0&&(n="modal");var r={top:"0",left:"0"};if(e.selection==null)return r;var o=ce.isElement(t)&&e.isVoid(t),i=ce.isElement(t)&&e.isInline(t),a=dv.get(t);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(C){var O=[];O.push(C);for(var F=0;O.length>0;){var L=O.pop();if(L==null||++F>1e4)break;var H=L.nodeName;if(L.nodeType===1){var M=H.toLowerCase();if(DZ.includes(M)||M==="iframe"||M==="video")return L;var K=L.children||[],V=K.length;if(V)for(var G=V-1;G>=0;G--)O.push(K[G])}}return null}(a);if(p!=null){var d=p.getBoundingClientRect();s=d.top,c=d.height}}var m=B8(e);if(m==null)return r;var g,v=m.top,y=m.left,h=m.width,b=m.height,w={},D=s-v,S=l-y;if(n==="bar")return w.left=S+"px",D>40?w.bottom=b-D+5+"px":w.top=D+c+5+"px",w;if(n==="modal")return o?i?S>(h-f)/2?w.right=h-S+5+"px":w.left=S+f+5+"px":w.left="20px":w.left=S+"px",o?((g=D)<0&&(g=0),w.top=g+"px"):D>(b-c)/2?w.bottom=b-D+5+"px":((g=D+c)<0&&(g=0),w.top=g+5+"px"),w;throw new Error("type '"+n+"' is invalid")}function VE(e,t){jr(function(){var n=B8(e);if(n!=null){var r,o=n.top,i=n.left,a=n.width,u=n.height,s=t.offset(),l=s.top,c=s.left,f=t.width(),p=t.height(),d=l-o,m=c-i,g=t.attr("style");if(g.indexOf("top")>=0&&(r=d+p-u)>0){var v=t.css("top"),y=parseInt(v.toString())-r;y<0&&(y=0),t.css("top",y+"px")}if(g.indexOf("bottom")>=0&&l<0){var h=t.css("bottom"),b=parseInt(h.toString())-Math.abs(l);t.css("bottom",b+"px")}if(g.indexOf("left")>=0&&(r=m+f-a)>0){var w=t.css("left"),D=parseInt(w.toString())-r;D<0&&(D=0),t.css("left",D+"px")}if(g.indexOf("right")>=0&&c<0){var S=t.css("right"),C=parseInt(S.toString())-Math.abs(c);t.css("right",C+"px")}}})}var PQ=J1("slice"),IQ=St("species"),Bb=X.Array,NQ=Math.max;Dt({target:"Array",proto:!0,forced:!PQ},{slice:function(e,t){var n,r,o,i=Na(this),a=ps(i),u=Hl(e,a),s=Hl(t===void 0?a:t,a);if(iv(i)&&(n=i.constructor,(Y1(n)&&(n===Bb||iv(n.prototype))||ct(n)&&(n=n[IQ])===null)&&(n=void 0),n===Bb||n===void 0))return FI(i,u,s);for(r=new(n===void 0?Bb:n)(NQ(s-u,0)),o=0;u<s;u++,o++)u in i&&Gd(r,o,i[u]);return r.length=o,r}});var RQ=Wp.f,q9=pe("".startsWith),LQ=pe("".slice),MQ=Math.min,XI=o8("startsWith"),zQ=!XI&&!!function(){var e=RQ(String.prototype,"startsWith");return e&&!e.writable}();Dt({target:"String",proto:!0,forced:!zQ&&!XI},{startsWith:function(e){var t=ut(_r(this));r8(e);var n=cc(MQ(arguments.length>1?arguments[1]:void 0,t.length)),r=ut(e);return q9?q9(t,r,n):LQ(t,n,n+r.length)===r}});var js=Object.assign,K9=Object.defineProperty,$Q=pe([].concat),Y9=!js||Je(function(){if(an&&js({b:1},js(K9({},"a",{enumerable:!0,get:function(){K9(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(o){t[o]=o}),js({},e)[n]!=7||vl(js({},t)).join("")!=r})?function(e,t){for(var n=Ia(e),r=arguments.length,o=1,i=aI.f,a=rI.f;r>o;)for(var u,s=K1(arguments[o++]),l=i?$Q(vl(s),i(s)):vl(s),c=l.length,f=0;c>f;)u=l[f++],an&&!Ve(a,s,u)||(n[u]=s[u]);return n}:js;Dt({target:"Object",stat:!0,forced:Object.assign!==Y9},{assign:Y9});var HQ=["props","attrs","style","dataset","on","hook"];function JI(e){var t=e.data,n=t===void 0?{}:t,r=e.children,o=r===void 0?[]:r;Object.keys(n).forEach(function(i){var a,u,s=n[i];if(i!=="key"){if(!HQ.includes(i)){if(i.startsWith("data-")){var l=i.slice(5);return l=dK(l),function(c,f){c.data==null&&(c.data={});var p=c.data;p.dataset==null&&(p.dataset={}),Object.assign(p.dataset,f)}(e,((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)})(e,(u={},u[i]=s,u)),delete n[i]}}else e.key=s}),o.length>0&&o.forEach(function(i){typeof i!="string"&&JI(i)})}var WE=[],ZI={};function UQ(e,t,n){return be(n.isInline(e)?"span":"div",null,t)}function X9(e,t){return t===void 0&&(t=!1),be("span",{"data-slate-string":!0},t?e+`
- `:e)}function kb(e,t){return e===void 0&&(e=0),t===void 0&&(t=!1),be("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\uFEFF",t?be("br",null):null)}function GE(e,t,n,r){return Xd.set(e,t),Gl.set(e,n),ce.isElement(e)?function(o,i){var a,u=A.findKey(i,o),s=i.isInline(o),l=E.isVoid(i,o),c=VI(u.id),f={id:c,key:u.id,"data-slate-node":"element","data-slate-inline":s},p=o.type,d=o.children,m=d===void 0?[]:d,g=function(D){return ZI[D]||UQ}(p);a=l?null:m.map(function(D,S){return GE(D,S,o,i)});var v=g(o,a,i);if(l){f["data-slate-void"]=!0;var y=s?"span":"div",h=He(Z.texts(o),1),b=He(h[0],1)[0],w=be(y,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},GE(b,0,o,i));v=be(y,{style:{position:"relative"}},v,w),Xd.set(b,0),Gl.set(b,o)}return v.data==null&&(v.data={}),Object.assign(v.data,f),l||s||(v=function(D,S){var C=S;return WE.forEach(function(O){C=O(D,S)}),C}(o,v)),jr(function(){var D=PE(c);D!=null&&(jE.set(u,D),dv.set(o,D),fv.set(D,o))}),v}(e,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=oe.decorations(o,c),p=f.map(function(g,v){var y=function(h,b,w,D,S){b===void 0&&(b=!1);var C=h.text,O=A.findPath(S,w),F=P.parent(O);if(E.isEditor(D))throw new Error("Text node "+JSON.stringify(w)+" parent is Editor");return S.isVoid(D)?kb(Z.string(D).length):C!==""||D.children[D.children.length-1]!==w||S.isInline(D)||E.string(S,F)!==""?C===""?kb():b&&C.slice(-1)===`
- `?X9(C,!0):X9(C):kb(0,!0)}(g,v===f.length-1,o,i,a);return y=function(h,b){var w=b;return WE.forEach(function(D){w=D(h,w)}),w}(g,y),be("span",{"data-slate-leaf":!0},y)}),d=function(g){return"w-e-text-"+g}(u.id),m=be("span",{"data-slate-node":"text",id:d,key:u.id},p);return jr(function(){var g=PE(d);g!=null&&(jE.set(u,g),dv.set(o,g),fv.set(g,o))}),m}(e,n,r)}function VQ(e,t){var n,r=e.$scroll,o=function(g){return"w-e-textarea-"+g}(e.id),i=t.getConfig(),a=i.readOnly,u=i.autoFocus,s=function(g,v){return v===void 0&&(v=!1),$l("div#"+g,{props:{contentEditable:!v}})}(o,a),l=t.children||[];s.children=l.map(function(g,v){var y=GE(g,v,t,t);return JI(y),y});var c=l9.get(e);if(c==null&&(c=!0),c){var f=function(g,v){return k(`<div
- id="`+g+`"
- data-slate-editor
- data-slate-node="value"
- suppressContentEditableWarning
- role="textarea"
- spellCheck="true"
- autoCorrect="true"
- autoCapitalize="true"
- ></div>`)}(o);r.append(f),e.$textArea=f,n=f[0],(d=Pq([Nq,zq,Hq,Rq,Mq,Iq]))(n,s),l9.set(e,!1),c9.set(e,d)}else{var p=f9.get(e),d=c9.get(e);if(p==null||d==null)return;n=p.elm,d(p,s)}if(n!=null||(n=PE(o))!=null){if((c?u:t.isFocused())&&n.focus({preventScroll:!0}),c){var m=b8(n);m&&CI.set(t,m)}y8.set(t,n),dv.set(t,n),fv.set(n,t),f9.set(e,s)}}function J9(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function Z9(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function Fb(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return Z9(n.overflowY,t)||Z9(n.overflowX,t)||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)}(e)}return!1}function e0(e,t,n,r,o,i,a,u){return i<e&&a>t||i>e&&a<t?0:i<=e&&u<=n||a>=t&&u>=n?i-e-r:a>t&&u<n||i<e&&u>n?a-t+o:0}function Q9(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,u=t.skipOverflowHiddenElements,s=typeof a=="function"?a:function(De){return De!==a};if(!J9(e))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=e;J9(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}f!=null&&f===document.body&&Fb(f)&&!Fb(document.documentElement)||f!=null&&Fb(f,u)&&c.push(f)}for(var p=n.visualViewport?n.visualViewport.width:innerWidth,d=n.visualViewport?n.visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,v=e.getBoundingClientRect(),y=v.height,h=v.width,b=v.top,w=v.right,D=v.bottom,S=v.left,C=o==="start"||o==="nearest"?b:o==="end"?D:b+y/2,O=i==="center"?S+h/2:i==="end"?w:S,F=[],L=0;L<c.length;L++){var H=c[L],M=H.getBoundingClientRect(),K=M.height,V=M.width,G=M.top,q=M.right,re=M.bottom,le=M.left;if(r==="if-needed"&&b>=0&&S>=0&&D<=d&&w<=p&&b>=G&&D<=re&&S>=le&&w<=q)return F;var se=getComputedStyle(H),ae=parseInt(se.borderLeftWidth,10),B=parseInt(se.borderTopWidth,10),x=parseInt(se.borderRightWidth,10),j=parseInt(se.borderBottomWidth,10),$=0,Y=0,U="offsetWidth"in H?H.offsetWidth-H.clientWidth-ae-x:0,ie="offsetHeight"in H?H.offsetHeight-H.clientHeight-B-j:0;if(l===H)$=o==="start"?C:o==="end"?C-d:o==="nearest"?e0(g,g+d,d,B,j,g+C,g+C+y,y):C-d/2,Y=i==="start"?O:i==="center"?O-p/2:i==="end"?O-p:e0(m,m+p,p,ae,x,m+O,m+O+h,h),$=Math.max(0,$+g),Y=Math.max(0,Y+m);else{$=o==="start"?C-G-B:o==="end"?C-re+j+ie:o==="nearest"?e0(G,re,K,B,j+ie,C,C+y,y):C-(G+K/2)+ie/2,Y=i==="start"?O-le-ae:i==="center"?O-(le+V/2)+U/2:i==="end"?O-q+x+U:e0(le,q,V,ae,x+U,O,O+h,h);var ge=H.scrollLeft,ve=H.scrollTop;C+=ve-($=Math.max(0,Math.min(ve+$,H.scrollHeight-K+ie))),O+=ge-(Y=Math.max(0,Math.min(ge+Y,H.scrollWidth-V+U)))}F.push({el:H,top:$,left:Y})}return F}function eO(e){return e===Object(e)&&Object.keys(e).length!==0}function yr(e,t){return Zu(t)&&A.hasDOMNode(e,t,{editable:!0})}function tO(e,t){if(e.getConfig().readOnly)return!1;var n=ol(e,t)&&A.toSlateNode(e,t);return E.isVoid(e,n)}function ol(e,t){return Zu(t)&&A.hasDOMNode(e,t)}function QI(e,t,n){n===void 0&&(n=!1);var r=t.selection,o=t.getConfig(),i=A.findDocumentOrShadowRoot(t).getSelection();if(i&&(!e.isComposing||n)&&t.isFocused()){var a=i.type!=="None";if(r||a){var u=y8.get(t),s=!1;if(u.contains(i.anchorNode)&&u.contains(i.focusNode)&&(s=!0),a&&s&&r){var l=A.toSlateRange(t,i,{exactMatch:!0,suppressThrow:!0});if(l&&R.equals(l,r)){var c=!0;if(R.isCollapsed(r)){var f=i.anchorNode,p=i.anchorOffset;if(f===u){var d=u.childNodes,m=void 0;(m=d[p])&&m.matches("table")&&(c=!1),(m=d[p-1])&&m.matches("table")&&(c=!1)}}if(c)return}}if(!r||A.hasRange(t,r)){e.isUpdatingSelection=!0;var g=r&&A.toDOMRange(t,r);if(g){R.isBackward(r)?i.setBaseAndExtent(g.endContainer,g.endOffset,g.startContainer,g.startOffset):i.setBaseAndExtent(g.startContainer,g.startOffset,g.endContainer,g.endOffset);var v=g.startContainer.parentElement;if(!v.closest("[data-slate-spacer]")){v.getBoundingClientRect=g.getBoundingClientRect.bind(g);var y=document.body;(function(h,b){var w=!h.ownerDocument.documentElement.contains(h);if(eO(b)&&typeof b.behavior=="function")return b.behavior(w?[]:Q9(h,b));if(!w){var D=function(S){return S===!1?{block:"end",inline:"nearest"}:eO(S)?S:{block:"start",inline:"nearest"}}(b);(function(S,C){C===void 0&&(C="auto");var O="scrollBehavior"in document.body.style;S.forEach(function(F){var L=F.el,H=F.top,M=F.left;L.scroll&&O?L.scroll({top:H,left:M,behavior:C}):(L.scrollTop=H,L.scrollLeft=M)})})(Q9(h,D),D.behavior)}})(v,{scrollMode:"if-needed",boundary:o.scroll?u.parentElement:y,block:"end",behavior:"smooth"}),delete v.getBoundingClientRect}}else i.removeAllRanges();setTimeout(function(){g&&fd&&u.focus(),e.isUpdatingSelection=!1})}else t.selection=A.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})}}}var Tb=new WeakMap,nO=new WeakMap,WQ={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"},GQ={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"},qQ={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},yt=function(e){var t=WQ[e],n=GQ[e],r=qQ[e],o=t&&ky(t),i=n&&ky(n),a=r&&ky(r);return function(u){return!(!o||!o(u))||!!(IE&&i&&i(u))||!(IE||!a||!a(u))}},wt={isBold:yt("bold"),isCompose:yt("compose"),isMoveBackward:yt("moveBackward"),isMoveForward:yt("moveForward"),isDeleteBackward:yt("deleteBackward"),isDeleteForward:yt("deleteForward"),isDeleteLineBackward:yt("deleteLineBackward"),isDeleteLineForward:yt("deleteLineForward"),isDeleteWordBackward:yt("deleteWordBackward"),isDeleteWordForward:yt("deleteWordForward"),isExtendBackward:yt("extendBackward"),isExtendForward:yt("extendForward"),isExtendLineBackward:yt("extendLineBackward"),isExtendLineForward:yt("extendLineForward"),isItalic:yt("italic"),isMoveLineBackward:yt("moveLineBackward"),isMoveLineForward:yt("moveLineForward"),isMoveWordBackward:yt("moveWordBackward"),isMoveWordForward:yt("moveWordForward"),isRedo:yt("redo"),isSplitBlock:yt("splitBlock"),isTransposeCharacter:yt("transposeCharacter"),isUndo:yt("undo"),isTab:yt("tab"),isSelectAll:yt("selectAll")};function Ht(e){e.preventDefault()}var KQ={beforeinput:function(e,t,n){var r=e,o=n.getConfig().readOnly;if(Qc&&!o&&yr(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=He(r.getTargetRanges(),1)[0];if(s){var l=A.toSlateRange(n,s,{exactMatch:!1,suppressThrow:!1});i&&R.equals(i,l)||I.select(n,l)}}if(i&&R.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"&&!fb.get(n))break;u instanceof DataTransfer?n.insertData(u):typeof u=="string"&&E.insertText(n,u)}}}},blur:function(e,t,n){var r=e,o=t.isUpdatingSelection,i=t.latestElement;if(!n.getConfig().readOnly&&!o&&yr(n,r.target)){var a=A.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var u=r.relatedTarget;if(!(u===A.toDOMNode(n,n)||$r(u)&&u.hasAttribute("data-slate-spacer"))){if(u!=null&&Zu(u)&&A.hasDOMNode(n,u)){var s=A.toSlateNode(n,u);if(ce.isElement(s)&&!n.isVoid(s))return}if(Zc){var l=a.getSelection();l==null||l.removeAllRanges()}ku.delete(n)}}}},focus:function(e,t,n){var r=A.toDOMNode(n,n),o=A.findDocumentOrShadowRoot(n);t.latestElement=o.activeElement,fd&&e.target!==r?r.focus():ku.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&ol(n,e.target)&&Zu(e.target)){var r=A.toSlateNode(n,e.target),o=A.findPath(n,r);if(E.hasPath(n,o)&&Z.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&&P.equals(u[1],s[1])){var l=E.range(n,i);I.select(n,l)}}}},compositionstart:function(e,t,n){if(yr(n,e.target)){var r=n.selection;if(r&&R.isExpanded(r)&&(E.deleteFragment(n),Promise.resolve().then(function(){QI(t,n,!0)})),r&&R.isCollapsed(r)){var o=A.toDOMRange(n,r).startContainer,i=o.textContent||"";Tb.set(n,i),nO.set(n,o)}t.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)}(t,n)}},compositionend:function(e,t,n){var r=e;if(yr(n,r.target)){t.isComposing=!1;var o=n.selection;if(o!=null){(NE||fd)&&A.cleanExposedTexNodeInSelectionBlock(n);for(var i=R.isBackward(o)?o.focus:o.anchor,a=He(E.node(n,[i.path[0]]),1)[0],u=0;u<i.path.length;u++){var s=He(E.node(n,i.path.slice(0,u+1)),1)[0];if(ce.isElement(s)&&((Zc||fd)&&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=Tb.get(n)||"",c>0&&E.insertText(n,l.slice(0,c)),t.changeViewState()):E.insertText(n,l)}else E.insertText(n,l);Zc||setTimeout(function(){var f=n.selection;if(f!=null){var p=nO.get(n);p!=null&&A.toDOMRange(n,f).startContainer!==p&&(p.textContent=Tb.get(n)||"")}})}}}},compositionupdate:function(e,t,n){yr(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&yr(n,r.target)){if(function(a,u){var s=tm.get(a),l=s&&s.getMenus(),c=cv.get(a),f=c&&c.getMenus(),p=Er(Er({},l),f);for(var d in p){var m=p[d],g=m.hotkey;if(g&&gK(g,u)&&!m.isDisabled(a)){var v=m.getValue(a);m.exec(a,v)}}}(n,r),wt.isTab(r))return Ht(r),void n.handleTab();if(wt.isRedo(r))return Ht(r),void(typeof n.redo=="function"&&n.redo());if(wt.isUndo(r))return Ht(r),void(typeof n.undo=="function"&&n.undo());if(wt.isMoveLineBackward(r))return Ht(r),void I.move(n,{unit:"line",reverse:!0});if(wt.isMoveLineForward(r))return Ht(r),void I.move(n,{unit:"line"});if(wt.isExtendLineBackward(r))return Ht(r),void I.move(n,{unit:"line",edge:"focus",reverse:!0});if(wt.isExtendLineForward(r))return Ht(r),void I.move(n,{unit:"line",edge:"focus"});if(wt.isMoveBackward(r))return Ht(r),void(o&&R.isCollapsed(o)?I.move(n,{reverse:!0}):I.collapse(n,{edge:"start"}));if(wt.isMoveForward(r))return Ht(r),void(o&&R.isCollapsed(o)?I.move(n):I.collapse(n,{edge:"end"}));if(wt.isMoveWordBackward(r))return Ht(r),o&&R.isExpanded(o)&&I.collapse(n,{edge:"focus"}),void I.move(n,{unit:"word",reverse:!0});if(wt.isMoveWordForward(r))return Ht(r),o&&R.isExpanded(o)&&I.collapse(n,{edge:"focus"}),void I.move(n,{unit:"word"});if(wt.isSelectAll(r))return Ht(r),void n.selectAll();if(Qc){if((NE||Zc)&&o&&(wt.isDeleteBackward(r)||wt.isDeleteForward(r))&&R.isCollapsed(o)){var i=Z.parent(n,o.anchor.path);if(ce.isElement(i)&&E.isVoid(n,i)&&E.isInline(n,i))return r.preventDefault(),void I.delete(n,{unit:"block"})}}else{if(wt.isBold(r)||wt.isItalic(r)||wt.isTransposeCharacter(r))return void Ht(r);if(wt.isSplitBlock(r))return Ht(r),void E.insertBreak(n);if(wt.isDeleteBackward(r))return Ht(r),void(o&&R.isExpanded(o)?E.deleteFragment(n,{direction:"backward"}):E.deleteBackward(n));if(wt.isDeleteForward(r))return Ht(r),void(o&&R.isExpanded(o)?E.deleteFragment(n,{direction:"forward"}):E.deleteForward(n));if(wt.isDeleteLineBackward(r))return Ht(r),void(o&&R.isExpanded(o)?E.deleteFragment(n,{direction:"backward"}):E.deleteBackward(n,{unit:"line"}));if(wt.isDeleteLineForward(r))return Ht(r),void(o&&R.isExpanded(o)?E.deleteFragment(n,{direction:"forward"}):E.deleteForward(n,{unit:"line"}));if(wt.isDeleteWordBackward(r))return Ht(r),void(o&&R.isExpanded(o)?E.deleteFragment(n,{direction:"backward"}):E.deleteBackward(n,{unit:"word"}));if(wt.isDeleteWordForward(r))return Ht(r),void(o&&R.isExpanded(o)?E.deleteFragment(n,{direction:"forward"}):E.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!Qc&&!n.getConfig().readOnly&&yr(n,e.target)){e.preventDefault();var r=e.key;E.insertText(n,r)}},copy:function(e,t,n){var r=e;if(yr(n,r.target)){r.preventDefault();var o=r.clipboardData;o!=null&&n.setFragmentData(o)}},cut:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&yr(n,r.target)){r.preventDefault();var i=r.clipboardData;if(i!=null&&(n.setFragmentData(i),o))if(R.isExpanded(o))E.deleteFragment(n);else{var a=Z.parent(n,o.anchor.path);E.isVoid(n,a)&&I.delete(n)}}},paste:function(e,t,n){fb.set(n,!0);var r=e;if(!n.getConfig().readOnly&&yr(n,r.target)){var o=n.getConfig().customPaste;if(o&&o(n,r)===!1)return void fb.set(n,!1);if(!Qc||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(e,t,n){if(ol(n,e.target)){var r=A.toSlateNode(n,e.target);E.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(ol(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&&(t.isDraggingInternally=!0,n.setFragmentData(u))}},dragend:function(e,t,n){var r=e;n.getConfig().readOnly||t.isDraggingInternally&&ol(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,o=r.dataTransfer;if(!n.getConfig().readOnly&&ol(n,r.target)&&o!=null&&!(Qc&&Zc&&o.files.length>0)){r.preventDefault();var i=n.selection,a=A.findEventRange(n,r);I.select(n,a),t.isDraggingInternally&&(i&&I.delete(n,{at:i}),t.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},YQ=1,XQ=function(){function e(t){var n=this;this.id=YQ++,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=Ku(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,m=A.toDOMNode(s,s),g=p.getSelection();if(d===m?(u.latestElement=d,ku.set(s,!0)):ku.delete(s),!g)return I.deselect(s);var v=g.anchorNode,y=g.focusNode,h=yr(s,v)||tO(s,v),b=yr(s,y)||tO(s,y);if(h&&b){var w=A.toSlateRange(s,g,{exactMatch:!1,suppressThrow:!1});I.select(s,w)}else I.deselect(s)}})(n,a)},100);var r=k(t);if(r.length===0)throw new Error("Cannot find textarea DOM by selector '"+t+"'");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,jr(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(e.prototype,"editorInstance",{get:function(){var t=FE.get(this);if(t==null)throw new Error("Can not get editor instance");return t},enumerable:!1,configurable:!0}),e.prototype.bindEvent=function(){var t=this,n=this.$textArea,r=this.$scroll,o=this.editorInstance;n!=null&&(z5(KQ,function(i,a){n.on(a,function(u){i(u,t,o)})}),o.getConfig().scroll&&(r.css("overflow-y","auto"),r.on("scroll",Ku(function(){o.emit("scroll")},100))))},e.prototype.onFocusAndOnBlur=function(){var t=this,n=this.editorInstance,r=n.getConfig(),o=r.onBlur,i=r.onFocus;this.latestEditorSelection=n.selection,n.on("change",function(){t.latestEditorSelection==null&&n.selection!=null?setTimeout(function(){return i&&i(n)}):t.latestEditorSelection!=null&&n.selection==null&&setTimeout(function(){return o&&o(n)}),t.latestEditorSelection=n.selection})},e.prototype.changeMaxLengthInfo=function(){var t=this.editorInstance,n=t.getConfig().maxLength;if(n){var r=n-A.getLeftLengthOfMaxLength(t);this.$maxLengthInfo[0].innerHTML=r+"/"+n}},e.prototype.changeProgress=function(t){var n=this.$progressBar;n.css("width",t+"%"),t>=100&&setTimeout(function(){n.hide(),n.css("width","0"),n.show()},1e3)},e.prototype.changeViewState=function(){var t=this,n=this.editorInstance;VQ(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),jr(function(){QI(t,n)})},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function T8(e){e.removeAttr("width"),e.removeAttr("height"),e.removeAttr("fill"),e.removeAttr("class"),e.removeAttr("t"),e.removeAttr("p-id");var t=e.children();t.length&&T8(t)}function _8(){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 eN(){return k('<div class="w-e-bar-divider"></div>')}function tN(e,t,n,r,o){if(o===void 0&&(o=!1),t){if(r){var i=IE?"cmd":"ctrl";r=r.replace("mod",i)}if(o)r&&(e.attr("data-tooltip",r),e.addClass("w-e-menu-tooltip-v5"),e.addClass("tooltip-right"));else{var a=r?n+`
- `+r:n;e.attr("data-tooltip",a),e.addClass("w-e-menu-tooltip-v5")}}}h8("match",function(e,t,n){return[function(r){var o=_r(this),i=r==null?void 0:Xu(r,e);return i?Ve(i,r,o):new RegExp(r)[e](ut(o))},function(r){var o=Rt(this),i=ut(r),a=n(t,o,i);if(a.done)return a.value;if(!o.global)return Kd(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=Kd(o,i))!==null;){var f=ut(s[0]);l[c]=f,f===""&&(o.lastIndex=g8(i,cc(o.lastIndex),u)),c++}return c===0?null:l}]});var j8=function(){function e(t,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);T8(d),p.append(d)}else p.text(u);tN(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",t),this.$elem.append(p),jr(function(){return o.init()})}return e.prototype.init=function(){var t=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(n){n.preventDefault(),tr(t).hidePanelOrModal(),t.disabled||(t.exec(),t.onButtonClick())})},e.prototype.exec=function(){var t=tr(this),n=this.menu,r=n.getValue(t);n.exec(t,r)},e.prototype.setActive=function(){var t=tr(this),n=this.$button,r="active";this.menu.isActive(t)?n.addClass(r):n.removeClass(r)},e.prototype.setDisabled=function(){var t=tr(this),n=this.$button,r=this.menu.isDisabled(t);(t.selection==null||t.isDisabled())&&(r=!0),this.menu.alwaysEnable&&(r=!1);var o="disabled";r?n.addClass(o):n.removeClass(o),this.disabled=r},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e}(),JQ=function(e){function t(n,r,o){return o===void 0&&(o=!1),e.call(this,n,r,o)||this}return dc(t,e),t.prototype.onButtonClick=function(){},t}(j8),P8=function(){function e(t){this.isShow=!1,this.showTime=0,this.record(t)}return e.prototype.record=function(t){var n=_E.get(t);n==null&&(n=new Set,_E.set(t,n)),n.add(this),eg.set(this,t)},e.prototype.renderContent=function(t){var n=this.$elem;n.empty(),n.append(t);var r=this.genSelfElem();r&&n.append(r)},e.prototype.appendTo=function(t){var n=this.$elem;t.append(n)},e.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var t=eg.get(this);t&&t.emit("modalOrPanelShow",this)}},e.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var t=eg.get(this);t&&t.emit("modalOrPanelHide")}},e}(),ZQ=function(e){function t(n){var r=e.call(this,n)||this;return r.type="dropPanel",r.$elem=k('<div class="w-e-drop-panel"></div>'),r}return dc(t,e),t.prototype.genSelfElem=function(){return null},t}(P8),QQ=function(e){function t(n,r,o){o===void 0&&(o=!1);var i=e.call(this,n,r,o)||this;if(i.dropPanel=null,i.menu=r,r.showDropPanel){var a=_8();i.$button.append(a)}return i}return dc(t,e),t.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},t.prototype.handleDropPanel=function(){var n=this.menu;if(n.getPanelContentElem!=null){var r=tr(this);if(this.dropPanel==null){var o=new ZQ(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"})}}},t}(j8),eee=function(e){function t(n,r){r===void 0&&(r=0);var o=e.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 dc(t,e),t.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=eg.get(this);return r.on("click",function(){n.hide(),o==null||o.restoreSelection()}),r},t.prototype.setStyle=function(n){var r=this.width,o=this.$elem;o.attr("style",""),r&&o.css("width",r+"px"),o.css(n)},t}(P8);function nr(e,t,n){var r=k('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var o=k('<input type="text" id="'+t+'" placeholder="'+(n||"")+'">');return r.append(o),[r[0],o[0]]}function pc(e,t){var n=k('<div class="button-container"></div>'),r=k('<button type="button" id="'+e+'">'+t+"</button>");return n.append(r),[n[0],r[0]]}var tee=function(e){function t(n,r,o){o===void 0&&(o=!1);var i=e.call(this,n,r,o)||this;return i.$body=k("body"),i.modal=null,i.menu=r,i}return dc(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var n=tr(this),r=this.menu.getModalPositionNode(n);return ce.isElement(r)?F8(n,r,"modal"):k8(n)},t.prototype.handleModal=function(){var n=tr(this),r=this.menu;if(this.modal==null){var o=new eee(n,r.modalWidth);this.renderAndShowModal(o,!0),this.modal=o}else(o=this.modal).isShow?o.hide():this.renderAndShowModal(o,!1)},t.prototype.renderAndShowModal=function(n,r){r===void 0&&(r=!1);var o=tr(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||VE(o,n.$elem),setTimeout(function(){o.blur()})}},t}(j8),nee=function(e){function t(n,r){var o=e.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 dc(t,e),t.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)},t.prototype.genSelfElem=function(){return null},t}(P8),ree=function(){function e(t,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",t),tN(p,l,a,f,r),this.$elem.append(p),this.menu=n,jr(function(){return o.init()})}return e.prototype.init=function(){var t=this;this.setSelectedValue(),this.$button.on("click",function(n){n.preventDefault(),tr(t).hidePanelOrModal(),t.trigger()})},e.prototype.trigger=function(){var t=this,n=tr(this);if(!n.isDisabled()&&!this.disabled){var r=this.menu;if(this.selectList==null){this.selectList=new nee(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");t.onChange(s)}})}else(o=this.selectList).isShow?o.hide():(i=r.getOptions(n),o.renderList(i),o.show())}},e.prototype.onChange=function(t){var n=tr(this),r=this.menu;r.exec&&r.exec(n,t)},e.prototype.setSelectedValue=function(){var t=tr(this),n=this.menu,r=n.getValue(t),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(t),r.toString()),i=this.$button,a=_8();i.empty(),i.text(o),i.append(a)},e.prototype.setDisabled=function(){var t=tr(this),n=this.menu.isDisabled(t),r=this.$button;(t.selection==null||t.isDisabled())&&(n=!0);var o="disabled";n?r.addClass(o):r.removeClass(o),this.disabled=n},e.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},e}(),rO=function(){function e(t){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=t.key,r=t.iconSvg,o=t.title,i=this.$elem,a=this.$button;if(r){var u=k(r);T8(u),a.append(u)}else a.text(o);a.attr("data-menu-key",n);var s=_8();a.append(s),i.append(a);var l=this.$container;i.append(l);var c=this.createObserver();this.observe(c)}return e.prototype.appendBarItem=function(t){var n=t.$elem;this.$container.append(n)},e.prototype.observe=function(t){var n=this.$container;t.observe(n[0],{childList:!0,subtree:!0,attributes:!0})},e.prototype.createObserver=function(){var t=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"),t.observe(o)}});return o},e}(),oO=new WeakMap;function tr(e){var t=m8.get(e);if(t==null)throw new Error("Can not get editor instance");return t}function nN(e,t,n){n===void 0&&(n=!1);var r=oO.get(t);if(r)return r;var o=t.tag;if(o==="button"){var i=t.showDropPanel,a=t.showModal;r=i?new QQ(e,t,n):a?new tee(e,t,n):new JQ(e,t,n)}if(o==="select"&&(r=new ree(e,t,n)),r==null)throw new Error("Invalid tag in menu "+JSON.stringify(t));return oO.set(t,r),r}function oee(e,t){var n=e.selection;return n!=null&&!R.isCollapsed(n)&&!A.getSelectedElems(e).some(function(r){if(e.isVoid(r))return!0;var o=r.type;return!!["pre","code","table"].includes(o)||void 0})&&!!oe.isText(t)}var iee=function(){function e(){var t=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=_P(function(){var n=t.isShow,r=t.getSelectedNodeAndMenuKeys()||{},o=r.node,i=o===void 0?null:o,a=r.menuKeys,u=a===void 0?[]:a;i!=null&&t.changeItemsState(),i&&ce.isElement(i)&&n&&t.isSamePath(i,t.prevSelectedNode)||(t.hideAndClean(),i!=null&&(t.registerItems(u),t.setPosition(i),t.show()),t.prevSelectedNode=i)},200),jr(function(){var n=t.getEditorInstance(),r=t.$elem;r.on("mousedown",function(i){return i.preventDefault()},{passive:!1}),A.getTextarea(n).$textAreaContainer.append(r),n.on("change",t.changeHoverbarState);var o=t.hideAndClean.bind(t);n.on("scroll",o),n.on("fullScreen",o),n.on("unFullScreen",o)})}return e.prototype.getMenus=function(){return this.menus},e.prototype.hideAndClean=function(){var t=this.$elem;t.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],t.empty(),this.isShow=!1},e.prototype.checkPositionBottom=function(){var t=this.$elem,n=!1,r=window.innerHeight;r&&r>=360&&r-t[0].getBoundingClientRect().bottom<360&&(n=!0),n?t.addClass("w-e-bar-bottom"):t.removeClass("w-e-bar-bottom")},e.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},e.prototype.changeItemsState=function(){var t=this;jr(function(){t.hoverbarItems.forEach(function(n){n.changeMenuState()})})},e.prototype.registerItems=function(t){var n=this,r=this.$elem;t.forEach(function(o){if(o!=="|")n.registerSingleItem(o);else{var i=eN();r.append(i)}})},e.prototype.registerSingleItem=function(t){var n=this.getEditorInstance(),r=this.menus,o=r[t];if(o==null){var i=Jd[t];if(i==null)throw new Error("Not found menu item factory by key '"+t+"'");if(typeof i!="function")throw new Error("Menu item factory (key='"+t+"') is not a function");o=i(),r[t]=o}var a=nN(t,o);this.hoverbarItems.push(a),m8.set(a,n),this.$elem.append(a.$elem)},e.prototype.setPosition=function(t){var n=this.getEditorInstance(),r=this.$elem;if(r.attr("style",""),ce.isElement(t)){var o=F8(n,t,"bar");return r.css(o),void VE(n,r)}if(oe.isText(t))return o=k8(n),r.css(o),void VE(n,r);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},e.prototype.getSelectedNodeAndMenuKeys=function(){var t=this.getEditorInstance();if(t.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(g,v){return A.checkNodeType(v,u)},d=He(E.nodes(t,{match:function(g){return p(t,g)},universal:!0}),1),m=d[0];if(m!=null)return r=m[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}},e.prototype.getEditorInstance=function(){var t=TE.get(this);if(t==null)throw new Error("Can not get editor instance");return t},e.prototype.getHoverbarKeysConf=function(){var t=this.getEditorInstance().getConfig().hoverbarKeys,n=t===void 0?{}:t,r=n.text;return r&&r.match==null&&(r.match=oee),n},e.prototype.isSamePath=function(t,n){if(t==null||n==null)return!1;var r=A.findPath(null,t),o=A.findPath(null,n);return P.equals(r,o)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function rN(e,t,n,r){if(Xd.set(e,t),Gl.set(e,n),ce.isElement(e)){var o=e.children;if((o===void 0?[]:o).forEach(function(u,s){return rN(u,s,e,r)}),E.isVoid(r,e)){var i=He(Z.texts(e),1),a=He(i[0],1)[0];Xd.set(a,0),Gl.set(a,e)}}}function aee(e){var t=e.selector,n=t===void 0?"":t,r=e.config,o=r===void 0?{}:r,i=e.content,a=e.html,u=e.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 S=D[D.length-1];sl.withoutSaving(h,()=>{E.withoutNormalizing(h,()=>{for(var C of S)h.apply(C)})}),w.redos.pop(),w.undos.push(S)}},h.undo=()=>{var{history:w}=h,{undos:D}=w;if(D.length>0){var S=D[D.length-1];sl.withoutSaving(h,()=>{E.withoutNormalizing(h,()=>{var C=S.map(Xi.inverse).reverse();for(var O of C)h.apply(O)})}),w.redos.push(S),w.undos.pop()}},h.apply=w=>{var{operations:D,history:S}=h,{undos:C}=S,O=C[C.length-1],F=O&&O[O.length-1],L=((V,G)=>!(!G||V.type!=="set_selection"||G.type!=="set_selection"))(w,F),H=sl.isSaving(h),M=sl.isMerging(h);if(H==null&&(H=((V,G)=>V.type!=="set_selection"||V.properties!=null&&V.newProperties!=null)(w)),H){if(M==null&&(M=O!=null&&(D.length!==0||((V,G)=>V.type==="set_selection"||!(!G||V.type!=="insert_text"||G.type!=="insert_text"||V.offset!==G.offset+G.text.length||!P.equals(V.path,G.path))||!(!G||V.type!=="remove_text"||G.type!=="remove_text"||V.offset+V.text.length!==G.offset||!P.equals(V.path,G.path)))(w,F)||L)),O&&M)L&&O.pop(),O.push(w);else{var K=[w];C.push(K)}for(;C.length>100;)C.shift();(V=>V.type!=="set_selection")(w)&&(S.redos=[])}b(w)},h})(function(y){var h=y,b=h.insertText,w=h.insertNode,D=h.insertFragment,S=h.dangerouslyInsertHtml;return h.insertText=function(C){if(h.getConfig().maxLength){var O=A.getLeftLengthOfMaxLength(h);O<=0||(O<C.length?b(C.slice(0,O)):b(C))}else b(C)},h.insertNode=function(C){if(h.getConfig().maxLength){var O=A.getLeftLengthOfMaxLength(h);O<=0||O<Z.string(C).length||w(C)}else w(C)},h.insertFragment=function(C){if(h.getConfig().maxLength)if(C.length!==1)C.forEach(function(F){h.insertNode(F)});else{var O=C[0];if(A.getLeftLengthOfMaxLength(h)<Z.string(O).length)return;D(C)}else D(C)},h.dangerouslyInsertHtml=function(C,O){if(C===void 0&&(C=""),O===void 0&&(O=!1),C)if(h.getConfig().maxLength){var F=A.getLeftLengthOfMaxLength(h);if(!(F<=0)){var L=document.createElement("div");L.innerHTML=C;var H=Array.from(L.childNodes).reduce(function(M,K){var V=K.nodeType,G=K.nodeName;return K?V===yo.TEXT_NODE?M+(K.textContent||""):V===yo.ELEMENT_NODE?$9.has(G.toLowerCase())?M:M+(K.textContent||""):M:M},"");F<H.length||S(C,O)}}else S(C,O)},h}(function(y){var h=y;return h.on=function(b,w){var D=Qh(h);if(D.on(b,w),b==="destroyed"&&G9(h,w),b!=="destroyed"){var S=function(){return D.off(b,w)};D.on("destroyed",S),G9(h,S)}},h.once=function(b,w){Qh(h).once(b,w)},h.off=function(b,w){Qh(h).off(b,w)},h.emit=function(b){for(var w=[],D=1;D<arguments.length;D++)w[D-1]=arguments[D];var S=Qh(h);S.emit.apply(S,OE([b],He(w))),b==="destroyed"&&(_Q(h).forEach(function(C){return S.off("destroyed",C)}),jQ(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=cb.get(h);b!=null&&(h.focus(),I.select(h,b))},h.getSelectionPosition=function(){return k8(h)},h.getNodePosition=function(b){return F8(h,b)},h.isSelectedAll=function(){var b=h.selection;if(b==null)return!1;var w=He(R.edges(b),2),D=w[0],S=w[1],C=He(E.edges(h,[]),2),O=C[0],F=C[1];return!(!ke.equals(D,O)||!ke.equals(S,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,S=h.deleteBackward;return h.insertText=function(C){h.getConfig().readOnly||w(C)},h.apply=function(C){var O,F,L,H,M,K,V,G,q=[];switch(C.type){case"insert_text":case"remove_text":case"set_node":try{for(var re=Dr(E.levels(h,{at:C.path})),le=re.next();!le.done;le=re.next()){var se=He(le.value,2),ae=se[0],B=se[1],x=A.findKey(h,ae);q.push([B,x])}}catch(Ne){O={error:Ne}}finally{try{le&&!le.done&&(F=re.return)&&F.call(re)}finally{if(O)throw O.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var j=Dr(E.levels(h,{at:P.parent(C.path)})),$=j.next();!$.done;$=j.next()){var Y=He($.value,2);ae=Y[0],B=Y[1],x=A.findKey(h,ae),q.push([B,x])}}catch(Ne){L={error:Ne}}finally{try{$&&!$.done&&(H=j.return)&&H.call(j)}finally{if(L)throw L.error}}break;case"move_node":try{for(var U=Dr(E.levels(h,{at:P.common(P.parent(C.path),P.parent(C.newPath))})),ie=U.next();!ie.done;ie=U.next()){var ge=He(ie.value,2);ae=ge[0],B=ge[1],x=A.findKey(h,ae),q.push([B,x])}}catch(Ne){M={error:Ne}}finally{try{ie&&!ie.done&&(K=U.return)&&K.call(U)}finally{if(M)throw M.error}}}D(C);try{for(var ve=Dr(q),De=ve.next();!De.done;De=ve.next()){var W=He(De.value,2);B=W[0],x=W[1],ae=He(E.node(h,B),1)[0],tg.set(ae,x)}}catch(Ne){V={error:Ne}}finally{try{De&&!De.done&&(G=ve.return)&&G.call(ve)}finally{if(V)throw V.error}}},h.deleteBackward=function(C){if(C!=="line")return S(C);if(y.selection&&R.isCollapsed(y.selection)){var O=E.above(y,{match:function(M){return E.isBlock(y,M)},at:y.selection});if(O){var F=He(O,2)[1],L=E.range(y,F,y.selection.anchor),H=function(M,K){var V=E.range(M,R.end(K)),G=Array.from(E.positions(M,{at:K})),q=0,re=G.length,le=Math.floor(re/2);if(_9(M,E.range(M,G[q]),V))return E.range(M,G[q],V);if(G.length<2)return E.range(M,G[G.length-1],V);for(;le!==G.length&&le!==q;)_9(M,E.range(M,G[le]),V)?re=le:q=le,le=Math.floor((q+re)/2);return E.range(M,G[re],V)}(h,L);R.isCollapsed(H)||I.delete(y,{at:H})}}},h.onChange=function(){var C=h.selection;C!=null&&cb.set(h,C),h.emit("change"),b()},h.handleTab=function(){h.insertText(" ")},h.getHtml=function(){var C=h.children;return(C===void 0?[]:C).map(function(O){return UI(O,h)}).join("")},h.getText=function(){var C=h.children;return(C===void 0?[]:C).map(function(O){return Z.string(O)}).join(`
- `)},h.getSelectionText=function(){var C=h.selection;return C==null?"":E.string(y,C)},h.getElemsByType=function(C,O){var F,L;O===void 0&&(O=!1);var H=[],M=E.nodes(h,{at:[],universal:!0});try{for(var K=Dr(M),V=K.next();!V.done;V=K.next()){var G=He(V.value,1)[0];if(ce.isElement(G)&&(O?G.type.indexOf(C)>=0:G.type===C)){var q=VI(A.findKey(h,G).id);H.push(Er(Er({},G),{id:q}))}}}catch(re){F={error:re}}finally{try{V&&!V.done&&(L=K.return)&&L.call(K)}finally{if(F)throw F.error}}return H},h.getElemsByTypePrefix=function(C){return h.getElemsByType(C,!0)},h.isEmpty=function(){var C=h.children,O=C===void 0?[]:C;if(O.length>1)return!1;var F=O[0];if(F==null)return!0;if(ce.isElement(F)&&F.type==="paragraph"){var L=F.children,H=L===void 0?[]:L;if(H.length>1)return!1;var M=H[0];if(M==null||oe.isText(M)&&M.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(C){return A.getParentNode(h,C)},h.dangerouslyInsertHtml=function(C,O){if(C===void 0&&(C=""),O===void 0&&(O=!1),C){var F=document.createElement("div");F.innerHTML=C;var L=Array.from(F.childNodes);if(L=L.filter(function(V){var G=V.nodeType,q=V.nodeName;return G===yo.TEXT_NODE||G===yo.ELEMENT_NODE&&!$9.has(q.toLowerCase())}),L.length!==0){var H=h.selection;if(H!=null){var M=null;A.isSelectedEmptyParagraph(h)&&!O&&(M=[H.focus.path[0]]),F.setAttribute("hidden","true"),document.body.appendChild(F);var K=0;L.forEach(function(V){var G=V.nodeType,q=V.nodeName,re=V.textContent,le=re===void 0?"":re;if(G!==yo.TEXT_NODE)if(q!=="BR"){var se=V,ae=!1;if(WI.includes(q.toLowerCase()))ae=!0;else for(var B in gv)if(se.matches(B)){ae=!0;break}if(ae){var x=A8(k(se),h);return Array.isArray(x)?(x.forEach(function($){return H9(h,$)}),K++):(H9(h,x),K++),void(A.isSelectedVoidNode(h)&&h.move(1))}var j=window.getComputedStyle(se).display;A.isSelectedEmptyParagraph(h)||j.indexOf("inline")<0&&h.insertBreak(),h.dangerouslyInsertHtml(se.innerHTML,!0)}else h.insertText(`
- `);else{if(!le||!le.trim())return;h.insertNode({text:le})}}),K&&M&&A.isEmptyPath(h,M)&&I.removeNodes(h,{at:M}),F.remove()}}}},h.setHtml=function(C){C===void 0&&(C="");var O=h.isDisabled(),F=h.isFocused(),L=JSON.stringify(h.selection);h.enable(),h.focus(),h.clear();var H=L9(h,C);if(I.insertFragment(h,H),F||(h.deselect(),h.blur()),O&&(h.deselect(),h.disable()),h.isFocused())try{h.select(JSON.parse(L))}catch{h.select(E.start(h,[]))}},h}(function(y){var h=y;return h.getAllMenuKeys=function(){var b=[];for(var w in Jd)b.push(w);return b},h.getConfig=function(){var b=s9.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=bQ(HW());return h.id="wangEditor-"+OZ++,h.isDestroyed=!1,h.isFullScreen=!1,h.focus=function(b){if(A.toDOMNode(h,h).focus({preventScroll:!0}),ku.set(h,!0),b){var w=E.end(h,[]);I.select(h,w)}else{var D=cb.get(h);D?I.select(h,D):I.select(h,E.start(h,[]))}},h.isFocused=function(){return!!ku.get(h)},h.blur=function(){A.toDOMNode(h,h).blur(),I.deselect(h),ku.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(),kE.delete(h),FE.delete(b);var w=A.getToolbar(h);w&&(w.destroy(),tm.delete(h),v8.delete(w));var D=A.getHoverbar(h);D&&(D.destroy(),cv.delete(h),TE.delete(D)),h.isDestroyed=!0,h.emit("destroyed")}},h.scrollToElem=function(b){if(h.getConfig().scroll){var w=k("#"+b);if(w.length!==0){var D=w[0];if(!A.hasDOMNode(h,D))return;var S=A.getTextarea(h),C=S.$textAreaContainer,O=S.$scroll,F=w.offset().top,L=C.offset().top;O[0].scrollBy({top:F-L,behavior:"smooth"})}}},h.showProgressBar=function(b){b<1||A.getTextarea(h).changeProgress(b)},h.hidePanelOrModal=function(){var b=_E.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
- 不能设置全屏,因为 toolbar DOM 父节点和 textarea DOM 父节点不一致`);D.addClass("w-e-full-screen-container");var S=D.css("z-index");D.attr("data-z-index",S.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 YI(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=jP(OI),b={},w=y.MENU_CONF,D=w===void 0?{}:w;return z5(h,function(S,C){b[C]=Er(Er({},S),D[C]||{})}),delete y.MENU_CONF,Er({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:b,hoverbarKeys:{},customAlert:function(S,C){window.alert(C+`:
- `+S)}},y)}(o);s9.set(l,c);var f=c.hoverbarKeys,p=f===void 0?{}:f;if(s.forEach(function(y){l=y(l)}),a!=null&&(l.children=L9(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 XQ(n);kE.set(l,d),FE.set(d,l),d.changeViewState(),jr(function(){var y=d.$scroll;y!=null&&y.height()<300});var m=void 0;Object.keys(p).length>0&&(m=new iee,TE.set(m,l),cv.set(l,m)),l.on("change",function(){l.hidePanelOrModal()}),l.on("scroll",function(){l.hidePanelOrModal()})}else l.children.forEach(function(y,h){return rN(y,h,l,l)});var g=c.onCreated,v=c.onDestroyed;return g&&l.on("created",function(){return g(l)}),v&&l.on("destroyed",function(){return v(l)}),jr(function(){return l.emit("created")}),l}var uee=J1("splice"),see=X.TypeError,lee=Math.max,cee=Math.min;Dt({target:"Array",proto:!0,forced:!uee},{splice:function(e,t){var n,r,o,i,a,u,s=Ia(this),l=ps(s),c=Hl(e,l),f=arguments.length;if(f===0?n=r=0:f===1?(n=0,r=l-c):(n=f-2,r=cee(lee(Vp(t),0),l-c)),l+n-r>9007199254740991)throw see("Maximum allowed length exceeded");for(o=eI(s,r),i=0;i<r;i++)(a=c+i)in s&&Gd(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 fee=function(){function e(t,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=_P(function(){r.toolbarItems.forEach(function(a){a.changeMenuState()})},200),this.config=n;var o=k(t);if(o.length===0)throw new Error("Cannot find toolbar DOM by selector '"+t+"'");this.$box=o;var i=this.$toolbar;i.on("mousedown",function(a){return a.preventDefault()},{passive:!1}),o.append(i),jr(function(){r.registerItems(),r.changeToolbarState(),r.getEditorInstance().on("change",r.changeToolbarState)})}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.registerItems=function(){var t=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=jP(a);s.keys.length>0&&(typeof s.keys=="string"&&(s.keys=[s.keys]),s.keys.forEach(function(m,g){f.splice(s.index+g,0,m)}));var p=f.filter(function(m){if(typeof m=="string"){if(c.includes(m))return!1}else if(c.includes(m.key))return!1;return!0}),d=p.length;p.forEach(function(m,g){if(m==="|"){if(g===0||g+1===d||n==="|")return;var v=eN();return r.append(v),void(n=m)}if(typeof m=="string")return t.registerSingleItem(m,t),void(n=m);t.registerGroup(m),n="group"})},e.prototype.registerGroup=function(t){var n=this,r=this.$toolbar,o=function(l){return new rO(l)}(t),i=t.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)},e.prototype.registerSingleItem=function(t,n){var r=this.getEditorInstance(),o=n instanceof rO,i=this.menus,a=i[t];if(a==null){var u=Jd[t];if(u==null)throw new Error("Not found menu item factory by key '"+t+"'");if(typeof u!="function")throw new Error("Menu item factory (key='"+t+"') is not a function");a=u(),i[t]=a}var s=nN(t,a,o);this.toolbarItems.push(s),m8.set(s,r),o?n.appendBarItem(s):n.$toolbar.append(s.$elem)},e.prototype.getEditorInstance=function(){var t=v8.get(this);if(t==null)throw new Error("Can not get editor instance");return t},e.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},e}(),dee=lc.EXISTS,pee=ro.f,oN=Function.prototype,hee=pe(oN.toString),iN=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,gee=pe(iN.exec);function aN(e){var t=e.server,n=t===void 0?"":t,r=e.fieldName,o=r===void 0?"":r,i=e.maxFileSize,a=i===void 0?10485760:i,u=e.maxNumberOfFiles,s=u===void 0?100:u,l=e.meta,c=l===void 0?{}:l,f=e.metaWithUrl,p=f!==void 0&&f,d=e.headers,m=d===void 0?{}:d,g=e.withCredentials,v=g!==void 0&&g,y=e.timeout,h=y===void 0?1e4:y,b=e.onBeforeUpload,w=b===void 0?function(K){return K}:b,D=e.onSuccess,S=D===void 0?function(K,V){}:D,C=e.onError,O=C===void 0?function(K,V,G){}:C,F=e.onProgress,L=F===void 0?function(K){}:F;if(!n)throw new Error(`Cannot get upload server address
- 没有配置上传地址`);if(!o)throw new Error(`Cannot get fieldName
- 没有配置 fieldName`);var H=n;p&&(H=function(K,V){var G=He(K.split("#"),2),q=G[0],re=G[1],le=[];z5(V,function(ae,B){le.push(B+"="+ae)});var se=le.join("&");return q=q.indexOf("?")>0?q+"&"+se:q+"?"+se,re?q+"#"+re:q}(H,c));var M=new Xf({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(HY,{endpoint:H,headers:m,formData:!0,fieldName:o,bundle:!0,withCredentials:v,timeout:h});return M.on("upload-success",function(K,V){var G=V.body,q=G===void 0?{}:G;try{S(K,q)}catch{}M.removeFile(K.id)}),M.on("progress",function(K){K<1||L(K)}),M.on("upload-error",function(K,V,G){try{O(K,V,G)}catch{}M.removeFile(K.id)}),M.on("restriction-failed",function(K,V){try{O(K,V)}catch{}M.removeFile(K.id)}),M}function aa(e){return aa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},aa(e)}function vee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ut(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},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){vee(e,o,n[o])})}return e}function si(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function li(e,t,n){return t&&iO(e.prototype,t),n&&iO(e,n),e}function Qu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qd(e,t){if(t&&(aa(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Qu(e)}function ql(e){return ql=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},ql(e)}function qE(e,t){return qE=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},qE(e,t)}function nm(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&qE(e,t)}an&&!dee&&pee(oN,"name",{configurable:!0,get:function(){try{return gee(iN,hee(this))[1]}catch{return""}}});var mee={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},Qo=new(function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};si(this,e),this.init(t,n)}return li(e,[{key:"init",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||mee,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(t){this.debug=t}},{key:"log",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}},{key:"warn",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}},{key:"error",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}},{key:"deprecate",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(t,n,r,o){return o&&!this.debug?null:(typeof t[0]=="string"&&(t[0]="".concat(r).concat(this.prefix," ").concat(t[0])),this.logger[n](t))}},{key:"create",value:function(t){return new e(this.logger,Ut({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),xa=function(){function e(){si(this,e),this.observers={}}return li(e,[{key:"on",value:function(t,n){var r=this;return t.split(" ").forEach(function(o){r.observers[o]=r.observers[o]||[],r.observers[o].push(n)}),this}},{key:"off",value:function(t,n){this.observers[t]&&(n?this.observers[t]=this.observers[t].filter(function(r){return r!==n}):delete this.observers[t])}},{key:"emit",value:function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];if(this.observers[t]){var i=[].concat(this.observers[t]);i.forEach(function(u){u.apply(void 0,r)})}if(this.observers["*"]){var a=[].concat(this.observers["*"]);a.forEach(function(u){u.apply(u,[t].concat(r))})}}}]),e}();function of(){var e,t,n=new Promise(function(r,o){e=r,t=o});return n.resolve=e,n.reject=t,n}function aO(e){return e==null?"":""+e}function yee(e,t,n){e.forEach(function(r){t[r]&&(n[r]=t[r])})}function I8(e,t,n){function r(u){return u&&u.indexOf("###")>-1?u.replace(/###/g,"."):u}function o(){return!e||typeof e=="string"}for(var i=typeof t!="string"?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function uO(e,t,n){var r=I8(e,t,Object);r.obj[r.k]=n}function mv(e,t){var n=I8(e,t),r=n.obj,o=n.k;if(r)return r[o]}function sO(e,t,n){var r=mv(e,n);return r!==void 0?r:mv(t,n)}function uN(e,t,n){for(var r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):uN(e[r],t[r],n):e[r]=t[r]);return e}function Ps(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var bee={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function wee(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return bee[t]}):e}var rm=typeof window<"u"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function sN(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),o=e,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?sN(s,l,n):void 0}o=o[r[i]]}return o}}var Eee=function(e){function t(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return si(this,t),r=Qd(this,ql(t).call(this)),rm&&xa.call(Qu(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 nm(t,xa),li(t,[{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=mv(this.data,s);return l||!u||typeof o!="string"?l:sN(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),uO(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=mv(this.data,s)||{};i?uN(l,o,a):l=Ut({},l,o),uO(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"?Ut({},{},this.getResource(n,r)):this.getResource(n,r)}},{key:"getDataByLanguage",value:function(n){return this.data[n]}},{key:"toJSON",value:function(){return this.data}}]),t}(),lN={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach(function(a){i.processors[a]&&(t=i.processors[a].process(t,n,r,o))}),t}},lO={},cO=function(e){function t(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return si(this,t),r=Qd(this,ql(t).call(this)),rm&&xa.call(Qu(r)),yee(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,Qu(r)),r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.logger=Qo.create("translator"),r}return nm(t,xa),li(t,[{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(aa(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 m=this.resolve(n,r),g=m&&m.res,v=m&&m.usedKey||s,y=m&&m.exactUsedKey||s,h=Object.prototype.toString.apply(g),b=["[object Number]","[object Function]","[object RegExp]"],w=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,D=!this.i18nFormat||this.i18nFormat.handleAsObject,S=typeof g!="string"&&typeof g!="boolean"&&typeof g!="number";if(D&&g&&S&&b.indexOf(h)<0&&(typeof w!="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(v,g,Ut({},r,{ns:l})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(a){var C=h==="[object Array]",O=C?[]:{},F=C?y:v;for(var L in g)if(Object.prototype.hasOwnProperty.call(g,L)){var H="".concat(F).concat(a).concat(L);O[L]=this.translate(H,Ut({},r,{joinArrays:!1,ns:l})),O[L]===H&&(O[L]=g[L])}g=O}}else if(D&&typeof w=="string"&&h==="[object Array]")(g=g.join(w))&&(g=this.extendTranslation(g,n,r,o));else{var M=!1,K=!1,V=r.count!==void 0&&typeof r.count!="string",G=t.hasDefaultValue(r),q=V?this.pluralResolver.getSuffix(f,r.count):"",re=r["defaultValue".concat(q)]||r.defaultValue;!this.isValidLookup(g)&&G&&(M=!0,g=re),this.isValidLookup(g)||(K=!0,g=s);var le=r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,se=le&&K?void 0:g,ae=G&&re!==g&&this.options.updateMissing;if(K||M||ae){if(this.logger.log(ae?"updateKey":"missingKey",f,c,s,ae?re:g),a){var B=this.resolve(s,Ut({},r,{keySeparator:!1}));B&&B.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 x=[],j=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&j&&j[0])for(var $=0;$<j.length;$++)x.push(j[$]);else this.options.saveMissingTo==="all"?x=this.languageUtils.toResolveHierarchy(r.lng||this.language):x.push(r.lng||this.language);var Y=function(U,ie,ge){i.options.missingKeyHandler?i.options.missingKeyHandler(U,c,ie,ae?ge:se,ae,r):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(U,c,ie,ae?ge:se,ae,r),i.emit("missingKey",U,c,ie,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&V?x.forEach(function(U){i.pluralResolver.getSuffixes(U).forEach(function(ie){Y([U],s+ie,r["defaultValue".concat(ie)]||re)})}):Y(x,s,re))}g=this.extendTranslation(g,n,r,m,o),K&&g===s&&this.options.appendNamespaceToMissingKey&&(g="".concat(c,":").concat(s)),(K||M)&&this.options.parseMissingKeyHandler&&(g=this.options.parseMissingKeyHandler(g))}return g}},{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(Ut({},o,{interpolation:Ut({},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=Ut({},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 g=arguments.length,v=new Array(g),y=0;y<g;y++)v[y]=arguments[y];return a&&a[0]===v[0]&&!o.context?(u.logger.warn("It seems you are nesting recursively key: ".concat(v[0]," in key: ").concat(r[0])),null):u.translate.apply(u,v.concat([r]))},o)),o.interpolation&&this.interpolator.reset()}var d=o.postProcess||this.options.postProcess,m=typeof d=="string"?[d]:d;return n!=null&&m&&m.length&&o.applyPostProcessor!==!1&&(n=lN.handle(m,n,r,this.options&&this.options.postProcessPassResolved?Ut({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 m=l.count!==void 0&&typeof l.count!="string",g=l.context!==void 0&&(typeof l.context=="string"||typeof l.context=="number")&&l.context!=="",v=l.lngs?l.lngs:s.languageUtils.toResolveHierarchy(l.lng||s.language,l.fallbackLng);d.forEach(function(y){s.isValidLookup(r)||(u=y,!lO["".concat(v[0],"-").concat(y)]&&s.utils&&s.utils.hasLoadedNamespace&&!s.utils.hasLoadedNamespace(u)&&(lO["".concat(v[0],"-").concat(y)]=!0,s.logger.warn('key "'.concat(o,'" for languages "').concat(v.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!!!")),v.forEach(function(h){if(!s.isValidLookup(r)){a=h;var b,w,D=p,S=[D];for(s.i18nFormat&&s.i18nFormat.addLookupKeys?s.i18nFormat.addLookupKeys(S,p,h,y,l):(m&&(b=s.pluralResolver.getSuffix(h,l.count)),m&&g&&S.push(D+b),g&&S.push(D+="".concat(s.options.contextSeparator).concat(l.context)),m&&S.push(D+=b));w=S.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,r.length)&&n[o]!==void 0)return!0;return!1}}]),t}();function _b(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Dee=function(){function e(t){si(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Qo.create("languageUtils")}return li(e,[{key:"getScriptPartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return null;var n=t.split("-");return n.length===2?null:(n.pop(),n[n.length-1].toLowerCase()==="x"?null:this.formatLanguageCode(n.join("-")))}},{key:"getLanguagePartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return t;var n=t.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function(t){if(typeof t=="string"&&t.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],r=t.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]=_b(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]=_b(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=_b(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}},{key:"isWhitelisted",value:function(t){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(t)}},{key:"isSupportedCode",value:function(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}},{key:"getBestMatchFromCodes",value:function(t){var n,r=this;return t?(t.forEach(function(o){if(!n){var i=r.formatLanguageCode(o);r.options.supportedLngs&&!r.isSupportedCode(i)||(n=i)}}),!n&&this.options.supportedLngs&&t.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(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!n)return t.default||[];var r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}},{key:"toResolveHierarchy",value:function(t,n){var r=this,o=this.getFallbackCodes(n||this.options.fallbackLng||[],t),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 t=="string"&&t.indexOf("-")>-1?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):typeof t=="string"&&a(this.formatLanguageCode(t)),o.forEach(function(u){i.indexOf(u)<0&&a(r.formatLanguageCode(u))}),i}}]),e}(),Cee=[{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}],See={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};function xee(){var e={};return Cee.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:See[t.fc]}})}),e}var Aee=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};si(this,e),this.languageUtils=t,this.options=n,this.logger=Qo.create("pluralResolver"),this.rules=xee()}return li(e,[{key:"addRule",value:function(t,n){this.rules[t]=n}},{key:"getRule",value:function(t){return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}},{key:"needsPlural",value:function(t){var n=this.getRule(t);return n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(t,n){return this.getSuffixes(t).map(function(r){return n+r})}},{key:"getSuffixes",value:function(t){var n=this,r=this.getRule(t);return r?r.numbers.map(function(o){return n.getSuffix(t,o)}):[]}},{key:"getSuffix",value:function(t,n){var r=this,o=this.getRule(t);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(t)),""}}]),e}(),Oee=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};si(this,e),this.logger=Qo.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return li(e,[{key:"init",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});var n=t.interpolation;this.escape=n.escape!==void 0?n.escape:wee,this.escapeValue=n.escapeValue===void 0||n.escapeValue,this.useRawValueToEscape=n.useRawValueToEscape!==void 0&&n.useRawValueToEscape,this.prefix=n.prefix?Ps(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?Ps(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?Ps(n.nestingPrefix):n.nestingPrefixEscaped||Ps("$t("),this.nestingSuffix=n.nestingSuffix?Ps(n.nestingSuffix):n.nestingSuffixEscaped||Ps(")"),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 t="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(t,"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(t,n,r,o){var i,a,u,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(g){return g.replace(/\$/g,"$$$$")}var f=function(g){if(g.indexOf(s.formatSeparator)<0){var v=sO(n,l,g);return s.alwaysFormat?s.format(v,void 0,r,Ut({},o,n,{interpolationkey:g})):v}var y=g.split(s.formatSeparator),h=y.shift().trim(),b=y.join(s.formatSeparator).trim();return s.format(sO(n,l,h),b,r,Ut({},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,m=[{regex:this.regexpUnescape,safeValue:function(g){return c(g)}},{regex:this.regexp,safeValue:function(g){return s.escapeValue?c(s.escape(g)):c(g)}}];return m.forEach(function(g){for(u=0;i=g.regex.exec(t);){if((a=f(i[1].trim()))===void 0)if(typeof p=="function"){var v=p(t,i,o);a=typeof v=="string"?v:""}else{if(d){a=i[0];continue}s.logger.warn("missed to pass in variable ".concat(i[1]," for interpolating ").concat(t)),a=""}else typeof a=="string"||s.useRawValueToEscape||(a=aO(a));var y=g.safeValue(a);if(t=t.replace(i[0],y),d?(g.regex.lastIndex+=y.length,g.regex.lastIndex-=i[0].length):g.regex.lastIndex=0,++u>=s.maxReplaces)break}}),t}},{key:"nest",value:function(t,n){var r,o,i=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=Ut({},a);function s(p,d){var m=this.nestingOptionsSeparator;if(p.indexOf(m)<0)return p;var g=p.split(new RegExp("".concat(m,"[ ]*{"))),v="{".concat(g[1]);p=g[0],v=(v=this.interpolate(v,u)).replace(/'/g,'"');try{u=JSON.parse(v),d&&(u=Ut({},d,u))}catch(y){return this.logger.warn("failed parsing options string in nesting for key ".concat(p),y),"".concat(p).concat(m).concat(v)}return delete u.defaultValue,p}for(u.applyPostProcessor=!1,delete u.defaultValue;r=this.nestingRegexp.exec(t);){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]===t&&typeof o!="string")return o;typeof o!="string"&&(o=aO(o)),o||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(t)),o=""),c&&(o=l.reduce(function(p,d){return i.format(p,d,a.lng,Ut({},a,{interpolationkey:r[1].trim()}))},o.trim())),t=t.replace(r[0],o),this.regexp.lastIndex=0}return t}}]),e}(),Bee=function(e){function t(n,r,o){var i,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return si(this,t),i=Qd(this,ql(t).call(this)),rm&&xa.call(Qu(i)),i.backend=n,i.store=r,i.services=o,i.languageUtils=o.languageUtils,i.options=a,i.logger=Qo.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(o,a.backend,a),i}return nm(t,xa),li(t,[{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 m="".concat(f,"|").concat(d);!o.reload&&a.store.hasResourceBundle(f,d)?a.state[m]=2:a.state[m]<0||(a.state[m]===1?s.indexOf(m)<0&&s.push(m):(a.state[m]=1,p=!1,s.indexOf(m)<0&&s.push(m),u.indexOf(m)<0&&u.push(m),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 m=I8(c,f,Object),g=m.obj,v=m.k;g[v]=g[v]||[],g[v].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,Ut({},u,{isUpdate:a})),n&&n[0]&&this.store.addResource(n[0],r,o,i))}}]),t}();function kee(){return{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(e){var t={};if(aa(e[1])==="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),aa(e[2])==="object"||aa(e[3])==="object"){var n=e[3]||e[2];Object.keys(n).forEach(function(r){t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function fO(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function t0(){}var Fee=function(e){function t(){var n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(si(this,t),n=Qd(this,ql(t).call(this)),rm&&xa.call(Qu(n)),n.options=fO(r),n.services={},n.logger=Qo,n.modules={external:[]},o&&!n.isInitialized&&!r.isClone){if(!n.options.initImmediate)return n.init(r,o),Qd(n,Qu(n));setTimeout(function(){n.init(r,o)},0)}return n}return nm(t,xa),li(t,[{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(d){return d?typeof d=="function"?new d:d: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=Ut({},kee(),this.options,fO(r)),this.format=this.options.interpolation.format,o||(o=t0),!this.options.isClone){this.modules.logger?Qo.init(i(this.modules.logger),this.options):Qo.init(null,this.options);var a=new Dee(this.options);this.store=new Eee(this.options.resources,this.options);var u=this.services;u.logger=Qo,u.resourceStore=this.store,u.languageUtils=a,u.pluralResolver=new Aee(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u.interpolator=new Oee(this.options),u.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},u.backendConnector=new Bee(i(this.modules.backend),u.resourceStore,u,this.options),u.backendConnector.on("*",function(d){for(var m=arguments.length,g=new Array(m>1?m-1:0),v=1;v<m;v++)g[v-1]=arguments[v];n.emit.apply(n,[d].concat(g))}),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 cO(this.services,this.options),this.translator.on("*",function(d){for(var m=arguments.length,g=new Array(m>1?m-1:0),v=1;v<m;v++)g[v-1]=arguments[v];n.emit.apply(n,[d].concat(g))}),this.modules.external.forEach(function(d){d.init&&d.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");var l=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];l.forEach(function(d){n[d]=function(){var m;return(m=n.store)[d].apply(m,arguments)}});var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach(function(d){n[d]=function(){var m;return(m=n.store)[d].apply(m,arguments),n}});var f=of(),p=function(){var d=function(m,g){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),f.resolve(g),o(m,g)};if(n.languages&&n.options.compatibilityAPI!=="v1"&&!n.isInitialized)return d(null,n.t.bind(n));n.changeLanguage(n.options.lng,d)};return this.options.resources||!this.options.initImmediate?p():setTimeout(p,0),f}},{key:"loadResources",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t0,i=o,a=typeof n=="string"?n:this.language;if(typeof n=="function"&&(i=n),!this.options.resources||this.options.partialBundledLanguages){if(a&&a.toLowerCase()==="cimode")return i();var u=[],s=function(c){c&&r.services.languageUtils.toResolveHierarchy(c).forEach(function(f){u.indexOf(f)<0&&u.push(f)})};if(a)s(a);else{var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.forEach(function(c){return s(c)})}this.options.preload&&this.options.preload.forEach(function(c){return s(c)}),this.services.backendConnector.load(u,this.options.ns,i)}else i(null)}},{key:"reloadResources",value:function(n,r,o){var i=of();return n||(n=this.languages),r||(r=this.options.ns),o||(o=t0),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"&&lN.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=of();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(aa(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=Ut({},l);c.lng=c.lng||u.lng,c.lngs=c.lngs||u.lngs,c.ns=c.ns||u.ns;var m=i.options.keySeparator||".",g=o?"".concat(o).concat(m).concat(s):s;return i.t(g,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=of();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=of();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(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new t(n,r)}},{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]:t0,i=Ut({},this.options,r,{isClone:!0}),a=new t(i),u=["store","services","language"];return u.forEach(function(s){a[s]=n[s]}),a.services=Ut({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new cO(a.services,a.options),a.translator.on("*",function(s){for(var l=arguments.length,c=new Array(l>1?l-1:0),f=1;f<l;f++)c[f-1]=arguments[f];a.emit.apply(a,[s].concat(c))}),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}}}]),t}(),yv=new Fee;function qn(e,t){yv.addResourceBundle(e,"translation",t,!0,!0)}yv.init({lng:"zh-CN",resources:{}});var Q=yv.t.bind(yv);qn("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),qn("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var Tee=S5?{}.toString:function(){return"[object "+N1(this)+"]"};S5||ra(Object.prototype,"toString",Tee,{unsafe:!0});var dO=Array.isArray||function(e){return Cu(e)=="Array"},cN=function(){},_ee=[],fN=Ip("Reflect","construct"),N8=/^\s*(?:class|function)\b/,jee=it(N8.exec),Pee=!N8.exec(cN),af=function(e){if(!Gt(e))return!1;try{return fN(cN,_ee,e),!0}catch{return!1}},Iee=!fN||cn(function(){var e;return af(af.call)||!af(Object)||!af(function(){e=!0})||e})?function(e){if(!Gt(e))return!1;switch(N1(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Pee||!!jee(N8,b5(e))}:af,Nee=In("species"),pO=Ee.Array,Ree=function(e,t){return new(function(n){var r;return dO(n)&&(r=n.constructor,(Iee(r)&&(r===pO||dO(r.prototype))||Ur(r)&&(r=r[Nee])===null)&&(r=void 0)),r===void 0?pO:r}(e))(t===0?0:t)},hO=it([].push),Oi=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var p,d,m=g5(s),g=Bj(m),v=zj(l,c),y=I1(g),h=0,b=f||Ree,w=t?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in g)&&(d=v(p=g[h],h,m),e))if(t)w[h]=d;else if(d)switch(e){case 3:return!0;case 5:return p;case 6:return h;case 2:hO(w,p)}else switch(e){case 4:return!1;case 7:hO(w,p)}return i?-1:r||o?o:w}},Lee={forEach:Oi(0),map:Oi(1),filter:Oi(2),some:Oi(3),every:Oi(4),find:Oi(5),findIndex:Oi(6),filterReject:Oi(7)}.forEach,Mee=function(e,t){var n=[][e];return!!n&&cn(function(){n.call(null,t||function(){throw 1},1)})}("forEach"),jb=Mee?[].forEach:function(e){return Lee(this,e,arguments.length>1?arguments[1]:void 0)},dN=function(e){if(e&&e.forEach!==jb)try{Pn(e,"forEach",jb)}catch{e.forEach=jb}};for(var Pb in Rg)Rg[Pb]&&dN(Ee[Pb]&&Ee[Pb].prototype);dN(Uj),qn("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"}}),qn("zh-CN",{common:{ok:"确定",delete:"删除",enter:"回车"},blockQuote:{title:"引用"},codeBlock:{title:"代码块"},color:{color:"文字颜色",bgColor:"背景色",default:"默认颜色",clear:"清除背景色"},divider:{title:"分割线"},emotion:{title:"表情"},fontSize:{title:"字号",default:"默认字号"},fontFamily:{title:"字体",default:"默认字体"},fullScreen:{title:"全屏"},header:{title:"标题",text:"正文"},image:{netImage:"网络图片",delete:"删除图片",edit:"编辑图片",viewLink:"查看链接",src:"图片地址",desc:"图片描述",link:"图片链接"},indent:{decrease:"减少缩进",increase:"增加缩进"},justify:{left:"左对齐",right:"右对齐",center:"居中对齐",justify:"两端对齐"},lineHeight:{title:"行高",default:"默认行高"},link:{insert:"插入链接",text:"链接文本",url:"链接地址",unLink:"取消链接",edit:"修改链接",view:"查看链接"},textStyle:{bold:"粗体",clear:"清除格式",code:"行内代码",italic:"斜体",sub:"下标",sup:"上标",through:"删除线",underline:"下划线"},undo:{undo:"撤销",redo:"重做"},todo:{todo:"待办"}});var zee={type:"paragraph",renderElem:function(e,t,n){return be("p",null,t)}},bv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function om(e){var t={exports:{}};return e(t,t.exports),t.exports}var Bi,ng,n0=function(e){return e&&e.Math==Math&&e},xe=n0(typeof globalThis=="object"&&globalThis)||n0(typeof window=="object"&&window)||n0(typeof self=="object"&&self)||n0(typeof bv=="object"&&bv)||function(){return this}()||Function("return this")(),Ct=function(e){try{return!!e()}catch{return!0}},to=!Ct(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),uf=Function.prototype.call,Tt=uf.bind?uf.bind(uf):function(){return uf.apply(uf,arguments)},gO={}.propertyIsEnumerable,vO=Object.getOwnPropertyDescriptor,$ee=vO&&!gO.call({1:2},1)?function(e){var t=vO(this,e);return!!t&&t.enumerable}:gO,pN={f:$ee},R8=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},hN=Function.prototype,KE=hN.bind,YE=hN.call,Hee=KE&&KE.bind(YE),me=KE?function(e){return e&&Hee(YE,e)}:function(e){return e&&function(){return YE.apply(e,arguments)}},Uee=me({}.toString),Vee=me("".slice),ua=function(e){return Vee(Uee(e),8,-1)},Ib=xe.Object,Wee=me("".split),im=Ct(function(){return!Ib("z").propertyIsEnumerable(0)})?function(e){return ua(e)=="String"?Wee(e,""):Ib(e)}:Ib,Gee=xe.TypeError,Pr=function(e){if(e==null)throw Gee("Can't call method on "+e);return e},hc=function(e){return im(Pr(e))},hn=function(e){return typeof e=="function"},Cr=function(e){return typeof e=="object"?e!==null:hn(e)},qee=function(e){return hn(e)?e:void 0},qp=function(e,t){return arguments.length<2?qee(xe[e]):xe[e]&&xe[e][t]},gN=me({}.isPrototypeOf),Nb=qp("navigator","userAgent")||"",mO=xe.process,yO=xe.Deno,bO=mO&&mO.versions||yO&&yO.version,wO=bO&&bO.v8;wO&&(ng=(Bi=wO.split("."))[0]>0&&Bi[0]<4?1:+(Bi[0]+Bi[1])),!ng&&Nb&&(!(Bi=Nb.match(/Edge\/(\d+)/))||Bi[1]>=74)&&(Bi=Nb.match(/Chrome\/(\d+)/))&&(ng=+Bi[1]);var XE=ng,JE=!!Object.getOwnPropertySymbols&&!Ct(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&XE&&XE<41}),L8=JE&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Kee=xe.Object,Rb=L8?function(e){return typeof e=="symbol"}:function(e){var t=qp("Symbol");return hn(t)&&gN(t.prototype,Kee(e))},Yee=xe.String,vN=function(e){try{return Yee(e)}catch{return"Object"}},Xee=xe.TypeError,mN=function(e){if(hn(e))return e;throw Xee(vN(e)+" is not a function")},am=function(e,t){var n=e[t];return n==null?void 0:mN(n)},Jee=xe.TypeError,Zee=Object.defineProperty,M8=function(e,t){try{Zee(xe,e,{value:t,configurable:!0,writable:!0})}catch{xe[e]=t}return t},sa=xe["__core-js_shared__"]||M8("__core-js_shared__",{}),z8=om(function(e){(e.exports=function(t,n){return sa[t]||(sa[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Qee=xe.Object,Kp=function(e){return Qee(Pr(e))},ete=me({}.hasOwnProperty),Ar=Object.hasOwn||function(e,t){return ete(Kp(e),t)},tte=0,nte=Math.random(),rte=me(1 .toString),yN=function(e){return"Symbol("+(e===void 0?"":e)+")_"+rte(++tte+nte,36)},sf=z8("wks"),Tu=xe.Symbol,EO=Tu&&Tu.for,ote=L8?Tu:Tu&&Tu.withoutSetter||yN,dr=function(e){if(!Ar(sf,e)||!JE&&typeof sf[e]!="string"){var t="Symbol."+e;JE&&Ar(Tu,e)?sf[e]=Tu[e]:sf[e]=L8&&EO?EO(t):ote(t)}return sf[e]},ite=xe.TypeError,ate=dr("toPrimitive"),$8=function(e){var t=function(n,r){if(!Cr(n)||Rb(n))return n;var o,i=am(n,ate);if(i){if(r===void 0&&(r="default"),o=Tt(i,n,r),!Cr(o)||Rb(o))return o;throw ite("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&hn(s=a.toString)&&!Cr(l=Tt(s,a))||hn(s=a.valueOf)&&!Cr(l=Tt(s,a))||u!=="string"&&hn(s=a.toString)&&!Cr(l=Tt(s,a)))return l;throw Jee("Can't convert object to primitive value")}(n,r)}(e,"string");return Rb(t)?t:t+""},ZE=xe.document,ute=Cr(ZE)&&Cr(ZE.createElement),H8=function(e){return ute?ZE.createElement(e):{}},bN=!to&&!Ct(function(){return Object.defineProperty(H8("div"),"a",{get:function(){return 7}}).a!=7}),DO=Object.getOwnPropertyDescriptor,U8={f:to?DO:function(e,t){if(e=hc(e),t=$8(t),bN)try{return DO(e,t)}catch{}if(Ar(e,t))return R8(!Tt(pN.f,e,t),e[t])}},ste=xe.String,lte=xe.TypeError,rr=function(e){if(Cr(e))return e;throw lte(ste(e)+" is not an object")},cte=xe.TypeError,CO=Object.defineProperty,gc={f:to?CO:function(e,t,n){if(rr(e),t=$8(t),rr(n),bN)try{return CO(e,t,n)}catch{}if("get"in n||"set"in n)throw cte("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Kl=to?function(e,t,n){return gc.f(e,t,R8(1,n))}:function(e,t,n){return e[t]=n,e},fte=me(Function.toString);hn(sa.inspectSource)||(sa.inspectSource=function(e){return fte(e)});var wv,gd,Ev,V8=sa.inspectSource,SO=xe.WeakMap,dte=hn(SO)&&/native code/.test(V8(SO)),xO=z8("keys"),wN=function(e){return xO[e]||(xO[e]=yN(e))},W8={},QE=xe.TypeError,pte=xe.WeakMap;if(dte||sa.state){var Ja=sa.state||(sa.state=new pte),hte=me(Ja.get),AO=me(Ja.has),gte=me(Ja.set);wv=function(e,t){if(AO(Ja,e))throw new QE("Object already initialized");return t.facade=e,gte(Ja,e,t),t},gd=function(e){return hte(Ja,e)||{}},Ev=function(e){return AO(Ja,e)}}else{var Is=wN("state");W8[Is]=!0,wv=function(e,t){if(Ar(e,Is))throw new QE("Object already initialized");return t.facade=e,Kl(e,Is,t),t},gd=function(e){return Ar(e,Is)?e[Is]:{}},Ev=function(e){return Ar(e,Is)}}var e6={set:wv,get:gd,has:Ev,enforce:function(e){return Ev(e)?gd(e):wv(e,{})},getterFor:function(e){return function(t){var n;if(!Cr(t)||(n=gd(t)).type!==e)throw QE("Incompatible receiver, "+e+" required");return n}}},EN=Function.prototype,vte=to&&Object.getOwnPropertyDescriptor,Lb=Ar(EN,"name"),um={EXISTS:Lb,PROPER:Lb&&(function(){}).name==="something",CONFIGURABLE:Lb&&(!to||to&&vte(EN,"name").configurable)},ep=om(function(e){var t=um.CONFIGURABLE,n=e6.get,r=e6.enforce,o=String(String).split("String");(e.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;hn(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Ar(u,"name")||t&&u.name!==d)&&Kl(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==xe?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Kl(i,a,u)):f?i[a]=u:M8(a,u)})(Function.prototype,"toString",function(){return hn(this)&&n(this).source||V8(this)})}),mte=Math.ceil,yte=Math.floor,vc=function(e){var t=+e;return t!=t||t===0?0:(t>0?yte:mte)(t)},bte=Math.max,wte=Math.min,tp=function(e,t){var n=vc(e);return n<0?bte(n+t,0):wte(n,t)},Ete=Math.min,Yp=function(e){return e>0?Ete(vc(e),9007199254740991):0},sm=function(e){return Yp(e.length)},OO=function(e){return function(t,n,r){var o,i=hc(t),a=sm(i),u=tp(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},DN={includes:OO(!0),indexOf:OO(!1)},Dte=DN.indexOf,BO=me([].push),CN=function(e,t){var n,r=hc(e),o=0,i=[];for(n in r)!Ar(W8,n)&&Ar(r,n)&&BO(i,n);for(;t.length>o;)Ar(r,n=t[o++])&&(~Dte(i,n)||BO(i,n));return i},Dv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Cte=Dv.concat("length","prototype"),Ste={f:Object.getOwnPropertyNames||function(e){return CN(e,Cte)}},SN={f:Object.getOwnPropertySymbols},xte=me([].concat),Ate=qp("Reflect","ownKeys")||function(e){var t=Ste.f(rr(e)),n=SN.f;return n?xte(t,n(e)):t},Ote=function(e,t){for(var n=Ate(t),r=gc.f,o=U8.f,i=0;i<n.length;i++){var a=n[i];Ar(e,a)||r(e,a,o(t,a))}},Bte=/#|\.prototype\./,Xp=function(e,t){var n=Fte[kte(e)];return n==_te||n!=Tte&&(hn(t)?Ct(t):!!t)},kte=Xp.normalize=function(e){return String(e).replace(Bte,".").toLowerCase()},Fte=Xp.data={},Tte=Xp.NATIVE="N",_te=Xp.POLYFILL="P",jte=Xp,Pte=U8.f,en=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?xe:l?xe[u]||M8(u,{}):(xe[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Pte(n,r))&&a.value:n[r],!jte(s?r:u+(l?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;Ote(i,o)}(e.sham||o&&o.sham)&&Kl(i,"sham",!0),ep(n,r,i,e)}},kO=me(me.bind),Cv=Array.isArray||function(e){return ua(e)=="Array"},xN={};xN[dr("toStringTag")]="z";var G8=String(xN)==="[object z]",Ite=dr("toStringTag"),Nte=xe.Object,Rte=ua(function(){return arguments}())=="Arguments",q8=G8?ua:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(t=Nte(e),Ite))=="string"?n:Rte?ua(t):(r=ua(t))=="Object"&&hn(t.callee)?"Arguments":r},AN=function(){},Lte=[],ON=qp("Reflect","construct"),K8=/^\s*(?:class|function)\b/,Mte=me(K8.exec),zte=!K8.exec(AN),lf=function(e){if(!hn(e))return!1;try{return ON(AN,Lte,e),!0}catch{return!1}},Y8=!ON||Ct(function(){var e;return lf(lf.call)||!lf(Object)||!lf(function(){e=!0})||e})?function(e){if(!hn(e))return!1;switch(q8(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return zte||!!Mte(K8,V8(e))}:lf,$te=dr("species"),FO=xe.Array,Hte=function(e,t){return new(function(n){var r;return Cv(n)&&(r=n.constructor,(Y8(r)&&(r===FO||Cv(r.prototype))||Cr(r)&&(r=r[$te])===null)&&(r=void 0)),r===void 0?FO:r}(e))(t===0?0:t)},TO=me([].push),ki=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var p,d,m=Kp(s),g=im(m),v=function(D,S){return mN(D),S===void 0?D:kO?kO(D,S):function(){return D.apply(S,arguments)}}(l,c),y=sm(g),h=0,b=f||Hte,w=t?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in g)&&(d=v(p=g[h],h,m),e))if(t)w[h]=d;else if(d)switch(e){case 3:return!0;case 5:return p;case 6:return h;case 2:TO(w,p)}else switch(e){case 4:return!1;case 7:TO(w,p)}return i?-1:r||o?o:w}},lm={forEach:ki(0),map:ki(1),filter:ki(2),some:ki(3),every:ki(4),find:ki(5),findIndex:ki(6),filterReject:ki(7)},Ute=dr("species"),X8=function(e){return XE>=51||!Ct(function(){var t=[];return(t.constructor={})[Ute]=function(){return{foo:1}},t[e](Boolean).foo!==1})},Vte=lm.filter;en({target:"Array",proto:!0,forced:!X8("filter")},{filter:function(e){return Vte(this,e,arguments.length>1?arguments[1]:void 0)}});var Wte=G8?{}.toString:function(){return"[object "+q8(this)+"]"};G8||ep(Object.prototype,"toString",Wte,{unsafe:!0});var r0,Gte=xe.String,Et=function(e){if(q8(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Gte(e)},BN=function(){var e=rr(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},J8=xe.RegExp,t6=Ct(function(){var e=J8("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),qte=t6||Ct(function(){return!J8("a","y").sticky}),kN={BROKEN_CARET:t6||Ct(function(){var e=J8("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:qte,UNSUPPORTED_Y:t6},bl=Object.keys||function(e){return CN(e,Dv)},Kte=to?Object.defineProperties:function(e,t){rr(e);for(var n,r=hc(t),o=bl(t),i=o.length,a=0;i>a;)gc.f(e,n=o[a++],r[n]);return e},Yte=qp("document","documentElement"),FN=wN("IE_PROTO"),Mb=function(){},TN=function(e){return"<script>"+e+"<\/script>"},_O=function(e){e.write(TN("")),e.close();var t=e.parentWindow.Object;return e=null,t},rg=function(){try{r0=new ActiveXObject("htmlfile")}catch{}var e,t;rg=typeof document<"u"?document.domain&&r0?_O(r0):((t=H8("iframe")).style.display="none",Yte.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(TN("document.F=Object")),e.close(),e.F):_O(r0);for(var n=Dv.length;n--;)delete rg.prototype[Dv[n]];return rg()};W8[FN]=!0;var jO,zb,_N=Object.create||function(e,t){var n;return e!==null?(Mb.prototype=rr(e),n=new Mb,Mb.prototype=null,n[FN]=e):n=rg(),t===void 0?n:Kte(n,t)},Xte=xe.RegExp,Jte=Ct(function(){var e=Xte(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")}),Zte=xe.RegExp,Qte=Ct(function(){var e=Zte("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),ene=e6.get,tne=z8("native-string-replace",String.prototype.replace),Sv=RegExp.prototype.exec,n6=Sv,nne=me("".charAt),rne=me("".indexOf),one=me("".replace),$b=me("".slice),Hb=(zb=/b*/g,Tt(Sv,jO=/a/,"a"),Tt(Sv,zb,"a"),jO.lastIndex!==0||zb.lastIndex!==0),PO=kN.BROKEN_CARET,Ub=/()??/.exec("")[1]!==void 0;(Hb||Ub||PO||Jte||Qte)&&(n6=function(e){var t,n,r,o,i,a,u,s=this,l=ene(s),c=Et(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Tt(n6,f,c),s.lastIndex=f.lastIndex,t;var p=l.groups,d=PO&&s.sticky,m=Tt(BN,s),g=s.source,v=0,y=c;if(d&&(m=one(m,"y",""),rne(m,"g")===-1&&(m+="g"),y=$b(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&nne(c,s.lastIndex-1)!==`
- `)&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",m)),Ub&&(n=new RegExp("^"+g+"$(?!\\s)",m)),Hb&&(r=s.lastIndex),o=Tt(Sv,d?n:s,y),d?o?(o.input=$b(o.input,v),o[0]=$b(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Hb&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Ub&&o&&o.length>1&&Tt(tne,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=_N(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var np=n6;en({target:"RegExp",proto:!0,forced:/./.exec!==np},{exec:np});var Z8=Function.prototype,IO=Z8.apply,ine=Z8.bind,NO=Z8.call,jN=typeof Reflect=="object"&&Reflect.apply||(ine?NO.bind(IO):function(){return NO.apply(IO,arguments)}),ane=dr("species"),Vb=RegExp.prototype,Q8=function(e,t,n,r){var o=dr(e),i=!Ct(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!Ct(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[ane]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=me(/./[o]),s=t(o,""[e],function(l,c,f,p,d){var m=me(l),g=c.exec;return g===np||g===Vb.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:m(f,c,p)}:{done:!1}});ep(String.prototype,e,s[0]),ep(Vb,o,s[1])}r&&Kl(Vb[o],"sham",!0)},une=me("".charAt),RO=me("".charCodeAt),sne=me("".slice),lne=function(e){return function(t,n){var r,o,i=Et(Pr(t)),a=vc(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=RO(i,a))<55296||r>56319||a+1===u||(o=RO(i,a+1))<56320||o>57343?e?une(i,a):r:e?sne(i,a,a+2):o-56320+(r-55296<<10)+65536}},cne=lne(!0),eD=function(e,t,n){return t+(n?cne(e,t).length:1)},fne=Math.floor,Wb=me("".charAt),dne=me("".replace),Gb=me("".slice),pne=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,hne=/\$([$&'`]|\d{1,2})/g,gne=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=hne;return o!==void 0&&(o=Kp(o),s=pne),dne(i,s,function(l,c){var f;switch(Wb(c,0)){case"$":return"$";case"&":return e;case"`":return Gb(t,0,n);case"'":return Gb(t,a);case"<":f=o[Gb(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=fne(p/10);return d===0?l:d<=u?r[d-1]===void 0?Wb(c,1):r[d-1]+Wb(c,1):l}f=r[p-1]}return f===void 0?"":f})},vne=xe.TypeError,rp=function(e,t){var n=e.exec;if(hn(n)){var r=Tt(n,e,t);return r!==null&&rr(r),r}if(ua(e)==="RegExp")return Tt(np,e,t);throw vne("RegExp#exec called on incompatible receiver")},r6=dr("replace"),mne=Math.max,yne=Math.min,bne=me([].concat),qb=me([].push),LO=me("".indexOf),MO=me("".slice),wne="a".replace(/./,"$0")==="$0",zO=!!/./[r6]&&/./[r6]("a","$0")==="";Q8("replace",function(e,t,n){var r=zO?"$":"$0";return[function(o,i){var a=Pr(this),u=o==null?void 0:am(o,r6);return u?Tt(u,o,a,i):Tt(t,Et(a),o,i)},function(o,i){var a=rr(this),u=Et(o);if(typeof i=="string"&&LO(i,r)===-1&&LO(i,"$<")===-1){var s=n(t,a,u,i);if(s.done)return s.value}var l=hn(i);l||(i=Et(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var p=[];;){var d=rp(a,u);if(d===null||(qb(p,d),!c))break;Et(d[0])===""&&(a.lastIndex=eD(u,Yp(a.lastIndex),f))}for(var m,g="",v=0,y=0;y<p.length;y++){for(var h=Et((d=p[y])[0]),b=mne(yne(vc(d.index),u.length),0),w=[],D=1;D<d.length;D++)qb(w,(m=d[D])===void 0?m:String(m));var S=d.groups;if(l){var C=bne([h],w,b,u);S!==void 0&&qb(C,S);var O=Et(jN(i,void 0,C))}else O=gne(h,u,b,w,S,i);b>=v&&(g+=MO(u,v,b)+O,v=b+h.length)}return g+MO(u,v)}]},!!Ct(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!wne||zO);var o6=dr("unscopables"),i6=Array.prototype;i6[o6]==null&&gc.f(i6,o6,{configurable:!0,value:_N(null)});var PN=function(e){i6[o6][e]=!0},Ene=lm.find,$O=!0;"find"in[]&&Array(1).find(function(){$O=!1}),en({target:"Array",proto:!0,forced:$O},{find:function(e){return Ene(this,e,arguments.length>1?arguments[1]:void 0)}}),PN("find");var Dne=dr("match"),IN=function(e){var t;return Cr(e)&&((t=e[Dne])!==void 0?!!t:ua(e)=="RegExp")},Cne=xe.TypeError,Sne=dr("species"),NN=function(e,t,n){var r=$8(t);r in e?gc.f(e,r,R8(0,n)):e[r]=n},xne=xe.Array,Ane=Math.max,HO=function(e,t,n){for(var r=sm(e),o=tp(t,r),i=tp(n===void 0?r:n,r),a=xne(Ane(i-o,0)),u=0;o<i;o++,u++)NN(a,u,e[o]);return a.length=u,a},Ns=kN.UNSUPPORTED_Y,One=Math.min,RN=[].push,Bne=me(/./.exec),Rs=me(RN),cf=me("".slice);Q8("split",function(e,t,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=Et(Pr(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[a];if(!IN(o))return Tt(t,a,o,u);for(var s,l,c,f=[],p=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),d=0,m=new RegExp(o.source,p+"g");(s=Tt(np,m,a))&&!((l=m.lastIndex)>d&&(Rs(f,cf(a,d,s.index)),s.length>1&&s.index<a.length&&jN(RN,f,HO(s,1)),c=s[0].length,d=l,f.length>=u));)m.lastIndex===s.index&&m.lastIndex++;return d===a.length?!c&&Bne(m,"")||Rs(f,""):Rs(f,cf(a,d)),f.length>u?HO(f,0,u):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Tt(t,this,o,i)}:t,[function(o,i){var a=Pr(this),u=o==null?void 0:am(o,e);return u?Tt(u,o,a,i):Tt(r,Et(a),o,i)},function(o,i){var a=rr(this),u=Et(o),s=n(r,a,u,i,r!==t);if(s.done)return s.value;var l=function(w,D){var S,C=rr(w).constructor;return C===void 0||(S=rr(C)[Sne])==null?D:function(O){if(Y8(O))return O;throw Cne(vN(O)+" is not a constructor")}(S)}(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Ns?"g":"y"),p=new l(Ns?"^(?:"+a.source+")":a,f),d=i===void 0?4294967295:i>>>0;if(d===0)return[];if(u.length===0)return rp(p,u)===null?[u]:[];for(var m=0,g=0,v=[];g<u.length;){p.lastIndex=Ns?0:g;var y,h=rp(p,Ns?cf(u,g):u);if(h===null||(y=One(Yp(p.lastIndex+(Ns?g:0)),u.length))===m)g=eD(u,g,c);else{if(Rs(v,cf(u,m,g)),v.length===d)return v;for(var b=1;b<=h.length-1;b++)if(Rs(v,h[b]),v.length===d)return v;g=m=y}}return Rs(v,cf(u,m)),v}]},!!Ct(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),Ns);var a6=`
- \v\f\r \u2028\u2029\uFEFF`,UO=me("".replace),xv="["+a6+"]",kne=RegExp("^"+xv+xv+"*"),Fne=RegExp(xv+xv+"*$"),Kb=function(e){return function(t){var n=Et(Pr(t));return 1&e&&(n=UO(n,kne,"")),2&e&&(n=UO(n,Fne,"")),n}},Tne={start:Kb(1),end:Kb(2),trim:Kb(3)},_ne=um.PROPER,jne=Tne.trim;function tD(e){return k("<div>"+e+"</div>").children().filter(function(t){return t.tagName!=="BR"}).length===0}function mc(e){return e.length===0?"":e[0].outerHTML}function yc(e){return e.length?e[0].tagName.toLowerCase():""}function Zr(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var u=a.split(":");u[0].trim()===t&&(n=u[1].trim())}}return n}en({target:"String",proto:!0,forced:Ct(function(){return!!a6.trim()||"
".trim()!=="
"||_ne&&a6.trim.name!=="trim"})},{trim:function(){return jne(this)}}),en({global:!0},{globalThis:xe}),Xg&&(k.fn.css=Xg),Tr&&(k.fn.append=Tr),FA&&(k.fn.prepend=FA),Tl&&(k.fn.addClass=Tl),_l&&(k.fn.removeClass=_l),jl&&(k.fn.hasClass=jl),Bo&&(k.fn.on=Bo),AA&&(k.fn.off=AA),Ca&&(k.fn.focus=Ca),Fr&&(k.fn.attr=Fr),Gg&&(k.fn.removeAttr=Gg),Il&&(k.fn.hide=Il),Yg&&(k.fn.show=Yg),Qg&&(k.fn.parents=Qg),Pl&&(k.fn.dataset=Pl),Oo&&(k.fn.val=Oo),Zg&&(k.fn.text=Zg),Da&&(k.fn.html=Da),Ll&&(k.fn.children=Ll),Ml&&(k.fn.remove=Ml),Rl&&(k.fn.find=Rl),qg&&(k.fn.width=qg),Kg&&(k.fn.height=Kg),BA&&(k.fn.filter=BA),zl&&(k.fn.empty=zl);var Pne={selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=k(e);return(t=t.filter(function(o){return!!oe.isText(o)||!!n.isInline(o)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},u6=function(e,t){return u6=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])},u6(e,t);/*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */};function bt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}u6(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Aa=function(){return Aa=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Aa.apply(this,arguments)};function Ra(e,t,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(e,t||[])).next())})}function La(e,t){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=t.call(e,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 LN(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ye(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(t===void 0||t-- >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 VO(e){var t=Ye(E.nodes(e,{match:function(i){return e.children[0]===i},mode:"highest"}),1)[0];if(t==null)return!1;var n=t[0];if(!ce.isElement(n)||n.type==="paragraph"||Z.string(n)!=="")return!1;var r=n.children,o=r===void 0?[]:r;return!!oe.isText(o[0])&&(I.setNodes(e,{type:"paragraph"}),!0)}var Ine={renderElems:[zee],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return t===""?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[Pne],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(o){VO(r)||t(o)},r.deleteForward=function(o){VO(r)||n(o)},r}},Nne=/"/g,Rne=me("".replace),ed=function(e,t,n,r){var o=Et(Pr(e)),i="<"+t;return n!==""&&(i+=" "+n+'="'+Rne(Et(r),Nne,""")+'"'),i+">"+o+"</"+t+">"},td=function(e){return Ct(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})};function Yb(e,t){var n=t,r=e,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 Za(e,t){return e.length!==0&&(!!e[0].matches(t)||e.find(t).length>0)}en({target:"String",proto:!0,forced:td("bold")},{bold:function(){return ed(this,"b","","")}}),en({target:"String",proto:!0,forced:td("italics")},{italics:function(){return ed(this,"i","","")}}),en({target:"String",proto:!0,forced:td("sub")},{sub:function(){return ed(this,"sub","","")}}),en({target:"String",proto:!0,forced:td("sup")},{sup:function(){return ed(this,"sup","","")}});var WO={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},Xb=H8("span").classList,GO=Xb&&Xb.constructor&&Xb.constructor.prototype,Lne=GO===Object.prototype?void 0:GO,MN=function(e,t){var n=[][e];return!!n&&Ct(function(){n.call(null,t||function(){throw 1},1)})},Mne=lm.forEach,Jb=MN("forEach")?[].forEach:function(e){return Mne(this,e,arguments.length>1?arguments[1]:void 0)},zN=function(e){if(e&&e.forEach!==Jb)try{Kl(e,"forEach",Jb)}catch{e.forEach=Jb}};for(var Zb in WO)WO[Zb]&&zN(xe[Zb]&&xe[Zb].prototype);function $N(e,t){return e.selection==null||!!Ye(E.nodes(e,{match:function(n){return A.getNodeType(n)==="pre"||!!E.isVoid(e,n)},universal:!0}),1)[0]}function zne(e,t){Object.keys(t).forEach(function(n){n!=="text"&&E.removeMark(e,n)})}zN(Lne),en({target:"Object",stat:!0,forced:Ct(function(){bl(1)})},{keys:function(e){return bl(Kp(e))}});var hs=function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(t){var n=this.mark,r=E.marks(t);return r?r[n]:!!Ye(E.nodes(t,{match:function(o){return o[n]===!0}}),1)[0]},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){return $N(t,this.mark)},e.prototype.exec=function(t,n){var r=this.mark,o=this.marksNeedToRemove;n?t.removeMark(r):(t.addMark(r,!0),o&&o.forEach(function(i){return t.removeMark(i)}))},e}(),$ne='<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>',Hne='<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>',Une='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',Vne='<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>',Wne='<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>',HN='<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>',UN='<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>',Gne='<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>',qne='<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>',Kne='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',Yne='<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>',Xne='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',Jne='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',Zne='<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>',Qne='<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>',ere='<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>',tre='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',nre='<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>',rre='<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>',ore=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="bold",n.title=Q("textStyle.bold"),n.iconSvg=$ne,n.hotkey="mod+b",n}return bt(t,e),t}(hs),ire=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="code",n.title=Q("textStyle.code"),n.iconSvg=Wne,n.hotkey="mod+e",n}return bt(t,e),t}(hs),are=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="italic",n.title=Q("textStyle.italic"),n.iconSvg=Une,n.hotkey="mod+i",n}return bt(t,e),t}(hs),ure=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="through",n.title=Q("textStyle.through"),n.iconSvg=Vne,n.hotkey="mod+shift+x",n}return bt(t,e),t}(hs),sre=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="underline",n.title=Q("textStyle.underline"),n.iconSvg=Hne,n.hotkey="mod+u",n}return bt(t,e),t}(hs),lre=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="sub",n.marksNeedToRemove=["sup"],n.title=Q("textStyle.sub"),n.iconSvg=rre,n.hotkey="",n}return bt(t,e),t}(hs),cre=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="sup",n.marksNeedToRemove=["sub"],n.title=Q("textStyle.sup"),n.iconSvg=nre,n.hotkey="",n}return bt(t,e),t}(hs),fre=function(){function e(){this.title=Q("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 e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return $N(t)},e.prototype.exec=function(t,n){var r,o,i=E.nodes(t,{match:function(s){return oe.isText(s)},universal:!0});try{for(var a=LN(i),u=a.next();!u.done;u=a.next())zne(t,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}}},e}(),dre={renderStyle:function(e,t){var n=e,r=n.bold,o=n.italic,i=n.underline,a=n.code,u=n.through,s=n.sub,l=n.sup,c=t;return r&&(c=be("strong",null,c)),a&&(c=be("code",null,c)),o&&(c=be("em",null,c)),i&&(c=be("u",null,c)),u&&(c=be("s",null,c)),s&&(c=be("sub",null,c)),l&&(c=be("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new ore}},{key:"underline",factory:function(){return new sre}},{key:"italic",factory:function(){return new are}},{key:"through",factory:function(){return new ure}},{key:"code",factory:function(){return new ire}},{key:"sub",factory:function(){return new lre}},{key:"sup",factory:function(){return new cre}},{key:"clearStyle",factory:function(){return new fre}}],styleToHtml:function(e,t){if(!oe.isText(e))return t;if(tD(t))return Yb(e,t);var n=k(t);if(yc(n)==="br")return Yb(e,"<br>");var r=n.html();return r=Yb(e,r),n.html(r),mc(n)},parseStyleHtml:function(e,t,n){var r=k(e);if(!oe.isText(t))return t;var o=t;return Za(r,"b,strong")&&(o.bold=!0),Za(r,"i,em")&&(o.italic=!0),Za(r,"u")&&(o.underline=!0),Za(r,"s,strike")&&(o.through=!0),Za(r,"sub")&&(o.sub=!0),Za(r,"sup")&&(o.sup=!0),Za(r,"code")&&(o.code=!0),o}};function Jp(e){return function(t,n,r){return be("h"+e,null,n)}}var pre={type:"header1",renderElem:Jp(1)},hre={type:"header2",renderElem:Jp(2)},gre={type:"header3",renderElem:Jp(3)},vre={type:"header4",renderElem:Jp(4)},mre={type:"header5",renderElem:Jp(5)},yre=um.PROPER,s6=RegExp.prototype,VN=s6.toString,bre=me(BN),wre=Ct(function(){return VN.call({source:"a",flags:"b"})!="/a/b"}),Ere=yre&&VN.name!="toString";(wre||Ere)&&ep(RegExp.prototype,"toString",function(){var e=rr(this),t=Et(e.source),n=e.flags;return"/"+t+"/"+Et(n===void 0&&gN(s6,e)&&!("flags"in s6)?bre(e):n)},{unsafe:!0});var Qb,Dre=xe.TypeError,WN=function(e){if(IN(e))throw Dre("The method doesn't accept regular expressions");return e},Cre=dr("match"),GN=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[Cre]=!1,"/./"[e](t)}catch{}}return!1},Sre=U8.f,qO=me("".startsWith),xre=me("".slice),Are=Math.min,KO=GN("startsWith");function qN(e){var t=Ye(E.nodes(e,{match:function(o){return A.getNodeType(o).startsWith("header")},universal:!0}),1),n=t[0];if(n==null)return"paragraph";var r=Ye(n,1)[0];return A.getNodeType(r)}function KN(e){return e.selection==null||!Ye(E.nodes(e,{match:function(t){var n=A.getNodeType(t);return n==="paragraph"||!!n.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function YN(e,t){t&&I.setNodes(e,{type:t})}en({target:"String",proto:!0,forced:!(!KO&&(Qb=Sre(String.prototype,"startsWith"),Qb&&!Qb.writable)||KO)},{startsWith:function(e){var t=Et(Pr(this));WN(e);var n=Yp(Are(arguments.length>1?arguments[1]:void 0,t.length)),r=Et(e);return qO?qO(t,r,n):xre(t,n,n+r.length)===r}});var Ore=function(){function e(){this.title=Q("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 e.prototype.getOptions=function(t){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:Q("header.text")}],r=this.getValue(t).toString();return n.forEach(function(o){o.value===r?o.selected=!0:delete o.selected}),n},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){return qN(t)},e.prototype.isDisabled=function(t){return KN(t)},e.prototype.exec=function(t,n){YN(t,n.toString())},e}(),Zp=function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return qN(t)},e.prototype.isActive=function(t){return this.getValue(t)===this.type},e.prototype.isDisabled=function(t){return KN(t)},e.prototype.exec=function(t,n){var r=this.type;YN(t,n===r?"paragraph":r)},e}(),Bre=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H1",n.type="header1",n}return bt(t,e),t}(Zp),kre=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H2",n.type="header2",n}return bt(t,e),t}(Zp),Fre=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H3",n.type="header3",n}return bt(t,e),t}(Zp),Tre=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H4",n.type="header4",n}return bt(t,e),t}(Zp),_re=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H5",n.type="header5",n}return bt(t,e),t}(Zp),jre={key:"headerSelect",factory:function(){return new Ore}},Pre={key:"header1",factory:function(){return new Bre}},Ire={key:"header2",factory:function(){return new kre}},Nre={key:"header3",factory:function(){return new Fre}},Rre={key:"header4",factory:function(){return new Tre}},Lre={key:"header5",factory:function(){return new _re}};function ff(e){return function(t,n){return"<h"+e+">"+n+"</h"+e+">"}}function df(e){return function(t,n,r){var o=k(t);return(n=n.filter(function(i){return!!oe.isText(i)||!!r.isInline(i)})).length===0&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:n}}}var Mre={renderElems:[pre,hre,gre,vre,mre],elemsToHtml:[{type:"header1",elemToHtml:ff(1)},{type:"header2",elemToHtml:ff(2)},{type:"header3",elemToHtml:ff(3)},{type:"header4",elemToHtml:ff(4)},{type:"header5",elemToHtml:ff(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:df(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:df(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:df(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:df(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:df(5)}],menus:[jre,Pre,Ire,Nre,Rre,Lre],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=Ye(E.nodes(n,{match:function(o){return A.getNodeType(o).startsWith("header")},universal:!0}),1)[0];r&&A.isSelectionAtLineEnd(e,r[1])?I.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},n}},Ls=Object.assign,YO=Object.defineProperty,zre=me([].concat),XO=!Ls||Ct(function(){if(to&&Ls({b:1},Ls(YO({},"a",{enumerable:!0,get:function(){YO(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(o){t[o]=o}),Ls({},e)[n]!=7||bl(Ls({},t)).join("")!=r})?function(e,t){for(var n=Kp(e),r=arguments.length,o=1,i=SN.f,a=pN.f;r>o;)for(var u,s=im(arguments[o++]),l=i?zre(bl(s),i(s)):bl(s),c=l.length,f=0;c>f;)u=l[f++],to&&!Tt(a,s,u)||(n[u]=s[u]);return n}:Ls;function es(e,t){e.data==null&&(e.data={});var n=e.data;n.style==null&&(n.style={}),Object.assign(n.style,t)}en({target:"Object",stat:!0,forced:Object.assign!==XO},{assign:XO});var $re={selector:"font",preParseHtml:function(e){var t=k(e);if(yc(t)!=="font")return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}},XN=function(){function e(){this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(t,n){},e.prototype.getValue=function(t){var n=this.mark,r=E.marks(t);return r&&r[n]?r[n]:""},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){return t.selection==null||!!Ye(E.nodes(t,{match:function(n){return A.getNodeType(n)==="pre"||!!E.isVoid(t,n)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(t){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(),t.selection!=null)){var f=k(c).attr("data-value");f==="0"?E.removeMark(t,n):E.addMark(t,n,f)}}),this.$content=r}var o=this.$content;if(o==null)return document.createElement("ul");o.empty();var i=this.getValue(t),a=t.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=Q("color.default")),n==="bgColor"&&(u=Q("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]},e}(),Hre=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Q("color.color"),n.iconSvg=Gne,n.mark="color",n}return bt(t,e),t}(XN),Ure=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Q("color.bgColor"),n.iconSvg=qne,n.mark="bgColor",n}return bt(t,e),t}(XN),JO=["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)"],Vre={renderStyle:function(e,t){var n=e,r=n.color,o=n.bgColor,i=t;return r&&es(i,{color:r}),o&&es(i,{backgroundColor:o}),i},styleToHtml:function(e,t){if(!oe.isText(e))return t;var n,r=e,o=r.color,i=r.bgColor;return o||i?((tD(t)||yc(n=k(t))!=="span")&&(n=k("<span>"+t+"</span>")),o&&n.css("color",o),i&&n.css("background-color",i),mc(n)):t},preParseHtml:[$re],parseStyleHtml:function(e,t,n){var r=k(e);if(!oe.isText(t))return t;var o=t,i=Zr(r,"color");i&&(o.color=i);var a=Zr(r,"background-color");return a||(a=Zr(r,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new Hre},config:{colors:JO}},{key:"bgColor",factory:function(){return new Ure},config:{colors:JO}}]},Wre=/^(?:\w+:)?\/\/(\S+)$/,Gre=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,qre=/^[^\s\.]+\.\S{2,}$/,Kre=DN.includes;function cm(e){return e===void 0&&(e="r"),e+"-"+yP()}function nD(e){return e.replace(/</g,"<").replace(/>/g,">")}function JN(e,t,n,r){return Ra(this,void 0,void 0,function(){var o,i;return La(this,function(a){switch(a.label){case 0:return(o=t.getMenuConfig(e).checkLink)?[4,o(n,r)]:[3,2];case 1:if(typeof(i=a.sent())=="string")return t.alert(i,"error"),[2,!1];if(i==null)return[2,!1];a.label=2;case 2:return[2,!0]}})})}function ZN(e,t,n){return Ra(this,void 0,void 0,function(){var r;return La(this,function(o){switch(o.label){case 0:return(r=t.getMenuConfig(e).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}})})}function rD(e){return e.selection==null||!!A.getSelectedElems(e).some(function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0})}function e2(e,t){return{type:"link",url:nD(e),children:t?[{text:t}]:[]}}function QN(e,t,n){return Ra(this,void 0,void 0,function(){var r,o,i;return La(this,function(a){switch(a.label){case 0:return n?(t||(t=n),e.restoreSelection(),rD(e)?[2]:[4,JN("insertLink",e,t,n)]):[2];case 1:return a.sent()?[4,ZN("insertLink",e,n)]:[2];case 2:return r=a.sent(),(o=e.selection)==null||(R.isCollapsed(o)?(e.insertText(" "),i=e2(r,t),I.insertNodes(e,i),e.insertFragment([{text:" "}])):E.string(e,o)!==t?(e.deleteFragment(),i=e2(r,t),I.insertNodes(e,i)):(i=e2(r),I.wrapNodes(e,i,{split:!0}),I.collapse(e,{edge:"end"}))),[2]}})})}en({target:"Array",proto:!0},{includes:function(e){return Kre(this,e,arguments.length>1?arguments[1]:void 0)}}),PN("includes");var Yre={type:"link",renderElem:function(e,t,n){var r=e,o=r.url,i=r.target;return be("a",{href:o,target:i===void 0?"_blank":i},t)}},Xre={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=k(e);return(t=t.filter(function(o){return!!oe.isText(o)||!!n.isInline(o)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"link",url:r.attr("href")||"",target:r.attr("target")||"",children:t}}};function t2(){return cm("w-e-insert-link")}var Jre=function(){function e(){this.title=Q("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=t2(),this.urlInputId=t2(),this.buttonId=t2()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){return rD(t)},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var n=t.selection,r=this,o=r.textInputId,i=r.urlInputId,a=r.buttonId,u=Ye(nr(Q("link.text"),o),2),s=u[0],l=k(u[1]),c=Ye(nr(Q("link.url"),i),2),f=c[0],p=k(c[1]),d=Ye(pc(a,Q("common.ok")),1)[0];if(this.$content==null){var m=k("<div></div>");m.on("click","#"+a,function(y){y.preventDefault();var h=m.find("#"+o).val(),b=m.find("#"+i).val();QN(t,h,b),t.hidePanelOrModal()}),this.$content=m}var g=this.$content;if(g.empty(),g.append(s),g.append(f),g.append(d),n==null||R.isCollapsed(n))l.val("");else{var v=E.string(t,n);l.val(v)}return p.val(""),setTimeout(function(){l.focus()}),g[0]},e}();function ZO(){return cm("w-e-update-link")}var Zre=function(){function e(){this.title=Q("link.edit"),this.iconSvg=HN,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=ZO(),this.buttonId=ZO()}return e.prototype.getSelectedLinkElem=function(t){var n=A.getSelectedNodeByType(t,"link");return n??null},e.prototype.getValue=function(t){var n=this.getSelectedLinkElem(t);return n&&n.url||""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedLinkElem(t)==null},e.prototype.getModalPositionNode=function(t){return A.getSelectedNodeByType(t,"link")},e.prototype.getModalContentElem=function(t){var n=this.urlInputId,r=this.buttonId,o=Ye(nr(Q("link.url"),n),2),i=o[0],a=k(o[1]),u=Ye(pc(r,Q("common.ok")),1)[0];if(this.$content==null){var s=k("<div></div>");s.on("click","button",function(f){f.preventDefault(),t.restoreSelection();var p=A.getSelectedNodeByType(t,"link"),d=p?Z.string(p):"",m=s.find("#"+n).val();(function(g,v,y){Ra(this,void 0,void 0,function(){var h,b;return La(this,function(w){switch(w.label){case 0:return y?[4,JN("editLink",g,v,y)]:[2];case 1:return w.sent()?[4,ZN("editLink",g,y)]:[2];case 2:return h=w.sent(),b={url:nD(h)},I.setNodes(g,b,{match:function(D){return A.checkNodeType(D,"link")}}),[2]}})})})(t,d,m),t.hidePanelOrModal()}),this.$content=s}var l=this.$content;l.empty(),l.append(i),l.append(u);var c=this.getValue(t);return a.val(c),setTimeout(function(){a.focus()}),l[0]},e}(),Qre=function(){function e(){this.title=Q("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 e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||A.getSelectedNodeByType(t,"link")==null},e.prototype.exec=function(t,n){this.isDisabled(t)||I.unwrapNodes(t,{match:function(r){return A.checkNodeType(r,"link")}})},e}(),eoe=function(){function e(){this.title=Q("link.view"),this.iconSvg=UN,this.tag="button"}return e.prototype.getSelectedLinkElem=function(t){var n=A.getSelectedNodeByType(t,"link");return n??null},e.prototype.getValue=function(t){var n=this.getSelectedLinkElem(t);return n&&n.url||""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedLinkElem(t)==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){if(!n||typeof n!="string")throw new Error("View link failed, link url is '"+n+"'");window.open(n,"_blank")}},e}(),QO={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},toe={renderElems:[Yre],elemsToHtml:[{type:"link",elemToHtml:function(e,t){var n=e,r=n.url,o=n.target;return'<a href="'+r+'" target="'+(o===void 0?"_blank":o)+'">'+t+"</a>"}}],parseElemsHtml:[Xre],menus:[{key:"insertLink",factory:function(){return new Jre},config:QO},{key:"editLink",factory:function(){return new Zre},config:QO},{key:"unLink",factory:function(){return new Qre}},{key:"viewLink",factory:function(){return new eoe}}],editorPlugin:function(e){var t=e.isInline,n=e.insertData,r=e.normalizeNode;e.insertNode,e.insertText;var o=e;return o.isInline=function(i){return i.type==="link"||t(i)},o.insertData=function(i){var a=i.getData("text/plain");if(function(l){if(typeof l!="string")return!1;var c=l.match(Wre);if(!c)return!1;var f=c[1];return!(!f||!Gre.test(f)&&!qre.test(f))}(a)){if(!rD(o)){var u=o.selection;if(u!=null){var s=E.string(o,u);QN(o,s,a)}}}else n(i)},o.normalizeNode=function(i){var a=Ye(i,2),u=a[0],s=a[1];return A.getNodeType(u)!=="link"?r([u,s]):Z.string(u)===""?I.removeNodes(o,{at:s}):r([u,s])},o}},noe=me(1 .valueOf),roe=xe.RangeError,ooe=xe.RangeError,eR=xe.String,tR=Math.floor,l6=me(function(e){var t=Et(Pr(this)),n="",r=vc(e);if(r<0||r==1/0)throw roe("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n}),eB=me("".slice),pf=me(1 .toFixed),cl=function(e,t,n){return t===0?n:t%2==1?cl(e,t-1,n*e):cl(e*e,t/2,n)},Ms=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=tR(o/1e7)},n2=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=tR(r/t),r=r%t*1e7},tB=function(e){for(var t=6,n="";--t>=0;)if(n!==""||t===0||e[t]!==0){var r=eR(e[t]);n=n===""?r:n+l6("0",7-r.length)+r}return n};function nB(e,t){return"w-e-image-container-"+A.findKey(e,t).id}en({target:"Number",proto:!0,forced:Ct(function(){return pf(8e-5,3)!=="0.000"||pf(.9,0)!=="1"||pf(1.255,2)!=="1.25"||pf(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!Ct(function(){pf({})})},{toFixed:function(e){var t,n,r,o,i=noe(this),a=vc(e),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw ooe("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return eR(i);if(i<0&&(s="-",i=-i),i>1e-21)if(n=(t=function(c){for(var f=0,p=c;p>=4096;)f+=12,p/=4096;for(;p>=2;)f+=1,p/=2;return f}(i*cl(2,69,1))-69)<0?i*cl(2,-t,1):i/cl(2,t,1),n*=4503599627370496,(t=52-t)>0){for(Ms(u,0,n),r=a;r>=7;)Ms(u,1e7,0),r-=7;for(Ms(u,cl(10,r,1),0),r=t-1;r>=23;)n2(u,1<<23),r-=23;n2(u,1<<r),Ms(u,1,1),n2(u,2),l=tB(u)}else Ms(u,0,n),Ms(u,1<<-t,0),l=tB(u)+l6("0",a);return a>0?s+((o=l.length)<=a?"0."+l6("0",a-o)+l:eB(l,0,o-a)+"."+eB(l,o-a)):s+l}});var ioe={type:"image",renderElem:function(e,t,n){var r=e,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,m=d===void 0?"":d,g=A.isNodeSelected(n,e),v={};p&&(v.width="100%"),m&&(v.height="100%");var y=be("img",{style:v,src:o,alt:a,"data-href":s}),h=n.isDisabled();return g&&!h?function(b,w,D,S){var C=k("body"),O=nB(b,w),F=S.width,L=S.height,H=0,M=0,K=0,V=!1,G=null;function q(ae){G=function(){var j=k("#"+O);if(j.length===0)throw new Error("Cannot find image container elem");return j}(),H=ae;var B=G.find("img");if(B.length===0)throw new Error("Cannot find image elem");M=B.width(),K=B.height(),C.on("mousemove",re),C.on("mouseup",le);var x=A.getHoverbar(b);x&&x.hideAndClean()}var re=Ku(function(ae){ae.preventDefault();var B=ae.clientX,x=M+(V?H-B:B-H),j=K*(x/M);G!=null&&(x<=15||j<=15||(G.css("width",x+"px"),G.css("height",j+"px")))},100);function le(ae){if(C.off("mousemove",re),G!=null){var B=G.width().toFixed(2),x=G.height().toFixed(2),j={style:Aa(Aa({},w.style),{width:B+"px",height:x+"px"})};I.setNodes(b,j,{at:A.findPath(b,w)}),C.off("mouseup",le)}}var se={};return F&&(se.width=F),L&&(se.height=L),be("div",{id:O,style:se,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(ae){var B=k(ae.target);B.hasClass("w-e-image-dragger")&&(ae.preventDefault(),(B.hasClass("left-top")||B.hasClass("left-bottom"))&&(V=!0),q(ae.clientX))}}},D,be("div",{className:"w-e-image-dragger left-top"}),be("div",{className:"w-e-image-dragger right-top"}),be("div",{className:"w-e-image-dragger left-bottom"}),be("div",{className:"w-e-image-dragger right-bottom"}))}(n,e,y,{width:p,height:m}):function(b,w,D,S){var C=S.width,O=S.height,F={};return C&&(F.width=C),O&&(F.height=O),be("div",{id:nB(b,w),style:F,className:"w-e-image-container"},D)}(n,e,y,{width:p,height:m})}},aoe={selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=k(e),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:Zr(r,"width"),height:Zr(r,"height")},children:[{text:""}]}}};function nR(e,t,n,r,o){return r===void 0&&(r=""),o===void 0&&(o=""),Ra(this,void 0,void 0,function(){var i,a;return La(this,function(u){switch(u.label){case 0:return(i=t.getMenuConfig(e).checkImage)?[4,i(n,r,o)]:[3,2];case 1:if(typeof(a=u.sent())=="string")return t.alert(a,"error"),[2,!1];if(a==null)return[2,!1];u.label=2;case 2:return[2,!0]}})})}function rR(e,t,n){return Ra(this,void 0,void 0,function(){var r;return La(this,function(o){switch(o.label){case 0:return(r=t.getMenuConfig(e).parseImageSrc)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}})})}function _u(e,t,n,r){return n===void 0&&(n=""),r===void 0&&(r=""),Ra(this,void 0,void 0,function(){var o,i,a;return La(this,function(u){switch(u.label){case 0:return[4,nR("insertImage",e,t,n,r)];case 1:return u.sent()?[4,rR("insertImage",e,t)]:[2];case 2:return o=u.sent(),i={type:"image",src:nD(o),href:r,alt:n,style:{},children:[{text:""}]},e.selection===null&&e.restoreSelection(),A.getSelectedNodeByType(e,"image")&&e.move(1),fm(e)||(I.insertNodes(e,i),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}})})}function fm(e){var t=e.selection;return t==null||!R.isCollapsed(t)||!!Ye(E.nodes(e,{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(e,n)},universal:!0}),1)[0]}function o0(){return cm("w-e-insert-image")}var uoe=function(){function e(){this.title=Q("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=o0(),this.altInputId=o0(),this.hrefInputId=o0(),this.buttonId=o0()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){return fm(t)},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var n=this,r=this,o=r.srcInputId,i=r.altInputId,a=r.hrefInputId,u=r.buttonId,s=Ye(nr(Q("image.src"),o),2),l=s[0],c=k(s[1]),f=Ye(nr(Q("image.desc"),i),2),p=f[0],d=k(f[1]),m=Ye(nr(Q("image.link"),a),2),g=m[0],v=k(m[1]),y=Ye(pc(u,Q("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(),S=h.find("#"+i).val().trim(),C=h.find("#"+a).val().trim();n.insertImage(t,D,S,C),t.hidePanelOrModal()}),this.$content=h}var b=this.$content;return b.empty(),b.append(l),b.append(p),b.append(g),b.append(y),c.val(""),d.val(""),v.val(""),setTimeout(function(){c.focus()}),b[0]},e.prototype.insertImage=function(t,n,r,o){r===void 0&&(r=""),o===void 0&&(o=""),n&&(t.restoreSelection(),this.isDisabled(t)||_u(t,n,r,o))},e}(),soe=function(){function e(){this.title=Q("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 e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||A.getSelectedNodeByType(t,"image")==null},e.prototype.exec=function(t,n){this.isDisabled(t)||I.removeNodes(t,{match:function(r){return A.checkNodeType(r,"image")}})},e}();function i0(){return cm("w-e-edit-image")}var loe=function(){function e(){this.title=Q("image.edit"),this.iconSvg=HN,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=i0(),this.altInputId=i0(),this.hrefInputId=i0(),this.buttonId=i0()}return e.prototype.getValue=function(t){return""},e.prototype.getImageNode=function(t){return A.getSelectedNodeByType(t,"image")},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!R.isCollapsed(n)||A.getSelectedNodeByType(t,"image")==null},e.prototype.getModalPositionNode=function(t){return this.getImageNode(t)},e.prototype.getModalContentElem=function(t){var n=this,r=this,o=r.srcInputId,i=r.altInputId,a=r.hrefInputId,u=r.buttonId,s=this.getImageNode(t);if(s==null)throw new Error("Not found selected image node");var l=Ye(nr(Q("image.src"),o),2),c=l[0],f=k(l[1]),p=Ye(nr(Q("image.desc"),i),2),d=p[0],m=k(p[1]),g=Ye(nr(Q("image.link"),a),2),v=g[0],y=k(g[1]),h=Ye(pc(u,Q("common.ok")),1)[0];if(this.$content==null){var b=k("<div></div>");b.on("click","#"+u,function(H){H.preventDefault();var M=b.find("#"+o).val(),K=b.find("#"+i).val(),V=b.find("#"+a).val();n.updateImage(t,M,K,V),t.hidePanelOrModal()}),this.$content=b}var w=this.$content;w.empty(),w.append(c),w.append(d),w.append(v),w.append(h);var D=s,S=D.src,C=D.alt,O=C===void 0?"":C,F=D.href,L=F===void 0?"":F;return f.val(S),m.val(O),y.val(L),setTimeout(function(){f.focus()}),w[0]},e.prototype.updateImage=function(t,n,r,o,i){r===void 0&&(r=""),o===void 0&&(o=""),i===void 0&&(i={}),n&&(t.restoreSelection(),this.isDisabled(t)||function(a,u,s,l,c){s===void 0&&(s=""),l===void 0&&(l=""),c===void 0&&(c={}),Ra(this,void 0,void 0,function(){var f,p,d,m,g,v;return La(this,function(y){switch(y.label){case 0:return[4,nR("editImage",a,u,s,l)];case 1:return y.sent()?[4,rR("editImage",a,u)]:[2];case 2:return f=y.sent(),(p=A.getSelectedNodeByType(a,"image"))==null||(d=p.style,m={src:f,alt:s,href:l,style:Aa(Aa({},d===void 0?{}:d),c)},I.setNodes(a,m,{match:function(h){return A.checkNodeType(h,"image")}}),g=A.getSelectedNodeByType(a,"image"),(v=a.getMenuConfig("editImage").onUpdatedImage)&&v(g)),[2]}})})}(t,n,r,o,i))},e}(),coe=function(){function e(){this.title=Q("image.viewLink"),this.iconSvg=UN,this.tag="button"}return e.prototype.getValue=function(t){var n=A.getSelectedNodeByType(t,"image");return n&&n.href||""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!this.getValue(t)},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){if(!n||typeof n!="string")throw new Error("View image link failed, image.href is '"+n+"'");window.open(n,"_blank")}},e}(),oD=function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.getSelectedNode=function(t){return A.getSelectedNodeByType(t,"image")},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedNode(t)==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=this.getSelectedNode(t);if(r!=null){var o=A.getHoverbar(t);o&&o.hideAndClean();var i=r.style,a={style:Aa(Aa({},i===void 0?{}:i),{width:this.value,height:""})};I.setNodes(t,a,{match:function(u){return A.checkNodeType(u,"image")}})}}},e}(),foe=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="30%",n.value="30%",n}return bt(t,e),t}(oD),doe=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="50%",n.value="50%",n}return bt(t,e),t}(oD),poe=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="100%",n.value="100%",n}return bt(t,e),t}(oD),rB={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},hoe={renderElems:[ioe],elemsToHtml:[{type:"image",elemToHtml:function(e,t){var n=e,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,m="";return f&&(m+="width: "+f+";"),d&&(m+="height: "+d+";"),'<img src="'+r+'" alt="'+i+'" data-href="'+u+'" style="'+m+'"/>'}}],parseElemsHtml:[aoe],menus:[{key:"insertImage",factory:function(){return new uoe},config:rB},{key:"deleteImage",factory:function(){return new soe}},{key:"editImage",factory:function(){return new loe},config:rB},{key:"viewImageLink",factory:function(){return new coe}},{key:"imageWidth30",factory:function(){return new foe}},{key:"imageWidth50",factory:function(){return new doe}},{key:"imageWidth100",factory:function(){return new poe}}],editorPlugin:function(e){var t=e.isInline,n=e.isVoid;e.insertNode;var r=e;return r.isInline=function(o){return o.type==="image"||t(o)},r.isVoid=function(o){return o.type==="image"||n(o)},r}},goe={type:"todo",renderElem:function(e,t,n){var r=!1;n.isDisabled()&&(r=!0);var o=be("div",{style:{margin:"5px 0"}},be("span",{contentEditable:!1,style:{marginRight:"0.5em"}},be("input",{type:"checkbox",checked:e.checked,disabled:r,on:{change:function(i){var a=A.findPath(n,e),u={checked:i.target.checked};I.setNodes(n,u,{at:a})}}})),be("span",null,t));return o}},voe=function(){function e(){this.title=Q("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 e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!!A.getSelectedNodeByType(t,"todo")},e.prototype.isDisabled=function(t){return t.selection==null||!!A.getSelectedElems(t).some(function(n){if(E.isVoid(t,n)&&E.isBlock(t,n))return!0;var r=n.type;return!!["pre","table","list-item"].includes(r)||void 0})},e.prototype.exec=function(t,n){var r=this.isActive(t);I.setNodes(t,{type:r?"paragraph":"todo"})},e}(),moe={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var r=k(e);(t=t.filter(function(i){return!!oe.isText(i)||!!n.isInline(i)})).length===0&&(t=[{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:t}}},yoe={renderElems:[goe],elemsToHtml:[{type:"todo",elemToHtml:function(e,t){return'<div data-w-e-type="todo"><input type="checkbox" disabled '+(e.checked?"checked":"")+">"+t+"</div>"}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(e){var t=k(e).find("li"),n=k('<div data-w-e-type="todo"></div>'),r=t.find("input[type]");return n.append(r),t.children()[0].remove(),n[0].innerHTML=n[0].innerHTML+t[0].innerHTML,n[0]}}],parseElemsHtml:[moe],menus:[{key:"todo",factory:function(){return new voe}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(r){var o=e.selection;if(o&&R.isCollapsed(o)){var i=A.getSelectedNodeByType(e,"todo");if(i&&Z.string(i).length===0)return void I.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(r)},n}},boe={type:"blockquote",renderElem:function(e,t,n){return be("blockquote",null,t)}},woe={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=k(e);return(t=t.filter(function(o){return!!oe.isText(o)||!!n.isInline(o)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},Eoe=function(){function e(){this.title=Q("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 e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!!A.getSelectedNodeByType(t,"blockquote")},e.prototype.isDisabled=function(t){return t.selection==null||!Ye(E.nodes(t,{match:function(n){var r=A.getNodeType(n);return r==="paragraph"||r==="blockquote"},universal:!0,mode:"highest"}),1)[0]},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=this.isActive(t)?"paragraph":"blockquote";I.setNodes(t,{type:r},{mode:"highest"})}},e}(),Doe={key:"blockquote",factory:function(){return new Eoe}},Coe=me([].slice),Soe=X8("slice"),xoe=dr("species"),r2=xe.Array,Aoe=Math.max;en({target:"Array",proto:!0,forced:!Soe},{slice:function(e,t){var n,r,o,i=hc(this),a=sm(i),u=tp(e,a),s=tp(t===void 0?a:t,a);if(Cv(i)&&(n=i.constructor,(Y8(n)&&(n===r2||Cv(n.prototype))||Cr(n)&&(n=n[xoe])===null)&&(n=void 0),n===r2||n===void 0))return Coe(i,u,s);for(r=new(n===void 0?r2:n)(Aoe(s-u,0)),o=0;u<s;u++,o++)u in i&&NN(r,o,i[u]);return r.length=o,r}});var Ooe={renderElems:[boe],elemsToHtml:[{type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}}],parseElemsHtml:[woe],menus:[Doe],editorPlugin:function(e){var t=e.insertBreak,n=e.insertText,r=e;return r.insertBreak=function(){var o=r.selection;if(o==null)return t();var i=Ye(E.nodes(e,{match:function(c){return A.checkNodeType(c,"blockquote")},universal:!0}),1)[0];if(!i)return t();var a=i[0],u=A.findPath(e,a),s=E.end(e,u);if(ke.equals(s,o.focus)){var l=Z.string(a);if(l&&l.slice(-1)===`
- `)return e.deleteBackward("character"),void I.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n(`
- `)},r}},Boe=function(){function e(){this.title=Q("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 e.prototype.exec=function(t,n){},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!!Ye(E.nodes(t,{match:function(n){return A.getNodeType(n)==="pre"||!!E.isVoid(t,n)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(t){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();t.insertText(u)}}),this.$content=n}var r=this.$content;if(r==null)return document.createElement("ul");r.empty();var o=t.getMenuConfig("emotion").emotions;return(o===void 0?[]:o).forEach(function(i){var a=k("<li>"+i+"</li>");r.append(a)}),r[0]},e}(),koe={menus:[{key:"emotion",factory:function(){return new Boe},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},Foe={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},Toe={selector:"font",preParseHtml:function(e){var t=k(e);if(yc(t)!=="font")return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",Foe[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},_oe=me("".indexOf);en({target:"String",proto:!0,forced:!GN("includes")},{includes:function(e){return!!~_oe(Et(Pr(this)),Et(WN(e)),arguments.length>1?arguments[1]:void 0)}});var Fi,og,a0=function(e){return e&&e.Math==Math&&e},Fe=a0(typeof globalThis=="object"&&globalThis)||a0(typeof window=="object"&&window)||a0(typeof self=="object"&&self)||a0(typeof bv=="object"&&bv)||function(){return this}()||Function("return this")(),iD=Function.prototype,oB=iD.apply,joe=iD.bind,iB=iD.call,oR=typeof Reflect=="object"&&Reflect.apply||(joe?iB.bind(oB):function(){return iB.apply(oB,arguments)}),iR=Function.prototype,c6=iR.bind,f6=iR.call,Poe=c6&&c6.bind(f6),_t=c6?function(e){return e&&Poe(f6,e)}:function(e){return e&&function(){return f6.apply(e,arguments)}},gn=function(e){return typeof e=="function"},lr=function(e){try{return!!e()}catch{return!0}},Wn=!lr(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),hf=Function.prototype.call,qr=hf.bind?hf.bind(hf):function(){return hf.apply(hf,arguments)},aB={}.propertyIsEnumerable,uB=Object.getOwnPropertyDescriptor,Ioe=uB&&!aB.call({1:2},1)?function(e){var t=uB(this,e);return!!t&&t.enumerable}:aB,aD={f:Ioe},ts=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Noe=_t({}.toString),Roe=_t("".slice),ju=function(e){return Roe(Noe(e),8,-1)},o2=Fe.Object,Loe=_t("".split),aR=lr(function(){return!o2("z").propertyIsEnumerable(0)})?function(e){return ju(e)=="String"?Loe(e,""):o2(e)}:o2,Moe=Fe.TypeError,uD=function(e){if(e==null)throw Moe("Can't call method on "+e);return e},Io=function(e){return aR(uD(e))},Sr=function(e){return typeof e=="object"?e!==null:gn(e)},br={},sB=function(e){return gn(e)?e:void 0},Qp=function(e,t){return arguments.length<2?sB(br[e])||sB(Fe[e]):br[e]&&br[e][t]||Fe[e]&&Fe[e][t]},uR=_t({}.isPrototypeOf),i2=Qp("navigator","userAgent")||"",lB=Fe.process,cB=Fe.Deno,fB=lB&&lB.versions||cB&&cB.version,dB=fB&&fB.v8;dB&&(og=(Fi=dB.split("."))[0]>0&&Fi[0]<4?1:+(Fi[0]+Fi[1])),!og&&i2&&(!(Fi=i2.match(/Edge\/(\d+)/))||Fi[1]>=74)&&(Fi=i2.match(/Chrome\/(\d+)/))&&(og=+Fi[1]);var Av=og,ho=!!Object.getOwnPropertySymbols&&!lr(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Av&&Av<41}),sD=ho&&!Symbol.sham&&typeof Symbol.iterator=="symbol",zoe=Fe.Object,wl=sD?function(e){return typeof e=="symbol"}:function(e){var t=Qp("Symbol");return gn(t)&&uR(t.prototype,zoe(e))},$oe=Fe.String,Hoe=Fe.TypeError,sR=function(e){if(gn(e))return e;throw Hoe(function(t){try{return $oe(t)}catch{return"Object"}}(e)+" is not a function")},Uoe=Fe.TypeError,Voe=Object.defineProperty,la=Fe["__core-js_shared__"]||function(e,t){try{Voe(Fe,e,{value:t,configurable:!0,writable:!0})}catch{Fe[e]=t}return t}("__core-js_shared__",{}),gs=om(function(e){(e.exports=function(t,n){return la[t]||(la[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Woe=Fe.Object,eh=function(e){return Woe(uD(e))},Goe=_t({}.hasOwnProperty),Ke=Object.hasOwn||function(e,t){return Goe(eh(e),t)},qoe=0,Koe=Math.random(),Yoe=_t(1 .toString),Ov=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Yoe(++qoe+Koe,36)},gf=gs("wks"),Pu=Fe.Symbol,pB=Pu&&Pu.for,Xoe=sD?Pu:Pu&&Pu.withoutSetter||Ov,pr=function(e){if(!Ke(gf,e)||!ho&&typeof gf[e]!="string"){var t="Symbol."+e;ho&&Ke(Pu,e)?gf[e]=Pu[e]:gf[e]=sD&&pB?pB(t):Xoe(t)}return gf[e]},Joe=Fe.TypeError,Zoe=pr("toPrimitive"),bc=function(e){var t=function(n,r){if(!Sr(n)||wl(n))return n;var o,i,a=(o=n[Zoe])==null?void 0:sR(o);if(a){if(r===void 0&&(r="default"),i=qr(a,n,r),!Sr(i)||wl(i))return i;throw Joe("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(u,s){var l,c;if(s==="string"&&gn(l=u.toString)&&!Sr(c=qr(l,u))||gn(l=u.valueOf)&&!Sr(c=qr(l,u))||s!=="string"&&gn(l=u.toString)&&!Sr(c=qr(l,u)))return c;throw Uoe("Can't convert object to primitive value")}(n,r)}(e,"string");return wl(t)?t:t+""},d6=Fe.document,Qoe=Sr(d6)&&Sr(d6.createElement),lR=function(e){return Qoe?d6.createElement(e):{}},cR=!Wn&&!lr(function(){return Object.defineProperty(lR("div"),"a",{get:function(){return 7}}).a!=7}),hB=Object.getOwnPropertyDescriptor,lD={f:Wn?hB:function(e,t){if(e=Io(e),t=bc(t),cR)try{return hB(e,t)}catch{}if(Ke(e,t))return ts(!qr(aD.f,e,t),e[t])}},eie=/#|\.prototype\./,th=function(e,t){var n=nie[tie(e)];return n==oie||n!=rie&&(gn(t)?lr(t):!!t)},tie=th.normalize=function(e){return String(e).replace(eie,".").toLowerCase()},nie=th.data={},rie=th.NATIVE="N",oie=th.POLYFILL="P",iie=th,gB=_t(_t.bind),fR=function(e,t){return sR(e),t===void 0?e:gB?gB(e,t):function(){return e.apply(t,arguments)}},aie=Fe.String,uie=Fe.TypeError,ns=function(e){if(Sr(e))return e;throw uie(aie(e)+" is not an object")},sie=Fe.TypeError,vB=Object.defineProperty,vs={f:Wn?vB:function(e,t,n){if(ns(e),t=bc(t),ns(n),cR)try{return vB(e,t,n)}catch{}if("get"in n||"set"in n)throw sie("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},vo=Wn?function(e,t,n){return vs.f(e,t,ts(1,n))}:function(e,t,n){return e[t]=n,e},lie=lD.f,cie=function(e){var t=function(n,r,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,o)}return oR(e,this,arguments)};return t.prototype=e.prototype,t},Ui=function(e,t){var n,r,o,i,a,u,s,l,c=e.target,f=e.global,p=e.stat,d=e.proto,m=f?Fe:p?Fe[c]:(Fe[c]||{}).prototype,g=f?br:br[c]||vo(br,c,{})[c],v=g.prototype;for(o in t)n=!iie(f?o:c+(p?".":"#")+o,e.forced)&&m&&Ke(m,o),a=g[o],n&&(u=e.noTargetGet?(l=lie(m,o))&&l.value:m[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?fR(i,Fe):e.wrap&&n?cie(i):d&&gn(i)?_t(i):i,(e.sham||i&&i.sham||a&&a.sham)&&vo(s,"sham",!0),vo(g,o,s),d&&(Ke(br,r=c+"Prototype")||vo(br,r,{}),vo(br[r],o,i),e.real&&v&&!v[o]&&vo(v,o,i)))},Bv=Array.isArray||function(e){return ju(e)=="Array"},fie=Math.ceil,die=Math.floor,cD=function(e){var t=+e;return t!=t||t===0?0:(t>0?die:fie)(t)},pie=Math.min,dm=function(e){return(t=e.length)>0?pie(cD(t),9007199254740991):0;var t},p6=function(e,t,n){var r=bc(t);r in e?vs.f(e,r,ts(0,n)):e[r]=n},dR={};dR[pr("toStringTag")]="z";var fD=String(dR)==="[object z]",hie=pr("toStringTag"),gie=Fe.Object,vie=ju(function(){return arguments}())=="Arguments",pm=fD?ju:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(t=gie(e),hie))=="string"?n:vie?ju(t):(r=ju(t))=="Object"&&gn(t.callee)?"Arguments":r},mie=_t(Function.toString);gn(la.inspectSource)||(la.inspectSource=function(e){return mie(e)});var pR=la.inspectSource,hR=function(){},yie=[],gR=Qp("Reflect","construct"),dD=/^\s*(?:class|function)\b/,bie=_t(dD.exec),wie=!dD.exec(hR),vf=function(e){if(!gn(e))return!1;try{return gR(hR,yie,e),!0}catch{return!1}},Eie=!gR||lr(function(){var e;return vf(vf.call)||!vf(Object)||!vf(function(){e=!0})||e})?function(e){if(!gn(e))return!1;switch(pm(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return wie||!!bie(dD,pR(e))}:vf,Die=pr("species"),mB=Fe.Array,vR=function(e,t){return new(function(n){var r;return Bv(n)&&(r=n.constructor,(Eie(r)&&(r===mB||Bv(r.prototype))||Sr(r)&&(r=r[Die])===null)&&(r=void 0)),r===void 0?mB:r}(e))(t===0?0:t)},Cie=pr("species"),mR=pr("isConcatSpreadable"),yB=Fe.TypeError,Sie=Av>=51||!lr(function(){var e=[];return e[mR]=!1,e.concat()[0]!==e}),xie=Av>=51||!lr(function(){var e=[];return(e.constructor={})[Cie]=function(){return{foo:1}},e.concat(Boolean).foo!==1}),Aie=function(e){if(!Sr(e))return!1;var t=e[mR];return t!==void 0?!!t:Bv(e)};Ui({target:"Array",proto:!0,forced:!Sie||!xie},{concat:function(e){var t,n,r,o,i,a=eh(this),u=vR(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(Aie(i=t===-1?a:arguments[t])){if(s+(o=dm(i))>9007199254740991)throw yB("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&p6(u,s,i[n])}else{if(s>=9007199254740991)throw yB("Maximum allowed index exceeded");p6(u,s++,i)}return u.length=s,u}});var u0,Oie=Fe.String,kv=function(e){if(pm(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Oie(e)},Bie=Math.max,kie=Math.min,h6=function(e,t){var n=cD(e);return n<0?Bie(n+t,0):kie(n,t)},bB=function(e){return function(t,n,r){var o,i=Io(t),a=dm(i),u=h6(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},Fie={includes:bB(!0),indexOf:bB(!1)},nh={},Tie=Fie.indexOf,wB=_t([].push),yR=function(e,t){var n,r=Io(e),o=0,i=[];for(n in r)!Ke(nh,n)&&Ke(r,n)&&wB(i,n);for(;t.length>o;)Ke(r,n=t[o++])&&(~Tie(i,n)||wB(i,n));return i},Fv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],pD=Object.keys||function(e){return yR(e,Fv)},_ie=Wn?Object.defineProperties:function(e,t){ns(e);for(var n,r=Io(t),o=pD(t),i=o.length,a=0;i>a;)vs.f(e,n=o[a++],r[n]);return e},jie=Qp("document","documentElement"),EB=gs("keys"),hm=function(e){return EB[e]||(EB[e]=Ov(e))},bR=hm("IE_PROTO"),a2=function(){},wR=function(e){return"<script>"+e+"<\/script>"},DB=function(e){e.write(wR("")),e.close();var t=e.parentWindow.Object;return e=null,t},ig=function(){try{u0=new ActiveXObject("htmlfile")}catch{}var e,t;ig=typeof document<"u"?document.domain&&u0?DB(u0):((t=lR("iframe")).style.display="none",jie.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(wR("document.F=Object")),e.close(),e.F):DB(u0);for(var n=Fv.length;n--;)delete ig.prototype[Fv[n]];return ig()};nh[bR]=!0;var Tv,vd,_v,rs=Object.create||function(e,t){var n;return e!==null?(a2.prototype=ns(e),n=new a2,a2.prototype=null,n[bR]=e):n=ig(),t===void 0?n:_ie(n,t)},Pie=Fv.concat("length","prototype"),ER={f:Object.getOwnPropertyNames||function(e){return yR(e,Pie)}},Iie=Fe.Array,Nie=Math.max,CB=ER.f,SB=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],DR={f:function(e){return SB&&ju(e)=="Window"?function(t){try{return CB(t)}catch{return function(n,r,o){for(var i=dm(n),a=h6(void 0,i),u=h6(i,i),s=Iie(Nie(u-a,0)),l=0;a<u;a++,l++)p6(s,l,n[a]);return s.length=l,s}(SB)}}(e):CB(Io(e))}},u2={f:Object.getOwnPropertySymbols},Rie=_t([].slice),Yl=function(e,t,n,r){r&&r.enumerable?e[t]=n:vo(e,t,n)},hD={f:pr},Lie=vs.f,It=function(e){var t=br.Symbol||(br.Symbol={});Ke(t,e)||Lie(t,e,{value:hD.f(e)})},Mie=fD?{}.toString:function(){return"[object "+pm(this)+"]"},zie=vs.f,xB=pr("toStringTag"),jv=function(e,t,n,r){if(e){var o=n?e:e.prototype;Ke(o,xB)||zie(o,xB,{configurable:!0,value:t}),r&&!fD&&vo(o,"toString",Mie)}},AB=Fe.WeakMap,$ie=gn(AB)&&/native code/.test(pR(AB)),g6=Fe.TypeError,Hie=Fe.WeakMap;if($ie||la.state){var Qa=la.state||(la.state=new Hie),Uie=_t(Qa.get),OB=_t(Qa.has),Vie=_t(Qa.set);Tv=function(e,t){if(OB(Qa,e))throw new g6("Object already initialized");return t.facade=e,Vie(Qa,e,t),t},vd=function(e){return Uie(Qa,e)||{}},_v=function(e){return OB(Qa,e)}}else{var zs=hm("state");nh[zs]=!0,Tv=function(e,t){if(Ke(e,zs))throw new g6("Object already initialized");return t.facade=e,vo(e,zs,t),t},vd=function(e){return Ke(e,zs)?e[zs]:{}},_v=function(e){return Ke(e,zs)}}var wc={set:Tv,get:vd,has:_v,enforce:function(e){return _v(e)?vd(e):Tv(e,{})},getterFor:function(e){return function(t){var n;if(!Sr(t)||(n=vd(t)).type!==e)throw g6("Incompatible receiver, "+e+" required");return n}}},BB=_t([].push),Ti=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var p,d,m=eh(s),g=aR(m),v=fR(l,c),y=dm(g),h=0,b=f||vR,w=t?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in g)&&(d=v(p=g[h],h,m),e))if(t)w[h]=d;else if(d)switch(e){case 3:return!0;case 5:return p;case 6:return h;case 2:BB(w,p)}else switch(e){case 4:return!1;case 7:BB(w,p)}return i?-1:r||o?o:w}},gm=[Ti(0),Ti(1),Ti(2),Ti(3),Ti(4),Ti(5),Ti(6),Ti(7)][0],Mn=hm("hidden"),kB=pr("toPrimitive"),Wie=wc.set,FB=wc.getterFor("Symbol"),Kr=Object.prototype,Gi=Fe.Symbol,Zi=Gi&&Gi.prototype,TB=Fe.TypeError,s2=Fe.QObject,mf=Qp("JSON","stringify"),CR=lD.f,qi=vs.f,SR=DR.f,Gie=aD.f,xR=_t([].push),ui=gs("symbols"),rh=gs("op-symbols"),l2=gs("string-to-symbol-registry"),c2=gs("symbol-to-string-registry"),qie=gs("wks"),f2=!s2||!s2.prototype||!s2.prototype.findChild,v6=Wn&&lr(function(){return rs(qi({},"a",{get:function(){return qi(this,"a",{value:7}).a}})).a!=7})?function(e,t,n){var r=CR(Kr,t);r&&delete Kr[t],qi(e,t,n),r&&e!==Kr&&qi(Kr,t,r)}:qi,d2=function(e,t){var n=ui[e]=rs(Zi);return Wie(n,{type:"Symbol",tag:e,description:t}),Wn||(n.description=t),n},Pv=function(e,t,n){e===Kr&&Pv(rh,t,n),ns(e);var r=bc(t);return ns(n),Ke(ui,r)?(n.enumerable?(Ke(e,Mn)&&e[Mn][r]&&(e[Mn][r]=!1),n=rs(n,{enumerable:ts(0,!1)})):(Ke(e,Mn)||qi(e,Mn,ts(1,{})),e[Mn][r]=!0),v6(e,r,n)):qi(e,r,n)},_B=function(e,t){ns(e);var n=Io(t),r=pD(n).concat(m6(n));return gm(r,function(o){Wn&&!qr(AR,n,o)||Pv(e,o,n[o])}),e},AR=function(e){var t=bc(e),n=qr(Gie,this,t);return!(this===Kr&&Ke(ui,t)&&!Ke(rh,t))&&(!(n||!Ke(this,t)||!Ke(ui,t)||Ke(this,Mn)&&this[Mn][t])||n)},jB=function(e,t){var n=Io(e),r=bc(t);if(n!==Kr||!Ke(ui,r)||Ke(rh,r)){var o=CR(n,r);return!o||!Ke(ui,r)||Ke(n,Mn)&&n[Mn][r]||(o.enumerable=!0),o}},PB=function(e){var t=SR(Io(e)),n=[];return gm(t,function(r){Ke(ui,r)||Ke(nh,r)||xR(n,r)}),n},m6=function(e){var t=e===Kr,n=SR(t?rh:Io(e)),r=[];return gm(n,function(o){!Ke(ui,o)||t&&!Ke(Kr,o)||xR(r,ui[o])}),r};if(ho||(Zi=(Gi=function(){if(uR(Zi,this))throw TB("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==void 0?kv(arguments[0]):void 0,t=Ov(e),n=function(r){this===Kr&&qr(n,rh,r),Ke(this,Mn)&&Ke(this[Mn],t)&&(this[Mn][t]=!1),v6(this,t,ts(1,r))};return Wn&&f2&&v6(Kr,t,{configurable:!0,set:n}),d2(t,e)}).prototype,Yl(Zi,"toString",function(){return FB(this).tag}),Yl(Gi,"withoutSetter",function(e){return d2(Ov(e),e)}),aD.f=AR,vs.f=Pv,lD.f=jB,ER.f=DR.f=PB,u2.f=m6,hD.f=function(e){return d2(pr(e),e)},Wn&&qi(Zi,"description",{configurable:!0,get:function(){return FB(this).description}})),Ui({global:!0,wrap:!0,forced:!ho,sham:!ho},{Symbol:Gi}),gm(pD(qie),function(e){It(e)}),Ui({target:"Symbol",stat:!0,forced:!ho},{for:function(e){var t=kv(e);if(Ke(l2,t))return l2[t];var n=Gi(t);return l2[t]=n,c2[n]=t,n},keyFor:function(e){if(!wl(e))throw TB(e+" is not a symbol");if(Ke(c2,e))return c2[e]},useSetter:function(){f2=!0},useSimple:function(){f2=!1}}),Ui({target:"Object",stat:!0,forced:!ho,sham:!Wn},{create:function(e,t){return t===void 0?rs(e):_B(rs(e),t)},defineProperty:Pv,defineProperties:_B,getOwnPropertyDescriptor:jB}),Ui({target:"Object",stat:!0,forced:!ho},{getOwnPropertyNames:PB,getOwnPropertySymbols:m6}),Ui({target:"Object",stat:!0,forced:lr(function(){u2.f(1)})},{getOwnPropertySymbols:function(e){return u2.f(eh(e))}}),mf){var Kie=!ho||lr(function(){var e=Gi();return mf([e])!="[null]"||mf({a:e})!="{}"||mf(Object(e))!="{}"});Ui({target:"JSON",stat:!0,forced:Kie},{stringify:function(e,t,n){var r=Rie(arguments),o=t;if((Sr(t)||e!==void 0)&&!wl(e))return Bv(t)||(t=function(i,a){if(gn(o)&&(a=qr(o,this,i,a)),!wl(a))return a}),r[1]=t,oR(mf,null,r)}})}if(!Zi[kB]){var Yie=Zi.valueOf;Yl(Zi,kB,function(e){return qr(Yie,this)})}jv(Gi,"Symbol"),nh[Mn]=!0,It("asyncIterator"),It("hasInstance"),It("isConcatSpreadable"),It("iterator"),It("match"),It("matchAll"),It("replace"),It("search"),It("species"),It("split"),It("toPrimitive"),It("toStringTag"),It("unscopables"),jv(Fe.JSON,"JSON",!0);var Qi,IB,NB,Xie=br.Symbol,Iu={},OR=Function.prototype,Jie=Wn&&Object.getOwnPropertyDescriptor,p2=Ke(OR,"name"),Zie={EXISTS:p2,PROPER:p2&&(function(){}).name==="something",CONFIGURABLE:p2&&(!Wn||Wn&&Jie(OR,"name").configurable)},Qie=!lr(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),RB=hm("IE_PROTO"),y6=Fe.Object,eae=y6.prototype,b6=Qie?y6.getPrototypeOf:function(e){var t=eh(e);if(Ke(t,RB))return t[RB];var n=t.constructor;return gn(n)&&t instanceof n?n.prototype:t instanceof y6?eae:null},w6=pr("iterator"),BR=!1;[].keys&&("next"in(NB=[].keys())?(IB=b6(b6(NB)))!==Object.prototype&&(Qi=IB):BR=!0);var tae=Qi==null||lr(function(){var e={};return Qi[w6].call(e)!==e});Qi=tae?{}:rs(Qi),gn(Qi[w6])||Yl(Qi,w6,function(){return this});var kR={IteratorPrototype:Qi,BUGGY_SAFARI_ITERATORS:BR},nae=kR.IteratorPrototype,rae=function(){return this};Fe.String,Fe.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var e={};try{_t(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(e,[]),e instanceof Array}catch{}}();var oae=Zie.PROPER,s0=kR.BUGGY_SAFARI_ITERATORS,h2=pr("iterator"),iae=function(){return this},FR=function(e,t,n,r,o,i,a){(function(y,h,b,w){var D=h+" Iterator";y.prototype=rs(nae,{next:ts(1,b)}),jv(y,D,!1,!0),Iu[D]=rae})(n,t,r);var u,s,l,c=function(y){if(y===o&&g)return g;if(!s0&&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=t+" Iterator",p=!1,d=e.prototype,m=d[h2]||d["@@iterator"]||o&&d[o],g=!s0&&m||c(o),v=t=="Array"&&d.entries||m;if(v&&(u=b6(v.call(new e)))!==Object.prototype&&u.next&&(jv(u,f,!0,!0),Iu[f]=iae),oae&&o=="values"&&m&&m.name!=="values"&&(p=!0,g=function(){return qr(m,this)}),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(s0||p||!(l in d))&&Yl(d,l,s[l]);else Ui({target:t,proto:!0,forced:s0||p},s);return a&&d[h2]!==g&&Yl(d,h2,g,{name:o}),Iu[t]=g,s},aae=wc.set,uae=wc.getterFor("Array Iterator");FR(Array,"Array",function(e,t){aae(this,{type:"Array Iterator",target:Io(e),index:0,kind:t})},function(){var e=uae(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),Iu.Arguments=Iu.Array;var LB=pr("toStringTag");for(var g2 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 MB=Fe[g2],v2=MB&&MB.prototype;v2&&pm(v2)!==LB&&vo(v2,LB,g2),Iu[g2]=Iu.Array}var sae=Xie;It("asyncDispose"),It("dispose"),It("matcher"),It("metadata"),It("observable"),It("patternMatch"),It("replaceAll");var l0=sae,lae=_t("".charAt),zB=_t("".charCodeAt),cae=_t("".slice),fae=function(e){return function(t,n){var r,o,i=kv(uD(t)),a=cD(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=zB(i,a))<55296||r>56319||a+1===u||(o=zB(i,a+1))<56320||o>57343?e?lae(i,a):r:e?cae(i,a,a+2):o-56320+(r-55296<<10)+65536}},dae=fae(!0),pae=wc.set,hae=wc.getterFor("String Iterator");FR(String,"String",function(e){pae(this,{type:"String Iterator",string:kv(e),index:0})},function(){var e,t=hae(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=dae(n,r),t.index+=e.length,{value:e,done:!1})});var gae=hD.f("iterator"),vae=om(function(e){function t(n){return typeof l0=="function"&&typeof gae=="symbol"?(e.exports=t=function(r){return typeof r},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(r){return r&&typeof l0=="function"&&r.constructor===l0&&r!==l0.prototype?"symbol":typeof r},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}),TR=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(vae),mae=um.EXISTS,yae=gc.f,_R=Function.prototype,bae=me(_R.toString),jR=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,wae=me(jR.exec);to&&!mae&&yae(_R,"name",{configurable:!0,get:function(){try{return wae(jR,bae(this))[1]}catch{return""}}});var PR=function(){function e(){this.tag="select",this.width=80}return e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var n=this.mark,r=E.marks(t);return r&&r[n]?r[n]:""},e.prototype.isDisabled=function(t){return t.selection==null||(this.mark,!!Ye(E.nodes(t,{match:function(n){return A.getNodeType(n)==="pre"||!!E.isVoid(t,n)},universal:!0}),1)[0])},e.prototype.exec=function(t,n){var r=this.mark;n?t.addMark(r,n):t.removeMark(r)},e}(),Eae=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Q("fontSize.title"),n.iconSvg=Kne,n.mark="fontSize",n}return bt(t,e),t.prototype.getOptions=function(n){var r=[],o=n.getMenuConfig(this.mark).fontSizeList,i=o===void 0?[]:o;r.push({text:Q("fontSize.default"),value:""}),i.forEach(function(u){if(typeof u=="string")r.push({text:u,value:u});else if(TR(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},t}(PR),Dae=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Q("fontFamily.title"),n.iconSvg=Yne,n.mark="fontFamily",n.selectPanelWidth=150,n}return bt(t,e),t.prototype.getOptions=function(n){var r=[],o=n.getMenuConfig(this.mark).fontFamilyList,i=o===void 0?[]:o;r.push({text:Q("fontFamily.default"),value:""}),i.forEach(function(u){if(typeof u=="string")r.push({text:u,value:u,styleForRenderMenuList:{"font-family":u}});else if(TR(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},t}(PR),Cae={renderStyle:function(e,t){var n=e,r=n.fontSize,o=n.fontFamily,i=t;return r&&es(i,{fontSize:r}),o&&es(i,{fontFamily:o}),i},styleToHtml:function(e,t){if(!oe.isText(e))return t;var n,r=e,o=r.fontSize,i=r.fontFamily;return o||i?((tD(t)||yc(n=k(t))!=="span")&&(n=k("<span>"+t+"</span>")),o&&n.css("font-size",o),i&&n.css("font-family",i),mc(n)):t},preParseHtml:[Toe],parseStyleHtml:function(e,t,n){var r=k(e);if(!oe.isText(t))return t;var o=t,i=n.getMenuConfig("fontSize").fontSizeList,a=i===void 0?[]:i,u=Zr(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=Zr(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 Eae},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 Dae},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},Sae={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=k(e),n=Zr(t,"padding-left");return/\dem/.test(n)&&t.css("text-indent","2em"),/\dpx/.test(n)&&parseInt(n,10)%32==0&&t.css("text-indent","2em"),t[0]}},IR=function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){var n=Ye(E.nodes(t,{match:function(o){return!!o.indent},universal:!0}),1),r=n[0];return r==null?"":Ye(r,1)[0].indent||""},e.prototype.isActive=function(t){return!1},e.prototype.getMatchNode=function(t){var n=Ye(E.nodes(t,{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]},e}(),xae=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Q("indent.decrease"),n.iconSvg=Xne,n}return bt(t,e),t.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!r.indent},t.prototype.exec=function(n,r){I.setNodes(n,{indent:null},{match:function(o){return ce.isElement(o)}})},t}(IR),Aae=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Q("indent.increase"),n.iconSvg=Jne,n}return bt(t,e),t.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!!r.indent},t.prototype.exec=function(n,r){I.setNodes(n,{indent:"2em"},{match:function(o){return ce.isElement(o)},mode:"highest"})},t}(IR),Oae={renderStyle:function(e,t){if(!ce.isElement(e))return t;var n=e.indent,r=t;return n&&es(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!ce.isElement(e))return t;var n=e.indent;if(!n)return t;var r=k(t);return r.css("text-indent",n),mc(r)},preParseHtml:[Sae],parseStyleHtml:function(e,t,n){var r=k(e);if(!ce.isElement(t))return t;var o=t,i=Zr(r,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new Aae}},{key:"delIndent",factory:function(){return new xae}}]},vm=function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.getMatchNode=function(t){var n=Ye(E.nodes(t,{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]},e.prototype.isDisabled=function(t){return t.selection==null||!!A.getSelectedElems(t).some(function(n){if(E.isVoid(t,n)&&E.isBlock(t,n))return!0;var r=n.type;return!!["pre","code"].includes(r)||void 0})},e}(),Bae=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Q("justify.left"),n.iconSvg=Zne,n}return bt(t,e),t.prototype.exec=function(n,r){I.setNodes(n,{textAlign:"left"},{match:function(o){return ce.isElement(o)&&!n.isInline(o)}})},t}(vm),kae=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Q("justify.right"),n.iconSvg=Qne,n}return bt(t,e),t.prototype.exec=function(n,r){I.setNodes(n,{textAlign:"right"},{match:function(o){return ce.isElement(o)&&!n.isInline(o)}})},t}(vm),Fae=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Q("justify.center"),n.iconSvg=ere,n}return bt(t,e),t.prototype.exec=function(n,r){I.setNodes(n,{textAlign:"center"},{match:function(o){return ce.isElement(o)&&!n.isInline(o)}})},t}(vm),Tae=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Q("justify.justify"),n.iconSvg=tre,n}return bt(t,e),t.prototype.exec=function(n,r){I.setNodes(n,{textAlign:"justify"},{match:function(o){return ce.isElement(o)&&!n.isInline(o)}})},t}(vm),_ae={renderStyle:function(e,t){if(!ce.isElement(e))return t;var n=e.textAlign,r=t;return n&&es(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!ce.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=k(t);return r.css("text-align",n),mc(r)},parseStyleHtml:function(e,t,n){var r=k(e);if(!ce.isElement(t))return t;var o=t,i=Zr(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new Bae}},{key:"justifyRight",factory:function(){return new kae}},{key:"justifyCenter",factory:function(){return new Fae}},{key:"justifyJustify",factory:function(){return new Tae}}]},jae=function(){function e(){this.title=Q("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 e.prototype.getOptions=function(t){var n=[],r=t.getMenuConfig("lineHeight").lineHeightList,o=r===void 0?[]:r;n.push({text:Q("lineHeight.default"),value:""}),o.forEach(function(a){n.push({text:a,value:a})});var i=this.getValue(t);return n.forEach(function(a){a.value===i?a.selected=!0:delete a.selected}),n},e.prototype.getMatchNode=function(t){var n=Ye(E.nodes(t,{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]},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var n=this.getMatchNode(t);return n==null?"":ce.isElement(n)&&n.lineHeight||""},e.prototype.isDisabled=function(t){return t.selection==null||this.getMatchNode(t)==null},e.prototype.exec=function(t,n){I.setNodes(t,{lineHeight:n.toString()},{mode:"highest"})},e}(),Pae={renderStyle:function(e,t){if(!ce.isElement(e))return t;var n=e.lineHeight,r=t;return n&&es(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!ce.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=k(t);return r.css("line-height",n),mc(r)},parseStyleHtml:function(e,t,n){var r=k(e);if(!ce.isElement(t))return t;var o=t,i=n.getMenuConfig("lineHeight").lineHeightList,a=i===void 0?[]:i,u=Zr(r,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new jae},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},Iae=function(){function e(){this.title=Q("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 e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null},e.prototype.exec=function(t,n){typeof t.redo=="function"&&t.redo()},e}(),Nae=function(){function e(){this.title=Q("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 e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null},e.prototype.exec=function(t,n){typeof t.undo=="function"&&t.undo()},e}(),Rae={menus:[{key:"redo",factory:function(){return new Iae}},{key:"undo",factory:function(){return new Nae}}]},Lae={type:"divider",renderElem:function(e,t,n){return $l("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:A.isNodeSelected(n,e)?"true":""},style:{},on:{mousedown:function(r){return r.preventDefault()}}},[$l("hr")])}},Mae=function(){function e(){this.title=Q("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 e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!!A.getSelectedElems(t).some(function(n){if(t.isVoid(n))return!0;var r=A.getNodeType(n);return r==="table"||r==="pre"||void 0})},e.prototype.exec=function(t,n){I.insertNodes(t,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}(),zae={renderElems:[Lae],elemsToHtml:[{type:"divider",elemToHtml:function(e,t){return"<hr/>"}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new Mae}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(o){return o.type==="divider"||t(o)},r.normalizeNode=function(o){var i=Ye(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}},$ae=lm.map;en({target:"Array",proto:!0,forced:!X8("map")},{map:function(e){return $ae(this,e,arguments.length>1?arguments[1]:void 0)}});var Hae=me([].join),Uae=im!=Object,Vae=MN("join",",");en({target:"Array",proto:!0,forced:Uae||!Vae},{join:function(e){return Hae(hc(this),e===void 0?",":e)}});var Wae=function(){function e(){this.title=Q("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 e.prototype.getSelectCodeElem=function(t){var n=A.getSelectedNodeByType(t,"code");if(n==null)return null;var r=A.getParentNode(t,n);return r==null||A.getNodeType(r)!=="pre"?null:n},e.prototype.getValue=function(t){var n=this.getSelectCodeElem(t);return n==null?"":n.language||""},e.prototype.isActive=function(t){return!!this.getSelectCodeElem(t)},e.prototype.isDisabled=function(t){if(t.selection==null)return!0;var n=A.getSelectedElems(t);return!!n.some(function(r){return t.isVoid(r)})||!n.some(function(r){var o=A.getNodeType(r);if(o==="pre"||o==="paragraph")return!0})},e.prototype.exec=function(t,n){this.isActive(t)?this.changeToPlainText(t):this.changeToCodeBlock(t,n.toString())},e.prototype.changeToPlainText=function(t){var n=this.getSelectCodeElem(t);if(n!=null){var r=Z.string(n);I.removeNodes(t,{mode:"highest"});var o=r.split(`
- `).map(function(i){return{type:"paragraph",children:[{text:i}]}});I.insertNodes(t,o,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(t,n){var r,o,i=[],a=E.nodes(t,{match:function(f){return t.children.includes(f)},universal:!0});try{for(var u=LN(a),s=u.next();!s.done;s=u.next()){var l=Ye(s.value,1)[0];l&&i.push(Z.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(t,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:n,children:[{text:i.join(`
- `)}]}]};I.insertNodes(t,c,{mode:"highest"})},e}(),Gae={key:"codeBlock",factory:function(){return new Wae}};en({target:"String",proto:!0,forced:td("anchor")},{anchor:function(e){return ed(this,"a","name",e)}}),Q8("match",function(e,t,n){return[function(r){var o=Pr(this),i=r==null?void 0:am(r,e);return i?Tt(i,r,o):new RegExp(r)[e](Et(o))},function(r){var o=rr(this),i=Et(r),a=n(t,o,i);if(a.done)return a.value;if(!o.global)return rp(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=rp(o,i))!==null;){var f=Et(s[0]);l[c]=f,f===""&&(o.lastIndex=eD(i,Yp(o.lastIndex),u)),c++}return c===0?null:l}]});var qae={type:"pre",renderElem:function(e,t,n){return be("pre",null,t)}},Kae={type:"code",renderElem:function(e,t,n){return be("code",null,t)}},Yae={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=k(e);return(t=t.filter(function(o){return A.getNodeType(o)==="code"})).length===0&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter(function(o){return A.getNodeType(o)==="code"})}}},Xae={menus:[Gae],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var o=e;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=Z.string(l),d=f.anchor.offset,m=p.slice(0,d).split(`
- `),g=m.length;return g===0?"":m[g-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 t()},o.normalizeNode=function(i){var a=Ye(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:[qae,Kae],elemsToHtml:[{type:"code",elemToHtml:function(e,t){return"<code>"+t+"</code>"}},{type:"pre",elemToHtml:function(e,t){return"<pre>"+t+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(e){var t=k(e);if(yc(t)!=="code")return e;var n=t.find("xmp");if(n.length===0)return e;var r=n.text();return n.remove(),t.text(r),t[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(e,t,n){return{type:"code",language:"",children:[{text:k(e)[0].textContent||""}]}}},Yae]},Jae=function(){function e(){this.title=Q("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 e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return t.isFullScreen},e.prototype.isDisabled=function(t){return!1},e.prototype.exec=function(t,n){t.isFullScreen?t.unFullScreen():t.fullScreen()},e}(),Zae={menus:[{key:"fullScreen",factory:function(){return new Jae}}]},Qae=function(){function e(){this.title=Q("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 e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!!R.isExpanded(n)},e.prototype.exec=function(t,n){var r=t.selection;if(r!=null){var o=[r.anchor.path[0]];I.insertNodes(t,{type:"paragraph",children:[{text:""}]},{at:o}),t.select(E.start(t,o))}},e}(),eue=[dre,Vre,Cae,Oae,_ae,Pae,hoe,zae,koe,toe,Xae,Ooe,Mre,Ine,yoe,Rae,Zae,{menus:[{key:"enter",factory:function(){return new Qae}}]}];qn("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),qn("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var $B=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gD(e){var t={exports:{}};return e(t,t.exports),t.exports}var _i,ag,c0=function(e){return e&&e.Math==Math&&e},we=c0(typeof globalThis=="object"&&globalThis)||c0(typeof window=="object"&&window)||c0(typeof self=="object"&&self)||c0(typeof $B=="object"&&$B)||function(){return this}()||Function("return this")(),NR=Function.prototype,E6=NR.bind,D6=NR.call,tue=E6&&E6.bind(D6),Pe=E6?function(e){return e&&tue(D6,e)}:function(e){return e&&function(){return D6.apply(e,arguments)}},Ot=function(e){try{return!!e()}catch{return!0}},nue=Pe({}.toString),rue=Pe("".slice),ni=function(e){return rue(nue(e),8,-1)},m2=we.Object,oue=Pe("".split),RR=Ot(function(){return!m2("z").propertyIsEnumerable(0)})?function(e){return ni(e)=="String"?oue(e,""):m2(e)}:m2,iue=we.TypeError,mm=function(e){if(e==null)throw iue("Can't call method on "+e);return e},Ec=function(e){return RR(mm(e))},aue=Object.defineProperty,vD=function(e,t){try{aue(we,e,{value:t,configurable:!0,writable:!0})}catch{we[e]=t}return t},ca=we["__core-js_shared__"]||vD("__core-js_shared__",{}),mD=gD(function(e){(e.exports=function(t,n){return ca[t]||(ca[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),uue=we.Object,oh=function(e){return uue(mm(e))},sue=Pe({}.hasOwnProperty),nn=Object.hasOwn||function(e,t){return sue(oh(e),t)},lue=0,cue=Math.random(),fue=Pe(1 .toString),yD=function(e){return"Symbol("+(e===void 0?"":e)+")_"+fue(++lue+cue,36)},Bt=function(e){return typeof e=="function"},due=function(e){return Bt(e)?e:void 0},ih=function(e,t){return arguments.length<2?due(we[e]):we[e]&&we[e][t]},y2=ih("navigator","userAgent")||"",HB=we.process,UB=we.Deno,VB=HB&&HB.versions||UB&&UB.version,WB=VB&&VB.v8;WB&&(ag=(_i=WB.split("."))[0]>0&&_i[0]<4?1:+(_i[0]+_i[1])),!ag&&y2&&(!(_i=y2.match(/Edge\/(\d+)/))||_i[1]>=74)&&(_i=y2.match(/Chrome\/(\d+)/))&&(ag=+_i[1]);var f0,C6=ag,S6=!!Object.getOwnPropertySymbols&&!Ot(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&C6&&C6<41}),bD=S6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",yf=mD("wks"),Nu=we.Symbol,GB=Nu&&Nu.for,pue=bD?Nu:Nu&&Nu.withoutSetter||yD,mn=function(e){if(!nn(yf,e)||!S6&&typeof yf[e]!="string"){var t="Symbol."+e;S6&&nn(Nu,e)?yf[e]=Nu[e]:yf[e]=bD&&GB?GB(t):pue(t)}return yf[e]},At=function(e){return typeof e=="object"?e!==null:Bt(e)},hue=we.String,gue=we.TypeError,Kn=function(e){if(At(e))return e;throw gue(hue(e)+" is not an object")},Oa=!Ot(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),x6=we.document,vue=At(x6)&&At(x6.createElement),wD=function(e){return vue?x6.createElement(e):{}},LR=!Oa&&!Ot(function(){return Object.defineProperty(wD("div"),"a",{get:function(){return 7}}).a!=7}),bf=Function.prototype.call,tn=bf.bind?bf.bind(bf):function(){return bf.apply(bf,arguments)},Iv=Pe({}.isPrototypeOf),mue=we.Object,b2=bD?function(e){return typeof e=="symbol"}:function(e){var t=ih("Symbol");return Bt(t)&&Iv(t.prototype,mue(e))},yue=we.String,A6=function(e){try{return yue(e)}catch{return"Object"}},bue=we.TypeError,ED=function(e){if(Bt(e))return e;throw bue(A6(e)+" is not a function")},op=function(e,t){var n=e[t];return n==null?void 0:ED(n)},wue=we.TypeError,Eue=we.TypeError,Due=mn("toPrimitive"),DD=function(e){var t=function(n,r){if(!At(n)||b2(n))return n;var o,i=op(n,Due);if(i){if(r===void 0&&(r="default"),o=tn(i,n,r),!At(o)||b2(o))return o;throw Eue("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&Bt(s=a.toString)&&!At(l=tn(s,a))||Bt(s=a.valueOf)&&!At(l=tn(s,a))||u!=="string"&&Bt(s=a.toString)&&!At(l=tn(s,a)))return l;throw wue("Can't convert object to primitive value")}(n,r)}(e,"string");return b2(t)?t:t+""},Cue=we.TypeError,qB=Object.defineProperty,ms={f:Oa?qB:function(e,t,n){if(Kn(e),t=DD(t),Kn(n),LR)try{return qB(e,t,n)}catch{}if("get"in n||"set"in n)throw Cue("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Sue=Math.ceil,xue=Math.floor,ah=function(e){var t=+e;return t!=t||t===0?0:(t>0?xue:Sue)(t)},Aue=Math.max,Oue=Math.min,O6=function(e,t){var n=ah(e);return n<0?Aue(n+t,0):Oue(n,t)},Bue=Math.min,MR=function(e){return e>0?Bue(ah(e),9007199254740991):0},Dc=function(e){return MR(e.length)},KB=function(e){return function(t,n,r){var o,i=Ec(t),a=Dc(i),u=O6(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},zR={includes:KB(!0),indexOf:KB(!1)},ym={},kue=zR.indexOf,YB=Pe([].push),$R=function(e,t){var n,r=Ec(e),o=0,i=[];for(n in r)!nn(ym,n)&&nn(r,n)&&YB(i,n);for(;t.length>o;)nn(r,n=t[o++])&&(~kue(i,n)||YB(i,n));return i},Nv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Fue=Object.keys||function(e){return $R(e,Nv)},Tue=Oa?Object.defineProperties:function(e,t){Kn(e);for(var n,r=Ec(t),o=Fue(t),i=o.length,a=0;i>a;)ms.f(e,n=o[a++],r[n]);return e},_ue=ih("document","documentElement"),XB=mD("keys"),CD=function(e){return XB[e]||(XB[e]=yD(e))},HR=CD("IE_PROTO"),w2=function(){},UR=function(e){return"<script>"+e+"<\/script>"},JB=function(e){e.write(UR("")),e.close();var t=e.parentWindow.Object;return e=null,t},ug=function(){try{f0=new ActiveXObject("htmlfile")}catch{}var e,t;ug=typeof document<"u"?document.domain&&f0?JB(f0):((t=wD("iframe")).style.display="none",_ue.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(UR("document.F=Object")),e.close(),e.F):JB(f0);for(var n=Nv.length;n--;)delete ug.prototype[Nv[n]];return ug()};ym[HR]=!0;var SD=Object.create||function(e,t){var n;return e!==null?(w2.prototype=Kn(e),n=new w2,w2.prototype=null,n[HR]=e):n=ug(),t===void 0?n:Tue(n,t)},B6=mn("unscopables"),k6=Array.prototype;k6[B6]==null&&ms.f(k6,B6,{configurable:!0,value:SD(null)});var md=function(e){k6[B6][e]=!0},Xl={},jue=Pe(Function.toString);Bt(ca.inspectSource)||(ca.inspectSource=function(e){return jue(e)});var Rv,yd,Lv,xD=ca.inspectSource,ZB=we.WeakMap,VR=Bt(ZB)&&/native code/.test(xD(ZB)),bm=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},fa=Oa?function(e,t,n){return ms.f(e,t,bm(1,n))}:function(e,t,n){return e[t]=n,e},F6=we.TypeError,Pue=we.WeakMap;if(VR||ca.state){var eu=ca.state||(ca.state=new Pue),Iue=Pe(eu.get),QB=Pe(eu.has),Nue=Pe(eu.set);Rv=function(e,t){if(QB(eu,e))throw new F6("Object already initialized");return t.facade=e,Nue(eu,e,t),t},yd=function(e){return Iue(eu,e)||{}},Lv=function(e){return QB(eu,e)}}else{var $s=CD("state");ym[$s]=!0,Rv=function(e,t){if(nn(e,$s))throw new F6("Object already initialized");return t.facade=e,fa(e,$s,t),t},yd=function(e){return nn(e,$s)?e[$s]:{}},Lv=function(e){return nn(e,$s)}}var Ru,ek,tk,ko={set:Rv,get:yd,has:Lv,enforce:function(e){return Lv(e)?yd(e):Rv(e,{})},getterFor:function(e){return function(t){var n;if(!At(t)||(n=yd(t)).type!==e)throw F6("Incompatible receiver, "+e+" required");return n}}},nk={}.propertyIsEnumerable,rk=Object.getOwnPropertyDescriptor,Rue={f:rk&&!nk.call({1:2},1)?function(e){var t=rk(this,e);return!!t&&t.enumerable}:nk},ok=Object.getOwnPropertyDescriptor,WR={f:Oa?ok:function(e,t){if(e=Ec(e),t=DD(t),LR)try{return ok(e,t)}catch{}if(nn(e,t))return bm(!tn(Rue.f,e,t),e[t])}},GR=Function.prototype,Lue=Oa&&Object.getOwnPropertyDescriptor,E2=nn(GR,"name"),AD={EXISTS:E2,PROPER:E2&&(function(){}).name==="something",CONFIGURABLE:E2&&(!Oa||Oa&&Lue(GR,"name").configurable)},Co=gD(function(e){var t=AD.CONFIGURABLE,n=ko.get,r=ko.enforce,o=String(String).split("String");(e.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;Bt(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!nn(u,"name")||t&&u.name!==d)&&fa(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==we?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:fa(i,a,u)):f?i[a]=u:vD(a,u)})(Function.prototype,"toString",function(){return Bt(this)&&n(this).source||xD(this)})}),Mue=Nv.concat("length","prototype"),Mv={f:Object.getOwnPropertyNames||function(e){return $R(e,Mue)}},zue={f:Object.getOwnPropertySymbols},$ue=Pe([].concat),Hue=ih("Reflect","ownKeys")||function(e){var t=Mv.f(Kn(e)),n=zue.f;return n?$ue(t,n(e)):t},Uue=function(e,t){for(var n=Hue(t),r=ms.f,o=WR.f,i=0;i<n.length;i++){var a=n[i];nn(e,a)||r(e,a,o(t,a))}},Vue=/#|\.prototype\./,uh=function(e,t){var n=Gue[Wue(e)];return n==Kue||n!=que&&(Bt(t)?Ot(t):!!t)},Wue=uh.normalize=function(e){return String(e).replace(Vue,".").toLowerCase()},Gue=uh.data={},que=uh.NATIVE="N",Kue=uh.POLYFILL="P",T6=uh,Yue=WR.f,Ba=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?we:l?we[u]||vD(u,{}):(we[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Yue(n,r))&&a.value:n[r],!T6(s?r:u+(l?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;Uue(i,o)}(e.sham||o&&o.sham)&&fa(i,"sham",!0),Co(n,r,i,e)}},Xue=!Ot(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),ik=CD("IE_PROTO"),_6=we.Object,Jue=_6.prototype,zv=Xue?_6.getPrototypeOf:function(e){var t=oh(e);if(nn(t,ik))return t[ik];var n=t.constructor;return Bt(n)&&t instanceof n?n.prototype:t instanceof _6?Jue:null},j6=mn("iterator"),qR=!1;[].keys&&("next"in(tk=[].keys())?(ek=zv(zv(tk)))!==Object.prototype&&(Ru=ek):qR=!0);var Zue=Ru==null||Ot(function(){var e={};return Ru[j6].call(e)!==e});Zue&&(Ru={}),Bt(Ru[j6])||Co(Ru,j6,function(){return this});var OD={IteratorPrototype:Ru,BUGGY_SAFARI_ITERATORS:qR},Que=ms.f,ak=mn("toStringTag"),P6=function(e,t,n){e&&!nn(e=n?e:e.prototype,ak)&&Que(e,ak,{configurable:!0,value:t})},ese=OD.IteratorPrototype,tse=function(){return this},nse=we.String,rse=we.TypeError,$v=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Pe(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return Kn(r),function(i){if(typeof i=="object"||Bt(i))return i;throw rse("Can't set "+nse(i)+" as a prototype")}(o),t?e(r,o):r.__proto__=o,r}}():void 0),ose=AD.PROPER,ise=AD.CONFIGURABLE,uk=OD.IteratorPrototype,d0=OD.BUGGY_SAFARI_ITERATORS,wf=mn("iterator"),ase=function(){return this},KR=function(e,t,n,r,o,i,a){(function(y,h,b,w){var D=h+" Iterator";y.prototype=SD(ese,{next:bm(1,b)}),P6(y,D,!1),Xl[D]=tse})(n,t,r);var u,s,l,c=function(y){if(y===o&&g)return g;if(!d0&&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=t+" Iterator",p=!1,d=e.prototype,m=d[wf]||d["@@iterator"]||o&&d[o],g=!d0&&m||c(o),v=t=="Array"&&d.entries||m;if(v&&(u=zv(v.call(new e)))!==Object.prototype&&u.next&&(zv(u)!==uk&&($v?$v(u,uk):Bt(u[wf])||Co(u,wf,ase)),P6(u,f,!0)),ose&&o=="values"&&m&&m.name!=="values"&&(ise?fa(d,"name","values"):(p=!0,g=function(){return tn(m,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(d0||p||!(l in d))&&Co(d,l,s[l]);else Ba({target:t,proto:!0,forced:d0||p},s);return d[wf]!==g&&Co(d,wf,g,{name:o}),Xl[t]=g,s},use=ko.set,sse=ko.getterFor("Array Iterator"),nd=KR(Array,"Array",function(e,t){use(this,{type:"Array Iterator",target:Ec(e),index:0,kind:t})},function(){var e=sse(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values");Xl.Arguments=Xl.Array,md("keys"),md("values"),md("entries");var YR={};YR[mn("toStringTag")]="z";var BD=String(YR)==="[object z]",lse=mn("toStringTag"),cse=we.Object,fse=ni(function(){return arguments}())=="Arguments",wm=BD?ni:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(t=cse(e),lse))=="string"?n:fse?ni(t):(r=ni(t))=="Object"&&Bt(t.callee)?"Arguments":r},dse=BD?{}.toString:function(){return"[object "+wm(this)+"]"};BD||Co(Object.prototype,"toString",dse,{unsafe:!0});var pse=we.String,Ko=function(e){if(wm(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return pse(e)},hse=Pe("".charAt),sk=Pe("".charCodeAt),gse=Pe("".slice),lk=function(e){return function(t,n){var r,o,i=Ko(mm(t)),a=ah(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=sk(i,a))<55296||r>56319||a+1===u||(o=sk(i,a+1))<56320||o>57343?e?hse(i,a):r:e?gse(i,a,a+2):o-56320+(r-55296<<10)+65536}},XR={codeAt:lk(!1),charAt:lk(!0)},vse=XR.charAt,mse=ko.set,yse=ko.getterFor("String Iterator");KR(String,"String",function(e){mse(this,{type:"String Iterator",string:Ko(e),index:0})},function(){var e,t=yse(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=vse(n,r),t.index+=e.length,{value:e,done:!1})});var I6=function(e,t,n){for(var r in t)Co(e,r,t[r],n);return e},bse=we.Array,wse=Math.max,ck=Mv.f,fk=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Ese={f:function(e){return fk&&ni(e)=="Window"?function(t){try{return ck(t)}catch{return function(n,r,o){for(var i,a,u,s,l=Dc(n),c=O6(void 0,l),f=O6(l,l),p=bse(wse(f-c,0)),d=0;c<f;c++,d++)i=p,a=d,u=n[c],(s=DD(a))in i?ms.f(i,s,bm(0,u)):i[s]=u;return p.length=d,p}(fk)}}(e):ck(Ec(e))}},dk=Ot(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),p0=Object.isExtensible,yu=Ot(function(){p0(1)})||dk?function(e){return!!At(e)&&(!dk||ni(e)!="ArrayBuffer")&&(!p0||p0(e))}:p0,Dse=!Ot(function(){return Object.isExtensible(Object.preventExtensions({}))}),kD=gD(function(e){var t=ms.f,n=!1,r=yD("meta"),o=0,i=function(u){t(u,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var u=Mv.f,s=Pe([].splice),l={};l[r]=1,u(l).length&&(Mv.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},Ba({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Ese.f}))},fastKey:function(u,s){if(!At(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!nn(u,r)){if(!yu(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!nn(u,r)){if(!yu(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return Dse&&n&&yu(u)&&!nn(u,r)&&i(u),u}};ym[r]=!0}),pk=Pe(Pe.bind),FD=function(e,t){return ED(e),t===void 0?e:pk?pk(e,t):function(){return e.apply(t,arguments)}},Cse=mn("iterator"),Sse=Array.prototype,xse=mn("iterator"),hk=function(e){if(e!=null)return op(e,xse)||op(e,"@@iterator")||Xl[wm(e)]},Ase=we.TypeError,gk=function(e,t,n){var r,o;Kn(e);try{if(!(r=op(e,"return"))){if(t==="throw")throw n;return n}r=tn(r,e)}catch(i){o=!0,r=i}if(t==="throw")throw n;if(o)throw r;return Kn(r),n},Ose=we.TypeError,sg=function(e,t){this.stopped=e,this.result=t},vk=sg.prototype,JR=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,p=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),m=!(!n||!n.INTERRUPTED),g=FD(t,f),v=function(h){return r&&gk(r,"normal",h),new sg(!0,h)},y=function(h){return p?(Kn(h),m?g(h[0],h[1],v):g(h[0],h[1])):m?g(h,v):g(h)};if(d)r=e;else{if(!(o=hk(e)))throw Ose(A6(e)+" is not iterable");if((c=o)!==void 0&&(Xl.Array===c||Sse[Cse]===c)){for(i=0,a=Dc(e);a>i;i++)if((u=y(e[i]))&&Iv(vk,u))return u;return new sg(!1)}r=function(h,b){var w=arguments.length<2?hk(h):b;if(ED(w))return Kn(tn(w,h));throw Ase(A6(h)+" is not iterable")}(e,o)}for(s=r.next;!(l=tn(s,r)).done;){try{u=y(l.value)}catch(h){gk(r,"throw",h)}if(typeof u=="object"&&u&&Iv(vk,u))return u}return new sg(!1)},Bse=we.TypeError,ZR=function(e,t){if(Iv(t,e))return e;throw Bse("Incorrect invocation")},QR=mn("iterator"),eL=!1;try{var kse=0,mk={next:function(){return{done:!!kse++}},return:function(){eL=!0}};mk[QR]=function(){return this},Array.from(mk,function(){throw 2})}catch{}var N6=Array.isArray||function(e){return ni(e)=="Array"},tL=function(){},Fse=[],nL=ih("Reflect","construct"),TD=/^\s*(?:class|function)\b/,Tse=Pe(TD.exec),_se=!TD.exec(tL),Ef=function(e){if(!Bt(e))return!1;try{return nL(tL,Fse,e),!0}catch{return!1}},jse=!nL||Ot(function(){var e;return Ef(Ef.call)||!Ef(Object)||!Ef(function(){e=!0})||e})?function(e){if(!Bt(e))return!1;switch(wm(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return _se||!!Tse(TD,xD(e))}:Ef,Pse=mn("species"),yk=we.Array,rL=function(e,t){return new(function(n){var r;return N6(n)&&(r=n.constructor,(jse(r)&&(r===yk||N6(r.prototype))||At(r)&&(r=r[Pse])===null)&&(r=void 0)),r===void 0?yk:r}(e))(t===0?0:t)},bk=Pe([].push),ji=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var p,d,m=oh(s),g=RR(m),v=FD(l,c),y=Dc(g),h=0,b=f||rL,w=t?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in g)&&(d=v(p=g[h],h,m),e))if(t)w[h]=d;else if(d)switch(e){case 3:return!0;case 5:return p;case 6:return h;case 2:bk(w,p)}else switch(e){case 4:return!1;case 7:bk(w,p)}return i?-1:r||o?o:w}},_D={forEach:ji(0),map:ji(1),filter:ji(2),some:ji(3),every:ji(4),find:ji(5),findIndex:ji(6),filterReject:ji(7)},h0=kD.getWeakData,Ise=ko.set,Nse=ko.getterFor,Rse=_D.find,Lse=_D.findIndex,Mse=Pe([].splice),zse=0,g0=function(e){return e.frozen||(e.frozen=new oL)},oL=function(){this.entries=[]},D2=function(e,t){return Rse(e.entries,function(n){return n[0]===t})};oL.prototype={get:function(e){var t=D2(this,e);if(t)return t[1]},has:function(e){return!!D2(this,e)},set:function(e,t){var n=D2(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Lse(this.entries,function(n){return n[0]===e});return~t&&Mse(this.entries,t,1),!!~t}};var Df,iL={getConstructor:function(e,t,n,r){var o=e(function(s,l){ZR(s,i),Ise(s,{type:t,id:zse++,frozen:void 0}),l!=null&&JR(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=Nse(t),u=function(s,l,c){var f=a(s),p=h0(Kn(l),!0);return p===!0?g0(f).set(l,c):p[f.id]=c,s};return I6(i,{delete:function(s){var l=a(this);if(!At(s))return!1;var c=h0(s);return c===!0?g0(l).delete(s):c&&nn(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!At(s))return!1;var c=h0(s);return c===!0?g0(l).has(s):c&&nn(c,l.id)}}),I6(i,n?{get:function(s){var l=a(this);if(At(s)){var c=h0(s);return c===!0?g0(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}},v0=ko.enforce,$se=!we.ActiveXObject&&"ActiveXObject"in we,aL=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Hse=function(e,t,n){var r=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,i=r?"set":"add",a=we[e],u=a&&a.prototype,s=a,l={},c=function(v){var y=Pe(u[v]);Co(u,v,v=="add"?function(h){return y(this,h===0?0:h),this}:v=="delete"?function(h){return!(o&&!At(h))&&y(this,h===0?0:h)}:v=="get"?function(h){return o&&!At(h)?void 0:y(this,h===0?0:h)}:v=="has"?function(h){return!(o&&!At(h))&&y(this,h===0?0:h)}:function(h,b){return y(this,h===0?0:h,b),this})};if(T6(e,!Bt(a)||!(o||u.forEach&&!Ot(function(){new a().entries().next()}))))s=n.getConstructor(t,e,r,i),kD.enable();else if(T6(e,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=Ot(function(){f.has(1)}),m=function(v,y){if(!eL)return!1;var h=!1;try{var b={};b[QR]=function(){return{next:function(){return{done:h=!0}}}},function(w){new a(w)}(b)}catch{}return h}(),g=!o&&Ot(function(){for(var v=new a,y=5;y--;)v[i](y,y);return!v.has(-0)});m||((s=t(function(v,y){ZR(v,u);var h=function(b,w,D){var S,C;return $v&&Bt(S=w.constructor)&&S!==D&&At(C=S.prototype)&&C!==D.prototype&&$v(b,C),b}(new a,v,s);return y!=null&&JR(y,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(d||g)&&(c("delete"),c("has"),r&&c("get")),(g||p)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,Ba({global:!0,forced:s!=a},l),P6(s,e),o||n.setStrong(s,e,r),s}("WeakMap",aL,iL);if(VR&&$se){Df=iL.getConstructor(aL,"WeakMap",!0),kD.enable();var Cf=Hse.prototype,wk=Pe(Cf.delete),m0=Pe(Cf.has),Ek=Pe(Cf.get),Dk=Pe(Cf.set);I6(Cf,{delete:function(e){if(At(e)&&!yu(e)){var t=v0(this);return t.frozen||(t.frozen=new Df),wk(this,e)||t.frozen.delete(e)}return wk(this,e)},has:function(e){if(At(e)&&!yu(e)){var t=v0(this);return t.frozen||(t.frozen=new Df),m0(this,e)||t.frozen.has(e)}return m0(this,e)},get:function(e){if(At(e)&&!yu(e)){var t=v0(this);return t.frozen||(t.frozen=new Df),m0(this,e)?Ek(this,e):t.frozen.get(e)}return Ek(this,e)},set:function(e,t){if(At(e)&&!yu(e)){var n=v0(this);n.frozen||(n.frozen=new Df),m0(this,e)?Dk(this,e,t):n.frozen.set(e,t)}else Dk(this,e,t);return this}})}var uL={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},C2=wD("span").classList,Ck=C2&&C2.constructor&&C2.constructor.prototype,Use=Ck===Object.prototype?void 0:Ck,S2=mn("iterator"),Sk=mn("toStringTag"),x2=nd.values,sL=function(e,t){if(e){if(e[S2]!==x2)try{fa(e,S2,x2)}catch{e[S2]=x2}if(e[Sk]||fa(e,Sk,t),uL[t]){for(var n in nd)if(e[n]!==nd[n])try{fa(e,n,nd[n])}catch{e[n]=nd[n]}}}};for(var A2 in uL)sL(we[A2]&&we[A2].prototype,A2);sL(Use,"DOMTokenList");var R6=new WeakMap,Vse={type:"list-item",renderElem:function(e,t,n){R6.set(e,n);var r=e,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,m=d.type,g=d.level,v=g===void 0?0:g,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 S=P.previous(D),C=E.node(f,S);if(C==null)break;var O=C[0],F=O.level,L=F===void 0?0:F,H=O.type,M=O.ordered;if(H!==m||L<v)break;if(L===v){if(M!==h)break;b++}w=O,D=S}return b}(n,e);s=l+"."}else s=function(f){f===void 0&&(f=0);var p="";switch(f){case 0:p="•";break;case 1:p="◦";break;default:p="▪"}return p}(i);var c=function(f){var p,d=f.children||[],m=d.length;if(m===0)return"";for(var g=0;g<m&&!p;g++){var v=d[g];oe.isText(v)&&(p=v)}return p==null?"":p.color||""}(e);return be("div",{style:u},be("span",{contentEditable:!1,style:{marginRight:"0.5em",color:c},"data-w-e-reserve":!0},s),be("span",null,t))}},L6=function(e,t){return L6=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])},L6(e,t);/*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */};function lL(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}L6(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function xk(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function bd(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(t===void 0||t-- >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 Ak(e){return E.nodes(e,{at:e.selection||void 0,match:function(t){return A.findPath(e,t).length===1}})}var Wse=zR.includes;Ba({target:"Array",proto:!0},{includes:function(e){return Wse(this,e,arguments.length>1?arguments[1]:void 0)}}),md("includes");var Ok,O2,Gse=function(){var e=Kn(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},jD=we.RegExp,M6=Ot(function(){var e=jD("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),qse=M6||Ot(function(){return!jD("a","y").sticky}),Kse={BROKEN_CARET:M6||Ot(function(){var e=jD("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:qse,UNSUPPORTED_Y:M6},Yse=we.RegExp,Xse=Ot(function(){var e=Yse(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")}),Jse=we.RegExp,Zse=Ot(function(){var e=Jse("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Qse=ko.get,ele=mD("native-string-replace",String.prototype.replace),Hv=RegExp.prototype.exec,z6=Hv,tle=Pe("".charAt),nle=Pe("".indexOf),rle=Pe("".replace),B2=Pe("".slice),k2=(O2=/b*/g,tn(Hv,Ok=/a/,"a"),tn(Hv,O2,"a"),Ok.lastIndex!==0||O2.lastIndex!==0),Bk=Kse.BROKEN_CARET,F2=/()??/.exec("")[1]!==void 0;(k2||F2||Bk||Xse||Zse)&&(z6=function(e){var t,n,r,o,i,a,u,s=this,l=Qse(s),c=Ko(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=tn(z6,f,c),s.lastIndex=f.lastIndex,t;var p=l.groups,d=Bk&&s.sticky,m=tn(Gse,s),g=s.source,v=0,y=c;if(d&&(m=rle(m,"y",""),nle(m,"g")===-1&&(m+="g"),y=B2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&tle(c,s.lastIndex-1)!==`
- `)&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",m)),F2&&(n=new RegExp("^"+g+"$(?!\\s)",m)),k2&&(r=s.lastIndex),o=tn(Hv,d?n:s,y),d?o?(o.input=B2(o.input,v),o[0]=B2(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:k2&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),F2&&o&&o.length>1&&tn(ele,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=SD(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var Uv=z6;Ba({target:"RegExp",proto:!0,forced:/./.exec!==Uv},{exec:Uv});var cL=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(t){var n=this.type;return A.getSelectedNodeByType(t,n)},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){var n=this.getListNode(t);if(n==null)return!1;var r=n.ordered;return(r!==void 0&&r)===this.ordered},e.prototype.isDisabled=function(t){return t.selection==null||!!A.getSelectedElems(t).some(function(n){if(E.isVoid(t,n)&&E.isBlock(t,n))return!0;var r=n.type;return!!["pre","code","table"].includes(r)||void 0})},e.prototype.exec=function(t,n){this.isActive(t)?I.setNodes(t,{type:"paragraph",ordered:void 0,level:void 0}):I.setNodes(t,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),ole='<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>',ile='<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>',ale=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.ordered=!1,n.title=Q("listModule.unOrderedList"),n.iconSvg=ole,n}return lL(t,e),t}(cL),ule=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.ordered=!0,n.title=Q("listModule.orderedList"),n.iconSvg=ile,n}return lL(t,e),t}(cL),sle={key:"bulletedList",factory:function(){return new ale}},lle={key:"numberedList",factory:function(){return new ule}},kk=[],cle={type:"list-item",elemToHtml:function(e,t){var n="",r="",o=e.ordered,i=o!==void 0&&o?"ol":"ul",a=function(l){var c=R6.get(l);if(c==null)return 0;var f=l,p=f.type,d=f.ordered,m=d!==void 0&&d,g=f.level,v=g===void 0?0:g,y=A.findPath(c,l);if(y[0]===0)return v+1;var h=P.previous(y),b=E.node(c,h);if(!b)return 0;var w=bd(b,1)[0];if(A.getNodeType(w)!==p)return v+1;var D=w,S=D.ordered,C=S!==void 0&&S,O=D.level,F=O===void 0?0:O;return F<v?v-F:F>v?0:F===v?C===m?0:1:0}(e);if(a>0)for(var u=0;u<a;u++)n+="<"+i+">",kk.push(i);var s=function(l){var c=R6.get(l);if(c==null)return 0;var f=l,p=f.type,d=f.ordered,m=d!==void 0&&d,g=f.level,v=g===void 0?0:g,y=A.findPath(c,l);if(y[0]===c.children.length-1)return v+1;var h=P.next(y),b=E.node(c,h);if(!b)return 0;var w=bd(b,1)[0];if(A.getNodeType(w)!==p)return v+1;var D=w,S=D.ordered,C=S!==void 0&&S,O=D.level,F=O===void 0?0:O;return F<v?v-F:F>v?0:F===v?C===m?0:1:0}(e);if(s>0)for(u=0;u<s;u++)r+="</"+kk.pop()+">";return{html:"<li>"+t+"</li>",prefix:n,suffix:r}}},fle=mn("species"),dle=_D.filter,ple=C6>=51||!Ot(function(){var e=[];return(e.constructor={})[fle]=function(){return{foo:1}},e.filter(Boolean).foo!==1});Ba({target:"Array",proto:!0,forced:!ple},{filter:function(e){return dle(this,e,arguments.length>1?arguments[1]:void 0)}});var PD=Function.prototype,Fk=PD.apply,hle=PD.bind,Tk=PD.call,gle=typeof Reflect=="object"&&Reflect.apply||(hle?Tk.bind(Fk):function(){return Tk.apply(Fk,arguments)}),_k=(mn("species"),RegExp.prototype),vle=XR.charAt,mle=function(e,t,n){return t+(n?vle(e,t).length:1)},yle=Math.floor,T2=Pe("".charAt),ble=Pe("".replace),_2=Pe("".slice),wle=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Ele=/\$([$&'`]|\d{1,2})/g,Dle=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=Ele;return o!==void 0&&(o=oh(o),s=wle),ble(i,s,function(l,c){var f;switch(T2(c,0)){case"$":return"$";case"&":return e;case"`":return _2(t,0,n);case"'":return _2(t,a);case"<":f=o[_2(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=yle(p/10);return d===0?l:d<=u?r[d-1]===void 0?T2(c,1):r[d-1]+T2(c,1):l}f=r[p-1]}return f===void 0?"":f})},Cle=we.TypeError,Sle=function(e,t){var n=e.exec;if(Bt(n)){var r=tn(n,e,t);return r!==null&&Kn(r),r}if(ni(e)==="RegExp")return tn(Uv,e,t);throw Cle("RegExp#exec called on incompatible receiver")},$6=mn("replace"),xle=Math.max,Ale=Math.min,Ole=Pe([].concat),j2=Pe([].push),jk=Pe("".indexOf),Pk=Pe("".slice),Ble="a".replace(/./,"$0")==="$0",Ik=!!/./[$6]&&/./[$6]("a","$0")==="";(function(e,t,n,r){var o=mn(e),i=!Ot(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!Ot(function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=Pe(/./[o]),s=function(l,c,f){var p=Ik?"$":"$0";return[function(d,m){var g=mm(this),v=d==null?void 0:op(d,$6);return v?tn(v,d,g,m):tn(c,Ko(g),d,m)},function(d,m){var g=Kn(this),v=Ko(d);if(typeof m=="string"&&jk(m,p)===-1&&jk(m,"$<")===-1){var y=f(c,g,v,m);if(y.done)return y.value}var h=Bt(m);h||(m=Ko(m));var b=g.global;if(b){var w=g.unicode;g.lastIndex=0}for(var D=[];;){var S=Sle(g,v);if(S===null||(j2(D,S),!b))break;Ko(S[0])===""&&(g.lastIndex=mle(v,MR(g.lastIndex),w))}for(var C,O="",F=0,L=0;L<D.length;L++){for(var H=Ko((S=D[L])[0]),M=xle(Ale(ah(S.index),v.length),0),K=[],V=1;V<S.length;V++)j2(K,(C=S[V])===void 0?C:String(C));var G=S.groups;if(h){var q=Ole([H],K,M,v);G!==void 0&&j2(q,G);var re=Ko(gle(m,void 0,q))}else re=Dle(H,v,M,K,G,m);M>=F&&(O+=Pk(v,F,M)+re,F=M+H.length)}return O+Pk(v,F)}]}(0,""[e],function(l,c,f,p,d){var m=Pe(l),g=c.exec;return g===Uv||g===_k.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:m(f,c,p)}:{done:!1}});Co(String.prototype,e,s[0]),Co(_k,o,s[1])}})("replace",0,!!Ot(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!Ble||Ik);var kle=we.TypeError,fL=function(e,t,n,r,o,i,a,u){for(var s,l,c=o,f=0,p=!!a&&FD(a,u);f<r;){if(f in n){if(s=p?p(n[f],f,t):n[f],i>0&&N6(s))l=Dc(s),c=fL(e,t,s,l,c,i-1)-1;else{if(c>=9007199254740991)throw kle("Exceed the acceptable array length");e[c]=s}c++}f++}return c},Fle=fL;function P2(e){return e.length?e[0].tagName.toLowerCase():""}Ba({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=oh(this),n=Dc(t),r=rL(t,0);return r.length=Fle(r,t,t,n,0,e===void 0?1:ah(e)),r}}),md("flat"),Ba({global:!0},{globalThis:we}),Tr&&(k.fn.append=Tr),Fr&&(k.fn.attr=Fr),Nl&&(k.fn.parent=Nl);var Tle={renderElems:[Vse],editorPlugin:function(e){var t=e.deleteBackward,n=e.handleTab,r=e.normalizeNode,o=e;return o.deleteBackward=function(i){var a=o.selection;if(a!=null)if(R.isExpanded(a))t(i);else{var u=A.getSelectedNodeByType(o,"list-item");if(u!=null)if(a.focus.offset!==0)t(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 t(i)}else t(i)},o.handleTab=function(){var i,a,u,s,l=o.selection;if(l!=null){if(R.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(R.isExpanded(l)){var d=0,m=!1;try{for(var g=xk(Ak(o)),v=g.next();!v.done;v=g.next()){var y=bd(v.value,1)[0];A.getNodeType(y)==="list-item"?d++:m=!0}}catch(C){i={error:C}}finally{try{v&&!v.done&&(a=g.return)&&a.call(g)}finally{if(i)throw i.error}}if(m||d<=1)return void n();try{for(var h=xk(Ak(o)),b=h.next();!b.done;b=h.next()){var w=bd(b.value,2),D=(y=w[0],w[1]),S=y.level;p=S===void 0?0:S,I.setNodes(o,{level:p+1},{at:D})}}catch(C){u={error:C}}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=bd(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:[sle,lle],elemsToHtml:[cle],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(e,t,n){return t.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=k(e);(t=t.filter(function(a){return!!oe.isText(a)||!!n.isInline(a)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=function(a){return P2(a.parent())==="ol"}(r),i=function(a){for(var u=0,s=a.parent(),l=P2(s);l==="ul"||l==="ol";)l=P2(s=s.parent()),u++;return u-1}(r);return{type:"list-item",ordered:o,level:i,children:t}}}]},dL=as(function(e,t){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]",m="[object RegExp]",g="[object Set]",v="[object String]",y="[object Symbol]",h="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",D=/^\[object .+?Constructor\]$/,S=/^(?: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[b]=C[a]=C[w]=C[u]=C[s]=C[l]=C[c]=C[f]=C[p]=C[m]=C[g]=C[v]=C[h]=!1;var O=typeof st=="object"&&st&&st.Object===Object&&st,F=typeof self=="object"&&self&&self.Object===Object&&self,L=O||F||Function("return this")(),H=t&&!t.nodeType&&t,M=H&&e&&!e.nodeType&&e,K=M&&M.exports===H,V=K&&O.process,G=function(){try{return V&&V.binding&&V.binding("util")}catch{}}(),q=G&&G.isTypedArray;function re(_,N){for(var J=-1,he=_==null?0:_.length;++J<he;)if(N(_[J],J,_))return!0;return!1}function le(_){var N=-1,J=Array(_.size);return _.forEach(function(he,tt){J[++N]=[tt,he]}),J}function se(_){var N=-1,J=Array(_.size);return _.forEach(function(he){J[++N]=he}),J}var ae=Array.prototype,B=Function.prototype,x=Object.prototype,j=L["__core-js_shared__"],$=B.toString,Y=x.hasOwnProperty,U=function(){var _=/[^.]+$/.exec(j&&j.keys&&j.keys.IE_PROTO||"");return _?"Symbol(src)_1."+_:""}(),ie=x.toString,ge=RegExp("^"+$.call(Y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ve=K?L.Buffer:void 0,De=L.Symbol,W=L.Uint8Array,Ne=x.propertyIsEnumerable,Ae=ae.splice,de=De?De.toStringTag:void 0,Oe=Object.getOwnPropertySymbols,kt=ve?ve.isBuffer:void 0,$e=function(_,N){return function(J){return _(N(J))}}(Object.keys,Object),et=pi(L,"DataView"),mt=pi(L,"Map"),yn=pi(L,"Promise"),ze=pi(L,"Set"),Nn=pi(L,"WeakMap"),Nr=pi(Object,"create"),oo=Mo(et),ys=Mo(mt),Ha=Mo(yn),Rr=Mo(ze),io=Mo(Nn),No=De?De.prototype:void 0,bn=No?No.valueOf:void 0;function wn(_){var N=-1,J=_==null?0:_.length;for(this.clear();++N<J;){var he=_[N];this.set(he[0],he[1])}}function En(_){var N=-1,J=_==null?0:_.length;for(this.clear();++N<J;){var he=_[N];this.set(he[0],he[1])}}function Fn(_){var N=-1,J=_==null?0:_.length;for(this.clear();++N<J;){var he=_[N];this.set(he[0],he[1])}}function rn(_){var N=-1,J=_==null?0:_.length;for(this.__data__=new Fn;++N<J;)this.add(_[N])}function hr(_){var N=this.__data__=new En(_);this.size=N.size}function Sc(_,N){var J=zo(_),he=!J&&Eh(_),tt=!J&&!he&&ao(_),je=!J&&!he&&!tt&&so(_),T=J||he||tt||je,z=T?function(Me,pt){for(var nt=-1,We=Array(Me);++nt<Me;)We[nt]=pt(nt);return We}(_.length,String):[],ee=z.length;for(var ue in _)!N&&!Y.call(_,ue)||T&&(ue=="length"||tt&&(ue=="offset"||ue=="parent")||je&&(ue=="buffer"||ue=="byteLength"||ue=="byteOffset")||xc(ue,ee))||z.push(ue);return z}function di(_,N){for(var J=_.length;J--;)if(Es(_[J][0],N))return J;return-1}function Ro(_){return _==null?_===void 0?"[object Undefined]":"[object Null]":de&&de in Object(_)?function(N){var J=Y.call(N,de),he=N[de];try{N[de]=void 0;var tt=!0}catch{}var je=ie.call(N);return tt&&(J?N[de]=he:delete N[de]),je}(_):function(N){return ie.call(N)}(_)}function bs(_){return hi(_)&&Ro(_)==o}function Ua(_,N,J,he,tt){return _===N||(_==null||N==null||!hi(_)&&!hi(N)?_!=_&&N!=N:function(je,T,z,ee,ue,Me){var pt=zo(je),nt=zo(T),We=pt?i:Yn(je),Jt=nt?i:Yn(T),Dn=(We=We==o?p:We)==p,Va=(Jt=Jt==o?p:Jt)==p,$o=We==Jt;if($o&&ao(je)){if(!ao(T))return!1;pt=!0,Dn=!1}if($o&&!Dn)return Me||(Me=new hr),pt||so(je)?gr(je,T,z,ee,ue,Me):function(Re,Ge,qe,Ft,Tn,Rn,zr){switch(qe){case w:if(Re.byteLength!=Ge.byteLength||Re.byteOffset!=Ge.byteOffset)return!1;Re=Re.buffer,Ge=Ge.buffer;case b:return!(Re.byteLength!=Ge.byteLength||!Rn(new W(Re),new W(Ge)));case a:case u:case f:return Es(+Re,+Ge);case s:return Re.name==Ge.name&&Re.message==Ge.message;case m:case v:return Re==Ge+"";case c:var vi=le;case g:var Oc=1&Ft;if(vi||(vi=se),Re.size!=Ge.size&&!Oc)return!1;var Sh=zr.get(Re);if(Sh)return Sh==Ge;Ft|=2,zr.set(Re,Ge);var Ds=gr(vi(Re),vi(Ge),Ft,Tn,Rn,zr);return zr.delete(Re),Ds;case y:if(bn)return bn.call(Re)==bn.call(Ge)}return!1}(je,T,We,z,ee,ue,Me);if(!(1&z)){var gi=Dn&&Y.call(je,"__wrapped__"),ye=Va&&Y.call(T,"__wrapped__");if(gi||ye){var Xe=gi?je.value():je,jt=ye?T.value():T;return Me||(Me=new hr),ue(Xe,jt,z,ee,Me)}}return $o?(Me||(Me=new hr),function(Re,Ge,qe,Ft,Tn,Rn){var zr=1&qe,vi=Lo(Re),Oc=vi.length,Sh=Lo(Ge).length;if(Oc!=Sh&&!zr)return!1;for(var Ds=Oc;Ds--;){var Wa=vi[Ds];if(!(zr?Wa in Ge:Y.call(Ge,Wa)))return!1}var hS=Rn.get(Re);if(hS&&Rn.get(Ge))return hS==Ge;var xh=!0;Rn.set(Re,Ge),Rn.set(Ge,Re);for(var zm=zr;++Ds<Oc;){var Ah=Re[Wa=vi[Ds]],Oh=Ge[Wa];if(Ft)var gS=zr?Ft(Oh,Ah,Wa,Ge,Re,Rn):Ft(Ah,Oh,Wa,Re,Ge,Rn);if(!(gS===void 0?Ah===Oh||Tn(Ah,Oh,qe,Ft,Rn):gS)){xh=!1;break}zm||(zm=Wa=="constructor")}if(xh&&!zm){var Bh=Re.constructor,kh=Ge.constructor;Bh==kh||!("constructor"in Re)||!("constructor"in Ge)||typeof Bh=="function"&&Bh instanceof Bh&&typeof kh=="function"&&kh instanceof kh||(xh=!1)}return Rn.delete(Re),Rn.delete(Ge),xh}(je,T,z,ee,ue,Me)):!1}(_,N,J,he,Ua,tt))}function ws(_){return!(!Dh(_)||function(N){return!!U&&U in N}(_))&&(Ac(_)?ge:D).test(Mo(_))}function Lr(_){if(J=(N=_)&&N.constructor,he=typeof J=="function"&&J.prototype||x,N!==he)return $e(_);var N,J,he,tt=[];for(var je in Object(_))Y.call(_,je)&&je!="constructor"&&tt.push(je);return tt}function gr(_,N,J,he,tt,je){var T=1&J,z=_.length,ee=N.length;if(z!=ee&&!(T&&ee>z))return!1;var ue=je.get(_);if(ue&&je.get(N))return ue==N;var Me=-1,pt=!0,nt=2&J?new rn:void 0;for(je.set(_,N),je.set(N,_);++Me<z;){var We=_[Me],Jt=N[Me];if(he)var Dn=T?he(Jt,We,Me,N,_,je):he(We,Jt,Me,_,N,je);if(Dn!==void 0){if(Dn)continue;pt=!1;break}if(nt){if(!re(N,function(Va,$o){if(gi=$o,!nt.has(gi)&&(We===Va||tt(We,Va,J,he,je)))return nt.push($o);var gi})){pt=!1;break}}else if(We!==Jt&&!tt(We,Jt,J,he,je)){pt=!1;break}}return je.delete(_),je.delete(N),pt}function Lo(_){return function(N,J,he){var tt=J(N);return zo(N)?tt:function(je,T){for(var z=-1,ee=T.length,ue=je.length;++z<ee;)je[ue+z]=T[z];return je}(tt,he(N))}(_,Ch,wh)}function Mr(_,N){var J,he,tt=_.__data__;return((he=typeof(J=N))=="string"||he=="number"||he=="symbol"||he=="boolean"?J!=="__proto__":J===null)?tt[typeof N=="string"?"string":"hash"]:tt.map}function pi(_,N){var J=function(he,tt){return he==null?void 0:he[tt]}(_,N);return ws(J)?J:void 0}wn.prototype.clear=function(){this.__data__=Nr?Nr(null):{},this.size=0},wn.prototype.delete=function(_){var N=this.has(_)&&delete this.__data__[_];return this.size-=N?1:0,N},wn.prototype.get=function(_){var N=this.__data__;if(Nr){var J=N[_];return J===n?void 0:J}return Y.call(N,_)?N[_]:void 0},wn.prototype.has=function(_){var N=this.__data__;return Nr?N[_]!==void 0:Y.call(N,_)},wn.prototype.set=function(_,N){var J=this.__data__;return this.size+=this.has(_)?0:1,J[_]=Nr&&N===void 0?n:N,this},En.prototype.clear=function(){this.__data__=[],this.size=0},En.prototype.delete=function(_){var N=this.__data__,J=di(N,_);return!(J<0)&&(J==N.length-1?N.pop():Ae.call(N,J,1),--this.size,!0)},En.prototype.get=function(_){var N=this.__data__,J=di(N,_);return J<0?void 0:N[J][1]},En.prototype.has=function(_){return di(this.__data__,_)>-1},En.prototype.set=function(_,N){var J=this.__data__,he=di(J,_);return he<0?(++this.size,J.push([_,N])):J[he][1]=N,this},Fn.prototype.clear=function(){this.size=0,this.__data__={hash:new wn,map:new(mt||En),string:new wn}},Fn.prototype.delete=function(_){var N=Mr(this,_).delete(_);return this.size-=N?1:0,N},Fn.prototype.get=function(_){return Mr(this,_).get(_)},Fn.prototype.has=function(_){return Mr(this,_).has(_)},Fn.prototype.set=function(_,N){var J=Mr(this,_),he=J.size;return J.set(_,N),this.size+=J.size==he?0:1,this},rn.prototype.add=rn.prototype.push=function(_){return this.__data__.set(_,n),this},rn.prototype.has=function(_){return this.__data__.has(_)},hr.prototype.clear=function(){this.__data__=new En,this.size=0},hr.prototype.delete=function(_){var N=this.__data__,J=N.delete(_);return this.size=N.size,J},hr.prototype.get=function(_){return this.__data__.get(_)},hr.prototype.has=function(_){return this.__data__.has(_)},hr.prototype.set=function(_,N){var J=this.__data__;if(J instanceof En){var he=J.__data__;if(!mt||he.length<199)return he.push([_,N]),this.size=++J.size,this;J=this.__data__=new Fn(he)}return J.set(_,N),this.size=J.size,this};var wh=Oe?function(_){return _==null?[]:(_=Object(_),function(N,J){for(var he=-1,tt=N==null?0:N.length,je=0,T=[];++he<tt;){var z=N[he];J(z,he,N)&&(T[je++]=z)}return T}(Oe(_),function(N){return Ne.call(_,N)}))}:function(){return[]},Yn=Ro;function xc(_,N){return!!(N=N??r)&&(typeof _=="number"||S.test(_))&&_>-1&&_%1==0&&_<N}function Mo(_){if(_!=null){try{return $.call(_)}catch{}try{return _+""}catch{}}return""}function Es(_,N){return _===N||_!=_&&N!=N}(et&&Yn(new et(new ArrayBuffer(1)))!=w||mt&&Yn(new mt)!=c||yn&&Yn(yn.resolve())!=d||ze&&Yn(new ze)!=g||Nn&&Yn(new Nn)!=h)&&(Yn=function(_){var N=Ro(_),J=N==p?_.constructor:void 0,he=J?Mo(J):"";if(he)switch(he){case oo:return w;case ys:return c;case Ha:return d;case Rr:return g;case io:return h}return N});var Eh=bs(function(){return arguments}())?bs:function(_){return hi(_)&&Y.call(_,"callee")&&!Ne.call(_,"callee")},zo=Array.isArray,ao=kt||function(){return!1};function Ac(_){if(!Dh(_))return!1;var N=Ro(_);return N==l||N=="[object GeneratorFunction]"||N=="[object AsyncFunction]"||N=="[object Proxy]"}function uo(_){return typeof _=="number"&&_>-1&&_%1==0&&_<=r}function Dh(_){var N=typeof _;return _!=null&&(N=="object"||N=="function")}function hi(_){return _!=null&&typeof _=="object"}var so=q?function(_){return function(N){return _(N)}}(q):function(_){return hi(_)&&uo(_.length)&&!!C[Ro(_)]};function Ch(_){return(N=_)!=null&&uo(N.length)&&!Ac(N)?Sc(_):Lr(_);var N}e.exports=function(_,N){return Ua(_,N)}});qn("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"}}),qn("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var Nk=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pL(e){var t={exports:{}};return e(t,t.exports),t.exports}var Pi,lg,y0=function(e){return e&&e.Math==Math&&e},_e=y0(typeof globalThis=="object"&&globalThis)||y0(typeof window=="object"&&window)||y0(typeof self=="object"&&self)||y0(typeof Nk=="object"&&Nk)||function(){return this}()||Function("return this")(),Yt=function(e){try{return!!e()}catch{return!0}},ka=!Yt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Sf=Function.prototype.call,Wt=Sf.bind?Sf.bind(Sf):function(){return Sf.apply(Sf,arguments)},Rk={}.propertyIsEnumerable,Lk=Object.getOwnPropertyDescriptor,_le={f:Lk&&!Rk.call({1:2},1)?function(e){var t=Lk(this,e);return!!t&&t.enumerable}:Rk},ID=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},hL=Function.prototype,H6=hL.bind,U6=hL.call,jle=H6&&H6.bind(U6),Le=H6?function(e){return e&&jle(U6,e)}:function(e){return e&&function(){return U6.apply(e,arguments)}},Ple=Le({}.toString),Ile=Le("".slice),da=function(e){return Ile(Ple(e),8,-1)},I2=_e.Object,Nle=Le("".split),gL=Yt(function(){return!I2("z").propertyIsEnumerable(0)})?function(e){return da(e)=="String"?Nle(e,""):I2(e)}:I2,Rle=_e.TypeError,Fa=function(e){if(e==null)throw Rle("Can't call method on "+e);return e},sh=function(e){return gL(Fa(e))},vn=function(e){return typeof e=="function"},xr=function(e){return typeof e=="object"?e!==null:vn(e)},Lle=function(e){return vn(e)?e:void 0},lh=function(e,t){return arguments.length<2?Lle(_e[e]):_e[e]&&_e[e][t]},vL=Le({}.isPrototypeOf),N2=lh("navigator","userAgent")||"",Mk=_e.process,zk=_e.Deno,$k=Mk&&Mk.versions||zk&&zk.version,Hk=$k&&$k.v8;Hk&&(lg=(Pi=Hk.split("."))[0]>0&&Pi[0]<4?1:+(Pi[0]+Pi[1])),!lg&&N2&&(!(Pi=N2.match(/Edge\/(\d+)/))||Pi[1]>=74)&&(Pi=N2.match(/Chrome\/(\d+)/))&&(lg=+Pi[1]);var V6=lg,W6=!!Object.getOwnPropertySymbols&&!Yt(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&V6&&V6<41}),ND=W6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Mle=_e.Object,R2=ND?function(e){return typeof e=="symbol"}:function(e){var t=lh("Symbol");return vn(t)&&vL(t.prototype,Mle(e))},zle=_e.String,mL=function(e){try{return zle(e)}catch{return"Object"}},$le=_e.TypeError,yL=function(e){if(vn(e))return e;throw $le(mL(e)+" is not a function")},RD=function(e,t){var n=e[t];return n==null?void 0:yL(n)},Hle=_e.TypeError,Ule=Object.defineProperty,LD=function(e,t){try{Ule(_e,e,{value:t,configurable:!0,writable:!0})}catch{_e[e]=t}return t},pa=_e["__core-js_shared__"]||LD("__core-js_shared__",{}),MD=pL(function(e){(e.exports=function(t,n){return pa[t]||(pa[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Vle=_e.Object,zD=function(e){return Vle(Fa(e))},Wle=Le({}.hasOwnProperty),Or=Object.hasOwn||function(e,t){return Wle(zD(e),t)},Gle=0,qle=Math.random(),Kle=Le(1 .toString),bL=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Kle(++Gle+qle,36)},xf=MD("wks"),Lu=_e.Symbol,Uk=Lu&&Lu.for,Yle=ND?Lu:Lu&&Lu.withoutSetter||bL,Ir=function(e){if(!Or(xf,e)||!W6&&typeof xf[e]!="string"){var t="Symbol."+e;W6&&Or(Lu,e)?xf[e]=Lu[e]:xf[e]=ND&&Uk?Uk(t):Yle(t)}return xf[e]},Xle=_e.TypeError,Jle=Ir("toPrimitive"),$D=function(e){var t=function(n,r){if(!xr(n)||R2(n))return n;var o,i=RD(n,Jle);if(i){if(r===void 0&&(r="default"),o=Wt(i,n,r),!xr(o)||R2(o))return o;throw Xle("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&vn(s=a.toString)&&!xr(l=Wt(s,a))||vn(s=a.valueOf)&&!xr(l=Wt(s,a))||u!=="string"&&vn(s=a.toString)&&!xr(l=Wt(s,a)))return l;throw Hle("Can't convert object to primitive value")}(n,r)}(e,"string");return R2(t)?t:t+""},G6=_e.document,Zle=xr(G6)&&xr(G6.createElement),HD=function(e){return Zle?G6.createElement(e):{}},wL=!ka&&!Yt(function(){return Object.defineProperty(HD("div"),"a",{get:function(){return 7}}).a!=7}),Vk=Object.getOwnPropertyDescriptor,EL={f:ka?Vk:function(e,t){if(e=sh(e),t=$D(t),wL)try{return Vk(e,t)}catch{}if(Or(e,t))return ID(!Wt(_le.f,e,t),e[t])}},Qle=_e.String,ece=_e.TypeError,Br=function(e){if(xr(e))return e;throw ece(Qle(e)+" is not an object")},tce=_e.TypeError,Wk=Object.defineProperty,ch={f:ka?Wk:function(e,t,n){if(Br(e),t=$D(t),Br(n),wL)try{return Wk(e,t,n)}catch{}if("get"in n||"set"in n)throw tce("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Jl=ka?function(e,t,n){return ch.f(e,t,ID(1,n))}:function(e,t,n){return e[t]=n,e},nce=Le(Function.toString);vn(pa.inspectSource)||(pa.inspectSource=function(e){return nce(e)});var Vv,wd,Wv,UD=pa.inspectSource,Gk=_e.WeakMap,rce=vn(Gk)&&/native code/.test(UD(Gk)),qk=MD("keys"),DL=function(e){return qk[e]||(qk[e]=bL(e))},VD={},q6=_e.TypeError,oce=_e.WeakMap;if(rce||pa.state){var tu=pa.state||(pa.state=new oce),ice=Le(tu.get),Kk=Le(tu.has),ace=Le(tu.set);Vv=function(e,t){if(Kk(tu,e))throw new q6("Object already initialized");return t.facade=e,ace(tu,e,t),t},wd=function(e){return ice(tu,e)||{}},Wv=function(e){return Kk(tu,e)}}else{var Hs=DL("state");VD[Hs]=!0,Vv=function(e,t){if(Or(e,Hs))throw new q6("Object already initialized");return t.facade=e,Jl(e,Hs,t),t},wd=function(e){return Or(e,Hs)?e[Hs]:{}},Wv=function(e){return Or(e,Hs)}}var K6={set:Vv,get:wd,has:Wv,enforce:function(e){return Wv(e)?wd(e):Vv(e,{})},getterFor:function(e){return function(t){var n;if(!xr(t)||(n=wd(t)).type!==e)throw q6("Incompatible receiver, "+e+" required");return n}}},CL=Function.prototype,uce=ka&&Object.getOwnPropertyDescriptor,L2=Or(CL,"name"),WD={EXISTS:L2,PROPER:L2&&(function(){}).name==="something",CONFIGURABLE:L2&&(!ka||ka&&uce(CL,"name").configurable)},ip=pL(function(e){var t=WD.CONFIGURABLE,n=K6.get,r=K6.enforce,o=String(String).split("String");(e.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;vn(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Or(u,"name")||t&&u.name!==d)&&Jl(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==_e?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Jl(i,a,u)):f?i[a]=u:LD(a,u)})(Function.prototype,"toString",function(){return vn(this)&&n(this).source||UD(this)})}),sce=Math.ceil,lce=Math.floor,Em=function(e){var t=+e;return t!=t||t===0?0:(t>0?lce:sce)(t)},cce=Math.max,fce=Math.min,ap=function(e,t){var n=Em(e);return n<0?cce(n+t,0):fce(n,t)},dce=Math.min,GD=function(e){return e>0?dce(Em(e),9007199254740991):0},Dm=function(e){return GD(e.length)},pce=function(e){return function(t,n,r){var o,i=sh(t),a=Dm(i),u=ap(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},hce=pce(!1),Yk=Le([].push),SL=function(e,t){var n,r=sh(e),o=0,i=[];for(n in r)!Or(VD,n)&&Or(r,n)&&Yk(i,n);for(;t.length>o;)Or(r,n=t[o++])&&(~hce(i,n)||Yk(i,n));return i},Gv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],gce=Gv.concat("length","prototype"),vce={f:Object.getOwnPropertyNames||function(e){return SL(e,gce)}},mce={f:Object.getOwnPropertySymbols},yce=Le([].concat),bce=lh("Reflect","ownKeys")||function(e){var t=vce.f(Br(e)),n=mce.f;return n?yce(t,n(e)):t},wce=function(e,t){for(var n=bce(t),r=ch.f,o=EL.f,i=0;i<n.length;i++){var a=n[i];Or(e,a)||r(e,a,o(t,a))}},Ece=/#|\.prototype\./,fh=function(e,t){var n=Cce[Dce(e)];return n==xce||n!=Sce&&(vn(t)?Yt(t):!!t)},Dce=fh.normalize=function(e){return String(e).replace(Ece,".").toLowerCase()},Cce=fh.data={},Sce=fh.NATIVE="N",xce=fh.POLYFILL="P",Ace=fh,Oce=EL.f,Ta=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?_e:l?_e[u]||LD(u,{}):(_e[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Oce(n,r))&&a.value:n[r],!Ace(s?r:u+(l?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;wce(i,o)}(e.sham||o&&o.sham)&&Jl(i,"sham",!0),ip(n,r,i,e)}},xL={};xL[Ir("toStringTag")]="z";var qD=String(xL)==="[object z]",Bce=Ir("toStringTag"),kce=_e.Object,Fce=da(function(){return arguments}())=="Arguments",KD=qD?da:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(t=kce(e),Bce))=="string"?n:Fce?da(t):(r=da(t))=="Object"&&vn(t.callee)?"Arguments":r},Tce=_e.String,An=function(e){if(KD(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Tce(e)},_ce=/"/g,jce=Le("".replace);Ta({target:"String",proto:!0,forced:Yt(function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})},{anchor:function(e){return t=e,n=An(Fa(this)),r="<a",(r+=' name="'+jce(An(t),_ce,""")+'"')+">"+n+"</a>";var t,n,r}});var b0,AL=function(){var e=Br(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},YD=_e.RegExp,Y6=Yt(function(){var e=YD("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),Pce=Y6||Yt(function(){return!YD("a","y").sticky}),OL={BROKEN_CARET:Y6||Yt(function(){var e=YD("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:Pce,UNSUPPORTED_Y:Y6},Ice=Object.keys||function(e){return SL(e,Gv)},Nce=ka?Object.defineProperties:function(e,t){Br(e);for(var n,r=sh(t),o=Ice(t),i=o.length,a=0;i>a;)ch.f(e,n=o[a++],r[n]);return e},Rce=lh("document","documentElement"),BL=DL("IE_PROTO"),M2=function(){},kL=function(e){return"<script>"+e+"<\/script>"},Xk=function(e){e.write(kL("")),e.close();var t=e.parentWindow.Object;return e=null,t},cg=function(){try{b0=new ActiveXObject("htmlfile")}catch{}var e,t;cg=typeof document<"u"?document.domain&&b0?Xk(b0):((t=HD("iframe")).style.display="none",Rce.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(kL("document.F=Object")),e.close(),e.F):Xk(b0);for(var n=Gv.length;n--;)delete cg.prototype[Gv[n]];return cg()};VD[BL]=!0;var Jk,z2,FL=Object.create||function(e,t){var n;return e!==null?(M2.prototype=Br(e),n=new M2,M2.prototype=null,n[BL]=e):n=cg(),t===void 0?n:Nce(n,t)},Lce=_e.RegExp,Mce=Yt(function(){var e=Lce(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")}),zce=_e.RegExp,$ce=Yt(function(){var e=zce("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Hce=K6.get,Uce=MD("native-string-replace",String.prototype.replace),qv=RegExp.prototype.exec,X6=qv,Vce=Le("".charAt),Wce=Le("".indexOf),Gce=Le("".replace),$2=Le("".slice),H2=(z2=/b*/g,Wt(qv,Jk=/a/,"a"),Wt(qv,z2,"a"),Jk.lastIndex!==0||z2.lastIndex!==0),Zk=OL.BROKEN_CARET,U2=/()??/.exec("")[1]!==void 0;(H2||U2||Zk||Mce||$ce)&&(X6=function(e){var t,n,r,o,i,a,u,s=this,l=Hce(s),c=An(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Wt(X6,f,c),s.lastIndex=f.lastIndex,t;var p=l.groups,d=Zk&&s.sticky,m=Wt(AL,s),g=s.source,v=0,y=c;if(d&&(m=Gce(m,"y",""),Wce(m,"g")===-1&&(m+="g"),y=$2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Vce(c,s.lastIndex-1)!==`
- `)&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",m)),U2&&(n=new RegExp("^"+g+"$(?!\\s)",m)),H2&&(r=s.lastIndex),o=Wt(qv,d?n:s,y),d?o?(o.input=$2(o.input,v),o[0]=$2(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:H2&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),U2&&o&&o.length>1&&Wt(Uce,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=FL(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var up=X6;Ta({target:"RegExp",proto:!0,forced:/./.exec!==up},{exec:up});var Kv=Array.isArray||function(e){return da(e)=="Array"},TL=function(){},qce=[],_L=lh("Reflect","construct"),XD=/^\s*(?:class|function)\b/,Kce=Le(XD.exec),Yce=!XD.exec(TL),Af=function(e){if(!vn(e))return!1;try{return _L(TL,qce,e),!0}catch{return!1}},JD=!_L||Yt(function(){var e;return Af(Af.call)||!Af(Object)||!Af(function(){e=!0})||e})?function(e){if(!vn(e))return!1;switch(KD(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Yce||!!Kce(XD,UD(e))}:Af,jL=function(e,t,n){var r=$D(t);r in e?ch.f(e,r,ID(0,n)):e[r]=n},Xce=Ir("species"),ZD=function(e){return V6>=51||!Yt(function(){var t=[];return(t.constructor={})[Xce]=function(){return{foo:1}},t[e](Boolean).foo!==1})},Jce=Le([].slice),Zce=ZD("slice"),Qce=Ir("species"),V2=_e.Array,efe=Math.max;function no(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(t===void 0||t-- >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 Qk(e){var t=e.selection;if(t==null)return!1;var n=no(E.nodes(e,{match:function(i){return A.checkNodeType(i,"table-cell")}}),1)[0];if(n){var r=no(n,2)[1],o=E.start(e,r);if(ke.equals(t.anchor,o))return!0}return!1}function eF(e,t){var n,r,o=E.nodes(e,{at:t,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}Ta({target:"Array",proto:!0,forced:!Zce},{slice:function(e,t){var n,r,o,i=sh(this),a=Dm(i),u=ap(e,a),s=ap(t===void 0?a:t,a);if(Kv(i)&&(n=i.constructor,(JD(n)&&(n===V2||Kv(n.prototype))||xr(n)&&(n=n[Qce])===null)&&(n=void 0),n===V2||n===void 0))return Jce(i,u,s);for(r=new(n===void 0?V2:n)(efe(s-u,0)),o=0;u<s;u++,o++)u in i&&jL(r,o,i[u]);return r.length=o,r}});var tF=Le(Le.bind),tfe=Ir("species"),nF=_e.Array,nfe=function(e,t){return new(function(n){var r;return Kv(n)&&(r=n.constructor,(JD(r)&&(r===nF||Kv(r.prototype))||xr(r)&&(r=r[tfe])===null)&&(r=void 0)),r===void 0?nF:r}(e))(t===0?0:t)},rF=Le([].push),Ii=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var p,d,m=zD(s),g=gL(m),v=function(D,S){return yL(D),S===void 0?D:tF?tF(D,S):function(){return D.apply(S,arguments)}}(l,c),y=Dm(g),h=0,b=f||nfe,w=t?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in g)&&(d=v(p=g[h],h,m),e))if(t)w[h]=d;else if(d)switch(e){case 3:return!0;case 5:return p;case 6:return h;case 2:rF(w,p)}else switch(e){case 4:return!1;case 7:rF(w,p)}return i?-1:r||o?o:w}},Cm={forEach:Ii(0),map:Ii(1),filter:Ii(2),some:Ii(3),every:Ii(4),find:Ii(5),findIndex:Ii(6),filterReject:Ii(7)},rfe=Cm.map;Ta({target:"Array",proto:!0,forced:!ZD("map")},{map:function(e){return rfe(this,e,arguments.length>1?arguments[1]:void 0)}});var ofe=qD?{}.toString:function(){return"[object "+KD(this)+"]"};function Sm(e){var t=e.children||[];return t.length===0?[]:(t[0]||{}).children||[]}function PL(e){return Sm(e).every(function(t){return!!t.isHeader})}qD||ip(Object.prototype,"toString",ofe,{unsafe:!0});var ife=WD.PROPER,J6=RegExp.prototype,IL=J6.toString,afe=Le(AL),ufe=Yt(function(){return IL.call({source:"a",flags:"b"})!="/a/b"}),sfe=ife&&IL.name!="toString";(ufe||sfe)&&ip(RegExp.prototype,"toString",function(){var e=Br(this),t=An(e.source),n=e.flags;return"/"+t+"/"+An(n===void 0&&vL(J6,e)&&!("flags"in J6)?afe(e):n)},{unsafe:!0});var Z6=Ir("unscopables"),Q6=Array.prototype;Q6[Z6]==null&&ch.f(Q6,Z6,{configurable:!0,value:FL(null)});var lfe=Cm.find,oF=!0;"find"in[]&&Array(1).find(function(){oF=!1}),Ta({target:"Array",proto:!0,forced:oF},{find:function(e){return lfe(this,e,arguments.length>1?arguments[1]:void 0)}}),Q6[Z6].find=!0;var QD=Function.prototype,iF=QD.apply,cfe=QD.bind,aF=QD.call,NL=typeof Reflect=="object"&&Reflect.apply||(cfe?aF.bind(iF):function(){return aF.apply(iF,arguments)}),ffe=Ir("species"),W2=RegExp.prototype,RL=function(e,t,n,r){var o=Ir(e),i=!Yt(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!Yt(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[ffe]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=Le(/./[o]),s=t(o,""[e],function(l,c,f,p,d){var m=Le(l),g=c.exec;return g===up||g===W2.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:m(f,c,p)}:{done:!1}});ip(String.prototype,e,s[0]),ip(W2,o,s[1])}r&&Jl(W2[o],"sham",!0)},dfe=Ir("match"),pfe=_e.TypeError,hfe=Ir("species"),gfe=Le("".charAt),uF=Le("".charCodeAt),vfe=Le("".slice),mfe=function(e){return function(t,n){var r,o,i=An(Fa(t)),a=Em(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=uF(i,a))<55296||r>56319||a+1===u||(o=uF(i,a+1))<56320||o>57343?e?gfe(i,a):r:e?vfe(i,a,a+2):o-56320+(r-55296<<10)+65536}},yfe=mfe(!0),LL=function(e,t,n){return t+(n?yfe(e,t).length:1)},bfe=_e.Array,wfe=Math.max,sF=function(e,t,n){for(var r=Dm(e),o=ap(t,r),i=ap(n===void 0?r:n,r),a=bfe(wfe(i-o,0)),u=0;o<i;o++,u++)jL(a,u,e[o]);return a.length=u,a},Efe=_e.TypeError,e3=function(e,t){var n=e.exec;if(vn(n)){var r=Wt(n,e,t);return r!==null&&Br(r),r}if(da(e)==="RegExp")return Wt(up,e,t);throw Efe("RegExp#exec called on incompatible receiver")},Us=OL.UNSUPPORTED_Y,Dfe=Math.min,ML=[].push,Cfe=Le(/./.exec),Vs=Le(ML),Of=Le("".slice);RL("split",function(e,t,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(!xr(a=o)||!((u=a[dfe])!==void 0?u:da(a)=="RegExp"))return Wt(t,s,o,l);for(var c,f,p,d=[],m=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),g=0,v=new RegExp(o.source,m+"g");(c=Wt(up,v,s))&&!((f=v.lastIndex)>g&&(Vs(d,Of(s,g,c.index)),c.length>1&&c.index<s.length&&NL(ML,d,sF(c,1)),p=c[0].length,g=f,d.length>=l));)v.lastIndex===c.index&&v.lastIndex++;return g===s.length?!p&&Cfe(v,"")||Vs(d,""):Vs(d,Of(s,g)),d.length>l?sF(d,0,l):d}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Wt(t,this,o,i)}:t,[function(o,i){var a=Fa(this),u=o==null?void 0:RD(o,e);return u?Wt(u,o,a,i):Wt(r,An(a),o,i)},function(o,i){var a=Br(this),u=An(o),s=n(r,a,u,i,r!==t);if(s.done)return s.value;var l=function(w,D){var S,C=Br(w).constructor;return C===void 0||(S=Br(C)[hfe])==null?D:function(O){if(JD(O))return O;throw pfe(mL(O)+" is not a constructor")}(S)}(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Us?"g":"y"),p=new l(Us?"^(?:"+a.source+")":a,f),d=i===void 0?4294967295:i>>>0;if(d===0)return[];if(u.length===0)return e3(p,u)===null?[u]:[];for(var m=0,g=0,v=[];g<u.length;){p.lastIndex=Us?0:g;var y,h=e3(p,Us?Of(u,g):u);if(h===null||(y=Dfe(GD(p.lastIndex+(Us?g:0)),u.length))===m)g=LL(u,g,c);else{if(Vs(v,Of(u,m,g)),v.length===d)return v;for(var b=1;b<=h.length-1;b++)if(Vs(v,h[b]),v.length===d)return v;g=m=y}}return Vs(v,Of(u,m)),v}]},!!Yt(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),Us);var t3=`
- \v\f\r \u2028\u2029\uFEFF`,lF=Le("".replace),Yv="["+t3+"]",Sfe=RegExp("^"+Yv+Yv+"*"),xfe=RegExp(Yv+Yv+"*$"),G2=function(e){return function(t){var n=An(Fa(t));return 1&e&&(n=lF(n,Sfe,"")),2&e&&(n=lF(n,xfe,"")),n}},Afe={start:G2(1),end:G2(2),trim:G2(3)},Ofe=WD.PROPER,Bfe=Afe.trim;function zL(e){return e.length?e[0].tagName.toLowerCase():""}Ta({target:"String",proto:!0,forced:function(e){return Yt(function(){return!!t3[e]()||"
"[e]()!=="
"||Ofe&&t3[e].name!==e})}("trim")},{trim:function(){return Bfe(this)}}),Ta({global:!0},{globalThis:_e}),Tr&&(k.fn.append=Tr),Bo&&(k.fn.on=Bo),Ca&&(k.fn.focus=Ca),Fr&&(k.fn.attr=Fr),Oo&&(k.fn.val=Oo),Da&&(k.fn.html=Da),Pl&&(k.fn.dataset=Pl),Tl&&(k.fn.addClass=Tl),_l&&(k.fn.removeClass=_l),Ll&&(k.fn.children=Ll),Jg&&(k.fn.each=Jg),Rl&&(k.fn.find=Rl);var sp=!1,$L=0,HL=0,lp=null,cp=null,Ed=k("body");function UL(e){sp=!1,cp=null,lp=null,Ed.off("mousemove",VL),Ed.off("mouseup",UL)}Ed.on("mousedown",function(e){var t=e.target;if((t.tagName==="TH"||t.tagName==="TD")&&t.style.cursor==="col-resize"){t.style.cursor="auto",e.preventDefault(),sp=!0;var n=e.clientX;$L=n;var r=t.getBoundingClientRect().width;HL=r,Ed.on("mousemove",VL),Ed.on("mouseup",UL)}});var VL=Ku(function(e){if(sp&&cp!=null&&lp!=null){e.preventDefault();var t=e.clientX,n=HL+(t-$L);(n=Math.floor(100*n)/100)<30&&(n=30),I.setNodes(cp,{width:n.toString()},{at:lp})}},100),kfe={type:"table",renderElem:function(e,t,n){var r=function(u,s){if(u.isDisabled())return!1;var l=u.selection;if(l==null||R.isCollapsed(l))return!0;var c=l.anchor,f=l.focus,p=A.findPath(u,s),d=E.start(u,p),m=E.end(u,p),g=ke.compare(c,m)<=0&&ke.compare(c,d)>=0,v=ke.compare(f,m)<=0&&ke.compare(f,d)>=0;return!!(g&&v&&P.equals(c.path.slice(0,3),f.path.slice(0,3)))}(n,e),o=e.width,i=o===void 0?"auto":o,a=be("div",{className:"table-container","data-selected":A.isNodeSelected(n,e),on:{mousedown:function(u){if(u.target.tagName==="DIV"&&u.preventDefault(),!n.isDisabled()){var s=A.findPath(n,e),l=E.start(n,s),c=n.selection;c!=null?c.anchor.path[0]!==s[0]&&n.select(l):n.select(l)}}}},be("table",{width:i,contentEditable:r},be("colgroup",null,Sm(e).map(function(u){var s=u.width;return be("col",{width:s===void 0?"auto":s})})),be("tbody",null,t)));return a}},Ffe={type:"table-row",renderElem:function(e,t,n){return be("tr",null,t)}},Tfe={type:"table-cell",renderElem:function(e,t,n){var r=function(p,d){var m=A.getParentNode(p,d);if(m==null)return!1;var g=A.getParentNode(p,m);return g!=null&&Sm(g).some(function(v){return v===d})}(n,e),o=e,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 be("td",{colSpan:a,rowSpan:s},t);var f=be(c?"th":"td",{colSpan:a,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:Ku(function(p){var d=this.elm;if(d!=null){var m=d.getBoundingClientRect(),g=m.left,v=m.width,y=m.top,h=m.height,b=p.clientX,w=p.clientY;sp||(b>g+v-5&&b<g+v&&w>y&&w<y+h?(d.style.cursor="col-resize",cp=n,lp=A.findPath(n,e)):sp||(d.style.cursor="auto",cp=null,lp=null))}},100)}},t);return f}},_fe={selector:"table",preParseHtml:function(e){var t=k(e);if(zL(t)!=="table")return e;var n=t.find("tbody");if(n.length===0)return e;var r=t.find("tr");return t.append(r),n.remove(),t[0]}},jfe=Cm.filter;Ta({target:"Array",proto:!0,forced:!ZD("filter")},{filter:function(e){return jfe(this,e,arguments.length>1?arguments[1]:void 0)}});var Pfe=Math.floor,q2=Le("".charAt),Ife=Le("".replace),K2=Le("".slice),Nfe=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Rfe=/\$([$&'`]|\d{1,2})/g,Lfe=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=Rfe;return o!==void 0&&(o=zD(o),s=Nfe),Ife(i,s,function(l,c){var f;switch(q2(c,0)){case"$":return"$";case"&":return e;case"`":return K2(t,0,n);case"'":return K2(t,a);case"<":f=o[K2(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=Pfe(p/10);return d===0?l:d<=u?r[d-1]===void 0?q2(c,1):r[d-1]+q2(c,1):l}f=r[p-1]}return f===void 0?"":f})},n3=Ir("replace"),Mfe=Math.max,zfe=Math.min,$fe=Le([].concat),Y2=Le([].push),cF=Le("".indexOf),fF=Le("".slice),Hfe="a".replace(/./,"$0")==="$0",dF=!!/./[n3]&&/./[n3]("a","$0")==="";RL("replace",function(e,t,n){var r=dF?"$":"$0";return[function(o,i){var a=Fa(this),u=o==null?void 0:RD(o,n3);return u?Wt(u,o,a,i):Wt(t,An(a),o,i)},function(o,i){var a=Br(this),u=An(o);if(typeof i=="string"&&cF(i,r)===-1&&cF(i,"$<")===-1){var s=n(t,a,u,i);if(s.done)return s.value}var l=vn(i);l||(i=An(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var p=[];;){var d=e3(a,u);if(d===null||(Y2(p,d),!c))break;An(d[0])===""&&(a.lastIndex=LL(u,GD(a.lastIndex),f))}for(var m,g="",v=0,y=0;y<p.length;y++){for(var h=An((d=p[y])[0]),b=Mfe(zfe(Em(d.index),u.length),0),w=[],D=1;D<d.length;D++)Y2(w,(m=d[D])===void 0?m:String(m));var S=d.groups;if(l){var C=$fe([h],w,b,u);S!==void 0&&Y2(C,S);var O=An(NL(i,void 0,C))}else O=Lfe(h,u,b,w,S,i);b>=v&&(g+=fF(u,v,b)+O,v=b+h.length)}return g+fF(u,v)}]},!!Yt(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!Hfe||dF);var Ufe={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=k(e);(t=t.filter(function(u){return!!oe.isText(u)||!!n.isInline(u)})).length===0&&(t=[{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:zL(r)==="th",colSpan:o,rowSpan:i,width:a,children:t}}},Vfe={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"table-row",children:t.filter(function(r){return A.getNodeType(r)==="table-cell"})}}},Wfe={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=k(e),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:t.filter(function(i){return A.getNodeType(i)==="table-row"})}}},Gfe=function(){function e(){this.title=Q("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 e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!R.isCollapsed(n)||!!A.getSelectedElems(t).some(function(r){var o=A.getNodeType(r);return o==="pre"||o==="table"||o==="list-item"||!!t.isVoid(r)})},e.prototype.getPanelContentElem=function(t){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,m=p.y;o[0].innerHTML=d+1+" × "+(m+1),i.children().each(function(g){k(g).children().each(function(v){var y=k(v),h=y.dataset(),b=h.x,w=h.y;b<=d&&w<=m?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,m=p.y;n.insertTable(t,m+1,d+1)}})}i.append(u)}return r.append(i),r.append(o),this.$content=r,r[0]},e.prototype.insertTable=function(t,n,r){var o=parseInt(n,10),i=parseInt(r,10);if(o&&i&&!(o<=0||i<=0)){A.isSelectedEmptyParagraph(t)&&I.removeNodes(t,{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(t,a,{mode:"highest"})}},e}(),qfe=function(){function e(){this.title=Q("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 e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||A.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){this.isDisabled(t)||I.removeNodes(t,{mode:"highest"})},e}(),Kfe=function(){function e(){this.title=Q("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 e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!R.isCollapsed(n)||A.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=no(E.nodes(t,{match:function(d){return A.checkNodeType(d,"table-cell")},universal:!0}),1),o=no(r[0],2),i=o[0],a=o[1],u=A.getParentNode(t,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=P.parent(a),p=P.next(f);I.insertNodes(t,l,{at:p})}}},e}(),Yfe=function(){function e(){this.title=Q("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 e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!R.isCollapsed(n)||A.getSelectedNodeByType(t,"table-row")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=no(E.nodes(t,{match:function(s){return A.checkNodeType(s,"table-row")},universal:!0}),1),o=no(r[0],2),i=o[0],a=o[1],u=A.getParentNode(t,i);((u==null?void 0:u.children.length)||0)<=1?I.removeNodes(t,{mode:"highest"}):I.removeNodes(t,{at:a})}},e}(),pF={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},X2=HD("span").classList,hF=X2&&X2.constructor&&X2.constructor.prototype,Xfe=hF===Object.prototype?void 0:hF,Jfe=Cm.forEach,Zfe=function(e,t){var n=[].forEach;return!!n&&Yt(function(){n.call(null,function(){throw 1},1)})}(),J2=Zfe?[].forEach:function(e){return Jfe(this,e,arguments.length>1?arguments[1]:void 0)},WL=function(e){if(e&&e.forEach!==J2)try{Jl(e,"forEach",J2)}catch{e.forEach=J2}};for(var Z2 in pF)pF[Z2]&&WL(_e[Z2]&&_e[Z2].prototype);WL(Xfe);var Qfe=function(){function e(){this.title=Q("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 e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!R.isCollapsed(n)||A.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=no(E.nodes(t,{match:function(l){return A.checkNodeType(l,"table-cell")},universal:!0}),1),o=no(r[0],2),i=o[0],a=o[1],u=A.getParentNode(t,i);if(u!=null){var s=A.getParentNode(t,u);s!=null&&(s.children||[]).forEach(function(l,c){ce.isElement(l)&&(l.children||[]).forEach(function(f){var p=A.findPath(t,f);if(p.length===a.length&&dL(p.slice(-1),a.slice(-1))){var d={type:"table-cell",children:[{text:""}]};c===0&&PL(s)&&(d.isHeader=!0),I.insertNodes(t,d,{at:p})}})})}}},e}(),ede=function(){function e(){this.title=Q("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 e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!R.isCollapsed(n)||A.getSelectedNodeByType(t,"table-cell")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=no(E.nodes(t,{match:function(c){return A.checkNodeType(c,"table-cell")},universal:!0}),1),o=no(r[0],2),i=o[0],a=o[1],u=A.getParentNode(t,i),s=(u==null?void 0:u.children.length)||0;if(!u||s<=1)I.removeNodes(t,{mode:"highest"});else{var l=A.getParentNode(t,u);l!=null&&(l.children||[]).forEach(function(c){ce.isElement(c)&&(c.children||[]).forEach(function(f){var p=A.findPath(t,f);p.length===a.length&&dL(p.slice(-1),a.slice(-1))&&I.removeNodes(t,{at:p})})})}}},e}(),tde=function(){function e(){this.title=Q("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 e.prototype.getValue=function(t){var n=A.getSelectedNodeByType(t,"table");return n!=null&&PL(n)},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!R.isCollapsed(n)||A.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=!n,o=A.getSelectedNodeByType(t,"table");o!=null&&Sm(o).forEach(function(i){return I.setNodes(t,{isHeader:r},{at:A.findPath(t,i)})})}},e}(),nde=function(){function e(){this.title=Q("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 e.prototype.getValue=function(t){var n=A.getSelectedNodeByType(t,"table");return n!=null&&n.width==="100%"},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!R.isCollapsed(n)||A.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r={width:n?"auto":"100%"};I.setNodes(t,r,{mode:"highest"})}},e}(),rde={renderElems:[kfe,Ffe,Tfe],elemsToHtml:[{type:"table",elemToHtml:function(e,t){var n=e.width;return'<table style="width: '+(n===void 0?"auto":n)+';"><tbody>'+t+"</tbody></table>"}},{type:"table-row",elemToHtml:function(e,t){return"<tr>"+t+"</tr>"}},{type:"table-cell",elemToHtml:function(e,t){var n=e,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)+'">'+t+"</"+c+">"}}],preParseHtml:[_fe],parseElemsHtml:[Ufe,Vfe,Wfe],menus:[{key:"insertTable",factory:function(){return new Gfe}},{key:"deleteTable",factory:function(){return new qfe}},{key:"insertTableRow",factory:function(){return new Kfe}},{key:"deleteTableRow",factory:function(){return new Yfe}},{key:"insertTableCol",factory:function(){return new Qfe}},{key:"deleteTableCol",factory:function(){return new ede}},{key:"tableHeader",factory:function(){return new tde}},{key:"tableFullWidth",factory:function(){return new nde}}],editorPlugin:function(e){var t=e.insertBreak,n=e.deleteBackward,r=e.deleteForward,o=e.normalizeNode,i=e.insertData,a=e.handleTab,u=e.selectAll,s=e;return s.insertBreak=function(){A.getSelectedNodeByType(s,"table")==null?t():s.insertText(`
- `)},s.deleteBackward=function(l){if(!Qk(s)){var c=s.selection;if(c){var f=E.before(s,c);if(f){var p=eF(s,f),d=eF(s,c);if(p&&!d)return}}n(l)}},s.handleTab=function(){var l;if(A.getSelectedNodeByType(s,"table")){var c=E.above(e);A.checkNodeType(c[0],"table-cell")&&I.select(e,c[1]);var f=E.next(e);if(f)f[0]&&f[0].text&&(f=(l=E.above(e,{at:f[1]}))!==null&&l!==void 0?l:f),I.select(e,f[1]);else{var p=s.children||[],d=p.length;if(A.checkNodeType(p[d-1],"table")){var m=A.genEmptyParagraph();I.insertNodes(s,m,{at:[d]}),s.handleTab()}}}else a()},s.deleteForward=function(l){Qk(s)||r(l)},s.normalizeNode=function(l){var c=no(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(P.equals(f.path.slice(0,3),p.path.slice(0,3)))if(Z.string(c).length!==0){var d=A.findPath(s,c),m={anchor:E.start(s,d),focus:E.end(s,d)};s.select(m)}else u();else u()}else u()}else u()},s}};qn("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"}}),qn("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});/*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */var Xv=function(){return Xv=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Xv.apply(this,arguments)};function xm(e,t,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(e,t||[])).next())})}function Am(e,t){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=t.call(e,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 Mu(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(t===void 0||t-- >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 ode(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(o){var i=typeof Symbol=="function"&&Symbol.iterator,a=i&&o[i],u=0;if(a)return a.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&u>=o.length&&(o=void 0),{value:o&&o[u++],done:!o}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(o){t[o]=e[o]&&function(i){return new Promise(function(a,u){(function(s,l,c,f){Promise.resolve(f).then(function(p){s({value:p,done:c})},l)})(a,u,(i=e[o](i)).done,i.value)})}}}var gF=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function eC(e){var t={exports:{}};return e(t,t.exports),t.exports}var Ni,fg,w0=function(e){return e&&e.Math==Math&&e},ne=w0(typeof globalThis=="object"&&globalThis)||w0(typeof window=="object"&&window)||w0(typeof self=="object"&&self)||w0(typeof gF=="object"&&gF)||function(){return this}()||Function("return this")(),dt=function(e){try{return!!e()}catch{return!0}},Fo=!dt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Bf=Function.prototype.call,lt=Bf.bind?Bf.bind(Bf):function(){return Bf.apply(Bf,arguments)},vF={}.propertyIsEnumerable,mF=Object.getOwnPropertyDescriptor,ide={f:mF&&!vF.call({1:2},1)?function(e){var t=mF(this,e);return!!t&&t.enumerable}:vF},Om=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},GL=Function.prototype,r3=GL.bind,o3=GL.call,ade=r3&&r3.bind(o3),Ce=r3?function(e){return e&&ade(o3,e)}:function(e){return e&&function(){return o3.apply(e,arguments)}},ude=Ce({}.toString),sde=Ce("".slice),So=function(e){return sde(ude(e),8,-1)},Q2=ne.Object,lde=Ce("".split),tC=dt(function(){return!Q2("z").propertyIsEnumerable(0)})?function(e){return So(e)=="String"?lde(e,""):Q2(e)}:Q2,cde=ne.TypeError,dh=function(e){if(e==null)throw cde("Can't call method on "+e);return e},Ma=function(e){return tC(dh(e))},ot=function(e){return typeof e=="function"},ht=function(e){return typeof e=="object"?e!==null:ot(e)},fde=function(e){return ot(e)?e:void 0},os=function(e,t){return arguments.length<2?fde(ne[e]):ne[e]&&ne[e][t]},fp=Ce({}.isPrototypeOf),El=os("navigator","userAgent")||"",yF=ne.process,bF=ne.Deno,wF=yF&&yF.versions||bF&&bF.version,EF=wF&&wF.v8;EF&&(fg=(Ni=EF.split("."))[0]>0&&Ni[0]<4?1:+(Ni[0]+Ni[1])),!fg&&El&&(!(Ni=El.match(/Edge\/(\d+)/))||Ni[1]>=74)&&(Ni=El.match(/Chrome\/(\d+)/))&&(fg=+Ni[1]);var dp=fg,i3=!!Object.getOwnPropertySymbols&&!dt(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&dp&&dp<41}),nC=i3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",dde=ne.Object,ew=nC?function(e){return typeof e=="symbol"}:function(e){var t=os("Symbol");return ot(t)&&fp(t.prototype,dde(e))},pde=ne.String,Jv=function(e){try{return pde(e)}catch{return"Object"}},hde=ne.TypeError,_a=function(e){if(ot(e))return e;throw hde(Jv(e)+" is not a function")},pp=function(e,t){var n=e[t];return n==null?void 0:_a(n)},gde=ne.TypeError,vde=Object.defineProperty,rC=function(e,t){try{vde(ne,e,{value:t,configurable:!0,writable:!0})}catch{ne[e]=t}return t},ha=ne["__core-js_shared__"]||rC("__core-js_shared__",{}),oC=eC(function(e){(e.exports=function(t,n){return ha[t]||(ha[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),mde=ne.Object,Bm=function(e){return mde(dh(e))},yde=Ce({}.hasOwnProperty),qt=Object.hasOwn||function(e,t){return yde(Bm(e),t)},bde=0,wde=Math.random(),Ede=Ce(1 .toString),iC=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Ede(++bde+wde,36)},kf=oC("wks"),zu=ne.Symbol,DF=zu&&zu.for,Dde=nC?zu:zu&&zu.withoutSetter||iC,Lt=function(e){if(!qt(kf,e)||!i3&&typeof kf[e]!="string"){var t="Symbol."+e;i3&&qt(zu,e)?kf[e]=zu[e]:kf[e]=nC&&DF?DF(t):Dde(t)}return kf[e]},Cde=ne.TypeError,Sde=Lt("toPrimitive"),aC=function(e){var t=function(n,r){if(!ht(n)||ew(n))return n;var o,i=pp(n,Sde);if(i){if(r===void 0&&(r="default"),o=lt(i,n,r),!ht(o)||ew(o))return o;throw Cde("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&ot(s=a.toString)&&!ht(l=lt(s,a))||ot(s=a.valueOf)&&!ht(l=lt(s,a))||u!=="string"&&ot(s=a.toString)&&!ht(l=lt(s,a)))return l;throw gde("Can't convert object to primitive value")}(n,r)}(e,"string");return ew(t)?t:t+""},a3=ne.document,xde=ht(a3)&&ht(a3.createElement),hp=function(e){return xde?a3.createElement(e):{}},qL=!Fo&&!dt(function(){return Object.defineProperty(hp("div"),"a",{get:function(){return 7}}).a!=7}),CF=Object.getOwnPropertyDescriptor,uC={f:Fo?CF:function(e,t){if(e=Ma(e),t=aC(t),qL)try{return CF(e,t)}catch{}if(qt(e,t))return Om(!lt(ide.f,e,t),e[t])}},Ade=ne.String,Ode=ne.TypeError,fn=function(e){if(ht(e))return e;throw Ode(Ade(e)+" is not an object")},Bde=ne.TypeError,SF=Object.defineProperty,ci={f:Fo?SF:function(e,t,n){if(fn(e),t=aC(t),fn(n),qL)try{return SF(e,t,n)}catch{}if("get"in n||"set"in n)throw Bde("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},ga=Fo?function(e,t,n){return ci.f(e,t,Om(1,n))}:function(e,t,n){return e[t]=n,e},kde=Ce(Function.toString);ot(ha.inspectSource)||(ha.inspectSource=function(e){return kde(e)});var Zv,Dd,Qv,km=ha.inspectSource,xF=ne.WeakMap,KL=ot(xF)&&/native code/.test(km(xF)),AF=oC("keys"),sC=function(e){return AF[e]||(AF[e]=iC(e))},Fm={},u3=ne.TypeError,Fde=ne.WeakMap;if(KL||ha.state){var nu=ha.state||(ha.state=new Fde),Tde=Ce(nu.get),OF=Ce(nu.has),_de=Ce(nu.set);Zv=function(e,t){if(OF(nu,e))throw new u3("Object already initialized");return t.facade=e,_de(nu,e,t),t},Dd=function(e){return Tde(nu,e)||{}},Qv=function(e){return OF(nu,e)}}else{var Ws=sC("state");Fm[Ws]=!0,Zv=function(e,t){if(qt(e,Ws))throw new u3("Object already initialized");return t.facade=e,ga(e,Ws,t),t},Dd=function(e){return qt(e,Ws)?e[Ws]:{}},Qv=function(e){return qt(e,Ws)}}var cr={set:Zv,get:Dd,has:Qv,enforce:function(e){return Qv(e)?Dd(e):Zv(e,{})},getterFor:function(e){return function(t){var n;if(!ht(t)||(n=Dd(t)).type!==e)throw u3("Incompatible receiver, "+e+" required");return n}}},YL=Function.prototype,jde=Fo&&Object.getOwnPropertyDescriptor,tw=qt(YL,"name"),Cc={EXISTS:tw,PROPER:tw&&(function(){}).name==="something",CONFIGURABLE:tw&&(!Fo||Fo&&jde(YL,"name").configurable)},or=eC(function(e){var t=Cc.CONFIGURABLE,n=cr.get,r=cr.enforce,o=String(String).split("String");(e.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;ot(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!qt(u,"name")||t&&u.name!==d)&&ga(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==ne?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:ga(i,a,u)):f?i[a]=u:rC(a,u)})(Function.prototype,"toString",function(){return ot(this)&&n(this).source||km(this)})}),Pde=Math.ceil,Ide=Math.floor,Tm=function(e){var t=+e;return t!=t||t===0?0:(t>0?Ide:Pde)(t)},Nde=Math.max,Rde=Math.min,gp=function(e,t){var n=Tm(e);return n<0?Nde(n+t,0):Rde(n,t)},Lde=Math.min,XL=function(e){return e>0?Lde(Tm(e),9007199254740991):0},ph=function(e){return XL(e.length)},BF=function(e){return function(t,n,r){var o,i=Ma(t),a=ph(i),u=gp(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},JL={includes:BF(!0),indexOf:BF(!1)},Mde=JL.indexOf,kF=Ce([].push),ZL=function(e,t){var n,r=Ma(e),o=0,i=[];for(n in r)!qt(Fm,n)&&qt(r,n)&&kF(i,n);for(;t.length>o;)qt(r,n=t[o++])&&(~Mde(i,n)||kF(i,n));return i},e1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],zde=e1.concat("length","prototype"),t1={f:Object.getOwnPropertyNames||function(e){return ZL(e,zde)}},$de={f:Object.getOwnPropertySymbols},Hde=Ce([].concat),Ude=os("Reflect","ownKeys")||function(e){var t=t1.f(fn(e)),n=$de.f;return n?Hde(t,n(e)):t},Vde=function(e,t){for(var n=Ude(t),r=ci.f,o=uC.f,i=0;i<n.length;i++){var a=n[i];qt(e,a)||r(e,a,o(t,a))}},Wde=/#|\.prototype\./,hh=function(e,t){var n=qde[Gde(e)];return n==Yde||n!=Kde&&(ot(t)?dt(t):!!t)},Gde=hh.normalize=function(e){return String(e).replace(Wde,".").toLowerCase()},qde=hh.data={},Kde=hh.NATIVE="N",Yde=hh.POLYFILL="P",n1=hh,Xde=uC.f,$n=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?ne:l?ne[u]||rC(u,{}):(ne[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Xde(n,r))&&a.value:n[r],!n1(s?r:u+(l?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;Vde(i,o)}(e.sham||o&&o.sham)&&ga(i,"sham",!0),or(n,r,i,e)}},QL={};QL[Lt("toStringTag")]="z";var lC=String(QL)==="[object z]",Jde=Lt("toStringTag"),Zde=ne.Object,Qde=So(function(){return arguments}())=="Arguments",_m=lC?So:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(t=Zde(e),Jde))=="string"?n:Qde?So(t):(r=So(t))=="Object"&&ot(t.callee)?"Arguments":r},epe=ne.String,wr=function(e){if(_m(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return epe(e)},s3=`
- \v\f\r \u2028\u2029\uFEFF`,FF=Ce("".replace),r1="["+s3+"]",tpe=RegExp("^"+r1+r1+"*"),npe=RegExp(r1+r1+"*$"),nw=function(e){return function(t){var n=wr(dh(t));return 1&e&&(n=FF(n,tpe,"")),2&e&&(n=FF(n,npe,"")),n}},rpe={start:nw(1),end:nw(2),trim:nw(3)},ope=Cc.PROPER,ipe=rpe.trim;function TF(e){return e.length?e[0].tagName.toLowerCase():""}function eM(e,t,n){t===void 0&&(t="auto"),n===void 0&&(n="auto");var r=k(e);return r.attr("width",t),r.attr("height",n),r[0].outerHTML}$n({target:"String",proto:!0,forced:dt(function(){return!!s3.trim()||"
".trim()!=="
"||ope&&s3.trim.name!=="trim"})},{trim:function(){return ipe(this)}}),$n({global:!0},{globalThis:ne}),Tr&&(k.fn.append=Tr),Bo&&(k.fn.on=Bo),Ca&&(k.fn.focus=Ca),Fr&&(k.fn.attr=Fr),Oo&&(k.fn.val=Oo),Da&&(k.fn.html=Da),Nl&&(k.fn.parent=Nl),jl&&(k.fn.hasClass=jl),zl&&(k.fn.empty=zl);var E0,ape={type:"video",renderElem:function(e,t,n){var r,o=e,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,e);if(a.trim().indexOf("<iframe ")===0)r=be("div",{className:"w-e-textarea-video-container","data-selected":d?"true":"",innerHTML:eM(a,c,p)});else{var m=be("video",{poster:s,controls:!0},be("source",{src:a,type:"video/mp4"}),`Sorry, your browser doesn't support embedded videos.
- 抱歉,浏览器不支持 video 视频`);c!=="auto"&&(m.data.width=c),p!=="auto"&&(m.data.height=p),r=be("div",{className:"w-e-textarea-video-container","data-selected":d?"true":""},m)}return $l("div",{props:{contentEditable:!1},on:{mousedown:function(g){return g.preventDefault()}}},r)}},upe={type:"video",elemToHtml:function(e,t){var n=e,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+=eM(o,s,c):f+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+c+'"><source src="'+o+'" type="video/mp4"/></video>',f+`
- </div>`}},spe=Object.keys||function(e){return ZL(e,e1)},lpe=Fo?Object.defineProperties:function(e,t){fn(e);for(var n,r=Ma(t),o=spe(t),i=o.length,a=0;i>a;)ci.f(e,n=o[a++],r[n]);return e},l3=os("document","documentElement"),tM=sC("IE_PROTO"),rw=function(){},nM=function(e){return"<script>"+e+"<\/script>"},_F=function(e){e.write(nM("")),e.close();var t=e.parentWindow.Object;return e=null,t},dg=function(){try{E0=new ActiveXObject("htmlfile")}catch{}var e,t;dg=typeof document<"u"?document.domain&&E0?_F(E0):((t=hp("iframe")).style.display="none",l3.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(nM("document.F=Object")),e.close(),e.F):_F(E0);for(var n=e1.length;n--;)delete dg.prototype[e1[n]];return dg()};Fm[tM]=!0;var cC=Object.create||function(e,t){var n;return e!==null?(rw.prototype=fn(e),n=new rw,rw.prototype=null,n[tM]=e):n=dg(),t===void 0?n:lpe(n,t)},c3=Lt("unscopables"),f3=Array.prototype;f3[c3]==null&&ci.f(f3,c3,{configurable:!0,value:cC(null)});var Cd=function(e){f3[c3][e]=!0},cpe=JL.includes;$n({target:"Array",proto:!0},{includes:function(e){return cpe(this,e,arguments.length>1?arguments[1]:void 0)}}),Cd("includes");var fpe={selector:"iframe,video,p",preParseHtml:function(e){var t=k(e),n=t;if(TF(t)==="p"){var r=t.children();if(r.length===1){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=k(o))}}var a=TF(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]}},jF=Ce(Ce.bind),vp=function(e,t){return _a(e),t===void 0?e:jF?jF(e,t):function(){return e.apply(t,arguments)}},o1=Array.isArray||function(e){return So(e)=="Array"},rM=function(){},dpe=[],oM=os("Reflect","construct"),fC=/^\s*(?:class|function)\b/,ppe=Ce(fC.exec),hpe=!fC.exec(rM),Ff=function(e){if(!ot(e))return!1;try{return oM(rM,dpe,e),!0}catch{return!1}},dC=!oM||dt(function(){var e;return Ff(Ff.call)||!Ff(Object)||!Ff(function(){e=!0})||e})?function(e){if(!ot(e))return!1;switch(_m(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return hpe||!!ppe(fC,km(e))}:Ff,gpe=Lt("species"),PF=ne.Array,vpe=function(e,t){return new(function(n){var r;return o1(n)&&(r=n.constructor,(dC(r)&&(r===PF||o1(r.prototype))||ht(r)&&(r=r[gpe])===null)&&(r=void 0)),r===void 0?PF:r}(e))(t===0?0:t)},IF=Ce([].push),Ri=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var p,d,m=Bm(s),g=tC(m),v=vp(l,c),y=ph(g),h=0,b=f||vpe,w=t?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in g)&&(d=v(p=g[h],h,m),e))if(t)w[h]=d;else if(d)switch(e){case 3:return!0;case 5:return p;case 6:return h;case 2:IF(w,p)}else switch(e){case 4:return!1;case 7:IF(w,p)}return i?-1:r||o?o:w}},pC={forEach:Ri(0),map:Ri(1),filter:Ri(2),some:Ri(3),every:Ri(4),find:Ri(5),findIndex:Ri(6),filterReject:Ri(7)},mpe=pC.find,NF=!0;"find"in[]&&Array(1).find(function(){NF=!1}),$n({target:"Array",proto:!0,forced:NF},{find:function(e){return mpe(this,e,arguments.length>1?arguments[1]:void 0)}}),Cd("find");var ype=lC?{}.toString:function(){return"[object "+_m(this)+"]"};function RF(e,t,n,r){return t===void 0&&(t=""),n===void 0&&(n="auto"),r===void 0&&(r="auto"),{type:"video",src:e,poster:t,width:n,height:r,children:[{text:""}]}}lC||or(Object.prototype,"toString",ype,{unsafe:!0});var LF,ow,bpe={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=k(e),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",RF(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",RF(o,i=l.attr("poster")||"",a,u)}},iM=function(){var e=fn(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},hC=ne.RegExp,d3=dt(function(){var e=hC("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),wpe=d3||dt(function(){return!hC("a","y").sticky}),Epe={BROKEN_CARET:d3||dt(function(){var e=hC("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:wpe,UNSUPPORTED_Y:d3},Dpe=ne.RegExp,Cpe=dt(function(){var e=Dpe(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")}),Spe=ne.RegExp,xpe=dt(function(){var e=Spe("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Ape=cr.get,Ope=oC("native-string-replace",String.prototype.replace),i1=RegExp.prototype.exec,p3=i1,Bpe=Ce("".charAt),kpe=Ce("".indexOf),Fpe=Ce("".replace),iw=Ce("".slice),aw=(ow=/b*/g,lt(i1,LF=/a/,"a"),lt(i1,ow,"a"),LF.lastIndex!==0||ow.lastIndex!==0),MF=Epe.BROKEN_CARET,uw=/()??/.exec("")[1]!==void 0;(aw||uw||MF||Cpe||xpe)&&(p3=function(e){var t,n,r,o,i,a,u,s=this,l=Ape(s),c=wr(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=lt(p3,f,c),s.lastIndex=f.lastIndex,t;var p=l.groups,d=MF&&s.sticky,m=lt(iM,s),g=s.source,v=0,y=c;if(d&&(m=Fpe(m,"y",""),kpe(m,"g")===-1&&(m+="g"),y=iw(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Bpe(c,s.lastIndex-1)!==`
- `)&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",m)),uw&&(n=new RegExp("^"+g+"$(?!\\s)",m)),aw&&(r=s.lastIndex),o=lt(i1,d?n:s,y),d?o?(o.input=iw(o.input,v),o[0]=iw(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:aw&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),uw&&o&&o.length>1&<(Ope,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=cC(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var a1=p3;$n({target:"RegExp",proto:!0,forced:/./.exec!==a1},{exec:a1});var gC=Function.prototype,zF=gC.apply,Tpe=gC.bind,$F=gC.call,aM=typeof Reflect=="object"&&Reflect.apply||(Tpe?$F.bind(zF):function(){return $F.apply(zF,arguments)}),HF=(Lt("species"),RegExp.prototype),_pe=Ce("".charAt),UF=Ce("".charCodeAt),jpe=Ce("".slice),VF=function(e){return function(t,n){var r,o,i=wr(dh(t)),a=Tm(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=UF(i,a))<55296||r>56319||a+1===u||(o=UF(i,a+1))<56320||o>57343?e?_pe(i,a):r:e?jpe(i,a,a+2):o-56320+(r-55296<<10)+65536}},uM={codeAt:VF(!1),charAt:VF(!0)},Ppe=uM.charAt,Ipe=function(e,t,n){return t+(n?Ppe(e,t).length:1)},Npe=Math.floor,sw=Ce("".charAt),Rpe=Ce("".replace),lw=Ce("".slice),Lpe=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Mpe=/\$([$&'`]|\d{1,2})/g,zpe=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=Mpe;return o!==void 0&&(o=Bm(o),s=Lpe),Rpe(i,s,function(l,c){var f;switch(sw(c,0)){case"$":return"$";case"&":return e;case"`":return lw(t,0,n);case"'":return lw(t,a);case"<":f=o[lw(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=Npe(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})},$pe=ne.TypeError,Hpe=function(e,t){var n=e.exec;if(ot(n)){var r=lt(n,e,t);return r!==null&&fn(r),r}if(So(e)==="RegExp")return lt(a1,e,t);throw $pe("RegExp#exec called on incompatible receiver")},h3=Lt("replace"),Upe=Math.max,Vpe=Math.min,Wpe=Ce([].concat),cw=Ce([].push),WF=Ce("".indexOf),GF=Ce("".slice),Gpe="a".replace(/./,"$0")==="$0",qF=!!/./[h3]&&/./[h3]("a","$0")==="";function sM(e){return e===void 0&&(e="r"),e+"-"+yP()}(function(e,t,n,r){var o=Lt(e),i=!dt(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!dt(function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=Ce(/./[o]),s=function(l,c,f){var p=qF?"$":"$0";return[function(d,m){var g=dh(this),v=d==null?void 0:pp(d,h3);return v?lt(v,d,g,m):lt(c,wr(g),d,m)},function(d,m){var g=fn(this),v=wr(d);if(typeof m=="string"&&WF(m,p)===-1&&WF(m,"$<")===-1){var y=f(c,g,v,m);if(y.done)return y.value}var h=ot(m);h||(m=wr(m));var b=g.global;if(b){var w=g.unicode;g.lastIndex=0}for(var D=[];;){var S=Hpe(g,v);if(S===null||(cw(D,S),!b))break;wr(S[0])===""&&(g.lastIndex=Ipe(v,XL(g.lastIndex),w))}for(var C,O="",F=0,L=0;L<D.length;L++){for(var H=wr((S=D[L])[0]),M=Upe(Vpe(Tm(S.index),v.length),0),K=[],V=1;V<S.length;V++)cw(K,(C=S[V])===void 0?C:String(C));var G=S.groups;if(h){var q=Wpe([H],K,M,v);G!==void 0&&cw(q,G);var re=wr(aM(m,void 0,q))}else re=zpe(H,v,M,K,G,m);M>=F&&(O+=GF(v,F,M)+re,F=M+H.length)}return O+GF(v,F)}]}(0,""[e],function(l,c,f,p,d){var m=Ce(l),g=c.exec;return g===a1||g===HF.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:m(f,c,p)}:{done:!1}});or(String.prototype,e,s[0]),or(HF,o,s[1])}})("replace",0,!!dt(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!Gpe||qF);var u1=ne.Promise,s1=function(e,t,n){for(var r in t)or(e,r,t[r],n);return e},qpe=ne.String,Kpe=ne.TypeError,Zl=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Ce(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return fn(r),function(i){if(typeof i=="object"||ot(i))return i;throw Kpe("Can't set "+qpe(i)+" as a prototype")}(o),t?e(r,o):r.__proto__=o,r}}():void 0),Ype=ci.f,KF=Lt("toStringTag"),l1=function(e,t,n){e&&!qt(e=n?e:e.prototype,KF)&&Ype(e,KF,{configurable:!0,value:t})},YF=Lt("species"),Xpe=ne.TypeError,vC=function(e,t){if(fp(t,e))return e;throw Xpe("Incorrect invocation")},Ql={},Jpe=Lt("iterator"),Zpe=Array.prototype,Qpe=Lt("iterator"),XF=function(e){if(e!=null)return pp(e,Qpe)||pp(e,"@@iterator")||Ql[_m(e)]},ehe=ne.TypeError,JF=function(e,t,n){var r,o;fn(e);try{if(!(r=pp(e,"return"))){if(t==="throw")throw n;return n}r=lt(r,e)}catch(i){o=!0,r=i}if(t==="throw")throw n;if(o)throw r;return fn(r),n},the=ne.TypeError,pg=function(e,t){this.stopped=e,this.result=t},ZF=pg.prototype,c1=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,p=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),m=!(!n||!n.INTERRUPTED),g=vp(t,f),v=function(h){return r&&JF(r,"normal",h),new pg(!0,h)},y=function(h){return p?(fn(h),m?g(h[0],h[1],v):g(h[0],h[1])):m?g(h,v):g(h)};if(d)r=e;else{if(!(o=XF(e)))throw the(Jv(e)+" is not iterable");if((c=o)!==void 0&&(Ql.Array===c||Zpe[Jpe]===c)){for(i=0,a=ph(e);a>i;i++)if((u=y(e[i]))&&fp(ZF,u))return u;return new pg(!1)}r=function(h,b){var w=arguments.length<2?XF(h):b;if(_a(w))return fn(lt(w,h));throw ehe(Jv(h)+" is not iterable")}(e,o)}for(s=r.next;!(l=lt(s,r)).done;){try{u=y(l.value)}catch(h){JF(r,"throw",h)}if(typeof u=="object"&&u&&fp(ZF,u))return u}return new pg(!1)},lM=Lt("iterator"),cM=!1;try{var nhe=0,QF={next:function(){return{done:!!nhe++}},return:function(){cM=!0}};QF[lM]=function(){return this},Array.from(QF,function(){throw 2})}catch{}var mp,Gs,eT,fw,fM=function(e,t){if(!t&&!cM)return!1;var n=!1;try{var r={};r[lM]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},rhe=ne.TypeError,ohe=Lt("species"),dM=Ce([].slice),pM=/(?:ipad|iphone|ipod).*applewebkit/i.test(El),va=So(ne.process)=="process",g3=ne.setImmediate,v3=ne.clearImmediate,ihe=ne.process,dw=ne.Dispatch,ahe=ne.Function,tT=ne.MessageChannel,uhe=ne.String,pw=0,Sd={};try{mp=ne.location}catch{}var mC=function(e){if(qt(Sd,e)){var t=Sd[e];delete Sd[e],t()}},hw=function(e){return function(){mC(e)}},nT=function(e){mC(e.data)},rT=function(e){ne.postMessage(uhe(e),mp.protocol+"//"+mp.host)};g3&&v3||(g3=function(e){var t=dM(arguments,1);return Sd[++pw]=function(){aM(ot(e)?e:ahe(e),void 0,t)},Gs(pw),pw},v3=function(e){delete Sd[e]},va?Gs=function(e){ihe.nextTick(hw(e))}:dw&&dw.now?Gs=function(e){dw.now(hw(e))}:tT&&!pM?(fw=(eT=new tT).port2,eT.port1.onmessage=nT,Gs=vp(fw.postMessage,fw)):ne.addEventListener&&ot(ne.postMessage)&&!ne.importScripts&&mp&&mp.protocol!=="file:"&&!dt(rT)?(Gs=rT,ne.addEventListener("message",nT,!1)):Gs="onreadystatechange"in hp("script")?function(e){l3.appendChild(hp("script")).onreadystatechange=function(){l3.removeChild(this),mC(e)}}:function(e){setTimeout(hw(e),0)});var Tf,hu,xd,il,gw,vw,mw,oT,hM={set:g3,clear:v3},she=/ipad|iphone|ipod/i.test(El)&&ne.Pebble!==void 0,lhe=/web0s(?!.*chrome)/i.test(El),che=uC.f,yw=hM.set,iT=ne.MutationObserver||ne.WebKitMutationObserver,aT=ne.document,uT=ne.process,D0=ne.Promise,sT=che(ne,"queueMicrotask"),gM=sT&&sT.value;gM||(Tf=function(){var e,t;for(va&&(e=uT.domain)&&e.exit();hu;){t=hu.fn,hu=hu.next;try{t()}catch(n){throw hu?il():xd=void 0,n}}xd=void 0,e&&e.enter()},pM||va||lhe||!iT||!aT?!she&&D0&&D0.resolve?((mw=D0.resolve(void 0)).constructor=D0,oT=vp(mw.then,mw),il=function(){oT(Tf)}):va?il=function(){uT.nextTick(Tf)}:(yw=vp(yw,ne),il=function(){yw(Tf)}):(gw=!0,vw=aT.createTextNode(""),new iT(Tf).observe(vw,{characterData:!0}),il=function(){vw.data=gw=!gw}));var bw,lT,vM,cT,mM=gM||function(e){var t={fn:e,next:void 0};xd&&(xd.next=t),hu||(hu=t,il()),xd=t},fhe=function(e){var t,n;this.promise=new e(function(r,o){if(t!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");t=r,n=o}),this.resolve=_a(t),this.reject=_a(n)},yC={f:function(e){return new fhe(e)}},m3=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},dhe=typeof window=="object",yM=hM.set,phe=Lt("species"),Xo="Promise",fT=cr.getterFor(Xo),hhe=cr.set,ghe=cr.getterFor(Xo),su=u1&&u1.prototype,wo=u1,_f=su,bM=ne.TypeError,y3=ne.document,bC=ne.process,Dl=yC.f,vhe=Dl,mhe=!!(y3&&y3.createEvent&&ne.dispatchEvent),wM=ot(ne.PromiseRejectionEvent),EM=!1,Ad=n1(Xo,function(){var e=km(wo),t=e!==String(wo);if(!t&&dp===66)return!0;if(dp>=51&&/native code/.test(e))return!1;var n=new wo(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[phe]=r,!(EM=n.then(function(){})instanceof r)||!t&&dhe&&!wM}),yhe=Ad||!fM(function(e){wo.all(e).catch(function(){})}),DM=function(e){var t;return!(!ht(e)||!ot(t=e.then))&&t},wC=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;mM(function(){for(var r=e.value,o=e.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||(e.rejection===2&&whe(e),e.rejection=1),c===!0?a=r:(d&&d.enter(),a=c(r),d&&(d.exit(),s=!0)),a===l.promise?p(bM("Promise-chain cycle")):(u=DM(a))?lt(u,a,f,p):f(a)):p(r)}catch(m){d&&!s&&d.exit(),p(m)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&bhe(e)})}},CM=function(e,t,n){var r,o;mhe?((r=y3.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),ne.dispatchEvent(r)):r={promise:t,reason:n},!wM&&(o=ne["on"+e])?o(r):e==="unhandledrejection"&&function(i,a){var u=ne.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))}("Unhandled promise rejection",n)},bhe=function(e){lt(yM,ne,function(){var t,n=e.facade,r=e.value;if(dT(e)&&(t=m3(function(){va?bC.emit("unhandledRejection",r,n):CM("unhandledrejection",n,r)}),e.rejection=va||dT(e)?2:1,t.error))throw t.value})},dT=function(e){return e.rejection!==1&&!e.parent},whe=function(e){lt(yM,ne,function(){var t=e.facade;va?bC.emit("rejectionHandled",t):CM("rejectionhandled",t,e.value)})},fl=function(e,t,n){return function(r){e(t,r,n)}},Cl=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,wC(e,!0))},b3=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw bM("Promise can't be resolved itself");var r=DM(t);r?mM(function(){var o={done:!1};try{lt(r,t,fl(b3,o,e),fl(Cl,o,e))}catch(i){Cl(o,i,e)}}):(e.value=t,e.state=1,wC(e,!1))}catch(o){Cl({done:!1},o,e)}}};if(Ad&&(_f=(wo=function(e){vC(this,_f),_a(e),lt(bw,this);var t=fT(this);try{e(fl(b3,t),fl(Cl,t))}catch(n){Cl(t,n)}}).prototype,(bw=function(e){hhe(this,{type:Xo,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=s1(_f,{then:function(e,t){var n=ghe(this),r=n.reactions,o=Dl(function(i,a){var u,s=fn(i).constructor;return s===void 0||(u=fn(s)[ohe])==null?a:function(l){if(dC(l))return l;throw rhe(Jv(l)+" is not a constructor")}(u)}(this,wo));return o.ok=!ot(e)||e,o.fail=ot(t)&&t,o.domain=va?bC.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&wC(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),lT=function(){var e=new bw,t=fT(e);this.promise=e,this.resolve=fl(b3,t),this.reject=fl(Cl,t)},yC.f=Dl=function(e){return e===wo||e===vM?new lT(e):vhe(e)},ot(u1)&&su!==Object.prototype)){cT=su.then,EM||(or(su,"then",function(e,t){var n=this;return new wo(function(r,o){lt(cT,n,r,o)}).then(e,t)},{unsafe:!0}),or(su,"catch",_f.catch,{unsafe:!0}));try{delete su.constructor}catch{}Zl&&Zl(su,_f)}function yp(e,t,n){return n===void 0&&(n=""),xm(this,void 0,void 0,function(){var r,o,i,a,u,s,l;return Am(this,function(c){switch(c.label){case 0:return t?(e.restoreSelection(),r=e.getMenuConfig("insertVideo"),o=r.onInsertedVideo,i=r.checkVideo,a=r.parseVideoSrc,[4,i(t,n)]):[2];case 1:return typeof(u=c.sent())=="string"?(e.alert(u,"error"),[2]):u==null?[2]:[4,a(t)];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(e,l)}),o(l),[2]}})})}function ww(){return sM("w-e-insert-video")}$n({global:!0,wrap:!0,forced:Ad},{Promise:wo}),l1(wo,Xo,!1),function(e){var t=os("Promise"),n=ci.f;Fo&&t&&!t[YF]&&n(t,YF,{configurable:!0,get:function(){return this}})}(),vM=os(Xo),$n({target:Xo,stat:!0,forced:Ad},{reject:function(e){var t=Dl(this);return lt(t.reject,void 0,e),t.promise}}),$n({target:Xo,stat:!0,forced:Ad},{resolve:function(e){return function(t,n){if(fn(t),ht(n)&&n.constructor===t)return n;var r=yC.f(t);return(0,r.resolve)(n),r.promise}(this,e)}}),$n({target:Xo,stat:!0,forced:yhe},{all:function(e){var t=this,n=Dl(t),r=n.resolve,o=n.reject,i=m3(function(){var a=_a(t.resolve),u=[],s=0,l=1;c1(e,function(c){var f=s++,p=!1;l++,lt(a,t,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(e){var t=this,n=Dl(t),r=n.reject,o=m3(function(){var i=_a(t.resolve);c1(e,function(a){lt(i,t,a).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var Ehe=function(){function e(){this.title=Q("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=ww(),this.posterInputId=ww(),this.buttonId=ww()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!R.isCollapsed(n)||!!A.getSelectedElems(t).some(function(r){var o=A.getNodeType(r);return o==="pre"||o==="list-item"||!!t.isVoid(r)})},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var n=this,r=this,o=r.srcInputId,i=r.posterInputId,a=r.buttonId,u=Mu(nr(Q("videoModule.videoSrc"),o,Q("videoModule.videoSrcPlaceHolder")),2),s=u[0],l=u[1],c=Mu(nr(Q("videoModule.videoPoster"),i,Q("videoModule.videoPosterPlaceHolder")),2),f=c[0],p=c[1],d=k(l),m=k(p),g=Mu(pc(a,Q("videoModule.ok")),1)[0];if(this.$content==null){var v=k("<div></div>");v.on("click","#"+a,function(h){return xm(n,void 0,void 0,function(){var b,w;return Am(this,function(D){switch(D.label){case 0:return h.preventDefault(),b=v.find("#"+o).val().trim(),w=v.find("#"+i).val().trim(),[4,yp(t,b,w)];case 1:return D.sent(),t.hidePanelOrModal(),[2]}})})}),this.$content=v}var y=this.$content;return y.empty(),y.append(s),y.append(f),y.append(g),d.val(""),m.val(""),setTimeout(function(){d.focus()}),y[0]},e}(),Dhe=Ce([].join),Che=tC!=Object,She=function(e,t){var n=[].join;return!!n&&dt(function(){n.call(null,",",1)})}();$n({target:"Array",proto:!0,forced:Che||!She},{join:function(e){return Dhe(Ma(this),e===void 0?",":e)}});var $u,pT,hT,xhe=!dt(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),gT=sC("IE_PROTO"),w3=ne.Object,Ahe=w3.prototype,f1=xhe?w3.getPrototypeOf:function(e){var t=Bm(e);if(qt(t,gT))return t[gT];var n=t.constructor;return ot(n)&&t instanceof n?n.prototype:t instanceof w3?Ahe:null},E3=Lt("iterator"),SM=!1;[].keys&&("next"in(hT=[].keys())?(pT=f1(f1(hT)))!==Object.prototype&&($u=pT):SM=!0);var Ohe=$u==null||dt(function(){var e={};return $u[E3].call(e)!==e});Ohe&&($u={}),ot($u[E3])||or($u,E3,function(){return this});var EC={IteratorPrototype:$u,BUGGY_SAFARI_ITERATORS:SM},Bhe=EC.IteratorPrototype,khe=function(){return this},Fhe=Cc.PROPER,The=Cc.CONFIGURABLE,vT=EC.IteratorPrototype,C0=EC.BUGGY_SAFARI_ITERATORS,jf=Lt("iterator"),_he=function(){return this},xM=function(e,t,n,r,o,i,a){(function(y,h,b,w){var D=h+" Iterator";y.prototype=cC(Bhe,{next:Om(1,b)}),l1(y,D,!1),Ql[D]=khe})(n,t,r);var u,s,l,c=function(y){if(y===o&&g)return g;if(!C0&&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=t+" Iterator",p=!1,d=e.prototype,m=d[jf]||d["@@iterator"]||o&&d[o],g=!C0&&m||c(o),v=t=="Array"&&d.entries||m;if(v&&(u=f1(v.call(new e)))!==Object.prototype&&u.next&&(f1(u)!==vT&&(Zl?Zl(u,vT):ot(u[jf])||or(u,jf,_he)),l1(u,f,!0)),Fhe&&o=="values"&&m&&m.name!=="values"&&(The?ga(d,"name","values"):(p=!0,g=function(){return lt(m,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(C0||p||!(l in d))&&or(d,l,s[l]);else $n({target:t,proto:!0,forced:C0||p},s);return d[jf]!==g&&or(d,jf,g,{name:o}),Ql[t]=g,s},jhe=cr.set,Phe=cr.getterFor("Array Iterator"),rd=xM(Array,"Array",function(e,t){jhe(this,{type:"Array Iterator",target:Ma(e),index:0,kind:t})},function(){var e=Phe(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values");Ql.Arguments=Ql.Array,Cd("keys"),Cd("values"),Cd("entries");var Ihe=uM.charAt,Nhe=cr.set,Rhe=cr.getterFor("String Iterator");xM(String,"String",function(e){Nhe(this,{type:"String Iterator",string:wr(e),index:0})},function(){var e,t=Rhe(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Ihe(n,r),t.index+=e.length,{value:e,done:!1})});var AM=function(e,t,n){var r=aC(t);r in e?ci.f(e,r,Om(0,n)):e[r]=n},Lhe=ne.Array,Mhe=Math.max,mT=t1.f,yT=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],zhe={f:function(e){return yT&&So(e)=="Window"?function(t){try{return mT(t)}catch{return function(n,r,o){for(var i=ph(n),a=gp(void 0,i),u=gp(i,i),s=Lhe(Mhe(u-a,0)),l=0;a<u;a++,l++)AM(s,l,n[a]);return s.length=l,s}(yT)}}(e):mT(Ma(e))}},bT=dt(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),S0=Object.isExtensible,bu=dt(function(){S0(1)})||bT?function(e){return!!ht(e)&&(!bT||So(e)!="ArrayBuffer")&&(!S0||S0(e))}:S0,$he=!dt(function(){return Object.isExtensible(Object.preventExtensions({}))}),DC=eC(function(e){var t=ci.f,n=!1,r=iC("meta"),o=0,i=function(u){t(u,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var u=t1.f,s=Ce([].splice),l={};l[r]=1,u(l).length&&(t1.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},$n({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:zhe.f}))},fastKey:function(u,s){if(!ht(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!qt(u,r)){if(!bu(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!qt(u,r)){if(!bu(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return $he&&n&&bu(u)&&!qt(u,r)&&i(u),u}};Fm[r]=!0}),x0=DC.getWeakData,Hhe=cr.set,Uhe=cr.getterFor,Vhe=pC.find,Whe=pC.findIndex,Ghe=Ce([].splice),qhe=0,A0=function(e){return e.frozen||(e.frozen=new OM)},OM=function(){this.entries=[]},Ew=function(e,t){return Vhe(e.entries,function(n){return n[0]===t})};OM.prototype={get:function(e){var t=Ew(this,e);if(t)return t[1]},has:function(e){return!!Ew(this,e)},set:function(e,t){var n=Ew(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Whe(this.entries,function(n){return n[0]===e});return~t&&Ghe(this.entries,t,1),!!~t}};var Pf,BM={getConstructor:function(e,t,n,r){var o=e(function(s,l){vC(s,i),Hhe(s,{type:t,id:qhe++,frozen:void 0}),l!=null&&c1(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=Uhe(t),u=function(s,l,c){var f=a(s),p=x0(fn(l),!0);return p===!0?A0(f).set(l,c):p[f.id]=c,s};return s1(i,{delete:function(s){var l=a(this);if(!ht(s))return!1;var c=x0(s);return c===!0?A0(l).delete(s):c&&qt(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!ht(s))return!1;var c=x0(s);return c===!0?A0(l).has(s):c&&qt(c,l.id)}}),s1(i,n?{get:function(s){var l=a(this);if(ht(s)){var c=x0(s);return c===!0?A0(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}},O0=cr.enforce,Khe=!ne.ActiveXObject&&"ActiveXObject"in ne,kM=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Yhe=function(e,t,n){var r=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,i=r?"set":"add",a=ne[e],u=a&&a.prototype,s=a,l={},c=function(v){var y=Ce(u[v]);or(u,v,v=="add"?function(h){return y(this,h===0?0:h),this}:v=="delete"?function(h){return!(o&&!ht(h))&&y(this,h===0?0:h)}:v=="get"?function(h){return o&&!ht(h)?void 0:y(this,h===0?0:h)}:v=="has"?function(h){return!(o&&!ht(h))&&y(this,h===0?0:h)}:function(h,b){return y(this,h===0?0:h,b),this})};if(n1(e,!ot(a)||!(o||u.forEach&&!dt(function(){new a().entries().next()}))))s=n.getConstructor(t,e,r,i),DC.enable();else if(n1(e,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=dt(function(){f.has(1)}),m=fM(function(v){new a(v)}),g=!o&&dt(function(){for(var v=new a,y=5;y--;)v[i](y,y);return!v.has(-0)});m||((s=t(function(v,y){vC(v,u);var h=function(b,w,D){var S,C;return Zl&&ot(S=w.constructor)&&S!==D&&ht(C=S.prototype)&&C!==D.prototype&&Zl(b,C),b}(new a,v,s);return y!=null&&c1(y,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(d||g)&&(c("delete"),c("has"),r&&c("get")),(g||p)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,$n({global:!0,forced:s!=a},l),l1(s,e),o||n.setStrong(s,e,r),s}("WeakMap",kM,BM);if(KL&&Khe){Pf=BM.getConstructor(kM,"WeakMap",!0),DC.enable();var If=Yhe.prototype,wT=Ce(If.delete),B0=Ce(If.has),ET=Ce(If.get),DT=Ce(If.set);s1(If,{delete:function(e){if(ht(e)&&!bu(e)){var t=O0(this);return t.frozen||(t.frozen=new Pf),wT(this,e)||t.frozen.delete(e)}return wT(this,e)},has:function(e){if(ht(e)&&!bu(e)){var t=O0(this);return t.frozen||(t.frozen=new Pf),B0(this,e)||t.frozen.has(e)}return B0(this,e)},get:function(e){if(ht(e)&&!bu(e)){var t=O0(this);return t.frozen||(t.frozen=new Pf),B0(this,e)?ET(this,e):t.frozen.get(e)}return ET(this,e)},set:function(e,t){if(ht(e)&&!bu(e)){var n=O0(this);n.frozen||(n.frozen=new Pf),B0(this,e)?DT(this,e,t):n.frozen.set(e,t)}else DT(this,e,t);return this}})}var FM={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},Dw=hp("span").classList,CT=Dw&&Dw.constructor&&Dw.constructor.prototype,Xhe=CT===Object.prototype?void 0:CT,Cw=Lt("iterator"),ST=Lt("toStringTag"),Sw=rd.values,TM=function(e,t){if(e){if(e[Cw]!==Sw)try{ga(e,Cw,Sw)}catch{e[Cw]=Sw}if(e[ST]||ga(e,ST,t),FM[t]){for(var n in rd)if(e[n]!==rd[n])try{ga(e,n,rd[n])}catch{e[n]=rd[n]}}}};for(var xw in FM)TM(ne[xw]&&ne[xw].prototype,xw);TM(Xhe,"DOMTokenList");var Jhe=Cc.EXISTS,Zhe=ci.f,_M=Function.prototype,Qhe=Ce(_M.toString),jM=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,e0e=Ce(jM.exec);Fo&&!Jhe&&Zhe(_M,"name",{configurable:!0,get:function(){try{return e0e(jM,Qhe(this))[1]}catch{return""}}});var t0e=Lt("species"),n0e=dp>=51||!dt(function(){var e=[];return(e.constructor={})[t0e]=function(){return{foo:1}},e.slice(Boolean).foo!==1}),r0e=Lt("species"),Aw=ne.Array,o0e=Math.max;function PM(e){return e.getMenuConfig("uploadVideo")}$n({target:"Array",proto:!0,forced:!n0e},{slice:function(e,t){var n,r,o,i=Ma(this),a=ph(i),u=gp(e,a),s=gp(t===void 0?a:t,a);if(o1(i)&&(n=i.constructor,(dC(n)&&(n===Aw||o1(n.prototype))||ht(n)&&(n=n[r0e])===null)&&(n=void 0),n===Aw||n===void 0))return dM(i,u,s);for(r=new(n===void 0?Aw:n)(o0e(s-u,0)),o=0;u<s;u++,o++)u in i&&AM(r,o,i[u]);return r.length=o,r}});var xT=new WeakMap;function i0e(e,t){return xm(this,void 0,void 0,function(){var n,r,o,i;return Am(this,function(a){switch(a.label){case 0:return n=function(u){var s=xT.get(u);if(s!=null)return s;var l=PM(u),c=l.onSuccess,f=l.onProgress,p=l.onFailed,d=l.customInsert,m=l.onError;return s=aN(Xv(Xv({},l),{onProgress:function(g){u.showProgressBar(g),f&&f(g)},onSuccess:function(g,v){if(d)return d(v,function(O,F){return yp(u,O,F)}),void c(g,v);var y=v.errno,h=y===void 0?1:y,b=v.data,w=b===void 0?{}:b;if(h===0){var D=w.url,S=D===void 0?"":D,C=w.poster;yp(u,S,C===void 0?"":C),c(g,v)}else p(g,v)},onError:function(g,v,y){m(g,v,y)}})),xT.set(u,s),s}(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}})})}var a0e=function(){function e(){this.title=Q("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 e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){var r=this.getMenuConfig(t),o=r.allowedFileTypes,i=o===void 0?[]:o,a=r.customBrowseAndUpload;if(a)a(function(c,f){return yp(t,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,m;xm(this,void 0,void 0,function(){var g,v,y,h,b,w;return Am(this,function(D){switch(D.label){case 0:if(p==null)return[2];g=Array.prototype.slice.call(p),v=PM(f).customUpload,D.label=1;case 1:D.trys.push([1,9,10,15]),y=ode(g),D.label=2;case 2:return[4,y.next()];case 3:return(h=D.sent()).done?[3,8]:(b=h.value,v?[4,v(b,function(S,C){return yp(f,S,C)})]:[3,5]);case 4:return D.sent(),[3,7];case 5:return[4,i0e(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&&(m=y.return)?[4,m.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]}})})})(t,c)})}},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!R.isCollapsed(n)||!!A.getSelectedElems(t).some(function(r){var o=A.getNodeType(r);return o==="pre"||o==="list-item"||!!t.isVoid(r)})},e.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadVideo")},e}(),u0e=Cc.PROPER,D3=RegExp.prototype,IM=D3.toString,s0e=Ce(iM),l0e=dt(function(){return IM.call({source:"a",flags:"b"})!="/a/b"}),c0e=u0e&&IM.name!="toString";function Ow(){return sM("w-e-insert-video")}(l0e||c0e)&&or(RegExp.prototype,"toString",function(){var e=fn(this),t=wr(e.source),n=e.flags;return"/"+t+"/"+wr(n===void 0&&fp(D3,e)&&!("flags"in D3)?s0e(e):n)},{unsafe:!0});var f0e=function(){function e(){this.title=Q("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=Ow(),this.heightInputId=Ow(),this.buttonId=Ow()}return e.prototype.getSelectedVideoNode=function(t){return A.getSelectedNodeByType(t,"video")},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedVideoNode(t)==null},e.prototype.getModalPositionNode=function(t){return this.getSelectedVideoNode(t)},e.prototype.getModalContentElem=function(t){var n=this,r=n.widthInputId,o=n.heightInputId,i=n.buttonId,a=Mu(nr(Q("videoModule.width"),r,"auto"),2),u=a[0],s=k(a[1]),l=Mu(nr(Q("videoModule.height"),o,"auto"),2),c=l[0],f=k(l[1]),p=Mu(pc(i,Q("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(),S=d.find("#"+o).val().trim(),C=parseInt(D),O=parseInt(S),F=C?C.toString():"auto",L=O?O.toString():"auto";t.restoreSelection(),I.setNodes(t,{width:F,height:L},{match:function(H){return A.checkNodeType(H,"video")}}),t.hidePanelOrModal()}),this.$content=d}var m=this.$content;m.empty(),m.append(u),m.append(c),m.append(p);var g=this.getSelectedVideoNode(t);if(g==null)return m[0];var v=g.width,y=v===void 0?"auto":v,h=g.height,b=h===void 0?"auto":h;return s.val(y),f.val(b),setTimeout(function(){s.focus()}),m[0]},e}(),d0e={renderElems:[ape],elemsToHtml:[upe],preParseHtml:[fpe],parseElemsHtml:[bpe],menus:[{key:"insertVideo",factory:function(){return new Ehe},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new a0e},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){},onError:function(e,t,n){}}},{key:"editVideoSize",factory:function(){return new f0e}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(o){return o.type==="video"||t(o)},r.normalizeNode=function(o){var i=Mu(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}};qn("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),qn("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var AT=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function CC(e){var t={exports:{}};return e(t,t.exports),t.exports}var Li,hg,k0=function(e){return e&&e.Math==Math&&e},te=k0(typeof globalThis=="object"&&globalThis)||k0(typeof window=="object"&&window)||k0(typeof self=="object"&&self)||k0(typeof AT=="object"&&AT)||function(){return this}()||Function("return this")(),vt=function(e){try{return!!e()}catch{return!0}},To=!vt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Nf=Function.prototype.call,Ze=Nf.bind?Nf.bind(Nf):function(){return Nf.apply(Nf,arguments)},OT={}.propertyIsEnumerable,BT=Object.getOwnPropertyDescriptor,p0e={f:BT&&!OT.call({1:2},1)?function(e){var t=BT(this,e);return!!t&&t.enumerable}:OT},jm=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},NM=Function.prototype,C3=NM.bind,S3=NM.call,h0e=C3&&C3.bind(S3),Te=C3?function(e){return e&&h0e(S3,e)}:function(e){return e&&function(){return S3.apply(e,arguments)}},g0e=Te({}.toString),v0e=Te("".slice),Qr=function(e){return v0e(g0e(e),8,-1)},Bw=te.Object,m0e=Te("".split),SC=vt(function(){return!Bw("z").propertyIsEnumerable(0)})?function(e){return Qr(e)=="String"?m0e(e,""):Bw(e)}:Bw,y0e=te.TypeError,bp=function(e){if(e==null)throw y0e("Can't call method on "+e);return e},za=function(e){return SC(bp(e))},at=function(e){return typeof e=="function"},ft=function(e){return typeof e=="object"?e!==null:at(e)},b0e=function(e){return at(e)?e:void 0},is=function(e,t){return arguments.length<2?b0e(te[e]):te[e]&&te[e][t]},wp=Te({}.isPrototypeOf),Sl=is("navigator","userAgent")||"",kT=te.process,FT=te.Deno,TT=kT&&kT.versions||FT&&FT.version,_T=TT&&TT.v8;_T&&(hg=(Li=_T.split("."))[0]>0&&Li[0]<4?1:+(Li[0]+Li[1])),!hg&&Sl&&(!(Li=Sl.match(/Edge\/(\d+)/))||Li[1]>=74)&&(Li=Sl.match(/Chrome\/(\d+)/))&&(hg=+Li[1]);var Ep=hg,x3=!!Object.getOwnPropertySymbols&&!vt(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Ep&&Ep<41}),xC=x3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",w0e=te.Object,kw=xC?function(e){return typeof e=="symbol"}:function(e){var t=is("Symbol");return at(t)&&wp(t.prototype,w0e(e))},E0e=te.String,d1=function(e){try{return E0e(e)}catch{return"Object"}},D0e=te.TypeError,ja=function(e){if(at(e))return e;throw D0e(d1(e)+" is not a function")},Dp=function(e,t){var n=e[t];return n==null?void 0:ja(n)},C0e=te.TypeError,S0e=Object.defineProperty,AC=function(e,t){try{S0e(te,e,{value:t,configurable:!0,writable:!0})}catch{te[e]=t}return t},ma=te["__core-js_shared__"]||AC("__core-js_shared__",{}),OC=CC(function(e){(e.exports=function(t,n){return ma[t]||(ma[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),x0e=te.Object,BC=function(e){return x0e(bp(e))},A0e=Te({}.hasOwnProperty),Kt=Object.hasOwn||function(e,t){return A0e(BC(e),t)},O0e=0,B0e=Math.random(),k0e=Te(1 .toString),kC=function(e){return"Symbol("+(e===void 0?"":e)+")_"+k0e(++O0e+B0e,36)},Rf=OC("wks"),Hu=te.Symbol,jT=Hu&&Hu.for,F0e=xC?Hu:Hu&&Hu.withoutSetter||kC,Mt=function(e){if(!Kt(Rf,e)||!x3&&typeof Rf[e]!="string"){var t="Symbol."+e;x3&&Kt(Hu,e)?Rf[e]=Hu[e]:Rf[e]=xC&&jT?jT(t):F0e(t)}return Rf[e]},T0e=te.TypeError,_0e=Mt("toPrimitive"),FC=function(e){var t=function(n,r){if(!ft(n)||kw(n))return n;var o,i=Dp(n,_0e);if(i){if(r===void 0&&(r="default"),o=Ze(i,n,r),!ft(o)||kw(o))return o;throw T0e("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&at(s=a.toString)&&!ft(l=Ze(s,a))||at(s=a.valueOf)&&!ft(l=Ze(s,a))||u!=="string"&&at(s=a.toString)&&!ft(l=Ze(s,a)))return l;throw C0e("Can't convert object to primitive value")}(n,r)}(e,"string");return kw(t)?t:t+""},A3=te.document,j0e=ft(A3)&&ft(A3.createElement),Cp=function(e){return j0e?A3.createElement(e):{}},RM=!To&&!vt(function(){return Object.defineProperty(Cp("div"),"a",{get:function(){return 7}}).a!=7}),PT=Object.getOwnPropertyDescriptor,TC={f:To?PT:function(e,t){if(e=za(e),t=FC(t),RM)try{return PT(e,t)}catch{}if(Kt(e,t))return jm(!Ze(p0e.f,e,t),e[t])}},P0e=te.String,I0e=te.TypeError,dn=function(e){if(ft(e))return e;throw I0e(P0e(e)+" is not an object")},N0e=te.TypeError,IT=Object.defineProperty,fi={f:To?IT:function(e,t,n){if(dn(e),t=FC(t),dn(n),RM)try{return IT(e,t,n)}catch{}if("get"in n||"set"in n)throw N0e("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},xo=To?function(e,t,n){return fi.f(e,t,jm(1,n))}:function(e,t,n){return e[t]=n,e},R0e=Te(Function.toString);at(ma.inspectSource)||(ma.inspectSource=function(e){return R0e(e)});var p1,Od,h1,Pm=ma.inspectSource,NT=te.WeakMap,LM=at(NT)&&/native code/.test(Pm(NT)),RT=OC("keys"),_C=function(e){return RT[e]||(RT[e]=kC(e))},Im={},O3=te.TypeError,L0e=te.WeakMap;if(LM||ma.state){var ru=ma.state||(ma.state=new L0e),M0e=Te(ru.get),LT=Te(ru.has),z0e=Te(ru.set);p1=function(e,t){if(LT(ru,e))throw new O3("Object already initialized");return t.facade=e,z0e(ru,e,t),t},Od=function(e){return M0e(ru,e)||{}},h1=function(e){return LT(ru,e)}}else{var qs=_C("state");Im[qs]=!0,p1=function(e,t){if(Kt(e,qs))throw new O3("Object already initialized");return t.facade=e,xo(e,qs,t),t},Od=function(e){return Kt(e,qs)?e[qs]:{}},h1=function(e){return Kt(e,qs)}}var fr={set:p1,get:Od,has:h1,enforce:function(e){return h1(e)?Od(e):p1(e,{})},getterFor:function(e){return function(t){var n;if(!ft(t)||(n=Od(t)).type!==e)throw O3("Incompatible receiver, "+e+" required");return n}}},MM=Function.prototype,$0e=To&&Object.getOwnPropertyDescriptor,Fw=Kt(MM,"name"),gh={EXISTS:Fw,PROPER:Fw&&(function(){}).name==="something",CONFIGURABLE:Fw&&(!To||To&&$0e(MM,"name").configurable)},ir=CC(function(e){var t=gh.CONFIGURABLE,n=fr.get,r=fr.enforce,o=String(String).split("String");(e.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;at(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Kt(u,"name")||t&&u.name!==d)&&xo(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==te?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:xo(i,a,u)):f?i[a]=u:AC(a,u)})(Function.prototype,"toString",function(){return at(this)&&n(this).source||Pm(this)})}),H0e=Math.ceil,U0e=Math.floor,jC=function(e){var t=+e;return t!=t||t===0?0:(t>0?U0e:H0e)(t)},V0e=Math.max,W0e=Math.min,Sp=function(e,t){var n=jC(e);return n<0?V0e(n+t,0):W0e(n,t)},G0e=Math.min,zM=function(e){return e>0?G0e(jC(e),9007199254740991):0},vh=function(e){return zM(e.length)},q0e=function(e){return function(t,n,r){var o,i=za(t),a=vh(i),u=Sp(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},K0e=q0e(!1),MT=Te([].push),$M=function(e,t){var n,r=za(e),o=0,i=[];for(n in r)!Kt(Im,n)&&Kt(r,n)&&MT(i,n);for(;t.length>o;)Kt(r,n=t[o++])&&(~K0e(i,n)||MT(i,n));return i},g1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Y0e=g1.concat("length","prototype"),v1={f:Object.getOwnPropertyNames||function(e){return $M(e,Y0e)}},X0e={f:Object.getOwnPropertySymbols},J0e=Te([].concat),Z0e=is("Reflect","ownKeys")||function(e){var t=v1.f(dn(e)),n=X0e.f;return n?J0e(t,n(e)):t},Q0e=function(e,t){for(var n=Z0e(t),r=fi.f,o=TC.f,i=0;i<n.length;i++){var a=n[i];Kt(e,a)||r(e,a,o(t,a))}},ege=/#|\.prototype\./,mh=function(e,t){var n=nge[tge(e)];return n==oge||n!=rge&&(at(t)?vt(t):!!t)},tge=mh.normalize=function(e){return String(e).replace(ege,".").toLowerCase()},nge=mh.data={},rge=mh.NATIVE="N",oge=mh.POLYFILL="P",m1=mh,ige=TC.f,Eo=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?te:l?te[u]||AC(u,{}):(te[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=ige(n,r))&&a.value:n[r],!m1(s?r:u+(l?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;Q0e(i,o)}(e.sham||o&&o.sham)&&xo(i,"sham",!0),ir(n,r,i,e)}},y1=Array.isArray||function(e){return Qr(e)=="Array"},HM={};HM[Mt("toStringTag")]="z";var PC=String(HM)==="[object z]",age=Mt("toStringTag"),uge=te.Object,sge=Qr(function(){return arguments}())=="Arguments",Nm=PC?Qr:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(t=uge(e),age))=="string"?n:sge?Qr(t):(r=Qr(t))=="Object"&&at(t.callee)?"Arguments":r},UM=function(){},lge=[],VM=is("Reflect","construct"),IC=/^\s*(?:class|function)\b/,cge=Te(IC.exec),fge=!IC.exec(UM),Lf=function(e){if(!at(e))return!1;try{return VM(UM,lge,e),!0}catch{return!1}},NC=!VM||vt(function(){var e;return Lf(Lf.call)||!Lf(Object)||!Lf(function(){e=!0})||e})?function(e){if(!at(e))return!1;switch(Nm(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return fge||!!cge(IC,Pm(e))}:Lf,WM=function(e,t,n){var r=FC(t);r in e?fi.f(e,r,jm(0,n)):e[r]=n},dge=Mt("species"),GM=Te([].slice),pge=Ep>=51||!vt(function(){var e=[];return(e.constructor={})[dge]=function(){return{foo:1}},e.slice(Boolean).foo!==1}),hge=Mt("species"),Tw=te.Array,gge=Math.max;Eo({target:"Array",proto:!0,forced:!pge},{slice:function(e,t){var n,r,o,i=za(this),a=vh(i),u=Sp(e,a),s=Sp(t===void 0?a:t,a);if(y1(i)&&(n=i.constructor,(NC(n)&&(n===Tw||y1(n.prototype))||ft(n)&&(n=n[hge])===null)&&(n=void 0),n===Tw||n===void 0))return GM(i,u,s);for(r=new(n===void 0?Tw:n)(gge(s-u,0)),o=0;u<s;u++,o++)u in i&&WM(r,o,i[u]);return r.length=o,r}});var vge=PC?{}.toString:function(){return"[object "+Nm(this)+"]"};PC||ir(Object.prototype,"toString",vge,{unsafe:!0});var F0,mge=te.String,ya=function(e){if(Nm(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return mge(e)},qM=function(){var e=dn(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},RC=te.RegExp,B3=vt(function(){var e=RC("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),yge=B3||vt(function(){return!RC("a","y").sticky}),KM={BROKEN_CARET:B3||vt(function(){var e=RC("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:yge,UNSUPPORTED_Y:B3},bge=Object.keys||function(e){return $M(e,g1)},wge=To?Object.defineProperties:function(e,t){dn(e);for(var n,r=za(t),o=bge(t),i=o.length,a=0;i>a;)fi.f(e,n=o[a++],r[n]);return e},k3=is("document","documentElement"),YM=_C("IE_PROTO"),_w=function(){},XM=function(e){return"<script>"+e+"<\/script>"},zT=function(e){e.write(XM("")),e.close();var t=e.parentWindow.Object;return e=null,t},gg=function(){try{F0=new ActiveXObject("htmlfile")}catch{}var e,t;gg=typeof document<"u"?document.domain&&F0?zT(F0):((t=Cp("iframe")).style.display="none",k3.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(XM("document.F=Object")),e.close(),e.F):zT(F0);for(var n=g1.length;n--;)delete gg.prototype[g1[n]];return gg()};Im[YM]=!0;var $T,jw,LC=Object.create||function(e,t){var n;return e!==null?(_w.prototype=dn(e),n=new _w,_w.prototype=null,n[YM]=e):n=gg(),t===void 0?n:wge(n,t)},Ege=te.RegExp,Dge=vt(function(){var e=Ege(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")}),Cge=te.RegExp,Sge=vt(function(){var e=Cge("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),xge=fr.get,Age=OC("native-string-replace",String.prototype.replace),b1=RegExp.prototype.exec,F3=b1,Oge=Te("".charAt),Bge=Te("".indexOf),kge=Te("".replace),Pw=Te("".slice),Iw=(jw=/b*/g,Ze(b1,$T=/a/,"a"),Ze(b1,jw,"a"),$T.lastIndex!==0||jw.lastIndex!==0),HT=KM.BROKEN_CARET,Nw=/()??/.exec("")[1]!==void 0;(Iw||Nw||HT||Dge||Sge)&&(F3=function(e){var t,n,r,o,i,a,u,s=this,l=xge(s),c=ya(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Ze(F3,f,c),s.lastIndex=f.lastIndex,t;var p=l.groups,d=HT&&s.sticky,m=Ze(qM,s),g=s.source,v=0,y=c;if(d&&(m=kge(m,"y",""),Bge(m,"g")===-1&&(m+="g"),y=Pw(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Oge(c,s.lastIndex-1)!==`
- `)&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",m)),Nw&&(n=new RegExp("^"+g+"$(?!\\s)",m)),Iw&&(r=s.lastIndex),o=Ze(b1,d?n:s,y),d?o?(o.input=Pw(o.input,v),o[0]=Pw(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Iw&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Nw&&o&&o.length>1&&Ze(Age,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=LC(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var xp=F3;Eo({target:"RegExp",proto:!0,forced:/./.exec!==xp},{exec:xp});var MC=Function.prototype,UT=MC.apply,Fge=MC.bind,VT=MC.call,JM=typeof Reflect=="object"&&Reflect.apply||(Fge?VT.bind(UT):function(){return VT.apply(UT,arguments)}),Tge=Mt("species"),Rw=RegExp.prototype,_ge=Mt("match"),jge=te.TypeError,Pge=Mt("species"),ZM=function(e,t){var n,r=dn(e).constructor;return r===void 0||(n=dn(r)[Pge])==null?t:function(o){if(NC(o))return o;throw jge(d1(o)+" is not a constructor")}(n)},Ige=Te("".charAt),WT=Te("".charCodeAt),Nge=Te("".slice),GT=function(e){return function(t,n){var r,o,i=ya(bp(t)),a=jC(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=WT(i,a))<55296||r>56319||a+1===u||(o=WT(i,a+1))<56320||o>57343?e?Ige(i,a):r:e?Nge(i,a,a+2):o-56320+(r-55296<<10)+65536}},QM={codeAt:GT(!1),charAt:GT(!0)},Rge=QM.charAt,Lge=function(e,t,n){return t+(n?Rge(e,t).length:1)},Mge=te.Array,zge=Math.max,T3=function(e,t,n){for(var r=vh(e),o=Sp(t,r),i=Sp(n===void 0?r:n,r),a=Mge(zge(i-o,0)),u=0;o<i;o++,u++)WM(a,u,e[o]);return a.length=u,a},$ge=te.TypeError,qT=function(e,t){var n=e.exec;if(at(n)){var r=Ze(n,e,t);return r!==null&&dn(r),r}if(Qr(e)==="RegExp")return Ze(xp,e,t);throw $ge("RegExp#exec called on incompatible receiver")},Ks=KM.UNSUPPORTED_Y,Hge=Math.min,ez=[].push,Uge=Te(/./.exec),Ys=Te(ez),Mf=Te("".slice);(function(e,t,n,r){var o=Mt(e),i=!vt(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!vt(function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[Tge]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=Te(/./[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,m){var g,v,y=ya(bp(this)),h=m===void 0?4294967295:m>>>0;if(h===0)return[];if(d===void 0)return[y];if(!ft(g=d)||!((v=g[_ge])!==void 0?v:Qr(g)=="RegExp"))return Ze(c,y,d,h);for(var b,w,D,S=[],C=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(d.sticky?"y":""),O=0,F=new RegExp(d.source,C+"g");(b=Ze(xp,F,y))&&!((w=F.lastIndex)>O&&(Ys(S,Mf(y,O,b.index)),b.length>1&&b.index<y.length&&JM(ez,S,T3(b,1)),D=b[0].length,O=w,S.length>=h));)F.lastIndex===b.index&&F.lastIndex++;return O===y.length?!D&&Uge(F,"")||Ys(S,""):Ys(S,Mf(y,O)),S.length>h?T3(S,0,h):S}:"0".split(void 0,0).length?function(d,m){return d===void 0&&m===0?[]:Ze(c,this,d,m)}:c,[function(d,m){var g=bp(this),v=d==null?void 0:Dp(d,l);return v?Ze(v,d,g,m):Ze(p,ya(g),d,m)},function(d,m){var g=dn(this),v=ya(d),y=f(p,g,v,m,p!==c);if(y.done)return y.value;var h=ZM(g,RegExp),b=g.unicode,w=(g.ignoreCase?"i":"")+(g.multiline?"m":"")+(g.unicode?"u":"")+(Ks?"g":"y"),D=new h(Ks?"^(?:"+g.source+")":g,w),S=m===void 0?4294967295:m>>>0;if(S===0)return[];if(v.length===0)return qT(D,v)===null?[v]:[];for(var C=0,O=0,F=[];O<v.length;){D.lastIndex=Ks?0:O;var L,H=qT(D,Ks?Mf(v,O):v);if(H===null||(L=Hge(zM(D.lastIndex+(Ks?O:0)),v.length))===C)O=Lge(v,O,b);else{if(Ys(F,Mf(v,C,O)),F.length===S)return F;for(var M=1;M<=H.length-1;M++)if(Ys(F,H[M]),F.length===S)return F;O=C=L}}return Ys(F,Mf(v,C)),F}]}(o,""[e],function(l,c,f,p,d){var m=Te(l),g=c.exec;return g===xp||g===Rw.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:m(f,c,p)}:{done:!1}});ir(String.prototype,e,s[0]),ir(Rw,o,s[1])}r&&xo(Rw[o],"sham",!0)})("split",0,!!vt(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),Ks);/*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */var w1=function(){return w1=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},w1.apply(this,arguments)};function zC(e,t,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(e,t||[])).next())})}function $C(e,t){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=t.call(e,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 Vge(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(o){var i=typeof Symbol=="function"&&Symbol.iterator,a=i&&o[i],u=0;if(a)return a.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&u>=o.length&&(o=void 0),{value:o&&o[u++],done:!o}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(o){t[o]=e[o]&&function(i){return new Promise(function(a,u){(function(s,l,c,f){Promise.resolve(f).then(function(p){s({value:p,done:c})},l)})(a,u,(i=e[o](i)).done,i.value)})}}}var _3=Mt("unscopables"),j3=Array.prototype;j3[_3]==null&&fi.f(j3,_3,{configurable:!0,value:LC(null)});var Uu,KT,YT,Lw=function(e){j3[_3][e]=!0},ec={},Wge=!vt(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),XT=_C("IE_PROTO"),P3=te.Object,Gge=P3.prototype,E1=Wge?P3.getPrototypeOf:function(e){var t=BC(e);if(Kt(t,XT))return t[XT];var n=t.constructor;return at(n)&&t instanceof n?n.prototype:t instanceof P3?Gge:null},I3=Mt("iterator"),tz=!1;[].keys&&("next"in(YT=[].keys())?(KT=E1(E1(YT)))!==Object.prototype&&(Uu=KT):tz=!0);var qge=Uu==null||vt(function(){var e={};return Uu[I3].call(e)!==e});qge&&(Uu={}),at(Uu[I3])||ir(Uu,I3,function(){return this});var HC={IteratorPrototype:Uu,BUGGY_SAFARI_ITERATORS:tz},Kge=fi.f,JT=Mt("toStringTag"),D1=function(e,t,n){e&&!Kt(e=n?e:e.prototype,JT)&&Kge(e,JT,{configurable:!0,value:t})},Yge=HC.IteratorPrototype,Xge=function(){return this},Jge=te.String,Zge=te.TypeError,tc=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Te(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return dn(r),function(i){if(typeof i=="object"||at(i))return i;throw Zge("Can't set "+Jge(i)+" as a prototype")}(o),t?e(r,o):r.__proto__=o,r}}():void 0),Qge=gh.PROPER,eve=gh.CONFIGURABLE,ZT=HC.IteratorPrototype,T0=HC.BUGGY_SAFARI_ITERATORS,zf=Mt("iterator"),tve=function(){return this},nz=function(e,t,n,r,o,i,a){(function(y,h,b,w){var D=h+" Iterator";y.prototype=LC(Yge,{next:jm(1,b)}),D1(y,D,!1),ec[D]=Xge})(n,t,r);var u,s,l,c=function(y){if(y===o&&g)return g;if(!T0&&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=t+" Iterator",p=!1,d=e.prototype,m=d[zf]||d["@@iterator"]||o&&d[o],g=!T0&&m||c(o),v=t=="Array"&&d.entries||m;if(v&&(u=E1(v.call(new e)))!==Object.prototype&&u.next&&(E1(u)!==ZT&&(tc?tc(u,ZT):at(u[zf])||ir(u,zf,tve)),D1(u,f,!0)),Qge&&o=="values"&&m&&m.name!=="values"&&(eve?xo(d,"name","values"):(p=!0,g=function(){return Ze(m,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(T0||p||!(l in d))&&ir(d,l,s[l]);else Eo({target:t,proto:!0,forced:T0||p},s);return d[zf]!==g&&ir(d,zf,g,{name:o}),ec[t]=g,s},nve=fr.set,rve=fr.getterFor("Array Iterator"),od=nz(Array,"Array",function(e,t){nve(this,{type:"Array Iterator",target:za(e),index:0,kind:t})},function(){var e=rve(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values");ec.Arguments=ec.Array,Lw("keys"),Lw("values"),Lw("entries");var ove=QM.charAt,ive=fr.set,ave=fr.getterFor("String Iterator");nz(String,"String",function(e){ive(this,{type:"String Iterator",string:ya(e),index:0})},function(){var e,t=ave(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=ove(n,r),t.index+=e.length,{value:e,done:!1})});var C1=function(e,t,n){for(var r in t)ir(e,r,t[r],n);return e},QT=v1.f,e_=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],uve={f:function(e){return e_&&Qr(e)=="Window"?function(t){try{return QT(t)}catch{return T3(e_)}}(e):QT(za(e))}},t_=vt(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),_0=Object.isExtensible,wu=vt(function(){_0(1)})||t_?function(e){return!!ft(e)&&(!t_||Qr(e)!="ArrayBuffer")&&(!_0||_0(e))}:_0,sve=!vt(function(){return Object.isExtensible(Object.preventExtensions({}))}),UC=CC(function(e){var t=fi.f,n=!1,r=kC("meta"),o=0,i=function(u){t(u,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var u=v1.f,s=Te([].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},Eo({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:uve.f}))},fastKey:function(u,s){if(!ft(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Kt(u,r)){if(!wu(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!Kt(u,r)){if(!wu(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return sve&&n&&wu(u)&&!Kt(u,r)&&i(u),u}};Im[r]=!0}),n_=Te(Te.bind),Ap=function(e,t){return ja(e),t===void 0?e:n_?n_(e,t):function(){return e.apply(t,arguments)}},lve=Mt("iterator"),cve=Array.prototype,fve=Mt("iterator"),r_=function(e){if(e!=null)return Dp(e,fve)||Dp(e,"@@iterator")||ec[Nm(e)]},dve=te.TypeError,o_=function(e,t,n){var r,o;dn(e);try{if(!(r=Dp(e,"return"))){if(t==="throw")throw n;return n}r=Ze(r,e)}catch(i){o=!0,r=i}if(t==="throw")throw n;if(o)throw r;return dn(r),n},pve=te.TypeError,vg=function(e,t){this.stopped=e,this.result=t},i_=vg.prototype,S1=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,p=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),m=!(!n||!n.INTERRUPTED),g=Ap(t,f),v=function(h){return r&&o_(r,"normal",h),new vg(!0,h)},y=function(h){return p?(dn(h),m?g(h[0],h[1],v):g(h[0],h[1])):m?g(h,v):g(h)};if(d)r=e;else{if(!(o=r_(e)))throw pve(d1(e)+" is not iterable");if((c=o)!==void 0&&(ec.Array===c||cve[lve]===c)){for(i=0,a=vh(e);a>i;i++)if((u=y(e[i]))&&wp(i_,u))return u;return new vg(!1)}r=function(h,b){var w=arguments.length<2?r_(h):b;if(ja(w))return dn(Ze(w,h));throw dve(d1(h)+" is not iterable")}(e,o)}for(s=r.next;!(l=Ze(s,r)).done;){try{u=y(l.value)}catch(h){o_(r,"throw",h)}if(typeof u=="object"&&u&&wp(i_,u))return u}return new vg(!1)},hve=te.TypeError,VC=function(e,t){if(wp(t,e))return e;throw hve("Incorrect invocation")},rz=Mt("iterator"),oz=!1;try{var gve=0,a_={next:function(){return{done:!!gve++}},return:function(){oz=!0}};a_[rz]=function(){return this},Array.from(a_,function(){throw 2})}catch{}var iz=function(e,t){if(!t&&!oz)return!1;var n=!1;try{var r={};r[rz]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},vve=Mt("species"),u_=te.Array,mve=function(e,t){return new(function(n){var r;return y1(n)&&(r=n.constructor,(NC(r)&&(r===u_||y1(r.prototype))||ft(r)&&(r=r[vve])===null)&&(r=void 0)),r===void 0?u_:r}(e))(t===0?0:t)},s_=Te([].push),Mi=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var p,d,m=BC(s),g=SC(m),v=Ap(l,c),y=vh(g),h=0,b=f||mve,w=t?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in g)&&(d=v(p=g[h],h,m),e))if(t)w[h]=d;else if(d)switch(e){case 3:return!0;case 5:return p;case 6:return h;case 2:s_(w,p)}else switch(e){case 4:return!1;case 7:s_(w,p)}return i?-1:r||o?o:w}},WC={forEach:Mi(0),map:Mi(1),filter:Mi(2),some:Mi(3),every:Mi(4),find:Mi(5),findIndex:Mi(6),filterReject:Mi(7)},j0=UC.getWeakData,yve=fr.set,bve=fr.getterFor,wve=WC.find,Eve=WC.findIndex,Dve=Te([].splice),Cve=0,P0=function(e){return e.frozen||(e.frozen=new az)},az=function(){this.entries=[]},Mw=function(e,t){return wve(e.entries,function(n){return n[0]===t})};az.prototype={get:function(e){var t=Mw(this,e);if(t)return t[1]},has:function(e){return!!Mw(this,e)},set:function(e,t){var n=Mw(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Eve(this.entries,function(n){return n[0]===e});return~t&&Dve(this.entries,t,1),!!~t}};var $f,uz={getConstructor:function(e,t,n,r){var o=e(function(s,l){VC(s,i),yve(s,{type:t,id:Cve++,frozen:void 0}),l!=null&&S1(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=bve(t),u=function(s,l,c){var f=a(s),p=j0(dn(l),!0);return p===!0?P0(f).set(l,c):p[f.id]=c,s};return C1(i,{delete:function(s){var l=a(this);if(!ft(s))return!1;var c=j0(s);return c===!0?P0(l).delete(s):c&&Kt(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!ft(s))return!1;var c=j0(s);return c===!0?P0(l).has(s):c&&Kt(c,l.id)}}),C1(i,n?{get:function(s){var l=a(this);if(ft(s)){var c=j0(s);return c===!0?P0(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}},I0=fr.enforce,Sve=!te.ActiveXObject&&"ActiveXObject"in te,sz=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},xve=function(e,t,n){var r=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,i=r?"set":"add",a=te[e],u=a&&a.prototype,s=a,l={},c=function(v){var y=Te(u[v]);ir(u,v,v=="add"?function(h){return y(this,h===0?0:h),this}:v=="delete"?function(h){return!(o&&!ft(h))&&y(this,h===0?0:h)}:v=="get"?function(h){return o&&!ft(h)?void 0:y(this,h===0?0:h)}:v=="has"?function(h){return!(o&&!ft(h))&&y(this,h===0?0:h)}:function(h,b){return y(this,h===0?0:h,b),this})};if(m1(e,!at(a)||!(o||u.forEach&&!vt(function(){new a().entries().next()}))))s=n.getConstructor(t,e,r,i),UC.enable();else if(m1(e,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=vt(function(){f.has(1)}),m=iz(function(v){new a(v)}),g=!o&&vt(function(){for(var v=new a,y=5;y--;)v[i](y,y);return!v.has(-0)});m||((s=t(function(v,y){VC(v,u);var h=function(b,w,D){var S,C;return tc&&at(S=w.constructor)&&S!==D&&ft(C=S.prototype)&&C!==D.prototype&&tc(b,C),b}(new a,v,s);return y!=null&&S1(y,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(d||g)&&(c("delete"),c("has"),r&&c("get")),(g||p)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,Eo({global:!0,forced:s!=a},l),D1(s,e),o||n.setStrong(s,e,r),s}("WeakMap",sz,uz);if(LM&&Sve){$f=uz.getConstructor(sz,"WeakMap",!0),UC.enable();var Hf=xve.prototype,l_=Te(Hf.delete),N0=Te(Hf.has),c_=Te(Hf.get),f_=Te(Hf.set);C1(Hf,{delete:function(e){if(ft(e)&&!wu(e)){var t=I0(this);return t.frozen||(t.frozen=new $f),l_(this,e)||t.frozen.delete(e)}return l_(this,e)},has:function(e){if(ft(e)&&!wu(e)){var t=I0(this);return t.frozen||(t.frozen=new $f),N0(this,e)||t.frozen.has(e)}return N0(this,e)},get:function(e){if(ft(e)&&!wu(e)){var t=I0(this);return t.frozen||(t.frozen=new $f),N0(this,e)?c_(this,e):t.frozen.get(e)}return c_(this,e)},set:function(e,t){if(ft(e)&&!wu(e)){var n=I0(this);n.frozen||(n.frozen=new $f),N0(this,e)?f_(this,e,t):n.frozen.set(e,t)}else f_(this,e,t);return this}})}var x1={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},zw=Cp("span").classList,d_=zw&&zw.constructor&&zw.constructor.prototype,lz=d_===Object.prototype?void 0:d_,$w=Mt("iterator"),p_=Mt("toStringTag"),Hw=od.values,cz=function(e,t){if(e){if(e[$w]!==Hw)try{xo(e,$w,Hw)}catch{e[$w]=Hw}if(e[p_]||xo(e,p_,t),x1[t]){for(var n in od)if(e[n]!==od[n])try{xo(e,n,od[n])}catch{e[n]=od[n]}}}};for(var Uw in x1)cz(te[Uw]&&te[Uw].prototype,Uw);cz(lz,"DOMTokenList");var fz=function(e,t){var n=[][e];return!!n&&vt(function(){n.call(null,t||function(){throw 1},1)})},Ave=WC.forEach,Vw=fz("forEach")?[].forEach:function(e){return Ave(this,e,arguments.length>1?arguments[1]:void 0)},dz=function(e){if(e&&e.forEach!==Vw)try{xo(e,"forEach",Vw)}catch{e.forEach=Vw}};for(var Ww in x1)x1[Ww]&&dz(te[Ww]&&te[Ww].prototype);dz(lz);var Op,Xs,h_,Gw,A1=te.Promise,g_=Mt("species"),pz=/(?:ipad|iphone|ipod).*applewebkit/i.test(Sl),ba=Qr(te.process)=="process",N3=te.setImmediate,R3=te.clearImmediate,Ove=te.process,qw=te.Dispatch,Bve=te.Function,v_=te.MessageChannel,kve=te.String,Kw=0,Bd={};try{Op=te.location}catch{}var GC=function(e){if(Kt(Bd,e)){var t=Bd[e];delete Bd[e],t()}},Yw=function(e){return function(){GC(e)}},m_=function(e){GC(e.data)},y_=function(e){te.postMessage(kve(e),Op.protocol+"//"+Op.host)};N3&&R3||(N3=function(e){var t=GM(arguments,1);return Bd[++Kw]=function(){JM(at(e)?e:Bve(e),void 0,t)},Xs(Kw),Kw},R3=function(e){delete Bd[e]},ba?Xs=function(e){Ove.nextTick(Yw(e))}:qw&&qw.now?Xs=function(e){qw.now(Yw(e))}:v_&&!pz?(Gw=(h_=new v_).port2,h_.port1.onmessage=m_,Xs=Ap(Gw.postMessage,Gw)):te.addEventListener&&at(te.postMessage)&&!te.importScripts&&Op&&Op.protocol!=="file:"&&!vt(y_)?(Xs=y_,te.addEventListener("message",m_,!1)):Xs="onreadystatechange"in Cp("script")?function(e){k3.appendChild(Cp("script")).onreadystatechange=function(){k3.removeChild(this),GC(e)}}:function(e){setTimeout(Yw(e),0)});var Uf,gu,kd,al,Xw,Jw,Zw,b_,hz={set:N3,clear:R3},Fve=/ipad|iphone|ipod/i.test(Sl)&&te.Pebble!==void 0,Tve=/web0s(?!.*chrome)/i.test(Sl),_ve=TC.f,Qw=hz.set,w_=te.MutationObserver||te.WebKitMutationObserver,E_=te.document,D_=te.process,R0=te.Promise,C_=_ve(te,"queueMicrotask"),gz=C_&&C_.value;gz||(Uf=function(){var e,t;for(ba&&(e=D_.domain)&&e.exit();gu;){t=gu.fn,gu=gu.next;try{t()}catch(n){throw gu?al():kd=void 0,n}}kd=void 0,e&&e.enter()},pz||ba||Tve||!w_||!E_?!Fve&&R0&&R0.resolve?((Zw=R0.resolve(void 0)).constructor=R0,b_=Ap(Zw.then,Zw),al=function(){b_(Uf)}):ba?al=function(){D_.nextTick(Uf)}:(Qw=Ap(Qw,te),al=function(){Qw(Uf)}):(Xw=!0,Jw=E_.createTextNode(""),new w_(Uf).observe(Jw,{characterData:!0}),al=function(){Jw.data=Xw=!Xw}));var e4,S_,vz,x_,mz=gz||function(e){var t={fn:e,next:void 0};kd&&(kd.next=t),gu||(gu=t,al()),kd=t},jve=function(e){var t,n;this.promise=new e(function(r,o){if(t!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");t=r,n=o}),this.resolve=ja(t),this.reject=ja(n)},qC={f:function(e){return new jve(e)}},L3=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},Pve=typeof window=="object",yz=hz.set,Ive=Mt("species"),Jo="Promise",A_=fr.getterFor(Jo),Nve=fr.set,Rve=fr.getterFor(Jo),lu=A1&&A1.prototype,Do=A1,Vf=lu,bz=te.TypeError,M3=te.document,KC=te.process,xl=qC.f,Lve=xl,Mve=!!(M3&&M3.createEvent&&te.dispatchEvent),wz=at(te.PromiseRejectionEvent),Ez=!1,Fd=m1(Jo,function(){var e=Pm(Do),t=e!==String(Do);if(!t&&Ep===66)return!0;if(Ep>=51&&/native code/.test(e))return!1;var n=new Do(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[Ive]=r,!(Ez=n.then(function(){})instanceof r)||!t&&Pve&&!wz}),zve=Fd||!iz(function(e){Do.all(e).catch(function(){})}),Dz=function(e){var t;return!(!ft(e)||!at(t=e.then))&&t},YC=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;mz(function(){for(var r=e.value,o=e.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||(e.rejection===2&&Hve(e),e.rejection=1),c===!0?a=r:(d&&d.enter(),a=c(r),d&&(d.exit(),s=!0)),a===l.promise?p(bz("Promise-chain cycle")):(u=Dz(a))?Ze(u,a,f,p):f(a)):p(r)}catch(m){d&&!s&&d.exit(),p(m)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&$ve(e)})}},Cz=function(e,t,n){var r,o;Mve?((r=M3.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),te.dispatchEvent(r)):r={promise:t,reason:n},!wz&&(o=te["on"+e])?o(r):e==="unhandledrejection"&&function(i,a){var u=te.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))}("Unhandled promise rejection",n)},$ve=function(e){Ze(yz,te,function(){var t,n=e.facade,r=e.value;if(O_(e)&&(t=L3(function(){ba?KC.emit("unhandledRejection",r,n):Cz("unhandledrejection",n,r)}),e.rejection=ba||O_(e)?2:1,t.error))throw t.value})},O_=function(e){return e.rejection!==1&&!e.parent},Hve=function(e){Ze(yz,te,function(){var t=e.facade;ba?KC.emit("rejectionHandled",t):Cz("rejectionhandled",t,e.value)})},dl=function(e,t,n){return function(r){e(t,r,n)}},Al=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,YC(e,!0))},z3=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw bz("Promise can't be resolved itself");var r=Dz(t);r?mz(function(){var o={done:!1};try{Ze(r,t,dl(z3,o,e),dl(Al,o,e))}catch(i){Al(o,i,e)}}):(e.value=t,e.state=1,YC(e,!1))}catch(o){Al({done:!1},o,e)}}};if(Fd&&(Vf=(Do=function(e){VC(this,Vf),ja(e),Ze(e4,this);var t=A_(this);try{e(dl(z3,t),dl(Al,t))}catch(n){Al(t,n)}}).prototype,(e4=function(e){Nve(this,{type:Jo,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=C1(Vf,{then:function(e,t){var n=Rve(this),r=n.reactions,o=xl(ZM(this,Do));return o.ok=!at(e)||e,o.fail=at(t)&&t,o.domain=ba?KC.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&YC(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),S_=function(){var e=new e4,t=A_(e);this.promise=e,this.resolve=dl(z3,t),this.reject=dl(Al,t)},qC.f=xl=function(e){return e===Do||e===vz?new S_(e):Lve(e)},at(A1)&&lu!==Object.prototype)){x_=lu.then,Ez||(ir(lu,"then",function(e,t){var n=this;return new Do(function(r,o){Ze(x_,n,r,o)}).then(e,t)},{unsafe:!0}),ir(lu,"catch",Vf.catch,{unsafe:!0}));try{delete lu.constructor}catch{}tc&&tc(lu,Vf)}Eo({global:!0,wrap:!0,forced:Fd},{Promise:Do}),D1(Do,Jo,!1),function(e){var t=is("Promise"),n=fi.f;To&&t&&!t[g_]&&n(t,g_,{configurable:!0,get:function(){return this}})}(),vz=is(Jo),Eo({target:Jo,stat:!0,forced:Fd},{reject:function(e){var t=xl(this);return Ze(t.reject,void 0,e),t.promise}}),Eo({target:Jo,stat:!0,forced:Fd},{resolve:function(e){return function(t,n){if(dn(t),ft(n)&&n.constructor===t)return n;var r=qC.f(t);return(0,r.resolve)(n),r.promise}(this,e)}}),Eo({target:Jo,stat:!0,forced:zve},{all:function(e){var t=this,n=xl(t),r=n.resolve,o=n.reject,i=L3(function(){var a=ja(t.resolve),u=[],s=0,l=1;S1(e,function(c){var f=s++,p=!1;l++,Ze(a,t,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(e){var t=this,n=xl(t),r=n.reject,o=L3(function(){var i=ja(t.resolve);S1(e,function(a){Ze(i,t,a).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var Uve=gh.PROPER,$3=RegExp.prototype,Sz=$3.toString,Vve=Te(qM),Wve=vt(function(){return Sz.call({source:"a",flags:"b"})!="/a/b"}),Gve=Uve&&Sz.name!="toString";(Wve||Gve)&&ir(RegExp.prototype,"toString",function(){var e=dn(this),t=ya(e.source),n=e.flags;return"/"+t+"/"+ya(n===void 0&&wp($3,e)&&!("flags"in $3)?Vve(e):n)},{unsafe:!0});var qve=gh.EXISTS,Kve=fi.f,xz=Function.prototype,Yve=Te(xz.toString),Az=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Xve=Te(Az.exec);To&&!qve&&Kve(xz,"name",{configurable:!0,get:function(){try{return Xve(Az,Yve(this))[1]}catch{return""}}});var B_=new WeakMap;function Oz(e){return e.getMenuConfig("uploadImage")}function Jve(e,t){return zC(this,void 0,void 0,function(){return $C(this,function(n){return[2,new Promise(function(r){var o=new FileReader;o.readAsDataURL(t),o.onload=function(){var i=o.result;if(i){var a=i.toString(),u=a.indexOf("data:image")===0?"":a;_u(e,a,t.name,u),r("ok")}}})]})})}function Zve(e,t){return zC(this,void 0,void 0,function(){var n,r,o,i;return $C(this,function(a){switch(a.label){case 0:return n=function(u){var s=B_.get(u);if(s!=null)return s;var l=Oz(u),c=l.onSuccess,f=l.onProgress,p=l.onFailed,d=l.customInsert,m=l.onError;return s=aN(w1(w1({},l),{onProgress:function(g){u.showProgressBar(g),f&&f(g)},onSuccess:function(g,v){if(d)return d(v,function(L,H,M){return _u(u,L,H,M)}),void c(g,v);var y=v.errno,h=y===void 0?1:y,b=v.data,w=b===void 0?{}:b;if(h===0){if(Array.isArray(w))w.forEach(function(L){var H=L.url,M=H===void 0?"":H,K=L.alt,V=K===void 0?"":K,G=L.href;_u(u,M,V,G===void 0?"":G)});else{var D=w.url,S=D===void 0?"":D,C=w.alt,O=C===void 0?"":C,F=w.href;_u(u,S,O,F===void 0?"":F)}c(g,v)}else p(g,v)},onError:function(g,v,y){m(g,v,y)}})),B_.set(u,s),s}(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}})})}function Bz(e,t){var n,r;return zC(this,void 0,void 0,function(){var o,i,a,u,s,l,c,f,p;return $C(this,function(d){switch(d.label){case 0:if(t==null)return[2];o=Array.prototype.slice.call(t),i=Oz(e),a=i.customUpload,u=i.base64LimitSize,d.label=1;case 1:d.trys.push([1,11,12,17]),s=Vge(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,Jve(e,c)]:[3,5]);case 4:return d.sent(),[3,9];case 5:return a?[4,a(c,function(m,g,v){return _u(e,m,g,v)})]:[3,7];case 6:return d.sent(),[3,9];case 7:return[4,Zve(e,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 Qve=Te([].join),e1e=SC!=Object,t1e=fz("join",",");Eo({target:"Array",proto:!0,forced:e1e||!t1e},{join:function(e){return Qve(za(this),e===void 0?",":e)}}),Tr&&(k.fn.append=Tr),Bo&&(k.fn.on=Bo),Ml&&(k.fn.remove=Ml),Oo&&(k.fn.val=Oo),TA&&(k.fn.click=TA),Il&&(k.fn.hide=Il);var n1e=function(){function e(){this.title=Q("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 e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return fm(t)},e.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadImage")},e.prototype.exec=function(t,n){var r=this.getMenuConfig(t),o=r.allowedFileTypes,i=o===void 0?[]:o,a=r.customBrowseAndUpload;if(a)a(function(c,f,p){return _u(t,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;Bz(t,c)})}},e}(),r1e={menus:[{key:"uploadImage",factory:function(){return new n1e},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){},onError:function(e,t,n){},base64LimitSize:0}}],editorPlugin:function(e){var t=e.insertData,n=e;return n.insertData=function(r){if(fm(n))t(r);else if(r.getData("text/plain"))t(r);else{var o=r.files;o.length<=0?t(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"})?Bz(e,o):t(r)}},n}};qn("en",{highLightModule:{selectLang:"Language"}}),qn("zh-CN",{highLightModule:{selectLang:"选择语言"}});var O1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function XC(e){var t={exports:{}};return e(t,t.exports),t.exports}var zi,mg,L0=function(e){return e&&e.Math==Math&&e},Ie=L0(typeof globalThis=="object"&&globalThis)||L0(typeof window=="object"&&window)||L0(typeof self=="object"&&self)||L0(typeof O1=="object"&&O1)||function(){return this}()||Function("return this")(),o1e=Object.defineProperty,JC=function(e,t){try{o1e(Ie,e,{value:t,configurable:!0,writable:!0})}catch{Ie[e]=t}return t},wa=Ie["__core-js_shared__"]||JC("__core-js_shared__",{}),ZC=XC(function(e){(e.exports=function(t,n){return wa[t]||(wa[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),kz=Function.prototype,H3=kz.bind,U3=kz.call,i1e=H3&&H3.bind(U3),Qe=H3?function(e){return e&&i1e(U3,e)}:function(e){return e&&function(){return U3.apply(e,arguments)}},a1e=Ie.TypeError,nc=function(e){if(e==null)throw a1e("Can't call method on "+e);return e},u1e=Ie.Object,QC=function(e){return u1e(nc(e))},s1e=Qe({}.hasOwnProperty),kr=Object.hasOwn||function(e,t){return s1e(QC(e),t)},l1e=0,c1e=Math.random(),f1e=Qe(1 .toString),Fz=function(e){return"Symbol("+(e===void 0?"":e)+")_"+f1e(++l1e+c1e,36)},On=function(e){return typeof e=="function"},d1e=function(e){return On(e)?e:void 0},yh=function(e,t){return arguments.length<2?d1e(Ie[e]):Ie[e]&&Ie[e][t]},t4=yh("navigator","userAgent")||"",k_=Ie.process,F_=Ie.Deno,T_=k_&&k_.versions||F_&&F_.version,__=T_&&T_.v8;__&&(mg=(zi=__.split("."))[0]>0&&zi[0]<4?1:+(zi[0]+zi[1])),!mg&&t4&&(!(zi=t4.match(/Edge\/(\d+)/))||zi[1]>=74)&&(zi=t4.match(/Chrome\/(\d+)/))&&(mg=+zi[1]);var j_=mg,ln=function(e){try{return!!e()}catch{return!0}},V3=!!Object.getOwnPropertySymbols&&!ln(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&j_&&j_<41}),eS=V3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Wf=ZC("wks"),Vu=Ie.Symbol,P_=Vu&&Vu.for,p1e=eS?Vu:Vu&&Vu.withoutSetter||Fz,$a=function(e){if(!kr(Wf,e)||!V3&&typeof Wf[e]!="string"){var t="Symbol."+e;V3&&kr(Vu,e)?Wf[e]=Vu[e]:Wf[e]=eS&&P_?P_(t):p1e(t)}return Wf[e]},Tz={};Tz[$a("toStringTag")]="z";var tS=String(Tz)==="[object z]",_o=!ln(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Wr=function(e){return typeof e=="object"?e!==null:On(e)},W3=Ie.document,h1e=Wr(W3)&&Wr(W3.createElement),nS=function(e){return h1e?W3.createElement(e):{}},_z=!_o&&!ln(function(){return Object.defineProperty(nS("div"),"a",{get:function(){return 7}}).a!=7}),g1e=Ie.String,v1e=Ie.TypeError,eo=function(e){if(Wr(e))return e;throw v1e(g1e(e)+" is not an object")},Gf=Function.prototype.call,Qt=Gf.bind?Gf.bind(Gf):function(){return Gf.apply(Gf,arguments)},jz=Qe({}.isPrototypeOf),m1e=Ie.Object,n4=eS?function(e){return typeof e=="symbol"}:function(e){var t=yh("Symbol");return On(t)&&jz(t.prototype,m1e(e))},y1e=Ie.String,Pz=function(e){try{return y1e(e)}catch{return"Object"}},b1e=Ie.TypeError,Iz=function(e){if(On(e))return e;throw b1e(Pz(e)+" is not a function")},Nz=function(e,t){var n=e[t];return n==null?void 0:Iz(n)},w1e=Ie.TypeError,E1e=Ie.TypeError,D1e=$a("toPrimitive"),rS=function(e){var t=function(n,r){if(!Wr(n)||n4(n))return n;var o,i=Nz(n,D1e);if(i){if(r===void 0&&(r="default"),o=Qt(i,n,r),!Wr(o)||n4(o))return o;throw E1e("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)&&!Wr(l=Qt(s,a))||On(s=a.valueOf)&&!Wr(l=Qt(s,a))||u!=="string"&&On(s=a.toString)&&!Wr(l=Qt(s,a)))return l;throw w1e("Can't convert object to primitive value")}(n,r)}(e,"string");return n4(t)?t:t+""},C1e=Ie.TypeError,I_=Object.defineProperty,Rm={f:_o?I_:function(e,t,n){if(eo(e),t=rS(t),eo(n),_z)try{return I_(e,t,n)}catch{}if("get"in n||"set"in n)throw C1e("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},oS=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},rc=_o?function(e,t,n){return Rm.f(e,t,oS(1,n))}:function(e,t,n){return e[t]=n,e},S1e=Qe(Function.toString);On(wa.inspectSource)||(wa.inspectSource=function(e){return S1e(e)});var B1,Td,k1,iS=wa.inspectSource,N_=Ie.WeakMap,x1e=On(N_)&&/native code/.test(iS(N_)),R_=ZC("keys"),Rz=function(e){return R_[e]||(R_[e]=Fz(e))},aS={},G3=Ie.TypeError,A1e=Ie.WeakMap;if(x1e||wa.state){var ou=wa.state||(wa.state=new A1e),O1e=Qe(ou.get),L_=Qe(ou.has),B1e=Qe(ou.set);B1=function(e,t){if(L_(ou,e))throw new G3("Object already initialized");return t.facade=e,B1e(ou,e,t),t},Td=function(e){return O1e(ou,e)||{}},k1=function(e){return L_(ou,e)}}else{var Js=Rz("state");aS[Js]=!0,B1=function(e,t){if(kr(e,Js))throw new G3("Object already initialized");return t.facade=e,rc(e,Js,t),t},Td=function(e){return kr(e,Js)?e[Js]:{}},k1=function(e){return kr(e,Js)}}var q3={set:B1,get:Td,has:k1,enforce:function(e){return k1(e)?Td(e):B1(e,{})},getterFor:function(e){return function(t){var n;if(!Wr(t)||(n=Td(t)).type!==e)throw G3("Incompatible receiver, "+e+" required");return n}}},Lz=Function.prototype,k1e=_o&&Object.getOwnPropertyDescriptor,r4=kr(Lz,"name"),Mz={EXISTS:r4,PROPER:r4&&(function(){}).name==="something",CONFIGURABLE:r4&&(!_o||_o&&k1e(Lz,"name").configurable)},Bp=XC(function(e){var t=Mz.CONFIGURABLE,n=q3.get,r=q3.enforce,o=String(String).split("String");(e.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")+"]"),(!kr(u,"name")||t&&u.name!==d)&&rc(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==Ie?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:rc(i,a,u)):f?i[a]=u:JC(a,u)})(Function.prototype,"toString",function(){return On(this)&&n(this).source||iS(this)})}),F1e=Qe({}.toString),T1e=Qe("".slice),Ea=function(e){return T1e(F1e(e),8,-1)},_1e=$a("toStringTag"),j1e=Ie.Object,P1e=Ea(function(){return arguments}())=="Arguments",uS=tS?Ea:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(t=j1e(e),_1e))=="string"?n:P1e?Ea(t):(r=Ea(t))=="Object"&&On(t.callee)?"Arguments":r},I1e=tS?{}.toString:function(){return"[object "+uS(this)+"]"};tS||Bp(Object.prototype,"toString",I1e,{unsafe:!0});var M_,z_={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},o4=nS("span").classList,$_=o4&&o4.constructor&&o4.constructor.prototype,N1e=$_===Object.prototype?void 0:$_,H_=Qe(Qe.bind),i4=Ie.Object,R1e=Qe("".split),sS=ln(function(){return!i4("z").propertyIsEnumerable(0)})?function(e){return Ea(e)=="String"?R1e(e,""):i4(e)}:i4,L1e=Math.ceil,M1e=Math.floor,lS=function(e){var t=+e;return t!=t||t===0?0:(t>0?M1e:L1e)(t)},z1e=Math.min,zz=function(e){return e>0?z1e(lS(e),9007199254740991):0},cS=function(e){return zz(e.length)},U_=Array.isArray||function(e){return Ea(e)=="Array"},$z=function(){},$1e=[],Hz=yh("Reflect","construct"),fS=/^\s*(?:class|function)\b/,H1e=Qe(fS.exec),U1e=!fS.exec($z),qf=function(e){if(!On(e))return!1;try{return Hz($z,$1e,e),!0}catch{return!1}},Uz=!Hz||ln(function(){var e;return qf(qf.call)||!qf(Object)||!qf(function(){e=!0})||e})?function(e){if(!On(e))return!1;switch(uS(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return U1e||!!H1e(fS,iS(e))}:qf,V1e=$a("species"),V_=Ie.Array,W1e=function(e,t){return new(function(n){var r;return U_(n)&&(r=n.constructor,(Uz(r)&&(r===V_||U_(r.prototype))||Wr(r)&&(r=r[V1e])===null)&&(r=void 0)),r===void 0?V_:r}(e))(t===0?0:t)},W_=Qe([].push),$i=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var p,d,m=QC(s),g=sS(m),v=function(D,S){return Iz(D),S===void 0?D:H_?H_(D,S):function(){return D.apply(S,arguments)}}(l,c),y=cS(g),h=0,b=f||W1e,w=t?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in g)&&(d=v(p=g[h],h,m),e))if(t)w[h]=d;else if(d)switch(e){case 3:return!0;case 5:return p;case 6:return h;case 2:W_(w,p)}else switch(e){case 4:return!1;case 7:W_(w,p)}return i?-1:r||o?o:w}},G1e=[$i(0),$i(1),$i(2),$i(3),$i(4),$i(5),$i(6),$i(7)][0],a4=(M_=[].forEach)&&ln(function(){M_.call(null,function(){throw 1},1)})?[].forEach:function(e){return G1e(this,e,arguments.length>1?arguments[1]:void 0)},Vz=function(e){if(e&&e.forEach!==a4)try{rc(e,"forEach",a4)}catch{e.forEach=a4}};for(var u4 in z_)z_[u4]&&Vz(Ie[u4]&&Ie[u4].prototype);Vz(N1e);var G_={}.propertyIsEnumerable,q_=Object.getOwnPropertyDescriptor,Wz={f:q_&&!G_.call({1:2},1)?function(e){var t=q_(this,e);return!!t&&t.enumerable}:G_},Lm=function(e){return sS(nc(e))},K_=Object.getOwnPropertyDescriptor,Gz={f:_o?K_:function(e,t){if(e=Lm(e),t=rS(t),_z)try{return K_(e,t)}catch{}if(kr(e,t))return oS(!Qt(Wz.f,e,t),e[t])}},q1e=Math.max,K1e=Math.min,K3=function(e,t){var n=lS(e);return n<0?q1e(n+t,0):K1e(n,t)},Y1e=function(e){return function(t,n,r){var o,i=Lm(t),a=cS(i),u=K3(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},X1e=Y1e(!1),Y_=Qe([].push),qz=function(e,t){var n,r=Lm(e),o=0,i=[];for(n in r)!kr(aS,n)&&kr(r,n)&&Y_(i,n);for(;t.length>o;)kr(r,n=t[o++])&&(~X1e(i,n)||Y_(i,n));return i},F1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],J1e=F1.concat("length","prototype"),Z1e={f:Object.getOwnPropertyNames||function(e){return qz(e,J1e)}},Kz={f:Object.getOwnPropertySymbols},Q1e=Qe([].concat),eme=yh("Reflect","ownKeys")||function(e){var t=Z1e.f(eo(e)),n=Kz.f;return n?Q1e(t,n(e)):t},tme=function(e,t){for(var n=eme(t),r=Rm.f,o=Gz.f,i=0;i<n.length;i++){var a=n[i];kr(e,a)||r(e,a,o(t,a))}},nme=/#|\.prototype\./,bh=function(e,t){var n=ome[rme(e)];return n==ame||n!=ime&&(On(t)?ln(t):!!t)},rme=bh.normalize=function(e){return String(e).replace(nme,".").toLowerCase()},ome=bh.data={},ime=bh.NATIVE="N",ame=bh.POLYFILL="P",ume=bh,sme=Gz.f,Mm=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Ie:l?Ie[u]||JC(u,{}):(Ie[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=sme(n,r))&&a.value:n[r],!ume(s?r:u+(l?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;tme(i,o)}(e.sham||o&&o.sham)&&rc(i,"sham",!0),Bp(n,r,i,e)}},yg=Object.keys||function(e){return qz(e,F1)},Zs=Object.assign,X_=Object.defineProperty,lme=Qe([].concat),J_=!Zs||ln(function(){if(_o&&Zs({b:1},Zs(X_({},"a",{enumerable:!0,get:function(){X_(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(o){t[o]=o}),Zs({},e)[n]!=7||yg(Zs({},t)).join("")!=r})?function(e,t){for(var n=QC(e),r=arguments.length,o=1,i=Kz.f,a=Wz.f;r>o;)for(var u,s=sS(arguments[o++]),l=i?lme(yg(s),i(s)):yg(s),c=l.length,f=0;c>f;)u=l[f++],_o&&!Qt(a,s,u)||(n[u]=s[u]);return n}:Zs;Mm({target:"Object",stat:!0,forced:Object.assign!==J_},{assign:J_});var Z_=XC(function(e){var t=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 v(y){return y instanceof u?new u(y.type,v(y.content),y.alias):Array.isArray(y)?y.map(v):y.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(v){return Object.prototype.toString.call(v).slice(8,-1)},objId:function(v){return v.__id||Object.defineProperty(v,"__id",{value:++o}),v.__id},clone:function v(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]=v(y[D],h));return b;case"Array":return w=a.util.objId(y),h[w]?h[w]:(b=[],h[w]=b,y.forEach(function(S,C){b[C]=v(S,h)}),b);default:return y}},getLanguage:function(v){for(;v&&!r.test(v.className);)v=v.parentElement;return v?(v.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 v=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(b.stack)||[])[1];if(v){var y=document.getElementsByTagName("script");for(var h in y)if(y[h].src==v)return y[h]}return null}},isActive:function(v,y,h){for(var b="no-"+y;v;){var w=v.classList;if(w.contains(y))return!0;if(w.contains(b))return!1;v=v.parentElement}return!!h}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(v,y){var h=a.util.clone(a.languages[v]);for(var b in y)h[b]=y[b];return h},insertBefore:function(v,y,h,b){var w=(b=b||a.languages)[v],D={};for(var S in w)if(w.hasOwnProperty(S)){if(S==y)for(var C in h)h.hasOwnProperty(C)&&(D[C]=h[C]);h.hasOwnProperty(S)||(D[S]=w[S])}var O=b[v];return b[v]=D,a.languages.DFS(a.languages,function(F,L){L===O&&F!=v&&(this[F]=D)}),D},DFS:function v(y,h,b,w){w=w||{};var D=a.util.objId;for(var S in y)if(y.hasOwnProperty(S)){h.call(y,S,y[S],b||S);var C=y[S],O=a.util.type(C);O!=="Object"||w[D(C)]?O!=="Array"||w[D(C)]||(w[D(C)]=!0,v(C,h,S,w)):(w[D(C)]=!0,v(C,h,null,w))}}},plugins:{},highlightAll:function(v,y){a.highlightAllUnder(document,v,y)},highlightAllUnder:function(v,y,h){var b={callback:h,container:v,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(v,y,h){var b=a.util.getLanguage(v),w=a.languages[b];v.className=v.className.replace(r,"").replace(/\s+/g," ")+" language-"+b;var D=v.parentElement;D&&D.nodeName.toLowerCase()==="pre"&&(D.className=D.className.replace(r,"").replace(/\s+/g," ")+" language-"+b);var S={element:v,language:b,grammar:w,code:v.textContent};function C(F){S.highlightedCode=F,a.hooks.run("before-insert",S),S.element.innerHTML=S.highlightedCode,a.hooks.run("after-highlight",S),a.hooks.run("complete",S),h&&h.call(S.element)}if(a.hooks.run("before-sanity-check",S),(D=S.element.parentElement)&&D.nodeName.toLowerCase()==="pre"&&!D.hasAttribute("tabindex")&&D.setAttribute("tabindex","0"),!S.code)return a.hooks.run("complete",S),void(h&&h.call(S.element));if(a.hooks.run("before-highlight",S),S.grammar)if(y&&n.Worker){var O=new Worker(a.filename);O.onmessage=function(F){C(F.data)},O.postMessage(JSON.stringify({language:S.language,code:S.code,immediateClose:!0}))}else C(a.highlight(S.code,S.grammar,S.language));else C(a.util.encode(S.code))},highlight:function(v,y,h){var b={code:v,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(v,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,v),l(v,w,y,w.head,0),function(D){for(var S=[],C=D.head.next;C!==D.tail;)S.push(C.value),C=C.next;return S}(w)},hooks:{all:{},add:function(v,y){var h=a.hooks.all;h[v]=h[v]||[],h[v].push(y)},run:function(v,y){var h=a.hooks.all[v];if(h&&h.length)for(var b,w=0;b=h[w++];)b(y)}},Token:u};function u(v,y,h,b){this.type=v,this.content=y,this.alias=h,this.length=0|(b||"").length}function s(v,y,h,b){v.lastIndex=y;var w=v.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(v,y,h,b,w,D){for(var S in h)if(h.hasOwnProperty(S)&&h[S]){var C=h[S];C=Array.isArray(C)?C:[C];for(var O=0;O<C.length;++O){if(D&&D.cause==S+","+O)return;var F=C[O],L=F.inside,H=!!F.lookbehind,M=!!F.greedy,K=F.alias;if(M&&!F.pattern.global){var V=F.pattern.toString().match(/[imsuy]*$/)[0];F.pattern=RegExp(F.pattern.source,V+"g")}for(var G=F.pattern||F,q=b.next,re=w;q!==y.tail&&!(D&&re>=D.reach);re+=q.value.length,q=q.next){var le=q.value;if(y.length>v.length)return;if(!(le instanceof u)){var se,ae=1;if(M){if(!(se=s(G,re,v,H)))break;var B=se.index,x=se.index+se[0].length,j=re;for(j+=q.value.length;B>=j;)j+=(q=q.next).value.length;if(re=j-=q.value.length,q.value instanceof u)continue;for(var $=q;$!==y.tail&&(j<x||typeof $.value=="string");$=$.next)ae++,j+=$.value.length;ae--,le=v.slice(re,j),se.index-=re}else if(!(se=s(G,0,le,H)))continue;B=se.index;var Y=se[0],U=le.slice(0,B),ie=le.slice(B+Y.length),ge=re+le.length;D&&ge>D.reach&&(D.reach=ge);var ve=q.prev;if(U&&(ve=f(y,ve,U),re+=U.length),p(y,ve,ae),q=f(y,ve,new u(S,L?a.tokenize(Y,L):Y,K,Y)),ie&&f(y,q,ie),ae>1){var De={cause:S+","+O,reach:ge};l(v,y,h,q.prev,re,De),D&&De.reach>D.reach&&(D.reach=De.reach)}}}}}}function c(){var v={value:null,prev:null,next:null},y={value:null,prev:v,next:null};v.next=y,this.head=v,this.tail=y,this.length=0}function f(v,y,h){var b=y.next,w={value:h,prev:y,next:b};return y.next=w,b.prev=w,v.length++,w}function p(v,y,h){for(var b=y.next,w=0;w<h&&b!==v.tail;w++)b=b.next;y.next=b,b.prev=y,v.length-=w}if(n.Prism=a,u.stringify=function v(y,h){if(typeof y=="string")return y;if(Array.isArray(y)){var b="";return y.forEach(function(O){b+=v(O,h)}),b}var w={type:y.type,content:v(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 S="";for(var C in w.attributes)S+=" "+C+'="'+(w.attributes[C]||"").replace(/"/g,""")+'"';return"<"+w.tag+' class="'+w.classes.join(" ")+'"'+S+">"+w.content+"</"+w.tag+">"},!n.document)return n.addEventListener&&(a.disableWorkerMessageHandler||n.addEventListener("message",function(v){var y=JSON.parse(v.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 m(){a.manual||a.highlightAll()}if(d&&(a.filename=d.src,d.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var g=document.readyState;g==="loading"||g==="interactive"&&d&&d.defer?document.addEventListener("DOMContentLoaded",m):window.requestAnimationFrame?window.requestAnimationFrame(m):window.setTimeout(m,16)}return a}(typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{});/**
- * Prism: Lightweight, robust, elegant syntax highlighting
- *
- * @license MIT <https://opensource.org/licenses/MIT>
- * @author Lea Verou <https://lea.verou.me>
- * @namespace
- * @public
- */e.exports&&(e.exports=t),O1!==void 0&&(O1.Prism=t),t.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]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",function(n){n.type==="entity"&&(n.attributes.title=n.content.replace(/&/,"&"))}),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(n,r){var o={};o["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[r]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};i["language-"+r]={pattern:/[\s\S]+/,inside:t.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},t.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(n,r){t.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:t.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.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"))}(t),t.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:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.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}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,t.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:t.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:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.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:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.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:t.languages.javascript}},string:/[\s\S]+/}}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.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")),t.languages.js=t.languages.javascript,function(){if(t!==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;t.hooks.add("before-highlightall",function(u){u.selector+=", "+o}),t.hooks.add("before-sanity-check",function(u){var s=u.element;if(s.matches(o)){u.code="",s.setAttribute(r,"loading");var l=s.appendChild(document.createElement("CODE"));l.textContent="Loading…";var c=s.getAttribute("data-src"),f=u.language;if(f==="none"){var p=(/\.(\w+)$/.exec(c)||[,"none"])[1];f=n[p]||p}a(l,f),a(s,f);var d=t.plugins.autoloader;d&&d.loadLanguages(f);var m=new XMLHttpRequest;m.open("GET",c,!0),m.onreadystatechange=function(){m.readyState==4&&(m.status<400&&m.responseText?(s.setAttribute(r,"loaded"),l.textContent=m.responseText,t.highlightElement(l)):(s.setAttribute(r,"failed"),m.status>=400?l.textContent="✖ Error "+m.status+" while fetching file: "+m.statusText:l.textContent="✖ Error: File does not exist or is empty"))},m.send(null)}}),t.plugins.fileHighlight={highlight:function(u){for(var s,l=(u||document).querySelectorAll(o),c=0;s=l[c++];)t.highlightElement(s)}},t.fileHighlight=function(){t.plugins.fileHighlight.highlight.apply(this,arguments)}}function a(u,s){var l=u.className;l=l.replace(i," ")+" language-"+s,u.className=l.replace(/\s+/g," ").trim()}}()});(function(e){var t=e.util.clone(e.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,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx},alias:"language-javascript"}},e.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 e.Token("plain-text",d,null,d)}f.content&&typeof f.content!="string"&&u(f.content)}};e.hooks.add("after-tokenize",function(s){s.language!=="jsx"&&s.language!=="tsx"||u(s.tokens)})})(Prism),function(e){e.languages.typescript=e.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/}),e.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 e.languages.typescript.parameter;var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.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:t}}}}),e.languages.ts=e.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(e){e.type==="entity"&&(e.attributes.title=e.content.replace(/&/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\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:[t,"language-"+t],inside:Prism.languages[t]},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(e){var t=/\/\*[\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=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,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:e.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}}];e.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:t,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"}}}}),e.hooks.add("before-tokenize",function(s){/<\?/.test(s.code)&&e.languages["markup-templating"].buildPlaceholders(s,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)}),e.hooks.add("after-tokenize",function(s){e.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(e){var t=/\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:/\./}};e.languages.java=e.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.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}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),e.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:t,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 t.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(e){var t=/\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 t.source});e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return t.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:t,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/}),e.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}}),e.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:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism),function(e){function t(x,j){return x.replace(/<<(\d+)>>/g,function($,Y){return"(?:"+j[+Y]+")"})}function n(x,j,$){return RegExp(t(x,j),$||"")}function r(x,j){for(var $=0;$<j;$++)x=x.replace(/<<self>>/g,function(){return"(?:"+x+")"});return x.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(x){return"\\b(?:"+x.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),m=r(/\((?:[^()]|<<self>>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,v=t(/<<0>>(?:\s*<<1>>)?/.source,[g,d]),y=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,v]),h=/\[\s*(?:,\s*)*\]/.source,b=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,h]),w=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[d,m,h]),D=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),S=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[D,y,h]),C={keyword:c,punctuation:/[<>()?,.:[\]]/},O=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,F=/"(?:\\.|[^\\"\r\n])*"/.source,L=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[L]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[F]),lookbehind:!0,greedy:!0},{pattern:RegExp(O),greedy:!0,alias:"character"}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:C},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,S]),lookbehind:!0,inside:C},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,v]),lookbehind:!0,inside:C},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:C},{pattern:n(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:C},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[S,p,g]),inside:C}],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:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[m]),lookbehind:!0,alias:"class-name",inside:C},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[S,y]),inside:C,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[S]),lookbehind:!0,inside:C,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,d]),inside:{function:n(/^<<0>>/.source,[g]),generic:{pattern:RegExp(d),alias:"class-name",inside:C}}},"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,v,g,S,c.source,m,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[v,m]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"class-name":{pattern:RegExp(S),greedy:!0,inside:C},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 H=F+"|"+O,M=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[H]),K=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[M]),2),V=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,G=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,K]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[V,G]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[V]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[K]),inside:e.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var q=/:[^}\r\n]+/.source,re=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[M]),2),le=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[re,q]),se=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[H]),2),ae=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[se,q]);function B(x,j){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[x]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[j,q]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[le]),lookbehind:!0,greedy:!0,inside:B(le,re)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[ae]),lookbehind:!0,greedy:!0,inside:B(ae,se)}]})}(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(e){e.languages.ruby=e.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 t={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:e.languages.ruby}};delete e.languages.ruby.function,e.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:t}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t}}],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:e.languages.ruby}}}),e.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)/}),e.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:t}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t}},{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:t}},{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:/^<<[-~]?'|'$/}}}}],e.languages.rb=e.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(e){e.inside.interpolation.inside=Prism.languages.swift}),function(e){var t="\\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("\\$"+t),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("(\\{)"+t),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})/};e.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;|&]|[<>]\\()"+t),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("\\$?"+t),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=e.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]]=e.languages.bash[o[a]];e.languages.shell=e.languages.bash}(Prism),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(l){return l=l.replace(/<inner>/g,function(){return t}),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;e.languages.markdown=e.languages.extend("markup",{}),e.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:e.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:e.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:e.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&&(e.languages.markdown[l].inside.content.inside[c]=e.languages.markdown[c])})}),e.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 m=f[p];if(m.type==="code"){var g=m.content[1],v=m.content[3];if(g&&v&&g.type==="code-language"&&v.type==="code-block"&&typeof g.content=="string"){var y=g.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),h="language-"+(y=(/[a-z][\w-]*/i.exec(y)||[""])[0].toLowerCase());v.alias?typeof v.alias=="string"?v.alias=[v.alias,h]:v.alias.push(h):v.alias=[h]}}else c(m.content)}}(l.tokens)}),e.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],m=/language-(.+)/.exec(d);if(m){c=m[1];break}}var g=e.languages[c];if(g)l.content=e.highlight(function(y){var h=y.replace(a,"");return h.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(b,w){var D;return(w=w.toLowerCase())[0]==="#"?(D=w[1]==="x"?parseInt(w.slice(2),16):Number(w.slice(1)),s(D)):u[w]||b})}(l.content),g,c);else if(c&&c!=="none"&&e.plugins.autoloader){var v="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random());l.attributes.id=v,e.plugins.autoloader.loadLanguages(c,function(){var y=document.getElementById(v);y&&(y.innerHTML=e.highlight(y.textContent,e.languages[c],c))})}}});var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),u={amp:"&",lt:"<",gt:">",quot:'"'},s=String.fromCodePoint||String.fromCharCode;e.languages.md=e.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(e){if(e.language==="groovy"&&e.type==="string"){var t=e.content[0];if(t!="'"){var n=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;t==="$"&&(n=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),e.content=e.content.replace(/</g,"<").replace(/&/g,"&"),e.content=Prism.highlight(e.content,{expression:{pattern:n,lookbehind:!0,inside:Prism.languages.groovy}}),e.classes.push(t==="/"?"regex":"gstring")}}});var cme=["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 Yz(e){return typeof e=="string"?e.length:typeof e.content=="string"?e.content.length:e.content.reduce(function(t,n){return t+Yz(n)},0)}var M0,fme=Ie.String,ri=function(e){if(uS(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return fme(e)},Xz=function(){var e=eo(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},dS=Ie.RegExp,Y3=ln(function(){var e=dS("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),dme=Y3||ln(function(){return!dS("a","y").sticky}),Jz={BROKEN_CARET:Y3||ln(function(){var e=dS("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:dme,UNSUPPORTED_Y:Y3},pme=_o?Object.defineProperties:function(e,t){eo(e);for(var n,r=Lm(t),o=yg(t),i=o.length,a=0;i>a;)Rm.f(e,n=o[a++],r[n]);return e},hme=yh("document","documentElement"),Zz=Rz("IE_PROTO"),s4=function(){},Qz=function(e){return"<script>"+e+"<\/script>"},Q_=function(e){e.write(Qz("")),e.close();var t=e.parentWindow.Object;return e=null,t},bg=function(){try{M0=new ActiveXObject("htmlfile")}catch{}var e,t;bg=typeof document<"u"?document.domain&&M0?Q_(M0):((t=nS("iframe")).style.display="none",hme.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(Qz("document.F=Object")),e.close(),e.F):Q_(M0);for(var n=F1.length;n--;)delete bg.prototype[F1[n]];return bg()};aS[Zz]=!0;var ej,l4,gme=Object.create||function(e,t){var n;return e!==null?(s4.prototype=eo(e),n=new s4,s4.prototype=null,n[Zz]=e):n=bg(),t===void 0?n:pme(n,t)},vme=Ie.RegExp,mme=ln(function(){var e=vme(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")}),yme=Ie.RegExp,bme=ln(function(){var e=yme("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),wme=q3.get,Eme=ZC("native-string-replace",String.prototype.replace),T1=RegExp.prototype.exec,X3=T1,Dme=Qe("".charAt),Cme=Qe("".indexOf),Sme=Qe("".replace),c4=Qe("".slice),f4=(l4=/b*/g,Qt(T1,ej=/a/,"a"),Qt(T1,l4,"a"),ej.lastIndex!==0||l4.lastIndex!==0),tj=Jz.BROKEN_CARET,d4=/()??/.exec("")[1]!==void 0;(f4||d4||tj||mme||bme)&&(X3=function(e){var t,n,r,o,i,a,u,s=this,l=wme(s),c=ri(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Qt(X3,f,c),s.lastIndex=f.lastIndex,t;var p=l.groups,d=tj&&s.sticky,m=Qt(Xz,s),g=s.source,v=0,y=c;if(d&&(m=Sme(m,"y",""),Cme(m,"g")===-1&&(m+="g"),y=c4(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Dme(c,s.lastIndex-1)!==`
- `)&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",m)),d4&&(n=new RegExp("^"+g+"$(?!\\s)",m)),f4&&(r=s.lastIndex),o=Qt(T1,d?n:s,y),d?o?(o.input=c4(o.input,v),o[0]=c4(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:f4&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),d4&&o&&o.length>1&&Qt(Eme,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=gme(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var kp=X3;Mm({target:"RegExp",proto:!0,forced:/./.exec!==kp},{exec:kp});var pS=Function.prototype,nj=pS.apply,xme=pS.bind,rj=pS.call,Ame=typeof Reflect=="object"&&Reflect.apply||(xme?rj.bind(nj):function(){return rj.apply(nj,arguments)}),Ome=$a("species"),p4=RegExp.prototype,Bme=$a("match"),kme=Ie.TypeError,Fme=$a("species"),Tme=Qe("".charAt),oj=Qe("".charCodeAt),_me=Qe("".slice),jme=function(e){return function(t,n){var r,o,i=ri(nc(t)),a=lS(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=oj(i,a))<55296||r>56319||a+1===u||(o=oj(i,a+1))<56320||o>57343?e?Tme(i,a):r:e?_me(i,a,a+2):o-56320+(r-55296<<10)+65536}},Pme=jme(!0),Ime=function(e,t,n){return t+(n?Pme(e,t).length:1)},Nme=Ie.Array,Rme=Math.max,ij=function(e,t,n){for(var r,o,i,a,u=cS(e),s=K3(t,u),l=K3(n===void 0?u:n,u),c=Nme(Rme(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],(a=rS(o))in r?Rm.f(r,a,oS(0,i)):r[a]=i;return c.length=f,c},Lme=Ie.TypeError,aj=function(e,t){var n=e.exec;if(On(n)){var r=Qt(n,e,t);return r!==null&&eo(r),r}if(Ea(e)==="RegExp")return Qt(kp,e,t);throw Lme("RegExp#exec called on incompatible receiver")},Qs=Jz.UNSUPPORTED_Y,Mme=Math.min,e$=[].push,zme=Qe(/./.exec),el=Qe(e$),Kf=Qe("".slice);(function(e,t,n,r){var o=$a(e),i=!ln(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!ln(function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[Ome]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=Qe(/./[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,m){var g,v,y=ri(nc(this)),h=m===void 0?4294967295:m>>>0;if(h===0)return[];if(d===void 0)return[y];if(!Wr(g=d)||!((v=g[Bme])!==void 0?v:Ea(g)=="RegExp"))return Qt(c,y,d,h);for(var b,w,D,S=[],C=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(d.sticky?"y":""),O=0,F=new RegExp(d.source,C+"g");(b=Qt(kp,F,y))&&!((w=F.lastIndex)>O&&(el(S,Kf(y,O,b.index)),b.length>1&&b.index<y.length&&Ame(e$,S,ij(b,1)),D=b[0].length,O=w,S.length>=h));)F.lastIndex===b.index&&F.lastIndex++;return O===y.length?!D&&zme(F,"")||el(S,""):el(S,Kf(y,O)),S.length>h?ij(S,0,h):S}:"0".split(void 0,0).length?function(d,m){return d===void 0&&m===0?[]:Qt(c,this,d,m)}:c,[function(d,m){var g=nc(this),v=d==null?void 0:Nz(d,l);return v?Qt(v,d,g,m):Qt(p,ri(g),d,m)},function(d,m){var g=eo(this),v=ri(d),y=f(p,g,v,m,p!==c);if(y.done)return y.value;var h=function(K,V){var G,q=eo(K).constructor;return q===void 0||(G=eo(q)[Fme])==null?V:function(re){if(Uz(re))return re;throw kme(Pz(re)+" is not a constructor")}(G)}(g,RegExp),b=g.unicode,w=(g.ignoreCase?"i":"")+(g.multiline?"m":"")+(g.unicode?"u":"")+(Qs?"g":"y"),D=new h(Qs?"^(?:"+g.source+")":g,w),S=m===void 0?4294967295:m>>>0;if(S===0)return[];if(v.length===0)return aj(D,v)===null?[v]:[];for(var C=0,O=0,F=[];O<v.length;){D.lastIndex=Qs?0:O;var L,H=aj(D,Qs?Kf(v,O):v);if(H===null||(L=Mme(zz(D.lastIndex+(Qs?O:0)),v.length))===C)O=Ime(v,O,b);else{if(el(F,Kf(v,C,O)),F.length===S)return F;for(var M=1;M<=H.length-1;M++)if(el(F,H[M]),F.length===S)return F;O=C=L}}return el(F,Kf(v,C)),F}]}(o,""[e],function(l,c,f,p,d){var m=Qe(l),g=c.exec;return g===kp||g===p4.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:m(f,c,p)}:{done:!1}});Bp(String.prototype,e,s[0]),Bp(p4,o,s[1])}r&&rc(p4[o],"sham",!0)})("split",0,!!ln(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),Qs),Mm({global:!0},{globalThis:Ie}),Fr&&(k.fn.attr=Fr);var $me=Mz.PROPER,J3=RegExp.prototype,t$=J3.toString,Hme=Qe(Xz),Ume=ln(function(){return t$.call({source:"a",flags:"b"})!="/a/b"}),Vme=$me&&t$.name!="toString";(Ume||Vme)&&Bp(RegExp.prototype,"toString",function(){var e=eo(this),t=ri(e.source),n=e.flags;return"/"+t+"/"+ri(n===void 0&&jz(J3,e)&&!("flags"in J3)?Hme(e):n)},{unsafe:!0});var Wme=function(){function e(){this.title=Q("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 e.prototype.getOptions=function(t){var n=[],r=t.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(t);return n.forEach(function(a){a.value===i?a.selected=!0:delete a.selected}),n},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var n=this.getSelectCodeElem(t);if(n==null||!ce.isElement(n))return"";var r=n.language.toString(),o=t.getMenuConfig("codeSelectLang").codeLangs;return(o===void 0?[]:o).some(function(i){return i.value===r})?r:""},e.prototype.isDisabled=function(t){return t.selection==null||!this.getSelectCodeElem(t)},e.prototype.exec=function(t,n){if(this.getSelectCodeElem(t)!=null){var r={language:n.toString()};I.setNodes(t,r,{match:function(o){return A.checkNodeType(o,"code")}})}},e.prototype.getSelectCodeElem=function(t){var n=A.getSelectedNodeByType(t,"code");if(n==null)return null;var r=A.getParentNode(t,n);return ce.isElement(r)?r.type!=="pre"?null:n:null},e}(),Gme={renderStyle:function(e,t){var n=e,r=t,o="";return cme.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(e,t,n){var r=k(e);if(!ce.isElement(t)||A.getNodeType(t)!=="code")return t;var o=t,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 Wme},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(e,t){var n=e.language,r=n===void 0?"":n;return"<code "+(r?'class="language-'+r+'"':"")+">"+t+"</code>"}}]},qme=/"/g,Kme=Qe("".replace);Mm({target:"String",proto:!0,forced:ln(function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})},{anchor:function(e){return t=e,n=ri(nc(this)),r="<a",(r+=' name="'+Kme(ri(t),qme,""")+'"')+">"+n+"</a>";var t,n,r}});var n$=function(e){var t,n,r,o=function(y,h){var b=typeof Symbol=="function"&&y[Symbol.iterator];if(!b)return y;var w,D,S=b.call(y),C=[];try{for(;(h===void 0||h-- >0)&&!(w=S.next()).done;)C.push(w.value)}catch(O){D={error:O}}finally{try{w&&!w.done&&(b=S.return)&&b.call(S)}finally{if(D)throw D.error}}return C}(e,2),i=o[0],a=o[1],u=[],s=function(y){if(!oe.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=Z_.languages[h];return b?Z_.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),m=d.next();!m.done;m=d.next()){var g=m.value,v=p+Yz(g);typeof g!="string"&&u.push(((r={})[g.type]=!0,r.anchor={path:a,offset:p},r.focus={path:a,offset:v},r)),p=v}}catch(y){t={error:y}}finally{try{m&&!m.done&&(n=d.return)&&n.call(d)}finally{if(t)throw t.error}}return u},xt=function(){return xt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},xt.apply(this,arguments)},on=function(){function e(){throw new Error(`不能实例化
- Can not construct a instance`)}return e.setEditorConfig=function(t){t===void 0&&(t={}),this.editorConfig=xt(xt({},this.editorConfig),t)},e.setSimpleEditorConfig=function(t){t===void 0&&(t={}),this.simpleEditorConfig=xt(xt({},this.simpleEditorConfig),t)},e.setToolbarConfig=function(t){t===void 0&&(t={}),this.toolbarConfig=xt(xt({},this.toolbarConfig),t)},e.setSimpleToolbarConfig=function(t){t===void 0&&(t={}),this.simpleToolbarConfig=xt(xt({},this.simpleToolbarConfig),t)},e.registerPlugin=function(t){this.plugins.push(t)},e.registerMenu=function(t,n){(function(r,o){var i=r.key,a=r.factory,u=r.config,s=Er(Er({},u),o||{});if(Jd[i]!=null)throw new Error("Duplicated key '"+i+"' in menu items");Jd[i]=a,function(l,c){c!=null&&(OI[l]=c)}(i,s)})(t,n)},e.registerRenderElem=function(t){(function(n){var r=n.type,o=n.renderElem;ZI[r||""]=o})(t)},e.registerRenderStyle=function(t){(function(n){WE.push(n)})(t)},e.registerElemToHtml=function(t){(function(n){var r=n.type,o=n.elemToHtml;BI[r||""]=o})(t)},e.registerStyleToHtml=function(t){(function(n){LE.push(n)})(t)},e.registerPreParseHtml=function(t){(function(n){GI.push(n)})(t)},e.registerParseElemHtml=function(t){(function(n){var r=n.selector,o=n.parseElemHtml;gv[r]=o})(t)},e.registerParseStyleHtml=function(t){(function(n){x8.push(n)})(t)},e.registerModule=function(t){cu(t)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();/*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */function cu(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,o=e.elemsToHtml,i=e.styleToHtml,a=e.preParseHtml,u=e.parseElemsHtml,s=e.parseStyleHtml,l=e.editorPlugin;t&&t.forEach(function(c){return on.registerMenu(c)}),n&&n.forEach(function(c){return on.registerRenderElem(c)}),r&&on.registerRenderStyle(r),o&&o.forEach(function(c){return on.registerElemToHtml(c)}),i&&on.registerStyleToHtml(i),a&&a.forEach(function(c){return on.registerPreParseHtml(c)}),u&&u.forEach(function(c){return on.registerParseElemHtml(c)}),s&&on.registerParseStyleHtml(s),l&&on.registerPlugin(l)}eue.forEach(function(e){return cu(e)}),cu(Tle),cu(rde),cu(d0e),cu(r1e),cu(Gme);var r$='<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>',o$={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"]}},Yme={hoverbarKeys:xt(xt({},o$),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};on.setEditorConfig(xt(xt({},Yme),{decorate:n$}));var Xme={hoverbarKeys:o$};on.setSimpleEditorConfig(xt(xt({},Xme),{decorate:n$}));var Jme={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:Q("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:Q("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:Q("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:Q("editor.image"),iconSvg:r$,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:Q("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"]};on.setToolbarConfig(Jme);var Zme={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:Q("editor.image"),iconSvg:r$,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function Qme(e){e===void 0&&(e={});var t=e.selector,n=t===void 0?"":t,r=e.content,o=r===void 0?[]:r,i=e.html,a=e.config,u=a===void 0?{}:a,s=e.mode,l=(s===void 0?"default":s)==="simple"?on.simpleEditorConfig:on.editorConfig,c=xt(xt({},l.hoverbarKeys||{}),u.hoverbarKeys||{});return aee({selector:n,config:xt(xt(xt({},l),u),{hoverbarKeys:c}),content:o,html:i,plugins:on.plugins})}function eye(e){var t=e.selector,n=e.editor,r=e.config,o=r===void 0?{}:r,i=e.mode,a=i===void 0?"default":i;if(!t)throw new Error("Cannot find 'selector' when create toolbar");var u=a==="simple"?on.simpleToolbarConfig:on.toolbarConfig,s=function(l,c){if(l==null)throw new Error("Cannot create toolbar, because editor is null");var f=c.selector,p=c.config,d=p===void 0?{}:p;if(function(v,y){return YI(v,"data-w-e-toolbar",y)}(l,f))throw new Error("Repeated create toolbar by selector '"+f+"'");var m=Er({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},d||{}),g=new fee(f,m);return v8.set(g,l),tm.set(l,g),g}(n,{selector:t,config:xt(xt({},u),o)});return s}on.setSimpleToolbarConfig(Zme);var tye=Object.defineProperty,nye=Object.defineProperties,rye=Object.getOwnPropertyDescriptors,uj=Object.getOwnPropertySymbols,oye=Object.prototype.hasOwnProperty,iye=Object.prototype.propertyIsEnumerable,sj=(e,t,n)=>t in e?tye(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,aye=(e,t)=>{for(var n in t||(t={}))oye.call(t,n)&&sj(e,n,t[n]);if(uj)for(var n of uj(t))iye.call(t,n)&&sj(e,n,t[n]);return e},uye=(e,t)=>nye(e,rye(t));function Hi(e){let t=`请使用 '@${e}' 事件,不要放在 props 中`;return t+=`
- Please use '@${e}' event instead of props`,t}var i$=(e,t)=>{for(const[n,r]of t)e[n]=r;return e};const sye=Z3({props:{mode:{type:String,default:"default"},defaultContent:{type:Array,default:[]},defaultHtml:{type:String,default:""},defaultConfig:{type:Object,default:{}},modelValue:{type:String,default:""}},setup(e,t){const n=pl(null),r=lj(null),o=pl(""),i=()=>{if(!n.value)return;const u=f$(e.defaultContent);Qme({selector:n.value,mode:e.mode,content:u||[],html:e.defaultHtml||e.modelValue||"",config:uye(aye({},e.defaultConfig),{onCreated(s){if(r.value=s,t.emit("onCreated",s),e.defaultConfig.onCreated){const l=Hi("onCreated");throw new Error(l)}},onChange(s){const l=s.getHtml();if(o.value=l,t.emit("update:modelValue",l),t.emit("onChange",s),e.defaultConfig.onChange){const c=Hi("onChange");throw new Error(c)}},onDestroyed(s){if(t.emit("onDestroyed",s),e.defaultConfig.onDestroyed){const l=Hi("onDestroyed");throw new Error(l)}},onMaxLength(s){if(t.emit("onMaxLength",s),e.defaultConfig.onMaxLength){const l=Hi("onMaxLength");throw new Error(l)}},onFocus(s){if(t.emit("onFocus",s),e.defaultConfig.onFocus){const l=Hi("onFocus");throw new Error(l)}},onBlur(s){if(t.emit("onBlur",s),e.defaultConfig.onBlur){const l=Hi("onBlur");throw new Error(l)}},customAlert(s,l){if(t.emit("customAlert",s,l),e.defaultConfig.customAlert){const c=Hi("customAlert");throw new Error(c)}},customPaste:(s,l)=>{if(e.defaultConfig.customPaste){const f=Hi("customPaste");throw new Error(f)}let c;return t.emit("customPaste",s,l,f=>{c=f}),c}})})};function a(u){const s=r.value;s!=null&&s.setHtml(u)}return cj(()=>{i()}),h4(()=>e.modelValue,u=>{u!==o.value&&a(u)}),{box:n}}}),lye={ref:"box",style:{height:"100%"}};function cye(e,t,n,r,o,i){return Q3(),e5("div",lye,null,512)}var fye=i$(sye,[["render",cye]]);const dye=Z3({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(e){const t=pl(null),n=r=>{if(t.value){if(r==null)throw new Error("Not found instance of Editor when create <Toolbar/> component");A.getToolbar(r)||eye({editor:r,selector:t.value||"<div></div>",mode:e.mode,config:e.defaultConfig})}};return c$(()=>{const{editor:r}=e;r!=null&&n(r)}),{selector:t}}}),pye={ref:"selector"};function hye(e,t,n,r,o,i){return Q3(),e5("div",pye,null,512)}var gye=i$(dye,[["render",hye]]);const vye=Z3({name:"FsEditorWang5",components:{Editor:fye,Toolbar:gye},inheritAttrs:!1,props:{container:{type:Object},mode:{type:String},toolbarConfig:{type:Object},toolbarAttrs:{type:Object},editorConfig:{type:Object},uploader:{type:Object},readonly:{type:Boolean},disabled:{type:Boolean}},emits:["ready"],setup(e,t){const n=lj(),r=pl(),o=pl(),i=pl("");function a(v){n.value&&(v?n.value.enable():n.value.disable())}h4(()=>e.readonly,v=>{a(!v)},{immediate:!0}),h4(()=>e.disabled,v=>{a(!v)},{immediate:!0});const u=yS(()=>mS.merge({},vS.wangEditor5.toolbarConfig,e.toolbarConfig)),s={};if(e.uploader){async function v(h){h.options=e.uploader;const{getUploaderImpl:b}=s$();let w=await b(h.options.type);if(w==null)throw d.message.warn("Sorry,The uploader component is not ready yet"),new Error("Sorry,The component is not ready yet");return await(w==null?void 0:w.upload(h))}async function y(h,b){var w;const D={status:"uploading",progress:0,message:void 0},S=H=>{D.progress=H.percent},C=H=>{D.status="error",D.message="文件上传出错:"+H.message,console.error(D.message,H)},O={file:h,fileName:h.name,onProgress:S,onError:C},F=await v(O);let L=F==null?void 0:F.url;(w=e.uploader)!=null&&w.buildUrl&&(L=await e.uploader.buildUrl(F)),b(L)}s.uploadImage={customUpload:y},s.uploadVideo={customUpload:y}}const l=yS(()=>mS.merge({placeholder:"请输入内容...",MENU_CONF:s},vS.wangEditor5.editorConfig,e.editorConfig));l$(()=>{const v=n.value;v!=null&&v.destroy()});const c=v=>{n.value=v,a(!e.readonly&&!e.disabled),t.emit("ready")};function f(){return n}function p(){return r}const{ui:d}=u$();let m=d.formItem.injectFormItemContext();function g(){m.onChange()}return cj(()=>{}),{uploaderImplRef:o,getToolRef:p,getEditorRef:f,toolbarRef:r,editorRef:n,valueHtml:i,toolbarConfigRef:u,editorConfigRef:l,handleCreated:c,onChange:g}}});function mye(e,t,n,r,o,i){const a=bS("Toolbar"),u=bS("Editor");return Q3(),e5("div",$m({class:"fs-editor-wang5"},e.container),[wS(a,$m({ref:e.toolbarRef,style:{"border-bottom":"1px solid #ccc"},editor:e.editorRef,"default-config":e.toolbarConfigRef,mode:e.mode},e.toolbarAttrs),null,16,["editor","default-config","mode"]),wS(u,$m({style:{height:"500px","overflow-y":"hidden"},"default-config":e.editorConfigRef,mode:e.mode},e.$attrs,{onOnChange:e.onChange,onOnCreated:e.handleCreated}),null,16,["default-config","mode","onOnChange","onOnCreated"])],16)}const Eye=a$(vye,[["render",mye]]);export{Eye as default};
|