181 lines
750 KiB
JavaScript
181 lines
750 KiB
JavaScript
import{g as Zg,h as ls,a0 as D9,x as YP,P as XP,a1 as JP,a2 as ZP,o as Qg,c as e0,B as QP,R as eN,b as on,s as Rd,a3 as tN,_ as nN,i as rN,r as Ho,a as Gi,w as Rn,d as jd,t as iN,N as oN}from"./index.d3c42775.js";var Vv;if(typeof global>"u"){if("ActiveXObject"in window){var wE="\u62B1\u6B49\uFF0CwangEditor V5+ \u7248\u672C\u5F00\u59CB\uFF0C\u4E0D\u5728\u652F\u6301 IE \u6D4F\u89C8\u5668";wE+=`
|
||
Sorry, wangEditor V5+ versions do not support IE browser.`,console.error(wE)}EE(),CE()}else global&&((Vv=global.navigator)===null||Vv===void 0?void 0:Vv.userAgent.match("QQBrowser"))&&(EE(),CE());function EE(){typeof globalThis>"u"&&(window.globalThis=window)}function CE(){typeof AggregateError>"u"&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}if(typeof global=="object"){var aN=Object.getOwnPropertyDescriptor(global,"window");(!global.window||aN.set)&&(global.window=global,global.requestAnimationFrame=function(){},global.navigator={userAgent:""},global.location={hostname:"0.0.0.0",port:0,protocol:"http:"},global.btoa=function(){},global.crypto={getRandomValues:function(e){return nodeCrypto.randomFillSync(e)}}),global.document!=null&&global.document.getElementsByTagName==null&&(global.document.getElementsByTagName=function(){return[]})}/*!
|
||
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
||
*
|
||
* Copyright (c) 2014-2017, Jon Schlinkert.
|
||
* Released under the MIT License.
|
||
*/function DE(e){return Object.prototype.toString.call(e)==="[object Object]"}function Zt(e){var t,n;return DE(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!(DE(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}function Ht(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];{var i=hN[e],o=i?typeof i=="function"?i.apply(null,n):i:"unknown error nr: "+e;throw Error("[Immer] "+o)}}function ka(e){return!!e&&!!e[An]}function _a(e){return!!e&&(function(t){if(!t||typeof t!="object")return!1;var n=Object.getPrototypeOf(t);if(n===null)return!0;var r=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return r===Object||typeof r=="function"&&Function.toString.call(r)===gN}(e)||Array.isArray(e)||!!e[kE]||!!e.constructor[kE]||T$(e)||k$(e))}function Jc(e,t,n){n===void 0&&(n=!1),Is(e)===0?(n?Object.keys:R$)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,i){return t(i,r,e)})}function Is(e){var t=e[An];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:T$(e)?2:k$(e)?3:0}function S2(e,t){return Is(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function uN(e,t){return Is(e)===2?e.get(t):e[t]}function x9(e,t,n){var r=Is(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function sN(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function T$(e){return dN&&e instanceof Map}function k$(e){return pN&&e instanceof Set}function ea(e){return e.o||e.t}function _$(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=vN(e);delete t[An];for(var n=R$(t),r=0;r<n.length;r++){var i=n[r],o=t[i];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function P$(e,t){return t===void 0&&(t=!1),N$(e)||ka(e)||!_a(e)||(Is(e)>1&&(e.set=e.add=e.clear=e.delete=lN),Object.freeze(e),t&&Jc(e,function(n,r){return P$(r,!0)},!0)),e}function lN(){Ht(2)}function N$(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function ci(e){var t=mN[e];return t||Ht(18,e),t}function xE(){return cs||Ht(0),cs}function Wv(e,t){t&&(ci("Patches"),e.u=[],e.s=[],e.v=t)}function lh(e){A2(e),e.p.forEach(cN),e.p=null}function A2(e){e===cs&&(cs=e.l)}function SE(e){return cs={p:[],l:cs,h:e,m:!0,_:0}}function cN(e){var t=e[An];t.i===0||t.i===1?t.j():t.O=!0}function qv(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||ci("ES5").S(t,e,r),r?(n[An].P&&(lh(t),Ht(4)),_a(e)&&(e=ch(t,e),t.l||fh(t,e)),t.u&&ci("Patches").M(n[An],e,t.u,t.s)):e=ch(t,n,[]),lh(t),t.u&&t.v(t.u,t.s),e!==S9?e:void 0}function ch(e,t,n){if(N$(t))return t;var r=t[An];if(!r)return Jc(t,function(o,a){return AE(e,r,t,o,a,n)},!0),t;if(r.A!==e)return t;if(!r.P)return fh(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=_$(r.k):r.o;Jc(r.i===3?new Set(i):i,function(o,a){return AE(e,r,i,o,a,n)}),fh(e,i,!1),n&&e.u&&ci("Patches").R(r,n,e.u,e.s)}return r.o}function AE(e,t,n,r,i,o){if(i===n&&Ht(5),ka(i)){var a=ch(e,i,o&&t&&t.i!==3&&!S2(t.D,r)?o.concat(r):void 0);if(x9(n,r,a),!ka(a))return;e.m=!1}if(_a(i)&&!N$(i)){if(!e.h.F&&e._<1)return;ch(e,i),t&&t.A.l||fh(e,i)}}function fh(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&P$(t,n)}function Gv(e,t){var n=e[An];return(n?ea(n):e)[t]}function OE(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 O2(e){e.P||(e.P=!0,e.l&&O2(e.l))}function Kv(e){e.o||(e.o=_$(e.t))}function B2(e,t,n){var r=T$(t)?ci("MapSet").N(t,n):k$(t)?ci("MapSet").T(t,n):e.g?function(i,o){var a=Array.isArray(i),u={i:a?1:0,A:o?o.A:xE(),P:!1,I:!1,D:{},l:o,t:i,k:null,o:null,j:null,C:!1},s=u,l=Ip;a&&(s=[u],l=Rp);var c=Proxy.revocable(s,l),f=c.revoke,d=c.proxy;return u.k=d,u.j=f,d}(t,n):ci("ES5").J(t,n);return(n?n.A:xE()).p.push(r),r}function fN(e){return ka(e)||Ht(22,e),function t(n){if(!_a(n))return n;var r,i=n[An],o=Is(n);if(i){if(!i.P&&(i.i<4||!ci("ES5").K(i)))return i.t;i.I=!0,r=BE(n,o),i.I=!1}else r=BE(n,o);return Jc(r,function(a,u){i&&uN(i.t,a)===u||x9(r,a,t(u))}),o===3?new Set(r):r}(e)}function BE(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return _$(e)}var FE,cs,I$=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",dN=typeof Map<"u",pN=typeof Set<"u",TE=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",S9=I$?Symbol.for("immer-nothing"):((FE={})["immer-nothing"]=!0,FE),kE=I$?Symbol.for("immer-draftable"):"__$immer_draftable",An=I$?Symbol.for("immer-state"):"__$immer_state",hN={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"},gN=""+Object.prototype.constructor,R$=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,vN=Object.getOwnPropertyDescriptors||function(e){var t={};return R$(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},mN={},Ip={get:function(e,t){if(t===An)return e;var n=ea(e);if(!S2(n,t))return function(i,o,a){var u,s=OE(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||!_a(r)?r:r===Gv(e.t,t)?(Kv(e),e.o[t]=B2(e.A.h,r,e)):r},has:function(e,t){return t in ea(e)},ownKeys:function(e){return Reflect.ownKeys(ea(e))},set:function(e,t,n){var r=OE(ea(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var i=Gv(ea(e),t),o=i==null?void 0:i[An];if(o&&o.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(sN(n,i)&&(n!==void 0||S2(e.t,t)))return!0;Kv(e),O2(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 Gv(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,Kv(e),O2(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=ea(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){Ht(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Ht(12)}},Rp={};Jc(Ip,function(e,t){Rp[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Rp.deleteProperty=function(e,t){return isNaN(parseInt(t))&&Ht(13),Ip.deleteProperty.call(this,e[0],t)},Rp.set=function(e,t,n){return t!=="length"&&isNaN(parseInt(t))&&Ht(14),Ip.set.call(this,e[0],t,n,e[0])};var yN=function(){function e(n){var r=this;this.g=TE,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 v=this;p===void 0&&(p=u);for(var m=arguments.length,g=Array(m>1?m-1:0),y=1;y<m;y++)g[y-1]=arguments[y];return s.produce(p,function(h){var $;return($=o).call.apply($,[v,h].concat(g))})}}var l;if(typeof o!="function"&&Ht(6),a!==void 0&&typeof a!="function"&&Ht(7),_a(i)){var c=SE(r),f=B2(r,i,void 0),d=!0;try{l=o(f),d=!1}finally{d?lh(c):A2(c)}return typeof Promise<"u"&&l instanceof Promise?l.then(function(p){return Wv(c,a),qv(p,c)},function(p){throw lh(c),p}):(Wv(c,a),qv(l,c))}if(!i||typeof i!="object")return(l=o(i))===S9?void 0:(l===void 0&&(l=i),r.F&&P$(l,!0),l);Ht(21,i)},this.produceWithPatches=function(i,o){return typeof i=="function"?function(s){for(var l=arguments.length,c=Array(l>1?l-1:0),f=1;f<l;f++)c[f-1]=arguments[f];return r.produceWithPatches(s,function(d){return i.apply(void 0,[d].concat(c))})}:[r.produce(i,o,function(s,l){a=s,u=l}),a,u];var a,u},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){_a(n)||Ht(8),ka(n)&&(n=fN(n));var r=SE(this),i=B2(this,n,void 0);return i[An].C=!0,A2(r),i},t.finishDraft=function(n,r){var i=n&&n[An];i&&i.C||Ht(9),i.I&&Ht(10);var o=i.A;return Wv(o,r),qv(void 0,o)},t.setAutoFreeze=function(n){this.F=n},t.setUseProxies=function(n){n&&!TE&&Ht(20),this.g=n},t.applyPatches=function(n,r){var i;for(i=r.length-1;i>=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=ci("Patches").$;return ka(n)?a(n,r):this.produce(n,function(u){return a(u,r)})},e}(),On=new yN,t0=On.produce;On.produceWithPatches.bind(On);On.setAutoFreeze.bind(On);On.setUseProxies.bind(On);On.applyPatches.bind(On);var _E=On.createDraft.bind(On),PE=On.finishDraft.bind(On);function Gr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dh=new WeakMap,cl=new WeakMap,NE=new WeakMap,IE=new WeakMap,RE=new WeakMap,jE=new WeakMap;function LE(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 Ld(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LE(Object(n),!0).forEach(function(r){Gr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var bN=()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of E.pathRefs(e))XN.transform(n,t);for(var r of E.pointRefs(e))JN.transform(r,t);for(var i of E.rangeRefs(e))eI.transform(i,t);var o=new Set,a=[],u=p=>{if(p){var v=p.join(",");o.has(v)||(o.add(v),a.push(p))}},s=dh.get(e)||[],l=$N(t);for(var c of s){var f=_.transform(c,t);u(f)}for(var d of l)u(d);dh.set(e,a),P.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(R.isExpanded(r))P.setNodes(e,{[t]:n},{match:X.isText,split:!0});else{var i=Ld(Ld({},E.marks(e)||{}),{},{[t]:n});e.marks=i,cl.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:n}=e;n&&R.isCollapsed(n)&&P.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&R.isCollapsed(n)&&P.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&R.isExpanded(n)&&P.delete(e,{reverse:t==="backward"})},getFragment:()=>{var{selection:t}=e;return t?W.fragment(e,t):[]},insertBreak:()=>{P.splitNodes(e,{always:!0})},insertFragment:t=>{P.insertFragment(e,t)},insertNode:t=>{P.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var i=Ld({text:t},r);P.insertNodes(e,i)}else P.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!X.isText(n)){if(te.isElement(n)&&n.children.length===0){var i={text:""};P.insertNodes(e,i,{at:r.concat(0),voids:!0});return}for(var o=E.isEditor(n)?!1:te.isElement(n)&&(e.isInline(n)||n.children.length===0||X.isText(n.children[0])||e.isInline(n.children[0])),a=0,u=0;u<n.children.length;u++,a++){var s=W.get(e,r);if(!X.isText(s)){var l=n.children[u],c=s.children[a-1],f=u===n.children.length-1,d=X.isText(l)||te.isElement(l)&&e.isInline(l);if(d!==o)P.removeNodes(e,{at:r.concat(a),voids:!0}),a--;else if(te.isElement(l)){if(e.isInline(l)){if(c==null||!X.isText(c)){var p={text:""};P.insertNodes(e,p,{at:r.concat(a),voids:!0}),a++}else if(f){var v={text:""};P.insertNodes(e,v,{at:r.concat(a+1),voids:!0}),a++}}}else c!=null&&X.isText(c)&&(X.equals(l,c,{loose:!0})?(P.mergeNodes(e,{at:r.concat(a),voids:!0}),a--):c.text===""?(P.removeNodes(e,{at:r.concat(a-1),voids:!0}),a--):l.text===""&&(P.removeNodes(e,{at:r.concat(a),voids:!0}),a--))}}}},removeMark:t=>{var{selection:n}=e;if(n)if(R.isExpanded(n))P.unsetNodes(e,t,{match:X.isText,split:!0});else{var r=Ld({},E.marks(e)||{});delete r[t],e.marks=r,cl.get(e)||e.onChange()}}};return e},$N=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":{var{path:t}=e;return _.levels(t)}case"insert_node":{var{node:n,path:r}=e,i=_.levels(r),o=X.isText(n)?[]:Array.from(W.nodes(n),M=>{var[,V]=M;return r.concat(V)});return[...i,...o]}case"merge_node":{var{path:a}=e,u=_.ancestors(a),s=_.previous(a);return[...u,s]}case"move_node":{var{path:l,newPath:c}=e;if(_.equals(l,c))return[];var f=[],d=[];for(var p of _.ancestors(l)){var v=_.transform(p,e);f.push(v)}for(var m of _.ancestors(c)){var g=_.transform(m,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,C=_.ancestors(w);return[...C]}case"split_node":{var{path:D}=e,A=_.levels(D),I=_.next(D);return[...A,I]}default:return[]}};function wN(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function pi(e,t){if(e==null)return{};var n=wN(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}var j$=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=!n,i=n?AN(t):t,o=he.None,a=he.None,u=0,s=null,l=null;for(var c of i){var f=c.codePointAt(0);if(!f)break;var d=LN(c,f);if([o,a]=r?[a,d]:[d,o],Wu(o,he.ZWJ)&&Wu(a,he.ExtPict)&&(r?s=ME(t.substring(0,u)):s=ME(t.substring(0,t.length-u)),!s)||Wu(o,he.RI)&&Wu(a,he.RI)&&(l!==null?l=!l:r?l=!0:l=VN(t.substring(0,t.length-u)),!l)||o!==he.None&&a!==he.None&&zN(o,a))break;u+=c.length}return u||1},EN=/\s/,CN=/[\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]/,DN=/['\u2018\u2019]/,xN=function(t){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=0,i=!1;t.length>0;){var o=j$(t,n),[a,u]=L$(t,o,n);if(SN(a,u,n))i=!0,r+=o;else if(!i)r+=o;else break;t=u}return r},L$=(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)]},SN=function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(EN.test(t))return!1;if(DN.test(t)){var i=j$(n,r),[o,a]=L$(n,i,r);if(e(o,a,r))return!0}return!CN.test(t)},AN=function*(t){for(var n=t.length-1,r=0;r<t.length;r++){var i=t.charAt(n-r);if(BN(i.charCodeAt(0))){var o=t.charAt(n-r-1);if(ON(o.charCodeAt(0))){yield o+i,r++;continue}}yield i}},ON=e=>e>=55296&&e<=56319,BN=e=>e>=56320&&e<=57343,he;(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"})(he||(he={}));var FN=/^(?:[\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])$/,TN=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,kN=/^(?:[\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])$/,_N=/^[\u1100-\u115F\uA960-\uA97C]$/,PN=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,NN=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,IN=/^[\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]$/,RN=/^[\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]$/,jN=/^(?:[\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])$/,LN=(e,t)=>{var n=he.Any;return e.search(FN)!==-1&&(n|=he.Extend),t===8205&&(n|=he.ZWJ),t>=127462&&t<=127487&&(n|=he.RI),e.search(TN)!==-1&&(n|=he.Prepend),e.search(kN)!==-1&&(n|=he.SpacingMark),e.search(_N)!==-1&&(n|=he.L),e.search(PN)!==-1&&(n|=he.V),e.search(NN)!==-1&&(n|=he.T),e.search(IN)!==-1&&(n|=he.LV),e.search(RN)!==-1&&(n|=he.LVT),e.search(jN)!==-1&&(n|=he.ExtPict),n};function Wu(e,t){return(e&t)!==0}var MN=[[he.L,he.L|he.V|he.LV|he.LVT],[he.LV|he.V,he.V|he.T],[he.LVT|he.T,he.T],[he.Any,he.Extend|he.ZWJ],[he.Any,he.SpacingMark],[he.Prepend,he.Any],[he.ZWJ,he.ExtPict],[he.RI,he.RI]];function zN(e,t){return MN.findIndex(n=>Wu(e,n[0])&&Wu(t,n[1]))===-1}var HN=/(?:[\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$/,ME=e=>e.search(HN)!==-1,UN=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,VN=e=>{var t=e.match(UN);if(t===null)return!1;var n=t[0].length/2;return n%2===1},zE=e=>Zt(e)&&W.isNodeList(e.children)&&!E.isEditor(e),te={isAncestor(e){return Zt(e)&&W.isNodeList(e.children)},isElement:zE,isElementList(e){return Array.isArray(e)&&e.every(t=>te.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 zE(t)&&t[r]===n},matches(e,t){for(var n in t)if(n!=="children"&&e[n]!==t[n])return!1;return!0}},WN=["text"],qN=["text"];function HE(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 lu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HE(Object(n),!0).forEach(function(r){Gr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var UE=new WeakMap,E={above(e){var t=arguments.length>1&&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(!X.isText(s)&&!_.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,lu(lu({},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,lu(lu({},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=W.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=>X.isText(n)||E.isInline(e,n))},hasTexts(e,t){return t.children.every(n=>X.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 te.isElement(t)&&!e.isInline(t)},isEditor(e){if(!Zt(e))return!1;var t=UE.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||Zt(e.marks))&&(e.selection===null||R.isRange(e.selection))&&W.isNodeList(e.children)&&Xi.isOperationList(e.operations);return UE.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&&X.isText(r)&&r.text===""&&!e.isVoid(t)},isInline(e,t){return te.isElement(t)&&e.isInline(t)},isNormalizing(e){var t=NE.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 te.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=W.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 W.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(R.isExpanded(n)){var[r]=E.nodes(e,{match:X.isText});if(r){var[i]=r,o=pi(i,WN);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:X.isText}),c=E.above(e,{match:m=>E.isBlock(e,m)});if(l&&c){var[f,d]=l,[,p]=c;_.isAncestor(p,d)&&(s=f)}}var v=pi(s,qN);return v},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(_.isPath(o)&&o.length===0)throw new Error("Cannot get the next node from the root node!");if(i==null)if(_.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=W.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(GN.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=W.nodes(e,{reverse:o,from:s,to:l,pass:$=>{var[w]=$;return a?!1:E.isVoid(e,w)}}),p=[],v;for(var[m,g]of d){var y=v&&_.compare(g,v[1])===0;if(!(r==="highest"&&y)){if(!u(m,g)){if(i&&!y&&X.isText(m))return;continue}if(r==="lowest"&&y){v=[m,g];continue}var h=r==="lowest"?v:[m,g];h&&(i?p.push(h):yield h),v=[m,g]}}r==="lowest"&&v&&(i?p.push(v):yield v),i&&(yield*p)}},normalize(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:n=!1}=t,r=o=>dh.get(o)||[];if(!!E.isNormalizing(e)){if(n){var i=Array.from(W.nodes(e),o=>{var[,a]=o;return a});dh.set(e,i)}r(e).length!==0&&E.withoutNormalizing(e,()=>{for(var o of r(e))if(W.has(e,o)){var a=E.node(e,o),[u,s]=a;te.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(W.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=_.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(_.isPath(t)){if(i==="start"){var[,o]=W.first(e,t);t=o}else if(i==="end"){var[,a]=W.last(e,t);t=a}}return R.isRange(t)&&(i==="start"?t=R.start(t):i==="end"?t=R.end(t):t=_.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 W.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=IE.get(e);return t||(t=new Set,IE.set(e,t)),t},point(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:r="start"}=n;if(_.isPath(t)){var i;if(r==="end"){var[,o]=W.last(e,t);i=o}else{var[,a]=W.first(e,t);i=a}var u=W.get(e,i);if(!X.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(R.isRange(t)){var[s,l]=R.edges(t);return r==="start"?s:l}return t},pointRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,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=RE.get(e);return t||(t=new Set,RE.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]=R.edges(a),l=i?s:u,c=!1,f="",d=0,p=0,v=0;for(var[m,g]of E.nodes(e,{at:n,reverse:i,voids:o})){if(te.isElement(m)){if(!o&&e.isVoid(m)){yield E.start(e,g);continue}if(e.isInline(m))continue;if(E.hasInlines(e,m)){var y=_.isAncestor(g,s.path)?s:E.end(e,g),h=_.isAncestor(g,u.path)?u:E.start(e,g);f=E.string(e,{anchor:h,focus:y},{voids:o}),c=!0}}if(X.isText(m)){var $=_.equals(g,l.path);for($?(p=i?l.offset:m.text.length-l.offset,v=l.offset):(p=m.text.length,v=i?p:0),($||c||r==="offset")&&(yield{path:g,offset:v},c=!1);;){if(d===0){if(f==="")break;d=w(f,r,i),f=L$(f,d,i)[1]}if(v=i?v-d:v+d,p=p-d,p<0){d=-p;break}d=0,yield{path:g,offset:v}}}}function w(C,D,A){return D==="character"?j$(C,A):D==="word"?xN(C,A):D==="line"||D==="block"?C.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(_.isPath(o)&&o.length===0)throw new Error("Cannot get the previous node from the root node!");if(i==null)if(_.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(R.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=jE.get(e);return t||(t=new Set,jE.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){NE.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]=R.edges(i),u="";for(var[s,l]of E.nodes(e,{at:i,match:X.isText,voids:r})){var c=s.text;_.equals(l,a.path)&&(c=c.slice(0,a.offset)),_.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]=R.edges(t);if(i.offset!==0||o.offset!==0||R.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:X.isText,reverse:!0,voids:r})){if(c){c=!1;continue}if(f.text!==""||_.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,lu(lu({},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)}},GN={isSpan(e){return Array.isArray(e)&&e.length===2&&e.every(_.isPath)}},KN=["children"],YN=["text"],VE=new WeakMap,W={ancestor(e,t){var n=W.get(e,t);if(X.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 _.ancestors(t,n)){var i=W.ancestor(e,r),o=[i,r];yield o}},child(e,t){if(X.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=W.ancestor(e,t),{children:o}=i,a=r?o.length-1:0;r?a>=0:a<o.length;){var u=W.child(i,a),s=t.concat(a);yield[u,s],a=r?a-1:a+1}},common(e,t,n){var r=_.common(t,n),i=W.get(e,r);return[i,r]},descendant(e,t){var n=W.get(e,t);if(E.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(n));return n},*descendants(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of W.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 W.nodes(e,t))te.isElement(n)&&(yield[n,r])},extractProps(e){if(te.isAncestor(e)){var t=pi(e,KN);return t}else{var t=pi(e,YN);return t}},first(e,t){for(var n=t.slice(),r=W.get(e,n);r&&!(X.isText(r)||r.children.length===0);)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(X.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));var n=t0({children:e.children},r=>{var[i,o]=R.edges(t),a=W.nodes(r,{reverse:!0,pass:d=>{var[,p]=d;return!R.includes(t,p)}});for(var[,u]of a){if(!R.includes(t,u)){var s=W.parent(r,u),l=u[u.length-1];s.children.splice(l,1)}if(_.equals(u,o.path)){var c=W.leaf(r,u);c.text=c.text.slice(0,o.offset)}if(_.equals(u,i.path)){var f=W.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;r<t.length;r++){var i=t[r];if(X.isText(n)||!n.children[i])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(JSON.stringify(e)));n=n.children[i]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var i=t[r];if(X.isText(n)||!n.children[i])return!1;n=n.children[i]}return!0},isNode(e){return X.isText(e)||te.isElement(e)||E.isEditor(e)},isNodeList(e){if(!Array.isArray(e))return!1;var t=VE.get(e);if(t!==void 0)return t;var n=e.every(r=>W.isNode(r));return VE.set(e,n),n},last(e,t){for(var n=t.slice(),r=W.get(e,n);r&&!(X.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=W.get(e,t);if(!X.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 _.levels(t,n)){var i=W.get(e,r);yield[i,r]}},matches(e,t){return te.isElement(e)&&te.isElementProps(t)&&te.matches(e,t)||X.isText(e)&&X.isTextProps(t)&&X.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?_.isBefore(u,o):_.isAfter(u,o)));){if(a.has(s)||(yield[s,u]),!a.has(s)&&!X.isText(s)&&s.children.length!==0&&(n==null||n([s,u])===!1)){a.add(s);var l=r?s.children.length-1:0;_.isAncestor(u,i)&&(l=i[u.length]),u=u.concat(l),s=W.get(e,u);continue}if(u.length===0)break;if(!r){var c=_.next(u);if(W.has(e,c)){u=c,s=W.get(e,u);continue}}if(r&&u[u.length-1]!==0){var f=_.previous(u);u=f,s=W.get(e,u);continue}u=_.parent(u),s=W.get(e,u),a.add(s)}},parent(e,t){var n=_.parent(t),r=W.get(e,n);if(X.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 X.isText(e)?e.text:e.children.map(W.string).join("")},*texts(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of W.nodes(e,t))X.isText(n)&&(yield[n,r])}};function WE(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 nt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WE(Object(n),!0).forEach(function(r){Gr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Xi={isNodeOperation(e){return Xi.isOperation(e)&&e.type.endsWith("_node")},isOperation(e){if(!Zt(e))return!1;switch(e.type){case"insert_node":return _.isPath(e.path)&&W.isNode(e.node);case"insert_text":return typeof e.offset=="number"&&typeof e.text=="string"&&_.isPath(e.path);case"merge_node":return typeof e.position=="number"&&_.isPath(e.path)&&Zt(e.properties);case"move_node":return _.isPath(e.path)&&_.isPath(e.newPath);case"remove_node":return _.isPath(e.path)&&W.isNode(e.node);case"remove_text":return typeof e.offset=="number"&&typeof e.text=="string"&&_.isPath(e.path);case"set_node":return _.isPath(e.path)&&Zt(e.properties)&&Zt(e.newProperties);case"set_selection":return e.properties===null&&R.isRange(e.newProperties)||e.newProperties===null&&R.isRange(e.properties)||Zt(e.properties)&&Zt(e.newProperties);case"split_node":return _.isPath(e.path)&&typeof e.position=="number"&&Zt(e.properties);default:return!1}},isOperationList(e){return Array.isArray(e)&&e.every(t=>Xi.isOperation(t))},isSelectionOperation(e){return Xi.isOperation(e)&&e.type.endsWith("_selection")},isTextOperation(e){return Xi.isOperation(e)&&e.type.endsWith("_text")},inverse(e){switch(e.type){case"insert_node":return nt(nt({},e),{},{type:"remove_node"});case"insert_text":return nt(nt({},e),{},{type:"remove_text"});case"merge_node":return nt(nt({},e),{},{type:"split_node",path:_.previous(e.path)});case"move_node":{var{newPath:t,path:n}=e;if(_.equals(t,n))return e;if(_.isSibling(n,t))return nt(nt({},e),{},{path:t,newPath:n});var r=_.transform(n,e),i=_.transform(_.next(n),e);return nt(nt({},e),{},{path:r,newPath:i})}case"remove_node":return nt(nt({},e),{},{type:"insert_node"});case"remove_text":return nt(nt({},e),{},{type:"insert_text"});case"set_node":{var{properties:o,newProperties:a}=e;return nt(nt({},e),{},{properties:a,newProperties:o})}case"set_selection":{var{properties:u,newProperties:s}=e;return u==null?nt(nt({},e),{},{properties:s,newProperties:null}):s==null?nt(nt({},e),{},{properties:null,newProperties:u}):nt(nt({},e),{},{properties:s,newProperties:u})}case"split_node":return nt(nt({},e),{},{type:"merge_node",path:_.next(e.path)})}}},_={ancestors(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=_.levels(e,t);return n?r=r.slice(1):r=r.slice(0,-1),r},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var i=e[r],o=t[r];if(i!==o)break;n.push(i)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),i=t.slice(0,n),o=e[n],a=t[n];return _.equals(r,i)&&o>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),i=t.slice(0,n);return _.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 _.equals(r,i)&&o<a},equals(e,t){return e.length===t.length&&e.every((n,r)=>n===t[r])},hasPrevious(e){return e[e.length-1]>0},isAfter(e,t){return _.compare(e,t)===1},isAncestor(e,t){return e.length<t.length&&_.compare(e,t)===0},isBefore(e,t){return _.compare(e,t)===-1},isChild(e,t){return e.length===t.length+1&&_.compare(e,t)===0},isCommon(e,t){return e.length<=t.length&&_.compare(e,t)===0},isDescendant(e,t){return e.length>t.length&&_.compare(e,t)===0},isParent(e,t){return e.length+1===t.length&&_.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&&_.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(!_.isAncestor(t,e)&&!_.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 t0(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;(_.equals(o,r)||_.endsBefore(o,r)||_.isAncestor(o,r))&&(r[o.length-1]+=1);break}case"remove_node":{var{path:a}=t;if(_.equals(a,r)||_.isAncestor(a,r))return null;_.endsBefore(a,r)&&(r[a.length-1]-=1);break}case"merge_node":{var{path:u,position:s}=t;_.equals(u,r)||_.endsBefore(u,r)?r[u.length-1]-=1:_.isAncestor(u,r)&&(r[u.length-1]-=1,r[u.length]+=s);break}case"split_node":{var{path:l,position:c}=t;if(_.equals(l,r)){if(i==="forward")r[r.length-1]+=1;else if(i!=="backward")return null}else _.endsBefore(l,r)?r[l.length-1]+=1:_.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(_.equals(f,d))return;if(_.isAncestor(f,r)||_.equals(f,r)){var p=d.slice();return _.endsBefore(f,d)&&f.length<d.length&&(p[f.length-1]-=1),p.concat(r.slice(f.length))}else _.isSibling(f,d)&&(_.isAncestor(d,r)||_.equals(d,r))?_.endsBefore(f,r)?r[f.length-1]-=1:r[f.length-1]+=1:_.endsBefore(d,r)||_.equals(d,r)||_.isAncestor(d,r)?(_.endsBefore(f,r)&&(r[f.length-1]-=1),r[d.length-1]+=1):_.endsBefore(f,r)&&(_.equals(d,r)&&(r[d.length-1]+=1),r[f.length-1]-=1);break}}}})}},XN={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=_.transform(n,t,{affinity:r});e.current=i,i==null&&e.unref()}}};function qE(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 GE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qE(Object(n),!0).forEach(function(r){Gr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var $e={compare(e,t){var n=_.compare(e.path,t.path);return n===0?e.offset<t.offset?-1:e.offset>t.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&&_.equals(e.path,t.path)},isPoint(e){return Zt(e)&&typeof e.offset=="number"&&_.isPath(e.path)},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return t0(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=_.transform(o,t,n);break}case"insert_text":{_.equals(t.path,o)&&t.offset<=a&&(r.offset+=t.text.length);break}case"merge_node":{_.equals(t.path,o)&&(r.offset+=t.position),r.path=_.transform(o,t,n);break}case"remove_text":{_.equals(t.path,o)&&t.offset<=a&&(r.offset-=Math.min(a-t.offset,t.text.length));break}case"remove_node":{if(_.equals(t.path,o)||_.isAncestor(t.path,o))return null;r.path=_.transform(o,t,n);break}case"split_node":{if(_.equals(t.path,o)){if(t.position===a&&i==null)return null;(t.position<a||t.position===a&&i==="forward")&&(r.offset-=t.position,r.path=_.transform(o,t,GE(GE({},n),{},{affinity:"forward"})))}else r.path=_.transform(o,t,n);break}}})}},JN={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=$e.transform(n,t,{affinity:r});e.current=i,i==null&&e.unref()}}},ZN=["anchor","focus"];function KE(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 QN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?KE(Object(n),!0).forEach(function(r){Gr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var R={edges(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:i}=e;return R.isBackward(e)===n?[r,i]:[i,r]},end(e){var[,t]=R.edges(e);return t},equals(e,t){return $e.equals(e.anchor,t.anchor)&&$e.equals(e.focus,t.focus)},includes(e,t){if(R.isRange(t)){if(R.includes(e,t.anchor)||R.includes(e,t.focus))return!0;var[n,r]=R.edges(e),[i,o]=R.edges(t);return $e.isBefore(n,i)&&$e.isAfter(r,o)}var[a,u]=R.edges(e),s=!1,l=!1;return $e.isPoint(t)?(s=$e.compare(t,a)>=0,l=$e.compare(t,u)<=0):(s=_.compare(t,a.path)>=0,l=_.compare(t,u.path)<=0),s&&l},intersection(e,t){var n=pi(e,ZN),[r,i]=R.edges(e),[o,a]=R.edges(t),u=$e.isBefore(r,o)?o:r,s=$e.isBefore(i,a)?i:a;return $e.isBefore(s,u)?null:QN({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!R.isCollapsed(e)},isForward(e){return!R.isBackward(e)},isRange(e){return Zt(e)&&$e.isPoint(e.anchor)&&$e.isPoint(e.focus)},*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=R.edges(e);return t},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return t0(e,r=>{if(r===null)return null;var{affinity:i="inward"}=n,o,a;if(i==="inward"){var u=R.isCollapsed(r);R.isForward(r)?(o="forward",a=u?o:"backward"):(o="backward",a=u?o:"forward")}else i==="outward"?R.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})}},eI={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=R.transform(n,t,{affinity:r});e.current=i,i==null&&e.unref()}}},A9=(e,t)=>{for(var n in e){var r=e[n],i=t[n];if(Zt(r)&&Zt(i)){if(!A9(r,i))return!1}else if(Array.isArray(r)&&Array.isArray(i)){if(r.length!==i.length)return!1;for(var o=0;o<r.length;o++)if(r[o]!==i[o])return!1}else if(r!==i)return!1}for(var a in t)if(e[a]===void 0&&t[a]!==void 0)return!1;return!0},tI=["text"],nI=["anchor","focus"];function YE(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 ni(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?YE(Object(n),!0).forEach(function(r){Gr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var X={equals(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:r=!1}=n;function i(o){var a=pi(o,tI);return a}return A9(r?i(e):e,r?i(t):t)},isText(e){return Zt(e)&&typeof e.text=="string"},isTextList(e){return Array.isArray(e)&&e.every(t=>X.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=pi(r,nI),[o,a]=R.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.offset<f||a.offset===f&&f!==0){u.push(l);continue}var d=l,p=void 0,v=void 0;if(a.offset<s){var m=a.offset-f;v=ni(ni({},d),{},{text:d.text.slice(m)}),d=ni(ni({},d),{},{text:d.text.slice(0,m)})}if(o.offset>f){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),v&&u.push(v)}n=u}return n}};function XE(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<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XE(Object(n),!0).forEach(function(r){Gr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var rI=(e,t,n)=>{switch(n.type){case"insert_node":{var{path:r,node:i}=n,o=W.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 R.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=W.leaf(e,l),p=d.text.slice(0,c),v=d.text.slice(c);if(d.text=p+f+v,t)for(var[m,g]of R.points(t))t[g]=$e.transform(m,n);break}case"merge_node":{var{path:y}=n,h=W.get(e,y),$=_.previous(y),w=W.get(e,$),C=W.parent(e,y),D=y[y.length-1];if(X.isText(h)&&X.isText(w))w.text+=h.text;else if(!X.isText(h)&&!X.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(C.children.splice(D,1),t)for(var[A,I]of R.points(t))t[I]=$e.transform(A,n);break}case"move_node":{var{path:M,newPath:V}=n;if(_.isAncestor(M,V))throw new Error("Cannot move a path [".concat(M,"] to new path [").concat(V,"] because the destination is inside itself."));var Y=W.get(e,M),J=W.parent(e,M),Z=M[M.length-1];J.children.splice(Z,1);var se=_.transform(M,n),ee=W.get(e,_.parent(se)),ae=se[se.length-1];if(ee.children.splice(ae,0,Y),t)for(var[fe,_e]of R.points(t))t[_e]=$e.transform(fe,n);break}case"remove_node":{var{path:ve}=n,ie=ve[ve.length-1],Ie=W.parent(e,ve);if(Ie.children.splice(ie,1),t)for(var[T,F]of R.points(t)){var k=$e.transform(T,n);if(t!=null&&k!=null)t[F]=k;else{var N=void 0,H=void 0;for(var[j,Q]of W.texts(e))if(_.compare(Q,ve)===-1)N=[j,Q];else{H=[j,Q];break}var ce=!1;N&&H&&(_.equals(H[1],ve)?ce=!_.hasPrevious(H[1]):ce=_.common(N[1],ve).length<_.common(H[1],ve).length),N&&!ce?(T.path=N[1],T.offset=N[0].text.length):H?(T.path=H[1],T.offset=0):t=null}}break}case"remove_text":{var{path:we,offset:Re,text:z}=n;if(z.length===0)break;var ze=W.leaf(e,we),ye=ze.text.slice(0,Re),ue=ze.text.slice(Re+z.length);if(ze.text=ye+ue,t)for(var[be,mn]of R.points(t))t[mn]=$e.transform(be,n);break}case"set_node":{var{path:qe,properties:lt,newProperties:ft}=n;if(qe.length===0)throw new Error("Cannot set properties on the root node!");var sn=W.get(e,qe);for(var dt in ft){if(dt==="children"||dt==="text")throw new Error('Cannot set the "'.concat(dt,'" property of nodes!'));var Nn=ft[dt];Nn==null?delete sn[dt]:sn[dt]=Nn}for(var yn in lt)ft.hasOwnProperty(yn)||delete sn[yn];break}case"set_selection":{var{newProperties:ln}=n;if(ln==null)t=ln;else{if(t==null){if(!R.isRange(ln))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(ln)," when there is no current selection."));t=fl({},ln)}for(var yr in ln){var br=ln[yr];if(br==null){if(yr==="anchor"||yr==="focus")throw new Error('Cannot remove the "'.concat(yr,'" selection property'));delete t[yr]}else t[yr]=br}}break}case"split_node":{var{path:bn,position:$r,properties:nn}=n;if(bn.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(bn,"] because the root node cannot be split."));var In=W.get(e,bn),nu=W.parent(e,bn),Js=bn[bn.length-1],Xr;if(X.isText(In)){var bi=In.text.slice(0,$r),ru=In.text.slice($r);In.text=bi,Xr=fl(fl({},nn),{},{text:ru})}else{var $i=In.children.slice(0,$r),Jr=In.children.slice($r);In.children=$i,Xr=fl(fl({},nn),{},{children:Jr})}if(nu.children.splice(Js+1,0,Xr),t)for(var[$n,wi]of R.points(t))t[wi]=$e.transform($n,n);break}}return t},iI={transform(e,t){e.children=_E(e.children);var n=e.selection&&_E(e.selection);try{n=rI(e,n,t)}finally{e.children=PE(e.children),n?e.selection=ka(n)?PE(n):n:e.selection=null}}},oI=["text"],aI=["children"];function JE(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 ZE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JE(Object(n),!0).forEach(function(r){Gr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var uI={insertNodes(e,t){var n=arguments.length>2&&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(W.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),R.isRange(a))if(r||(a=E.unhangRange(e,a)),R.isCollapsed(a))a=a.anchor;else{var[,c]=R.edges(a),f=E.pointRef(e,c);P.delete(e,{at:a}),a=f.unref()}if($e.isPoint(a)){u==null&&(X.isText(l)?u=D=>X.isText(D):e.isInline(l)?u=D=>X.isText(D)||E.isInline(e,D):u=D=>E.isBlock(e,D));var[d]=E.nodes(e,{at:a.path,match:u,mode:o,voids:i});if(d){var[,p]=d,v=E.pathRef(e,p),m=E.isEnd(e,a,p);P.splitNodes(e,{at:a,match:u,mode:o,voids:i});var g=v.unref();a=m?_.next(g):g}else return}var y=_.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=_.next(a)}if(a=_.previous(a),s){var C=E.end(e,a);C&&P.select(e,C)}}}})},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=_.isPath(n)?cu(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,_.parent(l)),[f,d]=c,p=l[l.length-1],{length:v}=f.children;if(v===1){var m=_.next(d);P.moveNodes(e,{at:l,to:m,voids:i}),P.removeNodes(e,{at:d,voids:i})}else if(p===0)P.moveNodes(e,{at:l,to:d,voids:i});else if(p===v-1){var g=_.next(d);P.moveNodes(e,{at:l,to:g,voids:i})}else{var y=_.next(l),h=_.next(d);P.splitNodes(e,{at:y,voids:i}),P.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(_.isPath(r)){var[u]=E.parent(e,r);n=M=>u.children.includes(M)}else n=M=>E.isBlock(e,M);if(!i&&R.isRange(r)&&(r=E.unhangRange(e,r)),R.isRange(r))if(R.isCollapsed(r))r=r.anchor;else{var[,s]=R.edges(r),l=E.pointRef(e,s);P.delete(e,{at:r}),r=l.unref(),t.at==null&&P.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,[v,m]=f;if(!(p.length===0||m.length===0)){var g=_.next(m),y=_.common(p,m),h=_.isSibling(p,m),$=Array.from(E.levels(e,{at:p}),M=>{var[V]=M;return V}).slice(y.length).slice(0,-1),w=E.above(e,{at:p,mode:"highest",match:M=>$.includes(M)&&O9(e,M)}),C=w&&E.pathRef(e,w[1]),D,A;if(X.isText(d)&&X.isText(v)){var I=pi(d,oI);A=v.text.length,D=I}else if(te.isElement(d)&&te.isElement(v)){var I=pi(d,aI);A=v.children.length,D=I}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(v)));h||P.moveNodes(e,{at:p,to:g,voids:o}),C&&P.removeNodes(e,{at:C.current,voids:o}),te.isElement(v)&&E.isEmpty(e,v)||X.isText(v)&&v.text===""&&m[m.length-1]!==0?P.removeNodes(e,{at:m,voids:o}):e.apply({type:"merge_node",path:g,position:A,properties:D}),C&&C.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=_.isPath(r)?cu(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[,v]=p;return E.pathRef(e,v)});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&&_.isSibling(d,f)&&_.isAfter(d,f)&&(u.current=_.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=_.isPath(o)?cu(e,o):d=>E.isBlock(e,d)),!n&&R.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=_.isPath(i)?cu(e,i):C=>E.isBlock(e,C)),!o&&R.isRange(i)&&(i=E.unhangRange(e,i)),u&&R.isRange(i)){if(R.isCollapsed(i)&&E.leaf(e,i.anchor)[0].text.length>0)return;var l=E.rangeRef(e,i,{affinity:"inward"}),[c,f]=R.edges(i),d=a==="lowest"?"lowest":"highest",p=E.isEnd(e,f,f.path);P.splitNodes(e,{at:f,match:r,mode:d,voids:s,always:!p});var v=E.isStart(e,c,c.path);P.splitNodes(e,{at:c,match:r,mode:d,voids:s,always:!v}),i=l.unref(),n.at==null&&P.select(e,i)}for(var[m,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]!==m[w]&&($=!0,m.hasOwnProperty(w)&&(y[w]=m[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=fe=>E.isBlock(e,fe)),R.isRange(o)&&(o=sI(e,o)),_.isPath(o)){var s=o,l=E.point(e,s),[c]=E.parent(e,s);i=fe=>fe===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"}),v=0;if(!r&&p){var[m,g]=p;if(te.isElement(m)&&e.isInline(m)){var y=E.after(e,g);if(!y){var h={text:""},$=_.next(g);P.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 C=E.pointRef(e,o),D=o.path.length-a,[,A]=d,I=o.path.slice(0,D),M=a===0?o.offset:o.path[D]+v;for(var[V,Y]of E.levels(e,{at:I,reverse:!0,voids:r})){var J=!1;if(Y.length<A.length||Y.length===0||!r&&E.isVoid(e,V))break;var Z=f.current,se=E.isEnd(e,Z,Y);if(u||!f||!E.isEdge(e,Z,Y)){J=!0;var ee=W.extractProps(V);e.apply({type:"split_node",path:Y,position:M,properties:ee})}M=Y[Y.length-1]+(J||se?1:0)}if(t.at==null){var ae=C.current||E.end(e,[]);P.select(e,ae)}f.unref(),C.unref()}}})},unsetNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var i of t)r[i]=null;P.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=_.isPath(o)?cu(e,o):d=>E.isBlock(e,d)),_.isPath(o)&&(o=E.range(e,o));var u=R.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 v=p.unref(),[m]=E.node(e,v),g=E.range(e,v);r&&u&&(g=R.intersection(u.current,g)),P.liftNodes(e,{at:g,match:y=>te.isAncestor(m)&&m.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&&(_.isPath(u)?a=cu(e,u):e.isInline(t)?a=g=>E.isInline(e,g)||X.isText(g):a=g=>E.isBlock(e,g)),i&&R.isRange(u)){var[s,l]=R.edges(u),c=E.rangeRef(e,u,{affinity:"inward"});P.splitNodes(e,{at:l,match:a,voids:o}),P.splitNodes(e,{at:s,match:a,voids:o}),u=c.unref(),n.at==null&&P.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=R.isRange(u)?R.intersection(u,E.range(e,d)):u;if(!!p){var v=Array.from(E.nodes(e,{at:p,match:a,mode:r,voids:o}));if(v.length>0){var m=function(){var[g]=v,y=v[v.length-1],[,h]=g,[,$]=y;if(h.length===0&&$.length===0)return"continue";var w=_.equals(h,$)?_.parent(h):_.common(h,$),C=E.range(e,h,$),D=E.node(e,w),[A]=D,I=w.length+1,M=_.next($.slice(0,I)),V=ZE(ZE({},t),{},{children:[]});P.insertNodes(e,V,{at:M,voids:o}),P.moveNodes(e,{at:C,match:Y=>te.isAncestor(A)&&A.children.includes(Y),to:M.concat(0),voids:o})}();if(m==="continue")continue}}}}})}},O9=(e,t)=>{if(te.isElement(t)){var n=t;return E.isVoid(e,t)?!0:n.children.length===1?O9(e,n.children[0]):!1}else return!E.isEditor(t)},sI=(e,t)=>{if(R.isCollapsed(t))return t.anchor;var[,n]=R.edges(t),r=E.pointRef(e,n);return P.delete(e,{at:t}),r.unref()},cu=(e,t)=>{var[n]=E.node(e,t);return r=>r===n};function QE(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 e6(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QE(Object(n),!0).forEach(function(r){Gr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var lI={collapse(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:n="anchor"}=t,{selection:r}=e;if(r){if(n==="anchor")P.select(e,r.anchor);else if(n==="focus")P.select(e,r.focus);else if(n==="start"){var[i]=R.edges(r);P.select(e,i)}else if(n==="end"){var[,o]=R.edges(r);P.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=R.isBackward(n)?"focus":"anchor"),a==="end"&&(a=R.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)}P.setSelection(e,c)}},select(e,t){var{selection:n}=e;if(t=E.range(e,t),n){P.setSelection(e,t);return}if(!R.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})},setPoint(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:r}=e,{edge:i="both"}=n;if(!!r){i==="start"&&(i=R.isBackward(r)?"focus":"anchor"),i==="end"&&(i=R.isBackward(r)?"anchor":"focus");var{anchor:o,focus:a}=r,u=i==="anchor"?o:a;P.setSelection(e,{[i==="anchor"?"anchor":"focus"]:e6(e6({},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})}}},cI={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(R.isRange(a)&&R.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(_.isPath(a)){P.removeNodes(e,{at:a,voids:o});return}if(!R.isCollapsed(a)){if(!u){var[,d]=R.edges(a),p=E.end(e,[]);$e.equals(d,p)||(a=E.unhangRange(e,a,{voids:o}))}var[v,m]=R.edges(a),g=E.above(e,{match:ce=>E.isBlock(e,ce),at:v,voids:o}),y=E.above(e,{match:ce=>E.isBlock(e,ce),at:m,voids:o}),h=g&&y&&!_.equals(g[1],y[1]),$=_.equals(v.path,m.path),w=o?null:E.void(e,{at:v,mode:"highest"}),C=o?null:E.void(e,{at:m,mode:"highest"});if(w){var D=E.before(e,v);D&&g&&_.isAncestor(g[1],D.path)&&(v=D)}if(C){var A=E.after(e,m);A&&y&&_.isAncestor(y[1],A.path)&&(m=A)}var I=[],M;for(var V of E.nodes(e,{at:a,voids:o})){var[Y,J]=V;M&&_.compare(J,M)===0||(!o&&E.isVoid(e,Y)||!_.isCommon(J,v.path)&&!_.isCommon(J,m.path))&&(I.push(V),M=J)}var Z=Array.from(I,ce=>{var[,we]=ce;return E.pathRef(e,we)}),se=E.pointRef(e,v),ee=E.pointRef(e,m);if(!$&&!w){var ae=se.current,[fe]=E.leaf(e,ae),{path:_e}=ae,{offset:ve}=v,ie=fe.text.slice(ve);ie.length>0&&e.apply({type:"remove_text",path:_e,offset:ve,text:ie})}for(var Ie of Z){var T=Ie.unref();P.removeNodes(e,{at:T,voids:o})}if(!C){var F=ee.current,[k]=E.leaf(e,F),{path:N}=F,H=$?v.offset:0,j=k.text.slice(H,m.offset);j.length>0&&e.apply({type:"remove_text",path:N,offset:H,text:j})}!$&&h&&ee.current&&se.current&&P.mergeNodes(e,{at:ee.current,hanging:!0,voids:o});var Q=n?se.unref()||ee.unref():ee.unref()||se.unref();t.at==null&&Q&&P.select(e,Q)}}})},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(R.isRange(o))if(r||(o=E.unhangRange(e,o)),R.isCollapsed(o))o=o.anchor;else{var[,a]=R.edges(o);if(!i&&E.void(e,{at:a}))return;var u=E.pointRef(e,a);P.delete(e,{at:o}),o=u.unref()}else _.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,v=E.isStart(e,o,p),m=E.isEnd(e,o,p),g=v&&m,y=!v||v&&m,h=!m,[,$]=W.first({children:t},[]),[,w]=W.last({children:t},[]),C=[],D=k=>{var[N,H]=k,j=H.length===0;return j?!1:g?!0:!(y&&_.isAncestor(H,$)&&te.isElement(N)&&!e.isVoid(N)&&!e.isInline(N)||h&&_.isAncestor(H,w)&&te.isElement(N)&&!e.isVoid(N)&&!e.isInline(N))};for(var A of W.nodes({children:t},{pass:D}))D(A)&&C.push(A);var I=[],M=[],V=[],Y=!0,J=!1;for(var[Z]of C)te.isElement(Z)&&!e.isInline(Z)?(Y=!1,J=!0,M.push(Z)):Y?I.push(Z):V.push(Z);var[se]=E.nodes(e,{at:o,match:k=>X.isText(k)||E.isInline(e,k),mode:"highest",voids:i}),[,ee]=se,ae=E.isStart(e,o,ee),fe=E.isEnd(e,o,ee),_e=E.pathRef(e,m?_.next(p):p),ve=E.pathRef(e,fe?_.next(ee):ee),ie=E.pathRef(e,p);P.splitNodes(e,{at:o,match:k=>J?E.isBlock(e,k):X.isText(k)||E.isInline(e,k),mode:J?"lowest":"highest",voids:i});var Ie=E.pathRef(e,!ae||ae&&fe?_.next(ee):ee);if(P.insertNodes(e,I,{at:Ie.current,match:k=>X.isText(k)||E.isInline(e,k),mode:"highest",voids:i}),g&&M.length&&P.delete(e,{at:ie.unref(),voids:i}),P.insertNodes(e,M,{at:_e.current,match:k=>E.isBlock(e,k),mode:"lowest",voids:i}),P.insertNodes(e,V,{at:ve.current,match:k=>X.isText(k)||E.isInline(e,k),mode:"highest",voids:i}),!n.at){var T;V.length>0?T=_.previous(ve.current):M.length>0?T=_.previous(_e.current):T=_.previous(Ie.current);var F=E.end(e,T);P.select(e,F)}Ie.unref(),_e.unref(),ve.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(_.isPath(i)&&(i=E.range(e,i)),R.isRange(i))if(R.isCollapsed(i))i=i.anchor;else{var o=R.end(i);if(!r&&E.void(e,{at:o}))return;var a=E.pointRef(e,o);P.delete(e,{at:i,voids:r}),i=a.unref(),P.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 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 Md(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?t6(Object(n),!0).forEach(function(r){Gr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var P=Md(Md(Md(Md({},iI),uI),lI),cI),ot=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function M$(e){var t={exports:{}};return e(t,t.exports),t.exports}var B9=9007199254740991,fI="[object Arguments]",dI="[object Function]",pI="[object GeneratorFunction]",F2="[object Map]",hI="[object Object]",n6="[object Promise]",T2="[object Set]",gI="[object String]",r6="[object WeakMap]",i6="[object DataView]",vI=/[\\^$.*+?()[\]{}|]/g,mI=/^\[object .+?Constructor\]$/,yI=/^(?:0|[1-9]\d*)$/,z$="\\ud800-\\udfff",F9="\\u0300-\\u036f\\ufe20-\\ufe23",T9="\\u20d0-\\u20f0",k9="\\ufe0e\\ufe0f",bI="["+z$+"]",k2="["+F9+T9+"]",_2="\\ud83c[\\udffb-\\udfff]",$I="(?:"+k2+"|"+_2+")",_9="[^"+z$+"]",P9="(?:\\ud83c[\\udde6-\\uddff]){2}",N9="[\\ud800-\\udbff][\\udc00-\\udfff]",I9="\\u200d",R9=$I+"?",j9="["+k9+"]?",wI="(?:"+I9+"(?:"+[_9,P9,N9].join("|")+")"+j9+R9+")*",EI=j9+R9+wI,CI="(?:"+[_9+k2+"?",k2,P9,N9,bI].join("|")+")",DI=RegExp(_2+"(?="+_2+")|"+CI+EI,"g"),xI=RegExp("["+I9+z$+F9+T9+k9+"]"),SI=typeof ot=="object"&&ot&&ot.Object===Object&&ot,AI=typeof self=="object"&&self&&self.Object===Object&&self,qa=SI||AI||Function("return this")();function OI(e,t){for(var n=-1,r=e?e.length:0,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function BI(e){return e.split("")}function FI(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function TI(e,t){return OI(t,function(n){return e[n]})}function kI(e,t){return e==null?void 0:e[t]}function _I(e){return xI.test(e)}function PI(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function NI(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function II(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function RI(e,t){return function(n){return e(t(n))}}function jI(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}function LI(e){return _I(e)?MI(e):BI(e)}function MI(e){return e.match(DI)||[]}var zI=Function.prototype,n0=Object.prototype,Yv=qa["__core-js_shared__"],o6=function(){var e=/[^.]+$/.exec(Yv&&Yv.keys&&Yv.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),L9=zI.toString,r0=n0.hasOwnProperty,Uf=n0.toString,HI=RegExp("^"+L9.call(r0).replace(vI,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),a6=qa.Symbol,Xv=a6?a6.iterator:void 0,UI=n0.propertyIsEnumerable,VI=RI(Object.keys,Object),P2=Vf(qa,"DataView"),N2=Vf(qa,"Map"),I2=Vf(qa,"Promise"),R2=Vf(qa,"Set"),j2=Vf(qa,"WeakMap"),WI=Ga(P2),qI=Ga(N2),GI=Ga(I2),KI=Ga(R2),YI=Ga(j2);function XI(e,t){var n=M9(e)||iR(e)?FI(e.length,String):[],r=n.length,i=!!r;for(var o in e)(t||r0.call(e,o))&&!(i&&(o=="length"||tR(o,r)))&&n.push(o);return n}function JI(e){return Uf.call(e)}function ZI(e){if(!H9(e)||nR(e))return!1;var t=z9(e)||PI(e)?HI:mI;return t.test(Ga(e))}function QI(e){if(!rR(e))return VI(e);var t=[];for(var n in Object(e))r0.call(e,n)&&n!="constructor"&&t.push(n);return t}function eR(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function Vf(e,t){var n=kI(e,t);return ZI(n)?n:void 0}var ta=JI;(P2&&ta(new P2(new ArrayBuffer(1)))!=i6||N2&&ta(new N2)!=F2||I2&&ta(I2.resolve())!=n6||R2&&ta(new R2)!=T2||j2&&ta(new j2)!=r6)&&(ta=function(e){var t=Uf.call(e),n=t==hI?e.constructor:void 0,r=n?Ga(n):void 0;if(r)switch(r){case WI:return i6;case qI:return F2;case GI:return n6;case KI:return T2;case YI:return r6}return t});function tR(e,t){return t=t==null?B9:t,!!t&&(typeof e=="number"||yI.test(e))&&e>-1&&e%1==0&&e<t}function nR(e){return!!o6&&o6 in e}function rR(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||n0;return e===n}function Ga(e){if(e!=null){try{return L9.call(e)}catch{}try{return e+""}catch{}}return""}function iR(e){return oR(e)&&r0.call(e,"callee")&&(!UI.call(e,"callee")||Uf.call(e)==fI)}var M9=Array.isArray;function H$(e){return e!=null&&aR(e.length)&&!z9(e)}function oR(e){return U9(e)&&H$(e)}function z9(e){var t=H9(e)?Uf.call(e):"";return t==dI||t==pI}function aR(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=B9}function H9(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function U9(e){return!!e&&typeof e=="object"}function uR(e){return typeof e=="string"||!M9(e)&&U9(e)&&Uf.call(e)==gI}function sR(e){if(!e)return[];if(H$(e))return uR(e)?LI(e):eR(e);if(Xv&&e[Xv])return NI(e[Xv]());var t=ta(e),n=t==F2?II:t==T2?jI:cR;return n(e)}function lR(e){return H$(e)?XI(e):QI(e)}function cR(e){return e?TI(e,lR(e)):[]}var u6=sR;function s6(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function U$(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach(function(n){typeof e[n]>"u"?e[n]=t[n]:s6(t[n])&&s6(e[n])&&Object.keys(t[n]).length>0&&U$(e[n],t[n])})}var V9={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 Wf(){var e=typeof document<"u"?document:{};return U$(e,V9),e}var fR={document:V9,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){typeof setTimeout>"u"||clearTimeout(e)}};function Ka(){var e=typeof window<"u"?window:{};return U$(e,fR),e}function dR(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function L2(e){return L2=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},L2(e)}function ph(e,t){return ph=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},ph(e,t)}function pR(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function jp(e,t,n){return pR()?jp=Reflect.construct:jp=function(i,o,a){var u=[null];u.push.apply(u,o);var s=Function.bind.apply(i,u),l=new s;return a&&ph(l,a.prototype),l},jp.apply(null,arguments)}function hR(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function M2(e){var t=typeof Map=="function"?new Map:void 0;return M2=function(r){if(r===null||!hR(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return jp(r,arguments,L2(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),ph(i,r)},M2(e)}function gR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vR(e){var t=e.__proto__;Object.defineProperty(e,"__proto__",{get:function(){return t},set:function(r){t.__proto__=r}})}var Ji=function(e){dR(t,e);function t(n){var r;return r=e.call.apply(e,[this].concat(n))||this,vR(gR(r)),r}return t}(M2(Array));function i0(e){e===void 0&&(e=[]);var t=[];return e.forEach(function(n){Array.isArray(n)?t.push.apply(t,i0(n)):t.push(n)}),t}function W9(e,t){return Array.prototype.filter.call(e,t)}function mR(e){for(var t=[],n=0;n<e.length;n+=1)t.indexOf(e[n])===-1&&t.push(e[n]);return t}function yR(e){return e.toLowerCase().replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function bR(e,t){if(typeof e!="string")return[e];for(var n=[],r=t.querySelectorAll(e),i=0;i<r.length;i+=1)n.push(r[i]);return n}function O(e,t){var n=Ka(),r=Wf(),i=[];if(!t&&e instanceof Ji)return e;if(!e)return new Ji(i);if(typeof e=="string"){var o=e.trim();if(o.indexOf("<")>=0&&o.indexOf(">")>=0){var a="div";o.indexOf("<li")===0&&(a="ul"),o.indexOf("<tr")===0&&(a="tbody"),(o.indexOf("<td")===0||o.indexOf("<th")===0)&&(a="tr"),o.indexOf("<tbody")===0&&(a="table"),o.indexOf("<option")===0&&(a="select");var u=r.createElement(a);u.innerHTML=o;for(var s=0;s<u.childNodes.length;s+=1)i.push(u.childNodes[s])}else i=bR(e.trim(),t||r)}else if(e.nodeType||e===n||e===r)i.push(e);else if(Array.isArray(e)){if(e instanceof Ji)return e;i=e}return new Ji(mR(i))}O.fn=Ji.prototype;function fs(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=i0(t.map(function(i){return i.split(" ")}));return this.forEach(function(i){var o;(o=i.classList).add.apply(o,r)}),this}function ds(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=i0(t.map(function(i){return i.split(" ")}));return this.forEach(function(i){var o;(o=i.classList).remove.apply(o,r)}),this}function ps(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=i0(t.map(function(i){return i.split(" ")}));return W9(this,function(i){return r.filter(function(o){return i.classList.contains(o)}).length>0}).length>0}function Mr(e,t){if(arguments.length===1&&typeof e=="string")return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n<this.length;n+=1)if(arguments.length===2)this[n].setAttribute(e,t);else for(var r in e)this[n][r]=e[r],this[n].setAttribute(r,e[r]);return this}function hh(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function hs(){var e=this[0];if(!!e){var t={};if(e.dataset)for(var n in e.dataset)t[n]=e.dataset[n];else for(var r=0;r<e.attributes.length;r+=1){var i=e.attributes[r];i.name.indexOf("data-")>=0&&(t[yR(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 zr(e){if(typeof e>"u"){var t=this[0];if(!t)return;if(t.multiple&&t.nodeName.toLowerCase()==="select"){for(var n=[],r=0;r<t.selectedOptions.length;r+=1)n.push(t.selectedOptions[r].value);return n}return t.value}for(var i=0;i<this.length;i+=1){var o=this[i];if(Array.isArray(e)&&o.multiple&&o.nodeName.toLowerCase()==="select")for(var a=0;a<o.options.length;a+=1)o.options[a].selected=e.indexOf(o.options[a].value)>=0;else o.value=e}return this}function Hr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],o=t[2],a=t[3];typeof t[1]=="function"&&(r=t[0],o=t[1],a=t[2],i=void 0),a||(a=!1);function u(m){var g=m.target;if(!!g){var y=m.target.dom7EventData||[];if(y.indexOf(m)<0&&y.unshift(m),O(g).is(i))o.apply(g,y);else for(var h=O(g).parents(),$=0;$<h.length;$+=1)O(h[$]).is(i)&&o.apply(h[$],y)}}function s(m){var g=m&&m.target?m.target.dom7EventData||[]:[];g.indexOf(m)<0&&g.unshift(m),o.apply(this,g)}for(var l=r.split(" "),c,f=0;f<this.length;f+=1){var d=this[f];if(i)for(c=0;c<l.length;c+=1){var v=l[c];d.dom7LiveListeners||(d.dom7LiveListeners={}),d.dom7LiveListeners[v]||(d.dom7LiveListeners[v]=[]),d.dom7LiveListeners[v].push({listener:o,proxyListener:u}),d.addEventListener(v,u,a)}else for(c=0;c<l.length;c+=1){var p=l[c];d.dom7Listeners||(d.dom7Listeners={}),d.dom7Listeners[p]||(d.dom7Listeners[p]=[]),d.dom7Listeners[p].push({listener:o,proxyListener:s}),d.addEventListener(p,s,a)}}return this}function l6(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],o=t[2],a=t[3];typeof t[1]=="function"&&(r=t[0],o=t[1],a=t[2],i=void 0),a||(a=!1);for(var u=r.split(" "),s=0;s<u.length;s+=1)for(var l=u[s],c=0;c<this.length;c+=1){var f=this[c],d=void 0;if(!i&&f.dom7Listeners?d=f.dom7Listeners[l]:i&&f.dom7LiveListeners&&(d=f.dom7LiveListeners[l]),d&&d.length)for(var p=d.length-1;p>=0;p-=1){var v=d[p];o&&v.listener===o||o&&v.listener&&v.listener.dom7proxy&&v.listener.dom7proxy===o?(f.removeEventListener(l,v.proxyListener,a),d.splice(p,1)):o||(f.removeEventListener(l,v.proxyListener,a),d.splice(p,1))}}return this}function gh(){var e=Ka();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function vh(){var e=Ka();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function c6(){if(this.length>0){var e=Ka(),t=Wf(),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 gs(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function mh(){for(var e=Ka(),t=0;t<this.length;t+=1){var n=this[t];n.style.display==="none"&&(n.style.display=""),e.getComputedStyle(n,null).getPropertyValue("display")==="none"&&(n.style.display="block")}return this}function yh(e,t){var n=Ka(),r;if(arguments.length===1)if(typeof e=="string"){if(this[0])return n.getComputedStyle(this[0],null).getPropertyValue(e)}else{for(r=0;r<this.length;r+=1)for(var i in e)this[r].style[i]=e[i];return this}if(arguments.length===2&&typeof e=="string"){for(r=0;r<this.length;r+=1)this[r].style[e]=t;return this}return this}function bh(e){return e?(this.forEach(function(t,n){e.apply(t,[t,n])}),this):this}function f6(e){var t=W9(this,e);return O(t)}function yo(e){if(typeof e>"u")return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function $h(e){if(typeof e>"u")return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function d6(e){var t=Ka(),n=Wf(),r=this[0],i,o;if(!r||typeof e>"u")return!1;if(typeof e=="string"){if(r.matches)return r.matches(e);if(r.webkitMatchesSelector)return r.webkitMatchesSelector(e);if(r.msMatchesSelector)return r.msMatchesSelector(e);for(i=O(e),o=0;o<i.length;o+=1)if(i[o]===r)return!0;return!1}if(e===n)return r===n;if(e===t)return r===t;if(e.nodeType||e instanceof Ji){for(i=e.nodeType?[e]:e,o=0;o<i.length;o+=1)if(i[o]===r)return!0;return!1}return!1}function Ur(){for(var e,t=Wf(),n=0;n<arguments.length;n+=1){e=n<0||arguments.length<=n?void 0:arguments[n];for(var r=0;r<this.length;r+=1)if(typeof e=="string"){var i=t.createElement("div");for(i.innerHTML=e;i.firstChild;)this[r].appendChild(i.firstChild)}else if(e instanceof Ji)for(var o=0;o<e.length;o+=1)this[r].appendChild(e[o]);else this[r].appendChild(e)}return this}function p6(e){var t=Wf(),n,r;for(n=0;n<this.length;n+=1)if(typeof e=="string"){var i=t.createElement("div");for(i.innerHTML=e,r=i.childNodes.length-1;r>=0;r-=1)this[n].insertBefore(i.childNodes[r],this[n].childNodes[0])}else if(e instanceof Ji)for(r=0;r<e.length;r+=1)this[n].insertBefore(e[r],this[n].childNodes[0]);else this[n].insertBefore(e,this[n].childNodes[0]);return this}function wh(e){for(var t=[],n=0;n<this.length;n+=1)this[n].parentNode!==null&&(e?O(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return O(t)}function Eh(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?O(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return O(t)}function vs(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(e),i=0;i<r.length;i+=1)t.push(r[i]);return O(t)}function ms(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].children,i=0;i<r.length;i+=1)(!e||O(r[i]).is(e))&&t.push(r[i]);return O(t)}function ys(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function bs(){for(var e=0;e<this.length;e+=1){var t=this[e];if(t.nodeType===1){for(var n=0;n<t.childNodes.length;n+=1)t.childNodes[n].parentNode&&t.childNodes[n].parentNode.removeChild(t.childNodes[n]);t.textContent=""}}return this}var $R="resize scroll".split(" ");function q9(e){function t(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];if(typeof r[0]>"u"){for(var o=0;o<this.length;o+=1)$R.indexOf(e)<0&&(e in this[o]?this[o][e]():O(this[o]).trigger(e));return this}return this.on.apply(this,[e].concat(r))}return t}var h6=q9("click"),bo=q9("focus"),G9=9007199254740991,wR="[object Arguments]",ER="[object Function]",CR="[object GeneratorFunction]",DR=/^(?:0|[1-9]\d*)$/;function xR(e,t){for(var n=-1,r=e?e.length:0;++n<r&&t(e[n],n,e)!==!1;);return e}function SR(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function AR(e,t){return function(n){return e(t(n))}}var o0=Object.prototype,V$=o0.hasOwnProperty,K9=o0.toString,OR=o0.propertyIsEnumerable,BR=AR(Object.keys,Object);function FR(e,t){var n=Y9(e)||MR(e)?SR(e.length,String):[],r=n.length,i=!!r;for(var o in e)(t||V$.call(e,o))&&!(i&&(o=="length"||RR(o,r)))&&n.push(o);return n}var TR=NR(_R),kR=IR();function _R(e,t){return e&&kR(e,t,qR)}function PR(e){if(!jR(e))return BR(e);var t=[];for(var n in Object(e))V$.call(e,n)&&n!="constructor"&&t.push(n);return t}function NR(e,t){return function(n,r){if(n==null)return n;if(!W$(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Object(n);(t?o--:++o<i)&&r(a[o],o,a)!==!1;);return n}}function IR(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),u=a.length;u--;){var s=a[e?u:++i];if(n(o[s],s,o)===!1)break}return t}}function RR(e,t){return t=t==null?G9:t,!!t&&(typeof e=="number"||DR.test(e))&&e>-1&&e%1==0&&e<t}function jR(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||o0;return e===n}function LR(e,t){var n=Y9(e)?xR:TR;return n(e,typeof t=="function"?t:GR)}function MR(e){return zR(e)&&V$.call(e,"callee")&&(!OR.call(e,"callee")||K9.call(e)==wR)}var Y9=Array.isArray;function W$(e){return e!=null&&UR(e.length)&&!HR(e)}function zR(e){return WR(e)&&W$(e)}function HR(e){var t=VR(e)?K9.call(e):"";return t==ER||t==CR}function UR(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=G9}function VR(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function WR(e){return!!e&&typeof e=="object"}function qR(e){return W$(e)?FR(e):PR(e)}function GR(e){return e}var q$=LR;{if(typeof navigator<"u"&&navigator.product==="ReactNative"&&typeof crypto>"u")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<"u"&&typeof crypto>"u")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>"u")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 X9=(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 J9="Expected a function",g6=0/0,KR="[object Symbol]",YR=/^\s+|\s+$/g,XR=/^[-+]0x[0-9a-f]+$/i,JR=/^0b[01]+$/i,ZR=/^0o[0-7]+$/i,QR=parseInt,ej=typeof ot=="object"&&ot&&ot.Object===Object&&ot,tj=typeof self=="object"&&self&&self.Object===Object&&self,nj=ej||tj||Function("return this")(),rj=Object.prototype,ij=rj.toString,oj=Math.max,aj=Math.min,Jv=function(){return nj.Date.now()};function uj(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(J9);t=v6(t)||0,Ch(n)&&(c=!!n.leading,f="maxWait"in n,o=f?oj(v6(n.maxWait)||0,t):o,d="trailing"in n?!!n.trailing:d);function p(D){var A=r,I=i;return r=i=void 0,l=D,a=e.apply(I,A),a}function v(D){return l=D,u=setTimeout(y,t),c?p(D):a}function m(D){var A=D-s,I=D-l,M=t-A;return f?aj(M,o-I):M}function g(D){var A=D-s,I=D-l;return s===void 0||A>=t||A<0||f&&I>=o}function y(){var D=Jv();if(g(D))return h(D);u=setTimeout(y,m(D))}function h(D){return u=void 0,d&&r?p(D):(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(Jv())}function C(){var D=Jv(),A=g(D);if(r=arguments,i=this,s=D,A){if(u===void 0)return v(s);if(f)return u=setTimeout(y,t),p(s)}return u===void 0&&(u=setTimeout(y,t)),a}return C.cancel=$,C.flush=w,C}function sj(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(J9);return Ch(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),uj(e,t,{leading:r,maxWait:t,trailing:i})}function Ch(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function lj(e){return!!e&&typeof e=="object"}function cj(e){return typeof e=="symbol"||lj(e)&&ij.call(e)==KR}function v6(e){if(typeof e=="number")return e;if(cj(e))return g6;if(Ch(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ch(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(YR,"");var n=JR.test(e);return n||ZR.test(e)?QR(e.slice(2),n?2:8):XR.test(e)?g6:+e}var Pa=sj;function fj(e,t){return document.createElement(e,t)}function dj(e,t,n){return document.createElementNS(e,t,n)}function pj(e){return document.createTextNode(e)}function hj(e){return document.createComment(e)}function gj(e,t,n){e.insertBefore(t,n)}function vj(e,t){e.removeChild(t)}function mj(e,t){e.appendChild(t)}function yj(e){return e.parentNode}function bj(e){return e.nextSibling}function $j(e){return e.tagName}function wj(e,t){e.textContent=t}function Ej(e){return e.textContent}function Cj(e){return e.nodeType===1}function Dj(e){return e.nodeType===3}function xj(e){return e.nodeType===8}const Sj={createElement:fj,createElementNS:dj,createTextNode:pj,createComment:hj,insertBefore:gj,removeChild:vj,appendChild:mj,parentNode:yj,nextSibling:bj,tagName:$j,setTextContent:wj,getTextContent:Ej,isElement:Cj,isText:Dj,isComment:xj};function Zc(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 z2=Array.isArray;function Lp(e){return typeof e=="string"||typeof e=="number"||e instanceof String||e instanceof Number}function Zv(e){return e===void 0}function wn(e){return e!==void 0}const m6=Zc("",{},[],void 0,void 0);function dl(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 Aj(e){return e.sel!==void 0}function Oj(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 Bj=["create","update","remove","destroy","pre","post"];function Fj(e,t){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=t!==void 0?t:Sj;for(const d of Bj)for(const p of e){const v=p[d];v!==void 0&&n[d].push(v)}function i(d){const p=d.id?"#"+d.id:"",v=d.getAttribute("class"),m=v?"."+v.split(" ").join("."):"";return Zc(r.tagName(d).toLowerCase()+p+m,{},[],void 0,d)}function o(d,p){return function(){if(--p===0){const m=r.parentNode(d);r.removeChild(m,d)}}}function a(d,p){var v,m;let g,y=d.data;if(y!==void 0){const w=(v=y.hook)===null||v===void 0?void 0:v.init;wn(w)&&(w(d),y=d.data)}const h=d.children,$=d.sel;if($==="!")Zv(d.text)&&(d.text=""),d.elm=r.createComment(d.text);else if($!==void 0){const w=$.indexOf("#"),C=$.indexOf(".",w),D=w>0?w:$.length,A=C>0?C:$.length,I=w!==-1||C!==-1?$.slice(0,Math.min(D,A)):$,M=d.elm=wn(y)&&wn(g=y.ns)?r.createElementNS(g,I,y):r.createElement(I,y);for(D<A&&M.setAttribute("id",$.slice(D+1,A)),C>0&&M.setAttribute("class",$.slice(A+1).replace(/\./g," ")),g=0;g<n.create.length;++g)n.create[g](m6,d);if(z2(h))for(g=0;g<h.length;++g){const Y=h[g];Y!=null&&r.appendChild(M,a(Y,p))}else Lp(d.text)&&r.appendChild(M,r.createTextNode(d.text));const V=d.data.hook;wn(V)&&((m=V.create)===null||m===void 0||m.call(V,m6,d),V.insert&&p.push(d))}else d.elm=r.createTextNode(d.text);return d.elm}function u(d,p,v,m,g,y){for(;m<=g;++m){const h=v[m];h!=null&&r.insertBefore(d,a(h,y),p)}}function s(d){var p,v;const m=d.data;if(m!==void 0){(v=(p=m==null?void 0:m.hook)===null||p===void 0?void 0:p.destroy)===null||v===void 0||v.call(p,d);for(let g=0;g<n.destroy.length;++g)n.destroy[g](d);if(d.children!==void 0)for(let g=0;g<d.children.length;++g){const y=d.children[g];y!=null&&typeof y!="string"&&s(y)}}}function l(d,p,v,m){for(var g,y;v<=m;++v){let h,$;const w=p[v];if(w!=null)if(wn(w.sel)){s(w),h=n.remove.length+1,$=o(w.elm,h);for(let D=0;D<n.remove.length;++D)n.remove[D](w,$);const C=(y=(g=w==null?void 0:w.data)===null||g===void 0?void 0:g.hook)===null||y===void 0?void 0:y.remove;wn(C)?C(w,$):$()}else r.removeChild(d,w.elm)}}function c(d,p,v,m){let g=0,y=0,h=p.length-1,$=p[0],w=p[h],C=v.length-1,D=v[0],A=v[C],I,M,V,Y;for(;g<=h&&y<=C;)$==null?$=p[++g]:w==null?w=p[--h]:D==null?D=v[++y]:A==null?A=v[--C]:dl($,D)?(f($,D,m),$=p[++g],D=v[++y]):dl(w,A)?(f(w,A,m),w=p[--h],A=v[--C]):dl($,A)?(f($,A,m),r.insertBefore(d,$.elm,r.nextSibling(w.elm)),$=p[++g],A=v[--C]):dl(w,D)?(f(w,D,m),r.insertBefore(d,w.elm,$.elm),w=p[--h],D=v[++y]):(I===void 0&&(I=Oj(p,g,h)),M=I[D.key],Zv(M)?r.insertBefore(d,a(D,m),$.elm):(V=p[M],V.sel!==D.sel?r.insertBefore(d,a(D,m),$.elm):(f(V,D,m),p[M]=void 0,r.insertBefore(d,V.elm,$.elm))),D=v[++y]);(g<=h||y<=C)&&(g>h?(Y=v[C+1]==null?null:v[C+1].elm,u(d,Y,v,y,C,m)):l(d,p,g,h))}function f(d,p,v){var m,g,y,h,$;const w=(m=p.data)===null||m===void 0?void 0:m.hook;(g=w==null?void 0:w.prepatch)===null||g===void 0||g.call(w,d,p);const C=p.elm=d.elm,D=d.children,A=p.children;if(d!==p){if(p.data!==void 0){for(let I=0;I<n.update.length;++I)n.update[I](d,p);(h=(y=p.data.hook)===null||y===void 0?void 0:y.update)===null||h===void 0||h.call(y,d,p)}Zv(p.text)?wn(D)&&wn(A)?D!==A&&c(C,D,A,v):wn(A)?(wn(d.text)&&r.setTextContent(C,""),u(C,null,A,0,A.length-1,v)):wn(D)?l(C,D,0,D.length-1):wn(d.text)&&r.setTextContent(C,""):d.text!==p.text&&(wn(D)&&l(C,D,0,D.length-1),r.setTextContent(C,p.text)),($=w==null?void 0:w.postpatch)===null||$===void 0||$.call(w,d,p)}}return function(p,v){let m,g,y;const h=[];for(m=0;m<n.pre.length;++m)n.pre[m]();for(Aj(p)||(p=i(p)),dl(p,v)?f(p,v,h):(g=p.elm,y=r.parentNode(g),a(v,h),y!==null&&(r.insertBefore(y,v.elm,r.nextSibling(g)),l(y,[p],0,0))),m=0;m<h.length;++m)h[m].data.hook.insert(h[m]);for(m=0;m<n.post.length;++m)n.post[m]();return v}}function Z9(e,t,n){if(e.ns="http://www.w3.org/2000/svg",n!=="foreignObject"&&t!==void 0)for(let r=0;r<t.length;++r){const i=t[r].data;i!==void 0&&Z9(i,t[r].children,t[r].sel)}}function $s(e,t,n){let r={},i,o,a;if(n!==void 0?(t!==null&&(r=t),z2(n)?i=n:Lp(n)?o=n.toString():n&&n.sel&&(i=[n])):t!=null&&(z2(t)?i=t:Lp(t)?o=t.toString():t&&t.sel?i=[t]:r=t),i!==void 0)for(a=0;a<i.length;++a)Lp(i[a])&&(i[a]=Zc(void 0,void 0,void 0,i[a],void 0));return e[0]==="s"&&e[1]==="v"&&e[2]==="g"&&(e.length===3||e[3]==="."||e[3]==="#")&&Z9(r,i,e),Zc(e,r,i,o,void 0)}function y6(e,t){let n,r;const i=t.elm;let o=e.data.class,a=t.data.class;if(!(!o&&!a)&&o!==a){o=o||{},a=a||{};for(r in o)o[r]&&!Object.prototype.hasOwnProperty.call(a,r)&&i.classList.remove(r);for(r in a)n=a[r],n!==o[r]&&i.classList[n?"add":"remove"](r)}}const Tj={create:y6,update:y6},b6=/[A-Z]/g;function $6(e,t){const n=t.elm;let r=e.data.dataset,i=t.data.dataset,o;if(!r&&!i||r===i)return;r=r||{},i=i||{};const a=n.dataset;for(o in r)i[o]||(a?o in a&&delete a[o]:n.removeAttribute("data-"+o.replace(b6,"-$&").toLowerCase()));for(o in i)r[o]!==i[o]&&(a?a[o]=i[o]:n.setAttribute("data-"+o.replace(b6,"-$&").toLowerCase(),i[o]))}const kj={create:$6,update:$6};function Q9(e,t,n){if(typeof e=="function")e.call(t,n,t);else if(typeof e=="object")for(let r=0;r<e.length;r++)Q9(e[r],t,n)}function _j(e,t){const n=e.type,r=t.data.on;r&&r[n]&&Q9(r[n],t,e)}function Pj(){return function e(t){_j(t,e.vnode)}}function Qv(e,t){const n=e.data.on,r=e.listener,i=e.elm,o=t&&t.data.on,a=t&&t.elm;let u;if(n!==o){if(n&&r)if(o)for(u in n)o[u]||i.removeEventListener(u,r,!1);else for(u in n)i.removeEventListener(u,r,!1);if(o){const s=t.listener=e.listener||Pj();if(s.vnode=t,n)for(u in o)n[u]||a.addEventListener(u,s,!1);else for(u in o)a.addEventListener(u,s,!1)}}}const Nj={create:Qv,update:Qv,destroy:Qv};function w6(e,t){let n,r,i;const o=t.elm;let a=e.data.props,u=t.data.props;if(!(!a&&!u)&&a!==u){a=a||{},u=u||{};for(n in u)r=u[n],i=a[n],i!==r&&(n!=="value"||o[n]!==r)&&(o[n]=r)}}const Ij={create:w6,update:w6},E6=typeof window<"u"&&window.requestAnimationFrame.bind(window)||setTimeout,Rj=function(e){E6(function(){E6(e)})};let H2=!1;function jj(e,t,n){Rj(function(){e[t]=n})}function C6(e,t){let n,r;const i=t.elm;let o=e.data.style,a=t.data.style;if(!o&&!a||o===a)return;o=o||{},a=a||{};const u="delayed"in o;for(r in o)a[r]||(r[0]==="-"&&r[1]==="-"?i.style.removeProperty(r):i.style[r]="");for(r in a)if(n=a[r],r==="delayed"&&a.delayed)for(const s in a.delayed)n=a.delayed[s],(!u||n!==o.delayed[s])&&jj(i.style,s,n);else r!=="remove"&&n!==o[r]&&(r[0]==="-"&&r[1]==="-"?i.style.setProperty(r,n):i.style[r]=n)}function Lj(e){let t,n;const r=e.elm,i=e.data.style;if(!(!i||!(t=i.destroy)))for(n in t)r.style[n]=t[n]}function Mj(e,t){const n=e.data.style;if(!n||!n.remove){t();return}H2||(e.elm.offsetLeft,H2=!0);let r;const i=e.elm;let o=0;const a=n.remove;let u=0;const s=[];for(r in a)s.push(r),i.style[r]=a[r];const c=getComputedStyle(i)["transition-property"].split(", ");for(;o<c.length;++o)s.indexOf(c[o])!==-1&&u++;i.addEventListener("transitionend",function(f){f.target===i&&--u,u===0&&t()})}function zj(){H2=!1}const Hj={pre:zj,create:C6,update:C6,destroy:Lj,remove:Mj};function eO(e,t){for(const n of e)n!=null&&n!==!1&&n!==""&&(Array.isArray(n)?eO(n,t):typeof n=="string"||typeof n=="number"||typeof n=="boolean"?t.push(Zc(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function de(e,t,...n){const r=eO(n,[]);return typeof e=="function"?e(t,r):r.length===1&&!r[0].sel&&r[0].text?$s(e,t,r[0].text):$s(e,t,r)}(function(e){})(de||(de={}));var Uj=1/0,Vj="[object Symbol]",Wj=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,qj=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a0="\\ud800-\\udfff",tO="\\u0300-\\u036f\\ufe20-\\ufe23",nO="\\u20d0-\\u20f0",rO="\\u2700-\\u27bf",iO="a-z\\xdf-\\xf6\\xf8-\\xff",Gj="\\xac\\xb1\\xd7\\xf7",Kj="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Yj="\\u2000-\\u206f",Xj=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",oO="A-Z\\xc0-\\xd6\\xd8-\\xde",aO="\\ufe0e\\ufe0f",uO=Gj+Kj+Yj+Xj,G$="['\u2019]",Jj="["+a0+"]",D6="["+uO+"]",Dh="["+tO+nO+"]",sO="\\d+",Zj="["+rO+"]",lO="["+iO+"]",cO="[^"+a0+uO+sO+rO+iO+oO+"]",U2="\\ud83c[\\udffb-\\udfff]",Qj="(?:"+Dh+"|"+U2+")",fO="[^"+a0+"]",K$="(?:\\ud83c[\\udde6-\\uddff]){2}",Y$="[\\ud800-\\udbff][\\udc00-\\udfff]",Lu="["+oO+"]",dO="\\u200d",x6="(?:"+lO+"|"+cO+")",eL="(?:"+Lu+"|"+cO+")",S6="(?:"+G$+"(?:d|ll|m|re|s|t|ve))?",A6="(?:"+G$+"(?:D|LL|M|RE|S|T|VE))?",pO=Qj+"?",hO="["+aO+"]?",tL="(?:"+dO+"(?:"+[fO,K$,Y$].join("|")+")"+hO+pO+")*",gO=hO+pO+tL,nL="(?:"+[Zj,K$,Y$].join("|")+")"+gO,rL="(?:"+[fO+Dh+"?",Dh,K$,Y$,Jj].join("|")+")",iL=RegExp(G$,"g"),oL=RegExp(Dh,"g"),aL=RegExp(U2+"(?="+U2+")|"+rL+gO,"g"),uL=RegExp([Lu+"?"+lO+"+"+S6+"(?="+[D6,Lu,"$"].join("|")+")",eL+"+"+A6+"(?="+[D6,Lu+x6,"$"].join("|")+")",Lu+"?"+x6+"+"+S6,Lu+"+"+A6,sO,nL].join("|"),"g"),sL=RegExp("["+dO+a0+tO+nO+aO+"]"),lL=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,cL={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"ss"},fL=typeof ot=="object"&&ot&&ot.Object===Object&&ot,dL=typeof self=="object"&&self&&self.Object===Object&&self,pL=fL||dL||Function("return this")();function hL(e,t,n,r){var i=-1,o=e?e.length:0;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function gL(e){return e.split("")}function vL(e){return e.match(Wj)||[]}function mL(e){return function(t){return e==null?void 0:e[t]}}var yL=mL(cL);function vO(e){return sL.test(e)}function bL(e){return lL.test(e)}function $L(e){return vO(e)?wL(e):gL(e)}function wL(e){return e.match(aL)||[]}function EL(e){return e.match(uL)||[]}var CL=Object.prototype,DL=CL.toString,O6=pL.Symbol,B6=O6?O6.prototype:void 0,F6=B6?B6.toString:void 0;function xL(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?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<i;)o[r]=e[r+t];return o}function SL(e){if(typeof e=="string")return e;if(TL(e))return F6?F6.call(e):"";var t=e+"";return t=="0"&&1/e==-Uj?"-0":t}function AL(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:xL(e,t,n)}function OL(e){return function(t){t=u0(t);var n=vO(t)?$L(t):void 0,r=n?n[0]:t.charAt(0),i=n?AL(n,1).join(""):t.slice(1);return r[e]()+i}}function BL(e){return function(t){return hL(IL(PL(t).replace(iL,"")),e,"")}}function FL(e){return!!e&&typeof e=="object"}function TL(e){return typeof e=="symbol"||FL(e)&&DL.call(e)==Vj}function u0(e){return e==null?"":SL(e)}var kL=BL(function(e,t,n){return t=t.toLowerCase(),e+(n?_L(t):t)});function _L(e){return NL(u0(e).toLowerCase())}function PL(e){return e=u0(e),e&&e.replace(qj,yL).replace(oL,"")}var NL=OL("toUpperCase");function IL(e,t,n){return e=u0(e),t=n?void 0:t,t===void 0?bL(e)?EL(e):vL(e):e.match(t)||[]}var RL=kL,jL=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),e1={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},mO={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:jL?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},X$={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};for(var zd=1;zd<20;zd++)X$["f"+zd]=111+zd;function yO(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map(function(a){return ML(a,t)}),i=function(u){return r.some(function(s){return zL(s,u)})},o=n==null?i:i(n);return o}function LL(e,t){return yO(e,{byKey:!0},t)}function ML(e,t){var n=t&&t.byKey,r={};e=e.replace("++","+add");var i=e.split("+"),o=i.length;for(var a in e1)r[e1[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 v=bO(d),m=e1[v];if(d.length>1&&!m&&!mO[d]&&!X$[v])throw new TypeError('Unknown modifier: "'+d+'"');(o===1||!m)&&(n?r.key=v:r.which=HL(d)),m&&(r[m]=p?null:!0)}}catch(g){s=!0,l=g}finally{try{!u&&c.return&&c.return()}finally{if(s)throw l}}return r}function zL(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 HL(e){e=bO(e);var t=X$[e]||e.toUpperCase().charCodeAt(0);return t}function bO(e){return e=e.toLowerCase(),e=mO[e]||e,e}var UL=yO,t1=LL,VL="Expected a function",T6=0/0,WL="[object Symbol]",qL=/^\s+|\s+$/g,GL=/^[-+]0x[0-9a-f]+$/i,KL=/^0b[01]+$/i,YL=/^0o[0-7]+$/i,XL=parseInt,JL=typeof ot=="object"&&ot&&ot.Object===Object&&ot,ZL=typeof self=="object"&&self&&self.Object===Object&&self,QL=JL||ZL||Function("return this")(),eM=Object.prototype,tM=eM.toString,nM=Math.max,rM=Math.min,n1=function(){return QL.Date.now()};function iM(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(VL);t=k6(t)||0,V2(n)&&(c=!!n.leading,f="maxWait"in n,o=f?nM(k6(n.maxWait)||0,t):o,d="trailing"in n?!!n.trailing:d);function p(D){var A=r,I=i;return r=i=void 0,l=D,a=e.apply(I,A),a}function v(D){return l=D,u=setTimeout(y,t),c?p(D):a}function m(D){var A=D-s,I=D-l,M=t-A;return f?rM(M,o-I):M}function g(D){var A=D-s,I=D-l;return s===void 0||A>=t||A<0||f&&I>=o}function y(){var D=n1();if(g(D))return h(D);u=setTimeout(y,m(D))}function h(D){return u=void 0,d&&r?p(D):(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(n1())}function C(){var D=n1(),A=g(D);if(r=arguments,i=this,s=D,A){if(u===void 0)return v(s);if(f)return u=setTimeout(y,t),p(s)}return u===void 0&&(u=setTimeout(y,t)),a}return C.cancel=$,C.flush=w,C}function V2(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function oM(e){return!!e&&typeof e=="object"}function aM(e){return typeof e=="symbol"||oM(e)&&tM.call(e)==WL}function k6(e){if(typeof e=="number")return e;if(aM(e))return T6;if(V2(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=V2(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(qL,"");var n=KL.test(e);return n||YL.test(e)?XL(e.slice(2),n?2:8):GL.test(e)?T6:+e}var $O=iM,wO=M$(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]",v="[object Object]",m="[object Promise]",g="[object RegExp]",y="[object Set]",h="[object String]",$="[object Symbol]",w="[object WeakMap]",C="[object ArrayBuffer]",D="[object DataView]",A="[object Float32Array]",I="[object Float64Array]",M="[object Int8Array]",V="[object Int16Array]",Y="[object Int32Array]",J="[object Uint8Array]",Z="[object Uint8ClampedArray]",se="[object Uint16Array]",ee="[object Uint32Array]",ae=/[\\^$.*+?()[\]{}|]/g,fe=/\w*$/,_e=/^\[object .+?Constructor\]$/,ve=/^(?:0|[1-9]\d*)$/,ie={};ie[o]=ie[a]=ie[C]=ie[D]=ie[u]=ie[s]=ie[A]=ie[I]=ie[M]=ie[V]=ie[Y]=ie[d]=ie[p]=ie[v]=ie[g]=ie[y]=ie[h]=ie[$]=ie[J]=ie[Z]=ie[se]=ie[ee]=!0,ie[l]=ie[c]=ie[w]=!1;var Ie=typeof ot=="object"&&ot&&ot.Object===Object&&ot,T=typeof self=="object"&&self&&self.Object===Object&&self,F=Ie||T||Function("return this")(),k=t&&!t.nodeType&&t,N=k&&!0&&e&&!e.nodeType&&e,H=N&&N.exports===k;function j(b,x){return b.set(x[0],x[1]),b}function Q(b,x){return b.add(x),b}function ce(b,x){for(var B=-1,L=b?b.length:0;++B<L&&x(b[B],B,b)!==!1;);return b}function we(b,x){for(var B=-1,L=x.length,me=b.length;++B<L;)b[me+B]=x[B];return b}function Re(b,x,B,L){var me=-1,oe=b?b.length:0;for(L&&oe&&(B=b[++me]);++me<oe;)B=x(B,b[me],me,b);return B}function z(b,x){for(var B=-1,L=Array(b);++B<b;)L[B]=x(B);return L}function ze(b,x){return b==null?void 0:b[x]}function ye(b){var x=!1;if(b!=null&&typeof b.toString!="function")try{x=!!(b+"")}catch{}return x}function ue(b){var x=-1,B=Array(b.size);return b.forEach(function(L,me){B[++x]=[me,L]}),B}function be(b,x){return function(B){return b(x(B))}}function mn(b){var x=-1,B=Array(b.size);return b.forEach(function(L){B[++x]=L}),B}var qe=Array.prototype,lt=Function.prototype,ft=Object.prototype,sn=F["__core-js_shared__"],dt=function(){var b=/[^.]+$/.exec(sn&&sn.keys&&sn.keys.IE_PROTO||"");return b?"Symbol(src)_1."+b:""}(),Nn=lt.toString,yn=ft.hasOwnProperty,ln=ft.toString,yr=RegExp("^"+Nn.call(yn).replace(ae,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),br=H?F.Buffer:void 0,bn=F.Symbol,$r=F.Uint8Array,nn=be(Object.getPrototypeOf,Object),In=Object.create,nu=ft.propertyIsEnumerable,Js=qe.splice,Xr=Object.getOwnPropertySymbols,bi=br?br.isBuffer:void 0,ru=be(Object.keys,Object),$i=rr(F,"DataView"),Jr=rr(F,"Map"),$n=rr(F,"Promise"),wi=rr(F,"Set"),Zs=rr(F,"WeakMap"),Ro=rr(Object,"create"),Qs=rn($i),jo=rn(Jr),el=rn($n),tl=rn(wi),nl=rn(Zs),Ei=bn?bn.prototype:void 0,Dd=Ei?Ei.valueOf:void 0;function Zr(b){var x=-1,B=b?b.length:0;for(this.clear();++x<B;){var L=b[x];this.set(L[0],L[1])}}function uv(){this.__data__=Ro?Ro(null):{}}function sv(b){return this.has(b)&&delete this.__data__[b]}function lv(b){var x=this.__data__;if(Ro){var B=x[b];return B===r?void 0:B}return yn.call(x,b)?x[b]:void 0}function xd(b){var x=this.__data__;return Ro?x[b]!==void 0:yn.call(x,b)}function rl(b,x){var B=this.__data__;return B[b]=Ro&&x===void 0?r:x,this}Zr.prototype.clear=uv,Zr.prototype.delete=sv,Zr.prototype.get=lv,Zr.prototype.has=xd,Zr.prototype.set=rl;function Lt(b){var x=-1,B=b?b.length:0;for(this.clear();++x<B;){var L=b[x];this.set(L[0],L[1])}}function cv(){this.__data__=[]}function fv(b){var x=this.__data__,B=ou(x,b);if(B<0)return!1;var L=x.length-1;return B==L?x.pop():Js.call(x,B,1),!0}function dv(b){var x=this.__data__,B=ou(x,b);return B<0?void 0:x[B][1]}function pv(b){return ou(this.__data__,b)>-1}function hv(b,x){var B=this.__data__,L=ou(B,b);return L<0?B.push([b,x]):B[L][1]=x,this}Lt.prototype.clear=cv,Lt.prototype.delete=fv,Lt.prototype.get=dv,Lt.prototype.has=pv,Lt.prototype.set=hv;function Kt(b){var x=-1,B=b?b.length:0;for(this.clear();++x<B;){var L=b[x];this.set(L[0],L[1])}}function gv(){this.__data__={hash:new Zr,map:new(Jr||Lt),string:new Zr}}function vv(b){return Mo(this,b).delete(b)}function mv(b){return Mo(this,b).get(b)}function yv(b){return Mo(this,b).has(b)}function bv(b,x){return Mo(this,b).set(b,x),this}Kt.prototype.clear=gv,Kt.prototype.delete=vv,Kt.prototype.get=mv,Kt.prototype.has=yv,Kt.prototype.set=bv;function cn(b){this.__data__=new Lt(b)}function $v(){this.__data__=new Lt}function wv(b){return this.__data__.delete(b)}function Ev(b){return this.__data__.get(b)}function Cv(b){return this.__data__.has(b)}function Dv(b,x){var B=this.__data__;if(B instanceof Lt){var L=B.__data__;if(!Jr||L.length<n-1)return L.push([b,x]),this;B=this.__data__=new Kt(L)}return B.set(b,x),this}cn.prototype.clear=$v,cn.prototype.delete=wv,cn.prototype.get=Ev,cn.prototype.has=Cv,cn.prototype.set=Dv;function iu(b,x){var B=ul(b)||uu(b)?z(b.length,String):[],L=B.length,me=!!L;for(var oe in b)(x||yn.call(b,oe))&&!(me&&(oe=="length"||jv(oe,L)))&&B.push(oe);return B}function Sd(b,x,B){var L=b[x];(!(yn.call(b,x)&&Td(L,B))||B===void 0&&!(x in b))&&(b[x]=B)}function ou(b,x){for(var B=b.length;B--;)if(Td(b[B][0],x))return B;return-1}function wr(b,x){return b&&al(x,ll(x),b)}function il(b,x,B,L,me,oe,Fe){var Pe;if(L&&(Pe=oe?L(b,me,oe,Fe):L(b)),Pe!==void 0)return Pe;if(!Cr(b))return b;var $t=ul(b);if($t){if(Pe=Iv(b),!x)return _v(b,Pe)}else{var He=ei(b),Yt=He==c||He==f;if(kd(b))return au(b,x);if(He==v||He==o||Yt&&!oe){if(ye(b))return oe?b:{};if(Pe=Er(Yt?{}:b),!x)return Pv(b,wr(Pe,b))}else{if(!ie[He])return oe?b:{};Pe=Rv(b,He,il,x)}}Fe||(Fe=new cn);var fn=Fe.get(b);if(fn)return fn;if(Fe.set(b,Pe),!$t)var Ft=B?Nv(b):ll(b);return ce(Ft||b,function(Xt,Mt){Ft&&(Mt=Xt,Xt=b[Mt]),Sd(Pe,Mt,il(Xt,x,B,L,Mt,b,Fe))}),Pe}function xv(b){return Cr(b)?In(b):{}}function Sv(b,x,B){var L=x(b);return ul(b)?L:we(L,B(b))}function Av(b){return ln.call(b)}function Ov(b){if(!Cr(b)||Mv(b))return!1;var x=sl(b)||ye(b)?yr:_e;return x.test(rn(b))}function Bv(b){if(!Bd(b))return ru(b);var x=[];for(var B in Object(b))yn.call(b,B)&&B!="constructor"&&x.push(B);return x}function au(b,x){if(x)return b.slice();var B=new b.constructor(b.length);return b.copy(B),B}function ol(b){var x=new b.constructor(b.byteLength);return new $r(x).set(new $r(b)),x}function Lo(b,x){var B=x?ol(b.buffer):b.buffer;return new b.constructor(B,b.byteOffset,b.byteLength)}function Ad(b,x,B){var L=x?B(ue(b),!0):ue(b);return Re(L,j,new b.constructor)}function Od(b){var x=new b.constructor(b.source,fe.exec(b));return x.lastIndex=b.lastIndex,x}function Fv(b,x,B){var L=x?B(mn(b),!0):mn(b);return Re(L,Q,new b.constructor)}function Tv(b){return Dd?Object(Dd.call(b)):{}}function kv(b,x){var B=x?ol(b.buffer):b.buffer;return new b.constructor(B,b.byteOffset,b.length)}function _v(b,x){var B=-1,L=b.length;for(x||(x=Array(L));++B<L;)x[B]=b[B];return x}function al(b,x,B,L){B||(B={});for(var me=-1,oe=x.length;++me<oe;){var Fe=x[me],Pe=L?L(B[Fe],b[Fe],Fe,B,b):void 0;Sd(B,Fe,Pe===void 0?b[Fe]:Pe)}return B}function Pv(b,x){return al(b,Qr(b),x)}function Nv(b){return Sv(b,ll,Qr)}function Mo(b,x){var B=b.__data__;return Lv(x)?B[typeof x=="string"?"string":"hash"]:B.map}function rr(b,x){var B=ze(b,x);return Ov(B)?B:void 0}var Qr=Xr?be(Xr,Object):Hv,ei=Av;($i&&ei(new $i(new ArrayBuffer(1)))!=D||Jr&&ei(new Jr)!=d||$n&&ei($n.resolve())!=m||wi&&ei(new wi)!=y||Zs&&ei(new Zs)!=w)&&(ei=function(b){var x=ln.call(b),B=x==v?b.constructor:void 0,L=B?rn(B):void 0;if(L)switch(L){case Qs:return D;case jo:return d;case el:return m;case tl:return y;case nl:return w}return x});function Iv(b){var x=b.length,B=b.constructor(x);return x&&typeof b[0]=="string"&&yn.call(b,"index")&&(B.index=b.index,B.input=b.input),B}function Er(b){return typeof b.constructor=="function"&&!Bd(b)?xv(nn(b)):{}}function Rv(b,x,B,L){var me=b.constructor;switch(x){case C:return ol(b);case u:case s:return new me(+b);case D:return Lo(b,L);case A:case I:case M:case V:case Y:case J:case Z:case se:case ee:return kv(b,L);case d:return Ad(b,L,B);case p:case h:return new me(b);case g:return Od(b);case y:return Fv(b,L,B);case $:return Tv(b)}}function jv(b,x){return x=x==null?i:x,!!x&&(typeof b=="number"||ve.test(b))&&b>-1&&b%1==0&&b<x}function Lv(b){var x=typeof b;return x=="string"||x=="number"||x=="symbol"||x=="boolean"?b!=="__proto__":b===null}function Mv(b){return!!dt&&dt in b}function Bd(b){var x=b&&b.constructor,B=typeof x=="function"&&x.prototype||ft;return b===B}function rn(b){if(b!=null){try{return Nn.call(b)}catch{}try{return b+""}catch{}}return""}function Fd(b){return il(b,!0,!0)}function Td(b,x){return b===x||b!==b&&x!==x}function uu(b){return zv(b)&&yn.call(b,"callee")&&(!nu.call(b,"callee")||ln.call(b)==o)}var ul=Array.isArray;function su(b){return b!=null&&_d(b.length)&&!sl(b)}function zv(b){return Pd(b)&&su(b)}var kd=bi||Uv;function sl(b){var x=Cr(b)?ln.call(b):"";return x==c||x==f}function _d(b){return typeof b=="number"&&b>-1&&b%1==0&&b<=i}function Cr(b){var x=typeof b;return!!b&&(x=="object"||x=="function")}function Pd(b){return!!b&&typeof b=="object"}function ll(b){return su(b)?iu(b):Bv(b)}function Hv(){return[]}function Uv(){return!1}e.exports=Fd}),uM=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},fu;function _6(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var sM=0;function lM(e){return"__private_"+sM+++"_"+e}function cM(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),a<u.length-1&&r.push(n)})),r}/**
|
||
* Takes a string with placeholder variables like `%{smart_count} file selected`
|
||
* and replaces it with values from options `{smart_count: 5}`
|
||
*
|
||
* @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
|
||
* taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
|
||
*
|
||
* @param {string} phrase that needs interpolation, with placeholders
|
||
* @param {object} options with values that will be used to replace placeholders
|
||
* @returns {any[]} interpolated
|
||
*/function P6(e,t){const n=/\$/g,r="$$$$";let i=[e];if(t==null)return i;for(const o of Object.keys(t))if(o!=="_"){let a=t[o];typeof a=="string"&&(a=n[Symbol.replace](a,r)),i=cM(i,new RegExp(`%\\{${o}\\}`,"g"),a)}return i}var EO=(fu=lM("apply"),class{constructor(t){Object.defineProperty(this,fu,{value:fM}),this.locale={strings:{},pluralize(n){return n===1?0:1}},Array.isArray(t)?t.forEach(_6(this,fu)[fu],this):_6(this,fu)[fu](t)}translate(t,n){return this.translateArray(t,n).join("")}translateArray(t,n){if(!uM(this.locale.strings,t))throw new Error(`missing string: ${t}`);const r=this.locale.strings[t];if(typeof r=="object"){if(n&&typeof n.smart_count<"u"){const o=this.locale.pluralize(n.smart_count);return P6(r[o],n)}throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return P6(r,n)}});function fM(e){if(!(e!=null&&e.strings))return;const t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}var CO=function(){var t={},n=t._fns={};t.emit=function(a,u,s,l,c,f,d){var p=r(a);p.length&&i(a,p,[u,s,l,c,f,d])},t.on=function(a,u){n[a]||(n[a]=[]),n[a].push(u)},t.once=function(a,u){function s(){u.apply(this,arguments),t.off(a,s)}this.on(a,s)},t.off=function(a,u){var s=[];if(a&&u){var l=this._fns[a],c=0,f=l?l.length:0;for(c;c<f;c++)l[c]!==u&&s.push(l[c])}s.length?this._fns[a]=s:delete this._fns[a]};function r(o){var a=n[o]?n[o]:[],u=o.indexOf(":"),s=u===-1?[o]:[o.substring(0,u),o.substring(u+1)],l=Object.keys(n),c=0,f=l.length;for(c;c<f;c++){var d=l[c];if(d==="*"&&(a=a.concat(n[d])),s.length===2&&s[0]===d){a=a.concat(n[d]);break}}return a}function i(o,a,u){var s=0,l=a.length;for(s;s<l&&a[s];s++)a[s].event=o,a[s].apply(a[s],u)}return t};let dM="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var pM={urlAlphabet:dM};let{urlAlphabet:hM}=pM;{if(typeof navigator<"u"&&navigator.product==="ReactNative"&&typeof crypto>"u")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<"u"&&typeof crypto>"u")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>"u")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 DO=e=>crypto.getRandomValues(new Uint8Array(e)),xO=(e,t,n)=>{let r=(2<<Math.log(e.length-1)/Math.LN2)-1,i=-~(1.6*r*t/e.length);return()=>{let o="";for(;;){let a=n(i),u=i;for(;u--;)if(o+=e[a[u]&r]||"",o.length===t)return o}}},gM=(e,t)=>xO(e,t,DO),vM=(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 mM={nanoid:vM,customAlphabet:gM,customRandom:xO,urlAlphabet:hM,random:DO},r1=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 SO(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}SO.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<i;r++)n[r]!=="*"&&(r<o.length?t=n[r]===o[r]:t=!1);t=t&&o}else if(typeof e.splice=="function")for(t=[],r=e.length;r--;)this.match(e[r])&&(t[t.length]=e[r]);else if(typeof e=="object"){t={};for(var a in e)this.match(a)&&(t[a]=e[a])}return t};var yM=function(e,t,n){var r=new SO(e,n||/[\/\.]/);return typeof t<"u"?r.match(t):r},bM=/[\/\+\.]/,$M=function(e,t){function n(r){var i=yM(r,e,bM);return i&&i.length>=2}return t?n(t.split(";")[0]):n};function wM(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var EM=0;function CM(e){return"__private_"+EM+++"_"+e}var i1=CM("publish");class AO{constructor(){Object.defineProperty(this,i1,{value:DM}),this.state={},this.callbacks=[]}getState(){return this.state}setState(t){const n={...this.state},r={...this.state,...t};this.state=r,wM(this,i1)[i1](n,r,t)}subscribe(t){return this.callbacks.push(t),()=>{this.callbacks.splice(this.callbacks.indexOf(t),1)}}}function DM(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach(r=>{r(...t)})}AO.VERSION="2.0.3";var xM=function(){return new AO},OO=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)}},N6={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"},SM=function(t){var n;if(t.type)return t.type;const r=t.name?(n=OO(t.name).extension)==null?void 0:n.toLowerCase():null;return r&&r in N6?N6[r]:"application/octet-stream"};function AM(e){return e.charCodeAt(0).toString(32)}function I6(e){let t="";return e.replace(/[^A-Z0-9]/ig,n=>(t+=`-${AM(n)}`,"/"))+t}var OM=function(t){let n="uppy";return typeof t.name=="string"&&(n+=`-${I6(t.name.toLowerCase())}`),t.type!==void 0&&(n+=`-${t.type}`),t.meta&&typeof t.meta.relativePath=="string"&&(n+=`-${I6(t.meta.relativePath.toLowerCase())}`),t.data.size!==void 0&&(n+=`-${t.data.size}`),t.data.lastModified!==void 0&&(n+=`-${t.data.lastModified}`),n},BM=function(t){if(t==null&&(t=typeof navigator<"u"?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},FM=function(t,n){return n.name?n.name:t.split("/")[0]==="image"?`${t.split("/")[0]}.${t.split("/")[1]}`:"noname"};function o1(e){return e<10?`0${e}`:e.toString()}var Mp=function(){const t=new Date,n=o1(t.getHours()),r=o1(t.getMinutes()),i=o1(t.getSeconds());return`${n}:${r}:${i}`};const TM={debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${Mp()}]`,...t)}},kM={debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.debug(`[Uppy] [${Mp()}]`,...t)},warn:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.warn(`[Uppy] [${Mp()}]`,...t)},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${Mp()}]`,...t)}};var BO={justErrorsLogger:TM,debugLogger:kM},_M={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",backToSearch:"Back to Search",emptyFolderAdded:"No files were added from empty folder",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"}}},FO=mM;let TO,kO;function ne(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var PM=0;function Bt(e){return"__private_"+PM+++"_"+e}const{nanoid:NM}=FO,{justErrorsLogger:IM,debugLogger:RM}=BO;class _r extends Error{constructor(){super(...arguments),this.isRestriction=!0}}typeof AggregateError>"u"&&(globalThis.AggregateError=class extends Error{constructor(t,n){super(n),this.errors=t}});class jM extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var zt=Bt("plugins"),pl=Bt("storeUnsubscribe"),ri=Bt("emitter"),oa=Bt("preProcessors"),aa=Bt("uploaders"),ui=Bt("postProcessors"),Oc=Bt("checkRestrictions"),a1=Bt("checkMinNumberOfFiles"),Qc=Bt("checkRequiredMetaFieldsOnFile"),u1=Bt("checkRequiredMetaFields"),Tt=Bt("showOrLogErrorAndThrow"),hl=Bt("assertNewUploadAllowed"),gl=Bt("checkAndCreateFileStateObject"),vl=Bt("startIfAutoProceed"),s1=Bt("addListeners"),or=Bt("updateOnlineStatus"),ii=Bt("createUpload"),l1=Bt("getUpload"),ca=Bt("removeUpload"),oi=Bt("runUpload");TO=Symbol.for("uppy test: getPlugins");kO=Symbol.for("uppy test: createUpload");class _O{constructor(t){Object.defineProperty(this,oi,{value:JM}),Object.defineProperty(this,ca,{value:XM}),Object.defineProperty(this,l1,{value:YM}),Object.defineProperty(this,ii,{value:KM}),Object.defineProperty(this,s1,{value:GM}),Object.defineProperty(this,vl,{value:qM}),Object.defineProperty(this,gl,{value:WM}),Object.defineProperty(this,hl,{value:VM}),Object.defineProperty(this,Tt,{value:UM}),Object.defineProperty(this,u1,{value:HM}),Object.defineProperty(this,Qc,{value:zM}),Object.defineProperty(this,a1,{value:MM}),Object.defineProperty(this,Oc,{value:LM}),Object.defineProperty(this,zt,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,pl,{writable:!0,value:void 0}),Object.defineProperty(this,ri,{writable:!0,value:CO()}),Object.defineProperty(this,oa,{writable:!0,value:new Set}),Object.defineProperty(this,aa,{writable:!0,value:new Set}),Object.defineProperty(this,ui,{writable:!0,value:new Set}),Object.defineProperty(this,or,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=_M;const n={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:{maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]},meta:{},onBeforeFileAdded:r=>r,onBeforeUpload:r=>r,store:xM(),logger:IM,infoTimeout:5e3};if(this.opts={...n,...t,restrictions:{...n.restrictions,...t&&t.restrictions}},t&&t.logger&&t.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):t&&t.debug&&(this.opts.logger=RM),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=Pa(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:BM(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),ne(this,pl)[pl]=this.store.subscribe((r,i,o)=>{this.emit("state-update",r,i,o),this.updateAll(i)}),this.opts.debug&&typeof window<"u"&&(window[this.opts.id]=this),ne(this,s1)[s1]()}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];ne(this,ri)[ri].emit(t,...r)}on(t,n){return ne(this,ri)[ri].on(t,n),this}once(t,n){return ne(this,ri)[ri].once(t,n),this}off(t,n){return ne(this,ri)[ri].off(t,n),this}updateAll(t){this.iteratePlugins(n=>{n.update(t)})}setState(t){this.store.setState(t)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(t,n){if(!this.getState().files[t])throw new Error(`Can\u2019t set state for ${t} (the file could have been removed)`);this.setState({files:{...this.getState().files,[t]:{...this.getState().files[t],...n}}})}i18nInit(){const t=new EO([this.defaultLocale,this.opts.locale]);this.i18n=t.translate.bind(t),this.i18nArray=t.translateArray.bind(t),this.locale=t.locale}setOptions(t){this.opts={...this.opts,...t,restrictions:{...this.opts.restrictions,...t&&t.restrictions}},t.meta&&this.setMeta(t.meta),this.i18nInit(),t.locale&&this.iteratePlugins(n=>{n.setOptions()}),this.setState()}resetProgress(){const t={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},n={...this.getState().files},r={};Object.keys(n).forEach(i=>{const o={...n[i]};o.progress={...o.progress,...t},r[i]=o}),this.setState({files:r,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(t){ne(this,oa)[oa].add(t)}removePreProcessor(t){return ne(this,oa)[oa].delete(t)}addPostProcessor(t){ne(this,ui)[ui].add(t)}removePostProcessor(t){return ne(this,ui)[ui].delete(t)}addUploader(t){ne(this,aa)[aa].add(t)}removeUploader(t){return ne(this,aa)[aa].delete(t)}setMeta(t){const n={...this.getState().meta,...t},r={...this.getState().files};Object.keys(r).forEach(i=>{r[i]={...r[i],meta:{...r[i].meta,...t}}}),this.log("Adding metadata:"),this.log(t),this.setState({meta:n,files:r})}setFileMeta(t,n){const r={...this.getState().files};if(!r[t]){this.log("Was trying to set metadata for a file that has been removed: ",t);return}const i={...r[t].meta,...n};r[t]={...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(v=>{let{progress:m}=v;return!m.uploadComplete&&m.uploadStarted}),a=i.filter(v=>!v.progress.uploadStarted),u=i.filter(v=>v.progress.uploadStarted||v.progress.preprocess||v.progress.postprocess),s=i.filter(v=>v.progress.uploadStarted),l=i.filter(v=>v.isPaused),c=i.filter(v=>v.progress.uploadComplete),f=i.filter(v=>v.error),d=o.filter(v=>!v.isPaused),p=i.filter(v=>v.progress.preprocess||v.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(v=>v.isGhost)}}validateRestrictions(t,n){try{return ne(this,Oc)[Oc](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){ne(this,hl)[hl](t);const{files:n}=this.getState();let r=ne(this,gl)[gl](n,t);return n[r.id]&&n[r.id].isGhost&&(r={...n[r.id],data:t.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${r.name}, ${r.id}`)),this.setState({files:{...n,[r.id]:r}}),this.emit("file-added",r),this.emit("files-added",[r]),this.log(`Added file: ${r.name}, ${r.id}, mime type: ${r.type}`),ne(this,vl)[vl](),r.id}addFiles(t){ne(this,hl)[hl]();const n={...this.getState().files},r=[],i=[];for(let o=0;o<t.length;o++)try{let a=ne(this,gl)[gl](n,t[o]);n[a.id]&&n[a.id].isGhost&&(a={...n[a.id],data:t[o].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${a.name}, ${a.id}`)),n[a.id]=a,r.push(a)}catch(a){a.isRestriction||i.push(a)}if(this.setState({files:n}),r.forEach(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&&ne(this,vl)[vl](),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={...r},a={...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]={...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={...this.getState().files};Object.keys(t).filter(r=>!t[r].progress.uploadComplete&&t[r].progress.uploadStarted).forEach(r=>{const i={...t[r],isPaused:!0};t[r]=i}),this.setState({files:t}),this.emit("pause-all")}resumeAll(){const t={...this.getState().files};Object.keys(t).filter(r=>!t[r].progress.uploadComplete&&t[r].progress.uploadStarted).forEach(r=>{const i={...t[r],isPaused:!1,error:null};t[r]=i}),this.setState({files:t}),this.emit("resume-all")}retryAll(){const t={...this.getState().files},n=Object.keys(t).filter(i=>t[i].error);if(n.forEach(i=>{const o={...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=ne(this,ii)[ii](n,{forceAllowNewUpload:!0});return ne(this,oi)[oi](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=ne(this,ii)[ii]([t],{forceAllowNewUpload:!0});return ne(this,oi)[oi](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:{...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<"u"?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 ne(this,zt)[zt]?ne(this,zt)[zt][r.type].push(r):ne(this,zt)[zt][r.type]=[r],r.install(),this}getPlugin(t){for(const n of Object.values(ne(this,zt)[zt])){const r=n.find(i=>i.id===t);if(r!=null)return r}}[TO](t){return ne(this,zt)[zt][t]}iteratePlugins(t){Object.values(ne(this,zt)[zt]).flat(1).forEach(t)}removePlugin(t){this.log(`Removing plugin ${t.id}`),this.emit("plugin-remove",t),t.uninstall&&t.uninstall();const n=ne(this,zt)[zt][t.type],r=n.findIndex(a=>a.id===t.id);r!==-1&&n.splice(r,1);const o={plugins:{...this.getState().plugins,[t.id]:void 0}};this.setState(o)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),ne(this,pl)[pl](),this.iteratePlugins(t=>{this.removePlugin(t)}),typeof window<"u"&&window.removeEventListener&&(window.removeEventListener("online",ne(this,or)[or]),window.removeEventListener("offline",ne(this,or)[or]))}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]?ne(this,oi)[oi](t):(ne(this,ca)[ca](t),Promise.reject(new Error("Nonexistent upload")))}[kO](){return ne(this,ii)[ii](...arguments)}addResultData(t,n){if(!ne(this,l1)[l1](t)){this.log(`Not setting result for an upload that has been removed: ${t}`);return}const{currentUploads:r}=this.getState(),i={...r[t],result:{...r[t].result,...n}};this.setState({currentUploads:{...r,[t]:i}})}upload(){var t;(t=ne(this,zt)[zt].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(()=>{ne(this,a1)[a1](n),ne(this,u1)[u1](n)}).catch(i=>{ne(this,Tt)[Tt](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=ne(this,ii)[ii](a);return ne(this,oi)[oi](u)}).catch(i=>{ne(this,Tt)[Tt](i,{showInformer:!1})}))}}function LM(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 _r(`${this.i18n("youCanOnlyUploadX",{smart_count:o})}`);if(a&&!a.some(s=>s.indexOf("/")>-1?e.type?$M(e.type.replace(/;.*?$/,""),s):!1:s[0]==="."&&e.extension?e.extension.toLowerCase()===s.substr(1).toLowerCase():!1)){const s=a.join(", ");throw new _r(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 _r(this.i18n("exceedsSize",{size:r1(i),file:e.name}))}if(n&&e.size!=null&&e.size>n)throw new _r(this.i18n("exceedsSize",{size:r1(n),file:e.name}));if(r&&e.size!=null&&e.size<r)throw new _r(this.i18n("inferiorSize",{size:r1(r)}))}function MM(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new _r(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:t})}`)}function zM(e){const{requiredMetaFields:t}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],i=[];for(let o=0;o<t.length;o++)if(!n.call(e.meta,t[o])||e.meta[t[o]]===""){const a=new _r(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})}`);r.push(a),i.push(t[o]),ne(this,Tt)[Tt](a,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:i}),r}function HM(e){const t=Object.keys(e).flatMap(n=>{const r=this.getFile(n);return ne(this,Qc)[Qc](r)});if(t.length)throw new jM(t,`${this.i18n("missingRequiredMetaField")}`)}function UM(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 VM(e){const{allowNewUpload:t}=this.getState();t===!1&&ne(this,Tt)[Tt](new _r(this.i18n("noMoreFilesAllowed")),{file:e})}function WM(e,t){const n=SM(t),r=FM(n,t),i=OO(r).extension,o=Boolean(t.isRemote),a=OM({...t,type:n});if(this.checkIfFileAlreadyExists(a)){const f=new _r(this.i18n("noDuplicates",{fileName:r}));ne(this,Tt)[Tt](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:{...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?ne(this,Tt)[Tt](new _r("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]);ne(this,Oc)[Oc](l,f)}catch(f){ne(this,Tt)[Tt](f,{file:l})}return l}function qM(){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 GM(){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}),ne(this,Tt)[Tt](i,{throwErr:!1})}else ne(this,Tt)[Tt](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:{...r,postprocess:ne(this,ui)[ui].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:{...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={...this.getState().files};n[t.id]={...n[t.id],progress:{...n[t.id].progress}},delete n[t.id].progress.preprocess,this.setState({files:n})}),this.on("postprocess-progress",(t,n)=>{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:{...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={...this.getState().files};n[t.id]={...n[t.id],progress:{...n[t.id].progress}},delete n[t.id].progress.postprocess,this.setState({files:n})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",t=>{t&&ne(this,Qc)[Qc](t)}),typeof window<"u"&&window.addEventListener&&(window.addEventListener("online",ne(this,or)[or]),window.addEventListener("offline",ne(this,or)[or]),setTimeout(ne(this,or)[or],3e3))}function KM(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=NM();return this.emit("upload",{id:o,fileIDs:e}),this.setState({allowNewUpload:this.opts.allowMultipleUploadBatches!==!1&&this.opts.allowMultipleUploads!==!1,currentUploads:{...i,[o]:{fileIDs:e,step:0,result:{}}}}),o}function YM(e){const{currentUploads:t}=this.getState();return t[e]}function XM(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function JM(e){let{currentUploads:t}=this.getState(),n=t[e];const r=n.step||0,i=[...ne(this,oa)[oa],...ne(this,aa)[aa],...ne(this,ui)[ui]];try{for(let a=r;a<i.length&&n;a++){const u=i[a],s={...n,step:a};this.setState({currentUploads:{...t,[e]:s}}),await u(s.fileIDs,e),t=this.getState().currentUploads,n=t[e]}}catch(a){throw this.emit("error",a),ne(this,ca)[ca](e),a}if(n){n.fileIDs.forEach(l=>{const c=this.getFile(l);c&&c.progress.postprocess&&this.emit("postprocess-complete",c)});const a=n.fileIDs.map(l=>this.getFile(l)),u=a.filter(l=>!l.error),s=a.filter(l=>l.error);await this.addResultData(e,{successful:u,failed:s,uploadID:e}),t=this.getState().currentUploads,n=t[e]}let o;return n&&(o=n.result,this.emit("complete",o),ne(this,ca)[ca](e)),o==null&&this.log(`Not setting result for an upload that has been removed: ${e}`),o}_O.VERSION="2.1.3";var PO=_O,ZM=M$(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 v(T){var F=T.parentNode;F&&F.removeChild(T)}function m(T,F,k){var N,H,j,Q={};for(j in F)j=="key"?N=F[j]:j=="ref"?H=F[j]:Q[j]=F[j];if(arguments.length>2&&(Q.children=arguments.length>3?n.call(arguments,2):k),typeof T=="function"&&T.defaultProps!=null)for(j in T.defaultProps)Q[j]===void 0&&(Q[j]=T.defaultProps[j]);return g(T,Q,N,H,null)}function g(T,F,k,N,H){var j={type:T,props:F,key:k,ref:N,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:H==null?++i:H};return H==null&&r.vnode!=null&&r.vnode(j),j}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;F<T.__k.length;F++)if((k=T.__k[F])!=null&&k.__e!=null)return k.__e;return typeof T.type=="function"?$(T):null}function w(T){var F,k;if((T=T.__)!=null&&T.__c!=null){for(T.__e=T.__c.base=null,F=0;F<T.__k.length;F++)if((k=T.__k[F])!=null&&k.__e!=null){T.__e=T.__c.base=k.__e;break}return w(T)}}function C(T){(!T.__d&&(T.__d=!0)&&a.push(T)&&!D.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||u)(D)}function D(){for(var T;D.__r=a.length;)T=a.sort(function(F,k){return F.__v.__b-k.__v.__b}),a=[],T.some(function(F){var k,N,H,j,Q,ce;F.__d&&(Q=(j=(k=F).__v).__e,(ce=k.__P)&&(N=[],(H=p({},j)).__v=j.__v+1,ee(ce,j,H,k.__n,ce.ownerSVGElement!==void 0,j.__h!=null?[Q]:null,N,Q==null?$(j):Q,j.__h),ae(N,j),j.__e!=Q&&w(j)))})}function A(T,F,k,N,H,j,Q,ce,we,Re){var z,ze,ye,ue,be,mn,qe,lt=N&&N.__k||f,ft=lt.length;for(k.__k=[],z=0;z<F.length;z++)if((ue=k.__k[z]=(ue=F[z])==null||typeof ue=="boolean"?null:typeof ue=="string"||typeof ue=="number"||typeof ue=="bigint"?g(null,ue,null,null,ue):Array.isArray(ue)?g(y,{children:ue},null,null,null):ue.__b>0?g(ue.type,ue.props,ue.key,null,ue.__v):ue)!=null){if(ue.__=k,ue.__b=k.__b+1,(ye=lt[z])===null||ye&&ue.key==ye.key&&ue.type===ye.type)lt[z]=void 0;else for(ze=0;ze<ft;ze++){if((ye=lt[ze])&&ue.key==ye.key&&ue.type===ye.type){lt[ze]=void 0;break}ye=null}ee(T,ue,ye=ye||c,H,j,Q,ce,we,Re),be=ue.__e,(ze=ue.ref)&&ye.ref!=ze&&(qe||(qe=[]),ye.ref&&qe.push(ye.ref,null,ue),qe.push(ze,ue.__c||be,ue)),be!=null?(mn==null&&(mn=be),typeof ue.type=="function"&&ue.__k===ye.__k?ue.__d=we=I(ue,we,T):we=M(T,ue,ye,lt,be,we),typeof k.type=="function"&&(k.__d=we)):we&&ye.__e==we&&we.parentNode!=T&&(we=$(ye))}for(k.__e=mn,z=ft;z--;)lt[z]!=null&&(typeof k.type=="function"&<[z].__e!=null&<[z].__e==k.__d&&(k.__d=$(N,z+1)),ve(lt[z],lt[z]));if(qe)for(z=0;z<qe.length;z++)_e(qe[z],qe[++z],qe[++z])}function I(T,F,k){for(var N,H=T.__k,j=0;H&&j<H.length;j++)(N=H[j])&&(N.__=T,F=typeof N.type=="function"?I(N,F,k):M(k,N,N,H,N.__e,F));return F}function M(T,F,k,N,H,j){var Q,ce,we;if(F.__d!==void 0)Q=F.__d,F.__d=void 0;else if(k==null||H!=j||H.parentNode==null)e:if(j==null||j.parentNode!==T)T.appendChild(H),Q=null;else{for(ce=j,we=0;(ce=ce.nextSibling)&&we<N.length;we+=2)if(ce==H)break e;T.insertBefore(H,j),Q=j}return Q!==void 0?Q:H.nextSibling}function V(T,F,k,N,H){var j;for(j in k)j==="children"||j==="key"||j in F||J(T,j,null,k[j],N);for(j in F)H&&typeof F[j]!="function"||j==="children"||j==="key"||j==="value"||j==="checked"||k[j]===F[j]||J(T,j,F[j],k[j],N)}function Y(T,F,k){F[0]==="-"?T.setProperty(F,k):T[F]=k==null?"":typeof k!="number"||d.test(F)?k:k+"px"}function J(T,F,k,N,H){var j;e:if(F==="style")if(typeof k=="string")T.style.cssText=k;else{if(typeof N=="string"&&(T.style.cssText=N=""),N)for(F in N)k&&F in k||Y(T.style,F,"");if(k)for(F in k)N&&k[F]===N[F]||Y(T.style,F,k[F])}else if(F[0]==="o"&&F[1]==="n")j=F!==(F=F.replace(/Capture$/,"")),F=F.toLowerCase()in T?F.toLowerCase().slice(2):F.slice(2),T.l||(T.l={}),T.l[F+j]=k,k?N||T.addEventListener(F,j?se:Z,j):T.removeEventListener(F,j?se:Z,j);else if(F!=="dangerouslySetInnerHTML"){if(H)F=F.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(F!=="href"&&F!=="list"&&F!=="form"&&F!=="tabIndex"&&F!=="download"&&F in T)try{T[F]=k==null?"":k;break e}catch{}typeof k=="function"||(k!=null&&(k!==!1||F[0]==="a"&&F[1]==="r")?T.setAttribute(F,k):T.removeAttribute(F))}}function Z(T){this.l[T.type+!1](r.event?r.event(T):T)}function se(T){this.l[T.type+!0](r.event?r.event(T):T)}function ee(T,F,k,N,H,j,Q,ce,we){var Re,z,ze,ye,ue,be,mn,qe,lt,ft,sn,dt=F.type;if(F.constructor!==void 0)return null;k.__h!=null&&(we=k.__h,ce=F.__e=k.__e,F.__h=null,j=[ce]),(Re=r.__b)&&Re(F);try{e:if(typeof dt=="function"){if(qe=F.props,lt=(Re=dt.contextType)&&N[Re.__c],ft=Re?lt?lt.props.value:Re.__:N,k.__c?mn=(z=F.__c=k.__c).__=z.__E:("prototype"in dt&&dt.prototype.render?F.__c=z=new dt(qe,ft):(F.__c=z=new h(qe,ft),z.constructor=dt,z.render=ie),lt&<.sub(z),z.props=qe,z.state||(z.state={}),z.context=ft,z.__n=N,ze=z.__d=!0,z.__h=[]),z.__s==null&&(z.__s=z.state),dt.getDerivedStateFromProps!=null&&(z.__s==z.state&&(z.__s=p({},z.__s)),p(z.__s,dt.getDerivedStateFromProps(qe,z.__s))),ye=z.props,ue=z.state,ze)dt.getDerivedStateFromProps==null&&z.componentWillMount!=null&&z.componentWillMount(),z.componentDidMount!=null&&z.__h.push(z.componentDidMount);else{if(dt.getDerivedStateFromProps==null&&qe!==ye&&z.componentWillReceiveProps!=null&&z.componentWillReceiveProps(qe,ft),!z.__e&&z.shouldComponentUpdate!=null&&z.shouldComponentUpdate(qe,z.__s,ft)===!1||F.__v===k.__v){z.props=qe,z.state=z.__s,F.__v!==k.__v&&(z.__d=!1),z.__v=F,F.__e=k.__e,F.__k=k.__k,F.__k.forEach(function(Nn){Nn&&(Nn.__=F)}),z.__h.length&&Q.push(z);break e}z.componentWillUpdate!=null&&z.componentWillUpdate(qe,z.__s,ft),z.componentDidUpdate!=null&&z.__h.push(function(){z.componentDidUpdate(ye,ue,be)})}z.context=ft,z.props=qe,z.state=z.__s,(Re=r.__r)&&Re(F),z.__d=!1,z.__v=F,z.__P=T,Re=z.render(z.props,z.state,z.context),z.state=z.__s,z.getChildContext!=null&&(N=p(p({},N),z.getChildContext())),ze||z.getSnapshotBeforeUpdate==null||(be=z.getSnapshotBeforeUpdate(ye,ue)),sn=Re!=null&&Re.type===y&&Re.key==null?Re.props.children:Re,A(T,Array.isArray(sn)?sn:[sn],F,k,N,H,j,Q,ce,we),z.base=F.__e,F.__h=null,z.__h.length&&Q.push(z),mn&&(z.__E=z.__=null),z.__e=!1}else j==null&&F.__v===k.__v?(F.__k=k.__k,F.__e=k.__e):F.__e=fe(k.__e,F,k,N,H,j,Q,we);(Re=r.diffed)&&Re(F)}catch(Nn){F.__v=null,(we||j!=null)&&(F.__e=ce,F.__h=!!we,j[j.indexOf(ce)]=null),r.__e(Nn,F,k)}}function ae(T,F){r.__c&&r.__c(F,T),T.some(function(k){try{T=k.__h,k.__h=[],T.some(function(N){N.call(k)})}catch(N){r.__e(N,k.__v)}})}function fe(T,F,k,N,H,j,Q,ce){var we,Re,z,ze=k.props,ye=F.props,ue=F.type,be=0;if(ue==="svg"&&(H=!0),j!=null){for(;be<j.length;be++)if((we=j[be])&&"setAttribute"in we==!!ue&&(ue?we.localName===ue:we.nodeType===3)){T=we,j[be]=null;break}}if(T==null){if(ue===null)return document.createTextNode(ye);T=H?document.createElementNS("http://www.w3.org/2000/svg",ue):document.createElement(ue,ye.is&&ye),j=null,ce=!1}if(ue===null)ze===ye||ce&&T.data===ye||(T.data=ye);else{if(j=j&&n.call(T.childNodes),Re=(ze=k.props||c).dangerouslySetInnerHTML,z=ye.dangerouslySetInnerHTML,!ce){if(j!=null)for(ze={},be=0;be<T.attributes.length;be++)ze[T.attributes[be].name]=T.attributes[be].value;(z||Re)&&(z&&(Re&&z.__html==Re.__html||z.__html===T.innerHTML)||(T.innerHTML=z&&z.__html||""))}if(V(T,ye,ze,H,ce),z)F.__k=[];else if(be=F.props.children,A(T,Array.isArray(be)?be:[be],F,k,N,H&&ue!=="foreignObject",j,Q,j?j[0]:k.__k&&$(k,0),ce),j!=null)for(be=j.length;be--;)j[be]!=null&&v(j[be]);ce||("value"in ye&&(be=ye.value)!==void 0&&(be!==ze.value||be!==T.value||ue==="progress"&&!be)&&J(T,"value",be,ze.value,!1),"checked"in ye&&(be=ye.checked)!==void 0&&be!==T.checked&&J(T,"checked",be,ze.checked,!1))}return T}function _e(T,F,k){try{typeof T=="function"?T(F):T.current=F}catch(N){r.__e(N,k)}}function ve(T,F,k){var N,H;if(r.unmount&&r.unmount(T),(N=T.ref)&&(N.current&&N.current!==T.__e||_e(N,null,F)),(N=T.__c)!=null){if(N.componentWillUnmount)try{N.componentWillUnmount()}catch(j){r.__e(j,F)}N.base=N.__P=null}if(N=T.__k)for(H=0;H<N.length;H++)N[H]&&ve(N[H],F,typeof T.type!="function");k||T.__e==null||v(T.__e),T.__e=T.__d=void 0}function ie(T,F,k){return this.constructor(T,k)}function Ie(T,F,k){var N,H,j;r.__&&r.__(T,F),H=(N=typeof k=="function")?null:k&&k.__k||F.__k,j=[],ee(F,T=(!N&&k||F).__k=m(y,null,[T]),H||c,c,F.ownerSVGElement!==void 0,!N&&k?[k]:H?null:F.firstChild?n.call(F.childNodes):null,j,!N&&k?k:H?H.__e:F.firstChild,N),ae(j,T)}n=f.slice,r={__e:function(T,F){for(var k,N,H;F=F.__;)if((k=F.__c)&&!k.__)try{if((N=k.constructor)&&N.getDerivedStateFromError!=null&&(k.setState(N.getDerivedStateFromError(T)),H=k.__d),k.componentDidCatch!=null&&(k.componentDidCatch(T),H=k.__d),H)return k.__E=k}catch(j){T=j}throw T}},i=0,o=function(T){return T!=null&&T.constructor===void 0},h.prototype.setState=function(T,F){var k;k=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=p({},this.state),typeof T=="function"&&(T=T(p({},k),this.props)),T&&p(k,T),T!=null&&this.__v&&(F&&this.__h.push(F),C(this))},h.prototype.forceUpdate=function(T){this.__v&&(this.__e=!0,T&&this.__h.push(T),C(this))},h.prototype.render=y,a=[],u=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,D.__r=0,l=0,t.Component=h,t.Fragment=y,t.cloneElement=function(T,F,k){var N,H,j,Q=p({},T.props);for(j in F)j=="key"?N=F[j]:j=="ref"?H=F[j]:Q[j]=F[j];return arguments.length>2&&(Q.children=arguments.length>3?n.call(arguments,2):k),g(T.type,Q,N||T.key,H||T.ref,null)},t.createContext=function(T,F){var k={__c:F="__cC"+l++,__:T,Consumer:function(N,H){return N.children(H)},Provider:function(N){var H,j;return this.getChildContext||(H=[],(j={})[F]=this,this.getChildContext=function(){return j},this.shouldComponentUpdate=function(Q){this.props.value!==Q.value&&H.some(C)},this.sub=function(Q){H.push(Q);var ce=Q.componentWillUnmount;Q.componentWillUnmount=function(){H.splice(H.indexOf(Q),1),ce&&ce.call(Q)}}),N.children}};return k.Provider.__=k.Consumer.contextType=k},t.createElement=m,t.createRef=function(){return{current:null}},t.h=m,t.hydrate=function T(F,k){Ie(F,k,T)},t.isValidElement=o,t.options=r,t.render=Ie,t.toChildArray=function T(F,k){return k=k||[],F==null||typeof F=="boolean"||(Array.isArray(F)?F.some(function(N){T(N,k)}):k.push(F)),k}}),QM=function(t){return(t==null?void 0:t.nodeType)===Node.ELEMENT_NODE},ez=function(t,n){return n===void 0&&(n=document),typeof t=="string"?n.querySelector(t):QM(t)?t:null},J$=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:{...n,[this.id]:{...n[this.id],...t}}})}setOptions(t){this.opts={...this.opts,...t},this.setPluginState(),this.i18nInit()}i18nInit(){const t=new EO([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 R6(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var tz=0;function nz(e){return"__private_"+tz+++"_"+e}const{render:j6}=ZM;function rz(e){let t=null,n=null;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=i,t||(t=Promise.resolve().then(()=>(t=null,e(...n)))),t}}var ml=nz("updateUI");class Z$ extends J${constructor(){super(...arguments),Object.defineProperty(this,ml,{writable:!0,value:void 0})}mount(t,n){const r=n.id,i=ez(t);if(i){this.isTargetDOMEl=!0;const u=document.createDocumentFragment();return R6(this,ml)[ml]=rz(s=>{!this.uppy.getPlugin(this.id)||(j6(this.render(s),u),this.afterUpdate())}),this.uppy.log(`Installing ${r} to a DOM element '${t}'`),this.opts.replaceTargetContent&&(i.innerHTML=""),j6(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 Z$)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 <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(a)}update(t){if(this.el!=null){var n,r;(n=(r=R6(this,ml))[ml])==null||n.call(r,t)}}unmount(){if(this.isTargetDOMEl){var t;(t=this.el)==null||t.remove()}this.onUnmount()}onMount(){}onUnmount(){}}var iz=Z$;const{debugLogger:oz}=BO;var qf=PO,az=PO,uz=iz,sz=J$,lz=oz;qf.Uppy=az;qf.UIPlugin=uz;qf.BasePlugin=sz;qf.debugLogger=lz;class cz extends Error{constructor(t,n){n===void 0&&(n=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=t,this.isNetworkError=!0,this.request=n}}var Q$=cz,c1=function(){return fetch(...arguments).catch(t=>{throw t.name==="AbortError"?t:new Q$(t)})};class fz extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var dz=fz,Hd,Di,Sr,xi,L6;function xr(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var pz=0;function f1(e){return"__private_"+pz+++"_"+e}function hz(e){return e.replace(/\/$/,"")}async function d1(e){if(e.status===401)throw new dz;const t=e.json();if(e.status<200||e.status>300){let n=`Failed request with status: ${e.status}. ${e.statusText}`;try{const r=await t;n=r.message?`${n} message: ${r.message}`:n,n=r.requestId?`${n} request-Id: ${r.requestId}`:n}finally{throw new Error(n)}}return t}var ew=(L6=(Di=f1("getPostResponseFunc"),Sr=f1("getUrl"),xi=f1("errorHandler"),Hd=class NO{constructor(t,n){Object.defineProperty(this,xi,{value:vz}),Object.defineProperty(this,Sr,{value:gz}),Object.defineProperty(this,Di,{writable:!0,value:r=>i=>r?i:this.onReceiveResponse(i)}),this.uppy=t,this.opts=n,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}get hostname(){const{companion:t}=this.uppy.getState(),n=this.opts.companionUrl;return hz(t&&t[n]?t[n]:n)}headers(){const t=this.opts.companionHeaders||{};return Promise.resolve({...NO.defaultHeaders,...t})}onReceiveResponse(t){const r=this.uppy.getState().companion||{},i=this.opts.companionUrl,{headers:o}=t;return o.has("i-am")&&o.get("i-am")!==r[i]&&this.uppy.setState({companion:{...r,[i]:o.get("i-am")}}),t}preflight(t){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(xr(this,Sr)[Sr](t),{method:"OPTIONS"}).then(n=>(n.headers.has("access-control-allow-headers")&&(this.allowedHeaders=n.headers.get("access-control-allow-headers").split(",").map(r=>r.trim().toLowerCase())),this.preflightDone=!0,this.allowedHeaders.slice())).catch(n=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${n}`,"warning"),this.preflightDone=!0,this.allowedHeaders.slice()))}preflightAndHeaders(t){return Promise.all([this.preflight(t),this.headers()]).then(n=>{let[r,i]=n;return Object.keys(i).forEach(o=>{r.includes(o.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${o}`),delete i[o])}),i})}get(t,n){const r="get";return this.preflightAndHeaders(t).then(i=>c1(xr(this,Sr)[Sr](t),{method:r,headers:i,credentials:this.opts.companionCookiesRule||"same-origin"})).then(xr(this,Di)[Di](n)).then(d1).catch(xr(this,xi)[xi](r,t))}post(t,n,r){const i="post";return this.preflightAndHeaders(t).then(o=>c1(xr(this,Sr)[Sr](t),{method:i,headers:o,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(n)})).then(xr(this,Di)[Di](r)).then(d1).catch(xr(this,xi)[xi](i,t))}delete(t,n,r){const i="delete";return this.preflightAndHeaders(t).then(o=>c1(`${this.hostname}/${t}`,{method:i,headers:o,credentials:this.opts.companionCookiesRule||"same-origin",body:n?JSON.stringify(n):null})).then(xr(this,Di)[Di](r)).then(d1).catch(xr(this,xi)[xi](i,t))}}),Hd.VERSION="2.0.4",Hd.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${Hd.VERSION}`},L6);function gz(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function vz(e,t){return n=>{var r;if(!((r=n)!=null&&r.isAuthError)){const i=new Error(`Could not ${e} ${xr(this,Sr)[Sr](t)}`);i.cause=n,n=i}return Promise.reject(n)}}var mz=(e,t)=>new Promise(n=>{localStorage.setItem(e,t),n()}),yz=e=>Promise.resolve(localStorage.getItem(e)),bz=e=>new Promise(t=>{localStorage.removeItem(e),t()}),$z={setItem:mz,getItem:yz,removeItem:bz};const wz=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ");var Ez=class extends ew{constructor(t,n){super(t,n),this.provider=n.provider,this.id=this.provider,this.name=this.opts.name||wz(this.id),this.pluginId=this.opts.pluginId,this.tokenKey=`companion-${this.pluginId}-auth-token`,this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}headers(){return Promise.all([super.headers(),this.getAuthToken()]).then(t=>{let[n,r]=t;const i={};return r&&(i["uppy-auth-token"]=r),this.companionKeysParams&&(i["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...n,...i}})}onReceiveResponse(t){t=super.onReceiveResponse(t);const n=this.uppy.getPlugin(this.pluginId),i=n.getPluginState().authenticated?t.status!==401:t.status<400;return n.setPluginState({authenticated:i}),t}setAuthToken(t){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,t)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(t){return t===void 0&&(t={}),this.preAuthToken&&(t.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?${new URLSearchParams(t)}`}fileUrl(t){return`${this.hostname}/${this.id}/get/${t}`}fetchPreAuthToken(){return this.companionKeysParams?this.post(`${this.id}/preauth/`,{params:this.companionKeysParams}).then(t=>{this.preAuthToken=t.token}).catch(t=>{this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${t}`,"warning")}):Promise.resolve()}list(t){return this.get(`${this.id}/list/${t||""}`)}logout(){return this.get(`${this.id}/logout`).then(t=>Promise.all([t,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)])).then(t=>{let[n]=t;return n})}static initPlugin(t,n,r){if(t.type="acquirer",t.files=[],r&&(t.opts={...r,...n}),n.serverUrl||n.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(n.companionAllowedHosts){const i=n.companionAllowedHosts;if(typeof i!="string"&&!Array.isArray(i)&&!(i instanceof RegExp))throw new TypeError(`${t.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);t.opts.companionAllowedHosts=i}else/^(?!https?:\/\/).*$/i.test(n.companionUrl)?t.opts.companionAllowedHosts=`https://${n.companionUrl.replace(/^\/\//,"")}`:t.opts.companionAllowedHosts=new URL(n.companionUrl).origin;t.storage=t.opts.storage||$z}};const Cz=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ");var Dz=class extends ew{constructor(t,n){super(t,n),this.provider=n.provider,this.id=this.provider,this.name=this.opts.name||Cz(this.id),this.pluginId=this.opts.pluginId}fileUrl(t){return`${this.hostname}/search/${this.id}/get/${t}`}search(t,n){return n=n?`&${n}`:"",this.get(`search/${this.id}/list?q=${encodeURIComponent(t)}${n}`)}},Dr,Si,jn,Jt,Ud;let M6,z6;function wt(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 yl(e){return"__private_"+xz+++"_"+e}var Sz=(Dr=yl("queued"),Si=yl("emitter"),jn=yl("isOpen"),Jt=yl("socket"),Ud=yl("handleMessage"),M6=Symbol.for("uppy test: getSocket"),z6=Symbol.for("uppy test: getQueued"),class{constructor(t){Object.defineProperty(this,Dr,{writable:!0,value:[]}),Object.defineProperty(this,Si,{writable:!0,value:CO()}),Object.defineProperty(this,jn,{writable:!0,value:!1}),Object.defineProperty(this,Jt,{writable:!0,value:void 0}),Object.defineProperty(this,Ud,{writable:!0,value:n=>{try{const r=JSON.parse(n.data);this.emit(r.action,r.payload)}catch(r){console.log(r)}}}),this.opts=t,(!t||t.autoOpen!==!1)&&this.open()}get isOpen(){return wt(this,jn)[jn]}[M6](){return wt(this,Jt)[Jt]}[z6](){return wt(this,Dr)[Dr]}open(){wt(this,Jt)[Jt]=new WebSocket(this.opts.target),wt(this,Jt)[Jt].onopen=()=>{for(wt(this,jn)[jn]=!0;wt(this,Dr)[Dr].length>0&&wt(this,jn)[jn];){const t=wt(this,Dr)[Dr].shift();this.send(t.action,t.payload)}},wt(this,Jt)[Jt].onclose=()=>{wt(this,jn)[jn]=!1},wt(this,Jt)[Jt].onmessage=wt(this,Ud)[Ud]}close(){var t;(t=wt(this,Jt)[Jt])==null||t.close()}send(t,n){if(!wt(this,jn)[jn]){wt(this,Dr)[Dr].push({action:t,payload:n});return}wt(this,Jt)[Jt].send(JSON.stringify({action:t,payload:n}))}on(t,n){wt(this,Si)[Si].on(t,n)}emit(t,n){wt(this,Si)[Si].emit(t,n)}once(t,n){wt(this,Si)[Si].once(t,n)}}),Az={RequestClient:ew,Provider:Ez,SearchProvider:Dz,Socket:Sz};function Oz(e,t,n){const{progress:r,bytesUploaded:i,bytesTotal:o}=t;r&&(e.uppy.log(`Upload progress: ${r}`),e.uppy.emit("upload-progress",n,{uploader:e,bytesUploaded:i,bytesTotal:o}))}var Bz=Pa(Oz,300,{leading:!0,trailing:!0}),Fz=function(t){const r=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(t)[1];return`${/^http:\/\//i.test(t)?"ws":"wss"}://${r}`},Tz=function(t){const n=[],r=[];function i(u){n.push(u)}function o(u){r.push(u)}return Promise.all(t.map(u=>u.then(i,o))).then(()=>({successful:n,failed:r}))},Ai,du;function bl(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var kz=0;function H6(e){return"__private_"+kz+++"_"+e}var U6=(Ai=H6("emitter"),du=H6("events"),class{constructor(t){Object.defineProperty(this,Ai,{writable:!0,value:void 0}),Object.defineProperty(this,du,{writable:!0,value:[]}),bl(this,Ai)[Ai]=t}on(t,n){return bl(this,du)[du].push([t,n]),bl(this,Ai)[Ai].on(t,n)}remove(){for(const[t,n]of bl(this,du)[du].splice(0))bl(this,Ai)[Ai].off(t,n)}});function Ln(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var _z=0;function s0(e){return"__private_"+_z+++"_"+e}var ai=s0("aliveTimer"),Uo=s0("isDone"),$l=s0("onTimedOut"),Vo=s0("timeout");class Pz{constructor(t,n){Object.defineProperty(this,ai,{writable:!0,value:void 0}),Object.defineProperty(this,Uo,{writable:!0,value:!1}),Object.defineProperty(this,$l,{writable:!0,value:void 0}),Object.defineProperty(this,Vo,{writable:!0,value:void 0}),Ln(this,Vo)[Vo]=t,Ln(this,$l)[$l]=n}progress(){Ln(this,Uo)[Uo]||Ln(this,Vo)[Vo]>0&&(clearTimeout(Ln(this,ai)[ai]),Ln(this,ai)[ai]=setTimeout(Ln(this,$l)[$l],Ln(this,Vo)[Vo]))}done(){Ln(this,Uo)[Uo]||(clearTimeout(Ln(this,ai)[ai]),Ln(this,ai)[ai]=null,Ln(this,Uo)[Uo]=!0)}}var V6=Pz;function Dt(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Nz=0;function Ya(e){return"__private_"+Nz+++"_"+e}function Iz(){return new Error("Cancelled")}var En=Ya("activeRequests"),an=Ya("queuedHandlers"),Bc=Ya("call"),wc=Ya("queueNext"),W2=Ya("next"),p1=Ya("queue"),q2=Ya("dequeue");class Rz{constructor(t){Object.defineProperty(this,q2,{value:Hz}),Object.defineProperty(this,p1,{value:zz}),Object.defineProperty(this,W2,{value:Mz}),Object.defineProperty(this,wc,{value:Lz}),Object.defineProperty(this,Bc,{value:jz}),Object.defineProperty(this,En,{writable:!0,value:0}),Object.defineProperty(this,an,{writable:!0,value:[]}),typeof t!="number"||t===0?this.limit=1/0:this.limit=t}run(t,n){return Dt(this,En)[En]<this.limit?Dt(this,Bc)[Bc](t):Dt(this,p1)[p1](t,n)}wrapPromiseFunction(t,n){var r=this;return function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];let u;const s=new Promise((l,c)=>{u=r.run(()=>{let f,d;try{d=Promise.resolve(t(...o))}catch(p){d=Promise.reject(p)}return d.then(p=>{f?c(f):(u.done(),l(p))},p=>{f?c(f):(u.done(),c(p))}),()=>{f=Iz()}},n)});return s.abort=()=>{u.abort()},s}}}function jz(e){Dt(this,En)[En]+=1;let t=!1,n;try{n=e()}catch(r){throw Dt(this,En)[En]-=1,r}return{abort:()=>{t||(t=!0,Dt(this,En)[En]-=1,n(),Dt(this,wc)[wc]())},done:()=>{t||(t=!0,Dt(this,En)[En]-=1,Dt(this,wc)[wc]())}}}function Lz(){queueMicrotask(()=>Dt(this,W2)[W2]())}function Mz(){if(Dt(this,En)[En]>=this.limit||Dt(this,an)[an].length===0)return;const e=Dt(this,an)[an].shift(),t=Dt(this,Bc)[Bc](e.fn);e.abort=t.abort,e.done=t.done}function zz(e,t){t===void 0&&(t={});const n={fn:e,priority:t.priority||0,abort:()=>{Dt(this,q2)[q2](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=Dt(this,an)[an].findIndex(i=>n.priority>i.priority);return r===-1?Dt(this,an)[an].push(n):Dt(this,an)[an].splice(r,0,n),n}function Hz(e){const t=Dt(this,an)[an].indexOf(e);t!==-1&&Dt(this,an)[an].splice(t,1)}var Uz={RateLimitedQueue:Rz,internalRateLimitedQueue:Symbol("__queue")};function Vz(e){return e?e.readyState!==0&&e.readyState!==4||e.status===0:!1}var IO=Vz,Wz={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}},W6,q6;const{nanoid:qz}=FO,{Provider:Gz,RequestClient:Kz,Socket:Yz}=Az,{RateLimitedQueue:Xz,internalRateLimitedQueue:h1}=Uz;function G6(e,t){let n=t;return n||(n=new Error("Upload error")),typeof n=="string"&&(n=new Error(n)),n instanceof Error||(n=Object.assign(new Error("Upload error"),{data:n})),IO(e)?(n=new Q$(n,e),n):(n.request=e,n)}function K6(e){return e.data.slice(0,e.data.size,e.meta.type)}var Jz=(q6=W6=class extends J${constructor(t,n){super(t,n),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=Wz;const r={formData:!0,fieldName:n.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:30*1e3,limit:5,withCredentials:!1,responseType:"",getResponseData(i){let o={};try{o=JSON.parse(i)}catch(a){t.log(a)}return o},getResponseError(i,o){let a=new Error("Upload error");return IO(o)&&(a=new Q$(a,o)),a},validateStatus(i){return i>=200&&i<300}};if(this.opts={...r,...n},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),h1 in this.opts?this.requests=this.opts[h1]:this.requests=new Xz(this.opts.limit),this.opts.bundle&&!this.opts.formData)throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");this.uploaderEvents=Object.create(null)}getOptions(t){const n=this.uppy.getState().xhrUpload,{headers:r}=this.opts,i={...this.opts,...n||{},...t.xhrUpload||{},headers:{}};return typeof r=="function"?i.headers=r(t):Object.assign(i.headers,this.opts.headers),n&&Object.assign(i.headers,n.headers),t.xhrUpload&&Object.assign(i.headers,t.xhrUpload.headers),i}addMetadata(t,n,r){(Array.isArray(r.metaFields)?r.metaFields:Object.keys(n)).forEach(o=>{t.append(o,n[o])})}createFormDataUpload(t,n){const r=new FormData;this.addMetadata(r,t.meta,n);const i=K6(t);return t.name?r.append(n.fieldName,i,t.meta.name):r.append(n.fieldName,i),r}createBundledUpload(t,n){const r=new FormData,{meta:i}=this.uppy.getState();return this.addMetadata(r,i,n),t.forEach(o=>{const a=this.getOptions(o),u=K6(o);o.name?r.append(a.fieldName,u,o.name):r.append(a.fieldName,u)}),r}upload(t,n,r){const i=this.getOptions(t);return this.uppy.log(`uploading ${n} of ${r}`),new Promise((o,a)=>{this.uppy.emit("upload-started",t);const u=i.formData?this.createFormDataUpload(t,i):t.data,s=new XMLHttpRequest;this.uploaderEvents[t.id]=new U6(this.uppy);const l=new V6(i.timeout,()=>{s.abort(),f.done();const d=new Error(this.i18n("timedOut",{seconds:Math.ceil(i.timeout/1e3)}));this.uppy.emit("upload-error",t,d),a(d)}),c=qz();s.upload.addEventListener("loadstart",()=>{this.uppy.log(`[XHRUpload] ${c} started`)}),s.upload.addEventListener("progress",d=>{this.uppy.log(`[XHRUpload] ${c} progress: ${d.loaded} / ${d.total}`),l.progress(),d.lengthComputable&&this.uppy.emit("upload-progress",t,{uploader:this,bytesUploaded:d.loaded,bytesTotal:d.total})}),s.addEventListener("load",d=>{if(this.uppy.log(`[XHRUpload] ${c} finished`),l.done(),f.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),i.validateStatus(d.target.status,s.responseText,s)){const g=i.getResponseData(s.responseText,s),y=g[i.responseUrlFieldName],h={status:d.target.status,body:g,uploadURL:y};return this.uppy.emit("upload-success",t,h),y&&this.uppy.log(`Download ${t.name} from ${y}`),o(t)}const p=i.getResponseData(s.responseText,s),v=G6(s,i.getResponseError(s.responseText,s)),m={status:d.target.status,body:p};return this.uppy.emit("upload-error",t,v,m),a(v)}),s.addEventListener("error",()=>{this.uppy.log(`[XHRUpload] ${c} errored`),l.done(),f.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null);const d=G6(s,i.getResponseError(s.responseText,s));return this.uppy.emit("upload-error",t,d),a(d)}),s.open(i.method.toUpperCase(),i.endpoint,!0),s.withCredentials=i.withCredentials,i.responseType!==""&&(s.responseType=i.responseType);const f=this.requests.run(()=>{this.uppy.emit("upload-started",t);const d=this.getOptions(t);return Object.keys(d.headers).forEach(p=>{s.setRequestHeader(p,d.headers[p])}),s.send(u),()=>{l.done(),s.abort()}});this.onFileRemove(t.id,()=>{f.abort(),a(new Error("File removed"))}),this.onCancelAll(t.id,()=>{f.abort(),a(new Error("Upload cancelled"))})})}uploadRemote(t){const n=this.getOptions(t);return new Promise((r,i)=>{this.uppy.emit("upload-started",t);const o={};(Array.isArray(n.metaFields)?n.metaFields:Object.keys(t.meta)).forEach(l=>{o[l]=t.meta[l]});const u=t.remote.providerOptions.provider?Gz:Kz;new u(this.uppy,t.remote.providerOptions).post(t.remote.url,{...t.remote.body,endpoint:n.endpoint,size:t.data.size,fieldname:n.fieldName,metadata:o,httpMethod:n.method,useFormData:n.formData,headers:n.headers}).then(l=>{const{token:c}=l,f=Fz(t.remote.companionUrl),d=new Yz({target:`${f}/api/${c}`,autoOpen:!1});this.uploaderEvents[t.id]=new U6(this.uppy),this.onFileRemove(t.id,()=>{d.send("cancel",{}),p.abort(),r(`upload ${t.id} was removed`)}),this.onCancelAll(t.id,()=>{d.send("cancel",{}),p.abort(),r(`upload ${t.id} was canceled`)}),this.onRetry(t.id,()=>{d.send("pause",{}),d.send("resume",{})}),this.onRetryAll(t.id,()=>{d.send("pause",{}),d.send("resume",{})}),d.on("progress",v=>Bz(this,v,t)),d.on("success",v=>{const m=n.getResponseData(v.response.responseText,v.response),g=m[n.responseUrlFieldName],y={status:v.response.status,body:m,uploadURL:g};return this.uppy.emit("upload-success",t,y),p.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),r()}),d.on("error",v=>{const m=v.response,g=m?n.getResponseError(m.responseText,m):Object.assign(new Error(v.error.message),{cause:v.error});this.uppy.emit("upload-error",t,g),p.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),i(g)});const p=this.requests.run(()=>(d.open(),t.isPaused&&d.send("pause",{}),()=>d.close()))}).catch(l=>{this.uppy.emit("upload-error",t,l),i(l)})})}uploadBundle(t){return new Promise((n,r)=>{const{endpoint:i}=this.opts,{method:o}=this.opts,a=this.uppy.getState().xhrUpload,u=this.createBundledUpload(t,{...this.opts,...a||{}}),s=new XMLHttpRequest,l=new V6(this.opts.timeout,()=>{s.abort();const f=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));c(f),r(f)}),c=f=>{t.forEach(d=>{this.uppy.emit("upload-error",d,f)})};s.upload.addEventListener("loadstart",()=>{this.uppy.log("[XHRUpload] started uploading bundle"),l.progress()}),s.upload.addEventListener("progress",f=>{l.progress(),f.lengthComputable&&t.forEach(d=>{this.uppy.emit("upload-progress",d,{uploader:this,bytesUploaded:f.loaded/f.total*d.size,bytesTotal:d.size})})}),s.addEventListener("load",f=>{if(l.done(),this.opts.validateStatus(f.target.status,s.responseText,s)){const p=this.opts.getResponseData(s.responseText,s),v={status:f.target.status,body:p};return t.forEach(m=>{this.uppy.emit("upload-success",m,v)}),n()}const d=this.opts.getResponseError(s.responseText,s)||new Error("Upload error");return d.request=s,c(d),r(d)}),s.addEventListener("error",()=>{l.done();const f=this.opts.getResponseError(s.responseText,s)||new Error("Upload error");return c(f),r(f)}),this.uppy.on("cancel-all",()=>{l.done(),s.abort()}),s.open(o.toUpperCase(),i,!0),s.withCredentials=this.opts.withCredentials,this.opts.responseType!==""&&(s.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach(f=>{s.setRequestHeader(f,this.opts.headers[f])}),s.send(u),t.forEach(f=>{this.uppy.emit("upload-started",f)})})}uploadFiles(t){const n=t.map((r,i)=>{const o=parseInt(i,10)+1,a=t.length;return r.error?Promise.reject(new Error(r.error)):r.isRemote?this.uploadRemote(r,o,a):this.upload(r,o,a)});return Tz(n)}onFileRemove(t,n){this.uploaderEvents[t].on("file-removed",r=>{t===r.id&&n(r.id)})}onRetry(t,n){this.uploaderEvents[t].on("upload-retry",r=>{t===r&&n()})}onRetryAll(t,n){this.uploaderEvents[t].on("retry-all",()=>{!this.uppy.getFile(t)||n()})}onCancelAll(t,n){this.uploaderEvents[t].on("cancel-all",()=>{!this.uppy.getFile(t)||n()})}handleUpload(t){if(t.length===0)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();this.opts.limit===0&&!this.opts[h1]&&this.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0","warning"),this.uppy.log("[XHRUpload] Uploading...");const n=t.map(r=>this.uppy.getFile(r));if(this.opts.bundle){if(n.some(i=>i.isRemote))throw new Error("Can\u2019t upload remote files when the `bundle: true` option is set");if(typeof this.opts.headers=="function")throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(n)}return this.uploadFiles(n).then(()=>null)}install(){if(this.opts.bundle){const{capabilities:t}=this.uppy.getState();this.uppy.setState({capabilities:{...t,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:t}=this.uppy.getState();this.uppy.setState({capabilities:{...t,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},W6.VERSION="2.0.6",q6),Y6=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Gf(e){var t={exports:{}};return e(t,t.exports),t.exports}var Oi,zp,Vd=function(e){return e&&e.Math==Math&&e},U=Vd(typeof globalThis=="object"&&globalThis)||Vd(typeof window=="object"&&window)||Vd(typeof self=="object"&&self)||Vd(typeof Y6=="object"&&Y6)||function(){return this}()||Function("return this")(),Zz=Object.defineProperty,tw=function(e,t){try{Zz(U,e,{value:t,configurable:!0,writable:!0})}catch{U[e]=t}return t},eo=U["__core-js_shared__"]||tw("__core-js_shared__",{}),nw=Gf(function(e){(e.exports=function(t,n){return eo[t]||(eo[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),RO=Function.prototype,G2=RO.bind,K2=RO.call,Qz=G2&&G2.bind(K2),re=G2?function(e){return e&&Qz(K2,e)}:function(e){return e&&function(){return K2.apply(e,arguments)}},eH=U.TypeError,Zn=function(e){if(e==null)throw eH("Can't call method on "+e);return e},tH=U.Object,Fo=function(e){return tH(Zn(e))},nH=re({}.hasOwnProperty),vt=Object.hasOwn||function(e,t){return nH(Fo(e),t)},rH=0,iH=Math.random(),oH=re(1 .toString),rw=function(e){return"Symbol("+(e===void 0?"":e)+")_"+oH(++rH+iH,36)},Ue=function(e){return typeof e=="function"},aH=function(e){return Ue(e)?e:void 0},Xa=function(e,t){return arguments.length<2?aH(U[e]):U[e]&&U[e][t]},Ju=Xa("navigator","userAgent")||"",X6=U.process,J6=U.Deno,Z6=X6&&X6.versions||J6&&J6.version,Q6=Z6&&Z6.v8;Q6&&(zp=(Oi=Q6.split("."))[0]>0&&Oi[0]<4?1:+(Oi[0]+Oi[1])),!zp&&Ju&&(!(Oi=Ju.match(/Edge\/(\d+)/))||Oi[1]>=74)&&(Oi=Ju.match(/Chrome\/(\d+)/))&&(zp=+Oi[1]);var ef=zp,je=function(e){try{return!!e()}catch{return!0}},Y2=!!Object.getOwnPropertySymbols&&!je(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ef&&ef<41}),iw=Y2&&!Symbol.sham&&typeof Symbol.iterator=="symbol",wl=nw("wks"),ha=U.Symbol,e8=ha&&ha.for,uH=iw?ha:ha&&ha.withoutSetter||rw,st=function(e){if(!vt(wl,e)||!Y2&&typeof wl[e]!="string"){var t="Symbol."+e;Y2&&vt(ha,e)?wl[e]=ha[e]:wl[e]=iw&&e8?e8(t):uH(t)}return wl[e]},jO={};jO[st("toStringTag")]="z";var ow=String(jO)==="[object z]",Nt=!je(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Ye=function(e){return typeof e=="object"?e!==null:Ue(e)},X2=U.document,sH=Ye(X2)&&Ye(X2.createElement),tf=function(e){return sH?X2.createElement(e):{}},LO=!Nt&&!je(function(){return Object.defineProperty(tf("div"),"a",{get:function(){return 7}}).a!=7}),lH=U.String,cH=U.TypeError,mt=function(e){if(Ye(e))return e;throw cH(lH(e)+" is not an object")},El=Function.prototype.call,Be=El.bind?El.bind(El):function(){return El.apply(El,arguments)},Na=re({}.isPrototypeOf),fH=U.Object,J2=iw?function(e){return typeof e=="symbol"}:function(e){var t=Xa("Symbol");return Ue(t)&&Na(t.prototype,fH(e))},dH=U.String,l0=function(e){try{return dH(e)}catch{return"Object"}},pH=U.TypeError,$o=function(e){if(Ue(e))return e;throw pH(l0(e)+" is not a function")},Ia=function(e,t){var n=e[t];return n==null?void 0:$o(n)},hH=U.TypeError,gH=U.TypeError,vH=st("toPrimitive"),mH=function(e,t){if(!Ye(e)||J2(e))return e;var n,r=Ia(e,vH);if(r){if(t===void 0&&(t="default"),n=Be(r,e,t),!Ye(n)||J2(n))return n;throw gH("Can't convert object to primitive value")}return t===void 0&&(t="number"),function(i,o){var a,u;if(o==="string"&&Ue(a=i.toString)&&!Ye(u=Be(a,i))||Ue(a=i.valueOf)&&!Ye(u=Be(a,i))||o!=="string"&&Ue(a=i.toString)&&!Ye(u=Be(a,i)))return u;throw hH("Can't convert object to primitive value")}(e,t)},aw=function(e){var t=mH(e,"string");return J2(t)?t:t+""},yH=U.TypeError,t8=Object.defineProperty,mr={f:Nt?t8:function(e,t,n){if(mt(e),t=aw(t),mt(n),LO)try{return t8(e,t,n)}catch{}if("get"in n||"set"in n)throw yH("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},c0=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},cr=Nt?function(e,t,n){return mr.f(e,t,c0(1,n))}:function(e,t,n){return e[t]=n,e},bH=re(Function.toString);Ue(eo.inspectSource)||(eo.inspectSource=function(e){return bH(e)});var xh,Fc,Sh,f0=eo.inspectSource,n8=U.WeakMap,MO=Ue(n8)&&/native code/.test(f0(n8)),r8=nw("keys"),uw=function(e){return r8[e]||(r8[e]=rw(e))},d0={},Z2=U.TypeError,$H=U.WeakMap;if(MO||eo.state){var Wo=eo.state||(eo.state=new $H),wH=re(Wo.get),i8=re(Wo.has),EH=re(Wo.set);xh=function(e,t){if(i8(Wo,e))throw new Z2("Object already initialized");return t.facade=e,EH(Wo,e,t),t},Fc=function(e){return wH(Wo,e)||{}},Sh=function(e){return i8(Wo,e)}}else{var pu=uw("state");d0[pu]=!0,xh=function(e,t){if(vt(e,pu))throw new Z2("Object already initialized");return t.facade=e,cr(e,pu,t),t},Fc=function(e){return vt(e,pu)?e[pu]:{}},Sh=function(e){return vt(e,pu)}}var tn={set:xh,get:Fc,has:Sh,enforce:function(e){return Sh(e)?Fc(e):xh(e,{})},getterFor:function(e){return function(t){var n;if(!Ye(t)||(n=Fc(t)).type!==e)throw Z2("Incompatible receiver, "+e+" required");return n}}},zO=Function.prototype,CH=Nt&&Object.getOwnPropertyDescriptor,g1=vt(zO,"name"),Rs={EXISTS:g1,PROPER:g1&&function(){}.name==="something",CONFIGURABLE:g1&&(!Nt||Nt&&CH(zO,"name").configurable)},hn=Gf(function(e){var t=Rs.CONFIGURABLE,n=tn.get,r=tn.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;Ue(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!vt(u,"name")||t&&u.name!==p)&&cr(u,"name",p),(l=r(u)).source||(l.source=i.join(typeof p=="string"?p:""))),o!==U?(c?!d&&o[a]&&(f=!0):delete o[a],f?o[a]=u:cr(o,a,u)):f?o[a]=u:tw(a,u)})(Function.prototype,"toString",function(){return Ue(this)&&n(this).source||f0(this)})}),DH=re({}.toString),xH=re("".slice),fr=function(e){return xH(DH(e),8,-1)},SH=st("toStringTag"),AH=U.Object,OH=fr(function(){return arguments}())=="Arguments",p0=ow?fr:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(i,o){try{return i[o]}catch{}}(t=AH(e),SH))=="string"?n:OH?fr(t):(r=fr(t))=="Object"&&Ue(t.callee)?"Arguments":r},BH=ow?{}.toString:function(){return"[object "+p0(this)+"]"};ow||hn(Object.prototype,"toString",BH,{unsafe:!0});var Ah={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},v1=tf("span").classList,o8=v1&&v1.constructor&&v1.constructor.prototype,HO=o8===Object.prototype?void 0:o8,a8=re(re.bind),Ra=function(e,t){return $o(e),t===void 0?e:a8?a8(e,t):function(){return e.apply(t,arguments)}},m1=U.Object,FH=re("".split),h0=je(function(){return!m1("z").propertyIsEnumerable(0)})?function(e){return fr(e)=="String"?FH(e,""):m1(e)}:m1,TH=Math.ceil,kH=Math.floor,Kf=function(e){var t=+e;return t!=t||t===0?0:(t>0?kH:TH)(t)},_H=Math.min,js=function(e){return e>0?_H(Kf(e),9007199254740991):0},Ja=function(e){return js(e.length)},Oh=Array.isArray||function(e){return fr(e)=="Array"},UO=function(){},PH=[],VO=Xa("Reflect","construct"),sw=/^\s*(?:class|function)\b/,NH=re(sw.exec),IH=!sw.exec(UO),Cl=function(e){if(!Ue(e))return!1;try{return VO(UO,PH,e),!0}catch{return!1}},g0=!VO||je(function(){var e;return Cl(Cl.call)||!Cl(Object)||!Cl(function(){e=!0})||e})?function(e){if(!Ue(e))return!1;switch(p0(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return IH||!!NH(sw,f0(e))}:Cl,RH=st("species"),u8=U.Array,WO=function(e,t){return new(function(n){var r;return Oh(n)&&(r=n.constructor,(g0(r)&&(r===u8||Oh(r.prototype))||Ye(r)&&(r=r[RH])===null)&&(r=void 0)),r===void 0?u8:r}(e))(t===0?0:t)},s8=re([].push),Bi=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,v=Fo(s),m=h0(v),g=Ra(l,c),y=Ja(m),h=0,$=f||WO,w=t?$(s,y):n||a?$(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),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:s8(w,d)}else switch(e){case 4:return!1;case 7:s8(w,d)}return o?-1:r||i?i:w}},Ls={forEach:Bi(0),map:Bi(1),filter:Bi(2),some:Bi(3),every:Bi(4),find:Bi(5),findIndex:Bi(6),filterReject:Bi(7)},qO=function(e,t){var n=[][e];return!!n&&je(function(){n.call(null,t||function(){throw 1},1)})},jH=Ls.forEach,y1=qO("forEach")?[].forEach:function(e){return jH(this,e,arguments.length>1?arguments[1]:void 0)},GO=function(e){if(e&&e.forEach!==y1)try{cr(e,"forEach",y1)}catch{e.forEach=y1}};for(var b1 in Ah)Ah[b1]&&GO(U[b1]&&U[b1].prototype);GO(HO);var l8={}.propertyIsEnumerable,c8=Object.getOwnPropertyDescriptor,LH=c8&&!l8.call({1:2},1)?function(e){var t=c8(this,e);return!!t&&t.enumerable}:l8,KO={f:LH},To=function(e){return h0(Zn(e))},f8=Object.getOwnPropertyDescriptor,Yf={f:Nt?f8:function(e,t){if(e=To(e),t=aw(t),LO)try{return f8(e,t)}catch{}if(vt(e,t))return c0(!Be(KO.f,e,t),e[t])}},MH=Math.max,zH=Math.min,ws=function(e,t){var n=Kf(e);return n<0?MH(n+t,0):zH(n,t)},d8=function(e){return function(t,n,r){var i,o=To(t),a=Ja(o),u=ws(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}},YO={includes:d8(!0),indexOf:d8(!1)},HH=YO.indexOf,p8=re([].push),XO=function(e,t){var n,r=To(e),i=0,o=[];for(n in r)!vt(d0,n)&&vt(r,n)&&p8(o,n);for(;t.length>i;)vt(r,n=t[i++])&&(~HH(o,n)||p8(o,n));return o},Bh=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],UH=Bh.concat("length","prototype"),nf={f:Object.getOwnPropertyNames||function(e){return XO(e,UH)}},JO={f:Object.getOwnPropertySymbols},VH=re([].concat),WH=Xa("Reflect","ownKeys")||function(e){var t=nf.f(mt(e)),n=JO.f;return n?VH(t,n(e)):t},qH=function(e,t){for(var n=WH(t),r=mr.f,i=Yf.f,o=0;o<n.length;o++){var a=n[o];vt(e,a)||r(e,a,i(t,a))}},GH=/#|\.prototype\./,Xf=function(e,t){var n=YH[KH(e)];return n==JH||n!=XH&&(Ue(t)?je(t):!!t)},KH=Xf.normalize=function(e){return String(e).replace(GH,".").toLowerCase()},YH=Xf.data={},XH=Xf.NATIVE="N",JH=Xf.POLYFILL="P",rf=Xf,ZH=Yf.f,at=function(e,t){var n,r,i,o,a,u=e.target,s=e.global,l=e.stat;if(n=s?U:l?U[u]||tw(u,{}):(U[u]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=ZH(n,r))&&a.value:n[r],!rf(s?r:u+(l?".":"#")+r,e.forced)&&i!==void 0){if(typeof o==typeof i)continue;qH(o,i)}(e.sham||i&&i.sham)&&cr(o,"sham",!0),hn(n,r,o,e)}},Zu=Object.keys||function(e){return XO(e,Bh)},QH=je(function(){Zu(1)});/*!
|
||
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
||
*
|
||
* Copyright (c) 2014-2017, Jon Schlinkert.
|
||
* Released under the MIT License.
|
||
*/function h8(e){return Object.prototype.toString.call(e)==="[object Object]"}at({target:"Object",stat:!0,forced:QH},{keys:function(e){return Zu(Fo(e))}});var eU={isHistory(e){return h8(t=e)!==!1&&((n=t.constructor)===void 0||h8(r=n.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(e.redos.length===0||Xi.isOperationList(e.redos[0]))&&(e.undos.length===0||Xi.isOperationList(e.undos[0]));var t,n,r}},$1=new WeakMap,w1=new WeakMap,qu={isHistoryEditor:e=>eU.isHistory(e.history)&&E.isEditor(e),isMerging:e=>w1.get(e),isSaving:e=>$1.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=qu.isMerging(e);w1.set(e,!1),t(),w1.set(e,n)},withoutSaving(e,t){var n=qu.isSaving(e);$1.set(e,!1),t(),$1.set(e,n)}},tU=(e,t)=>e.type==="set_selection"||!(!t||e.type!=="insert_text"||t.type!=="insert_text"||e.offset!==t.offset+t.text.length||!_.equals(e.path,t.path))||!(!t||e.type!=="remove_text"||t.type!=="remove_text"||e.offset+e.text.length!==t.offset||!_.equals(e.path,t.path)),nU=(e,t)=>e.type!=="set_selection"||e.properties!=null&&e.newProperties!=null,rU=(e,t)=>!(!t||e.type!=="set_selection"||t.type!=="set_selection"),iU=e=>e.type!=="set_selection",oU=U.String,Ge=function(e){if(p0(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return oU(e)},lw=function(){var e=mt(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},aU=Rs.PROPER,Q2=RegExp.prototype,ZO=Q2.toString,uU=re(lw),sU=je(function(){return ZO.call({source:"a",flags:"b"})!="/a/b"}),lU=aU&&ZO.name!="toString";(sU||lU)&&hn(RegExp.prototype,"toString",function(){var e=mt(this),t=Ge(e.source),n=e.flags;return"/"+t+"/"+Ge(n===void 0&&Na(Q2,e)&&!("flags"in Q2)?uU(e):n)},{unsafe:!0});var Wd,cU=Nt?Object.defineProperties:function(e,t){mt(e);for(var n,r=To(t),i=Zu(t),o=i.length,a=0;o>a;)mr.f(e,n=i[a++],r[n]);return e},eb=Xa("document","documentElement"),QO=uw("IE_PROTO"),E1=function(){},eB=function(e){return"<script>"+e+"<\/script>"},g8=function(e){e.write(eB("")),e.close();var t=e.parentWindow.Object;return e=null,t},Hp=function(){try{Wd=new ActiveXObject("htmlfile")}catch{}var e,t;Hp=typeof document<"u"?document.domain&&Wd?g8(Wd):((t=tf("iframe")).style.display="none",eb.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(eB("document.F=Object")),e.close(),e.F):g8(Wd);for(var n=Bh.length;n--;)delete Hp.prototype[Bh[n]];return Hp()};d0[QO]=!0;var v0=Object.create||function(e,t){var n;return e!==null?(E1.prototype=mt(e),n=new E1,E1.prototype=null,n[QO]=e):n=Hp(),t===void 0?n:cU(n,t)},tb=st("unscopables"),nb=Array.prototype;nb[tb]==null&&mr.f(nb,tb,{configurable:!0,value:v0(null)});var Tc=function(e){nb[tb][e]=!0},fU=YO.includes;at({target:"Array",proto:!0},{includes:function(e){return fU(this,e,arguments.length>1?arguments[1]:void 0)}}),Tc("includes");var dU=st("match"),cw=function(e){var t;return Ye(e)&&((t=e[dU])!==void 0?!!t:fr(e)=="RegExp")},pU=U.TypeError,fw=function(e){if(cw(e))throw pU("The method doesn't accept regular expressions");return e},hU=st("match"),dw=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[hU]=!1,"/./"[e](t)}catch{}}return!1},gU=re("".indexOf);at({target:"String",proto:!0,forced:!dw("includes")},{includes:function(e){return!!~gU(Ge(Zn(this)),Ge(fw(e)),arguments.length>1?arguments[1]:void 0)}});var v8,vU=/"/g,mU=re("".replace);at({target:"String",proto:!0,forced:(v8="anchor",je(function(){var e=""[v8]('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t="a",n="name",r=e,i=Ge(Zn(this)),o="<"+t,n!==""&&(o+=" "+n+'="'+mU(Ge(r),vU,""")+'"'),o+">"+i+"</"+t+">";var t,n,r,i,o}});var rb=function(e,t,n){var r,i;mt(e);try{if(!(r=Ia(e,"return"))){if(t==="throw")throw n;return n}r=Be(r,e)}catch(o){i=!0,r=o}if(t==="throw")throw n;if(i)throw r;return mt(r),n},yU=function(e,t,n,r){try{return r?t(mt(n)[0],n[1]):t(n)}catch(i){rb(e,"throw",i)}},Es={},bU=st("iterator"),$U=Array.prototype,tB=function(e){return e!==void 0&&(Es.Array===e||$U[bU]===e)},of=function(e,t,n){var r=aw(t);r in e?mr.f(e,r,c0(0,n)):e[r]=n},wU=st("iterator"),pw=function(e){if(e!=null)return Ia(e,wU)||Ia(e,"@@iterator")||Es[p0(e)]},EU=U.TypeError,nB=function(e,t){var n=arguments.length<2?pw(e):t;if($o(n))return mt(Be(n,e));throw EU(l0(e)+" is not iterable")},m8=U.Array,rB=st("iterator"),iB=!1;try{var CU=0,y8={next:function(){return{done:!!CU++}},return:function(){iB=!0}};y8[rB]=function(){return this},Array.from(y8,function(){throw 2})}catch{}var hw=function(e,t){if(!t&&!iB)return!1;var n=!1;try{var r={};r[rB]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},DU=!hw(function(e){Array.from(e)});at({target:"Array",stat:!0,forced:DU},{from:function(e){var t=Fo(e),n=g0(this),r=arguments.length,i=r>1?arguments[1]:void 0,o=i!==void 0;o&&(i=Ra(i,r>2?arguments[2]:void 0));var a,u,s,l,c,f,d=pw(t),p=0;if(!d||this==m8&&tB(d))for(a=Ja(t),u=n?new this(a):m8(a);a>p;p++)f=o?i(t[p],p):t[p],of(u,p,f);else for(c=(l=nB(t,d)).next,u=n?new this:[];!(s=Be(c,l)).done;p++)f=o?yU(l,i,[s.value,p],!0):s.value,of(u,p,f);return u.length=p,u}});var ga,b8,$8,xU=re("".charAt),w8=re("".charCodeAt),SU=re("".slice),E8=function(e){return function(t,n){var r,i,o=Ge(Zn(t)),a=Kf(n),u=o.length;return a<0||a>=u?e?"":void 0:(r=w8(o,a))<55296||r>56319||a+1===u||(i=w8(o,a+1))<56320||i>57343?e?xU(o,a):r:e?SU(o,a,a+2):i-56320+(r-55296<<10)+65536}},oB={codeAt:E8(!1),charAt:E8(!0)},AU=!je(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),C8=uw("IE_PROTO"),ib=U.Object,OU=ib.prototype,Fh=AU?ib.getPrototypeOf:function(e){var t=Fo(e);if(vt(t,C8))return t[C8];var n=t.constructor;return Ue(n)&&t instanceof n?n.prototype:t instanceof ib?OU:null},ob=st("iterator"),aB=!1;[].keys&&("next"in($8=[].keys())?(b8=Fh(Fh($8)))!==Object.prototype&&(ga=b8):aB=!0);var BU=ga==null||je(function(){var e={};return ga[ob].call(e)!==e});BU&&(ga={}),Ue(ga[ob])||hn(ga,ob,function(){return this});var gw={IteratorPrototype:ga,BUGGY_SAFARI_ITERATORS:aB},FU=mr.f,D8=st("toStringTag"),Th=function(e,t,n){e&&!vt(e=n?e:e.prototype,D8)&&FU(e,D8,{configurable:!0,value:t})},TU=gw.IteratorPrototype,kU=function(){return this},_U=U.String,PU=U.TypeError,Cs=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=re(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,i){return mt(r),function(o){if(typeof o=="object"||Ue(o))return o;throw PU("Can't set "+_U(o)+" as a prototype")}(i),t?e(r,i):r.__proto__=i,r}}():void 0),NU=Rs.PROPER,IU=Rs.CONFIGURABLE,x8=gw.IteratorPrototype,qd=gw.BUGGY_SAFARI_ITERATORS,Dl=st("iterator"),RU=function(){return this},vw=function(e,t,n,r,i,o,a){(function(y,h,$,w){var C=h+" Iterator";y.prototype=v0(TU,{next:c0(+!w,$)}),Th(y,C,!1),Es[C]=kU})(n,t,r);var u,s,l,c=function(y){if(y===i&&m)return m;if(!qd&&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,v=p[Dl]||p["@@iterator"]||i&&p[i],m=!qd&&v||c(i),g=t=="Array"&&p.entries||v;if(g&&(u=Fh(g.call(new e)))!==Object.prototype&&u.next&&(Fh(u)!==x8&&(Cs?Cs(u,x8):Ue(u[Dl])||hn(u,Dl,RU)),Th(u,f,!0)),NU&&i=="values"&&v&&v.name!=="values"&&(IU?cr(p,"name","values"):(d=!0,m=function(){return Be(v,this)})),i)if(s={values:c("values"),keys:o?m:c("keys"),entries:c("entries")},a)for(l in s)(qd||d||!(l in p))&&hn(p,l,s[l]);else at({target:t,proto:!0,forced:qd||d},s);return p[Dl]!==m&&hn(p,Dl,m,{name:i}),Es[t]=m,s},jU=oB.charAt,LU=tn.set,MU=tn.getterFor("String Iterator");vw(String,"String",function(e){LU(this,{type:"String Iterator",string:Ge(e),index:0})},function(){var e,t=MU(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=jU(n,r),t.index+=e.length,{value:e,done:!1})});var C1,zU=Yf.f,S8=re("".endsWith),HU=re("".slice),UU=Math.min,uB=dw("endsWith"),VU=!(uB||(C1=zU(String.prototype,"endsWith"),!C1||C1.writable));at({target:"String",proto:!0,forced:!VU&&!uB},{endsWith:function(e){var t=Ge(Zn(this));fw(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,i=n===void 0?r:UU(js(n),r),o=Ge(e);return S8?S8(t,o,i):HU(t,i-o.length,i)===o}});var WU=re([].join),qU=h0!=Object,GU=qO("join",",");at({target:"Array",proto:!0,forced:qU||!GU},{join:function(e){return WU(To(this),e===void 0?",":e)}});var KU=st("species"),m0=function(e){return ef>=51||!je(function(){var t=[];return(t.constructor={})[KU]=function(){return{foo:1}},t[e](Boolean).foo!==1})},YU=Ls.map,XU=m0("map");at({target:"Array",proto:!0,forced:!XU},{map:function(e){return YU(this,e,arguments.length>1?arguments[1]:void 0)}});var mw=U.RegExp,ab=je(function(){var e=mw("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),JU=ab||je(function(){return!mw("a","y").sticky}),y0={BROKEN_CARET:ab||je(function(){var e=mw("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:JU,UNSUPPORTED_Y:ab},ZU=U.RegExp,yw=je(function(){var e=ZU(".","s");return!(e.dotAll&&e.exec(`
|
||
`)&&e.flags==="s")}),QU=U.RegExp,bw=je(function(){var e=QU("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),eV=tn.get,tV=nw("native-string-replace",String.prototype.replace),kh=RegExp.prototype.exec,ub=kh,nV=re("".charAt),rV=re("".indexOf),iV=re("".replace),D1=re("".slice),x1=function(){var e=/a/,t=/b*/g;return Be(kh,e,"a"),Be(kh,t,"a"),e.lastIndex!==0||t.lastIndex!==0}(),A8=y0.BROKEN_CARET,S1=/()??/.exec("")[1]!==void 0;(x1||S1||A8||yw||bw)&&(ub=function(e){var t,n,r,i,o,a,u,s=this,l=eV(s),c=Ge(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Be(ub,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=A8&&s.sticky,v=Be(lw,s),m=s.source,g=0,y=c;if(p&&(v=iV(v,"y",""),rV(v,"g")===-1&&(v+="g"),y=D1(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&nV(c,s.lastIndex-1)!==`
|
||
`)&&(m="(?: "+m+")",y=" "+y,g++),n=new RegExp("^(?:"+m+")",v)),S1&&(n=new RegExp("^"+m+"$(?!\\s)",v)),x1&&(r=s.lastIndex),i=Be(kh,p?n:s,y),p?i?(i.input=D1(i.input,g),i[0]=D1(i[0],g),i.index=s.lastIndex,s.lastIndex+=i[0].length):s.lastIndex=0:x1&&i&&(s.lastIndex=s.global?i.index+i[0].length:r),S1&&i&&i.length>1&&Be(tV,i[0],n,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(i[o]=void 0)}),i&&d)for(i.groups=a=v0(null),o=0;o<d.length;o++)a[(u=d[o])[0]]=i[u[1]];return i});var af=ub;at({target:"RegExp",proto:!0,forced:/./.exec!==af},{exec:af});var $w=Function.prototype,O8=$w.apply,oV=$w.bind,B8=$w.call,ww=typeof Reflect=="object"&&Reflect.apply||(oV?B8.bind(O8):function(){return B8.apply(O8,arguments)}),aV=st("species"),A1=RegExp.prototype,Ew=function(e,t,n,r){var i=st(e),o=!je(function(){var l={};return l[i]=function(){return 7},""[e](l)!=7}),a=o&&!je(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[aV]=function(){return c},c.flags="",c[i]=/./[i]),c.exec=function(){return l=!0,null},c[i](""),!l});if(!o||!a||n){var u=re(/./[i]),s=t(i,""[e],function(l,c,f,d,p){var v=re(l),m=c.exec;return m===af||m===A1.exec?o&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});hn(String.prototype,e,s[0]),hn(A1,i,s[1])}r&&cr(A1[i],"sham",!0)},uV=oB.charAt,Cw=function(e,t,n){return t+(n?uV(e,t).length:1)},sV=Math.floor,O1=re("".charAt),lV=re("".replace),B1=re("".slice),cV=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,fV=/\$([$&'`]|\d{1,2})/g,dV=function(e,t,n,r,i,o){var a=n+e.length,u=r.length,s=fV;return i!==void 0&&(i=Fo(i),s=cV),lV(o,s,function(l,c){var f;switch(O1(c,0)){case"$":return"$";case"&":return e;case"`":return B1(t,0,n);case"'":return B1(t,a);case"<":f=i[B1(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=sV(d/10);return p===0?l:p<=u?r[p-1]===void 0?O1(c,1):r[p-1]+O1(c,1):l}f=r[d-1]}return f===void 0?"":f})},pV=U.TypeError,uf=function(e,t){var n=e.exec;if(Ue(n)){var r=Be(n,e,t);return r!==null&&mt(r),r}if(fr(e)==="RegExp")return Be(af,e,t);throw pV("RegExp#exec called on incompatible receiver")},sb=st("replace"),hV=Math.max,gV=Math.min,vV=re([].concat),F1=re([].push),F8=re("".indexOf),T8=re("".slice),mV="a".replace(/./,"$0")==="$0",k8=!!/./[sb]&&/./[sb]("a","$0")==="";Ew("replace",function(e,t,n){var r=k8?"$":"$0";return[function(i,o){var a=Zn(this),u=i==null?void 0:Ia(i,sb);return u?Be(u,i,a,o):Be(t,Ge(a),i,o)},function(i,o){var a=mt(this),u=Ge(i);if(typeof o=="string"&&F8(o,r)===-1&&F8(o,"$<")===-1){var s=n(t,a,u,o);if(s.done)return s.value}var l=Ue(o);l||(o=Ge(o));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=uf(a,u);if(p===null||(F1(d,p),!c))break;Ge(p[0])===""&&(a.lastIndex=Cw(u,js(a.lastIndex),f))}for(var v,m="",g=0,y=0;y<d.length;y++){for(var h=Ge((p=d[y])[0]),$=hV(gV(Kf(p.index),u.length),0),w=[],C=1;C<p.length;C++)F1(w,(v=p[C])===void 0?v:String(v));var D=p.groups;if(l){var A=vV([h],w,$,u);D!==void 0&&F1(A,D);var I=Ge(ww(o,void 0,A))}else I=dV(h,u,$,w,D,o);$>=g&&(m+=T8(u,g,$)+I,g=$+h.length)}return m+T8(u,g)}]},!!je(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!mV||k8);/*! *****************************************************************************
|
||
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 lb=function(e,t){return lb=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])},lb(e,t)};function Ms(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}lb(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Gn=function(){return Gn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Gn.apply(this,arguments)};function Un(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Oe(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 cb(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}var yV=0,_8=function(){this.id=""+yV++},bV=tn.set,$V=tn.getterFor("Array Iterator"),Ec=vw(Array,"Array",function(e,t){bV(this,{type:"Array Iterator",target:To(e),index:0,kind:t})},function(){var e=$V(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");Es.Arguments=Es.Array,Tc("keys"),Tc("values"),Tc("entries");var Ds=function(e,t,n){for(var r in t)hn(e,r,t[r],n);return e},wV=U.Array,EV=Math.max,fb=function(e,t,n){for(var r=Ja(e),i=ws(t,r),o=ws(n===void 0?r:n,r),a=wV(EV(o-i,0)),u=0;i<o;i++,u++)of(a,u,e[i]);return a.length=u,a},P8=nf.f,N8=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],CV={f:function(e){return N8&&fr(e)=="Window"?function(t){try{return P8(t)}catch{return fb(N8)}}(e):P8(To(e))}},I8=je(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),Gd=Object.isExtensible,fa=je(function(){Gd(1)})||I8?function(e){return!!Ye(e)&&(!I8||fr(e)!="ArrayBuffer")&&(!Gd||Gd(e))}:Gd,DV=!je(function(){return Object.isExtensible(Object.preventExtensions({}))}),b0=Gf(function(e){var t=mr.f,n=!1,r=rw("meta"),i=0,o=function(u){t(u,r,{value:{objectID:"O"+i++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var u=nf.f,s=re([].splice),l={};l[r]=1,u(l).length&&(nf.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===r){s(f,d,1);break}return f},at({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:CV.f}))},fastKey:function(u,s){if(!Ye(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!vt(u,r)){if(!fa(u))return"F";if(!s)return"E";o(u)}return u[r].objectID},getWeakData:function(u,s){if(!vt(u,r)){if(!fa(u))return!0;if(!s)return!1;o(u)}return u[r].weakData},onFreeze:function(u){return DV&&n&&fa(u)&&!vt(u,r)&&o(u),u}};d0[r]=!0}),xV=U.TypeError,Up=function(e,t){this.stopped=e,this.result=t},R8=Up.prototype,sf=function(e,t,n){var r,i,o,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),v=Ra(t,c),m=function(y){return r&&rb(r,"normal",y),new Up(!0,y)},g=function(y){return f?(mt(y),p?v(y[0],y[1],m):v(y[0],y[1])):p?v(y,m):v(y)};if(d)r=e;else{if(!(i=pw(e)))throw xV(l0(e)+" is not iterable");if(tB(i)){for(o=0,a=Ja(e);a>o;o++)if((u=g(e[o]))&&Na(R8,u))return u;return new Up(!1)}r=nB(e,i)}for(s=r.next;!(l=Be(s,r)).done;){try{u=g(l.value)}catch(y){rb(r,"throw",y)}if(typeof u=="object"&&u&&Na(R8,u))return u}return new Up(!1)},SV=U.TypeError,$0=function(e,t){if(Na(t,e))return e;throw SV("Incorrect invocation")},sB=function(e,t,n){var r,i;return Cs&&Ue(r=t.constructor)&&r!==n&&Ye(i=r.prototype)&&i!==n.prototype&&Cs(e,i),e},lB=function(e,t,n){var r=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=r?"set":"add",a=U[e],u=a&&a.prototype,s=a,l={},c=function(g){var y=re(u[g]);hn(u,g,g=="add"?function(h){return y(this,h===0?0:h),this}:g=="delete"?function(h){return!(i&&!Ye(h))&&y(this,h===0?0:h)}:g=="get"?function(h){return i&&!Ye(h)?void 0:y(this,h===0?0:h)}:g=="has"?function(h){return!(i&&!Ye(h))&&y(this,h===0?0:h)}:function(h,$){return y(this,h===0?0:h,$),this})};if(rf(e,!Ue(a)||!(i||u.forEach&&!je(function(){new a().entries().next()}))))s=n.getConstructor(t,e,r,o),b0.enable();else if(rf(e,!0)){var f=new s,d=f[o](i?{}:-0,1)!=f,p=je(function(){f.has(1)}),v=hw(function(g){new a(g)}),m=!i&&je(function(){for(var g=new a,y=5;y--;)g[o](y,y);return!g.has(-0)});v||((s=t(function(g,y){$0(g,u);var h=sB(new a,g,s);return y!=null&&sf(y,h[o],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(p||m)&&(c("delete"),c("has"),r&&c("get")),(m||d)&&c(o),i&&u.clear&&delete u.clear}return l[e]=s,at({global:!0,forced:s!=a},l),Th(s,e),i||n.setStrong(s,e,r),s},Kd=b0.getWeakData,AV=tn.set,OV=tn.getterFor,BV=Ls.find,FV=Ls.findIndex,TV=re([].splice),kV=0,Yd=function(e){return e.frozen||(e.frozen=new cB)},cB=function(){this.entries=[]},T1=function(e,t){return BV(e.entries,function(n){return n[0]===t})};cB.prototype={get:function(e){var t=T1(this,e);if(t)return t[1]},has:function(e){return!!T1(this,e)},set:function(e,t){var n=T1(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=FV(this.entries,function(n){return n[0]===e});return~t&&TV(this.entries,t,1),!!~t}};var xl,fB={getConstructor:function(e,t,n,r){var i=e(function(s,l){$0(s,o),AV(s,{type:t,id:kV++,frozen:void 0}),l!=null&&sf(l,s[r],{that:s,AS_ENTRIES:n})}),o=i.prototype,a=OV(t),u=function(s,l,c){var f=a(s),d=Kd(mt(l),!0);return d===!0?Yd(f).set(l,c):d[f.id]=c,s};return Ds(o,{delete:function(s){var l=a(this);if(!Ye(s))return!1;var c=Kd(s);return c===!0?Yd(l).delete(s):c&&vt(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!Ye(s))return!1;var c=Kd(s);return c===!0?Yd(l).has(s):c&&vt(c,l.id)}}),Ds(o,n?{get:function(s){var l=a(this);if(Ye(s)){var c=Kd(s);return c===!0?Yd(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}},Xd=tn.enforce,_V=!U.ActiveXObject&&"ActiveXObject"in U,dB=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},PV=lB("WeakMap",dB,fB);if(MO&&_V){xl=fB.getConstructor(dB,"WeakMap",!0),b0.enable();var Sl=PV.prototype,j8=re(Sl.delete),Jd=re(Sl.has),L8=re(Sl.get),M8=re(Sl.set);Ds(Sl,{delete:function(e){if(Ye(e)&&!fa(e)){var t=Xd(this);return t.frozen||(t.frozen=new xl),j8(this,e)||t.frozen.delete(e)}return j8(this,e)},has:function(e){if(Ye(e)&&!fa(e)){var t=Xd(this);return t.frozen||(t.frozen=new xl),Jd(this,e)||t.frozen.has(e)}return Jd(this,e)},get:function(e){if(Ye(e)&&!fa(e)){var t=Xd(this);return t.frozen||(t.frozen=new xl),Jd(this,e)?L8(this,e):t.frozen.get(e)}return L8(this,e)},set:function(e,t){if(Ye(e)&&!fa(e)){var n=Xd(this);n.frozen||(n.frozen=new xl),Jd(this,e)?M8(this,e,t):n.frozen.set(e,t)}else M8(this,e,t);return this}})}var k1=st("iterator"),z8=st("toStringTag"),_1=Ec.values,pB=function(e,t){if(e){if(e[k1]!==_1)try{cr(e,k1,_1)}catch{e[k1]=_1}if(e[z8]||cr(e,z8,t),Ah[t]){for(var n in Ec)if(e[n]!==Ec[n])try{cr(e,n,Ec[n])}catch{e[n]=Ec[n]}}}};for(var P1 in Ah)pB(U[P1]&&U[P1].prototype,P1);pB(HO,"DOMTokenList");var db=new WeakMap,pb=new WeakMap,Dw=new WeakMap,w0=new WeakMap,hb=new WeakMap,_h=new WeakMap,xw=new WeakMap,gb=new WeakMap,Vp=new WeakMap,H8=new WeakMap,U8=new WeakMap,V8=new WeakMap,W8=new WeakMap,lf=new WeakMap,xs=new WeakMap,Sw=new WeakMap,E0=new WeakMap,Aw=new WeakMap,C0=new WeakMap,Wp=new WeakMap,hB=new WeakMap,va=new WeakMap,vb=new WeakMap,q8=new WeakMap,N1=new WeakMap,NV=Ls.find,G8=!0;"find"in[]&&Array(1).find(function(){G8=!1}),at({target:"Array",proto:!0,forced:G8},{find:function(e){return NV(this,e,arguments.length>1?arguments[1]:void 0)}}),Tc("find"),at({global:!0},{globalThis:U});const IV=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];yh&&(O.fn.css=yh),Ur&&(O.fn.append=Ur),fs&&(O.fn.addClass=fs),ds&&(O.fn.removeClass=ds),ps&&(O.fn.hasClass=ps),Hr&&(O.fn.on=Hr),bo&&(O.fn.focus=bo),Mr&&(O.fn.attr=Mr),hh&&(O.fn.removeAttr=hh),gs&&(O.fn.hide=gs),mh&&(O.fn.show=mh),c6&&(O.fn.offset=c6),gh&&(O.fn.width=gh),vh&&(O.fn.height=vh),wh&&(O.fn.parent=wh),Eh&&(O.fn.parents=Eh),d6&&(O.fn.is=d6),hs&&(O.fn.dataset=hs),zr&&(O.fn.val=zr),$h&&(O.fn.text=$h),yo&&(O.fn.html=yo),ms&&(O.fn.children=ms),ys&&(O.fn.remove=ys),vs&&(O.fn.find=vs),bh&&(O.fn.each=bh),bs&&(O.fn.empty=bs);var to,Ow=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},ir=function(e){return ja(e)&&e.nodeType===1},ja=function(e){var t=Ow(e);return!!t&&e instanceof t.Node},K8=function(e){var t=e&&e.anchorNode&&Ow(e.anchorNode);return!!t&&e instanceof t.Selection},gB=function(e){return ja(e)&&e.nodeType===3},Bw=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},vB=function(e,t,n){for(var r,i=e.childNodes,o=i[t],a=t,u=!1,s=!1;(ja(r=o)&&r.nodeType===8||ir(o)&&o.childNodes.length===0||ir(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]},RV=function(e,t,n){return Oe(vB(e,t,n),1)[0]},jV=function e(t){var n,r,i="";if(gB(t)&&t.nodeValue)return t.nodeValue;if(ir(t)){try{for(var o=Un(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 mB(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||mB(i,t)}}function Y8(e){if(e.length===0)return"";var t=e[0];return t.nodeType!==to.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"})(to||(to={})),globalThis.navigator!==void 0&&globalThis.window!==void 0&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&globalThis.window.MSStream;var mb=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),kc=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent);var Al=typeof navigator<"u"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),LV=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),MV=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),yb=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent);typeof navigator<"u"&&/.*QQBrowser/.test(navigator.userAgent);var Ol=!MV&&!LV&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",S={getWindow:function(e){var t=hB.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=Wp.get(t);return n||(n=new _8,Wp.set(t,n)),n},setNewKey:function(e){var t=new _8;Wp.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var i=xs.get(r);if(i==null){if(E.isEditor(r))return n;break}var o=lf.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=S.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&n.getSelection!=null?n:t.ownerDocument},getParentNode:function(e,t){return xs.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&r!=null;){var i=S.getParentNode(e,r);if(i==null)break;n.push(i),r=i}return n},getTopNode:function(e,t){var n=[S.findPath(e,t)[0]];return W.get(e,n)},toDOMNode:function(e,t){var n;if(E.isEditor(t))n=Sw.get(e);else{var r=S.findKey(e,t);n=Aw.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=S.toDOMNode(e,e);try{r=ir(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=R.isBackward(t),o=S.toDOMPoint(e,n),a=R.isCollapsed(t)?o:S.toDOMPoint(e,r),u=S.getWindow(e).document.createRange(),s=Oe(i?a:o,2),l=s[0],c=s[1],f=Oe(i?o:a,2),d=f[0],p=f[1],v=!!(ir(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),m=!!(ir(d)?d:d.parentElement).getAttribute("data-slate-zero-width");return u.setStart(l,v?1:c),u.setEnd(d,m?1:p),u},toDOMPoint:function(e,t){var n,r,i,o=Oe(E.node(e,t.path),1)[0],a=S.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=Un(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,v=f.getAttribute("data-slate-length"),m=s+(v==null?p:parseInt(v,10));if(t.offset<=m){i=[d,Math.min(p,Math.max(0,t.offset-s))];break}s=m}}}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=ir(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?E0.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=S.toSlateNode(e,t.target),u=S.findPath(e,a);if(E.isVoid(e,a)){var s=i.getBoundingClientRect(),l=e.isInline(a)?n-s.left<s.left+s.width-n:r-s.top<s.top+s.height-r,c=E.point(e,u,{edge:l?"start":"end"}),f=l?E.before(e,c):E.after(e,c);if(f)return E.range(e,f)}var d=this.getWindow(e).document;if(d.caretRangeFromPoint)o=d.caretRangeFromPoint(n,r);else{var p=d.caretPositionFromPoint(n,r);p&&((o=d.createRange()).setStart(p.offsetNode,p.offset),o.setEnd(p.offsetNode,p.offset))}if(!o)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);return S.toSlateRange(e,o,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(e,t,n){var r,i,o,a,u,s=n.exactMatch,l=n.suppressThrow;if((K8(t)?t.anchorNode:t.startContainer)&&(K8(t)?(r=t.anchorNode,i=t.anchorOffset,o=t.focusNode,a=t.focusOffset,u=yb&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(r=t.startContainer,i=t.startOffset,o=t.endContainer,a=t.endOffset,u=t.collapsed)),r==null||o==null||i==null||a==null)throw new Error("Cannot resolve a Slate range from DOM range: "+t);var c=S.toSlatePoint(e,[r,i],{exactMatch:s,suppressThrow:l});if(!c)return null;var f=u?c:S.toSlatePoint(e,[o,a],{exactMatch:s,suppressThrow:l});if(!f)return null;var d={anchor:c,focus:f};return R.isExpanded(d)&&R.isForward(d)&&ir(o)&&E.void(e,{at:d.focus,mode:"highest"})&&(d=E.unhangRange(e,d,{voids:!0})),d},toSlatePoint:function(e,t,n){var r,i=n.exactMatch,o=n.suppressThrow,a=Oe(i?t:function(h){var $,w=Oe(h,2),C=w[0],D=w[1];if(ir(C)&&C.childNodes.length){var A=D===C.childNodes.length,I=A?D-1:D;for(C=($=Oe(vB(C,I,A?"backward":"forward"),2))[0],A=(I=$[1])<D;ir(C)&&C.childNodes.length;){var M=A?C.childNodes.length-1:0;C=RV(C,M,A?"backward":"forward")}D=A&&C.textContent!=null?C.textContent.length:0}return[C,D]}(t),2),u=a[0],s=a[1],l=u.parentNode,c=null,f=0;if(l){var d=l.closest('[data-slate-void="true"]'),p=l.closest("[data-slate-leaf]"),v=null;if(p){c=p.closest('[data-slate-node="text"]');var m=S.getWindow(e).document.createRange();m.setStart(c,0),m.setEnd(u,s);var g=m.cloneContents();cb(cb([],Oe(u6(g.querySelectorAll("[data-slate-zero-width]")))),Oe(u6(g.querySelectorAll("[contenteditable=false]")))).forEach(function(h){h.parentNode.removeChild(h)}),f=g.textContent.length,v=c}else d&&((p=d.querySelector("[data-slate-leaf]"))?(c=p.closest('[data-slate-node="text"]'),f=(v=p).textContent.length,v.querySelectorAll("[data-slate-zero-width]").forEach(function(h){f-=h.textContent.length})):f=1);v&&f===v.textContent.length&&(l.hasAttribute("data-slate-zero-width")||kc&&((r=v.textContent)===null||r===void 0?void 0:r.endsWith(`
|
||
`)))&&f--}if(!c){if(o)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+t)}var y=S.toSlateNode(e,c);return{path:S.findPath(e,y),offset:f}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return E.hasPath(e,n.path)&&E.hasPath(e,r.path)},getNodeType:function(e){return te.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map(function(t){return W.string(t)}).join("")},getSelectedElems:function(e){var t,n,r=[],i=E.nodes(e,{universal:!0});try{for(var o=Un(i),a=o.next();!a.done;a=o.next()){var u=Oe(a.value,1)[0];te.isElement(u)&&r.push(u)}}catch(s){t={error:s}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r},getSelectedNodeByType:function(e,t){var n=this,r=Oe(E.nodes(e,{match:function(o){return n.checkNodeType(o,t)},universal:!0}),1),i=r[0];return i==null?null:i[0]},getSelectedTextNode:function(e){var t=Oe(E.nodes(e,{match:function(r){return X.isText(r)},universal:!0}),1),n=t[0];return n==null?null:n[0]},isNodeSelected:function(e,t){var n=Oe(E.nodes(e,{match:function(i){return i===t},universal:!0}),1),r=n[0];return r!=null&&Oe(r,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(E.isEnd(e,n.anchor,t)||E.isEnd(e,n.focus,t))},getTextarea:function(e){var t=db.get(e);if(t==null)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return w0.get(e)||null},getHoverbar:function(e){return _h.get(e)||null},normalizeContent:function(e){e.children.forEach(function(t,n){e.normalizeNode([t,[n]])})},getLeftLengthOfMaxLength:function(e){var t=e.getConfig(),n=t.maxLength,r=t.onMaxLength;if(typeof n!="number"||n<=0)return 1/0;var i=n-e.getText().replace(/\r|\n|(\r\n)/g,"").length;return i<=0&&r&&r(e),i},cleanExposedTexNodeInSelectionBlock:function(e){var t,n,r,i,o=S.getTextarea(e).$textArea,a=o==null?void 0:o[0].childNodes;if(a)try{for(var u=Un(Array.from(a)),s=u.next();!s.done;s=u.next()){var l=s.value;if(l.nodeType!==3)break;l.remove()}}catch(m){t={error:m}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}var c=E.nodes(e,{match:function(m){return!(!te.isElement(m)||e.isInline(m))},universal:!0});try{for(var f=Un(c),d=f.next();!d.done;d=f.next()){var p=d.value;if(p!=null){var v=p[0];mB(S.toDOMNode(e,v),function(m,g){var y=O(g);y.attr("data-slate-string")||y.attr("data-slate-zero-width")||g.removeChild(m)})}}}catch(m){r={error:m}}finally{try{d&&!d.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}},isLastNode:function(e,t){var n=e.children||[];return n[n.length-1]===t},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(e){var t,n,r=E.nodes(e,{match:function(u){return e.isVoid(u)}}),i=0;try{for(var o=Un(r),a=o.next();!a.done;a=o.next())a.value,i++}catch(u){t={error:u}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return i>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(t==null||R.isExpanded(t))return!1;var n=S.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=Oe(n,1)[0].children;return r.length===1&&r[0].text===""}},zV=1,yB={},cf={};function HV(e,t){var n=e.key,r=e.factory,i=e.config,o=Gn(Gn({},i),t||{});if(cf[n]!=null)throw new Error("Duplicated key '"+n+"' in menu items");cf[n]=r,function(a,u){u!=null&&(yB[a]=u)}(n,o)}var X8=st("species"),Fw=function(e){var t=Xa(e),n=mr.f;Nt&&t&&!t[X8]&&n(t,X8,{configurable:!0,get:function(){return this}})},UV=mr.f,J8=b0.fastKey,Z8=tn.set,I1=tn.getterFor,VV={getConstructor:function(e,t,n,r){var i=e(function(l,c){$0(l,o),Z8(l,{type:t,index:v0(null),first:void 0,last:void 0,size:0}),Nt||(l.size=0),c!=null&&sf(c,l[r],{that:l,AS_ENTRIES:n})}),o=i.prototype,a=I1(t),u=function(l,c,f){var d,p,v=a(l),m=s(l,c);return m?m.value=f:(v.last=m={index:p=J8(c,!0),key:c,value:f,previous:d=v.last,next:void 0,removed:!1},v.first||(v.first=m),d&&(d.next=m),Nt?v.size++:l.size++,p!=="F"&&(v.index[p]=m)),l},s=function(l,c){var f,d=a(l),p=J8(c);if(p!=="F")return d.index[p];for(f=d.first;f;f=f.next)if(f.key==c)return f};return Ds(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,Nt?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,v=d.previous;delete f.index[d.index],d.removed=!0,v&&(v.next=p),p&&(p.previous=v),f.first==d&&(f.first=p),f.last==d&&(f.last=v),Nt?f.size--:c.size--}return!!d},forEach:function(l){for(var c,f=a(this),d=Ra(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)}}),Ds(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)}}),Nt&&UV(o,"size",{get:function(){return a(this).size}}),i},setStrong:function(e,t,n){var r=t+" Iterator",i=I1(t),o=I1(r);vw(e,t,function(a,u){Z8(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),Fw(t)}};lB("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},VV);var WV=Ls.filter,qV=m0("filter");at({target:"Array",proto:!0,forced:!qV},{filter:function(e){return WV(this,e,arguments.length>1?arguments[1]:void 0)}});var bb=`
|
||
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,Q8=re("".replace),Ph="["+bb+"]",GV=RegExp("^"+Ph+Ph+"*"),KV=RegExp(Ph+Ph+"*$"),R1=function(e){return function(t){var n=Ge(Zn(t));return 1&e&&(n=Q8(n,GV,"")),2&e&&(n=Q8(n,KV,"")),n}},YV={start:R1(1),end:R1(2),trim:R1(3)},XV=Rs.PROPER,JV=YV.trim;at({target:"String",proto:!0,forced:function(e){return je(function(){return!!bb[e]()||"\u200B\x85\u180E"[e]()!=="\u200B\x85\u180E"||XV&&bb[e].name!==e})}("trim")},{trim:function(){return JV(this)}});var Tw=[];function ZV(e){Tw.push(e)}var bB={};function QV(e){var t=e.type,n=e.elemToHtml;bB[t||""]=n}function eW(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}function tW(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(c){return PB(c,t)}).join(""));var s=function(c){return bB[c]||eW}(r),l=s(e,u,t);return a||Tw.forEach(function(c){return l=c(e,l)}),l}var ff,hu,eC,j1,Nh=U.Promise,nW=U.TypeError,rW=st("species"),$B=function(e,t){var n,r=mt(e).constructor;return r===void 0||(n=mt(r)[rW])==null?t:function(i){if(g0(i))return i;throw nW(l0(i)+" is not a constructor")}(n)},wB=re([].slice),EB=/(?:ipad|iphone|ipod).*applewebkit/i.test(Ju),no=fr(U.process)=="process",$b=U.setImmediate,wb=U.clearImmediate,iW=U.process,L1=U.Dispatch,oW=U.Function,tC=U.MessageChannel,aW=U.String,M1=0,_c={};try{ff=U.location}catch{}var kw=function(e){if(vt(_c,e)){var t=_c[e];delete _c[e],t()}},z1=function(e){return function(){kw(e)}},nC=function(e){kw(e.data)},rC=function(e){U.postMessage(aW(e),ff.protocol+"//"+ff.host)};$b&&wb||($b=function(e){var t=wB(arguments,1);return _c[++M1]=function(){ww(Ue(e)?e:oW(e),void 0,t)},hu(M1),M1},wb=function(e){delete _c[e]},no?hu=function(e){iW.nextTick(z1(e))}:L1&&L1.now?hu=function(e){L1.now(z1(e))}:tC&&!EB?(j1=(eC=new tC).port2,eC.port1.onmessage=nC,hu=Ra(j1.postMessage,j1)):U.addEventListener&&Ue(U.postMessage)&&!U.importScripts&&ff&&ff.protocol!=="file:"&&!je(rC)?(hu=rC,U.addEventListener("message",nC,!1)):hu="onreadystatechange"in tf("script")?function(e){eb.appendChild(tf("script")).onreadystatechange=function(){eb.removeChild(this),kw(e)}}:function(e){setTimeout(z1(e),0)});var Bl,ua,Pc,Mu,H1,U1,V1,iC,CB={set:$b,clear:wb},uW=/ipad|iphone|ipod/i.test(Ju)&&U.Pebble!==void 0,sW=/web0s(?!.*chrome)/i.test(Ju),lW=Yf.f,W1=CB.set,oC=U.MutationObserver||U.WebKitMutationObserver,aC=U.document,uC=U.process,Zd=U.Promise,sC=lW(U,"queueMicrotask"),DB=sC&&sC.value;DB||(Bl=function(){var e,t;for(no&&(e=uC.domain)&&e.exit();ua;){t=ua.fn,ua=ua.next;try{t()}catch(n){throw ua?Mu():Pc=void 0,n}}Pc=void 0,e&&e.enter()},EB||no||sW||!oC||!aC?!uW&&Zd&&Zd.resolve?((V1=Zd.resolve(void 0)).constructor=Zd,iC=Ra(V1.then,V1),Mu=function(){iC(Bl)}):no?Mu=function(){uC.nextTick(Bl)}:(W1=Ra(W1,U),Mu=function(){W1(Bl)}):(H1=!0,U1=aC.createTextNode(""),new oC(Bl).observe(U1,{characterData:!0}),Mu=function(){U1.data=H1=!H1}));var q1,lC,xB,cC,SB=DB||function(e){var t={fn:e,next:void 0};Pc&&(Pc.next=t),ua||(ua=t,Mu()),Pc=t},cW=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=$o(t),this.reject=$o(n)},_w={f:function(e){return new cW(e)}},Eb=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},fW=typeof window=="object",AB=CB.set,dW=st("species"),Or="Promise",fC=tn.getterFor(Or),pW=tn.set,hW=tn.getterFor(Or),na=Nh&&Nh.prototype,Pr=Nh,Fl=na,OB=U.TypeError,Cb=U.document,Pw=U.process,Qu=_w.f,gW=Qu,vW=!!(Cb&&Cb.createEvent&&U.dispatchEvent),BB=Ue(U.PromiseRejectionEvent),FB=!1,Nc=rf(Or,function(){var e=f0(Pr),t=e!==String(Pr);if(!t&&ef===66)return!0;if(ef>=51&&/native code/.test(e))return!1;var n=new Pr(function(i){i(1)}),r=function(i){i(function(){},function(){})};return(n.constructor={})[dW]=r,!(FB=n.then(function(){})instanceof r)||!t&&fW&&!BB}),mW=Nc||!hw(function(e){Pr.all(e).catch(function(){})}),TB=function(e){var t;return!(!Ye(e)||!Ue(t=e.then))&&t},Nw=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;SB(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&&bW(e),e.rejection=1),c===!0?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(OB("Promise-chain cycle")):(u=TB(a))?Be(u,a,f,d):f(a)):d(r)}catch(v){p&&!s&&p.exit(),d(v)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&yW(e)})}},kB=function(e,t,n){var r,i;vW?((r=Cb.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),U.dispatchEvent(r)):r={promise:t,reason:n},!BB&&(i=U["on"+e])?i(r):e==="unhandledrejection"&&function(o,a){var u=U.console;u&&u.error&&(arguments.length==1?u.error(o):u.error(o,a))}("Unhandled promise rejection",n)},yW=function(e){Be(AB,U,function(){var t,n=e.facade,r=e.value;if(dC(e)&&(t=Eb(function(){no?Pw.emit("unhandledRejection",r,n):kB("unhandledrejection",n,r)}),e.rejection=no||dC(e)?2:1,t.error))throw t.value})},dC=function(e){return e.rejection!==1&&!e.parent},bW=function(e){Be(AB,U,function(){var t=e.facade;no?Pw.emit("rejectionHandled",t):kB("rejectionhandled",t,e.value)})},Gu=function(e,t,n){return function(r){e(t,r,n)}},es=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Nw(e,!0))},Db=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw OB("Promise can't be resolved itself");var r=TB(t);r?SB(function(){var i={done:!1};try{Be(r,t,Gu(Db,i,e),Gu(es,i,e))}catch(o){es(i,o,e)}}):(e.value=t,e.state=1,Nw(e,!1))}catch(i){es({done:!1},i,e)}}};if(Nc&&(Fl=(Pr=function(e){$0(this,Fl),$o(e),Be(q1,this);var t=fC(this);try{e(Gu(Db,t),Gu(es,t))}catch(n){es(t,n)}}).prototype,(q1=function(e){pW(this,{type:Or,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Ds(Fl,{then:function(e,t){var n=hW(this),r=n.reactions,i=Qu($B(this,Pr));return i.ok=!Ue(e)||e,i.fail=Ue(t)&&t,i.domain=no?Pw.domain:void 0,n.parent=!0,r[r.length]=i,n.state!=0&&Nw(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),lC=function(){var e=new q1,t=fC(e);this.promise=e,this.resolve=Gu(Db,t),this.reject=Gu(es,t)},_w.f=Qu=function(e){return e===Pr||e===xB?new lC(e):gW(e)},Ue(Nh)&&na!==Object.prototype)){cC=na.then,FB||(hn(na,"then",function(e,t){var n=this;return new Pr(function(r,i){Be(cC,n,r,i)}).then(e,t)},{unsafe:!0}),hn(na,"catch",Fl.catch,{unsafe:!0}));try{delete na.constructor}catch{}Cs&&Cs(na,Fl)}at({global:!0,wrap:!0,forced:Nc},{Promise:Pr}),Th(Pr,Or,!1),Fw(Or),xB=Xa(Or),at({target:Or,stat:!0,forced:Nc},{reject:function(e){var t=Qu(this);return Be(t.reject,void 0,e),t.promise}}),at({target:Or,stat:!0,forced:Nc},{resolve:function(e){return function(t,n){if(mt(t),Ye(n)&&n.constructor===t)return n;var r=_w.f(t);return(0,r.resolve)(n),r.promise}(this,e)}}),at({target:Or,stat:!0,forced:mW},{all:function(e){var t=this,n=Qu(t),r=n.resolve,i=n.reject,o=Eb(function(){var a=$o(t.resolve),u=[],s=0,l=1;sf(e,function(c){var f=s++,d=!1;l++,Be(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=Qu(t),r=n.reject,i=Eb(function(){var o=$o(t.resolve);sf(e,function(a){Be(o,t,a).then(n.resolve,r)})});return i.error&&r(i.value),n.promise}});var gu=y0.UNSUPPORTED_Y,$W=Math.min,_B=[].push,wW=re(/./.exec),vu=re(_B),Tl=re("".slice);function Qn(e){Promise.resolve().then(e)}function PB(e,t){return te.isElement(e)?tW(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,"©").replace(/™/g,"™")}(o);var a=S.getParentsNodes(r,n).some(function(s){return S.getNodeType(s)==="pre"});if(a||(o=o.replace(/\r\n|\r|\n/g,"<br>")),a&&(o=o.replace(/ /g," ")),o===""){var u=S.getParentNode(null,n);if(!u||u.children.length!==0)return o;o="<br>"}return Tw.forEach(function(s){return o=s(n,o)}),o}(e,t)}function NB(e){return"w-e-element-"+e}Ew("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=Ge(Zn(this)),u=o===void 0?4294967295:o>>>0;if(u===0)return[];if(i===void 0)return[a];if(!cw(i))return Be(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,v=new RegExp(i.source,d+"g");(s=Be(af,v,a))&&!((l=v.lastIndex)>p&&(vu(f,Tl(a,p,s.index)),s.length>1&&s.index<a.length&&ww(_B,f,fb(s,1)),c=s[0].length,p=l,f.length>=u));)v.lastIndex===s.index&&v.lastIndex++;return p===a.length?!c&&wW(v,"")||vu(f,""):vu(f,Tl(a,p)),f.length>u?fb(f,0,u):f}:"0".split(void 0,0).length?function(i,o){return i===void 0&&o===0?[]:Be(t,this,i,o)}:t,[function(i,o){var a=Zn(this),u=i==null?void 0:Ia(i,e);return u?Be(u,i,a,o):Be(r,Ge(a),i,o)},function(i,o){var a=mt(this),u=Ge(i),s=n(r,a,u,o,r!==t);if(s.done)return s.value;var l=$B(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(gu?"g":"y"),d=new l(gu?"^(?:"+a.source+")":a,f),p=o===void 0?4294967295:o>>>0;if(p===0)return[];if(u.length===0)return uf(d,u)===null?[u]:[];for(var v=0,m=0,g=[];m<u.length;){d.lastIndex=gu?0:m;var y,h=uf(d,gu?Tl(u,m):u);if(h===null||(y=$W(js(d.lastIndex+(gu?m:0)),u.length))===v)m=Cw(u,m,c);else{if(vu(g,Tl(u,v,m)),g.length===p)return g;for(var $=1;$<=h.length-1;$++)if(vu(g,h[$]),g.length===p)return g;m=v=y}}return vu(g,Tl(u,v)),g}]},!!je(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),gu);var pC=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},hC=function(e,t,n){var r=S.toDOMRange(e,t).getBoundingClientRect(),i=S.toDOMRange(e,n).getBoundingClientRect();return pC(r,i)&&pC(i,r)},IB=["span","b","strong","i","em","s","strike","u","font","sub","sup"],RB=[];function EW(e){RB.push(e)}var Iw=[];function CW(e){Iw.push(e)}var Ih={};function DW(e){var t=e.selector,n=e.parseElemHtml;Ih[t]=n}var xW=mr.f,SW=nf.f,AW=tn.enforce,OW=st("match"),si=U.RegExp,zu=si.prototype,BW=U.SyntaxError,FW=re(lw),TW=re(zu.exec),Qd=re("".charAt),gC=re("".replace),vC=re("".indexOf),kW=re("".slice),_W=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,ma=/a/g,G1=/a/g,PW=new si(ma)!==ma,jB=y0.MISSED_STICKY,NW=y0.UNSUPPORTED_Y,IW=Nt&&(!PW||jB||yw||bw||je(function(){return G1[OW]=!1,si(ma)!=ma||si(G1)==G1||si(ma,"i")!="/a/i"}));if(rf("RegExp",IW)){for(var Fi=function(e,t){var n,r,i,o,a,u,s=Na(zu,this),l=cw(e),c=t===void 0,f=[],d=e;if(!s&&l&&c&&e.constructor===Fi)return e;if((l||Na(zu,e))&&(e=e.source,c&&(t="flags"in d?d.flags:FW(d))),e=e===void 0?"":Ge(e),t=t===void 0?"":Ge(t),d=e,yw&&"dotAll"in ma&&(r=!!t&&vC(t,"s")>-1)&&(t=gC(t,/s/g,"")),n=t,jB&&"sticky"in ma&&(i=!!t&&vC(t,"y")>-1)&&NW&&(t=gC(t,/y/g,"")),bw&&(o=function(p){for(var v,m=p.length,g=0,y="",h=[],$={},w=!1,C=!1,D=0,A="";g<=m;g++){if((v=Qd(p,g))==="\\")v+=Qd(p,++g);else if(v==="]")w=!1;else if(!w)switch(!0){case v==="[":w=!0;break;case v==="(":TW(_W,kW(p,g+1))&&(g+=2,C=!0),y+=v,D++;continue;case(v===">"&&C):if(A===""||vt($,A))throw new BW("Invalid capture group name");$[A]=!0,h[h.length]=[A,D],C=!1,A="";continue}C?A+=v:y+=v}return[y,h]}(e),e=o[0],f=o[1]),a=sB(si(e,t),s?this:zu,Fi),(r||i||f.length)&&(u=AW(a),r&&(u.dotAll=!0,u.raw=Fi(function(p){for(var v,m=p.length,g=0,y="",h=!1;g<=m;g++)(v=Qd(p,g))!=="\\"?h||v!=="."?(v==="["?h=!0:v==="]"&&(h=!1),y+=v):y+="[\\s\\S]":y+=v+Qd(p,++g);return y}(e),n)),i&&(u.sticky=!0),f.length&&(u.groups=f)),e!==d)try{cr(a,"source",d===""?"(?:)":d)}catch{}return a},RW=function(e){e in Fi||xW(Fi,e,{configurable:!0,get:function(){return si[e]},set:function(t){si[e]=t}})},mC=SW(si),yC=0;mC.length>yC;)RW(mC[yC++]);zu.constructor=Fi,Fi.prototype=zu,hn(U,"RegExp",Fi)}Fw("RegExp");var jW=new RegExp(String.fromCharCode(160),"g");function LB(e){return e.replace(jW," ")}function bC(e,t){var n=e.length;if(n){var r=e[n-1];if(X.isText(r)){var i=Object.keys(r);if(i.length===1&&i[0]==="text")return r.text=r.text+t,!0}}return!1}function LW(e,t,n){return{type:"paragraph",children:[{text:O(e).text().replace(/\s+/gm," ")}]}}function K1(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!==to.ELEMENT_NODE){if(l.nodeType===to.TEXT_NODE){var c=l.textContent||"";if(c.trim()===""&&c.indexOf(`
|
||
`)>=0)return;c&&(c=LB(c),bC(u,c)||u.push({text:c}))}}else{if(l.nodeName==="BR")return void(bC(u,`
|
||
`)||u.push({text:`
|
||
`}));var f=O(l);u.push(Rw(f,a))}}),u)}(e,t),r=function(o){for(var a in Ih)if(o[0].matches(a))return Ih[a];return LW}(e),i=r(e[0],n,t);return E.isVoid(t,i)||(n.length===0&&(i.children=[{text:e.text().replace(/\s+/gm," ")}]),Iw.forEach(function(o){i=o(e[0],i,t)})),i}function Y1(e,t){e.parents("pre").length===0&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,`
|
||
`));var n=e[0].textContent||"";n=function(i){return i.replace(/ /g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"\xAE").replace(/©/g,"\xA9").replace(/™/g,"\u2122")}(n);var r={text:n=LB(n)};return Iw.forEach(function(i){r=i(e[0],r,t)}),r}function Rw(e,t){RB.forEach(function(r){var i=r.selector,o=r.preParseHtml;e[0].matches(i)&&(e=O(o(e[0])))});var n=Y8(e);return n==="span"?e.attr("data-w-e-type")?K1(e,t):Y1(e,t):n==="code"?Y8(e.parent())==="pre"?K1(e,t):Y1(e,t):IB.includes(n)?Y1(e,t):K1(e,t)}function MB(e,t,n){var r=O(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",function(){r.removeAttr(t)}),!1)}function zB(e,t){t===void 0&&(t=""),t===""&&(t="<p><br></p>"),t.indexOf("<")!==0&&(t=t.split(/\n/).map(function(r){return"<p>"+r+"</p>"}).join(""));var n=O("<div>"+t+"</div>");return Array.from(n.children()).map(function(r){return Rw(O(r),e)})}var MW=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]),zW=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,v,m=[];switch(a.type){case"insert_text":case"remove_text":case"set_node":try{for(var g=Un(E.levels(t,{at:a.path})),y=g.next();!y.done;y=g.next()){var h=Oe(y.value,2),$=h[0],w=h[1],C=S.findKey(t,$);m.push([w,C])}}catch(ee){u={error:ee}}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 D=Un(E.levels(t,{at:_.parent(a.path)})),A=D.next();!A.done;A=D.next()){var I=Oe(A.value,2);$=I[0],w=I[1],C=S.findKey(t,$),m.push([w,C])}}catch(ee){l={error:ee}}finally{try{A&&!A.done&&(c=D.return)&&c.call(D)}finally{if(l)throw l.error}}break;case"move_node":try{for(var M=Un(E.levels(t,{at:_.common(_.parent(a.path),_.parent(a.newPath))})),V=M.next();!V.done;V=M.next()){var Y=Oe(V.value,2);$=Y[0],w=Y[1],C=S.findKey(t,$),m.push([w,C])}}catch(ee){f={error:ee}}finally{try{V&&!V.done&&(d=M.return)&&d.call(M)}finally{if(f)throw f.error}}}i(a);try{for(var J=Un(m),Z=J.next();!Z.done;Z=J.next()){var se=Oe(Z.value,2);w=se[0],C=se[1],$=Oe(E.node(t,w),1)[0],Wp.set($,C)}}catch(ee){p={error:ee}}finally{try{Z&&!Z.done&&(v=J.return)&&v.call(J)}finally{if(p)throw p.error}}},t.deleteBackward=function(a){if(a!=="line")return o(a);if(e.selection&&R.isCollapsed(e.selection)){var u=E.above(e,{match:function(f){return E.isBlock(e,f)},at:e.selection});if(u){var s=Oe(u,2)[1],l=E.range(e,s,e.selection.anchor),c=function(f,d){var p=E.range(f,R.end(d)),v=Array.from(E.positions(f,{at:d})),m=0,g=v.length,y=Math.floor(g/2);if(hC(f,E.range(f,v[m]),p))return E.range(f,v[m],p);if(v.length<2)return E.range(f,v[v.length-1],p);for(;y!==v.length&&y!==m;)hC(f,E.range(f,v[y]),p)?g=y:m=y,y=Math.floor((m+g)/2);return E.range(f,v[g],p)}(t,l);R.isCollapsed(c)||P.delete(e,{at:c})}}},t.onChange=function(){var a=t.selection;a!=null&&vb.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 PB(u,t)}).join("")},t.getText=function(){var a=t.children;return(a===void 0?[]:a).map(function(u){return W.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=Un(f),p=d.next();!p.done;p=d.next()){var v=Oe(p.value,1)[0];if(te.isElement(v)&&(u?v.type.indexOf(a)>=0:v.type===a)){var m=NB(S.findKey(t,v).id);c.push(Gn(Gn({},v),{id:m}))}}}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(te.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||X.isText(f)&&f.text==="")return!0}return!1},t.clear=function(){P.removeNodes(t,{at:{anchor:E.start(t,[]),focus:E.end(t,[])},mode:"highest"}),t.children.length===0&&P.insertNodes(t,[{type:"paragraph",children:[{text:""}]}])},t.getParentNode=function(a){return S.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 v=p.nodeType,m=p.nodeName;return v===to.TEXT_NODE||v===to.ELEMENT_NODE&&!MW.has(m.toLowerCase())}),l.length!==0){var c=t.selection;if(c!=null){var f=null;S.isSelectedEmptyParagraph(t)&&!u&&(f=[c.focus.path[0]]),s.setAttribute("hidden","true"),document.body.appendChild(s);var d=0;l.forEach(function(p){var v=p.nodeType,m=p.nodeName,g=p.textContent,y=g===void 0?"":g;if(v!==to.TEXT_NODE)if(m!=="BR"){var h=p,$=!1;if(IB.includes(m.toLowerCase()))$=!0;else for(var w in Ih)if(h.matches(w)){$=!0;break}if($){var C=Rw(O(h),t);return t.isInline(C)?(t.insertNode(C),C.type==="link"&&t.insertFragment([{text:""}])):P.insertNodes(t,C,{mode:"highest"}),d++,void(S.isSelectedVoidNode(t)&&t.move(1))}var D=window.getComputedStyle(h).display;S.isSelectedEmptyParagraph(t)||D.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&&S.isEmptyPath(t,f)&&P.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.select([]),t.deleteFragment(),P.setNodes(t,{type:"paragraph"},{mode:"highest"});var c=zB(t,a);if(P.insertFragment(t,c),s||(t.deselect(),t.blur()),u&&(t.deselect(),t.disable()),t.isFocused())try{t.select(JSON.parse(l))}catch{t.select(E.start(t,[]))}},t},HW=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(r){var i=t.selection;if(i){var o=Oe(R.edges(i),2),a=o[0],u=o[1],s=E.void(t,{at:a.path}),l=E.void(t,{at:u.path});if(!R.isCollapsed(i)||s){var c=S.toDOMRange(t,i),f=c.cloneContents(),d=f.childNodes[0];if(f.childNodes.forEach(function(C){C.textContent&&C.textContent.trim()!==""&&(d=C)}),l){var p=Oe(l,1)[0],v=c.cloneRange(),m=S.toDOMNode(t,p);v.setEndAfter(m),f=v.cloneContents()}if(s&&(d=f.querySelector("[data-slate-spacer]")),Array.from(f.querySelectorAll("[data-slate-zero-width]")).forEach(function(C){var D=C.getAttribute("data-slate-zero-width")==="n";C.textContent=D?`
|
||
`:""}),gB(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",jV(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=Un(f),v=p.next();!v.done;v=p.next()){var m=v.value;d&&P.splitNodes(t,{always:!0}),n(m),d=!0}}catch(g){i={error:g}}finally{try{v&&!v.done&&(o=p.return)&&o.call(p)}finally{if(i)throw i.error}}}}},t},Cc=function(e){return e!=null},UW={object:!0,function:!0,undefined:!0},VW=function(e){if(!function(t){return!!Cc(t)&&hasOwnProperty.call(UW,typeof t)}(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch{return!1}},WW=/^\s*class[\s{/}]/,qW=Function.prototype.toString,$C=function(e){return!!function(t){if(typeof t!="function"||!hasOwnProperty.call(t,"length"))return!1;try{if(typeof t.length!="number"||typeof t.call!="function"||typeof t.apply!="function")return!1}catch{return!1}return!VW(t)}(e)&&!WW.test(qW.call(e))},jw=function(e){return e!=null},GW=Object.keys,KW=function(){try{return Object.keys("primitive"),!0}catch{return!1}}()?Object.keys:function(e){return GW(jw(e)?Object(e):e)},YW=function(e){if(!jw(e))throw new TypeError("Cannot use null or undefined");return e},XW=Math.max,wC=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=XW(arguments.length,2);for(e=Object(YW(e)),i=function(a){try{e[a]=t[a]}catch(u){n||(n=u)}},r=1;r<o;++r)KW(t=arguments[r]).forEach(i);if(n!==void 0)throw n;return e},JW=Array.prototype.forEach,ZW=Object.create,QW=function(e,t){var n;for(n in e)t[n]=e[n]},EC=function(e){var t=ZW(null);return JW.call(arguments,function(n){jw(n)&&QW(Object(n),t)}),t},X1="razdwatrzy",eq=String.prototype.indexOf,kl=typeof X1.contains=="function"&&X1.contains("dwa")===!0&&X1.contains("foo")===!1?String.prototype.contains:function(e){return eq.call(this,e,arguments[1])>-1},ep=Gf(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],Cc(n)?(i=kl.call(n,"c"),o=kl.call(n,"e"),a=kl.call(n,"w")):(i=a=!0,o=!1),s={value:r,configurable:i,enumerable:o,writable:a},u?wC(EC(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],Cc(r)?$C(r)?Cc(i)?$C(i)||(u=i,i=void 0):i=void 0:(u=r,r=i=void 0):r=void 0,Cc(n)?(o=kl.call(n,"c"),a=kl.call(n,"e")):(o=!0,a=!1),s={get:r,set:i,configurable:o,enumerable:a},u?wC(EC(u),s):s}}),J1=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},tq=Gf(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,v=Object.prototype.hasOwnProperty,m={configurable:!0,enumerable:!1,writable:!0};n=function(g,y){var h;return J1(y),v.call(this,"__ee__")?h=this.__ee__:(h=m.value=f(null),d(this,"__ee__",m),m.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 J1(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,C;if(J1(y),!v.call(this,"__ee__"))return this;if(!(h=this.__ee__)[g])return this;if(typeof($=h[g])=="object")for(C=0;w=$[C];++C)w!==y&&w.__eeOnceListener__!==y||($.length===2?h[g]=$[C?0:1]:$.splice(C,1));else $!==y&&$.__eeOnceListener__!==y||delete h[g];return this},o=function(g){var y,h,$,w,C;if(v.call(this,"__ee__")&&(w=this.__ee__[g]))if(typeof w=="object"){for(h=arguments.length,C=new Array(h-1),y=1;y<h;++y)C[y-1]=arguments[y];for(w=w.slice(),y=0;$=w[y];++y)l.call($,this,C)}else switch(arguments.length){case 1:c.call(w,this);break;case 2:c.call(w,this,arguments[1]);break;case 3:c.call(w,this,arguments[1],arguments[2]);break;default:for(h=arguments.length,C=new Array(h-1),y=1;y<h;++y)C[y-1]=arguments[y];l.call(w,this,C)}},a={on:n,once:r,off:i,emit:o},u={on:ep(n),once:ep(r),off:ep(i),emit:ep(o)},s=p({},u),e.exports=t=function(g){return g==null?f(s):p(Object(g),u)},t.methods=a});function tp(e){var t=q8.get(e);return t==null&&(t=tq(),q8.set(e,t)),t}var Rh=new WeakMap;function CC(e,t){var n=Rh.get(e);n==null&&(n=new Set,Rh.set(e,n)),n.add(t)}function nq(e){return Rh.get(e)||new Set}function rq(e){Rh.set(e,new Set)}function Lw(e){var t=S.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),i=t.offset();return{top:i.top,left:i.left,width:n,height:r}}function Mw(e){var t={top:"0",left:"0"},n=e.selection;if(n==null)return t;var r=Lw(e);if(r==null)return t;var i=r.top,o=r.left,a=r.width,u=r.height,s=S.toDOMRange(e,n).getClientRects()[0];if(s==null)return t;s.width;var l=s.height,c={},f=s.top-i,d=s.left-o;if(d>a/2){var p=a-d;c.right=p+5+"px"}else c.left=d+5+"px";if(f>u/2){var v=u-f;c.bottom=v+5+"px"}else{var m=f+l;m<0&&(m=0),c.top=m+5+"px"}return c}function zw(e,t,n){n===void 0&&(n="modal");var r={top:"0",left:"0"};if(e.selection==null)return r;var i=te.isElement(t)&&e.isVoid(t),o=te.isElement(t)&&e.isInline(t),a=C0.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(A){var I=[];I.push(A);for(var M=0;I.length>0;){var V=I.pop();if(V==null||++M>1e4)break;var Y=V.nodeName;if(V.nodeType===1){var J=Y.toLowerCase();if(IV.includes(J)||J==="iframe"||J==="video")return V;var Z=V.children||[],se=Z.length;if(se)for(var ee=se-1;ee>=0;ee--)I.push(Z[ee])}}return null}(a);if(d!=null){var p=d.getBoundingClientRect();s=p.top,c=p.height}}var v=Lw(e);if(v==null)return r;var m=v.top,g=v.left,y=v.width,h=v.height,$={},w=s-m,C=l-g;if(n==="bar")return $.left=C+"px",w>40?$.bottom=h-w+5+"px":$.top=w+c+5+"px",$;if(n==="modal"){var D;return i?o?C>(y-f)/2?$.right=y-C+5+"px":$.left=C+f+5+"px":$.left="20px":$.left=C+"px",i?((D=w)<0&&(D=0),$.top=D+"px"):w>(h-c)/2?$.bottom=h-w+5+"px":((D=w+c)<0&&(D=0),$.top=D+5+"px"),$}throw new Error("type '"+n+"' is invalid")}function xb(e,t){Qn(function(){var n=Lw(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,v=c-o,m=t.attr("style");if(m.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(m.indexOf("bottom")>=0&&l<0){var h=t.css("bottom"),$=parseInt(h.toString())-Math.abs(l);t.css("bottom",$+"px")}if(m.indexOf("left")>=0&&(r=v+f-a)>0){var w=t.css("left"),C=parseInt(w.toString())-r;C<0&&(C=0),t.css("left",C+"px")}if(m.indexOf("right")>=0&&c<0){var D=t.css("right"),A=parseInt(D.toString())-Math.abs(c);t.css("right",A+"px")}}})}var iq=m0("slice"),oq=st("species"),Z1=U.Array,aq=Math.max;at({target:"Array",proto:!0,forced:!iq},{slice:function(e,t){var n,r,i,o=To(this),a=Ja(o),u=ws(e,a),s=ws(t===void 0?a:t,a);if(Oh(o)&&(n=o.constructor,(g0(n)&&(n===Z1||Oh(n.prototype))||Ye(n)&&(n=n[oq])===null)&&(n=void 0),n===Z1||n===void 0))return wB(o,u,s);for(r=new(n===void 0?Z1:n)(aq(s-u,0)),i=0;u<s;u++,i++)u in o&&of(r,i,o[u]);return r.length=i,r}});var uq=Yf.f,DC=re("".startsWith),sq=re("".slice),lq=Math.min,HB=dw("startsWith"),cq=!HB&&!!function(){var e=uq(String.prototype,"startsWith");return e&&!e.writable}();at({target:"String",proto:!0,forced:!cq&&!HB},{startsWith:function(e){var t=Ge(Zn(this));fw(e);var n=js(lq(arguments.length>1?arguments[1]:void 0,t.length)),r=Ge(e);return DC?DC(t,r,n):sq(t,n,n+r.length)===r}});var mu=Object.assign,xC=Object.defineProperty,fq=re([].concat),SC=!mu||je(function(){if(Nt&&mu({b:1},mu(xC({},"a",{enumerable:!0,get:function(){xC(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}),mu({},e)[n]!=7||Zu(mu({},t)).join("")!=r})?function(e,t){for(var n=Fo(e),r=arguments.length,i=1,o=JO.f,a=KO.f;r>i;)for(var u,s=h0(arguments[i++]),l=o?fq(Zu(s),o(s)):Zu(s),c=l.length,f=0;c>f;)u=l[f++],Nt&&!Be(a,s,u)||(n[u]=s[u]);return n}:mu;at({target:"Object",stat:!0,forced:Object.assign!==SC},{assign:SC});var dq=["props","attrs","style","dataset","on","hook"];function UB(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(!dq.includes(o)){if(o.startsWith("data-")){var l=o.slice(5);return l=RL(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"&&UB(o)})}var Hw=[];function pq(e){Hw.push(e)}var VB={};function hq(e){var t=e.type,n=e.renderElem;VB[t||""]=n}function gq(e,t,n){var r=n.isInline(e)?"span":"div";return de(r,null,t)}function vq(e,t){var n,r=S.findKey(t,e),i=t.isInline(e),o=E.isVoid(t,e),a=NB(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 VB[h]||gq}(s);n=o?null:c.map(function(h,$){return Sb(h,$,e,t)});var d=f(e,n,t);if(o){u["data-slate-void"]=!0;var p=i?"span":"div",v=Oe(W.texts(e),1),m=Oe(v[0],1)[0],g=Sb(m,0,e,t),y=de(p,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},g);d=de(p,{style:{position:"relative"}},d,y),lf.set(m,0),xs.set(m,e)}return d.data==null&&(d.data={}),Object.assign(d.data,u),o||i||(d=function(h,$){var w=$;return Hw.forEach(function(C){w=C(h,$)}),w}(e,d)),Qn(function(){var h=Bw(a);h!=null&&(Aw.set(r,h),C0.set(e,h),E0.set(h,e))}),d}function AC(e,t){return t===void 0&&(t=!1),de("span",{"data-slate-string":!0},t?e+`
|
||
`:e)}function Q1(e,t){return e===void 0&&(e=0),t===void 0&&(t=!1),de("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\uFEFF",t?de("br",null):null)}function mq(e,t,n){if(e.text==null)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=S.findKey(n,e),i=n.getConfig().decorate;if(i==null)throw new Error("Can not get config.decorate");var o=S.findPath(n,e),a=i([e,o]),u=X.decorations(e,a),s=u.map(function(f,d){var p=function(v,m,g,y,h){m===void 0&&(m=!1);var $=v.text,w=S.findPath(h,g),C=_.parent(w);if(E.isEditor(y))throw new Error("Text node "+JSON.stringify(g)+" parent is Editor");return h.isVoid(y)?Q1(W.string(y).length):$!==""||y.children[y.children.length-1]!==g||h.isInline(y)||E.string(h,C)!==""?$===""?Q1():m&&$.slice(-1)===`
|
||
`?AC($,!0):AC($):Q1(0,!0)}(f,d===u.length-1,e,t,n);return p=function(v,m){var g=m;return Hw.forEach(function(y){g=y(v,g)}),g}(f,p),de("span",{"data-slate-leaf":!0},p)}),l=function(f){return"w-e-text-"+f}(r.id),c=de("span",{"data-slate-node":"text",id:l,key:r.id},s);return Qn(function(){var f=Bw(l);f!=null&&(Aw.set(r,f),C0.set(e,f),E0.set(f,e))}),c}function Sb(e,t,n,r){return lf.set(e,t),xs.set(e,n),te.isElement(e)?vq(e,r):mq(e,n,r)}function yq(e,t){var n,r=e.$scroll,i=function(m){return"w-e-textarea-"+m}(e.id),o=t.getConfig(),a=o.readOnly,u=o.autoFocus,s=function(m,g){return g===void 0&&(g=!1),$s("div#"+m,{props:{contentEditable:!g}})}(i,a),l=t.children||[];s.children=l.map(function(m,g){var y=Sb(m,g,t,t);return UB(y),y});var c=U8.get(e);if(c==null&&(c=!0),c){var f=function(m,g){return O(`<div
|
||
id="`+m+`"
|
||
data-slate-editor
|
||
data-slate-node="value"
|
||
suppressContentEditableWarning
|
||
role="textarea"
|
||
spellCheck="true"
|
||
autoCorrect="true"
|
||
autoCapitalize="true"
|
||
></div>`)}(i);r.append(f),e.$textArea=f,n=f[0],(p=Fj([Tj,Ij,Hj,kj,Nj]))(n,s),U8.set(e,!1),V8.set(e,p)}else{var d=W8.get(e),p=V8.get(e);if(d==null||p==null)return;n=d.elm,p(d,s)}if(n!=null||(n=Bw(i))!=null){if((c?u:t.isFocused())&&n.focus({preventScroll:!0}),c){var v=Ow(n);v&&hB.set(t,v)}Sw.set(t,n),C0.set(t,n),E0.set(n,t),W8.set(e,s)}}function OC(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function BC(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function em(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return BC(n.overflowY,t)||BC(n.overflowX,t)||function(r){var i=function(o){if(!o.ownerDocument||!o.ownerDocument.defaultView)return null;try{return o.ownerDocument.defaultView.frameElement}catch{return null}}(r);return!!i&&(i.clientHeight<r.scrollHeight||i.clientWidth<r.scrollWidth)}(e)}return!1}function np(e,t,n,r,i,o,a,u){return o<e&&a>t||o>e&&a<t?0:o<=e&&u<=n||a>=t&&u>=n?o-e-r:a>t&&u<n||o<e&&u>n?a-t+i:0}function FC(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(we){return we!==a};if(!OC(e))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=e;OC(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}f!=null&&f===document.body&&em(f)&&!em(document.documentElement)||f!=null&&em(f,u)&&c.push(f)}for(var d=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,v=window.scrollX||pageXOffset,m=window.scrollY||pageYOffset,g=e.getBoundingClientRect(),y=g.height,h=g.width,$=g.top,w=g.right,C=g.bottom,D=g.left,A=i==="start"||i==="nearest"?$:i==="end"?C:$+y/2,I=o==="center"?D+h/2:o==="end"?w:D,M=[],V=0;V<c.length;V++){var Y=c[V],J=Y.getBoundingClientRect(),Z=J.height,se=J.width,ee=J.top,ae=J.right,fe=J.bottom,_e=J.left;if(r==="if-needed"&&$>=0&&D>=0&&C<=p&&w<=d&&$>=ee&&C<=fe&&D>=_e&&w<=ae)return M;var ve=getComputedStyle(Y),ie=parseInt(ve.borderLeftWidth,10),Ie=parseInt(ve.borderTopWidth,10),T=parseInt(ve.borderRightWidth,10),F=parseInt(ve.borderBottomWidth,10),k=0,N=0,H="offsetWidth"in Y?Y.offsetWidth-Y.clientWidth-ie-T:0,j="offsetHeight"in Y?Y.offsetHeight-Y.clientHeight-Ie-F:0;if(l===Y)k=i==="start"?A:i==="end"?A-p:i==="nearest"?np(m,m+p,p,Ie,F,m+A,m+A+y,y):A-p/2,N=o==="start"?I:o==="center"?I-d/2:o==="end"?I-d:np(v,v+d,d,ie,T,v+I,v+I+h,h),k=Math.max(0,k+m),N=Math.max(0,N+v);else{k=i==="start"?A-ee-Ie:i==="end"?A-fe+F+j:i==="nearest"?np(ee,fe,Z,Ie,F+j,A,A+y,y):A-(ee+Z/2)+j/2,N=o==="start"?I-_e-ie:o==="center"?I-(_e+se/2)+H/2:o==="end"?I-ae+T+H:np(_e,ae,se,ie,T+H,I,I+h,h);var Q=Y.scrollLeft,ce=Y.scrollTop;A+=ce-(k=Math.max(0,Math.min(ce+k,Y.scrollHeight-Z+j))),I+=Q-(N=Math.max(0,Math.min(Q+N,Y.scrollWidth-se+H)))}M.push({el:Y,top:k,left:N})}return M}function TC(e){return e===Object(e)&&Object.keys(e).length!==0}function bq(e,t){var n=!e.ownerDocument.documentElement.contains(e);if(TC(t)&&typeof t.behavior=="function")return t.behavior(n?[]:FC(e,t));if(!n){var r=function(i){return i===!1?{block:"end",inline:"nearest"}:TC(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)})}(FC(e,r),r.behavior)}}function Mn(e,t){return ja(t)&&S.hasDOMNode(e,t,{editable:!0})}function kC(e,t){if(e.getConfig().readOnly)return!1;var n=Hu(e,t)&&S.toSlateNode(e,t);return E.isVoid(e,n)}function Hu(e,t){return ja(t)&&S.hasDOMNode(e,t)}function WB(e,t,n){n===void 0&&(n=!1);var r=t.selection,i=t.getConfig(),o=S.findDocumentOrShadowRoot(t).getSelection();if(o&&(!e.isComposing||n)&&t.isFocused()){var a=o.type!=="None";if(r||a){var u=Sw.get(t),s=!1;if(u.contains(o.anchorNode)&&u.contains(o.focusNode)&&(s=!0),a&&s&&r){var l=S.toSlateRange(t,o,{exactMatch:!0,suppressThrow:!0});if(l&&R.equals(l,r)){var c=!0;if(R.isCollapsed(r)){var f=o.anchorNode,d=o.anchorOffset;if(f===u){var p=u.childNodes,v=void 0;(v=p[d])&&v.matches("table")&&(c=!1),(v=p[d-1])&&v.matches("table")&&(c=!1)}}if(c)return}}if(!r||S.hasRange(t,r)){e.isUpdatingSelection=!0;var m=r&&S.toDOMRange(t,r);if(m){R.isBackward(r)?o.setBaseAndExtent(m.endContainer,m.endOffset,m.startContainer,m.startOffset):o.setBaseAndExtent(m.startContainer,m.startOffset,m.endContainer,m.endOffset);var g=m.startContainer.parentElement;if(!g.closest("[data-slate-spacer]")){g.getBoundingClientRect=m.getBoundingClientRect.bind(m);var y=document.body;bq(g,{scrollMode:"if-needed",boundary:i.scroll?u.parentElement:y,block:"end",behavior:"smooth"}),delete g.getBoundingClientRect}}else o.removeAllRanges();setTimeout(function(){m&&kc&&u.focus(),e.isUpdatingSelection=!1})}else t.selection=S.toSlateRange(t,o,{exactMatch:!1,suppressThrow:!1})}}}var tm=new WeakMap,_C=new WeakMap,$q={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"},wq={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"},Eq={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},et=function(e){var t=$q[e],n=wq[e],r=Eq[e],i=t&&t1(t),o=n&&t1(n),a=r&&t1(r);return function(u){return!(!i||!i(u))||!!(mb&&o&&o(u))||!(mb||!a||!a(u))}},rt={isBold:et("bold"),isCompose:et("compose"),isMoveBackward:et("moveBackward"),isMoveForward:et("moveForward"),isDeleteBackward:et("deleteBackward"),isDeleteForward:et("deleteForward"),isDeleteLineBackward:et("deleteLineBackward"),isDeleteLineForward:et("deleteLineForward"),isDeleteWordBackward:et("deleteWordBackward"),isDeleteWordForward:et("deleteWordForward"),isExtendBackward:et("extendBackward"),isExtendForward:et("extendForward"),isExtendLineBackward:et("extendLineBackward"),isExtendLineForward:et("extendLineForward"),isItalic:et("italic"),isMoveLineBackward:et("moveLineBackward"),isMoveLineForward:et("moveLineForward"),isMoveWordBackward:et("moveWordBackward"),isMoveWordForward:et("moveWordForward"),isRedo:et("redo"),isSplitBlock:et("splitBlock"),isTransposeCharacter:et("transposeCharacter"),isUndo:et("undo"),isTab:et("tab"),isSelectAll:et("selectAll")};function Et(e){e.preventDefault()}var Cq={beforeinput:function(e,t,n){var r=e,i=n.getConfig().readOnly;if(Ol&&!i&&Mn(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=Oe(r.getTargetRanges(),1)[0];if(s){var l=S.toSlateRange(n,s,{exactMatch:!1,suppressThrow:!1});o&&R.equals(o,l)||P.select(n,l)}}if(o&&R.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"&&!N1.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&&Mn(n,r.target)){var a=S.findDocumentOrShadowRoot(n);if(o!==a.activeElement){var u=r.relatedTarget;if(!(u===S.toDOMNode(n,n)||ir(u)&&u.hasAttribute("data-slate-spacer"))){if(u!=null&&ja(u)&&S.hasDOMNode(n,u)){var s=S.toSlateNode(n,u);if(te.isElement(s)&&!n.isVoid(s))return}if(Al){var l=a.getSelection();l==null||l.removeAllRanges()}va.delete(n)}}}},focus:function(e,t,n){var r=S.toDOMNode(n,n),i=S.findDocumentOrShadowRoot(n);t.latestElement=i.activeElement,kc&&e.target!==r?r.focus():va.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&Hu(n,e.target)&&ja(e.target)){var r=S.toSlateNode(n,e.target),i=S.findPath(n,r);if(E.hasPath(n,i)&&W.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&&_.equals(u[1],s[1])){var l=E.range(n,o);P.select(n,l)}}}},compositionstart:function(e,t,n){if(Mn(n,e.target)){var r=n.selection;if(r&&R.isExpanded(r)&&(E.deleteFragment(n),Promise.resolve().then(function(){WB(t,n,!0)})),r&&R.isCollapsed(r)){var i=S.toDOMRange(n,r).startContainer,o=i.textContent||"";tm.set(n,o),_C.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(Mn(n,r.target)){t.isComposing=!1;var i=n.selection;if(i!=null){(yb||kc)&&S.cleanExposedTexNodeInSelectionBlock(n);for(var o=R.isBackward(i)?i.focus:i.anchor,a=Oe(E.node(n,[o.path[0]]),1)[0],u=0;u<o.path.length;u++){var s=Oe(E.node(n,o.path.slice(0,u+1)),1)[0];if(te.isElement(s)&&((Al||kc)&&s.type==="link"||s.type==="code")){S.setNewKey(a);break}}var l=r.data;if(l){if(n.getConfig().maxLength){var c=S.getLeftLengthOfMaxLength(n);c<l.length?(S.toDOMRange(n,i).startContainer.textContent=tm.get(n)||"",c>0&&E.insertText(n,l.slice(0,c)),t.changeViewState()):E.insertText(n,l)}else E.insertText(n,l);Al||setTimeout(function(){var f=n.selection;if(f!=null){var d=_C.get(n);d!=null&&S.toDOMRange(n,f).startContainer!==d&&(d.textContent=tm.get(n)||"")}})}}}},compositionupdate:function(e,t,n){Mn(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,i=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&Mn(n,r.target)){if(function(a,u){var s=w0.get(a),l=s&&s.getMenus(),c=_h.get(a),f=c&&c.getMenus(),d=Gn(Gn({},l),f);for(var p in d){var v=d[p],m=v.hotkey;if(m&&UL(m,u)&&!v.isDisabled(a)){var g=v.getValue(a);v.exec(a,g)}}}(n,r),rt.isTab(r))return Et(r),void n.handleTab();if(rt.isRedo(r))return Et(r),void(typeof n.redo=="function"&&n.redo());if(rt.isUndo(r))return Et(r),void(typeof n.undo=="function"&&n.undo());if(rt.isMoveLineBackward(r))return Et(r),void P.move(n,{unit:"line",reverse:!0});if(rt.isMoveLineForward(r))return Et(r),void P.move(n,{unit:"line"});if(rt.isExtendLineBackward(r))return Et(r),void P.move(n,{unit:"line",edge:"focus",reverse:!0});if(rt.isExtendLineForward(r))return Et(r),void P.move(n,{unit:"line",edge:"focus"});if(rt.isMoveBackward(r))return Et(r),void(i&&R.isCollapsed(i)?P.move(n,{reverse:!0}):P.collapse(n,{edge:"start"}));if(rt.isMoveForward(r))return Et(r),void(i&&R.isCollapsed(i)?P.move(n):P.collapse(n,{edge:"end"}));if(rt.isMoveWordBackward(r))return Et(r),i&&R.isExpanded(i)&&P.collapse(n,{edge:"focus"}),void P.move(n,{unit:"word",reverse:!0});if(rt.isMoveWordForward(r))return Et(r),i&&R.isExpanded(i)&&P.collapse(n,{edge:"focus"}),void P.move(n,{unit:"word"});if(rt.isSelectAll(r))return Et(r),void n.selectAll();if(Ol){if((yb||Al)&&i&&(rt.isDeleteBackward(r)||rt.isDeleteForward(r))&&R.isCollapsed(i)){var o=W.parent(n,i.anchor.path);if(te.isElement(o)&&E.isVoid(n,o)&&E.isInline(n,o))return r.preventDefault(),void P.delete(n,{unit:"block"})}}else{if(rt.isBold(r)||rt.isItalic(r)||rt.isTransposeCharacter(r))return void Et(r);if(rt.isSplitBlock(r))return Et(r),void E.insertBreak(n);if(rt.isDeleteBackward(r))return Et(r),void(i&&R.isExpanded(i)?E.deleteFragment(n,{direction:"backward"}):E.deleteBackward(n));if(rt.isDeleteForward(r))return Et(r),void(i&&R.isExpanded(i)?E.deleteFragment(n,{direction:"forward"}):E.deleteForward(n));if(rt.isDeleteLineBackward(r))return Et(r),void(i&&R.isExpanded(i)?E.deleteFragment(n,{direction:"backward"}):E.deleteBackward(n,{unit:"line"}));if(rt.isDeleteLineForward(r))return Et(r),void(i&&R.isExpanded(i)?E.deleteFragment(n,{direction:"forward"}):E.deleteForward(n,{unit:"line"}));if(rt.isDeleteWordBackward(r))return Et(r),void(i&&R.isExpanded(i)?E.deleteFragment(n,{direction:"backward"}):E.deleteBackward(n,{unit:"word"}));if(rt.isDeleteWordForward(r))return Et(r),void(i&&R.isExpanded(i)?E.deleteFragment(n,{direction:"forward"}):E.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!Ol&&!n.getConfig().readOnly&&Mn(n,e.target)){e.preventDefault();var r=e.key;E.insertText(n,r)}},copy:function(e,t,n){var r=e;if(Mn(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&&Mn(n,r.target)){r.preventDefault();var o=r.clipboardData;if(o!=null&&(n.setFragmentData(o),i))if(R.isExpanded(i))E.deleteFragment(n);else{var a=W.parent(n,i.anchor.path);E.isVoid(n,a)&&P.delete(n)}}},paste:function(e,t,n){N1.set(n,!0);var r=e;if(!n.getConfig().readOnly&&Mn(n,r.target)){var i=n.getConfig().customPaste;if(i&&i(n,r)===!1)return void N1.set(n,!1);if(!Ol||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(Hu(n,e.target)){var r=S.toSlateNode(n,e.target);E.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(Hu(n,r.target)&&!n.getConfig().readOnly){var i=S.toSlateNode(n,r.target),o=S.findPath(n,i);if(E.isVoid(n,i)||E.void(n,{at:o,voids:!0})){var a=E.range(n,o);P.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&&Hu(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,i=r.dataTransfer;if(!n.getConfig().readOnly&&Hu(n,r.target)&&i!=null&&!(Ol&&Al&&i.files.length>0)){r.preventDefault();var o=n.selection,a=S.findEventRange(n,r);P.select(n,a),t.isDraggingInternally&&(o&&P.delete(n,{at:o}),t.isDraggingInternally=!1),n.insertData(i),n.isFocused()||n.focus()}}},Dq=1,xq=function(){function e(t){var n=this;this.id=Dq++,this.$textArea=null,this.$progressBar=O('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=O('<div class="w-e-max-length-info"></div>'),this.isComposing=!1,this.isUpdatingSelection=!1,this.isDraggingInternally=!1,this.latestElement=null,this.showPlaceholder=!1,this.$placeholder=null,this.latestEditorSelection=null,this.onDOMSelectionChange=Pa(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=S.findDocumentOrShadowRoot(s),p=d.activeElement,v=S.toDOMNode(s,s),m=d.getSelection();if(p===v?(u.latestElement=p,va.set(s,!0)):va.delete(s),!m)return P.deselect(s);var g=m.anchorNode,y=m.focusNode,h=Mn(s,g)||kC(s,g),$=Mn(s,y)||kC(s,y);if(h&&$){var w=S.toSlateRange(s,m,{exactMatch:!1,suppressThrow:!1});P.select(s,w)}else P.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('<div class="w-e-text-container"></div>');i.append(this.$progressBar),i.append(this.$maxLengthInfo),r.append(i);var o=O('<div class="w-e-scroll"></div>');i.append(o),this.$scroll=o,this.$textAreaContainer=i,Qn(function(){var a=n.editorInstance,u=S.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=pb.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&&(q$(Cq,function(o,a){n.on(a,function(u){o(u,t,i)})}),i.getConfig().scroll&&(r.css("overflow-y","auto"),r.on("scroll",Pa(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?o&&o(n):t.latestEditorSelection!=null&&n.selection==null&&i&&i(n),t.latestEditorSelection=n.selection})},e.prototype.changeMaxLengthInfo=function(){var t=this.editorInstance,n=t.getConfig().maxLength;if(n){var r=n-S.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;yq(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('<div class="w-e-text-placeholder">'+a+"</div>");r.$textAreaContainer.append(s),r.$placeholder=s}return r.$placeholder.show(),void(r.showPlaceholder=!0)}!u&&r.showPlaceholder&&((o=r.$placeholder)===null||o===void 0||o.hide(),r.showPlaceholder=!1)}}(this,n),Qn(function(){WB(t,n)})},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();Ew("match",function(e,t,n){return[function(r){var i=Zn(this),o=r==null?void 0:Ia(r,e);return o?Be(o,r,i):new RegExp(r)[e](Ge(i))},function(r){var i=mt(this),o=Ge(r),a=n(t,i,o);if(a.done)return a.value;if(!i.global)return uf(i,o);var u=i.unicode;i.lastIndex=0;for(var s,l=[],c=0;(s=uf(i,o))!==null;){var f=Ge(s[0]);l[c]=f,f===""&&(i.lastIndex=Cw(o,js(i.lastIndex),u)),c++}return c===0?null:l}]});function Uw(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&&Uw(t)}function Vw(){return O('<svg viewBox="0 0 1024 1024"><path d="M498.7 655.8l-197.6-268c-8.1-10.9-0.3-26.4 13.3-26.4h395.2c13.6 0 21.4 15.4 13.3 26.4l-197.6 268c-6.6 9-20 9-26.6 0z"></path></svg>')}function qB(){return O('<div class="w-e-bar-divider"></div>')}function GB(e,t,n,r,i){if(i===void 0&&(i=!1),t){if(r){var o=mb?"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 Ww=function(){function e(t,n){var r=this;n===void 0&&(n=!1),this.$elem=O('<div class="w-e-bar-item"></div>'),this.$button=O('<button type="button"></button>'),this.disabled=!1,this.menu=t;var i=t.tag,o=t.width;if(i!=="button")throw new Error("Invalid tag '"+i+"', expected 'button'");var a=t.title,u=t.hotkey,s=u===void 0?"":u,l=t.iconSvg,c=l===void 0?"":l,f=this.$button;if(c){var d=O(c);Uw(d),f.append(d)}else f.text(a);GB(f,c,a,s,n),n&&c&&f.append(O('<span class="title">'+a+"</span>")),o&&f.css("width",o+"px"),this.$elem.append(f),Qn(function(){return r.init()})}return e.prototype.init=function(){var t=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(n){n.preventDefault(),Cn(t).hidePanelOrModal(),t.disabled||(t.exec(),t.onButtonClick())})},e.prototype.exec=function(){var t=Cn(this),n=this.menu,r=n.getValue(t);n.exec(t,r)},e.prototype.setActive=function(){var t=Cn(this),n=this.$button,r="active";this.menu.isActive(t)?n.addClass(r):n.removeClass(r)},e.prototype.setDisabled=function(){var t=Cn(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}(),Sq=function(e){function t(n,r){return r===void 0&&(r=!1),e.call(this,n,r)||this}return Ms(t,e),t.prototype.onButtonClick=function(){},t}(Ww),qw=function(){function e(t){this.isShow=!1,this.showTime=0,this.record(t)}return e.prototype.record=function(t){var n=gb.get(t);n==null&&(n=new Set,gb.set(t,n)),n.add(this),Vp.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=Vp.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=Vp.get(this);t&&t.emit("modalOrPanelHide")}},e}(),Aq=function(e){function t(n){var r=e.call(this,n)||this;return r.type="dropPanel",r.$elem=O('<div class="w-e-drop-panel"></div>'),r}return Ms(t,e),t.prototype.genSelfElem=function(){return null},t}(qw),Oq=function(e){function t(n,r){r===void 0&&(r=!1);var i=e.call(this,n,r)||this;if(i.dropPanel=null,i.menu=n,n.showDropPanel){var o=Vw();i.$button.append(o)}return i}return Ms(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=Cn(this);if(this.dropPanel==null){var i=new Aq(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}(Ww),Bq=function(e){function t(n,r){r===void 0&&(r=0);var i=e.call(this,n)||this;i.type="modal",i.$elem=O('<div class="w-e-modal"></div>'),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 Ms(t,e),t.prototype.genSelfElem=function(){var n=this,r=O('<span class="btn-close"><svg viewBox="0 0 1024 1024"><path d="M1024 896.1024l-128 128L512 640 128 1024 0 896 384 512 0 128 128 0 512 384 896.1024 0l128 128L640 512z"></path></svg></span>'),i=Vp.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}(qw);function Dn(e,t,n){var r=O('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var i=O('<input type="text" id="'+t+'" placeholder="'+(n||"")+'">');return r.append(i),[r[0],i[0]]}function zs(e,t){var n=O('<div class="button-container"></div>'),r=O('<button type="button" id="'+e+'">'+t+"</button>");return n.append(r),[n[0],r[0]]}var Fq=function(e){function t(n,r){r===void 0&&(r=!1);var i=e.call(this,n,r)||this;return i.$body=O("body"),i.modal=null,i.menu=n,i}return Ms(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var n=Cn(this),r=this.menu.getModalPositionNode(n);return te.isElement(r)?zw(n,r,"modal"):Mw(n)},t.prototype.handleModal=function(){var n=Cn(this),r=this.menu;if(this.modal==null){var i=new Bq(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=Cn(this),o=this.menu;if(o.getModalContentElem!=null){var a=S.getTextarea(i),u=S.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||xb(i,n.$elem),setTimeout(function(){i.blur()})}},t}(Ww),Tq=function(e){function t(n,r){var i=e.call(this,n)||this;return i.type="selectList",i.$elem=O('<div class="w-e-select-list"></div>'),r&&i.$elem.css("width",r+"px"),i.$elem.on("click",function(o){o.stopPropagation()}),i}return Ms(t,e),t.prototype.renderList=function(n){var r=this.$elem;r.empty();var i=O("<ul></ul>");n.forEach(function(o){var a=o.value,u=o.text,s=o.selected,l=o.styleForRenderMenuList,c=O('<li data-value="'+a+'"></li>');if(l&&c.css(l),s){var f=O('<svg viewBox="0 0 1446 1024"><path d="M574.116299 786.736392 1238.811249 48.517862C1272.390222 11.224635 1329.414799 7.827718 1366.75664 41.450462 1403.840015 74.840484 1406.731043 132.084741 1373.10189 169.433699L655.118888 966.834607C653.072421 969.716875 650.835807 972.514337 648.407938 975.210759 615.017957 1012.29409 558.292155 1015.652019 521.195664 982.250188L72.778218 578.493306C35.910826 545.297758 32.859041 488.584019 66.481825 451.242134 99.871807 414.158803 156.597563 410.800834 193.694055 444.202665L574.116299 786.736392Z"></path></svg>');c.append(f),c.addClass("selected")}c.append(O('<span data-value="'+a+'">'+u+"</span>")),c.attr("title",u),i.append(c)}),r.append(i)},t.prototype.genSelfElem=function(){return null},t}(qw),kq=function(){function e(t,n){var r=this;n===void 0&&(n=!1),this.$elem=O('<div class="w-e-bar-item"></div>'),this.$button=O('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var i=t.tag,o=t.title,a=t.width,u=t.iconSvg,s=u===void 0?"":u,l=t.hotkey,c=l===void 0?"":l;if(i!=="select")throw new Error("Invalid tag '"+i+"', expected 'select'");var f=this.$button;a&&f.css("width",a+"px"),GB(f,s,o,c,n),this.$elem.append(f),this.menu=t,Qn(function(){return r.init()})}return e.prototype.init=function(){var t=this;this.setSelectedValue(),this.$button.on("click",function(n){n.preventDefault(),Cn(t).hidePanelOrModal(),t.trigger()})},e.prototype.trigger=function(){var t=this,n=Cn(this);if(!n.isDisabled()&&!this.disabled){var r=this.menu;if(this.selectList==null){this.selectList=new Tq(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=Cn(this),r=this.menu;r.exec&&r.exec(n,t)},e.prototype.setSelectedValue=function(){var t=Cn(this),n=this.menu,r=n.getValue(t),i=function(u,s){for(var l=u.length,c="",f=0;f<l;f++){var d=u[f];if(d.value===s){c=d.text;break}}return c}(n.getOptions(t),r.toString()),o=this.$button,a=Vw();o.empty(),o.text(i),o.append(a)},e.prototype.setDisabled=function(){var t=Cn(this),n=this.menu.isDisabled(t),r=this.$button;(t.selection==null||t.isDisabled())&&(n=!0);var i="disabled";n?r.addClass(i):r.removeClass(i),this.disabled=n},e.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},e}(),PC=function(){function e(t){this.$elem=O('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=O('<div class="w-e-bar-item-menus-container"></div>'),this.$button=O('<button type="button"></button>');var n=t.iconSvg,r=t.title,i=this.$elem,o=this.$button;if(n){var a=O(n);Uw(a),o.append(a)}else o.text(r);var u=Vw();o.append(u),i.append(o);var s=this.$container;i.append(s);var l=this.createObserver();this.observe(l)}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}(),NC=new WeakMap;function Cn(e){var t=xw.get(e);if(t==null)throw new Error("Can not get editor instance");return t}function KB(e,t){t===void 0&&(t=!1);var n=NC.get(e);if(n)return n;var r=e.tag;if(r==="button"){var i=e.showDropPanel,o=e.showModal;n=i?new Oq(e,t):o?new Fq(e,t):new Sq(e,t)}if(r==="select"&&(n=new kq(e,t)),n==null)throw new Error("Invalid tag in menu "+JSON.stringify(e));return NC.set(e,n),n}function _q(e,t){var n=e.selection;return n!=null&&!R.isCollapsed(n)&&!S.getSelectedElems(e).some(function(r){if(e.isVoid(r))return!0;var i=r.type;return!!["pre","code","table"].includes(i)||void 0})&&!!X.isText(t)}var Pq=function(){function e(){var t=this;this.$elem=O('<div class="w-e-bar w-e-bar-hidden w-e-hover-bar"></div>'),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null,this.isShow=!1,this.changeHoverbarState=$O(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&&te.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()}),S.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=qB();r.append(o)}})},e.prototype.registerSingleItem=function(t){var n=this.getEditorInstance(),r=this.menus,i=r[t];if(i==null){var o=cf[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=KB(i);this.hoverbarItems.push(a),xw.set(a,n),this.$elem.append(a.$elem)},e.prototype.setPosition=function(t){var n=this.getEditorInstance(),r=this.$elem;if(r.attr("style",""),te.isElement(t)){var i=zw(n,t,"bar");return r.css(i),void xb(n,r)}if(X.isText(t))return i=Mw(n),r.css(i),void xb(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(m,g){return S.checkNodeType(g,u)},p=Oe(E.nodes(t,{match:function(m){return d(t,m)},universal:!0}),1),v=p[0];if(v!=null)return r=v[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=hb.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=_q),n},e.prototype.isSamePath=function(t,n){if(t==null||n==null)return!1;var r=S.findPath(null,t),i=S.findPath(null,n);return _.equals(r,i)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function YB(e,t,n,r){if(lf.set(e,t),xs.set(e,n),te.isElement(e)){var i=e.children;if((i===void 0?[]:i).forEach(function(u,s){return YB(u,s,e,r)}),E.isVoid(r,e)){var o=Oe(W.texts(e),1),a=Oe(o[0],1)[0];lf.set(a,0),xs.set(a,e)}}}function Nq(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:C}=w;if(C.length>0){var D=C[C.length-1];qu.withoutSaving(h,()=>{E.withoutNormalizing(h,()=>{for(var A of D)h.apply(A)})}),w.redos.pop(),w.undos.push(D)}},h.undo=()=>{var{history:w}=h,{undos:C}=w;if(C.length>0){var D=C[C.length-1];qu.withoutSaving(h,()=>{E.withoutNormalizing(h,()=>{var A=D.map(Xi.inverse).reverse();for(var I of A)h.apply(I)})}),w.redos.push(D),w.undos.pop()}},h.apply=w=>{var{operations:C,history:D}=h,{undos:A}=D,I=A[A.length-1],M=I&&I[I.length-1],V=rU(w,M),Y=qu.isSaving(h),J=qu.isMerging(h);if(Y==null&&(Y=nU(w)),Y){if(J==null&&(J=I!=null&&(C.length!==0||tU(w,M)||V)),I&&J)V&&I.pop(),I.push(w);else{var Z=[w];A.push(Z)}for(;A.length>100;)A.shift();iU(w)&&(D.redos=[])}$(w)},h})(function(y){var h=y,$=h.insertText,w=h.insertNode,C=h.insertFragment;return h.insertText=function(D){if(h.getConfig().maxLength){var A=S.getLeftLengthOfMaxLength(h);A<=0||(A<D.length?$(D.slice(0,A)):$(D))}else $(D)},h.insertNode=function(D){if(h.getConfig().maxLength){var A=S.getLeftLengthOfMaxLength(h);A<=0||A<W.string(D).length||w(D)}else w(D)},h.insertFragment=function(D){h.getConfig().maxLength?D.forEach(function(A){h.insertNode(A)}):C(D)},h}(function(y){var h=y;return h.on=function($,w){var C=tp(h);if(C.on($,w),$==="destroyed"&&CC(h,w),$!=="destroyed"){var D=function(){return C.off($,w)};C.on("destroyed",D),CC(h,D)}},h.once=function($,w){tp(h).once($,w)},h.off=function($,w){tp(h).off($,w)},h.emit=function($){for(var w=[],C=1;C<arguments.length;C++)w[C-1]=arguments[C];var D=tp(h);D.emit.apply(D,cb([$],Oe(w))),$==="destroyed"&&(nq(h).forEach(function(A){return D.off("destroyed",A)}),rq(h))},h}(function(y){var h=y;return h.select=function($){P.select(h,$)},h.deselect=function(){var $=h.selection,w=S.findDocumentOrShadowRoot(h).getSelection();w&&w.rangeCount>0&&w.removeAllRanges(),$&&P.deselect(y)},h.move=function($,w){w===void 0&&(w=!1),$&&($<0||P.move(y,{distance:$,unit:"character",reverse:w}))},h.moveReverse=function($){h.move($,!0)},h.restoreSelection=function(){var $=vb.get(h);$!=null&&(h.focus(),P.select(h,$))},h.getSelectionPosition=function(){return Mw(h)},h.getNodePosition=function($){return zw(h,$)},h.isSelectedAll=function(){var $=h.selection;if($==null)return!1;var w=Oe(R.edges($),2),C=w[0],D=w[1],A=Oe(E.edges(h,[]),2),I=A[0],M=A[1];return!(!$e.equals(C,I)||!$e.equals(D,M))},h.selectAll=function(){var $=E.start(h,[]),w=E.end(h,[]);P.select(h,{anchor:$,focus:w})},h}(zW(function(y){var h=y;return h.getAllMenuKeys=function(){var $=[];for(var w in cf)$.push(w);return $},h.getConfig=function(){var $=H8.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 C=h.getConfig().customAlert;C&&C($,w)},h}(function(y){var h=y;return h.id="wangEditor-"+zV++,h.isDestroyed=!1,h.isFullScreen=!1,h.focus=function($){if(S.toDOMNode(h,h).focus({preventScroll:!0}),va.set(h,!0),$){var w=E.end(h,[]);P.select(h,w)}else{var C=vb.get(h);C?P.select(h,C):P.select(h,E.start(h,[]))}},h.isFocused=function(){return!!va.get(h)},h.blur=function(){S.toDOMNode(h,h).blur(),P.deselect(h),va.set(h,!1)},h.updateView=function(){S.getTextarea(h).changeViewState();var $=S.getToolbar(h);$&&$.changeToolbarState();var w=S.getHoverbar(h);w&&w.changeHoverbarState()},h.destroy=function(){if(!h.isDestroyed){var $=S.getTextarea(h);$.destroy(),db.delete(h),pb.delete($);var w=S.getToolbar(h);w&&(w.destroy(),w0.delete(h),Dw.delete(w));var C=S.getHoverbar(h);C&&(C.destroy(),_h.delete(h),hb.delete(C)),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 C=O("#"+$);if(C.length!==0){var D=C[0];if(!S.hasDOMNode(h,D))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,D);var A=S.getTextarea(h),I=A.$textAreaContainer,M=A.$scroll,V=C.offset().top,Y=I.offset().top;M[0].scrollBy({top:V-Y,behavior:"smooth"})}},h.showProgressBar=function($){$<1||S.getTextarea(h).changeProgress($)},h.hidePanelOrModal=function(){var $=gb.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 S.toDOMNode(h,$)},h.fullScreen=function(){if(!h.isFullScreen){var $=null,w=S.getToolbar(h);w&&($=w.$box);var C=S.getTextarea(h).$box.parent();if($&&$.parent()[0]!==C[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`);C.addClass("w-e-full-screen-container");var D=C.css("z-index");C.attr("data-z-index",D.toString()),h.isFullScreen=!0,h.emit("fullScreen")}},h.unFullScreen=function(){if(h.isFullScreen){var $=S.getTextarea(h).$box.parent();setTimeout(function(){$.removeClass("w-e-full-screen-container"),h.isFullScreen=!1,h.emit("unFullScreen")},200)}},h.getEditableContainer=function(){return S.getTextarea(h).$textAreaContainer[0]},h}(HW(bN()))))))));if(n&&function(y,h){return MB(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=wO(yB),$={},w=y.MENU_CONF,C=w===void 0?{}:w;return q$(h,function(D,A){$[A]=Gn(Gn({},D),C[A]||{})}),delete y.MENU_CONF,Gn({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:$,hoverbarKeys:{},customAlert:function(D,A){window.alert(A+`:
|
||
`+D)}},y)}(i);H8.set(l,c);var f=c.hoverbarKeys,d=f===void 0?{}:f;if(s.forEach(function(y){l=y(l)}),a!=null&&(l.children=zB(l,a)),o&&o.length&&(l.children=o),l.children.length===0&&(l.children=[{type:"paragraph",children:[{text:""}]}]),S.normalizeContent(l),n){var p=new xq(n);db.set(l,p),pb.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 v=void 0;Object.keys(d).length>0&&(v=new Pq,hb.set(v,l),_h.set(l,v)),l.on("change",function(){l.hidePanelOrModal()}),l.on("scroll",function(){l.hidePanelOrModal()})}else l.children.forEach(function(y,h){return YB(y,h,l,l)});var m=c.onCreated,g=c.onDestroyed;return m&&l.on("created",function(){return m(l)}),g&&l.on("destroyed",function(){return g(l)}),Qn(function(){return l.emit("created")}),l}var Iq=m0("splice"),Rq=U.TypeError,jq=Math.max,Lq=Math.min;at({target:"Array",proto:!0,forced:!Iq},{splice:function(e,t){var n,r,i,o,a,u,s=Fo(this),l=Ja(s),c=ws(e,l),f=arguments.length;if(f===0?n=r=0:f===1?(n=0,r=l-c):(n=f-2,r=Lq(jq(Kf(t),0),l-c)),l+n-r>9007199254740991)throw Rq("Maximum allowed length exceeded");for(i=WO(s,r),o=0;o<r;o++)(a=c+o)in s&&of(i,o,s[a]);if(i.length=r,n<r){for(o=c;o<l-r;o++)u=o+n,(a=o+r)in s?s[u]=s[a]:delete s[u];for(o=l;o>l-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<n;o++)s[o+c]=arguments[o+2];return s.length=l-r+n,i}});var Mq=function(){function e(t,n){var r=this;this.$toolbar=O('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=$O(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=wO(a);s.keys.length>0&&(typeof s.keys=="string"&&(s.keys=[s.keys]),s.keys.forEach(function(v,m){f.splice(s.index+m,0,v)}));var d=f.filter(function(v){if(typeof v=="string"){if(c.includes(v))return!1}else if(c.includes(v.key))return!1;return!0}),p=d.length;d.forEach(function(v,m){if(v==="|"){if(m===0||m+1===p||n==="|")return;var g=qB();return r.append(g),void(n=v)}if(typeof v=="string")return t.registerSingleItem(v,t),void(n=v);t.registerGroup(v),n="group"})},e.prototype.registerGroup=function(t){var n=this,r=this.$toolbar,i=function(l){return new PC(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 PC,o=this.menus,a=o[t];if(a==null){var u=cf[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=KB(a,i);this.toolbarItems.push(s),xw.set(s,r),i?n.appendBarItem(s):n.$toolbar.append(s.$elem)},e.prototype.getEditorInstance=function(){var t=Dw.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 zq(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 MB(u,"data-w-e-toolbar",s)}(e,n))throw new Error("Repeated create toolbar by selector '"+n+"'");var o=Gn({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},i||{}),a=new Mq(n,o);return Dw.set(a,e),w0.set(e,a),a}var Hq=Rs.EXISTS,Uq=mr.f,XB=Function.prototype,Vq=re(XB.toString),JB=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Wq=re(JB.exec);function ZB(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,v=p===void 0?{}:p,m=e.withCredentials,g=m!==void 0&&m,y=e.timeout,h=y===void 0?1e4:y,$=e.onBeforeUpload,w=$===void 0?function(Z){return Z}:$,C=e.onSuccess,D=C===void 0?function(Z,se){}:C,A=e.onError,I=A===void 0?function(Z,se,ee){console.error(Z.name+" upload error",se,ee)}:A,M=e.onProgress,V=M===void 0?function(Z){}:M;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 Y=n;d&&(Y=function(Z,se){var ee=Oe(Z.split("#"),2),ae=ee[0],fe=ee[1],_e=[];q$(se,function(ie,Ie){_e.push(Ie+"="+ie)});var ve=_e.join("&");return ae=ae.indexOf("?")>0?ae+"&"+ve:ae+"?"+ve,fe?ae+"#"+fe:ae}(Y,c));var J=new qf({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(Jz,{endpoint:Y,headers:v,formData:!0,fieldName:i,bundle:!0,withCredentials:g,timeout:h});return J.on("upload-success",function(Z,se){var ee=se.body,ae=ee===void 0?{}:ee;try{D(Z,ae)}catch(fe){console.error("wangEditor upload file - onSuccess error",fe)}J.removeFile(Z.id)}),J.on("progress",function(Z){Z<1||V(Z)}),J.on("error",function(Z){console.error("wangEditor file upload error",Z.stack)}),J.on("upload-error",function(Z,se,ee){try{I(Z,se,ee)}catch(ae){console.error("wangEditor upload file - onError error",ae)}J.removeFile(Z.id)}),J.on("restriction-failed",function(Z,se){try{I(Z,se)}catch(ee){console.error("wangEditor upload file - onError error",ee)}J.removeFile(Z.id)}),J}function ro(e){return ro=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},ro(e)}function qq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ct(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),r.forEach(function(i){qq(e,i,n[i])})}return e}function gi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function IC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vi(e,t,n){return t&&IC(e.prototype,t),n&&IC(e,n),e}function La(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function df(e,t){if(t&&(ro(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return La(e)}function Ss(e){return Ss=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Ss(e)}function Ab(e,t){return Ab=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},Ab(e,t)}function D0(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ab(e,t)}Nt&&!Hq&&Uq(XB,"name",{configurable:!0,get:function(){try{return Wq(JB,Vq(this))[1]}catch{return""}}});var Gq={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},li=new(function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};gi(this,e),this.init(t,n)}return vi(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||Gq,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(t){this.debug=t}},{key:"log",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}},{key:"warn",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}},{key:"error",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}},{key:"deprecate",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(t,n,r,i){return i&&!this.debug?null:(typeof t[0]=="string"&&(t[0]="".concat(r).concat(this.prefix," ").concat(t[0])),this.logger[n](t))}},{key:"create",value:function(t){return new e(this.logger,Ct({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),wo=function(){function e(){gi(this,e),this.observers={}}return vi(e,[{key:"on",value:function(t,n){var r=this;return t.split(" ").forEach(function(i){r.observers[i]=r.observers[i]||[],r.observers[i].push(n)}),this}},{key:"off",value:function(t,n){this.observers[t]&&(n?this.observers[t]=this.observers[t].filter(function(r){return r!==n}):delete this.observers[t])}},{key:"emit",value:function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if(this.observers[t]){var o=[].concat(this.observers[t]);o.forEach(function(u){u.apply(void 0,r)})}if(this.observers["*"]){var a=[].concat(this.observers["*"]);a.forEach(function(u){u.apply(u,[t].concat(r))})}}}]),e}();function _l(){var e,t,n=new Promise(function(r,i){e=r,t=i});return n.resolve=e,n.reject=t,n}function RC(e){return e==null?"":""+e}function Kq(e,t,n){e.forEach(function(r){t[r]&&(n[r]=t[r])})}function Gw(e,t,n){function r(u){return u&&u.indexOf("###")>-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 jC(e,t,n){var r=Gw(e,t,Object);r.obj[r.k]=n}function jh(e,t){var n=Gw(e,t),r=n.obj,i=n.k;if(r)return r[i]}function LC(e,t,n){var r=jh(e,n);return r!==void 0?r:jh(t,n)}function QB(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]):QB(e[r],t[r],n):e[r]=t[r]);return e}function yu(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Yq={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function Xq(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return Yq[t]}):e}var x0=typeof window<"u"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function eF(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;o<r.length;++o){if(!i||typeof i[r[o]]=="string"&&o+1<r.length)return;if(i[r[o]]===void 0){for(var a=2,u=r.slice(o,o+a).join(n),s=i[u];s===void 0&&r.length>o+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?eF(s,l,n):void 0}i=i[r[o]]}return i}}var Jq=function(e){function t(n){var r,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return gi(this,t),r=df(this,Ss(t).call(this)),x0&&wo.call(La(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 D0(t,wo),vi(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=jh(this.data,s);return l||!u||typeof i!="string"?l:eF(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),jC(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=jh(this.data,s)||{};o?QB(l,i,a):l=Ct({},l,i),jC(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"?Ct({},{},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}(),tF={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}},MC={},zC=function(e){function t(n){var r,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return gi(this,t),r=df(this,Ss(t).call(this)),x0&&wo.call(La(r)),Kq(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,La(r)),r.options=i,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.logger=li.create("translator"),r}return D0(t,wo),vi(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(ro(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 v=this.resolve(n,r),m=v&&v.res,g=v&&v.usedKey||s,y=v&&v.exactUsedKey||s,h=Object.prototype.toString.apply(m),$=["[object Number]","[object Function]","[object RegExp]"],w=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,C=!this.i18nFormat||this.i18nFormat.handleAsObject,D=typeof m!="string"&&typeof m!="boolean"&&typeof m!="number";if(C&&m&&D&&$.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,m,Ct({},r,{ns:l})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(a){var A=h==="[object Array]",I=A?[]:{},M=A?y:g;for(var V in m)if(Object.prototype.hasOwnProperty.call(m,V)){var Y="".concat(M).concat(a).concat(V);I[V]=this.translate(Y,Ct({},r,{joinArrays:!1,ns:l})),I[V]===Y&&(I[V]=m[V])}m=I}}else if(C&&typeof w=="string"&&h==="[object Array]")(m=m.join(w))&&(m=this.extendTranslation(m,n,r,i));else{var J=!1,Z=!1,se=r.count!==void 0&&typeof r.count!="string",ee=t.hasDefaultValue(r),ae=se?this.pluralResolver.getSuffix(f,r.count):"",fe=r["defaultValue".concat(ae)]||r.defaultValue;!this.isValidLookup(m)&&ee&&(J=!0,m=fe),this.isValidLookup(m)||(Z=!0,m=s);var _e=r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,ve=_e&&Z?void 0:m,ie=ee&&fe!==m&&this.options.updateMissing;if(Z||J||ie){if(this.logger.log(ie?"updateKey":"missingKey",f,c,s,ie?fe:m),a){var Ie=this.resolve(s,Ct({},r,{keySeparator:!1}));Ie&&Ie.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;k<F.length;k++)T.push(F[k]);else this.options.saveMissingTo==="all"?T=this.languageUtils.toResolveHierarchy(r.lng||this.language):T.push(r.lng||this.language);var N=function(H,j,Q){o.options.missingKeyHandler?o.options.missingKeyHandler(H,c,j,ie?Q:ve,ie,r):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(H,c,j,ie?Q:ve,ie,r),o.emit("missingKey",H,c,j,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&se?T.forEach(function(H){o.pluralResolver.getSuffixes(H).forEach(function(j){N([H],s+j,r["defaultValue".concat(j)]||fe)})}):N(T,s,fe))}m=this.extendTranslation(m,n,r,v,i),Z&&m===s&&this.options.appendNamespaceToMissingKey&&(m="".concat(c,":").concat(s)),(Z||J)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(m))}return m}},{key:"extendTranslation",value:function(n,r,i,o,a){var u=this;if(this.i18nFormat&&this.i18nFormat.parse)n=this.i18nFormat.parse(n,i,o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init(Ct({},i,{interpolation:Ct({},this.options.interpolation,i.interpolation)}));var s,l=i.interpolation&&i.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(l){var c=n.match(this.interpolator.nestingRegexp);s=c&&c.length}var f=i.replace&&typeof i.replace!="string"?i.replace:i;if(this.options.interpolation.defaultVariables&&(f=Ct({},this.options.interpolation.defaultVariables,f)),n=this.interpolator.interpolate(n,f,i.lng||this.language,i),l){var d=n.match(this.interpolator.nestingRegexp);s<(d&&d.length)&&(i.nest=!1)}i.nest!==!1&&(n=this.interpolator.nest(n,function(){for(var m=arguments.length,g=new Array(m),y=0;y<m;y++)g[y]=arguments[y];return a&&a[0]===g[0]&&!i.context?(u.logger.warn("It seems you are nesting recursively key: ".concat(g[0]," in key: ").concat(r[0])),null):u.translate.apply(u,g.concat([r]))},i)),i.interpolation&&this.interpolator.reset()}var p=i.postProcess||this.options.postProcess,v=typeof p=="string"?[p]:p;return n!=null&&v&&v.length&&i.applyPostProcessor!==!1&&(n=tF.handle(v,n,r,this.options&&this.options.postProcessPassResolved?Ct({i18nResolved:o},i):i,this)),n}},{key:"resolve",value:function(n){var r,i,o,a,u,s=this,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof n=="string"&&(n=[n]),n.forEach(function(c){if(!s.isValidLookup(r)){var f=s.extractFromKey(c,l),d=f.key;i=d;var p=f.namespaces;s.options.fallbackNS&&(p=p.concat(s.options.fallbackNS));var v=l.count!==void 0&&typeof l.count!="string",m=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,!MC["".concat(g[0],"-").concat(y)]&&s.utils&&s.utils.hasLoadedNamespace&&!s.utils.hasLoadedNamespace(u)&&(MC["".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,C=d,D=[C];for(s.i18nFormat&&s.i18nFormat.addLookupKeys?s.i18nFormat.addLookupKeys(D,d,h,y,l):(v&&($=s.pluralResolver.getSuffix(h,l.count)),v&&m&&D.push(C+$),m&&D.push(C+="".concat(s.options.contextSeparator).concat(l.context)),v&&D.push(C+=$));w=D.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 nm(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Zq=function(){function e(t){gi(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=li.create("languageUtils")}return vi(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]=nm(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]=nm(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=nm(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}(),Qq=[{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}],eG={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 tG(){var e={};return Qq.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:eG[t.fc]}})}),e}var nG=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};gi(this,e),this.languageUtils=t,this.options=n,this.logger=li.create("pluralResolver"),this.rules=tG()}return vi(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}(),rG=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};gi(this,e),this.logger=li.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return vi(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:Xq,this.escapeValue=n.escapeValue===void 0||n.escapeValue,this.useRawValueToEscape=n.useRawValueToEscape!==void 0&&n.useRawValueToEscape,this.prefix=n.prefix?yu(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?yu(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?yu(n.nestingPrefix):n.nestingPrefixEscaped||yu("$t("),this.nestingSuffix=n.nestingSuffix?yu(n.nestingSuffix):n.nestingSuffixEscaped||yu(")"),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(m){return m.replace(/\$/g,"$$$$")}var f=function(m){if(m.indexOf(s.formatSeparator)<0){var g=LC(n,l,m);return s.alwaysFormat?s.format(g,void 0,r,Ct({},i,n,{interpolationkey:m})):g}var y=m.split(s.formatSeparator),h=y.shift().trim(),$=y.join(s.formatSeparator).trim();return s.format(LC(n,l,h),$,r,Ct({},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,v=[{regex:this.regexpUnescape,safeValue:function(m){return c(m)}},{regex:this.regexp,safeValue:function(m){return s.escapeValue?c(s.escape(m)):c(m)}}];return v.forEach(function(m){for(u=0;o=m.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=RC(a));var y=m.safeValue(a);if(t=t.replace(o[0],y),p?(m.regex.lastIndex+=y.length,m.regex.lastIndex-=o[0].length):m.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=Ct({},a);function s(d,p){var v=this.nestingOptionsSeparator;if(d.indexOf(v)<0)return d;var m=d.split(new RegExp("".concat(v,"[ ]*{"))),g="{".concat(m[1]);d=m[0],g=(g=this.interpolate(g,u)).replace(/'/g,'"');try{u=JSON.parse(g),p&&(u=Ct({},p,u))}catch(y){return this.logger.warn("failed parsing options string in nesting for key ".concat(d),y),"".concat(d).concat(v).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=RC(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,Ct({},a,{interpolationkey:r[1].trim()}))},i.trim())),t=t.replace(r[0],i),this.regexp.lastIndex=0}return t}}]),e}(),iG=function(e){function t(n,r,i){var o,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return gi(this,t),o=df(this,Ss(t).call(this)),x0&&wo.call(La(o)),o.backend=n,o.store=r,o.services=i,o.languageUtils=i.languageUtils,o.options=a,o.logger=li.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(i,a.backend,a),o}return D0(t,wo),vi(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 v="".concat(f,"|").concat(p);!i.reload&&a.store.hasResourceBundle(f,p)?a.state[v]=2:a.state[v]<0||(a.state[v]===1?s.indexOf(v)<0&&s.push(v):(a.state[v]=1,d=!1,s.indexOf(v)<0&&s.push(v),u.indexOf(v)<0&&u.push(v),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 v=Gw(c,f,Object),m=v.obj,g=v.k;m[g]=m[g]||[],p&&(m[g]=m[g].concat(d)),p||m[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,Ct({},u,{isUpdate:a})),n&&n[0]&&this.store.addResource(n[0],r,i,o))}}]),t}();function oG(){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(ro(e[1])==="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),ro(e[2])==="object"||ro(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 HC(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 rp(){}var aG=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(gi(this,t),n=df(this,Ss(t).call(this)),x0&&wo.call(La(n)),n.options=HC(r),n.services={},n.logger=li,n.modules={external:[]},i&&!n.isInitialized&&!r.isClone){if(!n.options.initImmediate)return n.init(r,i),df(n,La(n));setTimeout(function(){n.init(r,i)},0)}return n}return D0(t,wo),vi(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=Ct({},oG(),this.options,HC(r)),this.format=this.options.interpolation.format,i||(i=rp),!this.options.isClone){this.modules.logger?li.init(o(this.modules.logger),this.options):li.init(null,this.options);var a=new Zq(this.options);this.store=new Jq(this.options.resources,this.options);var u=this.services;u.logger=li,u.resourceStore=this.store,u.languageUtils=a,u.pluralResolver=new nG(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u.interpolator=new rG(this.options),u.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},u.backendConnector=new iG(o(this.modules.backend),u.resourceStore,u,this.options),u.backendConnector.on("*",function(p){for(var v=arguments.length,m=new Array(v>1?v-1:0),g=1;g<v;g++)m[g-1]=arguments[g];n.emit.apply(n,[p].concat(m))}),this.modules.languageDetector&&(u.languageDetector=o(this.modules.languageDetector),u.languageDetector.init(u,this.options.detection,this.options)),this.modules.i18nFormat&&(u.i18nFormat=o(this.modules.i18nFormat),u.i18nFormat.init&&u.i18nFormat.init(this)),this.translator=new zC(this.services,this.options),this.translator.on("*",function(p){for(var v=arguments.length,m=new Array(v>1?v-1:0),g=1;g<v;g++)m[g-1]=arguments[g];n.emit.apply(n,[p].concat(m))}),this.modules.external.forEach(function(p){p.init&&p.init(n)})}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.length>0&&s[0]!=="dev"&&(this.options.lng=s[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var l=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];l.forEach(function(p){n[p]=function(){var v;return(v=n.store)[p].apply(v,arguments)}});var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach(function(p){n[p]=function(){var v;return(v=n.store)[p].apply(v,arguments),n}});var f=_l(),d=function(){var p=function(v,m){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(m),i(v,m)};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]:rp,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=_l();return n||(n=this.languages),r||(r=this.options.ns),i||(i=rp),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"&&tF.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=_l();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(ro(l)!=="object"){for(var f=arguments.length,d=new Array(f>2?f-2:0),p=2;p<f;p++)d[p-2]=arguments[p];c=o.options.overloadTranslationOptionHandler([s,l].concat(d))}else c=Ct({},l);c.lng=c.lng||u.lng,c.lngs=c.lngs||u.lngs,c.ns=c.ns||u.ns;var v=o.options.keySeparator||".",m=i?"".concat(i).concat(v).concat(s):s;return o.t(m,c)};return typeof n=="string"?a.lng=n:a.lngs=n,a.ns=r,a.keyPrefix=i,a}},{key:"t",value:function(){var n;return this.translator&&(n=this.translator).translate.apply(n,arguments)}},{key:"exists",value:function(){var n;return this.translator&&(n=this.translator).exists.apply(n,arguments)}},{key:"setDefaultNamespace",value:function(n){this.options.defaultNS=n}},{key:"hasLoadedNamespace",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var 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=_l();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=_l();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]:rp,o=Ct({},this.options,r,{isClone:!0}),a=new t(o),u=["store","services","language"];return u.forEach(function(s){a[s]=n[s]}),a.services=Ct({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new zC(a.services,a.options),a.translator.on("*",function(s){for(var l=arguments.length,c=new Array(l>1?l-1:0),f=1;f<l;f++)c[f-1]=arguments[f];a.emit.apply(a,[s].concat(c))}),a.init(o,i),a.translator.options=a.options,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),t}(),Lh=new aG,uG="translation";function vn(e,t){Lh.addResourceBundle(e,uG,t,!0,!0)}Lh.init({lng:"zh-CN",resources:{}});var q=Lh.t.bind(Lh),sG={editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}},lG={editor:{more:"\u66F4\u591A",justify:"\u5BF9\u9F50",indent:"\u7F29\u8FDB",image:"\u56FE\u7247",video:"\u89C6\u9891"}};vn("en",sG);vn("zh-CN",lG);vn("en",{common:{ok:"OK",delete:"Delete",enter:"Enter"},blockQuote:{title:"Quote"},codeBlock:{title:"Code block"},color:{color:"Font color",bgColor:"Back color",default:"Default color",clear:"Clear back color"},divider:{title:"Divider"},emotion:{title:"Emotion"},fontSize:{title:"Font size",default:"Default"},fontFamily:{title:"Font family",default:"Default"},fullScreen:{title:"Full screen"},header:{title:"Header",text:"Text"},image:{netImage:"Net image",delete:"Delete image",edit:"Edit image",viewLink:"View link",src:"Image src",desc:"Description",link:"Image link"},indent:{decrease:"Decrease",increase:"Increase"},justify:{left:"Left",right:"Right",center:"Center",justify:"Justify"},lineHeight:{title:"Line height",default:"Default"},link:{insert:"Insert link",text:"Link text",url:"Link source",unLink:"Unlink",edit:"Edit link",view:"View link"},textStyle:{bold:"Bold",clear:"Clear styles",code:"Inline code",italic:"Italic",sub:"Sub",sup:"Sup",through:"Through",underline:"Underline"},undo:{undo:"undo",redo:"Redo"},todo:{todo:"Todo"}}),vn("zh-CN",{common:{ok:"\u786E\u5B9A",delete:"\u5220\u9664",enter:"\u56DE\u8F66"},blockQuote:{title:"\u5F15\u7528"},codeBlock:{title:"\u4EE3\u7801\u5757"},color:{color:"\u6587\u5B57\u989C\u8272",bgColor:"\u80CC\u666F\u8272",default:"\u9ED8\u8BA4\u989C\u8272",clear:"\u6E05\u9664\u80CC\u666F\u8272"},divider:{title:"\u5206\u5272\u7EBF"},emotion:{title:"\u8868\u60C5"},fontSize:{title:"\u5B57\u53F7",default:"\u9ED8\u8BA4\u5B57\u53F7"},fontFamily:{title:"\u5B57\u4F53",default:"\u9ED8\u8BA4\u5B57\u4F53"},fullScreen:{title:"\u5168\u5C4F"},header:{title:"\u6807\u9898",text:"\u6B63\u6587"},image:{netImage:"\u7F51\u7EDC\u56FE\u7247",delete:"\u5220\u9664\u56FE\u7247",edit:"\u7F16\u8F91\u56FE\u7247",viewLink:"\u67E5\u770B\u94FE\u63A5",src:"\u56FE\u7247\u5730\u5740",desc:"\u56FE\u7247\u63CF\u8FF0",link:"\u56FE\u7247\u94FE\u63A5"},indent:{decrease:"\u51CF\u5C11\u7F29\u8FDB",increase:"\u589E\u52A0\u7F29\u8FDB"},justify:{left:"\u5DE6\u5BF9\u9F50",right:"\u53F3\u5BF9\u9F50",center:"\u5C45\u4E2D\u5BF9\u9F50",justify:"\u4E24\u7AEF\u5BF9\u9F50"},lineHeight:{title:"\u884C\u9AD8",default:"\u9ED8\u8BA4\u884C\u9AD8"},link:{insert:"\u63D2\u5165\u94FE\u63A5",text:"\u94FE\u63A5\u6587\u672C",url:"\u94FE\u63A5\u5730\u5740",unLink:"\u53D6\u6D88\u94FE\u63A5",edit:"\u4FEE\u6539\u94FE\u63A5",view:"\u67E5\u770B\u94FE\u63A5"},textStyle:{bold:"\u7C97\u4F53",clear:"\u6E05\u9664\u683C\u5F0F",code:"\u884C\u5185\u4EE3\u7801",italic:"\u659C\u4F53",sub:"\u4E0B\u6807",sup:"\u4E0A\u6807",through:"\u5220\u9664\u7EBF",underline:"\u4E0B\u5212\u7EBF"},undo:{undo:"\u64A4\u9500",redo:"\u91CD\u505A"},todo:{todo:"\u5F85\u529E"}});var cG={type:"paragraph",renderElem:function(e,t,n){return de("p",null,t)}},fG={type:"paragraph",elemToHtml:function(e,t){return t===""?"<p><br></p>":"<p>"+t+"</p>"}},Mh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function dG(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function S0(e){var t={exports:{}};return e(t,t.exports),t.exports}var Ti,qp,ip=function(e){return e&&e.Math==Math&&e},ge=ip(typeof globalThis=="object"&&globalThis)||ip(typeof window=="object"&&window)||ip(typeof self=="object"&&self)||ip(typeof Mh=="object"&&Mh)||function(){return this}()||Function("return this")(),ut=function(e){try{return!!e()}catch{return!0}},hr=!ut(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Pl=Function.prototype.call,pt=Pl.bind?Pl.bind(Pl):function(){return Pl.apply(Pl,arguments)},UC={}.propertyIsEnumerable,VC=Object.getOwnPropertyDescriptor,pG=VC&&!UC.call({1:2},1)?function(e){var t=VC(this,e);return!!t&&t.enumerable}:UC,nF={f:pG},Kw=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},rF=Function.prototype,Ob=rF.bind,Bb=rF.call,hG=Ob&&Ob.bind(Bb),le=Ob?function(e){return e&&hG(Bb,e)}:function(e){return e&&function(){return Bb.apply(e,arguments)}},gG=le({}.toString),vG=le("".slice),io=function(e){return vG(gG(e),8,-1)},rm=ge.Object,mG=le("".split),A0=ut(function(){return!rm("z").propertyIsEnumerable(0)})?function(e){return io(e)=="String"?mG(e,""):rm(e)}:rm,yG=ge.TypeError,er=function(e){if(e==null)throw yG("Can't call method on "+e);return e},Hs=function(e){return A0(er(e))},Ut=function(e){return typeof e=="function"},Vn=function(e){return typeof e=="object"?e!==null:Ut(e)},bG=function(e){return Ut(e)?e:void 0},Jf=function(e,t){return arguments.length<2?bG(ge[e]):ge[e]&&ge[e][t]},iF=le({}.isPrototypeOf),im=Jf("navigator","userAgent")||"",WC=ge.process,qC=ge.Deno,GC=WC&&WC.versions||qC&&qC.version,KC=GC&&GC.v8;KC&&(qp=(Ti=KC.split("."))[0]>0&&Ti[0]<4?1:+(Ti[0]+Ti[1])),!qp&&im&&(!(Ti=im.match(/Edge\/(\d+)/))||Ti[1]>=74)&&(Ti=im.match(/Chrome\/(\d+)/))&&(qp=+Ti[1]);var Fb=qp,Tb=!!Object.getOwnPropertySymbols&&!ut(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Fb&&Fb<41}),Yw=Tb&&!Symbol.sham&&typeof Symbol.iterator=="symbol",$G=ge.Object,kb=Yw?function(e){return typeof e=="symbol"}:function(e){var t=Jf("Symbol");return Ut(t)&&iF(t.prototype,$G(e))},wG=ge.String,oF=function(e){try{return wG(e)}catch{return"Object"}},EG=ge.TypeError,aF=function(e){if(Ut(e))return e;throw EG(oF(e)+" is not a function")},O0=function(e,t){var n=e[t];return n==null?void 0:aF(n)},CG=ge.TypeError,DG=Object.defineProperty,Xw=function(e,t){try{DG(ge,e,{value:t,configurable:!0,writable:!0})}catch{ge[e]=t}return t},oo=ge["__core-js_shared__"]||Xw("__core-js_shared__",{}),Jw=S0(function(e){(e.exports=function(t,n){return oo[t]||(oo[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),xG=ge.Object,Zf=function(e){return xG(er(e))},SG=le({}.hasOwnProperty),Kn=Object.hasOwn||function(e,t){return SG(Zf(e),t)},AG=0,OG=Math.random(),BG=le(1 .toString),uF=function(e){return"Symbol("+(e===void 0?"":e)+")_"+BG(++AG+OG,36)},Nl=Jw("wks"),ya=ge.Symbol,YC=ya&&ya.for,FG=Yw?ya:ya&&ya.withoutSetter||uF,_n=function(e){if(!Kn(Nl,e)||!Tb&&typeof Nl[e]!="string"){var t="Symbol."+e;Tb&&Kn(ya,e)?Nl[e]=ya[e]:Nl[e]=Yw&&YC?YC(t):FG(t)}return Nl[e]},TG=ge.TypeError,kG=_n("toPrimitive"),_G=function(e,t){if(!Vn(e)||kb(e))return e;var n,r=O0(e,kG);if(r){if(t===void 0&&(t="default"),n=pt(r,e,t),!Vn(n)||kb(n))return n;throw TG("Can't convert object to primitive value")}return t===void 0&&(t="number"),function(i,o){var a,u;if(o==="string"&&Ut(a=i.toString)&&!Vn(u=pt(a,i))||Ut(a=i.valueOf)&&!Vn(u=pt(a,i))||o!=="string"&&Ut(a=i.toString)&&!Vn(u=pt(a,i)))return u;throw CG("Can't convert object to primitive value")}(e,t)},Zw=function(e){var t=_G(e,"string");return kb(t)?t:t+""},_b=ge.document,PG=Vn(_b)&&Vn(_b.createElement),Qw=function(e){return PG?_b.createElement(e):{}},sF=!hr&&!ut(function(){return Object.defineProperty(Qw("div"),"a",{get:function(){return 7}}).a!=7}),XC=Object.getOwnPropertyDescriptor,e3={f:hr?XC:function(e,t){if(e=Hs(e),t=Zw(t),sF)try{return XC(e,t)}catch{}if(Kn(e,t))return Kw(!pt(nF.f,e,t),e[t])}},NG=ge.String,IG=ge.TypeError,Bn=function(e){if(Vn(e))return e;throw IG(NG(e)+" is not an object")},RG=ge.TypeError,JC=Object.defineProperty,Us={f:hr?JC:function(e,t,n){if(Bn(e),t=Zw(t),Bn(n),sF)try{return JC(e,t,n)}catch{}if("get"in n||"set"in n)throw RG("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},As=hr?function(e,t,n){return Us.f(e,t,Kw(1,n))}:function(e,t,n){return e[t]=n,e},jG=le(Function.toString);Ut(oo.inspectSource)||(oo.inspectSource=function(e){return jG(e)});var zh,Ic,Hh,t3=oo.inspectSource,ZC=ge.WeakMap,LG=Ut(ZC)&&/native code/.test(t3(ZC)),QC=Jw("keys"),lF=function(e){return QC[e]||(QC[e]=uF(e))},n3={},Pb=ge.TypeError,MG=ge.WeakMap;if(LG||oo.state){var qo=oo.state||(oo.state=new MG),zG=le(qo.get),eD=le(qo.has),HG=le(qo.set);zh=function(e,t){if(eD(qo,e))throw new Pb("Object already initialized");return t.facade=e,HG(qo,e,t),t},Ic=function(e){return zG(qo,e)||{}},Hh=function(e){return eD(qo,e)}}else{var bu=lF("state");n3[bu]=!0,zh=function(e,t){if(Kn(e,bu))throw new Pb("Object already initialized");return t.facade=e,As(e,bu,t),t},Ic=function(e){return Kn(e,bu)?e[bu]:{}},Hh=function(e){return Kn(e,bu)}}var Nb={set:zh,get:Ic,has:Hh,enforce:function(e){return Hh(e)?Ic(e):zh(e,{})},getterFor:function(e){return function(t){var n;if(!Vn(t)||(n=Ic(t)).type!==e)throw Pb("Incompatible receiver, "+e+" required");return n}}},cF=Function.prototype,UG=hr&&Object.getOwnPropertyDescriptor,om=Kn(cF,"name"),B0={EXISTS:om,PROPER:om&&function(){}.name==="something",CONFIGURABLE:om&&(!hr||hr&&UG(cF,"name").configurable)},pf=S0(function(e){var t=B0.CONFIGURABLE,n=Nb.get,r=Nb.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;Ut(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Kn(u,"name")||t&&u.name!==p)&&As(u,"name",p),(l=r(u)).source||(l.source=i.join(typeof p=="string"?p:""))),o!==ge?(c?!d&&o[a]&&(f=!0):delete o[a],f?o[a]=u:As(o,a,u)):f?o[a]=u:Xw(a,u)})(Function.prototype,"toString",function(){return Ut(this)&&n(this).source||t3(this)})}),VG=Math.ceil,WG=Math.floor,Vs=function(e){var t=+e;return t!=t||t===0?0:(t>0?WG:VG)(t)},qG=Math.max,GG=Math.min,hf=function(e,t){var n=Vs(e);return n<0?qG(n+t,0):GG(n,t)},KG=Math.min,Qf=function(e){return e>0?KG(Vs(e),9007199254740991):0},F0=function(e){return Qf(e.length)},tD=function(e){return function(t,n,r){var i,o=Hs(t),a=F0(o),u=hf(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}},fF={includes:tD(!0),indexOf:tD(!1)},YG=fF.indexOf,nD=le([].push),dF=function(e,t){var n,r=Hs(e),i=0,o=[];for(n in r)!Kn(n3,n)&&Kn(r,n)&&nD(o,n);for(;t.length>i;)Kn(r,n=t[i++])&&(~YG(o,n)||nD(o,n));return o},Uh=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],XG=Uh.concat("length","prototype"),JG={f:Object.getOwnPropertyNames||function(e){return dF(e,XG)}},pF={f:Object.getOwnPropertySymbols},ZG=le([].concat),QG=Jf("Reflect","ownKeys")||function(e){var t=JG.f(Bn(e)),n=pF.f;return n?ZG(t,n(e)):t},eK=function(e,t){for(var n=QG(t),r=Us.f,i=e3.f,o=0;o<n.length;o++){var a=n[o];Kn(e,a)||r(e,a,i(t,a))}},tK=/#|\.prototype\./,ed=function(e,t){var n=rK[nK(e)];return n==oK||n!=iK&&(Ut(t)?ut(t):!!t)},nK=ed.normalize=function(e){return String(e).replace(tK,".").toLowerCase()},rK=ed.data={},iK=ed.NATIVE="N",oK=ed.POLYFILL="P",aK=ed,uK=e3.f,_t=function(e,t){var n,r,i,o,a,u=e.target,s=e.global,l=e.stat;if(n=s?ge:l?ge[u]||Xw(u,{}):(ge[u]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=uK(n,r))&&a.value:n[r],!aK(s?r:u+(l?".":"#")+r,e.forced)&&i!==void 0){if(typeof o==typeof i)continue;eK(o,i)}(e.sham||i&&i.sham)&&As(o,"sham",!0),pf(n,r,o,e)}},rD=le(le.bind),Vh=Array.isArray||function(e){return io(e)=="Array"},hF={};hF[_n("toStringTag")]="z";var r3=String(hF)==="[object z]",sK=_n("toStringTag"),lK=ge.Object,cK=io(function(){return arguments}())=="Arguments",i3=r3?io:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(i,o){try{return i[o]}catch{}}(t=lK(e),sK))=="string"?n:cK?io(t):(r=io(t))=="Object"&&Ut(t.callee)?"Arguments":r},gF=function(){},fK=[],vF=Jf("Reflect","construct"),o3=/^\s*(?:class|function)\b/,dK=le(o3.exec),pK=!o3.exec(gF),Il=function(e){if(!Ut(e))return!1;try{return vF(gF,fK,e),!0}catch{return!1}},a3=!vF||ut(function(){var e;return Il(Il.call)||!Il(Object)||!Il(function(){e=!0})||e})?function(e){if(!Ut(e))return!1;switch(i3(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return pK||!!dK(o3,t3(e))}:Il,hK=_n("species"),iD=ge.Array,gK=function(e,t){return new(function(n){var r;return Vh(n)&&(r=n.constructor,(a3(r)&&(r===iD||Vh(r.prototype))||Vn(r)&&(r=r[hK])===null)&&(r=void 0)),r===void 0?iD:r}(e))(t===0?0:t)},oD=le([].push),ki=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,v=Zf(s),m=A0(v),g=function(C,D){return aF(C),D===void 0?C:rD?rD(C,D):function(){return C.apply(D,arguments)}}(l,c),y=F0(m),h=0,$=f||gK,w=t?$(s,y):n||a?$(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),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:oD(w,d)}else switch(e){case 4:return!1;case 7:oD(w,d)}return o?-1:r||i?i:w}},T0={forEach:ki(0),map:ki(1),filter:ki(2),some:ki(3),every:ki(4),find:ki(5),findIndex:ki(6),filterReject:ki(7)},vK=_n("species"),u3=function(e){return Fb>=51||!ut(function(){var t=[];return(t.constructor={})[vK]=function(){return{foo:1}},t[e](Boolean).foo!==1})},mK=T0.filter;_t({target:"Array",proto:!0,forced:!u3("filter")},{filter:function(e){return mK(this,e,arguments.length>1?arguments[1]:void 0)}});var yK=r3?{}.toString:function(){return"[object "+i3(this)+"]"};r3||pf(Object.prototype,"toString",yK,{unsafe:!0});var op,bK=ge.String,it=function(e){if(i3(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return bK(e)},mF=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},s3=ge.RegExp,Ib=ut(function(){var e=s3("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),$K=Ib||ut(function(){return!s3("a","y").sticky}),yF={BROKEN_CARET:Ib||ut(function(){var e=s3("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:$K,UNSUPPORTED_Y:Ib},ts=Object.keys||function(e){return dF(e,Uh)},wK=hr?Object.defineProperties:function(e,t){Bn(e);for(var n,r=Hs(t),i=ts(t),o=i.length,a=0;o>a;)Us.f(e,n=i[a++],r[n]);return e},EK=Jf("document","documentElement"),bF=lF("IE_PROTO"),am=function(){},$F=function(e){return"<script>"+e+"<\/script>"},aD=function(e){e.write($F("")),e.close();var t=e.parentWindow.Object;return e=null,t},Gp=function(){try{op=new ActiveXObject("htmlfile")}catch{}var e,t;Gp=typeof document<"u"?document.domain&&op?aD(op):((t=Qw("iframe")).style.display="none",EK.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write($F("document.F=Object")),e.close(),e.F):aD(op);for(var n=Uh.length;n--;)delete Gp.prototype[Uh[n]];return Gp()};n3[bF]=!0;var uD,um,wF=Object.create||function(e,t){var n;return e!==null?(am.prototype=Bn(e),n=new am,am.prototype=null,n[bF]=e):n=Gp(),t===void 0?n:wK(n,t)},CK=ge.RegExp,DK=ut(function(){var e=CK(".","s");return!(e.dotAll&&e.exec(`
|
||
`)&&e.flags==="s")}),xK=ge.RegExp,SK=ut(function(){var e=xK("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),AK=Nb.get,OK=Jw("native-string-replace",String.prototype.replace),Wh=RegExp.prototype.exec,Rb=Wh,BK=le("".charAt),FK=le("".indexOf),TK=le("".replace),sm=le("".slice),lm=(um=/b*/g,pt(Wh,uD=/a/,"a"),pt(Wh,um,"a"),uD.lastIndex!==0||um.lastIndex!==0),sD=yF.BROKEN_CARET,cm=/()??/.exec("")[1]!==void 0;(lm||cm||sD||DK||SK)&&(Rb=function(e){var t,n,r,i,o,a,u,s=this,l=AK(s),c=it(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=pt(Rb,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=sD&&s.sticky,v=pt(mF,s),m=s.source,g=0,y=c;if(p&&(v=TK(v,"y",""),FK(v,"g")===-1&&(v+="g"),y=sm(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&BK(c,s.lastIndex-1)!==`
|
||
`)&&(m="(?: "+m+")",y=" "+y,g++),n=new RegExp("^(?:"+m+")",v)),cm&&(n=new RegExp("^"+m+"$(?!\\s)",v)),lm&&(r=s.lastIndex),i=pt(Wh,p?n:s,y),p?i?(i.input=sm(i.input,g),i[0]=sm(i[0],g),i.index=s.lastIndex,s.lastIndex+=i[0].length):s.lastIndex=0:lm&&i&&(s.lastIndex=s.global?i.index+i[0].length:r),cm&&i&&i.length>1&&pt(OK,i[0],n,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(i[o]=void 0)}),i&&d)for(i.groups=a=wF(null),o=0;o<d.length;o++)a[(u=d[o])[0]]=i[u[1]];return i});var gf=Rb;_t({target:"RegExp",proto:!0,forced:/./.exec!==gf},{exec:gf});var l3=Function.prototype,lD=l3.apply,kK=l3.bind,cD=l3.call,EF=typeof Reflect=="object"&&Reflect.apply||(kK?cD.bind(lD):function(){return cD.apply(lD,arguments)}),_K=_n("species"),fm=RegExp.prototype,c3=function(e,t,n,r){var i=_n(e),o=!ut(function(){var l={};return l[i]=function(){return 7},""[e](l)!=7}),a=o&&!ut(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[_K]=function(){return c},c.flags="",c[i]=/./[i]),c.exec=function(){return l=!0,null},c[i](""),!l});if(!o||!a||n){var u=le(/./[i]),s=t(i,""[e],function(l,c,f,d,p){var v=le(l),m=c.exec;return m===gf||m===fm.exec?o&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});pf(String.prototype,e,s[0]),pf(fm,i,s[1])}r&&As(fm[i],"sham",!0)},PK=le("".charAt),fD=le("".charCodeAt),NK=le("".slice),dD=function(e){return function(t,n){var r,i,o=it(er(t)),a=Vs(n),u=o.length;return a<0||a>=u?e?"":void 0:(r=fD(o,a))<55296||r>56319||a+1===u||(i=fD(o,a+1))<56320||i>57343?e?PK(o,a):r:e?NK(o,a,a+2):i-56320+(r-55296<<10)+65536}},IK={codeAt:dD(!1),charAt:dD(!0)}.charAt,f3=function(e,t,n){return t+(n?IK(e,t).length:1)},RK=Math.floor,dm=le("".charAt),jK=le("".replace),pm=le("".slice),LK=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,MK=/\$([$&'`]|\d{1,2})/g,zK=function(e,t,n,r,i,o){var a=n+e.length,u=r.length,s=MK;return i!==void 0&&(i=Zf(i),s=LK),jK(o,s,function(l,c){var f;switch(dm(c,0)){case"$":return"$";case"&":return e;case"`":return pm(t,0,n);case"'":return pm(t,a);case"<":f=i[pm(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=RK(d/10);return p===0?l:p<=u?r[p-1]===void 0?dm(c,1):r[p-1]+dm(c,1):l}f=r[d-1]}return f===void 0?"":f})},HK=ge.TypeError,vf=function(e,t){var n=e.exec;if(Ut(n)){var r=pt(n,e,t);return r!==null&&Bn(r),r}if(io(e)==="RegExp")return pt(gf,e,t);throw HK("RegExp#exec called on incompatible receiver")},jb=_n("replace"),UK=Math.max,VK=Math.min,WK=le([].concat),hm=le([].push),pD=le("".indexOf),hD=le("".slice),qK="a".replace(/./,"$0")==="$0",gD=!!/./[jb]&&/./[jb]("a","$0")==="";c3("replace",function(e,t,n){var r=gD?"$":"$0";return[function(i,o){var a=er(this),u=i==null?void 0:O0(i,jb);return u?pt(u,i,a,o):pt(t,it(a),i,o)},function(i,o){var a=Bn(this),u=it(i);if(typeof o=="string"&&pD(o,r)===-1&&pD(o,"$<")===-1){var s=n(t,a,u,o);if(s.done)return s.value}var l=Ut(o);l||(o=it(o));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=vf(a,u);if(p===null||(hm(d,p),!c))break;it(p[0])===""&&(a.lastIndex=f3(u,Qf(a.lastIndex),f))}for(var v,m="",g=0,y=0;y<d.length;y++){for(var h=it((p=d[y])[0]),$=UK(VK(Vs(p.index),u.length),0),w=[],C=1;C<p.length;C++)hm(w,(v=p[C])===void 0?v:String(v));var D=p.groups;if(l){var A=WK([h],w,$,u);D!==void 0&&hm(A,D);var I=it(EF(o,void 0,A))}else I=zK(h,u,$,w,D,o);$>=g&&(m+=hD(u,g,$)+I,g=$+h.length)}return m+hD(u,g)}]},!!ut(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!qK||gD);var Lb=_n("unscopables"),Mb=Array.prototype;Mb[Lb]==null&&Us.f(Mb,Lb,{configurable:!0,value:wF(null)});var CF=function(e){Mb[Lb][e]=!0},GK=T0.find,vD=!0;"find"in[]&&Array(1).find(function(){vD=!1}),_t({target:"Array",proto:!0,forced:vD},{find:function(e){return GK(this,e,arguments.length>1?arguments[1]:void 0)}}),CF("find");var KK=_n("match"),DF=function(e){var t;return Vn(e)&&((t=e[KK])!==void 0?!!t:io(e)=="RegExp")},YK=ge.TypeError,XK=_n("species"),JK=function(e,t){var n,r=Bn(e).constructor;return r===void 0||(n=Bn(r)[XK])==null?t:function(i){if(a3(i))return i;throw YK(oF(i)+" is not a constructor")}(n)},xF=function(e,t,n){var r=Zw(t);r in e?Us.f(e,r,Kw(0,n)):e[r]=n},ZK=ge.Array,QK=Math.max,mD=function(e,t,n){for(var r=F0(e),i=hf(t,r),o=hf(n===void 0?r:n,r),a=ZK(QK(o-i,0)),u=0;i<o;i++,u++)xF(a,u,e[i]);return a.length=u,a},$u=yF.UNSUPPORTED_Y,eY=Math.min,SF=[].push,tY=le(/./.exec),wu=le(SF),Rl=le("".slice);c3("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=it(er(this)),u=o===void 0?4294967295:o>>>0;if(u===0)return[];if(i===void 0)return[a];if(!DF(i))return pt(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,v=new RegExp(i.source,d+"g");(s=pt(gf,v,a))&&!((l=v.lastIndex)>p&&(wu(f,Rl(a,p,s.index)),s.length>1&&s.index<a.length&&EF(SF,f,mD(s,1)),c=s[0].length,p=l,f.length>=u));)v.lastIndex===s.index&&v.lastIndex++;return p===a.length?!c&&tY(v,"")||wu(f,""):wu(f,Rl(a,p)),f.length>u?mD(f,0,u):f}:"0".split(void 0,0).length?function(i,o){return i===void 0&&o===0?[]:pt(t,this,i,o)}:t,[function(i,o){var a=er(this),u=i==null?void 0:O0(i,e);return u?pt(u,i,a,o):pt(r,it(a),i,o)},function(i,o){var a=Bn(this),u=it(i),s=n(r,a,u,o,r!==t);if(s.done)return s.value;var l=JK(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+($u?"g":"y"),d=new l($u?"^(?:"+a.source+")":a,f),p=o===void 0?4294967295:o>>>0;if(p===0)return[];if(u.length===0)return vf(d,u)===null?[u]:[];for(var v=0,m=0,g=[];m<u.length;){d.lastIndex=$u?0:m;var y,h=vf(d,$u?Rl(u,m):u);if(h===null||(y=eY(Qf(d.lastIndex+($u?m:0)),u.length))===v)m=f3(u,m,c);else{if(wu(g,Rl(u,v,m)),g.length===p)return g;for(var $=1;$<=h.length-1;$++)if(wu(g,h[$]),g.length===p)return g;m=v=y}}return wu(g,Rl(u,v)),g}]},!!ut(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),$u);var jl,zb=`
|
||
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,yD=le("".replace),qh="["+zb+"]",nY=RegExp("^"+qh+qh+"*"),rY=RegExp(qh+qh+"*$"),gm=function(e){return function(t){var n=it(er(t));return 1&e&&(n=yD(n,nY,"")),2&e&&(n=yD(n,rY,"")),n}},iY={start:gm(1),end:gm(2),trim:gm(3)},oY=B0.PROPER,aY=iY.trim;function d3(e){return O("<div>"+e+"</div>").children().filter(function(t){return t.tagName!=="BR"}).length===0}function Ws(e){return e.length===0?"":e[0].outerHTML}function qs(e){return e.length?e[0].tagName.toLowerCase():""}function dr(e,t){for(var n="",r=(e.attr("style")||"").split(";"),i=r.length,o=0;o<i;o++){var a=r[o];if(a){var u=a.split(":");u[0].trim()===t&&(n=u[1].trim())}}return n}_t({target:"String",proto:!0,forced:(jl="trim",ut(function(){return!!zb[jl]()||"\u200B\x85\u180E"[jl]()!=="\u200B\x85\u180E"||oY&&zb[jl].name!==jl}))},{trim:function(){return aY(this)}}),_t({global:!0},{globalThis:ge}),yh&&(O.fn.css=yh),Ur&&(O.fn.append=Ur),p6&&(O.fn.prepend=p6),fs&&(O.fn.addClass=fs),ds&&(O.fn.removeClass=ds),ps&&(O.fn.hasClass=ps),Hr&&(O.fn.on=Hr),l6&&(O.fn.off=l6),bo&&(O.fn.focus=bo),Mr&&(O.fn.attr=Mr),hh&&(O.fn.removeAttr=hh),gs&&(O.fn.hide=gs),mh&&(O.fn.show=mh),Eh&&(O.fn.parents=Eh),hs&&(O.fn.dataset=hs),zr&&(O.fn.val=zr),$h&&(O.fn.text=$h),yo&&(O.fn.html=yo),ms&&(O.fn.children=ms),ys&&(O.fn.remove=ys),vs&&(O.fn.find=vs),gh&&(O.fn.width=gh),vh&&(O.fn.height=vh),f6&&(O.fn.filter=f6),bs&&(O.fn.empty=bs);var uY={selector:"p",parseElemHtml:function(e,t,n){var r=O(e);return(t=t.filter(function(i){return!!X.isText(i)||!!n.isInline(i)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},Hb=function(e,t){return Hb=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])},Hb(e,t)};/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation.
|
||
|
||
Permission to use, copy, modify, and/or distribute this software for any
|
||
purpose with or without fee is hereby granted.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
PERFORMANCE OF THIS SOFTWARE.
|
||
***************************************************************************** */function tt(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}Hb(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Eo=function(){return Eo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Eo.apply(this,arguments)};function ko(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(l){try{s(r.next(l))}catch(c){o(c)}}function u(l){try{s(r.throw(l))}catch(c){o(c)}}function s(l){var c;l.done?i(l.value):(c=l.value,c instanceof n?c:new n(function(f){f(c)})).then(a,u)}s((r=r.apply(e,t||[])).next())})}function _o(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(s){return function(l){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&c[0]?r.return:c[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,c[1])).done)return i;switch(r=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!((i=i.length>0&&i[i.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){a.label=c[1];break}if(c[0]===6&&a.label<i[1]){a.label=i[1],i=c;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(c);break}i[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(f){c=[6,f],r=0}finally{n=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([s,l])}}}function AF(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function 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 bD(e){var t=ke(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(!te.isElement(r)||r.type==="paragraph"||W.string(r)!=="")return!1;var i=r.children,o=i===void 0?[]:i;return!!X.isText(o[0])&&(P.setNodes(e,{type:"paragraph"}),!0)}var sY={renderElems:[cG],elemsToHtml:[fG],parseElemsHtml:[uY],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(i){bD(r)||t(i)},r.deleteForward=function(i){bD(r)||n(i)},r}},lY=/"/g,cY=le("".replace),Dc=function(e,t,n,r){var i=it(er(e)),o="<"+t;return n!==""&&(o+=" "+n+'="'+cY(it(r),lY,""")+'"'),o+">"+i+"</"+t+">"},xc=function(e){return ut(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})};function vm(e,t){var n=t,r=e,i=r.bold,o=r.italic,a=r.underline;return i&&(n="<strong>"+n+"</strong>"),r.code&&(n="<code>"+n+"</code>"),o&&(n="<em>"+n+"</em>"),a&&(n="<u>"+n+"</u>"),r.through&&(n="<s>"+n+"</s>"),r.sub&&(n="<sub>"+n+"</sub>"),r.sup&&(n="<sup>"+n+"</sup>"),n}function Go(e,t){return e.length!==0&&(!!e[0].matches(t)||e.find(t).length>0)}_t({target:"String",proto:!0,forced:xc("bold")},{bold:function(){return Dc(this,"b","","")}}),_t({target:"String",proto:!0,forced:xc("italics")},{italics:function(){return Dc(this,"i","","")}}),_t({target:"String",proto:!0,forced:xc("sub")},{sub:function(){return Dc(this,"sub","","")}}),_t({target:"String",proto:!0,forced:xc("sup")},{sup:function(){return Dc(this,"sup","","")}});var $D={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},mm=Qw("span").classList,wD=mm&&mm.constructor&&mm.constructor.prototype,fY=wD===Object.prototype?void 0:wD,OF=function(e,t){var n=[][e];return!!n&&ut(function(){n.call(null,t||function(){throw 1},1)})},dY=T0.forEach,ym=OF("forEach")?[].forEach:function(e){return dY(this,e,arguments.length>1?arguments[1]:void 0)},BF=function(e){if(e&&e.forEach!==ym)try{As(e,"forEach",ym)}catch{e.forEach=ym}};for(var bm in $D)$D[bm]&&BF(ge[bm]&&ge[bm].prototype);function FF(e,t){return e.selection==null||!!ke(E.nodes(e,{match:function(n){return S.getNodeType(n)==="pre"||!!E.isVoid(e,n)},universal:!0}),1)[0]}function pY(e,t){Object.keys(t).forEach(function(n){n!=="text"&&E.removeMark(e,n)})}BF(fY),_t({target:"Object",stat:!0,forced:ut(function(){ts(1)})},{keys:function(e){return ts(Zf(e))}});var Za=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]:!!ke(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 FF(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}(),hY='<svg viewBox="0 0 1024 1024"><path d="M707.872 484.64A254.88 254.88 0 0 0 768 320c0-141.152-114.848-256-256-256H192v896h384c141.152 0 256-114.848 256-256a256.096 256.096 0 0 0-124.128-219.36zM384 192h101.504c55.968 0 101.504 57.408 101.504 128s-45.536 128-101.504 128H384V192z m159.008 640H384v-256h159.008c58.464 0 106.016 57.408 106.016 128s-47.552 128-106.016 128z"></path></svg>',gY='<svg viewBox="0 0 1024 1024"><path d="M704 64l128 0 0 416c0 159.072-143.264 288-320 288s-320-128.928-320-288l0-416 128 0 0 416c0 40.16 18.24 78.688 51.36 108.512 36.896 33.216 86.848 51.488 140.64 51.488s103.744-18.304 140.64-51.488c33.12-29.792 51.36-68.352 51.36-108.512l0-416zM192 832l640 0 0 128-640 0z"></path></svg>',vY='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',mY='<svg viewBox="0 0 1024 1024"><path d="M1024 512v64h-234.496c27.52 38.496 42.496 82.688 42.496 128 0 70.88-36.672 139.04-100.576 186.976C672.064 935.488 594.144 960 512 960s-160.064-24.512-219.424-69.024C228.64 843.04 192 774.88 192 704h128c0 69.376 87.936 128 192 128s192-58.624 192-128-87.936-128-192-128H0v-64h299.52a385.984 385.984 0 0 1-6.944-5.024C228.64 459.04 192 390.88 192 320s36.672-139.04 100.576-186.976C351.936 88.512 429.856 64 512 64s160.064 24.512 219.424 69.024C795.328 180.96 832 249.12 832 320h-128c0-69.376-87.936-128-192-128s-192 58.624-192 128 87.936 128 192 128c78.976 0 154.048 22.688 212.48 64H1024z"></path></svg>',yY='<svg viewBox="0 0 1024 1024"><path d="M576 736l96 96 320-320L672 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224z"></path></svg>',TF='<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>',kF='<svg viewBox="0 0 1024 1024"><path d="M924.402464 1023.068211H0.679665V99.345412h461.861399v98.909208H99.596867v725.896389h725.896389V561.206811h98.909208z" p-id="10909"></path><path d="M930.805104 22.977336l69.965436 69.965436-453.492405 453.492404-69.965435-69.901489z" p-id="10910"></path><path d="M1022.464381 304.030081h-98.917201V99.345412H709.230573V0.428211h313.233808z"></path></svg>',bY='<svg viewBox="0 0 1024 1024"><path d="M64 864h896v96H64zM360.58 576h302.85l81.53 224h102.16L579.24 64H444.77L176.89 800h102.16l81.53-224zM512 159.96L628.49 480H395.52L512 159.96z"></path></svg>',$Y='<svg viewBox="0 0 1024 1024"><path d="M510.030769 315.076923l84.676923 196.923077h-177.230769l76.8-196.923077h15.753846zM945.230769 157.538462v708.923076c0 43.323077-35.446154 78.769231-78.769231 78.769231H157.538462c-43.323077 0-78.769231-35.446154-78.769231-78.769231V157.538462c0-43.323077 35.446154-78.769231 78.769231-78.769231h708.923076c43.323077 0 78.769231 35.446154 78.769231 78.769231z m-108.307692 643.938461L600.615385 216.615385c-5.907692-11.815385-15.753846-19.692308-29.538462-19.692308h-139.815385c-11.815385 0-23.630769 7.876923-27.56923 19.692308l-216.615385 584.861538c-3.938462 11.815385 3.938462 25.6 17.723077 25.6h80.738462c11.815385 0 23.630769-9.846154 27.56923-21.661538l63.015385-175.261539h263.876923l68.923077 175.261539c3.938462 11.815385 15.753846 21.661538 27.569231 21.661538h80.738461c13.784615 0 23.630769-13.784615 19.692308-25.6z"></path></svg>',wY='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',EY='<svg viewBox="0 0 1024 1024"><path d="M956.788364 152.110545h-24.110546l23.924364 9.029819 0.186182 121.018181h-65.070546l-86.574545-130.048H566.551273v650.14691l130.048 64.977454v65.163636h-390.050909v-65.163636l129.954909-64.977454V152.110545H198.283636L111.429818 282.065455H46.545455V69.259636C46.545455 33.792 82.664727 22.062545 98.955636 22.062545h812.683637c23.738182 0 45.056 15.173818 45.056 41.053091V169.425455v-17.221819z"></path></svg>',CY='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',DY='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',xY='<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',SY='<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',AY='<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',OY='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',BY='<svg viewBox="0 0 1024 1024"><path d="M768 206.016v50.016h128v64h-192V174.016l128-60V64h-128V0h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',FY='<svg viewBox="0 0 1024 1024"><path d="M768 910.016v50.016h128v64h-192v-146.016l128-60V768h-128v-64h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',TY=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="bold",n.title=q("textStyle.bold"),n.iconSvg=hY,n.hotkey="mod+b",n}return tt(t,e),t}(Za),kY=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="code",n.title=q("textStyle.code"),n.iconSvg=yY,n.hotkey="mod+e",n}return tt(t,e),t}(Za),_Y=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="italic",n.title=q("textStyle.italic"),n.iconSvg=vY,n.hotkey="mod+i",n}return tt(t,e),t}(Za),PY=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="through",n.title=q("textStyle.through"),n.iconSvg=mY,n.hotkey="mod+shift+x",n}return tt(t,e),t}(Za),NY=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="underline",n.title=q("textStyle.underline"),n.iconSvg=gY,n.hotkey="mod+u",n}return tt(t,e),t}(Za),IY=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="sub",n.marksNeedToRemove=["sup"],n.title=q("textStyle.sub"),n.iconSvg=FY,n.hotkey="",n}return tt(t,e),t}(Za),RY=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="sup",n.marksNeedToRemove=["sub"],n.title=q("textStyle.sup"),n.iconSvg=BY,n.hotkey="",n}return tt(t,e),t}(Za),jY=function(){function e(){this.title=q("textStyle.clear"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return FF(t)},e.prototype.exec=function(t,n){var r,i,o=E.nodes(t,{match:function(s){return X.isText(s)},universal:!0});try{for(var a=AF(o),u=a.next();!u.done;u=a.next())pY(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}(),LY={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=de("strong",null,c)),a&&(c=de("code",null,c)),i&&(c=de("em",null,c)),o&&(c=de("u",null,c)),u&&(c=de("s",null,c)),s&&(c=de("sub",null,c)),l&&(c=de("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new TY}},{key:"underline",factory:function(){return new NY}},{key:"italic",factory:function(){return new _Y}},{key:"through",factory:function(){return new PY}},{key:"code",factory:function(){return new kY}},{key:"sub",factory:function(){return new IY}},{key:"sup",factory:function(){return new RY}},{key:"clearStyle",factory:function(){return new jY}}],styleToHtml:function(e,t){if(!X.isText(e))return t;if(d3(t))return vm(e,t);var n=O(t);if(qs(n)==="br")return vm(e,"<br>");var r=n.html();return r=vm(e,r),n.html(r),Ws(n)},parseStyleHtml:function(e,t,n){var r=O(e);if(!X.isText(t))return t;var i=t;return Go(r,"b,strong")&&(i.bold=!0),Go(r,"i,em")&&(i.italic=!0),Go(r,"u")&&(i.underline=!0),Go(r,"s,strike")&&(i.through=!0),Go(r,"sub")&&(i.sub=!0),Go(r,"sup")&&(i.sup=!0),Go(r,"code")&&(i.code=!0),i}};function td(e){return function(t,n,r){return de("h"+e,null,n)}}var MY={type:"header1",renderElem:td(1)},zY={type:"header2",renderElem:td(2)},HY={type:"header3",renderElem:td(3)},UY={type:"header4",renderElem:td(4)},VY={type:"header5",renderElem:td(5)},WY=B0.PROPER,Ub=RegExp.prototype,_F=Ub.toString,qY=le(mF),GY=ut(function(){return _F.call({source:"a",flags:"b"})!="/a/b"}),KY=WY&&_F.name!="toString";(GY||KY)&&pf(RegExp.prototype,"toString",function(){var e=Bn(this),t=it(e.source),n=e.flags;return"/"+t+"/"+it(n===void 0&&iF(Ub,e)&&!("flags"in Ub)?qY(e):n)},{unsafe:!0});var $m,YY=ge.TypeError,PF=function(e){if(DF(e))throw YY("The method doesn't accept regular expressions");return e},XY=_n("match"),NF=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[XY]=!1,"/./"[e](t)}catch{}}return!1},JY=e3.f,ED=le("".startsWith),ZY=le("".slice),QY=Math.min,CD=NF("startsWith");function IF(e){var t=ke(E.nodes(e,{match:function(i){return S.getNodeType(i).startsWith("header")},universal:!0}),1),n=t[0];if(n==null)return"paragraph";var r=ke(n,1)[0];return S.getNodeType(r)}function RF(e){return e.selection==null||!ke(E.nodes(e,{match:function(t){var n=S.getNodeType(t);return n==="paragraph"||!!n.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function jF(e,t){t&&P.setNodes(e,{type:t})}_t({target:"String",proto:!0,forced:!!(CD||($m=JY(String.prototype,"startsWith"),!$m||$m.writable))&&!CD},{startsWith:function(e){var t=it(er(this));PF(e);var n=Qf(QY(arguments.length>1?arguments[1]:void 0,t.length)),r=it(e);return ED?ED(t,r,n):ZY(t,n,n+r.length)===r}});var eX=function(){function e(){this.title=q("header.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M960 960c-51.2 0-102.4-3.2-153.6-3.2-51.2 0-99.2 3.2-150.4 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 57.6-28.8 86.4-48 19.2-12.8 19.2-60.8 19.2-80v-224-19.2c-9.6-3.2-19.2-3.2-28.8-3.2H320c-9.6 0-19.2 0-28.8 3.2V780.8c0 22.4 0 80 22.4 92.8 28.8 19.2 96-6.4 96 44.8 0 16-9.6 41.6-28.8 41.6-54.4 0-105.6-3.2-160-3.2-48 0-96 3.2-147.2 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 51.2-28.8 80-48 19.2-12.8 19.2-60.8 19.2-83.2V294.4c0-28.8 3.2-115.2-22.4-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z"></path></svg>',this.tag="select",this.width=60}return e.prototype.getOptions=function(t){var n=[{value:"header1",text:"H1",styleForRenderMenuList:{"font-size":"32px","font-weight":"bold"}},{value:"header2",text:"H2",styleForRenderMenuList:{"font-size":"24px","font-weight":"bold"}},{value:"header3",text:"H3",styleForRenderMenuList:{"font-size":"18px","font-weight":"bold"}},{value:"header4",text:"H4",styleForRenderMenuList:{"font-size":"16px","font-weight":"bold"}},{value:"header5",text:"H5",styleForRenderMenuList:{"font-size":"13px","font-weight":"bold"}},{value:"paragraph",text:q("header.text")}],r=this.getValue(t).toString();return n.forEach(function(i){i.value===r?i.selected=!0:delete i.selected}),n},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){return IF(t)},e.prototype.isDisabled=function(t){return RF(t)},e.prototype.exec=function(t,n){jF(t,n.toString())},e}(),nd=function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return IF(t)},e.prototype.isActive=function(t){return this.getValue(t)===this.type},e.prototype.isDisabled=function(t){return RF(t)},e.prototype.exec=function(t,n){var r=this.type;jF(t,n===r?"paragraph":r)},e}(),tX=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H1",n.type="header1",n}return tt(t,e),t}(nd),nX=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H2",n.type="header2",n}return tt(t,e),t}(nd),rX=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H3",n.type="header3",n}return tt(t,e),t}(nd),iX=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H4",n.type="header4",n}return tt(t,e),t}(nd),oX=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H5",n.type="header5",n}return tt(t,e),t}(nd),aX={key:"headerSelect",factory:function(){return new eX}},uX={key:"header1",factory:function(){return new tX}},sX={key:"header2",factory:function(){return new nX}},lX={key:"header3",factory:function(){return new rX}},cX={key:"header4",factory:function(){return new iX}},fX={key:"header5",factory:function(){return new oX}};function Ll(e){return function(t,n){return"<h"+e+">"+n+"</h"+e+">"}}function Ml(e){return function(t,n,r){var i=O(t);return(n=n.filter(function(o){return!!X.isText(o)||!!r.isInline(o)})).length===0&&(n=[{text:i.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:n}}}var dX={renderElems:[MY,zY,HY,UY,VY],elemsToHtml:[{type:"header1",elemToHtml:Ll(1)},{type:"header2",elemToHtml:Ll(2)},{type:"header3",elemToHtml:Ll(3)},{type:"header4",elemToHtml:Ll(4)},{type:"header5",elemToHtml:Ll(5)}],parseElemsHtml:[{selector:"h1",parseElemHtml:Ml(1)},{selector:"h2",parseElemHtml:Ml(2)},{selector:"h3",parseElemHtml:Ml(3)},{selector:"h4",parseElemHtml:Ml(4)},{selector:"h5",parseElemHtml:Ml(5)}],menus:[aX,uX,sX,lX,cX,fX],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=ke(E.nodes(n,{match:function(i){return S.getNodeType(i).startsWith("header")},universal:!0}),1)[0];r&&S.isSelectionAtLineEnd(e,r[1])?P.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},n}},Eu=Object.assign,DD=Object.defineProperty,pX=le([].concat),xD=!Eu||ut(function(){if(hr&&Eu({b:1},Eu(DD({},"a",{enumerable:!0,get:function(){DD(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}),Eu({},e)[n]!=7||ts(Eu({},t)).join("")!=r})?function(e,t){for(var n=Zf(e),r=arguments.length,i=1,o=pF.f,a=nF.f;r>i;)for(var u,s=A0(arguments[i++]),l=o?pX(ts(s),o(s)):ts(s),c=l.length,f=0;c>f;)u=l[f++],hr&&!pt(a,s,u)||(n[u]=s[u]);return n}:Eu;function Ma(e,t){e.data==null&&(e.data={});var n=e.data;n.style==null&&(n.style={}),Object.assign(n.style,t)}_t({target:"Object",stat:!0,forced:Object.assign!==xD},{assign:xD});var hX={selector:"font",preParseHtml:function(e){var t=O(e);if(qs(t)!=="font")return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}},LF=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||!!ke(E.nodes(t,{match:function(n){return S.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('<ul class="w-e-panel-content-color"></ul>');r.on("click","li",function(l){var c=l.target;if(c!=null&&(l.preventDefault(),t.selection!=null)){var f=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('<div class="color-block" data-value="'+l+'"></div>');c.css("background-color",l);var f=O('<li data-value="'+l+'"></li>');o===l&&f.addClass("active"),f.append(c),i.append(f)});var u="";n==="color"&&(u=q("color.default")),n==="bgColor"&&(u=q("color.clear"));var s=O(`
|
||
<li data-value="0" class="clear">
|
||
<svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>
|
||
`+u+`
|
||
</li>
|
||
`);return i.prepend(s),i[0]},e}(),gX=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=q("color.color"),n.iconSvg=bY,n.mark="color",n}return tt(t,e),t}(LF),vX=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=q("color.bgColor"),n.iconSvg=$Y,n.mark="bgColor",n}return tt(t,e),t}(LF),SD=["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)"],mX={renderStyle:function(e,t){var n=e,r=n.color,i=n.bgColor,o=t;return r&&Ma(o,{color:r}),i&&Ma(o,{backgroundColor:i}),o},styleToHtml:function(e,t){if(!X.isText(e))return t;var n,r=e,i=r.color,o=r.bgColor;return i||o?((d3(t)||qs(n=O(t))!=="span")&&(n=O("<span>"+t+"</span>")),i&&n.css("color",i),o&&n.css("background-color",o),Ws(n)):t},preParseHtml:[hX],parseStyleHtml:function(e,t,n){var r=O(e);if(!X.isText(t))return t;var i=t,o=dr(r,"color");o&&(i.color=o);var a=dr(r,"background-color");return a||(a=dr(r,"background")),a&&(i.bgColor=a),i},menus:[{key:"color",factory:function(){return new gX},config:{colors:SD}},{key:"bgColor",factory:function(){return new vX},config:{colors:SD}}]},yX=function(e){if(typeof e!="string")return!1;var t=e.match(bX);if(!t)return!1;var n=t[1];return n?!!($X.test(n)||wX.test(n)):!1},bX=/^(?:\w+:)?\/\/(\S+)$/,$X=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,wX=/^[^\s\.]+\.\S{2,}$/,EX=fF.includes;function k0(e){return e===void 0&&(e="r"),e+"-"+X9()}function p3(e){return e.replace(/</g,"<").replace(/>/g,">")}function MF(e,t,n,r){return ko(this,void 0,void 0,function(){var i,o;return _o(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 zF(e,t,n){return ko(this,void 0,void 0,function(){var r;return _o(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 h3(e){return e.selection==null||!!S.getSelectedElems(e).some(function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0})}function wm(e,t){return{type:"link",url:p3(e),children:t?[{text:t}]:[]}}function HF(e,t,n){return ko(this,void 0,void 0,function(){var r,i,o;return _o(this,function(a){switch(a.label){case 0:return n?(t||(t=n),e.restoreSelection(),h3(e)?[2]:[4,MF("insertLink",e,t,n)]):[2];case 1:return a.sent()?[4,zF("insertLink",e,n)]:[2];case 2:return r=a.sent(),(i=e.selection)==null?[2]:(R.isCollapsed(i)?(e.insertText(" "),o=wm(r,t),P.insertNodes(e,o),e.insertFragment([{text:" "}])):E.string(e,i)!==t?(e.deleteFragment(),o=wm(r,t),P.insertNodes(e,o)):(o=wm(r),P.wrapNodes(e,o,{split:!0}),P.collapse(e,{edge:"end"})),[2])}})})}_t({target:"Array",proto:!0},{includes:function(e){return EX(this,e,arguments.length>1?arguments[1]:void 0)}}),CF("includes");var CX={type:"link",renderElem:function(e,t,n){var r=e,i=r.url,o=r.target;return de("a",{href:i,target:o===void 0?"_blank":o},t)}},DX={type:"link",elemToHtml:function(e,t){var n=e,r=n.url,i=n.target;return'<a href="'+r+'" target="'+(i===void 0?"_blank":i)+'">'+t+"</a>"}},xX={selector:"a",parseElemHtml:function(e,t,n){var r=O(e);return(t=t.filter(function(i){return!!X.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 Em(){return k0("w-e-insert-link")}var SX=function(){function e(){this.title=q("link.insert"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M440.224 635.776a51.84 51.84 0 0 1-36.768-15.232c-95.136-95.136-95.136-249.92 0-345.056l192-192C641.536 37.408 702.816 12.032 768 12.032s126.432 25.376 172.544 71.456c95.136 95.136 95.136 249.92 0 345.056l-87.776 87.776a51.968 51.968 0 1 1-73.536-73.536l87.776-87.776a140.16 140.16 0 0 0 0-197.984c-26.432-26.432-61.6-40.992-99.008-40.992s-72.544 14.56-99.008 40.992l-192 192a140.16 140.16 0 0 0 0 197.984 51.968 51.968 0 0 1-36.768 88.768z"></path><path d="M256 1012a242.4 242.4 0 0 1-172.544-71.456c-95.136-95.136-95.136-249.92 0-345.056l87.776-87.776a51.968 51.968 0 1 1 73.536 73.536l-87.776 87.776a140.16 140.16 0 0 0 0 197.984c26.432 26.432 61.6 40.992 99.008 40.992s72.544-14.56 99.008-40.992l192-192a140.16 140.16 0 0 0 0-197.984 51.968 51.968 0 1 1 73.536-73.536c95.136 95.136 95.136 249.92 0 345.056l-192 192A242.4 242.4 0 0 1 256 1012z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textInputId=Em(),this.urlInputId=Em(),this.buttonId=Em()}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 h3(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=ke(Dn(q("link.text"),i),2),s=u[0],l=u[1],c=O(l),f=ke(Dn(q("link.url"),o),2),d=f[0],p=f[1],v=O(p),m=ke(zs(a,q("common.ok")),1)[0];if(this.$content==null){var g=O("<div></div>");g.on("click","#"+a,function($){$.preventDefault();var w=g.find("#"+i).val(),C=g.find("#"+o).val();HF(t,w,C),t.hidePanelOrModal()}),this.$content=g}var y=this.$content;if(y.empty(),y.append(s),y.append(d),y.append(m),n==null||R.isCollapsed(n))c.val("");else{var h=E.string(t,n);c.val(h)}return v.val(""),setTimeout(function(){c.focus()}),y[0]},e}();function AD(){return k0("w-e-update-link")}var AX=function(){function e(){this.title=q("link.edit"),this.iconSvg=TF,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=AD(),this.buttonId=AD()}return e.prototype.getSelectedLinkElem=function(t){var n=S.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 S.getSelectedNodeByType(t,"link")},e.prototype.getModalContentElem=function(t){var n=this.urlInputId,r=this.buttonId,i=ke(Dn(q("link.url"),n),2),o=i[0],a=i[1],u=O(a),s=ke(zs(r,q("common.ok")),1)[0];if(this.$content==null){var l=O("<div></div>");l.on("click","button",function(d){d.preventDefault(),t.restoreSelection();var p=S.getSelectedNodeByType(t,"link"),v=p?W.string(p):"",m=l.find("#"+n).val();(function(g,y,h){ko(this,void 0,void 0,function(){var $,w;return _o(this,function(C){switch(C.label){case 0:return h?[4,MF("editLink",g,y,h)]:[2];case 1:return C.sent()?[4,zF("editLink",g,h)]:[2];case 2:return $=C.sent(),w={url:p3($)},P.setNodes(g,w,{match:function(D){return S.checkNodeType(D,"link")}}),[2]}})})})(t,v,m),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}(),OX=function(){function e(){this.title=q("link.unLink"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M608.16328 811.815036c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.347563 89.347564c-118.525421 118.523421-311.38448 118.531421-429.919901 0-118.527421-118.529421-118.527421-311.39048 0-429.917901l89.349564-89.349563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.195613 79.195613c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.349563 89.347564c-56.143726 56.145726-56.143726 147.49928 0 203.645005 56.143726 56.143726 147.49928 56.145726 203.647005 0l89.347564-89.347563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.193613 79.195613z m-113.135447-520.429459c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.347564-89.347564c56.143726-56.149726 147.49928-56.145726 203.647006 0 56.143726 56.145726 56.143726 147.49928 0 203.645006l-89.349564 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.195613 79.195613c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.349564-89.349563c118.529421-118.529421 118.529421-311.38848 0-429.917901-118.531421-118.527421-311.38848-118.527421-429.919901 0l-89.347563 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.193613 79.195613z m469.653707 718.556492l45.253779-45.253779c18.745908-18.745908 18.745908-49.13776 0-67.881669L127.195629 14.062931c-18.745908-18.745908-49.13776-18.745908-67.881669 0L14.058181 59.31871c-18.745908 18.745908-18.745908 49.13776 0 67.881669l882.74169 882.74169c18.745908 18.743908 49.13776 18.743908 67.881669 0z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||S.getSelectedNodeByType(t,"link")==null},e.prototype.exec=function(t,n){this.isDisabled(t)||P.unwrapNodes(t,{match:function(r){return S.checkNodeType(r,"link")}})},e}(),BX=function(){function e(){this.title=q("link.view"),this.iconSvg=kF,this.tag="button"}return e.prototype.getSelectedLinkElem=function(t){var n=S.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}(),OD={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},FX={renderElems:[CX],elemsToHtml:[DX],parseElemsHtml:[xX],menus:[{key:"insertLink",factory:function(){return new SX},config:OD},{key:"editLink",factory:function(){return new AX},config:OD},{key:"unLink",factory:function(){return new OX}},{key:"viewLink",factory:function(){return new BX}}],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(yX(a)){if(!h3(i)){var u=i.selection;if(u!=null){var s=E.string(i,u);HF(i,s,a)}}}else n(o)},i.normalizeNode=function(o){var a=ke(o,2),u=a[0],s=a[1];return S.getNodeType(u)!=="link"?r([u,s]):W.string(u)===""?P.removeNodes(i,{at:s}):r([u,s])},i}},TX=le(1 .valueOf),kX=ge.RangeError,_X=ge.RangeError,UF=ge.String,VF=Math.floor,Vb=le(function(e){var t=it(er(this)),n="",r=Vs(e);if(r<0||r==1/0)throw kX("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n}),BD=le("".slice),zl=le(1 .toFixed),Ku=function(e,t,n){return t===0?n:t%2==1?Ku(e,t-1,n*e):Ku(e*e,t/2,n)},Cu=function(e,t,n){for(var r=-1,i=n;++r<6;)i+=t*e[r],e[r]=i%1e7,i=VF(i/1e7)},Cm=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=VF(r/t),r=r%t*1e7},FD=function(e){for(var t=6,n="";--t>=0;)if(n!==""||t===0||e[t]!==0){var r=UF(e[t]);n=n===""?r:n+Vb("0",7-r.length)+r}return n};function WF(e,t){return"w-e-image-container-"+S.findKey(e,t).id}function PX(e,t,n,r){var i=O("body"),o=WF(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",v),i.on("mouseup",m);var $=S.getHoverbar(e);$&&$.hideAndClean()}var v=Pa(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 m(y){if(i.off("mousemove",v),d!=null){var h=d.width().toFixed(2),$=d.height().toFixed(2),w={style:Eo(Eo({},t.style),{width:h+"px",height:$+"px"})};P.setNodes(e,w,{at:S.findPath(e,t)}),i.off("mouseup",m)}}var g={};return a&&(g.width=a),u&&(g.height=u),de("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,de("div",{className:"w-e-image-dragger left-top"}),de("div",{className:"w-e-image-dragger right-top"}),de("div",{className:"w-e-image-dragger left-bottom"}),de("div",{className:"w-e-image-dragger right-bottom"}))}_t({target:"Number",proto:!0,forced:ut(function(){return zl(8e-5,3)!=="0.000"||zl(.9,0)!=="1"||zl(1.255,2)!=="1.25"||zl(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!ut(function(){zl({})})},{toFixed:function(e){var t,n,r,i,o=TX(this),a=Vs(e),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw _X("Incorrect fraction digits");if(o!=o)return"NaN";if(o<=-1e21||o>=1e21)return UF(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*Ku(2,69,1))-69)<0?o*Ku(2,-t,1):o/Ku(2,t,1),n*=4503599627370496,(t=52-t)>0){for(Cu(u,0,n),r=a;r>=7;)Cu(u,1e7,0),r-=7;for(Cu(u,Ku(10,r,1),0),r=t-1;r>=23;)Cm(u,1<<23),r-=23;Cm(u,1<<r),Cu(u,1,1),Cm(u,2),l=FD(u)}else Cu(u,0,n),Cu(u,1<<-t,0),l=FD(u)+Vb("0",a);return l=a>0?s+((i=l.length)<=a?"0."+Vb("0",a-i)+l:BD(l,0,i-a)+"."+BD(l,i-a)):s+l}});var NX={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,v=p===void 0?"":p,m=S.isNodeSelected(n,e),g={};d&&(g.width="100%"),v&&(g.height="100%");var y=de("img",{style:g,src:i,alt:a,"data-href":s}),h=n.isDisabled();return m&&!h?PX(n,e,y,{width:d,height:v}):function($,w,C,D){var A=D.width,I=D.height,M={};A&&(M.width=A),I&&(M.height=I);var V=WF($,w);return de("div",{id:V,style:M,className:"w-e-image-container"},C)}(n,e,y,{width:d,height:v})}},IX={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,v="";return f&&(v+="width: "+f+";"),p&&(v+="height: "+p+";"),'<img src="'+r+'" alt="'+o+'" data-href="'+u+'" style="'+v+'"/>'}},RX={selector:"img",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:dr(r,"width"),height:dr(r,"height")},children:[{text:""}]}}};function qF(e,t,n,r,i){return r===void 0&&(r=""),i===void 0&&(i=""),ko(this,void 0,void 0,function(){var o,a;return _o(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 GF(e,t,n){return ko(this,void 0,void 0,function(){var r;return _o(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 ba(e,t,n,r){return n===void 0&&(n=""),r===void 0&&(r=""),ko(this,void 0,void 0,function(){var i,o,a;return _o(this,function(u){switch(u.label){case 0:return[4,qF("insertImage",e,t,n,r)];case 1:return u.sent()?[4,GF("insertImage",e,t)]:[2];case 2:return i=u.sent(),o={type:"image",src:p3(i),href:r,alt:n,style:{},children:[{text:""}]},e.selection===null&&e.restoreSelection(),S.getSelectedNodeByType(e,"image")&&e.move(1),_0(e)?[2]:(P.insertNodes(e,o),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(o),[2])}})})}function jX(e,t,n,r,i){return n===void 0&&(n=""),r===void 0&&(r=""),i===void 0&&(i={}),ko(this,void 0,void 0,function(){var o,a,u,s,l,c;return _o(this,function(f){switch(f.label){case 0:return[4,qF("editImage",e,t,n,r)];case 1:return f.sent()?[4,GF("editImage",e,t)]:[2];case 2:return o=f.sent(),(a=S.getSelectedNodeByType(e,"image"))==null?[2]:(u=a.style,s={src:o,alt:n,href:r,style:Eo(Eo({},u===void 0?{}:u),i)},P.setNodes(e,s,{match:function(d){return S.checkNodeType(d,"image")}}),l=S.getSelectedNodeByType(e,"image"),(c=e.getMenuConfig("editImage").onUpdatedImage)&&c(l),[2])}})})}function _0(e){var t=e.selection;return t==null||!R.isCollapsed(t)||!!ke(E.nodes(e,{match:function(n){var r=S.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 ap(){return k0("w-e-insert-image")}var LX=function(){function e(){this.title=q("image.netImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=ap(),this.altInputId=ap(),this.hrefInputId=ap(),this.buttonId=ap()}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 _0(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=ke(Dn(q("image.src"),i),2),l=s[0],c=s[1],f=O(c),d=ke(Dn(q("image.desc"),o),2),p=d[0],v=d[1],m=O(v),g=ke(Dn(q("image.link"),a),2),y=g[0],h=g[1],$=O(h),w=ke(zs(u,q("common.ok")),1)[0];if(this.$content==null){var C=O("<div></div>");C.on("click","#"+u,function(A){A.preventDefault();var I=C.find("#"+i).val().trim(),M=C.find("#"+o).val().trim(),V=C.find("#"+a).val().trim();n.insertImage(t,I,M,V),t.hidePanelOrModal()}),this.$content=C}var D=this.$content;return D.empty(),D.append(l),D.append(p),D.append(y),D.append(w),f.val(""),m.val(""),$.val(""),setTimeout(function(){f.focus()}),D[0]},e.prototype.insertImage=function(t,n,r,i){r===void 0&&(r=""),i===void 0&&(i=""),n&&(t.restoreSelection(),this.isDisabled(t)||ba(t,n,r,i))},e}(),MX=function(){function e(){this.title=q("image.delete"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||S.getSelectedNodeByType(t,"image")==null},e.prototype.exec=function(t,n){this.isDisabled(t)||P.removeNodes(t,{match:function(r){return S.checkNodeType(r,"image")}})},e}();function up(){return k0("w-e-edit-image")}var zX=function(){function e(){this.title=q("image.edit"),this.iconSvg=TF,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=up(),this.altInputId=up(),this.hrefInputId=up(),this.buttonId=up()}return e.prototype.getValue=function(t){return""},e.prototype.getImageNode=function(t){return S.getSelectedNodeByType(t,"image")},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!R.isCollapsed(n)||S.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=ke(Dn(q("image.src"),i),2),c=l[0],f=l[1],d=O(f),p=ke(Dn(q("image.desc"),o),2),v=p[0],m=p[1],g=O(m),y=ke(Dn(q("image.link"),a),2),h=y[0],$=y[1],w=O($),C=ke(zs(u,q("common.ok")),1)[0];if(this.$content==null){var D=O("<div></div>");D.on("click","#"+u,function(se){se.preventDefault();var ee=D.find("#"+i).val(),ae=D.find("#"+o).val(),fe=D.find("#"+a).val();n.updateImage(t,ee,ae,fe),t.hidePanelOrModal()}),this.$content=D}var A=this.$content;A.empty(),A.append(c),A.append(v),A.append(h),A.append(C);var I=s,M=I.src,V=I.alt,Y=V===void 0?"":V,J=I.href,Z=J===void 0?"":J;return d.val(M),g.val(Y),w.val(Z),setTimeout(function(){d.focus()}),A[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)||jX(t,n,r,i,o))},e}(),HX=function(){function e(){this.title=q("image.viewLink"),this.iconSvg=kF,this.tag="button"}return e.prototype.getValue=function(t){var n=S.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}(),g3=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 S.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=S.getHoverbar(t);i&&i.hideAndClean();var o=r.style,a={style:Eo(Eo({},o===void 0?{}:o),{width:this.value,height:""})};P.setNodes(t,a,{match:function(u){return S.checkNodeType(u,"image")}})}}},e}(),UX=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="30%",n.value="30%",n}return tt(t,e),t}(g3),VX=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="50%",n.value="50%",n}return tt(t,e),t}(g3),WX=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="100%",n.value="100%",n}return tt(t,e),t}(g3),TD={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},qX={renderElems:[NX],elemsToHtml:[IX],parseElemsHtml:[RX],menus:[{key:"insertImage",factory:function(){return new LX},config:TD},{key:"deleteImage",factory:function(){return new MX}},{key:"editImage",factory:function(){return new zX},config:TD},{key:"viewImageLink",factory:function(){return new HX}},{key:"imageWidth30",factory:function(){return new UX}},{key:"imageWidth50",factory:function(){return new VX}},{key:"imageWidth100",factory:function(){return new WX}}],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}},GX={type:"todo",renderElem:function(e,t,n){var r=!1;n.isDisabled()&&(r=!0);var i=e.checked,o=de("div",{style:{margin:"5px 0"}},de("span",{contentEditable:!1,style:{marginRight:"0.5em"}},de("input",{type:"checkbox",checked:i,disabled:r,on:{change:function(a){var u=S.findPath(n,e),s={checked:a.target.checked};P.setNodes(n,s,{at:u})}}})),de("span",null,t));return o}},KX=function(){function e(){this.title=q("todo.todo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M278.755556 403.911111l-79.644445 79.644445L455.111111 739.555556l568.888889-568.888889-79.644444-79.644445L455.111111 580.266667l-176.355555-176.355556zM910.222222 910.222222H113.777778V113.777778h568.888889V0H113.777778C51.2 0 0 51.2 0 113.777778v796.444444c0 62.577778 51.2 113.777778 113.777778 113.777778h796.444444c62.577778 0 113.777778-51.2 113.777778-113.777778V455.111111h-113.777778v455.111111z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!!S.getSelectedNodeByType(t,"todo")},e.prototype.isDisabled=function(t){return t.selection==null||!!S.getSelectedElems(t).some(function(n){if(E.isVoid(t,n)&&E.isBlock(t,n))return!0;var r=n.type;return!!["pre","table","bulleted-list","numbered-list"].includes(r)||void 0})},e.prototype.exec=function(t,n){var r=this.isActive(t);P.setNodes(t,{type:r?"paragraph":"todo"})},e}(),YX={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var r=O(e);(t=t.filter(function(o){return!!X.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}}},XX={renderElems:[GX],elemsToHtml:[{type:"todo",elemToHtml:function(e,t){return'<div data-w-e-type="todo"><input type="checkbox" disabled '+(e.checked?"checked":"")+">"+t+"</div>"}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(e){var t=O(e).find("li"),n=O('<div data-w-e-type="todo"></div>'),r=t.find("input[type]");return n.append(r),t.children()[0].remove(),n[0].innerHTML=n[0].innerHTML+t[0].innerHTML,n[0]}}],parseElemsHtml:[YX],menus:[{key:"todo",factory:function(){return new KX}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(r){var i=e.selection;if(i&&R.isCollapsed(i)){var o=S.getSelectedNodeByType(e,"todo");if(o&&W.string(o).length===0)return void P.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(r)},n}},JX={type:"blockquote",renderElem:function(e,t,n){return de("blockquote",null,t)}},ZX={type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}},QX={selector:"blockquote",parseElemHtml:function(e,t,n){var r=O(e);return(t=t.filter(function(i){return!!X.isText(i)||!!n.isInline(i)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},eJ=function(){function e(){this.title=q("blockQuote.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!!S.getSelectedNodeByType(t,"blockquote")},e.prototype.isDisabled=function(t){return t.selection==null||!ke(E.nodes(t,{match:function(n){var r=S.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";P.setNodes(t,{type:r},{mode:"highest"})}},e}(),tJ={key:"blockquote",factory:function(){return new eJ}},nJ=le([].slice),rJ=u3("slice"),iJ=_n("species"),Dm=ge.Array,oJ=Math.max;_t({target:"Array",proto:!0,forced:!rJ},{slice:function(e,t){var n,r,i,o=Hs(this),a=F0(o),u=hf(e,a),s=hf(t===void 0?a:t,a);if(Vh(o)&&(n=o.constructor,(a3(n)&&(n===Dm||Vh(n.prototype))||Vn(n)&&(n=n[iJ])===null)&&(n=void 0),n===Dm||n===void 0))return nJ(o,u,s);for(r=new(n===void 0?Dm:n)(oJ(s-u,0)),i=0;u<s;u++,i++)u in o&&xF(r,i,o[u]);return r.length=i,r}});var aJ={renderElems:[JX],elemsToHtml:[ZX],parseElemsHtml:[QX],menus:[tJ],editorPlugin:function(e){var t=e.insertBreak,n=e.insertText,r=e;return r.insertBreak=function(){var i=r.selection;if(i==null)return t();var o=ke(E.nodes(e,{match:function(c){return S.checkNodeType(c,"blockquote")},universal:!0}),1)[0];if(!o)return t();var a=o[0],u=S.findPath(e,a),s=E.end(e,u);if($e.equals(s,i.focus)){var l=W.string(a);if(l&&l.slice(-1)===`
|
||
`)return e.deleteBackward("character"),void P.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n(`
|
||
`)},r}},uJ=function(){function e(){this.title=q("emotion.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(t,n){},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!!ke(E.nodes(t,{match:function(n){return S.getNodeType(n)==="pre"||!!E.isVoid(t,n)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(t){if(this.$content==null){var n=O('<ul class="w-e-panel-content-emotion"></ul>');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("<li>"+o+"</li>");r.append(a)}),r[0]},e}(),sJ={menus:[{key:"emotion",factory:function(){return new uJ},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(" ")}}]},lJ={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},cJ={selector:"font",preParseHtml:function(e){var t=O(e);if(qs(t)!=="font")return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",lJ[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},fJ=le("".indexOf);_t({target:"String",proto:!0,forced:!NF("includes")},{includes:function(e){return!!~fJ(it(er(this)),it(PF(e)),arguments.length>1?arguments[1]:void 0)}});var _i,Kp,KF=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,!!ke(E.nodes(t,{match:function(n){return S.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}(),dJ=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=q("fontSize.title"),n.iconSvg=wY,n.mark="fontSize",n}return tt(t,e),t.prototype.getOptions=function(n){var r=[],i=n.getMenuConfig(this.mark).fontSizeList,o=i===void 0?[]:i;r.push({text:q("fontSize.default"),value:""}),o.forEach(function(u){r.push({text:u,value:u})});var a=this.getValue(n);return r.forEach(function(u){u.value===a?u.selected=!0:delete u.selected}),r},t}(KF),sp=function(e){return e&&e.Math==Math&&e},Ee=sp(typeof globalThis=="object"&&globalThis)||sp(typeof window=="object"&&window)||sp(typeof self=="object"&&self)||sp(typeof Mh=="object"&&Mh)||function(){return this}()||Function("return this")(),v3=Function.prototype,kD=v3.apply,pJ=v3.bind,_D=v3.call,YF=typeof Reflect=="object"&&Reflect.apply||(pJ?_D.bind(kD):function(){return _D.apply(kD,arguments)}),XF=Function.prototype,Wb=XF.bind,qb=XF.call,hJ=Wb&&Wb.bind(qb),ht=Wb?function(e){return e&&hJ(qb,e)}:function(e){return e&&function(){return qb.apply(e,arguments)}},Vt=function(e){return typeof e=="function"},Fn=function(e){try{return!!e()}catch{return!0}},gn=!Fn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Hl=Function.prototype.call,sr=Hl.bind?Hl.bind(Hl):function(){return Hl.apply(Hl,arguments)},PD={}.propertyIsEnumerable,ND=Object.getOwnPropertyDescriptor,gJ=ND&&!PD.call({1:2},1)?function(e){var t=ND(this,e);return!!t&&t.enumerable}:PD,m3={f:gJ},za=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},vJ=ht({}.toString),mJ=ht("".slice),$a=function(e){return mJ(vJ(e),8,-1)},xm=Ee.Object,yJ=ht("".split),JF=Fn(function(){return!xm("z").propertyIsEnumerable(0)})?function(e){return $a(e)=="String"?yJ(e,""):xm(e)}:xm,bJ=Ee.TypeError,y3=function(e){if(e==null)throw bJ("Can't call method on "+e);return e},Kr=function(e){return JF(y3(e))},Wn=function(e){return typeof e=="object"?e!==null:Vt(e)},zn={},ID=function(e){return Vt(e)?e:void 0},rd=function(e,t){return arguments.length<2?ID(zn[e])||ID(Ee[e]):zn[e]&&zn[e][t]||Ee[e]&&Ee[e][t]},ZF=ht({}.isPrototypeOf),Sm=rd("navigator","userAgent")||"",RD=Ee.process,jD=Ee.Deno,LD=RD&&RD.versions||jD&&jD.version,MD=LD&&LD.v8;MD&&(Kp=(_i=MD.split("."))[0]>0&&_i[0]<4?1:+(_i[0]+_i[1])),!Kp&&Sm&&(!(_i=Sm.match(/Edge\/(\d+)/))||_i[1]>=74)&&(_i=Sm.match(/Chrome\/(\d+)/))&&(Kp=+_i[1]);var Gh=Kp,Ar=!!Object.getOwnPropertySymbols&&!Fn(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Gh&&Gh<41}),b3=Ar&&!Symbol.sham&&typeof Symbol.iterator=="symbol",$J=Ee.Object,ns=b3?function(e){return typeof e=="symbol"}:function(e){var t=rd("Symbol");return Vt(t)&&ZF(t.prototype,$J(e))},wJ=Ee.String,EJ=Ee.TypeError,QF=function(e){if(Vt(e))return e;throw EJ(function(t){try{return wJ(t)}catch{return"Object"}}(e)+" is not a function")},CJ=Ee.TypeError,DJ=Object.defineProperty,ao=Ee["__core-js_shared__"]||function(e,t){try{DJ(Ee,e,{value:t,configurable:!0,writable:!0})}catch{Ee[e]=t}return t}("__core-js_shared__",{}),Qa=S0(function(e){(e.exports=function(t,n){return ao[t]||(ao[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),xJ=Ee.Object,id=function(e){return xJ(y3(e))},SJ=ht({}.hasOwnProperty),Te=Object.hasOwn||function(e,t){return SJ(id(e),t)},AJ=0,OJ=Math.random(),BJ=ht(1 .toString),Kh=function(e){return"Symbol("+(e===void 0?"":e)+")_"+BJ(++AJ+OJ,36)},Ul=Qa("wks"),wa=Ee.Symbol,zD=wa&&wa.for,FJ=b3?wa:wa&&wa.withoutSetter||Kh,Pn=function(e){if(!Te(Ul,e)||!Ar&&typeof Ul[e]!="string"){var t="Symbol."+e;Ar&&Te(wa,e)?Ul[e]=wa[e]:Ul[e]=b3&&zD?zD(t):FJ(t)}return Ul[e]},TJ=Ee.TypeError,kJ=Pn("toPrimitive"),_J=function(e,t){if(!Wn(e)||ns(e))return e;var n,r,i=(n=e[kJ])==null?void 0:QF(n);if(i){if(t===void 0&&(t="default"),r=sr(i,e,t),!Wn(r)||ns(r))return r;throw TJ("Can't convert object to primitive value")}return t===void 0&&(t="number"),function(o,a){var u,s;if(a==="string"&&Vt(u=o.toString)&&!Wn(s=sr(u,o))||Vt(u=o.valueOf)&&!Wn(s=sr(u,o))||a!=="string"&&Vt(u=o.toString)&&!Wn(s=sr(u,o)))return s;throw CJ("Can't convert object to primitive value")}(e,t)},Gs=function(e){var t=_J(e,"string");return ns(t)?t:t+""},Gb=Ee.document,PJ=Wn(Gb)&&Wn(Gb.createElement),eT=function(e){return PJ?Gb.createElement(e):{}},tT=!gn&&!Fn(function(){return Object.defineProperty(eT("div"),"a",{get:function(){return 7}}).a!=7}),HD=Object.getOwnPropertyDescriptor,$3={f:gn?HD:function(e,t){if(e=Kr(e),t=Gs(t),tT)try{return HD(e,t)}catch{}if(Te(e,t))return za(!sr(m3.f,e,t),e[t])}},NJ=/#|\.prototype\./,od=function(e,t){var n=RJ[IJ(e)];return n==LJ||n!=jJ&&(Vt(t)?Fn(t):!!t)},IJ=od.normalize=function(e){return String(e).replace(NJ,".").toLowerCase()},RJ=od.data={},jJ=od.NATIVE="N",LJ=od.POLYFILL="P",MJ=od,UD=ht(ht.bind),nT=function(e,t){return QF(e),t===void 0?e:UD?UD(e,t):function(){return e.apply(t,arguments)}},zJ=Ee.String,HJ=Ee.TypeError,Ha=function(e){if(Wn(e))return e;throw HJ(zJ(e)+" is not an object")},UJ=Ee.TypeError,VD=Object.defineProperty,eu={f:gn?VD:function(e,t,n){if(Ha(e),t=Gs(t),Ha(n),tT)try{return VD(e,t,n)}catch{}if("get"in n||"set"in n)throw UJ("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Br=gn?function(e,t,n){return eu.f(e,t,za(1,n))}:function(e,t,n){return e[t]=n,e},VJ=$3.f,WJ=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 YF(e,this,arguments)};return t.prototype=e.prototype,t},qi=function(e,t){var n,r,i,o,a,u,s,l,c=e.target,f=e.global,d=e.stat,p=e.proto,v=f?Ee:d?Ee[c]:(Ee[c]||{}).prototype,m=f?zn:zn[c]||Br(zn,c,{})[c],g=m.prototype;for(i in t)n=!MJ(f?i:c+(d?".":"#")+i,e.forced)&&v&&Te(v,i),a=m[i],n&&(u=e.noTargetGet?(l=VJ(v,i))&&l.value:v[i]),o=n&&u?u:t[i],n&&typeof a==typeof o||(s=e.bind&&n?nT(o,Ee):e.wrap&&n?WJ(o):p&&Vt(o)?ht(o):o,(e.sham||o&&o.sham||a&&a.sham)&&Br(s,"sham",!0),Br(m,i,s),p&&(Te(zn,r=c+"Prototype")||Br(zn,r,{}),Br(zn[r],i,o),e.real&&g&&!g[i]&&Br(g,i,o)))},Yh=Array.isArray||function(e){return $a(e)=="Array"},qJ=Math.ceil,GJ=Math.floor,w3=function(e){var t=+e;return t!=t||t===0?0:(t>0?GJ:qJ)(t)},KJ=Math.min,P0=function(e){return(t=e.length)>0?KJ(w3(t),9007199254740991):0;var t},Kb=function(e,t,n){var r=Gs(t);r in e?eu.f(e,r,za(0,n)):e[r]=n},rT={};rT[Pn("toStringTag")]="z";var E3=String(rT)==="[object z]",YJ=Pn("toStringTag"),XJ=Ee.Object,JJ=$a(function(){return arguments}())=="Arguments",N0=E3?$a:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(i,o){try{return i[o]}catch{}}(t=XJ(e),YJ))=="string"?n:JJ?$a(t):(r=$a(t))=="Object"&&Vt(t.callee)?"Arguments":r},ZJ=ht(Function.toString);Vt(ao.inspectSource)||(ao.inspectSource=function(e){return ZJ(e)});var iT=ao.inspectSource,oT=function(){},QJ=[],aT=rd("Reflect","construct"),C3=/^\s*(?:class|function)\b/,eZ=ht(C3.exec),tZ=!C3.exec(oT),Vl=function(e){if(!Vt(e))return!1;try{return aT(oT,QJ,e),!0}catch{return!1}},nZ=!aT||Fn(function(){var e;return Vl(Vl.call)||!Vl(Object)||!Vl(function(){e=!0})||e})?function(e){if(!Vt(e))return!1;switch(N0(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return tZ||!!eZ(C3,iT(e))}:Vl,rZ=Pn("species"),WD=Ee.Array,uT=function(e,t){return new(function(n){var r;return Yh(n)&&(r=n.constructor,(nZ(r)&&(r===WD||Yh(r.prototype))||Wn(r)&&(r=r[rZ])===null)&&(r=void 0)),r===void 0?WD:r}(e))(t===0?0:t)},iZ=Pn("species"),sT=Pn("isConcatSpreadable"),qD=Ee.TypeError,oZ=Gh>=51||!Fn(function(){var e=[];return e[sT]=!1,e.concat()[0]!==e}),aZ=function(e){return Gh>=51||!Fn(function(){var t=[];return(t.constructor={})[iZ]=function(){return{foo:1}},t[e](Boolean).foo!==1})}("concat"),uZ=function(e){if(!Wn(e))return!1;var t=e[sT];return t!==void 0?!!t:Yh(e)};qi({target:"Array",proto:!0,forced:!oZ||!aZ},{concat:function(e){var t,n,r,i,o,a=id(this),u=uT(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(uZ(o=t===-1?a:arguments[t])){if(s+(i=P0(o))>9007199254740991)throw qD("Maximum allowed index exceeded");for(n=0;n<i;n++,s++)n in o&&Kb(u,s,o[n])}else{if(s>=9007199254740991)throw qD("Maximum allowed index exceeded");Kb(u,s++,o)}return u.length=s,u}});var lp,sZ=Ee.String,Xh=function(e){if(N0(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return sZ(e)},lZ=Math.max,cZ=Math.min,Yb=function(e,t){var n=w3(e);return n<0?lZ(n+t,0):cZ(n,t)},GD=function(e){return function(t,n,r){var i,o=Kr(t),a=P0(o),u=Yb(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}},fZ={includes:GD(!0),indexOf:GD(!1)},ad={},dZ=fZ.indexOf,KD=ht([].push),lT=function(e,t){var n,r=Kr(e),i=0,o=[];for(n in r)!Te(ad,n)&&Te(r,n)&&KD(o,n);for(;t.length>i;)Te(r,n=t[i++])&&(~dZ(o,n)||KD(o,n));return o},Jh=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],D3=Object.keys||function(e){return lT(e,Jh)},pZ=gn?Object.defineProperties:function(e,t){Ha(e);for(var n,r=Kr(t),i=D3(t),o=i.length,a=0;o>a;)eu.f(e,n=i[a++],r[n]);return e},hZ=rd("document","documentElement"),YD=Qa("keys"),I0=function(e){return YD[e]||(YD[e]=Kh(e))},cT=I0("IE_PROTO"),Am=function(){},fT=function(e){return"<script>"+e+"<\/script>"},XD=function(e){e.write(fT("")),e.close();var t=e.parentWindow.Object;return e=null,t},Yp=function(){try{lp=new ActiveXObject("htmlfile")}catch{}var e,t;Yp=typeof document<"u"?document.domain&&lp?XD(lp):((t=eT("iframe")).style.display="none",hZ.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(fT("document.F=Object")),e.close(),e.F):XD(lp);for(var n=Jh.length;n--;)delete Yp.prototype[Jh[n]];return Yp()};ad[cT]=!0;var Zh,Rc,Qh,Ua=Object.create||function(e,t){var n;return e!==null?(Am.prototype=Ha(e),n=new Am,Am.prototype=null,n[cT]=e):n=Yp(),t===void 0?n:pZ(n,t)},gZ=Jh.concat("length","prototype"),dT={f:Object.getOwnPropertyNames||function(e){return lT(e,gZ)}},vZ=Ee.Array,mZ=Math.max,pT=dT.f,hT=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],yZ=function(e){try{return pT(e)}catch{return function(n,r,i){for(var o=P0(n),a=Yb(r,o),u=Yb(i===void 0?o:i,o),s=vZ(mZ(u-a,0)),l=0;a<u;a++,l++)Kb(s,l,n[a]);return s.length=l,s}(hT)}},gT={f:function(e){return hT&&$a(e)=="Window"?yZ(e):pT(Kr(e))}},Om={f:Object.getOwnPropertySymbols},bZ=ht([].slice),Os=function(e,t,n,r){r&&r.enumerable?e[t]=n:Br(e,t,n)},x3={f:Pn},$Z=eu.f,gt=function(e){var t=zn.Symbol||(zn.Symbol={});Te(t,e)||$Z(t,e,{value:x3.f(e)})},wZ=E3?{}.toString:function(){return"[object "+N0(this)+"]"},EZ=eu.f,JD=Pn("toStringTag"),eg=function(e,t,n,r){if(e){var i=n?e:e.prototype;Te(i,JD)||EZ(i,JD,{configurable:!0,value:t}),r&&!E3&&Br(i,"toString",wZ)}},ZD=Ee.WeakMap,CZ=Vt(ZD)&&/native code/.test(iT(ZD)),Xb=Ee.TypeError,DZ=Ee.WeakMap;if(CZ||ao.state){var Ko=ao.state||(ao.state=new DZ),xZ=ht(Ko.get),QD=ht(Ko.has),SZ=ht(Ko.set);Zh=function(e,t){if(QD(Ko,e))throw new Xb("Object already initialized");return t.facade=e,SZ(Ko,e,t),t},Rc=function(e){return xZ(Ko,e)||{}},Qh=function(e){return QD(Ko,e)}}else{var Du=I0("state");ad[Du]=!0,Zh=function(e,t){if(Te(e,Du))throw new Xb("Object already initialized");return t.facade=e,Br(e,Du,t),t},Rc=function(e){return Te(e,Du)?e[Du]:{}},Qh=function(e){return Te(e,Du)}}var Ks={set:Zh,get:Rc,has:Qh,enforce:function(e){return Qh(e)?Rc(e):Zh(e,{})},getterFor:function(e){return function(t){var n;if(!Wn(t)||(n=Rc(t)).type!==e)throw Xb("Incompatible receiver, "+e+" required");return n}}},ex=ht([].push),Pi=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,v=id(s),m=JF(v),g=nT(l,c),y=P0(m),h=0,$=f||uT,w=t?$(s,y):n||a?$(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),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:ex(w,d)}else switch(e){case 4:return!1;case 7:ex(w,d)}return o?-1:r||i?i:w}},R0={forEach:Pi(0),map:Pi(1),filter:Pi(2),some:Pi(3),every:Pi(4),find:Pi(5),findIndex:Pi(6),filterReject:Pi(7)}.forEach,dn=I0("hidden"),tx=Pn("toPrimitive"),AZ=Ks.set,nx=Ks.getterFor("Symbol"),lr=Object.prototype,Ki=Ee.Symbol,Zi=Ki&&Ki.prototype,rx=Ee.TypeError,Bm=Ee.QObject,Wl=rd("JSON","stringify"),vT=$3.f,Yi=eu.f,mT=gT.f,OZ=m3.f,yT=ht([].push),hi=Qa("symbols"),ud=Qa("op-symbols"),Fm=Qa("string-to-symbol-registry"),Tm=Qa("symbol-to-string-registry"),BZ=Qa("wks"),km=!Bm||!Bm.prototype||!Bm.prototype.findChild,Jb=gn&&Fn(function(){return Ua(Yi({},"a",{get:function(){return Yi(this,"a",{value:7}).a}})).a!=7})?function(e,t,n){var r=vT(lr,t);r&&delete lr[t],Yi(e,t,n),r&&e!==lr&&Yi(lr,t,r)}:Yi,_m=function(e,t){var n=hi[e]=Ua(Zi);return AZ(n,{type:"Symbol",tag:e,description:t}),gn||(n.description=t),n},tg=function(e,t,n){e===lr&&tg(ud,t,n),Ha(e);var r=Gs(t);return Ha(n),Te(hi,r)?(n.enumerable?(Te(e,dn)&&e[dn][r]&&(e[dn][r]=!1),n=Ua(n,{enumerable:za(0,!1)})):(Te(e,dn)||Yi(e,dn,za(1,{})),e[dn][r]=!0),Jb(e,r,n)):Yi(e,r,n)},ix=function(e,t){Ha(e);var n=Kr(t),r=D3(n).concat(Zb(n));return R0(r,function(i){gn&&!sr(bT,n,i)||tg(e,i,n[i])}),e},bT=function(e){var t=Gs(e),n=sr(OZ,this,t);return!(this===lr&&Te(hi,t)&&!Te(ud,t))&&(!(n||!Te(this,t)||!Te(hi,t)||Te(this,dn)&&this[dn][t])||n)},ox=function(e,t){var n=Kr(e),r=Gs(t);if(n!==lr||!Te(hi,r)||Te(ud,r)){var i=vT(n,r);return!i||!Te(hi,r)||Te(n,dn)&&n[dn][r]||(i.enumerable=!0),i}},ax=function(e){var t=mT(Kr(e)),n=[];return R0(t,function(r){Te(hi,r)||Te(ad,r)||yT(n,r)}),n},Zb=function(e){var t=e===lr,n=mT(t?ud:Kr(e)),r=[];return R0(n,function(i){!Te(hi,i)||t&&!Te(lr,i)||yT(r,hi[i])}),r};if(Ar||(Zi=(Ki=function(){if(ZF(Zi,this))throw rx("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==void 0?Xh(arguments[0]):void 0,t=Kh(e),n=function(r){this===lr&&sr(n,ud,r),Te(this,dn)&&Te(this[dn],t)&&(this[dn][t]=!1),Jb(this,t,za(1,r))};return gn&&km&&Jb(lr,t,{configurable:!0,set:n}),_m(t,e)}).prototype,Os(Zi,"toString",function(){return nx(this).tag}),Os(Ki,"withoutSetter",function(e){return _m(Kh(e),e)}),m3.f=bT,eu.f=tg,$3.f=ox,dT.f=gT.f=ax,Om.f=Zb,x3.f=function(e){return _m(Pn(e),e)},gn&&Yi(Zi,"description",{configurable:!0,get:function(){return nx(this).description}})),qi({global:!0,wrap:!0,forced:!Ar,sham:!Ar},{Symbol:Ki}),R0(D3(BZ),function(e){gt(e)}),qi({target:"Symbol",stat:!0,forced:!Ar},{for:function(e){var t=Xh(e);if(Te(Fm,t))return Fm[t];var n=Ki(t);return Fm[t]=n,Tm[n]=t,n},keyFor:function(e){if(!ns(e))throw rx(e+" is not a symbol");if(Te(Tm,e))return Tm[e]},useSetter:function(){km=!0},useSimple:function(){km=!1}}),qi({target:"Object",stat:!0,forced:!Ar,sham:!gn},{create:function(e,t){return t===void 0?Ua(e):ix(Ua(e),t)},defineProperty:tg,defineProperties:ix,getOwnPropertyDescriptor:ox}),qi({target:"Object",stat:!0,forced:!Ar},{getOwnPropertyNames:ax,getOwnPropertySymbols:Zb}),qi({target:"Object",stat:!0,forced:Fn(function(){Om.f(1)})},{getOwnPropertySymbols:function(e){return Om.f(id(e))}}),Wl){var FZ=!Ar||Fn(function(){var e=Ki();return Wl([e])!="[null]"||Wl({a:e})!="{}"||Wl(Object(e))!="{}"});qi({target:"JSON",stat:!0,forced:FZ},{stringify:function(e,t,n){var r=bZ(arguments),i=t;if((Wn(t)||e!==void 0)&&!ns(e))return Yh(t)||(t=function(o,a){if(Vt(i)&&(a=sr(i,this,o,a)),!ns(a))return a}),r[1]=t,YF(Wl,null,r)}})}if(!Zi[tx]){var TZ=Zi.valueOf;Os(Zi,tx,function(e){return sr(TZ,this)})}eg(Ki,"Symbol"),ad[dn]=!0,gt("asyncIterator"),gt("hasInstance"),gt("isConcatSpreadable"),gt("iterator"),gt("match"),gt("matchAll"),gt("replace"),gt("search"),gt("species"),gt("split"),gt("toPrimitive"),gt("toStringTag"),gt("unscopables"),eg(Ee.JSON,"JSON",!0);var Qi,ux,sx,kZ=zn.Symbol,Ea={},$T=Function.prototype,_Z=gn&&Object.getOwnPropertyDescriptor,Pm=Te($T,"name"),PZ={EXISTS:Pm,PROPER:Pm&&function(){}.name==="something",CONFIGURABLE:Pm&&(!gn||gn&&_Z($T,"name").configurable)},NZ=!Fn(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),lx=I0("IE_PROTO"),Qb=Ee.Object,IZ=Qb.prototype,e4=NZ?Qb.getPrototypeOf:function(e){var t=id(e);if(Te(t,lx))return t[lx];var n=t.constructor;return Vt(n)&&t instanceof n?n.prototype:t instanceof Qb?IZ:null},t4=Pn("iterator"),wT=!1;[].keys&&("next"in(sx=[].keys())?(ux=e4(e4(sx)))!==Object.prototype&&(Qi=ux):wT=!0);var RZ=Qi==null||Fn(function(){var e={};return Qi[t4].call(e)!==e});Qi=RZ?{}:Ua(Qi),Vt(Qi[t4])||Os(Qi,t4,function(){return this});var ET={IteratorPrototype:Qi,BUGGY_SAFARI_ITERATORS:wT},jZ=ET.IteratorPrototype,LZ=function(){return this};Ee.String,Ee.TypeError;Object.setPrototypeOf||"__proto__"in{}&&function(){var e,t=!1,n={};try{(e=ht(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}}();var MZ=PZ.PROPER,cp=ET.BUGGY_SAFARI_ITERATORS,Nm=Pn("iterator"),zZ=function(){return this},CT=function(e,t,n,r,i,o,a){(function(y,h,$,w){var C=h+" Iterator";y.prototype=Ua(jZ,{next:za(+!w,$)}),eg(y,C,!1,!0),Ea[C]=LZ})(n,t,r);var u,s,l,c=function(y){if(y===i&&m)return m;if(!cp&&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,v=p[Nm]||p["@@iterator"]||i&&p[i],m=!cp&&v||c(i),g=t=="Array"&&p.entries||v;if(g&&(u=e4(g.call(new e)))!==Object.prototype&&u.next&&(eg(u,f,!0,!0),Ea[f]=zZ),MZ&&i=="values"&&v&&v.name!=="values"&&(d=!0,m=function(){return sr(v,this)}),i)if(s={values:c("values"),keys:o?m:c("keys"),entries:c("entries")},a)for(l in s)(cp||d||!(l in p))&&Os(p,l,s[l]);else qi({target:t,proto:!0,forced:cp||d},s);return a&&p[Nm]!==m&&Os(p,Nm,m,{name:i}),Ea[t]=m,s},HZ=Ks.set,UZ=Ks.getterFor("Array Iterator");CT(Array,"Array",function(e,t){HZ(this,{type:"Array Iterator",target:Kr(e),index:0,kind:t})},function(){var e=UZ(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"),Ea.Arguments=Ea.Array;var cx=Pn("toStringTag");for(var Im 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 fx=Ee[Im],Rm=fx&&fx.prototype;Rm&&N0(Rm)!==cx&&Br(Rm,cx,Im),Ea[Im]=Ea.Array}var VZ=kZ;gt("asyncDispose"),gt("dispose"),gt("matcher"),gt("metadata"),gt("observable"),gt("patternMatch"),gt("replaceAll");var fp=VZ,WZ=ht("".charAt),dx=ht("".charCodeAt),qZ=ht("".slice),px=function(e){return function(t,n){var r,i,o=Xh(y3(t)),a=w3(n),u=o.length;return a<0||a>=u?e?"":void 0:(r=dx(o,a))<55296||r>56319||a+1===u||(i=dx(o,a+1))<56320||i>57343?e?WZ(o,a):r:e?qZ(o,a,a+2):i-56320+(r-55296<<10)+65536}},GZ={codeAt:px(!1),charAt:px(!0)}.charAt,KZ=Ks.set,YZ=Ks.getterFor("String Iterator");CT(String,"String",function(e){KZ(this,{type:"String Iterator",string:Xh(e),index:0})},function(){var e,t=YZ(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=GZ(n,r),t.index+=e.length,{value:e,done:!1})});var XZ=x3.f("iterator"),JZ=S0(function(e){function t(n){return typeof fp=="function"&&typeof XZ=="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 fp=="function"&&r.constructor===fp&&r!==fp.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}),ZZ=dG(JZ),QZ=B0.EXISTS,eQ=Us.f,DT=Function.prototype,tQ=le(DT.toString),xT=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,nQ=le(xT.exec);hr&&!QZ&&eQ(DT,"name",{configurable:!0,get:function(){try{return nQ(xT,tQ(this))[1]}catch{return""}}});var rQ=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=q("fontFamily.title"),n.iconSvg=EY,n.mark="fontFamily",n.selectPanelWidth=150,n}return tt(t,e),t.prototype.getOptions=function(n){var r=[],i=n.getMenuConfig(this.mark).fontFamilyList,o=i===void 0?[]:i;r.push({text:q("fontFamily.default"),value:""}),o.forEach(function(u){if(typeof u=="string")r.push({text:u,value:u,styleForRenderMenuList:{"font-family":u}});else if(ZZ(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}(KF),iQ={renderStyle:function(e,t){var n=e,r=n.fontSize,i=n.fontFamily,o=t;return r&&Ma(o,{fontSize:r}),i&&Ma(o,{fontFamily:i}),o},styleToHtml:function(e,t){if(!X.isText(e))return t;var n,r=e,i=r.fontSize,o=r.fontFamily;return i||o?((d3(t)||qs(n=O(t))!=="span")&&(n=O("<span>"+t+"</span>")),i&&n.css("font-size",i),o&&n.css("font-family",o),Ws(n)):t},preParseHtml:[cJ],parseStyleHtml:function(e,t,n){var r=O(e);if(!X.isText(t))return t;var i=t,o=n.getMenuConfig("fontSize").fontSizeList,a=o===void 0?[]:o,u=dr(r,"font-size");u&&a.includes(u)&&(i.fontSize=u);var s=n.getMenuConfig("fontFamily").fontFamilyList,l=s===void 0?[]:s,c=dr(r,"font-family"),f=l.find(function(d){return d.value&&d.value===c})||l.includes(c);return c&&f&&(i.fontFamily=c),i},menus:[{key:"fontSize",factory:function(){return new dJ},config:{fontSizeList:["12px","13px","14px","15px","16px","19px","22px","24px","29px","32px","40px","48px"]}},{key:"fontFamily",factory:function(){return new rQ},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"]}}]},oQ={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=O(e),n=dr(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]}},ST=function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){var n=ke(E.nodes(t,{match:function(i){return!!i.indent},universal:!0}),1),r=n[0];return r==null?"":ke(r,1)[0].indent||""},e.prototype.isActive=function(t){return!1},e.prototype.getMatchNode=function(t){var n=ke(E.nodes(t,{match:function(r){var i=S.getNodeType(r);return i==="paragraph"||!!i.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},e}(),aQ=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=q("indent.decrease"),n.iconSvg=CY,n}return tt(t,e),t.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!r.indent},t.prototype.exec=function(n,r){P.setNodes(n,{indent:null},{match:function(i){return te.isElement(i)}})},t}(ST),uQ=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=q("indent.increase"),n.iconSvg=DY,n}return tt(t,e),t.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!!r.indent},t.prototype.exec=function(n,r){P.setNodes(n,{indent:"2em"},{match:function(i){return te.isElement(i)},mode:"highest"})},t}(ST),sQ={renderStyle:function(e,t){if(!te.isElement(e))return t;var n=e.indent,r=t;return n&&Ma(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!te.isElement(e))return t;var n=e.indent;if(!n)return t;var r=O(t);return r.css("text-indent",n),Ws(r)},preParseHtml:[oQ],parseStyleHtml:function(e,t,n){var r=O(e);if(!te.isElement(t))return t;var i=t,o=dr(r,"text-indent"),a=parseInt(o,10);return o&&a>0&&(i.indent=o),i},menus:[{key:"indent",factory:function(){return new uQ}},{key:"delIndent",factory:function(){return new aQ}}]},j0=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=ke(E.nodes(t,{match:function(r){var i=S.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||!!S.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}(),lQ=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=q("justify.left"),n.iconSvg=xY,n}return tt(t,e),t.prototype.exec=function(n,r){P.setNodes(n,{textAlign:"left"},{match:function(i){return te.isElement(i)&&!n.isInline(i)}})},t}(j0),cQ=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=q("justify.right"),n.iconSvg=SY,n}return tt(t,e),t.prototype.exec=function(n,r){P.setNodes(n,{textAlign:"right"},{match:function(i){return te.isElement(i)&&!n.isInline(i)}})},t}(j0),fQ=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=q("justify.center"),n.iconSvg=AY,n}return tt(t,e),t.prototype.exec=function(n,r){P.setNodes(n,{textAlign:"center"},{match:function(i){return te.isElement(i)&&!n.isInline(i)}})},t}(j0),dQ=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=q("justify.justify"),n.iconSvg=OY,n}return tt(t,e),t.prototype.exec=function(n,r){P.setNodes(n,{textAlign:"justify"},{match:function(i){return te.isElement(i)&&!n.isInline(i)}})},t}(j0),pQ={renderStyle:function(e,t){if(!te.isElement(e))return t;var n=e.textAlign,r=t;return n&&Ma(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!te.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=O(t);return r.css("text-align",n),Ws(r)},parseStyleHtml:function(e,t,n){var r=O(e);if(!te.isElement(t))return t;var i=t,o=dr(r,"text-align");return o&&(i.textAlign=o),i},menus:[{key:"justifyLeft",factory:function(){return new lQ}},{key:"justifyRight",factory:function(){return new cQ}},{key:"justifyCenter",factory:function(){return new fQ}},{key:"justifyJustify",factory:function(){return new dQ}}]},hQ=function(){function e(){this.title=q("lineHeight.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M964 788a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526zM198.93 144.306c6.668-5.798 16.774-5.094 22.573 1.574l122.26 140.582a16 16 0 0 1 3.927 10.5c0 8.836-7.164 16-16 16h-61.8a8 8 0 0 0-8 8v390.077h69.819a16 16 0 0 1 10.502 3.928c6.666 5.8 7.37 15.906 1.57 22.573L221.476 878.123a16 16 0 0 1-1.57 1.57c-6.668 5.8-16.774 5.097-22.574-1.57L75.051 737.538a16 16 0 0 1-3.928-10.5c0-8.837 7.163-16 16-16h69.822V312.96H87.127a16 16 0 0 1-10.502-3.928c-6.666-5.8-7.37-15.906-1.57-22.573l122.303-140.582a16 16 0 0 1 1.572-1.572zM964 465a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z m0-323a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z"></path></svg>',this.tag="select",this.width=80}return e.prototype.getOptions=function(t){var n=[],r=t.getMenuConfig("lineHeight").lineHeightList,i=r===void 0?[]:r;n.push({text:q("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=ke(E.nodes(t,{match:function(r){var i=S.getNodeType(r);return!!i.startsWith("header")||!!["paragraph","blockquote","bulleted-list","numbered-list"].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?"":te.isElement(n)&&n.lineHeight||""},e.prototype.isDisabled=function(t){return t.selection==null||this.getMatchNode(t)==null},e.prototype.exec=function(t,n){P.setNodes(t,{lineHeight:n.toString()},{mode:"highest"})},e}(),gQ={renderStyle:function(e,t){if(!te.isElement(e))return t;var n=e.lineHeight,r=t;return n&&Ma(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!te.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=O(t);return r.css("line-height",n),Ws(r)},parseStyleHtml:function(e,t,n){var r=O(e);if(!te.isElement(t))return t;var i=t,o=n.getMenuConfig("lineHeight").lineHeightList,a=o===void 0?[]:o,u=dr(r,"line-height");return u&&a.includes(u)&&(i.lineHeight=u),i},menus:[{key:"lineHeight",factory:function(){return new hQ},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},vQ=function(){function e(){this.title=q("undo.redo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0.00032 576a510.72 510.72 0 0 0 173.344 384l84.672-96A383.136 383.136 0 0 1 128.00032 576C128.00032 363.936 299.93632 192 512.00032 192c106.048 0 202.048 42.976 271.52 112.48L640.00032 448h384V64l-149.984 149.984A510.272 510.272 0 0 0 512.00032 64C229.21632 64 0.00032 293.216 0.00032 576z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null},e.prototype.exec=function(t,n){typeof t.redo=="function"&&t.redo()},e}(),mQ=function(){function e(){this.title=q("undo.undo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 64A510.272 510.272 0 0 0 149.984 213.984L0.032 64v384h384L240.512 304.48A382.784 382.784 0 0 1 512.032 192c212.064 0 384 171.936 384 384 0 114.688-50.304 217.632-130.016 288l84.672 96a510.72 510.72 0 0 0 173.344-384c0-282.784-229.216-512-512-512z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null},e.prototype.exec=function(t,n){typeof t.undo=="function"&&t.undo()},e}(),yQ={menus:[{key:"redo",factory:function(){return new vQ}},{key:"undo",factory:function(){return new mQ}}]},bQ={type:"divider",renderElem:function(e,t,n){var r=S.isNodeSelected(n,e);return $s("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:r?"true":""},style:{},on:{mousedown:function(i){return i.preventDefault()}}},[$s("hr")])}},$Q={type:"divider",elemToHtml:function(e,t){return"<hr/>"}},wQ={selector:"hr",parseElemHtml:function(e,t,n){return{type:"divider",children:[{text:""}]}}},EQ=function(){function e(){this.title=q("divider.title"),this.iconSvg='<svg viewBox="0 0 1092 1024"><path d="M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!!S.getSelectedElems(t).some(function(n){if(t.isVoid(n))return!0;var r=S.getNodeType(n);return r==="table"||r==="pre"||void 0})},e.prototype.exec=function(t,n){P.insertNodes(t,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}(),CQ={renderElems:[bQ],elemsToHtml:[$Q],parseElemsHtml:[wQ],menus:[{key:"divider",factory:function(){return new EQ}}],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=ke(i,2),a=o[0],u=o[1];if(S.getNodeType(a)!=="divider")return n([a,u]);S.isLastNode(r,a)&&P.insertNodes(r,S.genEmptyParagraph(),{at:[u[0]+1]})},r}},DQ=T0.map;_t({target:"Array",proto:!0,forced:!u3("map")},{map:function(e){return DQ(this,e,arguments.length>1?arguments[1]:void 0)}});var xQ=le([].join),SQ=A0!=Object,AQ=OF("join",",");_t({target:"Array",proto:!0,forced:SQ||!AQ},{join:function(e){return xQ(Hs(this),e===void 0?",":e)}});var OQ=function(){function e(){this.title=q("codeBlock.title"),this.iconSvg='<svg viewBox="0 0 1280 1024"><path d="M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z"></path></svg>',this.tag="button"}return e.prototype.getSelectCodeElem=function(t){var n=S.getSelectedNodeByType(t,"code");if(n==null)return null;var r=S.getParentNode(t,n);return r==null||S.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=S.getSelectedElems(t);return!!n.some(function(r){return t.isVoid(r)})||!n.some(function(r){var i=S.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=W.string(n);P.removeNodes(t,{mode:"highest"});var i=r.split(`
|
||
`).map(function(o){return{type:"paragraph",children:[{text:o}]}});P.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=AF(a),s=u.next();!s.done;s=u.next()){var l=ke(s.value,1)[0];l&&o.push(W.string(l))}}catch(f){r={error:f}}finally{try{s&&!s.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}P.removeNodes(t,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:n,children:[{text:o.join(`
|
||
`)}]}]};P.insertNodes(t,c,{mode:"highest"})},e}(),BQ={key:"codeBlock",factory:function(){return new OQ}};_t({target:"String",proto:!0,forced:xc("anchor")},{anchor:function(e){return Dc(this,"a","name",e)}}),c3("match",function(e,t,n){return[function(r){var i=er(this),o=r==null?void 0:O0(r,e);return o?pt(o,r,i):new RegExp(r)[e](it(i))},function(r){var i=Bn(this),o=it(r),a=n(t,i,o);if(a.done)return a.value;if(!i.global)return vf(i,o);var u=i.unicode;i.lastIndex=0;for(var s,l=[],c=0;(s=vf(i,o))!==null;){var f=it(s[0]);l[c]=f,f===""&&(i.lastIndex=f3(o,Qf(i.lastIndex),u)),c++}return c===0?null:l}]});var FQ={type:"pre",renderElem:function(e,t,n){return de("pre",null,t)}},TQ={type:"code",renderElem:function(e,t,n){return de("code",null,t)}},kQ={selector:"pre",parseElemHtml:function(e,t,n){var r=O(e);return(t=t.filter(function(i){return S.getNodeType(i)==="code"})).length===0&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter(function(i){return S.getNodeType(i)==="code"})}}},_Q={menus:[BQ],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var i=e;return i.insertBreak=function(){var o=S.getSelectedNodeByType(i,"code");if(o!=null){var a=function(l,c){var f=c.selection;if(f==null)return"";var d=W.string(l),p=f.anchor.offset,v=d.slice(0,p).split(`
|
||
`),m=v.length;return m===0?"":v[m-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=ke(o,2),u=a[0],s=a[1],l=S.getNodeType(u);return l==="code"&&s.length<=1&&P.setNodes(i,{type:"paragraph"},{at:s}),l==="pre"&&(S.isLastNode(i,u)&&P.insertNodes(i,S.genEmptyParagraph(),{at:[s[0]+1]}),S.getNodeType(u.children[0])!=="code"&&(P.unwrapNodes(i),P.setNodes(i,{type:"paragraph"},{mode:"highest"}))),n([u,s])},i.insertData=function(o){if(S.getSelectedNodeByType(i,"code")!=null){var a=o.getData("text/plain");E.insertText(i,a)}else r(o)},i},renderElems:[FQ,TQ],elemsToHtml:[{type:"code",elemToHtml:function(e,t){return"<code>"+t+"</code>"}},{type:"pre",elemToHtml:function(e,t){return"<pre>"+t+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(e){var t=O(e);if(qs(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>code",parseElemHtml:function(e,t,n){return{type:"code",language:"",children:[{text:O(e)[0].textContent||""}]}}},kQ]},PQ=function(){function e(){this.title=q("fullScreen.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return t.isFullScreen},e.prototype.isDisabled=function(t){return!1},e.prototype.exec=function(t,n){t.isFullScreen?t.unFullScreen():t.fullScreen()},e}(),NQ={menus:[{key:"fullScreen",factory:function(){return new PQ}}]},IQ=function(){function e(){this.title=q("common.enter"),this.iconSvg='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!!R.isExpanded(n)},e.prototype.exec=function(t,n){var r=t.selection;if(r!=null){var i=[r.anchor.path[0]];P.insertNodes(t,{type:"paragraph",children:[{text:""}]},{at:i}),t.select(E.start(t,i))}},e}(),RQ=[LY,mX,iQ,sQ,pQ,gQ,qX,CQ,sJ,FX,_Q,aJ,dX,sY,XX,yQ,NQ,{menus:[{key:"enter",factory:function(){return new IQ}}]}];vn("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),vn("zh-CN",{listModule:{unOrderedList:"\u65E0\u5E8F\u5217\u8868",orderedList:"\u6709\u5E8F\u5217\u8868"}});var hx=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function AT(e){var t={exports:{}};return e(t,t.exports),t.exports}var Ni,Xp,dp=function(e){return e&&e.Math==Math&&e},Ae=dp(typeof globalThis=="object"&&globalThis)||dp(typeof window=="object"&&window)||dp(typeof self=="object"&&self)||dp(typeof hx=="object"&&hx)||function(){return this}()||Function("return this")(),Wt=function(e){try{return!!e()}catch{return!0}},Co=!Wt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),ql=Function.prototype.call,un=ql.bind?ql.bind(ql):function(){return ql.apply(ql,arguments)},gx={}.propertyIsEnumerable,vx=Object.getOwnPropertyDescriptor,jQ={f:vx&&!gx.call({1:2},1)?function(e){var t=vx(this,e);return!!t&&t.enumerable}:gx},S3=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},OT=Function.prototype,n4=OT.bind,r4=OT.call,LQ=n4&&n4.bind(r4),Ne=n4?function(e){return e&&LQ(r4,e)}:function(e){return e&&function(){return r4.apply(e,arguments)}},MQ=Ne({}.toString),zQ=Ne("".slice),Ca=function(e){return zQ(MQ(e),8,-1)},jm=Ae.Object,HQ=Ne("".split),BT=Wt(function(){return!jm("z").propertyIsEnumerable(0)})?function(e){return Ca(e)=="String"?HQ(e,""):jm(e)}:jm,UQ=Ae.TypeError,sd=function(e){if(e==null)throw UQ("Can't call method on "+e);return e},L0=function(e){return BT(sd(e))},qt=function(e){return typeof e=="function"},ar=function(e){return typeof e=="object"?e!==null:qt(e)},VQ=function(e){return qt(e)?e:void 0},ld=function(e,t){return arguments.length<2?VQ(Ae[e]):Ae[e]&&Ae[e][t]},WQ=Ne({}.isPrototypeOf),Lm=ld("navigator","userAgent")||"",mx=Ae.process,yx=Ae.Deno,bx=mx&&mx.versions||yx&&yx.version,$x=bx&&bx.v8;$x&&(Xp=(Ni=$x.split("."))[0]>0&&Ni[0]<4?1:+(Ni[0]+Ni[1])),!Xp&&Lm&&(!(Ni=Lm.match(/Edge\/(\d+)/))||Ni[1]>=74)&&(Ni=Lm.match(/Chrome\/(\d+)/))&&(Xp=+Ni[1]);var ng=Xp,i4=!!Object.getOwnPropertySymbols&&!Wt(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ng&&ng<41}),A3=i4&&!Symbol.sham&&typeof Symbol.iterator=="symbol",qQ=Ae.Object,o4=A3?function(e){return typeof e=="symbol"}:function(e){var t=ld("Symbol");return qt(t)&&WQ(t.prototype,qQ(e))},GQ=Ae.String,KQ=Ae.TypeError,FT=function(e){if(qt(e))return e;throw KQ(function(t){try{return GQ(t)}catch{return"Object"}}(e)+" is not a function")},TT=function(e,t){var n=e[t];return n==null?void 0:FT(n)},YQ=Ae.TypeError,XQ=Object.defineProperty,O3=function(e,t){try{XQ(Ae,e,{value:t,configurable:!0,writable:!0})}catch{Ae[e]=t}return t},uo=Ae["__core-js_shared__"]||O3("__core-js_shared__",{}),B3=AT(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)"})}),JQ=Ae.Object,M0=function(e){return JQ(sd(e))},ZQ=Ne({}.hasOwnProperty),Yn=Object.hasOwn||function(e,t){return ZQ(M0(e),t)},QQ=0,eee=Math.random(),tee=Ne(1 .toString),kT=function(e){return"Symbol("+(e===void 0?"":e)+")_"+tee(++QQ+eee,36)},Gl=B3("wks"),Da=Ae.Symbol,wx=Da&&Da.for,nee=A3?Da:Da&&Da.withoutSetter||kT,Yr=function(e){if(!Yn(Gl,e)||!i4&&typeof Gl[e]!="string"){var t="Symbol."+e;i4&&Yn(Da,e)?Gl[e]=Da[e]:Gl[e]=A3&&wx?wx(t):nee(t)}return Gl[e]},ree=Ae.TypeError,iee=Yr("toPrimitive"),oee=function(e,t){if(!ar(e)||o4(e))return e;var n,r=TT(e,iee);if(r){if(t===void 0&&(t="default"),n=un(r,e,t),!ar(n)||o4(n))return n;throw ree("Can't convert object to primitive value")}return t===void 0&&(t="number"),function(i,o){var a,u;if(o==="string"&&qt(a=i.toString)&&!ar(u=un(a,i))||qt(a=i.valueOf)&&!ar(u=un(a,i))||o!=="string"&&qt(a=i.toString)&&!ar(u=un(a,i)))return u;throw YQ("Can't convert object to primitive value")}(e,t)},F3=function(e){var t=oee(e,"string");return o4(t)?t:t+""},a4=Ae.document,aee=ar(a4)&&ar(a4.createElement),_T=function(e){return aee?a4.createElement(e):{}},PT=!Co&&!Wt(function(){return Object.defineProperty(_T("div"),"a",{get:function(){return 7}}).a!=7}),Ex=Object.getOwnPropertyDescriptor,NT={f:Co?Ex:function(e,t){if(e=L0(e),t=F3(t),PT)try{return Ex(e,t)}catch{}if(Yn(e,t))return S3(!un(jQ.f,e,t),e[t])}},uee=Ae.String,see=Ae.TypeError,Do=function(e){if(ar(e))return e;throw see(uee(e)+" is not an object")},lee=Ae.TypeError,Cx=Object.defineProperty,cd={f:Co?Cx:function(e,t,n){if(Do(e),t=F3(t),Do(n),PT)try{return Cx(e,t,n)}catch{}if("get"in n||"set"in n)throw lee("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},mf=Co?function(e,t,n){return cd.f(e,t,S3(1,n))}:function(e,t,n){return e[t]=n,e},cee=Ne(Function.toString);qt(uo.inspectSource)||(uo.inspectSource=function(e){return cee(e)});var rg,jc,ig,T3=uo.inspectSource,Dx=Ae.WeakMap,fee=qt(Dx)&&/native code/.test(T3(Dx)),xx=B3("keys"),IT=function(e){return xx[e]||(xx[e]=kT(e))},k3={},u4=Ae.TypeError,dee=Ae.WeakMap;if(fee||uo.state){var Yo=uo.state||(uo.state=new dee),pee=Ne(Yo.get),Sx=Ne(Yo.has),hee=Ne(Yo.set);rg=function(e,t){if(Sx(Yo,e))throw new u4("Object already initialized");return t.facade=e,hee(Yo,e,t),t},jc=function(e){return pee(Yo,e)||{}},ig=function(e){return Sx(Yo,e)}}else{var xu=IT("state");k3[xu]=!0,rg=function(e,t){if(Yn(e,xu))throw new u4("Object already initialized");return t.facade=e,mf(e,xu,t),t},jc=function(e){return Yn(e,xu)?e[xu]:{}},ig=function(e){return Yn(e,xu)}}var pp,s4={set:rg,get:jc,has:ig,enforce:function(e){return ig(e)?jc(e):rg(e,{})},getterFor:function(e){return function(t){var n;if(!ar(t)||(n=jc(t)).type!==e)throw u4("Incompatible receiver, "+e+" required");return n}}},RT=Function.prototype,gee=Co&&Object.getOwnPropertyDescriptor,Mm=Yn(RT,"name"),vee={EXISTS:Mm,PROPER:Mm&&function(){}.name==="something",CONFIGURABLE:Mm&&(!Co||Co&&gee(RT,"name").configurable)},og=AT(function(e){var t=vee.CONFIGURABLE,n=s4.get,r=s4.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;qt(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Yn(u,"name")||t&&u.name!==p)&&mf(u,"name",p),(l=r(u)).source||(l.source=i.join(typeof p=="string"?p:""))),o!==Ae?(c?!d&&o[a]&&(f=!0):delete o[a],f?o[a]=u:mf(o,a,u)):f?o[a]=u:O3(a,u)})(Function.prototype,"toString",function(){return qt(this)&&n(this).source||T3(this)})}),mee=Math.ceil,yee=Math.floor,z0=function(e){var t=+e;return t!=t||t===0?0:(t>0?yee:mee)(t)},bee=Math.max,$ee=Math.min,wee=Math.min,jT=function(e){return e>0?wee(z0(e),9007199254740991):0},_3=function(e){return jT(e.length)},Ax=function(e){return function(t,n,r){var i,o=L0(t),a=_3(o),u=function(s,l){var c=z0(s);return c<0?bee(c+l,0):$ee(c,l)}(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}},LT={includes:Ax(!0),indexOf:Ax(!1)},Eee=LT.indexOf,Ox=Ne([].push),MT=function(e,t){var n,r=L0(e),i=0,o=[];for(n in r)!Yn(k3,n)&&Yn(r,n)&&Ox(o,n);for(;t.length>i;)Yn(r,n=t[i++])&&(~Eee(o,n)||Ox(o,n));return o},ag=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Cee=ag.concat("length","prototype"),Dee={f:Object.getOwnPropertyNames||function(e){return MT(e,Cee)}},xee={f:Object.getOwnPropertySymbols},See=Ne([].concat),Aee=ld("Reflect","ownKeys")||function(e){var t=Dee.f(Do(e)),n=xee.f;return n?See(t,n(e)):t},Oee=function(e,t){for(var n=Aee(t),r=cd.f,i=NT.f,o=0;o<n.length;o++){var a=n[o];Yn(e,a)||r(e,a,i(t,a))}},Bee=/#|\.prototype\./,fd=function(e,t){var n=Tee[Fee(e)];return n==_ee||n!=kee&&(qt(t)?Wt(t):!!t)},Fee=fd.normalize=function(e){return String(e).replace(Bee,".").toLowerCase()},Tee=fd.data={},kee=fd.NATIVE="N",_ee=fd.POLYFILL="P",Pee=fd,Nee=NT.f,Ys=function(e,t){var n,r,i,o,a,u=e.target,s=e.global,l=e.stat;if(n=s?Ae:l?Ae[u]||O3(u,{}):(Ae[u]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=Nee(n,r))&&a.value:n[r],!Pee(s?r:u+(l?".":"#")+r,e.forced)&&i!==void 0){if(typeof o==typeof i)continue;Oee(o,i)}(e.sham||i&&i.sham)&&mf(o,"sham",!0),og(n,r,o,e)}},Iee=Object.keys||function(e){return MT(e,ag)},Ree=Co?Object.defineProperties:function(e,t){Do(e);for(var n,r=L0(t),i=Iee(t),o=i.length,a=0;o>a;)cd.f(e,n=i[a++],r[n]);return e},jee=ld("document","documentElement"),zT=IT("IE_PROTO"),zm=function(){},HT=function(e){return"<script>"+e+"<\/script>"},Bx=function(e){e.write(HT("")),e.close();var t=e.parentWindow.Object;return e=null,t},Jp=function(){try{pp=new ActiveXObject("htmlfile")}catch{}var e,t;Jp=typeof document<"u"?document.domain&&pp?Bx(pp):((t=_T("iframe")).style.display="none",jee.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(HT("document.F=Object")),e.close(),e.F):Bx(pp);for(var n=ag.length;n--;)delete Jp.prototype[ag[n]];return Jp()};k3[zT]=!0;var UT=Object.create||function(e,t){var n;return e!==null?(zm.prototype=Do(e),n=new zm,zm.prototype=null,n[zT]=e):n=Jp(),t===void 0?n:Ree(n,t)},l4=Yr("unscopables"),c4=Array.prototype;c4[l4]==null&&cd.f(c4,l4,{configurable:!0,value:UT(null)});var Fx,Lee=LT.includes;function VT(e){if(e==="bulleted-list")return"ul";if(e==="numbered-list")return"ol";if(e==="list-item")return"li";throw new Error("list type '"+e+"' is invalid")}function ug(e){var t=S.getNodeType(e);return["bulleted-list","numbered-list"].includes(t)}function P3(e){return function(t,n,r){var i=VT(e);return de(i,null,n)}}Ys({target:"Array",proto:!0},{includes:function(e){return Lee(this,e,arguments.length>1?arguments[1]:void 0)}}),Fx="includes",c4[l4][Fx]=!0;var Mee={type:"bulleted-list",renderElem:P3("bulleted-list")},zee={type:"numbered-list",renderElem:P3("numbered-list")},Hee={type:"list-item",renderElem:P3("list-item")};function N3(e){var t=VT(e);return function(n,r){return"<"+t+">"+r+"</"+t+">"}}var Uee={type:"bulleted-list",elemToHtml:N3("bulleted-list")},Vee={type:"numbered-list",elemToHtml:N3("numbered-list")},Wee={type:"list-item",elemToHtml:N3("list-item")},Tx=Ne(Ne.bind),f4=Array.isArray||function(e){return Ca(e)=="Array"},WT={};WT[Yr("toStringTag")]="z";var I3=String(WT)==="[object z]",qee=Yr("toStringTag"),Gee=Ae.Object,Kee=Ca(function(){return arguments}())=="Arguments",R3=I3?Ca:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(i,o){try{return i[o]}catch{}}(t=Gee(e),qee))=="string"?n:Kee?Ca(t):(r=Ca(t))=="Object"&&qt(t.callee)?"Arguments":r},qT=function(){},Yee=[],GT=ld("Reflect","construct"),j3=/^\s*(?:class|function)\b/,Xee=Ne(j3.exec),Jee=!j3.exec(qT),Kl=function(e){if(!qt(e))return!1;try{return GT(qT,Yee,e),!0}catch{return!1}},Zee=!GT||Wt(function(){var e;return Kl(Kl.call)||!Kl(Object)||!Kl(function(){e=!0})||e})?function(e){if(!qt(e))return!1;switch(R3(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Jee||!!Xee(j3,T3(e))}:Kl,Qee=Yr("species"),kx=Ae.Array,KT=function(e,t){return new(function(n){var r;return f4(n)&&(r=n.constructor,(Zee(r)&&(r===kx||f4(r.prototype))||ar(r)&&(r=r[Qee])===null)&&(r=void 0)),r===void 0?kx:r}(e))(t===0?0:t)},_x=Ne([].push),Ii=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,v=M0(s),m=BT(v),g=function(C,D){return FT(C),D===void 0?C:Tx?Tx(C,D):function(){return C.apply(D,arguments)}}(l,c),y=_3(m),h=0,$=f||KT,w=t?$(s,y):n||a?$(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),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:_x(w,d)}else switch(e){case 4:return!1;case 7:_x(w,d)}return o?-1:r||i?i:w}},ete={forEach:Ii(0),map:Ii(1),filter:Ii(2),some:Ii(3),every:Ii(4),find:Ii(5),findIndex:Ii(6),filterReject:Ii(7)},tte=Yr("species"),YT=function(e){return ng>=51||!Wt(function(){var t=[];return(t.constructor={})[tte]=function(){return{foo:1}},t[e](Boolean).foo!==1})},nte=ete.filter;Ys({target:"Array",proto:!0,forced:!YT("filter")},{filter:function(e){return nte(this,e,arguments.length>1?arguments[1]:void 0)}});var rte=I3?{}.toString:function(){return"[object "+R3(this)+"]"};I3||og(Object.prototype,"toString",rte,{unsafe:!0});var Px,Hm,ite=Ae.String,Fr=function(e){if(R3(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return ite(e)},ote=function(){var e=Do(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},L3=Ae.RegExp,d4=Wt(function(){var e=L3("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),ate=d4||Wt(function(){return!L3("a","y").sticky}),ute={BROKEN_CARET:d4||Wt(function(){var e=L3("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:ate,UNSUPPORTED_Y:d4},ste=Ae.RegExp,lte=Wt(function(){var e=ste(".","s");return!(e.dotAll&&e.exec(`
|
||
`)&&e.flags==="s")}),cte=Ae.RegExp,fte=Wt(function(){var e=cte("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),dte=s4.get,pte=B3("native-string-replace",String.prototype.replace),sg=RegExp.prototype.exec,p4=sg,hte=Ne("".charAt),gte=Ne("".indexOf),vte=Ne("".replace),Um=Ne("".slice),Vm=(Hm=/b*/g,un(sg,Px=/a/,"a"),un(sg,Hm,"a"),Px.lastIndex!==0||Hm.lastIndex!==0),Nx=ute.BROKEN_CARET,Wm=/()??/.exec("")[1]!==void 0;(Vm||Wm||Nx||lte||fte)&&(p4=function(e){var t,n,r,i,o,a,u,s=this,l=dte(s),c=Fr(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=un(p4,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=Nx&&s.sticky,v=un(ote,s),m=s.source,g=0,y=c;if(p&&(v=vte(v,"y",""),gte(v,"g")===-1&&(v+="g"),y=Um(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&hte(c,s.lastIndex-1)!==`
|
||
`)&&(m="(?: "+m+")",y=" "+y,g++),n=new RegExp("^(?:"+m+")",v)),Wm&&(n=new RegExp("^"+m+"$(?!\\s)",v)),Vm&&(r=s.lastIndex),i=un(sg,p?n:s,y),p?i?(i.input=Um(i.input,g),i[0]=Um(i[0],g),i.index=s.lastIndex,s.lastIndex+=i[0].length):s.lastIndex=0:Vm&&i&&(s.lastIndex=s.global?i.index+i[0].length:r),Wm&&i&&i.length>1&&un(pte,i[0],n,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(i[o]=void 0)}),i&&d)for(i.groups=a=UT(null),o=0;o<d.length;o++)a[(u=d[o])[0]]=i[u[1]];return i});var lg=p4;Ys({target:"RegExp",proto:!0,forced:/./.exec!==lg},{exec:lg});var M3=Function.prototype,Ix=M3.apply,mte=M3.bind,Rx=M3.call,yte=typeof Reflect=="object"&&Reflect.apply||(mte?Rx.bind(Ix):function(){return Rx.apply(Ix,arguments)}),bte=Yr("species"),qm=RegExp.prototype,$te=Ne("".charAt),jx=Ne("".charCodeAt),wte=Ne("".slice),Lx=function(e){return function(t,n){var r,i,o=Fr(sd(t)),a=z0(n),u=o.length;return a<0||a>=u?e?"":void 0:(r=jx(o,a))<55296||r>56319||a+1===u||(i=jx(o,a+1))<56320||i>57343?e?$te(o,a):r:e?wte(o,a,a+2):i-56320+(r-55296<<10)+65536}},Ete={codeAt:Lx(!1),charAt:Lx(!0)}.charAt,Cte=function(e,t,n){return t+(n?Ete(e,t).length:1)},Dte=Math.floor,Gm=Ne("".charAt),xte=Ne("".replace),Km=Ne("".slice),Ste=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Ate=/\$([$&'`]|\d{1,2})/g,Ote=function(e,t,n,r,i,o){var a=n+e.length,u=r.length,s=Ate;return i!==void 0&&(i=M0(i),s=Ste),xte(o,s,function(l,c){var f;switch(Gm(c,0)){case"$":return"$";case"&":return e;case"`":return Km(t,0,n);case"'":return Km(t,a);case"<":f=i[Km(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=Dte(d/10);return p===0?l:p<=u?r[p-1]===void 0?Gm(c,1):r[p-1]+Gm(c,1):l}f=r[d-1]}return f===void 0?"":f})},Bte=Ae.TypeError,Fte=function(e,t){var n=e.exec;if(qt(n)){var r=un(n,e,t);return r!==null&&Do(r),r}if(Ca(e)==="RegExp")return un(lg,e,t);throw Bte("RegExp#exec called on incompatible receiver")},h4=Yr("replace"),Tte=Math.max,kte=Math.min,_te=Ne([].concat),Ym=Ne([].push),Mx=Ne("".indexOf),zx=Ne("".slice),Pte="a".replace(/./,"$0")==="$0",Hx=!!/./[h4]&&/./[h4]("a","$0")==="";(function(e,t,n,r){var i=Yr(e),o=!Wt(function(){var l={};return l[i]=function(){return 7},""[e](l)!=7}),a=o&&!Wt(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[bte]=function(){return c},c.flags="",c[i]=/./[i]),c.exec=function(){return l=!0,null},c[i](""),!l});if(!o||!a||n){var u=Ne(/./[i]),s=t(i,""[e],function(l,c,f,d,p){var v=Ne(l),m=c.exec;return m===lg||m===qm.exec?o&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});og(String.prototype,e,s[0]),og(qm,i,s[1])}r&&mf(qm[i],"sham",!0)})("replace",function(e,t,n){var r=Hx?"$":"$0";return[function(i,o){var a=sd(this),u=i==null?void 0:TT(i,h4);return u?un(u,i,a,o):un(t,Fr(a),i,o)},function(i,o){var a=Do(this),u=Fr(i);if(typeof o=="string"&&Mx(o,r)===-1&&Mx(o,"$<")===-1){var s=n(t,a,u,o);if(s.done)return s.value}var l=qt(o);l||(o=Fr(o));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=Fte(a,u);if(p===null||(Ym(d,p),!c))break;Fr(p[0])===""&&(a.lastIndex=Cte(u,jT(a.lastIndex),f))}for(var v,m="",g=0,y=0;y<d.length;y++){for(var h=Fr((p=d[y])[0]),$=Tte(kte(z0(p.index),u.length),0),w=[],C=1;C<p.length;C++)Ym(w,(v=p[C])===void 0?v:String(v));var D=p.groups;if(l){var A=_te([h],w,$,u);D!==void 0&&Ym(A,D);var I=Fr(yte(o,void 0,A))}else I=Ote(h,u,$,w,D,o);$>=g&&(m+=zx(u,g,$)+I,g=$+h.length)}return m+zx(u,g)}]},!!Wt(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!Pte||Hx),Ys({global:!0},{globalThis:Ae});var Nte={selector:"li",parseElemHtml:function(e,t,n){var r=O(e);return(t=t.filter(function(i){return!!X.isText(i)||!!n.isInline(i)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"list-item",children:t}}},Ite={selector:"ul",parseElemHtml:function(e,t,n){return{type:"bulleted-list",children:t.filter(function(r){return S.getNodeType(r)==="list-item"})}}},Rte={selector:"ol",parseElemHtml:function(e,t,n){return{type:"numbered-list",children:t.filter(function(r){return S.getNodeType(r)==="list-item"})}}},g4=function(e,t){return g4=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])},g4(e,t)};/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation.
|
||
|
||
Permission to use, copy, modify, and/or distribute this software for any
|
||
purpose with or without fee is hereby granted.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
PERFORMANCE OF THIS SOFTWARE.
|
||
***************************************************************************** */function XT(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}g4(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function v4(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}var Ux,JT=function(){function e(){this.tag="button"}return e.prototype.getListNode=function(t){var n=this.type;return S.getSelectedNodeByType(t,n)},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!!this.getListNode(t)},e.prototype.isDisabled=function(t){return t.selection==null||!!S.getSelectedElems(t).some(function(n){if(E.isVoid(t,n)&&E.isBlock(t,n))return!0;var r=n.type;return!!["pre","code","table"].includes(r)||void 0})},e.prototype.getMatchListType=function(t){var n=v4(E.nodes(t,{match:function(o){return ug(o)},universal:!0}),1),r=n[0];if(r==null)return"";var i=v4(r,1)[0];return S.getNodeType(i)},e.prototype.exec=function(t,n){var r=this.type,i=this.isActive(t);P.unwrapNodes(t,{match:function(u){return ug(u)},split:!0}),P.setNodes(t,{type:i?"paragraph":"list-item"});var o={type:r,children:[]};i||P.wrapNodes(t,o);var a=this.getMatchListType(t);a!=""&&a!==r&&P.wrapNodes(t,o)},e}(),jte='<svg viewBox="0 0 1024 1024"><path d="M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z"></path></svg>',Lte='<svg viewBox="0 0 1024 1024"><path d="M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z"></path></svg>',Mte=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="bulleted-list",n.title=q("listModule.unOrderedList"),n.iconSvg=jte,n}return XT(t,e),t}(JT),zte=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="numbered-list",n.title=q("listModule.orderedList"),n.iconSvg=Lte,n}return XT(t,e),t}(JT),Hte={key:"bulletedList",factory:function(){return new Mte}},Ute={key:"numberedList",factory:function(){return new zte}},Vte=/"/g,Wte=Ne("".replace);Ys({target:"String",proto:!0,forced:(Ux="anchor",Wt(function(){var e=""[Ux]('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t="a",n="name",r=e,i=Fr(sd(this)),o="<"+t,n!==""&&(o+=" "+n+'="'+Wte(Fr(r),Vte,""")+'"'),o+">"+i+"</"+t+">";var t,n,r,i,o}});var Vx=function(e,t,n){var r=F3(t);r in e?cd.f(e,r,S3(0,n)):e[r]=n},ZT=Yr("isConcatSpreadable"),Wx=Ae.TypeError,qte=ng>=51||!Wt(function(){var e=[];return e[ZT]=!1,e.concat()[0]!==e}),Gte=YT("concat"),Kte=function(e){if(!ar(e))return!1;var t=e[ZT];return t!==void 0?!!t:f4(e)};Ys({target:"Array",proto:!0,forced:!qte||!Gte},{concat:function(e){var t,n,r,i,o,a=M0(this),u=KT(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(Kte(o=t===-1?a:arguments[t])){if(s+(i=_3(o))>9007199254740991)throw Wx("Maximum allowed index exceeded");for(n=0;n<i;n++,s++)n in o&&Vx(u,s,o[n])}else{if(s>=9007199254740991)throw Wx("Maximum allowed index exceeded");Vx(u,s++,o)}return u.length=s,u}});var Yte={renderElems:[Mee,zee,Hee],elemsToHtml:[Uee,Vee,Wee],parseElemsHtml:[Nte,Rte,Ite],menus:[Hte,Ute],editorPlugin:function(e){var t=e.insertBreak,n=e.deleteBackward;e.insertNode;var r=e;return r.insertBreak=function(){var i=r.selection;if(i!=null){var o=S.getSelectedNodeByType(r,"list-item");if(o!=null){var a=S.getParentNode(r,o),u=(a==null?void 0:a.children)||[];if(o===u[u.length-1]&&W.string(o)===""){P.removeNodes(r,{match:function(l){return S.checkNodeType(l,"list-item")}});var s=[i.anchor.path[0]+1];return P.insertNodes(r,S.genEmptyParagraph(),{at:s}),void r.select({path:s.concat(0),offset:0})}t()}else t()}else t()},r.deleteBackward=function(i){var o=function(a){var u=v4(E.nodes(a,{match:function(c){return a.children[0]===c},mode:"highest"}),1),s=u[0];if(s==null)return!1;var l=s[0];return!(!te.isElement(l)||W.string(l)||!ug(l)||(P.unwrapNodes(a,{match:function(c){return ug(c)},split:!0}),P.setNodes(a,{type:"paragraph"}),0))}(r);o||n(i)},r}},QT=M$(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]",v="[object GeneratorFunction]",m="[object Map]",g="[object Number]",y="[object Null]",h="[object Object]",$="[object Promise]",w="[object Proxy]",C="[object RegExp]",D="[object Set]",A="[object String]",I="[object Symbol]",M="[object Undefined]",V="[object WeakMap]",Y="[object ArrayBuffer]",J="[object DataView]",Z="[object Float32Array]",se="[object Float64Array]",ee="[object Int8Array]",ae="[object Int16Array]",fe="[object Int32Array]",_e="[object Uint8Array]",ve="[object Uint8ClampedArray]",ie="[object Uint16Array]",Ie="[object Uint32Array]",T=/[\\^$.*+?()[\]{}|]/g,F=/^\[object .+?Constructor\]$/,k=/^(?:0|[1-9]\d*)$/,N={};N[Z]=N[se]=N[ee]=N[ae]=N[fe]=N[_e]=N[ve]=N[ie]=N[Ie]=!0,N[u]=N[s]=N[Y]=N[c]=N[J]=N[f]=N[d]=N[p]=N[m]=N[g]=N[h]=N[C]=N[D]=N[A]=N[V]=!1;var H=typeof ot=="object"&&ot&&ot.Object===Object&&ot,j=typeof self=="object"&&self&&self.Object===Object&&self,Q=H||j||Function("return this")(),ce=t&&!t.nodeType&&t,we=ce&&!0&&e&&!e.nodeType&&e,Re=we&&we.exports===ce,z=Re&&H.process,ze=function(){try{return z&&z.binding&&z.binding("util")}catch{}}(),ye=ze&&ze.isTypedArray;function ue(b,x){for(var B=-1,L=b==null?0:b.length,me=0,oe=[];++B<L;){var Fe=b[B];x(Fe,B,b)&&(oe[me++]=Fe)}return oe}function be(b,x){for(var B=-1,L=x.length,me=b.length;++B<L;)b[me+B]=x[B];return b}function mn(b,x){for(var B=-1,L=b==null?0:b.length;++B<L;)if(x(b[B],B,b))return!0;return!1}function qe(b,x){for(var B=-1,L=Array(b);++B<b;)L[B]=x(B);return L}function lt(b){return function(x){return b(x)}}function ft(b,x){return b.has(x)}function sn(b,x){return b==null?void 0:b[x]}function dt(b){var x=-1,B=Array(b.size);return b.forEach(function(L,me){B[++x]=[me,L]}),B}function Nn(b,x){return function(B){return b(x(B))}}function yn(b){var x=-1,B=Array(b.size);return b.forEach(function(L){B[++x]=L}),B}var ln=Array.prototype,yr=Function.prototype,br=Object.prototype,bn=Q["__core-js_shared__"],$r=yr.toString,nn=br.hasOwnProperty,In=function(){var b=/[^.]+$/.exec(bn&&bn.keys&&bn.keys.IE_PROTO||"");return b?"Symbol(src)_1."+b:""}(),nu=br.toString,Js=RegExp("^"+$r.call(nn).replace(T,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Xr=Re?Q.Buffer:void 0,bi=Q.Symbol,ru=Q.Uint8Array,$i=br.propertyIsEnumerable,Jr=ln.splice,$n=bi?bi.toStringTag:void 0,wi=Object.getOwnPropertySymbols,Zs=Xr?Xr.isBuffer:void 0,Ro=Nn(Object.keys,Object),Qs=Qr(Q,"DataView"),jo=Qr(Q,"Map"),el=Qr(Q,"Promise"),tl=Qr(Q,"Set"),nl=Qr(Q,"WeakMap"),Ei=Qr(Object,"create"),Dd=rn(Qs),Zr=rn(jo),uv=rn(el),sv=rn(tl),lv=rn(nl),xd=bi?bi.prototype:void 0,rl=xd?xd.valueOf:void 0;function Lt(b){var x=-1,B=b==null?0:b.length;for(this.clear();++x<B;){var L=b[x];this.set(L[0],L[1])}}function cv(){this.__data__=Ei?Ei(null):{},this.size=0}function fv(b){var x=this.has(b)&&delete this.__data__[b];return this.size-=x?1:0,x}function dv(b){var x=this.__data__;if(Ei){var B=x[b];return B===r?void 0:B}return nn.call(x,b)?x[b]:void 0}function pv(b){var x=this.__data__;return Ei?x[b]!==void 0:nn.call(x,b)}function hv(b,x){var B=this.__data__;return this.size+=this.has(b)?0:1,B[b]=Ei&&x===void 0?r:x,this}Lt.prototype.clear=cv,Lt.prototype.delete=fv,Lt.prototype.get=dv,Lt.prototype.has=pv,Lt.prototype.set=hv;function Kt(b){var x=-1,B=b==null?0:b.length;for(this.clear();++x<B;){var L=b[x];this.set(L[0],L[1])}}function gv(){this.__data__=[],this.size=0}function vv(b){var x=this.__data__,B=au(x,b);if(B<0)return!1;var L=x.length-1;return B==L?x.pop():Jr.call(x,B,1),--this.size,!0}function mv(b){var x=this.__data__,B=au(x,b);return B<0?void 0:x[B][1]}function yv(b){return au(this.__data__,b)>-1}function bv(b,x){var B=this.__data__,L=au(B,b);return L<0?(++this.size,B.push([b,x])):B[L][1]=x,this}Kt.prototype.clear=gv,Kt.prototype.delete=vv,Kt.prototype.get=mv,Kt.prototype.has=yv,Kt.prototype.set=bv;function cn(b){var x=-1,B=b==null?0:b.length;for(this.clear();++x<B;){var L=b[x];this.set(L[0],L[1])}}function $v(){this.size=0,this.__data__={hash:new Lt,map:new(jo||Kt),string:new Lt}}function wv(b){var x=rr(this,b).delete(b);return this.size-=x?1:0,x}function Ev(b){return rr(this,b).get(b)}function Cv(b){return rr(this,b).has(b)}function Dv(b,x){var B=rr(this,b),L=B.size;return B.set(b,x),this.size+=B.size==L?0:1,this}cn.prototype.clear=$v,cn.prototype.delete=wv,cn.prototype.get=Ev,cn.prototype.has=Cv,cn.prototype.set=Dv;function iu(b){var x=-1,B=b==null?0:b.length;for(this.__data__=new cn;++x<B;)this.add(b[x])}function Sd(b){return this.__data__.set(b,r),this}function ou(b){return this.__data__.has(b)}iu.prototype.add=iu.prototype.push=Sd,iu.prototype.has=ou;function wr(b){var x=this.__data__=new Kt(b);this.size=x.size}function il(){this.__data__=new Kt,this.size=0}function xv(b){var x=this.__data__,B=x.delete(b);return this.size=x.size,B}function Sv(b){return this.__data__.get(b)}function Av(b){return this.__data__.has(b)}function Ov(b,x){var B=this.__data__;if(B instanceof Kt){var L=B.__data__;if(!jo||L.length<n-1)return L.push([b,x]),this.size=++B.size,this;B=this.__data__=new cn(L)}return B.set(b,x),this.size=B.size,this}wr.prototype.clear=il,wr.prototype.delete=xv,wr.prototype.get=Sv,wr.prototype.has=Av,wr.prototype.set=Ov;function Bv(b,x){var B=uu(b),L=!B&&Td(b),me=!B&&!L&&su(b),oe=!B&&!L&&!me&&Pd(b),Fe=B||L||me||oe,Pe=Fe?qe(b.length,String):[],$t=Pe.length;for(var He in b)(x||nn.call(b,He))&&!(Fe&&(He=="length"||me&&(He=="offset"||He=="parent")||oe&&(He=="buffer"||He=="byteLength"||He=="byteOffset")||Rv(He,$t)))&&Pe.push(He);return Pe}function au(b,x){for(var B=b.length;B--;)if(Fd(b[B][0],x))return B;return-1}function ol(b,x,B){var L=x(b);return uu(b)?L:be(L,B(b))}function Lo(b){return b==null?b===void 0?M:y:$n&&$n in Object(b)?ei(b):Bd(b)}function Ad(b){return Cr(b)&&Lo(b)==u}function Od(b,x,B,L,me){return b===x?!0:b==null||x==null||!Cr(b)&&!Cr(x)?b!==b&&x!==x:Fv(b,x,B,L,Od,me)}function Fv(b,x,B,L,me,oe){var Fe=uu(b),Pe=uu(x),$t=Fe?s:Er(b),He=Pe?s:Er(x);$t=$t==u?h:$t,He=He==u?h:He;var Yt=$t==h,fn=He==h,Ft=$t==He;if(Ft&&su(b)){if(!su(x))return!1;Fe=!0,Yt=!1}if(Ft&&!Yt)return oe||(oe=new wr),Fe||Pd(b)?al(b,x,B,L,me,oe):Pv(b,x,$t,B,L,me,oe);if(!(B&i)){var Xt=Yt&&nn.call(b,"__wrapped__"),Mt=fn&&nn.call(x,"__wrapped__");if(Xt||Mt){var Ci=Xt?b.value():b,ti=Mt?x.value():x;return oe||(oe=new wr),me(Ci,ti,B,L,oe)}}return Ft?(oe||(oe=new wr),Nv(b,x,B,L,me,oe)):!1}function Tv(b){if(!_d(b)||Lv(b))return!1;var x=kd(b)?Js:F;return x.test(rn(b))}function kv(b){return Cr(b)&&sl(b.length)&&!!N[Lo(b)]}function _v(b){if(!Mv(b))return Ro(b);var x=[];for(var B in Object(b))nn.call(b,B)&&B!="constructor"&&x.push(B);return x}function al(b,x,B,L,me,oe){var Fe=B&i,Pe=b.length,$t=x.length;if(Pe!=$t&&!(Fe&&$t>Pe))return!1;var He=oe.get(b);if(He&&oe.get(x))return He==x;var Yt=-1,fn=!0,Ft=B&o?new iu:void 0;for(oe.set(b,x),oe.set(x,b);++Yt<Pe;){var Xt=b[Yt],Mt=x[Yt];if(L)var Ci=Fe?L(Mt,Xt,Yt,x,b,oe):L(Xt,Mt,Yt,b,x,oe);if(Ci!==void 0){if(Ci)continue;fn=!1;break}if(Ft){if(!mn(x,function(ti,zo){if(!ft(Ft,zo)&&(Xt===ti||me(Xt,ti,B,L,oe)))return Ft.push(zo)})){fn=!1;break}}else if(!(Xt===Mt||me(Xt,Mt,B,L,oe))){fn=!1;break}}return oe.delete(b),oe.delete(x),fn}function Pv(b,x,B,L,me,oe,Fe){switch(B){case J:if(b.byteLength!=x.byteLength||b.byteOffset!=x.byteOffset)return!1;b=b.buffer,x=x.buffer;case Y:return!(b.byteLength!=x.byteLength||!oe(new ru(b),new ru(x)));case c:case f:case g:return Fd(+b,+x);case d:return b.name==x.name&&b.message==x.message;case C:case A:return b==x+"";case m:var Pe=dt;case D:var $t=L&i;if(Pe||(Pe=yn),b.size!=x.size&&!$t)return!1;var He=Fe.get(b);if(He)return He==x;L|=o,Fe.set(b,x);var Yt=al(Pe(b),Pe(x),L,me,oe,Fe);return Fe.delete(b),Yt;case I:if(rl)return rl.call(b)==rl.call(x)}return!1}function Nv(b,x,B,L,me,oe){var Fe=B&i,Pe=Mo(b),$t=Pe.length,He=Mo(x),Yt=He.length;if($t!=Yt&&!Fe)return!1;for(var fn=$t;fn--;){var Ft=Pe[fn];if(!(Fe?Ft in x:nn.call(x,Ft)))return!1}var Xt=oe.get(b);if(Xt&&oe.get(x))return Xt==x;var Mt=!0;oe.set(b,x),oe.set(x,b);for(var Ci=Fe;++fn<$t;){Ft=Pe[fn];var ti=b[Ft],zo=x[Ft];if(L)var $E=Fe?L(zo,ti,Ft,x,b,oe):L(ti,zo,Ft,b,x,oe);if(!($E===void 0?ti===zo||me(ti,zo,B,L,oe):$E)){Mt=!1;break}Ci||(Ci=Ft=="constructor")}if(Mt&&!Ci){var Nd=b.constructor,Id=x.constructor;Nd!=Id&&"constructor"in b&&"constructor"in x&&!(typeof Nd=="function"&&Nd instanceof Nd&&typeof Id=="function"&&Id instanceof Id)&&(Mt=!1)}return oe.delete(b),oe.delete(x),Mt}function Mo(b){return ol(b,ll,Iv)}function rr(b,x){var B=b.__data__;return jv(x)?B[typeof x=="string"?"string":"hash"]:B.map}function Qr(b,x){var B=sn(b,x);return Tv(B)?B:void 0}function ei(b){var x=nn.call(b,$n),B=b[$n];try{b[$n]=void 0;var L=!0}catch{}var me=nu.call(b);return L&&(x?b[$n]=B:delete b[$n]),me}var Iv=wi?function(b){return b==null?[]:(b=Object(b),ue(wi(b),function(x){return $i.call(b,x)}))}:Hv,Er=Lo;(Qs&&Er(new Qs(new ArrayBuffer(1)))!=J||jo&&Er(new jo)!=m||el&&Er(el.resolve())!=$||tl&&Er(new tl)!=D||nl&&Er(new nl)!=V)&&(Er=function(b){var x=Lo(b),B=x==h?b.constructor:void 0,L=B?rn(B):"";if(L)switch(L){case Dd:return J;case Zr:return m;case uv:return $;case sv:return D;case lv:return V}return x});function Rv(b,x){return x=x==null?a:x,!!x&&(typeof b=="number"||k.test(b))&&b>-1&&b%1==0&&b<x}function jv(b){var x=typeof b;return x=="string"||x=="number"||x=="symbol"||x=="boolean"?b!=="__proto__":b===null}function Lv(b){return!!In&&In in b}function Mv(b){var x=b&&b.constructor,B=typeof x=="function"&&x.prototype||br;return b===B}function Bd(b){return nu.call(b)}function rn(b){if(b!=null){try{return $r.call(b)}catch{}try{return b+""}catch{}}return""}function Fd(b,x){return b===x||b!==b&&x!==x}var Td=Ad(function(){return arguments}())?Ad:function(b){return Cr(b)&&nn.call(b,"callee")&&!$i.call(b,"callee")},uu=Array.isArray;function ul(b){return b!=null&&sl(b.length)&&!kd(b)}var su=Zs||Uv;function zv(b,x){return Od(b,x)}function kd(b){if(!_d(b))return!1;var x=Lo(b);return x==p||x==v||x==l||x==w}function sl(b){return typeof b=="number"&&b>-1&&b%1==0&&b<=a}function _d(b){var x=typeof b;return b!=null&&(x=="object"||x=="function")}function Cr(b){return b!=null&&typeof b=="object"}var Pd=ye?lt(ye):kv;function ll(b){return ul(b)?Bv(b):_v(b)}function Hv(){return[]}function Uv(){return!1}e.exports=zv});vn("en",{tableModule:{deleteCol:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",widthAuto:"Width auto",insertCol:"Insert column",insertRow:"Insert row",insertTable:"Insert table",header:"Header"}}),vn("zh-CN",{tableModule:{deleteCol:"\u5220\u9664\u5217",deleteRow:"\u5220\u9664\u884C",deleteTable:"\u5220\u9664\u8868\u683C",widthAuto:"\u5BBD\u5EA6\u81EA\u9002\u5E94",insertCol:"\u63D2\u5165\u5217",insertRow:"\u63D2\u5165\u884C",insertTable:"\u63D2\u5165\u8868\u683C",header:"\u8868\u5934"}});var qx=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ek(e){var t={exports:{}};return e(t,t.exports),t.exports}var Ri,Zp,hp=function(e){return e&&e.Math==Math&&e},De=hp(typeof globalThis=="object"&&globalThis)||hp(typeof window=="object"&&window)||hp(typeof self=="object"&&self)||hp(typeof qx=="object"&&qx)||function(){return this}()||Function("return this")(),Ot=function(e){try{return!!e()}catch{return!0}},xo=!Ot(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Yl=Function.prototype.call,xt=Yl.bind?Yl.bind(Yl):function(){return Yl.apply(Yl,arguments)},Gx={}.propertyIsEnumerable,Kx=Object.getOwnPropertyDescriptor,Xte={f:Kx&&!Gx.call({1:2},1)?function(e){var t=Kx(this,e);return!!t&&t.enumerable}:Gx},z3=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},tk=Function.prototype,m4=tk.bind,y4=tk.call,Jte=m4&&m4.bind(y4),Se=m4?function(e){return e&&Jte(y4,e)}:function(e){return e&&function(){return y4.apply(e,arguments)}},Zte=Se({}.toString),Qte=Se("".slice),so=function(e){return Qte(Zte(e),8,-1)},Xm=De.Object,ene=Se("".split),nk=Ot(function(){return!Xm("z").propertyIsEnumerable(0)})?function(e){return so(e)=="String"?ene(e,""):Xm(e)}:Xm,tne=De.TypeError,So=function(e){if(e==null)throw tne("Can't call method on "+e);return e},dd=function(e){return nk(So(e))},Gt=function(e){return typeof e=="function"},qn=function(e){return typeof e=="object"?e!==null:Gt(e)},nne=function(e){return Gt(e)?e:void 0},pd=function(e,t){return arguments.length<2?nne(De[e]):De[e]&&De[e][t]},rk=Se({}.isPrototypeOf),Jm=pd("navigator","userAgent")||"",Yx=De.process,Xx=De.Deno,Jx=Yx&&Yx.versions||Xx&&Xx.version,Zx=Jx&&Jx.v8;Zx&&(Zp=(Ri=Zx.split("."))[0]>0&&Ri[0]<4?1:+(Ri[0]+Ri[1])),!Zp&&Jm&&(!(Ri=Jm.match(/Edge\/(\d+)/))||Ri[1]>=74)&&(Ri=Jm.match(/Chrome\/(\d+)/))&&(Zp=+Ri[1]);var b4=Zp,$4=!!Object.getOwnPropertySymbols&&!Ot(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&b4&&b4<41}),H3=$4&&!Symbol.sham&&typeof Symbol.iterator=="symbol",rne=De.Object,w4=H3?function(e){return typeof e=="symbol"}:function(e){var t=pd("Symbol");return Gt(t)&&rk(t.prototype,rne(e))},ine=De.String,ik=function(e){try{return ine(e)}catch{return"Object"}},one=De.TypeError,ok=function(e){if(Gt(e))return e;throw one(ik(e)+" is not a function")},U3=function(e,t){var n=e[t];return n==null?void 0:ok(n)},ane=De.TypeError,une=Object.defineProperty,V3=function(e,t){try{une(De,e,{value:t,configurable:!0,writable:!0})}catch{De[e]=t}return t},lo=De["__core-js_shared__"]||V3("__core-js_shared__",{}),W3=ek(function(e){(e.exports=function(t,n){return lo[t]||(lo[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),sne=De.Object,q3=function(e){return sne(So(e))},lne=Se({}.hasOwnProperty),Xn=Object.hasOwn||function(e,t){return lne(q3(e),t)},cne=0,fne=Math.random(),dne=Se(1 .toString),ak=function(e){return"Symbol("+(e===void 0?"":e)+")_"+dne(++cne+fne,36)},Xl=W3("wks"),xa=De.Symbol,Qx=xa&&xa.for,pne=H3?xa:xa&&xa.withoutSetter||ak,nr=function(e){if(!Xn(Xl,e)||!$4&&typeof Xl[e]!="string"){var t="Symbol."+e;$4&&Xn(xa,e)?Xl[e]=xa[e]:Xl[e]=H3&&Qx?Qx(t):pne(t)}return Xl[e]},hne=De.TypeError,gne=nr("toPrimitive"),vne=function(e,t){if(!qn(e)||w4(e))return e;var n,r=U3(e,gne);if(r){if(t===void 0&&(t="default"),n=xt(r,e,t),!qn(n)||w4(n))return n;throw hne("Can't convert object to primitive value")}return t===void 0&&(t="number"),function(i,o){var a,u;if(o==="string"&&Gt(a=i.toString)&&!qn(u=xt(a,i))||Gt(a=i.valueOf)&&!qn(u=xt(a,i))||o!=="string"&&Gt(a=i.toString)&&!qn(u=xt(a,i)))return u;throw ane("Can't convert object to primitive value")}(e,t)},G3=function(e){var t=vne(e,"string");return w4(t)?t:t+""},E4=De.document,mne=qn(E4)&&qn(E4.createElement),K3=function(e){return mne?E4.createElement(e):{}},uk=!xo&&!Ot(function(){return Object.defineProperty(K3("div"),"a",{get:function(){return 7}}).a!=7}),eS=Object.getOwnPropertyDescriptor,sk={f:xo?eS:function(e,t){if(e=dd(e),t=G3(t),uk)try{return eS(e,t)}catch{}if(Xn(e,t))return z3(!xt(Xte.f,e,t),e[t])}},yne=De.String,bne=De.TypeError,tr=function(e){if(qn(e))return e;throw bne(yne(e)+" is not an object")},$ne=De.TypeError,tS=Object.defineProperty,hd={f:xo?tS:function(e,t,n){if(tr(e),t=G3(t),tr(n),uk)try{return tS(e,t,n)}catch{}if("get"in n||"set"in n)throw $ne("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Bs=xo?function(e,t,n){return hd.f(e,t,z3(1,n))}:function(e,t,n){return e[t]=n,e},wne=Se(Function.toString);Gt(lo.inspectSource)||(lo.inspectSource=function(e){return wne(e)});var cg,Lc,fg,Y3=lo.inspectSource,nS=De.WeakMap,Ene=Gt(nS)&&/native code/.test(Y3(nS)),rS=W3("keys"),lk=function(e){return rS[e]||(rS[e]=ak(e))},X3={},C4=De.TypeError,Cne=De.WeakMap;if(Ene||lo.state){var Xo=lo.state||(lo.state=new Cne),Dne=Se(Xo.get),iS=Se(Xo.has),xne=Se(Xo.set);cg=function(e,t){if(iS(Xo,e))throw new C4("Object already initialized");return t.facade=e,xne(Xo,e,t),t},Lc=function(e){return Dne(Xo,e)||{}},fg=function(e){return iS(Xo,e)}}else{var Su=lk("state");X3[Su]=!0,cg=function(e,t){if(Xn(e,Su))throw new C4("Object already initialized");return t.facade=e,Bs(e,Su,t),t},Lc=function(e){return Xn(e,Su)?e[Su]:{}},fg=function(e){return Xn(e,Su)}}var D4={set:cg,get:Lc,has:fg,enforce:function(e){return fg(e)?Lc(e):cg(e,{})},getterFor:function(e){return function(t){var n;if(!qn(t)||(n=Lc(t)).type!==e)throw C4("Incompatible receiver, "+e+" required");return n}}},ck=Function.prototype,Sne=xo&&Object.getOwnPropertyDescriptor,Zm=Xn(ck,"name"),J3={EXISTS:Zm,PROPER:Zm&&function(){}.name==="something",CONFIGURABLE:Zm&&(!xo||xo&&Sne(ck,"name").configurable)},yf=ek(function(e){var t=J3.CONFIGURABLE,n=D4.get,r=D4.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;Gt(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Xn(u,"name")||t&&u.name!==p)&&Bs(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:Bs(o,a,u)):f?o[a]=u:V3(a,u)})(Function.prototype,"toString",function(){return Gt(this)&&n(this).source||Y3(this)})}),Ane=Math.ceil,One=Math.floor,H0=function(e){var t=+e;return t!=t||t===0?0:(t>0?One:Ane)(t)},Bne=Math.max,Fne=Math.min,bf=function(e,t){var n=H0(e);return n<0?Bne(n+t,0):Fne(n,t)},Tne=Math.min,Z3=function(e){return e>0?Tne(H0(e),9007199254740991):0},U0=function(e){return Z3(e.length)},oS=function(e){return function(t,n,r){var i,o=dd(t),a=U0(o),u=bf(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}},kne={includes:oS(!0),indexOf:oS(!1)}.indexOf,aS=Se([].push),fk=function(e,t){var n,r=dd(e),i=0,o=[];for(n in r)!Xn(X3,n)&&Xn(r,n)&&aS(o,n);for(;t.length>i;)Xn(r,n=t[i++])&&(~kne(o,n)||aS(o,n));return o},dg=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],_ne=dg.concat("length","prototype"),Pne={f:Object.getOwnPropertyNames||function(e){return fk(e,_ne)}},Nne={f:Object.getOwnPropertySymbols},Ine=Se([].concat),Rne=pd("Reflect","ownKeys")||function(e){var t=Pne.f(tr(e)),n=Nne.f;return n?Ine(t,n(e)):t},jne=function(e,t){for(var n=Rne(t),r=hd.f,i=sk.f,o=0;o<n.length;o++){var a=n[o];Xn(e,a)||r(e,a,i(t,a))}},Lne=/#|\.prototype\./,gd=function(e,t){var n=zne[Mne(e)];return n==Une||n!=Hne&&(Gt(t)?Ot(t):!!t)},Mne=gd.normalize=function(e){return String(e).replace(Lne,".").toLowerCase()},zne=gd.data={},Hne=gd.NATIVE="N",Une=gd.POLYFILL="P",Vne=gd,Wne=sk.f,Ao=function(e,t){var n,r,i,o,a,u=e.target,s=e.global,l=e.stat;if(n=s?De:l?De[u]||V3(u,{}):(De[u]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=Wne(n,r))&&a.value:n[r],!Vne(s?r:u+(l?".":"#")+r,e.forced)&&i!==void 0){if(typeof o==typeof i)continue;jne(o,i)}(e.sham||i&&i.sham)&&Bs(o,"sham",!0),yf(n,r,o,e)}},dk={};dk[nr("toStringTag")]="z";var uS,Q3=String(dk)==="[object z]",qne=nr("toStringTag"),Gne=De.Object,Kne=so(function(){return arguments}())=="Arguments",e5=Q3?so:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(i,o){try{return i[o]}catch{}}(t=Gne(e),qne))=="string"?n:Kne?so(t):(r=so(t))=="Object"&&Gt(t.callee)?"Arguments":r},Yne=De.String,Qt=function(e){if(e5(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Yne(e)},Xne=/"/g,Jne=Se("".replace);Ao({target:"String",proto:!0,forced:(uS="anchor",Ot(function(){var e=""[uS]('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t="a",n="name",r=e,i=Qt(So(this)),o="<"+t,n!==""&&(o+=" "+n+'="'+Jne(Qt(r),Xne,""")+'"'),o+">"+i+"</"+t+">";var t,n,r,i,o}});var gp,pk=function(){var e=tr(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},t5=De.RegExp,x4=Ot(function(){var e=t5("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),Zne=x4||Ot(function(){return!t5("a","y").sticky}),hk={BROKEN_CARET:x4||Ot(function(){var e=t5("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:Zne,UNSUPPORTED_Y:x4},Qne=Object.keys||function(e){return fk(e,dg)},ere=xo?Object.defineProperties:function(e,t){tr(e);for(var n,r=dd(t),i=Qne(t),o=i.length,a=0;o>a;)hd.f(e,n=i[a++],r[n]);return e},tre=pd("document","documentElement"),gk=lk("IE_PROTO"),Qm=function(){},vk=function(e){return"<script>"+e+"<\/script>"},sS=function(e){e.write(vk("")),e.close();var t=e.parentWindow.Object;return e=null,t},Qp=function(){try{gp=new ActiveXObject("htmlfile")}catch{}var e,t;Qp=typeof document<"u"?document.domain&&gp?sS(gp):((t=K3("iframe")).style.display="none",tre.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(vk("document.F=Object")),e.close(),e.F):sS(gp);for(var n=dg.length;n--;)delete Qp.prototype[dg[n]];return Qp()};X3[gk]=!0;var lS,ey,mk=Object.create||function(e,t){var n;return e!==null?(Qm.prototype=tr(e),n=new Qm,Qm.prototype=null,n[gk]=e):n=Qp(),t===void 0?n:ere(n,t)},nre=De.RegExp,rre=Ot(function(){var e=nre(".","s");return!(e.dotAll&&e.exec(`
|
||
`)&&e.flags==="s")}),ire=De.RegExp,ore=Ot(function(){var e=ire("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),are=D4.get,ure=W3("native-string-replace",String.prototype.replace),pg=RegExp.prototype.exec,S4=pg,sre=Se("".charAt),lre=Se("".indexOf),cre=Se("".replace),ty=Se("".slice),ny=(ey=/b*/g,xt(pg,lS=/a/,"a"),xt(pg,ey,"a"),lS.lastIndex!==0||ey.lastIndex!==0),cS=hk.BROKEN_CARET,ry=/()??/.exec("")[1]!==void 0;(ny||ry||cS||rre||ore)&&(S4=function(e){var t,n,r,i,o,a,u,s=this,l=are(s),c=Qt(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=xt(S4,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=cS&&s.sticky,v=xt(pk,s),m=s.source,g=0,y=c;if(p&&(v=cre(v,"y",""),lre(v,"g")===-1&&(v+="g"),y=ty(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&sre(c,s.lastIndex-1)!==`
|
||
`)&&(m="(?: "+m+")",y=" "+y,g++),n=new RegExp("^(?:"+m+")",v)),ry&&(n=new RegExp("^"+m+"$(?!\\s)",v)),ny&&(r=s.lastIndex),i=xt(pg,p?n:s,y),p?i?(i.input=ty(i.input,g),i[0]=ty(i[0],g),i.index=s.lastIndex,s.lastIndex+=i[0].length):s.lastIndex=0:ny&&i&&(s.lastIndex=s.global?i.index+i[0].length:r),ry&&i&&i.length>1&&xt(ure,i[0],n,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(i[o]=void 0)}),i&&d)for(i.groups=a=mk(null),o=0;o<d.length;o++)a[(u=d[o])[0]]=i[u[1]];return i});var $f=S4;Ao({target:"RegExp",proto:!0,forced:/./.exec!==$f},{exec:$f});var hg=Array.isArray||function(e){return so(e)=="Array"},yk=function(){},fre=[],bk=pd("Reflect","construct"),n5=/^\s*(?:class|function)\b/,dre=Se(n5.exec),pre=!n5.exec(yk),Jl=function(e){if(!Gt(e))return!1;try{return bk(yk,fre,e),!0}catch{return!1}},r5=!bk||Ot(function(){var e;return Jl(Jl.call)||!Jl(Object)||!Jl(function(){e=!0})||e})?function(e){if(!Gt(e))return!1;switch(e5(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return pre||!!dre(n5,Y3(e))}:Jl,$k=function(e,t,n){var r=G3(t);r in e?hd.f(e,r,z3(0,n)):e[r]=n},hre=nr("species"),i5=function(e){return b4>=51||!Ot(function(){var t=[];return(t.constructor={})[hre]=function(){return{foo:1}},t[e](Boolean).foo!==1})},gre=Se([].slice),vre=i5("slice"),mre=nr("species"),iy=De.Array,yre=Math.max;function gr(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 fS(e){var t=e.selection;if(t==null)return!1;var n=gr(E.nodes(e,{match:function(o){return S.checkNodeType(o,"table-cell")}}),1)[0];if(n){var r=gr(n,2)[1],i=E.start(e,r);if($e.equals(t.anchor,i))return!0}return!1}function dS(e,t){var n,r,i=E.nodes(e,{at:t,match:function(s){return S.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}Ao({target:"Array",proto:!0,forced:!vre},{slice:function(e,t){var n,r,i,o=dd(this),a=U0(o),u=bf(e,a),s=bf(t===void 0?a:t,a);if(hg(o)&&(n=o.constructor,(r5(n)&&(n===iy||hg(n.prototype))||qn(n)&&(n=n[mre])===null)&&(n=void 0),n===iy||n===void 0))return gre(o,u,s);for(r=new(n===void 0?iy:n)(yre(s-u,0)),i=0;u<s;u++,i++)u in o&&$k(r,i,o[u]);return r.length=i,r}});var pS=Se(Se.bind),bre=nr("species"),hS=De.Array,$re=function(e,t){return new(function(n){var r;return hg(n)&&(r=n.constructor,(r5(r)&&(r===hS||hg(r.prototype))||qn(r)&&(r=r[bre])===null)&&(r=void 0)),r===void 0?hS:r}(e))(t===0?0:t)},gS=Se([].push),ji=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,v=q3(s),m=nk(v),g=function(C,D){return ok(C),D===void 0?C:pS?pS(C,D):function(){return C.apply(D,arguments)}}(l,c),y=U0(m),h=0,$=f||$re,w=t?$(s,y):n||a?$(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),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:gS(w,d)}else switch(e){case 4:return!1;case 7:gS(w,d)}return o?-1:r||i?i:w}},V0={forEach:ji(0),map:ji(1),filter:ji(2),some:ji(3),every:ji(4),find:ji(5),findIndex:ji(6),filterReject:ji(7)},wre=V0.map;Ao({target:"Array",proto:!0,forced:!i5("map")},{map:function(e){return wre(this,e,arguments.length>1?arguments[1]:void 0)}});var Ere=Q3?{}.toString:function(){return"[object "+e5(this)+"]"};function W0(e){var t=e.children||[];return t.length===0?[]:(t[0]||{}).children||[]}function wk(e){return W0(e).every(function(t){return!!t.isHeader})}Q3||yf(Object.prototype,"toString",Ere,{unsafe:!0});var Cre=J3.PROPER,A4=RegExp.prototype,Ek=A4.toString,Dre=Se(pk),xre=Ot(function(){return Ek.call({source:"a",flags:"b"})!="/a/b"}),Sre=Cre&&Ek.name!="toString";(xre||Sre)&&yf(RegExp.prototype,"toString",function(){var e=tr(this),t=Qt(e.source),n=e.flags;return"/"+t+"/"+Qt(n===void 0&&rk(A4,e)&&!("flags"in A4)?Dre(e):n)},{unsafe:!0});var O4=nr("unscopables"),B4=Array.prototype;B4[O4]==null&&hd.f(B4,O4,{configurable:!0,value:mk(null)});var vS,Are=V0.find,mS=!0;"find"in[]&&Array(1).find(function(){mS=!1}),Ao({target:"Array",proto:!0,forced:mS},{find:function(e){return Are(this,e,arguments.length>1?arguments[1]:void 0)}}),vS="find",B4[O4][vS]=!0;var o5=Function.prototype,yS=o5.apply,Ore=o5.bind,bS=o5.call,Ck=typeof Reflect=="object"&&Reflect.apply||(Ore?bS.bind(yS):function(){return bS.apply(yS,arguments)}),Bre=nr("species"),oy=RegExp.prototype,Dk=function(e,t,n,r){var i=nr(e),o=!Ot(function(){var l={};return l[i]=function(){return 7},""[e](l)!=7}),a=o&&!Ot(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[Bre]=function(){return c},c.flags="",c[i]=/./[i]),c.exec=function(){return l=!0,null},c[i](""),!l});if(!o||!a||n){var u=Se(/./[i]),s=t(i,""[e],function(l,c,f,d,p){var v=Se(l),m=c.exec;return m===$f||m===oy.exec?o&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});yf(String.prototype,e,s[0]),yf(oy,i,s[1])}r&&Bs(oy[i],"sham",!0)},Fre=nr("match"),Tre=De.TypeError,kre=nr("species"),_re=function(e,t){var n,r=tr(e).constructor;return r===void 0||(n=tr(r)[kre])==null?t:function(i){if(r5(i))return i;throw Tre(ik(i)+" is not a constructor")}(n)},Pre=Se("".charAt),$S=Se("".charCodeAt),Nre=Se("".slice),wS=function(e){return function(t,n){var r,i,o=Qt(So(t)),a=H0(n),u=o.length;return a<0||a>=u?e?"":void 0:(r=$S(o,a))<55296||r>56319||a+1===u||(i=$S(o,a+1))<56320||i>57343?e?Pre(o,a):r:e?Nre(o,a,a+2):i-56320+(r-55296<<10)+65536}},Ire={codeAt:wS(!1),charAt:wS(!0)}.charAt,xk=function(e,t,n){return t+(n?Ire(e,t).length:1)},Rre=De.Array,jre=Math.max,ES=function(e,t,n){for(var r=U0(e),i=bf(t,r),o=bf(n===void 0?r:n,r),a=Rre(jre(o-i,0)),u=0;i<o;i++,u++)$k(a,u,e[i]);return a.length=u,a},Lre=De.TypeError,F4=function(e,t){var n=e.exec;if(Gt(n)){var r=xt(n,e,t);return r!==null&&tr(r),r}if(so(e)==="RegExp")return xt($f,e,t);throw Lre("RegExp#exec called on incompatible receiver")},Au=hk.UNSUPPORTED_Y,Mre=Math.min,Sk=[].push,zre=Se(/./.exec),Ou=Se(Sk),Zl=Se("".slice);Dk("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,u,s=Qt(So(this)),l=o===void 0?4294967295:o>>>0;if(l===0)return[];if(i===void 0)return[s];if(!qn(a=i)||!((u=a[Fre])!==void 0?u:so(a)=="RegExp"))return xt(t,s,i,l);for(var c,f,d,p=[],v=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(i.sticky?"y":""),m=0,g=new RegExp(i.source,v+"g");(c=xt($f,g,s))&&!((f=g.lastIndex)>m&&(Ou(p,Zl(s,m,c.index)),c.length>1&&c.index<s.length&&Ck(Sk,p,ES(c,1)),d=c[0].length,m=f,p.length>=l));)g.lastIndex===c.index&&g.lastIndex++;return m===s.length?!d&&zre(g,"")||Ou(p,""):Ou(p,Zl(s,m)),p.length>l?ES(p,0,l):p}:"0".split(void 0,0).length?function(i,o){return i===void 0&&o===0?[]:xt(t,this,i,o)}:t,[function(i,o){var a=So(this),u=i==null?void 0:U3(i,e);return u?xt(u,i,a,o):xt(r,Qt(a),i,o)},function(i,o){var a=tr(this),u=Qt(i),s=n(r,a,u,o,r!==t);if(s.done)return s.value;var l=_re(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Au?"g":"y"),d=new l(Au?"^(?:"+a.source+")":a,f),p=o===void 0?4294967295:o>>>0;if(p===0)return[];if(u.length===0)return F4(d,u)===null?[u]:[];for(var v=0,m=0,g=[];m<u.length;){d.lastIndex=Au?0:m;var y,h=F4(d,Au?Zl(u,m):u);if(h===null||(y=Mre(Z3(d.lastIndex+(Au?m:0)),u.length))===v)m=xk(u,m,c);else{if(Ou(g,Zl(u,v,m)),g.length===p)return g;for(var $=1;$<=h.length-1;$++)if(Ou(g,h[$]),g.length===p)return g;m=v=y}}return Ou(g,Zl(u,v)),g}]},!!Ot(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),Au);var T4=`
|
||
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,CS=Se("".replace),gg="["+T4+"]",Hre=RegExp("^"+gg+gg+"*"),Ure=RegExp(gg+gg+"*$"),ay=function(e){return function(t){var n=Qt(So(t));return 1&e&&(n=CS(n,Hre,"")),2&e&&(n=CS(n,Ure,"")),n}},Vre={start:ay(1),end:ay(2),trim:ay(3)},Wre=J3.PROPER,qre=Vre.trim;function Ak(e){return e.length?e[0].tagName.toLowerCase():""}Ao({target:"String",proto:!0,forced:function(e){return Ot(function(){return!!T4[e]()||"\u200B\x85\u180E"[e]()!=="\u200B\x85\u180E"||Wre&&T4[e].name!==e})}("trim")},{trim:function(){return qre(this)}}),Ao({global:!0},{globalThis:De}),Ur&&(O.fn.append=Ur),Hr&&(O.fn.on=Hr),bo&&(O.fn.focus=bo),Mr&&(O.fn.attr=Mr),zr&&(O.fn.val=zr),yo&&(O.fn.html=yo),hs&&(O.fn.dataset=hs),fs&&(O.fn.addClass=fs),ds&&(O.fn.removeClass=ds),ms&&(O.fn.children=ms),bh&&(O.fn.each=bh),vs&&(O.fn.find=vs);var wf=!1,Ok=0,Bk=0,Ef=null,Cf=null,Mc=O("body");function Fk(e){wf=!1,Cf=null,Ef=null,Mc.off("mousemove",Tk),Mc.off("mouseup",Fk)}Mc.on("mousedown",function(e){var t=e.target;if((t.tagName==="TH"||t.tagName==="TD")&&t.style.cursor==="col-resize"){t.style.cursor="auto",e.preventDefault(),wf=!0;var n=e.clientX;Ok=n;var r=t.getBoundingClientRect().width;Bk=r,Mc.on("mousemove",Tk),Mc.on("mouseup",Fk)}});var Tk=Pa(function(e){if(wf&&Cf!=null&&Ef!=null){e.preventDefault();var t=e.clientX,n=Bk+(t-Ok);(n=Math.floor(100*n)/100)<30&&(n=30),P.setNodes(Cf,{width:n.toString()},{at:Ef})}},100),Gre={type:"table",renderElem:function(e,t,n){var r=function(l,c){if(l.isDisabled())return!1;var f=l.selection;if(f==null||R.isCollapsed(f))return!0;var d=f.anchor,p=f.focus,v=S.findPath(l,c),m=E.start(l,v),g=E.end(l,v),y=$e.compare(d,g)<=0&&$e.compare(d,m)>=0,h=$e.compare(p,g)<=0&&$e.compare(p,m)>=0;return!!(y&&h&&_.equals(d.path.slice(0,3),p.path.slice(0,3)))}(n,e),i=e.width,o=i===void 0?"auto":i,a=S.isNodeSelected(n,e),u=W0(e),s=de("div",{className:"table-container","data-selected":a,on:{mousedown:function(l){if(l.target.tagName==="DIV"&&l.preventDefault(),!n.isDisabled()){var c=S.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)}}}},de("table",{width:o,contentEditable:r},de("colgroup",null,u.map(function(l){var c=l.width;return de("col",{width:c===void 0?"auto":c})})),de("tbody",null,t)));return s}},Kre={type:"table-row",renderElem:function(e,t,n){return de("tr",null,t)}},Yre={type:"table-cell",renderElem:function(e,t,n){var r=function(d,p){var v=S.getParentNode(d,p);if(v==null)return!1;var m=S.getParentNode(d,v);return m!=null&&W0(m).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 de("td",{colSpan:a,rowSpan:s},t);var f=de(c?"th":"td",{colSpan:a,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:Pa(function(d){var p=this.elm;if(p!=null){var v=p.getBoundingClientRect(),m=v.left,g=v.width,y=v.top,h=v.height,$=d.clientX,w=d.clientY;wf||($>m+g-5&&$<m+g&&w>y&&w<y+h?(p.style.cursor="col-resize",Cf=n,Ef=S.findPath(n,e)):wf||(p.style.cursor="auto",Cf=null,Ef=null))}},100)}},t);return f}},Xre={type:"table",elemToHtml:function(e,t){var n=e.width;return'<table style="width: '+(n===void 0?"auto":n)+';"><tbody>'+t+"</tbody></table>"}},Jre={type:"table-row",elemToHtml:function(e,t){return"<tr>"+t+"</tr>"}},Zre={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+"</"+c+">"}},Qre={selector:"table",preParseHtml:function(e){var t=O(e);if(Ak(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]}},eie=V0.filter;Ao({target:"Array",proto:!0,forced:!i5("filter")},{filter:function(e){return eie(this,e,arguments.length>1?arguments[1]:void 0)}});var tie=Math.floor,uy=Se("".charAt),nie=Se("".replace),sy=Se("".slice),rie=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,iie=/\$([$&'`]|\d{1,2})/g,oie=function(e,t,n,r,i,o){var a=n+e.length,u=r.length,s=iie;return i!==void 0&&(i=q3(i),s=rie),nie(o,s,function(l,c){var f;switch(uy(c,0)){case"$":return"$";case"&":return e;case"`":return sy(t,0,n);case"'":return sy(t,a);case"<":f=i[sy(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=tie(d/10);return p===0?l:p<=u?r[p-1]===void 0?uy(c,1):r[p-1]+uy(c,1):l}f=r[d-1]}return f===void 0?"":f})},k4=nr("replace"),aie=Math.max,uie=Math.min,sie=Se([].concat),ly=Se([].push),DS=Se("".indexOf),xS=Se("".slice),lie="a".replace(/./,"$0")==="$0",SS=!!/./[k4]&&/./[k4]("a","$0")==="";Dk("replace",function(e,t,n){var r=SS?"$":"$0";return[function(i,o){var a=So(this),u=i==null?void 0:U3(i,k4);return u?xt(u,i,a,o):xt(t,Qt(a),i,o)},function(i,o){var a=tr(this),u=Qt(i);if(typeof o=="string"&&DS(o,r)===-1&&DS(o,"$<")===-1){var s=n(t,a,u,o);if(s.done)return s.value}var l=Gt(o);l||(o=Qt(o));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=F4(a,u);if(p===null||(ly(d,p),!c))break;Qt(p[0])===""&&(a.lastIndex=xk(u,Z3(a.lastIndex),f))}for(var v,m="",g=0,y=0;y<d.length;y++){for(var h=Qt((p=d[y])[0]),$=aie(uie(H0(p.index),u.length),0),w=[],C=1;C<p.length;C++)ly(w,(v=p[C])===void 0?v:String(v));var D=p.groups;if(l){var A=sie([h],w,$,u);D!==void 0&&ly(A,D);var I=Qt(Ck(o,void 0,A))}else I=oie(h,u,$,w,D,o);$>=g&&(m+=xS(u,g,$)+I,g=$+h.length)}return m+xS(u,g)}]},!!Ot(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!lie||SS);var cie={selector:"td,th",parseElemHtml:function(e,t,n){var r=O(e);(t=t.filter(function(u){return!!X.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:Ak(r)==="th",colSpan:i,rowSpan:o,width:a,children:t}}},fie={selector:"tr",parseElemHtml:function(e,t,n){return{type:"table-row",children:t.filter(function(r){return S.getNodeType(r)==="table-cell"})}}},die={selector:"table",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<l;c++){var f=s[c];if(f){var d=f.split(":");d[0].trim()===a&&(u=d[1].trim())}}return u}(r,"width")==="100%"&&(i="100%"),r.attr("width")==="100%"&&(i="100%"),{type:"table",width:i,children:t.filter(function(o){return S.getNodeType(o)==="table-row"})}}},pie=function(){function e(){this.title=q("tableModule.insertTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!R.isCollapsed(n)||!!S.getSelectedElems(t).some(function(r){var i=S.getNodeType(r);return i==="pre"||i==="table"||!!t.isVoid(r)})},e.prototype.getPanelContentElem=function(t){var n=this;if(this.$content)return this.$content[0];for(var r=O('<div class="w-e-panel-content-table"></div>'),i=O("<span>0 × 0</span>"),o=O("<table></table>"),a=0;a<10;a++){for(var u=O("<tr></tr>"),s=0;s<10;s++){var l=O("<td></td>");l.attr("data-x",s.toString()),l.attr("data-y",a.toString()),u.append(l),l.on("mouseenter",function(c){var f=c.target;if(f!=null){var d=O(f).dataset(),p=d.x,v=d.y;i[0].innerHTML=p+1+" × "+(v+1),o.children().each(function(m){O(m).children().each(function(g){var y=O(g),h=y.dataset(),$=h.x,w=h.y;$<=p&&w<=v?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,v=d.y;n.insertTable(t,v+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)){var a=S.getSelectedNodeByType(t,"paragraph");a&&W.string(a)===""&&P.removeNodes(t,{mode:"highest"});var u=function(s,l){for(var c=[],f=0;f<s;f++){for(var d=[],p=0;p<l;p++){var v={type:"table-cell",children:[{text:""}]};f===0&&(v.isHeader=!0),d.push(v)}c.push({type:"table-row",children:d})}return{type:"table",width:"auto",children:c}}(i,o);P.insertNodes(t,u,{mode:"highest"})}},e}(),hie=function(){function e(){this.title=q("tableModule.deleteTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||S.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){this.isDisabled(t)||P.removeNodes(t,{mode:"highest"})},e}(),gie=function(){function e(){this.title=q("tableModule.insertRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!R.isCollapsed(n)||S.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=gr(E.nodes(t,{match:function(p){return S.checkNodeType(p,"table-cell")},universal:!0}),1),i=gr(r[0],2),o=i[0],a=i[1],u=S.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<s;c++)l.children.push({type:"table-cell",children:[{text:""}]});var f=_.parent(a),d=_.next(f);P.insertNodes(t,l,{at:d})}}},e}(),vie=function(){function e(){this.title=q("tableModule.deleteRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!R.isCollapsed(n)||S.getSelectedNodeByType(t,"table-row")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=gr(E.nodes(t,{match:function(s){return S.checkNodeType(s,"table-row")},universal:!0}),1),i=gr(r[0],2),o=i[0],a=i[1],u=S.getParentNode(t,o);((u==null?void 0:u.children.length)||0)<=1?P.removeNodes(t,{mode:"highest"}):P.removeNodes(t,{at:a})}},e}(),AS={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},cy=K3("span").classList,OS=cy&&cy.constructor&&cy.constructor.prototype,mie=OS===Object.prototype?void 0:OS,yie=V0.forEach,bie=function(e,t){var n=[][e];return!!n&&Ot(function(){n.call(null,t||function(){throw 1},1)})}("forEach"),fy=bie?[].forEach:function(e){return yie(this,e,arguments.length>1?arguments[1]:void 0)},kk=function(e){if(e&&e.forEach!==fy)try{Bs(e,"forEach",fy)}catch{e.forEach=fy}};for(var dy in AS)AS[dy]&&kk(De[dy]&&De[dy].prototype);kk(mie);var $ie=function(){function e(){this.title=q("tableModule.insertCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!R.isCollapsed(n)||S.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=gr(E.nodes(t,{match:function(l){return S.checkNodeType(l,"table-cell")},universal:!0}),1),i=gr(r[0],2),o=i[0],a=i[1],u=S.getParentNode(t,o);if(u!=null){var s=S.getParentNode(t,u);s!=null&&(s.children||[]).forEach(function(l,c){te.isElement(l)&&(l.children||[]).forEach(function(f){var d=S.findPath(t,f);if(d.length===a.length&&QT(d.slice(-1),a.slice(-1))){var p={type:"table-cell",children:[{text:""}]};c===0&&wk(s)&&(p.isHeader=!0),P.insertNodes(t,p,{at:d})}})})}}},e}(),wie=function(){function e(){this.title=q("tableModule.deleteCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!R.isCollapsed(n)||S.getSelectedNodeByType(t,"table-cell")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=gr(E.nodes(t,{match:function(c){return S.checkNodeType(c,"table-cell")},universal:!0}),1),i=gr(r[0],2),o=i[0],a=i[1],u=S.getParentNode(t,o),s=(u==null?void 0:u.children.length)||0;if(!u||s<=1)P.removeNodes(t,{mode:"highest"});else{var l=S.getParentNode(t,u);l!=null&&(l.children||[]).forEach(function(c){te.isElement(c)&&(c.children||[]).forEach(function(f){var d=S.findPath(t,f);d.length===a.length&&QT(d.slice(-1),a.slice(-1))&&P.removeNodes(t,{at:d})})})}}},e}(),Eie=function(){function e(){this.title=q("tableModule.header"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){var n=S.getSelectedNodeByType(t,"table");return n!=null&&wk(n)},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!R.isCollapsed(n)||S.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=!n,i=S.getSelectedNodeByType(t,"table");i!=null&&W0(i).forEach(function(o){return P.setNodes(t,{isHeader:r},{at:S.findPath(t,o)})})}},e}(),Cie=function(){function e(){this.title=q("tableModule.widthAuto"),this.iconSvg='<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){var n=S.getSelectedNodeByType(t,"table");return n!=null&&n.width==="100%"},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!R.isCollapsed(n)||S.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r={width:n?"auto":"100%"};P.setNodes(t,r,{mode:"highest"})}},e}(),Die={renderElems:[Gre,Kre,Yre],elemsToHtml:[Xre,Jre,Zre],preParseHtml:[Qre],parseElemsHtml:[cie,fie,die],menus:[{key:"insertTable",factory:function(){return new pie}},{key:"deleteTable",factory:function(){return new hie}},{key:"insertTableRow",factory:function(){return new gie}},{key:"deleteTableRow",factory:function(){return new vie}},{key:"insertTableCol",factory:function(){return new $ie}},{key:"deleteTableCol",factory:function(){return new wie}},{key:"tableHeader",factory:function(){return new Eie}},{key:"tableFullWidth",factory:function(){return new Cie}}],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(){S.getSelectedNodeByType(s,"table")==null?t():s.insertText(`
|
||
`)},s.deleteBackward=function(l){if(!fS(s)){var c=s.selection;if(c){var f=E.before(s,c);if(f){var d=dS(s,f),p=dS(s,c);if(d&&!p)return}}n(l)}},s.handleTab=function(){var l;if(S.getSelectedNodeByType(s,"table")){var c=E.above(e);S.checkNodeType(c[0],"table-cell")&&P.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),P.select(e,f[1]);else{var d=s.children||[],p=d.length;if(S.checkNodeType(d[p-1],"table")){var v=S.genEmptyParagraph();P.insertNodes(s,v,{at:[p]}),s.handleTab()}}}else a()},s.deleteForward=function(l){fS(s)||r(l)},s.normalizeNode=function(l){var c=gr(l,2),f=c[0],d=c[1];if(S.getNodeType(f)!=="table")return i([f,d]);if(S.isLastNode(s,f)){var p=S.genEmptyParagraph();P.insertNodes(s,p,{at:[d[0]+1]})}},s.insertData=function(l){if(S.getSelectedNodeByType(s,"table")!=null){var c=l.getData("text/plain");c===`
|
||
`||/<img[^>]+>/.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=S.getSelectedNodeByType(s,"table-cell");if(c!=null){var f=l.anchor,d=l.focus;if(_.equals(f.path.slice(0,3),d.path.slice(0,3)))if(W.string(c).length!==0){var p=S.findPath(s,c),v={anchor:E.start(s,p),focus:E.end(s,p)};s.select(v)}else u();else u()}else u()}else u()},s}};vn("en",{videoModule:{delete:"Delete",uploadVideo:"Upload video",insertVideo:"Insert video",videoSrc:"Video source",videoSrcPlaceHolder:"Video file url, or third-party <iframe>",videoPoster:"Video poster",videoPosterPlaceHolder:"Poster image url",ok:"Ok",editSize:"Edit size",width:"Width",height:"Height"}}),vn("zh-CN",{videoModule:{delete:"\u5220\u9664\u89C6\u9891",uploadVideo:"\u4E0A\u4F20\u89C6\u9891",insertVideo:"\u63D2\u5165\u89C6\u9891",videoSrc:"\u89C6\u9891\u5730\u5740",videoSrcPlaceHolder:"\u89C6\u9891\u6587\u4EF6 url \u6216\u7B2C\u4E09\u65B9 <iframe>",videoPoster:"\u89C6\u9891\u5C01\u9762",videoPosterPlaceHolder:"\u5C01\u9762\u56FE\u7247 url",ok:"\u786E\u5B9A",editSize:"\u4FEE\u6539\u5C3A\u5BF8",width:"\u5BBD\u5EA6",height:"\u9AD8\u5EA6"}});/*! *****************************************************************************
|
||
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 vg=function(){return vg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},vg.apply(this,arguments)};function q0(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(l){try{s(r.next(l))}catch(c){o(c)}}function u(l){try{s(r.throw(l))}catch(c){o(c)}}function s(l){var c;l.done?i(l.value):(c=l.value,c instanceof n?c:new n(function(f){f(c)})).then(a,u)}s((r=r.apply(e,t||[])).next())})}function G0(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(s){return function(l){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&c[0]?r.return:c[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,c[1])).done)return i;switch(r=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!((i=i.length>0&&i[i.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){a.label=c[1];break}if(c[0]===6&&a.label<i[1]){a.label=i[1],i=c;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(c);break}i[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(f){c=[6,f],r=0}finally{n=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([s,l])}}}function xie(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Sa(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 Sie(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=xie(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(i){t[i]=e[i]&&function(o){return new Promise(function(a,u){(function(s,l,c,f){Promise.resolve(f).then(function(d){s({value:d,done:c})},l)})(a,u,(o=e[i](o)).done,o.value)})}}}var BS=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function a5(e){var t={exports:{}};return e(t,t.exports),t.exports}var Li,eh,vp=function(e){return e&&e.Math==Math&&e},K=vp(typeof globalThis=="object"&&globalThis)||vp(typeof window=="object"&&window)||vp(typeof self=="object"&&self)||vp(typeof BS=="object"&&BS)||function(){return this}()||Function("return this")(),Je=function(e){try{return!!e()}catch{return!0}},Vr=!Je(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Ql=Function.prototype.call,Ke=Ql.bind?Ql.bind(Ql):function(){return Ql.apply(Ql,arguments)},FS={}.propertyIsEnumerable,TS=Object.getOwnPropertyDescriptor,Aie={f:TS&&!FS.call({1:2},1)?function(e){var t=TS(this,e);return!!t&&t.enumerable}:FS},K0=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},_k=Function.prototype,_4=_k.bind,P4=_k.call,Oie=_4&&_4.bind(P4),pe=_4?function(e){return e&&Oie(P4,e)}:function(e){return e&&function(){return P4.apply(e,arguments)}},Bie=pe({}.toString),Fie=pe("".slice),jr=function(e){return Fie(Bie(e),8,-1)},py=K.Object,Tie=pe("".split),u5=Je(function(){return!py("z").propertyIsEnumerable(0)})?function(e){return jr(e)=="String"?Tie(e,""):py(e)}:py,kie=K.TypeError,vd=function(e){if(e==null)throw kie("Can't call method on "+e);return e},Po=function(e){return u5(vd(e))},Ve=function(e){return typeof e=="function"},Ze=function(e){return typeof e=="object"?e!==null:Ve(e)},_ie=function(e){return Ve(e)?e:void 0},Va=function(e,t){return arguments.length<2?_ie(K[e]):K[e]&&K[e][t]},Df=pe({}.isPrototypeOf),rs=Va("navigator","userAgent")||"",kS=K.process,_S=K.Deno,PS=kS&&kS.versions||_S&&_S.version,NS=PS&&PS.v8;NS&&(eh=(Li=NS.split("."))[0]>0&&Li[0]<4?1:+(Li[0]+Li[1])),!eh&&rs&&(!(Li=rs.match(/Edge\/(\d+)/))||Li[1]>=74)&&(Li=rs.match(/Chrome\/(\d+)/))&&(eh=+Li[1]);var xf=eh,N4=!!Object.getOwnPropertySymbols&&!Je(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&xf&&xf<41}),s5=N4&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Pie=K.Object,I4=s5?function(e){return typeof e=="symbol"}:function(e){var t=Va("Symbol");return Ve(t)&&Df(t.prototype,Pie(e))},Nie=K.String,mg=function(e){try{return Nie(e)}catch{return"Object"}},Iie=K.TypeError,Oo=function(e){if(Ve(e))return e;throw Iie(mg(e)+" is not a function")},Sf=function(e,t){var n=e[t];return n==null?void 0:Oo(n)},Rie=K.TypeError,jie=Object.defineProperty,l5=function(e,t){try{jie(K,e,{value:t,configurable:!0,writable:!0})}catch{K[e]=t}return t},co=K["__core-js_shared__"]||l5("__core-js_shared__",{}),c5=a5(function(e){(e.exports=function(t,n){return co[t]||(co[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),Lie=K.Object,Y0=function(e){return Lie(vd(e))},Mie=pe({}.hasOwnProperty),St=Object.hasOwn||function(e,t){return Mie(Y0(e),t)},zie=0,Hie=Math.random(),Uie=pe(1 .toString),f5=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Uie(++zie+Hie,36)},ec=c5("wks"),Aa=K.Symbol,IS=Aa&&Aa.for,Vie=s5?Aa:Aa&&Aa.withoutSetter||f5,yt=function(e){if(!St(ec,e)||!N4&&typeof ec[e]!="string"){var t="Symbol."+e;N4&&St(Aa,e)?ec[e]=Aa[e]:ec[e]=s5&&IS?IS(t):Vie(t)}return ec[e]},Wie=K.TypeError,qie=yt("toPrimitive"),Gie=function(e,t){if(!Ze(e)||I4(e))return e;var n,r=Sf(e,qie);if(r){if(t===void 0&&(t="default"),n=Ke(r,e,t),!Ze(n)||I4(n))return n;throw Wie("Can't convert object to primitive value")}return t===void 0&&(t="number"),function(i,o){var a,u;if(o==="string"&&Ve(a=i.toString)&&!Ze(u=Ke(a,i))||Ve(a=i.valueOf)&&!Ze(u=Ke(a,i))||o!=="string"&&Ve(a=i.toString)&&!Ze(u=Ke(a,i)))return u;throw Rie("Can't convert object to primitive value")}(e,t)},d5=function(e){var t=Gie(e,"string");return I4(t)?t:t+""},R4=K.document,Kie=Ze(R4)&&Ze(R4.createElement),Af=function(e){return Kie?R4.createElement(e):{}},Pk=!Vr&&!Je(function(){return Object.defineProperty(Af("div"),"a",{get:function(){return 7}}).a!=7}),RS=Object.getOwnPropertyDescriptor,p5={f:Vr?RS:function(e,t){if(e=Po(e),t=d5(t),Pk)try{return RS(e,t)}catch{}if(St(e,t))return K0(!Ke(Aie.f,e,t),e[t])}},Yie=K.String,Xie=K.TypeError,Rt=function(e){if(Ze(e))return e;throw Xie(Yie(e)+" is not an object")},Jie=K.TypeError,jS=Object.defineProperty,mi={f:Vr?jS:function(e,t,n){if(Rt(e),t=d5(t),Rt(n),Pk)try{return jS(e,t,n)}catch{}if("get"in n||"set"in n)throw Jie("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},fi=Vr?function(e,t,n){return mi.f(e,t,K0(1,n))}:function(e,t,n){return e[t]=n,e},Zie=pe(Function.toString);Ve(co.inspectSource)||(co.inspectSource=function(e){return Zie(e)});var yg,zc,bg,X0=co.inspectSource,LS=K.WeakMap,Nk=Ve(LS)&&/native code/.test(X0(LS)),MS=c5("keys"),h5=function(e){return MS[e]||(MS[e]=f5(e))},J0={},j4=K.TypeError,Qie=K.WeakMap;if(Nk||co.state){var Jo=co.state||(co.state=new Qie),eoe=pe(Jo.get),zS=pe(Jo.has),toe=pe(Jo.set);yg=function(e,t){if(zS(Jo,e))throw new j4("Object already initialized");return t.facade=e,toe(Jo,e,t),t},zc=function(e){return eoe(Jo,e)||{}},bg=function(e){return zS(Jo,e)}}else{var Bu=h5("state");J0[Bu]=!0,yg=function(e,t){if(St(e,Bu))throw new j4("Object already initialized");return t.facade=e,fi(e,Bu,t),t},zc=function(e){return St(e,Bu)?e[Bu]:{}},bg=function(e){return St(e,Bu)}}var Tn={set:yg,get:zc,has:bg,enforce:function(e){return bg(e)?zc(e):yg(e,{})},getterFor:function(e){return function(t){var n;if(!Ze(t)||(n=zc(t)).type!==e)throw j4("Incompatible receiver, "+e+" required");return n}}},Ik=Function.prototype,noe=Vr&&Object.getOwnPropertyDescriptor,hy=St(Ik,"name"),Xs={EXISTS:hy,PROPER:hy&&function(){}.name==="something",CONFIGURABLE:hy&&(!Vr||Vr&&noe(Ik,"name").configurable)},xn=a5(function(e){var t=Xs.CONFIGURABLE,n=Tn.get,r=Tn.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;Ve(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!St(u,"name")||t&&u.name!==p)&&fi(u,"name",p),(l=r(u)).source||(l.source=i.join(typeof p=="string"?p:""))),o!==K?(c?!d&&o[a]&&(f=!0):delete o[a],f?o[a]=u:fi(o,a,u)):f?o[a]=u:l5(a,u)})(Function.prototype,"toString",function(){return Ve(this)&&n(this).source||X0(this)})}),roe=Math.ceil,ioe=Math.floor,Z0=function(e){var t=+e;return t!=t||t===0?0:(t>0?ioe:roe)(t)},ooe=Math.max,aoe=Math.min,Of=function(e,t){var n=Z0(e);return n<0?ooe(n+t,0):aoe(n,t)},uoe=Math.min,Rk=function(e){return e>0?uoe(Z0(e),9007199254740991):0},md=function(e){return Rk(e.length)},HS=function(e){return function(t,n,r){var i,o=Po(t),a=md(o),u=Of(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}},jk={includes:HS(!0),indexOf:HS(!1)},soe=jk.indexOf,US=pe([].push),Lk=function(e,t){var n,r=Po(e),i=0,o=[];for(n in r)!St(J0,n)&&St(r,n)&&US(o,n);for(;t.length>i;)St(r,n=t[i++])&&(~soe(o,n)||US(o,n));return o},$g=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],loe=$g.concat("length","prototype"),wg={f:Object.getOwnPropertyNames||function(e){return Lk(e,loe)}},coe={f:Object.getOwnPropertySymbols},foe=pe([].concat),doe=Va("Reflect","ownKeys")||function(e){var t=wg.f(Rt(e)),n=coe.f;return n?foe(t,n(e)):t},poe=function(e,t){for(var n=doe(t),r=mi.f,i=p5.f,o=0;o<n.length;o++){var a=n[o];St(e,a)||r(e,a,i(t,a))}},hoe=/#|\.prototype\./,yd=function(e,t){var n=voe[goe(e)];return n==yoe||n!=moe&&(Ve(t)?Je(t):!!t)},goe=yd.normalize=function(e){return String(e).replace(hoe,".").toLowerCase()},voe=yd.data={},moe=yd.NATIVE="N",yoe=yd.POLYFILL="P",Eg=yd,boe=p5.f,pn=function(e,t){var n,r,i,o,a,u=e.target,s=e.global,l=e.stat;if(n=s?K:l?K[u]||l5(u,{}):(K[u]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=boe(n,r))&&a.value:n[r],!Eg(s?r:u+(l?".":"#")+r,e.forced)&&i!==void 0){if(typeof o==typeof i)continue;poe(o,i)}(e.sham||i&&i.sham)&&fi(o,"sham",!0),xn(n,r,o,e)}},Mk={};Mk[yt("toStringTag")]="z";var tc,g5=String(Mk)==="[object z]",$oe=yt("toStringTag"),woe=K.Object,Eoe=jr(function(){return arguments}())=="Arguments",Q0=g5?jr:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(i,o){try{return i[o]}catch{}}(t=woe(e),$oe))=="string"?n:Eoe?jr(t):(r=jr(t))=="Object"&&Ve(t.callee)?"Arguments":r},Coe=K.String,Hn=function(e){if(Q0(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Coe(e)},L4=`
|
||
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,VS=pe("".replace),Cg="["+L4+"]",Doe=RegExp("^"+Cg+Cg+"*"),xoe=RegExp(Cg+Cg+"*$"),gy=function(e){return function(t){var n=Hn(vd(t));return 1&e&&(n=VS(n,Doe,"")),2&e&&(n=VS(n,xoe,"")),n}},Soe={start:gy(1),end:gy(2),trim:gy(3)},Aoe=Xs.PROPER,Ooe=Soe.trim;function WS(e){return e.length?e[0].tagName.toLowerCase():""}function zk(e,t,n){t===void 0&&(t="auto"),n===void 0&&(n="auto");var r=O(e);return r.attr("width",t),r.attr("height",n),r[0].outerHTML}pn({target:"String",proto:!0,forced:(tc="trim",Je(function(){return!!L4[tc]()||"\u200B\x85\u180E"[tc]()!=="\u200B\x85\u180E"||Aoe&&L4[tc].name!==tc}))},{trim:function(){return Ooe(this)}}),pn({global:!0},{globalThis:K}),Ur&&(O.fn.append=Ur),Hr&&(O.fn.on=Hr),bo&&(O.fn.focus=bo),Mr&&(O.fn.attr=Mr),zr&&(O.fn.val=zr),yo&&(O.fn.html=yo),wh&&(O.fn.parent=wh),ps&&(O.fn.hasClass=ps),bs&&(O.fn.empty=bs);var Boe={type:"video",renderElem:function(e,t,n){var r,i=e,o=i.src,a=o===void 0?"":o,u=i.poster,s=u===void 0?"":u,l=i.width,c=l===void 0?"auto":l,f=i.height,d=f===void 0?"auto":f,p=S.isNodeSelected(n,e);if(a.trim().indexOf("<iframe ")===0){var v=zk(a,c,d);r=de("div",{className:"w-e-textarea-video-container","data-selected":p?"true":"",innerHTML:v})}else{var m=de("video",{poster:s,controls:!0},de("source",{src:a,type:"video/mp4"}),`Sorry, your browser doesn't support embedded videos.
|
||
\u62B1\u6B49\uFF0C\u6D4F\u89C8\u5668\u4E0D\u652F\u6301 video \u89C6\u9891`);c!=="auto"&&(m.data.width=c),d!=="auto"&&(m.data.height=d),r=de("div",{className:"w-e-textarea-video-container","data-selected":p?"true":""},m)}return $s("div",{props:{contentEditable:!1},on:{mousedown:function(g){return g.preventDefault()}}},r)}},mp,Foe={type:"video",elemToHtml:function(e,t){var n=e,r=n.src,i=r===void 0?"":r,o=n.poster,a=o===void 0?"":o,u=n.width,s=u===void 0?"auto":u,l=n.height,c=l===void 0?"auto":l,f=`<div data-w-e-type="video" data-w-e-is-void>
|
||
`;return i.trim().indexOf("<iframe ")===0?f+=zk(i,s,c):f+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+c+'"><source src="'+i+'" type="video/mp4"/></video>',f+=`
|
||
</div>`}},Toe=Object.keys||function(e){return Lk(e,$g)},koe=Vr?Object.defineProperties:function(e,t){Rt(e);for(var n,r=Po(t),i=Toe(t),o=i.length,a=0;o>a;)mi.f(e,n=i[a++],r[n]);return e},M4=Va("document","documentElement"),Hk=h5("IE_PROTO"),vy=function(){},Uk=function(e){return"<script>"+e+"<\/script>"},qS=function(e){e.write(Uk("")),e.close();var t=e.parentWindow.Object;return e=null,t},th=function(){try{mp=new ActiveXObject("htmlfile")}catch{}var e,t;th=typeof document<"u"?document.domain&&mp?qS(mp):((t=Af("iframe")).style.display="none",M4.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Uk("document.F=Object")),e.close(),e.F):qS(mp);for(var n=$g.length;n--;)delete th.prototype[$g[n]];return th()};J0[Hk]=!0;var v5=Object.create||function(e,t){var n;return e!==null?(vy.prototype=Rt(e),n=new vy,vy.prototype=null,n[Hk]=e):n=th(),t===void 0?n:koe(n,t)},z4=yt("unscopables"),H4=Array.prototype;H4[z4]==null&&mi.f(H4,z4,{configurable:!0,value:v5(null)});var Hc=function(e){H4[z4][e]=!0},_oe=jk.includes;pn({target:"Array",proto:!0},{includes:function(e){return _oe(this,e,arguments.length>1?arguments[1]:void 0)}}),Hc("includes");var Poe={selector:"iframe,video,p",preParseHtml:function(e){var t=O(e),n=t;if(WS(t)==="p"){var r=t.children();if(r.length===1){var i=r[0],o=i.tagName.toLowerCase();["iframe","video"].includes(o)&&(n=O(i))}}var a=WS(n);if(a!=="iframe"&&a!=="video"||n.parent().attr("data-w-e-type")==="video")return n[0];var u=O('<div data-w-e-type="video" data-w-e-is-void></div>');return u.append(n),u[0]}},GS=pe(pe.bind),Bf=function(e,t){return Oo(e),t===void 0?e:GS?GS(e,t):function(){return e.apply(t,arguments)}},Dg=Array.isArray||function(e){return jr(e)=="Array"},Vk=function(){},Noe=[],Wk=Va("Reflect","construct"),m5=/^\s*(?:class|function)\b/,Ioe=pe(m5.exec),Roe=!m5.exec(Vk),nc=function(e){if(!Ve(e))return!1;try{return Wk(Vk,Noe,e),!0}catch{return!1}},y5=!Wk||Je(function(){var e;return nc(nc.call)||!nc(Object)||!nc(function(){e=!0})||e})?function(e){if(!Ve(e))return!1;switch(Q0(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Roe||!!Ioe(m5,X0(e))}:nc,joe=yt("species"),KS=K.Array,Loe=function(e,t){return new(function(n){var r;return Dg(n)&&(r=n.constructor,(y5(r)&&(r===KS||Dg(r.prototype))||Ze(r)&&(r=r[joe])===null)&&(r=void 0)),r===void 0?KS:r}(e))(t===0?0:t)},YS=pe([].push),Mi=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,v=Y0(s),m=u5(v),g=Bf(l,c),y=md(m),h=0,$=f||Loe,w=t?$(s,y):n||a?$(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),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:YS(w,d)}else switch(e){case 4:return!1;case 7:YS(w,d)}return o?-1:r||i?i:w}},b5={forEach:Mi(0),map:Mi(1),filter:Mi(2),some:Mi(3),every:Mi(4),find:Mi(5),findIndex:Mi(6),filterReject:Mi(7)},Moe=b5.find,XS=!0;"find"in[]&&Array(1).find(function(){XS=!1}),pn({target:"Array",proto:!0,forced:XS},{find:function(e){return Moe(this,e,arguments.length>1?arguments[1]:void 0)}}),Hc("find");var zoe=g5?{}.toString:function(){return"[object "+Q0(this)+"]"};function JS(e,t,n,r){return t===void 0&&(t=""),n===void 0&&(n="auto"),r===void 0&&(r="auto"),{type:"video",src:e,poster:t,width:n,height:r,children:[{text:""}]}}g5||xn(Object.prototype,"toString",zoe,{unsafe:!0});var ZS,my,Hoe={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=O(e),i="",o="",a="auto",u="auto",s=r.find("iframe");if(s.length>0)return a=s.attr("width")||"auto",u=s.attr("height")||"auto",JS(i=s[0].outerHTML,o,a,u);var l=r.find("video");return(i=l.attr("src")||"")||l.length>0&&(i=l.find("source").attr("src")||""),a=l.attr("width")||"auto",u=l.attr("height")||"auto",JS(i,o=l.attr("poster")||"",a,u)}},qk=function(){var e=Rt(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},$5=K.RegExp,U4=Je(function(){var e=$5("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),Uoe=U4||Je(function(){return!$5("a","y").sticky}),Voe={BROKEN_CARET:U4||Je(function(){var e=$5("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:Uoe,UNSUPPORTED_Y:U4},Woe=K.RegExp,qoe=Je(function(){var e=Woe(".","s");return!(e.dotAll&&e.exec(`
|
||
`)&&e.flags==="s")}),Goe=K.RegExp,Koe=Je(function(){var e=Goe("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Yoe=Tn.get,Xoe=c5("native-string-replace",String.prototype.replace),xg=RegExp.prototype.exec,V4=xg,Joe=pe("".charAt),Zoe=pe("".indexOf),Qoe=pe("".replace),yy=pe("".slice),by=(my=/b*/g,Ke(xg,ZS=/a/,"a"),Ke(xg,my,"a"),ZS.lastIndex!==0||my.lastIndex!==0),QS=Voe.BROKEN_CARET,$y=/()??/.exec("")[1]!==void 0;(by||$y||QS||qoe||Koe)&&(V4=function(e){var t,n,r,i,o,a,u,s=this,l=Yoe(s),c=Hn(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Ke(V4,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=QS&&s.sticky,v=Ke(qk,s),m=s.source,g=0,y=c;if(p&&(v=Qoe(v,"y",""),Zoe(v,"g")===-1&&(v+="g"),y=yy(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Joe(c,s.lastIndex-1)!==`
|
||
`)&&(m="(?: "+m+")",y=" "+y,g++),n=new RegExp("^(?:"+m+")",v)),$y&&(n=new RegExp("^"+m+"$(?!\\s)",v)),by&&(r=s.lastIndex),i=Ke(xg,p?n:s,y),p?i?(i.input=yy(i.input,g),i[0]=yy(i[0],g),i.index=s.lastIndex,s.lastIndex+=i[0].length):s.lastIndex=0:by&&i&&(s.lastIndex=s.global?i.index+i[0].length:r),$y&&i&&i.length>1&&Ke(Xoe,i[0],n,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(i[o]=void 0)}),i&&d)for(i.groups=a=v5(null),o=0;o<d.length;o++)a[(u=d[o])[0]]=i[u[1]];return i});var Sg=V4;pn({target:"RegExp",proto:!0,forced:/./.exec!==Sg},{exec:Sg});var w5=Function.prototype,eA=w5.apply,eae=w5.bind,tA=w5.call,Gk=typeof Reflect=="object"&&Reflect.apply||(eae?tA.bind(eA):function(){return tA.apply(eA,arguments)}),tae=yt("species"),wy=RegExp.prototype,nae=pe("".charAt),nA=pe("".charCodeAt),rae=pe("".slice),rA=function(e){return function(t,n){var r,i,o=Hn(vd(t)),a=Z0(n),u=o.length;return a<0||a>=u?e?"":void 0:(r=nA(o,a))<55296||r>56319||a+1===u||(i=nA(o,a+1))<56320||i>57343?e?nae(o,a):r:e?rae(o,a,a+2):i-56320+(r-55296<<10)+65536}},Kk={codeAt:rA(!1),charAt:rA(!0)},iae=Kk.charAt,oae=function(e,t,n){return t+(n?iae(e,t).length:1)},aae=Math.floor,Ey=pe("".charAt),uae=pe("".replace),Cy=pe("".slice),sae=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,lae=/\$([$&'`]|\d{1,2})/g,cae=function(e,t,n,r,i,o){var a=n+e.length,u=r.length,s=lae;return i!==void 0&&(i=Y0(i),s=sae),uae(o,s,function(l,c){var f;switch(Ey(c,0)){case"$":return"$";case"&":return e;case"`":return Cy(t,0,n);case"'":return Cy(t,a);case"<":f=i[Cy(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=aae(d/10);return p===0?l:p<=u?r[p-1]===void 0?Ey(c,1):r[p-1]+Ey(c,1):l}f=r[d-1]}return f===void 0?"":f})},fae=K.TypeError,dae=function(e,t){var n=e.exec;if(Ve(n)){var r=Ke(n,e,t);return r!==null&&Rt(r),r}if(jr(e)==="RegExp")return Ke(Sg,e,t);throw fae("RegExp#exec called on incompatible receiver")},W4=yt("replace"),pae=Math.max,hae=Math.min,gae=pe([].concat),Dy=pe([].push),iA=pe("".indexOf),oA=pe("".slice),vae="a".replace(/./,"$0")==="$0",aA=!!/./[W4]&&/./[W4]("a","$0")==="";function Yk(e){return e===void 0&&(e="r"),e+"-"+X9()}(function(e,t,n,r){var i=yt(e),o=!Je(function(){var l={};return l[i]=function(){return 7},""[e](l)!=7}),a=o&&!Je(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[tae]=function(){return c},c.flags="",c[i]=/./[i]),c.exec=function(){return l=!0,null},c[i](""),!l});if(!o||!a||n){var u=pe(/./[i]),s=t(i,""[e],function(l,c,f,d,p){var v=pe(l),m=c.exec;return m===Sg||m===wy.exec?o&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});xn(String.prototype,e,s[0]),xn(wy,i,s[1])}r&&fi(wy[i],"sham",!0)})("replace",function(e,t,n){var r=aA?"$":"$0";return[function(i,o){var a=vd(this),u=i==null?void 0:Sf(i,W4);return u?Ke(u,i,a,o):Ke(t,Hn(a),i,o)},function(i,o){var a=Rt(this),u=Hn(i);if(typeof o=="string"&&iA(o,r)===-1&&iA(o,"$<")===-1){var s=n(t,a,u,o);if(s.done)return s.value}var l=Ve(o);l||(o=Hn(o));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=dae(a,u);if(p===null||(Dy(d,p),!c))break;Hn(p[0])===""&&(a.lastIndex=oae(u,Rk(a.lastIndex),f))}for(var v,m="",g=0,y=0;y<d.length;y++){for(var h=Hn((p=d[y])[0]),$=pae(hae(Z0(p.index),u.length),0),w=[],C=1;C<p.length;C++)Dy(w,(v=p[C])===void 0?v:String(v));var D=p.groups;if(l){var A=gae([h],w,$,u);D!==void 0&&Dy(A,D);var I=Hn(Gk(o,void 0,A))}else I=cae(h,u,$,w,D,o);$>=g&&(m+=oA(u,g,$)+I,g=$+h.length)}return m+oA(u,g)}]},!!Je(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!vae||aA);var Ag=K.Promise,Og=function(e,t,n){for(var r in t)xn(e,r,t[r],n);return e},mae=K.String,yae=K.TypeError,Fs=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=pe(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,i){return Rt(r),function(o){if(typeof o=="object"||Ve(o))return o;throw yae("Can't set "+mae(o)+" as a prototype")}(i),t?e(r,i):r.__proto__=i,r}}():void 0),bae=mi.f,uA=yt("toStringTag"),Bg=function(e,t,n){e&&!St(e=n?e:e.prototype,uA)&&bae(e,uA,{configurable:!0,value:t})},sA=yt("species"),$ae=K.TypeError,E5=function(e,t){if(Df(t,e))return e;throw $ae("Incorrect invocation")},Ts={},wae=yt("iterator"),Eae=Array.prototype,Cae=yt("iterator"),lA=function(e){if(e!=null)return Sf(e,Cae)||Sf(e,"@@iterator")||Ts[Q0(e)]},Dae=K.TypeError,cA=function(e,t,n){var r,i;Rt(e);try{if(!(r=Sf(e,"return"))){if(t==="throw")throw n;return n}r=Ke(r,e)}catch(o){i=!0,r=o}if(t==="throw")throw n;if(i)throw r;return Rt(r),n},xae=K.TypeError,nh=function(e,t){this.stopped=e,this.result=t},fA=nh.prototype,Fg=function(e,t,n){var r,i,o,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),v=!(!n||!n.INTERRUPTED),m=Bf(t,f),g=function(h){return r&&cA(r,"normal",h),new nh(!0,h)},y=function(h){return d?(Rt(h),v?m(h[0],h[1],g):m(h[0],h[1])):v?m(h,g):m(h)};if(p)r=e;else{if(!(i=lA(e)))throw xae(mg(e)+" is not iterable");if((c=i)!==void 0&&(Ts.Array===c||Eae[wae]===c)){for(o=0,a=md(e);a>o;o++)if((u=y(e[o]))&&Df(fA,u))return u;return new nh(!1)}r=function(h,$){var w=arguments.length<2?lA(h):$;if(Oo(w))return Rt(Ke(w,h));throw Dae(mg(h)+" is not iterable")}(e,i)}for(s=r.next;!(l=Ke(s,r)).done;){try{u=y(l.value)}catch(h){cA(r,"throw",h)}if(typeof u=="object"&&u&&Df(fA,u))return u}return new nh(!1)},Xk=yt("iterator"),Jk=!1;try{var Sae=0,dA={next:function(){return{done:!!Sae++}},return:function(){Jk=!0}};dA[Xk]=function(){return this},Array.from(dA,function(){throw 2})}catch{}var Ff,Fu,pA,xy,Zk=function(e,t){if(!t&&!Jk)return!1;var n=!1;try{var r={};r[Xk]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},Aae=K.TypeError,Oae=yt("species"),Bae=function(e,t){var n,r=Rt(e).constructor;return r===void 0||(n=Rt(r)[Oae])==null?t:function(i){if(y5(i))return i;throw Aae(mg(i)+" is not a constructor")}(n)},Qk=pe([].slice),e_=/(?:ipad|iphone|ipod).*applewebkit/i.test(rs),fo=jr(K.process)=="process",q4=K.setImmediate,G4=K.clearImmediate,Fae=K.process,Sy=K.Dispatch,Tae=K.Function,hA=K.MessageChannel,kae=K.String,Ay=0,Uc={};try{Ff=K.location}catch{}var C5=function(e){if(St(Uc,e)){var t=Uc[e];delete Uc[e],t()}},Oy=function(e){return function(){C5(e)}},gA=function(e){C5(e.data)},vA=function(e){K.postMessage(kae(e),Ff.protocol+"//"+Ff.host)};q4&&G4||(q4=function(e){var t=Qk(arguments,1);return Uc[++Ay]=function(){Gk(Ve(e)?e:Tae(e),void 0,t)},Fu(Ay),Ay},G4=function(e){delete Uc[e]},fo?Fu=function(e){Fae.nextTick(Oy(e))}:Sy&&Sy.now?Fu=function(e){Sy.now(Oy(e))}:hA&&!e_?(xy=(pA=new hA).port2,pA.port1.onmessage=gA,Fu=Bf(xy.postMessage,xy)):K.addEventListener&&Ve(K.postMessage)&&!K.importScripts&&Ff&&Ff.protocol!=="file:"&&!Je(vA)?(Fu=vA,K.addEventListener("message",gA,!1)):Fu="onreadystatechange"in Af("script")?function(e){M4.appendChild(Af("script")).onreadystatechange=function(){M4.removeChild(this),C5(e)}}:function(e){setTimeout(Oy(e),0)});var rc,sa,Vc,Uu,By,Fy,Ty,mA,t_={set:q4,clear:G4},_ae=/ipad|iphone|ipod/i.test(rs)&&K.Pebble!==void 0,Pae=/web0s(?!.*chrome)/i.test(rs),Nae=p5.f,ky=t_.set,yA=K.MutationObserver||K.WebKitMutationObserver,bA=K.document,$A=K.process,yp=K.Promise,wA=Nae(K,"queueMicrotask"),n_=wA&&wA.value;n_||(rc=function(){var e,t;for(fo&&(e=$A.domain)&&e.exit();sa;){t=sa.fn,sa=sa.next;try{t()}catch(n){throw sa?Uu():Vc=void 0,n}}Vc=void 0,e&&e.enter()},e_||fo||Pae||!yA||!bA?!_ae&&yp&&yp.resolve?((Ty=yp.resolve(void 0)).constructor=yp,mA=Bf(Ty.then,Ty),Uu=function(){mA(rc)}):fo?Uu=function(){$A.nextTick(rc)}:(ky=Bf(ky,K),Uu=function(){ky(rc)}):(By=!0,Fy=bA.createTextNode(""),new yA(rc).observe(Fy,{characterData:!0}),Uu=function(){Fy.data=By=!By}));var _y,EA,r_,CA,i_=n_||function(e){var t={fn:e,next:void 0};Vc&&(Vc.next=t),sa||(sa=t,Uu()),Vc=t},Iae=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=Oo(t),this.reject=Oo(n)},D5={f:function(e){return new Iae(e)}},K4=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},Rae=typeof window=="object",o_=t_.set,jae=yt("species"),Tr="Promise",DA=Tn.getterFor(Tr),Lae=Tn.set,Mae=Tn.getterFor(Tr),ra=Ag&&Ag.prototype,Nr=Ag,ic=ra,a_=K.TypeError,Y4=K.document,x5=K.process,is=D5.f,zae=is,Hae=!!(Y4&&Y4.createEvent&&K.dispatchEvent),u_=Ve(K.PromiseRejectionEvent),s_=!1,Wc=Eg(Tr,function(){var e=X0(Nr),t=e!==String(Nr);if(!t&&xf===66)return!0;if(xf>=51&&/native code/.test(e))return!1;var n=new Nr(function(i){i(1)}),r=function(i){i(function(){},function(){})};return(n.constructor={})[jae]=r,!(s_=n.then(function(){})instanceof r)||!t&&Rae&&!u_}),Uae=Wc||!Zk(function(e){Nr.all(e).catch(function(){})}),l_=function(e){var t;return!(!Ze(e)||!Ve(t=e.then))&&t},S5=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;i_(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&&Wae(e),e.rejection=1),c===!0?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(a_("Promise-chain cycle")):(u=l_(a))?Ke(u,a,f,d):f(a)):d(r)}catch(v){p&&!s&&p.exit(),d(v)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Vae(e)})}},c_=function(e,t,n){var r,i;Hae?((r=Y4.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),K.dispatchEvent(r)):r={promise:t,reason:n},!u_&&(i=K["on"+e])?i(r):e==="unhandledrejection"&&function(o,a){var u=K.console;u&&u.error&&(arguments.length==1?u.error(o):u.error(o,a))}("Unhandled promise rejection",n)},Vae=function(e){Ke(o_,K,function(){var t,n=e.facade,r=e.value;if(xA(e)&&(t=K4(function(){fo?x5.emit("unhandledRejection",r,n):c_("unhandledrejection",n,r)}),e.rejection=fo||xA(e)?2:1,t.error))throw t.value})},xA=function(e){return e.rejection!==1&&!e.parent},Wae=function(e){Ke(o_,K,function(){var t=e.facade;fo?x5.emit("rejectionHandled",t):c_("rejectionhandled",t,e.value)})},Yu=function(e,t,n){return function(r){e(t,r,n)}},os=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,S5(e,!0))},X4=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw a_("Promise can't be resolved itself");var r=l_(t);r?i_(function(){var i={done:!1};try{Ke(r,t,Yu(X4,i,e),Yu(os,i,e))}catch(o){os(i,o,e)}}):(e.value=t,e.state=1,S5(e,!1))}catch(i){os({done:!1},i,e)}}};if(Wc&&(ic=(Nr=function(e){E5(this,ic),Oo(e),Ke(_y,this);var t=DA(this);try{e(Yu(X4,t),Yu(os,t))}catch(n){os(t,n)}}).prototype,(_y=function(e){Lae(this,{type:Tr,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Og(ic,{then:function(e,t){var n=Mae(this),r=n.reactions,i=is(Bae(this,Nr));return i.ok=!Ve(e)||e,i.fail=Ve(t)&&t,i.domain=fo?x5.domain:void 0,n.parent=!0,r[r.length]=i,n.state!=0&&S5(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),EA=function(){var e=new _y,t=DA(e);this.promise=e,this.resolve=Yu(X4,t),this.reject=Yu(os,t)},D5.f=is=function(e){return e===Nr||e===r_?new EA(e):zae(e)},Ve(Ag)&&ra!==Object.prototype)){CA=ra.then,s_||(xn(ra,"then",function(e,t){var n=this;return new Nr(function(r,i){Ke(CA,n,r,i)}).then(e,t)},{unsafe:!0}),xn(ra,"catch",ic.catch,{unsafe:!0}));try{delete ra.constructor}catch{}Fs&&Fs(ra,ic)}function Tf(e,t,n){return n===void 0&&(n=""),q0(this,void 0,void 0,function(){var r,i,o,a,u,s,l;return G0(this,function(c){switch(c.label){case 0:return t?(e.restoreSelection(),r=e.getMenuConfig("insertVideo"),i=r.onInsertedVideo,o=r.checkVideo,a=r.parseVideoSrc,[4,o(t)]):[2];case 1:return typeof(u=c.sent())=="string"?(e.alert(u,"error"),[2]):u==null?[2]:[4,a(t)];case 2:return(s=c.sent()).trim().indexOf("<iframe ")!==0&&(s=s.replace(/</g,"<").replace(/>/g,">")),l={type:"video",src:s,poster:n,children:[{text:""}]},Promise.resolve().then(function(){P.insertNodes(e,l)}),i(l),[2]}})})}function Py(){return Yk("w-e-insert-video")}pn({global:!0,wrap:!0,forced:Wc},{Promise:Nr}),Bg(Nr,Tr,!1),function(e){var t=Va(e),n=mi.f;Vr&&t&&!t[sA]&&n(t,sA,{configurable:!0,get:function(){return this}})}(Tr),r_=Va(Tr),pn({target:Tr,stat:!0,forced:Wc},{reject:function(e){var t=is(this);return Ke(t.reject,void 0,e),t.promise}}),pn({target:Tr,stat:!0,forced:Wc},{resolve:function(e){return function(t,n){if(Rt(t),Ze(n)&&n.constructor===t)return n;var r=D5.f(t);return(0,r.resolve)(n),r.promise}(this,e)}}),pn({target:Tr,stat:!0,forced:Uae},{all:function(e){var t=this,n=is(t),r=n.resolve,i=n.reject,o=K4(function(){var a=Oo(t.resolve),u=[],s=0,l=1;Fg(e,function(c){var f=s++,d=!1;l++,Ke(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=is(t),r=n.reject,i=K4(function(){var o=Oo(t.resolve);Fg(e,function(a){Ke(o,t,a).then(n.resolve,r)})});return i.error&&r(i.value),n.promise}});var qae=function(){function e(){this.title=q("videoModule.insertVideo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.srcInputId=Py(),this.posterInputId=Py(),this.buttonId=Py()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!R.isCollapsed(n)||!!S.getSelectedElems(t).some(function(r){return S.getNodeType(r)==="pre"||!!t.isVoid(r)})},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var n=this,r=this,i=r.srcInputId,o=r.posterInputId,a=r.buttonId,u=Sa(Dn(q("videoModule.videoSrc"),i,q("videoModule.videoSrcPlaceHolder")),2),s=u[0],l=u[1],c=Sa(Dn(q("videoModule.videoPoster"),o,q("videoModule.videoPosterPlaceHolder")),2),f=c[0],d=c[1],p=O(l),v=O(d),m=Sa(zs(a,q("videoModule.ok")),1)[0];if(this.$content==null){var g=O("<div></div>");g.on("click","#"+a,function(h){return q0(n,void 0,void 0,function(){var $,w;return G0(this,function(C){switch(C.label){case 0:return h.preventDefault(),$=g.find("#"+i).val().trim(),w=g.find("#"+o).val().trim(),[4,Tf(t,$,w)];case 1:return C.sent(),t.hidePanelOrModal(),[2]}})})}),this.$content=g}var y=this.$content;return y.empty(),y.append(s),y.append(f),y.append(m),p.val(""),v.val(""),setTimeout(function(){p.focus()}),y[0]},e}(),Gae=pe([].join),Kae=u5!=Object,Yae=function(e,t){var n=[][e];return!!n&&Je(function(){n.call(null,t||function(){throw 1},1)})}("join",",");pn({target:"Array",proto:!0,forced:Kae||!Yae},{join:function(e){return Gae(Po(this),e===void 0?",":e)}});var Oa,SA,AA,Xae=!Je(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),OA=h5("IE_PROTO"),J4=K.Object,Jae=J4.prototype,Tg=Xae?J4.getPrototypeOf:function(e){var t=Y0(e);if(St(t,OA))return t[OA];var n=t.constructor;return Ve(n)&&t instanceof n?n.prototype:t instanceof J4?Jae:null},Z4=yt("iterator"),f_=!1;[].keys&&("next"in(AA=[].keys())?(SA=Tg(Tg(AA)))!==Object.prototype&&(Oa=SA):f_=!0);var Zae=Oa==null||Je(function(){var e={};return Oa[Z4].call(e)!==e});Zae&&(Oa={}),Ve(Oa[Z4])||xn(Oa,Z4,function(){return this});var A5={IteratorPrototype:Oa,BUGGY_SAFARI_ITERATORS:f_},Qae=A5.IteratorPrototype,eue=function(){return this},tue=Xs.PROPER,nue=Xs.CONFIGURABLE,BA=A5.IteratorPrototype,bp=A5.BUGGY_SAFARI_ITERATORS,oc=yt("iterator"),rue=function(){return this},d_=function(e,t,n,r,i,o,a){(function(y,h,$,w){var C=h+" Iterator";y.prototype=v5(Qae,{next:K0(+!w,$)}),Bg(y,C,!1),Ts[C]=eue})(n,t,r);var u,s,l,c=function(y){if(y===i&&m)return m;if(!bp&&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,v=p[oc]||p["@@iterator"]||i&&p[i],m=!bp&&v||c(i),g=t=="Array"&&p.entries||v;if(g&&(u=Tg(g.call(new e)))!==Object.prototype&&u.next&&(Tg(u)!==BA&&(Fs?Fs(u,BA):Ve(u[oc])||xn(u,oc,rue)),Bg(u,f,!0)),tue&&i=="values"&&v&&v.name!=="values"&&(nue?fi(p,"name","values"):(d=!0,m=function(){return Ke(v,this)})),i)if(s={values:c("values"),keys:o?m:c("keys"),entries:c("entries")},a)for(l in s)(bp||d||!(l in p))&&xn(p,l,s[l]);else pn({target:t,proto:!0,forced:bp||d},s);return p[oc]!==m&&xn(p,oc,m,{name:i}),Ts[t]=m,s},iue=Tn.set,oue=Tn.getterFor("Array Iterator"),Sc=d_(Array,"Array",function(e,t){iue(this,{type:"Array Iterator",target:Po(e),index:0,kind:t})},function(){var e=oue(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");Ts.Arguments=Ts.Array,Hc("keys"),Hc("values"),Hc("entries");var aue=Kk.charAt,uue=Tn.set,sue=Tn.getterFor("String Iterator");d_(String,"String",function(e){uue(this,{type:"String Iterator",string:Hn(e),index:0})},function(){var e,t=sue(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=aue(n,r),t.index+=e.length,{value:e,done:!1})});var p_=function(e,t,n){var r=d5(t);r in e?mi.f(e,r,K0(0,n)):e[r]=n},lue=K.Array,cue=Math.max,h_=wg.f,g_=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],fue=function(e){try{return h_(e)}catch{return function(n,r,i){for(var o=md(n),a=Of(r,o),u=Of(i===void 0?o:i,o),s=lue(cue(u-a,0)),l=0;a<u;a++,l++)p_(s,l,n[a]);return s.length=l,s}(g_)}},due={f:function(e){return g_&&jr(e)=="Window"?fue(e):h_(Po(e))}},FA=Je(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),$p=Object.isExtensible,da=Je(function(){$p(1)})||FA?function(e){return!!Ze(e)&&(!FA||jr(e)!="ArrayBuffer")&&(!$p||$p(e))}:$p,pue=!Je(function(){return Object.isExtensible(Object.preventExtensions({}))}),O5=a5(function(e){var t=mi.f,n=!1,r=f5("meta"),i=0,o=function(u){t(u,r,{value:{objectID:"O"+i++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var u=wg.f,s=pe([].splice),l={};l[r]=1,u(l).length&&(wg.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===r){s(f,d,1);break}return f},pn({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:due.f}))},fastKey:function(u,s){if(!Ze(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!St(u,r)){if(!da(u))return"F";if(!s)return"E";o(u)}return u[r].objectID},getWeakData:function(u,s){if(!St(u,r)){if(!da(u))return!0;if(!s)return!1;o(u)}return u[r].weakData},onFreeze:function(u){return pue&&n&&da(u)&&!St(u,r)&&o(u),u}};J0[r]=!0}),wp=O5.getWeakData,hue=Tn.set,gue=Tn.getterFor,vue=b5.find,mue=b5.findIndex,yue=pe([].splice),bue=0,Ep=function(e){return e.frozen||(e.frozen=new v_)},v_=function(){this.entries=[]},Ny=function(e,t){return vue(e.entries,function(n){return n[0]===t})};v_.prototype={get:function(e){var t=Ny(this,e);if(t)return t[1]},has:function(e){return!!Ny(this,e)},set:function(e,t){var n=Ny(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=mue(this.entries,function(n){return n[0]===e});return~t&&yue(this.entries,t,1),!!~t}};var ac,m_={getConstructor:function(e,t,n,r){var i=e(function(s,l){E5(s,o),hue(s,{type:t,id:bue++,frozen:void 0}),l!=null&&Fg(l,s[r],{that:s,AS_ENTRIES:n})}),o=i.prototype,a=gue(t),u=function(s,l,c){var f=a(s),d=wp(Rt(l),!0);return d===!0?Ep(f).set(l,c):d[f.id]=c,s};return Og(o,{delete:function(s){var l=a(this);if(!Ze(s))return!1;var c=wp(s);return c===!0?Ep(l).delete(s):c&&St(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!Ze(s))return!1;var c=wp(s);return c===!0?Ep(l).has(s):c&&St(c,l.id)}}),Og(o,n?{get:function(s){var l=a(this);if(Ze(s)){var c=wp(s);return c===!0?Ep(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}},Cp=Tn.enforce,$ue=!K.ActiveXObject&&"ActiveXObject"in K,y_=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},wue=function(e,t,n){var r=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=r?"set":"add",a=K[e],u=a&&a.prototype,s=a,l={},c=function(g){var y=pe(u[g]);xn(u,g,g=="add"?function(h){return y(this,h===0?0:h),this}:g=="delete"?function(h){return!(i&&!Ze(h))&&y(this,h===0?0:h)}:g=="get"?function(h){return i&&!Ze(h)?void 0:y(this,h===0?0:h)}:g=="has"?function(h){return!(i&&!Ze(h))&&y(this,h===0?0:h)}:function(h,$){return y(this,h===0?0:h,$),this})};if(Eg(e,!Ve(a)||!(i||u.forEach&&!Je(function(){new a().entries().next()}))))s=n.getConstructor(t,e,r,o),O5.enable();else if(Eg(e,!0)){var f=new s,d=f[o](i?{}:-0,1)!=f,p=Je(function(){f.has(1)}),v=Zk(function(g){new a(g)}),m=!i&&Je(function(){for(var g=new a,y=5;y--;)g[o](y,y);return!g.has(-0)});v||((s=t(function(g,y){E5(g,u);var h=function($,w,C){var D,A;return Fs&&Ve(D=w.constructor)&&D!==C&&Ze(A=D.prototype)&&A!==C.prototype&&Fs($,A),$}(new a,g,s);return y!=null&&Fg(y,h[o],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(p||m)&&(c("delete"),c("has"),r&&c("get")),(m||d)&&c(o),i&&u.clear&&delete u.clear}return l[e]=s,pn({global:!0,forced:s!=a},l),Bg(s,e),i||n.setStrong(s,e,r),s}("WeakMap",y_,m_);if(Nk&&$ue){ac=m_.getConstructor(y_,"WeakMap",!0),O5.enable();var uc=wue.prototype,TA=pe(uc.delete),Dp=pe(uc.has),kA=pe(uc.get),_A=pe(uc.set);Og(uc,{delete:function(e){if(Ze(e)&&!da(e)){var t=Cp(this);return t.frozen||(t.frozen=new ac),TA(this,e)||t.frozen.delete(e)}return TA(this,e)},has:function(e){if(Ze(e)&&!da(e)){var t=Cp(this);return t.frozen||(t.frozen=new ac),Dp(this,e)||t.frozen.has(e)}return Dp(this,e)},get:function(e){if(Ze(e)&&!da(e)){var t=Cp(this);return t.frozen||(t.frozen=new ac),Dp(this,e)?kA(this,e):t.frozen.get(e)}return kA(this,e)},set:function(e,t){if(Ze(e)&&!da(e)){var n=Cp(this);n.frozen||(n.frozen=new ac),Dp(this,e)?_A(this,e,t):n.frozen.set(e,t)}else _A(this,e,t);return this}})}var b_={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Iy=Af("span").classList,PA=Iy&&Iy.constructor&&Iy.constructor.prototype,Eue=PA===Object.prototype?void 0:PA,Ry=yt("iterator"),NA=yt("toStringTag"),jy=Sc.values,$_=function(e,t){if(e){if(e[Ry]!==jy)try{fi(e,Ry,jy)}catch{e[Ry]=jy}if(e[NA]||fi(e,NA,t),b_[t]){for(var n in Sc)if(e[n]!==Sc[n])try{fi(e,n,Sc[n])}catch{e[n]=Sc[n]}}}};for(var Ly in b_)$_(K[Ly]&&K[Ly].prototype,Ly);$_(Eue,"DOMTokenList");var Cue=Xs.EXISTS,Due=mi.f,w_=Function.prototype,xue=pe(w_.toString),E_=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Sue=pe(E_.exec);Vr&&!Cue&&Due(w_,"name",{configurable:!0,get:function(){try{return Sue(E_,xue(this))[1]}catch{return""}}});var Aue=yt("species"),Oue=function(e){return xf>=51||!Je(function(){var t=[];return(t.constructor={})[Aue]=function(){return{foo:1}},t[e](Boolean).foo!==1})}("slice"),Bue=yt("species"),My=K.Array,Fue=Math.max;function C_(e){return e.getMenuConfig("uploadVideo")}pn({target:"Array",proto:!0,forced:!Oue},{slice:function(e,t){var n,r,i,o=Po(this),a=md(o),u=Of(e,a),s=Of(t===void 0?a:t,a);if(Dg(o)&&(n=o.constructor,(y5(n)&&(n===My||Dg(n.prototype))||Ze(n)&&(n=n[Bue])===null)&&(n=void 0),n===My||n===void 0))return Qk(o,u,s);for(r=new(n===void 0?My:n)(Fue(s-u,0)),i=0;u<s;u++,i++)u in o&&p_(r,i,o[u]);return r.length=i,r}});var IA=new WeakMap;function Tue(e,t){return q0(this,void 0,void 0,function(){var n,r,i,o;return G0(this,function(a){switch(a.label){case 0:return n=function(u){var s=IA.get(u);if(s!=null)return s;var l=C_(u),c=l.onSuccess,f=l.onProgress,d=l.onFailed,p=l.customInsert,v=l.onError;return s=ZB(vg(vg({},l),{onProgress:function(m){u.showProgressBar(m),f&&f(m)},onSuccess:function(m,g){if(p)p(g,function(I,M){return Tf(u,I,M)});else{var y=g.errno,h=y===void 0?1:y,$=g.data,w=$===void 0?{}:$;if(h!==0)return console.error("'"+m.name+"' upload failed",g),void d(m,g);var C=w.url,D=C===void 0?"":C,A=w.poster;Tf(u,D,A===void 0?"":A),c(m,g)}},onError:function(m,g,y){var h=m.name;console.error("'"+h+" upload error",g,y),v&&v(m,g,y)}})),IA.set(u,s),s}(e),r=t.name,i=t.type,o=t.size,n.addFile({name:r,type:i,size:o,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}})})}var kue=function(){function e(){this.title=q("videoModule.uploadVideo"),this.iconSvg='<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){var r=this.getMenuConfig(t),i=r.allowedFileTypes,o=i===void 0?[]:i,a=r.customBrowseAndUpload;if(a)a(function(c){return Tf(t,c)});else{var u="";o.length>0&&(u='accept="'+o.join(", ")+'"');var s=O("body"),l=O('<input type="file" '+u+" multiple/>");l.hide(),s.append(l),l.click(),l.on("change",function(){var c=l[0].files;(function(f,d){var p,v;q0(this,void 0,void 0,function(){var m,g,y,h,$,w;return G0(this,function(C){switch(C.label){case 0:if(d==null)return[2];m=Array.prototype.slice.call(d),g=C_(f).customUpload,C.label=1;case 1:C.trys.push([1,9,10,15]),y=Sie(m),C.label=2;case 2:return[4,y.next()];case 3:return(h=C.sent()).done?[3,8]:($=h.value,g?[4,g($,function(D,A){return Tf(f,D,A)})]:[3,5]);case 4:return C.sent(),[3,7];case 5:return[4,Tue(f,$)];case 6:C.sent(),C.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return w=C.sent(),p={error:w},[3,15];case 10:return C.trys.push([10,,13,14]),h&&!h.done&&(v=y.return)?[4,v.call(y)]:[3,12];case 11:C.sent(),C.label=12;case 12:return[3,14];case 13:if(p)throw p.error;return[7];case 14:return[7];case 15:return[2]}})})})(t,c)})}},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!R.isCollapsed(n)||!!S.getSelectedElems(t).some(function(r){return S.getNodeType(r)==="pre"||!!t.isVoid(r)})},e.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadVideo")},e}(),_ue=Xs.PROPER,Q4=RegExp.prototype,D_=Q4.toString,Pue=pe(qk),Nue=Je(function(){return D_.call({source:"a",flags:"b"})!="/a/b"}),Iue=_ue&&D_.name!="toString";function zy(){return Yk("w-e-insert-video")}(Nue||Iue)&&xn(RegExp.prototype,"toString",function(){var e=Rt(this),t=Hn(e.source),n=e.flags;return"/"+t+"/"+Hn(n===void 0&&Df(Q4,e)&&!("flags"in Q4)?Pue(e):n)},{unsafe:!0});var Rue=function(){function e(){this.title=q("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=zy(),this.heightInputId=zy(),this.buttonId=zy()}return e.prototype.getSelectedVideoNode=function(t){return S.getSelectedNodeByType(t,"video")},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedVideoNode(t)==null},e.prototype.getModalPositionNode=function(t){return this.getSelectedVideoNode(t)},e.prototype.getModalContentElem=function(t){var n=this,r=n.widthInputId,i=n.heightInputId,o=n.buttonId,a=Sa(Dn(q("videoModule.width"),r,"auto"),2),u=a[0],s=a[1],l=O(s),c=Sa(Dn(q("videoModule.height"),i,"auto"),2),f=c[0],d=c[1],p=O(d),v=Sa(zs(o,q("videoModule.ok")),1)[0];if(this.$content==null){var m=O("<div></div>");m.on("click","#"+o,function(D){D.preventDefault();var A=m.find("#"+r).val().trim(),I=m.find("#"+i).val().trim(),M=parseInt(A),V=parseInt(I),Y=M?M.toString():"auto",J=V?V.toString():"auto";t.restoreSelection(),P.setNodes(t,{width:Y,height:J},{match:function(Z){return S.checkNodeType(Z,"video")}}),t.hidePanelOrModal()}),this.$content=m}var g=this.$content;g.empty(),g.append(u),g.append(f),g.append(v);var y=this.getSelectedVideoNode(t);if(y==null)return g[0];var h=y.width,$=h===void 0?"auto":h,w=y.height,C=w===void 0?"auto":w;return l.val($),p.val(C),setTimeout(function(){l.focus()}),g[0]},e}(),jue={renderElems:[Boe],elemsToHtml:[Foe],preParseHtml:[Poe],parseElemsHtml:[Hoe],menus:[{key:"insertVideo",factory:function(){return new qae},config:{onInsertedVideo:function(e){},checkVideo:function(e){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new kue},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){},onError:function(e,t,n){}}},{key:"editVideoSize",factory:function(){return new Rue}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(i){return i.type==="video"||t(i)},r.normalizeNode=function(i){var o=Sa(i,2),a=o[0],u=o[1];return S.getNodeType(a)==="video"&&S.isLastNode(r,a)&&P.insertNodes(r,S.genEmptyParagraph(),{at:[u[0]+1]}),n([a,u])},r}};vn("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),vn("zh-CN",{uploadImgModule:{uploadImage:"\u4E0A\u4F20\u56FE\u7247",uploadError:"{{fileName}} \u4E0A\u4F20\u51FA\u9519"}});var RA=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function B5(e){var t={exports:{}};return e(t,t.exports),t.exports}var zi,rh,xp=function(e){return e&&e.Math==Math&&e},G=xp(typeof globalThis=="object"&&globalThis)||xp(typeof window=="object"&&window)||xp(typeof self=="object"&&self)||xp(typeof RA=="object"&&RA)||function(){return this}()||Function("return this")(),Qe=function(e){try{return!!e()}catch{return!0}},Wr=!Qe(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),sc=Function.prototype.call,Le=sc.bind?sc.bind(sc):function(){return sc.apply(sc,arguments)},jA={}.propertyIsEnumerable,LA=Object.getOwnPropertyDescriptor,Lue={f:LA&&!jA.call({1:2},1)?function(e){var t=LA(this,e);return!!t&&t.enumerable}:jA},ev=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},x_=Function.prototype,e$=x_.bind,t$=x_.call,Mue=e$&&e$.bind(t$),Ce=e$?function(e){return e&&Mue(t$,e)}:function(e){return e&&function(){return t$.apply(e,arguments)}},zue=Ce({}.toString),Hue=Ce("".slice),pr=function(e){return Hue(zue(e),8,-1)},Hy=G.Object,Uue=Ce("".split),F5=Qe(function(){return!Hy("z").propertyIsEnumerable(0)})?function(e){return pr(e)=="String"?Uue(e,""):Hy(e)}:Hy,Vue=G.TypeError,kf=function(e){if(e==null)throw Vue("Can't call method on "+e);return e},No=function(e){return F5(kf(e))},We=function(e){return typeof e=="function"},Xe=function(e){return typeof e=="object"?e!==null:We(e)},Wue=function(e){return We(e)?e:void 0},Wa=function(e,t){return arguments.length<2?Wue(G[e]):G[e]&&G[e][t]},_f=Ce({}.isPrototypeOf),as=Wa("navigator","userAgent")||"",MA=G.process,zA=G.Deno,HA=MA&&MA.versions||zA&&zA.version,UA=HA&&HA.v8;UA&&(rh=(zi=UA.split("."))[0]>0&&zi[0]<4?1:+(zi[0]+zi[1])),!rh&&as&&(!(zi=as.match(/Edge\/(\d+)/))||zi[1]>=74)&&(zi=as.match(/Chrome\/(\d+)/))&&(rh=+zi[1]);var Pf=rh,n$=!!Object.getOwnPropertySymbols&&!Qe(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Pf&&Pf<41}),T5=n$&&!Symbol.sham&&typeof Symbol.iterator=="symbol",que=G.Object,r$=T5?function(e){return typeof e=="symbol"}:function(e){var t=Wa("Symbol");return We(t)&&_f(t.prototype,que(e))},Gue=G.String,kg=function(e){try{return Gue(e)}catch{return"Object"}},Kue=G.TypeError,Bo=function(e){if(We(e))return e;throw Kue(kg(e)+" is not a function")},Nf=function(e,t){var n=e[t];return n==null?void 0:Bo(n)},Yue=G.TypeError,Xue=Object.defineProperty,k5=function(e,t){try{Xue(G,e,{value:t,configurable:!0,writable:!0})}catch{G[e]=t}return t},po=G["__core-js_shared__"]||k5("__core-js_shared__",{}),_5=B5(function(e){(e.exports=function(t,n){return po[t]||(po[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),Jue=G.Object,P5=function(e){return Jue(kf(e))},Zue=Ce({}.hasOwnProperty),At=Object.hasOwn||function(e,t){return Zue(P5(e),t)},Que=0,ese=Math.random(),tse=Ce(1 .toString),N5=function(e){return"Symbol("+(e===void 0?"":e)+")_"+tse(++Que+ese,36)},lc=_5("wks"),Ba=G.Symbol,VA=Ba&&Ba.for,nse=T5?Ba:Ba&&Ba.withoutSetter||N5,bt=function(e){if(!At(lc,e)||!n$&&typeof lc[e]!="string"){var t="Symbol."+e;n$&&At(Ba,e)?lc[e]=Ba[e]:lc[e]=T5&&VA?VA(t):nse(t)}return lc[e]},rse=G.TypeError,ise=bt("toPrimitive"),ose=function(e,t){if(!Xe(e)||r$(e))return e;var n,r=Nf(e,ise);if(r){if(t===void 0&&(t="default"),n=Le(r,e,t),!Xe(n)||r$(n))return n;throw rse("Can't convert object to primitive value")}return t===void 0&&(t="number"),function(i,o){var a,u;if(o==="string"&&We(a=i.toString)&&!Xe(u=Le(a,i))||We(a=i.valueOf)&&!Xe(u=Le(a,i))||o!=="string"&&We(a=i.toString)&&!Xe(u=Le(a,i)))return u;throw Yue("Can't convert object to primitive value")}(e,t)},I5=function(e){var t=ose(e,"string");return r$(t)?t:t+""},i$=G.document,ase=Xe(i$)&&Xe(i$.createElement),If=function(e){return ase?i$.createElement(e):{}},S_=!Wr&&!Qe(function(){return Object.defineProperty(If("div"),"a",{get:function(){return 7}}).a!=7}),WA=Object.getOwnPropertyDescriptor,R5={f:Wr?WA:function(e,t){if(e=No(e),t=I5(t),S_)try{return WA(e,t)}catch{}if(At(e,t))return ev(!Le(Lue.f,e,t),e[t])}},use=G.String,sse=G.TypeError,jt=function(e){if(Xe(e))return e;throw sse(use(e)+" is not an object")},lse=G.TypeError,qA=Object.defineProperty,yi={f:Wr?qA:function(e,t,n){if(jt(e),t=I5(t),jt(n),S_)try{return qA(e,t,n)}catch{}if("get"in n||"set"in n)throw lse("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Lr=Wr?function(e,t,n){return yi.f(e,t,ev(1,n))}:function(e,t,n){return e[t]=n,e},cse=Ce(Function.toString);We(po.inspectSource)||(po.inspectSource=function(e){return cse(e)});var _g,qc,Pg,tv=po.inspectSource,GA=G.WeakMap,A_=We(GA)&&/native code/.test(tv(GA)),KA=_5("keys"),j5=function(e){return KA[e]||(KA[e]=N5(e))},nv={},o$=G.TypeError,fse=G.WeakMap;if(A_||po.state){var Zo=po.state||(po.state=new fse),dse=Ce(Zo.get),YA=Ce(Zo.has),pse=Ce(Zo.set);_g=function(e,t){if(YA(Zo,e))throw new o$("Object already initialized");return t.facade=e,pse(Zo,e,t),t},qc=function(e){return dse(Zo,e)||{}},Pg=function(e){return YA(Zo,e)}}else{var Tu=j5("state");nv[Tu]=!0,_g=function(e,t){if(At(e,Tu))throw new o$("Object already initialized");return t.facade=e,Lr(e,Tu,t),t},qc=function(e){return At(e,Tu)?e[Tu]:{}},Pg=function(e){return At(e,Tu)}}var kn={set:_g,get:qc,has:Pg,enforce:function(e){return Pg(e)?qc(e):_g(e,{})},getterFor:function(e){return function(t){var n;if(!Xe(t)||(n=qc(t)).type!==e)throw o$("Incompatible receiver, "+e+" required");return n}}},O_=Function.prototype,hse=Wr&&Object.getOwnPropertyDescriptor,Uy=At(O_,"name"),bd={EXISTS:Uy,PROPER:Uy&&function(){}.name==="something",CONFIGURABLE:Uy&&(!Wr||Wr&&hse(O_,"name").configurable)},Sn=B5(function(e){var t=bd.CONFIGURABLE,n=kn.get,r=kn.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;We(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!At(u,"name")||t&&u.name!==p)&&Lr(u,"name",p),(l=r(u)).source||(l.source=i.join(typeof p=="string"?p:""))),o!==G?(c?!d&&o[a]&&(f=!0):delete o[a],f?o[a]=u:Lr(o,a,u)):f?o[a]=u:k5(a,u)})(Function.prototype,"toString",function(){return We(this)&&n(this).source||tv(this)})}),gse=Math.ceil,vse=Math.floor,L5=function(e){var t=+e;return t!=t||t===0?0:(t>0?vse:gse)(t)},mse=Math.max,yse=Math.min,Rf=function(e,t){var n=L5(e);return n<0?mse(n+t,0):yse(n,t)},bse=Math.min,B_=function(e){return e>0?bse(L5(e),9007199254740991):0},$d=function(e){return B_(e.length)},XA=function(e){return function(t,n,r){var i,o=No(t),a=$d(o),u=Rf(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}},$se={includes:XA(!0),indexOf:XA(!1)}.indexOf,JA=Ce([].push),F_=function(e,t){var n,r=No(e),i=0,o=[];for(n in r)!At(nv,n)&&At(r,n)&&JA(o,n);for(;t.length>i;)At(r,n=t[i++])&&(~$se(o,n)||JA(o,n));return o},Ng=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],wse=Ng.concat("length","prototype"),Ig={f:Object.getOwnPropertyNames||function(e){return F_(e,wse)}},Ese={f:Object.getOwnPropertySymbols},Cse=Ce([].concat),Dse=Wa("Reflect","ownKeys")||function(e){var t=Ig.f(jt(e)),n=Ese.f;return n?Cse(t,n(e)):t},xse=function(e,t){for(var n=Dse(t),r=yi.f,i=R5.f,o=0;o<n.length;o++){var a=n[o];At(e,a)||r(e,a,i(t,a))}},Sse=/#|\.prototype\./,wd=function(e,t){var n=Ose[Ase(e)];return n==Fse||n!=Bse&&(We(t)?Qe(t):!!t)},Ase=wd.normalize=function(e){return String(e).replace(Sse,".").toLowerCase()},Ose=wd.data={},Bse=wd.NATIVE="N",Fse=wd.POLYFILL="P",Rg=wd,Tse=R5.f,Ir=function(e,t){var n,r,i,o,a,u=e.target,s=e.global,l=e.stat;if(n=s?G:l?G[u]||k5(u,{}):(G[u]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=Tse(n,r))&&a.value:n[r],!Rg(s?r:u+(l?".":"#")+r,e.forced)&&i!==void 0){if(typeof o==typeof i)continue;xse(o,i)}(e.sham||i&&i.sham)&&Lr(o,"sham",!0),Sn(n,r,o,e)}},jg=Array.isArray||function(e){return pr(e)=="Array"},T_={};T_[bt("toStringTag")]="z";var ZA,M5=String(T_)==="[object z]",kse=bt("toStringTag"),_se=G.Object,Pse=pr(function(){return arguments}())=="Arguments",rv=M5?pr:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(i,o){try{return i[o]}catch{}}(t=_se(e),kse))=="string"?n:Pse?pr(t):(r=pr(t))=="Object"&&We(t.callee)?"Arguments":r},k_=function(){},Nse=[],__=Wa("Reflect","construct"),z5=/^\s*(?:class|function)\b/,Ise=Ce(z5.exec),Rse=!z5.exec(k_),cc=function(e){if(!We(e))return!1;try{return __(k_,Nse,e),!0}catch{return!1}},H5=!__||Qe(function(){var e;return cc(cc.call)||!cc(Object)||!cc(function(){e=!0})||e})?function(e){if(!We(e))return!1;switch(rv(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Rse||!!Ise(z5,tv(e))}:cc,P_=function(e,t,n){var r=I5(t);r in e?yi.f(e,r,ev(0,n)):e[r]=n},jse=bt("species"),N_=Ce([].slice),Lse=(ZA="slice",Pf>=51||!Qe(function(){var e=[];return(e.constructor={})[jse]=function(){return{foo:1}},e[ZA](Boolean).foo!==1})),Mse=bt("species"),Vy=G.Array,zse=Math.max;Ir({target:"Array",proto:!0,forced:!Lse},{slice:function(e,t){var n,r,i,o=No(this),a=$d(o),u=Rf(e,a),s=Rf(t===void 0?a:t,a);if(jg(o)&&(n=o.constructor,(H5(n)&&(n===Vy||jg(n.prototype))||Xe(n)&&(n=n[Mse])===null)&&(n=void 0),n===Vy||n===void 0))return N_(o,u,s);for(r=new(n===void 0?Vy:n)(zse(s-u,0)),i=0;u<s;u++,i++)u in o&&P_(r,i,o[u]);return r.length=i,r}});var Hse=M5?{}.toString:function(){return"[object "+rv(this)+"]"};M5||Sn(Object.prototype,"toString",Hse,{unsafe:!0});var Sp,Use=G.String,ho=function(e){if(rv(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Use(e)},I_=function(){var e=jt(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},U5=G.RegExp,a$=Qe(function(){var e=U5("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),Vse=a$||Qe(function(){return!U5("a","y").sticky}),R_={BROKEN_CARET:a$||Qe(function(){var e=U5("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:Vse,UNSUPPORTED_Y:a$},Wse=Object.keys||function(e){return F_(e,Ng)},qse=Wr?Object.defineProperties:function(e,t){jt(e);for(var n,r=No(t),i=Wse(t),o=i.length,a=0;o>a;)yi.f(e,n=i[a++],r[n]);return e},u$=Wa("document","documentElement"),j_=j5("IE_PROTO"),Wy=function(){},L_=function(e){return"<script>"+e+"<\/script>"},QA=function(e){e.write(L_("")),e.close();var t=e.parentWindow.Object;return e=null,t},ih=function(){try{Sp=new ActiveXObject("htmlfile")}catch{}var e,t;ih=typeof document<"u"?document.domain&&Sp?QA(Sp):((t=If("iframe")).style.display="none",u$.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(L_("document.F=Object")),e.close(),e.F):QA(Sp);for(var n=Ng.length;n--;)delete ih.prototype[Ng[n]];return ih()};nv[j_]=!0;var e7,qy,V5=Object.create||function(e,t){var n;return e!==null?(Wy.prototype=jt(e),n=new Wy,Wy.prototype=null,n[j_]=e):n=ih(),t===void 0?n:qse(n,t)},Gse=G.RegExp,Kse=Qe(function(){var e=Gse(".","s");return!(e.dotAll&&e.exec(`
|
||
`)&&e.flags==="s")}),Yse=G.RegExp,Xse=Qe(function(){var e=Yse("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Jse=kn.get,Zse=_5("native-string-replace",String.prototype.replace),Lg=RegExp.prototype.exec,s$=Lg,Qse=Ce("".charAt),ele=Ce("".indexOf),tle=Ce("".replace),Gy=Ce("".slice),Ky=(qy=/b*/g,Le(Lg,e7=/a/,"a"),Le(Lg,qy,"a"),e7.lastIndex!==0||qy.lastIndex!==0),t7=R_.BROKEN_CARET,Yy=/()??/.exec("")[1]!==void 0;(Ky||Yy||t7||Kse||Xse)&&(s$=function(e){var t,n,r,i,o,a,u,s=this,l=Jse(s),c=ho(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Le(s$,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=t7&&s.sticky,v=Le(I_,s),m=s.source,g=0,y=c;if(p&&(v=tle(v,"y",""),ele(v,"g")===-1&&(v+="g"),y=Gy(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Qse(c,s.lastIndex-1)!==`
|
||
`)&&(m="(?: "+m+")",y=" "+y,g++),n=new RegExp("^(?:"+m+")",v)),Yy&&(n=new RegExp("^"+m+"$(?!\\s)",v)),Ky&&(r=s.lastIndex),i=Le(Lg,p?n:s,y),p?i?(i.input=Gy(i.input,g),i[0]=Gy(i[0],g),i.index=s.lastIndex,s.lastIndex+=i[0].length):s.lastIndex=0:Ky&&i&&(s.lastIndex=s.global?i.index+i[0].length:r),Yy&&i&&i.length>1&&Le(Zse,i[0],n,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(i[o]=void 0)}),i&&d)for(i.groups=a=V5(null),o=0;o<d.length;o++)a[(u=d[o])[0]]=i[u[1]];return i});var jf=s$;Ir({target:"RegExp",proto:!0,forced:/./.exec!==jf},{exec:jf});var W5=Function.prototype,n7=W5.apply,nle=W5.bind,r7=W5.call,M_=typeof Reflect=="object"&&Reflect.apply||(nle?r7.bind(n7):function(){return r7.apply(n7,arguments)}),rle=bt("species"),Xy=RegExp.prototype,ile=bt("match"),ole=G.TypeError,ale=bt("species"),z_=function(e,t){var n,r=jt(e).constructor;return r===void 0||(n=jt(r)[ale])==null?t:function(i){if(H5(i))return i;throw ole(kg(i)+" is not a constructor")}(n)},ule=Ce("".charAt),i7=Ce("".charCodeAt),sle=Ce("".slice),o7=function(e){return function(t,n){var r,i,o=ho(kf(t)),a=L5(n),u=o.length;return a<0||a>=u?e?"":void 0:(r=i7(o,a))<55296||r>56319||a+1===u||(i=i7(o,a+1))<56320||i>57343?e?ule(o,a):r:e?sle(o,a,a+2):i-56320+(r-55296<<10)+65536}},H_={codeAt:o7(!1),charAt:o7(!0)},lle=H_.charAt,cle=function(e,t,n){return t+(n?lle(e,t).length:1)},fle=G.Array,dle=Math.max,l$=function(e,t,n){for(var r=$d(e),i=Rf(t,r),o=Rf(n===void 0?r:n,r),a=fle(dle(o-i,0)),u=0;i<o;i++,u++)P_(a,u,e[i]);return a.length=u,a},ple=G.TypeError,a7=function(e,t){var n=e.exec;if(We(n)){var r=Le(n,e,t);return r!==null&&jt(r),r}if(pr(e)==="RegExp")return Le(jf,e,t);throw ple("RegExp#exec called on incompatible receiver")},ku=R_.UNSUPPORTED_Y,hle=Math.min,U_=[].push,gle=Ce(/./.exec),_u=Ce(U_),fc=Ce("".slice);(function(e,t,n,r){var i=bt(e),o=!Qe(function(){var l={};return l[i]=function(){return 7},""[e](l)!=7}),a=o&&!Qe(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[rle]=function(){return c},c.flags="",c[i]=/./[i]),c.exec=function(){return l=!0,null},c[i](""),!l});if(!o||!a||n){var u=Ce(/./[i]),s=t(i,""[e],function(l,c,f,d,p){var v=Ce(l),m=c.exec;return m===jf||m===Xy.exec?o&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});Sn(String.prototype,e,s[0]),Sn(Xy,i,s[1])}r&&Lr(Xy[i],"sham",!0)})("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,u,s=ho(kf(this)),l=o===void 0?4294967295:o>>>0;if(l===0)return[];if(i===void 0)return[s];if(!Xe(a=i)||!((u=a[ile])!==void 0?u:pr(a)=="RegExp"))return Le(t,s,i,l);for(var c,f,d,p=[],v=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(i.sticky?"y":""),m=0,g=new RegExp(i.source,v+"g");(c=Le(jf,g,s))&&!((f=g.lastIndex)>m&&(_u(p,fc(s,m,c.index)),c.length>1&&c.index<s.length&&M_(U_,p,l$(c,1)),d=c[0].length,m=f,p.length>=l));)g.lastIndex===c.index&&g.lastIndex++;return m===s.length?!d&&gle(g,"")||_u(p,""):_u(p,fc(s,m)),p.length>l?l$(p,0,l):p}:"0".split(void 0,0).length?function(i,o){return i===void 0&&o===0?[]:Le(t,this,i,o)}:t,[function(i,o){var a=kf(this),u=i==null?void 0:Nf(i,e);return u?Le(u,i,a,o):Le(r,ho(a),i,o)},function(i,o){var a=jt(this),u=ho(i),s=n(r,a,u,o,r!==t);if(s.done)return s.value;var l=z_(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 a7(d,u)===null?[u]:[];for(var v=0,m=0,g=[];m<u.length;){d.lastIndex=ku?0:m;var y,h=a7(d,ku?fc(u,m):u);if(h===null||(y=hle(B_(d.lastIndex+(ku?m:0)),u.length))===v)m=cle(u,m,c);else{if(_u(g,fc(u,v,m)),g.length===p)return g;for(var $=1;$<=h.length-1;$++)if(_u(g,h[$]),g.length===p)return g;m=v=y}}return _u(g,fc(u,v)),g}]},!!Qe(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),ku);/*! *****************************************************************************
|
||
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 Mg=function(){return Mg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Mg.apply(this,arguments)};function q5(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(l){try{s(r.next(l))}catch(c){o(c)}}function u(l){try{s(r.throw(l))}catch(c){o(c)}}function s(l){var c;l.done?i(l.value):(c=l.value,c instanceof n?c:new n(function(f){f(c)})).then(a,u)}s((r=r.apply(e,t||[])).next())})}function G5(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(s){return function(l){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&c[0]?r.return:c[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,c[1])).done)return i;switch(r=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!((i=i.length>0&&i[i.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){a.label=c[1];break}if(c[0]===6&&a.label<i[1]){a.label=i[1],i=c;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(c);break}i[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(f){c=[6,f],r=0}finally{n=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([s,l])}}}function vle(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function mle(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=vle(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(i){t[i]=e[i]&&function(o){return new Promise(function(a,u){(function(s,l,c,f){Promise.resolve(f).then(function(d){s({value:d,done:c})},l)})(a,u,(o=e[i](o)).done,o.value)})}}}var c$=bt("unscopables"),f$=Array.prototype;f$[c$]==null&&yi.f(f$,c$,{configurable:!0,value:V5(null)});var Fa,u7,s7,Jy=function(e){f$[c$][e]=!0},ks={},yle=!Qe(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),l7=j5("IE_PROTO"),d$=G.Object,ble=d$.prototype,zg=yle?d$.getPrototypeOf:function(e){var t=P5(e);if(At(t,l7))return t[l7];var n=t.constructor;return We(n)&&t instanceof n?n.prototype:t instanceof d$?ble:null},p$=bt("iterator"),V_=!1;[].keys&&("next"in(s7=[].keys())?(u7=zg(zg(s7)))!==Object.prototype&&(Fa=u7):V_=!0);var $le=Fa==null||Qe(function(){var e={};return Fa[p$].call(e)!==e});$le&&(Fa={}),We(Fa[p$])||Sn(Fa,p$,function(){return this});var K5={IteratorPrototype:Fa,BUGGY_SAFARI_ITERATORS:V_},wle=yi.f,c7=bt("toStringTag"),Hg=function(e,t,n){e&&!At(e=n?e:e.prototype,c7)&&wle(e,c7,{configurable:!0,value:t})},Ele=K5.IteratorPrototype,Cle=function(){return this},Dle=G.String,xle=G.TypeError,_s=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Ce(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,i){return jt(r),function(o){if(typeof o=="object"||We(o))return o;throw xle("Can't set "+Dle(o)+" as a prototype")}(i),t?e(r,i):r.__proto__=i,r}}():void 0),Sle=bd.PROPER,Ale=bd.CONFIGURABLE,f7=K5.IteratorPrototype,Ap=K5.BUGGY_SAFARI_ITERATORS,dc=bt("iterator"),Ole=function(){return this},W_=function(e,t,n,r,i,o,a){(function(y,h,$,w){var C=h+" Iterator";y.prototype=V5(Ele,{next:ev(+!w,$)}),Hg(y,C,!1),ks[C]=Cle})(n,t,r);var u,s,l,c=function(y){if(y===i&&m)return m;if(!Ap&&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,v=p[dc]||p["@@iterator"]||i&&p[i],m=!Ap&&v||c(i),g=t=="Array"&&p.entries||v;if(g&&(u=zg(g.call(new e)))!==Object.prototype&&u.next&&(zg(u)!==f7&&(_s?_s(u,f7):We(u[dc])||Sn(u,dc,Ole)),Hg(u,f,!0)),Sle&&i=="values"&&v&&v.name!=="values"&&(Ale?Lr(p,"name","values"):(d=!0,m=function(){return Le(v,this)})),i)if(s={values:c("values"),keys:o?m:c("keys"),entries:c("entries")},a)for(l in s)(Ap||d||!(l in p))&&Sn(p,l,s[l]);else Ir({target:t,proto:!0,forced:Ap||d},s);return p[dc]!==m&&Sn(p,dc,m,{name:i}),ks[t]=m,s},Ble=kn.set,Fle=kn.getterFor("Array Iterator"),Ac=W_(Array,"Array",function(e,t){Ble(this,{type:"Array Iterator",target:No(e),index:0,kind:t})},function(){var e=Fle(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");ks.Arguments=ks.Array,Jy("keys"),Jy("values"),Jy("entries");var Tle=H_.charAt,kle=kn.set,_le=kn.getterFor("String Iterator");W_(String,"String",function(e){kle(this,{type:"String Iterator",string:ho(e),index:0})},function(){var e,t=_le(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Tle(n,r),t.index+=e.length,{value:e,done:!1})});var Ug=function(e,t,n){for(var r in t)Sn(e,r,t[r],n);return e},d7=Ig.f,p7=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Ple={f:function(e){return p7&&pr(e)=="Window"?function(t){try{return d7(t)}catch{return l$(p7)}}(e):d7(No(e))}},h7=Qe(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),Op=Object.isExtensible,pa=Qe(function(){Op(1)})||h7?function(e){return!!Xe(e)&&(!h7||pr(e)!="ArrayBuffer")&&(!Op||Op(e))}:Op,Nle=!Qe(function(){return Object.isExtensible(Object.preventExtensions({}))}),Y5=B5(function(e){var t=yi.f,n=!1,r=N5("meta"),i=0,o=function(u){t(u,r,{value:{objectID:"O"+i++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var u=Ig.f,s=Ce([].splice),l={};l[r]=1,u(l).length&&(Ig.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===r){s(f,d,1);break}return f},Ir({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Ple.f}))},fastKey:function(u,s){if(!Xe(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!At(u,r)){if(!pa(u))return"F";if(!s)return"E";o(u)}return u[r].objectID},getWeakData:function(u,s){if(!At(u,r)){if(!pa(u))return!0;if(!s)return!1;o(u)}return u[r].weakData},onFreeze:function(u){return Nle&&n&&pa(u)&&!At(u,r)&&o(u),u}};nv[r]=!0}),g7=Ce(Ce.bind),Lf=function(e,t){return Bo(e),t===void 0?e:g7?g7(e,t):function(){return e.apply(t,arguments)}},Ile=bt("iterator"),Rle=Array.prototype,jle=bt("iterator"),v7=function(e){if(e!=null)return Nf(e,jle)||Nf(e,"@@iterator")||ks[rv(e)]},Lle=G.TypeError,m7=function(e,t,n){var r,i;jt(e);try{if(!(r=Nf(e,"return"))){if(t==="throw")throw n;return n}r=Le(r,e)}catch(o){i=!0,r=o}if(t==="throw")throw n;if(i)throw r;return jt(r),n},Mle=G.TypeError,oh=function(e,t){this.stopped=e,this.result=t},y7=oh.prototype,Vg=function(e,t,n){var r,i,o,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),v=!(!n||!n.INTERRUPTED),m=Lf(t,f),g=function(h){return r&&m7(r,"normal",h),new oh(!0,h)},y=function(h){return d?(jt(h),v?m(h[0],h[1],g):m(h[0],h[1])):v?m(h,g):m(h)};if(p)r=e;else{if(!(i=v7(e)))throw Mle(kg(e)+" is not iterable");if((c=i)!==void 0&&(ks.Array===c||Rle[Ile]===c)){for(o=0,a=$d(e);a>o;o++)if((u=y(e[o]))&&_f(y7,u))return u;return new oh(!1)}r=function(h,$){var w=arguments.length<2?v7(h):$;if(Bo(w))return jt(Le(w,h));throw Lle(kg(h)+" is not iterable")}(e,i)}for(s=r.next;!(l=Le(s,r)).done;){try{u=y(l.value)}catch(h){m7(r,"throw",h)}if(typeof u=="object"&&u&&_f(y7,u))return u}return new oh(!1)},zle=G.TypeError,X5=function(e,t){if(_f(t,e))return e;throw zle("Incorrect invocation")},q_=bt("iterator"),G_=!1;try{var Hle=0,b7={next:function(){return{done:!!Hle++}},return:function(){G_=!0}};b7[q_]=function(){return this},Array.from(b7,function(){throw 2})}catch{}var K_=function(e,t){if(!t&&!G_)return!1;var n=!1;try{var r={};r[q_]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},Ule=bt("species"),$7=G.Array,Vle=function(e,t){return new(function(n){var r;return jg(n)&&(r=n.constructor,(H5(r)&&(r===$7||jg(r.prototype))||Xe(r)&&(r=r[Ule])===null)&&(r=void 0)),r===void 0?$7:r}(e))(t===0?0:t)},w7=Ce([].push),Hi=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,v=P5(s),m=F5(v),g=Lf(l,c),y=$d(m),h=0,$=f||Vle,w=t?$(s,y):n||a?$(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),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:w7(w,d)}else switch(e){case 4:return!1;case 7:w7(w,d)}return o?-1:r||i?i:w}},J5={forEach:Hi(0),map:Hi(1),filter:Hi(2),some:Hi(3),every:Hi(4),find:Hi(5),findIndex:Hi(6),filterReject:Hi(7)},Bp=Y5.getWeakData,Wle=kn.set,qle=kn.getterFor,Gle=J5.find,Kle=J5.findIndex,Yle=Ce([].splice),Xle=0,Fp=function(e){return e.frozen||(e.frozen=new Y_)},Y_=function(){this.entries=[]},Zy=function(e,t){return Gle(e.entries,function(n){return n[0]===t})};Y_.prototype={get:function(e){var t=Zy(this,e);if(t)return t[1]},has:function(e){return!!Zy(this,e)},set:function(e,t){var n=Zy(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Kle(this.entries,function(n){return n[0]===e});return~t&&Yle(this.entries,t,1),!!~t}};var pc,X_={getConstructor:function(e,t,n,r){var i=e(function(s,l){X5(s,o),Wle(s,{type:t,id:Xle++,frozen:void 0}),l!=null&&Vg(l,s[r],{that:s,AS_ENTRIES:n})}),o=i.prototype,a=qle(t),u=function(s,l,c){var f=a(s),d=Bp(jt(l),!0);return d===!0?Fp(f).set(l,c):d[f.id]=c,s};return Ug(o,{delete:function(s){var l=a(this);if(!Xe(s))return!1;var c=Bp(s);return c===!0?Fp(l).delete(s):c&&At(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!Xe(s))return!1;var c=Bp(s);return c===!0?Fp(l).has(s):c&&At(c,l.id)}}),Ug(o,n?{get:function(s){var l=a(this);if(Xe(s)){var c=Bp(s);return c===!0?Fp(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}},Tp=kn.enforce,Jle=!G.ActiveXObject&&"ActiveXObject"in G,J_=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Zle=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=Ce(u[g]);Sn(u,g,g=="add"?function(h){return y(this,h===0?0:h),this}:g=="delete"?function(h){return!(i&&!Xe(h))&&y(this,h===0?0:h)}:g=="get"?function(h){return i&&!Xe(h)?void 0:y(this,h===0?0:h)}:g=="has"?function(h){return!(i&&!Xe(h))&&y(this,h===0?0:h)}:function(h,$){return y(this,h===0?0:h,$),this})};if(Rg(e,!We(a)||!(i||u.forEach&&!Qe(function(){new a().entries().next()}))))s=n.getConstructor(t,e,r,o),Y5.enable();else if(Rg(e,!0)){var f=new s,d=f[o](i?{}:-0,1)!=f,p=Qe(function(){f.has(1)}),v=K_(function(g){new a(g)}),m=!i&&Qe(function(){for(var g=new a,y=5;y--;)g[o](y,y);return!g.has(-0)});v||((s=t(function(g,y){X5(g,u);var h=function($,w,C){var D,A;return _s&&We(D=w.constructor)&&D!==C&&Xe(A=D.prototype)&&A!==C.prototype&&_s($,A),$}(new a,g,s);return y!=null&&Vg(y,h[o],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(p||m)&&(c("delete"),c("has"),r&&c("get")),(m||d)&&c(o),i&&u.clear&&delete u.clear}return l[e]=s,Ir({global:!0,forced:s!=a},l),Hg(s,e),i||n.setStrong(s,e,r),s}("WeakMap",J_,X_);if(A_&&Jle){pc=X_.getConstructor(J_,"WeakMap",!0),Y5.enable();var hc=Zle.prototype,E7=Ce(hc.delete),kp=Ce(hc.has),C7=Ce(hc.get),D7=Ce(hc.set);Ug(hc,{delete:function(e){if(Xe(e)&&!pa(e)){var t=Tp(this);return t.frozen||(t.frozen=new pc),E7(this,e)||t.frozen.delete(e)}return E7(this,e)},has:function(e){if(Xe(e)&&!pa(e)){var t=Tp(this);return t.frozen||(t.frozen=new pc),kp(this,e)||t.frozen.has(e)}return kp(this,e)},get:function(e){if(Xe(e)&&!pa(e)){var t=Tp(this);return t.frozen||(t.frozen=new pc),kp(this,e)?C7(this,e):t.frozen.get(e)}return C7(this,e)},set:function(e,t){if(Xe(e)&&!pa(e)){var n=Tp(this);n.frozen||(n.frozen=new pc),kp(this,e)?D7(this,e,t):n.frozen.set(e,t)}else D7(this,e,t);return this}})}var Wg={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},Qy=If("span").classList,x7=Qy&&Qy.constructor&&Qy.constructor.prototype,Z_=x7===Object.prototype?void 0:x7,e2=bt("iterator"),S7=bt("toStringTag"),t2=Ac.values,Q_=function(e,t){if(e){if(e[e2]!==t2)try{Lr(e,e2,t2)}catch{e[e2]=t2}if(e[S7]||Lr(e,S7,t),Wg[t]){for(var n in Ac)if(e[n]!==Ac[n])try{Lr(e,n,Ac[n])}catch{e[n]=Ac[n]}}}};for(var n2 in Wg)Q_(G[n2]&&G[n2].prototype,n2);Q_(Z_,"DOMTokenList");var Qle=bd.EXISTS,ece=yi.f,eP=Function.prototype,tce=Ce(eP.toString),tP=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,nce=Ce(tP.exec);Wr&&!Qle&&ece(eP,"name",{configurable:!0,get:function(){try{return nce(tP,tce(this))[1]}catch{return""}}});var nP=function(e,t){var n=[][e];return!!n&&Qe(function(){n.call(null,t||function(){throw 1},1)})},rce=J5.forEach,r2=nP("forEach")?[].forEach:function(e){return rce(this,e,arguments.length>1?arguments[1]:void 0)},rP=function(e){if(e&&e.forEach!==r2)try{Lr(e,"forEach",r2)}catch{e.forEach=r2}};for(var i2 in Wg)Wg[i2]&&rP(G[i2]&&G[i2].prototype);rP(Z_);var Mf,Pu,A7,o2,qg=G.Promise,O7=bt("species"),iP=/(?:ipad|iphone|ipod).*applewebkit/i.test(as),go=pr(G.process)=="process",h$=G.setImmediate,g$=G.clearImmediate,ice=G.process,a2=G.Dispatch,oce=G.Function,B7=G.MessageChannel,ace=G.String,u2=0,Gc={};try{Mf=G.location}catch{}var Z5=function(e){if(At(Gc,e)){var t=Gc[e];delete Gc[e],t()}},s2=function(e){return function(){Z5(e)}},F7=function(e){Z5(e.data)},T7=function(e){G.postMessage(ace(e),Mf.protocol+"//"+Mf.host)};h$&&g$||(h$=function(e){var t=N_(arguments,1);return Gc[++u2]=function(){M_(We(e)?e:oce(e),void 0,t)},Pu(u2),u2},g$=function(e){delete Gc[e]},go?Pu=function(e){ice.nextTick(s2(e))}:a2&&a2.now?Pu=function(e){a2.now(s2(e))}:B7&&!iP?(o2=(A7=new B7).port2,A7.port1.onmessage=F7,Pu=Lf(o2.postMessage,o2)):G.addEventListener&&We(G.postMessage)&&!G.importScripts&&Mf&&Mf.protocol!=="file:"&&!Qe(T7)?(Pu=T7,G.addEventListener("message",F7,!1)):Pu="onreadystatechange"in If("script")?function(e){u$.appendChild(If("script")).onreadystatechange=function(){u$.removeChild(this),Z5(e)}}:function(e){setTimeout(s2(e),0)});var gc,la,Kc,Vu,l2,c2,f2,k7,oP={set:h$,clear:g$},uce=/ipad|iphone|ipod/i.test(as)&&G.Pebble!==void 0,sce=/web0s(?!.*chrome)/i.test(as),lce=R5.f,d2=oP.set,_7=G.MutationObserver||G.WebKitMutationObserver,P7=G.document,N7=G.process,_p=G.Promise,I7=lce(G,"queueMicrotask"),aP=I7&&I7.value;aP||(gc=function(){var e,t;for(go&&(e=N7.domain)&&e.exit();la;){t=la.fn,la=la.next;try{t()}catch(n){throw la?Vu():Kc=void 0,n}}Kc=void 0,e&&e.enter()},iP||go||sce||!_7||!P7?!uce&&_p&&_p.resolve?((f2=_p.resolve(void 0)).constructor=_p,k7=Lf(f2.then,f2),Vu=function(){k7(gc)}):go?Vu=function(){N7.nextTick(gc)}:(d2=Lf(d2,G),Vu=function(){d2(gc)}):(l2=!0,c2=P7.createTextNode(""),new _7(gc).observe(c2,{characterData:!0}),Vu=function(){c2.data=l2=!l2}));var p2,R7,uP,j7,sP=aP||function(e){var t={fn:e,next:void 0};Kc&&(Kc.next=t),la||(la=t,Vu()),Kc=t},cce=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=Bo(t),this.reject=Bo(n)},Q5={f:function(e){return new cce(e)}},v$=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},fce=typeof window=="object",lP=oP.set,dce=bt("species"),kr="Promise",L7=kn.getterFor(kr),pce=kn.set,hce=kn.getterFor(kr),ia=qg&&qg.prototype,Rr=qg,vc=ia,cP=G.TypeError,m$=G.document,eE=G.process,us=Q5.f,gce=us,vce=!!(m$&&m$.createEvent&&G.dispatchEvent),fP=We(G.PromiseRejectionEvent),dP=!1,Yc=Rg(kr,function(){var e=tv(Rr),t=e!==String(Rr);if(!t&&Pf===66)return!0;if(Pf>=51&&/native code/.test(e))return!1;var n=new Rr(function(i){i(1)}),r=function(i){i(function(){},function(){})};return(n.constructor={})[dce]=r,!(dP=n.then(function(){})instanceof r)||!t&&fce&&!fP}),mce=Yc||!K_(function(e){Rr.all(e).catch(function(){})}),pP=function(e){var t;return!(!Xe(e)||!We(t=e.then))&&t},tE=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;sP(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&&bce(e),e.rejection=1),c===!0?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(cP("Promise-chain cycle")):(u=pP(a))?Le(u,a,f,d):f(a)):d(r)}catch(v){p&&!s&&p.exit(),d(v)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&yce(e)})}},hP=function(e,t,n){var r,i;vce?((r=m$.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),G.dispatchEvent(r)):r={promise:t,reason:n},!fP&&(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)},yce=function(e){Le(lP,G,function(){var t,n=e.facade,r=e.value;if(M7(e)&&(t=v$(function(){go?eE.emit("unhandledRejection",r,n):hP("unhandledrejection",n,r)}),e.rejection=go||M7(e)?2:1,t.error))throw t.value})},M7=function(e){return e.rejection!==1&&!e.parent},bce=function(e){Le(lP,G,function(){var t=e.facade;go?eE.emit("rejectionHandled",t):hP("rejectionhandled",t,e.value)})},Xu=function(e,t,n){return function(r){e(t,r,n)}},ss=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,tE(e,!0))},y$=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw cP("Promise can't be resolved itself");var r=pP(t);r?sP(function(){var i={done:!1};try{Le(r,t,Xu(y$,i,e),Xu(ss,i,e))}catch(o){ss(i,o,e)}}):(e.value=t,e.state=1,tE(e,!1))}catch(i){ss({done:!1},i,e)}}};if(Yc&&(vc=(Rr=function(e){X5(this,vc),Bo(e),Le(p2,this);var t=L7(this);try{e(Xu(y$,t),Xu(ss,t))}catch(n){ss(t,n)}}).prototype,(p2=function(e){pce(this,{type:kr,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Ug(vc,{then:function(e,t){var n=hce(this),r=n.reactions,i=us(z_(this,Rr));return i.ok=!We(e)||e,i.fail=We(t)&&t,i.domain=go?eE.domain:void 0,n.parent=!0,r[r.length]=i,n.state!=0&&tE(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),R7=function(){var e=new p2,t=L7(e);this.promise=e,this.resolve=Xu(y$,t),this.reject=Xu(ss,t)},Q5.f=us=function(e){return e===Rr||e===uP?new R7(e):gce(e)},We(qg)&&ia!==Object.prototype)){j7=ia.then,dP||(Sn(ia,"then",function(e,t){var n=this;return new Rr(function(r,i){Le(j7,n,r,i)}).then(e,t)},{unsafe:!0}),Sn(ia,"catch",vc.catch,{unsafe:!0}));try{delete ia.constructor}catch{}_s&&_s(ia,vc)}Ir({global:!0,wrap:!0,forced:Yc},{Promise:Rr}),Hg(Rr,kr,!1),function(e){var t=Wa(e),n=yi.f;Wr&&t&&!t[O7]&&n(t,O7,{configurable:!0,get:function(){return this}})}(kr),uP=Wa(kr),Ir({target:kr,stat:!0,forced:Yc},{reject:function(e){var t=us(this);return Le(t.reject,void 0,e),t.promise}}),Ir({target:kr,stat:!0,forced:Yc},{resolve:function(e){return function(t,n){if(jt(t),Xe(n)&&n.constructor===t)return n;var r=Q5.f(t);return(0,r.resolve)(n),r.promise}(this,e)}}),Ir({target:kr,stat:!0,forced:mce},{all:function(e){var t=this,n=us(t),r=n.resolve,i=n.reject,o=v$(function(){var a=Bo(t.resolve),u=[],s=0,l=1;Vg(e,function(c){var f=s++,d=!1;l++,Le(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=us(t),r=n.reject,i=v$(function(){var o=Bo(t.resolve);Vg(e,function(a){Le(o,t,a).then(n.resolve,r)})});return i.error&&r(i.value),n.promise}});var $ce=bd.PROPER,b$=RegExp.prototype,gP=b$.toString,wce=Ce(I_),Ece=Qe(function(){return gP.call({source:"a",flags:"b"})!="/a/b"}),Cce=$ce&&gP.name!="toString";(Ece||Cce)&&Sn(RegExp.prototype,"toString",function(){var e=jt(this),t=ho(e.source),n=e.flags;return"/"+t+"/"+ho(n===void 0&&_f(b$,e)&&!("flags"in b$)?wce(e):n)},{unsafe:!0});var z7=new WeakMap;function vP(e){return e.getMenuConfig("uploadImage")}function Dce(e,t){return q5(this,void 0,void 0,function(){return G5(this,function(n){return[2,new Promise(function(r){var i=new FileReader;i.readAsDataURL(t),i.onload=function(){var o=i.result;if(o){var a=o.toString(),u=a.indexOf("data:image")===0?"":a;ba(e,a,t.name,u),r("ok")}}})]})})}function xce(e,t){return q5(this,void 0,void 0,function(){var n,r,i,o;return G5(this,function(a){switch(a.label){case 0:return n=function(u){var s=z7.get(u);if(s!=null)return s;var l=vP(u),c=l.onSuccess,f=l.onProgress,d=l.onFailed,p=l.customInsert,v=l.onError;return s=ZB(Mg(Mg({},l),{onProgress:function(m){u.showProgressBar(m),f&&f(m)},onSuccess:function(m,g){if(p)p(g,function(V,Y,J){return ba(u,V,Y,J)});else{var y=g.errno,h=y===void 0?1:y,$=g.data,w=$===void 0?{}:$;if(h!==0)return console.error("'"+m.name+"' upload failed",g),void d(m,g);if(Array.isArray(w))w.forEach(function(V){var Y=V.url,J=Y===void 0?"":Y,Z=V.alt,se=Z===void 0?"":Z,ee=V.href;ba(u,J,se,ee===void 0?"":ee)});else{var C=w.url,D=C===void 0?"":C,A=w.alt,I=A===void 0?"":A,M=w.href;ba(u,D,I,M===void 0?"":M)}c(m,g)}},onError:function(m,g,y){var h=m.name;console.error("'"+h+" upload error",g,y),v&&v(m,g,y)}})),z7.set(u,s),s}(e),r=t.name,i=t.type,o=t.size,n.addFile({name:r,type:i,size:o,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}})})}function mP(e,t){var n,r;return q5(this,void 0,void 0,function(){var i,o,a,u,s,l,c,f,d;return G5(this,function(p){switch(p.label){case 0:if(t==null)return[2];i=Array.prototype.slice.call(t),o=vP(e),a=o.customUpload,u=o.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),s=mle(i),p.label=2;case 2:return[4,s.next()];case 3:return(l=p.sent()).done?[3,10]:(c=l.value,f=c.size,u&&f<=u?[4,Dce(e,c)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return a?[4,a(c,function(v,m,g){return ba(e,v,m,g)})]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,xce(e,c)];case 8:p.sent(),p.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return d=p.sent(),n={error:d},[3,17];case 12:return p.trys.push([12,,15,16]),l&&!l.done&&(r=s.return)?[4,r.call(s)]:[3,14];case 13:p.sent(),p.label=14;case 14:return[3,16];case 15:if(n)throw n.error;return[7];case 16:return[7];case 17:return[2]}})})}var Sce=Ce([].join),Ace=F5!=Object,Oce=nP("join",",");Ir({target:"Array",proto:!0,forced:Ace||!Oce},{join:function(e){return Sce(No(this),e===void 0?",":e)}});Ur&&(O.fn.append=Ur),Hr&&(O.fn.on=Hr),ys&&(O.fn.remove=ys),zr&&(O.fn.val=zr),h6&&(O.fn.click=h6),gs&&(O.fn.hide=gs);var Bce=function(){function e(){this.title=q("uploadImgModule.uploadImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return _0(t)},e.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadImage")},e.prototype.exec=function(t,n){var r=this.getMenuConfig(t),i=r.allowedFileTypes,o=i===void 0?[]:i,a=r.customBrowseAndUpload;if(a)a(function(c,f,d){return ba(t,c,f,d)});else{var u="";o.length>0&&(u='accept="'+o.join(", ")+'"');var s=O("body"),l=O('<input type="file" '+u+" multiple/>");l.hide(),s.append(l),l.click(),l.on("change",function(){var c=l[0].files;mP(t,c)})}},e}(),Fce={menus:[{key:"uploadImage",factory:function(){return new Bce},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){},onError:function(e,t,n){},base64LimitSize:0}}],editorPlugin:function(e){var t=e.insertData,n=e;return n.insertData=function(r){if(_0(n))t(r);else if(r.getData("text/plain"))t(r);else{var i=r.files;i.length<=0?t(r):Array.prototype.slice.call(i).some(function(o){return function(a,u){var s=typeof Symbol=="function"&&a[Symbol.iterator];if(!s)return a;var l,c,f=s.call(a),d=[];try{for(;(u===void 0||u-- >0)&&!(l=f.next()).done;)d.push(l.value)}catch(p){c={error:p}}finally{try{l&&!l.done&&(s=f.return)&&s.call(f)}finally{if(c)throw c.error}}return d}(o.type.split("/"),1)[0]==="image"})?mP(e,i):t(r)}},n}};vn("en",{highLightModule:{selectLang:"Language"}}),vn("zh-CN",{highLightModule:{selectLang:"\u9009\u62E9\u8BED\u8A00"}});var Gg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nE(e){var t={exports:{}};return e(t,t.exports),t.exports}var Ui,ah,Pp=function(e){return e&&e.Math==Math&&e},xe=Pp(typeof globalThis=="object"&&globalThis)||Pp(typeof window=="object"&&window)||Pp(typeof self=="object"&&self)||Pp(typeof Gg=="object"&&Gg)||function(){return this}()||Function("return this")(),Tce=Object.defineProperty,rE=function(e,t){try{Tce(xe,e,{value:t,configurable:!0,writable:!0})}catch{xe[e]=t}return t},vo=xe["__core-js_shared__"]||rE("__core-js_shared__",{}),iE=nE(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)"})}),yP=Function.prototype,$$=yP.bind,w$=yP.call,kce=$$&&$$.bind(w$),Me=$$?function(e){return e&&kce(w$,e)}:function(e){return e&&function(){return w$.apply(e,arguments)}},_ce=xe.TypeError,Ps=function(e){if(e==null)throw _ce("Can't call method on "+e);return e},Pce=xe.Object,oE=function(e){return Pce(Ps(e))},Nce=Me({}.hasOwnProperty),Jn=Object.hasOwn||function(e,t){return Nce(oE(e),t)},Ice=0,Rce=Math.random(),jce=Me(1 .toString),bP=function(e){return"Symbol("+(e===void 0?"":e)+")_"+jce(++Ice+Rce,36)},en=function(e){return typeof e=="function"},Lce=function(e){return en(e)?e:void 0},Ed=function(e,t){return arguments.length<2?Lce(xe[e]):xe[e]&&xe[e][t]},h2=Ed("navigator","userAgent")||"",H7=xe.process,U7=xe.Deno,V7=H7&&H7.versions||U7&&U7.version,W7=V7&&V7.v8;W7&&(ah=(Ui=W7.split("."))[0]>0&&Ui[0]<4?1:+(Ui[0]+Ui[1])),!ah&&h2&&(!(Ui=h2.match(/Edge\/(\d+)/))||Ui[1]>=74)&&(Ui=h2.match(/Chrome\/(\d+)/))&&(ah=+Ui[1]);var q7=ah,It=function(e){try{return!!e()}catch{return!0}},E$=!!Object.getOwnPropertySymbols&&!It(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&q7&&q7<41}),aE=E$&&!Symbol.sham&&typeof Symbol.iterator=="symbol",mc=iE("wks"),Ta=xe.Symbol,G7=Ta&&Ta.for,Mce=aE?Ta:Ta&&Ta.withoutSetter||bP,Io=function(e){if(!Jn(mc,e)||!E$&&typeof mc[e]!="string"){var t="Symbol."+e;E$&&Jn(Ta,e)?mc[e]=Ta[e]:mc[e]=aE&&G7?G7(t):Mce(t)}return mc[e]},$P={};$P[Io("toStringTag")]="z";var uE=String($P)==="[object z]",qr=!It(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),ur=function(e){return typeof e=="object"?e!==null:en(e)},C$=xe.document,zce=ur(C$)&&ur(C$.createElement),sE=function(e){return zce?C$.createElement(e):{}},wP=!qr&&!It(function(){return Object.defineProperty(sE("div"),"a",{get:function(){return 7}}).a!=7}),Hce=xe.String,Uce=xe.TypeError,vr=function(e){if(ur(e))return e;throw Uce(Hce(e)+" is not an object")},yc=Function.prototype.call,kt=yc.bind?yc.bind(yc):function(){return yc.apply(yc,arguments)},EP=Me({}.isPrototypeOf),Vce=xe.Object,D$=aE?function(e){return typeof e=="symbol"}:function(e){var t=Ed("Symbol");return en(t)&&EP(t.prototype,Vce(e))},Wce=xe.String,CP=function(e){try{return Wce(e)}catch{return"Object"}},qce=xe.TypeError,DP=function(e){if(en(e))return e;throw qce(CP(e)+" is not a function")},xP=function(e,t){var n=e[t];return n==null?void 0:DP(n)},Gce=xe.TypeError,Kce=xe.TypeError,Yce=Io("toPrimitive"),Xce=function(e,t){if(!ur(e)||D$(e))return e;var n,r=xP(e,Yce);if(r){if(t===void 0&&(t="default"),n=kt(r,e,t),!ur(n)||D$(n))return n;throw Kce("Can't convert object to primitive value")}return t===void 0&&(t="number"),function(i,o){var a,u;if(o==="string"&&en(a=i.toString)&&!ur(u=kt(a,i))||en(a=i.valueOf)&&!ur(u=kt(a,i))||o!=="string"&&en(a=i.toString)&&!ur(u=kt(a,i)))return u;throw Gce("Can't convert object to primitive value")}(e,t)},lE=function(e){var t=Xce(e,"string");return D$(t)?t:t+""},Jce=xe.TypeError,K7=Object.defineProperty,iv={f:qr?K7:function(e,t,n){if(vr(e),t=lE(t),vr(n),wP)try{return K7(e,t,n)}catch{}if("get"in n||"set"in n)throw Jce("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},cE=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Ns=qr?function(e,t,n){return iv.f(e,t,cE(1,n))}:function(e,t,n){return e[t]=n,e},Zce=Me(Function.toString);en(vo.inspectSource)||(vo.inspectSource=function(e){return Zce(e)});var Kg,Xc,Yg,fE=vo.inspectSource,Y7=xe.WeakMap,Qce=en(Y7)&&/native code/.test(fE(Y7)),X7=iE("keys"),SP=function(e){return X7[e]||(X7[e]=bP(e))},dE={},x$=xe.TypeError,efe=xe.WeakMap;if(Qce||vo.state){var Qo=vo.state||(vo.state=new efe),tfe=Me(Qo.get),J7=Me(Qo.has),nfe=Me(Qo.set);Kg=function(e,t){if(J7(Qo,e))throw new x$("Object already initialized");return t.facade=e,nfe(Qo,e,t),t},Xc=function(e){return tfe(Qo,e)||{}},Yg=function(e){return J7(Qo,e)}}else{var Nu=SP("state");dE[Nu]=!0,Kg=function(e,t){if(Jn(e,Nu))throw new x$("Object already initialized");return t.facade=e,Ns(e,Nu,t),t},Xc=function(e){return Jn(e,Nu)?e[Nu]:{}},Yg=function(e){return Jn(e,Nu)}}var S$={set:Kg,get:Xc,has:Yg,enforce:function(e){return Yg(e)?Xc(e):Kg(e,{})},getterFor:function(e){return function(t){var n;if(!ur(t)||(n=Xc(t)).type!==e)throw x$("Incompatible receiver, "+e+" required");return n}}},AP=Function.prototype,rfe=qr&&Object.getOwnPropertyDescriptor,g2=Jn(AP,"name"),OP={EXISTS:g2,PROPER:g2&&function(){}.name==="something",CONFIGURABLE:g2&&(!qr||qr&&rfe(AP,"name").configurable)},zf=nE(function(e){var t=OP.CONFIGURABLE,n=S$.get,r=S$.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;en(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Jn(u,"name")||t&&u.name!==p)&&Ns(u,"name",p),(l=r(u)).source||(l.source=i.join(typeof p=="string"?p:""))),o!==xe?(c?!d&&o[a]&&(f=!0):delete o[a],f?o[a]=u:Ns(o,a,u)):f?o[a]=u:rE(a,u)})(Function.prototype,"toString",function(){return en(this)&&n(this).source||fE(this)})}),ife=Me({}.toString),ofe=Me("".slice),mo=function(e){return ofe(ife(e),8,-1)},afe=Io("toStringTag"),ufe=xe.Object,sfe=mo(function(){return arguments}())=="Arguments",pE=uE?mo:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(i,o){try{return i[o]}catch{}}(t=ufe(e),afe))=="string"?n:sfe?mo(t):(r=mo(t))=="Object"&&en(t.callee)?"Arguments":r},lfe=uE?{}.toString:function(){return"[object "+pE(this)+"]"};uE||zf(Object.prototype,"toString",lfe,{unsafe:!0});var cfe,Z7,Q7={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},v2=sE("span").classList,e9=v2&&v2.constructor&&v2.constructor.prototype,ffe=e9===Object.prototype?void 0:e9,t9=Me(Me.bind),m2=xe.Object,dfe=Me("".split),hE=It(function(){return!m2("z").propertyIsEnumerable(0)})?function(e){return mo(e)=="String"?dfe(e,""):m2(e)}:m2,pfe=Math.ceil,hfe=Math.floor,gE=function(e){var t=+e;return t!=t||t===0?0:(t>0?hfe:pfe)(t)},gfe=Math.min,BP=function(e){return e>0?gfe(gE(e),9007199254740991):0},vE=function(e){return BP(e.length)},n9=Array.isArray||function(e){return mo(e)=="Array"},FP=function(){},vfe=[],TP=Ed("Reflect","construct"),mE=/^\s*(?:class|function)\b/,mfe=Me(mE.exec),yfe=!mE.exec(FP),bc=function(e){if(!en(e))return!1;try{return TP(FP,vfe,e),!0}catch{return!1}},kP=!TP||It(function(){var e;return bc(bc.call)||!bc(Object)||!bc(function(){e=!0})||e})?function(e){if(!en(e))return!1;switch(pE(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return yfe||!!mfe(mE,fE(e))}:bc,bfe=Io("species"),r9=xe.Array,$fe=function(e,t){return new(function(n){var r;return n9(n)&&(r=n.constructor,(kP(r)&&(r===r9||n9(r.prototype))||ur(r)&&(r=r[bfe])===null)&&(r=void 0)),r===void 0?r9:r}(e))(t===0?0:t)},i9=Me([].push),Vi=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,v=oE(s),m=hE(v),g=function(C,D){return DP(C),D===void 0?C:t9?t9(C,D):function(){return C.apply(D,arguments)}}(l,c),y=vE(m),h=0,$=f||$fe,w=t?$(s,y):n||a?$(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),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:i9(w,d)}else switch(e){case 4:return!1;case 7:i9(w,d)}return o?-1:r||i?i:w}},wfe={forEach:Vi(0),map:Vi(1),filter:Vi(2),some:Vi(3),every:Vi(4),find:Vi(5),findIndex:Vi(6),filterReject:Vi(7)}.forEach,y2=!!(Z7=[].forEach)&&It(function(){Z7.call(null,cfe||function(){throw 1},1)})?[].forEach:function(e){return wfe(this,e,arguments.length>1?arguments[1]:void 0)},_P=function(e){if(e&&e.forEach!==y2)try{Ns(e,"forEach",y2)}catch{e.forEach=y2}};for(var b2 in Q7)Q7[b2]&&_P(xe[b2]&&xe[b2].prototype);_P(ffe);var o9={}.propertyIsEnumerable,a9=Object.getOwnPropertyDescriptor,PP={f:a9&&!o9.call({1:2},1)?function(e){var t=a9(this,e);return!!t&&t.enumerable}:o9},ov=function(e){return hE(Ps(e))},u9=Object.getOwnPropertyDescriptor,NP={f:qr?u9:function(e,t){if(e=ov(e),t=lE(t),wP)try{return u9(e,t)}catch{}if(Jn(e,t))return cE(!kt(PP.f,e,t),e[t])}},Efe=Math.max,Cfe=Math.min,A$=function(e,t){var n=gE(e);return n<0?Efe(n+t,0):Cfe(n,t)},s9=function(e){return function(t,n,r){var i,o=ov(t),a=vE(o),u=A$(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}},Dfe={includes:s9(!0),indexOf:s9(!1)}.indexOf,l9=Me([].push),IP=function(e,t){var n,r=ov(e),i=0,o=[];for(n in r)!Jn(dE,n)&&Jn(r,n)&&l9(o,n);for(;t.length>i;)Jn(r,n=t[i++])&&(~Dfe(o,n)||l9(o,n));return o},Xg=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],xfe=Xg.concat("length","prototype"),Sfe={f:Object.getOwnPropertyNames||function(e){return IP(e,xfe)}},RP={f:Object.getOwnPropertySymbols},Afe=Me([].concat),Ofe=Ed("Reflect","ownKeys")||function(e){var t=Sfe.f(vr(e)),n=RP.f;return n?Afe(t,n(e)):t},Bfe=function(e,t){for(var n=Ofe(t),r=iv.f,i=NP.f,o=0;o<n.length;o++){var a=n[o];Jn(e,a)||r(e,a,i(t,a))}},Ffe=/#|\.prototype\./,Cd=function(e,t){var n=kfe[Tfe(e)];return n==Pfe||n!=_fe&&(en(t)?It(t):!!t)},Tfe=Cd.normalize=function(e){return String(e).replace(Ffe,".").toLowerCase()},kfe=Cd.data={},_fe=Cd.NATIVE="N",Pfe=Cd.POLYFILL="P",Nfe=Cd,Ife=NP.f,av=function(e,t){var n,r,i,o,a,u=e.target,s=e.global,l=e.stat;if(n=s?xe:l?xe[u]||rE(u,{}):(xe[u]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=Ife(n,r))&&a.value:n[r],!Nfe(s?r:u+(l?".":"#")+r,e.forced)&&i!==void 0){if(typeof o==typeof i)continue;Bfe(o,i)}(e.sham||i&&i.sham)&&Ns(o,"sham",!0),zf(n,r,o,e)}},uh=Object.keys||function(e){return IP(e,Xg)},Iu=Object.assign,c9=Object.defineProperty,Rfe=Me([].concat),f9=!Iu||It(function(){if(qr&&Iu({b:1},Iu(c9({},"a",{enumerable:!0,get:function(){c9(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}),Iu({},e)[n]!=7||uh(Iu({},t)).join("")!=r})?function(e,t){for(var n=oE(e),r=arguments.length,i=1,o=RP.f,a=PP.f;r>i;)for(var u,s=hE(arguments[i++]),l=o?Rfe(uh(s),o(s)):uh(s),c=l.length,f=0;c>f;)u=l[f++],qr&&!kt(a,s,u)||(n[u]=s[u]);return n}:Iu;av({target:"Object",stat:!0,forced:Object.assign!==f9},{assign:f9});var d9=nE(function(e){var t=function(n){var r=/\blang(?:uage)?-([\w-]+)\b/i,i=0,o={},a={manual:n.Prism&&n.Prism.manual,disableWorkerMessageHandler:n.Prism&&n.Prism.disableWorkerMessageHandler,util:{encode:function g(y){return y instanceof u?new u(y.type,g(y.content),y.alias):Array.isArray(y)?y.map(g):y.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(g){return Object.prototype.toString.call(g).slice(8,-1)},objId:function(g){return g.__id||Object.defineProperty(g,"__id",{value:++i}),g.__id},clone:function g(y,h){var $,w;switch(h=h||{},a.util.type(y)){case"Object":if(w=a.util.objId(y),h[w])return h[w];for(var C in $={},h[w]=$,y)y.hasOwnProperty(C)&&($[C]=g(y[C],h));return $;case"Array":return w=a.util.objId(y),h[w]?h[w]:($=[],h[w]=$,y.forEach(function(D,A){$[A]=g(D,h)}),$);default:return y}},getLanguage:function(g){for(;g&&!r.test(g.className);)g=g.parentElement;return g?(g.className.match(r)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch($){var g=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec($.stack)||[])[1];if(g){var y=document.getElementsByTagName("script");for(var h in y)if(y[h].src==g)return y[h]}return null}},isActive:function(g,y,h){for(var $="no-"+y;g;){var w=g.classList;if(w.contains(y))return!0;if(w.contains($))return!1;g=g.parentElement}return!!h}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(g,y){var h=a.util.clone(a.languages[g]);for(var $ in y)h[$]=y[$];return h},insertBefore:function(g,y,h,$){var w=($=$||a.languages)[g],C={};for(var D in w)if(w.hasOwnProperty(D)){if(D==y)for(var A in h)h.hasOwnProperty(A)&&(C[A]=h[A]);h.hasOwnProperty(D)||(C[D]=w[D])}var I=$[g];return $[g]=C,a.languages.DFS(a.languages,function(M,V){V===I&&M!=g&&(this[M]=C)}),C},DFS:function g(y,h,$,w){w=w||{};var C=a.util.objId;for(var D in y)if(y.hasOwnProperty(D)){h.call(y,D,y[D],$||D);var A=y[D],I=a.util.type(A);I!=="Object"||w[C(A)]?I!=="Array"||w[C(A)]||(w[C(A)]=!0,g(A,h,D,w)):(w[C(A)]=!0,g(A,h,null,w))}}},plugins:{},highlightAll:function(g,y){a.highlightAllUnder(document,g,y)},highlightAllUnder:function(g,y,h){var $={callback:h,container:g,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};a.hooks.run("before-highlightall",$),$.elements=Array.prototype.slice.apply($.container.querySelectorAll($.selector)),a.hooks.run("before-all-elements-highlight",$);for(var w,C=0;w=$.elements[C++];)a.highlightElement(w,y===!0,$.callback)},highlightElement:function(g,y,h){var $=a.util.getLanguage(g),w=a.languages[$];g.className=g.className.replace(r,"").replace(/\s+/g," ")+" language-"+$;var C=g.parentElement;C&&C.nodeName.toLowerCase()==="pre"&&(C.className=C.className.replace(r,"").replace(/\s+/g," ")+" language-"+$);var D={element:g,language:$,grammar:w,code:g.textContent};function A(M){D.highlightedCode=M,a.hooks.run("before-insert",D),D.element.innerHTML=D.highlightedCode,a.hooks.run("after-highlight",D),a.hooks.run("complete",D),h&&h.call(D.element)}if(a.hooks.run("before-sanity-check",D),(C=D.element.parentElement)&&C.nodeName.toLowerCase()==="pre"&&!C.hasAttribute("tabindex")&&C.setAttribute("tabindex","0"),!D.code)return a.hooks.run("complete",D),void(h&&h.call(D.element));if(a.hooks.run("before-highlight",D),D.grammar)if(y&&n.Worker){var I=new Worker(a.filename);I.onmessage=function(M){A(M.data)},I.postMessage(JSON.stringify({language:D.language,code:D.code,immediateClose:!0}))}else A(a.highlight(D.code,D.grammar,D.language));else A(a.util.encode(D.code))},highlight:function(g,y,h){var $={code:g,grammar:y,language:h};return a.hooks.run("before-tokenize",$),$.tokens=a.tokenize($.code,$.grammar),a.hooks.run("after-tokenize",$),u.stringify(a.util.encode($.tokens),$.language)},tokenize:function(g,y){var h=y.rest;if(h){for(var $ in h)y[$]=h[$];delete y.rest}var w=new c;return f(w,w.head,g),l(g,w,y,w.head,0),function(C){for(var D=[],A=C.head.next;A!==C.tail;)D.push(A.value),A=A.next;return D}(w)},hooks:{all:{},add:function(g,y){var h=a.hooks.all;h[g]=h[g]||[],h[g].push(y)},run:function(g,y){var h=a.hooks.all[g];if(h&&h.length)for(var $,w=0;$=h[w++];)$(y)}},Token:u};function u(g,y,h,$){this.type=g,this.content=y,this.alias=h,this.length=0|($||"").length}function s(g,y,h,$){g.lastIndex=y;var w=g.exec(h);if(w&&$&&w[1]){var C=w[1].length;w.index+=C,w[0]=w[0].slice(C)}return w}function l(g,y,h,$,w,C){for(var D in h)if(h.hasOwnProperty(D)&&h[D]){var A=h[D];A=Array.isArray(A)?A:[A];for(var I=0;I<A.length;++I){if(C&&C.cause==D+","+I)return;var M=A[I],V=M.inside,Y=!!M.lookbehind,J=!!M.greedy,Z=M.alias;if(J&&!M.pattern.global){var se=M.pattern.toString().match(/[imsuy]*$/)[0];M.pattern=RegExp(M.pattern.source,se+"g")}for(var ee=M.pattern||M,ae=$.next,fe=w;ae!==y.tail&&!(C&&fe>=C.reach);fe+=ae.value.length,ae=ae.next){var _e=ae.value;if(y.length>g.length)return;if(!(_e instanceof u)){var ve,ie=1;if(J){if(!(ve=s(ee,fe,g,Y)))break;var Ie=ve.index,T=ve.index+ve[0].length,F=fe;for(F+=ae.value.length;Ie>=F;)F+=(ae=ae.next).value.length;if(fe=F-=ae.value.length,ae.value instanceof u)continue;for(var k=ae;k!==y.tail&&(F<T||typeof k.value=="string");k=k.next)ie++,F+=k.value.length;ie--,_e=g.slice(fe,F),ve.index-=fe}else if(!(ve=s(ee,0,_e,Y)))continue;Ie=ve.index;var N=ve[0],H=_e.slice(0,Ie),j=_e.slice(Ie+N.length),Q=fe+_e.length;C&&Q>C.reach&&(C.reach=Q);var ce=ae.prev;if(H&&(ce=f(y,ce,H),fe+=H.length),d(y,ce,ie),ae=f(y,ce,new u(D,V?a.tokenize(N,V):N,Z,N)),j&&f(y,ae,j),ie>1){var we={cause:D+","+I,reach:Q};l(g,y,h,ae.prev,fe,we),C&&we.reach>C.reach&&(C.reach=we.reach)}}}}}}function c(){var g={value:null,prev:null,next:null},y={value:null,prev:g,next:null};g.next=y,this.head=g,this.tail=y,this.length=0}function f(g,y,h){var $=y.next,w={value:h,prev:y,next:$};return y.next=w,$.prev=w,g.length++,w}function d(g,y,h){for(var $=y.next,w=0;w<h&&$!==g.tail;w++)$=$.next;y.next=$,$.prev=y,g.length-=w}if(n.Prism=a,u.stringify=function g(y,h){if(typeof y=="string")return y;if(Array.isArray(y)){var $="";return y.forEach(function(I){$+=g(I,h)}),$}var w={type:y.type,content:g(y.content,h),tag:"span",classes:["token",y.type],attributes:{},language:h},C=y.alias;C&&(Array.isArray(C)?Array.prototype.push.apply(w.classes,C):w.classes.push(C)),a.hooks.run("wrap",w);var D="";for(var A in w.attributes)D+=" "+A+'="'+(w.attributes[A]||"").replace(/"/g,""")+'"';return"<"+w.tag+' class="'+w.classes.join(" ")+'"'+D+">"+w.content+"</"+w.tag+">"},!n.document)return n.addEventListener&&(a.disableWorkerMessageHandler||n.addEventListener("message",function(g){var y=JSON.parse(g.data),h=y.language,$=y.code,w=y.immediateClose;n.postMessage(a.highlight($,a.languages[h],h)),w&&n.close()},!1)),a;var p=a.util.currentScript();function v(){a.manual||a.highlightAll()}if(p&&(a.filename=p.src,p.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var m=document.readyState;m==="loading"||m==="interactive"&&p&&p.defer?document.addEventListener("DOMContentLoaded",v):window.requestAnimationFrame?window.requestAnimationFrame(v):window.setTimeout(v,16)}return a}(typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{});/**
|
||
* Prism: Lightweight, robust, elegant syntax highlighting
|
||
*
|
||
* @license MIT <https://opensource.org/licenses/MIT>
|
||
* @author Lea Verou <https://lea.verou.me>
|
||
* @namespace
|
||
* @public
|
||
*/e.exports&&(e.exports=t),Gg!==void 0&&(Gg.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",function(n){n.type==="entity"&&(n.attributes.title=n.content.replace(/&/,"&"))}),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(n,r){var i={};i["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[r]},i.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:i}};o["language-"+r]={pattern:/[\s\S]+/,inside:t.languages[r]};var a={};a[n]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:o},t.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(n,r){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+n+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:t.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(n){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;n.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},n.languages.css.atrule.inside.rest=n.languages.css;var i=n.languages.markup;i&&(i.tag.addInlined("style","css"),i.tag.addAttribute("style","css"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,function(){if(t!==void 0&&typeof document<"u"){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var n={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},r="data-src-status",i="loading",o="loaded",a='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',u=/\blang(?:uage)?-([\w-]+)\b/i;t.hooks.add("before-highlightall",function(c){c.selector+=", "+a}),t.hooks.add("before-sanity-check",function(c){var f=c.element;if(f.matches(a)){c.code="",f.setAttribute(r,i);var d=f.appendChild(document.createElement("CODE"));d.textContent="Loading\u2026";var p=f.getAttribute("data-src"),v=c.language;if(v==="none"){var m=(/\.(\w+)$/.exec(p)||[,"none"])[1];v=n[m]||m}l(d,v),l(f,v);var g=t.plugins.autoloader;g&&g.loadLanguages(v);var y=new XMLHttpRequest;y.open("GET",p,!0),y.onreadystatechange=function(){var h,$;y.readyState==4&&(y.status<400&&y.responseText?(f.setAttribute(r,o),d.textContent=y.responseText,t.highlightElement(d)):(f.setAttribute(r,"failed"),y.status>=400?d.textContent=(h=y.status,$=y.statusText,"\u2716 Error "+h+" while fetching file: "+$):d.textContent="\u2716 Error: File does not exist or is empty"))},y.send(null)}}),t.plugins.fileHighlight={highlight:function(c){for(var f,d=(c||document).querySelectorAll(a),p=0;f=d[p++];)t.highlightElement(f)}};var s=!1;t.fileHighlight=function(){s||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),s=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}function l(c,f){var d=c.className;d=d.replace(u," ")+" language-"+f,c.className=d.replace(/\s+/g," ").trim()}}()});(function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,i=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function o(s,l){return s=s.replace(/<S>/g,function(){return n}).replace(/<BRACES>/g,function(){return r}).replace(/<SPREAD>/g,function(){return i}),RegExp(s,l)}i=o(i).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=o(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:o(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx},alias:"language-javascript"}},e.languages.jsx.tag);var a=function(s){return s?typeof s=="string"?s:typeof s.content=="string"?s.content:s.content.map(a).join(""):""},u=function(s){for(var l=[],c=0;c<s.length;c++){var f=s[c],d=!1;if(typeof f!="string"&&(f.type==="tag"&&f.content[0]&&f.content[0].type==="tag"?f.content[0].content[0].content==="</"?l.length>0&&l[l.length-1].tagName===a(f.content[0].content[1])&&l.pop():f.content[f.content.length-1].content==="/>"||l.push({tagName:a(f.content[0].content[1]),openedBraces:0}):l.length>0&&f.type==="punctuation"&&f.content==="{"?l[l.length-1].openedBraces++:l.length>0&&l[l.length-1].openedBraces>0&&f.type==="punctuation"&&f.content==="}"?l[l.length-1].openedBraces--:d=!0),(d||typeof f=="string")&&l.length>0&&l[l.length-1].openedBraces===0){var p=a(f);c<s.length-1&&(typeof s[c+1]=="string"||s[c+1].type==="plain-text")&&(p+=a(s[c+1]),s.splice(c+1,1)),c>0&&(typeof s[c-1]=="string"||s[c-1].type==="plain-text")&&(p=a(s[c-1])+p,s.splice(c-1,1),c--),s[c]=new e.Token("plain-text",p,null,p)}f.content&&typeof f.content!="string"&&u(f.content)}};e.hooks.add("after-tokenize",function(s){s.language!=="jsx"&&s.language!=="tsx"||u(s.tokens)})})(Prism),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|as|declare|implements|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter;var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Prism),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(e){e.type==="entity"&&(e.attributes.title=e.content.replace(/&/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,number:/(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/}),delete Prism.languages.go["class-name"],function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,i=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,o=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/i,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:null|false)\b/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:i,punctuation:o};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},u=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];e.languages.insertBefore("php","variable",{string:u,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:u,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:i,punctuation:o}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",function(s){/<\?/.test(s.code)&&e.languages["markup-templating"].buildPlaceholders(s,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)}),e.hooks.add("after-tokenize",function(s){e.languages["markup-templating"].tokenizePlaceholders(s,"php")})}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c.boolean,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return t.source});e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:true|false)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:module|import)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return n})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism),function(e){function t(T,F){return T.replace(/<<(\d+)>>/g,function(k,N){return"(?:"+F[+N]+")"})}function n(T,F,k){return RegExp(t(T,F),k||"")}function r(T,F){for(var k=0;k<F;k++)T=T.replace(/<<self>>/g,function(){return"(?:"+T+")"});return T.replace(/<<self>>/g,"[^\\s\\S]")}var i="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",o="class enum interface record struct",a="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",u="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function s(T){return"\\b(?:"+T.trim().replace(/ /g,"|")+")\\b"}var l=s(o),c=RegExp(s(i+" "+o+" "+a+" "+u)),f=s(o+" "+a+" "+u),d=s(i+" "+o+" "+u),p=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),v=r(/\((?:[^()]|<<self>>)*\)/.source,2),m=/@?\b[A-Za-z_]\w*\b/.source,g=t(/<<0>>(?:\s*<<1>>)?/.source,[m,p]),y=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,g]),h=/\[\s*(?:,\s*)*\]/.source,$=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,h]),w=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,v,h]),C=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),D=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[C,y,h]),A={keyword:c,punctuation:/[<>()?,.:[\]]/},I=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,M=/"(?:\\.|[^\\"\r\n])*"/.source,V=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[V]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[M]),lookbehind:!0,greedy:!0},{pattern:RegExp(I),greedy:!0,alias:"character"}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:A},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[m,D]),lookbehind:!0,inside:A},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[m]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,g]),lookbehind:!0,inside:A},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:A},{pattern:n(/(\bwhere\s+)<<0>>/.source,[m]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[$]),lookbehind:!0,inside:A},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[D,d,m]),inside:A}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[m]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[m]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[v]),lookbehind:!0,alias:"class-name",inside:A},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[D,y]),inside:A,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[D]),lookbehind:!0,inside:A,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[m,p]),inside:{function:n(/^<<0>>/.source,[m]),generic:{pattern:RegExp(p),alias:"class-name",inside:A}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,g,m,D,c.source,v,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[g,v]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"class-name":{pattern:RegExp(D),greedy:!0,inside:A},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var Y=M+"|"+I,J=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[Y]),Z=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[J]),2),se=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,ee=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,Z]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[se,ee]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[se]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[Z]),inside:e.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var ae=/:[^}\r\n]+/.source,fe=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[J]),2),_e=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[fe,ae]),ve=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[Y]),2),ie=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[ve,ae]);function Ie(T,F){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[T]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[F,ae]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[_e]),lookbehind:!0,greedy:!0,inside:Ie(_e,fe)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[ie]),lookbehind:!0,greedy:!0,inside:Ie(ie,ve)}]})}(Prism),Prism.languages.dotnet=Prism.languages.cs=Prism.languages.csharp,Prism.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:[^\S\r\n]_[^\S\r\n]*(?:\r\n?|\n)|.)+/i,alias:"comment",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[^\S\r\n]*(?:\d+([/-])\d+\1\d+(?:[^\S\r\n]+(?:\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?))?|\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?)[^\S\r\n]*#/i,alias:"builtin"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:U?[ILS]|[FRD])?/i,boolean:/\b(?:True|False|Nothing)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Until|Xor)\b/i,operator:[/[+\-*/\\^<=>&#@$%!]/,{pattern:/([^\S\r\n])_(?=[^\S\r\n]*[\r\n])/,lookbehind:!0}],punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages["visual-basic"],Prism.languages.vba=Prism.languages["visual-basic"],Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:TRUE|FALSE|NULL)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){e.languages.ruby=e.languages.extend("clike",{comment:[/#.*/,{pattern:/^=begin\s[\s\S]*?^=end/m,greedy:!0}],"class-name":{pattern:/(\b(?:class)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/});var t={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:e.languages.ruby}};delete e.languages.ruby.function,e.languages.insertBefore("ruby","keyword",{regex:[{pattern:RegExp(/%r/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:{pattern:/(^|[^:]):[a-zA-Z_]\w*(?:[?!]|\b)/,lookbehind:!0},"method-definition":{pattern:/(\bdef\s+)[\w.]+/,lookbehind:!0,inside:{function:/\w+$/,rest:e.languages.ruby}}}),e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,constant:/\b[A-Z]\w*(?:[?!]|\b)/}),e.languages.ruby.string=[{pattern:RegExp(/%[qQiIwWxs]?/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"),greedy:!0,inside:{interpolation:t}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?/}},interpolation:t}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?'|'$/}}}}],e.languages.rb=e.languages.ruby}(Prism),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:true|false)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:true|false)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach(function(e){e.inside.interpolation.inside=Prism.languages.swift}),function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var i=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=r.variable[1].inside,a=0;a<i.length;a++)o[i[a]]=e.languages.bash[i[a]];e.languages.shell=e.languages.bash}(Prism),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(l){return l=l.replace(/<inner>/g,function(){return t}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+l+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"font-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+o+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+o+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(l){["url","bold","italic","strike","code-snippet"].forEach(function(c){l!==c&&(e.languages.markdown[l].inside.content.inside[c]=e.languages.markdown[c])})}),e.hooks.add("after-tokenize",function(l){l.language!=="markdown"&&l.language!=="md"||function c(f){if(f&&typeof f!="string")for(var d=0,p=f.length;d<p;d++){var v=f[d];if(v.type==="code"){var m=v.content[1],g=v.content[3];if(m&&g&&m.type==="code-language"&&g.type==="code-block"&&typeof m.content=="string"){var y=m.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),h="language-"+(y=(/[a-z][\w-]*/i.exec(y)||[""])[0].toLowerCase());g.alias?typeof g.alias=="string"?g.alias=[g.alias,h]:g.alias.push(h):g.alias=[h]}}else c(v.content)}}(l.tokens)}),e.hooks.add("wrap",function(l){if(l.type==="code-block"){for(var c="",f=0,d=l.classes.length;f<d;f++){var p=l.classes[f],v=/language-(.+)/.exec(p);if(v){c=v[1];break}}var m=e.languages[c];if(m)l.content=e.highlight(function(y){var h=y.replace(a,"");return h=h.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function($,w){var C;if((w=w.toLowerCase())[0]==="#")return C=w[1]==="x"?parseInt(w.slice(2),16):Number(w.slice(1)),s(C);var D=u[w];return D||$})}(l.content),m,c);else if(c&&c!=="none"&&e.plugins.autoloader){var g="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random());l.attributes.id=g,e.plugins.autoloader.loadLanguages(c,function(){var y=document.getElementById(g);y&&(y.innerHTML=e.highlight(y.textContent,e.languages[c],c))})}}});var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),u={amp:"&",lt:"<",gt:">",quot:'"'},s=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism);var jfe=["comment","prolog","doctype","cdata","punctuation","namespace","property","tag","boolean","number","constant","symbol","deleted","selector","attr-name","string","builtin","inserted","operator","entity","url","string","atrule","attr-value","keyword","function","class-name","regex","important","variable","bold","italic","entity","char"];function jP(e){return typeof e=="string"?e.length:typeof e.content=="string"?e.content.length:e.content.reduce(function(t,n){return t+jP(n)},0)}var Np,Lfe=xe.String,di=function(e){if(pE(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Lfe(e)},LP=function(){var e=vr(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},yE=xe.RegExp,O$=It(function(){var e=yE("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),Mfe=O$||It(function(){return!yE("a","y").sticky}),MP={BROKEN_CARET:O$||It(function(){var e=yE("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:Mfe,UNSUPPORTED_Y:O$},zfe=qr?Object.defineProperties:function(e,t){vr(e);for(var n,r=ov(t),i=uh(t),o=i.length,a=0;o>a;)iv.f(e,n=i[a++],r[n]);return e},Hfe=Ed("document","documentElement"),zP=SP("IE_PROTO"),$2=function(){},HP=function(e){return"<script>"+e+"<\/script>"},p9=function(e){e.write(HP("")),e.close();var t=e.parentWindow.Object;return e=null,t},sh=function(){try{Np=new ActiveXObject("htmlfile")}catch{}var e,t;sh=typeof document<"u"?document.domain&&Np?p9(Np):((t=sE("iframe")).style.display="none",Hfe.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(HP("document.F=Object")),e.close(),e.F):p9(Np);for(var n=Xg.length;n--;)delete sh.prototype[Xg[n]];return sh()};dE[zP]=!0;var h9,w2,Ufe=Object.create||function(e,t){var n;return e!==null?($2.prototype=vr(e),n=new $2,$2.prototype=null,n[zP]=e):n=sh(),t===void 0?n:zfe(n,t)},Vfe=xe.RegExp,Wfe=It(function(){var e=Vfe(".","s");return!(e.dotAll&&e.exec(`
|
||
`)&&e.flags==="s")}),qfe=xe.RegExp,Gfe=It(function(){var e=qfe("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Kfe=S$.get,Yfe=iE("native-string-replace",String.prototype.replace),Jg=RegExp.prototype.exec,B$=Jg,Xfe=Me("".charAt),Jfe=Me("".indexOf),Zfe=Me("".replace),E2=Me("".slice),C2=(w2=/b*/g,kt(Jg,h9=/a/,"a"),kt(Jg,w2,"a"),h9.lastIndex!==0||w2.lastIndex!==0),g9=MP.BROKEN_CARET,D2=/()??/.exec("")[1]!==void 0;(C2||D2||g9||Wfe||Gfe)&&(B$=function(e){var t,n,r,i,o,a,u,s=this,l=Kfe(s),c=di(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=kt(B$,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=g9&&s.sticky,v=kt(LP,s),m=s.source,g=0,y=c;if(p&&(v=Zfe(v,"y",""),Jfe(v,"g")===-1&&(v+="g"),y=E2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Xfe(c,s.lastIndex-1)!==`
|
||
`)&&(m="(?: "+m+")",y=" "+y,g++),n=new RegExp("^(?:"+m+")",v)),D2&&(n=new RegExp("^"+m+"$(?!\\s)",v)),C2&&(r=s.lastIndex),i=kt(Jg,p?n:s,y),p?i?(i.input=E2(i.input,g),i[0]=E2(i[0],g),i.index=s.lastIndex,s.lastIndex+=i[0].length):s.lastIndex=0:C2&&i&&(s.lastIndex=s.global?i.index+i[0].length:r),D2&&i&&i.length>1&&kt(Yfe,i[0],n,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(i[o]=void 0)}),i&&d)for(i.groups=a=Ufe(null),o=0;o<d.length;o++)a[(u=d[o])[0]]=i[u[1]];return i});var Hf=B$;av({target:"RegExp",proto:!0,forced:/./.exec!==Hf},{exec:Hf});var bE=Function.prototype,v9=bE.apply,Qfe=bE.bind,m9=bE.call,ede=typeof Reflect=="object"&&Reflect.apply||(Qfe?m9.bind(v9):function(){return m9.apply(v9,arguments)}),tde=Io("species"),x2=RegExp.prototype,nde=Io("match"),rde=xe.TypeError,ide=Io("species"),ode=function(e,t){var n,r=vr(e).constructor;return r===void 0||(n=vr(r)[ide])==null?t:function(i){if(kP(i))return i;throw rde(CP(i)+" is not a constructor")}(n)},ade=Me("".charAt),y9=Me("".charCodeAt),ude=Me("".slice),b9=function(e){return function(t,n){var r,i,o=di(Ps(t)),a=gE(n),u=o.length;return a<0||a>=u?e?"":void 0:(r=y9(o,a))<55296||r>56319||a+1===u||(i=y9(o,a+1))<56320||i>57343?e?ade(o,a):r:e?ude(o,a,a+2):i-56320+(r-55296<<10)+65536}},sde={codeAt:b9(!1),charAt:b9(!0)}.charAt,lde=function(e,t,n){return t+(n?sde(e,t).length:1)},cde=xe.Array,fde=Math.max,$9=function(e,t,n){for(var r,i,o,a,u=vE(e),s=A$(t,u),l=A$(n===void 0?u:n,u),c=cde(fde(l-s,0)),f=0;s<l;s++,f++)r=c,i=f,o=e[s],a=void 0,(a=lE(i))in r?iv.f(r,a,cE(0,o)):r[a]=o;return c.length=f,c},dde=xe.TypeError,w9=function(e,t){var n=e.exec;if(en(n)){var r=kt(n,e,t);return r!==null&&vr(r),r}if(mo(e)==="RegExp")return kt(Hf,e,t);throw dde("RegExp#exec called on incompatible receiver")},Ru=MP.UNSUPPORTED_Y,pde=Math.min,UP=[].push,hde=Me(/./.exec),ju=Me(UP),$c=Me("".slice);(function(e,t,n,r){var i=Io(e),o=!It(function(){var l={};return l[i]=function(){return 7},""[e](l)!=7}),a=o&&!It(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[tde]=function(){return c},c.flags="",c[i]=/./[i]),c.exec=function(){return l=!0,null},c[i](""),!l});if(!o||!a||n){var u=Me(/./[i]),s=t(i,""[e],function(l,c,f,d,p){var v=Me(l),m=c.exec;return m===Hf||m===x2.exec?o&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});zf(String.prototype,e,s[0]),zf(x2,i,s[1])}r&&Ns(x2[i],"sham",!0)})("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,u,s=di(Ps(this)),l=o===void 0?4294967295:o>>>0;if(l===0)return[];if(i===void 0)return[s];if(!ur(a=i)||!((u=a[nde])!==void 0?u:mo(a)=="RegExp"))return kt(t,s,i,l);for(var c,f,d,p=[],v=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(i.sticky?"y":""),m=0,g=new RegExp(i.source,v+"g");(c=kt(Hf,g,s))&&!((f=g.lastIndex)>m&&(ju(p,$c(s,m,c.index)),c.length>1&&c.index<s.length&&ede(UP,p,$9(c,1)),d=c[0].length,m=f,p.length>=l));)g.lastIndex===c.index&&g.lastIndex++;return m===s.length?!d&&hde(g,"")||ju(p,""):ju(p,$c(s,m)),p.length>l?$9(p,0,l):p}:"0".split(void 0,0).length?function(i,o){return i===void 0&&o===0?[]:kt(t,this,i,o)}:t,[function(i,o){var a=Ps(this),u=i==null?void 0:xP(i,e);return u?kt(u,i,a,o):kt(r,di(a),i,o)},function(i,o){var a=vr(this),u=di(i),s=n(r,a,u,o,r!==t);if(s.done)return s.value;var l=ode(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Ru?"g":"y"),d=new l(Ru?"^(?:"+a.source+")":a,f),p=o===void 0?4294967295:o>>>0;if(p===0)return[];if(u.length===0)return w9(d,u)===null?[u]:[];for(var v=0,m=0,g=[];m<u.length;){d.lastIndex=Ru?0:m;var y,h=w9(d,Ru?$c(u,m):u);if(h===null||(y=pde(BP(d.lastIndex+(Ru?m:0)),u.length))===v)m=lde(u,m,c);else{if(ju(g,$c(u,v,m)),g.length===p)return g;for(var $=1;$<=h.length-1;$++)if(ju(g,h[$]),g.length===p)return g;m=v=y}}return ju(g,$c(u,v)),g}]},!!It(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),Ru),av({global:!0},{globalThis:xe}),Mr&&(O.fn.attr=Mr);var gde=OP.PROPER,F$=RegExp.prototype,VP=F$.toString,vde=Me(LP),mde=It(function(){return VP.call({source:"a",flags:"b"})!="/a/b"}),yde=gde&&VP.name!="toString";(mde||yde)&&zf(RegExp.prototype,"toString",function(){var e=vr(this),t=di(e.source),n=e.flags;return"/"+t+"/"+di(n===void 0&&EP(F$,e)&&!("flags"in F$)?vde(e):n)},{unsafe:!0});var bde=function(){function e(){this.title=q("highLightModule.selectLang"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z"></path></svg>',this.tag="select",this.width=95,this.selectPanelWidth=115}return e.prototype.getOptions=function(t){var n=[],r=t.getMenuConfig("codeSelectLang").codeLangs,i=r===void 0?[]:r;n.push({text:"plain text",value:""}),i.forEach(function(a){var u=a.text,s=a.value;n.push({text:u,value:s})});var o=this.getValue(t);return n.forEach(function(a){a.value===o?a.selected=!0:delete a.selected}),n},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var n=this.getSelectCodeElem(t);if(n==null||!te.isElement(n))return"";var r=n.language.toString(),i=t.getMenuConfig("codeSelectLang").codeLangs;return(i===void 0?[]:i).some(function(o){return o.value===r})?r:""},e.prototype.isDisabled=function(t){return t.selection==null||!this.getSelectCodeElem(t)},e.prototype.exec=function(t,n){if(this.getSelectCodeElem(t)!=null){var r={language:n.toString()};P.setNodes(t,r,{match:function(i){return S.checkNodeType(i,"code")}})}},e.prototype.getSelectCodeElem=function(t){var n=S.getSelectedNodeByType(t,"code");if(n==null)return null;var r=S.getParentNode(t,n);return te.isElement(r)?r.type!=="pre"?null:n:null},e}(),$de={renderStyle:function(e,t){var n=e,r=t,i="";return jfe.forEach(function(o){n[o]&&(i=o)}),i&&function(o,a){o.data==null&&(o.data={});var u=o.data;u.props==null&&(u.props={}),Object.assign(u.props,{className:a})}(r,i="token "+i),r},parseStyleHtml:function(e,t,n){var r=O(e);if(!te.isElement(t)||S.getNodeType(t)!=="code")return t;var i=t,o=r.attr("class")||"";return o.indexOf("language-")===0?i.language=o.split("-")[1]||"":i.language=o.toLowerCase(),i},menus:[{key:"codeSelectLang",factory:function(){return new bde},config:{codeLangs:[{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Markdown",value:"markdown"}]}}],elemsToHtml:[{type:"code",elemToHtml:function(e,t){var n=e.language,r=n===void 0?"":n;return"<code "+(r?'class="language-'+r+'"':"")+">"+t+"</code>"}}]},wde=/"/g,Ede=Me("".replace);av({target:"String",proto:!0,forced:function(e){return It(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})}("anchor")},{anchor:function(e){return t="a",n="name",r=e,i=di(Ps(this)),o="<"+t,n!==""&&(o+=" "+n+'="'+Ede(di(r),wde,""")+'"'),o+">"+i+"</"+t+">";var t,n,r,i,o}});var WP=function(e){var t,n,r,i=function(y,h){var $=typeof Symbol=="function"&&y[Symbol.iterator];if(!$)return y;var w,C,D=$.call(y),A=[];try{for(;(h===void 0||h-- >0)&&!(w=D.next()).done;)A.push(w.value)}catch(I){C={error:I}}finally{try{w&&!w.done&&($=D.return)&&$.call(D)}finally{if(C)throw C.error}}return A}(e,2),o=i[0],a=i[1],u=[],s=function(y){if(!X.isText(y))return null;var h=S.getParentNode(null,y);if(h&&S.getNodeType(h)==="code"){var $=S.getParentNode(null,h);if($&&S.getNodeType($)==="pre")return h}return null}(o);if(s==null)return u;var l=s.language,c=l===void 0?"":l;if(!c)return u;var f=function(y,h){if(!h)return[];var $=d9.languages[h];return $?d9.tokenize(y.text,$):[]}(o,c),d=0;try{for(var p=function(y){var h=typeof Symbol=="function"&&Symbol.iterator,$=h&&y[h],w=0;if($)return $.call(y);if(y&&typeof y.length=="number")return{next:function(){return y&&w>=y.length&&(y=void 0),{value:y&&y[w++],done:!y}}};throw new TypeError(h?"Object is not iterable.":"Symbol.iterator is not defined.")}(f),v=p.next();!v.done;v=p.next()){var m=v.value,g=d+jP(m);typeof m!="string"&&u.push(((r={})[m.type]=!0,r.anchor={path:a,offset:d},r.focus={path:a,offset:g},r)),d=g}}catch(y){t={error:y}}finally{try{v&&!v.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}return u};/*! *****************************************************************************
|
||
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 ct=function(){return ct=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},ct.apply(this,arguments)},Pt=function(){function e(){throw new Error(`\u4E0D\u80FD\u5B9E\u4F8B\u5316
|
||
Can not construct a instance`)}return e.setEditorConfig=function(t){t===void 0&&(t={}),this.editorConfig=ct(ct({},this.editorConfig),t)},e.setSimpleEditorConfig=function(t){t===void 0&&(t={}),this.simpleEditorConfig=ct(ct({},this.simpleEditorConfig),t)},e.setToolbarConfig=function(t){t===void 0&&(t={}),this.toolbarConfig=ct(ct({},this.toolbarConfig),t)},e.setSimpleToolbarConfig=function(t){t===void 0&&(t={}),this.simpleToolbarConfig=ct(ct({},this.simpleToolbarConfig),t)},e.registerPlugin=function(t){this.plugins.push(t)},e.registerMenu=function(t,n){HV(t,n)},e.registerRenderElem=function(t){hq(t)},e.registerRenderStyle=function(t){pq(t)},e.registerElemToHtml=function(t){QV(t)},e.registerStyleToHtml=function(t){ZV(t)},e.registerPreParseHtml=function(t){EW(t)},e.registerParseElemHtml=function(t){DW(t)},e.registerParseStyleHtml=function(t){CW(t)},e.registerModule=function(t){tu(t)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();function tu(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,i=e.elemsToHtml,o=e.styleToHtml,a=e.preParseHtml,u=e.parseElemsHtml,s=e.parseStyleHtml,l=e.editorPlugin;t&&t.forEach(function(c){return Pt.registerMenu(c)}),n&&n.forEach(function(c){return Pt.registerRenderElem(c)}),r&&Pt.registerRenderStyle(r),i&&i.forEach(function(c){return Pt.registerElemToHtml(c)}),o&&Pt.registerStyleToHtml(o),a&&a.forEach(function(c){return Pt.registerPreParseHtml(c)}),u&&u.forEach(function(c){return Pt.registerParseElemHtml(c)}),s&&Pt.registerParseStyleHtml(s),l&&Pt.registerPlugin(l)}RQ.forEach(function(e){return tu(e)});tu(Yte);tu(Die);tu(jue);tu(Fce);tu($de);var Cde='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',Dde='<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',qP='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',xde='<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',Sde='<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>';function Ade(){return["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:q("editor.more"),iconSvg:xde,menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:q("editor.justify"),iconSvg:Dde,menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:q("editor.indent"),iconSvg:Cde,menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:q("editor.image"),iconSvg:qP,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:q("editor.video"),iconSvg:Sde,menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"]}function Ode(){return["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:q("editor.image"),iconSvg:qP,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]}var GP={link:{menuKeys:["editLink","unLink","viewLink"]},image:{menuKeys:["imageWidth30","imageWidth50","imageWidth100","editImage","viewImageLink","deleteImage"]},pre:{menuKeys:["enter","codeBlock","codeSelectLang"]},table:{menuKeys:["enter","tableHeader","tableFullWidth","insertTableRow","deleteTableRow","insertTableCol","deleteTableCol","deleteTable"]},divider:{menuKeys:["enter"]},video:{menuKeys:["enter","editVideoSize"]}};function Bde(){return ct(ct({},GP),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})}function Fde(){return GP}function Tde(){return{hoverbarKeys:Bde()}}function kde(){return{hoverbarKeys:Fde()}}function _de(){return{toolbarKeys:Ade()}}function Pde(){return{toolbarKeys:Ode()}}var Nde=Tde();Pt.setEditorConfig(ct(ct({},Nde),{decorate:WP}));var Ide=kde();Pt.setSimpleEditorConfig(ct(ct({},Ide),{decorate:WP}));var Rde=_de();Pt.setToolbarConfig(Rde);var jde=Pde();Pt.setSimpleToolbarConfig(jde);function Lde(e){e===void 0&&(e={});var t=e.selector,n=t===void 0?"":t,r=e.content,i=r===void 0?[]:r,o=e.html,a=e.config,u=a===void 0?{}:a,s=e.mode,l=s===void 0?"default":s,c=l==="simple"?Pt.simpleEditorConfig:Pt.editorConfig,f=ct(ct({},c.hoverbarKeys||{}),u.hoverbarKeys||{}),d=Nq({selector:n,config:ct(ct(ct({},c),u),{hoverbarKeys:f}),content:i,html:o,plugins:Pt.plugins});return d}function Mde(e){var t=e.selector,n=e.editor,r=e.config,i=r===void 0?{}:r,o=e.mode,a=o===void 0?"default":o;if(!t)throw new Error("Cannot find 'selector' when create toolbar");var u=a==="simple"?Pt.simpleToolbarConfig:Pt.toolbarConfig,s=zq(n,{selector:t,config:ct(ct({},u),i)});return s}var zde=Object.defineProperty,Hde=Object.defineProperties,Ude=Object.getOwnPropertyDescriptors,E9=Object.getOwnPropertySymbols,Vde=Object.prototype.hasOwnProperty,Wde=Object.prototype.propertyIsEnumerable,C9=(e,t,n)=>t in e?zde(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,qde=(e,t)=>{for(var n in t||(t={}))Vde.call(t,n)&&C9(e,n,t[n]);if(E9)for(var n of E9(t))Wde.call(t,n)&&C9(e,n,t[n]);return e},Gde=(e,t)=>Hde(e,Ude(t));function Wi(e){let t=`\u8BF7\u4F7F\u7528 '@${e}' \u4E8B\u4EF6\uFF0C\u4E0D\u8981\u653E\u5728 props \u4E2D`;return t+=`
|
||
Please use '@${e}' event instead of props`,t}var KP=(e,t)=>{for(const[n,r]of t)e[n]=r;return e};const Kde=Zg({props:{mode:{type:String,default:"default"},defaultContent:{type:Array,default:[]},defaultHtml:{type:String,default:""},defaultConfig:{type:Object,default:{}},modelValue:{type:String,default:""}},setup(e,t){const n=ls(null),r=D9(null),i=ls(""),o=()=>{if(!n.value)return;const u=ZP(e.defaultContent);Lde({selector:n.value,mode:e.mode,content:u||[],html:e.defaultHtml||e.modelValue||"",config:Gde(qde({},e.defaultConfig),{onCreated(s){if(r.value=s,t.emit("onCreated",s),e.defaultConfig.onCreated){const l=Wi("onCreated");throw new Error(l)}},onChange(s){const l=s.getHtml();if(i.value=l,t.emit("update:modelValue",l),t.emit("onChange",s),e.defaultConfig.onChange){const c=Wi("onChange");throw new Error(c)}},onDestroyed(s){if(t.emit("onDestroyed",s),e.defaultConfig.onDestroyed){const l=Wi("onDestroyed");throw new Error(l)}},onMaxLength(s){if(t.emit("onMaxLength",s),e.defaultConfig.onMaxLength){const l=Wi("onMaxLength");throw new Error(l)}},onFocus(s){if(t.emit("onFocus",s),e.defaultConfig.onFocus){const l=Wi("onFocus");throw new Error(l)}},onBlur(s){if(t.emit("onBlur",s),e.defaultConfig.onBlur){const l=Wi("onBlur");throw new Error(l)}},customAlert(s,l){if(t.emit("customAlert",s,l),e.defaultConfig.customAlert){const c=Wi("customAlert");throw new Error(c)}},customPaste:(s,l)=>{if(e.defaultConfig.customPaste){const f=Wi("customPaste");throw new Error(f)}let c;return t.emit("customPaste",s,l,f=>{c=f}),c}})})};function a(u){const s=r.value;s!=null&&s.setHtml(u)}return YP(()=>{o()}),XP(()=>e.modelValue,u=>{u!==i.value&&a(u)}),{box:n}}}),Yde={ref:"box",style:{height:"100%"}};function Xde(e,t,n,r,i,o){return Qg(),e0("div",Yde,null,512)}var Jde=KP(Kde,[["render",Xde]]);const Zde=Zg({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(e){const t=ls(null),n=r=>{if(!!t.value){if(r==null)throw new Error("Not found instance of Editor when create <Toolbar/> component");S.getToolbar(r)||Mde({editor:r,selector:t.value||"<div></div>",mode:e.mode,config:e.defaultConfig})}};return JP(()=>{const{editor:r}=e;r!=null&&n(r)}),{selector:t}}}),Qde={ref:"selector"};function epe(e,t,n,r,i,o){return Qg(),e0("div",Qde,null,512)}var tpe=KP(Zde,[["render",epe]]);const npe={class:"m-wangEditor"},rpe=Zg({__name:"index",props:{modelValue:String},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=D9(),i={},o={placeholder:"\u8BF7\u8F93\u5165\u5185\u5BB9..."},a=ls("default"),u=l=>{r.value=l},s=QP({get(){return n.modelValue},set(l){r.value.isEmpty()&&(l=""),t("update:modelValue",l)}});return eN(()=>{const l=r.value;l!=null&&l.destroy()}),(l,c)=>(Qg(),e0("div",npe,[on(Rd(tpe),{style:{"border-bottom":"1px solid #ccc"},editor:Rd(r),defaultConfig:i,mode:a.value},null,8,["editor","mode"]),on(Rd(Jde),{class:"editor-content'",style:{height:"300px","overflow-y":"hidden"},modelValue:Rd(s),"onUpdate:modelValue":c[0]||(c[0]=f=>tN(s)?s.value=f:null),defaultConfig:o,mode:a.value,onOnCreated:u},null,8,["modelValue","mode"])]))}});const ipe=nN(rpe,[["__scopeId","data-v-3d802932"]]),ope={class:"app-container"},ape={class:"app-container-inner"},upe=Gi("a",{href:"https://www.wangeditor.com/v5/for-frame.html",target:"_blank"}," https://www.wangeditor.com/v5/for-frame.html ",-1),spe={style:{display:"flex","align-items":"center","margin-bottom":"20px"}},lpe=Gi("span",{style:{width:"50px","font-weight":"bold"}},"\u6807\u9898\uFF1A",-1),cpe={style:{display:"flex","align-items":"center","margin-bottom":"20px"}},fpe=Gi("span",{style:{width:"50px","font-weight":"bold"}},"\u5185\u5BB9",-1),dpe=["innerHTML"],Epe=Zg({__name:"index",setup(e){const t=ls(),n=ls(!1),r=rN({title:"",content:""}),i=u=>{!u||u.validate(s=>{if(console.log("valid",s),s)oN.success("\u4FDD\u5B58\u6210\u529F");else return console.log("error submit!"),!1})},o=u=>{!u||u.validate(s=>{if(console.log("valid",s),s)n.value=!0;else return console.log("error submit!"),!1})},a=u=>{!u||u.resetFields()};return(u,s)=>{const l=Ho("el-input"),c=Ho("el-form-item"),f=Ho("el-button"),d=Ho("el-form"),p=Ho("el-descriptions-item"),v=Ho("el-descriptions"),m=Ho("el-dialog");return Qg(),e0("div",ope,[Gi("div",ape,[on(d,{ref_key:"formRef",ref:t,model:r,"label-width":"80px",class:"demo-dynamic"},{default:Rn(()=>[on(c,{prop:"title",label:"\u6807\u9898",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898",trigger:"blur"}]},{default:Rn(()=>[on(l,{modelValue:r.title,"onUpdate:modelValue":s[0]||(s[0]=g=>r.title=g)},null,8,["modelValue"])]),_:1}),on(c,{prop:"content",label:"\u6807\u9898",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5185\u5BB9",trigger:"blur"}]},{default:Rn(()=>[on(ipe,{modelValue:r.content,"onUpdate:modelValue":s[1]||(s[1]=g=>r.content=g)},null,8,["modelValue"])]),_:1}),on(c,null,{default:Rn(()=>[on(f,{type:"primary",onClick:s[2]||(s[2]=g=>i(t.value))},{default:Rn(()=>[jd("\u4FDD\u5B58")]),_:1}),on(f,{type:"primary",onClick:s[3]||(s[3]=g=>o(t.value))},{default:Rn(()=>[jd("\u9884\u89C8")]),_:1}),on(f,{onClick:s[4]||(s[4]=g=>a(t.value))},{default:Rn(()=>[jd("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1},8,["model"]),on(v,{title:"\u914D\u7F6E\u9879 ",column:1,border:"",class:"descriptions"},{default:Rn(()=>[on(p,{label:"value"},{default:Rn(()=>[jd(" \u53CC\u5411\u7ED1\u5B9A\u7684 value \u503C\uFF0C\u4F7F\u7528\u793A\u4F8B\uFF1Av-model='content' ")]),_:1}),on(p,{label:"\u53C2\u8003\u6587\u6863"},{default:Rn(()=>[upe]),_:1})]),_:1}),on(m,{modelValue:n.value,"onUpdate:modelValue":s[5]||(s[5]=g=>n.value=g),title:"\u9884\u89C8",width:"60%"},{footer:Rn(()=>[]),default:Rn(()=>[Gi("div",spe,[lpe,Gi("div",null,iN(r.title),1)]),Gi("div",cpe,[fpe,Gi("div",{innerHTML:r.content},null,8,dpe)])]),_:1},8,["modelValue"])])])}}});export{Epe as default};
|