var V=Object.assign;var gS=(vS,Vy,_t)=>new Promise((zr,te)=>{var Uy=yr=>{try{vr(_t.next(yr))}catch(mi){te(mi)}},$o=yr=>{try{vr(_t.throw(yr))}catch(mi){te(mi)}},vr=yr=>yr.done?zr(yr.value):Promise.resolve(yr.value).then(Uy,$o);vr((_t=_t.apply(vS,Vy)).next())});(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9199],{3996:function(vS,Vy,_t){"use strict";_t.d(Vy,{M:function(){return Wyt},o:function(){return Gyt}});var zr=_t(67294),te=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof _t.g!="undefined"?_t.g:typeof self!="undefined"?self:{};function Uy(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function $o(t){var e={exports:{}};return t(e,e.exports),e.exports}var vr,yr,mi=function(t){return t&&t.Math==Math&&t},Ot=mi(typeof globalThis=="object"&&globalThis)||mi(typeof window=="object"&&window)||mi(typeof self=="object"&&self)||mi(typeof te=="object"&&te)||function(){return this}()||Function("return this")(),Wy=Function.prototype,yS=Wy.apply,c$=Wy.bind,mS=Wy.call,bS=typeof Reflect=="object"&&Reflect.apply||(c$?mS.bind(yS):function(){return mS.apply(yS,arguments)}),wS=Function.prototype,Gy=wS.bind,qy=wS.call,f$=Gy&&Gy.bind(qy),ge=Gy?function(t){return t&&f$(qy,t)}:function(t){return t&&function(){return qy.apply(t,arguments)}},an=function(t){return typeof t=="function"},Rn=function(t){try{return!!t()}catch(e){return!0}},Mn=!Rn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),kc=Function.prototype.call,zn=kc.bind?kc.bind(kc):function(){return kc.apply(kc,arguments)},ES={}.propertyIsEnumerable,DS=Object.getOwnPropertyDescriptor,d$=DS&&!ES.call({1:2},1)?function(t){var e=DS(this,t);return!!e&&e.enumerable}:ES,Ky={f:d$},$r=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},p$=ge({}.toString),h$=ge("".slice),qa=function(t){return h$(p$(t),8,-1)},Yy=Ot.Object,g$=ge("".split),xS=Rn(function(){return!Yy("z").propertyIsEnumerable(0)})?function(t){return qa(t)=="String"?g$(t,""):Yy(t)}:Yy,v$=Ot.TypeError,Xy=function(t){if(t==null)throw v$("Can't call method on "+t);return t},lo=function(t){return xS(Xy(t))},Zn=function(t){return typeof t=="object"?t!==null:an(t)},Jn={},SS=function(t){return an(t)?t:void 0},Ds=function(t,e){return arguments.length<2?SS(Jn[t])||SS(Ot[t]):Jn[t]&&Jn[t][e]||Ot[t]&&Ot[t][e]},Bc=ge({}.isPrototypeOf),Zy=Ds("navigator","userAgent")||"",CS=Ot.process,AS=Ot.Deno,OS=CS&&CS.versions||AS&&AS.version,kS=OS&&OS.v8;kS&&(yr=(vr=kS.split("."))[0]>0&&vr[0]<4?1:+(vr[0]+vr[1])),!yr&&Zy&&(!(vr=Zy.match(/Edge\/(\d+)/))||vr[1]>=74)&&(vr=Zy.match(/Chrome\/(\d+)/))&&(yr=+vr[1]);var Sh,Ch=yr,co=!!Object.getOwnPropertySymbols&&!Rn(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Ch&&Ch<41}),Jy=co&&!Symbol.sham&&typeof Symbol.iterator=="symbol",y$=Ot.Object,xs=Jy?function(t){return typeof t=="symbol"}:function(t){var e=Ds("Symbol");return an(e)&&Bc(e.prototype,y$(t))},m$=Ot.String,Qy=function(t){try{return m$(t)}catch(e){return"Object"}},b$=Ot.TypeError,tm=function(t){if(an(t))return t;throw b$(Qy(t)+" is not a function")},Ah=function(t,e){var n=t[e];return n==null?void 0:tm(n)},w$=Ot.TypeError,E$=Object.defineProperty,bi=Ot["__core-js_shared__"]||function(t,e){try{E$(Ot,t,{value:e,configurable:!0,writable:!0})}catch(n){Ot[t]=e}return e}("__core-js_shared__",{}),Ka=$o(function(t){(t.exports=function(e,n){return bi[e]||(bi[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),D$=Ot.Object,Fc=function(t){return D$(Xy(t))},x$=ge({}.hasOwnProperty),Vt=Object.hasOwn||function(t,e){return x$(Fc(t),e)},S$=0,C$=Math.random(),A$=ge(1 .toString),Oh=function(t){return"Symbol("+(t===void 0?"":t)+")_"+A$(++S$+C$,36)},Tc=Ka("wks"),Ya=Ot.Symbol,BS=Ya&&Ya.for,O$=Jy?Ya:Ya&&Ya.withoutSetter||Oh,wn=function(t){if(!Vt(Tc,t)||!co&&typeof Tc[t]!="string"){var e="Symbol."+t;co&&Vt(Ya,t)?Tc[t]=Ya[t]:Tc[t]=Jy&&BS?BS(e):O$(e)}return Tc[t]},k$=Ot.TypeError,B$=wn("toPrimitive"),F$=function(t,e){if(!Zn(t)||xs(t))return t;var n,r=Ah(t,B$);if(r){if(e===void 0&&(e="default"),n=zn(r,t,e),!Zn(n)||xs(n))return n;throw k$("Can't convert object to primitive value")}return e===void 0&&(e="number"),function(o,i){var a,u;if(i==="string"&&an(a=o.toString)&&!Zn(u=zn(a,o))||an(a=o.valueOf)&&!Zn(u=zn(a,o))||i!=="string"&&an(a=o.toString)&&!Zn(u=zn(a,o)))return u;throw w$("Can't convert object to primitive value")}(t,e)},Ss=function(t){var e=F$(t,"string");return xs(e)?e:e+""},em=Ot.document,T$=Zn(em)&&Zn(em.createElement),FS=function(t){return T$?em.createElement(t):{}},TS=!Mn&&!Rn(function(){return Object.defineProperty(FS("div"),"a",{get:function(){return 7}}).a!=7}),PS=Object.getOwnPropertyDescriptor,P$=Mn?PS:function(t,e){if(t=lo(t),e=Ss(e),TS)try{return PS(t,e)}catch(n){}if(Vt(t,e))return $r(!zn(Ky.f,t,e),t[e])},kh={f:P$},j$=/#|\.prototype\./,Pc=function(t,e){var n=N$[_$(t)];return n==L$||n!=I$&&(an(e)?Rn(e):!!e)},_$=Pc.normalize=function(t){return String(t).replace(j$,".").toLowerCase()},N$=Pc.data={},I$=Pc.NATIVE="N",L$=Pc.POLYFILL="P",R$=Pc,jS=ge(ge.bind),nm=function(t,e){return tm(t),e===void 0?t:jS?jS(t,e):function(){return t.apply(e,arguments)}},M$=Ot.String,z$=Ot.TypeError,Qn=function(t){if(Zn(t))return t;throw z$(M$(t)+" is not an object")},$$=Ot.TypeError,_S=Object.defineProperty,H$=Mn?_S:function(t,e,n){if(Qn(t),e=Ss(e),Qn(n),TS)try{return _S(t,e,n)}catch(r){}if("get"in n||"set"in n)throw $$("Accessors not supported");return"value"in n&&(t[e]=n.value),t},wi={f:H$},Pn=Mn?function(t,e,n){return wi.f(t,e,$r(1,n))}:function(t,e,n){return t[e]=n,t},V$=kh.f,U$=function(t){var e=function(n,r,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,o)}return bS(t,this,arguments)};return e.prototype=t.prototype,e},Ho=function(t,e){var n,r,o,i,a,u,s,l,c=t.target,f=t.global,p=t.stat,d=t.proto,m=f?Ot:p?Ot[c]:(Ot[c]||{}).prototype,g=f?Jn:Jn[c]||Pn(Jn,c,{})[c],v=g.prototype;for(o in e)n=!R$(f?o:c+(p?".":"#")+o,t.forced)&&m&&Vt(m,o),a=g[o],n&&(u=t.noTargetGet?(l=V$(m,o))&&l.value:m[o]),i=n&&u?u:e[o],n&&typeof a==typeof i||(s=t.bind&&n?nm(i,Ot):t.wrap&&n?U$(i):d&&an(i)?ge(i):i,(t.sham||i&&i.sham||a&&a.sham)&&Pn(s,"sham",!0),Pn(g,o,s),d&&(Vt(Jn,r=c+"Prototype")||Pn(Jn,r,{}),Pn(Jn[r],o,i),t.real&&v&&!v[o]&&Pn(v,o,i)))},NS=Ka("keys"),Bh=function(t){return NS[t]||(NS[t]=Oh(t))},W$=!Rn(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),IS=Bh("IE_PROTO"),rm=Ot.Object,G$=rm.prototype,Fh=W$?rm.getPrototypeOf:function(t){var e=Fc(t);if(Vt(e,IS))return e[IS];var n=e.constructor;return an(n)&&e instanceof n?n.prototype:e instanceof rm?G$:null},q$=Ot.String,K$=Ot.TypeError,Th=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=ge(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(r){}return function(r,o){return Qn(r),function(i){if(typeof i=="object"||an(i))return i;throw K$("Can't set "+q$(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),Y$=Math.ceil,X$=Math.floor,om=function(t){var e=+t;return e!=e||e===0?0:(e>0?X$:Y$)(e)},Z$=Math.max,J$=Math.min,im=function(t,e){var n=om(t);return n<0?Z$(n+e,0):J$(n,e)},Q$=Math.min,jc=function(t){return(e=t.length)>0?Q$(om(e),9007199254740991):0;var e},LS=function(t){return function(e,n,r){var o,i=lo(e),a=jc(i),u=im(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},tH={includes:LS(!0),indexOf:LS(!1)},_c={},eH=tH.indexOf,RS=ge([].push),MS=function(t,e){var n,r=lo(t),o=0,i=[];for(n in r)!Vt(_c,n)&&Vt(r,n)&&RS(i,n);for(;e.length>o;)Vt(r,n=e[o++])&&(~eH(i,n)||RS(i,n));return i},Ph=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],nH=Ph.concat("length","prototype"),rH=Object.getOwnPropertyNames||function(t){return MS(t,nH)},am={f:rH},jh={f:Object.getOwnPropertySymbols},oH=ge([].concat),iH=Ds("Reflect","ownKeys")||function(t){var e=am.f(Qn(t)),n=jh.f;return n?oH(e,n(t)):e},um=Object.keys||function(t){return MS(t,Ph)},aH=Mn?Object.defineProperties:function(t,e){Qn(t);for(var n,r=lo(e),o=um(e),i=o.length,a=0;i>a;)wi.f(t,n=o[a++],r[n]);return t},uH=Ds("document","documentElement"),zS=Bh("IE_PROTO"),sm=function(){},$S=function(t){return""},HS=function(t){t.write($S("")),t.close();var e=t.parentWindow.Object;return t=null,e},_h=function(){try{Sh=new ActiveXObject("htmlfile")}catch(r){}var t,e;_h=typeof document!="undefined"?document.domain&&Sh?HS(Sh):((e=FS("iframe")).style.display="none",uH.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write($S("document.F=Object")),t.close(),t.F):HS(Sh);for(var n=Ph.length;n--;)delete _h.prototype[Ph[n]];return _h()};_c[zS]=!0;var Vo=Object.create||function(t,e){var n;return t!==null?(sm.prototype=Qn(t),n=new sm,sm.prototype=null,n[zS]=t):n=_h(),e===void 0?n:aH(n,e)},lm=function(t,e,n){var r=Ss(e);r in t?wi.f(t,r,$r(0,n)):t[r]=n},sH=Ot.Array,lH=Math.max,VS=function(t,e,n){for(var r=jc(t),o=im(e,r),i=im(n===void 0?r:n,r),a=sH(lH(i-o,0)),u=0;oi;i++)if((u=v(t[i]))&&Bc(KS,u))return u;return new Nh(!1)}r=function(y,h){var b=arguments.length<2?GS(y):h;if(tm(b))return Qn(zn(b,y));throw xH(Qy(y)+" is not iterable")}(t,o)}for(s=r.next;!(l=zn(s,r)).done;){try{u=v(l.value)}catch(y){qS(r,"throw",y)}if(typeof u=="object"&&u&&Bc(KS,u))return u}return new Nh(!1)},AH=Ot.String,Ic=function(t){if(Nc(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return AH(t)},OH=function(t,e){return t===void 0?arguments.length<2?"":e:Ic(t)},kH=!Rn(function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",$r(1,7)),t.stack!==7)}),BH=wn("toStringTag"),Ih=Ot.Error,FH=[].push,Lc=function(t,e){var n,r=arguments.length>2?arguments[2]:void 0,o=Bc(dm,this);Th?n=Th(new Ih(void 0),o?Fh(this):dm):(n=o?this:Vo(dm),Pn(n,BH,"Error")),Pn(n,"message",OH(e,"")),kH&&Pn(n,"stack",gH(n.stack,1)),vH(n,r);var i=[];return CH(t,FH,{that:i}),Pn(n,"errors",i),n};Th?Th(Lc,Ih):function(t,e){for(var n=iH(e),r=wi.f,o=kh.f,i=0;i=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values"),Uo.Arguments=Uo.Array;var qH=ge("".charAt),iC=ge("".charCodeAt),KH=ge("".slice),aC=function(t){return function(e,n){var r,o,i=Ic(Xy(e)),a=om(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=iC(i,a))<55296||r>56319||a+1===u||(o=iC(i,a+1))<56320||o>57343?t?qH(i,a):r:t?KH(i,a,a+2):o-56320+(r-55296<<10)+65536}},YH={codeAt:aC(!1),charAt:aC(!0)}.charAt,XH=As.set,ZH=As.getterFor("String Iterator");oC(String,"String",function(t){XH(this,{type:"String Iterator",string:Ic(t),index:0})},function(){var t,e=ZH(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=YH(n,r),e.index+=t.length,{value:t,done:!1})});var JH=Jn.AggregateError,uC=wn("toStringTag");for(var ym 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 sC=Ot[ym],mm=sC&&sC.prototype;mm&&Nc(mm)!==uC&&Pn(mm,uC,ym),Uo[ym]=Uo.Array}var Di,$h,QH=JH,Hh=function(t){return t&&t.Math==Math&&t},Dt=Hh(typeof globalThis=="object"&&globalThis)||Hh(typeof window=="object"&&window)||Hh(typeof self=="object"&&self)||Hh(typeof te=="object"&&te)||function(){return this}()||Function("return this")(),un=function(t){try{return!!t()}catch(e){return!0}},fo=!un(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Mc=Function.prototype.call,sn=Mc.bind?Mc.bind(Mc):function(){return Mc.apply(Mc,arguments)},lC={}.propertyIsEnumerable,cC=Object.getOwnPropertyDescriptor,tV=cC&&!lC.call({1:2},1)?function(t){var e=cC(this,t);return!!e&&e.enumerable}:lC,eV={f:tV},xi=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},fC=Function.prototype,bm=fC.bind,wm=fC.call,nV=bm&&bm.bind(wm),se=bm?function(t){return t&&nV(wm,t)}:function(t){return t&&function(){return wm.apply(t,arguments)}},rV=se({}.toString),oV=se("".slice),Za=function(t){return oV(rV(t),8,-1)},Em=Dt.Object,iV=se("".split),dC=un(function(){return!Em("z").propertyIsEnumerable(0)})?function(t){return Za(t)=="String"?iV(t,""):Em(t)}:Em,aV=Dt.TypeError,Vh=function(t){if(t==null)throw aV("Can't call method on "+t);return t},ks=function(t){return dC(Vh(t))},He=function(t){return typeof t=="function"},Hr=function(t){return typeof t=="object"?t!==null:He(t)},uV=function(t){return He(t)?t:void 0},zc=function(t,e){return arguments.length<2?uV(Dt[t]):Dt[t]&&Dt[t][e]},Uh=se({}.isPrototypeOf),Dm=zc("navigator","userAgent")||"",pC=Dt.process,hC=Dt.Deno,gC=pC&&pC.versions||hC&&hC.version,vC=gC&&gC.v8;vC&&($h=(Di=vC.split("."))[0]>0&&Di[0]<4?1:+(Di[0]+Di[1])),!$h&&Dm&&(!(Di=Dm.match(/Edge\/(\d+)/))||Di[1]>=74)&&(Di=Dm.match(/Chrome\/(\d+)/))&&($h=+Di[1]);var yC=$h,xm=!!Object.getOwnPropertySymbols&&!un(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&yC&&yC<41}),Sm=xm&&!Symbol.sham&&typeof Symbol.iterator=="symbol",sV=Dt.Object,Cm=Sm?function(t){return typeof t=="symbol"}:function(t){var e=zc("Symbol");return He(e)&&Uh(e.prototype,sV(t))},lV=Dt.String,Am=function(t){try{return lV(t)}catch(e){return"Object"}},cV=Dt.TypeError,Om=function(t){if(He(t))return t;throw cV(Am(t)+" is not a function")},$c=function(t,e){var n=t[e];return n==null?void 0:Om(n)},fV=Dt.TypeError,dV=Object.defineProperty,km=function(t,e){try{dV(Dt,t,{value:e,configurable:!0,writable:!0})}catch(n){Dt[t]=e}return e},Si=Dt["__core-js_shared__"]||km("__core-js_shared__",{}),Bm=$o(function(t){(t.exports=function(e,n){return Si[e]||(Si[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),pV=Dt.Object,Fm=function(t){return pV(Vh(t))},hV=se({}.hasOwnProperty),$n=Object.hasOwn||function(t,e){return hV(Fm(t),e)},gV=0,vV=Math.random(),yV=se(1 .toString),mC=function(t){return"Symbol("+(t===void 0?"":t)+")_"+yV(++gV+vV,36)},Hc=Bm("wks"),Ja=Dt.Symbol,bC=Ja&&Ja.for,mV=Sm?Ja:Ja&&Ja.withoutSetter||mC,jn=function(t){if(!$n(Hc,t)||!xm&&typeof Hc[t]!="string"){var e="Symbol."+t;xm&&$n(Ja,t)?Hc[t]=Ja[t]:Hc[t]=Sm&&bC?bC(e):mV(e)}return Hc[t]},bV=Dt.TypeError,wV=jn("toPrimitive"),EV=function(t,e){if(!Hr(t)||Cm(t))return t;var n,r=$c(t,wV);if(r){if(e===void 0&&(e="default"),n=sn(r,t,e),!Hr(n)||Cm(n))return n;throw bV("Can't convert object to primitive value")}return e===void 0&&(e="number"),function(o,i){var a,u;if(i==="string"&&He(a=o.toString)&&!Hr(u=sn(a,o))||He(a=o.valueOf)&&!Hr(u=sn(a,o))||i!=="string"&&He(a=o.toString)&&!Hr(u=sn(a,o)))return u;throw fV("Can't convert object to primitive value")}(t,e)},Tm=function(t){var e=EV(t,"string");return Cm(e)?e:e+""},Pm=Dt.document,DV=Hr(Pm)&&Hr(Pm.createElement),jm=function(t){return DV?Pm.createElement(t):{}},wC=!fo&&!un(function(){return Object.defineProperty(jm("div"),"a",{get:function(){return 7}}).a!=7}),EC=Object.getOwnPropertyDescriptor,xV=fo?EC:function(t,e){if(t=ks(t),e=Tm(e),wC)try{return EC(t,e)}catch(n){}if($n(t,e))return xi(!sn(eV.f,t,e),t[e])},_m={f:xV},SV=Dt.String,CV=Dt.TypeError,tr=function(t){if(Hr(t))return t;throw CV(SV(t)+" is not an object")},AV=Dt.TypeError,DC=Object.defineProperty,OV=fo?DC:function(t,e,n){if(tr(t),e=Tm(e),tr(n),wC)try{return DC(t,e,n)}catch(r){}if("get"in n||"set"in n)throw AV("Accessors not supported");return"value"in n&&(t[e]=n.value),t},Bs={f:OV},_n=fo?function(t,e,n){return Bs.f(t,e,xi(1,n))}:function(t,e,n){return t[e]=n,t},kV=se(Function.toString);He(Si.inspectSource)||(Si.inspectSource=function(t){return kV(t)});var Wh,Vc,Gh,Nm=Si.inspectSource,xC=Dt.WeakMap,BV=He(xC)&&/native code/.test(Nm(xC)),SC=Bm("keys"),Im=function(t){return SC[t]||(SC[t]=mC(t))},Lm={},Rm=Dt.TypeError,FV=Dt.WeakMap;if(BV||Si.state){var Qa=Si.state||(Si.state=new FV),TV=se(Qa.get),CC=se(Qa.has),PV=se(Qa.set);Wh=function(t,e){if(CC(Qa,t))throw new Rm("Object already initialized");return e.facade=t,PV(Qa,t,e),e},Vc=function(t){return TV(Qa,t)||{}},Gh=function(t){return CC(Qa,t)}}else{var Fs=Im("state");Lm[Fs]=!0,Wh=function(t,e){if($n(t,Fs))throw new Rm("Object already initialized");return e.facade=t,_n(t,Fs,e),e},Vc=function(t){return $n(t,Fs)?t[Fs]:{}},Gh=function(t){return $n(t,Fs)}}var tu={set:Wh,get:Vc,has:Gh,enforce:function(t){return Gh(t)?Vc(t):Wh(t,{})},getterFor:function(t){return function(e){var n;if(!Hr(e)||(n=Vc(e)).type!==t)throw Rm("Incompatible receiver, "+t+" required");return n}}},AC=Function.prototype,jV=fo&&Object.getOwnPropertyDescriptor,Mm=$n(AC,"name"),zm={EXISTS:Mm,PROPER:Mm&&function(){}.name==="something",CONFIGURABLE:Mm&&(!fo||fo&&jV(AC,"name").configurable)},Ci=$o(function(t){var e=zm.CONFIGURABLE,n=tu.get,r=tu.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;He(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!$n(u,"name")||e&&u.name!==d)&&_n(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==Dt?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:_n(i,a,u)):f?i[a]=u:km(a,u)})(Function.prototype,"toString",function(){return He(this)&&n(this).source||Nm(this)})}),_V=Math.ceil,NV=Math.floor,$m=function(t){var e=+t;return e!=e||e===0?0:(e>0?NV:_V)(e)},IV=Math.max,LV=Math.min,Hm=function(t,e){var n=$m(t);return n<0?IV(n+e,0):LV(n,e)},RV=Math.min,OC=function(t){return t>0?RV($m(t),9007199254740991):0},qh=function(t){return OC(t.length)},kC=function(t){return function(e,n,r){var o,i=ks(e),a=qh(i),u=Hm(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},MV={includes:kC(!0),indexOf:kC(!1)}.indexOf,BC=se([].push),FC=function(t,e){var n,r=ks(t),o=0,i=[];for(n in r)!$n(Lm,n)&&$n(r,n)&&BC(i,n);for(;e.length>o;)$n(r,n=e[o++])&&(~MV(i,n)||BC(i,n));return i},Kh=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],zV=Kh.concat("length","prototype"),$V=Object.getOwnPropertyNames||function(t){return FC(t,zV)},HV={f:$V},VV={f:Object.getOwnPropertySymbols},UV=se([].concat),WV=zc("Reflect","ownKeys")||function(t){var e=HV.f(tr(t)),n=VV.f;return n?UV(e,n(t)):e},TC=function(t,e){for(var n=WV(e),r=Bs.f,o=_m.f,i=0;ia;)Bs.f(t,n=o[a++],r[n]);return t},lU=zc("document","documentElement"),jC=Im("IE_PROTO"),Gm=function(){},_C=function(t){return""},NC=function(t){t.write(_C("")),t.close();var e=t.parentWindow.Object;return t=null,e},Zh=function(){try{Yh=new ActiveXObject("htmlfile")}catch(r){}var t,e;Zh=typeof document!="undefined"?document.domain&&Yh?NC(Yh):((e=jm("iframe")).style.display="none",lU.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(_C("document.F=Object")),t.close(),t.F):NC(Yh);for(var n=Kh.length;n--;)delete Zh.prototype[Kh[n]];return Zh()};Lm[jC]=!0;var IC,qm,Gc=Object.create||function(t,e){var n;return t!==null?(Gm.prototype=tr(t),n=new Gm,Gm.prototype=null,n[jC]=t):n=Zh(),e===void 0?n:sU(n,e)},cU=Dt.RegExp,fU=un(function(){var t=cU(".","s");return!(t.dotAll&&t.exec(` `)&&t.flags==="s")}),dU=Dt.RegExp,pU=un(function(){var t=dU("(?b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$c")!=="bc"}),hU=tu.get,gU=Bm("native-string-replace",String.prototype.replace),Jh=RegExp.prototype.exec,Km=Jh,vU=se("".charAt),yU=se("".indexOf),mU=se("".replace),Ym=se("".slice),Xm=(qm=/b*/g,sn(Jh,IC=/a/,"a"),sn(Jh,qm,"a"),IC.lastIndex!==0||qm.lastIndex!==0),LC=aU.BROKEN_CARET,Zm=/()??/.exec("")[1]!==void 0;(Xm||Zm||LC||fU||pU)&&(Km=function(t){var e,n,r,o,i,a,u,s=this,l=hU(s),c=eu(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=sn(Km,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=LC&&s.sticky,m=sn(rU,s),g=s.source,v=0,y=c;if(d&&(m=mU(m,"y",""),yU(m,"g")===-1&&(m+="g"),y=Ym(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&vU(c,s.lastIndex-1)!==` `)&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",m)),Zm&&(n=new RegExp("^"+g+"$(?!\\s)",m)),Xm&&(r=s.lastIndex),o=sn(Jh,d?n:s,y),d?o?(o.input=Ym(o.input,v),o[0]=Ym(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Xm&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Zm&&o&&o.length>1&&sn(gU,o[0],n,function(){for(i=1;i=u?t?"":void 0:(r=RC(i,a))<55296||r>56319||a+1===u||(o=RC(i,a+1))<56320||o>57343?t?wU(i,a):r:t?EU(i,a,a+2):o-56320+(r-55296<<10)+65536}},zC={codeAt:MC(!1),charAt:MC(!0)},DU=zC.charAt,xU=function(t,e,n){return e+(n?DU(t,e).length:1)},SU=Dt.TypeError,$C=function(t,e){var n=t.exec;if(He(n)){var r=sn(n,t,e);return r!==null&&tr(r),r}if(Za(t)==="RegExp")return sn(Qh,t,e);throw SU("RegExp#exec called on incompatible receiver")};(function(t,e,n,r){var o=jn(t),i=!un(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!un(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[bU]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=se(/./[o]),s=e(o,""[t],function(l,c,f,p,d){var m=se(l),g=c.exec;return g===Qh||g===Jm.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:m(f,c,p)}:{done:!1}});Ci(String.prototype,t,s[0]),Ci(Jm,o,s[1])}r&&_n(Jm[o],"sham",!0)})("match",function(t,e,n){return[function(r){var o=Vh(this),i=r==null?void 0:$c(r,t);return i?sn(i,r,o):new RegExp(r)[t](eu(o))},function(r){var o=tr(this),i=eu(r),a=n(e,o,i);if(a.done)return a.value;if(!o.global)return $C(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=$C(o,i))!==null;){var f=eu(s[0]);l[c]=f,f===""&&(o.lastIndex=xU(i,OC(o.lastIndex),u)),c++}return c===0?null:l}]}),Wc({global:!0},{globalThis:Dt});var CU=!un(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),HC=Im("IE_PROTO"),Qm=Dt.Object,AU=Qm.prototype,qc=CU?Qm.getPrototypeOf:function(t){var e=Fm(t);if($n(e,HC))return e[HC];var n=e.constructor;return He(n)&&e instanceof n?n.prototype:e instanceof Qm?AU:null},OU=Dt.String,kU=Dt.TypeError,Ts=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=se(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(r){}return function(r,o){return tr(r),function(i){if(typeof i=="object"||He(i))return i;throw kU("Can't set "+OU(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),BU=Dt.Array,FU=Math.max,TU=se("".replace),PU=se("".split),jU=se([].join),tb=String(Error("zxcasd").stack),VC=/\n\s*at [^:]*:[^\n]*/,_U=VC.test(tb),NU=/@[^\n]*\n/.test(tb)&&!/zxcasd/.test(tb),IU=function(t,e){if(typeof t!="string")return t;if(_U)for(;e--;)t=TU(t,VC,"");else if(NU)return jU(function(n,r,o){for(var i,a,u,s,l=qh(n),c=Hm(r,l),f=Hm(o===void 0?l:o,l),p=BU(FU(f-c,0)),d=0;ci;i++)if((u=v(t[i]))&&Uh(KC,u))return u;return new t0(!1)}r=function(y,h){var b=arguments.length<2?GC(y):h;if(Om(b))return tr(sn(b,y));throw $U(Am(y)+" is not iterable")}(t,o)}for(s=r.next;!(l=sn(s,r)).done;){try{u=v(l.value)}catch(y){qC(r,"throw",y)}if(typeof u=="object"&&u&&Uh(KC,u))return u}return new t0(!1)},UU=function(t,e){return t===void 0?arguments.length<2?"":e:eu(t)},WU=!un(function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",xi(1,7)),t.stack!==7)}),GU=jn("toStringTag"),e0=Dt.Error,qU=[].push,Kc=function(t,e){var n,r=arguments.length>2?arguments[2]:void 0,o=Uh(eb,this);Ts?n=Ts(new e0(void 0),o?qc(this):eb):(n=o?this:Gc(eb),_n(n,GU,"Error")),_n(n,"message",UU(e,"")),WU&&_n(n,"stack",IU(n.stack,1)),LU(n,r);var i=[];return VU(t,qU,{that:i}),_n(n,"errors",i),n};Ts?Ts(Kc,e0):TC(Kc,e0);var eb=Kc.prototype=Gc(e0.prototype,{constructor:xi(1,Kc),message:xi(1,""),name:xi(1,"AggregateError")});Wc({global:!0},{AggregateError:Kc});var nb=jn("unscopables"),rb=Array.prototype;rb[nb]==null&&Bs.f(rb,nb,{configurable:!0,value:Gc(null)});var nu,YC,XC,ob=function(t){rb[nb][t]=!0},ib=jn("iterator"),ZC=!1;[].keys&&("next"in(XC=[].keys())?(YC=qc(qc(XC)))!==Object.prototype&&(nu=YC):ZC=!0);var KU=nu==null||un(function(){var t={};return nu[ib].call(t)!==t});KU&&(nu={}),He(nu[ib])||Ci(nu,ib,function(){return this});var ab={IteratorPrototype:nu,BUGGY_SAFARI_ITERATORS:ZC},YU=Bs.f,JC=jn("toStringTag"),QC=function(t,e,n){t&&!$n(t=n?t:t.prototype,JC)&&YU(t,JC,{configurable:!0,value:e})},XU=ab.IteratorPrototype,ZU=function(){return this},JU=zm.PROPER,QU=zm.CONFIGURABLE,tA=ab.IteratorPrototype,n0=ab.BUGGY_SAFARI_ITERATORS,Yc=jn("iterator"),tW=function(){return this},eA=function(t,e,n,r,o,i,a){(function(y,h,b,w){var D=h+" Iterator";y.prototype=Gc(XU,{next:xi(+!w,b)}),QC(y,D,!1),Ps[D]=ZU})(n,e,r);var u,s,l,c=function(y){if(y===o&&g)return g;if(!n0&&y in d)return d[y];switch(y){case"keys":case"values":case"entries":return function(){return new n(this,y)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,m=d[Yc]||d["@@iterator"]||o&&d[o],g=!n0&&m||c(o),v=e=="Array"&&d.entries||m;if(v&&(u=qc(v.call(new t)))!==Object.prototype&&u.next&&(qc(u)!==tA&&(Ts?Ts(u,tA):He(u[Yc])||Ci(u,Yc,tW)),QC(u,f,!0)),JU&&o=="values"&&m&&m.name!=="values"&&(QU?_n(d,"name","values"):(p=!0,g=function(){return sn(m,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(n0||p||!(l in d))&&Ci(d,l,s[l]);else Wc({target:e,proto:!0,forced:n0||p},s);return d[Yc]!==g&&Ci(d,Yc,g,{name:o}),Ps[e]=g,s},eW=tu.set,nW=tu.getterFor("Array Iterator"),Xc=eA(Array,"Array",function(t,e){eW(this,{type:"Array Iterator",target:ks(t),index:0,kind:e})},function(){var t=nW(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");Ps.Arguments=Ps.Array,ob("keys"),ob("values"),ob("entries");var rW=zC.charAt,oW=tu.set,iW=tu.getterFor("String Iterator");eA(String,"String",function(t){oW(this,{type:"String Iterator",string:eu(t),index:0})},function(){var t,e=iW(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=rW(n,r),e.index+=t.length,{value:t,done:!1})});var ub,r0={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},sb=jm("span").classList,nA=sb&&sb.constructor&&sb.constructor.prototype,rA=nA===Object.prototype?void 0:nA,lb=jn("iterator"),oA=jn("toStringTag"),cb=Xc.values,iA=function(t,e){if(t){if(t[lb]!==cb)try{_n(t,lb,cb)}catch(r){t[lb]=cb}if(t[oA]||_n(t,oA,e),r0[e]){for(var n in Xc)if(t[n]!==Xc[n])try{_n(t,n,Xc[n])}catch(r){t[n]=Xc[n]}}}};for(var fb in r0)iA(Dt[fb]&&Dt[fb].prototype,fb);iA(rA,"DOMTokenList"),typeof _t.g=="undefined"?("ActiveXObject"in window&&console.error(`\u62B1\u6B49\uFF0CwangEditor V5+ \u7248\u672C\u5F00\u59CB\uFF0C\u4E0D\u5728\u652F\u6301 IE \u6D4F\u89C8\u5668 Sorry, wangEditor V5+ versions do not support IE browser.`),aA(),uA()):_t.g&&((ub=_t.g.navigator)===null||ub===void 0?void 0:ub.userAgent.match("QQBrowser"))&&(aA(),uA());function aA(){typeof globalThis=="undefined"&&(window.globalThis=window)}function uA(){QH===void 0&&(window.AggregateError=function(t,e){var n=new Error(e);return n.errors=t,n})}var sA,o0=Array.isArray||function(t){return qa(t)=="Array"},lA=function(){},aW=[],cA=Ds("Reflect","construct"),db=/^\s*(?:class|function)\b/,uW=ge(db.exec),sW=!db.exec(lA),Zc=function(t){if(!an(t))return!1;try{return cA(lA,aW,t),!0}catch(e){return!1}},lW=!cA||Rn(function(){var t;return Zc(Zc.call)||!Zc(Object)||!Zc(function(){t=!0})||t})?function(t){if(!an(t))return!1;switch(Nc(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return sW||!!uW(db,YS(t))}:Zc,cW=wn("species"),fA=Ot.Array,dA=function(t,e){return new(function(n){var r;return o0(n)&&(r=n.constructor,(lW(r)&&(r===fA||o0(r.prototype))||Zn(r)&&(r=r[cW])===null)&&(r=void 0)),r===void 0?fA:r}(t))(e===0?0:e)},fW=wn("species"),pA=wn("isConcatSpreadable"),hA=Ot.TypeError,dW=Ch>=51||!Rn(function(){var t=[];return t[pA]=!1,t.concat()[0]!==t}),pW=(sA="concat",Ch>=51||!Rn(function(){var t=[];return(t.constructor={})[fW]=function(){return{foo:1}},t[sA](Boolean).foo!==1})),hW=function(t){if(!Zn(t))return!1;var e=t[pA];return e!==void 0?!!e:o0(t)};Ho({target:"Array",proto:!0,forced:!dW||!pW},{concat:function(t){var e,n,r,o,i,a=Fc(this),u=dA(a,0),s=0;for(e=-1,r=arguments.length;e9007199254740991)throw hA("Maximum allowed index exceeded");for(n=0;n=9007199254740991)throw hA("Maximum allowed index exceeded");lm(u,s++,i)}return u.length=s,u}});var gA=am.f,vA=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],yA={f:function(t){return vA&&qa(t)=="Window"?function(e){try{return gA(e)}catch(n){return VS(vA)}}(t):gA(lo(t))}},gW=ge([].slice),pb={f:wn},vW=wi.f,Ne=function(t){var e=Jn.Symbol||(Jn.Symbol={});Vt(e,t)||vW(e,t,{value:pb.f(t)})},mA=ge([].push),Ai=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,m=Fc(s),g=xS(m),v=nm(l,c),y=jc(g),h=0,b=f||dA,w=e?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),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:mA(w,p)}else switch(t){case 4:return!1;case 7:mA(w,p)}return i?-1:r||o?o:w}},i0={forEach:Ai(0),map:Ai(1),filter:Ai(2),some:Ai(3),every:Ai(4),find:Ai(5),findIndex:Ai(6),filterReject:Ai(7)}.forEach,Hn=Bh("hidden"),bA=wn("toPrimitive"),yW=As.set,wA=As.getterFor("Symbol"),Vr=Object.prototype,Oi=Ot.Symbol,ki=Oi&&Oi.prototype,EA=Ot.TypeError,hb=Ot.QObject,Jc=Ds("JSON","stringify"),DA=kh.f,Bi=wi.f,xA=yA.f,mW=Ky.f,SA=ge([].push),Wo=Ka("symbols"),Qc=Ka("op-symbols"),gb=Ka("string-to-symbol-registry"),vb=Ka("symbol-to-string-registry"),bW=Ka("wks"),yb=!hb||!hb.prototype||!hb.prototype.findChild,mb=Mn&&Rn(function(){return Vo(Bi({},"a",{get:function(){return Bi(this,"a",{value:7}).a}})).a!=7})?function(t,e,n){var r=DA(Vr,e);r&&delete Vr[e],Bi(t,e,n),r&&t!==Vr&&Bi(Vr,e,r)}:Bi,bb=function(t,e){var n=Wo[t]=Vo(ki);return yW(n,{type:"Symbol",tag:t,description:e}),Mn||(n.description=e),n},a0=function(t,e,n){t===Vr&&a0(Qc,e,n),Qn(t);var r=Ss(e);return Qn(n),Vt(Wo,r)?(n.enumerable?(Vt(t,Hn)&&t[Hn][r]&&(t[Hn][r]=!1),n=Vo(n,{enumerable:$r(0,!1)})):(Vt(t,Hn)||Bi(t,Hn,$r(1,{})),t[Hn][r]=!0),mb(t,r,n)):Bi(t,r,n)},CA=function(t,e){Qn(t);var n=lo(e),r=um(n).concat(wb(n));return i0(r,function(o){Mn&&!zn(AA,n,o)||a0(t,o,n[o])}),t},AA=function(t){var e=Ss(t),n=zn(mW,this,e);return!(this===Vr&&Vt(Wo,e)&&!Vt(Qc,e))&&(!(n||!Vt(this,e)||!Vt(Wo,e)||Vt(this,Hn)&&this[Hn][e])||n)},OA=function(t,e){var n=lo(t),r=Ss(e);if(n!==Vr||!Vt(Wo,r)||Vt(Qc,r)){var o=DA(n,r);return!o||!Vt(Wo,r)||Vt(n,Hn)&&n[Hn][r]||(o.enumerable=!0),o}},kA=function(t){var e=xA(lo(t)),n=[];return i0(e,function(r){Vt(Wo,r)||Vt(_c,r)||SA(n,r)}),n},wb=function(t){var e=t===Vr,n=xA(e?Qc:lo(t)),r=[];return i0(n,function(o){!Vt(Wo,o)||e&&!Vt(Vr,o)||SA(r,Wo[o])}),r};if(co||(ki=(Oi=function(){if(Bc(ki,this))throw EA("Symbol is not a constructor");var t=arguments.length&&arguments[0]!==void 0?Ic(arguments[0]):void 0,e=Oh(t),n=function(r){this===Vr&&zn(n,Qc,r),Vt(this,Hn)&&Vt(this[Hn],e)&&(this[Hn][e]=!1),mb(this,e,$r(1,r))};return Mn&&yb&&mb(Vr,e,{configurable:!0,set:n}),bb(e,t)}).prototype,Os(ki,"toString",function(){return wA(this).tag}),Os(Oi,"withoutSetter",function(t){return bb(Oh(t),t)}),Ky.f=AA,wi.f=a0,kh.f=OA,am.f=yA.f=kA,jh.f=wb,pb.f=function(t){return bb(wn(t),t)},Mn&&Bi(ki,"description",{configurable:!0,get:function(){return wA(this).description}})),Ho({global:!0,wrap:!0,forced:!co,sham:!co},{Symbol:Oi}),i0(um(bW),function(t){Ne(t)}),Ho({target:"Symbol",stat:!0,forced:!co},{for:function(t){var e=Ic(t);if(Vt(gb,e))return gb[e];var n=Oi(e);return gb[e]=n,vb[n]=e,n},keyFor:function(t){if(!xs(t))throw EA(t+" is not a symbol");if(Vt(vb,t))return vb[t]},useSetter:function(){yb=!0},useSimple:function(){yb=!1}}),Ho({target:"Object",stat:!0,forced:!co,sham:!Mn},{create:function(t,e){return e===void 0?Vo(t):CA(Vo(t),e)},defineProperty:a0,defineProperties:CA,getOwnPropertyDescriptor:OA}),Ho({target:"Object",stat:!0,forced:!co},{getOwnPropertyNames:kA,getOwnPropertySymbols:wb}),Ho({target:"Object",stat:!0,forced:Rn(function(){jh.f(1)})},{getOwnPropertySymbols:function(t){return jh.f(Fc(t))}}),Jc){var wW=!co||Rn(function(){var t=Oi();return Jc([t])!="[null]"||Jc({a:t})!="{}"||Jc(Object(t))!="{}"});Ho({target:"JSON",stat:!0,forced:wW},{stringify:function(t,e,n){var r=gW(arguments),o=e;if((Zn(e)||t!==void 0)&&!xs(t))return o0(e)||(e=function(i,a){if(an(o)&&(a=zn(o,this,i,a)),!xs(a))return a}),r[1]=e,bS(Jc,null,r)}})}if(!ki[bA]){var EW=ki.valueOf;Os(ki,bA,function(t){return zn(EW,this)})}Mh(Oi,"Symbol"),_c[Hn]=!0,Ne("asyncIterator"),Ne("hasInstance"),Ne("isConcatSpreadable"),Ne("iterator"),Ne("match"),Ne("matchAll"),Ne("replace"),Ne("search"),Ne("species"),Ne("split"),Ne("toPrimitive"),Ne("toStringTag"),Ne("unscopables"),Mh(Ot.JSON,"JSON",!0);var DW=Jn.Symbol;Ne("asyncDispose"),Ne("dispose"),Ne("matcher"),Ne("metadata"),Ne("observable"),Ne("patternMatch"),Ne("replaceAll");var u0=DW,xW=pb.f("iterator"),SW=$o(function(t){function e(n){return typeof u0=="function"&&typeof xW=="symbol"?(t.exports=e=function(r){return typeof r},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(r){return r&&typeof u0=="function"&&r.constructor===u0&&r!==u0.prototype?"symbol":typeof r},t.exports.default=t.exports,t.exports.__esModule=!0),e(n)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0}),CW=Uy(SW),BA=_m.f,AW=un(function(){BA(1)});if(Wc({target:"Object",stat:!0,forced:!fo||AW,sham:!fo},{getOwnPropertyDescriptor:function(t,e){return BA(ks(t),e)}}),(typeof _t.g=="undefined"?"undefined":CW(_t.g))==="object"){var OW=Object.getOwnPropertyDescriptor(_t.g,"window");_t.g.window&&!OW.set||(_t.g.window=_t.g,_t.g.requestAnimationFrame=function(){},_t.g.navigator={userAgent:""},_t.g.location={hostname:"0.0.0.0",port:0,protocol:"http:"},_t.g.btoa=function(){},_t.g.crypto={getRandomValues:function(t){return nodeCrypto.randomFillSync(t)}}),_t.g.document!=null&&_t.g.document.getElementsByTagName==null&&(_t.g.document.getElementsByTagName=function(){return[]})}/*! * is-plain-object * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */function FA(t){return Object.prototype.toString.call(t)==="[object Object]"}function En(t){var e,n;return FA(t)!==!1&&((e=t.constructor)===void 0||FA(n=e.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1)}function Ur(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r3?e.i-4:e.i:Array.isArray(t)?1:Db(t)?2:xb(t)?3:0}function Eb(t,e){return js(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function TA(t,e,n){var r=js(t);r===2?t.set(e,n):r===3?(t.delete(e),t.add(n)):t[e]=n}function Db(t){return TW&&t instanceof Map}function xb(t){return PW&&t instanceof Set}function iu(t){return t.o||t.t}function Sb(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=_W(t);delete e[er];for(var n=Nb(e),r=0;r1&&(t.set=t.add=t.clear=t.delete=kW),Object.freeze(t),e&&tf(t,function(n,r){return Cb(r,!0)},!0)),t}function kW(){Ur(2)}function Ab(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Go(t){var e=NW[t];return e||Ur(18,t),e}function PA(){return ef}function Ob(t,e){e&&(Go("Patches"),t.u=[],t.s=[],t.v=e)}function s0(t){kb(t),t.p.forEach(BW),t.p=null}function kb(t){t===ef&&(ef=t.l)}function jA(t){return ef={p:[],l:ef,h:t,m:!0,_:0}}function BW(t){var e=t[er];e.i===0||e.i===1?e.j():e.O=!0}function Bb(t,e){e._=e.p.length;var n=e.p[0],r=t!==void 0&&t!==n;return e.h.g||Go("ES5").S(e,t,r),r?(n[er].P&&(s0(e),Ur(4)),ou(t)&&(t=l0(e,t),e.l||c0(e,t)),e.u&&Go("Patches").M(n[er],t,e.u,e.s)):t=l0(e,n,[]),s0(e),e.u&&e.v(e.u,e.s),t!==MA?t:void 0}function l0(t,e,n){if(Ab(e))return e;var r=e[er];if(!r)return tf(e,function(i,a){return _A(t,r,e,i,a,n)},!0),e;if(r.A!==t)return e;if(!r.P)return c0(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=Sb(r.k):r.o;tf(r.i===3?new Set(o):o,function(i,a){return _A(t,r,o,i,a,n)}),c0(t,o,!1),n&&t.u&&Go("Patches").R(r,n,t.u,t.s)}return r.o}function _A(t,e,n,r,o,i){if(ru(o)){var a=l0(t,o,i&&e&&e.i!==3&&!Eb(e.D,r)?i.concat(r):void 0);if(TA(n,r,a),!ru(a))return;t.m=!1}if(ou(o)&&!Ab(o)){if(!t.h.F&&t._<1)return;l0(t,o),e&&e.A.l||c0(t,o)}}function c0(t,e,n){n===void 0&&(n=!1),t.h.F&&t.m&&Cb(e,n)}function Fb(t,e){var n=t[er];return(n?iu(n):t)[e]}function NA(t,e){if(e in t)for(var n=Object.getPrototypeOf(t);n;){var r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=Object.getPrototypeOf(n)}}function Tb(t){t.P||(t.P=!0,t.l&&Tb(t.l))}function Pb(t){t.o||(t.o=Sb(t.t))}function jb(t,e,n){var r=Db(e)?Go("MapSet").N(e,n):xb(e)?Go("MapSet").T(e,n):t.g?function(o,i){var a=Array.isArray(o),u={i:a?1:0,A:i?i.A:PA(),P:!1,I:!1,D:{},l:i,t:o,k:null,o:null,j:null,C:!1},s=u,l=f0;a&&(s=[u],l=d0);var c=Proxy.revocable(s,l),f=c.revoke,p=c.proxy;return u.k=p,u.j=f,p}(e,n):Go("ES5").J(e,n);return(n?n.A:PA()).p.push(r),r}function FW(t){return ru(t)||Ur(22,t),function e(n){if(!ou(n))return n;var r,o=n[er],i=js(n);if(o){if(!o.P&&(o.i<4||!Go("ES5").K(o)))return o.t;o.I=!0,r=IA(n,i),o.I=!1}else r=IA(n,i);return tf(r,function(a,u){o&&function(s,l){return js(s)===2?s.get(l):s[l]}(o.t,a)===u||TA(r,a,e(u))}),i===3?new Set(r):r}(t)}function IA(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Sb(t)}var LA,ef,_b=typeof Symbol!="undefined"&&typeof Symbol("x")=="symbol",TW=typeof Map!="undefined",PW=typeof Set!="undefined",RA=typeof Proxy!="undefined"&&Proxy.revocable!==void 0&&typeof Reflect!="undefined",MA=_b?Symbol.for("immer-nothing"):((LA={})["immer-nothing"]=!0,LA),zA=_b?Symbol.for("immer-draftable"):"__$immer_draftable",er=_b?Symbol.for("immer-state"):"__$immer_state",jW=""+Object.prototype.constructor,Nb=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,_W=Object.getOwnPropertyDescriptors||function(t){var e={};return Nb(t).forEach(function(n){e[n]=Object.getOwnPropertyDescriptor(t,n)}),e},NW={},f0={get:function(t,e){if(e===er)return t;var n=iu(t);if(!Eb(n,e))return function(o,i,a){var u,s=NA(i,a);return s?"value"in s?s.value:(u=s.get)===null||u===void 0?void 0:u.call(o.k):void 0}(t,n,e);var r=n[e];return t.I||!ou(r)?r:r===Fb(t.t,e)?(Pb(t),t.o[e]=jb(t.A.h,r,t)):r},has:function(t,e){return e in iu(t)},ownKeys:function(t){return Reflect.ownKeys(iu(t))},set:function(t,e,n){var r=NA(iu(t),e);if(r==null?void 0:r.set)return r.set.call(t.k,n),!0;if(!t.P){var o=Fb(iu(t),e),i=o==null?void 0:o[er];if(i&&i.t===n)return t.o[e]=n,t.D[e]=!1,!0;if(function(a,u){return a===u?a!==0||1/a==1/u:a!=a&&u!=u}(n,o)&&(n!==void 0||Eb(t.t,e)))return!0;Pb(t),Tb(t)}return t.o[e]===n&&typeof n!="number"&&(n!==void 0||e in t.o)||(t.o[e]=n,t.D[e]=!0,!0)},deleteProperty:function(t,e){return Fb(t.t,e)!==void 0||e in t.t?(t.D[e]=!1,Pb(t),Tb(t)):delete t.D[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var n=iu(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:r.enumerable,value:n[e]}},defineProperty:function(){Ur(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Ur(12)}},d0={};tf(f0,function(t,e){d0[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),d0.deleteProperty=function(t,e){return f0.deleteProperty.call(this,t[0],e)},d0.set=function(t,e,n){return f0.set.call(this,t[0],e,n,t[0])};var IW=function(){function t(n){var r=this;this.g=RA,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;y1?l-1:0),f=1;f=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=Go("Patches").$;return ru(n)?a(n,r):this.produce(n,function(u){return a(u,r)})},t}(),nr=new IW,p0=nr.produce;nr.produceWithPatches.bind(nr),nr.setAutoFreeze.bind(nr),nr.setUseProxies.bind(nr),nr.applyPatches.bind(nr);var $A=nr.createDraft.bind(nr),HA=nr.finishDraft.bind(nr);function po(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var h0=new WeakMap,nf=new WeakMap,VA=new WeakMap,UA=new WeakMap,WA=new WeakMap,GA=new WeakMap;function qA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function g0(t){for(var e=1;e{var t={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:e=>{for(var n of E.pathRefs(t))pG.transform(n,e);for(var r of E.pointRefs(t))hG.transform(r,e);for(var o of E.rangeRefs(t))vG.transform(o,e);var i=new Set,a=[],u=p=>{if(p){var d=p.join(",");i.has(d)||(i.add(d),a.push(p))}},s=h0.get(t)||[],l=RW(e);for(var c of s)u(_.transform(c,e));for(var f of l)u(f);h0.set(t,a),N.transform(t,e),t.operations.push(e),E.normalize(t),e.type==="set_selection"&&(t.marks=null),nf.get(t)||(nf.set(t,!0),Promise.resolve().then(()=>{nf.set(t,!1),t.onChange(),t.operations=[]}))},addMark:(e,n)=>{var{selection:r}=t;if(r)if(R.isExpanded(r))N.setNodes(t,{[e]:n},{match:it.isText,split:!0});else{var o=g0(g0({},E.marks(t)||{}),{},{[e]:n});t.marks=o,nf.get(t)||t.onChange()}},deleteBackward:e=>{var{selection:n}=t;n&&R.isCollapsed(n)&&N.delete(t,{unit:e,reverse:!0})},deleteForward:e=>{var{selection:n}=t;n&&R.isCollapsed(n)&&N.delete(t,{unit:e})},deleteFragment:e=>{var{selection:n}=t;n&&R.isExpanded(n)&&N.delete(t,{reverse:e==="backward"})},getFragment:()=>{var{selection:e}=t;return e?Q.fragment(t,e):[]},insertBreak:()=>{N.splitNodes(t,{always:!0})},insertFragment:e=>{N.insertFragment(t,e)},insertNode:e=>{N.insertNodes(t,e)},insertText:e=>{var{selection:n,marks:r}=t;if(n){if(r){var o=g0({text:e},r);N.insertNodes(t,o)}else N.insertText(t,e);t.marks=null}},normalizeNode:e=>{var[n,r]=e;if(!it.isText(n))if(ft.isElement(n)&&n.children.length===0)N.insertNodes(t,{text:""},{at:r.concat(0),voids:!0});else for(var o=!E.isEditor(n)&&ft.isElement(n)&&(t.isInline(n)||n.children.length===0||it.isText(n.children[0])||t.isInline(n.children[0])),i=0,a=0;a{var{selection:n}=t;if(n)if(R.isExpanded(n))N.unsetNodes(t,e,{match:it.isText,split:!0});else{var r=g0({},E.marks(t)||{});delete r[e],t.marks=r,nf.get(t)||t.onChange()}}};return t},RW=t=>{switch(t.type){case"insert_text":case"remove_text":case"set_node":var{path:e}=t;return _.levels(e);case"insert_node":var{node:n,path:r}=t,o=_.levels(r),i=it.isText(n)?[]:Array.from(Q.nodes(n),w=>{var[,D]=w;return r.concat(D)});return[...o,...i];case"merge_node":var{path:a}=t;return[..._.ancestors(a),_.previous(a)];case"move_node":var{path:u,newPath:s}=t;if(_.equals(u,s))return[];var l=[],c=[];for(var f of _.ancestors(u)){var p=_.transform(f,t);l.push(p)}for(var d of _.ancestors(s)){var m=_.transform(d,t);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}=t;return[..._.ancestors(h)];case"split_node":var{path:b}=t;return[..._.levels(b),_.next(b)];default:return[]}};function qo(t,e){if(t==null)return{};var n,r,o=function(a,u){if(a==null)return{};var s,l,c={},f=Object.keys(a);for(l=0;l=0||(c[s]=a[s]);return c}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var Ct,Ib=function(t){var e=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=!e,r=e?VW(t):t,o=Ct.None,i=Ct.None,a=0,u=null;for(var s of r){var l=s.codePointAt(0);if(!l)break;var c=eG(s,l);if([o,i]=n?[i,c]:[c,o],_s(o,Ct.ZWJ)&&_s(i,Ct.ExtPict)&&!iG(n?t.substring(0,a):t.substring(0,t.length-a))||_s(o,Ct.RI)&&_s(i,Ct.RI)&&!(u=u!==null?!u:!!n||uG(t.substring(0,t.length-a)))||o!==Ct.None&&i!==Ct.None&&rG(o,i))break;a+=s.length}return a||1},MW=/\s/,zW=/[\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]/,$W=/['\u2018\u2019]/,Lb=(t,e,n)=>{if(n){var r=t.length-e;return[t.slice(r,t.length),t.slice(0,r)]}return[t.slice(0,e),t.slice(e)]},HW=function t(e,n){var r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(MW.test(e))return!1;if($W.test(e)){var o=Ib(n,r),[i,a]=Lb(n,o,r);if(t(i,a,r))return!0}return!zW.test(e)},VW=function*(t){for(var e=t.length-1,n=0;nt>=55296&&t<=56319,WW=t=>t>=56320&&t<=57343;(function(t){t[t.None=0]="None",t[t.Extend=1]="Extend",t[t.ZWJ=2]="ZWJ",t[t.RI=4]="RI",t[t.Prepend=8]="Prepend",t[t.SpacingMark=16]="SpacingMark",t[t.L=32]="L",t[t.V=64]="V",t[t.T=128]="T",t[t.LV=256]="LV",t[t.LVT=512]="LVT",t[t.ExtPict=1024]="ExtPict",t[t.Any=2048]="Any"})(Ct||(Ct={}));var GW=/^(?:[\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])$/,qW=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,KW=/^(?:[\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])$/,YW=/^[\u1100-\u115F\uA960-\uA97C]$/,XW=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,ZW=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,JW=/^[\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]$/,QW=/^[\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]$/,tG=/^(?:[\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])$/,eG=(t,e)=>{var n=Ct.Any;return t.search(GW)!==-1&&(n|=Ct.Extend),e===8205&&(n|=Ct.ZWJ),e>=127462&&e<=127487&&(n|=Ct.RI),t.search(qW)!==-1&&(n|=Ct.Prepend),t.search(KW)!==-1&&(n|=Ct.SpacingMark),t.search(YW)!==-1&&(n|=Ct.L),t.search(XW)!==-1&&(n|=Ct.V),t.search(ZW)!==-1&&(n|=Ct.T),t.search(JW)!==-1&&(n|=Ct.LV),t.search(QW)!==-1&&(n|=Ct.LVT),t.search(tG)!==-1&&(n|=Ct.ExtPict),n};function _s(t,e){return(t&e)!=0}var nG=[[Ct.L,Ct.L|Ct.V|Ct.LV|Ct.LVT],[Ct.LV|Ct.V,Ct.V|Ct.T],[Ct.LVT|Ct.T,Ct.T],[Ct.Any,Ct.Extend|Ct.ZWJ],[Ct.Any,Ct.SpacingMark],[Ct.Prepend,Ct.Any],[Ct.ZWJ,Ct.ExtPict],[Ct.RI,Ct.RI]];function rG(t,e){return nG.findIndex(n=>_s(t,n[0])&&_s(e,n[1]))===-1}var oG=/(?:[\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$/,iG=t=>t.search(oG)!==-1,aG=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,uG=t=>{var e=t.match(aG);return e!==null&&e[0].length/2%2==1},KA=t=>En(t)&&Q.isNodeList(t.children)&&!E.isEditor(t),ft={isAncestor:t=>En(t)&&Q.isNodeList(t.children),isElement:KA,isElementList:t=>Array.isArray(t)&&t.every(e=>ft.isElement(e)),isElementProps:t=>t.children!==void 0,isElementType:function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return KA(t)&&t[n]===e},matches(t,e){for(var n in e)if(n!=="children"&&t[n]!==e[n])return!1;return!0}},sG=["text"],lG=["text"];function YA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Ns(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:o=t.selection,match:i}=e;if(o){var a=E.path(t,o),u=r==="lowest";for(var[s,l]of E.levels(t,{at:a,voids:n,match:i,reverse:u}))if(!it.isText(s)&&!_.equals(a,l))return[s,l]}},addMark(t,e,n){t.addMark(e,n)},after(t,e){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:E.point(t,e,{edge:"end"}),focus:E.end(t,[])},{distance:i=1}=r,a=0;for(var u of E.positions(t,Ns(Ns({},r),{},{at:o}))){if(a>i)break;a!==0&&(n=u),a++}return n},before(t,e){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:E.start(t,[]),focus:E.point(t,e,{edge:"start"})},{distance:i=1}=r,a=0;for(var u of E.positions(t,Ns(Ns({},r),{},{at:o,reverse:!0}))){if(a>i)break;a!==0&&(n=u),a++}return n},deleteBackward(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=e;t.deleteBackward(n)},deleteForward(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=e;t.deleteForward(n)},deleteFragment(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{direction:n="forward"}=e;t.deleteFragment(n)},edges:(t,e)=>[E.start(t,e),E.end(t,e)],end:(t,e)=>E.point(t,e,{edge:"end"}),first(t,e){var n=E.path(t,e,{edge:"start"});return E.node(t,n)},fragment(t,e){var n=E.range(t,e);return Q.fragment(t,n)},hasBlocks:(t,e)=>e.children.some(n=>E.isBlock(t,n)),hasInlines:(t,e)=>e.children.some(n=>it.isText(n)||E.isInline(t,n)),hasTexts:(t,e)=>e.children.every(n=>it.isText(n)),insertBreak(t){t.insertBreak()},insertFragment(t,e){t.insertFragment(e)},insertNode(t,e){t.insertNode(e)},insertText(t,e){t.insertText(e)},isBlock:(t,e)=>ft.isElement(e)&&!t.isInline(e),isEditor(t){if(!En(t))return!1;var e=XA.get(t);if(e!==void 0)return e;var n=typeof t.addMark=="function"&&typeof t.apply=="function"&&typeof t.deleteBackward=="function"&&typeof t.deleteForward=="function"&&typeof t.deleteFragment=="function"&&typeof t.insertBreak=="function"&&typeof t.insertFragment=="function"&&typeof t.insertNode=="function"&&typeof t.insertText=="function"&&typeof t.isInline=="function"&&typeof t.isVoid=="function"&&typeof t.normalizeNode=="function"&&typeof t.onChange=="function"&&typeof t.removeMark=="function"&&(t.marks===null||En(t.marks))&&(t.selection===null||R.isRange(t.selection))&&Q.isNodeList(t.children)&&Fi.isOperationList(t.operations);return XA.set(t,n),n},isEnd(t,e,n){var r=E.end(t,n);return Ft.equals(e,r)},isEdge:(t,e,n)=>E.isStart(t,e,n)||E.isEnd(t,e,n),isEmpty(t,e){var{children:n}=e,[r]=n;return n.length===0||n.length===1&&it.isText(r)&&r.text===""&&!t.isVoid(e)},isInline:(t,e)=>ft.isElement(e)&&t.isInline(e),isNormalizing(t){var e=VA.get(t);return e===void 0||e},isStart(t,e,n){if(e.offset!==0)return!1;var r=E.start(t,n);return Ft.equals(e,r)},isVoid:(t,e)=>ft.isElement(e)&&t.isVoid(e),last(t,e){var n=E.path(t,e,{edge:"end"});return E.node(t,n)},leaf(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=E.path(t,e,n);return[Q.leaf(t,r),r]},*levels(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=t.selection,reverse:r=!1,voids:o=!1}=e,{match:i}=e;if(i==null&&(i=()=>!0),n){var a=[],u=E.path(t,n);for(var[s,l]of Q.levels(t,u))if(i(s,l)&&(a.push([s,l]),!o&&E.isVoid(t,s)))break;r&&a.reverse(),yield*a}},marks(t){var{marks:e,selection:n}=t;if(!n)return null;if(e)return e;if(R.isExpanded(n)){var[r]=E.nodes(t,{match:it.isText});if(r){var[o]=r;return qo(o,sG)}return{}}var{anchor:i}=n,{path:a}=i,[u]=E.leaf(t,a);if(i.offset===0){var s=E.previous(t,{at:a,match:it.isText}),l=E.above(t,{match:d=>E.isBlock(t,d)});if(s&&l){var[c,f]=s,[,p]=l;_.isAncestor(p,f)&&(u=c)}}return qo(u,lG)},next(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=e,{match:o,at:i=t.selection}=e;if(i){var a=E.after(t,i,{voids:r});if(a){var[,u]=E.last(t,[]),s=[a.path,u];if(_.isPath(i)&&i.length===0)throw new Error("Cannot get the next node from the root node!");if(o==null)if(_.isPath(i)){var[l]=E.parent(t,i);o=f=>l.children.includes(f)}else o=()=>!0;var[c]=E.nodes(t,{at:s,match:o,mode:n,voids:r});return c}}},node(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=E.path(t,e,n);return[Q.get(t,r),r]},*nodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=t.selection,mode:r="all",universal:o=!1,reverse:i=!1,voids:a=!1}=e,{match:u}=e;if(u||(u=()=>!0),n){var s,l;if(cG.isSpan(n))s=n[0],l=n[1];else{var c=E.path(t,n,{edge:"start"}),f=E.path(t,n,{edge:"end"});s=i?f:c,l=i?c:f}var p,d=Q.nodes(t,{reverse:i,from:s,to:l,pass:b=>{var[w]=b;return!a&&E.isVoid(t,w)}}),m=[];for(var[g,v]of d){var y=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&&it.isText(g))return}}r==="lowest"&&p&&(o?m.push(p):yield p),o&&(yield*m)}},normalize(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:n=!1}=e,r=i=>h0.get(i)||[];if(E.isNormalizing(t)){if(n){var o=Array.from(Q.nodes(t),i=>{var[,a]=i;return a});h0.set(t,o)}r(t).length!==0&&E.withoutNormalizing(t,()=>{for(var i of r(t))if(Q.has(t,i)){var a=E.node(t,i),[u,s]=a;ft.isElement(u)&&u.children.length===0&&t.normalizeNode(a)}for(var l=42*r(t).length,c=0;r(t).length!==0;){if(c>l)throw new Error(` Could not completely normalize the editor after `.concat(l,` iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state. `));var f=r(t).pop();if(Q.has(t,f)){var p=E.node(t,f);t.normalizeNode(p)}c++}})}},parent(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=E.path(t,e,n),o=_.parent(r);return E.node(t,o)},path(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:r,edge:o}=n;if(_.isPath(e)){if(o==="start"){var[,i]=Q.first(t,e);e=i}else if(o==="end"){var[,a]=Q.last(t,e);e=a}}return R.isRange(e)&&(e=o==="start"?R.start(e):o==="end"?R.end(e):_.common(e.anchor.path,e.focus.path)),Ft.isPoint(e)&&(e=e.path),r!=null&&(e=e.slice(0,r)),e},hasPath:(t,e)=>Q.has(t,e),pathRef(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:e,affinity:r,unref(){var{current:i}=o;return E.pathRefs(t).delete(o),o.current=null,i}};return E.pathRefs(t).add(o),o},pathRefs(t){var e=UA.get(t);return e||(e=new Set,UA.set(t,e)),e},point(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:r="start"}=n;if(_.isPath(e)){var o;if(r==="end"){var[,i]=Q.last(t,e);o=i}else{var[,a]=Q.first(t,e);o=a}var u=Q.get(t,o);if(!it.isText(u))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(e,"] because it has no ").concat(r," text node."));return{path:o,offset:r==="end"?u.text.length:0}}if(R.isRange(e)){var[s,l]=R.edges(e);return r==="start"?s:l}return e},pointRef(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:e,affinity:r,unref(){var{current:i}=o;return E.pointRefs(t).delete(o),o.current=null,i}};return E.pointRefs(t).add(o),o},pointRefs(t){var e=WA.get(t);return e||(e=new Set,WA.set(t,e)),e},*positions(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=t.selection,unit:r="offset",reverse:o=!1,voids:i=!1}=e;if(n){var a=E.range(t,n),[u,s]=R.edges(a),l=o?s:u,c=!1,f="",p=0,d=0,m=0;for(var[g,v]of E.nodes(t,{at:n,reverse:o,voids:i})){if(ft.isElement(g)){if(!i&&t.isVoid(g)){yield E.start(t,v);continue}if(t.isInline(g))continue;if(E.hasInlines(t,g)){var y=_.isAncestor(v,s.path)?s:E.end(t,v),h=_.isAncestor(v,u.path)?u:E.start(t,v);f=E.string(t,{anchor:h,focus:y},{voids:i}),c=!0}}if(it.isText(g)){var b=_.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=Lb(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,x){return S==="character"?Ib(D,x):S==="word"?function(O){for(var T=arguments.length>1&&arguments[1]!==void 0&&arguments[1],I=0,M=!1;O.length>0;){var z=Ib(O,T),[Y,W]=Lb(O,z,T);if(HW(Y,W,T))M=!0,I+=z;else{if(M)break;I+=z}O=W}return I}(D,x):S==="line"||S==="block"?D.length:1}},previous(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=e,{match:o,at:i=t.selection}=e;if(i){var a=E.before(t,i,{voids:r});if(a){var[,u]=E.first(t,[]),s=[a.path,u];if(_.isPath(i)&&i.length===0)throw new Error("Cannot get the previous node from the root node!");if(o==null)if(_.isPath(i)){var[l]=E.parent(t,i);o=f=>l.children.includes(f)}else o=()=>!0;var[c]=E.nodes(t,{reverse:!0,at:s,match:o,mode:n,voids:r});return c}}},range:(t,e,n)=>R.isRange(e)&&!n?e:{anchor:E.start(t,e),focus:E.end(t,n||e)},rangeRef(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:e,affinity:r,unref(){var{current:i}=o;return E.rangeRefs(t).delete(o),o.current=null,i}};return E.rangeRefs(t).add(o),o},rangeRefs(t){var e=GA.get(t);return e||(e=new Set,GA.set(t,e)),e},removeMark(t,e){t.removeMark(e)},setNormalizing(t,e){VA.set(t,e)},start:(t,e)=>E.point(t,e,{edge:"start"}),string(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,o=E.range(t,e),[i,a]=R.edges(o),u="";for(var[s,l]of E.nodes(t,{at:o,match:it.isText,voids:r})){var c=s.text;_.equals(l,a.path)&&(c=c.slice(0,a.offset)),_.equals(l,i.path)&&(c=c.slice(i.offset)),u+=c}return u},unhangRange(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,[o,i]=R.edges(e);if(o.offset!==0||i.offset!==0||R.isCollapsed(e))return e;var a=E.above(t,{at:i,match:p=>E.isBlock(t,p)}),u=a?a[1]:[],s={anchor:E.start(t,[]),focus:i},l=!0;for(var[c,f]of E.nodes(t,{at:s,match:it.isText,reverse:!0,voids:r}))if(l)l=!1;else if(c.text!==""||_.isBefore(f,u)){i={path:f,offset:c.text.length};break}return{anchor:o,focus:i}},void(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return E.above(t,Ns(Ns({},e),{},{match:n=>E.isVoid(t,n)}))},withoutNormalizing(t,e){var n=E.isNormalizing(t);E.setNormalizing(t,!1);try{e()}finally{E.setNormalizing(t,n)}E.normalize(t)}},qyt={isLocation:t=>_.isPath(t)||Ft.isPoint(t)||R.isRange(t)},cG={isSpan:t=>Array.isArray(t)&&t.length===2&&t.every(_.isPath)},fG=["children"],dG=["text"],ZA=new WeakMap,Q={ancestor(t,e){var n=Q.get(t,e);if(it.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(e,"] because it refers to a text node instead: ").concat(n));return n},*ancestors(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of _.ancestors(e,n)){var o=[Q.ancestor(t,r),r];yield o}},child(t,e){if(it.isText(t))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(t)));var n=t.children[e];if(n==null)throw new Error("Cannot get child at index `".concat(e,"` in node: ").concat(JSON.stringify(t)));return n},*children(t,e){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{reverse:r=!1}=n,o=Q.ancestor(t,e),{children:i}=o,a=r?i.length-1:0;r?a>=0:a1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of Q.nodes(t,e))r.length!==0&&(yield[n,r])},*elements(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of Q.nodes(t,e))ft.isElement(n)&&(yield[n,r])},extractProps:t=>ft.isAncestor(t)?qo(t,fG):qo(t,dG),first(t,e){for(var n=e.slice(),r=Q.get(t,n);r&&!it.isText(r)&&r.children.length!==0;)r=r.children[0],n.push(0);return[r,n]},fragment(t,e){if(it.isText(t))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(t)));var n=p0({children:t.children},r=>{var[o,i]=R.edges(e),a=Q.nodes(r,{reverse:!0,pass:p=>{var[,d]=p;return!R.includes(e,d)}});for(var[,u]of a){if(!R.includes(e,u)){var s=Q.parent(r,u),l=u[u.length-1];s.children.splice(l,1)}if(_.equals(u,i.path)){var c=Q.leaf(r,u);c.text=c.text.slice(0,i.offset)}if(_.equals(u,o.path)){var f=Q.leaf(r,u);f.text=f.text.slice(o.offset)}}E.isEditor(r)&&(r.selection=null)});return n.children},get(t,e){for(var n=t,r=0;rit.isText(t)||ft.isElement(t)||E.isEditor(t),isNodeList(t){if(!Array.isArray(t))return!1;var e=ZA.get(t);if(e!==void 0)return e;var n=t.every(r=>Q.isNode(r));return ZA.set(t,n),n},last(t,e){for(var n=e.slice(),r=Q.get(t,n);r&&!it.isText(r)&&r.children.length!==0;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(t,e){var n=Q.get(t,e);if(!it.isText(n))throw new Error("Cannot get the leaf node at path [".concat(e,"] because it refers to a non-leaf node: ").concat(n));return n},*levels(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of _.levels(e,n)){var o=Q.get(t,r);yield[o,r]}},matches:(t,e)=>ft.isElement(t)&&ft.isElementProps(e)&&ft.matches(t,e)||it.isText(t)&&it.isTextProps(e)&&it.matches(t,e),*nodes(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{pass:n,reverse:r=!1}=e,{from:o=[],to:i}=e,a=new Set,u=[],s=t;!i||!(r?_.isBefore(u,i):_.isAfter(u,i));)if(a.has(s)||(yield[s,u]),a.has(s)||it.isText(s)||s.children.length===0||n!=null&&n([s,u])!==!1){if(u.length===0)break;if(!r){var l=_.next(u);if(Q.has(t,l)){u=l,s=Q.get(t,u);continue}}r&&u[u.length-1]!==0?(u=_.previous(u),s=Q.get(t,u)):(u=_.parent(u),s=Q.get(t,u),a.add(s))}else{a.add(s);var c=r?s.children.length-1:0;_.isAncestor(u,o)&&(c=o[u.length]),u=u.concat(c),s=Q.get(t,u)}},parent(t,e){var n=_.parent(e),r=Q.get(t,n);if(it.isText(r))throw new Error("Cannot get the parent of path [".concat(e,"] because it does not exist in the root."));return r},string:t=>it.isText(t)?t.text:t.children.map(Q.string).join(""),*texts(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of Q.nodes(t,e))it.isText(n)&&(yield[n,r])}};function JA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Ve(t){for(var e=1;eFi.isOperation(t)&&t.type.endsWith("_node"),isOperation(t){if(!En(t))return!1;switch(t.type){case"insert_node":case"remove_node":return _.isPath(t.path)&&Q.isNode(t.node);case"insert_text":case"remove_text":return typeof t.offset=="number"&&typeof t.text=="string"&&_.isPath(t.path);case"merge_node":return typeof t.position=="number"&&_.isPath(t.path)&&En(t.properties);case"move_node":return _.isPath(t.path)&&_.isPath(t.newPath);case"set_node":return _.isPath(t.path)&&En(t.properties)&&En(t.newProperties);case"set_selection":return t.properties===null&&R.isRange(t.newProperties)||t.newProperties===null&&R.isRange(t.properties)||En(t.properties)&&En(t.newProperties);case"split_node":return _.isPath(t.path)&&typeof t.position=="number"&&En(t.properties);default:return!1}},isOperationList:t=>Array.isArray(t)&&t.every(e=>Fi.isOperation(e)),isSelectionOperation:t=>Fi.isOperation(t)&&t.type.endsWith("_selection"),isTextOperation:t=>Fi.isOperation(t)&&t.type.endsWith("_text"),inverse(t){switch(t.type){case"insert_node":return Ve(Ve({},t),{},{type:"remove_node"});case"insert_text":return Ve(Ve({},t),{},{type:"remove_text"});case"merge_node":return Ve(Ve({},t),{},{type:"split_node",path:_.previous(t.path)});case"move_node":var{newPath:e,path:n}=t;if(_.equals(e,n))return t;if(_.isSibling(n,e))return Ve(Ve({},t),{},{path:e,newPath:n});var r=_.transform(n,t),o=_.transform(_.next(n),t);return Ve(Ve({},t),{},{path:r,newPath:o});case"remove_node":return Ve(Ve({},t),{},{type:"insert_node"});case"remove_text":return Ve(Ve({},t),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=t;return Ve(Ve({},t),{},{properties:a,newProperties:i});case"set_selection":var{properties:u,newProperties:s}=t;return Ve(Ve({},t),{},u==null?{properties:s,newProperties:null}:s==null?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return Ve(Ve({},t),{},{type:"merge_node",path:_.next(t.path)})}}},_={ancestors(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=e,r=_.levels(t,e);return r=n?r.slice(1):r.slice(0,-1)},common(t,e){for(var n=[],r=0;re[r])return 1}return 0},endsAfter(t,e){var n=t.length-1,r=t.slice(0,n),o=e.slice(0,n),i=t[n],a=e[n];return _.equals(r,o)&&i>a},endsAt(t,e){var n=t.length,r=t.slice(0,n),o=e.slice(0,n);return _.equals(r,o)},endsBefore(t,e){var n=t.length-1,r=t.slice(0,n),o=e.slice(0,n),i=t[n],a=e[n];return _.equals(r,o)&&it.length===e.length&&t.every((n,r)=>n===e[r]),hasPrevious:t=>t[t.length-1]>0,isAfter:(t,e)=>_.compare(t,e)===1,isAncestor:(t,e)=>t.length_.compare(t,e)===-1,isChild:(t,e)=>t.length===e.length+1&&_.compare(t,e)===0,isCommon:(t,e)=>t.length<=e.length&&_.compare(t,e)===0,isDescendant:(t,e)=>t.length>e.length&&_.compare(t,e)===0,isParent:(t,e)=>t.length+1===e.length&&_.compare(t,e)===0,isPath:t=>Array.isArray(t)&&(t.length===0||typeof t[0]=="number"),isSibling(t,e){if(t.length!==e.length)return!1;var n=t.slice(0,-1),r=e.slice(0,-1);return t[t.length-1]!==e[e.length-1]&&_.equals(n,r)},levels(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=e,r=[],o=0;o<=t.length;o++)r.push(t.slice(0,o));return n&&r.reverse(),r},next(t){if(t.length===0)throw new Error("Cannot get the next path of a root path [".concat(t,"], because it has no next index."));var e=t[t.length-1];return t.slice(0,-1).concat(e+1)},parent(t){if(t.length===0)throw new Error("Cannot get the parent path of the root path [".concat(t,"]."));return t.slice(0,-1)},previous(t){if(t.length===0)throw new Error("Cannot get the previous path of a root path [".concat(t,"], because it has no previous index."));var e=t[t.length-1];if(e<=0)throw new Error("Cannot get the previous path of a first child path [".concat(t,"] because it would result in a negative index."));return t.slice(0,-1).concat(e-1)},relative(t,e){if(!_.isAncestor(e,t)&&!_.equals(t,e))throw new Error("Cannot get the relative path of [".concat(t,"] inside ancestor [").concat(e,"], because it is not above or equal to the path."));return t.slice(e.length)},transform(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return p0(t,r=>{var{affinity:o="forward"}=n;if(t&&(t==null?void 0:t.length)!==0){if(r===null)return null;switch(e.type){case"insert_node":var{path:i}=e;(_.equals(i,r)||_.endsBefore(i,r)||_.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=e;if(_.equals(a,r)||_.isAncestor(a,r))return null;_.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:u,position:s}=e;_.equals(u,r)||_.endsBefore(u,r)?r[u.length-1]-=1:_.isAncestor(u,r)&&(r[u.length-1]-=1,r[u.length]+=s);break;case"split_node":var{path:l,position:c}=e;if(_.equals(l,r)){if(o==="forward")r[r.length-1]+=1;else if(o!=="backward")return null}else _.endsBefore(l,r)?r[l.length-1]+=1:_.isAncestor(l,r)&&t[l.length]>=c&&(r[l.length-1]+=1,r[l.length]-=c);break;case"move_node":var{path:f,newPath:p}=e;if(_.equals(f,p))return;if(_.isAncestor(f,r)||_.equals(f,r)){var d=p.slice();return _.endsBefore(f,p)&&f.lengthe.offset?1:0:n},isAfter:(t,e)=>Ft.compare(t,e)===1,isBefore:(t,e)=>Ft.compare(t,e)===-1,equals:(t,e)=>t.offset===e.offset&&_.equals(t.path,e.path),isPoint:t=>En(t)&&typeof t.offset=="number"&&_.isPath(t.path),transform(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return p0(t,r=>{if(r===null)return null;var{affinity:o="forward"}=n,{path:i,offset:a}=r;switch(e.type){case"insert_node":case"move_node":r.path=_.transform(i,e,n);break;case"insert_text":_.equals(e.path,i)&&e.offset<=a&&(r.offset+=e.text.length);break;case"merge_node":_.equals(e.path,i)&&(r.offset+=e.position),r.path=_.transform(i,e,n);break;case"remove_text":_.equals(e.path,i)&&e.offset<=a&&(r.offset-=Math.min(a-e.offset,e.text.length));break;case"remove_node":if(_.equals(e.path,i)||_.isAncestor(e.path,i))return null;r.path=_.transform(i,e,n);break;case"split_node":if(_.equals(e.path,i)){if(e.position===a&&o==null)return null;(e.position1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=e,{anchor:r,focus:o}=t;return R.isBackward(t)===n?[r,o]:[o,r]},end(t){var[,e]=R.edges(t);return e},equals:(t,e)=>Ft.equals(t.anchor,e.anchor)&&Ft.equals(t.focus,e.focus),includes(t,e){if(R.isRange(e)){if(R.includes(t,e.anchor)||R.includes(t,e.focus))return!0;var[n,r]=R.edges(t),[o,i]=R.edges(e);return Ft.isBefore(n,o)&&Ft.isAfter(r,i)}var[a,u]=R.edges(t),s=!1,l=!1;return Ft.isPoint(e)?(s=Ft.compare(e,a)>=0,l=Ft.compare(e,u)<=0):(s=_.compare(e,a.path)>=0,l=_.compare(e,u.path)<=0),s&&l},intersection(t,e){var n=qo(t,gG),[r,o]=R.edges(t),[i,a]=R.edges(e),u=Ft.isBefore(r,i)?i:r,s=Ft.isBefore(o,a)?o:a;return Ft.isBefore(s,u)?null:function(l){for(var c=1;c!R.isCollapsed(t),isForward:t=>!R.isBackward(t),isRange:t=>En(t)&&Ft.isPoint(t.anchor)&&Ft.isPoint(t.focus),*points(t){yield[t.anchor,"anchor"],yield[t.focus,"focus"]},start(t){var[e]=R.edges(t);return e},transform(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return p0(t,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=Ft.transform(r.anchor,e,{affinity:o}),l=Ft.transform(r.focus,e,{affinity:i});if(!s||!l)return null;r.anchor=s,r.focus=l})}},vG={transform(t,e){var{current:n,affinity:r}=t;if(n!=null){var o=R.transform(n,e,{affinity:r});t.current=o,o==null&&t.unref()}}},n7=(t,e)=>{for(var n in t){var r=t[n],o=e[n];if(En(r)&&En(o)){if(!n7(r,o))return!1}else if(Array.isArray(r)&&Array.isArray(o)){if(r.length!==o.length)return!1;for(var i=0;i2&&arguments[2]!==void 0?arguments[2]:{},{loose:r=!1}=n;function o(i){return qo(i,yG)}return n7(r?o(t):t,r?o(e):e)},isText:t=>En(t)&&typeof t.text=="string",isTextList:t=>Array.isArray(t)&&t.every(e=>it.isText(e)),isTextProps:t=>t.text!==void 0,matches(t,e){for(var n in e)if(n!=="text"&&(!t.hasOwnProperty(n)||t[n]!==e[n]))return!1;return!0},decorations(t,e){var n=[Ko({},t)];for(var r of e){var o=qo(r,mG),[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.offsetf){var v=i.offset-f;d=Ko(Ko({},p),{},{text:p.text.slice(0,v)}),p=Ko(Ko({},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 o7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function rf(t){for(var e=1;e{switch(i.type){case"insert_node":var{path:a,node:u}=i,s=Q.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]=Ft.transform(c,i);break;case"insert_text":var{path:p,offset:d,text:m}=i;if(m.length===0)break;var g=Q.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]=Ft.transform(h,i);break;case"merge_node":var{path:w}=i,D=Q.get(r,w),S=_.previous(w),x=Q.get(r,S),O=Q.parent(r,w),T=w[w.length-1];if(it.isText(D)&&it.isText(x))x.text+=D.text;else{if(it.isText(D)||it.isText(x))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(w,"] to nodes of different interfaces: ").concat(D," ").concat(x));x.children.push(...D.children)}if(O.children.splice(T,1),o)for(var[I,M]of R.points(o))o[M]=Ft.transform(I,i);break;case"move_node":var{path:z,newPath:Y}=i;if(_.isAncestor(z,Y))throw new Error("Cannot move a path [".concat(z,"] to new path [").concat(Y,"] because the destination is inside itself."));var W=Q.get(r,z),G=Q.parent(r,z),K=z[z.length-1];G.children.splice(K,1);var ot=_.transform(z,i),ct=Q.get(r,_.parent(ot)),lt=ot[ot.length-1];if(ct.children.splice(lt,0,W),o)for(var[ut,B]of R.points(o))o[B]=Ft.transform(ut,i);break;case"remove_node":var{path:C}=i,j=C[C.length-1];if(Q.parent(r,C).children.splice(j,1),o)for(var[H,X]of R.points(o)){var U=Ft.transform(H,i);if(o!=null&&U!=null)o[X]=U;else{var at=void 0,vt=void 0;for(var[mt,St]of Q.texts(r)){if(_.compare(St,C)!==-1){vt=[mt,St];break}at=[mt,St]}var q=!1;at&&vt&&(q=_.equals(vt[1],C)?!_.hasPrevious(vt[1]):_.common(at[1],C).length<_.common(vt[1],C).length),at&&!q?(H.path=at[1],H.offset=at[0].text.length):vt?(H.path=vt[1],H.offset=0):o=null}}break;case"remove_text":var{path:Mt,offset:kt,text:ht}=i;if(ht.length===0)break;var Bt=Q.leaf(r,Mt),je=Bt.text.slice(0,kt),Gt=Bt.text.slice(kt+ht.length);if(Bt.text=je+Gt,o)for(var[ie,Ee]of R.points(o))o[Ee]=Ft.transform(ie,i);break;case"set_node":var{path:On,properties:Ht,newProperties:Yn}=i;if(On.length===0)throw new Error("Cannot set properties on the root node!");var oo=Q.get(r,On);for(var Io in Yn){if(Io==="children"||Io==="text")throw new Error('Cannot set the "'.concat(Io,'" property of nodes!'));var xc=Yn[Io];xc==null?delete oo[Io]:oo[Io]=xc}for(var ms in Ht)Yn.hasOwnProperty(ms)||delete oo[ms];break;case"set_selection":var{newProperties:io}=i;if(io==null)o=io;else{if(o==null){if(!R.isRange(io))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(io)," when there is no current selection."));o=rf({},io)}for(var Lo in io){var di=io[Lo];if(di==null){if(Lo==="anchor"||Lo==="focus")throw new Error('Cannot remove the "'.concat(Lo,'" selection property'));delete o[Lo]}else o[Lo]=di}}break;case"split_node":var{path:kn,position:Bn,properties:Fn}=i;if(kn.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(kn,"] because the root node cannot be split."));var In,hn=Q.get(r,kn),Rr=Q.parent(r,kn),wh=kn[kn.length-1];if(it.isText(hn)){var Ha=hn.text.slice(0,Bn),pi=hn.text.slice(Bn);hn.text=Ha,In=rf(rf({},Fn),{},{text:pi})}else{var Sc=hn.children.slice(0,Bn),bs=hn.children.slice(Bn);hn.children=Sc,In=rf(rf({},Fn),{},{children:bs})}if(Rr.children.splice(wh+1,0,In),o)for(var[Cc,ao]of R.points(o))o[ao]=Ft.transform(Cc,i)}return o})(t,n,e)}finally{t.children=HA(t.children),t.selection=n?ru(n)?HA(n):n:null}}},wG=["text"],EG=["children"];function i7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function a7(t){for(var e=1;e2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(t,()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:u,select:s}=n;if(Q.isNode(e)&&(e=[e]),e.length!==0){var[l]=e;if(a||(a=t.selection?t.selection:t.children.length>0?E.end(t,[]):[0],s=!0),s==null&&(s=!1),R.isRange(a))if(r||(a=E.unhangRange(t,a)),R.isCollapsed(a))a=a.anchor;else{var[,c]=R.edges(a),f=E.pointRef(t,c);N.delete(t,{at:a}),a=f.unref()}if(Ft.isPoint(a)){u==null&&(u=it.isText(l)?S=>it.isText(S):t.isInline(l)?S=>it.isText(S)||E.isInline(t,S):S=>E.isBlock(t,S));var[p]=E.nodes(t,{at:a.path,match:u,mode:i,voids:o});if(!p)return;var[,d]=p,m=E.pathRef(t,d),g=E.isEnd(t,a,d);N.splitNodes(t,{at:a,match:u,mode:i,voids:o});var v=m.unref();a=g?_.next(v):v}var y=_.parent(a),h=a[a.length-1];if(o||!E.void(t,{at:y})){for(var b of e){var w=y.concat(h);h++,t.apply({type:"insert_node",path:w,node:b}),a=_.next(a)}if(a=_.previous(a),s){var D=E.end(t,a);D&&N.select(t,D)}}}})},liftNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{at:n=t.selection,mode:r="lowest",voids:o=!1}=e,{match:i}=e;if(i==null&&(i=_.isPath(n)?Is(t,n):b=>E.isBlock(t,b)),n){var a=E.nodes(t,{at:n,match:i,mode:r,voids:o}),u=Array.from(a,b=>{var[,w]=b;return E.pathRef(t,w)});for(var s of u){var l=s.unref();if(l.length<2)throw new Error("Cannot lift node at a path [".concat(l,"] because it has a depth of less than `2`."));var c=E.node(t,_.parent(l)),[f,p]=c,d=l[l.length-1],{length:m}=f.children;if(m===1){var g=_.next(p);N.moveNodes(t,{at:l,to:g,voids:o}),N.removeNodes(t,{at:p,voids:o})}else if(d===0)N.moveNodes(t,{at:l,to:p,voids:o});else if(d===m-1){var v=_.next(p);N.moveNodes(t,{at:l,to:v,voids:o})}else{var y=_.next(l),h=_.next(p);N.splitNodes(t,{at:y,voids:o}),N.moveNodes(t,{at:l,to:h,voids:o})}}}})},mergeNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{match:n,at:r=t.selection}=e,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=e;if(r){if(n==null)if(_.isPath(r)){var[u]=E.parent(t,r);n=T=>u.children.includes(T)}else n=T=>E.isBlock(t,T);if(!o&&R.isRange(r)&&(r=E.unhangRange(t,r)),R.isRange(r))if(R.isCollapsed(r))r=r.anchor;else{var[,s]=R.edges(r),l=E.pointRef(t,s);N.delete(t,{at:r}),r=l.unref(),e.at==null&&N.select(t,r)}var[c]=E.nodes(t,{at:r,match:n,voids:i,mode:a}),f=E.previous(t,{at:r,match:n,voids:i,mode:a});if(c&&f){var[p,d]=c,[m,g]=f;if(d.length!==0&&g.length!==0){var v,y,h=_.next(g),b=_.common(d,g),w=_.isSibling(d,g),D=Array.from(E.levels(t,{at:d}),T=>{var[I]=T;return I}).slice(b.length).slice(0,-1),S=E.above(t,{at:d,mode:"highest",match:T=>D.includes(T)&&u7(t,T)}),x=S&&E.pathRef(t,S[1]);if(it.isText(p)&&it.isText(m)){var O=qo(p,wG);y=m.text.length,v=O}else{if(!ft.isElement(p)||!ft.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=qo(p,EG),y=m.children.length,v=O}w||N.moveNodes(t,{at:d,to:h,voids:i}),x&&N.removeNodes(t,{at:x.current,voids:i}),ft.isElement(m)&&E.isEmpty(t,m)||it.isText(m)&&m.text===""&&g[g.length-1]!==0?N.removeNodes(t,{at:g,voids:i}):t.apply({type:"merge_node",path:h,position:y,properties:v}),x&&x.unref()}}}})},moveNodes(t,e){E.withoutNormalizing(t,()=>{var{to:n,at:r=t.selection,mode:o="lowest",voids:i=!1}=e,{match:a}=e;if(r){a==null&&(a=_.isPath(r)?Is(t,r):d=>E.isBlock(t,d));var u=E.pathRef(t,n),s=E.nodes(t,{at:r,match:a,mode:o,voids:i}),l=Array.from(s,d=>{var[,m]=d;return E.pathRef(t,m)});for(var c of l){var f=c.unref(),p=u.current;f.length!==0&&t.apply({type:"move_node",path:f,newPath:p}),u.current&&_.isSibling(p,f)&&_.isAfter(p,f)&&(u.current=_.next(u.current))}u.unref()}})},removeNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{hanging:n=!1,voids:r=!1,mode:o="lowest"}=e,{at:i=t.selection,match:a}=e;if(i){a==null&&(a=_.isPath(i)?Is(t,i):p=>E.isBlock(t,p)),!n&&R.isRange(i)&&(i=E.unhangRange(t,i));var u=E.nodes(t,{at:i,match:a,mode:o,voids:r}),s=Array.from(u,p=>{var[,d]=p;return E.pathRef(t,d)});for(var l of s){var c=l.unref();if(c){var[f]=E.node(t,c);t.apply({type:"remove_node",path:c,node:f})}}}})},setNodes(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(t,()=>{var{match:r,at:o=t.selection}=n,{hanging:i=!1,mode:a="lowest",split:u=!1,voids:s=!1}=n;if(o){if(r==null&&(r=_.isPath(o)?Is(t,o):D=>E.isBlock(t,D)),!i&&R.isRange(o)&&(o=E.unhangRange(t,o)),u&&R.isRange(o)){if(R.isCollapsed(o)&&E.leaf(t,o.anchor)[0].text.length>0)return;var l=E.rangeRef(t,o,{affinity:"inward"}),[c,f]=R.edges(o),p=a==="lowest"?"lowest":"highest",d=E.isEnd(t,f,f.path);N.splitNodes(t,{at:f,match:r,mode:p,voids:s,always:!d});var m=E.isStart(t,c,c.path);N.splitNodes(t,{at:c,match:r,mode:p,voids:s,always:!m}),o=l.unref(),n.at==null&&N.select(t,o)}for(var[g,v]of E.nodes(t,{at:o,match:r,mode:a,voids:s})){var y={},h={};if(v.length!==0){var b=!1;for(var w in e)w!=="children"&&w!=="text"&&e[w]!==g[w]&&(b=!0,g.hasOwnProperty(w)&&(y[w]=g[w]),e[w]!=null&&(h[w]=e[w]));b&&t.apply({type:"set_node",path:v,properties:y,newProperties:h})}}}})},splitNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{mode:n="lowest",voids:r=!1}=e,{match:o,at:i=t.selection,height:a=0,always:u=!1}=e;if(o==null&&(o=W=>E.isBlock(t,W)),R.isRange(i)&&(i=xG(t,i)),_.isPath(i)){var s=i,l=E.point(t,s),[c]=E.parent(t,s);o=W=>W===c,a=l.path.length-s.length+1,i=l,u=!0}if(i){var f=E.pointRef(t,i,{affinity:"backward"}),[p]=E.nodes(t,{at:i,match:o,mode:n,voids:r});if(p){var d=E.void(t,{at:i,mode:"highest"});if(!r&&d){var[m,g]=d;if(ft.isElement(m)&&t.isInline(m)){var v=E.after(t,g);if(!v){var y=_.next(g);N.insertNodes(t,{text:""},{at:y,voids:r}),v=E.point(t,y)}i=v,u=!0}a=i.path.length-g.length+1,u=!0}var h=E.pointRef(t,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[x,O]of E.levels(t,{at:D,reverse:!0,voids:r})){var T=!1;if(O.length2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(e)||(e=[e]);var r={};for(var o of e)r[o]=null;N.setNodes(t,r,n)},unwrapNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{mode:n="lowest",split:r=!1,voids:o=!1}=e,{at:i=t.selection,match:a}=e;if(i){a==null&&(a=_.isPath(i)?Is(t,i):p=>E.isBlock(t,p)),_.isPath(i)&&(i=E.range(t,i));var u=R.isRange(i)?E.rangeRef(t,i):null,s=E.nodes(t,{at:i,match:a,mode:n,voids:o}),l=Array.from(s,p=>{var[,d]=p;return E.pathRef(t,d)}).reverse(),c=function(p){var d=p.unref(),[m]=E.node(t,d),g=E.range(t,d);r&&u&&(g=R.intersection(u.current,g)),N.liftNodes(t,{at:g,match:v=>ft.isAncestor(m)&&m.children.includes(v),voids:o})};for(var f of l)c(f);u&&u.unref()}})},wrapNodes(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(t,()=>{var{mode:r="lowest",split:o=!1,voids:i=!1}=n,{match:a,at:u=t.selection}=n;if(u){if(a==null&&(a=_.isPath(u)?Is(t,u):t.isInline(e)?v=>E.isInline(t,v)||it.isText(v):v=>E.isBlock(t,v)),o&&R.isRange(u)){var[s,l]=R.edges(u),c=E.rangeRef(t,u,{affinity:"inward"});N.splitNodes(t,{at:l,match:a,voids:i}),N.splitNodes(t,{at:s,match:a,voids:i}),u=c.unref(),n.at==null&&N.select(t,u)}var f=Array.from(E.nodes(t,{at:u,match:t.isInline(e)?v=>E.isBlock(t,v):v=>E.isEditor(v),mode:"lowest",voids:i}));for(var[,p]of f){var d=R.isRange(u)?R.intersection(u,E.range(t,p)):u;if(d){var m=Array.from(E.nodes(t,{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=_.equals(h,b)?_.parent(h):_.common(h,b),D=E.range(t,h,b),S=E.node(t,w),[x]=S,O=w.length+1,T=_.next(b.slice(0,O)),I=a7(a7({},e),{},{children:[]});N.insertNodes(t,I,{at:T,voids:i}),N.moveNodes(t,{at:D,match:M=>ft.isAncestor(x)&&x.children.includes(M),to:T.concat(0),voids:i})}();if(g==="continue")continue}}}}})}},u7=(t,e)=>{if(ft.isElement(e)){var n=e;return!!E.isVoid(t,e)||n.children.length===1&&u7(t,n.children[0])}return!E.isEditor(e)},xG=(t,e)=>{if(R.isCollapsed(e))return e.anchor;var[,n]=R.edges(e),r=E.pointRef(t,n);return N.delete(t,{at:e}),r.unref()},Is=(t,e)=>{var[n]=E.node(t,e);return r=>r===n};function s7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function l7(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:{},{edge:n="anchor"}=e,{selection:r}=t;if(r){if(n==="anchor")N.select(t,r.anchor);else if(n==="focus")N.select(t,r.focus);else if(n==="start"){var[o]=R.edges(r);N.select(t,o)}else if(n==="end"){var[,i]=R.edges(r);N.select(t,i)}}},deselect(t){var{selection:e}=t;e&&t.apply({type:"set_selection",properties:e,newProperties:null})},move(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:n}=t,{distance:r=1,unit:o="character",reverse:i=!1}=e,{edge:a=null}=e;if(n){a==="start"&&(a=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(t,u,l):E.after(t,u,l);f&&(c.anchor=f)}if(a==null||a==="focus"){var p=i?E.before(t,s,l):E.after(t,s,l);p&&(c.focus=p)}N.setSelection(t,c)}},select(t,e){var{selection:n}=t;if(e=E.range(t,e),n)N.setSelection(t,e);else{if(!R.isRange(e))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(e)));t.apply({type:"set_selection",properties:n,newProperties:e})}},setPoint(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:r}=t,{edge:o="both"}=n;if(r){o==="start"&&(o=R.isBackward(r)?"focus":"anchor"),o==="end"&&(o=R.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,u=o==="anchor"?i:a;N.setSelection(t,{[o==="anchor"?"anchor":"focus"]:l7(l7({},u),e)})}},setSelection(t,e){var{selection:n}=t,r={},o={};if(n){for(var i in e)(i==="anchor"&&e.anchor!=null&&!Ft.equals(e.anchor,n.anchor)||i==="focus"&&e.focus!=null&&!Ft.equals(e.focus,n.focus)||i!=="anchor"&&i!=="focus"&&e[i]!==n[i])&&(r[i]=n[i],o[i]=e[i]);Object.keys(r).length>0&&t.apply({type:"set_selection",properties:r,newProperties:o})}}},CG={delete(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{reverse:n=!1,unit:r="character",distance:o=1,voids:i=!1}=e,{at:a=t.selection,hanging:u=!1}=e;if(a){if(R.isRange(a)&&R.isCollapsed(a)&&(a=a.anchor),Ft.isPoint(a)){var s=E.void(t,{at:a,mode:"highest"});if(!i&&s){var[,l]=s;a=l}else{var c={unit:r,distance:o};a={anchor:a,focus:n?E.before(t,a,c)||E.start(t,[]):E.after(t,a,c)||E.end(t,[])},u=!0}}if(_.isPath(a))N.removeNodes(t,{at:a,voids:i});else if(!R.isCollapsed(a)){if(!u){var[,f]=R.edges(a),p=E.end(t,[]);Ft.equals(f,p)||(a=E.unhangRange(t,a,{voids:i}))}var[d,m]=R.edges(a),g=E.above(t,{match:vt=>E.isBlock(t,vt),at:d,voids:i}),v=E.above(t,{match:vt=>E.isBlock(t,vt),at:m,voids:i}),y=g&&v&&!_.equals(g[1],v[1]),h=_.equals(d.path,m.path),b=i?null:E.void(t,{at:d,mode:"highest"}),w=i?null:E.void(t,{at:m,mode:"highest"});if(b){var D=E.before(t,d);D&&g&&_.isAncestor(g[1],D.path)&&(d=D)}if(w){var S=E.after(t,m);S&&v&&_.isAncestor(v[1],S.path)&&(m=S)}var x,O=[];for(var T of E.nodes(t,{at:a,voids:i})){var[I,M]=T;x&&_.compare(M,x)===0||(!i&&E.isVoid(t,I)||!_.isCommon(M,d.path)&&!_.isCommon(M,m.path))&&(O.push(T),x=M)}var z=Array.from(O,vt=>{var[,mt]=vt;return E.pathRef(t,mt)}),Y=E.pointRef(t,d),W=E.pointRef(t,m);if(!h&&!b){var G=Y.current,[K]=E.leaf(t,G),{path:ot}=G,{offset:ct}=d,lt=K.text.slice(ct);lt.length>0&&t.apply({type:"remove_text",path:ot,offset:ct,text:lt})}for(var ut of z){var B=ut.unref();N.removeNodes(t,{at:B,voids:i})}if(!w){var C=W.current,[j]=E.leaf(t,C),{path:H}=C,X=h?d.offset:0,U=j.text.slice(X,m.offset);U.length>0&&t.apply({type:"remove_text",path:H,offset:X,text:U})}!h&&y&&W.current&&Y.current&&N.mergeNodes(t,{at:W.current,hanging:!0,voids:i});var at=n?Y.unref()||W.unref():W.unref()||Y.unref();e.at==null&&at&&N.select(t,at)}}})},insertFragment(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(t,()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=t.selection}=n;if(e.length&&i){if(R.isRange(i))if(r||(i=E.unhangRange(t,i)),R.isCollapsed(i))i=i.anchor;else{var[,a]=R.edges(i);if(!o&&E.void(t,{at:a}))return;var u=E.pointRef(t,a);N.delete(t,{at:i}),i=u.unref()}else _.isPath(i)&&(i=E.start(t,i));if(o||!E.void(t,{at:i})){var s=E.above(t,{at:i,match:C=>E.isInline(t,C),mode:"highest",voids:o});if(s){var[,l]=s;E.isEnd(t,i,l)?i=E.after(t,l):E.isStart(t,i,l)&&(i=E.before(t,l))}var c=E.above(t,{match:C=>E.isBlock(t,C),at:i,voids:o}),[,f]=c,p=E.isStart(t,i,f),d=E.isEnd(t,i,f),m=p&&d,g=!p||p&&d,v=!d,[,y]=Q.first({children:e},[]),[,h]=Q.last({children:e},[]),b=[],w=C=>{var[j,H]=C;return H.length!==0&&(!!m||!(g&&_.isAncestor(H,y)&&ft.isElement(j)&&!t.isVoid(j)&&!t.isInline(j))&&!(v&&_.isAncestor(H,h)&&ft.isElement(j)&&!t.isVoid(j)&&!t.isInline(j)))};for(var D of Q.nodes({children:e},{pass:w}))w(D)&&b.push(D);var S=[],x=[],O=[],T=!0,I=!1;for(var[M]of b)ft.isElement(M)&&!t.isInline(M)?(T=!1,I=!0,x.push(M)):T?S.push(M):O.push(M);var[z]=E.nodes(t,{at:i,match:C=>it.isText(C)||E.isInline(t,C),mode:"highest",voids:o}),[,Y]=z,W=E.isStart(t,i,Y),G=E.isEnd(t,i,Y),K=E.pathRef(t,d?_.next(f):f),ot=E.pathRef(t,G?_.next(Y):Y),ct=E.pathRef(t,f);N.splitNodes(t,{at:i,match:C=>I?E.isBlock(t,C):it.isText(C)||E.isInline(t,C),mode:I?"lowest":"highest",voids:o});var lt=E.pathRef(t,!W||W&&G?_.next(Y):Y);if(N.insertNodes(t,S,{at:lt.current,match:C=>it.isText(C)||E.isInline(t,C),mode:"highest",voids:o}),m&&x.length&&N.delete(t,{at:ct.unref(),voids:o}),N.insertNodes(t,x,{at:K.current,match:C=>E.isBlock(t,C),mode:"lowest",voids:o}),N.insertNodes(t,O,{at:ot.current,match:C=>it.isText(C)||E.isInline(t,C),mode:"highest",voids:o}),!n.at){var ut;ut=O.length>0?_.previous(ot.current):x.length>0?_.previous(K.current):_.previous(lt.current);var B=E.end(t,ut);N.select(t,B)}lt.unref(),K.unref(),ot.unref()}}})},insertText(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(t,()=>{var{voids:r=!1}=n,{at:o=t.selection}=n;if(o){if(_.isPath(o)&&(o=E.range(t,o)),R.isRange(o))if(R.isCollapsed(o))o=o.anchor;else{var i=R.end(o);if(!r&&E.void(t,{at:i}))return;var a=E.pointRef(t,i);N.delete(t,{at:o,voids:r}),o=a.unref(),N.setSelection(t,{anchor:o,focus:o})}if(r||!E.void(t,{at:o})){var{path:u,offset:s}=o;e.length>0&&t.apply({type:"insert_text",path:u,offset:s,text:e})}}})}};function c7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function v0(t){for(var e=1;e-1&&t%1==0&&t-1&&e%1==0&&e<=9007199254740991}(t.length)&&!E7(t)}function E7(t){var e=D7(t)?of.call(t):"";return e=="[object Function]"||e=="[object GeneratorFunction]"}function D7(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function x7(t){return!!t&&typeof t=="object"}function JG(t){return t?NG(t,function(e){return Yb(e)?KG(e):XG(e)}(t)):[]}var S7=function(t){if(!t)return[];if(Yb(t))return function(n){return typeof n=="string"||!w7(n)&&x7(n)&&of.call(n)=="[object String]"}(t)?RG(t):function(n,r){var o=-1,i=n.length;for(r||(r=Array(i));++o0&&Xb(t[n],e[n])})}var A7={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 uf(){var t=typeof document!="undefined"?document:{};return Xb(t,A7),t}var QG={document:A7,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(t){return typeof setTimeout=="undefined"?(t(),null):setTimeout(t,0)},cancelAnimationFrame:function(t){typeof setTimeout!="undefined"&&clearTimeout(t)}};function lu(){var t=typeof window!="undefined"?window:{};return Xb(t,QG),t}function Zb(t){return Zb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Zb(t)}function b0(t,e){return b0=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},b0(t,e)}function tq(){if(typeof Reflect=="undefined"||!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(t){return!1}}function Jb(t,e,n){return Jb=tq()?Reflect.construct:function(r,o,i){var a=[null];a.push.apply(a,o);var u=new(Function.bind.apply(r,a));return i&&b0(u,i.prototype),u},Jb.apply(null,arguments)}function Qb(t){var e=typeof Map=="function"?new Map:void 0;return Qb=function(n){if(n===null||!function(o){return Function.toString.call(o).indexOf("[native code]")!==-1}(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(n))return e.get(n);e.set(n,r)}function r(){return Jb(n,arguments,Zb(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),b0(r,n)},Qb(t)}var Ti=function(t){var e,n;function r(o){var i,a,u;return i=t.call.apply(t,[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=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,r}(Qb(Array));function w0(t){t===void 0&&(t=[]);var e=[];return t.forEach(function(n){Array.isArray(n)?e.push.apply(e,w0(n)):e.push(n)}),e}function O7(t,e){return Array.prototype.filter.call(t,e)}function k(t,e){var n=lu(),r=uf(),o=[];if(!e&&t instanceof Ti)return t;if(!t)return new Ti(o);if(typeof t=="string"){var i=t.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){var a="div";i.indexOf("0}).length>0}function mr(t,e){if(arguments.length===1&&typeof t=="string")return this[0]?this[0].getAttribute(t):void 0;for(var n=0;n=0&&(n[e=i.name.split("data-")[1],e.toLowerCase().replace(/-(.)/g,function(u,s){return s.toUpperCase()})]=i.value)}for(var a in n)n[a]==="false"?n[a]=!1:n[a]==="true"?n[a]=!0:parseFloat(n[a])===1*n[a]&&(n[a]*=1);return n}}function ho(t){if(t===void 0){var e=this[0];if(!e)return;if(e.multiple&&e.nodeName.toLowerCase()==="select"){for(var n=[],r=0;r=0;else i.value=t}return this}function go(){for(var t=arguments.length,e=new Array(t),n=0;n=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 D0(){var t=lu();return this[0]===t?t.innerWidth:this.length>0?parseFloat(this.css("width")):null}function x0(){var t=lu();return this[0]===t?t.innerHeight:this.length>0?parseFloat(this.css("height")):null}function B7(){if(this.length>0){var t=lu(),e=uf(),n=this[0],r=n.getBoundingClientRect(),o=e.body,i=n.clientTop||o.clientTop||0,a=n.clientLeft||o.clientLeft||0,u=n===t?t.scrollY:n.scrollTop,s=n===t?t.scrollX:n.scrollLeft;return{top:r.top+u-i,left:r.left+s-a}}return null}function $s(){for(var t=0;t=0;n-=1)this[e].insertBefore(o.childNodes[n],this[e].childNodes[0])}else if(t instanceof Ti)for(n=0;n-1&&t%1==0&&t-1&&e%1==0&&e<=9007199254740991}(t.length)&&!function(e){var n=function(r){var o=typeof r;return!!r&&(o=="object"||o=="function")}(e)?N7.call(e):"";return n=="[object Function]"||n==nq}(t)}function dq(t){return e2(t)?uq(t):cq(t)}function pq(t){return t}var n2=function(t,e){return(R7(t)?oq:sq)(t,typeof e=="function"?e:pq)};let M7=(t=21)=>{let e="",n=crypto.getRandomValues(new Uint8Array(t));for(;t--;){let r=63&n[t];e+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return e};var hq=/^\s+|\s+$/g,gq=/^[-+]0x[0-9a-f]+$/i,vq=/^0b[01]+$/i,yq=/^0o[0-7]+$/i,mq=parseInt,bq=typeof te=="object"&&te&&te.Object===Object&&te,wq=typeof self=="object"&&self&&self.Object===Object&&self,Eq=bq||wq||Function("return this")(),Dq=Object.prototype.toString,xq=Math.max,Sq=Math.min,r2=function(){return Eq.Date.now()};function Cq(t,e,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,p=!0;if(typeof t!="function")throw new TypeError("Expected a function");function d(b){var w=r,D=o;return r=o=void 0,l=b,a=t.apply(D,w)}function m(b){return l=b,u=setTimeout(v,e),c?d(b):a}function g(b){var w=b-s;return s===void 0||w>=e||w<0||f&&b-l>=i}function v(){var b=r2();if(g(b))return y(b);u=setTimeout(v,function(w){var D=e-(w-s);return f?Sq(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=r2(),w=g(b);if(r=arguments,o=this,s=b,w){if(u===void 0)return m(s);if(f)return u=setTimeout(v,e),d(s)}return u===void 0&&(u=setTimeout(v,e)),a}return e=z7(e)||0,F0(n)&&(c=!!n.leading,i=(f="maxWait"in n)?xq(z7(n.maxWait)||0,e):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(r2())},h}function F0(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function z7(t){if(typeof t=="number")return t;if(function(r){return typeof r=="symbol"||function(o){return!!o&&typeof o=="object"}(r)&&Dq.call(r)=="[object Symbol]"}(t))return NaN;if(F0(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=F0(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(hq,"");var n=vq.test(t);return n||yq.test(t)?mq(t.slice(2),n?2:8):gq.test(t)?NaN:+t}var cu=function(t,e,n){var r=!0,o=!0;if(typeof t!="function")throw new TypeError("Expected a function");return F0(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Cq(t,e,{leading:r,maxWait:e,trailing:o})};const Aq={createElement:function(t,e){return document.createElement(t,e)},createElementNS:function(t,e,n){return document.createElementNS(t,e,n)},createTextNode:function(t){return document.createTextNode(t)},createComment:function(t){return document.createComment(t)},insertBefore:function(t,e,n){t.insertBefore(e,n)},removeChild:function(t,e){t.removeChild(e)},appendChild:function(t,e){t.appendChild(e)},parentNode:function(t){return t.parentNode},nextSibling:function(t){return t.nextSibling},tagName:function(t){return t.tagName},setTextContent:function(t,e){t.textContent=e},getTextContent:function(t){return t.textContent},isElement:function(t){return t.nodeType===1},isText:function(t){return t.nodeType===3},isComment:function(t){return t.nodeType===8}};function sf(t,e,n,r,o){return{sel:t,data:e,children:n,text:r,elm:o,key:e===void 0?void 0:e.key}}const o2=Array.isArray;function T0(t){return typeof t=="string"||typeof t=="number"||t instanceof String||t instanceof Number}function i2(t){return t===void 0}function rr(t){return t!==void 0}const $7=sf("",{},[],void 0,void 0);function lf(t,e){var n,r;const o=t.key===e.key,i=((n=t.data)===null||n===void 0?void 0:n.is)===((r=e.data)===null||r===void 0?void 0:r.is);return t.sel===e.sel&&o&&i}function Oq(t,e,n){var r;const o={};for(let i=e;i<=n;++i){const a=(r=t[i])===null||r===void 0?void 0:r.key;a!==void 0&&(o[a]=i)}return o}const kq=["create","update","remove","destroy","pre","post"];function Bq(t,e){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=e!==void 0?e:Aq;for(const f of kq)for(const p of t){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 sf(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;rr(b)&&(b(f),v=f.data)}const y=f.children,h=f.sel;if(h==="!")i2(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,x=b!==-1||w!==-1?h.slice(0,Math.min(D,S)):h,O=f.elm=rr(v)&&rr(g=v.ns)?r.createElementNS(g,x,v):r.createElement(x,v);for(D0&&O.setAttribute("class",h.slice(S+1).replace(/\./g," ")),g=0;got?(W=T[ut+1]==null?null:T[ut+1].elm,u(x,W,T,K,ut,I)):l(x,O,G,ot))}(w,D,S,d):rr(S)?(rr(f.text)&&r.setTextContent(w,""),u(w,null,S,0,S.length-1,d)):rr(D)?l(w,D,0,D.length-1):rr(f.text)&&r.setTextContent(w,""):f.text!==p.text&&(rr(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=r?t: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);++u1;b&&(h=h.slice(0,-1));var w=g9(h),D=d2[w];if(h.length>1&&!D&&!p9[h]&&!p2[w])throw new TypeError('Unknown modifier: "'+h+'"');f!==1&&D||(s?l.key=w:l.which=lK(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,e)}),o=function(i){return r.some(function(a){return function(u,s){for(var l in u){var c=u[l],f=void 0;if(c!=null&&((f=l==="key"&&s.key!=null?s.key.toLowerCase():l==="which"?c===91&&s.which===93?91:s.which:s[l])!=null||c!==!1)&&f!==c)return!1}return!0}(a,i)})};return n==null?o:o(n)}function lK(t){return t=g9(t),p2[t]||t.toUpperCase().charCodeAt(0)}function g9(t){return t=t.toLowerCase(),t=p9[t]||t}var cK=h9,h2=function(t,e){return h9(t,{byKey:!0},e)},fK=/^\s+|\s+$/g,dK=/^[-+]0x[0-9a-f]+$/i,pK=/^0b[01]+$/i,hK=/^0o[0-7]+$/i,gK=parseInt,vK=typeof te=="object"&&te&&te.Object===Object&&te,yK=typeof self=="object"&&self&&self.Object===Object&&self,mK=vK||yK||Function("return this")(),bK=Object.prototype.toString,wK=Math.max,EK=Math.min,g2=function(){return mK.Date.now()};function v2(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function v9(t){if(typeof t=="number")return t;if(function(r){return typeof r=="symbol"||function(o){return!!o&&typeof o=="object"}(r)&&bK.call(r)=="[object Symbol]"}(t))return NaN;if(v2(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=v2(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(fK,"");var n=pK.test(t);return n||hK.test(t)?gK(t.slice(2),n?2:8):dK.test(t)?NaN:+t}var Ys,y9=function(t,e,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,p=!0;if(typeof t!="function")throw new TypeError("Expected a function");function d(b){var w=r,D=o;return r=o=void 0,l=b,a=t.apply(D,w)}function m(b){return l=b,u=setTimeout(v,e),c?d(b):a}function g(b){var w=b-s;return s===void 0||w>=e||w<0||f&&b-l>=i}function v(){var b=g2();if(g(b))return y(b);u=setTimeout(v,function(w){var D=e-(w-s);return f?EK(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=g2(),w=g(b);if(r=arguments,o=this,s=b,w){if(u===void 0)return m(s);if(f)return u=setTimeout(v,e),d(s)}return u===void 0&&(u=setTimeout(v,e)),a}return e=v9(e)||0,v2(n)&&(c=!!n.leading,i=(f="maxWait"in n)?wK(v9(n.maxWait)||0,e):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(g2())},h},m9=$o(function(t,e){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Boolean]",a="[object Date]",u="[object Function]",s="[object GeneratorFunction]",l="[object Map]",c="[object Number]",f="[object Object]",p="[object Promise]",d="[object RegExp]",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]",x="[object Int16Array]",O="[object Int32Array]",T="[object Uint8Array]",I="[object Uint8ClampedArray]",M="[object Uint16Array]",z="[object Uint32Array]",Y=/\w*$/,W=/^\[object .+?Constructor\]$/,G=/^(?:0|[1-9]\d*)$/,K={};K[o]=K["[object Array]"]=K[h]=K[b]=K[i]=K[a]=K[w]=K[D]=K[S]=K[x]=K[O]=K[l]=K[c]=K[f]=K[d]=K[m]=K[g]=K[v]=K[T]=K[I]=K[M]=K[z]=!0,K["[object Error]"]=K[u]=K[y]=!1;var ot=typeof te=="object"&&te&&te.Object===Object&&te,ct=typeof self=="object"&&self&&self.Object===Object&&self,lt=ot||ct||Function("return this")(),ut=e&&!e.nodeType&&e,B=ut&&t&&!t.nodeType&&t,C=B&&B.exports===ut;function j(F,$){return F.set($[0],$[1]),F}function H(F,$){return F.add($),F}function X(F,$,et,st){var $t=-1,me=F?F.length:0;for(st&&me&&(et=F[++$t]);++$t-1},Mr.prototype.set=function(F,$){var et=this.__data__,st=gr(et,F);return st<0?et.push([F,$]):et[st][1]=$,this},hi.prototype.clear=function(){this.__data__={hash:new ao,map:new(kn||Mr),string:new ao}},hi.prototype.delete=function(F){return vi(this,F).delete(F)},hi.prototype.get=function(F){return vi(this,F).get(F)},hi.prototype.has=function(F){return vi(this,F).has(F)},hi.prototype.set=function(F,$){return vi(this,F).set(F,$),this},uo.prototype.clear=function(){this.__data__=new Mr},uo.prototype.delete=function(F){return this.__data__.delete(F)},uo.prototype.get=function(F){return this.__data__.get(F)},uo.prototype.has=function(F){return this.__data__.has(F)},uo.prototype.set=function(F,$){var et=this.__data__;if(et instanceof Mr){var st=et.__data__;if(!kn||st.length<199)return st.push([F,$]),this;et=this.__data__=new hi(st)}return et.set(F,$),this};var Dh=ms?vt(ms,Object):function(){return[]},Mo=function(F){return Gt.call(F)};function Ny(F,$){return!!($=$==null?r:$)&&(typeof F=="number"||G.test(F))&&F>-1&&F%1==0&&F<$}function Ua(F){var $=F&&F.constructor;return F===(typeof $=="function"&&$.prototype||Mt)}function zo(F){if(F!=null){try{return Bt.call(F)}catch($){}try{return F+""}catch($){}}return""}function Iy(F,$){return F===$||F!=F&&$!=$}(di&&Mo(new di(new ArrayBuffer(1)))!=b||kn&&Mo(new kn)!=l||Bn&&Mo(Bn.resolve())!=p||Fn&&Mo(new Fn)!=m||In&&Mo(new In)!=y)&&(Mo=function(F){var $=Gt.call(F),et=$==f?F.constructor:void 0,st=et?zo(et):void 0;if(st)switch(st){case Rr:return b;case wh:return l;case Ha:return p;case pi:return m;case Sc:return y}return $});var P=Array.isArray;function L(F){return F!=null&&function($){return typeof $=="number"&&$>-1&&$%1==0&&$<=r}(F.length)&&!gt(F)}var J=io||function(){return!1};function gt(F){var $=ae(F)?Gt.call(F):"";return $==u||$==s}function ae(F){var $=typeof F;return!!F&&($=="object"||$=="function")}function Lt(F){return L(F)?Va(F):function($){if(!Ua($))return Lo($);var et=[];for(var st in Object($))je.call($,st)&&st!="constructor"&&et.push(st);return et}(F)}t.exports=function(F){return Eh(F,!0,!0)}});function b9(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var DK=0;function xK(t){return"__private_"+DK+++"_"+t}function SK(t,e,n){const r=[];return t.forEach(o=>typeof o!="string"?r.push(o):e[Symbol.split](o).forEach((i,a,u)=>{i!==""&&r.push(i),ae===1?0:1},Array.isArray(t)?t.forEach(b9(this,Ys)[Ys],this):b9(this,Ys)[Ys](t)}translate(t,e){return this.translateArray(t,e).join("")}translateArray(t,e){if(!function(r,o){return Object.prototype.hasOwnProperty.call(r,o)}(this.locale.strings,t))throw new Error(`missing string: ${t}`);const n=this.locale.strings[t];if(typeof n=="object"){if(e&&e.smart_count!==void 0)return w9(n[this.locale.pluralize(e.smart_count)],e);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return w9(n,e)}});function CK(t){if(t==null||!t.strings)return;const e=this.locale;this.locale=V(V({},e),{strings:V(V({},e.strings),t.strings)}),this.locale.pluralize=t.pluralize||e.pluralize}var D9=function(){var t={},e=t._fns={};return t.emit=function(n,r,o,i,a,u,s){var l=function(c){for(var f=e[c]?e[c]:[],p=c.indexOf(":"),d=p===-1?[c]:[c.substring(0,p),c.substring(p+1)],m=Object.keys(e),g=0,v=m.length;gcrypto.getRandomValues(new Uint8Array(t)),S9=(t,e,n)=>{let r=(2<{let i="";for(;;){let a=n(o),u=o;for(;u--;)if(i+=t[a[u]&r]||"",i.length===e)return i}}};var kK={nanoid:(t=21)=>{let e="",n=crypto.getRandomValues(new Uint8Array(t));for(;t--;){let r=63&n[t];e+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return e},customAlphabet:(t,e)=>S9(t,e,x9),customRandom:S9,urlAlphabet:OK,random:x9},y2=function(t){if(typeof t!="number"||isNaN(t))throw new TypeError("Expected a number, got "+typeof t);var e=t<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(e&&(t=-t),t<1)return(e?"-":"")+t+" B";var r=Math.min(Math.floor(Math.log(t)/Math.log(1024)),n.length-1);t=Number(t/Math.pow(1024,r));var o=n[r];return t>=10||t%1==0?(e?"-":"")+t.toFixed(0)+" "+o:(e?"-":"")+t.toFixed(1)+" "+o};function C9(t,e){this.text=t=t||"",this.hasWild=~t.indexOf("*"),this.separator=e,this.parts=t.split(e)}C9.prototype.match=function(t){var e,n,r=!0,o=this.parts,i=o.length;if(typeof t=="string"||t instanceof String)if(this.hasWild||this.text==t){for(n=(t||"").split(this.separator),e=0;r&&e=2}return e?n(e.split(";")[0]):n},TK=0;function PK(t){return"__private_"+TK+++"_"+t}var m2=PK("publish");class A9{constructor(){Object.defineProperty(this,m2,{value:jK}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const n=V({},this.state),r=V(V({},this.state),e);this.state=r,function(o,i){if(!Object.prototype.hasOwnProperty.call(o,i))throw new TypeError("attempted to use private field on non-instance");return o}(this,m2)[m2](n,r,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function jK(){for(var t=arguments.length,e=new Array(t),n=0;n{r(...e)})}A9.VERSION="2.0.3";var O9=function(t){const e=t.lastIndexOf(".");return e===-1||e===t.length-1?{name:t,extension:void 0}:{name:t.slice(0,e),extension:t.slice(e+1)}},k9={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 B9(t){let e="";return t.replace(/[^A-Z0-9]/gi,n=>(e+=`-${function(r){return r.charCodeAt(0).toString(32)}(n)}`,"/"))+e}var _K=function(t){if(t==null&&(t=typeof navigator!="undefined"?navigator.userAgent:null),!t)return!0;const e=/Edge\/(\d+\.\d+)/.exec(t);if(!e)return!0;const n=e[1];let[r,o]=n.split(".");return r=parseInt(r,10),o=parseInt(o,10),r<15||r===15&&o<15063||r>18||r===18&&o>=18218};function b2(t){return t<10?`0${t}`:t.toString()}var N0=function(){const t=new Date;return`${b2(t.getHours())}:${b2(t.getMinutes())}:${b2(t.getSeconds())}`},F9={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var t=arguments.length,e=new Array(t),n=0;nr,onBeforeUpload:r=>r,store:new A9,logger:RK,infoTimeout:5e3};if(this.opts=V(V(V({},n),e),{restrictions:V(V({},n.restrictions),e&&e.restrictions)}),e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=MK),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=cu(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:_K(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:V({},this.opts.meta),info:[],recoveredState:null}),dt(this,cf)[cf]=this.store.subscribe((r,o,i)=>{this.emit("state-update",r,o,i),this.updateAll(o)}),this.opts.debug&&typeof window!="undefined"&&(window[this.opts.id]=this),dt(this,D2)[D2]()}emit(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o{n.update(e)})}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,n){if(!this.getState().files[e])throw new Error(`Can\u2019t set state for ${e} (the file could have been removed)`);this.setState({files:V(V({},this.getState().files),{[e]:V(V({},this.getState().files[e]),n)})})}i18nInit(){const e=new E9([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts=V(V(V({},this.opts),e),{restrictions:V(V({},this.opts.restrictions),e&&e.restrictions)}),e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins(n=>{n.setOptions()}),this.setState()}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},n=V({},this.getState().files),r={};Object.keys(n).forEach(o=>{const i=V({},n[o]);i.progress=V(V({},i.progress),e),r[o]=i}),this.setState({files:r,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){dt(this,fu)[fu].add(e)}removePreProcessor(e){return dt(this,fu)[fu].delete(e)}addPostProcessor(e){dt(this,Xo)[Xo].add(e)}removePostProcessor(e){return dt(this,Xo)[Xo].delete(e)}addUploader(e){dt(this,du)[du].add(e)}removeUploader(e){return dt(this,du)[du].delete(e)}setMeta(e){const n=V(V({},this.getState().meta),e),r=V({},this.getState().files);Object.keys(r).forEach(o=>{r[o]=V(V({},r[o]),{meta:V(V({},r[o].meta),e)})}),this.log("Adding metadata:"),this.log(e),this.setState({meta:n,files:r})}setFileMeta(e,n){const r=V({},this.getState().files);if(!r[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const o=V(V({},r[e].meta),n);r[e]=V(V({},r[e]),{meta:o}),this.setState({files:r})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){const{files:e,totalProgress:n,error:r}=this.getState(),o=Object.values(e),i=o.filter(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(e,n){try{return dt(this,ff)[ff](e,n),{result:!0}}catch(r){return{result:!1,reason:r.message}}}checkIfFileAlreadyExists(e){const{files:n}=this.getState();return!(!n[e]||n[e].isGhost)}addFile(e){dt(this,pf)[pf](e);const{files:n}=this.getState();let r=dt(this,hf)[hf](n,e);return n[r.id]&&n[r.id].isGhost&&(r=V(V({},n[r.id]),{data:e.data,isGhost:!1}),this.log(`Replaced the blob in the restored ghost file: ${r.name}, ${r.id}`)),this.setState({files:V(V({},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}`),dt(this,gf)[gf](),r.id}addFiles(e){dt(this,pf)[pf]();const n=V({},this.getState().files),r=[],o=[];for(let i=0;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&&dt(this,gf)[gf](),o.length>0){let i=`Multiple errors occurred while adding files: `;if(o.forEach(a=>{i+=` * ${a.message}`}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:o.length}),details:i},"error",this.opts.infoTimeout),typeof AggregateError=="function")throw new AggregateError(o,i);{const a=new Error(i);throw a.errors=o,a}}}removeFiles(e,n){const{files:r,currentUploads:o}=this.getState(),i=V({},r),a=V({},o),u=Object.create(null);function s(f){return u[f]===void 0}e.forEach(f=>{r[f]&&(u[f]=r[f],delete i[f])}),Object.keys(a).forEach(f=>{const p=o[f].fileIDs.filter(s);p.length!==0?a[f]=V(V({},o[f]),{fileIDs:p}):delete a[f]});const l={currentUploads:a,files:i};Object.keys(i).length===0&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),this.setState(l),this.calculateTotalProgress();const c=Object.keys(u);c.forEach(f=>{this.emit("file-removed",u[f],n)}),c.length>5?this.log(`Removed ${c.length} files`):this.log(`Removed files: ${c.join(", ")}`)}removeFile(e,n){n===void 0&&(n=null),this.removeFiles([e],n)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const n=!this.getFile(e).isPaused;return this.setFileState(e,{isPaused:n}),this.emit("upload-pause",e,n),n}pauseAll(){const e=V({},this.getState().files);Object.keys(e).filter(n=>!e[n].progress.uploadComplete&&e[n].progress.uploadStarted).forEach(n=>{const r=V(V({},e[n]),{isPaused:!0});e[n]=r}),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e=V({},this.getState().files);Object.keys(e).filter(n=>!e[n].progress.uploadComplete&&e[n].progress.uploadStarted).forEach(n=>{const r=V(V({},e[n]),{isPaused:!1,error:null});e[n]=r}),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e=V({},this.getState().files),n=Object.keys(e).filter(o=>e[o].error);if(n.forEach(o=>{const i=V(V({},e[o]),{isPaused:!1,error:null});e[o]=i}),this.setState({files:e,error:null}),this.emit("retry-all",n),n.length===0)return Promise.resolve({successful:[],failed:[]});const r=dt(this,Zo)[Zo](n,{forceAllowNewUpload:!0});return dt(this,Jo)[Jo](r)}cancelAll(){this.emit("cancel-all");const{files:e}=this.getState(),n=Object.keys(e);n.length&&this.removeFiles(n,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);const n=dt(this,Zo)[Zo]([e],{forceAllowNewUpload:!0});return dt(this,Jo)[Jo](n)}reset(){this.cancelAll()}logout(){this.iteratePlugins(e=>{e.provider&&e.provider.logout&&e.provider.logout()})}calculateProgress(e,n){if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const r=Number.isFinite(n.bytesTotal)&&n.bytesTotal>0;this.setFileState(e.id,{progress:V(V({},this.getFile(e.id).progress),{bytesUploaded:n.bytesUploaded,bytesTotal:n.bytesTotal,percentage:r?Math.round(n.bytesUploaded/n.bytesTotal*100):0})}),this.calculateTotalProgress()}calculateTotalProgress(){const e=this.getFiles().filter(s=>s.progress.uploadStarted||s.progress.preprocess||s.progress.postprocess);if(e.length===0)return this.emit("progress",0),void this.setState({totalProgress:0});const n=e.filter(s=>s.progress.bytesTotal!=null),r=e.filter(s=>s.progress.bytesTotal==null);if(n.length===0){const s=100*e.length,l=r.reduce((f,p)=>f+p.progress.percentage,0),c=Math.round(l/s*100);return void this.setState({totalProgress:c})}let o=n.reduce((s,l)=>s+l.progress.bytesTotal,0);const i=o/n.length;o+=i*r.length;let a=0;n.forEach(s=>{a+=s.progress.bytesUploaded}),r.forEach(s=>{a+=i*(s.progress.percentage||0)/100});let u=o===0?0:Math.round(a/o*100);u>100&&(u=100),this.setState({totalProgress:u}),this.emit("progress",u)}updateOnlineStatus(){window.navigator.onLine===void 0||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,n){if(typeof e!="function")throw new TypeError(`Expected a plugin class, but got ${e===null?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`);const r=new e(this,n),o=r.id;if(!o)throw new Error("Your plugin must have an id");if(!r.type)throw new Error("Your plugin must have a type");const i=this.getPlugin(o);if(i){const a=`Already found a plugin named '${i.id}'. Tried to use: '${o}'. Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(a)}return e.VERSION&&this.log(`Using ${o} v${e.VERSION}`),r.type in dt(this,gn)[gn]?dt(this,gn)[gn][r.type].push(r):dt(this,gn)[gn][r.type]=[r],r.install(),this}getPlugin(e){for(const n of Object.values(dt(this,gn)[gn])){const r=n.find(o=>o.id===e);if(r!=null)return r}}[P9](e){return dt(this,gn)[gn][e]}iteratePlugins(e){Object.values(dt(this,gn)[gn]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const n=dt(this,gn)[gn][e.type],r=n.findIndex(i=>i.id===e.id);r!==-1&&n.splice(r,1);const o={plugins:V(V({},this.getState().plugins),{[e.id]:void 0})};this.setState(o)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),dt(this,cf)[cf](),this.iteratePlugins(e=>{this.removePlugin(e)}),typeof window!="undefined"&&window.removeEventListener&&(window.removeEventListener("online",dt(this,Wr)[Wr]),window.removeEventListener("offline",dt(this,Wr)[Wr]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,n,r){n===void 0&&(n="info"),r===void 0&&(r=3e3);const o=typeof e=="object";this.setState({info:[...this.getState().info,{type:n,message:o?e.message:e,details:o?e.details:null}]}),setTimeout(()=>this.hideInfo(),r),this.emit("info-visible")}log(e,n){const{logger:r}=this.opts;switch(n){case"error":r.error(e);break;case"warning":r.warn(e);break;default:r.debug(e)}}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?dt(this,Jo)[Jo](e):(dt(this,pu)[pu](e),Promise.reject(new Error("Nonexistent upload")))}[j9](){return dt(this,Zo)[Zo](...arguments)}addResultData(e,n){if(!dt(this,x2)[x2](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:r}=this.getState(),o=V(V({},r[e]),{result:V(V({},r[e].result),n)});this.setState({currentUploads:V(V({},r),{[e]:o})})}upload(){var e;(e=dt(this,gn)[gn].uploader)!=null&&e.length||this.log("No uploader type plugins are used","warning");let{files:n}=this.getState();const r=this.opts.onBeforeUpload(n);return r===!1?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(r&&typeof r=="object"&&(n=r,this.setState({files:n})),Promise.resolve().then(()=>{dt(this,w2)[w2](n),dt(this,E2)[E2](n)}).catch(o=>{dt(this,Qe)[Qe](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=dt(this,Zo)[Zo](a);return dt(this,Jo)[Jo](u)}).catch(o=>{dt(this,Qe)[Qe](o,{showInformer:!1})}))}}function $K(t,e){e===void 0&&(e=this.getFiles());const{maxFileSize:n,minFileSize:r,maxTotalFileSize:o,maxNumberOfFiles:i,allowedFileTypes:a}=this.opts.restrictions;if(i&&e.length+1>i)throw new vo(`${this.i18n("youCanOnlyUploadX",{smart_count:i})}`);if(a&&!a.some(u=>u.indexOf("/")>-1?!!t.type&&FK(t.type.replace(/;.*?$/,""),u):!(u[0]!=="."||!t.extension)&&t.extension.toLowerCase()===u.substr(1).toLowerCase())){const u=a.join(", ");throw new vo(this.i18n("youCanOnlyUploadFileTypes",{types:u}))}if(o&&t.size!=null){let u=0;if(u+=t.size,e.forEach(s=>{u+=s.size}),u>o)throw new vo(this.i18n("exceedsSize",{size:y2(o),file:t.name}))}if(n&&t.size!=null&&t.size>n)throw new vo(this.i18n("exceedsSize",{size:y2(n),file:t.name}));if(r&&t.size!=null&&t.size{const r=this.getFile(n);return dt(this,df)[df](r)});if(e.length)throw new zK(e,`${this.i18n("missingRequiredMetaField")}`)}function WK(t,e){let{showInformer:n=!0,file:r=null,throwErr:o=!0}=e===void 0?{}:e;const i=typeof t=="object"?t.message:t,a=typeof t=="object"&&t.details?t.details:"";let u=i;if(a&&(u+=` ${a}`),t.isRestriction?(this.log(u),this.emit("restriction-failed",r,t)):this.log(u,"error"),n&&this.info({message:i,details:a},"error",this.opts.infoTimeout),o)throw typeof t=="object"?t:new Error(t)}function GK(t){const{allowNewUpload:e}=this.getState();e===!1&&dt(this,Qe)[Qe](new vo(this.i18n("noMoreFilesAllowed")),{file:t})}function qK(t,e){const n=function(f){var p;if(f.type)return f.type;const d=f.name?(p=O9(f.name).extension)==null?void 0:p.toLowerCase():null;return d&&d in k9?k9[d]:"application/octet-stream"}(e),r=function(f,p){return p.name?p.name:f.split("/")[0]==="image"?`${f.split("/")[0]}.${f.split("/")[1]}`:"noname"}(n,e),o=O9(r).extension,i=Boolean(e.isRemote),a=function(f){let p="uppy";return typeof f.name=="string"&&(p+=`-${B9(f.name.toLowerCase())}`),f.type!==void 0&&(p+=`-${f.type}`),f.meta&&typeof f.meta.relativePath=="string"&&(p+=`-${B9(f.meta.relativePath.toLowerCase())}`),f.data.size!==void 0&&(p+=`-${f.data.size}`),f.data.lastModified!==void 0&&(p+=`-${f.data.lastModified}`),p}(V(V({},e),{type:n}));if(this.checkIfFileAlreadyExists(a)){const f=new vo(this.i18n("noDuplicates",{fileName:r}));dt(this,Qe)[Qe](f,{file:e})}const u=e.meta||{};u.name=r,u.type=n;const s=Number.isFinite(e.data.size)?e.data.size:null;let l={source:e.source||"",id:a,name:r,extension:o||"",meta:V(V({},this.getState().meta),u),type:n,data:e.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:s,uploadComplete:!1,uploadStarted:null},size:s,isRemote:i,remote:e.remote||"",preview:e.preview};const c=this.opts.onBeforeFileAdded(l,t);c===!1?dt(this,Qe)[Qe](new vo("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:e}):typeof c=="object"&&c!==null&&(l=c);try{const f=Object.keys(t).map(p=>t[p]);dt(this,ff)[ff](l,f)}catch(f){dt(this,Qe)[Qe](f,{file:l})}return l}function KK(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(()=>{this.scheduledAutoProceed=null,this.upload().catch(t=>{t.isRestriction||this.log(t.stack||t.message||t)})},4))}function YK(){const t=(e,n,r)=>{let o=e.message||"Unknown error";e.details&&(o+=` ${e.details}`),this.setState({error:o}),n!=null&&n.id in this.getState().files&&this.setFileState(n.id,{error:o,response:r})};this.on("error",t),this.on("upload-error",(e,n,r)=>{if(t(n,e,r),typeof n=="object"&&n.message){const o=new Error(n.message);o.details=n.message,n.details&&(o.details+=` ${n.details}`),o.message=this.i18n("failedToUpload",{file:e.name}),dt(this,Qe)[Qe](o,{throwErr:!1})}else dt(this,Qe)[Qe](n,{throwErr:!1})}),this.on("upload",()=>{this.setState({error:null})}),this.on("upload-started",e=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(e,n)=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const r=this.getFile(e.id).progress;this.setFileState(e.id,{progress:V(V({},r),{postprocess:dt(this,Xo)[Xo].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:r.bytesTotal}),response:n,uploadURL:n.uploadURL,isPaused:!1}),e.size==null&&this.setFileState(e.id,{size:n.bytesUploaded||r.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(e,n)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:V(V({},this.getFile(e.id).progress),{preprocess:n})}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)}),this.on("preprocess-complete",e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n=V({},this.getState().files);n[e.id]=V(V({},n[e.id]),{progress:V({},n[e.id].progress)}),delete n[e.id].progress.preprocess,this.setState({files:n})}),this.on("postprocess-progress",(e,n)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:V(V({},this.getState().files[e.id].progress),{postprocess:n})}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)}),this.on("postprocess-complete",e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n=V({},this.getState().files);n[e.id]=V(V({},n[e.id]),{progress:V({},n[e.id].progress)}),delete n[e.id].progress.postprocess,this.setState({files:n})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",e=>{e&&dt(this,df)[df](e)}),typeof window!="undefined"&&window.addEventListener&&(window.addEventListener("online",dt(this,Wr)[Wr]),window.addEventListener("offline",dt(this,Wr)[Wr]),setTimeout(dt(this,Wr)[Wr],3e3))}function XK(t,e){e===void 0&&(e={});const{forceAllowNewUpload:n=!1}=e,{allowNewUpload:r,currentUploads:o}=this.getState();if(!r&&!n)throw new Error("Cannot create a new upload: already uploading.");const i=LK();return this.emit("upload",{id:i,fileIDs:t}),this.setState({allowNewUpload:this.opts.allowMultipleUploadBatches!==!1&&this.opts.allowMultipleUploads!==!1,currentUploads:V(V({},o),{[i]:{fileIDs:t,step:0,result:{}}})}),i}function ZK(t){const{currentUploads:e}=this.getState();return e[t]}function JK(t){const e=V({},this.getState().currentUploads);delete e[t],this.setState({currentUploads:e})}function QK(t){return gS(this,null,function*(){let{currentUploads:e}=this.getState(),n=e[t];const r=n.step||0,o=[...dt(this,fu)[fu],...dt(this,du)[du],...dt(this,Xo)[Xo]];try{for(let a=r;a{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);yield this.addResultData(t,{successful:u,failed:s,uploadID:t}),e=this.getState().currentUploads,n=e[t]}let i;return n&&(i=n.result,this.emit("complete",i),dt(this,pu)[pu](t)),i==null&&this.log(`Not setting result for an upload that has been removed: ${t}`),i})}_9.VERSION="2.1.3";var N9=_9,tY=$o(function(t,e){var n,r,o,i,a,u,s,l,c={},f=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function d(B,C){for(var j in C)B[j]=C[j];return B}function m(B){var C=B.parentNode;C&&C.removeChild(B)}function g(B,C,j){var H,X,U,at={};for(U in C)U=="key"?H=C[U]:U=="ref"?X=C[U]:at[U]=C[U];if(arguments.length>2&&(at.children=arguments.length>3?n.call(arguments,2):j),typeof B=="function"&&B.defaultProps!=null)for(U in B.defaultProps)at[U]===void 0&&(at[U]=B.defaultProps[U]);return v(B,at,H,X,null)}function v(B,C,j,H,X){var U={type:B,props:C,key:j,ref:H,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:X==null?++o:X};return X==null&&r.vnode!=null&&r.vnode(U),U}function y(B){return B.children}function h(B,C){this.props=B,this.context=C}function b(B,C){if(C==null)return B.__?b(B.__,B.__.__k.indexOf(B)+1):null;for(var j;C0?v(ht.type,ht.props,ht.key,null,ht.__v):ht)!=null){if(ht.__=j,ht.__b=j.__b+1,(kt=ie[q])===null||kt&&ht.key==kt.key&&ht.type===kt.type)ie[q]=void 0;else for(Mt=0;Mt2&&(at.children=arguments.length>3?n.call(arguments,2):j),v(B.type,at,H||B.key,X||B.ref,null)},e.createContext=function(B,C){var j={__c:C="__cC"+l++,__:B,Consumer:function(H,X){return H.children(X)},Provider:function(H){var X,U;return this.getChildContext||(X=[],(U={})[C]=this,this.getChildContext=function(){return U},this.shouldComponentUpdate=function(at){this.props.value!==at.value&&X.some(D)},this.sub=function(at){X.push(at);var vt=at.componentWillUnmount;at.componentWillUnmount=function(){X.splice(X.indexOf(at),1),vt&&vt.call(at)}}),H.children}};return j.Provider.__=j.Consumer.contextType=j},e.createElement=g,e.createRef=function(){return{current:null}},e.h=g,e.hydrate=function B(C,j){ut(C,j,B)},e.isValidElement=i,e.options=r,e.render=ut,e.toChildArray=function B(C,j){return j=j||[],C==null||typeof C=="boolean"||(Array.isArray(C)?C.some(function(H){B(H,j)}):j.push(C)),j}}),eY=function(t,e){return e===void 0&&(e=document),typeof t=="string"?e.querySelector(t):((n=t)==null?void 0:n.nodeType)===Node.ELEMENT_NODE?t:null;var n},S2=class{constructor(t,e){e===void 0&&(e={}),this.uppy=t,this.opts=e}getPluginState(){const{plugins:t}=this.uppy.getState();return t[this.id]||{}}setPluginState(t){const{plugins:e}=this.uppy.getState();this.uppy.setState({plugins:V(V({},e),{[this.id]:V(V({},e[this.id]),t)})})}setOptions(t){this.opts=V(V({},this.opts),t),this.setPluginState(),this.i18nInit()}i18nInit(){const t=new E9([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=t.translate.bind(t),this.i18nArray=t.translateArray.bind(t),this.setPluginState()}addTarget(){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw new Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}};function I9(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var nY=0;function rY(t){return"__private_"+nY+++"_"+t}const{render:L9}=tY;var vf=rY("updateUI");class C2 extends S2{constructor(){super(...arguments),Object.defineProperty(this,vf,{writable:!0,value:void 0})}mount(e,n){const r=n.id,o=eY(e);if(o){this.isTargetDOMEl=!0;const u=document.createDocumentFragment();return I9(this,vf)[vf]=function(s){let l=null,c=null;return function(){for(var f=arguments.length,p=new Array(f),d=0;d(l=null,s(...c)))),l}}(s=>{this.uppy.getPlugin(this.id)&&(L9(this.render(s),u),this.afterUpdate())}),this.uppy.log(`Installing ${r} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(o.innerHTML=""),L9(this.render(this.uppy.getState()),u),this.el=u.firstElementChild,o.appendChild(u),this.onMount(),this.el}let i;if(typeof e=="object"&&e instanceof C2)i=e;else if(typeof e=="function"){const u=e;this.uppy.iteratePlugins(s=>{if(s instanceof u)return i=s,!1})}if(i)return this.uppy.log(`Installing ${r} to ${i.id}`),this.parent=i,this.el=i.addTarget(n),this.onMount(),this.el;this.uppy.log(`Not installing ${r}`);let a=`Invalid target option given to ${r}.`;throw a+=typeof e=="function"?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the "},jO=function(t){t.write(PO("")),t.close();var e=t.parentWindow.Object;return t=null,e},tg=function(){try{Q0=new ActiveXObject("htmlfile")}catch(r){}var t,e;tg=typeof document!="undefined"?document.domain&&Q0?jO(Q0):((e=Af("iframe")).style.display="none",ow.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(PO("document.F=Object")),t.close(),t.F):jO(Q0);for(var n=J0.length;n--;)delete tg.prototype[J0[n]];return tg()};G0[TO]=!0;var eg=Object.create||function(t,e){var n;return t!==null?(iw.prototype=Le(t),n=new iw,iw.prototype=null,n[TO]=t):n=tg(),e===void 0?n:WX(n,e)},aw=De("unscopables"),uw=Array.prototype;uw[aw]==null&&Gr.f(uw,aw,{configurable:!0,value:eg(null)});var Nf=function(t){uw[aw][t]=!0},GX=CO.includes;xe({target:"Array",proto:!0},{includes:function(t){return GX(this,t,arguments.length>1?arguments[1]:void 0)}}),Nf("includes");var qX=De("match"),sw=function(t){var e;return de(t)&&((e=t[qX])!==void 0?!!e:Kr(t)=="RegExp")},KX=Z.TypeError,lw=function(t){if(sw(t))throw KX("The method doesn't accept regular expressions");return t},YX=De("match"),cw=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[YX]=!1,"/./"[t](e)}catch(r){}}return!1},XX=pt("".indexOf);xe({target:"String",proto:!0,forced:!cw("includes")},{includes:function(t){return!!~XX(ce(Dr(this)),ce(lw(t)),arguments.length>1?arguments[1]:void 0)}});var ZX=/"/g,JX=pt("".replace);xe({target:"String",proto:!0,forced:Jt(function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3})},{anchor:function(t){return e=t,n=ce(Dr(this)),r=""+n+"";var e,n,r}});var fw=function(t,e,n){var r,o;Le(t);try{if(!(r=wu(t,"return"))){if(e==="throw")throw n;return n}r=Ut(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return Le(r),n},QX=function(t,e,n,r){try{return r?e(Le(n)[0],n[1]):e(n)}catch(o){fw(t,"throw",o)}},il={},tZ=De("iterator"),eZ=Array.prototype,_O=function(t){return t!==void 0&&(il.Array===t||eZ[tZ]===t)},If=function(t,e,n){var r=W2(e);r in t?Gr.f(t,r,H0(0,n)):t[r]=n},nZ=De("iterator"),dw=function(t){if(t!=null)return wu(t,nZ)||wu(t,"@@iterator")||il[q0(t)]},rZ=Z.TypeError,NO=function(t,e){var n=arguments.length<2?dw(t):e;if($i(n))return Le(Ut(n,t));throw rZ($0(t)+" is not iterable")},IO=Z.Array,LO=De("iterator"),RO=!1;try{var oZ=0,MO={next:function(){return{done:!!oZ++}},return:function(){RO=!0}};MO[LO]=function(){return this},Array.from(MO,function(){throw 2})}catch(t){}var pw=function(t,e){if(!e&&!RO)return!1;var n=!1;try{var r={};r[LO]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(o){}return n},iZ=!pw(function(t){Array.from(t)});xe({target:"Array",stat:!0,forced:iZ},{from:function(t){var e=zi(t),n=Z0(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=o!==void 0;i&&(o=Du(o,r>2?arguments[2]:void 0));var a,u,s,l,c,f,p=dw(e),d=0;if(!p||this==IO&&_O(p))for(a=xu(e),u=n?new this(a):IO(a);a>d;d++)f=i?o(e[d],d):e[d],If(u,d,f);else for(c=(l=NO(e,p)).next,u=n?new this:[];!(s=Ut(c,l)).done;d++)f=i?QX(l,o,[s.value,d],!0):s.value,If(u,d,f);return u.length=d,u}});var Su,zO,$O,aZ=pt("".charAt),HO=pt("".charCodeAt),uZ=pt("".slice),VO=function(t){return function(e,n){var r,o,i=ce(Dr(e)),a=Bf(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=HO(i,a))<55296||r>56319||a+1===u||(o=HO(i,a+1))<56320||o>57343?t?aZ(i,a):r:t?uZ(i,a,a+2):o-56320+(r-55296<<10)+65536}},UO={codeAt:VO(!1),charAt:VO(!0)},sZ=!Jt(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),WO=G2("IE_PROTO"),hw=Z.Object,lZ=hw.prototype,ng=sZ?hw.getPrototypeOf:function(t){var e=zi(t);if(Ie(e,WO))return e[WO];var n=e.constructor;return re(n)&&e instanceof n?n.prototype:e instanceof hw?lZ:null},gw=De("iterator"),GO=!1;[].keys&&("next"in($O=[].keys())?(zO=ng(ng($O)))!==Object.prototype&&(Su=zO):GO=!0);var cZ=Su==null||Jt(function(){var t={};return Su[gw].call(t)!==t});cZ&&(Su={}),re(Su[gw])||Vn(Su,gw,function(){return this});var vw={IteratorPrototype:Su,BUGGY_SAFARI_ITERATORS:GO},fZ=Gr.f,qO=De("toStringTag"),rg=function(t,e,n){t&&!Ie(t=n?t:t.prototype,qO)&&fZ(t,qO,{configurable:!0,value:e})},dZ=vw.IteratorPrototype,pZ=function(){return this},hZ=Z.String,gZ=Z.TypeError,al=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=pt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(r){}return function(r,o){return Le(r),function(i){if(typeof i=="object"||re(i))return i;throw gZ("Can't set "+hZ(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),vZ=Qs.PROPER,yZ=Qs.CONFIGURABLE,KO=vw.IteratorPrototype,og=vw.BUGGY_SAFARI_ITERATORS,Lf=De("iterator"),mZ=function(){return this},yw=function(t,e,n,r,o,i,a){(function(y,h,b,w){var D=h+" Iterator";y.prototype=eg(dZ,{next:H0(1,b)}),rg(y,D,!1),il[D]=pZ})(n,e,r);var u,s,l,c=function(y){if(y===o&&g)return g;if(!og&&y in d)return d[y];switch(y){case"keys":case"values":case"entries":return function(){return new n(this,y)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,m=d[Lf]||d["@@iterator"]||o&&d[o],g=!og&&m||c(o),v=e=="Array"&&d.entries||m;if(v&&(u=ng(v.call(new t)))!==Object.prototype&&u.next&&(ng(u)!==KO&&(al?al(u,KO):re(u[Lf])||Vn(u,Lf,mZ)),rg(u,f,!0)),vZ&&o=="values"&&m&&m.name!=="values"&&(yZ?qr(d,"name","values"):(p=!0,g=function(){return Ut(m,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(og||p||!(l in d))&&Vn(d,l,s[l]);else xe({target:e,proto:!0,forced:og||p},s);return d[Lf]!==g&&Vn(d,Lf,g,{name:o}),il[e]=g,s},bZ=UO.charAt,wZ=xn.set,EZ=xn.getterFor("String Iterator");yw(String,"String",function(t){wZ(this,{type:"String Iterator",string:ce(t),index:0})},function(){var t,e=EZ(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=bZ(n,r),e.index+=t.length,{value:t,done:!1})});var mw,DZ=Tf.f,YO=pt("".endsWith),xZ=pt("".slice),SZ=Math.min,XO=cw("endsWith"),CZ=!(XO||(mw=DZ(String.prototype,"endsWith"),!mw||mw.writable));xe({target:"String",proto:!0,forced:!CZ&&!XO},{endsWith:function(t){var e=ce(Dr(this));lw(t);var n=arguments.length>1?arguments[1]:void 0,r=e.length,o=n===void 0?r:SZ(tl(n),r),i=ce(t);return YO?YO(e,i,o):xZ(e,o-i.length,o)===i}});var AZ=pt([].join),OZ=Y0!=Object,kZ=mO("join",",");xe({target:"Array",proto:!0,forced:OZ||!kZ},{join:function(t){return AZ(Vi(this),t===void 0?",":t)}});var BZ=De("species"),ig=function(t){return Sf>=51||!Jt(function(){var e=[];return(e.constructor={})[BZ]=function(){return{foo:1}},e[t](Boolean).foo!==1})},FZ=el.map,TZ=ig("map");xe({target:"Array",proto:!0,forced:!TZ},{map:function(t){return FZ(this,t,arguments.length>1?arguments[1]:void 0)}});var bw=Z.RegExp,ww=Jt(function(){var t=bw("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),PZ=ww||Jt(function(){return!bw("a","y").sticky}),ag={BROKEN_CARET:ww||Jt(function(){var t=bw("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:PZ,UNSUPPORTED_Y:ww},jZ=Z.RegExp,Ew=Jt(function(){var t=jZ(".","s");return!(t.dotAll&&t.exec(` `)&&t.flags==="s")}),_Z=Z.RegExp,Dw=Jt(function(){var t=_Z("(?b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$c")!=="bc"}),NZ=xn.get,IZ=I2("native-string-replace",String.prototype.replace),ug=RegExp.prototype.exec,xw=ug,LZ=pt("".charAt),RZ=pt("".indexOf),MZ=pt("".replace),Sw=pt("".slice),Cw=function(){var t=/a/,e=/b*/g;return Ut(ug,t,"a"),Ut(ug,e,"a"),t.lastIndex!==0||e.lastIndex!==0}(),ZO=ag.BROKEN_CARET,Aw=/()??/.exec("")[1]!==void 0;(Cw||Aw||ZO||Ew||Dw)&&(xw=function(t){var e,n,r,o,i,a,u,s=this,l=NZ(s),c=ce(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Ut(xw,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=ZO&&s.sticky,m=Ut(nw,s),g=s.source,v=0,y=c;if(d&&(m=MZ(m,"y",""),RZ(m,"g")===-1&&(m+="g"),y=Sw(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&LZ(c,s.lastIndex-1)!==` `)&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",m)),Aw&&(n=new RegExp("^"+g+"$(?!\\s)",m)),Cw&&(r=s.lastIndex),o=Ut(ug,d?n:s,y),d?o?(o.input=Sw(o.input,v),o[0]=Sw(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Cw&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Aw&&o&&o.length>1&&Ut(IZ,o[0],n,function(){for(i=1;i]*>)/g,GZ=/\$([$&'`]|\d{1,2})/g,qZ=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=GZ;return o!==void 0&&(o=zi(o),s=WZ),UZ(i,s,function(l,c){var f;switch(Pw(c,0)){case"$":return"$";case"&":return t;case"`":return jw(e,0,n);case"'":return jw(e,a);case"<":f=o[jw(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=VZ(p/10);return d===0?l:d<=u?r[d-1]===void 0?Pw(c,1):r[d-1]+Pw(c,1):l}f=r[p-1]}return f===void 0?"":f})},KZ=Z.TypeError,Mf=function(t,e){var n=t.exec;if(re(n)){var r=Ut(n,t,e);return r!==null&&Le(r),r}if(Kr(t)==="RegExp")return Ut(Rf,t,e);throw KZ("RegExp#exec called on incompatible receiver")},_w=De("replace"),YZ=Math.max,XZ=Math.min,ZZ=pt([].concat),Nw=pt([].push),tk=pt("".indexOf),ek=pt("".slice),JZ="a".replace(/./,"$0")==="$0",nk=!!/./[_w]&&/./[_w]("a","$0")==="";Fw("replace",function(t,e,n){var r=nk?"$":"$0";return[function(o,i){var a=Dr(this),u=o==null?void 0:wu(o,_w);return u?Ut(u,o,a,i):Ut(e,ce(a),o,i)},function(o,i){var a=Le(this),u=ce(o);if(typeof i=="string"&&tk(i,r)===-1&&tk(i,"$<")===-1){var s=n(e,a,u,i);if(s.done)return s.value}var l=re(i);l||(i=ce(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var p=[];;){var d=Mf(a,u);if(d===null||(Nw(p,d),!c))break;ce(d[0])===""&&(a.lastIndex=Tw(u,tl(a.lastIndex),f))}for(var m,g="",v=0,y=0;y=v&&(g+=ek(u,v,b)+O,v=b+h.length)}return g+ek(u,v)}]},!!Jt(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$")!=="7"})||!JZ||nk);/*! ***************************************************************************** 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 Iw=function(t,e){return Iw=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])},Iw(t,e)};function ul(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}Iw(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var xr=function(){return xr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Wt(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Lw(t,e){for(var n=0,r=e.length,o=t.length;n=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");il.Arguments=il.Array,Nf("keys"),Nf("values"),Nf("entries");var sl=function(t,e,n){for(var r in e)Vn(t,r,e[r],n);return t},nJ=Z.Array,rJ=Math.max,Rw=function(t,e,n){for(var r=xu(t),o=nl(e,r),i=nl(n===void 0?r:n,r),a=nJ(rJ(i-o,0)),u=0;oi;i++)if((u=v(t[i]))&&bu(uk,u))return u;return new cg(!1)}r=NO(t,o)}for(s=r.next;!(l=Ut(s,r)).done;){try{u=v(l.value)}catch(y){fw(r,"throw",y)}if(typeof u=="object"&&u&&bu(uk,u))return u}return new cg(!1)},uJ=Z.TypeError,fg=function(t,e){if(bu(e,t))return t;throw uJ("Incorrect invocation")},sk=function(t,e,n){var r,o;return al&&re(r=e.constructor)&&r!==n&&de(o=r.prototype)&&o!==n.prototype&&al(t,o),t},lk=function(t,e,n){var r=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=r?"set":"add",a=Z[t],u=a&&a.prototype,s=a,l={},c=function(v){var y=pt(u[v]);Vn(u,v,v=="add"?function(h){return y(this,h===0?0:h),this}:v=="delete"?function(h){return!(o&&!de(h))&&y(this,h===0?0:h)}:v=="get"?function(h){return o&&!de(h)?void 0:y(this,h===0?0:h)}:v=="has"?function(h){return!(o&&!de(h))&&y(this,h===0?0:h)}:function(h,b){return y(this,h===0?0:h,b),this})};if(_f(t,!re(a)||!(o||u.forEach&&!Jt(function(){new a().entries().next()}))))s=n.getConstructor(e,t,r,i),lg.enable();else if(_f(t,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=Jt(function(){f.has(1)}),m=pw(function(v){new a(v)}),g=!o&&Jt(function(){for(var v=new a,y=5;y--;)v[i](y,y);return!v.has(-0)});m||((s=e(function(v,y){fg(v,u);var h=sk(new a,v,s);return y!=null&&$f(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[t]=s,xe({global:!0,forced:s!=a},l),rg(s,t),o||n.setStrong(s,t,r),s},dg=lg.getWeakData,sJ=xn.set,lJ=xn.getterFor,cJ=el.find,fJ=el.findIndex,dJ=pt([].splice),pJ=0,pg=function(t){return t.frozen||(t.frozen=new ck)},ck=function(){this.entries=[]},Mw=function(t,e){return cJ(t.entries,function(n){return n[0]===e})};ck.prototype={get:function(t){var e=Mw(this,t);if(e)return e[1]},has:function(t){return!!Mw(this,t)},set:function(t,e){var n=Mw(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=fJ(this.entries,function(n){return n[0]===t});return~e&&dJ(this.entries,e,1),!!~e}};var Hf,fk={getConstructor:function(t,e,n,r){var o=t(function(s,l){fg(s,i),sJ(s,{type:e,id:pJ++,frozen:void 0}),l!=null&&$f(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=lJ(e),u=function(s,l,c){var f=a(s),p=dg(Le(l),!0);return p===!0?pg(f).set(l,c):p[f.id]=c,s};return sl(i,{delete:function(s){var l=a(this);if(!de(s))return!1;var c=dg(s);return c===!0?pg(l).delete(s):c&&Ie(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!de(s))return!1;var c=dg(s);return c===!0?pg(l).has(s):c&&Ie(c,l.id)}}),sl(i,n?{get:function(s){var l=a(this);if(de(s)){var c=dg(s);return c===!0?pg(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}},hg=xn.enforce,hJ=!Z.ActiveXObject&&"ActiveXObject"in Z,dk=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},gJ=lk("WeakMap",dk,fk);if(aO&&hJ){Hf=fk.getConstructor(dk,"WeakMap",!0),lg.enable();var Vf=gJ.prototype,pk=pt(Vf.delete),gg=pt(Vf.has),hk=pt(Vf.get),gk=pt(Vf.set);sl(Vf,{delete:function(t){if(de(t)&&!Cu(t)){var e=hg(this);return e.frozen||(e.frozen=new Hf),pk(this,t)||e.frozen.delete(t)}return pk(this,t)},has:function(t){if(de(t)&&!Cu(t)){var e=hg(this);return e.frozen||(e.frozen=new Hf),gg(this,t)||e.frozen.has(t)}return gg(this,t)},get:function(t){if(de(t)&&!Cu(t)){var e=hg(this);return e.frozen||(e.frozen=new Hf),gg(this,t)?hk(this,t):e.frozen.get(t)}return hk(this,t)},set:function(t,e){if(de(t)&&!Cu(t)){var n=hg(this);n.frozen||(n.frozen=new Hf),gg(this,t)?gk(this,t,e):n.frozen.set(t,e)}else gk(this,t,e);return this}})}var zw=De("iterator"),vk=De("toStringTag"),$w=zf.values,yk=function(t,e){if(t){if(t[zw]!==$w)try{qr(t,zw,$w)}catch(r){t[zw]=$w}if(t[vk]||qr(t,vk,e),K0[e]){for(var n in zf)if(t[n]!==zf[n])try{qr(t,n,zf[n])}catch(r){t[n]=zf[n]}}}};for(var Hw in K0)yk(Z[Hw]&&Z[Hw].prototype,Hw);yk(fO,"DOMTokenList");var Vw=new WeakMap,Uw=new WeakMap,Ww=new WeakMap,vg=new WeakMap,Gw=new WeakMap,yg=new WeakMap,qw=new WeakMap,Kw=new WeakMap,mg=new WeakMap,mk=new WeakMap,bk=new WeakMap,wk=new WeakMap,Ek=new WeakMap,Uf=new WeakMap,ll=new WeakMap,Yw=new WeakMap,bg=new WeakMap,Xw=new WeakMap,wg=new WeakMap,Eg=new WeakMap,Dk=new WeakMap,Au=new WeakMap,Zw=new WeakMap,xk=new WeakMap,Jw=new WeakMap,vJ=el.find,Sk=!0;"find"in[]&&Array(1).find(function(){Sk=!1}),xe({target:"Array",proto:!0,forced:Sk},{find:function(t){return vJ(this,t,arguments.length>1?arguments[1]:void 0)}}),Nf("find"),xe({global:!0},{globalThis:Z});const yJ=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];C0&&(k.fn.css=C0),br&&(k.fn.append=br),Ls&&(k.fn.addClass=Ls),Rs&&(k.fn.removeClass=Rs),Ms&&(k.fn.hasClass=Ms),go&&(k.fn.on=go),ji&&(k.fn.focus=ji),mr&&(k.fn.attr=mr),E0&&(k.fn.removeAttr=E0),$s&&(k.fn.hide=$s),S0&&(k.fn.show=S0),B7&&(k.fn.offset=B7),D0&&(k.fn.width=D0),x0&&(k.fn.height=x0),Hs&&(k.fn.parent=Hs),k0&&(k.fn.parents=k0),T7&&(k.fn.is=T7),zs&&(k.fn.dataset=zs),ho&&(k.fn.val=ho),O0&&(k.fn.text=O0),Pi&&(k.fn.html=Pi),Us&&(k.fn.children=Us),Ws&&(k.fn.remove=Ws),Vs&&(k.fn.find=Vs),A0&&(k.fn.each=A0),Gs&&(k.fn.empty=Gs);var wo,Sn,Qw=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||null},Yr=function(t){return Ou(t)&&t.nodeType===1},Ou=function(t){var e=Qw(t);return!!e&&t instanceof e.Node},Ck=function(t){var e=t&&t.anchorNode&&Qw(t.anchorNode);return!!e&&t instanceof e.Selection},Ak=function(t){return Ou(t)&&t.nodeType===3},t4=function(t){var e,n,r;return(e=window.document.getElementById(t))!==null&&e!==void 0?e:((r=(n=window.document.activeElement)===null||n===void 0?void 0:n.shadowRoot)===null||r===void 0?void 0:r.getElementById(t))||null},Ok=function(t,e,n){for(var r,o=t.childNodes,i=o[e],a=e,u=!1,s=!1;(Ou(r=i)&&r.nodeType===8||Yr(i)&&i.childNodes.length===0||Yr(i)&&i.getAttribute("contenteditable")==="false")&&(!u||!s);)a>=o.length?(u=!0,a=e-1,n="backward"):a<0?(s=!0,a=e+1,n="forward"):(i=o[a],e=a,a+=n==="forward"?1:-1);return[i,e]},mJ=function(t,e,n){return Wt(Ok(t,e,n),1)[0]},bJ=function t(e){var n,r,o="";if(Ak(e)&&e.nodeValue)return e.nodeValue;if(Yr(e)){try{for(var i=Sr(Array.from(e.childNodes)),a=i.next();!a.done;a=i.next())o+=t(a.value)}catch(s){n={error:s}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}var u=getComputedStyle(e).getPropertyValue("display");u!=="block"&&u!=="list"&&u!=="table-row"&&e.tagName!=="BR"||(o+=` `)}return o};function kk(t,e){if(!(t instanceof HTMLElement&&t.dataset.slateVoid==="true"))for(var n=t.childNodes,r=n.length;r--;){var o=n[r],i=o.nodeType;i==3?e(o,t):i!=1&&i!=9&&i!=11||kk(o,e)}}function Bk(t){if(t.length===0)return"";var e=t[0];return e.nodeType!==wo.ELEMENT_NODE?"":e.tagName.toLowerCase()}(Sn=wo||(wo={}))[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",globalThis.navigator!==void 0&&globalThis.window!==void 0&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&globalThis.window.MSStream;var e4=typeof navigator!="undefined"&&/Mac OS X/.test(navigator.userAgent),Wf=typeof navigator!="undefined"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);typeof navigator!="undefined"&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent);var Gf=typeof navigator!="undefined"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),wJ=typeof navigator!="undefined"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),EJ=typeof navigator!="undefined"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),n4=typeof navigator!="undefined"&&/Chrome/i.test(navigator.userAgent);typeof navigator!="undefined"&&/.*QQBrowser/.test(navigator.userAgent);var qf=!EJ&&!wJ&&typeof globalThis!="undefined"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",A={getWindow:function(t){var e=Dk.get(t);if(!e)throw new Error("Unable to find a host window element for this editor");return e},findKey:function(t,e){var n=Eg.get(e);return n||(n=new rk,Eg.set(e,n)),n},setNewKey:function(t){var e=new rk;Eg.set(t,e)},findPath:function(t,e){for(var n=[],r=e;;){var o=ll.get(r);if(o==null){if(E.isEditor(r))return n;break}var i=Uf.get(r);if(i==null)break;n.unshift(i),r=o}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(e))},findDocumentOrShadowRoot:function(t){if(t.isDestroyed)return window.document;var e=A.toDOMNode(t,t),n=e.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&n.getSelection!=null?n:e.ownerDocument},getParentNode:function(t,e){return ll.get(e)||null},getParentsNodes:function(t,e){for(var n=[],r=e;r!==t&&r!=null;){var o=A.getParentNode(t,r);if(o==null)break;n.push(o),r=o}return n},getTopNode:function(t,e){var n=[A.findPath(t,e)[0]];return Q.get(t,n)},toDOMNode:function(t,e){var n;if(E.isEditor(e))n=Yw.get(t);else{var r=A.findKey(t,e);n=Xw.get(r)}if(!n)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(e));return n},hasDOMNode:function(t,e,n){n===void 0&&(n={});var r,o=n.editable,i=o!==void 0&&o,a=A.toDOMNode(t,t);try{r=Yr(e)?e:e.parentElement}catch(u){if(!u.message.includes('Permission denied to access property "nodeType"'))throw u}return!!r&&r.closest("[data-slate-editor]")===a&&(!i||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))},toDOMRange:function(t,e){var n=e.anchor,r=e.focus,o=R.isBackward(e),i=A.toDOMPoint(t,n),a=R.isCollapsed(e)?i:A.toDOMPoint(t,r),u=A.getWindow(t).document.createRange(),s=Wt(o?a:i,2),l=s[0],c=s[1],f=Wt(o?i:a,2),p=f[0],d=f[1],m=!!(Yr(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),g=!!(Yr(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(t,e){var n,r,o,i=Wt(E.node(t,e.path),1)[0],a=A.toDOMNode(t,i);E.void(t,{at:e})&&(e={path:e.path,offset:0});var u=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),s=0;try{for(var l=Sr(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(e.offset<=g){o=[p,Math.min(d,Math.max(0,e.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(e));return o},toSlateNode:function(t,e){var n=Yr(e)?e:e.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?bg.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: "+n);return r},findEventRange:function(t,e){"nativeEvent"in e&&(e=e.nativeEvent);var n=e.clientX,r=e.clientY,o=e.target;if(n==null||r==null)throw new Error("Cannot resolve a Slate range from a DOM event: "+e);var i,a=A.toSlateNode(t,e.target),u=A.findPath(t,a);if(E.isVoid(t,a)){var s=o.getBoundingClientRect(),l=t.isInline(a)?n-s.left0},isSelectedEmptyParagraph:function(t){var e=t.selection;if(e==null||R.isExpanded(e))return!1;var n=A.getSelectedNodeByType(t,"paragraph");if(n===null)return!1;var r=n.children;return r.length===1&&(r[0].text===""||void 0)},isEmptyPath:function(t,e){var n=E.node(t,e);if(n==null)return!1;var r=Wt(n,1)[0].children;return r.length===1&&r[0].text===""}},DJ=1,Fk={},Kf={},xJ=el.filter,SJ=ig("filter");xe({target:"Array",proto:!0,forced:!SJ},{filter:function(t){return xJ(this,t,arguments.length>1?arguments[1]:void 0)}});var r4=` \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,Tk=pt("".replace),Dg="["+r4+"]",CJ=RegExp("^"+Dg+Dg+"*"),AJ=RegExp(Dg+Dg+"*$"),o4=function(t){return function(e){var n=ce(Dr(e));return 1&t&&(n=Tk(n,CJ,"")),2&t&&(n=Tk(n,AJ,"")),n}},OJ={start:o4(1),end:o4(2),trim:o4(3)},kJ=Qs.PROPER,BJ=OJ.trim;xe({target:"String",proto:!0,forced:function(t){return Jt(function(){return!!r4[t]()||"\u200B\x85\u180E"[t]()!=="\u200B\x85\u180E"||kJ&&r4[t].name!==t})}("trim")},{trim:function(){return BJ(this)}});var i4=[],Pk={};function FJ(t,e,n){var r=n.isInline(t)?"span":"div";return"<"+r+">"+e+""}var Yf,cl,jk,a4,xg=Z.Promise,_k=De("species"),u4=function(t){var e=yu(t),n=Gr.f;ln&&e&&!e[_k]&&n(e,_k,{configurable:!0,get:function(){return this}})},TJ=Z.TypeError,PJ=De("species"),Nk=function(t,e){var n,r=Le(t).constructor;return r===void 0||(n=Le(r)[PJ])==null?e:function(o){if(Z0(o))return o;throw TJ($0(o)+" is not a constructor")}(n)},Ik=pt([].slice),Lk=/(?:ipad|iphone|ipod).*applewebkit/i.test(Zs),Ui=Kr(Z.process)=="process",s4=Z.setImmediate,l4=Z.clearImmediate,jJ=Z.process,c4=Z.Dispatch,_J=Z.Function,Rk=Z.MessageChannel,NJ=Z.String,f4=0,Xf={};try{Yf=Z.location}catch(t){}var d4=function(t){if(Ie(Xf,t)){var e=Xf[t];delete Xf[t],e()}},p4=function(t){return function(){d4(t)}},Mk=function(t){d4(t.data)},zk=function(t){Z.postMessage(NJ(t),Yf.protocol+"//"+Yf.host)};s4&&l4||(s4=function(t){var e=Ik(arguments,1);return Xf[++f4]=function(){kw(re(t)?t:_J(t),void 0,e)},cl(f4),f4},l4=function(t){delete Xf[t]},Ui?cl=function(t){jJ.nextTick(p4(t))}:c4&&c4.now?cl=function(t){c4.now(p4(t))}:Rk&&!Lk?(a4=(jk=new Rk).port2,jk.port1.onmessage=Mk,cl=Du(a4.postMessage,a4)):Z.addEventListener&&re(Z.postMessage)&&!Z.importScripts&&Yf&&Yf.protocol!=="file:"&&!Jt(zk)?(cl=zk,Z.addEventListener("message",Mk,!1)):cl="onreadystatechange"in Af("script")?function(t){ow.appendChild(Af("script")).onreadystatechange=function(){ow.removeChild(this),d4(t)}}:function(t){setTimeout(p4(t),0)});var Zf,ku,Jf,fl,h4,g4,v4,$k,Hk={set:s4,clear:l4},IJ=/ipad|iphone|ipod/i.test(Zs)&&Z.Pebble!==void 0,LJ=/web0s(?!.*chrome)/i.test(Zs),RJ=Tf.f,y4=Hk.set,Vk=Z.MutationObserver||Z.WebKitMutationObserver,Uk=Z.document,Wk=Z.process,Sg=Z.Promise,Gk=RJ(Z,"queueMicrotask"),qk=Gk&&Gk.value;qk||(Zf=function(){var t,e;for(Ui&&(t=Wk.domain)&&t.exit();ku;){e=ku.fn,ku=ku.next;try{e()}catch(n){throw ku?fl():Jf=void 0,n}}Jf=void 0,t&&t.enter()},Lk||Ui||LJ||!Vk||!Uk?!IJ&&Sg&&Sg.resolve?((v4=Sg.resolve(void 0)).constructor=Sg,$k=Du(v4.then,v4),fl=function(){$k(Zf)}):Ui?fl=function(){Wk.nextTick(Zf)}:(y4=Du(y4,Z),fl=function(){y4(Zf)}):(h4=!0,g4=Uk.createTextNode(""),new Vk(Zf).observe(g4,{characterData:!0}),fl=function(){g4.data=h4=!h4}));var m4,Kk,Yk,Xk,Zk=qk||function(t){var e={fn:t,next:void 0};Jf&&(Jf.next=e),ku||(ku=e,fl()),Jf=e},MJ=function(t){var e,n;this.promise=new t(function(r,o){if(e!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");e=r,n=o}),this.resolve=$i(e),this.reject=$i(n)},b4={f:function(t){return new MJ(t)}},w4=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},zJ=typeof window=="object",Jk=Hk.set,$J=De("species"),Eo="Promise",Qk=xn.getterFor(Eo),HJ=xn.set,VJ=xn.getterFor(Eo),Bu=xg&&xg.prototype,Do=xg,Qf=Bu,tB=Z.TypeError,E4=Z.document,D4=Z.process,dl=b4.f,UJ=dl,WJ=!!(E4&&E4.createEvent&&Z.dispatchEvent),eB=re(Z.PromiseRejectionEvent),nB=!1,td=_f(Eo,function(){var t=W0(Do),e=t!==String(Do);if(!e&&Sf===66)return!0;if(Sf>=51&&/native code/.test(t))return!1;var n=new Do(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[$J]=r,!(nB=n.then(function(){})instanceof r)||!e&&zJ&&!eB}),GJ=td||!pw(function(t){Do.all(t).catch(function(){})}),rB=function(t){var e;return!(!de(t)||!re(e=t.then))&&e},x4=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;Zk(function(){for(var r=t.value,o=t.state==1,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,p=l.reject,d=l.domain;try{c?(o||(t.rejection===2&&KJ(t),t.rejection=1),c===!0?a=r:(d&&d.enter(),a=c(r),d&&(d.exit(),s=!0)),a===l.promise?p(tB("Promise-chain cycle")):(u=rB(a))?Ut(u,a,f,p):f(a)):p(r)}catch(m){d&&!s&&d.exit(),p(m)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&qJ(t)})}},oB=function(t,e,n){var r,o;WJ?((r=E4.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),Z.dispatchEvent(r)):r={promise:e,reason:n},!eB&&(o=Z["on"+t])?o(r):t==="unhandledrejection"&&function(i,a){var u=Z.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))}("Unhandled promise rejection",n)},qJ=function(t){Ut(Jk,Z,function(){var e,n=t.facade,r=t.value;if(iB(t)&&(e=w4(function(){Ui?D4.emit("unhandledRejection",r,n):oB("unhandledrejection",n,r)}),t.rejection=Ui||iB(t)?2:1,e.error))throw e.value})},iB=function(t){return t.rejection!==1&&!t.parent},KJ=function(t){Ut(Jk,Z,function(){var e=t.facade;Ui?D4.emit("rejectionHandled",e):oB("rejectionhandled",e,t.value)})},pl=function(t,e,n){return function(r){t(e,r,n)}},hl=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,x4(t,!0))},S4=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw tB("Promise can't be resolved itself");var r=rB(e);r?Zk(function(){var o={done:!1};try{Ut(r,e,pl(S4,o,t),pl(hl,o,t))}catch(i){hl(o,i,t)}}):(t.value=e,t.state=1,x4(t,!1))}catch(o){hl({done:!1},o,t)}}};if(td&&(Qf=(Do=function(t){fg(this,Qf),$i(t),Ut(m4,this);var e=Qk(this);try{t(pl(S4,e),pl(hl,e))}catch(n){hl(e,n)}}).prototype,(m4=function(t){HJ(this,{type:Eo,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=sl(Qf,{then:function(t,e){var n=VJ(this),r=n.reactions,o=dl(Nk(this,Do));return o.ok=!re(t)||t,o.fail=re(e)&&e,o.domain=Ui?D4.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&x4(n,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),Kk=function(){var t=new m4,e=Qk(t);this.promise=t,this.resolve=pl(S4,e),this.reject=pl(hl,e)},b4.f=dl=function(t){return t===Do||t===Yk?new Kk(t):UJ(t)},re(xg)&&Bu!==Object.prototype)){Xk=Bu.then,nB||(Vn(Bu,"then",function(t,e){var n=this;return new Do(function(r,o){Ut(Xk,n,r,o)}).then(t,e)},{unsafe:!0}),Vn(Bu,"catch",Qf.catch,{unsafe:!0}));try{delete Bu.constructor}catch(t){}al&&al(Bu,Qf)}xe({global:!0,wrap:!0,forced:td},{Promise:Do}),rg(Do,Eo,!1),u4(Eo),Yk=yu(Eo),xe({target:Eo,stat:!0,forced:td},{reject:function(t){var e=dl(this);return Ut(e.reject,void 0,t),e.promise}}),xe({target:Eo,stat:!0,forced:td},{resolve:function(t){return function(e,n){if(Le(e),de(n)&&n.constructor===e)return n;var r=b4.f(e);return(0,r.resolve)(n),r.promise}(this,t)}}),xe({target:Eo,stat:!0,forced:GJ},{all:function(t){var e=this,n=dl(e),r=n.resolve,o=n.reject,i=w4(function(){var a=$i(e.resolve),u=[],s=0,l=1;$f(t,function(c){var f=s++,p=!1;l++,Ut(a,e,c).then(function(d){p||(p=!0,u[f]=d,--l||r(u))},o)}),--l||r(u)});return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=dl(e),r=n.reject,o=w4(function(){var i=$i(e.resolve);$f(t,function(a){Ut(i,e,a).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var gl=ag.UNSUPPORTED_Y,YJ=Math.min,aB=[].push,XJ=pt(/./.exec),vl=pt(aB),ed=pt("".slice);function Cr(t){Promise.resolve().then(t)}function uB(t,e){return ft.isElement(t)?function(n,r){var o=n.type,i=o===void 0?"":o,a=n.children,u=a===void 0?[]:a,s=E.isVoid(r,n),l="";s||(l=u.map(function(y){return uB(y,r)}).join(""));var c=function(y){return Pk[y]||FJ}(i),f=c(n,l,r),p="";if(p=typeof f=="string"?f:f.html||"",s||i4.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}(t,e):function(n,r){var o=n.text;if(o==null)throw new Error("Current node is not slate Text "+JSON.stringify(n));var i=o;i=function(s){return s.replace(/ {2}/g,"  ").replace(//g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™")}(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,"
")),a&&(i=i.replace(/ /g," ")),i===""){var u=A.getParentNode(null,n);if(!u||u.children.length!==0)return i;i="
"}return i4.forEach(function(s){return i=s(n,i)}),i}(t,e)}function sB(t){return"w-e-element-"+t}Fw("split",function(t,e,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a=ce(Dr(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[a];if(!sw(o))return Ut(e,a,o,u);for(var s,l,c,f=[],p=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),d=0,m=new RegExp(o.source,p+"g");(s=Ut(Rf,m,a))&&!((l=m.lastIndex)>d&&(vl(f,ed(a,d,s.index)),s.length>1&&s.index=u));)m.lastIndex===s.index&&m.lastIndex++;return d===a.length?!c&&XJ(m,"")||vl(f,""):vl(f,ed(a,d)),f.length>u?Rw(f,0,u):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Ut(e,this,o,i)}:e,[function(o,i){var a=Dr(this),u=o==null?void 0:wu(o,t);return u?Ut(u,o,a,i):Ut(r,ce(a),o,i)},function(o,i){var a=Le(this),u=ce(o),s=n(r,a,u,i,r!==e);if(s.done)return s.value;var l=Nk(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(gl?"g":"y"),p=new l(gl?"^(?:"+a.source+")":a,f),d=i===void 0?4294967295:i>>>0;if(d===0)return[];if(u.length===0)return Mf(p,u)===null?[u]:[];for(var m=0,g=0,v=[];g=n},cB=function(t,e,n){var r=A.toDOMRange(t,e).getBoundingClientRect(),o=A.toDOMRange(t,n).getBoundingClientRect();return lB(r,o)&&lB(o,r)},fB=["span","b","strong","i","em","s","strike","u","font","sub","sup"],dB=[],C4=[],Cg={},ZJ=Gr.f,JJ=Pf.f,QJ=xn.enforce,tQ=De("match"),ti=Z.RegExp,yl=ti.prototype,eQ=Z.SyntaxError,nQ=pt(nw),rQ=pt(yl.exec),Ag=pt("".charAt),pB=pt("".replace),hB=pt("".indexOf),oQ=pt("".slice),iQ=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Fu=/a/g,A4=/a/g,aQ=new ti(Fu)!==Fu,gB=ag.MISSED_STICKY,uQ=ag.UNSUPPORTED_Y,sQ=ln&&(!aQ||gB||Ew||Dw||Jt(function(){return A4[tQ]=!1,ti(Fu)!=Fu||ti(A4)==A4||ti(Fu,"i")!="/a/i"}));if(_f("RegExp",sQ)){for(var Wi=function(t,e){var n,r,o,i,a,u,s=bu(yl,this),l=sw(t),c=e===void 0,f=[],p=t;if(!s&&l&&c&&t.constructor===Wi)return t;if((l||bu(yl,t))&&(t=t.source,c&&(e="flags"in p?p.flags:nQ(p))),t=t===void 0?"":ce(t),e=e===void 0?"":ce(e),p=t,Ew&&"dotAll"in Fu&&(r=!!e&&hB(e,"s")>-1)&&(e=pB(e,/s/g,"")),n=e,gB&&"sticky"in Fu&&(o=!!e&&hB(e,"y")>-1)&&uQ&&(e=pB(e,/y/g,"")),Dw&&(i=function(d){for(var m,g=d.length,v=0,y="",h=[],b={},w=!1,D=!1,S=0,x="";v<=g;v++){if((m=Ag(d,v))==="\\")m+=Ag(d,++v);else if(m==="]")w=!1;else if(!w)switch(!0){case m==="[":w=!0;break;case m==="(":rQ(iQ,oQ(d,v+1))&&(v+=2,D=!0),y+=m,S++;continue;case(m===">"&&D):if(x===""||Ie(b,x))throw new eQ("Invalid capture group name");b[x]=!0,h[h.length]=[x,S],D=!1,x="";continue}D?x+=m:y+=m}return[y,h]}(t),t=i[0],f=i[1]),a=sk(ti(t,e),s?this:yl,Wi),(r||o||f.length)&&(u=QJ(a),r&&(u.dotAll=!0,u.raw=Wi(function(d){for(var m,g=d.length,v=0,y="",h=!1;v<=g;v++)(m=Ag(d,v))!=="\\"?h||m!=="."?(m==="["?h=!0:m==="]"&&(h=!1),y+=m):y+="[\\s\\S]":y+=m+Ag(d,++v);return y}(t),n)),o&&(u.sticky=!0),f.length&&(u.groups=f)),t!==p)try{qr(a,"source",p===""?"(?:)":p)}catch(d){}return a},lQ=function(t){t in Wi||ZJ(Wi,t,{configurable:!0,get:function(){return ti[t]},set:function(e){ti[t]=e}})},vB=JJ(ti),yB=0;vB.length>yB;)lQ(vB[yB++]);yl.constructor=Wi,Wi.prototype=yl,Vn(Z,"RegExp",Wi)}u4("RegExp");var cQ=new RegExp(String.fromCharCode(160),"g");function mB(t){return t.replace(cQ," ")}function bB(t,e){var n=t.length;if(n){var r=t[n-1];if(it.isText(r)){var o=Object.keys(r);if(o.length===1&&o[0]==="text")return r.text=r.text+e,!0}}return!1}function fQ(t,e,n){return{type:"paragraph",children:[{text:k(t).text().replace(/\s+/gm," ")}]}}function O4(t,e){var n=function(i,a){var u=[];if(i.attr("data-w-e-is-void")!=null)return u;var s=i[0].childNodes;return s.length===1&&s[0].nodeName==="BR"?(u.push({text:""}),u):(s.forEach(function(l){if(l.nodeType!==wo.ELEMENT_NODE){if(l.nodeType===wo.TEXT_NODE){var c=l.textContent||"";if(c.trim()===""&&c.indexOf(` `)>=0)return;c&&(c=mB(c),bB(u,c)||u.push({text:c}))}}else{if(l.nodeName==="BR")return void(bB(u,` `)||u.push({text:` `}));var f=B4(k(l),a);Array.isArray(f)?f.forEach(function(p){return u.push(p)}):u.push(f)}}),u)}(t,e),r=function(i){for(var a in Cg)if(i[0].matches(a))return Cg[a];return fQ}(t),o=r(t[0],n,e);return Array.isArray(o)||(o=[o]),o.forEach(function(i){E.isVoid(e,i)||(n.length===0&&(i.children=[{text:t.text().replace(/\s+/gm," ")}]),C4.forEach(function(a){i=a(t[0],i,e)}))}),o}function k4(t,e){t.parents("pre").length===0&&(t[0].innerHTML=t[0].innerHTML.replace(/\s+/gm," ").replace(/
/g,` `));var n=t[0].textContent||"";n=function(o){return o.replace(/ /g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"\xAE").replace(/©/g,"\xA9").replace(/™/g,"\u2122").replace(/"/g,'"')}(n);var r={text:n=mB(n)};return C4.forEach(function(o){r=o(t[0],r,e)}),r}function B4(t,e){dB.forEach(function(r){var o=r.selector,i=r.preParseHtml;t[0].matches(o)&&(t=k(i(t[0])))});var n=Bk(t);return n==="span"?t.attr("data-w-e-type")?O4(t,e):k4(t,e):n==="code"?Bk(t.parent())==="pre"?O4(t,e):k4(t,e):fB.includes(n)?k4(t,e):O4(t,e)}function wB(t,e,n){var r=k(n);return!!r.attr(e)||(r.attr(e,"true"),t.on("destroyed",function(){r.removeAttr(e)}),!1)}function EB(t,e){e===void 0&&(e="");var n=[];e===""&&(e="


"),e.indexOf("<")!==0&&(e=e.split(/\n/).map(function(o){return"

"+o+"

"}).join(""));var r=k("
"+e+"
");return Array.from(r.children()).forEach(function(o){var i=B4(k(o),t);Array.isArray(i)?i.forEach(function(a){return n.push(a)}):n.push(i)}),n}var dQ=Gr.f,DB=lg.fastKey,xB=xn.set,F4=xn.getterFor,pQ={getConstructor:function(t,e,n,r){var o=t(function(l,c){fg(l,i),xB(l,{type:e,index:eg(null),first:void 0,last:void 0,size:0}),ln||(l.size=0),c!=null&&$f(c,l[r],{that:l,AS_ENTRIES:n})}),i=o.prototype,a=F4(e),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=DB(c,!0),key:c,value:f,previous:p=m.last,next:void 0,removed:!1},m.first||(m.first=g),p&&(p.next=g),ln?m.size++:l.size++,d!=="F"&&(m.index[d]=g)),l},s=function(l,c){var f,p=a(l),d=DB(c);if(d!=="F")return p.index[d];for(f=p.first;f;f=f.next)if(f.key==c)return f};return sl(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,ln?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),ln?f.size--:c.size--}return!!p},forEach:function(l){for(var c,f=a(this),p=Du(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)}}),sl(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)}}),ln&&dQ(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(t,e,n){var r=e+" Iterator",o=F4(e),i=F4(r);yw(t,e,function(a,u){xB(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),u4(e)}};lk("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},pQ);var SB=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function CB(t,e){t.isInline(e)?(t.insertNode(e),e.type==="link"&&t.insertFragment([{text:""}])):N.insertNodes(t,e,{mode:"highest"})}var hQ=function(t){var e=t,n=e.insertText;return e.insertFragment,e.setFragmentData=function(r){var o=e.selection;if(o){var i=Wt(R.edges(o),2),a=i[0],u=i[1],s=E.void(e,{at:a.path}),l=E.void(e,{at:u.path});if(!R.isCollapsed(o)||s){var c=A.toDOMRange(e,o),f=c.cloneContents(),p=f.childNodes[0];if(f.childNodes.forEach(function(D){D.textContent&&D.textContent.trim()!==""&&(p=D)}),l){var d=Wt(l,1)[0],m=c.cloneRange(),g=A.toDOMNode(e,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?` `:""}),Ak(p)){var v=p.ownerDocument.createElement("span");v.style.whiteSpace="pre",v.appendChild(p),f.appendChild(v),p=v}var y=e.getFragment(),h=JSON.stringify(y),b=window.btoa(encodeURIComponent(h));p.setAttribute("data-slate-fragment",b),r.setData("application/x-slate-fragment",b);var w=f.ownerDocument.createElement("div");return w.appendChild(f),w.setAttribute("hidden","true"),f.ownerDocument.body.appendChild(w),r.setData("text/html",w.innerHTML),r.setData("text/plain",bJ(w)),f.ownerDocument.body.removeChild(w),r}}},e.insertData=function(r){var o,i,a=r.getData("application/x-slate-fragment");if(a){var u=decodeURIComponent(window.atob(a)),s=JSON.parse(u);e.insertFragment(s)}else{var l=r.getData("text/plain"),c=r.getData("text/html");if(c)e.dangerouslyInsertHtml(c);else if(l){var f=l.split(/\r\n|\r|\n/),p=!1;try{for(var d=Sr(f),m=d.next();!m.done;m=d.next()){var g=m.value;p&&N.splitNodes(e,{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}}}}},e},nd=function(t){return t!=null},gQ={object:!0,function:!0,undefined:!0},vQ=/^\s*class[\s{/}]/,yQ=Function.prototype.toString,AB=function(t){return!!function(e){if(typeof e!="function"||!hasOwnProperty.call(e,"length"))return!1;try{if(typeof e.length!="number"||typeof e.call!="function"||typeof e.apply!="function")return!1}catch(n){return!1}return!function(n){if(!function(r){return!!nd(r)&&hasOwnProperty.call(gQ,typeof r)}(n))return!1;try{return!!n.constructor&&n.constructor.prototype===n}catch(r){return!1}}(e)}(t)&&!vQ.test(yQ.call(t))},T4=function(t){return t!=null},mQ=Object.keys,bQ=function(){try{return Object.keys("primitive"),!0}catch(t){return!1}}()?Object.keys:function(t){return mQ(T4(t)?Object(t):t)},wQ=function(t){if(!T4(t))throw new TypeError("Cannot use null or undefined");return t},EQ=Math.max,OB=function(){var t,e=Object.assign;return typeof e=="function"&&(e(t={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}()?Object.assign:function(t,e){var n,r,o,i=EQ(arguments.length,2);for(t=Object(wQ(t)),o=function(a){try{t[a]=e[a]}catch(u){n||(n=u)}},r=1;r-1},Og=xf(function(t){var e=t.exports=function(n,r){var o,i,a,u,s;return arguments.length<2||typeof n!="string"?(u=r,r=n,n=null):u=arguments[2],nd(n)?(o=rd.call(n,"c"),i=rd.call(n,"e"),a=rd.call(n,"w")):(o=a=!0,i=!1),s={value:r,configurable:o,enumerable:i,writable:a},u?OB(kB(u),s):s};e.gs=function(n,r,o){var i,a,u,s;return typeof n!="string"?(u=o,o=r,r=n,n=null):u=arguments[3],nd(r)?AB(r)?nd(o)?AB(o)||(u=o,o=void 0):o=void 0:(u=r,r=o=void 0):r=void 0,nd(n)?(i=rd.call(n,"c"),a=rd.call(n,"e")):(i=!0,a=!1),s={get:r,set:o,configurable:i,enumerable:a},u?OB(kB(u),s):s}}),j4=function(t){if(typeof t!="function")throw new TypeError(t+" is not a function");return t},AQ=xf(function(t,e){var n,r,o,i,a,u,s,l=Function.prototype.apply,c=Function.prototype.call,f=Object.create,p=Object.defineProperty,d=Object.defineProperties,m=Object.prototype.hasOwnProperty,g={configurable:!0,enumerable:!1,writable:!0};n=function(v,y){var h;return j4(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 j4(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(j4(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;ya/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 I4(t,e,n){n===void 0&&(n="modal");var r={top:"0",left:"0"};if(t.selection==null)return r;var o=ft.isElement(e)&&t.isVoid(e),i=ft.isElement(e)&&t.isInline(e),a=wg.get(e);if(a==null)return r;var u=a.getBoundingClientRect(),s=u.top,l=u.left,c=u.height,f=u.width;if(o){var p=function(x){var O=[];O.push(x);for(var T=0;O.length>0;){var I=O.pop();if(I==null||++T>1e4)break;var M=I.nodeName;if(I.nodeType===1){var z=M.toLowerCase();if(yJ.includes(z)||z==="iframe"||z==="video")return I;var Y=I.children||[],W=Y.length;if(W)for(var G=W-1;G>=0;G--)O.push(Y[G])}}return null}(a);if(p!=null){var d=p.getBoundingClientRect();s=d.top,c=d.height}}var m=_4(t);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 L4(t,e){Cr(function(){var n=_4(t);if(n!=null){var r,o=n.top,i=n.left,a=n.width,u=n.height,s=e.offset(),l=s.top,c=s.left,f=e.width(),p=e.height(),d=l-o,m=c-i,g=e.attr("style");if(g.indexOf("top")>=0&&(r=d+p-u)>0){var v=e.css("top"),y=parseInt(v.toString())-r;y<0&&(y=0),e.css("top",y+"px")}if(g.indexOf("bottom")>=0&&l<0){var h=e.css("bottom"),b=parseInt(h.toString())-Math.abs(l);e.css("bottom",b+"px")}if(g.indexOf("left")>=0&&(r=m+f-a)>0){var w=e.css("left"),D=parseInt(w.toString())-r;D<0&&(D=0),e.css("left",D+"px")}if(g.indexOf("right")>=0&&c<0){var S=e.css("right"),x=parseInt(S.toString())-Math.abs(c);e.css("right",x+"px")}}})}var BQ=ig("slice"),FQ=De("species"),R4=Z.Array,TQ=Math.max;xe({target:"Array",proto:!0,forced:!BQ},{slice:function(t,e){var n,r,o,i=Vi(this),a=xu(i),u=nl(t,a),s=nl(e===void 0?a:e,a);if(X0(i)&&(n=i.constructor,(Z0(n)&&(n===R4||X0(n.prototype))||de(n)&&(n=n[FQ])===null)&&(n=void 0),n===R4||n===void 0))return Ik(i,u,s);for(r=new(n===void 0?R4:n)(TQ(s-u,0)),o=0;u1?arguments[1]:void 0,e.length)),r=ce(t);return FB?FB(e,r,n):jQ(e,n,n+r.length)===r}});var ml=Object.assign,PB=Object.defineProperty,IQ=pt([].concat),jB=!ml||Jt(function(){if(ln&&ml({b:1},ml(PB({},"a",{enumerable:!0,get:function(){PB(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(o){e[o]=o}),ml({},t)[n]!=7||rl(ml({},e)).join("")!=r})?function(t,e){for(var n=zi(t),r=arguments.length,o=1,i=kO.f,a=DO.f;r>o;)for(var u,s=Y0(arguments[o++]),l=i?IQ(rl(s),i(s)):rl(s),c=l.length,f=0;c>f;)u=l[f++],ln&&!Ut(a,s,u)||(n[u]=s[u]);return n}:ml;xe({target:"Object",stat:!0,forced:Object.assign!==jB},{assign:jB});var LQ=["props","attrs","style","dataset","on","hook"];function _B(t){var e=t.data,n=e===void 0?{}:e,r=t.children,o=r===void 0?[]:r;Object.keys(n).forEach(function(i){var a,u,s=n[i];if(i!=="key"){if(!LQ.includes(i)){if(i.startsWith("data-")){var l=i.slice(5);return l=uK(l),function(c,f){c.data==null&&(c.data={});var p=c.data;p.dataset==null&&(p.dataset={}),Object.assign(p.dataset,f)}(t,((a={})[l]=s,a)),void delete n[i]}(function(c,f){c.data==null&&(c.data={});var p=c.data;p.props==null&&(p.props={}),Object.assign(p.props,f)})(t,(u={},u[i]=s,u)),delete n[i]}}else t.key=s}),o.length>0&&o.forEach(function(i){typeof i!="string"&&_B(i)})}var M4=[],NB={};function RQ(t,e,n){return bt(n.isInline(t)?"span":"div",null,e)}function IB(t,e){return e===void 0&&(e=!1),bt("span",{"data-slate-string":!0},e?t+` `:t)}function z4(t,e){return t===void 0&&(t=0),e===void 0&&(e=!1),bt("span",{"data-slate-zero-width":e?"n":"z","data-slate-length":t},"\uFEFF",e?bt("br",null):null)}function $4(t,e,n,r){return Uf.set(t,e),ll.set(t,n),ft.isElement(t)?function(o,i){var a,u=A.findKey(i,o),s=i.isInline(o),l=E.isVoid(i,o),c=sB(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 NB[D]||RQ}(p);a=l?null:m.map(function(D,S){return $4(D,S,o,i)});var v=g(o,a,i);if(l){f["data-slate-void"]=!0;var y=s?"span":"div",h=Wt(Q.texts(o),1),b=Wt(h[0],1)[0],w=bt(y,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},$4(b,0,o,i));v=bt(y,{style:{position:"relative"}},v,w),Uf.set(b,0),ll.set(b,o)}return v.data==null&&(v.data={}),Object.assign(v.data,f),l||s||(v=function(D,S){var x=S;return M4.forEach(function(O){x=O(D,S)}),x}(o,v)),Cr(function(){var D=t4(c);D!=null&&(Xw.set(u,D),wg.set(o,D),bg.set(D,o))}),v}(t,r):function(o,i,a){if(o.text==null)throw new Error("Current node is not slate Text "+JSON.stringify(o));var u=A.findKey(a,o),s=a.getConfig().decorate;if(s==null)throw new Error("Can not get config.decorate");var l=A.findPath(a,o),c=s([o,l]),f=it.decorations(o,c),p=f.map(function(g,v){var y=function(h,b,w,D,S){b===void 0&&(b=!1);var x=h.text,O=A.findPath(S,w),T=_.parent(O);if(E.isEditor(D))throw new Error("Text node "+JSON.stringify(w)+" parent is Editor");return S.isVoid(D)?z4(Q.string(D).length):x!==""||D.children[D.children.length-1]!==w||S.isInline(D)||E.string(S,T)!==""?x===""?z4():b&&x.slice(-1)===` `?IB(x,!0):IB(x):z4(0,!0)}(g,v===f.length-1,o,i,a);return y=function(h,b){var w=b;return M4.forEach(function(D){w=D(h,w)}),w}(g,y),bt("span",{"data-slate-leaf":!0},y)}),d=function(g){return"w-e-text-"+g}(u.id),m=bt("span",{"data-slate-node":"text",id:d,key:u.id},p);return Cr(function(){var g=t4(d);g!=null&&(Xw.set(u,g),wg.set(o,g),bg.set(g,o))}),m}(t,n,r)}function MQ(t,e){var n,r=t.$scroll,o=function(g){return"w-e-textarea-"+g}(t.id),i=e.getConfig(),a=i.readOnly,u=i.autoFocus,s=function(g,v){return v===void 0&&(v=!1),qs("div#"+g,{props:{contentEditable:!v}})}(o,a),l=e.children||[];s.children=l.map(function(g,v){var y=$4(g,v,e,e);return _B(y),y});var c=bk.get(t);if(c==null&&(c=!0),c){var f=function(g,v){return k(`
`)}(o);r.append(f),t.$textArea=f,n=f[0],(d=Bq([Tq,Nq,Lq,Pq,_q,Fq]))(n,s),bk.set(t,!1),wk.set(t,d)}else{var p=Ek.get(t),d=wk.get(t);if(p==null||d==null)return;n=p.elm,d(p,s)}if(n!=null||(n=t4(o))!=null){if((c?u:e.isFocused())&&n.focus({preventScroll:!0}),c){var m=Qw(n);m&&Dk.set(e,m)}Yw.set(e,n),wg.set(e,n),bg.set(n,e),Ek.set(t,s)}}function LB(t){return typeof t=="object"&&t!=null&&t.nodeType===1}function RB(t,e){return(!e||t!=="hidden")&&t!=="visible"&&t!=="clip"}function H4(t,e){if(t.clientHeighte||i>t&&a=e&&u>=n?i-t-r:a>e&&un?a-e+o:0}function MB(t,e){var n=window,r=e.scrollMode,o=e.block,i=e.inline,a=e.boundary,u=e.skipOverflowHiddenElements,s=typeof a=="function"?a:function(St){return St!==a};if(!LB(t))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=t;LB(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}f!=null&&f===document.body&&H4(f)&&!H4(document.documentElement)||f!=null&&H4(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=t.getBoundingClientRect(),y=v.height,h=v.width,b=v.top,w=v.right,D=v.bottom,S=v.left,x=o==="start"||o==="nearest"?b:o==="end"?D:b+y/2,O=i==="center"?S+h/2:i==="end"?w:S,T=[],I=0;I=0&&S>=0&&D<=d&&w<=p&&b>=G&&D<=ot&&S>=ct&&w<=K)return T;var lt=getComputedStyle(M),ut=parseInt(lt.borderLeftWidth,10),B=parseInt(lt.borderTopWidth,10),C=parseInt(lt.borderRightWidth,10),j=parseInt(lt.borderBottomWidth,10),H=0,X=0,U="offsetWidth"in M?M.offsetWidth-M.clientWidth-ut-C:0,at="offsetHeight"in M?M.offsetHeight-M.clientHeight-B-j:0;if(l===M)H=o==="start"?x:o==="end"?x-d:o==="nearest"?Fg(g,g+d,d,B,j,g+x,g+x+y,y):x-d/2,X=i==="start"?O:i==="center"?O-p/2:i==="end"?O-p:Fg(m,m+p,p,ut,C,m+O,m+O+h,h),H=Math.max(0,H+g),X=Math.max(0,X+m);else{H=o==="start"?x-G-B:o==="end"?x-ot+j+at:o==="nearest"?Fg(G,ot,Y,B,j+at,x,x+y,y):x-(G+Y/2)+at/2,X=i==="start"?O-ct-ut:i==="center"?O-(ct+W/2)+U/2:i==="end"?O-K+C+U:Fg(ct,K,W,ut,C+U,O,O+h,h);var vt=M.scrollLeft,mt=M.scrollTop;x+=mt-(H=Math.max(0,Math.min(mt+H,M.scrollHeight-Y+at))),O+=vt-(X=Math.max(0,Math.min(vt+X,M.scrollWidth-W+U)))}T.push({el:M,top:H,left:X})}return T}function zB(t){return t===Object(t)&&Object.keys(t).length!==0}function Ar(t,e){return Ou(e)&&A.hasDOMNode(t,e,{editable:!0})}function $B(t,e){if(t.getConfig().readOnly)return!1;var n=bl(t,e)&&A.toSlateNode(t,e);return E.isVoid(t,n)}function bl(t,e){return Ou(e)&&A.hasDOMNode(t,e)}function HB(t,e,n){n===void 0&&(n=!1);var r=e.selection,o=e.getConfig(),i=A.findDocumentOrShadowRoot(e).getSelection();if(i&&(!t.isComposing||n)&&e.isFocused()){var a=i.type!=="None";if(r||a){var u=Yw.get(e),s=!1;if(u.contains(i.anchorNode)&&u.contains(i.focusNode)&&(s=!0),a&&s&&r){var l=A.toSlateRange(e,i,{exactMatch:!0,suppressThrow:!0});if(l&&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(e,r)){t.isUpdatingSelection=!0;var g=r&&A.toDOMRange(e,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(zB(b)&&typeof b.behavior=="function")return b.behavior(w?[]:MB(h,b));if(!w){var D=function(S){return S===!1?{block:"end",inline:"nearest"}:zB(S)?S:{block:"start",inline:"nearest"}}(b);(function(S,x){x===void 0&&(x="auto");var O="scrollBehavior"in document.body.style;S.forEach(function(T){var I=T.el,M=T.top,z=T.left;I.scroll&&O?I.scroll({top:M,left:z,behavior:x}):(I.scrollTop=M,I.scrollLeft=z)})})(MB(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&&Wf&&u.focus(),t.isUpdatingSelection=!1})}else e.selection=A.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})}}}var V4=new WeakMap,VB=new WeakMap,zQ={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"},$Q={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"},HQ={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},be=function(t){var e=zQ[t],n=$Q[t],r=HQ[t],o=e&&h2(e),i=n&&h2(n),a=r&&h2(r);return function(u){return!(!o||!o(u))||!!(e4&&i&&i(u))||!(e4||!a||!a(u))}},Se={isBold:be("bold"),isCompose:be("compose"),isMoveBackward:be("moveBackward"),isMoveForward:be("moveForward"),isDeleteBackward:be("deleteBackward"),isDeleteForward:be("deleteForward"),isDeleteLineBackward:be("deleteLineBackward"),isDeleteLineForward:be("deleteLineForward"),isDeleteWordBackward:be("deleteWordBackward"),isDeleteWordForward:be("deleteWordForward"),isExtendBackward:be("extendBackward"),isExtendForward:be("extendForward"),isExtendLineBackward:be("extendLineBackward"),isExtendLineForward:be("extendLineForward"),isItalic:be("italic"),isMoveLineBackward:be("moveLineBackward"),isMoveLineForward:be("moveLineForward"),isMoveWordBackward:be("moveWordBackward"),isMoveWordForward:be("moveWordForward"),isRedo:be("redo"),isSplitBlock:be("splitBlock"),isTransposeCharacter:be("transposeCharacter"),isUndo:be("undo"),isTab:be("tab"),isSelectAll:be("selectAll")};function qe(t){t.preventDefault()}var VQ={beforeinput:function(t,e,n){var r=t,o=n.getConfig().readOnly;if(qf&&!o&&Ar(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=Wt(r.getTargetRanges(),1)[0];if(s){var l=A.toSlateRange(n,s,{exactMatch:!1,suppressThrow:!1});i&&R.equals(i,l)||N.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"&&!Jw.get(n))break;u instanceof DataTransfer?n.insertData(u):typeof u=="string"&&E.insertText(n,u)}}}},blur:function(t,e,n){var r=t,o=e.isUpdatingSelection,i=e.latestElement;if(!n.getConfig().readOnly&&!o&&Ar(n,r.target)){var a=A.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var u=r.relatedTarget;if(!(u===A.toDOMNode(n,n)||Yr(u)&&u.hasAttribute("data-slate-spacer"))){if(u!=null&&Ou(u)&&A.hasDOMNode(n,u)){var s=A.toSlateNode(n,u);if(ft.isElement(s)&&!n.isVoid(s))return}if(Gf){var l=a.getSelection();l==null||l.removeAllRanges()}Au.delete(n)}}}},focus:function(t,e,n){var r=A.toDOMNode(n,n),o=A.findDocumentOrShadowRoot(n);e.latestElement=o.activeElement,Wf&&t.target!==r?r.focus():Au.set(n,!0)},click:function(t,e,n){if(!n.getConfig().readOnly&&bl(n,t.target)&&Ou(t.target)){var r=A.toSlateNode(n,t.target),o=A.findPath(n,r);if(E.hasPath(n,o)&&Q.get(n,o)===r){var i=E.start(n,o),a=E.end(n,o),u=E.void(n,{at:i}),s=E.void(n,{at:a});if(u&&s&&_.equals(u[1],s[1])){var l=E.range(n,i);N.select(n,l)}}}},compositionstart:function(t,e,n){if(Ar(n,t.target)){var r=n.selection;if(r&&R.isExpanded(r)&&(E.deleteFragment(n),Promise.resolve().then(function(){HB(e,n,!0)})),r&&R.isCollapsed(r)){var o=A.toDOMRange(n,r).startContainer,i=o.textContent||"";V4.set(n,i),VB.set(n,o)}e.isComposing=!0,function(a,u){var s;u.getConfig().placeholder&&u.isEmpty()&&a.showPlaceholder&&((s=a.$placeholder)===null||s===void 0||s.hide(),a.showPlaceholder=!1)}(e,n)}},compositionend:function(t,e,n){var r=t;if(Ar(n,r.target)){e.isComposing=!1;var o=n.selection;if(o!=null){(n4||Wf)&&A.cleanExposedTexNodeInSelectionBlock(n);for(var i=R.isBackward(o)?o.focus:o.anchor,a=Wt(E.node(n,[i.path[0]]),1)[0],u=0;u0&&E.insertText(n,l.slice(0,c)),e.changeViewState()):E.insertText(n,l)}else E.insertText(n,l);Gf||setTimeout(function(){var f=n.selection;if(f!=null){var p=VB.get(n);p!=null&&A.toDOMRange(n,f).startContainer!==p&&(p.textContent=V4.get(n)||"")}})}}}},compositionupdate:function(t,e,n){Ar(n,t.target)&&(e.isComposing=!0)},keydown:function(t,e,n){var r=t,o=n.selection;if(!n.getConfig().readOnly&&!e.isComposing&&Ar(n,r.target)){if(function(a,u){var s=vg.get(a),l=s&&s.getMenus(),c=yg.get(a),f=c&&c.getMenus(),p=xr(xr({},l),f);for(var d in p){var m=p[d],g=m.hotkey;if(g&&cK(g,u)&&!m.isDisabled(a)){var v=m.getValue(a);m.exec(a,v)}}}(n,r),Se.isTab(r))return qe(r),void n.handleTab();if(Se.isRedo(r))return qe(r),void(typeof n.redo=="function"&&n.redo());if(Se.isUndo(r))return qe(r),void(typeof n.undo=="function"&&n.undo());if(Se.isMoveLineBackward(r))return qe(r),void N.move(n,{unit:"line",reverse:!0});if(Se.isMoveLineForward(r))return qe(r),void N.move(n,{unit:"line"});if(Se.isExtendLineBackward(r))return qe(r),void N.move(n,{unit:"line",edge:"focus",reverse:!0});if(Se.isExtendLineForward(r))return qe(r),void N.move(n,{unit:"line",edge:"focus"});if(Se.isMoveBackward(r))return qe(r),void(o&&R.isCollapsed(o)?N.move(n,{reverse:!0}):N.collapse(n,{edge:"start"}));if(Se.isMoveForward(r))return qe(r),void(o&&R.isCollapsed(o)?N.move(n):N.collapse(n,{edge:"end"}));if(Se.isMoveWordBackward(r))return qe(r),o&&R.isExpanded(o)&&N.collapse(n,{edge:"focus"}),void N.move(n,{unit:"word",reverse:!0});if(Se.isMoveWordForward(r))return qe(r),o&&R.isExpanded(o)&&N.collapse(n,{edge:"focus"}),void N.move(n,{unit:"word"});if(Se.isSelectAll(r))return qe(r),void n.selectAll();if(qf){if((n4||Gf)&&o&&(Se.isDeleteBackward(r)||Se.isDeleteForward(r))&&R.isCollapsed(o)){var i=Q.parent(n,o.anchor.path);if(ft.isElement(i)&&E.isVoid(n,i)&&E.isInline(n,i))return r.preventDefault(),void N.delete(n,{unit:"block"})}}else{if(Se.isBold(r)||Se.isItalic(r)||Se.isTransposeCharacter(r))return void qe(r);if(Se.isSplitBlock(r))return qe(r),void E.insertBreak(n);if(Se.isDeleteBackward(r))return qe(r),void(o&&R.isExpanded(o)?E.deleteFragment(n,{direction:"backward"}):E.deleteBackward(n));if(Se.isDeleteForward(r))return qe(r),void(o&&R.isExpanded(o)?E.deleteFragment(n,{direction:"forward"}):E.deleteForward(n));if(Se.isDeleteLineBackward(r))return qe(r),void(o&&R.isExpanded(o)?E.deleteFragment(n,{direction:"backward"}):E.deleteBackward(n,{unit:"line"}));if(Se.isDeleteLineForward(r))return qe(r),void(o&&R.isExpanded(o)?E.deleteFragment(n,{direction:"forward"}):E.deleteForward(n,{unit:"line"}));if(Se.isDeleteWordBackward(r))return qe(r),void(o&&R.isExpanded(o)?E.deleteFragment(n,{direction:"backward"}):E.deleteBackward(n,{unit:"word"}));if(Se.isDeleteWordForward(r))return qe(r),void(o&&R.isExpanded(o)?E.deleteFragment(n,{direction:"forward"}):E.deleteForward(n,{unit:"word"}))}}},keypress:function(t,e,n){if(!qf&&!n.getConfig().readOnly&&Ar(n,t.target)){t.preventDefault();var r=t.key;E.insertText(n,r)}},copy:function(t,e,n){var r=t;if(Ar(n,r.target)){r.preventDefault();var o=r.clipboardData;o!=null&&n.setFragmentData(o)}},cut:function(t,e,n){var r=t,o=n.selection;if(!n.getConfig().readOnly&&Ar(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=Q.parent(n,o.anchor.path);E.isVoid(n,a)&&N.delete(n)}}},paste:function(t,e,n){Jw.set(n,!0);var r=t;if(!n.getConfig().readOnly&&Ar(n,r.target)){var o=n.getConfig().customPaste;if(o&&o(n,r)===!1)return void Jw.set(n,!1);if(!qf||function(a){return a.clipboardData&&a.clipboardData.getData("text/plain")!==""&&a.clipboardData.types.length===1}(r)){r.preventDefault();var i=r.clipboardData;i!=null&&n.insertData(i)}}},dragover:function(t,e,n){if(bl(n,t.target)){var r=A.toSlateNode(n,t.target);E.isVoid(n,r)&&t.preventDefault()}},dragstart:function(t,e,n){var r=t;if(bl(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);N.select(n,a)}var u=r.dataTransfer;u!=null&&(e.isDraggingInternally=!0,n.setFragmentData(u))}},dragend:function(t,e,n){var r=t;n.getConfig().readOnly||e.isDraggingInternally&&bl(n,r.target)&&(e.isDraggingInternally=!1)},drop:function(t,e,n){var r=t,o=r.dataTransfer;if(!n.getConfig().readOnly&&bl(n,r.target)&&o!=null&&!(qf&&Gf&&o.files.length>0)){r.preventDefault();var i=n.selection,a=A.findEventRange(n,r);N.select(n,a),e.isDraggingInternally&&(i&&N.delete(n,{at:i}),e.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},UQ=1,WQ=function(){function t(e){var n=this;this.id=UQ++,this.$textArea=null,this.$progressBar=k('
'),this.$maxLengthInfo=k('
'),this.isComposing=!1,this.isUpdatingSelection=!1,this.isDraggingInternally=!1,this.latestElement=null,this.showPlaceholder=!1,this.$placeholder=null,this.latestEditorSelection=null,this.onDOMSelectionChange=cu(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,Au.set(s,!0)):Au.delete(s),!g)return N.deselect(s);var v=g.anchorNode,y=g.focusNode,h=Ar(s,v)||$B(s,v),b=Ar(s,y)||$B(s,y);if(h&&b){var w=A.toSlateRange(s,g,{exactMatch:!1,suppressThrow:!1});N.select(s,w)}else N.deselect(s)}})(n,a)},100);var r=k(e);if(r.length===0)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=r;var o=k('
');o.append(this.$progressBar),o.append(this.$maxLengthInfo),r.append(o);var i=k('
');o.append(i),this.$scroll=i,this.$textAreaContainer=o,Cr(function(){var a=n.editorInstance,u=A.getWindow(a);u.document.addEventListener("selectionchange",n.onDOMSelectionChange),a.on("destroyed",function(){u.document.removeEventListener("selectionchange",n.onDOMSelectionChange)}),o.on("click",function(){return a.hidePanelOrModal()}),a.on("change",n.changeViewState.bind(n));var s=a.getConfig().onChange;s&&a.on("change",function(){return s(a)}),n.onFocusAndOnBlur(),a.on("change",n.changeMaxLengthInfo.bind(n)),n.bindEvent()})}return Object.defineProperty(t.prototype,"editorInstance",{get:function(){var e=Uw.get(this);if(e==null)throw new Error("Can not get editor instance");return e},enumerable:!1,configurable:!0}),t.prototype.bindEvent=function(){var e=this,n=this.$textArea,r=this.$scroll,o=this.editorInstance;n!=null&&(n2(VQ,function(i,a){n.on(a,function(u){i(u,e,o)})}),o.getConfig().scroll&&(r.css("overflow-y","auto"),r.on("scroll",cu(function(){o.emit("scroll")},100))))},t.prototype.onFocusAndOnBlur=function(){var e=this,n=this.editorInstance,r=n.getConfig(),o=r.onBlur,i=r.onFocus;this.latestEditorSelection=n.selection,n.on("change",function(){e.latestEditorSelection==null&&n.selection!=null?setTimeout(function(){return i&&i(n)}):e.latestEditorSelection!=null&&n.selection==null&&setTimeout(function(){return o&&o(n)}),e.latestEditorSelection=n.selection})},t.prototype.changeMaxLengthInfo=function(){var e=this.editorInstance,n=e.getConfig().maxLength;if(n){var r=n-A.getLeftLengthOfMaxLength(e);this.$maxLengthInfo[0].innerHTML=r+"/"+n}},t.prototype.changeProgress=function(e){var n=this.$progressBar;n.css("width",e+"%"),e>=100&&setTimeout(function(){n.hide(),n.css("width","0"),n.show()},1e3)},t.prototype.changeViewState=function(){var e=this,n=this.editorInstance;MQ(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('
'+a+"
");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),Cr(function(){HB(e,n)})},t.prototype.destroy=function(){this.$textAreaContainer.remove()},t}();function U4(t){t.removeAttr("width"),t.removeAttr("height"),t.removeAttr("fill"),t.removeAttr("class"),t.removeAttr("t"),t.removeAttr("p-id");var e=t.children();e.length&&U4(e)}function W4(){return k('')}function UB(){return k('
')}function WB(t,e,n,r,o){if(o===void 0&&(o=!1),e){if(r){var i=e4?"cmd":"ctrl";r=r.replace("mod",i)}if(o)r&&(t.attr("data-tooltip",r),t.addClass("w-e-menu-tooltip-v5"),t.addClass("tooltip-right"));else{var a=r?n+` `+r:n;t.attr("data-tooltip",a),t.addClass("w-e-menu-tooltip-v5")}}}Fw("match",function(t,e,n){return[function(r){var o=Dr(this),i=r==null?void 0:wu(r,t);return i?Ut(i,r,o):new RegExp(r)[t](ce(o))},function(r){var o=Le(this),i=ce(r),a=n(e,o,i);if(a.done)return a.value;if(!o.global)return Mf(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=Mf(o,i))!==null;){var f=ce(s[0]);l[c]=f,f===""&&(o.lastIndex=Tw(i,tl(o.lastIndex),u)),c++}return c===0?null:l}]});var G4=function(){function t(e,n,r){var o=this;r===void 0&&(r=!1),this.$elem=k('
'),this.$button=k(''),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);U4(d),p.append(d)}else p.text(u);WB(p,f,u,l,r),r&&f&&p.append(k(''+u+"")),a&&p.css("width",a+"px"),p.attr("data-menu-key",e),this.$elem.append(p),Cr(function(){return o.init()})}return t.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(n){n.preventDefault(),ar(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())})},t.prototype.exec=function(){var e=ar(this),n=this.menu,r=n.getValue(e);n.exec(e,r)},t.prototype.setActive=function(){var e=ar(this),n=this.$button,r="active";this.menu.isActive(e)?n.addClass(r):n.removeClass(r)},t.prototype.setDisabled=function(){var e=ar(this),n=this.$button,r=this.menu.isDisabled(e);(e.selection==null||e.isDisabled())&&(r=!0),this.menu.alwaysEnable&&(r=!1);var o="disabled";r?n.addClass(o):n.removeClass(o),this.disabled=r},t.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},t}(),GQ=function(t){function e(n,r,o){return o===void 0&&(o=!1),t.call(this,n,r,o)||this}return ul(e,t),e.prototype.onButtonClick=function(){},e}(G4),q4=function(){function t(e){this.isShow=!1,this.showTime=0,this.record(e)}return t.prototype.record=function(e){var n=Kw.get(e);n==null&&(n=new Set,Kw.set(e,n)),n.add(this),mg.set(this,e)},t.prototype.renderContent=function(e){var n=this.$elem;n.empty(),n.append(e);var r=this.genSelfElem();r&&n.append(r)},t.prototype.appendTo=function(e){var n=this.$elem;e.append(n)},t.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var e=mg.get(this);e&&e.emit("modalOrPanelShow",this)}},t.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var e=mg.get(this);e&&e.emit("modalOrPanelHide")}},t}(),qQ=function(t){function e(n){var r=t.call(this,n)||this;return r.type="dropPanel",r.$elem=k('
'),r}return ul(e,t),e.prototype.genSelfElem=function(){return null},e}(q4),KQ=function(t){function e(n,r,o){o===void 0&&(o=!1);var i=t.call(this,n,r,o)||this;if(i.dropPanel=null,i.menu=r,r.showDropPanel){var a=W4();i.$button.append(a)}return i}return ul(e,t),e.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},e.prototype.handleDropPanel=function(){var n=this.menu;if(n.getPanelContentElem!=null){var r=ar(this);if(this.dropPanel==null){var o=new qQ(r),i=n.getPanelContentElem(r);o.renderContent(i),o.appendTo(this.$elem),o.show(),this.dropPanel=o}else{var a=this.dropPanel;a.isShow?a.hide():(i=n.getPanelContentElem(r),a.renderContent(i),a.show())}var u=this.dropPanel;if(u.isShow){var s=this.$elem,l=s.offset().left,c=s.parents(".w-e-bar");l-c.offset().left>=c.width()/2?u.$elem.css({left:"none",right:"0"}):u.$elem.css({left:"0",right:"none"})}}},e}(G4),YQ=function(t){function e(n,r){r===void 0&&(r=0);var o=t.call(this,n)||this;o.type="modal",o.$elem=k('
'),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 ul(e,t),e.prototype.genSelfElem=function(){var n=this,r=k(''),o=mg.get(this);return r.on("click",function(){n.hide(),o==null||o.restoreSelection()}),r},e.prototype.setStyle=function(n){var r=this.width,o=this.$elem;o.attr("style",""),r&&o.css("width",r+"px"),o.css(n)},e}(q4);function ir(t,e,n){var r=k('');r.append(""+t+"");var o=k('');return r.append(o),[r[0],o[0]]}function Kyt(t,e,n){var r=k('');r.append(""+t+"");var o=k('');return r.append(o),[r[0],o[0]]}function wl(t,e){var n=k('
'),r=k('");return n.append(r),[n[0],r[0]]}var XQ=function(t){function e(n,r,o){o===void 0&&(o=!1);var i=t.call(this,n,r,o)||this;return i.$body=k("body"),i.modal=null,i.menu=r,i}return ul(e,t),e.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},e.prototype.getPosition=function(){var n=ar(this),r=this.menu.getModalPositionNode(n);return ft.isElement(r)?I4(n,r,"modal"):N4(n)},e.prototype.handleModal=function(){var n=ar(this),r=this.menu;if(this.modal==null){var o=new YQ(n,r.modalWidth);this.renderAndShowModal(o,!0),this.modal=o}else(o=this.modal).isShow?o.hide():this.renderAndShowModal(o,!1)},e.prototype.renderAndShowModal=function(n,r){r===void 0&&(r=!1);var o=ar(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||L4(o,n.$elem),setTimeout(function(){o.blur()})}},e}(G4),ZQ=function(t){function e(n,r){var o=t.call(this,n)||this;return o.type="selectList",o.$elem=k('
'),r&&o.$elem.css("width",r+"px"),o.$elem.on("click",function(i){i.stopPropagation()}),o}return ul(e,t),e.prototype.renderList=function(n){var r=this.$elem;r.empty();var o=k("
    ");n.forEach(function(i){var a=i.value,u=i.text,s=i.selected,l=i.styleForRenderMenuList,c=k('
  • ');if(l&&c.css(l),s){var f=k('');c.append(f),c.addClass("selected")}c.append(k(''+u+"")),c.attr("title",u),o.append(c)}),r.append(o)},e.prototype.genSelfElem=function(){return null},e}(q4),JQ=function(){function t(e,n,r){var o=this;r===void 0&&(r=!1),this.$elem=k('
    '),this.$button=k(''),this.disabled=!1,this.selectList=null;var i=n.tag,a=n.title,u=n.width,s=n.iconSvg,l=s===void 0?"":s,c=n.hotkey,f=c===void 0?"":c;if(i!=="select")throw new Error("Invalid tag '"+i+"', expected 'select'");var p=this.$button;u&&p.css("width",u+"px"),p.attr("data-menu-key",e),WB(p,l,a,f,r),this.$elem.append(p),this.menu=n,Cr(function(){return o.init()})}return t.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",function(n){n.preventDefault(),ar(e).hidePanelOrModal(),e.trigger()})},t.prototype.trigger=function(){var e=this,n=ar(this);if(!n.isDisabled()&&!this.disabled){var r=this.menu;if(this.selectList==null){this.selectList=new ZQ(n,r.selectPanelWidth);var o=this.selectList,i=r.getOptions(n);o.renderList(i),o.appendTo(this.$elem),o.show(),o.$elem.on("click","li",function(a){var u=a.target;if(u!=null){a.preventDefault();var s=k(u).attr("data-value");e.onChange(s)}})}else(o=this.selectList).isShow?o.hide():(i=r.getOptions(n),o.renderList(i),o.show())}},t.prototype.onChange=function(e){var n=ar(this),r=this.menu;r.exec&&r.exec(n,e)},t.prototype.setSelectedValue=function(){var e=ar(this),n=this.menu,r=n.getValue(e),o=function(u,s){for(var l=u.length,c="",f=0;f'),this.$container=k('
    '),this.$button=k('');var n=e.key,r=e.iconSvg,o=e.title,i=this.$elem,a=this.$button;if(r){var u=k(r);U4(u),a.append(u)}else a.text(o);a.attr("data-menu-key",n);var s=W4();a.append(s),i.append(a);var l=this.$container;i.append(l);var c=this.createObserver();this.observe(c)}return t.prototype.appendBarItem=function(e){var n=e.$elem;this.$container.append(n)},t.prototype.observe=function(e){var n=this.$container;e.observe(n[0],{childList:!0,subtree:!0,attributes:!0})},t.prototype.createObserver=function(){var e=this,n=this.$container,r=this.$button,o=new MutationObserver(function(){var i=n.find("button"),a=i.length;if(a!==0){var u=0;i.each(function(s){k(s).hasClass("disabled")&&u++}),o.disconnect(),u===a?r.addClass("disabled"):r.removeClass("disabled"),e.observe(o)}});return o},t}(),qB=new WeakMap;function ar(t){var e=qw.get(t);if(e==null)throw new Error("Can not get editor instance");return e}function KB(t,e,n){n===void 0&&(n=!1);var r=qB.get(e);if(r)return r;var o=e.tag;if(o==="button"){var i=e.showDropPanel,a=e.showModal;r=i?new KQ(t,e,n):a?new XQ(t,e,n):new GQ(t,e,n)}if(o==="select"&&(r=new JQ(t,e,n)),r==null)throw new Error("Invalid tag in menu "+JSON.stringify(e));return qB.set(e,r),r}function QQ(t,e){var n=t.selection;return n!=null&&!R.isCollapsed(n)&&!A.getSelectedElems(t).some(function(r){if(t.isVoid(r))return!0;var o=r.type;return!!["pre","code","table"].includes(o)||void 0})&&!!it.isText(e)}var ttt=function(){function t(){var e=this;this.$elem=k('
    '),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null,this.isShow=!1,this.changeHoverbarState=y9(function(){var n=e.isShow,r=e.getSelectedNodeAndMenuKeys()||{},o=r.node,i=o===void 0?null:o,a=r.menuKeys,u=a===void 0?[]:a;i!=null&&e.changeItemsState(),i&&ft.isElement(i)&&n&&e.isSamePath(i,e.prevSelectedNode)||(e.hideAndClean(),i!=null&&(e.registerItems(u),e.setPosition(i),e.show()),e.prevSelectedNode=i)},200),Cr(function(){var n=e.getEditorInstance(),r=e.$elem;r.on("mousedown",function(i){return i.preventDefault()},{passive:!1}),A.getTextarea(n).$textAreaContainer.append(r),n.on("change",e.changeHoverbarState);var o=e.hideAndClean.bind(e);n.on("scroll",o),n.on("fullScreen",o),n.on("unFullScreen",o)})}return t.prototype.getMenus=function(){return this.menus},t.prototype.hideAndClean=function(){var e=this.$elem;e.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],e.empty(),this.isShow=!1},t.prototype.checkPositionBottom=function(){var e=this.$elem,n=!1,r=window.innerHeight;r&&r>=360&&r-e[0].getBoundingClientRect().bottom<360&&(n=!0),n?e.addClass("w-e-bar-bottom"):e.removeClass("w-e-bar-bottom")},t.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},t.prototype.changeItemsState=function(){var e=this;Cr(function(){e.hoverbarItems.forEach(function(n){n.changeMenuState()})})},t.prototype.registerItems=function(e){var n=this,r=this.$elem;e.forEach(function(o){if(o!=="|")n.registerSingleItem(o);else{var i=UB();r.append(i)}})},t.prototype.registerSingleItem=function(e){var n=this.getEditorInstance(),r=this.menus,o=r[e];if(o==null){var i=Kf[e];if(i==null)throw new Error("Not found menu item factory by key '"+e+"'");if(typeof i!="function")throw new Error("Menu item factory (key='"+e+"') is not a function");o=i(),r[e]=o}var a=KB(e,o);this.hoverbarItems.push(a),qw.set(a,n),this.$elem.append(a.$elem)},t.prototype.setPosition=function(e){var n=this.getEditorInstance(),r=this.$elem;if(r.attr("style",""),ft.isElement(e)){var o=I4(n,e,"bar");return r.css(o),void L4(n,r)}if(it.isText(e))return o=N4(n),r.css(o),void L4(n,r);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},t.prototype.getSelectedNodeAndMenuKeys=function(){var e=this.getEditorInstance();if(e.selection==null)return null;var n=this.getHoverbarKeysConf(),r=null,o=[],i=function(u){var s=n[u],l=s.match,c=s.menuKeys,f=c===void 0?[]:c,p=l||function(g,v){return A.checkNodeType(v,u)},d=Wt(E.nodes(e,{match:function(g){return p(e,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}},t.prototype.getEditorInstance=function(){var e=Gw.get(this);if(e==null)throw new Error("Can not get editor instance");return e},t.prototype.getHoverbarKeysConf=function(){var e=this.getEditorInstance().getConfig().hoverbarKeys,n=e===void 0?{}:e,r=n.text;return r&&r.match==null&&(r.match=QQ),n},t.prototype.isSamePath=function(e,n){if(e==null||n==null)return!1;var r=A.findPath(null,e),o=A.findPath(null,n);return _.equals(r,o)},t.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},t}();function YB(t,e,n,r){if(Uf.set(t,e),ll.set(t,n),ft.isElement(t)){var o=t.children;if((o===void 0?[]:o).forEach(function(u,s){return YB(u,s,t,r)}),E.isVoid(r,t)){var i=Wt(Q.texts(t),1),a=Wt(i[0],1)[0];Uf.set(a,0),ll.set(a,t)}}}function ett(t){var e=t.selector,n=e===void 0?"":e,r=t.config,o=r===void 0?{}:r,i=t.content,a=t.html,u=t.plugins,s=u===void 0?[]:u,l=(y=>{var h=y,{apply:b}=h;return h.history={undos:[],redos:[]},h.redo=()=>{var{history:w}=h,{redos:D}=w;if(D.length>0){var S=D[D.length-1];ol.withoutSaving(h,()=>{E.withoutNormalizing(h,()=>{for(var x of S)h.apply(x)})}),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];ol.withoutSaving(h,()=>{E.withoutNormalizing(h,()=>{var x=S.map(Fi.inverse).reverse();for(var O of x)h.apply(O)})}),w.redos.push(S),w.undos.pop()}},h.apply=w=>{var{operations:D,history:S}=h,{undos:x}=S,O=x[x.length-1],T=O&&O[O.length-1],I=((W,G)=>!(!G||W.type!=="set_selection"||G.type!=="set_selection"))(w,T),M=ol.isSaving(h),z=ol.isMerging(h);if(M==null&&(M=((W,G)=>W.type!=="set_selection"||W.properties!=null&&W.newProperties!=null)(w)),M){if(z==null&&(z=O!=null&&(D.length!==0||((W,G)=>W.type==="set_selection"||!(!G||W.type!=="insert_text"||G.type!=="insert_text"||W.offset!==G.offset+G.text.length||!_.equals(W.path,G.path))||!(!G||W.type!=="remove_text"||G.type!=="remove_text"||W.offset+W.text.length!==G.offset||!_.equals(W.path,G.path)))(w,T)||I)),O&&z)I&&O.pop(),O.push(w);else{var Y=[w];x.push(Y)}for(;x.length>100;)x.shift();(W=>W.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(x){if(h.getConfig().maxLength){var O=A.getLeftLengthOfMaxLength(h);O<=0||(O0&&w.removeAllRanges(),b&&N.deselect(y)},h.move=function(b,w){w===void 0&&(w=!1),b&&(b<0||N.move(y,{distance:b,unit:"character",reverse:w}))},h.moveReverse=function(b){h.move(b,!0)},h.restoreSelection=function(){var b=Zw.get(h);b!=null&&(h.focus(),N.select(h,b))},h.getSelectionPosition=function(){return N4(h)},h.getNodePosition=function(b){return I4(h,b)},h.isSelectedAll=function(){var b=h.selection;if(b==null)return!1;var w=Wt(R.edges(b),2),D=w[0],S=w[1],x=Wt(E.edges(h,[]),2),O=x[0],T=x[1];return!(!Ft.equals(D,O)||!Ft.equals(S,T))},h.selectAll=function(){var b=E.start(h,[]),w=E.end(h,[]);N.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(x){h.getConfig().readOnly||w(x)},h.apply=function(x){var O,T,I,M,z,Y,W,G,K=[];switch(x.type){case"insert_text":case"remove_text":case"set_node":try{for(var ot=Sr(E.levels(h,{at:x.path})),ct=ot.next();!ct.done;ct=ot.next()){var lt=Wt(ct.value,2),ut=lt[0],B=lt[1],C=A.findKey(h,ut);K.push([B,C])}}catch(Mt){O={error:Mt}}finally{try{ct&&!ct.done&&(T=ot.return)&&T.call(ot)}finally{if(O)throw O.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var j=Sr(E.levels(h,{at:_.parent(x.path)})),H=j.next();!H.done;H=j.next()){var X=Wt(H.value,2);ut=X[0],B=X[1],C=A.findKey(h,ut),K.push([B,C])}}catch(Mt){I={error:Mt}}finally{try{H&&!H.done&&(M=j.return)&&M.call(j)}finally{if(I)throw I.error}}break;case"move_node":try{for(var U=Sr(E.levels(h,{at:_.common(_.parent(x.path),_.parent(x.newPath))})),at=U.next();!at.done;at=U.next()){var vt=Wt(at.value,2);ut=vt[0],B=vt[1],C=A.findKey(h,ut),K.push([B,C])}}catch(Mt){z={error:Mt}}finally{try{at&&!at.done&&(Y=U.return)&&Y.call(U)}finally{if(z)throw z.error}}}D(x);try{for(var mt=Sr(K),St=mt.next();!St.done;St=mt.next()){var q=Wt(St.value,2);B=q[0],C=q[1],ut=Wt(E.node(h,B),1)[0],Eg.set(ut,C)}}catch(Mt){W={error:Mt}}finally{try{St&&!St.done&&(G=mt.return)&&G.call(mt)}finally{if(W)throw W.error}}},h.deleteBackward=function(x){if(x!=="line")return S(x);if(y.selection&&R.isCollapsed(y.selection)){var O=E.above(y,{match:function(z){return E.isBlock(y,z)},at:y.selection});if(O){var T=Wt(O,2)[1],I=E.range(y,T,y.selection.anchor),M=function(z,Y){var W=E.range(z,R.end(Y)),G=Array.from(E.positions(z,{at:Y})),K=0,ot=G.length,ct=Math.floor(ot/2);if(cB(z,E.range(z,G[K]),W))return E.range(z,G[K],W);if(G.length<2)return E.range(z,G[G.length-1],W);for(;ct!==G.length&&ct!==K;)cB(z,E.range(z,G[ct]),W)?ot=ct:K=ct,ct=Math.floor((K+ot)/2);return E.range(z,G[ot],W)}(h,I);R.isCollapsed(M)||N.delete(y,{at:M})}}},h.onChange=function(){var x=h.selection;x!=null&&Zw.set(h,x),h.emit("change"),b()},h.handleTab=function(){h.insertText(" ")},h.getHtml=function(){var x=h.children;return(x===void 0?[]:x).map(function(O){return uB(O,h)}).join("")},h.getText=function(){var x=h.children;return(x===void 0?[]:x).map(function(O){return Q.string(O)}).join(` `)},h.getSelectionText=function(){var x=h.selection;return x==null?"":E.string(y,x)},h.getElemsByType=function(x,O){var T,I;O===void 0&&(O=!1);var M=[],z=E.nodes(h,{at:[],universal:!0});try{for(var Y=Sr(z),W=Y.next();!W.done;W=Y.next()){var G=Wt(W.value,1)[0];if(ft.isElement(G)&&(O?G.type.indexOf(x)>=0:G.type===x)){var K=sB(A.findKey(h,G).id);M.push(xr(xr({},G),{id:K}))}}}catch(ot){T={error:ot}}finally{try{W&&!W.done&&(I=Y.return)&&I.call(Y)}finally{if(T)throw T.error}}return M},h.getElemsByTypePrefix=function(x){return h.getElemsByType(x,!0)},h.isEmpty=function(){var x=h.children,O=x===void 0?[]:x;if(O.length>1)return!1;var T=O[0];if(T==null)return!0;if(ft.isElement(T)&&T.type==="paragraph"){var I=T.children,M=I===void 0?[]:I;if(M.length>1)return!1;var z=M[0];if(z==null||it.isText(z)&&z.text==="")return!0}return!1},h.clear=function(){N.delete(h,{at:{anchor:E.start(h,[]),focus:E.end(h,[])}}),h.children.length===0&&N.insertNodes(h,[{type:"paragraph",children:[{text:""}]}])},h.getParentNode=function(x){return A.getParentNode(h,x)},h.dangerouslyInsertHtml=function(x,O){if(x===void 0&&(x=""),O===void 0&&(O=!1),x){var T=document.createElement("div");T.innerHTML=x;var I=Array.from(T.childNodes);if(I=I.filter(function(W){var G=W.nodeType,K=W.nodeName;return G===wo.TEXT_NODE||G===wo.ELEMENT_NODE&&!SB.has(K.toLowerCase())}),I.length!==0){var M=h.selection;if(M!=null){var z=null;A.isSelectedEmptyParagraph(h)&&!O&&(z=[M.focus.path[0]]),T.setAttribute("hidden","true"),document.body.appendChild(T);var Y=0;I.forEach(function(W){var G=W.nodeType,K=W.nodeName,ot=W.textContent,ct=ot===void 0?"":ot;if(G!==wo.TEXT_NODE)if(K!=="BR"){var lt=W,ut=!1;if(fB.includes(K.toLowerCase()))ut=!0;else for(var B in Cg)if(lt.matches(B)){ut=!0;break}if(ut){var C=B4(k(lt),h);return Array.isArray(C)?(C.forEach(function(H){return CB(h,H)}),Y++):(CB(h,C),Y++),void(A.isSelectedVoidNode(h)&&h.move(1))}var j=window.getComputedStyle(lt).display;A.isSelectedEmptyParagraph(h)||j.indexOf("inline")<0&&h.insertBreak(),h.dangerouslyInsertHtml(lt.innerHTML,!0)}else h.insertText(` `);else{if(!ct||!ct.trim())return;h.insertNode({text:ct})}}),Y&&z&&A.isEmptyPath(h,z)&&N.removeNodes(h,{at:z}),T.remove()}}}},h.setHtml=function(x){x===void 0&&(x="");var O=h.isDisabled(),T=h.isFocused(),I=JSON.stringify(h.selection);h.enable(),h.focus(),h.clear();var M=EB(h,x);if(N.insertFragment(h,M),T||(h.deselect(),h.blur()),O&&(h.deselect(),h.disable()),h.isFocused())try{h.select(JSON.parse(I))}catch(z){h.select(E.start(h,[]))}},h}(function(y){var h=y;return h.getAllMenuKeys=function(){var b=[];for(var w in Kf)b.push(w);return b},h.getConfig=function(){var b=mk.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=hQ(LW());return h.id="wangEditor-"+DJ++,h.isDestroyed=!1,h.isFullScreen=!1,h.focus=function(b){if(A.toDOMNode(h,h).focus({preventScroll:!0}),Au.set(h,!0),b){var w=E.end(h,[]);N.select(h,w)}else{var D=Zw.get(h);D?N.select(h,D):N.select(h,E.start(h,[]))}},h.isFocused=function(){return!!Au.get(h)},h.blur=function(){A.toDOMNode(h,h).blur(),N.deselect(h),Au.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(),Vw.delete(h),Uw.delete(b);var w=A.getToolbar(h);w&&(w.destroy(),vg.delete(h),Ww.delete(w));var D=A.getHoverbar(h);D&&(D.destroy(),yg.delete(h),Gw.delete(D)),h.isDestroyed=!0,h.emit("destroyed")}},h.scrollToElem=function(b){if(!h.getConfig().scroll){var w="\u7F16\u8F91\u5668\u7981\u7528\u4E86 scroll \uFF0C\u7F16\u8F91\u5668\u5185\u5BB9\u65E0\u6CD5\u6EDA\u52A8\uFF0C\u8BF7\u81EA\u884C\u5B9E\u73B0\u8BE5\u529F\u80FD";return w+=` You has disabled editor scroll, please do this yourself`,void console.warn(w)}var D=k("#"+b);if(D.length!==0){var S=D[0];if(!A.hasDOMNode(h,S))return w="Element (found by id is '"+b+"') is not in editor DOM",w+=` \u901A\u8FC7 id '`+b+"' \u627E\u5230\u7684 element \u4E0D\u5728 editor DOM \u4E4B\u5185",void console.error(w,S);var x=A.getTextarea(h),O=x.$textAreaContainer,T=x.$scroll,I=D.offset().top,M=O.offset().top;T[0].scrollBy({top:I-M,behavior:"smooth"})}},h.showProgressBar=function(b){b<1||A.getTextarea(h).changeProgress(b)},h.hidePanelOrModal=function(){var b=Kw.get(h);b!=null&&b.forEach(function(w){return w.hide()})},h.enable=function(){h.getConfig().readOnly=!1,h.updateView()},h.disable=function(){h.getConfig().readOnly=!0,h.updateView()},h.isDisabled=function(){return h.getConfig().readOnly},h.toDOMNode=function(b){return A.toDOMNode(h,b)},h.fullScreen=function(){if(!h.isFullScreen){var b=null,w=A.getToolbar(h);w&&(b=w.$box);var D=A.getTextarea(h).$box.parent();if(b&&b.parent()[0]!==D[0])throw new Error(`Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent \u4E0D\u80FD\u8BBE\u7F6E\u5168\u5C4F\uFF0C\u56E0\u4E3A toolbar DOM \u7236\u8282\u70B9\u548C textarea DOM \u7236\u8282\u70B9\u4E0D\u4E00\u81F4`);D.addClass("w-e-full-screen-container");var 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 wB(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=m9(Fk),b={},w=y.MENU_CONF,D=w===void 0?{}:w;return n2(h,function(S,x){b[x]=xr(xr({},S),D[x]||{})}),delete y.MENU_CONF,xr({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:b,hoverbarKeys:{},customAlert:function(S,x){window.alert(x+`: `+S)}},y)}(o);mk.set(l,c);var f=c.hoverbarKeys,p=f===void 0?{}:f;if(s.forEach(function(y){l=y(l)}),a!=null&&(l.children=EB(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 WQ(n);Vw.set(l,d),Uw.set(d,l),d.changeViewState(),Cr(function(){var y=d.$scroll;y!=null&&y.height()<300&&console.warn(`\u7F16\u8F91\u533A\u57DF\u9AD8\u5EA6 < 300px \u8FD9\u53EF\u80FD\u4F1A\u5BFC\u81F4 modal hoverbar \u5B9A\u4F4D\u5F02\u5E38 Textarea height < 300px . This may be cause modal and hoverbar position error`,y)});var m=void 0;Object.keys(p).length>0&&(m=new ttt,Gw.set(m,l),yg.set(l,m)),l.on("change",function(){l.hidePanelOrModal()}),l.on("scroll",function(){l.hidePanelOrModal()})}else l.children.forEach(function(y,h){return YB(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)}),Cr(function(){return l.emit("created")}),l}var ntt=ig("splice"),rtt=Z.TypeError,ott=Math.max,itt=Math.min;xe({target:"Array",proto:!0,forced:!ntt},{splice:function(t,e){var n,r,o,i,a,u,s=zi(this),l=xu(s),c=nl(t,l),f=arguments.length;if(f===0?n=r=0:f===1?(n=0,r=l-c):(n=f-2,r=itt(ott(Bf(e),0),l-c)),l+n-r>9007199254740991)throw rtt("Maximum allowed length exceeded");for(o=vO(s,r),i=0;il-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'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=y9(function(){r.toolbarItems.forEach(function(a){a.changeMenuState()})},200),this.config=n;var o=k(e);if(o.length===0)throw new Error("Cannot find toolbar DOM by selector '"+e+"'");this.$box=o;var i=this.$toolbar;i.on("mousedown",function(a){return a.preventDefault()},{passive:!1}),o.append(i),Cr(function(){r.registerItems(),r.changeToolbarState(),r.getEditorInstance().on("change",r.changeToolbarState)})}return t.prototype.getMenus=function(){return this.menus},t.prototype.getConfig=function(){return this.config},t.prototype.registerItems=function(){var e=this,n="",r=this.$toolbar,o=this.config,i=o.toolbarKeys,a=i===void 0?[]:i,u=o.insertKeys,s=u===void 0?{index:0,keys:[]}:u,l=o.excludeKeys,c=l===void 0?[]:l,f=m9(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=UB();return r.append(v),void(n=m)}if(typeof m=="string")return e.registerSingleItem(m,e),void(n=m);e.registerGroup(m),n="group"})},t.prototype.registerGroup=function(e){var n=this,r=this.$toolbar,o=function(l){return new GB(l)}(e),i=e.menuKeys,a=i===void 0?[]:i,u=this.config.excludeKeys,s=u===void 0?[]:u;a.forEach(function(l){s.includes(l)||n.registerSingleItem(l,o)}),r.append(o.$elem)},t.prototype.registerSingleItem=function(e,n){var r=this.getEditorInstance(),o=n instanceof GB,i=this.menus,a=i[e];if(a==null){var u=Kf[e];if(u==null)throw new Error("Not found menu item factory by key '"+e+"'");if(typeof u!="function")throw new Error("Menu item factory (key='"+e+"') is not a function");a=u(),i[e]=a}else console.warn("Duplicated toolbar menu key '"+e+`' \u91CD\u590D\u6CE8\u518C\u4E86\u83DC\u5355\u680F menu '`+e+"'");var s=KB(e,a,o);this.toolbarItems.push(s),qw.set(s,r),o?n.appendBarItem(s):n.$toolbar.append(s.$elem)},t.prototype.getEditorInstance=function(){var e=Ww.get(this);if(e==null)throw new Error("Can not get editor instance");return e},t.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},t}(),utt=Qs.EXISTS,stt=Gr.f,XB=Function.prototype,ltt=pt(XB.toString),ZB=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,ctt=pt(ZB.exec);function JB(t){var e=t.server,n=e===void 0?"":e,r=t.fieldName,o=r===void 0?"":r,i=t.maxFileSize,a=i===void 0?10485760:i,u=t.maxNumberOfFiles,s=u===void 0?100:u,l=t.meta,c=l===void 0?{}:l,f=t.metaWithUrl,p=f!==void 0&&f,d=t.headers,m=d===void 0?{}:d,g=t.withCredentials,v=g!==void 0&&g,y=t.timeout,h=y===void 0?1e4:y,b=t.onBeforeUpload,w=b===void 0?function(Y){return Y}:b,D=t.onSuccess,S=D===void 0?function(Y,W){}:D,x=t.onError,O=x===void 0?function(Y,W,G){console.error(Y.name+" upload error",W,G)}:x,T=t.onProgress,I=T===void 0?function(Y){}:T;if(!n)throw new Error(`Cannot get upload server address \u6CA1\u6709\u914D\u7F6E\u4E0A\u4F20\u5730\u5740`);if(!o)throw new Error(`Cannot get fieldName \u6CA1\u6709\u914D\u7F6E fieldName`);var M=n;p&&(M=function(Y,W){var G=Wt(Y.split("#"),2),K=G[0],ot=G[1],ct=[];n2(W,function(ut,B){ct.push(B+"="+ut)});var lt=ct.join("&");return K=K.indexOf("?")>0?K+"&"+lt:K+"?"+lt,ot?K+"#"+ot:K}(M,c));var z=new yf({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(LY,{endpoint:M,headers:m,formData:!0,fieldName:o,bundle:!0,withCredentials:v,timeout:h});return z.on("upload-success",function(Y,W){var G=W.body,K=G===void 0?{}:G;try{S(Y,K)}catch(ot){console.error("wangEditor upload file - onSuccess error",ot)}z.removeFile(Y.id)}),z.on("progress",function(Y){Y<1||I(Y)}),z.on("upload-error",function(Y,W,G){try{O(Y,W,G)}catch(K){console.error("wangEditor upload file - onError error",K)}z.removeFile(Y.id)}),z.on("restriction-failed",function(Y,W){try{O(Y,W)}catch(G){console.error("wangEditor upload file - onError error",G)}z.removeFile(Y.id)}),z}function Gi(t){return Gi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gi(t)}function ftt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ke(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:{};ei(this,t),this.init(e,n)}return ni(t,[{key:"init",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=e||dtt,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r1?n-1:0),o=1;o-1?u.replace(/###/g,"."):u}function o(){return!t||typeof t=="string"}for(var i=typeof e!="string"?[].concat(e):e.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!t[a]&&n&&(t[a]=new n),t=Object.prototype.hasOwnProperty.call(t,a)?t[a]:{}}return o()?{}:{obj:t,k:r(i.shift())}}function eF(t,e,n){var r=Y4(t,e,Object);r.obj[r.k]=n}function Pg(t,e){var n=Y4(t,e),r=n.obj,o=n.k;if(r)return r[o]}function nF(t,e,n){var r=Pg(t,n);return r!==void 0?r:Pg(e,n)}function rF(t,e,n){for(var r in e)r!=="__proto__"&&r!=="constructor"&&(r in t?typeof t[r]=="string"||t[r]instanceof String||typeof e[r]=="string"||e[r]instanceof String?n&&(t[r]=e[r]):rF(t[r],e[r],n):t[r]=e[r]);return t}function Dl(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var htt={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function gtt(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,function(e){return htt[e]}):t}var jg=typeof window!="undefined"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function oF(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(t){if(t[e])return t[e];for(var r=e.split(n),o=t,i=0;ii+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?oF(s,l,n):void 0}o=o[r[i]]}return o}}var vtt=function(t){function e(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return ei(this,e),r=od(this,El(e).call(this)),jg&&qi.call(Tu(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 Tg(e,qi),ni(e,[{key:"addNamespaces",value:function(n){this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}},{key:"removeNamespaces",value:function(n){var r=this.options.ns.indexOf(n);r>-1&&this.options.ns.splice(r,1)}},{key:"getResource",value:function(n,r,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,u=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure,s=[n,r];o&&typeof o!="string"&&(s=s.concat(o)),o&&typeof o=="string"&&(s=s.concat(a?o.split(a):o)),n.indexOf(".")>-1&&(s=n.split("."));var l=Pg(this.data,s);return l||!u||typeof o!="string"?l:oF(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),eF(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=Pg(this.data,s)||{};i?rF(l,o,a):l=Ke({},l,o),eF(this.data,s,l),u.silent||this.emit("added",n,r,o)}},{key:"removeResourceBundle",value:function(n,r){this.hasResourceBundle(n,r)&&delete this.data[n][r],this.removeNamespaces(r),this.emit("removed",n,r)}},{key:"hasResourceBundle",value:function(n,r){return this.getResource(n,r)!==void 0}},{key:"getResourceBundle",value:function(n,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?Ke({},{},this.getResource(n,r)):this.getResource(n,r)}},{key:"getDataByLanguage",value:function(n){return this.data[n]}},{key:"toJSON",value:function(){return this.data}}]),e}(),iF={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,e,n,r,o){var i=this;return t.forEach(function(a){i.processors[a]&&(e=i.processors[a].process(e,n,r,o))}),e}},aF={},uF=function(t){function e(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return ei(this,e),r=od(this,El(e).call(this)),jg&&qi.call(Tu(r)),ptt(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,Tu(r)),r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.logger=ri.create("translator"),r}return Tg(e,qi),ni(e,[{key:"changeLanguage",value:function(n){n&&(this.language=n)}},{key:"exists",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(n==null)return!1;var o=this.resolve(n,r);return o&&o.res!==void 0}},{key:"extractFromKey",value:function(n,r){var o=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");var i=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,a=r.ns||this.options.defaultNS;if(o&&n.indexOf(o)>-1){var u=n.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:n,namespaces:a};var s=n.split(o);(o!==i||o===i&&this.options.ns.indexOf(s[0])>-1)&&(a=s.shift()),n=s.join(i)}return typeof a=="string"&&(a=[a]),{key:n,namespaces:a}}},{key:"translate",value:function(n,r,o){var i=this;if(Gi(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,Ke({},r,{ns:l})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(a){var x=h==="[object Array]",O=x?[]:{},T=x?y:v;for(var I in g)if(Object.prototype.hasOwnProperty.call(g,I)){var M="".concat(T).concat(a).concat(I);O[I]=this.translate(M,Ke({},r,{joinArrays:!1,ns:l})),O[I]===M&&(O[I]=g[I])}g=O}}else if(D&&typeof w=="string"&&h==="[object Array]")(g=g.join(w))&&(g=this.extendTranslation(g,n,r,o));else{var z=!1,Y=!1,W=r.count!==void 0&&typeof r.count!="string",G=e.hasDefaultValue(r),K=W?this.pluralResolver.getSuffix(f,r.count):"",ot=r["defaultValue".concat(K)]||r.defaultValue;!this.isValidLookup(g)&&G&&(z=!0,g=ot),this.isValidLookup(g)||(Y=!0,g=s);var ct=r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,lt=ct&&Y?void 0:g,ut=G&&ot!==g&&this.options.updateMissing;if(Y||z||ut){if(this.logger.log(ut?"updateKey":"missingKey",f,c,s,ut?ot:g),a){var B=this.resolve(s,Ke({},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 C=[],j=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&j&&j[0])for(var H=0;H1&&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,!aF["".concat(v[0],"-").concat(y)]&&s.utils&&s.utils.hasLoadedNamespace&&!s.utils.hasLoadedNamespace(u)&&(aF["".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}}]),e}();function X4(t){return t.charAt(0).toUpperCase()+t.slice(1)}var ytt=function(){function t(e){ei(this,t),this.options=e,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ri.create("languageUtils")}return ni(t,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var n=e.split("-");return n.length===2?null:(n.pop(),n[n.length-1].toLowerCase()==="x"?null:this.formatLanguageCode(n.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var n=e.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function(e){if(typeof e=="string"&&e.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],r=e.split("-");return this.options.lowerCaseLng?r=r.map(function(o){return o.toLowerCase()}):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=X4(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]=X4(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=X4(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",`function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it's usage asap.`),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var n,r=this;return e?(e.forEach(function(o){if(!n){var i=r.formatLanguageCode(o);r.options.supportedLngs&&!r.isSupportedCode(i)||(n=i)}}),!n&&this.options.supportedLngs&&e.forEach(function(o){if(!n){var i=r.getLanguagePartFromCode(o);if(r.isSupportedCode(i))return n=i;n=r.options.supportedLngs.find(function(a){if(a.indexOf(i)===0)return a})}}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n):null}},{key:"getFallbackCodes",value:function(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),typeof e=="string"&&(e=[e]),Object.prototype.toString.apply(e)==="[object Array]")return e;if(!n)return e.default||[];var r=e[n];return r||(r=e[this.getScriptPartFromCode(n)]),r||(r=e[this.formatLanguageCode(n)]),r||(r=e[this.getLanguagePartFromCode(n)]),r||(r=e.default),r||[]}},{key:"toResolveHierarchy",value:function(e,n){var r=this,o=this.getFallbackCodes(n||this.options.fallbackLng||[],e),i=[],a=function(u){u&&(r.isSupportedCode(u)?i.push(u):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(u)))};return typeof e=="string"&&e.indexOf("-")>-1?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(e))):typeof e=="string"&&a(this.formatLanguageCode(e)),o.forEach(function(u){i.indexOf(u)<0&&a(r.formatLanguageCode(u))}),i}}]),t}(),mtt=[{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}],btt={1:function(t){return Number(t>1)},2:function(t){return Number(t!=1)},3:function(t){return 0},4:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function(t){return Number(t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function(t){return Number(t==1?0:t>=2&&t<=4?1:2)},7:function(t){return Number(t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function(t){return Number(t==1?0:t==2?1:t!=8&&t!=11?2:3)},9:function(t){return Number(t>=2)},10:function(t){return Number(t==1?0:t==2?1:t<7?2:t<11?3:4)},11:function(t){return Number(t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3)},12:function(t){return Number(t%10!=1||t%100==11)},13:function(t){return Number(t!==0)},14:function(t){return Number(t==1?0:t==2?1:t==3?2:3)},15:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function(t){return Number(t%10==1&&t%100!=11?0:t!==0?1:2)},17:function(t){return Number(t==1||t%10==1&&t%100!=11?0:1)},18:function(t){return Number(t==0?0:t==1?1:2)},19:function(t){return Number(t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function(t){return Number(t==1?0:t==0||t%100>0&&t%100<20?1:2)},21:function(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function(t){return Number(t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3)}};function wtt(){var t={};return mtt.forEach(function(e){e.lngs.forEach(function(n){t[n]={numbers:e.nr,plurals:btt[e.fc]}})}),t}var Ett=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ei(this,t),this.languageUtils=e,this.options=n,this.logger=ri.create("pluralResolver"),this.rules=wtt()}return ni(t,[{key:"addRule",value:function(e,n){this.rules[e]=n}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var n=this.getRule(e);return n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,n){return this.getSuffixes(e).map(function(r){return n+r})}},{key:"getSuffixes",value:function(e){var n=this,r=this.getRule(e);return r?r.numbers.map(function(o){return n.getSuffix(e,o)}):[]}},{key:"getSuffix",value:function(e,n){var r=this,o=this.getRule(e);if(o){var i=o.noAbs?o.plurals(n):o.plurals(Math.abs(n)),a=o.numbers[i];this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var u=function(){return r.options.prepend&&a.toString()?r.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):u():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1?u():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),t}(),Dtt=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ei(this,t),this.logger=ri.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(n){return n},this.init(e)}return ni(t,[{key:"init",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var n=e.interpolation;this.escape=n.escape!==void 0?n.escape:gtt,this.escapeValue=n.escapeValue===void 0||n.escapeValue,this.useRawValueToEscape=n.useRawValueToEscape!==void 0&&n.useRawValueToEscape,this.prefix=n.prefix?Dl(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?Dl(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?Dl(n.nestingPrefix):n.nestingPrefixEscaped||Dl("$t("),this.nestingSuffix=n.nestingSuffix?Dl(n.nestingSuffix):n.nestingSuffixEscaped||Dl(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0&&n.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function(e,n,r,o){var i,a,u,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(g){return g.replace(/\$/g,"$$$$")}var f=function(g){if(g.indexOf(s.formatSeparator)<0){var v=nF(n,l,g);return s.alwaysFormat?s.format(v,void 0,r,Ke({},o,n,{interpolationkey:g})):v}var y=g.split(s.formatSeparator),h=y.shift().trim(),b=y.join(s.formatSeparator).trim();return s.format(nF(n,l,h),b,r,Ke({},o,n,{interpolationkey:h}))};this.resetRegExp();var p=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,d=o&&o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,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(e);){if((a=f(i[1].trim()))===void 0)if(typeof p=="function"){var v=p(e,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(e)),a=""}else typeof a=="string"||s.useRawValueToEscape||(a=tF(a));var y=g.safeValue(a);if(e=e.replace(i[0],y),d?(g.regex.lastIndex+=y.length,g.regex.lastIndex-=i[0].length):g.regex.lastIndex=0,++u>=s.maxReplaces)break}}),e}},{key:"nest",value:function(e,n){var r,o,i=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=Ke({},a);function s(p,d){var 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=Ke({},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(e);){var l=[],c=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){var f=r[1].split(this.formatSeparator).map(function(p){return p.trim()});r[1]=f.shift(),l=f,c=!0}if((o=n(s.call(this,r[1].trim(),u),u))&&r[0]===e&&typeof o!="string")return o;typeof o!="string"&&(o=tF(o)),o||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(e)),o=""),c&&(o=l.reduce(function(p,d){return i.format(p,d,a.lng,Ke({},a,{interpolationkey:r[1].trim()}))},o.trim())),e=e.replace(r[0],o),this.regexp.lastIndex=0}return e}}]),t}(),xtt=function(t){function e(n,r,o){var i,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return ei(this,e),i=od(this,El(e).call(this)),jg&&qi.call(Tu(i)),i.backend=n,i.store=r,i.services=o,i.languageUtils=o.languageUtils,i.options=a,i.logger=ri.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(o,a.backend,a),i}return Tg(e,qi),ni(e,[{key:"queueLoad",value:function(n,r,o,i){var a=this,u=[],s=[],l=[],c=[];return n.forEach(function(f){var p=!0;r.forEach(function(d){var 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=Y4(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,Ke({},u,{isUpdate:a})),n&&n[0]&&this.store.addResource(n[0],r,o,i))}}]),e}();function Stt(){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(t){var e={};if(Gi(t[1])==="object"&&(e=t[1]),typeof t[1]=="string"&&(e.defaultValue=t[1]),typeof t[2]=="string"&&(e.tDescription=t[2]),Gi(t[2])==="object"||Gi(t[3])==="object"){var n=t[3]||t[2];Object.keys(n).forEach(function(r){e[r]=n[r]})}return e},interpolation:{escapeValue:!0,format:function(t,e,n,r){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function sF(t){return typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.whitelist&&(t.whitelist&&t.whitelist.indexOf("cimode")<0&&(t.whitelist=t.whitelist.concat(["cimode"])),t.supportedLngs=t.whitelist),t.nonExplicitWhitelist&&(t.nonExplicitSupportedLngs=t.nonExplicitWhitelist),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function _g(){}var Ctt=function(t){function e(){var n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(ei(this,e),n=od(this,El(e).call(this)),jg&&qi.call(Tu(n)),n.options=sF(r),n.services={},n.logger=ri,n.modules={external:[]},o&&!n.isInitialized&&!r.isClone){if(!n.options.initImmediate)return n.init(r,o),od(n,Tu(n));setTimeout(function(){n.init(r,o)},0)}return n}return Tg(e,qi),ni(e,[{key:"init",value:function(){var n=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;function i(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=Ke({},Stt(),this.options,sF(r)),this.format=this.options.interpolation.format,o||(o=_g),!this.options.isClone){this.modules.logger?ri.init(i(this.modules.logger),this.options):ri.init(null,this.options);var a=new ytt(this.options);this.store=new vtt(this.options.resources,this.options);var u=this.services;u.logger=ri,u.resourceStore=this.store,u.languageUtils=a,u.pluralResolver=new Ett(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u.interpolator=new Dtt(this.options),u.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},u.backendConnector=new xtt(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;v1?m-1:0),v=1;v0&&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=id(),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]:_g,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=id();return n||(n=this.languages),r||(r=this.options.ns),o||(o=_g),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"&&iF.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=id();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(Gi(l)!=="object"){for(var f=arguments.length,p=new Array(f>2?f-2:0),d=2;d1&&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=id();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=id();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 e(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]:_g,i=Ke({},this.options,r,{isClone:!0}),a=new e(i),u=["store","services","language"];return u.forEach(function(s){a[s]=n[s]}),a.services=Ke({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new uF(a.services,a.options),a.translator.on("*",function(s){for(var l=arguments.length,c=new Array(l>1?l-1:0),f=1;fh;h++)if((u||h in g)&&(d=v(p=g[h],h,m),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:pF(w,p)}else switch(t){case 4:return!1;case 7:pF(w,p)}return i?-1:r||o?o:w}},jtt={forEach:Ki(0),map:Ki(1),filter:Ki(2),some:Ki(3),every:Ki(4),find:Ki(5),findIndex:Ki(6),filterReject:Ki(7)}.forEach,_tt=function(t,e){var n=[][t];return!!n&&un(function(){n.call(null,e||function(){throw 1},1)})}("forEach"),J4=_tt?[].forEach:function(t){return jtt(this,t,arguments.length>1?arguments[1]:void 0)},hF=function(t){if(t&&t.forEach!==J4)try{_n(t,"forEach",J4)}catch(e){t.forEach=J4}};for(var Q4 in r0)r0[Q4]&&hF(Dt[Q4]&&Dt[Q4].prototype);hF(rA),Un("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"}}),Un("zh-CN",{common:{ok:"\u786E\u5B9A",delete:"\u5220\u9664",enter:"\u56DE\u8F66"},blockQuote:{title:"\u5F15\u7528"},codeBlock:{title:"\u4EE3\u7801\u5757"},color:{color:"\u6587\u5B57\u989C\u8272",bgColor:"\u80CC\u666F\u8272",default:"\u9ED8\u8BA4\u989C\u8272",clear:"\u6E05\u9664\u80CC\u666F\u8272"},divider:{title:"\u5206\u5272\u7EBF"},emotion:{title:"\u8868\u60C5"},fontSize:{title:"\u5B57\u53F7",default:"\u9ED8\u8BA4\u5B57\u53F7"},fontFamily:{title:"\u5B57\u4F53",default:"\u9ED8\u8BA4\u5B57\u4F53"},fullScreen:{title:"\u5168\u5C4F"},header:{title:"\u6807\u9898",text:"\u6B63\u6587"},image:{netImage:"\u7F51\u7EDC\u56FE\u7247",delete:"\u5220\u9664\u56FE\u7247",edit:"\u7F16\u8F91\u56FE\u7247",viewLink:"\u67E5\u770B\u94FE\u63A5",src:"\u56FE\u7247\u5730\u5740",desc:"\u56FE\u7247\u63CF\u8FF0",link:"\u56FE\u7247\u94FE\u63A5"},indent:{decrease:"\u51CF\u5C11\u7F29\u8FDB",increase:"\u589E\u52A0\u7F29\u8FDB"},justify:{left:"\u5DE6\u5BF9\u9F50",right:"\u53F3\u5BF9\u9F50",center:"\u5C45\u4E2D\u5BF9\u9F50",justify:"\u4E24\u7AEF\u5BF9\u9F50"},lineHeight:{title:"\u884C\u9AD8",default:"\u9ED8\u8BA4\u884C\u9AD8"},link:{insert:"\u63D2\u5165\u94FE\u63A5",text:"\u94FE\u63A5\u6587\u672C",url:"\u94FE\u63A5\u5730\u5740",unLink:"\u53D6\u6D88\u94FE\u63A5",edit:"\u4FEE\u6539\u94FE\u63A5",view:"\u67E5\u770B\u94FE\u63A5"},textStyle:{bold:"\u7C97\u4F53",clear:"\u6E05\u9664\u683C\u5F0F",code:"\u884C\u5185\u4EE3\u7801",italic:"\u659C\u4F53",sub:"\u4E0B\u6807",sup:"\u4E0A\u6807",through:"\u5220\u9664\u7EBF",underline:"\u4E0B\u5212\u7EBF"},undo:{undo:"\u64A4\u9500",redo:"\u91CD\u505A"},todo:{todo:"\u5F85\u529E"}});var Ntt={type:"paragraph",renderElem:function(t,e,n){return bt("p",null,e)}},Ng=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof _t.g!="undefined"?_t.g:typeof self!="undefined"?self:{};function Ig(t){var e={exports:{}};return t(e,e.exports),e.exports}var Yi,Lg,Rg=function(t){return t&&t.Math==Math&&t},At=Rg(typeof globalThis=="object"&&globalThis)||Rg(typeof window=="object"&&window)||Rg(typeof self=="object"&&self)||Rg(typeof Ng=="object"&&Ng)||function(){return this}()||Function("return this")(),Ce=function(t){try{return!!t()}catch(e){return!0}},Xr=!Ce(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),ud=Function.prototype.call,Te=ud.bind?ud.bind(ud):function(){return ud.apply(ud,arguments)},gF={}.propertyIsEnumerable,vF=Object.getOwnPropertyDescriptor,Itt=vF&&!gF.call({1:2},1)?function(t){var e=vF(this,t);return!!e&&e.enumerable}:gF,yF={f:Itt},tE=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},mF=Function.prototype,eE=mF.bind,nE=mF.call,Ltt=eE&&eE.bind(nE),yt=eE?function(t){return t&&Ltt(nE,t)}:function(t){return t&&function(){return nE.apply(t,arguments)}},Rtt=yt({}.toString),Mtt=yt("".slice),Xi=function(t){return Mtt(Rtt(t),8,-1)},rE=At.Object,ztt=yt("".split),Mg=Ce(function(){return!rE("z").propertyIsEnumerable(0)})?function(t){return Xi(t)=="String"?ztt(t,""):rE(t)}:rE,$tt=At.TypeError,Or=function(t){if(t==null)throw $tt("Can't call method on "+t);return t},Sl=function(t){return Mg(Or(t))},vn=function(t){return typeof t=="function"},kr=function(t){return typeof t=="object"?t!==null:vn(t)},Htt=function(t){return vn(t)?t:void 0},sd=function(t,e){return arguments.length<2?Htt(At[t]):At[t]&&At[t][e]},bF=yt({}.isPrototypeOf),oE=sd("navigator","userAgent")||"",wF=At.process,EF=At.Deno,DF=wF&&wF.versions||EF&&EF.version,xF=DF&&DF.v8;xF&&(Lg=(Yi=xF.split("."))[0]>0&&Yi[0]<4?1:+(Yi[0]+Yi[1])),!Lg&&oE&&(!(Yi=oE.match(/Edge\/(\d+)/))||Yi[1]>=74)&&(Yi=oE.match(/Chrome\/(\d+)/))&&(Lg=+Yi[1]);var iE=Lg,aE=!!Object.getOwnPropertySymbols&&!Ce(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&iE&&iE<41}),uE=aE&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Vtt=At.Object,sE=uE?function(t){return typeof t=="symbol"}:function(t){var e=sd("Symbol");return vn(e)&&bF(e.prototype,Vtt(t))},Utt=At.String,SF=function(t){try{return Utt(t)}catch(e){return"Object"}},Wtt=At.TypeError,CF=function(t){if(vn(t))return t;throw Wtt(SF(t)+" is not a function")},zg=function(t,e){var n=t[e];return n==null?void 0:CF(n)},Gtt=At.TypeError,qtt=Object.defineProperty,lE=function(t,e){try{qtt(At,t,{value:e,configurable:!0,writable:!0})}catch(n){At[t]=e}return e},Zi=At["__core-js_shared__"]||lE("__core-js_shared__",{}),cE=Ig(function(t){(t.exports=function(e,n){return Zi[e]||(Zi[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),Ktt=At.Object,ld=function(t){return Ktt(Or(t))},Ytt=yt({}.hasOwnProperty),Br=Object.hasOwn||function(t,e){return Ytt(ld(t),e)},Xtt=0,Ztt=Math.random(),Jtt=yt(1 .toString),AF=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Jtt(++Xtt+Ztt,36)},cd=cE("wks"),Pu=At.Symbol,OF=Pu&&Pu.for,Qtt=uE?Pu:Pu&&Pu.withoutSetter||AF,ur=function(t){if(!Br(cd,t)||!aE&&typeof cd[t]!="string"){var e="Symbol."+t;aE&&Br(Pu,t)?cd[t]=Pu[t]:cd[t]=uE&&OF?OF(e):Qtt(e)}return cd[t]},tet=At.TypeError,eet=ur("toPrimitive"),fE=function(t){var e=function(n,r){if(!kr(n)||sE(n))return n;var o,i=zg(n,eet);if(i){if(r===void 0&&(r="default"),o=Te(i,n,r),!kr(o)||sE(o))return o;throw tet("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)&&!kr(l=Te(s,a))||vn(s=a.valueOf)&&!kr(l=Te(s,a))||u!=="string"&&vn(s=a.toString)&&!kr(l=Te(s,a)))return l;throw Gtt("Can't convert object to primitive value")}(n,r)}(t,"string");return sE(e)?e:e+""},dE=At.document,net=kr(dE)&&kr(dE.createElement),pE=function(t){return net?dE.createElement(t):{}},kF=!Xr&&!Ce(function(){return Object.defineProperty(pE("div"),"a",{get:function(){return 7}}).a!=7}),BF=Object.getOwnPropertyDescriptor,hE={f:Xr?BF:function(t,e){if(t=Sl(t),e=fE(e),kF)try{return BF(t,e)}catch(n){}if(Br(t,e))return tE(!Te(yF.f,t,e),t[e])}},ret=At.String,oet=At.TypeError,sr=function(t){if(kr(t))return t;throw oet(ret(t)+" is not an object")},iet=At.TypeError,FF=Object.defineProperty,Cl={f:Xr?FF:function(t,e,n){if(sr(t),e=fE(e),sr(n),kF)try{return FF(t,e,n)}catch(r){}if("get"in n||"set"in n)throw iet("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Al=Xr?function(t,e,n){return Cl.f(t,e,tE(1,n))}:function(t,e,n){return t[e]=n,t},aet=yt(Function.toString);vn(Zi.inspectSource)||(Zi.inspectSource=function(t){return aet(t)});var $g,fd,Hg,gE=Zi.inspectSource,TF=At.WeakMap,uet=vn(TF)&&/native code/.test(gE(TF)),PF=cE("keys"),jF=function(t){return PF[t]||(PF[t]=AF(t))},vE={},yE=At.TypeError,set=At.WeakMap;if(uet||Zi.state){var ju=Zi.state||(Zi.state=new set),cet=yt(ju.get),_F=yt(ju.has),fet=yt(ju.set);$g=function(t,e){if(_F(ju,t))throw new yE("Object already initialized");return e.facade=t,fet(ju,t,e),e},fd=function(t){return cet(ju,t)||{}},Hg=function(t){return _F(ju,t)}}else{var Ol=jF("state");vE[Ol]=!0,$g=function(t,e){if(Br(t,Ol))throw new yE("Object already initialized");return e.facade=t,Al(t,Ol,e),e},fd=function(t){return Br(t,Ol)?t[Ol]:{}},Hg=function(t){return Br(t,Ol)}}var mE={set:$g,get:fd,has:Hg,enforce:function(t){return Hg(t)?fd(t):$g(t,{})},getterFor:function(t){return function(e){var n;if(!kr(e)||(n=fd(e)).type!==t)throw yE("Incompatible receiver, "+t+" required");return n}}},NF=Function.prototype,det=Xr&&Object.getOwnPropertyDescriptor,bE=Br(NF,"name"),Vg={EXISTS:bE,PROPER:bE&&function(){}.name==="something",CONFIGURABLE:bE&&(!Xr||Xr&&det(NF,"name").configurable)},dd=Ig(function(t){var e=Vg.CONFIGURABLE,n=mE.get,r=mE.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;vn(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Br(u,"name")||e&&u.name!==d)&&Al(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==At?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Al(i,a,u)):f?i[a]=u:lE(a,u)})(Function.prototype,"toString",function(){return vn(this)&&n(this).source||gE(this)})}),pet=Math.ceil,het=Math.floor,kl=function(t){var e=+t;return e!=e||e===0?0:(e>0?het:pet)(e)},get=Math.max,vet=Math.min,pd=function(t,e){var n=kl(t);return n<0?get(n+e,0):vet(n,e)},yet=Math.min,hd=function(t){return t>0?yet(kl(t),9007199254740991):0},Ug=function(t){return hd(t.length)},IF=function(t){return function(e,n,r){var o,i=Sl(e),a=Ug(i),u=pd(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},LF={includes:IF(!0),indexOf:IF(!1)},met=LF.indexOf,RF=yt([].push),MF=function(t,e){var n,r=Sl(t),o=0,i=[];for(n in r)!Br(vE,n)&&Br(r,n)&&RF(i,n);for(;e.length>o;)Br(r,n=e[o++])&&(~met(i,n)||RF(i,n));return i},Wg=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],bet=Wg.concat("length","prototype"),wet={f:Object.getOwnPropertyNames||function(t){return MF(t,bet)}},zF={f:Object.getOwnPropertySymbols},Eet=yt([].concat),Det=sd("Reflect","ownKeys")||function(t){var e=wet.f(sr(t)),n=zF.f;return n?Eet(e,n(t)):e},xet=function(t,e){for(var n=Det(e),r=Cl.f,o=hE.f,i=0;ih;h++)if((u||h in g)&&(d=v(p=g[h],h,m),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:GF(w,p)}else switch(t){case 4:return!1;case 7:GF(w,p)}return i?-1:r||o?o:w}},qg={forEach:Ji(0),map:Ji(1),filter:Ji(2),some:Ji(3),every:Ji(4),find:Ji(5),findIndex:Ji(6),filterReject:Ji(7)},zet=ur("species"),SE=function(t){return iE>=51||!Ce(function(){var e=[];return(e.constructor={})[zet]=function(){return{foo:1}},e[t](Boolean).foo!==1})},$et=qg.filter;tn({target:"Array",proto:!0,forced:!SE("filter")},{filter:function(t){return $et(this,t,arguments.length>1?arguments[1]:void 0)}});var Het=wE?{}.toString:function(){return"[object "+EE(this)+"]"};wE||dd(Object.prototype,"toString",Het,{unsafe:!0});var Kg,Vet=At.String,Ae=function(t){if(EE(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Vet(t)},qF=function(){var t=sr(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},CE=At.RegExp,AE=Ce(function(){var t=CE("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),Uet=AE||Ce(function(){return!CE("a","y").sticky}),KF={BROKEN_CARET:AE||Ce(function(){var t=CE("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:Uet,UNSUPPORTED_Y:AE},Bl=Object.keys||function(t){return MF(t,Wg)},Wet=Xr?Object.defineProperties:function(t,e){sr(t);for(var n,r=Sl(e),o=Bl(e),i=o.length,a=0;i>a;)Cl.f(t,n=o[a++],r[n]);return t},Get=sd("document","documentElement"),YF=jF("IE_PROTO"),OE=function(){},XF=function(t){return""},ZF=function(t){t.write(XF("")),t.close();var e=t.parentWindow.Object;return t=null,e},Yg=function(){try{Kg=new ActiveXObject("htmlfile")}catch(r){}var t,e;Yg=typeof document!="undefined"?document.domain&&Kg?ZF(Kg):((e=pE("iframe")).style.display="none",Get.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(XF("document.F=Object")),t.close(),t.F):ZF(Kg);for(var n=Wg.length;n--;)delete Yg.prototype[Wg[n]];return Yg()};vE[YF]=!0;var JF,kE,QF=Object.create||function(t,e){var n;return t!==null?(OE.prototype=sr(t),n=new OE,OE.prototype=null,n[YF]=t):n=Yg(),e===void 0?n:Wet(n,e)},qet=At.RegExp,Ket=Ce(function(){var t=qet(".","s");return!(t.dotAll&&t.exec(` `)&&t.flags==="s")}),Yet=At.RegExp,Xet=Ce(function(){var t=Yet("(?
    b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$c")!=="bc"}),Zet=mE.get,Jet=cE("native-string-replace",String.prototype.replace),Xg=RegExp.prototype.exec,BE=Xg,Qet=yt("".charAt),tnt=yt("".indexOf),ent=yt("".replace),FE=yt("".slice),TE=(kE=/b*/g,Te(Xg,JF=/a/,"a"),Te(Xg,kE,"a"),JF.lastIndex!==0||kE.lastIndex!==0),tT=KF.BROKEN_CARET,PE=/()??/.exec("")[1]!==void 0;(TE||PE||tT||Ket||Xet)&&(BE=function(t){var e,n,r,o,i,a,u,s=this,l=Zet(s),c=Ae(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Te(BE,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=tT&&s.sticky,m=Te(qF,s),g=s.source,v=0,y=c;if(d&&(m=ent(m,"y",""),tnt(m,"g")===-1&&(m+="g"),y=FE(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Qet(c,s.lastIndex-1)!==` `)&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",m)),PE&&(n=new RegExp("^"+g+"$(?!\\s)",m)),TE&&(r=s.lastIndex),o=Te(Xg,d?n:s,y),d?o?(o.input=FE(o.input,v),o[0]=FE(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:TE&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),PE&&o&&o.length>1&&Te(Jet,o[0],n,function(){for(i=1;i=u?t?"":void 0:(r=oT(i,a))<55296||r>56319||a+1===u||(o=oT(i,a+1))<56320||o>57343?t?ont(i,a):r:t?int(i,a,a+2):o-56320+(r-55296<<10)+65536}},ant=(iT(!1),iT(!0)),IE=function(t,e,n){return e+(n?ant(t,e).length:1)},unt=Math.floor,LE=yt("".charAt),snt=yt("".replace),RE=yt("".slice),lnt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,cnt=/\$([$&'`]|\d{1,2})/g,fnt=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=cnt;return o!==void 0&&(o=ld(o),s=lnt),snt(i,s,function(l,c){var f;switch(LE(c,0)){case"$":return"$";case"&":return t;case"`":return RE(e,0,n);case"'":return RE(e,a);case"<":f=o[RE(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=unt(p/10);return d===0?l:d<=u?r[d-1]===void 0?LE(c,1):r[d-1]+LE(c,1):l}f=r[p-1]}return f===void 0?"":f})},dnt=At.TypeError,md=function(t,e){var n=t.exec;if(vn(n)){var r=Te(n,t,e);return r!==null&&sr(r),r}if(Xi(t)==="RegExp")return Te(yd,t,e);throw dnt("RegExp#exec called on incompatible receiver")},ME=ur("replace"),pnt=Math.max,hnt=Math.min,gnt=yt([].concat),zE=yt([].push),aT=yt("".indexOf),uT=yt("".slice),vnt="a".replace(/./,"$0")==="$0",sT=!!/./[ME]&&/./[ME]("a","$0")==="";NE("replace",function(t,e,n){var r=sT?"$":"$0";return[function(o,i){var a=Or(this),u=o==null?void 0:zg(o,ME);return u?Te(u,o,a,i):Te(e,Ae(a),o,i)},function(o,i){var a=sr(this),u=Ae(o);if(typeof i=="string"&&aT(i,r)===-1&&aT(i,"$<")===-1){var s=n(e,a,u,i);if(s.done)return s.value}var l=vn(i);l||(i=Ae(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var p=[];;){var d=md(a,u);if(d===null||(zE(p,d),!c))break;Ae(d[0])===""&&(a.lastIndex=IE(u,hd(a.lastIndex),f))}for(var m,g="",v=0,y=0;y=v&&(g+=uT(u,v,b)+O,v=b+h.length)}return g+uT(u,v)}]},!!Ce(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$")!=="7"})||!vnt||sT);var $E=ur("unscopables"),HE=Array.prototype;HE[$E]==null&&Cl.f(HE,$E,{configurable:!0,value:QF(null)});var lT=function(t){HE[$E][t]=!0},ynt=qg.find,cT=!0;"find"in[]&&Array(1).find(function(){cT=!1}),tn({target:"Array",proto:!0,forced:cT},{find:function(t){return ynt(this,t,arguments.length>1?arguments[1]:void 0)}}),lT("find");var mnt=ur("match"),fT=function(t){var e;return kr(t)&&((e=t[mnt])!==void 0?!!e:Xi(t)=="RegExp")},bnt=At.TypeError,wnt=ur("species"),dT=function(t,e,n){var r=fE(e);r in t?Cl.f(t,r,tE(0,n)):t[r]=n},Ent=At.Array,Dnt=Math.max,pT=function(t,e,n){for(var r=Ug(t),o=pd(e,r),i=pd(n===void 0?r:n,r),a=Ent(Dnt(i-o,0)),u=0;o1||"".split(/.?/).length?function(o,i){var a=Ae(Or(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[a];if(!fT(o))return Te(e,a,o,u);for(var s,l,c,f=[],p=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),d=0,m=new RegExp(o.source,p+"g");(s=Te(yd,m,a))&&!((l=m.lastIndex)>d&&(Tl(f,bd(a,d,s.index)),s.length>1&&s.index=u));)m.lastIndex===s.index&&m.lastIndex++;return d===a.length?!c&&Snt(m,"")||Tl(f,""):Tl(f,bd(a,d)),f.length>u?pT(f,0,u):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Te(e,this,o,i)}:e,[function(o,i){var a=Or(this),u=o==null?void 0:zg(o,t);return u?Te(u,o,a,i):Te(r,Ae(a),o,i)},function(o,i){var a=sr(this),u=Ae(o),s=n(r,a,u,i,r!==e);if(s.done)return s.value;var l=function(w,D){var S,x=sr(w).constructor;return x===void 0||(S=sr(x)[wnt])==null?D:function(O){if(xE(O))return O;throw bnt(SF(O)+" is not a constructor")}(S)}(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Fl?"g":"y"),p=new l(Fl?"^(?:"+a.source+")":a,f),d=i===void 0?4294967295:i>>>0;if(d===0)return[];if(u.length===0)return md(p,u)===null?[u]:[];for(var m=0,g=0,v=[];g"+t+"").children().filter(function(e){return e.tagName!=="BR"}).length===0}function Pl(t){return t.length===0?"":t[0].outerHTML}function jl(t){return t.length?t[0].tagName.toLowerCase():""}function Zr(t,e){for(var n="",r=(t.attr("style")||"").split(";"),o=r.length,i=0;i0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function qt(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function yT(t){var e=qt(E.nodes(t,{match:function(i){return t.children[0]===i},mode:"highest"}),1)[0];if(e==null)return!1;var n=e[0];if(!ft.isElement(n)||n.type==="paragraph"||Q.string(n)!=="")return!1;var r=n.children,o=r===void 0?[]:r;return!!it.isText(o[0])&&(N.setNodes(t,{type:"paragraph"}),!0)}var Tnt={renderElems:[Ntt],elemsToHtml:[{type:"paragraph",elemToHtml:function(t,e){return e===""?"


    ":"

    "+e+"

    "}}],parseElemsHtml:[Fnt],editorPlugin:function(t){var e=t.deleteBackward,n=t.deleteForward;t.insertText,t.insertBreak;var r=t;return r.deleteBackward=function(o){yT(r)||e(o)},r.deleteForward=function(o){yT(r)||n(o)},r}},Pnt=/"/g,jnt=yt("".replace),wd=function(t,e,n,r){var o=Ae(Or(t)),i="<"+e;return n!==""&&(i+=" "+n+'="'+jnt(Ae(r),Pnt,""")+'"'),i+">"+o+""},Ed=function(t){return Ce(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})};function qE(t,e){var n=e,r=t,o=r.bold,i=r.italic,a=r.underline;return o&&(n=""+n+""),r.code&&(n=""+n+""),i&&(n=""+n+""),a&&(n=""+n+""),r.through&&(n=""+n+""),r.sub&&(n=""+n+""),r.sup&&(n=""+n+""),n}function _u(t,e){return t.length!==0&&(!!t[0].matches(e)||t.find(e).length>0)}tn({target:"String",proto:!0,forced:Ed("bold")},{bold:function(){return wd(this,"b","","")}}),tn({target:"String",proto:!0,forced:Ed("italics")},{italics:function(){return wd(this,"i","","")}}),tn({target:"String",proto:!0,forced:Ed("sub")},{sub:function(){return wd(this,"sub","","")}}),tn({target:"String",proto:!0,forced:Ed("sup")},{sup:function(){return wd(this,"sup","","")}});var mT={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},KE=pE("span").classList,bT=KE&&KE.constructor&&KE.constructor.prototype,_nt=bT===Object.prototype?void 0:bT,wT=function(t,e){var n=[][t];return!!n&&Ce(function(){n.call(null,e||function(){throw 1},1)})},Nnt=qg.forEach,YE=wT("forEach")?[].forEach:function(t){return Nnt(this,t,arguments.length>1?arguments[1]:void 0)},ET=function(t){if(t&&t.forEach!==YE)try{Al(t,"forEach",YE)}catch(e){t.forEach=YE}};for(var XE in mT)mT[XE]&&ET(At[XE]&&At[XE].prototype);function DT(t,e){return t.selection==null||!!qt(E.nodes(t,{match:function(n){return A.getNodeType(n)==="pre"||!!E.isVoid(t,n)},universal:!0}),1)[0]}function Int(t,e){Object.keys(e).forEach(function(n){n!=="text"&&E.removeMark(t,n)})}ET(_nt),tn({target:"Object",stat:!0,forced:Ce(function(){Bl(1)})},{keys:function(t){return Bl(ld(t))}});var Nu=function(){function t(){this.marksNeedToRemove=[],this.tag="button"}return t.prototype.getValue=function(e){var n=this.mark,r=E.marks(e);return r?r[n]:!!qt(E.nodes(e,{match:function(o){return o[n]===!0}}),1)[0]},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){return DT(e,this.mark)},t.prototype.exec=function(e,n){var r=this.mark,o=this.marksNeedToRemove;n?e.removeMark(r):(e.addMark(r,!0),o&&o.forEach(function(i){return e.removeMark(i)}))},t}(),Lnt='',Rnt='',Mnt='',znt='',$nt='',xT='',ST='',Hnt='',Vnt='',Unt='',Wnt='',Gnt='',qnt='',Knt='',Ynt='',Xnt='',Znt='',Jnt='',Qnt='',trt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="bold",n.title=tt("textStyle.bold"),n.iconSvg=Lnt,n.hotkey="mod+b",n}return we(e,t),e}(Nu),ert=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="code",n.title=tt("textStyle.code"),n.iconSvg=$nt,n.hotkey="mod+e",n}return we(e,t),e}(Nu),nrt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="italic",n.title=tt("textStyle.italic"),n.iconSvg=Mnt,n.hotkey="mod+i",n}return we(e,t),e}(Nu),rrt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="through",n.title=tt("textStyle.through"),n.iconSvg=znt,n.hotkey="mod+shift+x",n}return we(e,t),e}(Nu),ort=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="underline",n.title=tt("textStyle.underline"),n.iconSvg=Rnt,n.hotkey="mod+u",n}return we(e,t),e}(Nu),irt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="sub",n.marksNeedToRemove=["sup"],n.title=tt("textStyle.sub"),n.iconSvg=Qnt,n.hotkey="",n}return we(e,t),e}(Nu),art=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="sup",n.marksNeedToRemove=["sub"],n.title=tt("textStyle.sup"),n.iconSvg=Jnt,n.hotkey="",n}return we(e,t),e}(Nu),urt=function(){function t(){this.title=tt("textStyle.clear"),this.iconSvg='',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return DT(e)},t.prototype.exec=function(e,n){var r,o,i=E.nodes(e,{match:function(s){return it.isText(s)},universal:!0});try{for(var a=vT(i),u=a.next();!u.done;u=a.next())Int(e,u.value[0])}catch(s){r={error:s}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}},t}(),srt={renderStyle:function(t,e){var n=t,r=n.bold,o=n.italic,i=n.underline,a=n.code,u=n.through,s=n.sub,l=n.sup,c=e;return r&&(c=bt("strong",null,c)),a&&(c=bt("code",null,c)),o&&(c=bt("em",null,c)),i&&(c=bt("u",null,c)),u&&(c=bt("s",null,c)),s&&(c=bt("sub",null,c)),l&&(c=bt("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new trt}},{key:"underline",factory:function(){return new ort}},{key:"italic",factory:function(){return new nrt}},{key:"through",factory:function(){return new rrt}},{key:"code",factory:function(){return new ert}},{key:"sub",factory:function(){return new irt}},{key:"sup",factory:function(){return new art}},{key:"clearStyle",factory:function(){return new urt}}],styleToHtml:function(t,e){if(!it.isText(t))return e;if(WE(e))return qE(t,e);var n=k(e);if(jl(n)==="br")return qE(t,"
    ");var r=n.html();return r=qE(t,r),n.html(r),Pl(n)},parseStyleHtml:function(t,e,n){var r=k(t);if(!it.isText(e))return e;var o=e;return _u(r,"b,strong")&&(o.bold=!0),_u(r,"i,em")&&(o.italic=!0),_u(r,"u")&&(o.underline=!0),_u(r,"s,strike")&&(o.through=!0),_u(r,"sub")&&(o.sub=!0),_u(r,"sup")&&(o.sup=!0),_u(r,"code")&&(o.code=!0),o}};function Dd(t){return function(e,n,r){return bt("h"+t,null,n)}}var lrt={type:"header1",renderElem:Dd(1)},crt={type:"header2",renderElem:Dd(2)},frt={type:"header3",renderElem:Dd(3)},drt={type:"header4",renderElem:Dd(4)},prt={type:"header5",renderElem:Dd(5)},hrt=Vg.PROPER,ZE=RegExp.prototype,CT=ZE.toString,grt=yt(qF),vrt=Ce(function(){return CT.call({source:"a",flags:"b"})!="/a/b"}),yrt=hrt&&CT.name!="toString";(vrt||yrt)&&dd(RegExp.prototype,"toString",function(){var t=sr(this),e=Ae(t.source),n=t.flags;return"/"+e+"/"+Ae(n===void 0&&bF(ZE,t)&&!("flags"in ZE)?grt(t):n)},{unsafe:!0});var JE,mrt=At.TypeError,AT=function(t){if(fT(t))throw mrt("The method doesn't accept regular expressions");return t},brt=ur("match"),OT=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[brt]=!1,"/./"[t](e)}catch(r){}}return!1},wrt=hE.f,kT=yt("".startsWith),Ert=yt("".slice),Drt=Math.min,BT=OT("startsWith");function FT(t){var e=qt(E.nodes(t,{match:function(o){return A.getNodeType(o).startsWith("header")},universal:!0}),1),n=e[0];if(n==null)return"paragraph";var r=qt(n,1)[0];return A.getNodeType(r)}function TT(t){return t.selection==null||!qt(E.nodes(t,{match:function(e){var n=A.getNodeType(e);return n==="paragraph"||!!n.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function PT(t,e){e&&N.setNodes(t,{type:e})}tn({target:"String",proto:!0,forced:!(!BT&&(JE=wrt(String.prototype,"startsWith"),JE&&!JE.writable)||BT)},{startsWith:function(t){var e=Ae(Or(this));AT(t);var n=hd(Drt(arguments.length>1?arguments[1]:void 0,e.length)),r=Ae(t);return kT?kT(e,r,n):Ert(e,n,n+r.length)===r}});var xrt=function(){function t(){this.title=tt("header.title"),this.iconSvg='',this.tag="select",this.width=60}return t.prototype.getOptions=function(e){var n=[{value:"header1",text:"H1",styleForRenderMenuList:{"font-size":"32px","font-weight":"bold"}},{value:"header2",text:"H2",styleForRenderMenuList:{"font-size":"24px","font-weight":"bold"}},{value:"header3",text:"H3",styleForRenderMenuList:{"font-size":"18px","font-weight":"bold"}},{value:"header4",text:"H4",styleForRenderMenuList:{"font-size":"16px","font-weight":"bold"}},{value:"header5",text:"H5",styleForRenderMenuList:{"font-size":"13px","font-weight":"bold"}},{value:"paragraph",text:tt("header.text")}],r=this.getValue(e).toString();return n.forEach(function(o){o.value===r?o.selected=!0:delete o.selected}),n},t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){return FT(e)},t.prototype.isDisabled=function(e){return TT(e)},t.prototype.exec=function(e,n){PT(e,n.toString())},t}(),xd=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){return FT(e)},t.prototype.isActive=function(e){return this.getValue(e)===this.type},t.prototype.isDisabled=function(e){return TT(e)},t.prototype.exec=function(e,n){var r=this.type;PT(e,n===r?"paragraph":r)},t}(),Srt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H1",n.type="header1",n}return we(e,t),e}(xd),Crt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H2",n.type="header2",n}return we(e,t),e}(xd),Art=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H3",n.type="header3",n}return we(e,t),e}(xd),Ort=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H4",n.type="header4",n}return we(e,t),e}(xd),krt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H5",n.type="header5",n}return we(e,t),e}(xd),Brt={key:"headerSelect",factory:function(){return new xrt}},Frt={key:"header1",factory:function(){return new Srt}},Trt={key:"header2",factory:function(){return new Crt}},Prt={key:"header3",factory:function(){return new Art}},jrt={key:"header4",factory:function(){return new Ort}},_rt={key:"header5",factory:function(){return new krt}};function Sd(t){return function(e,n){return""+n+""}}function Cd(t){return function(e,n,r){var o=k(e);return(n=n.filter(function(i){return!!it.isText(i)||!!r.isInline(i)})).length===0&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+t,children:n}}}var Nrt={renderElems:[lrt,crt,frt,drt,prt],elemsToHtml:[{type:"header1",elemToHtml:Sd(1)},{type:"header2",elemToHtml:Sd(2)},{type:"header3",elemToHtml:Sd(3)},{type:"header4",elemToHtml:Sd(4)},{type:"header5",elemToHtml:Sd(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:Cd(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:Cd(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:Cd(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:Cd(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:Cd(5)}],menus:[Brt,Frt,Trt,Prt,jrt,_rt],editorPlugin:function(t){var e=t.insertBreak;t.insertNode;var n=t;return n.insertBreak=function(){var r=qt(E.nodes(n,{match:function(o){return A.getNodeType(o).startsWith("header")},universal:!0}),1)[0];r&&A.isSelectionAtLineEnd(t,r[1])?N.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):e()},n}},_l=Object.assign,jT=Object.defineProperty,Irt=yt([].concat),_T=!_l||Ce(function(){if(Xr&&_l({b:1},_l(jT({},"a",{enumerable:!0,get:function(){jT(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(o){e[o]=o}),_l({},t)[n]!=7||Bl(_l({},e)).join("")!=r})?function(t,e){for(var n=ld(t),r=arguments.length,o=1,i=zF.f,a=yF.f;r>o;)for(var u,s=Mg(arguments[o++]),l=i?Irt(Bl(s),i(s)):Bl(s),c=l.length,f=0;c>f;)u=l[f++],Xr&&!Te(a,s,u)||(n[u]=s[u]);return n}:_l;function Iu(t,e){t.data==null&&(t.data={});var n=t.data;n.style==null&&(n.style={}),Object.assign(n.style,e)}tn({target:"Object",stat:!0,forced:Object.assign!==_T},{assign:_T});var Lrt={selector:"font",preParseHtml:function(t){var e=k(t);if(jl(e)!=="font")return t;var n=e.attr("color")||"";return n&&(e.removeAttr("color"),e.css("color",n)),e[0]}},NT=function(){function t(){this.tag="button",this.showDropPanel=!0,this.$content=null}return t.prototype.exec=function(e,n){},t.prototype.getValue=function(e){var n=this.mark,r=E.marks(e);return r&&r[n]?r[n]:""},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){return e.selection==null||!!qt(E.nodes(e,{match:function(n){return A.getNodeType(n)==="pre"||!!E.isVoid(e,n)},universal:!0}),1)[0]},t.prototype.getPanelContentElem=function(e){var n=this.mark;if(this.$content==null){var r=k('
      ');r.on("click","li",function(l){var c=l.target;if(c!=null&&(l.preventDefault(),e.selection!=null)){var f=k(c).attr("data-value");f==="0"?E.removeMark(e,n):E.addMark(e,n,f)}}),this.$content=r}var o=this.$content;if(o==null)return document.createElement("ul");o.empty();var i=this.getValue(e),a=e.getMenuConfig(n).colors;(a===void 0?[]:a).forEach(function(l){var c=k('
      ');c.css("background-color",l);var f=k('
    • ');i===l&&f.addClass("active"),f.append(c),o.append(f)});var u="";n==="color"&&(u=tt("color.default")),n==="bgColor"&&(u=tt("color.clear"));var s=k(`
    • `+u+`
    • `);return o.prepend(s),o[0]},t}(),Rrt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("color.color"),n.iconSvg=Hnt,n.mark="color",n}return we(e,t),e}(NT),Mrt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("color.bgColor"),n.iconSvg=Vnt,n.mark="bgColor",n}return we(e,t),e}(NT),IT=["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)"],zrt={renderStyle:function(t,e){var n=t,r=n.color,o=n.bgColor,i=e;return r&&Iu(i,{color:r}),o&&Iu(i,{backgroundColor:o}),i},styleToHtml:function(t,e){if(!it.isText(t))return e;var n,r=t,o=r.color,i=r.bgColor;return o||i?((WE(e)||jl(n=k(e))!=="span")&&(n=k(""+e+"")),o&&n.css("color",o),i&&n.css("background-color",i),Pl(n)):e},preParseHtml:[Lrt],parseStyleHtml:function(t,e,n){var r=k(t);if(!it.isText(e))return e;var o=e,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 Rrt},config:{colors:IT}},{key:"bgColor",factory:function(){return new Mrt},config:{colors:IT}}]},$rt=/^(?:\w+:)?\/\/(\S+)$/,Hrt=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,Vrt=/^[^\s\.]+\.\S{2,}$/,Urt=LF.includes;function Jg(t){return t===void 0&&(t="r"),t+"-"+M7()}function QE(t){return t.replace(//g,">")}function LT(t,e,n,r){return ta(this,void 0,void 0,function(){var o,i;return ea(this,function(a){switch(a.label){case 0:return(o=e.getMenuConfig(t).checkLink)?[4,o(n,r)]:[3,2];case 1:if(typeof(i=a.sent())=="string")return e.alert(i,"error"),[2,!1];if(i==null)return[2,!1];a.label=2;case 2:return[2,!0]}})})}function RT(t,e,n){return ta(this,void 0,void 0,function(){var r;return ea(this,function(o){switch(o.label){case 0:return(r=e.getMenuConfig(t).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}})})}function t6(t){return t.selection==null||!!A.getSelectedElems(t).some(function(e){var n=e.type;return!!t.isVoid(e)||!!["pre","code","link"].includes(n)||void 0})}function e6(t,e){return{type:"link",url:QE(t),children:e?[{text:e}]:[]}}function MT(t,e,n){return ta(this,void 0,void 0,function(){var r,o,i;return ea(this,function(a){switch(a.label){case 0:return n?(e||(e=n),t.restoreSelection(),t6(t)?[2]:[4,LT("insertLink",t,e,n)]):[2];case 1:return a.sent()?[4,RT("insertLink",t,n)]:[2];case 2:return r=a.sent(),(o=t.selection)==null||(R.isCollapsed(o)?(t.insertText(" "),i=e6(r,e),N.insertNodes(t,i),t.insertFragment([{text:" "}])):E.string(t,o)!==e?(t.deleteFragment(),i=e6(r,e),N.insertNodes(t,i)):(i=e6(r),N.wrapNodes(t,i,{split:!0}),N.collapse(t,{edge:"end"}))),[2]}})})}tn({target:"Array",proto:!0},{includes:function(t){return Urt(this,t,arguments.length>1?arguments[1]:void 0)}}),lT("includes");var Wrt={type:"link",renderElem:function(t,e,n){var r=t,o=r.url,i=r.target;return bt("a",{href:o,target:i===void 0?"_blank":i},e)}},Grt={selector:"a:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=k(t);return(e=e.filter(function(o){return!!it.isText(o)||!!n.isInline(o)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]),{type:"link",url:r.attr("href")||"",target:r.attr("target")||"",children:e}}};function n6(){return Jg("w-e-insert-link")}var qrt=function(){function t(){this.title=tt("link.insert"),this.iconSvg='',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textInputId=n6(),this.urlInputId=n6(),this.buttonId=n6()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){return t6(e)},t.prototype.getModalPositionNode=function(e){return null},t.prototype.getModalContentElem=function(e){var n=e.selection,r=this,o=r.textInputId,i=r.urlInputId,a=r.buttonId,u=qt(ir(tt("link.text"),o),2),s=u[0],l=k(u[1]),c=qt(ir(tt("link.url"),i),2),f=c[0],p=k(c[1]),d=qt(wl(a,tt("common.ok")),1)[0];if(this.$content==null){var m=k("
      ");m.on("click","#"+a,function(y){y.preventDefault();var h=m.find("#"+o).val(),b=m.find("#"+i).val();MT(e,h,b),e.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(e,n);l.val(v)}return p.val(""),setTimeout(function(){l.focus()}),g[0]},t}();function zT(){return Jg("w-e-update-link")}var Krt=function(){function t(){this.title=tt("link.edit"),this.iconSvg=xT,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=zT(),this.buttonId=zT()}return t.prototype.getSelectedLinkElem=function(e){var n=A.getSelectedNodeByType(e,"link");return n==null?null:n},t.prototype.getValue=function(e){var n=this.getSelectedLinkElem(e);return n&&n.url||""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedLinkElem(e)==null},t.prototype.getModalPositionNode=function(e){return A.getSelectedNodeByType(e,"link")},t.prototype.getModalContentElem=function(e){var n=this.urlInputId,r=this.buttonId,o=qt(ir(tt("link.url"),n),2),i=o[0],a=k(o[1]),u=qt(wl(r,tt("common.ok")),1)[0];if(this.$content==null){var s=k("
      ");s.on("click","button",function(f){f.preventDefault(),e.restoreSelection();var p=A.getSelectedNodeByType(e,"link"),d=p?Q.string(p):"",m=s.find("#"+n).val();(function(g,v,y){ta(this,void 0,void 0,function(){var h,b;return ea(this,function(w){switch(w.label){case 0:return y?[4,LT("editLink",g,v,y)]:[2];case 1:return w.sent()?[4,RT("editLink",g,y)]:[2];case 2:return h=w.sent(),b={url:QE(h)},N.setNodes(g,b,{match:function(D){return A.checkNodeType(D,"link")}}),[2]}})})})(e,d,m),e.hidePanelOrModal()}),this.$content=s}var l=this.$content;l.empty(),l.append(i),l.append(u);var c=this.getValue(e);return a.val(c),setTimeout(function(){a.focus()}),l[0]},t}(),Yrt=function(){function t(){this.title=tt("link.unLink"),this.iconSvg='',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||A.getSelectedNodeByType(e,"link")==null},t.prototype.exec=function(e,n){this.isDisabled(e)||N.unwrapNodes(e,{match:function(r){return A.checkNodeType(r,"link")}})},t}(),Xrt=function(){function t(){this.title=tt("link.view"),this.iconSvg=ST,this.tag="button"}return t.prototype.getSelectedLinkElem=function(e){var n=A.getSelectedNodeByType(e,"link");return n==null?null:n},t.prototype.getValue=function(e){var n=this.getSelectedLinkElem(e);return n&&n.url||""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedLinkElem(e)==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){if(!n||typeof n!="string")throw new Error("View link failed, link url is '"+n+"'");window.open(n,"_blank")}},t}(),$T={checkLink:function(t,e){return!0},parseLinkUrl:function(t){return t}},Zrt={renderElems:[Wrt],elemsToHtml:[{type:"link",elemToHtml:function(t,e){var n=t,r=n.url,o=n.target;return'
      '+e+""}}],parseElemsHtml:[Grt],menus:[{key:"insertLink",factory:function(){return new qrt},config:$T},{key:"editLink",factory:function(){return new Krt},config:$T},{key:"unLink",factory:function(){return new Yrt}},{key:"viewLink",factory:function(){return new Xrt}}],editorPlugin:function(t){var e=t.isInline,n=t.insertData,r=t.normalizeNode;t.insertNode,t.insertText;var o=t;return o.isInline=function(i){return i.type==="link"||e(i)},o.insertData=function(i){var a=i.getData("text/plain");if(function(l){if(typeof l!="string")return!1;var c=l.match($rt);if(!c)return!1;var f=c[1];return!(!f||!Hrt.test(f)&&!Vrt.test(f))}(a)){if(!t6(o)){var u=o.selection;if(u!=null){var s=E.string(o,u);MT(o,s,a)}}}else n(i)},o.normalizeNode=function(i){var a=qt(i,2),u=a[0],s=a[1];return A.getNodeType(u)!=="link"?r([u,s]):Q.string(u)===""?N.removeNodes(o,{at:s}):r([u,s])},o}},Jrt=yt(1 .valueOf),Qrt=At.RangeError,tot=At.RangeError,HT=At.String,VT=Math.floor,r6=yt(function(t){var e=Ae(Or(this)),n="",r=kl(t);if(r<0||r==1/0)throw Qrt("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n}),UT=yt("".slice),Ad=yt(1 .toFixed),Nl=function(t,e,n){return e===0?n:e%2==1?Nl(t,e-1,n*t):Nl(t*t,e/2,n)},Il=function(t,e,n){for(var r=-1,o=n;++r<6;)o+=e*t[r],t[r]=o%1e7,o=VT(o/1e7)},o6=function(t,e){for(var n=6,r=0;--n>=0;)r+=t[n],t[n]=VT(r/e),r=r%e*1e7},WT=function(t){for(var e=6,n="";--e>=0;)if(n!==""||e===0||t[e]!==0){var r=HT(t[e]);n=n===""?r:n+r6("0",7-r.length)+r}return n};function GT(t,e){return"w-e-image-container-"+A.findKey(t,e).id}tn({target:"Number",proto:!0,forced:Ce(function(){return Ad(8e-5,3)!=="0.000"||Ad(.9,0)!=="1"||Ad(1.255,2)!=="1.25"||Ad(1000000000000000100,0)!=="1000000000000000128"})||!Ce(function(){Ad({})})},{toFixed:function(t){var e,n,r,o,i=Jrt(this),a=kl(t),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw tot("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return HT(i);if(i<0&&(s="-",i=-i),i>1e-21)if(n=(e=function(c){for(var f=0,p=c;p>=4096;)f+=12,p/=4096;for(;p>=2;)f+=1,p/=2;return f}(i*Nl(2,69,1))-69)<0?i*Nl(2,-e,1):i/Nl(2,e,1),n*=4503599627370496,(e=52-e)>0){for(Il(u,0,n),r=a;r>=7;)Il(u,1e7,0),r-=7;for(Il(u,Nl(10,r,1),0),r=e-1;r>=23;)o6(u,1<<23),r-=23;o6(u,1<0?s+((o=l.length)<=a?"0."+r6("0",a-o)+l:UT(l,0,o-a)+"."+UT(l,o-a)):s+l}});var eot={type:"image",renderElem:function(t,e,n){var r=t,o=r.src,i=r.alt,a=i===void 0?"":i,u=r.href,s=u===void 0?"":u,l=r.style,c=l===void 0?{}:l,f=c.width,p=f===void 0?"":f,d=c.height,m=d===void 0?"":d,g=A.isNodeSelected(n,t),v={};p&&(v.width="100%"),m&&(v.height="100%");var y=bt("img",{style:v,src:o,alt:a,"data-href":s}),h=n.isDisabled();return g&&!h?function(b,w,D,S){var x=k("body"),O=GT(b,w),T=S.width,I=S.height,M=0,z=0,Y=0,W=!1,G=null;function K(ut){G=function(){var j=k("#"+O);if(j.length===0)throw new Error("Cannot find image container elem");return j}(),M=ut;var B=G.find("img");if(B.length===0)throw new Error("Cannot find image elem");z=B.width(),Y=B.height(),x.on("mousemove",ot),x.on("mouseup",ct);var C=A.getHoverbar(b);C&&C.hideAndClean()}var ot=cu(function(ut){ut.preventDefault();var B=ut.clientX,C=z+(W?M-B:B-M),j=Y*(C/z);G!=null&&(C<=15||j<=15||(G.css("width",C+"px"),G.css("height",j+"px")))},100);function ct(ut){if(x.off("mousemove",ot),G!=null){var B=G.width().toFixed(2),C=G.height().toFixed(2),j={style:Qi(Qi({},w.style),{width:B+"px",height:C+"px"})};N.setNodes(b,j,{at:A.findPath(b,w)}),x.off("mouseup",ct)}}var lt={};return T&&(lt.width=T),I&&(lt.height=I),bt("div",{id:O,style:lt,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(ut){var B=k(ut.target);B.hasClass("w-e-image-dragger")&&(ut.preventDefault(),(B.hasClass("left-top")||B.hasClass("left-bottom"))&&(W=!0),K(ut.clientX))}}},D,bt("div",{className:"w-e-image-dragger left-top"}),bt("div",{className:"w-e-image-dragger right-top"}),bt("div",{className:"w-e-image-dragger left-bottom"}),bt("div",{className:"w-e-image-dragger right-bottom"}))}(n,t,y,{width:p,height:m}):function(b,w,D,S){var x=S.width,O=S.height,T={};return x&&(T.width=x),O&&(T.height=O),bt("div",{id:GT(b,w),style:T,className:"w-e-image-container"},D)}(n,t,y,{width:p,height:m})}},not={selector:"img:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=k(t),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:Zr(r,"width"),height:Zr(r,"height")},children:[{text:""}]}}};function qT(t,e,n,r,o){return r===void 0&&(r=""),o===void 0&&(o=""),ta(this,void 0,void 0,function(){var i,a;return ea(this,function(u){switch(u.label){case 0:return(i=e.getMenuConfig(t).checkImage)?[4,i(n,r,o)]:[3,2];case 1:if(typeof(a=u.sent())=="string")return e.alert(a,"error"),[2,!1];if(a==null)return[2,!1];u.label=2;case 2:return[2,!0]}})})}function KT(t,e,n){return ta(this,void 0,void 0,function(){var r;return ea(this,function(o){switch(o.label){case 0:return(r=e.getMenuConfig(t).parseImageSrc)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}})})}function Lu(t,e,n,r){return n===void 0&&(n=""),r===void 0&&(r=""),ta(this,void 0,void 0,function(){var o,i,a;return ea(this,function(u){switch(u.label){case 0:return[4,qT("insertImage",t,e,n,r)];case 1:return u.sent()?[4,KT("insertImage",t,e)]:[2];case 2:return o=u.sent(),i={type:"image",src:QE(o),href:r,alt:n,style:{},children:[{text:""}]},t.selection===null&&t.restoreSelection(),A.getSelectedNodeByType(t,"image")&&t.move(1),Qg(t)||(N.insertNodes(t,i),(a=t.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}})})}function Qg(t){var e=t.selection;return e==null||!R.isCollapsed(e)||!!qt(E.nodes(t,{match:function(n){var r=A.getNodeType(n);return r==="code"||r==="pre"||r==="link"||r==="list-item"||!!r.startsWith("header")||r==="blockquote"||!!E.isVoid(t,n)},universal:!0}),1)[0]}function tv(){return Jg("w-e-insert-image")}var rot=function(){function t(){this.title=tt("image.netImage"),this.iconSvg='',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=tv(),this.altInputId=tv(),this.hrefInputId=tv(),this.buttonId=tv()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){return Qg(e)},t.prototype.getModalPositionNode=function(e){return null},t.prototype.getModalContentElem=function(e){var n=this,r=this,o=r.srcInputId,i=r.altInputId,a=r.hrefInputId,u=r.buttonId,s=qt(ir(tt("image.src"),o),2),l=s[0],c=k(s[1]),f=qt(ir(tt("image.desc"),i),2),p=f[0],d=k(f[1]),m=qt(ir(tt("image.link"),a),2),g=m[0],v=k(m[1]),y=qt(wl(u,tt("common.ok")),1)[0];if(this.$content==null){var h=k("
      ");h.on("click","#"+u,function(w){w.preventDefault();var D=h.find("#"+o).val().trim(),S=h.find("#"+i).val().trim(),x=h.find("#"+a).val().trim();n.insertImage(e,D,S,x),e.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]},t.prototype.insertImage=function(e,n,r,o){r===void 0&&(r=""),o===void 0&&(o=""),n&&(e.restoreSelection(),this.isDisabled(e)||Lu(e,n,r,o))},t}(),oot=function(){function t(){this.title=tt("image.delete"),this.iconSvg='',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||A.getSelectedNodeByType(e,"image")==null},t.prototype.exec=function(e,n){this.isDisabled(e)||N.removeNodes(e,{match:function(r){return A.checkNodeType(r,"image")}})},t}();function ev(){return Jg("w-e-edit-image")}var iot=function(){function t(){this.title=tt("image.edit"),this.iconSvg=xT,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=ev(),this.altInputId=ev(),this.hrefInputId=ev(),this.buttonId=ev()}return t.prototype.getValue=function(e){return""},t.prototype.getImageNode=function(e){return A.getSelectedNodeByType(e,"image")},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!R.isCollapsed(n)||A.getSelectedNodeByType(e,"image")==null},t.prototype.getModalPositionNode=function(e){return this.getImageNode(e)},t.prototype.getModalContentElem=function(e){var n=this,r=this,o=r.srcInputId,i=r.altInputId,a=r.hrefInputId,u=r.buttonId,s=this.getImageNode(e);if(s==null)throw new Error("Not found selected image node");var l=qt(ir(tt("image.src"),o),2),c=l[0],f=k(l[1]),p=qt(ir(tt("image.desc"),i),2),d=p[0],m=k(p[1]),g=qt(ir(tt("image.link"),a),2),v=g[0],y=k(g[1]),h=qt(wl(u,tt("common.ok")),1)[0];if(this.$content==null){var b=k("
      ");b.on("click","#"+u,function(M){M.preventDefault();var z=b.find("#"+o).val(),Y=b.find("#"+i).val(),W=b.find("#"+a).val();n.updateImage(e,z,Y,W),e.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,x=D.alt,O=x===void 0?"":x,T=D.href,I=T===void 0?"":T;return f.val(S),m.val(O),y.val(I),setTimeout(function(){f.focus()}),w[0]},t.prototype.updateImage=function(e,n,r,o,i){r===void 0&&(r=""),o===void 0&&(o=""),i===void 0&&(i={}),n&&(e.restoreSelection(),this.isDisabled(e)||function(a,u,s,l,c){s===void 0&&(s=""),l===void 0&&(l=""),c===void 0&&(c={}),ta(this,void 0,void 0,function(){var f,p,d,m,g,v;return ea(this,function(y){switch(y.label){case 0:return[4,qT("editImage",a,u,s,l)];case 1:return y.sent()?[4,KT("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:Qi(Qi({},d===void 0?{}:d),c)},N.setNodes(a,m,{match:function(h){return A.checkNodeType(h,"image")}}),g=A.getSelectedNodeByType(a,"image"),(v=a.getMenuConfig("editImage").onUpdatedImage)&&v(g)),[2]}})})}(e,n,r,o,i))},t}(),aot=function(){function t(){this.title=tt("image.viewLink"),this.iconSvg=ST,this.tag="button"}return t.prototype.getValue=function(e){var n=A.getSelectedNodeByType(e,"image");return n&&n.href||""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||!this.getValue(e)},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){if(!n||typeof n!="string")throw new Error("View image link failed, image.href is '"+n+"'");window.open(n,"_blank")}},t}(),i6=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.getSelectedNode=function(e){return A.getSelectedNodeByType(e,"image")},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedNode(e)==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=this.getSelectedNode(e);if(r!=null){var o=A.getHoverbar(e);o&&o.hideAndClean();var i=r.style,a={style:Qi(Qi({},i===void 0?{}:i),{width:this.value,height:""})};N.setNodes(e,a,{match:function(u){return A.checkNodeType(u,"image")}})}}},t}(),uot=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="30%",n.value="30%",n}return we(e,t),e}(i6),sot=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="50%",n.value="50%",n}return we(e,t),e}(i6),lot=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="100%",n.value="100%",n}return we(e,t),e}(i6),YT={onInsertedImage:function(t){},onUpdatedImage:function(t){},checkImage:function(t,e,n){return!0},parseImageSrc:function(t){return t}},cot={renderElems:[eot],elemsToHtml:[{type:"image",elemToHtml:function(t,e){var n=t,r=n.src,o=n.alt,i=o===void 0?"":o,a=n.href,u=a===void 0?"":a,s=n.style,l=s===void 0?{}:s,c=l.width,f=c===void 0?"":c,p=l.height,d=p===void 0?"":p,m="";return f&&(m+="width: "+f+";"),d&&(m+="height: "+d+";"),''+i+''}}],parseElemsHtml:[not],menus:[{key:"insertImage",factory:function(){return new rot},config:YT},{key:"deleteImage",factory:function(){return new oot}},{key:"editImage",factory:function(){return new iot},config:YT},{key:"viewImageLink",factory:function(){return new aot}},{key:"imageWidth30",factory:function(){return new uot}},{key:"imageWidth50",factory:function(){return new sot}},{key:"imageWidth100",factory:function(){return new lot}}],editorPlugin:function(t){var e=t.isInline,n=t.isVoid;t.insertNode;var r=t;return r.isInline=function(o){return o.type==="image"||e(o)},r.isVoid=function(o){return o.type==="image"||n(o)},r}},fot={type:"todo",renderElem:function(t,e,n){var r=!1;n.isDisabled()&&(r=!0);var o=bt("div",{style:{margin:"5px 0"}},bt("span",{contentEditable:!1,style:{marginRight:"0.5em"}},bt("input",{type:"checkbox",checked:t.checked,disabled:r,on:{change:function(i){var a=A.findPath(n,t),u={checked:i.target.checked};N.setNodes(n,u,{at:a})}}})),bt("span",null,e));return o}},dot=function(){function t(){this.title=tt("todo.todo"),this.iconSvg='',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!!A.getSelectedNodeByType(e,"todo")},t.prototype.isDisabled=function(e){return e.selection==null||!!A.getSelectedElems(e).some(function(n){if(E.isVoid(e,n)&&E.isBlock(e,n))return!0;var r=n.type;return!!["pre","table","list-item"].includes(r)||void 0})},t.prototype.exec=function(e,n){var r=this.isActive(e);N.setNodes(e,{type:r?"paragraph":"todo"})},t}(),pot={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(t,e,n){var r=k(t);(e=e.filter(function(i){return!!it.isText(i)||!!n.isInline(i)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]);var o=!1;return r.find('input[type="checkbox"]').attr("checked")!=null&&(o=!0),{type:"todo",checked:o,children:e}}},hot={renderElems:[fot],elemsToHtml:[{type:"todo",elemToHtml:function(t,e){return'
      "+e+"
      "}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(t){var e=k(t).find("li"),n=k('
      '),r=e.find("input[type]");return n.append(r),e.children()[0].remove(),n[0].innerHTML=n[0].innerHTML+e[0].innerHTML,n[0]}}],parseElemsHtml:[pot],menus:[{key:"todo",factory:function(){return new dot}}],editorPlugin:function(t){var e=t.deleteBackward,n=t;return n.deleteBackward=function(r){var o=t.selection;if(o&&R.isCollapsed(o)){var i=A.getSelectedNodeByType(t,"todo");if(i&&Q.string(i).length===0)return void N.setNodes(t,{type:"paragraph"},{mode:"highest"})}e(r)},n}},got={type:"blockquote",renderElem:function(t,e,n){return bt("blockquote",null,e)}},vot={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=k(t);return(e=e.filter(function(o){return!!it.isText(o)||!!n.isInline(o)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:e}}},yot=function(){function t(){this.title=tt("blockQuote.title"),this.iconSvg='',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!!A.getSelectedNodeByType(e,"blockquote")},t.prototype.isDisabled=function(e){return e.selection==null||!qt(E.nodes(e,{match:function(n){var r=A.getNodeType(n);return r==="paragraph"||r==="blockquote"},universal:!0,mode:"highest"}),1)[0]},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=this.isActive(e)?"paragraph":"blockquote";N.setNodes(e,{type:r},{mode:"highest"})}},t}(),mot={key:"blockquote",factory:function(){return new yot}},bot=yt([].slice),wot=SE("slice"),Eot=ur("species"),a6=At.Array,Dot=Math.max;tn({target:"Array",proto:!0,forced:!wot},{slice:function(t,e){var n,r,o,i=Sl(this),a=Ug(i),u=pd(t,a),s=pd(e===void 0?a:e,a);if(Gg(i)&&(n=i.constructor,(xE(n)&&(n===a6||Gg(n.prototype))||kr(n)&&(n=n[Eot])===null)&&(n=void 0),n===a6||n===void 0))return bot(i,u,s);for(r=new(n===void 0?a6:n)(Dot(s-u,0)),o=0;u"+e+""}}],parseElemsHtml:[vot],menus:[mot],editorPlugin:function(t){var e=t.insertBreak,n=t.insertText,r=t;return r.insertBreak=function(){var o=r.selection;if(o==null)return e();var i=qt(E.nodes(t,{match:function(c){return A.checkNodeType(c,"blockquote")},universal:!0}),1)[0];if(!i)return e();var a=i[0],u=A.findPath(t,a),s=E.end(t,u);if(Ft.equals(s,o.focus)){var l=Q.string(a);if(l&&l.slice(-1)===` `)return t.deleteBackward("character"),void N.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n(` `)},r}},Sot=function(){function t(){this.title=tt("emotion.title"),this.iconSvg='',this.tag="button",this.showDropPanel=!0,this.$content=null}return t.prototype.exec=function(e,n){},t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||!!qt(E.nodes(e,{match:function(n){return A.getNodeType(n)==="pre"||!!E.isVoid(e,n)},universal:!0}),1)[0]},t.prototype.getPanelContentElem=function(e){if(this.$content==null){var n=k('
        ');n.on("click","li",function(i){var a=i.target;if(a!=null){i.preventDefault();var u=k(a).text();e.insertText(u)}}),this.$content=n}var r=this.$content;if(r==null)return document.createElement("ul");r.empty();var o=e.getMenuConfig("emotion").emotions;return(o===void 0?[]:o).forEach(function(i){var a=k("
      • "+i+"
      • ");r.append(a)}),r[0]},t}(),Cot={menus:[{key:"emotion",factory:function(){return new Sot},config:{emotions:"\u{1F600} \u{1F603} \u{1F604} \u{1F601} \u{1F606} \u{1F605} \u{1F602} \u{1F923} \u{1F60A} \u{1F607} \u{1F642} \u{1F643} \u{1F609} \u{1F60C} \u{1F60D} \u{1F618} \u{1F617} \u{1F619} \u{1F61A} \u{1F60B} \u{1F61B} \u{1F61D} \u{1F61C} \u{1F913} \u{1F60E} \u{1F60F} \u{1F612} \u{1F61E} \u{1F614} \u{1F61F} \u{1F615} \u{1F641} \u{1F623} \u{1F616} \u{1F62B} \u{1F629} \u{1F622} \u{1F62D} \u{1F624} \u{1F620} \u{1F621} \u{1F633} \u{1F631} \u{1F628} \u{1F917} \u{1F914} \u{1F636} \u{1F611} \u{1F62C} \u{1F644} \u{1F62F} \u{1F634} \u{1F637} \u{1F911} \u{1F608} \u{1F921} \u{1F4A9} \u{1F47B} \u{1F480} \u{1F440} \u{1F463} \u{1F450} \u{1F64C} \u{1F44F} \u{1F91D} \u{1F44D} \u{1F44E} \u{1F44A} \u270A \u{1F91B} \u{1F91C} \u{1F91E} \u270C\uFE0F \u{1F918} \u{1F44C} \u{1F448} \u{1F449} \u{1F446} \u{1F447} \u261D\uFE0F \u270B \u{1F91A} \u{1F590} \u{1F596} \u{1F44B} \u{1F919} \u{1F4AA} \u{1F595} \u270D\uFE0F \u{1F64F}".split(" ")}}]},Aot={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},Oot={selector:"font",preParseHtml:function(t){var e=k(t);if(jl(e)!=="font")return t;var n=e.attr("size")||"";n&&(e.removeAttr("size"),e.css("font-size",Aot[n]));var r=e.attr("face")||"";return r&&(e.removeAttr("face"),e.css("font-family",r)),e[0]}},kot=yt("".indexOf);tn({target:"String",proto:!0,forced:!OT("includes")},{includes:function(t){return!!~kot(Ae(Or(this)),Ae(AT(t)),arguments.length>1?arguments[1]:void 0)}});var na,nv,rv=function(t){return t&&t.Math==Math&&t},Tt=rv(typeof globalThis=="object"&&globalThis)||rv(typeof window=="object"&&window)||rv(typeof self=="object"&&self)||rv(typeof Ng=="object"&&Ng)||function(){return this}()||Function("return this")(),u6=Function.prototype,XT=u6.apply,Bot=u6.bind,ZT=u6.call,JT=typeof Reflect=="object"&&Reflect.apply||(Bot?ZT.bind(XT):function(){return ZT.apply(XT,arguments)}),QT=Function.prototype,s6=QT.bind,l6=QT.call,Fot=s6&&s6.bind(l6),Pe=s6?function(t){return t&&Fot(l6,t)}:function(t){return t&&function(){return l6.apply(t,arguments)}},yn=function(t){return typeof t=="function"},lr=function(t){try{return!!t()}catch(e){return!0}},Wn=!lr(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Od=Function.prototype.call,Jr=Od.bind?Od.bind(Od):function(){return Od.apply(Od,arguments)},tP={}.propertyIsEnumerable,eP=Object.getOwnPropertyDescriptor,Tot=eP&&!tP.call({1:2},1)?function(t){var e=eP(this,t);return!!e&&e.enumerable}:tP,c6={f:Tot},Ru=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Pot=Pe({}.toString),jot=Pe("".slice),Mu=function(t){return jot(Pot(t),8,-1)},f6=Tt.Object,_ot=Pe("".split),nP=lr(function(){return!f6("z").propertyIsEnumerable(0)})?function(t){return Mu(t)=="String"?_ot(t,""):f6(t)}:f6,Not=Tt.TypeError,d6=function(t){if(t==null)throw Not("Can't call method on "+t);return t},xo=function(t){return nP(d6(t))},Fr=function(t){return typeof t=="object"?t!==null:yn(t)},Tr={},rP=function(t){return yn(t)?t:void 0},kd=function(t,e){return arguments.length<2?rP(Tr[t])||rP(Tt[t]):Tr[t]&&Tr[t][e]||Tt[t]&&Tt[t][e]},oP=Pe({}.isPrototypeOf),p6=kd("navigator","userAgent")||"",iP=Tt.process,aP=Tt.Deno,uP=iP&&iP.versions||aP&&aP.version,sP=uP&&uP.v8;sP&&(nv=(na=sP.split("."))[0]>0&&na[0]<4?1:+(na[0]+na[1])),!nv&&p6&&(!(na=p6.match(/Edge\/(\d+)/))||na[1]>=74)&&(na=p6.match(/Chrome\/(\d+)/))&&(nv=+na[1]);var ov=nv,So=!!Object.getOwnPropertySymbols&&!lr(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&ov&&ov<41}),h6=So&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Iot=Tt.Object,Ll=h6?function(t){return typeof t=="symbol"}:function(t){var e=kd("Symbol");return yn(e)&&oP(e.prototype,Iot(t))},Lot=Tt.String,Rot=Tt.TypeError,lP=function(t){if(yn(t))return t;throw Rot(function(e){try{return Lot(e)}catch(n){return"Object"}}(t)+" is not a function")},Mot=Tt.TypeError,zot=Object.defineProperty,ra=Tt["__core-js_shared__"]||function(t,e){try{zot(Tt,t,{value:e,configurable:!0,writable:!0})}catch(n){Tt[t]=e}return e}("__core-js_shared__",{}),zu=Ig(function(t){(t.exports=function(e,n){return ra[e]||(ra[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),$ot=Tt.Object,Bd=function(t){return $ot(d6(t))},Hot=Pe({}.hasOwnProperty),Kt=Object.hasOwn||function(t,e){return Hot(Bd(t),e)},Vot=0,Uot=Math.random(),Wot=Pe(1 .toString),iv=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Wot(++Vot+Uot,36)},Fd=zu("wks"),$u=Tt.Symbol,cP=$u&&$u.for,Got=h6?$u:$u&&$u.withoutSetter||iv,cr=function(t){if(!Kt(Fd,t)||!So&&typeof Fd[t]!="string"){var e="Symbol."+t;So&&Kt($u,t)?Fd[t]=$u[t]:Fd[t]=h6&&cP?cP(e):Got(e)}return Fd[t]},qot=Tt.TypeError,Kot=cr("toPrimitive"),Rl=function(t){var e=function(n,r){if(!Fr(n)||Ll(n))return n;var o,i,a=(o=n[Kot])==null?void 0:lP(o);if(a){if(r===void 0&&(r="default"),i=Jr(a,n,r),!Fr(i)||Ll(i))return i;throw qot("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(u,s){var l,c;if(s==="string"&&yn(l=u.toString)&&!Fr(c=Jr(l,u))||yn(l=u.valueOf)&&!Fr(c=Jr(l,u))||s!=="string"&&yn(l=u.toString)&&!Fr(c=Jr(l,u)))return c;throw Mot("Can't convert object to primitive value")}(n,r)}(t,"string");return Ll(e)?e:e+""},g6=Tt.document,Yot=Fr(g6)&&Fr(g6.createElement),fP=function(t){return Yot?g6.createElement(t):{}},dP=!Wn&&!lr(function(){return Object.defineProperty(fP("div"),"a",{get:function(){return 7}}).a!=7}),pP=Object.getOwnPropertyDescriptor,v6={f:Wn?pP:function(t,e){if(t=xo(t),e=Rl(e),dP)try{return pP(t,e)}catch(n){}if(Kt(t,e))return Ru(!Jr(c6.f,t,e),t[e])}},Xot=/#|\.prototype\./,Td=function(t,e){var n=Jot[Zot(t)];return n==tit||n!=Qot&&(yn(e)?lr(e):!!e)},Zot=Td.normalize=function(t){return String(t).replace(Xot,".").toLowerCase()},Jot=Td.data={},Qot=Td.NATIVE="N",tit=Td.POLYFILL="P",eit=Td,hP=Pe(Pe.bind),gP=function(t,e){return lP(t),e===void 0?t:hP?hP(t,e):function(){return t.apply(e,arguments)}},nit=Tt.String,rit=Tt.TypeError,Hu=function(t){if(Fr(t))return t;throw rit(nit(t)+" is not an object")},oit=Tt.TypeError,vP=Object.defineProperty,Vu={f:Wn?vP:function(t,e,n){if(Hu(t),e=Rl(e),Hu(n),dP)try{return vP(t,e,n)}catch(r){}if("get"in n||"set"in n)throw oit("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Co=Wn?function(t,e,n){return Vu.f(t,e,Ru(1,n))}:function(t,e,n){return t[e]=n,t},iit=v6.f,ait=function(t){var e=function(n,r,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,o)}return JT(t,this,arguments)};return e.prototype=t.prototype,e},oa=function(t,e){var n,r,o,i,a,u,s,l,c=t.target,f=t.global,p=t.stat,d=t.proto,m=f?Tt:p?Tt[c]:(Tt[c]||{}).prototype,g=f?Tr:Tr[c]||Co(Tr,c,{})[c],v=g.prototype;for(o in e)n=!eit(f?o:c+(p?".":"#")+o,t.forced)&&m&&Kt(m,o),a=g[o],n&&(u=t.noTargetGet?(l=iit(m,o))&&l.value:m[o]),i=n&&u?u:e[o],n&&typeof a==typeof i||(s=t.bind&&n?gP(i,Tt):t.wrap&&n?ait(i):d&&yn(i)?Pe(i):i,(t.sham||i&&i.sham||a&&a.sham)&&Co(s,"sham",!0),Co(g,o,s),d&&(Kt(Tr,r=c+"Prototype")||Co(Tr,r,{}),Co(Tr[r],o,i),t.real&&v&&!v[o]&&Co(v,o,i)))},av=Array.isArray||function(t){return Mu(t)=="Array"},uit=Math.ceil,sit=Math.floor,y6=function(t){var e=+t;return e!=e||e===0?0:(e>0?sit:uit)(e)},lit=Math.min,uv=function(t){return(e=t.length)>0?lit(y6(e),9007199254740991):0;var e},m6=function(t,e,n){var r=Rl(e);r in t?Vu.f(t,r,Ru(0,n)):t[r]=n},yP={};yP[cr("toStringTag")]="z";var b6=String(yP)==="[object z]",cit=cr("toStringTag"),fit=Tt.Object,dit=Mu(function(){return arguments}())=="Arguments",sv=b6?Mu:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch(a){}}(e=fit(t),cit))=="string"?n:dit?Mu(e):(r=Mu(e))=="Object"&&yn(e.callee)?"Arguments":r},pit=Pe(Function.toString);yn(ra.inspectSource)||(ra.inspectSource=function(t){return pit(t)});var mP=ra.inspectSource,bP=function(){},hit=[],wP=kd("Reflect","construct"),w6=/^\s*(?:class|function)\b/,git=Pe(w6.exec),vit=!w6.exec(bP),Pd=function(t){if(!yn(t))return!1;try{return wP(bP,hit,t),!0}catch(e){return!1}},yit=!wP||lr(function(){var t;return Pd(Pd.call)||!Pd(Object)||!Pd(function(){t=!0})||t})?function(t){if(!yn(t))return!1;switch(sv(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return vit||!!git(w6,mP(t))}:Pd,mit=cr("species"),EP=Tt.Array,DP=function(t,e){return new(function(n){var r;return av(n)&&(r=n.constructor,(yit(r)&&(r===EP||av(r.prototype))||Fr(r)&&(r=r[mit])===null)&&(r=void 0)),r===void 0?EP:r}(t))(e===0?0:e)},bit=cr("species"),xP=cr("isConcatSpreadable"),SP=Tt.TypeError,wit=ov>=51||!lr(function(){var t=[];return t[xP]=!1,t.concat()[0]!==t}),Eit=ov>=51||!lr(function(){var t=[];return(t.constructor={})[bit]=function(){return{foo:1}},t.concat(Boolean).foo!==1}),Dit=function(t){if(!Fr(t))return!1;var e=t[xP];return e!==void 0?!!e:av(t)};oa({target:"Array",proto:!0,forced:!wit||!Eit},{concat:function(t){var e,n,r,o,i,a=Bd(this),u=DP(a,0),s=0;for(e=-1,r=arguments.length;e9007199254740991)throw SP("Maximum allowed index exceeded");for(n=0;n=9007199254740991)throw SP("Maximum allowed index exceeded");m6(u,s++,i)}return u.length=s,u}});var lv,xit=Tt.String,cv=function(t){if(sv(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return xit(t)},Sit=Math.max,Cit=Math.min,E6=function(t,e){var n=y6(t);return n<0?Sit(n+e,0):Cit(n,e)},CP=function(t){return function(e,n,r){var o,i=xo(e),a=uv(i),u=E6(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},Ait={includes:CP(!0),indexOf:CP(!1)},jd={},Oit=Ait.indexOf,AP=Pe([].push),OP=function(t,e){var n,r=xo(t),o=0,i=[];for(n in r)!Kt(jd,n)&&Kt(r,n)&&AP(i,n);for(;e.length>o;)Kt(r,n=e[o++])&&(~Oit(i,n)||AP(i,n));return i},fv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],D6=Object.keys||function(t){return OP(t,fv)},kit=Wn?Object.defineProperties:function(t,e){Hu(t);for(var n,r=xo(e),o=D6(e),i=o.length,a=0;i>a;)Vu.f(t,n=o[a++],r[n]);return t},Bit=kd("document","documentElement"),kP=zu("keys"),dv=function(t){return kP[t]||(kP[t]=iv(t))},BP=dv("IE_PROTO"),x6=function(){},FP=function(t){return""},TP=function(t){t.write(FP("")),t.close();var e=t.parentWindow.Object;return t=null,e},pv=function(){try{lv=new ActiveXObject("htmlfile")}catch(r){}var t,e;pv=typeof document!="undefined"?document.domain&&lv?TP(lv):((e=fP("iframe")).style.display="none",Bit.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(FP("document.F=Object")),t.close(),t.F):TP(lv);for(var n=fv.length;n--;)delete pv.prototype[fv[n]];return pv()};jd[BP]=!0;var hv,_d,gv,Uu=Object.create||function(t,e){var n;return t!==null?(x6.prototype=Hu(t),n=new x6,x6.prototype=null,n[BP]=t):n=pv(),e===void 0?n:kit(n,e)},Fit=fv.concat("length","prototype"),PP={f:Object.getOwnPropertyNames||function(t){return OP(t,Fit)}},Tit=Tt.Array,Pit=Math.max,jP=PP.f,_P=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],NP={f:function(t){return _P&&Mu(t)=="Window"?function(e){try{return jP(e)}catch(n){return function(r,o,i){for(var a=uv(r),u=E6(void 0,a),s=E6(a,a),l=Tit(Pit(s-u,0)),c=0;uh;h++)if((u||h in g)&&(d=v(p=g[h],h,m),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:MP(w,p)}else switch(t){case 4:return!1;case 7:MP(w,p)}return i?-1:r||o?o:w}},yv=[ia(0),ia(1),ia(2),ia(3),ia(4),ia(5),ia(6),ia(7)][0],Gn=dv("hidden"),zP=cr("toPrimitive"),$it=$l.set,$P=$l.getterFor("Symbol"),Qr=Object.prototype,aa=Tt.Symbol,ua=aa&&aa.prototype,HP=Tt.TypeError,O6=Tt.QObject,Nd=kd("JSON","stringify"),VP=v6.f,sa=Vu.f,UP=NP.f,Hit=c6.f,WP=Pe([].push),oi=zu("symbols"),Id=zu("op-symbols"),k6=zu("string-to-symbol-registry"),B6=zu("symbol-to-string-registry"),Vit=zu("wks"),F6=!O6||!O6.prototype||!O6.prototype.findChild,T6=Wn&&lr(function(){return Uu(sa({},"a",{get:function(){return sa(this,"a",{value:7}).a}})).a!=7})?function(t,e,n){var r=VP(Qr,e);r&&delete Qr[e],sa(t,e,n),r&&t!==Qr&&sa(Qr,e,r)}:sa,P6=function(t,e){var n=oi[t]=Uu(ua);return $it(n,{type:"Symbol",tag:t,description:e}),Wn||(n.description=e),n},mv=function(t,e,n){t===Qr&&mv(Id,e,n),Hu(t);var r=Rl(e);return Hu(n),Kt(oi,r)?(n.enumerable?(Kt(t,Gn)&&t[Gn][r]&&(t[Gn][r]=!1),n=Uu(n,{enumerable:Ru(0,!1)})):(Kt(t,Gn)||sa(t,Gn,Ru(1,{})),t[Gn][r]=!0),T6(t,r,n)):sa(t,r,n)},GP=function(t,e){Hu(t);var n=xo(e),r=D6(n).concat(j6(n));return yv(r,function(o){Wn&&!Jr(qP,n,o)||mv(t,o,n[o])}),t},qP=function(t){var e=Rl(t),n=Jr(Hit,this,e);return!(this===Qr&&Kt(oi,e)&&!Kt(Id,e))&&(!(n||!Kt(this,e)||!Kt(oi,e)||Kt(this,Gn)&&this[Gn][e])||n)},KP=function(t,e){var n=xo(t),r=Rl(e);if(n!==Qr||!Kt(oi,r)||Kt(Id,r)){var o=VP(n,r);return!o||!Kt(oi,r)||Kt(n,Gn)&&n[Gn][r]||(o.enumerable=!0),o}},YP=function(t){var e=UP(xo(t)),n=[];return yv(e,function(r){Kt(oi,r)||Kt(jd,r)||WP(n,r)}),n},j6=function(t){var e=t===Qr,n=UP(e?Id:xo(t)),r=[];return yv(n,function(o){!Kt(oi,o)||e&&!Kt(Qr,o)||WP(r,oi[o])}),r};if(So||(ua=(aa=function(){if(oP(ua,this))throw HP("Symbol is not a constructor");var t=arguments.length&&arguments[0]!==void 0?cv(arguments[0]):void 0,e=iv(t),n=function(r){this===Qr&&Jr(n,Id,r),Kt(this,Gn)&&Kt(this[Gn],e)&&(this[Gn][e]=!1),T6(this,e,Ru(1,r))};return Wn&&F6&&T6(Qr,e,{configurable:!0,set:n}),P6(e,t)}).prototype,Ml(ua,"toString",function(){return $P(this).tag}),Ml(aa,"withoutSetter",function(t){return P6(iv(t),t)}),c6.f=qP,Vu.f=mv,v6.f=KP,PP.f=NP.f=YP,S6.f=j6,C6.f=function(t){return P6(cr(t),t)},Wn&&sa(ua,"description",{configurable:!0,get:function(){return $P(this).description}})),oa({global:!0,wrap:!0,forced:!So,sham:!So},{Symbol:aa}),yv(D6(Vit),function(t){Re(t)}),oa({target:"Symbol",stat:!0,forced:!So},{for:function(t){var e=cv(t);if(Kt(k6,e))return k6[e];var n=aa(e);return k6[e]=n,B6[n]=e,n},keyFor:function(t){if(!Ll(t))throw HP(t+" is not a symbol");if(Kt(B6,t))return B6[t]},useSetter:function(){F6=!0},useSimple:function(){F6=!1}}),oa({target:"Object",stat:!0,forced:!So,sham:!Wn},{create:function(t,e){return e===void 0?Uu(t):GP(Uu(t),e)},defineProperty:mv,defineProperties:GP,getOwnPropertyDescriptor:KP}),oa({target:"Object",stat:!0,forced:!So},{getOwnPropertyNames:YP,getOwnPropertySymbols:j6}),oa({target:"Object",stat:!0,forced:lr(function(){S6.f(1)})},{getOwnPropertySymbols:function(t){return S6.f(Bd(t))}}),Nd){var Uit=!So||lr(function(){var t=aa();return Nd([t])!="[null]"||Nd({a:t})!="{}"||Nd(Object(t))!="{}"});oa({target:"JSON",stat:!0,forced:Uit},{stringify:function(t,e,n){var r=jit(arguments),o=e;if((Fr(e)||t!==void 0)&&!Ll(t))return av(e)||(e=function(i,a){if(yn(o)&&(a=Jr(o,this,i,a)),!Ll(a))return a}),r[1]=e,JT(Nd,null,r)}})}if(!ua[zP]){var Wit=ua.valueOf;Ml(ua,zP,function(t){return Jr(Wit,this)})}vv(aa,"Symbol"),jd[Gn]=!0,Re("asyncIterator"),Re("hasInstance"),Re("isConcatSpreadable"),Re("iterator"),Re("match"),Re("matchAll"),Re("replace"),Re("search"),Re("species"),Re("split"),Re("toPrimitive"),Re("toStringTag"),Re("unscopables"),vv(Tt.JSON,"JSON",!0);var la,XP,ZP,Git=Tr.Symbol,Gu={},JP=Function.prototype,qit=Wn&&Object.getOwnPropertyDescriptor,_6=Kt(JP,"name"),Kit={EXISTS:_6,PROPER:_6&&function(){}.name==="something",CONFIGURABLE:_6&&(!Wn||Wn&&qit(JP,"name").configurable)},Yit=!lr(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),QP=dv("IE_PROTO"),N6=Tt.Object,Xit=N6.prototype,I6=Yit?N6.getPrototypeOf:function(t){var e=Bd(t);if(Kt(e,QP))return e[QP];var n=e.constructor;return yn(n)&&e instanceof n?n.prototype:e instanceof N6?Xit:null},L6=cr("iterator"),tj=!1;[].keys&&("next"in(ZP=[].keys())?(XP=I6(I6(ZP)))!==Object.prototype&&(la=XP):tj=!0);var Zit=la==null||lr(function(){var t={};return la[L6].call(t)!==t});la=Zit?{}:Uu(la),yn(la[L6])||Ml(la,L6,function(){return this});var ej={IteratorPrototype:la,BUGGY_SAFARI_ITERATORS:tj},Jit=ej.IteratorPrototype,Qit=function(){return this};Tt.String,Tt.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var t={};try{Pe(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(t,[]),t instanceof Array}catch(e){}}();var tat=Kit.PROPER,bv=ej.BUGGY_SAFARI_ITERATORS,R6=cr("iterator"),eat=function(){return this},nj=function(t,e,n,r,o,i,a){(function(y,h,b,w){var D=h+" Iterator";y.prototype=Uu(Jit,{next:Ru(1,b)}),vv(y,D,!1,!0),Gu[D]=Qit})(n,e,r);var u,s,l,c=function(y){if(y===o&&g)return g;if(!bv&&y in d)return d[y];switch(y){case"keys":case"values":case"entries":return function(){return new n(this,y)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,m=d[R6]||d["@@iterator"]||o&&d[o],g=!bv&&m||c(o),v=e=="Array"&&d.entries||m;if(v&&(u=I6(v.call(new t)))!==Object.prototype&&u.next&&(vv(u,f,!0,!0),Gu[f]=eat),tat&&o=="values"&&m&&m.name!=="values"&&(p=!0,g=function(){return Jr(m,this)}),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(bv||p||!(l in d))&&Ml(d,l,s[l]);else oa({target:e,proto:!0,forced:bv||p},s);return a&&d[R6]!==g&&Ml(d,R6,g,{name:o}),Gu[e]=g,s},nat=$l.set,rat=$l.getterFor("Array Iterator");nj(Array,"Array",function(t,e){nat(this,{type:"Array Iterator",target:xo(t),index:0,kind:e})},function(){var t=rat(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values"),Gu.Arguments=Gu.Array;var rj=cr("toStringTag");for(var M6 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 oj=Tt[M6],z6=oj&&oj.prototype;z6&&sv(z6)!==rj&&Co(z6,rj,M6),Gu[M6]=Gu.Array}var oat=Git;Re("asyncDispose"),Re("dispose"),Re("matcher"),Re("metadata"),Re("observable"),Re("patternMatch"),Re("replaceAll");var wv=oat,iat=Pe("".charAt),ij=Pe("".charCodeAt),aat=Pe("".slice),aj=function(t){return function(e,n){var r,o,i=cv(d6(e)),a=y6(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=ij(i,a))<55296||r>56319||a+1===u||(o=ij(i,a+1))<56320||o>57343?t?iat(i,a):r:t?aat(i,a,a+2):o-56320+(r-55296<<10)+65536}},uat=(aj(!1),aj(!0)),sat=$l.set,lat=$l.getterFor("String Iterator");nj(String,"String",function(t){sat(this,{type:"String Iterator",string:cv(t),index:0})},function(){var t,e=lat(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=uat(n,r),e.index+=t.length,{value:t,done:!1})});var cat=C6.f("iterator"),fat=Ig(function(t){function e(n){return typeof wv=="function"&&typeof cat=="symbol"?(t.exports=e=function(r){return typeof r},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(r){return r&&typeof wv=="function"&&r.constructor===wv&&r!==wv.prototype?"symbol":typeof r},t.exports.default=t.exports,t.exports.__esModule=!0),e(n)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0}),uj=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}(fat),dat=Vg.EXISTS,pat=Cl.f,sj=Function.prototype,hat=yt(sj.toString),lj=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,gat=yt(lj.exec);Xr&&!dat&&pat(sj,"name",{configurable:!0,get:function(){try{return gat(lj,hat(this))[1]}catch(t){return""}}});var cj=function(){function t(){this.tag="select",this.width=80}return t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){var n=this.mark,r=E.marks(e);return r&&r[n]?r[n]:""},t.prototype.isDisabled=function(e){return e.selection==null||(this.mark,!!qt(E.nodes(e,{match:function(n){return A.getNodeType(n)==="pre"||!!E.isVoid(e,n)},universal:!0}),1)[0])},t.prototype.exec=function(e,n){var r=this.mark;n?e.addMark(r,n):e.removeMark(r)},t}(),vat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("fontSize.title"),n.iconSvg=Unt,n.mark="fontSize",n}return we(e,t),e.prototype.getOptions=function(n){var r=[],o=n.getMenuConfig(this.mark).fontSizeList,i=o===void 0?[]:o;r.push({text:tt("fontSize.default"),value:""}),i.forEach(function(u){if(typeof u=="string")r.push({text:u,value:u});else if(uj(u)==="object"){var s=u.name,l=u.value;r.push({text:s,value:l})}});var a=this.getValue(n);return r.forEach(function(u){u.value===a?u.selected=!0:delete u.selected}),r},e}(cj),yat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("fontFamily.title"),n.iconSvg=Wnt,n.mark="fontFamily",n.selectPanelWidth=150,n}return we(e,t),e.prototype.getOptions=function(n){var r=[],o=n.getMenuConfig(this.mark).fontFamilyList,i=o===void 0?[]:o;r.push({text:tt("fontFamily.default"),value:""}),i.forEach(function(u){if(typeof u=="string")r.push({text:u,value:u,styleForRenderMenuList:{"font-family":u}});else if(uj(u)==="object"){var s=u.name,l=u.value;r.push({text:s,value:l,styleForRenderMenuList:{"font-family":l}})}});var a=this.getValue(n);return r.forEach(function(u){u.value===a?u.selected=!0:delete u.selected}),r},e}(cj),mat={renderStyle:function(t,e){var n=t,r=n.fontSize,o=n.fontFamily,i=e;return r&&Iu(i,{fontSize:r}),o&&Iu(i,{fontFamily:o}),i},styleToHtml:function(t,e){if(!it.isText(t))return e;var n,r=t,o=r.fontSize,i=r.fontFamily;return o||i?((WE(e)||jl(n=k(e))!=="span")&&(n=k(""+e+"")),o&&n.css("font-size",o),i&&n.css("font-family",i),Pl(n)):e},preParseHtml:[Oot],parseStyleHtml:function(t,e,n){var r=k(t);if(!it.isText(e))return e;var o=e,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 vat},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 yat},config:{fontFamilyList:["\u9ED1\u4F53",{name:"\u4EFF\u5B8B",value:"\u4EFF\u5B8B"},"\u6977\u4F53","\u6807\u6977\u4F53","\u534E\u6587\u4EFF\u5B8B","\u534E\u6587\u6977\u4F53",{name:"\u5B8B\u4F53",value:"\u5B8B\u4F53"},"\u5FAE\u8F6F\u96C5\u9ED1","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},bat={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(t){var e=k(t),n=Zr(e,"padding-left");return/\dem/.test(n)&&e.css("text-indent","2em"),/\dpx/.test(n)&&parseInt(n,10)%32==0&&e.css("text-indent","2em"),e[0]}},fj=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){var n=qt(E.nodes(e,{match:function(o){return!!o.indent},universal:!0}),1),r=n[0];return r==null?"":qt(r,1)[0].indent||""},t.prototype.isActive=function(e){return!1},t.prototype.getMatchNode=function(e){var n=qt(E.nodes(e,{match:function(r){var o=A.getNodeType(r);return o==="paragraph"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},t}(),wat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("indent.decrease"),n.iconSvg=Gnt,n}return we(e,t),e.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!r.indent},e.prototype.exec=function(n,r){N.setNodes(n,{indent:null},{match:function(o){return ft.isElement(o)}})},e}(fj),Eat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("indent.increase"),n.iconSvg=qnt,n}return we(e,t),e.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!!r.indent},e.prototype.exec=function(n,r){N.setNodes(n,{indent:"2em"},{match:function(o){return ft.isElement(o)},mode:"highest"})},e}(fj),Dat={renderStyle:function(t,e){if(!ft.isElement(t))return e;var n=t.indent,r=e;return n&&Iu(r,{textIndent:n}),r},styleToHtml:function(t,e){if(!ft.isElement(t))return e;var n=t.indent;if(!n)return e;var r=k(e);return r.css("text-indent",n),Pl(r)},preParseHtml:[bat],parseStyleHtml:function(t,e,n){var r=k(t);if(!ft.isElement(e))return e;var o=e,i=Zr(r,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new Eat}},{key:"delIndent",factory:function(){return new wat}}]},Ev=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.getMatchNode=function(e){var n=qt(E.nodes(e,{match:function(r){var o=A.getNodeType(r);return o==="paragraph"||o==="blockquote"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},t.prototype.isDisabled=function(e){return e.selection==null||!!A.getSelectedElems(e).some(function(n){if(E.isVoid(e,n)&&E.isBlock(e,n))return!0;var r=n.type;return!!["pre","code"].includes(r)||void 0})},t}(),xat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("justify.left"),n.iconSvg=Knt,n}return we(e,t),e.prototype.exec=function(n,r){N.setNodes(n,{textAlign:"left"},{match:function(o){return ft.isElement(o)&&!n.isInline(o)}})},e}(Ev),Sat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("justify.right"),n.iconSvg=Ynt,n}return we(e,t),e.prototype.exec=function(n,r){N.setNodes(n,{textAlign:"right"},{match:function(o){return ft.isElement(o)&&!n.isInline(o)}})},e}(Ev),Cat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("justify.center"),n.iconSvg=Xnt,n}return we(e,t),e.prototype.exec=function(n,r){N.setNodes(n,{textAlign:"center"},{match:function(o){return ft.isElement(o)&&!n.isInline(o)}})},e}(Ev),Aat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("justify.justify"),n.iconSvg=Znt,n}return we(e,t),e.prototype.exec=function(n,r){N.setNodes(n,{textAlign:"justify"},{match:function(o){return ft.isElement(o)&&!n.isInline(o)}})},e}(Ev),Oat={renderStyle:function(t,e){if(!ft.isElement(t))return e;var n=t.textAlign,r=e;return n&&Iu(r,{textAlign:n}),r},styleToHtml:function(t,e){if(!ft.isElement(t))return e;var n=t.textAlign;if(!n)return e;var r=k(e);return r.css("text-align",n),Pl(r)},parseStyleHtml:function(t,e,n){var r=k(t);if(!ft.isElement(e))return e;var o=e,i=Zr(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new xat}},{key:"justifyRight",factory:function(){return new Sat}},{key:"justifyCenter",factory:function(){return new Cat}},{key:"justifyJustify",factory:function(){return new Aat}}]},kat=function(){function t(){this.title=tt("lineHeight.title"),this.iconSvg='',this.tag="select",this.width=80}return t.prototype.getOptions=function(e){var n=[],r=e.getMenuConfig("lineHeight").lineHeightList,o=r===void 0?[]:r;n.push({text:tt("lineHeight.default"),value:""}),o.forEach(function(a){n.push({text:a,value:a})});var i=this.getValue(e);return n.forEach(function(a){a.value===i?a.selected=!0:delete a.selected}),n},t.prototype.getMatchNode=function(e){var n=qt(E.nodes(e,{match:function(r){var o=A.getNodeType(r);return!!o.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(o)},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){var n=this.getMatchNode(e);return n==null?"":ft.isElement(n)&&n.lineHeight||""},t.prototype.isDisabled=function(e){return e.selection==null||this.getMatchNode(e)==null},t.prototype.exec=function(e,n){N.setNodes(e,{lineHeight:n.toString()},{mode:"highest"})},t}(),Bat={renderStyle:function(t,e){if(!ft.isElement(t))return e;var n=t.lineHeight,r=e;return n&&Iu(r,{lineHeight:n}),r},styleToHtml:function(t,e){if(!ft.isElement(t))return e;var n=t.lineHeight;if(!n)return e;var r=k(e);return r.css("line-height",n),Pl(r)},parseStyleHtml:function(t,e,n){var r=k(t);if(!ft.isElement(e))return e;var o=e,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 kat},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},Fat=function(){function t(){this.title=tt("undo.redo"),this.iconSvg='',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null},t.prototype.exec=function(e,n){typeof e.redo=="function"&&e.redo()},t}(),Tat=function(){function t(){this.title=tt("undo.undo"),this.iconSvg='',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null},t.prototype.exec=function(e,n){typeof e.undo=="function"&&e.undo()},t}(),Pat={menus:[{key:"redo",factory:function(){return new Fat}},{key:"undo",factory:function(){return new Tat}}]},jat={type:"divider",renderElem:function(t,e,n){return qs("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:A.isNodeSelected(n,t)?"true":""},style:{},on:{mousedown:function(r){return r.preventDefault()}}},[qs("hr")])}},_at=function(){function t(){this.title=tt("divider.title"),this.iconSvg='',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||!!A.getSelectedElems(e).some(function(n){if(e.isVoid(n))return!0;var r=A.getNodeType(n);return r==="table"||r==="pre"||void 0})},t.prototype.exec=function(e,n){N.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},t}(),Nat={renderElems:[jat],elemsToHtml:[{type:"divider",elemToHtml:function(t,e){return"
        "}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(t,e,n){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new _at}}],editorPlugin:function(t){var e=t.isVoid,n=t.normalizeNode,r=t;return r.isVoid=function(o){return o.type==="divider"||e(o)},r.normalizeNode=function(o){var i=qt(o,2),a=i[0],u=i[1];if(A.getNodeType(a)!=="divider")return n([a,u]);A.isLastNode(r,a)&&N.insertNodes(r,A.genEmptyParagraph(),{at:[u[0]+1]})},r}},Iat=qg.map;tn({target:"Array",proto:!0,forced:!SE("map")},{map:function(t){return Iat(this,t,arguments.length>1?arguments[1]:void 0)}});var Lat=yt([].join),Rat=Mg!=Object,Mat=wT("join",",");tn({target:"Array",proto:!0,forced:Rat||!Mat},{join:function(t){return Lat(Sl(this),t===void 0?",":t)}});var zat=function(){function t(){this.title=tt("codeBlock.title"),this.iconSvg='',this.tag="button"}return t.prototype.getSelectCodeElem=function(e){var n=A.getSelectedNodeByType(e,"code");if(n==null)return null;var r=A.getParentNode(e,n);return r==null||A.getNodeType(r)!=="pre"?null:n},t.prototype.getValue=function(e){var n=this.getSelectCodeElem(e);return n==null?"":n.language||""},t.prototype.isActive=function(e){return!!this.getSelectCodeElem(e)},t.prototype.isDisabled=function(e){if(e.selection==null)return!0;var n=A.getSelectedElems(e);return!!n.some(function(r){return e.isVoid(r)})||!n.some(function(r){var o=A.getNodeType(r);if(o==="pre"||o==="paragraph")return!0})},t.prototype.exec=function(e,n){this.isActive(e)?this.changeToPlainText(e):this.changeToCodeBlock(e,n.toString())},t.prototype.changeToPlainText=function(e){var n=this.getSelectCodeElem(e);if(n!=null){var r=Q.string(n);N.removeNodes(e,{mode:"highest"});var o=r.split(` `).map(function(i){return{type:"paragraph",children:[{text:i}]}});N.insertNodes(e,o,{mode:"highest"})}},t.prototype.changeToCodeBlock=function(e,n){var r,o,i=[],a=E.nodes(e,{match:function(f){return e.children.includes(f)},universal:!0});try{for(var u=vT(a),s=u.next();!s.done;s=u.next()){var l=qt(s.value,1)[0];l&&i.push(Q.string(l))}}catch(f){r={error:f}}finally{try{s&&!s.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}N.removeNodes(e,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:n,children:[{text:i.join(` `)}]}]};N.insertNodes(e,c,{mode:"highest"})},t}(),$at={key:"codeBlock",factory:function(){return new zat}};tn({target:"String",proto:!0,forced:Ed("anchor")},{anchor:function(t){return wd(this,"a","name",t)}}),NE("match",function(t,e,n){return[function(r){var o=Or(this),i=r==null?void 0:zg(r,t);return i?Te(i,r,o):new RegExp(r)[t](Ae(o))},function(r){var o=sr(this),i=Ae(r),a=n(e,o,i);if(a.done)return a.value;if(!o.global)return md(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=md(o,i))!==null;){var f=Ae(s[0]);l[c]=f,f===""&&(o.lastIndex=IE(i,hd(o.lastIndex),u)),c++}return c===0?null:l}]});var Hat={type:"pre",renderElem:function(t,e,n){return bt("pre",null,e)}},Vat={type:"code",renderElem:function(t,e,n){return bt("code",null,e)}},Uat={selector:"pre:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=k(t);return(e=e.filter(function(o){return A.getNodeType(o)==="code"})).length===0&&(e=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:e.filter(function(o){return A.getNodeType(o)==="code"})}}},Wat={menus:[$at],editorPlugin:function(t){var e=t.insertBreak,n=t.normalizeNode,r=t.insertData;t.insertNode;var o=t;return o.insertBreak=function(){var i=A.getSelectedNodeByType(o,"code");if(i!=null){var a=function(l,c){var f=c.selection;if(f==null)return"";var p=Q.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 e()},o.normalizeNode=function(i){var a=qt(i,2),u=a[0],s=a[1],l=A.getNodeType(u);return l==="code"&&s.length<=1&&N.setNodes(o,{type:"paragraph"},{at:s}),l==="pre"&&(A.isLastNode(o,u)&&N.insertNodes(o,A.genEmptyParagraph(),{at:[s[0]+1]}),A.getNodeType(u.children[0])!=="code"&&(N.unwrapNodes(o),N.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:[Hat,Vat],elemsToHtml:[{type:"code",elemToHtml:function(t,e){return""+e+""}},{type:"pre",elemToHtml:function(t,e){return"
        "+e+"
        "}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(t){var e=k(t);if(jl(e)!=="code")return t;var n=e.find("xmp");if(n.length===0)return t;var r=n.text();return n.remove(),e.text(r),e[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(t,e,n){return{type:"code",language:"",children:[{text:k(t)[0].textContent||""}]}}},Uat]},Gat=function(){function t(){this.title=tt("fullScreen.title"),this.iconSvg='',this.tag="button",this.alwaysEnable=!0}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return e.isFullScreen},t.prototype.isDisabled=function(e){return!1},t.prototype.exec=function(e,n){e.isFullScreen?e.unFullScreen():e.fullScreen()},t}(),qat={menus:[{key:"fullScreen",factory:function(){return new Gat}}]},Kat=function(){function t(){this.title=tt("common.enter"),this.iconSvg='',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!!R.isExpanded(n)},t.prototype.exec=function(e,n){var r=e.selection;if(r!=null){var o=[r.anchor.path[0]];N.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:o}),e.select(E.start(e,o))}},t}(),Yat=[srt,zrt,mat,Dat,Oat,Bat,cot,Nat,Cot,Zrt,Wat,xot,Nrt,Tnt,hot,Pat,qat,{menus:[{key:"enter",factory:function(){return new Kat}}]}];Un("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),Un("zh-CN",{listModule:{unOrderedList:"\u65E0\u5E8F\u5217\u8868",orderedList:"\u6709\u5E8F\u5217\u8868"}});var dj=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof _t.g!="undefined"?_t.g:typeof self!="undefined"?self:{};function $6(t){var e={exports:{}};return t(e,e.exports),e.exports}var ca,Dv,xv=function(t){return t&&t.Math==Math&&t},wt=xv(typeof globalThis=="object"&&globalThis)||xv(typeof window=="object"&&window)||xv(typeof self=="object"&&self)||xv(typeof dj=="object"&&dj)||function(){return this}()||Function("return this")(),pj=Function.prototype,H6=pj.bind,V6=pj.call,Xat=H6&&H6.bind(V6),Nt=H6?function(t){return t&&Xat(V6,t)}:function(t){return t&&function(){return V6.apply(t,arguments)}},Oe=function(t){try{return!!t()}catch(e){return!0}},Zat=Nt({}.toString),Jat=Nt("".slice),ii=function(t){return Jat(Zat(t),8,-1)},U6=wt.Object,Qat=Nt("".split),hj=Oe(function(){return!U6("z").propertyIsEnumerable(0)})?function(t){return ii(t)=="String"?Qat(t,""):U6(t)}:U6,tut=wt.TypeError,Sv=function(t){if(t==null)throw tut("Can't call method on "+t);return t},Hl=function(t){return hj(Sv(t))},eut=Object.defineProperty,W6=function(t,e){try{eut(wt,t,{value:e,configurable:!0,writable:!0})}catch(n){wt[t]=e}return e},fa=wt["__core-js_shared__"]||W6("__core-js_shared__",{}),G6=$6(function(t){(t.exports=function(e,n){return fa[e]||(fa[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),nut=wt.Object,Ld=function(t){return nut(Sv(t))},rut=Nt({}.hasOwnProperty),en=Object.hasOwn||function(t,e){return rut(Ld(t),e)},out=0,iut=Math.random(),aut=Nt(1 .toString),q6=function(t){return"Symbol("+(t===void 0?"":t)+")_"+aut(++out+iut,36)},ke=function(t){return typeof t=="function"},uut=function(t){return ke(t)?t:void 0},Rd=function(t,e){return arguments.length<2?uut(wt[t]):wt[t]&&wt[t][e]},K6=Rd("navigator","userAgent")||"",gj=wt.process,vj=wt.Deno,yj=gj&&gj.versions||vj&&vj.version,mj=yj&&yj.v8;mj&&(Dv=(ca=mj.split("."))[0]>0&&ca[0]<4?1:+(ca[0]+ca[1])),!Dv&&K6&&(!(ca=K6.match(/Edge\/(\d+)/))||ca[1]>=74)&&(ca=K6.match(/Chrome\/(\d+)/))&&(Dv=+ca[1]);var Cv,Y6=Dv,X6=!!Object.getOwnPropertySymbols&&!Oe(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Y6&&Y6<41}),Z6=X6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Md=G6("wks"),qu=wt.Symbol,bj=qu&&qu.for,sut=Z6?qu:qu&&qu.withoutSetter||q6,mn=function(t){if(!en(Md,t)||!X6&&typeof Md[t]!="string"){var e="Symbol."+t;X6&&en(qu,t)?Md[t]=qu[t]:Md[t]=Z6&&bj?bj(e):sut(e)}return Md[t]},Be=function(t){return typeof t=="object"?t!==null:ke(t)},lut=wt.String,cut=wt.TypeError,qn=function(t){if(Be(t))return t;throw cut(lut(t)+" is not an object")},da=!Oe(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),J6=wt.document,fut=Be(J6)&&Be(J6.createElement),Q6=function(t){return fut?J6.createElement(t):{}},wj=!da&&!Oe(function(){return Object.defineProperty(Q6("div"),"a",{get:function(){return 7}}).a!=7}),zd=Function.prototype.call,nn=zd.bind?zd.bind(zd):function(){return zd.apply(zd,arguments)},Av=Nt({}.isPrototypeOf),dut=wt.Object,t3=Z6?function(t){return typeof t=="symbol"}:function(t){var e=Rd("Symbol");return ke(e)&&Av(e.prototype,dut(t))},put=wt.String,e3=function(t){try{return put(t)}catch(e){return"Object"}},hut=wt.TypeError,n3=function(t){if(ke(t))return t;throw hut(e3(t)+" is not a function")},$d=function(t,e){var n=t[e];return n==null?void 0:n3(n)},gut=wt.TypeError,vut=wt.TypeError,yut=mn("toPrimitive"),r3=function(t){var e=function(n,r){if(!Be(n)||t3(n))return n;var o,i=$d(n,yut);if(i){if(r===void 0&&(r="default"),o=nn(i,n,r),!Be(o)||t3(o))return o;throw vut("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&ke(s=a.toString)&&!Be(l=nn(s,a))||ke(s=a.valueOf)&&!Be(l=nn(s,a))||u!=="string"&&ke(s=a.toString)&&!Be(l=nn(s,a)))return l;throw gut("Can't convert object to primitive value")}(n,r)}(t,"string");return t3(e)?e:e+""},mut=wt.TypeError,Ej=Object.defineProperty,Ku={f:da?Ej:function(t,e,n){if(qn(t),e=r3(e),qn(n),wj)try{return Ej(t,e,n)}catch(r){}if("get"in n||"set"in n)throw mut("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},but=Math.ceil,wut=Math.floor,Hd=function(t){var e=+t;return e!=e||e===0?0:(e>0?wut:but)(e)},Eut=Math.max,Dut=Math.min,o3=function(t,e){var n=Hd(t);return n<0?Eut(n+e,0):Dut(n,e)},xut=Math.min,Dj=function(t){return t>0?xut(Hd(t),9007199254740991):0},Vl=function(t){return Dj(t.length)},xj=function(t){return function(e,n,r){var o,i=Hl(e),a=Vl(i),u=o3(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},Sj={includes:xj(!0),indexOf:xj(!1)},Ov={},Sut=Sj.indexOf,Cj=Nt([].push),Aj=function(t,e){var n,r=Hl(t),o=0,i=[];for(n in r)!en(Ov,n)&&en(r,n)&&Cj(i,n);for(;e.length>o;)en(r,n=e[o++])&&(~Sut(i,n)||Cj(i,n));return i},kv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Cut=Object.keys||function(t){return Aj(t,kv)},Aut=da?Object.defineProperties:function(t,e){qn(t);for(var n,r=Hl(e),o=Cut(e),i=o.length,a=0;i>a;)Ku.f(t,n=o[a++],r[n]);return t},Out=Rd("document","documentElement"),Oj=G6("keys"),i3=function(t){return Oj[t]||(Oj[t]=q6(t))},kj=i3("IE_PROTO"),a3=function(){},Bj=function(t){return""},Fj=function(t){t.write(Bj("")),t.close();var e=t.parentWindow.Object;return t=null,e},Bv=function(){try{Cv=new ActiveXObject("htmlfile")}catch(r){}var t,e;Bv=typeof document!="undefined"?document.domain&&Cv?Fj(Cv):((e=Q6("iframe")).style.display="none",Out.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Bj("document.F=Object")),t.close(),t.F):Fj(Cv);for(var n=kv.length;n--;)delete Bv.prototype[kv[n]];return Bv()};Ov[kj]=!0;var u3=Object.create||function(t,e){var n;return t!==null?(a3.prototype=qn(t),n=new a3,a3.prototype=null,n[kj]=t):n=Bv(),e===void 0?n:Aut(n,e)},s3=mn("unscopables"),l3=Array.prototype;l3[s3]==null&&Ku.f(l3,s3,{configurable:!0,value:u3(null)});var Vd=function(t){l3[s3][t]=!0},Ul={},kut=Nt(Function.toString);ke(fa.inspectSource)||(fa.inspectSource=function(t){return kut(t)});var Fv,Ud,Tv,c3=fa.inspectSource,Tj=wt.WeakMap,Pj=ke(Tj)&&/native code/.test(c3(Tj)),Pv=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},pa=da?function(t,e,n){return Ku.f(t,e,Pv(1,n))}:function(t,e,n){return t[e]=n,t},f3=wt.TypeError,But=wt.WeakMap;if(Pj||fa.state){var Yu=fa.state||(fa.state=new But),Fut=Nt(Yu.get),jj=Nt(Yu.has),Tut=Nt(Yu.set);Fv=function(t,e){if(jj(Yu,t))throw new f3("Object already initialized");return e.facade=t,Tut(Yu,t,e),e},Ud=function(t){return Fut(Yu,t)||{}},Tv=function(t){return jj(Yu,t)}}else{var Wl=i3("state");Ov[Wl]=!0,Fv=function(t,e){if(en(t,Wl))throw new f3("Object already initialized");return e.facade=t,pa(t,Wl,e),e},Ud=function(t){return en(t,Wl)?t[Wl]:{}},Tv=function(t){return en(t,Wl)}}var Xu,_j,Nj,Ao={set:Fv,get:Ud,has:Tv,enforce:function(t){return Tv(t)?Ud(t):Fv(t,{})},getterFor:function(t){return function(e){var n;if(!Be(e)||(n=Ud(e)).type!==t)throw f3("Incompatible receiver, "+t+" required");return n}}},Ij={}.propertyIsEnumerable,Lj=Object.getOwnPropertyDescriptor,Put={f:Lj&&!Ij.call({1:2},1)?function(t){var e=Lj(this,t);return!!e&&e.enumerable}:Ij},Rj=Object.getOwnPropertyDescriptor,Mj={f:da?Rj:function(t,e){if(t=Hl(t),e=r3(e),wj)try{return Rj(t,e)}catch(n){}if(en(t,e))return Pv(!nn(Put.f,t,e),t[e])}},zj=Function.prototype,jut=da&&Object.getOwnPropertyDescriptor,d3=en(zj,"name"),p3={EXISTS:d3,PROPER:d3&&function(){}.name==="something",CONFIGURABLE:d3&&(!da||da&&jut(zj,"name").configurable)},Oo=$6(function(t){var e=p3.CONFIGURABLE,n=Ao.get,r=Ao.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;ke(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!en(u,"name")||e&&u.name!==d)&&pa(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==wt?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:pa(i,a,u)):f?i[a]=u:W6(a,u)})(Function.prototype,"toString",function(){return ke(this)&&n(this).source||c3(this)})}),_ut=kv.concat("length","prototype"),jv={f:Object.getOwnPropertyNames||function(t){return Aj(t,_ut)}},Nut={f:Object.getOwnPropertySymbols},Iut=Nt([].concat),Lut=Rd("Reflect","ownKeys")||function(t){var e=jv.f(qn(t)),n=Nut.f;return n?Iut(e,n(t)):e},Rut=function(t,e){for(var n=Lut(e),r=Ku.f,o=Mj.f,i=0;i=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");Ul.Arguments=Ul.Array,Vd("keys"),Vd("values"),Vd("entries");var Gj={};Gj[mn("toStringTag")]="z";var b3=String(Gj)==="[object z]",ost=mn("toStringTag"),ist=wt.Object,ast=ii(function(){return arguments}())=="Arguments",Lv=b3?ii:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch(a){}}(e=ist(t),ost))=="string"?n:ast?ii(e):(r=ii(e))=="Object"&&ke(e.callee)?"Arguments":r},ust=b3?{}.toString:function(){return"[object "+Lv(this)+"]"};b3||Oo(Object.prototype,"toString",ust,{unsafe:!0});var sst=wt.String,ai=function(t){if(Lv(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return sst(t)},lst=Nt("".charAt),qj=Nt("".charCodeAt),cst=Nt("".slice),Kj=function(t){return function(e,n){var r,o,i=ai(Sv(e)),a=Hd(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=qj(i,a))<55296||r>56319||a+1===u||(o=qj(i,a+1))<56320||o>57343?t?lst(i,a):r:t?cst(i,a,a+2):o-56320+(r-55296<<10)+65536}},Yj={codeAt:Kj(!1),charAt:Kj(!0)},fst=Yj.charAt,dst=Ao.set,pst=Ao.getterFor("String Iterator");Wj(String,"String",function(t){dst(this,{type:"String Iterator",string:ai(t),index:0})},function(){var t,e=pst(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=fst(n,r),e.index+=t.length,{value:t,done:!1})});var w3=function(t,e,n){for(var r in e)Oo(t,r,e[r],n);return t},hst=wt.Array,gst=Math.max,Xj=jv.f,Zj=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],vst={f:function(t){return Zj&&ii(t)=="Window"?function(e){try{return Xj(e)}catch(n){return function(r,o,i){for(var a,u,s,l,c=Vl(r),f=o3(void 0,c),p=o3(c,c),d=hst(gst(p-f,0)),m=0;fi;i++)if((u=y(t[i]))&&Av(n_,u))return u;return new Mv(!1)}r=function(h,b){var w=arguments.length<2?t_(h):b;if(n3(w))return qn(nn(w,h));throw Est(e3(h)+" is not iterable")}(t,o)}for(s=r.next;!(l=nn(s,r)).done;){try{u=y(l.value)}catch(h){e_(r,"throw",h)}if(typeof u=="object"&&u&&Av(n_,u))return u}return new Mv(!1)},xst=wt.TypeError,o_=function(t,e){if(Av(e,t))return t;throw xst("Incorrect invocation")},i_=mn("iterator"),a_=!1;try{var Sst=0,u_={next:function(){return{done:!!Sst++}},return:function(){a_=!0}};u_[i_]=function(){return this},Array.from(u_,function(){throw 2})}catch(t){}var x3=Array.isArray||function(t){return ii(t)=="Array"},s_=function(){},Cst=[],l_=Rd("Reflect","construct"),S3=/^\s*(?:class|function)\b/,Ast=Nt(S3.exec),Ost=!S3.exec(s_),Kd=function(t){if(!ke(t))return!1;try{return l_(s_,Cst,t),!0}catch(e){return!1}},kst=!l_||Oe(function(){var t;return Kd(Kd.call)||!Kd(Object)||!Kd(function(){t=!0})||t})?function(t){if(!ke(t))return!1;switch(Lv(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Ost||!!Ast(S3,c3(t))}:Kd,Bst=mn("species"),c_=wt.Array,f_=function(t,e){return new(function(n){var r;return x3(n)&&(r=n.constructor,(kst(r)&&(r===c_||x3(r.prototype))||Be(r)&&(r=r[Bst])===null)&&(r=void 0)),r===void 0?c_:r}(t))(e===0?0:e)},d_=Nt([].push),ga=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,m=Ld(s),g=hj(m),v=D3(l,c),y=Vl(g),h=0,b=f||f_,w=e?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),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:d_(w,p)}else switch(t){case 4:return!1;case 7:d_(w,p)}return i?-1:r||o?o:w}},C3={forEach:ga(0),map:ga(1),filter:ga(2),some:ga(3),every:ga(4),find:ga(5),findIndex:ga(6),filterReject:ga(7)},zv=E3.getWeakData,Fst=Ao.set,Tst=Ao.getterFor,Pst=C3.find,jst=C3.findIndex,_st=Nt([].splice),Nst=0,$v=function(t){return t.frozen||(t.frozen=new p_)},p_=function(){this.entries=[]},A3=function(t,e){return Pst(t.entries,function(n){return n[0]===e})};p_.prototype={get:function(t){var e=A3(this,t);if(e)return e[1]},has:function(t){return!!A3(this,t)},set:function(t,e){var n=A3(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=jst(this.entries,function(n){return n[0]===t});return~e&&_st(this.entries,e,1),!!~e}};var Yd,h_={getConstructor:function(t,e,n,r){var o=t(function(s,l){o_(s,i),Fst(s,{type:e,id:Nst++,frozen:void 0}),l!=null&&r_(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=Tst(e),u=function(s,l,c){var f=a(s),p=zv(qn(l),!0);return p===!0?$v(f).set(l,c):p[f.id]=c,s};return w3(i,{delete:function(s){var l=a(this);if(!Be(s))return!1;var c=zv(s);return c===!0?$v(l).delete(s):c&&en(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!Be(s))return!1;var c=zv(s);return c===!0?$v(l).has(s):c&&en(c,l.id)}}),w3(i,n?{get:function(s){var l=a(this);if(Be(s)){var c=zv(s);return c===!0?$v(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}},Hv=Ao.enforce,Ist=!wt.ActiveXObject&&"ActiveXObject"in wt,g_=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Lst=function(t,e,n){var r=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=r?"set":"add",a=wt[t],u=a&&a.prototype,s=a,l={},c=function(v){var y=Nt(u[v]);Oo(u,v,v=="add"?function(h){return y(this,h===0?0:h),this}:v=="delete"?function(h){return!(o&&!Be(h))&&y(this,h===0?0:h)}:v=="get"?function(h){return o&&!Be(h)?void 0:y(this,h===0?0:h)}:v=="has"?function(h){return!(o&&!Be(h))&&y(this,h===0?0:h)}:function(h,b){return y(this,h===0?0:h,b),this})};if(h3(t,!ke(a)||!(o||u.forEach&&!Oe(function(){new a().entries().next()}))))s=n.getConstructor(e,t,r,i),E3.enable();else if(h3(t,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=Oe(function(){f.has(1)}),m=function(v,y){if(!a_)return!1;var h=!1;try{var b={};b[i_]=function(){return{next:function(){return{done:h=!0}}}},function(w){new a(w)}(b)}catch(w){}return h}(),g=!o&&Oe(function(){for(var v=new a,y=5;y--;)v[i](y,y);return!v.has(-0)});m||((s=e(function(v,y){o_(v,u);var h=function(b,w,D){var S,x;return Nv&&ke(S=w.constructor)&&S!==D&&Be(x=S.prototype)&&x!==D.prototype&&Nv(b,x),b}(new a,v,s);return y!=null&&r_(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[t]=s,ha({global:!0,forced:s!=a},l),m3(s,t),o||n.setStrong(s,t,r),s}("WeakMap",g_,h_);if(Pj&&Ist){Yd=h_.getConstructor(g_,"WeakMap",!0),E3.enable();var Xd=Lst.prototype,v_=Nt(Xd.delete),Vv=Nt(Xd.has),y_=Nt(Xd.get),m_=Nt(Xd.set);w3(Xd,{delete:function(t){if(Be(t)&&!Zu(t)){var e=Hv(this);return e.frozen||(e.frozen=new Yd),v_(this,t)||e.frozen.delete(t)}return v_(this,t)},has:function(t){if(Be(t)&&!Zu(t)){var e=Hv(this);return e.frozen||(e.frozen=new Yd),Vv(this,t)||e.frozen.has(t)}return Vv(this,t)},get:function(t){if(Be(t)&&!Zu(t)){var e=Hv(this);return e.frozen||(e.frozen=new Yd),Vv(this,t)?y_(this,t):e.frozen.get(t)}return y_(this,t)},set:function(t,e){if(Be(t)&&!Zu(t)){var n=Hv(this);n.frozen||(n.frozen=new Yd),Vv(this,t)?m_(this,t,e):n.frozen.set(t,e)}else m_(this,t,e);return this}})}var b_={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},O3=Q6("span").classList,w_=O3&&O3.constructor&&O3.constructor.prototype,Rst=w_===Object.prototype?void 0:w_,k3=mn("iterator"),E_=mn("toStringTag"),B3=qd.values,D_=function(t,e){if(t){if(t[k3]!==B3)try{pa(t,k3,B3)}catch(r){t[k3]=B3}if(t[E_]||pa(t,E_,e),b_[e]){for(var n in qd)if(t[n]!==qd[n])try{pa(t,n,qd[n])}catch(r){t[n]=qd[n]}}}};for(var F3 in b_)D_(wt[F3]&&wt[F3].prototype,F3);D_(Rst,"DOMTokenList");var T3=new WeakMap,Mst={type:"list-item",renderElem:function(t,e,n){T3.set(t,n);var r=t,o=r.level,i=o===void 0?0:o,a=r.ordered,u={margin:"5px 0 5px "+20*i+"px"},s="";if(a!==void 0&&a){var l=function(f,p){var d=p,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=_.previous(D),x=E.node(f,S);if(x==null)break;var O=x[0],T=O.level,I=T===void 0?0:T,M=O.type,z=O.ordered;if(M!==m||I=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Zd(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function C_(t){return E.nodes(t,{at:t.selection||void 0,match:function(e){return A.findPath(t,e).length===1}})}var zst=Sj.includes;ha({target:"Array",proto:!0},{includes:function(t){return zst(this,t,arguments.length>1?arguments[1]:void 0)}}),Vd("includes");var A_,j3,$st=function(){var t=qn(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},_3=wt.RegExp,N3=Oe(function(){var t=_3("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),Hst=N3||Oe(function(){return!_3("a","y").sticky}),Vst={BROKEN_CARET:N3||Oe(function(){var t=_3("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:Hst,UNSUPPORTED_Y:N3},Ust=wt.RegExp,Wst=Oe(function(){var t=Ust(".","s");return!(t.dotAll&&t.exec(` `)&&t.flags==="s")}),Gst=wt.RegExp,qst=Oe(function(){var t=Gst("(?b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$c")!=="bc"}),Kst=Ao.get,Yst=G6("native-string-replace",String.prototype.replace),Uv=RegExp.prototype.exec,I3=Uv,Xst=Nt("".charAt),Zst=Nt("".indexOf),Jst=Nt("".replace),L3=Nt("".slice),R3=(j3=/b*/g,nn(Uv,A_=/a/,"a"),nn(Uv,j3,"a"),A_.lastIndex!==0||j3.lastIndex!==0),O_=Vst.BROKEN_CARET,M3=/()??/.exec("")[1]!==void 0;(R3||M3||O_||Wst||qst)&&(I3=function(t){var e,n,r,o,i,a,u,s=this,l=Kst(s),c=ai(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=nn(I3,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=O_&&s.sticky,m=nn($st,s),g=s.source,v=0,y=c;if(d&&(m=Jst(m,"y",""),Zst(m,"g")===-1&&(m+="g"),y=L3(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Xst(c,s.lastIndex-1)!==` `)&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",m)),M3&&(n=new RegExp("^"+g+"$(?!\\s)",m)),R3&&(r=s.lastIndex),o=nn(Uv,d?n:s,y),d?o?(o.input=L3(o.input,v),o[0]=L3(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:R3&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),M3&&o&&o.length>1&&nn(Yst,o[0],n,function(){for(i=1;iv?0:T===v?x===m?0:1:0}(t);if(a>0)for(var u=0;u",B_.push(i);var s=function(l){var c=T3.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=_.next(y),b=E.node(c,h);if(!b)return 0;var w=Zd(b,1)[0];if(A.getNodeType(w)!==p)return v+1;var D=w,S=D.ordered,x=S!==void 0&&S,O=D.level,T=O===void 0?0:O;return Tv?0:T===v?x===m?0:1:0}(t);if(s>0)for(u=0;u";return{html:"
      • "+e+"
      • ",prefix:n,suffix:r}}},alt=mn("species"),ult=C3.filter,slt=Y6>=51||!Oe(function(){var t=[];return(t.constructor={})[alt]=function(){return{foo:1}},t.filter(Boolean).foo!==1});ha({target:"Array",proto:!0,forced:!slt},{filter:function(t){return ult(this,t,arguments.length>1?arguments[1]:void 0)}});var z3=Function.prototype,F_=z3.apply,llt=z3.bind,T_=z3.call,clt=typeof Reflect=="object"&&Reflect.apply||(llt?T_.bind(F_):function(){return T_.apply(F_,arguments)}),P_=(mn("species"),RegExp.prototype),flt=Yj.charAt,dlt=function(t,e,n){return e+(n?flt(t,e).length:1)},plt=Math.floor,$3=Nt("".charAt),hlt=Nt("".replace),H3=Nt("".slice),glt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,vlt=/\$([$&'`]|\d{1,2})/g,ylt=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=vlt;return o!==void 0&&(o=Ld(o),s=glt),hlt(i,s,function(l,c){var f;switch($3(c,0)){case"$":return"$";case"&":return t;case"`":return H3(e,0,n);case"'":return H3(e,a);case"<":f=o[H3(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=plt(p/10);return d===0?l:d<=u?r[d-1]===void 0?$3(c,1):r[d-1]+$3(c,1):l}f=r[p-1]}return f===void 0?"":f})},mlt=wt.TypeError,blt=function(t,e){var n=t.exec;if(ke(n)){var r=nn(n,t,e);return r!==null&&qn(r),r}if(ii(t)==="RegExp")return nn(Wv,t,e);throw mlt("RegExp#exec called on incompatible receiver")},V3=mn("replace"),wlt=Math.max,Elt=Math.min,Dlt=Nt([].concat),U3=Nt([].push),j_=Nt("".indexOf),__=Nt("".slice),xlt="a".replace(/./,"$0")==="$0",N_=!!/./[V3]&&/./[V3]("a","$0")==="";(function(t,e,n,r){var o=mn(t),i=!Oe(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!Oe(function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=Nt(/./[o]),s=function(l,c,f){var p=N_?"$":"$0";return[function(d,m){var g=Sv(this),v=d==null?void 0:$d(d,V3);return v?nn(v,d,g,m):nn(c,ai(g),d,m)},function(d,m){var g=qn(this),v=ai(d);if(typeof m=="string"&&j_(m,p)===-1&&j_(m,"$<")===-1){var y=f(c,g,v,m);if(y.done)return y.value}var h=ke(m);h||(m=ai(m));var b=g.global;if(b){var w=g.unicode;g.lastIndex=0}for(var D=[];;){var S=blt(g,v);if(S===null||(U3(D,S),!b))break;ai(S[0])===""&&(g.lastIndex=dlt(v,Dj(g.lastIndex),w))}for(var x,O="",T=0,I=0;I=T&&(O+=__(v,T,z)+ot,T=z+M.length)}return O+__(v,T)}]}(0,""[t],function(l,c,f,p,d){var m=Nt(l),g=c.exec;return g===Wv||g===P_.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:m(f,c,p)}:{done:!1}});Oo(String.prototype,t,s[0]),Oo(P_,o,s[1])}})("replace",0,!!Oe(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$
        ")!=="7"})||!xlt||N_);var Slt=wt.TypeError,I_=function(t,e,n,r,o,i,a,u){for(var s,l,c=o,f=0,p=!!a&&D3(a,u);f0&&x3(s))l=Vl(s),c=I_(t,e,s,l,c,i-1)-1;else{if(c>=9007199254740991)throw Slt("Exceed the acceptable array length");t[c]=s}c++}f++}return c},Clt=I_;function W3(t){return t.length?t[0].tagName.toLowerCase():""}ha({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=Ld(this),n=Vl(e),r=f_(e,0);return r.length=Clt(r,e,e,n,0,t===void 0?1:Hd(t)),r}}),Vd("flat"),ha({global:!0},{globalThis:wt}),br&&(k.fn.append=br),mr&&(k.fn.attr=mr),Hs&&(k.fn.parent=Hs);var Alt={renderElems:[Mst],editorPlugin:function(t){var e=t.deleteBackward,n=t.handleTab,r=t.normalizeNode,o=t;return o.deleteBackward=function(i){var a=o.selection;if(a!=null)if(R.isExpanded(a))e(i);else{var u=A.getSelectedNodeByType(o,"list-item");if(u!=null)if(a.focus.offset!==0)e(i);else{var s=u.level,l=s===void 0?0:s;l>0?N.setNodes(o,{level:l-1}):N.setNodes(o,{type:"paragraph",ordered:void 0,level:void 0})}else e(i)}else e(i)},o.handleTab=function(){var i,a,u,s,l=o.selection;if(l!=null){if(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 N.setNodes(o,{level:p+1})}}if(R.isExpanded(l)){var d=0,m=!1;try{for(var g=S_(C_(o)),v=g.next();!v.done;v=g.next()){var y=Zd(v.value,1)[0];A.getNodeType(y)==="list-item"?d++:m=!0}}catch(x){i={error:x}}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=S_(C_(o)),b=h.next();!b.done;b=h.next()){var w=Zd(b.value,2),D=(y=w[0],w[1]),S=y.level;p=S===void 0?0:S,N.setNodes(o,{level:p+1},{at:D})}}catch(x){u={error:x}}finally{try{b&&!b.done&&(s=h.return)&&s.call(h)}finally{if(u)throw u.error}}}else n()}else n()},o.normalizeNode=function(i){var a=Zd(i,2),u=a[0],s=a[1],l=A.getNodeType(u);return l!=="bulleted-list"&&l!=="numbered-list"||N.unwrapNodes(o,{at:s}),r([u,s])},o},menus:[rlt,olt],elemsToHtml:[ilt],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(t,e,n){return e.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=k(t);(e=e.filter(function(a){return!!it.isText(a)||!!n.isInline(a)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]);var o=function(a){return W3(a.parent())==="ol"}(r),i=function(a){for(var u=0,s=a.parent(),l=W3(s);l==="ul"||l==="ol";)l=W3(s=s.parent()),u++;return u-1}(r);return{type:"list-item",ordered:o,level:i,children:e}}}]},L_=$o(function(t,e){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Array]",a="[object Boolean]",u="[object Date]",s="[object Error]",l="[object Function]",c="[object Map]",f="[object Number]",p="[object Object]",d="[object Promise]",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*)$/,x={};x["[object Float32Array]"]=x["[object Float64Array]"]=x["[object Int8Array]"]=x["[object Int16Array]"]=x["[object Int32Array]"]=x["[object Uint8Array]"]=x["[object Uint8ClampedArray]"]=x["[object Uint16Array]"]=x["[object Uint32Array]"]=!0,x[o]=x[i]=x[b]=x[a]=x[w]=x[u]=x[s]=x[l]=x[c]=x[f]=x[p]=x[m]=x[g]=x[v]=x[h]=!1;var O=typeof te=="object"&&te&&te.Object===Object&&te,T=typeof self=="object"&&self&&self.Object===Object&&self,I=O||T||Function("return this")(),M=e&&!e.nodeType&&e,z=M&&t&&!t.nodeType&&t,Y=z&&z.exports===M,W=Y&&O.process,G=function(){try{return W&&W.binding&&W.binding("util")}catch(P){}}(),K=G&&G.isTypedArray;function ot(P,L){for(var J=-1,gt=P==null?0:P.length;++J$))return!1;var st=Lt.get(P);if(st&&Lt.get(L))return st==L;var $t=-1,me=!0,ue=2&J?new hn:void 0;for(Lt.set(P,L),Lt.set(L,P);++$t<$;){var Yt=P[$t],on=L[$t];if(gt)var Tn=F?gt(on,Yt,$t,L,P,Lt):gt(Yt,on,$t,P,L,Lt);if(Tn!==void 0){if(Tn)continue;me=!1;break}if(ue){if(!ot(L,function(ws,yi){if(Wa=yi,!ue.has(Wa)&&(Yt===ws||ae(Yt,ws,J,gt,Lt)))return ue.push(yi);var Wa})){me=!1;break}}else if(Yt!==on&&!ae(Yt,on,J,gt,Lt)){me=!1;break}}return Lt.delete(P),Lt.delete(L),me}function hi(P){return function(L,J,gt){var ae=J(L);return vi(L)?ae:function(Lt,F){for(var $=-1,et=F.length,st=Lt.length;++$-1},Fn.prototype.set=function(P,L){var J=this.__data__,gt=Ha(J,P);return gt<0?(++this.size,J.push([P,L])):J[gt][1]=L,this},In.prototype.clear=function(){this.size=0,this.__data__={hash:new Bn,map:new(Ee||Fn),string:new Bn}},In.prototype.delete=function(P){var L=uo(this,P).delete(P);return this.size-=L?1:0,L},In.prototype.get=function(P){return uo(this,P).get(P)},In.prototype.has=function(P){return uo(this,P).has(P)},In.prototype.set=function(P,L){var J=uo(this,P),gt=J.size;return J.set(P,L),this.size+=J.size==gt?0:1,this},hn.prototype.add=hn.prototype.push=function(P){return this.__data__.set(P,n),this},hn.prototype.has=function(P){return this.__data__.has(P)},Rr.prototype.clear=function(){this.__data__=new Fn,this.size=0},Rr.prototype.delete=function(P){var L=this.__data__,J=L.delete(P);return this.size=L.size,J},Rr.prototype.get=function(P){return this.__data__.get(P)},Rr.prototype.has=function(P){return this.__data__.has(P)},Rr.prototype.set=function(P,L){var J=this.__data__;if(J instanceof Fn){var gt=J.__data__;if(!Ee||gt.length<199)return gt.push([P,L]),this.size=++J.size,this;J=this.__data__=new In(gt)}return J.set(P,L),this.size=J.size,this};var jy=Bt?function(P){return P==null?[]:(P=Object(P),function(L,J){for(var gt=-1,ae=L==null?0:L.length,Lt=0,F=[];++gt-1&&P%1==0&&P-1&&P%1==0&&P<=r}function Ny(P){var L=typeof P;return P!=null&&(L=="object"||L=="function")}function Ua(P){return P!=null&&typeof P=="object"}var zo=K?function(P){return function(L){return P(L)}}(K):function(P){return Ua(P)&&Mo(P.length)&&!!x[pi(P)]};function Iy(P){return(L=P)!=null&&Mo(L.length)&&!Dh(L)?wh(P):ao(P);var L}t.exports=function(P,L){return bs(P,L)}});Un("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"}}),Un("zh-CN",{tableModule:{deleteCol:"\u5220\u9664\u5217",deleteRow:"\u5220\u9664\u884C",deleteTable:"\u5220\u9664\u8868\u683C",widthAuto:"\u5BBD\u5EA6\u81EA\u9002\u5E94",insertCol:"\u63D2\u5165\u5217",insertRow:"\u63D2\u5165\u884C",insertTable:"\u63D2\u5165\u8868\u683C",header:"\u8868\u5934"}});var R_=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof _t.g!="undefined"?_t.g:typeof self!="undefined"?self:{};function M_(t){var e={exports:{}};return t(e,e.exports),e.exports}var va,Gv,qv=function(t){return t&&t.Math==Math&&t},Pt=qv(typeof globalThis=="object"&&globalThis)||qv(typeof window=="object"&&window)||qv(typeof self=="object"&&self)||qv(typeof R_=="object"&&R_)||function(){return this}()||Function("return this")(),Ye=function(t){try{return!!t()}catch(e){return!0}},ya=!Ye(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Jd=Function.prototype.call,Xe=Jd.bind?Jd.bind(Jd):function(){return Jd.apply(Jd,arguments)},z_={}.propertyIsEnumerable,$_=Object.getOwnPropertyDescriptor,Olt={f:$_&&!z_.call({1:2},1)?function(t){var e=$_(this,t);return!!e&&e.enumerable}:z_},G3=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},H_=Function.prototype,q3=H_.bind,K3=H_.call,klt=q3&&q3.bind(K3),Rt=q3?function(t){return t&&klt(K3,t)}:function(t){return t&&function(){return K3.apply(t,arguments)}},Blt=Rt({}.toString),Flt=Rt("".slice),ma=function(t){return Flt(Blt(t),8,-1)},Y3=Pt.Object,Tlt=Rt("".split),V_=Ye(function(){return!Y3("z").propertyIsEnumerable(0)})?function(t){return ma(t)=="String"?Tlt(t,""):Y3(t)}:Y3,Plt=Pt.TypeError,ba=function(t){if(t==null)throw Plt("Can't call method on "+t);return t},Qd=function(t){return V_(ba(t))},bn=function(t){return typeof t=="function"},Pr=function(t){return typeof t=="object"?t!==null:bn(t)},jlt=function(t){return bn(t)?t:void 0},tp=function(t,e){return arguments.length<2?jlt(Pt[t]):Pt[t]&&Pt[t][e]},U_=Rt({}.isPrototypeOf),X3=tp("navigator","userAgent")||"",W_=Pt.process,G_=Pt.Deno,q_=W_&&W_.versions||G_&&G_.version,K_=q_&&q_.v8;K_&&(Gv=(va=K_.split("."))[0]>0&&va[0]<4?1:+(va[0]+va[1])),!Gv&&X3&&(!(va=X3.match(/Edge\/(\d+)/))||va[1]>=74)&&(va=X3.match(/Chrome\/(\d+)/))&&(Gv=+va[1]);var Z3=Gv,J3=!!Object.getOwnPropertySymbols&&!Ye(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Z3&&Z3<41}),Q3=J3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",_lt=Pt.Object,t5=Q3?function(t){return typeof t=="symbol"}:function(t){var e=tp("Symbol");return bn(e)&&U_(e.prototype,_lt(t))},Nlt=Pt.String,Y_=function(t){try{return Nlt(t)}catch(e){return"Object"}},Ilt=Pt.TypeError,X_=function(t){if(bn(t))return t;throw Ilt(Y_(t)+" is not a function")},e5=function(t,e){var n=t[e];return n==null?void 0:X_(n)},Llt=Pt.TypeError,Rlt=Object.defineProperty,n5=function(t,e){try{Rlt(Pt,t,{value:e,configurable:!0,writable:!0})}catch(n){Pt[t]=e}return e},wa=Pt["__core-js_shared__"]||n5("__core-js_shared__",{}),r5=M_(function(t){(t.exports=function(e,n){return wa[e]||(wa[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),Mlt=Pt.Object,o5=function(t){return Mlt(ba(t))},zlt=Rt({}.hasOwnProperty),jr=Object.hasOwn||function(t,e){return zlt(o5(t),e)},$lt=0,Hlt=Math.random(),Vlt=Rt(1 .toString),Z_=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Vlt(++$lt+Hlt,36)},ep=r5("wks"),Ju=Pt.Symbol,J_=Ju&&Ju.for,Ult=Q3?Ju:Ju&&Ju.withoutSetter||Z_,_r=function(t){if(!jr(ep,t)||!J3&&typeof ep[t]!="string"){var e="Symbol."+t;J3&&jr(Ju,t)?ep[t]=Ju[t]:ep[t]=Q3&&J_?J_(e):Ult(e)}return ep[t]},Wlt=Pt.TypeError,Glt=_r("toPrimitive"),i5=function(t){var e=function(n,r){if(!Pr(n)||t5(n))return n;var o,i=e5(n,Glt);if(i){if(r===void 0&&(r="default"),o=Xe(i,n,r),!Pr(o)||t5(o))return o;throw Wlt("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&bn(s=a.toString)&&!Pr(l=Xe(s,a))||bn(s=a.valueOf)&&!Pr(l=Xe(s,a))||u!=="string"&&bn(s=a.toString)&&!Pr(l=Xe(s,a)))return l;throw Llt("Can't convert object to primitive value")}(n,r)}(t,"string");return t5(e)?e:e+""},a5=Pt.document,qlt=Pr(a5)&&Pr(a5.createElement),u5=function(t){return qlt?a5.createElement(t):{}},Q_=!ya&&!Ye(function(){return Object.defineProperty(u5("div"),"a",{get:function(){return 7}}).a!=7}),tN=Object.getOwnPropertyDescriptor,eN={f:ya?tN:function(t,e){if(t=Qd(t),e=i5(e),Q_)try{return tN(t,e)}catch(n){}if(jr(t,e))return G3(!Xe(Olt.f,t,e),t[e])}},Klt=Pt.String,Ylt=Pt.TypeError,Nr=function(t){if(Pr(t))return t;throw Ylt(Klt(t)+" is not an object")},Xlt=Pt.TypeError,nN=Object.defineProperty,np={f:ya?nN:function(t,e,n){if(Nr(t),e=i5(e),Nr(n),Q_)try{return nN(t,e,n)}catch(r){}if("get"in n||"set"in n)throw Xlt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Gl=ya?function(t,e,n){return np.f(t,e,G3(1,n))}:function(t,e,n){return t[e]=n,t},Zlt=Rt(Function.toString);bn(wa.inspectSource)||(wa.inspectSource=function(t){return Zlt(t)});var Kv,rp,Yv,s5=wa.inspectSource,rN=Pt.WeakMap,Jlt=bn(rN)&&/native code/.test(s5(rN)),oN=r5("keys"),iN=function(t){return oN[t]||(oN[t]=Z_(t))},l5={},c5=Pt.TypeError,Qlt=Pt.WeakMap;if(Jlt||wa.state){var Qu=wa.state||(wa.state=new Qlt),tct=Rt(Qu.get),aN=Rt(Qu.has),ect=Rt(Qu.set);Kv=function(t,e){if(aN(Qu,t))throw new c5("Object already initialized");return e.facade=t,ect(Qu,t,e),e},rp=function(t){return tct(Qu,t)||{}},Yv=function(t){return aN(Qu,t)}}else{var ql=iN("state");l5[ql]=!0,Kv=function(t,e){if(jr(t,ql))throw new c5("Object already initialized");return e.facade=t,Gl(t,ql,e),e},rp=function(t){return jr(t,ql)?t[ql]:{}},Yv=function(t){return jr(t,ql)}}var f5={set:Kv,get:rp,has:Yv,enforce:function(t){return Yv(t)?rp(t):Kv(t,{})},getterFor:function(t){return function(e){var n;if(!Pr(e)||(n=rp(e)).type!==t)throw c5("Incompatible receiver, "+t+" required");return n}}},uN=Function.prototype,nct=ya&&Object.getOwnPropertyDescriptor,d5=jr(uN,"name"),p5={EXISTS:d5,PROPER:d5&&function(){}.name==="something",CONFIGURABLE:d5&&(!ya||ya&&nct(uN,"name").configurable)},op=M_(function(t){var e=p5.CONFIGURABLE,n=f5.get,r=f5.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;bn(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!jr(u,"name")||e&&u.name!==d)&&Gl(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==Pt?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Gl(i,a,u)):f?i[a]=u:n5(a,u)})(Function.prototype,"toString",function(){return bn(this)&&n(this).source||s5(this)})}),rct=Math.ceil,oct=Math.floor,Xv=function(t){var e=+t;return e!=e||e===0?0:(e>0?oct:rct)(e)},ict=Math.max,act=Math.min,ip=function(t,e){var n=Xv(t);return n<0?ict(n+e,0):act(n,e)},uct=Math.min,h5=function(t){return t>0?uct(Xv(t),9007199254740991):0},Zv=function(t){return h5(t.length)},sN=function(t){return function(e,n,r){var o,i=Qd(e),a=Zv(i),u=ip(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},sct=(sN(!0),sN(!1)),lN=Rt([].push),cN=function(t,e){var n,r=Qd(t),o=0,i=[];for(n in r)!jr(l5,n)&&jr(r,n)&&lN(i,n);for(;e.length>o;)jr(r,n=e[o++])&&(~sct(i,n)||lN(i,n));return i},Jv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],lct=Jv.concat("length","prototype"),cct={f:Object.getOwnPropertyNames||function(t){return cN(t,lct)}},fct={f:Object.getOwnPropertySymbols},dct=Rt([].concat),pct=tp("Reflect","ownKeys")||function(t){var e=cct.f(Nr(t)),n=fct.f;return n?dct(e,n(t)):e},hct=function(t,e){for(var n=pct(e),r=np.f,o=eN.f,i=0;i3})},{anchor:function(t){return e=t,n=Cn(ba(this)),r=""+n+"";var e,n,r}});var Qv,dN=function(){var t=Nr(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},y5=Pt.RegExp,m5=Ye(function(){var t=y5("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),kct=m5||Ye(function(){return!y5("a","y").sticky}),pN={BROKEN_CARET:m5||Ye(function(){var t=y5("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:kct,UNSUPPORTED_Y:m5},Bct=Object.keys||function(t){return cN(t,Jv)},Fct=ya?Object.defineProperties:function(t,e){Nr(t);for(var n,r=Qd(e),o=Bct(e),i=o.length,a=0;i>a;)np.f(t,n=o[a++],r[n]);return t},Tct=tp("document","documentElement"),hN=iN("IE_PROTO"),b5=function(){},gN=function(t){return""},vN=function(t){t.write(gN("")),t.close();var e=t.parentWindow.Object;return t=null,e},t1=function(){try{Qv=new ActiveXObject("htmlfile")}catch(r){}var t,e;t1=typeof document!="undefined"?document.domain&&Qv?vN(Qv):((e=u5("iframe")).style.display="none",Tct.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(gN("document.F=Object")),t.close(),t.F):vN(Qv);for(var n=Jv.length;n--;)delete t1.prototype[Jv[n]];return t1()};l5[hN]=!0;var yN,w5,mN=Object.create||function(t,e){var n;return t!==null?(b5.prototype=Nr(t),n=new b5,b5.prototype=null,n[hN]=t):n=t1(),e===void 0?n:Fct(n,e)},Pct=Pt.RegExp,jct=Ye(function(){var t=Pct(".","s");return!(t.dotAll&&t.exec(` `)&&t.flags==="s")}),_ct=Pt.RegExp,Nct=Ye(function(){var t=_ct("(?b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$c")!=="bc"}),Ict=f5.get,Lct=r5("native-string-replace",String.prototype.replace),e1=RegExp.prototype.exec,E5=e1,Rct=Rt("".charAt),Mct=Rt("".indexOf),zct=Rt("".replace),D5=Rt("".slice),x5=(w5=/b*/g,Xe(e1,yN=/a/,"a"),Xe(e1,w5,"a"),yN.lastIndex!==0||w5.lastIndex!==0),bN=pN.BROKEN_CARET,S5=/()??/.exec("")[1]!==void 0;(x5||S5||bN||jct||Nct)&&(E5=function(t){var e,n,r,o,i,a,u,s=this,l=Ict(s),c=Cn(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Xe(E5,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=bN&&s.sticky,m=Xe(dN,s),g=s.source,v=0,y=c;if(d&&(m=zct(m,"y",""),Mct(m,"g")===-1&&(m+="g"),y=D5(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Rct(c,s.lastIndex-1)!==` `)&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",m)),S5&&(n=new RegExp("^"+g+"$(?!\\s)",m)),x5&&(r=s.lastIndex),o=Xe(e1,d?n:s,y),d?o?(o.input=D5(o.input,v),o[0]=D5(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:x5&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),S5&&o&&o.length>1&&Xe(Lct,o[0],n,function(){for(i=1;i=51||!Ye(function(){var e=[];return(e.constructor={})[Uct]=function(){return{foo:1}},e[t](Boolean).foo!==1})},Wct=Rt([].slice),Gct=O5("slice"),qct=_r("species"),k5=Pt.Array,Kct=Math.max;function to(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function xN(t){var e=t.selection;if(e==null)return!1;var n=to(E.nodes(t,{match:function(i){return A.checkNodeType(i,"table-cell")}}),1)[0];if(n){var r=to(n,2)[1],o=E.start(t,r);if(Ft.equals(e.anchor,o))return!0}return!1}function SN(t,e){var n,r,o=E.nodes(t,{at:e,match:function(s){return A.getNodeType(s)==="table"}}),i=!1;try{for(var a=function(s){var l=typeof Symbol=="function"&&Symbol.iterator,c=l&&s[l],f=0;if(c)return c.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&f>=s.length&&(s=void 0),{value:s&&s[f++],done:!s}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")}(o),u=a.next();!u.done;u=a.next())u.value,i=!0}catch(s){n={error:s}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i}Ea({target:"Array",proto:!0,forced:!Gct},{slice:function(t,e){var n,r,o,i=Qd(this),a=Zv(i),u=ip(t,a),s=ip(e===void 0?a:e,a);if(n1(i)&&(n=i.constructor,(A5(n)&&(n===k5||n1(n.prototype))||Pr(n)&&(n=n[qct])===null)&&(n=void 0),n===k5||n===void 0))return Wct(i,u,s);for(r=new(n===void 0?k5:n)(Kct(s-u,0)),o=0;uh;h++)if((u||h in g)&&(d=v(p=g[h],h,m),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:ON(w,p)}else switch(t){case 4:return!1;case 7:ON(w,p)}return i?-1:r||o?o:w}},r1={forEach:Da(0),map:Da(1),filter:Da(2),some:Da(3),every:Da(4),find:Da(5),findIndex:Da(6),filterReject:Da(7)},Zct=r1.map;Ea({target:"Array",proto:!0,forced:!O5("map")},{map:function(t){return Zct(this,t,arguments.length>1?arguments[1]:void 0)}});var Jct=g5?{}.toString:function(){return"[object "+v5(this)+"]"};function o1(t){var e=t.children||[];return e.length===0?[]:(e[0]||{}).children||[]}function kN(t){return o1(t).every(function(e){return!!e.isHeader})}g5||op(Object.prototype,"toString",Jct,{unsafe:!0});var Qct=p5.PROPER,B5=RegExp.prototype,BN=B5.toString,tft=Rt(dN),eft=Ye(function(){return BN.call({source:"a",flags:"b"})!="/a/b"}),nft=Qct&&BN.name!="toString";(eft||nft)&&op(RegExp.prototype,"toString",function(){var t=Nr(this),e=Cn(t.source),n=t.flags;return"/"+e+"/"+Cn(n===void 0&&U_(B5,t)&&!("flags"in B5)?tft(t):n)},{unsafe:!0});var F5=_r("unscopables"),T5=Array.prototype;T5[F5]==null&&np.f(T5,F5,{configurable:!0,value:mN(null)});var rft=r1.find,FN=!0;"find"in[]&&Array(1).find(function(){FN=!1}),Ea({target:"Array",proto:!0,forced:FN},{find:function(t){return rft(this,t,arguments.length>1?arguments[1]:void 0)}}),T5[F5].find=!0;var P5=Function.prototype,TN=P5.apply,oft=P5.bind,PN=P5.call,jN=typeof Reflect=="object"&&Reflect.apply||(oft?PN.bind(TN):function(){return PN.apply(TN,arguments)}),ift=_r("species"),j5=RegExp.prototype,_N=function(t,e,n,r){var o=_r(t),i=!Ye(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!Ye(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[ift]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=Rt(/./[o]),s=e(o,""[t],function(l,c,f,p,d){var m=Rt(l),g=c.exec;return g===up||g===j5.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:m(f,c,p)}:{done:!1}});op(String.prototype,t,s[0]),op(j5,o,s[1])}r&&Gl(j5[o],"sham",!0)},aft=_r("match"),uft=Pt.TypeError,sft=_r("species"),lft=Rt("".charAt),NN=Rt("".charCodeAt),cft=Rt("".slice),IN=function(t){return function(e,n){var r,o,i=Cn(ba(e)),a=Xv(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=NN(i,a))<55296||r>56319||a+1===u||(o=NN(i,a+1))<56320||o>57343?t?lft(i,a):r:t?cft(i,a,a+2):o-56320+(r-55296<<10)+65536}},fft=(IN(!1),IN(!0)),LN=function(t,e,n){return e+(n?fft(t,e).length:1)},dft=Pt.Array,pft=Math.max,RN=function(t,e,n){for(var r=Zv(t),o=ip(e,r),i=ip(n===void 0?r:n,r),a=dft(pft(i-o,0)),u=0;o1||"".split(/.?/).length?function(o,i){var a,u,s=Cn(ba(this)),l=i===void 0?4294967295:i>>>0;if(l===0)return[];if(o===void 0)return[s];if(!Pr(a=o)||!((u=a[aft])!==void 0?u:ma(a)=="RegExp"))return Xe(e,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=Xe(up,v,s))&&!((f=v.lastIndex)>g&&(Yl(d,lp(s,g,c.index)),c.length>1&&c.index=l));)v.lastIndex===c.index&&v.lastIndex++;return g===s.length?!p&&vft(v,"")||Yl(d,""):Yl(d,lp(s,g)),d.length>l?RN(d,0,l):d}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Xe(e,this,o,i)}:e,[function(o,i){var a=ba(this),u=o==null?void 0:e5(o,t);return u?Xe(u,o,a,i):Xe(r,Cn(a),o,i)},function(o,i){var a=Nr(this),u=Cn(o),s=n(r,a,u,i,r!==e);if(s.done)return s.value;var l=function(w,D){var S,x=Nr(w).constructor;return x===void 0||(S=Nr(x)[sft])==null?D:function(O){if(A5(O))return O;throw uft(Y_(O)+" is not a constructor")}(S)}(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Kl?"g":"y"),p=new l(Kl?"^(?:"+a.source+")":a,f),d=i===void 0?4294967295:i>>>0;if(d===0)return[];if(u.length===0)return _5(p,u)===null?[u]:[];for(var m=0,g=0,v=[];g=0,v=Ft.compare(f,m)<=0&&Ft.compare(f,d)>=0;return!!(g&&v&&_.equals(c.path.slice(0,3),f.path.slice(0,3)))}(n,t),o=t.width,i=o===void 0?"auto":o,a=bt("div",{className:"table-container","data-selected":A.isNodeSelected(n,t),on:{mousedown:function(u){if(u.target.tagName==="DIV"&&u.preventDefault(),!n.isDisabled()){var s=A.findPath(n,t),l=E.start(n,s),c=n.selection;c!=null?c.anchor.path[0]!==s[0]&&n.select(l):n.select(l)}}}},bt("table",{width:i,contentEditable:r},bt("colgroup",null,o1(t).map(function(u){var s=u.width;return bt("col",{width:s===void 0?"auto":s})})),bt("tbody",null,e)));return a}},xft={type:"table-row",renderElem:function(t,e,n){return bt("tr",null,e)}},Sft={type:"table-cell",renderElem:function(t,e,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&&o1(g).some(function(v){return v===d})}(n,t),o=t,i=o.colSpan,a=i===void 0?1:i,u=o.rowSpan,s=u===void 0?1:u,l=o.isHeader,c=l!==void 0&&l;if(!r)return bt("td",{colSpan:a,rowSpan:s},e);var f=bt(c?"th":"td",{colSpan:a,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:cu(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;cp||(b>g+v-5&&by&&w1?arguments[1]:void 0)}});var Oft=Math.floor,L5=Rt("".charAt),kft=Rt("".replace),R5=Rt("".slice),Bft=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Fft=/\$([$&'`]|\d{1,2})/g,Tft=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=Fft;return o!==void 0&&(o=o5(o),s=Bft),kft(i,s,function(l,c){var f;switch(L5(c,0)){case"$":return"$";case"&":return t;case"`":return R5(e,0,n);case"'":return R5(e,a);case"<":f=o[R5(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=Oft(p/10);return d===0?l:d<=u?r[d-1]===void 0?L5(c,1):r[d-1]+L5(c,1):l}f=r[p-1]}return f===void 0?"":f})},M5=_r("replace"),Pft=Math.max,jft=Math.min,_ft=Rt([].concat),z5=Rt([].push),GN=Rt("".indexOf),qN=Rt("".slice),Nft="a".replace(/./,"$0")==="$0",KN=!!/./[M5]&&/./[M5]("a","$0")==="";_N("replace",function(t,e,n){var r=KN?"$":"$0";return[function(o,i){var a=ba(this),u=o==null?void 0:e5(o,M5);return u?Xe(u,o,a,i):Xe(e,Cn(a),o,i)},function(o,i){var a=Nr(this),u=Cn(o);if(typeof i=="string"&&GN(i,r)===-1&&GN(i,"$<")===-1){var s=n(e,a,u,i);if(s.done)return s.value}var l=bn(i);l||(i=Cn(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var p=[];;){var d=_5(a,u);if(d===null||(z5(p,d),!c))break;Cn(d[0])===""&&(a.lastIndex=LN(u,h5(a.lastIndex),f))}for(var m,g="",v=0,y=0;y=v&&(g+=qN(u,v,b)+O,v=b+h.length)}return g+qN(u,v)}]},!!Ye(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$")!=="7"})||!Nft||KN);var Ift={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=k(t);(e=e.filter(function(u){return!!it.isText(u)||!!n.isInline(u)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]);var o=parseInt(r.attr("colSpan")||"1"),i=parseInt(r.attr("rowSpan")||"1"),a=r.attr("width")||"auto";return{type:"table-cell",isHeader:$N(r)==="th",colSpan:o,rowSpan:i,width:a,children:e}}},Lft={selector:"tr:not([data-w-e-type])",parseElemHtml:function(t,e,n){return{type:"table-row",children:e.filter(function(r){return A.getNodeType(r)==="table-cell"})}}},Rft={selector:"table:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=k(t),o="auto";return function(i,a){for(var u="",s=(i.attr("style")||"").split(";"),l=s.length,c=0;c',this.tag="button",this.showDropPanel=!0,this.$content=null}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!R.isCollapsed(n)||!!A.getSelectedElems(e).some(function(r){var o=A.getNodeType(r);return o==="pre"||o==="table"||o==="list-item"||!!e.isVoid(r)})},t.prototype.getPanelContentElem=function(e){var n=this;if(this.$content)return this.$content[0];for(var r=k('
        '),o=k("0 × 0"),i=k("
        "),a=0;a<10;a++){for(var u=k(""),s=0;s<10;s++){var l=k("");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(e,m+1,d+1)}})}i.append(u)}return r.append(i),r.append(o),this.$content=r,r[0]},t.prototype.insertTable=function(e,n,r){var o=parseInt(n,10),i=parseInt(r,10);if(o&&i&&!(o<=0||i<=0)){A.isSelectedEmptyParagraph(e)&&N.removeNodes(e,{mode:"highest"});var a=function(u,s){for(var l=[],c=0;c',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){this.isDisabled(e)||N.removeNodes(e,{mode:"highest"})},t}(),$ft=function(){function t(){this.title=tt("tableModule.insertRow"),this.iconSvg='',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!R.isCollapsed(n)||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=to(E.nodes(e,{match:function(d){return A.checkNodeType(d,"table-cell")},universal:!0}),1),o=to(r[0],2),i=o[0],a=o[1],u=A.getParentNode(e,i),s=(u==null?void 0:u.children.length)||0;if(s!==0){for(var l={type:"table-row",children:[]},c=0;c',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!R.isCollapsed(n)||A.getSelectedNodeByType(e,"table-row")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=to(E.nodes(e,{match:function(s){return A.checkNodeType(s,"table-row")},universal:!0}),1),o=to(r[0],2),i=o[0],a=o[1],u=A.getParentNode(e,i);((u==null?void 0:u.children.length)||0)<=1?N.removeNodes(e,{mode:"highest"}):N.removeNodes(e,{at:a})}},t}(),YN={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},$5=u5("span").classList,XN=$5&&$5.constructor&&$5.constructor.prototype,Vft=XN===Object.prototype?void 0:XN,Uft=r1.forEach,Wft=function(t,e){var n=[].forEach;return!!n&&Ye(function(){n.call(null,function(){throw 1},1)})}(),H5=Wft?[].forEach:function(t){return Uft(this,t,arguments.length>1?arguments[1]:void 0)},ZN=function(t){if(t&&t.forEach!==H5)try{Gl(t,"forEach",H5)}catch(e){t.forEach=H5}};for(var V5 in YN)YN[V5]&&ZN(Pt[V5]&&Pt[V5].prototype);ZN(Vft);var Gft=function(){function t(){this.title=tt("tableModule.insertCol"),this.iconSvg='',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!R.isCollapsed(n)||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=to(E.nodes(e,{match:function(l){return A.checkNodeType(l,"table-cell")},universal:!0}),1),o=to(r[0],2),i=o[0],a=o[1],u=A.getParentNode(e,i);if(u!=null){var s=A.getParentNode(e,u);s!=null&&(s.children||[]).forEach(function(l,c){ft.isElement(l)&&(l.children||[]).forEach(function(f){var p=A.findPath(e,f);if(p.length===a.length&&L_(p.slice(-1),a.slice(-1))){var d={type:"table-cell",children:[{text:""}]};c===0&&kN(s)&&(d.isHeader=!0),N.insertNodes(e,d,{at:p})}})})}}},t}(),qft=function(){function t(){this.title=tt("tableModule.deleteCol"),this.iconSvg='',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!R.isCollapsed(n)||A.getSelectedNodeByType(e,"table-cell")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=to(E.nodes(e,{match:function(c){return A.checkNodeType(c,"table-cell")},universal:!0}),1),o=to(r[0],2),i=o[0],a=o[1],u=A.getParentNode(e,i),s=(u==null?void 0:u.children.length)||0;if(!u||s<=1)N.removeNodes(e,{mode:"highest"});else{var l=A.getParentNode(e,u);l!=null&&(l.children||[]).forEach(function(c){ft.isElement(c)&&(c.children||[]).forEach(function(f){var p=A.findPath(e,f);p.length===a.length&&L_(p.slice(-1),a.slice(-1))&&N.removeNodes(e,{at:p})})})}}},t}(),Kft=function(){function t(){this.title=tt("tableModule.header"),this.iconSvg='',this.tag="button"}return t.prototype.getValue=function(e){var n=A.getSelectedNodeByType(e,"table");return n!=null&&kN(n)},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!R.isCollapsed(n)||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=!n,o=A.getSelectedNodeByType(e,"table");o!=null&&o1(o).forEach(function(i){return N.setNodes(e,{isHeader:r},{at:A.findPath(e,i)})})}},t}(),Yft=function(){function t(){this.title=tt("tableModule.widthAuto"),this.iconSvg='',this.tag="button"}return t.prototype.getValue=function(e){var n=A.getSelectedNodeByType(e,"table");return n!=null&&n.width==="100%"},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!R.isCollapsed(n)||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r={width:n?"auto":"100%"};N.setNodes(e,r,{mode:"highest"})}},t}(),Xft={renderElems:[Dft,xft,Sft],elemsToHtml:[{type:"table",elemToHtml:function(t,e){var n=t.width;return''+e+"
        "}},{type:"table-row",elemToHtml:function(t,e){return""+e+""}},{type:"table-cell",elemToHtml:function(t,e){var n=t,r=n.colSpan,o=r===void 0?1:r,i=n.rowSpan,a=i===void 0?1:i,u=n.isHeader,s=u!==void 0&&u,l=n.width,c=s?"th":"td";return"<"+c+' colSpan="'+o+'" rowSpan="'+a+'" width="'+(l===void 0?"auto":l)+'">'+e+""}}],preParseHtml:[Cft],parseElemsHtml:[Ift,Lft,Rft],menus:[{key:"insertTable",factory:function(){return new Mft}},{key:"deleteTable",factory:function(){return new zft}},{key:"insertTableRow",factory:function(){return new $ft}},{key:"deleteTableRow",factory:function(){return new Hft}},{key:"insertTableCol",factory:function(){return new Gft}},{key:"deleteTableCol",factory:function(){return new qft}},{key:"tableHeader",factory:function(){return new Kft}},{key:"tableFullWidth",factory:function(){return new Yft}}],editorPlugin:function(t){var e=t.insertBreak,n=t.deleteBackward,r=t.deleteForward,o=t.normalizeNode,i=t.insertData,a=t.handleTab,u=t.selectAll,s=t;return s.insertBreak=function(){A.getSelectedNodeByType(s,"table")==null?e():s.insertText(` `)},s.deleteBackward=function(l){if(!xN(s)){var c=s.selection;if(c){var f=E.before(s,c);if(f){var p=SN(s,f),d=SN(s,c);if(p&&!d)return}}n(l)}},s.handleTab=function(){var l;if(A.getSelectedNodeByType(s,"table")){var c=E.above(t);A.checkNodeType(c[0],"table-cell")&&N.select(t,c[1]);var f=E.next(t);if(f)f[0]&&f[0].text&&(f=(l=E.above(t,{at:f[1]}))!==null&&l!==void 0?l:f),N.select(t,f[1]);else{var p=s.children||[],d=p.length;if(A.checkNodeType(p[d-1],"table")){var m=A.genEmptyParagraph();N.insertNodes(s,m,{at:[d]}),s.handleTab()}}}else a()},s.deleteForward=function(l){xN(s)||r(l)},s.normalizeNode=function(l){var c=to(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();N.insertNodes(s,d,{at:[p[0]+1]})}},s.insertData=function(l){if(A.getSelectedNodeByType(s,"table")!=null){var c=l.getData("text/plain");c===` `||/]+>/.test(l.getData("text/html"))?i(l):E.insertText(s,c)}else i(l)},s.selectAll=function(){var l=s.selection;if(l!=null){var c=A.getSelectedNodeByType(s,"table-cell");if(c!=null){var f=l.anchor,p=l.focus;if(_.equals(f.path.slice(0,3),p.path.slice(0,3)))if(Q.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}};Un("en",{videoModule:{delete:"Delete",uploadVideo:"Upload video",insertVideo:"Insert video",videoSrc:"Video source",videoSrcPlaceHolder:"Video file url, or third-party