var z=Object.assign;var u6=(s6,Fv,Be)=>new Promise((sr,su)=>{var Hd=Qr=>{try{lu(Be.next(Qr))}catch(cu){su(cu)}},Ud=Qr=>{try{lu(Be.throw(Qr))}catch(cu){su(cu)}},lu=Qr=>Qr.done?sr(Qr.value):Promise.resolve(Qr.value).then(Hd,Ud);lu((Be=Be.apply(s6,Fv)).next())});(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9199],{3996:function(s6,Fv,Be){"use strict";Be.d(Fv,{M:function(){return nhe},o:function(){return rhe}});var sr=Be(67294),su;if(typeof Be.g=="undefined"){if("ActiveXObject"in window){var Hd="\u62B1\u6B49\uFF0CwangEditor V5+ \u7248\u672C\u5F00\u59CB\uFF0C\u4E0D\u5728\u652F\u6301 IE \u6D4F\u89C8\u5668";Hd+=` Sorry, wangEditor V5+ versions do not support IE browser.`,console.error(Hd)}Ud(),lu()}else Be.g&&((su=Be.g.navigator)===null||su===void 0?void 0:su.userAgent.match("QQBrowser"))&&(Ud(),lu());function Ud(){typeof globalThis=="undefined"&&(window.globalThis=window)}function lu(){typeof AggregateError=="undefined"&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}if(typeof Be.g=="object"){var Qr=Object.getOwnPropertyDescriptor(Be.g,"window");(!Be.g.window||Qr.set)&&(Be.g.window=Be.g,Be.g.requestAnimationFrame=function(){},Be.g.navigator={userAgent:""},Be.g.location={hostname:"0.0.0.0",port:0,protocol:"http:"},Be.g.btoa=function(){},Be.g.crypto={getRandomValues:function(e){return nodeCrypto.randomFillSync(e)}}),Be.g.document!=null&&Be.g.document.getElementsByTagName==null&&(Be.g.document.getElementsByTagName=function(){return[]})}/*! * is-plain-object * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */function cu(e){return Object.prototype.toString.call(e)==="[object Object]"}function en(e){var t,n;return cu(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!(cu(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}function Gt(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:kv(e)?2:Pv(e)?3:0}function Tv(e,t){return fu(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function rI(e,t){return fu(e)===2?e.get(t):e[t]}function l6(e,t,n){var r=fu(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function iI(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function kv(e){return sI&&e instanceof Map}function Pv(e){return lI&&e instanceof Set}function Vo(e){return e.o||e.t}function _v(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=dI(e);delete t[En];for(var n=Wv(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=oI),Object.freeze(e),t&&ll(e,function(n,r){return Nv(r,!0)},!0)),e}function oI(){Gt(2)}function Iv(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function ei(e){var t=pI[e];return t||Gt(18,e),t}function c6(){return du||Gt(0),du}function jv(e,t){t&&(ei("Patches"),e.u=[],e.s=[],e.v=t)}function Vd(e){Rv(e),e.p.forEach(aI),e.p=null}function Rv(e){e===du&&(du=e.l)}function f6(e){return du={p:[],l:du,h:e,m:!0,_:0}}function aI(e){var t=e[En];t.i===0||t.i===1?t.j():t.O=!0}function Lv(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||ei("ES5").S(t,e,r),r?(n[En].P&&(Vd(t),Gt(4)),Uo(e)&&(e=Wd(t,e),t.l||Gd(t,e)),t.u&&ei("Patches").M(n[En],e,t.u,t.s)):e=Wd(t,n,[]),Vd(t),t.u&&t.v(t.u,t.s),e!==m6?e:void 0}function Wd(e,t,n){if(Iv(t))return t;var r=t[En];if(!r)return ll(t,function(o,a){return d6(e,r,t,o,a,n)},!0),t;if(r.A!==e)return t;if(!r.P)return Gd(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=_v(r.k):r.o;ll(r.i===3?new Set(i):i,function(o,a){return d6(e,r,i,o,a,n)}),Gd(e,i,!1),n&&e.u&&ei("Patches").R(r,n,e.u,e.s)}return r.o}function d6(e,t,n,r,i,o){if(i===n&&Gt(5),Ho(i)){var a=Wd(e,i,o&&t&&t.i!==3&&!Tv(t.D,r)?o.concat(r):void 0);if(l6(n,r,a),!Ho(a))return;e.m=!1}if(Uo(i)&&!Iv(i)){if(!e.h.F&&e._<1)return;Wd(e,i),t&&t.A.l||Gd(e,i)}}function Gd(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&Nv(t,n)}function Mv(e,t){var n=e[En];return(n?Vo(n):e)[t]}function p6(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function zv(e){e.P||(e.P=!0,e.l&&zv(e.l))}function Hv(e){e.o||(e.o=_v(e.t))}function Uv(e,t,n){var r=kv(t)?ei("MapSet").N(t,n):Pv(t)?ei("MapSet").T(t,n):e.g?function(i,o){var a=Array.isArray(i),u={i:a?1:0,A:o?o.A:c6(),P:!1,I:!1,D:{},l:o,t:i,k:null,o:null,j:null,C:!1},s=u,l=qd;a&&(s=[u],l=Kd);var c=Proxy.revocable(s,l),f=c.revoke,d=c.proxy;return u.k=d,u.j=f,d}(t,n):ei("ES5").J(t,n);return(n?n.A:c6()).p.push(r),r}function uI(e){return Ho(e)||Gt(22,e),function t(n){if(!Uo(n))return n;var r,i=n[En],o=fu(n);if(i){if(!i.P&&(i.i<4||!ei("ES5").K(i)))return i.t;i.I=!0,r=h6(n,o),i.I=!1}else r=h6(n,o);return ll(r,function(a,u){i&&rI(i.t,a)===u||l6(r,a,t(u))}),o===3?new Set(r):r}(e)}function h6(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return _v(e)}var g6,du,Vv=typeof Symbol!="undefined"&&typeof Symbol("x")=="symbol",sI=typeof Map!="undefined",lI=typeof Set!="undefined",v6=typeof Proxy!="undefined"&&Proxy.revocable!==void 0&&typeof Reflect!="undefined",m6=Vv?Symbol.for("immer-nothing"):((g6={})["immer-nothing"]=!0,g6),y6=Vv?Symbol.for("immer-draftable"):"__$immer_draftable",En=Vv?Symbol.for("immer-state"):"__$immer_state",cI={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},fI=""+Object.prototype.constructor,Wv=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,dI=Object.getOwnPropertyDescriptors||function(e){var t={};return Wv(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},pI={},qd={get:function(e,t){if(t===En)return e;var n=Vo(e);if(!Tv(n,t))return function(i,o,a){var u,s=p6(o,a);return s?"value"in s?s.value:(u=s.get)===null||u===void 0?void 0:u.call(i.k):void 0}(e,n,t);var r=n[t];return e.I||!Uo(r)?r:r===Mv(e.t,t)?(Hv(e),e.o[t]=Uv(e.A.h,r,e)):r},has:function(e,t){return t in Vo(e)},ownKeys:function(e){return Reflect.ownKeys(Vo(e))},set:function(e,t,n){var r=p6(Vo(e),t);if(r==null?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var i=Mv(Vo(e),t),o=i==null?void 0:i[En];if(o&&o.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(iI(n,i)&&(n!==void 0||Tv(e.t,t)))return!0;Hv(e),zv(e)}return e.o[t]===n&&typeof n!="number"&&(n!==void 0||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return Mv(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,Hv(e),zv(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Vo(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){Gt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Gt(12)}},Kd={};ll(qd,function(e,t){Kd[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Kd.deleteProperty=function(e,t){return isNaN(parseInt(t))&&Gt(13),qd.deleteProperty.call(this,e[0],t)},Kd.set=function(e,t,n){return t!=="length"&&isNaN(parseInt(t))&&Gt(14),qd.set.call(this,e[0],t,n,e[0])};var hI=function(){function e(n){var r=this;this.g=v6,this.F=!0,this.produce=function(i,o,a){if(typeof i=="function"&&typeof o!="function"){var u=o;o=i;var s=r;return function(p){var m=this;p===void 0&&(p=u);for(var v=arguments.length,g=Array(v>1?v-1:0),y=1;y1?l-1:0),f=1;f=0;i--){var o=r[i];if(o.path.length===0&&o.op==="replace"){n=o.value;break}}i>-1&&(r=r.slice(i+1));var a=ei("Patches").$;return Ho(n)?a(n,r):this.produce(n,function(u){return a(u,r)})},e}(),xn=new hI,Yd=xn.produce;xn.produceWithPatches.bind(xn),xn.setAutoFreeze.bind(xn),xn.setUseProxies.bind(xn),xn.applyPatches.bind(xn);var b6=xn.createDraft.bind(xn),$6=xn.finishDraft.bind(xn);function xr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xd=new WeakMap,cl=new WeakMap,w6=new WeakMap,E6=new WeakMap,x6=new WeakMap,S6=new WeakMap;function D6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Jd(e){for(var t=1;t{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of E.pathRefs(e))GI.transform(n,t);for(var r of E.pointRefs(e))qI.transform(r,t);for(var i of E.rangeRefs(e))XI.transform(i,t);var o=new Set,a=[],u=p=>{if(p){var m=p.join(",");o.has(m)||(o.add(m),a.push(p))}},s=Xd.get(e)||[],l=vI(t);for(var c of s){var f=P.transform(c,t);u(f)}for(var d of l)u(d);Xd.set(e,a),_.transform(e,t),e.operations.push(t),E.normalize(e),t.type==="set_selection"&&(e.marks=null),cl.get(e)||(cl.set(e,!0),Promise.resolve().then(()=>{cl.set(e,!1),e.onChange(),e.operations=[]}))},addMark:(t,n)=>{var{selection:r}=e;if(r)if(j.isExpanded(r))_.setNodes(e,{[t]:n},{match:J.isText,split:!0});else{var i=Jd(Jd({},E.marks(e)||{}),{},{[t]:n});e.marks=i,cl.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:n}=e;n&&j.isCollapsed(n)&&_.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&j.isCollapsed(n)&&_.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&j.isExpanded(n)&&_.delete(e,{reverse:t==="backward"})},getFragment:()=>{var{selection:t}=e;return t?q.fragment(e,t):[]},insertBreak:()=>{_.splitNodes(e,{always:!0})},insertFragment:t=>{_.insertFragment(e,t)},insertNode:t=>{_.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var i=Jd({text:t},r);_.insertNodes(e,i)}else _.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!J.isText(n)){if(ne.isElement(n)&&n.children.length===0){var i={text:""};_.insertNodes(e,i,{at:r.concat(0),voids:!0});return}for(var o=E.isEditor(n)?!1:ne.isElement(n)&&(e.isInline(n)||n.children.length===0||J.isText(n.children[0])||e.isInline(n.children[0])),a=0,u=0;u{var{selection:n}=e;if(n)if(j.isExpanded(n))_.unsetNodes(e,t,{match:J.isText,split:!0});else{var r=Jd({},E.marks(e)||{});delete r[t],e.marks=r,cl.get(e)||e.onChange()}}};return e},vI=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":{var{path:t}=e;return P.levels(t)}case"insert_node":{var{node:n,path:r}=e,i=P.levels(r),o=J.isText(n)?[]:Array.from(q.nodes(n),R=>{var[,U]=R;return r.concat(U)});return[...i,...o]}case"merge_node":{var{path:a}=e,u=P.ancestors(a),s=P.previous(a);return[...u,s]}case"move_node":{var{path:l,newPath:c}=e;if(P.equals(l,c))return[];var f=[],d=[];for(var p of P.ancestors(l)){var m=P.transform(p,e);f.push(m)}for(var v of P.ancestors(c)){var g=P.transform(v,e);d.push(g)}var y=d[d.length-1],h=c[c.length-1],$=y.concat(h);return[...f,...d,$]}case"remove_node":{var{path:w}=e,x=P.ancestors(w);return[...x]}case"split_node":{var{path:S}=e,C=P.levels(S),N=P.next(S);return[...C,N]}default:return[]}};function mI(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function ti(e,t){if(e==null)return{};var n=mI(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}var Gv=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=!n,i=n?xI(t):t,o=ve.None,a=ve.None,u=0,s=null,l=null;for(var c of i){var f=c.codePointAt(0);if(!f)break;var d=NI(c,f);if([o,a]=r?[a,d]:[d,o],pu(o,ve.ZWJ)&&pu(a,ve.ExtPict)&&(r?s=C6(t.substring(0,u)):s=C6(t.substring(0,t.length-u)),!s)||pu(o,ve.RI)&&pu(a,ve.RI)&&(l!==null?l=!l:r?l=!0:l=MI(t.substring(0,t.length-u)),!l)||o!==ve.None&&a!==ve.None&&jI(o,a))break;u+=c.length}return u||1},yI=/\s/,bI=/[\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]/,$I=/['\u2018\u2019]/,wI=function(t){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=0,i=!1;t.length>0;){var o=Gv(t,n),[a,u]=qv(t,o,n);if(EI(a,u,n))i=!0,r+=o;else if(!i)r+=o;else break;t=u}return r},qv=(e,t,n)=>{if(n){var r=e.length-t;return[e.slice(r,e.length),e.slice(0,r)]}return[e.slice(0,t),e.slice(t)]},EI=function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(yI.test(t))return!1;if($I.test(t)){var i=Gv(n,r),[o,a]=qv(n,i,r);if(e(o,a,r))return!0}return!bI.test(t)},xI=function*(t){for(var n=t.length-1,r=0;re>=55296&&e<=56319,DI=e=>e>=56320&&e<=57343,ve;(function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"})(ve||(ve={}));var CI=/^(?:[\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])$/,AI=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,OI=/^(?:[\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])$/,BI=/^[\u1100-\u115F\uA960-\uA97C]$/,FI=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,TI=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,kI=/^[\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]$/,PI=/^[\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]$/,_I=/^(?:[\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])$/,NI=(e,t)=>{var n=ve.Any;return e.search(CI)!==-1&&(n|=ve.Extend),t===8205&&(n|=ve.ZWJ),t>=127462&&t<=127487&&(n|=ve.RI),e.search(AI)!==-1&&(n|=ve.Prepend),e.search(OI)!==-1&&(n|=ve.SpacingMark),e.search(BI)!==-1&&(n|=ve.L),e.search(FI)!==-1&&(n|=ve.V),e.search(TI)!==-1&&(n|=ve.T),e.search(kI)!==-1&&(n|=ve.LV),e.search(PI)!==-1&&(n|=ve.LVT),e.search(_I)!==-1&&(n|=ve.ExtPict),n};function pu(e,t){return(e&t)!=0}var II=[[ve.L,ve.L|ve.V|ve.LV|ve.LVT],[ve.LV|ve.V,ve.V|ve.T],[ve.LVT|ve.T,ve.T],[ve.Any,ve.Extend|ve.ZWJ],[ve.Any,ve.SpacingMark],[ve.Prepend,ve.Any],[ve.ZWJ,ve.ExtPict],[ve.RI,ve.RI]];function jI(e,t){return II.findIndex(n=>pu(e,n[0])&&pu(t,n[1]))===-1}var RI=/(?:[\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$/,C6=e=>e.search(RI)!==-1,LI=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,MI=e=>{var t=e.match(LI);if(t===null)return!1;var n=t[0].length/2;return n%2==1},A6=e=>en(e)&&q.isNodeList(e.children)&&!E.isEditor(e),ne={isAncestor(e){return en(e)&&q.isNodeList(e.children)},isElement:A6,isElementList(e){return Array.isArray(e)&&e.every(t=>ne.isElement(t))},isElementProps(e){return e.children!==void 0},isElementType:function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return A6(t)&&t[r]===n},matches(e,t){for(var n in t)if(n!=="children"&&e[n]!==t[n])return!1;return!0}},zI=["text"],HI=["text"];function O6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function hu(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:i=e.selection,match:o}=t;if(!!i){var a=E.path(e,i),u=r==="lowest";for(var[s,l]of E.levels(e,{at:a,voids:n,match:o,reverse:u}))if(!J.isText(s)&&!P.equals(a,l))return[s,l]}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=E.point(e,t,{edge:"end"}),i=E.end(e,[]),o={anchor:r,focus:i},{distance:a=1}=n,u=0,s;for(var l of E.positions(e,hu(hu({},n),{},{at:o}))){if(u>a)break;u!==0&&(s=l),u++}return s},before(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=E.start(e,[]),i=E.point(e,t,{edge:"start"}),o={anchor:r,focus:i},{distance:a=1}=n,u=0,s;for(var l of E.positions(e,hu(hu({},n),{},{at:o,reverse:!0}))){if(u>a)break;u!==0&&(s=l),u++}return s},deleteBackward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{direction:n="forward"}=t;e.deleteFragment(n)},edges(e,t){return[E.start(e,t),E.end(e,t)]},end(e,t){return E.point(e,t,{edge:"end"})},first(e,t){var n=E.path(e,t,{edge:"start"});return E.node(e,n)},fragment(e,t){var n=E.range(e,t),r=q.fragment(e,n);return r},hasBlocks(e,t){return t.children.some(n=>E.isBlock(e,n))},hasInlines(e,t){return t.children.some(n=>J.isText(n)||E.isInline(e,n))},hasTexts(e,t){return t.children.every(n=>J.isText(n))},insertBreak(e){e.insertBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock(e,t){return ne.isElement(t)&&!e.isInline(t)},isEditor(e){if(!en(e))return!1;var t=B6.get(e);if(t!==void 0)return t;var n=typeof e.addMark=="function"&&typeof e.apply=="function"&&typeof e.deleteBackward=="function"&&typeof e.deleteForward=="function"&&typeof e.deleteFragment=="function"&&typeof e.insertBreak=="function"&&typeof e.insertFragment=="function"&&typeof e.insertNode=="function"&&typeof e.insertText=="function"&&typeof e.isInline=="function"&&typeof e.isVoid=="function"&&typeof e.normalizeNode=="function"&&typeof e.onChange=="function"&&typeof e.removeMark=="function"&&(e.marks===null||en(e.marks))&&(e.selection===null||j.isRange(e.selection))&&q.isNodeList(e.children)&&Ci.isOperationList(e.operations);return B6.set(e,n),n},isEnd(e,t,n){var r=E.end(e,n);return $e.equals(t,r)},isEdge(e,t,n){return E.isStart(e,t,n)||E.isEnd(e,t,n)},isEmpty(e,t){var{children:n}=t,[r]=n;return n.length===0||n.length===1&&J.isText(r)&&r.text===""&&!e.isVoid(t)},isInline(e,t){return ne.isElement(t)&&e.isInline(t)},isNormalizing(e){var t=w6.get(e);return t===void 0?!0:t},isStart(e,t,n){if(t.offset!==0)return!1;var r=E.start(e,n);return $e.equals(t,r)},isVoid(e,t){return ne.isElement(t)&&e.isVoid(t)},last(e,t){var n=E.path(e,t,{edge:"end"});return E.node(e,n)},leaf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=E.path(e,t,n),i=q.leaf(e,r);return[i,r]},*levels(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:i=!1}=t,{match:o}=t;if(o==null&&(o=()=>!0),!!n){var a=[],u=E.path(e,n);for(var[s,l]of q.levels(e,u))if(!!o(s,l)&&(a.push([s,l]),!i&&E.isVoid(e,s)))break;r&&a.reverse(),yield*a}},marks(e){var{marks:t,selection:n}=e;if(!n)return null;if(t)return t;if(j.isExpanded(n)){var[r]=E.nodes(e,{match:J.isText});if(r){var[i]=r,o=ti(i,zI);return o}else return{}}var{anchor:a}=n,{path:u}=a,[s]=E.leaf(e,u);if(a.offset===0){var l=E.previous(e,{at:u,match:J.isText}),c=E.above(e,{match:v=>E.isBlock(e,v)});if(l&&c){var[f,d]=l,[,p]=c;P.isAncestor(p,d)&&(s=f)}}var m=ti(s,HI);return m},next(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:i,at:o=e.selection}=t;if(!!o){var a=E.after(e,o,{voids:r});if(!!a){var[,u]=E.last(e,[]),s=[a.path,u];if(P.isPath(o)&&o.length===0)throw new Error("Cannot get the next node from the root node!");if(i==null)if(P.isPath(o)){var[l]=E.parent(e,o);i=f=>l.children.includes(f)}else i=()=>!0;var[c]=E.nodes(e,{at:s,match:i,mode:n,voids:r});return c}}},node(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=E.path(e,t,n),i=q.get(e,r);return[i,r]},*nodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,mode:r="all",universal:i=!1,reverse:o=!1,voids:a=!1}=t,{match:u}=t;if(u||(u=()=>!0),!!n){var s,l;if(UI.isSpan(n))s=n[0],l=n[1];else{var c=E.path(e,n,{edge:"start"}),f=E.path(e,n,{edge:"end"});s=o?f:c,l=o?c:f}var d=q.nodes(e,{reverse:o,from:s,to:l,pass:$=>{var[w]=$;return a?!1:E.isVoid(e,w)}}),p=[],m;for(var[v,g]of d){var y=m&&P.compare(g,m[1])===0;if(!(r==="highest"&&y)){if(!u(v,g)){if(i&&!y&&J.isText(v))return;continue}if(r==="lowest"&&y){m=[v,g];continue}var h=r==="lowest"?m:[v,g];h&&(i?p.push(h):yield h),m=[v,g]}}r==="lowest"&&m&&(i?p.push(m):yield m),i&&(yield*p)}},normalize(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:n=!1}=t,r=o=>Xd.get(o)||[];if(!!E.isNormalizing(e)){if(n){var i=Array.from(q.nodes(e),o=>{var[,a]=o;return a});Xd.set(e,i)}r(e).length!==0&&E.withoutNormalizing(e,()=>{for(var o of r(e))if(q.has(e,o)){var a=E.node(e,o),[u,s]=a;ne.isElement(u)&&u.children.length===0&&e.normalizeNode(a)}for(var l=r(e).length*42,c=0;r(e).length!==0;){if(c>l)throw new Error(` Could not completely normalize the editor after `.concat(l,` iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state. `));var f=r(e).pop();if(q.has(e,f)){var d=E.node(e,f);e.normalizeNode(d)}c++}})}},parent(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=E.path(e,t,n),i=P.parent(r),o=E.node(e,i);return o},path(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:r,edge:i}=n;if(P.isPath(t)){if(i==="start"){var[,o]=q.first(e,t);t=o}else if(i==="end"){var[,a]=q.last(e,t);t=a}}return j.isRange(t)&&(i==="start"?t=j.start(t):i==="end"?t=j.end(t):t=P.common(t.anchor.path,t.focus.path)),$e.isPoint(t)&&(t=t.path),r!=null&&(t=t.slice(0,r)),t},hasPath(e,t){return q.has(e,t)},pathRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,i={current:t,affinity:r,unref(){var{current:a}=i,u=E.pathRefs(e);return u.delete(i),i.current=null,a}},o=E.pathRefs(e);return o.add(i),i},pathRefs(e){var t=E6.get(e);return t||(t=new Set,E6.set(e,t)),t},point(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:r="start"}=n;if(P.isPath(t)){var i;if(r==="end"){var[,o]=q.last(e,t);i=o}else{var[,a]=q.first(e,t);i=a}var u=q.get(e,i);if(!J.isText(u))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(t,"] because it has no ").concat(r," text node."));return{path:i,offset:r==="end"?u.text.length:0}}if(j.isRange(t)){var[s,l]=j.edges(t);return r==="start"?s:l}return t},pointRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,i={current:t,affinity:r,unref(){var{current:a}=i,u=E.pointRefs(e);return u.delete(i),i.current=null,a}},o=E.pointRefs(e);return o.add(i),i},pointRefs(e){var t=x6.get(e);return t||(t=new Set,x6.set(e,t)),t},*positions(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,unit:r="offset",reverse:i=!1,voids:o=!1}=t;if(!n)return;var a=E.range(e,n),[u,s]=j.edges(a),l=i?s:u,c=!1,f="",d=0,p=0,m=0;for(var[v,g]of E.nodes(e,{at:n,reverse:i,voids:o})){if(ne.isElement(v)){if(!o&&e.isVoid(v)){yield E.start(e,g);continue}if(e.isInline(v))continue;if(E.hasInlines(e,v)){var y=P.isAncestor(g,s.path)?s:E.end(e,g),h=P.isAncestor(g,u.path)?u:E.start(e,g);f=E.string(e,{anchor:h,focus:y},{voids:o}),c=!0}}if(J.isText(v)){var $=P.equals(g,l.path);for($?(p=i?l.offset:v.text.length-l.offset,m=l.offset):(p=v.text.length,m=i?p:0),($||c||r==="offset")&&(yield{path:g,offset:m},c=!1);;){if(d===0){if(f==="")break;d=w(f,r,i),f=qv(f,d,i)[1]}if(m=i?m-d:m+d,p=p-d,p<0){d=-p;break}d=0,yield{path:g,offset:m}}}}function w(x,S,C){return S==="character"?Gv(x,C):S==="word"?wI(x,C):S==="line"||S==="block"?x.length:1}},previous(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:i,at:o=e.selection}=t;if(!!o){var a=E.before(e,o,{voids:r});if(!!a){var[,u]=E.first(e,[]),s=[a.path,u];if(P.isPath(o)&&o.length===0)throw new Error("Cannot get the previous node from the root node!");if(i==null)if(P.isPath(o)){var[l]=E.parent(e,o);i=f=>l.children.includes(f)}else i=()=>!0;var[c]=E.nodes(e,{reverse:!0,at:s,match:i,mode:n,voids:r});return c}}},range(e,t,n){if(j.isRange(t)&&!n)return t;var r=E.start(e,t),i=E.end(e,n||t);return{anchor:r,focus:i}},rangeRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,i={current:t,affinity:r,unref(){var{current:a}=i,u=E.rangeRefs(e);return u.delete(i),i.current=null,a}},o=E.rangeRefs(e);return o.add(i),i},rangeRefs(e){var t=S6.get(e);return t||(t=new Set,S6.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){w6.set(e,t)},start(e,t){return E.point(e,t,{edge:"start"})},string(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,i=E.range(e,t),[o,a]=j.edges(i),u="";for(var[s,l]of E.nodes(e,{at:i,match:J.isText,voids:r})){var c=s.text;P.equals(l,a.path)&&(c=c.slice(0,a.offset)),P.equals(l,o.path)&&(c=c.slice(o.offset)),u+=c}return u},unhangRange(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,[i,o]=j.edges(t);if(i.offset!==0||o.offset!==0||j.isCollapsed(t))return t;var a=E.above(e,{at:o,match:p=>E.isBlock(e,p)}),u=a?a[1]:[],s=E.start(e,[]),l={anchor:s,focus:o},c=!0;for(var[f,d]of E.nodes(e,{at:l,match:J.isText,reverse:!0,voids:r})){if(c){c=!1;continue}if(f.text!==""||P.isBefore(d,u)){o={path:d,offset:f.text.length};break}}return{anchor:i,focus:o}},void(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return E.above(e,hu(hu({},t),{},{match:n=>E.isVoid(e,n)}))},withoutNormalizing(e,t){var n=E.isNormalizing(e);E.setNormalizing(e,!1);try{t()}finally{E.setNormalizing(e,n)}E.normalize(e)}},ihe={isLocation(e){return P.isPath(e)||$e.isPoint(e)||j.isRange(e)}},UI={isSpan(e){return Array.isArray(e)&&e.length===2&&e.every(P.isPath)}},VI=["children"],WI=["text"],F6=new WeakMap,q={ancestor(e,t){var n=q.get(e,t);if(J.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(n));return n},*ancestors(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of P.ancestors(t,n)){var i=q.ancestor(e,r),o=[i,r];yield o}},child(e,t){if(J.isText(e))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(e)));var n=e.children[t];if(n==null)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(JSON.stringify(e)));return n},*children(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{reverse:r=!1}=n,i=q.ancestor(e,t),{children:o}=i,a=r?o.length-1:0;r?a>=0:a1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of q.nodes(e,t))r.length!==0&&(yield[n,r])},*elements(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of q.nodes(e,t))ne.isElement(n)&&(yield[n,r])},extractProps(e){if(ne.isAncestor(e)){var t=ti(e,VI);return t}else{var t=ti(e,WI);return t}},first(e,t){for(var n=t.slice(),r=q.get(e,n);r&&!(J.isText(r)||r.children.length===0);)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(J.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));var n=Yd({children:e.children},r=>{var[i,o]=j.edges(t),a=q.nodes(r,{reverse:!0,pass:d=>{var[,p]=d;return!j.includes(t,p)}});for(var[,u]of a){if(!j.includes(t,u)){var s=q.parent(r,u),l=u[u.length-1];s.children.splice(l,1)}if(P.equals(u,o.path)){var c=q.leaf(r,u);c.text=c.text.slice(0,o.offset)}if(P.equals(u,i.path)){var f=q.leaf(r,u);f.text=f.text.slice(i.offset)}}E.isEditor(r)&&(r.selection=null)});return n.children},get(e,t){for(var n=e,r=0;rq.isNode(r));return F6.set(e,n),n},last(e,t){for(var n=t.slice(),r=q.get(e,n);r&&!(J.isText(r)||r.children.length===0);){var i=r.children.length-1;r=r.children[i],n.push(i)}return[r,n]},leaf(e,t){var n=q.get(e,t);if(!J.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(n));return n},*levels(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of P.levels(t,n)){var i=q.get(e,r);yield[i,r]}},matches(e,t){return ne.isElement(e)&&ne.isElementProps(t)&&ne.matches(e,t)||J.isText(e)&&J.isTextProps(t)&&J.matches(e,t)},*nodes(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:i=[],to:o}=t,a=new Set,u=[],s=e;!(o&&(r?P.isBefore(u,o):P.isAfter(u,o)));){if(a.has(s)||(yield[s,u]),!a.has(s)&&!J.isText(s)&&s.children.length!==0&&(n==null||n([s,u])===!1)){a.add(s);var l=r?s.children.length-1:0;P.isAncestor(u,i)&&(l=i[u.length]),u=u.concat(l),s=q.get(e,u);continue}if(u.length===0)break;if(!r){var c=P.next(u);if(q.has(e,c)){u=c,s=q.get(e,u);continue}}if(r&&u[u.length-1]!==0){var f=P.previous(u);u=f,s=q.get(e,u);continue}u=P.parent(u),s=q.get(e,u),a.add(s)}},parent(e,t){var n=P.parent(t),r=q.get(e,n);if(J.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string(e){return J.isText(e)?e.text:e.children.map(q.string).join("")},*texts(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of q.nodes(e,t))J.isText(n)&&(yield[n,r])}};function T6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function it(e){for(var t=1;tCi.isOperation(t))},isSelectionOperation(e){return Ci.isOperation(e)&&e.type.endsWith("_selection")},isTextOperation(e){return Ci.isOperation(e)&&e.type.endsWith("_text")},inverse(e){switch(e.type){case"insert_node":return it(it({},e),{},{type:"remove_node"});case"insert_text":return it(it({},e),{},{type:"remove_text"});case"merge_node":return it(it({},e),{},{type:"split_node",path:P.previous(e.path)});case"move_node":{var{newPath:t,path:n}=e;if(P.equals(t,n))return e;if(P.isSibling(n,t))return it(it({},e),{},{path:t,newPath:n});var r=P.transform(n,e),i=P.transform(P.next(n),e);return it(it({},e),{},{path:r,newPath:i})}case"remove_node":return it(it({},e),{},{type:"insert_node"});case"remove_text":return it(it({},e),{},{type:"insert_text"});case"set_node":{var{properties:o,newProperties:a}=e;return it(it({},e),{},{properties:a,newProperties:o})}case"set_selection":{var{properties:u,newProperties:s}=e;return u==null?it(it({},e),{},{properties:s,newProperties:null}):s==null?it(it({},e),{},{properties:null,newProperties:u}):it(it({},e),{},{properties:s,newProperties:u})}case"split_node":return it(it({},e),{},{type:"merge_node",path:P.next(e.path)})}}},P={ancestors(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=P.levels(e,t);return n?r=r.slice(1):r=r.slice(0,-1),r},common(e,t){for(var n=[],r=0;rt[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),i=t.slice(0,n),o=e[n],a=t[n];return P.equals(r,i)&&o>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),i=t.slice(0,n);return P.equals(r,i)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),i=t.slice(0,n),o=e[n],a=t[n];return P.equals(r,i)&&on===t[r])},hasPrevious(e){return e[e.length-1]>0},isAfter(e,t){return P.compare(e,t)===1},isAncestor(e,t){return e.lengtht.length&&P.compare(e,t)===0},isParent(e,t){return e.length+1===t.length&&P.compare(e,t)===0},isPath(e){return Array.isArray(e)&&(e.length===0||typeof e[0]=="number")},isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1),i=e[e.length-1],o=t[t.length-1];return i!==o&&P.equals(n,r)},levels(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=[],i=0;i<=e.length;i++)r.push(e.slice(0,i));return n&&r.reverse(),r},next(e){if(e.length===0)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},parent(e){if(e.length===0)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(e.length===0)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!P.isAncestor(t,e)&&!P.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Yd(e,r=>{var{affinity:i="forward"}=n;if(!(!e||(e==null?void 0:e.length)===0)){if(r===null)return null;switch(t.type){case"insert_node":{var{path:o}=t;(P.equals(o,r)||P.endsBefore(o,r)||P.isAncestor(o,r))&&(r[o.length-1]+=1);break}case"remove_node":{var{path:a}=t;if(P.equals(a,r)||P.isAncestor(a,r))return null;P.endsBefore(a,r)&&(r[a.length-1]-=1);break}case"merge_node":{var{path:u,position:s}=t;P.equals(u,r)||P.endsBefore(u,r)?r[u.length-1]-=1:P.isAncestor(u,r)&&(r[u.length-1]-=1,r[u.length]+=s);break}case"split_node":{var{path:l,position:c}=t;if(P.equals(l,r)){if(i==="forward")r[r.length-1]+=1;else if(i!=="backward")return null}else P.endsBefore(l,r)?r[l.length-1]+=1:P.isAncestor(l,r)&&e[l.length]>=c&&(r[l.length-1]+=1,r[l.length]-=c);break}case"move_node":{var{path:f,newPath:d}=t;if(P.equals(f,d))return;if(P.isAncestor(f,r)||P.equals(f,r)){var p=d.slice();return P.endsBefore(f,d)&&f.lengtht.offset?1:0:n},isAfter(e,t){return $e.compare(e,t)===1},isBefore(e,t){return $e.compare(e,t)===-1},equals(e,t){return e.offset===t.offset&&P.equals(e.path,t.path)},isPoint(e){return en(e)&&typeof e.offset=="number"&&P.isPath(e.path)},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Yd(e,r=>{if(r===null)return null;var{affinity:i="forward"}=n,{path:o,offset:a}=r;switch(t.type){case"insert_node":case"move_node":{r.path=P.transform(o,t,n);break}case"insert_text":{P.equals(t.path,o)&&t.offset<=a&&(r.offset+=t.text.length);break}case"merge_node":{P.equals(t.path,o)&&(r.offset+=t.position),r.path=P.transform(o,t,n);break}case"remove_text":{P.equals(t.path,o)&&t.offset<=a&&(r.offset-=Math.min(a-t.offset,t.text.length));break}case"remove_node":{if(P.equals(t.path,o)||P.isAncestor(t.path,o))return null;r.path=P.transform(o,t,n);break}case"split_node":{if(P.equals(t.path,o)){if(t.position===a&&i==null)return null;(t.position1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:i}=e;return j.isBackward(e)===n?[r,i]:[i,r]},end(e){var[,t]=j.edges(e);return t},equals(e,t){return $e.equals(e.anchor,t.anchor)&&$e.equals(e.focus,t.focus)},includes(e,t){if(j.isRange(t)){if(j.includes(e,t.anchor)||j.includes(e,t.focus))return!0;var[n,r]=j.edges(e),[i,o]=j.edges(t);return $e.isBefore(n,i)&&$e.isAfter(r,o)}var[a,u]=j.edges(e),s=!1,l=!1;return $e.isPoint(t)?(s=$e.compare(t,a)>=0,l=$e.compare(t,u)<=0):(s=P.compare(t,a.path)>=0,l=P.compare(t,u.path)<=0),s&&l},intersection(e,t){var n=ti(e,KI),[r,i]=j.edges(e),[o,a]=j.edges(t),u=$e.isBefore(r,o)?o:r,s=$e.isBefore(i,a)?i:a;return $e.isBefore(s,u)?null:YI({anchor:u,focus:s},n)},isBackward(e){var{anchor:t,focus:n}=e;return $e.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return $e.equals(t,n)},isExpanded(e){return!j.isCollapsed(e)},isForward(e){return!j.isBackward(e)},isRange(e){return en(e)&&$e.isPoint(e.anchor)&&$e.isPoint(e.focus)},*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=j.edges(e);return t},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Yd(e,r=>{if(r===null)return null;var{affinity:i="inward"}=n,o,a;if(i==="inward"){var u=j.isCollapsed(r);j.isForward(r)?(o="forward",a=u?o:"backward"):(o="backward",a=u?o:"forward")}else i==="outward"?j.isForward(r)?(o="backward",a="forward"):(o="forward",a="backward"):(o=i,a=i);var s=$e.transform(r.anchor,t,{affinity:o}),l=$e.transform(r.focus,t,{affinity:a});if(!s||!l)return null;r.anchor=s,r.focus=l})}},XI={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=j.transform(n,t,{affinity:r});e.current=i,i==null&&e.unref()}}},N6=(e,t)=>{for(var n in e){var r=e[n],i=t[n];if(en(r)&&en(i)){if(!N6(r,i))return!1}else if(Array.isArray(r)&&Array.isArray(i)){if(r.length!==i.length)return!1;for(var o=0;o2&&arguments[2]!==void 0?arguments[2]:{},{loose:r=!1}=n;function i(o){var a=ti(o,JI);return a}return N6(r?i(e):e,r?i(t):t)},isText(e){return en(e)&&typeof e.text=="string"},isTextList(e){return Array.isArray(e)&&e.every(t=>J.isText(t))},isTextProps(e){return e.text!==void 0},matches(e,t){for(var n in t)if(n!=="text"&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[ni({},e)];for(var r of t){var i=ti(r,ZI),[o,a]=j.edges(r),u=[],s=0;for(var l of n){var{length:c}=l.text,f=s;if(s+=c,o.offset<=f&&a.offset>=s){Object.assign(l,i),u.push(l);continue}if(o.offset!==a.offset&&(o.offset===s||a.offset===f)||o.offset>s||a.offsetf){var g=o.offset-f;p=ni(ni({},d),{},{text:d.text.slice(0,g)}),d=ni(ni({},d),{},{text:d.text.slice(g)})}Object.assign(d,i),p&&u.push(p),u.push(d),m&&u.push(m)}n=u}return n}};function j6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fl(e){for(var t=1;t{switch(n.type){case"insert_node":{var{path:r,node:i}=n,o=q.parent(e,r),a=r[r.length-1];if(a>o.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));if(o.children.splice(a,0,i),t)for(var[u,s]of j.points(t))t[s]=$e.transform(u,n);break}case"insert_text":{var{path:l,offset:c,text:f}=n;if(f.length===0)break;var d=q.leaf(e,l),p=d.text.slice(0,c),m=d.text.slice(c);if(d.text=p+f+m,t)for(var[v,g]of j.points(t))t[g]=$e.transform(v,n);break}case"merge_node":{var{path:y}=n,h=q.get(e,y),$=P.previous(y),w=q.get(e,$),x=q.parent(e,y),S=y[y.length-1];if(J.isText(h)&&J.isText(w))w.text+=h.text;else if(!J.isText(h)&&!J.isText(w))w.children.push(...h.children);else throw new Error('Cannot apply a "merge_node" operation at path ['.concat(y,"] to nodes of different interfaces: ").concat(h," ").concat(w));if(x.children.splice(S,1),t)for(var[C,N]of j.points(t))t[N]=$e.transform(C,n);break}case"move_node":{var{path:R,newPath:U}=n;if(P.isAncestor(R,U))throw new Error("Cannot move a path [".concat(R,"] to new path [").concat(U,"] because the destination is inside itself."));var W=q.get(e,R),Z=q.parent(e,R),Q=R[R.length-1];Z.children.splice(Q,1);var le=P.transform(R,n),te=q.get(e,P.parent(le)),ue=le[le.length-1];if(te.children.splice(ue,0,W),t)for(var[he,Ie]of j.points(t))t[Ie]=$e.transform(he,n);break}case"remove_node":{var{path:ye}=n,oe=ye[ye.length-1],Le=q.parent(e,ye);if(Le.children.splice(oe,1),t)for(var[T,F]of j.points(t)){var k=$e.transform(T,n);if(t!=null&&k!=null)t[F]=k;else{var I=void 0,V=void 0;for(var[L,ee]of q.texts(e))if(P.compare(ee,ye)===-1)I=[L,ee];else{V=[L,ee];break}var pe=!1;I&&V&&(P.equals(V[1],ye)?pe=!P.hasPrevious(V[1]):pe=P.common(I[1],ye).length2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(e,()=>{var{hanging:r=!1,voids:i=!1,mode:o="lowest"}=n,{at:a,match:u,select:s}=n;if(q.isNode(t)&&(t=[t]),t.length!==0){var[l]=t;if(a||(e.selection?a=e.selection:e.children.length>0?a=E.end(e,[]):a=[0],s=!0),s==null&&(s=!1),j.isRange(a))if(r||(a=E.unhangRange(e,a)),j.isCollapsed(a))a=a.anchor;else{var[,c]=j.edges(a),f=E.pointRef(e,c);_.delete(e,{at:a}),a=f.unref()}if($e.isPoint(a)){u==null&&(J.isText(l)?u=S=>J.isText(S):e.isInline(l)?u=S=>J.isText(S)||E.isInline(e,S):u=S=>E.isBlock(e,S));var[d]=E.nodes(e,{at:a.path,match:u,mode:o,voids:i});if(d){var[,p]=d,m=E.pathRef(e,p),v=E.isEnd(e,a,p);_.splitNodes(e,{at:a,match:u,mode:o,voids:i});var g=m.unref();a=v?P.next(g):g}else return}var y=P.parent(a),h=a[a.length-1];if(!(!i&&E.void(e,{at:y}))){for(var $ of t){var w=y.concat(h);h++,e.apply({type:"insert_node",path:w,node:$}),a=P.next(a)}if(a=P.previous(a),s){var x=E.end(e,a);x&&_.select(e,x)}}}})},liftNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(e,()=>{var{at:n=e.selection,mode:r="lowest",voids:i=!1}=t,{match:o}=t;if(o==null&&(o=P.isPath(n)?gu(e,n):$=>E.isBlock(e,$)),!!n){var a=E.nodes(e,{at:n,match:o,mode:r,voids:i}),u=Array.from(a,$=>{var[,w]=$;return E.pathRef(e,w)});for(var s of u){var l=s.unref();if(l.length<2)throw new Error("Cannot lift node at a path [".concat(l,"] because it has a depth of less than `2`."));var c=E.node(e,P.parent(l)),[f,d]=c,p=l[l.length-1],{length:m}=f.children;if(m===1){var v=P.next(d);_.moveNodes(e,{at:l,to:v,voids:i}),_.removeNodes(e,{at:d,voids:i})}else if(p===0)_.moveNodes(e,{at:l,to:d,voids:i});else if(p===m-1){var g=P.next(d);_.moveNodes(e,{at:l,to:g,voids:i})}else{var y=P.next(l),h=P.next(d);_.splitNodes(e,{at:y,voids:i}),_.moveNodes(e,{at:l,to:h,voids:i})}}}})},mergeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(e,()=>{var{match:n,at:r=e.selection}=t,{hanging:i=!1,voids:o=!1,mode:a="lowest"}=t;if(!!r){if(n==null)if(P.isPath(r)){var[u]=E.parent(e,r);n=R=>u.children.includes(R)}else n=R=>E.isBlock(e,R);if(!i&&j.isRange(r)&&(r=E.unhangRange(e,r)),j.isRange(r))if(j.isCollapsed(r))r=r.anchor;else{var[,s]=j.edges(r),l=E.pointRef(e,s);_.delete(e,{at:r}),r=l.unref(),t.at==null&&_.select(e,r)}var[c]=E.nodes(e,{at:r,match:n,voids:o,mode:a}),f=E.previous(e,{at:r,match:n,voids:o,mode:a});if(!(!c||!f)){var[d,p]=c,[m,v]=f;if(!(p.length===0||v.length===0)){var g=P.next(v),y=P.common(p,v),h=P.isSibling(p,v),$=Array.from(E.levels(e,{at:p}),R=>{var[U]=R;return U}).slice(y.length).slice(0,-1),w=E.above(e,{at:p,mode:"highest",match:R=>$.includes(R)&&M6(e,R)}),x=w&&E.pathRef(e,w[1]),S,C;if(J.isText(d)&&J.isText(m)){var N=ti(d,tj);C=m.text.length,S=N}else if(ne.isElement(d)&&ne.isElement(m)){var N=ti(d,nj);C=m.children.length,S=N}else throw new Error("Cannot merge the node at path [".concat(p,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(d)," ").concat(JSON.stringify(m)));h||_.moveNodes(e,{at:p,to:g,voids:o}),x&&_.removeNodes(e,{at:x.current,voids:o}),ne.isElement(m)&&E.isEmpty(e,m)||J.isText(m)&&m.text===""&&v[v.length-1]!==0?_.removeNodes(e,{at:v,voids:o}):e.apply({type:"merge_node",path:g,position:C,properties:S}),x&&x.unref()}}}})},moveNodes(e,t){E.withoutNormalizing(e,()=>{var{to:n,at:r=e.selection,mode:i="lowest",voids:o=!1}=t,{match:a}=t;if(!!r){a==null&&(a=P.isPath(r)?gu(e,r):p=>E.isBlock(e,p));var u=E.pathRef(e,n),s=E.nodes(e,{at:r,match:a,mode:i,voids:o}),l=Array.from(s,p=>{var[,m]=p;return E.pathRef(e,m)});for(var c of l){var f=c.unref(),d=u.current;f.length!==0&&e.apply({type:"move_node",path:f,newPath:d}),u.current&&P.isSibling(d,f)&&P.isAfter(d,f)&&(u.current=P.next(u.current))}u.unref()}})},removeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(e,()=>{var{hanging:n=!1,voids:r=!1,mode:i="lowest"}=t,{at:o=e.selection,match:a}=t;if(!!o){a==null&&(a=P.isPath(o)?gu(e,o):d=>E.isBlock(e,d)),!n&&j.isRange(o)&&(o=E.unhangRange(e,o));var u=E.nodes(e,{at:o,match:a,mode:i,voids:r}),s=Array.from(u,d=>{var[,p]=d;return E.pathRef(e,p)});for(var l of s){var c=l.unref();if(c){var[f]=E.node(e,c);e.apply({type:"remove_node",path:c,node:f})}}}})},setNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(e,()=>{var{match:r,at:i=e.selection}=n,{hanging:o=!1,mode:a="lowest",split:u=!1,voids:s=!1}=n;if(!!i){if(r==null&&(r=P.isPath(i)?gu(e,i):x=>E.isBlock(e,x)),!o&&j.isRange(i)&&(i=E.unhangRange(e,i)),u&&j.isRange(i)){if(j.isCollapsed(i)&&E.leaf(e,i.anchor)[0].text.length>0)return;var l=E.rangeRef(e,i,{affinity:"inward"}),[c,f]=j.edges(i),d=a==="lowest"?"lowest":"highest",p=E.isEnd(e,f,f.path);_.splitNodes(e,{at:f,match:r,mode:d,voids:s,always:!p});var m=E.isStart(e,c,c.path);_.splitNodes(e,{at:c,match:r,mode:d,voids:s,always:!m}),i=l.unref(),n.at==null&&_.select(e,i)}for(var[v,g]of E.nodes(e,{at:i,match:r,mode:a,voids:s})){var y={},h={};if(g.length!==0){var $=!1;for(var w in t)w==="children"||w==="text"||t[w]!==v[w]&&($=!0,v.hasOwnProperty(w)&&(y[w]=v[w]),t[w]!=null&&(h[w]=t[w]));$&&e.apply({type:"set_node",path:g,properties:y,newProperties:h})}}}})},splitNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(e,()=>{var{mode:n="lowest",voids:r=!1}=t,{match:i,at:o=e.selection,height:a=0,always:u=!1}=t;if(i==null&&(i=he=>E.isBlock(e,he)),j.isRange(o)&&(o=ij(e,o)),P.isPath(o)){var s=o,l=E.point(e,s),[c]=E.parent(e,s);i=he=>he===c,a=l.path.length-s.length+1,o=l,u=!0}if(!!o){var f=E.pointRef(e,o,{affinity:"backward"}),[d]=E.nodes(e,{at:o,match:i,mode:n,voids:r});if(!!d){var p=E.void(e,{at:o,mode:"highest"}),m=0;if(!r&&p){var[v,g]=p;if(ne.isElement(v)&&e.isInline(v)){var y=E.after(e,g);if(!y){var h={text:""},$=P.next(g);_.insertNodes(e,h,{at:$,voids:r}),y=E.point(e,$)}o=y,u=!0}var w=o.path.length-g.length;a=w+1,u=!0}var x=E.pointRef(e,o),S=o.path.length-a,[,C]=d,N=o.path.slice(0,S),R=a===0?o.offset:o.path[S]+m;for(var[U,W]of E.levels(e,{at:N,reverse:!0,voids:r})){var Z=!1;if(W.length2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var i of t)r[i]=null;_.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(e,()=>{var{mode:n="lowest",split:r=!1,voids:i=!1}=t,{at:o=e.selection,match:a}=t;if(!!o){a==null&&(a=P.isPath(o)?gu(e,o):d=>E.isBlock(e,d)),P.isPath(o)&&(o=E.range(e,o));var u=j.isRange(o)?E.rangeRef(e,o):null,s=E.nodes(e,{at:o,match:a,mode:n,voids:i}),l=Array.from(s,d=>{var[,p]=d;return E.pathRef(e,p)}).reverse(),c=function(p){var m=p.unref(),[v]=E.node(e,m),g=E.range(e,m);r&&u&&(g=j.intersection(u.current,g)),_.liftNodes(e,{at:g,match:y=>ne.isAncestor(v)&&v.children.includes(y),voids:i})};for(var f of l)c(f);u&&u.unref()}})},wrapNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(e,()=>{var{mode:r="lowest",split:i=!1,voids:o=!1}=n,{match:a,at:u=e.selection}=n;if(!!u){if(a==null&&(P.isPath(u)?a=gu(e,u):e.isInline(t)?a=g=>E.isInline(e,g)||J.isText(g):a=g=>E.isBlock(e,g)),i&&j.isRange(u)){var[s,l]=j.edges(u),c=E.rangeRef(e,u,{affinity:"inward"});_.splitNodes(e,{at:l,match:a,voids:o}),_.splitNodes(e,{at:s,match:a,voids:o}),u=c.unref(),n.at==null&&_.select(e,u)}var f=Array.from(E.nodes(e,{at:u,match:e.isInline(t)?g=>E.isBlock(e,g):g=>E.isEditor(g),mode:"lowest",voids:o}));for(var[,d]of f){var p=j.isRange(u)?j.intersection(u,E.range(e,d)):u;if(!!p){var m=Array.from(E.nodes(e,{at:p,match:a,mode:r,voids:o}));if(m.length>0){var v=function(){var[g]=m,y=m[m.length-1],[,h]=g,[,$]=y;if(h.length===0&&$.length===0)return"continue";var w=P.equals(h,$)?P.parent(h):P.common(h,$),x=E.range(e,h,$),S=E.node(e,w),[C]=S,N=w.length+1,R=P.next($.slice(0,N)),U=L6(L6({},t),{},{children:[]});_.insertNodes(e,U,{at:R,voids:o}),_.moveNodes(e,{at:x,match:W=>ne.isAncestor(C)&&C.children.includes(W),to:R.concat(0),voids:o})}();if(v==="continue")continue}}}}})}},M6=(e,t)=>{if(ne.isElement(t)){var n=t;return E.isVoid(e,t)?!0:n.children.length===1?M6(e,n.children[0]):!1}else return!E.isEditor(t)},ij=(e,t)=>{if(j.isCollapsed(t))return t.anchor;var[,n]=j.edges(t),r=E.pointRef(e,n);return _.delete(e,{at:t}),r.unref()},gu=(e,t)=>{var[n]=E.node(e,t);return r=>r===n};function z6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function H6(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{},{edge:n="anchor"}=t,{selection:r}=e;if(r){if(n==="anchor")_.select(e,r.anchor);else if(n==="focus")_.select(e,r.focus);else if(n==="start"){var[i]=j.edges(r);_.select(e,i)}else if(n==="end"){var[,o]=j.edges(r);_.select(e,o)}}else return},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:n}=e,{distance:r=1,unit:i="character",reverse:o=!1}=t,{edge:a=null}=t;if(!!n){a==="start"&&(a=j.isBackward(n)?"focus":"anchor"),a==="end"&&(a=j.isBackward(n)?"anchor":"focus");var{anchor:u,focus:s}=n,l={distance:r,unit:i},c={};if(a==null||a==="anchor"){var f=o?E.before(e,u,l):E.after(e,u,l);f&&(c.anchor=f)}if(a==null||a==="focus"){var d=o?E.before(e,s,l):E.after(e,s,l);d&&(c.focus=d)}_.setSelection(e,c)}},select(e,t){var{selection:n}=e;if(t=E.range(e,t),n){_.setSelection(e,t);return}if(!j.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})},setPoint(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:r}=e,{edge:i="both"}=n;if(!!r){i==="start"&&(i=j.isBackward(r)?"focus":"anchor"),i==="end"&&(i=j.isBackward(r)?"anchor":"focus");var{anchor:o,focus:a}=r,u=i==="anchor"?o:a;_.setSelection(e,{[i==="anchor"?"anchor":"focus"]:H6(H6({},u),t)})}},setSelection(e,t){var{selection:n}=e,r={},i={};if(!!n){for(var o in t)(o==="anchor"&&t.anchor!=null&&!$e.equals(t.anchor,n.anchor)||o==="focus"&&t.focus!=null&&!$e.equals(t.focus,n.focus)||o!=="anchor"&&o!=="focus"&&t[o]!==n[o])&&(r[o]=n[o],i[o]=t[o]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:i})}}},aj={delete(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(e,()=>{var{reverse:n=!1,unit:r="character",distance:i=1,voids:o=!1}=t,{at:a=e.selection,hanging:u=!1}=t;if(!!a){if(j.isRange(a)&&j.isCollapsed(a)&&(a=a.anchor),$e.isPoint(a)){var s=E.void(e,{at:a,mode:"highest"});if(!o&&s){var[,l]=s;a=l}else{var c={unit:r,distance:i},f=n?E.before(e,a,c)||E.start(e,[]):E.after(e,a,c)||E.end(e,[]);a={anchor:a,focus:f},u=!0}}if(P.isPath(a)){_.removeNodes(e,{at:a,voids:o});return}if(!j.isCollapsed(a)){if(!u){var[,d]=j.edges(a),p=E.end(e,[]);$e.equals(d,p)||(a=E.unhangRange(e,a,{voids:o}))}var[m,v]=j.edges(a),g=E.above(e,{match:pe=>E.isBlock(e,pe),at:m,voids:o}),y=E.above(e,{match:pe=>E.isBlock(e,pe),at:v,voids:o}),h=g&&y&&!P.equals(g[1],y[1]),$=P.equals(m.path,v.path),w=o?null:E.void(e,{at:m,mode:"highest"}),x=o?null:E.void(e,{at:v,mode:"highest"});if(w){var S=E.before(e,m);S&&g&&P.isAncestor(g[1],S.path)&&(m=S)}if(x){var C=E.after(e,v);C&&y&&P.isAncestor(y[1],C.path)&&(v=C)}var N=[],R;for(var U of E.nodes(e,{at:a,voids:o})){var[W,Z]=U;R&&P.compare(Z,R)===0||(!o&&E.isVoid(e,W)||!P.isCommon(Z,m.path)&&!P.isCommon(Z,v.path))&&(N.push(U),R=Z)}var Q=Array.from(N,pe=>{var[,Ce]=pe;return E.pathRef(e,Ce)}),le=E.pointRef(e,m),te=E.pointRef(e,v);if(!$&&!w){var ue=le.current,[he]=E.leaf(e,ue),{path:Ie}=ue,{offset:ye}=m,oe=he.text.slice(ye);oe.length>0&&e.apply({type:"remove_text",path:Ie,offset:ye,text:oe})}for(var Le of Q){var T=Le.unref();_.removeNodes(e,{at:T,voids:o})}if(!x){var F=te.current,[k]=E.leaf(e,F),{path:I}=F,V=$?m.offset:0,L=k.text.slice(V,v.offset);L.length>0&&e.apply({type:"remove_text",path:I,offset:V,text:L})}!$&&h&&te.current&&le.current&&_.mergeNodes(e,{at:te.current,hanging:!0,voids:o});var ee=n?le.unref()||te.unref():te.unref()||le.unref();t.at==null&&ee&&_.select(e,ee)}}})},insertFragment(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(e,()=>{var{hanging:r=!1,voids:i=!1}=n,{at:o=e.selection}=n;if(!!t.length){if(o)if(j.isRange(o))if(r||(o=E.unhangRange(e,o)),j.isCollapsed(o))o=o.anchor;else{var[,a]=j.edges(o);if(!i&&E.void(e,{at:a}))return;var u=E.pointRef(e,a);_.delete(e,{at:o}),o=u.unref()}else P.isPath(o)&&(o=E.start(e,o));else return;if(!(!i&&E.void(e,{at:o}))){var s=E.above(e,{at:o,match:k=>E.isInline(e,k),mode:"highest",voids:i});if(s){var[,l]=s;if(E.isEnd(e,o,l)){var c=E.after(e,l);o=c}else if(E.isStart(e,o,l)){var f=E.before(e,l);o=f}}var d=E.above(e,{match:k=>E.isBlock(e,k),at:o,voids:i}),[,p]=d,m=E.isStart(e,o,p),v=E.isEnd(e,o,p),g=m&&v,y=!m||m&&v,h=!v,[,$]=q.first({children:t},[]),[,w]=q.last({children:t},[]),x=[],S=k=>{var[I,V]=k,L=V.length===0;return L?!1:g?!0:!(y&&P.isAncestor(V,$)&&ne.isElement(I)&&!e.isVoid(I)&&!e.isInline(I)||h&&P.isAncestor(V,w)&&ne.isElement(I)&&!e.isVoid(I)&&!e.isInline(I))};for(var C of q.nodes({children:t},{pass:S}))S(C)&&x.push(C);var N=[],R=[],U=[],W=!0,Z=!1;for(var[Q]of x)ne.isElement(Q)&&!e.isInline(Q)?(W=!1,Z=!0,R.push(Q)):W?N.push(Q):U.push(Q);var[le]=E.nodes(e,{at:o,match:k=>J.isText(k)||E.isInline(e,k),mode:"highest",voids:i}),[,te]=le,ue=E.isStart(e,o,te),he=E.isEnd(e,o,te),Ie=E.pathRef(e,v?P.next(p):p),ye=E.pathRef(e,he?P.next(te):te),oe=E.pathRef(e,p);_.splitNodes(e,{at:o,match:k=>Z?E.isBlock(e,k):J.isText(k)||E.isInline(e,k),mode:Z?"lowest":"highest",voids:i});var Le=E.pathRef(e,!ue||ue&&he?P.next(te):te);if(_.insertNodes(e,N,{at:Le.current,match:k=>J.isText(k)||E.isInline(e,k),mode:"highest",voids:i}),g&&R.length&&_.delete(e,{at:oe.unref(),voids:i}),_.insertNodes(e,R,{at:Ie.current,match:k=>E.isBlock(e,k),mode:"lowest",voids:i}),_.insertNodes(e,U,{at:ye.current,match:k=>J.isText(k)||E.isInline(e,k),mode:"highest",voids:i}),!n.at){var T;U.length>0?T=P.previous(ye.current):R.length>0?T=P.previous(Ie.current):T=P.previous(Le.current);var F=E.end(e,T);_.select(e,F)}Le.unref(),Ie.unref(),ye.unref()}}})},insertText(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(e,()=>{var{voids:r=!1}=n,{at:i=e.selection}=n;if(!!i){if(P.isPath(i)&&(i=E.range(e,i)),j.isRange(i))if(j.isCollapsed(i))i=i.anchor;else{var o=j.end(i);if(!r&&E.void(e,{at:o}))return;var a=E.pointRef(e,o);_.delete(e,{at:i,voids:r}),i=a.unref(),_.setSelection(e,{anchor:i,focus:i})}if(!(!r&&E.void(e,{at:i}))){var{path:u,offset:s}=i;t.length>0&&e.apply({type:"insert_text",path:u,offset:s,text:t})}}})}};function U6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Zd(e){for(var t=1;t-1&&e%1==0&&e-1&&e%1==0&&e<=V6}function s8(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function l8(e){return!!e&&typeof e=="object"}function rR(e){return typeof e=="string"||!a8(e)&&l8(e)&&dl.call(e)==fj}function iR(e){if(!e)return[];if(u1(e))return rR(e)?Nj(e):Xj(e);if(t1&&e[t1])return Tj(e[t1]());var t=Go(e),n=t==Yv?kj:t==Xv?_j:aR;return n(e)}function oR(e){return u1(e)?Gj(e):Yj(e)}function aR(e){return e?Aj(e,oR(e)):[]}var c8=iR;function f8(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function s1(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach(function(n){typeof e[n]=="undefined"?e[n]=t[n]:f8(t[n])&&f8(e[n])&&Object.keys(t[n]).length>0&&s1(e[n],t[n])})}var d8={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 hl(){var e=typeof document!="undefined"?document:{};return s1(e,d8),e}var uR={document:d8,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){return typeof setTimeout=="undefined"?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){typeof setTimeout!="undefined"&&clearTimeout(e)}};function Ko(){var e=typeof window!="undefined"?window:{};return s1(e,uR),e}function sR(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function l1(e){return l1=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},l1(e)}function tp(e,t){return tp=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},tp(e,t)}function lR(){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(e){return!1}}function np(e,t,n){return lR()?np=Reflect.construct:np=function(i,o,a){var u=[null];u.push.apply(u,o);var s=Function.bind.apply(i,u),l=new s;return a&&tp(l,a.prototype),l},np.apply(null,arguments)}function cR(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function c1(e){var t=typeof Map=="function"?new Map:void 0;return c1=function(r){if(r===null||!cR(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return np(r,arguments,l1(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),tp(i,r)},c1(e)}function fR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dR(e){var t=e.__proto__;Object.defineProperty(e,"__proto__",{get:function(){return t},set:function(r){t.__proto__=r}})}var Ai=function(e){sR(t,e);function t(n){var r;return r=e.call.apply(e,[this].concat(n))||this,dR(fR(r)),r}return t}(c1(Array));function rp(e){e===void 0&&(e=[]);var t=[];return e.forEach(function(n){Array.isArray(n)?t.push.apply(t,rp(n)):t.push(n)}),t}function p8(e,t){return Array.prototype.filter.call(e,t)}function pR(e){for(var t=[],n=0;n=0&&o.indexOf(">")>=0){var a="div";o.indexOf("0}).length>0}function Mn(e,t){if(arguments.length===1&&typeof e=="string")return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n=0&&(t[hR(i.name.split("data-")[1])]=i.value)}for(var o in t)t[o]==="false"?t[o]=!1:t[o]==="true"?t[o]=!0:parseFloat(t[o])===t[o]*1&&(t[o]*=1);return t}}function Sr(e){if(typeof e=="undefined"){var t=this[0];if(!t)return;if(t.multiple&&t.nodeName.toLowerCase()==="select"){for(var n=[],r=0;r=0;else o.value=e}return this}function Dr(){for(var e=arguments.length,t=new Array(e),n=0;n=0;p-=1){var m=d[p];o&&m.listener===o||o&&m.listener&&m.listener.dom7proxy&&m.listener.dom7proxy===o?(f.removeEventListener(l,m.proxyListener,a),d.splice(p,1)):o||(f.removeEventListener(l,m.proxyListener,a),d.splice(p,1))}}return this}function op(){var e=Ko();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function ap(){var e=Ko();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function g8(){if(this.length>0){var e=Ko(),t=hl(),n=this[0],r=n.getBoundingClientRect(),i=t.body,o=n.clientTop||i.clientTop||0,a=n.clientLeft||i.clientLeft||0,u=n===e?e.scrollY:n.scrollTop,s=n===e?e.scrollX:n.scrollLeft;return{top:r.top+u-o,left:r.left+s-a}}return null}function $u(){for(var e=0;e=0;r-=1)this[n].insertBefore(i.childNodes[r],this[n].childNodes[0])}else if(e instanceof Ai)for(r=0;r-1&&e%1==0&&e-1&&e%1==0&&e<=w8}function MR(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function zR(e){return!!e&&typeof e=="object"}function HR(e){return d1(e)?CR(e):FR(e)}function UR(e){return e}var p1=NR;{if(typeof navigator!="undefined"&&navigator.product==="ReactNative"&&typeof crypto=="undefined")throw new Error("React Native does not have a built-in secure random generator. If you don\u2019t need unpredictable IDs use `nanoid/non-secure`. For secure IDs, import `react-native-get-random-values` before Nano ID.");if(typeof msCrypto!="undefined"&&typeof crypto=="undefined")throw new Error("Import file with `if (!window.crypto) window.crypto = window.msCrypto` before importing Nano ID to fix IE 11 support");if(typeof crypto=="undefined")throw new Error("Your browser does not have secure random generator. If you don\u2019t need unpredictable IDs, you can use nanoid/non-secure.")}let S8=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=n[e]&63;r<36?t+=r.toString(36):r<62?t+=(r-26).toString(36).toUpperCase():r<63?t+="_":t+="-"}return t};var D8="Expected a function",C8=0/0,VR="[object Symbol]",WR=/^\s+|\s+$/g,GR=/^[-+]0x[0-9a-f]+$/i,qR=/^0b[01]+$/i,KR=/^0o[0-7]+$/i,YR=parseInt,XR=typeof ot=="object"&&ot&&ot.Object===Object&&ot,JR=typeof self=="object"&&self&&self.Object===Object&&self,ZR=XR||JR||Function("return this")(),QR=Object.prototype,eL=QR.toString,tL=Math.max,nL=Math.min,h1=function(){return ZR.Date.now()};function rL(e,t,n){var r,i,o,a,u,s,l=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(D8);t=A8(t)||0,pp(n)&&(c=!!n.leading,f="maxWait"in n,o=f?tL(A8(n.maxWait)||0,t):o,d="trailing"in n?!!n.trailing:d);function p(S){var C=r,N=i;return r=i=void 0,l=S,a=e.apply(N,C),a}function m(S){return l=S,u=setTimeout(y,t),c?p(S):a}function v(S){var C=S-s,N=S-l,R=t-C;return f?nL(R,o-N):R}function g(S){var C=S-s,N=S-l;return s===void 0||C>=t||C<0||f&&N>=o}function y(){var S=h1();if(g(S))return h(S);u=setTimeout(y,v(S))}function h(S){return u=void 0,d&&r?p(S):(r=i=void 0,a)}function $(){u!==void 0&&clearTimeout(u),l=0,r=s=i=u=void 0}function w(){return u===void 0?a:h(h1())}function x(){var S=h1(),C=g(S);if(r=arguments,i=this,s=S,C){if(u===void 0)return m(s);if(f)return u=setTimeout(y,t),p(s)}return u===void 0&&(u=setTimeout(y,t)),a}return x.cancel=$,x.flush=w,x}function iL(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(D8);return pp(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),rL(e,t,{leading:r,maxWait:t,trailing:i})}function pp(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function oL(e){return!!e&&typeof e=="object"}function aL(e){return typeof e=="symbol"||oL(e)&&eL.call(e)==VR}function A8(e){if(typeof e=="number")return e;if(aL(e))return C8;if(pp(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=pp(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(WR,"");var n=qR.test(e);return n||KR.test(e)?YR(e.slice(2),n?2:8):GR.test(e)?C8:+e}var Yo=iL;function uL(e,t){return document.createElement(e,t)}function sL(e,t,n){return document.createElementNS(e,t,n)}function lL(e){return document.createTextNode(e)}function cL(e){return document.createComment(e)}function fL(e,t,n){e.insertBefore(t,n)}function dL(e,t){e.removeChild(t)}function pL(e,t){e.appendChild(t)}function hL(e){return e.parentNode}function gL(e){return e.nextSibling}function vL(e){return e.tagName}function mL(e,t){e.textContent=t}function yL(e){return e.textContent}function bL(e){return e.nodeType===1}function $L(e){return e.nodeType===3}function wL(e){return e.nodeType===8}const EL={createElement:uL,createElementNS:sL,createTextNode:lL,createComment:cL,insertBefore:fL,removeChild:dL,appendChild:pL,parentNode:hL,nextSibling:gL,tagName:vL,setTextContent:mL,getTextContent:yL,isElement:bL,isText:$L,isComment:wL};function gl(e,t,n,r,i){const o=t===void 0?void 0:t.key;return{sel:e,data:t,children:n,text:r,elm:i,key:o}}const g1=Array.isArray;function hp(e){return typeof e=="string"||typeof e=="number"||e instanceof String||e instanceof Number}function v1(e){return e===void 0}function Sn(e){return e!==void 0}const O8=gl("",{},[],void 0,void 0);function vl(e,t){var n,r;const i=e.key===t.key,o=((n=e.data)===null||n===void 0?void 0:n.is)===((r=t.data)===null||r===void 0?void 0:r.is);return e.sel===t.sel&&i&&o}function xL(e){return e.sel!==void 0}function SL(e,t,n){var r;const i={};for(let o=t;o<=n;++o){const a=(r=e[o])===null||r===void 0?void 0:r.key;a!==void 0&&(i[a]=o)}return i}const DL=["create","update","remove","destroy","pre","post"];function CL(e,t){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=t!==void 0?t:EL;for(const d of DL)for(const p of e){const m=p[d];m!==void 0&&n[d].push(m)}function i(d){const p=d.id?"#"+d.id:"",m=d.getAttribute("class"),v=m?"."+m.split(" ").join("."):"";return gl(r.tagName(d).toLowerCase()+p+v,{},[],void 0,d)}function o(d,p){return function(){if(--p==0){const v=r.parentNode(d);r.removeChild(v,d)}}}function a(d,p){var m,v;let g,y=d.data;if(y!==void 0){const w=(m=y.hook)===null||m===void 0?void 0:m.init;Sn(w)&&(w(d),y=d.data)}const h=d.children,$=d.sel;if($==="!")v1(d.text)&&(d.text=""),d.elm=r.createComment(d.text);else if($!==void 0){const w=$.indexOf("#"),x=$.indexOf(".",w),S=w>0?w:$.length,C=x>0?x:$.length,N=w!==-1||x!==-1?$.slice(0,Math.min(S,C)):$,R=d.elm=Sn(y)&&Sn(g=y.ns)?r.createElementNS(g,N,y):r.createElement(N,y);for(S0&&R.setAttribute("class",$.slice(C+1).replace(/\./g," ")),g=0;gh?(W=m[x+1]==null?null:m[x+1].elm,u(d,W,m,y,x,v)):l(d,p,g,h))}function f(d,p,m){var v,g,y,h,$;const w=(v=p.data)===null||v===void 0?void 0:v.hook;(g=w==null?void 0:w.prepatch)===null||g===void 0||g.call(w,d,p);const x=p.elm=d.elm,S=d.children,C=p.children;if(d!==p){if(p.data!==void 0){for(let N=0;Ni?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r=r?e:DM(e,t,n)}function OM(e){return function(t){t=mp(t);var n=ox(t)?$M(t):void 0,r=n?n[0]:t.charAt(0),i=n?AM(n,1).join(""):t.slice(1);return r[e]()+i}}function BM(e){return function(t){return hM(IM(_M(t).replace(iM,"")),e,"")}}function FM(e){return!!e&&typeof e=="object"}function TM(e){return typeof e=="symbol"||FM(e)&&SM.call(e)==VL}function mp(e){return e==null?"":CM(e)}var kM=BM(function(e,t,n){return t=t.toLowerCase(),e+(n?PM(t):t)});function PM(e){return NM(mp(e).toLowerCase())}function _M(e){return e=mp(e),e&&e.replace(GL,yM).replace(oM,"")}var NM=OM("toUpperCase");function IM(e,t,n){return e=mp(e),t=n?void 0:t,t===void 0?bM(e)?EM(e):vM(e):e.match(t)||[]}for(var jM=kM,RM=typeof window!="undefined"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),x1={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},lx={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:RM?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},S1={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},yp=1;yp<20;yp++)S1["f"+yp]=111+yp;function cx(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map(function(a){return MM(a,t)}),i=function(u){return r.some(function(s){return zM(s,u)})},o=n==null?i:i(n);return o}function LM(e,t){return cx(e,{byKey:!0},t)}function MM(e,t){var n=t&&t.byKey,r={};e=e.replace("++","+add");var i=e.split("+"),o=i.length;for(var a in x1)r[x1[a]]=!1;var u=!0,s=!1,l=void 0;try{for(var c=i[Symbol.iterator](),f;!(u=(f=c.next()).done);u=!0){var d=f.value,p=d.endsWith("?")&&d.length>1;p&&(d=d.slice(0,-1));var m=fx(d),v=x1[m];if(d.length>1&&!v&&!lx[d]&&!S1[m])throw new TypeError('Unknown modifier: "'+d+'"');(o===1||!v)&&(n?r.key=m:r.which=HM(d)),v&&(r[v]=p?null:!0)}}catch(g){s=!0,l=g}finally{try{!u&&c.return&&c.return()}finally{if(s)throw l}}return r}function zM(e,t){for(var n in e){var r=e[n],i=void 0;if(r!=null&&(n==="key"&&t.key!=null?i=t.key.toLowerCase():n==="which"?i=r===91&&t.which===93?91:t.which:i=t[n],!(i==null&&r===!1)&&i!==r))return!1}return!0}function HM(e){e=fx(e);var t=S1[e]||e.toUpperCase().charCodeAt(0);return t}function fx(e){return e=e.toLowerCase(),e=lx[e]||e,e}var UM=cx,D1=LM,VM="Expected a function",dx=0/0,WM="[object Symbol]",GM=/^\s+|\s+$/g,qM=/^[-+]0x[0-9a-f]+$/i,KM=/^0b[01]+$/i,YM=/^0o[0-7]+$/i,XM=parseInt,JM=typeof ot=="object"&&ot&&ot.Object===Object&&ot,ZM=typeof self=="object"&&self&&self.Object===Object&&self,QM=JM||ZM||Function("return this")(),ez=Object.prototype,tz=ez.toString,nz=Math.max,rz=Math.min,C1=function(){return QM.Date.now()};function iz(e,t,n){var r,i,o,a,u,s,l=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(VM);t=px(t)||0,A1(n)&&(c=!!n.leading,f="maxWait"in n,o=f?nz(px(n.maxWait)||0,t):o,d="trailing"in n?!!n.trailing:d);function p(S){var C=r,N=i;return r=i=void 0,l=S,a=e.apply(N,C),a}function m(S){return l=S,u=setTimeout(y,t),c?p(S):a}function v(S){var C=S-s,N=S-l,R=t-C;return f?rz(R,o-N):R}function g(S){var C=S-s,N=S-l;return s===void 0||C>=t||C<0||f&&N>=o}function y(){var S=C1();if(g(S))return h(S);u=setTimeout(y,v(S))}function h(S){return u=void 0,d&&r?p(S):(r=i=void 0,a)}function $(){u!==void 0&&clearTimeout(u),l=0,r=s=i=u=void 0}function w(){return u===void 0?a:h(C1())}function x(){var S=C1(),C=g(S);if(r=arguments,i=this,s=S,C){if(u===void 0)return m(s);if(f)return u=setTimeout(y,t),p(s)}return u===void 0&&(u=setTimeout(y,t)),a}return x.cancel=$,x.flush=w,x}function A1(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function oz(e){return!!e&&typeof e=="object"}function az(e){return typeof e=="symbol"||oz(e)&&tz.call(e)==WM}function px(e){if(typeof e=="number")return e;if(az(e))return dx;if(A1(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=A1(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(GM,"");var n=KM.test(e);return n||YM.test(e)?XM(e.slice(2),n?2:8):qM.test(e)?dx:+e}var hx=iz,gx=Kv(function(e,t){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",a="[object Array]",u="[object Boolean]",s="[object Date]",l="[object Error]",c="[object Function]",f="[object GeneratorFunction]",d="[object Map]",p="[object Number]",m="[object Object]",v="[object Promise]",g="[object RegExp]",y="[object Set]",h="[object String]",$="[object Symbol]",w="[object WeakMap]",x="[object ArrayBuffer]",S="[object DataView]",C="[object Float32Array]",N="[object Float64Array]",R="[object Int8Array]",U="[object Int16Array]",W="[object Int32Array]",Z="[object Uint8Array]",Q="[object Uint8ClampedArray]",le="[object Uint16Array]",te="[object Uint32Array]",ue=/[\\^$.*+?()[\]{}|]/g,he=/\w*$/,Ie=/^\[object .+?Constructor\]$/,ye=/^(?:0|[1-9]\d*)$/,oe={};oe[o]=oe[a]=oe[x]=oe[S]=oe[u]=oe[s]=oe[C]=oe[N]=oe[R]=oe[U]=oe[W]=oe[d]=oe[p]=oe[m]=oe[g]=oe[y]=oe[h]=oe[$]=oe[Z]=oe[Q]=oe[le]=oe[te]=!0,oe[l]=oe[c]=oe[w]=!1;var Le=typeof ot=="object"&&ot&&ot.Object===Object&&ot,T=typeof self=="object"&&self&&self.Object===Object&&self,F=Le||T||Function("return this")(),k=t&&!t.nodeType&&t,I=k&&!0&&e&&!e.nodeType&&e,V=I&&I.exports===k;function L(b,D){return b.set(D[0],D[1]),b}function ee(b,D){return b.add(D),b}function pe(b,D){for(var B=-1,M=b?b.length:0;++B-1}function TE(b,D){var B=this.__data__,M=ol(B,b);return M<0?B.push([b,D]):B[M][1]=D,this}Zt.prototype.clear=AE,Zt.prototype.delete=OE,Zt.prototype.get=BE,Zt.prototype.has=FE,Zt.prototype.set=TE;function an(b){var D=-1,B=b?b.length:0;for(this.clear();++D-1&&b%1==0&&b-1&&b%1==0&&b<=i}function Zr(b){var D=typeof b;return!!b&&(D=="object"||D=="function")}function Av(b){return!!b&&typeof b=="object"}function zd(b){return sl(b)?il(b):GE(b)}function o6(){return[]}function a6(){return!1}e.exports=xv}),uz=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},Ou;function vx(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var sz=0;function lz(e){return"__private_"+sz+++"_"+e}function cz(e,t,n){const r=[];return e.forEach(i=>typeof i!="string"?r.push(i):t[Symbol.split](i).forEach((o,a,u)=>{o!==""&&r.push(o),acrypto.getRandomValues(new Uint8Array(e)),wx=(e,t,n)=>{let r=(2<{let o="";for(;;){let a=n(i),u=i;for(;u--;)if(o+=e[a[u]&r]||"",o.length===t)return o}}};var hz={nanoid:(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=n[e]&63;r<36?t+=r.toString(36):r<62?t+=(r-26).toString(36).toUpperCase():r<63?t+="_":t+="-"}return t},customAlphabet:(e,t)=>wx(e,t,$x),customRandom:wx,urlAlphabet:pz,random:$x},O1=function(t){if(typeof t!="number"||isNaN(t))throw new TypeError("Expected a number, got "+typeof t);var n=t<0,r=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(n&&(t=-t),t<1)return(n?"-":"")+t+" B";var i=Math.min(Math.floor(Math.log(t)/Math.log(1024)),r.length-1);t=Number(t/Math.pow(1024,i));var o=r[i];return t>=10||t%1==0?(n?"-":"")+t.toFixed(0)+" "+o:(n?"-":"")+t.toFixed(1)+" "+o};function Ex(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}Ex.prototype.match=function(e){var t=!0,n=this.parts,r,i=n.length,o;if(typeof e=="string"||e instanceof String)if(!this.hasWild&&this.text!=e)t=!1;else{for(o=(e||"").split(this.separator),r=0;t&&r=2}return t?n(t.split(";")[0]):n};function yz(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var bz=0;function $z(e){return"__private_"+bz+++"_"+e}var B1=$z("publish");class xx{constructor(){Object.defineProperty(this,B1,{value:wz}),this.state={},this.callbacks=[]}getState(){return this.state}setState(t){const n=z({},this.state),r=z(z({},this.state),t);this.state=r,yz(this,B1)[B1](n,r,t)}subscribe(t){return this.callbacks.push(t),()=>{this.callbacks.splice(this.callbacks.indexOf(t),1)}}}function wz(){for(var e=arguments.length,t=new Array(e),n=0;n{r(...t)})}xx.VERSION="2.0.3";var Ez=function(){return new xx},Sx=function(t){const n=t.lastIndexOf(".");return n===-1||n===t.length-1?{name:t,extension:void 0}:{name:t.slice(0,n),extension:t.slice(n+1)}},Dx={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"},xz=function(t){var n;if(t.type)return t.type;const r=t.name?(n=Sx(t.name).extension)==null?void 0:n.toLowerCase():null;return r&&r in Dx?Dx[r]:"application/octet-stream"};function Sz(e){return e.charCodeAt(0).toString(32)}function Cx(e){let t="";return e.replace(/[^A-Z0-9]/ig,n=>(t+=`-${Sz(n)}`,"/"))+t}var Dz=function(t){let n="uppy";return typeof t.name=="string"&&(n+=`-${Cx(t.name.toLowerCase())}`),t.type!==void 0&&(n+=`-${t.type}`),t.meta&&typeof t.meta.relativePath=="string"&&(n+=`-${Cx(t.meta.relativePath.toLowerCase())}`),t.data.size!==void 0&&(n+=`-${t.data.size}`),t.data.lastModified!==void 0&&(n+=`-${t.data.lastModified}`),n},Cz=function(t){if(t==null&&(t=typeof navigator!="undefined"?navigator.userAgent:null),!t)return!0;const n=/Edge\/(\d+\.\d+)/.exec(t);if(!n)return!0;const r=n[1];let[i,o]=r.split(".");return i=parseInt(i,10),o=parseInt(o,10),i<15||i===15&&o<15063||i>18||i===18&&o>=18218},Az=function(t,n){return n.name?n.name:t.split("/")[0]==="image"?`${t.split("/")[0]}.${t.split("/")[1]}`:"noname"};function F1(e){return e<10?`0${e}`:e.toString()}var bp=function(){const t=new Date,n=F1(t.getHours()),r=F1(t.getMinutes()),i=F1(t.getSeconds());return`${n}:${r}:${i}`},Ax={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),n=0;nr,onBeforeUpload:r=>r,store:Ez(),logger:Tz,infoTimeout:5e3};if(this.opts=z(z(z({},n),t),{restrictions:z(z({},n.restrictions),t&&t.restrictions)}),t&&t.logger&&t.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):t&&t.debug&&(this.opts.logger=kz),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=Yo(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:Cz(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:z({},this.opts.meta),info:[],recoveredState:null}),re(this,ml)[ml]=this.store.subscribe((r,i,o)=>{this.emit("state-update",r,i,o),this.updateAll(i)}),this.opts.debug&&typeof window!="undefined"&&(window[this.opts.id]=this),re(this,P1)[P1]()}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i{n.update(t)})}setState(t){this.store.setState(t)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(t,n){if(!this.getState().files[t])throw new Error(`Can\u2019t set state for ${t} (the file could have been removed)`);this.setState({files:z(z({},this.getState().files),{[t]:z(z({},this.getState().files[t]),n)})})}i18nInit(){const t=new yx([this.defaultLocale,this.opts.locale]);this.i18n=t.translate.bind(t),this.i18nArray=t.translateArray.bind(t),this.locale=t.locale}setOptions(t){this.opts=z(z(z({},this.opts),t),{restrictions:z(z({},this.opts.restrictions),t&&t.restrictions)}),t.meta&&this.setMeta(t.meta),this.i18nInit(),t.locale&&this.iteratePlugins(n=>{n.setOptions()}),this.setState()}resetProgress(){const t={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},n=z({},this.getState().files),r={};Object.keys(n).forEach(i=>{const o=z({},n[i]);o.progress=z(z({},o.progress),t),r[i]=o}),this.setState({files:r,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(t){re(this,Xo)[Xo].add(t)}removePreProcessor(t){return re(this,Xo)[Xo].delete(t)}addPostProcessor(t){re(this,ii)[ii].add(t)}removePostProcessor(t){return re(this,ii)[ii].delete(t)}addUploader(t){re(this,Jo)[Jo].add(t)}removeUploader(t){return re(this,Jo)[Jo].delete(t)}setMeta(t){const n=z(z({},this.getState().meta),t),r=z({},this.getState().files);Object.keys(r).forEach(i=>{r[i]=z(z({},r[i]),{meta:z(z({},r[i].meta),t)})}),this.log("Adding metadata:"),this.log(t),this.setState({meta:n,files:r})}setFileMeta(t,n){const r=z({},this.getState().files);if(!r[t]){this.log("Was trying to set metadata for a file that has been removed: ",t);return}const i=z(z({},r[t].meta),n);r[t]=z(z({},r[t]),{meta:i}),this.setState({files:r})}getFile(t){return this.getState().files[t]}getFiles(){const{files:t}=this.getState();return Object.values(t)}getObjectOfFilesPerState(){const{files:t,totalProgress:n,error:r}=this.getState(),i=Object.values(t),o=i.filter(m=>{let{progress:v}=m;return!v.uploadComplete&&v.uploadStarted}),a=i.filter(m=>!m.progress.uploadStarted),u=i.filter(m=>m.progress.uploadStarted||m.progress.preprocess||m.progress.postprocess),s=i.filter(m=>m.progress.uploadStarted),l=i.filter(m=>m.isPaused),c=i.filter(m=>m.progress.uploadComplete),f=i.filter(m=>m.error),d=o.filter(m=>!m.isPaused),p=i.filter(m=>m.progress.preprocess||m.progress.postprocess);return{newFiles:a,startedFiles:u,uploadStartedFiles:s,pausedFiles:l,completeFiles:c,erroredFiles:f,inProgressFiles:o,inProgressNotPausedFiles:d,processingFiles:p,isUploadStarted:s.length>0,isAllComplete:n===100&&c.length===i.length&&p.length===0,isAllErrored:!!r&&f.length===i.length,isAllPaused:o.length!==0&&l.length===o.length,isUploadInProgress:o.length>0,isSomeGhost:i.some(m=>m.isGhost)}}validateRestrictions(t,n){try{return re(this,yl)[yl](t,n),{result:!0}}catch(r){return{result:!1,reason:r.message}}}checkIfFileAlreadyExists(t){const{files:n}=this.getState();return!!(n[t]&&!n[t].isGhost)}addFile(t){re(this,$l)[$l](t);const{files:n}=this.getState();let r=re(this,wl)[wl](n,t);return n[r.id]&&n[r.id].isGhost&&(r=z(z({},n[r.id]),{data:t.data,isGhost:!1}),this.log(`Replaced the blob in the restored ghost file: ${r.name}, ${r.id}`)),this.setState({files:z(z({},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}`),re(this,El)[El](),r.id}addFiles(t){re(this,$l)[$l]();const n=z({},this.getState().files),r=[],i=[];for(let o=0;o{this.emit("file-added",o)}),this.emit("files-added",r),r.length>5?this.log(`Added batch of ${r.length} files`):Object.keys(r).forEach(o=>{this.log(`Added file: ${r[o].name} id: ${r[o].id} type: ${r[o].type}`)}),r.length>0&&re(this,El)[El](),i.length>0){let o=`Multiple errors occurred while adding files: `;if(i.forEach(a=>{o+=` * ${a.message}`}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:i.length}),details:o},"error",this.opts.infoTimeout),typeof AggregateError=="function")throw new AggregateError(i,o);{const a=new Error(o);throw a.errors=i,a}}}removeFiles(t,n){const{files:r,currentUploads:i}=this.getState(),o=z({},r),a=z({},i),u=Object.create(null);t.forEach(f=>{r[f]&&(u[f]=r[f],delete o[f])});function s(f){return u[f]===void 0}Object.keys(a).forEach(f=>{const d=i[f].fileIDs.filter(s);if(d.length===0){delete a[f];return}a[f]=z(z({},i[f]),{fileIDs:d})});const l={currentUploads:a,files:o};Object.keys(o).length===0&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),this.setState(l),this.calculateTotalProgress();const c=Object.keys(u);c.forEach(f=>{this.emit("file-removed",u[f],n)}),c.length>5?this.log(`Removed ${c.length} files`):this.log(`Removed files: ${c.join(", ")}`)}removeFile(t,n){n===void 0&&(n=null),this.removeFiles([t],n)}pauseResume(t){if(!this.getState().capabilities.resumableUploads||this.getFile(t).uploadComplete)return;const r=!(this.getFile(t).isPaused||!1);return this.setFileState(t,{isPaused:r}),this.emit("upload-pause",t,r),r}pauseAll(){const t=z({},this.getState().files);Object.keys(t).filter(r=>!t[r].progress.uploadComplete&&t[r].progress.uploadStarted).forEach(r=>{const i=z(z({},t[r]),{isPaused:!0});t[r]=i}),this.setState({files:t}),this.emit("pause-all")}resumeAll(){const t=z({},this.getState().files);Object.keys(t).filter(r=>!t[r].progress.uploadComplete&&t[r].progress.uploadStarted).forEach(r=>{const i=z(z({},t[r]),{isPaused:!1,error:null});t[r]=i}),this.setState({files:t}),this.emit("resume-all")}retryAll(){const t=z({},this.getState().files),n=Object.keys(t).filter(i=>t[i].error);if(n.forEach(i=>{const o=z(z({},t[i]),{isPaused:!1,error:null});t[i]=o}),this.setState({files:t,error:null}),this.emit("retry-all",n),n.length===0)return Promise.resolve({successful:[],failed:[]});const r=re(this,oi)[oi](n,{forceAllowNewUpload:!0});return re(this,ai)[ai](r)}cancelAll(){this.emit("cancel-all");const{files:t}=this.getState(),n=Object.keys(t);n.length&&this.removeFiles(n,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(t){this.setFileState(t,{error:null,isPaused:!1}),this.emit("upload-retry",t);const n=re(this,oi)[oi]([t],{forceAllowNewUpload:!0});return re(this,ai)[ai](n)}reset(){this.cancelAll()}logout(){this.iteratePlugins(t=>{t.provider&&t.provider.logout&&t.provider.logout()})}calculateProgress(t,n){if(!this.getFile(t.id)){this.log(`Not setting progress for a file that has been removed: ${t.id}`);return}const r=Number.isFinite(n.bytesTotal)&&n.bytesTotal>0;this.setFileState(t.id,{progress:z(z({},this.getFile(t.id).progress),{bytesUploaded:n.bytesUploaded,bytesTotal:n.bytesTotal,percentage:r?Math.round(n.bytesUploaded/n.bytesTotal*100):0})}),this.calculateTotalProgress()}calculateTotalProgress(){const n=this.getFiles().filter(l=>l.progress.uploadStarted||l.progress.preprocess||l.progress.postprocess);if(n.length===0){this.emit("progress",0),this.setState({totalProgress:0});return}const r=n.filter(l=>l.progress.bytesTotal!=null),i=n.filter(l=>l.progress.bytesTotal==null);if(r.length===0){const l=n.length*100,c=i.reduce((d,p)=>d+p.progress.percentage,0),f=Math.round(c/l*100);this.setState({totalProgress:f});return}let o=r.reduce((l,c)=>l+c.progress.bytesTotal,0);const a=o/r.length;o+=a*i.length;let u=0;r.forEach(l=>{u+=l.progress.bytesUploaded}),i.forEach(l=>{u+=a*(l.progress.percentage||0)/100});let s=o===0?0:Math.round(u/o*100);s>100&&(s=100),this.setState({totalProgress:s}),this.emit("progress",s)}updateOnlineStatus(){(typeof window.navigator.onLine!="undefined"?window.navigator.onLine:!0)?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(t,n){if(typeof t!="function"){const a=`Expected a plugin class, but got ${t===null?"null":typeof t}. Please verify that the plugin was imported and spelled correctly.`;throw new TypeError(a)}const r=new t(this,n),i=r.id;if(!i)throw new Error("Your plugin must have an id");if(!r.type)throw new Error("Your plugin must have a type");const o=this.getPlugin(i);if(o){const a=`Already found a plugin named '${o.id}'. Tried to use: '${i}'. Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(a)}return t.VERSION&&this.log(`Using ${i} v${t.VERSION}`),r.type in re(this,qt)[qt]?re(this,qt)[qt][r.type].push(r):re(this,qt)[qt][r.type]=[r],r.install(),this}getPlugin(t){for(const n of Object.values(re(this,qt)[qt])){const r=n.find(i=>i.id===t);if(r!=null)return r}}[Bx](t){return re(this,qt)[qt][t]}iteratePlugins(t){Object.values(re(this,qt)[qt]).flat(1).forEach(t)}removePlugin(t){this.log(`Removing plugin ${t.id}`),this.emit("plugin-remove",t),t.uninstall&&t.uninstall();const n=re(this,qt)[qt][t.type],r=n.findIndex(a=>a.id===t.id);r!==-1&&n.splice(r,1);const i=this.getState(),o={plugins:z(z({},i.plugins),{[t.id]:void 0})};this.setState(o)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),re(this,ml)[ml](),this.iteratePlugins(t=>{this.removePlugin(t)}),typeof window!="undefined"&&window.removeEventListener&&(window.removeEventListener("online",re(this,lr)[lr]),window.removeEventListener("offline",re(this,lr)[lr]))}hideInfo(){const{info:t}=this.getState();this.setState({info:t.slice(1)}),this.emit("info-hidden")}info(t,n,r){n===void 0&&(n="info"),r===void 0&&(r=3e3);const i=typeof t=="object";this.setState({info:[...this.getState().info,{type:n,message:i?t.message:t,details:i?t.details:null}]}),setTimeout(()=>this.hideInfo(),r),this.emit("info-visible")}log(t,n){const{logger:r}=this.opts;switch(n){case"error":r.error(t);break;case"warning":r.warn(t);break;default:r.debug(t);break}}restore(t){return this.log(`Core: attempting to restore upload "${t}"`),this.getState().currentUploads[t]?re(this,ai)[ai](t):(re(this,Zo)[Zo](t),Promise.reject(new Error("Nonexistent upload")))}[Fx](){return re(this,oi)[oi](...arguments)}addResultData(t,n){if(!re(this,_1)[_1](t)){this.log(`Not setting result for an upload that has been removed: ${t}`);return}const{currentUploads:r}=this.getState(),i=z(z({},r[t]),{result:z(z({},r[t].result),n)});this.setState({currentUploads:z(z({},r),{[t]:i})})}upload(){var t;(t=re(this,qt)[qt].uploader)!=null&&t.length||this.log("No uploader type plugins are used","warning");let{files:n}=this.getState();const r=this.opts.onBeforeUpload(n);return r===!1?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(r&&typeof r=="object"&&(n=r,this.setState({files:n})),Promise.resolve().then(()=>{re(this,T1)[T1](n),re(this,k1)[k1](n)}).catch(i=>{re(this,Nt)[Nt](i)}).then(()=>{const{currentUploads:i}=this.getState(),o=Object.values(i).flatMap(s=>s.fileIDs),a=[];Object.keys(n).forEach(s=>{const l=this.getFile(s);!l.progress.uploadStarted&&o.indexOf(s)===-1&&a.push(l.id)});const u=re(this,oi)[oi](a);return re(this,ai)[ai](u)}).catch(i=>{re(this,Nt)[Nt](i,{showInformer:!1})}))}}function _z(e,t){t===void 0&&(t=this.getFiles());const{maxFileSize:n,minFileSize:r,maxTotalFileSize:i,maxNumberOfFiles:o,allowedFileTypes:a}=this.opts.restrictions;if(o&&t.length+1>o)throw new Cr(`${this.i18n("youCanOnlyUploadX",{smart_count:o})}`);if(a&&!a.some(s=>s.indexOf("/")>-1?e.type?mz(e.type.replace(/;.*?$/,""),s):!1:s[0]==="."&&e.extension?e.extension.toLowerCase()===s.substr(1).toLowerCase():!1)){const s=a.join(", ");throw new Cr(this.i18n("youCanOnlyUploadFileTypes",{types:s}))}if(i&&e.size!=null){let u=0;if(u+=e.size,t.forEach(s=>{u+=s.size}),u>i)throw new Cr(this.i18n("exceedsSize",{size:O1(i),file:e.name}))}if(n&&e.size!=null&&e.size>n)throw new Cr(this.i18n("exceedsSize",{size:O1(n),file:e.name}));if(r&&e.size!=null&&e.size{const r=this.getFile(n);return re(this,bl)[bl](r)});if(t.length)throw new Pz(t,`${this.i18n("missingRequiredMetaField")}`)}function Rz(e,t){let{showInformer:n=!0,file:r=null,throwErr:i=!0}=t===void 0?{}:t;const o=typeof e=="object"?e.message:e,a=typeof e=="object"&&e.details?e.details:"";let u=o;if(a&&(u+=` ${a}`),e.isRestriction?(this.log(u),this.emit("restriction-failed",r,e)):this.log(u,"error"),n&&this.info({message:o,details:a},"error",this.opts.infoTimeout),i)throw typeof e=="object"?e:new Error(e)}function Lz(e){const{allowNewUpload:t}=this.getState();t===!1&&re(this,Nt)[Nt](new Cr(this.i18n("noMoreFilesAllowed")),{file:e})}function Mz(e,t){const n=xz(t),r=Az(n,t),i=Sx(r).extension,o=Boolean(t.isRemote),a=Dz(z(z({},t),{type:n}));if(this.checkIfFileAlreadyExists(a)){const f=new Cr(this.i18n("noDuplicates",{fileName:r}));re(this,Nt)[Nt](f,{file:t})}const u=t.meta||{};u.name=r,u.type=n;const s=Number.isFinite(t.data.size)?t.data.size:null;let l={source:t.source||"",id:a,name:r,extension:i||"",meta:z(z({},this.getState().meta),u),type:n,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:s,uploadComplete:!1,uploadStarted:null},size:s,isRemote:o,remote:t.remote||"",preview:t.preview};const c=this.opts.onBeforeFileAdded(l,e);c===!1?re(this,Nt)[Nt](new Cr("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:t}):typeof c=="object"&&c!==null&&(l=c);try{const f=Object.keys(e).map(d=>e[d]);re(this,yl)[yl](l,f)}catch(f){re(this,Nt)[Nt](f,{file:l})}return l}function zz(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(()=>{this.scheduledAutoProceed=null,this.upload().catch(e=>{e.isRestriction||this.log(e.stack||e.message||e)})},4))}function Hz(){const e=(t,n,r)=>{let i=t.message||"Unknown error";t.details&&(i+=` ${t.details}`),this.setState({error:i}),n!=null&&n.id in this.getState().files&&this.setFileState(n.id,{error:i,response:r})};this.on("error",e),this.on("upload-error",(t,n,r)=>{if(e(n,t,r),typeof n=="object"&&n.message){const i=new Error(n.message);i.details=n.message,n.details&&(i.details+=` ${n.details}`),i.message=this.i18n("failedToUpload",{file:t.name}),re(this,Nt)[Nt](i,{throwErr:!1})}else re(this,Nt)[Nt](n,{throwErr:!1})}),this.on("upload",()=>{this.setState({error:null})}),this.on("upload-started",t=>{if(!this.getFile(t.id)){this.log(`Not setting progress for a file that has been removed: ${t.id}`);return}this.setFileState(t.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:t.size}})}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(t,n)=>{if(!this.getFile(t.id)){this.log(`Not setting progress for a file that has been removed: ${t.id}`);return}const r=this.getFile(t.id).progress;this.setFileState(t.id,{progress:z(z({},r),{postprocess:re(this,ii)[ii].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:r.bytesTotal}),response:n,uploadURL:n.uploadURL,isPaused:!1}),t.size==null&&this.setFileState(t.id,{size:n.bytesUploaded||r.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(t,n)=>{if(!this.getFile(t.id)){this.log(`Not setting progress for a file that has been removed: ${t.id}`);return}this.setFileState(t.id,{progress:z(z({},this.getFile(t.id).progress),{preprocess:n})})}),this.on("preprocess-complete",t=>{if(!this.getFile(t.id)){this.log(`Not setting progress for a file that has been removed: ${t.id}`);return}const n=z({},this.getState().files);n[t.id]=z(z({},n[t.id]),{progress:z({},n[t.id].progress)}),delete n[t.id].progress.preprocess,this.setState({files:n})}),this.on("postprocess-progress",(t,n)=>{if(!this.getFile(t.id)){this.log(`Not setting progress for a file that has been removed: ${t.id}`);return}this.setFileState(t.id,{progress:z(z({},this.getState().files[t.id].progress),{postprocess:n})})}),this.on("postprocess-complete",t=>{if(!this.getFile(t.id)){this.log(`Not setting progress for a file that has been removed: ${t.id}`);return}const n=z({},this.getState().files);n[t.id]=z(z({},n[t.id]),{progress:z({},n[t.id].progress)}),delete n[t.id].progress.postprocess,this.setState({files:n})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",t=>{t&&re(this,bl)[bl](t)}),typeof window!="undefined"&&window.addEventListener&&(window.addEventListener("online",re(this,lr)[lr]),window.addEventListener("offline",re(this,lr)[lr]),setTimeout(re(this,lr)[lr],3e3))}function Uz(e,t){t===void 0&&(t={});const{forceAllowNewUpload:n=!1}=t,{allowNewUpload:r,currentUploads:i}=this.getState();if(!r&&!n)throw new Error("Cannot create a new upload: already uploading.");const o=Fz();return this.emit("upload",{id:o,fileIDs:e}),this.setState({allowNewUpload:this.opts.allowMultipleUploadBatches!==!1&&this.opts.allowMultipleUploads!==!1,currentUploads:z(z({},i),{[o]:{fileIDs:e,step:0,result:{}}})}),o}function Vz(e){const{currentUploads:t}=this.getState();return t[e]}function Wz(e){const t=z({},this.getState().currentUploads);delete t[e],this.setState({currentUploads:t})}function Gz(e){return u6(this,null,function*(){let{currentUploads:t}=this.getState(),n=t[e];const r=n.step||0,i=[...re(this,Xo)[Xo],...re(this,Jo)[Jo],...re(this,ii)[ii]];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(e,{successful:u,failed:s,uploadID:e}),t=this.getState().currentUploads,n=t[e]}let o;return n&&(o=n.result,this.emit("complete",o),re(this,Zo)[Zo](e)),o==null&&this.log(`Not setting result for an upload that has been removed: ${e}`),o})}Tx.VERSION="2.1.3";var kx=Tx,qz=Kv(function(e,t){var n,r,i,o,a,u,s,l,c={},f=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(T,F){for(var k in F)T[k]=F[k];return T}function m(T){var F=T.parentNode;F&&F.removeChild(T)}function v(T,F,k){var I,V,L,ee={};for(L in F)L=="key"?I=F[L]:L=="ref"?V=F[L]:ee[L]=F[L];if(arguments.length>2&&(ee.children=arguments.length>3?n.call(arguments,2):k),typeof T=="function"&&T.defaultProps!=null)for(L in T.defaultProps)ee[L]===void 0&&(ee[L]=T.defaultProps[L]);return g(T,ee,I,V,null)}function g(T,F,k,I,V){var L={type:T,props:F,key:k,ref:I,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:V==null?++i:V};return V==null&&r.vnode!=null&&r.vnode(L),L}function y(T){return T.children}function h(T,F){this.props=T,this.context=F}function $(T,F){if(F==null)return T.__?$(T.__,T.__.__k.indexOf(T)+1):null;for(var k;F0?g(se.type,se.props,se.key,null,se.__v):se)!=null){if(se.__=k,se.__b=k.__b+1,(we=gt[H])===null||we&&se.key==we.key&&se.type===we.type)gt[H]=void 0;else for(We=0;We2&&(ee.children=arguments.length>3?n.call(arguments,2):k),g(T.type,ee,I||T.key,V||T.ref,null)},t.createContext=function(T,F){var k={__c:F="__cC"+l++,__:T,Consumer:function(I,V){return I.children(V)},Provider:function(I){var V,L;return this.getChildContext||(V=[],(L={})[F]=this,this.getChildContext=function(){return L},this.shouldComponentUpdate=function(ee){this.props.value!==ee.value&&V.some(x)},this.sub=function(ee){V.push(ee);var pe=ee.componentWillUnmount;ee.componentWillUnmount=function(){V.splice(V.indexOf(ee),1),pe&&pe.call(ee)}}),I.children}};return k.Provider.__=k.Consumer.contextType=k},t.createElement=v,t.createRef=function(){return{current:null}},t.h=v,t.hydrate=function T(F,k){Le(F,k,T)},t.isValidElement=o,t.options=r,t.render=Le,t.toChildArray=function T(F,k){return k=k||[],F==null||typeof F=="boolean"||(Array.isArray(F)?F.some(function(I){T(I,k)}):k.push(F)),k}}),Kz=function(t){return(t==null?void 0:t.nodeType)===Node.ELEMENT_NODE},Yz=function(t,n){return n===void 0&&(n=document),typeof t=="string"?n.querySelector(t):Kz(t)?t:null},N1=class{constructor(t,n){n===void 0&&(n={}),this.uppy=t,this.opts=n}getPluginState(){const{plugins:t}=this.uppy.getState();return t[this.id]||{}}setPluginState(t){const{plugins:n}=this.uppy.getState();this.uppy.setState({plugins:z(z({},n),{[this.id]:z(z({},n[this.id]),t)})})}setOptions(t){this.opts=z(z({},this.opts),t),this.setPluginState(),this.i18nInit()}i18nInit(){const t=new yx([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 Px(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Xz=0;function Jz(e){return"__private_"+Xz+++"_"+e}const{render:_x}=qz;function Zz(e){let t=null,n=null;return function(){for(var r=arguments.length,i=new Array(r),o=0;o(t=null,e(...n)))),t}}var xl=Jz("updateUI");class I1 extends N1{constructor(){super(...arguments);Object.defineProperty(this,xl,{writable:!0,value:void 0})}mount(t,n){const r=n.id,i=Yz(t);if(i){this.isTargetDOMEl=!0;const u=document.createDocumentFragment();return Px(this,xl)[xl]=Zz(s=>{!this.uppy.getPlugin(this.id)||(_x(this.render(s),u),this.afterUpdate())}),this.uppy.log(`Installing ${r} to a DOM element '${t}'`),this.opts.replaceTargetContent&&(i.innerHTML=""),_x(this.render(this.uppy.getState()),u),this.el=u.firstElementChild,i.appendChild(u),this.onMount(),this.el}let o;if(typeof t=="object"&&t instanceof I1)o=t;else if(typeof t=="function"){const u=t;this.uppy.iteratePlugins(s=>{if(s instanceof u)return o=s,!1})}if(o)return this.uppy.log(`Installing ${r} to ${o.id}`),this.parent=o,this.el=o.addTarget(n),this.onMount(),this.el;this.uppy.log(`Not installing ${r}`);let a=`Invalid target option given to ${r}.`;throw typeof t=="function"?a+=" 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.":a+="If you meant to target an HTML element, please make sure that the element exists. Check that the "},FS=function(e){e.write(BS("")),e.close();var t=e.parentWindow.Object;return e=null,t},Rp=function(){try{jp=new ActiveXObject("htmlfile")}catch(r){}var e,t;Rp=typeof document!="undefined"?document.domain&&jp?FS(jp):((t=Pl("iframe")).style.display="none",gm.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(BS("document.F=Object")),e.close(),e.F):FS(jp);for(var n=Ip.length;n--;)delete Rp.prototype[Ip[n]];return Rp()};Fp[OS]=!0;var Lp=Object.create||function(e,t){var n;return e!==null?(vm.prototype=wt(e),n=new vm,vm.prototype=null,n[OS]=e):n=Rp(),t===void 0?n:oV(n,t)},mm=at("unscopables"),ym=Array.prototype;ym[mm]==null&&cr.f(ym,mm,{configurable:!0,value:Lp(null)});var Hl=function(e){ym[mm][e]=!0},aV=ES.includes;ut({target:"Array",proto:!0},{includes:function(e){return aV(this,e,arguments.length>1?arguments[1]:void 0)}}),Hl("includes");var uV=at("match"),bm=function(e){var t;return Je(e)&&((t=e[uV])!==void 0?!!t:dr(e)=="RegExp")},sV=G.TypeError,$m=function(e){if(bm(e))throw sV("The method doesn't accept regular expressions");return e},lV=at("match"),wm=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[lV]=!1,"/./"[e](t)}catch(r){}}return!1},cV=ie("".indexOf);ut({target:"String",proto:!0,forced:!wm("includes")},{includes:function(e){return!!~cV(Ke(Vn(this)),Ke($m(e)),arguments.length>1?arguments[1]:void 0)}});var TS,fV=/"/g,dV=ie("".replace);ut({target:"String",proto:!0,forced:(TS="anchor",Re(function(){var e=""[TS]('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t="a",n="name",r=e,i=Ke(Vn(this)),o="<"+t,n!==""&&(o+=" "+n+'="'+dV(Ke(r),fV,""")+'"'),o+">"+i+"";var t,n,r,i,o}});var Em=function(e,t,n){var r,i;wt(e);try{if(!(r=oa(e,"return"))){if(t==="throw")throw n;return n}r=Te(r,e)}catch(o){i=!0,r=o}if(t==="throw")throw n;if(i)throw r;return wt(r),n},pV=function(e,t,n,r){try{return r?t(wt(n)[0],n[1]):t(n)}catch(i){Em(e,"throw",i)}},Ru={},hV=at("iterator"),gV=Array.prototype,kS=function(e){return e!==void 0&&(Ru.Array===e||gV[hV]===e)},Ul=function(e,t,n){var r=nm(t);r in e?cr.f(e,r,Cp(0,n)):e[r]=n},vV=at("iterator"),xm=function(e){if(e!=null)return oa(e,vV)||oa(e,"@@iterator")||Ru[Tp(e)]},mV=G.TypeError,PS=function(e,t){var n=arguments.length<2?xm(e):t;if(ji(n))return wt(Te(n,e));throw mV(Dp(e)+" is not iterable")},_S=G.Array,NS=at("iterator"),IS=!1;try{var yV=0,jS={next:function(){return{done:!!yV++}},return:function(){IS=!0}};jS[NS]=function(){return this},Array.from(jS,function(){throw 2})}catch(e){}var Sm=function(e,t){if(!t&&!IS)return!1;var n=!1;try{var r={};r[NS]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(i){}return n},bV=!Sm(function(e){Array.from(e)});ut({target:"Array",stat:!0,forced:bV},{from:function(e){var t=Ii(e),n=Np(this),r=arguments.length,i=r>1?arguments[1]:void 0,o=i!==void 0;o&&(i=ua(i,r>2?arguments[2]:void 0));var a,u,s,l,c,f,d=xm(t),p=0;if(!d||this==_S&&kS(d))for(a=sa(t),u=n?new this(a):_S(a);a>p;p++)f=o?i(t[p],p):t[p],Ul(u,p,f);else for(c=(l=PS(t,d)).next,u=n?new this:[];!(s=Te(c,l)).done;p++)f=o?pV(l,i,[s.value,p],!0):s.value,Ul(u,p,f);return u.length=p,u}});var la,RS,LS,$V=ie("".charAt),MS=ie("".charCodeAt),wV=ie("".slice),zS=function(e){return function(t,n){var r,i,o=Ke(Vn(t)),a=Il(n),u=o.length;return a<0||a>=u?e?"":void 0:(r=MS(o,a))<55296||r>56319||a+1===u||(i=MS(o,a+1))<56320||i>57343?e?$V(o,a):r:e?wV(o,a,a+2):i-56320+(r-55296<<10)+65536}},HS={codeAt:zS(!1),charAt:zS(!0)},EV=!Re(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),US=rm("IE_PROTO"),Dm=G.Object,xV=Dm.prototype,Mp=EV?Dm.getPrototypeOf:function(e){var t=Ii(e);if($t(t,US))return t[US];var n=t.constructor;return Ue(n)&&t instanceof n?n.prototype:t instanceof Dm?xV:null},Cm=at("iterator"),VS=!1;[].keys&&("next"in(LS=[].keys())?(RS=Mp(Mp(LS)))!==Object.prototype&&(la=RS):VS=!0);var SV=la==null||Re(function(){var e={};return la[Cm].call(e)!==e});SV&&(la={}),Ue(la[Cm])||dn(la,Cm,function(){return this});var Am={IteratorPrototype:la,BUGGY_SAFARI_ITERATORS:VS},DV=cr.f,WS=at("toStringTag"),zp=function(e,t,n){e&&!$t(e=n?e:e.prototype,WS)&&DV(e,WS,{configurable:!0,value:t})},CV=Am.IteratorPrototype,AV=function(){return this},OV=G.String,BV=G.TypeError,Lu=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=ie(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(r,i){return wt(r),function(o){if(typeof o=="object"||Ue(o))return o;throw BV("Can't set "+OV(o)+" as a prototype")}(i),t?e(r,i):r.__proto__=i,r}}():void 0),FV=ku.PROPER,TV=ku.CONFIGURABLE,GS=Am.IteratorPrototype,Hp=Am.BUGGY_SAFARI_ITERATORS,Vl=at("iterator"),kV=function(){return this},Om=function(e,t,n,r,i,o,a){(function(y,h,$,w){var x=h+" Iterator";y.prototype=Lp(CV,{next:Cp(+!w,$)}),zp(y,x,!1),Ru[x]=AV})(n,t,r);var u,s,l,c=function(y){if(y===i&&v)return v;if(!Hp&&y in p)return p[y];switch(y){case"keys":case"values":case"entries":return function(){return new n(this,y)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,m=p[Vl]||p["@@iterator"]||i&&p[i],v=!Hp&&m||c(i),g=t=="Array"&&p.entries||m;if(g&&(u=Mp(g.call(new e)))!==Object.prototype&&u.next&&(Mp(u)!==GS&&(Lu?Lu(u,GS):Ue(u[Vl])||dn(u,Vl,kV)),zp(u,f,!0)),FV&&i=="values"&&m&&m.name!=="values"&&(TV?fr(p,"name","values"):(d=!0,v=function(){return Te(m,this)})),i)if(s={values:c("values"),keys:o?v:c("keys"),entries:c("entries")},a)for(l in s)(Hp||d||!(l in p))&&dn(p,l,s[l]);else ut({target:t,proto:!0,forced:Hp||d},s);return p[Vl]!==v&&dn(p,Vl,v,{name:i}),Ru[t]=v,s},PV=HS.charAt,_V=nn.set,NV=nn.getterFor("String Iterator");Om(String,"String",function(e){_V(this,{type:"String Iterator",string:Ke(e),index:0})},function(){var e,t=NV(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=PV(n,r),t.index+=e.length,{value:e,done:!1})});var Bm,IV=Rl.f,qS=ie("".endsWith),jV=ie("".slice),RV=Math.min,KS=wm("endsWith"),LV=!(KS||(Bm=IV(String.prototype,"endsWith"),!Bm||Bm.writable));ut({target:"String",proto:!0,forced:!LV&&!KS},{endsWith:function(e){var t=Ke(Vn(this));$m(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,i=n===void 0?r:RV(Pu(n),r),o=Ke(e);return qS?qS(t,o,i):jV(t,i-o.length,i)===o}});var MV=ie([].join),zV=Pp!=Object,HV=gS("join",",");ut({target:"Array",proto:!0,forced:zV||!HV},{join:function(e){return MV(Li(this),e===void 0?",":e)}});var UV=at("species"),Up=function(e){return Tl>=51||!Re(function(){var t=[];return(t.constructor={})[UV]=function(){return{foo:1}},t[e](Boolean).foo!==1})},VV=_u.map,WV=Up("map");ut({target:"Array",proto:!0,forced:!WV},{map:function(e){return VV(this,e,arguments.length>1?arguments[1]:void 0)}});var Fm=G.RegExp,Tm=Re(function(){var e=Fm("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),GV=Tm||Re(function(){return!Fm("a","y").sticky}),Vp={BROKEN_CARET:Tm||Re(function(){var e=Fm("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:GV,UNSUPPORTED_Y:Tm},qV=G.RegExp,km=Re(function(){var e=qV(".","s");return!(e.dotAll&&e.exec(` `)&&e.flags==="s")}),KV=G.RegExp,Pm=Re(function(){var e=KV("(?b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$c")!=="bc"}),YV=nn.get,XV=q1("native-string-replace",String.prototype.replace),Wp=RegExp.prototype.exec,_m=Wp,JV=ie("".charAt),ZV=ie("".indexOf),QV=ie("".replace),Nm=ie("".slice),Im=function(){var e=/a/,t=/b*/g;return Te(Wp,e,"a"),Te(Wp,t,"a"),e.lastIndex!==0||t.lastIndex!==0}(),YS=Vp.BROKEN_CARET,jm=/()??/.exec("")[1]!==void 0;(Im||jm||YS||km||Pm)&&(_m=function(e){var t,n,r,i,o,a,u,s=this,l=YV(s),c=Ke(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Te(_m,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=YS&&s.sticky,m=Te(pm,s),v=s.source,g=0,y=c;if(p&&(m=QV(m,"y",""),ZV(m,"g")===-1&&(m+="g"),y=Nm(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&JV(c,s.lastIndex-1)!==` `)&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",m)),jm&&(n=new RegExp("^"+v+"$(?!\\s)",m)),Im&&(r=s.lastIndex),i=Te(Wp,p?n:s,y),p?i?(i.input=Nm(i.input,g),i[0]=Nm(i[0],g),i.index=s.lastIndex,s.lastIndex+=i[0].length):s.lastIndex=0:Im&&i&&(s.lastIndex=s.global?i.index+i[0].length:r),jm&&i&&i.length>1&&Te(XV,i[0],n,function(){for(o=1;o]*>)/g,aW=/\$([$&'`]|\d{1,2})/g,uW=function(e,t,n,r,i,o){var a=n+e.length,u=r.length,s=aW;return i!==void 0&&(i=Ii(i),s=oW),iW(o,s,function(l,c){var f;switch(Um(c,0)){case"$":return"$";case"&":return e;case"`":return Vm(t,0,n);case"'":return Vm(t,a);case"<":f=i[Vm(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=rW(d/10);return p===0?l:p<=u?r[p-1]===void 0?Um(c,1):r[p-1]+Um(c,1):l}f=r[d-1]}return f===void 0?"":f})},sW=G.TypeError,Gl=function(e,t){var n=e.exec;if(Ue(n)){var r=Te(n,e,t);return r!==null&&wt(r),r}if(dr(e)==="RegExp")return Te(Wl,e,t);throw sW("RegExp#exec called on incompatible receiver")},Wm=at("replace"),lW=Math.max,cW=Math.min,fW=ie([].concat),Gm=ie([].push),ZS=ie("".indexOf),QS=ie("".slice),dW="a".replace(/./,"$0")==="$0",eD=!!/./[Wm]&&/./[Wm]("a","$0")==="";zm("replace",function(e,t,n){var r=eD?"$":"$0";return[function(i,o){var a=Vn(this),u=i==null?void 0:oa(i,Wm);return u?Te(u,i,a,o):Te(t,Ke(a),i,o)},function(i,o){var a=wt(this),u=Ke(i);if(typeof o=="string"&&ZS(o,r)===-1&&ZS(o,"$<")===-1){var s=n(t,a,u,o);if(s.done)return s.value}var l=Ue(o);l||(o=Ke(o));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=Gl(a,u);if(p===null||(Gm(d,p),!c))break;Ke(p[0])===""&&(a.lastIndex=Hm(u,Pu(a.lastIndex),f))}for(var m,v="",g=0,y=0;y=g&&(v+=QS(u,g,$)+N,g=$+h.length)}return v+QS(u,g)}]},!!Re(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$")!=="7"})||!dW||eD);/*! ***************************************************************************** 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 qm=function(e,t){return qm=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},qm(e,t)};function Mu(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}qm(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Wn=function(){return Wn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ke(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function Km(e,t){for(var n=0,r=t.length,i=e.length;n=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values");Ru.Arguments=Ru.Array,Hl("keys"),Hl("values"),Hl("entries");var zu=function(e,t,n){for(var r in t)dn(e,r,t[r],n);return e},vW=G.Array,mW=Math.max,Ym=function(e,t,n){for(var r=sa(e),i=Nu(t,r),o=Nu(n===void 0?r:n,r),a=vW(mW(o-i,0)),u=0;io;o++)if((u=g(e[o]))&&ia(oD,u))return u;return new Kp(!1)}r=PS(e,i)}for(s=r.next;!(l=Te(s,r)).done;){try{u=g(l.value)}catch(y){Em(r,"throw",y)}if(typeof u=="object"&&u&&ia(oD,u))return u}return new Kp(!1)},wW=G.TypeError,Yp=function(e,t){if(ia(t,e))return e;throw wW("Incorrect invocation")},aD=function(e,t,n){var r,i;return Lu&&Ue(r=t.constructor)&&r!==n&&Je(i=r.prototype)&&i!==n.prototype&&Lu(e,i),e},uD=function(e,t,n){var r=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=r?"set":"add",a=G[e],u=a&&a.prototype,s=a,l={},c=function(g){var y=ie(u[g]);dn(u,g,g=="add"?function(h){return y(this,h===0?0:h),this}:g=="delete"?function(h){return!(i&&!Je(h))&&y(this,h===0?0:h)}:g=="get"?function(h){return i&&!Je(h)?void 0:y(this,h===0?0:h)}:g=="has"?function(h){return!(i&&!Je(h))&&y(this,h===0?0:h)}:function(h,$){return y(this,h===0?0:h,$),this})};if(zl(e,!Ue(a)||!(i||u.forEach&&!Re(function(){new a().entries().next()}))))s=n.getConstructor(t,e,r,o),qp.enable();else if(zl(e,!0)){var f=new s,d=f[o](i?{}:-0,1)!=f,p=Re(function(){f.has(1)}),m=Sm(function(g){new a(g)}),v=!i&&Re(function(){for(var g=new a,y=5;y--;)g[o](y,y);return!g.has(-0)});m||((s=t(function(g,y){Yp(g,u);var h=aD(new a,g,s);return y!=null&&Kl(y,h[o],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(p||v)&&(c("delete"),c("has"),r&&c("get")),(v||d)&&c(o),i&&u.clear&&delete u.clear}return l[e]=s,ut({global:!0,forced:s!=a},l),zp(s,e),i||n.setStrong(s,e,r),s},Xp=qp.getWeakData,EW=nn.set,xW=nn.getterFor,SW=_u.find,DW=_u.findIndex,CW=ie([].splice),AW=0,Jp=function(e){return e.frozen||(e.frozen=new sD)},sD=function(){this.entries=[]},Xm=function(e,t){return SW(e.entries,function(n){return n[0]===t})};sD.prototype={get:function(e){var t=Xm(this,e);if(t)return t[1]},has:function(e){return!!Xm(this,e)},set:function(e,t){var n=Xm(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=DW(this.entries,function(n){return n[0]===e});return~t&&CW(this.entries,t,1),!!~t}};var Yl,lD={getConstructor:function(e,t,n,r){var i=e(function(s,l){Yp(s,o),EW(s,{type:t,id:AW++,frozen:void 0}),l!=null&&Kl(l,s[r],{that:s,AS_ENTRIES:n})}),o=i.prototype,a=xW(t),u=function(s,l,c){var f=a(s),d=Xp(wt(l),!0);return d===!0?Jp(f).set(l,c):d[f.id]=c,s};return zu(o,{delete:function(s){var l=a(this);if(!Je(s))return!1;var c=Xp(s);return c===!0?Jp(l).delete(s):c&&$t(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!Je(s))return!1;var c=Xp(s);return c===!0?Jp(l).has(s):c&&$t(c,l.id)}}),zu(o,n?{get:function(s){var l=a(this);if(Je(s)){var c=Xp(s);return c===!0?Jp(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)}}),i}},Zp=nn.enforce,OW=!G.ActiveXObject&&"ActiveXObject"in G,cD=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},BW=uD("WeakMap",cD,lD);if(rS&&OW){Yl=lD.getConstructor(cD,"WeakMap",!0),qp.enable();var Xl=BW.prototype,fD=ie(Xl.delete),Qp=ie(Xl.has),dD=ie(Xl.get),pD=ie(Xl.set);zu(Xl,{delete:function(e){if(Je(e)&&!ca(e)){var t=Zp(this);return t.frozen||(t.frozen=new Yl),fD(this,e)||t.frozen.delete(e)}return fD(this,e)},has:function(e){if(Je(e)&&!ca(e)){var t=Zp(this);return t.frozen||(t.frozen=new Yl),Qp(this,e)||t.frozen.has(e)}return Qp(this,e)},get:function(e){if(Je(e)&&!ca(e)){var t=Zp(this);return t.frozen||(t.frozen=new Yl),Qp(this,e)?dD(this,e):t.frozen.get(e)}return dD(this,e)},set:function(e,t){if(Je(e)&&!ca(e)){var n=Zp(this);n.frozen||(n.frozen=new Yl),Qp(this,e)?pD(this,e,t):n.frozen.set(e,t)}else pD(this,e,t);return this}})}var Jm=at("iterator"),hD=at("toStringTag"),Zm=ql.values,gD=function(e,t){if(e){if(e[Jm]!==Zm)try{fr(e,Jm,Zm)}catch(r){e[Jm]=Zm}if(e[hD]||fr(e,hD,t),kp[t]){for(var n in ql)if(e[n]!==ql[n])try{fr(e,n,ql[n])}catch(r){e[n]=ql[n]}}}};for(var Qm in kp)gD(G[Qm]&&G[Qm].prototype,Qm);gD(sS,"DOMTokenList");var ey=new WeakMap,ty=new WeakMap,ny=new WeakMap,eh=new WeakMap,ry=new WeakMap,th=new WeakMap,iy=new WeakMap,oy=new WeakMap,nh=new WeakMap,vD=new WeakMap,mD=new WeakMap,yD=new WeakMap,bD=new WeakMap,Jl=new WeakMap,Hu=new WeakMap,ay=new WeakMap,rh=new WeakMap,uy=new WeakMap,ih=new WeakMap,oh=new WeakMap,$D=new WeakMap,fa=new WeakMap,sy=new WeakMap,wD=new WeakMap,ly=new WeakMap,FW=_u.find,ED=!0;"find"in[]&&Array(1).find(function(){ED=!1}),ut({target:"Array",proto:!0,forced:ED},{find:function(e){return FW(this,e,arguments.length>1?arguments[1]:void 0)}}),Hl("find"),ut({global:!0},{globalThis:G});const TW=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];sp&&(O.fn.css=sp),zn&&(O.fn.append=zn),vu&&(O.fn.addClass=vu),mu&&(O.fn.removeClass=mu),yu&&(O.fn.hasClass=yu),Dr&&(O.fn.on=Dr),Bi&&(O.fn.focus=Bi),Mn&&(O.fn.attr=Mn),ip&&(O.fn.removeAttr=ip),$u&&(O.fn.hide=$u),up&&(O.fn.show=up),g8&&(O.fn.offset=g8),op&&(O.fn.width=op),ap&&(O.fn.height=ap),wu&&(O.fn.parent=wu),fp&&(O.fn.parents=fp),m8&&(O.fn.is=m8),bu&&(O.fn.dataset=bu),Sr&&(O.fn.val=Sr),cp&&(O.fn.text=cp),Oi&&(O.fn.html=Oi),xu&&(O.fn.children=xu),Su&&(O.fn.remove=Su),Eu&&(O.fn.find=Eu),lp&&(O.fn.each=lp),Du&&(O.fn.empty=Du);var Mi,cy=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},pr=function(e){return da(e)&&e.nodeType===1},da=function(e){var t=cy(e);return!!t&&e instanceof t.Node},xD=function(e){var t=e&&e.anchorNode&&cy(e.anchorNode);return!!t&&e instanceof t.Selection},SD=function(e){return da(e)&&e.nodeType===3},fy=function(e){var t,n,r;return(t=window.document.getElementById(e))!==null&&t!==void 0?t:((r=(n=window.document.activeElement)===null||n===void 0?void 0:n.shadowRoot)===null||r===void 0?void 0:r.getElementById(e))||null},DD=function(e,t,n){for(var r,i=e.childNodes,o=i[t],a=t,u=!1,s=!1;(da(r=o)&&r.nodeType===8||pr(o)&&o.childNodes.length===0||pr(o)&&o.getAttribute("contenteditable")==="false")&&(!u||!s);)a>=i.length?(u=!0,a=t-1,n="backward"):a<0?(s=!0,a=t+1,n="forward"):(o=i[a],t=a,a+=n==="forward"?1:-1);return[o,t]},kW=function(e,t,n){return ke(DD(e,t,n),1)[0]},PW=function e(t){var n,r,i="";if(SD(t)&&t.nodeValue)return t.nodeValue;if(pr(t)){try{for(var o=Gn(Array.from(t.childNodes)),a=o.next();!a.done;a=o.next())i+=e(a.value)}catch(s){n={error:s}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}var u=getComputedStyle(t).getPropertyValue("display");u!=="block"&&u!=="list"&&u!=="table-row"&&t.tagName!=="BR"||(i+=` `)}return i};function CD(e,t){if(!(e instanceof HTMLElement&&e.dataset.slateVoid==="true"))for(var n=e.childNodes,r=n.length;r--;){var i=n[r],o=i.nodeType;o==3?t(i,e):o!=1&&o!=9&&o!=11||CD(i,t)}}function AD(e){if(e.length===0)return"";var t=e[0];return t.nodeType!==Mi.ELEMENT_NODE?"":t.tagName.toLowerCase()}(function(e){e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"})(Mi||(Mi={})),globalThis.navigator!==void 0&&globalThis.window!==void 0&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&globalThis.window.MSStream;var dy=typeof navigator!="undefined"&&/Mac OS X/.test(navigator.userAgent),Zl=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 Ql=typeof navigator!="undefined"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),_W=typeof navigator!="undefined"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),NW=typeof navigator!="undefined"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),py=typeof navigator!="undefined"&&/Chrome/i.test(navigator.userAgent);typeof navigator!="undefined"&&/.*QQBrowser/.test(navigator.userAgent);var ec=!NW&&!_W&&typeof globalThis!="undefined"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",A={getWindow:function(e){var t=$D.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey:function(e,t){var n=oh.get(t);return n||(n=new tD,oh.set(t,n)),n},setNewKey:function(e){var t=new tD;oh.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var i=Hu.get(r);if(i==null){if(E.isEditor(r))return n;break}var o=Jl.get(r);if(o==null)break;n.unshift(o),r=i}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(t))},findDocumentOrShadowRoot:function(e){if(e.isDestroyed)return window.document;var t=A.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&n.getSelection!=null?n:t.ownerDocument},getParentNode:function(e,t){return Hu.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&r!=null;){var i=A.getParentNode(e,r);if(i==null)break;n.push(i),r=i}return n},getTopNode:function(e,t){var n=[A.findPath(e,t)[0]];return q.get(e,n)},toDOMNode:function(e,t){var n;if(E.isEditor(t))n=ay.get(e);else{var r=A.findKey(e,t);n=uy.get(r)}if(!n)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(t));return n},hasDOMNode:function(e,t,n){n===void 0&&(n={});var r,i=n.editable,o=i!==void 0&&i,a=A.toDOMNode(e,e);try{r=pr(t)?t:t.parentElement}catch(u){if(!u.message.includes('Permission denied to access property "nodeType"'))throw u}return!!r&&r.closest("[data-slate-editor]")===a&&(!o||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))},toDOMRange:function(e,t){var n=t.anchor,r=t.focus,i=j.isBackward(t),o=A.toDOMPoint(e,n),a=j.isCollapsed(t)?o:A.toDOMPoint(e,r),u=A.getWindow(e).document.createRange(),s=ke(i?a:o,2),l=s[0],c=s[1],f=ke(i?o:a,2),d=f[0],p=f[1],m=!!(pr(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),v=!!(pr(d)?d:d.parentElement).getAttribute("data-slate-zero-width");return u.setStart(l,m?1:c),u.setEnd(d,v?1:p),u},toDOMPoint:function(e,t){var n,r,i,o=ke(E.node(e,t.path),1)[0],a=A.toDOMNode(e,o);E.void(e,{at:t})&&(t={path:t.path,offset:0});var u=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),s=0;try{for(var l=Gn(u),c=l.next();!c.done;c=l.next()){var f=c.value,d=f.childNodes[0];if(d!=null&&d.textContent!=null){var p=d.textContent.length,m=f.getAttribute("data-slate-length"),v=s+(m==null?p:parseInt(m,10));if(t.offset<=v){i=[d,Math.min(p,Math.max(0,t.offset-s))];break}s=v}}}catch(g){n={error:g}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}if(!i)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(t));return i},toSlateNode:function(e,t){var n=pr(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?rh.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: "+n);return r},findEventRange:function(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var n=t.clientX,r=t.clientY,i=t.target;if(n==null||r==null)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);var o,a=A.toSlateNode(e,t.target),u=A.findPath(e,a);if(E.isVoid(e,a)){var s=i.getBoundingClientRect(),l=e.isInline(a)?n-s.left0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(t==null||j.isExpanded(t))return!1;var n=A.getSelectedNodeByType(e,"paragraph");if(n===null)return!1;var r=n.children;return r.length===1&&(r[0].text===""||void 0)},isEmptyPath:function(e,t){var n=E.node(e,t);if(n==null)return!1;var r=ke(n,1)[0].children;return r.length===1&&r[0].text===""}},IW=1,OD={},tc={};function jW(e,t){var n=e.key,r=e.factory,i=e.config,o=Wn(Wn({},i),t||{});if(tc[n]!=null)throw new Error("Duplicated key '"+n+"' in menu items");tc[n]=r,function(a,u){u!=null&&(OD[a]=u)}(n,o)}var BD=at("species"),hy=function(e){var t=na(e),n=cr.f;zt&&t&&!t[BD]&&n(t,BD,{configurable:!0,get:function(){return this}})},RW=cr.f,FD=qp.fastKey,TD=nn.set,gy=nn.getterFor,LW={getConstructor:function(e,t,n,r){var i=e(function(l,c){Yp(l,o),TD(l,{type:t,index:Lp(null),first:void 0,last:void 0,size:0}),zt||(l.size=0),c!=null&&Kl(c,l[r],{that:l,AS_ENTRIES:n})}),o=i.prototype,a=gy(t),u=function(l,c,f){var d,p,m=a(l),v=s(l,c);return v?v.value=f:(m.last=v={index:p=FD(c,!0),key:c,value:f,previous:d=m.last,next:void 0,removed:!1},m.first||(m.first=v),d&&(d.next=v),zt?m.size++:l.size++,p!=="F"&&(m.index[p]=v)),l},s=function(l,c){var f,d=a(l),p=FD(c);if(p!=="F")return d.index[p];for(f=d.first;f;f=f.next)if(f.key==c)return f};return zu(o,{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,zt?l.size=0:this.size=0},delete:function(l){var c=this,f=a(c),d=s(c,l);if(d){var p=d.next,m=d.previous;delete f.index[d.index],d.removed=!0,m&&(m.next=p),p&&(p.previous=m),f.first==d&&(f.first=p),f.last==d&&(f.last=m),zt?f.size--:c.size--}return!!d},forEach:function(l){for(var c,f=a(this),d=ua(l,arguments.length>1?arguments[1]:void 0);c=c?c.next:f.first;)for(d(c.value,c.key,this);c&&c.removed;)c=c.previous},has:function(l){return!!s(this,l)}}),zu(o,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)}}),zt&&RW(o,"size",{get:function(){return a(this).size}}),i},setStrong:function(e,t,n){var r=t+" Iterator",i=gy(t),o=gy(r);Om(e,t,function(a,u){TD(this,{type:r,target:a,state:i(a),kind:u,last:void 0})},function(){for(var a=o(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),hy(t)}};uD("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},LW);var MW=_u.filter,zW=Up("filter");ut({target:"Array",proto:!0,forced:!zW},{filter:function(e){return MW(this,e,arguments.length>1?arguments[1]:void 0)}});var vy=` \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,kD=ie("".replace),ah="["+vy+"]",HW=RegExp("^"+ah+ah+"*"),UW=RegExp(ah+ah+"*$"),my=function(e){return function(t){var n=Ke(Vn(t));return 1&e&&(n=kD(n,HW,"")),2&e&&(n=kD(n,UW,"")),n}},VW={start:my(1),end:my(2),trim:my(3)},WW=ku.PROPER,GW=VW.trim;ut({target:"String",proto:!0,forced:function(e){return Re(function(){return!!vy[e]()||"\u200B\x85\u180E"[e]()!=="\u200B\x85\u180E"||WW&&vy[e].name!==e})}("trim")},{trim:function(){return GW(this)}});var yy=[];function qW(e){yy.push(e)}var PD={};function KW(e){var t=e.type,n=e.elemToHtml;PD[t||""]=n}function YW(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+""}function XW(e,t){var n=e.type,r=n===void 0?"":n,i=e.children,o=i===void 0?[]:i,a=E.isVoid(t,e),u="";a||(u=o.map(function(v){return uC(v,t)}).join(""));var s=function(v){return PD[v]||YW}(r),l=s(e,u,t),c="";if(c=typeof l=="string"?l:l.html||"",a||yy.forEach(function(v){return c=v(e,c)}),typeof l=="string")return c;var f=l.prefix,d=f===void 0?"":f,p=l.suffix,m=p===void 0?"":p;return d&&(c=d+c),m&&(c+=m),c}var nc,Uu,_D,by,uh=G.Promise,JW=G.TypeError,ZW=at("species"),ND=function(e,t){var n,r=wt(e).constructor;return r===void 0||(n=wt(r)[ZW])==null?t:function(i){if(Np(i))return i;throw JW(Dp(i)+" is not a constructor")}(n)},ID=ie([].slice),jD=/(?:ipad|iphone|ipod).*applewebkit/i.test(Fu),zi=dr(G.process)=="process",$y=G.setImmediate,wy=G.clearImmediate,QW=G.process,Ey=G.Dispatch,eG=G.Function,RD=G.MessageChannel,tG=G.String,xy=0,rc={};try{nc=G.location}catch(e){}var Sy=function(e){if($t(rc,e)){var t=rc[e];delete rc[e],t()}},Dy=function(e){return function(){Sy(e)}},LD=function(e){Sy(e.data)},MD=function(e){G.postMessage(tG(e),nc.protocol+"//"+nc.host)};$y&&wy||($y=function(e){var t=ID(arguments,1);return rc[++xy]=function(){Lm(Ue(e)?e:eG(e),void 0,t)},Uu(xy),xy},wy=function(e){delete rc[e]},zi?Uu=function(e){QW.nextTick(Dy(e))}:Ey&&Ey.now?Uu=function(e){Ey.now(Dy(e))}:RD&&!jD?(by=(_D=new RD).port2,_D.port1.onmessage=LD,Uu=ua(by.postMessage,by)):G.addEventListener&&Ue(G.postMessage)&&!G.importScripts&&nc&&nc.protocol!=="file:"&&!Re(MD)?(Uu=MD,G.addEventListener("message",LD,!1)):Uu="onreadystatechange"in Pl("script")?function(e){gm.appendChild(Pl("script")).onreadystatechange=function(){gm.removeChild(this),Sy(e)}}:function(e){setTimeout(Dy(e),0)});var ic,pa,oc,Vu,Cy,Ay,Oy,zD,HD={set:$y,clear:wy},nG=/ipad|iphone|ipod/i.test(Fu)&&G.Pebble!==void 0,rG=/web0s(?!.*chrome)/i.test(Fu),iG=Rl.f,By=HD.set,UD=G.MutationObserver||G.WebKitMutationObserver,VD=G.document,WD=G.process,sh=G.Promise,GD=iG(G,"queueMicrotask"),qD=GD&&GD.value;qD||(ic=function(){var e,t;for(zi&&(e=WD.domain)&&e.exit();pa;){t=pa.fn,pa=pa.next;try{t()}catch(n){throw pa?Vu():oc=void 0,n}}oc=void 0,e&&e.enter()},jD||zi||rG||!UD||!VD?!nG&&sh&&sh.resolve?((Oy=sh.resolve(void 0)).constructor=sh,zD=ua(Oy.then,Oy),Vu=function(){zD(ic)}):zi?Vu=function(){WD.nextTick(ic)}:(By=ua(By,G),Vu=function(){By(ic)}):(Cy=!0,Ay=VD.createTextNode(""),new UD(ic).observe(Ay,{characterData:!0}),Vu=function(){Ay.data=Cy=!Cy}));var Fy,KD,YD,XD,JD=qD||function(e){var t={fn:e,next:void 0};oc&&(oc.next=t),pa||(pa=t,Vu()),oc=t},oG=function(e){var t,n;this.promise=new e(function(r,i){if(t!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");t=r,n=i}),this.resolve=ji(t),this.reject=ji(n)},Ty={f:function(e){return new oG(e)}},ky=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},aG=typeof window=="object",ZD=HD.set,uG=at("species"),Fr="Promise",QD=nn.getterFor(Fr),sG=nn.set,lG=nn.getterFor(Fr),ha=uh&&uh.prototype,Tr=uh,ac=ha,eC=G.TypeError,Py=G.document,_y=G.process,Wu=Ty.f,cG=Wu,fG=!!(Py&&Py.createEvent&&G.dispatchEvent),tC=Ue(G.PromiseRejectionEvent),nC=!1,uc=zl(Fr,function(){var e=Bp(Tr),t=e!==String(Tr);if(!t&&Tl===66)return!0;if(Tl>=51&&/native code/.test(e))return!1;var n=new Tr(function(i){i(1)}),r=function(i){i(function(){},function(){})};return(n.constructor={})[uG]=r,!(nC=n.then(function(){})instanceof r)||!t&&aG&&!tC}),dG=uc||!Sm(function(e){Tr.all(e).catch(function(){})}),rC=function(e){var t;return!(!Je(e)||!Ue(t=e.then))&&t},Ny=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;JD(function(){for(var r=e.value,i=e.state==1,o=0;n.length>o;){var a,u,s,l=n[o++],c=i?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(i||(e.rejection===2&&hG(e),e.rejection=1),c===!0?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(eC("Promise-chain cycle")):(u=rC(a))?Te(u,a,f,d):f(a)):d(r)}catch(m){p&&!s&&p.exit(),d(m)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&pG(e)})}},iC=function(e,t,n){var r,i;fG?((r=Py.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),G.dispatchEvent(r)):r={promise:t,reason:n},!tC&&(i=G["on"+e])?i(r):e==="unhandledrejection"&&function(o,a){var u=G.console;u&&u.error&&(arguments.length==1?u.error(o):u.error(o,a))}("Unhandled promise rejection",n)},pG=function(e){Te(ZD,G,function(){var t,n=e.facade,r=e.value;if(oC(e)&&(t=ky(function(){zi?_y.emit("unhandledRejection",r,n):iC("unhandledrejection",n,r)}),e.rejection=zi||oC(e)?2:1,t.error))throw t.value})},oC=function(e){return e.rejection!==1&&!e.parent},hG=function(e){Te(ZD,G,function(){var t=e.facade;zi?_y.emit("rejectionHandled",t):iC("rejectionhandled",t,e.value)})},Gu=function(e,t,n){return function(r){e(t,r,n)}},qu=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Ny(e,!0))},Iy=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw eC("Promise can't be resolved itself");var r=rC(t);r?JD(function(){var i={done:!1};try{Te(r,t,Gu(Iy,i,e),Gu(qu,i,e))}catch(o){qu(i,o,e)}}):(e.value=t,e.state=1,Ny(e,!1))}catch(i){qu({done:!1},i,e)}}};if(uc&&(ac=(Tr=function(e){Yp(this,ac),ji(e),Te(Fy,this);var t=QD(this);try{e(Gu(Iy,t),Gu(qu,t))}catch(n){qu(t,n)}}).prototype,(Fy=function(e){sG(this,{type:Fr,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=zu(ac,{then:function(e,t){var n=lG(this),r=n.reactions,i=Wu(ND(this,Tr));return i.ok=!Ue(e)||e,i.fail=Ue(t)&&t,i.domain=zi?_y.domain:void 0,n.parent=!0,r[r.length]=i,n.state!=0&&Ny(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),KD=function(){var e=new Fy,t=QD(e);this.promise=e,this.resolve=Gu(Iy,t),this.reject=Gu(qu,t)},Ty.f=Wu=function(e){return e===Tr||e===YD?new KD(e):cG(e)},Ue(uh)&&ha!==Object.prototype)){XD=ha.then,nC||(dn(ha,"then",function(e,t){var n=this;return new Tr(function(r,i){Te(XD,n,r,i)}).then(e,t)},{unsafe:!0}),dn(ha,"catch",ac.catch,{unsafe:!0}));try{delete ha.constructor}catch(e){}Lu&&Lu(ha,ac)}ut({global:!0,wrap:!0,forced:uc},{Promise:Tr}),zp(Tr,Fr,!1),hy(Fr),YD=na(Fr),ut({target:Fr,stat:!0,forced:uc},{reject:function(e){var t=Wu(this);return Te(t.reject,void 0,e),t.promise}}),ut({target:Fr,stat:!0,forced:uc},{resolve:function(e){return function(t,n){if(wt(t),Je(n)&&n.constructor===t)return n;var r=Ty.f(t);return(0,r.resolve)(n),r.promise}(this,e)}}),ut({target:Fr,stat:!0,forced:dG},{all:function(e){var t=this,n=Wu(t),r=n.resolve,i=n.reject,o=ky(function(){var a=ji(t.resolve),u=[],s=0,l=1;Kl(e,function(c){var f=s++,d=!1;l++,Te(a,t,c).then(function(p){d||(d=!0,u[f]=p,--l||r(u))},i)}),--l||r(u)});return o.error&&i(o.value),n.promise},race:function(e){var t=this,n=Wu(t),r=n.reject,i=ky(function(){var o=ji(t.resolve);Kl(e,function(a){Te(o,t,a).then(n.resolve,r)})});return i.error&&r(i.value),n.promise}});var Ku=Vp.UNSUPPORTED_Y,gG=Math.min,aC=[].push,vG=ie(/./.exec),Yu=ie(aC),sc=ie("".slice);function qn(e){Promise.resolve().then(e)}function uC(e,t){return ne.isElement(e)?XW(e,t):function(n,r){var i=n.text;if(i==null)throw new Error("Current node is not slate Text "+JSON.stringify(n));var o=i;o=function(s){return s.replace(/ {2}/g,"  ").replace(//g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™")}(o);var a=A.getParentsNodes(r,n).some(function(s){return A.getNodeType(s)==="pre"});if(a||(o=o.replace(/\r\n|\r|\n/g,"
")),a&&(o=o.replace(/ /g," ")),o===""){var u=A.getParentNode(null,n);if(!u||u.children.length!==0)return o;o="
"}return yy.forEach(function(s){return o=s(n,o)}),o}(e,t)}function sC(e){return"w-e-element-"+e}zm("split",function(e,t,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(i,o){var a=Ke(Vn(this)),u=o===void 0?4294967295:o>>>0;if(u===0)return[];if(i===void 0)return[a];if(!bm(i))return Te(t,a,i,u);for(var s,l,c,f=[],d=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(i.sticky?"y":""),p=0,m=new RegExp(i.source,d+"g");(s=Te(Wl,m,a))&&!((l=m.lastIndex)>p&&(Yu(f,sc(a,p,s.index)),s.length>1&&s.index=u));)m.lastIndex===s.index&&m.lastIndex++;return p===a.length?!c&&vG(m,"")||Yu(f,""):Yu(f,sc(a,p)),f.length>u?Ym(f,0,u):f}:"0".split(void 0,0).length?function(i,o){return i===void 0&&o===0?[]:Te(t,this,i,o)}:t,[function(i,o){var a=Vn(this),u=i==null?void 0:oa(i,e);return u?Te(u,i,a,o):Te(r,Ke(a),i,o)},function(i,o){var a=wt(this),u=Ke(i),s=n(r,a,u,o,r!==t);if(s.done)return s.value;var l=ND(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Ku?"g":"y"),d=new l(Ku?"^(?:"+a.source+")":a,f),p=o===void 0?4294967295:o>>>0;if(p===0)return[];if(u.length===0)return Gl(d,u)===null?[u]:[];for(var m=0,v=0,g=[];v=n},cC=function(e,t,n){var r=A.toDOMRange(e,t).getBoundingClientRect(),i=A.toDOMRange(e,n).getBoundingClientRect();return lC(r,i)&&lC(i,r)},fC=["span","b","strong","i","em","s","strike","u","font","sub","sup"],dC=[];function mG(e){dC.push(e)}var jy=[];function yG(e){jy.push(e)}var lh={};function bG(e){var t=e.selector,n=e.parseElemHtml;lh[t]=n}var $G=cr.f,wG=Ll.f,EG=nn.enforce,xG=at("match"),si=G.RegExp,Xu=si.prototype,SG=G.SyntaxError,DG=ie(pm),CG=ie(Xu.exec),ch=ie("".charAt),pC=ie("".replace),hC=ie("".indexOf),AG=ie("".slice),OG=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,ga=/a/g,Ry=/a/g,BG=new si(ga)!==ga,gC=Vp.MISSED_STICKY,FG=Vp.UNSUPPORTED_Y,TG=zt&&(!BG||gC||km||Pm||Re(function(){return Ry[xG]=!1,si(ga)!=ga||si(Ry)==Ry||si(ga,"i")!="/a/i"}));if(zl("RegExp",TG)){for(var Hi=function(e,t){var n,r,i,o,a,u,s=ia(Xu,this),l=bm(e),c=t===void 0,f=[],d=e;if(!s&&l&&c&&e.constructor===Hi)return e;if((l||ia(Xu,e))&&(e=e.source,c&&(t="flags"in d?d.flags:DG(d))),e=e===void 0?"":Ke(e),t=t===void 0?"":Ke(t),d=e,km&&"dotAll"in ga&&(r=!!t&&hC(t,"s")>-1)&&(t=pC(t,/s/g,"")),n=t,gC&&"sticky"in ga&&(i=!!t&&hC(t,"y")>-1)&&FG&&(t=pC(t,/y/g,"")),Pm&&(o=function(p){for(var m,v=p.length,g=0,y="",h=[],$={},w=!1,x=!1,S=0,C="";g<=v;g++){if((m=ch(p,g))==="\\")m+=ch(p,++g);else if(m==="]")w=!1;else if(!w)switch(!0){case m==="[":w=!0;break;case m==="(":CG(OG,AG(p,g+1))&&(g+=2,x=!0),y+=m,S++;continue;case(m===">"&&x):if(C===""||$t($,C))throw new SG("Invalid capture group name");$[C]=!0,h[h.length]=[C,S],x=!1,C="";continue}x?C+=m:y+=m}return[y,h]}(e),e=o[0],f=o[1]),a=aD(si(e,t),s?this:Xu,Hi),(r||i||f.length)&&(u=EG(a),r&&(u.dotAll=!0,u.raw=Hi(function(p){for(var m,v=p.length,g=0,y="",h=!1;g<=v;g++)(m=ch(p,g))!=="\\"?h||m!=="."?(m==="["?h=!0:m==="]"&&(h=!1),y+=m):y+="[\\s\\S]":y+=m+ch(p,++g);return y}(e),n)),i&&(u.sticky=!0),f.length&&(u.groups=f)),e!==d)try{fr(a,"source",d===""?"(?:)":d)}catch(p){}return a},kG=function(e){e in Hi||$G(Hi,e,{configurable:!0,get:function(){return si[e]},set:function(t){si[e]=t}})},vC=wG(si),mC=0;vC.length>mC;)kG(vC[mC++]);Xu.constructor=Hi,Hi.prototype=Xu,dn(G,"RegExp",Hi)}hy("RegExp");var PG=new RegExp(String.fromCharCode(160),"g");function yC(e){return e.replace(PG," ")}function bC(e,t){var n=e.length;if(n){var r=e[n-1];if(J.isText(r)){var i=Object.keys(r);if(i.length===1&&i[0]==="text")return r.text=r.text+t,!0}}return!1}function _G(e,t,n){return{type:"paragraph",children:[{text:O(e).text().replace(/\s+/gm," ")}]}}function Ly(e,t){var n=function(o,a){var u=[];if(o.attr("data-w-e-is-void")!=null)return u;var s=o[0].childNodes;return s.length===1&&s[0].nodeName==="BR"?(u.push({text:""}),u):(s.forEach(function(l){if(l.nodeType!==Mi.ELEMENT_NODE){if(l.nodeType===Mi.TEXT_NODE){var c=l.textContent||"";if(c.trim()===""&&c.indexOf(` `)>=0)return;c&&(c=yC(c),bC(u,c)||u.push({text:c}))}}else{if(l.nodeName==="BR")return void(bC(u,` `)||u.push({text:` `}));var f=zy(O(l),a);Array.isArray(f)?f.forEach(function(d){return u.push(d)}):u.push(f)}}),u)}(e,t),r=function(o){for(var a in lh)if(o[0].matches(a))return lh[a];return _G}(e),i=r(e[0],n,t);return Array.isArray(i)||(i=[i]),i.forEach(function(o){E.isVoid(t,o)||(n.length===0&&(o.children=[{text:e.text().replace(/\s+/gm," ")}]),jy.forEach(function(a){o=a(e[0],o,t)}))}),i}function My(e,t){e.parents("pre").length===0&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm," ").replace(/
/g,` `));var n=e[0].textContent||"";n=function(i){return i.replace(/ /g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"\xAE").replace(/©/g,"\xA9").replace(/™/g,"\u2122")}(n);var r={text:n=yC(n)};return jy.forEach(function(i){r=i(e[0],r,t)}),r}function zy(e,t){dC.forEach(function(r){var i=r.selector,o=r.preParseHtml;e[0].matches(i)&&(e=O(o(e[0])))});var n=AD(e);return n==="span"?e.attr("data-w-e-type")?Ly(e,t):My(e,t):n==="code"?AD(e.parent())==="pre"?Ly(e,t):My(e,t):fC.includes(n)?My(e,t):Ly(e,t)}function $C(e,t,n){var r=O(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",function(){r.removeAttr(t)}),!1)}function wC(e,t){t===void 0&&(t="");var n=[];t===""&&(t="


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

"+i+"

"}).join(""));var r=O("
"+t+"
");return Array.from(r.children()).forEach(function(i){var o=zy(O(i),e);Array.isArray(o)?o.forEach(function(a){return n.push(a)}):n.push(o)}),n}var NG=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function EC(e,t){e.isInline(t)?(e.insertNode(t),t.type==="link"&&e.insertFragment([{text:""}])):_.insertNodes(e,t,{mode:"highest"})}var IG=function(e){var t=e,n=t.onChange,r=t.insertText,i=t.apply,o=t.deleteBackward;return t.insertText=function(a){t.getConfig().readOnly||r(a)},t.apply=function(a){var u,s,l,c,f,d,p,m,v=[];switch(a.type){case"insert_text":case"remove_text":case"set_node":try{for(var g=Gn(E.levels(t,{at:a.path})),y=g.next();!y.done;y=g.next()){var h=ke(y.value,2),$=h[0],w=h[1],x=A.findKey(t,$);v.push([w,x])}}catch(te){u={error:te}}finally{try{y&&!y.done&&(s=g.return)&&s.call(g)}finally{if(u)throw u.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var S=Gn(E.levels(t,{at:P.parent(a.path)})),C=S.next();!C.done;C=S.next()){var N=ke(C.value,2);$=N[0],w=N[1],x=A.findKey(t,$),v.push([w,x])}}catch(te){l={error:te}}finally{try{C&&!C.done&&(c=S.return)&&c.call(S)}finally{if(l)throw l.error}}break;case"move_node":try{for(var R=Gn(E.levels(t,{at:P.common(P.parent(a.path),P.parent(a.newPath))})),U=R.next();!U.done;U=R.next()){var W=ke(U.value,2);$=W[0],w=W[1],x=A.findKey(t,$),v.push([w,x])}}catch(te){f={error:te}}finally{try{U&&!U.done&&(d=R.return)&&d.call(R)}finally{if(f)throw f.error}}}i(a);try{for(var Z=Gn(v),Q=Z.next();!Q.done;Q=Z.next()){var le=ke(Q.value,2);w=le[0],x=le[1],$=ke(E.node(t,w),1)[0],oh.set($,x)}}catch(te){p={error:te}}finally{try{Q&&!Q.done&&(m=Z.return)&&m.call(Z)}finally{if(p)throw p.error}}},t.deleteBackward=function(a){if(a!=="line")return o(a);if(e.selection&&j.isCollapsed(e.selection)){var u=E.above(e,{match:function(f){return E.isBlock(e,f)},at:e.selection});if(u){var s=ke(u,2)[1],l=E.range(e,s,e.selection.anchor),c=function(f,d){var p=E.range(f,j.end(d)),m=Array.from(E.positions(f,{at:d})),v=0,g=m.length,y=Math.floor(g/2);if(cC(f,E.range(f,m[v]),p))return E.range(f,m[v],p);if(m.length<2)return E.range(f,m[m.length-1],p);for(;y!==m.length&&y!==v;)cC(f,E.range(f,m[y]),p)?g=y:v=y,y=Math.floor((v+g)/2);return E.range(f,m[g],p)}(t,l);j.isCollapsed(c)||_.delete(e,{at:c})}}},t.onChange=function(){var a=t.selection;a!=null&&sy.set(t,a),t.emit("change"),n()},t.handleTab=function(){t.insertText(" ")},t.getHtml=function(){var a=t.children;return(a===void 0?[]:a).map(function(u){return uC(u,t)}).join("")},t.getText=function(){var a=t.children;return(a===void 0?[]:a).map(function(u){return q.string(u)}).join(` `)},t.getSelectionText=function(){var a=t.selection;return a==null?"":E.string(e,a)},t.getElemsByType=function(a,u){var s,l;u===void 0&&(u=!1);var c=[],f=E.nodes(t,{at:[],universal:!0});try{for(var d=Gn(f),p=d.next();!p.done;p=d.next()){var m=ke(p.value,1)[0];if(ne.isElement(m)&&(u?m.type.indexOf(a)>=0:m.type===a)){var v=sC(A.findKey(t,m).id);c.push(Wn(Wn({},m),{id:v}))}}}catch(g){s={error:g}}finally{try{p&&!p.done&&(l=d.return)&&l.call(d)}finally{if(s)throw s.error}}return c},t.getElemsByTypePrefix=function(a){return t.getElemsByType(a,!0)},t.isEmpty=function(){var a=t.children,u=a===void 0?[]:a;if(u.length>1)return!1;var s=u[0];if(s==null)return!0;if(ne.isElement(s)&&s.type==="paragraph"){var l=s.children,c=l===void 0?[]:l;if(c.length>1)return!1;var f=c[0];if(f==null||J.isText(f)&&f.text==="")return!0}return!1},t.clear=function(){_.removeNodes(t,{at:{anchor:E.start(t,[]),focus:E.end(t,[])},mode:"highest"}),t.children.length===0&&_.insertNodes(t,[{type:"paragraph",children:[{text:""}]}])},t.getParentNode=function(a){return A.getParentNode(t,a)},t.dangerouslyInsertHtml=function(a,u){if(a===void 0&&(a=""),u===void 0&&(u=!1),a){var s=document.createElement("div");s.innerHTML=a;var l=Array.from(s.childNodes);if(l=l.filter(function(p){var m=p.nodeType,v=p.nodeName;return m===Mi.TEXT_NODE||m===Mi.ELEMENT_NODE&&!NG.has(v.toLowerCase())}),l.length!==0){var c=t.selection;if(c!=null){var f=null;A.isSelectedEmptyParagraph(t)&&!u&&(f=[c.focus.path[0]]),s.setAttribute("hidden","true"),document.body.appendChild(s);var d=0;l.forEach(function(p){var m=p.nodeType,v=p.nodeName,g=p.textContent,y=g===void 0?"":g;if(m!==Mi.TEXT_NODE)if(v!=="BR"){var h=p,$=!1;if(fC.includes(v.toLowerCase()))$=!0;else for(var w in lh)if(h.matches(w)){$=!0;break}if($){var x=zy(O(h),t);return Array.isArray(x)?(x.forEach(function(C){return EC(t,C)}),d++):(EC(t,x),d++),void(A.isSelectedVoidNode(t)&&t.move(1))}var S=window.getComputedStyle(h).display;A.isSelectedEmptyParagraph(t)||S.indexOf("inline")<0&&t.insertBreak(),t.dangerouslyInsertHtml(h.innerHTML,!0)}else t.insertText(` `);else{if(!y||!y.trim())return;t.insertNode({text:y})}}),d&&f&&A.isEmptyPath(t,f)&&_.removeNodes(t,{at:f}),s.remove()}}}},t.setHtml=function(a){a===void 0&&(a="");var u=t.isDisabled(),s=t.isFocused(),l=JSON.stringify(t.selection);t.enable(),t.focus(),t.clear();var c=wC(t,a);if(_.insertFragment(t,c),s||(t.deselect(),t.blur()),u&&(t.deselect(),t.disable()),t.isFocused())try{t.select(JSON.parse(l))}catch(f){t.select(E.start(t,[]))}},t},jG=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(r){var i=t.selection;if(i){var o=ke(j.edges(i),2),a=o[0],u=o[1],s=E.void(t,{at:a.path}),l=E.void(t,{at:u.path});if(!j.isCollapsed(i)||s){var c=A.toDOMRange(t,i),f=c.cloneContents(),d=f.childNodes[0];if(f.childNodes.forEach(function(x){x.textContent&&x.textContent.trim()!==""&&(d=x)}),l){var p=ke(l,1)[0],m=c.cloneRange(),v=A.toDOMNode(t,p);m.setEndAfter(v),f=m.cloneContents()}if(s&&(d=f.querySelector("[data-slate-spacer]")),Array.from(f.querySelectorAll("[data-slate-zero-width]")).forEach(function(x){var S=x.getAttribute("data-slate-zero-width")==="n";x.textContent=S?` `:""}),SD(d)){var g=d.ownerDocument.createElement("span");g.style.whiteSpace="pre",g.appendChild(d),f.appendChild(g),d=g}var y=t.getFragment(),h=JSON.stringify(y),$=window.btoa(encodeURIComponent(h));d.setAttribute("data-slate-fragment",$),r.setData("application/x-slate-fragment",$);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",PW(w)),f.ownerDocument.body.removeChild(w),r}}},t.insertData=function(r){var i,o,a=r.getData("application/x-slate-fragment");if(a){var u=decodeURIComponent(window.atob(a)),s=JSON.parse(u);t.insertFragment(s)}else{var l=r.getData("text/plain"),c=r.getData("text/html");if(c)t.dangerouslyInsertHtml(c);else if(l){var f=l.split(/\r\n|\r|\n/),d=!1;try{for(var p=Gn(f),m=p.next();!m.done;m=p.next()){var v=m.value;d&&_.splitNodes(t,{always:!0}),n(v),d=!0}}catch(g){i={error:g}}finally{try{m&&!m.done&&(o=p.return)&&o.call(p)}finally{if(i)throw i.error}}}}},t},lc=function(e){return e!=null},RG={object:!0,function:!0,undefined:!0},LG=function(e){if(!function(t){return!!lc(t)&&hasOwnProperty.call(RG,typeof t)}(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch(t){return!1}},MG=/^\s*class[\s{/}]/,zG=Function.prototype.toString,xC=function(e){return!!function(t){if(typeof t!="function"||!hasOwnProperty.call(t,"length"))return!1;try{if(typeof t.length!="number"||typeof t.call!="function"||typeof t.apply!="function")return!1}catch(n){return!1}return!LG(t)}(e)&&!MG.test(zG.call(e))},Hy=function(e){return e!=null},HG=Object.keys,UG=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}()?Object.keys:function(e){return HG(Hy(e)?Object(e):e)},VG=function(e){if(!Hy(e))throw new TypeError("Cannot use null or undefined");return e},WG=Math.max,SC=function(){var e,t=Object.assign;return typeof t=="function"&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}()?Object.assign:function(e,t){var n,r,i,o=WG(arguments.length,2);for(e=Object(VG(e)),i=function(a){try{e[a]=t[a]}catch(u){n||(n=u)}},r=1;r-1},fh=Fl(function(e){var t=e.exports=function(n,r){var i,o,a,u,s;return arguments.length<2||typeof n!="string"?(u=r,r=n,n=null):u=arguments[2],lc(n)?(i=cc.call(n,"c"),o=cc.call(n,"e"),a=cc.call(n,"w")):(i=a=!0,o=!1),s={value:r,configurable:i,enumerable:o,writable:a},u?SC(DC(u),s):s};t.gs=function(n,r,i){var o,a,u,s;return typeof n!="string"?(u=i,i=r,r=n,n=null):u=arguments[3],lc(r)?xC(r)?lc(i)?xC(i)||(u=i,i=void 0):i=void 0:(u=r,r=i=void 0):r=void 0,lc(n)?(o=cc.call(n,"c"),a=cc.call(n,"e")):(o=!0,a=!1),s={get:r,set:i,configurable:o,enumerable:a},u?SC(DC(u),s):s}}),Vy=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},XG=Fl(function(e,t){var n,r,i,o,a,u,s,l=Function.prototype.apply,c=Function.prototype.call,f=Object.create,d=Object.defineProperty,p=Object.defineProperties,m=Object.prototype.hasOwnProperty,v={configurable:!0,enumerable:!1,writable:!0};n=function(g,y){var h;return Vy(y),m.call(this,"__ee__")?h=this.__ee__:(h=v.value=f(null),d(this,"__ee__",v),v.value=null),h[g]?typeof h[g]=="object"?h[g].push(y):h[g]=[h[g],y]:h[g]=y,this},r=function(g,y){var h,$;return Vy(y),$=this,n.call(this,g,h=function(){i.call($,g,h),l.call(y,this,arguments)}),h.__eeOnceListener__=y,this},i=function(g,y){var h,$,w,x;if(Vy(y),!m.call(this,"__ee__"))return this;if(!(h=this.__ee__)[g])return this;if(typeof($=h[g])=="object")for(x=0;w=$[x];++x)w!==y&&w.__eeOnceListener__!==y||($.length===2?h[g]=$[x?0:1]:$.splice(x,1));else $!==y&&$.__eeOnceListener__!==y||delete h[g];return this},o=function(g){var y,h,$,w,x;if(m.call(this,"__ee__")&&(w=this.__ee__[g]))if(typeof w=="object"){for(h=arguments.length,x=new Array(h-1),y=1;ya/2){var p=a-d;c.right=p+5+"px"}else c.left=d+5+"px";if(f>u/2){var m=u-f;c.bottom=m+5+"px"}else{var v=f+l;v<0&&(v=0),c.top=v+5+"px"}return c}function qy(e,t,n){n===void 0&&(n="modal");var r={top:"0",left:"0"};if(e.selection==null)return r;var i=ne.isElement(t)&&e.isVoid(t),o=ne.isElement(t)&&e.isInline(t),a=ih.get(t);if(a==null)return r;var u=a.getBoundingClientRect(),s=u.top,l=u.left,c=u.height,f=u.width;if(i){var d=function(C){var N=[];N.push(C);for(var R=0;N.length>0;){var U=N.pop();if(U==null||++R>1e4)break;var W=U.nodeName;if(U.nodeType===1){var Z=W.toLowerCase();if(TW.includes(Z)||Z==="iframe"||Z==="video")return U;var Q=U.children||[],le=Q.length;if(le)for(var te=le-1;te>=0;te--)N.push(Q[te])}}return null}(a);if(d!=null){var p=d.getBoundingClientRect();s=p.top,c=p.height}}var m=Wy(e);if(m==null)return r;var v=m.top,g=m.left,y=m.width,h=m.height,$={},w=s-v,x=l-g;if(n==="bar")return $.left=x+"px",w>40?$.bottom=h-w+5+"px":$.top=w+c+5+"px",$;if(n==="modal"){var S;return i?o?x>(y-f)/2?$.right=y-x+5+"px":$.left=x+f+5+"px":$.left="20px":$.left=x+"px",i?((S=w)<0&&(S=0),$.top=S+"px"):w>(h-c)/2?$.bottom=h-w+5+"px":((S=w+c)<0&&(S=0),$.top=S+5+"px"),$}throw new Error("type '"+n+"' is invalid")}function Ky(e,t){qn(function(){var n=Wy(e);if(n!=null){var r,i=n.top,o=n.left,a=n.width,u=n.height,s=t.offset(),l=s.top,c=s.left,f=t.width(),d=t.height(),p=l-i,m=c-o,v=t.attr("style");if(v.indexOf("top")>=0&&(r=p+d-u)>0){var g=t.css("top"),y=parseInt(g.toString())-r;y<0&&(y=0),t.css("top",y+"px")}if(v.indexOf("bottom")>=0&&l<0){var h=t.css("bottom"),$=parseInt(h.toString())-Math.abs(l);t.css("bottom",$+"px")}if(v.indexOf("left")>=0&&(r=m+f-a)>0){var w=t.css("left"),x=parseInt(w.toString())-r;x<0&&(x=0),t.css("left",x+"px")}if(v.indexOf("right")>=0&&c<0){var S=t.css("right"),C=parseInt(S.toString())-Math.abs(c);t.css("right",C+"px")}}})}var QG=Up("slice"),eq=at("species"),Yy=G.Array,tq=Math.max;ut({target:"Array",proto:!0,forced:!QG},{slice:function(e,t){var n,r,i,o=Li(this),a=sa(o),u=Nu(e,a),s=Nu(t===void 0?a:t,a);if(_p(o)&&(n=o.constructor,(Np(n)&&(n===Yy||_p(n.prototype))||Je(n)&&(n=n[eq])===null)&&(n=void 0),n===Yy||n===void 0))return ID(o,u,s);for(r=new(n===void 0?Yy:n)(tq(s-u,0)),i=0;u1?arguments[1]:void 0,t.length)),r=Ke(e);return AC?AC(t,r,n):rq(t,n,n+r.length)===r}});var Ju=Object.assign,BC=Object.defineProperty,aq=ie([].concat),FC=!Ju||Re(function(){if(zt&&Ju({b:1},Ju(BC({},"a",{enumerable:!0,get:function(){BC(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(i){t[i]=i}),Ju({},e)[n]!=7||Iu(Ju({},t)).join("")!=r})?function(e,t){for(var n=Ii(e),r=arguments.length,i=1,o=DS.f,a=bS.f;r>i;)for(var u,s=Pp(arguments[i++]),l=o?aq(Iu(s),o(s)):Iu(s),c=l.length,f=0;c>f;)u=l[f++],zt&&!Te(a,s,u)||(n[u]=s[u]);return n}:Ju;ut({target:"Object",stat:!0,forced:Object.assign!==FC},{assign:FC});var uq=["props","attrs","style","dataset","on","hook"];function TC(e){var t=e.data,n=t===void 0?{}:t,r=e.children,i=r===void 0?[]:r;Object.keys(n).forEach(function(o){var a,u,s=n[o];if(o!=="key"){if(!uq.includes(o)){if(o.startsWith("data-")){var l=o.slice(5);return l=jM(l),function(c,f){c.data==null&&(c.data={});var d=c.data;d.dataset==null&&(d.dataset={}),Object.assign(d.dataset,f)}(e,((a={})[l]=s,a)),void delete n[o]}(function(c,f){c.data==null&&(c.data={});var d=c.data;d.props==null&&(d.props={}),Object.assign(d.props,f)})(e,(u={},u[o]=s,u)),delete n[o]}}else e.key=s}),i.length>0&&i.forEach(function(o){typeof o!="string"&&TC(o)})}var Xy=[];function sq(e){Xy.push(e)}var kC={};function lq(e){var t=e.type,n=e.renderElem;kC[t||""]=n}function cq(e,t,n){var r=n.isInline(e)?"span":"div";return fe(r,null,t)}function fq(e,t){var n,r=A.findKey(t,e),i=t.isInline(e),o=E.isVoid(t,e),a=sC(r.id),u={id:a,key:r.id,"data-slate-node":"element","data-slate-inline":i},s=e.type,l=e.children,c=l===void 0?[]:l,f=function(h){return kC[h]||cq}(s);n=o?null:c.map(function(h,$){return Zy(h,$,e,t)});var d=f(e,n,t);if(o){u["data-slate-void"]=!0;var p=i?"span":"div",m=ke(q.texts(e),1),v=ke(m[0],1)[0],g=Zy(v,0,e,t),y=fe(p,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},g);d=fe(p,{style:{position:"relative"}},d,y),Jl.set(v,0),Hu.set(v,e)}return d.data==null&&(d.data={}),Object.assign(d.data,u),o||i||(d=function(h,$){var w=$;return Xy.forEach(function(x){w=x(h,$)}),w}(e,d)),qn(function(){var h=fy(a);h!=null&&(uy.set(r,h),ih.set(e,h),rh.set(h,e))}),d}function PC(e,t){return t===void 0&&(t=!1),fe("span",{"data-slate-string":!0},t?e+` `:e)}function Jy(e,t){return e===void 0&&(e=0),t===void 0&&(t=!1),fe("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\uFEFF",t?fe("br",null):null)}function dq(e,t,n){if(e.text==null)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=A.findKey(n,e),i=n.getConfig().decorate;if(i==null)throw new Error("Can not get config.decorate");var o=A.findPath(n,e),a=i([e,o]),u=J.decorations(e,a),s=u.map(function(f,d){var p=function(m,v,g,y,h){v===void 0&&(v=!1);var $=m.text,w=A.findPath(h,g),x=P.parent(w);if(E.isEditor(y))throw new Error("Text node "+JSON.stringify(g)+" parent is Editor");return h.isVoid(y)?Jy(q.string(y).length):$!==""||y.children[y.children.length-1]!==g||h.isInline(y)||E.string(h,x)!==""?$===""?Jy():v&&$.slice(-1)===` `?PC($,!0):PC($):Jy(0,!0)}(f,d===u.length-1,e,t,n);return p=function(m,v){var g=v;return Xy.forEach(function(y){g=y(m,g)}),g}(f,p),fe("span",{"data-slate-leaf":!0},p)}),l=function(f){return"w-e-text-"+f}(r.id),c=fe("span",{"data-slate-node":"text",id:l,key:r.id},s);return qn(function(){var f=fy(l);f!=null&&(uy.set(r,f),ih.set(e,f),rh.set(f,e))}),c}function Zy(e,t,n,r){return Jl.set(e,t),Hu.set(e,n),ne.isElement(e)?fq(e,r):dq(e,n,r)}function pq(e,t){var n,r=e.$scroll,i=function(v){return"w-e-textarea-"+v}(e.id),o=t.getConfig(),a=o.readOnly,u=o.autoFocus,s=function(v,g){return g===void 0&&(g=!1),Cu("div#"+v,{props:{contentEditable:!g}})}(i,a),l=t.children||[];s.children=l.map(function(v,g){var y=Zy(v,g,t,t);return TC(y),y});var c=mD.get(e);if(c==null&&(c=!0),c){var f=function(v,g){return O(`
`)}(i);r.append(f),e.$textArea=f,n=f[0],(p=CL([TL,IL,HL,kL,NL,FL]))(n,s),mD.set(e,!1),yD.set(e,p)}else{var d=bD.get(e),p=yD.get(e);if(d==null||p==null)return;n=d.elm,p(d,s)}if(n!=null||(n=fy(i))!=null){if((c?u:t.isFocused())&&n.focus({preventScroll:!0}),c){var m=cy(n);m&&$D.set(t,m)}ay.set(t,n),ih.set(t,n),rh.set(n,t),bD.set(e,s)}}function _C(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function NC(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function Qy(e,t){if(e.clientHeightt||o>e&&a=t&&u>=n?o-e-r:a>t&&un?a-t+i:0}function IC(e,t){var n=window,r=t.scrollMode,i=t.block,o=t.inline,a=t.boundary,u=t.skipOverflowHiddenElements,s=typeof a=="function"?a:function(Ce){return Ce!==a};if(!_C(e))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=e;_C(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}f!=null&&f===document.body&&Qy(f)&&!Qy(document.documentElement)||f!=null&&Qy(f,u)&&c.push(f)}for(var d=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,g=e.getBoundingClientRect(),y=g.height,h=g.width,$=g.top,w=g.right,x=g.bottom,S=g.left,C=i==="start"||i==="nearest"?$:i==="end"?x:$+y/2,N=o==="center"?S+h/2:o==="end"?w:S,R=[],U=0;U=0&&S>=0&&x<=p&&w<=d&&$>=te&&x<=he&&S>=Ie&&w<=ue)return R;var ye=getComputedStyle(W),oe=parseInt(ye.borderLeftWidth,10),Le=parseInt(ye.borderTopWidth,10),T=parseInt(ye.borderRightWidth,10),F=parseInt(ye.borderBottomWidth,10),k=0,I=0,V="offsetWidth"in W?W.offsetWidth-W.clientWidth-oe-T:0,L="offsetHeight"in W?W.offsetHeight-W.clientHeight-Le-F:0;if(l===W)k=i==="start"?C:i==="end"?C-p:i==="nearest"?hh(v,v+p,p,Le,F,v+C,v+C+y,y):C-p/2,I=o==="start"?N:o==="center"?N-d/2:o==="end"?N-d:hh(m,m+d,d,oe,T,m+N,m+N+h,h),k=Math.max(0,k+v),I=Math.max(0,I+m);else{k=i==="start"?C-te-Le:i==="end"?C-he+F+L:i==="nearest"?hh(te,he,Q,Le,F+L,C,C+y,y):C-(te+Q/2)+L/2,I=o==="start"?N-Ie-oe:o==="center"?N-(Ie+le/2)+V/2:o==="end"?N-ue+T+V:hh(Ie,ue,le,oe,T+V,N,N+h,h);var ee=W.scrollLeft,pe=W.scrollTop;C+=pe-(k=Math.max(0,Math.min(pe+k,W.scrollHeight-Q+L))),N+=ee-(I=Math.max(0,Math.min(ee+I,W.scrollWidth-le+V)))}R.push({el:W,top:k,left:I})}return R}function jC(e){return e===Object(e)&&Object.keys(e).length!==0}function hq(e,t){var n=!e.ownerDocument.documentElement.contains(e);if(jC(t)&&typeof t.behavior=="function")return t.behavior(n?[]:IC(e,t));if(!n){var r=function(i){return i===!1?{block:"end",inline:"nearest"}:jC(i)?i:{block:"start",inline:"nearest"}}(t);return function(i,o){o===void 0&&(o="auto");var a="scrollBehavior"in document.body.style;i.forEach(function(u){var s=u.el,l=u.top,c=u.left;s.scroll&&a?s.scroll({top:l,left:c,behavior:o}):(s.scrollTop=l,s.scrollLeft=c)})}(IC(e,r),r.behavior)}}function Kn(e,t){return da(t)&&A.hasDOMNode(e,t,{editable:!0})}function RC(e,t){if(e.getConfig().readOnly)return!1;var n=Zu(e,t)&&A.toSlateNode(e,t);return E.isVoid(e,n)}function Zu(e,t){return da(t)&&A.hasDOMNode(e,t)}function LC(e,t,n){n===void 0&&(n=!1);var r=t.selection,i=t.getConfig(),o=A.findDocumentOrShadowRoot(t).getSelection();if(o&&(!e.isComposing||n)&&t.isFocused()){var a=o.type!=="None";if(r||a){var u=ay.get(t),s=!1;if(u.contains(o.anchorNode)&&u.contains(o.focusNode)&&(s=!0),a&&s&&r){var l=A.toSlateRange(t,o,{exactMatch:!0,suppressThrow:!0});if(l&&j.equals(l,r)){var c=!0;if(j.isCollapsed(r)){var f=o.anchorNode,d=o.anchorOffset;if(f===u){var p=u.childNodes,m=void 0;(m=p[d])&&m.matches("table")&&(c=!1),(m=p[d-1])&&m.matches("table")&&(c=!1)}}if(c)return}}if(!r||A.hasRange(t,r)){e.isUpdatingSelection=!0;var v=r&&A.toDOMRange(t,r);if(v){j.isBackward(r)?o.setBaseAndExtent(v.endContainer,v.endOffset,v.startContainer,v.startOffset):o.setBaseAndExtent(v.startContainer,v.startOffset,v.endContainer,v.endOffset);var g=v.startContainer.parentElement;if(!g.closest("[data-slate-spacer]")){g.getBoundingClientRect=v.getBoundingClientRect.bind(v);var y=document.body;hq(g,{scrollMode:"if-needed",boundary:i.scroll?u.parentElement:y,block:"end",behavior:"smooth"}),delete g.getBoundingClientRect}}else o.removeAllRanges();setTimeout(function(){v&&Zl&&u.focus(),e.isUpdatingSelection=!1})}else t.selection=A.toSlateRange(t,o,{exactMatch:!1,suppressThrow:!1})}}}var e2=new WeakMap,MC=new WeakMap,gq={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"},vq={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"},mq={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},nt=function(e){var t=gq[e],n=vq[e],r=mq[e],i=t&&D1(t),o=n&&D1(n),a=r&&D1(r);return function(u){return!(!i||!i(u))||!!(dy&&o&&o(u))||!(dy||!a||!a(u))}},st={isBold:nt("bold"),isCompose:nt("compose"),isMoveBackward:nt("moveBackward"),isMoveForward:nt("moveForward"),isDeleteBackward:nt("deleteBackward"),isDeleteForward:nt("deleteForward"),isDeleteLineBackward:nt("deleteLineBackward"),isDeleteLineForward:nt("deleteLineForward"),isDeleteWordBackward:nt("deleteWordBackward"),isDeleteWordForward:nt("deleteWordForward"),isExtendBackward:nt("extendBackward"),isExtendForward:nt("extendForward"),isExtendLineBackward:nt("extendLineBackward"),isExtendLineForward:nt("extendLineForward"),isItalic:nt("italic"),isMoveLineBackward:nt("moveLineBackward"),isMoveLineForward:nt("moveLineForward"),isMoveWordBackward:nt("moveWordBackward"),isMoveWordForward:nt("moveWordForward"),isRedo:nt("redo"),isSplitBlock:nt("splitBlock"),isTransposeCharacter:nt("transposeCharacter"),isUndo:nt("undo"),isTab:nt("tab"),isSelectAll:nt("selectAll")};function Ot(e){e.preventDefault()}var yq={beforeinput:function(e,t,n){var r=e,i=n.getConfig().readOnly;if(ec&&!i&&Kn(n,r.target)){var o=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=ke(r.getTargetRanges(),1)[0];if(s){var l=A.toSlateRange(n,s,{exactMatch:!1,suppressThrow:!1});o&&j.equals(o,l)||_.select(n,l)}}if(o&&j.isExpanded(o)&&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"&&!ly.get(n))break;u instanceof DataTransfer?n.insertData(u):typeof u=="string"&&E.insertText(n,u)}}}},blur:function(e,t,n){var r=e,i=t.isUpdatingSelection,o=t.latestElement;if(!n.getConfig().readOnly&&!i&&Kn(n,r.target)){var a=A.findDocumentOrShadowRoot(n);if(o!==a.activeElement){var u=r.relatedTarget;if(!(u===A.toDOMNode(n,n)||pr(u)&&u.hasAttribute("data-slate-spacer"))){if(u!=null&&da(u)&&A.hasDOMNode(n,u)){var s=A.toSlateNode(n,u);if(ne.isElement(s)&&!n.isVoid(s))return}if(Ql){var l=a.getSelection();l==null||l.removeAllRanges()}fa.delete(n)}}}},focus:function(e,t,n){var r=A.toDOMNode(n,n),i=A.findDocumentOrShadowRoot(n);t.latestElement=i.activeElement,Zl&&e.target!==r?r.focus():fa.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&Zu(n,e.target)&&da(e.target)){var r=A.toSlateNode(n,e.target),i=A.findPath(n,r);if(E.hasPath(n,i)&&q.get(n,i)===r){var o=E.start(n,i),a=E.end(n,i),u=E.void(n,{at:o}),s=E.void(n,{at:a});if(u&&s&&P.equals(u[1],s[1])){var l=E.range(n,o);_.select(n,l)}}}},compositionstart:function(e,t,n){if(Kn(n,e.target)){var r=n.selection;if(r&&j.isExpanded(r)&&(E.deleteFragment(n),Promise.resolve().then(function(){LC(t,n,!0)})),r&&j.isCollapsed(r)){var i=A.toDOMRange(n,r).startContainer,o=i.textContent||"";e2.set(n,o),MC.set(n,i)}t.isComposing=!0,function(a,u){var s;u.getConfig().placeholder&&u.isEmpty()&&a.showPlaceholder&&((s=a.$placeholder)===null||s===void 0||s.hide(),a.showPlaceholder=!1)}(t,n)}},compositionend:function(e,t,n){var r=e;if(Kn(n,r.target)){t.isComposing=!1;var i=n.selection;if(i!=null){(py||Zl)&&A.cleanExposedTexNodeInSelectionBlock(n);for(var o=j.isBackward(i)?i.focus:i.anchor,a=ke(E.node(n,[o.path[0]]),1)[0],u=0;u0&&E.insertText(n,l.slice(0,c)),t.changeViewState()):E.insertText(n,l)}else E.insertText(n,l);Ql||setTimeout(function(){var f=n.selection;if(f!=null){var d=MC.get(n);d!=null&&A.toDOMRange(n,f).startContainer!==d&&(d.textContent=e2.get(n)||"")}})}}}},compositionupdate:function(e,t,n){Kn(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,i=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&Kn(n,r.target)){if(function(a,u){var s=eh.get(a),l=s&&s.getMenus(),c=th.get(a),f=c&&c.getMenus(),d=Wn(Wn({},l),f);for(var p in d){var m=d[p],v=m.hotkey;if(v&&UM(v,u)&&!m.isDisabled(a)){var g=m.getValue(a);m.exec(a,g)}}}(n,r),st.isTab(r))return Ot(r),void n.handleTab();if(st.isRedo(r))return Ot(r),void(typeof n.redo=="function"&&n.redo());if(st.isUndo(r))return Ot(r),void(typeof n.undo=="function"&&n.undo());if(st.isMoveLineBackward(r))return Ot(r),void _.move(n,{unit:"line",reverse:!0});if(st.isMoveLineForward(r))return Ot(r),void _.move(n,{unit:"line"});if(st.isExtendLineBackward(r))return Ot(r),void _.move(n,{unit:"line",edge:"focus",reverse:!0});if(st.isExtendLineForward(r))return Ot(r),void _.move(n,{unit:"line",edge:"focus"});if(st.isMoveBackward(r))return Ot(r),void(i&&j.isCollapsed(i)?_.move(n,{reverse:!0}):_.collapse(n,{edge:"start"}));if(st.isMoveForward(r))return Ot(r),void(i&&j.isCollapsed(i)?_.move(n):_.collapse(n,{edge:"end"}));if(st.isMoveWordBackward(r))return Ot(r),i&&j.isExpanded(i)&&_.collapse(n,{edge:"focus"}),void _.move(n,{unit:"word",reverse:!0});if(st.isMoveWordForward(r))return Ot(r),i&&j.isExpanded(i)&&_.collapse(n,{edge:"focus"}),void _.move(n,{unit:"word"});if(st.isSelectAll(r))return Ot(r),void n.selectAll();if(ec){if((py||Ql)&&i&&(st.isDeleteBackward(r)||st.isDeleteForward(r))&&j.isCollapsed(i)){var o=q.parent(n,i.anchor.path);if(ne.isElement(o)&&E.isVoid(n,o)&&E.isInline(n,o))return r.preventDefault(),void _.delete(n,{unit:"block"})}}else{if(st.isBold(r)||st.isItalic(r)||st.isTransposeCharacter(r))return void Ot(r);if(st.isSplitBlock(r))return Ot(r),void E.insertBreak(n);if(st.isDeleteBackward(r))return Ot(r),void(i&&j.isExpanded(i)?E.deleteFragment(n,{direction:"backward"}):E.deleteBackward(n));if(st.isDeleteForward(r))return Ot(r),void(i&&j.isExpanded(i)?E.deleteFragment(n,{direction:"forward"}):E.deleteForward(n));if(st.isDeleteLineBackward(r))return Ot(r),void(i&&j.isExpanded(i)?E.deleteFragment(n,{direction:"backward"}):E.deleteBackward(n,{unit:"line"}));if(st.isDeleteLineForward(r))return Ot(r),void(i&&j.isExpanded(i)?E.deleteFragment(n,{direction:"forward"}):E.deleteForward(n,{unit:"line"}));if(st.isDeleteWordBackward(r))return Ot(r),void(i&&j.isExpanded(i)?E.deleteFragment(n,{direction:"backward"}):E.deleteBackward(n,{unit:"word"}));if(st.isDeleteWordForward(r))return Ot(r),void(i&&j.isExpanded(i)?E.deleteFragment(n,{direction:"forward"}):E.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!ec&&!n.getConfig().readOnly&&Kn(n,e.target)){e.preventDefault();var r=e.key;E.insertText(n,r)}},copy:function(e,t,n){var r=e;if(Kn(n,r.target)){r.preventDefault();var i=r.clipboardData;i!=null&&n.setFragmentData(i)}},cut:function(e,t,n){var r=e,i=n.selection;if(!n.getConfig().readOnly&&Kn(n,r.target)){r.preventDefault();var o=r.clipboardData;if(o!=null&&(n.setFragmentData(o),i))if(j.isExpanded(i))E.deleteFragment(n);else{var a=q.parent(n,i.anchor.path);E.isVoid(n,a)&&_.delete(n)}}},paste:function(e,t,n){ly.set(n,!0);var r=e;if(!n.getConfig().readOnly&&Kn(n,r.target)){var i=n.getConfig().customPaste;if(i&&i(n,r)===!1)return void ly.set(n,!1);if(!ec||function(a){return a.clipboardData&&a.clipboardData.getData("text/plain")!==""&&a.clipboardData.types.length===1}(r)){r.preventDefault();var o=r.clipboardData;o!=null&&n.insertData(o)}}},dragover:function(e,t,n){if(Zu(n,e.target)){var r=A.toSlateNode(n,e.target);E.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(Zu(n,r.target)&&!n.getConfig().readOnly){var i=A.toSlateNode(n,r.target),o=A.findPath(n,i);if(E.isVoid(n,i)||E.void(n,{at:o,voids:!0})){var a=E.range(n,o);_.select(n,a)}var u=r.dataTransfer;u!=null&&(t.isDraggingInternally=!0,n.setFragmentData(u))}},dragend:function(e,t,n){var r=e;n.getConfig().readOnly||t.isDraggingInternally&&Zu(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,i=r.dataTransfer;if(!n.getConfig().readOnly&&Zu(n,r.target)&&i!=null&&!(ec&&Ql&&i.files.length>0)){r.preventDefault();var o=n.selection,a=A.findEventRange(n,r);_.select(n,a),t.isDraggingInternally&&(o&&_.delete(n,{at:o}),t.isDraggingInternally=!1),n.insertData(i),n.isFocused()||n.focus()}}},bq=1,$q=function(){function e(t){var n=this;this.id=bq++,this.$textArea=null,this.$progressBar=O('
'),this.$maxLengthInfo=O('
'),this.isComposing=!1,this.isUpdatingSelection=!1,this.isDraggingInternally=!1,this.latestElement=null,this.showPlaceholder=!1,this.$placeholder=null,this.latestEditorSelection=null,this.onDOMSelectionChange=Yo(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 d=A.findDocumentOrShadowRoot(s),p=d.activeElement,m=A.toDOMNode(s,s),v=d.getSelection();if(p===m?(u.latestElement=p,fa.set(s,!0)):fa.delete(s),!v)return _.deselect(s);var g=v.anchorNode,y=v.focusNode,h=Kn(s,g)||RC(s,g),$=Kn(s,y)||RC(s,y);if(h&&$){var w=A.toSlateRange(s,v,{exactMatch:!1,suppressThrow:!1});_.select(s,w)}else _.deselect(s)}})(n,a)},100);var r=O(t);if(r.length===0)throw new Error("Cannot find textarea DOM by selector '"+t+"'");this.$box=r;var i=O('
');i.append(this.$progressBar),i.append(this.$maxLengthInfo),r.append(i);var o=O('
');i.append(o),this.$scroll=o,this.$textAreaContainer=i,qn(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)}),i.on("click",function(){return a.hidePanelOrModal()}),a.on("change",n.changeViewState.bind(n));var s=a.getConfig().onChange;s&&a.on("change",function(){return s(a)}),n.onFocusAndOnBlur(),a.on("change",n.changeMaxLengthInfo.bind(n)),n.bindEvent()})}return Object.defineProperty(e.prototype,"editorInstance",{get:function(){var t=ty.get(this);if(t==null)throw new Error("Can not get editor instance");return t},enumerable:!1,configurable:!0}),e.prototype.bindEvent=function(){var t=this,n=this.$textArea,r=this.$scroll,i=this.editorInstance;n!=null&&(p1(yq,function(o,a){n.on(a,function(u){o(u,t,i)})}),i.getConfig().scroll&&(r.css("overflow-y","auto"),r.on("scroll",Yo(function(){i.emit("scroll")},100))))},e.prototype.onFocusAndOnBlur=function(){var t=this,n=this.editorInstance,r=n.getConfig(),i=r.onBlur,o=r.onFocus;this.latestEditorSelection=n.selection,n.on("change",function(){t.latestEditorSelection==null&&n.selection!=null?setTimeout(function(){return o&&o(n)}):t.latestEditorSelection!=null&&n.selection==null&&setTimeout(function(){return i&&i(n)}),t.latestEditorSelection=n.selection})},e.prototype.changeMaxLengthInfo=function(){var t=this.editorInstance,n=t.getConfig().maxLength;if(n){var r=n-A.getLeftLengthOfMaxLength(t);this.$maxLengthInfo[0].innerHTML=r+"/"+n}},e.prototype.changeProgress=function(t){var n=this.$progressBar;n.css("width",t+"%"),t>=100&&setTimeout(function(){n.hide(),n.css("width","0"),n.show()},1e3)},e.prototype.changeViewState=function(){var t=this,n=this.editorInstance;pq(this,n),function(r,i){var o,a=i.getConfig().placeholder;if(a){var u=i.isEmpty();if(u&&!r.showPlaceholder&&!r.isComposing){if(r.$placeholder==null){var s=O('
'+a+"
");r.$textAreaContainer.append(s),r.$placeholder=s}return r.$placeholder.show(),void(r.showPlaceholder=!0)}!u&&r.showPlaceholder&&((o=r.$placeholder)===null||o===void 0||o.hide(),r.showPlaceholder=!1)}}(this,n),qn(function(){LC(t,n)})},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();zm("match",function(e,t,n){return[function(r){var i=Vn(this),o=r==null?void 0:oa(r,e);return o?Te(o,r,i):new RegExp(r)[e](Ke(i))},function(r){var i=wt(this),o=Ke(r),a=n(t,i,o);if(a.done)return a.value;if(!i.global)return Gl(i,o);var u=i.unicode;i.lastIndex=0;for(var s,l=[],c=0;(s=Gl(i,o))!==null;){var f=Ke(s[0]);l[c]=f,f===""&&(i.lastIndex=Hm(o,Pu(i.lastIndex),u)),c++}return c===0?null:l}]});function t2(e){e.removeAttr("width"),e.removeAttr("height"),e.removeAttr("fill"),e.removeAttr("class"),e.removeAttr("t"),e.removeAttr("p-id");var t=e.children();t.length&&t2(t)}function n2(){return O('')}function zC(){return O('
')}function HC(e,t,n,r,i){if(i===void 0&&(i=!1),t){if(r){var o=dy?"cmd":"ctrl";r=r.replace("mod",o)}if(i)r&&(e.attr("data-tooltip",r),e.addClass("w-e-menu-tooltip-v5"),e.addClass("tooltip-right"));else{var a=r?n+` `+r:n;e.attr("data-tooltip",a),e.addClass("w-e-menu-tooltip-v5")}}}var r2=function(){function e(t,n,r){var i=this;r===void 0&&(r=!1),this.$elem=O('
'),this.$button=O(''),this.disabled=!1,this.menu=n;var o=n.tag,a=n.width;if(o!=="button")throw new Error("Invalid tag '"+o+"', expected 'button'");var u=n.title,s=n.hotkey,l=s===void 0?"":s,c=n.iconSvg,f=c===void 0?"":c,d=this.$button;if(f){var p=O(f);t2(p),d.append(p)}else d.text(u);HC(d,f,u,l,r),r&&f&&d.append(O(''+u+"")),a&&d.css("width",a+"px"),d.attr("data-menu-key",t),this.$elem.append(d),qn(function(){return i.init()})}return e.prototype.init=function(){var t=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(n){n.preventDefault(),An(t).hidePanelOrModal(),t.disabled||(t.exec(),t.onButtonClick())})},e.prototype.exec=function(){var t=An(this),n=this.menu,r=n.getValue(t);n.exec(t,r)},e.prototype.setActive=function(){var t=An(this),n=this.$button,r="active";this.menu.isActive(t)?n.addClass(r):n.removeClass(r)},e.prototype.setDisabled=function(){var t=An(this),n=this.$button,r=this.menu.isDisabled(t);(t.selection==null||t.isDisabled())&&(r=!0),this.menu.alwaysEnable&&(r=!1);var i="disabled";r?n.addClass(i):n.removeClass(i),this.disabled=r},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e}(),wq=function(e){function t(n,r,i){return i===void 0&&(i=!1),e.call(this,n,r,i)||this}return Mu(t,e),t.prototype.onButtonClick=function(){},t}(r2),i2=function(){function e(t){this.isShow=!1,this.showTime=0,this.record(t)}return e.prototype.record=function(t){var n=oy.get(t);n==null&&(n=new Set,oy.set(t,n)),n.add(this),nh.set(this,t)},e.prototype.renderContent=function(t){var n=this.$elem;n.empty(),n.append(t);var r=this.genSelfElem();r&&n.append(r)},e.prototype.appendTo=function(t){var n=this.$elem;t.append(n)},e.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var t=nh.get(this);t&&t.emit("modalOrPanelShow",this)}},e.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var t=nh.get(this);t&&t.emit("modalOrPanelHide")}},e}(),Eq=function(e){function t(n){var r=e.call(this,n)||this;return r.type="dropPanel",r.$elem=O('
'),r}return Mu(t,e),t.prototype.genSelfElem=function(){return null},t}(i2),xq=function(e){function t(n,r,i){i===void 0&&(i=!1);var o=e.call(this,n,r,i)||this;if(o.dropPanel=null,o.menu=r,r.showDropPanel){var a=n2();o.$button.append(a)}return o}return Mu(t,e),t.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},t.prototype.handleDropPanel=function(){var n=this.menu;if(n.getPanelContentElem!=null){var r=An(this);if(this.dropPanel==null){var i=new Eq(r),o=n.getPanelContentElem(r);i.renderContent(o),i.appendTo(this.$elem),i.show(),this.dropPanel=i}else{var a=this.dropPanel;a.isShow?a.hide():(o=n.getPanelContentElem(r),a.renderContent(o),a.show())}var u=this.dropPanel;if(u.isShow){var s=this.$elem,l=s.offset().left,c=s.parents(".w-e-bar");l-c.offset().left>=c.width()/2?u.$elem.css({left:"none",right:"0"}):u.$elem.css({left:"0",right:"none"})}}},t}(r2),Sq=function(e){function t(n,r){r===void 0&&(r=0);var i=e.call(this,n)||this;i.type="modal",i.$elem=O('
'),i.width=0,r&&(i.width=r);var o=i.$elem;return o.on("click",function(a){return a.stopPropagation()}),o.on("keyup",function(a){a.code==="Escape"&&(i.hide(),n.restoreSelection())}),i}return Mu(t,e),t.prototype.genSelfElem=function(){var n=this,r=O(''),i=nh.get(this);return r.on("click",function(){n.hide(),i==null||i.restoreSelection()}),r},t.prototype.setStyle=function(n){var r=this.width,i=this.$elem;i.attr("style",""),r&&i.css("width",r+"px"),i.css(n)},t}(i2);function Cn(e,t,n){var r=O('');r.append(""+e+"");var i=O('');return r.append(i),[r[0],i[0]]}function che(e,t,n){var r=O('');r.append(""+e+"");var i=O('');return r.append(i),[r[0],i[0]]}function Qu(e,t){var n=O('
'),r=O('");return n.append(r),[n[0],r[0]]}var Dq=function(e){function t(n,r,i){i===void 0&&(i=!1);var o=e.call(this,n,r,i)||this;return o.$body=O("body"),o.modal=null,o.menu=r,o}return Mu(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var n=An(this),r=this.menu.getModalPositionNode(n);return ne.isElement(r)?qy(n,r,"modal"):Gy(n)},t.prototype.handleModal=function(){var n=An(this),r=this.menu;if(this.modal==null){var i=new Sq(n,r.modalWidth);this.renderAndShowModal(i,!0),this.modal=i}else(i=this.modal).isShow?i.hide():this.renderAndShowModal(i,!1)},t.prototype.renderAndShowModal=function(n,r){r===void 0&&(r=!1);var i=An(this),o=this.menu;if(o.getModalContentElem!=null){var a=A.getTextarea(i),u=A.getToolbar(i),s=((u==null?void 0:u.getConfig())||{}).modalAppendToBody,l=o.getModalContentElem(i);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||Ky(i,n.$elem),setTimeout(function(){i.blur()})}},t}(r2),Cq=function(e){function t(n,r){var i=e.call(this,n)||this;return i.type="selectList",i.$elem=O('
'),r&&i.$elem.css("width",r+"px"),i.$elem.on("click",function(o){o.stopPropagation()}),i}return Mu(t,e),t.prototype.renderList=function(n){var r=this.$elem;r.empty();var i=O("
    ");n.forEach(function(o){var a=o.value,u=o.text,s=o.selected,l=o.styleForRenderMenuList,c=O('
  • ');if(l&&c.css(l),s){var f=O('');c.append(f),c.addClass("selected")}c.append(O(''+u+"")),c.attr("title",u),i.append(c)}),r.append(i)},t.prototype.genSelfElem=function(){return null},t}(i2),Aq=function(){function e(t,n,r){var i=this;r===void 0&&(r=!1),this.$elem=O('
    '),this.$button=O(''),this.disabled=!1,this.selectList=null;var o=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(o!=="select")throw new Error("Invalid tag '"+o+"', expected 'select'");var d=this.$button;u&&d.css("width",u+"px"),d.attr("data-menu-key",t),HC(d,l,a,f,r),this.$elem.append(d),this.menu=n,qn(function(){return i.init()})}return e.prototype.init=function(){var t=this;this.setSelectedValue(),this.$button.on("click",function(n){n.preventDefault(),An(t).hidePanelOrModal(),t.trigger()})},e.prototype.trigger=function(){var t=this,n=An(this);if(!n.isDisabled()&&!this.disabled){var r=this.menu;if(this.selectList==null){this.selectList=new Cq(n,r.selectPanelWidth);var i=this.selectList,o=r.getOptions(n);i.renderList(o),i.appendTo(this.$elem),i.show(),i.$elem.on("click","li",function(a){var u=a.target;if(u!=null){a.preventDefault();var s=O(u).attr("data-value");t.onChange(s)}})}else(i=this.selectList).isShow?i.hide():(o=r.getOptions(n),i.renderList(o),i.show())}},e.prototype.onChange=function(t){var n=An(this),r=this.menu;r.exec&&r.exec(n,t)},e.prototype.setSelectedValue=function(){var t=An(this),n=this.menu,r=n.getValue(t),i=function(u,s){for(var l=u.length,c="",f=0;f'),this.$container=O('
    '),this.$button=O('');var n=t.key,r=t.iconSvg,i=t.title,o=this.$elem,a=this.$button;if(r){var u=O(r);t2(u),a.append(u)}else a.text(i);a.attr("data-menu-key",n);var s=n2();a.append(s),o.append(a);var l=this.$container;o.append(l);var c=this.createObserver();this.observe(c)}return e.prototype.appendBarItem=function(t){var n=t.$elem;this.$container.append(n)},e.prototype.observe=function(t){var n=this.$container;t.observe(n[0],{childList:!0,subtree:!0,attributes:!0})},e.prototype.createObserver=function(){var t=this,n=this.$container,r=this.$button,i=new MutationObserver(function(){var o=n.find("button"),a=o.length;if(a!==0){var u=0;o.each(function(s){O(s).hasClass("disabled")&&u++}),i.disconnect(),u===a?r.addClass("disabled"):r.removeClass("disabled"),t.observe(i)}});return i},e}(),VC=new WeakMap;function An(e){var t=iy.get(e);if(t==null)throw new Error("Can not get editor instance");return t}function WC(e,t,n){n===void 0&&(n=!1);var r=VC.get(t);if(r)return r;var i=t.tag;if(i==="button"){var o=t.showDropPanel,a=t.showModal;r=o?new xq(e,t,n):a?new Dq(e,t,n):new wq(e,t,n)}if(i==="select"&&(r=new Aq(e,t,n)),r==null)throw new Error("Invalid tag in menu "+JSON.stringify(t));return VC.set(t,r),r}function Oq(e,t){var n=e.selection;return n!=null&&!j.isCollapsed(n)&&!A.getSelectedElems(e).some(function(r){if(e.isVoid(r))return!0;var i=r.type;return!!["pre","code","table"].includes(i)||void 0})&&!!J.isText(t)}var Bq=function(){function e(){var t=this;this.$elem=O('
    '),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null,this.isShow=!1,this.changeHoverbarState=hx(function(){var n=t.isShow,r=t.getSelectedNodeAndMenuKeys()||{},i=r.node,o=i===void 0?null:i,a=r.menuKeys,u=a===void 0?[]:a;o!=null&&t.changeItemsState(),!(o&&ne.isElement(o)&&n&&t.isSamePath(o,t.prevSelectedNode))&&(t.hideAndClean(),o!=null&&(t.registerItems(u),t.setPosition(o),t.show()),t.prevSelectedNode=o)},200),qn(function(){var n=t.getEditorInstance(),r=t.$elem;r.on("mousedown",function(o){return o.preventDefault()}),A.getTextarea(n).$textAreaContainer.append(r),n.on("change",t.changeHoverbarState);var i=t.hideAndClean.bind(t);n.on("scroll",i),n.on("fullScreen",i),n.on("unFullScreen",i)})}return e.prototype.getMenus=function(){return this.menus},e.prototype.hideAndClean=function(){var t=this.$elem;t.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],t.empty(),this.isShow=!1},e.prototype.checkPositionBottom=function(){var t=this.$elem,n=!1,r=window.innerHeight;r&&r>=360&&r-t[0].getBoundingClientRect().bottom<360&&(n=!0),n?t.addClass("w-e-bar-bottom"):t.removeClass("w-e-bar-bottom")},e.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},e.prototype.changeItemsState=function(){var t=this;qn(function(){t.hoverbarItems.forEach(function(n){n.changeMenuState()})})},e.prototype.registerItems=function(t){var n=this,r=this.$elem;t.forEach(function(i){if(i!=="|")n.registerSingleItem(i);else{var o=zC();r.append(o)}})},e.prototype.registerSingleItem=function(t){var n=this.getEditorInstance(),r=this.menus,i=r[t];if(i==null){var o=tc[t];if(o==null)throw new Error("Not found menu item factory by key '"+t+"'");if(typeof o!="function")throw new Error("Menu item factory (key='"+t+"') is not a function");i=o(),r[t]=i}var a=WC(t,i);this.hoverbarItems.push(a),iy.set(a,n),this.$elem.append(a.$elem)},e.prototype.setPosition=function(t){var n=this.getEditorInstance(),r=this.$elem;if(r.attr("style",""),ne.isElement(t)){var i=qy(n,t,"bar");return r.css(i),void Ky(n,r)}if(J.isText(t))return i=Gy(n),r.css(i),void Ky(n,r);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},e.prototype.getSelectedNodeAndMenuKeys=function(){var t=this.getEditorInstance();if(t.selection==null)return null;var n=this.getHoverbarKeysConf(),r=null,i=[],o=function(u){var s=n[u],l=s.match,c=s.menuKeys,f=c===void 0?[]:c,d=l||function(v,g){return A.checkNodeType(g,u)},p=ke(E.nodes(t,{match:function(v){return d(t,v)},universal:!0}),1),m=p[0];if(m!=null)return r=m[0],i=f,"break"};for(var a in n)if(o(a)==="break")break;return r==null||i.length===0?null:{node:r,menuKeys:i}},e.prototype.getEditorInstance=function(){var t=ry.get(this);if(t==null)throw new Error("Can not get editor instance");return t},e.prototype.getHoverbarKeysConf=function(){var t=this.getEditorInstance().getConfig().hoverbarKeys,n=t===void 0?{}:t,r=n.text;return r&&r.match==null&&(r.match=Oq),n},e.prototype.isSamePath=function(t,n){if(t==null||n==null)return!1;var r=A.findPath(null,t),i=A.findPath(null,n);return P.equals(r,i)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function GC(e,t,n,r){if(Jl.set(e,t),Hu.set(e,n),ne.isElement(e)){var i=e.children;if((i===void 0?[]:i).forEach(function(u,s){return GC(u,s,e,r)}),E.isVoid(r,e)){var o=ke(q.texts(e),1),a=ke(o[0],1)[0];Jl.set(a,0),Hu.set(a,e)}}}function Fq(e){var t=e.selector,n=t===void 0?"":t,r=e.config,i=r===void 0?{}:r,o=e.content,a=e.html,u=e.plugins,s=u===void 0?[]:u,l=(y=>{var h=y,{apply:$}=h;return h.history={undos:[],redos:[]},h.redo=()=>{var{history:w}=h,{redos:x}=w;if(x.length>0){var S=x[x.length-1];ju.withoutSaving(h,()=>{E.withoutNormalizing(h,()=>{for(var C of S)h.apply(C)})}),w.redos.pop(),w.undos.push(S)}},h.undo=()=>{var{history:w}=h,{undos:x}=w;if(x.length>0){var S=x[x.length-1];ju.withoutSaving(h,()=>{E.withoutNormalizing(h,()=>{var C=S.map(Ci.inverse).reverse();for(var N of C)h.apply(N)})}),w.redos.push(S),w.undos.pop()}},h.apply=w=>{var{operations:x,history:S}=h,{undos:C}=S,N=C[C.length-1],R=N&&N[N.length-1],U=ZU(w,R),W=ju.isSaving(h),Z=ju.isMerging(h);if(W==null&&(W=JU(w)),W){if(Z==null&&(Z=N!=null&&(x.length!==0||XU(w,R)||U)),N&&Z)U&&N.pop(),N.push(w);else{var Q=[w];C.push(Q)}for(;C.length>100;)C.shift();QU(w)&&(S.redos=[])}$(w)},h})(function(y){var h=y,$=h.insertText,w=h.insertNode,x=h.insertFragment;return h.insertText=function(S){if(h.getConfig().maxLength){var C=A.getLeftLengthOfMaxLength(h);C<=0||(C0&&w.removeAllRanges(),$&&_.deselect(y)},h.move=function($,w){w===void 0&&(w=!1),$&&($<0||_.move(y,{distance:$,unit:"character",reverse:w}))},h.moveReverse=function($){h.move($,!0)},h.restoreSelection=function(){var $=sy.get(h);$!=null&&(h.focus(),_.select(h,$))},h.getSelectionPosition=function(){return Gy(h)},h.getNodePosition=function($){return qy(h,$)},h.isSelectedAll=function(){var $=h.selection;if($==null)return!1;var w=ke(j.edges($),2),x=w[0],S=w[1],C=ke(E.edges(h,[]),2),N=C[0],R=C[1];return!(!$e.equals(x,N)||!$e.equals(S,R))},h.selectAll=function(){var $=E.start(h,[]),w=E.end(h,[]);_.select(h,{anchor:$,focus:w})},h}(IG(function(y){var h=y;return h.getAllMenuKeys=function(){var $=[];for(var w in tc)$.push(w);return $},h.getConfig=function(){var $=vD.get(h);if($==null)throw new Error("Can not get editor config");return $},h.getMenuConfig=function($){var w=h.getConfig().MENU_CONF;return(w===void 0?{}:w)[$]||{}},h.alert=function($,w){w===void 0&&(w="info");var x=h.getConfig().customAlert;x&&x($,w)},h}(function(y){var h=y;return h.id="wangEditor-"+IW++,h.isDestroyed=!1,h.isFullScreen=!1,h.focus=function($){if(A.toDOMNode(h,h).focus({preventScroll:!0}),fa.set(h,!0),$){var w=E.end(h,[]);_.select(h,w)}else{var x=sy.get(h);x?_.select(h,x):_.select(h,E.start(h,[]))}},h.isFocused=function(){return!!fa.get(h)},h.blur=function(){A.toDOMNode(h,h).blur(),_.deselect(h),fa.set(h,!1)},h.updateView=function(){A.getTextarea(h).changeViewState();var $=A.getToolbar(h);$&&$.changeToolbarState();var w=A.getHoverbar(h);w&&w.changeHoverbarState()},h.destroy=function(){if(!h.isDestroyed){var $=A.getTextarea(h);$.destroy(),ey.delete(h),ty.delete($);var w=A.getToolbar(h);w&&(w.destroy(),eh.delete(h),ny.delete(w));var x=A.getHoverbar(h);x&&(x.destroy(),th.delete(h),ry.delete(x)),h.isDestroyed=!0,h.emit("destroyed")}},h.scrollToElem=function($){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 x=O("#"+$);if(x.length!==0){var S=x[0];if(!A.hasDOMNode(h,S))return w="Element (found by id is '"+$+"') is not in editor DOM",w+=` \u901A\u8FC7 id '`+$+"' \u627E\u5230\u7684 element \u4E0D\u5728 editor DOM \u4E4B\u5185",void console.error(w,S);var C=A.getTextarea(h),N=C.$textAreaContainer,R=C.$scroll,U=x.offset().top,W=N.offset().top;R[0].scrollBy({top:U-W,behavior:"smooth"})}},h.showProgressBar=function($){$<1||A.getTextarea(h).changeProgress($)},h.hidePanelOrModal=function(){var $=oy.get(h);$!=null&&$.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($){return A.toDOMNode(h,$)},h.fullScreen=function(){if(!h.isFullScreen){var $=null,w=A.getToolbar(h);w&&($=w.$box);var x=A.getTextarea(h).$box.parent();if($&&$.parent()[0]!==x[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`);x.addClass("w-e-full-screen-container");var S=x.css("z-index");x.attr("data-z-index",S.toString()),h.isFullScreen=!0,h.emit("fullScreen")}},h.unFullScreen=function(){if(h.isFullScreen){var $=A.getTextarea(h).$box.parent();setTimeout(function(){$.removeClass("w-e-full-screen-container"),h.isFullScreen=!1,h.emit("unFullScreen")},200)}},h.getEditableContainer=function(){return A.getTextarea(h).$textAreaContainer[0]},h}(jG(gI()))))))));if(n&&function(y,h){return $C(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=gx(OD),$={},w=y.MENU_CONF,x=w===void 0?{}:w;return p1(h,function(S,C){$[C]=Wn(Wn({},S),x[C]||{})}),delete y.MENU_CONF,Wn({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:$,hoverbarKeys:{},customAlert:function(S,C){window.alert(C+`: `+S)}},y)}(i);vD.set(l,c);var f=c.hoverbarKeys,d=f===void 0?{}:f;if(s.forEach(function(y){l=y(l)}),a!=null&&(l.children=wC(l,a)),o&&o.length&&(l.children=o),l.children.length===0&&(l.children=[{type:"paragraph",children:[{text:""}]}]),A.normalizeContent(l),n){var p=new $q(n);ey.set(l,p),ty.set(p,l),p.changeViewState(),qn(function(){var y=p.$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(d).length>0&&(m=new Bq,ry.set(m,l),th.set(l,m)),l.on("change",function(){l.hidePanelOrModal()}),l.on("scroll",function(){l.hidePanelOrModal()})}else l.children.forEach(function(y,h){return GC(y,h,l,l)});var v=c.onCreated,g=c.onDestroyed;return v&&l.on("created",function(){return v(l)}),g&&l.on("destroyed",function(){return g(l)}),qn(function(){return l.emit("created")}),l}var Tq=Up("splice"),kq=G.TypeError,Pq=Math.max,_q=Math.min;ut({target:"Array",proto:!0,forced:!Tq},{splice:function(e,t){var n,r,i,o,a,u,s=Ii(this),l=sa(s),c=Nu(e,l),f=arguments.length;if(f===0?n=r=0:f===1?(n=0,r=l-c):(n=f-2,r=_q(Pq(Il(t),0),l-c)),l+n-r>9007199254740991)throw kq("Maximum allowed length exceeded");for(i=pS(s,r),o=0;ol-r+n;o--)delete s[o-1]}else if(n>r)for(o=l-r;o>c;o--)u=o+n-1,(a=o+r-1)in s?s[u]=s[a]:delete s[u];for(o=0;o'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=hx(function(){r.toolbarItems.forEach(function(a){a.changeMenuState()})},200),this.config=n;var i=O(t);if(i.length===0)throw new Error("Cannot find toolbar DOM by selector '"+t+"'");this.$box=i;var o=this.$toolbar;o.on("mousedown",function(a){return a.preventDefault()}),i.append(o),qn(function(){r.registerItems(),r.changeToolbarState(),r.getEditorInstance().on("change",r.changeToolbarState)})}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.registerItems=function(){var t=this,n="",r=this.$toolbar,i=this.config,o=i.toolbarKeys,a=o===void 0?[]:o,u=i.insertKeys,s=u===void 0?{index:0,keys:[]}:u,l=i.excludeKeys,c=l===void 0?[]:l,f=gx(a);s.keys.length>0&&(typeof s.keys=="string"&&(s.keys=[s.keys]),s.keys.forEach(function(m,v){f.splice(s.index+v,0,m)}));var d=f.filter(function(m){if(typeof m=="string"){if(c.includes(m))return!1}else if(c.includes(m.key))return!1;return!0}),p=d.length;d.forEach(function(m,v){if(m==="|"){if(v===0||v+1===p||n==="|")return;var g=zC();return r.append(g),void(n=m)}if(typeof m=="string")return t.registerSingleItem(m,t),void(n=m);t.registerGroup(m),n="group"})},e.prototype.registerGroup=function(t){var n=this,r=this.$toolbar,i=function(l){return new UC(l)}(t),o=t.menuKeys,a=o===void 0?[]:o,u=this.config.excludeKeys,s=u===void 0?[]:u;a.forEach(function(l){s.includes(l)||n.registerSingleItem(l,i)}),r.append(i.$elem)},e.prototype.registerSingleItem=function(t,n){var r=this.getEditorInstance(),i=n instanceof UC,o=this.menus,a=o[t];if(a==null){var u=tc[t];if(u==null)throw new Error("Not found menu item factory by key '"+t+"'");if(typeof u!="function")throw new Error("Menu item factory (key='"+t+"') is not a function");a=u(),o[t]=a}else console.warn("Duplicated toolbar menu key '"+t+`' \u91CD\u590D\u6CE8\u518C\u4E86\u83DC\u5355\u680F menu '`+t+"'");var s=WC(t,a,i);this.toolbarItems.push(s),iy.set(s,r),i?n.appendBarItem(s):n.$toolbar.append(s.$elem)},e.prototype.getEditorInstance=function(){var t=ny.get(this);if(t==null)throw new Error("Can not get editor instance");return t},e.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},e}();function Iq(e,t){if(e==null)throw new Error("Cannot create toolbar, because editor is null");var n=t.selector,r=t.config,i=r===void 0?{}:r;if(function(u,s){return $C(u,"data-w-e-toolbar",s)}(e,n))throw new Error("Repeated create toolbar by selector '"+n+"'");var o=Wn({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},i||{}),a=new Nq(n,o);return ny.set(a,e),eh.set(e,a),a}var jq=ku.EXISTS,Rq=cr.f,qC=Function.prototype,Lq=ie(qC.toString),KC=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Mq=ie(KC.exec);function YC(e){var t=e.server,n=t===void 0?"":t,r=e.fieldName,i=r===void 0?"":r,o=e.maxFileSize,a=o===void 0?10485760:o,u=e.maxNumberOfFiles,s=u===void 0?100:u,l=e.meta,c=l===void 0?{}:l,f=e.metaWithUrl,d=f!==void 0&&f,p=e.headers,m=p===void 0?{}:p,v=e.withCredentials,g=v!==void 0&&v,y=e.timeout,h=y===void 0?1e4:y,$=e.onBeforeUpload,w=$===void 0?function(Q){return Q}:$,x=e.onSuccess,S=x===void 0?function(Q,le){}:x,C=e.onError,N=C===void 0?function(Q,le,te){console.error(Q.name+" upload error",le,te)}:C,R=e.onProgress,U=R===void 0?function(Q){}:R;if(!n)throw new Error(`Cannot get upload server address \u6CA1\u6709\u914D\u7F6E\u4E0A\u4F20\u5730\u5740`);if(!i)throw new Error(`Cannot get fieldName \u6CA1\u6709\u914D\u7F6E fieldName`);var W=n;d&&(W=function(Q,le){var te=ke(Q.split("#"),2),ue=te[0],he=te[1],Ie=[];p1(le,function(oe,Le){Ie.push(Le+"="+oe)});var ye=Ie.join("&");return ue=ue.indexOf("?")>0?ue+"&"+ye:ue+"?"+ye,he?ue+"#"+he:ue}(W,c));var Z=new Sl({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(GH,{endpoint:W,headers:m,formData:!0,fieldName:i,bundle:!0,withCredentials:g,timeout:h});return Z.on("upload-success",function(Q,le){var te=le.body,ue=te===void 0?{}:te;try{S(Q,ue)}catch(he){console.error("wangEditor upload file - onSuccess error",he)}Z.removeFile(Q.id)}),Z.on("progress",function(Q){Q<1||U(Q)}),Z.on("upload-error",function(Q,le,te){try{N(Q,le,te)}catch(ue){console.error("wangEditor upload file - onError error",ue)}Z.removeFile(Q.id)}),Z.on("restriction-failed",function(Q,le){try{N(Q,le)}catch(te){console.error("wangEditor upload file - onError error",te)}Z.removeFile(Q.id)}),Z}function Ui(e){return Ui=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ui(e)}function zq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bt(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};li(this,e),this.init(t,n)}return ci(e,[{key:"init",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||Hq,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(t){this.debug=t}},{key:"log",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r1?n-1:0),i=1;i-1?u.replace(/###/g,"."):u}function i(){return!e||typeof e=="string"}for(var o=typeof t!="string"?[].concat(t):t.split(".");o.length>1;){if(i())return{};var a=r(o.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return i()?{}:{obj:e,k:r(o.shift())}}function ZC(e,t,n){var r=a2(e,t,Object);r.obj[r.k]=n}function vh(e,t){var n=a2(e,t),r=n.obj,i=n.k;if(r)return r[i]}function QC(e,t,n){var r=vh(e,n);return r!==void 0?r:vh(t,n)}function eA(e,t,n){for(var r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):eA(e[r],t[r],n):e[r]=t[r]);return e}function ts(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Vq={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function Wq(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return Vq[t]}):e}var mh=typeof window!="undefined"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function tA(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),i=e,o=0;oo+a;)a++,s=i[u=r.slice(o,o+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(o+a).join(n);return l?tA(s,l,n):void 0}i=i[r[o]]}return i}}var Gq=function(e){function t(n){var r,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return li(this,t),r=fc(this,es(t).call(this)),mh&&Vi.call(va(r)),r.data=n||{},r.options=i,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.options.ignoreJSONStructure===void 0&&(r.options.ignoreJSONStructure=!0),r}return gh(t,Vi),ci(t,[{key:"addNamespaces",value:function(n){this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}},{key:"removeNamespaces",value:function(n){var r=this.options.ns.indexOf(n);r>-1&&this.options.ns.splice(r,1)}},{key:"getResource",value:function(n,r,i){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,u=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure,s=[n,r];i&&typeof i!="string"&&(s=s.concat(i)),i&&typeof i=="string"&&(s=s.concat(a?i.split(a):i)),n.indexOf(".")>-1&&(s=n.split("."));var l=vh(this.data,s);return l||!u||typeof i!="string"?l:tA(this.data&&this.data[n]&&this.data[n][r],i,a)}},{key:"addResource",value:function(n,r,i,o){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];i&&(s=s.concat(u?i.split(u):i)),n.indexOf(".")>-1&&(o=r,r=(s=n.split("."))[1]),this.addNamespaces(r),ZC(this.data,s,o),a.silent||this.emit("added",n,r,i,o)}},{key:"addResources",value:function(n,r,i){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var a in i)typeof i[a]!="string"&&Object.prototype.toString.apply(i[a])!=="[object Array]"||this.addResource(n,r,a,i[a],{silent:!0});o.silent||this.emit("added",n,r,i)}},{key:"addResourceBundle",value:function(n,r,i,o,a){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},s=[n,r];n.indexOf(".")>-1&&(o=i,i=r,r=(s=n.split("."))[1]),this.addNamespaces(r);var l=vh(this.data,s)||{};o?eA(l,i,a):l=Bt({},l,i),ZC(this.data,s,l),u.silent||this.emit("added",n,r,i)}},{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"?Bt({},{},this.getResource(n,r)):this.getResource(n,r)}},{key:"getDataByLanguage",value:function(n){return this.data[n]}},{key:"toJSON",value:function(){return this.data}}]),t}(),nA={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,i){var o=this;return e.forEach(function(a){o.processors[a]&&(t=o.processors[a].process(t,n,r,i))}),t}},rA={},iA=function(e){function t(n){var r,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return li(this,t),r=fc(this,es(t).call(this)),mh&&Vi.call(va(r)),Uq(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,va(r)),r.options=i,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.logger=fi.create("translator"),r}return gh(t,Vi),ci(t,[{key:"changeLanguage",value:function(n){n&&(this.language=n)}},{key:"exists",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(n==null)return!1;var i=this.resolve(n,r);return i&&i.res!==void 0}},{key:"extractFromKey",value:function(n,r){var i=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");var o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,a=r.ns||this.options.defaultNS;if(i&&n.indexOf(i)>-1){var u=n.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:n,namespaces:a};var s=n.split(i);(i!==o||i===o&&this.options.ns.indexOf(s[0])>-1)&&(a=s.shift()),n=s.join(o)}return typeof a=="string"&&(a=[a]),{key:n,namespaces:a}}},{key:"translate",value:function(n,r,i){var o=this;if(Ui(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,d=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&f.toLowerCase()==="cimode"){if(d){var p=r.nsSeparator||this.options.nsSeparator;return c+p+s}return s}var m=this.resolve(n,r),v=m&&m.res,g=m&&m.usedKey||s,y=m&&m.exactUsedKey||s,h=Object.prototype.toString.apply(v),$=["[object Number]","[object Function]","[object RegExp]"],w=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,x=!this.i18nFormat||this.i18nFormat.handleAsObject,S=typeof v!="string"&&typeof v!="boolean"&&typeof v!="number";if(x&&v&&S&&$.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(g,v,Bt({},r,{ns:l})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(a){var C=h==="[object Array]",N=C?[]:{},R=C?y:g;for(var U in v)if(Object.prototype.hasOwnProperty.call(v,U)){var W="".concat(R).concat(a).concat(U);N[U]=this.translate(W,Bt({},r,{joinArrays:!1,ns:l})),N[U]===W&&(N[U]=v[U])}v=N}}else if(x&&typeof w=="string"&&h==="[object Array]")(v=v.join(w))&&(v=this.extendTranslation(v,n,r,i));else{var Z=!1,Q=!1,le=r.count!==void 0&&typeof r.count!="string",te=t.hasDefaultValue(r),ue=le?this.pluralResolver.getSuffix(f,r.count):"",he=r["defaultValue".concat(ue)]||r.defaultValue;!this.isValidLookup(v)&&te&&(Z=!0,v=he),this.isValidLookup(v)||(Q=!0,v=s);var Ie=r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,ye=Ie&&Q?void 0:v,oe=te&&he!==v&&this.options.updateMissing;if(Q||Z||oe){if(this.logger.log(oe?"updateKey":"missingKey",f,c,s,oe?he:v),a){var Le=this.resolve(s,Bt({},r,{keySeparator:!1}));Le&&Le.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 T=[],F=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&F&&F[0])for(var k=0;k1&&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),d=f.key;i=d;var p=f.namespaces;s.options.fallbackNS&&(p=p.concat(s.options.fallbackNS));var m=l.count!==void 0&&typeof l.count!="string",v=l.context!==void 0&&(typeof l.context=="string"||typeof l.context=="number")&&l.context!=="",g=l.lngs?l.lngs:s.languageUtils.toResolveHierarchy(l.lng||s.language,l.fallbackLng);p.forEach(function(y){s.isValidLookup(r)||(u=y,!rA["".concat(g[0],"-").concat(y)]&&s.utils&&s.utils.hasLoadedNamespace&&!s.utils.hasLoadedNamespace(u)&&(rA["".concat(g[0],"-").concat(y)]=!0,s.logger.warn('key "'.concat(i,'" for languages "').concat(g.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!!!")),g.forEach(function(h){if(!s.isValidLookup(r)){a=h;var $,w,x=d,S=[x];for(s.i18nFormat&&s.i18nFormat.addLookupKeys?s.i18nFormat.addLookupKeys(S,d,h,y,l):(m&&($=s.pluralResolver.getSuffix(h,l.count)),m&&v&&S.push(x+$),v&&S.push(x+="".concat(s.options.contextSeparator).concat(l.context)),m&&S.push(x+=$));w=S.pop();)s.isValidLookup(r)||(o=w,r=s.getResource(h,y,w,l))}}))})}}),{res:r,usedKey:i,exactUsedKey:o,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,i){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(n,r,i,o):this.resourceStore.getResource(n,r,i,o)}}],[{key:"hasDefaultValue",value:function(n){var r="defaultValue";for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&r===i.substring(0,r.length)&&n[i]!==void 0)return!0;return!1}}]),t}();function u2(e){return e.charAt(0).toUpperCase()+e.slice(1)}var qq=function(){function e(t){li(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=fi.create("languageUtils")}return ci(e,[{key:"getScriptPartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return null;var n=t.split("-");return n.length===2?null:(n.pop(),n[n.length-1].toLowerCase()==="x"?null:this.formatLanguageCode(n.join("-")))}},{key:"getLanguagePartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return t;var n=t.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function(t){if(typeof t=="string"&&t.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],r=t.split("-");return this.options.lowerCaseLng?r=r.map(function(i){return i.toLowerCase()}):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=u2(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]=u2(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=u2(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}},{key:"isWhitelisted",value:function(t){return this.logger.deprecate("languageUtils.isWhitelisted",`function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it's usage asap.`),this.isSupportedCode(t)}},{key:"isSupportedCode",value:function(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}},{key:"getBestMatchFromCodes",value:function(t){var n,r=this;return t?(t.forEach(function(i){if(!n){var o=r.formatLanguageCode(i);r.options.supportedLngs&&!r.isSupportedCode(o)||(n=o)}}),!n&&this.options.supportedLngs&&t.forEach(function(i){if(!n){var o=r.getLanguagePartFromCode(i);if(r.isSupportedCode(o))return n=o;n=r.options.supportedLngs.find(function(a){if(a.indexOf(o)===0)return a})}}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n):null}},{key:"getFallbackCodes",value:function(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!n)return t.default||[];var r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}},{key:"toResolveHierarchy",value:function(t,n){var r=this,i=this.getFallbackCodes(n||this.options.fallbackLng||[],t),o=[],a=function(u){u&&(r.isSupportedCode(u)?o.push(u):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(u)))};return typeof t=="string"&&t.indexOf("-")>-1?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):typeof t=="string"&&a(this.formatLanguageCode(t)),i.forEach(function(u){o.indexOf(u)<0&&a(r.formatLanguageCode(u))}),o}}]),e}(),Kq=[{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}],Yq={1:function(e){return Number(e>1)},2:function(e){return Number(e!=1)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(e==1?0:e>=2&&e<=4?1:2)},7:function(e){return Number(e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(e==1?0:e==2?1:e!=8&&e!=11?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(e==1?0:e==2?1:e<7?2:e<11?3:4)},11:function(e){return Number(e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(e!==0)},14:function(e){return Number(e==1?0:e==2?1:e==3?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:e!==0?1:2)},17:function(e){return Number(e==1||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(e==0?0:e==1?1:2)},19:function(e){return Number(e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(e==1?0:e==0||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3)}};function Xq(){var e={};return Kq.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:Yq[t.fc]}})}),e}var Jq=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};li(this,e),this.languageUtils=t,this.options=n,this.logger=fi.create("pluralResolver"),this.rules=Xq()}return ci(e,[{key:"addRule",value:function(t,n){this.rules[t]=n}},{key:"getRule",value:function(t){return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}},{key:"needsPlural",value:function(t){var n=this.getRule(t);return n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(t,n){return this.getSuffixes(t).map(function(r){return n+r})}},{key:"getSuffixes",value:function(t){var n=this,r=this.getRule(t);return r?r.numbers.map(function(i){return n.getSuffix(t,i)}):[]}},{key:"getSuffix",value:function(t,n){var r=this,i=this.getRule(t);if(i){var o=i.noAbs?i.plurals(n):i.plurals(Math.abs(n)),a=i.numbers[o];this.options.simplifyPluralSuffix&&i.numbers.length===2&&i.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&&i.numbers.length===2&&i.numbers[0]===1?u():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(t)),""}}]),e}(),Zq=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};li(this,e),this.logger=fi.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return ci(e,[{key:"init",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});var n=t.interpolation;this.escape=n.escape!==void 0?n.escape:Wq,this.escapeValue=n.escapeValue===void 0||n.escapeValue,this.useRawValueToEscape=n.useRawValueToEscape!==void 0&&n.useRawValueToEscape,this.prefix=n.prefix?ts(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?ts(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?ts(n.nestingPrefix):n.nestingPrefixEscaped||ts("$t("),this.nestingSuffix=n.nestingSuffix?ts(n.nestingSuffix):n.nestingSuffixEscaped||ts(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0&&n.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var t="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(t,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function(t,n,r,i){var o,a,u,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(v){return v.replace(/\$/g,"$$$$")}var f=function(v){if(v.indexOf(s.formatSeparator)<0){var g=QC(n,l,v);return s.alwaysFormat?s.format(g,void 0,r,Bt({},i,n,{interpolationkey:v})):g}var y=v.split(s.formatSeparator),h=y.shift().trim(),$=y.join(s.formatSeparator).trim();return s.format(QC(n,l,h),$,r,Bt({},i,n,{interpolationkey:h}))};this.resetRegExp();var d=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,p=i&&i.interpolation&&i.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,m=[{regex:this.regexpUnescape,safeValue:function(v){return c(v)}},{regex:this.regexp,safeValue:function(v){return s.escapeValue?c(s.escape(v)):c(v)}}];return m.forEach(function(v){for(u=0;o=v.regex.exec(t);){if((a=f(o[1].trim()))===void 0)if(typeof d=="function"){var g=d(t,o,i);a=typeof g=="string"?g:""}else{if(p){a=o[0];continue}s.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(t)),a=""}else typeof a=="string"||s.useRawValueToEscape||(a=JC(a));var y=v.safeValue(a);if(t=t.replace(o[0],y),p?(v.regex.lastIndex+=y.length,v.regex.lastIndex-=o[0].length):v.regex.lastIndex=0,++u>=s.maxReplaces)break}}),t}},{key:"nest",value:function(t,n){var r,i,o=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=Bt({},a);function s(d,p){var m=this.nestingOptionsSeparator;if(d.indexOf(m)<0)return d;var v=d.split(new RegExp("".concat(m,"[ ]*{"))),g="{".concat(v[1]);d=v[0],g=(g=this.interpolate(g,u)).replace(/'/g,'"');try{u=JSON.parse(g),p&&(u=Bt({},p,u))}catch(y){return this.logger.warn("failed parsing options string in nesting for key ".concat(d),y),"".concat(d).concat(m).concat(g)}return delete u.defaultValue,d}for(u.applyPostProcessor=!1,delete u.defaultValue;r=this.nestingRegexp.exec(t);){var l=[],c=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){var f=r[1].split(this.formatSeparator).map(function(d){return d.trim()});r[1]=f.shift(),l=f,c=!0}if((i=n(s.call(this,r[1].trim(),u),u))&&r[0]===t&&typeof i!="string")return i;typeof i!="string"&&(i=JC(i)),i||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(t)),i=""),c&&(i=l.reduce(function(d,p){return o.format(d,p,a.lng,Bt({},a,{interpolationkey:r[1].trim()}))},i.trim())),t=t.replace(r[0],i),this.regexp.lastIndex=0}return t}}]),e}(),Qq=function(e){function t(n,r,i){var o,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return li(this,t),o=fc(this,es(t).call(this)),mh&&Vi.call(va(o)),o.backend=n,o.store=r,o.services=i,o.languageUtils=i.languageUtils,o.options=a,o.logger=fi.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(i,a.backend,a),o}return gh(t,Vi),ci(t,[{key:"queueLoad",value:function(n,r,i,o){var a=this,u=[],s=[],l=[],c=[];return n.forEach(function(f){var d=!0;r.forEach(function(p){var m="".concat(f,"|").concat(p);!i.reload&&a.store.hasResourceBundle(f,p)?a.state[m]=2:a.state[m]<0||(a.state[m]===1?s.indexOf(m)<0&&s.push(m):(a.state[m]=1,d=!1,s.indexOf(m)<0&&s.push(m),u.indexOf(m)<0&&u.push(m),c.indexOf(p)<0&&c.push(p)))}),d||l.push(f)}),(u.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:o}),{toLoad:u,pending:s,toLoadLanguages:l,toLoadNamespaces:c}}},{key:"loaded",value:function(n,r,i){var o=n.split("|"),a=o[0],u=o[1];r&&this.emit("failedLoading",a,u,r),i&&this.store.addResourceBundle(a,u,i),this.state[n]=r?-1:2;var s={};this.queue.forEach(function(l){(function(c,f,d,p){var m=a2(c,f,Object),v=m.obj,g=m.k;v[g]=v[g]||[],p&&(v[g]=v[g].concat(d)),p||v[g].push(d)})(l.loaded,[a],u),function(c,f){for(var d=c.indexOf(f);d!==-1;)c.splice(d,1),d=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,i){var o=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[i](n,r,function(l,c){l&&c&&a<5?setTimeout(function(){o.read.call(o,n,r,i,a+1,2*u,s)},u):s(l,c)}):s(null,{})}},{key:"prepareLoading",value:function(n,r){var i=this,o=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,o,a);if(!u.toLoad.length)return u.pending.length||a(),null;u.toLoad.forEach(function(s){i.loadOne(s)})}},{key:"load",value:function(n,r,i){this.prepareLoading(n,r,{},i)}},{key:"reload",value:function(n,r,i){this.prepareLoading(n,r,{reload:!0},i)}},{key:"loadOne",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=n.split("|"),a=o[0],u=o[1];this.read(a,u,"read",void 0,void 0,function(s,l){s&&r.logger.warn("".concat(i,"loading namespace ").concat(u," for language ").concat(a," failed"),s),!s&&l&&r.logger.log("".concat(i,"loaded namespace ").concat(u," for language ").concat(a),l),r.loaded(n,s,l)})}},{key:"saveMissing",value:function(n,r,i,o,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(i,'" 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!!!"):i!=null&&i!==""&&(this.backend&&this.backend.create&&this.backend.create(n,r,i,o,null,Bt({},u,{isUpdate:a})),n&&n[0]&&this.store.addResource(n[0],r,i,o))}}]),t}();function eK(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if(Ui(e[1])==="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),Ui(e[2])==="object"||Ui(e[3])==="object"){var n=e[3]||e[2];Object.keys(n).forEach(function(r){t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function oA(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function yh(){}var tK=function(e){function t(){var n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(li(this,t),n=fc(this,es(t).call(this)),mh&&Vi.call(va(n)),n.options=oA(r),n.services={},n.logger=fi,n.modules={external:[]},i&&!n.isInitialized&&!r.isClone){if(!n.options.initImmediate)return n.init(r,i),fc(n,va(n));setTimeout(function(){n.init(r,i)},0)}return n}return gh(t,Vi),ci(t,[{key:"init",value:function(){var n=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;function o(p){return p?typeof p=="function"?new p:p:null}if(typeof r=="function"&&(i=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=Bt({},eK(),this.options,oA(r)),this.format=this.options.interpolation.format,i||(i=yh),!this.options.isClone){this.modules.logger?fi.init(o(this.modules.logger),this.options):fi.init(null,this.options);var a=new qq(this.options);this.store=new Gq(this.options.resources,this.options);var u=this.services;u.logger=fi,u.resourceStore=this.store,u.languageUtils=a,u.pluralResolver=new Jq(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u.interpolator=new Zq(this.options),u.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},u.backendConnector=new Qq(o(this.modules.backend),u.resourceStore,u,this.options),u.backendConnector.on("*",function(p){for(var m=arguments.length,v=new Array(m>1?m-1:0),g=1;g1?m-1:0),g=1;g0&&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(p){n[p]=function(){var m;return(m=n.store)[p].apply(m,arguments)}});var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach(function(p){n[p]=function(){var m;return(m=n.store)[p].apply(m,arguments),n}});var f=dc(),d=function(){var p=function(m,v){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(v),i(m,v)};if(n.languages&&n.options.compatibilityAPI!=="v1"&&!n.isInitialized)return p(null,n.t.bind(n));n.changeLanguage(n.options.lng,p)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),f}},{key:"loadResources",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:yh,o=i,a=typeof n=="string"?n:this.language;if(typeof n=="function"&&(o=n),!this.options.resources||this.options.partialBundledLanguages){if(a&&a.toLowerCase()==="cimode")return o();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,o)}else o(null)}},{key:"reloadResources",value:function(n,r,i){var o=dc();return n||(n=this.languages),r||(r=this.options.ns),i||(i=yh),this.services.backendConnector.reload(n,r,function(a){o.resolve(),i(a)}),o}},{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"&&nA.addPostProcessor(n),n.type==="3rdParty"&&this.modules.external.push(n),this}},{key:"changeLanguage",value:function(n,r){var i=this;this.isLanguageChangingTo=n;var o=dc();this.emit("languageChanging",n);var a=function(u){n||u||!i.services.languageDetector||(u=[]);var s=typeof u=="string"?u:i.services.languageUtils.getBestMatchFromCodes(u);s&&(i.language||(i.language=s,i.languages=i.services.languageUtils.toResolveHierarchy(s)),i.translator.language||i.translator.changeLanguage(s),i.services.languageDetector&&i.services.languageDetector.cacheUserLanguage(s)),i.loadResources(s,function(l){(function(c,f){f?(i.language=f,i.languages=i.services.languageUtils.toResolveHierarchy(f),i.translator.changeLanguage(f),i.isLanguageChangingTo=void 0,i.emit("languageChanged",f),i.logger.log("languageChanged",f)):i.isLanguageChangingTo=void 0,o.resolve(function(){return i.t.apply(i,arguments)}),r&&r(c,function(){return i.t.apply(i,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()),o}},{key:"getFixedT",value:function(n,r,i){var o=this,a=function u(s,l){var c;if(Ui(l)!=="object"){for(var f=arguments.length,d=new Array(f>2?f-2:0),p=2;p1&&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 o=this.languages[0],a=!!this.options&&this.options.fallbackLng,u=this.languages[this.languages.length-1];if(o.toLowerCase()==="cimode")return!0;var s=function(c,f){var d=r.services.backendConnector.state["".concat(c,"|").concat(f)];return d===-1||d===2};if(i.precheck){var l=i.precheck(this,s);if(l!==void 0)return l}return!!this.hasResourceBundle(o,n)||!this.services.backendConnector.backend||!(!s(o,n)||a&&!s(u,n))}},{key:"loadNamespaces",value:function(n,r){var i=this,o=dc();return this.options.ns?(typeof n=="string"&&(n=[n]),n.forEach(function(a){i.options.ns.indexOf(a)<0&&i.options.ns.push(a)}),this.loadResources(function(a){o.resolve(),r&&r(a)}),o):(r&&r(),Promise.resolve())}},{key:"loadLanguages",value:function(n,r){var i=dc();typeof n=="string"&&(n=[n]);var o=this.options.preload||[],a=n.filter(function(u){return o.indexOf(u)<0});return a.length?(this.options.preload=o.concat(a),this.loadResources(function(u){i.resolve(),r&&r(u)}),i):(r&&r(),Promise.resolve())}},{key:"dir",value:function(n){return n||(n=this.languages&&this.languages.length>0?this.languages[0]:this.language),n?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(n))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new t(n,r)}},{key:"cloneInstance",value:function(){var n=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:yh,o=Bt({},this.options,r,{isClone:!0}),a=new t(o),u=["store","services","language"];return u.forEach(function(s){a[s]=n[s]}),a.services=Bt({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new iA(a.services,a.options),a.translator.on("*",function(s){for(var l=arguments.length,c=new Array(l>1?l-1:0),f=1;f

    ":"

    "+t+"

    "}},bh=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof Be.g!="undefined"?Be.g:typeof self!="undefined"?self:{};function aK(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function $h(e){var t={exports:{}};return e(t,t.exports),t.exports}var Wi,wh,Eh=function(e){return e&&e.Math==Math&&e},me=Eh(typeof globalThis=="object"&&globalThis)||Eh(typeof window=="object"&&window)||Eh(typeof self=="object"&&self)||Eh(typeof bh=="object"&&bh)||function(){return this}()||Function("return this")(),lt=function(e){try{return!!e()}catch(t){return!0}},hr=!lt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),pc=Function.prototype.call,vt=pc.bind?pc.bind(pc):function(){return pc.apply(pc,arguments)},uA={}.propertyIsEnumerable,sA=Object.getOwnPropertyDescriptor,uK=sA&&!uA.call({1:2},1)?function(e){var t=sA(this,e);return!!t&&t.enumerable}:uA,lA={f:uK},s2=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},cA=Function.prototype,l2=cA.bind,c2=cA.call,sK=l2&&l2.bind(c2),ce=l2?function(e){return e&&sK(c2,e)}:function(e){return e&&function(){return c2.apply(e,arguments)}},lK=ce({}.toString),cK=ce("".slice),Gi=function(e){return cK(lK(e),8,-1)},f2=me.Object,fK=ce("".split),xh=lt(function(){return!f2("z").propertyIsEnumerable(0)})?function(e){return Gi(e)=="String"?fK(e,""):f2(e)}:f2,dK=me.TypeError,Yn=function(e){if(e==null)throw dK("Can't call method on "+e);return e},rs=function(e){return xh(Yn(e))},Kt=function(e){return typeof e=="function"},Xn=function(e){return typeof e=="object"?e!==null:Kt(e)},pK=function(e){return Kt(e)?e:void 0},hc=function(e,t){return arguments.length<2?pK(me[e]):me[e]&&me[e][t]},fA=ce({}.isPrototypeOf),d2=hc("navigator","userAgent")||"",dA=me.process,pA=me.Deno,hA=dA&&dA.versions||pA&&pA.version,gA=hA&&hA.v8;gA&&(wh=(Wi=gA.split("."))[0]>0&&Wi[0]<4?1:+(Wi[0]+Wi[1])),!wh&&d2&&(!(Wi=d2.match(/Edge\/(\d+)/))||Wi[1]>=74)&&(Wi=d2.match(/Chrome\/(\d+)/))&&(wh=+Wi[1]);var p2=wh,h2=!!Object.getOwnPropertySymbols&&!lt(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&p2&&p2<41}),g2=h2&&!Symbol.sham&&typeof Symbol.iterator=="symbol",hK=me.Object,v2=g2?function(e){return typeof e=="symbol"}:function(e){var t=hc("Symbol");return Kt(t)&&fA(t.prototype,hK(e))},gK=me.String,vA=function(e){try{return gK(e)}catch(t){return"Object"}},vK=me.TypeError,mA=function(e){if(Kt(e))return e;throw vK(vA(e)+" is not a function")},Sh=function(e,t){var n=e[t];return n==null?void 0:mA(n)},mK=me.TypeError,yK=Object.defineProperty,m2=function(e,t){try{yK(me,e,{value:t,configurable:!0,writable:!0})}catch(n){me[e]=t}return t},qi=me["__core-js_shared__"]||m2("__core-js_shared__",{}),y2=$h(function(e){(e.exports=function(t,n){return qi[t]||(qi[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),bK=me.Object,gc=function(e){return bK(Yn(e))},$K=ce({}.hasOwnProperty),Jn=Object.hasOwn||function(e,t){return $K(gc(e),t)},wK=0,EK=Math.random(),xK=ce(1 .toString),yA=function(e){return"Symbol("+(e===void 0?"":e)+")_"+xK(++wK+EK,36)},vc=y2("wks"),ma=me.Symbol,bA=ma&&ma.for,SK=g2?ma:ma&&ma.withoutSetter||yA,On=function(e){if(!Jn(vc,e)||!h2&&typeof vc[e]!="string"){var t="Symbol."+e;h2&&Jn(ma,e)?vc[e]=ma[e]:vc[e]=g2&&bA?bA(t):SK(t)}return vc[e]},DK=me.TypeError,CK=On("toPrimitive"),AK=function(e,t){if(!Xn(e)||v2(e))return e;var n,r=Sh(e,CK);if(r){if(t===void 0&&(t="default"),n=vt(r,e,t),!Xn(n)||v2(n))return n;throw DK("Can't convert object to primitive value")}return t===void 0&&(t="number"),function(i,o){var a,u;if(o==="string"&&Kt(a=i.toString)&&!Xn(u=vt(a,i))||Kt(a=i.valueOf)&&!Xn(u=vt(a,i))||o!=="string"&&Kt(a=i.toString)&&!Xn(u=vt(a,i)))return u;throw mK("Can't convert object to primitive value")}(e,t)},b2=function(e){var t=AK(e,"string");return v2(t)?t:t+""},$2=me.document,OK=Xn($2)&&Xn($2.createElement),w2=function(e){return OK?$2.createElement(e):{}},$A=!hr&&!lt(function(){return Object.defineProperty(w2("div"),"a",{get:function(){return 7}}).a!=7}),wA=Object.getOwnPropertyDescriptor,E2={f:hr?wA:function(e,t){if(e=rs(e),t=b2(t),$A)try{return wA(e,t)}catch(n){}if(Jn(e,t))return s2(!vt(lA.f,e,t),e[t])}},BK=me.String,FK=me.TypeError,Bn=function(e){if(Xn(e))return e;throw FK(BK(e)+" is not an object")},TK=me.TypeError,EA=Object.defineProperty,is={f:hr?EA:function(e,t,n){if(Bn(e),t=b2(t),Bn(n),$A)try{return EA(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TK("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},os=hr?function(e,t,n){return is.f(e,t,s2(1,n))}:function(e,t,n){return e[t]=n,e},kK=ce(Function.toString);Kt(qi.inspectSource)||(qi.inspectSource=function(e){return kK(e)});var Dh,mc,Ch,x2=qi.inspectSource,xA=me.WeakMap,PK=Kt(xA)&&/native code/.test(x2(xA)),SA=y2("keys"),DA=function(e){return SA[e]||(SA[e]=yA(e))},S2={},D2=me.TypeError,_K=me.WeakMap;if(PK||qi.state){var ya=qi.state||(qi.state=new _K),NK=ce(ya.get),CA=ce(ya.has),IK=ce(ya.set);Dh=function(e,t){if(CA(ya,e))throw new D2("Object already initialized");return t.facade=e,IK(ya,e,t),t},mc=function(e){return NK(ya,e)||{}},Ch=function(e){return CA(ya,e)}}else{var as=DA("state");S2[as]=!0,Dh=function(e,t){if(Jn(e,as))throw new D2("Object already initialized");return t.facade=e,os(e,as,t),t},mc=function(e){return Jn(e,as)?e[as]:{}},Ch=function(e){return Jn(e,as)}}var C2={set:Dh,get:mc,has:Ch,enforce:function(e){return Ch(e)?mc(e):Dh(e,{})},getterFor:function(e){return function(t){var n;if(!Xn(t)||(n=mc(t)).type!==e)throw D2("Incompatible receiver, "+e+" required");return n}}},AA=Function.prototype,jK=hr&&Object.getOwnPropertyDescriptor,A2=Jn(AA,"name"),Ah={EXISTS:A2,PROPER:A2&&function(){}.name==="something",CONFIGURABLE:A2&&(!hr||hr&&jK(AA,"name").configurable)},yc=$h(function(e){var t=Ah.CONFIGURABLE,n=C2.get,r=C2.enforce,i=String(String).split("String");(e.exports=function(o,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;Kt(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Jn(u,"name")||t&&u.name!==p)&&os(u,"name",p),(l=r(u)).source||(l.source=i.join(typeof p=="string"?p:""))),o!==me?(c?!d&&o[a]&&(f=!0):delete o[a],f?o[a]=u:os(o,a,u)):f?o[a]=u:m2(a,u)})(Function.prototype,"toString",function(){return Kt(this)&&n(this).source||x2(this)})}),RK=Math.ceil,LK=Math.floor,us=function(e){var t=+e;return t!=t||t===0?0:(t>0?LK:RK)(t)},MK=Math.max,zK=Math.min,bc=function(e,t){var n=us(e);return n<0?MK(n+t,0):zK(n,t)},HK=Math.min,$c=function(e){return e>0?HK(us(e),9007199254740991):0},Oh=function(e){return $c(e.length)},OA=function(e){return function(t,n,r){var i,o=rs(t),a=Oh(o),u=bc(r,a);if(e&&n!=n){for(;a>u;)if((i=o[u++])!=i)return!0}else for(;a>u;u++)if((e||u in o)&&o[u]===n)return e||u||0;return!e&&-1}},BA={includes:OA(!0),indexOf:OA(!1)},UK=BA.indexOf,FA=ce([].push),TA=function(e,t){var n,r=rs(e),i=0,o=[];for(n in r)!Jn(S2,n)&&Jn(r,n)&&FA(o,n);for(;t.length>i;)Jn(r,n=t[i++])&&(~UK(o,n)||FA(o,n));return o},Bh=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],VK=Bh.concat("length","prototype"),WK={f:Object.getOwnPropertyNames||function(e){return TA(e,VK)}},kA={f:Object.getOwnPropertySymbols},GK=ce([].concat),qK=hc("Reflect","ownKeys")||function(e){var t=WK.f(Bn(e)),n=kA.f;return n?GK(t,n(e)):t},KK=function(e,t){for(var n=qK(t),r=is.f,i=E2.f,o=0;oh;h++)if((u||h in v)&&(p=g(d=v[h],h,m),e))if(t)w[h]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return h;case 2:RA(w,d)}else switch(e){case 4:return!1;case 7:RA(w,d)}return o?-1:r||i?i:w}},Th={forEach:Ki(0),map:Ki(1),filter:Ki(2),some:Ki(3),every:Ki(4),find:Ki(5),findIndex:Ki(6),filterReject:Ki(7)},cY=On("species"),k2=function(e){return p2>=51||!lt(function(){var t=[];return(t.constructor={})[cY]=function(){return{foo:1}},t[e](Boolean).foo!==1})},fY=Th.filter;It({target:"Array",proto:!0,forced:!k2("filter")},{filter:function(e){return fY(this,e,arguments.length>1?arguments[1]:void 0)}});var dY=O2?{}.toString:function(){return"[object "+B2(this)+"]"};O2||yc(Object.prototype,"toString",dY,{unsafe:!0});var kh,pY=me.String,ct=function(e){if(B2(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return pY(e)},LA=function(){var e=Bn(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},P2=me.RegExp,_2=lt(function(){var e=P2("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),hY=_2||lt(function(){return!P2("a","y").sticky}),MA={BROKEN_CARET:_2||lt(function(){var e=P2("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:hY,UNSUPPORTED_Y:_2},ss=Object.keys||function(e){return TA(e,Bh)},gY=hr?Object.defineProperties:function(e,t){Bn(e);for(var n,r=rs(t),i=ss(t),o=i.length,a=0;o>a;)is.f(e,n=i[a++],r[n]);return e},vY=hc("document","documentElement"),zA=DA("IE_PROTO"),N2=function(){},HA=function(e){return""},UA=function(e){e.write(HA("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ph=function(){try{kh=new ActiveXObject("htmlfile")}catch(r){}var e,t;Ph=typeof document!="undefined"?document.domain&&kh?UA(kh):((t=w2("iframe")).style.display="none",vY.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(HA("document.F=Object")),e.close(),e.F):UA(kh);for(var n=Bh.length;n--;)delete Ph.prototype[Bh[n]];return Ph()};S2[zA]=!0;var VA,I2,WA=Object.create||function(e,t){var n;return e!==null?(N2.prototype=Bn(e),n=new N2,N2.prototype=null,n[zA]=e):n=Ph(),t===void 0?n:gY(n,t)},mY=me.RegExp,yY=lt(function(){var e=mY(".","s");return!(e.dotAll&&e.exec(` `)&&e.flags==="s")}),bY=me.RegExp,$Y=lt(function(){var e=bY("(?
    b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$c")!=="bc"}),wY=C2.get,EY=y2("native-string-replace",String.prototype.replace),_h=RegExp.prototype.exec,j2=_h,xY=ce("".charAt),SY=ce("".indexOf),DY=ce("".replace),R2=ce("".slice),L2=(I2=/b*/g,vt(_h,VA=/a/,"a"),vt(_h,I2,"a"),VA.lastIndex!==0||I2.lastIndex!==0),GA=MA.BROKEN_CARET,M2=/()??/.exec("")[1]!==void 0;(L2||M2||GA||yY||$Y)&&(j2=function(e){var t,n,r,i,o,a,u,s=this,l=wY(s),c=ct(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=vt(j2,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=GA&&s.sticky,m=vt(LA,s),v=s.source,g=0,y=c;if(p&&(m=DY(m,"y",""),SY(m,"g")===-1&&(m+="g"),y=R2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&xY(c,s.lastIndex-1)!==` `)&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",m)),M2&&(n=new RegExp("^"+v+"$(?!\\s)",m)),L2&&(r=s.lastIndex),i=vt(_h,p?n:s,y),p?i?(i.input=R2(i.input,g),i[0]=R2(i[0],g),i.index=s.lastIndex,s.lastIndex+=i[0].length):s.lastIndex=0:L2&&i&&(s.lastIndex=s.global?i.index+i[0].length:r),M2&&i&&i.length>1&&vt(EY,i[0],n,function(){for(o=1;o=u?e?"":void 0:(r=XA(o,a))<55296||r>56319||a+1===u||(i=XA(o,a+1))<56320||i>57343?e?OY(o,a):r:e?BY(o,a,a+2):i-56320+(r-55296<<10)+65536}},FY={codeAt:JA(!1),charAt:JA(!0)}.charAt,V2=function(e,t,n){return t+(n?FY(e,t).length:1)},TY=Math.floor,W2=ce("".charAt),kY=ce("".replace),G2=ce("".slice),PY=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,_Y=/\$([$&'`]|\d{1,2})/g,NY=function(e,t,n,r,i,o){var a=n+e.length,u=r.length,s=_Y;return i!==void 0&&(i=gc(i),s=PY),kY(o,s,function(l,c){var f;switch(W2(c,0)){case"$":return"$";case"&":return e;case"`":return G2(t,0,n);case"'":return G2(t,a);case"<":f=i[G2(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=TY(d/10);return p===0?l:p<=u?r[p-1]===void 0?W2(c,1):r[p-1]+W2(c,1):l}f=r[d-1]}return f===void 0?"":f})},IY=me.TypeError,Sc=function(e,t){var n=e.exec;if(Kt(n)){var r=vt(n,e,t);return r!==null&&Bn(r),r}if(Gi(e)==="RegExp")return vt(xc,e,t);throw IY("RegExp#exec called on incompatible receiver")},q2=On("replace"),jY=Math.max,RY=Math.min,LY=ce([].concat),K2=ce([].push),ZA=ce("".indexOf),QA=ce("".slice),MY="a".replace(/./,"$0")==="$0",e7=!!/./[q2]&&/./[q2]("a","$0")==="";U2("replace",function(e,t,n){var r=e7?"$":"$0";return[function(i,o){var a=Yn(this),u=i==null?void 0:Sh(i,q2);return u?vt(u,i,a,o):vt(t,ct(a),i,o)},function(i,o){var a=Bn(this),u=ct(i);if(typeof o=="string"&&ZA(o,r)===-1&&ZA(o,"$<")===-1){var s=n(t,a,u,o);if(s.done)return s.value}var l=Kt(o);l||(o=ct(o));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=Sc(a,u);if(p===null||(K2(d,p),!c))break;ct(p[0])===""&&(a.lastIndex=V2(u,$c(a.lastIndex),f))}for(var m,v="",g=0,y=0;y=g&&(v+=QA(u,g,$)+N,g=$+h.length)}return v+QA(u,g)}]},!!lt(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$")!=="7"})||!MY||e7);var Y2=On("unscopables"),X2=Array.prototype;X2[Y2]==null&&is.f(X2,Y2,{configurable:!0,value:WA(null)});var t7=function(e){X2[Y2][e]=!0},zY=Th.find,n7=!0;"find"in[]&&Array(1).find(function(){n7=!1}),It({target:"Array",proto:!0,forced:n7},{find:function(e){return zY(this,e,arguments.length>1?arguments[1]:void 0)}}),t7("find");var HY=On("match"),r7=function(e){var t;return Xn(e)&&((t=e[HY])!==void 0?!!t:Gi(e)=="RegExp")},UY=me.TypeError,VY=On("species"),WY=function(e,t){var n,r=Bn(e).constructor;return r===void 0||(n=Bn(r)[VY])==null?t:function(i){if(T2(i))return i;throw UY(vA(i)+" is not a constructor")}(n)},i7=function(e,t,n){var r=b2(t);r in e?is.f(e,r,s2(0,n)):e[r]=n},GY=me.Array,qY=Math.max,o7=function(e,t,n){for(var r=Oh(e),i=bc(t,r),o=bc(n===void 0?r:n,r),a=GY(qY(o-i,0)),u=0;i1||"".split(/.?/).length?function(i,o){var a=ct(Yn(this)),u=o===void 0?4294967295:o>>>0;if(u===0)return[];if(i===void 0)return[a];if(!r7(i))return vt(t,a,i,u);for(var s,l,c,f=[],d=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(i.sticky?"y":""),p=0,m=new RegExp(i.source,d+"g");(s=vt(xc,m,a))&&!((l=m.lastIndex)>p&&(cs(f,Dc(a,p,s.index)),s.length>1&&s.index=u));)m.lastIndex===s.index&&m.lastIndex++;return p===a.length?!c&&YY(m,"")||cs(f,""):cs(f,Dc(a,p)),f.length>u?o7(f,0,u):f}:"0".split(void 0,0).length?function(i,o){return i===void 0&&o===0?[]:vt(t,this,i,o)}:t,[function(i,o){var a=Yn(this),u=i==null?void 0:Sh(i,e);return u?vt(u,i,a,o):vt(r,ct(a),i,o)},function(i,o){var a=Bn(this),u=ct(i),s=n(r,a,u,o,r!==t);if(s.done)return s.value;var l=WY(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(ls?"g":"y"),d=new l(ls?"^(?:"+a.source+")":a,f),p=o===void 0?4294967295:o>>>0;if(p===0)return[];if(u.length===0)return Sc(d,u)===null?[u]:[];for(var m=0,v=0,g=[];v"+e+"").children().filter(function(t){return t.tagName!=="BR"}).length===0}function fs(e){return e.length===0?"":e[0].outerHTML}function ds(e){return e.length?e[0].tagName.toLowerCase():""}function gr(e,t){for(var n="",r=(e.attr("style")||"").split(";"),i=r.length,o=0;o0&&i[i.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Pe(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function l7(e){var t=Pe(E.nodes(e,{match:function(a){return e.children[0]===a},mode:"highest"}),1),n=t[0];if(n==null)return!1;var r=n[0];if(!ne.isElement(r)||r.type==="paragraph"||q.string(r)!=="")return!1;var i=r.children,o=i===void 0?[]:i;return!!J.isText(o[0])&&(_.setNodes(e,{type:"paragraph"}),!0)}var nX={renderElems:[iK],elemsToHtml:[oK],parseElemsHtml:[tX],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(i){l7(r)||t(i)},r.deleteForward=function(i){l7(r)||n(i)},r}},rX=/"/g,iX=ce("".replace),Ac=function(e,t,n,r){var i=ct(Yn(e)),o="<"+t;return n!==""&&(o+=" "+n+'="'+iX(ct(r),rX,""")+'"'),o+">"+i+""},Oc=function(e){return lt(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})};function tb(e,t){var n=t,r=e,i=r.bold,o=r.italic,a=r.underline;return i&&(n=""+n+""),r.code&&(n=""+n+""),o&&(n=""+n+""),a&&(n=""+n+""),r.through&&(n=""+n+""),r.sub&&(n=""+n+""),r.sup&&(n=""+n+""),n}function ba(e,t){return e.length!==0&&(!!e[0].matches(t)||e.find(t).length>0)}It({target:"String",proto:!0,forced:Oc("bold")},{bold:function(){return Ac(this,"b","","")}}),It({target:"String",proto:!0,forced:Oc("italics")},{italics:function(){return Ac(this,"i","","")}}),It({target:"String",proto:!0,forced:Oc("sub")},{sub:function(){return Ac(this,"sub","","")}}),It({target:"String",proto:!0,forced:Oc("sup")},{sup:function(){return Ac(this,"sup","","")}});var c7={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},nb=w2("span").classList,f7=nb&&nb.constructor&&nb.constructor.prototype,oX=f7===Object.prototype?void 0:f7,d7=function(e,t){var n=[][e];return!!n&<(function(){n.call(null,t||function(){throw 1},1)})},aX=Th.forEach,rb=d7("forEach")?[].forEach:function(e){return aX(this,e,arguments.length>1?arguments[1]:void 0)},p7=function(e){if(e&&e.forEach!==rb)try{os(e,"forEach",rb)}catch(t){e.forEach=rb}};for(var ib in c7)c7[ib]&&p7(me[ib]&&me[ib].prototype);function h7(e,t){return e.selection==null||!!Pe(E.nodes(e,{match:function(n){return A.getNodeType(n)==="pre"||!!E.isVoid(e,n)},universal:!0}),1)[0]}function uX(e,t){Object.keys(t).forEach(function(n){n!=="text"&&E.removeMark(e,n)})}p7(oX),It({target:"Object",stat:!0,forced:lt(function(){ss(1)})},{keys:function(e){return ss(gc(e))}});var $a=function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(t){var n=this.mark,r=E.marks(t);return r?r[n]:!!Pe(E.nodes(t,{match:function(i){return i[n]===!0}}),1)[0]},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){return h7(t,this.mark)},e.prototype.exec=function(t,n){var r=this.mark,i=this.marksNeedToRemove;n?t.removeMark(r):(t.addMark(r,!0),i&&i.forEach(function(o){return t.removeMark(o)}))},e}(),sX='',lX='',cX='',fX='',dX='',g7='',v7='',pX='',hX='',gX='',vX='',mX='',yX='',bX='',$X='',wX='',EX='',xX='',SX='',DX=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="bold",n.title=K("textStyle.bold"),n.iconSvg=sX,n.hotkey="mod+b",n}return rt(t,e),t}($a),CX=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="code",n.title=K("textStyle.code"),n.iconSvg=dX,n.hotkey="mod+e",n}return rt(t,e),t}($a),AX=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="italic",n.title=K("textStyle.italic"),n.iconSvg=cX,n.hotkey="mod+i",n}return rt(t,e),t}($a),OX=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="through",n.title=K("textStyle.through"),n.iconSvg=fX,n.hotkey="mod+shift+x",n}return rt(t,e),t}($a),BX=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="underline",n.title=K("textStyle.underline"),n.iconSvg=lX,n.hotkey="mod+u",n}return rt(t,e),t}($a),FX=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="sub",n.marksNeedToRemove=["sup"],n.title=K("textStyle.sub"),n.iconSvg=SX,n.hotkey="",n}return rt(t,e),t}($a),TX=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="sup",n.marksNeedToRemove=["sub"],n.title=K("textStyle.sup"),n.iconSvg=xX,n.hotkey="",n}return rt(t,e),t}($a),kX=function(){function e(){this.title=K("textStyle.clear"),this.iconSvg='',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return h7(t)},e.prototype.exec=function(t,n){var r,i,o=E.nodes(t,{match:function(s){return J.isText(s)},universal:!0});try{for(var a=s7(o),u=a.next();!u.done;u=a.next())uX(t,u.value[0])}catch(s){r={error:s}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}},e}(),PX={renderStyle:function(e,t){var n=e,r=n.bold,i=n.italic,o=n.underline,a=n.code,u=n.through,s=n.sub,l=n.sup,c=t;return r&&(c=fe("strong",null,c)),a&&(c=fe("code",null,c)),i&&(c=fe("em",null,c)),o&&(c=fe("u",null,c)),u&&(c=fe("s",null,c)),s&&(c=fe("sub",null,c)),l&&(c=fe("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new DX}},{key:"underline",factory:function(){return new BX}},{key:"italic",factory:function(){return new AX}},{key:"through",factory:function(){return new OX}},{key:"code",factory:function(){return new CX}},{key:"sub",factory:function(){return new FX}},{key:"sup",factory:function(){return new TX}},{key:"clearStyle",factory:function(){return new kX}}],styleToHtml:function(e,t){if(!J.isText(e))return t;if(Q2(t))return tb(e,t);var n=O(t);if(ds(n)==="br")return tb(e,"
    ");var r=n.html();return r=tb(e,r),n.html(r),fs(n)},parseStyleHtml:function(e,t,n){var r=O(e);if(!J.isText(t))return t;var i=t;return ba(r,"b,strong")&&(i.bold=!0),ba(r,"i,em")&&(i.italic=!0),ba(r,"u")&&(i.underline=!0),ba(r,"s,strike")&&(i.through=!0),ba(r,"sub")&&(i.sub=!0),ba(r,"sup")&&(i.sup=!0),ba(r,"code")&&(i.code=!0),i}};function Bc(e){return function(t,n,r){return fe("h"+e,null,n)}}var _X={type:"header1",renderElem:Bc(1)},NX={type:"header2",renderElem:Bc(2)},IX={type:"header3",renderElem:Bc(3)},jX={type:"header4",renderElem:Bc(4)},RX={type:"header5",renderElem:Bc(5)},LX=Ah.PROPER,ob=RegExp.prototype,m7=ob.toString,MX=ce(LA),zX=lt(function(){return m7.call({source:"a",flags:"b"})!="/a/b"}),HX=LX&&m7.name!="toString";(zX||HX)&&yc(RegExp.prototype,"toString",function(){var e=Bn(this),t=ct(e.source),n=e.flags;return"/"+t+"/"+ct(n===void 0&&fA(ob,e)&&!("flags"in ob)?MX(e):n)},{unsafe:!0});var ab,UX=me.TypeError,y7=function(e){if(r7(e))throw UX("The method doesn't accept regular expressions");return e},VX=On("match"),b7=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[VX]=!1,"/./"[e](t)}catch(r){}}return!1},WX=E2.f,$7=ce("".startsWith),GX=ce("".slice),qX=Math.min,w7=b7("startsWith");function E7(e){var t=Pe(E.nodes(e,{match:function(i){return A.getNodeType(i).startsWith("header")},universal:!0}),1),n=t[0];if(n==null)return"paragraph";var r=Pe(n,1)[0];return A.getNodeType(r)}function x7(e){return e.selection==null||!Pe(E.nodes(e,{match:function(t){var n=A.getNodeType(t);return n==="paragraph"||!!n.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function S7(e,t){t&&_.setNodes(e,{type:t})}It({target:"String",proto:!0,forced:!!(w7||(ab=WX(String.prototype,"startsWith"),!ab||ab.writable))&&!w7},{startsWith:function(e){var t=ct(Yn(this));y7(e);var n=$c(qX(arguments.length>1?arguments[1]:void 0,t.length)),r=ct(e);return $7?$7(t,r,n):GX(t,n,n+r.length)===r}});var KX=function(){function e(){this.title=K("header.title"),this.iconSvg='',this.tag="select",this.width=60}return e.prototype.getOptions=function(t){var n=[{value:"header1",text:"H1",styleForRenderMenuList:{"font-size":"32px","font-weight":"bold"}},{value:"header2",text:"H2",styleForRenderMenuList:{"font-size":"24px","font-weight":"bold"}},{value:"header3",text:"H3",styleForRenderMenuList:{"font-size":"18px","font-weight":"bold"}},{value:"header4",text:"H4",styleForRenderMenuList:{"font-size":"16px","font-weight":"bold"}},{value:"header5",text:"H5",styleForRenderMenuList:{"font-size":"13px","font-weight":"bold"}},{value:"paragraph",text:K("header.text")}],r=this.getValue(t).toString();return n.forEach(function(i){i.value===r?i.selected=!0:delete i.selected}),n},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){return E7(t)},e.prototype.isDisabled=function(t){return x7(t)},e.prototype.exec=function(t,n){S7(t,n.toString())},e}(),Fc=function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return E7(t)},e.prototype.isActive=function(t){return this.getValue(t)===this.type},e.prototype.isDisabled=function(t){return x7(t)},e.prototype.exec=function(t,n){var r=this.type;S7(t,n===r?"paragraph":r)},e}(),YX=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H1",n.type="header1",n}return rt(t,e),t}(Fc),XX=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H2",n.type="header2",n}return rt(t,e),t}(Fc),JX=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H3",n.type="header3",n}return rt(t,e),t}(Fc),ZX=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H4",n.type="header4",n}return rt(t,e),t}(Fc),QX=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H5",n.type="header5",n}return rt(t,e),t}(Fc),eJ={key:"headerSelect",factory:function(){return new KX}},tJ={key:"header1",factory:function(){return new YX}},nJ={key:"header2",factory:function(){return new XX}},rJ={key:"header3",factory:function(){return new JX}},iJ={key:"header4",factory:function(){return new ZX}},oJ={key:"header5",factory:function(){return new QX}};function Tc(e){return function(t,n){return""+n+""}}function kc(e){return function(t,n,r){var i=O(t);return(n=n.filter(function(o){return!!J.isText(o)||!!r.isInline(o)})).length===0&&(n=[{text:i.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:n}}}var aJ={renderElems:[_X,NX,IX,jX,RX],elemsToHtml:[{type:"header1",elemToHtml:Tc(1)},{type:"header2",elemToHtml:Tc(2)},{type:"header3",elemToHtml:Tc(3)},{type:"header4",elemToHtml:Tc(4)},{type:"header5",elemToHtml:Tc(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:kc(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:kc(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:kc(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:kc(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:kc(5)}],menus:[eJ,tJ,nJ,rJ,iJ,oJ],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=Pe(E.nodes(n,{match:function(i){return A.getNodeType(i).startsWith("header")},universal:!0}),1)[0];r&&A.isSelectionAtLineEnd(e,r[1])?_.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},n}},ps=Object.assign,D7=Object.defineProperty,uJ=ce([].concat),C7=!ps||lt(function(){if(hr&&ps({b:1},ps(D7({},"a",{enumerable:!0,get:function(){D7(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(i){t[i]=i}),ps({},e)[n]!=7||ss(ps({},t)).join("")!=r})?function(e,t){for(var n=gc(e),r=arguments.length,i=1,o=kA.f,a=lA.f;r>i;)for(var u,s=xh(arguments[i++]),l=o?uJ(ss(s),o(s)):ss(s),c=l.length,f=0;c>f;)u=l[f++],hr&&!vt(a,s,u)||(n[u]=s[u]);return n}:ps;function wa(e,t){e.data==null&&(e.data={});var n=e.data;n.style==null&&(n.style={}),Object.assign(n.style,t)}It({target:"Object",stat:!0,forced:Object.assign!==C7},{assign:C7});var sJ={selector:"font",preParseHtml:function(e){var t=O(e);if(ds(t)!=="font")return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}},A7=function(){function e(){this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(t,n){},e.prototype.getValue=function(t){var n=this.mark,r=E.marks(t);return r&&r[n]?r[n]:""},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){return t.selection==null||!!Pe(E.nodes(t,{match:function(n){return A.getNodeType(n)==="pre"||!!E.isVoid(t,n)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(t){var n=this.mark;if(this.$content==null){var r=O('
      ');r.on("click","li",function(l){var c=l.target;if(c!=null&&(l.preventDefault(),t.selection!=null)){var f=O(c).attr("data-value");f==="0"?E.removeMark(t,n):E.addMark(t,n,f)}}),this.$content=r}var i=this.$content;if(i==null)return document.createElement("ul");i.empty();var o=this.getValue(t),a=t.getMenuConfig(n).colors;(a===void 0?[]:a).forEach(function(l){var c=O('
      ');c.css("background-color",l);var f=O('
    • ');o===l&&f.addClass("active"),f.append(c),i.append(f)});var u="";n==="color"&&(u=K("color.default")),n==="bgColor"&&(u=K("color.clear"));var s=O(`
    • `+u+`
    • `);return i.prepend(s),i[0]},e}(),lJ=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=K("color.color"),n.iconSvg=pX,n.mark="color",n}return rt(t,e),t}(A7),cJ=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=K("color.bgColor"),n.iconSvg=hX,n.mark="bgColor",n}return rt(t,e),t}(A7),O7=["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)"],fJ={renderStyle:function(e,t){var n=e,r=n.color,i=n.bgColor,o=t;return r&&wa(o,{color:r}),i&&wa(o,{backgroundColor:i}),o},styleToHtml:function(e,t){if(!J.isText(e))return t;var n,r=e,i=r.color,o=r.bgColor;return i||o?((Q2(t)||ds(n=O(t))!=="span")&&(n=O(""+t+"")),i&&n.css("color",i),o&&n.css("background-color",o),fs(n)):t},preParseHtml:[sJ],parseStyleHtml:function(e,t,n){var r=O(e);if(!J.isText(t))return t;var i=t,o=gr(r,"color");o&&(i.color=o);var a=gr(r,"background-color");return a||(a=gr(r,"background")),a&&(i.bgColor=a),i},menus:[{key:"color",factory:function(){return new lJ},config:{colors:O7}},{key:"bgColor",factory:function(){return new cJ},config:{colors:O7}}]},dJ=function(e){if(typeof e!="string")return!1;var t=e.match(pJ);if(!t)return!1;var n=t[1];return n?!!(hJ.test(n)||gJ.test(n)):!1},pJ=/^(?:\w+:)?\/\/(\S+)$/,hJ=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,gJ=/^[^\s\.]+\.\S{2,}$/,vJ=BA.includes;function Ih(e){return e===void 0&&(e="r"),e+"-"+S8()}function ub(e){return e.replace(//g,">")}function B7(e,t,n,r){return Xi(this,void 0,void 0,function(){var i,o;return Ji(this,function(a){switch(a.label){case 0:return(i=t.getMenuConfig(e).checkLink)?[4,i(n,r)]:[3,2];case 1:if(typeof(o=a.sent())=="string")return t.alert(o,"error"),[2,!1];if(o==null)return[2,!1];a.label=2;case 2:return[2,!0]}})})}function F7(e,t,n){return Xi(this,void 0,void 0,function(){var r;return Ji(this,function(i){switch(i.label){case 0:return(r=t.getMenuConfig(e).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,i.sent()];case 2:return[2,n]}})})}function sb(e){return e.selection==null||!!A.getSelectedElems(e).some(function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0})}function lb(e,t){return{type:"link",url:ub(e),children:t?[{text:t}]:[]}}function T7(e,t,n){return Xi(this,void 0,void 0,function(){var r,i,o;return Ji(this,function(a){switch(a.label){case 0:return n?(t||(t=n),e.restoreSelection(),sb(e)?[2]:[4,B7("insertLink",e,t,n)]):[2];case 1:return a.sent()?[4,F7("insertLink",e,n)]:[2];case 2:return r=a.sent(),(i=e.selection)==null?[2]:(j.isCollapsed(i)?(e.insertText(" "),o=lb(r,t),_.insertNodes(e,o),e.insertFragment([{text:" "}])):E.string(e,i)!==t?(e.deleteFragment(),o=lb(r,t),_.insertNodes(e,o)):(o=lb(r),_.wrapNodes(e,o,{split:!0}),_.collapse(e,{edge:"end"})),[2])}})})}It({target:"Array",proto:!0},{includes:function(e){return vJ(this,e,arguments.length>1?arguments[1]:void 0)}}),t7("includes");var mJ={type:"link",renderElem:function(e,t,n){var r=e,i=r.url,o=r.target;return fe("a",{href:i,target:o===void 0?"_blank":o},t)}},yJ={type:"link",elemToHtml:function(e,t){var n=e,r=n.url,i=n.target;return'
      '+t+""}},bJ={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=O(e);return(t=t.filter(function(i){return!!J.isText(i)||!!n.isInline(i)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"link",url:r.attr("href")||"",target:r.attr("target")||"",children:t}}};function cb(){return Ih("w-e-insert-link")}var $J=function(){function e(){this.title=K("link.insert"),this.iconSvg='',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textInputId=cb(),this.urlInputId=cb(),this.buttonId=cb()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){return sb(t)},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var n=t.selection,r=this,i=r.textInputId,o=r.urlInputId,a=r.buttonId,u=Pe(Cn(K("link.text"),i),2),s=u[0],l=u[1],c=O(l),f=Pe(Cn(K("link.url"),o),2),d=f[0],p=f[1],m=O(p),v=Pe(Qu(a,K("common.ok")),1)[0];if(this.$content==null){var g=O("
      ");g.on("click","#"+a,function($){$.preventDefault();var w=g.find("#"+i).val(),x=g.find("#"+o).val();T7(t,w,x),t.hidePanelOrModal()}),this.$content=g}var y=this.$content;if(y.empty(),y.append(s),y.append(d),y.append(v),n==null||j.isCollapsed(n))c.val("");else{var h=E.string(t,n);c.val(h)}return m.val(""),setTimeout(function(){c.focus()}),y[0]},e}();function k7(){return Ih("w-e-update-link")}var wJ=function(){function e(){this.title=K("link.edit"),this.iconSvg=g7,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=k7(),this.buttonId=k7()}return e.prototype.getSelectedLinkElem=function(t){var n=A.getSelectedNodeByType(t,"link");return n==null?null:n},e.prototype.getValue=function(t){var n=this.getSelectedLinkElem(t);return n&&n.url||""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedLinkElem(t)==null},e.prototype.getModalPositionNode=function(t){return A.getSelectedNodeByType(t,"link")},e.prototype.getModalContentElem=function(t){var n=this.urlInputId,r=this.buttonId,i=Pe(Cn(K("link.url"),n),2),o=i[0],a=i[1],u=O(a),s=Pe(Qu(r,K("common.ok")),1)[0];if(this.$content==null){var l=O("
      ");l.on("click","button",function(d){d.preventDefault(),t.restoreSelection();var p=A.getSelectedNodeByType(t,"link"),m=p?q.string(p):"",v=l.find("#"+n).val();(function(g,y,h){Xi(this,void 0,void 0,function(){var $,w;return Ji(this,function(x){switch(x.label){case 0:return h?[4,B7("editLink",g,y,h)]:[2];case 1:return x.sent()?[4,F7("editLink",g,h)]:[2];case 2:return $=x.sent(),w={url:ub($)},_.setNodes(g,w,{match:function(S){return A.checkNodeType(S,"link")}}),[2]}})})})(t,m,v),t.hidePanelOrModal()}),this.$content=l}var c=this.$content;c.empty(),c.append(o),c.append(s);var f=this.getValue(t);return u.val(f),setTimeout(function(){u.focus()}),c[0]},e}(),EJ=function(){function e(){this.title=K("link.unLink"),this.iconSvg='',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||A.getSelectedNodeByType(t,"link")==null},e.prototype.exec=function(t,n){this.isDisabled(t)||_.unwrapNodes(t,{match:function(r){return A.checkNodeType(r,"link")}})},e}(),xJ=function(){function e(){this.title=K("link.view"),this.iconSvg=v7,this.tag="button"}return e.prototype.getSelectedLinkElem=function(t){var n=A.getSelectedNodeByType(t,"link");return n==null?null:n},e.prototype.getValue=function(t){var n=this.getSelectedLinkElem(t);return n&&n.url||""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedLinkElem(t)==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){if(!n||typeof n!="string")throw new Error("View link failed, link url is '"+n+"'");window.open(n,"_blank")}},e}(),P7={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},SJ={renderElems:[mJ],elemsToHtml:[yJ],parseElemsHtml:[bJ],menus:[{key:"insertLink",factory:function(){return new $J},config:P7},{key:"editLink",factory:function(){return new wJ},config:P7},{key:"unLink",factory:function(){return new EJ}},{key:"viewLink",factory:function(){return new xJ}}],editorPlugin:function(e){var t=e.isInline,n=e.insertData,r=e.normalizeNode;e.insertNode,e.insertText;var i=e;return i.isInline=function(o){return o.type==="link"||t(o)},i.insertData=function(o){var a=o.getData("text/plain");if(dJ(a)){if(!sb(i)){var u=i.selection;if(u!=null){var s=E.string(i,u);T7(i,s,a)}}}else n(o)},i.normalizeNode=function(o){var a=Pe(o,2),u=a[0],s=a[1];return A.getNodeType(u)!=="link"?r([u,s]):q.string(u)===""?_.removeNodes(i,{at:s}):r([u,s])},i}},DJ=ce(1 .valueOf),CJ=me.RangeError,AJ=me.RangeError,_7=me.String,N7=Math.floor,fb=ce(function(e){var t=ct(Yn(this)),n="",r=us(e);if(r<0||r==1/0)throw CJ("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n}),I7=ce("".slice),Pc=ce(1 .toFixed),hs=function(e,t,n){return t===0?n:t%2==1?hs(e,t-1,n*e):hs(e*e,t/2,n)},gs=function(e,t,n){for(var r=-1,i=n;++r<6;)i+=t*e[r],e[r]=i%1e7,i=N7(i/1e7)},db=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=N7(r/t),r=r%t*1e7},j7=function(e){for(var t=6,n="";--t>=0;)if(n!==""||t===0||e[t]!==0){var r=_7(e[t]);n=n===""?r:n+fb("0",7-r.length)+r}return n};function R7(e,t){return"w-e-image-container-"+A.findKey(e,t).id}function OJ(e,t,n,r){var i=O("body"),o=R7(e,t),a=r.width,u=r.height,s=0,l=0,c=0,f=!1,d=null;function p(y){d=function(){var w=O("#"+o);if(w.length===0)throw new Error("Cannot find image container elem");return w}(),s=y;var h=d.find("img");if(h.length===0)throw new Error("Cannot find image elem");l=h.width(),c=h.height(),i.on("mousemove",m),i.on("mouseup",v);var $=A.getHoverbar(e);$&&$.hideAndClean()}var m=Yo(function(y){y.preventDefault();var h=y.clientX,$=l+(f?s-h:h-s),w=c*($/l);d!=null&&($<=15||w<=15||(d.css("width",$+"px"),d.css("height",w+"px")))},100);function v(y){if(i.off("mousemove",m),d!=null){var h=d.width().toFixed(2),$=d.height().toFixed(2),w={style:Yi(Yi({},t.style),{width:h+"px",height:$+"px"})};_.setNodes(e,w,{at:A.findPath(e,t)}),i.off("mouseup",v)}}var g={};return a&&(g.width=a),u&&(g.height=u),fe("div",{id:o,style:g,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(y){var h=O(y.target);h.hasClass("w-e-image-dragger")&&(y.preventDefault(),(h.hasClass("left-top")||h.hasClass("left-bottom"))&&(f=!0),p(y.clientX))}}},n,fe("div",{className:"w-e-image-dragger left-top"}),fe("div",{className:"w-e-image-dragger right-top"}),fe("div",{className:"w-e-image-dragger left-bottom"}),fe("div",{className:"w-e-image-dragger right-bottom"}))}It({target:"Number",proto:!0,forced:lt(function(){return Pc(8e-5,3)!=="0.000"||Pc(.9,0)!=="1"||Pc(1.255,2)!=="1.25"||Pc(1000000000000000100,0)!=="1000000000000000128"})||!lt(function(){Pc({})})},{toFixed:function(e){var t,n,r,i,o=DJ(this),a=us(e),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw AJ("Incorrect fraction digits");if(o!=o)return"NaN";if(o<=-1e21||o>=1e21)return _7(o);if(o<0&&(s="-",o=-o),o>1e-21)if(n=(t=function(c){for(var f=0,d=c;d>=4096;)f+=12,d/=4096;for(;d>=2;)f+=1,d/=2;return f}(o*hs(2,69,1))-69)<0?o*hs(2,-t,1):o/hs(2,t,1),n*=4503599627370496,(t=52-t)>0){for(gs(u,0,n),r=a;r>=7;)gs(u,1e7,0),r-=7;for(gs(u,hs(10,r,1),0),r=t-1;r>=23;)db(u,1<<23),r-=23;db(u,1<0?s+((i=l.length)<=a?"0."+fb("0",a-i)+l:I7(l,0,i-a)+"."+I7(l,i-a)):s+l}});var BJ={type:"image",renderElem:function(e,t,n){var r=e,i=r.src,o=r.alt,a=o===void 0?"":o,u=r.href,s=u===void 0?"":u,l=r.style,c=l===void 0?{}:l,f=c.width,d=f===void 0?"":f,p=c.height,m=p===void 0?"":p,v=A.isNodeSelected(n,e),g={};d&&(g.width="100%"),m&&(g.height="100%");var y=fe("img",{style:g,src:i,alt:a,"data-href":s}),h=n.isDisabled();return v&&!h?OJ(n,e,y,{width:d,height:m}):function($,w,x,S){var C=S.width,N=S.height,R={};C&&(R.width=C),N&&(R.height=N);var U=R7($,w);return fe("div",{id:U,style:R,className:"w-e-image-container"},x)}(n,e,y,{width:d,height:m})}},FJ={type:"image",elemToHtml:function(e,t){var n=e,r=n.src,i=n.alt,o=i===void 0?"":i,a=n.href,u=a===void 0?"":a,s=n.style,l=s===void 0?{}:s,c=l.width,f=c===void 0?"":c,d=l.height,p=d===void 0?"":d,m="";return f&&(m+="width: "+f+";"),p&&(m+="height: "+p+";"),''+o+''}},TJ={selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=O(e),i=r.attr("data-href")||"";return i=decodeURIComponent(i),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:i,style:{width:gr(r,"width"),height:gr(r,"height")},children:[{text:""}]}}};function L7(e,t,n,r,i){return r===void 0&&(r=""),i===void 0&&(i=""),Xi(this,void 0,void 0,function(){var o,a;return Ji(this,function(u){switch(u.label){case 0:return(o=t.getMenuConfig(e).checkImage)?[4,o(n,r,i)]:[3,2];case 1:if(typeof(a=u.sent())=="string")return t.alert(a,"error"),[2,!1];if(a==null)return[2,!1];u.label=2;case 2:return[2,!0]}})})}function M7(e,t,n){return Xi(this,void 0,void 0,function(){var r;return Ji(this,function(i){switch(i.label){case 0:return(r=t.getMenuConfig(e).parseImageSrc)?[4,r(n)]:[3,2];case 1:return[2,i.sent()];case 2:return[2,n]}})})}function Ea(e,t,n,r){return n===void 0&&(n=""),r===void 0&&(r=""),Xi(this,void 0,void 0,function(){var i,o,a;return Ji(this,function(u){switch(u.label){case 0:return[4,L7("insertImage",e,t,n,r)];case 1:return u.sent()?[4,M7("insertImage",e,t)]:[2];case 2:return i=u.sent(),o={type:"image",src:ub(i),href:r,alt:n,style:{},children:[{text:""}]},e.selection===null&&e.restoreSelection(),A.getSelectedNodeByType(e,"image")&&e.move(1),jh(e)?[2]:(_.insertNodes(e,o),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(o),[2])}})})}function kJ(e,t,n,r,i){return n===void 0&&(n=""),r===void 0&&(r=""),i===void 0&&(i={}),Xi(this,void 0,void 0,function(){var o,a,u,s,l,c;return Ji(this,function(f){switch(f.label){case 0:return[4,L7("editImage",e,t,n,r)];case 1:return f.sent()?[4,M7("editImage",e,t)]:[2];case 2:return o=f.sent(),(a=A.getSelectedNodeByType(e,"image"))==null?[2]:(u=a.style,s={src:o,alt:n,href:r,style:Yi(Yi({},u===void 0?{}:u),i)},_.setNodes(e,s,{match:function(d){return A.checkNodeType(d,"image")}}),l=A.getSelectedNodeByType(e,"image"),(c=e.getMenuConfig("editImage").onUpdatedImage)&&c(l),[2])}})})}function jh(e){var t=e.selection;return t==null||!j.isCollapsed(t)||!!Pe(E.nodes(e,{match:function(n){var r=A.getNodeType(n);return r==="code"||r==="pre"||r==="link"||r==="list-item"||!!r.startsWith("header")||r==="blockquote"||!!E.isVoid(e,n)},universal:!0}),1)[0]}function Rh(){return Ih("w-e-insert-image")}var PJ=function(){function e(){this.title=K("image.netImage"),this.iconSvg='',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=Rh(),this.altInputId=Rh(),this.hrefInputId=Rh(),this.buttonId=Rh()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){return jh(t)},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var n=this,r=this,i=r.srcInputId,o=r.altInputId,a=r.hrefInputId,u=r.buttonId,s=Pe(Cn(K("image.src"),i),2),l=s[0],c=s[1],f=O(c),d=Pe(Cn(K("image.desc"),o),2),p=d[0],m=d[1],v=O(m),g=Pe(Cn(K("image.link"),a),2),y=g[0],h=g[1],$=O(h),w=Pe(Qu(u,K("common.ok")),1)[0];if(this.$content==null){var x=O("
      ");x.on("click","#"+u,function(C){C.preventDefault();var N=x.find("#"+i).val().trim(),R=x.find("#"+o).val().trim(),U=x.find("#"+a).val().trim();n.insertImage(t,N,R,U),t.hidePanelOrModal()}),this.$content=x}var S=this.$content;return S.empty(),S.append(l),S.append(p),S.append(y),S.append(w),f.val(""),v.val(""),$.val(""),setTimeout(function(){f.focus()}),S[0]},e.prototype.insertImage=function(t,n,r,i){r===void 0&&(r=""),i===void 0&&(i=""),n&&(t.restoreSelection(),this.isDisabled(t)||Ea(t,n,r,i))},e}(),_J=function(){function e(){this.title=K("image.delete"),this.iconSvg='',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||A.getSelectedNodeByType(t,"image")==null},e.prototype.exec=function(t,n){this.isDisabled(t)||_.removeNodes(t,{match:function(r){return A.checkNodeType(r,"image")}})},e}();function Lh(){return Ih("w-e-edit-image")}var NJ=function(){function e(){this.title=K("image.edit"),this.iconSvg=g7,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=Lh(),this.altInputId=Lh(),this.hrefInputId=Lh(),this.buttonId=Lh()}return e.prototype.getValue=function(t){return""},e.prototype.getImageNode=function(t){return A.getSelectedNodeByType(t,"image")},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!j.isCollapsed(n)||A.getSelectedNodeByType(t,"image")==null},e.prototype.getModalPositionNode=function(t){return this.getImageNode(t)},e.prototype.getModalContentElem=function(t){var n=this,r=this,i=r.srcInputId,o=r.altInputId,a=r.hrefInputId,u=r.buttonId,s=this.getImageNode(t);if(s==null)throw new Error("Not found selected image node");var l=Pe(Cn(K("image.src"),i),2),c=l[0],f=l[1],d=O(f),p=Pe(Cn(K("image.desc"),o),2),m=p[0],v=p[1],g=O(v),y=Pe(Cn(K("image.link"),a),2),h=y[0],$=y[1],w=O($),x=Pe(Qu(u,K("common.ok")),1)[0];if(this.$content==null){var S=O("
      ");S.on("click","#"+u,function(le){le.preventDefault();var te=S.find("#"+i).val(),ue=S.find("#"+o).val(),he=S.find("#"+a).val();n.updateImage(t,te,ue,he),t.hidePanelOrModal()}),this.$content=S}var C=this.$content;C.empty(),C.append(c),C.append(m),C.append(h),C.append(x);var N=s,R=N.src,U=N.alt,W=U===void 0?"":U,Z=N.href,Q=Z===void 0?"":Z;return d.val(R),g.val(W),w.val(Q),setTimeout(function(){d.focus()}),C[0]},e.prototype.updateImage=function(t,n,r,i,o){r===void 0&&(r=""),i===void 0&&(i=""),o===void 0&&(o={}),n&&(t.restoreSelection(),this.isDisabled(t)||kJ(t,n,r,i,o))},e}(),IJ=function(){function e(){this.title=K("image.viewLink"),this.iconSvg=v7,this.tag="button"}return e.prototype.getValue=function(t){var n=A.getSelectedNodeByType(t,"image");return n&&n.href||""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!this.getValue(t)},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){if(!n||typeof n!="string")throw new Error("View image link failed, image.href is '"+n+"'");window.open(n,"_blank")}},e}(),pb=function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.getSelectedNode=function(t){return A.getSelectedNodeByType(t,"image")},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedNode(t)==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=this.getSelectedNode(t);if(r!=null){var i=A.getHoverbar(t);i&&i.hideAndClean();var o=r.style,a={style:Yi(Yi({},o===void 0?{}:o),{width:this.value,height:""})};_.setNodes(t,a,{match:function(u){return A.checkNodeType(u,"image")}})}}},e}(),jJ=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="30%",n.value="30%",n}return rt(t,e),t}(pb),RJ=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="50%",n.value="50%",n}return rt(t,e),t}(pb),LJ=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="100%",n.value="100%",n}return rt(t,e),t}(pb),z7={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},MJ={renderElems:[BJ],elemsToHtml:[FJ],parseElemsHtml:[TJ],menus:[{key:"insertImage",factory:function(){return new PJ},config:z7},{key:"deleteImage",factory:function(){return new _J}},{key:"editImage",factory:function(){return new NJ},config:z7},{key:"viewImageLink",factory:function(){return new IJ}},{key:"imageWidth30",factory:function(){return new jJ}},{key:"imageWidth50",factory:function(){return new RJ}},{key:"imageWidth100",factory:function(){return new LJ}}],editorPlugin:function(e){var t=e.isInline,n=e.isVoid;e.insertNode;var r=e;return r.isInline=function(i){return i.type==="image"||t(i)},r.isVoid=function(i){return i.type==="image"||n(i)},r}},zJ={type:"todo",renderElem:function(e,t,n){var r=!1;n.isDisabled()&&(r=!0);var i=e.checked,o=fe("div",{style:{margin:"5px 0"}},fe("span",{contentEditable:!1,style:{marginRight:"0.5em"}},fe("input",{type:"checkbox",checked:i,disabled:r,on:{change:function(a){var u=A.findPath(n,e),s={checked:a.target.checked};_.setNodes(n,s,{at:u})}}})),fe("span",null,t));return o}},HJ=function(){function e(){this.title=K("todo.todo"),this.iconSvg='',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!!A.getSelectedNodeByType(t,"todo")},e.prototype.isDisabled=function(t){return t.selection==null||!!A.getSelectedElems(t).some(function(n){if(E.isVoid(t,n)&&E.isBlock(t,n))return!0;var r=n.type;return!!["pre","table","list-item"].includes(r)||void 0})},e.prototype.exec=function(t,n){var r=this.isActive(t);_.setNodes(t,{type:r?"paragraph":"todo"})},e}(),UJ={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var r=O(e);(t=t.filter(function(o){return!!J.isText(o)||!!n.isInline(o)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var i=!1;return r.find('input[type="checkbox"]').attr("checked")!=null&&(i=!0),{type:"todo",checked:i,children:t}}},VJ={renderElems:[zJ],elemsToHtml:[{type:"todo",elemToHtml:function(e,t){return'
      "+t+"
      "}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(e){var t=O(e).find("li"),n=O('
      '),r=t.find("input[type]");return n.append(r),t.children()[0].remove(),n[0].innerHTML=n[0].innerHTML+t[0].innerHTML,n[0]}}],parseElemsHtml:[UJ],menus:[{key:"todo",factory:function(){return new HJ}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(r){var i=e.selection;if(i&&j.isCollapsed(i)){var o=A.getSelectedNodeByType(e,"todo");if(o&&q.string(o).length===0)return void _.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(r)},n}},WJ={type:"blockquote",renderElem:function(e,t,n){return fe("blockquote",null,t)}},GJ={type:"blockquote",elemToHtml:function(e,t){return"
      "+t+"
      "}},qJ={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=O(e);return(t=t.filter(function(i){return!!J.isText(i)||!!n.isInline(i)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},KJ=function(){function e(){this.title=K("blockQuote.title"),this.iconSvg='',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!!A.getSelectedNodeByType(t,"blockquote")},e.prototype.isDisabled=function(t){return t.selection==null||!Pe(E.nodes(t,{match:function(n){var r=A.getNodeType(n);return r==="paragraph"||r==="blockquote"},universal:!0,mode:"highest"}),1)[0]},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=this.isActive(t)?"paragraph":"blockquote";_.setNodes(t,{type:r},{mode:"highest"})}},e}(),YJ={key:"blockquote",factory:function(){return new KJ}},XJ=ce([].slice),JJ=k2("slice"),ZJ=On("species"),hb=me.Array,QJ=Math.max;It({target:"Array",proto:!0,forced:!JJ},{slice:function(e,t){var n,r,i,o=rs(this),a=Oh(o),u=bc(e,a),s=bc(t===void 0?a:t,a);if(Fh(o)&&(n=o.constructor,(T2(n)&&(n===hb||Fh(n.prototype))||Xn(n)&&(n=n[ZJ])===null)&&(n=void 0),n===hb||n===void 0))return XJ(o,u,s);for(r=new(n===void 0?hb:n)(QJ(s-u,0)),i=0;u',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(t,n){},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!!Pe(E.nodes(t,{match:function(n){return A.getNodeType(n)==="pre"||!!E.isVoid(t,n)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(t){if(this.$content==null){var n=O('
        ');n.on("click","li",function(o){var a=o.target;if(a!=null){o.preventDefault();var u=O(a).text();t.insertText(u)}}),this.$content=n}var r=this.$content;if(r==null)return document.createElement("ul");r.empty();var i=t.getMenuConfig("emotion").emotions;return(i===void 0?[]:i).forEach(function(o){var a=O("
      • "+o+"
      • ");r.append(a)}),r[0]},e}(),nZ={menus:[{key:"emotion",factory:function(){return new tZ},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(" ")}}]},rZ={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},iZ={selector:"font",preParseHtml:function(e){var t=O(e);if(ds(t)!=="font")return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",rZ[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},oZ=ce("".indexOf);It({target:"String",proto:!0,forced:!b7("includes")},{includes:function(e){return!!~oZ(ct(Yn(this)),ct(y7(e)),arguments.length>1?arguments[1]:void 0)}});var Zi,Mh,zh=function(e){return e&&e.Math==Math&&e},xe=zh(typeof globalThis=="object"&&globalThis)||zh(typeof window=="object"&&window)||zh(typeof self=="object"&&self)||zh(typeof bh=="object"&&bh)||function(){return this}()||Function("return this")(),gb=Function.prototype,H7=gb.apply,aZ=gb.bind,U7=gb.call,V7=typeof Reflect=="object"&&Reflect.apply||(aZ?U7.bind(H7):function(){return U7.apply(H7,arguments)}),W7=Function.prototype,vb=W7.bind,mb=W7.call,uZ=vb&&vb.bind(mb),mt=vb?function(e){return e&&uZ(mb,e)}:function(e){return e&&function(){return mb.apply(e,arguments)}},Yt=function(e){return typeof e=="function"},Fn=function(e){try{return!!e()}catch(t){return!0}},hn=!Fn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),_c=Function.prototype.call,vr=_c.bind?_c.bind(_c):function(){return _c.apply(_c,arguments)},G7={}.propertyIsEnumerable,q7=Object.getOwnPropertyDescriptor,sZ=q7&&!G7.call({1:2},1)?function(e){var t=q7(this,e);return!!t&&t.enumerable}:G7,yb={f:sZ},xa=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},lZ=mt({}.toString),cZ=mt("".slice),Sa=function(e){return cZ(lZ(e),8,-1)},bb=xe.Object,fZ=mt("".split),K7=Fn(function(){return!bb("z").propertyIsEnumerable(0)})?function(e){return Sa(e)=="String"?fZ(e,""):bb(e)}:bb,dZ=xe.TypeError,$b=function(e){if(e==null)throw dZ("Can't call method on "+e);return e},kr=function(e){return K7($b(e))},Zn=function(e){return typeof e=="object"?e!==null:Yt(e)},Qn={},Y7=function(e){return Yt(e)?e:void 0},Nc=function(e,t){return arguments.length<2?Y7(Qn[e])||Y7(xe[e]):Qn[e]&&Qn[e][t]||xe[e]&&xe[e][t]},X7=mt({}.isPrototypeOf),wb=Nc("navigator","userAgent")||"",J7=xe.process,Z7=xe.Deno,Q7=J7&&J7.versions||Z7&&Z7.version,e9=Q7&&Q7.v8;e9&&(Mh=(Zi=e9.split("."))[0]>0&&Zi[0]<4?1:+(Zi[0]+Zi[1])),!Mh&&wb&&(!(Zi=wb.match(/Edge\/(\d+)/))||Zi[1]>=74)&&(Zi=wb.match(/Chrome\/(\d+)/))&&(Mh=+Zi[1]);var Hh=Mh,Pr=!!Object.getOwnPropertySymbols&&!Fn(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Hh&&Hh<41}),Eb=Pr&&!Symbol.sham&&typeof Symbol.iterator=="symbol",pZ=xe.Object,vs=Eb?function(e){return typeof e=="symbol"}:function(e){var t=Nc("Symbol");return Yt(t)&&X7(t.prototype,pZ(e))},hZ=xe.String,gZ=xe.TypeError,t9=function(e){if(Yt(e))return e;throw gZ(function(t){try{return hZ(t)}catch(n){return"Object"}}(e)+" is not a function")},vZ=xe.TypeError,mZ=Object.defineProperty,Qi=xe["__core-js_shared__"]||function(e,t){try{mZ(xe,e,{value:t,configurable:!0,writable:!0})}catch(n){xe[e]=t}return t}("__core-js_shared__",{}),Da=$h(function(e){(e.exports=function(t,n){return Qi[t]||(Qi[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),yZ=xe.Object,Ic=function(e){return yZ($b(e))},bZ=mt({}.hasOwnProperty),_e=Object.hasOwn||function(e,t){return bZ(Ic(e),t)},$Z=0,wZ=Math.random(),EZ=mt(1 .toString),Uh=function(e){return"Symbol("+(e===void 0?"":e)+")_"+EZ(++$Z+wZ,36)},jc=Da("wks"),Ca=xe.Symbol,n9=Ca&&Ca.for,xZ=Eb?Ca:Ca&&Ca.withoutSetter||Uh,Tn=function(e){if(!_e(jc,e)||!Pr&&typeof jc[e]!="string"){var t="Symbol."+e;Pr&&_e(Ca,e)?jc[e]=Ca[e]:jc[e]=Eb&&n9?n9(t):xZ(t)}return jc[e]},SZ=xe.TypeError,DZ=Tn("toPrimitive"),CZ=function(e,t){if(!Zn(e)||vs(e))return e;var n,r,i=(n=e[DZ])==null?void 0:t9(n);if(i){if(t===void 0&&(t="default"),r=vr(i,e,t),!Zn(r)||vs(r))return r;throw SZ("Can't convert object to primitive value")}return t===void 0&&(t="number"),function(o,a){var u,s;if(a==="string"&&Yt(u=o.toString)&&!Zn(s=vr(u,o))||Yt(u=o.valueOf)&&!Zn(s=vr(u,o))||a!=="string"&&Yt(u=o.toString)&&!Zn(s=vr(u,o)))return s;throw vZ("Can't convert object to primitive value")}(e,t)},ms=function(e){var t=CZ(e,"string");return vs(t)?t:t+""},xb=xe.document,AZ=Zn(xb)&&Zn(xb.createElement),r9=function(e){return AZ?xb.createElement(e):{}},i9=!hn&&!Fn(function(){return Object.defineProperty(r9("div"),"a",{get:function(){return 7}}).a!=7}),o9=Object.getOwnPropertyDescriptor,Sb={f:hn?o9:function(e,t){if(e=kr(e),t=ms(t),i9)try{return o9(e,t)}catch(n){}if(_e(e,t))return xa(!vr(yb.f,e,t),e[t])}},OZ=/#|\.prototype\./,Rc=function(e,t){var n=FZ[BZ(e)];return n==kZ||n!=TZ&&(Yt(t)?Fn(t):!!t)},BZ=Rc.normalize=function(e){return String(e).replace(OZ,".").toLowerCase()},FZ=Rc.data={},TZ=Rc.NATIVE="N",kZ=Rc.POLYFILL="P",PZ=Rc,a9=mt(mt.bind),u9=function(e,t){return t9(e),t===void 0?e:a9?a9(e,t):function(){return e.apply(t,arguments)}},_Z=xe.String,NZ=xe.TypeError,Aa=function(e){if(Zn(e))return e;throw NZ(_Z(e)+" is not an object")},IZ=xe.TypeError,s9=Object.defineProperty,Oa={f:hn?s9:function(e,t,n){if(Aa(e),t=ms(t),Aa(n),i9)try{return s9(e,t,n)}catch(r){}if("get"in n||"set"in n)throw IZ("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},_r=hn?function(e,t,n){return Oa.f(e,t,xa(1,n))}:function(e,t,n){return e[t]=n,e},jZ=Sb.f,RZ=function(e){var t=function(n,r,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,i)}return V7(e,this,arguments)};return t.prototype=e.prototype,t},eo=function(e,t){var n,r,i,o,a,u,s,l,c=e.target,f=e.global,d=e.stat,p=e.proto,m=f?xe:d?xe[c]:(xe[c]||{}).prototype,v=f?Qn:Qn[c]||_r(Qn,c,{})[c],g=v.prototype;for(i in t)n=!PZ(f?i:c+(d?".":"#")+i,e.forced)&&m&&_e(m,i),a=v[i],n&&(u=e.noTargetGet?(l=jZ(m,i))&&l.value:m[i]),o=n&&u?u:t[i],n&&typeof a==typeof o||(s=e.bind&&n?u9(o,xe):e.wrap&&n?RZ(o):p&&Yt(o)?mt(o):o,(e.sham||o&&o.sham||a&&a.sham)&&_r(s,"sham",!0),_r(v,i,s),p&&(_e(Qn,r=c+"Prototype")||_r(Qn,r,{}),_r(Qn[r],i,o),e.real&&g&&!g[i]&&_r(g,i,o)))},Vh=Array.isArray||function(e){return Sa(e)=="Array"},LZ=Math.ceil,MZ=Math.floor,Db=function(e){var t=+e;return t!=t||t===0?0:(t>0?MZ:LZ)(t)},zZ=Math.min,Wh=function(e){return(t=e.length)>0?zZ(Db(t),9007199254740991):0;var t},Cb=function(e,t,n){var r=ms(t);r in e?Oa.f(e,r,xa(0,n)):e[r]=n},l9={};l9[Tn("toStringTag")]="z";var Ab=String(l9)==="[object z]",HZ=Tn("toStringTag"),UZ=xe.Object,VZ=Sa(function(){return arguments}())=="Arguments",Gh=Ab?Sa:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(i,o){try{return i[o]}catch(a){}}(t=UZ(e),HZ))=="string"?n:VZ?Sa(t):(r=Sa(t))=="Object"&&Yt(t.callee)?"Arguments":r},WZ=mt(Function.toString);Yt(Qi.inspectSource)||(Qi.inspectSource=function(e){return WZ(e)});var c9=Qi.inspectSource,f9=function(){},GZ=[],d9=Nc("Reflect","construct"),Ob=/^\s*(?:class|function)\b/,qZ=mt(Ob.exec),KZ=!Ob.exec(f9),Lc=function(e){if(!Yt(e))return!1;try{return d9(f9,GZ,e),!0}catch(t){return!1}},YZ=!d9||Fn(function(){var e;return Lc(Lc.call)||!Lc(Object)||!Lc(function(){e=!0})||e})?function(e){if(!Yt(e))return!1;switch(Gh(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return KZ||!!qZ(Ob,c9(e))}:Lc,XZ=Tn("species"),p9=xe.Array,h9=function(e,t){return new(function(n){var r;return Vh(n)&&(r=n.constructor,(YZ(r)&&(r===p9||Vh(r.prototype))||Zn(r)&&(r=r[XZ])===null)&&(r=void 0)),r===void 0?p9:r}(e))(t===0?0:t)},JZ=Tn("species"),g9=Tn("isConcatSpreadable"),v9=xe.TypeError,ZZ=Hh>=51||!Fn(function(){var e=[];return e[g9]=!1,e.concat()[0]!==e}),QZ=function(e){return Hh>=51||!Fn(function(){var t=[];return(t.constructor={})[JZ]=function(){return{foo:1}},t[e](Boolean).foo!==1})}("concat"),eQ=function(e){if(!Zn(e))return!1;var t=e[g9];return t!==void 0?!!t:Vh(e)};eo({target:"Array",proto:!0,forced:!ZZ||!QZ},{concat:function(e){var t,n,r,i,o,a=Ic(this),u=h9(a,0),s=0;for(t=-1,r=arguments.length;t9007199254740991)throw v9("Maximum allowed index exceeded");for(n=0;n=9007199254740991)throw v9("Maximum allowed index exceeded");Cb(u,s++,o)}return u.length=s,u}});var qh,tQ=xe.String,Kh=function(e){if(Gh(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return tQ(e)},nQ=Math.max,rQ=Math.min,Bb=function(e,t){var n=Db(e);return n<0?nQ(n+t,0):rQ(n,t)},m9=function(e){return function(t,n,r){var i,o=kr(t),a=Wh(o),u=Bb(r,a);if(e&&n!=n){for(;a>u;)if((i=o[u++])!=i)return!0}else for(;a>u;u++)if((e||u in o)&&o[u]===n)return e||u||0;return!e&&-1}},iQ={includes:m9(!0),indexOf:m9(!1)},Mc={},oQ=iQ.indexOf,y9=mt([].push),b9=function(e,t){var n,r=kr(e),i=0,o=[];for(n in r)!_e(Mc,n)&&_e(r,n)&&y9(o,n);for(;t.length>i;)_e(r,n=t[i++])&&(~oQ(o,n)||y9(o,n));return o},Yh=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Fb=Object.keys||function(e){return b9(e,Yh)},aQ=hn?Object.defineProperties:function(e,t){Aa(e);for(var n,r=kr(t),i=Fb(t),o=i.length,a=0;o>a;)Oa.f(e,n=i[a++],r[n]);return e},uQ=Nc("document","documentElement"),$9=Da("keys"),Xh=function(e){return $9[e]||($9[e]=Uh(e))},w9=Xh("IE_PROTO"),Tb=function(){},E9=function(e){return""},x9=function(e){e.write(E9("")),e.close();var t=e.parentWindow.Object;return e=null,t},Jh=function(){try{qh=new ActiveXObject("htmlfile")}catch(r){}var e,t;Jh=typeof document!="undefined"?document.domain&&qh?x9(qh):((t=r9("iframe")).style.display="none",uQ.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(E9("document.F=Object")),e.close(),e.F):x9(qh);for(var n=Yh.length;n--;)delete Jh.prototype[Yh[n]];return Jh()};Mc[w9]=!0;var Zh,zc,Qh,Ba=Object.create||function(e,t){var n;return e!==null?(Tb.prototype=Aa(e),n=new Tb,Tb.prototype=null,n[w9]=e):n=Jh(),t===void 0?n:aQ(n,t)},sQ=Yh.concat("length","prototype"),S9={f:Object.getOwnPropertyNames||function(e){return b9(e,sQ)}},lQ=xe.Array,cQ=Math.max,D9=S9.f,C9=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],fQ=function(e){try{return D9(e)}catch(t){return function(n,r,i){for(var o=Wh(n),a=Bb(r,o),u=Bb(i===void 0?o:i,o),s=lQ(cQ(u-a,0)),l=0;ah;h++)if((u||h in v)&&(p=g(d=v[h],h,m),e))if(t)w[h]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return h;case 2:T9(w,d)}else switch(e){case 4:return!1;case 7:T9(w,d)}return o?-1:r||i?i:w}},tg={forEach:to(0),map:to(1),filter:to(2),some:to(3),every:to(4),find:to(5),findIndex:to(6),filterReject:to(7)}.forEach,gn=Xh("hidden"),k9=Tn("toPrimitive"),$Q=$s.set,P9=$s.getterFor("Symbol"),mr=Object.prototype,no=xe.Symbol,ro=no&&no.prototype,_9=xe.TypeError,Nb=xe.QObject,Hc=Nc("JSON","stringify"),N9=Sb.f,io=Oa.f,I9=A9.f,wQ=yb.f,j9=mt([].push),di=Da("symbols"),Uc=Da("op-symbols"),Ib=Da("string-to-symbol-registry"),jb=Da("symbol-to-string-registry"),EQ=Da("wks"),Rb=!Nb||!Nb.prototype||!Nb.prototype.findChild,Lb=hn&&Fn(function(){return Ba(io({},"a",{get:function(){return io(this,"a",{value:7}).a}})).a!=7})?function(e,t,n){var r=N9(mr,t);r&&delete mr[t],io(e,t,n),r&&e!==mr&&io(mr,t,r)}:io,Mb=function(e,t){var n=di[e]=Ba(ro);return $Q(n,{type:"Symbol",tag:e,description:t}),hn||(n.description=t),n},ng=function(e,t,n){e===mr&&ng(Uc,t,n),Aa(e);var r=ms(t);return Aa(n),_e(di,r)?(n.enumerable?(_e(e,gn)&&e[gn][r]&&(e[gn][r]=!1),n=Ba(n,{enumerable:xa(0,!1)})):(_e(e,gn)||io(e,gn,xa(1,{})),e[gn][r]=!0),Lb(e,r,n)):io(e,r,n)},R9=function(e,t){Aa(e);var n=kr(t),r=Fb(n).concat(zb(n));return tg(r,function(i){hn&&!vr(L9,n,i)||ng(e,i,n[i])}),e},L9=function(e){var t=ms(e),n=vr(wQ,this,t);return!(this===mr&&_e(di,t)&&!_e(Uc,t))&&(!(n||!_e(this,t)||!_e(di,t)||_e(this,gn)&&this[gn][t])||n)},M9=function(e,t){var n=kr(e),r=ms(t);if(n!==mr||!_e(di,r)||_e(Uc,r)){var i=N9(n,r);return!i||!_e(di,r)||_e(n,gn)&&n[gn][r]||(i.enumerable=!0),i}},z9=function(e){var t=I9(kr(e)),n=[];return tg(t,function(r){_e(di,r)||_e(Mc,r)||j9(n,r)}),n},zb=function(e){var t=e===mr,n=I9(t?Uc:kr(e)),r=[];return tg(n,function(i){!_e(di,i)||t&&!_e(mr,i)||j9(r,di[i])}),r};if(Pr||(ro=(no=function(){if(X7(ro,this))throw _9("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==void 0?Kh(arguments[0]):void 0,t=Uh(e),n=function(r){this===mr&&vr(n,Uc,r),_e(this,gn)&&_e(this[gn],t)&&(this[gn][t]=!1),Lb(this,t,xa(1,r))};return hn&&Rb&&Lb(mr,t,{configurable:!0,set:n}),Mb(t,e)}).prototype,ys(ro,"toString",function(){return P9(this).tag}),ys(no,"withoutSetter",function(e){return Mb(Uh(e),e)}),yb.f=L9,Oa.f=ng,Sb.f=M9,S9.f=A9.f=z9,kb.f=zb,Pb.f=function(e){return Mb(Tn(e),e)},hn&&io(ro,"description",{configurable:!0,get:function(){return P9(this).description}})),eo({global:!0,wrap:!0,forced:!Pr,sham:!Pr},{Symbol:no}),tg(Fb(EQ),function(e){Et(e)}),eo({target:"Symbol",stat:!0,forced:!Pr},{for:function(e){var t=Kh(e);if(_e(Ib,t))return Ib[t];var n=no(t);return Ib[t]=n,jb[n]=t,n},keyFor:function(e){if(!vs(e))throw _9(e+" is not a symbol");if(_e(jb,e))return jb[e]},useSetter:function(){Rb=!0},useSimple:function(){Rb=!1}}),eo({target:"Object",stat:!0,forced:!Pr,sham:!hn},{create:function(e,t){return t===void 0?Ba(e):R9(Ba(e),t)},defineProperty:ng,defineProperties:R9,getOwnPropertyDescriptor:M9}),eo({target:"Object",stat:!0,forced:!Pr},{getOwnPropertyNames:z9,getOwnPropertySymbols:zb}),eo({target:"Object",stat:!0,forced:Fn(function(){kb.f(1)})},{getOwnPropertySymbols:function(e){return kb.f(Ic(e))}}),Hc){var xQ=!Pr||Fn(function(){var e=no();return Hc([e])!="[null]"||Hc({a:e})!="{}"||Hc(Object(e))!="{}"});eo({target:"JSON",stat:!0,forced:xQ},{stringify:function(e,t,n){var r=dQ(arguments),i=t;if((Zn(t)||e!==void 0)&&!vs(e))return Vh(t)||(t=function(o,a){if(Yt(i)&&(a=vr(i,this,o,a)),!vs(a))return a}),r[1]=t,V7(Hc,null,r)}})}if(!ro[k9]){var SQ=ro.valueOf;ys(ro,k9,function(e){return vr(SQ,this)})}eg(no,"Symbol"),Mc[gn]=!0,Et("asyncIterator"),Et("hasInstance"),Et("isConcatSpreadable"),Et("iterator"),Et("match"),Et("matchAll"),Et("replace"),Et("search"),Et("species"),Et("split"),Et("toPrimitive"),Et("toStringTag"),Et("unscopables"),eg(xe.JSON,"JSON",!0);var oo,H9,U9,DQ=Qn.Symbol,Ta={},V9=Function.prototype,CQ=hn&&Object.getOwnPropertyDescriptor,Hb=_e(V9,"name"),AQ={EXISTS:Hb,PROPER:Hb&&function(){}.name==="something",CONFIGURABLE:Hb&&(!hn||hn&&CQ(V9,"name").configurable)},OQ=!Fn(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),W9=Xh("IE_PROTO"),Ub=xe.Object,BQ=Ub.prototype,Vb=OQ?Ub.getPrototypeOf:function(e){var t=Ic(e);if(_e(t,W9))return t[W9];var n=t.constructor;return Yt(n)&&t instanceof n?n.prototype:t instanceof Ub?BQ:null},Wb=Tn("iterator"),G9=!1;[].keys&&("next"in(U9=[].keys())?(H9=Vb(Vb(U9)))!==Object.prototype&&(oo=H9):G9=!0);var FQ=oo==null||Fn(function(){var e={};return oo[Wb].call(e)!==e});oo=FQ?{}:Ba(oo),Yt(oo[Wb])||ys(oo,Wb,function(){return this});var q9={IteratorPrototype:oo,BUGGY_SAFARI_ITERATORS:G9},TQ=q9.IteratorPrototype,kQ=function(){return this};xe.String,xe.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var e,t=!1,n={};try{(e=mt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}}();var PQ=AQ.PROPER,rg=q9.BUGGY_SAFARI_ITERATORS,Gb=Tn("iterator"),_Q=function(){return this},K9=function(e,t,n,r,i,o,a){(function(y,h,$,w){var x=h+" Iterator";y.prototype=Ba(TQ,{next:xa(+!w,$)}),eg(y,x,!1,!0),Ta[x]=kQ})(n,t,r);var u,s,l,c=function(y){if(y===i&&v)return v;if(!rg&&y in p)return p[y];switch(y){case"keys":case"values":case"entries":return function(){return new n(this,y)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,m=p[Gb]||p["@@iterator"]||i&&p[i],v=!rg&&m||c(i),g=t=="Array"&&p.entries||m;if(g&&(u=Vb(g.call(new e)))!==Object.prototype&&u.next&&(eg(u,f,!0,!0),Ta[f]=_Q),PQ&&i=="values"&&m&&m.name!=="values"&&(d=!0,v=function(){return vr(m,this)}),i)if(s={values:c("values"),keys:o?v:c("keys"),entries:c("entries")},a)for(l in s)(rg||d||!(l in p))&&ys(p,l,s[l]);else eo({target:t,proto:!0,forced:rg||d},s);return a&&p[Gb]!==v&&ys(p,Gb,v,{name:i}),Ta[t]=v,s},NQ=$s.set,IQ=$s.getterFor("Array Iterator");K9(Array,"Array",function(e,t){NQ(this,{type:"Array Iterator",target:kr(e),index:0,kind:t})},function(){var e=IQ(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),Ta.Arguments=Ta.Array;var Y9=Tn("toStringTag");for(var qb 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 X9=xe[qb],Kb=X9&&X9.prototype;Kb&&Gh(Kb)!==Y9&&_r(Kb,Y9,qb),Ta[qb]=Ta.Array}var jQ=DQ;Et("asyncDispose"),Et("dispose"),Et("matcher"),Et("metadata"),Et("observable"),Et("patternMatch"),Et("replaceAll");var ig=jQ,RQ=mt("".charAt),J9=mt("".charCodeAt),LQ=mt("".slice),Z9=function(e){return function(t,n){var r,i,o=Kh($b(t)),a=Db(n),u=o.length;return a<0||a>=u?e?"":void 0:(r=J9(o,a))<55296||r>56319||a+1===u||(i=J9(o,a+1))<56320||i>57343?e?RQ(o,a):r:e?LQ(o,a,a+2):i-56320+(r-55296<<10)+65536}},MQ={codeAt:Z9(!1),charAt:Z9(!0)}.charAt,zQ=$s.set,HQ=$s.getterFor("String Iterator");K9(String,"String",function(e){zQ(this,{type:"String Iterator",string:Kh(e),index:0})},function(){var e,t=HQ(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=MQ(n,r),t.index+=e.length,{value:e,done:!1})});var UQ=Pb.f("iterator"),VQ=$h(function(e){function t(n){return typeof ig=="function"&&typeof UQ=="symbol"?(e.exports=t=function(r){return typeof r},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(r){return r&&typeof ig=="function"&&r.constructor===ig&&r!==ig.prototype?"symbol":typeof r},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}),Q9=aK(VQ),WQ=Ah.EXISTS,GQ=is.f,eO=Function.prototype,qQ=ce(eO.toString),tO=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,KQ=ce(tO.exec);hr&&!WQ&&GQ(eO,"name",{configurable:!0,get:function(){try{return KQ(tO,qQ(this))[1]}catch(e){return""}}});var nO=function(){function e(){this.tag="select",this.width=80}return e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var n=this.mark,r=E.marks(t);return r&&r[n]?r[n]:""},e.prototype.isDisabled=function(t){return t.selection==null||(this.mark,!!Pe(E.nodes(t,{match:function(n){return A.getNodeType(n)==="pre"||!!E.isVoid(t,n)},universal:!0}),1)[0])},e.prototype.exec=function(t,n){var r=this.mark;n?t.addMark(r,n):t.removeMark(r)},e}(),YQ=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=K("fontSize.title"),n.iconSvg=gX,n.mark="fontSize",n}return rt(t,e),t.prototype.getOptions=function(n){var r=[],i=n.getMenuConfig(this.mark).fontSizeList,o=i===void 0?[]:i;r.push({text:K("fontSize.default"),value:""}),o.forEach(function(u){if(typeof u=="string")r.push({text:u,value:u});else if(Q9(u)==="object"){var s=u.name,l=u.value;r.push({text:s,value:l})}});var a=this.getValue(n);return r.forEach(function(u){u.value===a?u.selected=!0:delete u.selected}),r},t}(nO),XQ=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=K("fontFamily.title"),n.iconSvg=vX,n.mark="fontFamily",n.selectPanelWidth=150,n}return rt(t,e),t.prototype.getOptions=function(n){var r=[],i=n.getMenuConfig(this.mark).fontFamilyList,o=i===void 0?[]:i;r.push({text:K("fontFamily.default"),value:""}),o.forEach(function(u){if(typeof u=="string")r.push({text:u,value:u,styleForRenderMenuList:{"font-family":u}});else if(Q9(u)==="object"){var s=u.name,l=u.value;r.push({text:s,value:l,styleForRenderMenuList:{"font-family":l}})}});var a=this.getValue(n);return r.forEach(function(u){u.value===a?u.selected=!0:delete u.selected}),r},t}(nO),JQ={renderStyle:function(e,t){var n=e,r=n.fontSize,i=n.fontFamily,o=t;return r&&wa(o,{fontSize:r}),i&&wa(o,{fontFamily:i}),o},styleToHtml:function(e,t){if(!J.isText(e))return t;var n,r=e,i=r.fontSize,o=r.fontFamily;return i||o?((Q2(t)||ds(n=O(t))!=="span")&&(n=O(""+t+"")),i&&n.css("font-size",i),o&&n.css("font-family",o),fs(n)):t},preParseHtml:[iZ],parseStyleHtml:function(e,t,n){var r=O(e);if(!J.isText(t))return t;var i=t,o=n.getMenuConfig("fontSize").fontSizeList,a=o===void 0?[]:o,u=gr(r,"font-size"),s=a.find(function(p){return p.value&&p.value===u})||a.includes(u);u&&s&&(i.fontSize=u);var l=n.getMenuConfig("fontFamily").fontFamilyList,c=l===void 0?[]:l,f=gr(r,"font-family"),d=c.find(function(p){return p.value&&p.value===f})||c.includes(f);return f&&d&&(i.fontFamily=f),i},menus:[{key:"fontSize",factory:function(){return new YQ},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 XQ},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"]}}]},ZQ={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=O(e),n=gr(t,"padding-left");return/\dem/.test(n)&&t.css("text-indent","2em"),/\dpx/.test(n)&&parseInt(n,10)%32==0&&t.css("text-indent","2em"),t[0]}},rO=function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){var n=Pe(E.nodes(t,{match:function(i){return!!i.indent},universal:!0}),1),r=n[0];return r==null?"":Pe(r,1)[0].indent||""},e.prototype.isActive=function(t){return!1},e.prototype.getMatchNode=function(t){var n=Pe(E.nodes(t,{match:function(r){var i=A.getNodeType(r);return i==="paragraph"||!!i.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},e}(),QQ=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=K("indent.decrease"),n.iconSvg=mX,n}return rt(t,e),t.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!r.indent},t.prototype.exec=function(n,r){_.setNodes(n,{indent:null},{match:function(i){return ne.isElement(i)}})},t}(rO),eee=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=K("indent.increase"),n.iconSvg=yX,n}return rt(t,e),t.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!!r.indent},t.prototype.exec=function(n,r){_.setNodes(n,{indent:"2em"},{match:function(i){return ne.isElement(i)},mode:"highest"})},t}(rO),tee={renderStyle:function(e,t){if(!ne.isElement(e))return t;var n=e.indent,r=t;return n&&wa(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!ne.isElement(e))return t;var n=e.indent;if(!n)return t;var r=O(t);return r.css("text-indent",n),fs(r)},preParseHtml:[ZQ],parseStyleHtml:function(e,t,n){var r=O(e);if(!ne.isElement(t))return t;var i=t,o=gr(r,"text-indent"),a=parseInt(o,10);return o&&a>0&&(i.indent=o),i},menus:[{key:"indent",factory:function(){return new eee}},{key:"delIndent",factory:function(){return new QQ}}]},og=function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.getMatchNode=function(t){var n=Pe(E.nodes(t,{match:function(r){var i=A.getNodeType(r);return i==="paragraph"||i==="blockquote"||!!i.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},e.prototype.isDisabled=function(t){return t.selection==null||!!A.getSelectedElems(t).some(function(n){if(E.isVoid(t,n)&&E.isBlock(t,n))return!0;var r=n.type;return!!["pre","code"].includes(r)||void 0})},e}(),nee=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=K("justify.left"),n.iconSvg=bX,n}return rt(t,e),t.prototype.exec=function(n,r){_.setNodes(n,{textAlign:"left"},{match:function(i){return ne.isElement(i)&&!n.isInline(i)}})},t}(og),ree=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=K("justify.right"),n.iconSvg=$X,n}return rt(t,e),t.prototype.exec=function(n,r){_.setNodes(n,{textAlign:"right"},{match:function(i){return ne.isElement(i)&&!n.isInline(i)}})},t}(og),iee=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=K("justify.center"),n.iconSvg=wX,n}return rt(t,e),t.prototype.exec=function(n,r){_.setNodes(n,{textAlign:"center"},{match:function(i){return ne.isElement(i)&&!n.isInline(i)}})},t}(og),oee=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=K("justify.justify"),n.iconSvg=EX,n}return rt(t,e),t.prototype.exec=function(n,r){_.setNodes(n,{textAlign:"justify"},{match:function(i){return ne.isElement(i)&&!n.isInline(i)}})},t}(og),aee={renderStyle:function(e,t){if(!ne.isElement(e))return t;var n=e.textAlign,r=t;return n&&wa(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!ne.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=O(t);return r.css("text-align",n),fs(r)},parseStyleHtml:function(e,t,n){var r=O(e);if(!ne.isElement(t))return t;var i=t,o=gr(r,"text-align");return o&&(i.textAlign=o),i},menus:[{key:"justifyLeft",factory:function(){return new nee}},{key:"justifyRight",factory:function(){return new ree}},{key:"justifyCenter",factory:function(){return new iee}},{key:"justifyJustify",factory:function(){return new oee}}]},uee=function(){function e(){this.title=K("lineHeight.title"),this.iconSvg='',this.tag="select",this.width=80}return e.prototype.getOptions=function(t){var n=[],r=t.getMenuConfig("lineHeight").lineHeightList,i=r===void 0?[]:r;n.push({text:K("lineHeight.default"),value:""}),i.forEach(function(a){n.push({text:a,value:a})});var o=this.getValue(t);return n.forEach(function(a){a.value===o?a.selected=!0:delete a.selected}),n},e.prototype.getMatchNode=function(t){var n=Pe(E.nodes(t,{match:function(r){var i=A.getNodeType(r);return!!i.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(i)},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var n=this.getMatchNode(t);return n==null?"":ne.isElement(n)&&n.lineHeight||""},e.prototype.isDisabled=function(t){return t.selection==null||this.getMatchNode(t)==null},e.prototype.exec=function(t,n){_.setNodes(t,{lineHeight:n.toString()},{mode:"highest"})},e}(),see={renderStyle:function(e,t){if(!ne.isElement(e))return t;var n=e.lineHeight,r=t;return n&&wa(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!ne.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=O(t);return r.css("line-height",n),fs(r)},parseStyleHtml:function(e,t,n){var r=O(e);if(!ne.isElement(t))return t;var i=t,o=n.getMenuConfig("lineHeight").lineHeightList,a=o===void 0?[]:o,u=gr(r,"line-height");return u&&a.includes(u)&&(i.lineHeight=u),i},menus:[{key:"lineHeight",factory:function(){return new uee},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},lee=function(){function e(){this.title=K("undo.redo"),this.iconSvg='',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null},e.prototype.exec=function(t,n){typeof t.redo=="function"&&t.redo()},e}(),cee=function(){function e(){this.title=K("undo.undo"),this.iconSvg='',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null},e.prototype.exec=function(t,n){typeof t.undo=="function"&&t.undo()},e}(),fee={menus:[{key:"redo",factory:function(){return new lee}},{key:"undo",factory:function(){return new cee}}]},dee={type:"divider",renderElem:function(e,t,n){var r=A.isNodeSelected(n,e);return Cu("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:r?"true":""},style:{},on:{mousedown:function(i){return i.preventDefault()}}},[Cu("hr")])}},pee={type:"divider",elemToHtml:function(e,t){return"
        "}},hee={selector:"hr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"divider",children:[{text:""}]}}},gee=function(){function e(){this.title=K("divider.title"),this.iconSvg='',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!!A.getSelectedElems(t).some(function(n){if(t.isVoid(n))return!0;var r=A.getNodeType(n);return r==="table"||r==="pre"||void 0})},e.prototype.exec=function(t,n){_.insertNodes(t,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}(),vee={renderElems:[dee],elemsToHtml:[pee],parseElemsHtml:[hee],menus:[{key:"divider",factory:function(){return new gee}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(i){return i.type==="divider"||t(i)},r.normalizeNode=function(i){var o=Pe(i,2),a=o[0],u=o[1];if(A.getNodeType(a)!=="divider")return n([a,u]);A.isLastNode(r,a)&&_.insertNodes(r,A.genEmptyParagraph(),{at:[u[0]+1]})},r}},mee=Th.map;It({target:"Array",proto:!0,forced:!k2("map")},{map:function(e){return mee(this,e,arguments.length>1?arguments[1]:void 0)}});var yee=ce([].join),bee=xh!=Object,$ee=d7("join",",");It({target:"Array",proto:!0,forced:bee||!$ee},{join:function(e){return yee(rs(this),e===void 0?",":e)}});var wee=function(){function e(){this.title=K("codeBlock.title"),this.iconSvg='',this.tag="button"}return e.prototype.getSelectCodeElem=function(t){var n=A.getSelectedNodeByType(t,"code");if(n==null)return null;var r=A.getParentNode(t,n);return r==null||A.getNodeType(r)!=="pre"?null:n},e.prototype.getValue=function(t){var n=this.getSelectCodeElem(t);return n==null?"":n.language||""},e.prototype.isActive=function(t){return!!this.getSelectCodeElem(t)},e.prototype.isDisabled=function(t){if(t.selection==null)return!0;var n=A.getSelectedElems(t);return!!n.some(function(r){return t.isVoid(r)})||!n.some(function(r){var i=A.getNodeType(r);if(i==="pre"||i==="paragraph")return!0})},e.prototype.exec=function(t,n){this.isActive(t)?this.changeToPlainText(t):this.changeToCodeBlock(t,n.toString())},e.prototype.changeToPlainText=function(t){var n=this.getSelectCodeElem(t);if(n!=null){var r=q.string(n);_.removeNodes(t,{mode:"highest"});var i=r.split(` `).map(function(o){return{type:"paragraph",children:[{text:o}]}});_.insertNodes(t,i,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(t,n){var r,i,o=[],a=E.nodes(t,{match:function(f){return t.children.includes(f)},universal:!0});try{for(var u=s7(a),s=u.next();!s.done;s=u.next()){var l=Pe(s.value,1)[0];l&&o.push(q.string(l))}}catch(f){r={error:f}}finally{try{s&&!s.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}_.removeNodes(t,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:n,children:[{text:o.join(` `)}]}]};_.insertNodes(t,c,{mode:"highest"})},e}(),Eee={key:"codeBlock",factory:function(){return new wee}};It({target:"String",proto:!0,forced:Oc("anchor")},{anchor:function(e){return Ac(this,"a","name",e)}}),U2("match",function(e,t,n){return[function(r){var i=Yn(this),o=r==null?void 0:Sh(r,e);return o?vt(o,r,i):new RegExp(r)[e](ct(i))},function(r){var i=Bn(this),o=ct(r),a=n(t,i,o);if(a.done)return a.value;if(!i.global)return Sc(i,o);var u=i.unicode;i.lastIndex=0;for(var s,l=[],c=0;(s=Sc(i,o))!==null;){var f=ct(s[0]);l[c]=f,f===""&&(i.lastIndex=V2(o,$c(i.lastIndex),u)),c++}return c===0?null:l}]});var xee={type:"pre",renderElem:function(e,t,n){return fe("pre",null,t)}},See={type:"code",renderElem:function(e,t,n){return fe("code",null,t)}},Dee={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=O(e);return(t=t.filter(function(i){return A.getNodeType(i)==="code"})).length===0&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter(function(i){return A.getNodeType(i)==="code"})}}},Cee={menus:[Eee],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var i=e;return i.insertBreak=function(){var o=A.getSelectedNodeByType(i,"code");if(o!=null){var a=function(l,c){var f=c.selection;if(f==null)return"";var d=q.string(l),p=f.anchor.offset,m=d.slice(0,p).split(` `),v=m.length;return v===0?"":m[v-1]}(o,i);if(a){var u=a.match(/^\s+/);if(u!=null&&u[0]!=null){var s=u[0];return void i.insertText(` `+s)}}i.insertText(` `)}else t()},i.normalizeNode=function(o){var a=Pe(o,2),u=a[0],s=a[1],l=A.getNodeType(u);return l==="code"&&s.length<=1&&_.setNodes(i,{type:"paragraph"},{at:s}),l==="pre"&&(A.isLastNode(i,u)&&_.insertNodes(i,A.genEmptyParagraph(),{at:[s[0]+1]}),A.getNodeType(u.children[0])!=="code"&&(_.unwrapNodes(i),_.setNodes(i,{type:"paragraph"},{mode:"highest"}))),n([u,s])},i.insertData=function(o){if(A.getSelectedNodeByType(i,"code")!=null){var a=o.getData("text/plain");E.insertText(i,a)}else r(o)},i},renderElems:[xee,See],elemsToHtml:[{type:"code",elemToHtml:function(e,t){return""+t+""}},{type:"pre",elemToHtml:function(e,t){return"
        "+t+"
        "}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(e){var t=O(e);if(ds(t)!=="code")return e;var n=t.find("xmp");if(n.length===0)return e;var r=n.text();return n.remove(),t.text(r),t[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(e,t,n){return{type:"code",language:"",children:[{text:O(e)[0].textContent||""}]}}},Dee]},Aee=function(){function e(){this.title=K("fullScreen.title"),this.iconSvg='',this.tag="button",this.alwaysEnable=!0}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return t.isFullScreen},e.prototype.isDisabled=function(t){return!1},e.prototype.exec=function(t,n){t.isFullScreen?t.unFullScreen():t.fullScreen()},e}(),Oee={menus:[{key:"fullScreen",factory:function(){return new Aee}}]},Bee=function(){function e(){this.title=K("common.enter"),this.iconSvg='',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!!j.isExpanded(n)},e.prototype.exec=function(t,n){var r=t.selection;if(r!=null){var i=[r.anchor.path[0]];_.insertNodes(t,{type:"paragraph",children:[{text:""}]},{at:i}),t.select(E.start(t,i))}},e}(),Fee=[PX,fJ,JQ,tee,aee,see,MJ,vee,nZ,SJ,Cee,eZ,aJ,nX,VJ,fee,Oee,{menus:[{key:"enter",factory:function(){return new Bee}}]}];pn("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),pn("zh-CN",{listModule:{unOrderedList:"\u65E0\u5E8F\u5217\u8868",orderedList:"\u6709\u5E8F\u5217\u8868"}});var iO=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof Be.g!="undefined"?Be.g:typeof self!="undefined"?self:{};function Yb(e){var t={exports:{}};return e(t,t.exports),t.exports}var ao,ag,ug=function(e){return e&&e.Math==Math&&e},de=ug(typeof globalThis=="object"&&globalThis)||ug(typeof window=="object"&&window)||ug(typeof self=="object"&&self)||ug(typeof iO=="object"&&iO)||function(){return this}()||Function("return this")(),oO=Function.prototype,Xb=oO.bind,Jb=oO.call,Tee=Xb&&Xb.bind(Jb),Ae=Xb?function(e){return e&&Tee(Jb,e)}:function(e){return e&&function(){return Jb.apply(e,arguments)}},ft=function(e){try{return!!e()}catch(t){return!0}},kee=Ae({}.toString),Pee=Ae("".slice),pi=function(e){return Pee(kee(e),8,-1)},Zb=de.Object,_ee=Ae("".split),aO=ft(function(){return!Zb("z").propertyIsEnumerable(0)})?function(e){return pi(e)=="String"?_ee(e,""):Zb(e)}:Zb,Nee=de.TypeError,sg=function(e){if(e==null)throw Nee("Can't call method on "+e);return e},ws=function(e){return aO(sg(e))},Iee=Object.defineProperty,Qb=function(e,t){try{Iee(de,e,{value:t,configurable:!0,writable:!0})}catch(n){de[e]=t}return t},uo=de["__core-js_shared__"]||Qb("__core-js_shared__",{}),e4=Yb(function(e){(e.exports=function(t,n){return uo[t]||(uo[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),jee=de.Object,Vc=function(e){return jee(sg(e))},Ree=Ae({}.hasOwnProperty),jt=Object.hasOwn||function(e,t){return Ree(Vc(e),t)},Lee=0,Mee=Math.random(),zee=Ae(1 .toString),t4=function(e){return"Symbol("+(e===void 0?"":e)+")_"+zee(++Lee+Mee,36)},dt=function(e){return typeof e=="function"},Hee=function(e){return dt(e)?e:void 0},Wc=function(e,t){return arguments.length<2?Hee(de[e]):de[e]&&de[e][t]},n4=Wc("navigator","userAgent")||"",uO=de.process,sO=de.Deno,lO=uO&&uO.versions||sO&&sO.version,cO=lO&&lO.v8;cO&&(ag=(ao=cO.split("."))[0]>0&&ao[0]<4?1:+(ao[0]+ao[1])),!ag&&n4&&(!(ao=n4.match(/Edge\/(\d+)/))||ao[1]>=74)&&(ao=n4.match(/Chrome\/(\d+)/))&&(ag=+ao[1]);var lg,r4=ag,i4=!!Object.getOwnPropertySymbols&&!ft(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r4&&r4<41}),o4=i4&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Gc=e4("wks"),ka=de.Symbol,fO=ka&&ka.for,Uee=o4?ka:ka&&ka.withoutSetter||t4,Xt=function(e){if(!jt(Gc,e)||!i4&&typeof Gc[e]!="string"){var t="Symbol."+e;i4&&jt(ka,e)?Gc[e]=ka[e]:Gc[e]=o4&&fO?fO(t):Uee(t)}return Gc[e]},pt=function(e){return typeof e=="object"?e!==null:dt(e)},Vee=de.String,Wee=de.TypeError,vn=function(e){if(pt(e))return e;throw Wee(Vee(e)+" is not an object")},so=!ft(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),a4=de.document,Gee=pt(a4)&&pt(a4.createElement),u4=function(e){return Gee?a4.createElement(e):{}},dO=!so&&!ft(function(){return Object.defineProperty(u4("div"),"a",{get:function(){return 7}}).a!=7}),qc=Function.prototype.call,Rt=qc.bind?qc.bind(qc):function(){return qc.apply(qc,arguments)},cg=Ae({}.isPrototypeOf),qee=de.Object,s4=o4?function(e){return typeof e=="symbol"}:function(e){var t=Wc("Symbol");return dt(t)&&cg(t.prototype,qee(e))},Kee=de.String,l4=function(e){try{return Kee(e)}catch(t){return"Object"}},Yee=de.TypeError,c4=function(e){if(dt(e))return e;throw Yee(l4(e)+" is not a function")},Kc=function(e,t){var n=e[t];return n==null?void 0:c4(n)},Xee=de.TypeError,Jee=de.TypeError,Zee=Xt("toPrimitive"),Qee=function(e,t){if(!pt(e)||s4(e))return e;var n,r=Kc(e,Zee);if(r){if(t===void 0&&(t="default"),n=Rt(r,e,t),!pt(n)||s4(n))return n;throw Jee("Can't convert object to primitive value")}return t===void 0&&(t="number"),function(i,o){var a,u;if(o==="string"&&dt(a=i.toString)&&!pt(u=Rt(a,i))||dt(a=i.valueOf)&&!pt(u=Rt(a,i))||o!=="string"&&dt(a=i.toString)&&!pt(u=Rt(a,i)))return u;throw Xee("Can't convert object to primitive value")}(e,t)},f4=function(e){var t=Qee(e,"string");return s4(t)?t:t+""},ete=de.TypeError,pO=Object.defineProperty,Pa={f:so?pO:function(e,t,n){if(vn(e),t=f4(t),vn(n),dO)try{return pO(e,t,n)}catch(r){}if("get"in n||"set"in n)throw ete("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},tte=Math.ceil,nte=Math.floor,Yc=function(e){var t=+e;return t!=t||t===0?0:(t>0?nte:tte)(t)},rte=Math.max,ite=Math.min,d4=function(e,t){var n=Yc(e);return n<0?rte(n+t,0):ite(n,t)},ote=Math.min,hO=function(e){return e>0?ote(Yc(e),9007199254740991):0},Es=function(e){return hO(e.length)},gO=function(e){return function(t,n,r){var i,o=ws(t),a=Es(o),u=d4(r,a);if(e&&n!=n){for(;a>u;)if((i=o[u++])!=i)return!0}else for(;a>u;u++)if((e||u in o)&&o[u]===n)return e||u||0;return!e&&-1}},vO={includes:gO(!0),indexOf:gO(!1)},fg={},ate=vO.indexOf,mO=Ae([].push),yO=function(e,t){var n,r=ws(e),i=0,o=[];for(n in r)!jt(fg,n)&&jt(r,n)&&mO(o,n);for(;t.length>i;)jt(r,n=t[i++])&&(~ate(o,n)||mO(o,n));return o},dg=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ute=Object.keys||function(e){return yO(e,dg)},ste=so?Object.defineProperties:function(e,t){vn(e);for(var n,r=ws(t),i=ute(t),o=i.length,a=0;o>a;)Pa.f(e,n=i[a++],r[n]);return e},lte=Wc("document","documentElement"),bO=e4("keys"),p4=function(e){return bO[e]||(bO[e]=t4(e))},$O=p4("IE_PROTO"),h4=function(){},wO=function(e){return""},EO=function(e){e.write(wO("")),e.close();var t=e.parentWindow.Object;return e=null,t},pg=function(){try{lg=new ActiveXObject("htmlfile")}catch(r){}var e,t;pg=typeof document!="undefined"?document.domain&&lg?EO(lg):((t=u4("iframe")).style.display="none",lte.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(wO("document.F=Object")),e.close(),e.F):EO(lg);for(var n=dg.length;n--;)delete pg.prototype[dg[n]];return pg()};fg[$O]=!0;var g4=Object.create||function(e,t){var n;return e!==null?(h4.prototype=vn(e),n=new h4,h4.prototype=null,n[$O]=e):n=pg(),t===void 0?n:ste(n,t)},v4=Xt("unscopables"),m4=Array.prototype;m4[v4]==null&&Pa.f(m4,v4,{configurable:!0,value:g4(null)});var Xc=function(e){m4[v4][e]=!0},xs={},cte=Ae(Function.toString);dt(uo.inspectSource)||(uo.inspectSource=function(e){return cte(e)});var hg,Jc,gg,y4=uo.inspectSource,xO=de.WeakMap,SO=dt(xO)&&/native code/.test(y4(xO)),vg=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},hi=so?function(e,t,n){return Pa.f(e,t,vg(1,n))}:function(e,t,n){return e[t]=n,e},b4=de.TypeError,fte=de.WeakMap;if(SO||uo.state){var _a=uo.state||(uo.state=new fte),dte=Ae(_a.get),DO=Ae(_a.has),pte=Ae(_a.set);hg=function(e,t){if(DO(_a,e))throw new b4("Object already initialized");return t.facade=e,pte(_a,e,t),t},Jc=function(e){return dte(_a,e)||{}},gg=function(e){return DO(_a,e)}}else{var Ss=p4("state");fg[Ss]=!0,hg=function(e,t){if(jt(e,Ss))throw new b4("Object already initialized");return t.facade=e,hi(e,Ss,t),t},Jc=function(e){return jt(e,Ss)?e[Ss]:{}},gg=function(e){return jt(e,Ss)}}var Na,CO,AO,Nr={set:hg,get:Jc,has:gg,enforce:function(e){return gg(e)?Jc(e):hg(e,{})},getterFor:function(e){return function(t){var n;if(!pt(t)||(n=Jc(t)).type!==e)throw b4("Incompatible receiver, "+e+" required");return n}}},OO={}.propertyIsEnumerable,BO=Object.getOwnPropertyDescriptor,hte={f:BO&&!OO.call({1:2},1)?function(e){var t=BO(this,e);return!!t&&t.enumerable}:OO},FO=Object.getOwnPropertyDescriptor,TO={f:so?FO:function(e,t){if(e=ws(e),t=f4(t),dO)try{return FO(e,t)}catch(n){}if(jt(e,t))return vg(!Rt(hte.f,e,t),e[t])}},kO=Function.prototype,gte=so&&Object.getOwnPropertyDescriptor,$4=jt(kO,"name"),w4={EXISTS:$4,PROPER:$4&&function(){}.name==="something",CONFIGURABLE:$4&&(!so||so&>e(kO,"name").configurable)},Ir=Yb(function(e){var t=w4.CONFIGURABLE,n=Nr.get,r=Nr.enforce,i=String(String).split("String");(e.exports=function(o,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;dt(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!jt(u,"name")||t&&u.name!==p)&&hi(u,"name",p),(l=r(u)).source||(l.source=i.join(typeof p=="string"?p:""))),o!==de?(c?!d&&o[a]&&(f=!0):delete o[a],f?o[a]=u:hi(o,a,u)):f?o[a]=u:Qb(a,u)})(Function.prototype,"toString",function(){return dt(this)&&n(this).source||y4(this)})}),vte=dg.concat("length","prototype"),mg={f:Object.getOwnPropertyNames||function(e){return yO(e,vte)}},mte={f:Object.getOwnPropertySymbols},yte=Ae([].concat),bte=Wc("Reflect","ownKeys")||function(e){var t=mg.f(vn(e)),n=mte.f;return n?yte(t,n(e)):t},$te=function(e,t){for(var n=bte(t),r=Pa.f,i=TO.f,o=0;o=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values");xs.Arguments=xs.Array,Xc("keys"),Xc("values"),Xc("entries");var RO={};RO[Xt("toStringTag")]="z";var A4=String(RO)==="[object z]",Mte=Xt("toStringTag"),zte=de.Object,Hte=pi(function(){return arguments}())=="Arguments",wg=A4?pi:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(i,o){try{return i[o]}catch(a){}}(t=zte(e),Mte))=="string"?n:Hte?pi(t):(r=pi(t))=="Object"&&dt(t.callee)?"Arguments":r},Ute=A4?{}.toString:function(){return"[object "+wg(this)+"]"};A4||Ir(Object.prototype,"toString",Ute,{unsafe:!0});var Vte=de.String,gi=function(e){if(wg(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Vte(e)},Wte=Ae("".charAt),LO=Ae("".charCodeAt),Gte=Ae("".slice),MO=function(e){return function(t,n){var r,i,o=gi(sg(t)),a=Yc(n),u=o.length;return a<0||a>=u?e?"":void 0:(r=LO(o,a))<55296||r>56319||a+1===u||(i=LO(o,a+1))<56320||i>57343?e?Wte(o,a):r:e?Gte(o,a,a+2):i-56320+(r-55296<<10)+65536}},zO={codeAt:MO(!1),charAt:MO(!0)},qte=zO.charAt,Kte=Nr.set,Yte=Nr.getterFor("String Iterator");jO(String,"String",function(e){Kte(this,{type:"String Iterator",string:gi(e),index:0})},function(){var e,t=Yte(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=qte(n,r),t.index+=e.length,{value:e,done:!1})});var O4=function(e,t,n){for(var r in t)Ir(e,r,t[r],n);return e},Xte=de.Array,Jte=Math.max,HO=mg.f,UO=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Zte=function(e){try{return HO(e)}catch(t){return function(n,r,i){for(var o,a,u,s,l=Es(n),c=d4(r,l),f=d4(i===void 0?l:i,l),d=Xte(Jte(f-c,0)),p=0;co;o++)if((u=y(e[o]))&&cg(KO,u))return u;return new xg(!1)}r=function(h,$){var w=arguments.length<2?GO(h):$;if(c4(w))return vn(Rt(w,h));throw ine(l4(h)+" is not iterable")}(e,i)}for(s=r.next;!(l=Rt(s,r)).done;){try{u=y(l.value)}catch(h){qO(r,"throw",h)}if(typeof u=="object"&&u&&cg(KO,u))return u}return new xg(!1)},ane=de.TypeError,XO=function(e,t){if(cg(t,e))return e;throw ane("Incorrect invocation")},JO=Xt("iterator"),ZO=!1;try{var une=0,QO={next:function(){return{done:!!une++}},return:function(){ZO=!0}};QO[JO]=function(){return this},Array.from(QO,function(){throw 2})}catch(e){}var T4=Array.isArray||function(e){return pi(e)=="Array"},eB=function(){},sne=[],tB=Wc("Reflect","construct"),k4=/^\s*(?:class|function)\b/,lne=Ae(k4.exec),cne=!k4.exec(eB),tf=function(e){if(!dt(e))return!1;try{return tB(eB,sne,e),!0}catch(t){return!1}},fne=!tB||ft(function(){var e;return tf(tf.call)||!tf(Object)||!tf(function(){e=!0})||e})?function(e){if(!dt(e))return!1;switch(wg(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return cne||!!lne(k4,y4(e))}:tf,dne=Xt("species"),nB=de.Array,rB=function(e,t){return new(function(n){var r;return T4(n)&&(r=n.constructor,(fne(r)&&(r===nB||T4(r.prototype))||pt(r)&&(r=r[dne])===null)&&(r=void 0)),r===void 0?nB:r}(e))(t===0?0:t)},iB=Ae([].push),co=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,o=e==6,a=e==7,u=e==5||o;return function(s,l,c,f){for(var d,p,m=Vc(s),v=aO(m),g=F4(l,c),y=Es(v),h=0,$=f||rB,w=t?$(s,y):n||a?$(s,0):void 0;y>h;h++)if((u||h in v)&&(p=g(d=v[h],h,m),e))if(t)w[h]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return h;case 2:iB(w,d)}else switch(e){case 4:return!1;case 7:iB(w,d)}return o?-1:r||i?i:w}},P4={forEach:co(0),map:co(1),filter:co(2),some:co(3),every:co(4),find:co(5),findIndex:co(6),filterReject:co(7)},Sg=B4.getWeakData,pne=Nr.set,hne=Nr.getterFor,gne=P4.find,vne=P4.findIndex,mne=Ae([].splice),yne=0,Dg=function(e){return e.frozen||(e.frozen=new oB)},oB=function(){this.entries=[]},_4=function(e,t){return gne(e.entries,function(n){return n[0]===t})};oB.prototype={get:function(e){var t=_4(this,e);if(t)return t[1]},has:function(e){return!!_4(this,e)},set:function(e,t){var n=_4(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=vne(this.entries,function(n){return n[0]===e});return~t&&mne(this.entries,t,1),!!~t}};var nf,aB={getConstructor:function(e,t,n,r){var i=e(function(s,l){XO(s,o),pne(s,{type:t,id:yne++,frozen:void 0}),l!=null&&YO(l,s[r],{that:s,AS_ENTRIES:n})}),o=i.prototype,a=hne(t),u=function(s,l,c){var f=a(s),d=Sg(vn(l),!0);return d===!0?Dg(f).set(l,c):d[f.id]=c,s};return O4(o,{delete:function(s){var l=a(this);if(!pt(s))return!1;var c=Sg(s);return c===!0?Dg(l).delete(s):c&&jt(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!pt(s))return!1;var c=Sg(s);return c===!0?Dg(l).has(s):c&&jt(c,l.id)}}),O4(o,n?{get:function(s){var l=a(this);if(pt(s)){var c=Sg(s);return c===!0?Dg(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)}}),i}},Cg=Nr.enforce,bne=!de.ActiveXObject&&"ActiveXObject"in de,uB=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},$ne=function(e,t,n){var r=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=r?"set":"add",a=de[e],u=a&&a.prototype,s=a,l={},c=function(g){var y=Ae(u[g]);Ir(u,g,g=="add"?function(h){return y(this,h===0?0:h),this}:g=="delete"?function(h){return!(i&&!pt(h))&&y(this,h===0?0:h)}:g=="get"?function(h){return i&&!pt(h)?void 0:y(this,h===0?0:h)}:g=="has"?function(h){return!(i&&!pt(h))&&y(this,h===0?0:h)}:function(h,$){return y(this,h===0?0:h,$),this})};if(E4(e,!dt(a)||!(i||u.forEach&&!ft(function(){new a().entries().next()}))))s=n.getConstructor(t,e,r,o),B4.enable();else if(E4(e,!0)){var f=new s,d=f[o](i?{}:-0,1)!=f,p=ft(function(){f.has(1)}),m=function(g,y){if(!y&&!ZO)return!1;var h=!1;try{var $={};$[JO]=function(){return{next:function(){return{done:h=!0}}}},g($)}catch(w){}return h}(function(g){new a(g)}),v=!i&&ft(function(){for(var g=new a,y=5;y--;)g[o](y,y);return!g.has(-0)});m||((s=t(function(g,y){XO(g,u);var h=function($,w,x){var S,C;return bg&&dt(S=w.constructor)&&S!==x&&pt(C=S.prototype)&&C!==x.prototype&&bg($,C),$}(new a,g,s);return y!=null&&YO(y,h[o],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(p||v)&&(c("delete"),c("has"),r&&c("get")),(v||d)&&c(o),i&&u.clear&&delete u.clear}return l[e]=s,lo({global:!0,forced:s!=a},l),C4(s,e),i||n.setStrong(s,e,r),s}("WeakMap",uB,aB);if(SO&&bne){nf=aB.getConstructor(uB,"WeakMap",!0),B4.enable();var rf=$ne.prototype,sB=Ae(rf.delete),Ag=Ae(rf.has),lB=Ae(rf.get),cB=Ae(rf.set);O4(rf,{delete:function(e){if(pt(e)&&!Ia(e)){var t=Cg(this);return t.frozen||(t.frozen=new nf),sB(this,e)||t.frozen.delete(e)}return sB(this,e)},has:function(e){if(pt(e)&&!Ia(e)){var t=Cg(this);return t.frozen||(t.frozen=new nf),Ag(this,e)||t.frozen.has(e)}return Ag(this,e)},get:function(e){if(pt(e)&&!Ia(e)){var t=Cg(this);return t.frozen||(t.frozen=new nf),Ag(this,e)?lB(this,e):t.frozen.get(e)}return lB(this,e)},set:function(e,t){if(pt(e)&&!Ia(e)){var n=Cg(this);n.frozen||(n.frozen=new nf),Ag(this,e)?cB(this,e,t):n.frozen.set(e,t)}else cB(this,e,t);return this}})}var fB={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},N4=u4("span").classList,dB=N4&&N4.constructor&&N4.constructor.prototype,wne=dB===Object.prototype?void 0:dB,I4=Xt("iterator"),pB=Xt("toStringTag"),j4=ef.values,hB=function(e,t){if(e){if(e[I4]!==j4)try{hi(e,I4,j4)}catch(r){e[I4]=j4}if(e[pB]||hi(e,pB,t),fB[t]){for(var n in ef)if(e[n]!==ef[n])try{hi(e,n,ef[n])}catch(r){e[n]=ef[n]}}}};for(var R4 in fB)hB(de[R4]&&de[R4].prototype,R4);hB(wne,"DOMTokenList");var L4=new WeakMap,Ene={type:"list-item",renderElem:function(e,t,n){L4.set(e,n);var r=e,i=r.level,o=i===void 0?0:i,a=r.ordered,u={margin:"5px 0 5px "+20*o+"px"},s="";if(a!==void 0&&a){var l=function(f,d){var p=d,m=p.type,v=p.level,g=v===void 0?0:v,y=p.ordered,h=y!==void 0&&y;if(!h)return-1;var $=1,w=d,x=A.findPath(f,w);if(x[0]===0)return 1;for(;x[0]>0;){var S=P.previous(x),C=E.node(f,S);if(C==null)break;var N=C[0],R=N.level,U=R===void 0?0:R,W=N.type,Z=N.ordered;if(W!==m||U=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function of(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function mB(e){return E.nodes(e,{at:e.selection||void 0,match:function(t){return A.findPath(e,t).length===1}})}var xne=vO.includes;lo({target:"Array",proto:!0},{includes:function(e){return xne(this,e,arguments.length>1?arguments[1]:void 0)}}),Xc("includes");var yB,z4,Sne=function(){var e=vn(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},H4=de.RegExp,U4=ft(function(){var e=H4("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),Dne=U4||ft(function(){return!H4("a","y").sticky}),Cne={BROKEN_CARET:U4||ft(function(){var e=H4("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:Dne,UNSUPPORTED_Y:U4},Ane=de.RegExp,One=ft(function(){var e=Ane(".","s");return!(e.dotAll&&e.exec(` `)&&e.flags==="s")}),Bne=de.RegExp,Fne=ft(function(){var e=Bne("(?b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$c")!=="bc"}),Tne=Nr.get,kne=e4("native-string-replace",String.prototype.replace),Og=RegExp.prototype.exec,V4=Og,Pne=Ae("".charAt),_ne=Ae("".indexOf),Nne=Ae("".replace),W4=Ae("".slice),G4=(z4=/b*/g,Rt(Og,yB=/a/,"a"),Rt(Og,z4,"a"),yB.lastIndex!==0||z4.lastIndex!==0),bB=Cne.BROKEN_CARET,q4=/()??/.exec("")[1]!==void 0;(G4||q4||bB||One||Fne)&&(V4=function(e){var t,n,r,i,o,a,u,s=this,l=Tne(s),c=gi(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Rt(V4,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=bB&&s.sticky,m=Rt(Sne,s),v=s.source,g=0,y=c;if(p&&(m=Nne(m,"y",""),_ne(m,"g")===-1&&(m+="g"),y=W4(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Pne(c,s.lastIndex-1)!==` `)&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",m)),q4&&(n=new RegExp("^"+v+"$(?!\\s)",m)),G4&&(r=s.lastIndex),i=Rt(Og,p?n:s,y),p?i?(i.input=W4(i.input,g),i[0]=W4(i[0],g),i.index=s.lastIndex,s.lastIndex+=i[0].length):s.lastIndex=0:G4&&i&&(s.lastIndex=s.global?i.index+i[0].length:r),q4&&i&&i.length>1&&Rt(kne,i[0],n,function(){for(o=1;og?0:R===g?C===m?0:1:0}(e);if(a>0)for(var u=0;u",wB.push(o);var s=function(l){var c=L4.get(l);if(c==null)return 0;var f=l,d=f.type,p=f.ordered,m=p!==void 0&&p,v=f.level,g=v===void 0?0:v,y=A.findPath(c,l);if(y[0]===c.children.length-1)return g+1;var h=P.next(y),$=E.node(c,h);if(!$)return 0;var w=of($,1)[0];if(A.getNodeType(w)!==d)return g+1;var x=w,S=x.ordered,C=S!==void 0&&S,N=x.level,R=N===void 0?0:N;return Rg?0:R===g?C===m?0:1:0}(e);if(s>0)for(u=0;u";return{html:"
      • "+t+"
      • ",prefix:n,suffix:r}}},Une=Xt("species"),Vne=P4.filter,Wne=(EB="filter",r4>=51||!ft(function(){var e=[];return(e.constructor={})[Une]=function(){return{foo:1}},e[EB](Boolean).foo!==1}));lo({target:"Array",proto:!0,forced:!Wne},{filter:function(e){return Vne(this,e,arguments.length>1?arguments[1]:void 0)}});var K4=Function.prototype,xB=K4.apply,Gne=K4.bind,SB=K4.call,qne=typeof Reflect=="object"&&Reflect.apply||(Gne?SB.bind(xB):function(){return SB.apply(xB,arguments)}),Kne=Xt("species"),Y4=RegExp.prototype,Yne=zO.charAt,Xne=function(e,t,n){return t+(n?Yne(e,t).length:1)},Jne=Math.floor,X4=Ae("".charAt),Zne=Ae("".replace),J4=Ae("".slice),Qne=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ere=/\$([$&'`]|\d{1,2})/g,tre=function(e,t,n,r,i,o){var a=n+e.length,u=r.length,s=ere;return i!==void 0&&(i=Vc(i),s=Qne),Zne(o,s,function(l,c){var f;switch(X4(c,0)){case"$":return"$";case"&":return e;case"`":return J4(t,0,n);case"'":return J4(t,a);case"<":f=i[J4(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=Jne(d/10);return p===0?l:p<=u?r[p-1]===void 0?X4(c,1):r[p-1]+X4(c,1):l}f=r[d-1]}return f===void 0?"":f})},nre=de.TypeError,rre=function(e,t){var n=e.exec;if(dt(n)){var r=Rt(n,e,t);return r!==null&&vn(r),r}if(pi(e)==="RegExp")return Rt(Bg,e,t);throw nre("RegExp#exec called on incompatible receiver")},Z4=Xt("replace"),ire=Math.max,ore=Math.min,are=Ae([].concat),Q4=Ae([].push),DB=Ae("".indexOf),CB=Ae("".slice),ure="a".replace(/./,"$0")==="$0",AB=!!/./[Z4]&&/./[Z4]("a","$0")==="";(function(e,t,n,r){var i=Xt(e),o=!ft(function(){var l={};return l[i]=function(){return 7},""[e](l)!=7}),a=o&&!ft(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[Kne]=function(){return c},c.flags="",c[i]=/./[i]),c.exec=function(){return l=!0,null},c[i](""),!l});if(!o||!a||n){var u=Ae(/./[i]),s=t(i,""[e],function(l,c,f,d,p){var m=Ae(l),v=c.exec;return v===Bg||v===Y4.exec?o&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:m(f,c,d)}:{done:!1}});Ir(String.prototype,e,s[0]),Ir(Y4,i,s[1])}r&&hi(Y4[i],"sham",!0)})("replace",function(e,t,n){var r=AB?"$":"$0";return[function(i,o){var a=sg(this),u=i==null?void 0:Kc(i,Z4);return u?Rt(u,i,a,o):Rt(t,gi(a),i,o)},function(i,o){var a=vn(this),u=gi(i);if(typeof o=="string"&&DB(o,r)===-1&&DB(o,"$<")===-1){var s=n(t,a,u,o);if(s.done)return s.value}var l=dt(o);l||(o=gi(o));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=rre(a,u);if(p===null||(Q4(d,p),!c))break;gi(p[0])===""&&(a.lastIndex=Xne(u,hO(a.lastIndex),f))}for(var m,v="",g=0,y=0;y=g&&(v+=CB(u,g,$)+N,g=$+h.length)}return v+CB(u,g)}]},!!ft(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$
        ")!=="7"})||!ure||AB);var sre=de.TypeError,OB=function(e,t,n,r,i,o,a,u){for(var s,l,c=i,f=0,d=!!a&&F4(a,u);f0&&T4(s))l=Es(s),c=OB(e,t,s,l,c,o-1)-1;else{if(c>=9007199254740991)throw sre("Exceed the acceptable array length");e[c]=s}c++}f++}return c},lre=OB;function e$(e){return e.length?e[0].tagName.toLowerCase():""}lo({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=Vc(this),n=Es(t),r=rB(t,0);return r.length=lre(r,t,t,n,0,e===void 0?1:Yc(e)),r}}),Xc("flat"),lo({global:!0},{globalThis:de}),zn&&(O.fn.append=zn),Mn&&(O.fn.attr=Mn),wu&&(O.fn.parent=wu);var cre={renderElems:[Ene],editorPlugin:function(e){var t=e.deleteBackward,n=e.handleTab,r=e.normalizeNode,i=e;return i.deleteBackward=function(o){var a=i.selection;if(a!=null)if(j.isExpanded(a))t(o);else{var u=A.getSelectedNodeByType(i,"list-item");if(u!=null)if(a.focus.offset!==0)t(o);else{var s=u.level,l=s===void 0?0:s;l>0?_.setNodes(i,{level:l-1}):_.setNodes(i,{type:"paragraph",ordered:void 0,level:void 0})}else t(o)}else t(o)},i.handleTab=function(){var o,a,u,s,l=i.selection;if(l!=null){if(j.isCollapsed(l)){var c=A.getSelectedNodeByType(i,"list-item");if(c==null)return void n();if(l.focus.offset===0){var f=c.level,d=f===void 0?0:f;return void _.setNodes(i,{level:d+1})}}if(j.isExpanded(l)){var p=0,m=!1;try{for(var v=vB(mB(i)),g=v.next();!g.done;g=v.next()){var y=of(g.value,1)[0];A.getNodeType(y)==="list-item"?p++:m=!0}}catch(C){o={error:C}}finally{try{g&&!g.done&&(a=v.return)&&a.call(v)}finally{if(o)throw o.error}}if(m||p<=1)return void n();try{for(var h=vB(mB(i)),$=h.next();!$.done;$=h.next()){var w=of($.value,2),x=(y=w[0],w[1]),S=y.level;d=S===void 0?0:S,_.setNodes(i,{level:d+1},{at:x})}}catch(C){u={error:C}}finally{try{$&&!$.done&&(s=h.return)&&s.call(h)}finally{if(u)throw u.error}}}else n()}else n()},i.normalizeNode=function(o){var a=of(o,2),u=a[0],s=a[1],l=A.getNodeType(u);return l!=="bulleted-list"&&l!=="numbered-list"||_.unwrapNodes(i,{at:s}),r([u,s])},i},menus:[Mne,zne],elemsToHtml:[Hne],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(e,t,n){return t.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=O(e);(t=t.filter(function(a){return!!J.isText(a)||!!n.isInline(a)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var i=function(a){return e$(a.parent())==="ol"}(r),o=function(a){for(var u=0,s=a.parent(),l=e$(s);l==="ul"||l==="ol";)l=e$(s=s.parent()),u++;return u-1}(r);return{type:"list-item",ordered:i,level:o,children:t}}}]},BB=Kv(function(e,t){var n=200,r="__lodash_hash_undefined__",i=1,o=2,a=9007199254740991,u="[object Arguments]",s="[object Array]",l="[object AsyncFunction]",c="[object Boolean]",f="[object Date]",d="[object Error]",p="[object Function]",m="[object GeneratorFunction]",v="[object Map]",g="[object Number]",y="[object Null]",h="[object Object]",$="[object Promise]",w="[object Proxy]",x="[object RegExp]",S="[object Set]",C="[object String]",N="[object Symbol]",R="[object Undefined]",U="[object WeakMap]",W="[object ArrayBuffer]",Z="[object DataView]",Q="[object Float32Array]",le="[object Float64Array]",te="[object Int8Array]",ue="[object Int16Array]",he="[object Int32Array]",Ie="[object Uint8Array]",ye="[object Uint8ClampedArray]",oe="[object Uint16Array]",Le="[object Uint32Array]",T=/[\\^$.*+?()[\]{}|]/g,F=/^\[object .+?Constructor\]$/,k=/^(?:0|[1-9]\d*)$/,I={};I[Q]=I[le]=I[te]=I[ue]=I[he]=I[Ie]=I[ye]=I[oe]=I[Le]=!0,I[u]=I[s]=I[W]=I[c]=I[Z]=I[f]=I[d]=I[p]=I[v]=I[g]=I[h]=I[x]=I[S]=I[C]=I[U]=!1;var V=typeof ot=="object"&&ot&&ot.Object===Object&&ot,L=typeof self=="object"&&self&&self.Object===Object&&self,ee=V||L||Function("return this")(),pe=t&&!t.nodeType&&t,Ce=pe&&!0&&e&&!e.nodeType&&e,Me=Ce&&Ce.exports===pe,H=Me&&V.process,We=function(){try{return H&&H.binding&&H.binding("util")}catch(b){}}(),we=We&&We.isTypedArray;function se(b,D){for(var B=-1,M=b==null?0:b.length,be=0,ae=[];++B-1}function IE(b,D){var B=this.__data__,M=al(B,b);return M<0?(++this.size,B.push([b,D])):B[M][1]=D,this}an.prototype.clear=kE,an.prototype.delete=PE,an.prototype.get=_E,an.prototype.has=NE,an.prototype.set=IE;function $n(b){var D=-1,B=b==null?0:b.length;for(this.clear();++Dje))return!1;var Ge=ae.get(b);if(Ge&&ae.get(D))return Ge==D;var un=-1,wn=!0,Mt=B&o?new il:void 0;for(ae.set(b,D),ae.set(D,b);++un-1&&b%1==0&&b-1&&b%1==0&&b<=a}function Cv(b){var D=typeof b;return b!=null&&(D=="object"||D=="function")}function Zr(b){return b!=null&&typeof b=="object"}var Av=we?gt(we):YE;function zd(b){return Ld(b)?GE(b):XE(b)}function o6(){return[]}function a6(){return!1}e.exports=i6});pn("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"}}),pn("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 FB=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof Be.g!="undefined"?Be.g:typeof self!="undefined"?self:{};function TB(e){var t={exports:{}};return e(t,t.exports),t.exports}var fo,Fg,Tg=function(e){return e&&e.Math==Math&&e},Se=Tg(typeof globalThis=="object"&&globalThis)||Tg(typeof window=="object"&&window)||Tg(typeof self=="object"&&self)||Tg(typeof FB=="object"&&FB)||function(){return this}()||Function("return this")(),Ft=function(e){try{return!!e()}catch(t){return!0}},po=!Ft(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),af=Function.prototype.call,Tt=af.bind?af.bind(af):function(){return af.apply(af,arguments)},kB={}.propertyIsEnumerable,PB=Object.getOwnPropertyDescriptor,fre={f:PB&&!kB.call({1:2},1)?function(e){var t=PB(this,e);return!!t&&t.enumerable}:kB},t$=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},_B=Function.prototype,n$=_B.bind,r$=_B.call,dre=n$&&n$.bind(r$),Fe=n$?function(e){return e&&dre(r$,e)}:function(e){return e&&function(){return r$.apply(e,arguments)}},pre=Fe({}.toString),hre=Fe("".slice),ho=function(e){return hre(pre(e),8,-1)},i$=Se.Object,gre=Fe("".split),NB=Ft(function(){return!i$("z").propertyIsEnumerable(0)})?function(e){return ho(e)=="String"?gre(e,""):i$(e)}:i$,vre=Se.TypeError,go=function(e){if(e==null)throw vre("Can't call method on "+e);return e},uf=function(e){return NB(go(e))},Jt=function(e){return typeof e=="function"},er=function(e){return typeof e=="object"?e!==null:Jt(e)},mre=function(e){return Jt(e)?e:void 0},sf=function(e,t){return arguments.length<2?mre(Se[e]):Se[e]&&Se[e][t]},IB=Fe({}.isPrototypeOf),o$=sf("navigator","userAgent")||"",jB=Se.process,RB=Se.Deno,LB=jB&&jB.versions||RB&&RB.version,MB=LB&&LB.v8;MB&&(Fg=(fo=MB.split("."))[0]>0&&fo[0]<4?1:+(fo[0]+fo[1])),!Fg&&o$&&(!(fo=o$.match(/Edge\/(\d+)/))||fo[1]>=74)&&(fo=o$.match(/Chrome\/(\d+)/))&&(Fg=+fo[1]);var a$=Fg,u$=!!Object.getOwnPropertySymbols&&!Ft(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&a$&&a$<41}),s$=u$&&!Symbol.sham&&typeof Symbol.iterator=="symbol",yre=Se.Object,l$=s$?function(e){return typeof e=="symbol"}:function(e){var t=sf("Symbol");return Jt(t)&&IB(t.prototype,yre(e))},bre=Se.String,zB=function(e){try{return bre(e)}catch(t){return"Object"}},$re=Se.TypeError,HB=function(e){if(Jt(e))return e;throw $re(zB(e)+" is not a function")},c$=function(e,t){var n=e[t];return n==null?void 0:HB(n)},wre=Se.TypeError,Ere=Object.defineProperty,f$=function(e,t){try{Ere(Se,e,{value:t,configurable:!0,writable:!0})}catch(n){Se[e]=t}return t},vo=Se["__core-js_shared__"]||f$("__core-js_shared__",{}),d$=TB(function(e){(e.exports=function(t,n){return vo[t]||(vo[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),xre=Se.Object,p$=function(e){return xre(go(e))},Sre=Fe({}.hasOwnProperty),tr=Object.hasOwn||function(e,t){return Sre(p$(e),t)},Dre=0,Cre=Math.random(),Are=Fe(1 .toString),UB=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Are(++Dre+Cre,36)},lf=d$("wks"),ja=Se.Symbol,VB=ja&&ja.for,Ore=s$?ja:ja&&ja.withoutSetter||UB,nr=function(e){if(!tr(lf,e)||!u$&&typeof lf[e]!="string"){var t="Symbol."+e;u$&&tr(ja,e)?lf[e]=ja[e]:lf[e]=s$&&VB?VB(t):Ore(t)}return lf[e]},Bre=Se.TypeError,Fre=nr("toPrimitive"),Tre=function(e,t){if(!er(e)||l$(e))return e;var n,r=c$(e,Fre);if(r){if(t===void 0&&(t="default"),n=Tt(r,e,t),!er(n)||l$(n))return n;throw Bre("Can't convert object to primitive value")}return t===void 0&&(t="number"),function(i,o){var a,u;if(o==="string"&&Jt(a=i.toString)&&!er(u=Tt(a,i))||Jt(a=i.valueOf)&&!er(u=Tt(a,i))||o!=="string"&&Jt(a=i.toString)&&!er(u=Tt(a,i)))return u;throw wre("Can't convert object to primitive value")}(e,t)},h$=function(e){var t=Tre(e,"string");return l$(t)?t:t+""},g$=Se.document,kre=er(g$)&&er(g$.createElement),v$=function(e){return kre?g$.createElement(e):{}},WB=!po&&!Ft(function(){return Object.defineProperty(v$("div"),"a",{get:function(){return 7}}).a!=7}),GB=Object.getOwnPropertyDescriptor,qB={f:po?GB:function(e,t){if(e=uf(e),t=h$(t),WB)try{return GB(e,t)}catch(n){}if(tr(e,t))return t$(!Tt(fre.f,e,t),e[t])}},Pre=Se.String,_re=Se.TypeError,rr=function(e){if(er(e))return e;throw _re(Pre(e)+" is not an object")},Nre=Se.TypeError,KB=Object.defineProperty,cf={f:po?KB:function(e,t,n){if(rr(e),t=h$(t),rr(n),WB)try{return KB(e,t,n)}catch(r){}if("get"in n||"set"in n)throw Nre("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Ds=po?function(e,t,n){return cf.f(e,t,t$(1,n))}:function(e,t,n){return e[t]=n,e},Ire=Fe(Function.toString);Jt(vo.inspectSource)||(vo.inspectSource=function(e){return Ire(e)});var kg,ff,Pg,m$=vo.inspectSource,YB=Se.WeakMap,jre=Jt(YB)&&/native code/.test(m$(YB)),XB=d$("keys"),JB=function(e){return XB[e]||(XB[e]=UB(e))},y$={},b$=Se.TypeError,Rre=Se.WeakMap;if(jre||vo.state){var Ra=vo.state||(vo.state=new Rre),Lre=Fe(Ra.get),ZB=Fe(Ra.has),Mre=Fe(Ra.set);kg=function(e,t){if(ZB(Ra,e))throw new b$("Object already initialized");return t.facade=e,Mre(Ra,e,t),t},ff=function(e){return Lre(Ra,e)||{}},Pg=function(e){return ZB(Ra,e)}}else{var Cs=JB("state");y$[Cs]=!0,kg=function(e,t){if(tr(e,Cs))throw new b$("Object already initialized");return t.facade=e,Ds(e,Cs,t),t},ff=function(e){return tr(e,Cs)?e[Cs]:{}},Pg=function(e){return tr(e,Cs)}}var $$={set:kg,get:ff,has:Pg,enforce:function(e){return Pg(e)?ff(e):kg(e,{})},getterFor:function(e){return function(t){var n;if(!er(t)||(n=ff(t)).type!==e)throw b$("Incompatible receiver, "+e+" required");return n}}},QB=Function.prototype,zre=po&&Object.getOwnPropertyDescriptor,w$=tr(QB,"name"),E$={EXISTS:w$,PROPER:w$&&function(){}.name==="something",CONFIGURABLE:w$&&(!po||po&&zre(QB,"name").configurable)},df=TB(function(e){var t=E$.CONFIGURABLE,n=$$.get,r=$$.enforce,i=String(String).split("String");(e.exports=function(o,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;Jt(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!tr(u,"name")||t&&u.name!==p)&&Ds(u,"name",p),(l=r(u)).source||(l.source=i.join(typeof p=="string"?p:""))),o!==Se?(c?!d&&o[a]&&(f=!0):delete o[a],f?o[a]=u:Ds(o,a,u)):f?o[a]=u:f$(a,u)})(Function.prototype,"toString",function(){return Jt(this)&&n(this).source||m$(this)})}),Hre=Math.ceil,Ure=Math.floor,_g=function(e){var t=+e;return t!=t||t===0?0:(t>0?Ure:Hre)(t)},Vre=Math.max,Wre=Math.min,pf=function(e,t){var n=_g(e);return n<0?Vre(n+t,0):Wre(n,t)},Gre=Math.min,x$=function(e){return e>0?Gre(_g(e),9007199254740991):0},Ng=function(e){return x$(e.length)},eF=function(e){return function(t,n,r){var i,o=uf(t),a=Ng(o),u=pf(r,a);if(e&&n!=n){for(;a>u;)if((i=o[u++])!=i)return!0}else for(;a>u;u++)if((e||u in o)&&o[u]===n)return e||u||0;return!e&&-1}},qre={includes:eF(!0),indexOf:eF(!1)}.indexOf,tF=Fe([].push),nF=function(e,t){var n,r=uf(e),i=0,o=[];for(n in r)!tr(y$,n)&&tr(r,n)&&tF(o,n);for(;t.length>i;)tr(r,n=t[i++])&&(~qre(o,n)||tF(o,n));return o},Ig=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Kre=Ig.concat("length","prototype"),Yre={f:Object.getOwnPropertyNames||function(e){return nF(e,Kre)}},Xre={f:Object.getOwnPropertySymbols},Jre=Fe([].concat),Zre=sf("Reflect","ownKeys")||function(e){var t=Yre.f(rr(e)),n=Xre.f;return n?Jre(t,n(e)):t},Qre=function(e,t){for(var n=Zre(t),r=cf.f,i=qB.f,o=0;o3}))},{anchor:function(e){return t="a",n="name",r=e,i=rn(go(this)),o="<"+t,n!==""&&(o+=" "+n+'="'+die(rn(r),fie,""")+'"'),o+">"+i+"";var t,n,r,i,o}});var jg,oF=function(){var e=rr(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},C$=Se.RegExp,A$=Ft(function(){var e=C$("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),pie=A$||Ft(function(){return!C$("a","y").sticky}),aF={BROKEN_CARET:A$||Ft(function(){var e=C$("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:pie,UNSUPPORTED_Y:A$},hie=Object.keys||function(e){return nF(e,Ig)},gie=po?Object.defineProperties:function(e,t){rr(e);for(var n,r=uf(t),i=hie(t),o=i.length,a=0;o>a;)cf.f(e,n=i[a++],r[n]);return e},vie=sf("document","documentElement"),uF=JB("IE_PROTO"),O$=function(){},sF=function(e){return""},lF=function(e){e.write(sF("")),e.close();var t=e.parentWindow.Object;return e=null,t},Rg=function(){try{jg=new ActiveXObject("htmlfile")}catch(r){}var e,t;Rg=typeof document!="undefined"?document.domain&&jg?lF(jg):((t=v$("iframe")).style.display="none",vie.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(sF("document.F=Object")),e.close(),e.F):lF(jg);for(var n=Ig.length;n--;)delete Rg.prototype[Ig[n]];return Rg()};y$[uF]=!0;var cF,B$,fF=Object.create||function(e,t){var n;return e!==null?(O$.prototype=rr(e),n=new O$,O$.prototype=null,n[uF]=e):n=Rg(),t===void 0?n:gie(n,t)},mie=Se.RegExp,yie=Ft(function(){var e=mie(".","s");return!(e.dotAll&&e.exec(` `)&&e.flags==="s")}),bie=Se.RegExp,$ie=Ft(function(){var e=bie("(?b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$c")!=="bc"}),wie=$$.get,Eie=d$("native-string-replace",String.prototype.replace),Lg=RegExp.prototype.exec,F$=Lg,xie=Fe("".charAt),Sie=Fe("".indexOf),Die=Fe("".replace),T$=Fe("".slice),k$=(B$=/b*/g,Tt(Lg,cF=/a/,"a"),Tt(Lg,B$,"a"),cF.lastIndex!==0||B$.lastIndex!==0),dF=aF.BROKEN_CARET,P$=/()??/.exec("")[1]!==void 0;(k$||P$||dF||yie||$ie)&&(F$=function(e){var t,n,r,i,o,a,u,s=this,l=wie(s),c=rn(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Tt(F$,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=dF&&s.sticky,m=Tt(oF,s),v=s.source,g=0,y=c;if(p&&(m=Die(m,"y",""),Sie(m,"g")===-1&&(m+="g"),y=T$(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&xie(c,s.lastIndex-1)!==` `)&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",m)),P$&&(n=new RegExp("^"+v+"$(?!\\s)",m)),k$&&(r=s.lastIndex),i=Tt(Lg,p?n:s,y),p?i?(i.input=T$(i.input,g),i[0]=T$(i[0],g),i.index=s.lastIndex,s.lastIndex+=i[0].length):s.lastIndex=0:k$&&i&&(s.lastIndex=s.global?i.index+i[0].length:r),P$&&i&&i.length>1&&Tt(Eie,i[0],n,function(){for(o=1;o=51||!Ft(function(){var t=[];return(t.constructor={})[Bie]=function(){return{foo:1}},t[e](Boolean).foo!==1})},Fie=Fe([].slice),Tie=I$("slice"),kie=nr("species"),j$=Se.Array,Pie=Math.max;function yr(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function vF(e){var t=e.selection;if(t==null)return!1;var n=yr(E.nodes(e,{match:function(o){return A.checkNodeType(o,"table-cell")}}),1)[0];if(n){var r=yr(n,2)[1],i=E.start(e,r);if($e.equals(t.anchor,i))return!0}return!1}function mF(e,t){var n,r,i=E.nodes(e,{at:t,match:function(s){return A.getNodeType(s)==="table"}}),o=!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.")}(i),u=a.next();!u.done;u=a.next())u.value,o=!0}catch(s){n={error:s}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return o}mo({target:"Array",proto:!0,forced:!Tie},{slice:function(e,t){var n,r,i,o=uf(this),a=Ng(o),u=pf(e,a),s=pf(t===void 0?a:t,a);if(Mg(o)&&(n=o.constructor,(N$(n)&&(n===j$||Mg(n.prototype))||er(n)&&(n=n[kie])===null)&&(n=void 0),n===j$||n===void 0))return Fie(o,u,s);for(r=new(n===void 0?j$:n)(Pie(s-u,0)),i=0;uh;h++)if((u||h in v)&&(p=g(d=v[h],h,m),e))if(t)w[h]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return h;case 2:$F(w,d)}else switch(e){case 4:return!1;case 7:$F(w,d)}return o?-1:r||i?i:w}},zg={forEach:yo(0),map:yo(1),filter:yo(2),some:yo(3),every:yo(4),find:yo(5),findIndex:yo(6),filterReject:yo(7)},Iie=zg.map;mo({target:"Array",proto:!0,forced:!I$("map")},{map:function(e){return Iie(this,e,arguments.length>1?arguments[1]:void 0)}});var jie=S$?{}.toString:function(){return"[object "+D$(this)+"]"};function Hg(e){var t=e.children||[];return t.length===0?[]:(t[0]||{}).children||[]}function wF(e){return Hg(e).every(function(t){return!!t.isHeader})}S$||df(Object.prototype,"toString",jie,{unsafe:!0});var Rie=E$.PROPER,R$=RegExp.prototype,EF=R$.toString,Lie=Fe(oF),Mie=Ft(function(){return EF.call({source:"a",flags:"b"})!="/a/b"}),zie=Rie&&EF.name!="toString";(Mie||zie)&&df(RegExp.prototype,"toString",function(){var e=rr(this),t=rn(e.source),n=e.flags;return"/"+t+"/"+rn(n===void 0&&IB(R$,e)&&!("flags"in R$)?Lie(e):n)},{unsafe:!0});var L$=nr("unscopables"),M$=Array.prototype;M$[L$]==null&&cf.f(M$,L$,{configurable:!0,value:fF(null)});var xF,Hie=zg.find,SF=!0;"find"in[]&&Array(1).find(function(){SF=!1}),mo({target:"Array",proto:!0,forced:SF},{find:function(e){return Hie(this,e,arguments.length>1?arguments[1]:void 0)}}),xF="find",M$[L$][xF]=!0;var z$=Function.prototype,DF=z$.apply,Uie=z$.bind,CF=z$.call,AF=typeof Reflect=="object"&&Reflect.apply||(Uie?CF.bind(DF):function(){return CF.apply(DF,arguments)}),Vie=nr("species"),H$=RegExp.prototype,OF=function(e,t,n,r){var i=nr(e),o=!Ft(function(){var l={};return l[i]=function(){return 7},""[e](l)!=7}),a=o&&!Ft(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[Vie]=function(){return c},c.flags="",c[i]=/./[i]),c.exec=function(){return l=!0,null},c[i](""),!l});if(!o||!a||n){var u=Fe(/./[i]),s=t(i,""[e],function(l,c,f,d,p){var m=Fe(l),v=c.exec;return v===gf||v===H$.exec?o&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:m(f,c,d)}:{done:!1}});df(String.prototype,e,s[0]),df(H$,i,s[1])}r&&Ds(H$[i],"sham",!0)},Wie=nr("match"),Gie=Se.TypeError,qie=nr("species"),Kie=function(e,t){var n,r=rr(e).constructor;return r===void 0||(n=rr(r)[qie])==null?t:function(i){if(N$(i))return i;throw Gie(zB(i)+" is not a constructor")}(n)},Yie=Fe("".charAt),BF=Fe("".charCodeAt),Xie=Fe("".slice),FF=function(e){return function(t,n){var r,i,o=rn(go(t)),a=_g(n),u=o.length;return a<0||a>=u?e?"":void 0:(r=BF(o,a))<55296||r>56319||a+1===u||(i=BF(o,a+1))<56320||i>57343?e?Yie(o,a):r:e?Xie(o,a,a+2):i-56320+(r-55296<<10)+65536}},Jie={codeAt:FF(!1),charAt:FF(!0)}.charAt,TF=function(e,t,n){return t+(n?Jie(e,t).length:1)},Zie=Se.Array,Qie=Math.max,kF=function(e,t,n){for(var r=Ng(e),i=pf(t,r),o=pf(n===void 0?r:n,r),a=Zie(Qie(o-i,0)),u=0;i1||"".split(/.?/).length?function(i,o){var a,u,s=rn(go(this)),l=o===void 0?4294967295:o>>>0;if(l===0)return[];if(i===void 0)return[s];if(!er(a=i)||!((u=a[Wie])!==void 0?u:ho(a)=="RegExp"))return Tt(t,s,i,l);for(var c,f,d,p=[],m=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(i.sticky?"y":""),v=0,g=new RegExp(i.source,m+"g");(c=Tt(gf,g,s))&&!((f=g.lastIndex)>v&&(Os(p,mf(s,v,c.index)),c.length>1&&c.index=l));)g.lastIndex===c.index&&g.lastIndex++;return v===s.length?!d&&noe(g,"")||Os(p,""):Os(p,mf(s,v)),p.length>l?kF(p,0,l):p}:"0".split(void 0,0).length?function(i,o){return i===void 0&&o===0?[]:Tt(t,this,i,o)}:t,[function(i,o){var a=go(this),u=i==null?void 0:c$(i,e);return u?Tt(u,i,a,o):Tt(r,rn(a),i,o)},function(i,o){var a=rr(this),u=rn(i),s=n(r,a,u,o,r!==t);if(s.done)return s.value;var l=Kie(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(As?"g":"y"),d=new l(As?"^(?:"+a.source+")":a,f),p=o===void 0?4294967295:o>>>0;if(p===0)return[];if(u.length===0)return U$(d,u)===null?[u]:[];for(var m=0,v=0,g=[];v=0,h=$e.compare(p,g)<=0&&$e.compare(p,v)>=0;return!!(y&&h&&P.equals(d.path.slice(0,3),p.path.slice(0,3)))}(n,e),i=e.width,o=i===void 0?"auto":i,a=A.isNodeSelected(n,e),u=Hg(e),s=fe("div",{className:"table-container","data-selected":a,on:{mousedown:function(l){if(l.target.tagName==="DIV"&&l.preventDefault(),!n.isDisabled()){var c=A.findPath(n,e),f=E.start(n,c),d=n.selection;d!=null?d.anchor.path[0]!==c[0]&&n.select(f):n.select(f)}}}},fe("table",{width:o,contentEditable:r},fe("colgroup",null,u.map(function(l){var c=l.width;return fe("col",{width:c===void 0?"auto":c})})),fe("tbody",null,t)));return s}},loe={type:"table-row",renderElem:function(e,t,n){return fe("tr",null,t)}},coe={type:"table-cell",renderElem:function(e,t,n){var r=function(d,p){var m=A.getParentNode(d,p);if(m==null)return!1;var v=A.getParentNode(d,m);return v!=null&&Hg(v).some(function(g){return g===p})}(n,e),i=e,o=i.colSpan,a=o===void 0?1:o,u=i.rowSpan,s=u===void 0?1:u,l=i.isHeader,c=l!==void 0&&l;if(!r)return fe("td",{colSpan:a,rowSpan:s},t);var f=fe(c?"th":"td",{colSpan:a,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:Yo(function(d){var p=this.elm;if(p!=null){var m=p.getBoundingClientRect(),v=m.left,g=m.width,y=m.top,h=m.height,$=d.clientX,w=d.clientY;yf||($>v+g-5&&$y&&w'+t+""}},doe={type:"table-row",elemToHtml:function(e,t){return""+t+""}},poe={type:"table-cell",elemToHtml:function(e,t){var n=e,r=n.colSpan,i=r===void 0?1:r,o=n.rowSpan,a=o===void 0?1:o,u=n.isHeader,s=u!==void 0&&u,l=n.width,c=s?"th":"td";return"<"+c+' colSpan="'+i+'" rowSpan="'+a+'" width="'+(l===void 0?"auto":l)+'">'+t+""}},hoe={selector:"table",preParseHtml:function(e){var t=O(e);if(NF(t)!=="table")return e;var n=t.find("tbody");if(n.length===0)return e;var r=t.find("tr");return t.append(r),n.remove(),t[0]}},goe=zg.filter;mo({target:"Array",proto:!0,forced:!I$("filter")},{filter:function(e){return goe(this,e,arguments.length>1?arguments[1]:void 0)}});var voe=Math.floor,G$=Fe("".charAt),moe=Fe("".replace),q$=Fe("".slice),yoe=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,boe=/\$([$&'`]|\d{1,2})/g,$oe=function(e,t,n,r,i,o){var a=n+e.length,u=r.length,s=boe;return i!==void 0&&(i=p$(i),s=yoe),moe(o,s,function(l,c){var f;switch(G$(c,0)){case"$":return"$";case"&":return e;case"`":return q$(t,0,n);case"'":return q$(t,a);case"<":f=i[q$(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=voe(d/10);return p===0?l:p<=u?r[p-1]===void 0?G$(c,1):r[p-1]+G$(c,1):l}f=r[d-1]}return f===void 0?"":f})},K$=nr("replace"),woe=Math.max,Eoe=Math.min,xoe=Fe([].concat),Y$=Fe([].push),MF=Fe("".indexOf),zF=Fe("".slice),Soe="a".replace(/./,"$0")==="$0",HF=!!/./[K$]&&/./[K$]("a","$0")==="";OF("replace",function(e,t,n){var r=HF?"$":"$0";return[function(i,o){var a=go(this),u=i==null?void 0:c$(i,K$);return u?Tt(u,i,a,o):Tt(t,rn(a),i,o)},function(i,o){var a=rr(this),u=rn(i);if(typeof o=="string"&&MF(o,r)===-1&&MF(o,"$<")===-1){var s=n(t,a,u,o);if(s.done)return s.value}var l=Jt(o);l||(o=rn(o));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=U$(a,u);if(p===null||(Y$(d,p),!c))break;rn(p[0])===""&&(a.lastIndex=TF(u,x$(a.lastIndex),f))}for(var m,v="",g=0,y=0;y=g&&(v+=zF(u,g,$)+N,g=$+h.length)}return v+zF(u,g)}]},!!Ft(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$")!=="7"})||!Soe||HF);var Doe={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=O(e);(t=t.filter(function(u){return!!J.isText(u)||!!n.isInline(u)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var i=parseInt(r.attr("colSpan")||"1"),o=parseInt(r.attr("rowSpan")||"1"),a=r.attr("width")||"auto";return{type:"table-cell",isHeader:NF(r)==="th",colSpan:i,rowSpan:o,width:a,children:t}}},Coe={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"table-row",children:t.filter(function(r){return A.getNodeType(r)==="table-cell"})}}},Aoe={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=O(e),i="auto";return function(o,a){for(var u="",s=(o.attr("style")||"").split(";"),l=s.length,c=0;c',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!j.isCollapsed(n)||!!A.getSelectedElems(t).some(function(r){var i=A.getNodeType(r);return i==="pre"||i==="table"||i==="list-item"||!!t.isVoid(r)})},e.prototype.getPanelContentElem=function(t){var n=this;if(this.$content)return this.$content[0];for(var r=O('
        '),i=O("0 × 0"),o=O("
        "),a=0;a<10;a++){for(var u=O(""),s=0;s<10;s++){var l=O("");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 d=O(f).dataset(),p=d.x,m=d.y;i[0].innerHTML=p+1+" × "+(m+1),o.children().each(function(v){O(v).children().each(function(g){var y=O(g),h=y.dataset(),$=h.x,w=h.y;$<=p&&w<=m?y.addClass("active"):y.removeClass("active")})})}}),l.on("click",function(c){c.preventDefault();var f=c.target;if(f!=null){var d=O(f).dataset(),p=d.x,m=d.y;n.insertTable(t,m+1,p+1)}})}o.append(u)}return r.append(o),r.append(i),this.$content=r,r[0]},e.prototype.insertTable=function(t,n,r){var i=parseInt(n,10),o=parseInt(r,10);if(i&&o&&!(i<=0||o<=0)){A.isSelectedEmptyParagraph(t)&&_.removeNodes(t,{mode:"highest"});var a=function(u,s){for(var l=[],c=0;c',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||A.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){this.isDisabled(t)||_.removeNodes(t,{mode:"highest"})},e}(),Foe=function(){function e(){this.title=K("tableModule.insertRow"),this.iconSvg='',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!j.isCollapsed(n)||A.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=yr(E.nodes(t,{match:function(p){return A.checkNodeType(p,"table-cell")},universal:!0}),1),i=yr(r[0],2),o=i[0],a=i[1],u=A.getParentNode(t,o),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 e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!j.isCollapsed(n)||A.getSelectedNodeByType(t,"table-row")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=yr(E.nodes(t,{match:function(s){return A.checkNodeType(s,"table-row")},universal:!0}),1),i=yr(r[0],2),o=i[0],a=i[1],u=A.getParentNode(t,o);((u==null?void 0:u.children.length)||0)<=1?_.removeNodes(t,{mode:"highest"}):_.removeNodes(t,{at:a})}},e}(),UF={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},X$=v$("span").classList,VF=X$&&X$.constructor&&X$.constructor.prototype,koe=VF===Object.prototype?void 0:VF,Poe=zg.forEach,_oe=function(e,t){var n=[][e];return!!n&&Ft(function(){n.call(null,t||function(){throw 1},1)})}("forEach"),J$=_oe?[].forEach:function(e){return Poe(this,e,arguments.length>1?arguments[1]:void 0)},WF=function(e){if(e&&e.forEach!==J$)try{Ds(e,"forEach",J$)}catch(t){e.forEach=J$}};for(var Z$ in UF)UF[Z$]&&WF(Se[Z$]&&Se[Z$].prototype);WF(koe);var Noe=function(){function e(){this.title=K("tableModule.insertCol"),this.iconSvg='',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!j.isCollapsed(n)||A.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=yr(E.nodes(t,{match:function(l){return A.checkNodeType(l,"table-cell")},universal:!0}),1),i=yr(r[0],2),o=i[0],a=i[1],u=A.getParentNode(t,o);if(u!=null){var s=A.getParentNode(t,u);s!=null&&(s.children||[]).forEach(function(l,c){ne.isElement(l)&&(l.children||[]).forEach(function(f){var d=A.findPath(t,f);if(d.length===a.length&&BB(d.slice(-1),a.slice(-1))){var p={type:"table-cell",children:[{text:""}]};c===0&&wF(s)&&(p.isHeader=!0),_.insertNodes(t,p,{at:d})}})})}}},e}(),Ioe=function(){function e(){this.title=K("tableModule.deleteCol"),this.iconSvg='',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!j.isCollapsed(n)||A.getSelectedNodeByType(t,"table-cell")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=yr(E.nodes(t,{match:function(c){return A.checkNodeType(c,"table-cell")},universal:!0}),1),i=yr(r[0],2),o=i[0],a=i[1],u=A.getParentNode(t,o),s=(u==null?void 0:u.children.length)||0;if(!u||s<=1)_.removeNodes(t,{mode:"highest"});else{var l=A.getParentNode(t,u);l!=null&&(l.children||[]).forEach(function(c){ne.isElement(c)&&(c.children||[]).forEach(function(f){var d=A.findPath(t,f);d.length===a.length&&BB(d.slice(-1),a.slice(-1))&&_.removeNodes(t,{at:d})})})}}},e}(),joe=function(){function e(){this.title=K("tableModule.header"),this.iconSvg='',this.tag="button"}return e.prototype.getValue=function(t){var n=A.getSelectedNodeByType(t,"table");return n!=null&&wF(n)},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!j.isCollapsed(n)||A.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=!n,i=A.getSelectedNodeByType(t,"table");i!=null&&Hg(i).forEach(function(o){return _.setNodes(t,{isHeader:r},{at:A.findPath(t,o)})})}},e}(),Roe=function(){function e(){this.title=K("tableModule.widthAuto"),this.iconSvg='',this.tag="button"}return e.prototype.getValue=function(t){var n=A.getSelectedNodeByType(t,"table");return n!=null&&n.width==="100%"},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!j.isCollapsed(n)||A.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r={width:n?"auto":"100%"};_.setNodes(t,r,{mode:"highest"})}},e}(),Loe={renderElems:[soe,loe,coe],elemsToHtml:[foe,doe,poe],preParseHtml:[hoe],parseElemsHtml:[Doe,Coe,Aoe],menus:[{key:"insertTable",factory:function(){return new Ooe}},{key:"deleteTable",factory:function(){return new Boe}},{key:"insertTableRow",factory:function(){return new Foe}},{key:"deleteTableRow",factory:function(){return new Toe}},{key:"insertTableCol",factory:function(){return new Noe}},{key:"deleteTableCol",factory:function(){return new Ioe}},{key:"tableHeader",factory:function(){return new joe}},{key:"tableFullWidth",factory:function(){return new Roe}}],editorPlugin:function(e){var t=e.insertBreak,n=e.deleteBackward,r=e.deleteForward,i=e.normalizeNode,o=e.insertData,a=e.handleTab,u=e.selectAll,s=e;return s.insertBreak=function(){A.getSelectedNodeByType(s,"table")==null?t():s.insertText(` `)},s.deleteBackward=function(l){if(!vF(s)){var c=s.selection;if(c){var f=E.before(s,c);if(f){var d=mF(s,f),p=mF(s,c);if(d&&!p)return}}n(l)}},s.handleTab=function(){var l;if(A.getSelectedNodeByType(s,"table")){var c=E.above(e);A.checkNodeType(c[0],"table-cell")&&_.select(e,c[1]);var f=E.next(e);if(f)f[0]&&f[0].text&&(f=(l=E.above(e,{at:f[1]}))!==null&&l!==void 0?l:f),_.select(e,f[1]);else{var d=s.children||[],p=d.length;if(A.checkNodeType(d[p-1],"table")){var m=A.genEmptyParagraph();_.insertNodes(s,m,{at:[p]}),s.handleTab()}}}else a()},s.deleteForward=function(l){vF(s)||r(l)},s.normalizeNode=function(l){var c=yr(l,2),f=c[0],d=c[1];if(A.getNodeType(f)!=="table")return i([f,d]);if(A.isLastNode(s,f)){var p=A.genEmptyParagraph();_.insertNodes(s,p,{at:[d[0]+1]})}},s.insertData=function(l){if(A.getSelectedNodeByType(s,"table")!=null){var c=l.getData("text/plain");c===` `||/]+>/.test(l.getData("text/html"))?o(l):E.insertText(s,c)}else o(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,d=l.focus;if(P.equals(f.path.slice(0,3),d.path.slice(0,3)))if(q.string(c).length!==0){var p=A.findPath(s,c),m={anchor:E.start(s,p),focus:E.end(s,p)};s.select(m)}else u();else u()}else u()}else u()},s}};pn("en",{videoModule:{delete:"Delete",uploadVideo:"Upload video",insertVideo:"Insert video",videoSrc:"Video source",videoSrcPlaceHolder:"Video file url, or third-party