jwt-ui 1.10.4 → 1.10.5-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/jwt-ui.umd.js CHANGED
@@ -6,7 +6,7 @@
6
6
  * Released under the MIT License.
7
7
  */function b8(e){return Object.prototype.toString.call(e)==="[object Object]"}function ur(e){var t,n;return b8(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!(b8(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}function er(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=XV[e],o=i?typeof i=="function"?i.apply(null,n):i:"unknown error nr: "+e;throw Error("[Immer] "+o)}}function Jl(e){return!!e&&!!e[jr]}function Zl(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)===JV}(e)||Array.isArray(e)||!!e[k8]||!!e.constructor[k8]||bb(e)||wb(e))}function rd(e,t,n){n===void 0&&(n=!1),Nu(e)===0?(n?Object.keys:Tb)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,i){return t(i,r,e)})}function Nu(e){var t=e[jr];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:bb(e)?2:wb(e)?3:0}function yb(e,t){return Nu(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function UV(e,t){return Nu(e)===2?e.get(t):e[t]}function w8(e,t,n){var r=Nu(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function HV(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function bb(e){return KV&&e instanceof Map}function wb(e){return YV&&e instanceof Set}function Ql(e){return e.o||e.t}function $b(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=ZV(e);delete t[jr];for(var n=Tb(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 Eb(e,t){return t===void 0&&(t=!1),Cb(e)||Jl(e)||!Zl(e)||(Nu(e)>1&&(e.set=e.add=e.clear=e.delete=WV),Object.freeze(e),t&&rd(e,function(n,r){return Eb(r,!0)},!0)),e}function WV(){er(2)}function Cb(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function jo(e){var t=QV[e];return t||er(18,e),t}function $8(){return Lu||er(0),Lu}function Sb(e,t){t&&(jo("Patches"),e.u=[],e.s=[],e.v=t)}function o0(e){xb(e),e.p.forEach(qV),e.p=null}function xb(e){e===Lu&&(Lu=e.l)}function E8(e){return Lu={p:[],l:Lu,h:e,m:!0,_:0}}function qV(e){var t=e[jr];t.i===0||t.i===1?t.j():t.O=!0}function Db(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||jo("ES5").S(t,e,r),r?(n[jr].P&&(o0(t),er(4)),Zl(e)&&(e=a0(t,e),t.l||l0(t,e)),t.u&&jo("Patches").M(n[jr],e,t.u,t.s)):e=a0(t,n,[]),o0(t),t.u&&t.v(t.u,t.s),e!==_8?e:void 0}function a0(e,t,n){if(Cb(t))return t;var r=t[jr];if(!r)return rd(t,function(o,a){return C8(e,r,t,o,a,n)},!0),t;if(r.A!==e)return t;if(!r.P)return l0(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=$b(r.k):r.o;rd(r.i===3?new Set(i):i,function(o,a){return C8(e,r,i,o,a,n)}),l0(e,i,!1),n&&e.u&&jo("Patches").R(r,n,e.u,e.s)}return r.o}function C8(e,t,n,r,i,o){if(i===n&&er(5),Jl(i)){var a=a0(e,i,o&&t&&t.i!==3&&!yb(t.D,r)?o.concat(r):void 0);if(w8(n,r,a),!Jl(a))return;e.m=!1}if(Zl(i)&&!Cb(i)){if(!e.h.F&&e._<1)return;a0(e,i),t&&t.A.l||l0(e,i)}}function l0(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&Eb(t,n)}function Ab(e,t){var n=e[jr];return(n?Ql(n):e)[t]}function S8(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 _b(e){e.P||(e.P=!0,e.l&&_b(e.l))}function kb(e){e.o||(e.o=$b(e.t))}function Ob(e,t,n){var r=bb(t)?jo("MapSet").N(t,n):wb(t)?jo("MapSet").T(t,n):e.g?function(i,o){var a=Array.isArray(i),l={i:a?1:0,A:o?o.A:$8(),P:!1,I:!1,D:{},l:o,t:i,k:null,o:null,j:null,C:!1},u=l,f=s0;a&&(u=[l],f=u0);var d=Proxy.revocable(u,f),p=d.revoke,g=d.proxy;return l.k=g,l.j=p,g}(t,n):jo("ES5").J(t,n);return(n?n.A:$8()).p.push(r),r}function GV(e){return Jl(e)||er(22,e),function t(n){if(!Zl(n))return n;var r,i=n[jr],o=Nu(n);if(i){if(!i.P&&(i.i<4||!jo("ES5").K(i)))return i.t;i.I=!0,r=x8(n,o),i.I=!1}else r=x8(n,o);return rd(r,function(a,l){i&&UV(i.t,a)===l||w8(r,a,t(l))}),o===3?new Set(r):r}(e)}function x8(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return $b(e)}var D8,Lu,Bb=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",KV=typeof Map<"u",YV=typeof Set<"u",A8=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",_8=Bb?Symbol.for("immer-nothing"):((D8={})["immer-nothing"]=!0,D8),k8=Bb?Symbol.for("immer-draftable"):"__$immer_draftable",jr=Bb?Symbol.for("immer-state"):"__$immer_state",XV={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"},JV=""+Object.prototype.constructor,Tb=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,ZV=Object.getOwnPropertyDescriptors||function(e){var t={};return Tb(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},QV={},s0={get:function(e,t){if(t===jr)return e;var n=Ql(e);if(!yb(n,t))return function(i,o,a){var l,u=S8(o,a);return u?"value"in u?u.value:(l=u.get)===null||l===void 0?void 0:l.call(i.k):void 0}(e,n,t);var r=n[t];return e.I||!Zl(r)?r:r===Ab(e.t,t)?(kb(e),e.o[t]=Ob(e.A.h,r,e)):r},has:function(e,t){return t in Ql(e)},ownKeys:function(e){return Reflect.ownKeys(Ql(e))},set:function(e,t,n){var r=S8(Ql(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var i=Ab(Ql(e),t),o=i==null?void 0:i[jr];if(o&&o.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(HV(n,i)&&(n!==void 0||yb(e.t,t)))return!0;kb(e),_b(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 Ab(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,kb(e),_b(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Ql(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){er(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){er(12)}},u0={};rd(s0,function(e,t){u0[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),u0.deleteProperty=function(e,t){return isNaN(parseInt(t))&&er(13),s0.deleteProperty.call(this,e[0],t)},u0.set=function(e,t,n){return t!=="length"&&isNaN(parseInt(t))&&er(14),s0.set.call(this,e[0],t,n,e[0])};var eU=function(){function e(n){var r=this;this.g=A8,this.F=!0,this.produce=function(i,o,a){if(typeof i=="function"&&typeof o!="function"){var l=o;o=i;var u=r;return function(h){var E=this;h===void 0&&(h=l);for(var w=arguments.length,y=Array(w>1?w-1:0),$=1;$<w;$++)y[$-1]=arguments[$];return u.produce(h,function(m){var S;return(S=o).call.apply(S,[E,m].concat(y))})}}var f;if(typeof o!="function"&&er(6),a!==void 0&&typeof a!="function"&&er(7),Zl(i)){var d=E8(r),p=Ob(r,i,void 0),g=!0;try{f=o(p),g=!1}finally{g?o0(d):xb(d)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(h){return Sb(d,a),Db(h,d)},function(h){throw o0(d),h}):(Sb(d,a),Db(f,d))}if(!i||typeof i!="object")return(f=o(i))===_8?void 0:(f===void 0&&(f=i),r.F&&Eb(f,!0),f);er(21,i)},this.produceWithPatches=function(i,o){return typeof i=="function"?function(u){for(var f=arguments.length,d=Array(f>1?f-1:0),p=1;p<f;p++)d[p-1]=arguments[p];return r.produceWithPatches(u,function(g){return i.apply(void 0,[g].concat(d))})}:[r.produce(i,o,function(u,f){a=u,l=f}),a,l];var a,l},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){Zl(n)||er(8),Jl(n)&&(n=GV(n));var r=E8(this),i=Ob(this,n,void 0);return i[jr].C=!0,xb(r),i},t.finishDraft=function(n,r){var i=n&&n[jr];i&&i.C||er(9),i.I&&er(10);var o=i.A;return Sb(o,r),Db(void 0,o)},t.setAutoFreeze=function(n){this.F=n},t.setUseProxies=function(n){n&&!A8&&er(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=jo("Patches").$;return Jl(n)?a(n,r):this.produce(n,function(l){return a(l,r)})},e}(),zr=new eU,c0=zr.produce;zr.produceWithPatches.bind(zr),zr.setAutoFreeze.bind(zr),zr.setUseProxies.bind(zr),zr.applyPatches.bind(zr);var O8=zr.createDraft.bind(zr),B8=zr.finishDraft.bind(zr);function ao(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f0=new WeakMap,id=new WeakMap,T8=new WeakMap,F8=new WeakMap,P8=new WeakMap,I8=new WeakMap;function N8(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 d0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?N8(Object(n),!0).forEach(function(r){ao(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var tU=()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of k.pathRefs(e))FU.transform(n,t);for(var r of k.pointRefs(e))PU.transform(r,t);for(var i of k.rangeRefs(e))LU.transform(i,t);var o=new Set,a=[],l=h=>{if(h){var E=h.join(",");o.has(E)||(o.add(E),a.push(h))}},u=f0.get(e)||[],f=nU(t);for(var d of u){var p=G.transform(d,t);l(p)}for(var g of f)l(g);f0.set(e,a),Z.transform(e,t),e.operations.push(t),k.normalize(e),t.type==="set_selection"&&(e.marks=null),id.get(e)||(id.set(e,!0),Promise.resolve().then(()=>{id.set(e,!1),e.onChange(),e.operations=[]}))},addMark:(t,n)=>{var{selection:r}=e;if(r)if(re.isExpanded(r))Z.setNodes(e,{[t]:n},{match:Se.isText,split:!0});else{var i=d0(d0({},k.marks(e)||{}),{},{[t]:n});e.marks=i,id.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:n}=e;n&&re.isCollapsed(n)&&Z.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&re.isCollapsed(n)&&Z.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&re.isExpanded(n)&&Z.delete(e,{reverse:t==="backward"})},getFragment:()=>{var{selection:t}=e;return t?be.fragment(e,t):[]},insertBreak:()=>{Z.splitNodes(e,{always:!0})},insertFragment:t=>{Z.insertFragment(e,t)},insertNode:t=>{Z.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var i=d0({text:t},r);Z.insertNodes(e,i)}else Z.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!Se.isText(n)){if(ke.isElement(n)&&n.children.length===0){var i={text:""};Z.insertNodes(e,i,{at:r.concat(0),voids:!0});return}for(var o=k.isEditor(n)?!1:ke.isElement(n)&&(e.isInline(n)||n.children.length===0||Se.isText(n.children[0])||e.isInline(n.children[0])),a=0,l=0;l<n.children.length;l++,a++){var u=be.get(e,r);if(!Se.isText(u)){var f=n.children[l],d=u.children[a-1],p=l===n.children.length-1,g=Se.isText(f)||ke.isElement(f)&&e.isInline(f);if(g!==o)Z.removeNodes(e,{at:r.concat(a),voids:!0}),a--;else if(ke.isElement(f)){if(e.isInline(f)){if(d==null||!Se.isText(d)){var h={text:""};Z.insertNodes(e,h,{at:r.concat(a),voids:!0}),a++}else if(p){var E={text:""};Z.insertNodes(e,E,{at:r.concat(a+1),voids:!0}),a++}}}else d!=null&&Se.isText(d)&&(Se.equals(f,d,{loose:!0})?(Z.mergeNodes(e,{at:r.concat(a),voids:!0}),a--):d.text===""?(Z.removeNodes(e,{at:r.concat(a-1),voids:!0}),a--):f.text===""&&(Z.removeNodes(e,{at:r.concat(a),voids:!0}),a--))}}}},removeMark:t=>{var{selection:n}=e;if(n)if(re.isExpanded(n))Z.unsetNodes(e,t,{match:Se.isText,split:!0});else{var r=d0({},k.marks(e)||{});delete r[t],e.marks=r,id.get(e)||e.onChange()}}};return e},nU=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":{var{path:t}=e;return G.levels(t)}case"insert_node":{var{node:n,path:r}=e,i=G.levels(r),o=Se.isText(n)?[]:Array.from(be.nodes(n),Y=>{var[,ce]=Y;return r.concat(ce)});return[...i,...o]}case"merge_node":{var{path:a}=e,l=G.ancestors(a),u=G.previous(a);return[...l,u]}case"move_node":{var{path:f,newPath:d}=e;if(G.equals(f,d))return[];var p=[],g=[];for(var h of G.ancestors(f)){var E=G.transform(h,e);p.push(E)}for(var w of G.ancestors(d)){var y=G.transform(w,e);g.push(y)}var $=g[g.length-1],m=d[d.length-1],S=$.concat(m);return[...p,...g,S]}case"remove_node":{var{path:D}=e,A=G.ancestors(D);return[...A]}case"split_node":{var{path:B}=e,P=G.levels(B),U=G.next(B);return[...P,U]}default:return[]}};function rU(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 zo(e,t){if(e==null)return{};var n=rU(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 Fb=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=!n,i=n?uU(t):t,o=Ge.None,a=Ge.None,l=0,u=null,f=null;for(var d of i){var p=d.codePointAt(0);if(!p)break;var g=$U(d,p);if([o,a]=r?[a,g]:[g,o],Ru(o,Ge.ZWJ)&&Ru(a,Ge.ExtPict)&&(r?u=L8(t.substring(0,l)):u=L8(t.substring(0,t.length-l)),!u)||Ru(o,Ge.RI)&&Ru(a,Ge.RI)&&(f!==null?f=!f:r?f=!0:f=DU(t.substring(0,t.length-l)),!f)||o!==Ge.None&&a!==Ge.None&&CU(o,a))break;l+=d.length}return l||1},iU=/\s/,oU=/[\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]/,aU=/['\u2018\u2019]/,lU=function(t){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=0,i=!1;t.length>0;){var o=Fb(t,n),[a,l]=Pb(t,o,n);if(sU(a,l,n))i=!0,r+=o;else if(!i)r+=o;else break;t=l}return r},Pb=(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)]},sU=function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(iU.test(t))return!1;if(aU.test(t)){var i=Fb(n,r),[o,a]=Pb(n,i,r);if(e(o,a,r))return!0}return!oU.test(t)},uU=function*(t){for(var n=t.length-1,r=0;r<t.length;r++){var i=t.charAt(n-r);if(fU(i.charCodeAt(0))){var o=t.charAt(n-r-1);if(cU(o.charCodeAt(0))){yield o+i,r++;continue}}yield i}},cU=e=>e>=55296&&e<=56319,fU=e=>e>=56320&&e<=57343,Ge;(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"})(Ge||(Ge={}));var dU=/^(?:[\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])$/,pU=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,hU=/^(?:[\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])$/,gU=/^[\u1100-\u115F\uA960-\uA97C]$/,vU=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,mU=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,yU=/^[\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]$/,bU=/^[\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]$/,wU=/^(?:[\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])$/,$U=(e,t)=>{var n=Ge.Any;return e.search(dU)!==-1&&(n|=Ge.Extend),t===8205&&(n|=Ge.ZWJ),t>=127462&&t<=127487&&(n|=Ge.RI),e.search(pU)!==-1&&(n|=Ge.Prepend),e.search(hU)!==-1&&(n|=Ge.SpacingMark),e.search(gU)!==-1&&(n|=Ge.L),e.search(vU)!==-1&&(n|=Ge.V),e.search(mU)!==-1&&(n|=Ge.T),e.search(yU)!==-1&&(n|=Ge.LV),e.search(bU)!==-1&&(n|=Ge.LVT),e.search(wU)!==-1&&(n|=Ge.ExtPict),n};function Ru(e,t){return(e&t)!==0}var EU=[[Ge.L,Ge.L|Ge.V|Ge.LV|Ge.LVT],[Ge.LV|Ge.V,Ge.V|Ge.T],[Ge.LVT|Ge.T,Ge.T],[Ge.Any,Ge.Extend|Ge.ZWJ],[Ge.Any,Ge.SpacingMark],[Ge.Prepend,Ge.Any],[Ge.ZWJ,Ge.ExtPict],[Ge.RI,Ge.RI]];function CU(e,t){return EU.findIndex(n=>Ru(e,n[0])&&Ru(t,n[1]))===-1}var SU=/(?:[\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$/,L8=e=>e.search(SU)!==-1,xU=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,DU=e=>{var t=e.match(xU);if(t===null)return!1;var n=t[0].length/2;return n%2===1},R8=e=>ur(e)&&be.isNodeList(e.children)&&!k.isEditor(e),ke={isAncestor(e){return ur(e)&&be.isNodeList(e.children)},isElement:R8,isElementList(e){return Array.isArray(e)&&e.every(t=>ke.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 R8(t)&&t[r]===n},matches(e,t){for(var n in t)if(n!=="children"&&e[n]!==t[n])return!1;return!0}},AU=["text"],_U=["text"];function M8(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 Mu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?M8(Object(n),!0).forEach(function(r){ao(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var j8=new WeakMap,k={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=k.path(e,i),l=r==="lowest";for(var[u,f]of k.levels(e,{at:a,voids:n,match:o,reverse:l}))if(!Se.isText(u)&&!G.equals(a,f))return[u,f]}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=k.point(e,t,{edge:"end"}),i=k.end(e,[]),o={anchor:r,focus:i},{distance:a=1}=n,l=0,u;for(var f of k.positions(e,Mu(Mu({},n),{},{at:o}))){if(l>a)break;l!==0&&(u=f),l++}return u},before(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=k.start(e,[]),i=k.point(e,t,{edge:"start"}),o={anchor:r,focus:i},{distance:a=1}=n,l=0,u;for(var f of k.positions(e,Mu(Mu({},n),{},{at:o,reverse:!0}))){if(l>a)break;l!==0&&(u=f),l++}return u},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[k.start(e,t),k.end(e,t)]},end(e,t){return k.point(e,t,{edge:"end"})},first(e,t){var n=k.path(e,t,{edge:"start"});return k.node(e,n)},fragment(e,t){var n=k.range(e,t),r=be.fragment(e,n);return r},hasBlocks(e,t){return t.children.some(n=>k.isBlock(e,n))},hasInlines(e,t){return t.children.some(n=>Se.isText(n)||k.isInline(e,n))},hasTexts(e,t){return t.children.every(n=>Se.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 ke.isElement(t)&&!e.isInline(t)},isEditor(e){if(!ur(e))return!1;var t=j8.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||ur(e.marks))&&(e.selection===null||re.isRange(e.selection))&&be.isNodeList(e.children)&&Ca.isOperationList(e.operations);return j8.set(e,n),n},isEnd(e,t,n){var r=k.end(e,n);return Ye.equals(t,r)},isEdge(e,t,n){return k.isStart(e,t,n)||k.isEnd(e,t,n)},isEmpty(e,t){var{children:n}=t,[r]=n;return n.length===0||n.length===1&&Se.isText(r)&&r.text===""&&!e.isVoid(t)},isInline(e,t){return ke.isElement(t)&&e.isInline(t)},isNormalizing(e){var t=T8.get(e);return t===void 0?!0:t},isStart(e,t,n){if(t.offset!==0)return!1;var r=k.start(e,n);return Ye.equals(t,r)},isVoid(e,t){return ke.isElement(t)&&e.isVoid(t)},last(e,t){var n=k.path(e,t,{edge:"end"});return k.node(e,n)},leaf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=k.path(e,t,n),i=be.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=[],l=k.path(e,n);for(var[u,f]of be.levels(e,l))if(!!o(u,f)&&(a.push([u,f]),!i&&k.isVoid(e,u)))break;r&&a.reverse(),yield*a}},marks(e){var{marks:t,selection:n}=e;if(!n)return null;if(t)return t;if(re.isExpanded(n)){var[r]=k.nodes(e,{match:Se.isText});if(r){var[i]=r,o=zo(i,AU);return o}else return{}}var{anchor:a}=n,{path:l}=a,[u]=k.leaf(e,l);if(a.offset===0){var f=k.previous(e,{at:l,match:Se.isText}),d=k.above(e,{match:w=>k.isBlock(e,w)});if(f&&d){var[p,g]=f,[,h]=d;G.isAncestor(h,g)&&(u=p)}}var E=zo(u,_U);return E},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=k.after(e,o,{voids:r});if(!!a){var[,l]=k.last(e,[]),u=[a.path,l];if(G.isPath(o)&&o.length===0)throw new Error("Cannot get the next node from the root node!");if(i==null)if(G.isPath(o)){var[f]=k.parent(e,o);i=p=>f.children.includes(p)}else i=()=>!0;var[d]=k.nodes(e,{at:u,match:i,mode:n,voids:r});return d}}},node(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=k.path(e,t,n),i=be.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:l}=t;if(l||(l=()=>!0),!!n){var u,f;if(OU.isSpan(n))u=n[0],f=n[1];else{var d=k.path(e,n,{edge:"start"}),p=k.path(e,n,{edge:"end"});u=o?p:d,f=o?d:p}var g=be.nodes(e,{reverse:o,from:u,to:f,pass:S=>{var[D]=S;return a?!1:k.isVoid(e,D)}}),h=[],E;for(var[w,y]of g){var $=E&&G.compare(y,E[1])===0;if(!(r==="highest"&&$)){if(!l(w,y)){if(i&&!$&&Se.isText(w))return;continue}if(r==="lowest"&&$){E=[w,y];continue}var m=r==="lowest"?E:[w,y];m&&(i?h.push(m):yield m),E=[w,y]}}r==="lowest"&&E&&(i?h.push(E):yield E),i&&(yield*h)}},normalize(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:n=!1}=t,r=o=>f0.get(o)||[];if(!!k.isNormalizing(e)){if(n){var i=Array.from(be.nodes(e),o=>{var[,a]=o;return a});f0.set(e,i)}r(e).length!==0&&k.withoutNormalizing(e,()=>{for(var o of r(e))if(be.has(e,o)){var a=k.node(e,o),[l,u]=a;ke.isElement(l)&&l.children.length===0&&e.normalizeNode(a)}for(var f=r(e).length*42,d=0;r(e).length!==0;){if(d>f)throw new Error(`
8
8
  Could not completely normalize the editor after `.concat(f,` iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.
9
- `));var p=r(e).pop();if(be.has(e,p)){var g=k.node(e,p);e.normalizeNode(g)}d++}})}},parent(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=k.path(e,t,n),i=G.parent(r),o=k.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(G.isPath(t)){if(i==="start"){var[,o]=be.first(e,t);t=o}else if(i==="end"){var[,a]=be.last(e,t);t=a}}return re.isRange(t)&&(i==="start"?t=re.start(t):i==="end"?t=re.end(t):t=G.common(t.anchor.path,t.focus.path)),Ye.isPoint(t)&&(t=t.path),r!=null&&(t=t.slice(0,r)),t},hasPath(e,t){return be.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,l=k.pathRefs(e);return l.delete(i),i.current=null,a}},o=k.pathRefs(e);return o.add(i),i},pathRefs(e){var t=F8.get(e);return t||(t=new Set,F8.set(e,t)),t},point(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:r="start"}=n;if(G.isPath(t)){var i;if(r==="end"){var[,o]=be.last(e,t);i=o}else{var[,a]=be.first(e,t);i=a}var l=be.get(e,i);if(!Se.isText(l))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"?l.text.length:0}}if(re.isRange(t)){var[u,f]=re.edges(t);return r==="start"?u:f}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,l=k.pointRefs(e);return l.delete(i),i.current=null,a}},o=k.pointRefs(e);return o.add(i),i},pointRefs(e){var t=P8.get(e);return t||(t=new Set,P8.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=k.range(e,n),[l,u]=re.edges(a),f=i?u:l,d=!1,p="",g=0,h=0,E=0;for(var[w,y]of k.nodes(e,{at:n,reverse:i,voids:o})){if(ke.isElement(w)){if(!o&&e.isVoid(w)){yield k.start(e,y);continue}if(e.isInline(w))continue;if(k.hasInlines(e,w)){var $=G.isAncestor(y,u.path)?u:k.end(e,y),m=G.isAncestor(y,l.path)?l:k.start(e,y);p=k.string(e,{anchor:m,focus:$},{voids:o}),d=!0}}if(Se.isText(w)){var S=G.equals(y,f.path);for(S?(h=i?f.offset:w.text.length-f.offset,E=f.offset):(h=w.text.length,E=i?h:0),(S||d||r==="offset")&&(yield{path:y,offset:E},d=!1);;){if(g===0){if(p==="")break;g=D(p,r,i),p=Pb(p,g,i)[1]}if(E=i?E-g:E+g,h=h-g,h<0){g=-h;break}g=0,yield{path:y,offset:E}}}}function D(A,B,P){return B==="character"?Fb(A,P):B==="word"?lU(A,P):B==="line"||B==="block"?A.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=k.before(e,o,{voids:r});if(!!a){var[,l]=k.first(e,[]),u=[a.path,l];if(G.isPath(o)&&o.length===0)throw new Error("Cannot get the previous node from the root node!");if(i==null)if(G.isPath(o)){var[f]=k.parent(e,o);i=p=>f.children.includes(p)}else i=()=>!0;var[d]=k.nodes(e,{reverse:!0,at:u,match:i,mode:n,voids:r});return d}}},range(e,t,n){if(re.isRange(t)&&!n)return t;var r=k.start(e,t),i=k.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,l=k.rangeRefs(e);return l.delete(i),i.current=null,a}},o=k.rangeRefs(e);return o.add(i),i},rangeRefs(e){var t=I8.get(e);return t||(t=new Set,I8.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){T8.set(e,t)},start(e,t){return k.point(e,t,{edge:"start"})},string(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,i=k.range(e,t),[o,a]=re.edges(i),l="";for(var[u,f]of k.nodes(e,{at:i,match:Se.isText,voids:r})){var d=u.text;G.equals(f,a.path)&&(d=d.slice(0,a.offset)),G.equals(f,o.path)&&(d=d.slice(o.offset)),l+=d}return l},unhangRange(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,[i,o]=re.edges(t);if(i.offset!==0||o.offset!==0||re.isCollapsed(t))return t;var a=k.above(e,{at:o,match:h=>k.isBlock(e,h)}),l=a?a[1]:[],u=k.start(e,[]),f={anchor:u,focus:o},d=!0;for(var[p,g]of k.nodes(e,{at:f,match:Se.isText,reverse:!0,voids:r})){if(d){d=!1;continue}if(p.text!==""||G.isBefore(g,l)){o={path:g,offset:p.text.length};break}}return{anchor:i,focus:o}},void(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return k.above(e,Mu(Mu({},t),{},{match:n=>k.isVoid(e,n)}))},withoutNormalizing(e,t){var n=k.isNormalizing(e);k.setNormalizing(e,!1);try{t()}finally{k.setNormalizing(e,n)}k.normalize(e)}},kU={isLocation(e){return G.isPath(e)||Ye.isPoint(e)||re.isRange(e)}},OU={isSpan(e){return Array.isArray(e)&&e.length===2&&e.every(G.isPath)}},BU=["children"],TU=["text"],z8=new WeakMap,be={ancestor(e,t){var n=be.get(e,t);if(Se.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 G.ancestors(t,n)){var i=be.ancestor(e,r),o=[i,r];yield o}},child(e,t){if(Se.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=be.ancestor(e,t),{children:o}=i,a=r?o.length-1:0;r?a>=0:a<o.length;){var l=be.child(i,a),u=t.concat(a);yield[l,u],a=r?a-1:a+1}},common(e,t,n){var r=G.common(t,n),i=be.get(e,r);return[i,r]},descendant(e,t){var n=be.get(e,t);if(k.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 be.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 be.nodes(e,t))ke.isElement(n)&&(yield[n,r])},extractProps(e){if(ke.isAncestor(e)){var t=zo(e,BU);return t}else{var t=zo(e,TU);return t}},first(e,t){for(var n=t.slice(),r=be.get(e,n);r&&!(Se.isText(r)||r.children.length===0);)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(Se.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));var n=c0({children:e.children},r=>{var[i,o]=re.edges(t),a=be.nodes(r,{reverse:!0,pass:g=>{var[,h]=g;return!re.includes(t,h)}});for(var[,l]of a){if(!re.includes(t,l)){var u=be.parent(r,l),f=l[l.length-1];u.children.splice(f,1)}if(G.equals(l,o.path)){var d=be.leaf(r,l);d.text=d.text.slice(0,o.offset)}if(G.equals(l,i.path)){var p=be.leaf(r,l);p.text=p.text.slice(i.offset)}}k.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(Se.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(Se.isText(n)||!n.children[i])return!1;n=n.children[i]}return!0},isNode(e){return Se.isText(e)||ke.isElement(e)||k.isEditor(e)},isNodeList(e){if(!Array.isArray(e))return!1;var t=z8.get(e);if(t!==void 0)return t;var n=e.every(r=>be.isNode(r));return z8.set(e,n),n},last(e,t){for(var n=t.slice(),r=be.get(e,n);r&&!(Se.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=be.get(e,t);if(!Se.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 G.levels(t,n)){var i=be.get(e,r);yield[i,r]}},matches(e,t){return ke.isElement(e)&&ke.isElementProps(t)&&ke.matches(e,t)||Se.isText(e)&&Se.isTextProps(t)&&Se.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,l=[],u=e;!(o&&(r?G.isBefore(l,o):G.isAfter(l,o)));){if(a.has(u)||(yield[u,l]),!a.has(u)&&!Se.isText(u)&&u.children.length!==0&&(n==null||n([u,l])===!1)){a.add(u);var f=r?u.children.length-1:0;G.isAncestor(l,i)&&(f=i[l.length]),l=l.concat(f),u=be.get(e,l);continue}if(l.length===0)break;if(!r){var d=G.next(l);if(be.has(e,d)){l=d,u=be.get(e,l);continue}}if(r&&l[l.length-1]!==0){var p=G.previous(l);l=p,u=be.get(e,l);continue}l=G.parent(l),u=be.get(e,l),a.add(u)}},parent(e,t){var n=G.parent(t),r=be.get(e,n);if(Se.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 Se.isText(e)?e.text:e.children.map(be.string).join("")},*texts(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of be.nodes(e,t))Se.isText(n)&&(yield[n,r])}};function V8(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 Xt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?V8(Object(n),!0).forEach(function(r){ao(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Ca={isNodeOperation(e){return Ca.isOperation(e)&&e.type.endsWith("_node")},isOperation(e){if(!ur(e))return!1;switch(e.type){case"insert_node":return G.isPath(e.path)&&be.isNode(e.node);case"insert_text":return typeof e.offset=="number"&&typeof e.text=="string"&&G.isPath(e.path);case"merge_node":return typeof e.position=="number"&&G.isPath(e.path)&&ur(e.properties);case"move_node":return G.isPath(e.path)&&G.isPath(e.newPath);case"remove_node":return G.isPath(e.path)&&be.isNode(e.node);case"remove_text":return typeof e.offset=="number"&&typeof e.text=="string"&&G.isPath(e.path);case"set_node":return G.isPath(e.path)&&ur(e.properties)&&ur(e.newProperties);case"set_selection":return e.properties===null&&re.isRange(e.newProperties)||e.newProperties===null&&re.isRange(e.properties)||ur(e.properties)&&ur(e.newProperties);case"split_node":return G.isPath(e.path)&&typeof e.position=="number"&&ur(e.properties);default:return!1}},isOperationList(e){return Array.isArray(e)&&e.every(t=>Ca.isOperation(t))},isSelectionOperation(e){return Ca.isOperation(e)&&e.type.endsWith("_selection")},isTextOperation(e){return Ca.isOperation(e)&&e.type.endsWith("_text")},inverse(e){switch(e.type){case"insert_node":return Xt(Xt({},e),{},{type:"remove_node"});case"insert_text":return Xt(Xt({},e),{},{type:"remove_text"});case"merge_node":return Xt(Xt({},e),{},{type:"split_node",path:G.previous(e.path)});case"move_node":{var{newPath:t,path:n}=e;if(G.equals(t,n))return e;if(G.isSibling(n,t))return Xt(Xt({},e),{},{path:t,newPath:n});var r=G.transform(n,e),i=G.transform(G.next(n),e);return Xt(Xt({},e),{},{path:r,newPath:i})}case"remove_node":return Xt(Xt({},e),{},{type:"insert_node"});case"remove_text":return Xt(Xt({},e),{},{type:"insert_text"});case"set_node":{var{properties:o,newProperties:a}=e;return Xt(Xt({},e),{},{properties:a,newProperties:o})}case"set_selection":{var{properties:l,newProperties:u}=e;return l==null?Xt(Xt({},e),{},{properties:u,newProperties:null}):u==null?Xt(Xt({},e),{},{properties:null,newProperties:l}):Xt(Xt({},e),{},{properties:u,newProperties:l})}case"split_node":return Xt(Xt({},e),{},{type:"merge_node",path:G.next(e.path)})}}},G={ancestors(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=G.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 G.equals(r,i)&&o>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),i=t.slice(0,n);return G.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 G.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 G.compare(e,t)===1},isAncestor(e,t){return e.length<t.length&&G.compare(e,t)===0},isBefore(e,t){return G.compare(e,t)===-1},isChild(e,t){return e.length===t.length+1&&G.compare(e,t)===0},isCommon(e,t){return e.length<=t.length&&G.compare(e,t)===0},isDescendant(e,t){return e.length>t.length&&G.compare(e,t)===0},isParent(e,t){return e.length+1===t.length&&G.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&&G.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(!G.isAncestor(t,e)&&!G.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 c0(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;(G.equals(o,r)||G.endsBefore(o,r)||G.isAncestor(o,r))&&(r[o.length-1]+=1);break}case"remove_node":{var{path:a}=t;if(G.equals(a,r)||G.isAncestor(a,r))return null;G.endsBefore(a,r)&&(r[a.length-1]-=1);break}case"merge_node":{var{path:l,position:u}=t;G.equals(l,r)||G.endsBefore(l,r)?r[l.length-1]-=1:G.isAncestor(l,r)&&(r[l.length-1]-=1,r[l.length]+=u);break}case"split_node":{var{path:f,position:d}=t;if(G.equals(f,r)){if(i==="forward")r[r.length-1]+=1;else if(i!=="backward")return null}else G.endsBefore(f,r)?r[f.length-1]+=1:G.isAncestor(f,r)&&e[f.length]>=d&&(r[f.length-1]+=1,r[f.length]-=d);break}case"move_node":{var{path:p,newPath:g}=t;if(G.equals(p,g))return;if(G.isAncestor(p,r)||G.equals(p,r)){var h=g.slice();return G.endsBefore(p,g)&&p.length<g.length&&(h[p.length-1]-=1),h.concat(r.slice(p.length))}else G.isSibling(p,g)&&(G.isAncestor(g,r)||G.equals(g,r))?G.endsBefore(p,r)?r[p.length-1]-=1:r[p.length-1]+=1:G.endsBefore(g,r)||G.equals(g,r)||G.isAncestor(g,r)?(G.endsBefore(p,r)&&(r[p.length-1]-=1),r[g.length-1]+=1):G.endsBefore(p,r)&&(G.equals(g,r)&&(r[g.length-1]+=1),r[p.length-1]-=1);break}}}})}},FU={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=G.transform(n,t,{affinity:r});e.current=i,i==null&&e.unref()}}};function U8(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 H8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?U8(Object(n),!0).forEach(function(r){ao(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Ye={compare(e,t){var n=G.compare(e.path,t.path);return n===0?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter(e,t){return Ye.compare(e,t)===1},isBefore(e,t){return Ye.compare(e,t)===-1},equals(e,t){return e.offset===t.offset&&G.equals(e.path,t.path)},isPoint(e){return ur(e)&&typeof e.offset=="number"&&G.isPath(e.path)},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return c0(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=G.transform(o,t,n);break}case"insert_text":{G.equals(t.path,o)&&t.offset<=a&&(r.offset+=t.text.length);break}case"merge_node":{G.equals(t.path,o)&&(r.offset+=t.position),r.path=G.transform(o,t,n);break}case"remove_text":{G.equals(t.path,o)&&t.offset<=a&&(r.offset-=Math.min(a-t.offset,t.text.length));break}case"remove_node":{if(G.equals(t.path,o)||G.isAncestor(t.path,o))return null;r.path=G.transform(o,t,n);break}case"split_node":{if(G.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=G.transform(o,t,H8(H8({},n),{},{affinity:"forward"})))}else r.path=G.transform(o,t,n);break}}})}},PU={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=Ye.transform(n,t,{affinity:r});e.current=i,i==null&&e.unref()}}},IU=["anchor","focus"];function W8(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 NU(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?W8(Object(n),!0).forEach(function(r){ao(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var re={edges(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:i}=e;return re.isBackward(e)===n?[r,i]:[i,r]},end(e){var[,t]=re.edges(e);return t},equals(e,t){return Ye.equals(e.anchor,t.anchor)&&Ye.equals(e.focus,t.focus)},includes(e,t){if(re.isRange(t)){if(re.includes(e,t.anchor)||re.includes(e,t.focus))return!0;var[n,r]=re.edges(e),[i,o]=re.edges(t);return Ye.isBefore(n,i)&&Ye.isAfter(r,o)}var[a,l]=re.edges(e),u=!1,f=!1;return Ye.isPoint(t)?(u=Ye.compare(t,a)>=0,f=Ye.compare(t,l)<=0):(u=G.compare(t,a.path)>=0,f=G.compare(t,l.path)<=0),u&&f},intersection(e,t){var n=zo(e,IU),[r,i]=re.edges(e),[o,a]=re.edges(t),l=Ye.isBefore(r,o)?o:r,u=Ye.isBefore(i,a)?i:a;return Ye.isBefore(u,l)?null:NU({anchor:l,focus:u},n)},isBackward(e){var{anchor:t,focus:n}=e;return Ye.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return Ye.equals(t,n)},isExpanded(e){return!re.isCollapsed(e)},isForward(e){return!re.isBackward(e)},isRange(e){return ur(e)&&Ye.isPoint(e.anchor)&&Ye.isPoint(e.focus)},*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=re.edges(e);return t},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return c0(e,r=>{if(r===null)return null;var{affinity:i="inward"}=n,o,a;if(i==="inward"){var l=re.isCollapsed(r);re.isForward(r)?(o="forward",a=l?o:"backward"):(o="backward",a=l?o:"forward")}else i==="outward"?re.isForward(r)?(o="backward",a="forward"):(o="forward",a="backward"):(o=i,a=i);var u=Ye.transform(r.anchor,t,{affinity:o}),f=Ye.transform(r.focus,t,{affinity:a});if(!u||!f)return null;r.anchor=u,r.focus=f})}},LU={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=re.transform(n,t,{affinity:r});e.current=i,i==null&&e.unref()}}},q8=(e,t)=>{for(var n in e){var r=e[n],i=t[n];if(ur(r)&&ur(i)){if(!q8(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},RU=["text"],MU=["anchor","focus"];function G8(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 Vo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?G8(Object(n),!0).forEach(function(r){ao(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Se={equals(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:r=!1}=n;function i(o){var a=zo(o,RU);return a}return q8(r?i(e):e,r?i(t):t)},isText(e){return ur(e)&&typeof e.text=="string"},isTextList(e){return Array.isArray(e)&&e.every(t=>Se.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=[Vo({},e)];for(var r of t){var i=zo(r,MU),[o,a]=re.edges(r),l=[],u=0;for(var f of n){var{length:d}=f.text,p=u;if(u+=d,o.offset<=p&&a.offset>=u){Object.assign(f,i),l.push(f);continue}if(o.offset!==a.offset&&(o.offset===u||a.offset===p)||o.offset>u||a.offset<p||a.offset===p&&p!==0){l.push(f);continue}var g=f,h=void 0,E=void 0;if(a.offset<u){var w=a.offset-p;E=Vo(Vo({},g),{},{text:g.text.slice(w)}),g=Vo(Vo({},g),{},{text:g.text.slice(0,w)})}if(o.offset>p){var y=o.offset-p;h=Vo(Vo({},g),{},{text:g.text.slice(0,y)}),g=Vo(Vo({},g),{},{text:g.text.slice(y)})}Object.assign(g,i),h&&l.push(h),l.push(g),E&&l.push(E)}n=l}return n}};function K8(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 od(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?K8(Object(n),!0).forEach(function(r){ao(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var jU=(e,t,n)=>{switch(n.type){case"insert_node":{var{path:r,node:i}=n,o=be.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[l,u]of re.points(t))t[u]=Ye.transform(l,n);break}case"insert_text":{var{path:f,offset:d,text:p}=n;if(p.length===0)break;var g=be.leaf(e,f),h=g.text.slice(0,d),E=g.text.slice(d);if(g.text=h+p+E,t)for(var[w,y]of re.points(t))t[y]=Ye.transform(w,n);break}case"merge_node":{var{path:$}=n,m=be.get(e,$),S=G.previous($),D=be.get(e,S),A=be.parent(e,$),B=$[$.length-1];if(Se.isText(m)&&Se.isText(D))D.text+=m.text;else if(!Se.isText(m)&&!Se.isText(D))D.children.push(...m.children);else throw new Error('Cannot apply a "merge_node" operation at path ['.concat($,"] to nodes of different interfaces: ").concat(m," ").concat(D));if(A.children.splice(B,1),t)for(var[P,U]of re.points(t))t[U]=Ye.transform(P,n);break}case"move_node":{var{path:Y,newPath:ce}=n;if(G.isAncestor(Y,ce))throw new Error("Cannot move a path [".concat(Y,"] to new path [").concat(ce,"] because the destination is inside itself."));var ee=be.get(e,Y),ge=be.parent(e,Y),se=Y[Y.length-1];ge.children.splice(se,1);var xe=G.transform(Y,n),ve=be.get(e,G.parent(xe)),Oe=xe[xe.length-1];if(ve.children.splice(Oe,0,ee),t)for(var[Te,Ne]of re.points(t))t[Ne]=Ye.transform(Te,n);break}case"remove_node":{var{path:Re}=n,Ae=Re[Re.length-1],ae=be.parent(e,Re);if(ae.children.splice(Ae,1),t)for(var[M,R]of re.points(t)){var T=Ye.transform(M,n);if(t!=null&&T!=null)t[R]=T;else{var L=void 0,q=void 0;for(var[O,J]of be.texts(e))if(G.compare(J,Re)===-1)L=[O,J];else{q=[O,J];break}var ue=!1;L&&q&&(G.equals(q[1],Re)?ue=!G.hasPrevious(q[1]):ue=G.common(L[1],Re).length<G.common(q[1],Re).length),L&&!ue?(M.path=L[1],M.offset=L[0].text.length):q?(M.path=q[1],M.offset=0):t=null}}break}case"remove_text":{var{path:he,offset:te,text:Q}=n;if(Q.length===0)break;var Ce=be.leaf(e,he),oe=Ce.text.slice(0,te),ye=Ce.text.slice(te+Q.length);if(Ce.text=oe+ye,t)for(var[Le,$t]of re.points(t))t[$t]=Ye.transform(Le,n);break}case"set_node":{var{path:ft,properties:ot,newProperties:Ze}=n;if(ft.length===0)throw new Error("Cannot set properties on the root node!");var dt=be.get(e,ft);for(var pt in Ze){if(pt==="children"||pt==="text")throw new Error('Cannot set the "'.concat(pt,'" property of nodes!'));var rn=Ze[pt];rn==null?delete dt[pt]:dt[pt]=rn}for(var In in ot)Ze.hasOwnProperty(In)||delete dt[In];break}case"set_selection":{var{newProperties:mt}=n;if(mt==null)t=mt;else{if(t==null){if(!re.isRange(mt))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(mt)," when there is no current selection."));t=od({},mt)}for(var on in mt){var Kt=mt[on];if(Kt==null){if(on==="anchor"||on==="focus")throw new Error('Cannot remove the "'.concat(on,'" selection property'));delete t[on]}else t[on]=Kt}}break}case"split_node":{var{path:Yt,position:Jn,properties:dn}=n;if(Yt.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(Yt,"] because the root node cannot be split."));var Nn=be.get(e,Yt),Di=be.parent(e,Yt),Zi=Yt[Yt.length-1],$r;if(Se.isText(Nn)){var Fr=Nn.text.slice(0,Jn),Ai=Nn.text.slice(Jn);Nn.text=Fr,$r=od(od({},dn),{},{text:Ai})}else{var Pr=Nn.children.slice(0,Jn),Qr=Nn.children.slice(Jn);Nn.children=Pr,$r=od(od({},dn),{},{children:Qr})}if(Di.children.splice(Zi+1,0,$r),t)for(var[Er,To]of re.points(t))t[To]=Ye.transform(Er,n);break}}return t},zU={transform(e,t){e.children=O8(e.children);var n=e.selection&&O8(e.selection);try{n=jU(e,n,t)}finally{e.children=B8(e.children),n?e.selection=Jl(n)?B8(n):n:e.selection=null}}},VU=["text"],UU=["children"];function Y8(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 X8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Y8(Object(n),!0).forEach(function(r){ao(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var HU={insertNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};k.withoutNormalizing(e,()=>{var{hanging:r=!1,voids:i=!1,mode:o="lowest"}=n,{at:a,match:l,select:u}=n;if(be.isNode(t)&&(t=[t]),t.length!==0){var[f]=t;if(a||(e.selection?a=e.selection:e.children.length>0?a=k.end(e,[]):a=[0],u=!0),u==null&&(u=!1),re.isRange(a))if(r||(a=k.unhangRange(e,a)),re.isCollapsed(a))a=a.anchor;else{var[,d]=re.edges(a),p=k.pointRef(e,d);Z.delete(e,{at:a}),a=p.unref()}if(Ye.isPoint(a)){l==null&&(Se.isText(f)?l=B=>Se.isText(B):e.isInline(f)?l=B=>Se.isText(B)||k.isInline(e,B):l=B=>k.isBlock(e,B));var[g]=k.nodes(e,{at:a.path,match:l,mode:o,voids:i});if(g){var[,h]=g,E=k.pathRef(e,h),w=k.isEnd(e,a,h);Z.splitNodes(e,{at:a,match:l,mode:o,voids:i});var y=E.unref();a=w?G.next(y):y}else return}var $=G.parent(a),m=a[a.length-1];if(!(!i&&k.void(e,{at:$}))){for(var S of t){var D=$.concat(m);m++,e.apply({type:"insert_node",path:D,node:S}),a=G.next(a)}if(a=G.previous(a),u){var A=k.end(e,a);A&&Z.select(e,A)}}}})},liftNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};k.withoutNormalizing(e,()=>{var{at:n=e.selection,mode:r="lowest",voids:i=!1}=t,{match:o}=t;if(o==null&&(o=G.isPath(n)?ju(e,n):S=>k.isBlock(e,S)),!!n){var a=k.nodes(e,{at:n,match:o,mode:r,voids:i}),l=Array.from(a,S=>{var[,D]=S;return k.pathRef(e,D)});for(var u of l){var f=u.unref();if(f.length<2)throw new Error("Cannot lift node at a path [".concat(f,"] because it has a depth of less than `2`."));var d=k.node(e,G.parent(f)),[p,g]=d,h=f[f.length-1],{length:E}=p.children;if(E===1){var w=G.next(g);Z.moveNodes(e,{at:f,to:w,voids:i}),Z.removeNodes(e,{at:g,voids:i})}else if(h===0)Z.moveNodes(e,{at:f,to:g,voids:i});else if(h===E-1){var y=G.next(g);Z.moveNodes(e,{at:f,to:y,voids:i})}else{var $=G.next(f),m=G.next(g);Z.splitNodes(e,{at:$,voids:i}),Z.moveNodes(e,{at:f,to:m,voids:i})}}}})},mergeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};k.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(G.isPath(r)){var[l]=k.parent(e,r);n=Y=>l.children.includes(Y)}else n=Y=>k.isBlock(e,Y);if(!i&&re.isRange(r)&&(r=k.unhangRange(e,r)),re.isRange(r))if(re.isCollapsed(r))r=r.anchor;else{var[,u]=re.edges(r),f=k.pointRef(e,u);Z.delete(e,{at:r}),r=f.unref(),t.at==null&&Z.select(e,r)}var[d]=k.nodes(e,{at:r,match:n,voids:o,mode:a}),p=k.previous(e,{at:r,match:n,voids:o,mode:a});if(!(!d||!p)){var[g,h]=d,[E,w]=p;if(!(h.length===0||w.length===0)){var y=G.next(w),$=G.common(h,w),m=G.isSibling(h,w),S=Array.from(k.levels(e,{at:h}),Y=>{var[ce]=Y;return ce}).slice($.length).slice(0,-1),D=k.above(e,{at:h,mode:"highest",match:Y=>S.includes(Y)&&J8(e,Y)}),A=D&&k.pathRef(e,D[1]),B,P;if(Se.isText(g)&&Se.isText(E)){var U=zo(g,VU);P=E.text.length,B=U}else if(ke.isElement(g)&&ke.isElement(E)){var U=zo(g,UU);P=E.children.length,B=U}else throw new Error("Cannot merge the node at path [".concat(h,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(g)," ").concat(JSON.stringify(E)));m||Z.moveNodes(e,{at:h,to:y,voids:o}),A&&Z.removeNodes(e,{at:A.current,voids:o}),ke.isElement(E)&&k.isEmpty(e,E)||Se.isText(E)&&E.text===""&&w[w.length-1]!==0?Z.removeNodes(e,{at:w,voids:o}):e.apply({type:"merge_node",path:y,position:P,properties:B}),A&&A.unref()}}}})},moveNodes(e,t){k.withoutNormalizing(e,()=>{var{to:n,at:r=e.selection,mode:i="lowest",voids:o=!1}=t,{match:a}=t;if(!!r){a==null&&(a=G.isPath(r)?ju(e,r):h=>k.isBlock(e,h));var l=k.pathRef(e,n),u=k.nodes(e,{at:r,match:a,mode:i,voids:o}),f=Array.from(u,h=>{var[,E]=h;return k.pathRef(e,E)});for(var d of f){var p=d.unref(),g=l.current;p.length!==0&&e.apply({type:"move_node",path:p,newPath:g}),l.current&&G.isSibling(g,p)&&G.isAfter(g,p)&&(l.current=G.next(l.current))}l.unref()}})},removeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};k.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=G.isPath(o)?ju(e,o):g=>k.isBlock(e,g)),!n&&re.isRange(o)&&(o=k.unhangRange(e,o));var l=k.nodes(e,{at:o,match:a,mode:i,voids:r}),u=Array.from(l,g=>{var[,h]=g;return k.pathRef(e,h)});for(var f of u){var d=f.unref();if(d){var[p]=k.node(e,d);e.apply({type:"remove_node",path:d,node:p})}}}})},setNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};k.withoutNormalizing(e,()=>{var{match:r,at:i=e.selection}=n,{hanging:o=!1,mode:a="lowest",split:l=!1,voids:u=!1}=n;if(!!i){if(r==null&&(r=G.isPath(i)?ju(e,i):A=>k.isBlock(e,A)),!o&&re.isRange(i)&&(i=k.unhangRange(e,i)),l&&re.isRange(i)){if(re.isCollapsed(i)&&k.leaf(e,i.anchor)[0].text.length>0)return;var f=k.rangeRef(e,i,{affinity:"inward"}),[d,p]=re.edges(i),g=a==="lowest"?"lowest":"highest",h=k.isEnd(e,p,p.path);Z.splitNodes(e,{at:p,match:r,mode:g,voids:u,always:!h});var E=k.isStart(e,d,d.path);Z.splitNodes(e,{at:d,match:r,mode:g,voids:u,always:!E}),i=f.unref(),n.at==null&&Z.select(e,i)}for(var[w,y]of k.nodes(e,{at:i,match:r,mode:a,voids:u})){var $={},m={};if(y.length!==0){var S=!1;for(var D in t)D==="children"||D==="text"||t[D]!==w[D]&&(S=!0,w.hasOwnProperty(D)&&($[D]=w[D]),t[D]!=null&&(m[D]=t[D]));S&&e.apply({type:"set_node",path:y,properties:$,newProperties:m})}}}})},splitNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};k.withoutNormalizing(e,()=>{var{mode:n="lowest",voids:r=!1}=t,{match:i,at:o=e.selection,height:a=0,always:l=!1}=t;if(i==null&&(i=Te=>k.isBlock(e,Te)),re.isRange(o)&&(o=WU(e,o)),G.isPath(o)){var u=o,f=k.point(e,u),[d]=k.parent(e,u);i=Te=>Te===d,a=f.path.length-u.length+1,o=f,l=!0}if(!!o){var p=k.pointRef(e,o,{affinity:"backward"}),[g]=k.nodes(e,{at:o,match:i,mode:n,voids:r});if(!!g){var h=k.void(e,{at:o,mode:"highest"}),E=0;if(!r&&h){var[w,y]=h;if(ke.isElement(w)&&e.isInline(w)){var $=k.after(e,y);if(!$){var m={text:""},S=G.next(y);Z.insertNodes(e,m,{at:S,voids:r}),$=k.point(e,S)}o=$,l=!0}var D=o.path.length-y.length;a=D+1,l=!0}var A=k.pointRef(e,o),B=o.path.length-a,[,P]=g,U=o.path.slice(0,B),Y=a===0?o.offset:o.path[B]+E;for(var[ce,ee]of k.levels(e,{at:U,reverse:!0,voids:r})){var ge=!1;if(ee.length<P.length||ee.length===0||!r&&k.isVoid(e,ce))break;var se=p.current,xe=k.isEnd(e,se,ee);if(l||!p||!k.isEdge(e,se,ee)){ge=!0;var ve=be.extractProps(ce);e.apply({type:"split_node",path:ee,position:Y,properties:ve})}Y=ee[ee.length-1]+(ge||xe?1:0)}if(t.at==null){var Oe=A.current||k.end(e,[]);Z.select(e,Oe)}p.unref(),A.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;Z.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};k.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=G.isPath(o)?ju(e,o):g=>k.isBlock(e,g)),G.isPath(o)&&(o=k.range(e,o));var l=re.isRange(o)?k.rangeRef(e,o):null,u=k.nodes(e,{at:o,match:a,mode:n,voids:i}),f=Array.from(u,g=>{var[,h]=g;return k.pathRef(e,h)}).reverse(),d=function(h){var E=h.unref(),[w]=k.node(e,E),y=k.range(e,E);r&&l&&(y=re.intersection(l.current,y)),Z.liftNodes(e,{at:y,match:$=>ke.isAncestor(w)&&w.children.includes($),voids:i})};for(var p of f)d(p);l&&l.unref()}})},wrapNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};k.withoutNormalizing(e,()=>{var{mode:r="lowest",split:i=!1,voids:o=!1}=n,{match:a,at:l=e.selection}=n;if(!!l){if(a==null&&(G.isPath(l)?a=ju(e,l):e.isInline(t)?a=y=>k.isInline(e,y)||Se.isText(y):a=y=>k.isBlock(e,y)),i&&re.isRange(l)){var[u,f]=re.edges(l),d=k.rangeRef(e,l,{affinity:"inward"});Z.splitNodes(e,{at:f,match:a,voids:o}),Z.splitNodes(e,{at:u,match:a,voids:o}),l=d.unref(),n.at==null&&Z.select(e,l)}var p=Array.from(k.nodes(e,{at:l,match:e.isInline(t)?y=>k.isBlock(e,y):y=>k.isEditor(y),mode:"lowest",voids:o}));for(var[,g]of p){var h=re.isRange(l)?re.intersection(l,k.range(e,g)):l;if(!!h){var E=Array.from(k.nodes(e,{at:h,match:a,mode:r,voids:o}));if(E.length>0){var w=function(){var[y]=E,$=E[E.length-1],[,m]=y,[,S]=$;if(m.length===0&&S.length===0)return"continue";var D=G.equals(m,S)?G.parent(m):G.common(m,S),A=k.range(e,m,S),B=k.node(e,D),[P]=B,U=D.length+1,Y=G.next(S.slice(0,U)),ce=X8(X8({},t),{},{children:[]});Z.insertNodes(e,ce,{at:Y,voids:o}),Z.moveNodes(e,{at:A,match:ee=>ke.isAncestor(P)&&P.children.includes(ee),to:Y.concat(0),voids:o})}();if(w==="continue")continue}}}}})}},J8=(e,t)=>{if(ke.isElement(t)){var n=t;return k.isVoid(e,t)?!0:n.children.length===1?J8(e,n.children[0]):!1}else return!k.isEditor(t)},WU=(e,t)=>{if(re.isCollapsed(t))return t.anchor;var[,n]=re.edges(t),r=k.pointRef(e,n);return Z.delete(e,{at:t}),r.unref()},ju=(e,t)=>{var[n]=k.node(e,t);return r=>r===n};function Z8(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 Q8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Z8(Object(n),!0).forEach(function(r){ao(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var qU={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")Z.select(e,r.anchor);else if(n==="focus")Z.select(e,r.focus);else if(n==="start"){var[i]=re.edges(r);Z.select(e,i)}else if(n==="end"){var[,o]=re.edges(r);Z.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=re.isBackward(n)?"focus":"anchor"),a==="end"&&(a=re.isBackward(n)?"anchor":"focus");var{anchor:l,focus:u}=n,f={distance:r,unit:i},d={};if(a==null||a==="anchor"){var p=o?k.before(e,l,f):k.after(e,l,f);p&&(d.anchor=p)}if(a==null||a==="focus"){var g=o?k.before(e,u,f):k.after(e,u,f);g&&(d.focus=g)}Z.setSelection(e,d)}},select(e,t){var{selection:n}=e;if(t=k.range(e,t),n){Z.setSelection(e,t);return}if(!re.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=re.isBackward(r)?"focus":"anchor"),i==="end"&&(i=re.isBackward(r)?"anchor":"focus");var{anchor:o,focus:a}=r,l=i==="anchor"?o:a;Z.setSelection(e,{[i==="anchor"?"anchor":"focus"]:Q8(Q8({},l),t)})}},setSelection(e,t){var{selection:n}=e,r={},i={};if(!!n){for(var o in t)(o==="anchor"&&t.anchor!=null&&!Ye.equals(t.anchor,n.anchor)||o==="focus"&&t.focus!=null&&!Ye.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})}}},GU={delete(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};k.withoutNormalizing(e,()=>{var{reverse:n=!1,unit:r="character",distance:i=1,voids:o=!1}=t,{at:a=e.selection,hanging:l=!1}=t;if(!!a){if(re.isRange(a)&&re.isCollapsed(a)&&(a=a.anchor),Ye.isPoint(a)){var u=k.void(e,{at:a,mode:"highest"});if(!o&&u){var[,f]=u;a=f}else{var d={unit:r,distance:i},p=n?k.before(e,a,d)||k.start(e,[]):k.after(e,a,d)||k.end(e,[]);a={anchor:a,focus:p},l=!0}}if(G.isPath(a)){Z.removeNodes(e,{at:a,voids:o});return}if(!re.isCollapsed(a)){if(!l){var[,g]=re.edges(a),h=k.end(e,[]);Ye.equals(g,h)||(a=k.unhangRange(e,a,{voids:o}))}var[E,w]=re.edges(a),y=k.above(e,{match:ue=>k.isBlock(e,ue),at:E,voids:o}),$=k.above(e,{match:ue=>k.isBlock(e,ue),at:w,voids:o}),m=y&&$&&!G.equals(y[1],$[1]),S=G.equals(E.path,w.path),D=o?null:k.void(e,{at:E,mode:"highest"}),A=o?null:k.void(e,{at:w,mode:"highest"});if(D){var B=k.before(e,E);B&&y&&G.isAncestor(y[1],B.path)&&(E=B)}if(A){var P=k.after(e,w);P&&$&&G.isAncestor($[1],P.path)&&(w=P)}var U=[],Y;for(var ce of k.nodes(e,{at:a,voids:o})){var[ee,ge]=ce;Y&&G.compare(ge,Y)===0||(!o&&k.isVoid(e,ee)||!G.isCommon(ge,E.path)&&!G.isCommon(ge,w.path))&&(U.push(ce),Y=ge)}var se=Array.from(U,ue=>{var[,he]=ue;return k.pathRef(e,he)}),xe=k.pointRef(e,E),ve=k.pointRef(e,w);if(!S&&!D){var Oe=xe.current,[Te]=k.leaf(e,Oe),{path:Ne}=Oe,{offset:Re}=E,Ae=Te.text.slice(Re);Ae.length>0&&e.apply({type:"remove_text",path:Ne,offset:Re,text:Ae})}for(var ae of se){var M=ae.unref();Z.removeNodes(e,{at:M,voids:o})}if(!A){var R=ve.current,[T]=k.leaf(e,R),{path:L}=R,q=S?E.offset:0,O=T.text.slice(q,w.offset);O.length>0&&e.apply({type:"remove_text",path:L,offset:q,text:O})}!S&&m&&ve.current&&xe.current&&Z.mergeNodes(e,{at:ve.current,hanging:!0,voids:o});var J=n?xe.unref()||ve.unref():ve.unref()||xe.unref();t.at==null&&J&&Z.select(e,J)}}})},insertFragment(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};k.withoutNormalizing(e,()=>{var{hanging:r=!1,voids:i=!1}=n,{at:o=e.selection}=n;if(!!t.length){if(o)if(re.isRange(o))if(r||(o=k.unhangRange(e,o)),re.isCollapsed(o))o=o.anchor;else{var[,a]=re.edges(o);if(!i&&k.void(e,{at:a}))return;var l=k.pointRef(e,a);Z.delete(e,{at:o}),o=l.unref()}else G.isPath(o)&&(o=k.start(e,o));else return;if(!(!i&&k.void(e,{at:o}))){var u=k.above(e,{at:o,match:T=>k.isInline(e,T),mode:"highest",voids:i});if(u){var[,f]=u;if(k.isEnd(e,o,f)){var d=k.after(e,f);o=d}else if(k.isStart(e,o,f)){var p=k.before(e,f);o=p}}var g=k.above(e,{match:T=>k.isBlock(e,T),at:o,voids:i}),[,h]=g,E=k.isStart(e,o,h),w=k.isEnd(e,o,h),y=E&&w,$=!E||E&&w,m=!w,[,S]=be.first({children:t},[]),[,D]=be.last({children:t},[]),A=[],B=T=>{var[L,q]=T,O=q.length===0;return O?!1:y?!0:!($&&G.isAncestor(q,S)&&ke.isElement(L)&&!e.isVoid(L)&&!e.isInline(L)||m&&G.isAncestor(q,D)&&ke.isElement(L)&&!e.isVoid(L)&&!e.isInline(L))};for(var P of be.nodes({children:t},{pass:B}))B(P)&&A.push(P);var U=[],Y=[],ce=[],ee=!0,ge=!1;for(var[se]of A)ke.isElement(se)&&!e.isInline(se)?(ee=!1,ge=!0,Y.push(se)):ee?U.push(se):ce.push(se);var[xe]=k.nodes(e,{at:o,match:T=>Se.isText(T)||k.isInline(e,T),mode:"highest",voids:i}),[,ve]=xe,Oe=k.isStart(e,o,ve),Te=k.isEnd(e,o,ve),Ne=k.pathRef(e,w?G.next(h):h),Re=k.pathRef(e,Te?G.next(ve):ve),Ae=k.pathRef(e,h);Z.splitNodes(e,{at:o,match:T=>ge?k.isBlock(e,T):Se.isText(T)||k.isInline(e,T),mode:ge?"lowest":"highest",voids:i});var ae=k.pathRef(e,!Oe||Oe&&Te?G.next(ve):ve);if(Z.insertNodes(e,U,{at:ae.current,match:T=>Se.isText(T)||k.isInline(e,T),mode:"highest",voids:i}),y&&Y.length&&Z.delete(e,{at:Ae.unref(),voids:i}),Z.insertNodes(e,Y,{at:Ne.current,match:T=>k.isBlock(e,T),mode:"lowest",voids:i}),Z.insertNodes(e,ce,{at:Re.current,match:T=>Se.isText(T)||k.isInline(e,T),mode:"highest",voids:i}),!n.at){var M;ce.length>0?M=G.previous(Re.current):Y.length>0?M=G.previous(Ne.current):M=G.previous(ae.current);var R=k.end(e,M);Z.select(e,R)}ae.unref(),Ne.unref(),Re.unref()}}})},insertText(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};k.withoutNormalizing(e,()=>{var{voids:r=!1}=n,{at:i=e.selection}=n;if(!!i){if(G.isPath(i)&&(i=k.range(e,i)),re.isRange(i))if(re.isCollapsed(i))i=i.anchor;else{var o=re.end(i);if(!r&&k.void(e,{at:o}))return;var a=k.pointRef(e,o);Z.delete(e,{at:i,voids:r}),i=a.unref(),Z.setSelection(e,{anchor:i,focus:i})}if(!(!r&&k.void(e,{at:i}))){var{path:l,offset:u}=i;t.length>0&&e.apply({type:"insert_text",path:l,offset:u,text:t})}}})}};function eD(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 p0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eD(Object(n),!0).forEach(function(r){ao(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Z=p0(p0(p0(p0({},zU),HU),qU),GU),Jt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ib(e){var t={exports:{}};return e(t,t.exports),t.exports}var tD=9007199254740991,KU="[object Arguments]",YU="[object Function]",XU="[object GeneratorFunction]",Nb="[object Map]",JU="[object Object]",nD="[object Promise]",Lb="[object Set]",ZU="[object String]",rD="[object WeakMap]",iD="[object DataView]",QU=/[\\^$.*+?()[\]{}|]/g,eH=/^\[object .+?Constructor\]$/,tH=/^(?:0|[1-9]\d*)$/,Rb="\\ud800-\\udfff",oD="\\u0300-\\u036f\\ufe20-\\ufe23",aD="\\u20d0-\\u20f0",lD="\\ufe0e\\ufe0f",nH="["+Rb+"]",Mb="["+oD+aD+"]",jb="\\ud83c[\\udffb-\\udfff]",rH="(?:"+Mb+"|"+jb+")",sD="[^"+Rb+"]",uD="(?:\\ud83c[\\udde6-\\uddff]){2}",cD="[\\ud800-\\udbff][\\udc00-\\udfff]",fD="\\u200d",dD=rH+"?",pD="["+lD+"]?",iH="(?:"+fD+"(?:"+[sD,uD,cD].join("|")+")"+pD+dD+")*",oH=pD+dD+iH,aH="(?:"+[sD+Mb+"?",Mb,uD,cD,nH].join("|")+")",lH=RegExp(jb+"(?="+jb+")|"+aH+oH,"g"),sH=RegExp("["+fD+Rb+oD+aD+lD+"]"),uH=typeof Jt=="object"&&Jt&&Jt.Object===Object&&Jt,cH=typeof self=="object"&&self&&self.Object===Object&&self,es=uH||cH||Function("return this")();function fH(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 dH(e){return e.split("")}function pH(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function hH(e,t){return fH(t,function(n){return e[n]})}function gH(e,t){return e==null?void 0:e[t]}function vH(e){return sH.test(e)}function mH(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function yH(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function bH(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function wH(e,t){return function(n){return e(t(n))}}function $H(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}function EH(e){return vH(e)?CH(e):dH(e)}function CH(e){return e.match(lH)||[]}var SH=Function.prototype,h0=Object.prototype,zb=es["__core-js_shared__"],hD=function(){var e=/[^.]+$/.exec(zb&&zb.keys&&zb.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),gD=SH.toString,g0=h0.hasOwnProperty,ad=h0.toString,xH=RegExp("^"+gD.call(g0).replace(QU,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),vD=es.Symbol,Vb=vD?vD.iterator:void 0,DH=h0.propertyIsEnumerable,AH=wH(Object.keys,Object),Ub=ld(es,"DataView"),Hb=ld(es,"Map"),Wb=ld(es,"Promise"),qb=ld(es,"Set"),Gb=ld(es,"WeakMap"),_H=ns(Ub),kH=ns(Hb),OH=ns(Wb),BH=ns(qb),TH=ns(Gb);function FH(e,t){var n=mD(e)||zH(e)?pH(e.length,String):[],r=n.length,i=!!r;for(var o in e)(t||g0.call(e,o))&&!(i&&(o=="length"||RH(o,r)))&&n.push(o);return n}function PH(e){return ad.call(e)}function IH(e){if(!bD(e)||MH(e))return!1;var t=yD(e)||mH(e)?xH:eH;return t.test(ns(e))}function NH(e){if(!jH(e))return AH(e);var t=[];for(var n in Object(e))g0.call(e,n)&&n!="constructor"&&t.push(n);return t}function LH(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function ld(e,t){var n=gH(e,t);return IH(n)?n:void 0}var ts=PH;(Ub&&ts(new Ub(new ArrayBuffer(1)))!=iD||Hb&&ts(new Hb)!=Nb||Wb&&ts(Wb.resolve())!=nD||qb&&ts(new qb)!=Lb||Gb&&ts(new Gb)!=rD)&&(ts=function(e){var t=ad.call(e),n=t==JU?e.constructor:void 0,r=n?ns(n):void 0;if(r)switch(r){case _H:return iD;case kH:return Nb;case OH:return nD;case BH:return Lb;case TH:return rD}return t});function RH(e,t){return t=t==null?tD:t,!!t&&(typeof e=="number"||tH.test(e))&&e>-1&&e%1==0&&e<t}function MH(e){return!!hD&&hD in e}function jH(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||h0;return e===n}function ns(e){if(e!=null){try{return gD.call(e)}catch{}try{return e+""}catch{}}return""}function zH(e){return VH(e)&&g0.call(e,"callee")&&(!DH.call(e,"callee")||ad.call(e)==KU)}var mD=Array.isArray;function Kb(e){return e!=null&&UH(e.length)&&!yD(e)}function VH(e){return wD(e)&&Kb(e)}function yD(e){var t=bD(e)?ad.call(e):"";return t==YU||t==XU}function UH(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=tD}function bD(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function wD(e){return!!e&&typeof e=="object"}function HH(e){return typeof e=="string"||!mD(e)&&wD(e)&&ad.call(e)==ZU}function WH(e){if(!e)return[];if(Kb(e))return HH(e)?EH(e):LH(e);if(Vb&&e[Vb])return yH(e[Vb]());var t=ts(e),n=t==Nb?bH:t==Lb?$H:GH;return n(e)}function qH(e){return Kb(e)?FH(e):NH(e)}function GH(e){return e?hH(e,qH(e)):[]}var $D=WH;function ED(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function Yb(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach(function(n){typeof e[n]>"u"?e[n]=t[n]:ED(t[n])&&ED(e[n])&&Object.keys(t[n]).length>0&&Yb(e[n],t[n])})}var CD={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 sd(){var e=typeof document<"u"?document:{};return Yb(e,CD),e}var KH={document:CD,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 rs(){var e=typeof window<"u"?window:{};return Yb(e,KH),e}function YH(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Xb(e){return Xb=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Xb(e)}function v0(e,t){return v0=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},v0(e,t)}function XH(){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 m0(e,t,n){return XH()?m0=Reflect.construct:m0=function(i,o,a){var l=[null];l.push.apply(l,o);var u=Function.bind.apply(i,l),f=new u;return a&&v0(f,a.prototype),f},m0.apply(null,arguments)}function JH(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Jb(e){var t=typeof Map=="function"?new Map:void 0;return Jb=function(r){if(r===null||!JH(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 m0(r,arguments,Xb(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),v0(i,r)},Jb(e)}function ZH(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QH(e){var t=e.__proto__;Object.defineProperty(e,"__proto__",{get:function(){return t},set:function(r){t.__proto__=r}})}var Sa=function(e){YH(t,e);function t(n){var r;return r=e.call.apply(e,[this].concat(n))||this,QH(ZH(r)),r}return t}(Jb(Array));function y0(e){e===void 0&&(e=[]);var t=[];return e.forEach(function(n){Array.isArray(n)?t.push.apply(t,y0(n)):t.push(n)}),t}function SD(e,t){return Array.prototype.filter.call(e,t)}function eW(e){for(var t=[],n=0;n<e.length;n+=1)t.indexOf(e[n])===-1&&t.push(e[n]);return t}function tW(e){return e.toLowerCase().replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function nW(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 V(e,t){var n=rs(),r=sd(),i=[];if(!t&&e instanceof Sa)return e;if(!e)return new Sa(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 l=r.createElement(a);l.innerHTML=o;for(var u=0;u<l.childNodes.length;u+=1)i.push(l.childNodes[u])}else i=nW(e.trim(),t||r)}else if(e.nodeType||e===n||e===r)i.push(e);else if(Array.isArray(e)){if(e instanceof Sa)return e;i=e}return new Sa(eW(i))}V.fn=Sa.prototype;function zu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=y0(t.map(function(i){return i.split(" ")}));return this.forEach(function(i){var o;(o=i.classList).add.apply(o,r)}),this}function Vu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=y0(t.map(function(i){return i.split(" ")}));return this.forEach(function(i){var o;(o=i.classList).remove.apply(o,r)}),this}function Uu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=y0(t.map(function(i){return i.split(" ")}));return SD(this,function(i){return r.filter(function(o){return i.classList.contains(o)}).length>0}).length>0}function ai(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 b0(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function Hu(){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[tW(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 lo(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 so(){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 l(w){var y=w.target;if(!!y){var $=w.target.dom7EventData||[];if($.indexOf(w)<0&&$.unshift(w),V(y).is(i))o.apply(y,$);else for(var m=V(y).parents(),S=0;S<m.length;S+=1)V(m[S]).is(i)&&o.apply(m[S],$)}}function u(w){var y=w&&w.target?w.target.dom7EventData||[]:[];y.indexOf(w)<0&&y.unshift(w),o.apply(this,y)}for(var f=r.split(" "),d,p=0;p<this.length;p+=1){var g=this[p];if(i)for(d=0;d<f.length;d+=1){var E=f[d];g.dom7LiveListeners||(g.dom7LiveListeners={}),g.dom7LiveListeners[E]||(g.dom7LiveListeners[E]=[]),g.dom7LiveListeners[E].push({listener:o,proxyListener:l}),g.addEventListener(E,l,a)}else for(d=0;d<f.length;d+=1){var h=f[d];g.dom7Listeners||(g.dom7Listeners={}),g.dom7Listeners[h]||(g.dom7Listeners[h]=[]),g.dom7Listeners[h].push({listener:o,proxyListener:u}),g.addEventListener(h,u,a)}}return this}function xD(){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 l=r.split(" "),u=0;u<l.length;u+=1)for(var f=l[u],d=0;d<this.length;d+=1){var p=this[d],g=void 0;if(!i&&p.dom7Listeners?g=p.dom7Listeners[f]:i&&p.dom7LiveListeners&&(g=p.dom7LiveListeners[f]),g&&g.length)for(var h=g.length-1;h>=0;h-=1){var E=g[h];o&&E.listener===o||o&&E.listener&&E.listener.dom7proxy&&E.listener.dom7proxy===o?(p.removeEventListener(f,E.proxyListener,a),g.splice(h,1)):o||(p.removeEventListener(f,E.proxyListener,a),g.splice(h,1))}}return this}function w0(){var e=rs();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function $0(){var e=rs();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function DD(){if(this.length>0){var e=rs(),t=sd(),n=this[0],r=n.getBoundingClientRect(),i=t.body,o=n.clientTop||i.clientTop||0,a=n.clientLeft||i.clientLeft||0,l=n===e?e.scrollY:n.scrollTop,u=n===e?e.scrollX:n.scrollLeft;return{top:r.top+l-o,left:r.left+u-a}}return null}function Wu(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function E0(){for(var e=rs(),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 C0(e,t){var n=rs(),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 S0(e){return e?(this.forEach(function(t,n){e.apply(t,[t,n])}),this):this}function AD(e){var t=SD(this,e);return V(t)}function xa(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 x0(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 _D(e){var t=rs(),n=sd(),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=V(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 Sa){for(i=e.nodeType?[e]:e,o=0;o<i.length;o+=1)if(i[o]===r)return!0;return!1}return!1}function li(){for(var e,t=sd(),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 Sa)for(var o=0;o<e.length;o+=1)this[r].appendChild(e[o]);else this[r].appendChild(e)}return this}function kD(e){var t=sd(),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 Sa)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 qu(e){for(var t=[],n=0;n<this.length;n+=1)this[n].parentNode!==null&&(e?V(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return V(t)}function D0(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?V(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return V(t)}function Gu(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 V(t)}function Ku(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||V(r[i]).is(e))&&t.push(r[i]);return V(t)}function Yu(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function Xu(){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 rW="resize scroll".split(" ");function OD(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)rW.indexOf(e)<0&&(e in this[o]?this[o][e]():V(this[o]).trigger(e));return this}return this.on.apply(this,[e].concat(r))}return t}var BD=OD("click"),Da=OD("focus"),TD=9007199254740991,iW="[object Arguments]",oW="[object Function]",aW="[object GeneratorFunction]",lW=/^(?:0|[1-9]\d*)$/;function sW(e,t){for(var n=-1,r=e?e.length:0;++n<r&&t(e[n],n,e)!==!1;);return e}function uW(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function cW(e,t){return function(n){return e(t(n))}}var A0=Object.prototype,Zb=A0.hasOwnProperty,FD=A0.toString,fW=A0.propertyIsEnumerable,dW=cW(Object.keys,Object);function pW(e,t){var n=PD(e)||CW(e)?uW(e.length,String):[],r=n.length,i=!!r;for(var o in e)(t||Zb.call(e,o))&&!(i&&(o=="length"||wW(o,r)))&&n.push(o);return n}var hW=yW(vW),gW=bW();function vW(e,t){return e&&gW(e,t,kW)}function mW(e){if(!$W(e))return dW(e);var t=[];for(var n in Object(e))Zb.call(e,n)&&n!="constructor"&&t.push(n);return t}function yW(e,t){return function(n,r){if(n==null)return n;if(!Qb(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 bW(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),l=a.length;l--;){var u=a[e?l:++i];if(n(o[u],u,o)===!1)break}return t}}function wW(e,t){return t=t==null?TD:t,!!t&&(typeof e=="number"||lW.test(e))&&e>-1&&e%1==0&&e<t}function $W(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||A0;return e===n}function EW(e,t){var n=PD(e)?sW:hW;return n(e,typeof t=="function"?t:OW)}function CW(e){return SW(e)&&Zb.call(e,"callee")&&(!fW.call(e,"callee")||FD.call(e)==iW)}var PD=Array.isArray;function Qb(e){return e!=null&&DW(e.length)&&!xW(e)}function SW(e){return _W(e)&&Qb(e)}function xW(e){var t=AW(e)?FD.call(e):"";return t==oW||t==aW}function DW(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=TD}function AW(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function _W(e){return!!e&&typeof e=="object"}function kW(e){return Qb(e)?pW(e):mW(e)}function OW(e){return e}var e2=EW;{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 ID=(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 ND="Expected a function",LD=0/0,BW="[object Symbol]",TW=/^\s+|\s+$/g,FW=/^[-+]0x[0-9a-f]+$/i,PW=/^0b[01]+$/i,IW=/^0o[0-7]+$/i,NW=parseInt,LW=typeof Jt=="object"&&Jt&&Jt.Object===Object&&Jt,RW=typeof self=="object"&&self&&self.Object===Object&&self,MW=LW||RW||Function("return this")(),jW=Object.prototype,zW=jW.toString,VW=Math.max,UW=Math.min,t2=function(){return MW.Date.now()};function HW(e,t,n){var r,i,o,a,l,u,f=0,d=!1,p=!1,g=!0;if(typeof e!="function")throw new TypeError(ND);t=RD(t)||0,_0(n)&&(d=!!n.leading,p="maxWait"in n,o=p?VW(RD(n.maxWait)||0,t):o,g="trailing"in n?!!n.trailing:g);function h(B){var P=r,U=i;return r=i=void 0,f=B,a=e.apply(U,P),a}function E(B){return f=B,l=setTimeout($,t),d?h(B):a}function w(B){var P=B-u,U=B-f,Y=t-P;return p?UW(Y,o-U):Y}function y(B){var P=B-u,U=B-f;return u===void 0||P>=t||P<0||p&&U>=o}function $(){var B=t2();if(y(B))return m(B);l=setTimeout($,w(B))}function m(B){return l=void 0,g&&r?h(B):(r=i=void 0,a)}function S(){l!==void 0&&clearTimeout(l),f=0,r=u=i=l=void 0}function D(){return l===void 0?a:m(t2())}function A(){var B=t2(),P=y(B);if(r=arguments,i=this,u=B,P){if(l===void 0)return E(u);if(p)return l=setTimeout($,t),h(u)}return l===void 0&&(l=setTimeout($,t)),a}return A.cancel=S,A.flush=D,A}function WW(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(ND);return _0(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),HW(e,t,{leading:r,maxWait:t,trailing:i})}function _0(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function qW(e){return!!e&&typeof e=="object"}function GW(e){return typeof e=="symbol"||qW(e)&&zW.call(e)==BW}function RD(e){if(typeof e=="number")return e;if(GW(e))return LD;if(_0(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=_0(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(TW,"");var n=PW.test(e);return n||IW.test(e)?NW(e.slice(2),n?2:8):FW.test(e)?LD:+e}var is=WW;function KW(e,t){return document.createElement(e,t)}function YW(e,t,n){return document.createElementNS(e,t,n)}function XW(e){return document.createTextNode(e)}function JW(e){return document.createComment(e)}function ZW(e,t,n){e.insertBefore(t,n)}function QW(e,t){e.removeChild(t)}function eq(e,t){e.appendChild(t)}function tq(e){return e.parentNode}function nq(e){return e.nextSibling}function rq(e){return e.tagName}function iq(e,t){e.textContent=t}function oq(e){return e.textContent}function aq(e){return e.nodeType===1}function lq(e){return e.nodeType===3}function sq(e){return e.nodeType===8}const uq={createElement:KW,createElementNS:YW,createTextNode:XW,createComment:JW,insertBefore:ZW,removeChild:QW,appendChild:eq,parentNode:tq,nextSibling:nq,tagName:rq,setTextContent:iq,getTextContent:oq,isElement:aq,isText:lq,isComment:sq};function ud(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 n2=Array.isArray;function k0(e){return typeof e=="string"||typeof e=="number"||e instanceof String||e instanceof Number}function r2(e){return e===void 0}function Vr(e){return e!==void 0}const MD=ud("",{},[],void 0,void 0);function cd(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 cq(e){return e.sel!==void 0}function fq(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 dq=["create","update","remove","destroy","pre","post"];function pq(e,t){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=t!==void 0?t:uq;for(const g of dq)for(const h of e){const E=h[g];E!==void 0&&n[g].push(E)}function i(g){const h=g.id?"#"+g.id:"",E=g.getAttribute("class"),w=E?"."+E.split(" ").join("."):"";return ud(r.tagName(g).toLowerCase()+h+w,{},[],void 0,g)}function o(g,h){return function(){if(--h===0){const w=r.parentNode(g);r.removeChild(w,g)}}}function a(g,h){var E,w;let y,$=g.data;if($!==void 0){const D=(E=$.hook)===null||E===void 0?void 0:E.init;Vr(D)&&(D(g),$=g.data)}const m=g.children,S=g.sel;if(S==="!")r2(g.text)&&(g.text=""),g.elm=r.createComment(g.text);else if(S!==void 0){const D=S.indexOf("#"),A=S.indexOf(".",D),B=D>0?D:S.length,P=A>0?A:S.length,U=D!==-1||A!==-1?S.slice(0,Math.min(B,P)):S,Y=g.elm=Vr($)&&Vr(y=$.ns)?r.createElementNS(y,U,$):r.createElement(U,$);for(B<P&&Y.setAttribute("id",S.slice(B+1,P)),A>0&&Y.setAttribute("class",S.slice(P+1).replace(/\./g," ")),y=0;y<n.create.length;++y)n.create[y](MD,g);if(n2(m))for(y=0;y<m.length;++y){const ee=m[y];ee!=null&&r.appendChild(Y,a(ee,h))}else k0(g.text)&&r.appendChild(Y,r.createTextNode(g.text));const ce=g.data.hook;Vr(ce)&&((w=ce.create)===null||w===void 0||w.call(ce,MD,g),ce.insert&&h.push(g))}else g.elm=r.createTextNode(g.text);return g.elm}function l(g,h,E,w,y,$){for(;w<=y;++w){const m=E[w];m!=null&&r.insertBefore(g,a(m,$),h)}}function u(g){var h,E;const w=g.data;if(w!==void 0){(E=(h=w==null?void 0:w.hook)===null||h===void 0?void 0:h.destroy)===null||E===void 0||E.call(h,g);for(let y=0;y<n.destroy.length;++y)n.destroy[y](g);if(g.children!==void 0)for(let y=0;y<g.children.length;++y){const $=g.children[y];$!=null&&typeof $!="string"&&u($)}}}function f(g,h,E,w){for(var y,$;E<=w;++E){let m,S;const D=h[E];if(D!=null)if(Vr(D.sel)){u(D),m=n.remove.length+1,S=o(D.elm,m);for(let B=0;B<n.remove.length;++B)n.remove[B](D,S);const A=($=(y=D==null?void 0:D.data)===null||y===void 0?void 0:y.hook)===null||$===void 0?void 0:$.remove;Vr(A)?A(D,S):S()}else r.removeChild(g,D.elm)}}function d(g,h,E,w){let y=0,$=0,m=h.length-1,S=h[0],D=h[m],A=E.length-1,B=E[0],P=E[A],U,Y,ce,ee;for(;y<=m&&$<=A;)S==null?S=h[++y]:D==null?D=h[--m]:B==null?B=E[++$]:P==null?P=E[--A]:cd(S,B)?(p(S,B,w),S=h[++y],B=E[++$]):cd(D,P)?(p(D,P,w),D=h[--m],P=E[--A]):cd(S,P)?(p(S,P,w),r.insertBefore(g,S.elm,r.nextSibling(D.elm)),S=h[++y],P=E[--A]):cd(D,B)?(p(D,B,w),r.insertBefore(g,D.elm,S.elm),D=h[--m],B=E[++$]):(U===void 0&&(U=fq(h,y,m)),Y=U[B.key],r2(Y)?r.insertBefore(g,a(B,w),S.elm):(ce=h[Y],ce.sel!==B.sel?r.insertBefore(g,a(B,w),S.elm):(p(ce,B,w),h[Y]=void 0,r.insertBefore(g,ce.elm,S.elm))),B=E[++$]);(y<=m||$<=A)&&(y>m?(ee=E[A+1]==null?null:E[A+1].elm,l(g,ee,E,$,A,w)):f(g,h,y,m))}function p(g,h,E){var w,y,$,m,S;const D=(w=h.data)===null||w===void 0?void 0:w.hook;(y=D==null?void 0:D.prepatch)===null||y===void 0||y.call(D,g,h);const A=h.elm=g.elm,B=g.children,P=h.children;if(g!==h){if(h.data!==void 0){for(let U=0;U<n.update.length;++U)n.update[U](g,h);(m=($=h.data.hook)===null||$===void 0?void 0:$.update)===null||m===void 0||m.call($,g,h)}r2(h.text)?Vr(B)&&Vr(P)?B!==P&&d(A,B,P,E):Vr(P)?(Vr(g.text)&&r.setTextContent(A,""),l(A,null,P,0,P.length-1,E)):Vr(B)?f(A,B,0,B.length-1):Vr(g.text)&&r.setTextContent(A,""):g.text!==h.text&&(Vr(B)&&f(A,B,0,B.length-1),r.setTextContent(A,h.text)),(S=D==null?void 0:D.postpatch)===null||S===void 0||S.call(D,g,h)}}return function(h,E){let w,y,$;const m=[];for(w=0;w<n.pre.length;++w)n.pre[w]();for(cq(h)||(h=i(h)),cd(h,E)?p(h,E,m):(y=h.elm,$=r.parentNode(y),a(E,m),$!==null&&(r.insertBefore($,E.elm,r.nextSibling(y)),f($,[h],0,0))),w=0;w<m.length;++w)m[w].data.hook.insert(m[w]);for(w=0;w<n.post.length;++w)n.post[w]();return E}}function jD(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&&jD(i,t[r].children,t[r].sel)}}function Ju(e,t,n){let r={},i,o,a;if(n!==void 0?(t!==null&&(r=t),n2(n)?i=n:k0(n)?o=n.toString():n&&n.sel&&(i=[n])):t!=null&&(n2(t)?i=t:k0(t)?o=t.toString():t&&t.sel?i=[t]:r=t),i!==void 0)for(a=0;a<i.length;++a)k0(i[a])&&(i[a]=ud(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]==="#")&&jD(r,i,e),ud(e,r,i,o,void 0)}const hq="http://www.w3.org/1999/xlink",gq="http://www.w3.org/XML/1998/namespace",zD=58,vq=120;function VD(e,t){let n;const r=t.elm;let i=e.data.attrs,o=t.data.attrs;if(!(!i&&!o)&&i!==o){i=i||{},o=o||{};for(n in o){const a=o[n];i[n]!==a&&(a===!0?r.setAttribute(n,""):a===!1?r.removeAttribute(n):n.charCodeAt(0)!==vq?r.setAttribute(n,a):n.charCodeAt(3)===zD?r.setAttributeNS(gq,n,a):n.charCodeAt(5)===zD?r.setAttributeNS(hq,n,a):r.setAttribute(n,a))}for(n in i)n in o||r.removeAttribute(n)}}const mq={create:VD,update:VD};function UD(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 yq={create:UD,update:UD},HD=/[A-Z]/g;function WD(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(HD,"-$&").toLowerCase()));for(o in i)r[o]!==i[o]&&(a?a[o]=i[o]:n.setAttribute("data-"+o.replace(HD,"-$&").toLowerCase(),i[o]))}const bq={create:WD,update:WD};function qD(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++)qD(e[r],t,n)}function wq(e,t){const n=e.type,r=t.data.on;r&&r[n]&&qD(r[n],t,e)}function $q(){return function e(t){wq(t,e.vnode)}}function i2(e,t){const n=e.data.on,r=e.listener,i=e.elm,o=t&&t.data.on,a=t&&t.elm;let l;if(n!==o){if(n&&r)if(o)for(l in n)o[l]||i.removeEventListener(l,r,!1);else for(l in n)i.removeEventListener(l,r,!1);if(o){const u=t.listener=e.listener||$q();if(u.vnode=t,n)for(l in o)n[l]||a.addEventListener(l,u,!1);else for(l in o)a.addEventListener(l,u,!1)}}}const Eq={create:i2,update:i2,destroy:i2};function GD(e,t){let n,r,i;const o=t.elm;let a=e.data.props,l=t.data.props;if(!(!a&&!l)&&a!==l){a=a||{},l=l||{};for(n in l)r=l[n],i=a[n],i!==r&&(n!=="value"||o[n]!==r)&&(o[n]=r)}}const Cq={create:GD,update:GD},KD=typeof window<"u"&&window.requestAnimationFrame.bind(window)||setTimeout,Sq=function(e){KD(function(){KD(e)})};let o2=!1;function xq(e,t,n){Sq(function(){e[t]=n})}function YD(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 l="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 u in a.delayed)n=a.delayed[u],(!l||n!==o.delayed[u])&&xq(i.style,u,n);else r!=="remove"&&n!==o[r]&&(r[0]==="-"&&r[1]==="-"?i.style.setProperty(r,n):i.style[r]=n)}function Dq(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 Aq(e,t){const n=e.data.style;if(!n||!n.remove){t();return}o2||(e.elm.offsetLeft,o2=!0);let r;const i=e.elm;let o=0;const a=n.remove;let l=0;const u=[];for(r in a)u.push(r),i.style[r]=a[r];const d=getComputedStyle(i)["transition-property"].split(", ");for(;o<d.length;++o)u.indexOf(d[o])!==-1&&l++;i.addEventListener("transitionend",function(p){p.target===i&&--l,l===0&&t()})}function _q(){o2=!1}const kq={pre:_q,create:YD,update:YD,destroy:Dq,remove:Aq};function XD(e,t){for(const n of e)n!=null&&n!==!1&&n!==""&&(Array.isArray(n)?XD(n,t):typeof n=="string"||typeof n=="number"||typeof n=="boolean"?t.push(ud(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function Ue(e,t,...n){const r=XD(n,[]);return typeof e=="function"?e(t,r):r.length===1&&!r[0].sel&&r[0].text?Ju(e,t,r[0].text):Ju(e,t,r)}(function(e){})(Ue||(Ue={}));var Oq=1/0,Bq="[object Symbol]",Tq=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Fq=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,O0="\\ud800-\\udfff",JD="\\u0300-\\u036f\\ufe20-\\ufe23",ZD="\\u20d0-\\u20f0",QD="\\u2700-\\u27bf",eA="a-z\\xdf-\\xf6\\xf8-\\xff",Pq="\\xac\\xb1\\xd7\\xf7",Iq="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Nq="\\u2000-\\u206f",Lq=" \\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",tA="A-Z\\xc0-\\xd6\\xd8-\\xde",nA="\\ufe0e\\ufe0f",rA=Pq+Iq+Nq+Lq,a2="['\u2019]",Rq="["+O0+"]",iA="["+rA+"]",B0="["+JD+ZD+"]",oA="\\d+",Mq="["+QD+"]",aA="["+eA+"]",lA="[^"+O0+rA+oA+QD+eA+tA+"]",l2="\\ud83c[\\udffb-\\udfff]",jq="(?:"+B0+"|"+l2+")",sA="[^"+O0+"]",s2="(?:\\ud83c[\\udde6-\\uddff]){2}",u2="[\\ud800-\\udbff][\\udc00-\\udfff]",Zu="["+tA+"]",uA="\\u200d",cA="(?:"+aA+"|"+lA+")",zq="(?:"+Zu+"|"+lA+")",fA="(?:"+a2+"(?:d|ll|m|re|s|t|ve))?",dA="(?:"+a2+"(?:D|LL|M|RE|S|T|VE))?",pA=jq+"?",hA="["+nA+"]?",Vq="(?:"+uA+"(?:"+[sA,s2,u2].join("|")+")"+hA+pA+")*",gA=hA+pA+Vq,Uq="(?:"+[Mq,s2,u2].join("|")+")"+gA,Hq="(?:"+[sA+B0+"?",B0,s2,u2,Rq].join("|")+")",Wq=RegExp(a2,"g"),qq=RegExp(B0,"g"),Gq=RegExp(l2+"(?="+l2+")|"+Hq+gA,"g"),Kq=RegExp([Zu+"?"+aA+"+"+fA+"(?="+[iA,Zu,"$"].join("|")+")",zq+"+"+dA+"(?="+[iA,Zu+cA,"$"].join("|")+")",Zu+"?"+cA+"+"+fA,Zu+"+"+dA,oA,Uq].join("|"),"g"),Yq=RegExp("["+uA+O0+JD+ZD+nA+"]"),Xq=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Jq={\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"},Zq=typeof Jt=="object"&&Jt&&Jt.Object===Object&&Jt,Qq=typeof self=="object"&&self&&self.Object===Object&&self,eG=Zq||Qq||Function("return this")();function tG(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 nG(e){return e.split("")}function rG(e){return e.match(Tq)||[]}function iG(e){return function(t){return e==null?void 0:e[t]}}var oG=iG(Jq);function vA(e){return Yq.test(e)}function aG(e){return Xq.test(e)}function lG(e){return vA(e)?sG(e):nG(e)}function sG(e){return e.match(Gq)||[]}function uG(e){return e.match(Kq)||[]}var cG=Object.prototype,fG=cG.toString,mA=eG.Symbol,yA=mA?mA.prototype:void 0,bA=yA?yA.toString:void 0;function dG(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 pG(e){if(typeof e=="string")return e;if(yG(e))return bA?bA.call(e):"";var t=e+"";return t=="0"&&1/e==-Oq?"-0":t}function hG(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:dG(e,t,n)}function gG(e){return function(t){t=T0(t);var n=vA(t)?lG(t):void 0,r=n?n[0]:t.charAt(0),i=n?hG(n,1).join(""):t.slice(1);return r[e]()+i}}function vG(e){return function(t){return tG(CG($G(t).replace(Wq,"")),e,"")}}function mG(e){return!!e&&typeof e=="object"}function yG(e){return typeof e=="symbol"||mG(e)&&fG.call(e)==Bq}function T0(e){return e==null?"":pG(e)}var bG=vG(function(e,t,n){return t=t.toLowerCase(),e+(n?wG(t):t)});function wG(e){return EG(T0(e).toLowerCase())}function $G(e){return e=T0(e),e&&e.replace(Fq,oG).replace(qq,"")}var EG=gG("toUpperCase");function CG(e,t,n){return e=T0(e),t=n?void 0:t,t===void 0?aG(e)?uG(e):rG(e):e.match(t)||[]}for(var SG=bG,xG=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),c2={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},wA={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:xG?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},f2={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},F0=1;F0<20;F0++)f2["f"+F0]=111+F0;function $A(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map(function(a){return AG(a,t)}),i=function(l){return r.some(function(u){return _G(u,l)})},o=n==null?i:i(n);return o}function DG(e,t){return $A(e,{byKey:!0},t)}function AG(e,t){var n=t&&t.byKey,r={};e=e.replace("++","+add");var i=e.split("+"),o=i.length;for(var a in c2)r[c2[a]]=!1;var l=!0,u=!1,f=void 0;try{for(var d=i[Symbol.iterator](),p;!(l=(p=d.next()).done);l=!0){var g=p.value,h=g.endsWith("?")&&g.length>1;h&&(g=g.slice(0,-1));var E=EA(g),w=c2[E];if(g.length>1&&!w&&!wA[g]&&!f2[E])throw new TypeError('Unknown modifier: "'+g+'"');(o===1||!w)&&(n?r.key=E:r.which=kG(g)),w&&(r[w]=h?null:!0)}}catch(y){u=!0,f=y}finally{try{!l&&d.return&&d.return()}finally{if(u)throw f}}return r}function _G(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 kG(e){e=EA(e);var t=f2[e]||e.toUpperCase().charCodeAt(0);return t}function EA(e){return e=e.toLowerCase(),e=wA[e]||e,e}var OG=$A,d2=DG,BG="Expected a function",CA=0/0,TG="[object Symbol]",FG=/^\s+|\s+$/g,PG=/^[-+]0x[0-9a-f]+$/i,IG=/^0b[01]+$/i,NG=/^0o[0-7]+$/i,LG=parseInt,RG=typeof Jt=="object"&&Jt&&Jt.Object===Object&&Jt,MG=typeof self=="object"&&self&&self.Object===Object&&self,jG=RG||MG||Function("return this")(),zG=Object.prototype,VG=zG.toString,UG=Math.max,HG=Math.min,p2=function(){return jG.Date.now()};function WG(e,t,n){var r,i,o,a,l,u,f=0,d=!1,p=!1,g=!0;if(typeof e!="function")throw new TypeError(BG);t=SA(t)||0,h2(n)&&(d=!!n.leading,p="maxWait"in n,o=p?UG(SA(n.maxWait)||0,t):o,g="trailing"in n?!!n.trailing:g);function h(B){var P=r,U=i;return r=i=void 0,f=B,a=e.apply(U,P),a}function E(B){return f=B,l=setTimeout($,t),d?h(B):a}function w(B){var P=B-u,U=B-f,Y=t-P;return p?HG(Y,o-U):Y}function y(B){var P=B-u,U=B-f;return u===void 0||P>=t||P<0||p&&U>=o}function $(){var B=p2();if(y(B))return m(B);l=setTimeout($,w(B))}function m(B){return l=void 0,g&&r?h(B):(r=i=void 0,a)}function S(){l!==void 0&&clearTimeout(l),f=0,r=u=i=l=void 0}function D(){return l===void 0?a:m(p2())}function A(){var B=p2(),P=y(B);if(r=arguments,i=this,u=B,P){if(l===void 0)return E(u);if(p)return l=setTimeout($,t),h(u)}return l===void 0&&(l=setTimeout($,t)),a}return A.cancel=S,A.flush=D,A}function h2(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function qG(e){return!!e&&typeof e=="object"}function GG(e){return typeof e=="symbol"||qG(e)&&VG.call(e)==TG}function SA(e){if(typeof e=="number")return e;if(GG(e))return CA;if(h2(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=h2(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(FG,"");var n=IG.test(e);return n||NG.test(e)?LG(e.slice(2),n?2:8):PG.test(e)?CA:+e}var xA=WG,DA=Ib(function(e,t){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",a="[object Array]",l="[object Boolean]",u="[object Date]",f="[object Error]",d="[object Function]",p="[object GeneratorFunction]",g="[object Map]",h="[object Number]",E="[object Object]",w="[object Promise]",y="[object RegExp]",$="[object Set]",m="[object String]",S="[object Symbol]",D="[object WeakMap]",A="[object ArrayBuffer]",B="[object DataView]",P="[object Float32Array]",U="[object Float64Array]",Y="[object Int8Array]",ce="[object Int16Array]",ee="[object Int32Array]",ge="[object Uint8Array]",se="[object Uint8ClampedArray]",xe="[object Uint16Array]",ve="[object Uint32Array]",Oe=/[\\^$.*+?()[\]{}|]/g,Te=/\w*$/,Ne=/^\[object .+?Constructor\]$/,Re=/^(?:0|[1-9]\d*)$/,Ae={};Ae[o]=Ae[a]=Ae[A]=Ae[B]=Ae[l]=Ae[u]=Ae[P]=Ae[U]=Ae[Y]=Ae[ce]=Ae[ee]=Ae[g]=Ae[h]=Ae[E]=Ae[y]=Ae[$]=Ae[m]=Ae[S]=Ae[ge]=Ae[se]=Ae[xe]=Ae[ve]=!0,Ae[f]=Ae[d]=Ae[D]=!1;var ae=typeof Jt=="object"&&Jt&&Jt.Object===Object&&Jt,M=typeof self=="object"&&self&&self.Object===Object&&self,R=ae||M||Function("return this")(),T=t&&!t.nodeType&&t,L=T&&!0&&e&&!e.nodeType&&e,q=L&&L.exports===T;function O(x,I){return x.set(I[0],I[1]),x}function J(x,I){return x.add(I),x}function ue(x,I){for(var H=-1,ie=x?x.length:0;++H<ie&&I(x[H],H,x)!==!1;);return x}function he(x,I){for(var H=-1,ie=I.length,qe=x.length;++H<ie;)x[qe+H]=I[H];return x}function te(x,I,H,ie){var qe=-1,Ie=x?x.length:0;for(ie&&Ie&&(H=x[++qe]);++qe<Ie;)H=I(H,x[qe],qe,x);return H}function Q(x,I){for(var H=-1,ie=Array(x);++H<x;)ie[H]=I(H);return ie}function Ce(x,I){return x==null?void 0:x[I]}function oe(x){var I=!1;if(x!=null&&typeof x.toString!="function")try{I=!!(x+"")}catch{}return I}function ye(x){var I=-1,H=Array(x.size);return x.forEach(function(ie,qe){H[++I]=[qe,ie]}),H}function Le(x,I){return function(H){return x(I(H))}}function $t(x){var I=-1,H=Array(x.size);return x.forEach(function(ie){H[++I]=ie}),H}var ft=Array.prototype,ot=Function.prototype,Ze=Object.prototype,dt=R["__core-js_shared__"],pt=function(){var x=/[^.]+$/.exec(dt&&dt.keys&&dt.keys.IE_PROTO||"");return x?"Symbol(src)_1."+x:""}(),rn=ot.toString,In=Ze.hasOwnProperty,mt=Ze.toString,on=RegExp("^"+rn.call(In).replace(Oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Kt=q?R.Buffer:void 0,Yt=R.Symbol,Jn=R.Uint8Array,dn=Le(Object.getPrototypeOf,Object),Nn=Object.create,Di=Ze.propertyIsEnumerable,Zi=ft.splice,$r=Object.getOwnPropertySymbols,Fr=Kt?Kt.isBuffer:void 0,Ai=Le(Object.keys,Object),Pr=Cr(R,"DataView"),Qr=Cr(R,"Map"),Er=Cr(R,"Promise"),To=Cr(R,"Set"),Fl=Cr(R,"WeakMap"),Fo=Cr(Object,"create"),pu=ar(Pr),la=ar(Qr),hu=ar(Er),gu=ar(To),Pl=ar(Fl),Po=Yt?Yt.prototype:void 0,Af=Po?Po.valueOf:void 0;function Qi(x){var I=-1,H=x?x.length:0;for(this.clear();++I<H;){var ie=x[I];this.set(ie[0],ie[1])}}function vu(){this.__data__=Fo?Fo(null):{}}function Cg(x){return this.has(x)&&delete this.__data__[x]}function mu(x){var I=this.__data__;if(Fo){var H=I[x];return H===r?void 0:H}return In.call(I,x)?I[x]:void 0}function _f(x){var I=this.__data__;return Fo?I[x]!==void 0:In.call(I,x)}function yu(x,I){var H=this.__data__;return H[x]=Fo&&I===void 0?r:I,this}Qi.prototype.clear=vu,Qi.prototype.delete=Cg,Qi.prototype.get=mu,Qi.prototype.has=_f,Qi.prototype.set=yu;function Un(x){var I=-1,H=x?x.length:0;for(this.clear();++I<H;){var ie=x[I];this.set(ie[0],ie[1])}}function Sg(){this.__data__=[]}function xg(x){var I=this.__data__,H=sa(I,x);if(H<0)return!1;var ie=I.length-1;return H==ie?I.pop():Zi.call(I,H,1),!0}function Dg(x){var I=this.__data__,H=sa(I,x);return H<0?void 0:I[H][1]}function Ag(x){return sa(this.__data__,x)>-1}function _g(x,I){var H=this.__data__,ie=sa(H,x);return ie<0?H.push([x,I]):H[ie][1]=I,this}Un.prototype.clear=Sg,Un.prototype.delete=xg,Un.prototype.get=Dg,Un.prototype.has=Ag,Un.prototype.set=_g;function Hn(x){var I=-1,H=x?x.length:0;for(this.clear();++I<H;){var ie=x[I];this.set(ie[0],ie[1])}}function kg(){this.__data__={hash:new Qi,map:new(Qr||Un),string:new Qi}}function Og(x){return eo(this,x).delete(x)}function Bg(x){return eo(this,x).get(x)}function Tg(x){return eo(this,x).has(x)}function Fg(x,I){return eo(this,x).set(x,I),this}Hn.prototype.clear=kg,Hn.prototype.delete=Og,Hn.prototype.get=Bg,Hn.prototype.has=Tg,Hn.prototype.set=Fg;function hr(x){this.__data__=new Un(x)}function Il(){this.__data__=new Un}function Pg(x){return this.__data__.delete(x)}function Nl(x){return this.__data__.get(x)}function Ig(x){return this.__data__.has(x)}function Ng(x,I){var H=this.__data__;if(H instanceof Un){var ie=H.__data__;if(!Qr||ie.length<n-1)return ie.push([x,I]),this;H=this.__data__=new Hn(ie)}return H.set(x,I),this}hr.prototype.clear=Il,hr.prototype.delete=Pg,hr.prototype.get=Nl,hr.prototype.has=Ig,hr.prototype.set=Ng;function Ll(x,I){var H=Cu(x)||Rl(x)?Q(x.length,String):[],ie=H.length,qe=!!ie;for(var Ie in x)(I||In.call(x,Ie))&&!(qe&&(Ie=="length"||Lf(Ie,ie)))&&H.push(Ie);return H}function bu(x,I,H){var ie=x[I];(!(In.call(x,I)&&Eu(ie,H))||H===void 0&&!(I in x))&&(x[I]=H)}function sa(x,I){for(var H=x.length;H--;)if(Eu(x[H][0],I))return H;return-1}function ei(x,I){return x&&pa(I,xu(I),x)}function wu(x,I,H,ie,qe,Ie,ut){var Et;if(ie&&(Et=Ie?ie(x,qe,Ie,ut):ie(x)),Et!==void 0)return Et;if(!Oi(x))return x;var ct=Cu(x);if(ct){if(Et=If(x),!I)return Ff(x,Et)}else{var St=_i(x),an=St==d||St==p;if(jl(x))return ua(x,I);if(St==E||St==o||an&&!Ie){if(oe(x))return Ie?x:{};if(Et=ki(an?{}:x),!I)return zg(x,ei(Et,x))}else{if(!Ae[St])return Ie?x:{};Et=Nf(x,St,wu,I)}}ut||(ut=new hr);var lr=ut.get(x);if(lr)return lr;if(ut.set(x,Et),!ct)var pn=H?Pf(x):xu(x);return ue(pn||x,function(It,Ln){pn&&(Ln=It,It=x[Ln]),bu(Et,Ln,wu(It,I,H,ie,Ln,x,ut))}),Et}function Lg(x){return Oi(x)?Nn(x):{}}function Rg(x,I,H){var ie=I(x);return Cu(x)?ie:he(ie,H(x))}function Mg(x){return mt.call(x)}function kf(x){if(!Oi(x)||Mf(x))return!1;var I=Su(x)||oe(x)?on:Ne;return I.test(ar(x))}function Of(x){if(!jf(x))return Ai(x);var I=[];for(var H in Object(x))In.call(x,H)&&H!="constructor"&&I.push(H);return I}function ua(x,I){if(I)return x.slice();var H=new x.constructor(x.length);return x.copy(H),H}function ca(x){var I=new x.constructor(x.byteLength);return new Jn(I).set(new Jn(x)),I}function fa(x,I){var H=I?ca(x.buffer):x.buffer;return new x.constructor(H,x.byteOffset,x.byteLength)}function $u(x,I,H){var ie=I?H(ye(x),!0):ye(x);return te(ie,O,new x.constructor)}function da(x){var I=new x.constructor(x.source,Te.exec(x));return I.lastIndex=x.lastIndex,I}function Bf(x,I,H){var ie=I?H($t(x),!0):$t(x);return te(ie,J,new x.constructor)}function jg(x){return Af?Object(Af.call(x)):{}}function Tf(x,I){var H=I?ca(x.buffer):x.buffer;return new x.constructor(H,x.byteOffset,x.length)}function Ff(x,I){var H=-1,ie=x.length;for(I||(I=Array(ie));++H<ie;)I[H]=x[H];return I}function pa(x,I,H,ie){H||(H={});for(var qe=-1,Ie=I.length;++qe<Ie;){var ut=I[qe],Et=ie?ie(H[ut],x[ut],ut,H,x):void 0;bu(H,ut,Et===void 0?x[ut]:Et)}return H}function zg(x,I){return pa(x,gr(x),I)}function Pf(x){return Rg(x,xu,gr)}function eo(x,I){var H=x.__data__;return Rf(I)?H[typeof I=="string"?"string":"hash"]:H.map}function Cr(x,I){var H=Ce(x,I);return kf(H)?H:void 0}var gr=$r?Le($r,Object):Pt,_i=Mg;(Pr&&_i(new Pr(new ArrayBuffer(1)))!=B||Qr&&_i(new Qr)!=g||Er&&_i(Er.resolve())!=w||To&&_i(new To)!=$||Fl&&_i(new Fl)!=D)&&(_i=function(x){var I=mt.call(x),H=I==E?x.constructor:void 0,ie=H?ar(H):void 0;if(ie)switch(ie){case pu:return B;case la:return g;case hu:return w;case gu:return $;case Pl:return D}return I});function If(x){var I=x.length,H=x.constructor(I);return I&&typeof x[0]=="string"&&In.call(x,"index")&&(H.index=x.index,H.input=x.input),H}function ki(x){return typeof x.constructor=="function"&&!jf(x)?Lg(dn(x)):{}}function Nf(x,I,H,ie){var qe=x.constructor;switch(I){case A:return ca(x);case l:case u:return new qe(+x);case B:return fa(x,ie);case P:case U:case Y:case ce:case ee:case ge:case se:case xe:case ve:return Tf(x,ie);case g:return $u(x,ie,H);case h:case m:return new qe(x);case y:return da(x);case $:return Bf(x,ie,H);case S:return jg(x)}}function Lf(x,I){return I=I==null?i:I,!!I&&(typeof x=="number"||Re.test(x))&&x>-1&&x%1==0&&x<I}function Rf(x){var I=typeof x;return I=="string"||I=="number"||I=="symbol"||I=="boolean"?x!=="__proto__":x===null}function Mf(x){return!!pt&&pt in x}function jf(x){var I=x&&x.constructor,H=typeof I=="function"&&I.prototype||Ze;return x===H}function ar(x){if(x!=null){try{return rn.call(x)}catch{}try{return x+""}catch{}}return""}function zf(x){return wu(x,!0,!0)}function Eu(x,I){return x===I||x!==x&&I!==I}function Rl(x){return Vg(x)&&In.call(x,"callee")&&(!Di.call(x,"callee")||mt.call(x)==o)}var Cu=Array.isArray;function Ml(x){return x!=null&&Vf(x.length)&&!Su(x)}function Vg(x){return Uf(x)&&Ml(x)}var jl=Fr||Bt;function Su(x){var I=Oi(x)?mt.call(x):"";return I==d||I==p}function Vf(x){return typeof x=="number"&&x>-1&&x%1==0&&x<=i}function Oi(x){var I=typeof x;return!!x&&(I=="object"||I=="function")}function Uf(x){return!!x&&typeof x=="object"}function xu(x){return Ml(x)?Ll(x):Of(x)}function Pt(){return[]}function Bt(){return!1}e.exports=zf}),KG=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},Qu;function AA(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var YG=0;function XG(e){return"__private_"+YG+++"_"+e}function JG(e,t,n){const r=[];return e.forEach(i=>typeof i!="string"?r.push(i):t[Symbol.split](i).forEach((o,a,l)=>{o!==""&&r.push(o),a<l.length-1&&r.push(n)})),r}/**
9
+ `));var p=r(e).pop();if(be.has(e,p)){var g=k.node(e,p);e.normalizeNode(g)}d++}})}},parent(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=k.path(e,t,n),i=G.parent(r),o=k.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(G.isPath(t)){if(i==="start"){var[,o]=be.first(e,t);t=o}else if(i==="end"){var[,a]=be.last(e,t);t=a}}return re.isRange(t)&&(i==="start"?t=re.start(t):i==="end"?t=re.end(t):t=G.common(t.anchor.path,t.focus.path)),Ye.isPoint(t)&&(t=t.path),r!=null&&(t=t.slice(0,r)),t},hasPath(e,t){return be.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,l=k.pathRefs(e);return l.delete(i),i.current=null,a}},o=k.pathRefs(e);return o.add(i),i},pathRefs(e){var t=F8.get(e);return t||(t=new Set,F8.set(e,t)),t},point(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:r="start"}=n;if(G.isPath(t)){var i;if(r==="end"){var[,o]=be.last(e,t);i=o}else{var[,a]=be.first(e,t);i=a}var l=be.get(e,i);if(!Se.isText(l))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"?l.text.length:0}}if(re.isRange(t)){var[u,f]=re.edges(t);return r==="start"?u:f}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,l=k.pointRefs(e);return l.delete(i),i.current=null,a}},o=k.pointRefs(e);return o.add(i),i},pointRefs(e){var t=P8.get(e);return t||(t=new Set,P8.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=k.range(e,n),[l,u]=re.edges(a),f=i?u:l,d=!1,p="",g=0,h=0,E=0;for(var[w,y]of k.nodes(e,{at:n,reverse:i,voids:o})){if(ke.isElement(w)){if(!o&&e.isVoid(w)){yield k.start(e,y);continue}if(e.isInline(w))continue;if(k.hasInlines(e,w)){var $=G.isAncestor(y,u.path)?u:k.end(e,y),m=G.isAncestor(y,l.path)?l:k.start(e,y);p=k.string(e,{anchor:m,focus:$},{voids:o}),d=!0}}if(Se.isText(w)){var S=G.equals(y,f.path);for(S?(h=i?f.offset:w.text.length-f.offset,E=f.offset):(h=w.text.length,E=i?h:0),(S||d||r==="offset")&&(yield{path:y,offset:E},d=!1);;){if(g===0){if(p==="")break;g=D(p,r,i),p=Pb(p,g,i)[1]}if(E=i?E-g:E+g,h=h-g,h<0){g=-h;break}g=0,yield{path:y,offset:E}}}}function D(A,B,P){return B==="character"?Fb(A,P):B==="word"?lU(A,P):B==="line"||B==="block"?A.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=k.before(e,o,{voids:r});if(!!a){var[,l]=k.first(e,[]),u=[a.path,l];if(G.isPath(o)&&o.length===0)throw new Error("Cannot get the previous node from the root node!");if(i==null)if(G.isPath(o)){var[f]=k.parent(e,o);i=p=>f.children.includes(p)}else i=()=>!0;var[d]=k.nodes(e,{reverse:!0,at:u,match:i,mode:n,voids:r});return d}}},range(e,t,n){if(re.isRange(t)&&!n)return t;var r=k.start(e,t),i=k.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,l=k.rangeRefs(e);return l.delete(i),i.current=null,a}},o=k.rangeRefs(e);return o.add(i),i},rangeRefs(e){var t=I8.get(e);return t||(t=new Set,I8.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){T8.set(e,t)},start(e,t){return k.point(e,t,{edge:"start"})},string(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,i=k.range(e,t),[o,a]=re.edges(i),l="";for(var[u,f]of k.nodes(e,{at:i,match:Se.isText,voids:r})){var d=u.text;G.equals(f,a.path)&&(d=d.slice(0,a.offset)),G.equals(f,o.path)&&(d=d.slice(o.offset)),l+=d}return l},unhangRange(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,[i,o]=re.edges(t);if(i.offset!==0||o.offset!==0||re.isCollapsed(t))return t;var a=k.above(e,{at:o,match:h=>k.isBlock(e,h)}),l=a?a[1]:[],u=k.start(e,[]),f={anchor:u,focus:o},d=!0;for(var[p,g]of k.nodes(e,{at:f,match:Se.isText,reverse:!0,voids:r})){if(d){d=!1;continue}if(p.text!==""||G.isBefore(g,l)){o={path:g,offset:p.text.length};break}}return{anchor:i,focus:o}},void(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return k.above(e,Mu(Mu({},t),{},{match:n=>k.isVoid(e,n)}))},withoutNormalizing(e,t){var n=k.isNormalizing(e);k.setNormalizing(e,!1);try{t()}finally{k.setNormalizing(e,n)}k.normalize(e)}},kU={isLocation(e){return G.isPath(e)||Ye.isPoint(e)||re.isRange(e)}},OU={isSpan(e){return Array.isArray(e)&&e.length===2&&e.every(G.isPath)}},BU=["children"],TU=["text"],z8=new WeakMap,be={ancestor(e,t){var n=be.get(e,t);if(Se.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 G.ancestors(t,n)){var i=be.ancestor(e,r),o=[i,r];yield o}},child(e,t){if(Se.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=be.ancestor(e,t),{children:o}=i,a=r?o.length-1:0;r?a>=0:a<o.length;){var l=be.child(i,a),u=t.concat(a);yield[l,u],a=r?a-1:a+1}},common(e,t,n){var r=G.common(t,n),i=be.get(e,r);return[i,r]},descendant(e,t){var n=be.get(e,t);if(k.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 be.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 be.nodes(e,t))ke.isElement(n)&&(yield[n,r])},extractProps(e){if(ke.isAncestor(e)){var t=zo(e,BU);return t}else{var t=zo(e,TU);return t}},first(e,t){for(var n=t.slice(),r=be.get(e,n);r&&!(Se.isText(r)||r.children.length===0);)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(Se.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));var n=c0({children:e.children},r=>{var[i,o]=re.edges(t),a=be.nodes(r,{reverse:!0,pass:g=>{var[,h]=g;return!re.includes(t,h)}});for(var[,l]of a){if(!re.includes(t,l)){var u=be.parent(r,l),f=l[l.length-1];u.children.splice(f,1)}if(G.equals(l,o.path)){var d=be.leaf(r,l);d.text=d.text.slice(0,o.offset)}if(G.equals(l,i.path)){var p=be.leaf(r,l);p.text=p.text.slice(i.offset)}}k.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(Se.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(Se.isText(n)||!n.children[i])return!1;n=n.children[i]}return!0},isNode(e){return Se.isText(e)||ke.isElement(e)||k.isEditor(e)},isNodeList(e){if(!Array.isArray(e))return!1;var t=z8.get(e);if(t!==void 0)return t;var n=e.every(r=>be.isNode(r));return z8.set(e,n),n},last(e,t){for(var n=t.slice(),r=be.get(e,n);r&&!(Se.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=be.get(e,t);if(!Se.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 G.levels(t,n)){var i=be.get(e,r);yield[i,r]}},matches(e,t){return ke.isElement(e)&&ke.isElementProps(t)&&ke.matches(e,t)||Se.isText(e)&&Se.isTextProps(t)&&Se.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,l=[],u=e;!(o&&(r?G.isBefore(l,o):G.isAfter(l,o)));){if(a.has(u)||(yield[u,l]),!a.has(u)&&!Se.isText(u)&&u.children.length!==0&&(n==null||n([u,l])===!1)){a.add(u);var f=r?u.children.length-1:0;G.isAncestor(l,i)&&(f=i[l.length]),l=l.concat(f),u=be.get(e,l);continue}if(l.length===0)break;if(!r){var d=G.next(l);if(be.has(e,d)){l=d,u=be.get(e,l);continue}}if(r&&l[l.length-1]!==0){var p=G.previous(l);l=p,u=be.get(e,l);continue}l=G.parent(l),u=be.get(e,l),a.add(u)}},parent(e,t){var n=G.parent(t),r=be.get(e,n);if(Se.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 Se.isText(e)?e.text:e.children.map(be.string).join("")},*texts(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of be.nodes(e,t))Se.isText(n)&&(yield[n,r])}};function V8(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 Xt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?V8(Object(n),!0).forEach(function(r){ao(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Ca={isNodeOperation(e){return Ca.isOperation(e)&&e.type.endsWith("_node")},isOperation(e){if(!ur(e))return!1;switch(e.type){case"insert_node":return G.isPath(e.path)&&be.isNode(e.node);case"insert_text":return typeof e.offset=="number"&&typeof e.text=="string"&&G.isPath(e.path);case"merge_node":return typeof e.position=="number"&&G.isPath(e.path)&&ur(e.properties);case"move_node":return G.isPath(e.path)&&G.isPath(e.newPath);case"remove_node":return G.isPath(e.path)&&be.isNode(e.node);case"remove_text":return typeof e.offset=="number"&&typeof e.text=="string"&&G.isPath(e.path);case"set_node":return G.isPath(e.path)&&ur(e.properties)&&ur(e.newProperties);case"set_selection":return e.properties===null&&re.isRange(e.newProperties)||e.newProperties===null&&re.isRange(e.properties)||ur(e.properties)&&ur(e.newProperties);case"split_node":return G.isPath(e.path)&&typeof e.position=="number"&&ur(e.properties);default:return!1}},isOperationList(e){return Array.isArray(e)&&e.every(t=>Ca.isOperation(t))},isSelectionOperation(e){return Ca.isOperation(e)&&e.type.endsWith("_selection")},isTextOperation(e){return Ca.isOperation(e)&&e.type.endsWith("_text")},inverse(e){switch(e.type){case"insert_node":return Xt(Xt({},e),{},{type:"remove_node"});case"insert_text":return Xt(Xt({},e),{},{type:"remove_text"});case"merge_node":return Xt(Xt({},e),{},{type:"split_node",path:G.previous(e.path)});case"move_node":{var{newPath:t,path:n}=e;if(G.equals(t,n))return e;if(G.isSibling(n,t))return Xt(Xt({},e),{},{path:t,newPath:n});var r=G.transform(n,e),i=G.transform(G.next(n),e);return Xt(Xt({},e),{},{path:r,newPath:i})}case"remove_node":return Xt(Xt({},e),{},{type:"insert_node"});case"remove_text":return Xt(Xt({},e),{},{type:"insert_text"});case"set_node":{var{properties:o,newProperties:a}=e;return Xt(Xt({},e),{},{properties:a,newProperties:o})}case"set_selection":{var{properties:l,newProperties:u}=e;return l==null?Xt(Xt({},e),{},{properties:u,newProperties:null}):u==null?Xt(Xt({},e),{},{properties:null,newProperties:l}):Xt(Xt({},e),{},{properties:u,newProperties:l})}case"split_node":return Xt(Xt({},e),{},{type:"merge_node",path:G.next(e.path)})}}},G={ancestors(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=G.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 G.equals(r,i)&&o>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),i=t.slice(0,n);return G.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 G.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 G.compare(e,t)===1},isAncestor(e,t){return e.length<t.length&&G.compare(e,t)===0},isBefore(e,t){return G.compare(e,t)===-1},isChild(e,t){return e.length===t.length+1&&G.compare(e,t)===0},isCommon(e,t){return e.length<=t.length&&G.compare(e,t)===0},isDescendant(e,t){return e.length>t.length&&G.compare(e,t)===0},isParent(e,t){return e.length+1===t.length&&G.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&&G.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(!G.isAncestor(t,e)&&!G.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 c0(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;(G.equals(o,r)||G.endsBefore(o,r)||G.isAncestor(o,r))&&(r[o.length-1]+=1);break}case"remove_node":{var{path:a}=t;if(G.equals(a,r)||G.isAncestor(a,r))return null;G.endsBefore(a,r)&&(r[a.length-1]-=1);break}case"merge_node":{var{path:l,position:u}=t;G.equals(l,r)||G.endsBefore(l,r)?r[l.length-1]-=1:G.isAncestor(l,r)&&(r[l.length-1]-=1,r[l.length]+=u);break}case"split_node":{var{path:f,position:d}=t;if(G.equals(f,r)){if(i==="forward")r[r.length-1]+=1;else if(i!=="backward")return null}else G.endsBefore(f,r)?r[f.length-1]+=1:G.isAncestor(f,r)&&e[f.length]>=d&&(r[f.length-1]+=1,r[f.length]-=d);break}case"move_node":{var{path:p,newPath:g}=t;if(G.equals(p,g))return;if(G.isAncestor(p,r)||G.equals(p,r)){var h=g.slice();return G.endsBefore(p,g)&&p.length<g.length&&(h[p.length-1]-=1),h.concat(r.slice(p.length))}else G.isSibling(p,g)&&(G.isAncestor(g,r)||G.equals(g,r))?G.endsBefore(p,r)?r[p.length-1]-=1:r[p.length-1]+=1:G.endsBefore(g,r)||G.equals(g,r)||G.isAncestor(g,r)?(G.endsBefore(p,r)&&(r[p.length-1]-=1),r[g.length-1]+=1):G.endsBefore(p,r)&&(G.equals(g,r)&&(r[g.length-1]+=1),r[p.length-1]-=1);break}}}})}},FU={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=G.transform(n,t,{affinity:r});e.current=i,i==null&&e.unref()}}};function U8(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 H8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?U8(Object(n),!0).forEach(function(r){ao(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Ye={compare(e,t){var n=G.compare(e.path,t.path);return n===0?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter(e,t){return Ye.compare(e,t)===1},isBefore(e,t){return Ye.compare(e,t)===-1},equals(e,t){return e.offset===t.offset&&G.equals(e.path,t.path)},isPoint(e){return ur(e)&&typeof e.offset=="number"&&G.isPath(e.path)},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return c0(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=G.transform(o,t,n);break}case"insert_text":{G.equals(t.path,o)&&t.offset<=a&&(r.offset+=t.text.length);break}case"merge_node":{G.equals(t.path,o)&&(r.offset+=t.position),r.path=G.transform(o,t,n);break}case"remove_text":{G.equals(t.path,o)&&t.offset<=a&&(r.offset-=Math.min(a-t.offset,t.text.length));break}case"remove_node":{if(G.equals(t.path,o)||G.isAncestor(t.path,o))return null;r.path=G.transform(o,t,n);break}case"split_node":{if(G.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=G.transform(o,t,H8(H8({},n),{},{affinity:"forward"})))}else r.path=G.transform(o,t,n);break}}})}},PU={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=Ye.transform(n,t,{affinity:r});e.current=i,i==null&&e.unref()}}},IU=["anchor","focus"];function W8(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 NU(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?W8(Object(n),!0).forEach(function(r){ao(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var re={edges(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:i}=e;return re.isBackward(e)===n?[r,i]:[i,r]},end(e){var[,t]=re.edges(e);return t},equals(e,t){return Ye.equals(e.anchor,t.anchor)&&Ye.equals(e.focus,t.focus)},includes(e,t){if(re.isRange(t)){if(re.includes(e,t.anchor)||re.includes(e,t.focus))return!0;var[n,r]=re.edges(e),[i,o]=re.edges(t);return Ye.isBefore(n,i)&&Ye.isAfter(r,o)}var[a,l]=re.edges(e),u=!1,f=!1;return Ye.isPoint(t)?(u=Ye.compare(t,a)>=0,f=Ye.compare(t,l)<=0):(u=G.compare(t,a.path)>=0,f=G.compare(t,l.path)<=0),u&&f},intersection(e,t){var n=zo(e,IU),[r,i]=re.edges(e),[o,a]=re.edges(t),l=Ye.isBefore(r,o)?o:r,u=Ye.isBefore(i,a)?i:a;return Ye.isBefore(u,l)?null:NU({anchor:l,focus:u},n)},isBackward(e){var{anchor:t,focus:n}=e;return Ye.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return Ye.equals(t,n)},isExpanded(e){return!re.isCollapsed(e)},isForward(e){return!re.isBackward(e)},isRange(e){return ur(e)&&Ye.isPoint(e.anchor)&&Ye.isPoint(e.focus)},*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=re.edges(e);return t},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return c0(e,r=>{if(r===null)return null;var{affinity:i="inward"}=n,o,a;if(i==="inward"){var l=re.isCollapsed(r);re.isForward(r)?(o="forward",a=l?o:"backward"):(o="backward",a=l?o:"forward")}else i==="outward"?re.isForward(r)?(o="backward",a="forward"):(o="forward",a="backward"):(o=i,a=i);var u=Ye.transform(r.anchor,t,{affinity:o}),f=Ye.transform(r.focus,t,{affinity:a});if(!u||!f)return null;r.anchor=u,r.focus=f})}},LU={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=re.transform(n,t,{affinity:r});e.current=i,i==null&&e.unref()}}},q8=(e,t)=>{for(var n in e){var r=e[n],i=t[n];if(ur(r)&&ur(i)){if(!q8(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},RU=["text"],MU=["anchor","focus"];function G8(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 Vo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?G8(Object(n),!0).forEach(function(r){ao(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Se={equals(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:r=!1}=n;function i(o){var a=zo(o,RU);return a}return q8(r?i(e):e,r?i(t):t)},isText(e){return ur(e)&&typeof e.text=="string"},isTextList(e){return Array.isArray(e)&&e.every(t=>Se.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=[Vo({},e)];for(var r of t){var i=zo(r,MU),[o,a]=re.edges(r),l=[],u=0;for(var f of n){var{length:d}=f.text,p=u;if(u+=d,o.offset<=p&&a.offset>=u){Object.assign(f,i),l.push(f);continue}if(o.offset!==a.offset&&(o.offset===u||a.offset===p)||o.offset>u||a.offset<p||a.offset===p&&p!==0){l.push(f);continue}var g=f,h=void 0,E=void 0;if(a.offset<u){var w=a.offset-p;E=Vo(Vo({},g),{},{text:g.text.slice(w)}),g=Vo(Vo({},g),{},{text:g.text.slice(0,w)})}if(o.offset>p){var y=o.offset-p;h=Vo(Vo({},g),{},{text:g.text.slice(0,y)}),g=Vo(Vo({},g),{},{text:g.text.slice(y)})}Object.assign(g,i),h&&l.push(h),l.push(g),E&&l.push(E)}n=l}return n}};function K8(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 od(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?K8(Object(n),!0).forEach(function(r){ao(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var jU=(e,t,n)=>{switch(n.type){case"insert_node":{var{path:r,node:i}=n,o=be.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[l,u]of re.points(t))t[u]=Ye.transform(l,n);break}case"insert_text":{var{path:f,offset:d,text:p}=n;if(p.length===0)break;var g=be.leaf(e,f),h=g.text.slice(0,d),E=g.text.slice(d);if(g.text=h+p+E,t)for(var[w,y]of re.points(t))t[y]=Ye.transform(w,n);break}case"merge_node":{var{path:$}=n,m=be.get(e,$),S=G.previous($),D=be.get(e,S),A=be.parent(e,$),B=$[$.length-1];if(Se.isText(m)&&Se.isText(D))D.text+=m.text;else if(!Se.isText(m)&&!Se.isText(D))D.children.push(...m.children);else throw new Error('Cannot apply a "merge_node" operation at path ['.concat($,"] to nodes of different interfaces: ").concat(m," ").concat(D));if(A.children.splice(B,1),t)for(var[P,U]of re.points(t))t[U]=Ye.transform(P,n);break}case"move_node":{var{path:Y,newPath:ce}=n;if(G.isAncestor(Y,ce))throw new Error("Cannot move a path [".concat(Y,"] to new path [").concat(ce,"] because the destination is inside itself."));var ee=be.get(e,Y),ge=be.parent(e,Y),se=Y[Y.length-1];ge.children.splice(se,1);var xe=G.transform(Y,n),ve=be.get(e,G.parent(xe)),Oe=xe[xe.length-1];if(ve.children.splice(Oe,0,ee),t)for(var[Te,Ne]of re.points(t))t[Ne]=Ye.transform(Te,n);break}case"remove_node":{var{path:Re}=n,Ae=Re[Re.length-1],ie=be.parent(e,Re);if(ie.children.splice(Ae,1),t)for(var[R,M]of re.points(t)){var T=Ye.transform(R,n);if(t!=null&&T!=null)t[M]=T;else{var L=void 0,q=void 0;for(var[O,J]of be.texts(e))if(G.compare(J,Re)===-1)L=[O,J];else{q=[O,J];break}var ue=!1;L&&q&&(G.equals(q[1],Re)?ue=!G.hasPrevious(q[1]):ue=G.common(L[1],Re).length<G.common(q[1],Re).length),L&&!ue?(R.path=L[1],R.offset=L[0].text.length):q?(R.path=q[1],R.offset=0):t=null}}break}case"remove_text":{var{path:he,offset:te,text:Q}=n;if(Q.length===0)break;var Ce=be.leaf(e,he),ae=Ce.text.slice(0,te),ye=Ce.text.slice(te+Q.length);if(Ce.text=ae+ye,t)for(var[Le,$t]of re.points(t))t[$t]=Ye.transform(Le,n);break}case"set_node":{var{path:ft,properties:ot,newProperties:Ze}=n;if(ft.length===0)throw new Error("Cannot set properties on the root node!");var dt=be.get(e,ft);for(var pt in Ze){if(pt==="children"||pt==="text")throw new Error('Cannot set the "'.concat(pt,'" property of nodes!'));var rn=Ze[pt];rn==null?delete dt[pt]:dt[pt]=rn}for(var In in ot)Ze.hasOwnProperty(In)||delete dt[In];break}case"set_selection":{var{newProperties:mt}=n;if(mt==null)t=mt;else{if(t==null){if(!re.isRange(mt))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(mt)," when there is no current selection."));t=od({},mt)}for(var on in mt){var Kt=mt[on];if(Kt==null){if(on==="anchor"||on==="focus")throw new Error('Cannot remove the "'.concat(on,'" selection property'));delete t[on]}else t[on]=Kt}}break}case"split_node":{var{path:Yt,position:Jn,properties:dn}=n;if(Yt.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(Yt,"] because the root node cannot be split."));var Nn=be.get(e,Yt),Di=be.parent(e,Yt),Zi=Yt[Yt.length-1],$r;if(Se.isText(Nn)){var Fr=Nn.text.slice(0,Jn),Ai=Nn.text.slice(Jn);Nn.text=Fr,$r=od(od({},dn),{},{text:Ai})}else{var Pr=Nn.children.slice(0,Jn),Qr=Nn.children.slice(Jn);Nn.children=Pr,$r=od(od({},dn),{},{children:Qr})}if(Di.children.splice(Zi+1,0,$r),t)for(var[Er,To]of re.points(t))t[To]=Ye.transform(Er,n);break}}return t},zU={transform(e,t){e.children=O8(e.children);var n=e.selection&&O8(e.selection);try{n=jU(e,n,t)}finally{e.children=B8(e.children),n?e.selection=Jl(n)?B8(n):n:e.selection=null}}},VU=["text"],UU=["children"];function Y8(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 X8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Y8(Object(n),!0).forEach(function(r){ao(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var HU={insertNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};k.withoutNormalizing(e,()=>{var{hanging:r=!1,voids:i=!1,mode:o="lowest"}=n,{at:a,match:l,select:u}=n;if(be.isNode(t)&&(t=[t]),t.length!==0){var[f]=t;if(a||(e.selection?a=e.selection:e.children.length>0?a=k.end(e,[]):a=[0],u=!0),u==null&&(u=!1),re.isRange(a))if(r||(a=k.unhangRange(e,a)),re.isCollapsed(a))a=a.anchor;else{var[,d]=re.edges(a),p=k.pointRef(e,d);Z.delete(e,{at:a}),a=p.unref()}if(Ye.isPoint(a)){l==null&&(Se.isText(f)?l=B=>Se.isText(B):e.isInline(f)?l=B=>Se.isText(B)||k.isInline(e,B):l=B=>k.isBlock(e,B));var[g]=k.nodes(e,{at:a.path,match:l,mode:o,voids:i});if(g){var[,h]=g,E=k.pathRef(e,h),w=k.isEnd(e,a,h);Z.splitNodes(e,{at:a,match:l,mode:o,voids:i});var y=E.unref();a=w?G.next(y):y}else return}var $=G.parent(a),m=a[a.length-1];if(!(!i&&k.void(e,{at:$}))){for(var S of t){var D=$.concat(m);m++,e.apply({type:"insert_node",path:D,node:S}),a=G.next(a)}if(a=G.previous(a),u){var A=k.end(e,a);A&&Z.select(e,A)}}}})},liftNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};k.withoutNormalizing(e,()=>{var{at:n=e.selection,mode:r="lowest",voids:i=!1}=t,{match:o}=t;if(o==null&&(o=G.isPath(n)?ju(e,n):S=>k.isBlock(e,S)),!!n){var a=k.nodes(e,{at:n,match:o,mode:r,voids:i}),l=Array.from(a,S=>{var[,D]=S;return k.pathRef(e,D)});for(var u of l){var f=u.unref();if(f.length<2)throw new Error("Cannot lift node at a path [".concat(f,"] because it has a depth of less than `2`."));var d=k.node(e,G.parent(f)),[p,g]=d,h=f[f.length-1],{length:E}=p.children;if(E===1){var w=G.next(g);Z.moveNodes(e,{at:f,to:w,voids:i}),Z.removeNodes(e,{at:g,voids:i})}else if(h===0)Z.moveNodes(e,{at:f,to:g,voids:i});else if(h===E-1){var y=G.next(g);Z.moveNodes(e,{at:f,to:y,voids:i})}else{var $=G.next(f),m=G.next(g);Z.splitNodes(e,{at:$,voids:i}),Z.moveNodes(e,{at:f,to:m,voids:i})}}}})},mergeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};k.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(G.isPath(r)){var[l]=k.parent(e,r);n=Y=>l.children.includes(Y)}else n=Y=>k.isBlock(e,Y);if(!i&&re.isRange(r)&&(r=k.unhangRange(e,r)),re.isRange(r))if(re.isCollapsed(r))r=r.anchor;else{var[,u]=re.edges(r),f=k.pointRef(e,u);Z.delete(e,{at:r}),r=f.unref(),t.at==null&&Z.select(e,r)}var[d]=k.nodes(e,{at:r,match:n,voids:o,mode:a}),p=k.previous(e,{at:r,match:n,voids:o,mode:a});if(!(!d||!p)){var[g,h]=d,[E,w]=p;if(!(h.length===0||w.length===0)){var y=G.next(w),$=G.common(h,w),m=G.isSibling(h,w),S=Array.from(k.levels(e,{at:h}),Y=>{var[ce]=Y;return ce}).slice($.length).slice(0,-1),D=k.above(e,{at:h,mode:"highest",match:Y=>S.includes(Y)&&J8(e,Y)}),A=D&&k.pathRef(e,D[1]),B,P;if(Se.isText(g)&&Se.isText(E)){var U=zo(g,VU);P=E.text.length,B=U}else if(ke.isElement(g)&&ke.isElement(E)){var U=zo(g,UU);P=E.children.length,B=U}else throw new Error("Cannot merge the node at path [".concat(h,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(g)," ").concat(JSON.stringify(E)));m||Z.moveNodes(e,{at:h,to:y,voids:o}),A&&Z.removeNodes(e,{at:A.current,voids:o}),ke.isElement(E)&&k.isEmpty(e,E)||Se.isText(E)&&E.text===""&&w[w.length-1]!==0?Z.removeNodes(e,{at:w,voids:o}):e.apply({type:"merge_node",path:y,position:P,properties:B}),A&&A.unref()}}}})},moveNodes(e,t){k.withoutNormalizing(e,()=>{var{to:n,at:r=e.selection,mode:i="lowest",voids:o=!1}=t,{match:a}=t;if(!!r){a==null&&(a=G.isPath(r)?ju(e,r):h=>k.isBlock(e,h));var l=k.pathRef(e,n),u=k.nodes(e,{at:r,match:a,mode:i,voids:o}),f=Array.from(u,h=>{var[,E]=h;return k.pathRef(e,E)});for(var d of f){var p=d.unref(),g=l.current;p.length!==0&&e.apply({type:"move_node",path:p,newPath:g}),l.current&&G.isSibling(g,p)&&G.isAfter(g,p)&&(l.current=G.next(l.current))}l.unref()}})},removeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};k.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=G.isPath(o)?ju(e,o):g=>k.isBlock(e,g)),!n&&re.isRange(o)&&(o=k.unhangRange(e,o));var l=k.nodes(e,{at:o,match:a,mode:i,voids:r}),u=Array.from(l,g=>{var[,h]=g;return k.pathRef(e,h)});for(var f of u){var d=f.unref();if(d){var[p]=k.node(e,d);e.apply({type:"remove_node",path:d,node:p})}}}})},setNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};k.withoutNormalizing(e,()=>{var{match:r,at:i=e.selection}=n,{hanging:o=!1,mode:a="lowest",split:l=!1,voids:u=!1}=n;if(!!i){if(r==null&&(r=G.isPath(i)?ju(e,i):A=>k.isBlock(e,A)),!o&&re.isRange(i)&&(i=k.unhangRange(e,i)),l&&re.isRange(i)){if(re.isCollapsed(i)&&k.leaf(e,i.anchor)[0].text.length>0)return;var f=k.rangeRef(e,i,{affinity:"inward"}),[d,p]=re.edges(i),g=a==="lowest"?"lowest":"highest",h=k.isEnd(e,p,p.path);Z.splitNodes(e,{at:p,match:r,mode:g,voids:u,always:!h});var E=k.isStart(e,d,d.path);Z.splitNodes(e,{at:d,match:r,mode:g,voids:u,always:!E}),i=f.unref(),n.at==null&&Z.select(e,i)}for(var[w,y]of k.nodes(e,{at:i,match:r,mode:a,voids:u})){var $={},m={};if(y.length!==0){var S=!1;for(var D in t)D==="children"||D==="text"||t[D]!==w[D]&&(S=!0,w.hasOwnProperty(D)&&($[D]=w[D]),t[D]!=null&&(m[D]=t[D]));S&&e.apply({type:"set_node",path:y,properties:$,newProperties:m})}}}})},splitNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};k.withoutNormalizing(e,()=>{var{mode:n="lowest",voids:r=!1}=t,{match:i,at:o=e.selection,height:a=0,always:l=!1}=t;if(i==null&&(i=Te=>k.isBlock(e,Te)),re.isRange(o)&&(o=WU(e,o)),G.isPath(o)){var u=o,f=k.point(e,u),[d]=k.parent(e,u);i=Te=>Te===d,a=f.path.length-u.length+1,o=f,l=!0}if(!!o){var p=k.pointRef(e,o,{affinity:"backward"}),[g]=k.nodes(e,{at:o,match:i,mode:n,voids:r});if(!!g){var h=k.void(e,{at:o,mode:"highest"}),E=0;if(!r&&h){var[w,y]=h;if(ke.isElement(w)&&e.isInline(w)){var $=k.after(e,y);if(!$){var m={text:""},S=G.next(y);Z.insertNodes(e,m,{at:S,voids:r}),$=k.point(e,S)}o=$,l=!0}var D=o.path.length-y.length;a=D+1,l=!0}var A=k.pointRef(e,o),B=o.path.length-a,[,P]=g,U=o.path.slice(0,B),Y=a===0?o.offset:o.path[B]+E;for(var[ce,ee]of k.levels(e,{at:U,reverse:!0,voids:r})){var ge=!1;if(ee.length<P.length||ee.length===0||!r&&k.isVoid(e,ce))break;var se=p.current,xe=k.isEnd(e,se,ee);if(l||!p||!k.isEdge(e,se,ee)){ge=!0;var ve=be.extractProps(ce);e.apply({type:"split_node",path:ee,position:Y,properties:ve})}Y=ee[ee.length-1]+(ge||xe?1:0)}if(t.at==null){var Oe=A.current||k.end(e,[]);Z.select(e,Oe)}p.unref(),A.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;Z.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};k.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=G.isPath(o)?ju(e,o):g=>k.isBlock(e,g)),G.isPath(o)&&(o=k.range(e,o));var l=re.isRange(o)?k.rangeRef(e,o):null,u=k.nodes(e,{at:o,match:a,mode:n,voids:i}),f=Array.from(u,g=>{var[,h]=g;return k.pathRef(e,h)}).reverse(),d=function(h){var E=h.unref(),[w]=k.node(e,E),y=k.range(e,E);r&&l&&(y=re.intersection(l.current,y)),Z.liftNodes(e,{at:y,match:$=>ke.isAncestor(w)&&w.children.includes($),voids:i})};for(var p of f)d(p);l&&l.unref()}})},wrapNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};k.withoutNormalizing(e,()=>{var{mode:r="lowest",split:i=!1,voids:o=!1}=n,{match:a,at:l=e.selection}=n;if(!!l){if(a==null&&(G.isPath(l)?a=ju(e,l):e.isInline(t)?a=y=>k.isInline(e,y)||Se.isText(y):a=y=>k.isBlock(e,y)),i&&re.isRange(l)){var[u,f]=re.edges(l),d=k.rangeRef(e,l,{affinity:"inward"});Z.splitNodes(e,{at:f,match:a,voids:o}),Z.splitNodes(e,{at:u,match:a,voids:o}),l=d.unref(),n.at==null&&Z.select(e,l)}var p=Array.from(k.nodes(e,{at:l,match:e.isInline(t)?y=>k.isBlock(e,y):y=>k.isEditor(y),mode:"lowest",voids:o}));for(var[,g]of p){var h=re.isRange(l)?re.intersection(l,k.range(e,g)):l;if(!!h){var E=Array.from(k.nodes(e,{at:h,match:a,mode:r,voids:o}));if(E.length>0){var w=function(){var[y]=E,$=E[E.length-1],[,m]=y,[,S]=$;if(m.length===0&&S.length===0)return"continue";var D=G.equals(m,S)?G.parent(m):G.common(m,S),A=k.range(e,m,S),B=k.node(e,D),[P]=B,U=D.length+1,Y=G.next(S.slice(0,U)),ce=X8(X8({},t),{},{children:[]});Z.insertNodes(e,ce,{at:Y,voids:o}),Z.moveNodes(e,{at:A,match:ee=>ke.isAncestor(P)&&P.children.includes(ee),to:Y.concat(0),voids:o})}();if(w==="continue")continue}}}}})}},J8=(e,t)=>{if(ke.isElement(t)){var n=t;return k.isVoid(e,t)?!0:n.children.length===1?J8(e,n.children[0]):!1}else return!k.isEditor(t)},WU=(e,t)=>{if(re.isCollapsed(t))return t.anchor;var[,n]=re.edges(t),r=k.pointRef(e,n);return Z.delete(e,{at:t}),r.unref()},ju=(e,t)=>{var[n]=k.node(e,t);return r=>r===n};function Z8(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 Q8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Z8(Object(n),!0).forEach(function(r){ao(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var qU={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")Z.select(e,r.anchor);else if(n==="focus")Z.select(e,r.focus);else if(n==="start"){var[i]=re.edges(r);Z.select(e,i)}else if(n==="end"){var[,o]=re.edges(r);Z.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=re.isBackward(n)?"focus":"anchor"),a==="end"&&(a=re.isBackward(n)?"anchor":"focus");var{anchor:l,focus:u}=n,f={distance:r,unit:i},d={};if(a==null||a==="anchor"){var p=o?k.before(e,l,f):k.after(e,l,f);p&&(d.anchor=p)}if(a==null||a==="focus"){var g=o?k.before(e,u,f):k.after(e,u,f);g&&(d.focus=g)}Z.setSelection(e,d)}},select(e,t){var{selection:n}=e;if(t=k.range(e,t),n){Z.setSelection(e,t);return}if(!re.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=re.isBackward(r)?"focus":"anchor"),i==="end"&&(i=re.isBackward(r)?"anchor":"focus");var{anchor:o,focus:a}=r,l=i==="anchor"?o:a;Z.setSelection(e,{[i==="anchor"?"anchor":"focus"]:Q8(Q8({},l),t)})}},setSelection(e,t){var{selection:n}=e,r={},i={};if(!!n){for(var o in t)(o==="anchor"&&t.anchor!=null&&!Ye.equals(t.anchor,n.anchor)||o==="focus"&&t.focus!=null&&!Ye.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})}}},GU={delete(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};k.withoutNormalizing(e,()=>{var{reverse:n=!1,unit:r="character",distance:i=1,voids:o=!1}=t,{at:a=e.selection,hanging:l=!1}=t;if(!!a){if(re.isRange(a)&&re.isCollapsed(a)&&(a=a.anchor),Ye.isPoint(a)){var u=k.void(e,{at:a,mode:"highest"});if(!o&&u){var[,f]=u;a=f}else{var d={unit:r,distance:i},p=n?k.before(e,a,d)||k.start(e,[]):k.after(e,a,d)||k.end(e,[]);a={anchor:a,focus:p},l=!0}}if(G.isPath(a)){Z.removeNodes(e,{at:a,voids:o});return}if(!re.isCollapsed(a)){if(!l){var[,g]=re.edges(a),h=k.end(e,[]);Ye.equals(g,h)||(a=k.unhangRange(e,a,{voids:o}))}var[E,w]=re.edges(a),y=k.above(e,{match:ue=>k.isBlock(e,ue),at:E,voids:o}),$=k.above(e,{match:ue=>k.isBlock(e,ue),at:w,voids:o}),m=y&&$&&!G.equals(y[1],$[1]),S=G.equals(E.path,w.path),D=o?null:k.void(e,{at:E,mode:"highest"}),A=o?null:k.void(e,{at:w,mode:"highest"});if(D){var B=k.before(e,E);B&&y&&G.isAncestor(y[1],B.path)&&(E=B)}if(A){var P=k.after(e,w);P&&$&&G.isAncestor($[1],P.path)&&(w=P)}var U=[],Y;for(var ce of k.nodes(e,{at:a,voids:o})){var[ee,ge]=ce;Y&&G.compare(ge,Y)===0||(!o&&k.isVoid(e,ee)||!G.isCommon(ge,E.path)&&!G.isCommon(ge,w.path))&&(U.push(ce),Y=ge)}var se=Array.from(U,ue=>{var[,he]=ue;return k.pathRef(e,he)}),xe=k.pointRef(e,E),ve=k.pointRef(e,w);if(!S&&!D){var Oe=xe.current,[Te]=k.leaf(e,Oe),{path:Ne}=Oe,{offset:Re}=E,Ae=Te.text.slice(Re);Ae.length>0&&e.apply({type:"remove_text",path:Ne,offset:Re,text:Ae})}for(var ie of se){var R=ie.unref();Z.removeNodes(e,{at:R,voids:o})}if(!A){var M=ve.current,[T]=k.leaf(e,M),{path:L}=M,q=S?E.offset:0,O=T.text.slice(q,w.offset);O.length>0&&e.apply({type:"remove_text",path:L,offset:q,text:O})}!S&&m&&ve.current&&xe.current&&Z.mergeNodes(e,{at:ve.current,hanging:!0,voids:o});var J=n?xe.unref()||ve.unref():ve.unref()||xe.unref();t.at==null&&J&&Z.select(e,J)}}})},insertFragment(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};k.withoutNormalizing(e,()=>{var{hanging:r=!1,voids:i=!1}=n,{at:o=e.selection}=n;if(!!t.length){if(o)if(re.isRange(o))if(r||(o=k.unhangRange(e,o)),re.isCollapsed(o))o=o.anchor;else{var[,a]=re.edges(o);if(!i&&k.void(e,{at:a}))return;var l=k.pointRef(e,a);Z.delete(e,{at:o}),o=l.unref()}else G.isPath(o)&&(o=k.start(e,o));else return;if(!(!i&&k.void(e,{at:o}))){var u=k.above(e,{at:o,match:T=>k.isInline(e,T),mode:"highest",voids:i});if(u){var[,f]=u;if(k.isEnd(e,o,f)){var d=k.after(e,f);o=d}else if(k.isStart(e,o,f)){var p=k.before(e,f);o=p}}var g=k.above(e,{match:T=>k.isBlock(e,T),at:o,voids:i}),[,h]=g,E=k.isStart(e,o,h),w=k.isEnd(e,o,h),y=E&&w,$=!E||E&&w,m=!w,[,S]=be.first({children:t},[]),[,D]=be.last({children:t},[]),A=[],B=T=>{var[L,q]=T,O=q.length===0;return O?!1:y?!0:!($&&G.isAncestor(q,S)&&ke.isElement(L)&&!e.isVoid(L)&&!e.isInline(L)||m&&G.isAncestor(q,D)&&ke.isElement(L)&&!e.isVoid(L)&&!e.isInline(L))};for(var P of be.nodes({children:t},{pass:B}))B(P)&&A.push(P);var U=[],Y=[],ce=[],ee=!0,ge=!1;for(var[se]of A)ke.isElement(se)&&!e.isInline(se)?(ee=!1,ge=!0,Y.push(se)):ee?U.push(se):ce.push(se);var[xe]=k.nodes(e,{at:o,match:T=>Se.isText(T)||k.isInline(e,T),mode:"highest",voids:i}),[,ve]=xe,Oe=k.isStart(e,o,ve),Te=k.isEnd(e,o,ve),Ne=k.pathRef(e,w?G.next(h):h),Re=k.pathRef(e,Te?G.next(ve):ve),Ae=k.pathRef(e,h);Z.splitNodes(e,{at:o,match:T=>ge?k.isBlock(e,T):Se.isText(T)||k.isInline(e,T),mode:ge?"lowest":"highest",voids:i});var ie=k.pathRef(e,!Oe||Oe&&Te?G.next(ve):ve);if(Z.insertNodes(e,U,{at:ie.current,match:T=>Se.isText(T)||k.isInline(e,T),mode:"highest",voids:i}),y&&Y.length&&Z.delete(e,{at:Ae.unref(),voids:i}),Z.insertNodes(e,Y,{at:Ne.current,match:T=>k.isBlock(e,T),mode:"lowest",voids:i}),Z.insertNodes(e,ce,{at:Re.current,match:T=>Se.isText(T)||k.isInline(e,T),mode:"highest",voids:i}),!n.at){var R;ce.length>0?R=G.previous(Re.current):Y.length>0?R=G.previous(Ne.current):R=G.previous(ie.current);var M=k.end(e,R);Z.select(e,M)}ie.unref(),Ne.unref(),Re.unref()}}})},insertText(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};k.withoutNormalizing(e,()=>{var{voids:r=!1}=n,{at:i=e.selection}=n;if(!!i){if(G.isPath(i)&&(i=k.range(e,i)),re.isRange(i))if(re.isCollapsed(i))i=i.anchor;else{var o=re.end(i);if(!r&&k.void(e,{at:o}))return;var a=k.pointRef(e,o);Z.delete(e,{at:i,voids:r}),i=a.unref(),Z.setSelection(e,{anchor:i,focus:i})}if(!(!r&&k.void(e,{at:i}))){var{path:l,offset:u}=i;t.length>0&&e.apply({type:"insert_text",path:l,offset:u,text:t})}}})}};function eD(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 p0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eD(Object(n),!0).forEach(function(r){ao(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Z=p0(p0(p0(p0({},zU),HU),qU),GU),Jt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ib(e){var t={exports:{}};return e(t,t.exports),t.exports}var tD=9007199254740991,KU="[object Arguments]",YU="[object Function]",XU="[object GeneratorFunction]",Nb="[object Map]",JU="[object Object]",nD="[object Promise]",Lb="[object Set]",ZU="[object String]",rD="[object WeakMap]",iD="[object DataView]",QU=/[\\^$.*+?()[\]{}|]/g,eH=/^\[object .+?Constructor\]$/,tH=/^(?:0|[1-9]\d*)$/,Rb="\\ud800-\\udfff",oD="\\u0300-\\u036f\\ufe20-\\ufe23",aD="\\u20d0-\\u20f0",lD="\\ufe0e\\ufe0f",nH="["+Rb+"]",Mb="["+oD+aD+"]",jb="\\ud83c[\\udffb-\\udfff]",rH="(?:"+Mb+"|"+jb+")",sD="[^"+Rb+"]",uD="(?:\\ud83c[\\udde6-\\uddff]){2}",cD="[\\ud800-\\udbff][\\udc00-\\udfff]",fD="\\u200d",dD=rH+"?",pD="["+lD+"]?",iH="(?:"+fD+"(?:"+[sD,uD,cD].join("|")+")"+pD+dD+")*",oH=pD+dD+iH,aH="(?:"+[sD+Mb+"?",Mb,uD,cD,nH].join("|")+")",lH=RegExp(jb+"(?="+jb+")|"+aH+oH,"g"),sH=RegExp("["+fD+Rb+oD+aD+lD+"]"),uH=typeof Jt=="object"&&Jt&&Jt.Object===Object&&Jt,cH=typeof self=="object"&&self&&self.Object===Object&&self,es=uH||cH||Function("return this")();function fH(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 dH(e){return e.split("")}function pH(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function hH(e,t){return fH(t,function(n){return e[n]})}function gH(e,t){return e==null?void 0:e[t]}function vH(e){return sH.test(e)}function mH(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function yH(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function bH(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function wH(e,t){return function(n){return e(t(n))}}function $H(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}function EH(e){return vH(e)?CH(e):dH(e)}function CH(e){return e.match(lH)||[]}var SH=Function.prototype,h0=Object.prototype,zb=es["__core-js_shared__"],hD=function(){var e=/[^.]+$/.exec(zb&&zb.keys&&zb.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),gD=SH.toString,g0=h0.hasOwnProperty,ad=h0.toString,xH=RegExp("^"+gD.call(g0).replace(QU,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),vD=es.Symbol,Vb=vD?vD.iterator:void 0,DH=h0.propertyIsEnumerable,AH=wH(Object.keys,Object),Ub=ld(es,"DataView"),Hb=ld(es,"Map"),Wb=ld(es,"Promise"),qb=ld(es,"Set"),Gb=ld(es,"WeakMap"),_H=ns(Ub),kH=ns(Hb),OH=ns(Wb),BH=ns(qb),TH=ns(Gb);function FH(e,t){var n=mD(e)||zH(e)?pH(e.length,String):[],r=n.length,i=!!r;for(var o in e)(t||g0.call(e,o))&&!(i&&(o=="length"||RH(o,r)))&&n.push(o);return n}function PH(e){return ad.call(e)}function IH(e){if(!bD(e)||MH(e))return!1;var t=yD(e)||mH(e)?xH:eH;return t.test(ns(e))}function NH(e){if(!jH(e))return AH(e);var t=[];for(var n in Object(e))g0.call(e,n)&&n!="constructor"&&t.push(n);return t}function LH(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function ld(e,t){var n=gH(e,t);return IH(n)?n:void 0}var ts=PH;(Ub&&ts(new Ub(new ArrayBuffer(1)))!=iD||Hb&&ts(new Hb)!=Nb||Wb&&ts(Wb.resolve())!=nD||qb&&ts(new qb)!=Lb||Gb&&ts(new Gb)!=rD)&&(ts=function(e){var t=ad.call(e),n=t==JU?e.constructor:void 0,r=n?ns(n):void 0;if(r)switch(r){case _H:return iD;case kH:return Nb;case OH:return nD;case BH:return Lb;case TH:return rD}return t});function RH(e,t){return t=t==null?tD:t,!!t&&(typeof e=="number"||tH.test(e))&&e>-1&&e%1==0&&e<t}function MH(e){return!!hD&&hD in e}function jH(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||h0;return e===n}function ns(e){if(e!=null){try{return gD.call(e)}catch{}try{return e+""}catch{}}return""}function zH(e){return VH(e)&&g0.call(e,"callee")&&(!DH.call(e,"callee")||ad.call(e)==KU)}var mD=Array.isArray;function Kb(e){return e!=null&&UH(e.length)&&!yD(e)}function VH(e){return wD(e)&&Kb(e)}function yD(e){var t=bD(e)?ad.call(e):"";return t==YU||t==XU}function UH(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=tD}function bD(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function wD(e){return!!e&&typeof e=="object"}function HH(e){return typeof e=="string"||!mD(e)&&wD(e)&&ad.call(e)==ZU}function WH(e){if(!e)return[];if(Kb(e))return HH(e)?EH(e):LH(e);if(Vb&&e[Vb])return yH(e[Vb]());var t=ts(e),n=t==Nb?bH:t==Lb?$H:GH;return n(e)}function qH(e){return Kb(e)?FH(e):NH(e)}function GH(e){return e?hH(e,qH(e)):[]}var $D=WH;function ED(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function Yb(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach(function(n){typeof e[n]>"u"?e[n]=t[n]:ED(t[n])&&ED(e[n])&&Object.keys(t[n]).length>0&&Yb(e[n],t[n])})}var CD={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 sd(){var e=typeof document<"u"?document:{};return Yb(e,CD),e}var KH={document:CD,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 rs(){var e=typeof window<"u"?window:{};return Yb(e,KH),e}function YH(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Xb(e){return Xb=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Xb(e)}function v0(e,t){return v0=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},v0(e,t)}function XH(){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 m0(e,t,n){return XH()?m0=Reflect.construct:m0=function(i,o,a){var l=[null];l.push.apply(l,o);var u=Function.bind.apply(i,l),f=new u;return a&&v0(f,a.prototype),f},m0.apply(null,arguments)}function JH(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Jb(e){var t=typeof Map=="function"?new Map:void 0;return Jb=function(r){if(r===null||!JH(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 m0(r,arguments,Xb(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),v0(i,r)},Jb(e)}function ZH(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QH(e){var t=e.__proto__;Object.defineProperty(e,"__proto__",{get:function(){return t},set:function(r){t.__proto__=r}})}var Sa=function(e){YH(t,e);function t(n){var r;return r=e.call.apply(e,[this].concat(n))||this,QH(ZH(r)),r}return t}(Jb(Array));function y0(e){e===void 0&&(e=[]);var t=[];return e.forEach(function(n){Array.isArray(n)?t.push.apply(t,y0(n)):t.push(n)}),t}function SD(e,t){return Array.prototype.filter.call(e,t)}function eW(e){for(var t=[],n=0;n<e.length;n+=1)t.indexOf(e[n])===-1&&t.push(e[n]);return t}function tW(e){return e.toLowerCase().replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function nW(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 V(e,t){var n=rs(),r=sd(),i=[];if(!t&&e instanceof Sa)return e;if(!e)return new Sa(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 l=r.createElement(a);l.innerHTML=o;for(var u=0;u<l.childNodes.length;u+=1)i.push(l.childNodes[u])}else i=nW(e.trim(),t||r)}else if(e.nodeType||e===n||e===r)i.push(e);else if(Array.isArray(e)){if(e instanceof Sa)return e;i=e}return new Sa(eW(i))}V.fn=Sa.prototype;function zu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=y0(t.map(function(i){return i.split(" ")}));return this.forEach(function(i){var o;(o=i.classList).add.apply(o,r)}),this}function Vu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=y0(t.map(function(i){return i.split(" ")}));return this.forEach(function(i){var o;(o=i.classList).remove.apply(o,r)}),this}function Uu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=y0(t.map(function(i){return i.split(" ")}));return SD(this,function(i){return r.filter(function(o){return i.classList.contains(o)}).length>0}).length>0}function ai(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 b0(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function Hu(){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[tW(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 lo(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 so(){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 l(w){var y=w.target;if(!!y){var $=w.target.dom7EventData||[];if($.indexOf(w)<0&&$.unshift(w),V(y).is(i))o.apply(y,$);else for(var m=V(y).parents(),S=0;S<m.length;S+=1)V(m[S]).is(i)&&o.apply(m[S],$)}}function u(w){var y=w&&w.target?w.target.dom7EventData||[]:[];y.indexOf(w)<0&&y.unshift(w),o.apply(this,y)}for(var f=r.split(" "),d,p=0;p<this.length;p+=1){var g=this[p];if(i)for(d=0;d<f.length;d+=1){var E=f[d];g.dom7LiveListeners||(g.dom7LiveListeners={}),g.dom7LiveListeners[E]||(g.dom7LiveListeners[E]=[]),g.dom7LiveListeners[E].push({listener:o,proxyListener:l}),g.addEventListener(E,l,a)}else for(d=0;d<f.length;d+=1){var h=f[d];g.dom7Listeners||(g.dom7Listeners={}),g.dom7Listeners[h]||(g.dom7Listeners[h]=[]),g.dom7Listeners[h].push({listener:o,proxyListener:u}),g.addEventListener(h,u,a)}}return this}function xD(){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 l=r.split(" "),u=0;u<l.length;u+=1)for(var f=l[u],d=0;d<this.length;d+=1){var p=this[d],g=void 0;if(!i&&p.dom7Listeners?g=p.dom7Listeners[f]:i&&p.dom7LiveListeners&&(g=p.dom7LiveListeners[f]),g&&g.length)for(var h=g.length-1;h>=0;h-=1){var E=g[h];o&&E.listener===o||o&&E.listener&&E.listener.dom7proxy&&E.listener.dom7proxy===o?(p.removeEventListener(f,E.proxyListener,a),g.splice(h,1)):o||(p.removeEventListener(f,E.proxyListener,a),g.splice(h,1))}}return this}function w0(){var e=rs();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function $0(){var e=rs();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function DD(){if(this.length>0){var e=rs(),t=sd(),n=this[0],r=n.getBoundingClientRect(),i=t.body,o=n.clientTop||i.clientTop||0,a=n.clientLeft||i.clientLeft||0,l=n===e?e.scrollY:n.scrollTop,u=n===e?e.scrollX:n.scrollLeft;return{top:r.top+l-o,left:r.left+u-a}}return null}function Wu(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function E0(){for(var e=rs(),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 C0(e,t){var n=rs(),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 S0(e){return e?(this.forEach(function(t,n){e.apply(t,[t,n])}),this):this}function AD(e){var t=SD(this,e);return V(t)}function xa(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 x0(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 _D(e){var t=rs(),n=sd(),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=V(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 Sa){for(i=e.nodeType?[e]:e,o=0;o<i.length;o+=1)if(i[o]===r)return!0;return!1}return!1}function li(){for(var e,t=sd(),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 Sa)for(var o=0;o<e.length;o+=1)this[r].appendChild(e[o]);else this[r].appendChild(e)}return this}function kD(e){var t=sd(),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 Sa)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 qu(e){for(var t=[],n=0;n<this.length;n+=1)this[n].parentNode!==null&&(e?V(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return V(t)}function D0(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?V(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return V(t)}function Gu(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 V(t)}function Ku(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||V(r[i]).is(e))&&t.push(r[i]);return V(t)}function Yu(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function Xu(){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 rW="resize scroll".split(" ");function OD(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)rW.indexOf(e)<0&&(e in this[o]?this[o][e]():V(this[o]).trigger(e));return this}return this.on.apply(this,[e].concat(r))}return t}var BD=OD("click"),Da=OD("focus"),TD=9007199254740991,iW="[object Arguments]",oW="[object Function]",aW="[object GeneratorFunction]",lW=/^(?:0|[1-9]\d*)$/;function sW(e,t){for(var n=-1,r=e?e.length:0;++n<r&&t(e[n],n,e)!==!1;);return e}function uW(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function cW(e,t){return function(n){return e(t(n))}}var A0=Object.prototype,Zb=A0.hasOwnProperty,FD=A0.toString,fW=A0.propertyIsEnumerable,dW=cW(Object.keys,Object);function pW(e,t){var n=PD(e)||CW(e)?uW(e.length,String):[],r=n.length,i=!!r;for(var o in e)(t||Zb.call(e,o))&&!(i&&(o=="length"||wW(o,r)))&&n.push(o);return n}var hW=yW(vW),gW=bW();function vW(e,t){return e&&gW(e,t,kW)}function mW(e){if(!$W(e))return dW(e);var t=[];for(var n in Object(e))Zb.call(e,n)&&n!="constructor"&&t.push(n);return t}function yW(e,t){return function(n,r){if(n==null)return n;if(!Qb(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 bW(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),l=a.length;l--;){var u=a[e?l:++i];if(n(o[u],u,o)===!1)break}return t}}function wW(e,t){return t=t==null?TD:t,!!t&&(typeof e=="number"||lW.test(e))&&e>-1&&e%1==0&&e<t}function $W(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||A0;return e===n}function EW(e,t){var n=PD(e)?sW:hW;return n(e,typeof t=="function"?t:OW)}function CW(e){return SW(e)&&Zb.call(e,"callee")&&(!fW.call(e,"callee")||FD.call(e)==iW)}var PD=Array.isArray;function Qb(e){return e!=null&&DW(e.length)&&!xW(e)}function SW(e){return _W(e)&&Qb(e)}function xW(e){var t=AW(e)?FD.call(e):"";return t==oW||t==aW}function DW(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=TD}function AW(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function _W(e){return!!e&&typeof e=="object"}function kW(e){return Qb(e)?pW(e):mW(e)}function OW(e){return e}var e2=EW;{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 ID=(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 ND="Expected a function",LD=0/0,BW="[object Symbol]",TW=/^\s+|\s+$/g,FW=/^[-+]0x[0-9a-f]+$/i,PW=/^0b[01]+$/i,IW=/^0o[0-7]+$/i,NW=parseInt,LW=typeof Jt=="object"&&Jt&&Jt.Object===Object&&Jt,RW=typeof self=="object"&&self&&self.Object===Object&&self,MW=LW||RW||Function("return this")(),jW=Object.prototype,zW=jW.toString,VW=Math.max,UW=Math.min,t2=function(){return MW.Date.now()};function HW(e,t,n){var r,i,o,a,l,u,f=0,d=!1,p=!1,g=!0;if(typeof e!="function")throw new TypeError(ND);t=RD(t)||0,_0(n)&&(d=!!n.leading,p="maxWait"in n,o=p?VW(RD(n.maxWait)||0,t):o,g="trailing"in n?!!n.trailing:g);function h(B){var P=r,U=i;return r=i=void 0,f=B,a=e.apply(U,P),a}function E(B){return f=B,l=setTimeout($,t),d?h(B):a}function w(B){var P=B-u,U=B-f,Y=t-P;return p?UW(Y,o-U):Y}function y(B){var P=B-u,U=B-f;return u===void 0||P>=t||P<0||p&&U>=o}function $(){var B=t2();if(y(B))return m(B);l=setTimeout($,w(B))}function m(B){return l=void 0,g&&r?h(B):(r=i=void 0,a)}function S(){l!==void 0&&clearTimeout(l),f=0,r=u=i=l=void 0}function D(){return l===void 0?a:m(t2())}function A(){var B=t2(),P=y(B);if(r=arguments,i=this,u=B,P){if(l===void 0)return E(u);if(p)return l=setTimeout($,t),h(u)}return l===void 0&&(l=setTimeout($,t)),a}return A.cancel=S,A.flush=D,A}function WW(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(ND);return _0(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),HW(e,t,{leading:r,maxWait:t,trailing:i})}function _0(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function qW(e){return!!e&&typeof e=="object"}function GW(e){return typeof e=="symbol"||qW(e)&&zW.call(e)==BW}function RD(e){if(typeof e=="number")return e;if(GW(e))return LD;if(_0(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=_0(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(TW,"");var n=PW.test(e);return n||IW.test(e)?NW(e.slice(2),n?2:8):FW.test(e)?LD:+e}var is=WW;function KW(e,t){return document.createElement(e,t)}function YW(e,t,n){return document.createElementNS(e,t,n)}function XW(e){return document.createTextNode(e)}function JW(e){return document.createComment(e)}function ZW(e,t,n){e.insertBefore(t,n)}function QW(e,t){e.removeChild(t)}function eq(e,t){e.appendChild(t)}function tq(e){return e.parentNode}function nq(e){return e.nextSibling}function rq(e){return e.tagName}function iq(e,t){e.textContent=t}function oq(e){return e.textContent}function aq(e){return e.nodeType===1}function lq(e){return e.nodeType===3}function sq(e){return e.nodeType===8}const uq={createElement:KW,createElementNS:YW,createTextNode:XW,createComment:JW,insertBefore:ZW,removeChild:QW,appendChild:eq,parentNode:tq,nextSibling:nq,tagName:rq,setTextContent:iq,getTextContent:oq,isElement:aq,isText:lq,isComment:sq};function ud(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 n2=Array.isArray;function k0(e){return typeof e=="string"||typeof e=="number"||e instanceof String||e instanceof Number}function r2(e){return e===void 0}function Vr(e){return e!==void 0}const MD=ud("",{},[],void 0,void 0);function cd(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 cq(e){return e.sel!==void 0}function fq(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 dq=["create","update","remove","destroy","pre","post"];function pq(e,t){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=t!==void 0?t:uq;for(const g of dq)for(const h of e){const E=h[g];E!==void 0&&n[g].push(E)}function i(g){const h=g.id?"#"+g.id:"",E=g.getAttribute("class"),w=E?"."+E.split(" ").join("."):"";return ud(r.tagName(g).toLowerCase()+h+w,{},[],void 0,g)}function o(g,h){return function(){if(--h===0){const w=r.parentNode(g);r.removeChild(w,g)}}}function a(g,h){var E,w;let y,$=g.data;if($!==void 0){const D=(E=$.hook)===null||E===void 0?void 0:E.init;Vr(D)&&(D(g),$=g.data)}const m=g.children,S=g.sel;if(S==="!")r2(g.text)&&(g.text=""),g.elm=r.createComment(g.text);else if(S!==void 0){const D=S.indexOf("#"),A=S.indexOf(".",D),B=D>0?D:S.length,P=A>0?A:S.length,U=D!==-1||A!==-1?S.slice(0,Math.min(B,P)):S,Y=g.elm=Vr($)&&Vr(y=$.ns)?r.createElementNS(y,U,$):r.createElement(U,$);for(B<P&&Y.setAttribute("id",S.slice(B+1,P)),A>0&&Y.setAttribute("class",S.slice(P+1).replace(/\./g," ")),y=0;y<n.create.length;++y)n.create[y](MD,g);if(n2(m))for(y=0;y<m.length;++y){const ee=m[y];ee!=null&&r.appendChild(Y,a(ee,h))}else k0(g.text)&&r.appendChild(Y,r.createTextNode(g.text));const ce=g.data.hook;Vr(ce)&&((w=ce.create)===null||w===void 0||w.call(ce,MD,g),ce.insert&&h.push(g))}else g.elm=r.createTextNode(g.text);return g.elm}function l(g,h,E,w,y,$){for(;w<=y;++w){const m=E[w];m!=null&&r.insertBefore(g,a(m,$),h)}}function u(g){var h,E;const w=g.data;if(w!==void 0){(E=(h=w==null?void 0:w.hook)===null||h===void 0?void 0:h.destroy)===null||E===void 0||E.call(h,g);for(let y=0;y<n.destroy.length;++y)n.destroy[y](g);if(g.children!==void 0)for(let y=0;y<g.children.length;++y){const $=g.children[y];$!=null&&typeof $!="string"&&u($)}}}function f(g,h,E,w){for(var y,$;E<=w;++E){let m,S;const D=h[E];if(D!=null)if(Vr(D.sel)){u(D),m=n.remove.length+1,S=o(D.elm,m);for(let B=0;B<n.remove.length;++B)n.remove[B](D,S);const A=($=(y=D==null?void 0:D.data)===null||y===void 0?void 0:y.hook)===null||$===void 0?void 0:$.remove;Vr(A)?A(D,S):S()}else r.removeChild(g,D.elm)}}function d(g,h,E,w){let y=0,$=0,m=h.length-1,S=h[0],D=h[m],A=E.length-1,B=E[0],P=E[A],U,Y,ce,ee;for(;y<=m&&$<=A;)S==null?S=h[++y]:D==null?D=h[--m]:B==null?B=E[++$]:P==null?P=E[--A]:cd(S,B)?(p(S,B,w),S=h[++y],B=E[++$]):cd(D,P)?(p(D,P,w),D=h[--m],P=E[--A]):cd(S,P)?(p(S,P,w),r.insertBefore(g,S.elm,r.nextSibling(D.elm)),S=h[++y],P=E[--A]):cd(D,B)?(p(D,B,w),r.insertBefore(g,D.elm,S.elm),D=h[--m],B=E[++$]):(U===void 0&&(U=fq(h,y,m)),Y=U[B.key],r2(Y)?r.insertBefore(g,a(B,w),S.elm):(ce=h[Y],ce.sel!==B.sel?r.insertBefore(g,a(B,w),S.elm):(p(ce,B,w),h[Y]=void 0,r.insertBefore(g,ce.elm,S.elm))),B=E[++$]);(y<=m||$<=A)&&(y>m?(ee=E[A+1]==null?null:E[A+1].elm,l(g,ee,E,$,A,w)):f(g,h,y,m))}function p(g,h,E){var w,y,$,m,S;const D=(w=h.data)===null||w===void 0?void 0:w.hook;(y=D==null?void 0:D.prepatch)===null||y===void 0||y.call(D,g,h);const A=h.elm=g.elm,B=g.children,P=h.children;if(g!==h){if(h.data!==void 0){for(let U=0;U<n.update.length;++U)n.update[U](g,h);(m=($=h.data.hook)===null||$===void 0?void 0:$.update)===null||m===void 0||m.call($,g,h)}r2(h.text)?Vr(B)&&Vr(P)?B!==P&&d(A,B,P,E):Vr(P)?(Vr(g.text)&&r.setTextContent(A,""),l(A,null,P,0,P.length-1,E)):Vr(B)?f(A,B,0,B.length-1):Vr(g.text)&&r.setTextContent(A,""):g.text!==h.text&&(Vr(B)&&f(A,B,0,B.length-1),r.setTextContent(A,h.text)),(S=D==null?void 0:D.postpatch)===null||S===void 0||S.call(D,g,h)}}return function(h,E){let w,y,$;const m=[];for(w=0;w<n.pre.length;++w)n.pre[w]();for(cq(h)||(h=i(h)),cd(h,E)?p(h,E,m):(y=h.elm,$=r.parentNode(y),a(E,m),$!==null&&(r.insertBefore($,E.elm,r.nextSibling(y)),f($,[h],0,0))),w=0;w<m.length;++w)m[w].data.hook.insert(m[w]);for(w=0;w<n.post.length;++w)n.post[w]();return E}}function jD(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&&jD(i,t[r].children,t[r].sel)}}function Ju(e,t,n){let r={},i,o,a;if(n!==void 0?(t!==null&&(r=t),n2(n)?i=n:k0(n)?o=n.toString():n&&n.sel&&(i=[n])):t!=null&&(n2(t)?i=t:k0(t)?o=t.toString():t&&t.sel?i=[t]:r=t),i!==void 0)for(a=0;a<i.length;++a)k0(i[a])&&(i[a]=ud(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]==="#")&&jD(r,i,e),ud(e,r,i,o,void 0)}const hq="http://www.w3.org/1999/xlink",gq="http://www.w3.org/XML/1998/namespace",zD=58,vq=120;function VD(e,t){let n;const r=t.elm;let i=e.data.attrs,o=t.data.attrs;if(!(!i&&!o)&&i!==o){i=i||{},o=o||{};for(n in o){const a=o[n];i[n]!==a&&(a===!0?r.setAttribute(n,""):a===!1?r.removeAttribute(n):n.charCodeAt(0)!==vq?r.setAttribute(n,a):n.charCodeAt(3)===zD?r.setAttributeNS(gq,n,a):n.charCodeAt(5)===zD?r.setAttributeNS(hq,n,a):r.setAttribute(n,a))}for(n in i)n in o||r.removeAttribute(n)}}const mq={create:VD,update:VD};function UD(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 yq={create:UD,update:UD},HD=/[A-Z]/g;function WD(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(HD,"-$&").toLowerCase()));for(o in i)r[o]!==i[o]&&(a?a[o]=i[o]:n.setAttribute("data-"+o.replace(HD,"-$&").toLowerCase(),i[o]))}const bq={create:WD,update:WD};function qD(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++)qD(e[r],t,n)}function wq(e,t){const n=e.type,r=t.data.on;r&&r[n]&&qD(r[n],t,e)}function $q(){return function e(t){wq(t,e.vnode)}}function i2(e,t){const n=e.data.on,r=e.listener,i=e.elm,o=t&&t.data.on,a=t&&t.elm;let l;if(n!==o){if(n&&r)if(o)for(l in n)o[l]||i.removeEventListener(l,r,!1);else for(l in n)i.removeEventListener(l,r,!1);if(o){const u=t.listener=e.listener||$q();if(u.vnode=t,n)for(l in o)n[l]||a.addEventListener(l,u,!1);else for(l in o)a.addEventListener(l,u,!1)}}}const Eq={create:i2,update:i2,destroy:i2};function GD(e,t){let n,r,i;const o=t.elm;let a=e.data.props,l=t.data.props;if(!(!a&&!l)&&a!==l){a=a||{},l=l||{};for(n in l)r=l[n],i=a[n],i!==r&&(n!=="value"||o[n]!==r)&&(o[n]=r)}}const Cq={create:GD,update:GD},KD=typeof window<"u"&&window.requestAnimationFrame.bind(window)||setTimeout,Sq=function(e){KD(function(){KD(e)})};let o2=!1;function xq(e,t,n){Sq(function(){e[t]=n})}function YD(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 l="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 u in a.delayed)n=a.delayed[u],(!l||n!==o.delayed[u])&&xq(i.style,u,n);else r!=="remove"&&n!==o[r]&&(r[0]==="-"&&r[1]==="-"?i.style.setProperty(r,n):i.style[r]=n)}function Dq(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 Aq(e,t){const n=e.data.style;if(!n||!n.remove){t();return}o2||(e.elm.offsetLeft,o2=!0);let r;const i=e.elm;let o=0;const a=n.remove;let l=0;const u=[];for(r in a)u.push(r),i.style[r]=a[r];const d=getComputedStyle(i)["transition-property"].split(", ");for(;o<d.length;++o)u.indexOf(d[o])!==-1&&l++;i.addEventListener("transitionend",function(p){p.target===i&&--l,l===0&&t()})}function _q(){o2=!1}const kq={pre:_q,create:YD,update:YD,destroy:Dq,remove:Aq};function XD(e,t){for(const n of e)n!=null&&n!==!1&&n!==""&&(Array.isArray(n)?XD(n,t):typeof n=="string"||typeof n=="number"||typeof n=="boolean"?t.push(ud(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function Ue(e,t,...n){const r=XD(n,[]);return typeof e=="function"?e(t,r):r.length===1&&!r[0].sel&&r[0].text?Ju(e,t,r[0].text):Ju(e,t,r)}(function(e){})(Ue||(Ue={}));var Oq=1/0,Bq="[object Symbol]",Tq=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Fq=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,O0="\\ud800-\\udfff",JD="\\u0300-\\u036f\\ufe20-\\ufe23",ZD="\\u20d0-\\u20f0",QD="\\u2700-\\u27bf",eA="a-z\\xdf-\\xf6\\xf8-\\xff",Pq="\\xac\\xb1\\xd7\\xf7",Iq="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Nq="\\u2000-\\u206f",Lq=" \\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",tA="A-Z\\xc0-\\xd6\\xd8-\\xde",nA="\\ufe0e\\ufe0f",rA=Pq+Iq+Nq+Lq,a2="['\u2019]",Rq="["+O0+"]",iA="["+rA+"]",B0="["+JD+ZD+"]",oA="\\d+",Mq="["+QD+"]",aA="["+eA+"]",lA="[^"+O0+rA+oA+QD+eA+tA+"]",l2="\\ud83c[\\udffb-\\udfff]",jq="(?:"+B0+"|"+l2+")",sA="[^"+O0+"]",s2="(?:\\ud83c[\\udde6-\\uddff]){2}",u2="[\\ud800-\\udbff][\\udc00-\\udfff]",Zu="["+tA+"]",uA="\\u200d",cA="(?:"+aA+"|"+lA+")",zq="(?:"+Zu+"|"+lA+")",fA="(?:"+a2+"(?:d|ll|m|re|s|t|ve))?",dA="(?:"+a2+"(?:D|LL|M|RE|S|T|VE))?",pA=jq+"?",hA="["+nA+"]?",Vq="(?:"+uA+"(?:"+[sA,s2,u2].join("|")+")"+hA+pA+")*",gA=hA+pA+Vq,Uq="(?:"+[Mq,s2,u2].join("|")+")"+gA,Hq="(?:"+[sA+B0+"?",B0,s2,u2,Rq].join("|")+")",Wq=RegExp(a2,"g"),qq=RegExp(B0,"g"),Gq=RegExp(l2+"(?="+l2+")|"+Hq+gA,"g"),Kq=RegExp([Zu+"?"+aA+"+"+fA+"(?="+[iA,Zu,"$"].join("|")+")",zq+"+"+dA+"(?="+[iA,Zu+cA,"$"].join("|")+")",Zu+"?"+cA+"+"+fA,Zu+"+"+dA,oA,Uq].join("|"),"g"),Yq=RegExp("["+uA+O0+JD+ZD+nA+"]"),Xq=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Jq={\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"},Zq=typeof Jt=="object"&&Jt&&Jt.Object===Object&&Jt,Qq=typeof self=="object"&&self&&self.Object===Object&&self,eG=Zq||Qq||Function("return this")();function tG(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 nG(e){return e.split("")}function rG(e){return e.match(Tq)||[]}function iG(e){return function(t){return e==null?void 0:e[t]}}var oG=iG(Jq);function vA(e){return Yq.test(e)}function aG(e){return Xq.test(e)}function lG(e){return vA(e)?sG(e):nG(e)}function sG(e){return e.match(Gq)||[]}function uG(e){return e.match(Kq)||[]}var cG=Object.prototype,fG=cG.toString,mA=eG.Symbol,yA=mA?mA.prototype:void 0,bA=yA?yA.toString:void 0;function dG(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 pG(e){if(typeof e=="string")return e;if(yG(e))return bA?bA.call(e):"";var t=e+"";return t=="0"&&1/e==-Oq?"-0":t}function hG(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:dG(e,t,n)}function gG(e){return function(t){t=T0(t);var n=vA(t)?lG(t):void 0,r=n?n[0]:t.charAt(0),i=n?hG(n,1).join(""):t.slice(1);return r[e]()+i}}function vG(e){return function(t){return tG(CG($G(t).replace(Wq,"")),e,"")}}function mG(e){return!!e&&typeof e=="object"}function yG(e){return typeof e=="symbol"||mG(e)&&fG.call(e)==Bq}function T0(e){return e==null?"":pG(e)}var bG=vG(function(e,t,n){return t=t.toLowerCase(),e+(n?wG(t):t)});function wG(e){return EG(T0(e).toLowerCase())}function $G(e){return e=T0(e),e&&e.replace(Fq,oG).replace(qq,"")}var EG=gG("toUpperCase");function CG(e,t,n){return e=T0(e),t=n?void 0:t,t===void 0?aG(e)?uG(e):rG(e):e.match(t)||[]}for(var SG=bG,xG=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),c2={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},wA={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:xG?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},f2={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},F0=1;F0<20;F0++)f2["f"+F0]=111+F0;function $A(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map(function(a){return AG(a,t)}),i=function(l){return r.some(function(u){return _G(u,l)})},o=n==null?i:i(n);return o}function DG(e,t){return $A(e,{byKey:!0},t)}function AG(e,t){var n=t&&t.byKey,r={};e=e.replace("++","+add");var i=e.split("+"),o=i.length;for(var a in c2)r[c2[a]]=!1;var l=!0,u=!1,f=void 0;try{for(var d=i[Symbol.iterator](),p;!(l=(p=d.next()).done);l=!0){var g=p.value,h=g.endsWith("?")&&g.length>1;h&&(g=g.slice(0,-1));var E=EA(g),w=c2[E];if(g.length>1&&!w&&!wA[g]&&!f2[E])throw new TypeError('Unknown modifier: "'+g+'"');(o===1||!w)&&(n?r.key=E:r.which=kG(g)),w&&(r[w]=h?null:!0)}}catch(y){u=!0,f=y}finally{try{!l&&d.return&&d.return()}finally{if(u)throw f}}return r}function _G(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 kG(e){e=EA(e);var t=f2[e]||e.toUpperCase().charCodeAt(0);return t}function EA(e){return e=e.toLowerCase(),e=wA[e]||e,e}var OG=$A,d2=DG,BG="Expected a function",CA=0/0,TG="[object Symbol]",FG=/^\s+|\s+$/g,PG=/^[-+]0x[0-9a-f]+$/i,IG=/^0b[01]+$/i,NG=/^0o[0-7]+$/i,LG=parseInt,RG=typeof Jt=="object"&&Jt&&Jt.Object===Object&&Jt,MG=typeof self=="object"&&self&&self.Object===Object&&self,jG=RG||MG||Function("return this")(),zG=Object.prototype,VG=zG.toString,UG=Math.max,HG=Math.min,p2=function(){return jG.Date.now()};function WG(e,t,n){var r,i,o,a,l,u,f=0,d=!1,p=!1,g=!0;if(typeof e!="function")throw new TypeError(BG);t=SA(t)||0,h2(n)&&(d=!!n.leading,p="maxWait"in n,o=p?UG(SA(n.maxWait)||0,t):o,g="trailing"in n?!!n.trailing:g);function h(B){var P=r,U=i;return r=i=void 0,f=B,a=e.apply(U,P),a}function E(B){return f=B,l=setTimeout($,t),d?h(B):a}function w(B){var P=B-u,U=B-f,Y=t-P;return p?HG(Y,o-U):Y}function y(B){var P=B-u,U=B-f;return u===void 0||P>=t||P<0||p&&U>=o}function $(){var B=p2();if(y(B))return m(B);l=setTimeout($,w(B))}function m(B){return l=void 0,g&&r?h(B):(r=i=void 0,a)}function S(){l!==void 0&&clearTimeout(l),f=0,r=u=i=l=void 0}function D(){return l===void 0?a:m(p2())}function A(){var B=p2(),P=y(B);if(r=arguments,i=this,u=B,P){if(l===void 0)return E(u);if(p)return l=setTimeout($,t),h(u)}return l===void 0&&(l=setTimeout($,t)),a}return A.cancel=S,A.flush=D,A}function h2(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function qG(e){return!!e&&typeof e=="object"}function GG(e){return typeof e=="symbol"||qG(e)&&VG.call(e)==TG}function SA(e){if(typeof e=="number")return e;if(GG(e))return CA;if(h2(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=h2(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(FG,"");var n=IG.test(e);return n||NG.test(e)?LG(e.slice(2),n?2:8):PG.test(e)?CA:+e}var xA=WG,DA=Ib(function(e,t){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",a="[object Array]",l="[object Boolean]",u="[object Date]",f="[object Error]",d="[object Function]",p="[object GeneratorFunction]",g="[object Map]",h="[object Number]",E="[object Object]",w="[object Promise]",y="[object RegExp]",$="[object Set]",m="[object String]",S="[object Symbol]",D="[object WeakMap]",A="[object ArrayBuffer]",B="[object DataView]",P="[object Float32Array]",U="[object Float64Array]",Y="[object Int8Array]",ce="[object Int16Array]",ee="[object Int32Array]",ge="[object Uint8Array]",se="[object Uint8ClampedArray]",xe="[object Uint16Array]",ve="[object Uint32Array]",Oe=/[\\^$.*+?()[\]{}|]/g,Te=/\w*$/,Ne=/^\[object .+?Constructor\]$/,Re=/^(?:0|[1-9]\d*)$/,Ae={};Ae[o]=Ae[a]=Ae[A]=Ae[B]=Ae[l]=Ae[u]=Ae[P]=Ae[U]=Ae[Y]=Ae[ce]=Ae[ee]=Ae[g]=Ae[h]=Ae[E]=Ae[y]=Ae[$]=Ae[m]=Ae[S]=Ae[ge]=Ae[se]=Ae[xe]=Ae[ve]=!0,Ae[f]=Ae[d]=Ae[D]=!1;var ie=typeof Jt=="object"&&Jt&&Jt.Object===Object&&Jt,R=typeof self=="object"&&self&&self.Object===Object&&self,M=ie||R||Function("return this")(),T=t&&!t.nodeType&&t,L=T&&!0&&e&&!e.nodeType&&e,q=L&&L.exports===T;function O(x,I){return x.set(I[0],I[1]),x}function J(x,I){return x.add(I),x}function ue(x,I){for(var H=-1,oe=x?x.length:0;++H<oe&&I(x[H],H,x)!==!1;);return x}function he(x,I){for(var H=-1,oe=I.length,qe=x.length;++H<oe;)x[qe+H]=I[H];return x}function te(x,I,H,oe){var qe=-1,Ie=x?x.length:0;for(oe&&Ie&&(H=x[++qe]);++qe<Ie;)H=I(H,x[qe],qe,x);return H}function Q(x,I){for(var H=-1,oe=Array(x);++H<x;)oe[H]=I(H);return oe}function Ce(x,I){return x==null?void 0:x[I]}function ae(x){var I=!1;if(x!=null&&typeof x.toString!="function")try{I=!!(x+"")}catch{}return I}function ye(x){var I=-1,H=Array(x.size);return x.forEach(function(oe,qe){H[++I]=[qe,oe]}),H}function Le(x,I){return function(H){return x(I(H))}}function $t(x){var I=-1,H=Array(x.size);return x.forEach(function(oe){H[++I]=oe}),H}var ft=Array.prototype,ot=Function.prototype,Ze=Object.prototype,dt=M["__core-js_shared__"],pt=function(){var x=/[^.]+$/.exec(dt&&dt.keys&&dt.keys.IE_PROTO||"");return x?"Symbol(src)_1."+x:""}(),rn=ot.toString,In=Ze.hasOwnProperty,mt=Ze.toString,on=RegExp("^"+rn.call(In).replace(Oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Kt=q?M.Buffer:void 0,Yt=M.Symbol,Jn=M.Uint8Array,dn=Le(Object.getPrototypeOf,Object),Nn=Object.create,Di=Ze.propertyIsEnumerable,Zi=ft.splice,$r=Object.getOwnPropertySymbols,Fr=Kt?Kt.isBuffer:void 0,Ai=Le(Object.keys,Object),Pr=Cr(M,"DataView"),Qr=Cr(M,"Map"),Er=Cr(M,"Promise"),To=Cr(M,"Set"),Fl=Cr(M,"WeakMap"),Fo=Cr(Object,"create"),pu=ar(Pr),la=ar(Qr),hu=ar(Er),gu=ar(To),Pl=ar(Fl),Po=Yt?Yt.prototype:void 0,Af=Po?Po.valueOf:void 0;function Qi(x){var I=-1,H=x?x.length:0;for(this.clear();++I<H;){var oe=x[I];this.set(oe[0],oe[1])}}function vu(){this.__data__=Fo?Fo(null):{}}function Cg(x){return this.has(x)&&delete this.__data__[x]}function mu(x){var I=this.__data__;if(Fo){var H=I[x];return H===r?void 0:H}return In.call(I,x)?I[x]:void 0}function _f(x){var I=this.__data__;return Fo?I[x]!==void 0:In.call(I,x)}function yu(x,I){var H=this.__data__;return H[x]=Fo&&I===void 0?r:I,this}Qi.prototype.clear=vu,Qi.prototype.delete=Cg,Qi.prototype.get=mu,Qi.prototype.has=_f,Qi.prototype.set=yu;function Un(x){var I=-1,H=x?x.length:0;for(this.clear();++I<H;){var oe=x[I];this.set(oe[0],oe[1])}}function Sg(){this.__data__=[]}function xg(x){var I=this.__data__,H=sa(I,x);if(H<0)return!1;var oe=I.length-1;return H==oe?I.pop():Zi.call(I,H,1),!0}function Dg(x){var I=this.__data__,H=sa(I,x);return H<0?void 0:I[H][1]}function Ag(x){return sa(this.__data__,x)>-1}function _g(x,I){var H=this.__data__,oe=sa(H,x);return oe<0?H.push([x,I]):H[oe][1]=I,this}Un.prototype.clear=Sg,Un.prototype.delete=xg,Un.prototype.get=Dg,Un.prototype.has=Ag,Un.prototype.set=_g;function Hn(x){var I=-1,H=x?x.length:0;for(this.clear();++I<H;){var oe=x[I];this.set(oe[0],oe[1])}}function kg(){this.__data__={hash:new Qi,map:new(Qr||Un),string:new Qi}}function Og(x){return eo(this,x).delete(x)}function Bg(x){return eo(this,x).get(x)}function Tg(x){return eo(this,x).has(x)}function Fg(x,I){return eo(this,x).set(x,I),this}Hn.prototype.clear=kg,Hn.prototype.delete=Og,Hn.prototype.get=Bg,Hn.prototype.has=Tg,Hn.prototype.set=Fg;function hr(x){this.__data__=new Un(x)}function Il(){this.__data__=new Un}function Pg(x){return this.__data__.delete(x)}function Nl(x){return this.__data__.get(x)}function Ig(x){return this.__data__.has(x)}function Ng(x,I){var H=this.__data__;if(H instanceof Un){var oe=H.__data__;if(!Qr||oe.length<n-1)return oe.push([x,I]),this;H=this.__data__=new Hn(oe)}return H.set(x,I),this}hr.prototype.clear=Il,hr.prototype.delete=Pg,hr.prototype.get=Nl,hr.prototype.has=Ig,hr.prototype.set=Ng;function Ll(x,I){var H=Cu(x)||Rl(x)?Q(x.length,String):[],oe=H.length,qe=!!oe;for(var Ie in x)(I||In.call(x,Ie))&&!(qe&&(Ie=="length"||Lf(Ie,oe)))&&H.push(Ie);return H}function bu(x,I,H){var oe=x[I];(!(In.call(x,I)&&Eu(oe,H))||H===void 0&&!(I in x))&&(x[I]=H)}function sa(x,I){for(var H=x.length;H--;)if(Eu(x[H][0],I))return H;return-1}function ei(x,I){return x&&pa(I,xu(I),x)}function wu(x,I,H,oe,qe,Ie,ut){var Et;if(oe&&(Et=Ie?oe(x,qe,Ie,ut):oe(x)),Et!==void 0)return Et;if(!Oi(x))return x;var ct=Cu(x);if(ct){if(Et=If(x),!I)return Ff(x,Et)}else{var St=_i(x),an=St==d||St==p;if(jl(x))return ua(x,I);if(St==E||St==o||an&&!Ie){if(ae(x))return Ie?x:{};if(Et=ki(an?{}:x),!I)return zg(x,ei(Et,x))}else{if(!Ae[St])return Ie?x:{};Et=Nf(x,St,wu,I)}}ut||(ut=new hr);var lr=ut.get(x);if(lr)return lr;if(ut.set(x,Et),!ct)var pn=H?Pf(x):xu(x);return ue(pn||x,function(It,Ln){pn&&(Ln=It,It=x[Ln]),bu(Et,Ln,wu(It,I,H,oe,Ln,x,ut))}),Et}function Lg(x){return Oi(x)?Nn(x):{}}function Rg(x,I,H){var oe=I(x);return Cu(x)?oe:he(oe,H(x))}function Mg(x){return mt.call(x)}function kf(x){if(!Oi(x)||Mf(x))return!1;var I=Su(x)||ae(x)?on:Ne;return I.test(ar(x))}function Of(x){if(!jf(x))return Ai(x);var I=[];for(var H in Object(x))In.call(x,H)&&H!="constructor"&&I.push(H);return I}function ua(x,I){if(I)return x.slice();var H=new x.constructor(x.length);return x.copy(H),H}function ca(x){var I=new x.constructor(x.byteLength);return new Jn(I).set(new Jn(x)),I}function fa(x,I){var H=I?ca(x.buffer):x.buffer;return new x.constructor(H,x.byteOffset,x.byteLength)}function $u(x,I,H){var oe=I?H(ye(x),!0):ye(x);return te(oe,O,new x.constructor)}function da(x){var I=new x.constructor(x.source,Te.exec(x));return I.lastIndex=x.lastIndex,I}function Bf(x,I,H){var oe=I?H($t(x),!0):$t(x);return te(oe,J,new x.constructor)}function jg(x){return Af?Object(Af.call(x)):{}}function Tf(x,I){var H=I?ca(x.buffer):x.buffer;return new x.constructor(H,x.byteOffset,x.length)}function Ff(x,I){var H=-1,oe=x.length;for(I||(I=Array(oe));++H<oe;)I[H]=x[H];return I}function pa(x,I,H,oe){H||(H={});for(var qe=-1,Ie=I.length;++qe<Ie;){var ut=I[qe],Et=oe?oe(H[ut],x[ut],ut,H,x):void 0;bu(H,ut,Et===void 0?x[ut]:Et)}return H}function zg(x,I){return pa(x,gr(x),I)}function Pf(x){return Rg(x,xu,gr)}function eo(x,I){var H=x.__data__;return Rf(I)?H[typeof I=="string"?"string":"hash"]:H.map}function Cr(x,I){var H=Ce(x,I);return kf(H)?H:void 0}var gr=$r?Le($r,Object):Pt,_i=Mg;(Pr&&_i(new Pr(new ArrayBuffer(1)))!=B||Qr&&_i(new Qr)!=g||Er&&_i(Er.resolve())!=w||To&&_i(new To)!=$||Fl&&_i(new Fl)!=D)&&(_i=function(x){var I=mt.call(x),H=I==E?x.constructor:void 0,oe=H?ar(H):void 0;if(oe)switch(oe){case pu:return B;case la:return g;case hu:return w;case gu:return $;case Pl:return D}return I});function If(x){var I=x.length,H=x.constructor(I);return I&&typeof x[0]=="string"&&In.call(x,"index")&&(H.index=x.index,H.input=x.input),H}function ki(x){return typeof x.constructor=="function"&&!jf(x)?Lg(dn(x)):{}}function Nf(x,I,H,oe){var qe=x.constructor;switch(I){case A:return ca(x);case l:case u:return new qe(+x);case B:return fa(x,oe);case P:case U:case Y:case ce:case ee:case ge:case se:case xe:case ve:return Tf(x,oe);case g:return $u(x,oe,H);case h:case m:return new qe(x);case y:return da(x);case $:return Bf(x,oe,H);case S:return jg(x)}}function Lf(x,I){return I=I==null?i:I,!!I&&(typeof x=="number"||Re.test(x))&&x>-1&&x%1==0&&x<I}function Rf(x){var I=typeof x;return I=="string"||I=="number"||I=="symbol"||I=="boolean"?x!=="__proto__":x===null}function Mf(x){return!!pt&&pt in x}function jf(x){var I=x&&x.constructor,H=typeof I=="function"&&I.prototype||Ze;return x===H}function ar(x){if(x!=null){try{return rn.call(x)}catch{}try{return x+""}catch{}}return""}function zf(x){return wu(x,!0,!0)}function Eu(x,I){return x===I||x!==x&&I!==I}function Rl(x){return Vg(x)&&In.call(x,"callee")&&(!Di.call(x,"callee")||mt.call(x)==o)}var Cu=Array.isArray;function Ml(x){return x!=null&&Vf(x.length)&&!Su(x)}function Vg(x){return Uf(x)&&Ml(x)}var jl=Fr||Bt;function Su(x){var I=Oi(x)?mt.call(x):"";return I==d||I==p}function Vf(x){return typeof x=="number"&&x>-1&&x%1==0&&x<=i}function Oi(x){var I=typeof x;return!!x&&(I=="object"||I=="function")}function Uf(x){return!!x&&typeof x=="object"}function xu(x){return Ml(x)?Ll(x):Of(x)}function Pt(){return[]}function Bt(){return!1}e.exports=zf}),KG=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},Qu;function AA(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var YG=0;function XG(e){return"__private_"+YG+++"_"+e}function JG(e,t,n){const r=[];return e.forEach(i=>typeof i!="string"?r.push(i):t[Symbol.split](i).forEach((o,a,l)=>{o!==""&&r.push(o),a<l.length-1&&r.push(n)})),r}/**
10
10
  * Takes a string with placeholder variables like `%{smart_count} file selected`
11
11
  * and replaces it with values from options `{smart_count: 5}`
12
12
  *
@@ -21,7 +21,7 @@
21
21
  type: ${r[o].type}`)}),r.length>0&&Be(this,vd)[vd](),i.length>0){let o=`Multiple errors occurred while adding files:
22
22
  `;if(i.forEach(a=>{o+=`
23
23
  * ${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},l=Object.create(null);t.forEach(p=>{r[p]&&(l[p]=r[p],delete o[p])});function u(p){return l[p]===void 0}Object.keys(a).forEach(p=>{const g=i[p].fileIDs.filter(u);if(g.length===0){delete a[p];return}a[p]={...i[p],fileIDs:g}});const f={currentUploads:a,files:o};Object.keys(o).length===0&&(f.allowNewUpload=!0,f.error=null,f.recoveredState=null),this.setState(f),this.calculateTotalProgress();const d=Object.keys(l);d.forEach(p=>{this.emit("file-removed",l[p],n)}),d.length>5?this.log(`Removed ${d.length} files`):this.log(`Removed files: ${d.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=Be(this,Wo)[Wo](n,{forceAllowNewUpload:!0});return Be(this,qo)[qo](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=Be(this,Wo)[Wo]([t],{forceAllowNewUpload:!0});return Be(this,qo)[qo](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(f=>f.progress.uploadStarted||f.progress.preprocess||f.progress.postprocess);if(n.length===0){this.emit("progress",0),this.setState({totalProgress:0});return}const r=n.filter(f=>f.progress.bytesTotal!=null),i=n.filter(f=>f.progress.bytesTotal==null);if(r.length===0){const f=n.length*100,d=i.reduce((g,h)=>g+h.progress.percentage,0),p=Math.round(d/f*100);this.setState({totalProgress:p});return}let o=r.reduce((f,d)=>f+d.progress.bytesTotal,0);const a=o/r.length;o+=a*i.length;let l=0;r.forEach(f=>{l+=f.progress.bytesUploaded}),i.forEach(f=>{l+=a*(f.progress.percentage||0)/100});let u=o===0?0:Math.round(l/o*100);u>100&&(u=100),this.setState({totalProgress:u}),this.emit("progress",u)}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}'.
24
- 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 Be(this,tr)[tr]?Be(this,tr)[tr][r.type].push(r):Be(this,tr)[tr][r.type]=[r],r.install(),this}getPlugin(t){for(const n of Object.values(Be(this,tr)[tr])){const r=n.find(i=>i.id===t);if(r!=null)return r}}[jA](t){return Be(this,tr)[tr][t]}iteratePlugins(t){Object.values(Be(this,tr)[tr]).flat(1).forEach(t)}removePlugin(t){this.log(`Removing plugin ${t.id}`),this.emit("plugin-remove",t),t.uninstall&&t.uninstall();const n=Be(this,tr)[tr][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(),Be(this,fd)[fd](),this.iteratePlugins(t=>{this.removePlugin(t)}),typeof window<"u"&&window.removeEventListener&&(window.removeEventListener("online",Be(this,Mi)[Mi]),window.removeEventListener("offline",Be(this,Mi)[Mi]))}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]?Be(this,qo)[qo](t):(Be(this,ls)[ls](t),Promise.reject(new Error("Nonexistent upload")))}[zA](){return Be(this,Wo)[Wo](...arguments)}addResultData(t,n){if(!Be(this,$2)[$2](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=Be(this,tr)[tr].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(()=>{Be(this,y2)[y2](n),Be(this,b2)[b2](n)}).catch(i=>{Be(this,Rn)[Rn](i)}).then(()=>{const{currentUploads:i}=this.getState(),o=Object.values(i).flatMap(u=>u.fileIDs),a=[];Object.keys(n).forEach(u=>{const f=this.getFile(u);!f.progress.uploadStarted&&o.indexOf(u)===-1&&a.push(f.id)});const l=Be(this,Wo)[Wo](a);return Be(this,qo)[qo](l)}).catch(i=>{Be(this,Rn)[Rn](i,{showInformer:!1})}))}}function $K(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 uo(`${this.i18n("youCanOnlyUploadX",{smart_count:o})}`);if(a&&!a.some(u=>u.indexOf("/")>-1?e.type?iK(e.type.replace(/;.*?$/,""),u):!1:u[0]==="."&&e.extension?e.extension.toLowerCase()===u.substr(1).toLowerCase():!1)){const u=a.join(", ");throw new uo(this.i18n("youCanOnlyUploadFileTypes",{types:u}))}if(i&&e.size!=null){let l=0;if(l+=e.size,t.forEach(u=>{l+=u.size}),l>i)throw new uo(this.i18n("exceedsSize",{size:g2(i),file:e.name}))}if(n&&e.size!=null&&e.size>n)throw new uo(this.i18n("exceedsSize",{size:g2(n),file:e.name}));if(r&&e.size!=null&&e.size<r)throw new uo(this.i18n("inferiorSize",{size:g2(r)}))}function EK(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new uo(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:t})}`)}function CK(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 uo(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})}`);r.push(a),i.push(t[o]),Be(this,Rn)[Rn](a,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:i}),r}function SK(e){const t=Object.keys(e).flatMap(n=>{const r=this.getFile(n);return Be(this,pd)[pd](r)});if(t.length)throw new wK(t,`${this.i18n("missingRequiredMetaField")}`)}function xK(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 l=o;if(a&&(l+=` ${a}`),e.isRestriction?(this.log(l),this.emit("restriction-failed",r,e)):this.log(l,"error"),n&&this.info({message:o,details:a},"error",this.opts.infoTimeout),i)throw typeof e=="object"?e:new Error(e)}function DK(e){const{allowNewUpload:t}=this.getState();t===!1&&Be(this,Rn)[Rn](new uo(this.i18n("noMoreFilesAllowed")),{file:e})}function AK(e,t){const n=cK(t),r=hK(n,t),i=IA(r).extension,o=Boolean(t.isRemote),a=dK({...t,type:n});if(this.checkIfFileAlreadyExists(a)){const p=new uo(this.i18n("noDuplicates",{fileName:r}));Be(this,Rn)[Rn](p,{file:t})}const l=t.meta||{};l.name=r,l.type=n;const u=Number.isFinite(t.data.size)?t.data.size:null;let f={source:t.source||"",id:a,name:r,extension:i||"",meta:{...this.getState().meta,...l},type:n,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:u,uploadComplete:!1,uploadStarted:null},size:u,isRemote:o,remote:t.remote||"",preview:t.preview};const d=this.opts.onBeforeFileAdded(f,e);d===!1?Be(this,Rn)[Rn](new uo("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:t}):typeof d=="object"&&d!==null&&(f=d);try{const p=Object.keys(e).map(g=>e[g]);Be(this,dd)[dd](f,p)}catch(p){Be(this,Rn)[Rn](p,{file:f})}return f}function _K(){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 kK(){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}),Be(this,Rn)[Rn](i,{throwErr:!1})}else Be(this,Rn)[Rn](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:Be(this,Ho)[Ho].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&&Be(this,pd)[pd](t)}),typeof window<"u"&&window.addEventListener&&(window.addEventListener("online",Be(this,Mi)[Mi]),window.addEventListener("offline",Be(this,Mi)[Mi]),setTimeout(Be(this,Mi)[Mi],3e3))}function OK(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=mK();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 BK(e){const{currentUploads:t}=this.getState();return t[e]}function TK(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function FK(e){let{currentUploads:t}=this.getState(),n=t[e];const r=n.step||0,i=[...Be(this,os)[os],...Be(this,as)[as],...Be(this,Ho)[Ho]];try{for(let a=r;a<i.length&&n;a++){const l=i[a],u={...n,step:a};this.setState({currentUploads:{...t,[e]:u}}),await l(u.fileIDs,e),t=this.getState().currentUploads,n=t[e]}}catch(a){throw this.emit("error",a),Be(this,ls)[ls](e),a}if(n){n.fileIDs.forEach(f=>{const d=this.getFile(f);d&&d.progress.postprocess&&this.emit("postprocess-complete",d)});const a=n.fileIDs.map(f=>this.getFile(f)),l=a.filter(f=>!f.error),u=a.filter(f=>f.error);await this.addResultData(e,{successful:l,failed:u,uploadID:e}),t=this.getState().currentUploads,n=t[e]}let o;return n&&(o=n.result,this.emit("complete",o),Be(this,ls)[ls](e)),o==null&&this.log(`Not setting result for an upload that has been removed: ${e}`),o}VA.VERSION="2.1.3";var UA=VA,PK=Ib(function(e,t){var n,r,i,o,a,l,u,f,d={},p=[],g=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function h(M,R){for(var T in R)M[T]=R[T];return M}function E(M){var R=M.parentNode;R&&R.removeChild(M)}function w(M,R,T){var L,q,O,J={};for(O in R)O=="key"?L=R[O]:O=="ref"?q=R[O]:J[O]=R[O];if(arguments.length>2&&(J.children=arguments.length>3?n.call(arguments,2):T),typeof M=="function"&&M.defaultProps!=null)for(O in M.defaultProps)J[O]===void 0&&(J[O]=M.defaultProps[O]);return y(M,J,L,q,null)}function y(M,R,T,L,q){var O={type:M,props:R,key:T,ref:L,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:q==null?++i:q};return q==null&&r.vnode!=null&&r.vnode(O),O}function $(M){return M.children}function m(M,R){this.props=M,this.context=R}function S(M,R){if(R==null)return M.__?S(M.__,M.__.__k.indexOf(M)+1):null;for(var T;R<M.__k.length;R++)if((T=M.__k[R])!=null&&T.__e!=null)return T.__e;return typeof M.type=="function"?S(M):null}function D(M){var R,T;if((M=M.__)!=null&&M.__c!=null){for(M.__e=M.__c.base=null,R=0;R<M.__k.length;R++)if((T=M.__k[R])!=null&&T.__e!=null){M.__e=M.__c.base=T.__e;break}return D(M)}}function A(M){(!M.__d&&(M.__d=!0)&&a.push(M)&&!B.__r++||u!==r.debounceRendering)&&((u=r.debounceRendering)||l)(B)}function B(){for(var M;B.__r=a.length;)M=a.sort(function(R,T){return R.__v.__b-T.__v.__b}),a=[],M.some(function(R){var T,L,q,O,J,ue;R.__d&&(J=(O=(T=R).__v).__e,(ue=T.__P)&&(L=[],(q=h({},O)).__v=O.__v+1,ve(ue,O,q,T.__n,ue.ownerSVGElement!==void 0,O.__h!=null?[J]:null,L,J==null?S(O):J,O.__h),Oe(L,O),O.__e!=J&&D(O)))})}function P(M,R,T,L,q,O,J,ue,he,te){var Q,Ce,oe,ye,Le,$t,ft,ot=L&&L.__k||p,Ze=ot.length;for(T.__k=[],Q=0;Q<R.length;Q++)if((ye=T.__k[Q]=(ye=R[Q])==null||typeof ye=="boolean"?null:typeof ye=="string"||typeof ye=="number"||typeof ye=="bigint"?y(null,ye,null,null,ye):Array.isArray(ye)?y($,{children:ye},null,null,null):ye.__b>0?y(ye.type,ye.props,ye.key,null,ye.__v):ye)!=null){if(ye.__=T,ye.__b=T.__b+1,(oe=ot[Q])===null||oe&&ye.key==oe.key&&ye.type===oe.type)ot[Q]=void 0;else for(Ce=0;Ce<Ze;Ce++){if((oe=ot[Ce])&&ye.key==oe.key&&ye.type===oe.type){ot[Ce]=void 0;break}oe=null}ve(M,ye,oe=oe||d,q,O,J,ue,he,te),Le=ye.__e,(Ce=ye.ref)&&oe.ref!=Ce&&(ft||(ft=[]),oe.ref&&ft.push(oe.ref,null,ye),ft.push(Ce,ye.__c||Le,ye)),Le!=null?($t==null&&($t=Le),typeof ye.type=="function"&&ye.__k===oe.__k?ye.__d=he=U(ye,he,M):he=Y(M,ye,oe,ot,Le,he),typeof T.type=="function"&&(T.__d=he)):he&&oe.__e==he&&he.parentNode!=M&&(he=S(oe))}for(T.__e=$t,Q=Ze;Q--;)ot[Q]!=null&&(typeof T.type=="function"&&ot[Q].__e!=null&&ot[Q].__e==T.__d&&(T.__d=S(L,Q+1)),Re(ot[Q],ot[Q]));if(ft)for(Q=0;Q<ft.length;Q++)Ne(ft[Q],ft[++Q],ft[++Q])}function U(M,R,T){for(var L,q=M.__k,O=0;q&&O<q.length;O++)(L=q[O])&&(L.__=M,R=typeof L.type=="function"?U(L,R,T):Y(T,L,L,q,L.__e,R));return R}function Y(M,R,T,L,q,O){var J,ue,he;if(R.__d!==void 0)J=R.__d,R.__d=void 0;else if(T==null||q!=O||q.parentNode==null)e:if(O==null||O.parentNode!==M)M.appendChild(q),J=null;else{for(ue=O,he=0;(ue=ue.nextSibling)&&he<L.length;he+=2)if(ue==q)break e;M.insertBefore(q,O),J=O}return J!==void 0?J:q.nextSibling}function ce(M,R,T,L,q){var O;for(O in T)O==="children"||O==="key"||O in R||ge(M,O,null,T[O],L);for(O in R)q&&typeof R[O]!="function"||O==="children"||O==="key"||O==="value"||O==="checked"||T[O]===R[O]||ge(M,O,R[O],T[O],L)}function ee(M,R,T){R[0]==="-"?M.setProperty(R,T):M[R]=T==null?"":typeof T!="number"||g.test(R)?T:T+"px"}function ge(M,R,T,L,q){var O;e:if(R==="style")if(typeof T=="string")M.style.cssText=T;else{if(typeof L=="string"&&(M.style.cssText=L=""),L)for(R in L)T&&R in T||ee(M.style,R,"");if(T)for(R in T)L&&T[R]===L[R]||ee(M.style,R,T[R])}else if(R[0]==="o"&&R[1]==="n")O=R!==(R=R.replace(/Capture$/,"")),R=R.toLowerCase()in M?R.toLowerCase().slice(2):R.slice(2),M.l||(M.l={}),M.l[R+O]=T,T?L||M.addEventListener(R,O?xe:se,O):M.removeEventListener(R,O?xe:se,O);else if(R!=="dangerouslySetInnerHTML"){if(q)R=R.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(R!=="href"&&R!=="list"&&R!=="form"&&R!=="tabIndex"&&R!=="download"&&R in M)try{M[R]=T==null?"":T;break e}catch{}typeof T=="function"||(T!=null&&(T!==!1||R[0]==="a"&&R[1]==="r")?M.setAttribute(R,T):M.removeAttribute(R))}}function se(M){this.l[M.type+!1](r.event?r.event(M):M)}function xe(M){this.l[M.type+!0](r.event?r.event(M):M)}function ve(M,R,T,L,q,O,J,ue,he){var te,Q,Ce,oe,ye,Le,$t,ft,ot,Ze,dt,pt=R.type;if(R.constructor!==void 0)return null;T.__h!=null&&(he=T.__h,ue=R.__e=T.__e,R.__h=null,O=[ue]),(te=r.__b)&&te(R);try{e:if(typeof pt=="function"){if(ft=R.props,ot=(te=pt.contextType)&&L[te.__c],Ze=te?ot?ot.props.value:te.__:L,T.__c?$t=(Q=R.__c=T.__c).__=Q.__E:("prototype"in pt&&pt.prototype.render?R.__c=Q=new pt(ft,Ze):(R.__c=Q=new m(ft,Ze),Q.constructor=pt,Q.render=Ae),ot&&ot.sub(Q),Q.props=ft,Q.state||(Q.state={}),Q.context=Ze,Q.__n=L,Ce=Q.__d=!0,Q.__h=[]),Q.__s==null&&(Q.__s=Q.state),pt.getDerivedStateFromProps!=null&&(Q.__s==Q.state&&(Q.__s=h({},Q.__s)),h(Q.__s,pt.getDerivedStateFromProps(ft,Q.__s))),oe=Q.props,ye=Q.state,Ce)pt.getDerivedStateFromProps==null&&Q.componentWillMount!=null&&Q.componentWillMount(),Q.componentDidMount!=null&&Q.__h.push(Q.componentDidMount);else{if(pt.getDerivedStateFromProps==null&&ft!==oe&&Q.componentWillReceiveProps!=null&&Q.componentWillReceiveProps(ft,Ze),!Q.__e&&Q.shouldComponentUpdate!=null&&Q.shouldComponentUpdate(ft,Q.__s,Ze)===!1||R.__v===T.__v){Q.props=ft,Q.state=Q.__s,R.__v!==T.__v&&(Q.__d=!1),Q.__v=R,R.__e=T.__e,R.__k=T.__k,R.__k.forEach(function(rn){rn&&(rn.__=R)}),Q.__h.length&&J.push(Q);break e}Q.componentWillUpdate!=null&&Q.componentWillUpdate(ft,Q.__s,Ze),Q.componentDidUpdate!=null&&Q.__h.push(function(){Q.componentDidUpdate(oe,ye,Le)})}Q.context=Ze,Q.props=ft,Q.state=Q.__s,(te=r.__r)&&te(R),Q.__d=!1,Q.__v=R,Q.__P=M,te=Q.render(Q.props,Q.state,Q.context),Q.state=Q.__s,Q.getChildContext!=null&&(L=h(h({},L),Q.getChildContext())),Ce||Q.getSnapshotBeforeUpdate==null||(Le=Q.getSnapshotBeforeUpdate(oe,ye)),dt=te!=null&&te.type===$&&te.key==null?te.props.children:te,P(M,Array.isArray(dt)?dt:[dt],R,T,L,q,O,J,ue,he),Q.base=R.__e,R.__h=null,Q.__h.length&&J.push(Q),$t&&(Q.__E=Q.__=null),Q.__e=!1}else O==null&&R.__v===T.__v?(R.__k=T.__k,R.__e=T.__e):R.__e=Te(T.__e,R,T,L,q,O,J,he);(te=r.diffed)&&te(R)}catch(rn){R.__v=null,(he||O!=null)&&(R.__e=ue,R.__h=!!he,O[O.indexOf(ue)]=null),r.__e(rn,R,T)}}function Oe(M,R){r.__c&&r.__c(R,M),M.some(function(T){try{M=T.__h,T.__h=[],M.some(function(L){L.call(T)})}catch(L){r.__e(L,T.__v)}})}function Te(M,R,T,L,q,O,J,ue){var he,te,Q,Ce=T.props,oe=R.props,ye=R.type,Le=0;if(ye==="svg"&&(q=!0),O!=null){for(;Le<O.length;Le++)if((he=O[Le])&&"setAttribute"in he==!!ye&&(ye?he.localName===ye:he.nodeType===3)){M=he,O[Le]=null;break}}if(M==null){if(ye===null)return document.createTextNode(oe);M=q?document.createElementNS("http://www.w3.org/2000/svg",ye):document.createElement(ye,oe.is&&oe),O=null,ue=!1}if(ye===null)Ce===oe||ue&&M.data===oe||(M.data=oe);else{if(O=O&&n.call(M.childNodes),te=(Ce=T.props||d).dangerouslySetInnerHTML,Q=oe.dangerouslySetInnerHTML,!ue){if(O!=null)for(Ce={},Le=0;Le<M.attributes.length;Le++)Ce[M.attributes[Le].name]=M.attributes[Le].value;(Q||te)&&(Q&&(te&&Q.__html==te.__html||Q.__html===M.innerHTML)||(M.innerHTML=Q&&Q.__html||""))}if(ce(M,oe,Ce,q,ue),Q)R.__k=[];else if(Le=R.props.children,P(M,Array.isArray(Le)?Le:[Le],R,T,L,q&&ye!=="foreignObject",O,J,O?O[0]:T.__k&&S(T,0),ue),O!=null)for(Le=O.length;Le--;)O[Le]!=null&&E(O[Le]);ue||("value"in oe&&(Le=oe.value)!==void 0&&(Le!==Ce.value||Le!==M.value||ye==="progress"&&!Le)&&ge(M,"value",Le,Ce.value,!1),"checked"in oe&&(Le=oe.checked)!==void 0&&Le!==M.checked&&ge(M,"checked",Le,Ce.checked,!1))}return M}function Ne(M,R,T){try{typeof M=="function"?M(R):M.current=R}catch(L){r.__e(L,T)}}function Re(M,R,T){var L,q;if(r.unmount&&r.unmount(M),(L=M.ref)&&(L.current&&L.current!==M.__e||Ne(L,null,R)),(L=M.__c)!=null){if(L.componentWillUnmount)try{L.componentWillUnmount()}catch(O){r.__e(O,R)}L.base=L.__P=null}if(L=M.__k)for(q=0;q<L.length;q++)L[q]&&Re(L[q],R,typeof M.type!="function");T||M.__e==null||E(M.__e),M.__e=M.__d=void 0}function Ae(M,R,T){return this.constructor(M,T)}function ae(M,R,T){var L,q,O;r.__&&r.__(M,R),q=(L=typeof T=="function")?null:T&&T.__k||R.__k,O=[],ve(R,M=(!L&&T||R).__k=w($,null,[M]),q||d,d,R.ownerSVGElement!==void 0,!L&&T?[T]:q?null:R.firstChild?n.call(R.childNodes):null,O,!L&&T?T:q?q.__e:R.firstChild,L),Oe(O,M)}n=p.slice,r={__e:function(M,R){for(var T,L,q;R=R.__;)if((T=R.__c)&&!T.__)try{if((L=T.constructor)&&L.getDerivedStateFromError!=null&&(T.setState(L.getDerivedStateFromError(M)),q=T.__d),T.componentDidCatch!=null&&(T.componentDidCatch(M),q=T.__d),q)return T.__E=T}catch(O){M=O}throw M}},i=0,o=function(M){return M!=null&&M.constructor===void 0},m.prototype.setState=function(M,R){var T;T=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=h({},this.state),typeof M=="function"&&(M=M(h({},T),this.props)),M&&h(T,M),M!=null&&this.__v&&(R&&this.__h.push(R),A(this))},m.prototype.forceUpdate=function(M){this.__v&&(this.__e=!0,M&&this.__h.push(M),A(this))},m.prototype.render=$,a=[],l=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,B.__r=0,f=0,t.Component=m,t.Fragment=$,t.cloneElement=function(M,R,T){var L,q,O,J=h({},M.props);for(O in R)O=="key"?L=R[O]:O=="ref"?q=R[O]:J[O]=R[O];return arguments.length>2&&(J.children=arguments.length>3?n.call(arguments,2):T),y(M.type,J,L||M.key,q||M.ref,null)},t.createContext=function(M,R){var T={__c:R="__cC"+f++,__:M,Consumer:function(L,q){return L.children(q)},Provider:function(L){var q,O;return this.getChildContext||(q=[],(O={})[R]=this,this.getChildContext=function(){return O},this.shouldComponentUpdate=function(J){this.props.value!==J.value&&q.some(A)},this.sub=function(J){q.push(J);var ue=J.componentWillUnmount;J.componentWillUnmount=function(){q.splice(q.indexOf(J),1),ue&&ue.call(J)}}),L.children}};return T.Provider.__=T.Consumer.contextType=T},t.createElement=w,t.createRef=function(){return{current:null}},t.h=w,t.hydrate=function M(R,T){ae(R,T,M)},t.isValidElement=o,t.options=r,t.render=ae,t.toChildArray=function M(R,T){return T=T||[],R==null||typeof R=="boolean"||(Array.isArray(R)?R.some(function(L){M(L,T)}):T.push(R)),T}}),IK=function(t){return(t==null?void 0:t.nodeType)===Node.ELEMENT_NODE},NK=function(t,n){return n===void 0&&(n=document),typeof t=="string"?n.querySelector(t):IK(t)?t:null},E2=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 kA([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 HA(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var LK=0;function RK(e){return"__private_"+LK+++"_"+e}const{render:WA}=PK;function MK(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 md=RK("updateUI");class C2 extends E2{constructor(){super(...arguments),Object.defineProperty(this,md,{writable:!0,value:void 0})}mount(t,n){const r=n.id,i=NK(t);if(i){this.isTargetDOMEl=!0;const l=document.createDocumentFragment();return HA(this,md)[md]=MK(u=>{!this.uppy.getPlugin(this.id)||(WA(this.render(u),l),this.afterUpdate())}),this.uppy.log(`Installing ${r} to a DOM element '${t}'`),this.opts.replaceTargetContent&&(i.innerHTML=""),WA(this.render(this.uppy.getState()),l),this.el=l.firstElementChild,i.appendChild(l),this.onMount(),this.el}let o;if(typeof t=="object"&&t instanceof C2)o=t;else if(typeof t=="function"){const l=t;this.uppy.iteratePlugins(u=>{if(u instanceof l)return o=u,!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=HA(this,md))[md])==null||n.call(r,t)}}unmount(){if(this.isTargetDOMEl){var t;(t=this.el)==null||t.remove()}this.onUnmount()}onMount(){}onUnmount(){}}var jK=C2;const{debugLogger:zK}=RA;var yd=UA,VK=UA,UK=jK,HK=E2,WK=zK;yd.Uppy=VK,yd.UIPlugin=UK,yd.BasePlugin=HK,yd.debugLogger=WK;class qK 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 S2=qK,x2=function(){return fetch(...arguments).catch(t=>{throw t.name==="AbortError"?t:new S2(t)})};class GK extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var KK=GK,I0,Aa,co,_a,qA;function fo(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var YK=0;function D2(e){return"__private_"+YK+++"_"+e}function XK(e){return e.replace(/\/$/,"")}async function A2(e){if(e.status===401)throw new KK;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 _2=(qA=(Aa=D2("getPostResponseFunc"),co=D2("getUrl"),_a=D2("errorHandler"),I0=class yV{constructor(t,n){Object.defineProperty(this,_a,{value:ZK}),Object.defineProperty(this,co,{value:JK}),Object.defineProperty(this,Aa,{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 XK(t&&t[n]?t[n]:n)}headers(){const t=this.opts.companionHeaders||{};return Promise.resolve({...yV.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(fo(this,co)[co](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=>x2(fo(this,co)[co](t),{method:r,headers:i,credentials:this.opts.companionCookiesRule||"same-origin"})).then(fo(this,Aa)[Aa](n)).then(A2).catch(fo(this,_a)[_a](r,t))}post(t,n,r){const i="post";return this.preflightAndHeaders(t).then(o=>x2(fo(this,co)[co](t),{method:i,headers:o,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(n)})).then(fo(this,Aa)[Aa](r)).then(A2).catch(fo(this,_a)[_a](i,t))}delete(t,n,r){const i="delete";return this.preflightAndHeaders(t).then(o=>x2(`${this.hostname}/${t}`,{method:i,headers:o,credentials:this.opts.companionCookiesRule||"same-origin",body:n?JSON.stringify(n):null})).then(fo(this,Aa)[Aa](r)).then(A2).catch(fo(this,_a)[_a](i,t))}}),I0.VERSION="2.0.4",I0.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${I0.VERSION}`},qA);function JK(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function ZK(e,t){return n=>{var r;if(!((r=n)!=null&&r.isAuthError)){const i=new Error(`Could not ${e} ${fo(this,co)[co](t)}`);i.cause=n,n=i}return Promise.reject(n)}}var QK=(e,t)=>new Promise(n=>{localStorage.setItem(e,t),n()}),eY=e=>Promise.resolve(localStorage.getItem(e)),tY=e=>new Promise(t=>{localStorage.removeItem(e),t()}),nY={setItem:QK,getItem:eY,removeItem:tY};const rY=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ");var iY=class extends _2{constructor(t,n){super(t,n),this.provider=n.provider,this.id=this.provider,this.name=this.opts.name||rY(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||nY}};const oY=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ");var aY=class extends _2{constructor(t,n){super(t,n),this.provider=n.provider,this.id=this.provider,this.name=this.opts.name||oY(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}`)}},po,ka,si,cr,N0;let GA,KA;function Dn(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var lY=0;function bd(e){return"__private_"+lY+++"_"+e}var sY=(po=bd("queued"),ka=bd("emitter"),si=bd("isOpen"),cr=bd("socket"),N0=bd("handleMessage"),GA=Symbol.for("uppy test: getSocket"),KA=Symbol.for("uppy test: getQueued"),class{constructor(t){Object.defineProperty(this,po,{writable:!0,value:[]}),Object.defineProperty(this,ka,{writable:!0,value:OA()}),Object.defineProperty(this,si,{writable:!0,value:!1}),Object.defineProperty(this,cr,{writable:!0,value:void 0}),Object.defineProperty(this,N0,{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 Dn(this,si)[si]}[GA](){return Dn(this,cr)[cr]}[KA](){return Dn(this,po)[po]}open(){Dn(this,cr)[cr]=new WebSocket(this.opts.target),Dn(this,cr)[cr].onopen=()=>{for(Dn(this,si)[si]=!0;Dn(this,po)[po].length>0&&Dn(this,si)[si];){const t=Dn(this,po)[po].shift();this.send(t.action,t.payload)}},Dn(this,cr)[cr].onclose=()=>{Dn(this,si)[si]=!1},Dn(this,cr)[cr].onmessage=Dn(this,N0)[N0]}close(){var t;(t=Dn(this,cr)[cr])==null||t.close()}send(t,n){if(!Dn(this,si)[si]){Dn(this,po)[po].push({action:t,payload:n});return}Dn(this,cr)[cr].send(JSON.stringify({action:t,payload:n}))}on(t,n){Dn(this,ka)[ka].on(t,n)}emit(t,n){Dn(this,ka)[ka].emit(t,n)}once(t,n){Dn(this,ka)[ka].once(t,n)}}),uY={RequestClient:_2,Provider:iY,SearchProvider:aY,Socket:sY};function cY(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 fY=is(cY,300,{leading:!0,trailing:!0}),dY=function(t){const r=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(t)[1];return`${/^http:\/\//i.test(t)?"ws":"wss"}://${r}`},pY=function(t){const n=[],r=[];function i(l){n.push(l)}function o(l){r.push(l)}return Promise.all(t.map(l=>l.then(i,o))).then(()=>({successful:n,failed:r}))},Oa,ec;function wd(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var hY=0;function YA(e){return"__private_"+hY+++"_"+e}var XA=(Oa=YA("emitter"),ec=YA("events"),class{constructor(t){Object.defineProperty(this,Oa,{writable:!0,value:void 0}),Object.defineProperty(this,ec,{writable:!0,value:[]}),wd(this,Oa)[Oa]=t}on(t,n){return wd(this,ec)[ec].push([t,n]),wd(this,Oa)[Oa].on(t,n)}remove(){for(const[t,n]of wd(this,ec)[ec].splice(0))wd(this,Oa)[Oa].off(t,n)}});function ui(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var gY=0;function L0(e){return"__private_"+gY+++"_"+e}var Go=L0("aliveTimer"),ss=L0("isDone"),$d=L0("onTimedOut"),us=L0("timeout");class vY{constructor(t,n){Object.defineProperty(this,Go,{writable:!0,value:void 0}),Object.defineProperty(this,ss,{writable:!0,value:!1}),Object.defineProperty(this,$d,{writable:!0,value:void 0}),Object.defineProperty(this,us,{writable:!0,value:void 0}),ui(this,us)[us]=t,ui(this,$d)[$d]=n}progress(){ui(this,ss)[ss]||ui(this,us)[us]>0&&(clearTimeout(ui(this,Go)[Go]),ui(this,Go)[Go]=setTimeout(ui(this,$d)[$d],ui(this,us)[us]))}done(){ui(this,ss)[ss]||(clearTimeout(ui(this,Go)[Go]),ui(this,Go)[Go]=null,ui(this,ss)[ss]=!0)}}var JA=vY;function An(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var mY=0;function cs(e){return"__private_"+mY+++"_"+e}function yY(){return new Error("Cancelled")}var Ur=cs("activeRequests"),br=cs("queuedHandlers"),Ed=cs("call"),Cd=cs("queueNext"),k2=cs("next"),O2=cs("queue"),B2=cs("dequeue");class bY{constructor(t){Object.defineProperty(this,B2,{value:SY}),Object.defineProperty(this,O2,{value:CY}),Object.defineProperty(this,k2,{value:EY}),Object.defineProperty(this,Cd,{value:$Y}),Object.defineProperty(this,Ed,{value:wY}),Object.defineProperty(this,Ur,{writable:!0,value:0}),Object.defineProperty(this,br,{writable:!0,value:[]}),typeof t!="number"||t===0?this.limit=1/0:this.limit=t}run(t,n){return An(this,Ur)[Ur]<this.limit?An(this,Ed)[Ed](t):An(this,O2)[O2](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 l;const u=new Promise((f,d)=>{l=r.run(()=>{let p,g;try{g=Promise.resolve(t(...o))}catch(h){g=Promise.reject(h)}return g.then(h=>{p?d(p):(l.done(),f(h))},h=>{p?d(p):(l.done(),d(h))}),()=>{p=yY()}},n)});return u.abort=()=>{l.abort()},u}}}function wY(e){An(this,Ur)[Ur]+=1;let t=!1,n;try{n=e()}catch(r){throw An(this,Ur)[Ur]-=1,r}return{abort:()=>{t||(t=!0,An(this,Ur)[Ur]-=1,n(),An(this,Cd)[Cd]())},done:()=>{t||(t=!0,An(this,Ur)[Ur]-=1,An(this,Cd)[Cd]())}}}function $Y(){queueMicrotask(()=>An(this,k2)[k2]())}function EY(){if(An(this,Ur)[Ur]>=this.limit||An(this,br)[br].length===0)return;const e=An(this,br)[br].shift(),t=An(this,Ed)[Ed](e.fn);e.abort=t.abort,e.done=t.done}function CY(e,t){t===void 0&&(t={});const n={fn:e,priority:t.priority||0,abort:()=>{An(this,B2)[B2](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=An(this,br)[br].findIndex(i=>n.priority>i.priority);return r===-1?An(this,br)[br].push(n):An(this,br)[br].splice(r,0,n),n}function SY(e){const t=An(this,br)[br].indexOf(e);t!==-1&&An(this,br)[br].splice(t,1)}var xY={RateLimitedQueue:bY,internalRateLimitedQueue:Symbol("__queue")};function DY(e){return e?e.readyState!==0&&e.readyState!==4||e.status===0:!1}var ZA=DY,AY={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}},QA,e_;const{nanoid:_Y}=MA,{Provider:kY,RequestClient:OY,Socket:BY}=uY,{RateLimitedQueue:TY,internalRateLimitedQueue:T2}=xY;function t_(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})),ZA(e)?(n=new S2(n,e),n):(n.request=e,n)}function n_(e){return e.data.slice(0,e.data.size,e.meta.type)}var FY=(e_=QA=class extends E2{constructor(t,n){super(t,n),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=AY;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 ZA(o)&&(a=new S2(a,o)),a},validateStatus(i){return i>=200&&i<300}};if(this.opts={...r,...n},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),T2 in this.opts?this.requests=this.opts[T2]:this.requests=new TY(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=n_(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),l=n_(o);o.name?r.append(a.fieldName,l,o.name):r.append(a.fieldName,l)}),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 l=i.formData?this.createFormDataUpload(t,i):t.data,u=new XMLHttpRequest;this.uploaderEvents[t.id]=new XA(this.uppy);const f=new JA(i.timeout,()=>{u.abort(),p.done();const g=new Error(this.i18n("timedOut",{seconds:Math.ceil(i.timeout/1e3)}));this.uppy.emit("upload-error",t,g),a(g)}),d=_Y();u.upload.addEventListener("loadstart",()=>{this.uppy.log(`[XHRUpload] ${d} started`)}),u.upload.addEventListener("progress",g=>{this.uppy.log(`[XHRUpload] ${d} progress: ${g.loaded} / ${g.total}`),f.progress(),g.lengthComputable&&this.uppy.emit("upload-progress",t,{uploader:this,bytesUploaded:g.loaded,bytesTotal:g.total})}),u.addEventListener("load",g=>{if(this.uppy.log(`[XHRUpload] ${d} finished`),f.done(),p.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),i.validateStatus(g.target.status,u.responseText,u)){const y=i.getResponseData(u.responseText,u),$=y[i.responseUrlFieldName],m={status:g.target.status,body:y,uploadURL:$};return this.uppy.emit("upload-success",t,m),$&&this.uppy.log(`Download ${t.name} from ${$}`),o(t)}const h=i.getResponseData(u.responseText,u),E=t_(u,i.getResponseError(u.responseText,u)),w={status:g.target.status,body:h};return this.uppy.emit("upload-error",t,E,w),a(E)}),u.addEventListener("error",()=>{this.uppy.log(`[XHRUpload] ${d} errored`),f.done(),p.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null);const g=t_(u,i.getResponseError(u.responseText,u));return this.uppy.emit("upload-error",t,g),a(g)}),u.open(i.method.toUpperCase(),i.endpoint,!0),u.withCredentials=i.withCredentials,i.responseType!==""&&(u.responseType=i.responseType);const p=this.requests.run(()=>{this.uppy.emit("upload-started",t);const g=this.getOptions(t);return Object.keys(g.headers).forEach(h=>{u.setRequestHeader(h,g.headers[h])}),u.send(l),()=>{f.done(),u.abort()}});this.onFileRemove(t.id,()=>{p.abort(),a(new Error("File removed"))}),this.onCancelAll(t.id,()=>{p.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(f=>{o[f]=t.meta[f]});const l=t.remote.providerOptions.provider?kY:OY;new l(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(f=>{const{token:d}=f,p=dY(t.remote.companionUrl),g=new BY({target:`${p}/api/${d}`,autoOpen:!1});this.uploaderEvents[t.id]=new XA(this.uppy),this.onFileRemove(t.id,()=>{g.send("cancel",{}),h.abort(),r(`upload ${t.id} was removed`)}),this.onCancelAll(t.id,()=>{g.send("cancel",{}),h.abort(),r(`upload ${t.id} was canceled`)}),this.onRetry(t.id,()=>{g.send("pause",{}),g.send("resume",{})}),this.onRetryAll(t.id,()=>{g.send("pause",{}),g.send("resume",{})}),g.on("progress",E=>fY(this,E,t)),g.on("success",E=>{const w=n.getResponseData(E.response.responseText,E.response),y=w[n.responseUrlFieldName],$={status:E.response.status,body:w,uploadURL:y};return this.uppy.emit("upload-success",t,$),h.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),r()}),g.on("error",E=>{const w=E.response,y=w?n.getResponseError(w.responseText,w):Object.assign(new Error(E.error.message),{cause:E.error});this.uppy.emit("upload-error",t,y),h.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),i(y)});const h=this.requests.run(()=>(g.open(),t.isPaused&&g.send("pause",{}),()=>g.close()))}).catch(f=>{this.uppy.emit("upload-error",t,f),i(f)})})}uploadBundle(t){return new Promise((n,r)=>{const{endpoint:i}=this.opts,{method:o}=this.opts,a=this.uppy.getState().xhrUpload,l=this.createBundledUpload(t,{...this.opts,...a||{}}),u=new XMLHttpRequest,f=new JA(this.opts.timeout,()=>{u.abort();const p=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));d(p),r(p)}),d=p=>{t.forEach(g=>{this.uppy.emit("upload-error",g,p)})};u.upload.addEventListener("loadstart",()=>{this.uppy.log("[XHRUpload] started uploading bundle"),f.progress()}),u.upload.addEventListener("progress",p=>{f.progress(),p.lengthComputable&&t.forEach(g=>{this.uppy.emit("upload-progress",g,{uploader:this,bytesUploaded:p.loaded/p.total*g.size,bytesTotal:g.size})})}),u.addEventListener("load",p=>{if(f.done(),this.opts.validateStatus(p.target.status,u.responseText,u)){const h=this.opts.getResponseData(u.responseText,u),E={status:p.target.status,body:h};return t.forEach(w=>{this.uppy.emit("upload-success",w,E)}),n()}const g=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return g.request=u,d(g),r(g)}),u.addEventListener("error",()=>{f.done();const p=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return d(p),r(p)}),this.uppy.on("cancel-all",()=>{f.done(),u.abort()}),u.open(o.toUpperCase(),i,!0),u.withCredentials=this.opts.withCredentials,this.opts.responseType!==""&&(u.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach(p=>{u.setRequestHeader(p,this.opts.headers[p])}),u.send(l),t.forEach(p=>{this.uppy.emit("upload-started",p)})})}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 pY(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[T2]&&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)}},QA.VERSION="2.0.6",e_),r_=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Sd(e){var t={exports:{}};return e(t,t.exports),t.exports}var Ba,R0,M0=function(e){return e&&e.Math==Math&&e},me=M0(typeof globalThis=="object"&&globalThis)||M0(typeof window=="object"&&window)||M0(typeof self=="object"&&self)||M0(typeof r_=="object"&&r_)||function(){return this}()||Function("return this")(),PY=Object.defineProperty,F2=function(e,t){try{PY(me,e,{value:t,configurable:!0,writable:!0})}catch{me[e]=t}return t},Ta=me["__core-js_shared__"]||F2("__core-js_shared__",{}),P2=Sd(function(e){(e.exports=function(t,n){return Ta[t]||(Ta[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),i_=Function.prototype,I2=i_.bind,N2=i_.call,IY=I2&&I2.bind(N2),Fe=I2?function(e){return e&&IY(N2,e)}:function(e){return e&&function(){return N2.apply(e,arguments)}},NY=me.TypeError,ci=function(e){if(e==null)throw NY("Can't call method on "+e);return e},LY=me.Object,Fa=function(e){return LY(ci(e))},RY=Fe({}.hasOwnProperty),yn=Object.hasOwn||function(e,t){return RY(Fa(e),t)},MY=0,jY=Math.random(),zY=Fe(1 .toString),L2=function(e){return"Symbol("+(e===void 0?"":e)+")_"+zY(++MY+jY,36)},kt=function(e){return typeof e=="function"},VY=function(e){return kt(e)?e:void 0},fs=function(e,t){return arguments.length<2?VY(me[e]):me[e]&&me[e][t]},tc=fs("navigator","userAgent")||"",o_=me.process,a_=me.Deno,l_=o_&&o_.versions||a_&&a_.version,s_=l_&&l_.v8;s_&&(R0=(Ba=s_.split("."))[0]>0&&Ba[0]<4?1:+(Ba[0]+Ba[1])),!R0&&tc&&(!(Ba=tc.match(/Edge\/(\d+)/))||Ba[1]>=74)&&(Ba=tc.match(/Chrome\/(\d+)/))&&(R0=+Ba[1]);var xd=R0,xt=function(e){try{return!!e()}catch{return!0}},R2=!!Object.getOwnPropertySymbols&&!xt(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&xd&&xd<41}),M2=R2&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Dd=P2("wks"),ds=me.Symbol,u_=ds&&ds.for,UY=M2?ds:ds&&ds.withoutSetter||L2,Zt=function(e){if(!yn(Dd,e)||!R2&&typeof Dd[e]!="string"){var t="Symbol."+e;R2&&yn(ds,e)?Dd[e]=ds[e]:Dd[e]=M2&&u_?u_(t):UY(t)}return Dd[e]},c_={};c_[Zt("toStringTag")]="z";var j2=String(c_)==="[object z]",Gn=!xt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Mt=function(e){return typeof e=="object"?e!==null:kt(e)},z2=me.document,HY=Mt(z2)&&Mt(z2.createElement),Ad=function(e){return HY?z2.createElement(e):{}},f_=!Gn&&!xt(function(){return Object.defineProperty(Ad("div"),"a",{get:function(){return 7}}).a!=7}),WY=me.String,qY=me.TypeError,bn=function(e){if(Mt(e))return e;throw qY(WY(e)+" is not an object")},_d=Function.prototype.call,gt=_d.bind?_d.bind(_d):function(){return _d.apply(_d,arguments)},ps=Fe({}.isPrototypeOf),GY=me.Object,V2=M2?function(e){return typeof e=="symbol"}:function(e){var t=fs("Symbol");return kt(t)&&ps(t.prototype,GY(e))},KY=me.String,j0=function(e){try{return KY(e)}catch{return"Object"}},YY=me.TypeError,Pa=function(e){if(kt(e))return e;throw YY(j0(e)+" is not a function")},hs=function(e,t){var n=e[t];return n==null?void 0:Pa(n)},XY=me.TypeError,JY=me.TypeError,ZY=Zt("toPrimitive"),QY=function(e,t){if(!Mt(e)||V2(e))return e;var n,r=hs(e,ZY);if(r){if(t===void 0&&(t="default"),n=gt(r,e,t),!Mt(n)||V2(n))return n;throw JY("Can't convert object to primitive value")}return t===void 0&&(t="number"),function(i,o){var a,l;if(o==="string"&&kt(a=i.toString)&&!Mt(l=gt(a,i))||kt(a=i.valueOf)&&!Mt(l=gt(a,i))||o!=="string"&&kt(a=i.toString)&&!Mt(l=gt(a,i)))return l;throw XY("Can't convert object to primitive value")}(e,t)},U2=function(e){var t=QY(e,"string");return V2(t)?t:t+""},eX=me.TypeError,d_=Object.defineProperty,ji={f:Gn?d_:function(e,t,n){if(bn(e),t=U2(t),bn(n),f_)try{return d_(e,t,n)}catch{}if("get"in n||"set"in n)throw eX("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},z0=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},zi=Gn?function(e,t,n){return ji.f(e,t,z0(1,n))}:function(e,t,n){return e[t]=n,e},tX=Fe(Function.toString);kt(Ta.inspectSource)||(Ta.inspectSource=function(e){return tX(e)});var V0,kd,U0,H0=Ta.inspectSource,p_=me.WeakMap,h_=kt(p_)&&/native code/.test(H0(p_)),g_=P2("keys"),H2=function(e){return g_[e]||(g_[e]=L2(e))},W0={},W2=me.TypeError,nX=me.WeakMap;if(h_||Ta.state){var gs=Ta.state||(Ta.state=new nX),rX=Fe(gs.get),v_=Fe(gs.has),iX=Fe(gs.set);V0=function(e,t){if(v_(gs,e))throw new W2("Object already initialized");return t.facade=e,iX(gs,e,t),t},kd=function(e){return rX(gs,e)||{}},U0=function(e){return v_(gs,e)}}else{var nc=H2("state");W0[nc]=!0,V0=function(e,t){if(yn(e,nc))throw new W2("Object already initialized");return t.facade=e,zi(e,nc,t),t},kd=function(e){return yn(e,nc)?e[nc]:{}},U0=function(e){return yn(e,nc)}}var fr={set:V0,get:kd,has:U0,enforce:function(e){return U0(e)?kd(e):V0(e,{})},getterFor:function(e){return function(t){var n;if(!Mt(t)||(n=kd(t)).type!==e)throw W2("Incompatible receiver, "+e+" required");return n}}},m_=Function.prototype,oX=Gn&&Object.getOwnPropertyDescriptor,q2=yn(m_,"name"),rc={EXISTS:q2,PROPER:q2&&function(){}.name==="something",CONFIGURABLE:q2&&(!Gn||Gn&&oX(m_,"name").configurable)},Ar=Sd(function(e){var t=rc.CONFIGURABLE,n=fr.get,r=fr.enforce,i=String(String).split("String");(e.exports=function(o,a,l,u){var f,d=!!u&&!!u.unsafe,p=!!u&&!!u.enumerable,g=!!u&&!!u.noTargetGet,h=u&&u.name!==void 0?u.name:a;kt(l)&&(String(h).slice(0,7)==="Symbol("&&(h="["+String(h).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!yn(l,"name")||t&&l.name!==h)&&zi(l,"name",h),(f=r(l)).source||(f.source=i.join(typeof h=="string"?h:""))),o!==me?(d?!g&&o[a]&&(p=!0):delete o[a],p?o[a]=l:zi(o,a,l)):p?o[a]=l:F2(a,l)})(Function.prototype,"toString",function(){return kt(this)&&n(this).source||H0(this)})}),aX=Fe({}.toString),lX=Fe("".slice),Vi=function(e){return lX(aX(e),8,-1)},sX=Zt("toStringTag"),uX=me.Object,cX=Vi(function(){return arguments}())=="Arguments",q0=j2?Vi: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=uX(e),sX))=="string"?n:cX?Vi(t):(r=Vi(t))=="Object"&&kt(t.callee)?"Arguments":r},fX=j2?{}.toString:function(){return"[object "+q0(this)+"]"};j2||Ar(Object.prototype,"toString",fX,{unsafe:!0});var G0={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},G2=Ad("span").classList,y_=G2&&G2.constructor&&G2.constructor.prototype,b_=y_===Object.prototype?void 0:y_,w_=Fe(Fe.bind),vs=function(e,t){return Pa(e),t===void 0?e:w_?w_(e,t):function(){return e.apply(t,arguments)}},K2=me.Object,dX=Fe("".split),K0=xt(function(){return!K2("z").propertyIsEnumerable(0)})?function(e){return Vi(e)=="String"?dX(e,""):K2(e)}:K2,pX=Math.ceil,hX=Math.floor,Od=function(e){var t=+e;return t!=t||t===0?0:(t>0?hX:pX)(t)},gX=Math.min,ic=function(e){return e>0?gX(Od(e),9007199254740991):0},ms=function(e){return ic(e.length)},Y0=Array.isArray||function(e){return Vi(e)=="Array"},$_=function(){},vX=[],E_=fs("Reflect","construct"),Y2=/^\s*(?:class|function)\b/,mX=Fe(Y2.exec),yX=!Y2.exec($_),Bd=function(e){if(!kt(e))return!1;try{return E_($_,vX,e),!0}catch{return!1}},X0=!E_||xt(function(){var e;return Bd(Bd.call)||!Bd(Object)||!Bd(function(){e=!0})||e})?function(e){if(!kt(e))return!1;switch(q0(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return yX||!!mX(Y2,H0(e))}:Bd,bX=Zt("species"),C_=me.Array,S_=function(e,t){return new(function(n){var r;return Y0(n)&&(r=n.constructor,(X0(r)&&(r===C_||Y0(r.prototype))||Mt(r)&&(r=r[bX])===null)&&(r=void 0)),r===void 0?C_:r}(e))(t===0?0:t)},x_=Fe([].push),Ia=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,o=e==6,a=e==7,l=e==5||o;return function(u,f,d,p){for(var g,h,E=Fa(u),w=K0(E),y=vs(f,d),$=ms(w),m=0,S=p||S_,D=t?S(u,$):n||a?S(u,0):void 0;$>m;m++)if((l||m in w)&&(h=y(g=w[m],m,E),e))if(t)D[m]=h;else if(h)switch(e){case 3:return!0;case 5:return g;case 6:return m;case 2:x_(D,g)}else switch(e){case 4:return!1;case 7:x_(D,g)}return o?-1:r||i?i:D}},oc={forEach:Ia(0),map:Ia(1),filter:Ia(2),some:Ia(3),every:Ia(4),find:Ia(5),findIndex:Ia(6),filterReject:Ia(7)},D_=function(e,t){var n=[][e];return!!n&&xt(function(){n.call(null,t||function(){throw 1},1)})},wX=oc.forEach,X2=D_("forEach")?[].forEach:function(e){return wX(this,e,arguments.length>1?arguments[1]:void 0)},A_=function(e){if(e&&e.forEach!==X2)try{zi(e,"forEach",X2)}catch{e.forEach=X2}};for(var J2 in G0)G0[J2]&&A_(me[J2]&&me[J2].prototype);A_(b_);var __={}.propertyIsEnumerable,k_=Object.getOwnPropertyDescriptor,$X=k_&&!__.call({1:2},1)?function(e){var t=k_(this,e);return!!t&&t.enumerable}:__,O_={f:$X},Na=function(e){return K0(ci(e))},B_=Object.getOwnPropertyDescriptor,Td={f:Gn?B_:function(e,t){if(e=Na(e),t=U2(t),f_)try{return B_(e,t)}catch{}if(yn(e,t))return z0(!gt(O_.f,e,t),e[t])}},EX=Math.max,CX=Math.min,ac=function(e,t){var n=Od(e);return n<0?EX(n+t,0):CX(n,t)},T_=function(e){return function(t,n,r){var i,o=Na(t),a=ms(o),l=ac(r,a);if(e&&n!=n){for(;a>l;)if((i=o[l++])!=i)return!0}else for(;a>l;l++)if((e||l in o)&&o[l]===n)return e||l||0;return!e&&-1}},F_={includes:T_(!0),indexOf:T_(!1)},SX=F_.indexOf,P_=Fe([].push),I_=function(e,t){var n,r=Na(e),i=0,o=[];for(n in r)!yn(W0,n)&&yn(r,n)&&P_(o,n);for(;t.length>i;)yn(r,n=t[i++])&&(~SX(o,n)||P_(o,n));return o},J0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],xX=J0.concat("length","prototype"),Fd={f:Object.getOwnPropertyNames||function(e){return I_(e,xX)}},N_={f:Object.getOwnPropertySymbols},DX=Fe([].concat),AX=fs("Reflect","ownKeys")||function(e){var t=Fd.f(bn(e)),n=N_.f;return n?DX(t,n(e)):t},_X=function(e,t){for(var n=AX(t),r=ji.f,i=Td.f,o=0;o<n.length;o++){var a=n[o];yn(e,a)||r(e,a,i(t,a))}},kX=/#|\.prototype\./,Pd=function(e,t){var n=BX[OX(e)];return n==FX||n!=TX&&(kt(t)?xt(t):!!t)},OX=Pd.normalize=function(e){return String(e).replace(kX,".").toLowerCase()},BX=Pd.data={},TX=Pd.NATIVE="N",FX=Pd.POLYFILL="P",Id=Pd,PX=Td.f,Qt=function(e,t){var n,r,i,o,a,l=e.target,u=e.global,f=e.stat;if(n=u?me:f?me[l]||F2(l,{}):(me[l]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=PX(n,r))&&a.value:n[r],!Id(u?r:l+(f?".":"#")+r,e.forced)&&i!==void 0){if(typeof o==typeof i)continue;_X(o,i)}(e.sham||i&&i.sham)&&zi(o,"sham",!0),Ar(n,r,o,e)}},lc=Object.keys||function(e){return I_(e,J0)},IX=xt(function(){lc(1)});/*!
24
+ 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 Be(this,tr)[tr]?Be(this,tr)[tr][r.type].push(r):Be(this,tr)[tr][r.type]=[r],r.install(),this}getPlugin(t){for(const n of Object.values(Be(this,tr)[tr])){const r=n.find(i=>i.id===t);if(r!=null)return r}}[jA](t){return Be(this,tr)[tr][t]}iteratePlugins(t){Object.values(Be(this,tr)[tr]).flat(1).forEach(t)}removePlugin(t){this.log(`Removing plugin ${t.id}`),this.emit("plugin-remove",t),t.uninstall&&t.uninstall();const n=Be(this,tr)[tr][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(),Be(this,fd)[fd](),this.iteratePlugins(t=>{this.removePlugin(t)}),typeof window<"u"&&window.removeEventListener&&(window.removeEventListener("online",Be(this,Mi)[Mi]),window.removeEventListener("offline",Be(this,Mi)[Mi]))}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]?Be(this,qo)[qo](t):(Be(this,ls)[ls](t),Promise.reject(new Error("Nonexistent upload")))}[zA](){return Be(this,Wo)[Wo](...arguments)}addResultData(t,n){if(!Be(this,$2)[$2](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=Be(this,tr)[tr].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(()=>{Be(this,y2)[y2](n),Be(this,b2)[b2](n)}).catch(i=>{Be(this,Rn)[Rn](i)}).then(()=>{const{currentUploads:i}=this.getState(),o=Object.values(i).flatMap(u=>u.fileIDs),a=[];Object.keys(n).forEach(u=>{const f=this.getFile(u);!f.progress.uploadStarted&&o.indexOf(u)===-1&&a.push(f.id)});const l=Be(this,Wo)[Wo](a);return Be(this,qo)[qo](l)}).catch(i=>{Be(this,Rn)[Rn](i,{showInformer:!1})}))}}function $K(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 uo(`${this.i18n("youCanOnlyUploadX",{smart_count:o})}`);if(a&&!a.some(u=>u.indexOf("/")>-1?e.type?iK(e.type.replace(/;.*?$/,""),u):!1:u[0]==="."&&e.extension?e.extension.toLowerCase()===u.substr(1).toLowerCase():!1)){const u=a.join(", ");throw new uo(this.i18n("youCanOnlyUploadFileTypes",{types:u}))}if(i&&e.size!=null){let l=0;if(l+=e.size,t.forEach(u=>{l+=u.size}),l>i)throw new uo(this.i18n("exceedsSize",{size:g2(i),file:e.name}))}if(n&&e.size!=null&&e.size>n)throw new uo(this.i18n("exceedsSize",{size:g2(n),file:e.name}));if(r&&e.size!=null&&e.size<r)throw new uo(this.i18n("inferiorSize",{size:g2(r)}))}function EK(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new uo(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:t})}`)}function CK(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 uo(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})}`);r.push(a),i.push(t[o]),Be(this,Rn)[Rn](a,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:i}),r}function SK(e){const t=Object.keys(e).flatMap(n=>{const r=this.getFile(n);return Be(this,pd)[pd](r)});if(t.length)throw new wK(t,`${this.i18n("missingRequiredMetaField")}`)}function xK(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 l=o;if(a&&(l+=` ${a}`),e.isRestriction?(this.log(l),this.emit("restriction-failed",r,e)):this.log(l,"error"),n&&this.info({message:o,details:a},"error",this.opts.infoTimeout),i)throw typeof e=="object"?e:new Error(e)}function DK(e){const{allowNewUpload:t}=this.getState();t===!1&&Be(this,Rn)[Rn](new uo(this.i18n("noMoreFilesAllowed")),{file:e})}function AK(e,t){const n=cK(t),r=hK(n,t),i=IA(r).extension,o=Boolean(t.isRemote),a=dK({...t,type:n});if(this.checkIfFileAlreadyExists(a)){const p=new uo(this.i18n("noDuplicates",{fileName:r}));Be(this,Rn)[Rn](p,{file:t})}const l=t.meta||{};l.name=r,l.type=n;const u=Number.isFinite(t.data.size)?t.data.size:null;let f={source:t.source||"",id:a,name:r,extension:i||"",meta:{...this.getState().meta,...l},type:n,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:u,uploadComplete:!1,uploadStarted:null},size:u,isRemote:o,remote:t.remote||"",preview:t.preview};const d=this.opts.onBeforeFileAdded(f,e);d===!1?Be(this,Rn)[Rn](new uo("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:t}):typeof d=="object"&&d!==null&&(f=d);try{const p=Object.keys(e).map(g=>e[g]);Be(this,dd)[dd](f,p)}catch(p){Be(this,Rn)[Rn](p,{file:f})}return f}function _K(){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 kK(){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}),Be(this,Rn)[Rn](i,{throwErr:!1})}else Be(this,Rn)[Rn](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:Be(this,Ho)[Ho].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&&Be(this,pd)[pd](t)}),typeof window<"u"&&window.addEventListener&&(window.addEventListener("online",Be(this,Mi)[Mi]),window.addEventListener("offline",Be(this,Mi)[Mi]),setTimeout(Be(this,Mi)[Mi],3e3))}function OK(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=mK();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 BK(e){const{currentUploads:t}=this.getState();return t[e]}function TK(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function FK(e){let{currentUploads:t}=this.getState(),n=t[e];const r=n.step||0,i=[...Be(this,os)[os],...Be(this,as)[as],...Be(this,Ho)[Ho]];try{for(let a=r;a<i.length&&n;a++){const l=i[a],u={...n,step:a};this.setState({currentUploads:{...t,[e]:u}}),await l(u.fileIDs,e),t=this.getState().currentUploads,n=t[e]}}catch(a){throw this.emit("error",a),Be(this,ls)[ls](e),a}if(n){n.fileIDs.forEach(f=>{const d=this.getFile(f);d&&d.progress.postprocess&&this.emit("postprocess-complete",d)});const a=n.fileIDs.map(f=>this.getFile(f)),l=a.filter(f=>!f.error),u=a.filter(f=>f.error);await this.addResultData(e,{successful:l,failed:u,uploadID:e}),t=this.getState().currentUploads,n=t[e]}let o;return n&&(o=n.result,this.emit("complete",o),Be(this,ls)[ls](e)),o==null&&this.log(`Not setting result for an upload that has been removed: ${e}`),o}VA.VERSION="2.1.3";var UA=VA,PK=Ib(function(e,t){var n,r,i,o,a,l,u,f,d={},p=[],g=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function h(R,M){for(var T in M)R[T]=M[T];return R}function E(R){var M=R.parentNode;M&&M.removeChild(R)}function w(R,M,T){var L,q,O,J={};for(O in M)O=="key"?L=M[O]:O=="ref"?q=M[O]:J[O]=M[O];if(arguments.length>2&&(J.children=arguments.length>3?n.call(arguments,2):T),typeof R=="function"&&R.defaultProps!=null)for(O in R.defaultProps)J[O]===void 0&&(J[O]=R.defaultProps[O]);return y(R,J,L,q,null)}function y(R,M,T,L,q){var O={type:R,props:M,key:T,ref:L,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:q==null?++i:q};return q==null&&r.vnode!=null&&r.vnode(O),O}function $(R){return R.children}function m(R,M){this.props=R,this.context=M}function S(R,M){if(M==null)return R.__?S(R.__,R.__.__k.indexOf(R)+1):null;for(var T;M<R.__k.length;M++)if((T=R.__k[M])!=null&&T.__e!=null)return T.__e;return typeof R.type=="function"?S(R):null}function D(R){var M,T;if((R=R.__)!=null&&R.__c!=null){for(R.__e=R.__c.base=null,M=0;M<R.__k.length;M++)if((T=R.__k[M])!=null&&T.__e!=null){R.__e=R.__c.base=T.__e;break}return D(R)}}function A(R){(!R.__d&&(R.__d=!0)&&a.push(R)&&!B.__r++||u!==r.debounceRendering)&&((u=r.debounceRendering)||l)(B)}function B(){for(var R;B.__r=a.length;)R=a.sort(function(M,T){return M.__v.__b-T.__v.__b}),a=[],R.some(function(M){var T,L,q,O,J,ue;M.__d&&(J=(O=(T=M).__v).__e,(ue=T.__P)&&(L=[],(q=h({},O)).__v=O.__v+1,ve(ue,O,q,T.__n,ue.ownerSVGElement!==void 0,O.__h!=null?[J]:null,L,J==null?S(O):J,O.__h),Oe(L,O),O.__e!=J&&D(O)))})}function P(R,M,T,L,q,O,J,ue,he,te){var Q,Ce,ae,ye,Le,$t,ft,ot=L&&L.__k||p,Ze=ot.length;for(T.__k=[],Q=0;Q<M.length;Q++)if((ye=T.__k[Q]=(ye=M[Q])==null||typeof ye=="boolean"?null:typeof ye=="string"||typeof ye=="number"||typeof ye=="bigint"?y(null,ye,null,null,ye):Array.isArray(ye)?y($,{children:ye},null,null,null):ye.__b>0?y(ye.type,ye.props,ye.key,null,ye.__v):ye)!=null){if(ye.__=T,ye.__b=T.__b+1,(ae=ot[Q])===null||ae&&ye.key==ae.key&&ye.type===ae.type)ot[Q]=void 0;else for(Ce=0;Ce<Ze;Ce++){if((ae=ot[Ce])&&ye.key==ae.key&&ye.type===ae.type){ot[Ce]=void 0;break}ae=null}ve(R,ye,ae=ae||d,q,O,J,ue,he,te),Le=ye.__e,(Ce=ye.ref)&&ae.ref!=Ce&&(ft||(ft=[]),ae.ref&&ft.push(ae.ref,null,ye),ft.push(Ce,ye.__c||Le,ye)),Le!=null?($t==null&&($t=Le),typeof ye.type=="function"&&ye.__k===ae.__k?ye.__d=he=U(ye,he,R):he=Y(R,ye,ae,ot,Le,he),typeof T.type=="function"&&(T.__d=he)):he&&ae.__e==he&&he.parentNode!=R&&(he=S(ae))}for(T.__e=$t,Q=Ze;Q--;)ot[Q]!=null&&(typeof T.type=="function"&&ot[Q].__e!=null&&ot[Q].__e==T.__d&&(T.__d=S(L,Q+1)),Re(ot[Q],ot[Q]));if(ft)for(Q=0;Q<ft.length;Q++)Ne(ft[Q],ft[++Q],ft[++Q])}function U(R,M,T){for(var L,q=R.__k,O=0;q&&O<q.length;O++)(L=q[O])&&(L.__=R,M=typeof L.type=="function"?U(L,M,T):Y(T,L,L,q,L.__e,M));return M}function Y(R,M,T,L,q,O){var J,ue,he;if(M.__d!==void 0)J=M.__d,M.__d=void 0;else if(T==null||q!=O||q.parentNode==null)e:if(O==null||O.parentNode!==R)R.appendChild(q),J=null;else{for(ue=O,he=0;(ue=ue.nextSibling)&&he<L.length;he+=2)if(ue==q)break e;R.insertBefore(q,O),J=O}return J!==void 0?J:q.nextSibling}function ce(R,M,T,L,q){var O;for(O in T)O==="children"||O==="key"||O in M||ge(R,O,null,T[O],L);for(O in M)q&&typeof M[O]!="function"||O==="children"||O==="key"||O==="value"||O==="checked"||T[O]===M[O]||ge(R,O,M[O],T[O],L)}function ee(R,M,T){M[0]==="-"?R.setProperty(M,T):R[M]=T==null?"":typeof T!="number"||g.test(M)?T:T+"px"}function ge(R,M,T,L,q){var O;e:if(M==="style")if(typeof T=="string")R.style.cssText=T;else{if(typeof L=="string"&&(R.style.cssText=L=""),L)for(M in L)T&&M in T||ee(R.style,M,"");if(T)for(M in T)L&&T[M]===L[M]||ee(R.style,M,T[M])}else if(M[0]==="o"&&M[1]==="n")O=M!==(M=M.replace(/Capture$/,"")),M=M.toLowerCase()in R?M.toLowerCase().slice(2):M.slice(2),R.l||(R.l={}),R.l[M+O]=T,T?L||R.addEventListener(M,O?xe:se,O):R.removeEventListener(M,O?xe:se,O);else if(M!=="dangerouslySetInnerHTML"){if(q)M=M.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(M!=="href"&&M!=="list"&&M!=="form"&&M!=="tabIndex"&&M!=="download"&&M in R)try{R[M]=T==null?"":T;break e}catch{}typeof T=="function"||(T!=null&&(T!==!1||M[0]==="a"&&M[1]==="r")?R.setAttribute(M,T):R.removeAttribute(M))}}function se(R){this.l[R.type+!1](r.event?r.event(R):R)}function xe(R){this.l[R.type+!0](r.event?r.event(R):R)}function ve(R,M,T,L,q,O,J,ue,he){var te,Q,Ce,ae,ye,Le,$t,ft,ot,Ze,dt,pt=M.type;if(M.constructor!==void 0)return null;T.__h!=null&&(he=T.__h,ue=M.__e=T.__e,M.__h=null,O=[ue]),(te=r.__b)&&te(M);try{e:if(typeof pt=="function"){if(ft=M.props,ot=(te=pt.contextType)&&L[te.__c],Ze=te?ot?ot.props.value:te.__:L,T.__c?$t=(Q=M.__c=T.__c).__=Q.__E:("prototype"in pt&&pt.prototype.render?M.__c=Q=new pt(ft,Ze):(M.__c=Q=new m(ft,Ze),Q.constructor=pt,Q.render=Ae),ot&&ot.sub(Q),Q.props=ft,Q.state||(Q.state={}),Q.context=Ze,Q.__n=L,Ce=Q.__d=!0,Q.__h=[]),Q.__s==null&&(Q.__s=Q.state),pt.getDerivedStateFromProps!=null&&(Q.__s==Q.state&&(Q.__s=h({},Q.__s)),h(Q.__s,pt.getDerivedStateFromProps(ft,Q.__s))),ae=Q.props,ye=Q.state,Ce)pt.getDerivedStateFromProps==null&&Q.componentWillMount!=null&&Q.componentWillMount(),Q.componentDidMount!=null&&Q.__h.push(Q.componentDidMount);else{if(pt.getDerivedStateFromProps==null&&ft!==ae&&Q.componentWillReceiveProps!=null&&Q.componentWillReceiveProps(ft,Ze),!Q.__e&&Q.shouldComponentUpdate!=null&&Q.shouldComponentUpdate(ft,Q.__s,Ze)===!1||M.__v===T.__v){Q.props=ft,Q.state=Q.__s,M.__v!==T.__v&&(Q.__d=!1),Q.__v=M,M.__e=T.__e,M.__k=T.__k,M.__k.forEach(function(rn){rn&&(rn.__=M)}),Q.__h.length&&J.push(Q);break e}Q.componentWillUpdate!=null&&Q.componentWillUpdate(ft,Q.__s,Ze),Q.componentDidUpdate!=null&&Q.__h.push(function(){Q.componentDidUpdate(ae,ye,Le)})}Q.context=Ze,Q.props=ft,Q.state=Q.__s,(te=r.__r)&&te(M),Q.__d=!1,Q.__v=M,Q.__P=R,te=Q.render(Q.props,Q.state,Q.context),Q.state=Q.__s,Q.getChildContext!=null&&(L=h(h({},L),Q.getChildContext())),Ce||Q.getSnapshotBeforeUpdate==null||(Le=Q.getSnapshotBeforeUpdate(ae,ye)),dt=te!=null&&te.type===$&&te.key==null?te.props.children:te,P(R,Array.isArray(dt)?dt:[dt],M,T,L,q,O,J,ue,he),Q.base=M.__e,M.__h=null,Q.__h.length&&J.push(Q),$t&&(Q.__E=Q.__=null),Q.__e=!1}else O==null&&M.__v===T.__v?(M.__k=T.__k,M.__e=T.__e):M.__e=Te(T.__e,M,T,L,q,O,J,he);(te=r.diffed)&&te(M)}catch(rn){M.__v=null,(he||O!=null)&&(M.__e=ue,M.__h=!!he,O[O.indexOf(ue)]=null),r.__e(rn,M,T)}}function Oe(R,M){r.__c&&r.__c(M,R),R.some(function(T){try{R=T.__h,T.__h=[],R.some(function(L){L.call(T)})}catch(L){r.__e(L,T.__v)}})}function Te(R,M,T,L,q,O,J,ue){var he,te,Q,Ce=T.props,ae=M.props,ye=M.type,Le=0;if(ye==="svg"&&(q=!0),O!=null){for(;Le<O.length;Le++)if((he=O[Le])&&"setAttribute"in he==!!ye&&(ye?he.localName===ye:he.nodeType===3)){R=he,O[Le]=null;break}}if(R==null){if(ye===null)return document.createTextNode(ae);R=q?document.createElementNS("http://www.w3.org/2000/svg",ye):document.createElement(ye,ae.is&&ae),O=null,ue=!1}if(ye===null)Ce===ae||ue&&R.data===ae||(R.data=ae);else{if(O=O&&n.call(R.childNodes),te=(Ce=T.props||d).dangerouslySetInnerHTML,Q=ae.dangerouslySetInnerHTML,!ue){if(O!=null)for(Ce={},Le=0;Le<R.attributes.length;Le++)Ce[R.attributes[Le].name]=R.attributes[Le].value;(Q||te)&&(Q&&(te&&Q.__html==te.__html||Q.__html===R.innerHTML)||(R.innerHTML=Q&&Q.__html||""))}if(ce(R,ae,Ce,q,ue),Q)M.__k=[];else if(Le=M.props.children,P(R,Array.isArray(Le)?Le:[Le],M,T,L,q&&ye!=="foreignObject",O,J,O?O[0]:T.__k&&S(T,0),ue),O!=null)for(Le=O.length;Le--;)O[Le]!=null&&E(O[Le]);ue||("value"in ae&&(Le=ae.value)!==void 0&&(Le!==Ce.value||Le!==R.value||ye==="progress"&&!Le)&&ge(R,"value",Le,Ce.value,!1),"checked"in ae&&(Le=ae.checked)!==void 0&&Le!==R.checked&&ge(R,"checked",Le,Ce.checked,!1))}return R}function Ne(R,M,T){try{typeof R=="function"?R(M):R.current=M}catch(L){r.__e(L,T)}}function Re(R,M,T){var L,q;if(r.unmount&&r.unmount(R),(L=R.ref)&&(L.current&&L.current!==R.__e||Ne(L,null,M)),(L=R.__c)!=null){if(L.componentWillUnmount)try{L.componentWillUnmount()}catch(O){r.__e(O,M)}L.base=L.__P=null}if(L=R.__k)for(q=0;q<L.length;q++)L[q]&&Re(L[q],M,typeof R.type!="function");T||R.__e==null||E(R.__e),R.__e=R.__d=void 0}function Ae(R,M,T){return this.constructor(R,T)}function ie(R,M,T){var L,q,O;r.__&&r.__(R,M),q=(L=typeof T=="function")?null:T&&T.__k||M.__k,O=[],ve(M,R=(!L&&T||M).__k=w($,null,[R]),q||d,d,M.ownerSVGElement!==void 0,!L&&T?[T]:q?null:M.firstChild?n.call(M.childNodes):null,O,!L&&T?T:q?q.__e:M.firstChild,L),Oe(O,R)}n=p.slice,r={__e:function(R,M){for(var T,L,q;M=M.__;)if((T=M.__c)&&!T.__)try{if((L=T.constructor)&&L.getDerivedStateFromError!=null&&(T.setState(L.getDerivedStateFromError(R)),q=T.__d),T.componentDidCatch!=null&&(T.componentDidCatch(R),q=T.__d),q)return T.__E=T}catch(O){R=O}throw R}},i=0,o=function(R){return R!=null&&R.constructor===void 0},m.prototype.setState=function(R,M){var T;T=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=h({},this.state),typeof R=="function"&&(R=R(h({},T),this.props)),R&&h(T,R),R!=null&&this.__v&&(M&&this.__h.push(M),A(this))},m.prototype.forceUpdate=function(R){this.__v&&(this.__e=!0,R&&this.__h.push(R),A(this))},m.prototype.render=$,a=[],l=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,B.__r=0,f=0,t.Component=m,t.Fragment=$,t.cloneElement=function(R,M,T){var L,q,O,J=h({},R.props);for(O in M)O=="key"?L=M[O]:O=="ref"?q=M[O]:J[O]=M[O];return arguments.length>2&&(J.children=arguments.length>3?n.call(arguments,2):T),y(R.type,J,L||R.key,q||R.ref,null)},t.createContext=function(R,M){var T={__c:M="__cC"+f++,__:R,Consumer:function(L,q){return L.children(q)},Provider:function(L){var q,O;return this.getChildContext||(q=[],(O={})[M]=this,this.getChildContext=function(){return O},this.shouldComponentUpdate=function(J){this.props.value!==J.value&&q.some(A)},this.sub=function(J){q.push(J);var ue=J.componentWillUnmount;J.componentWillUnmount=function(){q.splice(q.indexOf(J),1),ue&&ue.call(J)}}),L.children}};return T.Provider.__=T.Consumer.contextType=T},t.createElement=w,t.createRef=function(){return{current:null}},t.h=w,t.hydrate=function R(M,T){ie(M,T,R)},t.isValidElement=o,t.options=r,t.render=ie,t.toChildArray=function R(M,T){return T=T||[],M==null||typeof M=="boolean"||(Array.isArray(M)?M.some(function(L){R(L,T)}):T.push(M)),T}}),IK=function(t){return(t==null?void 0:t.nodeType)===Node.ELEMENT_NODE},NK=function(t,n){return n===void 0&&(n=document),typeof t=="string"?n.querySelector(t):IK(t)?t:null},E2=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 kA([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 HA(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var LK=0;function RK(e){return"__private_"+LK+++"_"+e}const{render:WA}=PK;function MK(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 md=RK("updateUI");class C2 extends E2{constructor(){super(...arguments),Object.defineProperty(this,md,{writable:!0,value:void 0})}mount(t,n){const r=n.id,i=NK(t);if(i){this.isTargetDOMEl=!0;const l=document.createDocumentFragment();return HA(this,md)[md]=MK(u=>{!this.uppy.getPlugin(this.id)||(WA(this.render(u),l),this.afterUpdate())}),this.uppy.log(`Installing ${r} to a DOM element '${t}'`),this.opts.replaceTargetContent&&(i.innerHTML=""),WA(this.render(this.uppy.getState()),l),this.el=l.firstElementChild,i.appendChild(l),this.onMount(),this.el}let o;if(typeof t=="object"&&t instanceof C2)o=t;else if(typeof t=="function"){const l=t;this.uppy.iteratePlugins(u=>{if(u instanceof l)return o=u,!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=HA(this,md))[md])==null||n.call(r,t)}}unmount(){if(this.isTargetDOMEl){var t;(t=this.el)==null||t.remove()}this.onUnmount()}onMount(){}onUnmount(){}}var jK=C2;const{debugLogger:zK}=RA;var yd=UA,VK=UA,UK=jK,HK=E2,WK=zK;yd.Uppy=VK,yd.UIPlugin=UK,yd.BasePlugin=HK,yd.debugLogger=WK;class qK 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 S2=qK,x2=function(){return fetch(...arguments).catch(t=>{throw t.name==="AbortError"?t:new S2(t)})};class GK extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var KK=GK,I0,Aa,co,_a,qA;function fo(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var YK=0;function D2(e){return"__private_"+YK+++"_"+e}function XK(e){return e.replace(/\/$/,"")}async function A2(e){if(e.status===401)throw new KK;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 _2=(qA=(Aa=D2("getPostResponseFunc"),co=D2("getUrl"),_a=D2("errorHandler"),I0=class yV{constructor(t,n){Object.defineProperty(this,_a,{value:ZK}),Object.defineProperty(this,co,{value:JK}),Object.defineProperty(this,Aa,{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 XK(t&&t[n]?t[n]:n)}headers(){const t=this.opts.companionHeaders||{};return Promise.resolve({...yV.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(fo(this,co)[co](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=>x2(fo(this,co)[co](t),{method:r,headers:i,credentials:this.opts.companionCookiesRule||"same-origin"})).then(fo(this,Aa)[Aa](n)).then(A2).catch(fo(this,_a)[_a](r,t))}post(t,n,r){const i="post";return this.preflightAndHeaders(t).then(o=>x2(fo(this,co)[co](t),{method:i,headers:o,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(n)})).then(fo(this,Aa)[Aa](r)).then(A2).catch(fo(this,_a)[_a](i,t))}delete(t,n,r){const i="delete";return this.preflightAndHeaders(t).then(o=>x2(`${this.hostname}/${t}`,{method:i,headers:o,credentials:this.opts.companionCookiesRule||"same-origin",body:n?JSON.stringify(n):null})).then(fo(this,Aa)[Aa](r)).then(A2).catch(fo(this,_a)[_a](i,t))}}),I0.VERSION="2.0.4",I0.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${I0.VERSION}`},qA);function JK(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function ZK(e,t){return n=>{var r;if(!((r=n)!=null&&r.isAuthError)){const i=new Error(`Could not ${e} ${fo(this,co)[co](t)}`);i.cause=n,n=i}return Promise.reject(n)}}var QK=(e,t)=>new Promise(n=>{localStorage.setItem(e,t),n()}),eY=e=>Promise.resolve(localStorage.getItem(e)),tY=e=>new Promise(t=>{localStorage.removeItem(e),t()}),nY={setItem:QK,getItem:eY,removeItem:tY};const rY=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ");var iY=class extends _2{constructor(t,n){super(t,n),this.provider=n.provider,this.id=this.provider,this.name=this.opts.name||rY(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||nY}};const oY=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ");var aY=class extends _2{constructor(t,n){super(t,n),this.provider=n.provider,this.id=this.provider,this.name=this.opts.name||oY(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}`)}},po,ka,si,cr,N0;let GA,KA;function Dn(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var lY=0;function bd(e){return"__private_"+lY+++"_"+e}var sY=(po=bd("queued"),ka=bd("emitter"),si=bd("isOpen"),cr=bd("socket"),N0=bd("handleMessage"),GA=Symbol.for("uppy test: getSocket"),KA=Symbol.for("uppy test: getQueued"),class{constructor(t){Object.defineProperty(this,po,{writable:!0,value:[]}),Object.defineProperty(this,ka,{writable:!0,value:OA()}),Object.defineProperty(this,si,{writable:!0,value:!1}),Object.defineProperty(this,cr,{writable:!0,value:void 0}),Object.defineProperty(this,N0,{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 Dn(this,si)[si]}[GA](){return Dn(this,cr)[cr]}[KA](){return Dn(this,po)[po]}open(){Dn(this,cr)[cr]=new WebSocket(this.opts.target),Dn(this,cr)[cr].onopen=()=>{for(Dn(this,si)[si]=!0;Dn(this,po)[po].length>0&&Dn(this,si)[si];){const t=Dn(this,po)[po].shift();this.send(t.action,t.payload)}},Dn(this,cr)[cr].onclose=()=>{Dn(this,si)[si]=!1},Dn(this,cr)[cr].onmessage=Dn(this,N0)[N0]}close(){var t;(t=Dn(this,cr)[cr])==null||t.close()}send(t,n){if(!Dn(this,si)[si]){Dn(this,po)[po].push({action:t,payload:n});return}Dn(this,cr)[cr].send(JSON.stringify({action:t,payload:n}))}on(t,n){Dn(this,ka)[ka].on(t,n)}emit(t,n){Dn(this,ka)[ka].emit(t,n)}once(t,n){Dn(this,ka)[ka].once(t,n)}}),uY={RequestClient:_2,Provider:iY,SearchProvider:aY,Socket:sY};function cY(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 fY=is(cY,300,{leading:!0,trailing:!0}),dY=function(t){const r=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(t)[1];return`${/^http:\/\//i.test(t)?"ws":"wss"}://${r}`},pY=function(t){const n=[],r=[];function i(l){n.push(l)}function o(l){r.push(l)}return Promise.all(t.map(l=>l.then(i,o))).then(()=>({successful:n,failed:r}))},Oa,ec;function wd(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var hY=0;function YA(e){return"__private_"+hY+++"_"+e}var XA=(Oa=YA("emitter"),ec=YA("events"),class{constructor(t){Object.defineProperty(this,Oa,{writable:!0,value:void 0}),Object.defineProperty(this,ec,{writable:!0,value:[]}),wd(this,Oa)[Oa]=t}on(t,n){return wd(this,ec)[ec].push([t,n]),wd(this,Oa)[Oa].on(t,n)}remove(){for(const[t,n]of wd(this,ec)[ec].splice(0))wd(this,Oa)[Oa].off(t,n)}});function ui(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var gY=0;function L0(e){return"__private_"+gY+++"_"+e}var Go=L0("aliveTimer"),ss=L0("isDone"),$d=L0("onTimedOut"),us=L0("timeout");class vY{constructor(t,n){Object.defineProperty(this,Go,{writable:!0,value:void 0}),Object.defineProperty(this,ss,{writable:!0,value:!1}),Object.defineProperty(this,$d,{writable:!0,value:void 0}),Object.defineProperty(this,us,{writable:!0,value:void 0}),ui(this,us)[us]=t,ui(this,$d)[$d]=n}progress(){ui(this,ss)[ss]||ui(this,us)[us]>0&&(clearTimeout(ui(this,Go)[Go]),ui(this,Go)[Go]=setTimeout(ui(this,$d)[$d],ui(this,us)[us]))}done(){ui(this,ss)[ss]||(clearTimeout(ui(this,Go)[Go]),ui(this,Go)[Go]=null,ui(this,ss)[ss]=!0)}}var JA=vY;function An(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var mY=0;function cs(e){return"__private_"+mY+++"_"+e}function yY(){return new Error("Cancelled")}var Ur=cs("activeRequests"),br=cs("queuedHandlers"),Ed=cs("call"),Cd=cs("queueNext"),k2=cs("next"),O2=cs("queue"),B2=cs("dequeue");class bY{constructor(t){Object.defineProperty(this,B2,{value:SY}),Object.defineProperty(this,O2,{value:CY}),Object.defineProperty(this,k2,{value:EY}),Object.defineProperty(this,Cd,{value:$Y}),Object.defineProperty(this,Ed,{value:wY}),Object.defineProperty(this,Ur,{writable:!0,value:0}),Object.defineProperty(this,br,{writable:!0,value:[]}),typeof t!="number"||t===0?this.limit=1/0:this.limit=t}run(t,n){return An(this,Ur)[Ur]<this.limit?An(this,Ed)[Ed](t):An(this,O2)[O2](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 l;const u=new Promise((f,d)=>{l=r.run(()=>{let p,g;try{g=Promise.resolve(t(...o))}catch(h){g=Promise.reject(h)}return g.then(h=>{p?d(p):(l.done(),f(h))},h=>{p?d(p):(l.done(),d(h))}),()=>{p=yY()}},n)});return u.abort=()=>{l.abort()},u}}}function wY(e){An(this,Ur)[Ur]+=1;let t=!1,n;try{n=e()}catch(r){throw An(this,Ur)[Ur]-=1,r}return{abort:()=>{t||(t=!0,An(this,Ur)[Ur]-=1,n(),An(this,Cd)[Cd]())},done:()=>{t||(t=!0,An(this,Ur)[Ur]-=1,An(this,Cd)[Cd]())}}}function $Y(){queueMicrotask(()=>An(this,k2)[k2]())}function EY(){if(An(this,Ur)[Ur]>=this.limit||An(this,br)[br].length===0)return;const e=An(this,br)[br].shift(),t=An(this,Ed)[Ed](e.fn);e.abort=t.abort,e.done=t.done}function CY(e,t){t===void 0&&(t={});const n={fn:e,priority:t.priority||0,abort:()=>{An(this,B2)[B2](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=An(this,br)[br].findIndex(i=>n.priority>i.priority);return r===-1?An(this,br)[br].push(n):An(this,br)[br].splice(r,0,n),n}function SY(e){const t=An(this,br)[br].indexOf(e);t!==-1&&An(this,br)[br].splice(t,1)}var xY={RateLimitedQueue:bY,internalRateLimitedQueue:Symbol("__queue")};function DY(e){return e?e.readyState!==0&&e.readyState!==4||e.status===0:!1}var ZA=DY,AY={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}},QA,e_;const{nanoid:_Y}=MA,{Provider:kY,RequestClient:OY,Socket:BY}=uY,{RateLimitedQueue:TY,internalRateLimitedQueue:T2}=xY;function t_(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})),ZA(e)?(n=new S2(n,e),n):(n.request=e,n)}function n_(e){return e.data.slice(0,e.data.size,e.meta.type)}var FY=(e_=QA=class extends E2{constructor(t,n){super(t,n),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=AY;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 ZA(o)&&(a=new S2(a,o)),a},validateStatus(i){return i>=200&&i<300}};if(this.opts={...r,...n},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),T2 in this.opts?this.requests=this.opts[T2]:this.requests=new TY(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=n_(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),l=n_(o);o.name?r.append(a.fieldName,l,o.name):r.append(a.fieldName,l)}),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 l=i.formData?this.createFormDataUpload(t,i):t.data,u=new XMLHttpRequest;this.uploaderEvents[t.id]=new XA(this.uppy);const f=new JA(i.timeout,()=>{u.abort(),p.done();const g=new Error(this.i18n("timedOut",{seconds:Math.ceil(i.timeout/1e3)}));this.uppy.emit("upload-error",t,g),a(g)}),d=_Y();u.upload.addEventListener("loadstart",()=>{this.uppy.log(`[XHRUpload] ${d} started`)}),u.upload.addEventListener("progress",g=>{this.uppy.log(`[XHRUpload] ${d} progress: ${g.loaded} / ${g.total}`),f.progress(),g.lengthComputable&&this.uppy.emit("upload-progress",t,{uploader:this,bytesUploaded:g.loaded,bytesTotal:g.total})}),u.addEventListener("load",g=>{if(this.uppy.log(`[XHRUpload] ${d} finished`),f.done(),p.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),i.validateStatus(g.target.status,u.responseText,u)){const y=i.getResponseData(u.responseText,u),$=y[i.responseUrlFieldName],m={status:g.target.status,body:y,uploadURL:$};return this.uppy.emit("upload-success",t,m),$&&this.uppy.log(`Download ${t.name} from ${$}`),o(t)}const h=i.getResponseData(u.responseText,u),E=t_(u,i.getResponseError(u.responseText,u)),w={status:g.target.status,body:h};return this.uppy.emit("upload-error",t,E,w),a(E)}),u.addEventListener("error",()=>{this.uppy.log(`[XHRUpload] ${d} errored`),f.done(),p.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null);const g=t_(u,i.getResponseError(u.responseText,u));return this.uppy.emit("upload-error",t,g),a(g)}),u.open(i.method.toUpperCase(),i.endpoint,!0),u.withCredentials=i.withCredentials,i.responseType!==""&&(u.responseType=i.responseType);const p=this.requests.run(()=>{this.uppy.emit("upload-started",t);const g=this.getOptions(t);return Object.keys(g.headers).forEach(h=>{u.setRequestHeader(h,g.headers[h])}),u.send(l),()=>{f.done(),u.abort()}});this.onFileRemove(t.id,()=>{p.abort(),a(new Error("File removed"))}),this.onCancelAll(t.id,()=>{p.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(f=>{o[f]=t.meta[f]});const l=t.remote.providerOptions.provider?kY:OY;new l(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(f=>{const{token:d}=f,p=dY(t.remote.companionUrl),g=new BY({target:`${p}/api/${d}`,autoOpen:!1});this.uploaderEvents[t.id]=new XA(this.uppy),this.onFileRemove(t.id,()=>{g.send("cancel",{}),h.abort(),r(`upload ${t.id} was removed`)}),this.onCancelAll(t.id,()=>{g.send("cancel",{}),h.abort(),r(`upload ${t.id} was canceled`)}),this.onRetry(t.id,()=>{g.send("pause",{}),g.send("resume",{})}),this.onRetryAll(t.id,()=>{g.send("pause",{}),g.send("resume",{})}),g.on("progress",E=>fY(this,E,t)),g.on("success",E=>{const w=n.getResponseData(E.response.responseText,E.response),y=w[n.responseUrlFieldName],$={status:E.response.status,body:w,uploadURL:y};return this.uppy.emit("upload-success",t,$),h.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),r()}),g.on("error",E=>{const w=E.response,y=w?n.getResponseError(w.responseText,w):Object.assign(new Error(E.error.message),{cause:E.error});this.uppy.emit("upload-error",t,y),h.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),i(y)});const h=this.requests.run(()=>(g.open(),t.isPaused&&g.send("pause",{}),()=>g.close()))}).catch(f=>{this.uppy.emit("upload-error",t,f),i(f)})})}uploadBundle(t){return new Promise((n,r)=>{const{endpoint:i}=this.opts,{method:o}=this.opts,a=this.uppy.getState().xhrUpload,l=this.createBundledUpload(t,{...this.opts,...a||{}}),u=new XMLHttpRequest,f=new JA(this.opts.timeout,()=>{u.abort();const p=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));d(p),r(p)}),d=p=>{t.forEach(g=>{this.uppy.emit("upload-error",g,p)})};u.upload.addEventListener("loadstart",()=>{this.uppy.log("[XHRUpload] started uploading bundle"),f.progress()}),u.upload.addEventListener("progress",p=>{f.progress(),p.lengthComputable&&t.forEach(g=>{this.uppy.emit("upload-progress",g,{uploader:this,bytesUploaded:p.loaded/p.total*g.size,bytesTotal:g.size})})}),u.addEventListener("load",p=>{if(f.done(),this.opts.validateStatus(p.target.status,u.responseText,u)){const h=this.opts.getResponseData(u.responseText,u),E={status:p.target.status,body:h};return t.forEach(w=>{this.uppy.emit("upload-success",w,E)}),n()}const g=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return g.request=u,d(g),r(g)}),u.addEventListener("error",()=>{f.done();const p=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return d(p),r(p)}),this.uppy.on("cancel-all",()=>{f.done(),u.abort()}),u.open(o.toUpperCase(),i,!0),u.withCredentials=this.opts.withCredentials,this.opts.responseType!==""&&(u.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach(p=>{u.setRequestHeader(p,this.opts.headers[p])}),u.send(l),t.forEach(p=>{this.uppy.emit("upload-started",p)})})}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 pY(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[T2]&&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)}},QA.VERSION="2.0.6",e_),r_=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Sd(e){var t={exports:{}};return e(t,t.exports),t.exports}var Ba,R0,M0=function(e){return e&&e.Math==Math&&e},me=M0(typeof globalThis=="object"&&globalThis)||M0(typeof window=="object"&&window)||M0(typeof self=="object"&&self)||M0(typeof r_=="object"&&r_)||function(){return this}()||Function("return this")(),PY=Object.defineProperty,F2=function(e,t){try{PY(me,e,{value:t,configurable:!0,writable:!0})}catch{me[e]=t}return t},Ta=me["__core-js_shared__"]||F2("__core-js_shared__",{}),P2=Sd(function(e){(e.exports=function(t,n){return Ta[t]||(Ta[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),i_=Function.prototype,I2=i_.bind,N2=i_.call,IY=I2&&I2.bind(N2),Fe=I2?function(e){return e&&IY(N2,e)}:function(e){return e&&function(){return N2.apply(e,arguments)}},NY=me.TypeError,ci=function(e){if(e==null)throw NY("Can't call method on "+e);return e},LY=me.Object,Fa=function(e){return LY(ci(e))},RY=Fe({}.hasOwnProperty),yn=Object.hasOwn||function(e,t){return RY(Fa(e),t)},MY=0,jY=Math.random(),zY=Fe(1 .toString),L2=function(e){return"Symbol("+(e===void 0?"":e)+")_"+zY(++MY+jY,36)},kt=function(e){return typeof e=="function"},VY=function(e){return kt(e)?e:void 0},fs=function(e,t){return arguments.length<2?VY(me[e]):me[e]&&me[e][t]},tc=fs("navigator","userAgent")||"",o_=me.process,a_=me.Deno,l_=o_&&o_.versions||a_&&a_.version,s_=l_&&l_.v8;s_&&(R0=(Ba=s_.split("."))[0]>0&&Ba[0]<4?1:+(Ba[0]+Ba[1])),!R0&&tc&&(!(Ba=tc.match(/Edge\/(\d+)/))||Ba[1]>=74)&&(Ba=tc.match(/Chrome\/(\d+)/))&&(R0=+Ba[1]);var xd=R0,xt=function(e){try{return!!e()}catch{return!0}},R2=!!Object.getOwnPropertySymbols&&!xt(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&xd&&xd<41}),M2=R2&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Dd=P2("wks"),ds=me.Symbol,u_=ds&&ds.for,UY=M2?ds:ds&&ds.withoutSetter||L2,Zt=function(e){if(!yn(Dd,e)||!R2&&typeof Dd[e]!="string"){var t="Symbol."+e;R2&&yn(ds,e)?Dd[e]=ds[e]:Dd[e]=M2&&u_?u_(t):UY(t)}return Dd[e]},c_={};c_[Zt("toStringTag")]="z";var j2=String(c_)==="[object z]",Gn=!xt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Mt=function(e){return typeof e=="object"?e!==null:kt(e)},z2=me.document,HY=Mt(z2)&&Mt(z2.createElement),Ad=function(e){return HY?z2.createElement(e):{}},f_=!Gn&&!xt(function(){return Object.defineProperty(Ad("div"),"a",{get:function(){return 7}}).a!=7}),WY=me.String,qY=me.TypeError,bn=function(e){if(Mt(e))return e;throw qY(WY(e)+" is not an object")},_d=Function.prototype.call,gt=_d.bind?_d.bind(_d):function(){return _d.apply(_d,arguments)},ps=Fe({}.isPrototypeOf),GY=me.Object,V2=M2?function(e){return typeof e=="symbol"}:function(e){var t=fs("Symbol");return kt(t)&&ps(t.prototype,GY(e))},KY=me.String,j0=function(e){try{return KY(e)}catch{return"Object"}},YY=me.TypeError,Pa=function(e){if(kt(e))return e;throw YY(j0(e)+" is not a function")},hs=function(e,t){var n=e[t];return n==null?void 0:Pa(n)},XY=me.TypeError,JY=me.TypeError,ZY=Zt("toPrimitive"),QY=function(e,t){if(!Mt(e)||V2(e))return e;var n,r=hs(e,ZY);if(r){if(t===void 0&&(t="default"),n=gt(r,e,t),!Mt(n)||V2(n))return n;throw JY("Can't convert object to primitive value")}return t===void 0&&(t="number"),function(i,o){var a,l;if(o==="string"&&kt(a=i.toString)&&!Mt(l=gt(a,i))||kt(a=i.valueOf)&&!Mt(l=gt(a,i))||o!=="string"&&kt(a=i.toString)&&!Mt(l=gt(a,i)))return l;throw XY("Can't convert object to primitive value")}(e,t)},U2=function(e){var t=QY(e,"string");return V2(t)?t:t+""},eX=me.TypeError,d_=Object.defineProperty,ji={f:Gn?d_:function(e,t,n){if(bn(e),t=U2(t),bn(n),f_)try{return d_(e,t,n)}catch{}if("get"in n||"set"in n)throw eX("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},z0=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},zi=Gn?function(e,t,n){return ji.f(e,t,z0(1,n))}:function(e,t,n){return e[t]=n,e},tX=Fe(Function.toString);kt(Ta.inspectSource)||(Ta.inspectSource=function(e){return tX(e)});var V0,kd,U0,H0=Ta.inspectSource,p_=me.WeakMap,h_=kt(p_)&&/native code/.test(H0(p_)),g_=P2("keys"),H2=function(e){return g_[e]||(g_[e]=L2(e))},W0={},W2=me.TypeError,nX=me.WeakMap;if(h_||Ta.state){var gs=Ta.state||(Ta.state=new nX),rX=Fe(gs.get),v_=Fe(gs.has),iX=Fe(gs.set);V0=function(e,t){if(v_(gs,e))throw new W2("Object already initialized");return t.facade=e,iX(gs,e,t),t},kd=function(e){return rX(gs,e)||{}},U0=function(e){return v_(gs,e)}}else{var nc=H2("state");W0[nc]=!0,V0=function(e,t){if(yn(e,nc))throw new W2("Object already initialized");return t.facade=e,zi(e,nc,t),t},kd=function(e){return yn(e,nc)?e[nc]:{}},U0=function(e){return yn(e,nc)}}var fr={set:V0,get:kd,has:U0,enforce:function(e){return U0(e)?kd(e):V0(e,{})},getterFor:function(e){return function(t){var n;if(!Mt(t)||(n=kd(t)).type!==e)throw W2("Incompatible receiver, "+e+" required");return n}}},m_=Function.prototype,oX=Gn&&Object.getOwnPropertyDescriptor,q2=yn(m_,"name"),rc={EXISTS:q2,PROPER:q2&&function(){}.name==="something",CONFIGURABLE:q2&&(!Gn||Gn&&oX(m_,"name").configurable)},Ar=Sd(function(e){var t=rc.CONFIGURABLE,n=fr.get,r=fr.enforce,i=String(String).split("String");(e.exports=function(o,a,l,u){var f,d=!!u&&!!u.unsafe,p=!!u&&!!u.enumerable,g=!!u&&!!u.noTargetGet,h=u&&u.name!==void 0?u.name:a;kt(l)&&(String(h).slice(0,7)==="Symbol("&&(h="["+String(h).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!yn(l,"name")||t&&l.name!==h)&&zi(l,"name",h),(f=r(l)).source||(f.source=i.join(typeof h=="string"?h:""))),o!==me?(d?!g&&o[a]&&(p=!0):delete o[a],p?o[a]=l:zi(o,a,l)):p?o[a]=l:F2(a,l)})(Function.prototype,"toString",function(){return kt(this)&&n(this).source||H0(this)})}),aX=Fe({}.toString),lX=Fe("".slice),Vi=function(e){return lX(aX(e),8,-1)},sX=Zt("toStringTag"),uX=me.Object,cX=Vi(function(){return arguments}())=="Arguments",q0=j2?Vi: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=uX(e),sX))=="string"?n:cX?Vi(t):(r=Vi(t))=="Object"&&kt(t.callee)?"Arguments":r},fX=j2?{}.toString:function(){return"[object "+q0(this)+"]"};j2||Ar(Object.prototype,"toString",fX,{unsafe:!0});var G0={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},G2=Ad("span").classList,y_=G2&&G2.constructor&&G2.constructor.prototype,b_=y_===Object.prototype?void 0:y_,w_=Fe(Fe.bind),vs=function(e,t){return Pa(e),t===void 0?e:w_?w_(e,t):function(){return e.apply(t,arguments)}},K2=me.Object,dX=Fe("".split),K0=xt(function(){return!K2("z").propertyIsEnumerable(0)})?function(e){return Vi(e)=="String"?dX(e,""):K2(e)}:K2,pX=Math.ceil,hX=Math.floor,Od=function(e){var t=+e;return t!=t||t===0?0:(t>0?hX:pX)(t)},gX=Math.min,ic=function(e){return e>0?gX(Od(e),9007199254740991):0},ms=function(e){return ic(e.length)},Y0=Array.isArray||function(e){return Vi(e)=="Array"},$_=function(){},vX=[],E_=fs("Reflect","construct"),Y2=/^\s*(?:class|function)\b/,mX=Fe(Y2.exec),yX=!Y2.exec($_),Bd=function(e){if(!kt(e))return!1;try{return E_($_,vX,e),!0}catch{return!1}},X0=!E_||xt(function(){var e;return Bd(Bd.call)||!Bd(Object)||!Bd(function(){e=!0})||e})?function(e){if(!kt(e))return!1;switch(q0(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return yX||!!mX(Y2,H0(e))}:Bd,bX=Zt("species"),C_=me.Array,S_=function(e,t){return new(function(n){var r;return Y0(n)&&(r=n.constructor,(X0(r)&&(r===C_||Y0(r.prototype))||Mt(r)&&(r=r[bX])===null)&&(r=void 0)),r===void 0?C_:r}(e))(t===0?0:t)},x_=Fe([].push),Ia=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,o=e==6,a=e==7,l=e==5||o;return function(u,f,d,p){for(var g,h,E=Fa(u),w=K0(E),y=vs(f,d),$=ms(w),m=0,S=p||S_,D=t?S(u,$):n||a?S(u,0):void 0;$>m;m++)if((l||m in w)&&(h=y(g=w[m],m,E),e))if(t)D[m]=h;else if(h)switch(e){case 3:return!0;case 5:return g;case 6:return m;case 2:x_(D,g)}else switch(e){case 4:return!1;case 7:x_(D,g)}return o?-1:r||i?i:D}},oc={forEach:Ia(0),map:Ia(1),filter:Ia(2),some:Ia(3),every:Ia(4),find:Ia(5),findIndex:Ia(6),filterReject:Ia(7)},D_=function(e,t){var n=[][e];return!!n&&xt(function(){n.call(null,t||function(){throw 1},1)})},wX=oc.forEach,X2=D_("forEach")?[].forEach:function(e){return wX(this,e,arguments.length>1?arguments[1]:void 0)},A_=function(e){if(e&&e.forEach!==X2)try{zi(e,"forEach",X2)}catch{e.forEach=X2}};for(var J2 in G0)G0[J2]&&A_(me[J2]&&me[J2].prototype);A_(b_);var __={}.propertyIsEnumerable,k_=Object.getOwnPropertyDescriptor,$X=k_&&!__.call({1:2},1)?function(e){var t=k_(this,e);return!!t&&t.enumerable}:__,O_={f:$X},Na=function(e){return K0(ci(e))},B_=Object.getOwnPropertyDescriptor,Td={f:Gn?B_:function(e,t){if(e=Na(e),t=U2(t),f_)try{return B_(e,t)}catch{}if(yn(e,t))return z0(!gt(O_.f,e,t),e[t])}},EX=Math.max,CX=Math.min,ac=function(e,t){var n=Od(e);return n<0?EX(n+t,0):CX(n,t)},T_=function(e){return function(t,n,r){var i,o=Na(t),a=ms(o),l=ac(r,a);if(e&&n!=n){for(;a>l;)if((i=o[l++])!=i)return!0}else for(;a>l;l++)if((e||l in o)&&o[l]===n)return e||l||0;return!e&&-1}},F_={includes:T_(!0),indexOf:T_(!1)},SX=F_.indexOf,P_=Fe([].push),I_=function(e,t){var n,r=Na(e),i=0,o=[];for(n in r)!yn(W0,n)&&yn(r,n)&&P_(o,n);for(;t.length>i;)yn(r,n=t[i++])&&(~SX(o,n)||P_(o,n));return o},J0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],xX=J0.concat("length","prototype"),Fd={f:Object.getOwnPropertyNames||function(e){return I_(e,xX)}},N_={f:Object.getOwnPropertySymbols},DX=Fe([].concat),AX=fs("Reflect","ownKeys")||function(e){var t=Fd.f(bn(e)),n=N_.f;return n?DX(t,n(e)):t},_X=function(e,t){for(var n=AX(t),r=ji.f,i=Td.f,o=0;o<n.length;o++){var a=n[o];yn(e,a)||r(e,a,i(t,a))}},kX=/#|\.prototype\./,Pd=function(e,t){var n=BX[OX(e)];return n==FX||n!=TX&&(kt(t)?xt(t):!!t)},OX=Pd.normalize=function(e){return String(e).replace(kX,".").toLowerCase()},BX=Pd.data={},TX=Pd.NATIVE="N",FX=Pd.POLYFILL="P",Id=Pd,PX=Td.f,Qt=function(e,t){var n,r,i,o,a,l=e.target,u=e.global,f=e.stat;if(n=u?me:f?me[l]||F2(l,{}):(me[l]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=PX(n,r))&&a.value:n[r],!Id(u?r:l+(f?".":"#")+r,e.forced)&&i!==void 0){if(typeof o==typeof i)continue;_X(o,i)}(e.sham||i&&i.sham)&&zi(o,"sham",!0),Ar(n,r,o,e)}},lc=Object.keys||function(e){return I_(e,J0)},IX=xt(function(){lc(1)});/*!
25
25
  * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
26
26
  *
27
27
  * Copyright (c) 2014-2017, Jon Schlinkert.
@@ -62,7 +62,7 @@ Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#
62
62
  spellCheck="true"
63
63
  autoCorrect="true"
64
64
  autoCapitalize="true"
65
- ></div>`)}(i);r.append(p),e.$textArea=p,n=p[0],(h=pq([yq,Cq,kq,bq,Eq,mq]))(n,u),_k.set(e,!1),kk.set(e,h)}else{var g=Ok.get(e),h=kk.get(e);if(g==null||h==null)return;n=g.elm,h(g,u)}if(n!=null||(n=Zw(i))!=null){if((d?l:t.isFocused())&&n.focus({preventScroll:!0}),d){var E=Jw(n);E&&Bk.set(t,E)}Gw.set(t,n),bv.set(t,n),yv.set(n,t),Ok.set(e,u)}}function q7(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function G7(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function j4(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return G7(n.overflowY,t)||G7(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 kv(e,t,n,r,i,o,a,l){return o<e&&a>t||o>e&&a<t?0:o<=e&&l<=n||a>=t&&l>=n?o-e-r:a>t&&l<n||o<e&&l>n?a-t+i:0}function K7(e,t){var n=window,r=t.scrollMode,i=t.block,o=t.inline,a=t.boundary,l=t.skipOverflowHiddenElements,u=typeof a=="function"?a:function(he){return he!==a};if(!q7(e))throw new TypeError("Invalid target");for(var f=document.scrollingElement||document.documentElement,d=[],p=e;q7(p)&&u(p);){if((p=p.parentElement)===f){d.push(p);break}p!=null&&p===document.body&&j4(p)&&!j4(document.documentElement)||p!=null&&j4(p,l)&&d.push(p)}for(var g=n.visualViewport?n.visualViewport.width:innerWidth,h=n.visualViewport?n.visualViewport.height:innerHeight,E=window.scrollX||pageXOffset,w=window.scrollY||pageYOffset,y=e.getBoundingClientRect(),$=y.height,m=y.width,S=y.top,D=y.right,A=y.bottom,B=y.left,P=i==="start"||i==="nearest"?S:i==="end"?A:S+$/2,U=o==="center"?B+m/2:o==="end"?D:B,Y=[],ce=0;ce<d.length;ce++){var ee=d[ce],ge=ee.getBoundingClientRect(),se=ge.height,xe=ge.width,ve=ge.top,Oe=ge.right,Te=ge.bottom,Ne=ge.left;if(r==="if-needed"&&S>=0&&B>=0&&A<=h&&D<=g&&S>=ve&&A<=Te&&B>=Ne&&D<=Oe)return Y;var Re=getComputedStyle(ee),Ae=parseInt(Re.borderLeftWidth,10),ae=parseInt(Re.borderTopWidth,10),M=parseInt(Re.borderRightWidth,10),R=parseInt(Re.borderBottomWidth,10),T=0,L=0,q="offsetWidth"in ee?ee.offsetWidth-ee.clientWidth-Ae-M:0,O="offsetHeight"in ee?ee.offsetHeight-ee.clientHeight-ae-R:0;if(f===ee)T=i==="start"?P:i==="end"?P-h:i==="nearest"?kv(w,w+h,h,ae,R,w+P,w+P+$,$):P-h/2,L=o==="start"?U:o==="center"?U-g/2:o==="end"?U-g:kv(E,E+g,g,Ae,M,E+U,E+U+m,m),T=Math.max(0,T+w),L=Math.max(0,L+E);else{T=i==="start"?P-ve-ae:i==="end"?P-Te+R+O:i==="nearest"?kv(ve,Te,se,ae,R+O,P,P+$,$):P-(ve+se/2)+O/2,L=o==="start"?U-Ne-Ae:o==="center"?U-(Ne+xe/2)+q/2:o==="end"?U-Oe+M+q:kv(Ne,Oe,xe,Ae,M+q,U,U+m,m);var J=ee.scrollLeft,ue=ee.scrollTop;P+=ue-(T=Math.max(0,Math.min(ue+T,ee.scrollHeight-se+O))),U+=J-(L=Math.max(0,Math.min(J+L,ee.scrollWidth-xe+q)))}Y.push({el:ee,top:T,left:L})}return Y}function Y7(e){return e===Object(e)&&Object.keys(e).length!==0}function eee(e,t){var n=!e.ownerDocument.documentElement.contains(e);if(Y7(t)&&typeof t.behavior=="function")return t.behavior(n?[]:K7(e,t));if(!n){var r=function(i){return i===!1?{block:"end",inline:"nearest"}:Y7(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(l){var u=l.el,f=l.top,d=l.left;u.scroll&&a?u.scroll({top:f,left:d,behavior:o}):(u.scrollTop=f,u.scrollLeft=d)})}(K7(e,r),r.behavior)}}function hi(e,t){return $s(t)&&j.hasDOMNode(e,t,{editable:!0})}function X7(e,t){if(e.getConfig().readOnly)return!1;var n=Cc(e,t)&&j.toSlateNode(e,t);return k.isVoid(e,n)}function Cc(e,t){return $s(t)&&j.hasDOMNode(e,t)}function J7(e,t,n){n===void 0&&(n=!1);var r=t.selection,i=t.getConfig(),o=j.findDocumentOrShadowRoot(t).getSelection();if(o&&(!e.isComposing||n)&&t.isFocused()){var a=o.type!=="None";if(r||a){var l=Gw.get(t),u=!1;if(l.contains(o.anchorNode)&&l.contains(o.focusNode)&&(u=!0),a&&u&&r){var f=j.toSlateRange(t,o,{exactMatch:!0,suppressThrow:!0});if(f&&re.equals(f,r)){var d=!0;if(re.isCollapsed(r)){var p=o.anchorNode,g=o.anchorOffset;if(p===l){var h=l.childNodes,E=void 0;(E=h[g])&&E.matches("table")&&(d=!1),(E=h[g-1])&&E.matches("table")&&(d=!1)}}if(d)return}}if(!r||j.hasRange(t,r)){e.isUpdatingSelection=!0;var w=r&&j.toDOMRange(t,r);if(w){re.isBackward(r)?o.setBaseAndExtent(w.endContainer,w.endOffset,w.startContainer,w.startOffset):o.setBaseAndExtent(w.startContainer,w.startOffset,w.endContainer,w.endOffset);var y=w.startContainer.parentElement;if(!y.closest("[data-slate-spacer]")){y.getBoundingClientRect=w.getBoundingClientRect.bind(w);var $=document.body;eee(y,{scrollMode:"if-needed",boundary:i.scroll?l.parentElement:$,block:"end",behavior:"smooth"}),delete y.getBoundingClientRect}}else o.removeAllRanges();setTimeout(function(){w&&qd&&l.focus(),e.isUpdatingSelection=!1})}else t.selection=j.toSlateRange(t,o,{exactMatch:!1,suppressThrow:!1})}}}var z4=new WeakMap,Z7=new WeakMap,tee={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"},nee={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"},ree={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},qt=function(e){var t=tee[e],n=nee[e],r=ree[e],i=t&&d2(t),o=n&&d2(n),a=r&&d2(r);return function(l){return!(!i||!i(l))||!!(Qw&&o&&o(l))||!(Qw||!a||!a(l))}},en={isBold:qt("bold"),isCompose:qt("compose"),isMoveBackward:qt("moveBackward"),isMoveForward:qt("moveForward"),isDeleteBackward:qt("deleteBackward"),isDeleteForward:qt("deleteForward"),isDeleteLineBackward:qt("deleteLineBackward"),isDeleteLineForward:qt("deleteLineForward"),isDeleteWordBackward:qt("deleteWordBackward"),isDeleteWordForward:qt("deleteWordForward"),isExtendBackward:qt("extendBackward"),isExtendForward:qt("extendForward"),isExtendLineBackward:qt("extendLineBackward"),isExtendLineForward:qt("extendLineForward"),isItalic:qt("italic"),isMoveLineBackward:qt("moveLineBackward"),isMoveLineForward:qt("moveLineForward"),isMoveWordBackward:qt("moveWordBackward"),isMoveWordForward:qt("moveWordForward"),isRedo:qt("redo"),isSplitBlock:qt("splitBlock"),isTransposeCharacter:qt("transposeCharacter"),isUndo:qt("undo"),isTab:qt("tab"),isSelectAll:qt("selectAll")};function _n(e){e.preventDefault()}var iee={beforeinput:function(e,t,n){var r=e,i=n.getConfig().readOnly;if(Kd&&!i&&hi(n,r.target)){var o=n.selection,a=r.inputType,l=r.dataTransfer||r.data||void 0;if(a!=="insertCompositionText"&&a!=="deleteCompositionText"){if(r.preventDefault(),!a.startsWith("delete")||a.startsWith("deleteBy")){var u=vt(r.getTargetRanges(),1)[0];if(u){var f=j.toSlateRange(n,u,{exactMatch:!1,suppressThrow:!1});o&&re.equals(o,f)||Z.select(n,f)}}if(o&&re.isExpanded(o)&&a.startsWith("delete")){var d=a.endsWith("Backward")?"backward":"forward";k.deleteFragment(n,{direction:d})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":k.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":k.deleteForward(n);break;case"deleteContentBackward":k.deleteBackward(n);break;case"deleteEntireSoftLine":k.deleteBackward(n,{unit:"line"}),k.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":k.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":k.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":k.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":k.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":k.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":k.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":k.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if(a==="insertFromPaste"&&!Xw.get(n))break;l instanceof DataTransfer?n.insertData(l):typeof l=="string"&&k.insertText(n,l)}}}},blur:function(e,t,n){var r=e,i=t.isUpdatingSelection,o=t.latestElement;if(!n.getConfig().readOnly&&!i&&hi(n,r.target)){var a=j.findDocumentOrShadowRoot(n);if(o!==a.activeElement){var l=r.relatedTarget;if(!(l===j.toDOMNode(n,n)||Ui(l)&&l.hasAttribute("data-slate-spacer"))){if(l!=null&&$s(l)&&j.hasDOMNode(n,l)){var u=j.toSlateNode(n,l);if(ke.isElement(u)&&!n.isVoid(u))return}if(Gd){var f=a.getSelection();f==null||f.removeAllRanges()}ws.delete(n)}}}},focus:function(e,t,n){var r=j.toDOMNode(n,n),i=j.findDocumentOrShadowRoot(n);t.latestElement=i.activeElement,qd&&e.target!==r?r.focus():ws.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&Cc(n,e.target)&&$s(e.target)){var r=j.toSlateNode(n,e.target),i=j.findPath(n,r);if(k.hasPath(n,i)&&be.get(n,i)===r){var o=k.start(n,i),a=k.end(n,i),l=k.void(n,{at:o}),u=k.void(n,{at:a});if(l&&u&&G.equals(l[1],u[1])){var f=k.range(n,o);Z.select(n,f)}}}},compositionstart:function(e,t,n){if(hi(n,e.target)){var r=n.selection;if(r&&re.isExpanded(r)&&(k.deleteFragment(n),Promise.resolve().then(function(){J7(t,n,!0)})),r&&re.isCollapsed(r)){var i=j.toDOMRange(n,r).startContainer,o=i.textContent||"";z4.set(n,o),Z7.set(n,i)}t.isComposing=!0,function(a,l){var u;l.getConfig().placeholder&&l.isEmpty()&&a.showPlaceholder&&((u=a.$placeholder)===null||u===void 0||u.hide(),a.showPlaceholder=!1)}(t,n)}},compositionend:function(e,t,n){var r=e;if(hi(n,r.target)){t.isComposing=!1;var i=n.selection;if(i!=null){(e4||qd)&&j.cleanExposedTexNodeInSelectionBlock(n);for(var o=re.isBackward(i)?i.focus:i.anchor,a=vt(k.node(n,[o.path[0]]),1)[0],l=0;l<o.path.length;l++){var u=vt(k.node(n,o.path.slice(0,l+1)),1)[0];if(ke.isElement(u)&&((Gd||qd)&&u.type==="link"||u.type==="code")){j.setNewKey(a);break}}var f=r.data;if(f){if(n.getConfig().maxLength){var d=j.getLeftLengthOfMaxLength(n);d<f.length?(j.toDOMRange(n,i).startContainer.textContent=z4.get(n)||"",d>0&&k.insertText(n,f.slice(0,d)),t.changeViewState()):k.insertText(n,f)}else k.insertText(n,f);Gd||setTimeout(function(){var p=n.selection;if(p!=null){var g=Z7.get(n);g!=null&&j.toDOMRange(n,p).startContainer!==g&&(g.textContent=z4.get(n)||"")}})}}}},compositionupdate:function(e,t,n){hi(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,i=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&hi(n,r.target)){if(function(a,l){var u=gv.get(a),f=u&&u.getMenus(),d=vv.get(a),p=d&&d.getMenus(),g=fi(fi({},f),p);for(var h in g){var E=g[h],w=E.hotkey;if(w&&OG(w,l)&&!E.isDisabled(a)){var y=E.getValue(a);E.exec(a,y)}}}(n,r),en.isTab(r))return _n(r),void n.handleTab();if(en.isRedo(r))return _n(r),void(typeof n.redo=="function"&&n.redo());if(en.isUndo(r))return _n(r),void(typeof n.undo=="function"&&n.undo());if(en.isMoveLineBackward(r))return _n(r),void Z.move(n,{unit:"line",reverse:!0});if(en.isMoveLineForward(r))return _n(r),void Z.move(n,{unit:"line"});if(en.isExtendLineBackward(r))return _n(r),void Z.move(n,{unit:"line",edge:"focus",reverse:!0});if(en.isExtendLineForward(r))return _n(r),void Z.move(n,{unit:"line",edge:"focus"});if(en.isMoveBackward(r))return _n(r),void(i&&re.isCollapsed(i)?Z.move(n,{reverse:!0}):Z.collapse(n,{edge:"start"}));if(en.isMoveForward(r))return _n(r),void(i&&re.isCollapsed(i)?Z.move(n):Z.collapse(n,{edge:"end"}));if(en.isMoveWordBackward(r))return _n(r),i&&re.isExpanded(i)&&Z.collapse(n,{edge:"focus"}),void Z.move(n,{unit:"word",reverse:!0});if(en.isMoveWordForward(r))return _n(r),i&&re.isExpanded(i)&&Z.collapse(n,{edge:"focus"}),void Z.move(n,{unit:"word"});if(en.isSelectAll(r))return _n(r),void n.selectAll();if(Kd){if((e4||Gd)&&i&&(en.isDeleteBackward(r)||en.isDeleteForward(r))&&re.isCollapsed(i)){var o=be.parent(n,i.anchor.path);if(ke.isElement(o)&&k.isVoid(n,o)&&k.isInline(n,o))return r.preventDefault(),void Z.delete(n,{unit:"block"})}}else{if(en.isBold(r)||en.isItalic(r)||en.isTransposeCharacter(r))return void _n(r);if(en.isSplitBlock(r))return _n(r),void k.insertBreak(n);if(en.isDeleteBackward(r))return _n(r),void(i&&re.isExpanded(i)?k.deleteFragment(n,{direction:"backward"}):k.deleteBackward(n));if(en.isDeleteForward(r))return _n(r),void(i&&re.isExpanded(i)?k.deleteFragment(n,{direction:"forward"}):k.deleteForward(n));if(en.isDeleteLineBackward(r))return _n(r),void(i&&re.isExpanded(i)?k.deleteFragment(n,{direction:"backward"}):k.deleteBackward(n,{unit:"line"}));if(en.isDeleteLineForward(r))return _n(r),void(i&&re.isExpanded(i)?k.deleteFragment(n,{direction:"forward"}):k.deleteForward(n,{unit:"line"}));if(en.isDeleteWordBackward(r))return _n(r),void(i&&re.isExpanded(i)?k.deleteFragment(n,{direction:"backward"}):k.deleteBackward(n,{unit:"word"}));if(en.isDeleteWordForward(r))return _n(r),void(i&&re.isExpanded(i)?k.deleteFragment(n,{direction:"forward"}):k.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!Kd&&!n.getConfig().readOnly&&hi(n,e.target)){e.preventDefault();var r=e.key;k.insertText(n,r)}},copy:function(e,t,n){var r=e;if(hi(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&&hi(n,r.target)){r.preventDefault();var o=r.clipboardData;if(o!=null&&(n.setFragmentData(o),i))if(re.isExpanded(i))k.deleteFragment(n);else{var a=be.parent(n,i.anchor.path);k.isVoid(n,a)&&Z.delete(n)}}},paste:function(e,t,n){Xw.set(n,!0);var r=e;if(!n.getConfig().readOnly&&hi(n,r.target)){var i=n.getConfig().customPaste;if(i&&i(n,r)===!1)return void Xw.set(n,!1);if(!Kd||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(Cc(n,e.target)){var r=j.toSlateNode(n,e.target);k.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(Cc(n,r.target)&&!n.getConfig().readOnly){var i=j.toSlateNode(n,r.target),o=j.findPath(n,i);if(k.isVoid(n,i)||k.void(n,{at:o,voids:!0})){var a=k.range(n,o);Z.select(n,a)}var l=r.dataTransfer;l!=null&&(t.isDraggingInternally=!0,n.setFragmentData(l))}},dragend:function(e,t,n){var r=e;n.getConfig().readOnly||t.isDraggingInternally&&Cc(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,i=r.dataTransfer;if(!n.getConfig().readOnly&&Cc(n,r.target)&&i!=null&&!(Kd&&Gd&&i.files.length>0)){r.preventDefault();var o=n.selection,a=j.findEventRange(n,r);Z.select(n,a),t.isDraggingInternally&&(o&&Z.delete(n,{at:o}),t.isDraggingInternally=!1),n.insertData(i),n.isFocused()||n.focus()}}},oee=1,aee=function(){function e(t){var n=this;this.id=oee++,this.$textArea=null,this.$progressBar=V('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=V('<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=is(function(){var a=n.editorInstance;(function(l,u){var f=l.isComposing,d=l.isUpdatingSelection,p=l.isDraggingInternally;if(!(u.getConfig().readOnly||f||d||p)){var g=j.findDocumentOrShadowRoot(u),h=g.activeElement,E=j.toDOMNode(u,u),w=g.getSelection();if(h===E?(l.latestElement=h,ws.set(u,!0)):ws.delete(u),!w)return Z.deselect(u);var y=w.anchorNode,$=w.focusNode,m=hi(u,y)||X7(u,y),S=hi(u,$)||X7(u,$);if(m&&S){var D=j.toSlateRange(u,w,{exactMatch:!1,suppressThrow:!1});Z.select(u,D)}else Z.deselect(u)}})(n,a)},100);var r=V(t);if(r.length===0)throw new Error("Cannot find textarea DOM by selector '"+t+"'");this.$box=r;var i=V('<div class="w-e-text-container"></div>');i.append(this.$progressBar),i.append(this.$maxLengthInfo),r.append(i);var o=V('<div class="w-e-scroll"></div>');i.append(o),this.$scroll=o,this.$textAreaContainer=i,pi(function(){var a=n.editorInstance,l=j.getWindow(a);l.document.addEventListener("selectionchange",n.onDOMSelectionChange),a.on("destroyed",function(){l.document.removeEventListener("selectionchange",n.onDOMSelectionChange)}),i.on("click",function(){return a.hidePanelOrModal()}),a.on("change",n.changeViewState.bind(n));var u=a.getConfig().onChange;u&&a.on("change",function(){return u(a)}),n.onFocusAndOnBlur(),a.on("change",n.changeMaxLengthInfo.bind(n)),n.bindEvent()})}return Object.defineProperty(e.prototype,"editorInstance",{get:function(){var t=Vw.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&&(e2(iee,function(o,a){n.on(a,function(l){o(l,t,i)})}),i.getConfig().scroll&&(r.css("overflow-y","auto"),r.on("scroll",is(function(){i.emit("scroll")},100))))},e.prototype.onFocusAndOnBlur=function(){var t=this,n=this.editorInstance,r=n.getConfig(),i=r.onBlur,o=r.onFocus;this.latestEditorSelection=n.selection,n.on("change",function(){t.latestEditorSelection==null&&n.selection!=null?setTimeout(function(){return o&&o(n)}):t.latestEditorSelection!=null&&n.selection==null&&setTimeout(function(){return i&&i(n)}),t.latestEditorSelection=n.selection})},e.prototype.changeMaxLengthInfo=function(){var t=this.editorInstance,n=t.getConfig().maxLength;if(n){var r=n-j.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;QQ(this,n),function(r,i){var o,a=i.getConfig().placeholder;if(a){var l=i.isEmpty();if(l&&!r.showPlaceholder&&!r.isComposing){if(r.$placeholder==null){var u=V('<div class="w-e-text-placeholder">'+a+"</div>");r.$textAreaContainer.append(u),r.$placeholder=u}return r.$placeholder.show(),void(r.showPlaceholder=!0)}!l&&r.showPlaceholder&&((o=r.$placeholder)===null||o===void 0||o.hide(),r.showPlaceholder=!1)}}(this,n),pi(function(){J7(t,n)})},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();_w("match",function(e,t,n){return[function(r){var i=ci(this),o=r==null?void 0:hs(r,e);return o?gt(o,r,i):new RegExp(r)[e](Lt(i))},function(r){var i=bn(this),o=Lt(r),a=n(t,i,o);if(a.done)return a.value;if(!i.global)return jd(i,o);var l=i.unicode;i.lastIndex=0;for(var u,f=[],d=0;(u=jd(i,o))!==null;){var p=Lt(u[0]);f[d]=p,p===""&&(i.lastIndex=kw(o,ic(i.lastIndex),l)),d++}return d===0?null:f}]});function V4(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&&V4(t)}function U4(){return V('<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 Q7(){return V('<div class="w-e-bar-divider"></div>')}function eO(e,t,n,r,i){if(i===void 0&&(i=!1),t){if(r){var o=Qw?"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+`
65
+ ></div>`)}(i);r.append(p),e.$textArea=p,n=p[0],(h=pq([yq,Cq,kq,bq,Eq,mq]))(n,u),_k.set(e,!1),kk.set(e,h)}else{var g=Ok.get(e),h=kk.get(e);if(g==null||h==null)return;n=g.elm,h(g,u)}if(n!=null||(n=Zw(i))!=null){if((d?l:t.isFocused())&&n.focus({preventScroll:!0}),d){var E=Jw(n);E&&Bk.set(t,E)}Gw.set(t,n),bv.set(t,n),yv.set(n,t),Ok.set(e,u)}}function q7(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function G7(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function j4(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return G7(n.overflowY,t)||G7(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 kv(e,t,n,r,i,o,a,l){return o<e&&a>t||o>e&&a<t?0:o<=e&&l<=n||a>=t&&l>=n?o-e-r:a>t&&l<n||o<e&&l>n?a-t+i:0}function K7(e,t){var n=window,r=t.scrollMode,i=t.block,o=t.inline,a=t.boundary,l=t.skipOverflowHiddenElements,u=typeof a=="function"?a:function(he){return he!==a};if(!q7(e))throw new TypeError("Invalid target");for(var f=document.scrollingElement||document.documentElement,d=[],p=e;q7(p)&&u(p);){if((p=p.parentElement)===f){d.push(p);break}p!=null&&p===document.body&&j4(p)&&!j4(document.documentElement)||p!=null&&j4(p,l)&&d.push(p)}for(var g=n.visualViewport?n.visualViewport.width:innerWidth,h=n.visualViewport?n.visualViewport.height:innerHeight,E=window.scrollX||pageXOffset,w=window.scrollY||pageYOffset,y=e.getBoundingClientRect(),$=y.height,m=y.width,S=y.top,D=y.right,A=y.bottom,B=y.left,P=i==="start"||i==="nearest"?S:i==="end"?A:S+$/2,U=o==="center"?B+m/2:o==="end"?D:B,Y=[],ce=0;ce<d.length;ce++){var ee=d[ce],ge=ee.getBoundingClientRect(),se=ge.height,xe=ge.width,ve=ge.top,Oe=ge.right,Te=ge.bottom,Ne=ge.left;if(r==="if-needed"&&S>=0&&B>=0&&A<=h&&D<=g&&S>=ve&&A<=Te&&B>=Ne&&D<=Oe)return Y;var Re=getComputedStyle(ee),Ae=parseInt(Re.borderLeftWidth,10),ie=parseInt(Re.borderTopWidth,10),R=parseInt(Re.borderRightWidth,10),M=parseInt(Re.borderBottomWidth,10),T=0,L=0,q="offsetWidth"in ee?ee.offsetWidth-ee.clientWidth-Ae-R:0,O="offsetHeight"in ee?ee.offsetHeight-ee.clientHeight-ie-M:0;if(f===ee)T=i==="start"?P:i==="end"?P-h:i==="nearest"?kv(w,w+h,h,ie,M,w+P,w+P+$,$):P-h/2,L=o==="start"?U:o==="center"?U-g/2:o==="end"?U-g:kv(E,E+g,g,Ae,R,E+U,E+U+m,m),T=Math.max(0,T+w),L=Math.max(0,L+E);else{T=i==="start"?P-ve-ie:i==="end"?P-Te+M+O:i==="nearest"?kv(ve,Te,se,ie,M+O,P,P+$,$):P-(ve+se/2)+O/2,L=o==="start"?U-Ne-Ae:o==="center"?U-(Ne+xe/2)+q/2:o==="end"?U-Oe+R+q:kv(Ne,Oe,xe,Ae,R+q,U,U+m,m);var J=ee.scrollLeft,ue=ee.scrollTop;P+=ue-(T=Math.max(0,Math.min(ue+T,ee.scrollHeight-se+O))),U+=J-(L=Math.max(0,Math.min(J+L,ee.scrollWidth-xe+q)))}Y.push({el:ee,top:T,left:L})}return Y}function Y7(e){return e===Object(e)&&Object.keys(e).length!==0}function eee(e,t){var n=!e.ownerDocument.documentElement.contains(e);if(Y7(t)&&typeof t.behavior=="function")return t.behavior(n?[]:K7(e,t));if(!n){var r=function(i){return i===!1?{block:"end",inline:"nearest"}:Y7(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(l){var u=l.el,f=l.top,d=l.left;u.scroll&&a?u.scroll({top:f,left:d,behavior:o}):(u.scrollTop=f,u.scrollLeft=d)})}(K7(e,r),r.behavior)}}function hi(e,t){return $s(t)&&j.hasDOMNode(e,t,{editable:!0})}function X7(e,t){if(e.getConfig().readOnly)return!1;var n=Cc(e,t)&&j.toSlateNode(e,t);return k.isVoid(e,n)}function Cc(e,t){return $s(t)&&j.hasDOMNode(e,t)}function J7(e,t,n){n===void 0&&(n=!1);var r=t.selection,i=t.getConfig(),o=j.findDocumentOrShadowRoot(t).getSelection();if(o&&(!e.isComposing||n)&&t.isFocused()){var a=o.type!=="None";if(r||a){var l=Gw.get(t),u=!1;if(l.contains(o.anchorNode)&&l.contains(o.focusNode)&&(u=!0),a&&u&&r){var f=j.toSlateRange(t,o,{exactMatch:!0,suppressThrow:!0});if(f&&re.equals(f,r)){var d=!0;if(re.isCollapsed(r)){var p=o.anchorNode,g=o.anchorOffset;if(p===l){var h=l.childNodes,E=void 0;(E=h[g])&&E.matches("table")&&(d=!1),(E=h[g-1])&&E.matches("table")&&(d=!1)}}if(d)return}}if(!r||j.hasRange(t,r)){e.isUpdatingSelection=!0;var w=r&&j.toDOMRange(t,r);if(w){re.isBackward(r)?o.setBaseAndExtent(w.endContainer,w.endOffset,w.startContainer,w.startOffset):o.setBaseAndExtent(w.startContainer,w.startOffset,w.endContainer,w.endOffset);var y=w.startContainer.parentElement;if(!y.closest("[data-slate-spacer]")){y.getBoundingClientRect=w.getBoundingClientRect.bind(w);var $=document.body;eee(y,{scrollMode:"if-needed",boundary:i.scroll?l.parentElement:$,block:"end",behavior:"smooth"}),delete y.getBoundingClientRect}}else o.removeAllRanges();setTimeout(function(){w&&qd&&l.focus(),e.isUpdatingSelection=!1})}else t.selection=j.toSlateRange(t,o,{exactMatch:!1,suppressThrow:!1})}}}var z4=new WeakMap,Z7=new WeakMap,tee={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"},nee={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"},ree={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},qt=function(e){var t=tee[e],n=nee[e],r=ree[e],i=t&&d2(t),o=n&&d2(n),a=r&&d2(r);return function(l){return!(!i||!i(l))||!!(Qw&&o&&o(l))||!(Qw||!a||!a(l))}},en={isBold:qt("bold"),isCompose:qt("compose"),isMoveBackward:qt("moveBackward"),isMoveForward:qt("moveForward"),isDeleteBackward:qt("deleteBackward"),isDeleteForward:qt("deleteForward"),isDeleteLineBackward:qt("deleteLineBackward"),isDeleteLineForward:qt("deleteLineForward"),isDeleteWordBackward:qt("deleteWordBackward"),isDeleteWordForward:qt("deleteWordForward"),isExtendBackward:qt("extendBackward"),isExtendForward:qt("extendForward"),isExtendLineBackward:qt("extendLineBackward"),isExtendLineForward:qt("extendLineForward"),isItalic:qt("italic"),isMoveLineBackward:qt("moveLineBackward"),isMoveLineForward:qt("moveLineForward"),isMoveWordBackward:qt("moveWordBackward"),isMoveWordForward:qt("moveWordForward"),isRedo:qt("redo"),isSplitBlock:qt("splitBlock"),isTransposeCharacter:qt("transposeCharacter"),isUndo:qt("undo"),isTab:qt("tab"),isSelectAll:qt("selectAll")};function _n(e){e.preventDefault()}var iee={beforeinput:function(e,t,n){var r=e,i=n.getConfig().readOnly;if(Kd&&!i&&hi(n,r.target)){var o=n.selection,a=r.inputType,l=r.dataTransfer||r.data||void 0;if(a!=="insertCompositionText"&&a!=="deleteCompositionText"){if(r.preventDefault(),!a.startsWith("delete")||a.startsWith("deleteBy")){var u=vt(r.getTargetRanges(),1)[0];if(u){var f=j.toSlateRange(n,u,{exactMatch:!1,suppressThrow:!1});o&&re.equals(o,f)||Z.select(n,f)}}if(o&&re.isExpanded(o)&&a.startsWith("delete")){var d=a.endsWith("Backward")?"backward":"forward";k.deleteFragment(n,{direction:d})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":k.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":k.deleteForward(n);break;case"deleteContentBackward":k.deleteBackward(n);break;case"deleteEntireSoftLine":k.deleteBackward(n,{unit:"line"}),k.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":k.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":k.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":k.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":k.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":k.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":k.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":k.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if(a==="insertFromPaste"&&!Xw.get(n))break;l instanceof DataTransfer?n.insertData(l):typeof l=="string"&&k.insertText(n,l)}}}},blur:function(e,t,n){var r=e,i=t.isUpdatingSelection,o=t.latestElement;if(!n.getConfig().readOnly&&!i&&hi(n,r.target)){var a=j.findDocumentOrShadowRoot(n);if(o!==a.activeElement){var l=r.relatedTarget;if(!(l===j.toDOMNode(n,n)||Ui(l)&&l.hasAttribute("data-slate-spacer"))){if(l!=null&&$s(l)&&j.hasDOMNode(n,l)){var u=j.toSlateNode(n,l);if(ke.isElement(u)&&!n.isVoid(u))return}if(Gd){var f=a.getSelection();f==null||f.removeAllRanges()}ws.delete(n)}}}},focus:function(e,t,n){var r=j.toDOMNode(n,n),i=j.findDocumentOrShadowRoot(n);t.latestElement=i.activeElement,qd&&e.target!==r?r.focus():ws.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&Cc(n,e.target)&&$s(e.target)){var r=j.toSlateNode(n,e.target),i=j.findPath(n,r);if(k.hasPath(n,i)&&be.get(n,i)===r){var o=k.start(n,i),a=k.end(n,i),l=k.void(n,{at:o}),u=k.void(n,{at:a});if(l&&u&&G.equals(l[1],u[1])){var f=k.range(n,o);Z.select(n,f)}}}},compositionstart:function(e,t,n){if(hi(n,e.target)){var r=n.selection;if(r&&re.isExpanded(r)&&(k.deleteFragment(n),Promise.resolve().then(function(){J7(t,n,!0)})),r&&re.isCollapsed(r)){var i=j.toDOMRange(n,r).startContainer,o=i.textContent||"";z4.set(n,o),Z7.set(n,i)}t.isComposing=!0,function(a,l){var u;l.getConfig().placeholder&&l.isEmpty()&&a.showPlaceholder&&((u=a.$placeholder)===null||u===void 0||u.hide(),a.showPlaceholder=!1)}(t,n)}},compositionend:function(e,t,n){var r=e;if(hi(n,r.target)){t.isComposing=!1;var i=n.selection;if(i!=null){(e4||qd)&&j.cleanExposedTexNodeInSelectionBlock(n);for(var o=re.isBackward(i)?i.focus:i.anchor,a=vt(k.node(n,[o.path[0]]),1)[0],l=0;l<o.path.length;l++){var u=vt(k.node(n,o.path.slice(0,l+1)),1)[0];if(ke.isElement(u)&&((Gd||qd)&&u.type==="link"||u.type==="code")){j.setNewKey(a);break}}var f=r.data;if(f){if(n.getConfig().maxLength){var d=j.getLeftLengthOfMaxLength(n);d<f.length?(j.toDOMRange(n,i).startContainer.textContent=z4.get(n)||"",d>0&&k.insertText(n,f.slice(0,d)),t.changeViewState()):k.insertText(n,f)}else k.insertText(n,f);Gd||setTimeout(function(){var p=n.selection;if(p!=null){var g=Z7.get(n);g!=null&&j.toDOMRange(n,p).startContainer!==g&&(g.textContent=z4.get(n)||"")}})}}}},compositionupdate:function(e,t,n){hi(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,i=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&hi(n,r.target)){if(function(a,l){var u=gv.get(a),f=u&&u.getMenus(),d=vv.get(a),p=d&&d.getMenus(),g=fi(fi({},f),p);for(var h in g){var E=g[h],w=E.hotkey;if(w&&OG(w,l)&&!E.isDisabled(a)){var y=E.getValue(a);E.exec(a,y)}}}(n,r),en.isTab(r))return _n(r),void n.handleTab();if(en.isRedo(r))return _n(r),void(typeof n.redo=="function"&&n.redo());if(en.isUndo(r))return _n(r),void(typeof n.undo=="function"&&n.undo());if(en.isMoveLineBackward(r))return _n(r),void Z.move(n,{unit:"line",reverse:!0});if(en.isMoveLineForward(r))return _n(r),void Z.move(n,{unit:"line"});if(en.isExtendLineBackward(r))return _n(r),void Z.move(n,{unit:"line",edge:"focus",reverse:!0});if(en.isExtendLineForward(r))return _n(r),void Z.move(n,{unit:"line",edge:"focus"});if(en.isMoveBackward(r))return _n(r),void(i&&re.isCollapsed(i)?Z.move(n,{reverse:!0}):Z.collapse(n,{edge:"start"}));if(en.isMoveForward(r))return _n(r),void(i&&re.isCollapsed(i)?Z.move(n):Z.collapse(n,{edge:"end"}));if(en.isMoveWordBackward(r))return _n(r),i&&re.isExpanded(i)&&Z.collapse(n,{edge:"focus"}),void Z.move(n,{unit:"word",reverse:!0});if(en.isMoveWordForward(r))return _n(r),i&&re.isExpanded(i)&&Z.collapse(n,{edge:"focus"}),void Z.move(n,{unit:"word"});if(en.isSelectAll(r))return _n(r),void n.selectAll();if(Kd){if((e4||Gd)&&i&&(en.isDeleteBackward(r)||en.isDeleteForward(r))&&re.isCollapsed(i)){var o=be.parent(n,i.anchor.path);if(ke.isElement(o)&&k.isVoid(n,o)&&k.isInline(n,o))return r.preventDefault(),void Z.delete(n,{unit:"block"})}}else{if(en.isBold(r)||en.isItalic(r)||en.isTransposeCharacter(r))return void _n(r);if(en.isSplitBlock(r))return _n(r),void k.insertBreak(n);if(en.isDeleteBackward(r))return _n(r),void(i&&re.isExpanded(i)?k.deleteFragment(n,{direction:"backward"}):k.deleteBackward(n));if(en.isDeleteForward(r))return _n(r),void(i&&re.isExpanded(i)?k.deleteFragment(n,{direction:"forward"}):k.deleteForward(n));if(en.isDeleteLineBackward(r))return _n(r),void(i&&re.isExpanded(i)?k.deleteFragment(n,{direction:"backward"}):k.deleteBackward(n,{unit:"line"}));if(en.isDeleteLineForward(r))return _n(r),void(i&&re.isExpanded(i)?k.deleteFragment(n,{direction:"forward"}):k.deleteForward(n,{unit:"line"}));if(en.isDeleteWordBackward(r))return _n(r),void(i&&re.isExpanded(i)?k.deleteFragment(n,{direction:"backward"}):k.deleteBackward(n,{unit:"word"}));if(en.isDeleteWordForward(r))return _n(r),void(i&&re.isExpanded(i)?k.deleteFragment(n,{direction:"forward"}):k.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!Kd&&!n.getConfig().readOnly&&hi(n,e.target)){e.preventDefault();var r=e.key;k.insertText(n,r)}},copy:function(e,t,n){var r=e;if(hi(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&&hi(n,r.target)){r.preventDefault();var o=r.clipboardData;if(o!=null&&(n.setFragmentData(o),i))if(re.isExpanded(i))k.deleteFragment(n);else{var a=be.parent(n,i.anchor.path);k.isVoid(n,a)&&Z.delete(n)}}},paste:function(e,t,n){Xw.set(n,!0);var r=e;if(!n.getConfig().readOnly&&hi(n,r.target)){var i=n.getConfig().customPaste;if(i&&i(n,r)===!1)return void Xw.set(n,!1);if(!Kd||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(Cc(n,e.target)){var r=j.toSlateNode(n,e.target);k.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(Cc(n,r.target)&&!n.getConfig().readOnly){var i=j.toSlateNode(n,r.target),o=j.findPath(n,i);if(k.isVoid(n,i)||k.void(n,{at:o,voids:!0})){var a=k.range(n,o);Z.select(n,a)}var l=r.dataTransfer;l!=null&&(t.isDraggingInternally=!0,n.setFragmentData(l))}},dragend:function(e,t,n){var r=e;n.getConfig().readOnly||t.isDraggingInternally&&Cc(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,i=r.dataTransfer;if(!n.getConfig().readOnly&&Cc(n,r.target)&&i!=null&&!(Kd&&Gd&&i.files.length>0)){r.preventDefault();var o=n.selection,a=j.findEventRange(n,r);Z.select(n,a),t.isDraggingInternally&&(o&&Z.delete(n,{at:o}),t.isDraggingInternally=!1),n.insertData(i),n.isFocused()||n.focus()}}},oee=1,aee=function(){function e(t){var n=this;this.id=oee++,this.$textArea=null,this.$progressBar=V('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=V('<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=is(function(){var a=n.editorInstance;(function(l,u){var f=l.isComposing,d=l.isUpdatingSelection,p=l.isDraggingInternally;if(!(u.getConfig().readOnly||f||d||p)){var g=j.findDocumentOrShadowRoot(u),h=g.activeElement,E=j.toDOMNode(u,u),w=g.getSelection();if(h===E?(l.latestElement=h,ws.set(u,!0)):ws.delete(u),!w)return Z.deselect(u);var y=w.anchorNode,$=w.focusNode,m=hi(u,y)||X7(u,y),S=hi(u,$)||X7(u,$);if(m&&S){var D=j.toSlateRange(u,w,{exactMatch:!1,suppressThrow:!1});Z.select(u,D)}else Z.deselect(u)}})(n,a)},100);var r=V(t);if(r.length===0)throw new Error("Cannot find textarea DOM by selector '"+t+"'");this.$box=r;var i=V('<div class="w-e-text-container"></div>');i.append(this.$progressBar),i.append(this.$maxLengthInfo),r.append(i);var o=V('<div class="w-e-scroll"></div>');i.append(o),this.$scroll=o,this.$textAreaContainer=i,pi(function(){var a=n.editorInstance,l=j.getWindow(a);l.document.addEventListener("selectionchange",n.onDOMSelectionChange),a.on("destroyed",function(){l.document.removeEventListener("selectionchange",n.onDOMSelectionChange)}),i.on("click",function(){return a.hidePanelOrModal()}),a.on("change",n.changeViewState.bind(n));var u=a.getConfig().onChange;u&&a.on("change",function(){return u(a)}),n.onFocusAndOnBlur(),a.on("change",n.changeMaxLengthInfo.bind(n)),n.bindEvent()})}return Object.defineProperty(e.prototype,"editorInstance",{get:function(){var t=Vw.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&&(e2(iee,function(o,a){n.on(a,function(l){o(l,t,i)})}),i.getConfig().scroll&&(r.css("overflow-y","auto"),r.on("scroll",is(function(){i.emit("scroll")},100))))},e.prototype.onFocusAndOnBlur=function(){var t=this,n=this.editorInstance,r=n.getConfig(),i=r.onBlur,o=r.onFocus;this.latestEditorSelection=n.selection,n.on("change",function(){t.latestEditorSelection==null&&n.selection!=null?setTimeout(function(){return o&&o(n)}):t.latestEditorSelection!=null&&n.selection==null&&setTimeout(function(){return i&&i(n)}),t.latestEditorSelection=n.selection})},e.prototype.changeMaxLengthInfo=function(){var t=this.editorInstance,n=t.getConfig().maxLength;if(n){var r=n-j.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;QQ(this,n),function(r,i){var o,a=i.getConfig().placeholder;if(a){var l=i.isEmpty();if(l&&!r.showPlaceholder&&!r.isComposing){if(r.$placeholder==null){var u=V('<div class="w-e-text-placeholder">'+a+"</div>");r.$textAreaContainer.append(u),r.$placeholder=u}return r.$placeholder.show(),void(r.showPlaceholder=!0)}!l&&r.showPlaceholder&&((o=r.$placeholder)===null||o===void 0||o.hide(),r.showPlaceholder=!1)}}(this,n),pi(function(){J7(t,n)})},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();_w("match",function(e,t,n){return[function(r){var i=ci(this),o=r==null?void 0:hs(r,e);return o?gt(o,r,i):new RegExp(r)[e](Lt(i))},function(r){var i=bn(this),o=Lt(r),a=n(t,i,o);if(a.done)return a.value;if(!i.global)return jd(i,o);var l=i.unicode;i.lastIndex=0;for(var u,f=[],d=0;(u=jd(i,o))!==null;){var p=Lt(u[0]);f[d]=p,p===""&&(i.lastIndex=kw(o,ic(i.lastIndex),l)),d++}return d===0?null:f}]});function V4(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&&V4(t)}function U4(){return V('<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 Q7(){return V('<div class="w-e-bar-divider"></div>')}function eO(e,t,n,r,i){if(i===void 0&&(i=!1),t){if(r){var o=Qw?"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+`
66
66
  `+r:n;e.attr("data-tooltip",a),e.addClass("w-e-menu-tooltip-v5")}}}var H4=function(){function e(t,n,r){var i=this;r===void 0&&(r=!1),this.$elem=V('<div class="w-e-bar-item"></div>'),this.$button=V('<button type="button"></button>'),this.disabled=!1,this.menu=n;var o=n.tag,a=n.width;if(o!=="button")throw new Error("Invalid tag '"+o+"', expected 'button'");var l=n.title,u=n.hotkey,f=u===void 0?"":u,d=n.iconSvg,p=d===void 0?"":d,g=this.$button;if(p){var h=V(p);V4(h),g.append(h)}else g.text(l);eO(g,p,l,f,r),r&&p&&g.append(V('<span class="title">'+l+"</span>")),a&&g.css("width",a+"px"),g.attr("data-menu-key",t),this.$elem.append(g),pi(function(){return i.init()})}return e.prototype.init=function(){var t=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(n){n.preventDefault(),Hr(t).hidePanelOrModal(),t.disabled||(t.exec(),t.onButtonClick())})},e.prototype.exec=function(){var t=Hr(this),n=this.menu,r=n.getValue(t);n.exec(t,r)},e.prototype.setActive=function(){var t=Hr(this),n=this.$button,r="active";this.menu.isActive(t)?n.addClass(r):n.removeClass(r)},e.prototype.setDisabled=function(){var t=Hr(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}(),lee=function(e){function t(n,r,i){return i===void 0&&(i=!1),e.call(this,n,r,i)||this}return fc(t,e),t.prototype.onButtonClick=function(){},t}(H4),W4=function(){function e(t){this.isShow=!1,this.showTime=0,this.record(t)}return e.prototype.record=function(t){var n=qw.get(t);n==null&&(n=new Set,qw.set(t,n)),n.add(this),mv.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=mv.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=mv.get(this);t&&t.emit("modalOrPanelHide")}},e}(),see=function(e){function t(n){var r=e.call(this,n)||this;return r.type="dropPanel",r.$elem=V('<div class="w-e-drop-panel"></div>'),r}return fc(t,e),t.prototype.genSelfElem=function(){return null},t}(W4),uee=function(e){function t(n,r,i){i===void 0&&(i=!1);var o=e.call(this,n,r,i)||this;if(o.dropPanel=null,o.menu=r,r.showDropPanel){var a=U4();o.$button.append(a)}return o}return fc(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=Hr(this);if(this.dropPanel==null){var i=new see(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 l=this.dropPanel;if(l.isShow){var u=this.$elem,f=u.offset().left,d=u.parents(".w-e-bar");f-d.offset().left>=d.width()/2?l.$elem.css({left:"none",right:"0"}):l.$elem.css({left:"0",right:"none"})}}},t}(H4),cee=function(e){function t(n,r){r===void 0&&(r=0);var i=e.call(this,n)||this;i.type="modal",i.$elem=V('<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 fc(t,e),t.prototype.genSelfElem=function(){var n=this,r=V('<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=mv.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}(W4);function _r(e,t,n){var r=V('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var i=V('<input type="text" id="'+t+'" placeholder="'+(n||"")+'">');return r.append(i),[r[0],i[0]]}function fee(e,t,n){var r=V('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var i=V('<textarea type="text" id="'+t+'" placeholder="'+(n||"")+'"></textarea>');return r.append(i),[r[0],i[0]]}function xs(e,t){var n=V('<div class="button-container"></div>'),r=V('<button type="button" id="'+e+'">'+t+"</button>");return n.append(r),[n[0],r[0]]}var dee=function(e){function t(n,r,i){i===void 0&&(i=!1);var o=e.call(this,n,r,i)||this;return o.$body=V("body"),o.modal=null,o.menu=r,o}return fc(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var n=Hr(this),r=this.menu.getModalPositionNode(n);return ke.isElement(r)?P4(n,r,"modal"):F4(n)},t.prototype.handleModal=function(){var n=Hr(this),r=this.menu;if(this.modal==null){var i=new cee(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=Hr(this),o=this.menu;if(o.getModalContentElem!=null){var a=j.getTextarea(i),l=j.getToolbar(i),u=((l==null?void 0:l.getConfig())||{}).modalAppendToBody,f=o.getModalContentElem(i);if(n.renderContent(f),u)n.setStyle({left:"0",right:"0"});else{var d=this.getPosition();n.setStyle(d)}r&&(u?n.appendTo(this.$body):n.appendTo(a.$textAreaContainer)),n.show(),u||I4(i,n.$elem),setTimeout(function(){i.blur()})}},t}(H4),pee=function(e){function t(n,r){var i=e.call(this,n)||this;return i.type="selectList",i.$elem=V('<div class="w-e-select-list"></div>'),r&&i.$elem.css("width",r+"px"),i.$elem.on("click",function(o){o.stopPropagation()}),i}return fc(t,e),t.prototype.renderList=function(n){var r=this.$elem;r.empty();var i=V("<ul></ul>");n.forEach(function(o){var a=o.value,l=o.text,u=o.selected,f=o.styleForRenderMenuList,d=V('<li data-value="'+a+'"></li>');if(f&&d.css(f),u){var p=V('<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>');d.append(p),d.addClass("selected")}d.append(V('<span data-value="'+a+'">'+l+"</span>")),d.attr("title",l),i.append(d)}),r.append(i)},t.prototype.genSelfElem=function(){return null},t}(W4),hee=function(){function e(t,n,r){var i=this;r===void 0&&(r=!1),this.$elem=V('<div class="w-e-bar-item"></div>'),this.$button=V('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var o=n.tag,a=n.title,l=n.width,u=n.iconSvg,f=u===void 0?"":u,d=n.hotkey,p=d===void 0?"":d;if(o!=="select")throw new Error("Invalid tag '"+o+"', expected 'select'");var g=this.$button;l&&g.css("width",l+"px"),g.attr("data-menu-key",t),eO(g,f,a,p,r),this.$elem.append(g),this.menu=n,pi(function(){return i.init()})}return e.prototype.init=function(){var t=this;this.setSelectedValue(),this.$button.on("click",function(n){n.preventDefault(),Hr(t).hidePanelOrModal(),t.trigger()})},e.prototype.trigger=function(){var t=this,n=Hr(this);if(!n.isDisabled()&&!this.disabled){var r=this.menu;if(this.selectList==null){this.selectList=new pee(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 l=a.target;if(l!=null){a.preventDefault();var u=V(l).attr("data-value");t.onChange(u)}})}else(i=this.selectList).isShow?i.hide():(o=r.getOptions(n),i.renderList(o),i.show())}},e.prototype.onChange=function(t){var n=Hr(this),r=this.menu;r.exec&&r.exec(n,t)},e.prototype.setSelectedValue=function(){var t=Hr(this),n=this.menu,r=n.getValue(t),i=function(l,u){for(var f=l.length,d="",p=0;p<f;p++){var g=l[p];if(g.value===u){d=g.text;break}}return d}(n.getOptions(t),r.toString()),o=this.$button,a=U4();o.empty(),o.text(i),o.append(a)},e.prototype.setDisabled=function(){var t=Hr(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}(),tO=function(){function e(t){this.$elem=V('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=V('<div class="w-e-bar-item-menus-container"></div>'),this.$button=V('<button type="button"></button>');var n=t.key,r=t.iconSvg,i=t.title,o=this.$elem,a=this.$button;if(r){var l=V(r);V4(l),a.append(l)}else a.text(i);a.attr("data-menu-key",n);var u=U4();a.append(u),o.append(a);var f=this.$container;o.append(f);var d=this.createObserver();this.observe(d)}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 l=0;o.each(function(u){V(u).hasClass("disabled")&&l++}),i.disconnect(),l===a?r.addClass("disabled"):r.removeClass("disabled"),t.observe(i)}});return i},e}(),nO=new WeakMap;function Hr(e){var t=Ww.get(e);if(t==null)throw new Error("Can not get editor instance");return t}function rO(e,t,n){n===void 0&&(n=!1);var r=nO.get(t);if(r)return r;var i=t.tag;if(i==="button"){var o=t.showDropPanel,a=t.showModal;r=o?new uee(e,t,n):a?new dee(e,t,n):new lee(e,t,n)}if(i==="select"&&(r=new hee(e,t,n)),r==null)throw new Error("Invalid tag in menu "+JSON.stringify(t));return nO.set(t,r),r}function gee(e,t){var n=e.selection;return n!=null&&!re.isCollapsed(n)&&!j.getSelectedElems(e).some(function(r){if(e.isVoid(r))return!0;var i=r.type;return!!["pre","code","table"].includes(i)||void 0})&&!!Se.isText(t)}var vee=function(){function e(){var t=this;this.$elem=V('<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=xA(function(){var n=t.isShow,r=t.getSelectedNodeAndMenuKeys()||{},i=r.node,o=i===void 0?null:i,a=r.menuKeys,l=a===void 0?[]:a;o!=null&&t.changeItemsState(),!(o&&ke.isElement(o)&&n&&t.isSamePath(o,t.prevSelectedNode))&&(t.hideAndClean(),o!=null&&(t.registerItems(l),t.setPosition(o),t.show()),t.prevSelectedNode=o)},200),pi(function(){var n=t.getEditorInstance(),r=t.$elem;r.on("mousedown",function(o){return o.preventDefault()}),j.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;pi(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=Q7();r.append(o)}})},e.prototype.registerSingleItem=function(t){var n=this.getEditorInstance(),r=this.menus,i=r[t];if(i==null){var o=Yd[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=rO(t,i);this.hoverbarItems.push(a),Ww.set(a,n),this.$elem.append(a.$elem)},e.prototype.setPosition=function(t){var n=this.getEditorInstance(),r=this.$elem;if(r.attr("style",""),ke.isElement(t)){var i=P4(n,t,"bar");return r.css(i),void I4(n,r)}if(Se.isText(t))return i=F4(n),r.css(i),void I4(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(l){var u=n[l],f=u.match,d=u.menuKeys,p=d===void 0?[]:d,g=f||function(w,y){return j.checkNodeType(y,l)},h=vt(k.nodes(t,{match:function(w){return g(t,w)},universal:!0}),1),E=h[0];if(E!=null)return r=E[0],i=p,"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=Hw.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=gee),n},e.prototype.isSamePath=function(t,n){if(t==null||n==null)return!1;var r=j.findPath(null,t),i=j.findPath(null,n);return G.equals(r,i)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function iO(e,t,n,r){if(Wd.set(e,t),pc.set(e,n),ke.isElement(e)){var i=e.children;if((i===void 0?[]:i).forEach(function(l,u){return iO(l,u,e,r)}),k.isVoid(r,e)){var o=vt(be.texts(e),1),a=vt(o[0],1)[0];Wd.set(a,0),pc.set(a,e)}}}function mee(e){var t=e.selector,n=t===void 0?"":t,r=e.config,i=r===void 0?{}:r,o=e.content,a=e.html,l=e.plugins,u=l===void 0?[]:l,f=($=>{var m=$,{apply:S}=m;return m.history={undos:[],redos:[]},m.redo=()=>{var{history:D}=m,{redos:A}=D;if(A.length>0){var B=A[A.length-1];sc.withoutSaving(m,()=>{k.withoutNormalizing(m,()=>{for(var P of B)m.apply(P)})}),D.redos.pop(),D.undos.push(B)}},m.undo=()=>{var{history:D}=m,{undos:A}=D;if(A.length>0){var B=A[A.length-1];sc.withoutSaving(m,()=>{k.withoutNormalizing(m,()=>{var P=B.map(Ca.inverse).reverse();for(var U of P)m.apply(U)})}),D.redos.push(B),D.undos.pop()}},m.apply=D=>{var{operations:A,history:B}=m,{undos:P}=B,U=P[P.length-1],Y=U&&U[U.length-1],ce=MX(D,Y),ee=sc.isSaving(m),ge=sc.isMerging(m);if(ee==null&&(ee=RX(D)),ee){if(ge==null&&(ge=U!=null&&(A.length!==0||LX(D,Y)||ce)),U&&ge)ce&&U.pop(),U.push(D);else{var se=[D];P.push(se)}for(;P.length>100;)P.shift();jX(D)&&(B.redos=[])}S(D)},m})(function($){var m=$,S=m.insertText,D=m.insertNode,A=m.insertFragment,B=m.dangerouslyInsertHtml;return m.insertText=function(P){if(m.getConfig().maxLength){var U=j.getLeftLengthOfMaxLength(m);U<=0||(U<P.length?S(P.slice(0,U)):S(P))}else S(P)},m.insertNode=function(P){if(m.getConfig().maxLength){var U=j.getLeftLengthOfMaxLength(m);U<=0||U<be.string(P).length||D(P)}else D(P)},m.insertFragment=function(P){if(m.getConfig().maxLength)if(P.length!==1)P.forEach(function(Y){m.insertNode(Y)});else{var U=P[0];if(j.getLeftLengthOfMaxLength(m)<be.string(U).length)return;A(P)}else A(P)},m.dangerouslyInsertHtml=function(P,U){if(P===void 0&&(P=""),U===void 0&&(U=!1),P)if(m.getConfig().maxLength){var Y=j.getLeftLengthOfMaxLength(m);if(!(Y<=0)){var ce=document.createElement("div");ce.innerHTML=P;var ee=Array.from(ce.childNodes).reduce(function(ge,se){var xe=se.nodeType,ve=se.nodeName;return se?xe===ho.TEXT_NODE?ge+(se.textContent||""):xe===ho.ELEMENT_NODE?F7.has(ve.toLowerCase())?ge:ge+(se.textContent||""):ge:ge},"");Y<ee.length||B(P,U)}}else B(P,U)},m}(function($){var m=$;return m.on=function(S,D){var A=Av(m);if(A.on(S,D),S==="destroyed"&&R7(m,D),S!=="destroyed"){var B=function(){return A.off(S,D)};A.on("destroyed",B),R7(m,B)}},m.once=function(S,D){Av(m).once(S,D)},m.off=function(S,D){Av(m).off(S,D)},m.emit=function(S){for(var D=[],A=1;A<arguments.length;A++)D[A-1]=arguments[A];var B=Av(m);B.emit.apply(B,Iw([S],vt(D))),S==="destroyed"&&(LQ(m).forEach(function(P){return B.off("destroyed",P)}),RQ(m))},m}(function($){var m=$;return m.select=function(S){Z.select(m,S)},m.deselect=function(){var S=m.selection,D=j.findDocumentOrShadowRoot(m).getSelection();D&&D.rangeCount>0&&D.removeAllRanges(),S&&Z.deselect($)},m.move=function(S,D){D===void 0&&(D=!1),S&&(S<0||Z.move($,{distance:S,unit:"character",reverse:D}))},m.moveReverse=function(S){m.move(S,!0)},m.restoreSelection=function(){var S=Yw.get(m);S!=null&&(m.focus(),Z.select(m,S))},m.getSelectionPosition=function(){return F4(m)},m.getNodePosition=function(S){return P4(m,S)},m.isSelectedAll=function(){var S=m.selection;if(S==null)return!1;var D=vt(re.edges(S),2),A=D[0],B=D[1],P=vt(k.edges(m,[]),2),U=P[0],Y=P[1];return!(!Ye.equals(A,U)||!Ye.equals(B,Y))},m.selectAll=function(){var S=k.start(m,[]),D=k.end(m,[]);Z.select(m,{anchor:S,focus:D})},m}(EQ(function($){var m=$;return m.getAllMenuKeys=function(){var S=[];for(var D in Yd)S.push(D);return S},m.getConfig=function(){var S=Ak.get(m);if(S==null)throw new Error("Can not get editor config");return S},m.getMenuConfig=function(S){var D=m.getConfig().MENU_CONF;return(D===void 0?{}:D)[S]||{}},m.alert=function(S,D){D===void 0&&(D="info");var A=m.getConfig().customAlert;A&&A(S,D)},m}(function($){var m=$;return m.id="wangEditor-"+CZ++,m.isDestroyed=!1,m.isFullScreen=!1,m.focus=function(S){if(j.toDOMNode(m,m).focus({preventScroll:!0}),ws.set(m,!0),S){var D=k.end(m,[]);Z.select(m,D)}else{var A=Yw.get(m);A?Z.select(m,A):Z.select(m,k.start(m,[]))}},m.isFocused=function(){return!!ws.get(m)},m.blur=function(){j.toDOMNode(m,m).blur(),Z.deselect(m),ws.set(m,!1)},m.updateView=function(){j.getTextarea(m).changeViewState();var S=j.getToolbar(m);S&&S.changeToolbarState();var D=j.getHoverbar(m);D&&D.changeHoverbarState()},m.destroy=function(){if(!m.isDestroyed){var S=j.getTextarea(m);S.destroy(),zw.delete(m),Vw.delete(S);var D=j.getToolbar(m);D&&(D.destroy(),gv.delete(m),Uw.delete(D));var A=j.getHoverbar(m);A&&(A.destroy(),vv.delete(m),Hw.delete(A)),m.isDestroyed=!0,m.emit("destroyed")}},m.scrollToElem=function(S){if(!m.getConfig().scroll){var D="\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 D+=`
67
67
  You has disabled editor scroll, please do this yourself`,void console.warn(D)}var A=V("#"+S);if(A.length!==0){var B=A[0];if(!j.hasDOMNode(m,B))return D="Element (found by id is '"+S+"') is not in editor DOM",D+=`
68
68
  \u901A\u8FC7 id '`+S+"' \u627E\u5230\u7684 element \u4E0D\u5728 editor DOM \u4E4B\u5185",void console.error(D,B);var P=j.getTextarea(m),U=P.$textAreaContainer,Y=P.$scroll,ce=A.offset().top,ee=U.offset().top;Y[0].scrollBy({top:ce-ee,behavior:"smooth"})}},m.showProgressBar=function(S){S<1||j.getTextarea(m).changeProgress(S)},m.hidePanelOrModal=function(){var S=qw.get(m);S!=null&&S.forEach(function(D){return D.hide()})},m.enable=function(){m.getConfig().readOnly=!1,m.updateView()},m.disable=function(){m.getConfig().readOnly=!0,m.updateView()},m.isDisabled=function(){return m.getConfig().readOnly},m.toDOMNode=function(S){return j.toDOMNode(m,S)},m.fullScreen=function(){if(!m.isFullScreen){var S=null,D=j.getToolbar(m);D&&(S=D.$box);var A=j.getTextarea(m).$box.parent();if(S&&S.parent()[0]!==A[0])throw new Error(`Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent
@@ -71,7 +71,7 @@ You has disabled editor scroll, please do this yourself`,void console.warn(D)}va
71
71
  Textarea height < 300px . This may be cause modal and hoverbar position error`,$)});var E=void 0;Object.keys(g).length>0&&(E=new vee,Hw.set(E,f),vv.set(f,E)),f.on("change",function(){f.hidePanelOrModal()}),f.on("scroll",function(){f.hidePanelOrModal()})}else f.children.forEach(function($,m){return iO($,m,f,f)});var w=d.onCreated,y=d.onDestroyed;return w&&f.on("created",function(){return w(f)}),y&&f.on("destroyed",function(){return y(f)}),pi(function(){return f.emit("created")}),f}var yee=iv("splice"),bee=me.TypeError,wee=Math.max,$ee=Math.min;Qt({target:"Array",proto:!0,forced:!yee},{splice:function(e,t){var n,r,i,o,a,l,u=Fa(this),f=ms(u),d=ac(e,f),p=arguments.length;if(p===0?n=r=0:p===1?(n=0,r=f-d):(n=p-2,r=$ee(wee(Od(t),0),f-d)),f+n-r>9007199254740991)throw bee("Maximum allowed length exceeded");for(i=S_(u,r),o=0;o<r;o++)(a=d+o)in u&&Ld(i,o,u[a]);if(i.length=r,n<r){for(o=d;o<f-r;o++)l=o+n,(a=o+r)in u?u[l]=u[a]:delete u[l];for(o=f;o>f-r+n;o--)delete u[o-1]}else if(n>r)for(o=f-r;o>d;o--)l=o+n-1,(a=o+r-1)in u?u[l]=u[a]:delete u[l];for(o=0;o<n;o++)u[o+d]=arguments[o+2];return u.length=f-r+n,i}});var oO=function(){function e(t,n){var r=this;this.$toolbar=V('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=xA(function(){r.toolbarItems.forEach(function(a){a.changeMenuState()})},200),this.config=n;var i=V(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),pi(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,l=i.insertKeys,u=l===void 0?{index:0,keys:[]}:l,f=i.excludeKeys,d=f===void 0?[]:f,p=DA(a);u.keys.length>0&&(typeof u.keys=="string"&&(u.keys=[u.keys]),u.keys.forEach(function(E,w){p.splice(u.index+w,0,E)}));var g=p.filter(function(E){if(typeof E=="string"){if(d.includes(E))return!1}else if(d.includes(E.key))return!1;return!0}),h=g.length;g.forEach(function(E,w){if(E==="|"){if(w===0||w+1===h||n==="|")return;var y=Q7();return r.append(y),void(n=E)}if(typeof E=="string")return t.registerSingleItem(E,t),void(n=E);t.registerGroup(E),n="group"})},e.prototype.registerGroup=function(t){var n=this,r=this.$toolbar,i=function(f){return new tO(f)}(t),o=t.menuKeys,a=o===void 0?[]:o,l=this.config.excludeKeys,u=l===void 0?[]:l;a.forEach(function(f){u.includes(f)||n.registerSingleItem(f,i)}),r.append(i.$elem)},e.prototype.registerSingleItem=function(t,n){var r=this.getEditorInstance(),i=n instanceof tO,o=this.menus,a=o[t];if(a==null){var l=Yd[t];if(l==null)throw new Error("Not found menu item factory by key '"+t+"'");if(typeof l!="function")throw new Error("Menu item factory (key='"+t+"') is not a function");a=l(),o[t]=a}else console.warn("Duplicated toolbar menu key '"+t+`'
72
72
  \u91CD\u590D\u6CE8\u518C\u4E86\u83DC\u5355\u680F menu '`+t+"'");var u=rO(t,a,i);this.toolbarItems.push(u),Ww.set(u,r),i?n.appendBarItem(u):n.$toolbar.append(u.$elem)},e.prototype.getEditorInstance=function(){var t=Uw.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 Eee(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(l,u){return k7(l,"data-w-e-toolbar",u)}(e,n))throw new Error("Repeated create toolbar by selector '"+n+"'");var o=fi({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},i||{}),a=new oO(n,o);return Uw.set(a,e),gv.set(e,a),a}var Cee=rc.EXISTS,See=ji.f,aO=Function.prototype,xee=Fe(aO.toString),lO=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Dee=Fe(lO.exec);function q4(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,l=e.maxNumberOfFiles,u=l===void 0?100:l,f=e.meta,d=f===void 0?{}:f,p=e.metaWithUrl,g=p!==void 0&&p,h=e.headers,E=h===void 0?{}:h,w=e.withCredentials,y=w!==void 0&&w,$=e.timeout,m=$===void 0?1e4:$,S=e.onBeforeUpload,D=S===void 0?function(se){return se}:S,A=e.onSuccess,B=A===void 0?function(se,xe){}:A,P=e.onError,U=P===void 0?function(se,xe,ve){console.error(se.name+" upload error",xe,ve)}:P,Y=e.onProgress,ce=Y===void 0?function(se){}:Y;if(!n)throw new Error(`Cannot get upload server address
73
73
  \u6CA1\u6709\u914D\u7F6E\u4E0A\u4F20\u5730\u5740`);if(!i)throw new Error(`Cannot get fieldName
74
- \u6CA1\u6709\u914D\u7F6E fieldName`);var ee=n;g&&(ee=function(se,xe){var ve=vt(se.split("#"),2),Oe=ve[0],Te=ve[1],Ne=[];e2(xe,function(Ae,ae){Ne.push(ae+"="+Ae)});var Re=Ne.join("&");return Oe=Oe.indexOf("?")>0?Oe+"&"+Re:Oe+"?"+Re,Te?Oe+"#"+Te:Oe}(ee,d));var ge=new yd({onBeforeUpload:D,restrictions:{maxFileSize:a,maxNumberOfFiles:u},meta:d}).use(FY,{endpoint:ee,headers:E,formData:!0,fieldName:i,bundle:!0,withCredentials:y,timeout:m});return ge.on("upload-success",function(se,xe){var ve=xe.body,Oe=ve===void 0?{}:ve;try{B(se,Oe)}catch(Te){console.error("wangEditor upload file - onSuccess error",Te)}ge.removeFile(se.id)}),ge.on("progress",function(se){se<1||ce(se)}),ge.on("upload-error",function(se,xe,ve){try{U(se,xe,ve)}catch(Oe){console.error("wangEditor upload file - onError error",Oe)}ge.removeFile(se.id)}),ge.on("restriction-failed",function(se,xe){try{U(se,xe)}catch(ve){console.error("wangEditor upload file - onError error",ve)}ge.removeFile(se.id)}),ge}function Ma(e){return Ma=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},Ma(e)}function Aee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kn(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){Aee(e,i,n[i])})}return e}function Yo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sO(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 Xo(e,t,n){return t&&sO(e.prototype,t),n&&sO(e,n),e}function Ds(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function op(e,t){if(t&&(Ma(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ds(e)}function Sc(e){return Sc=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Sc(e)}function G4(e,t){return G4=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},G4(e,t)}function Ov(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&&G4(e,t)}Gn&&!Cee&&See(aO,"name",{configurable:!0,get:function(){try{return Dee(lO,xee(this))[1]}catch{return""}}});var _ee={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)}},Jo=new(function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Yo(this,e),this.init(t,n)}return Xo(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||_ee,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,kn({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),ja=function(){function e(){Yo(this,e),this.observers={}}return Xo(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(l){l.apply(void 0,r)})}if(this.observers["*"]){var a=[].concat(this.observers["*"]);a.forEach(function(l){l.apply(l,[t].concat(r))})}}}]),e}();function ap(){var e,t,n=new Promise(function(r,i){e=r,t=i});return n.resolve=e,n.reject=t,n}function uO(e){return e==null?"":""+e}function kee(e,t,n){e.forEach(function(r){t[r]&&(n[r]=t[r])})}function K4(e,t,n){function r(l){return l&&l.indexOf("###")>-1?l.replace(/###/g,"."):l}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 cO(e,t,n){var r=K4(e,t,Object);r.obj[r.k]=n}function Bv(e,t){var n=K4(e,t),r=n.obj,i=n.k;if(r)return r[i]}function fO(e,t,n){var r=Bv(e,n);return r!==void 0?r:Bv(t,n)}function dO(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]):dO(e[r],t[r],n):e[r]=t[r]);return e}function xc(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Oee={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Bee(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return Oee[t]}):e}var Tv=typeof window<"u"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function pO(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,l=r.slice(o,o+a).join(n),u=i[l];u===void 0&&r.length>o+a;)a++,u=i[l=r.slice(o,o+a).join(n)];if(u===void 0)return;if(typeof u=="string")return u;if(l&&typeof u[l]=="string")return u[l];var f=r.slice(o+a).join(n);return f?pO(u,f,n):void 0}i=i[r[o]]}return i}}var Tee=function(e){function t(n){var r,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Yo(this,t),r=op(this,Sc(t).call(this)),Tv&&ja.call(Ds(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 Ov(t,ja),Xo(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,l=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure,u=[n,r];i&&typeof i!="string"&&(u=u.concat(i)),i&&typeof i=="string"&&(u=u.concat(a?i.split(a):i)),n.indexOf(".")>-1&&(u=n.split("."));var f=Bv(this.data,u);return f||!l||typeof i!="string"?f:pO(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},l=this.options.keySeparator;l===void 0&&(l=".");var u=[n,r];i&&(u=u.concat(l?i.split(l):i)),n.indexOf(".")>-1&&(o=r,r=(u=n.split("."))[1]),this.addNamespaces(r),cO(this.data,u,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 l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},u=[n,r];n.indexOf(".")>-1&&(o=i,i=r,r=(u=n.split("."))[1]),this.addNamespaces(r);var f=Bv(this.data,u)||{};o?dO(f,i,a):f=kn({},f,i),cO(this.data,u,f),l.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"?kn({},{},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}(),hO={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}},gO={},vO=function(e){function t(n){var r,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Yo(this,t),r=op(this,Sc(t).call(this)),Tv&&ja.call(Ds(r)),kee(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,Ds(r)),r.options=i,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.logger=Jo.create("translator"),r}return Ov(t,ja),Xo(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 l=n.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:n,namespaces:a};var u=n.split(i);(i!==o||i===o&&this.options.ns.indexOf(u[0])>-1)&&(a=u.shift()),n=u.join(o)}return typeof a=="string"&&(a=[a]),{key:n,namespaces:a}}},{key:"translate",value:function(n,r,i){var o=this;if(Ma(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,l=this.extractFromKey(n[n.length-1],r),u=l.key,f=l.namespaces,d=f[f.length-1],p=r.lng||this.language,g=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p&&p.toLowerCase()==="cimode"){if(g){var h=r.nsSeparator||this.options.nsSeparator;return d+h+u}return u}var E=this.resolve(n,r),w=E&&E.res,y=E&&E.usedKey||u,$=E&&E.exactUsedKey||u,m=Object.prototype.toString.apply(w),S=["[object Number]","[object Function]","[object RegExp]"],D=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,A=!this.i18nFormat||this.i18nFormat.handleAsObject,B=typeof w!="string"&&typeof w!="boolean"&&typeof w!="number";if(A&&w&&B&&S.indexOf(m)<0&&(typeof D!="string"||m!=="[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(y,w,kn({},r,{ns:f})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(a){var P=m==="[object Array]",U=P?[]:{},Y=P?$:y;for(var ce in w)if(Object.prototype.hasOwnProperty.call(w,ce)){var ee="".concat(Y).concat(a).concat(ce);U[ce]=this.translate(ee,kn({},r,{joinArrays:!1,ns:f})),U[ce]===ee&&(U[ce]=w[ce])}w=U}}else if(A&&typeof D=="string"&&m==="[object Array]")(w=w.join(D))&&(w=this.extendTranslation(w,n,r,i));else{var ge=!1,se=!1,xe=r.count!==void 0&&typeof r.count!="string",ve=t.hasDefaultValue(r),Oe=xe?this.pluralResolver.getSuffix(p,r.count):"",Te=r["defaultValue".concat(Oe)]||r.defaultValue;!this.isValidLookup(w)&&ve&&(ge=!0,w=Te),this.isValidLookup(w)||(se=!0,w=u);var Ne=r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,Re=Ne&&se?void 0:w,Ae=ve&&Te!==w&&this.options.updateMissing;if(se||ge||Ae){if(this.logger.log(Ae?"updateKey":"missingKey",p,d,u,Ae?Te:w),a){var ae=this.resolve(u,kn({},r,{keySeparator:!1}));ae&&ae.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 M=[],R=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&R&&R[0])for(var T=0;T<R.length;T++)M.push(R[T]);else this.options.saveMissingTo==="all"?M=this.languageUtils.toResolveHierarchy(r.lng||this.language):M.push(r.lng||this.language);var L=function(q,O,J){o.options.missingKeyHandler?o.options.missingKeyHandler(q,d,O,Ae?J:Re,Ae,r):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(q,d,O,Ae?J:Re,Ae,r),o.emit("missingKey",q,d,O,w)};this.options.saveMissing&&(this.options.saveMissingPlurals&&xe?M.forEach(function(q){o.pluralResolver.getSuffixes(q).forEach(function(O){L([q],u+O,r["defaultValue".concat(O)]||Te)})}):L(M,u,Te))}w=this.extendTranslation(w,n,r,E,i),se&&w===u&&this.options.appendNamespaceToMissingKey&&(w="".concat(d,":").concat(u)),(se||ge)&&this.options.parseMissingKeyHandler&&(w=this.options.parseMissingKeyHandler(w))}return w}},{key:"extendTranslation",value:function(n,r,i,o,a){var l=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(kn({},i,{interpolation:kn({},this.options.interpolation,i.interpolation)}));var u,f=i.interpolation&&i.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(f){var d=n.match(this.interpolator.nestingRegexp);u=d&&d.length}var p=i.replace&&typeof i.replace!="string"?i.replace:i;if(this.options.interpolation.defaultVariables&&(p=kn({},this.options.interpolation.defaultVariables,p)),n=this.interpolator.interpolate(n,p,i.lng||this.language,i),f){var g=n.match(this.interpolator.nestingRegexp);u<(g&&g.length)&&(i.nest=!1)}i.nest!==!1&&(n=this.interpolator.nest(n,function(){for(var w=arguments.length,y=new Array(w),$=0;$<w;$++)y[$]=arguments[$];return a&&a[0]===y[0]&&!i.context?(l.logger.warn("It seems you are nesting recursively key: ".concat(y[0]," in key: ").concat(r[0])),null):l.translate.apply(l,y.concat([r]))},i)),i.interpolation&&this.interpolator.reset()}var h=i.postProcess||this.options.postProcess,E=typeof h=="string"?[h]:h;return n!=null&&E&&E.length&&i.applyPostProcessor!==!1&&(n=hO.handle(E,n,r,this.options&&this.options.postProcessPassResolved?kn({i18nResolved:o},i):i,this)),n}},{key:"resolve",value:function(n){var r,i,o,a,l,u=this,f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof n=="string"&&(n=[n]),n.forEach(function(d){if(!u.isValidLookup(r)){var p=u.extractFromKey(d,f),g=p.key;i=g;var h=p.namespaces;u.options.fallbackNS&&(h=h.concat(u.options.fallbackNS));var E=f.count!==void 0&&typeof f.count!="string",w=f.context!==void 0&&(typeof f.context=="string"||typeof f.context=="number")&&f.context!=="",y=f.lngs?f.lngs:u.languageUtils.toResolveHierarchy(f.lng||u.language,f.fallbackLng);h.forEach(function($){u.isValidLookup(r)||(l=$,!gO["".concat(y[0],"-").concat($)]&&u.utils&&u.utils.hasLoadedNamespace&&!u.utils.hasLoadedNamespace(l)&&(gO["".concat(y[0],"-").concat($)]=!0,u.logger.warn('key "'.concat(i,'" for languages "').concat(y.join(", "),`" won't get resolved as namespace "`).concat(l,'" 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!!!")),y.forEach(function(m){if(!u.isValidLookup(r)){a=m;var S,D,A=g,B=[A];for(u.i18nFormat&&u.i18nFormat.addLookupKeys?u.i18nFormat.addLookupKeys(B,g,m,$,f):(E&&(S=u.pluralResolver.getSuffix(m,f.count)),E&&w&&B.push(A+S),w&&B.push(A+="".concat(u.options.contextSeparator).concat(f.context)),E&&B.push(A+=S));D=B.pop();)u.isValidLookup(r)||(o=D,r=u.getResource(m,$,D,f))}}))})}}),{res:r,usedKey:i,exactUsedKey:o,usedLng:a,usedNS:l}}},{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 Y4(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Fee=function(){function e(t){Yo(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Jo.create("languageUtils")}return Xo(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]=Y4(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]=Y4(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=Y4(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(l){l&&(r.isSupportedCode(l)?o.push(l):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(l)))};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(l){o.indexOf(l)<0&&a(r.formatLanguageCode(l))}),o}}]),e}(),Pee=[{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}],Iee={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 Nee(){var e={};return Pee.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:Iee[t.fc]}})}),e}var Lee=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Yo(this,e),this.languageUtils=t,this.options=n,this.logger=Jo.create("pluralResolver"),this.rules=Nee()}return Xo(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 l=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()):l():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&i.numbers.length===2&&i.numbers[0]===1?l():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(t)),""}}]),e}(),Ree=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Yo(this,e),this.logger=Jo.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return Xo(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:Bee,this.escapeValue=n.escapeValue===void 0||n.escapeValue,this.useRawValueToEscape=n.useRawValueToEscape!==void 0&&n.useRawValueToEscape,this.prefix=n.prefix?xc(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?xc(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?xc(n.nestingPrefix):n.nestingPrefixEscaped||xc("$t("),this.nestingSuffix=n.nestingSuffix?xc(n.nestingSuffix):n.nestingSuffixEscaped||xc(")"),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,l,u=this,f=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function d(w){return w.replace(/\$/g,"$$$$")}var p=function(w){if(w.indexOf(u.formatSeparator)<0){var y=fO(n,f,w);return u.alwaysFormat?u.format(y,void 0,r,kn({},i,n,{interpolationkey:w})):y}var $=w.split(u.formatSeparator),m=$.shift().trim(),S=$.join(u.formatSeparator).trim();return u.format(fO(n,f,m),S,r,kn({},i,n,{interpolationkey:m}))};this.resetRegExp();var g=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,h=i&&i.interpolation&&i.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,E=[{regex:this.regexpUnescape,safeValue:function(w){return d(w)}},{regex:this.regexp,safeValue:function(w){return u.escapeValue?d(u.escape(w)):d(w)}}];return E.forEach(function(w){for(l=0;o=w.regex.exec(t);){if((a=p(o[1].trim()))===void 0)if(typeof g=="function"){var y=g(t,o,i);a=typeof y=="string"?y:""}else{if(h){a=o[0];continue}u.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(t)),a=""}else typeof a=="string"||u.useRawValueToEscape||(a=uO(a));var $=w.safeValue(a);if(t=t.replace(o[0],$),h?(w.regex.lastIndex+=$.length,w.regex.lastIndex-=o[0].length):w.regex.lastIndex=0,++l>=u.maxReplaces)break}}),t}},{key:"nest",value:function(t,n){var r,i,o=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=kn({},a);function u(g,h){var E=this.nestingOptionsSeparator;if(g.indexOf(E)<0)return g;var w=g.split(new RegExp("".concat(E,"[ ]*{"))),y="{".concat(w[1]);g=w[0],y=(y=this.interpolate(y,l)).replace(/'/g,'"');try{l=JSON.parse(y),h&&(l=kn({},h,l))}catch($){return this.logger.warn("failed parsing options string in nesting for key ".concat(g),$),"".concat(g).concat(E).concat(y)}return delete l.defaultValue,g}for(l.applyPostProcessor=!1,delete l.defaultValue;r=this.nestingRegexp.exec(t);){var f=[],d=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){var p=r[1].split(this.formatSeparator).map(function(g){return g.trim()});r[1]=p.shift(),f=p,d=!0}if((i=n(u.call(this,r[1].trim(),l),l))&&r[0]===t&&typeof i!="string")return i;typeof i!="string"&&(i=uO(i)),i||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(t)),i=""),d&&(i=f.reduce(function(g,h){return o.format(g,h,a.lng,kn({},a,{interpolationkey:r[1].trim()}))},i.trim())),t=t.replace(r[0],i),this.regexp.lastIndex=0}return t}}]),e}(),Mee=function(e){function t(n,r,i){var o,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Yo(this,t),o=op(this,Sc(t).call(this)),Tv&&ja.call(Ds(o)),o.backend=n,o.store=r,o.services=i,o.languageUtils=i.languageUtils,o.options=a,o.logger=Jo.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(i,a.backend,a),o}return Ov(t,ja),Xo(t,[{key:"queueLoad",value:function(n,r,i,o){var a=this,l=[],u=[],f=[],d=[];return n.forEach(function(p){var g=!0;r.forEach(function(h){var E="".concat(p,"|").concat(h);!i.reload&&a.store.hasResourceBundle(p,h)?a.state[E]=2:a.state[E]<0||(a.state[E]===1?u.indexOf(E)<0&&u.push(E):(a.state[E]=1,g=!1,u.indexOf(E)<0&&u.push(E),l.indexOf(E)<0&&l.push(E),d.indexOf(h)<0&&d.push(h)))}),g||f.push(p)}),(l.length||u.length)&&this.queue.push({pending:u,loaded:{},errors:[],callback:o}),{toLoad:l,pending:u,toLoadLanguages:f,toLoadNamespaces:d}}},{key:"loaded",value:function(n,r,i){var o=n.split("|"),a=o[0],l=o[1];r&&this.emit("failedLoading",a,l,r),i&&this.store.addResourceBundle(a,l,i),this.state[n]=r?-1:2;var u={};this.queue.forEach(function(f){(function(d,p,g,h){var E=K4(d,p,Object),w=E.obj,y=E.k;w[y]=w[y]||[],h&&(w[y]=w[y].concat(g)),h||w[y].push(g)})(f.loaded,[a],l),function(d,p){for(var g=d.indexOf(p);g!==-1;)d.splice(g,1),g=d.indexOf(p)}(f.pending,n),r&&f.errors.push(r),f.pending.length!==0||f.done||(Object.keys(f.loaded).forEach(function(d){u[d]||(u[d]=[]),f.loaded[d].length&&f.loaded[d].forEach(function(p){u[d].indexOf(p)<0&&u[d].push(p)})}),f.done=!0,f.errors.length?f.callback(f.errors):f.callback())}),this.emit("loaded",u),this.queue=this.queue.filter(function(f){return!f.done})}},{key:"read",value:function(n,r,i){var o=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:350,u=arguments.length>5?arguments[5]:void 0;return n.length?this.backend[i](n,r,function(f,d){f&&d&&a<5?setTimeout(function(){o.read.call(o,n,r,i,a+1,2*l,u)},l):u(f,d)}):u(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 l=this.queueLoad(n,r,o,a);if(!l.toLoad.length)return l.pending.length||a(),null;l.toLoad.forEach(function(u){i.loadOne(u)})}},{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],l=o[1];this.read(a,l,"read",void 0,void 0,function(u,f){u&&r.logger.warn("".concat(i,"loading namespace ").concat(l," for language ").concat(a," failed"),u),!u&&f&&r.logger.log("".concat(i,"loaded namespace ").concat(l," for language ").concat(a),f),r.loaded(n,u,f)})}},{key:"saveMissing",value:function(n,r,i,o,a){var l=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,kn({},l,{isUpdate:a})),n&&n[0]&&this.store.addResource(n[0],r,i,o))}}]),t}();function jee(){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(Ma(e[1])==="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),Ma(e[2])==="object"||Ma(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 mO(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 Fv(){}var zee=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(Yo(this,t),n=op(this,Sc(t).call(this)),Tv&&ja.call(Ds(n)),n.options=mO(r),n.services={},n.logger=Jo,n.modules={external:[]},i&&!n.isInitialized&&!r.isClone){if(!n.options.initImmediate)return n.init(r,i),op(n,Ds(n));setTimeout(function(){n.init(r,i)},0)}return n}return Ov(t,ja),Xo(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(h){return h?typeof h=="function"?new h:h: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=kn({},jee(),this.options,mO(r)),this.format=this.options.interpolation.format,i||(i=Fv),!this.options.isClone){this.modules.logger?Jo.init(o(this.modules.logger),this.options):Jo.init(null,this.options);var a=new Fee(this.options);this.store=new Tee(this.options.resources,this.options);var l=this.services;l.logger=Jo,l.resourceStore=this.store,l.languageUtils=a,l.pluralResolver=new Lee(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),l.interpolator=new Ree(this.options),l.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},l.backendConnector=new Mee(o(this.modules.backend),l.resourceStore,l,this.options),l.backendConnector.on("*",function(h){for(var E=arguments.length,w=new Array(E>1?E-1:0),y=1;y<E;y++)w[y-1]=arguments[y];n.emit.apply(n,[h].concat(w))}),this.modules.languageDetector&&(l.languageDetector=o(this.modules.languageDetector),l.languageDetector.init(l,this.options.detection,this.options)),this.modules.i18nFormat&&(l.i18nFormat=o(this.modules.i18nFormat),l.i18nFormat.init&&l.i18nFormat.init(this)),this.translator=new vO(this.services,this.options),this.translator.on("*",function(h){for(var E=arguments.length,w=new Array(E>1?E-1:0),y=1;y<E;y++)w[y-1]=arguments[y];n.emit.apply(n,[h].concat(w))}),this.modules.external.forEach(function(h){h.init&&h.init(n)})}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var f=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];f.forEach(function(h){n[h]=function(){var E;return(E=n.store)[h].apply(E,arguments)}});var d=["addResource","addResources","addResourceBundle","removeResourceBundle"];d.forEach(function(h){n[h]=function(){var E;return(E=n.store)[h].apply(E,arguments),n}});var p=ap(),g=function(){var h=function(E,w){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),p.resolve(w),i(E,w)};if(n.languages&&n.options.compatibilityAPI!=="v1"&&!n.isInitialized)return h(null,n.t.bind(n));n.changeLanguage(n.options.lng,h)};return this.options.resources||!this.options.initImmediate?g():setTimeout(g,0),p}},{key:"loadResources",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Fv,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 l=[],u=function(d){d&&r.services.languageUtils.toResolveHierarchy(d).forEach(function(p){l.indexOf(p)<0&&l.push(p)})};if(a)u(a);else{var f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.forEach(function(d){return u(d)})}this.options.preload&&this.options.preload.forEach(function(d){return u(d)}),this.services.backendConnector.load(l,this.options.ns,o)}else o(null)}},{key:"reloadResources",value:function(n,r,i){var o=ap();return n||(n=this.languages),r||(r=this.options.ns),i||(i=Fv),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"&&hO.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=ap();this.emit("languageChanging",n);var a=function(l){n||l||!i.services.languageDetector||(l=[]);var u=typeof l=="string"?l:i.services.languageUtils.getBestMatchFromCodes(l);u&&(i.language||(i.language=u,i.languages=i.services.languageUtils.toResolveHierarchy(u)),i.translator.language||i.translator.changeLanguage(u),i.services.languageDetector&&i.services.languageDetector.cacheUserLanguage(u)),i.loadResources(u,function(f){(function(d,p){p?(i.language=p,i.languages=i.services.languageUtils.toResolveHierarchy(p),i.translator.changeLanguage(p),i.isLanguageChangingTo=void 0,i.emit("languageChanged",p),i.logger.log("languageChanged",p)):i.isLanguageChangingTo=void 0,o.resolve(function(){return i.t.apply(i,arguments)}),r&&r(d,function(){return i.t.apply(i,arguments)})})(f,u)})};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 l(u,f){var d;if(Ma(f)!=="object"){for(var p=arguments.length,g=new Array(p>2?p-2:0),h=2;h<p;h++)g[h-2]=arguments[h];d=o.options.overloadTranslationOptionHandler([u,f].concat(g))}else d=kn({},f);d.lng=d.lng||l.lng,d.lngs=d.lngs||l.lngs,d.ns=d.ns||l.ns;var E=o.options.keySeparator||".",w=i?"".concat(i).concat(E).concat(u):u;return o.t(w,d)};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,l=this.languages[this.languages.length-1];if(o.toLowerCase()==="cimode")return!0;var u=function(d,p){var g=r.services.backendConnector.state["".concat(d,"|").concat(p)];return g===-1||g===2};if(i.precheck){var f=i.precheck(this,u);if(f!==void 0)return f}return!!this.hasResourceBundle(o,n)||!this.services.backendConnector.backend||!(!u(o,n)||a&&!u(l,n))}},{key:"loadNamespaces",value:function(n,r){var i=this,o=ap();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=ap();typeof n=="string"&&(n=[n]);var o=this.options.preload||[],a=n.filter(function(l){return o.indexOf(l)<0});return a.length?(this.options.preload=o.concat(a),this.loadResources(function(l){i.resolve(),r&&r(l)}),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]:Fv,o=kn({},this.options,r,{isClone:!0}),a=new t(o),l=["store","services","language"];return l.forEach(function(u){a[u]=n[u]}),a.services=kn({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new vO(a.services,a.options),a.translator.on("*",function(u){for(var f=arguments.length,d=new Array(f>1?f-1:0),p=1;p<f;p++)d[p-1]=arguments[p];a.emit.apply(a,[u].concat(d))}),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}(),Dc=new zee,yO="translation";function wr(e,t){Dc.addResourceBundle(e,yO,t,!0,!0)}function Vee(e){Dc.changeLanguage(e)}function Uee(e){return Dc.getResourceBundle(e,yO)}Dc.init({lng:"zh-CN",resources:{}});var we=Dc.t.bind(Dc),Hee={editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}},Wee={editor:{more:"\u66F4\u591A",justify:"\u5BF9\u9F50",indent:"\u7F29\u8FDB",image:"\u56FE\u7247",video:"\u89C6\u9891"}};wr("en",Hee),wr("zh-CN",Wee),wr("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"}}),wr("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 qee={type:"paragraph",renderElem:function(e,t,n){return Ue("p",null,t)}},Gee={type:"paragraph",elemToHtml:function(e,t){return t===""?"<p><br></p>":"<p>"+t+"</p>"}},Pv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Kee(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Iv(e){var t={exports:{}};return e(t,t.exports),t.exports}var za,Nv,Lv=function(e){return e&&e.Math==Math&&e},Ke=Lv(typeof globalThis=="object"&&globalThis)||Lv(typeof window=="object"&&window)||Lv(typeof self=="object"&&self)||Lv(typeof Pv=="object"&&Pv)||function(){return this}()||Function("return this")(),tn=function(e){try{return!!e()}catch{return!0}},Hi=!tn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),lp=Function.prototype.call,gn=lp.bind?lp.bind(lp):function(){return lp.apply(lp,arguments)},bO={}.propertyIsEnumerable,wO=Object.getOwnPropertyDescriptor,Yee=wO&&!bO.call({1:2},1)?function(e){var t=wO(this,e);return!!t&&t.enumerable}:bO,$O={f:Yee},X4=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},EO=Function.prototype,J4=EO.bind,Z4=EO.call,Xee=J4&&J4.bind(Z4),je=J4?function(e){return e&&Xee(Z4,e)}:function(e){return e&&function(){return Z4.apply(e,arguments)}},Jee=je({}.toString),Zee=je("".slice),Va=function(e){return Zee(Jee(e),8,-1)},Q4=Ke.Object,Qee=je("".split),Rv=tn(function(){return!Q4("z").propertyIsEnumerable(0)})?function(e){return Va(e)=="String"?Qee(e,""):Q4(e)}:Q4,ete=Ke.TypeError,gi=function(e){if(e==null)throw ete("Can't call method on "+e);return e},Ac=function(e){return Rv(gi(e))},nr=function(e){return typeof e=="function"},vi=function(e){return typeof e=="object"?e!==null:nr(e)},tte=function(e){return nr(e)?e:void 0},sp=function(e,t){return arguments.length<2?tte(Ke[e]):Ke[e]&&Ke[e][t]},CO=je({}.isPrototypeOf),e$=sp("navigator","userAgent")||"",SO=Ke.process,xO=Ke.Deno,DO=SO&&SO.versions||xO&&xO.version,AO=DO&&DO.v8;AO&&(Nv=(za=AO.split("."))[0]>0&&za[0]<4?1:+(za[0]+za[1])),!Nv&&e$&&(!(za=e$.match(/Edge\/(\d+)/))||za[1]>=74)&&(za=e$.match(/Chrome\/(\d+)/))&&(Nv=+za[1]);var t$=Nv,n$=!!Object.getOwnPropertySymbols&&!tn(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t$&&t$<41}),r$=n$&&!Symbol.sham&&typeof Symbol.iterator=="symbol",nte=Ke.Object,i$=r$?function(e){return typeof e=="symbol"}:function(e){var t=sp("Symbol");return nr(t)&&CO(t.prototype,nte(e))},rte=Ke.String,_O=function(e){try{return rte(e)}catch{return"Object"}},ite=Ke.TypeError,kO=function(e){if(nr(e))return e;throw ite(_O(e)+" is not a function")},Mv=function(e,t){var n=e[t];return n==null?void 0:kO(n)},ote=Ke.TypeError,ate=Object.defineProperty,o$=function(e,t){try{ate(Ke,e,{value:t,configurable:!0,writable:!0})}catch{Ke[e]=t}return t},Ua=Ke["__core-js_shared__"]||o$("__core-js_shared__",{}),a$=Iv(function(e){(e.exports=function(t,n){return Ua[t]||(Ua[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),lte=Ke.Object,up=function(e){return lte(gi(e))},ste=je({}.hasOwnProperty),mi=Object.hasOwn||function(e,t){return ste(up(e),t)},ute=0,cte=Math.random(),fte=je(1 .toString),OO=function(e){return"Symbol("+(e===void 0?"":e)+")_"+fte(++ute+cte,36)},cp=a$("wks"),As=Ke.Symbol,BO=As&&As.for,dte=r$?As:As&&As.withoutSetter||OO,Wr=function(e){if(!mi(cp,e)||!n$&&typeof cp[e]!="string"){var t="Symbol."+e;n$&&mi(As,e)?cp[e]=As[e]:cp[e]=r$&&BO?BO(t):dte(t)}return cp[e]},pte=Ke.TypeError,hte=Wr("toPrimitive"),gte=function(e,t){if(!vi(e)||i$(e))return e;var n,r=Mv(e,hte);if(r){if(t===void 0&&(t="default"),n=gn(r,e,t),!vi(n)||i$(n))return n;throw pte("Can't convert object to primitive value")}return t===void 0&&(t="number"),function(i,o){var a,l;if(o==="string"&&nr(a=i.toString)&&!vi(l=gn(a,i))||nr(a=i.valueOf)&&!vi(l=gn(a,i))||o!=="string"&&nr(a=i.toString)&&!vi(l=gn(a,i)))return l;throw ote("Can't convert object to primitive value")}(e,t)},l$=function(e){var t=gte(e,"string");return i$(t)?t:t+""},s$=Ke.document,vte=vi(s$)&&vi(s$.createElement),u$=function(e){return vte?s$.createElement(e):{}},TO=!Hi&&!tn(function(){return Object.defineProperty(u$("div"),"a",{get:function(){return 7}}).a!=7}),FO=Object.getOwnPropertyDescriptor,c$={f:Hi?FO:function(e,t){if(e=Ac(e),t=l$(t),TO)try{return FO(e,t)}catch{}if(mi(e,t))return X4(!gn($O.f,e,t),e[t])}},mte=Ke.String,yte=Ke.TypeError,qr=function(e){if(vi(e))return e;throw yte(mte(e)+" is not an object")},bte=Ke.TypeError,PO=Object.defineProperty,_c={f:Hi?PO:function(e,t,n){if(qr(e),t=l$(t),qr(n),TO)try{return PO(e,t,n)}catch{}if("get"in n||"set"in n)throw bte("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},kc=Hi?function(e,t,n){return _c.f(e,t,X4(1,n))}:function(e,t,n){return e[t]=n,e},wte=je(Function.toString);nr(Ua.inspectSource)||(Ua.inspectSource=function(e){return wte(e)});var jv,fp,zv,f$=Ua.inspectSource,IO=Ke.WeakMap,$te=nr(IO)&&/native code/.test(f$(IO)),NO=a$("keys"),LO=function(e){return NO[e]||(NO[e]=OO(e))},d$={},p$=Ke.TypeError,Ete=Ke.WeakMap;if($te||Ua.state){var _s=Ua.state||(Ua.state=new Ete),Cte=je(_s.get),RO=je(_s.has),Ste=je(_s.set);jv=function(e,t){if(RO(_s,e))throw new p$("Object already initialized");return t.facade=e,Ste(_s,e,t),t},fp=function(e){return Cte(_s,e)||{}},zv=function(e){return RO(_s,e)}}else{var Oc=LO("state");d$[Oc]=!0,jv=function(e,t){if(mi(e,Oc))throw new p$("Object already initialized");return t.facade=e,kc(e,Oc,t),t},fp=function(e){return mi(e,Oc)?e[Oc]:{}},zv=function(e){return mi(e,Oc)}}var h$={set:jv,get:fp,has:zv,enforce:function(e){return zv(e)?fp(e):jv(e,{})},getterFor:function(e){return function(t){var n;if(!vi(t)||(n=fp(t)).type!==e)throw p$("Incompatible receiver, "+e+" required");return n}}},MO=Function.prototype,xte=Hi&&Object.getOwnPropertyDescriptor,g$=mi(MO,"name"),Vv={EXISTS:g$,PROPER:g$&&function(){}.name==="something",CONFIGURABLE:g$&&(!Hi||Hi&&xte(MO,"name").configurable)},dp=Iv(function(e){var t=Vv.CONFIGURABLE,n=h$.get,r=h$.enforce,i=String(String).split("String");(e.exports=function(o,a,l,u){var f,d=!!u&&!!u.unsafe,p=!!u&&!!u.enumerable,g=!!u&&!!u.noTargetGet,h=u&&u.name!==void 0?u.name:a;nr(l)&&(String(h).slice(0,7)==="Symbol("&&(h="["+String(h).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!mi(l,"name")||t&&l.name!==h)&&kc(l,"name",h),(f=r(l)).source||(f.source=i.join(typeof h=="string"?h:""))),o!==Ke?(d?!g&&o[a]&&(p=!0):delete o[a],p?o[a]=l:kc(o,a,l)):p?o[a]=l:o$(a,l)})(Function.prototype,"toString",function(){return nr(this)&&n(this).source||f$(this)})}),Dte=Math.ceil,Ate=Math.floor,Bc=function(e){var t=+e;return t!=t||t===0?0:(t>0?Ate:Dte)(t)},_te=Math.max,kte=Math.min,pp=function(e,t){var n=Bc(e);return n<0?_te(n+t,0):kte(n,t)},Ote=Math.min,hp=function(e){return e>0?Ote(Bc(e),9007199254740991):0},Uv=function(e){return hp(e.length)},jO=function(e){return function(t,n,r){var i,o=Ac(t),a=Uv(o),l=pp(r,a);if(e&&n!=n){for(;a>l;)if((i=o[l++])!=i)return!0}else for(;a>l;l++)if((e||l in o)&&o[l]===n)return e||l||0;return!e&&-1}},zO={includes:jO(!0),indexOf:jO(!1)},Bte=zO.indexOf,VO=je([].push),UO=function(e,t){var n,r=Ac(e),i=0,o=[];for(n in r)!mi(d$,n)&&mi(r,n)&&VO(o,n);for(;t.length>i;)mi(r,n=t[i++])&&(~Bte(o,n)||VO(o,n));return o},Hv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Tte=Hv.concat("length","prototype"),Fte={f:Object.getOwnPropertyNames||function(e){return UO(e,Tte)}},HO={f:Object.getOwnPropertySymbols},Pte=je([].concat),Ite=sp("Reflect","ownKeys")||function(e){var t=Fte.f(qr(e)),n=HO.f;return n?Pte(t,n(e)):t},Nte=function(e,t){for(var n=Ite(t),r=_c.f,i=c$.f,o=0;o<n.length;o++){var a=n[o];mi(e,a)||r(e,a,i(t,a))}},Lte=/#|\.prototype\./,gp=function(e,t){var n=Mte[Rte(e)];return n==zte||n!=jte&&(nr(t)?tn(t):!!t)},Rte=gp.normalize=function(e){return String(e).replace(Lte,".").toLowerCase()},Mte=gp.data={},jte=gp.NATIVE="N",zte=gp.POLYFILL="P",Vte=gp,Ute=c$.f,Mn=function(e,t){var n,r,i,o,a,l=e.target,u=e.global,f=e.stat;if(n=u?Ke:f?Ke[l]||o$(l,{}):(Ke[l]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=Ute(n,r))&&a.value:n[r],!Vte(u?r:l+(f?".":"#")+r,e.forced)&&i!==void 0){if(typeof o==typeof i)continue;Nte(o,i)}(e.sham||i&&i.sham)&&kc(o,"sham",!0),dp(n,r,o,e)}},WO=je(je.bind),Wv=Array.isArray||function(e){return Va(e)=="Array"},qO={};qO[Wr("toStringTag")]="z";var v$=String(qO)==="[object z]",Hte=Wr("toStringTag"),Wte=Ke.Object,qte=Va(function(){return arguments}())=="Arguments",m$=v$?Va: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=Wte(e),Hte))=="string"?n:qte?Va(t):(r=Va(t))=="Object"&&nr(t.callee)?"Arguments":r},GO=function(){},Gte=[],KO=sp("Reflect","construct"),y$=/^\s*(?:class|function)\b/,Kte=je(y$.exec),Yte=!y$.exec(GO),vp=function(e){if(!nr(e))return!1;try{return KO(GO,Gte,e),!0}catch{return!1}},b$=!KO||tn(function(){var e;return vp(vp.call)||!vp(Object)||!vp(function(){e=!0})||e})?function(e){if(!nr(e))return!1;switch(m$(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Yte||!!Kte(y$,f$(e))}:vp,Xte=Wr("species"),YO=Ke.Array,Jte=function(e,t){return new(function(n){var r;return Wv(n)&&(r=n.constructor,(b$(r)&&(r===YO||Wv(r.prototype))||vi(r)&&(r=r[Xte])===null)&&(r=void 0)),r===void 0?YO:r}(e))(t===0?0:t)},XO=je([].push),Ha=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,o=e==6,a=e==7,l=e==5||o;return function(u,f,d,p){for(var g,h,E=up(u),w=Rv(E),y=function(A,B){return kO(A),B===void 0?A:WO?WO(A,B):function(){return A.apply(B,arguments)}}(f,d),$=Uv(w),m=0,S=p||Jte,D=t?S(u,$):n||a?S(u,0):void 0;$>m;m++)if((l||m in w)&&(h=y(g=w[m],m,E),e))if(t)D[m]=h;else if(h)switch(e){case 3:return!0;case 5:return g;case 6:return m;case 2:XO(D,g)}else switch(e){case 4:return!1;case 7:XO(D,g)}return o?-1:r||i?i:D}},qv={forEach:Ha(0),map:Ha(1),filter:Ha(2),some:Ha(3),every:Ha(4),find:Ha(5),findIndex:Ha(6),filterReject:Ha(7)},Zte=Wr("species"),w$=function(e){return t$>=51||!tn(function(){var t=[];return(t.constructor={})[Zte]=function(){return{foo:1}},t[e](Boolean).foo!==1})},Qte=qv.filter;Mn({target:"Array",proto:!0,forced:!w$("filter")},{filter:function(e){return Qte(this,e,arguments.length>1?arguments[1]:void 0)}});var ene=v$?{}.toString:function(){return"[object "+m$(this)+"]"};v$||dp(Object.prototype,"toString",ene,{unsafe:!0});var Gv,tne=Ke.String,nn=function(e){if(m$(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return tne(e)},JO=function(){var e=qr(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},$$=Ke.RegExp,E$=tn(function(){var e=$$("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),nne=E$||tn(function(){return!$$("a","y").sticky}),ZO={BROKEN_CARET:E$||tn(function(){var e=$$("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:nne,UNSUPPORTED_Y:E$},Tc=Object.keys||function(e){return UO(e,Hv)},rne=Hi?Object.defineProperties:function(e,t){qr(e);for(var n,r=Ac(t),i=Tc(t),o=i.length,a=0;o>a;)_c.f(e,n=i[a++],r[n]);return e},ine=sp("document","documentElement"),QO=LO("IE_PROTO"),C$=function(){},e9=function(e){return"<script>"+e+"<\/script>"},t9=function(e){e.write(e9("")),e.close();var t=e.parentWindow.Object;return e=null,t},Kv=function(){try{Gv=new ActiveXObject("htmlfile")}catch{}var e,t;Kv=typeof document<"u"?document.domain&&Gv?t9(Gv):((t=u$("iframe")).style.display="none",ine.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(e9("document.F=Object")),e.close(),e.F):t9(Gv);for(var n=Hv.length;n--;)delete Kv.prototype[Hv[n]];return Kv()};d$[QO]=!0;var n9,S$,r9=Object.create||function(e,t){var n;return e!==null?(C$.prototype=qr(e),n=new C$,C$.prototype=null,n[QO]=e):n=Kv(),t===void 0?n:rne(n,t)},one=Ke.RegExp,ane=tn(function(){var e=one(".","s");return!(e.dotAll&&e.exec(`
74
+ \u6CA1\u6709\u914D\u7F6E fieldName`);var ee=n;g&&(ee=function(se,xe){var ve=vt(se.split("#"),2),Oe=ve[0],Te=ve[1],Ne=[];e2(xe,function(Ae,ie){Ne.push(ie+"="+Ae)});var Re=Ne.join("&");return Oe=Oe.indexOf("?")>0?Oe+"&"+Re:Oe+"?"+Re,Te?Oe+"#"+Te:Oe}(ee,d));var ge=new yd({onBeforeUpload:D,restrictions:{maxFileSize:a,maxNumberOfFiles:u},meta:d}).use(FY,{endpoint:ee,headers:E,formData:!0,fieldName:i,bundle:!0,withCredentials:y,timeout:m});return ge.on("upload-success",function(se,xe){var ve=xe.body,Oe=ve===void 0?{}:ve;try{B(se,Oe)}catch(Te){console.error("wangEditor upload file - onSuccess error",Te)}ge.removeFile(se.id)}),ge.on("progress",function(se){se<1||ce(se)}),ge.on("upload-error",function(se,xe,ve){try{U(se,xe,ve)}catch(Oe){console.error("wangEditor upload file - onError error",Oe)}ge.removeFile(se.id)}),ge.on("restriction-failed",function(se,xe){try{U(se,xe)}catch(ve){console.error("wangEditor upload file - onError error",ve)}ge.removeFile(se.id)}),ge}function Ma(e){return Ma=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},Ma(e)}function Aee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kn(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){Aee(e,i,n[i])})}return e}function Yo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sO(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 Xo(e,t,n){return t&&sO(e.prototype,t),n&&sO(e,n),e}function Ds(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function op(e,t){if(t&&(Ma(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ds(e)}function Sc(e){return Sc=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Sc(e)}function G4(e,t){return G4=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},G4(e,t)}function Ov(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&&G4(e,t)}Gn&&!Cee&&See(aO,"name",{configurable:!0,get:function(){try{return Dee(lO,xee(this))[1]}catch{return""}}});var _ee={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)}},Jo=new(function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Yo(this,e),this.init(t,n)}return Xo(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||_ee,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,kn({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),ja=function(){function e(){Yo(this,e),this.observers={}}return Xo(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(l){l.apply(void 0,r)})}if(this.observers["*"]){var a=[].concat(this.observers["*"]);a.forEach(function(l){l.apply(l,[t].concat(r))})}}}]),e}();function ap(){var e,t,n=new Promise(function(r,i){e=r,t=i});return n.resolve=e,n.reject=t,n}function uO(e){return e==null?"":""+e}function kee(e,t,n){e.forEach(function(r){t[r]&&(n[r]=t[r])})}function K4(e,t,n){function r(l){return l&&l.indexOf("###")>-1?l.replace(/###/g,"."):l}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 cO(e,t,n){var r=K4(e,t,Object);r.obj[r.k]=n}function Bv(e,t){var n=K4(e,t),r=n.obj,i=n.k;if(r)return r[i]}function fO(e,t,n){var r=Bv(e,n);return r!==void 0?r:Bv(t,n)}function dO(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]):dO(e[r],t[r],n):e[r]=t[r]);return e}function xc(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Oee={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Bee(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return Oee[t]}):e}var Tv=typeof window<"u"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function pO(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,l=r.slice(o,o+a).join(n),u=i[l];u===void 0&&r.length>o+a;)a++,u=i[l=r.slice(o,o+a).join(n)];if(u===void 0)return;if(typeof u=="string")return u;if(l&&typeof u[l]=="string")return u[l];var f=r.slice(o+a).join(n);return f?pO(u,f,n):void 0}i=i[r[o]]}return i}}var Tee=function(e){function t(n){var r,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Yo(this,t),r=op(this,Sc(t).call(this)),Tv&&ja.call(Ds(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 Ov(t,ja),Xo(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,l=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure,u=[n,r];i&&typeof i!="string"&&(u=u.concat(i)),i&&typeof i=="string"&&(u=u.concat(a?i.split(a):i)),n.indexOf(".")>-1&&(u=n.split("."));var f=Bv(this.data,u);return f||!l||typeof i!="string"?f:pO(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},l=this.options.keySeparator;l===void 0&&(l=".");var u=[n,r];i&&(u=u.concat(l?i.split(l):i)),n.indexOf(".")>-1&&(o=r,r=(u=n.split("."))[1]),this.addNamespaces(r),cO(this.data,u,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 l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},u=[n,r];n.indexOf(".")>-1&&(o=i,i=r,r=(u=n.split("."))[1]),this.addNamespaces(r);var f=Bv(this.data,u)||{};o?dO(f,i,a):f=kn({},f,i),cO(this.data,u,f),l.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"?kn({},{},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}(),hO={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}},gO={},vO=function(e){function t(n){var r,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Yo(this,t),r=op(this,Sc(t).call(this)),Tv&&ja.call(Ds(r)),kee(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,Ds(r)),r.options=i,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.logger=Jo.create("translator"),r}return Ov(t,ja),Xo(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 l=n.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:n,namespaces:a};var u=n.split(i);(i!==o||i===o&&this.options.ns.indexOf(u[0])>-1)&&(a=u.shift()),n=u.join(o)}return typeof a=="string"&&(a=[a]),{key:n,namespaces:a}}},{key:"translate",value:function(n,r,i){var o=this;if(Ma(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,l=this.extractFromKey(n[n.length-1],r),u=l.key,f=l.namespaces,d=f[f.length-1],p=r.lng||this.language,g=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p&&p.toLowerCase()==="cimode"){if(g){var h=r.nsSeparator||this.options.nsSeparator;return d+h+u}return u}var E=this.resolve(n,r),w=E&&E.res,y=E&&E.usedKey||u,$=E&&E.exactUsedKey||u,m=Object.prototype.toString.apply(w),S=["[object Number]","[object Function]","[object RegExp]"],D=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,A=!this.i18nFormat||this.i18nFormat.handleAsObject,B=typeof w!="string"&&typeof w!="boolean"&&typeof w!="number";if(A&&w&&B&&S.indexOf(m)<0&&(typeof D!="string"||m!=="[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(y,w,kn({},r,{ns:f})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(a){var P=m==="[object Array]",U=P?[]:{},Y=P?$:y;for(var ce in w)if(Object.prototype.hasOwnProperty.call(w,ce)){var ee="".concat(Y).concat(a).concat(ce);U[ce]=this.translate(ee,kn({},r,{joinArrays:!1,ns:f})),U[ce]===ee&&(U[ce]=w[ce])}w=U}}else if(A&&typeof D=="string"&&m==="[object Array]")(w=w.join(D))&&(w=this.extendTranslation(w,n,r,i));else{var ge=!1,se=!1,xe=r.count!==void 0&&typeof r.count!="string",ve=t.hasDefaultValue(r),Oe=xe?this.pluralResolver.getSuffix(p,r.count):"",Te=r["defaultValue".concat(Oe)]||r.defaultValue;!this.isValidLookup(w)&&ve&&(ge=!0,w=Te),this.isValidLookup(w)||(se=!0,w=u);var Ne=r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,Re=Ne&&se?void 0:w,Ae=ve&&Te!==w&&this.options.updateMissing;if(se||ge||Ae){if(this.logger.log(Ae?"updateKey":"missingKey",p,d,u,Ae?Te:w),a){var ie=this.resolve(u,kn({},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 R=[],M=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&M&&M[0])for(var T=0;T<M.length;T++)R.push(M[T]);else this.options.saveMissingTo==="all"?R=this.languageUtils.toResolveHierarchy(r.lng||this.language):R.push(r.lng||this.language);var L=function(q,O,J){o.options.missingKeyHandler?o.options.missingKeyHandler(q,d,O,Ae?J:Re,Ae,r):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(q,d,O,Ae?J:Re,Ae,r),o.emit("missingKey",q,d,O,w)};this.options.saveMissing&&(this.options.saveMissingPlurals&&xe?R.forEach(function(q){o.pluralResolver.getSuffixes(q).forEach(function(O){L([q],u+O,r["defaultValue".concat(O)]||Te)})}):L(R,u,Te))}w=this.extendTranslation(w,n,r,E,i),se&&w===u&&this.options.appendNamespaceToMissingKey&&(w="".concat(d,":").concat(u)),(se||ge)&&this.options.parseMissingKeyHandler&&(w=this.options.parseMissingKeyHandler(w))}return w}},{key:"extendTranslation",value:function(n,r,i,o,a){var l=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(kn({},i,{interpolation:kn({},this.options.interpolation,i.interpolation)}));var u,f=i.interpolation&&i.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(f){var d=n.match(this.interpolator.nestingRegexp);u=d&&d.length}var p=i.replace&&typeof i.replace!="string"?i.replace:i;if(this.options.interpolation.defaultVariables&&(p=kn({},this.options.interpolation.defaultVariables,p)),n=this.interpolator.interpolate(n,p,i.lng||this.language,i),f){var g=n.match(this.interpolator.nestingRegexp);u<(g&&g.length)&&(i.nest=!1)}i.nest!==!1&&(n=this.interpolator.nest(n,function(){for(var w=arguments.length,y=new Array(w),$=0;$<w;$++)y[$]=arguments[$];return a&&a[0]===y[0]&&!i.context?(l.logger.warn("It seems you are nesting recursively key: ".concat(y[0]," in key: ").concat(r[0])),null):l.translate.apply(l,y.concat([r]))},i)),i.interpolation&&this.interpolator.reset()}var h=i.postProcess||this.options.postProcess,E=typeof h=="string"?[h]:h;return n!=null&&E&&E.length&&i.applyPostProcessor!==!1&&(n=hO.handle(E,n,r,this.options&&this.options.postProcessPassResolved?kn({i18nResolved:o},i):i,this)),n}},{key:"resolve",value:function(n){var r,i,o,a,l,u=this,f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof n=="string"&&(n=[n]),n.forEach(function(d){if(!u.isValidLookup(r)){var p=u.extractFromKey(d,f),g=p.key;i=g;var h=p.namespaces;u.options.fallbackNS&&(h=h.concat(u.options.fallbackNS));var E=f.count!==void 0&&typeof f.count!="string",w=f.context!==void 0&&(typeof f.context=="string"||typeof f.context=="number")&&f.context!=="",y=f.lngs?f.lngs:u.languageUtils.toResolveHierarchy(f.lng||u.language,f.fallbackLng);h.forEach(function($){u.isValidLookup(r)||(l=$,!gO["".concat(y[0],"-").concat($)]&&u.utils&&u.utils.hasLoadedNamespace&&!u.utils.hasLoadedNamespace(l)&&(gO["".concat(y[0],"-").concat($)]=!0,u.logger.warn('key "'.concat(i,'" for languages "').concat(y.join(", "),`" won't get resolved as namespace "`).concat(l,'" 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!!!")),y.forEach(function(m){if(!u.isValidLookup(r)){a=m;var S,D,A=g,B=[A];for(u.i18nFormat&&u.i18nFormat.addLookupKeys?u.i18nFormat.addLookupKeys(B,g,m,$,f):(E&&(S=u.pluralResolver.getSuffix(m,f.count)),E&&w&&B.push(A+S),w&&B.push(A+="".concat(u.options.contextSeparator).concat(f.context)),E&&B.push(A+=S));D=B.pop();)u.isValidLookup(r)||(o=D,r=u.getResource(m,$,D,f))}}))})}}),{res:r,usedKey:i,exactUsedKey:o,usedLng:a,usedNS:l}}},{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 Y4(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Fee=function(){function e(t){Yo(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Jo.create("languageUtils")}return Xo(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]=Y4(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]=Y4(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=Y4(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(l){l&&(r.isSupportedCode(l)?o.push(l):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(l)))};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(l){o.indexOf(l)<0&&a(r.formatLanguageCode(l))}),o}}]),e}(),Pee=[{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}],Iee={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 Nee(){var e={};return Pee.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:Iee[t.fc]}})}),e}var Lee=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Yo(this,e),this.languageUtils=t,this.options=n,this.logger=Jo.create("pluralResolver"),this.rules=Nee()}return Xo(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 l=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()):l():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&i.numbers.length===2&&i.numbers[0]===1?l():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(t)),""}}]),e}(),Ree=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Yo(this,e),this.logger=Jo.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return Xo(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:Bee,this.escapeValue=n.escapeValue===void 0||n.escapeValue,this.useRawValueToEscape=n.useRawValueToEscape!==void 0&&n.useRawValueToEscape,this.prefix=n.prefix?xc(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?xc(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?xc(n.nestingPrefix):n.nestingPrefixEscaped||xc("$t("),this.nestingSuffix=n.nestingSuffix?xc(n.nestingSuffix):n.nestingSuffixEscaped||xc(")"),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,l,u=this,f=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function d(w){return w.replace(/\$/g,"$$$$")}var p=function(w){if(w.indexOf(u.formatSeparator)<0){var y=fO(n,f,w);return u.alwaysFormat?u.format(y,void 0,r,kn({},i,n,{interpolationkey:w})):y}var $=w.split(u.formatSeparator),m=$.shift().trim(),S=$.join(u.formatSeparator).trim();return u.format(fO(n,f,m),S,r,kn({},i,n,{interpolationkey:m}))};this.resetRegExp();var g=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,h=i&&i.interpolation&&i.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,E=[{regex:this.regexpUnescape,safeValue:function(w){return d(w)}},{regex:this.regexp,safeValue:function(w){return u.escapeValue?d(u.escape(w)):d(w)}}];return E.forEach(function(w){for(l=0;o=w.regex.exec(t);){if((a=p(o[1].trim()))===void 0)if(typeof g=="function"){var y=g(t,o,i);a=typeof y=="string"?y:""}else{if(h){a=o[0];continue}u.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(t)),a=""}else typeof a=="string"||u.useRawValueToEscape||(a=uO(a));var $=w.safeValue(a);if(t=t.replace(o[0],$),h?(w.regex.lastIndex+=$.length,w.regex.lastIndex-=o[0].length):w.regex.lastIndex=0,++l>=u.maxReplaces)break}}),t}},{key:"nest",value:function(t,n){var r,i,o=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=kn({},a);function u(g,h){var E=this.nestingOptionsSeparator;if(g.indexOf(E)<0)return g;var w=g.split(new RegExp("".concat(E,"[ ]*{"))),y="{".concat(w[1]);g=w[0],y=(y=this.interpolate(y,l)).replace(/'/g,'"');try{l=JSON.parse(y),h&&(l=kn({},h,l))}catch($){return this.logger.warn("failed parsing options string in nesting for key ".concat(g),$),"".concat(g).concat(E).concat(y)}return delete l.defaultValue,g}for(l.applyPostProcessor=!1,delete l.defaultValue;r=this.nestingRegexp.exec(t);){var f=[],d=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){var p=r[1].split(this.formatSeparator).map(function(g){return g.trim()});r[1]=p.shift(),f=p,d=!0}if((i=n(u.call(this,r[1].trim(),l),l))&&r[0]===t&&typeof i!="string")return i;typeof i!="string"&&(i=uO(i)),i||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(t)),i=""),d&&(i=f.reduce(function(g,h){return o.format(g,h,a.lng,kn({},a,{interpolationkey:r[1].trim()}))},i.trim())),t=t.replace(r[0],i),this.regexp.lastIndex=0}return t}}]),e}(),Mee=function(e){function t(n,r,i){var o,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Yo(this,t),o=op(this,Sc(t).call(this)),Tv&&ja.call(Ds(o)),o.backend=n,o.store=r,o.services=i,o.languageUtils=i.languageUtils,o.options=a,o.logger=Jo.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(i,a.backend,a),o}return Ov(t,ja),Xo(t,[{key:"queueLoad",value:function(n,r,i,o){var a=this,l=[],u=[],f=[],d=[];return n.forEach(function(p){var g=!0;r.forEach(function(h){var E="".concat(p,"|").concat(h);!i.reload&&a.store.hasResourceBundle(p,h)?a.state[E]=2:a.state[E]<0||(a.state[E]===1?u.indexOf(E)<0&&u.push(E):(a.state[E]=1,g=!1,u.indexOf(E)<0&&u.push(E),l.indexOf(E)<0&&l.push(E),d.indexOf(h)<0&&d.push(h)))}),g||f.push(p)}),(l.length||u.length)&&this.queue.push({pending:u,loaded:{},errors:[],callback:o}),{toLoad:l,pending:u,toLoadLanguages:f,toLoadNamespaces:d}}},{key:"loaded",value:function(n,r,i){var o=n.split("|"),a=o[0],l=o[1];r&&this.emit("failedLoading",a,l,r),i&&this.store.addResourceBundle(a,l,i),this.state[n]=r?-1:2;var u={};this.queue.forEach(function(f){(function(d,p,g,h){var E=K4(d,p,Object),w=E.obj,y=E.k;w[y]=w[y]||[],h&&(w[y]=w[y].concat(g)),h||w[y].push(g)})(f.loaded,[a],l),function(d,p){for(var g=d.indexOf(p);g!==-1;)d.splice(g,1),g=d.indexOf(p)}(f.pending,n),r&&f.errors.push(r),f.pending.length!==0||f.done||(Object.keys(f.loaded).forEach(function(d){u[d]||(u[d]=[]),f.loaded[d].length&&f.loaded[d].forEach(function(p){u[d].indexOf(p)<0&&u[d].push(p)})}),f.done=!0,f.errors.length?f.callback(f.errors):f.callback())}),this.emit("loaded",u),this.queue=this.queue.filter(function(f){return!f.done})}},{key:"read",value:function(n,r,i){var o=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:350,u=arguments.length>5?arguments[5]:void 0;return n.length?this.backend[i](n,r,function(f,d){f&&d&&a<5?setTimeout(function(){o.read.call(o,n,r,i,a+1,2*l,u)},l):u(f,d)}):u(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 l=this.queueLoad(n,r,o,a);if(!l.toLoad.length)return l.pending.length||a(),null;l.toLoad.forEach(function(u){i.loadOne(u)})}},{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],l=o[1];this.read(a,l,"read",void 0,void 0,function(u,f){u&&r.logger.warn("".concat(i,"loading namespace ").concat(l," for language ").concat(a," failed"),u),!u&&f&&r.logger.log("".concat(i,"loaded namespace ").concat(l," for language ").concat(a),f),r.loaded(n,u,f)})}},{key:"saveMissing",value:function(n,r,i,o,a){var l=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,kn({},l,{isUpdate:a})),n&&n[0]&&this.store.addResource(n[0],r,i,o))}}]),t}();function jee(){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(Ma(e[1])==="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),Ma(e[2])==="object"||Ma(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 mO(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 Fv(){}var zee=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(Yo(this,t),n=op(this,Sc(t).call(this)),Tv&&ja.call(Ds(n)),n.options=mO(r),n.services={},n.logger=Jo,n.modules={external:[]},i&&!n.isInitialized&&!r.isClone){if(!n.options.initImmediate)return n.init(r,i),op(n,Ds(n));setTimeout(function(){n.init(r,i)},0)}return n}return Ov(t,ja),Xo(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(h){return h?typeof h=="function"?new h:h: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=kn({},jee(),this.options,mO(r)),this.format=this.options.interpolation.format,i||(i=Fv),!this.options.isClone){this.modules.logger?Jo.init(o(this.modules.logger),this.options):Jo.init(null,this.options);var a=new Fee(this.options);this.store=new Tee(this.options.resources,this.options);var l=this.services;l.logger=Jo,l.resourceStore=this.store,l.languageUtils=a,l.pluralResolver=new Lee(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),l.interpolator=new Ree(this.options),l.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},l.backendConnector=new Mee(o(this.modules.backend),l.resourceStore,l,this.options),l.backendConnector.on("*",function(h){for(var E=arguments.length,w=new Array(E>1?E-1:0),y=1;y<E;y++)w[y-1]=arguments[y];n.emit.apply(n,[h].concat(w))}),this.modules.languageDetector&&(l.languageDetector=o(this.modules.languageDetector),l.languageDetector.init(l,this.options.detection,this.options)),this.modules.i18nFormat&&(l.i18nFormat=o(this.modules.i18nFormat),l.i18nFormat.init&&l.i18nFormat.init(this)),this.translator=new vO(this.services,this.options),this.translator.on("*",function(h){for(var E=arguments.length,w=new Array(E>1?E-1:0),y=1;y<E;y++)w[y-1]=arguments[y];n.emit.apply(n,[h].concat(w))}),this.modules.external.forEach(function(h){h.init&&h.init(n)})}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var f=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];f.forEach(function(h){n[h]=function(){var E;return(E=n.store)[h].apply(E,arguments)}});var d=["addResource","addResources","addResourceBundle","removeResourceBundle"];d.forEach(function(h){n[h]=function(){var E;return(E=n.store)[h].apply(E,arguments),n}});var p=ap(),g=function(){var h=function(E,w){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),p.resolve(w),i(E,w)};if(n.languages&&n.options.compatibilityAPI!=="v1"&&!n.isInitialized)return h(null,n.t.bind(n));n.changeLanguage(n.options.lng,h)};return this.options.resources||!this.options.initImmediate?g():setTimeout(g,0),p}},{key:"loadResources",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Fv,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 l=[],u=function(d){d&&r.services.languageUtils.toResolveHierarchy(d).forEach(function(p){l.indexOf(p)<0&&l.push(p)})};if(a)u(a);else{var f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.forEach(function(d){return u(d)})}this.options.preload&&this.options.preload.forEach(function(d){return u(d)}),this.services.backendConnector.load(l,this.options.ns,o)}else o(null)}},{key:"reloadResources",value:function(n,r,i){var o=ap();return n||(n=this.languages),r||(r=this.options.ns),i||(i=Fv),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"&&hO.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=ap();this.emit("languageChanging",n);var a=function(l){n||l||!i.services.languageDetector||(l=[]);var u=typeof l=="string"?l:i.services.languageUtils.getBestMatchFromCodes(l);u&&(i.language||(i.language=u,i.languages=i.services.languageUtils.toResolveHierarchy(u)),i.translator.language||i.translator.changeLanguage(u),i.services.languageDetector&&i.services.languageDetector.cacheUserLanguage(u)),i.loadResources(u,function(f){(function(d,p){p?(i.language=p,i.languages=i.services.languageUtils.toResolveHierarchy(p),i.translator.changeLanguage(p),i.isLanguageChangingTo=void 0,i.emit("languageChanged",p),i.logger.log("languageChanged",p)):i.isLanguageChangingTo=void 0,o.resolve(function(){return i.t.apply(i,arguments)}),r&&r(d,function(){return i.t.apply(i,arguments)})})(f,u)})};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 l(u,f){var d;if(Ma(f)!=="object"){for(var p=arguments.length,g=new Array(p>2?p-2:0),h=2;h<p;h++)g[h-2]=arguments[h];d=o.options.overloadTranslationOptionHandler([u,f].concat(g))}else d=kn({},f);d.lng=d.lng||l.lng,d.lngs=d.lngs||l.lngs,d.ns=d.ns||l.ns;var E=o.options.keySeparator||".",w=i?"".concat(i).concat(E).concat(u):u;return o.t(w,d)};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,l=this.languages[this.languages.length-1];if(o.toLowerCase()==="cimode")return!0;var u=function(d,p){var g=r.services.backendConnector.state["".concat(d,"|").concat(p)];return g===-1||g===2};if(i.precheck){var f=i.precheck(this,u);if(f!==void 0)return f}return!!this.hasResourceBundle(o,n)||!this.services.backendConnector.backend||!(!u(o,n)||a&&!u(l,n))}},{key:"loadNamespaces",value:function(n,r){var i=this,o=ap();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=ap();typeof n=="string"&&(n=[n]);var o=this.options.preload||[],a=n.filter(function(l){return o.indexOf(l)<0});return a.length?(this.options.preload=o.concat(a),this.loadResources(function(l){i.resolve(),r&&r(l)}),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]:Fv,o=kn({},this.options,r,{isClone:!0}),a=new t(o),l=["store","services","language"];return l.forEach(function(u){a[u]=n[u]}),a.services=kn({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new vO(a.services,a.options),a.translator.on("*",function(u){for(var f=arguments.length,d=new Array(f>1?f-1:0),p=1;p<f;p++)d[p-1]=arguments[p];a.emit.apply(a,[u].concat(d))}),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}(),Dc=new zee,yO="translation";function wr(e,t){Dc.addResourceBundle(e,yO,t,!0,!0)}function Vee(e){Dc.changeLanguage(e)}function Uee(e){return Dc.getResourceBundle(e,yO)}Dc.init({lng:"zh-CN",resources:{}});var we=Dc.t.bind(Dc),Hee={editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}},Wee={editor:{more:"\u66F4\u591A",justify:"\u5BF9\u9F50",indent:"\u7F29\u8FDB",image:"\u56FE\u7247",video:"\u89C6\u9891"}};wr("en",Hee),wr("zh-CN",Wee),wr("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"}}),wr("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 qee={type:"paragraph",renderElem:function(e,t,n){return Ue("p",null,t)}},Gee={type:"paragraph",elemToHtml:function(e,t){return t===""?"<p><br></p>":"<p>"+t+"</p>"}},Pv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Kee(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Iv(e){var t={exports:{}};return e(t,t.exports),t.exports}var za,Nv,Lv=function(e){return e&&e.Math==Math&&e},Ke=Lv(typeof globalThis=="object"&&globalThis)||Lv(typeof window=="object"&&window)||Lv(typeof self=="object"&&self)||Lv(typeof Pv=="object"&&Pv)||function(){return this}()||Function("return this")(),tn=function(e){try{return!!e()}catch{return!0}},Hi=!tn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),lp=Function.prototype.call,gn=lp.bind?lp.bind(lp):function(){return lp.apply(lp,arguments)},bO={}.propertyIsEnumerable,wO=Object.getOwnPropertyDescriptor,Yee=wO&&!bO.call({1:2},1)?function(e){var t=wO(this,e);return!!t&&t.enumerable}:bO,$O={f:Yee},X4=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},EO=Function.prototype,J4=EO.bind,Z4=EO.call,Xee=J4&&J4.bind(Z4),je=J4?function(e){return e&&Xee(Z4,e)}:function(e){return e&&function(){return Z4.apply(e,arguments)}},Jee=je({}.toString),Zee=je("".slice),Va=function(e){return Zee(Jee(e),8,-1)},Q4=Ke.Object,Qee=je("".split),Rv=tn(function(){return!Q4("z").propertyIsEnumerable(0)})?function(e){return Va(e)=="String"?Qee(e,""):Q4(e)}:Q4,ete=Ke.TypeError,gi=function(e){if(e==null)throw ete("Can't call method on "+e);return e},Ac=function(e){return Rv(gi(e))},nr=function(e){return typeof e=="function"},vi=function(e){return typeof e=="object"?e!==null:nr(e)},tte=function(e){return nr(e)?e:void 0},sp=function(e,t){return arguments.length<2?tte(Ke[e]):Ke[e]&&Ke[e][t]},CO=je({}.isPrototypeOf),e$=sp("navigator","userAgent")||"",SO=Ke.process,xO=Ke.Deno,DO=SO&&SO.versions||xO&&xO.version,AO=DO&&DO.v8;AO&&(Nv=(za=AO.split("."))[0]>0&&za[0]<4?1:+(za[0]+za[1])),!Nv&&e$&&(!(za=e$.match(/Edge\/(\d+)/))||za[1]>=74)&&(za=e$.match(/Chrome\/(\d+)/))&&(Nv=+za[1]);var t$=Nv,n$=!!Object.getOwnPropertySymbols&&!tn(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t$&&t$<41}),r$=n$&&!Symbol.sham&&typeof Symbol.iterator=="symbol",nte=Ke.Object,i$=r$?function(e){return typeof e=="symbol"}:function(e){var t=sp("Symbol");return nr(t)&&CO(t.prototype,nte(e))},rte=Ke.String,_O=function(e){try{return rte(e)}catch{return"Object"}},ite=Ke.TypeError,kO=function(e){if(nr(e))return e;throw ite(_O(e)+" is not a function")},Mv=function(e,t){var n=e[t];return n==null?void 0:kO(n)},ote=Ke.TypeError,ate=Object.defineProperty,o$=function(e,t){try{ate(Ke,e,{value:t,configurable:!0,writable:!0})}catch{Ke[e]=t}return t},Ua=Ke["__core-js_shared__"]||o$("__core-js_shared__",{}),a$=Iv(function(e){(e.exports=function(t,n){return Ua[t]||(Ua[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),lte=Ke.Object,up=function(e){return lte(gi(e))},ste=je({}.hasOwnProperty),mi=Object.hasOwn||function(e,t){return ste(up(e),t)},ute=0,cte=Math.random(),fte=je(1 .toString),OO=function(e){return"Symbol("+(e===void 0?"":e)+")_"+fte(++ute+cte,36)},cp=a$("wks"),As=Ke.Symbol,BO=As&&As.for,dte=r$?As:As&&As.withoutSetter||OO,Wr=function(e){if(!mi(cp,e)||!n$&&typeof cp[e]!="string"){var t="Symbol."+e;n$&&mi(As,e)?cp[e]=As[e]:cp[e]=r$&&BO?BO(t):dte(t)}return cp[e]},pte=Ke.TypeError,hte=Wr("toPrimitive"),gte=function(e,t){if(!vi(e)||i$(e))return e;var n,r=Mv(e,hte);if(r){if(t===void 0&&(t="default"),n=gn(r,e,t),!vi(n)||i$(n))return n;throw pte("Can't convert object to primitive value")}return t===void 0&&(t="number"),function(i,o){var a,l;if(o==="string"&&nr(a=i.toString)&&!vi(l=gn(a,i))||nr(a=i.valueOf)&&!vi(l=gn(a,i))||o!=="string"&&nr(a=i.toString)&&!vi(l=gn(a,i)))return l;throw ote("Can't convert object to primitive value")}(e,t)},l$=function(e){var t=gte(e,"string");return i$(t)?t:t+""},s$=Ke.document,vte=vi(s$)&&vi(s$.createElement),u$=function(e){return vte?s$.createElement(e):{}},TO=!Hi&&!tn(function(){return Object.defineProperty(u$("div"),"a",{get:function(){return 7}}).a!=7}),FO=Object.getOwnPropertyDescriptor,c$={f:Hi?FO:function(e,t){if(e=Ac(e),t=l$(t),TO)try{return FO(e,t)}catch{}if(mi(e,t))return X4(!gn($O.f,e,t),e[t])}},mte=Ke.String,yte=Ke.TypeError,qr=function(e){if(vi(e))return e;throw yte(mte(e)+" is not an object")},bte=Ke.TypeError,PO=Object.defineProperty,_c={f:Hi?PO:function(e,t,n){if(qr(e),t=l$(t),qr(n),TO)try{return PO(e,t,n)}catch{}if("get"in n||"set"in n)throw bte("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},kc=Hi?function(e,t,n){return _c.f(e,t,X4(1,n))}:function(e,t,n){return e[t]=n,e},wte=je(Function.toString);nr(Ua.inspectSource)||(Ua.inspectSource=function(e){return wte(e)});var jv,fp,zv,f$=Ua.inspectSource,IO=Ke.WeakMap,$te=nr(IO)&&/native code/.test(f$(IO)),NO=a$("keys"),LO=function(e){return NO[e]||(NO[e]=OO(e))},d$={},p$=Ke.TypeError,Ete=Ke.WeakMap;if($te||Ua.state){var _s=Ua.state||(Ua.state=new Ete),Cte=je(_s.get),RO=je(_s.has),Ste=je(_s.set);jv=function(e,t){if(RO(_s,e))throw new p$("Object already initialized");return t.facade=e,Ste(_s,e,t),t},fp=function(e){return Cte(_s,e)||{}},zv=function(e){return RO(_s,e)}}else{var Oc=LO("state");d$[Oc]=!0,jv=function(e,t){if(mi(e,Oc))throw new p$("Object already initialized");return t.facade=e,kc(e,Oc,t),t},fp=function(e){return mi(e,Oc)?e[Oc]:{}},zv=function(e){return mi(e,Oc)}}var h$={set:jv,get:fp,has:zv,enforce:function(e){return zv(e)?fp(e):jv(e,{})},getterFor:function(e){return function(t){var n;if(!vi(t)||(n=fp(t)).type!==e)throw p$("Incompatible receiver, "+e+" required");return n}}},MO=Function.prototype,xte=Hi&&Object.getOwnPropertyDescriptor,g$=mi(MO,"name"),Vv={EXISTS:g$,PROPER:g$&&function(){}.name==="something",CONFIGURABLE:g$&&(!Hi||Hi&&xte(MO,"name").configurable)},dp=Iv(function(e){var t=Vv.CONFIGURABLE,n=h$.get,r=h$.enforce,i=String(String).split("String");(e.exports=function(o,a,l,u){var f,d=!!u&&!!u.unsafe,p=!!u&&!!u.enumerable,g=!!u&&!!u.noTargetGet,h=u&&u.name!==void 0?u.name:a;nr(l)&&(String(h).slice(0,7)==="Symbol("&&(h="["+String(h).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!mi(l,"name")||t&&l.name!==h)&&kc(l,"name",h),(f=r(l)).source||(f.source=i.join(typeof h=="string"?h:""))),o!==Ke?(d?!g&&o[a]&&(p=!0):delete o[a],p?o[a]=l:kc(o,a,l)):p?o[a]=l:o$(a,l)})(Function.prototype,"toString",function(){return nr(this)&&n(this).source||f$(this)})}),Dte=Math.ceil,Ate=Math.floor,Bc=function(e){var t=+e;return t!=t||t===0?0:(t>0?Ate:Dte)(t)},_te=Math.max,kte=Math.min,pp=function(e,t){var n=Bc(e);return n<0?_te(n+t,0):kte(n,t)},Ote=Math.min,hp=function(e){return e>0?Ote(Bc(e),9007199254740991):0},Uv=function(e){return hp(e.length)},jO=function(e){return function(t,n,r){var i,o=Ac(t),a=Uv(o),l=pp(r,a);if(e&&n!=n){for(;a>l;)if((i=o[l++])!=i)return!0}else for(;a>l;l++)if((e||l in o)&&o[l]===n)return e||l||0;return!e&&-1}},zO={includes:jO(!0),indexOf:jO(!1)},Bte=zO.indexOf,VO=je([].push),UO=function(e,t){var n,r=Ac(e),i=0,o=[];for(n in r)!mi(d$,n)&&mi(r,n)&&VO(o,n);for(;t.length>i;)mi(r,n=t[i++])&&(~Bte(o,n)||VO(o,n));return o},Hv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Tte=Hv.concat("length","prototype"),Fte={f:Object.getOwnPropertyNames||function(e){return UO(e,Tte)}},HO={f:Object.getOwnPropertySymbols},Pte=je([].concat),Ite=sp("Reflect","ownKeys")||function(e){var t=Fte.f(qr(e)),n=HO.f;return n?Pte(t,n(e)):t},Nte=function(e,t){for(var n=Ite(t),r=_c.f,i=c$.f,o=0;o<n.length;o++){var a=n[o];mi(e,a)||r(e,a,i(t,a))}},Lte=/#|\.prototype\./,gp=function(e,t){var n=Mte[Rte(e)];return n==zte||n!=jte&&(nr(t)?tn(t):!!t)},Rte=gp.normalize=function(e){return String(e).replace(Lte,".").toLowerCase()},Mte=gp.data={},jte=gp.NATIVE="N",zte=gp.POLYFILL="P",Vte=gp,Ute=c$.f,Mn=function(e,t){var n,r,i,o,a,l=e.target,u=e.global,f=e.stat;if(n=u?Ke:f?Ke[l]||o$(l,{}):(Ke[l]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=Ute(n,r))&&a.value:n[r],!Vte(u?r:l+(f?".":"#")+r,e.forced)&&i!==void 0){if(typeof o==typeof i)continue;Nte(o,i)}(e.sham||i&&i.sham)&&kc(o,"sham",!0),dp(n,r,o,e)}},WO=je(je.bind),Wv=Array.isArray||function(e){return Va(e)=="Array"},qO={};qO[Wr("toStringTag")]="z";var v$=String(qO)==="[object z]",Hte=Wr("toStringTag"),Wte=Ke.Object,qte=Va(function(){return arguments}())=="Arguments",m$=v$?Va: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=Wte(e),Hte))=="string"?n:qte?Va(t):(r=Va(t))=="Object"&&nr(t.callee)?"Arguments":r},GO=function(){},Gte=[],KO=sp("Reflect","construct"),y$=/^\s*(?:class|function)\b/,Kte=je(y$.exec),Yte=!y$.exec(GO),vp=function(e){if(!nr(e))return!1;try{return KO(GO,Gte,e),!0}catch{return!1}},b$=!KO||tn(function(){var e;return vp(vp.call)||!vp(Object)||!vp(function(){e=!0})||e})?function(e){if(!nr(e))return!1;switch(m$(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Yte||!!Kte(y$,f$(e))}:vp,Xte=Wr("species"),YO=Ke.Array,Jte=function(e,t){return new(function(n){var r;return Wv(n)&&(r=n.constructor,(b$(r)&&(r===YO||Wv(r.prototype))||vi(r)&&(r=r[Xte])===null)&&(r=void 0)),r===void 0?YO:r}(e))(t===0?0:t)},XO=je([].push),Ha=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,o=e==6,a=e==7,l=e==5||o;return function(u,f,d,p){for(var g,h,E=up(u),w=Rv(E),y=function(A,B){return kO(A),B===void 0?A:WO?WO(A,B):function(){return A.apply(B,arguments)}}(f,d),$=Uv(w),m=0,S=p||Jte,D=t?S(u,$):n||a?S(u,0):void 0;$>m;m++)if((l||m in w)&&(h=y(g=w[m],m,E),e))if(t)D[m]=h;else if(h)switch(e){case 3:return!0;case 5:return g;case 6:return m;case 2:XO(D,g)}else switch(e){case 4:return!1;case 7:XO(D,g)}return o?-1:r||i?i:D}},qv={forEach:Ha(0),map:Ha(1),filter:Ha(2),some:Ha(3),every:Ha(4),find:Ha(5),findIndex:Ha(6),filterReject:Ha(7)},Zte=Wr("species"),w$=function(e){return t$>=51||!tn(function(){var t=[];return(t.constructor={})[Zte]=function(){return{foo:1}},t[e](Boolean).foo!==1})},Qte=qv.filter;Mn({target:"Array",proto:!0,forced:!w$("filter")},{filter:function(e){return Qte(this,e,arguments.length>1?arguments[1]:void 0)}});var ene=v$?{}.toString:function(){return"[object "+m$(this)+"]"};v$||dp(Object.prototype,"toString",ene,{unsafe:!0});var Gv,tne=Ke.String,nn=function(e){if(m$(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return tne(e)},JO=function(){var e=qr(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},$$=Ke.RegExp,E$=tn(function(){var e=$$("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),nne=E$||tn(function(){return!$$("a","y").sticky}),ZO={BROKEN_CARET:E$||tn(function(){var e=$$("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:nne,UNSUPPORTED_Y:E$},Tc=Object.keys||function(e){return UO(e,Hv)},rne=Hi?Object.defineProperties:function(e,t){qr(e);for(var n,r=Ac(t),i=Tc(t),o=i.length,a=0;o>a;)_c.f(e,n=i[a++],r[n]);return e},ine=sp("document","documentElement"),QO=LO("IE_PROTO"),C$=function(){},e9=function(e){return"<script>"+e+"<\/script>"},t9=function(e){e.write(e9("")),e.close();var t=e.parentWindow.Object;return e=null,t},Kv=function(){try{Gv=new ActiveXObject("htmlfile")}catch{}var e,t;Kv=typeof document<"u"?document.domain&&Gv?t9(Gv):((t=u$("iframe")).style.display="none",ine.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(e9("document.F=Object")),e.close(),e.F):t9(Gv);for(var n=Hv.length;n--;)delete Kv.prototype[Hv[n]];return Kv()};d$[QO]=!0;var n9,S$,r9=Object.create||function(e,t){var n;return e!==null?(C$.prototype=qr(e),n=new C$,C$.prototype=null,n[QO]=e):n=Kv(),t===void 0?n:rne(n,t)},one=Ke.RegExp,ane=tn(function(){var e=one(".","s");return!(e.dotAll&&e.exec(`
75
75
  `)&&e.flags==="s")}),lne=Ke.RegExp,sne=tn(function(){var e=lne("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),une=h$.get,cne=a$("native-string-replace",String.prototype.replace),Yv=RegExp.prototype.exec,x$=Yv,fne=je("".charAt),dne=je("".indexOf),pne=je("".replace),D$=je("".slice),A$=(S$=/b*/g,gn(Yv,n9=/a/,"a"),gn(Yv,S$,"a"),n9.lastIndex!==0||S$.lastIndex!==0),i9=ZO.BROKEN_CARET,_$=/()??/.exec("")[1]!==void 0;(A$||_$||i9||ane||sne)&&(x$=function(e){var t,n,r,i,o,a,l,u=this,f=une(u),d=nn(e),p=f.raw;if(p)return p.lastIndex=u.lastIndex,t=gn(x$,p,d),u.lastIndex=p.lastIndex,t;var g=f.groups,h=i9&&u.sticky,E=gn(JO,u),w=u.source,y=0,$=d;if(h&&(E=pne(E,"y",""),dne(E,"g")===-1&&(E+="g"),$=D$(d,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&fne(d,u.lastIndex-1)!==`
76
76
  `)&&(w="(?: "+w+")",$=" "+$,y++),n=new RegExp("^(?:"+w+")",E)),_$&&(n=new RegExp("^"+w+"$(?!\\s)",E)),A$&&(r=u.lastIndex),i=gn(Yv,h?n:u,$),h?i?(i.input=D$(i.input,y),i[0]=D$(i[0],y),i.index=u.lastIndex,u.lastIndex+=i[0].length):u.lastIndex=0:A$&&i&&(u.lastIndex=u.global?i.index+i[0].length:r),_$&&i&&i.length>1&&gn(cne,i[0],n,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(i[o]=void 0)}),i&&g)for(i.groups=a=r9(null),o=0;o<g.length;o++)a[(l=g[o])[0]]=i[l[1]];return i});var mp=x$;Mn({target:"RegExp",proto:!0,forced:/./.exec!==mp},{exec:mp});var k$=Function.prototype,o9=k$.apply,hne=k$.bind,a9=k$.call,l9=typeof Reflect=="object"&&Reflect.apply||(hne?a9.bind(o9):function(){return a9.apply(o9,arguments)}),gne=Wr("species"),O$=RegExp.prototype,B$=function(e,t,n,r){var i=Wr(e),o=!tn(function(){var f={};return f[i]=function(){return 7},""[e](f)!=7}),a=o&&!tn(function(){var f=!1,d=/a/;return e==="split"&&((d={}).constructor={},d.constructor[gne]=function(){return d},d.flags="",d[i]=/./[i]),d.exec=function(){return f=!0,null},d[i](""),!f});if(!o||!a||n){var l=je(/./[i]),u=t(i,""[e],function(f,d,p,g,h){var E=je(f),w=d.exec;return w===mp||w===O$.exec?o&&!h?{done:!0,value:l(d,p,g)}:{done:!0,value:E(p,d,g)}:{done:!1}});dp(String.prototype,e,u[0]),dp(O$,i,u[1])}r&&kc(O$[i],"sham",!0)},vne=je("".charAt),s9=je("".charCodeAt),mne=je("".slice),u9=function(e){return function(t,n){var r,i,o=nn(gi(t)),a=Bc(n),l=o.length;return a<0||a>=l?e?"":void 0:(r=s9(o,a))<55296||r>56319||a+1===l||(i=s9(o,a+1))<56320||i>57343?e?vne(o,a):r:e?mne(o,a,a+2):i-56320+(r-55296<<10)+65536}},yne={codeAt:u9(!1),charAt:u9(!0)}.charAt,T$=function(e,t,n){return t+(n?yne(e,t).length:1)},bne=Math.floor,F$=je("".charAt),wne=je("".replace),P$=je("".slice),$ne=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Ene=/\$([$&'`]|\d{1,2})/g,Cne=function(e,t,n,r,i,o){var a=n+e.length,l=r.length,u=Ene;return i!==void 0&&(i=up(i),u=$ne),wne(o,u,function(f,d){var p;switch(F$(d,0)){case"$":return"$";case"&":return e;case"`":return P$(t,0,n);case"'":return P$(t,a);case"<":p=i[P$(d,1,-1)];break;default:var g=+d;if(g===0)return f;if(g>l){var h=bne(g/10);return h===0?f:h<=l?r[h-1]===void 0?F$(d,1):r[h-1]+F$(d,1):f}p=r[g-1]}return p===void 0?"":p})},Sne=Ke.TypeError,yp=function(e,t){var n=e.exec;if(nr(n)){var r=gn(n,e,t);return r!==null&&qr(r),r}if(Va(e)==="RegExp")return gn(mp,e,t);throw Sne("RegExp#exec called on incompatible receiver")},I$=Wr("replace"),xne=Math.max,Dne=Math.min,Ane=je([].concat),N$=je([].push),c9=je("".indexOf),f9=je("".slice),_ne="a".replace(/./,"$0")==="$0",d9=!!/./[I$]&&/./[I$]("a","$0")==="";B$("replace",function(e,t,n){var r=d9?"$":"$0";return[function(i,o){var a=gi(this),l=i==null?void 0:Mv(i,I$);return l?gn(l,i,a,o):gn(t,nn(a),i,o)},function(i,o){var a=qr(this),l=nn(i);if(typeof o=="string"&&c9(o,r)===-1&&c9(o,"$<")===-1){var u=n(t,a,l,o);if(u.done)return u.value}var f=nr(o);f||(o=nn(o));var d=a.global;if(d){var p=a.unicode;a.lastIndex=0}for(var g=[];;){var h=yp(a,l);if(h===null||(N$(g,h),!d))break;nn(h[0])===""&&(a.lastIndex=T$(l,hp(a.lastIndex),p))}for(var E,w="",y=0,$=0;$<g.length;$++){for(var m=nn((h=g[$])[0]),S=xne(Dne(Bc(h.index),l.length),0),D=[],A=1;A<h.length;A++)N$(D,(E=h[A])===void 0?E:String(E));var B=h.groups;if(f){var P=Ane([m],D,S,l);B!==void 0&&N$(P,B);var U=nn(l9(o,void 0,P))}else U=Cne(m,l,S,D,B,o);S>=y&&(w+=f9(l,y,S)+U,y=S+m.length)}return w+f9(l,y)}]},!!tn(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!_ne||d9);var L$=Wr("unscopables"),R$=Array.prototype;R$[L$]==null&&_c.f(R$,L$,{configurable:!0,value:r9(null)});var p9=function(e){R$[L$][e]=!0},kne=qv.find,h9=!0;"find"in[]&&Array(1).find(function(){h9=!1}),Mn({target:"Array",proto:!0,forced:h9},{find:function(e){return kne(this,e,arguments.length>1?arguments[1]:void 0)}}),p9("find");var One=Wr("match"),g9=function(e){var t;return vi(e)&&((t=e[One])!==void 0?!!t:Va(e)=="RegExp")},Bne=Ke.TypeError,Tne=Wr("species"),Fne=function(e,t){var n,r=qr(e).constructor;return r===void 0||(n=qr(r)[Tne])==null?t:function(i){if(b$(i))return i;throw Bne(_O(i)+" is not a constructor")}(n)},v9=function(e,t,n){var r=l$(t);r in e?_c.f(e,r,X4(0,n)):e[r]=n},Pne=Ke.Array,Ine=Math.max,m9=function(e,t,n){for(var r=Uv(e),i=pp(t,r),o=pp(n===void 0?r:n,r),a=Pne(Ine(o-i,0)),l=0;i<o;i++,l++)v9(a,l,e[i]);return a.length=l,a},Fc=ZO.UNSUPPORTED_Y,Nne=Math.min,y9=[].push,Lne=je(/./.exec),Pc=je(y9),bp=je("".slice);B$("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=nn(gi(this)),l=o===void 0?4294967295:o>>>0;if(l===0)return[];if(i===void 0)return[a];if(!g9(i))return gn(t,a,i,l);for(var u,f,d,p=[],g=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(i.sticky?"y":""),h=0,E=new RegExp(i.source,g+"g");(u=gn(mp,E,a))&&!((f=E.lastIndex)>h&&(Pc(p,bp(a,h,u.index)),u.length>1&&u.index<a.length&&l9(y9,p,m9(u,1)),d=u[0].length,h=f,p.length>=l));)E.lastIndex===u.index&&E.lastIndex++;return h===a.length?!d&&Lne(E,"")||Pc(p,""):Pc(p,bp(a,h)),p.length>l?m9(p,0,l):p}:"0".split(void 0,0).length?function(i,o){return i===void 0&&o===0?[]:gn(t,this,i,o)}:t,[function(i,o){var a=gi(this),l=i==null?void 0:Mv(i,e);return l?gn(l,i,a,o):gn(r,nn(a),i,o)},function(i,o){var a=qr(this),l=nn(i),u=n(r,a,l,o,r!==t);if(u.done)return u.value;var f=Fne(a,RegExp),d=a.unicode,p=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Fc?"g":"y"),g=new f(Fc?"^(?:"+a.source+")":a,p),h=o===void 0?4294967295:o>>>0;if(h===0)return[];if(l.length===0)return yp(g,l)===null?[l]:[];for(var E=0,w=0,y=[];w<l.length;){g.lastIndex=Fc?0:w;var $,m=yp(g,Fc?bp(l,w):l);if(m===null||($=Nne(hp(g.lastIndex+(Fc?w:0)),l.length))===E)w=T$(l,w,d);else{if(Pc(y,bp(l,E,w)),y.length===h)return y;for(var S=1;S<=m.length-1;S++)if(Pc(y,m[S]),y.length===h)return y;w=E=$}}return Pc(y,bp(l,E)),y}]},!!tn(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"}),Fc);var wp,M$=`
77
77
  \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,b9=je("".replace),Xv="["+M$+"]",Rne=RegExp("^"+Xv+Xv+"*"),Mne=RegExp(Xv+Xv+"*$"),j$=function(e){return function(t){var n=nn(gi(t));return 1&e&&(n=b9(n,Rne,"")),2&e&&(n=b9(n,Mne,"")),n}},jne={start:j$(1),end:j$(2),trim:j$(3)},zne=Vv.PROPER,Vne=jne.trim;function z$(e){return V("<div>"+e+"</div>").children().filter(function(t){return t.tagName!=="BR"}).length===0}function Ic(e){return e.length===0?"":e[0].outerHTML}function Nc(e){return e.length?e[0].tagName.toLowerCase():""}function Wi(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 l=a.split(":");l[0].trim()===t&&(n=l[1].trim())}}return n}Mn({target:"String",proto:!0,forced:(wp="trim",tn(function(){return!!M$[wp]()||"\u200B\x85\u180E"[wp]()!=="\u200B\x85\u180E"||zne&&M$[wp].name!==wp}))},{trim:function(){return Vne(this)}}),Mn({global:!0},{globalThis:Ke}),C0&&(V.fn.css=C0),li&&(V.fn.append=li),kD&&(V.fn.prepend=kD),zu&&(V.fn.addClass=zu),Vu&&(V.fn.removeClass=Vu),Uu&&(V.fn.hasClass=Uu),so&&(V.fn.on=so),xD&&(V.fn.off=xD),Da&&(V.fn.focus=Da),ai&&(V.fn.attr=ai),b0&&(V.fn.removeAttr=b0),Wu&&(V.fn.hide=Wu),E0&&(V.fn.show=E0),D0&&(V.fn.parents=D0),Hu&&(V.fn.dataset=Hu),lo&&(V.fn.val=lo),x0&&(V.fn.text=x0),xa&&(V.fn.html=xa),Ku&&(V.fn.children=Ku),Yu&&(V.fn.remove=Yu),Gu&&(V.fn.find=Gu),w0&&(V.fn.width=w0),$0&&(V.fn.height=$0),AD&&(V.fn.filter=AD),Xu&&(V.fn.empty=Xu);var Une={selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=V(e);return(t=t.filter(function(i){return!!Se.isText(i)||!!n.isInline(i)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},V$=function(e,t){return V$=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])},V$(e,t)};/*! *****************************************************************************
@@ -114,7 +114,7 @@ Textarea height < 300px . This may be cause modal and hoverbar position error`,$
114
114
  PERFORMANCE OF THIS SOFTWARE.
115
115
  ***************************************************************************** */function AF(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}_E(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function _F(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 Zp(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(l){i={error:l}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function kF(e){return k.nodes(e,{at:e.selection||void 0,match:function(t){return j.findPath(e,t).length===1}})}var fue=_T.includes;ol({target:"Array",proto:!0},{includes:function(e){return fue(this,e,arguments.length>1?arguments[1]:void 0)}}),Hp("includes");var OF,kE,due=function(){var e=Br(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},OE=He.RegExp,BE=sn(function(){var e=OE("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),pue=BE||sn(function(){return!OE("a","y").sticky}),hue={BROKEN_CARET:BE||sn(function(){var e=OE("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:pue,UNSUPPORTED_Y:BE},gue=He.RegExp,vue=sn(function(){var e=gue(".","s");return!(e.dotAll&&e.exec(`
116
116
  `)&&e.flags==="s")}),mue=He.RegExp,yue=sn(function(){var e=mue("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),bue=wo.get,wue=V3("native-string-replace",String.prototype.replace),U1=RegExp.prototype.exec,TE=U1,$ue=rt("".charAt),Eue=rt("".indexOf),Cue=rt("".replace),FE=rt("".slice),PE=(kE=/b*/g,zn(U1,OF=/a/,"a"),zn(U1,kE,"a"),OF.lastIndex!==0||kE.lastIndex!==0),BF=hue.BROKEN_CARET,IE=/()??/.exec("")[1]!==void 0;(PE||IE||BF||vue||yue)&&(TE=function(e){var t,n,r,i,o,a,l,u=this,f=bue(u),d=ta(e),p=f.raw;if(p)return p.lastIndex=u.lastIndex,t=zn(TE,p,d),u.lastIndex=p.lastIndex,t;var g=f.groups,h=BF&&u.sticky,E=zn(due,u),w=u.source,y=0,$=d;if(h&&(E=Cue(E,"y",""),Eue(E,"g")===-1&&(E+="g"),$=FE(d,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&$ue(d,u.lastIndex-1)!==`
117
- `)&&(w="(?: "+w+")",$=" "+$,y++),n=new RegExp("^(?:"+w+")",E)),IE&&(n=new RegExp("^"+w+"$(?!\\s)",E)),PE&&(r=u.lastIndex),i=zn(U1,h?n:u,$),h?i?(i.input=FE(i.input,y),i[0]=FE(i[0],y),i.index=u.lastIndex,u.lastIndex+=i[0].length):u.lastIndex=0:PE&&i&&(u.lastIndex=u.global?i.index+i[0].length:r),IE&&i&&i.length>1&&zn(wue,i[0],n,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(i[o]=void 0)}),i&&g)for(i.groups=a=rE(null),o=0;o<g.length;o++)a[(l=g[o])[0]]=i[l[1]];return i});var H1=TE;ol({target:"RegExp",proto:!0,forced:/./.exec!==H1},{exec:H1});var TF=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(t){var n=this.type;return j.getSelectedNodeByType(t,n)},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){var n=this.getListNode(t);if(n==null)return!1;var r=n.ordered;return(r!==void 0&&r)===this.ordered},e.prototype.isDisabled=function(t){return t.selection==null||!!j.getSelectedElems(t).some(function(n){if(k.isVoid(t,n)&&k.isBlock(t,n))return!0;var r=n.type;return!!["pre","code","table"].includes(r)||void 0})},e.prototype.exec=function(t,n){this.isActive(t)?Z.setNodes(t,{type:"paragraph",ordered:void 0,level:void 0}):Z.setNodes(t,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),Sue='<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>',xue='<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>',Due=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.ordered=!1,n.title=we("listModule.unOrderedList"),n.iconSvg=Sue,n}return AF(t,e),t}(TF),Aue=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.ordered=!0,n.title=we("listModule.orderedList"),n.iconSvg=xue,n}return AF(t,e),t}(TF),_ue={key:"bulletedList",factory:function(){return new Due}},kue={key:"numberedList",factory:function(){return new Aue}},FF=[],PF,Oue={type:"list-item",elemToHtml:function(e,t){var n="",r="",i=e.ordered,o=i!==void 0&&i?"ol":"ul",a=function(f){var d=AE.get(f);if(d==null)return 0;var p=f,g=p.type,h=p.ordered,E=h!==void 0&&h,w=p.level,y=w===void 0?0:w,$=j.findPath(d,f);if($[0]===0)return y+1;var m=G.previous($),S=k.node(d,m);if(!S)return 0;var D=Zp(S,1)[0];if(j.getNodeType(D)!==g)return y+1;var A=D,B=A.ordered,P=B!==void 0&&B,U=A.level,Y=U===void 0?0:U;return Y<y?y-Y:Y>y?0:Y===y?P===E?0:1:0}(e);if(a>0)for(var l=0;l<a;l++)n+="<"+o+">",FF.push(o);var u=function(f){var d=AE.get(f);if(d==null)return 0;var p=f,g=p.type,h=p.ordered,E=h!==void 0&&h,w=p.level,y=w===void 0?0:w,$=j.findPath(d,f);if($[0]===d.children.length-1)return y+1;var m=G.next($),S=k.node(d,m);if(!S)return 0;var D=Zp(S,1)[0];if(j.getNodeType(D)!==g)return y+1;var A=D,B=A.ordered,P=B!==void 0&&B,U=A.level,Y=U===void 0?0:U;return Y<y?y-Y:Y>y?0:Y===y?P===E?0:1:0}(e);if(u>0)for(l=0;l<u;l++)r+="</"+FF.pop()+">";return{html:"<li>"+t+"</li>",prefix:n,suffix:r}}},Bue=ir("species"),Tue=$E.filter,Fue=(PF="filter",W3>=51||!sn(function(){var e=[];return(e.constructor={})[Bue]=function(){return{foo:1}},e[PF](Boolean).foo!==1}));ol({target:"Array",proto:!0,forced:!Fue},{filter:function(e){return Tue(this,e,arguments.length>1?arguments[1]:void 0)}});var NE=Function.prototype,IF=NE.apply,Pue=NE.bind,NF=NE.call,Iue=typeof Reflect=="object"&&Reflect.apply||(Pue?NF.bind(IF):function(){return NF.apply(IF,arguments)}),Nue=ir("species"),LE=RegExp.prototype,Lue=QT.charAt,Rue=function(e,t,n){return t+(n?Lue(e,t).length:1)},Mue=Math.floor,RE=rt("".charAt),jue=rt("".replace),ME=rt("".slice),zue=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Vue=/\$([$&'`]|\d{1,2})/g,Uue=function(e,t,n,r,i,o){var a=n+e.length,l=r.length,u=Vue;return i!==void 0&&(i=Rp(i),u=zue),jue(o,u,function(f,d){var p;switch(RE(d,0)){case"$":return"$";case"&":return e;case"`":return ME(t,0,n);case"'":return ME(t,a);case"<":p=i[ME(d,1,-1)];break;default:var g=+d;if(g===0)return f;if(g>l){var h=Mue(g/10);return h===0?f:h<=l?r[h-1]===void 0?RE(d,1):r[h-1]+RE(d,1):f}p=r[g-1]}return p===void 0?"":p})},Hue=He.TypeError,Wue=function(e,t){var n=e.exec;if(un(n)){var r=zn(n,e,t);return r!==null&&Br(r),r}if(Qo(e)==="RegExp")return zn(H1,e,t);throw Hue("RegExp#exec called on incompatible receiver")},jE=ir("replace"),que=Math.max,Gue=Math.min,Kue=rt([].concat),zE=rt([].push),LF=rt("".indexOf),RF=rt("".slice),Yue="a".replace(/./,"$0")==="$0",MF=!!/./[jE]&&/./[jE]("a","$0")==="";(function(e,t,n,r){var i=ir(e),o=!sn(function(){var f={};return f[i]=function(){return 7},""[e](f)!=7}),a=o&&!sn(function(){var f=!1,d=/a/;return e==="split"&&((d={}).constructor={},d.constructor[Nue]=function(){return d},d.flags="",d[i]=/./[i]),d.exec=function(){return f=!0,null},d[i](""),!f});if(!o||!a||n){var l=rt(/./[i]),u=t(i,""[e],function(f,d,p,g,h){var E=rt(f),w=d.exec;return w===H1||w===LE.exec?o&&!h?{done:!0,value:l(d,p,g)}:{done:!0,value:E(p,d,g)}:{done:!1}});$o(String.prototype,e,u[0]),$o(LE,i,u[1])}r&&ea(LE[i],"sham",!0)})("replace",function(e,t,n){var r=MF?"$":"$0";return[function(i,o){var a=C1(this),l=i==null?void 0:Vp(i,jE);return l?zn(l,i,a,o):zn(t,ta(a),i,o)},function(i,o){var a=Br(this),l=ta(i);if(typeof o=="string"&&LF(o,r)===-1&&LF(o,"$<")===-1){var u=n(t,a,l,o);if(u.done)return u.value}var f=un(o);f||(o=ta(o));var d=a.global;if(d){var p=a.unicode;a.lastIndex=0}for(var g=[];;){var h=Wue(a,l);if(h===null||(zE(g,h),!d))break;ta(h[0])===""&&(a.lastIndex=Rue(l,DT(a.lastIndex),p))}for(var E,w="",y=0,$=0;$<g.length;$++){for(var m=ta((h=g[$])[0]),S=que(Gue(Up(h.index),l.length),0),D=[],A=1;A<h.length;A++)zE(D,(E=h[A])===void 0?E:String(E));var B=h.groups;if(f){var P=Kue([m],D,S,l);B!==void 0&&zE(P,B);var U=ta(Iue(o,void 0,P))}else U=Uue(m,l,S,D,B,o);S>=y&&(w+=RF(l,y,S)+U,y=S+m.length)}return w+RF(l,y)}]},!!sn(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!Yue||MF);var Xue=He.TypeError,jF=function(e,t,n,r,i,o,a,l){for(var u,f,d=i,p=0,g=!!a&&yE(a,l);p<r;){if(p in n){if(u=g?g(n[p],p,t):n[p],o>0&&bE(u))f=qc(u),d=jF(e,t,u,f,d,o-1)-1;else{if(d>=9007199254740991)throw Xue("Exceed the acceptable array length");e[d]=u}d++}p++}return d},Jue=jF;function VE(e){return e.length?e[0].tagName.toLowerCase():""}ol({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=Rp(this),n=qc(t),r=gF(t,0);return r.length=Jue(r,t,t,n,0,e===void 0?1:Up(e)),r}}),Hp("flat"),ol({global:!0},{globalThis:He}),li&&(V.fn.append=li),ai&&(V.fn.attr=ai),qu&&(V.fn.parent=qu);var Zue={renderElems:[cue],editorPlugin:function(e){var t=e.deleteBackward,n=e.handleTab,r=e.normalizeNode,i=e;return i.deleteBackward=function(o){var a=i.selection;if(a!=null)if(re.isExpanded(a))t(o);else{var l=j.getSelectedNodeByType(i,"list-item");if(l!=null)if(a.focus.offset!==0)t(o);else{var u=l.level,f=u===void 0?0:u;f>0?Z.setNodes(i,{level:f-1}):Z.setNodes(i,{type:"paragraph",ordered:void 0,level:void 0})}else t(o)}else t(o)},i.handleTab=function(){var o,a,l,u,f=i.selection;if(f!=null){if(re.isCollapsed(f)){var d=j.getSelectedNodeByType(i,"list-item");if(d==null)return void n();if(f.focus.offset===0){var p=d.level,g=p===void 0?0:p;return void Z.setNodes(i,{level:g+1})}}if(re.isExpanded(f)){var h=0,E=!1;try{for(var w=_F(kF(i)),y=w.next();!y.done;y=w.next()){var $=Zp(y.value,1)[0];j.getNodeType($)==="list-item"?h++:E=!0}}catch(P){o={error:P}}finally{try{y&&!y.done&&(a=w.return)&&a.call(w)}finally{if(o)throw o.error}}if(E||h<=1)return void n();try{for(var m=_F(kF(i)),S=m.next();!S.done;S=m.next()){var D=Zp(S.value,2),A=($=D[0],D[1]),B=$.level;g=B===void 0?0:B,Z.setNodes(i,{level:g+1},{at:A})}}catch(P){l={error:P}}finally{try{S&&!S.done&&(u=m.return)&&u.call(m)}finally{if(l)throw l.error}}}else n()}else n()},i.normalizeNode=function(o){var a=Zp(o,2),l=a[0],u=a[1],f=j.getNodeType(l);return f!=="bulleted-list"&&f!=="numbered-list"||Z.unwrapNodes(i,{at:u}),r([l,u])},i},menus:[_ue,kue],elemsToHtml:[Oue],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(e,t,n){return t.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=V(e);(t=t.filter(function(a){return!!Se.isText(a)||!!n.isInline(a)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var i=function(a){return VE(a.parent())==="ol"}(r),o=function(a){for(var l=0,u=a.parent(),f=VE(u);f==="ul"||f==="ol";)f=VE(u=u.parent()),l++;return l-1}(r);return{type:"list-item",ordered:i,level:o,children:t}}}]},zF=Ib(function(e,t){var n=200,r="__lodash_hash_undefined__",i=1,o=2,a=9007199254740991,l="[object Arguments]",u="[object Array]",f="[object AsyncFunction]",d="[object Boolean]",p="[object Date]",g="[object Error]",h="[object Function]",E="[object GeneratorFunction]",w="[object Map]",y="[object Number]",$="[object Null]",m="[object Object]",S="[object Promise]",D="[object Proxy]",A="[object RegExp]",B="[object Set]",P="[object String]",U="[object Symbol]",Y="[object Undefined]",ce="[object WeakMap]",ee="[object ArrayBuffer]",ge="[object DataView]",se="[object Float32Array]",xe="[object Float64Array]",ve="[object Int8Array]",Oe="[object Int16Array]",Te="[object Int32Array]",Ne="[object Uint8Array]",Re="[object Uint8ClampedArray]",Ae="[object Uint16Array]",ae="[object Uint32Array]",M=/[\\^$.*+?()[\]{}|]/g,R=/^\[object .+?Constructor\]$/,T=/^(?:0|[1-9]\d*)$/,L={};L[se]=L[xe]=L[ve]=L[Oe]=L[Te]=L[Ne]=L[Re]=L[Ae]=L[ae]=!0,L[l]=L[u]=L[ee]=L[d]=L[ge]=L[p]=L[g]=L[h]=L[w]=L[y]=L[m]=L[A]=L[B]=L[P]=L[ce]=!1;var q=typeof Jt=="object"&&Jt&&Jt.Object===Object&&Jt,O=typeof self=="object"&&self&&self.Object===Object&&self,J=q||O||Function("return this")(),ue=t&&!t.nodeType&&t,he=ue&&!0&&e&&!e.nodeType&&e,te=he&&he.exports===ue,Q=te&&q.process,Ce=function(){try{return Q&&Q.binding&&Q.binding("util")}catch{}}(),oe=Ce&&Ce.isTypedArray;function ye(x,I){for(var H=-1,ie=x==null?0:x.length,qe=0,Ie=[];++H<ie;){var ut=x[H];I(ut,H,x)&&(Ie[qe++]=ut)}return Ie}function Le(x,I){for(var H=-1,ie=I.length,qe=x.length;++H<ie;)x[qe+H]=I[H];return x}function $t(x,I){for(var H=-1,ie=x==null?0:x.length;++H<ie;)if(I(x[H],H,x))return!0;return!1}function ft(x,I){for(var H=-1,ie=Array(x);++H<x;)ie[H]=I(H);return ie}function ot(x){return function(I){return x(I)}}function Ze(x,I){return x.has(I)}function dt(x,I){return x==null?void 0:x[I]}function pt(x){var I=-1,H=Array(x.size);return x.forEach(function(ie,qe){H[++I]=[qe,ie]}),H}function rn(x,I){return function(H){return x(I(H))}}function In(x){var I=-1,H=Array(x.size);return x.forEach(function(ie){H[++I]=ie}),H}var mt=Array.prototype,on=Function.prototype,Kt=Object.prototype,Yt=J["__core-js_shared__"],Jn=on.toString,dn=Kt.hasOwnProperty,Nn=function(){var x=/[^.]+$/.exec(Yt&&Yt.keys&&Yt.keys.IE_PROTO||"");return x?"Symbol(src)_1."+x:""}(),Di=Kt.toString,Zi=RegExp("^"+Jn.call(dn).replace(M,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$r=te?J.Buffer:void 0,Fr=J.Symbol,Ai=J.Uint8Array,Pr=Kt.propertyIsEnumerable,Qr=mt.splice,Er=Fr?Fr.toStringTag:void 0,To=Object.getOwnPropertySymbols,Fl=$r?$r.isBuffer:void 0,Fo=rn(Object.keys,Object),pu=gr(J,"DataView"),la=gr(J,"Map"),hu=gr(J,"Promise"),gu=gr(J,"Set"),Pl=gr(J,"WeakMap"),Po=gr(Object,"create"),Af=ar(pu),Qi=ar(la),vu=ar(hu),Cg=ar(gu),mu=ar(Pl),_f=Fr?Fr.prototype:void 0,yu=_f?_f.valueOf:void 0;function Un(x){var I=-1,H=x==null?0:x.length;for(this.clear();++I<H;){var ie=x[I];this.set(ie[0],ie[1])}}function Sg(){this.__data__=Po?Po(null):{},this.size=0}function xg(x){var I=this.has(x)&&delete this.__data__[x];return this.size-=I?1:0,I}function Dg(x){var I=this.__data__;if(Po){var H=I[x];return H===r?void 0:H}return dn.call(I,x)?I[x]:void 0}function Ag(x){var I=this.__data__;return Po?I[x]!==void 0:dn.call(I,x)}function _g(x,I){var H=this.__data__;return this.size+=this.has(x)?0:1,H[x]=Po&&I===void 0?r:I,this}Un.prototype.clear=Sg,Un.prototype.delete=xg,Un.prototype.get=Dg,Un.prototype.has=Ag,Un.prototype.set=_g;function Hn(x){var I=-1,H=x==null?0:x.length;for(this.clear();++I<H;){var ie=x[I];this.set(ie[0],ie[1])}}function kg(){this.__data__=[],this.size=0}function Og(x){var I=this.__data__,H=ua(I,x);if(H<0)return!1;var ie=I.length-1;return H==ie?I.pop():Qr.call(I,H,1),--this.size,!0}function Bg(x){var I=this.__data__,H=ua(I,x);return H<0?void 0:I[H][1]}function Tg(x){return ua(this.__data__,x)>-1}function Fg(x,I){var H=this.__data__,ie=ua(H,x);return ie<0?(++this.size,H.push([x,I])):H[ie][1]=I,this}Hn.prototype.clear=kg,Hn.prototype.delete=Og,Hn.prototype.get=Bg,Hn.prototype.has=Tg,Hn.prototype.set=Fg;function hr(x){var I=-1,H=x==null?0:x.length;for(this.clear();++I<H;){var ie=x[I];this.set(ie[0],ie[1])}}function Il(){this.size=0,this.__data__={hash:new Un,map:new(la||Hn),string:new Un}}function Pg(x){var I=Cr(this,x).delete(x);return this.size-=I?1:0,I}function Nl(x){return Cr(this,x).get(x)}function Ig(x){return Cr(this,x).has(x)}function Ng(x,I){var H=Cr(this,x),ie=H.size;return H.set(x,I),this.size+=H.size==ie?0:1,this}hr.prototype.clear=Il,hr.prototype.delete=Pg,hr.prototype.get=Nl,hr.prototype.has=Ig,hr.prototype.set=Ng;function Ll(x){var I=-1,H=x==null?0:x.length;for(this.__data__=new hr;++I<H;)this.add(x[I])}function bu(x){return this.__data__.set(x,r),this}function sa(x){return this.__data__.has(x)}Ll.prototype.add=Ll.prototype.push=bu,Ll.prototype.has=sa;function ei(x){var I=this.__data__=new Hn(x);this.size=I.size}function wu(){this.__data__=new Hn,this.size=0}function Lg(x){var I=this.__data__,H=I.delete(x);return this.size=I.size,H}function Rg(x){return this.__data__.get(x)}function Mg(x){return this.__data__.has(x)}function kf(x,I){var H=this.__data__;if(H instanceof Hn){var ie=H.__data__;if(!la||ie.length<n-1)return ie.push([x,I]),this.size=++H.size,this;H=this.__data__=new hr(ie)}return H.set(x,I),this.size=H.size,this}ei.prototype.clear=wu,ei.prototype.delete=Lg,ei.prototype.get=Rg,ei.prototype.has=Mg,ei.prototype.set=kf;function Of(x,I){var H=Rl(x),ie=!H&&Eu(x),qe=!H&&!ie&&Ml(x),Ie=!H&&!ie&&!qe&&Uf(x),ut=H||ie||qe||Ie,Et=ut?ft(x.length,String):[],ct=Et.length;for(var St in x)(I||dn.call(x,St))&&!(ut&&(St=="length"||qe&&(St=="offset"||St=="parent")||Ie&&(St=="buffer"||St=="byteLength"||St=="byteOffset")||Nf(St,ct)))&&Et.push(St);return Et}function ua(x,I){for(var H=x.length;H--;)if(zf(x[H][0],I))return H;return-1}function ca(x,I,H){var ie=I(x);return Rl(x)?ie:Le(ie,H(x))}function fa(x){return x==null?x===void 0?Y:$:Er&&Er in Object(x)?_i(x):jf(x)}function $u(x){return Oi(x)&&fa(x)==l}function da(x,I,H,ie,qe){return x===I?!0:x==null||I==null||!Oi(x)&&!Oi(I)?x!==x&&I!==I:Bf(x,I,H,ie,da,qe)}function Bf(x,I,H,ie,qe,Ie){var ut=Rl(x),Et=Rl(I),ct=ut?u:ki(x),St=Et?u:ki(I);ct=ct==l?m:ct,St=St==l?m:St;var an=ct==m,lr=St==m,pn=ct==St;if(pn&&Ml(x)){if(!Ml(I))return!1;ut=!0,an=!1}if(pn&&!an)return Ie||(Ie=new ei),ut||Uf(x)?pa(x,I,H,ie,qe,Ie):zg(x,I,ct,H,ie,qe,Ie);if(!(H&i)){var It=an&&dn.call(x,"__wrapped__"),Ln=lr&&dn.call(I,"__wrapped__");if(It||Ln){var to=It?x.value():x,Bi=Ln?I.value():I;return Ie||(Ie=new ei),qe(to,Bi,H,ie,Ie)}}return pn?(Ie||(Ie=new ei),Pf(x,I,H,ie,qe,Ie)):!1}function jg(x){if(!Vf(x)||Rf(x))return!1;var I=jl(x)?Zi:R;return I.test(ar(x))}function Tf(x){return Oi(x)&&Su(x.length)&&!!L[fa(x)]}function Ff(x){if(!Mf(x))return Fo(x);var I=[];for(var H in Object(x))dn.call(x,H)&&H!="constructor"&&I.push(H);return I}function pa(x,I,H,ie,qe,Ie){var ut=H&i,Et=x.length,ct=I.length;if(Et!=ct&&!(ut&&ct>Et))return!1;var St=Ie.get(x);if(St&&Ie.get(I))return St==I;var an=-1,lr=!0,pn=H&o?new Ll:void 0;for(Ie.set(x,I),Ie.set(I,x);++an<Et;){var It=x[an],Ln=I[an];if(ie)var to=ut?ie(Ln,It,an,I,x,Ie):ie(It,Ln,an,x,I,Ie);if(to!==void 0){if(to)continue;lr=!1;break}if(pn){if(!$t(I,function(Bi,Io){if(!Ze(pn,Io)&&(It===Bi||qe(It,Bi,H,ie,Ie)))return pn.push(Io)})){lr=!1;break}}else if(!(It===Ln||qe(It,Ln,H,ie,Ie))){lr=!1;break}}return Ie.delete(x),Ie.delete(I),lr}function zg(x,I,H,ie,qe,Ie,ut){switch(H){case ge:if(x.byteLength!=I.byteLength||x.byteOffset!=I.byteOffset)return!1;x=x.buffer,I=I.buffer;case ee:return!(x.byteLength!=I.byteLength||!Ie(new Ai(x),new Ai(I)));case d:case p:case y:return zf(+x,+I);case g:return x.name==I.name&&x.message==I.message;case A:case P:return x==I+"";case w:var Et=pt;case B:var ct=ie&i;if(Et||(Et=In),x.size!=I.size&&!ct)return!1;var St=ut.get(x);if(St)return St==I;ie|=o,ut.set(x,I);var an=pa(Et(x),Et(I),ie,qe,Ie,ut);return ut.delete(x),an;case U:if(yu)return yu.call(x)==yu.call(I)}return!1}function Pf(x,I,H,ie,qe,Ie){var ut=H&i,Et=eo(x),ct=Et.length,St=eo(I),an=St.length;if(ct!=an&&!ut)return!1;for(var lr=ct;lr--;){var pn=Et[lr];if(!(ut?pn in I:dn.call(I,pn)))return!1}var It=Ie.get(x);if(It&&Ie.get(I))return It==I;var Ln=!0;Ie.set(x,I),Ie.set(I,x);for(var to=ut;++lr<ct;){pn=Et[lr];var Bi=x[pn],Io=I[pn];if(ie)var Ug=ut?ie(Io,Bi,pn,I,x,Ie):ie(Bi,Io,pn,x,I,Ie);if(!(Ug===void 0?Bi===Io||qe(Bi,Io,H,ie,Ie):Ug)){Ln=!1;break}to||(to=pn=="constructor")}if(Ln&&!to){var Du=x.constructor,Zn=I.constructor;Du!=Zn&&"constructor"in x&&"constructor"in I&&!(typeof Du=="function"&&Du instanceof Du&&typeof Zn=="function"&&Zn instanceof Zn)&&(Ln=!1)}return Ie.delete(x),Ie.delete(I),Ln}function eo(x){return ca(x,xu,If)}function Cr(x,I){var H=x.__data__;return Lf(I)?H[typeof I=="string"?"string":"hash"]:H.map}function gr(x,I){var H=dt(x,I);return jg(H)?H:void 0}function _i(x){var I=dn.call(x,Er),H=x[Er];try{x[Er]=void 0;var ie=!0}catch{}var qe=Di.call(x);return ie&&(I?x[Er]=H:delete x[Er]),qe}var If=To?function(x){return x==null?[]:(x=Object(x),ye(To(x),function(I){return Pr.call(x,I)}))}:Pt,ki=fa;(pu&&ki(new pu(new ArrayBuffer(1)))!=ge||la&&ki(new la)!=w||hu&&ki(hu.resolve())!=S||gu&&ki(new gu)!=B||Pl&&ki(new Pl)!=ce)&&(ki=function(x){var I=fa(x),H=I==m?x.constructor:void 0,ie=H?ar(H):"";if(ie)switch(ie){case Af:return ge;case Qi:return w;case vu:return S;case Cg:return B;case mu:return ce}return I});function Nf(x,I){return I=I==null?a:I,!!I&&(typeof x=="number"||T.test(x))&&x>-1&&x%1==0&&x<I}function Lf(x){var I=typeof x;return I=="string"||I=="number"||I=="symbol"||I=="boolean"?x!=="__proto__":x===null}function Rf(x){return!!Nn&&Nn in x}function Mf(x){var I=x&&x.constructor,H=typeof I=="function"&&I.prototype||Kt;return x===H}function jf(x){return Di.call(x)}function ar(x){if(x!=null){try{return Jn.call(x)}catch{}try{return x+""}catch{}}return""}function zf(x,I){return x===I||x!==x&&I!==I}var Eu=$u(function(){return arguments}())?$u:function(x){return Oi(x)&&dn.call(x,"callee")&&!Pr.call(x,"callee")},Rl=Array.isArray;function Cu(x){return x!=null&&Su(x.length)&&!jl(x)}var Ml=Fl||Bt;function Vg(x,I){return da(x,I)}function jl(x){if(!Vf(x))return!1;var I=fa(x);return I==h||I==E||I==f||I==D}function Su(x){return typeof x=="number"&&x>-1&&x%1==0&&x<=a}function Vf(x){var I=typeof x;return x!=null&&(I=="object"||I=="function")}function Oi(x){return x!=null&&typeof x=="object"}var Uf=oe?ot(oe):Tf;function xu(x){return Cu(x)?Of(x):Ff(x)}function Pt(){return[]}function Bt(){return!1}e.exports=Vg});wr("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"}}),wr("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 VF=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function UF(e){var t={exports:{}};return e(t,t.exports),t.exports}var ll,W1,q1=function(e){return e&&e.Math==Math&&e},et=q1(typeof globalThis=="object"&&globalThis)||q1(typeof window=="object"&&window)||q1(typeof self=="object"&&self)||q1(typeof VF=="object"&&VF)||function(){return this}()||Function("return this")(),On=function(e){try{return!!e()}catch{return!0}},sl=!On(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Qp=Function.prototype.call,Bn=Qp.bind?Qp.bind(Qp):function(){return Qp.apply(Qp,arguments)},HF={}.propertyIsEnumerable,WF=Object.getOwnPropertyDescriptor,Que={f:WF&&!HF.call({1:2},1)?function(e){var t=WF(this,e);return!!t&&t.enumerable}:HF},UE=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},qF=Function.prototype,HE=qF.bind,WE=qF.call,ece=HE&&HE.bind(WE),lt=HE?function(e){return e&&ece(WE,e)}:function(e){return e&&function(){return WE.apply(e,arguments)}},tce=lt({}.toString),nce=lt("".slice),ul=function(e){return nce(tce(e),8,-1)},qE=et.Object,rce=lt("".split),GF=On(function(){return!qE("z").propertyIsEnumerable(0)})?function(e){return ul(e)=="String"?rce(e,""):qE(e)}:qE,ice=et.TypeError,cl=function(e){if(e==null)throw ice("Can't call method on "+e);return e},eh=function(e){return GF(cl(e))},or=function(e){return typeof e=="function"},wi=function(e){return typeof e=="object"?e!==null:or(e)},oce=function(e){return or(e)?e:void 0},th=function(e,t){return arguments.length<2?oce(et[e]):et[e]&&et[e][t]},KF=lt({}.isPrototypeOf),GE=th("navigator","userAgent")||"",YF=et.process,XF=et.Deno,JF=YF&&YF.versions||XF&&XF.version,ZF=JF&&JF.v8;ZF&&(W1=(ll=ZF.split("."))[0]>0&&ll[0]<4?1:+(ll[0]+ll[1])),!W1&&GE&&(!(ll=GE.match(/Edge\/(\d+)/))||ll[1]>=74)&&(ll=GE.match(/Chrome\/(\d+)/))&&(W1=+ll[1]);var KE=W1,YE=!!Object.getOwnPropertySymbols&&!On(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&KE&&KE<41}),XE=YE&&!Symbol.sham&&typeof Symbol.iterator=="symbol",ace=et.Object,JE=XE?function(e){return typeof e=="symbol"}:function(e){var t=th("Symbol");return or(t)&&KF(t.prototype,ace(e))},lce=et.String,QF=function(e){try{return lce(e)}catch{return"Object"}},sce=et.TypeError,eP=function(e){if(or(e))return e;throw sce(QF(e)+" is not a function")},ZE=function(e,t){var n=e[t];return n==null?void 0:eP(n)},uce=et.TypeError,cce=Object.defineProperty,QE=function(e,t){try{cce(et,e,{value:t,configurable:!0,writable:!0})}catch{et[e]=t}return t},fl=et["__core-js_shared__"]||QE("__core-js_shared__",{}),eC=UF(function(e){(e.exports=function(t,n){return fl[t]||(fl[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),fce=et.Object,tC=function(e){return fce(cl(e))},dce=lt({}.hasOwnProperty),$i=Object.hasOwn||function(e,t){return dce(tC(e),t)},pce=0,hce=Math.random(),gce=lt(1 .toString),tP=function(e){return"Symbol("+(e===void 0?"":e)+")_"+gce(++pce+hce,36)},nh=eC("wks"),Gs=et.Symbol,nP=Gs&&Gs.for,vce=XE?Gs:Gs&&Gs.withoutSetter||tP,Ei=function(e){if(!$i(nh,e)||!YE&&typeof nh[e]!="string"){var t="Symbol."+e;YE&&$i(Gs,e)?nh[e]=Gs[e]:nh[e]=XE&&nP?nP(t):vce(t)}return nh[e]},mce=et.TypeError,yce=Ei("toPrimitive"),bce=function(e,t){if(!wi(e)||JE(e))return e;var n,r=ZE(e,yce);if(r){if(t===void 0&&(t="default"),n=Bn(r,e,t),!wi(n)||JE(n))return n;throw mce("Can't convert object to primitive value")}return t===void 0&&(t="number"),function(i,o){var a,l;if(o==="string"&&or(a=i.toString)&&!wi(l=Bn(a,i))||or(a=i.valueOf)&&!wi(l=Bn(a,i))||o!=="string"&&or(a=i.toString)&&!wi(l=Bn(a,i)))return l;throw uce("Can't convert object to primitive value")}(e,t)},nC=function(e){var t=bce(e,"string");return JE(t)?t:t+""},rC=et.document,wce=wi(rC)&&wi(rC.createElement),iC=function(e){return wce?rC.createElement(e):{}},rP=!sl&&!On(function(){return Object.defineProperty(iC("div"),"a",{get:function(){return 7}}).a!=7}),iP=Object.getOwnPropertyDescriptor,oP={f:sl?iP:function(e,t){if(e=eh(e),t=nC(t),rP)try{return iP(e,t)}catch{}if($i(e,t))return UE(!Bn(Que.f,e,t),e[t])}},$ce=et.String,Ece=et.TypeError,Ci=function(e){if(wi(e))return e;throw Ece($ce(e)+" is not an object")},Cce=et.TypeError,aP=Object.defineProperty,rh={f:sl?aP:function(e,t,n){if(Ci(e),t=nC(t),Ci(n),rP)try{return aP(e,t,n)}catch{}if("get"in n||"set"in n)throw Cce("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Yc=sl?function(e,t,n){return rh.f(e,t,UE(1,n))}:function(e,t,n){return e[t]=n,e},Sce=lt(Function.toString);or(fl.inspectSource)||(fl.inspectSource=function(e){return Sce(e)});var G1,ih,K1,oC=fl.inspectSource,lP=et.WeakMap,xce=or(lP)&&/native code/.test(oC(lP)),sP=eC("keys"),uP=function(e){return sP[e]||(sP[e]=tP(e))},aC={},lC=et.TypeError,Dce=et.WeakMap;if(xce||fl.state){var Ks=fl.state||(fl.state=new Dce),Ace=lt(Ks.get),cP=lt(Ks.has),_ce=lt(Ks.set);G1=function(e,t){if(cP(Ks,e))throw new lC("Object already initialized");return t.facade=e,_ce(Ks,e,t),t},ih=function(e){return Ace(Ks,e)||{}},K1=function(e){return cP(Ks,e)}}else{var Xc=uP("state");aC[Xc]=!0,G1=function(e,t){if($i(e,Xc))throw new lC("Object already initialized");return t.facade=e,Yc(e,Xc,t),t},ih=function(e){return $i(e,Xc)?e[Xc]:{}},K1=function(e){return $i(e,Xc)}}var sC={set:G1,get:ih,has:K1,enforce:function(e){return K1(e)?ih(e):G1(e,{})},getterFor:function(e){return function(t){var n;if(!wi(t)||(n=ih(t)).type!==e)throw lC("Incompatible receiver, "+e+" required");return n}}},fP=Function.prototype,kce=sl&&Object.getOwnPropertyDescriptor,uC=$i(fP,"name"),cC={EXISTS:uC,PROPER:uC&&function(){}.name==="something",CONFIGURABLE:uC&&(!sl||sl&&kce(fP,"name").configurable)},oh=UF(function(e){var t=cC.CONFIGURABLE,n=sC.get,r=sC.enforce,i=String(String).split("String");(e.exports=function(o,a,l,u){var f,d=!!u&&!!u.unsafe,p=!!u&&!!u.enumerable,g=!!u&&!!u.noTargetGet,h=u&&u.name!==void 0?u.name:a;or(l)&&(String(h).slice(0,7)==="Symbol("&&(h="["+String(h).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!$i(l,"name")||t&&l.name!==h)&&Yc(l,"name",h),(f=r(l)).source||(f.source=i.join(typeof h=="string"?h:""))),o!==et?(d?!g&&o[a]&&(p=!0):delete o[a],p?o[a]=l:Yc(o,a,l)):p?o[a]=l:QE(a,l)})(Function.prototype,"toString",function(){return or(this)&&n(this).source||oC(this)})}),Oce=Math.ceil,Bce=Math.floor,Y1=function(e){var t=+e;return t!=t||t===0?0:(t>0?Bce:Oce)(t)},Tce=Math.max,Fce=Math.min,ah=function(e,t){var n=Y1(e);return n<0?Tce(n+t,0):Fce(n,t)},Pce=Math.min,fC=function(e){return e>0?Pce(Y1(e),9007199254740991):0},X1=function(e){return fC(e.length)},dP=function(e){return function(t,n,r){var i,o=eh(t),a=X1(o),l=ah(r,a);if(e&&n!=n){for(;a>l;)if((i=o[l++])!=i)return!0}else for(;a>l;l++)if((e||l in o)&&o[l]===n)return e||l||0;return!e&&-1}},Ice={includes:dP(!0),indexOf:dP(!1)}.indexOf,pP=lt([].push),hP=function(e,t){var n,r=eh(e),i=0,o=[];for(n in r)!$i(aC,n)&&$i(r,n)&&pP(o,n);for(;t.length>i;)$i(r,n=t[i++])&&(~Ice(o,n)||pP(o,n));return o},J1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Nce=J1.concat("length","prototype"),Lce={f:Object.getOwnPropertyNames||function(e){return hP(e,Nce)}},Rce={f:Object.getOwnPropertySymbols},Mce=lt([].concat),jce=th("Reflect","ownKeys")||function(e){var t=Lce.f(Ci(e)),n=Rce.f;return n?Mce(t,n(e)):t},zce=function(e,t){for(var n=jce(t),r=rh.f,i=oP.f,o=0;o<n.length;o++){var a=n[o];$i(e,a)||r(e,a,i(t,a))}},Vce=/#|\.prototype\./,lh=function(e,t){var n=Hce[Uce(e)];return n==qce||n!=Wce&&(or(t)?On(t):!!t)},Uce=lh.normalize=function(e){return String(e).replace(Vce,".").toLowerCase()},Hce=lh.data={},Wce=lh.NATIVE="N",qce=lh.POLYFILL="P",Gce=lh,Kce=oP.f,dl=function(e,t){var n,r,i,o,a,l=e.target,u=e.global,f=e.stat;if(n=u?et:f?et[l]||QE(l,{}):(et[l]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=Kce(n,r))&&a.value:n[r],!Gce(u?r:l+(f?".":"#")+r,e.forced)&&i!==void 0){if(typeof o==typeof i)continue;zce(o,i)}(e.sham||i&&i.sham)&&Yc(o,"sham",!0),oh(n,r,o,e)}},gP={};gP[Ei("toStringTag")]="z";var vP,dC=String(gP)==="[object z]",Yce=Ei("toStringTag"),Xce=et.Object,Jce=ul(function(){return arguments}())=="Arguments",pC=dC?ul: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=Xce(e),Yce))=="string"?n:Jce?ul(t):(r=ul(t))=="Object"&&or(t.callee)?"Arguments":r},Zce=et.String,dr=function(e){if(pC(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Zce(e)},Qce=/"/g,efe=lt("".replace);dl({target:"String",proto:!0,forced:(vP="anchor",On(function(){var e=""[vP]('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t="a",n="name",r=e,i=dr(cl(this)),o="<"+t,n!==""&&(o+=" "+n+'="'+efe(dr(r),Qce,"&quot;")+'"'),o+">"+i+"</"+t+">";var t,n,r,i,o}});var Z1,mP=function(){var e=Ci(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},hC=et.RegExp,gC=On(function(){var e=hC("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),tfe=gC||On(function(){return!hC("a","y").sticky}),yP={BROKEN_CARET:gC||On(function(){var e=hC("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:tfe,UNSUPPORTED_Y:gC},nfe=Object.keys||function(e){return hP(e,J1)},rfe=sl?Object.defineProperties:function(e,t){Ci(e);for(var n,r=eh(t),i=nfe(t),o=i.length,a=0;o>a;)rh.f(e,n=i[a++],r[n]);return e},ife=th("document","documentElement"),bP=uP("IE_PROTO"),vC=function(){},wP=function(e){return"<script>"+e+"<\/script>"},$P=function(e){e.write(wP("")),e.close();var t=e.parentWindow.Object;return e=null,t},Q1=function(){try{Z1=new ActiveXObject("htmlfile")}catch{}var e,t;Q1=typeof document<"u"?document.domain&&Z1?$P(Z1):((t=iC("iframe")).style.display="none",ife.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(wP("document.F=Object")),e.close(),e.F):$P(Z1);for(var n=J1.length;n--;)delete Q1.prototype[J1[n]];return Q1()};aC[bP]=!0;var EP,mC,CP=Object.create||function(e,t){var n;return e!==null?(vC.prototype=Ci(e),n=new vC,vC.prototype=null,n[bP]=e):n=Q1(),t===void 0?n:rfe(n,t)},ofe=et.RegExp,afe=On(function(){var e=ofe(".","s");return!(e.dotAll&&e.exec(`
117
+ `)&&(w="(?: "+w+")",$=" "+$,y++),n=new RegExp("^(?:"+w+")",E)),IE&&(n=new RegExp("^"+w+"$(?!\\s)",E)),PE&&(r=u.lastIndex),i=zn(U1,h?n:u,$),h?i?(i.input=FE(i.input,y),i[0]=FE(i[0],y),i.index=u.lastIndex,u.lastIndex+=i[0].length):u.lastIndex=0:PE&&i&&(u.lastIndex=u.global?i.index+i[0].length:r),IE&&i&&i.length>1&&zn(wue,i[0],n,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(i[o]=void 0)}),i&&g)for(i.groups=a=rE(null),o=0;o<g.length;o++)a[(l=g[o])[0]]=i[l[1]];return i});var H1=TE;ol({target:"RegExp",proto:!0,forced:/./.exec!==H1},{exec:H1});var TF=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(t){var n=this.type;return j.getSelectedNodeByType(t,n)},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){var n=this.getListNode(t);if(n==null)return!1;var r=n.ordered;return(r!==void 0&&r)===this.ordered},e.prototype.isDisabled=function(t){return t.selection==null||!!j.getSelectedElems(t).some(function(n){if(k.isVoid(t,n)&&k.isBlock(t,n))return!0;var r=n.type;return!!["pre","code","table"].includes(r)||void 0})},e.prototype.exec=function(t,n){this.isActive(t)?Z.setNodes(t,{type:"paragraph",ordered:void 0,level:void 0}):Z.setNodes(t,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),Sue='<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>',xue='<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>',Due=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.ordered=!1,n.title=we("listModule.unOrderedList"),n.iconSvg=Sue,n}return AF(t,e),t}(TF),Aue=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.ordered=!0,n.title=we("listModule.orderedList"),n.iconSvg=xue,n}return AF(t,e),t}(TF),_ue={key:"bulletedList",factory:function(){return new Due}},kue={key:"numberedList",factory:function(){return new Aue}},FF=[],PF,Oue={type:"list-item",elemToHtml:function(e,t){var n="",r="",i=e.ordered,o=i!==void 0&&i?"ol":"ul",a=function(f){var d=AE.get(f);if(d==null)return 0;var p=f,g=p.type,h=p.ordered,E=h!==void 0&&h,w=p.level,y=w===void 0?0:w,$=j.findPath(d,f);if($[0]===0)return y+1;var m=G.previous($),S=k.node(d,m);if(!S)return 0;var D=Zp(S,1)[0];if(j.getNodeType(D)!==g)return y+1;var A=D,B=A.ordered,P=B!==void 0&&B,U=A.level,Y=U===void 0?0:U;return Y<y?y-Y:Y>y?0:Y===y?P===E?0:1:0}(e);if(a>0)for(var l=0;l<a;l++)n+="<"+o+">",FF.push(o);var u=function(f){var d=AE.get(f);if(d==null)return 0;var p=f,g=p.type,h=p.ordered,E=h!==void 0&&h,w=p.level,y=w===void 0?0:w,$=j.findPath(d,f);if($[0]===d.children.length-1)return y+1;var m=G.next($),S=k.node(d,m);if(!S)return 0;var D=Zp(S,1)[0];if(j.getNodeType(D)!==g)return y+1;var A=D,B=A.ordered,P=B!==void 0&&B,U=A.level,Y=U===void 0?0:U;return Y<y?y-Y:Y>y?0:Y===y?P===E?0:1:0}(e);if(u>0)for(l=0;l<u;l++)r+="</"+FF.pop()+">";return{html:"<li>"+t+"</li>",prefix:n,suffix:r}}},Bue=ir("species"),Tue=$E.filter,Fue=(PF="filter",W3>=51||!sn(function(){var e=[];return(e.constructor={})[Bue]=function(){return{foo:1}},e[PF](Boolean).foo!==1}));ol({target:"Array",proto:!0,forced:!Fue},{filter:function(e){return Tue(this,e,arguments.length>1?arguments[1]:void 0)}});var NE=Function.prototype,IF=NE.apply,Pue=NE.bind,NF=NE.call,Iue=typeof Reflect=="object"&&Reflect.apply||(Pue?NF.bind(IF):function(){return NF.apply(IF,arguments)}),Nue=ir("species"),LE=RegExp.prototype,Lue=QT.charAt,Rue=function(e,t,n){return t+(n?Lue(e,t).length:1)},Mue=Math.floor,RE=rt("".charAt),jue=rt("".replace),ME=rt("".slice),zue=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Vue=/\$([$&'`]|\d{1,2})/g,Uue=function(e,t,n,r,i,o){var a=n+e.length,l=r.length,u=Vue;return i!==void 0&&(i=Rp(i),u=zue),jue(o,u,function(f,d){var p;switch(RE(d,0)){case"$":return"$";case"&":return e;case"`":return ME(t,0,n);case"'":return ME(t,a);case"<":p=i[ME(d,1,-1)];break;default:var g=+d;if(g===0)return f;if(g>l){var h=Mue(g/10);return h===0?f:h<=l?r[h-1]===void 0?RE(d,1):r[h-1]+RE(d,1):f}p=r[g-1]}return p===void 0?"":p})},Hue=He.TypeError,Wue=function(e,t){var n=e.exec;if(un(n)){var r=zn(n,e,t);return r!==null&&Br(r),r}if(Qo(e)==="RegExp")return zn(H1,e,t);throw Hue("RegExp#exec called on incompatible receiver")},jE=ir("replace"),que=Math.max,Gue=Math.min,Kue=rt([].concat),zE=rt([].push),LF=rt("".indexOf),RF=rt("".slice),Yue="a".replace(/./,"$0")==="$0",MF=!!/./[jE]&&/./[jE]("a","$0")==="";(function(e,t,n,r){var i=ir(e),o=!sn(function(){var f={};return f[i]=function(){return 7},""[e](f)!=7}),a=o&&!sn(function(){var f=!1,d=/a/;return e==="split"&&((d={}).constructor={},d.constructor[Nue]=function(){return d},d.flags="",d[i]=/./[i]),d.exec=function(){return f=!0,null},d[i](""),!f});if(!o||!a||n){var l=rt(/./[i]),u=t(i,""[e],function(f,d,p,g,h){var E=rt(f),w=d.exec;return w===H1||w===LE.exec?o&&!h?{done:!0,value:l(d,p,g)}:{done:!0,value:E(p,d,g)}:{done:!1}});$o(String.prototype,e,u[0]),$o(LE,i,u[1])}r&&ea(LE[i],"sham",!0)})("replace",function(e,t,n){var r=MF?"$":"$0";return[function(i,o){var a=C1(this),l=i==null?void 0:Vp(i,jE);return l?zn(l,i,a,o):zn(t,ta(a),i,o)},function(i,o){var a=Br(this),l=ta(i);if(typeof o=="string"&&LF(o,r)===-1&&LF(o,"$<")===-1){var u=n(t,a,l,o);if(u.done)return u.value}var f=un(o);f||(o=ta(o));var d=a.global;if(d){var p=a.unicode;a.lastIndex=0}for(var g=[];;){var h=Wue(a,l);if(h===null||(zE(g,h),!d))break;ta(h[0])===""&&(a.lastIndex=Rue(l,DT(a.lastIndex),p))}for(var E,w="",y=0,$=0;$<g.length;$++){for(var m=ta((h=g[$])[0]),S=que(Gue(Up(h.index),l.length),0),D=[],A=1;A<h.length;A++)zE(D,(E=h[A])===void 0?E:String(E));var B=h.groups;if(f){var P=Kue([m],D,S,l);B!==void 0&&zE(P,B);var U=ta(Iue(o,void 0,P))}else U=Uue(m,l,S,D,B,o);S>=y&&(w+=RF(l,y,S)+U,y=S+m.length)}return w+RF(l,y)}]},!!sn(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!Yue||MF);var Xue=He.TypeError,jF=function(e,t,n,r,i,o,a,l){for(var u,f,d=i,p=0,g=!!a&&yE(a,l);p<r;){if(p in n){if(u=g?g(n[p],p,t):n[p],o>0&&bE(u))f=qc(u),d=jF(e,t,u,f,d,o-1)-1;else{if(d>=9007199254740991)throw Xue("Exceed the acceptable array length");e[d]=u}d++}p++}return d},Jue=jF;function VE(e){return e.length?e[0].tagName.toLowerCase():""}ol({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=Rp(this),n=qc(t),r=gF(t,0);return r.length=Jue(r,t,t,n,0,e===void 0?1:Up(e)),r}}),Hp("flat"),ol({global:!0},{globalThis:He}),li&&(V.fn.append=li),ai&&(V.fn.attr=ai),qu&&(V.fn.parent=qu);var Zue={renderElems:[cue],editorPlugin:function(e){var t=e.deleteBackward,n=e.handleTab,r=e.normalizeNode,i=e;return i.deleteBackward=function(o){var a=i.selection;if(a!=null)if(re.isExpanded(a))t(o);else{var l=j.getSelectedNodeByType(i,"list-item");if(l!=null)if(a.focus.offset!==0)t(o);else{var u=l.level,f=u===void 0?0:u;f>0?Z.setNodes(i,{level:f-1}):Z.setNodes(i,{type:"paragraph",ordered:void 0,level:void 0})}else t(o)}else t(o)},i.handleTab=function(){var o,a,l,u,f=i.selection;if(f!=null){if(re.isCollapsed(f)){var d=j.getSelectedNodeByType(i,"list-item");if(d==null)return void n();if(f.focus.offset===0){var p=d.level,g=p===void 0?0:p;return void Z.setNodes(i,{level:g+1})}}if(re.isExpanded(f)){var h=0,E=!1;try{for(var w=_F(kF(i)),y=w.next();!y.done;y=w.next()){var $=Zp(y.value,1)[0];j.getNodeType($)==="list-item"?h++:E=!0}}catch(P){o={error:P}}finally{try{y&&!y.done&&(a=w.return)&&a.call(w)}finally{if(o)throw o.error}}if(E||h<=1)return void n();try{for(var m=_F(kF(i)),S=m.next();!S.done;S=m.next()){var D=Zp(S.value,2),A=($=D[0],D[1]),B=$.level;g=B===void 0?0:B,Z.setNodes(i,{level:g+1},{at:A})}}catch(P){l={error:P}}finally{try{S&&!S.done&&(u=m.return)&&u.call(m)}finally{if(l)throw l.error}}}else n()}else n()},i.normalizeNode=function(o){var a=Zp(o,2),l=a[0],u=a[1],f=j.getNodeType(l);return f!=="bulleted-list"&&f!=="numbered-list"||Z.unwrapNodes(i,{at:u}),r([l,u])},i},menus:[_ue,kue],elemsToHtml:[Oue],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(e,t,n){return t.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=V(e);(t=t.filter(function(a){return!!Se.isText(a)||!!n.isInline(a)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var i=function(a){return VE(a.parent())==="ol"}(r),o=function(a){for(var l=0,u=a.parent(),f=VE(u);f==="ul"||f==="ol";)f=VE(u=u.parent()),l++;return l-1}(r);return{type:"list-item",ordered:i,level:o,children:t}}}]},zF=Ib(function(e,t){var n=200,r="__lodash_hash_undefined__",i=1,o=2,a=9007199254740991,l="[object Arguments]",u="[object Array]",f="[object AsyncFunction]",d="[object Boolean]",p="[object Date]",g="[object Error]",h="[object Function]",E="[object GeneratorFunction]",w="[object Map]",y="[object Number]",$="[object Null]",m="[object Object]",S="[object Promise]",D="[object Proxy]",A="[object RegExp]",B="[object Set]",P="[object String]",U="[object Symbol]",Y="[object Undefined]",ce="[object WeakMap]",ee="[object ArrayBuffer]",ge="[object DataView]",se="[object Float32Array]",xe="[object Float64Array]",ve="[object Int8Array]",Oe="[object Int16Array]",Te="[object Int32Array]",Ne="[object Uint8Array]",Re="[object Uint8ClampedArray]",Ae="[object Uint16Array]",ie="[object Uint32Array]",R=/[\\^$.*+?()[\]{}|]/g,M=/^\[object .+?Constructor\]$/,T=/^(?:0|[1-9]\d*)$/,L={};L[se]=L[xe]=L[ve]=L[Oe]=L[Te]=L[Ne]=L[Re]=L[Ae]=L[ie]=!0,L[l]=L[u]=L[ee]=L[d]=L[ge]=L[p]=L[g]=L[h]=L[w]=L[y]=L[m]=L[A]=L[B]=L[P]=L[ce]=!1;var q=typeof Jt=="object"&&Jt&&Jt.Object===Object&&Jt,O=typeof self=="object"&&self&&self.Object===Object&&self,J=q||O||Function("return this")(),ue=t&&!t.nodeType&&t,he=ue&&!0&&e&&!e.nodeType&&e,te=he&&he.exports===ue,Q=te&&q.process,Ce=function(){try{return Q&&Q.binding&&Q.binding("util")}catch{}}(),ae=Ce&&Ce.isTypedArray;function ye(x,I){for(var H=-1,oe=x==null?0:x.length,qe=0,Ie=[];++H<oe;){var ut=x[H];I(ut,H,x)&&(Ie[qe++]=ut)}return Ie}function Le(x,I){for(var H=-1,oe=I.length,qe=x.length;++H<oe;)x[qe+H]=I[H];return x}function $t(x,I){for(var H=-1,oe=x==null?0:x.length;++H<oe;)if(I(x[H],H,x))return!0;return!1}function ft(x,I){for(var H=-1,oe=Array(x);++H<x;)oe[H]=I(H);return oe}function ot(x){return function(I){return x(I)}}function Ze(x,I){return x.has(I)}function dt(x,I){return x==null?void 0:x[I]}function pt(x){var I=-1,H=Array(x.size);return x.forEach(function(oe,qe){H[++I]=[qe,oe]}),H}function rn(x,I){return function(H){return x(I(H))}}function In(x){var I=-1,H=Array(x.size);return x.forEach(function(oe){H[++I]=oe}),H}var mt=Array.prototype,on=Function.prototype,Kt=Object.prototype,Yt=J["__core-js_shared__"],Jn=on.toString,dn=Kt.hasOwnProperty,Nn=function(){var x=/[^.]+$/.exec(Yt&&Yt.keys&&Yt.keys.IE_PROTO||"");return x?"Symbol(src)_1."+x:""}(),Di=Kt.toString,Zi=RegExp("^"+Jn.call(dn).replace(R,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$r=te?J.Buffer:void 0,Fr=J.Symbol,Ai=J.Uint8Array,Pr=Kt.propertyIsEnumerable,Qr=mt.splice,Er=Fr?Fr.toStringTag:void 0,To=Object.getOwnPropertySymbols,Fl=$r?$r.isBuffer:void 0,Fo=rn(Object.keys,Object),pu=gr(J,"DataView"),la=gr(J,"Map"),hu=gr(J,"Promise"),gu=gr(J,"Set"),Pl=gr(J,"WeakMap"),Po=gr(Object,"create"),Af=ar(pu),Qi=ar(la),vu=ar(hu),Cg=ar(gu),mu=ar(Pl),_f=Fr?Fr.prototype:void 0,yu=_f?_f.valueOf:void 0;function Un(x){var I=-1,H=x==null?0:x.length;for(this.clear();++I<H;){var oe=x[I];this.set(oe[0],oe[1])}}function Sg(){this.__data__=Po?Po(null):{},this.size=0}function xg(x){var I=this.has(x)&&delete this.__data__[x];return this.size-=I?1:0,I}function Dg(x){var I=this.__data__;if(Po){var H=I[x];return H===r?void 0:H}return dn.call(I,x)?I[x]:void 0}function Ag(x){var I=this.__data__;return Po?I[x]!==void 0:dn.call(I,x)}function _g(x,I){var H=this.__data__;return this.size+=this.has(x)?0:1,H[x]=Po&&I===void 0?r:I,this}Un.prototype.clear=Sg,Un.prototype.delete=xg,Un.prototype.get=Dg,Un.prototype.has=Ag,Un.prototype.set=_g;function Hn(x){var I=-1,H=x==null?0:x.length;for(this.clear();++I<H;){var oe=x[I];this.set(oe[0],oe[1])}}function kg(){this.__data__=[],this.size=0}function Og(x){var I=this.__data__,H=ua(I,x);if(H<0)return!1;var oe=I.length-1;return H==oe?I.pop():Qr.call(I,H,1),--this.size,!0}function Bg(x){var I=this.__data__,H=ua(I,x);return H<0?void 0:I[H][1]}function Tg(x){return ua(this.__data__,x)>-1}function Fg(x,I){var H=this.__data__,oe=ua(H,x);return oe<0?(++this.size,H.push([x,I])):H[oe][1]=I,this}Hn.prototype.clear=kg,Hn.prototype.delete=Og,Hn.prototype.get=Bg,Hn.prototype.has=Tg,Hn.prototype.set=Fg;function hr(x){var I=-1,H=x==null?0:x.length;for(this.clear();++I<H;){var oe=x[I];this.set(oe[0],oe[1])}}function Il(){this.size=0,this.__data__={hash:new Un,map:new(la||Hn),string:new Un}}function Pg(x){var I=Cr(this,x).delete(x);return this.size-=I?1:0,I}function Nl(x){return Cr(this,x).get(x)}function Ig(x){return Cr(this,x).has(x)}function Ng(x,I){var H=Cr(this,x),oe=H.size;return H.set(x,I),this.size+=H.size==oe?0:1,this}hr.prototype.clear=Il,hr.prototype.delete=Pg,hr.prototype.get=Nl,hr.prototype.has=Ig,hr.prototype.set=Ng;function Ll(x){var I=-1,H=x==null?0:x.length;for(this.__data__=new hr;++I<H;)this.add(x[I])}function bu(x){return this.__data__.set(x,r),this}function sa(x){return this.__data__.has(x)}Ll.prototype.add=Ll.prototype.push=bu,Ll.prototype.has=sa;function ei(x){var I=this.__data__=new Hn(x);this.size=I.size}function wu(){this.__data__=new Hn,this.size=0}function Lg(x){var I=this.__data__,H=I.delete(x);return this.size=I.size,H}function Rg(x){return this.__data__.get(x)}function Mg(x){return this.__data__.has(x)}function kf(x,I){var H=this.__data__;if(H instanceof Hn){var oe=H.__data__;if(!la||oe.length<n-1)return oe.push([x,I]),this.size=++H.size,this;H=this.__data__=new hr(oe)}return H.set(x,I),this.size=H.size,this}ei.prototype.clear=wu,ei.prototype.delete=Lg,ei.prototype.get=Rg,ei.prototype.has=Mg,ei.prototype.set=kf;function Of(x,I){var H=Rl(x),oe=!H&&Eu(x),qe=!H&&!oe&&Ml(x),Ie=!H&&!oe&&!qe&&Uf(x),ut=H||oe||qe||Ie,Et=ut?ft(x.length,String):[],ct=Et.length;for(var St in x)(I||dn.call(x,St))&&!(ut&&(St=="length"||qe&&(St=="offset"||St=="parent")||Ie&&(St=="buffer"||St=="byteLength"||St=="byteOffset")||Nf(St,ct)))&&Et.push(St);return Et}function ua(x,I){for(var H=x.length;H--;)if(zf(x[H][0],I))return H;return-1}function ca(x,I,H){var oe=I(x);return Rl(x)?oe:Le(oe,H(x))}function fa(x){return x==null?x===void 0?Y:$:Er&&Er in Object(x)?_i(x):jf(x)}function $u(x){return Oi(x)&&fa(x)==l}function da(x,I,H,oe,qe){return x===I?!0:x==null||I==null||!Oi(x)&&!Oi(I)?x!==x&&I!==I:Bf(x,I,H,oe,da,qe)}function Bf(x,I,H,oe,qe,Ie){var ut=Rl(x),Et=Rl(I),ct=ut?u:ki(x),St=Et?u:ki(I);ct=ct==l?m:ct,St=St==l?m:St;var an=ct==m,lr=St==m,pn=ct==St;if(pn&&Ml(x)){if(!Ml(I))return!1;ut=!0,an=!1}if(pn&&!an)return Ie||(Ie=new ei),ut||Uf(x)?pa(x,I,H,oe,qe,Ie):zg(x,I,ct,H,oe,qe,Ie);if(!(H&i)){var It=an&&dn.call(x,"__wrapped__"),Ln=lr&&dn.call(I,"__wrapped__");if(It||Ln){var to=It?x.value():x,Bi=Ln?I.value():I;return Ie||(Ie=new ei),qe(to,Bi,H,oe,Ie)}}return pn?(Ie||(Ie=new ei),Pf(x,I,H,oe,qe,Ie)):!1}function jg(x){if(!Vf(x)||Rf(x))return!1;var I=jl(x)?Zi:M;return I.test(ar(x))}function Tf(x){return Oi(x)&&Su(x.length)&&!!L[fa(x)]}function Ff(x){if(!Mf(x))return Fo(x);var I=[];for(var H in Object(x))dn.call(x,H)&&H!="constructor"&&I.push(H);return I}function pa(x,I,H,oe,qe,Ie){var ut=H&i,Et=x.length,ct=I.length;if(Et!=ct&&!(ut&&ct>Et))return!1;var St=Ie.get(x);if(St&&Ie.get(I))return St==I;var an=-1,lr=!0,pn=H&o?new Ll:void 0;for(Ie.set(x,I),Ie.set(I,x);++an<Et;){var It=x[an],Ln=I[an];if(oe)var to=ut?oe(Ln,It,an,I,x,Ie):oe(It,Ln,an,x,I,Ie);if(to!==void 0){if(to)continue;lr=!1;break}if(pn){if(!$t(I,function(Bi,Io){if(!Ze(pn,Io)&&(It===Bi||qe(It,Bi,H,oe,Ie)))return pn.push(Io)})){lr=!1;break}}else if(!(It===Ln||qe(It,Ln,H,oe,Ie))){lr=!1;break}}return Ie.delete(x),Ie.delete(I),lr}function zg(x,I,H,oe,qe,Ie,ut){switch(H){case ge:if(x.byteLength!=I.byteLength||x.byteOffset!=I.byteOffset)return!1;x=x.buffer,I=I.buffer;case ee:return!(x.byteLength!=I.byteLength||!Ie(new Ai(x),new Ai(I)));case d:case p:case y:return zf(+x,+I);case g:return x.name==I.name&&x.message==I.message;case A:case P:return x==I+"";case w:var Et=pt;case B:var ct=oe&i;if(Et||(Et=In),x.size!=I.size&&!ct)return!1;var St=ut.get(x);if(St)return St==I;oe|=o,ut.set(x,I);var an=pa(Et(x),Et(I),oe,qe,Ie,ut);return ut.delete(x),an;case U:if(yu)return yu.call(x)==yu.call(I)}return!1}function Pf(x,I,H,oe,qe,Ie){var ut=H&i,Et=eo(x),ct=Et.length,St=eo(I),an=St.length;if(ct!=an&&!ut)return!1;for(var lr=ct;lr--;){var pn=Et[lr];if(!(ut?pn in I:dn.call(I,pn)))return!1}var It=Ie.get(x);if(It&&Ie.get(I))return It==I;var Ln=!0;Ie.set(x,I),Ie.set(I,x);for(var to=ut;++lr<ct;){pn=Et[lr];var Bi=x[pn],Io=I[pn];if(oe)var Ug=ut?oe(Io,Bi,pn,I,x,Ie):oe(Bi,Io,pn,x,I,Ie);if(!(Ug===void 0?Bi===Io||qe(Bi,Io,H,oe,Ie):Ug)){Ln=!1;break}to||(to=pn=="constructor")}if(Ln&&!to){var Du=x.constructor,Zn=I.constructor;Du!=Zn&&"constructor"in x&&"constructor"in I&&!(typeof Du=="function"&&Du instanceof Du&&typeof Zn=="function"&&Zn instanceof Zn)&&(Ln=!1)}return Ie.delete(x),Ie.delete(I),Ln}function eo(x){return ca(x,xu,If)}function Cr(x,I){var H=x.__data__;return Lf(I)?H[typeof I=="string"?"string":"hash"]:H.map}function gr(x,I){var H=dt(x,I);return jg(H)?H:void 0}function _i(x){var I=dn.call(x,Er),H=x[Er];try{x[Er]=void 0;var oe=!0}catch{}var qe=Di.call(x);return oe&&(I?x[Er]=H:delete x[Er]),qe}var If=To?function(x){return x==null?[]:(x=Object(x),ye(To(x),function(I){return Pr.call(x,I)}))}:Pt,ki=fa;(pu&&ki(new pu(new ArrayBuffer(1)))!=ge||la&&ki(new la)!=w||hu&&ki(hu.resolve())!=S||gu&&ki(new gu)!=B||Pl&&ki(new Pl)!=ce)&&(ki=function(x){var I=fa(x),H=I==m?x.constructor:void 0,oe=H?ar(H):"";if(oe)switch(oe){case Af:return ge;case Qi:return w;case vu:return S;case Cg:return B;case mu:return ce}return I});function Nf(x,I){return I=I==null?a:I,!!I&&(typeof x=="number"||T.test(x))&&x>-1&&x%1==0&&x<I}function Lf(x){var I=typeof x;return I=="string"||I=="number"||I=="symbol"||I=="boolean"?x!=="__proto__":x===null}function Rf(x){return!!Nn&&Nn in x}function Mf(x){var I=x&&x.constructor,H=typeof I=="function"&&I.prototype||Kt;return x===H}function jf(x){return Di.call(x)}function ar(x){if(x!=null){try{return Jn.call(x)}catch{}try{return x+""}catch{}}return""}function zf(x,I){return x===I||x!==x&&I!==I}var Eu=$u(function(){return arguments}())?$u:function(x){return Oi(x)&&dn.call(x,"callee")&&!Pr.call(x,"callee")},Rl=Array.isArray;function Cu(x){return x!=null&&Su(x.length)&&!jl(x)}var Ml=Fl||Bt;function Vg(x,I){return da(x,I)}function jl(x){if(!Vf(x))return!1;var I=fa(x);return I==h||I==E||I==f||I==D}function Su(x){return typeof x=="number"&&x>-1&&x%1==0&&x<=a}function Vf(x){var I=typeof x;return x!=null&&(I=="object"||I=="function")}function Oi(x){return x!=null&&typeof x=="object"}var Uf=ae?ot(ae):Tf;function xu(x){return Cu(x)?Of(x):Ff(x)}function Pt(){return[]}function Bt(){return!1}e.exports=Vg});wr("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"}}),wr("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 VF=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function UF(e){var t={exports:{}};return e(t,t.exports),t.exports}var ll,W1,q1=function(e){return e&&e.Math==Math&&e},et=q1(typeof globalThis=="object"&&globalThis)||q1(typeof window=="object"&&window)||q1(typeof self=="object"&&self)||q1(typeof VF=="object"&&VF)||function(){return this}()||Function("return this")(),On=function(e){try{return!!e()}catch{return!0}},sl=!On(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Qp=Function.prototype.call,Bn=Qp.bind?Qp.bind(Qp):function(){return Qp.apply(Qp,arguments)},HF={}.propertyIsEnumerable,WF=Object.getOwnPropertyDescriptor,Que={f:WF&&!HF.call({1:2},1)?function(e){var t=WF(this,e);return!!t&&t.enumerable}:HF},UE=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},qF=Function.prototype,HE=qF.bind,WE=qF.call,ece=HE&&HE.bind(WE),lt=HE?function(e){return e&&ece(WE,e)}:function(e){return e&&function(){return WE.apply(e,arguments)}},tce=lt({}.toString),nce=lt("".slice),ul=function(e){return nce(tce(e),8,-1)},qE=et.Object,rce=lt("".split),GF=On(function(){return!qE("z").propertyIsEnumerable(0)})?function(e){return ul(e)=="String"?rce(e,""):qE(e)}:qE,ice=et.TypeError,cl=function(e){if(e==null)throw ice("Can't call method on "+e);return e},eh=function(e){return GF(cl(e))},or=function(e){return typeof e=="function"},wi=function(e){return typeof e=="object"?e!==null:or(e)},oce=function(e){return or(e)?e:void 0},th=function(e,t){return arguments.length<2?oce(et[e]):et[e]&&et[e][t]},KF=lt({}.isPrototypeOf),GE=th("navigator","userAgent")||"",YF=et.process,XF=et.Deno,JF=YF&&YF.versions||XF&&XF.version,ZF=JF&&JF.v8;ZF&&(W1=(ll=ZF.split("."))[0]>0&&ll[0]<4?1:+(ll[0]+ll[1])),!W1&&GE&&(!(ll=GE.match(/Edge\/(\d+)/))||ll[1]>=74)&&(ll=GE.match(/Chrome\/(\d+)/))&&(W1=+ll[1]);var KE=W1,YE=!!Object.getOwnPropertySymbols&&!On(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&KE&&KE<41}),XE=YE&&!Symbol.sham&&typeof Symbol.iterator=="symbol",ace=et.Object,JE=XE?function(e){return typeof e=="symbol"}:function(e){var t=th("Symbol");return or(t)&&KF(t.prototype,ace(e))},lce=et.String,QF=function(e){try{return lce(e)}catch{return"Object"}},sce=et.TypeError,eP=function(e){if(or(e))return e;throw sce(QF(e)+" is not a function")},ZE=function(e,t){var n=e[t];return n==null?void 0:eP(n)},uce=et.TypeError,cce=Object.defineProperty,QE=function(e,t){try{cce(et,e,{value:t,configurable:!0,writable:!0})}catch{et[e]=t}return t},fl=et["__core-js_shared__"]||QE("__core-js_shared__",{}),eC=UF(function(e){(e.exports=function(t,n){return fl[t]||(fl[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),fce=et.Object,tC=function(e){return fce(cl(e))},dce=lt({}.hasOwnProperty),$i=Object.hasOwn||function(e,t){return dce(tC(e),t)},pce=0,hce=Math.random(),gce=lt(1 .toString),tP=function(e){return"Symbol("+(e===void 0?"":e)+")_"+gce(++pce+hce,36)},nh=eC("wks"),Gs=et.Symbol,nP=Gs&&Gs.for,vce=XE?Gs:Gs&&Gs.withoutSetter||tP,Ei=function(e){if(!$i(nh,e)||!YE&&typeof nh[e]!="string"){var t="Symbol."+e;YE&&$i(Gs,e)?nh[e]=Gs[e]:nh[e]=XE&&nP?nP(t):vce(t)}return nh[e]},mce=et.TypeError,yce=Ei("toPrimitive"),bce=function(e,t){if(!wi(e)||JE(e))return e;var n,r=ZE(e,yce);if(r){if(t===void 0&&(t="default"),n=Bn(r,e,t),!wi(n)||JE(n))return n;throw mce("Can't convert object to primitive value")}return t===void 0&&(t="number"),function(i,o){var a,l;if(o==="string"&&or(a=i.toString)&&!wi(l=Bn(a,i))||or(a=i.valueOf)&&!wi(l=Bn(a,i))||o!=="string"&&or(a=i.toString)&&!wi(l=Bn(a,i)))return l;throw uce("Can't convert object to primitive value")}(e,t)},nC=function(e){var t=bce(e,"string");return JE(t)?t:t+""},rC=et.document,wce=wi(rC)&&wi(rC.createElement),iC=function(e){return wce?rC.createElement(e):{}},rP=!sl&&!On(function(){return Object.defineProperty(iC("div"),"a",{get:function(){return 7}}).a!=7}),iP=Object.getOwnPropertyDescriptor,oP={f:sl?iP:function(e,t){if(e=eh(e),t=nC(t),rP)try{return iP(e,t)}catch{}if($i(e,t))return UE(!Bn(Que.f,e,t),e[t])}},$ce=et.String,Ece=et.TypeError,Ci=function(e){if(wi(e))return e;throw Ece($ce(e)+" is not an object")},Cce=et.TypeError,aP=Object.defineProperty,rh={f:sl?aP:function(e,t,n){if(Ci(e),t=nC(t),Ci(n),rP)try{return aP(e,t,n)}catch{}if("get"in n||"set"in n)throw Cce("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Yc=sl?function(e,t,n){return rh.f(e,t,UE(1,n))}:function(e,t,n){return e[t]=n,e},Sce=lt(Function.toString);or(fl.inspectSource)||(fl.inspectSource=function(e){return Sce(e)});var G1,ih,K1,oC=fl.inspectSource,lP=et.WeakMap,xce=or(lP)&&/native code/.test(oC(lP)),sP=eC("keys"),uP=function(e){return sP[e]||(sP[e]=tP(e))},aC={},lC=et.TypeError,Dce=et.WeakMap;if(xce||fl.state){var Ks=fl.state||(fl.state=new Dce),Ace=lt(Ks.get),cP=lt(Ks.has),_ce=lt(Ks.set);G1=function(e,t){if(cP(Ks,e))throw new lC("Object already initialized");return t.facade=e,_ce(Ks,e,t),t},ih=function(e){return Ace(Ks,e)||{}},K1=function(e){return cP(Ks,e)}}else{var Xc=uP("state");aC[Xc]=!0,G1=function(e,t){if($i(e,Xc))throw new lC("Object already initialized");return t.facade=e,Yc(e,Xc,t),t},ih=function(e){return $i(e,Xc)?e[Xc]:{}},K1=function(e){return $i(e,Xc)}}var sC={set:G1,get:ih,has:K1,enforce:function(e){return K1(e)?ih(e):G1(e,{})},getterFor:function(e){return function(t){var n;if(!wi(t)||(n=ih(t)).type!==e)throw lC("Incompatible receiver, "+e+" required");return n}}},fP=Function.prototype,kce=sl&&Object.getOwnPropertyDescriptor,uC=$i(fP,"name"),cC={EXISTS:uC,PROPER:uC&&function(){}.name==="something",CONFIGURABLE:uC&&(!sl||sl&&kce(fP,"name").configurable)},oh=UF(function(e){var t=cC.CONFIGURABLE,n=sC.get,r=sC.enforce,i=String(String).split("String");(e.exports=function(o,a,l,u){var f,d=!!u&&!!u.unsafe,p=!!u&&!!u.enumerable,g=!!u&&!!u.noTargetGet,h=u&&u.name!==void 0?u.name:a;or(l)&&(String(h).slice(0,7)==="Symbol("&&(h="["+String(h).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!$i(l,"name")||t&&l.name!==h)&&Yc(l,"name",h),(f=r(l)).source||(f.source=i.join(typeof h=="string"?h:""))),o!==et?(d?!g&&o[a]&&(p=!0):delete o[a],p?o[a]=l:Yc(o,a,l)):p?o[a]=l:QE(a,l)})(Function.prototype,"toString",function(){return or(this)&&n(this).source||oC(this)})}),Oce=Math.ceil,Bce=Math.floor,Y1=function(e){var t=+e;return t!=t||t===0?0:(t>0?Bce:Oce)(t)},Tce=Math.max,Fce=Math.min,ah=function(e,t){var n=Y1(e);return n<0?Tce(n+t,0):Fce(n,t)},Pce=Math.min,fC=function(e){return e>0?Pce(Y1(e),9007199254740991):0},X1=function(e){return fC(e.length)},dP=function(e){return function(t,n,r){var i,o=eh(t),a=X1(o),l=ah(r,a);if(e&&n!=n){for(;a>l;)if((i=o[l++])!=i)return!0}else for(;a>l;l++)if((e||l in o)&&o[l]===n)return e||l||0;return!e&&-1}},Ice={includes:dP(!0),indexOf:dP(!1)}.indexOf,pP=lt([].push),hP=function(e,t){var n,r=eh(e),i=0,o=[];for(n in r)!$i(aC,n)&&$i(r,n)&&pP(o,n);for(;t.length>i;)$i(r,n=t[i++])&&(~Ice(o,n)||pP(o,n));return o},J1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Nce=J1.concat("length","prototype"),Lce={f:Object.getOwnPropertyNames||function(e){return hP(e,Nce)}},Rce={f:Object.getOwnPropertySymbols},Mce=lt([].concat),jce=th("Reflect","ownKeys")||function(e){var t=Lce.f(Ci(e)),n=Rce.f;return n?Mce(t,n(e)):t},zce=function(e,t){for(var n=jce(t),r=rh.f,i=oP.f,o=0;o<n.length;o++){var a=n[o];$i(e,a)||r(e,a,i(t,a))}},Vce=/#|\.prototype\./,lh=function(e,t){var n=Hce[Uce(e)];return n==qce||n!=Wce&&(or(t)?On(t):!!t)},Uce=lh.normalize=function(e){return String(e).replace(Vce,".").toLowerCase()},Hce=lh.data={},Wce=lh.NATIVE="N",qce=lh.POLYFILL="P",Gce=lh,Kce=oP.f,dl=function(e,t){var n,r,i,o,a,l=e.target,u=e.global,f=e.stat;if(n=u?et:f?et[l]||QE(l,{}):(et[l]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=Kce(n,r))&&a.value:n[r],!Gce(u?r:l+(f?".":"#")+r,e.forced)&&i!==void 0){if(typeof o==typeof i)continue;zce(o,i)}(e.sham||i&&i.sham)&&Yc(o,"sham",!0),oh(n,r,o,e)}},gP={};gP[Ei("toStringTag")]="z";var vP,dC=String(gP)==="[object z]",Yce=Ei("toStringTag"),Xce=et.Object,Jce=ul(function(){return arguments}())=="Arguments",pC=dC?ul: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=Xce(e),Yce))=="string"?n:Jce?ul(t):(r=ul(t))=="Object"&&or(t.callee)?"Arguments":r},Zce=et.String,dr=function(e){if(pC(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Zce(e)},Qce=/"/g,efe=lt("".replace);dl({target:"String",proto:!0,forced:(vP="anchor",On(function(){var e=""[vP]('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t="a",n="name",r=e,i=dr(cl(this)),o="<"+t,n!==""&&(o+=" "+n+'="'+efe(dr(r),Qce,"&quot;")+'"'),o+">"+i+"</"+t+">";var t,n,r,i,o}});var Z1,mP=function(){var e=Ci(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},hC=et.RegExp,gC=On(function(){var e=hC("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),tfe=gC||On(function(){return!hC("a","y").sticky}),yP={BROKEN_CARET:gC||On(function(){var e=hC("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:tfe,UNSUPPORTED_Y:gC},nfe=Object.keys||function(e){return hP(e,J1)},rfe=sl?Object.defineProperties:function(e,t){Ci(e);for(var n,r=eh(t),i=nfe(t),o=i.length,a=0;o>a;)rh.f(e,n=i[a++],r[n]);return e},ife=th("document","documentElement"),bP=uP("IE_PROTO"),vC=function(){},wP=function(e){return"<script>"+e+"<\/script>"},$P=function(e){e.write(wP("")),e.close();var t=e.parentWindow.Object;return e=null,t},Q1=function(){try{Z1=new ActiveXObject("htmlfile")}catch{}var e,t;Q1=typeof document<"u"?document.domain&&Z1?$P(Z1):((t=iC("iframe")).style.display="none",ife.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(wP("document.F=Object")),e.close(),e.F):$P(Z1);for(var n=J1.length;n--;)delete Q1.prototype[J1[n]];return Q1()};aC[bP]=!0;var EP,mC,CP=Object.create||function(e,t){var n;return e!==null?(vC.prototype=Ci(e),n=new vC,vC.prototype=null,n[bP]=e):n=Q1(),t===void 0?n:rfe(n,t)},ofe=et.RegExp,afe=On(function(){var e=ofe(".","s");return!(e.dotAll&&e.exec(`
118
118
  `)&&e.flags==="s")}),lfe=et.RegExp,sfe=On(function(){var e=lfe("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),ufe=sC.get,cfe=eC("native-string-replace",String.prototype.replace),em=RegExp.prototype.exec,yC=em,ffe=lt("".charAt),dfe=lt("".indexOf),pfe=lt("".replace),bC=lt("".slice),wC=(mC=/b*/g,Bn(em,EP=/a/,"a"),Bn(em,mC,"a"),EP.lastIndex!==0||mC.lastIndex!==0),SP=yP.BROKEN_CARET,$C=/()??/.exec("")[1]!==void 0;(wC||$C||SP||afe||sfe)&&(yC=function(e){var t,n,r,i,o,a,l,u=this,f=ufe(u),d=dr(e),p=f.raw;if(p)return p.lastIndex=u.lastIndex,t=Bn(yC,p,d),u.lastIndex=p.lastIndex,t;var g=f.groups,h=SP&&u.sticky,E=Bn(mP,u),w=u.source,y=0,$=d;if(h&&(E=pfe(E,"y",""),dfe(E,"g")===-1&&(E+="g"),$=bC(d,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&ffe(d,u.lastIndex-1)!==`
119
119
  `)&&(w="(?: "+w+")",$=" "+$,y++),n=new RegExp("^(?:"+w+")",E)),$C&&(n=new RegExp("^"+w+"$(?!\\s)",E)),wC&&(r=u.lastIndex),i=Bn(em,h?n:u,$),h?i?(i.input=bC(i.input,y),i[0]=bC(i[0],y),i.index=u.lastIndex,u.lastIndex+=i[0].length):u.lastIndex=0:wC&&i&&(u.lastIndex=u.global?i.index+i[0].length:r),$C&&i&&i.length>1&&Bn(cfe,i[0],n,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(i[o]=void 0)}),i&&g)for(i.groups=a=CP(null),o=0;o<g.length;o++)a[(l=g[o])[0]]=i[l[1]];return i});var sh=yC;dl({target:"RegExp",proto:!0,forced:/./.exec!==sh},{exec:sh});var tm=Array.isArray||function(e){return ul(e)=="Array"},xP=function(){},hfe=[],DP=th("Reflect","construct"),EC=/^\s*(?:class|function)\b/,gfe=lt(EC.exec),vfe=!EC.exec(xP),uh=function(e){if(!or(e))return!1;try{return DP(xP,hfe,e),!0}catch{return!1}},CC=!DP||On(function(){var e;return uh(uh.call)||!uh(Object)||!uh(function(){e=!0})||e})?function(e){if(!or(e))return!1;switch(pC(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return vfe||!!gfe(EC,oC(e))}:uh,AP=function(e,t,n){var r=nC(t);r in e?rh.f(e,r,UE(0,n)):e[r]=n},mfe=Ei("species"),SC=function(e){return KE>=51||!On(function(){var t=[];return(t.constructor={})[mfe]=function(){return{foo:1}},t[e](Boolean).foo!==1})},yfe=lt([].slice),bfe=SC("slice"),wfe=Ei("species"),xC=et.Array,$fe=Math.max;function Ki(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(l){i={error:l}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function _P(e){var t=e.selection;if(t==null)return!1;var n=Ki(k.nodes(e,{match:function(o){return j.checkNodeType(o,"table-cell")}}),1)[0];if(n){var r=Ki(n,2)[1],i=k.start(e,r);if(Ye.equals(t.anchor,i))return!0}return!1}function kP(e,t){var n,r,i=k.nodes(e,{at:t,match:function(u){return j.getNodeType(u)==="table"}}),o=!1;try{for(var a=function(u){var f=typeof Symbol=="function"&&Symbol.iterator,d=f&&u[f],p=0;if(d)return d.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&p>=u.length&&(u=void 0),{value:u&&u[p++],done:!u}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")}(i),l=a.next();!l.done;l=a.next())l.value,o=!0}catch(u){n={error:u}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return o}dl({target:"Array",proto:!0,forced:!bfe},{slice:function(e,t){var n,r,i,o=eh(this),a=X1(o),l=ah(e,a),u=ah(t===void 0?a:t,a);if(tm(o)&&(n=o.constructor,(CC(n)&&(n===xC||tm(n.prototype))||wi(n)&&(n=n[wfe])===null)&&(n=void 0),n===xC||n===void 0))return yfe(o,l,u);for(r=new(n===void 0?xC:n)($fe(u-l,0)),i=0;l<u;l++,i++)l in o&&AP(r,i,o[l]);return r.length=i,r}});var OP=lt(lt.bind),Efe=Ei("species"),BP=et.Array,Cfe=function(e,t){return new(function(n){var r;return tm(n)&&(r=n.constructor,(CC(r)&&(r===BP||tm(r.prototype))||wi(r)&&(r=r[Efe])===null)&&(r=void 0)),r===void 0?BP:r}(e))(t===0?0:t)},TP=lt([].push),pl=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,o=e==6,a=e==7,l=e==5||o;return function(u,f,d,p){for(var g,h,E=tC(u),w=GF(E),y=function(A,B){return eP(A),B===void 0?A:OP?OP(A,B):function(){return A.apply(B,arguments)}}(f,d),$=X1(w),m=0,S=p||Cfe,D=t?S(u,$):n||a?S(u,0):void 0;$>m;m++)if((l||m in w)&&(h=y(g=w[m],m,E),e))if(t)D[m]=h;else if(h)switch(e){case 3:return!0;case 5:return g;case 6:return m;case 2:TP(D,g)}else switch(e){case 4:return!1;case 7:TP(D,g)}return o?-1:r||i?i:D}},nm={forEach:pl(0),map:pl(1),filter:pl(2),some:pl(3),every:pl(4),find:pl(5),findIndex:pl(6),filterReject:pl(7)},Sfe=nm.map;dl({target:"Array",proto:!0,forced:!SC("map")},{map:function(e){return Sfe(this,e,arguments.length>1?arguments[1]:void 0)}});var xfe=dC?{}.toString:function(){return"[object "+pC(this)+"]"};function rm(e){var t=e.children||[];return t.length===0?[]:(t[0]||{}).children||[]}function FP(e){return rm(e).every(function(t){return!!t.isHeader})}dC||oh(Object.prototype,"toString",xfe,{unsafe:!0});var Dfe=cC.PROPER,DC=RegExp.prototype,PP=DC.toString,Afe=lt(mP),_fe=On(function(){return PP.call({source:"a",flags:"b"})!="/a/b"}),kfe=Dfe&&PP.name!="toString";(_fe||kfe)&&oh(RegExp.prototype,"toString",function(){var e=Ci(this),t=dr(e.source),n=e.flags;return"/"+t+"/"+dr(n===void 0&&KF(DC,e)&&!("flags"in DC)?Afe(e):n)},{unsafe:!0});var AC=Ei("unscopables"),_C=Array.prototype;_C[AC]==null&&rh.f(_C,AC,{configurable:!0,value:CP(null)});var IP,Ofe=nm.find,NP=!0;"find"in[]&&Array(1).find(function(){NP=!1}),dl({target:"Array",proto:!0,forced:NP},{find:function(e){return Ofe(this,e,arguments.length>1?arguments[1]:void 0)}}),IP="find",_C[AC][IP]=!0;var kC=Function.prototype,LP=kC.apply,Bfe=kC.bind,RP=kC.call,MP=typeof Reflect=="object"&&Reflect.apply||(Bfe?RP.bind(LP):function(){return RP.apply(LP,arguments)}),Tfe=Ei("species"),OC=RegExp.prototype,jP=function(e,t,n,r){var i=Ei(e),o=!On(function(){var f={};return f[i]=function(){return 7},""[e](f)!=7}),a=o&&!On(function(){var f=!1,d=/a/;return e==="split"&&((d={}).constructor={},d.constructor[Tfe]=function(){return d},d.flags="",d[i]=/./[i]),d.exec=function(){return f=!0,null},d[i](""),!f});if(!o||!a||n){var l=lt(/./[i]),u=t(i,""[e],function(f,d,p,g,h){var E=lt(f),w=d.exec;return w===sh||w===OC.exec?o&&!h?{done:!0,value:l(d,p,g)}:{done:!0,value:E(p,d,g)}:{done:!1}});oh(String.prototype,e,u[0]),oh(OC,i,u[1])}r&&Yc(OC[i],"sham",!0)},Ffe=Ei("match"),Pfe=et.TypeError,Ife=Ei("species"),Nfe=function(e,t){var n,r=Ci(e).constructor;return r===void 0||(n=Ci(r)[Ife])==null?t:function(i){if(CC(i))return i;throw Pfe(QF(i)+" is not a constructor")}(n)},Lfe=lt("".charAt),zP=lt("".charCodeAt),Rfe=lt("".slice),VP=function(e){return function(t,n){var r,i,o=dr(cl(t)),a=Y1(n),l=o.length;return a<0||a>=l?e?"":void 0:(r=zP(o,a))<55296||r>56319||a+1===l||(i=zP(o,a+1))<56320||i>57343?e?Lfe(o,a):r:e?Rfe(o,a,a+2):i-56320+(r-55296<<10)+65536}},Mfe={codeAt:VP(!1),charAt:VP(!0)}.charAt,UP=function(e,t,n){return t+(n?Mfe(e,t).length:1)},jfe=et.Array,zfe=Math.max,HP=function(e,t,n){for(var r=X1(e),i=ah(t,r),o=ah(n===void 0?r:n,r),a=jfe(zfe(o-i,0)),l=0;i<o;i++,l++)AP(a,l,e[i]);return a.length=l,a},Vfe=et.TypeError,BC=function(e,t){var n=e.exec;if(or(n)){var r=Bn(n,e,t);return r!==null&&Ci(r),r}if(ul(e)==="RegExp")return Bn(sh,e,t);throw Vfe("RegExp#exec called on incompatible receiver")},Jc=yP.UNSUPPORTED_Y,Ufe=Math.min,WP=[].push,Hfe=lt(/./.exec),Zc=lt(WP),ch=lt("".slice);jP("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,l,u=dr(cl(this)),f=o===void 0?4294967295:o>>>0;if(f===0)return[];if(i===void 0)return[u];if(!wi(a=i)||!((l=a[Ffe])!==void 0?l:ul(a)=="RegExp"))return Bn(t,u,i,f);for(var d,p,g,h=[],E=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(i.sticky?"y":""),w=0,y=new RegExp(i.source,E+"g");(d=Bn(sh,y,u))&&!((p=y.lastIndex)>w&&(Zc(h,ch(u,w,d.index)),d.length>1&&d.index<u.length&&MP(WP,h,HP(d,1)),g=d[0].length,w=p,h.length>=f));)y.lastIndex===d.index&&y.lastIndex++;return w===u.length?!g&&Hfe(y,"")||Zc(h,""):Zc(h,ch(u,w)),h.length>f?HP(h,0,f):h}:"0".split(void 0,0).length?function(i,o){return i===void 0&&o===0?[]:Bn(t,this,i,o)}:t,[function(i,o){var a=cl(this),l=i==null?void 0:ZE(i,e);return l?Bn(l,i,a,o):Bn(r,dr(a),i,o)},function(i,o){var a=Ci(this),l=dr(i),u=n(r,a,l,o,r!==t);if(u.done)return u.value;var f=Nfe(a,RegExp),d=a.unicode,p=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Jc?"g":"y"),g=new f(Jc?"^(?:"+a.source+")":a,p),h=o===void 0?4294967295:o>>>0;if(h===0)return[];if(l.length===0)return BC(g,l)===null?[l]:[];for(var E=0,w=0,y=[];w<l.length;){g.lastIndex=Jc?0:w;var $,m=BC(g,Jc?ch(l,w):l);if(m===null||($=Ufe(fC(g.lastIndex+(Jc?w:0)),l.length))===E)w=UP(l,w,d);else{if(Zc(y,ch(l,E,w)),y.length===h)return y;for(var S=1;S<=m.length-1;S++)if(Zc(y,m[S]),y.length===h)return y;w=E=$}}return Zc(y,ch(l,E)),y}]},!!On(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"}),Jc);var TC=`
120
120
  \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,qP=lt("".replace),im="["+TC+"]",Wfe=RegExp("^"+im+im+"*"),qfe=RegExp(im+im+"*$"),FC=function(e){return function(t){var n=dr(cl(t));return 1&e&&(n=qP(n,Wfe,"")),2&e&&(n=qP(n,qfe,"")),n}},Gfe={start:FC(1),end:FC(2),trim:FC(3)},Kfe=cC.PROPER,Yfe=Gfe.trim;function GP(e){return e.length?e[0].tagName.toLowerCase():""}dl({target:"String",proto:!0,forced:function(e){return On(function(){return!!TC[e]()||"\u200B\x85\u180E"[e]()!=="\u200B\x85\u180E"||Kfe&&TC[e].name!==e})}("trim")},{trim:function(){return Yfe(this)}}),dl({global:!0},{globalThis:et}),li&&(V.fn.append=li),so&&(V.fn.on=so),Da&&(V.fn.focus=Da),ai&&(V.fn.attr=ai),lo&&(V.fn.val=lo),xa&&(V.fn.html=xa),Hu&&(V.fn.dataset=Hu),zu&&(V.fn.addClass=zu),Vu&&(V.fn.removeClass=Vu),Ku&&(V.fn.children=Ku),S0&&(V.fn.each=S0),Gu&&(V.fn.find=Gu);var fh=!1,KP=0,YP=0,dh=null,ph=null,hh=V("body");function XP(e){fh=!1,ph=null,dh=null,hh.off("mousemove",JP),hh.off("mouseup",XP)}hh.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(),fh=!0;var n=e.clientX;KP=n;var r=t.getBoundingClientRect().width;YP=r,hh.on("mousemove",JP),hh.on("mouseup",XP)}});var JP=is(function(e){if(fh&&ph!=null&&dh!=null){e.preventDefault();var t=e.clientX,n=YP+(t-KP);(n=Math.floor(100*n)/100)<30&&(n=30),Z.setNodes(ph,{width:n.toString()},{at:dh})}},100),Xfe={type:"table",renderElem:function(e,t,n){var r=function(f,d){if(f.isDisabled())return!1;var p=f.selection;if(p==null||re.isCollapsed(p))return!0;var g=p.anchor,h=p.focus,E=j.findPath(f,d),w=k.start(f,E),y=k.end(f,E),$=Ye.compare(g,y)<=0&&Ye.compare(g,w)>=0,m=Ye.compare(h,y)<=0&&Ye.compare(h,w)>=0;return!!($&&m&&G.equals(g.path.slice(0,3),h.path.slice(0,3)))}(n,e),i=e.width,o=i===void 0?"auto":i,a=j.isNodeSelected(n,e),l=rm(e),u=Ue("div",{className:"table-container","data-selected":a,on:{mousedown:function(f){if(f.target.tagName==="DIV"&&f.preventDefault(),!n.isDisabled()){var d=j.findPath(n,e),p=k.start(n,d),g=n.selection;g!=null?g.anchor.path[0]!==d[0]&&n.select(p):n.select(p)}}}},Ue("table",{width:o,contentEditable:r},Ue("colgroup",null,l.map(function(f){var d=f.width;return Ue("col",{width:d===void 0?"auto":d})})),Ue("tbody",null,t)));return u}},Jfe={type:"table-row",renderElem:function(e,t,n){return Ue("tr",null,t)}},Zfe={type:"table-cell",renderElem:function(e,t,n){var r=function(g,h){var E=j.getParentNode(g,h);if(E==null)return!1;var w=j.getParentNode(g,E);return w!=null&&rm(w).some(function(y){return y===h})}(n,e),i=e,o=i.colSpan,a=o===void 0?1:o,l=i.rowSpan,u=l===void 0?1:l,f=i.isHeader,d=f!==void 0&&f;if(!r)return Ue("td",{colSpan:a,rowSpan:u},t);var p=Ue(d?"th":"td",{colSpan:a,rowSpan:u,style:{borderRightWidth:"3px"},on:{mousemove:is(function(g){var h=this.elm;if(h!=null){var E=h.getBoundingClientRect(),w=E.left,y=E.width,$=E.top,m=E.height,S=g.clientX,D=g.clientY;fh||(S>w+y-5&&S<w+y&&D>$&&D<$+m?(h.style.cursor="col-resize",ph=n,dh=j.findPath(n,e)):fh||(h.style.cursor="auto",ph=null,dh=null))}},100)}},t);return p}},Qfe={type:"table",elemToHtml:function(e,t){var n=e.width;return'<table style="width: '+(n===void 0?"auto":n)+';"><tbody>'+t+"</tbody></table>"}},ede={type:"table-row",elemToHtml:function(e,t){return"<tr>"+t+"</tr>"}},tde={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,l=n.isHeader,u=l!==void 0&&l,f=n.width,d=u?"th":"td";return"<"+d+' colSpan="'+i+'" rowSpan="'+a+'" width="'+(f===void 0?"auto":f)+'">'+t+"</"+d+">"}},nde={selector:"table",preParseHtml:function(e){var t=V(e);if(GP(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]}},rde=nm.filter;dl({target:"Array",proto:!0,forced:!SC("filter")},{filter:function(e){return rde(this,e,arguments.length>1?arguments[1]:void 0)}});var ide=Math.floor,PC=lt("".charAt),ode=lt("".replace),IC=lt("".slice),ade=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,lde=/\$([$&'`]|\d{1,2})/g,sde=function(e,t,n,r,i,o){var a=n+e.length,l=r.length,u=lde;return i!==void 0&&(i=tC(i),u=ade),ode(o,u,function(f,d){var p;switch(PC(d,0)){case"$":return"$";case"&":return e;case"`":return IC(t,0,n);case"'":return IC(t,a);case"<":p=i[IC(d,1,-1)];break;default:var g=+d;if(g===0)return f;if(g>l){var h=ide(g/10);return h===0?f:h<=l?r[h-1]===void 0?PC(d,1):r[h-1]+PC(d,1):f}p=r[g-1]}return p===void 0?"":p})},NC=Ei("replace"),ude=Math.max,cde=Math.min,fde=lt([].concat),LC=lt([].push),ZP=lt("".indexOf),QP=lt("".slice),dde="a".replace(/./,"$0")==="$0",eI=!!/./[NC]&&/./[NC]("a","$0")==="";jP("replace",function(e,t,n){var r=eI?"$":"$0";return[function(i,o){var a=cl(this),l=i==null?void 0:ZE(i,NC);return l?Bn(l,i,a,o):Bn(t,dr(a),i,o)},function(i,o){var a=Ci(this),l=dr(i);if(typeof o=="string"&&ZP(o,r)===-1&&ZP(o,"$<")===-1){var u=n(t,a,l,o);if(u.done)return u.value}var f=or(o);f||(o=dr(o));var d=a.global;if(d){var p=a.unicode;a.lastIndex=0}for(var g=[];;){var h=BC(a,l);if(h===null||(LC(g,h),!d))break;dr(h[0])===""&&(a.lastIndex=UP(l,fC(a.lastIndex),p))}for(var E,w="",y=0,$=0;$<g.length;$++){for(var m=dr((h=g[$])[0]),S=ude(cde(Y1(h.index),l.length),0),D=[],A=1;A<h.length;A++)LC(D,(E=h[A])===void 0?E:String(E));var B=h.groups;if(f){var P=fde([m],D,S,l);B!==void 0&&LC(P,B);var U=dr(MP(o,void 0,P))}else U=sde(m,l,S,D,B,o);S>=y&&(w+=QP(l,y,S)+U,y=S+m.length)}return w+QP(l,y)}]},!!On(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!dde||eI);var pde={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=V(e);(t=t.filter(function(l){return!!Se.isText(l)||!!n.isInline(l)})).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:GP(r)==="th",colSpan:i,rowSpan:o,width:a,children:t}}},hde={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"table-row",children:t.filter(function(r){return j.getNodeType(r)==="table-cell"})}}},gde={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=V(e),i="auto";return function(o,a){for(var l="",u=(o.attr("style")||"").split(";"),f=u.length,d=0;d<f;d++){var p=u[d];if(p){var g=p.split(":");g[0].trim()===a&&(l=g[1].trim())}}return l}(r,"width")==="100%"&&(i="100%"),r.attr("width")==="100%"&&(i="100%"),{type:"table",width:i,children:t.filter(function(o){return j.getNodeType(o)==="table-row"})}}},vde=function(){function e(){this.title=we("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||!re.isCollapsed(n)||!!j.getSelectedElems(t).some(function(r){var i=j.getNodeType(r);return i==="pre"||i==="table"||i==="list-item"||!!t.isVoid(r)})},e.prototype.getPanelContentElem=function(t){var n=this;if(this.$content)return this.$content[0];for(var r=V('<div class="w-e-panel-content-table"></div>'),i=V("<span>0 &times; 0</span>"),o=V("<table></table>"),a=0;a<10;a++){for(var l=V("<tr></tr>"),u=0;u<10;u++){var f=V("<td></td>");f.attr("data-x",u.toString()),f.attr("data-y",a.toString()),l.append(f),f.on("mouseenter",function(d){var p=d.target;if(p!=null){var g=V(p).dataset(),h=g.x,E=g.y;i[0].innerHTML=h+1+" &times; "+(E+1),o.children().each(function(w){V(w).children().each(function(y){var $=V(y),m=$.dataset(),S=m.x,D=m.y;S<=h&&D<=E?$.addClass("active"):$.removeClass("active")})})}}),f.on("click",function(d){d.preventDefault();var p=d.target;if(p!=null){var g=V(p).dataset(),h=g.x,E=g.y;n.insertTable(t,E+1,h+1)}})}o.append(l)}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)){j.isSelectedEmptyParagraph(t)&&Z.removeNodes(t,{mode:"highest"});var a=function(l,u){for(var f=[],d=0;d<l;d++){for(var p=[],g=0;g<u;g++){var h={type:"table-cell",children:[{text:""}]};d===0&&(h.isHeader=!0),p.push(h)}f.push({type:"table-row",children:p})}return{type:"table",width:"auto",children:f}}(i,o);Z.insertNodes(t,a,{mode:"highest"})}},e}(),mde=function(){function e(){this.title=we("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||j.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){this.isDisabled(t)||Z.removeNodes(t,{mode:"highest"})},e}(),yde=function(){function e(){this.title=we("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||!re.isCollapsed(n)||j.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=Ki(k.nodes(t,{match:function(h){return j.checkNodeType(h,"table-cell")},universal:!0}),1),i=Ki(r[0],2),o=i[0],a=i[1],l=j.getParentNode(t,o),u=(l==null?void 0:l.children.length)||0;if(u!==0){for(var f={type:"table-row",children:[]},d=0;d<u;d++)f.children.push({type:"table-cell",children:[{text:""}]});var p=G.parent(a),g=G.next(p);Z.insertNodes(t,f,{at:g})}}},e}(),bde=function(){function e(){this.title=we("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||!re.isCollapsed(n)||j.getSelectedNodeByType(t,"table-row")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=Ki(k.nodes(t,{match:function(u){return j.checkNodeType(u,"table-row")},universal:!0}),1),i=Ki(r[0],2),o=i[0],a=i[1],l=j.getParentNode(t,o);((l==null?void 0:l.children.length)||0)<=1?Z.removeNodes(t,{mode:"highest"}):Z.removeNodes(t,{at:a})}},e}(),tI={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},RC=iC("span").classList,nI=RC&&RC.constructor&&RC.constructor.prototype,wde=nI===Object.prototype?void 0:nI,$de=nm.forEach,Ede=function(e,t){var n=[][e];return!!n&&On(function(){n.call(null,t||function(){throw 1},1)})}("forEach"),MC=Ede?[].forEach:function(e){return $de(this,e,arguments.length>1?arguments[1]:void 0)},rI=function(e){if(e&&e.forEach!==MC)try{Yc(e,"forEach",MC)}catch{e.forEach=MC}};for(var jC in tI)tI[jC]&&rI(et[jC]&&et[jC].prototype);rI(wde);var Cde=function(){function e(){this.title=we("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||!re.isCollapsed(n)||j.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=Ki(k.nodes(t,{match:function(f){return j.checkNodeType(f,"table-cell")},universal:!0}),1),i=Ki(r[0],2),o=i[0],a=i[1],l=j.getParentNode(t,o);if(l!=null){var u=j.getParentNode(t,l);u!=null&&(u.children||[]).forEach(function(f,d){ke.isElement(f)&&(f.children||[]).forEach(function(p){var g=j.findPath(t,p);if(g.length===a.length&&zF(g.slice(-1),a.slice(-1))){var h={type:"table-cell",children:[{text:""}]};d===0&&FP(u)&&(h.isHeader=!0),Z.insertNodes(t,h,{at:g})}})})}}},e}(),Sde=function(){function e(){this.title=we("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||!re.isCollapsed(n)||j.getSelectedNodeByType(t,"table-cell")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=Ki(k.nodes(t,{match:function(d){return j.checkNodeType(d,"table-cell")},universal:!0}),1),i=Ki(r[0],2),o=i[0],a=i[1],l=j.getParentNode(t,o),u=(l==null?void 0:l.children.length)||0;if(!l||u<=1)Z.removeNodes(t,{mode:"highest"});else{var f=j.getParentNode(t,l);f!=null&&(f.children||[]).forEach(function(d){ke.isElement(d)&&(d.children||[]).forEach(function(p){var g=j.findPath(t,p);g.length===a.length&&zF(g.slice(-1),a.slice(-1))&&Z.removeNodes(t,{at:g})})})}}},e}(),xde=function(){function e(){this.title=we("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=j.getSelectedNodeByType(t,"table");return n!=null&&FP(n)},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!re.isCollapsed(n)||j.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=!n,i=j.getSelectedNodeByType(t,"table");i!=null&&rm(i).forEach(function(o){return Z.setNodes(t,{isHeader:r},{at:j.findPath(t,o)})})}},e}(),Dde=function(){function e(){this.title=we("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=j.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||!re.isCollapsed(n)||j.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r={width:n?"auto":"100%"};Z.setNodes(t,r,{mode:"highest"})}},e}(),Ade={renderElems:[Xfe,Jfe,Zfe],elemsToHtml:[Qfe,ede,tde],preParseHtml:[nde],parseElemsHtml:[pde,hde,gde],menus:[{key:"insertTable",factory:function(){return new vde}},{key:"deleteTable",factory:function(){return new mde}},{key:"insertTableRow",factory:function(){return new yde}},{key:"deleteTableRow",factory:function(){return new bde}},{key:"insertTableCol",factory:function(){return new Cde}},{key:"deleteTableCol",factory:function(){return new Sde}},{key:"tableHeader",factory:function(){return new xde}},{key:"tableFullWidth",factory:function(){return new Dde}}],editorPlugin:function(e){var t=e.insertBreak,n=e.deleteBackward,r=e.deleteForward,i=e.normalizeNode,o=e.insertData,a=e.handleTab,l=e.selectAll,u=e;return u.insertBreak=function(){j.getSelectedNodeByType(u,"table")==null?t():u.insertText(`
@@ -153,14 +153,14 @@ Textarea height < 300px . This may be cause modal and hoverbar position error`,$
153
153
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
154
154
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
155
155
  PERFORMANCE OF THIS SOFTWARE.
156
- ***************************************************************************** */var ry=function(){return ry=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},ry.apply(this,arguments)};function V5(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(f){try{u(r.next(f))}catch(d){o(d)}}function l(f){try{u(r.throw(f))}catch(d){o(d)}}function u(f){var d;f.done?i(f.value):(d=f.value,d instanceof n?d:new n(function(p){p(d)})).then(a,l)}u((r=r.apply(e,t||[])).next())})}function U5(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:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function l(u){return function(f){return function(d){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&d[0]?r.return:d[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,d[1])).done)return i;switch(r=0,i&&(d=[2&d[0],i.value]),d[0]){case 0:case 1:i=d;break;case 4:return a.label++,{value:d[1],done:!1};case 5:a.label++,r=d[1],d=[0];continue;case 7:d=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!((i=i.length>0&&i[i.length-1])||d[0]!==6&&d[0]!==2)){a=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]<i[3])){a.label=d[1];break}if(d[0]===6&&a.label<i[1]){a.label=i[1],i=d;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(d);break}i[2]&&a.ops.pop(),a.trys.pop();continue}d=t.call(e,a)}catch(p){d=[6,p],r=0}finally{n=i=0}if(5&d[0])throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}([u,f])}}}function bve(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 wve(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=bve(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,l){(function(u,f,d,p){Promise.resolve(p).then(function(g){u({value:g,done:d})},f)})(a,l,(o=e[i](o)).done,o.value)})}}}var H5=En("unscopables"),W5=Array.prototype;W5[H5]==null&&ia.f(W5,H5,{configurable:!0,value:P5(null)});var au,GL,KL,q5=function(e){W5[H5][e]=!0},hf={},$ve=!Ht(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),YL=$5("IE_PROTO"),G5=$e.Object,Eve=G5.prototype,iy=$ve?G5.getPrototypeOf:function(e){var t=v5(e);if(Fn(t,YL))return t[YL];var n=t.constructor;return Ft(n)&&t instanceof n?n.prototype:t instanceof G5?Eve:null},K5=En("iterator"),XL=!1;[].keys&&("next"in(KL=[].keys())?(GL=iy(iy(KL)))!==Object.prototype&&(au=GL):XL=!0);var Cve=au==null||Ht(function(){var e={};return au[K5].call(e)!==e});Cve&&(au={}),Ft(au[K5])||Zr(au,K5,function(){return this});var Y5={IteratorPrototype:au,BUGGY_SAFARI_ITERATORS:XL},Sve=ia.f,JL=En("toStringTag"),oy=function(e,t,n){e&&!Fn(e=n?e:e.prototype,JL)&&Sve(e,JL,{configurable:!0,value:t})},xve=Y5.IteratorPrototype,Dve=function(){return this},Ave=$e.String,_ve=$e.TypeError,gf=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=tt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,i){return Yn(r),function(o){if(typeof o=="object"||Ft(o))return o;throw _ve("Can't set "+Ave(o)+" as a prototype")}(i),t?e(r,i):r.__proto__=i,r}}():void 0),kve=Yh.PROPER,Ove=Yh.CONFIGURABLE,ZL=Y5.IteratorPrototype,ay=Y5.BUGGY_SAFARI_ITERATORS,ng=En("iterator"),Bve=function(){return this},QL=function(e,t,n,r,i,o,a){(function($,m,S,D){var A=m+" Iterator";$.prototype=P5(xve,{next:Um(+!D,S)}),oy($,A,!1),hf[A]=Dve})(n,t,r);var l,u,f,d=function($){if($===i&&w)return w;if(!ay&&$ in h)return h[$];switch($){case"keys":case"values":case"entries":return function(){return new n(this,$)}}return function(){return new n(this)}},p=t+" Iterator",g=!1,h=e.prototype,E=h[ng]||h["@@iterator"]||i&&h[i],w=!ay&&E||d(i),y=t=="Array"&&h.entries||E;if(y&&(l=iy(y.call(new e)))!==Object.prototype&&l.next&&(iy(l)!==ZL&&(gf?gf(l,ZL):Ft(l[ng])||Zr(l,ng,Bve)),oy(l,p,!0)),kve&&i=="values"&&E&&E.name!=="values"&&(Ove?Ao(h,"name","values"):(g=!0,w=function(){return Dt(E,this)})),i)if(u={values:d("values"),keys:o?w:d("keys"),entries:d("entries")},a)for(f in u)(ay||g||!(f in h))&&Zr(h,f,u[f]);else _o({target:t,proto:!0,forced:ay||g},u);return h[ng]!==w&&Zr(h,ng,w,{name:i}),hf[t]=w,u},Tve=Jr.set,Fve=Jr.getterFor("Array Iterator"),rg=QL(Array,"Array",function(e,t){Tve(this,{type:"Array Iterator",target:$l(e),index:0,kind:t})},function(){var e=Fve(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");hf.Arguments=hf.Array,q5("keys"),q5("values"),q5("entries");var Pve=HL.charAt,Ive=Jr.set,Nve=Jr.getterFor("String Iterator");QL(String,"String",function(e){Ive(this,{type:"String Iterator",string:Sl(e),index:0})},function(){var e,t=Nve(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Pve(n,r),t.index+=e.length,{value:e,done:!1})});var ly=function(e,t,n){for(var r in t)Zr(e,r,t[r],n);return e},eR=Xm.f,tR=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Lve={f:function(e){return tR&&Yi(e)=="Window"?function(t){try{return eR(t)}catch{return z5(tR)}}(e):eR($l(e))}},nR=Ht(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),sy=Object.isExtensible,lu=Ht(function(){sy(1)})||nR?function(e){return!!zt(e)&&(!nR||Yi(e)!="ArrayBuffer")&&(!sy||sy(e))}:sy,Rve=!Ht(function(){return Object.isExtensible(Object.preventExtensions({}))}),X5=a5(function(e){var t=ia.f,n=!1,r=m5("meta"),i=0,o=function(l){t(l,r,{value:{objectID:"O"+i++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var l=Xm.f,u=tt([].splice),f={};f[r]=1,l(f).length&&(Xm.f=function(d){for(var p=l(d),g=0,h=p.length;g<h;g++)if(p[g]===r){u(p,g,1);break}return p},_o({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Lve.f}))},fastKey:function(l,u){if(!zt(l))return typeof l=="symbol"?l:(typeof l=="string"?"S":"P")+l;if(!Fn(l,r)){if(!lu(l))return"F";if(!u)return"E";o(l)}return l[r].objectID},getWeakData:function(l,u){if(!Fn(l,r)){if(!lu(l))return!0;if(!u)return!1;o(l)}return l[r].weakData},onFreeze:function(l){return Rve&&n&&lu(l)&&!Fn(l,r)&&o(l),l}};Km[r]=!0}),rR=tt(tt.bind),ig=function(e,t){return El(e),t===void 0?e:rR?rR(e,t):function(){return e.apply(t,arguments)}},Mve=En("iterator"),jve=Array.prototype,zve=En("iterator"),iR=function(e){if(e!=null)return Wh(e,zve)||Wh(e,"@@iterator")||hf[Qm(e)]},Vve=$e.TypeError,oR=function(e,t,n){var r,i;Yn(e);try{if(!(r=Wh(e,"return"))){if(t==="throw")throw n;return n}r=Dt(r,e)}catch(o){i=!0,r=o}if(t==="throw")throw n;if(i)throw r;return Yn(r),n},Uve=$e.TypeError,uy=function(e,t){this.stopped=e,this.result=t},aR=uy.prototype,cy=function(e,t,n){var r,i,o,a,l,u,f,d,p=n&&n.that,g=!(!n||!n.AS_ENTRIES),h=!(!n||!n.IS_ITERATOR),E=!(!n||!n.INTERRUPTED),w=ig(t,p),y=function(m){return r&&oR(r,"normal",m),new uy(!0,m)},$=function(m){return g?(Yn(m),E?w(m[0],m[1],y):w(m[0],m[1])):E?w(m,y):w(m)};if(h)r=e;else{if(!(i=iR(e)))throw Uve(Hm(e)+" is not iterable");if((d=i)!==void 0&&(hf.Array===d||jve[Mve]===d)){for(o=0,a=Jh(e);a>o;o++)if((l=$(e[o]))&&Uh(aR,l))return l;return new uy(!1)}r=function(m,S){var D=arguments.length<2?iR(m):S;if(El(D))return Yn(Dt(D,m));throw Vve(Hm(m)+" is not iterable")}(e,i)}for(u=r.next;!(f=Dt(u,r)).done;){try{l=$(f.value)}catch(m){oR(r,"throw",m)}if(typeof l=="object"&&l&&Uh(aR,l))return l}return new uy(!1)},Hve=$e.TypeError,J5=function(e,t){if(Uh(t,e))return e;throw Hve("Incorrect invocation")},lR=En("iterator"),sR=!1;try{var Wve=0,uR={next:function(){return{done:!!Wve++}},return:function(){sR=!0}};uR[lR]=function(){return this},Array.from(uR,function(){throw 2})}catch{}var cR=function(e,t){if(!t&&!sR)return!1;var n=!1;try{var r={};r[lR]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},qve=En("species"),fR=$e.Array,Gve=function(e,t){return new(function(n){var r;return Zm(n)&&(r=n.constructor,(A5(r)&&(r===fR||Zm(r.prototype))||zt(r)&&(r=r[qve])===null)&&(r=void 0)),r===void 0?fR:r}(e))(t===0?0:t)},dR=tt([].push),xl=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,o=e==6,a=e==7,l=e==5||o;return function(u,f,d,p){for(var g,h,E=v5(u),w=c5(E),y=ig(f,d),$=Jh(w),m=0,S=p||Gve,D=t?S(u,$):n||a?S(u,0):void 0;$>m;m++)if((l||m in w)&&(h=y(g=w[m],m,E),e))if(t)D[m]=h;else if(h)switch(e){case 3:return!0;case 5:return g;case 6:return m;case 2:dR(D,g)}else switch(e){case 4:return!1;case 7:dR(D,g)}return o?-1:r||i?i:D}},Z5={forEach:xl(0),map:xl(1),filter:xl(2),some:xl(3),every:xl(4),find:xl(5),findIndex:xl(6),filterReject:xl(7)},fy=X5.getWeakData,Kve=Jr.set,Yve=Jr.getterFor,Xve=Z5.find,Jve=Z5.findIndex,Zve=tt([].splice),Qve=0,dy=function(e){return e.frozen||(e.frozen=new pR)},pR=function(){this.entries=[]},Q5=function(e,t){return Xve(e.entries,function(n){return n[0]===t})};pR.prototype={get:function(e){var t=Q5(this,e);if(t)return t[1]},has:function(e){return!!Q5(this,e)},set:function(e,t){var n=Q5(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Jve(this.entries,function(n){return n[0]===e});return~t&&Zve(this.entries,t,1),!!~t}};var og,hR={getConstructor:function(e,t,n,r){var i=e(function(u,f){J5(u,o),Kve(u,{type:t,id:Qve++,frozen:void 0}),f!=null&&cy(f,u[r],{that:u,AS_ENTRIES:n})}),o=i.prototype,a=Yve(t),l=function(u,f,d){var p=a(u),g=fy(Yn(f),!0);return g===!0?dy(p).set(f,d):g[p.id]=d,u};return ly(o,{delete:function(u){var f=a(this);if(!zt(u))return!1;var d=fy(u);return d===!0?dy(f).delete(u):d&&Fn(d,f.id)&&delete d[f.id]},has:function(u){var f=a(this);if(!zt(u))return!1;var d=fy(u);return d===!0?dy(f).has(u):d&&Fn(d,f.id)}}),ly(o,n?{get:function(u){var f=a(this);if(zt(u)){var d=fy(u);return d===!0?dy(f).get(u):d?d[f.id]:void 0}},set:function(u,f){return l(this,u,f)}}:{add:function(u){return l(this,u,!0)}}),i}},py=Jr.enforce,e1e=!$e.ActiveXObject&&"ActiveXObject"in $e,gR=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},t1e=function(e,t,n){var r=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=r?"set":"add",a=$e[e],l=a&&a.prototype,u=a,f={},d=function(y){var $=tt(l[y]);Zr(l,y,y=="add"?function(m){return $(this,m===0?0:m),this}:y=="delete"?function(m){return!(i&&!zt(m))&&$(this,m===0?0:m)}:y=="get"?function(m){return i&&!zt(m)?void 0:$(this,m===0?0:m)}:y=="has"?function(m){return!(i&&!zt(m))&&$(this,m===0?0:m)}:function(m,S){return $(this,m===0?0:m,S),this})};if(Jm(e,!Ft(a)||!(i||l.forEach&&!Ht(function(){new a().entries().next()}))))u=n.getConstructor(t,e,r,o),X5.enable();else if(Jm(e,!0)){var p=new u,g=p[o](i?{}:-0,1)!=p,h=Ht(function(){p.has(1)}),E=cR(function(y){new a(y)}),w=!i&&Ht(function(){for(var y=new a,$=5;$--;)y[o]($,$);return!y.has(-0)});E||((u=t(function(y,$){J5(y,l);var m=function(S,D,A){var B,P;return gf&&Ft(B=D.constructor)&&B!==A&&zt(P=B.prototype)&&P!==A.prototype&&gf(S,P),S}(new a,y,u);return $!=null&&cy($,m[o],{that:m,AS_ENTRIES:r}),m})).prototype=l,l.constructor=u),(h||w)&&(d("delete"),d("has"),r&&d("get")),(w||g)&&d(o),i&&l.clear&&delete l.clear}return f[e]=u,_o({global:!0,forced:u!=a},f),oy(u,e),i||n.setStrong(u,e,r),u}("WeakMap",gR,hR);if(mL&&e1e){og=hR.getConstructor(gR,"WeakMap",!0),X5.enable();var ag=t1e.prototype,vR=tt(ag.delete),hy=tt(ag.has),mR=tt(ag.get),yR=tt(ag.set);ly(ag,{delete:function(e){if(zt(e)&&!lu(e)){var t=py(this);return t.frozen||(t.frozen=new og),vR(this,e)||t.frozen.delete(e)}return vR(this,e)},has:function(e){if(zt(e)&&!lu(e)){var t=py(this);return t.frozen||(t.frozen=new og),hy(this,e)||t.frozen.has(e)}return hy(this,e)},get:function(e){if(zt(e)&&!lu(e)){var t=py(this);return t.frozen||(t.frozen=new og),hy(this,e)?mR(this,e):t.frozen.get(e)}return mR(this,e)},set:function(e,t){if(zt(e)&&!lu(e)){var n=py(this);n.frozen||(n.frozen=new og),hy(this,e)?yR(this,e,t):n.frozen.set(e,t)}else yR(this,e,t);return this}})}var gy={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},e6=Gh("span").classList,bR=e6&&e6.constructor&&e6.constructor.prototype,wR=bR===Object.prototype?void 0:bR,t6=En("iterator"),$R=En("toStringTag"),n6=rg.values,ER=function(e,t){if(e){if(e[t6]!==n6)try{Ao(e,t6,n6)}catch{e[t6]=n6}if(e[$R]||Ao(e,$R,t),gy[t]){for(var n in rg)if(e[n]!==rg[n])try{Ao(e,n,rg[n])}catch{e[n]=rg[n]}}}};for(var r6 in gy)ER($e[r6]&&$e[r6].prototype,r6);ER(wR,"DOMTokenList");var CR=function(e,t){var n=[][e];return!!n&&Ht(function(){n.call(null,t||function(){throw 1},1)})},n1e=Z5.forEach,i6=CR("forEach")?[].forEach:function(e){return n1e(this,e,arguments.length>1?arguments[1]:void 0)},SR=function(e){if(e&&e.forEach!==i6)try{Ao(e,"forEach",i6)}catch{e.forEach=i6}};for(var o6 in gy)gy[o6]&&SR($e[o6]&&$e[o6].prototype);SR(wR);var lg,vf,xR,a6,vy=$e.Promise,DR=En("species"),AR=/(?:ipad|iphone|ipod).*applewebkit/i.test(cf),Dl=Yi($e.process)=="process",l6=$e.setImmediate,s6=$e.clearImmediate,r1e=$e.process,u6=$e.Dispatch,i1e=$e.Function,_R=$e.MessageChannel,o1e=$e.String,c6=0,sg={};try{lg=$e.location}catch{}var f6=function(e){if(Fn(sg,e)){var t=sg[e];delete sg[e],t()}},d6=function(e){return function(){f6(e)}},kR=function(e){f6(e.data)},OR=function(e){$e.postMessage(o1e(e),lg.protocol+"//"+lg.host)};l6&&s6||(l6=function(e){var t=OL(arguments,1);return sg[++c6]=function(){jL(Ft(e)?e:i1e(e),void 0,t)},vf(c6),c6},s6=function(e){delete sg[e]},Dl?vf=function(e){r1e.nextTick(d6(e))}:u6&&u6.now?vf=function(e){u6.now(d6(e))}:_R&&!AR?(a6=(xR=new _R).port2,xR.port1.onmessage=kR,vf=ig(a6.postMessage,a6)):$e.addEventListener&&Ft($e.postMessage)&&!$e.importScripts&&lg&&lg.protocol!=="file:"&&!Ht(OR)?(vf=OR,$e.addEventListener("message",kR,!1)):vf="onreadystatechange"in Gh("script")?function(e){B5.appendChild(Gh("script")).onreadystatechange=function(){B5.removeChild(this),f6(e)}}:function(e){setTimeout(d6(e),0)});var ug,su,cg,mf,p6,h6,g6,BR,TR={set:l6,clear:s6},a1e=/ipad|iphone|ipod/i.test(cf)&&$e.Pebble!==void 0,l1e=/web0s(?!.*chrome)/i.test(cf),s1e=w5.f,v6=TR.set,FR=$e.MutationObserver||$e.WebKitMutationObserver,PR=$e.document,IR=$e.process,my=$e.Promise,NR=s1e($e,"queueMicrotask"),LR=NR&&NR.value;LR||(ug=function(){var e,t;for(Dl&&(e=IR.domain)&&e.exit();su;){t=su.fn,su=su.next;try{t()}catch(n){throw su?mf():cg=void 0,n}}cg=void 0,e&&e.enter()},AR||Dl||l1e||!FR||!PR?!a1e&&my&&my.resolve?((g6=my.resolve(void 0)).constructor=my,BR=ig(g6.then,g6),mf=function(){BR(ug)}):Dl?mf=function(){IR.nextTick(ug)}:(v6=ig(v6,$e),mf=function(){v6(ug)}):(p6=!0,h6=PR.createTextNode(""),new FR(ug).observe(h6,{characterData:!0}),mf=function(){h6.data=p6=!p6}));var m6,RR,MR,jR,zR=LR||function(e){var t={fn:e,next:void 0};cg&&(cg.next=t),su||(su=t,mf()),cg=t},u1e=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=El(t),this.reject=El(n)},y6={f:function(e){return new u1e(e)}},b6=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},c1e=typeof window=="object",VR=TR.set,f1e=En("species"),ko="Promise",UR=Jr.getterFor(ko),d1e=Jr.set,p1e=Jr.getterFor(ko),uu=vy&&vy.prototype,Oo=vy,fg=uu,HR=$e.TypeError,w6=$e.document,$6=$e.process,yf=y6.f,h1e=yf,g1e=!!(w6&&w6.createEvent&&$e.dispatchEvent),WR=Ft($e.PromiseRejectionEvent),qR=!1,dg=Jm(ko,function(){var e=Gm(Oo),t=e!==String(Oo);if(!t&&Hh===66)return!0;if(Hh>=51&&/native code/.test(e))return!1;var n=new Oo(function(i){i(1)}),r=function(i){i(function(){},function(){})};return(n.constructor={})[f1e]=r,!(qR=n.then(function(){})instanceof r)||!t&&c1e&&!WR}),v1e=dg||!cR(function(e){Oo.all(e).catch(function(){})}),GR=function(e){var t;return!(!zt(e)||!Ft(t=e.then))&&t},E6=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;zR(function(){for(var r=e.value,i=e.state==1,o=0;n.length>o;){var a,l,u,f=n[o++],d=i?f.ok:f.fail,p=f.resolve,g=f.reject,h=f.domain;try{d?(i||(e.rejection===2&&y1e(e),e.rejection=1),d===!0?a=r:(h&&h.enter(),a=d(r),h&&(h.exit(),u=!0)),a===f.promise?g(HR("Promise-chain cycle")):(l=GR(a))?Dt(l,a,p,g):p(a)):g(r)}catch(E){h&&!u&&h.exit(),g(E)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&m1e(e)})}},KR=function(e,t,n){var r,i;g1e?((r=w6.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),$e.dispatchEvent(r)):r={promise:t,reason:n},!WR&&(i=$e["on"+e])?i(r):e==="unhandledrejection"&&function(o,a){var l=$e.console;l&&l.error&&(arguments.length==1?l.error(o):l.error(o,a))}("Unhandled promise rejection",n)},m1e=function(e){Dt(VR,$e,function(){var t,n=e.facade,r=e.value;if(YR(e)&&(t=b6(function(){Dl?$6.emit("unhandledRejection",r,n):KR("unhandledrejection",n,r)}),e.rejection=Dl||YR(e)?2:1,t.error))throw t.value})},YR=function(e){return e.rejection!==1&&!e.parent},y1e=function(e){Dt(VR,$e,function(){var t=e.facade;Dl?$6.emit("rejectionHandled",t):KR("rejectionhandled",t,e.value)})},bf=function(e,t,n){return function(r){e(t,r,n)}},wf=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,E6(e,!0))},C6=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw HR("Promise can't be resolved itself");var r=GR(t);r?zR(function(){var i={done:!1};try{Dt(r,t,bf(C6,i,e),bf(wf,i,e))}catch(o){wf(i,o,e)}}):(e.value=t,e.state=1,E6(e,!1))}catch(i){wf({done:!1},i,e)}}};if(dg&&(fg=(Oo=function(e){J5(this,fg),El(e),Dt(m6,this);var t=UR(this);try{e(bf(C6,t),bf(wf,t))}catch(n){wf(t,n)}}).prototype,(m6=function(e){d1e(this,{type:ko,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=ly(fg,{then:function(e,t){var n=p1e(this),r=n.reactions,i=yf(zL(this,Oo));return i.ok=!Ft(e)||e,i.fail=Ft(t)&&t,i.domain=Dl?$6.domain:void 0,n.parent=!0,r[r.length]=i,n.state!=0&&E6(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),RR=function(){var e=new m6,t=UR(e);this.promise=e,this.resolve=bf(C6,t),this.reject=bf(wf,t)},y6.f=yf=function(e){return e===Oo||e===MR?new RR(e):h1e(e)},Ft(vy)&&uu!==Object.prototype)){jR=uu.then,qR||(Zr(uu,"then",function(e,t){var n=this;return new Oo(function(r,i){Dt(jR,n,r,i)}).then(e,t)},{unsafe:!0}),Zr(uu,"catch",fg.catch,{unsafe:!0}));try{delete uu.constructor}catch{}gf&&gf(uu,fg)}_o({global:!0,wrap:!0,forced:dg},{Promise:Oo}),oy(Oo,ko,!1),function(e){var t=ru(e),n=ia.f;Do&&t&&!t[DR]&&n(t,DR,{configurable:!0,get:function(){return this}})}(ko),MR=ru(ko),_o({target:ko,stat:!0,forced:dg},{reject:function(e){var t=yf(this);return Dt(t.reject,void 0,e),t.promise}}),_o({target:ko,stat:!0,forced:dg},{resolve:function(e){return function(t,n){if(Yn(t),zt(n)&&n.constructor===t)return n;var r=y6.f(t);return(0,r.resolve)(n),r.promise}(this,e)}}),_o({target:ko,stat:!0,forced:v1e},{all:function(e){var t=this,n=yf(t),r=n.resolve,i=n.reject,o=b6(function(){var a=El(t.resolve),l=[],u=0,f=1;cy(e,function(d){var p=u++,g=!1;f++,Dt(a,t,d).then(function(h){g||(g=!0,l[p]=h,--f||r(l))},i)}),--f||r(l)});return o.error&&i(o.value),n.promise},race:function(e){var t=this,n=yf(t),r=n.reject,i=b6(function(){var o=El(t.resolve);cy(e,function(a){Dt(o,t,a).then(n.resolve,r)})});return i.error&&r(i.value),n.promise}});var b1e=Yh.PROPER,S6=RegExp.prototype,XR=S6.toString,w1e=tt(BL),$1e=Ht(function(){return XR.call({source:"a",flags:"b"})!="/a/b"}),E1e=b1e&&XR.name!="toString";($1e||E1e)&&Zr(RegExp.prototype,"toString",function(){var e=Yn(this),t=Sl(e.source),n=e.flags;return"/"+t+"/"+Sl(n===void 0&&Uh(S6,e)&&!("flags"in S6)?w1e(e):n)},{unsafe:!0});var C1e=Yh.EXISTS,S1e=ia.f,JR=Function.prototype,x1e=tt(JR.toString),ZR=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,D1e=tt(ZR.exec);Do&&!C1e&&S1e(JR,"name",{configurable:!0,get:function(){try{return D1e(ZR,x1e(this))[1]}catch{return""}}});var QR=new WeakMap;function eM(e){return e.getMenuConfig("uploadImage")}function A1e(e,t){return V5(this,void 0,void 0,function(){return U5(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(),l=a.indexOf("data:image")===0?"":a;Ts(e,a,t.name,l),r("ok")}}})]})})}function _1e(e,t){return V5(this,void 0,void 0,function(){var n,r,i,o;return U5(this,function(a){switch(a.label){case 0:return n=function(l){var u=QR.get(l);if(u!=null)return u;var f=eM(l),d=f.onSuccess,p=f.onProgress,g=f.onFailed,h=f.customInsert,E=f.onError;return u=q4(ry(ry({},f),{onProgress:function(w){l.showProgressBar(w),p&&p(w)},onSuccess:function(w,y){if(h)return h(y,function(ce,ee,ge){return Ts(l,ce,ee,ge)}),void d(w,y);var $=y.errno,m=$===void 0?1:$,S=y.data,D=S===void 0?{}:S;if(m===0){if(Array.isArray(D))D.forEach(function(ce){var ee=ce.url,ge=ee===void 0?"":ee,se=ce.alt,xe=se===void 0?"":se,ve=ce.href;Ts(l,ge,xe,ve===void 0?"":ve)});else{var A=D.url,B=A===void 0?"":A,P=D.alt,U=P===void 0?"":P,Y=D.href;Ts(l,B,U,Y===void 0?"":Y)}d(w,y)}else g(w,y)},onError:function(w,y,$){E(w,y,$)}})),QR.set(l,u),u}(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 tM(e,t){var n,r;return V5(this,void 0,void 0,function(){var i,o,a,l,u,f,d,p,g;return U5(this,function(h){switch(h.label){case 0:if(t==null)return[2];i=Array.prototype.slice.call(t),o=eM(e),a=o.customUpload,l=o.base64LimitSize,h.label=1;case 1:h.trys.push([1,11,12,17]),u=wve(i),h.label=2;case 2:return[4,u.next()];case 3:return(f=h.sent()).done?[3,10]:(d=f.value,p=d.size,l&&p<=l?[4,A1e(e,d)]:[3,5]);case 4:return h.sent(),[3,9];case 5:return a?[4,a(d,function(E,w,y){return Ts(e,E,w,y)})]:[3,7];case 6:return h.sent(),[3,9];case 7:return[4,_1e(e,d)];case 8:h.sent(),h.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return g=h.sent(),n={error:g},[3,17];case 12:return h.trys.push([12,,15,16]),f&&!f.done&&(r=u.return)?[4,r.call(u)]:[3,14];case 13:h.sent(),h.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 k1e=tt([].join),O1e=c5!=Object,B1e=CR("join",",");_o({target:"Array",proto:!0,forced:O1e||!B1e},{join:function(e){return k1e($l(this),e===void 0?",":e)}}),li&&(V.fn.append=li),so&&(V.fn.on=so),Yu&&(V.fn.remove=Yu),lo&&(V.fn.val=lo),BD&&(V.fn.click=BD),Wu&&(V.fn.hide=Wu);var T1e=function(){function e(){this.title=we("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 Zv(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(d,p,g){return Ts(t,d,p,g)});else{var l="";o.length>0&&(l='accept="'+o.join(", ")+'"');var u=V("body"),f=V('<input type="file" '+l+" multiple/>");f.hide(),u.append(f),f.click(),f.on("change",function(){var d=f[0].files;tM(t,d)})}},e}(),F1e={menus:[{key:"uploadImage",factory:function(){return new T1e},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){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,n){console.error("'"+e.name+"' upload error",n)},base64LimitSize:0}}],editorPlugin:function(e){var t=e.insertData,n=e;return n.insertData=function(r){if(Zv(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,l){var u=typeof Symbol=="function"&&a[Symbol.iterator];if(!u)return a;var f,d,p=u.call(a),g=[];try{for(;(l===void 0||l-- >0)&&!(f=p.next()).done;)g.push(f.value)}catch(h){d={error:h}}finally{try{f&&!f.done&&(u=p.return)&&u.call(p)}finally{if(d)throw d.error}}return g}(o.type.split("/"),1)[0]==="image"})?tM(e,i):t(r)}},n}};wr("en",{highLightModule:{selectLang:"Language"}}),wr("zh-CN",{highLightModule:{selectLang:"\u9009\u62E9\u8BED\u8A00"}});var yy=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function x6(e){var t={exports:{}};return e(t,t.exports),t.exports}var Al,by,wy=function(e){return e&&e.Math==Math&&e},it=wy(typeof globalThis=="object"&&globalThis)||wy(typeof window=="object"&&window)||wy(typeof self=="object"&&self)||wy(typeof yy=="object"&&yy)||function(){return this}()||Function("return this")(),P1e=Object.defineProperty,D6=function(e,t){try{P1e(it,e,{value:t,configurable:!0,writable:!0})}catch{it[e]=t}return t},_l=it["__core-js_shared__"]||D6("__core-js_shared__",{}),A6=x6(function(e){(e.exports=function(t,n){return _l[t]||(_l[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),nM=Function.prototype,_6=nM.bind,k6=nM.call,I1e=_6&&_6.bind(k6),At=_6?function(e){return e&&I1e(k6,e)}:function(e){return e&&function(){return k6.apply(e,arguments)}},N1e=it.TypeError,$f=function(e){if(e==null)throw N1e("Can't call method on "+e);return e},L1e=it.Object,O6=function(e){return L1e($f(e))},R1e=At({}.hasOwnProperty),xi=Object.hasOwn||function(e,t){return R1e(O6(e),t)},M1e=0,j1e=Math.random(),z1e=At(1 .toString),rM=function(e){return"Symbol("+(e===void 0?"":e)+")_"+z1e(++M1e+j1e,36)},pr=function(e){return typeof e=="function"},V1e=function(e){return pr(e)?e:void 0},pg=function(e,t){return arguments.length<2?V1e(it[e]):it[e]&&it[e][t]},B6=pg("navigator","userAgent")||"",iM=it.process,oM=it.Deno,aM=iM&&iM.versions||oM&&oM.version,lM=aM&&aM.v8;lM&&(by=(Al=lM.split("."))[0]>0&&Al[0]<4?1:+(Al[0]+Al[1])),!by&&B6&&(!(Al=B6.match(/Edge\/(\d+)/))||Al[1]>=74)&&(Al=B6.match(/Chrome\/(\d+)/))&&(by=+Al[1]);var sM=by,Xn=function(e){try{return!!e()}catch{return!0}},T6=!!Object.getOwnPropertySymbols&&!Xn(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&sM&&sM<41}),F6=T6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",hg=A6("wks"),cu=it.Symbol,uM=cu&&cu.for,U1e=F6?cu:cu&&cu.withoutSetter||rM,kl=function(e){if(!xi(hg,e)||!T6&&typeof hg[e]!="string"){var t="Symbol."+e;T6&&xi(cu,e)?hg[e]=cu[e]:hg[e]=F6&&uM?uM(t):U1e(t)}return hg[e]},cM={};cM[kl("toStringTag")]="z";var P6=String(cM)==="[object z]",Bo=!Xn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Xi=function(e){return typeof e=="object"?e!==null:pr(e)},I6=it.document,H1e=Xi(I6)&&Xi(I6.createElement),N6=function(e){return H1e?I6.createElement(e):{}},fM=!Bo&&!Xn(function(){return Object.defineProperty(N6("div"),"a",{get:function(){return 7}}).a!=7}),W1e=it.String,q1e=it.TypeError,Ji=function(e){if(Xi(e))return e;throw q1e(W1e(e)+" is not an object")},gg=Function.prototype.call,Vn=gg.bind?gg.bind(gg):function(){return gg.apply(gg,arguments)},dM=At({}.isPrototypeOf),G1e=it.Object,L6=F6?function(e){return typeof e=="symbol"}:function(e){var t=pg("Symbol");return pr(t)&&dM(t.prototype,G1e(e))},K1e=it.String,pM=function(e){try{return K1e(e)}catch{return"Object"}},Y1e=it.TypeError,hM=function(e){if(pr(e))return e;throw Y1e(pM(e)+" is not a function")},gM=function(e,t){var n=e[t];return n==null?void 0:hM(n)},X1e=it.TypeError,J1e=it.TypeError,Z1e=kl("toPrimitive"),Q1e=function(e,t){if(!Xi(e)||L6(e))return e;var n,r=gM(e,Z1e);if(r){if(t===void 0&&(t="default"),n=Vn(r,e,t),!Xi(n)||L6(n))return n;throw J1e("Can't convert object to primitive value")}return t===void 0&&(t="number"),function(i,o){var a,l;if(o==="string"&&pr(a=i.toString)&&!Xi(l=Vn(a,i))||pr(a=i.valueOf)&&!Xi(l=Vn(a,i))||o!=="string"&&pr(a=i.toString)&&!Xi(l=Vn(a,i)))return l;throw X1e("Can't convert object to primitive value")}(e,t)},R6=function(e){var t=Q1e(e,"string");return L6(t)?t:t+""},eme=it.TypeError,vM=Object.defineProperty,$y={f:Bo?vM:function(e,t,n){if(Ji(e),t=R6(t),Ji(n),fM)try{return vM(e,t,n)}catch{}if("get"in n||"set"in n)throw eme("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},M6=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Ef=Bo?function(e,t,n){return $y.f(e,t,M6(1,n))}:function(e,t,n){return e[t]=n,e},tme=At(Function.toString);pr(_l.inspectSource)||(_l.inspectSource=function(e){return tme(e)});var Ey,vg,Cy,j6=_l.inspectSource,mM=it.WeakMap,nme=pr(mM)&&/native code/.test(j6(mM)),yM=A6("keys"),bM=function(e){return yM[e]||(yM[e]=rM(e))},z6={},V6=it.TypeError,rme=it.WeakMap;if(nme||_l.state){var fu=_l.state||(_l.state=new rme),ime=At(fu.get),wM=At(fu.has),ome=At(fu.set);Ey=function(e,t){if(wM(fu,e))throw new V6("Object already initialized");return t.facade=e,ome(fu,e,t),t},vg=function(e){return ime(fu,e)||{}},Cy=function(e){return wM(fu,e)}}else{var Cf=bM("state");z6[Cf]=!0,Ey=function(e,t){if(xi(e,Cf))throw new V6("Object already initialized");return t.facade=e,Ef(e,Cf,t),t},vg=function(e){return xi(e,Cf)?e[Cf]:{}},Cy=function(e){return xi(e,Cf)}}var U6={set:Ey,get:vg,has:Cy,enforce:function(e){return Cy(e)?vg(e):Ey(e,{})},getterFor:function(e){return function(t){var n;if(!Xi(t)||(n=vg(t)).type!==e)throw V6("Incompatible receiver, "+e+" required");return n}}},$M=Function.prototype,ame=Bo&&Object.getOwnPropertyDescriptor,H6=xi($M,"name"),EM={EXISTS:H6,PROPER:H6&&function(){}.name==="something",CONFIGURABLE:H6&&(!Bo||Bo&&ame($M,"name").configurable)},mg=x6(function(e){var t=EM.CONFIGURABLE,n=U6.get,r=U6.enforce,i=String(String).split("String");(e.exports=function(o,a,l,u){var f,d=!!u&&!!u.unsafe,p=!!u&&!!u.enumerable,g=!!u&&!!u.noTargetGet,h=u&&u.name!==void 0?u.name:a;pr(l)&&(String(h).slice(0,7)==="Symbol("&&(h="["+String(h).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!xi(l,"name")||t&&l.name!==h)&&Ef(l,"name",h),(f=r(l)).source||(f.source=i.join(typeof h=="string"?h:""))),o!==it?(d?!g&&o[a]&&(p=!0):delete o[a],p?o[a]=l:Ef(o,a,l)):p?o[a]=l:D6(a,l)})(Function.prototype,"toString",function(){return pr(this)&&n(this).source||j6(this)})}),lme=At({}.toString),sme=At("".slice),Ol=function(e){return sme(lme(e),8,-1)},ume=kl("toStringTag"),cme=it.Object,fme=Ol(function(){return arguments}())=="Arguments",W6=P6?Ol: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=cme(e),ume))=="string"?n:fme?Ol(t):(r=Ol(t))=="Object"&&pr(t.callee)?"Arguments":r},dme=P6?{}.toString:function(){return"[object "+W6(this)+"]"};P6||mg(Object.prototype,"toString",dme,{unsafe:!0});var pme,CM,SM={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},q6=N6("span").classList,xM=q6&&q6.constructor&&q6.constructor.prototype,hme=xM===Object.prototype?void 0:xM,DM=At(At.bind),G6=it.Object,gme=At("".split),K6=Xn(function(){return!G6("z").propertyIsEnumerable(0)})?function(e){return Ol(e)=="String"?gme(e,""):G6(e)}:G6,vme=Math.ceil,mme=Math.floor,Y6=function(e){var t=+e;return t!=t||t===0?0:(t>0?mme:vme)(t)},yme=Math.min,AM=function(e){return e>0?yme(Y6(e),9007199254740991):0},X6=function(e){return AM(e.length)},_M=Array.isArray||function(e){return Ol(e)=="Array"},kM=function(){},bme=[],OM=pg("Reflect","construct"),J6=/^\s*(?:class|function)\b/,wme=At(J6.exec),$me=!J6.exec(kM),yg=function(e){if(!pr(e))return!1;try{return OM(kM,bme,e),!0}catch{return!1}},BM=!OM||Xn(function(){var e;return yg(yg.call)||!yg(Object)||!yg(function(){e=!0})||e})?function(e){if(!pr(e))return!1;switch(W6(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return $me||!!wme(J6,j6(e))}:yg,Eme=kl("species"),TM=it.Array,Cme=function(e,t){return new(function(n){var r;return _M(n)&&(r=n.constructor,(BM(r)&&(r===TM||_M(r.prototype))||Xi(r)&&(r=r[Eme])===null)&&(r=void 0)),r===void 0?TM:r}(e))(t===0?0:t)},FM=At([].push),Bl=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,o=e==6,a=e==7,l=e==5||o;return function(u,f,d,p){for(var g,h,E=O6(u),w=K6(E),y=function(A,B){return hM(A),B===void 0?A:DM?DM(A,B):function(){return A.apply(B,arguments)}}(f,d),$=X6(w),m=0,S=p||Cme,D=t?S(u,$):n||a?S(u,0):void 0;$>m;m++)if((l||m in w)&&(h=y(g=w[m],m,E),e))if(t)D[m]=h;else if(h)switch(e){case 3:return!0;case 5:return g;case 6:return m;case 2:FM(D,g)}else switch(e){case 4:return!1;case 7:FM(D,g)}return o?-1:r||i?i:D}},Sme={forEach:Bl(0),map:Bl(1),filter:Bl(2),some:Bl(3),every:Bl(4),find:Bl(5),findIndex:Bl(6),filterReject:Bl(7)}.forEach,Z6=!!(CM=[].forEach)&&Xn(function(){CM.call(null,pme||function(){throw 1},1)})?[].forEach:function(e){return Sme(this,e,arguments.length>1?arguments[1]:void 0)},PM=function(e){if(e&&e.forEach!==Z6)try{Ef(e,"forEach",Z6)}catch{e.forEach=Z6}};for(var Q6 in SM)SM[Q6]&&PM(it[Q6]&&it[Q6].prototype);PM(hme);var IM={}.propertyIsEnumerable,NM=Object.getOwnPropertyDescriptor,LM={f:NM&&!IM.call({1:2},1)?function(e){var t=NM(this,e);return!!t&&t.enumerable}:IM},Sy=function(e){return K6($f(e))},RM=Object.getOwnPropertyDescriptor,MM={f:Bo?RM:function(e,t){if(e=Sy(e),t=R6(t),fM)try{return RM(e,t)}catch{}if(xi(e,t))return M6(!Vn(LM.f,e,t),e[t])}},xme=Math.max,Dme=Math.min,ex=function(e,t){var n=Y6(e);return n<0?xme(n+t,0):Dme(n,t)},jM=function(e){return function(t,n,r){var i,o=Sy(t),a=X6(o),l=ex(r,a);if(e&&n!=n){for(;a>l;)if((i=o[l++])!=i)return!0}else for(;a>l;l++)if((e||l in o)&&o[l]===n)return e||l||0;return!e&&-1}},Ame={includes:jM(!0),indexOf:jM(!1)}.indexOf,zM=At([].push),VM=function(e,t){var n,r=Sy(e),i=0,o=[];for(n in r)!xi(z6,n)&&xi(r,n)&&zM(o,n);for(;t.length>i;)xi(r,n=t[i++])&&(~Ame(o,n)||zM(o,n));return o},xy=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],_me=xy.concat("length","prototype"),kme={f:Object.getOwnPropertyNames||function(e){return VM(e,_me)}},UM={f:Object.getOwnPropertySymbols},Ome=At([].concat),Bme=pg("Reflect","ownKeys")||function(e){var t=kme.f(Ji(e)),n=UM.f;return n?Ome(t,n(e)):t},Tme=function(e,t){for(var n=Bme(t),r=$y.f,i=MM.f,o=0;o<n.length;o++){var a=n[o];xi(e,a)||r(e,a,i(t,a))}},Fme=/#|\.prototype\./,bg=function(e,t){var n=Ime[Pme(e)];return n==Lme||n!=Nme&&(pr(t)?Xn(t):!!t)},Pme=bg.normalize=function(e){return String(e).replace(Fme,".").toLowerCase()},Ime=bg.data={},Nme=bg.NATIVE="N",Lme=bg.POLYFILL="P",Rme=bg,Mme=MM.f,Dy=function(e,t){var n,r,i,o,a,l=e.target,u=e.global,f=e.stat;if(n=u?it:f?it[l]||D6(l,{}):(it[l]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=Mme(n,r))&&a.value:n[r],!Rme(u?r:l+(f?".":"#")+r,e.forced)&&i!==void 0){if(typeof o==typeof i)continue;Tme(o,i)}(e.sham||i&&i.sham)&&Ef(o,"sham",!0),mg(n,r,o,e)}},Ay=Object.keys||function(e){return VM(e,xy)},Sf=Object.assign,HM=Object.defineProperty,jme=At([].concat),WM=!Sf||Xn(function(){if(Bo&&Sf({b:1},Sf(HM({},"a",{enumerable:!0,get:function(){HM(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}),Sf({},e)[n]!=7||Ay(Sf({},t)).join("")!=r})?function(e,t){for(var n=O6(e),r=arguments.length,i=1,o=UM.f,a=LM.f;r>i;)for(var l,u=K6(arguments[i++]),f=o?jme(Ay(u),o(u)):Ay(u),d=f.length,p=0;d>p;)l=f[p++],Bo&&!Vn(a,u,l)||(n[l]=u[l]);return n}:Sf;Dy({target:"Object",stat:!0,forced:Object.assign!==WM},{assign:WM});var qM=x6(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 y($){return $ instanceof l?new l($.type,y($.content),$.alias):Array.isArray($)?$.map(y):$.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(y){return Object.prototype.toString.call(y).slice(8,-1)},objId:function(y){return y.__id||Object.defineProperty(y,"__id",{value:++i}),y.__id},clone:function y($,m){var S,D;switch(m=m||{},a.util.type($)){case"Object":if(D=a.util.objId($),m[D])return m[D];for(var A in S={},m[D]=S,$)$.hasOwnProperty(A)&&(S[A]=y($[A],m));return S;case"Array":return D=a.util.objId($),m[D]?m[D]:(S=[],m[D]=S,$.forEach(function(B,P){S[P]=y(B,m)}),S);default:return $}},getLanguage:function(y){for(;y&&!r.test(y.className);)y=y.parentElement;return y?(y.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(S){var y=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(S.stack)||[])[1];if(y){var $=document.getElementsByTagName("script");for(var m in $)if($[m].src==y)return $[m]}return null}},isActive:function(y,$,m){for(var S="no-"+$;y;){var D=y.classList;if(D.contains($))return!0;if(D.contains(S))return!1;y=y.parentElement}return!!m}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(y,$){var m=a.util.clone(a.languages[y]);for(var S in $)m[S]=$[S];return m},insertBefore:function(y,$,m,S){var D=(S=S||a.languages)[y],A={};for(var B in D)if(D.hasOwnProperty(B)){if(B==$)for(var P in m)m.hasOwnProperty(P)&&(A[P]=m[P]);m.hasOwnProperty(B)||(A[B]=D[B])}var U=S[y];return S[y]=A,a.languages.DFS(a.languages,function(Y,ce){ce===U&&Y!=y&&(this[Y]=A)}),A},DFS:function y($,m,S,D){D=D||{};var A=a.util.objId;for(var B in $)if($.hasOwnProperty(B)){m.call($,B,$[B],S||B);var P=$[B],U=a.util.type(P);U!=="Object"||D[A(P)]?U!=="Array"||D[A(P)]||(D[A(P)]=!0,y(P,m,B,D)):(D[A(P)]=!0,y(P,m,null,D))}}},plugins:{},highlightAll:function(y,$){a.highlightAllUnder(document,y,$)},highlightAllUnder:function(y,$,m){var S={callback:m,container:y,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};a.hooks.run("before-highlightall",S),S.elements=Array.prototype.slice.apply(S.container.querySelectorAll(S.selector)),a.hooks.run("before-all-elements-highlight",S);for(var D,A=0;D=S.elements[A++];)a.highlightElement(D,$===!0,S.callback)},highlightElement:function(y,$,m){var S=a.util.getLanguage(y),D=a.languages[S];y.className=y.className.replace(r,"").replace(/\s+/g," ")+" language-"+S;var A=y.parentElement;A&&A.nodeName.toLowerCase()==="pre"&&(A.className=A.className.replace(r,"").replace(/\s+/g," ")+" language-"+S);var B={element:y,language:S,grammar:D,code:y.textContent};function P(Y){B.highlightedCode=Y,a.hooks.run("before-insert",B),B.element.innerHTML=B.highlightedCode,a.hooks.run("after-highlight",B),a.hooks.run("complete",B),m&&m.call(B.element)}if(a.hooks.run("before-sanity-check",B),(A=B.element.parentElement)&&A.nodeName.toLowerCase()==="pre"&&!A.hasAttribute("tabindex")&&A.setAttribute("tabindex","0"),!B.code)return a.hooks.run("complete",B),void(m&&m.call(B.element));if(a.hooks.run("before-highlight",B),B.grammar)if($&&n.Worker){var U=new Worker(a.filename);U.onmessage=function(Y){P(Y.data)},U.postMessage(JSON.stringify({language:B.language,code:B.code,immediateClose:!0}))}else P(a.highlight(B.code,B.grammar,B.language));else P(a.util.encode(B.code))},highlight:function(y,$,m){var S={code:y,grammar:$,language:m};return a.hooks.run("before-tokenize",S),S.tokens=a.tokenize(S.code,S.grammar),a.hooks.run("after-tokenize",S),l.stringify(a.util.encode(S.tokens),S.language)},tokenize:function(y,$){var m=$.rest;if(m){for(var S in m)$[S]=m[S];delete $.rest}var D=new d;return p(D,D.head,y),f(y,D,$,D.head,0),function(A){for(var B=[],P=A.head.next;P!==A.tail;)B.push(P.value),P=P.next;return B}(D)},hooks:{all:{},add:function(y,$){var m=a.hooks.all;m[y]=m[y]||[],m[y].push($)},run:function(y,$){var m=a.hooks.all[y];if(m&&m.length)for(var S,D=0;S=m[D++];)S($)}},Token:l};function l(y,$,m,S){this.type=y,this.content=$,this.alias=m,this.length=0|(S||"").length}function u(y,$,m,S){y.lastIndex=$;var D=y.exec(m);if(D&&S&&D[1]){var A=D[1].length;D.index+=A,D[0]=D[0].slice(A)}return D}function f(y,$,m,S,D,A){for(var B in m)if(m.hasOwnProperty(B)&&m[B]){var P=m[B];P=Array.isArray(P)?P:[P];for(var U=0;U<P.length;++U){if(A&&A.cause==B+","+U)return;var Y=P[U],ce=Y.inside,ee=!!Y.lookbehind,ge=!!Y.greedy,se=Y.alias;if(ge&&!Y.pattern.global){var xe=Y.pattern.toString().match(/[imsuy]*$/)[0];Y.pattern=RegExp(Y.pattern.source,xe+"g")}for(var ve=Y.pattern||Y,Oe=S.next,Te=D;Oe!==$.tail&&!(A&&Te>=A.reach);Te+=Oe.value.length,Oe=Oe.next){var Ne=Oe.value;if($.length>y.length)return;if(!(Ne instanceof l)){var Re,Ae=1;if(ge){if(!(Re=u(ve,Te,y,ee)))break;var ae=Re.index,M=Re.index+Re[0].length,R=Te;for(R+=Oe.value.length;ae>=R;)R+=(Oe=Oe.next).value.length;if(Te=R-=Oe.value.length,Oe.value instanceof l)continue;for(var T=Oe;T!==$.tail&&(R<M||typeof T.value=="string");T=T.next)Ae++,R+=T.value.length;Ae--,Ne=y.slice(Te,R),Re.index-=Te}else if(!(Re=u(ve,0,Ne,ee)))continue;ae=Re.index;var L=Re[0],q=Ne.slice(0,ae),O=Ne.slice(ae+L.length),J=Te+Ne.length;A&&J>A.reach&&(A.reach=J);var ue=Oe.prev;if(q&&(ue=p($,ue,q),Te+=q.length),g($,ue,Ae),Oe=p($,ue,new l(B,ce?a.tokenize(L,ce):L,se,L)),O&&p($,Oe,O),Ae>1){var he={cause:B+","+U,reach:J};f(y,$,m,Oe.prev,Te,he),A&&he.reach>A.reach&&(A.reach=he.reach)}}}}}}function d(){var y={value:null,prev:null,next:null},$={value:null,prev:y,next:null};y.next=$,this.head=y,this.tail=$,this.length=0}function p(y,$,m){var S=$.next,D={value:m,prev:$,next:S};return $.next=D,S.prev=D,y.length++,D}function g(y,$,m){for(var S=$.next,D=0;D<m&&S!==y.tail;D++)S=S.next;$.next=S,S.prev=$,y.length-=D}if(n.Prism=a,l.stringify=function y($,m){if(typeof $=="string")return $;if(Array.isArray($)){var S="";return $.forEach(function(U){S+=y(U,m)}),S}var D={type:$.type,content:y($.content,m),tag:"span",classes:["token",$.type],attributes:{},language:m},A=$.alias;A&&(Array.isArray(A)?Array.prototype.push.apply(D.classes,A):D.classes.push(A)),a.hooks.run("wrap",D);var B="";for(var P in D.attributes)B+=" "+P+'="'+(D.attributes[P]||"").replace(/"/g,"&quot;")+'"';return"<"+D.tag+' class="'+D.classes.join(" ")+'"'+B+">"+D.content+"</"+D.tag+">"},!n.document)return n.addEventListener&&(a.disableWorkerMessageHandler||n.addEventListener("message",function(y){var $=JSON.parse(y.data),m=$.language,S=$.code,D=$.immediateClose;n.postMessage(a.highlight(S,a.languages[m],m)),D&&n.close()},!1)),a;var h=a.util.currentScript();function E(){a.manual||a.highlightAll()}if(h&&(a.filename=h.src,h.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var w=document.readyState;w==="loading"||w==="interactive"&&h&&h.defer?document.addEventListener("DOMContentLoaded",E):window.requestAnimationFrame?window.requestAnimationFrame(E):window.setTimeout(E,16)}return a}(typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{});/**
156
+ ***************************************************************************** */var ry=function(){return ry=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},ry.apply(this,arguments)};function V5(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(f){try{u(r.next(f))}catch(d){o(d)}}function l(f){try{u(r.throw(f))}catch(d){o(d)}}function u(f){var d;f.done?i(f.value):(d=f.value,d instanceof n?d:new n(function(p){p(d)})).then(a,l)}u((r=r.apply(e,t||[])).next())})}function U5(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:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function l(u){return function(f){return function(d){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&d[0]?r.return:d[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,d[1])).done)return i;switch(r=0,i&&(d=[2&d[0],i.value]),d[0]){case 0:case 1:i=d;break;case 4:return a.label++,{value:d[1],done:!1};case 5:a.label++,r=d[1],d=[0];continue;case 7:d=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!((i=i.length>0&&i[i.length-1])||d[0]!==6&&d[0]!==2)){a=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]<i[3])){a.label=d[1];break}if(d[0]===6&&a.label<i[1]){a.label=i[1],i=d;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(d);break}i[2]&&a.ops.pop(),a.trys.pop();continue}d=t.call(e,a)}catch(p){d=[6,p],r=0}finally{n=i=0}if(5&d[0])throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}([u,f])}}}function bve(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 wve(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=bve(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,l){(function(u,f,d,p){Promise.resolve(p).then(function(g){u({value:g,done:d})},f)})(a,l,(o=e[i](o)).done,o.value)})}}}var H5=En("unscopables"),W5=Array.prototype;W5[H5]==null&&ia.f(W5,H5,{configurable:!0,value:P5(null)});var au,GL,KL,q5=function(e){W5[H5][e]=!0},hf={},$ve=!Ht(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),YL=$5("IE_PROTO"),G5=$e.Object,Eve=G5.prototype,iy=$ve?G5.getPrototypeOf:function(e){var t=v5(e);if(Fn(t,YL))return t[YL];var n=t.constructor;return Ft(n)&&t instanceof n?n.prototype:t instanceof G5?Eve:null},K5=En("iterator"),XL=!1;[].keys&&("next"in(KL=[].keys())?(GL=iy(iy(KL)))!==Object.prototype&&(au=GL):XL=!0);var Cve=au==null||Ht(function(){var e={};return au[K5].call(e)!==e});Cve&&(au={}),Ft(au[K5])||Zr(au,K5,function(){return this});var Y5={IteratorPrototype:au,BUGGY_SAFARI_ITERATORS:XL},Sve=ia.f,JL=En("toStringTag"),oy=function(e,t,n){e&&!Fn(e=n?e:e.prototype,JL)&&Sve(e,JL,{configurable:!0,value:t})},xve=Y5.IteratorPrototype,Dve=function(){return this},Ave=$e.String,_ve=$e.TypeError,gf=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=tt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,i){return Yn(r),function(o){if(typeof o=="object"||Ft(o))return o;throw _ve("Can't set "+Ave(o)+" as a prototype")}(i),t?e(r,i):r.__proto__=i,r}}():void 0),kve=Yh.PROPER,Ove=Yh.CONFIGURABLE,ZL=Y5.IteratorPrototype,ay=Y5.BUGGY_SAFARI_ITERATORS,ng=En("iterator"),Bve=function(){return this},QL=function(e,t,n,r,i,o,a){(function($,m,S,D){var A=m+" Iterator";$.prototype=P5(xve,{next:Um(+!D,S)}),oy($,A,!1),hf[A]=Dve})(n,t,r);var l,u,f,d=function($){if($===i&&w)return w;if(!ay&&$ in h)return h[$];switch($){case"keys":case"values":case"entries":return function(){return new n(this,$)}}return function(){return new n(this)}},p=t+" Iterator",g=!1,h=e.prototype,E=h[ng]||h["@@iterator"]||i&&h[i],w=!ay&&E||d(i),y=t=="Array"&&h.entries||E;if(y&&(l=iy(y.call(new e)))!==Object.prototype&&l.next&&(iy(l)!==ZL&&(gf?gf(l,ZL):Ft(l[ng])||Zr(l,ng,Bve)),oy(l,p,!0)),kve&&i=="values"&&E&&E.name!=="values"&&(Ove?Ao(h,"name","values"):(g=!0,w=function(){return Dt(E,this)})),i)if(u={values:d("values"),keys:o?w:d("keys"),entries:d("entries")},a)for(f in u)(ay||g||!(f in h))&&Zr(h,f,u[f]);else _o({target:t,proto:!0,forced:ay||g},u);return h[ng]!==w&&Zr(h,ng,w,{name:i}),hf[t]=w,u},Tve=Jr.set,Fve=Jr.getterFor("Array Iterator"),rg=QL(Array,"Array",function(e,t){Tve(this,{type:"Array Iterator",target:$l(e),index:0,kind:t})},function(){var e=Fve(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");hf.Arguments=hf.Array,q5("keys"),q5("values"),q5("entries");var Pve=HL.charAt,Ive=Jr.set,Nve=Jr.getterFor("String Iterator");QL(String,"String",function(e){Ive(this,{type:"String Iterator",string:Sl(e),index:0})},function(){var e,t=Nve(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Pve(n,r),t.index+=e.length,{value:e,done:!1})});var ly=function(e,t,n){for(var r in t)Zr(e,r,t[r],n);return e},eR=Xm.f,tR=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Lve={f:function(e){return tR&&Yi(e)=="Window"?function(t){try{return eR(t)}catch{return z5(tR)}}(e):eR($l(e))}},nR=Ht(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),sy=Object.isExtensible,lu=Ht(function(){sy(1)})||nR?function(e){return!!zt(e)&&(!nR||Yi(e)!="ArrayBuffer")&&(!sy||sy(e))}:sy,Rve=!Ht(function(){return Object.isExtensible(Object.preventExtensions({}))}),X5=a5(function(e){var t=ia.f,n=!1,r=m5("meta"),i=0,o=function(l){t(l,r,{value:{objectID:"O"+i++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var l=Xm.f,u=tt([].splice),f={};f[r]=1,l(f).length&&(Xm.f=function(d){for(var p=l(d),g=0,h=p.length;g<h;g++)if(p[g]===r){u(p,g,1);break}return p},_o({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Lve.f}))},fastKey:function(l,u){if(!zt(l))return typeof l=="symbol"?l:(typeof l=="string"?"S":"P")+l;if(!Fn(l,r)){if(!lu(l))return"F";if(!u)return"E";o(l)}return l[r].objectID},getWeakData:function(l,u){if(!Fn(l,r)){if(!lu(l))return!0;if(!u)return!1;o(l)}return l[r].weakData},onFreeze:function(l){return Rve&&n&&lu(l)&&!Fn(l,r)&&o(l),l}};Km[r]=!0}),rR=tt(tt.bind),ig=function(e,t){return El(e),t===void 0?e:rR?rR(e,t):function(){return e.apply(t,arguments)}},Mve=En("iterator"),jve=Array.prototype,zve=En("iterator"),iR=function(e){if(e!=null)return Wh(e,zve)||Wh(e,"@@iterator")||hf[Qm(e)]},Vve=$e.TypeError,oR=function(e,t,n){var r,i;Yn(e);try{if(!(r=Wh(e,"return"))){if(t==="throw")throw n;return n}r=Dt(r,e)}catch(o){i=!0,r=o}if(t==="throw")throw n;if(i)throw r;return Yn(r),n},Uve=$e.TypeError,uy=function(e,t){this.stopped=e,this.result=t},aR=uy.prototype,cy=function(e,t,n){var r,i,o,a,l,u,f,d,p=n&&n.that,g=!(!n||!n.AS_ENTRIES),h=!(!n||!n.IS_ITERATOR),E=!(!n||!n.INTERRUPTED),w=ig(t,p),y=function(m){return r&&oR(r,"normal",m),new uy(!0,m)},$=function(m){return g?(Yn(m),E?w(m[0],m[1],y):w(m[0],m[1])):E?w(m,y):w(m)};if(h)r=e;else{if(!(i=iR(e)))throw Uve(Hm(e)+" is not iterable");if((d=i)!==void 0&&(hf.Array===d||jve[Mve]===d)){for(o=0,a=Jh(e);a>o;o++)if((l=$(e[o]))&&Uh(aR,l))return l;return new uy(!1)}r=function(m,S){var D=arguments.length<2?iR(m):S;if(El(D))return Yn(Dt(D,m));throw Vve(Hm(m)+" is not iterable")}(e,i)}for(u=r.next;!(f=Dt(u,r)).done;){try{l=$(f.value)}catch(m){oR(r,"throw",m)}if(typeof l=="object"&&l&&Uh(aR,l))return l}return new uy(!1)},Hve=$e.TypeError,J5=function(e,t){if(Uh(t,e))return e;throw Hve("Incorrect invocation")},lR=En("iterator"),sR=!1;try{var Wve=0,uR={next:function(){return{done:!!Wve++}},return:function(){sR=!0}};uR[lR]=function(){return this},Array.from(uR,function(){throw 2})}catch{}var cR=function(e,t){if(!t&&!sR)return!1;var n=!1;try{var r={};r[lR]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},qve=En("species"),fR=$e.Array,Gve=function(e,t){return new(function(n){var r;return Zm(n)&&(r=n.constructor,(A5(r)&&(r===fR||Zm(r.prototype))||zt(r)&&(r=r[qve])===null)&&(r=void 0)),r===void 0?fR:r}(e))(t===0?0:t)},dR=tt([].push),xl=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,o=e==6,a=e==7,l=e==5||o;return function(u,f,d,p){for(var g,h,E=v5(u),w=c5(E),y=ig(f,d),$=Jh(w),m=0,S=p||Gve,D=t?S(u,$):n||a?S(u,0):void 0;$>m;m++)if((l||m in w)&&(h=y(g=w[m],m,E),e))if(t)D[m]=h;else if(h)switch(e){case 3:return!0;case 5:return g;case 6:return m;case 2:dR(D,g)}else switch(e){case 4:return!1;case 7:dR(D,g)}return o?-1:r||i?i:D}},Z5={forEach:xl(0),map:xl(1),filter:xl(2),some:xl(3),every:xl(4),find:xl(5),findIndex:xl(6),filterReject:xl(7)},fy=X5.getWeakData,Kve=Jr.set,Yve=Jr.getterFor,Xve=Z5.find,Jve=Z5.findIndex,Zve=tt([].splice),Qve=0,dy=function(e){return e.frozen||(e.frozen=new pR)},pR=function(){this.entries=[]},Q5=function(e,t){return Xve(e.entries,function(n){return n[0]===t})};pR.prototype={get:function(e){var t=Q5(this,e);if(t)return t[1]},has:function(e){return!!Q5(this,e)},set:function(e,t){var n=Q5(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Jve(this.entries,function(n){return n[0]===e});return~t&&Zve(this.entries,t,1),!!~t}};var og,hR={getConstructor:function(e,t,n,r){var i=e(function(u,f){J5(u,o),Kve(u,{type:t,id:Qve++,frozen:void 0}),f!=null&&cy(f,u[r],{that:u,AS_ENTRIES:n})}),o=i.prototype,a=Yve(t),l=function(u,f,d){var p=a(u),g=fy(Yn(f),!0);return g===!0?dy(p).set(f,d):g[p.id]=d,u};return ly(o,{delete:function(u){var f=a(this);if(!zt(u))return!1;var d=fy(u);return d===!0?dy(f).delete(u):d&&Fn(d,f.id)&&delete d[f.id]},has:function(u){var f=a(this);if(!zt(u))return!1;var d=fy(u);return d===!0?dy(f).has(u):d&&Fn(d,f.id)}}),ly(o,n?{get:function(u){var f=a(this);if(zt(u)){var d=fy(u);return d===!0?dy(f).get(u):d?d[f.id]:void 0}},set:function(u,f){return l(this,u,f)}}:{add:function(u){return l(this,u,!0)}}),i}},py=Jr.enforce,e1e=!$e.ActiveXObject&&"ActiveXObject"in $e,gR=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},t1e=function(e,t,n){var r=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=r?"set":"add",a=$e[e],l=a&&a.prototype,u=a,f={},d=function(y){var $=tt(l[y]);Zr(l,y,y=="add"?function(m){return $(this,m===0?0:m),this}:y=="delete"?function(m){return!(i&&!zt(m))&&$(this,m===0?0:m)}:y=="get"?function(m){return i&&!zt(m)?void 0:$(this,m===0?0:m)}:y=="has"?function(m){return!(i&&!zt(m))&&$(this,m===0?0:m)}:function(m,S){return $(this,m===0?0:m,S),this})};if(Jm(e,!Ft(a)||!(i||l.forEach&&!Ht(function(){new a().entries().next()}))))u=n.getConstructor(t,e,r,o),X5.enable();else if(Jm(e,!0)){var p=new u,g=p[o](i?{}:-0,1)!=p,h=Ht(function(){p.has(1)}),E=cR(function(y){new a(y)}),w=!i&&Ht(function(){for(var y=new a,$=5;$--;)y[o]($,$);return!y.has(-0)});E||((u=t(function(y,$){J5(y,l);var m=function(S,D,A){var B,P;return gf&&Ft(B=D.constructor)&&B!==A&&zt(P=B.prototype)&&P!==A.prototype&&gf(S,P),S}(new a,y,u);return $!=null&&cy($,m[o],{that:m,AS_ENTRIES:r}),m})).prototype=l,l.constructor=u),(h||w)&&(d("delete"),d("has"),r&&d("get")),(w||g)&&d(o),i&&l.clear&&delete l.clear}return f[e]=u,_o({global:!0,forced:u!=a},f),oy(u,e),i||n.setStrong(u,e,r),u}("WeakMap",gR,hR);if(mL&&e1e){og=hR.getConstructor(gR,"WeakMap",!0),X5.enable();var ag=t1e.prototype,vR=tt(ag.delete),hy=tt(ag.has),mR=tt(ag.get),yR=tt(ag.set);ly(ag,{delete:function(e){if(zt(e)&&!lu(e)){var t=py(this);return t.frozen||(t.frozen=new og),vR(this,e)||t.frozen.delete(e)}return vR(this,e)},has:function(e){if(zt(e)&&!lu(e)){var t=py(this);return t.frozen||(t.frozen=new og),hy(this,e)||t.frozen.has(e)}return hy(this,e)},get:function(e){if(zt(e)&&!lu(e)){var t=py(this);return t.frozen||(t.frozen=new og),hy(this,e)?mR(this,e):t.frozen.get(e)}return mR(this,e)},set:function(e,t){if(zt(e)&&!lu(e)){var n=py(this);n.frozen||(n.frozen=new og),hy(this,e)?yR(this,e,t):n.frozen.set(e,t)}else yR(this,e,t);return this}})}var gy={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},e6=Gh("span").classList,bR=e6&&e6.constructor&&e6.constructor.prototype,wR=bR===Object.prototype?void 0:bR,t6=En("iterator"),$R=En("toStringTag"),n6=rg.values,ER=function(e,t){if(e){if(e[t6]!==n6)try{Ao(e,t6,n6)}catch{e[t6]=n6}if(e[$R]||Ao(e,$R,t),gy[t]){for(var n in rg)if(e[n]!==rg[n])try{Ao(e,n,rg[n])}catch{e[n]=rg[n]}}}};for(var r6 in gy)ER($e[r6]&&$e[r6].prototype,r6);ER(wR,"DOMTokenList");var CR=function(e,t){var n=[][e];return!!n&&Ht(function(){n.call(null,t||function(){throw 1},1)})},n1e=Z5.forEach,i6=CR("forEach")?[].forEach:function(e){return n1e(this,e,arguments.length>1?arguments[1]:void 0)},SR=function(e){if(e&&e.forEach!==i6)try{Ao(e,"forEach",i6)}catch{e.forEach=i6}};for(var o6 in gy)gy[o6]&&SR($e[o6]&&$e[o6].prototype);SR(wR);var lg,vf,xR,a6,vy=$e.Promise,DR=En("species"),AR=/(?:ipad|iphone|ipod).*applewebkit/i.test(cf),Dl=Yi($e.process)=="process",l6=$e.setImmediate,s6=$e.clearImmediate,r1e=$e.process,u6=$e.Dispatch,i1e=$e.Function,_R=$e.MessageChannel,o1e=$e.String,c6=0,sg={};try{lg=$e.location}catch{}var f6=function(e){if(Fn(sg,e)){var t=sg[e];delete sg[e],t()}},d6=function(e){return function(){f6(e)}},kR=function(e){f6(e.data)},OR=function(e){$e.postMessage(o1e(e),lg.protocol+"//"+lg.host)};l6&&s6||(l6=function(e){var t=OL(arguments,1);return sg[++c6]=function(){jL(Ft(e)?e:i1e(e),void 0,t)},vf(c6),c6},s6=function(e){delete sg[e]},Dl?vf=function(e){r1e.nextTick(d6(e))}:u6&&u6.now?vf=function(e){u6.now(d6(e))}:_R&&!AR?(a6=(xR=new _R).port2,xR.port1.onmessage=kR,vf=ig(a6.postMessage,a6)):$e.addEventListener&&Ft($e.postMessage)&&!$e.importScripts&&lg&&lg.protocol!=="file:"&&!Ht(OR)?(vf=OR,$e.addEventListener("message",kR,!1)):vf="onreadystatechange"in Gh("script")?function(e){B5.appendChild(Gh("script")).onreadystatechange=function(){B5.removeChild(this),f6(e)}}:function(e){setTimeout(d6(e),0)});var ug,su,cg,mf,p6,h6,g6,BR,TR={set:l6,clear:s6},a1e=/ipad|iphone|ipod/i.test(cf)&&$e.Pebble!==void 0,l1e=/web0s(?!.*chrome)/i.test(cf),s1e=w5.f,v6=TR.set,FR=$e.MutationObserver||$e.WebKitMutationObserver,PR=$e.document,IR=$e.process,my=$e.Promise,NR=s1e($e,"queueMicrotask"),LR=NR&&NR.value;LR||(ug=function(){var e,t;for(Dl&&(e=IR.domain)&&e.exit();su;){t=su.fn,su=su.next;try{t()}catch(n){throw su?mf():cg=void 0,n}}cg=void 0,e&&e.enter()},AR||Dl||l1e||!FR||!PR?!a1e&&my&&my.resolve?((g6=my.resolve(void 0)).constructor=my,BR=ig(g6.then,g6),mf=function(){BR(ug)}):Dl?mf=function(){IR.nextTick(ug)}:(v6=ig(v6,$e),mf=function(){v6(ug)}):(p6=!0,h6=PR.createTextNode(""),new FR(ug).observe(h6,{characterData:!0}),mf=function(){h6.data=p6=!p6}));var m6,RR,MR,jR,zR=LR||function(e){var t={fn:e,next:void 0};cg&&(cg.next=t),su||(su=t,mf()),cg=t},u1e=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=El(t),this.reject=El(n)},y6={f:function(e){return new u1e(e)}},b6=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},c1e=typeof window=="object",VR=TR.set,f1e=En("species"),ko="Promise",UR=Jr.getterFor(ko),d1e=Jr.set,p1e=Jr.getterFor(ko),uu=vy&&vy.prototype,Oo=vy,fg=uu,HR=$e.TypeError,w6=$e.document,$6=$e.process,yf=y6.f,h1e=yf,g1e=!!(w6&&w6.createEvent&&$e.dispatchEvent),WR=Ft($e.PromiseRejectionEvent),qR=!1,dg=Jm(ko,function(){var e=Gm(Oo),t=e!==String(Oo);if(!t&&Hh===66)return!0;if(Hh>=51&&/native code/.test(e))return!1;var n=new Oo(function(i){i(1)}),r=function(i){i(function(){},function(){})};return(n.constructor={})[f1e]=r,!(qR=n.then(function(){})instanceof r)||!t&&c1e&&!WR}),v1e=dg||!cR(function(e){Oo.all(e).catch(function(){})}),GR=function(e){var t;return!(!zt(e)||!Ft(t=e.then))&&t},E6=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;zR(function(){for(var r=e.value,i=e.state==1,o=0;n.length>o;){var a,l,u,f=n[o++],d=i?f.ok:f.fail,p=f.resolve,g=f.reject,h=f.domain;try{d?(i||(e.rejection===2&&y1e(e),e.rejection=1),d===!0?a=r:(h&&h.enter(),a=d(r),h&&(h.exit(),u=!0)),a===f.promise?g(HR("Promise-chain cycle")):(l=GR(a))?Dt(l,a,p,g):p(a)):g(r)}catch(E){h&&!u&&h.exit(),g(E)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&m1e(e)})}},KR=function(e,t,n){var r,i;g1e?((r=w6.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),$e.dispatchEvent(r)):r={promise:t,reason:n},!WR&&(i=$e["on"+e])?i(r):e==="unhandledrejection"&&function(o,a){var l=$e.console;l&&l.error&&(arguments.length==1?l.error(o):l.error(o,a))}("Unhandled promise rejection",n)},m1e=function(e){Dt(VR,$e,function(){var t,n=e.facade,r=e.value;if(YR(e)&&(t=b6(function(){Dl?$6.emit("unhandledRejection",r,n):KR("unhandledrejection",n,r)}),e.rejection=Dl||YR(e)?2:1,t.error))throw t.value})},YR=function(e){return e.rejection!==1&&!e.parent},y1e=function(e){Dt(VR,$e,function(){var t=e.facade;Dl?$6.emit("rejectionHandled",t):KR("rejectionhandled",t,e.value)})},bf=function(e,t,n){return function(r){e(t,r,n)}},wf=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,E6(e,!0))},C6=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw HR("Promise can't be resolved itself");var r=GR(t);r?zR(function(){var i={done:!1};try{Dt(r,t,bf(C6,i,e),bf(wf,i,e))}catch(o){wf(i,o,e)}}):(e.value=t,e.state=1,E6(e,!1))}catch(i){wf({done:!1},i,e)}}};if(dg&&(fg=(Oo=function(e){J5(this,fg),El(e),Dt(m6,this);var t=UR(this);try{e(bf(C6,t),bf(wf,t))}catch(n){wf(t,n)}}).prototype,(m6=function(e){d1e(this,{type:ko,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=ly(fg,{then:function(e,t){var n=p1e(this),r=n.reactions,i=yf(zL(this,Oo));return i.ok=!Ft(e)||e,i.fail=Ft(t)&&t,i.domain=Dl?$6.domain:void 0,n.parent=!0,r[r.length]=i,n.state!=0&&E6(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),RR=function(){var e=new m6,t=UR(e);this.promise=e,this.resolve=bf(C6,t),this.reject=bf(wf,t)},y6.f=yf=function(e){return e===Oo||e===MR?new RR(e):h1e(e)},Ft(vy)&&uu!==Object.prototype)){jR=uu.then,qR||(Zr(uu,"then",function(e,t){var n=this;return new Oo(function(r,i){Dt(jR,n,r,i)}).then(e,t)},{unsafe:!0}),Zr(uu,"catch",fg.catch,{unsafe:!0}));try{delete uu.constructor}catch{}gf&&gf(uu,fg)}_o({global:!0,wrap:!0,forced:dg},{Promise:Oo}),oy(Oo,ko,!1),function(e){var t=ru(e),n=ia.f;Do&&t&&!t[DR]&&n(t,DR,{configurable:!0,get:function(){return this}})}(ko),MR=ru(ko),_o({target:ko,stat:!0,forced:dg},{reject:function(e){var t=yf(this);return Dt(t.reject,void 0,e),t.promise}}),_o({target:ko,stat:!0,forced:dg},{resolve:function(e){return function(t,n){if(Yn(t),zt(n)&&n.constructor===t)return n;var r=y6.f(t);return(0,r.resolve)(n),r.promise}(this,e)}}),_o({target:ko,stat:!0,forced:v1e},{all:function(e){var t=this,n=yf(t),r=n.resolve,i=n.reject,o=b6(function(){var a=El(t.resolve),l=[],u=0,f=1;cy(e,function(d){var p=u++,g=!1;f++,Dt(a,t,d).then(function(h){g||(g=!0,l[p]=h,--f||r(l))},i)}),--f||r(l)});return o.error&&i(o.value),n.promise},race:function(e){var t=this,n=yf(t),r=n.reject,i=b6(function(){var o=El(t.resolve);cy(e,function(a){Dt(o,t,a).then(n.resolve,r)})});return i.error&&r(i.value),n.promise}});var b1e=Yh.PROPER,S6=RegExp.prototype,XR=S6.toString,w1e=tt(BL),$1e=Ht(function(){return XR.call({source:"a",flags:"b"})!="/a/b"}),E1e=b1e&&XR.name!="toString";($1e||E1e)&&Zr(RegExp.prototype,"toString",function(){var e=Yn(this),t=Sl(e.source),n=e.flags;return"/"+t+"/"+Sl(n===void 0&&Uh(S6,e)&&!("flags"in S6)?w1e(e):n)},{unsafe:!0});var C1e=Yh.EXISTS,S1e=ia.f,JR=Function.prototype,x1e=tt(JR.toString),ZR=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,D1e=tt(ZR.exec);Do&&!C1e&&S1e(JR,"name",{configurable:!0,get:function(){try{return D1e(ZR,x1e(this))[1]}catch{return""}}});var QR=new WeakMap;function eM(e){return e.getMenuConfig("uploadImage")}function A1e(e,t){return V5(this,void 0,void 0,function(){return U5(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(),l=a.indexOf("data:image")===0?"":a;Ts(e,a,t.name,l),r("ok")}}})]})})}function _1e(e,t){return V5(this,void 0,void 0,function(){var n,r,i,o;return U5(this,function(a){switch(a.label){case 0:return n=function(l){var u=QR.get(l);if(u!=null)return u;var f=eM(l),d=f.onSuccess,p=f.onProgress,g=f.onFailed,h=f.customInsert,E=f.onError;return u=q4(ry(ry({},f),{onProgress:function(w){l.showProgressBar(w),p&&p(w)},onSuccess:function(w,y){if(h)return h(y,function(ce,ee,ge){return Ts(l,ce,ee,ge)}),void d(w,y);var $=y.errno,m=$===void 0?1:$,S=y.data,D=S===void 0?{}:S;if(m===0){if(Array.isArray(D))D.forEach(function(ce){var ee=ce.url,ge=ee===void 0?"":ee,se=ce.alt,xe=se===void 0?"":se,ve=ce.href;Ts(l,ge,xe,ve===void 0?"":ve)});else{var A=D.url,B=A===void 0?"":A,P=D.alt,U=P===void 0?"":P,Y=D.href;Ts(l,B,U,Y===void 0?"":Y)}d(w,y)}else g(w,y)},onError:function(w,y,$){E(w,y,$)}})),QR.set(l,u),u}(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 tM(e,t){var n,r;return V5(this,void 0,void 0,function(){var i,o,a,l,u,f,d,p,g;return U5(this,function(h){switch(h.label){case 0:if(t==null)return[2];i=Array.prototype.slice.call(t),o=eM(e),a=o.customUpload,l=o.base64LimitSize,h.label=1;case 1:h.trys.push([1,11,12,17]),u=wve(i),h.label=2;case 2:return[4,u.next()];case 3:return(f=h.sent()).done?[3,10]:(d=f.value,p=d.size,l&&p<=l?[4,A1e(e,d)]:[3,5]);case 4:return h.sent(),[3,9];case 5:return a?[4,a(d,function(E,w,y){return Ts(e,E,w,y)})]:[3,7];case 6:return h.sent(),[3,9];case 7:return[4,_1e(e,d)];case 8:h.sent(),h.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return g=h.sent(),n={error:g},[3,17];case 12:return h.trys.push([12,,15,16]),f&&!f.done&&(r=u.return)?[4,r.call(u)]:[3,14];case 13:h.sent(),h.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 k1e=tt([].join),O1e=c5!=Object,B1e=CR("join",",");_o({target:"Array",proto:!0,forced:O1e||!B1e},{join:function(e){return k1e($l(this),e===void 0?",":e)}}),li&&(V.fn.append=li),so&&(V.fn.on=so),Yu&&(V.fn.remove=Yu),lo&&(V.fn.val=lo),BD&&(V.fn.click=BD),Wu&&(V.fn.hide=Wu);var T1e=function(){function e(){this.title=we("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 Zv(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(d,p,g){return Ts(t,d,p,g)});else{var l="";o.length>0&&(l='accept="'+o.join(", ")+'"');var u=V("body"),f=V('<input type="file" '+l+" multiple/>");f.hide(),u.append(f),f.click(),f.on("change",function(){var d=f[0].files;tM(t,d)})}},e}(),F1e={menus:[{key:"uploadImage",factory:function(){return new T1e},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){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,n){console.error("'"+e.name+"' upload error",n)},base64LimitSize:0}}],editorPlugin:function(e){var t=e.insertData,n=e;return n.insertData=function(r){if(Zv(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,l){var u=typeof Symbol=="function"&&a[Symbol.iterator];if(!u)return a;var f,d,p=u.call(a),g=[];try{for(;(l===void 0||l-- >0)&&!(f=p.next()).done;)g.push(f.value)}catch(h){d={error:h}}finally{try{f&&!f.done&&(u=p.return)&&u.call(p)}finally{if(d)throw d.error}}return g}(o.type.split("/"),1)[0]==="image"})?tM(e,i):t(r)}},n}};wr("en",{highLightModule:{selectLang:"Language"}}),wr("zh-CN",{highLightModule:{selectLang:"\u9009\u62E9\u8BED\u8A00"}});var yy=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function x6(e){var t={exports:{}};return e(t,t.exports),t.exports}var Al,by,wy=function(e){return e&&e.Math==Math&&e},it=wy(typeof globalThis=="object"&&globalThis)||wy(typeof window=="object"&&window)||wy(typeof self=="object"&&self)||wy(typeof yy=="object"&&yy)||function(){return this}()||Function("return this")(),P1e=Object.defineProperty,D6=function(e,t){try{P1e(it,e,{value:t,configurable:!0,writable:!0})}catch{it[e]=t}return t},_l=it["__core-js_shared__"]||D6("__core-js_shared__",{}),A6=x6(function(e){(e.exports=function(t,n){return _l[t]||(_l[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),nM=Function.prototype,_6=nM.bind,k6=nM.call,I1e=_6&&_6.bind(k6),At=_6?function(e){return e&&I1e(k6,e)}:function(e){return e&&function(){return k6.apply(e,arguments)}},N1e=it.TypeError,$f=function(e){if(e==null)throw N1e("Can't call method on "+e);return e},L1e=it.Object,O6=function(e){return L1e($f(e))},R1e=At({}.hasOwnProperty),xi=Object.hasOwn||function(e,t){return R1e(O6(e),t)},M1e=0,j1e=Math.random(),z1e=At(1 .toString),rM=function(e){return"Symbol("+(e===void 0?"":e)+")_"+z1e(++M1e+j1e,36)},pr=function(e){return typeof e=="function"},V1e=function(e){return pr(e)?e:void 0},pg=function(e,t){return arguments.length<2?V1e(it[e]):it[e]&&it[e][t]},B6=pg("navigator","userAgent")||"",iM=it.process,oM=it.Deno,aM=iM&&iM.versions||oM&&oM.version,lM=aM&&aM.v8;lM&&(by=(Al=lM.split("."))[0]>0&&Al[0]<4?1:+(Al[0]+Al[1])),!by&&B6&&(!(Al=B6.match(/Edge\/(\d+)/))||Al[1]>=74)&&(Al=B6.match(/Chrome\/(\d+)/))&&(by=+Al[1]);var sM=by,Xn=function(e){try{return!!e()}catch{return!0}},T6=!!Object.getOwnPropertySymbols&&!Xn(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&sM&&sM<41}),F6=T6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",hg=A6("wks"),cu=it.Symbol,uM=cu&&cu.for,U1e=F6?cu:cu&&cu.withoutSetter||rM,kl=function(e){if(!xi(hg,e)||!T6&&typeof hg[e]!="string"){var t="Symbol."+e;T6&&xi(cu,e)?hg[e]=cu[e]:hg[e]=F6&&uM?uM(t):U1e(t)}return hg[e]},cM={};cM[kl("toStringTag")]="z";var P6=String(cM)==="[object z]",Bo=!Xn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Xi=function(e){return typeof e=="object"?e!==null:pr(e)},I6=it.document,H1e=Xi(I6)&&Xi(I6.createElement),N6=function(e){return H1e?I6.createElement(e):{}},fM=!Bo&&!Xn(function(){return Object.defineProperty(N6("div"),"a",{get:function(){return 7}}).a!=7}),W1e=it.String,q1e=it.TypeError,Ji=function(e){if(Xi(e))return e;throw q1e(W1e(e)+" is not an object")},gg=Function.prototype.call,Vn=gg.bind?gg.bind(gg):function(){return gg.apply(gg,arguments)},dM=At({}.isPrototypeOf),G1e=it.Object,L6=F6?function(e){return typeof e=="symbol"}:function(e){var t=pg("Symbol");return pr(t)&&dM(t.prototype,G1e(e))},K1e=it.String,pM=function(e){try{return K1e(e)}catch{return"Object"}},Y1e=it.TypeError,hM=function(e){if(pr(e))return e;throw Y1e(pM(e)+" is not a function")},gM=function(e,t){var n=e[t];return n==null?void 0:hM(n)},X1e=it.TypeError,J1e=it.TypeError,Z1e=kl("toPrimitive"),Q1e=function(e,t){if(!Xi(e)||L6(e))return e;var n,r=gM(e,Z1e);if(r){if(t===void 0&&(t="default"),n=Vn(r,e,t),!Xi(n)||L6(n))return n;throw J1e("Can't convert object to primitive value")}return t===void 0&&(t="number"),function(i,o){var a,l;if(o==="string"&&pr(a=i.toString)&&!Xi(l=Vn(a,i))||pr(a=i.valueOf)&&!Xi(l=Vn(a,i))||o!=="string"&&pr(a=i.toString)&&!Xi(l=Vn(a,i)))return l;throw X1e("Can't convert object to primitive value")}(e,t)},R6=function(e){var t=Q1e(e,"string");return L6(t)?t:t+""},eme=it.TypeError,vM=Object.defineProperty,$y={f:Bo?vM:function(e,t,n){if(Ji(e),t=R6(t),Ji(n),fM)try{return vM(e,t,n)}catch{}if("get"in n||"set"in n)throw eme("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},M6=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Ef=Bo?function(e,t,n){return $y.f(e,t,M6(1,n))}:function(e,t,n){return e[t]=n,e},tme=At(Function.toString);pr(_l.inspectSource)||(_l.inspectSource=function(e){return tme(e)});var Ey,vg,Cy,j6=_l.inspectSource,mM=it.WeakMap,nme=pr(mM)&&/native code/.test(j6(mM)),yM=A6("keys"),bM=function(e){return yM[e]||(yM[e]=rM(e))},z6={},V6=it.TypeError,rme=it.WeakMap;if(nme||_l.state){var fu=_l.state||(_l.state=new rme),ime=At(fu.get),wM=At(fu.has),ome=At(fu.set);Ey=function(e,t){if(wM(fu,e))throw new V6("Object already initialized");return t.facade=e,ome(fu,e,t),t},vg=function(e){return ime(fu,e)||{}},Cy=function(e){return wM(fu,e)}}else{var Cf=bM("state");z6[Cf]=!0,Ey=function(e,t){if(xi(e,Cf))throw new V6("Object already initialized");return t.facade=e,Ef(e,Cf,t),t},vg=function(e){return xi(e,Cf)?e[Cf]:{}},Cy=function(e){return xi(e,Cf)}}var U6={set:Ey,get:vg,has:Cy,enforce:function(e){return Cy(e)?vg(e):Ey(e,{})},getterFor:function(e){return function(t){var n;if(!Xi(t)||(n=vg(t)).type!==e)throw V6("Incompatible receiver, "+e+" required");return n}}},$M=Function.prototype,ame=Bo&&Object.getOwnPropertyDescriptor,H6=xi($M,"name"),EM={EXISTS:H6,PROPER:H6&&function(){}.name==="something",CONFIGURABLE:H6&&(!Bo||Bo&&ame($M,"name").configurable)},mg=x6(function(e){var t=EM.CONFIGURABLE,n=U6.get,r=U6.enforce,i=String(String).split("String");(e.exports=function(o,a,l,u){var f,d=!!u&&!!u.unsafe,p=!!u&&!!u.enumerable,g=!!u&&!!u.noTargetGet,h=u&&u.name!==void 0?u.name:a;pr(l)&&(String(h).slice(0,7)==="Symbol("&&(h="["+String(h).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!xi(l,"name")||t&&l.name!==h)&&Ef(l,"name",h),(f=r(l)).source||(f.source=i.join(typeof h=="string"?h:""))),o!==it?(d?!g&&o[a]&&(p=!0):delete o[a],p?o[a]=l:Ef(o,a,l)):p?o[a]=l:D6(a,l)})(Function.prototype,"toString",function(){return pr(this)&&n(this).source||j6(this)})}),lme=At({}.toString),sme=At("".slice),Ol=function(e){return sme(lme(e),8,-1)},ume=kl("toStringTag"),cme=it.Object,fme=Ol(function(){return arguments}())=="Arguments",W6=P6?Ol: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=cme(e),ume))=="string"?n:fme?Ol(t):(r=Ol(t))=="Object"&&pr(t.callee)?"Arguments":r},dme=P6?{}.toString:function(){return"[object "+W6(this)+"]"};P6||mg(Object.prototype,"toString",dme,{unsafe:!0});var pme,CM,SM={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},q6=N6("span").classList,xM=q6&&q6.constructor&&q6.constructor.prototype,hme=xM===Object.prototype?void 0:xM,DM=At(At.bind),G6=it.Object,gme=At("".split),K6=Xn(function(){return!G6("z").propertyIsEnumerable(0)})?function(e){return Ol(e)=="String"?gme(e,""):G6(e)}:G6,vme=Math.ceil,mme=Math.floor,Y6=function(e){var t=+e;return t!=t||t===0?0:(t>0?mme:vme)(t)},yme=Math.min,AM=function(e){return e>0?yme(Y6(e),9007199254740991):0},X6=function(e){return AM(e.length)},_M=Array.isArray||function(e){return Ol(e)=="Array"},kM=function(){},bme=[],OM=pg("Reflect","construct"),J6=/^\s*(?:class|function)\b/,wme=At(J6.exec),$me=!J6.exec(kM),yg=function(e){if(!pr(e))return!1;try{return OM(kM,bme,e),!0}catch{return!1}},BM=!OM||Xn(function(){var e;return yg(yg.call)||!yg(Object)||!yg(function(){e=!0})||e})?function(e){if(!pr(e))return!1;switch(W6(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return $me||!!wme(J6,j6(e))}:yg,Eme=kl("species"),TM=it.Array,Cme=function(e,t){return new(function(n){var r;return _M(n)&&(r=n.constructor,(BM(r)&&(r===TM||_M(r.prototype))||Xi(r)&&(r=r[Eme])===null)&&(r=void 0)),r===void 0?TM:r}(e))(t===0?0:t)},FM=At([].push),Bl=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,o=e==6,a=e==7,l=e==5||o;return function(u,f,d,p){for(var g,h,E=O6(u),w=K6(E),y=function(A,B){return hM(A),B===void 0?A:DM?DM(A,B):function(){return A.apply(B,arguments)}}(f,d),$=X6(w),m=0,S=p||Cme,D=t?S(u,$):n||a?S(u,0):void 0;$>m;m++)if((l||m in w)&&(h=y(g=w[m],m,E),e))if(t)D[m]=h;else if(h)switch(e){case 3:return!0;case 5:return g;case 6:return m;case 2:FM(D,g)}else switch(e){case 4:return!1;case 7:FM(D,g)}return o?-1:r||i?i:D}},Sme={forEach:Bl(0),map:Bl(1),filter:Bl(2),some:Bl(3),every:Bl(4),find:Bl(5),findIndex:Bl(6),filterReject:Bl(7)}.forEach,Z6=!!(CM=[].forEach)&&Xn(function(){CM.call(null,pme||function(){throw 1},1)})?[].forEach:function(e){return Sme(this,e,arguments.length>1?arguments[1]:void 0)},PM=function(e){if(e&&e.forEach!==Z6)try{Ef(e,"forEach",Z6)}catch{e.forEach=Z6}};for(var Q6 in SM)SM[Q6]&&PM(it[Q6]&&it[Q6].prototype);PM(hme);var IM={}.propertyIsEnumerable,NM=Object.getOwnPropertyDescriptor,LM={f:NM&&!IM.call({1:2},1)?function(e){var t=NM(this,e);return!!t&&t.enumerable}:IM},Sy=function(e){return K6($f(e))},RM=Object.getOwnPropertyDescriptor,MM={f:Bo?RM:function(e,t){if(e=Sy(e),t=R6(t),fM)try{return RM(e,t)}catch{}if(xi(e,t))return M6(!Vn(LM.f,e,t),e[t])}},xme=Math.max,Dme=Math.min,ex=function(e,t){var n=Y6(e);return n<0?xme(n+t,0):Dme(n,t)},jM=function(e){return function(t,n,r){var i,o=Sy(t),a=X6(o),l=ex(r,a);if(e&&n!=n){for(;a>l;)if((i=o[l++])!=i)return!0}else for(;a>l;l++)if((e||l in o)&&o[l]===n)return e||l||0;return!e&&-1}},Ame={includes:jM(!0),indexOf:jM(!1)}.indexOf,zM=At([].push),VM=function(e,t){var n,r=Sy(e),i=0,o=[];for(n in r)!xi(z6,n)&&xi(r,n)&&zM(o,n);for(;t.length>i;)xi(r,n=t[i++])&&(~Ame(o,n)||zM(o,n));return o},xy=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],_me=xy.concat("length","prototype"),kme={f:Object.getOwnPropertyNames||function(e){return VM(e,_me)}},UM={f:Object.getOwnPropertySymbols},Ome=At([].concat),Bme=pg("Reflect","ownKeys")||function(e){var t=kme.f(Ji(e)),n=UM.f;return n?Ome(t,n(e)):t},Tme=function(e,t){for(var n=Bme(t),r=$y.f,i=MM.f,o=0;o<n.length;o++){var a=n[o];xi(e,a)||r(e,a,i(t,a))}},Fme=/#|\.prototype\./,bg=function(e,t){var n=Ime[Pme(e)];return n==Lme||n!=Nme&&(pr(t)?Xn(t):!!t)},Pme=bg.normalize=function(e){return String(e).replace(Fme,".").toLowerCase()},Ime=bg.data={},Nme=bg.NATIVE="N",Lme=bg.POLYFILL="P",Rme=bg,Mme=MM.f,Dy=function(e,t){var n,r,i,o,a,l=e.target,u=e.global,f=e.stat;if(n=u?it:f?it[l]||D6(l,{}):(it[l]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=Mme(n,r))&&a.value:n[r],!Rme(u?r:l+(f?".":"#")+r,e.forced)&&i!==void 0){if(typeof o==typeof i)continue;Tme(o,i)}(e.sham||i&&i.sham)&&Ef(o,"sham",!0),mg(n,r,o,e)}},Ay=Object.keys||function(e){return VM(e,xy)},Sf=Object.assign,HM=Object.defineProperty,jme=At([].concat),WM=!Sf||Xn(function(){if(Bo&&Sf({b:1},Sf(HM({},"a",{enumerable:!0,get:function(){HM(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}),Sf({},e)[n]!=7||Ay(Sf({},t)).join("")!=r})?function(e,t){for(var n=O6(e),r=arguments.length,i=1,o=UM.f,a=LM.f;r>i;)for(var l,u=K6(arguments[i++]),f=o?jme(Ay(u),o(u)):Ay(u),d=f.length,p=0;d>p;)l=f[p++],Bo&&!Vn(a,u,l)||(n[l]=u[l]);return n}:Sf;Dy({target:"Object",stat:!0,forced:Object.assign!==WM},{assign:WM});var qM=x6(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 y($){return $ instanceof l?new l($.type,y($.content),$.alias):Array.isArray($)?$.map(y):$.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(y){return Object.prototype.toString.call(y).slice(8,-1)},objId:function(y){return y.__id||Object.defineProperty(y,"__id",{value:++i}),y.__id},clone:function y($,m){var S,D;switch(m=m||{},a.util.type($)){case"Object":if(D=a.util.objId($),m[D])return m[D];for(var A in S={},m[D]=S,$)$.hasOwnProperty(A)&&(S[A]=y($[A],m));return S;case"Array":return D=a.util.objId($),m[D]?m[D]:(S=[],m[D]=S,$.forEach(function(B,P){S[P]=y(B,m)}),S);default:return $}},getLanguage:function(y){for(;y&&!r.test(y.className);)y=y.parentElement;return y?(y.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(S){var y=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(S.stack)||[])[1];if(y){var $=document.getElementsByTagName("script");for(var m in $)if($[m].src==y)return $[m]}return null}},isActive:function(y,$,m){for(var S="no-"+$;y;){var D=y.classList;if(D.contains($))return!0;if(D.contains(S))return!1;y=y.parentElement}return!!m}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(y,$){var m=a.util.clone(a.languages[y]);for(var S in $)m[S]=$[S];return m},insertBefore:function(y,$,m,S){var D=(S=S||a.languages)[y],A={};for(var B in D)if(D.hasOwnProperty(B)){if(B==$)for(var P in m)m.hasOwnProperty(P)&&(A[P]=m[P]);m.hasOwnProperty(B)||(A[B]=D[B])}var U=S[y];return S[y]=A,a.languages.DFS(a.languages,function(Y,ce){ce===U&&Y!=y&&(this[Y]=A)}),A},DFS:function y($,m,S,D){D=D||{};var A=a.util.objId;for(var B in $)if($.hasOwnProperty(B)){m.call($,B,$[B],S||B);var P=$[B],U=a.util.type(P);U!=="Object"||D[A(P)]?U!=="Array"||D[A(P)]||(D[A(P)]=!0,y(P,m,B,D)):(D[A(P)]=!0,y(P,m,null,D))}}},plugins:{},highlightAll:function(y,$){a.highlightAllUnder(document,y,$)},highlightAllUnder:function(y,$,m){var S={callback:m,container:y,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};a.hooks.run("before-highlightall",S),S.elements=Array.prototype.slice.apply(S.container.querySelectorAll(S.selector)),a.hooks.run("before-all-elements-highlight",S);for(var D,A=0;D=S.elements[A++];)a.highlightElement(D,$===!0,S.callback)},highlightElement:function(y,$,m){var S=a.util.getLanguage(y),D=a.languages[S];y.className=y.className.replace(r,"").replace(/\s+/g," ")+" language-"+S;var A=y.parentElement;A&&A.nodeName.toLowerCase()==="pre"&&(A.className=A.className.replace(r,"").replace(/\s+/g," ")+" language-"+S);var B={element:y,language:S,grammar:D,code:y.textContent};function P(Y){B.highlightedCode=Y,a.hooks.run("before-insert",B),B.element.innerHTML=B.highlightedCode,a.hooks.run("after-highlight",B),a.hooks.run("complete",B),m&&m.call(B.element)}if(a.hooks.run("before-sanity-check",B),(A=B.element.parentElement)&&A.nodeName.toLowerCase()==="pre"&&!A.hasAttribute("tabindex")&&A.setAttribute("tabindex","0"),!B.code)return a.hooks.run("complete",B),void(m&&m.call(B.element));if(a.hooks.run("before-highlight",B),B.grammar)if($&&n.Worker){var U=new Worker(a.filename);U.onmessage=function(Y){P(Y.data)},U.postMessage(JSON.stringify({language:B.language,code:B.code,immediateClose:!0}))}else P(a.highlight(B.code,B.grammar,B.language));else P(a.util.encode(B.code))},highlight:function(y,$,m){var S={code:y,grammar:$,language:m};return a.hooks.run("before-tokenize",S),S.tokens=a.tokenize(S.code,S.grammar),a.hooks.run("after-tokenize",S),l.stringify(a.util.encode(S.tokens),S.language)},tokenize:function(y,$){var m=$.rest;if(m){for(var S in m)$[S]=m[S];delete $.rest}var D=new d;return p(D,D.head,y),f(y,D,$,D.head,0),function(A){for(var B=[],P=A.head.next;P!==A.tail;)B.push(P.value),P=P.next;return B}(D)},hooks:{all:{},add:function(y,$){var m=a.hooks.all;m[y]=m[y]||[],m[y].push($)},run:function(y,$){var m=a.hooks.all[y];if(m&&m.length)for(var S,D=0;S=m[D++];)S($)}},Token:l};function l(y,$,m,S){this.type=y,this.content=$,this.alias=m,this.length=0|(S||"").length}function u(y,$,m,S){y.lastIndex=$;var D=y.exec(m);if(D&&S&&D[1]){var A=D[1].length;D.index+=A,D[0]=D[0].slice(A)}return D}function f(y,$,m,S,D,A){for(var B in m)if(m.hasOwnProperty(B)&&m[B]){var P=m[B];P=Array.isArray(P)?P:[P];for(var U=0;U<P.length;++U){if(A&&A.cause==B+","+U)return;var Y=P[U],ce=Y.inside,ee=!!Y.lookbehind,ge=!!Y.greedy,se=Y.alias;if(ge&&!Y.pattern.global){var xe=Y.pattern.toString().match(/[imsuy]*$/)[0];Y.pattern=RegExp(Y.pattern.source,xe+"g")}for(var ve=Y.pattern||Y,Oe=S.next,Te=D;Oe!==$.tail&&!(A&&Te>=A.reach);Te+=Oe.value.length,Oe=Oe.next){var Ne=Oe.value;if($.length>y.length)return;if(!(Ne instanceof l)){var Re,Ae=1;if(ge){if(!(Re=u(ve,Te,y,ee)))break;var ie=Re.index,R=Re.index+Re[0].length,M=Te;for(M+=Oe.value.length;ie>=M;)M+=(Oe=Oe.next).value.length;if(Te=M-=Oe.value.length,Oe.value instanceof l)continue;for(var T=Oe;T!==$.tail&&(M<R||typeof T.value=="string");T=T.next)Ae++,M+=T.value.length;Ae--,Ne=y.slice(Te,M),Re.index-=Te}else if(!(Re=u(ve,0,Ne,ee)))continue;ie=Re.index;var L=Re[0],q=Ne.slice(0,ie),O=Ne.slice(ie+L.length),J=Te+Ne.length;A&&J>A.reach&&(A.reach=J);var ue=Oe.prev;if(q&&(ue=p($,ue,q),Te+=q.length),g($,ue,Ae),Oe=p($,ue,new l(B,ce?a.tokenize(L,ce):L,se,L)),O&&p($,Oe,O),Ae>1){var he={cause:B+","+U,reach:J};f(y,$,m,Oe.prev,Te,he),A&&he.reach>A.reach&&(A.reach=he.reach)}}}}}}function d(){var y={value:null,prev:null,next:null},$={value:null,prev:y,next:null};y.next=$,this.head=y,this.tail=$,this.length=0}function p(y,$,m){var S=$.next,D={value:m,prev:$,next:S};return $.next=D,S.prev=D,y.length++,D}function g(y,$,m){for(var S=$.next,D=0;D<m&&S!==y.tail;D++)S=S.next;$.next=S,S.prev=$,y.length-=D}if(n.Prism=a,l.stringify=function y($,m){if(typeof $=="string")return $;if(Array.isArray($)){var S="";return $.forEach(function(U){S+=y(U,m)}),S}var D={type:$.type,content:y($.content,m),tag:"span",classes:["token",$.type],attributes:{},language:m},A=$.alias;A&&(Array.isArray(A)?Array.prototype.push.apply(D.classes,A):D.classes.push(A)),a.hooks.run("wrap",D);var B="";for(var P in D.attributes)B+=" "+P+'="'+(D.attributes[P]||"").replace(/"/g,"&quot;")+'"';return"<"+D.tag+' class="'+D.classes.join(" ")+'"'+B+">"+D.content+"</"+D.tag+">"},!n.document)return n.addEventListener&&(a.disableWorkerMessageHandler||n.addEventListener("message",function(y){var $=JSON.parse(y.data),m=$.language,S=$.code,D=$.immediateClose;n.postMessage(a.highlight(S,a.languages[m],m)),D&&n.close()},!1)),a;var h=a.util.currentScript();function E(){a.manual||a.highlightAll()}if(h&&(a.filename=h.src,h.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var w=document.readyState;w==="loading"||w==="interactive"&&h&&h.defer?document.addEventListener("DOMContentLoaded",E):window.requestAnimationFrame?window.requestAnimationFrame(E):window.setTimeout(E,16)}return a}(typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{});/**
157
157
  * Prism: Lightweight, robust, elegant syntax highlighting
158
158
  *
159
159
  * @license MIT <https://opensource.org/licenses/MIT>
160
160
  * @author Lea Verou <https://lea.verou.me>
161
161
  * @namespace
162
162
  * @public
163
- */e.exports&&(e.exports=t),yy!==void 0&&(yy.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(/&amp;/,"&"))}),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"])',l=/\blang(?:uage)?-([\w-]+)\b/i;t.hooks.add("before-highlightall",function(d){d.selector+=", "+a}),t.hooks.add("before-sanity-check",function(d){var p=d.element;if(p.matches(a)){d.code="",p.setAttribute(r,i);var g=p.appendChild(document.createElement("CODE"));g.textContent="Loading\u2026";var h=p.getAttribute("data-src"),E=d.language;if(E==="none"){var w=(/\.(\w+)$/.exec(h)||[,"none"])[1];E=n[w]||w}f(g,E),f(p,E);var y=t.plugins.autoloader;y&&y.loadLanguages(E);var $=new XMLHttpRequest;$.open("GET",h,!0),$.onreadystatechange=function(){var m,S;$.readyState==4&&($.status<400&&$.responseText?(p.setAttribute(r,o),g.textContent=$.responseText,t.highlightElement(g)):(p.setAttribute(r,"failed"),$.status>=400?g.textContent=(m=$.status,S=$.statusText,"\u2716 Error "+m+" while fetching file: "+S):g.textContent="\u2716 Error: File does not exist or is empty"))},$.send(null)}}),t.plugins.fileHighlight={highlight:function(d){for(var p,g=(d||document).querySelectorAll(a),h=0;p=g[h++];)t.highlightElement(p)}};var u=!1;t.fileHighlight=function(){u||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),u=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}function f(d,p){var g=d.className;g=g.replace(l," ")+" language-"+p,d.className=g.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(u,f){return u=u.replace(/<S>/g,function(){return n}).replace(/<BRACES>/g,function(){return r}).replace(/<SPREAD>/g,function(){return i}),RegExp(u,f)}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(u){return u?typeof u=="string"?u:typeof u.content=="string"?u.content:u.content.map(a).join(""):""},l=function(u){for(var f=[],d=0;d<u.length;d++){var p=u[d],g=!1;if(typeof p!="string"&&(p.type==="tag"&&p.content[0]&&p.content[0].type==="tag"?p.content[0].content[0].content==="</"?f.length>0&&f[f.length-1].tagName===a(p.content[0].content[1])&&f.pop():p.content[p.content.length-1].content==="/>"||f.push({tagName:a(p.content[0].content[1]),openedBraces:0}):f.length>0&&p.type==="punctuation"&&p.content==="{"?f[f.length-1].openedBraces++:f.length>0&&f[f.length-1].openedBraces>0&&p.type==="punctuation"&&p.content==="}"?f[f.length-1].openedBraces--:g=!0),(g||typeof p=="string")&&f.length>0&&f[f.length-1].openedBraces===0){var h=a(p);d<u.length-1&&(typeof u[d+1]=="string"||u[d+1].type==="plain-text")&&(h+=a(u[d+1]),u.splice(d+1,1)),d>0&&(typeof u[d-1]=="string"||u[d-1].type==="plain-text")&&(h=a(u[d-1])+h,u.splice(d-1,1),d--),u[d]=new e.Token("plain-text",h,null,h)}p.content&&typeof p.content!="string"&&l(p.content)}};e.hooks.add("after-tokenize",function(u){u.language!=="jsx"&&u.language!=="tsx"||l(u.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(/&amp;/,"&"))}),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},l=[{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:l,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:l,"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(u){/<\?/.test(u.code)&&e.languages["markup-templating"].buildPlaceholders(u,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)}),e.hooks.add("after-tokenize",function(u){e.languages["markup-templating"].tokenizePlaceholders(u,"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:/![sra](?=[:}]$)/,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(M,R){return M.replace(/<<(\d+)>>/g,function(T,L){return"(?:"+R[+L]+")"})}function n(M,R,T){return RegExp(t(M,R),T||"")}function r(M,R){for(var T=0;T<R;T++)M=M.replace(/<<self>>/g,function(){return"(?:"+M+")"});return M.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*{)",l="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 u(M){return"\\b(?:"+M.trim().replace(/ /g,"|")+")\\b"}var f=u(o),d=RegExp(u(i+" "+o+" "+a+" "+l)),p=u(o+" "+a+" "+l),g=u(i+" "+o+" "+l),h=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),E=r(/\((?:[^()]|<<self>>)*\)/.source,2),w=/@?\b[A-Za-z_]\w*\b/.source,y=t(/<<0>>(?:\s*<<1>>)?/.source,[w,h]),$=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[p,y]),m=/\[\s*(?:,\s*)*\]/.source,S=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[$,m]),D=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[h,E,m]),A=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[D]),B=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[A,$,m]),P={keyword:d,punctuation:/[<>()?,.:[\]]/},U=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,Y=/"(?:\\.|[^\\"\r\n])*"/.source,ce=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[ce]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[Y]),lookbehind:!0,greedy:!0},{pattern:RegExp(U),greedy:!0,alias:"character"}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[$]),lookbehind:!0,inside:P},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[w,B]),lookbehind:!0,inside:P},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[w]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[f,y]),lookbehind:!0,inside:P},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[$]),lookbehind:!0,inside:P},{pattern:n(/(\bwhere\s+)<<0>>/.source,[w]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[S]),lookbehind:!0,inside:P},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[B,g,w]),inside:P}],keyword:d,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,[w]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[w]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[E]),lookbehind:!0,alias:"class-name",inside:P},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[B,$]),inside:P,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[B]),lookbehind:!0,inside:P,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[w,h]),inside:{function:n(/^<<0>>/.source,[w]),generic:{pattern:RegExp(h),alias:"class-name",inside:P}}},"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,[f,y,w,B,d.source,E,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[y,E]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:d,"class-name":{pattern:RegExp(B),greedy:!0,inside:P},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 ee=Y+"|"+U,ge=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[ee]),se=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[ge]),2),xe=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,ve=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[$,se]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[xe,ve]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[xe]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[se]),inside:e.languages.csharp},"class-name":{pattern:RegExp($),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var Oe=/:[^}\r\n]+/.source,Te=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[ge]),2),Ne=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[Te,Oe]),Re=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[ee]),2),Ae=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[Re,Oe]);function ae(M,R){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[M]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[R,Oe]),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,[Ne]),lookbehind:!0,greedy:!0,inside:ae(Ne,Te)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[Ae]),lookbehind:!0,greedy:!0,inside:ae(Ae,Re)}]})}(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(f){return f=f.replace(/<inner>/g,function(){return t}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+f+")")}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(f){["url","bold","italic","strike","code-snippet"].forEach(function(d){f!==d&&(e.languages.markdown[f].inside.content.inside[d]=e.languages.markdown[d])})}),e.hooks.add("after-tokenize",function(f){f.language!=="markdown"&&f.language!=="md"||function d(p){if(p&&typeof p!="string")for(var g=0,h=p.length;g<h;g++){var E=p[g];if(E.type==="code"){var w=E.content[1],y=E.content[3];if(w&&y&&w.type==="code-language"&&y.type==="code-block"&&typeof w.content=="string"){var $=w.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),m="language-"+($=(/[a-z][\w-]*/i.exec($)||[""])[0].toLowerCase());y.alias?typeof y.alias=="string"?y.alias=[y.alias,m]:y.alias.push(m):y.alias=[m]}}else d(E.content)}}(f.tokens)}),e.hooks.add("wrap",function(f){if(f.type==="code-block"){for(var d="",p=0,g=f.classes.length;p<g;p++){var h=f.classes[p],E=/language-(.+)/.exec(h);if(E){d=E[1];break}}var w=e.languages[d];if(w)f.content=e.highlight(function($){var m=$.replace(a,"");return m=m.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(S,D){var A;if((D=D.toLowerCase())[0]==="#")return A=D[1]==="x"?parseInt(D.slice(2),16):Number(D.slice(1)),u(A);var B=l[D];return B||S})}(f.content),w,d);else if(d&&d!=="none"&&e.plugins.autoloader){var y="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random());f.attributes.id=y,e.plugins.autoloader.loadLanguages(d,function(){var $=document.getElementById(y);$&&($.innerHTML=e.highlight($.textContent,e.languages[d],d))})}}});var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),l={amp:"&",lt:"<",gt:">",quot:'"'},u=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},Prism.languages.groovy=Prism.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:as|def|in|abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),Prism.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),Prism.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:setup|given|when|then|and|cleanup|expect|where):/}),Prism.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),Prism.hooks.add("wrap",function(e){if(e.language==="groovy"&&e.type==="string"){var t=e.content[0];if(t!="'"){var n=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;t==="$"&&(n=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),e.content=e.content.replace(/&lt;/g,"<").replace(/&amp;/g,"&"),e.content=Prism.highlight(e.content,{expression:{pattern:n,lookbehind:!0,inside:Prism.languages.groovy}}),e.classes.push(t==="/"?"regex":"gstring")}}});var zme=["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 GM(e){return typeof e=="string"?e.length:typeof e.content=="string"?e.content.length:e.content.reduce(function(t,n){return t+GM(n)},0)}var _y,Vme=it.String,oa=function(e){if(W6(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Vme(e)},KM=function(){var e=Ji(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},tx=it.RegExp,nx=Xn(function(){var e=tx("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),Ume=nx||Xn(function(){return!tx("a","y").sticky}),YM={BROKEN_CARET:nx||Xn(function(){var e=tx("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:Ume,UNSUPPORTED_Y:nx},Hme=Bo?Object.defineProperties:function(e,t){Ji(e);for(var n,r=Sy(t),i=Ay(t),o=i.length,a=0;o>a;)$y.f(e,n=i[a++],r[n]);return e},Wme=pg("document","documentElement"),XM=bM("IE_PROTO"),rx=function(){},JM=function(e){return"<script>"+e+"<\/script>"},ZM=function(e){e.write(JM("")),e.close();var t=e.parentWindow.Object;return e=null,t},ky=function(){try{_y=new ActiveXObject("htmlfile")}catch{}var e,t;ky=typeof document<"u"?document.domain&&_y?ZM(_y):((t=N6("iframe")).style.display="none",Wme.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(JM("document.F=Object")),e.close(),e.F):ZM(_y);for(var n=xy.length;n--;)delete ky.prototype[xy[n]];return ky()};z6[XM]=!0;var QM,ix,qme=Object.create||function(e,t){var n;return e!==null?(rx.prototype=Ji(e),n=new rx,rx.prototype=null,n[XM]=e):n=ky(),t===void 0?n:Hme(n,t)},Gme=it.RegExp,Kme=Xn(function(){var e=Gme(".","s");return!(e.dotAll&&e.exec(`
163
+ */e.exports&&(e.exports=t),yy!==void 0&&(yy.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(/&amp;/,"&"))}),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"])',l=/\blang(?:uage)?-([\w-]+)\b/i;t.hooks.add("before-highlightall",function(d){d.selector+=", "+a}),t.hooks.add("before-sanity-check",function(d){var p=d.element;if(p.matches(a)){d.code="",p.setAttribute(r,i);var g=p.appendChild(document.createElement("CODE"));g.textContent="Loading\u2026";var h=p.getAttribute("data-src"),E=d.language;if(E==="none"){var w=(/\.(\w+)$/.exec(h)||[,"none"])[1];E=n[w]||w}f(g,E),f(p,E);var y=t.plugins.autoloader;y&&y.loadLanguages(E);var $=new XMLHttpRequest;$.open("GET",h,!0),$.onreadystatechange=function(){var m,S;$.readyState==4&&($.status<400&&$.responseText?(p.setAttribute(r,o),g.textContent=$.responseText,t.highlightElement(g)):(p.setAttribute(r,"failed"),$.status>=400?g.textContent=(m=$.status,S=$.statusText,"\u2716 Error "+m+" while fetching file: "+S):g.textContent="\u2716 Error: File does not exist or is empty"))},$.send(null)}}),t.plugins.fileHighlight={highlight:function(d){for(var p,g=(d||document).querySelectorAll(a),h=0;p=g[h++];)t.highlightElement(p)}};var u=!1;t.fileHighlight=function(){u||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),u=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}function f(d,p){var g=d.className;g=g.replace(l," ")+" language-"+p,d.className=g.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(u,f){return u=u.replace(/<S>/g,function(){return n}).replace(/<BRACES>/g,function(){return r}).replace(/<SPREAD>/g,function(){return i}),RegExp(u,f)}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(u){return u?typeof u=="string"?u:typeof u.content=="string"?u.content:u.content.map(a).join(""):""},l=function(u){for(var f=[],d=0;d<u.length;d++){var p=u[d],g=!1;if(typeof p!="string"&&(p.type==="tag"&&p.content[0]&&p.content[0].type==="tag"?p.content[0].content[0].content==="</"?f.length>0&&f[f.length-1].tagName===a(p.content[0].content[1])&&f.pop():p.content[p.content.length-1].content==="/>"||f.push({tagName:a(p.content[0].content[1]),openedBraces:0}):f.length>0&&p.type==="punctuation"&&p.content==="{"?f[f.length-1].openedBraces++:f.length>0&&f[f.length-1].openedBraces>0&&p.type==="punctuation"&&p.content==="}"?f[f.length-1].openedBraces--:g=!0),(g||typeof p=="string")&&f.length>0&&f[f.length-1].openedBraces===0){var h=a(p);d<u.length-1&&(typeof u[d+1]=="string"||u[d+1].type==="plain-text")&&(h+=a(u[d+1]),u.splice(d+1,1)),d>0&&(typeof u[d-1]=="string"||u[d-1].type==="plain-text")&&(h=a(u[d-1])+h,u.splice(d-1,1),d--),u[d]=new e.Token("plain-text",h,null,h)}p.content&&typeof p.content!="string"&&l(p.content)}};e.hooks.add("after-tokenize",function(u){u.language!=="jsx"&&u.language!=="tsx"||l(u.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(/&amp;/,"&"))}),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},l=[{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:l,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:l,"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(u){/<\?/.test(u.code)&&e.languages["markup-templating"].buildPlaceholders(u,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)}),e.hooks.add("after-tokenize",function(u){e.languages["markup-templating"].tokenizePlaceholders(u,"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:/![sra](?=[:}]$)/,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(R,M){return R.replace(/<<(\d+)>>/g,function(T,L){return"(?:"+M[+L]+")"})}function n(R,M,T){return RegExp(t(R,M),T||"")}function r(R,M){for(var T=0;T<M;T++)R=R.replace(/<<self>>/g,function(){return"(?:"+R+")"});return R.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*{)",l="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 u(R){return"\\b(?:"+R.trim().replace(/ /g,"|")+")\\b"}var f=u(o),d=RegExp(u(i+" "+o+" "+a+" "+l)),p=u(o+" "+a+" "+l),g=u(i+" "+o+" "+l),h=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),E=r(/\((?:[^()]|<<self>>)*\)/.source,2),w=/@?\b[A-Za-z_]\w*\b/.source,y=t(/<<0>>(?:\s*<<1>>)?/.source,[w,h]),$=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[p,y]),m=/\[\s*(?:,\s*)*\]/.source,S=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[$,m]),D=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[h,E,m]),A=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[D]),B=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[A,$,m]),P={keyword:d,punctuation:/[<>()?,.:[\]]/},U=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,Y=/"(?:\\.|[^\\"\r\n])*"/.source,ce=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[ce]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[Y]),lookbehind:!0,greedy:!0},{pattern:RegExp(U),greedy:!0,alias:"character"}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[$]),lookbehind:!0,inside:P},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[w,B]),lookbehind:!0,inside:P},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[w]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[f,y]),lookbehind:!0,inside:P},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[$]),lookbehind:!0,inside:P},{pattern:n(/(\bwhere\s+)<<0>>/.source,[w]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[S]),lookbehind:!0,inside:P},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[B,g,w]),inside:P}],keyword:d,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,[w]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[w]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[E]),lookbehind:!0,alias:"class-name",inside:P},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[B,$]),inside:P,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[B]),lookbehind:!0,inside:P,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[w,h]),inside:{function:n(/^<<0>>/.source,[w]),generic:{pattern:RegExp(h),alias:"class-name",inside:P}}},"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,[f,y,w,B,d.source,E,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[y,E]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:d,"class-name":{pattern:RegExp(B),greedy:!0,inside:P},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 ee=Y+"|"+U,ge=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[ee]),se=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[ge]),2),xe=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,ve=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[$,se]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[xe,ve]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[xe]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[se]),inside:e.languages.csharp},"class-name":{pattern:RegExp($),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var Oe=/:[^}\r\n]+/.source,Te=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[ge]),2),Ne=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[Te,Oe]),Re=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[ee]),2),Ae=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[Re,Oe]);function ie(R,M){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[R]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[M,Oe]),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,[Ne]),lookbehind:!0,greedy:!0,inside:ie(Ne,Te)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[Ae]),lookbehind:!0,greedy:!0,inside:ie(Ae,Re)}]})}(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(f){return f=f.replace(/<inner>/g,function(){return t}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+f+")")}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(f){["url","bold","italic","strike","code-snippet"].forEach(function(d){f!==d&&(e.languages.markdown[f].inside.content.inside[d]=e.languages.markdown[d])})}),e.hooks.add("after-tokenize",function(f){f.language!=="markdown"&&f.language!=="md"||function d(p){if(p&&typeof p!="string")for(var g=0,h=p.length;g<h;g++){var E=p[g];if(E.type==="code"){var w=E.content[1],y=E.content[3];if(w&&y&&w.type==="code-language"&&y.type==="code-block"&&typeof w.content=="string"){var $=w.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),m="language-"+($=(/[a-z][\w-]*/i.exec($)||[""])[0].toLowerCase());y.alias?typeof y.alias=="string"?y.alias=[y.alias,m]:y.alias.push(m):y.alias=[m]}}else d(E.content)}}(f.tokens)}),e.hooks.add("wrap",function(f){if(f.type==="code-block"){for(var d="",p=0,g=f.classes.length;p<g;p++){var h=f.classes[p],E=/language-(.+)/.exec(h);if(E){d=E[1];break}}var w=e.languages[d];if(w)f.content=e.highlight(function($){var m=$.replace(a,"");return m=m.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(S,D){var A;if((D=D.toLowerCase())[0]==="#")return A=D[1]==="x"?parseInt(D.slice(2),16):Number(D.slice(1)),u(A);var B=l[D];return B||S})}(f.content),w,d);else if(d&&d!=="none"&&e.plugins.autoloader){var y="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random());f.attributes.id=y,e.plugins.autoloader.loadLanguages(d,function(){var $=document.getElementById(y);$&&($.innerHTML=e.highlight($.textContent,e.languages[d],d))})}}});var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),l={amp:"&",lt:"<",gt:">",quot:'"'},u=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},Prism.languages.groovy=Prism.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:as|def|in|abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),Prism.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),Prism.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:setup|given|when|then|and|cleanup|expect|where):/}),Prism.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),Prism.hooks.add("wrap",function(e){if(e.language==="groovy"&&e.type==="string"){var t=e.content[0];if(t!="'"){var n=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;t==="$"&&(n=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),e.content=e.content.replace(/&lt;/g,"<").replace(/&amp;/g,"&"),e.content=Prism.highlight(e.content,{expression:{pattern:n,lookbehind:!0,inside:Prism.languages.groovy}}),e.classes.push(t==="/"?"regex":"gstring")}}});var zme=["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 GM(e){return typeof e=="string"?e.length:typeof e.content=="string"?e.content.length:e.content.reduce(function(t,n){return t+GM(n)},0)}var _y,Vme=it.String,oa=function(e){if(W6(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Vme(e)},KM=function(){var e=Ji(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},tx=it.RegExp,nx=Xn(function(){var e=tx("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),Ume=nx||Xn(function(){return!tx("a","y").sticky}),YM={BROKEN_CARET:nx||Xn(function(){var e=tx("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:Ume,UNSUPPORTED_Y:nx},Hme=Bo?Object.defineProperties:function(e,t){Ji(e);for(var n,r=Sy(t),i=Ay(t),o=i.length,a=0;o>a;)$y.f(e,n=i[a++],r[n]);return e},Wme=pg("document","documentElement"),XM=bM("IE_PROTO"),rx=function(){},JM=function(e){return"<script>"+e+"<\/script>"},ZM=function(e){e.write(JM("")),e.close();var t=e.parentWindow.Object;return e=null,t},ky=function(){try{_y=new ActiveXObject("htmlfile")}catch{}var e,t;ky=typeof document<"u"?document.domain&&_y?ZM(_y):((t=N6("iframe")).style.display="none",Wme.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(JM("document.F=Object")),e.close(),e.F):ZM(_y);for(var n=xy.length;n--;)delete ky.prototype[xy[n]];return ky()};z6[XM]=!0;var QM,ix,qme=Object.create||function(e,t){var n;return e!==null?(rx.prototype=Ji(e),n=new rx,rx.prototype=null,n[XM]=e):n=ky(),t===void 0?n:Hme(n,t)},Gme=it.RegExp,Kme=Xn(function(){var e=Gme(".","s");return!(e.dotAll&&e.exec(`
164
164
  `)&&e.flags==="s")}),Yme=it.RegExp,Xme=Xn(function(){var e=Yme("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Jme=U6.get,Zme=A6("native-string-replace",String.prototype.replace),Oy=RegExp.prototype.exec,ox=Oy,Qme=At("".charAt),eye=At("".indexOf),tye=At("".replace),ax=At("".slice),lx=(ix=/b*/g,Vn(Oy,QM=/a/,"a"),Vn(Oy,ix,"a"),QM.lastIndex!==0||ix.lastIndex!==0),ej=YM.BROKEN_CARET,sx=/()??/.exec("")[1]!==void 0;(lx||sx||ej||Kme||Xme)&&(ox=function(e){var t,n,r,i,o,a,l,u=this,f=Jme(u),d=oa(e),p=f.raw;if(p)return p.lastIndex=u.lastIndex,t=Vn(ox,p,d),u.lastIndex=p.lastIndex,t;var g=f.groups,h=ej&&u.sticky,E=Vn(KM,u),w=u.source,y=0,$=d;if(h&&(E=tye(E,"y",""),eye(E,"g")===-1&&(E+="g"),$=ax(d,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&Qme(d,u.lastIndex-1)!==`
165
165
  `)&&(w="(?: "+w+")",$=" "+$,y++),n=new RegExp("^(?:"+w+")",E)),sx&&(n=new RegExp("^"+w+"$(?!\\s)",E)),lx&&(r=u.lastIndex),i=Vn(Oy,h?n:u,$),h?i?(i.input=ax(i.input,y),i[0]=ax(i[0],y),i.index=u.lastIndex,u.lastIndex+=i[0].length):u.lastIndex=0:lx&&i&&(u.lastIndex=u.global?i.index+i[0].length:r),sx&&i&&i.length>1&&Vn(Zme,i[0],n,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(i[o]=void 0)}),i&&g)for(i.groups=a=qme(null),o=0;o<g.length;o++)a[(l=g[o])[0]]=i[l[1]];return i});var wg=ox;Dy({target:"RegExp",proto:!0,forced:/./.exec!==wg},{exec:wg});var ux=Function.prototype,tj=ux.apply,nye=ux.bind,nj=ux.call,rye=typeof Reflect=="object"&&Reflect.apply||(nye?nj.bind(tj):function(){return nj.apply(tj,arguments)}),iye=kl("species"),cx=RegExp.prototype,oye=kl("match"),aye=it.TypeError,lye=kl("species"),sye=function(e,t){var n,r=Ji(e).constructor;return r===void 0||(n=Ji(r)[lye])==null?t:function(i){if(BM(i))return i;throw aye(pM(i)+" is not a constructor")}(n)},uye=At("".charAt),rj=At("".charCodeAt),cye=At("".slice),ij=function(e){return function(t,n){var r,i,o=oa($f(t)),a=Y6(n),l=o.length;return a<0||a>=l?e?"":void 0:(r=rj(o,a))<55296||r>56319||a+1===l||(i=rj(o,a+1))<56320||i>57343?e?uye(o,a):r:e?cye(o,a,a+2):i-56320+(r-55296<<10)+65536}},fye={codeAt:ij(!1),charAt:ij(!0)}.charAt,dye=function(e,t,n){return t+(n?fye(e,t).length:1)},pye=it.Array,hye=Math.max,oj=function(e,t,n){for(var r,i,o,a,l=X6(e),u=ex(t,l),f=ex(n===void 0?l:n,l),d=pye(hye(f-u,0)),p=0;u<f;u++,p++)r=d,i=p,o=e[u],a=void 0,(a=R6(i))in r?$y.f(r,a,M6(0,o)):r[a]=o;return d.length=p,d},gye=it.TypeError,aj=function(e,t){var n=e.exec;if(pr(n)){var r=Vn(n,e,t);return r!==null&&Ji(r),r}if(Ol(e)==="RegExp")return Vn(wg,e,t);throw gye("RegExp#exec called on incompatible receiver")},xf=YM.UNSUPPORTED_Y,vye=Math.min,lj=[].push,mye=At(/./.exec),Df=At(lj),$g=At("".slice);(function(e,t,n,r){var i=kl(e),o=!Xn(function(){var f={};return f[i]=function(){return 7},""[e](f)!=7}),a=o&&!Xn(function(){var f=!1,d=/a/;return e==="split"&&((d={}).constructor={},d.constructor[iye]=function(){return d},d.flags="",d[i]=/./[i]),d.exec=function(){return f=!0,null},d[i](""),!f});if(!o||!a||n){var l=At(/./[i]),u=t(i,""[e],function(f,d,p,g,h){var E=At(f),w=d.exec;return w===wg||w===cx.exec?o&&!h?{done:!0,value:l(d,p,g)}:{done:!0,value:E(p,d,g)}:{done:!1}});mg(String.prototype,e,u[0]),mg(cx,i,u[1])}r&&Ef(cx[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,l,u=oa($f(this)),f=o===void 0?4294967295:o>>>0;if(f===0)return[];if(i===void 0)return[u];if(!Xi(a=i)||!((l=a[oye])!==void 0?l:Ol(a)=="RegExp"))return Vn(t,u,i,f);for(var d,p,g,h=[],E=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(i.sticky?"y":""),w=0,y=new RegExp(i.source,E+"g");(d=Vn(wg,y,u))&&!((p=y.lastIndex)>w&&(Df(h,$g(u,w,d.index)),d.length>1&&d.index<u.length&&rye(lj,h,oj(d,1)),g=d[0].length,w=p,h.length>=f));)y.lastIndex===d.index&&y.lastIndex++;return w===u.length?!g&&mye(y,"")||Df(h,""):Df(h,$g(u,w)),h.length>f?oj(h,0,f):h}:"0".split(void 0,0).length?function(i,o){return i===void 0&&o===0?[]:Vn(t,this,i,o)}:t,[function(i,o){var a=$f(this),l=i==null?void 0:gM(i,e);return l?Vn(l,i,a,o):Vn(r,oa(a),i,o)},function(i,o){var a=Ji(this),l=oa(i),u=n(r,a,l,o,r!==t);if(u.done)return u.value;var f=sye(a,RegExp),d=a.unicode,p=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(xf?"g":"y"),g=new f(xf?"^(?:"+a.source+")":a,p),h=o===void 0?4294967295:o>>>0;if(h===0)return[];if(l.length===0)return aj(g,l)===null?[l]:[];for(var E=0,w=0,y=[];w<l.length;){g.lastIndex=xf?0:w;var $,m=aj(g,xf?$g(l,w):l);if(m===null||($=vye(AM(g.lastIndex+(xf?w:0)),l.length))===E)w=dye(l,w,d);else{if(Df(y,$g(l,E,w)),y.length===h)return y;for(var S=1;S<=m.length-1;S++)if(Df(y,m[S]),y.length===h)return y;w=E=$}}return Df(y,$g(l,E)),y}]},!!Xn(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"}),xf),Dy({global:!0},{globalThis:it}),ai&&(V.fn.attr=ai);var yye=EM.PROPER,fx=RegExp.prototype,sj=fx.toString,bye=At(KM),wye=Xn(function(){return sj.call({source:"a",flags:"b"})!="/a/b"}),$ye=yye&&sj.name!="toString";(wye||$ye)&&mg(RegExp.prototype,"toString",function(){var e=Ji(this),t=oa(e.source),n=e.flags;return"/"+t+"/"+oa(n===void 0&&dM(fx,e)&&!("flags"in fx)?bye(e):n)},{unsafe:!0});var Eye=function(){function e(){this.title=we("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 l=a.text,u=a.value;n.push({text:l,value:u})});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||!ke.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()};Z.setNodes(t,r,{match:function(i){return j.checkNodeType(i,"code")}})}},e.prototype.getSelectCodeElem=function(t){var n=j.getSelectedNodeByType(t,"code");if(n==null)return null;var r=j.getParentNode(t,n);return ke.isElement(r)?r.type!=="pre"?null:n:null},e}(),Cye={renderStyle:function(e,t){var n=e,r=t,i="";return zme.forEach(function(o){n[o]&&(i=o)}),i&&function(o,a){o.data==null&&(o.data={});var l=o.data;l.props==null&&(l.props={}),Object.assign(l.props,{className:a})}(r,i="token "+i),r},parseStyleHtml:function(e,t,n){var r=V(e);if(!ke.isElement(t)||j.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 Eye},config:{codeLangs:[{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Lua",value:"lua"},{text:"Groovy",value:"groovy"},{text:"Markdown",value:"markdown"}]}}],elemsToHtml:[{type:"code",elemToHtml:function(e,t){var n=e.language,r=n===void 0?"":n;return"<code "+(r?'class="language-'+r+'"':"")+">"+t+"</code>"}}]},Sye=/"/g,xye=At("".replace);Dy({target:"String",proto:!0,forced:function(e){return Xn(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})}("anchor")},{anchor:function(e){return t="a",n="name",r=e,i=oa($f(this)),o="<"+t,n!==""&&(o+=" "+n+'="'+xye(oa(r),Sye,"&quot;")+'"'),o+">"+i+"</"+t+">";var t,n,r,i,o}});var uj=function(e){var t,n,r,i=function($,m){var S=typeof Symbol=="function"&&$[Symbol.iterator];if(!S)return $;var D,A,B=S.call($),P=[];try{for(;(m===void 0||m-- >0)&&!(D=B.next()).done;)P.push(D.value)}catch(U){A={error:U}}finally{try{D&&!D.done&&(S=B.return)&&S.call(B)}finally{if(A)throw A.error}}return P}(e,2),o=i[0],a=i[1],l=[],u=function($){if(!Se.isText($))return null;var m=j.getParentNode(null,$);if(m&&j.getNodeType(m)==="code"){var S=j.getParentNode(null,m);if(S&&j.getNodeType(S)==="pre")return m}return null}(o);if(u==null)return l;var f=u.language,d=f===void 0?"":f;if(!d)return l;var p=function($,m){if(!m)return[];var S=qM.languages[m];return S?qM.tokenize($.text,S):[]}(o,d),g=0;try{for(var h=function($){var m=typeof Symbol=="function"&&Symbol.iterator,S=m&&$[m],D=0;if(S)return S.call($);if($&&typeof $.length=="number")return{next:function(){return $&&D>=$.length&&($=void 0),{value:$&&$[D++],done:!$}}};throw new TypeError(m?"Object is not iterable.":"Symbol.iterator is not defined.")}(p),E=h.next();!E.done;E=h.next()){var w=E.value,y=g+GM(w);typeof w!="string"&&l.push(((r={})[w.type]=!0,r.anchor={path:a,offset:g},r.focus={path:a,offset:y},r)),g=y}}catch($){t={error:$}}finally{try{E&&!E.done&&(n=h.return)&&n.call(h)}finally{if(t)throw t.error}}return l};/*! *****************************************************************************
166
166
  Copyright (c) Microsoft Corporation.
@@ -177,16 +177,16 @@ Textarea height < 300px . This may be cause modal and hoverbar position error`,$
177
177
  PERFORMANCE OF THIS SOFTWARE.
178
178
  ***************************************************************************** */var fn=function(){return fn=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},fn.apply(this,arguments)},Pn=function(){function e(){throw new Error(`\u4E0D\u80FD\u5B9E\u4F8B\u5316
179
179
  Can not construct a instance`)}return e.setEditorConfig=function(t){t===void 0&&(t={}),this.editorConfig=fn(fn({},this.editorConfig),t)},e.setSimpleEditorConfig=function(t){t===void 0&&(t={}),this.simpleEditorConfig=fn(fn({},this.simpleEditorConfig),t)},e.setToolbarConfig=function(t){t===void 0&&(t={}),this.toolbarConfig=fn(fn({},this.toolbarConfig),t)},e.setSimpleToolbarConfig=function(t){t===void 0&&(t={}),this.simpleToolbarConfig=fn(fn({},this.simpleToolbarConfig),t)},e.registerPlugin=function(t){this.plugins.push(t)},e.registerMenu=function(t,n){SZ(t,n)},e.registerRenderElem=function(t){YQ(t)},e.registerRenderStyle=function(t){KQ(t)},e.registerElemToHtml=function(t){FZ(t)},e.registerStyleToHtml=function(t){TZ(t)},e.registerPreParseHtml=function(t){nQ(t)},e.registerParseElemHtml=function(t){iQ(t)},e.registerParseStyleHtml=function(t){rQ(t)},e.registerModule=function(t){du(t)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();function du(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,i=e.elemsToHtml,o=e.styleToHtml,a=e.preParseHtml,l=e.parseElemsHtml,u=e.parseStyleHtml,f=e.editorPlugin;t&&t.forEach(function(d){return Pn.registerMenu(d)}),n&&n.forEach(function(d){return Pn.registerRenderElem(d)}),r&&Pn.registerRenderStyle(r),i&&i.forEach(function(d){return Pn.registerElemToHtml(d)}),o&&Pn.registerStyleToHtml(o),a&&a.forEach(function(d){return Pn.registerPreParseHtml(d)}),l&&l.forEach(function(d){return Pn.registerParseElemHtml(d)}),u&&Pn.registerParseStyleHtml(u),f&&Pn.registerPlugin(f)}yle.forEach(function(e){return du(e)}),du(Zue),du(Ade),du(zge),du(F1e),du(Cye);var Dye='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',Aye='<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>',cj='<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>',_ye='<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>',kye='<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 Oye(){return["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:we("editor.more"),iconSvg:_ye,menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:we("editor.justify"),iconSvg:Aye,menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:we("editor.indent"),iconSvg:Dye,menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:we("editor.image"),iconSvg:cj,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:we("editor.video"),iconSvg:kye,menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"]}function Bye(){return["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:we("editor.image"),iconSvg:cj,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]}var fj={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 Tye(){return fn(fn({},fj),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})}function Fye(){return fj}function Pye(){return{hoverbarKeys:Tye()}}function Iye(){return{hoverbarKeys:Fye()}}function Nye(){return{toolbarKeys:Oye()}}function Lye(){return{toolbarKeys:Bye()}}var Rye=Pye();Pn.setEditorConfig(fn(fn({},Rye),{decorate:uj}));var Mye=Iye();Pn.setSimpleEditorConfig(fn(fn({},Mye),{decorate:uj}));var jye=Nye();Pn.setToolbarConfig(jye);var zye=Lye();Pn.setSimpleToolbarConfig(zye);function dj(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,l=a===void 0?{}:a,u=e.mode,f=u===void 0?"default":u,d=f==="simple"?Pn.simpleEditorConfig:Pn.editorConfig,p=fn(fn({},d.hoverbarKeys||{}),l.hoverbarKeys||{}),g=mee({selector:n,config:fn(fn(fn({},d),l),{hoverbarKeys:p}),content:i,html:o,plugins:Pn.plugins});return g}function pj(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 l=a==="simple"?Pn.simpleToolbarConfig:Pn.toolbarConfig,u=Eee(n,{selector:t,config:fn(fn({},l),i)});return u}var Vye={};const Uye=Object.freeze(Object.defineProperty({__proto__:null,Boot:Pn,DomEditor:j,SlateEditor:k,SlateElement:ke,SlateLocation:kU,SlateNode:be,SlatePath:G,SlatePoint:Ye,SlateRange:re,SlateText:Se,SlateTransforms:Z,Toolbar:oO,createEditor:dj,createToolbar:pj,createUploader:q4,default:Vye,genModalButtonElems:xs,genModalInputElems:_r,genModalTextareaElems:fee,i18nAddResources:wr,i18nChangeLanguage:Vee,i18nGetResources:Uee,t:we},Symbol.toStringTag,{value:"Module"}));var Hye=Object.defineProperty,Wye=Object.defineProperties,qye=Object.getOwnPropertyDescriptors,hj=Object.getOwnPropertySymbols,Gye=Object.prototype.hasOwnProperty,Kye=Object.prototype.propertyIsEnumerable,gj=(e,t,n)=>t in e?Hye(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Yye=(e,t)=>{for(var n in t||(t={}))Gye.call(t,n)&&gj(e,n,t[n]);if(hj)for(var n of hj(t))Kye.call(t,n)&&gj(e,n,t[n]);return e},Xye=(e,t)=>Wye(e,qye(t));function Tl(e){let t=`\u8BF7\u4F7F\u7528 '@${e}' \u4E8B\u4EF6\uFF0C\u4E0D\u8981\u653E\u5728 props \u4E2D`;return t+=`
180
- Please use '@${e}' event instead of props`,t}var vj=(e,t)=>{for(const[n,r]of t)e[n]=r;return e};const Jye=b.defineComponent({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=b.ref(null),r=b.shallowRef(null),i=b.ref(""),o=()=>{if(!n.value)return;const l=b.toRaw(e.defaultContent);dj({selector:n.value,mode:e.mode,content:l||[],html:e.defaultHtml||e.modelValue||"",config:Xye(Yye({},e.defaultConfig),{onCreated(u){if(r.value=u,t.emit("onCreated",u),e.defaultConfig.onCreated){const f=Tl("onCreated");throw new Error(f)}},onChange(u){const f=u.getHtml();if(i.value=f,t.emit("update:modelValue",f),t.emit("onChange",u),e.defaultConfig.onChange){const d=Tl("onChange");throw new Error(d)}},onDestroyed(u){if(t.emit("onDestroyed",u),e.defaultConfig.onDestroyed){const f=Tl("onDestroyed");throw new Error(f)}},onMaxLength(u){if(t.emit("onMaxLength",u),e.defaultConfig.onMaxLength){const f=Tl("onMaxLength");throw new Error(f)}},onFocus(u){if(t.emit("onFocus",u),e.defaultConfig.onFocus){const f=Tl("onFocus");throw new Error(f)}},onBlur(u){if(t.emit("onBlur",u),e.defaultConfig.onBlur){const f=Tl("onBlur");throw new Error(f)}},customAlert(u,f){if(t.emit("customAlert",u,f),e.defaultConfig.customAlert){const d=Tl("customAlert");throw new Error(d)}},customPaste:(u,f)=>{if(e.defaultConfig.customPaste){const p=Tl("customPaste");throw new Error(p)}let d;return t.emit("customPaste",u,f,p=>{d=p}),d}})})};function a(l){const u=r.value;u!=null&&u.setHtml(l)}return b.onMounted(()=>{o()}),b.watch(()=>e.modelValue,l=>{l!==i.value&&a(l)}),{box:n}}}),Zye={ref:"box",style:{height:"100%"}};function Qye(e,t,n,r,i,o){return b.openBlock(),b.createElementBlock("div",Zye,null,512)}var ebe=vj(Jye,[["render",Qye]]);const tbe=b.defineComponent({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(e){const t=b.ref(null),n=r=>{if(!!t.value){if(r==null)throw new Error("Not found instance of Editor when create <Toolbar/> component");j.getToolbar(r)||pj({editor:r,selector:t.value||"<div></div>",mode:e.mode,config:e.defaultConfig})}};return b.watchEffect(()=>{const{editor:r}=e;r!=null&&n(r)}),{selector:t}}}),nbe={ref:"selector"};function rbe(e,t,n,r,i,o){return b.openBlock(),b.createElementBlock("div",nbe,null,512)}var ibe=vj(tbe,[["render",rbe]]);const hSe="",obe=b.defineComponent({name:"JwtEditor",components:{Editor:ebe,Toolbar:ibe},props:{modelValue:{type:String,default:""},uploadUrl:{type:String,default:""}},emits:["update:modelValue"],setup(e,{emit:t}){const n=b.shallowRef(),r=b.ref("<p>hello</p>"),i=b.computed(()=>e.modelValue||""),o=[{type:"paragraph",children:[{text:"\u4E00\u884C\u6587\u5B57"}]}],a=b.reactive({defaultContent:o,initOnce:!1}),l={insertKeys:{index:22,keys:["uploadAttachment"]}},u={placeholder:"\u8BF7\u8F93\u5165\u5185\u5BB9...",MENU_CONF:{},hoverbarKeys:{attachment:{menuKeys:["downloadAttachment"]}}};u.MENU_CONF.uploadImage={server:e.uploadUrl,maxFileSize:20*1024*1024,headers:{Accept:"text/x-json",Authorization:window.localStorage.getItem("admin-token")},timeout:60*1e3},u.MENU_CONF.uploadVideo={server:e.uploadUrl,headers:{Accept:"text/x-json",Authorization:window.localStorage.getItem("admin-token")}},u.MENU_CONF.uploadAttachment={server:e.uploadUrl,headers:{Accept:"text/x-json",Authorization:window.localStorage.getItem("admin-token")}};const f=m=>{n.value=m},d=m=>{t("update:modelValue",$(m))},p=m=>{console.log("destroyed",m)},g=m=>{console.log("focus",m)},h=m=>{t("update:modelValue",$(m))},E=(m,S)=>{alert(`\u3010\u81EA\u5B9A\u4E49\u63D0\u793A\u3011${S} - ${m}`)},w=(m,S,D)=>{console.log("ClipboardEvent \u7C98\u8D34\u4E8B\u4EF6\u5BF9\u8C61",S),m.insertText("xxx"),S.preventDefault(),D(!1)},y=()=>{const m=n.value;m!=null&&(m.select([]),m.deleteFragment(),Z.setNodes(m,{type:"paragraph"},{mode:"highest"}),m.dangerouslyInsertHtml(i.value),a.initOnce=!0)},$=m=>{let S=m.getHtml();const D=S.match(/<span data-w-e-type="attachment"(?:[^<])*<\/span>/g);return D==null||D.map(A=>{var U;var B=(U=A.match(/http(?:[^"])*/g))==null?void 0:U[0],P=A.match(/>(?:[^<])*/)[0].slice(1);S=S.replace(`>${P}<`,`><a href="${B}" download="${P}">${P}</a><`)}),S};return b.watch(()=>e.modelValue,m=>{b.nextTick(()=>{a.initOnce||m&&m!=="<p><br></p>"&&y()})}),b.onMounted(()=>{}),b.onBeforeUnmount(()=>{const m=n.value;m!=null&&m.destroy()}),{...b.toRefs(a),editorRef:n,valueHtml:r,mode:"default",defaultHtml:i,toolbarConfig:l,editorConfig:u,handleCreated:f,handleChange:d,handleDestroyed:p,handleFocus:g,handleBlur:h,customAlert:E,customPaste:w,updateContent:y}}}),abe={class:"base-wang-editor-wrapper",style:{border:"1px solid #ccc"}};function lbe(e,t,n,r,i,o){const a=b.resolveComponent("Toolbar"),l=b.resolveComponent("Editor");return b.openBlock(),b.createElementBlock("div",abe,[b.createVNode(a,{"default-config":e.toolbarConfig,editor:e.editorRef,mode:e.mode,style:{"border-bottom":"1px solid #ccc"}},null,8,["default-config","editor","mode"]),b.createVNode(l,{"default-config":e.editorConfig,"default-html":e.defaultHtml,mode:e.mode,style:{height:"500px","overflow-y":"hidden"},onCustomAlert:e.customAlert,onOnBlur:e.handleBlur,onOnChange:e.handleChange,onOnCreated:e.handleCreated,onOnDestroyed:e.handleDestroyed,onOnFocus:e.handleFocus},null,8,["default-config","default-html","mode","onCustomAlert","onOnBlur","onOnChange","onOnCreated","onOnDestroyed","onOnFocus"])])}const sbe=Object.freeze(Object.defineProperty({__proto__:null,default:yr(obe,[["render",lbe],["__scopeId","data-v-edbbaeba"]])},Symbol.toStringTag,{value:"Module"}));function ube(e=[]){const t=[];for(const n of e)if(t.indexOf(n)===-1){t.push(n);for(let r=0;r<t.length;r++)if(t[r].length>n.length&&t[r].includes(n)){t.pop();break}else if(t[r].length<n.length&&n.includes(t[r])){t.splice(r,1);break}}return t}const Wt={isObject(e){return{}.toString.call(e)==="[object Object]"},hasObject(e){return this.isObject(e)&&Object.keys(e).length>0},isFunction(e){return{}.toString.call(e)==="[object Function]"},isArray(e){return{}.toString.call(e)==="[object Array]"},hasArray(e){return this.isArray(e)&&e.length>0},isString(e){return{}.toString.call(e)==="[object String]"},isNumber(e){return{}.toString.call(e)==="[object Number]"},isValid(e){return e!==void 0&&e!==""&&e!==null||e===0||e===!1},sleep(e){return new Promise(t=>setTimeout(t,e))},isData(e){return this.hasArray(e)||this.hasObject(e)||this.isValid(e)},$local(e,t){const n=e||"userInfo";if(this.isValid(t))dx.set(n,t);else return dx.get(n)||!1},$localRemove(e){const t=e||"userInfo";dx.remove(t),cbe.remove(t)},copy(e){return JSON.parse(JSON.stringify(e))},$getName(e,t){let n="";return Wt.hasArray(e)&&(e.map(r=>{n+=r[t]+"\u3001"}),n=n.substring(0,n.length-1)),n},delArrValue(e,t){return e.forEach((n,r)=>{n===t&&e.splice(r,1)}),e},setEmpty(e){if(this.hasObject(e))for(const t in e)(e[t]==null||e[t]===void 0)&&(e[t]="");return e},getBody(e){for(var t in e){const n=e[t];this.isValid(n)||delete e[t]}return e}},dx={set(e,t){let n=t;(Wt.isObject(t)||Wt.isArray(n))&&(n=JSON.stringify(n)),localStorage.setItem(e,n)},get(e){const t=localStorage.getItem(e);return Wt.isValid(t)?JSON.parse(t):!1},output(){console.log(localStorage)},remove(e){Wt.hasArray(e)?e.map(t=>{localStorage.removeItem(t)}):localStorage.removeItem(e)},clear(){localStorage.clear()}},cbe={set(e,t){let n=t;(Wt.isObject(n)||Wt.isArray(n))&&(n=JSON.stringify(n)),sessionStorage.setItem(e,n)},get(e){const t=sessionStorage.getItem(e);return Wt.isValid(t)?JSON.parse(t):!1},output(){console.log(sessionStorage)},remove(e){Wt.hasArray(e)?e.map(t=>{sessionStorage.removeItem(t)}):sessionStorage.removeItem(e)},clear(){sessionStorage.clear()}},vSe="",fbe=b.defineComponent({name:"JwtForm",components:{},props:{modelValue:{require:!0,type:[Object,Function],default:()=>{}},config:{require:!0,type:[Object,Function],default:()=>{}},request:{type:Function,require:!0,default:()=>{}},fillUrl:{type:Function,require:!0,default:()=>{}},uploadImgUrl:{type:String,default:""},uploadRichTextUrl:{type:String,default:""},responseKey:{type:String,default:"relative_path"}},emits:["submit","reset","update:modelValue","addSuccess","editSuccess","get-detail-success","error"],setup(e,{emit:t}){const n=b.reactive({loading:!1,datePickerRange:[]}),r=b.computed(()=>{var w,y;if(e.config){let $=Wt.copy(e.config)||{};return((w=$==null?void 0:$.formList)==null?void 0:w.length)&&Wt.hasArray($==null?void 0:$.formList)&&($.formList=(y=$==null?void 0:$.formList)==null?void 0:y.map(m=>(m.formEvents||(m.formEvents={}),m.type==="submit"&&(m.submit&&!m.submit.attrs&&(m.submit.attrs={}),m.submit&&!m.submit.events&&(m.submit.events={}),m.reset&&!m.reset.attrs&&(m.reset.attrs={}),m.reset&&!m.reset.events&&(m.reset.events={})),m))),$}return{}}),i=b.ref(null),o=b.computed({get:()=>e.modelValue?l(e.modelValue):(r.value.formList.forEach(w=>{w.value!==void 0&&(o[w.key]=w.value)}),o),set:w=>{t("update:modelValue",w)}}),a=b.computed(()=>{const w=[];return r.value.formList.forEach(y=>{w.push(y.key)}),w}),l=(w={})=>(r.value.formList.forEach(y=>{var U,Y,ce;const{key:$,type:m,startKey:S,endKey:D,formAttrs:A}=y,B=(A==null?void 0:A.multiple)||!1,P=(A==null?void 0:A.valueType)||"";w[$]&&m==="inputNumber"?w[$]=+w[$]:B?Wt.isArray(w[$])||(P==="number"?w[$]=w[$]?(Y=(U=w[$])==null?void 0:U.split(","))==null?void 0:Y.map(ee=>+ee):[]:w[$]=w[$]?(ce=w[$])==null?void 0:ce.split(","):[]):m==="datePickerRange"?p([w[S]||"",w[D]||""]):w[$]=w[$]===""||w[$]===void 0?y.value:w[$]}),w),u=async()=>{let w=!0;return await i.value.validate(y=>{w=y}),w},f=async()=>{var y,$,m,S,D,A,B,P;if(!!await u())if((($=(y=r==null?void 0:r.value)==null?void 0:y.api)==null?void 0:$.add)||((S=(m=r==null?void 0:r.value)==null?void 0:m.api)==null?void 0:S.update)){let U={};((D=r.value)==null?void 0:D.formEditParams)&&Wt.hasObject((A=r.value)==null?void 0:A.formEditParams)&&Object.assign(U,((B=r.value)==null?void 0:B.formEditParams)||{}),(P=a==null?void 0:a.value)!=null&&P.length?a.value.forEach(Y=>{Y&&(U[Y]=o.value[Y])}):U=Object.assign({},o.value),r.value.formList.map(Y=>{var ce,ee,ge;if((ce=Y==null?void 0:Y.formAttrs)!=null&&ce.multiple)if((ge=(ee=Y==null?void 0:Y.formAttrs)==null?void 0:ee.props)!=null&&ge.checkStrictly){const se=[];U[Y.key].map(ve=>{se.push(ve[ve.length-1])});const xe=ube(se);U[Y.key]=Wt.isArray(xe)?xe.join(","):""}else U[Y.key]=Wt.isArray(U[Y.key])?U[Y.key].join(","):U[Y.key]}),n.loading=!0,o.value.id?(U.id=o.value.id,e.request({url:r.value.api.update,method:"post",data:U}).then(Y=>{Y.id&&(n.loading=!1,o.value.id=Y.id),t("editSuccess",Y)}).catch(()=>{n.loading=!1,t("error")})):e.request({url:r.value.api.add,method:"post",data:U}).then(Y=>{n.loading=!1,t("addSuccess",Y)}).catch(()=>{n.loading=!1,t("error")})}else t("submit",e.modelValue)},d=(w,y)=>{const{startKey:$,endKey:m}=y,S=y.formAttrs.format||"YYYY-MM-DD HH:mm:ss";y.formAttrs.type&&y.formAttrs.type.includes("range")&&(o.value[$]=w?Xl.default(w[0]).format(S):"",o.value[m]=w?Xl.default(w[1]).format(S):"")},p=w=>{const{startVal:y,endVal:$}=w;n.datePickerRange=[y,$]},g=()=>{i.value.resetFields(),t("reset",e.modelValue)},h=(w,y,$)=>{var m,S,D,A,B;if(w&&w.length)if(((m=$.formAttrs)==null?void 0:m.multiple)||((D=(S=$==null?void 0:$.formAttrs)==null?void 0:S.props)==null?void 0:D.multiple)){let P=[];(B=(A=$==null?void 0:$.formAttrs)==null?void 0:A.props)!=null&&B.checkStrictly?P=w:w.map(U=>{P.push(U[U.length-1])}),o.value[y]=P}else o.value[y]=w[w.length-1];else o.value[y]=""},E=()=>{var w,y,$,m,S,D,A,B;((y=(w=r.value)==null?void 0:w.api)==null?void 0:y.detail)&&((m=($=r.value)==null?void 0:$.api)==null?void 0:m.detailParams)&&((B=(S=r.value)==null?void 0:S.api)==null?void 0:B.detailParams[((A=(D=r.value)==null?void 0:D.api)==null?void 0:A.detailParamsKey)||"id"])&&e.request({url:r.value.api.detail,method:"get",params:r.value.api.detailParams}).then(P=>{let U=l(P);o.value=U,t("get-detail-success",P)})};return b.onBeforeMount(()=>{E()}),b.onMounted(()=>{}),{formRef:i,...b.toRefs(n),formConfig:r,appModel:o,appModelParams:a,formSubmit:f,formReset:g,formValidate:u,handleCascaderChange:h,getDetail:E,datePickerChange:d,setDatePickerRange:p,handleFormListData:l}}});function dbe(e,t,n,r,i,o){var R,T,L;const a=b.resolveComponent("el-radio-button"),l=b.resolveComponent("el-radio"),u=b.resolveComponent("el-radio-group"),f=b.resolveComponent("el-checkbox-button"),d=b.resolveComponent("el-checkbox"),p=b.resolveComponent("el-checkbox-group"),g=b.resolveComponent("el-input"),h=b.resolveComponent("el-autocomplete"),E=b.resolveComponent("el-input-number"),w=b.resolveComponent("el-option"),y=b.resolveComponent("el-option-group"),$=b.resolveComponent("el-select"),m=b.resolveComponent("jwt-select-server"),S=b.resolveComponent("el-cascader"),D=b.resolveComponent("el-cascader-panel"),A=b.resolveComponent("el-switch"),B=b.resolveComponent("el-slider"),P=b.resolveComponent("el-time-picker"),U=b.resolveComponent("el-time-select"),Y=b.resolveComponent("el-date-picker"),ce=b.resolveComponent("jwt-upload-image"),ee=b.resolveComponent("jwt-tags"),ge=b.resolveComponent("el-rate"),se=b.resolveComponent("jwt-rate-icon"),xe=b.resolveComponent("el-color-picker"),ve=b.resolveComponent("el-transfer"),Oe=b.resolveComponent("jwt-icon-select"),Te=b.resolveComponent("jwt-editor"),Ne=b.resolveComponent("el-button"),Re=b.resolveComponent("el-form-item"),Ae=b.resolveComponent("el-col"),ae=b.resolveComponent("el-row"),M=b.resolveComponent("el-form");return(T=(R=e.formConfig)==null?void 0:R.formList)!=null&&T.length?(b.openBlock(),b.createBlock(M,b.mergeProps({key:0},(L=e.formConfig)==null?void 0:L.formAttrs,{ref:"formRef",class:"app-form-container",model:e.appModel}),{default:b.withCtx(()=>[b.createVNode(ae,{gutter:10},{default:b.withCtx(()=>{var q;return[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList((q=e.formConfig)==null?void 0:q.formList,(O,J)=>{var ue,he;return b.openBlock(),b.createBlock(Ae,b.mergeProps({key:J,class:[(he=(ue=e.formConfig)==null?void 0:ue.formAttrs)!=null&&he.inline?"el-col-dl":"db"]},O==null?void 0:O.layoutAttrs),{default:b.withCtx(()=>[O.type!=="slot"?(b.openBlock(),b.createBlock(Re,b.mergeProps({key:0},O.labelAttrs,{key:J,prop:O.key}),{default:b.withCtx(()=>[O.type==="radio"?(b.openBlock(),b.createBlock(u,b.mergeProps({key:0,modelValue:e.appModel[O.key],"onUpdate:modelValue":te=>e.appModel[O.key]=te},O.formAttrs,b.toHandlers(O.formEvents)),{default:b.withCtx(()=>[O.isButton?(b.openBlock(!0),b.createElementBlock(b.Fragment,{key:0},b.renderList(O.options,(te,Q)=>(b.openBlock(),b.createBlock(a,b.mergeProps(te.attrs,{key:Q},b.toHandlers(te.events)),{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(te.title),1)]),_:2},1040))),128)):(b.openBlock(!0),b.createElementBlock(b.Fragment,{key:1},b.renderList(O.options,(te,Q)=>(b.openBlock(),b.createBlock(l,b.mergeProps(te.attrs,{key:Q},b.toHandlers(te.events)),{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(te.title),1)]),_:2},1040))),128))]),_:2},1040,["modelValue","onUpdate:modelValue"])):O.type==="checkbox"?(b.openBlock(),b.createBlock(p,{key:1,modelValue:e.appModel[O.key],"onUpdate:modelValue":te=>e.appModel[O.key]=te},{default:b.withCtx(()=>[O.isButton?(b.openBlock(!0),b.createElementBlock(b.Fragment,{key:0},b.renderList(O.options,(te,Q)=>(b.openBlock(),b.createBlock(f,b.mergeProps(te.attrs,{key:Q}),{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(te.title),1)]),_:2},1040))),128)):(b.openBlock(!0),b.createElementBlock(b.Fragment,{key:1},b.renderList(O.options,(te,Q)=>(b.openBlock(),b.createBlock(d,b.mergeProps(te.attrs,{key:Q,label:te.value}),{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(te.title||te.label),1)]),_:2},1040,["label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):O.type==="hidden"?(b.openBlock(),b.createBlock(g,b.mergeProps({key:2,modelValue:e.appModel[O.key],"onUpdate:modelValue":te=>e.appModel[O.key]=te,type:"hidden"},O.formAttrs,b.toHandlers(O.formEvents)),null,16,["modelValue","onUpdate:modelValue"])):O.type==="input"?(b.openBlock(),b.createBlock(g,b.mergeProps({key:3,modelValue:e.appModel[O.key],"onUpdate:modelValue":te=>e.appModel[O.key]=te},O.formAttrs,b.toHandlers(O.formEvents)),b.createSlots({_:2},[O.formSlot&&O.formSlot.prefix?{name:"prefix",fn:b.withCtx(()=>[b.renderSlot(e.$slots,O.formSlot.prefix,{},void 0,!0)]),key:"0"}:void 0,O.formSlot&&O.formSlot.suffix?{name:"suffix",fn:b.withCtx(()=>[b.renderSlot(e.$slots,O.formSlot.suffix,{},void 0,!0)]),key:"1"}:void 0,O.formSlot&&O.formSlot.prepend?{name:"prepend",fn:b.withCtx(()=>[b.renderSlot(e.$slots,O.formSlot.prepend,{},void 0,!0)]),key:"2"}:void 0,O.formSlot&&O.formSlot.append?{name:"append",fn:b.withCtx(()=>[b.renderSlot(e.$slots,O.formSlot.append,{},void 0,!0)]),key:"3"}:void 0]),1040,["modelValue","onUpdate:modelValue"])):O.type==="autocomplete"?(b.openBlock(),b.createBlock(h,b.mergeProps({key:4,modelValue:e.appModel[O.key],"onUpdate:modelValue":te=>e.appModel[O.key]=te},O.formAttrs,b.toHandlers(O.formEvents)),null,16,["modelValue","onUpdate:modelValue"])):O.type==="inputNumber"?(b.openBlock(),b.createBlock(E,b.mergeProps({key:5,modelValue:e.appModel[O.key],"onUpdate:modelValue":te=>e.appModel[O.key]=te,"controls-position":"right"},O.formAttrs,b.toHandlers(O.formEvents)),null,16,["modelValue","onUpdate:modelValue"])):O.type==="select"?(b.openBlock(),b.createBlock($,b.mergeProps({key:6,modelValue:e.appModel[O.key],"onUpdate:modelValue":te=>e.appModel[O.key]=te},O.formAttrs,b.toHandlers(O.formEvents)),b.createSlots({default:b.withCtx(()=>[O.formSlot&&O.formSlot.default?b.renderSlot(e.$slots,O.formSlot.default,{key:0},void 0,!0):(b.openBlock(),b.createElementBlock(b.Fragment,{key:1},[O.isGroup?(b.openBlock(!0),b.createElementBlock(b.Fragment,{key:0},b.renderList(O.options,(te,Q)=>(b.openBlock(),b.createBlock(y,{key:Q,disabled:te.disabled,label:te.label},{default:b.withCtx(()=>[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(te.options,(Ce,oe)=>(b.openBlock(),b.createBlock(w,b.mergeProps(Ce,{key:oe}),null,16))),128))]),_:2},1032,["disabled","label"]))),128)):(b.openBlock(!0),b.createElementBlock(b.Fragment,{key:1},b.renderList(O.options,(te,Q)=>(b.openBlock(),b.createBlock(w,b.mergeProps(te,{key:Q}),null,16))),128))],64))]),_:2},[O.formSlot&&O.formSlot.prefix?{name:"prefix",fn:b.withCtx(()=>[b.renderSlot(e.$slots,O.formSlot.prefix,{},void 0,!0)]),key:"0"}:void 0,O.formSlot&&O.formSlot.empty?{name:"empty",fn:b.withCtx(()=>[b.renderSlot(e.$slots,O.formSlot.empty,{},void 0,!0)]),key:"1"}:void 0]),1040,["modelValue","onUpdate:modelValue"])):O.type==="selectServer"?(b.openBlock(),b.createBlock(m,b.mergeProps({key:7,modelValue:e.appModel[O.key],"onUpdate:modelValue":te=>e.appModel[O.key]=te},O.formAttrs,{request:e.request,"fill-url":e.fillUrl},b.toHandlers(O.formEvents)),null,16,["modelValue","onUpdate:modelValue","request","fill-url"])):O.type==="cascader"?(b.openBlock(),b.createBlock(S,b.mergeProps({key:8,modelValue:e.appModel[O.key],"onUpdate:modelValue":te=>e.appModel[O.key]=te},O.formAttrs,{class:"w"},b.toHandlers(O.formEvents),{onChange:te=>e.handleCascaderChange(te,O.key,O)}),b.createSlots({_:2},[O.formSlot&&O.formSlot.default?{name:"default",fn:b.withCtx(({node:te,data:Q})=>[b.renderSlot(e.$slots,O.formSlot.default,{data:Q,node:te},void 0,!0)]),key:"0"}:void 0,O.formSlot&&O.formSlot.empty?{name:"empty",fn:b.withCtx(()=>[b.renderSlot(e.$slots,O.formSlot.empty,{},void 0,!0)]),key:"1"}:void 0]),1040,["modelValue","onUpdate:modelValue","onChange"])):O.type==="cascaderPanel"?(b.openBlock(),b.createBlock(D,b.mergeProps({key:9,modelValue:e.appModel[O.key],"onUpdate:modelValue":te=>e.appModel[O.key]=te},O.formAttrs,b.toHandlers(O.formEvents)),b.createSlots({_:2},[O.formSlot&&O.formSlot.default?{name:"default",fn:b.withCtx(({node:te,data:Q})=>[b.renderSlot(e.$slots,O.formSlot.default,{data:Q,node:te},void 0,!0)]),key:"0"}:void 0]),1040,["modelValue","onUpdate:modelValue"])):O.type==="switch"?(b.openBlock(),b.createBlock(A,b.mergeProps({key:10,modelValue:e.appModel[O.key],"onUpdate:modelValue":te=>e.appModel[O.key]=te},O.formAttrs,{"active-value":1,"inactive-value":0},b.toHandlers(O.formEvents)),null,16,["modelValue","onUpdate:modelValue"])):O.type==="slider"?(b.openBlock(),b.createBlock(B,b.mergeProps({key:11,modelValue:e.appModel[O.key],"onUpdate:modelValue":te=>e.appModel[O.key]=te},O.formAttrs,b.toHandlers(O.formEvents)),null,16,["modelValue","onUpdate:modelValue"])):O.type==="timePicker"?(b.openBlock(),b.createBlock(P,b.mergeProps({key:12,modelValue:e.appModel[O.key],"onUpdate:modelValue":te=>e.appModel[O.key]=te},O.formAttrs,{"value-format":"HH:mm:ss"},b.toHandlers(O.formEvents)),null,16,["modelValue","onUpdate:modelValue"])):O.type==="timeSelect"?(b.openBlock(),b.createBlock(U,b.mergeProps({key:13,modelValue:e.appModel[O.key],"onUpdate:modelValue":te=>e.appModel[O.key]=te},O.formAttrs,b.toHandlers(O.formEvents)),null,16,["modelValue","onUpdate:modelValue"])):O.type==="datePicker"?(b.openBlock(),b.createBlock(Y,b.mergeProps({key:14,modelValue:e.appModel[O.key],"onUpdate:modelValue":te=>e.appModel[O.key]=te},O.formAttrs,b.toHandlers(O.formEvents)),b.createSlots({_:2},[O.formSlot&&O.formSlot.rangeSeparator?{name:"range-separator",fn:b.withCtx(()=>[b.renderSlot(e.$slots,O.formSlot.rangeSeparator,{},void 0,!0)]),key:"0"}:void 0]),1040,["modelValue","onUpdate:modelValue"])):O.type==="datePickerRange"?(b.openBlock(),b.createBlock(Y,b.mergeProps({key:15,modelValue:e.datePickerRange,"onUpdate:modelValue":t[0]||(t[0]=te=>e.datePickerRange=te)},O.formAttrs,b.toHandlers(O.formEvents),{onChange:te=>e.datePickerChange(te,O)}),b.createSlots({_:2},[O.formSlot&&O.formSlot.rangeSeparator?{name:"range-separator",fn:b.withCtx(()=>[b.renderSlot(e.$slots,O.formSlot.rangeSeparator,{},void 0,!0)]),key:"0"}:void 0]),1040,["modelValue","onChange"])):O.type==="uploadImg"?(b.openBlock(),b.createBlock(ce,b.mergeProps({key:16,modelValue:e.appModel[O.key],"onUpdate:modelValue":te=>e.appModel[O.key]=te},O.formAttrs,{"fill-url":e.fillUrl,"response-key":e.responseKey,"upload-url":e.uploadImgUrl},b.toHandlers(O.formEvents)),null,16,["modelValue","onUpdate:modelValue","fill-url","response-key","upload-url"])):O.type==="tag"?(b.openBlock(),b.createBlock(ee,b.mergeProps({key:17,modelValue:e.appModel[O.key],"onUpdate:modelValue":te=>e.appModel[O.key]=te},O.formAttrs,b.toHandlers(O.formEvents)),null,16,["modelValue","onUpdate:modelValue"])):O.type==="rate"?(b.openBlock(),b.createBlock(ge,b.mergeProps({key:18,modelValue:e.appModel[O.key],"onUpdate:modelValue":te=>e.appModel[O.key]=te},O.formAttrs,b.toHandlers(O.formEvents)),null,16,["modelValue","onUpdate:modelValue"])):O.type==="baseRate"?(b.openBlock(),b.createBlock(se,b.mergeProps({key:19,modelValue:e.appModel[O.key],"onUpdate:modelValue":te=>e.appModel[O.key]=te},O.formAttrs,b.toHandlers(O.formEvents)),null,16,["modelValue","onUpdate:modelValue"])):O.type==="colorPicker"?(b.openBlock(),b.createBlock(xe,b.mergeProps({key:20,modelValue:e.appModel[O.key],"onUpdate:modelValue":te=>e.appModel[O.key]=te},O.formAttrs,b.toHandlers(O.formEvents)),null,16,["modelValue","onUpdate:modelValue"])):O.type==="transfer"?(b.openBlock(),b.createBlock(ve,b.mergeProps({key:21,modelValue:e.appModel[O.key],"onUpdate:modelValue":te=>e.appModel[O.key]=te},O.formAttrs,b.toHandlers(O.formEvents)),b.createSlots({_:2},[O.formSlot&&O.formSlot.default?{name:"default",fn:b.withCtx(({option:te})=>[b.renderSlot(e.$slots,O.formSlot.default,{option:te},void 0,!0)]),key:"0"}:void 0]),1040,["modelValue","onUpdate:modelValue"])):O.type==="icon"?(b.openBlock(),b.createBlock(Oe,b.mergeProps({key:22,modelValue:e.appModel[O.key],"onUpdate:modelValue":te=>e.appModel[O.key]=te},O.formAttrs,b.toHandlers(O.formEvents)),null,16,["modelValue","onUpdate:modelValue"])):O.type==="richText"?(b.openBlock(),b.createBlock(Te,b.mergeProps({key:23,modelValue:e.appModel[O.key],"onUpdate:modelValue":te=>e.appModel[O.key]=te},O.formAttrs,{"upload-url":e.uploadRichTextUrl},b.toHandlers(O.formEvents)),null,16,["modelValue","onUpdate:modelValue","upload-url"])):O.type==="submit"?(b.openBlock(),b.createElementBlock(b.Fragment,{key:24},[O.submit?(b.openBlock(),b.createBlock(Ne,b.mergeProps({key:0},O.submit.attrs,{loading:e.loading},b.toHandlers(O.submit.events),{onClick:e.formSubmit}),{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(O.submit.title),1)]),_:2},1040,["loading","onClick"])):b.createCommentVNode("",!0),O.reset?(b.openBlock(),b.createBlock(Ne,b.mergeProps({key:1},O.reset.attrs,{loading:e.loading},b.toHandlers(O.reset.events),{onClick:e.formReset}),{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(O.reset.title),1)]),_:2},1040,["loading","onClick"])):b.createCommentVNode("",!0)],64)):b.createCommentVNode("",!0)]),_:2},1040,["prop"])):b.createCommentVNode("",!0),O.type==="slot"?b.renderSlot(e.$slots,O.name,{key:1,model:e.appModel},void 0,!0):b.createCommentVNode("",!0)]),_:2},1040,["class"])}),128))]}),_:3})]),_:3},16,["model"])):b.createCommentVNode("",!0)}const pbe=Object.freeze(Object.defineProperty({__proto__:null,default:yr(fbe,[["render",dbe],["__scopeId","data-v-1c32390b"]])},Symbol.toStringTag,{value:"Module"})),hbe=b.defineComponent({name:"JwtHeaderButton",props:{loading:{type:Boolean,default:!1},currentPath:{type:String,default:"/"},menusObj:{type:Object,default:()=>{}},selectionRow:{type:Array,default:()=>[]},actionList:{type:Array,default:()=>[]}},emits:["header-action"],setup(e,{emit:t}){return{headerButtonActions:b.computed(()=>{const i=((e==null?void 0:e.menusObj)||{})[e==null?void 0:e.currentPath];return i&&i.operations.length?i.operations.filter(o=>{let a=o.show_header;if(e.actionList&&e.actionList.length){const{code:l}=o;a=a&&e.actionList.includes(l)}return a}):[]}),handleHeaderAction:i=>{t("header-action",i)}}}}),gbe={key:0,class:"table-header-actions"};function vbe(e,t,n,r,i,o){const a=b.resolveComponent("jwt-icon"),l=b.resolveComponent("el-button");return e.headerButtonActions.length?(b.openBlock(),b.createElementBlock("div",gbe,[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(e.headerButtonActions,(u,f)=>(b.openBlock(),b.createBlock(l,{key:f,disabled:(u.code.includes("delete")||u.code.includes("batch"))&&!e.selectionRow.length,loading:e.loading,type:u.code.includes("delete")?"danger":"primary",onClick:d=>e.handleHeaderAction(u)},{default:b.withCtx(()=>[u.icon&&!e.loading?(b.openBlock(),b.createBlock(a,{key:0,icon:u.icon},null,8,["icon"])):b.createCommentVNode("",!0),b.createTextVNode(" "+b.toDisplayString(u.show_title||u.title),1)]),_:2},1032,["disabled","loading","type","onClick"]))),128))])):b.createCommentVNode("",!0)}const mbe=Object.freeze(Object.defineProperty({__proto__:null,default:yr(hbe,[["render",vbe]])},Symbol.toStringTag,{value:"Module"})),ybe=b.defineComponent({name:"JwtIcon",props:{icon:{type:String,default:"settings-3-line"},size:{type:[String,Number],default:16}},setup(e){return{iconName:b.computed(()=>`ri-${e.icon}`)}}});function bbe(e,t,n,r,i,o){return b.openBlock(),b.createElementBlock("i",{class:b.normalizeClass(e.iconName),style:b.normalizeStyle({"font-size":e.size+"px"})},null,6)}const wbe=Object.freeze(Object.defineProperty({__proto__:null,default:yr(ybe,[["render",bbe]])},Symbol.toStringTag,{value:"Module"})),By=["24-hours-fill","24-hours-line","4k-fill","4k-line","a-b","account-box-fill","account-box-line","account-circle-fill","account-circle-line","account-pin-box-fill","account-pin-box-line","account-pin-circle-fill","account-pin-circle-line","add-box-fill","add-box-line","add-circle-fill","add-circle-line","add-fill","add-line","admin-fill","admin-line","airplay-fill","airplay-line","alarm-fill","alarm-line","alarm-warning-fill","alarm-warning-line","album-fill","album-line","alert-fill","alert-line","aliens-fill","aliens-line","align-bottom","align-center","align-justify","align-left","align-right","align-top","align-vertically","alipay-fill","alipay-line","amazon-fill","amazon-line","anchor-fill","anchor-line","ancient-gate-fill","ancient-gate-line","ancient-pavilion-fill","ancient-pavilion-line","android-fill","android-line","angularjs-fill","angularjs-line","anticlockwise-2-fill","anticlockwise-2-line","anticlockwise-fill","anticlockwise-line","app-store-fill","app-store-line","apple-fill","apple-line","apps-2-fill","apps-2-line","apps-fill","apps-line","archive-drawer-fill","archive-drawer-line","archive-fill","archive-line","arrow-down-circle-fill","arrow-down-circle-line","arrow-down-fill","arrow-down-line","arrow-down-s-fill","arrow-down-s-line","arrow-drop-down-fill","arrow-drop-down-line","arrow-drop-left-fill","arrow-drop-left-line","arrow-drop-right-fill","arrow-drop-right-line","arrow-drop-up-fill","arrow-drop-up-line","arrow-go-back-fill","arrow-go-back-line","arrow-go-forward-fill","arrow-go-forward-line","arrow-left-circle-fill","arrow-left-circle-line","arrow-left-down-fill","arrow-left-down-line","arrow-left-fill","arrow-left-line","arrow-left-right-fill","arrow-left-right-line","arrow-left-s-fill","arrow-left-s-line","arrow-left-up-fill","arrow-left-up-line","arrow-right-circle-fill","arrow-right-circle-line","arrow-right-down-fill","arrow-right-down-line","arrow-right-fill","arrow-right-line","arrow-right-s-fill","arrow-right-s-line","arrow-right-up-fill","arrow-right-up-line","arrow-up-circle-fill","arrow-up-circle-line","arrow-up-down-fill","arrow-up-down-line","arrow-up-fill","arrow-up-line","arrow-up-s-fill","arrow-up-s-line","artboard-2-fill","artboard-2-line","artboard-fill","artboard-line","article-fill","article-line","aspect-ratio-fill","aspect-ratio-line","asterisk","at-fill","at-line","attachment-2","attachment-fill","attachment-line","auction-fill","auction-line","award-fill","award-line","baidu-fill","baidu-line","ball-pen-fill","ball-pen-line","bank-card-2-fill","bank-card-2-line","bank-card-fill","bank-card-line","bank-fill","bank-line","bar-chart-2-fill","bar-chart-2-line","bar-chart-box-fill","bar-chart-box-line","bar-chart-fill","bar-chart-grouped-fill","bar-chart-grouped-line","bar-chart-horizontal-fill","bar-chart-horizontal-line","bar-chart-line","barcode-box-fill","barcode-box-line","barcode-fill","barcode-line","barricade-fill","barricade-line","base-station-fill","base-station-line","basketball-fill","basketball-line","battery-2-charge-fill","battery-2-charge-line","battery-2-fill","battery-2-line","battery-charge-fill","battery-charge-line","battery-fill","battery-line","battery-low-fill","battery-low-line","battery-saver-fill","battery-saver-line","battery-share-fill","battery-share-line","bear-smile-fill","bear-smile-line","behance-fill","behance-line","bell-fill","bell-line","bike-fill","bike-line","bilibili-fill","bilibili-line","bill-fill","bill-line","billiards-fill","billiards-line","bit-coin-fill","bit-coin-line","blaze-fill","blaze-line","bluetooth-connect-fill","bluetooth-connect-line","bluetooth-fill","bluetooth-line","blur-off-fill","blur-off-line","body-scan-fill","body-scan-line","bold","book-2-fill","book-2-line","book-3-fill","book-3-line","book-fill","book-line","book-mark-fill","book-mark-line","book-open-fill","book-open-line","book-read-fill","book-read-line","booklet-fill","booklet-line","bookmark-2-fill","bookmark-2-line","bookmark-3-fill","bookmark-3-line","bookmark-fill","bookmark-line","boxing-fill","boxing-line","braces-fill","braces-line","brackets-fill","brackets-line","briefcase-2-fill","briefcase-2-line","briefcase-3-fill","briefcase-3-line","briefcase-4-fill","briefcase-4-line","briefcase-5-fill","briefcase-5-line","briefcase-fill","briefcase-line","bring-forward","bring-to-front","broadcast-fill","broadcast-line","brush-2-fill","brush-2-line","brush-3-fill","brush-3-line","brush-4-fill","brush-4-line","brush-fill","brush-line","bubble-chart-fill","bubble-chart-line","bug-2-fill","bug-2-line","bug-fill","bug-line","building-2-fill","building-2-line","building-3-fill","building-3-line","building-4-fill","building-4-line","building-fill","building-line","bus-2-fill","bus-2-line","bus-fill","bus-line","bus-wifi-fill","bus-wifi-line","cactus-fill","cactus-line","cake-2-fill","cake-2-line","cake-3-fill","cake-3-line","cake-fill","cake-line","calculator-fill","calculator-line","calendar-2-fill","calendar-2-line","calendar-check-fill","calendar-check-line","calendar-event-fill","calendar-event-line","calendar-fill","calendar-line","calendar-todo-fill","calendar-todo-line","camera-2-fill","camera-2-line","camera-3-fill","camera-3-line","camera-fill","camera-lens-fill","camera-lens-line","camera-line","camera-off-fill","camera-off-line","camera-switch-fill","camera-switch-line","capsule-fill","capsule-line","car-fill","car-line","car-washing-fill","car-washing-line","caravan-fill","caravan-line","cast-fill","cast-line","cellphone-fill","cellphone-line","celsius-fill","celsius-line","centos-fill","centos-line","character-recognition-fill","character-recognition-line","charging-pile-2-fill","charging-pile-2-line","charging-pile-fill","charging-pile-line","chat-1-fill","chat-1-line","chat-2-fill","chat-2-line","chat-3-fill","chat-3-line","chat-4-fill","chat-4-line","chat-check-fill","chat-check-line","chat-delete-fill","chat-delete-line","chat-download-fill","chat-download-line","chat-follow-up-fill","chat-follow-up-line","chat-forward-fill","chat-forward-line","chat-heart-fill","chat-heart-line","chat-history-fill","chat-history-line","chat-new-fill","chat-new-line","chat-off-fill","chat-off-line","chat-poll-fill","chat-poll-line","chat-private-fill","chat-private-line","chat-quote-fill","chat-quote-line","chat-settings-fill","chat-settings-line","chat-smile-2-fill","chat-smile-2-line","chat-smile-3-fill","chat-smile-3-line","chat-smile-fill","chat-smile-line","chat-upload-fill","chat-upload-line","chat-voice-fill","chat-voice-line","check-double-fill","check-double-line","check-fill","check-line","checkbox-blank-circle-fill","checkbox-blank-circle-line","checkbox-blank-fill","checkbox-blank-line","checkbox-circle-fill","checkbox-circle-line","checkbox-fill","checkbox-indeterminate-fill","checkbox-indeterminate-line","checkbox-line","checkbox-multiple-blank-fill","checkbox-multiple-blank-line","checkbox-multiple-fill","checkbox-multiple-line","china-railway-fill","china-railway-line","chrome-fill","chrome-line","clapperboard-fill","clapperboard-line","clipboard-fill","clipboard-line","clockwise-2-fill","clockwise-2-line","clockwise-fill","clockwise-line","close-circle-fill","close-circle-line","close-fill","close-line","closed-captioning-fill","closed-captioning-line","cloud-fill","cloud-line","cloud-off-fill","cloud-off-line","cloud-windy-fill","cloud-windy-line","cloudy-2-fill","cloudy-2-line","cloudy-fill","cloudy-line","code-box-fill","code-box-line","code-fill","code-line","code-s-fill","code-s-line","code-s-slash-fill","code-s-slash-line","code-view","codepen-fill","codepen-line","coin-fill","coin-line","coins-fill","coins-line","collage-fill","collage-line","command-fill","command-line","community-fill","community-line","compass-2-fill","compass-2-line","compass-3-fill","compass-3-line","compass-4-fill","compass-4-line","compass-discover-fill","compass-discover-line","compass-fill","compass-line","compasses-2-fill","compasses-2-line","compasses-fill","compasses-line","computer-fill","computer-line","contacts-book-2-fill","contacts-book-2-line","contacts-book-fill","contacts-book-line","contacts-book-upload-fill","contacts-book-upload-line","contacts-fill","contacts-line","contrast-2-fill","contrast-2-line","contrast-drop-2-fill","contrast-drop-2-line","contrast-drop-fill","contrast-drop-line","contrast-fill","contrast-line","copper-coin-fill","copper-coin-line","copper-diamond-fill","copper-diamond-line","copyleft-fill","copyleft-line","copyright-fill","copyright-line","coreos-fill","coreos-line","coupon-2-fill","coupon-2-line","coupon-3-fill","coupon-3-line","coupon-4-fill","coupon-4-line","coupon-5-fill","coupon-5-line","coupon-fill","coupon-line","cpu-fill","cpu-line","creative-commons-by-fill","creative-commons-by-line","creative-commons-fill","creative-commons-line","creative-commons-nc-fill","creative-commons-nc-line","creative-commons-nd-fill","creative-commons-nd-line","creative-commons-sa-fill","creative-commons-sa-line","creative-commons-zero-fill","creative-commons-zero-line","criminal-fill","criminal-line","crop-2-fill","crop-2-line","crop-fill","crop-line","css3-fill","css3-line","cup-fill","cup-line","currency-fill","currency-line","cursor-fill","cursor-line","customer-service-2-fill","customer-service-2-line","customer-service-fill","customer-service-line","dashboard-2-fill","dashboard-2-line","dashboard-3-fill","dashboard-3-line","dashboard-fill","dashboard-line","database-2-fill","database-2-line","database-fill","database-line","delete-back-2-fill","delete-back-2-line","delete-back-fill","delete-back-line","delete-bin-2-fill","delete-bin-2-line","delete-bin-3-fill","delete-bin-3-line","delete-bin-4-fill","delete-bin-4-line","delete-bin-5-fill","delete-bin-5-line","delete-bin-6-fill","delete-bin-6-line","delete-bin-7-fill","delete-bin-7-line","delete-bin-fill","delete-bin-line","delete-column","delete-row","device-fill","device-line","device-recover-fill","device-recover-line","dingding-fill","dingding-line","direction-fill","direction-line","disc-fill","disc-line","discord-fill","discord-line","discuss-fill","discuss-line","dislike-fill","dislike-line","disqus-fill","disqus-line","divide-fill","divide-line","donut-chart-fill","donut-chart-line","door-closed-fill","door-closed-line","door-fill","door-line","door-lock-box-fill","door-lock-box-line","door-lock-fill","door-lock-line","door-open-fill","door-open-line","dossier-fill","dossier-line","douban-fill","douban-line","double-quotes-l","double-quotes-r","download-2-fill","download-2-line","download-cloud-2-fill","download-cloud-2-line","download-cloud-fill","download-cloud-line","download-fill","download-line","draft-fill","draft-line","drag-drop-fill","drag-drop-line","drag-move-2-fill","drag-move-2-line","drag-move-fill","drag-move-line","dribbble-fill","dribbble-line","drive-fill","drive-line","drizzle-fill","drizzle-line","drop-fill","drop-line","dropbox-fill","dropbox-line","dual-sim-1-fill","dual-sim-1-line","dual-sim-2-fill","dual-sim-2-line","dv-fill","dv-line","dvd-fill","dvd-line","e-bike-2-fill","e-bike-2-line","e-bike-fill","e-bike-line","earth-fill","earth-line","earthquake-fill","earthquake-line","edge-fill","edge-line","edit-2-fill","edit-2-line","edit-box-fill","edit-box-line","edit-circle-fill","edit-circle-line","edit-fill","edit-line","eject-fill","eject-line","emotion-2-fill","emotion-2-line","emotion-fill","emotion-happy-fill","emotion-happy-line","emotion-laugh-fill","emotion-laugh-line","emotion-line","emotion-normal-fill","emotion-normal-line","emotion-sad-fill","emotion-sad-line","emotion-unhappy-fill","emotion-unhappy-line","empathize-fill","empathize-line","emphasis-cn","emphasis","english-input","equalizer-fill","equalizer-line","eraser-fill","eraser-line","error-warning-fill","error-warning-line","evernote-fill","evernote-line","exchange-box-fill","exchange-box-line","exchange-cny-fill","exchange-cny-line","exchange-dollar-fill","exchange-dollar-line","exchange-fill","exchange-funds-fill","exchange-funds-line","exchange-line","external-link-fill","external-link-line","eye-2-fill","eye-2-line","eye-close-fill","eye-close-line","eye-fill","eye-line","eye-off-fill","eye-off-line","facebook-box-fill","facebook-box-line","facebook-circle-fill","facebook-circle-line","facebook-fill","facebook-line","fahrenheit-fill","fahrenheit-line","feedback-fill","feedback-line","file-2-fill","file-2-line","file-3-fill","file-3-line","file-4-fill","file-4-line","file-add-fill","file-add-line","file-chart-2-fill","file-chart-2-line","file-chart-fill","file-chart-line","file-cloud-fill","file-cloud-line","file-code-fill","file-code-line","file-copy-2-fill","file-copy-2-line","file-copy-fill","file-copy-line","file-damage-fill","file-damage-line","file-download-fill","file-download-line","file-edit-fill","file-edit-line","file-excel-2-fill","file-excel-2-line","file-excel-fill","file-excel-line","file-fill","file-forbid-fill","file-forbid-line","file-gif-fill","file-gif-line","file-history-fill","file-history-line","file-hwp-fill","file-hwp-line","file-info-fill","file-info-line","file-line","file-list-2-fill","file-list-2-line","file-list-3-fill","file-list-3-line","file-list-fill","file-list-line","file-lock-fill","file-lock-line","file-mark-fill","file-mark-line","file-music-fill","file-music-line","file-paper-2-fill","file-paper-2-line","file-paper-fill","file-paper-line","file-pdf-fill","file-pdf-line","file-ppt-2-fill","file-ppt-2-line","file-ppt-fill","file-ppt-line","file-reduce-fill","file-reduce-line","file-search-fill","file-search-line","file-settings-fill","file-settings-line","file-shield-2-fill","file-shield-2-line","file-shield-fill","file-shield-line","file-shred-fill","file-shred-line","file-text-fill","file-text-line","file-transfer-fill","file-transfer-line","file-unknow-fill","file-unknow-line","file-upload-fill","file-upload-line","file-user-fill","file-user-line","file-warning-fill","file-warning-line","file-word-2-fill","file-word-2-line","file-word-fill","file-word-line","file-zip-fill","file-zip-line","film-fill","film-line","filter-2-fill","filter-2-line","filter-3-fill","filter-3-line","filter-fill","filter-line","filter-off-fill","filter-off-line","find-replace-fill","find-replace-line","finder-fill","finder-line","fingerprint-2-fill","fingerprint-2-line","fingerprint-fill","fingerprint-line","fire-fill","fire-line","firefox-fill","firefox-line","first-aid-kit-fill","first-aid-kit-line","flag-2-fill","flag-2-line","flag-fill","flag-line","flashlight-fill","flashlight-line","flask-fill","flask-line","flight-land-fill","flight-land-line","flight-takeoff-fill","flight-takeoff-line","flood-fill","flood-line","flow-chart","flutter-fill","flutter-line","focus-2-fill","focus-2-line","focus-3-fill","focus-3-line","focus-fill","focus-line","foggy-fill","foggy-line","folder-2-fill","folder-2-line","folder-3-fill","folder-3-line","folder-4-fill","folder-4-line","folder-5-fill","folder-5-line","folder-add-fill","folder-add-line","folder-chart-2-fill","folder-chart-2-line","folder-chart-fill","folder-chart-line","folder-download-fill","folder-download-line","folder-fill","folder-forbid-fill","folder-forbid-line","folder-history-fill","folder-history-line","folder-info-fill","folder-info-line","folder-keyhole-fill","folder-keyhole-line","folder-line","folder-lock-fill","folder-lock-line","folder-music-fill","folder-music-line","folder-open-fill","folder-open-line","folder-received-fill","folder-received-line","folder-reduce-fill","folder-reduce-line","folder-settings-fill","folder-settings-line","folder-shared-fill","folder-shared-line","folder-shield-2-fill","folder-shield-2-line","folder-shield-fill","folder-shield-line","folder-transfer-fill","folder-transfer-line","folder-unknow-fill","folder-unknow-line","folder-upload-fill","folder-upload-line","folder-user-fill","folder-user-line","folder-warning-fill","folder-warning-line","folder-zip-fill","folder-zip-line","folders-fill","folders-line","font-color","font-size-2","font-size","football-fill","football-line","footprint-fill","footprint-line","forbid-2-fill","forbid-2-line","forbid-fill","forbid-line","format-clear","fridge-fill","fridge-line","fullscreen-exit-fill","fullscreen-exit-line","fullscreen-fill","fullscreen-line","function-fill","function-line","functions","funds-box-fill","funds-box-line","funds-fill","funds-line","gallery-fill","gallery-line","gallery-upload-fill","gallery-upload-line","game-fill","game-line","gamepad-fill","gamepad-line","gas-station-fill","gas-station-line","gatsby-fill","gatsby-line","genderless-fill","genderless-line","ghost-2-fill","ghost-2-line","ghost-fill","ghost-line","ghost-smile-fill","ghost-smile-line","gift-2-fill","gift-2-line","gift-fill","gift-line","git-branch-fill","git-branch-line","git-commit-fill","git-commit-line","git-merge-fill","git-merge-line","git-pull-request-fill","git-pull-request-line","git-repository-commits-fill","git-repository-commits-line","git-repository-fill","git-repository-line","git-repository-private-fill","git-repository-private-line","github-fill","github-line","gitlab-fill","gitlab-line","global-fill","global-line","globe-fill","globe-line","goblet-fill","goblet-line","google-fill","google-line","google-play-fill","google-play-line","government-fill","government-line","gps-fill","gps-line","gradienter-fill","gradienter-line","grid-fill","grid-line","group-2-fill","group-2-line","group-fill","group-line","guide-fill","guide-line","h-1","h-2","h-3","h-4","h-5","h-6","hail-fill","hail-line","hammer-fill","hammer-line","hand-coin-fill","hand-coin-line","hand-heart-fill","hand-heart-line","hand-sanitizer-fill","hand-sanitizer-line","handbag-fill","handbag-line","hard-drive-2-fill","hard-drive-2-line","hard-drive-fill","hard-drive-line","hashtag","haze-2-fill","haze-2-line","haze-fill","haze-line","hd-fill","hd-line","heading","headphone-fill","headphone-line","health-book-fill","health-book-line","heart-2-fill","heart-2-line","heart-3-fill","heart-3-line","heart-add-fill","heart-add-line","heart-fill","heart-line","heart-pulse-fill","heart-pulse-line","hearts-fill","hearts-line","heavy-showers-fill","heavy-showers-line","history-fill","history-line","home-2-fill","home-2-line","home-3-fill","home-3-line","home-4-fill","home-4-line","home-5-fill","home-5-line","home-6-fill","home-6-line","home-7-fill","home-7-line","home-8-fill","home-8-line","home-fill","home-gear-fill","home-gear-line","home-heart-fill","home-heart-line","home-line","home-smile-2-fill","home-smile-2-line","home-smile-fill","home-smile-line","home-wifi-fill","home-wifi-line","honor-of-kings-fill","honor-of-kings-line","honour-fill","honour-line","hospital-fill","hospital-line","hotel-bed-fill","hotel-bed-line","hotel-fill","hotel-line","hotspot-fill","hotspot-line","hq-fill","hq-line","html5-fill","html5-line","ie-fill","ie-line","image-2-fill","image-2-line","image-add-fill","image-add-line","image-edit-fill","image-edit-line","image-fill","image-line","inbox-archive-fill","inbox-archive-line","inbox-fill","inbox-line","inbox-unarchive-fill","inbox-unarchive-line","increase-decrease-fill","increase-decrease-line","indent-decrease","indent-increase","indeterminate-circle-fill","indeterminate-circle-line","information-fill","information-line","infrared-thermometer-fill","infrared-thermometer-line","ink-bottle-fill","ink-bottle-line","input-cursor-move","input-method-fill","input-method-line","insert-column-left","insert-column-right","insert-row-bottom","insert-row-top","instagram-fill","instagram-line","install-fill","install-line","invision-fill","invision-line","italic","kakao-talk-fill","kakao-talk-line","key-2-fill","key-2-line","key-fill","key-line","keyboard-box-fill","keyboard-box-line","keyboard-fill","keyboard-line","keynote-fill","keynote-line","knife-blood-fill","knife-blood-line","knife-fill","knife-line","landscape-fill","landscape-line","layout-2-fill","layout-2-line","layout-3-fill","layout-3-line","layout-4-fill","layout-4-line","layout-5-fill","layout-5-line","layout-6-fill","layout-6-line","layout-bottom-2-fill","layout-bottom-2-line","layout-bottom-fill","layout-bottom-line","layout-column-fill","layout-column-line","layout-fill","layout-grid-fill","layout-grid-line","layout-left-2-fill","layout-left-2-line","layout-left-fill","layout-left-line","layout-line","layout-masonry-fill","layout-masonry-line","layout-right-2-fill","layout-right-2-line","layout-right-fill","layout-right-line","layout-row-fill","layout-row-line","layout-top-2-fill","layout-top-2-line","layout-top-fill","layout-top-line","leaf-fill","leaf-line","lifebuoy-fill","lifebuoy-line","lightbulb-fill","lightbulb-flash-fill","lightbulb-flash-line","lightbulb-line","line-chart-fill","line-chart-line","line-fill","line-height","line-line","link-m","link-unlink-m","link-unlink","link","linkedin-box-fill","linkedin-box-line","linkedin-fill","linkedin-line","links-fill","links-line","list-check-2","list-check","list-ordered","list-settings-fill","list-settings-line","list-unordered","live-fill","live-line","loader-2-fill","loader-2-line","loader-3-fill","loader-3-line","loader-4-fill","loader-4-line","loader-5-fill","loader-5-line","loader-fill","loader-line","lock-2-fill","lock-2-line","lock-fill","lock-line","lock-password-fill","lock-password-line","lock-unlock-fill","lock-unlock-line","login-box-fill","login-box-line","login-circle-fill","login-circle-line","logout-box-fill","logout-box-line","logout-box-r-fill","logout-box-r-line","logout-circle-fill","logout-circle-line","logout-circle-r-fill","logout-circle-r-line","luggage-cart-fill","luggage-cart-line","luggage-deposit-fill","luggage-deposit-line","lungs-fill","lungs-line","mac-fill","mac-line","macbook-fill","macbook-line","magic-fill","magic-line","mail-add-fill","mail-add-line","mail-check-fill","mail-check-line","mail-close-fill","mail-close-line","mail-download-fill","mail-download-line","mail-fill","mail-forbid-fill","mail-forbid-line","mail-line","mail-lock-fill","mail-lock-line","mail-open-fill","mail-open-line","mail-send-fill","mail-send-line","mail-settings-fill","mail-settings-line","mail-star-fill","mail-star-line","mail-unread-fill","mail-unread-line","mail-volume-fill","mail-volume-line","map-2-fill","map-2-line","map-fill","map-line","map-pin-2-fill","map-pin-2-line","map-pin-3-fill","map-pin-3-line","map-pin-4-fill","map-pin-4-line","map-pin-5-fill","map-pin-5-line","map-pin-add-fill","map-pin-add-line","map-pin-fill","map-pin-line","map-pin-range-fill","map-pin-range-line","map-pin-time-fill","map-pin-time-line","map-pin-user-fill","map-pin-user-line","mark-pen-fill","mark-pen-line","markdown-fill","markdown-line","markup-fill","markup-line","mastercard-fill","mastercard-line","mastodon-fill","mastodon-line","medal-2-fill","medal-2-line","medal-fill","medal-line","medicine-bottle-fill","medicine-bottle-line","medium-fill","medium-line","men-fill","men-line","mental-health-fill","mental-health-line","menu-2-fill","menu-2-line","menu-3-fill","menu-3-line","menu-4-fill","menu-4-line","menu-5-fill","menu-5-line","menu-add-fill","menu-add-line","menu-fill","menu-fold-fill","menu-fold-line","menu-line","menu-unfold-fill","menu-unfold-line","merge-cells-horizontal","merge-cells-vertical","message-2-fill","message-2-line","message-3-fill","message-3-line","message-fill","message-line","messenger-fill","messenger-line","meteor-fill","meteor-line","mic-2-fill","mic-2-line","mic-fill","mic-line","mic-off-fill","mic-off-line","mickey-fill","mickey-line","microscope-fill","microscope-line","microsoft-fill","microsoft-line","mind-map","mini-program-fill","mini-program-line","mist-fill","mist-line","money-cny-box-fill","money-cny-box-line","money-cny-circle-fill","money-cny-circle-line","money-dollar-box-fill","money-dollar-box-line","money-dollar-circle-fill","money-dollar-circle-line","money-euro-box-fill","money-euro-box-line","money-euro-circle-fill","money-euro-circle-line","money-pound-box-fill","money-pound-box-line","money-pound-circle-fill","money-pound-circle-line","moon-clear-fill","moon-clear-line","moon-cloudy-fill","moon-cloudy-line","moon-fill","moon-foggy-fill","moon-foggy-line","moon-line","more-2-fill","more-2-line","more-fill","more-line","motorbike-fill","motorbike-line","mouse-fill","mouse-line","movie-2-fill","movie-2-line","movie-fill","movie-line","music-2-fill","music-2-line","music-fill","music-line","mv-fill","mv-line","navigation-fill","navigation-line","netease-cloud-music-fill","netease-cloud-music-line","netflix-fill","netflix-line","newspaper-fill","newspaper-line","node-tree","notification-2-fill","notification-2-line","notification-3-fill","notification-3-line","notification-4-fill","notification-4-line","notification-badge-fill","notification-badge-line","notification-fill","notification-line","notification-off-fill","notification-off-line","npmjs-fill","npmjs-line","number-0","number-1","number-2","number-3","number-4","number-5","number-6","number-7","number-8","number-9","numbers-fill","numbers-line","nurse-fill","nurse-line","oil-fill","oil-line","omega","open-arm-fill","open-arm-line","open-source-fill","open-source-line","opera-fill","opera-line","order-play-fill","order-play-line","organization-chart","outlet-2-fill","outlet-2-line","outlet-fill","outlet-line","page-separator","pages-fill","pages-line","paint-brush-fill","paint-brush-line","paint-fill","paint-line","palette-fill","palette-line","pantone-fill","pantone-line","paragraph","parent-fill","parent-line","parentheses-fill","parentheses-line","parking-box-fill","parking-box-line","parking-fill","parking-line","passport-fill","passport-line","patreon-fill","patreon-line","pause-circle-fill","pause-circle-line","pause-fill","pause-line","pause-mini-fill","pause-mini-line","paypal-fill","paypal-line","pen-nib-fill","pen-nib-line","pencil-fill","pencil-line","pencil-ruler-2-fill","pencil-ruler-2-line","pencil-ruler-fill","pencil-ruler-line","percent-fill","percent-line","phone-camera-fill","phone-camera-line","phone-fill","phone-find-fill","phone-find-line","phone-line","phone-lock-fill","phone-lock-line","picture-in-picture-2-fill","picture-in-picture-2-line","picture-in-picture-exit-fill","picture-in-picture-exit-line","picture-in-picture-fill","picture-in-picture-line","pie-chart-2-fill","pie-chart-2-line","pie-chart-box-fill","pie-chart-box-line","pie-chart-fill","pie-chart-line","pin-distance-fill","pin-distance-line","ping-pong-fill","ping-pong-line","pinterest-fill","pinterest-line","pinyin-input","pixelfed-fill","pixelfed-line","plane-fill","plane-line","plant-fill","plant-line","play-circle-fill","play-circle-line","play-fill","play-line","play-list-2-fill","play-list-2-line","play-list-add-fill","play-list-add-line","play-list-fill","play-list-line","play-mini-fill","play-mini-line","playstation-fill","playstation-line","plug-2-fill","plug-2-line","plug-fill","plug-line","polaroid-2-fill","polaroid-2-line","polaroid-fill","polaroid-line","police-car-fill","police-car-line","price-tag-2-fill","price-tag-2-line","price-tag-3-fill","price-tag-3-line","price-tag-fill","price-tag-line","printer-cloud-fill","printer-cloud-line","printer-fill","printer-line","product-hunt-fill","product-hunt-line","profile-fill","profile-line","projector-2-fill","projector-2-line","projector-fill","projector-line","psychotherapy-fill","psychotherapy-line","pulse-fill","pulse-line","pushpin-2-fill","pushpin-2-line","pushpin-fill","pushpin-line","qq-fill","qq-line","qr-code-fill","qr-code-line","qr-scan-2-fill","qr-scan-2-line","qr-scan-fill","qr-scan-line","question-answer-fill","question-answer-line","question-fill","question-line","question-mark","questionnaire-fill","questionnaire-line","quill-pen-fill","quill-pen-line","radar-fill","radar-line","radio-2-fill","radio-2-line","radio-button-fill","radio-button-line","radio-fill","radio-line","rainbow-fill","rainbow-line","rainy-fill","rainy-line","reactjs-fill","reactjs-line","record-circle-fill","record-circle-line","record-mail-fill","record-mail-line","recycle-fill","recycle-line","red-packet-fill","red-packet-line","reddit-fill","reddit-line","refresh-fill","refresh-line","refund-2-fill","refund-2-line","refund-fill","refund-line","registered-fill","registered-line","remixicon-fill","remixicon-line","remote-control-2-fill","remote-control-2-line","remote-control-fill","remote-control-line","repeat-2-fill","repeat-2-line","repeat-fill","repeat-line","repeat-one-fill","repeat-one-line","reply-all-fill","reply-all-line","reply-fill","reply-line","reserved-fill","reserved-line","rest-time-fill","rest-time-line","restart-fill","restart-line","restaurant-2-fill","restaurant-2-line","restaurant-fill","restaurant-line","rewind-fill","rewind-line","rewind-mini-fill","rewind-mini-line","rhythm-fill","rhythm-line","riding-fill","riding-line","road-map-fill","road-map-line","roadster-fill","roadster-line","robot-fill","robot-line","rocket-2-fill","rocket-2-line","rocket-fill","rocket-line","rotate-lock-fill","rotate-lock-line","rounded-corner","route-fill","route-line","router-fill","router-line","rss-fill","rss-line","ruler-2-fill","ruler-2-line","ruler-fill","ruler-line","run-fill","run-line","safari-fill","safari-line","safe-2-fill","safe-2-line","safe-fill","safe-line","sailboat-fill","sailboat-line","save-2-fill","save-2-line","save-3-fill","save-3-line","save-fill","save-line","scales-2-fill","scales-2-line","scales-3-fill","scales-3-line","scales-fill","scales-line","scan-2-fill","scan-2-line","scan-fill","scan-line","scissors-2-fill","scissors-2-line","scissors-cut-fill","scissors-cut-line","scissors-fill","scissors-line","screenshot-2-fill","screenshot-2-line","screenshot-fill","screenshot-line","sd-card-fill","sd-card-line","sd-card-mini-fill","sd-card-mini-line","search-2-fill","search-2-line","search-eye-fill","search-eye-line","search-fill","search-line","secure-payment-fill","secure-payment-line","seedling-fill","seedling-line","send-backward","send-plane-2-fill","send-plane-2-line","send-plane-fill","send-plane-line","send-to-back","sensor-fill","sensor-line","separator","server-fill","server-line","service-fill","service-line","settings-2-fill","settings-2-line","settings-3-fill","settings-3-line","settings-4-fill","settings-4-line","settings-5-fill","settings-5-line","settings-6-fill","settings-6-line","settings-fill","settings-line","shape-2-fill","shape-2-line","shape-fill","shape-line","share-box-fill","share-box-line","share-circle-fill","share-circle-line","share-fill","share-forward-2-fill","share-forward-2-line","share-forward-box-fill","share-forward-box-line","share-forward-fill","share-forward-line","share-line","shield-check-fill","shield-check-line","shield-cross-fill","shield-cross-line","shield-fill","shield-flash-fill","shield-flash-line","shield-keyhole-fill","shield-keyhole-line","shield-line","shield-star-fill","shield-star-line","shield-user-fill","shield-user-line","ship-2-fill","ship-2-line","ship-fill","ship-line","shirt-fill","shirt-line","shopping-bag-2-fill","shopping-bag-2-line","shopping-bag-3-fill","shopping-bag-3-line","shopping-bag-fill","shopping-bag-line","shopping-basket-2-fill","shopping-basket-2-line","shopping-basket-fill","shopping-basket-line","shopping-cart-2-fill","shopping-cart-2-line","shopping-cart-fill","shopping-cart-line","showers-fill","showers-line","shuffle-fill","shuffle-line","shut-down-fill","shut-down-line","side-bar-fill","side-bar-line","signal-tower-fill","signal-tower-line","signal-wifi-1-fill","signal-wifi-1-line","signal-wifi-2-fill","signal-wifi-2-line","signal-wifi-3-fill","signal-wifi-3-line","signal-wifi-error-fill","signal-wifi-error-line","signal-wifi-fill","signal-wifi-line","signal-wifi-off-fill","signal-wifi-off-line","sim-card-2-fill","sim-card-2-line","sim-card-fill","sim-card-line","single-quotes-l","single-quotes-r","sip-fill","sip-line","skip-back-fill","skip-back-line","skip-back-mini-fill","skip-back-mini-line","skip-forward-fill","skip-forward-line","skip-forward-mini-fill","skip-forward-mini-line","skull-2-fill","skull-2-line","skull-fill","skull-line","skype-fill","skype-line","slack-fill","slack-line","slice-fill","slice-line","slideshow-2-fill","slideshow-2-line","slideshow-3-fill","slideshow-3-line","slideshow-4-fill","slideshow-4-line","slideshow-fill","slideshow-line","smartphone-fill","smartphone-line","snapchat-fill","snapchat-line","snowy-fill","snowy-line","sort-asc","sort-desc","sound-module-fill","sound-module-line","soundcloud-fill","soundcloud-line","space-ship-fill","space-ship-line","space","spam-2-fill","spam-2-line","spam-3-fill","spam-3-line","spam-fill","spam-line","speaker-2-fill","speaker-2-line","speaker-3-fill","speaker-3-line","speaker-fill","speaker-line","spectrum-fill","spectrum-line","speed-fill","speed-line","speed-mini-fill","speed-mini-line","split-cells-horizontal","split-cells-vertical","spotify-fill","spotify-line","spy-fill","spy-line","stack-fill","stack-line","stack-overflow-fill","stack-overflow-line","stackshare-fill","stackshare-line","star-fill","star-half-fill","star-half-line","star-half-s-fill","star-half-s-line","star-line","star-s-fill","star-s-line","star-smile-fill","star-smile-line","steam-fill","steam-line","steering-2-fill","steering-2-line","steering-fill","steering-line","stethoscope-fill","stethoscope-line","sticky-note-2-fill","sticky-note-2-line","sticky-note-fill","sticky-note-line","stock-fill","stock-line","stop-circle-fill","stop-circle-line","stop-fill","stop-line","stop-mini-fill","stop-mini-line","store-2-fill","store-2-line","store-3-fill","store-3-line","store-fill","store-line","strikethrough-2","strikethrough","subscript-2","subscript","subtract-fill","subtract-line","subway-fill","subway-line","subway-wifi-fill","subway-wifi-line","suitcase-2-fill","suitcase-2-line","suitcase-3-fill","suitcase-3-line","suitcase-fill","suitcase-line","sun-cloudy-fill","sun-cloudy-line","sun-fill","sun-foggy-fill","sun-foggy-line","sun-line","superscript-2","superscript","surgical-mask-fill","surgical-mask-line","surround-sound-fill","surround-sound-line","survey-fill","survey-line","swap-box-fill","swap-box-line","swap-fill","swap-line","switch-fill","switch-line","sword-fill","sword-line","syringe-fill","syringe-line","t-box-fill","t-box-line","t-shirt-2-fill","t-shirt-2-line","t-shirt-air-fill","t-shirt-air-line","t-shirt-fill","t-shirt-line","table-2","table-alt-fill","table-alt-line","table-fill","table-line","tablet-fill","tablet-line","takeaway-fill","takeaway-line","taobao-fill","taobao-line","tape-fill","tape-line","task-fill","task-line","taxi-fill","taxi-line","taxi-wifi-fill","taxi-wifi-line","team-fill","team-line","telegram-fill","telegram-line","temp-cold-fill","temp-cold-line","temp-hot-fill","temp-hot-line","terminal-box-fill","terminal-box-line","terminal-fill","terminal-line","terminal-window-fill","terminal-window-line","test-tube-fill","test-tube-line","text-direction-l","text-direction-r","text-spacing","text-wrap","text","thermometer-fill","thermometer-line","thumb-down-fill","thumb-down-line","thumb-up-fill","thumb-up-line","thunderstorms-fill","thunderstorms-line","ticket-2-fill","ticket-2-line","ticket-fill","ticket-line","time-fill","time-line","timer-2-fill","timer-2-line","timer-fill","timer-flash-fill","timer-flash-line","timer-line","todo-fill","todo-line","toggle-fill","toggle-line","tools-fill","tools-line","tornado-fill","tornado-line","trademark-fill","trademark-line","traffic-light-fill","traffic-light-line","train-fill","train-line","train-wifi-fill","train-wifi-line","translate-2","translate","travesti-fill","travesti-line","treasure-map-fill","treasure-map-line","trello-fill","trello-line","trophy-fill","trophy-line","truck-fill","truck-line","tumblr-fill","tumblr-line","tv-2-fill","tv-2-line","tv-fill","tv-line","twitch-fill","twitch-line","twitter-fill","twitter-line","typhoon-fill","typhoon-line","u-disk-fill","u-disk-line","ubuntu-fill","ubuntu-line","umbrella-fill","umbrella-line","underline","uninstall-fill","uninstall-line","unsplash-fill","unsplash-line","upload-2-fill","upload-2-line","upload-cloud-2-fill","upload-cloud-2-line","upload-cloud-fill","upload-cloud-line","upload-fill","upload-line","usb-fill","usb-line","user-2-fill","user-2-line","user-3-fill","user-3-line","user-4-fill","user-4-line","user-5-fill","user-5-line","user-6-fill","user-6-line","user-add-fill","user-add-line","user-fill","user-follow-fill","user-follow-line","user-heart-fill","user-heart-line","user-line","user-location-fill","user-location-line","user-received-2-fill","user-received-2-line","user-received-fill","user-received-line","user-search-fill","user-search-line","user-settings-fill","user-settings-line","user-shared-2-fill","user-shared-2-line","user-shared-fill","user-shared-line","user-smile-fill","user-smile-line","user-star-fill","user-star-line","user-unfollow-fill","user-unfollow-line","user-voice-fill","user-voice-line","video-add-fill","video-add-line","video-chat-fill","video-chat-line","video-download-fill","video-download-line","video-fill","video-line","video-upload-fill","video-upload-line","vidicon-2-fill","vidicon-2-line","vidicon-fill","vidicon-line","vimeo-fill","vimeo-line","vip-crown-2-fill","vip-crown-2-line","vip-crown-fill","vip-crown-line","vip-diamond-fill","vip-diamond-line","vip-fill","vip-line","virus-fill","virus-line","visa-fill","visa-line","voice-recognition-fill","voice-recognition-line","voiceprint-fill","voiceprint-line","volume-down-fill","volume-down-line","volume-mute-fill","volume-mute-line","volume-off-vibrate-fill","volume-off-vibrate-line","volume-up-fill","volume-up-line","volume-vibrate-fill","volume-vibrate-line","vuejs-fill","vuejs-line","walk-fill","walk-line","wallet-2-fill","wallet-2-line","wallet-3-fill","wallet-3-line","wallet-fill","wallet-line","water-flash-fill","water-flash-line","webcam-fill","webcam-line","wechat-2-fill","wechat-2-line","wechat-fill","wechat-line","wechat-pay-fill","wechat-pay-line","weibo-fill","weibo-line","whatsapp-fill","whatsapp-line","wheelchair-fill","wheelchair-line","wifi-fill","wifi-line","wifi-off-fill","wifi-off-line","window-2-fill","window-2-line","window-fill","window-line","windows-fill","windows-line","windy-fill","windy-line","wireless-charging-fill","wireless-charging-line","women-fill","women-line","wubi-input","xbox-fill","xbox-line","xing-fill","xing-line","youtube-fill","youtube-line","zcool-fill","zcool-line","zhihu-fill","zhihu-line","zoom-in-fill","zoom-in-line","zoom-out-fill","zoom-out-line","zzz-fill","zzz-line"],wSe="",mj=16,$be=b.defineComponent({name:"JwtIconSelect",props:{modelValue:{type:String,default:"settings-3-line"}},emits:["update:modelValue","change"],setup(e,{emit:t}){const n=b.reactive({searchVal:"",listData:By.slice(0,mj),allIconData:[],pagination:{pageNo:1,pageSize:mj,total:By.length,layout:"total, prev, next"}}),r=b.computed({get:()=>e.modelValue||"settings-3-line",set:f=>{t("update:modelValue",f)}}),i=f=>{n.pagination.pageSize=f},o=f=>{n.pagination.pageNo=f,u()},a=f=>{r.value=f,t("change",f)},l=()=>{n.pagination.pageNo=1,u()},u=()=>{let f=[];n.searchVal?f=By.filter(d=>d.includes(n.searchVal)):f=By,n.pagination.total=f.length,n.listData=f.slice((n.pagination.pageNo-1)*16,n.pagination.pageNo*16)};return{...b.toRefs(n),selectIcon:r,handleSearchIcon:l,handleSelectIcon:a,handleSizeChange:i,handleCurrentChange:o}}}),Ebe=(e=>(b.pushScopeId("data-v-300ad8ec"),e=e(),b.popScopeId(),e))(()=>b.createElementVNode("span",{style:{padding:"0 5px"}},"\u56FE\u6807\u9009\u62E9\u5668",-1)),Cbe={class:"jwt-icon-select-wrapper"};function Sbe(e,t,n,r,i,o){const a=b.resolveComponent("jwt-icon"),l=b.resolveComponent("el-button"),u=b.resolveComponent("el-input"),f=b.resolveComponent("el-col"),d=b.resolveComponent("el-row"),p=b.resolveComponent("el-card"),g=b.resolveComponent("el-pagination"),h=b.resolveComponent("el-popover");return b.openBlock(),b.createBlock(h,{trigger:"click",width:300},{reference:b.withCtx(()=>[b.createVNode(l,null,{default:b.withCtx(()=>[b.createVNode(a,{icon:e.selectIcon},null,8,["icon"]),Ebe,b.createVNode(a,{icon:"arrow-down-s-line"})]),_:1})]),default:b.withCtx(()=>[b.createElementVNode("div",Cbe,[b.createVNode(d,null,{default:b.withCtx(()=>[b.createVNode(f,{span:18},{default:b.withCtx(()=>[b.createVNode(u,{modelValue:e.searchVal,"onUpdate:modelValue":t[0]||(t[0]=E=>e.searchVal=E),clearable:"",placeholder:"",onKeydown:b.withKeys(e.handleSearchIcon,["enter"])},null,8,["modelValue","onKeydown"])]),_:1}),b.createVNode(f,{offset:1,span:4},{default:b.withCtx(()=>[b.createVNode(l,{type:"primary",onClick:e.handleSearchIcon},{default:b.withCtx(()=>[b.createTextVNode("\u67E5\u8BE2")]),_:1},8,["onClick"])]),_:1})]),_:1}),b.createVNode(d,{class:"icon-list",gutter:10},{default:b.withCtx(()=>[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(e.listData,(E,w)=>(b.openBlock(),b.createBlock(f,{key:w,span:6},{default:b.withCtx(()=>[b.createVNode(p,{"body-style":{padding:"5px",textAlign:"center"},shadow:"hover",onClick:y=>e.handleSelectIcon(E)},{default:b.withCtx(()=>[b.createVNode(a,{icon:E,size:"30"},null,8,["icon"])]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1}),b.createVNode(d,{class:"pagination",justify:"center"},{default:b.withCtx(()=>[b.createVNode(f,{span:18},{default:b.withCtx(()=>[b.createVNode(g,{background:"","current-page":e.pagination.pageNo,layout:e.pagination.layout,"page-size":e.pagination.pageSize,total:e.pagination.total,onCurrentChange:e.handleCurrentChange,onSizeChange:e.handleSizeChange},null,8,["current-page","layout","page-size","total","onCurrentChange","onSizeChange"])]),_:1})]),_:1})])]),_:1})}const xbe=Object.freeze(Object.defineProperty({__proto__:null,default:yr($be,[["render",Sbe],["__scopeId","data-v-300ad8ec"]])},Symbol.toStringTag,{value:"Module"})),CSe="",Dbe=b.defineComponent({name:"JwtImage",inheritAttrs:!1,props:{fit:{type:String,default:"cover"},src:{type:String,default:""},type:{type:String,default:""},fillUrl:{type:Function,default:null}},emits:["table-action"],setup(e){const t=b.useAttrs(),n=o=>e.fillUrl&&Wt.isFunction(e.fillUrl)?e.fillUrl(o):o,r=b.computed(()=>n(e.src)),i=b.computed(()=>({search:"search-line",add:"add-circle-line",delete:"delete-bin-line"})[e.type]);return{attrs:t,imgPath:r,icon:i}}}),Abe={key:0,class:"base-image-mask"};function _be(e,t,n,r,i,o){const a=b.resolveComponent("el-image"),l=b.resolveComponent("jwt-icon");return b.openBlock(),b.createElementBlock("div",b.mergeProps({class:"base-image-wrapper"},e.attrs),[b.createVNode(a,b.mergeProps({fit:e.fit,"preview-src-list":[e.imgPath],"preview-teleported":"",src:e.imgPath},e.attrs),null,16,["fit","preview-src-list","src"]),e.icon?(b.openBlock(),b.createElementBlock("div",Abe,[b.createVNode(l,{icon:e.icon,size:"36"},null,8,["icon"])])):b.createCommentVNode("",!0)],16)}const kbe=Object.freeze(Object.defineProperty({__proto__:null,default:yr(Dbe,[["render",_be],["__scopeId","data-v-1cd3f07f"]])},Symbol.toStringTag,{value:"Module"})),xSe="",Obe=b.defineComponent({name:"JwtInput",components:{},inheritAttrs:!1,props:{modelValue:{type:[String,Number],default:null},defaultBg:{type:String,default:"red"},changeBg:{type:String,default:"blue"},textColor:{type:String,default:""}},emits:["update:modelValue","blur"],setup(e,{emit:t}){const n=b.useAttrs(),r=b.reactive({oldVal:e.modelValue}),i=b.computed({get:()=>e.modelValue||"",set:l=>{t("update:modelValue",l)}}),o=b.computed(()=>r.oldVal!==i.value),a=()=>{r.oldVal!==i.value&&(r.oldVal=i.value,t("blur",i.value))};return b.onMounted(()=>{}),{...b.toRefs(r),attrs:n,inputModel:i,newValDiffOldVal:o,handleBlur:a}}});function Bbe(e,t,n,r,i,o){const a=b.resolveComponent("el-input");return b.openBlock(),b.createBlock(a,b.mergeProps({modelValue:e.inputModel,"onUpdate:modelValue":t[0]||(t[0]=l=>e.inputModel=l),class:"input-change-style",style:{backgroundColor:`${e.newValDiffOldVal?e.changeBg:e.defaultBg}`,color:e.textColor}},e.attrs,{onBlur:e.handleBlur}),null,16,["modelValue","style","onBlur"])}const Tbe=Object.freeze(Object.defineProperty({__proto__:null,default:yr(Obe,[["render",Bbe],["__scopeId","data-v-04712864"]])},Symbol.toStringTag,{value:"Module"})),ASe="",Fbe=b.defineComponent({name:"JwtRateIcon",props:{modelValue:{type:[Number,String],default:0},size:{type:[Number,String],default:18},disabled:{type:Boolean,default:!1},voidIcon:{type:String,default:"star-line"},icon:{type:String,default:"star-fill"},color:{type:String,default:"#f7ba2a"},voidColor:{type:String,default:"#c6d1de"},max:{type:[Number,String],default:5}},emits:["update:modelValue","change"],setup(e,{emit:t}){const n=b.computed(()=>Math.min(+e.max,10)),r=b.reactive({activeIndex:e.modelValue,hoverIndex:e.modelValue});b.watchEffect(()=>{r.activeIndex=e.modelValue,r.hoverIndex=e.modelValue});const i=u=>{e.disabled||(r.hoverIndex=u+1)},o=()=>{e.disabled||(r.hoverIndex=r.activeIndex)},a=u=>{e.disabled||(r.activeIndex=u+1,r.hoverInde=u+1,t("update:modelValue",u+1),t("change",u+1))},l=()=>{e.disabled||(r.activeIndex=0,r.hoverInde=0,t("update:modelValue",0),t("change",0))};return{...b.toRefs(r),maxLenIcon:n,handleMouseenter:i,handleMouseleave:o,handleChange:a,handleDblclick:l}}}),Pbe={class:"base-rate-icon"};function Ibe(e,t,n,r,i,o){const a=b.resolveComponent("jwt-icon");return b.openBlock(),b.createElementBlock("div",Pbe,[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(e.maxLenIcon,(l,u)=>(b.openBlock(),b.createBlock(a,{key:u,class:"mr5 cp",icon:e.hoverIndex>u?e.icon:e.voidIcon,style:b.normalizeStyle({fontSize:e.size+"px",color:e.hoverIndex>u?e.color:e.voidColor}),onClick:b.withModifiers(f=>e.handleChange(u),["stop"]),onDblclick:f=>e.handleDblclick(u),onMouseenter:f=>e.handleMouseenter(u),onMouseleave:e.handleMouseleave},null,8,["icon","style","onClick","onDblclick","onMouseenter","onMouseleave"]))),128))])}const Nbe=Object.freeze(Object.defineProperty({__proto__:null,default:yr(Fbe,[["render",Ibe],["__scopeId","data-v-7df1a692"]])},Symbol.toStringTag,{value:"Module"})),kSe="",Lbe=b.defineComponent({name:"JwtSelectServer",components:{},props:{listApi:{type:String,default:""},searchKey:{type:String,default:"search"},labelKey:{type:String,default:"title"},valueKey:{type:String,default:"id"},avatarKey:{type:String,default:""},exParams:{type:Object,default:()=>{}},modelValue:{type:[String,Number,Array],default:""},searchValueKey:{type:Boolean,default:!1},request:{type:Function,require:!0,default:()=>{}},fillUrl:{type:Function,default:null}},emits:["update:modelValue","change","select"],setup(e,{emit:t}){const n=b.reactive({content:"",listData:[],searchVal:"",timer:null}),r=b.computed({get:()=>e.modelValue||"",set:l=>{t("update:modelValue",l)}}),i=(l=!1)=>{const{listApi:u,searchKey:f,valueKey:d,searchValueKey:p}=e;if(!u)return;const g={sort:"id",order:"desc",per_page:100,...e.exParams};g[f]=n.searchVal,l&&p&&(g[d]=r.value||""),e.request({url:u,method:"get",params:g}).then(h=>{n.listData=h.data})},o=l=>{if(t("change",l),l){const{valueKey:u}=e,f=n.listData.find(d=>d[u]===l);t("select",f)}},a=l=>{n.searchVal=l,l?(clearTimeout(n.timer),n.timer=setTimeout(()=>{i()},500)):i()};return b.onMounted(()=>{setTimeout(()=>{i(!0)},50)}),{selectModel:r,...b.toRefs(n),handleSelectChange:o,remoteMethod:a,getDataList:i}}}),Rbe={key:0,class:"fxm ptb10"},Mbe=["src"],jbe={class:"ml10"};function zbe(e,t,n,r,i,o){const a=b.resolveComponent("el-option"),l=b.resolveComponent("el-select");return b.openBlock(),b.createBlock(l,{modelValue:e.selectModel,"onUpdate:modelValue":t[0]||(t[0]=u=>e.selectModel=u),clearable:"",filterable:"",placeholder:"",remote:"","remote-method":e.remoteMethod,onChange:e.handleSelectChange},{default:b.withCtx(()=>[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(e.listData,(u,f)=>(b.openBlock(),b.createBlock(a,{key:f,class:b.normalizeClass({"avatar-logo":e.avatarKey}),label:u[e.labelKey],value:u[e.valueKey]},{default:b.withCtx(()=>[e.avatarKey?(b.openBlock(),b.createElementBlock("div",Rbe,[b.createElementVNode("img",{class:"w40 r100px",src:e.fillUrl(u[e.avatarKey])},null,8,Mbe),b.createElementVNode("span",jbe,b.toDisplayString(u[e.labelKey]),1)])):b.createCommentVNode("",!0)]),_:2},1032,["class","label","value"]))),128))]),_:1},8,["modelValue","remote-method","onChange"])}const Vbe=Object.freeze(Object.defineProperty({__proto__:null,default:yr(Lbe,[["render",zbe]])},Symbol.toStringTag,{value:"Module"}));var Eg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ube(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Hbe(e){var t=e.default;if(typeof t=="function"){var n=function(){return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var aa={exports:{}};/**
180
+ Please use '@${e}' event instead of props`,t}var vj=(e,t)=>{for(const[n,r]of t)e[n]=r;return e};const Jye=b.defineComponent({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=b.ref(null),r=b.shallowRef(null),i=b.ref(""),o=()=>{if(!n.value)return;const l=b.toRaw(e.defaultContent);dj({selector:n.value,mode:e.mode,content:l||[],html:e.defaultHtml||e.modelValue||"",config:Xye(Yye({},e.defaultConfig),{onCreated(u){if(r.value=u,t.emit("onCreated",u),e.defaultConfig.onCreated){const f=Tl("onCreated");throw new Error(f)}},onChange(u){const f=u.getHtml();if(i.value=f,t.emit("update:modelValue",f),t.emit("onChange",u),e.defaultConfig.onChange){const d=Tl("onChange");throw new Error(d)}},onDestroyed(u){if(t.emit("onDestroyed",u),e.defaultConfig.onDestroyed){const f=Tl("onDestroyed");throw new Error(f)}},onMaxLength(u){if(t.emit("onMaxLength",u),e.defaultConfig.onMaxLength){const f=Tl("onMaxLength");throw new Error(f)}},onFocus(u){if(t.emit("onFocus",u),e.defaultConfig.onFocus){const f=Tl("onFocus");throw new Error(f)}},onBlur(u){if(t.emit("onBlur",u),e.defaultConfig.onBlur){const f=Tl("onBlur");throw new Error(f)}},customAlert(u,f){if(t.emit("customAlert",u,f),e.defaultConfig.customAlert){const d=Tl("customAlert");throw new Error(d)}},customPaste:(u,f)=>{if(e.defaultConfig.customPaste){const p=Tl("customPaste");throw new Error(p)}let d;return t.emit("customPaste",u,f,p=>{d=p}),d}})})};function a(l){const u=r.value;u!=null&&u.setHtml(l)}return b.onMounted(()=>{o()}),b.watch(()=>e.modelValue,l=>{l!==i.value&&a(l)}),{box:n}}}),Zye={ref:"box",style:{height:"100%"}};function Qye(e,t,n,r,i,o){return b.openBlock(),b.createElementBlock("div",Zye,null,512)}var ebe=vj(Jye,[["render",Qye]]);const tbe=b.defineComponent({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(e){const t=b.ref(null),n=r=>{if(!!t.value){if(r==null)throw new Error("Not found instance of Editor when create <Toolbar/> component");j.getToolbar(r)||pj({editor:r,selector:t.value||"<div></div>",mode:e.mode,config:e.defaultConfig})}};return b.watchEffect(()=>{const{editor:r}=e;r!=null&&n(r)}),{selector:t}}}),nbe={ref:"selector"};function rbe(e,t,n,r,i,o){return b.openBlock(),b.createElementBlock("div",nbe,null,512)}var ibe=vj(tbe,[["render",rbe]]);const hSe="",obe=b.defineComponent({name:"JwtEditor",components:{Editor:ebe,Toolbar:ibe},props:{modelValue:{type:String,default:""},uploadUrl:{type:String,default:""}},emits:["update:modelValue"],setup(e,{emit:t}){const n=b.shallowRef(),r=b.ref("<p>hello</p>"),i=b.computed(()=>e.modelValue||""),o=[{type:"paragraph",children:[{text:"\u4E00\u884C\u6587\u5B57"}]}],a=b.reactive({defaultContent:o,initOnce:!1}),l={insertKeys:{index:22,keys:["uploadAttachment"]}},u={placeholder:"\u8BF7\u8F93\u5165\u5185\u5BB9...",MENU_CONF:{},hoverbarKeys:{attachment:{menuKeys:["downloadAttachment"]}}};u.MENU_CONF.uploadImage={server:e.uploadUrl,maxFileSize:20*1024*1024,headers:{Accept:"text/x-json",Authorization:window.localStorage.getItem("admin-token")},timeout:60*1e3},u.MENU_CONF.uploadVideo={server:e.uploadUrl,headers:{Accept:"text/x-json",Authorization:window.localStorage.getItem("admin-token")}},u.MENU_CONF.uploadAttachment={server:e.uploadUrl,headers:{Accept:"text/x-json",Authorization:window.localStorage.getItem("admin-token")}};const f=m=>{n.value=m},d=m=>{t("update:modelValue",$(m))},p=m=>{console.log("destroyed",m)},g=m=>{console.log("focus",m)},h=m=>{t("update:modelValue",$(m))},E=(m,S)=>{alert(`\u3010\u81EA\u5B9A\u4E49\u63D0\u793A\u3011${S} - ${m}`)},w=(m,S,D)=>{console.log("ClipboardEvent \u7C98\u8D34\u4E8B\u4EF6\u5BF9\u8C61",S),m.insertText("xxx"),S.preventDefault(),D(!1)},y=()=>{const m=n.value;m!=null&&(m.select([]),m.deleteFragment(),Z.setNodes(m,{type:"paragraph"},{mode:"highest"}),m.dangerouslyInsertHtml(i.value),a.initOnce=!0)},$=m=>{let S=m.getHtml();const D=S.match(/<span data-w-e-type="attachment"(?:[^<])*<\/span>/g);return D==null||D.map(A=>{var U;var B=(U=A.match(/http(?:[^"])*/g))==null?void 0:U[0],P=A.match(/>(?:[^<])*/)[0].slice(1);S=S.replace(`>${P}<`,`><a href="${B}" download="${P}">${P}</a><`)}),S};return b.watch(()=>e.modelValue,m=>{b.nextTick(()=>{a.initOnce||m&&m!=="<p><br></p>"&&y()})}),b.onMounted(()=>{}),b.onBeforeUnmount(()=>{const m=n.value;m!=null&&m.destroy()}),{...b.toRefs(a),editorRef:n,valueHtml:r,mode:"default",defaultHtml:i,toolbarConfig:l,editorConfig:u,handleCreated:f,handleChange:d,handleDestroyed:p,handleFocus:g,handleBlur:h,customAlert:E,customPaste:w,updateContent:y}}}),abe={class:"base-wang-editor-wrapper",style:{border:"1px solid #ccc"}};function lbe(e,t,n,r,i,o){const a=b.resolveComponent("Toolbar"),l=b.resolveComponent("Editor");return b.openBlock(),b.createElementBlock("div",abe,[b.createVNode(a,{"default-config":e.toolbarConfig,editor:e.editorRef,mode:e.mode,style:{"border-bottom":"1px solid #ccc"}},null,8,["default-config","editor","mode"]),b.createVNode(l,{"default-config":e.editorConfig,"default-html":e.defaultHtml,mode:e.mode,style:{height:"500px","overflow-y":"hidden"},onCustomAlert:e.customAlert,onOnBlur:e.handleBlur,onOnChange:e.handleChange,onOnCreated:e.handleCreated,onOnDestroyed:e.handleDestroyed,onOnFocus:e.handleFocus},null,8,["default-config","default-html","mode","onCustomAlert","onOnBlur","onOnChange","onOnCreated","onOnDestroyed","onOnFocus"])])}const sbe=Object.freeze(Object.defineProperty({__proto__:null,default:yr(obe,[["render",lbe],["__scopeId","data-v-edbbaeba"]])},Symbol.toStringTag,{value:"Module"}));function ube(e=[]){const t=[];for(const n of e)if(t.indexOf(n)===-1){t.push(n);for(let r=0;r<t.length;r++)if(t[r].length>n.length&&t[r].includes(n)){t.pop();break}else if(t[r].length<n.length&&n.includes(t[r])){t.splice(r,1);break}}return t}const Wt={isObject(e){return{}.toString.call(e)==="[object Object]"},hasObject(e){return this.isObject(e)&&Object.keys(e).length>0},isFunction(e){return{}.toString.call(e)==="[object Function]"},isArray(e){return{}.toString.call(e)==="[object Array]"},hasArray(e){return this.isArray(e)&&e.length>0},isString(e){return{}.toString.call(e)==="[object String]"},isNumber(e){return{}.toString.call(e)==="[object Number]"},isValid(e){return e!==void 0&&e!==""&&e!==null||e===0||e===!1},sleep(e){return new Promise(t=>setTimeout(t,e))},isData(e){return this.hasArray(e)||this.hasObject(e)||this.isValid(e)},$local(e,t){const n=e||"userInfo";if(this.isValid(t))dx.set(n,t);else return dx.get(n)||!1},$localRemove(e){const t=e||"userInfo";dx.remove(t),cbe.remove(t)},copy(e){return JSON.parse(JSON.stringify(e))},$getName(e,t){let n="";return Wt.hasArray(e)&&(e.map(r=>{n+=r[t]+"\u3001"}),n=n.substring(0,n.length-1)),n},delArrValue(e,t){return e.forEach((n,r)=>{n===t&&e.splice(r,1)}),e},setEmpty(e){if(this.hasObject(e))for(const t in e)(e[t]==null||e[t]===void 0)&&(e[t]="");return e},getBody(e){for(var t in e){const n=e[t];this.isValid(n)||delete e[t]}return e}},dx={set(e,t){let n=t;(Wt.isObject(t)||Wt.isArray(n))&&(n=JSON.stringify(n)),localStorage.setItem(e,n)},get(e){const t=localStorage.getItem(e);return Wt.isValid(t)?JSON.parse(t):!1},output(){console.log(localStorage)},remove(e){Wt.hasArray(e)?e.map(t=>{localStorage.removeItem(t)}):localStorage.removeItem(e)},clear(){localStorage.clear()}},cbe={set(e,t){let n=t;(Wt.isObject(n)||Wt.isArray(n))&&(n=JSON.stringify(n)),sessionStorage.setItem(e,n)},get(e){const t=sessionStorage.getItem(e);return Wt.isValid(t)?JSON.parse(t):!1},output(){console.log(sessionStorage)},remove(e){Wt.hasArray(e)?e.map(t=>{sessionStorage.removeItem(t)}):sessionStorage.removeItem(e)},clear(){sessionStorage.clear()}},vSe="",fbe=b.defineComponent({name:"JwtForm",components:{},props:{modelValue:{require:!0,type:[Object,Function],default:()=>{}},config:{require:!0,type:[Object,Function],default:()=>{}},request:{type:Function,require:!0,default:()=>{}},fillUrl:{type:Function,require:!0,default:()=>{}},uploadImgUrl:{type:String,default:""},uploadRichTextUrl:{type:String,default:""},responseKey:{type:String,default:"relative_path"}},emits:["submit","reset","update:modelValue","addSuccess","editSuccess","get-detail-success","error"],setup(e,{emit:t}){const n=b.reactive({loading:!1,datePickerRange:[]}),r=b.computed(()=>{var w,y;if(e.config){let $=Wt.copy(e.config)||{};return((w=$==null?void 0:$.formList)==null?void 0:w.length)&&Wt.hasArray($==null?void 0:$.formList)&&($.formList=(y=$==null?void 0:$.formList)==null?void 0:y.map(m=>(m.formEvents||(m.formEvents={}),m.type==="submit"&&(m.submit&&!m.submit.attrs&&(m.submit.attrs={}),m.submit&&!m.submit.events&&(m.submit.events={}),m.reset&&!m.reset.attrs&&(m.reset.attrs={}),m.reset&&!m.reset.events&&(m.reset.events={})),m))),$}return{}}),i=b.ref(null),o=b.computed({get:()=>e.modelValue?l(e.modelValue):(r.value.formList.forEach(w=>{w.value!==void 0&&(o[w.key]=w.value)}),o),set:w=>{t("update:modelValue",w)}}),a=b.computed(()=>{const w=[];return r.value.formList.forEach(y=>{w.push(y.key)}),w}),l=(w={})=>(r.value.formList.forEach(y=>{var U,Y,ce;const{key:$,type:m,startKey:S,endKey:D,formAttrs:A}=y,B=(A==null?void 0:A.multiple)||!1,P=(A==null?void 0:A.valueType)||"";w[$]&&m==="inputNumber"?w[$]=+w[$]:B?Wt.isArray(w[$])||(P==="number"?w[$]=w[$]?(Y=(U=w[$])==null?void 0:U.split(","))==null?void 0:Y.map(ee=>+ee):[]:w[$]=w[$]?(ce=w[$])==null?void 0:ce.split(","):[]):m==="datePickerRange"?p([w[S]||"",w[D]||""]):w[$]=w[$]===""||w[$]===void 0?y.value:w[$]}),w),u=async()=>{let w=!0;return await i.value.validate(y=>{w=y}),w},f=async()=>{var y,$,m,S,D,A,B,P;if(!!await u())if((($=(y=r==null?void 0:r.value)==null?void 0:y.api)==null?void 0:$.add)||((S=(m=r==null?void 0:r.value)==null?void 0:m.api)==null?void 0:S.update)){let U={};((D=r.value)==null?void 0:D.formEditParams)&&Wt.hasObject((A=r.value)==null?void 0:A.formEditParams)&&Object.assign(U,((B=r.value)==null?void 0:B.formEditParams)||{}),(P=a==null?void 0:a.value)!=null&&P.length?a.value.forEach(Y=>{Y&&(U[Y]=o.value[Y])}):U=Object.assign({},o.value),r.value.formList.map(Y=>{var ce,ee,ge;if((ce=Y==null?void 0:Y.formAttrs)!=null&&ce.multiple)if((ge=(ee=Y==null?void 0:Y.formAttrs)==null?void 0:ee.props)!=null&&ge.checkStrictly){const se=[];U[Y.key].map(ve=>{se.push(ve[ve.length-1])});const xe=ube(se);U[Y.key]=Wt.isArray(xe)?xe.join(","):""}else U[Y.key]=Wt.isArray(U[Y.key])?U[Y.key].join(","):U[Y.key]}),n.loading=!0,o.value.id?(U.id=o.value.id,e.request({url:r.value.api.update,method:"post",data:U}).then(Y=>{Y.id&&(n.loading=!1,o.value.id=Y.id),t("editSuccess",Y)}).catch(()=>{n.loading=!1,t("error")})):e.request({url:r.value.api.add,method:"post",data:U}).then(Y=>{n.loading=!1,t("addSuccess",Y)}).catch(()=>{n.loading=!1,t("error")})}else t("submit",e.modelValue)},d=(w,y)=>{const{startKey:$,endKey:m}=y,S=y.formAttrs.format||"YYYY-MM-DD HH:mm:ss";y.formAttrs.type&&y.formAttrs.type.includes("range")&&(o.value[$]=w?Xl.default(w[0]).format(S):"",o.value[m]=w?Xl.default(w[1]).format(S):"")},p=w=>{const{startVal:y,endVal:$}=w;n.datePickerRange=[y,$]},g=()=>{i.value.resetFields(),t("reset",e.modelValue)},h=(w,y,$)=>{var m,S,D,A,B;if(w&&w.length)if(((m=$.formAttrs)==null?void 0:m.multiple)||((D=(S=$==null?void 0:$.formAttrs)==null?void 0:S.props)==null?void 0:D.multiple)){let P=[];(B=(A=$==null?void 0:$.formAttrs)==null?void 0:A.props)!=null&&B.checkStrictly?P=w:w.map(U=>{P.push(U[U.length-1])}),o.value[y]=P}else o.value[y]=w[w.length-1];else o.value[y]=""},E=()=>{var w,y,$,m,S,D,A,B;((y=(w=r.value)==null?void 0:w.api)==null?void 0:y.detail)&&((m=($=r.value)==null?void 0:$.api)==null?void 0:m.detailParams)&&((B=(S=r.value)==null?void 0:S.api)==null?void 0:B.detailParams[((A=(D=r.value)==null?void 0:D.api)==null?void 0:A.detailParamsKey)||"id"])&&e.request({url:r.value.api.detail,method:"get",params:r.value.api.detailParams}).then(P=>{let U=l(P);o.value=U,t("get-detail-success",P)})};return b.onBeforeMount(()=>{E()}),b.onMounted(()=>{}),{formRef:i,...b.toRefs(n),formConfig:r,appModel:o,appModelParams:a,formSubmit:f,formReset:g,formValidate:u,handleCascaderChange:h,getDetail:E,datePickerChange:d,setDatePickerRange:p,handleFormListData:l}}});function dbe(e,t,n,r,i,o){var M,T,L;const a=b.resolveComponent("el-radio-button"),l=b.resolveComponent("el-radio"),u=b.resolveComponent("el-radio-group"),f=b.resolveComponent("el-checkbox-button"),d=b.resolveComponent("el-checkbox"),p=b.resolveComponent("el-checkbox-group"),g=b.resolveComponent("el-input"),h=b.resolveComponent("el-autocomplete"),E=b.resolveComponent("el-input-number"),w=b.resolveComponent("el-option"),y=b.resolveComponent("el-option-group"),$=b.resolveComponent("el-select"),m=b.resolveComponent("jwt-select-server"),S=b.resolveComponent("el-cascader"),D=b.resolveComponent("el-cascader-panel"),A=b.resolveComponent("el-switch"),B=b.resolveComponent("el-slider"),P=b.resolveComponent("el-time-picker"),U=b.resolveComponent("el-time-select"),Y=b.resolveComponent("el-date-picker"),ce=b.resolveComponent("jwt-upload-image"),ee=b.resolveComponent("jwt-tags"),ge=b.resolveComponent("el-rate"),se=b.resolveComponent("jwt-rate-icon"),xe=b.resolveComponent("el-color-picker"),ve=b.resolveComponent("el-transfer"),Oe=b.resolveComponent("jwt-icon-select"),Te=b.resolveComponent("jwt-editor"),Ne=b.resolveComponent("el-button"),Re=b.resolveComponent("el-form-item"),Ae=b.resolveComponent("el-col"),ie=b.resolveComponent("el-row"),R=b.resolveComponent("el-form");return(T=(M=e.formConfig)==null?void 0:M.formList)!=null&&T.length?(b.openBlock(),b.createBlock(R,b.mergeProps({key:0},(L=e.formConfig)==null?void 0:L.formAttrs,{ref:"formRef",class:"app-form-container",model:e.appModel}),{default:b.withCtx(()=>[b.createVNode(ie,{gutter:10},{default:b.withCtx(()=>{var q;return[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList((q=e.formConfig)==null?void 0:q.formList,(O,J)=>{var ue,he;return b.openBlock(),b.createBlock(Ae,b.mergeProps({key:J,class:[(he=(ue=e.formConfig)==null?void 0:ue.formAttrs)!=null&&he.inline?"el-col-dl":"db"]},O==null?void 0:O.layoutAttrs),{default:b.withCtx(()=>[O.type!=="slot"?(b.openBlock(),b.createBlock(Re,b.mergeProps({key:0},O.labelAttrs,{key:J,prop:O.key}),{default:b.withCtx(()=>[O.type==="radio"?(b.openBlock(),b.createBlock(u,b.mergeProps({key:0,modelValue:e.appModel[O.key],"onUpdate:modelValue":te=>e.appModel[O.key]=te},O.formAttrs,b.toHandlers(O.formEvents)),{default:b.withCtx(()=>[O.isButton?(b.openBlock(!0),b.createElementBlock(b.Fragment,{key:0},b.renderList(O.options,(te,Q)=>(b.openBlock(),b.createBlock(a,b.mergeProps(te.attrs,{key:Q},b.toHandlers(te.events)),{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(te.title),1)]),_:2},1040))),128)):(b.openBlock(!0),b.createElementBlock(b.Fragment,{key:1},b.renderList(O.options,(te,Q)=>(b.openBlock(),b.createBlock(l,b.mergeProps(te.attrs,{key:Q},b.toHandlers(te.events)),{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(te.title),1)]),_:2},1040))),128))]),_:2},1040,["modelValue","onUpdate:modelValue"])):O.type==="checkbox"?(b.openBlock(),b.createBlock(p,{key:1,modelValue:e.appModel[O.key],"onUpdate:modelValue":te=>e.appModel[O.key]=te},{default:b.withCtx(()=>[O.isButton?(b.openBlock(!0),b.createElementBlock(b.Fragment,{key:0},b.renderList(O.options,(te,Q)=>(b.openBlock(),b.createBlock(f,b.mergeProps(te.attrs,{key:Q}),{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(te.title),1)]),_:2},1040))),128)):(b.openBlock(!0),b.createElementBlock(b.Fragment,{key:1},b.renderList(O.options,(te,Q)=>(b.openBlock(),b.createBlock(d,b.mergeProps(te.attrs,{key:Q,label:te.value}),{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(te.title||te.label),1)]),_:2},1040,["label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):O.type==="hidden"?(b.openBlock(),b.createBlock(g,b.mergeProps({key:2,modelValue:e.appModel[O.key],"onUpdate:modelValue":te=>e.appModel[O.key]=te,type:"hidden"},O.formAttrs,b.toHandlers(O.formEvents)),null,16,["modelValue","onUpdate:modelValue"])):O.type==="input"?(b.openBlock(),b.createBlock(g,b.mergeProps({key:3,modelValue:e.appModel[O.key],"onUpdate:modelValue":te=>e.appModel[O.key]=te},O.formAttrs,b.toHandlers(O.formEvents)),b.createSlots({_:2},[O.formSlot&&O.formSlot.prefix?{name:"prefix",fn:b.withCtx(()=>[b.renderSlot(e.$slots,O.formSlot.prefix,{},void 0,!0)]),key:"0"}:void 0,O.formSlot&&O.formSlot.suffix?{name:"suffix",fn:b.withCtx(()=>[b.renderSlot(e.$slots,O.formSlot.suffix,{},void 0,!0)]),key:"1"}:void 0,O.formSlot&&O.formSlot.prepend?{name:"prepend",fn:b.withCtx(()=>[b.renderSlot(e.$slots,O.formSlot.prepend,{},void 0,!0)]),key:"2"}:void 0,O.formSlot&&O.formSlot.append?{name:"append",fn:b.withCtx(()=>[b.renderSlot(e.$slots,O.formSlot.append,{},void 0,!0)]),key:"3"}:void 0]),1040,["modelValue","onUpdate:modelValue"])):O.type==="autocomplete"?(b.openBlock(),b.createBlock(h,b.mergeProps({key:4,modelValue:e.appModel[O.key],"onUpdate:modelValue":te=>e.appModel[O.key]=te},O.formAttrs,b.toHandlers(O.formEvents)),null,16,["modelValue","onUpdate:modelValue"])):O.type==="inputNumber"?(b.openBlock(),b.createBlock(E,b.mergeProps({key:5,modelValue:e.appModel[O.key],"onUpdate:modelValue":te=>e.appModel[O.key]=te,"controls-position":"right"},O.formAttrs,b.toHandlers(O.formEvents)),null,16,["modelValue","onUpdate:modelValue"])):O.type==="select"?(b.openBlock(),b.createBlock($,b.mergeProps({key:6,modelValue:e.appModel[O.key],"onUpdate:modelValue":te=>e.appModel[O.key]=te},O.formAttrs,b.toHandlers(O.formEvents)),b.createSlots({default:b.withCtx(()=>[O.formSlot&&O.formSlot.default?b.renderSlot(e.$slots,O.formSlot.default,{key:0},void 0,!0):(b.openBlock(),b.createElementBlock(b.Fragment,{key:1},[O.isGroup?(b.openBlock(!0),b.createElementBlock(b.Fragment,{key:0},b.renderList(O.options,(te,Q)=>(b.openBlock(),b.createBlock(y,{key:Q,disabled:te.disabled,label:te.label},{default:b.withCtx(()=>[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(te.options,(Ce,ae)=>(b.openBlock(),b.createBlock(w,b.mergeProps(Ce,{key:ae}),null,16))),128))]),_:2},1032,["disabled","label"]))),128)):(b.openBlock(!0),b.createElementBlock(b.Fragment,{key:1},b.renderList(O.options,(te,Q)=>(b.openBlock(),b.createBlock(w,b.mergeProps(te,{key:Q}),null,16))),128))],64))]),_:2},[O.formSlot&&O.formSlot.prefix?{name:"prefix",fn:b.withCtx(()=>[b.renderSlot(e.$slots,O.formSlot.prefix,{},void 0,!0)]),key:"0"}:void 0,O.formSlot&&O.formSlot.empty?{name:"empty",fn:b.withCtx(()=>[b.renderSlot(e.$slots,O.formSlot.empty,{},void 0,!0)]),key:"1"}:void 0]),1040,["modelValue","onUpdate:modelValue"])):O.type==="selectServer"?(b.openBlock(),b.createBlock(m,b.mergeProps({key:7,modelValue:e.appModel[O.key],"onUpdate:modelValue":te=>e.appModel[O.key]=te},O.formAttrs,{request:e.request,"fill-url":e.fillUrl},b.toHandlers(O.formEvents)),null,16,["modelValue","onUpdate:modelValue","request","fill-url"])):O.type==="cascader"?(b.openBlock(),b.createBlock(S,b.mergeProps({key:8,modelValue:e.appModel[O.key],"onUpdate:modelValue":te=>e.appModel[O.key]=te},O.formAttrs,{class:"w"},b.toHandlers(O.formEvents),{onChange:te=>e.handleCascaderChange(te,O.key,O)}),b.createSlots({_:2},[O.formSlot&&O.formSlot.default?{name:"default",fn:b.withCtx(({node:te,data:Q})=>[b.renderSlot(e.$slots,O.formSlot.default,{data:Q,node:te},void 0,!0)]),key:"0"}:void 0,O.formSlot&&O.formSlot.empty?{name:"empty",fn:b.withCtx(()=>[b.renderSlot(e.$slots,O.formSlot.empty,{},void 0,!0)]),key:"1"}:void 0]),1040,["modelValue","onUpdate:modelValue","onChange"])):O.type==="cascaderPanel"?(b.openBlock(),b.createBlock(D,b.mergeProps({key:9,modelValue:e.appModel[O.key],"onUpdate:modelValue":te=>e.appModel[O.key]=te},O.formAttrs,b.toHandlers(O.formEvents)),b.createSlots({_:2},[O.formSlot&&O.formSlot.default?{name:"default",fn:b.withCtx(({node:te,data:Q})=>[b.renderSlot(e.$slots,O.formSlot.default,{data:Q,node:te},void 0,!0)]),key:"0"}:void 0]),1040,["modelValue","onUpdate:modelValue"])):O.type==="switch"?(b.openBlock(),b.createBlock(A,b.mergeProps({key:10,modelValue:e.appModel[O.key],"onUpdate:modelValue":te=>e.appModel[O.key]=te},O.formAttrs,{"active-value":1,"inactive-value":0},b.toHandlers(O.formEvents)),null,16,["modelValue","onUpdate:modelValue"])):O.type==="slider"?(b.openBlock(),b.createBlock(B,b.mergeProps({key:11,modelValue:e.appModel[O.key],"onUpdate:modelValue":te=>e.appModel[O.key]=te},O.formAttrs,b.toHandlers(O.formEvents)),null,16,["modelValue","onUpdate:modelValue"])):O.type==="timePicker"?(b.openBlock(),b.createBlock(P,b.mergeProps({key:12,modelValue:e.appModel[O.key],"onUpdate:modelValue":te=>e.appModel[O.key]=te},O.formAttrs,{"value-format":"HH:mm:ss"},b.toHandlers(O.formEvents)),null,16,["modelValue","onUpdate:modelValue"])):O.type==="timeSelect"?(b.openBlock(),b.createBlock(U,b.mergeProps({key:13,modelValue:e.appModel[O.key],"onUpdate:modelValue":te=>e.appModel[O.key]=te},O.formAttrs,b.toHandlers(O.formEvents)),null,16,["modelValue","onUpdate:modelValue"])):O.type==="datePicker"?(b.openBlock(),b.createBlock(Y,b.mergeProps({key:14,modelValue:e.appModel[O.key],"onUpdate:modelValue":te=>e.appModel[O.key]=te},O.formAttrs,b.toHandlers(O.formEvents)),b.createSlots({_:2},[O.formSlot&&O.formSlot.rangeSeparator?{name:"range-separator",fn:b.withCtx(()=>[b.renderSlot(e.$slots,O.formSlot.rangeSeparator,{},void 0,!0)]),key:"0"}:void 0]),1040,["modelValue","onUpdate:modelValue"])):O.type==="datePickerRange"?(b.openBlock(),b.createBlock(Y,b.mergeProps({key:15,modelValue:e.datePickerRange,"onUpdate:modelValue":t[0]||(t[0]=te=>e.datePickerRange=te)},O.formAttrs,b.toHandlers(O.formEvents),{onChange:te=>e.datePickerChange(te,O)}),b.createSlots({_:2},[O.formSlot&&O.formSlot.rangeSeparator?{name:"range-separator",fn:b.withCtx(()=>[b.renderSlot(e.$slots,O.formSlot.rangeSeparator,{},void 0,!0)]),key:"0"}:void 0]),1040,["modelValue","onChange"])):O.type==="uploadImg"?(b.openBlock(),b.createBlock(ce,b.mergeProps({key:16,modelValue:e.appModel[O.key],"onUpdate:modelValue":te=>e.appModel[O.key]=te},O.formAttrs,{"fill-url":e.fillUrl,"response-key":e.responseKey,"upload-url":e.uploadImgUrl},b.toHandlers(O.formEvents)),null,16,["modelValue","onUpdate:modelValue","fill-url","response-key","upload-url"])):O.type==="tag"?(b.openBlock(),b.createBlock(ee,b.mergeProps({key:17,modelValue:e.appModel[O.key],"onUpdate:modelValue":te=>e.appModel[O.key]=te},O.formAttrs,b.toHandlers(O.formEvents)),null,16,["modelValue","onUpdate:modelValue"])):O.type==="rate"?(b.openBlock(),b.createBlock(ge,b.mergeProps({key:18,modelValue:e.appModel[O.key],"onUpdate:modelValue":te=>e.appModel[O.key]=te},O.formAttrs,b.toHandlers(O.formEvents)),null,16,["modelValue","onUpdate:modelValue"])):O.type==="baseRate"?(b.openBlock(),b.createBlock(se,b.mergeProps({key:19,modelValue:e.appModel[O.key],"onUpdate:modelValue":te=>e.appModel[O.key]=te},O.formAttrs,b.toHandlers(O.formEvents)),null,16,["modelValue","onUpdate:modelValue"])):O.type==="colorPicker"?(b.openBlock(),b.createBlock(xe,b.mergeProps({key:20,modelValue:e.appModel[O.key],"onUpdate:modelValue":te=>e.appModel[O.key]=te},O.formAttrs,b.toHandlers(O.formEvents)),null,16,["modelValue","onUpdate:modelValue"])):O.type==="transfer"?(b.openBlock(),b.createBlock(ve,b.mergeProps({key:21,modelValue:e.appModel[O.key],"onUpdate:modelValue":te=>e.appModel[O.key]=te},O.formAttrs,b.toHandlers(O.formEvents)),b.createSlots({_:2},[O.formSlot&&O.formSlot.default?{name:"default",fn:b.withCtx(({option:te})=>[b.renderSlot(e.$slots,O.formSlot.default,{option:te},void 0,!0)]),key:"0"}:void 0]),1040,["modelValue","onUpdate:modelValue"])):O.type==="icon"?(b.openBlock(),b.createBlock(Oe,b.mergeProps({key:22,modelValue:e.appModel[O.key],"onUpdate:modelValue":te=>e.appModel[O.key]=te},O.formAttrs,b.toHandlers(O.formEvents)),null,16,["modelValue","onUpdate:modelValue"])):O.type==="richText"?(b.openBlock(),b.createBlock(Te,b.mergeProps({key:23,modelValue:e.appModel[O.key],"onUpdate:modelValue":te=>e.appModel[O.key]=te},O.formAttrs,{"upload-url":e.uploadRichTextUrl},b.toHandlers(O.formEvents)),null,16,["modelValue","onUpdate:modelValue","upload-url"])):O.type==="submit"?(b.openBlock(),b.createElementBlock(b.Fragment,{key:24},[O.submit?(b.openBlock(),b.createBlock(Ne,b.mergeProps({key:0},O.submit.attrs,{loading:e.loading},b.toHandlers(O.submit.events),{onClick:e.formSubmit}),{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(O.submit.title),1)]),_:2},1040,["loading","onClick"])):b.createCommentVNode("",!0),O.reset?(b.openBlock(),b.createBlock(Ne,b.mergeProps({key:1},O.reset.attrs,{loading:e.loading},b.toHandlers(O.reset.events),{onClick:e.formReset}),{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(O.reset.title),1)]),_:2},1040,["loading","onClick"])):b.createCommentVNode("",!0)],64)):b.createCommentVNode("",!0)]),_:2},1040,["prop"])):b.createCommentVNode("",!0),O.type==="slot"?b.renderSlot(e.$slots,O.name,{key:1,model:e.appModel},void 0,!0):b.createCommentVNode("",!0)]),_:2},1040,["class"])}),128))]}),_:3})]),_:3},16,["model"])):b.createCommentVNode("",!0)}const pbe=Object.freeze(Object.defineProperty({__proto__:null,default:yr(fbe,[["render",dbe],["__scopeId","data-v-1c32390b"]])},Symbol.toStringTag,{value:"Module"})),hbe=b.defineComponent({name:"JwtHeaderButton",props:{loading:{type:Boolean,default:!1},currentPath:{type:String,default:"/"},menusObj:{type:Object,default:()=>{}},selectionRow:{type:Array,default:()=>[]},actionList:{type:Array,default:()=>[]}},emits:["header-action"],setup(e,{emit:t}){return{headerButtonActions:b.computed(()=>{const i=((e==null?void 0:e.menusObj)||{})[e==null?void 0:e.currentPath];return i&&i.operations.length?i.operations.filter(o=>{let a=o.show_header;if(e.actionList&&e.actionList.length){const{code:l}=o;a=a&&e.actionList.includes(l)}return a}):[]}),handleHeaderAction:i=>{t("header-action",i)}}}}),gbe={key:0,class:"table-header-actions"};function vbe(e,t,n,r,i,o){const a=b.resolveComponent("jwt-icon"),l=b.resolveComponent("el-button");return e.headerButtonActions.length?(b.openBlock(),b.createElementBlock("div",gbe,[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(e.headerButtonActions,(u,f)=>(b.openBlock(),b.createBlock(l,{key:f,disabled:(u.code.includes("delete")||u.code.includes("batch"))&&!e.selectionRow.length,loading:e.loading,type:u.code.includes("delete")?"danger":"primary",onClick:d=>e.handleHeaderAction(u)},{default:b.withCtx(()=>[u.icon&&!e.loading?(b.openBlock(),b.createBlock(a,{key:0,icon:u.icon},null,8,["icon"])):b.createCommentVNode("",!0),b.createTextVNode(" "+b.toDisplayString(u.show_title||u.title),1)]),_:2},1032,["disabled","loading","type","onClick"]))),128))])):b.createCommentVNode("",!0)}const mbe=Object.freeze(Object.defineProperty({__proto__:null,default:yr(hbe,[["render",vbe]])},Symbol.toStringTag,{value:"Module"})),ybe=b.defineComponent({name:"JwtIcon",props:{icon:{type:String,default:"settings-3-line"},size:{type:[String,Number],default:16}},setup(e){return{iconName:b.computed(()=>`ri-${e.icon}`)}}});function bbe(e,t,n,r,i,o){return b.openBlock(),b.createElementBlock("i",{class:b.normalizeClass(e.iconName),style:b.normalizeStyle({"font-size":e.size+"px"})},null,6)}const wbe=Object.freeze(Object.defineProperty({__proto__:null,default:yr(ybe,[["render",bbe]])},Symbol.toStringTag,{value:"Module"})),By=["24-hours-fill","24-hours-line","4k-fill","4k-line","a-b","account-box-fill","account-box-line","account-circle-fill","account-circle-line","account-pin-box-fill","account-pin-box-line","account-pin-circle-fill","account-pin-circle-line","add-box-fill","add-box-line","add-circle-fill","add-circle-line","add-fill","add-line","admin-fill","admin-line","airplay-fill","airplay-line","alarm-fill","alarm-line","alarm-warning-fill","alarm-warning-line","album-fill","album-line","alert-fill","alert-line","aliens-fill","aliens-line","align-bottom","align-center","align-justify","align-left","align-right","align-top","align-vertically","alipay-fill","alipay-line","amazon-fill","amazon-line","anchor-fill","anchor-line","ancient-gate-fill","ancient-gate-line","ancient-pavilion-fill","ancient-pavilion-line","android-fill","android-line","angularjs-fill","angularjs-line","anticlockwise-2-fill","anticlockwise-2-line","anticlockwise-fill","anticlockwise-line","app-store-fill","app-store-line","apple-fill","apple-line","apps-2-fill","apps-2-line","apps-fill","apps-line","archive-drawer-fill","archive-drawer-line","archive-fill","archive-line","arrow-down-circle-fill","arrow-down-circle-line","arrow-down-fill","arrow-down-line","arrow-down-s-fill","arrow-down-s-line","arrow-drop-down-fill","arrow-drop-down-line","arrow-drop-left-fill","arrow-drop-left-line","arrow-drop-right-fill","arrow-drop-right-line","arrow-drop-up-fill","arrow-drop-up-line","arrow-go-back-fill","arrow-go-back-line","arrow-go-forward-fill","arrow-go-forward-line","arrow-left-circle-fill","arrow-left-circle-line","arrow-left-down-fill","arrow-left-down-line","arrow-left-fill","arrow-left-line","arrow-left-right-fill","arrow-left-right-line","arrow-left-s-fill","arrow-left-s-line","arrow-left-up-fill","arrow-left-up-line","arrow-right-circle-fill","arrow-right-circle-line","arrow-right-down-fill","arrow-right-down-line","arrow-right-fill","arrow-right-line","arrow-right-s-fill","arrow-right-s-line","arrow-right-up-fill","arrow-right-up-line","arrow-up-circle-fill","arrow-up-circle-line","arrow-up-down-fill","arrow-up-down-line","arrow-up-fill","arrow-up-line","arrow-up-s-fill","arrow-up-s-line","artboard-2-fill","artboard-2-line","artboard-fill","artboard-line","article-fill","article-line","aspect-ratio-fill","aspect-ratio-line","asterisk","at-fill","at-line","attachment-2","attachment-fill","attachment-line","auction-fill","auction-line","award-fill","award-line","baidu-fill","baidu-line","ball-pen-fill","ball-pen-line","bank-card-2-fill","bank-card-2-line","bank-card-fill","bank-card-line","bank-fill","bank-line","bar-chart-2-fill","bar-chart-2-line","bar-chart-box-fill","bar-chart-box-line","bar-chart-fill","bar-chart-grouped-fill","bar-chart-grouped-line","bar-chart-horizontal-fill","bar-chart-horizontal-line","bar-chart-line","barcode-box-fill","barcode-box-line","barcode-fill","barcode-line","barricade-fill","barricade-line","base-station-fill","base-station-line","basketball-fill","basketball-line","battery-2-charge-fill","battery-2-charge-line","battery-2-fill","battery-2-line","battery-charge-fill","battery-charge-line","battery-fill","battery-line","battery-low-fill","battery-low-line","battery-saver-fill","battery-saver-line","battery-share-fill","battery-share-line","bear-smile-fill","bear-smile-line","behance-fill","behance-line","bell-fill","bell-line","bike-fill","bike-line","bilibili-fill","bilibili-line","bill-fill","bill-line","billiards-fill","billiards-line","bit-coin-fill","bit-coin-line","blaze-fill","blaze-line","bluetooth-connect-fill","bluetooth-connect-line","bluetooth-fill","bluetooth-line","blur-off-fill","blur-off-line","body-scan-fill","body-scan-line","bold","book-2-fill","book-2-line","book-3-fill","book-3-line","book-fill","book-line","book-mark-fill","book-mark-line","book-open-fill","book-open-line","book-read-fill","book-read-line","booklet-fill","booklet-line","bookmark-2-fill","bookmark-2-line","bookmark-3-fill","bookmark-3-line","bookmark-fill","bookmark-line","boxing-fill","boxing-line","braces-fill","braces-line","brackets-fill","brackets-line","briefcase-2-fill","briefcase-2-line","briefcase-3-fill","briefcase-3-line","briefcase-4-fill","briefcase-4-line","briefcase-5-fill","briefcase-5-line","briefcase-fill","briefcase-line","bring-forward","bring-to-front","broadcast-fill","broadcast-line","brush-2-fill","brush-2-line","brush-3-fill","brush-3-line","brush-4-fill","brush-4-line","brush-fill","brush-line","bubble-chart-fill","bubble-chart-line","bug-2-fill","bug-2-line","bug-fill","bug-line","building-2-fill","building-2-line","building-3-fill","building-3-line","building-4-fill","building-4-line","building-fill","building-line","bus-2-fill","bus-2-line","bus-fill","bus-line","bus-wifi-fill","bus-wifi-line","cactus-fill","cactus-line","cake-2-fill","cake-2-line","cake-3-fill","cake-3-line","cake-fill","cake-line","calculator-fill","calculator-line","calendar-2-fill","calendar-2-line","calendar-check-fill","calendar-check-line","calendar-event-fill","calendar-event-line","calendar-fill","calendar-line","calendar-todo-fill","calendar-todo-line","camera-2-fill","camera-2-line","camera-3-fill","camera-3-line","camera-fill","camera-lens-fill","camera-lens-line","camera-line","camera-off-fill","camera-off-line","camera-switch-fill","camera-switch-line","capsule-fill","capsule-line","car-fill","car-line","car-washing-fill","car-washing-line","caravan-fill","caravan-line","cast-fill","cast-line","cellphone-fill","cellphone-line","celsius-fill","celsius-line","centos-fill","centos-line","character-recognition-fill","character-recognition-line","charging-pile-2-fill","charging-pile-2-line","charging-pile-fill","charging-pile-line","chat-1-fill","chat-1-line","chat-2-fill","chat-2-line","chat-3-fill","chat-3-line","chat-4-fill","chat-4-line","chat-check-fill","chat-check-line","chat-delete-fill","chat-delete-line","chat-download-fill","chat-download-line","chat-follow-up-fill","chat-follow-up-line","chat-forward-fill","chat-forward-line","chat-heart-fill","chat-heart-line","chat-history-fill","chat-history-line","chat-new-fill","chat-new-line","chat-off-fill","chat-off-line","chat-poll-fill","chat-poll-line","chat-private-fill","chat-private-line","chat-quote-fill","chat-quote-line","chat-settings-fill","chat-settings-line","chat-smile-2-fill","chat-smile-2-line","chat-smile-3-fill","chat-smile-3-line","chat-smile-fill","chat-smile-line","chat-upload-fill","chat-upload-line","chat-voice-fill","chat-voice-line","check-double-fill","check-double-line","check-fill","check-line","checkbox-blank-circle-fill","checkbox-blank-circle-line","checkbox-blank-fill","checkbox-blank-line","checkbox-circle-fill","checkbox-circle-line","checkbox-fill","checkbox-indeterminate-fill","checkbox-indeterminate-line","checkbox-line","checkbox-multiple-blank-fill","checkbox-multiple-blank-line","checkbox-multiple-fill","checkbox-multiple-line","china-railway-fill","china-railway-line","chrome-fill","chrome-line","clapperboard-fill","clapperboard-line","clipboard-fill","clipboard-line","clockwise-2-fill","clockwise-2-line","clockwise-fill","clockwise-line","close-circle-fill","close-circle-line","close-fill","close-line","closed-captioning-fill","closed-captioning-line","cloud-fill","cloud-line","cloud-off-fill","cloud-off-line","cloud-windy-fill","cloud-windy-line","cloudy-2-fill","cloudy-2-line","cloudy-fill","cloudy-line","code-box-fill","code-box-line","code-fill","code-line","code-s-fill","code-s-line","code-s-slash-fill","code-s-slash-line","code-view","codepen-fill","codepen-line","coin-fill","coin-line","coins-fill","coins-line","collage-fill","collage-line","command-fill","command-line","community-fill","community-line","compass-2-fill","compass-2-line","compass-3-fill","compass-3-line","compass-4-fill","compass-4-line","compass-discover-fill","compass-discover-line","compass-fill","compass-line","compasses-2-fill","compasses-2-line","compasses-fill","compasses-line","computer-fill","computer-line","contacts-book-2-fill","contacts-book-2-line","contacts-book-fill","contacts-book-line","contacts-book-upload-fill","contacts-book-upload-line","contacts-fill","contacts-line","contrast-2-fill","contrast-2-line","contrast-drop-2-fill","contrast-drop-2-line","contrast-drop-fill","contrast-drop-line","contrast-fill","contrast-line","copper-coin-fill","copper-coin-line","copper-diamond-fill","copper-diamond-line","copyleft-fill","copyleft-line","copyright-fill","copyright-line","coreos-fill","coreos-line","coupon-2-fill","coupon-2-line","coupon-3-fill","coupon-3-line","coupon-4-fill","coupon-4-line","coupon-5-fill","coupon-5-line","coupon-fill","coupon-line","cpu-fill","cpu-line","creative-commons-by-fill","creative-commons-by-line","creative-commons-fill","creative-commons-line","creative-commons-nc-fill","creative-commons-nc-line","creative-commons-nd-fill","creative-commons-nd-line","creative-commons-sa-fill","creative-commons-sa-line","creative-commons-zero-fill","creative-commons-zero-line","criminal-fill","criminal-line","crop-2-fill","crop-2-line","crop-fill","crop-line","css3-fill","css3-line","cup-fill","cup-line","currency-fill","currency-line","cursor-fill","cursor-line","customer-service-2-fill","customer-service-2-line","customer-service-fill","customer-service-line","dashboard-2-fill","dashboard-2-line","dashboard-3-fill","dashboard-3-line","dashboard-fill","dashboard-line","database-2-fill","database-2-line","database-fill","database-line","delete-back-2-fill","delete-back-2-line","delete-back-fill","delete-back-line","delete-bin-2-fill","delete-bin-2-line","delete-bin-3-fill","delete-bin-3-line","delete-bin-4-fill","delete-bin-4-line","delete-bin-5-fill","delete-bin-5-line","delete-bin-6-fill","delete-bin-6-line","delete-bin-7-fill","delete-bin-7-line","delete-bin-fill","delete-bin-line","delete-column","delete-row","device-fill","device-line","device-recover-fill","device-recover-line","dingding-fill","dingding-line","direction-fill","direction-line","disc-fill","disc-line","discord-fill","discord-line","discuss-fill","discuss-line","dislike-fill","dislike-line","disqus-fill","disqus-line","divide-fill","divide-line","donut-chart-fill","donut-chart-line","door-closed-fill","door-closed-line","door-fill","door-line","door-lock-box-fill","door-lock-box-line","door-lock-fill","door-lock-line","door-open-fill","door-open-line","dossier-fill","dossier-line","douban-fill","douban-line","double-quotes-l","double-quotes-r","download-2-fill","download-2-line","download-cloud-2-fill","download-cloud-2-line","download-cloud-fill","download-cloud-line","download-fill","download-line","draft-fill","draft-line","drag-drop-fill","drag-drop-line","drag-move-2-fill","drag-move-2-line","drag-move-fill","drag-move-line","dribbble-fill","dribbble-line","drive-fill","drive-line","drizzle-fill","drizzle-line","drop-fill","drop-line","dropbox-fill","dropbox-line","dual-sim-1-fill","dual-sim-1-line","dual-sim-2-fill","dual-sim-2-line","dv-fill","dv-line","dvd-fill","dvd-line","e-bike-2-fill","e-bike-2-line","e-bike-fill","e-bike-line","earth-fill","earth-line","earthquake-fill","earthquake-line","edge-fill","edge-line","edit-2-fill","edit-2-line","edit-box-fill","edit-box-line","edit-circle-fill","edit-circle-line","edit-fill","edit-line","eject-fill","eject-line","emotion-2-fill","emotion-2-line","emotion-fill","emotion-happy-fill","emotion-happy-line","emotion-laugh-fill","emotion-laugh-line","emotion-line","emotion-normal-fill","emotion-normal-line","emotion-sad-fill","emotion-sad-line","emotion-unhappy-fill","emotion-unhappy-line","empathize-fill","empathize-line","emphasis-cn","emphasis","english-input","equalizer-fill","equalizer-line","eraser-fill","eraser-line","error-warning-fill","error-warning-line","evernote-fill","evernote-line","exchange-box-fill","exchange-box-line","exchange-cny-fill","exchange-cny-line","exchange-dollar-fill","exchange-dollar-line","exchange-fill","exchange-funds-fill","exchange-funds-line","exchange-line","external-link-fill","external-link-line","eye-2-fill","eye-2-line","eye-close-fill","eye-close-line","eye-fill","eye-line","eye-off-fill","eye-off-line","facebook-box-fill","facebook-box-line","facebook-circle-fill","facebook-circle-line","facebook-fill","facebook-line","fahrenheit-fill","fahrenheit-line","feedback-fill","feedback-line","file-2-fill","file-2-line","file-3-fill","file-3-line","file-4-fill","file-4-line","file-add-fill","file-add-line","file-chart-2-fill","file-chart-2-line","file-chart-fill","file-chart-line","file-cloud-fill","file-cloud-line","file-code-fill","file-code-line","file-copy-2-fill","file-copy-2-line","file-copy-fill","file-copy-line","file-damage-fill","file-damage-line","file-download-fill","file-download-line","file-edit-fill","file-edit-line","file-excel-2-fill","file-excel-2-line","file-excel-fill","file-excel-line","file-fill","file-forbid-fill","file-forbid-line","file-gif-fill","file-gif-line","file-history-fill","file-history-line","file-hwp-fill","file-hwp-line","file-info-fill","file-info-line","file-line","file-list-2-fill","file-list-2-line","file-list-3-fill","file-list-3-line","file-list-fill","file-list-line","file-lock-fill","file-lock-line","file-mark-fill","file-mark-line","file-music-fill","file-music-line","file-paper-2-fill","file-paper-2-line","file-paper-fill","file-paper-line","file-pdf-fill","file-pdf-line","file-ppt-2-fill","file-ppt-2-line","file-ppt-fill","file-ppt-line","file-reduce-fill","file-reduce-line","file-search-fill","file-search-line","file-settings-fill","file-settings-line","file-shield-2-fill","file-shield-2-line","file-shield-fill","file-shield-line","file-shred-fill","file-shred-line","file-text-fill","file-text-line","file-transfer-fill","file-transfer-line","file-unknow-fill","file-unknow-line","file-upload-fill","file-upload-line","file-user-fill","file-user-line","file-warning-fill","file-warning-line","file-word-2-fill","file-word-2-line","file-word-fill","file-word-line","file-zip-fill","file-zip-line","film-fill","film-line","filter-2-fill","filter-2-line","filter-3-fill","filter-3-line","filter-fill","filter-line","filter-off-fill","filter-off-line","find-replace-fill","find-replace-line","finder-fill","finder-line","fingerprint-2-fill","fingerprint-2-line","fingerprint-fill","fingerprint-line","fire-fill","fire-line","firefox-fill","firefox-line","first-aid-kit-fill","first-aid-kit-line","flag-2-fill","flag-2-line","flag-fill","flag-line","flashlight-fill","flashlight-line","flask-fill","flask-line","flight-land-fill","flight-land-line","flight-takeoff-fill","flight-takeoff-line","flood-fill","flood-line","flow-chart","flutter-fill","flutter-line","focus-2-fill","focus-2-line","focus-3-fill","focus-3-line","focus-fill","focus-line","foggy-fill","foggy-line","folder-2-fill","folder-2-line","folder-3-fill","folder-3-line","folder-4-fill","folder-4-line","folder-5-fill","folder-5-line","folder-add-fill","folder-add-line","folder-chart-2-fill","folder-chart-2-line","folder-chart-fill","folder-chart-line","folder-download-fill","folder-download-line","folder-fill","folder-forbid-fill","folder-forbid-line","folder-history-fill","folder-history-line","folder-info-fill","folder-info-line","folder-keyhole-fill","folder-keyhole-line","folder-line","folder-lock-fill","folder-lock-line","folder-music-fill","folder-music-line","folder-open-fill","folder-open-line","folder-received-fill","folder-received-line","folder-reduce-fill","folder-reduce-line","folder-settings-fill","folder-settings-line","folder-shared-fill","folder-shared-line","folder-shield-2-fill","folder-shield-2-line","folder-shield-fill","folder-shield-line","folder-transfer-fill","folder-transfer-line","folder-unknow-fill","folder-unknow-line","folder-upload-fill","folder-upload-line","folder-user-fill","folder-user-line","folder-warning-fill","folder-warning-line","folder-zip-fill","folder-zip-line","folders-fill","folders-line","font-color","font-size-2","font-size","football-fill","football-line","footprint-fill","footprint-line","forbid-2-fill","forbid-2-line","forbid-fill","forbid-line","format-clear","fridge-fill","fridge-line","fullscreen-exit-fill","fullscreen-exit-line","fullscreen-fill","fullscreen-line","function-fill","function-line","functions","funds-box-fill","funds-box-line","funds-fill","funds-line","gallery-fill","gallery-line","gallery-upload-fill","gallery-upload-line","game-fill","game-line","gamepad-fill","gamepad-line","gas-station-fill","gas-station-line","gatsby-fill","gatsby-line","genderless-fill","genderless-line","ghost-2-fill","ghost-2-line","ghost-fill","ghost-line","ghost-smile-fill","ghost-smile-line","gift-2-fill","gift-2-line","gift-fill","gift-line","git-branch-fill","git-branch-line","git-commit-fill","git-commit-line","git-merge-fill","git-merge-line","git-pull-request-fill","git-pull-request-line","git-repository-commits-fill","git-repository-commits-line","git-repository-fill","git-repository-line","git-repository-private-fill","git-repository-private-line","github-fill","github-line","gitlab-fill","gitlab-line","global-fill","global-line","globe-fill","globe-line","goblet-fill","goblet-line","google-fill","google-line","google-play-fill","google-play-line","government-fill","government-line","gps-fill","gps-line","gradienter-fill","gradienter-line","grid-fill","grid-line","group-2-fill","group-2-line","group-fill","group-line","guide-fill","guide-line","h-1","h-2","h-3","h-4","h-5","h-6","hail-fill","hail-line","hammer-fill","hammer-line","hand-coin-fill","hand-coin-line","hand-heart-fill","hand-heart-line","hand-sanitizer-fill","hand-sanitizer-line","handbag-fill","handbag-line","hard-drive-2-fill","hard-drive-2-line","hard-drive-fill","hard-drive-line","hashtag","haze-2-fill","haze-2-line","haze-fill","haze-line","hd-fill","hd-line","heading","headphone-fill","headphone-line","health-book-fill","health-book-line","heart-2-fill","heart-2-line","heart-3-fill","heart-3-line","heart-add-fill","heart-add-line","heart-fill","heart-line","heart-pulse-fill","heart-pulse-line","hearts-fill","hearts-line","heavy-showers-fill","heavy-showers-line","history-fill","history-line","home-2-fill","home-2-line","home-3-fill","home-3-line","home-4-fill","home-4-line","home-5-fill","home-5-line","home-6-fill","home-6-line","home-7-fill","home-7-line","home-8-fill","home-8-line","home-fill","home-gear-fill","home-gear-line","home-heart-fill","home-heart-line","home-line","home-smile-2-fill","home-smile-2-line","home-smile-fill","home-smile-line","home-wifi-fill","home-wifi-line","honor-of-kings-fill","honor-of-kings-line","honour-fill","honour-line","hospital-fill","hospital-line","hotel-bed-fill","hotel-bed-line","hotel-fill","hotel-line","hotspot-fill","hotspot-line","hq-fill","hq-line","html5-fill","html5-line","ie-fill","ie-line","image-2-fill","image-2-line","image-add-fill","image-add-line","image-edit-fill","image-edit-line","image-fill","image-line","inbox-archive-fill","inbox-archive-line","inbox-fill","inbox-line","inbox-unarchive-fill","inbox-unarchive-line","increase-decrease-fill","increase-decrease-line","indent-decrease","indent-increase","indeterminate-circle-fill","indeterminate-circle-line","information-fill","information-line","infrared-thermometer-fill","infrared-thermometer-line","ink-bottle-fill","ink-bottle-line","input-cursor-move","input-method-fill","input-method-line","insert-column-left","insert-column-right","insert-row-bottom","insert-row-top","instagram-fill","instagram-line","install-fill","install-line","invision-fill","invision-line","italic","kakao-talk-fill","kakao-talk-line","key-2-fill","key-2-line","key-fill","key-line","keyboard-box-fill","keyboard-box-line","keyboard-fill","keyboard-line","keynote-fill","keynote-line","knife-blood-fill","knife-blood-line","knife-fill","knife-line","landscape-fill","landscape-line","layout-2-fill","layout-2-line","layout-3-fill","layout-3-line","layout-4-fill","layout-4-line","layout-5-fill","layout-5-line","layout-6-fill","layout-6-line","layout-bottom-2-fill","layout-bottom-2-line","layout-bottom-fill","layout-bottom-line","layout-column-fill","layout-column-line","layout-fill","layout-grid-fill","layout-grid-line","layout-left-2-fill","layout-left-2-line","layout-left-fill","layout-left-line","layout-line","layout-masonry-fill","layout-masonry-line","layout-right-2-fill","layout-right-2-line","layout-right-fill","layout-right-line","layout-row-fill","layout-row-line","layout-top-2-fill","layout-top-2-line","layout-top-fill","layout-top-line","leaf-fill","leaf-line","lifebuoy-fill","lifebuoy-line","lightbulb-fill","lightbulb-flash-fill","lightbulb-flash-line","lightbulb-line","line-chart-fill","line-chart-line","line-fill","line-height","line-line","link-m","link-unlink-m","link-unlink","link","linkedin-box-fill","linkedin-box-line","linkedin-fill","linkedin-line","links-fill","links-line","list-check-2","list-check","list-ordered","list-settings-fill","list-settings-line","list-unordered","live-fill","live-line","loader-2-fill","loader-2-line","loader-3-fill","loader-3-line","loader-4-fill","loader-4-line","loader-5-fill","loader-5-line","loader-fill","loader-line","lock-2-fill","lock-2-line","lock-fill","lock-line","lock-password-fill","lock-password-line","lock-unlock-fill","lock-unlock-line","login-box-fill","login-box-line","login-circle-fill","login-circle-line","logout-box-fill","logout-box-line","logout-box-r-fill","logout-box-r-line","logout-circle-fill","logout-circle-line","logout-circle-r-fill","logout-circle-r-line","luggage-cart-fill","luggage-cart-line","luggage-deposit-fill","luggage-deposit-line","lungs-fill","lungs-line","mac-fill","mac-line","macbook-fill","macbook-line","magic-fill","magic-line","mail-add-fill","mail-add-line","mail-check-fill","mail-check-line","mail-close-fill","mail-close-line","mail-download-fill","mail-download-line","mail-fill","mail-forbid-fill","mail-forbid-line","mail-line","mail-lock-fill","mail-lock-line","mail-open-fill","mail-open-line","mail-send-fill","mail-send-line","mail-settings-fill","mail-settings-line","mail-star-fill","mail-star-line","mail-unread-fill","mail-unread-line","mail-volume-fill","mail-volume-line","map-2-fill","map-2-line","map-fill","map-line","map-pin-2-fill","map-pin-2-line","map-pin-3-fill","map-pin-3-line","map-pin-4-fill","map-pin-4-line","map-pin-5-fill","map-pin-5-line","map-pin-add-fill","map-pin-add-line","map-pin-fill","map-pin-line","map-pin-range-fill","map-pin-range-line","map-pin-time-fill","map-pin-time-line","map-pin-user-fill","map-pin-user-line","mark-pen-fill","mark-pen-line","markdown-fill","markdown-line","markup-fill","markup-line","mastercard-fill","mastercard-line","mastodon-fill","mastodon-line","medal-2-fill","medal-2-line","medal-fill","medal-line","medicine-bottle-fill","medicine-bottle-line","medium-fill","medium-line","men-fill","men-line","mental-health-fill","mental-health-line","menu-2-fill","menu-2-line","menu-3-fill","menu-3-line","menu-4-fill","menu-4-line","menu-5-fill","menu-5-line","menu-add-fill","menu-add-line","menu-fill","menu-fold-fill","menu-fold-line","menu-line","menu-unfold-fill","menu-unfold-line","merge-cells-horizontal","merge-cells-vertical","message-2-fill","message-2-line","message-3-fill","message-3-line","message-fill","message-line","messenger-fill","messenger-line","meteor-fill","meteor-line","mic-2-fill","mic-2-line","mic-fill","mic-line","mic-off-fill","mic-off-line","mickey-fill","mickey-line","microscope-fill","microscope-line","microsoft-fill","microsoft-line","mind-map","mini-program-fill","mini-program-line","mist-fill","mist-line","money-cny-box-fill","money-cny-box-line","money-cny-circle-fill","money-cny-circle-line","money-dollar-box-fill","money-dollar-box-line","money-dollar-circle-fill","money-dollar-circle-line","money-euro-box-fill","money-euro-box-line","money-euro-circle-fill","money-euro-circle-line","money-pound-box-fill","money-pound-box-line","money-pound-circle-fill","money-pound-circle-line","moon-clear-fill","moon-clear-line","moon-cloudy-fill","moon-cloudy-line","moon-fill","moon-foggy-fill","moon-foggy-line","moon-line","more-2-fill","more-2-line","more-fill","more-line","motorbike-fill","motorbike-line","mouse-fill","mouse-line","movie-2-fill","movie-2-line","movie-fill","movie-line","music-2-fill","music-2-line","music-fill","music-line","mv-fill","mv-line","navigation-fill","navigation-line","netease-cloud-music-fill","netease-cloud-music-line","netflix-fill","netflix-line","newspaper-fill","newspaper-line","node-tree","notification-2-fill","notification-2-line","notification-3-fill","notification-3-line","notification-4-fill","notification-4-line","notification-badge-fill","notification-badge-line","notification-fill","notification-line","notification-off-fill","notification-off-line","npmjs-fill","npmjs-line","number-0","number-1","number-2","number-3","number-4","number-5","number-6","number-7","number-8","number-9","numbers-fill","numbers-line","nurse-fill","nurse-line","oil-fill","oil-line","omega","open-arm-fill","open-arm-line","open-source-fill","open-source-line","opera-fill","opera-line","order-play-fill","order-play-line","organization-chart","outlet-2-fill","outlet-2-line","outlet-fill","outlet-line","page-separator","pages-fill","pages-line","paint-brush-fill","paint-brush-line","paint-fill","paint-line","palette-fill","palette-line","pantone-fill","pantone-line","paragraph","parent-fill","parent-line","parentheses-fill","parentheses-line","parking-box-fill","parking-box-line","parking-fill","parking-line","passport-fill","passport-line","patreon-fill","patreon-line","pause-circle-fill","pause-circle-line","pause-fill","pause-line","pause-mini-fill","pause-mini-line","paypal-fill","paypal-line","pen-nib-fill","pen-nib-line","pencil-fill","pencil-line","pencil-ruler-2-fill","pencil-ruler-2-line","pencil-ruler-fill","pencil-ruler-line","percent-fill","percent-line","phone-camera-fill","phone-camera-line","phone-fill","phone-find-fill","phone-find-line","phone-line","phone-lock-fill","phone-lock-line","picture-in-picture-2-fill","picture-in-picture-2-line","picture-in-picture-exit-fill","picture-in-picture-exit-line","picture-in-picture-fill","picture-in-picture-line","pie-chart-2-fill","pie-chart-2-line","pie-chart-box-fill","pie-chart-box-line","pie-chart-fill","pie-chart-line","pin-distance-fill","pin-distance-line","ping-pong-fill","ping-pong-line","pinterest-fill","pinterest-line","pinyin-input","pixelfed-fill","pixelfed-line","plane-fill","plane-line","plant-fill","plant-line","play-circle-fill","play-circle-line","play-fill","play-line","play-list-2-fill","play-list-2-line","play-list-add-fill","play-list-add-line","play-list-fill","play-list-line","play-mini-fill","play-mini-line","playstation-fill","playstation-line","plug-2-fill","plug-2-line","plug-fill","plug-line","polaroid-2-fill","polaroid-2-line","polaroid-fill","polaroid-line","police-car-fill","police-car-line","price-tag-2-fill","price-tag-2-line","price-tag-3-fill","price-tag-3-line","price-tag-fill","price-tag-line","printer-cloud-fill","printer-cloud-line","printer-fill","printer-line","product-hunt-fill","product-hunt-line","profile-fill","profile-line","projector-2-fill","projector-2-line","projector-fill","projector-line","psychotherapy-fill","psychotherapy-line","pulse-fill","pulse-line","pushpin-2-fill","pushpin-2-line","pushpin-fill","pushpin-line","qq-fill","qq-line","qr-code-fill","qr-code-line","qr-scan-2-fill","qr-scan-2-line","qr-scan-fill","qr-scan-line","question-answer-fill","question-answer-line","question-fill","question-line","question-mark","questionnaire-fill","questionnaire-line","quill-pen-fill","quill-pen-line","radar-fill","radar-line","radio-2-fill","radio-2-line","radio-button-fill","radio-button-line","radio-fill","radio-line","rainbow-fill","rainbow-line","rainy-fill","rainy-line","reactjs-fill","reactjs-line","record-circle-fill","record-circle-line","record-mail-fill","record-mail-line","recycle-fill","recycle-line","red-packet-fill","red-packet-line","reddit-fill","reddit-line","refresh-fill","refresh-line","refund-2-fill","refund-2-line","refund-fill","refund-line","registered-fill","registered-line","remixicon-fill","remixicon-line","remote-control-2-fill","remote-control-2-line","remote-control-fill","remote-control-line","repeat-2-fill","repeat-2-line","repeat-fill","repeat-line","repeat-one-fill","repeat-one-line","reply-all-fill","reply-all-line","reply-fill","reply-line","reserved-fill","reserved-line","rest-time-fill","rest-time-line","restart-fill","restart-line","restaurant-2-fill","restaurant-2-line","restaurant-fill","restaurant-line","rewind-fill","rewind-line","rewind-mini-fill","rewind-mini-line","rhythm-fill","rhythm-line","riding-fill","riding-line","road-map-fill","road-map-line","roadster-fill","roadster-line","robot-fill","robot-line","rocket-2-fill","rocket-2-line","rocket-fill","rocket-line","rotate-lock-fill","rotate-lock-line","rounded-corner","route-fill","route-line","router-fill","router-line","rss-fill","rss-line","ruler-2-fill","ruler-2-line","ruler-fill","ruler-line","run-fill","run-line","safari-fill","safari-line","safe-2-fill","safe-2-line","safe-fill","safe-line","sailboat-fill","sailboat-line","save-2-fill","save-2-line","save-3-fill","save-3-line","save-fill","save-line","scales-2-fill","scales-2-line","scales-3-fill","scales-3-line","scales-fill","scales-line","scan-2-fill","scan-2-line","scan-fill","scan-line","scissors-2-fill","scissors-2-line","scissors-cut-fill","scissors-cut-line","scissors-fill","scissors-line","screenshot-2-fill","screenshot-2-line","screenshot-fill","screenshot-line","sd-card-fill","sd-card-line","sd-card-mini-fill","sd-card-mini-line","search-2-fill","search-2-line","search-eye-fill","search-eye-line","search-fill","search-line","secure-payment-fill","secure-payment-line","seedling-fill","seedling-line","send-backward","send-plane-2-fill","send-plane-2-line","send-plane-fill","send-plane-line","send-to-back","sensor-fill","sensor-line","separator","server-fill","server-line","service-fill","service-line","settings-2-fill","settings-2-line","settings-3-fill","settings-3-line","settings-4-fill","settings-4-line","settings-5-fill","settings-5-line","settings-6-fill","settings-6-line","settings-fill","settings-line","shape-2-fill","shape-2-line","shape-fill","shape-line","share-box-fill","share-box-line","share-circle-fill","share-circle-line","share-fill","share-forward-2-fill","share-forward-2-line","share-forward-box-fill","share-forward-box-line","share-forward-fill","share-forward-line","share-line","shield-check-fill","shield-check-line","shield-cross-fill","shield-cross-line","shield-fill","shield-flash-fill","shield-flash-line","shield-keyhole-fill","shield-keyhole-line","shield-line","shield-star-fill","shield-star-line","shield-user-fill","shield-user-line","ship-2-fill","ship-2-line","ship-fill","ship-line","shirt-fill","shirt-line","shopping-bag-2-fill","shopping-bag-2-line","shopping-bag-3-fill","shopping-bag-3-line","shopping-bag-fill","shopping-bag-line","shopping-basket-2-fill","shopping-basket-2-line","shopping-basket-fill","shopping-basket-line","shopping-cart-2-fill","shopping-cart-2-line","shopping-cart-fill","shopping-cart-line","showers-fill","showers-line","shuffle-fill","shuffle-line","shut-down-fill","shut-down-line","side-bar-fill","side-bar-line","signal-tower-fill","signal-tower-line","signal-wifi-1-fill","signal-wifi-1-line","signal-wifi-2-fill","signal-wifi-2-line","signal-wifi-3-fill","signal-wifi-3-line","signal-wifi-error-fill","signal-wifi-error-line","signal-wifi-fill","signal-wifi-line","signal-wifi-off-fill","signal-wifi-off-line","sim-card-2-fill","sim-card-2-line","sim-card-fill","sim-card-line","single-quotes-l","single-quotes-r","sip-fill","sip-line","skip-back-fill","skip-back-line","skip-back-mini-fill","skip-back-mini-line","skip-forward-fill","skip-forward-line","skip-forward-mini-fill","skip-forward-mini-line","skull-2-fill","skull-2-line","skull-fill","skull-line","skype-fill","skype-line","slack-fill","slack-line","slice-fill","slice-line","slideshow-2-fill","slideshow-2-line","slideshow-3-fill","slideshow-3-line","slideshow-4-fill","slideshow-4-line","slideshow-fill","slideshow-line","smartphone-fill","smartphone-line","snapchat-fill","snapchat-line","snowy-fill","snowy-line","sort-asc","sort-desc","sound-module-fill","sound-module-line","soundcloud-fill","soundcloud-line","space-ship-fill","space-ship-line","space","spam-2-fill","spam-2-line","spam-3-fill","spam-3-line","spam-fill","spam-line","speaker-2-fill","speaker-2-line","speaker-3-fill","speaker-3-line","speaker-fill","speaker-line","spectrum-fill","spectrum-line","speed-fill","speed-line","speed-mini-fill","speed-mini-line","split-cells-horizontal","split-cells-vertical","spotify-fill","spotify-line","spy-fill","spy-line","stack-fill","stack-line","stack-overflow-fill","stack-overflow-line","stackshare-fill","stackshare-line","star-fill","star-half-fill","star-half-line","star-half-s-fill","star-half-s-line","star-line","star-s-fill","star-s-line","star-smile-fill","star-smile-line","steam-fill","steam-line","steering-2-fill","steering-2-line","steering-fill","steering-line","stethoscope-fill","stethoscope-line","sticky-note-2-fill","sticky-note-2-line","sticky-note-fill","sticky-note-line","stock-fill","stock-line","stop-circle-fill","stop-circle-line","stop-fill","stop-line","stop-mini-fill","stop-mini-line","store-2-fill","store-2-line","store-3-fill","store-3-line","store-fill","store-line","strikethrough-2","strikethrough","subscript-2","subscript","subtract-fill","subtract-line","subway-fill","subway-line","subway-wifi-fill","subway-wifi-line","suitcase-2-fill","suitcase-2-line","suitcase-3-fill","suitcase-3-line","suitcase-fill","suitcase-line","sun-cloudy-fill","sun-cloudy-line","sun-fill","sun-foggy-fill","sun-foggy-line","sun-line","superscript-2","superscript","surgical-mask-fill","surgical-mask-line","surround-sound-fill","surround-sound-line","survey-fill","survey-line","swap-box-fill","swap-box-line","swap-fill","swap-line","switch-fill","switch-line","sword-fill","sword-line","syringe-fill","syringe-line","t-box-fill","t-box-line","t-shirt-2-fill","t-shirt-2-line","t-shirt-air-fill","t-shirt-air-line","t-shirt-fill","t-shirt-line","table-2","table-alt-fill","table-alt-line","table-fill","table-line","tablet-fill","tablet-line","takeaway-fill","takeaway-line","taobao-fill","taobao-line","tape-fill","tape-line","task-fill","task-line","taxi-fill","taxi-line","taxi-wifi-fill","taxi-wifi-line","team-fill","team-line","telegram-fill","telegram-line","temp-cold-fill","temp-cold-line","temp-hot-fill","temp-hot-line","terminal-box-fill","terminal-box-line","terminal-fill","terminal-line","terminal-window-fill","terminal-window-line","test-tube-fill","test-tube-line","text-direction-l","text-direction-r","text-spacing","text-wrap","text","thermometer-fill","thermometer-line","thumb-down-fill","thumb-down-line","thumb-up-fill","thumb-up-line","thunderstorms-fill","thunderstorms-line","ticket-2-fill","ticket-2-line","ticket-fill","ticket-line","time-fill","time-line","timer-2-fill","timer-2-line","timer-fill","timer-flash-fill","timer-flash-line","timer-line","todo-fill","todo-line","toggle-fill","toggle-line","tools-fill","tools-line","tornado-fill","tornado-line","trademark-fill","trademark-line","traffic-light-fill","traffic-light-line","train-fill","train-line","train-wifi-fill","train-wifi-line","translate-2","translate","travesti-fill","travesti-line","treasure-map-fill","treasure-map-line","trello-fill","trello-line","trophy-fill","trophy-line","truck-fill","truck-line","tumblr-fill","tumblr-line","tv-2-fill","tv-2-line","tv-fill","tv-line","twitch-fill","twitch-line","twitter-fill","twitter-line","typhoon-fill","typhoon-line","u-disk-fill","u-disk-line","ubuntu-fill","ubuntu-line","umbrella-fill","umbrella-line","underline","uninstall-fill","uninstall-line","unsplash-fill","unsplash-line","upload-2-fill","upload-2-line","upload-cloud-2-fill","upload-cloud-2-line","upload-cloud-fill","upload-cloud-line","upload-fill","upload-line","usb-fill","usb-line","user-2-fill","user-2-line","user-3-fill","user-3-line","user-4-fill","user-4-line","user-5-fill","user-5-line","user-6-fill","user-6-line","user-add-fill","user-add-line","user-fill","user-follow-fill","user-follow-line","user-heart-fill","user-heart-line","user-line","user-location-fill","user-location-line","user-received-2-fill","user-received-2-line","user-received-fill","user-received-line","user-search-fill","user-search-line","user-settings-fill","user-settings-line","user-shared-2-fill","user-shared-2-line","user-shared-fill","user-shared-line","user-smile-fill","user-smile-line","user-star-fill","user-star-line","user-unfollow-fill","user-unfollow-line","user-voice-fill","user-voice-line","video-add-fill","video-add-line","video-chat-fill","video-chat-line","video-download-fill","video-download-line","video-fill","video-line","video-upload-fill","video-upload-line","vidicon-2-fill","vidicon-2-line","vidicon-fill","vidicon-line","vimeo-fill","vimeo-line","vip-crown-2-fill","vip-crown-2-line","vip-crown-fill","vip-crown-line","vip-diamond-fill","vip-diamond-line","vip-fill","vip-line","virus-fill","virus-line","visa-fill","visa-line","voice-recognition-fill","voice-recognition-line","voiceprint-fill","voiceprint-line","volume-down-fill","volume-down-line","volume-mute-fill","volume-mute-line","volume-off-vibrate-fill","volume-off-vibrate-line","volume-up-fill","volume-up-line","volume-vibrate-fill","volume-vibrate-line","vuejs-fill","vuejs-line","walk-fill","walk-line","wallet-2-fill","wallet-2-line","wallet-3-fill","wallet-3-line","wallet-fill","wallet-line","water-flash-fill","water-flash-line","webcam-fill","webcam-line","wechat-2-fill","wechat-2-line","wechat-fill","wechat-line","wechat-pay-fill","wechat-pay-line","weibo-fill","weibo-line","whatsapp-fill","whatsapp-line","wheelchair-fill","wheelchair-line","wifi-fill","wifi-line","wifi-off-fill","wifi-off-line","window-2-fill","window-2-line","window-fill","window-line","windows-fill","windows-line","windy-fill","windy-line","wireless-charging-fill","wireless-charging-line","women-fill","women-line","wubi-input","xbox-fill","xbox-line","xing-fill","xing-line","youtube-fill","youtube-line","zcool-fill","zcool-line","zhihu-fill","zhihu-line","zoom-in-fill","zoom-in-line","zoom-out-fill","zoom-out-line","zzz-fill","zzz-line"],wSe="",mj=16,$be=b.defineComponent({name:"JwtIconSelect",props:{modelValue:{type:String,default:"settings-3-line"}},emits:["update:modelValue","change"],setup(e,{emit:t}){const n=b.reactive({searchVal:"",listData:By.slice(0,mj),allIconData:[],pagination:{pageNo:1,pageSize:mj,total:By.length,layout:"total, prev, next"}}),r=b.computed({get:()=>e.modelValue||"settings-3-line",set:f=>{t("update:modelValue",f)}}),i=f=>{n.pagination.pageSize=f},o=f=>{n.pagination.pageNo=f,u()},a=f=>{r.value=f,t("change",f)},l=()=>{n.pagination.pageNo=1,u()},u=()=>{let f=[];n.searchVal?f=By.filter(d=>d.includes(n.searchVal)):f=By,n.pagination.total=f.length,n.listData=f.slice((n.pagination.pageNo-1)*16,n.pagination.pageNo*16)};return{...b.toRefs(n),selectIcon:r,handleSearchIcon:l,handleSelectIcon:a,handleSizeChange:i,handleCurrentChange:o}}}),Ebe=(e=>(b.pushScopeId("data-v-300ad8ec"),e=e(),b.popScopeId(),e))(()=>b.createElementVNode("span",{style:{padding:"0 5px"}},"\u56FE\u6807\u9009\u62E9\u5668",-1)),Cbe={class:"jwt-icon-select-wrapper"};function Sbe(e,t,n,r,i,o){const a=b.resolveComponent("jwt-icon"),l=b.resolveComponent("el-button"),u=b.resolveComponent("el-input"),f=b.resolveComponent("el-col"),d=b.resolveComponent("el-row"),p=b.resolveComponent("el-card"),g=b.resolveComponent("el-pagination"),h=b.resolveComponent("el-popover");return b.openBlock(),b.createBlock(h,{trigger:"click",width:300},{reference:b.withCtx(()=>[b.createVNode(l,null,{default:b.withCtx(()=>[b.createVNode(a,{icon:e.selectIcon},null,8,["icon"]),Ebe,b.createVNode(a,{icon:"arrow-down-s-line"})]),_:1})]),default:b.withCtx(()=>[b.createElementVNode("div",Cbe,[b.createVNode(d,null,{default:b.withCtx(()=>[b.createVNode(f,{span:18},{default:b.withCtx(()=>[b.createVNode(u,{modelValue:e.searchVal,"onUpdate:modelValue":t[0]||(t[0]=E=>e.searchVal=E),clearable:"",placeholder:"",onKeydown:b.withKeys(e.handleSearchIcon,["enter"])},null,8,["modelValue","onKeydown"])]),_:1}),b.createVNode(f,{offset:1,span:4},{default:b.withCtx(()=>[b.createVNode(l,{type:"primary",onClick:e.handleSearchIcon},{default:b.withCtx(()=>[b.createTextVNode("\u67E5\u8BE2")]),_:1},8,["onClick"])]),_:1})]),_:1}),b.createVNode(d,{class:"icon-list",gutter:10},{default:b.withCtx(()=>[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(e.listData,(E,w)=>(b.openBlock(),b.createBlock(f,{key:w,span:6},{default:b.withCtx(()=>[b.createVNode(p,{"body-style":{padding:"5px",textAlign:"center"},shadow:"hover",onClick:y=>e.handleSelectIcon(E)},{default:b.withCtx(()=>[b.createVNode(a,{icon:E,size:"30"},null,8,["icon"])]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1}),b.createVNode(d,{class:"pagination",justify:"center"},{default:b.withCtx(()=>[b.createVNode(f,{span:18},{default:b.withCtx(()=>[b.createVNode(g,{background:"","current-page":e.pagination.pageNo,layout:e.pagination.layout,"page-size":e.pagination.pageSize,total:e.pagination.total,onCurrentChange:e.handleCurrentChange,onSizeChange:e.handleSizeChange},null,8,["current-page","layout","page-size","total","onCurrentChange","onSizeChange"])]),_:1})]),_:1})])]),_:1})}const xbe=Object.freeze(Object.defineProperty({__proto__:null,default:yr($be,[["render",Sbe],["__scopeId","data-v-300ad8ec"]])},Symbol.toStringTag,{value:"Module"})),CSe="",Dbe=b.defineComponent({name:"JwtImage",inheritAttrs:!1,props:{fit:{type:String,default:"cover"},src:{type:String,default:""},type:{type:String,default:""},fillUrl:{type:Function,default:null}},emits:["table-action"],setup(e){const t=b.useAttrs(),n=o=>e.fillUrl&&Wt.isFunction(e.fillUrl)?e.fillUrl(o):o,r=b.computed(()=>n(e.src)),i=b.computed(()=>({search:"search-line",add:"add-circle-line",delete:"delete-bin-line"})[e.type]);return{attrs:t,imgPath:r,icon:i}}}),Abe={key:0,class:"base-image-mask"};function _be(e,t,n,r,i,o){const a=b.resolveComponent("el-image"),l=b.resolveComponent("jwt-icon");return b.openBlock(),b.createElementBlock("div",b.mergeProps({class:"base-image-wrapper"},e.attrs),[b.createVNode(a,b.mergeProps({fit:e.fit,"preview-src-list":[e.imgPath],"preview-teleported":"",src:e.imgPath},e.attrs),null,16,["fit","preview-src-list","src"]),e.icon?(b.openBlock(),b.createElementBlock("div",Abe,[b.createVNode(l,{icon:e.icon,size:"36"},null,8,["icon"])])):b.createCommentVNode("",!0)],16)}const kbe=Object.freeze(Object.defineProperty({__proto__:null,default:yr(Dbe,[["render",_be],["__scopeId","data-v-1cd3f07f"]])},Symbol.toStringTag,{value:"Module"})),xSe="",Obe=b.defineComponent({name:"JwtInput",components:{},inheritAttrs:!1,props:{modelValue:{type:[String,Number],default:null},defaultBg:{type:String,default:"red"},changeBg:{type:String,default:"blue"},textColor:{type:String,default:""}},emits:["update:modelValue","blur"],setup(e,{emit:t}){const n=b.useAttrs(),r=b.reactive({oldVal:e.modelValue}),i=b.computed({get:()=>e.modelValue||"",set:l=>{t("update:modelValue",l)}}),o=b.computed(()=>r.oldVal!==i.value),a=()=>{r.oldVal!==i.value&&(r.oldVal=i.value,t("blur",i.value))};return b.onMounted(()=>{}),{...b.toRefs(r),attrs:n,inputModel:i,newValDiffOldVal:o,handleBlur:a}}});function Bbe(e,t,n,r,i,o){const a=b.resolveComponent("el-input");return b.openBlock(),b.createBlock(a,b.mergeProps({modelValue:e.inputModel,"onUpdate:modelValue":t[0]||(t[0]=l=>e.inputModel=l),class:"input-change-style",style:{backgroundColor:`${e.newValDiffOldVal?e.changeBg:e.defaultBg}`,color:e.textColor}},e.attrs,{onBlur:e.handleBlur}),null,16,["modelValue","style","onBlur"])}const Tbe=Object.freeze(Object.defineProperty({__proto__:null,default:yr(Obe,[["render",Bbe],["__scopeId","data-v-04712864"]])},Symbol.toStringTag,{value:"Module"})),ASe="",Fbe=b.defineComponent({name:"JwtRateIcon",props:{modelValue:{type:[Number,String],default:0},size:{type:[Number,String],default:18},disabled:{type:Boolean,default:!1},voidIcon:{type:String,default:"star-line"},icon:{type:String,default:"star-fill"},color:{type:String,default:"#f7ba2a"},voidColor:{type:String,default:"#c6d1de"},max:{type:[Number,String],default:5}},emits:["update:modelValue","change"],setup(e,{emit:t}){const n=b.computed(()=>Math.min(+e.max,10)),r=b.reactive({activeIndex:e.modelValue,hoverIndex:e.modelValue});b.watchEffect(()=>{r.activeIndex=e.modelValue,r.hoverIndex=e.modelValue});const i=u=>{e.disabled||(r.hoverIndex=u+1)},o=()=>{e.disabled||(r.hoverIndex=r.activeIndex)},a=u=>{e.disabled||(r.activeIndex=u+1,r.hoverInde=u+1,t("update:modelValue",u+1),t("change",u+1))},l=()=>{e.disabled||(r.activeIndex=0,r.hoverInde=0,t("update:modelValue",0),t("change",0))};return{...b.toRefs(r),maxLenIcon:n,handleMouseenter:i,handleMouseleave:o,handleChange:a,handleDblclick:l}}}),Pbe={class:"base-rate-icon"};function Ibe(e,t,n,r,i,o){const a=b.resolveComponent("jwt-icon");return b.openBlock(),b.createElementBlock("div",Pbe,[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(e.maxLenIcon,(l,u)=>(b.openBlock(),b.createBlock(a,{key:u,class:"mr5 cp",icon:e.hoverIndex>u?e.icon:e.voidIcon,style:b.normalizeStyle({fontSize:e.size+"px",color:e.hoverIndex>u?e.color:e.voidColor}),onClick:b.withModifiers(f=>e.handleChange(u),["stop"]),onDblclick:f=>e.handleDblclick(u),onMouseenter:f=>e.handleMouseenter(u),onMouseleave:e.handleMouseleave},null,8,["icon","style","onClick","onDblclick","onMouseenter","onMouseleave"]))),128))])}const Nbe=Object.freeze(Object.defineProperty({__proto__:null,default:yr(Fbe,[["render",Ibe],["__scopeId","data-v-7df1a692"]])},Symbol.toStringTag,{value:"Module"})),kSe="",Lbe=b.defineComponent({name:"JwtSelectServer",components:{},props:{listApi:{type:String,default:""},searchKey:{type:String,default:"search"},labelKey:{type:String,default:"title"},valueKey:{type:String,default:"id"},avatarKey:{type:String,default:""},exParams:{type:Object,default:()=>{}},modelValue:{type:[String,Number,Array],default:""},searchValueKey:{type:Boolean,default:!1},request:{type:Function,require:!0,default:()=>{}},fillUrl:{type:Function,default:null}},emits:["update:modelValue","change","select"],setup(e,{emit:t}){const n=b.reactive({content:"",listData:[],searchVal:"",timer:null}),r=b.computed({get:()=>e.modelValue||"",set:l=>{t("update:modelValue",l)}}),i=(l=!1)=>{const{listApi:u,searchKey:f,valueKey:d,searchValueKey:p}=e;if(!u)return;const g={sort:"id",order:"desc",per_page:100,...e.exParams};g[f]=n.searchVal,l&&p&&(g[d]=r.value||""),e.request({url:u,method:"get",params:g}).then(h=>{n.listData=h.data})},o=l=>{if(t("change",l),l){const{valueKey:u}=e,f=n.listData.find(d=>d[u]===l);t("select",f)}},a=l=>{n.searchVal=l,l?(clearTimeout(n.timer),n.timer=setTimeout(()=>{i()},500)):i()};return b.onMounted(()=>{setTimeout(()=>{i(!0)},50)}),{selectModel:r,...b.toRefs(n),handleSelectChange:o,remoteMethod:a,getDataList:i}}}),Rbe={key:0,class:"fxm ptb10"},Mbe=["src"],jbe={class:"ml10"};function zbe(e,t,n,r,i,o){const a=b.resolveComponent("el-option"),l=b.resolveComponent("el-select");return b.openBlock(),b.createBlock(l,{modelValue:e.selectModel,"onUpdate:modelValue":t[0]||(t[0]=u=>e.selectModel=u),clearable:"",filterable:"",placeholder:"",remote:"","remote-method":e.remoteMethod,onChange:e.handleSelectChange},{default:b.withCtx(()=>[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(e.listData,(u,f)=>(b.openBlock(),b.createBlock(a,{key:f,class:b.normalizeClass({"avatar-logo":e.avatarKey}),label:u[e.labelKey],value:u[e.valueKey]},{default:b.withCtx(()=>[e.avatarKey?(b.openBlock(),b.createElementBlock("div",Rbe,[b.createElementVNode("img",{class:"w40 r100px",src:e.fillUrl(u[e.avatarKey])},null,8,Mbe),b.createElementVNode("span",jbe,b.toDisplayString(u[e.labelKey]),1)])):b.createCommentVNode("",!0)]),_:2},1032,["class","label","value"]))),128))]),_:1},8,["modelValue","remote-method","onChange"])}const Vbe=Object.freeze(Object.defineProperty({__proto__:null,default:yr(Lbe,[["render",zbe]])},Symbol.toStringTag,{value:"Module"}));var Eg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ube(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Hbe(e){var t=e.default;if(typeof t=="function"){var n=function(){return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var aa={exports:{}};/**
181
181
  * @license
182
182
  * Lodash <https://lodash.com/>
183
183
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
184
184
  * Released under MIT license <https://lodash.com/license>
185
185
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
186
186
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
187
- */(function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",l="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",f=500,d="__lodash_placeholder__",p=1,g=2,h=4,E=1,w=2,y=1,$=2,m=4,S=8,D=16,A=32,B=64,P=128,U=256,Y=512,ce=30,ee="...",ge=800,se=16,xe=1,ve=2,Oe=3,Te=1/0,Ne=9007199254740991,Re=17976931348623157e292,Ae=0/0,ae=4294967295,M=ae-1,R=ae>>>1,T=[["ary",P],["bind",y],["bindKey",$],["curry",S],["curryRight",D],["flip",Y],["partial",A],["partialRight",B],["rearg",U]],L="[object Arguments]",q="[object Array]",O="[object AsyncFunction]",J="[object Boolean]",ue="[object Date]",he="[object DOMException]",te="[object Error]",Q="[object Function]",Ce="[object GeneratorFunction]",oe="[object Map]",ye="[object Number]",Le="[object Null]",$t="[object Object]",ft="[object Promise]",ot="[object Proxy]",Ze="[object RegExp]",dt="[object Set]",pt="[object String]",rn="[object Symbol]",In="[object Undefined]",mt="[object WeakMap]",on="[object WeakSet]",Kt="[object ArrayBuffer]",Yt="[object DataView]",Jn="[object Float32Array]",dn="[object Float64Array]",Nn="[object Int8Array]",Di="[object Int16Array]",Zi="[object Int32Array]",$r="[object Uint8Array]",Fr="[object Uint8ClampedArray]",Ai="[object Uint16Array]",Pr="[object Uint32Array]",Qr=/\b__p \+= '';/g,Er=/\b(__p \+=) '' \+/g,To=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Fl=/&(?:amp|lt|gt|quot|#39);/g,Fo=/[&<>"']/g,pu=RegExp(Fl.source),la=RegExp(Fo.source),hu=/<%-([\s\S]+?)%>/g,gu=/<%([\s\S]+?)%>/g,Pl=/<%=([\s\S]+?)%>/g,Po=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Af=/^\w*$/,Qi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,vu=/[\\^$.*+?()[\]{}|]/g,Cg=RegExp(vu.source),mu=/^\s+/,_f=/\s/,yu=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Un=/\{\n\/\* \[wrapped with (.+)\] \*/,Sg=/,? & /,xg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Dg=/[()=,{}\[\]\/\s]/,Ag=/\\(\\)?/g,_g=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Hn=/\w*$/,kg=/^[-+]0x[0-9a-f]+$/i,Og=/^0b[01]+$/i,Bg=/^\[object .+?Constructor\]$/,Tg=/^0o[0-7]+$/i,Fg=/^(?:0|[1-9]\d*)$/,hr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Il=/($^)/,Pg=/['\n\r\u2028\u2029\\]/g,Nl="\\ud800-\\udfff",Ig="\\u0300-\\u036f",Ng="\\ufe20-\\ufe2f",Ll="\\u20d0-\\u20ff",bu=Ig+Ng+Ll,sa="\\u2700-\\u27bf",ei="a-z\\xdf-\\xf6\\xf8-\\xff",wu="\\xac\\xb1\\xd7\\xf7",Lg="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Rg="\\u2000-\\u206f",Mg=" \\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",kf="A-Z\\xc0-\\xd6\\xd8-\\xde",Of="\\ufe0e\\ufe0f",ua=wu+Lg+Rg+Mg,ca="['\u2019]",fa="["+Nl+"]",$u="["+ua+"]",da="["+bu+"]",Bf="\\d+",jg="["+sa+"]",Tf="["+ei+"]",Ff="[^"+Nl+ua+Bf+sa+ei+kf+"]",pa="\\ud83c[\\udffb-\\udfff]",zg="(?:"+da+"|"+pa+")",Pf="[^"+Nl+"]",eo="(?:\\ud83c[\\udde6-\\uddff]){2}",Cr="[\\ud800-\\udbff][\\udc00-\\udfff]",gr="["+kf+"]",_i="\\u200d",If="(?:"+Tf+"|"+Ff+")",ki="(?:"+gr+"|"+Ff+")",Nf="(?:"+ca+"(?:d|ll|m|re|s|t|ve))?",Lf="(?:"+ca+"(?:D|LL|M|RE|S|T|VE))?",Rf=zg+"?",Mf="["+Of+"]?",jf="(?:"+_i+"(?:"+[Pf,eo,Cr].join("|")+")"+Mf+Rf+")*",ar="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",zf="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Eu=Mf+Rf+jf,Rl="(?:"+[jg,eo,Cr].join("|")+")"+Eu,Cu="(?:"+[Pf+da+"?",da,eo,Cr,fa].join("|")+")",Ml=RegExp(ca,"g"),Vg=RegExp(da,"g"),jl=RegExp(pa+"(?="+pa+")|"+Cu+Eu,"g"),Su=RegExp([gr+"?"+Tf+"+"+Nf+"(?="+[$u,gr,"$"].join("|")+")",ki+"+"+Lf+"(?="+[$u,gr+If,"$"].join("|")+")",gr+"?"+If+"+"+Nf,gr+"+"+Lf,zf,ar,Bf,Rl].join("|"),"g"),Vf=RegExp("["+_i+Nl+bu+Of+"]"),Oi=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Uf=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],xu=-1,Pt={};Pt[Jn]=Pt[dn]=Pt[Nn]=Pt[Di]=Pt[Zi]=Pt[$r]=Pt[Fr]=Pt[Ai]=Pt[Pr]=!0,Pt[L]=Pt[q]=Pt[Kt]=Pt[J]=Pt[Yt]=Pt[ue]=Pt[te]=Pt[Q]=Pt[oe]=Pt[ye]=Pt[$t]=Pt[Ze]=Pt[dt]=Pt[pt]=Pt[mt]=!1;var Bt={};Bt[L]=Bt[q]=Bt[Kt]=Bt[Yt]=Bt[J]=Bt[ue]=Bt[Jn]=Bt[dn]=Bt[Nn]=Bt[Di]=Bt[Zi]=Bt[oe]=Bt[ye]=Bt[$t]=Bt[Ze]=Bt[dt]=Bt[pt]=Bt[rn]=Bt[$r]=Bt[Fr]=Bt[Ai]=Bt[Pr]=!0,Bt[te]=Bt[Q]=Bt[mt]=!1;var x={\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:"s"},I={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},H={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},ie={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},qe=parseFloat,Ie=parseInt,ut=typeof Eg=="object"&&Eg&&Eg.Object===Object&&Eg,Et=typeof self=="object"&&self&&self.Object===Object&&self,ct=ut||Et||Function("return this")(),St=t&&!t.nodeType&&t,an=St&&!0&&e&&!e.nodeType&&e,lr=an&&an.exports===St,pn=lr&&ut.process,It=function(){try{var K=an&&an.require&&an.require("util").types;return K||pn&&pn.binding&&pn.binding("util")}catch{}}(),Ln=It&&It.isArrayBuffer,to=It&&It.isDate,Bi=It&&It.isMap,Io=It&&It.isRegExp,Ug=It&&It.isSet,Du=It&&It.isTypedArray;function Zn(K,le,ne){switch(ne.length){case 0:return K.call(le);case 1:return K.call(le,ne[0]);case 2:return K.call(le,ne[0],ne[1]);case 3:return K.call(le,ne[0],ne[1],ne[2])}return K.apply(le,ne)}function x2e(K,le,ne,_e){for(var Xe=-1,_t=K==null?0:K.length;++Xe<_t;){var Wn=K[Xe];le(_e,Wn,ne(Wn),K)}return _e}function Ti(K,le){for(var ne=-1,_e=K==null?0:K.length;++ne<_e&&le(K[ne],ne,K)!==!1;);return K}function D2e(K,le){for(var ne=K==null?0:K.length;ne--&&le(K[ne],ne,K)!==!1;);return K}function bj(K,le){for(var ne=-1,_e=K==null?0:K.length;++ne<_e;)if(!le(K[ne],ne,K))return!1;return!0}function zl(K,le){for(var ne=-1,_e=K==null?0:K.length,Xe=0,_t=[];++ne<_e;){var Wn=K[ne];le(Wn,ne,K)&&(_t[Xe++]=Wn)}return _t}function Ty(K,le){var ne=K==null?0:K.length;return!!ne&&Hf(K,le,0)>-1}function px(K,le,ne){for(var _e=-1,Xe=K==null?0:K.length;++_e<Xe;)if(ne(le,K[_e]))return!0;return!1}function ln(K,le){for(var ne=-1,_e=K==null?0:K.length,Xe=Array(_e);++ne<_e;)Xe[ne]=le(K[ne],ne,K);return Xe}function Vl(K,le){for(var ne=-1,_e=le.length,Xe=K.length;++ne<_e;)K[Xe+ne]=le[ne];return K}function hx(K,le,ne,_e){var Xe=-1,_t=K==null?0:K.length;for(_e&&_t&&(ne=K[++Xe]);++Xe<_t;)ne=le(ne,K[Xe],Xe,K);return ne}function A2e(K,le,ne,_e){var Xe=K==null?0:K.length;for(_e&&Xe&&(ne=K[--Xe]);Xe--;)ne=le(ne,K[Xe],Xe,K);return ne}function gx(K,le){for(var ne=-1,_e=K==null?0:K.length;++ne<_e;)if(le(K[ne],ne,K))return!0;return!1}var _2e=vx("length");function k2e(K){return K.split("")}function O2e(K){return K.match(xg)||[]}function wj(K,le,ne){var _e;return ne(K,function(Xe,_t,Wn){if(le(Xe,_t,Wn))return _e=_t,!1}),_e}function Fy(K,le,ne,_e){for(var Xe=K.length,_t=ne+(_e?1:-1);_e?_t--:++_t<Xe;)if(le(K[_t],_t,K))return _t;return-1}function Hf(K,le,ne){return le===le?V2e(K,le,ne):Fy(K,$j,ne)}function B2e(K,le,ne,_e){for(var Xe=ne-1,_t=K.length;++Xe<_t;)if(_e(K[Xe],le))return Xe;return-1}function $j(K){return K!==K}function Ej(K,le){var ne=K==null?0:K.length;return ne?yx(K,le)/ne:Ae}function vx(K){return function(le){return le==null?n:le[K]}}function mx(K){return function(le){return K==null?n:K[le]}}function Cj(K,le,ne,_e,Xe){return Xe(K,function(_t,Wn,Vt){ne=_e?(_e=!1,_t):le(ne,_t,Wn,Vt)}),ne}function T2e(K,le){var ne=K.length;for(K.sort(le);ne--;)K[ne]=K[ne].value;return K}function yx(K,le){for(var ne,_e=-1,Xe=K.length;++_e<Xe;){var _t=le(K[_e]);_t!==n&&(ne=ne===n?_t:ne+_t)}return ne}function bx(K,le){for(var ne=-1,_e=Array(K);++ne<K;)_e[ne]=le(ne);return _e}function F2e(K,le){return ln(le,function(ne){return[ne,K[ne]]})}function Sj(K){return K&&K.slice(0,_j(K)+1).replace(mu,"")}function ti(K){return function(le){return K(le)}}function wx(K,le){return ln(le,function(ne){return K[ne]})}function Hg(K,le){return K.has(le)}function xj(K,le){for(var ne=-1,_e=K.length;++ne<_e&&Hf(le,K[ne],0)>-1;);return ne}function Dj(K,le){for(var ne=K.length;ne--&&Hf(le,K[ne],0)>-1;);return ne}function P2e(K,le){for(var ne=K.length,_e=0;ne--;)K[ne]===le&&++_e;return _e}var I2e=mx(x),N2e=mx(I);function L2e(K){return"\\"+ie[K]}function R2e(K,le){return K==null?n:K[le]}function Wf(K){return Vf.test(K)}function M2e(K){return Oi.test(K)}function j2e(K){for(var le,ne=[];!(le=K.next()).done;)ne.push(le.value);return ne}function $x(K){var le=-1,ne=Array(K.size);return K.forEach(function(_e,Xe){ne[++le]=[Xe,_e]}),ne}function Aj(K,le){return function(ne){return K(le(ne))}}function Ul(K,le){for(var ne=-1,_e=K.length,Xe=0,_t=[];++ne<_e;){var Wn=K[ne];(Wn===le||Wn===d)&&(K[ne]=d,_t[Xe++]=ne)}return _t}function Py(K){var le=-1,ne=Array(K.size);return K.forEach(function(_e){ne[++le]=_e}),ne}function z2e(K){var le=-1,ne=Array(K.size);return K.forEach(function(_e){ne[++le]=[_e,_e]}),ne}function V2e(K,le,ne){for(var _e=ne-1,Xe=K.length;++_e<Xe;)if(K[_e]===le)return _e;return-1}function U2e(K,le,ne){for(var _e=ne+1;_e--;)if(K[_e]===le)return _e;return _e}function qf(K){return Wf(K)?W2e(K):_2e(K)}function no(K){return Wf(K)?q2e(K):k2e(K)}function _j(K){for(var le=K.length;le--&&_f.test(K.charAt(le)););return le}var H2e=mx(H);function W2e(K){for(var le=jl.lastIndex=0;jl.test(K);)++le;return le}function q2e(K){return K.match(jl)||[]}function G2e(K){return K.match(Su)||[]}var K2e=function K(le){le=le==null?ct:Gf.defaults(ct.Object(),le,Gf.pick(ct,Uf));var ne=le.Array,_e=le.Date,Xe=le.Error,_t=le.Function,Wn=le.Math,Vt=le.Object,Ex=le.RegExp,Y2e=le.String,Fi=le.TypeError,Iy=ne.prototype,X2e=_t.prototype,Kf=Vt.prototype,Ny=le["__core-js_shared__"],Ly=X2e.toString,Nt=Kf.hasOwnProperty,J2e=0,kj=function(){var s=/[^.]+$/.exec(Ny&&Ny.keys&&Ny.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),Ry=Kf.toString,Z2e=Ly.call(Vt),Q2e=ct._,ewe=Ex("^"+Ly.call(Nt).replace(vu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),My=lr?le.Buffer:n,Hl=le.Symbol,jy=le.Uint8Array,Oj=My?My.allocUnsafe:n,zy=Aj(Vt.getPrototypeOf,Vt),Bj=Vt.create,Tj=Kf.propertyIsEnumerable,Vy=Iy.splice,Fj=Hl?Hl.isConcatSpreadable:n,Wg=Hl?Hl.iterator:n,Au=Hl?Hl.toStringTag:n,Uy=function(){try{var s=Tu(Vt,"defineProperty");return s({},"",{}),s}catch{}}(),twe=le.clearTimeout!==ct.clearTimeout&&le.clearTimeout,nwe=_e&&_e.now!==ct.Date.now&&_e.now,rwe=le.setTimeout!==ct.setTimeout&&le.setTimeout,Hy=Wn.ceil,Wy=Wn.floor,Cx=Vt.getOwnPropertySymbols,iwe=My?My.isBuffer:n,Pj=le.isFinite,owe=Iy.join,awe=Aj(Vt.keys,Vt),qn=Wn.max,vr=Wn.min,lwe=_e.now,swe=le.parseInt,Ij=Wn.random,uwe=Iy.reverse,Sx=Tu(le,"DataView"),qg=Tu(le,"Map"),xx=Tu(le,"Promise"),Yf=Tu(le,"Set"),Gg=Tu(le,"WeakMap"),Kg=Tu(Vt,"create"),qy=Gg&&new Gg,Xf={},cwe=Fu(Sx),fwe=Fu(qg),dwe=Fu(xx),pwe=Fu(Yf),hwe=Fu(Gg),Gy=Hl?Hl.prototype:n,Yg=Gy?Gy.valueOf:n,Nj=Gy?Gy.toString:n;function F(s){if(mn(s)&&!Je(s)&&!(s instanceof yt)){if(s instanceof Pi)return s;if(Nt.call(s,"__wrapped__"))return Lz(s)}return new Pi(s)}var Jf=function(){function s(){}return function(c){if(!hn(c))return{};if(Bj)return Bj(c);s.prototype=c;var v=new s;return s.prototype=n,v}}();function Ky(){}function Pi(s,c){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!c,this.__index__=0,this.__values__=n}F.templateSettings={escape:hu,evaluate:gu,interpolate:Pl,variable:"",imports:{_:F}},F.prototype=Ky.prototype,F.prototype.constructor=F,Pi.prototype=Jf(Ky.prototype),Pi.prototype.constructor=Pi;function yt(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ae,this.__views__=[]}function gwe(){var s=new yt(this.__wrapped__);return s.__actions__=Ir(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=Ir(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=Ir(this.__views__),s}function vwe(){if(this.__filtered__){var s=new yt(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function mwe(){var s=this.__wrapped__.value(),c=this.__dir__,v=Je(s),C=c<0,_=v?s.length:0,N=k4e(0,_,this.__views__),z=N.start,W=N.end,X=W-z,fe=C?W:z-1,de=this.__iteratees__,pe=de.length,De=0,Pe=vr(X,this.__takeCount__);if(!v||!C&&_==X&&Pe==X)return az(s,this.__actions__);var ze=[];e:for(;X--&&De<Pe;){fe+=c;for(var at=-1,Ve=s[fe];++at<pe;){var ht=de[at],Ct=ht.iteratee,ii=ht.type,Dr=Ct(Ve);if(ii==ve)Ve=Dr;else if(!Dr){if(ii==xe)continue e;break e}}ze[De++]=Ve}return ze}yt.prototype=Jf(Ky.prototype),yt.prototype.constructor=yt;function _u(s){var c=-1,v=s==null?0:s.length;for(this.clear();++c<v;){var C=s[c];this.set(C[0],C[1])}}function ywe(){this.__data__=Kg?Kg(null):{},this.size=0}function bwe(s){var c=this.has(s)&&delete this.__data__[s];return this.size-=c?1:0,c}function wwe(s){var c=this.__data__;if(Kg){var v=c[s];return v===u?n:v}return Nt.call(c,s)?c[s]:n}function $we(s){var c=this.__data__;return Kg?c[s]!==n:Nt.call(c,s)}function Ewe(s,c){var v=this.__data__;return this.size+=this.has(s)?0:1,v[s]=Kg&&c===n?u:c,this}_u.prototype.clear=ywe,_u.prototype.delete=bwe,_u.prototype.get=wwe,_u.prototype.has=$we,_u.prototype.set=Ewe;function ha(s){var c=-1,v=s==null?0:s.length;for(this.clear();++c<v;){var C=s[c];this.set(C[0],C[1])}}function Cwe(){this.__data__=[],this.size=0}function Swe(s){var c=this.__data__,v=Yy(c,s);if(v<0)return!1;var C=c.length-1;return v==C?c.pop():Vy.call(c,v,1),--this.size,!0}function xwe(s){var c=this.__data__,v=Yy(c,s);return v<0?n:c[v][1]}function Dwe(s){return Yy(this.__data__,s)>-1}function Awe(s,c){var v=this.__data__,C=Yy(v,s);return C<0?(++this.size,v.push([s,c])):v[C][1]=c,this}ha.prototype.clear=Cwe,ha.prototype.delete=Swe,ha.prototype.get=xwe,ha.prototype.has=Dwe,ha.prototype.set=Awe;function ga(s){var c=-1,v=s==null?0:s.length;for(this.clear();++c<v;){var C=s[c];this.set(C[0],C[1])}}function _we(){this.size=0,this.__data__={hash:new _u,map:new(qg||ha),string:new _u}}function kwe(s){var c=lb(this,s).delete(s);return this.size-=c?1:0,c}function Owe(s){return lb(this,s).get(s)}function Bwe(s){return lb(this,s).has(s)}function Twe(s,c){var v=lb(this,s),C=v.size;return v.set(s,c),this.size+=v.size==C?0:1,this}ga.prototype.clear=_we,ga.prototype.delete=kwe,ga.prototype.get=Owe,ga.prototype.has=Bwe,ga.prototype.set=Twe;function ku(s){var c=-1,v=s==null?0:s.length;for(this.__data__=new ga;++c<v;)this.add(s[c])}function Fwe(s){return this.__data__.set(s,u),this}function Pwe(s){return this.__data__.has(s)}ku.prototype.add=ku.prototype.push=Fwe,ku.prototype.has=Pwe;function ro(s){var c=this.__data__=new ha(s);this.size=c.size}function Iwe(){this.__data__=new ha,this.size=0}function Nwe(s){var c=this.__data__,v=c.delete(s);return this.size=c.size,v}function Lwe(s){return this.__data__.get(s)}function Rwe(s){return this.__data__.has(s)}function Mwe(s,c){var v=this.__data__;if(v instanceof ha){var C=v.__data__;if(!qg||C.length<i-1)return C.push([s,c]),this.size=++v.size,this;v=this.__data__=new ga(C)}return v.set(s,c),this.size=v.size,this}ro.prototype.clear=Iwe,ro.prototype.delete=Nwe,ro.prototype.get=Lwe,ro.prototype.has=Rwe,ro.prototype.set=Mwe;function Lj(s,c){var v=Je(s),C=!v&&Pu(s),_=!v&&!C&&Yl(s),N=!v&&!C&&!_&&td(s),z=v||C||_||N,W=z?bx(s.length,Y2e):[],X=W.length;for(var fe in s)(c||Nt.call(s,fe))&&!(z&&(fe=="length"||_&&(fe=="offset"||fe=="parent")||N&&(fe=="buffer"||fe=="byteLength"||fe=="byteOffset")||ba(fe,X)))&&W.push(fe);return W}function Rj(s){var c=s.length;return c?s[Nx(0,c-1)]:n}function jwe(s,c){return sb(Ir(s),Ou(c,0,s.length))}function zwe(s){return sb(Ir(s))}function Dx(s,c,v){(v!==n&&!io(s[c],v)||v===n&&!(c in s))&&va(s,c,v)}function Xg(s,c,v){var C=s[c];(!(Nt.call(s,c)&&io(C,v))||v===n&&!(c in s))&&va(s,c,v)}function Yy(s,c){for(var v=s.length;v--;)if(io(s[v][0],c))return v;return-1}function Vwe(s,c,v,C){return Wl(s,function(_,N,z){c(C,_,v(_),z)}),C}function Mj(s,c){return s&&Lo(c,Qn(c),s)}function Uwe(s,c){return s&&Lo(c,Lr(c),s)}function va(s,c,v){c=="__proto__"&&Uy?Uy(s,c,{configurable:!0,enumerable:!0,value:v,writable:!0}):s[c]=v}function Ax(s,c){for(var v=-1,C=c.length,_=ne(C),N=s==null;++v<C;)_[v]=N?n:l8(s,c[v]);return _}function Ou(s,c,v){return s===s&&(v!==n&&(s=s<=v?s:v),c!==n&&(s=s>=c?s:c)),s}function Ii(s,c,v,C,_,N){var z,W=c&p,X=c&g,fe=c&h;if(v&&(z=_?v(s,C,_,N):v(s)),z!==n)return z;if(!hn(s))return s;var de=Je(s);if(de){if(z=B4e(s),!W)return Ir(s,z)}else{var pe=mr(s),De=pe==Q||pe==Ce;if(Yl(s))return uz(s,W);if(pe==$t||pe==L||De&&!_){if(z=X||De?{}:_z(s),!W)return X?w4e(s,Uwe(z,s)):b4e(s,Mj(z,s))}else{if(!Bt[pe])return _?s:{};z=T4e(s,pe,W)}}N||(N=new ro);var Pe=N.get(s);if(Pe)return Pe;N.set(s,z),rV(s)?s.forEach(function(Ve){z.add(Ii(Ve,c,v,Ve,s,N))}):tV(s)&&s.forEach(function(Ve,ht){z.set(ht,Ii(Ve,c,v,ht,s,N))});var ze=fe?X?Gx:qx:X?Lr:Qn,at=de?n:ze(s);return Ti(at||s,function(Ve,ht){at&&(ht=Ve,Ve=s[ht]),Xg(z,ht,Ii(Ve,c,v,ht,s,N))}),z}function Hwe(s){var c=Qn(s);return function(v){return jj(v,s,c)}}function jj(s,c,v){var C=v.length;if(s==null)return!C;for(s=Vt(s);C--;){var _=v[C],N=c[_],z=s[_];if(z===n&&!(_ in s)||!N(z))return!1}return!0}function zj(s,c,v){if(typeof s!="function")throw new Fi(a);return r0(function(){s.apply(n,v)},c)}function Jg(s,c,v,C){var _=-1,N=Ty,z=!0,W=s.length,X=[],fe=c.length;if(!W)return X;v&&(c=ln(c,ti(v))),C?(N=px,z=!1):c.length>=i&&(N=Hg,z=!1,c=new ku(c));e:for(;++_<W;){var de=s[_],pe=v==null?de:v(de);if(de=C||de!==0?de:0,z&&pe===pe){for(var De=fe;De--;)if(c[De]===pe)continue e;X.push(de)}else N(c,pe,C)||X.push(de)}return X}var Wl=hz(No),Vj=hz(kx,!0);function Wwe(s,c){var v=!0;return Wl(s,function(C,_,N){return v=!!c(C,_,N),v}),v}function Xy(s,c,v){for(var C=-1,_=s.length;++C<_;){var N=s[C],z=c(N);if(z!=null&&(W===n?z===z&&!ri(z):v(z,W)))var W=z,X=N}return X}function qwe(s,c,v,C){var _=s.length;for(v=nt(v),v<0&&(v=-v>_?0:_+v),C=C===n||C>_?_:nt(C),C<0&&(C+=_),C=v>C?0:oV(C);v<C;)s[v++]=c;return s}function Uj(s,c){var v=[];return Wl(s,function(C,_,N){c(C,_,N)&&v.push(C)}),v}function sr(s,c,v,C,_){var N=-1,z=s.length;for(v||(v=P4e),_||(_=[]);++N<z;){var W=s[N];c>0&&v(W)?c>1?sr(W,c-1,v,C,_):Vl(_,W):C||(_[_.length]=W)}return _}var _x=gz(),Hj=gz(!0);function No(s,c){return s&&_x(s,c,Qn)}function kx(s,c){return s&&Hj(s,c,Qn)}function Jy(s,c){return zl(c,function(v){return wa(s[v])})}function Bu(s,c){c=Gl(c,s);for(var v=0,C=c.length;s!=null&&v<C;)s=s[Ro(c[v++])];return v&&v==C?s:n}function Wj(s,c,v){var C=c(s);return Je(s)?C:Vl(C,v(s))}function Sr(s){return s==null?s===n?In:Le:Au&&Au in Vt(s)?_4e(s):z4e(s)}function Ox(s,c){return s>c}function Gwe(s,c){return s!=null&&Nt.call(s,c)}function Kwe(s,c){return s!=null&&c in Vt(s)}function Ywe(s,c,v){return s>=vr(c,v)&&s<qn(c,v)}function Bx(s,c,v){for(var C=v?px:Ty,_=s[0].length,N=s.length,z=N,W=ne(N),X=1/0,fe=[];z--;){var de=s[z];z&&c&&(de=ln(de,ti(c))),X=vr(de.length,X),W[z]=!v&&(c||_>=120&&de.length>=120)?new ku(z&&de):n}de=s[0];var pe=-1,De=W[0];e:for(;++pe<_&&fe.length<X;){var Pe=de[pe],ze=c?c(Pe):Pe;if(Pe=v||Pe!==0?Pe:0,!(De?Hg(De,ze):C(fe,ze,v))){for(z=N;--z;){var at=W[z];if(!(at?Hg(at,ze):C(s[z],ze,v)))continue e}De&&De.push(ze),fe.push(Pe)}}return fe}function Xwe(s,c,v,C){return No(s,function(_,N,z){c(C,v(_),N,z)}),C}function Zg(s,c,v){c=Gl(c,s),s=Tz(s,c);var C=s==null?s:s[Ro(Li(c))];return C==null?n:Zn(C,s,v)}function qj(s){return mn(s)&&Sr(s)==L}function Jwe(s){return mn(s)&&Sr(s)==Kt}function Zwe(s){return mn(s)&&Sr(s)==ue}function Qg(s,c,v,C,_){return s===c?!0:s==null||c==null||!mn(s)&&!mn(c)?s!==s&&c!==c:Qwe(s,c,v,C,Qg,_)}function Qwe(s,c,v,C,_,N){var z=Je(s),W=Je(c),X=z?q:mr(s),fe=W?q:mr(c);X=X==L?$t:X,fe=fe==L?$t:fe;var de=X==$t,pe=fe==$t,De=X==fe;if(De&&Yl(s)){if(!Yl(c))return!1;z=!0,de=!1}if(De&&!de)return N||(N=new ro),z||td(s)?xz(s,c,v,C,_,N):D4e(s,c,X,v,C,_,N);if(!(v&E)){var Pe=de&&Nt.call(s,"__wrapped__"),ze=pe&&Nt.call(c,"__wrapped__");if(Pe||ze){var at=Pe?s.value():s,Ve=ze?c.value():c;return N||(N=new ro),_(at,Ve,v,C,N)}}return De?(N||(N=new ro),A4e(s,c,v,C,_,N)):!1}function e4e(s){return mn(s)&&mr(s)==oe}function Tx(s,c,v,C){var _=v.length,N=_,z=!C;if(s==null)return!N;for(s=Vt(s);_--;){var W=v[_];if(z&&W[2]?W[1]!==s[W[0]]:!(W[0]in s))return!1}for(;++_<N;){W=v[_];var X=W[0],fe=s[X],de=W[1];if(z&&W[2]){if(fe===n&&!(X in s))return!1}else{var pe=new ro;if(C)var De=C(fe,de,X,s,c,pe);if(!(De===n?Qg(de,fe,E|w,C,pe):De))return!1}}return!0}function Gj(s){if(!hn(s)||N4e(s))return!1;var c=wa(s)?ewe:Bg;return c.test(Fu(s))}function t4e(s){return mn(s)&&Sr(s)==Ze}function n4e(s){return mn(s)&&mr(s)==dt}function r4e(s){return mn(s)&&hb(s.length)&&!!Pt[Sr(s)]}function Kj(s){return typeof s=="function"?s:s==null?Rr:typeof s=="object"?Je(s)?Jj(s[0],s[1]):Xj(s):vV(s)}function Fx(s){if(!n0(s))return awe(s);var c=[];for(var v in Vt(s))Nt.call(s,v)&&v!="constructor"&&c.push(v);return c}function i4e(s){if(!hn(s))return j4e(s);var c=n0(s),v=[];for(var C in s)C=="constructor"&&(c||!Nt.call(s,C))||v.push(C);return v}function Px(s,c){return s<c}function Yj(s,c){var v=-1,C=Nr(s)?ne(s.length):[];return Wl(s,function(_,N,z){C[++v]=c(_,N,z)}),C}function Xj(s){var c=Yx(s);return c.length==1&&c[0][2]?Oz(c[0][0],c[0][1]):function(v){return v===s||Tx(v,s,c)}}function Jj(s,c){return Jx(s)&&kz(c)?Oz(Ro(s),c):function(v){var C=l8(v,s);return C===n&&C===c?s8(v,s):Qg(c,C,E|w)}}function Zy(s,c,v,C,_){s!==c&&_x(c,function(N,z){if(_||(_=new ro),hn(N))o4e(s,c,z,v,Zy,C,_);else{var W=C?C(Qx(s,z),N,z+"",s,c,_):n;W===n&&(W=N),Dx(s,z,W)}},Lr)}function o4e(s,c,v,C,_,N,z){var W=Qx(s,v),X=Qx(c,v),fe=z.get(X);if(fe){Dx(s,v,fe);return}var de=N?N(W,X,v+"",s,c,z):n,pe=de===n;if(pe){var De=Je(X),Pe=!De&&Yl(X),ze=!De&&!Pe&&td(X);de=X,De||Pe||ze?Je(W)?de=W:Cn(W)?de=Ir(W):Pe?(pe=!1,de=uz(X,!0)):ze?(pe=!1,de=cz(X,!0)):de=[]:i0(X)||Pu(X)?(de=W,Pu(W)?de=aV(W):(!hn(W)||wa(W))&&(de=_z(X))):pe=!1}pe&&(z.set(X,de),_(de,X,C,N,z),z.delete(X)),Dx(s,v,de)}function Zj(s,c){var v=s.length;if(!!v)return c+=c<0?v:0,ba(c,v)?s[c]:n}function Qj(s,c,v){c.length?c=ln(c,function(N){return Je(N)?function(z){return Bu(z,N.length===1?N[0]:N)}:N}):c=[Rr];var C=-1;c=ln(c,ti(Me()));var _=Yj(s,function(N,z,W){var X=ln(c,function(fe){return fe(N)});return{criteria:X,index:++C,value:N}});return T2e(_,function(N,z){return y4e(N,z,v)})}function a4e(s,c){return ez(s,c,function(v,C){return s8(s,C)})}function ez(s,c,v){for(var C=-1,_=c.length,N={};++C<_;){var z=c[C],W=Bu(s,z);v(W,z)&&e0(N,Gl(z,s),W)}return N}function l4e(s){return function(c){return Bu(c,s)}}function Ix(s,c,v,C){var _=C?B2e:Hf,N=-1,z=c.length,W=s;for(s===c&&(c=Ir(c)),v&&(W=ln(s,ti(v)));++N<z;)for(var X=0,fe=c[N],de=v?v(fe):fe;(X=_(W,de,X,C))>-1;)W!==s&&Vy.call(W,X,1),Vy.call(s,X,1);return s}function tz(s,c){for(var v=s?c.length:0,C=v-1;v--;){var _=c[v];if(v==C||_!==N){var N=_;ba(_)?Vy.call(s,_,1):Mx(s,_)}}return s}function Nx(s,c){return s+Wy(Ij()*(c-s+1))}function s4e(s,c,v,C){for(var _=-1,N=qn(Hy((c-s)/(v||1)),0),z=ne(N);N--;)z[C?N:++_]=s,s+=v;return z}function Lx(s,c){var v="";if(!s||c<1||c>Ne)return v;do c%2&&(v+=s),c=Wy(c/2),c&&(s+=s);while(c);return v}function st(s,c){return e8(Bz(s,c,Rr),s+"")}function u4e(s){return Rj(nd(s))}function c4e(s,c){var v=nd(s);return sb(v,Ou(c,0,v.length))}function e0(s,c,v,C){if(!hn(s))return s;c=Gl(c,s);for(var _=-1,N=c.length,z=N-1,W=s;W!=null&&++_<N;){var X=Ro(c[_]),fe=v;if(X==="__proto__"||X==="constructor"||X==="prototype")return s;if(_!=z){var de=W[X];fe=C?C(de,X,W):n,fe===n&&(fe=hn(de)?de:ba(c[_+1])?[]:{})}Xg(W,X,fe),W=W[X]}return s}var nz=qy?function(s,c){return qy.set(s,c),s}:Rr,f4e=Uy?function(s,c){return Uy(s,"toString",{configurable:!0,enumerable:!1,value:c8(c),writable:!0})}:Rr;function d4e(s){return sb(nd(s))}function Ni(s,c,v){var C=-1,_=s.length;c<0&&(c=-c>_?0:_+c),v=v>_?_:v,v<0&&(v+=_),_=c>v?0:v-c>>>0,c>>>=0;for(var N=ne(_);++C<_;)N[C]=s[C+c];return N}function p4e(s,c){var v;return Wl(s,function(C,_,N){return v=c(C,_,N),!v}),!!v}function Qy(s,c,v){var C=0,_=s==null?C:s.length;if(typeof c=="number"&&c===c&&_<=R){for(;C<_;){var N=C+_>>>1,z=s[N];z!==null&&!ri(z)&&(v?z<=c:z<c)?C=N+1:_=N}return _}return Rx(s,c,Rr,v)}function Rx(s,c,v,C){var _=0,N=s==null?0:s.length;if(N===0)return 0;c=v(c);for(var z=c!==c,W=c===null,X=ri(c),fe=c===n;_<N;){var de=Wy((_+N)/2),pe=v(s[de]),De=pe!==n,Pe=pe===null,ze=pe===pe,at=ri(pe);if(z)var Ve=C||ze;else fe?Ve=ze&&(C||De):W?Ve=ze&&De&&(C||!Pe):X?Ve=ze&&De&&!Pe&&(C||!at):Pe||at?Ve=!1:Ve=C?pe<=c:pe<c;Ve?_=de+1:N=de}return vr(N,M)}function rz(s,c){for(var v=-1,C=s.length,_=0,N=[];++v<C;){var z=s[v],W=c?c(z):z;if(!v||!io(W,X)){var X=W;N[_++]=z===0?0:z}}return N}function iz(s){return typeof s=="number"?s:ri(s)?Ae:+s}function ni(s){if(typeof s=="string")return s;if(Je(s))return ln(s,ni)+"";if(ri(s))return Nj?Nj.call(s):"";var c=s+"";return c=="0"&&1/s==-Te?"-0":c}function ql(s,c,v){var C=-1,_=Ty,N=s.length,z=!0,W=[],X=W;if(v)z=!1,_=px;else if(N>=i){var fe=c?null:S4e(s);if(fe)return Py(fe);z=!1,_=Hg,X=new ku}else X=c?[]:W;e:for(;++C<N;){var de=s[C],pe=c?c(de):de;if(de=v||de!==0?de:0,z&&pe===pe){for(var De=X.length;De--;)if(X[De]===pe)continue e;c&&X.push(pe),W.push(de)}else _(X,pe,v)||(X!==W&&X.push(pe),W.push(de))}return W}function Mx(s,c){return c=Gl(c,s),s=Tz(s,c),s==null||delete s[Ro(Li(c))]}function oz(s,c,v,C){return e0(s,c,v(Bu(s,c)),C)}function eb(s,c,v,C){for(var _=s.length,N=C?_:-1;(C?N--:++N<_)&&c(s[N],N,s););return v?Ni(s,C?0:N,C?N+1:_):Ni(s,C?N+1:0,C?_:N)}function az(s,c){var v=s;return v instanceof yt&&(v=v.value()),hx(c,function(C,_){return _.func.apply(_.thisArg,Vl([C],_.args))},v)}function jx(s,c,v){var C=s.length;if(C<2)return C?ql(s[0]):[];for(var _=-1,N=ne(C);++_<C;)for(var z=s[_],W=-1;++W<C;)W!=_&&(N[_]=Jg(N[_]||z,s[W],c,v));return ql(sr(N,1),c,v)}function lz(s,c,v){for(var C=-1,_=s.length,N=c.length,z={};++C<_;){var W=C<N?c[C]:n;v(z,s[C],W)}return z}function zx(s){return Cn(s)?s:[]}function Vx(s){return typeof s=="function"?s:Rr}function Gl(s,c){return Je(s)?s:Jx(s,c)?[s]:Nz(Tt(s))}var h4e=st;function Kl(s,c,v){var C=s.length;return v=v===n?C:v,!c&&v>=C?s:Ni(s,c,v)}var sz=twe||function(s){return ct.clearTimeout(s)};function uz(s,c){if(c)return s.slice();var v=s.length,C=Oj?Oj(v):new s.constructor(v);return s.copy(C),C}function Ux(s){var c=new s.constructor(s.byteLength);return new jy(c).set(new jy(s)),c}function g4e(s,c){var v=c?Ux(s.buffer):s.buffer;return new s.constructor(v,s.byteOffset,s.byteLength)}function v4e(s){var c=new s.constructor(s.source,Hn.exec(s));return c.lastIndex=s.lastIndex,c}function m4e(s){return Yg?Vt(Yg.call(s)):{}}function cz(s,c){var v=c?Ux(s.buffer):s.buffer;return new s.constructor(v,s.byteOffset,s.length)}function fz(s,c){if(s!==c){var v=s!==n,C=s===null,_=s===s,N=ri(s),z=c!==n,W=c===null,X=c===c,fe=ri(c);if(!W&&!fe&&!N&&s>c||N&&z&&X&&!W&&!fe||C&&z&&X||!v&&X||!_)return 1;if(!C&&!N&&!fe&&s<c||fe&&v&&_&&!C&&!N||W&&v&&_||!z&&_||!X)return-1}return 0}function y4e(s,c,v){for(var C=-1,_=s.criteria,N=c.criteria,z=_.length,W=v.length;++C<z;){var X=fz(_[C],N[C]);if(X){if(C>=W)return X;var fe=v[C];return X*(fe=="desc"?-1:1)}}return s.index-c.index}function dz(s,c,v,C){for(var _=-1,N=s.length,z=v.length,W=-1,X=c.length,fe=qn(N-z,0),de=ne(X+fe),pe=!C;++W<X;)de[W]=c[W];for(;++_<z;)(pe||_<N)&&(de[v[_]]=s[_]);for(;fe--;)de[W++]=s[_++];return de}function pz(s,c,v,C){for(var _=-1,N=s.length,z=-1,W=v.length,X=-1,fe=c.length,de=qn(N-W,0),pe=ne(de+fe),De=!C;++_<de;)pe[_]=s[_];for(var Pe=_;++X<fe;)pe[Pe+X]=c[X];for(;++z<W;)(De||_<N)&&(pe[Pe+v[z]]=s[_++]);return pe}function Ir(s,c){var v=-1,C=s.length;for(c||(c=ne(C));++v<C;)c[v]=s[v];return c}function Lo(s,c,v,C){var _=!v;v||(v={});for(var N=-1,z=c.length;++N<z;){var W=c[N],X=C?C(v[W],s[W],W,v,s):n;X===n&&(X=s[W]),_?va(v,W,X):Xg(v,W,X)}return v}function b4e(s,c){return Lo(s,Xx(s),c)}function w4e(s,c){return Lo(s,Dz(s),c)}function tb(s,c){return function(v,C){var _=Je(v)?x2e:Vwe,N=c?c():{};return _(v,s,Me(C,2),N)}}function Zf(s){return st(function(c,v){var C=-1,_=v.length,N=_>1?v[_-1]:n,z=_>2?v[2]:n;for(N=s.length>3&&typeof N=="function"?(_--,N):n,z&&xr(v[0],v[1],z)&&(N=_<3?n:N,_=1),c=Vt(c);++C<_;){var W=v[C];W&&s(c,W,C,N)}return c})}function hz(s,c){return function(v,C){if(v==null)return v;if(!Nr(v))return s(v,C);for(var _=v.length,N=c?_:-1,z=Vt(v);(c?N--:++N<_)&&C(z[N],N,z)!==!1;);return v}}function gz(s){return function(c,v,C){for(var _=-1,N=Vt(c),z=C(c),W=z.length;W--;){var X=z[s?W:++_];if(v(N[X],X,N)===!1)break}return c}}function $4e(s,c,v){var C=c&y,_=t0(s);function N(){var z=this&&this!==ct&&this instanceof N?_:s;return z.apply(C?v:this,arguments)}return N}function vz(s){return function(c){c=Tt(c);var v=Wf(c)?no(c):n,C=v?v[0]:c.charAt(0),_=v?Kl(v,1).join(""):c.slice(1);return C[s]()+_}}function Qf(s){return function(c){return hx(hV(pV(c).replace(Ml,"")),s,"")}}function t0(s){return function(){var c=arguments;switch(c.length){case 0:return new s;case 1:return new s(c[0]);case 2:return new s(c[0],c[1]);case 3:return new s(c[0],c[1],c[2]);case 4:return new s(c[0],c[1],c[2],c[3]);case 5:return new s(c[0],c[1],c[2],c[3],c[4]);case 6:return new s(c[0],c[1],c[2],c[3],c[4],c[5]);case 7:return new s(c[0],c[1],c[2],c[3],c[4],c[5],c[6])}var v=Jf(s.prototype),C=s.apply(v,c);return hn(C)?C:v}}function E4e(s,c,v){var C=t0(s);function _(){for(var N=arguments.length,z=ne(N),W=N,X=ed(_);W--;)z[W]=arguments[W];var fe=N<3&&z[0]!==X&&z[N-1]!==X?[]:Ul(z,X);if(N-=fe.length,N<v)return $z(s,c,nb,_.placeholder,n,z,fe,n,n,v-N);var de=this&&this!==ct&&this instanceof _?C:s;return Zn(de,this,z)}return _}function mz(s){return function(c,v,C){var _=Vt(c);if(!Nr(c)){var N=Me(v,3);c=Qn(c),v=function(W){return N(_[W],W,_)}}var z=s(c,v,C);return z>-1?_[N?c[z]:z]:n}}function yz(s){return ya(function(c){var v=c.length,C=v,_=Pi.prototype.thru;for(s&&c.reverse();C--;){var N=c[C];if(typeof N!="function")throw new Fi(a);if(_&&!z&&ab(N)=="wrapper")var z=new Pi([],!0)}for(C=z?C:v;++C<v;){N=c[C];var W=ab(N),X=W=="wrapper"?Kx(N):n;X&&Zx(X[0])&&X[1]==(P|S|A|U)&&!X[4].length&&X[9]==1?z=z[ab(X[0])].apply(z,X[3]):z=N.length==1&&Zx(N)?z[W]():z.thru(N)}return function(){var fe=arguments,de=fe[0];if(z&&fe.length==1&&Je(de))return z.plant(de).value();for(var pe=0,De=v?c[pe].apply(this,fe):de;++pe<v;)De=c[pe].call(this,De);return De}})}function nb(s,c,v,C,_,N,z,W,X,fe){var de=c&P,pe=c&y,De=c&$,Pe=c&(S|D),ze=c&Y,at=De?n:t0(s);function Ve(){for(var ht=arguments.length,Ct=ne(ht),ii=ht;ii--;)Ct[ii]=arguments[ii];if(Pe)var Dr=ed(Ve),oi=P2e(Ct,Dr);if(C&&(Ct=dz(Ct,C,_,Pe)),N&&(Ct=pz(Ct,N,z,Pe)),ht-=oi,Pe&&ht<fe){var Sn=Ul(Ct,Dr);return $z(s,c,nb,Ve.placeholder,v,Ct,Sn,W,X,fe-ht)}var oo=pe?v:this,Ea=De?oo[s]:s;return ht=Ct.length,W?Ct=V4e(Ct,W):ze&&ht>1&&Ct.reverse(),de&&X<ht&&(Ct.length=X),this&&this!==ct&&this instanceof Ve&&(Ea=at||t0(Ea)),Ea.apply(oo,Ct)}return Ve}function bz(s,c){return function(v,C){return Xwe(v,s,c(C),{})}}function rb(s,c){return function(v,C){var _;if(v===n&&C===n)return c;if(v!==n&&(_=v),C!==n){if(_===n)return C;typeof v=="string"||typeof C=="string"?(v=ni(v),C=ni(C)):(v=iz(v),C=iz(C)),_=s(v,C)}return _}}function Hx(s){return ya(function(c){return c=ln(c,ti(Me())),st(function(v){var C=this;return s(c,function(_){return Zn(_,C,v)})})})}function ib(s,c){c=c===n?" ":ni(c);var v=c.length;if(v<2)return v?Lx(c,s):c;var C=Lx(c,Hy(s/qf(c)));return Wf(c)?Kl(no(C),0,s).join(""):C.slice(0,s)}function C4e(s,c,v,C){var _=c&y,N=t0(s);function z(){for(var W=-1,X=arguments.length,fe=-1,de=C.length,pe=ne(de+X),De=this&&this!==ct&&this instanceof z?N:s;++fe<de;)pe[fe]=C[fe];for(;X--;)pe[fe++]=arguments[++W];return Zn(De,_?v:this,pe)}return z}function wz(s){return function(c,v,C){return C&&typeof C!="number"&&xr(c,v,C)&&(v=C=n),c=$a(c),v===n?(v=c,c=0):v=$a(v),C=C===n?c<v?1:-1:$a(C),s4e(c,v,C,s)}}function ob(s){return function(c,v){return typeof c=="string"&&typeof v=="string"||(c=Ri(c),v=Ri(v)),s(c,v)}}function $z(s,c,v,C,_,N,z,W,X,fe){var de=c&S,pe=de?z:n,De=de?n:z,Pe=de?N:n,ze=de?n:N;c|=de?A:B,c&=~(de?B:A),c&m||(c&=~(y|$));var at=[s,c,_,Pe,pe,ze,De,W,X,fe],Ve=v.apply(n,at);return Zx(s)&&Fz(Ve,at),Ve.placeholder=C,Pz(Ve,s,c)}function Wx(s){var c=Wn[s];return function(v,C){if(v=Ri(v),C=C==null?0:vr(nt(C),292),C&&Pj(v)){var _=(Tt(v)+"e").split("e"),N=c(_[0]+"e"+(+_[1]+C));return _=(Tt(N)+"e").split("e"),+(_[0]+"e"+(+_[1]-C))}return c(v)}}var S4e=Yf&&1/Py(new Yf([,-0]))[1]==Te?function(s){return new Yf(s)}:p8;function Ez(s){return function(c){var v=mr(c);return v==oe?$x(c):v==dt?z2e(c):F2e(c,s(c))}}function ma(s,c,v,C,_,N,z,W){var X=c&$;if(!X&&typeof s!="function")throw new Fi(a);var fe=C?C.length:0;if(fe||(c&=~(A|B),C=_=n),z=z===n?z:qn(nt(z),0),W=W===n?W:nt(W),fe-=_?_.length:0,c&B){var de=C,pe=_;C=_=n}var De=X?n:Kx(s),Pe=[s,c,v,C,_,de,pe,N,z,W];if(De&&M4e(Pe,De),s=Pe[0],c=Pe[1],v=Pe[2],C=Pe[3],_=Pe[4],W=Pe[9]=Pe[9]===n?X?0:s.length:qn(Pe[9]-fe,0),!W&&c&(S|D)&&(c&=~(S|D)),!c||c==y)var ze=$4e(s,c,v);else c==S||c==D?ze=E4e(s,c,W):(c==A||c==(y|A))&&!_.length?ze=C4e(s,c,v,C):ze=nb.apply(n,Pe);var at=De?nz:Fz;return Pz(at(ze,Pe),s,c)}function Cz(s,c,v,C){return s===n||io(s,Kf[v])&&!Nt.call(C,v)?c:s}function Sz(s,c,v,C,_,N){return hn(s)&&hn(c)&&(N.set(c,s),Zy(s,c,n,Sz,N),N.delete(c)),s}function x4e(s){return i0(s)?n:s}function xz(s,c,v,C,_,N){var z=v&E,W=s.length,X=c.length;if(W!=X&&!(z&&X>W))return!1;var fe=N.get(s),de=N.get(c);if(fe&&de)return fe==c&&de==s;var pe=-1,De=!0,Pe=v&w?new ku:n;for(N.set(s,c),N.set(c,s);++pe<W;){var ze=s[pe],at=c[pe];if(C)var Ve=z?C(at,ze,pe,c,s,N):C(ze,at,pe,s,c,N);if(Ve!==n){if(Ve)continue;De=!1;break}if(Pe){if(!gx(c,function(ht,Ct){if(!Hg(Pe,Ct)&&(ze===ht||_(ze,ht,v,C,N)))return Pe.push(Ct)})){De=!1;break}}else if(!(ze===at||_(ze,at,v,C,N))){De=!1;break}}return N.delete(s),N.delete(c),De}function D4e(s,c,v,C,_,N,z){switch(v){case Yt:if(s.byteLength!=c.byteLength||s.byteOffset!=c.byteOffset)return!1;s=s.buffer,c=c.buffer;case Kt:return!(s.byteLength!=c.byteLength||!N(new jy(s),new jy(c)));case J:case ue:case ye:return io(+s,+c);case te:return s.name==c.name&&s.message==c.message;case Ze:case pt:return s==c+"";case oe:var W=$x;case dt:var X=C&E;if(W||(W=Py),s.size!=c.size&&!X)return!1;var fe=z.get(s);if(fe)return fe==c;C|=w,z.set(s,c);var de=xz(W(s),W(c),C,_,N,z);return z.delete(s),de;case rn:if(Yg)return Yg.call(s)==Yg.call(c)}return!1}function A4e(s,c,v,C,_,N){var z=v&E,W=qx(s),X=W.length,fe=qx(c),de=fe.length;if(X!=de&&!z)return!1;for(var pe=X;pe--;){var De=W[pe];if(!(z?De in c:Nt.call(c,De)))return!1}var Pe=N.get(s),ze=N.get(c);if(Pe&&ze)return Pe==c&&ze==s;var at=!0;N.set(s,c),N.set(c,s);for(var Ve=z;++pe<X;){De=W[pe];var ht=s[De],Ct=c[De];if(C)var ii=z?C(Ct,ht,De,c,s,N):C(ht,Ct,De,s,c,N);if(!(ii===n?ht===Ct||_(ht,Ct,v,C,N):ii)){at=!1;break}Ve||(Ve=De=="constructor")}if(at&&!Ve){var Dr=s.constructor,oi=c.constructor;Dr!=oi&&"constructor"in s&&"constructor"in c&&!(typeof Dr=="function"&&Dr instanceof Dr&&typeof oi=="function"&&oi instanceof oi)&&(at=!1)}return N.delete(s),N.delete(c),at}function ya(s){return e8(Bz(s,n,jz),s+"")}function qx(s){return Wj(s,Qn,Xx)}function Gx(s){return Wj(s,Lr,Dz)}var Kx=qy?function(s){return qy.get(s)}:p8;function ab(s){for(var c=s.name+"",v=Xf[c],C=Nt.call(Xf,c)?v.length:0;C--;){var _=v[C],N=_.func;if(N==null||N==s)return _.name}return c}function ed(s){var c=Nt.call(F,"placeholder")?F:s;return c.placeholder}function Me(){var s=F.iteratee||f8;return s=s===f8?Kj:s,arguments.length?s(arguments[0],arguments[1]):s}function lb(s,c){var v=s.__data__;return I4e(c)?v[typeof c=="string"?"string":"hash"]:v.map}function Yx(s){for(var c=Qn(s),v=c.length;v--;){var C=c[v],_=s[C];c[v]=[C,_,kz(_)]}return c}function Tu(s,c){var v=R2e(s,c);return Gj(v)?v:n}function _4e(s){var c=Nt.call(s,Au),v=s[Au];try{s[Au]=n;var C=!0}catch{}var _=Ry.call(s);return C&&(c?s[Au]=v:delete s[Au]),_}var Xx=Cx?function(s){return s==null?[]:(s=Vt(s),zl(Cx(s),function(c){return Tj.call(s,c)}))}:h8,Dz=Cx?function(s){for(var c=[];s;)Vl(c,Xx(s)),s=zy(s);return c}:h8,mr=Sr;(Sx&&mr(new Sx(new ArrayBuffer(1)))!=Yt||qg&&mr(new qg)!=oe||xx&&mr(xx.resolve())!=ft||Yf&&mr(new Yf)!=dt||Gg&&mr(new Gg)!=mt)&&(mr=function(s){var c=Sr(s),v=c==$t?s.constructor:n,C=v?Fu(v):"";if(C)switch(C){case cwe:return Yt;case fwe:return oe;case dwe:return ft;case pwe:return dt;case hwe:return mt}return c});function k4e(s,c,v){for(var C=-1,_=v.length;++C<_;){var N=v[C],z=N.size;switch(N.type){case"drop":s+=z;break;case"dropRight":c-=z;break;case"take":c=vr(c,s+z);break;case"takeRight":s=qn(s,c-z);break}}return{start:s,end:c}}function O4e(s){var c=s.match(Un);return c?c[1].split(Sg):[]}function Az(s,c,v){c=Gl(c,s);for(var C=-1,_=c.length,N=!1;++C<_;){var z=Ro(c[C]);if(!(N=s!=null&&v(s,z)))break;s=s[z]}return N||++C!=_?N:(_=s==null?0:s.length,!!_&&hb(_)&&ba(z,_)&&(Je(s)||Pu(s)))}function B4e(s){var c=s.length,v=new s.constructor(c);return c&&typeof s[0]=="string"&&Nt.call(s,"index")&&(v.index=s.index,v.input=s.input),v}function _z(s){return typeof s.constructor=="function"&&!n0(s)?Jf(zy(s)):{}}function T4e(s,c,v){var C=s.constructor;switch(c){case Kt:return Ux(s);case J:case ue:return new C(+s);case Yt:return g4e(s,v);case Jn:case dn:case Nn:case Di:case Zi:case $r:case Fr:case Ai:case Pr:return cz(s,v);case oe:return new C;case ye:case pt:return new C(s);case Ze:return v4e(s);case dt:return new C;case rn:return m4e(s)}}function F4e(s,c){var v=c.length;if(!v)return s;var C=v-1;return c[C]=(v>1?"& ":"")+c[C],c=c.join(v>2?", ":" "),s.replace(yu,`{
187
+ */(function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",l="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",f=500,d="__lodash_placeholder__",p=1,g=2,h=4,E=1,w=2,y=1,$=2,m=4,S=8,D=16,A=32,B=64,P=128,U=256,Y=512,ce=30,ee="...",ge=800,se=16,xe=1,ve=2,Oe=3,Te=1/0,Ne=9007199254740991,Re=17976931348623157e292,Ae=0/0,ie=4294967295,R=ie-1,M=ie>>>1,T=[["ary",P],["bind",y],["bindKey",$],["curry",S],["curryRight",D],["flip",Y],["partial",A],["partialRight",B],["rearg",U]],L="[object Arguments]",q="[object Array]",O="[object AsyncFunction]",J="[object Boolean]",ue="[object Date]",he="[object DOMException]",te="[object Error]",Q="[object Function]",Ce="[object GeneratorFunction]",ae="[object Map]",ye="[object Number]",Le="[object Null]",$t="[object Object]",ft="[object Promise]",ot="[object Proxy]",Ze="[object RegExp]",dt="[object Set]",pt="[object String]",rn="[object Symbol]",In="[object Undefined]",mt="[object WeakMap]",on="[object WeakSet]",Kt="[object ArrayBuffer]",Yt="[object DataView]",Jn="[object Float32Array]",dn="[object Float64Array]",Nn="[object Int8Array]",Di="[object Int16Array]",Zi="[object Int32Array]",$r="[object Uint8Array]",Fr="[object Uint8ClampedArray]",Ai="[object Uint16Array]",Pr="[object Uint32Array]",Qr=/\b__p \+= '';/g,Er=/\b(__p \+=) '' \+/g,To=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Fl=/&(?:amp|lt|gt|quot|#39);/g,Fo=/[&<>"']/g,pu=RegExp(Fl.source),la=RegExp(Fo.source),hu=/<%-([\s\S]+?)%>/g,gu=/<%([\s\S]+?)%>/g,Pl=/<%=([\s\S]+?)%>/g,Po=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Af=/^\w*$/,Qi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,vu=/[\\^$.*+?()[\]{}|]/g,Cg=RegExp(vu.source),mu=/^\s+/,_f=/\s/,yu=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Un=/\{\n\/\* \[wrapped with (.+)\] \*/,Sg=/,? & /,xg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Dg=/[()=,{}\[\]\/\s]/,Ag=/\\(\\)?/g,_g=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Hn=/\w*$/,kg=/^[-+]0x[0-9a-f]+$/i,Og=/^0b[01]+$/i,Bg=/^\[object .+?Constructor\]$/,Tg=/^0o[0-7]+$/i,Fg=/^(?:0|[1-9]\d*)$/,hr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Il=/($^)/,Pg=/['\n\r\u2028\u2029\\]/g,Nl="\\ud800-\\udfff",Ig="\\u0300-\\u036f",Ng="\\ufe20-\\ufe2f",Ll="\\u20d0-\\u20ff",bu=Ig+Ng+Ll,sa="\\u2700-\\u27bf",ei="a-z\\xdf-\\xf6\\xf8-\\xff",wu="\\xac\\xb1\\xd7\\xf7",Lg="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Rg="\\u2000-\\u206f",Mg=" \\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",kf="A-Z\\xc0-\\xd6\\xd8-\\xde",Of="\\ufe0e\\ufe0f",ua=wu+Lg+Rg+Mg,ca="['\u2019]",fa="["+Nl+"]",$u="["+ua+"]",da="["+bu+"]",Bf="\\d+",jg="["+sa+"]",Tf="["+ei+"]",Ff="[^"+Nl+ua+Bf+sa+ei+kf+"]",pa="\\ud83c[\\udffb-\\udfff]",zg="(?:"+da+"|"+pa+")",Pf="[^"+Nl+"]",eo="(?:\\ud83c[\\udde6-\\uddff]){2}",Cr="[\\ud800-\\udbff][\\udc00-\\udfff]",gr="["+kf+"]",_i="\\u200d",If="(?:"+Tf+"|"+Ff+")",ki="(?:"+gr+"|"+Ff+")",Nf="(?:"+ca+"(?:d|ll|m|re|s|t|ve))?",Lf="(?:"+ca+"(?:D|LL|M|RE|S|T|VE))?",Rf=zg+"?",Mf="["+Of+"]?",jf="(?:"+_i+"(?:"+[Pf,eo,Cr].join("|")+")"+Mf+Rf+")*",ar="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",zf="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Eu=Mf+Rf+jf,Rl="(?:"+[jg,eo,Cr].join("|")+")"+Eu,Cu="(?:"+[Pf+da+"?",da,eo,Cr,fa].join("|")+")",Ml=RegExp(ca,"g"),Vg=RegExp(da,"g"),jl=RegExp(pa+"(?="+pa+")|"+Cu+Eu,"g"),Su=RegExp([gr+"?"+Tf+"+"+Nf+"(?="+[$u,gr,"$"].join("|")+")",ki+"+"+Lf+"(?="+[$u,gr+If,"$"].join("|")+")",gr+"?"+If+"+"+Nf,gr+"+"+Lf,zf,ar,Bf,Rl].join("|"),"g"),Vf=RegExp("["+_i+Nl+bu+Of+"]"),Oi=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Uf=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],xu=-1,Pt={};Pt[Jn]=Pt[dn]=Pt[Nn]=Pt[Di]=Pt[Zi]=Pt[$r]=Pt[Fr]=Pt[Ai]=Pt[Pr]=!0,Pt[L]=Pt[q]=Pt[Kt]=Pt[J]=Pt[Yt]=Pt[ue]=Pt[te]=Pt[Q]=Pt[ae]=Pt[ye]=Pt[$t]=Pt[Ze]=Pt[dt]=Pt[pt]=Pt[mt]=!1;var Bt={};Bt[L]=Bt[q]=Bt[Kt]=Bt[Yt]=Bt[J]=Bt[ue]=Bt[Jn]=Bt[dn]=Bt[Nn]=Bt[Di]=Bt[Zi]=Bt[ae]=Bt[ye]=Bt[$t]=Bt[Ze]=Bt[dt]=Bt[pt]=Bt[rn]=Bt[$r]=Bt[Fr]=Bt[Ai]=Bt[Pr]=!0,Bt[te]=Bt[Q]=Bt[mt]=!1;var x={\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:"s"},I={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},H={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},oe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},qe=parseFloat,Ie=parseInt,ut=typeof Eg=="object"&&Eg&&Eg.Object===Object&&Eg,Et=typeof self=="object"&&self&&self.Object===Object&&self,ct=ut||Et||Function("return this")(),St=t&&!t.nodeType&&t,an=St&&!0&&e&&!e.nodeType&&e,lr=an&&an.exports===St,pn=lr&&ut.process,It=function(){try{var K=an&&an.require&&an.require("util").types;return K||pn&&pn.binding&&pn.binding("util")}catch{}}(),Ln=It&&It.isArrayBuffer,to=It&&It.isDate,Bi=It&&It.isMap,Io=It&&It.isRegExp,Ug=It&&It.isSet,Du=It&&It.isTypedArray;function Zn(K,le,ne){switch(ne.length){case 0:return K.call(le);case 1:return K.call(le,ne[0]);case 2:return K.call(le,ne[0],ne[1]);case 3:return K.call(le,ne[0],ne[1],ne[2])}return K.apply(le,ne)}function x2e(K,le,ne,_e){for(var Xe=-1,_t=K==null?0:K.length;++Xe<_t;){var Wn=K[Xe];le(_e,Wn,ne(Wn),K)}return _e}function Ti(K,le){for(var ne=-1,_e=K==null?0:K.length;++ne<_e&&le(K[ne],ne,K)!==!1;);return K}function D2e(K,le){for(var ne=K==null?0:K.length;ne--&&le(K[ne],ne,K)!==!1;);return K}function bj(K,le){for(var ne=-1,_e=K==null?0:K.length;++ne<_e;)if(!le(K[ne],ne,K))return!1;return!0}function zl(K,le){for(var ne=-1,_e=K==null?0:K.length,Xe=0,_t=[];++ne<_e;){var Wn=K[ne];le(Wn,ne,K)&&(_t[Xe++]=Wn)}return _t}function Ty(K,le){var ne=K==null?0:K.length;return!!ne&&Hf(K,le,0)>-1}function px(K,le,ne){for(var _e=-1,Xe=K==null?0:K.length;++_e<Xe;)if(ne(le,K[_e]))return!0;return!1}function ln(K,le){for(var ne=-1,_e=K==null?0:K.length,Xe=Array(_e);++ne<_e;)Xe[ne]=le(K[ne],ne,K);return Xe}function Vl(K,le){for(var ne=-1,_e=le.length,Xe=K.length;++ne<_e;)K[Xe+ne]=le[ne];return K}function hx(K,le,ne,_e){var Xe=-1,_t=K==null?0:K.length;for(_e&&_t&&(ne=K[++Xe]);++Xe<_t;)ne=le(ne,K[Xe],Xe,K);return ne}function A2e(K,le,ne,_e){var Xe=K==null?0:K.length;for(_e&&Xe&&(ne=K[--Xe]);Xe--;)ne=le(ne,K[Xe],Xe,K);return ne}function gx(K,le){for(var ne=-1,_e=K==null?0:K.length;++ne<_e;)if(le(K[ne],ne,K))return!0;return!1}var _2e=vx("length");function k2e(K){return K.split("")}function O2e(K){return K.match(xg)||[]}function wj(K,le,ne){var _e;return ne(K,function(Xe,_t,Wn){if(le(Xe,_t,Wn))return _e=_t,!1}),_e}function Fy(K,le,ne,_e){for(var Xe=K.length,_t=ne+(_e?1:-1);_e?_t--:++_t<Xe;)if(le(K[_t],_t,K))return _t;return-1}function Hf(K,le,ne){return le===le?V2e(K,le,ne):Fy(K,$j,ne)}function B2e(K,le,ne,_e){for(var Xe=ne-1,_t=K.length;++Xe<_t;)if(_e(K[Xe],le))return Xe;return-1}function $j(K){return K!==K}function Ej(K,le){var ne=K==null?0:K.length;return ne?yx(K,le)/ne:Ae}function vx(K){return function(le){return le==null?n:le[K]}}function mx(K){return function(le){return K==null?n:K[le]}}function Cj(K,le,ne,_e,Xe){return Xe(K,function(_t,Wn,Vt){ne=_e?(_e=!1,_t):le(ne,_t,Wn,Vt)}),ne}function T2e(K,le){var ne=K.length;for(K.sort(le);ne--;)K[ne]=K[ne].value;return K}function yx(K,le){for(var ne,_e=-1,Xe=K.length;++_e<Xe;){var _t=le(K[_e]);_t!==n&&(ne=ne===n?_t:ne+_t)}return ne}function bx(K,le){for(var ne=-1,_e=Array(K);++ne<K;)_e[ne]=le(ne);return _e}function F2e(K,le){return ln(le,function(ne){return[ne,K[ne]]})}function Sj(K){return K&&K.slice(0,_j(K)+1).replace(mu,"")}function ti(K){return function(le){return K(le)}}function wx(K,le){return ln(le,function(ne){return K[ne]})}function Hg(K,le){return K.has(le)}function xj(K,le){for(var ne=-1,_e=K.length;++ne<_e&&Hf(le,K[ne],0)>-1;);return ne}function Dj(K,le){for(var ne=K.length;ne--&&Hf(le,K[ne],0)>-1;);return ne}function P2e(K,le){for(var ne=K.length,_e=0;ne--;)K[ne]===le&&++_e;return _e}var I2e=mx(x),N2e=mx(I);function L2e(K){return"\\"+oe[K]}function R2e(K,le){return K==null?n:K[le]}function Wf(K){return Vf.test(K)}function M2e(K){return Oi.test(K)}function j2e(K){for(var le,ne=[];!(le=K.next()).done;)ne.push(le.value);return ne}function $x(K){var le=-1,ne=Array(K.size);return K.forEach(function(_e,Xe){ne[++le]=[Xe,_e]}),ne}function Aj(K,le){return function(ne){return K(le(ne))}}function Ul(K,le){for(var ne=-1,_e=K.length,Xe=0,_t=[];++ne<_e;){var Wn=K[ne];(Wn===le||Wn===d)&&(K[ne]=d,_t[Xe++]=ne)}return _t}function Py(K){var le=-1,ne=Array(K.size);return K.forEach(function(_e){ne[++le]=_e}),ne}function z2e(K){var le=-1,ne=Array(K.size);return K.forEach(function(_e){ne[++le]=[_e,_e]}),ne}function V2e(K,le,ne){for(var _e=ne-1,Xe=K.length;++_e<Xe;)if(K[_e]===le)return _e;return-1}function U2e(K,le,ne){for(var _e=ne+1;_e--;)if(K[_e]===le)return _e;return _e}function qf(K){return Wf(K)?W2e(K):_2e(K)}function no(K){return Wf(K)?q2e(K):k2e(K)}function _j(K){for(var le=K.length;le--&&_f.test(K.charAt(le)););return le}var H2e=mx(H);function W2e(K){for(var le=jl.lastIndex=0;jl.test(K);)++le;return le}function q2e(K){return K.match(jl)||[]}function G2e(K){return K.match(Su)||[]}var K2e=function K(le){le=le==null?ct:Gf.defaults(ct.Object(),le,Gf.pick(ct,Uf));var ne=le.Array,_e=le.Date,Xe=le.Error,_t=le.Function,Wn=le.Math,Vt=le.Object,Ex=le.RegExp,Y2e=le.String,Fi=le.TypeError,Iy=ne.prototype,X2e=_t.prototype,Kf=Vt.prototype,Ny=le["__core-js_shared__"],Ly=X2e.toString,Nt=Kf.hasOwnProperty,J2e=0,kj=function(){var s=/[^.]+$/.exec(Ny&&Ny.keys&&Ny.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),Ry=Kf.toString,Z2e=Ly.call(Vt),Q2e=ct._,ewe=Ex("^"+Ly.call(Nt).replace(vu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),My=lr?le.Buffer:n,Hl=le.Symbol,jy=le.Uint8Array,Oj=My?My.allocUnsafe:n,zy=Aj(Vt.getPrototypeOf,Vt),Bj=Vt.create,Tj=Kf.propertyIsEnumerable,Vy=Iy.splice,Fj=Hl?Hl.isConcatSpreadable:n,Wg=Hl?Hl.iterator:n,Au=Hl?Hl.toStringTag:n,Uy=function(){try{var s=Tu(Vt,"defineProperty");return s({},"",{}),s}catch{}}(),twe=le.clearTimeout!==ct.clearTimeout&&le.clearTimeout,nwe=_e&&_e.now!==ct.Date.now&&_e.now,rwe=le.setTimeout!==ct.setTimeout&&le.setTimeout,Hy=Wn.ceil,Wy=Wn.floor,Cx=Vt.getOwnPropertySymbols,iwe=My?My.isBuffer:n,Pj=le.isFinite,owe=Iy.join,awe=Aj(Vt.keys,Vt),qn=Wn.max,vr=Wn.min,lwe=_e.now,swe=le.parseInt,Ij=Wn.random,uwe=Iy.reverse,Sx=Tu(le,"DataView"),qg=Tu(le,"Map"),xx=Tu(le,"Promise"),Yf=Tu(le,"Set"),Gg=Tu(le,"WeakMap"),Kg=Tu(Vt,"create"),qy=Gg&&new Gg,Xf={},cwe=Fu(Sx),fwe=Fu(qg),dwe=Fu(xx),pwe=Fu(Yf),hwe=Fu(Gg),Gy=Hl?Hl.prototype:n,Yg=Gy?Gy.valueOf:n,Nj=Gy?Gy.toString:n;function F(s){if(mn(s)&&!Je(s)&&!(s instanceof yt)){if(s instanceof Pi)return s;if(Nt.call(s,"__wrapped__"))return Lz(s)}return new Pi(s)}var Jf=function(){function s(){}return function(c){if(!hn(c))return{};if(Bj)return Bj(c);s.prototype=c;var v=new s;return s.prototype=n,v}}();function Ky(){}function Pi(s,c){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!c,this.__index__=0,this.__values__=n}F.templateSettings={escape:hu,evaluate:gu,interpolate:Pl,variable:"",imports:{_:F}},F.prototype=Ky.prototype,F.prototype.constructor=F,Pi.prototype=Jf(Ky.prototype),Pi.prototype.constructor=Pi;function yt(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ie,this.__views__=[]}function gwe(){var s=new yt(this.__wrapped__);return s.__actions__=Ir(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=Ir(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=Ir(this.__views__),s}function vwe(){if(this.__filtered__){var s=new yt(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function mwe(){var s=this.__wrapped__.value(),c=this.__dir__,v=Je(s),C=c<0,_=v?s.length:0,N=k4e(0,_,this.__views__),z=N.start,W=N.end,X=W-z,fe=C?W:z-1,de=this.__iteratees__,pe=de.length,De=0,Pe=vr(X,this.__takeCount__);if(!v||!C&&_==X&&Pe==X)return az(s,this.__actions__);var ze=[];e:for(;X--&&De<Pe;){fe+=c;for(var at=-1,Ve=s[fe];++at<pe;){var ht=de[at],Ct=ht.iteratee,ii=ht.type,Dr=Ct(Ve);if(ii==ve)Ve=Dr;else if(!Dr){if(ii==xe)continue e;break e}}ze[De++]=Ve}return ze}yt.prototype=Jf(Ky.prototype),yt.prototype.constructor=yt;function _u(s){var c=-1,v=s==null?0:s.length;for(this.clear();++c<v;){var C=s[c];this.set(C[0],C[1])}}function ywe(){this.__data__=Kg?Kg(null):{},this.size=0}function bwe(s){var c=this.has(s)&&delete this.__data__[s];return this.size-=c?1:0,c}function wwe(s){var c=this.__data__;if(Kg){var v=c[s];return v===u?n:v}return Nt.call(c,s)?c[s]:n}function $we(s){var c=this.__data__;return Kg?c[s]!==n:Nt.call(c,s)}function Ewe(s,c){var v=this.__data__;return this.size+=this.has(s)?0:1,v[s]=Kg&&c===n?u:c,this}_u.prototype.clear=ywe,_u.prototype.delete=bwe,_u.prototype.get=wwe,_u.prototype.has=$we,_u.prototype.set=Ewe;function ha(s){var c=-1,v=s==null?0:s.length;for(this.clear();++c<v;){var C=s[c];this.set(C[0],C[1])}}function Cwe(){this.__data__=[],this.size=0}function Swe(s){var c=this.__data__,v=Yy(c,s);if(v<0)return!1;var C=c.length-1;return v==C?c.pop():Vy.call(c,v,1),--this.size,!0}function xwe(s){var c=this.__data__,v=Yy(c,s);return v<0?n:c[v][1]}function Dwe(s){return Yy(this.__data__,s)>-1}function Awe(s,c){var v=this.__data__,C=Yy(v,s);return C<0?(++this.size,v.push([s,c])):v[C][1]=c,this}ha.prototype.clear=Cwe,ha.prototype.delete=Swe,ha.prototype.get=xwe,ha.prototype.has=Dwe,ha.prototype.set=Awe;function ga(s){var c=-1,v=s==null?0:s.length;for(this.clear();++c<v;){var C=s[c];this.set(C[0],C[1])}}function _we(){this.size=0,this.__data__={hash:new _u,map:new(qg||ha),string:new _u}}function kwe(s){var c=lb(this,s).delete(s);return this.size-=c?1:0,c}function Owe(s){return lb(this,s).get(s)}function Bwe(s){return lb(this,s).has(s)}function Twe(s,c){var v=lb(this,s),C=v.size;return v.set(s,c),this.size+=v.size==C?0:1,this}ga.prototype.clear=_we,ga.prototype.delete=kwe,ga.prototype.get=Owe,ga.prototype.has=Bwe,ga.prototype.set=Twe;function ku(s){var c=-1,v=s==null?0:s.length;for(this.__data__=new ga;++c<v;)this.add(s[c])}function Fwe(s){return this.__data__.set(s,u),this}function Pwe(s){return this.__data__.has(s)}ku.prototype.add=ku.prototype.push=Fwe,ku.prototype.has=Pwe;function ro(s){var c=this.__data__=new ha(s);this.size=c.size}function Iwe(){this.__data__=new ha,this.size=0}function Nwe(s){var c=this.__data__,v=c.delete(s);return this.size=c.size,v}function Lwe(s){return this.__data__.get(s)}function Rwe(s){return this.__data__.has(s)}function Mwe(s,c){var v=this.__data__;if(v instanceof ha){var C=v.__data__;if(!qg||C.length<i-1)return C.push([s,c]),this.size=++v.size,this;v=this.__data__=new ga(C)}return v.set(s,c),this.size=v.size,this}ro.prototype.clear=Iwe,ro.prototype.delete=Nwe,ro.prototype.get=Lwe,ro.prototype.has=Rwe,ro.prototype.set=Mwe;function Lj(s,c){var v=Je(s),C=!v&&Pu(s),_=!v&&!C&&Yl(s),N=!v&&!C&&!_&&td(s),z=v||C||_||N,W=z?bx(s.length,Y2e):[],X=W.length;for(var fe in s)(c||Nt.call(s,fe))&&!(z&&(fe=="length"||_&&(fe=="offset"||fe=="parent")||N&&(fe=="buffer"||fe=="byteLength"||fe=="byteOffset")||ba(fe,X)))&&W.push(fe);return W}function Rj(s){var c=s.length;return c?s[Nx(0,c-1)]:n}function jwe(s,c){return sb(Ir(s),Ou(c,0,s.length))}function zwe(s){return sb(Ir(s))}function Dx(s,c,v){(v!==n&&!io(s[c],v)||v===n&&!(c in s))&&va(s,c,v)}function Xg(s,c,v){var C=s[c];(!(Nt.call(s,c)&&io(C,v))||v===n&&!(c in s))&&va(s,c,v)}function Yy(s,c){for(var v=s.length;v--;)if(io(s[v][0],c))return v;return-1}function Vwe(s,c,v,C){return Wl(s,function(_,N,z){c(C,_,v(_),z)}),C}function Mj(s,c){return s&&Lo(c,Qn(c),s)}function Uwe(s,c){return s&&Lo(c,Lr(c),s)}function va(s,c,v){c=="__proto__"&&Uy?Uy(s,c,{configurable:!0,enumerable:!0,value:v,writable:!0}):s[c]=v}function Ax(s,c){for(var v=-1,C=c.length,_=ne(C),N=s==null;++v<C;)_[v]=N?n:l8(s,c[v]);return _}function Ou(s,c,v){return s===s&&(v!==n&&(s=s<=v?s:v),c!==n&&(s=s>=c?s:c)),s}function Ii(s,c,v,C,_,N){var z,W=c&p,X=c&g,fe=c&h;if(v&&(z=_?v(s,C,_,N):v(s)),z!==n)return z;if(!hn(s))return s;var de=Je(s);if(de){if(z=B4e(s),!W)return Ir(s,z)}else{var pe=mr(s),De=pe==Q||pe==Ce;if(Yl(s))return uz(s,W);if(pe==$t||pe==L||De&&!_){if(z=X||De?{}:_z(s),!W)return X?w4e(s,Uwe(z,s)):b4e(s,Mj(z,s))}else{if(!Bt[pe])return _?s:{};z=T4e(s,pe,W)}}N||(N=new ro);var Pe=N.get(s);if(Pe)return Pe;N.set(s,z),rV(s)?s.forEach(function(Ve){z.add(Ii(Ve,c,v,Ve,s,N))}):tV(s)&&s.forEach(function(Ve,ht){z.set(ht,Ii(Ve,c,v,ht,s,N))});var ze=fe?X?Gx:qx:X?Lr:Qn,at=de?n:ze(s);return Ti(at||s,function(Ve,ht){at&&(ht=Ve,Ve=s[ht]),Xg(z,ht,Ii(Ve,c,v,ht,s,N))}),z}function Hwe(s){var c=Qn(s);return function(v){return jj(v,s,c)}}function jj(s,c,v){var C=v.length;if(s==null)return!C;for(s=Vt(s);C--;){var _=v[C],N=c[_],z=s[_];if(z===n&&!(_ in s)||!N(z))return!1}return!0}function zj(s,c,v){if(typeof s!="function")throw new Fi(a);return r0(function(){s.apply(n,v)},c)}function Jg(s,c,v,C){var _=-1,N=Ty,z=!0,W=s.length,X=[],fe=c.length;if(!W)return X;v&&(c=ln(c,ti(v))),C?(N=px,z=!1):c.length>=i&&(N=Hg,z=!1,c=new ku(c));e:for(;++_<W;){var de=s[_],pe=v==null?de:v(de);if(de=C||de!==0?de:0,z&&pe===pe){for(var De=fe;De--;)if(c[De]===pe)continue e;X.push(de)}else N(c,pe,C)||X.push(de)}return X}var Wl=hz(No),Vj=hz(kx,!0);function Wwe(s,c){var v=!0;return Wl(s,function(C,_,N){return v=!!c(C,_,N),v}),v}function Xy(s,c,v){for(var C=-1,_=s.length;++C<_;){var N=s[C],z=c(N);if(z!=null&&(W===n?z===z&&!ri(z):v(z,W)))var W=z,X=N}return X}function qwe(s,c,v,C){var _=s.length;for(v=nt(v),v<0&&(v=-v>_?0:_+v),C=C===n||C>_?_:nt(C),C<0&&(C+=_),C=v>C?0:oV(C);v<C;)s[v++]=c;return s}function Uj(s,c){var v=[];return Wl(s,function(C,_,N){c(C,_,N)&&v.push(C)}),v}function sr(s,c,v,C,_){var N=-1,z=s.length;for(v||(v=P4e),_||(_=[]);++N<z;){var W=s[N];c>0&&v(W)?c>1?sr(W,c-1,v,C,_):Vl(_,W):C||(_[_.length]=W)}return _}var _x=gz(),Hj=gz(!0);function No(s,c){return s&&_x(s,c,Qn)}function kx(s,c){return s&&Hj(s,c,Qn)}function Jy(s,c){return zl(c,function(v){return wa(s[v])})}function Bu(s,c){c=Gl(c,s);for(var v=0,C=c.length;s!=null&&v<C;)s=s[Ro(c[v++])];return v&&v==C?s:n}function Wj(s,c,v){var C=c(s);return Je(s)?C:Vl(C,v(s))}function Sr(s){return s==null?s===n?In:Le:Au&&Au in Vt(s)?_4e(s):z4e(s)}function Ox(s,c){return s>c}function Gwe(s,c){return s!=null&&Nt.call(s,c)}function Kwe(s,c){return s!=null&&c in Vt(s)}function Ywe(s,c,v){return s>=vr(c,v)&&s<qn(c,v)}function Bx(s,c,v){for(var C=v?px:Ty,_=s[0].length,N=s.length,z=N,W=ne(N),X=1/0,fe=[];z--;){var de=s[z];z&&c&&(de=ln(de,ti(c))),X=vr(de.length,X),W[z]=!v&&(c||_>=120&&de.length>=120)?new ku(z&&de):n}de=s[0];var pe=-1,De=W[0];e:for(;++pe<_&&fe.length<X;){var Pe=de[pe],ze=c?c(Pe):Pe;if(Pe=v||Pe!==0?Pe:0,!(De?Hg(De,ze):C(fe,ze,v))){for(z=N;--z;){var at=W[z];if(!(at?Hg(at,ze):C(s[z],ze,v)))continue e}De&&De.push(ze),fe.push(Pe)}}return fe}function Xwe(s,c,v,C){return No(s,function(_,N,z){c(C,v(_),N,z)}),C}function Zg(s,c,v){c=Gl(c,s),s=Tz(s,c);var C=s==null?s:s[Ro(Li(c))];return C==null?n:Zn(C,s,v)}function qj(s){return mn(s)&&Sr(s)==L}function Jwe(s){return mn(s)&&Sr(s)==Kt}function Zwe(s){return mn(s)&&Sr(s)==ue}function Qg(s,c,v,C,_){return s===c?!0:s==null||c==null||!mn(s)&&!mn(c)?s!==s&&c!==c:Qwe(s,c,v,C,Qg,_)}function Qwe(s,c,v,C,_,N){var z=Je(s),W=Je(c),X=z?q:mr(s),fe=W?q:mr(c);X=X==L?$t:X,fe=fe==L?$t:fe;var de=X==$t,pe=fe==$t,De=X==fe;if(De&&Yl(s)){if(!Yl(c))return!1;z=!0,de=!1}if(De&&!de)return N||(N=new ro),z||td(s)?xz(s,c,v,C,_,N):D4e(s,c,X,v,C,_,N);if(!(v&E)){var Pe=de&&Nt.call(s,"__wrapped__"),ze=pe&&Nt.call(c,"__wrapped__");if(Pe||ze){var at=Pe?s.value():s,Ve=ze?c.value():c;return N||(N=new ro),_(at,Ve,v,C,N)}}return De?(N||(N=new ro),A4e(s,c,v,C,_,N)):!1}function e4e(s){return mn(s)&&mr(s)==ae}function Tx(s,c,v,C){var _=v.length,N=_,z=!C;if(s==null)return!N;for(s=Vt(s);_--;){var W=v[_];if(z&&W[2]?W[1]!==s[W[0]]:!(W[0]in s))return!1}for(;++_<N;){W=v[_];var X=W[0],fe=s[X],de=W[1];if(z&&W[2]){if(fe===n&&!(X in s))return!1}else{var pe=new ro;if(C)var De=C(fe,de,X,s,c,pe);if(!(De===n?Qg(de,fe,E|w,C,pe):De))return!1}}return!0}function Gj(s){if(!hn(s)||N4e(s))return!1;var c=wa(s)?ewe:Bg;return c.test(Fu(s))}function t4e(s){return mn(s)&&Sr(s)==Ze}function n4e(s){return mn(s)&&mr(s)==dt}function r4e(s){return mn(s)&&hb(s.length)&&!!Pt[Sr(s)]}function Kj(s){return typeof s=="function"?s:s==null?Rr:typeof s=="object"?Je(s)?Jj(s[0],s[1]):Xj(s):vV(s)}function Fx(s){if(!n0(s))return awe(s);var c=[];for(var v in Vt(s))Nt.call(s,v)&&v!="constructor"&&c.push(v);return c}function i4e(s){if(!hn(s))return j4e(s);var c=n0(s),v=[];for(var C in s)C=="constructor"&&(c||!Nt.call(s,C))||v.push(C);return v}function Px(s,c){return s<c}function Yj(s,c){var v=-1,C=Nr(s)?ne(s.length):[];return Wl(s,function(_,N,z){C[++v]=c(_,N,z)}),C}function Xj(s){var c=Yx(s);return c.length==1&&c[0][2]?Oz(c[0][0],c[0][1]):function(v){return v===s||Tx(v,s,c)}}function Jj(s,c){return Jx(s)&&kz(c)?Oz(Ro(s),c):function(v){var C=l8(v,s);return C===n&&C===c?s8(v,s):Qg(c,C,E|w)}}function Zy(s,c,v,C,_){s!==c&&_x(c,function(N,z){if(_||(_=new ro),hn(N))o4e(s,c,z,v,Zy,C,_);else{var W=C?C(Qx(s,z),N,z+"",s,c,_):n;W===n&&(W=N),Dx(s,z,W)}},Lr)}function o4e(s,c,v,C,_,N,z){var W=Qx(s,v),X=Qx(c,v),fe=z.get(X);if(fe){Dx(s,v,fe);return}var de=N?N(W,X,v+"",s,c,z):n,pe=de===n;if(pe){var De=Je(X),Pe=!De&&Yl(X),ze=!De&&!Pe&&td(X);de=X,De||Pe||ze?Je(W)?de=W:Cn(W)?de=Ir(W):Pe?(pe=!1,de=uz(X,!0)):ze?(pe=!1,de=cz(X,!0)):de=[]:i0(X)||Pu(X)?(de=W,Pu(W)?de=aV(W):(!hn(W)||wa(W))&&(de=_z(X))):pe=!1}pe&&(z.set(X,de),_(de,X,C,N,z),z.delete(X)),Dx(s,v,de)}function Zj(s,c){var v=s.length;if(!!v)return c+=c<0?v:0,ba(c,v)?s[c]:n}function Qj(s,c,v){c.length?c=ln(c,function(N){return Je(N)?function(z){return Bu(z,N.length===1?N[0]:N)}:N}):c=[Rr];var C=-1;c=ln(c,ti(Me()));var _=Yj(s,function(N,z,W){var X=ln(c,function(fe){return fe(N)});return{criteria:X,index:++C,value:N}});return T2e(_,function(N,z){return y4e(N,z,v)})}function a4e(s,c){return ez(s,c,function(v,C){return s8(s,C)})}function ez(s,c,v){for(var C=-1,_=c.length,N={};++C<_;){var z=c[C],W=Bu(s,z);v(W,z)&&e0(N,Gl(z,s),W)}return N}function l4e(s){return function(c){return Bu(c,s)}}function Ix(s,c,v,C){var _=C?B2e:Hf,N=-1,z=c.length,W=s;for(s===c&&(c=Ir(c)),v&&(W=ln(s,ti(v)));++N<z;)for(var X=0,fe=c[N],de=v?v(fe):fe;(X=_(W,de,X,C))>-1;)W!==s&&Vy.call(W,X,1),Vy.call(s,X,1);return s}function tz(s,c){for(var v=s?c.length:0,C=v-1;v--;){var _=c[v];if(v==C||_!==N){var N=_;ba(_)?Vy.call(s,_,1):Mx(s,_)}}return s}function Nx(s,c){return s+Wy(Ij()*(c-s+1))}function s4e(s,c,v,C){for(var _=-1,N=qn(Hy((c-s)/(v||1)),0),z=ne(N);N--;)z[C?N:++_]=s,s+=v;return z}function Lx(s,c){var v="";if(!s||c<1||c>Ne)return v;do c%2&&(v+=s),c=Wy(c/2),c&&(s+=s);while(c);return v}function st(s,c){return e8(Bz(s,c,Rr),s+"")}function u4e(s){return Rj(nd(s))}function c4e(s,c){var v=nd(s);return sb(v,Ou(c,0,v.length))}function e0(s,c,v,C){if(!hn(s))return s;c=Gl(c,s);for(var _=-1,N=c.length,z=N-1,W=s;W!=null&&++_<N;){var X=Ro(c[_]),fe=v;if(X==="__proto__"||X==="constructor"||X==="prototype")return s;if(_!=z){var de=W[X];fe=C?C(de,X,W):n,fe===n&&(fe=hn(de)?de:ba(c[_+1])?[]:{})}Xg(W,X,fe),W=W[X]}return s}var nz=qy?function(s,c){return qy.set(s,c),s}:Rr,f4e=Uy?function(s,c){return Uy(s,"toString",{configurable:!0,enumerable:!1,value:c8(c),writable:!0})}:Rr;function d4e(s){return sb(nd(s))}function Ni(s,c,v){var C=-1,_=s.length;c<0&&(c=-c>_?0:_+c),v=v>_?_:v,v<0&&(v+=_),_=c>v?0:v-c>>>0,c>>>=0;for(var N=ne(_);++C<_;)N[C]=s[C+c];return N}function p4e(s,c){var v;return Wl(s,function(C,_,N){return v=c(C,_,N),!v}),!!v}function Qy(s,c,v){var C=0,_=s==null?C:s.length;if(typeof c=="number"&&c===c&&_<=M){for(;C<_;){var N=C+_>>>1,z=s[N];z!==null&&!ri(z)&&(v?z<=c:z<c)?C=N+1:_=N}return _}return Rx(s,c,Rr,v)}function Rx(s,c,v,C){var _=0,N=s==null?0:s.length;if(N===0)return 0;c=v(c);for(var z=c!==c,W=c===null,X=ri(c),fe=c===n;_<N;){var de=Wy((_+N)/2),pe=v(s[de]),De=pe!==n,Pe=pe===null,ze=pe===pe,at=ri(pe);if(z)var Ve=C||ze;else fe?Ve=ze&&(C||De):W?Ve=ze&&De&&(C||!Pe):X?Ve=ze&&De&&!Pe&&(C||!at):Pe||at?Ve=!1:Ve=C?pe<=c:pe<c;Ve?_=de+1:N=de}return vr(N,R)}function rz(s,c){for(var v=-1,C=s.length,_=0,N=[];++v<C;){var z=s[v],W=c?c(z):z;if(!v||!io(W,X)){var X=W;N[_++]=z===0?0:z}}return N}function iz(s){return typeof s=="number"?s:ri(s)?Ae:+s}function ni(s){if(typeof s=="string")return s;if(Je(s))return ln(s,ni)+"";if(ri(s))return Nj?Nj.call(s):"";var c=s+"";return c=="0"&&1/s==-Te?"-0":c}function ql(s,c,v){var C=-1,_=Ty,N=s.length,z=!0,W=[],X=W;if(v)z=!1,_=px;else if(N>=i){var fe=c?null:S4e(s);if(fe)return Py(fe);z=!1,_=Hg,X=new ku}else X=c?[]:W;e:for(;++C<N;){var de=s[C],pe=c?c(de):de;if(de=v||de!==0?de:0,z&&pe===pe){for(var De=X.length;De--;)if(X[De]===pe)continue e;c&&X.push(pe),W.push(de)}else _(X,pe,v)||(X!==W&&X.push(pe),W.push(de))}return W}function Mx(s,c){return c=Gl(c,s),s=Tz(s,c),s==null||delete s[Ro(Li(c))]}function oz(s,c,v,C){return e0(s,c,v(Bu(s,c)),C)}function eb(s,c,v,C){for(var _=s.length,N=C?_:-1;(C?N--:++N<_)&&c(s[N],N,s););return v?Ni(s,C?0:N,C?N+1:_):Ni(s,C?N+1:0,C?_:N)}function az(s,c){var v=s;return v instanceof yt&&(v=v.value()),hx(c,function(C,_){return _.func.apply(_.thisArg,Vl([C],_.args))},v)}function jx(s,c,v){var C=s.length;if(C<2)return C?ql(s[0]):[];for(var _=-1,N=ne(C);++_<C;)for(var z=s[_],W=-1;++W<C;)W!=_&&(N[_]=Jg(N[_]||z,s[W],c,v));return ql(sr(N,1),c,v)}function lz(s,c,v){for(var C=-1,_=s.length,N=c.length,z={};++C<_;){var W=C<N?c[C]:n;v(z,s[C],W)}return z}function zx(s){return Cn(s)?s:[]}function Vx(s){return typeof s=="function"?s:Rr}function Gl(s,c){return Je(s)?s:Jx(s,c)?[s]:Nz(Tt(s))}var h4e=st;function Kl(s,c,v){var C=s.length;return v=v===n?C:v,!c&&v>=C?s:Ni(s,c,v)}var sz=twe||function(s){return ct.clearTimeout(s)};function uz(s,c){if(c)return s.slice();var v=s.length,C=Oj?Oj(v):new s.constructor(v);return s.copy(C),C}function Ux(s){var c=new s.constructor(s.byteLength);return new jy(c).set(new jy(s)),c}function g4e(s,c){var v=c?Ux(s.buffer):s.buffer;return new s.constructor(v,s.byteOffset,s.byteLength)}function v4e(s){var c=new s.constructor(s.source,Hn.exec(s));return c.lastIndex=s.lastIndex,c}function m4e(s){return Yg?Vt(Yg.call(s)):{}}function cz(s,c){var v=c?Ux(s.buffer):s.buffer;return new s.constructor(v,s.byteOffset,s.length)}function fz(s,c){if(s!==c){var v=s!==n,C=s===null,_=s===s,N=ri(s),z=c!==n,W=c===null,X=c===c,fe=ri(c);if(!W&&!fe&&!N&&s>c||N&&z&&X&&!W&&!fe||C&&z&&X||!v&&X||!_)return 1;if(!C&&!N&&!fe&&s<c||fe&&v&&_&&!C&&!N||W&&v&&_||!z&&_||!X)return-1}return 0}function y4e(s,c,v){for(var C=-1,_=s.criteria,N=c.criteria,z=_.length,W=v.length;++C<z;){var X=fz(_[C],N[C]);if(X){if(C>=W)return X;var fe=v[C];return X*(fe=="desc"?-1:1)}}return s.index-c.index}function dz(s,c,v,C){for(var _=-1,N=s.length,z=v.length,W=-1,X=c.length,fe=qn(N-z,0),de=ne(X+fe),pe=!C;++W<X;)de[W]=c[W];for(;++_<z;)(pe||_<N)&&(de[v[_]]=s[_]);for(;fe--;)de[W++]=s[_++];return de}function pz(s,c,v,C){for(var _=-1,N=s.length,z=-1,W=v.length,X=-1,fe=c.length,de=qn(N-W,0),pe=ne(de+fe),De=!C;++_<de;)pe[_]=s[_];for(var Pe=_;++X<fe;)pe[Pe+X]=c[X];for(;++z<W;)(De||_<N)&&(pe[Pe+v[z]]=s[_++]);return pe}function Ir(s,c){var v=-1,C=s.length;for(c||(c=ne(C));++v<C;)c[v]=s[v];return c}function Lo(s,c,v,C){var _=!v;v||(v={});for(var N=-1,z=c.length;++N<z;){var W=c[N],X=C?C(v[W],s[W],W,v,s):n;X===n&&(X=s[W]),_?va(v,W,X):Xg(v,W,X)}return v}function b4e(s,c){return Lo(s,Xx(s),c)}function w4e(s,c){return Lo(s,Dz(s),c)}function tb(s,c){return function(v,C){var _=Je(v)?x2e:Vwe,N=c?c():{};return _(v,s,Me(C,2),N)}}function Zf(s){return st(function(c,v){var C=-1,_=v.length,N=_>1?v[_-1]:n,z=_>2?v[2]:n;for(N=s.length>3&&typeof N=="function"?(_--,N):n,z&&xr(v[0],v[1],z)&&(N=_<3?n:N,_=1),c=Vt(c);++C<_;){var W=v[C];W&&s(c,W,C,N)}return c})}function hz(s,c){return function(v,C){if(v==null)return v;if(!Nr(v))return s(v,C);for(var _=v.length,N=c?_:-1,z=Vt(v);(c?N--:++N<_)&&C(z[N],N,z)!==!1;);return v}}function gz(s){return function(c,v,C){for(var _=-1,N=Vt(c),z=C(c),W=z.length;W--;){var X=z[s?W:++_];if(v(N[X],X,N)===!1)break}return c}}function $4e(s,c,v){var C=c&y,_=t0(s);function N(){var z=this&&this!==ct&&this instanceof N?_:s;return z.apply(C?v:this,arguments)}return N}function vz(s){return function(c){c=Tt(c);var v=Wf(c)?no(c):n,C=v?v[0]:c.charAt(0),_=v?Kl(v,1).join(""):c.slice(1);return C[s]()+_}}function Qf(s){return function(c){return hx(hV(pV(c).replace(Ml,"")),s,"")}}function t0(s){return function(){var c=arguments;switch(c.length){case 0:return new s;case 1:return new s(c[0]);case 2:return new s(c[0],c[1]);case 3:return new s(c[0],c[1],c[2]);case 4:return new s(c[0],c[1],c[2],c[3]);case 5:return new s(c[0],c[1],c[2],c[3],c[4]);case 6:return new s(c[0],c[1],c[2],c[3],c[4],c[5]);case 7:return new s(c[0],c[1],c[2],c[3],c[4],c[5],c[6])}var v=Jf(s.prototype),C=s.apply(v,c);return hn(C)?C:v}}function E4e(s,c,v){var C=t0(s);function _(){for(var N=arguments.length,z=ne(N),W=N,X=ed(_);W--;)z[W]=arguments[W];var fe=N<3&&z[0]!==X&&z[N-1]!==X?[]:Ul(z,X);if(N-=fe.length,N<v)return $z(s,c,nb,_.placeholder,n,z,fe,n,n,v-N);var de=this&&this!==ct&&this instanceof _?C:s;return Zn(de,this,z)}return _}function mz(s){return function(c,v,C){var _=Vt(c);if(!Nr(c)){var N=Me(v,3);c=Qn(c),v=function(W){return N(_[W],W,_)}}var z=s(c,v,C);return z>-1?_[N?c[z]:z]:n}}function yz(s){return ya(function(c){var v=c.length,C=v,_=Pi.prototype.thru;for(s&&c.reverse();C--;){var N=c[C];if(typeof N!="function")throw new Fi(a);if(_&&!z&&ab(N)=="wrapper")var z=new Pi([],!0)}for(C=z?C:v;++C<v;){N=c[C];var W=ab(N),X=W=="wrapper"?Kx(N):n;X&&Zx(X[0])&&X[1]==(P|S|A|U)&&!X[4].length&&X[9]==1?z=z[ab(X[0])].apply(z,X[3]):z=N.length==1&&Zx(N)?z[W]():z.thru(N)}return function(){var fe=arguments,de=fe[0];if(z&&fe.length==1&&Je(de))return z.plant(de).value();for(var pe=0,De=v?c[pe].apply(this,fe):de;++pe<v;)De=c[pe].call(this,De);return De}})}function nb(s,c,v,C,_,N,z,W,X,fe){var de=c&P,pe=c&y,De=c&$,Pe=c&(S|D),ze=c&Y,at=De?n:t0(s);function Ve(){for(var ht=arguments.length,Ct=ne(ht),ii=ht;ii--;)Ct[ii]=arguments[ii];if(Pe)var Dr=ed(Ve),oi=P2e(Ct,Dr);if(C&&(Ct=dz(Ct,C,_,Pe)),N&&(Ct=pz(Ct,N,z,Pe)),ht-=oi,Pe&&ht<fe){var Sn=Ul(Ct,Dr);return $z(s,c,nb,Ve.placeholder,v,Ct,Sn,W,X,fe-ht)}var oo=pe?v:this,Ea=De?oo[s]:s;return ht=Ct.length,W?Ct=V4e(Ct,W):ze&&ht>1&&Ct.reverse(),de&&X<ht&&(Ct.length=X),this&&this!==ct&&this instanceof Ve&&(Ea=at||t0(Ea)),Ea.apply(oo,Ct)}return Ve}function bz(s,c){return function(v,C){return Xwe(v,s,c(C),{})}}function rb(s,c){return function(v,C){var _;if(v===n&&C===n)return c;if(v!==n&&(_=v),C!==n){if(_===n)return C;typeof v=="string"||typeof C=="string"?(v=ni(v),C=ni(C)):(v=iz(v),C=iz(C)),_=s(v,C)}return _}}function Hx(s){return ya(function(c){return c=ln(c,ti(Me())),st(function(v){var C=this;return s(c,function(_){return Zn(_,C,v)})})})}function ib(s,c){c=c===n?" ":ni(c);var v=c.length;if(v<2)return v?Lx(c,s):c;var C=Lx(c,Hy(s/qf(c)));return Wf(c)?Kl(no(C),0,s).join(""):C.slice(0,s)}function C4e(s,c,v,C){var _=c&y,N=t0(s);function z(){for(var W=-1,X=arguments.length,fe=-1,de=C.length,pe=ne(de+X),De=this&&this!==ct&&this instanceof z?N:s;++fe<de;)pe[fe]=C[fe];for(;X--;)pe[fe++]=arguments[++W];return Zn(De,_?v:this,pe)}return z}function wz(s){return function(c,v,C){return C&&typeof C!="number"&&xr(c,v,C)&&(v=C=n),c=$a(c),v===n?(v=c,c=0):v=$a(v),C=C===n?c<v?1:-1:$a(C),s4e(c,v,C,s)}}function ob(s){return function(c,v){return typeof c=="string"&&typeof v=="string"||(c=Ri(c),v=Ri(v)),s(c,v)}}function $z(s,c,v,C,_,N,z,W,X,fe){var de=c&S,pe=de?z:n,De=de?n:z,Pe=de?N:n,ze=de?n:N;c|=de?A:B,c&=~(de?B:A),c&m||(c&=~(y|$));var at=[s,c,_,Pe,pe,ze,De,W,X,fe],Ve=v.apply(n,at);return Zx(s)&&Fz(Ve,at),Ve.placeholder=C,Pz(Ve,s,c)}function Wx(s){var c=Wn[s];return function(v,C){if(v=Ri(v),C=C==null?0:vr(nt(C),292),C&&Pj(v)){var _=(Tt(v)+"e").split("e"),N=c(_[0]+"e"+(+_[1]+C));return _=(Tt(N)+"e").split("e"),+(_[0]+"e"+(+_[1]-C))}return c(v)}}var S4e=Yf&&1/Py(new Yf([,-0]))[1]==Te?function(s){return new Yf(s)}:p8;function Ez(s){return function(c){var v=mr(c);return v==ae?$x(c):v==dt?z2e(c):F2e(c,s(c))}}function ma(s,c,v,C,_,N,z,W){var X=c&$;if(!X&&typeof s!="function")throw new Fi(a);var fe=C?C.length:0;if(fe||(c&=~(A|B),C=_=n),z=z===n?z:qn(nt(z),0),W=W===n?W:nt(W),fe-=_?_.length:0,c&B){var de=C,pe=_;C=_=n}var De=X?n:Kx(s),Pe=[s,c,v,C,_,de,pe,N,z,W];if(De&&M4e(Pe,De),s=Pe[0],c=Pe[1],v=Pe[2],C=Pe[3],_=Pe[4],W=Pe[9]=Pe[9]===n?X?0:s.length:qn(Pe[9]-fe,0),!W&&c&(S|D)&&(c&=~(S|D)),!c||c==y)var ze=$4e(s,c,v);else c==S||c==D?ze=E4e(s,c,W):(c==A||c==(y|A))&&!_.length?ze=C4e(s,c,v,C):ze=nb.apply(n,Pe);var at=De?nz:Fz;return Pz(at(ze,Pe),s,c)}function Cz(s,c,v,C){return s===n||io(s,Kf[v])&&!Nt.call(C,v)?c:s}function Sz(s,c,v,C,_,N){return hn(s)&&hn(c)&&(N.set(c,s),Zy(s,c,n,Sz,N),N.delete(c)),s}function x4e(s){return i0(s)?n:s}function xz(s,c,v,C,_,N){var z=v&E,W=s.length,X=c.length;if(W!=X&&!(z&&X>W))return!1;var fe=N.get(s),de=N.get(c);if(fe&&de)return fe==c&&de==s;var pe=-1,De=!0,Pe=v&w?new ku:n;for(N.set(s,c),N.set(c,s);++pe<W;){var ze=s[pe],at=c[pe];if(C)var Ve=z?C(at,ze,pe,c,s,N):C(ze,at,pe,s,c,N);if(Ve!==n){if(Ve)continue;De=!1;break}if(Pe){if(!gx(c,function(ht,Ct){if(!Hg(Pe,Ct)&&(ze===ht||_(ze,ht,v,C,N)))return Pe.push(Ct)})){De=!1;break}}else if(!(ze===at||_(ze,at,v,C,N))){De=!1;break}}return N.delete(s),N.delete(c),De}function D4e(s,c,v,C,_,N,z){switch(v){case Yt:if(s.byteLength!=c.byteLength||s.byteOffset!=c.byteOffset)return!1;s=s.buffer,c=c.buffer;case Kt:return!(s.byteLength!=c.byteLength||!N(new jy(s),new jy(c)));case J:case ue:case ye:return io(+s,+c);case te:return s.name==c.name&&s.message==c.message;case Ze:case pt:return s==c+"";case ae:var W=$x;case dt:var X=C&E;if(W||(W=Py),s.size!=c.size&&!X)return!1;var fe=z.get(s);if(fe)return fe==c;C|=w,z.set(s,c);var de=xz(W(s),W(c),C,_,N,z);return z.delete(s),de;case rn:if(Yg)return Yg.call(s)==Yg.call(c)}return!1}function A4e(s,c,v,C,_,N){var z=v&E,W=qx(s),X=W.length,fe=qx(c),de=fe.length;if(X!=de&&!z)return!1;for(var pe=X;pe--;){var De=W[pe];if(!(z?De in c:Nt.call(c,De)))return!1}var Pe=N.get(s),ze=N.get(c);if(Pe&&ze)return Pe==c&&ze==s;var at=!0;N.set(s,c),N.set(c,s);for(var Ve=z;++pe<X;){De=W[pe];var ht=s[De],Ct=c[De];if(C)var ii=z?C(Ct,ht,De,c,s,N):C(ht,Ct,De,s,c,N);if(!(ii===n?ht===Ct||_(ht,Ct,v,C,N):ii)){at=!1;break}Ve||(Ve=De=="constructor")}if(at&&!Ve){var Dr=s.constructor,oi=c.constructor;Dr!=oi&&"constructor"in s&&"constructor"in c&&!(typeof Dr=="function"&&Dr instanceof Dr&&typeof oi=="function"&&oi instanceof oi)&&(at=!1)}return N.delete(s),N.delete(c),at}function ya(s){return e8(Bz(s,n,jz),s+"")}function qx(s){return Wj(s,Qn,Xx)}function Gx(s){return Wj(s,Lr,Dz)}var Kx=qy?function(s){return qy.get(s)}:p8;function ab(s){for(var c=s.name+"",v=Xf[c],C=Nt.call(Xf,c)?v.length:0;C--;){var _=v[C],N=_.func;if(N==null||N==s)return _.name}return c}function ed(s){var c=Nt.call(F,"placeholder")?F:s;return c.placeholder}function Me(){var s=F.iteratee||f8;return s=s===f8?Kj:s,arguments.length?s(arguments[0],arguments[1]):s}function lb(s,c){var v=s.__data__;return I4e(c)?v[typeof c=="string"?"string":"hash"]:v.map}function Yx(s){for(var c=Qn(s),v=c.length;v--;){var C=c[v],_=s[C];c[v]=[C,_,kz(_)]}return c}function Tu(s,c){var v=R2e(s,c);return Gj(v)?v:n}function _4e(s){var c=Nt.call(s,Au),v=s[Au];try{s[Au]=n;var C=!0}catch{}var _=Ry.call(s);return C&&(c?s[Au]=v:delete s[Au]),_}var Xx=Cx?function(s){return s==null?[]:(s=Vt(s),zl(Cx(s),function(c){return Tj.call(s,c)}))}:h8,Dz=Cx?function(s){for(var c=[];s;)Vl(c,Xx(s)),s=zy(s);return c}:h8,mr=Sr;(Sx&&mr(new Sx(new ArrayBuffer(1)))!=Yt||qg&&mr(new qg)!=ae||xx&&mr(xx.resolve())!=ft||Yf&&mr(new Yf)!=dt||Gg&&mr(new Gg)!=mt)&&(mr=function(s){var c=Sr(s),v=c==$t?s.constructor:n,C=v?Fu(v):"";if(C)switch(C){case cwe:return Yt;case fwe:return ae;case dwe:return ft;case pwe:return dt;case hwe:return mt}return c});function k4e(s,c,v){for(var C=-1,_=v.length;++C<_;){var N=v[C],z=N.size;switch(N.type){case"drop":s+=z;break;case"dropRight":c-=z;break;case"take":c=vr(c,s+z);break;case"takeRight":s=qn(s,c-z);break}}return{start:s,end:c}}function O4e(s){var c=s.match(Un);return c?c[1].split(Sg):[]}function Az(s,c,v){c=Gl(c,s);for(var C=-1,_=c.length,N=!1;++C<_;){var z=Ro(c[C]);if(!(N=s!=null&&v(s,z)))break;s=s[z]}return N||++C!=_?N:(_=s==null?0:s.length,!!_&&hb(_)&&ba(z,_)&&(Je(s)||Pu(s)))}function B4e(s){var c=s.length,v=new s.constructor(c);return c&&typeof s[0]=="string"&&Nt.call(s,"index")&&(v.index=s.index,v.input=s.input),v}function _z(s){return typeof s.constructor=="function"&&!n0(s)?Jf(zy(s)):{}}function T4e(s,c,v){var C=s.constructor;switch(c){case Kt:return Ux(s);case J:case ue:return new C(+s);case Yt:return g4e(s,v);case Jn:case dn:case Nn:case Di:case Zi:case $r:case Fr:case Ai:case Pr:return cz(s,v);case ae:return new C;case ye:case pt:return new C(s);case Ze:return v4e(s);case dt:return new C;case rn:return m4e(s)}}function F4e(s,c){var v=c.length;if(!v)return s;var C=v-1;return c[C]=(v>1?"& ":"")+c[C],c=c.join(v>2?", ":" "),s.replace(yu,`{
188
188
  /* [wrapped with `+c+`] */
189
- `)}function P4e(s){return Je(s)||Pu(s)||!!(Fj&&s&&s[Fj])}function ba(s,c){var v=typeof s;return c=c==null?Ne:c,!!c&&(v=="number"||v!="symbol"&&Fg.test(s))&&s>-1&&s%1==0&&s<c}function xr(s,c,v){if(!hn(v))return!1;var C=typeof c;return(C=="number"?Nr(v)&&ba(c,v.length):C=="string"&&c in v)?io(v[c],s):!1}function Jx(s,c){if(Je(s))return!1;var v=typeof s;return v=="number"||v=="symbol"||v=="boolean"||s==null||ri(s)?!0:Af.test(s)||!Po.test(s)||c!=null&&s in Vt(c)}function I4e(s){var c=typeof s;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?s!=="__proto__":s===null}function Zx(s){var c=ab(s),v=F[c];if(typeof v!="function"||!(c in yt.prototype))return!1;if(s===v)return!0;var C=Kx(v);return!!C&&s===C[0]}function N4e(s){return!!kj&&kj in s}var L4e=Ny?wa:g8;function n0(s){var c=s&&s.constructor,v=typeof c=="function"&&c.prototype||Kf;return s===v}function kz(s){return s===s&&!hn(s)}function Oz(s,c){return function(v){return v==null?!1:v[s]===c&&(c!==n||s in Vt(v))}}function R4e(s){var c=db(s,function(C){return v.size===f&&v.clear(),C}),v=c.cache;return c}function M4e(s,c){var v=s[1],C=c[1],_=v|C,N=_<(y|$|P),z=C==P&&v==S||C==P&&v==U&&s[7].length<=c[8]||C==(P|U)&&c[7].length<=c[8]&&v==S;if(!(N||z))return s;C&y&&(s[2]=c[2],_|=v&y?0:m);var W=c[3];if(W){var X=s[3];s[3]=X?dz(X,W,c[4]):W,s[4]=X?Ul(s[3],d):c[4]}return W=c[5],W&&(X=s[5],s[5]=X?pz(X,W,c[6]):W,s[6]=X?Ul(s[5],d):c[6]),W=c[7],W&&(s[7]=W),C&P&&(s[8]=s[8]==null?c[8]:vr(s[8],c[8])),s[9]==null&&(s[9]=c[9]),s[0]=c[0],s[1]=_,s}function j4e(s){var c=[];if(s!=null)for(var v in Vt(s))c.push(v);return c}function z4e(s){return Ry.call(s)}function Bz(s,c,v){return c=qn(c===n?s.length-1:c,0),function(){for(var C=arguments,_=-1,N=qn(C.length-c,0),z=ne(N);++_<N;)z[_]=C[c+_];_=-1;for(var W=ne(c+1);++_<c;)W[_]=C[_];return W[c]=v(z),Zn(s,this,W)}}function Tz(s,c){return c.length<2?s:Bu(s,Ni(c,0,-1))}function V4e(s,c){for(var v=s.length,C=vr(c.length,v),_=Ir(s);C--;){var N=c[C];s[C]=ba(N,v)?_[N]:n}return s}function Qx(s,c){if(!(c==="constructor"&&typeof s[c]=="function")&&c!="__proto__")return s[c]}var Fz=Iz(nz),r0=rwe||function(s,c){return ct.setTimeout(s,c)},e8=Iz(f4e);function Pz(s,c,v){var C=c+"";return e8(s,F4e(C,U4e(O4e(C),v)))}function Iz(s){var c=0,v=0;return function(){var C=lwe(),_=se-(C-v);if(v=C,_>0){if(++c>=ge)return arguments[0]}else c=0;return s.apply(n,arguments)}}function sb(s,c){var v=-1,C=s.length,_=C-1;for(c=c===n?C:c;++v<c;){var N=Nx(v,_),z=s[N];s[N]=s[v],s[v]=z}return s.length=c,s}var Nz=R4e(function(s){var c=[];return s.charCodeAt(0)===46&&c.push(""),s.replace(Qi,function(v,C,_,N){c.push(_?N.replace(Ag,"$1"):C||v)}),c});function Ro(s){if(typeof s=="string"||ri(s))return s;var c=s+"";return c=="0"&&1/s==-Te?"-0":c}function Fu(s){if(s!=null){try{return Ly.call(s)}catch{}try{return s+""}catch{}}return""}function U4e(s,c){return Ti(T,function(v){var C="_."+v[0];c&v[1]&&!Ty(s,C)&&s.push(C)}),s.sort()}function Lz(s){if(s instanceof yt)return s.clone();var c=new Pi(s.__wrapped__,s.__chain__);return c.__actions__=Ir(s.__actions__),c.__index__=s.__index__,c.__values__=s.__values__,c}function H4e(s,c,v){(v?xr(s,c,v):c===n)?c=1:c=qn(nt(c),0);var C=s==null?0:s.length;if(!C||c<1)return[];for(var _=0,N=0,z=ne(Hy(C/c));_<C;)z[N++]=Ni(s,_,_+=c);return z}function W4e(s){for(var c=-1,v=s==null?0:s.length,C=0,_=[];++c<v;){var N=s[c];N&&(_[C++]=N)}return _}function q4e(){var s=arguments.length;if(!s)return[];for(var c=ne(s-1),v=arguments[0],C=s;C--;)c[C-1]=arguments[C];return Vl(Je(v)?Ir(v):[v],sr(c,1))}var G4e=st(function(s,c){return Cn(s)?Jg(s,sr(c,1,Cn,!0)):[]}),K4e=st(function(s,c){var v=Li(c);return Cn(v)&&(v=n),Cn(s)?Jg(s,sr(c,1,Cn,!0),Me(v,2)):[]}),Y4e=st(function(s,c){var v=Li(c);return Cn(v)&&(v=n),Cn(s)?Jg(s,sr(c,1,Cn,!0),n,v):[]});function X4e(s,c,v){var C=s==null?0:s.length;return C?(c=v||c===n?1:nt(c),Ni(s,c<0?0:c,C)):[]}function J4e(s,c,v){var C=s==null?0:s.length;return C?(c=v||c===n?1:nt(c),c=C-c,Ni(s,0,c<0?0:c)):[]}function Z4e(s,c){return s&&s.length?eb(s,Me(c,3),!0,!0):[]}function Q4e(s,c){return s&&s.length?eb(s,Me(c,3),!0):[]}function e$e(s,c,v,C){var _=s==null?0:s.length;return _?(v&&typeof v!="number"&&xr(s,c,v)&&(v=0,C=_),qwe(s,c,v,C)):[]}function Rz(s,c,v){var C=s==null?0:s.length;if(!C)return-1;var _=v==null?0:nt(v);return _<0&&(_=qn(C+_,0)),Fy(s,Me(c,3),_)}function Mz(s,c,v){var C=s==null?0:s.length;if(!C)return-1;var _=C-1;return v!==n&&(_=nt(v),_=v<0?qn(C+_,0):vr(_,C-1)),Fy(s,Me(c,3),_,!0)}function jz(s){var c=s==null?0:s.length;return c?sr(s,1):[]}function t$e(s){var c=s==null?0:s.length;return c?sr(s,Te):[]}function n$e(s,c){var v=s==null?0:s.length;return v?(c=c===n?1:nt(c),sr(s,c)):[]}function r$e(s){for(var c=-1,v=s==null?0:s.length,C={};++c<v;){var _=s[c];C[_[0]]=_[1]}return C}function zz(s){return s&&s.length?s[0]:n}function i$e(s,c,v){var C=s==null?0:s.length;if(!C)return-1;var _=v==null?0:nt(v);return _<0&&(_=qn(C+_,0)),Hf(s,c,_)}function o$e(s){var c=s==null?0:s.length;return c?Ni(s,0,-1):[]}var a$e=st(function(s){var c=ln(s,zx);return c.length&&c[0]===s[0]?Bx(c):[]}),l$e=st(function(s){var c=Li(s),v=ln(s,zx);return c===Li(v)?c=n:v.pop(),v.length&&v[0]===s[0]?Bx(v,Me(c,2)):[]}),s$e=st(function(s){var c=Li(s),v=ln(s,zx);return c=typeof c=="function"?c:n,c&&v.pop(),v.length&&v[0]===s[0]?Bx(v,n,c):[]});function u$e(s,c){return s==null?"":owe.call(s,c)}function Li(s){var c=s==null?0:s.length;return c?s[c-1]:n}function c$e(s,c,v){var C=s==null?0:s.length;if(!C)return-1;var _=C;return v!==n&&(_=nt(v),_=_<0?qn(C+_,0):vr(_,C-1)),c===c?U2e(s,c,_):Fy(s,$j,_,!0)}function f$e(s,c){return s&&s.length?Zj(s,nt(c)):n}var d$e=st(Vz);function Vz(s,c){return s&&s.length&&c&&c.length?Ix(s,c):s}function p$e(s,c,v){return s&&s.length&&c&&c.length?Ix(s,c,Me(v,2)):s}function h$e(s,c,v){return s&&s.length&&c&&c.length?Ix(s,c,n,v):s}var g$e=ya(function(s,c){var v=s==null?0:s.length,C=Ax(s,c);return tz(s,ln(c,function(_){return ba(_,v)?+_:_}).sort(fz)),C});function v$e(s,c){var v=[];if(!(s&&s.length))return v;var C=-1,_=[],N=s.length;for(c=Me(c,3);++C<N;){var z=s[C];c(z,C,s)&&(v.push(z),_.push(C))}return tz(s,_),v}function t8(s){return s==null?s:uwe.call(s)}function m$e(s,c,v){var C=s==null?0:s.length;return C?(v&&typeof v!="number"&&xr(s,c,v)?(c=0,v=C):(c=c==null?0:nt(c),v=v===n?C:nt(v)),Ni(s,c,v)):[]}function y$e(s,c){return Qy(s,c)}function b$e(s,c,v){return Rx(s,c,Me(v,2))}function w$e(s,c){var v=s==null?0:s.length;if(v){var C=Qy(s,c);if(C<v&&io(s[C],c))return C}return-1}function $$e(s,c){return Qy(s,c,!0)}function E$e(s,c,v){return Rx(s,c,Me(v,2),!0)}function C$e(s,c){var v=s==null?0:s.length;if(v){var C=Qy(s,c,!0)-1;if(io(s[C],c))return C}return-1}function S$e(s){return s&&s.length?rz(s):[]}function x$e(s,c){return s&&s.length?rz(s,Me(c,2)):[]}function D$e(s){var c=s==null?0:s.length;return c?Ni(s,1,c):[]}function A$e(s,c,v){return s&&s.length?(c=v||c===n?1:nt(c),Ni(s,0,c<0?0:c)):[]}function _$e(s,c,v){var C=s==null?0:s.length;return C?(c=v||c===n?1:nt(c),c=C-c,Ni(s,c<0?0:c,C)):[]}function k$e(s,c){return s&&s.length?eb(s,Me(c,3),!1,!0):[]}function O$e(s,c){return s&&s.length?eb(s,Me(c,3)):[]}var B$e=st(function(s){return ql(sr(s,1,Cn,!0))}),T$e=st(function(s){var c=Li(s);return Cn(c)&&(c=n),ql(sr(s,1,Cn,!0),Me(c,2))}),F$e=st(function(s){var c=Li(s);return c=typeof c=="function"?c:n,ql(sr(s,1,Cn,!0),n,c)});function P$e(s){return s&&s.length?ql(s):[]}function I$e(s,c){return s&&s.length?ql(s,Me(c,2)):[]}function N$e(s,c){return c=typeof c=="function"?c:n,s&&s.length?ql(s,n,c):[]}function n8(s){if(!(s&&s.length))return[];var c=0;return s=zl(s,function(v){if(Cn(v))return c=qn(v.length,c),!0}),bx(c,function(v){return ln(s,vx(v))})}function Uz(s,c){if(!(s&&s.length))return[];var v=n8(s);return c==null?v:ln(v,function(C){return Zn(c,n,C)})}var L$e=st(function(s,c){return Cn(s)?Jg(s,c):[]}),R$e=st(function(s){return jx(zl(s,Cn))}),M$e=st(function(s){var c=Li(s);return Cn(c)&&(c=n),jx(zl(s,Cn),Me(c,2))}),j$e=st(function(s){var c=Li(s);return c=typeof c=="function"?c:n,jx(zl(s,Cn),n,c)}),z$e=st(n8);function V$e(s,c){return lz(s||[],c||[],Xg)}function U$e(s,c){return lz(s||[],c||[],e0)}var H$e=st(function(s){var c=s.length,v=c>1?s[c-1]:n;return v=typeof v=="function"?(s.pop(),v):n,Uz(s,v)});function Hz(s){var c=F(s);return c.__chain__=!0,c}function W$e(s,c){return c(s),s}function ub(s,c){return c(s)}var q$e=ya(function(s){var c=s.length,v=c?s[0]:0,C=this.__wrapped__,_=function(N){return Ax(N,s)};return c>1||this.__actions__.length||!(C instanceof yt)||!ba(v)?this.thru(_):(C=C.slice(v,+v+(c?1:0)),C.__actions__.push({func:ub,args:[_],thisArg:n}),new Pi(C,this.__chain__).thru(function(N){return c&&!N.length&&N.push(n),N}))});function G$e(){return Hz(this)}function K$e(){return new Pi(this.value(),this.__chain__)}function Y$e(){this.__values__===n&&(this.__values__=iV(this.value()));var s=this.__index__>=this.__values__.length,c=s?n:this.__values__[this.__index__++];return{done:s,value:c}}function X$e(){return this}function J$e(s){for(var c,v=this;v instanceof Ky;){var C=Lz(v);C.__index__=0,C.__values__=n,c?_.__wrapped__=C:c=C;var _=C;v=v.__wrapped__}return _.__wrapped__=s,c}function Z$e(){var s=this.__wrapped__;if(s instanceof yt){var c=s;return this.__actions__.length&&(c=new yt(this)),c=c.reverse(),c.__actions__.push({func:ub,args:[t8],thisArg:n}),new Pi(c,this.__chain__)}return this.thru(t8)}function Q$e(){return az(this.__wrapped__,this.__actions__)}var e3e=tb(function(s,c,v){Nt.call(s,v)?++s[v]:va(s,v,1)});function t3e(s,c,v){var C=Je(s)?bj:Wwe;return v&&xr(s,c,v)&&(c=n),C(s,Me(c,3))}function n3e(s,c){var v=Je(s)?zl:Uj;return v(s,Me(c,3))}var r3e=mz(Rz),i3e=mz(Mz);function o3e(s,c){return sr(cb(s,c),1)}function a3e(s,c){return sr(cb(s,c),Te)}function l3e(s,c,v){return v=v===n?1:nt(v),sr(cb(s,c),v)}function Wz(s,c){var v=Je(s)?Ti:Wl;return v(s,Me(c,3))}function qz(s,c){var v=Je(s)?D2e:Vj;return v(s,Me(c,3))}var s3e=tb(function(s,c,v){Nt.call(s,v)?s[v].push(c):va(s,v,[c])});function u3e(s,c,v,C){s=Nr(s)?s:nd(s),v=v&&!C?nt(v):0;var _=s.length;return v<0&&(v=qn(_+v,0)),gb(s)?v<=_&&s.indexOf(c,v)>-1:!!_&&Hf(s,c,v)>-1}var c3e=st(function(s,c,v){var C=-1,_=typeof c=="function",N=Nr(s)?ne(s.length):[];return Wl(s,function(z){N[++C]=_?Zn(c,z,v):Zg(z,c,v)}),N}),f3e=tb(function(s,c,v){va(s,v,c)});function cb(s,c){var v=Je(s)?ln:Yj;return v(s,Me(c,3))}function d3e(s,c,v,C){return s==null?[]:(Je(c)||(c=c==null?[]:[c]),v=C?n:v,Je(v)||(v=v==null?[]:[v]),Qj(s,c,v))}var p3e=tb(function(s,c,v){s[v?0:1].push(c)},function(){return[[],[]]});function h3e(s,c,v){var C=Je(s)?hx:Cj,_=arguments.length<3;return C(s,Me(c,4),v,_,Wl)}function g3e(s,c,v){var C=Je(s)?A2e:Cj,_=arguments.length<3;return C(s,Me(c,4),v,_,Vj)}function v3e(s,c){var v=Je(s)?zl:Uj;return v(s,pb(Me(c,3)))}function m3e(s){var c=Je(s)?Rj:u4e;return c(s)}function y3e(s,c,v){(v?xr(s,c,v):c===n)?c=1:c=nt(c);var C=Je(s)?jwe:c4e;return C(s,c)}function b3e(s){var c=Je(s)?zwe:d4e;return c(s)}function w3e(s){if(s==null)return 0;if(Nr(s))return gb(s)?qf(s):s.length;var c=mr(s);return c==oe||c==dt?s.size:Fx(s).length}function $3e(s,c,v){var C=Je(s)?gx:p4e;return v&&xr(s,c,v)&&(c=n),C(s,Me(c,3))}var E3e=st(function(s,c){if(s==null)return[];var v=c.length;return v>1&&xr(s,c[0],c[1])?c=[]:v>2&&xr(c[0],c[1],c[2])&&(c=[c[0]]),Qj(s,sr(c,1),[])}),fb=nwe||function(){return ct.Date.now()};function C3e(s,c){if(typeof c!="function")throw new Fi(a);return s=nt(s),function(){if(--s<1)return c.apply(this,arguments)}}function Gz(s,c,v){return c=v?n:c,c=s&&c==null?s.length:c,ma(s,P,n,n,n,n,c)}function Kz(s,c){var v;if(typeof c!="function")throw new Fi(a);return s=nt(s),function(){return--s>0&&(v=c.apply(this,arguments)),s<=1&&(c=n),v}}var r8=st(function(s,c,v){var C=y;if(v.length){var _=Ul(v,ed(r8));C|=A}return ma(s,C,c,v,_)}),Yz=st(function(s,c,v){var C=y|$;if(v.length){var _=Ul(v,ed(Yz));C|=A}return ma(c,C,s,v,_)});function Xz(s,c,v){c=v?n:c;var C=ma(s,S,n,n,n,n,n,c);return C.placeholder=Xz.placeholder,C}function Jz(s,c,v){c=v?n:c;var C=ma(s,D,n,n,n,n,n,c);return C.placeholder=Jz.placeholder,C}function Zz(s,c,v){var C,_,N,z,W,X,fe=0,de=!1,pe=!1,De=!0;if(typeof s!="function")throw new Fi(a);c=Ri(c)||0,hn(v)&&(de=!!v.leading,pe="maxWait"in v,N=pe?qn(Ri(v.maxWait)||0,c):N,De="trailing"in v?!!v.trailing:De);function Pe(Sn){var oo=C,Ea=_;return C=_=n,fe=Sn,z=s.apply(Ea,oo),z}function ze(Sn){return fe=Sn,W=r0(ht,c),de?Pe(Sn):z}function at(Sn){var oo=Sn-X,Ea=Sn-fe,mV=c-oo;return pe?vr(mV,N-Ea):mV}function Ve(Sn){var oo=Sn-X,Ea=Sn-fe;return X===n||oo>=c||oo<0||pe&&Ea>=N}function ht(){var Sn=fb();if(Ve(Sn))return Ct(Sn);W=r0(ht,at(Sn))}function Ct(Sn){return W=n,De&&C?Pe(Sn):(C=_=n,z)}function ii(){W!==n&&sz(W),fe=0,C=X=_=W=n}function Dr(){return W===n?z:Ct(fb())}function oi(){var Sn=fb(),oo=Ve(Sn);if(C=arguments,_=this,X=Sn,oo){if(W===n)return ze(X);if(pe)return sz(W),W=r0(ht,c),Pe(X)}return W===n&&(W=r0(ht,c)),z}return oi.cancel=ii,oi.flush=Dr,oi}var S3e=st(function(s,c){return zj(s,1,c)}),x3e=st(function(s,c,v){return zj(s,Ri(c)||0,v)});function D3e(s){return ma(s,Y)}function db(s,c){if(typeof s!="function"||c!=null&&typeof c!="function")throw new Fi(a);var v=function(){var C=arguments,_=c?c.apply(this,C):C[0],N=v.cache;if(N.has(_))return N.get(_);var z=s.apply(this,C);return v.cache=N.set(_,z)||N,z};return v.cache=new(db.Cache||ga),v}db.Cache=ga;function pb(s){if(typeof s!="function")throw new Fi(a);return function(){var c=arguments;switch(c.length){case 0:return!s.call(this);case 1:return!s.call(this,c[0]);case 2:return!s.call(this,c[0],c[1]);case 3:return!s.call(this,c[0],c[1],c[2])}return!s.apply(this,c)}}function A3e(s){return Kz(2,s)}var _3e=h4e(function(s,c){c=c.length==1&&Je(c[0])?ln(c[0],ti(Me())):ln(sr(c,1),ti(Me()));var v=c.length;return st(function(C){for(var _=-1,N=vr(C.length,v);++_<N;)C[_]=c[_].call(this,C[_]);return Zn(s,this,C)})}),i8=st(function(s,c){var v=Ul(c,ed(i8));return ma(s,A,n,c,v)}),Qz=st(function(s,c){var v=Ul(c,ed(Qz));return ma(s,B,n,c,v)}),k3e=ya(function(s,c){return ma(s,U,n,n,n,c)});function O3e(s,c){if(typeof s!="function")throw new Fi(a);return c=c===n?c:nt(c),st(s,c)}function B3e(s,c){if(typeof s!="function")throw new Fi(a);return c=c==null?0:qn(nt(c),0),st(function(v){var C=v[c],_=Kl(v,0,c);return C&&Vl(_,C),Zn(s,this,_)})}function T3e(s,c,v){var C=!0,_=!0;if(typeof s!="function")throw new Fi(a);return hn(v)&&(C="leading"in v?!!v.leading:C,_="trailing"in v?!!v.trailing:_),Zz(s,c,{leading:C,maxWait:c,trailing:_})}function F3e(s){return Gz(s,1)}function P3e(s,c){return i8(Vx(c),s)}function I3e(){if(!arguments.length)return[];var s=arguments[0];return Je(s)?s:[s]}function N3e(s){return Ii(s,h)}function L3e(s,c){return c=typeof c=="function"?c:n,Ii(s,h,c)}function R3e(s){return Ii(s,p|h)}function M3e(s,c){return c=typeof c=="function"?c:n,Ii(s,p|h,c)}function j3e(s,c){return c==null||jj(s,c,Qn(c))}function io(s,c){return s===c||s!==s&&c!==c}var z3e=ob(Ox),V3e=ob(function(s,c){return s>=c}),Pu=qj(function(){return arguments}())?qj:function(s){return mn(s)&&Nt.call(s,"callee")&&!Tj.call(s,"callee")},Je=ne.isArray,U3e=Ln?ti(Ln):Jwe;function Nr(s){return s!=null&&hb(s.length)&&!wa(s)}function Cn(s){return mn(s)&&Nr(s)}function H3e(s){return s===!0||s===!1||mn(s)&&Sr(s)==J}var Yl=iwe||g8,W3e=to?ti(to):Zwe;function q3e(s){return mn(s)&&s.nodeType===1&&!i0(s)}function G3e(s){if(s==null)return!0;if(Nr(s)&&(Je(s)||typeof s=="string"||typeof s.splice=="function"||Yl(s)||td(s)||Pu(s)))return!s.length;var c=mr(s);if(c==oe||c==dt)return!s.size;if(n0(s))return!Fx(s).length;for(var v in s)if(Nt.call(s,v))return!1;return!0}function K3e(s,c){return Qg(s,c)}function Y3e(s,c,v){v=typeof v=="function"?v:n;var C=v?v(s,c):n;return C===n?Qg(s,c,n,v):!!C}function o8(s){if(!mn(s))return!1;var c=Sr(s);return c==te||c==he||typeof s.message=="string"&&typeof s.name=="string"&&!i0(s)}function X3e(s){return typeof s=="number"&&Pj(s)}function wa(s){if(!hn(s))return!1;var c=Sr(s);return c==Q||c==Ce||c==O||c==ot}function eV(s){return typeof s=="number"&&s==nt(s)}function hb(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=Ne}function hn(s){var c=typeof s;return s!=null&&(c=="object"||c=="function")}function mn(s){return s!=null&&typeof s=="object"}var tV=Bi?ti(Bi):e4e;function J3e(s,c){return s===c||Tx(s,c,Yx(c))}function Z3e(s,c,v){return v=typeof v=="function"?v:n,Tx(s,c,Yx(c),v)}function Q3e(s){return nV(s)&&s!=+s}function eEe(s){if(L4e(s))throw new Xe(o);return Gj(s)}function tEe(s){return s===null}function nEe(s){return s==null}function nV(s){return typeof s=="number"||mn(s)&&Sr(s)==ye}function i0(s){if(!mn(s)||Sr(s)!=$t)return!1;var c=zy(s);if(c===null)return!0;var v=Nt.call(c,"constructor")&&c.constructor;return typeof v=="function"&&v instanceof v&&Ly.call(v)==Z2e}var a8=Io?ti(Io):t4e;function rEe(s){return eV(s)&&s>=-Ne&&s<=Ne}var rV=Ug?ti(Ug):n4e;function gb(s){return typeof s=="string"||!Je(s)&&mn(s)&&Sr(s)==pt}function ri(s){return typeof s=="symbol"||mn(s)&&Sr(s)==rn}var td=Du?ti(Du):r4e;function iEe(s){return s===n}function oEe(s){return mn(s)&&mr(s)==mt}function aEe(s){return mn(s)&&Sr(s)==on}var lEe=ob(Px),sEe=ob(function(s,c){return s<=c});function iV(s){if(!s)return[];if(Nr(s))return gb(s)?no(s):Ir(s);if(Wg&&s[Wg])return j2e(s[Wg]());var c=mr(s),v=c==oe?$x:c==dt?Py:nd;return v(s)}function $a(s){if(!s)return s===0?s:0;if(s=Ri(s),s===Te||s===-Te){var c=s<0?-1:1;return c*Re}return s===s?s:0}function nt(s){var c=$a(s),v=c%1;return c===c?v?c-v:c:0}function oV(s){return s?Ou(nt(s),0,ae):0}function Ri(s){if(typeof s=="number")return s;if(ri(s))return Ae;if(hn(s)){var c=typeof s.valueOf=="function"?s.valueOf():s;s=hn(c)?c+"":c}if(typeof s!="string")return s===0?s:+s;s=Sj(s);var v=Og.test(s);return v||Tg.test(s)?Ie(s.slice(2),v?2:8):kg.test(s)?Ae:+s}function aV(s){return Lo(s,Lr(s))}function uEe(s){return s?Ou(nt(s),-Ne,Ne):s===0?s:0}function Tt(s){return s==null?"":ni(s)}var cEe=Zf(function(s,c){if(n0(c)||Nr(c)){Lo(c,Qn(c),s);return}for(var v in c)Nt.call(c,v)&&Xg(s,v,c[v])}),lV=Zf(function(s,c){Lo(c,Lr(c),s)}),vb=Zf(function(s,c,v,C){Lo(c,Lr(c),s,C)}),fEe=Zf(function(s,c,v,C){Lo(c,Qn(c),s,C)}),dEe=ya(Ax);function pEe(s,c){var v=Jf(s);return c==null?v:Mj(v,c)}var hEe=st(function(s,c){s=Vt(s);var v=-1,C=c.length,_=C>2?c[2]:n;for(_&&xr(c[0],c[1],_)&&(C=1);++v<C;)for(var N=c[v],z=Lr(N),W=-1,X=z.length;++W<X;){var fe=z[W],de=s[fe];(de===n||io(de,Kf[fe])&&!Nt.call(s,fe))&&(s[fe]=N[fe])}return s}),gEe=st(function(s){return s.push(n,Sz),Zn(sV,n,s)});function vEe(s,c){return wj(s,Me(c,3),No)}function mEe(s,c){return wj(s,Me(c,3),kx)}function yEe(s,c){return s==null?s:_x(s,Me(c,3),Lr)}function bEe(s,c){return s==null?s:Hj(s,Me(c,3),Lr)}function wEe(s,c){return s&&No(s,Me(c,3))}function $Ee(s,c){return s&&kx(s,Me(c,3))}function EEe(s){return s==null?[]:Jy(s,Qn(s))}function CEe(s){return s==null?[]:Jy(s,Lr(s))}function l8(s,c,v){var C=s==null?n:Bu(s,c);return C===n?v:C}function SEe(s,c){return s!=null&&Az(s,c,Gwe)}function s8(s,c){return s!=null&&Az(s,c,Kwe)}var xEe=bz(function(s,c,v){c!=null&&typeof c.toString!="function"&&(c=Ry.call(c)),s[c]=v},c8(Rr)),DEe=bz(function(s,c,v){c!=null&&typeof c.toString!="function"&&(c=Ry.call(c)),Nt.call(s,c)?s[c].push(v):s[c]=[v]},Me),AEe=st(Zg);function Qn(s){return Nr(s)?Lj(s):Fx(s)}function Lr(s){return Nr(s)?Lj(s,!0):i4e(s)}function _Ee(s,c){var v={};return c=Me(c,3),No(s,function(C,_,N){va(v,c(C,_,N),C)}),v}function kEe(s,c){var v={};return c=Me(c,3),No(s,function(C,_,N){va(v,_,c(C,_,N))}),v}var OEe=Zf(function(s,c,v){Zy(s,c,v)}),sV=Zf(function(s,c,v,C){Zy(s,c,v,C)}),BEe=ya(function(s,c){var v={};if(s==null)return v;var C=!1;c=ln(c,function(N){return N=Gl(N,s),C||(C=N.length>1),N}),Lo(s,Gx(s),v),C&&(v=Ii(v,p|g|h,x4e));for(var _=c.length;_--;)Mx(v,c[_]);return v});function TEe(s,c){return uV(s,pb(Me(c)))}var FEe=ya(function(s,c){return s==null?{}:a4e(s,c)});function uV(s,c){if(s==null)return{};var v=ln(Gx(s),function(C){return[C]});return c=Me(c),ez(s,v,function(C,_){return c(C,_[0])})}function PEe(s,c,v){c=Gl(c,s);var C=-1,_=c.length;for(_||(_=1,s=n);++C<_;){var N=s==null?n:s[Ro(c[C])];N===n&&(C=_,N=v),s=wa(N)?N.call(s):N}return s}function IEe(s,c,v){return s==null?s:e0(s,c,v)}function NEe(s,c,v,C){return C=typeof C=="function"?C:n,s==null?s:e0(s,c,v,C)}var cV=Ez(Qn),fV=Ez(Lr);function LEe(s,c,v){var C=Je(s),_=C||Yl(s)||td(s);if(c=Me(c,4),v==null){var N=s&&s.constructor;_?v=C?new N:[]:hn(s)?v=wa(N)?Jf(zy(s)):{}:v={}}return(_?Ti:No)(s,function(z,W,X){return c(v,z,W,X)}),v}function REe(s,c){return s==null?!0:Mx(s,c)}function MEe(s,c,v){return s==null?s:oz(s,c,Vx(v))}function jEe(s,c,v,C){return C=typeof C=="function"?C:n,s==null?s:oz(s,c,Vx(v),C)}function nd(s){return s==null?[]:wx(s,Qn(s))}function zEe(s){return s==null?[]:wx(s,Lr(s))}function VEe(s,c,v){return v===n&&(v=c,c=n),v!==n&&(v=Ri(v),v=v===v?v:0),c!==n&&(c=Ri(c),c=c===c?c:0),Ou(Ri(s),c,v)}function UEe(s,c,v){return c=$a(c),v===n?(v=c,c=0):v=$a(v),s=Ri(s),Ywe(s,c,v)}function HEe(s,c,v){if(v&&typeof v!="boolean"&&xr(s,c,v)&&(c=v=n),v===n&&(typeof c=="boolean"?(v=c,c=n):typeof s=="boolean"&&(v=s,s=n)),s===n&&c===n?(s=0,c=1):(s=$a(s),c===n?(c=s,s=0):c=$a(c)),s>c){var C=s;s=c,c=C}if(v||s%1||c%1){var _=Ij();return vr(s+_*(c-s+qe("1e-"+((_+"").length-1))),c)}return Nx(s,c)}var WEe=Qf(function(s,c,v){return c=c.toLowerCase(),s+(v?dV(c):c)});function dV(s){return u8(Tt(s).toLowerCase())}function pV(s){return s=Tt(s),s&&s.replace(hr,I2e).replace(Vg,"")}function qEe(s,c,v){s=Tt(s),c=ni(c);var C=s.length;v=v===n?C:Ou(nt(v),0,C);var _=v;return v-=c.length,v>=0&&s.slice(v,_)==c}function GEe(s){return s=Tt(s),s&&la.test(s)?s.replace(Fo,N2e):s}function KEe(s){return s=Tt(s),s&&Cg.test(s)?s.replace(vu,"\\$&"):s}var YEe=Qf(function(s,c,v){return s+(v?"-":"")+c.toLowerCase()}),XEe=Qf(function(s,c,v){return s+(v?" ":"")+c.toLowerCase()}),JEe=vz("toLowerCase");function ZEe(s,c,v){s=Tt(s),c=nt(c);var C=c?qf(s):0;if(!c||C>=c)return s;var _=(c-C)/2;return ib(Wy(_),v)+s+ib(Hy(_),v)}function QEe(s,c,v){s=Tt(s),c=nt(c);var C=c?qf(s):0;return c&&C<c?s+ib(c-C,v):s}function eCe(s,c,v){s=Tt(s),c=nt(c);var C=c?qf(s):0;return c&&C<c?ib(c-C,v)+s:s}function tCe(s,c,v){return v||c==null?c=0:c&&(c=+c),swe(Tt(s).replace(mu,""),c||0)}function nCe(s,c,v){return(v?xr(s,c,v):c===n)?c=1:c=nt(c),Lx(Tt(s),c)}function rCe(){var s=arguments,c=Tt(s[0]);return s.length<3?c:c.replace(s[1],s[2])}var iCe=Qf(function(s,c,v){return s+(v?"_":"")+c.toLowerCase()});function oCe(s,c,v){return v&&typeof v!="number"&&xr(s,c,v)&&(c=v=n),v=v===n?ae:v>>>0,v?(s=Tt(s),s&&(typeof c=="string"||c!=null&&!a8(c))&&(c=ni(c),!c&&Wf(s))?Kl(no(s),0,v):s.split(c,v)):[]}var aCe=Qf(function(s,c,v){return s+(v?" ":"")+u8(c)});function lCe(s,c,v){return s=Tt(s),v=v==null?0:Ou(nt(v),0,s.length),c=ni(c),s.slice(v,v+c.length)==c}function sCe(s,c,v){var C=F.templateSettings;v&&xr(s,c,v)&&(c=n),s=Tt(s),c=vb({},c,C,Cz);var _=vb({},c.imports,C.imports,Cz),N=Qn(_),z=wx(_,N),W,X,fe=0,de=c.interpolate||Il,pe="__p += '",De=Ex((c.escape||Il).source+"|"+de.source+"|"+(de===Pl?_g:Il).source+"|"+(c.evaluate||Il).source+"|$","g"),Pe="//# sourceURL="+(Nt.call(c,"sourceURL")?(c.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++xu+"]")+`
189
+ `)}function P4e(s){return Je(s)||Pu(s)||!!(Fj&&s&&s[Fj])}function ba(s,c){var v=typeof s;return c=c==null?Ne:c,!!c&&(v=="number"||v!="symbol"&&Fg.test(s))&&s>-1&&s%1==0&&s<c}function xr(s,c,v){if(!hn(v))return!1;var C=typeof c;return(C=="number"?Nr(v)&&ba(c,v.length):C=="string"&&c in v)?io(v[c],s):!1}function Jx(s,c){if(Je(s))return!1;var v=typeof s;return v=="number"||v=="symbol"||v=="boolean"||s==null||ri(s)?!0:Af.test(s)||!Po.test(s)||c!=null&&s in Vt(c)}function I4e(s){var c=typeof s;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?s!=="__proto__":s===null}function Zx(s){var c=ab(s),v=F[c];if(typeof v!="function"||!(c in yt.prototype))return!1;if(s===v)return!0;var C=Kx(v);return!!C&&s===C[0]}function N4e(s){return!!kj&&kj in s}var L4e=Ny?wa:g8;function n0(s){var c=s&&s.constructor,v=typeof c=="function"&&c.prototype||Kf;return s===v}function kz(s){return s===s&&!hn(s)}function Oz(s,c){return function(v){return v==null?!1:v[s]===c&&(c!==n||s in Vt(v))}}function R4e(s){var c=db(s,function(C){return v.size===f&&v.clear(),C}),v=c.cache;return c}function M4e(s,c){var v=s[1],C=c[1],_=v|C,N=_<(y|$|P),z=C==P&&v==S||C==P&&v==U&&s[7].length<=c[8]||C==(P|U)&&c[7].length<=c[8]&&v==S;if(!(N||z))return s;C&y&&(s[2]=c[2],_|=v&y?0:m);var W=c[3];if(W){var X=s[3];s[3]=X?dz(X,W,c[4]):W,s[4]=X?Ul(s[3],d):c[4]}return W=c[5],W&&(X=s[5],s[5]=X?pz(X,W,c[6]):W,s[6]=X?Ul(s[5],d):c[6]),W=c[7],W&&(s[7]=W),C&P&&(s[8]=s[8]==null?c[8]:vr(s[8],c[8])),s[9]==null&&(s[9]=c[9]),s[0]=c[0],s[1]=_,s}function j4e(s){var c=[];if(s!=null)for(var v in Vt(s))c.push(v);return c}function z4e(s){return Ry.call(s)}function Bz(s,c,v){return c=qn(c===n?s.length-1:c,0),function(){for(var C=arguments,_=-1,N=qn(C.length-c,0),z=ne(N);++_<N;)z[_]=C[c+_];_=-1;for(var W=ne(c+1);++_<c;)W[_]=C[_];return W[c]=v(z),Zn(s,this,W)}}function Tz(s,c){return c.length<2?s:Bu(s,Ni(c,0,-1))}function V4e(s,c){for(var v=s.length,C=vr(c.length,v),_=Ir(s);C--;){var N=c[C];s[C]=ba(N,v)?_[N]:n}return s}function Qx(s,c){if(!(c==="constructor"&&typeof s[c]=="function")&&c!="__proto__")return s[c]}var Fz=Iz(nz),r0=rwe||function(s,c){return ct.setTimeout(s,c)},e8=Iz(f4e);function Pz(s,c,v){var C=c+"";return e8(s,F4e(C,U4e(O4e(C),v)))}function Iz(s){var c=0,v=0;return function(){var C=lwe(),_=se-(C-v);if(v=C,_>0){if(++c>=ge)return arguments[0]}else c=0;return s.apply(n,arguments)}}function sb(s,c){var v=-1,C=s.length,_=C-1;for(c=c===n?C:c;++v<c;){var N=Nx(v,_),z=s[N];s[N]=s[v],s[v]=z}return s.length=c,s}var Nz=R4e(function(s){var c=[];return s.charCodeAt(0)===46&&c.push(""),s.replace(Qi,function(v,C,_,N){c.push(_?N.replace(Ag,"$1"):C||v)}),c});function Ro(s){if(typeof s=="string"||ri(s))return s;var c=s+"";return c=="0"&&1/s==-Te?"-0":c}function Fu(s){if(s!=null){try{return Ly.call(s)}catch{}try{return s+""}catch{}}return""}function U4e(s,c){return Ti(T,function(v){var C="_."+v[0];c&v[1]&&!Ty(s,C)&&s.push(C)}),s.sort()}function Lz(s){if(s instanceof yt)return s.clone();var c=new Pi(s.__wrapped__,s.__chain__);return c.__actions__=Ir(s.__actions__),c.__index__=s.__index__,c.__values__=s.__values__,c}function H4e(s,c,v){(v?xr(s,c,v):c===n)?c=1:c=qn(nt(c),0);var C=s==null?0:s.length;if(!C||c<1)return[];for(var _=0,N=0,z=ne(Hy(C/c));_<C;)z[N++]=Ni(s,_,_+=c);return z}function W4e(s){for(var c=-1,v=s==null?0:s.length,C=0,_=[];++c<v;){var N=s[c];N&&(_[C++]=N)}return _}function q4e(){var s=arguments.length;if(!s)return[];for(var c=ne(s-1),v=arguments[0],C=s;C--;)c[C-1]=arguments[C];return Vl(Je(v)?Ir(v):[v],sr(c,1))}var G4e=st(function(s,c){return Cn(s)?Jg(s,sr(c,1,Cn,!0)):[]}),K4e=st(function(s,c){var v=Li(c);return Cn(v)&&(v=n),Cn(s)?Jg(s,sr(c,1,Cn,!0),Me(v,2)):[]}),Y4e=st(function(s,c){var v=Li(c);return Cn(v)&&(v=n),Cn(s)?Jg(s,sr(c,1,Cn,!0),n,v):[]});function X4e(s,c,v){var C=s==null?0:s.length;return C?(c=v||c===n?1:nt(c),Ni(s,c<0?0:c,C)):[]}function J4e(s,c,v){var C=s==null?0:s.length;return C?(c=v||c===n?1:nt(c),c=C-c,Ni(s,0,c<0?0:c)):[]}function Z4e(s,c){return s&&s.length?eb(s,Me(c,3),!0,!0):[]}function Q4e(s,c){return s&&s.length?eb(s,Me(c,3),!0):[]}function e$e(s,c,v,C){var _=s==null?0:s.length;return _?(v&&typeof v!="number"&&xr(s,c,v)&&(v=0,C=_),qwe(s,c,v,C)):[]}function Rz(s,c,v){var C=s==null?0:s.length;if(!C)return-1;var _=v==null?0:nt(v);return _<0&&(_=qn(C+_,0)),Fy(s,Me(c,3),_)}function Mz(s,c,v){var C=s==null?0:s.length;if(!C)return-1;var _=C-1;return v!==n&&(_=nt(v),_=v<0?qn(C+_,0):vr(_,C-1)),Fy(s,Me(c,3),_,!0)}function jz(s){var c=s==null?0:s.length;return c?sr(s,1):[]}function t$e(s){var c=s==null?0:s.length;return c?sr(s,Te):[]}function n$e(s,c){var v=s==null?0:s.length;return v?(c=c===n?1:nt(c),sr(s,c)):[]}function r$e(s){for(var c=-1,v=s==null?0:s.length,C={};++c<v;){var _=s[c];C[_[0]]=_[1]}return C}function zz(s){return s&&s.length?s[0]:n}function i$e(s,c,v){var C=s==null?0:s.length;if(!C)return-1;var _=v==null?0:nt(v);return _<0&&(_=qn(C+_,0)),Hf(s,c,_)}function o$e(s){var c=s==null?0:s.length;return c?Ni(s,0,-1):[]}var a$e=st(function(s){var c=ln(s,zx);return c.length&&c[0]===s[0]?Bx(c):[]}),l$e=st(function(s){var c=Li(s),v=ln(s,zx);return c===Li(v)?c=n:v.pop(),v.length&&v[0]===s[0]?Bx(v,Me(c,2)):[]}),s$e=st(function(s){var c=Li(s),v=ln(s,zx);return c=typeof c=="function"?c:n,c&&v.pop(),v.length&&v[0]===s[0]?Bx(v,n,c):[]});function u$e(s,c){return s==null?"":owe.call(s,c)}function Li(s){var c=s==null?0:s.length;return c?s[c-1]:n}function c$e(s,c,v){var C=s==null?0:s.length;if(!C)return-1;var _=C;return v!==n&&(_=nt(v),_=_<0?qn(C+_,0):vr(_,C-1)),c===c?U2e(s,c,_):Fy(s,$j,_,!0)}function f$e(s,c){return s&&s.length?Zj(s,nt(c)):n}var d$e=st(Vz);function Vz(s,c){return s&&s.length&&c&&c.length?Ix(s,c):s}function p$e(s,c,v){return s&&s.length&&c&&c.length?Ix(s,c,Me(v,2)):s}function h$e(s,c,v){return s&&s.length&&c&&c.length?Ix(s,c,n,v):s}var g$e=ya(function(s,c){var v=s==null?0:s.length,C=Ax(s,c);return tz(s,ln(c,function(_){return ba(_,v)?+_:_}).sort(fz)),C});function v$e(s,c){var v=[];if(!(s&&s.length))return v;var C=-1,_=[],N=s.length;for(c=Me(c,3);++C<N;){var z=s[C];c(z,C,s)&&(v.push(z),_.push(C))}return tz(s,_),v}function t8(s){return s==null?s:uwe.call(s)}function m$e(s,c,v){var C=s==null?0:s.length;return C?(v&&typeof v!="number"&&xr(s,c,v)?(c=0,v=C):(c=c==null?0:nt(c),v=v===n?C:nt(v)),Ni(s,c,v)):[]}function y$e(s,c){return Qy(s,c)}function b$e(s,c,v){return Rx(s,c,Me(v,2))}function w$e(s,c){var v=s==null?0:s.length;if(v){var C=Qy(s,c);if(C<v&&io(s[C],c))return C}return-1}function $$e(s,c){return Qy(s,c,!0)}function E$e(s,c,v){return Rx(s,c,Me(v,2),!0)}function C$e(s,c){var v=s==null?0:s.length;if(v){var C=Qy(s,c,!0)-1;if(io(s[C],c))return C}return-1}function S$e(s){return s&&s.length?rz(s):[]}function x$e(s,c){return s&&s.length?rz(s,Me(c,2)):[]}function D$e(s){var c=s==null?0:s.length;return c?Ni(s,1,c):[]}function A$e(s,c,v){return s&&s.length?(c=v||c===n?1:nt(c),Ni(s,0,c<0?0:c)):[]}function _$e(s,c,v){var C=s==null?0:s.length;return C?(c=v||c===n?1:nt(c),c=C-c,Ni(s,c<0?0:c,C)):[]}function k$e(s,c){return s&&s.length?eb(s,Me(c,3),!1,!0):[]}function O$e(s,c){return s&&s.length?eb(s,Me(c,3)):[]}var B$e=st(function(s){return ql(sr(s,1,Cn,!0))}),T$e=st(function(s){var c=Li(s);return Cn(c)&&(c=n),ql(sr(s,1,Cn,!0),Me(c,2))}),F$e=st(function(s){var c=Li(s);return c=typeof c=="function"?c:n,ql(sr(s,1,Cn,!0),n,c)});function P$e(s){return s&&s.length?ql(s):[]}function I$e(s,c){return s&&s.length?ql(s,Me(c,2)):[]}function N$e(s,c){return c=typeof c=="function"?c:n,s&&s.length?ql(s,n,c):[]}function n8(s){if(!(s&&s.length))return[];var c=0;return s=zl(s,function(v){if(Cn(v))return c=qn(v.length,c),!0}),bx(c,function(v){return ln(s,vx(v))})}function Uz(s,c){if(!(s&&s.length))return[];var v=n8(s);return c==null?v:ln(v,function(C){return Zn(c,n,C)})}var L$e=st(function(s,c){return Cn(s)?Jg(s,c):[]}),R$e=st(function(s){return jx(zl(s,Cn))}),M$e=st(function(s){var c=Li(s);return Cn(c)&&(c=n),jx(zl(s,Cn),Me(c,2))}),j$e=st(function(s){var c=Li(s);return c=typeof c=="function"?c:n,jx(zl(s,Cn),n,c)}),z$e=st(n8);function V$e(s,c){return lz(s||[],c||[],Xg)}function U$e(s,c){return lz(s||[],c||[],e0)}var H$e=st(function(s){var c=s.length,v=c>1?s[c-1]:n;return v=typeof v=="function"?(s.pop(),v):n,Uz(s,v)});function Hz(s){var c=F(s);return c.__chain__=!0,c}function W$e(s,c){return c(s),s}function ub(s,c){return c(s)}var q$e=ya(function(s){var c=s.length,v=c?s[0]:0,C=this.__wrapped__,_=function(N){return Ax(N,s)};return c>1||this.__actions__.length||!(C instanceof yt)||!ba(v)?this.thru(_):(C=C.slice(v,+v+(c?1:0)),C.__actions__.push({func:ub,args:[_],thisArg:n}),new Pi(C,this.__chain__).thru(function(N){return c&&!N.length&&N.push(n),N}))});function G$e(){return Hz(this)}function K$e(){return new Pi(this.value(),this.__chain__)}function Y$e(){this.__values__===n&&(this.__values__=iV(this.value()));var s=this.__index__>=this.__values__.length,c=s?n:this.__values__[this.__index__++];return{done:s,value:c}}function X$e(){return this}function J$e(s){for(var c,v=this;v instanceof Ky;){var C=Lz(v);C.__index__=0,C.__values__=n,c?_.__wrapped__=C:c=C;var _=C;v=v.__wrapped__}return _.__wrapped__=s,c}function Z$e(){var s=this.__wrapped__;if(s instanceof yt){var c=s;return this.__actions__.length&&(c=new yt(this)),c=c.reverse(),c.__actions__.push({func:ub,args:[t8],thisArg:n}),new Pi(c,this.__chain__)}return this.thru(t8)}function Q$e(){return az(this.__wrapped__,this.__actions__)}var e3e=tb(function(s,c,v){Nt.call(s,v)?++s[v]:va(s,v,1)});function t3e(s,c,v){var C=Je(s)?bj:Wwe;return v&&xr(s,c,v)&&(c=n),C(s,Me(c,3))}function n3e(s,c){var v=Je(s)?zl:Uj;return v(s,Me(c,3))}var r3e=mz(Rz),i3e=mz(Mz);function o3e(s,c){return sr(cb(s,c),1)}function a3e(s,c){return sr(cb(s,c),Te)}function l3e(s,c,v){return v=v===n?1:nt(v),sr(cb(s,c),v)}function Wz(s,c){var v=Je(s)?Ti:Wl;return v(s,Me(c,3))}function qz(s,c){var v=Je(s)?D2e:Vj;return v(s,Me(c,3))}var s3e=tb(function(s,c,v){Nt.call(s,v)?s[v].push(c):va(s,v,[c])});function u3e(s,c,v,C){s=Nr(s)?s:nd(s),v=v&&!C?nt(v):0;var _=s.length;return v<0&&(v=qn(_+v,0)),gb(s)?v<=_&&s.indexOf(c,v)>-1:!!_&&Hf(s,c,v)>-1}var c3e=st(function(s,c,v){var C=-1,_=typeof c=="function",N=Nr(s)?ne(s.length):[];return Wl(s,function(z){N[++C]=_?Zn(c,z,v):Zg(z,c,v)}),N}),f3e=tb(function(s,c,v){va(s,v,c)});function cb(s,c){var v=Je(s)?ln:Yj;return v(s,Me(c,3))}function d3e(s,c,v,C){return s==null?[]:(Je(c)||(c=c==null?[]:[c]),v=C?n:v,Je(v)||(v=v==null?[]:[v]),Qj(s,c,v))}var p3e=tb(function(s,c,v){s[v?0:1].push(c)},function(){return[[],[]]});function h3e(s,c,v){var C=Je(s)?hx:Cj,_=arguments.length<3;return C(s,Me(c,4),v,_,Wl)}function g3e(s,c,v){var C=Je(s)?A2e:Cj,_=arguments.length<3;return C(s,Me(c,4),v,_,Vj)}function v3e(s,c){var v=Je(s)?zl:Uj;return v(s,pb(Me(c,3)))}function m3e(s){var c=Je(s)?Rj:u4e;return c(s)}function y3e(s,c,v){(v?xr(s,c,v):c===n)?c=1:c=nt(c);var C=Je(s)?jwe:c4e;return C(s,c)}function b3e(s){var c=Je(s)?zwe:d4e;return c(s)}function w3e(s){if(s==null)return 0;if(Nr(s))return gb(s)?qf(s):s.length;var c=mr(s);return c==ae||c==dt?s.size:Fx(s).length}function $3e(s,c,v){var C=Je(s)?gx:p4e;return v&&xr(s,c,v)&&(c=n),C(s,Me(c,3))}var E3e=st(function(s,c){if(s==null)return[];var v=c.length;return v>1&&xr(s,c[0],c[1])?c=[]:v>2&&xr(c[0],c[1],c[2])&&(c=[c[0]]),Qj(s,sr(c,1),[])}),fb=nwe||function(){return ct.Date.now()};function C3e(s,c){if(typeof c!="function")throw new Fi(a);return s=nt(s),function(){if(--s<1)return c.apply(this,arguments)}}function Gz(s,c,v){return c=v?n:c,c=s&&c==null?s.length:c,ma(s,P,n,n,n,n,c)}function Kz(s,c){var v;if(typeof c!="function")throw new Fi(a);return s=nt(s),function(){return--s>0&&(v=c.apply(this,arguments)),s<=1&&(c=n),v}}var r8=st(function(s,c,v){var C=y;if(v.length){var _=Ul(v,ed(r8));C|=A}return ma(s,C,c,v,_)}),Yz=st(function(s,c,v){var C=y|$;if(v.length){var _=Ul(v,ed(Yz));C|=A}return ma(c,C,s,v,_)});function Xz(s,c,v){c=v?n:c;var C=ma(s,S,n,n,n,n,n,c);return C.placeholder=Xz.placeholder,C}function Jz(s,c,v){c=v?n:c;var C=ma(s,D,n,n,n,n,n,c);return C.placeholder=Jz.placeholder,C}function Zz(s,c,v){var C,_,N,z,W,X,fe=0,de=!1,pe=!1,De=!0;if(typeof s!="function")throw new Fi(a);c=Ri(c)||0,hn(v)&&(de=!!v.leading,pe="maxWait"in v,N=pe?qn(Ri(v.maxWait)||0,c):N,De="trailing"in v?!!v.trailing:De);function Pe(Sn){var oo=C,Ea=_;return C=_=n,fe=Sn,z=s.apply(Ea,oo),z}function ze(Sn){return fe=Sn,W=r0(ht,c),de?Pe(Sn):z}function at(Sn){var oo=Sn-X,Ea=Sn-fe,mV=c-oo;return pe?vr(mV,N-Ea):mV}function Ve(Sn){var oo=Sn-X,Ea=Sn-fe;return X===n||oo>=c||oo<0||pe&&Ea>=N}function ht(){var Sn=fb();if(Ve(Sn))return Ct(Sn);W=r0(ht,at(Sn))}function Ct(Sn){return W=n,De&&C?Pe(Sn):(C=_=n,z)}function ii(){W!==n&&sz(W),fe=0,C=X=_=W=n}function Dr(){return W===n?z:Ct(fb())}function oi(){var Sn=fb(),oo=Ve(Sn);if(C=arguments,_=this,X=Sn,oo){if(W===n)return ze(X);if(pe)return sz(W),W=r0(ht,c),Pe(X)}return W===n&&(W=r0(ht,c)),z}return oi.cancel=ii,oi.flush=Dr,oi}var S3e=st(function(s,c){return zj(s,1,c)}),x3e=st(function(s,c,v){return zj(s,Ri(c)||0,v)});function D3e(s){return ma(s,Y)}function db(s,c){if(typeof s!="function"||c!=null&&typeof c!="function")throw new Fi(a);var v=function(){var C=arguments,_=c?c.apply(this,C):C[0],N=v.cache;if(N.has(_))return N.get(_);var z=s.apply(this,C);return v.cache=N.set(_,z)||N,z};return v.cache=new(db.Cache||ga),v}db.Cache=ga;function pb(s){if(typeof s!="function")throw new Fi(a);return function(){var c=arguments;switch(c.length){case 0:return!s.call(this);case 1:return!s.call(this,c[0]);case 2:return!s.call(this,c[0],c[1]);case 3:return!s.call(this,c[0],c[1],c[2])}return!s.apply(this,c)}}function A3e(s){return Kz(2,s)}var _3e=h4e(function(s,c){c=c.length==1&&Je(c[0])?ln(c[0],ti(Me())):ln(sr(c,1),ti(Me()));var v=c.length;return st(function(C){for(var _=-1,N=vr(C.length,v);++_<N;)C[_]=c[_].call(this,C[_]);return Zn(s,this,C)})}),i8=st(function(s,c){var v=Ul(c,ed(i8));return ma(s,A,n,c,v)}),Qz=st(function(s,c){var v=Ul(c,ed(Qz));return ma(s,B,n,c,v)}),k3e=ya(function(s,c){return ma(s,U,n,n,n,c)});function O3e(s,c){if(typeof s!="function")throw new Fi(a);return c=c===n?c:nt(c),st(s,c)}function B3e(s,c){if(typeof s!="function")throw new Fi(a);return c=c==null?0:qn(nt(c),0),st(function(v){var C=v[c],_=Kl(v,0,c);return C&&Vl(_,C),Zn(s,this,_)})}function T3e(s,c,v){var C=!0,_=!0;if(typeof s!="function")throw new Fi(a);return hn(v)&&(C="leading"in v?!!v.leading:C,_="trailing"in v?!!v.trailing:_),Zz(s,c,{leading:C,maxWait:c,trailing:_})}function F3e(s){return Gz(s,1)}function P3e(s,c){return i8(Vx(c),s)}function I3e(){if(!arguments.length)return[];var s=arguments[0];return Je(s)?s:[s]}function N3e(s){return Ii(s,h)}function L3e(s,c){return c=typeof c=="function"?c:n,Ii(s,h,c)}function R3e(s){return Ii(s,p|h)}function M3e(s,c){return c=typeof c=="function"?c:n,Ii(s,p|h,c)}function j3e(s,c){return c==null||jj(s,c,Qn(c))}function io(s,c){return s===c||s!==s&&c!==c}var z3e=ob(Ox),V3e=ob(function(s,c){return s>=c}),Pu=qj(function(){return arguments}())?qj:function(s){return mn(s)&&Nt.call(s,"callee")&&!Tj.call(s,"callee")},Je=ne.isArray,U3e=Ln?ti(Ln):Jwe;function Nr(s){return s!=null&&hb(s.length)&&!wa(s)}function Cn(s){return mn(s)&&Nr(s)}function H3e(s){return s===!0||s===!1||mn(s)&&Sr(s)==J}var Yl=iwe||g8,W3e=to?ti(to):Zwe;function q3e(s){return mn(s)&&s.nodeType===1&&!i0(s)}function G3e(s){if(s==null)return!0;if(Nr(s)&&(Je(s)||typeof s=="string"||typeof s.splice=="function"||Yl(s)||td(s)||Pu(s)))return!s.length;var c=mr(s);if(c==ae||c==dt)return!s.size;if(n0(s))return!Fx(s).length;for(var v in s)if(Nt.call(s,v))return!1;return!0}function K3e(s,c){return Qg(s,c)}function Y3e(s,c,v){v=typeof v=="function"?v:n;var C=v?v(s,c):n;return C===n?Qg(s,c,n,v):!!C}function o8(s){if(!mn(s))return!1;var c=Sr(s);return c==te||c==he||typeof s.message=="string"&&typeof s.name=="string"&&!i0(s)}function X3e(s){return typeof s=="number"&&Pj(s)}function wa(s){if(!hn(s))return!1;var c=Sr(s);return c==Q||c==Ce||c==O||c==ot}function eV(s){return typeof s=="number"&&s==nt(s)}function hb(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=Ne}function hn(s){var c=typeof s;return s!=null&&(c=="object"||c=="function")}function mn(s){return s!=null&&typeof s=="object"}var tV=Bi?ti(Bi):e4e;function J3e(s,c){return s===c||Tx(s,c,Yx(c))}function Z3e(s,c,v){return v=typeof v=="function"?v:n,Tx(s,c,Yx(c),v)}function Q3e(s){return nV(s)&&s!=+s}function eEe(s){if(L4e(s))throw new Xe(o);return Gj(s)}function tEe(s){return s===null}function nEe(s){return s==null}function nV(s){return typeof s=="number"||mn(s)&&Sr(s)==ye}function i0(s){if(!mn(s)||Sr(s)!=$t)return!1;var c=zy(s);if(c===null)return!0;var v=Nt.call(c,"constructor")&&c.constructor;return typeof v=="function"&&v instanceof v&&Ly.call(v)==Z2e}var a8=Io?ti(Io):t4e;function rEe(s){return eV(s)&&s>=-Ne&&s<=Ne}var rV=Ug?ti(Ug):n4e;function gb(s){return typeof s=="string"||!Je(s)&&mn(s)&&Sr(s)==pt}function ri(s){return typeof s=="symbol"||mn(s)&&Sr(s)==rn}var td=Du?ti(Du):r4e;function iEe(s){return s===n}function oEe(s){return mn(s)&&mr(s)==mt}function aEe(s){return mn(s)&&Sr(s)==on}var lEe=ob(Px),sEe=ob(function(s,c){return s<=c});function iV(s){if(!s)return[];if(Nr(s))return gb(s)?no(s):Ir(s);if(Wg&&s[Wg])return j2e(s[Wg]());var c=mr(s),v=c==ae?$x:c==dt?Py:nd;return v(s)}function $a(s){if(!s)return s===0?s:0;if(s=Ri(s),s===Te||s===-Te){var c=s<0?-1:1;return c*Re}return s===s?s:0}function nt(s){var c=$a(s),v=c%1;return c===c?v?c-v:c:0}function oV(s){return s?Ou(nt(s),0,ie):0}function Ri(s){if(typeof s=="number")return s;if(ri(s))return Ae;if(hn(s)){var c=typeof s.valueOf=="function"?s.valueOf():s;s=hn(c)?c+"":c}if(typeof s!="string")return s===0?s:+s;s=Sj(s);var v=Og.test(s);return v||Tg.test(s)?Ie(s.slice(2),v?2:8):kg.test(s)?Ae:+s}function aV(s){return Lo(s,Lr(s))}function uEe(s){return s?Ou(nt(s),-Ne,Ne):s===0?s:0}function Tt(s){return s==null?"":ni(s)}var cEe=Zf(function(s,c){if(n0(c)||Nr(c)){Lo(c,Qn(c),s);return}for(var v in c)Nt.call(c,v)&&Xg(s,v,c[v])}),lV=Zf(function(s,c){Lo(c,Lr(c),s)}),vb=Zf(function(s,c,v,C){Lo(c,Lr(c),s,C)}),fEe=Zf(function(s,c,v,C){Lo(c,Qn(c),s,C)}),dEe=ya(Ax);function pEe(s,c){var v=Jf(s);return c==null?v:Mj(v,c)}var hEe=st(function(s,c){s=Vt(s);var v=-1,C=c.length,_=C>2?c[2]:n;for(_&&xr(c[0],c[1],_)&&(C=1);++v<C;)for(var N=c[v],z=Lr(N),W=-1,X=z.length;++W<X;){var fe=z[W],de=s[fe];(de===n||io(de,Kf[fe])&&!Nt.call(s,fe))&&(s[fe]=N[fe])}return s}),gEe=st(function(s){return s.push(n,Sz),Zn(sV,n,s)});function vEe(s,c){return wj(s,Me(c,3),No)}function mEe(s,c){return wj(s,Me(c,3),kx)}function yEe(s,c){return s==null?s:_x(s,Me(c,3),Lr)}function bEe(s,c){return s==null?s:Hj(s,Me(c,3),Lr)}function wEe(s,c){return s&&No(s,Me(c,3))}function $Ee(s,c){return s&&kx(s,Me(c,3))}function EEe(s){return s==null?[]:Jy(s,Qn(s))}function CEe(s){return s==null?[]:Jy(s,Lr(s))}function l8(s,c,v){var C=s==null?n:Bu(s,c);return C===n?v:C}function SEe(s,c){return s!=null&&Az(s,c,Gwe)}function s8(s,c){return s!=null&&Az(s,c,Kwe)}var xEe=bz(function(s,c,v){c!=null&&typeof c.toString!="function"&&(c=Ry.call(c)),s[c]=v},c8(Rr)),DEe=bz(function(s,c,v){c!=null&&typeof c.toString!="function"&&(c=Ry.call(c)),Nt.call(s,c)?s[c].push(v):s[c]=[v]},Me),AEe=st(Zg);function Qn(s){return Nr(s)?Lj(s):Fx(s)}function Lr(s){return Nr(s)?Lj(s,!0):i4e(s)}function _Ee(s,c){var v={};return c=Me(c,3),No(s,function(C,_,N){va(v,c(C,_,N),C)}),v}function kEe(s,c){var v={};return c=Me(c,3),No(s,function(C,_,N){va(v,_,c(C,_,N))}),v}var OEe=Zf(function(s,c,v){Zy(s,c,v)}),sV=Zf(function(s,c,v,C){Zy(s,c,v,C)}),BEe=ya(function(s,c){var v={};if(s==null)return v;var C=!1;c=ln(c,function(N){return N=Gl(N,s),C||(C=N.length>1),N}),Lo(s,Gx(s),v),C&&(v=Ii(v,p|g|h,x4e));for(var _=c.length;_--;)Mx(v,c[_]);return v});function TEe(s,c){return uV(s,pb(Me(c)))}var FEe=ya(function(s,c){return s==null?{}:a4e(s,c)});function uV(s,c){if(s==null)return{};var v=ln(Gx(s),function(C){return[C]});return c=Me(c),ez(s,v,function(C,_){return c(C,_[0])})}function PEe(s,c,v){c=Gl(c,s);var C=-1,_=c.length;for(_||(_=1,s=n);++C<_;){var N=s==null?n:s[Ro(c[C])];N===n&&(C=_,N=v),s=wa(N)?N.call(s):N}return s}function IEe(s,c,v){return s==null?s:e0(s,c,v)}function NEe(s,c,v,C){return C=typeof C=="function"?C:n,s==null?s:e0(s,c,v,C)}var cV=Ez(Qn),fV=Ez(Lr);function LEe(s,c,v){var C=Je(s),_=C||Yl(s)||td(s);if(c=Me(c,4),v==null){var N=s&&s.constructor;_?v=C?new N:[]:hn(s)?v=wa(N)?Jf(zy(s)):{}:v={}}return(_?Ti:No)(s,function(z,W,X){return c(v,z,W,X)}),v}function REe(s,c){return s==null?!0:Mx(s,c)}function MEe(s,c,v){return s==null?s:oz(s,c,Vx(v))}function jEe(s,c,v,C){return C=typeof C=="function"?C:n,s==null?s:oz(s,c,Vx(v),C)}function nd(s){return s==null?[]:wx(s,Qn(s))}function zEe(s){return s==null?[]:wx(s,Lr(s))}function VEe(s,c,v){return v===n&&(v=c,c=n),v!==n&&(v=Ri(v),v=v===v?v:0),c!==n&&(c=Ri(c),c=c===c?c:0),Ou(Ri(s),c,v)}function UEe(s,c,v){return c=$a(c),v===n?(v=c,c=0):v=$a(v),s=Ri(s),Ywe(s,c,v)}function HEe(s,c,v){if(v&&typeof v!="boolean"&&xr(s,c,v)&&(c=v=n),v===n&&(typeof c=="boolean"?(v=c,c=n):typeof s=="boolean"&&(v=s,s=n)),s===n&&c===n?(s=0,c=1):(s=$a(s),c===n?(c=s,s=0):c=$a(c)),s>c){var C=s;s=c,c=C}if(v||s%1||c%1){var _=Ij();return vr(s+_*(c-s+qe("1e-"+((_+"").length-1))),c)}return Nx(s,c)}var WEe=Qf(function(s,c,v){return c=c.toLowerCase(),s+(v?dV(c):c)});function dV(s){return u8(Tt(s).toLowerCase())}function pV(s){return s=Tt(s),s&&s.replace(hr,I2e).replace(Vg,"")}function qEe(s,c,v){s=Tt(s),c=ni(c);var C=s.length;v=v===n?C:Ou(nt(v),0,C);var _=v;return v-=c.length,v>=0&&s.slice(v,_)==c}function GEe(s){return s=Tt(s),s&&la.test(s)?s.replace(Fo,N2e):s}function KEe(s){return s=Tt(s),s&&Cg.test(s)?s.replace(vu,"\\$&"):s}var YEe=Qf(function(s,c,v){return s+(v?"-":"")+c.toLowerCase()}),XEe=Qf(function(s,c,v){return s+(v?" ":"")+c.toLowerCase()}),JEe=vz("toLowerCase");function ZEe(s,c,v){s=Tt(s),c=nt(c);var C=c?qf(s):0;if(!c||C>=c)return s;var _=(c-C)/2;return ib(Wy(_),v)+s+ib(Hy(_),v)}function QEe(s,c,v){s=Tt(s),c=nt(c);var C=c?qf(s):0;return c&&C<c?s+ib(c-C,v):s}function eCe(s,c,v){s=Tt(s),c=nt(c);var C=c?qf(s):0;return c&&C<c?ib(c-C,v)+s:s}function tCe(s,c,v){return v||c==null?c=0:c&&(c=+c),swe(Tt(s).replace(mu,""),c||0)}function nCe(s,c,v){return(v?xr(s,c,v):c===n)?c=1:c=nt(c),Lx(Tt(s),c)}function rCe(){var s=arguments,c=Tt(s[0]);return s.length<3?c:c.replace(s[1],s[2])}var iCe=Qf(function(s,c,v){return s+(v?"_":"")+c.toLowerCase()});function oCe(s,c,v){return v&&typeof v!="number"&&xr(s,c,v)&&(c=v=n),v=v===n?ie:v>>>0,v?(s=Tt(s),s&&(typeof c=="string"||c!=null&&!a8(c))&&(c=ni(c),!c&&Wf(s))?Kl(no(s),0,v):s.split(c,v)):[]}var aCe=Qf(function(s,c,v){return s+(v?" ":"")+u8(c)});function lCe(s,c,v){return s=Tt(s),v=v==null?0:Ou(nt(v),0,s.length),c=ni(c),s.slice(v,v+c.length)==c}function sCe(s,c,v){var C=F.templateSettings;v&&xr(s,c,v)&&(c=n),s=Tt(s),c=vb({},c,C,Cz);var _=vb({},c.imports,C.imports,Cz),N=Qn(_),z=wx(_,N),W,X,fe=0,de=c.interpolate||Il,pe="__p += '",De=Ex((c.escape||Il).source+"|"+de.source+"|"+(de===Pl?_g:Il).source+"|"+(c.evaluate||Il).source+"|$","g"),Pe="//# sourceURL="+(Nt.call(c,"sourceURL")?(c.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++xu+"]")+`
190
190
  `;s.replace(De,function(Ve,ht,Ct,ii,Dr,oi){return Ct||(Ct=ii),pe+=s.slice(fe,oi).replace(Pg,L2e),ht&&(W=!0,pe+=`' +
191
191
  __e(`+ht+`) +
192
192
  '`),Dr&&(X=!0,pe+=`';
@@ -203,4 +203,4 @@ __p += '`),Ct&&(pe+=`' +
203
203
  function print() { __p += __j.call(arguments, '') }
204
204
  `:`;
205
205
  `)+pe+`return __p
206
- }`;var at=gV(function(){return _t(N,Pe+"return "+pe).apply(n,z)});if(at.source=pe,o8(at))throw at;return at}function uCe(s){return Tt(s).toLowerCase()}function cCe(s){return Tt(s).toUpperCase()}function fCe(s,c,v){if(s=Tt(s),s&&(v||c===n))return Sj(s);if(!s||!(c=ni(c)))return s;var C=no(s),_=no(c),N=xj(C,_),z=Dj(C,_)+1;return Kl(C,N,z).join("")}function dCe(s,c,v){if(s=Tt(s),s&&(v||c===n))return s.slice(0,_j(s)+1);if(!s||!(c=ni(c)))return s;var C=no(s),_=Dj(C,no(c))+1;return Kl(C,0,_).join("")}function pCe(s,c,v){if(s=Tt(s),s&&(v||c===n))return s.replace(mu,"");if(!s||!(c=ni(c)))return s;var C=no(s),_=xj(C,no(c));return Kl(C,_).join("")}function hCe(s,c){var v=ce,C=ee;if(hn(c)){var _="separator"in c?c.separator:_;v="length"in c?nt(c.length):v,C="omission"in c?ni(c.omission):C}s=Tt(s);var N=s.length;if(Wf(s)){var z=no(s);N=z.length}if(v>=N)return s;var W=v-qf(C);if(W<1)return C;var X=z?Kl(z,0,W).join(""):s.slice(0,W);if(_===n)return X+C;if(z&&(W+=X.length-W),a8(_)){if(s.slice(W).search(_)){var fe,de=X;for(_.global||(_=Ex(_.source,Tt(Hn.exec(_))+"g")),_.lastIndex=0;fe=_.exec(de);)var pe=fe.index;X=X.slice(0,pe===n?W:pe)}}else if(s.indexOf(ni(_),W)!=W){var De=X.lastIndexOf(_);De>-1&&(X=X.slice(0,De))}return X+C}function gCe(s){return s=Tt(s),s&&pu.test(s)?s.replace(Fl,H2e):s}var vCe=Qf(function(s,c,v){return s+(v?" ":"")+c.toUpperCase()}),u8=vz("toUpperCase");function hV(s,c,v){return s=Tt(s),c=v?n:c,c===n?M2e(s)?G2e(s):O2e(s):s.match(c)||[]}var gV=st(function(s,c){try{return Zn(s,n,c)}catch(v){return o8(v)?v:new Xe(v)}}),mCe=ya(function(s,c){return Ti(c,function(v){v=Ro(v),va(s,v,r8(s[v],s))}),s});function yCe(s){var c=s==null?0:s.length,v=Me();return s=c?ln(s,function(C){if(typeof C[1]!="function")throw new Fi(a);return[v(C[0]),C[1]]}):[],st(function(C){for(var _=-1;++_<c;){var N=s[_];if(Zn(N[0],this,C))return Zn(N[1],this,C)}})}function bCe(s){return Hwe(Ii(s,p))}function c8(s){return function(){return s}}function wCe(s,c){return s==null||s!==s?c:s}var $Ce=yz(),ECe=yz(!0);function Rr(s){return s}function f8(s){return Kj(typeof s=="function"?s:Ii(s,p))}function CCe(s){return Xj(Ii(s,p))}function SCe(s,c){return Jj(s,Ii(c,p))}var xCe=st(function(s,c){return function(v){return Zg(v,s,c)}}),DCe=st(function(s,c){return function(v){return Zg(s,v,c)}});function d8(s,c,v){var C=Qn(c),_=Jy(c,C);v==null&&!(hn(c)&&(_.length||!C.length))&&(v=c,c=s,s=this,_=Jy(c,Qn(c)));var N=!(hn(v)&&"chain"in v)||!!v.chain,z=wa(s);return Ti(_,function(W){var X=c[W];s[W]=X,z&&(s.prototype[W]=function(){var fe=this.__chain__;if(N||fe){var de=s(this.__wrapped__),pe=de.__actions__=Ir(this.__actions__);return pe.push({func:X,args:arguments,thisArg:s}),de.__chain__=fe,de}return X.apply(s,Vl([this.value()],arguments))})}),s}function ACe(){return ct._===this&&(ct._=Q2e),this}function p8(){}function _Ce(s){return s=nt(s),st(function(c){return Zj(c,s)})}var kCe=Hx(ln),OCe=Hx(bj),BCe=Hx(gx);function vV(s){return Jx(s)?vx(Ro(s)):l4e(s)}function TCe(s){return function(c){return s==null?n:Bu(s,c)}}var FCe=wz(),PCe=wz(!0);function h8(){return[]}function g8(){return!1}function ICe(){return{}}function NCe(){return""}function LCe(){return!0}function RCe(s,c){if(s=nt(s),s<1||s>Ne)return[];var v=ae,C=vr(s,ae);c=Me(c),s-=ae;for(var _=bx(C,c);++v<s;)c(v);return _}function MCe(s){return Je(s)?ln(s,Ro):ri(s)?[s]:Ir(Nz(Tt(s)))}function jCe(s){var c=++J2e;return Tt(s)+c}var zCe=rb(function(s,c){return s+c},0),VCe=Wx("ceil"),UCe=rb(function(s,c){return s/c},1),HCe=Wx("floor");function WCe(s){return s&&s.length?Xy(s,Rr,Ox):n}function qCe(s,c){return s&&s.length?Xy(s,Me(c,2),Ox):n}function GCe(s){return Ej(s,Rr)}function KCe(s,c){return Ej(s,Me(c,2))}function YCe(s){return s&&s.length?Xy(s,Rr,Px):n}function XCe(s,c){return s&&s.length?Xy(s,Me(c,2),Px):n}var JCe=rb(function(s,c){return s*c},1),ZCe=Wx("round"),QCe=rb(function(s,c){return s-c},0);function eSe(s){return s&&s.length?yx(s,Rr):0}function tSe(s,c){return s&&s.length?yx(s,Me(c,2)):0}return F.after=C3e,F.ary=Gz,F.assign=cEe,F.assignIn=lV,F.assignInWith=vb,F.assignWith=fEe,F.at=dEe,F.before=Kz,F.bind=r8,F.bindAll=mCe,F.bindKey=Yz,F.castArray=I3e,F.chain=Hz,F.chunk=H4e,F.compact=W4e,F.concat=q4e,F.cond=yCe,F.conforms=bCe,F.constant=c8,F.countBy=e3e,F.create=pEe,F.curry=Xz,F.curryRight=Jz,F.debounce=Zz,F.defaults=hEe,F.defaultsDeep=gEe,F.defer=S3e,F.delay=x3e,F.difference=G4e,F.differenceBy=K4e,F.differenceWith=Y4e,F.drop=X4e,F.dropRight=J4e,F.dropRightWhile=Z4e,F.dropWhile=Q4e,F.fill=e$e,F.filter=n3e,F.flatMap=o3e,F.flatMapDeep=a3e,F.flatMapDepth=l3e,F.flatten=jz,F.flattenDeep=t$e,F.flattenDepth=n$e,F.flip=D3e,F.flow=$Ce,F.flowRight=ECe,F.fromPairs=r$e,F.functions=EEe,F.functionsIn=CEe,F.groupBy=s3e,F.initial=o$e,F.intersection=a$e,F.intersectionBy=l$e,F.intersectionWith=s$e,F.invert=xEe,F.invertBy=DEe,F.invokeMap=c3e,F.iteratee=f8,F.keyBy=f3e,F.keys=Qn,F.keysIn=Lr,F.map=cb,F.mapKeys=_Ee,F.mapValues=kEe,F.matches=CCe,F.matchesProperty=SCe,F.memoize=db,F.merge=OEe,F.mergeWith=sV,F.method=xCe,F.methodOf=DCe,F.mixin=d8,F.negate=pb,F.nthArg=_Ce,F.omit=BEe,F.omitBy=TEe,F.once=A3e,F.orderBy=d3e,F.over=kCe,F.overArgs=_3e,F.overEvery=OCe,F.overSome=BCe,F.partial=i8,F.partialRight=Qz,F.partition=p3e,F.pick=FEe,F.pickBy=uV,F.property=vV,F.propertyOf=TCe,F.pull=d$e,F.pullAll=Vz,F.pullAllBy=p$e,F.pullAllWith=h$e,F.pullAt=g$e,F.range=FCe,F.rangeRight=PCe,F.rearg=k3e,F.reject=v3e,F.remove=v$e,F.rest=O3e,F.reverse=t8,F.sampleSize=y3e,F.set=IEe,F.setWith=NEe,F.shuffle=b3e,F.slice=m$e,F.sortBy=E3e,F.sortedUniq=S$e,F.sortedUniqBy=x$e,F.split=oCe,F.spread=B3e,F.tail=D$e,F.take=A$e,F.takeRight=_$e,F.takeRightWhile=k$e,F.takeWhile=O$e,F.tap=W$e,F.throttle=T3e,F.thru=ub,F.toArray=iV,F.toPairs=cV,F.toPairsIn=fV,F.toPath=MCe,F.toPlainObject=aV,F.transform=LEe,F.unary=F3e,F.union=B$e,F.unionBy=T$e,F.unionWith=F$e,F.uniq=P$e,F.uniqBy=I$e,F.uniqWith=N$e,F.unset=REe,F.unzip=n8,F.unzipWith=Uz,F.update=MEe,F.updateWith=jEe,F.values=nd,F.valuesIn=zEe,F.without=L$e,F.words=hV,F.wrap=P3e,F.xor=R$e,F.xorBy=M$e,F.xorWith=j$e,F.zip=z$e,F.zipObject=V$e,F.zipObjectDeep=U$e,F.zipWith=H$e,F.entries=cV,F.entriesIn=fV,F.extend=lV,F.extendWith=vb,d8(F,F),F.add=zCe,F.attempt=gV,F.camelCase=WEe,F.capitalize=dV,F.ceil=VCe,F.clamp=VEe,F.clone=N3e,F.cloneDeep=R3e,F.cloneDeepWith=M3e,F.cloneWith=L3e,F.conformsTo=j3e,F.deburr=pV,F.defaultTo=wCe,F.divide=UCe,F.endsWith=qEe,F.eq=io,F.escape=GEe,F.escapeRegExp=KEe,F.every=t3e,F.find=r3e,F.findIndex=Rz,F.findKey=vEe,F.findLast=i3e,F.findLastIndex=Mz,F.findLastKey=mEe,F.floor=HCe,F.forEach=Wz,F.forEachRight=qz,F.forIn=yEe,F.forInRight=bEe,F.forOwn=wEe,F.forOwnRight=$Ee,F.get=l8,F.gt=z3e,F.gte=V3e,F.has=SEe,F.hasIn=s8,F.head=zz,F.identity=Rr,F.includes=u3e,F.indexOf=i$e,F.inRange=UEe,F.invoke=AEe,F.isArguments=Pu,F.isArray=Je,F.isArrayBuffer=U3e,F.isArrayLike=Nr,F.isArrayLikeObject=Cn,F.isBoolean=H3e,F.isBuffer=Yl,F.isDate=W3e,F.isElement=q3e,F.isEmpty=G3e,F.isEqual=K3e,F.isEqualWith=Y3e,F.isError=o8,F.isFinite=X3e,F.isFunction=wa,F.isInteger=eV,F.isLength=hb,F.isMap=tV,F.isMatch=J3e,F.isMatchWith=Z3e,F.isNaN=Q3e,F.isNative=eEe,F.isNil=nEe,F.isNull=tEe,F.isNumber=nV,F.isObject=hn,F.isObjectLike=mn,F.isPlainObject=i0,F.isRegExp=a8,F.isSafeInteger=rEe,F.isSet=rV,F.isString=gb,F.isSymbol=ri,F.isTypedArray=td,F.isUndefined=iEe,F.isWeakMap=oEe,F.isWeakSet=aEe,F.join=u$e,F.kebabCase=YEe,F.last=Li,F.lastIndexOf=c$e,F.lowerCase=XEe,F.lowerFirst=JEe,F.lt=lEe,F.lte=sEe,F.max=WCe,F.maxBy=qCe,F.mean=GCe,F.meanBy=KCe,F.min=YCe,F.minBy=XCe,F.stubArray=h8,F.stubFalse=g8,F.stubObject=ICe,F.stubString=NCe,F.stubTrue=LCe,F.multiply=JCe,F.nth=f$e,F.noConflict=ACe,F.noop=p8,F.now=fb,F.pad=ZEe,F.padEnd=QEe,F.padStart=eCe,F.parseInt=tCe,F.random=HEe,F.reduce=h3e,F.reduceRight=g3e,F.repeat=nCe,F.replace=rCe,F.result=PEe,F.round=ZCe,F.runInContext=K,F.sample=m3e,F.size=w3e,F.snakeCase=iCe,F.some=$3e,F.sortedIndex=y$e,F.sortedIndexBy=b$e,F.sortedIndexOf=w$e,F.sortedLastIndex=$$e,F.sortedLastIndexBy=E$e,F.sortedLastIndexOf=C$e,F.startCase=aCe,F.startsWith=lCe,F.subtract=QCe,F.sum=eSe,F.sumBy=tSe,F.template=sCe,F.times=RCe,F.toFinite=$a,F.toInteger=nt,F.toLength=oV,F.toLower=uCe,F.toNumber=Ri,F.toSafeInteger=uEe,F.toString=Tt,F.toUpper=cCe,F.trim=fCe,F.trimEnd=dCe,F.trimStart=pCe,F.truncate=hCe,F.unescape=gCe,F.uniqueId=jCe,F.upperCase=vCe,F.upperFirst=u8,F.each=Wz,F.eachRight=qz,F.first=zz,d8(F,function(){var s={};return No(F,function(c,v){Nt.call(F.prototype,v)||(s[v]=c)}),s}(),{chain:!1}),F.VERSION=r,Ti(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){F[s].placeholder=F}),Ti(["drop","take"],function(s,c){yt.prototype[s]=function(v){v=v===n?1:qn(nt(v),0);var C=this.__filtered__&&!c?new yt(this):this.clone();return C.__filtered__?C.__takeCount__=vr(v,C.__takeCount__):C.__views__.push({size:vr(v,ae),type:s+(C.__dir__<0?"Right":"")}),C},yt.prototype[s+"Right"]=function(v){return this.reverse()[s](v).reverse()}}),Ti(["filter","map","takeWhile"],function(s,c){var v=c+1,C=v==xe||v==Oe;yt.prototype[s]=function(_){var N=this.clone();return N.__iteratees__.push({iteratee:Me(_,3),type:v}),N.__filtered__=N.__filtered__||C,N}}),Ti(["head","last"],function(s,c){var v="take"+(c?"Right":"");yt.prototype[s]=function(){return this[v](1).value()[0]}}),Ti(["initial","tail"],function(s,c){var v="drop"+(c?"":"Right");yt.prototype[s]=function(){return this.__filtered__?new yt(this):this[v](1)}}),yt.prototype.compact=function(){return this.filter(Rr)},yt.prototype.find=function(s){return this.filter(s).head()},yt.prototype.findLast=function(s){return this.reverse().find(s)},yt.prototype.invokeMap=st(function(s,c){return typeof s=="function"?new yt(this):this.map(function(v){return Zg(v,s,c)})}),yt.prototype.reject=function(s){return this.filter(pb(Me(s)))},yt.prototype.slice=function(s,c){s=nt(s);var v=this;return v.__filtered__&&(s>0||c<0)?new yt(v):(s<0?v=v.takeRight(-s):s&&(v=v.drop(s)),c!==n&&(c=nt(c),v=c<0?v.dropRight(-c):v.take(c-s)),v)},yt.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},yt.prototype.toArray=function(){return this.take(ae)},No(yt.prototype,function(s,c){var v=/^(?:filter|find|map|reject)|While$/.test(c),C=/^(?:head|last)$/.test(c),_=F[C?"take"+(c=="last"?"Right":""):c],N=C||/^find/.test(c);!_||(F.prototype[c]=function(){var z=this.__wrapped__,W=C?[1]:arguments,X=z instanceof yt,fe=W[0],de=X||Je(z),pe=function(ht){var Ct=_.apply(F,Vl([ht],W));return C&&De?Ct[0]:Ct};de&&v&&typeof fe=="function"&&fe.length!=1&&(X=de=!1);var De=this.__chain__,Pe=!!this.__actions__.length,ze=N&&!De,at=X&&!Pe;if(!N&&de){z=at?z:new yt(this);var Ve=s.apply(z,W);return Ve.__actions__.push({func:ub,args:[pe],thisArg:n}),new Pi(Ve,De)}return ze&&at?s.apply(this,W):(Ve=this.thru(pe),ze?C?Ve.value()[0]:Ve.value():Ve)})}),Ti(["pop","push","shift","sort","splice","unshift"],function(s){var c=Iy[s],v=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",C=/^(?:pop|shift)$/.test(s);F.prototype[s]=function(){var _=arguments;if(C&&!this.__chain__){var N=this.value();return c.apply(Je(N)?N:[],_)}return this[v](function(z){return c.apply(Je(z)?z:[],_)})}}),No(yt.prototype,function(s,c){var v=F[c];if(v){var C=v.name+"";Nt.call(Xf,C)||(Xf[C]=[]),Xf[C].push({name:c,func:v})}}),Xf[nb(n,$).name]=[{name:"wrapper",func:n}],yt.prototype.clone=gwe,yt.prototype.reverse=vwe,yt.prototype.value=mwe,F.prototype.at=q$e,F.prototype.chain=G$e,F.prototype.commit=K$e,F.prototype.next=Y$e,F.prototype.plant=J$e,F.prototype.reverse=Z$e,F.prototype.toJSON=F.prototype.valueOf=F.prototype.value=Q$e,F.prototype.first=F.prototype.head,Wg&&(F.prototype[Wg]=X$e),F},Gf=K2e();an?((an.exports=Gf)._=Gf,St._=Gf):ct._=Gf}).call(Eg)})(aa,aa.exports);const BSe="",TSe="",Wbe={"page-sizes":[10,20,30,40,50,100],"page-size":10,layout:"total, sizes, prev, pager, next, jumper"},qbe=b.defineComponent({name:"JwtTable",components:{},props:{config:{require:!0,type:Object,default:()=>{}},tableHeight:{type:[String,Number],default:null},request:{type:Function,require:!0,default:()=>{}},uploadUrl:{type:String,default:""},uploadRichTextUrl:{type:String,default:""},responseKey:{type:String,default:"relative_path"},fillUrl:{type:Function,default:null},userMenusAuth:{type:Object,default:()=>{}},route:{type:Object,default:()=>{}},router:{type:Object,default:()=>{}}},emits:["selection-change","list-change","header-action","table-action","add-handle","edit-handle","add-success","edit-success","delete-success","table-current-change","tablelist-change","get-detail-success"],setup(e,{emit:t}){const n=b.reactive({tableData:[],ajaxLoading:!1,submitLoading:!1}),{proxy:r}=b.getCurrentInstance();let i=b.reactive(aa.exports.merge({headerActions:{list:[]},headerActionsShow:!0,tableAttr:{stripe:!0,border:!0,fit:!0,highlightCurrentRow:!0},tableColumn:[],tableListApi:null,tableListParams:{},tableDeleteApi:null,tableDeleteParams:{},pagination:Wbe,showPagination:!0,editBox:{title:"\u7CFB\u7EDF",dialog:{width:"960px"},form:{api:{add:null,update:null},formAttrs:{},formList:[]},footer:{confirm:{title:"\u786E\u8BA4",attrs:{type:"primary"}},cancel:{title:"\u53D6\u6D88",attrs:{}}}}},e.config));const o=b.reactive({currentPage:1,pageCount:1,pageSize:i.pagination["page-sizes"][0],totalCount:1,sort:"id",order:"desc"}),a=b.reactive({title:"",type:"add",visible:!1,model:{},boxName:"editBox"}),l=b.ref([]),u=b.ref({}),f=b.ref(null),d=b.computed(()=>{const{path:ae}=e.route;return ae||""}),p=b.computed(()=>e.userMenusAuth||{}),g=(ae={})=>{const M=a.boxName,R={};return i[M].form.formList.forEach(T=>{var Q,Ce,oe;const{key:L,type:q,startKey:O,endKey:J,formAttrs:ue}=T,he=(ue==null?void 0:ue.multiple)||!1,te=(ue==null?void 0:ue.valueType)||"";ae[L]&&q==="inputNumber"?R[L]=+ae[L]:he?Wt.isArray(ae[L])||(te==="number"?R[L]=ae[L]?(Ce=(Q=ae[L])==null?void 0:Q.split(","))==null?void 0:Ce.map(ye=>+ye):[]:R[L]=ae[L]?(oe=ae[L])==null?void 0:oe.split(","):[]):q==="datePickerRange"?f.value.setDatePickerRange([ae[O],ae[J]]):R[L]=ae[L]===""||ae[L]===void 0?T.value:ae[L]}),R},h=()=>{const{query:ae}=e.route;if(ae.fromJump){for(let[R,T]of Object.entries(ae))Wt.isArray(T)&&(ae[R]=T.map(L=>+L));const M={...u.value,...e.route.query};delete M.fromJump,u.value=M}E()},E=()=>{const ae=aa.exports.merge({page:o.currentPage,per_page:o.pageSize,sort:o.sort,order:o.order},i.tableListParams,u.value);w(ae)},w=ae=>{if(!i.tableListApi){i.tableData&&(n.tableData=i.tableData);return}n.ajaxLoading=!0,e.request({url:i.tableListApi,method:"get",params:ae}).then(M=>{n.tableData=M.data,o.pageCount=M.totalPage,o.totalCount=M.total,n.ajaxLoading=!1,t("tablelist-change")})},y=()=>{o.currentPage=1,o.pageSize=i.pagination["page-sizes"][0],E()},$=()=>{o.currentPage=1,o.pageSize=i.pagination["page-sizes"][0],E(u.value)},m=ae=>{o.currentPage=ae,E()},S=ae=>{o.pageSize=ae,E()},D=(ae,M="")=>ae===null||ae===""||ae===void 0?"-":M?Xl.default(ae).format(M):ae,A=ae=>{l.value=ae,t("selection-change",ae)},B=({prop:ae,order:M})=>{o.sort=ae,o.order=M==="ascending"?"asc":"desc",E()},P=ae=>{t("table-current-change",ae)},U=ae=>{var T;const{code:M}=ae,R=i.headerActions[M];switch(M){case"add":case"add1":case"add2":case"add3":case"add4":case"add5":case"add6":case"add7":case"add8":case"add9":R&&R.type==="editBox"?(xe("",R),t("add-handle",l.value)):R&&R.type==="editRoute"?R.jumpUrl&&((T=e==null?void 0:e.router)==null||T.push({path:R.jumpUrl,query:R.jumpParams})):t("add-handle",l.value);break;case"delete":case"delete1":case"delete2":case"delete3":case"delete4":case"delete5":case"delete6":case"delete7":case"delete8":case"delete9":case"deleteR":R&&R.event?t(R.event,l.value):Mr.ElMessageBox.confirm("\u6B64\u64CD\u4F5C\u5C06\u4F1A\u6C38\u4E45\u5220\u9664\u6570\u636E\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning",customClass:"elMessageBox-wrapper"}).then(()=>{const L=l.value.map(q=>q.id).join(",");Oe({id:L})}).catch(()=>{Mr.ElMessage.info("\u53D6\u6D88\u64CD\u4F5C\uFF01")});break;case"exportF":case"exportF1":case"exportF2":case"exportF3":case"exportF4":case"exportF5":case"exportF6":case"exportF7":case"exportF8":case"exportF9":Te();break;default:R&&R.type==="editBox"?xe("",R):t("header-action",ae,l.value)}},Y=(ae,M,R)=>{var L;const T=R.action[ae.code];switch(ae.code){case"edit":case"edit1":case"edit2":case"edit3":case"edit4":case"edit5":case"edit6":case"edit7":case"edit8":T&&T.type==="editBox"?(xe(M,T),t("edit-handle",M)):T&&T.type==="editRoute"?T.jumpUrl&&((L=e==null?void 0:e.router)==null||L.push({path:T.jumpUrl,query:M})):t("edit-handle",M);break;case"delete":case"delete1":case"delete2":case"delete3":case"delete4":case"delete5":case"delete6":case"delete7":case"delete8":case"delete9":case"deleteR":M&&M.event?t(M.event,l.value):Mr.ElMessageBox.confirm("\u6B64\u64CD\u4F5C\u5C06\u4F1A\u6C38\u4E45\u5220\u9664\u6570\u636E\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{Oe({id:M.id})}).catch(()=>{Mr.ElMessage.info("\u53D6\u6D88\u64CD\u4F5C\uFF01")});break;default:T&&T.type==="editRoute"?e.router.push({path:T.jumpUrl,query:M}):T&&T.type==="editBox"?xe(M,T):t("table-action",ae,M)}},ce=async ae=>{if(ae==="confirm"){if(n.submitLoading=!0,!await f.value.formValidate()){n.submitLoading=!1;return}f.value.formSubmit()}ae==="cancel"&&(a.visible=!1)},ee=ae=>{a.visible=!1,n.submitLoading=!1,t("list-change"),t("add-success",ae),$()},ge=ae=>{a.visible=!1,n.submitLoading=!1,t("list-change"),t("edit-success",ae),$()},se=()=>{n.submitLoading=!1},xe=(ae,M)=>{if(!e.config.editBox)return;const{editBoxName:R}=M,T=R||"editBox";a.boxName=T,a.visible=!0,a.model={},b.nextTick(()=>{var L,q,O;ae?(O=(q=(L=i==null?void 0:i[T])==null?void 0:L.form)==null?void 0:q.api)!=null&&O.detail?ve(ae,T):(a.model=g(ae),a.model.id=ae.id,a.title=i[T].customTitle?i[T].title:"\u7F16\u8F91"+i.editBox.title,a.type="edit"):(a.model={},i.editBox.form.formList.forEach(J=>{J.value!==void 0&&(a.model[J.key]=J.value)}),a.title=i[T].customTitle?i.editBox.title:"\u65B0\u5EFA"+i.editBox.title,a.type="add")})},ve=(ae,M)=>{const R={id:ae.id};e.request({url:i[M].form.api.detail,method:"get",params:R}).then(T=>{a.model=g(T),a.model.id=T.id,a.title=i[M].customTitle?i[M].title:"\u7F16\u8F91"+i.editBox.title,a.type="edit",t("get-detail-success",T)})},Oe=ae=>{e.request({url:i.tableDeleteApi,method:"post",data:ae}).then(()=>{t("delete-success"),$()})},Te=()=>{if(!i.tableExportApi){Mr.ElMessage.info("\u8BF7\u914D\u7F6E\u5BFC\u51FA\u63A5\u53E3\uFF01");return}if(!n.tableData.length){Mr.ElMessage.info("\u6682\u65E0\u6570\u636E\u53EF\u5BFC\u51FA\uFF01");return}const ae=r.$baseColorfullLoading(0,"\u6B63\u5728\u4E0B\u8F7D\u4E2D\u3002\u3002\u3002"),M=aa.exports.merge({page:o.currentPage,per_page:o.pageSize,sort:o.sort,order:o.order},i.tableListParams,u.value);e.request({url:i.tableExportApi,method:"get",resType:"blob",responseType:"blob",timeout:120*1e3,params:M}).then(R=>{let T=window.URL.createObjectURL(new Blob([R])),L=document.createElement("a");L.style.display="none",L.href=T,L.setAttribute("download",`${i.tableExportName||"\u6587\u4EF6"}-${Xl.default().format("YYYY-MM-DD")}.xlsx`),document.body.appendChild(L),L.click(),ae.close()})},Ne=(ae,M,R=!0)=>{ae[`isEdit${M.prop}`]=R},Re=(ae,M)=>{const{id:R}=ae,{prop:T}=M;if(!!R){var L={id:R};if(L[T]=ae[T],!i.tableUpdateApi)return Mr.ElMessage.info("\u8BF7\u914D\u7F6E\u7F16\u8F91\u63A5\u53E3\uFF01tableUpdateApi");e.request({url:i.tableUpdateApi,method:"post",data:L}).then(()=>{ae[`isEdit${T}`]=!1})}},Ae=ae=>e.fillUrl&&Wt.isFunction(e.fillUrl)?e.fillUrl(ae):ae;return b.watch(e,ae=>{i=aa.exports.merge(i,ae.config),ae.config.tableData&&(n.tableData=ae.config.tableData||[])}),b.onBeforeMount(()=>{h()}),{...b.toRefs(n),currentPagePath:d,appConfig:i,pagination:o,editBoxInfo:a,selectionRow:l,tableSearchModel:u,editBoxRef:f,dayjs:Xl.default,userMenusAuthObj:p,onSearchSubmit:$,onSearchReset:y,handleEdit:xe,handleCurrentChange:m,handleSizeChange:S,handleSelectionChange:A,handleTableCurrentChange:P,handleSortChange:B,handleHeaderAction:U,handleTableAction:Y,handleGetDetail:ve,handleBox:ce,filterVal:D,initSearch:h,handleAddSuccess:ee,handleEditSuccess:ge,handleEditRow:Ne,handleEditRowProp:Re,handleFillUrl:Ae,handleError:se}}}),Gbe={class:"app-table-wrapper"},Kbe={class:"table-header-wrapper fx"},Ybe={class:"fx pr10"},Xbe=["onDblclick"],Jbe={class:"image-slot wh fxmc"},Zbe={class:"fxr"},Qbe={class:"dialog-footer"};function e2e(e,t,n,r,i,o){var A,B,P,U,Y,ce;const a=b.resolveComponent("jwt-form"),l=b.resolveComponent("jwt-header-button"),u=b.resolveComponent("jwt-table-button"),f=b.resolveComponent("el-input"),d=b.resolveComponent("el-input-number"),p=b.resolveComponent("jwt-upload-image"),g=b.resolveComponent("el-switch"),h=b.resolveComponent("jwt-icon"),E=b.resolveComponent("el-image"),w=b.resolveComponent("el-table-column"),y=b.resolveComponent("el-table"),$=b.resolveComponent("el-pagination"),m=b.resolveComponent("el-button"),S=b.resolveComponent("el-dialog"),D=b.resolveDirective("loading");return b.openBlock(),b.createElementBlock(b.Fragment,null,[b.createElementVNode("div",Gbe,[b.renderSlot(e.$slots,"search-before",{},void 0,!0),b.createElementVNode("div",Kbe,[(P=(B=(A=e.appConfig)==null?void 0:A.tableSearch)==null?void 0:B.formList)!=null&&P.length?(b.openBlock(),b.createBlock(a,{key:0,modelValue:e.tableSearchModel,"onUpdate:modelValue":t[0]||(t[0]=ee=>e.tableSearchModel=ee),class:"app-table-search",config:e.appConfig.tableSearch,"fill-url":e.fillUrl,request:e.request,"response-key":e.responseKey,"upload-img-url":e.uploadUrl,"upload-rich-text-url":e.uploadRichTextUrl,onReset:e.onSearchReset,onSubmit:e.onSearchSubmit},null,8,["modelValue","config","fill-url","request","response-key","upload-img-url","upload-rich-text-url","onReset","onSubmit"])):b.createCommentVNode("",!0)]),b.createElementVNode("div",Ybe,[b.renderSlot(e.$slots,"header-button-before",{},void 0,!0),e.appConfig.headerActionsShow?(b.openBlock(),b.createBlock(l,{key:0,"action-list":(Y=(U=e.appConfig)==null?void 0:U.headerActions)==null?void 0:Y.list,"current-path":e.currentPagePath,loading:e.ajaxLoading,"menus-obj":e.userMenusAuth,"selection-row":e.selectionRow,onHeaderAction:e.handleHeaderAction},null,8,["action-list","current-path","loading","menus-obj","selection-row","onHeaderAction"])):b.createCommentVNode("",!0),b.renderSlot(e.$slots,"header-button-after",{},void 0,!0)]),b.renderSlot(e.$slots,"table-before",{},void 0,!0),b.withDirectives((b.openBlock(),b.createBlock(y,b.mergeProps(e.appConfig.tableAttr,{ref:"tableRef",class:"mt15",data:e.tableData,"element-loading-spinner":"el-icon-loading","element-loading-text":"\u52A0\u8F7D\u6570\u636E\u4E2D...",height:e.tableHeight,onCurrentChange:e.handleTableCurrentChange,onSelectionChange:e.handleSelectionChange,onSortChange:e.handleSortChange}),{default:b.withCtx(()=>[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(e.appConfig.tableColumn,(ee,ge)=>(b.openBlock(),b.createBlock(w,{key:ge,align:ee.align||"center",fixed:ee.fixed,label:ee.label,"min-width":ee.minWidth?ee.minWidth:null,prop:ee.prop,sortable:ee.sortable,type:ee.type,width:ee.width?ee.width:null},b.createSlots({_:2},[ee.type?void 0:{name:"default",fn:b.withCtx(({row:se,$index:xe})=>[ee.action?(b.openBlock(),b.createElementBlock(b.Fragment,{key:0},[b.renderSlot(e.$slots,"action-before",{scope:se},void 0,!0),b.createVNode(u,{config:ee,"current-path":e.currentPagePath,"menus-obj":e.userMenusAuthObj,row:se,"show-button-num":e.appConfig.tableButtonNum,onTableAction:ve=>e.handleTableAction(ve,se,ee)},null,8,["config","current-path","menus-obj","row","show-button-num","onTableAction"]),b.renderSlot(e.$slots,"action-after",{scope:se},void 0,!0)],64)):ee.dateTimeFormat?(b.openBlock(),b.createElementBlock(b.Fragment,{key:1},[b.createTextVNode(b.toDisplayString(e.filterVal(se[ee.prop],ee.dateTimeFormat)),1)],64)):ee.editType?(b.openBlock(),b.createElementBlock(b.Fragment,{key:2},[ee.editType==="input"?(b.openBlock(),b.createBlock(f,{key:0,modelValue:se[ee.prop],"onUpdate:modelValue":ve=>se[ee.prop]=ve,type:"text",onKeydown:b.withKeys(ve=>e.handleEditRowProp(se,ee),["enter"])},null,8,["modelValue","onUpdate:modelValue","onKeydown"])):ee.editType==="inputNumber"?(b.openBlock(),b.createBlock(d,{key:1,modelValue:se[ee.prop],"onUpdate:modelValue":ve=>se[ee.prop]=ve,"controls-position":"right",min:0,onBlur:ve=>e.handleEditRowProp(se,ee)},null,8,["modelValue","onUpdate:modelValue","onBlur"])):ee.editType==="uploadImg"?(b.openBlock(),b.createBlock(p,{key:2,modelValue:se[ee.prop],"onUpdate:modelValue":ve=>se[ee.prop]=ve,"fill-url":e.fillUrl,"upload-url":e.uploadUrl,onOnChange:ve=>e.handleEditRowProp(se,ee)},null,8,["modelValue","onUpdate:modelValue","fill-url","upload-url","onOnChange"])):ee.editType==="switch"?(b.openBlock(),b.createBlock(g,{key:3,modelValue:se[ee.prop],"onUpdate:modelValue":ve=>se[ee.prop]=ve,"active-value":1,"inactive-value":0,onChange:ve=>e.handleEditRowProp(se,ee)},null,8,["modelValue","onUpdate:modelValue","onChange"])):b.createCommentVNode("",!0)],64)):ee.editInput?(b.openBlock(),b.createElementBlock(b.Fragment,{key:3},[b.withDirectives(b.createElementVNode("div",{onDblclick:ve=>e.handleEditRow(se,ee)},b.toDisplayString(e.filterVal(se[ee.prop])),41,Xbe),[[b.vShow,!se[`isEdit${ee.prop}`]]]),b.withDirectives(b.createVNode(f,{modelValue:se[ee.prop],"onUpdate:modelValue":ve=>se[ee.prop]=ve,type:"text",onBlur:ve=>e.handleEditRowProp(se,ee),onKeyup:b.withKeys(ve=>e.handleEditRowProp(se,ee),["enter"])},null,8,["modelValue","onUpdate:modelValue","onBlur","onKeyup"]),[[b.vShow,se[`isEdit${ee.prop}`]]])],64)):ee.isImg?(b.openBlock(),b.createBlock(E,{key:4,"preview-src-list":[e.handleFillUrl(se[ee.prop])],"preview-teleported":"",size:80,src:e.handleFillUrl(se[ee.prop]),teleported:""},{error:b.withCtx(()=>[b.createElementVNode("div",Jbe,[b.createVNode(h,{class:"g9",icon:"image-line",style:{"font-size":"40px"}})])]),_:2},1032,["preview-src-list","src"])):b.renderSlot(e.$slots,ee.prop,{key:5,index:xe,scope:se},()=>[b.createTextVNode(b.toDisplayString(e.filterVal(se[ee.prop])),1)],!0)]),key:"0"}]),1032,["align","fixed","label","min-width","prop","sortable","type","width"]))),128))]),_:3},16,["data","height","onCurrentChange","onSelectionChange","onSortChange"])),[[D,e.ajaxLoading]]),b.createElementVNode("div",Zbe,[e.appConfig.showPagination?(b.openBlock(),b.createBlock($,b.mergeProps({key:0},e.appConfig.pagination,{class:"app-pagination","current-page":e.pagination.currentPage,disabled:e.ajaxLoading,"page-count":e.pagination.pageCount,"page-size":e.pagination.pageSize,total:e.pagination.totalCount,onCurrentChange:e.handleCurrentChange,onSizeChange:e.handleSizeChange}),null,16,["current-page","disabled","page-count","page-size","total","onCurrentChange","onSizeChange"])):b.createCommentVNode("",!0)])]),b.createVNode(S,b.mergeProps({modelValue:e.editBoxInfo.visible,"onUpdate:modelValue":t[2]||(t[2]=ee=>e.editBoxInfo.visible=ee)},e.appConfig[e.editBoxInfo.boxName].dialog,{"append-to-body":"",center:"","custom-class":"jwt-dialog-wrapper","destroy-on-close":"",title:e.editBoxInfo.title}),b.createSlots({default:b.withCtx(()=>[e.editBoxInfo.visible?(b.openBlock(),b.createBlock(a,{key:0,ref:"editBoxRef",modelValue:e.editBoxInfo.model,"onUpdate:modelValue":t[1]||(t[1]=ee=>e.editBoxInfo.model=ee),config:e.appConfig[e.editBoxInfo.boxName].form,"fill-url":e.fillUrl,request:e.request,"response-key":e.responseKey,"upload-img-url":e.uploadUrl,"upload-rich-text-url":e.uploadRichTextUrl,onAddSuccess:e.handleAddSuccess,onEditSuccess:e.handleEditSuccess,onError:e.handleError},b.createSlots({_:2},[b.renderList(e.appConfig[e.editBoxInfo.boxName].form.formList,ee=>({name:ee.name,fn:b.withCtx(()=>[b.renderSlot(e.$slots,ee.name,{model:e.editBoxInfo.model},void 0,!0)])}))]),1032,["modelValue","config","fill-url","request","response-key","upload-img-url","upload-rich-text-url","onAddSuccess","onEditSuccess","onError"])):b.createCommentVNode("",!0)]),_:2},[(ce=e.appConfig[e.editBoxInfo.boxName])!=null&&ce.footer?{name:"footer",fn:b.withCtx(()=>[b.createElementVNode("div",Qbe,[b.renderSlot(e.$slots,"dialog-footer-before",{model:e.editBoxInfo.model},void 0,!0),(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(e.appConfig[e.editBoxInfo.boxName].footer,(ee,ge)=>(b.openBlock(),b.createBlock(m,b.mergeProps(ee.attrs,{key:ge,loading:e.submitLoading,onClick:se=>e.handleBox(ee.action)}),{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(ee.title),1)]),_:2},1040,["loading","onClick"]))),128)),b.renderSlot(e.$slots,"dialog-footer-after",{model:e.editBoxInfo.model},void 0,!0)])]),key:"0"}:void 0]),1040,["modelValue","title"])],64)}const t2e=Object.freeze(Object.defineProperty({__proto__:null,default:yr(qbe,[["render",e2e],["__scopeId","data-v-0d0dceda"]])},Symbol.toStringTag,{value:"Module"})),n2e=b.defineComponent({name:"JwtTableButton",props:{currentPath:{type:String,default:"/"},menusObj:{type:Object,default:()=>{}},config:{type:Object,default:()=>{}},row:{type:Object,default:()=>{}},operationName:{type:String,default:"operations"},showButtonNum:{type:Number,default:2}},emits:["table-action"],setup(e,{emit:t}){const{currentPath:n,menusObj:r,operationName:i}=e,o=b.computed(()=>{var u;return((u=e.config)==null?void 0:u.action)||{}});return{tableButtonActions:b.computed(()=>{var d,p,g;const u=r[n],f=((p=(d=e==null?void 0:e.config)==null?void 0:d.action)==null?void 0:p.list)||[];return(g=u==null?void 0:u[i])!=null&&g.length?u[i].filter(h=>{var w,y,$,m;let E=h.show_table;if(f!=null&&f.length){const{code:S}=h;E=E&&f.includes(S)}return((y=(w=o==null?void 0:o.value)==null?void 0:w[h.code])==null?void 0:y.condition)&&Wt.isFunction(o.value[h.code].condition)&&(E=E&&o.value[h.code].condition(e.row)),((m=($=o==null?void 0:o.value)==null?void 0:$[h.code])==null?void 0:m.disabledFun)&&Wt.isFunction(o.value[h.code].disabledFun)&&(h.disabled=o.value[h.code].disabledFun(e.row)),E}):[]}),handleTableAction:u=>{t("table-action",u)}}}}),r2e={class:"table-actions"},i2e={class:"fx fxwp"};function o2e(e,t,n,r,i,o){const a=b.resolveComponent("el-button"),l=b.resolveComponent("vab-icon"),u=b.resolveComponent("el-popover");return b.openBlock(),b.createElementBlock("div",r2e,[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(e.tableButtonActions,(f,d)=>(b.openBlock(),b.createElementBlock(b.Fragment,{key:d},[e.showButtonNum&&d<e.showButtonNum?(b.openBlock(),b.createBlock(a,{key:0,class:b.normalizeClass([f.code.includes("delete")?"cd":""]),disabled:f.disabled,link:"",size:"small",type:"primary",onClick:p=>e.handleTableAction(f)},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(f.show_title||f.title),1)]),_:2},1032,["class","disabled","onClick"])):b.createCommentVNode("",!0)],64))),128)),e.showButtonNum&&e.tableButtonActions.length>e.showButtonNum?(b.openBlock(),b.createBlock(u,{key:0,placement:"bottom",trigger:"hover",width:150},{reference:b.withCtx(()=>[b.createVNode(l,{class:"ml5",icon:"more-fill"})]),default:b.withCtx(()=>[b.createElementVNode("div",i2e,[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(e.tableButtonActions,(f,d)=>(b.openBlock(),b.createElementBlock("div",{key:d},[b.createVNode(a,{class:b.normalizeClass([f.code.includes("delete")?"cd":""]),disabled:f.disabled,link:"",size:"small",type:"primary",onClick:p=>e.handleTableAction(f)},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(f.show_title||f.title),1)]),_:2},1032,["class","disabled","onClick"])]))),128))])]),_:1})):b.createCommentVNode("",!0)])}const a2e=Object.freeze(Object.defineProperty({__proto__:null,default:yr(n2e,[["render",o2e]])},Symbol.toStringTag,{value:"Module"})),ISe="",l2e={"page-sizes":[10,20,30,40,50,100],"page-size":10,layout:"total, sizes, prev, pager, next, jumper"},s2e=b.defineComponent({name:"JwtTableOnly",components:{},props:{config:{require:!0,type:Object,default:()=>{}},tableHeight:{type:[String,Number],default:null},request:{type:Function,require:!0,default:()=>{}},uploadUrl:{type:String,default:""},fillUrl:{type:Function,default:null},userMenusAuth:{type:Object,default:()=>{}}},emits:["selection-change","list-change","header-action","table-action","add-handle","edit-handle","add-success","edit-success","delete-success","table-current-change","tablelist-change","get-detail-success"],setup(e,{emit:t}){const n=b.reactive({tableData:[],ajaxLoading:!1,submitLoading:!1});let r=b.reactive(aa.exports.merge({tableAttr:{stripe:!0,border:!0,fit:!0,highlightCurrentRow:!0},tableColumn:[],tableListApi:null,tableListParams:{},tableDeleteApi:null,tableDeleteParams:{},pagination:l2e,showPagination:!0},e.config));const i=b.reactive({currentPage:1,pageCount:1,pageSize:r.pagination["page-sizes"][0],totalCount:1,sort:"id",order:"desc"}),o=b.ref([]),a=b.ref({}),l=b.ref(null),u=b.computed(()=>e.userMenusAuth||{}),f=()=>{d()},d=()=>{const P=aa.exports.merge({page:i.currentPage,per_page:i.pageSize,sort:i.sort,order:i.order},r.tableListParams,a.value);p(P)},p=P=>{if(!r.tableListApi){r.tableData&&(n.tableData=r.tableData);return}n.ajaxLoading=!0,e.request({url:r.tableListApi,method:"get",params:P}).then(U=>{n.tableData=U.data,i.pageCount=U.totalPage,i.totalCount=U.total,n.ajaxLoading=!1,t("tablelist-change")})},g=()=>{i.currentPage=1,i.pageSize=r.pagination["page-sizes"][0],d()},h=()=>{i.currentPage=1,i.pageSize=r.pagination["page-sizes"][0],d(a.value)},E=P=>{i.currentPage=P,d()},w=P=>{i.pageSize=P,d()},y=(P,U="")=>P===null||P===""||P===void 0?"-":U?Xl.default(P).format(U):P,$=P=>{o.value=P,t("selection-change",P)},m=({prop:P,order:U})=>{i.sort=P,i.order=U==="ascending"?"asc":"desc",d()},S=P=>{t("table-current-change",P)},D=(P,U,Y=!0)=>{P[`isEdit${U.prop}`]=Y},A=(P,U)=>{const{id:Y}=P,{prop:ce}=U;if(!!Y){var ee={id:Y};if(ee[ce]=P[ce],!r.tableUpdateApi)return Mr.ElMessage.info("\u8BF7\u914D\u7F6E\u7F16\u8F91\u63A5\u53E3\uFF01tableUpdateApi");e.request({url:r.tableUpdateApi,method:"post",data:ee}).then(()=>{P[`isEdit${ce}`]=!1})}},B=P=>e.fillUrl&&Wt.isFunction(e.fillUrl)?e.fillUrl(P):P;return b.watch(e,P=>{r=aa.exports.merge(r,P.config),P.config.tableData&&(n.tableData=P.config.tableData||[])}),b.onBeforeMount(()=>{f()}),{...b.toRefs(n),appConfig:r,pagination:i,selectionRow:o,tableSearchModel:a,editBoxRef:l,dayjs:Xl.default,userMenusAuthObj:u,onSearchSubmit:h,onSearchReset:g,handleCurrentChange:E,handleSizeChange:w,handleSelectionChange:$,handleTableCurrentChange:S,handleSortChange:m,filterVal:y,initSearch:f,handleEditRow:D,handleEditRowProp:A,handleFillUrl:B}}}),u2e={class:"app-table-wrapper"},c2e=["onDblclick"],f2e={class:"image-slot wh fxmc"},d2e={class:"fxr"};function p2e(e,t,n,r,i,o){const a=b.resolveComponent("el-input"),l=b.resolveComponent("el-input-number"),u=b.resolveComponent("jwt-upload-image"),f=b.resolveComponent("el-switch"),d=b.resolveComponent("jwt-icon"),p=b.resolveComponent("el-image"),g=b.resolveComponent("el-table-column"),h=b.resolveComponent("el-table"),E=b.resolveComponent("el-pagination"),w=b.resolveDirective("loading");return b.openBlock(),b.createElementBlock("div",u2e,[b.renderSlot(e.$slots,"table-before",{},void 0,!0),b.withDirectives((b.openBlock(),b.createBlock(h,b.mergeProps(e.appConfig.tableAttr,{ref:"tableRef",class:"mt15",data:e.tableData,"element-loading-spinner":"el-icon-loading","element-loading-text":"\u52A0\u8F7D\u6570\u636E\u4E2D...",height:e.tableHeight,onCurrentChange:e.handleTableCurrentChange,onSelectionChange:e.handleSelectionChange,onSortChange:e.handleSortChange}),{default:b.withCtx(()=>[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(e.appConfig.tableColumn,(y,$)=>(b.openBlock(),b.createBlock(g,{key:$,align:y.align||"center",fixed:y.fixed,label:y.label,"min-width":y.minWidth?y.minWidth:null,prop:y.prop,sortable:y.sortable,type:y.type,width:y.width?y.width:null},b.createSlots({_:2},[y.type?void 0:{name:"default",fn:b.withCtx(({row:m,$index:S})=>[y.dateTimeFormat?(b.openBlock(),b.createElementBlock(b.Fragment,{key:0},[b.createTextVNode(b.toDisplayString(e.filterVal(m[y.prop],y.dateTimeFormat)),1)],64)):y.editType?(b.openBlock(),b.createElementBlock(b.Fragment,{key:1},[y.editType==="input"?(b.openBlock(),b.createBlock(a,{key:0,modelValue:m[y.prop],"onUpdate:modelValue":D=>m[y.prop]=D,type:"text",onKeydown:b.withKeys(D=>e.handleEditRowProp(m,y),["enter"])},null,8,["modelValue","onUpdate:modelValue","onKeydown"])):y.editType==="inputNumber"?(b.openBlock(),b.createBlock(l,{key:1,modelValue:m[y.prop],"onUpdate:modelValue":D=>m[y.prop]=D,"controls-position":"right",min:0,onBlur:D=>e.handleEditRowProp(m,y)},null,8,["modelValue","onUpdate:modelValue","onBlur"])):y.editType==="uploadImg"?(b.openBlock(),b.createBlock(u,{key:2,modelValue:m[y.prop],"onUpdate:modelValue":D=>m[y.prop]=D,"fill-url":e.fillUrl,"upload-url":e.uploadUrl,onOnChange:D=>e.handleEditRowProp(m,y)},null,8,["modelValue","onUpdate:modelValue","fill-url","upload-url","onOnChange"])):y.editType==="switch"?(b.openBlock(),b.createBlock(f,{key:3,modelValue:m[y.prop],"onUpdate:modelValue":D=>m[y.prop]=D,"active-value":1,"inactive-value":0,onChange:D=>e.handleEditRowProp(m,y)},null,8,["modelValue","onUpdate:modelValue","onChange"])):b.createCommentVNode("",!0)],64)):y.editInput?(b.openBlock(),b.createElementBlock(b.Fragment,{key:2},[b.withDirectives(b.createElementVNode("div",{onDblclick:D=>e.handleEditRow(m,y)},b.toDisplayString(e.filterVal(m[y.prop])),41,c2e),[[b.vShow,!m[`isEdit${y.prop}`]]]),b.withDirectives(b.createVNode(a,{modelValue:m[y.prop],"onUpdate:modelValue":D=>m[y.prop]=D,type:"text",onBlur:D=>e.handleEditRowProp(m,y),onKeyup:b.withKeys(D=>e.handleEditRowProp(m,y),["enter"])},null,8,["modelValue","onUpdate:modelValue","onBlur","onKeyup"]),[[b.vShow,m[`isEdit${y.prop}`]]])],64)):y.isImg?(b.openBlock(),b.createBlock(p,{key:3,"preview-src-list":[e.handleFillUrl(m[y.prop])],"preview-teleported":"",size:80,src:e.handleFillUrl(m[y.prop]),teleported:""},{error:b.withCtx(()=>[b.createElementVNode("div",f2e,[b.createVNode(d,{class:"g9",icon:"image-line",style:{"font-size":"40px"}})])]),_:2},1032,["preview-src-list","src"])):b.renderSlot(e.$slots,y.prop,{key:4,index:S,scope:m},()=>[b.createTextVNode(b.toDisplayString(e.filterVal(m[y.prop])),1)],!0)]),key:"0"}]),1032,["align","fixed","label","min-width","prop","sortable","type","width"]))),128))]),_:3},16,["data","height","onCurrentChange","onSelectionChange","onSortChange"])),[[w,e.ajaxLoading]]),b.createElementVNode("div",d2e,[e.appConfig.showPagination?(b.openBlock(),b.createBlock(E,b.mergeProps({key:0},e.appConfig.pagination,{class:"app-pagination","current-page":e.pagination.currentPage,disabled:e.ajaxLoading,"page-count":e.pagination.pageCount,"page-size":e.pagination.pageSize,total:e.pagination.totalCount,onCurrentChange:e.handleCurrentChange,onSizeChange:e.handleSizeChange}),null,16,["current-page","disabled","page-count","page-size","total","onCurrentChange","onSizeChange"])):b.createCommentVNode("",!0)])])}const h2e=Object.freeze(Object.defineProperty({__proto__:null,default:yr(s2e,[["render",p2e],["__scopeId","data-v-8542559f"]])},Symbol.toStringTag,{value:"Module"})),LSe="",g2e=b.defineComponent({name:"JwtTags",props:{modelValue:{type:[String,Array],default:""},btnTitle:{type:String,default:"\u6DFB\u52A0"}},emits:["update:modelValue"],setup(e,{emit:t}){const n=b.ref(null),r=b.reactive({tagList:[],inputVisible:!1,inputValue:"",initOnce:!1}),i=()=>{var d;if(r.initOnce)return;let f=[];return e.modelValue&&Wt.isString(e.modelValue)&&(f=(d=e==null?void 0:e.modelValue)==null?void 0:d.split(",")),r.initOnce=!0,f};b.watch(()=>e.modelValue,f=>{r.initOnce||(f?r.tagList=i():r.tagList=[])},{immediate:!0});const o=()=>{r.inputVisible=!0,b.nextTick(()=>{var f,d;(d=(f=n.value)==null?void 0:f.input)==null||d.focus()})},a=f=>{r.tagList.splice(r.tagList.indexOf(f),1),l()},l=()=>{const f=r.tagList.join(",");t("update:modelValue",f)},u=()=>{r.inputValue&&r.tagList.push(r.inputValue),r.inputVisible=!1,r.inputValue="",l()};return b.onUpdated(()=>{}),b.onBeforeMount(()=>{r.initOnce=!1}),{...b.toRefs(r),inputRef:n,showInput:o,handleClose:a,handleInputConfirm:u}}});function v2e(e,t,n,r,i,o){const a=b.resolveComponent("el-tag"),l=b.resolveComponent("el-input"),u=b.resolveComponent("el-button");return b.openBlock(),b.createElementBlock(b.Fragment,null,[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(e.tagList,f=>(b.openBlock(),b.createBlock(a,{key:f,class:"mx-1",closable:"","disable-transitions":!1,onClose:d=>e.handleClose(f)},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(f),1)]),_:2},1032,["onClose"]))),128)),e.inputVisible?(b.openBlock(),b.createBlock(l,{key:0,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[0]||(t[0]=f=>e.inputValue=f),class:"w120",size:"small",onBlur:e.handleInputConfirm,onKeyup:b.withKeys(e.handleInputConfirm,["enter"])},null,8,["modelValue","onBlur","onKeyup"])):(b.openBlock(),b.createBlock(u,{key:1,class:"button-new-tag",size:"small",onClick:e.showInput},{default:b.withCtx(()=>[b.createTextVNode(" + "+b.toDisplayString(e.btnTitle),1)]),_:1},8,["onClick"]))],64)}const m2e=Object.freeze(Object.defineProperty({__proto__:null,default:yr(g2e,[["render",v2e],["__scopeId","data-v-8d0666c2"]])},Symbol.toStringTag,{value:"Module"})),MSe="",y2e=b.defineComponent({name:"JwtUploadImage",props:{uploadUrl:{type:String,default:""},modelValue:{type:[String,Array],default:null},limitSize:{type:[String,Number],default:2048},disabled:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},listType:{type:String,default:"picture-card"},limit:{type:[String,Number],default:10},fillUrl:{type:Function,default:null},uploadParam:{type:Object,default:()=>{}},responseKey:{type:String,default:"relative_path"}},emits:["update:modelValue","onChange"],setup(e,{emit:t}){const n=b.reactive({fileList:[],dialogVisible:!1,dialogImageUrl:"",initOnce:!1,onUploadProgress:!1}),r=h=>e.fillUrl&&Wt.isFunction(e.fillUrl)?e.fillUrl(h):h,i=b.computed(()=>{var h;return e.multiple?!1:!!((h=e==null?void 0:e.modelValue)!=null&&h.length)||n.onUploadProgress}),o=()=>{if(n.initOnce)return;let h=[];if(e.multiple)if(Wt.hasArray(e.modelValue))e.modelValue.map(E=>{E&&h.push({url:r(E),org_url:E,name:r(E)})});else if(Wt.isString(e.modelValue))e.modelValue.split(",").map(E=>{E&&h.push({url:r(E),org_url:E,name:r(E)})});else return n.initOnce=!1,[];else h=e.modelValue?[{url:r(e.modelValue),org_url:e.modelValue,name:r(e.modelValue)}]:[];return n.initOnce=!0,h};b.watch(()=>e.modelValue,h=>{b.nextTick(()=>{if(!n.initOnce)if(h){const E=o();n.fileList=E}else n.fileList=[]})});const a=b.computed(()=>({Authorization:sessionStorage.getItem("admin-token")||localStorage.getItem("admin-token")})),l=h=>{if(!e.uploadUrl)return Mr.ElMessage.error("\u8BF7\u914D\u7F6E\u4E0A\u4F20\u7684\u8DEF\u5F84\u5730\u5740\uFF01");const E=h.type,w=parseInt(e.limitSize),y=w/1024,$=h.size/1024<w;let S=["image/jpeg","image/png","image/gif","image/webp"].includes(E);S||Mr.ElMessage.error("\u4E0A\u4F20\u56FE\u7247\u53EA\u80FD\u662F JPG,PNG,GIF,WEBP \u683C\u5F0F!"),$||(y>1?Mr.ElMessage.error(`\u4E0A\u4F20\u56FE\u7247\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7 ${y}MB!`):Mr.ElMessage.error(`\u4E0A\u4F20\u56FE\u7247\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7 ${w}KB!`));const D=S&&$;return D&&(n.onUploadProgress=!0),D},u=()=>{n.onUploadProgress=!1},f=(h,E,w)=>{n.onUploadProgress=!1,h.code===0?p(w):(Mr.ElMessage.error(h.msg),this.dialogVisible=!1)},d=(h,E)=>{p(E)},p=h=>{const{responseKey:E}=e;n.initOnce=!0;let w=[];h.map(y=>{var m,S,D;const $=(E?(S=(m=y==null?void 0:y.response)==null?void 0:m.data)==null?void 0:S[E]:(D=y==null?void 0:y.response)==null?void 0:D.data)||y.org_url;$&&w.push($)}),e.multiple?(t("update:modelValue",w),t("onChange",w)):(t("update:modelValue",w[0]||""),t("onChange",w[0]||""))},g=h=>{n.dialogImageUrl=h.url,n.dialogVisible=!0};return b.onBeforeMount(()=>{n.fileList=[],n.initOnce=!1}),{...b.toRefs(n),headers:a,showOnlyOne:i,handleRemove:d,handleBeforeUpload:l,handleUploadSuccess:f,handlePictureCardPreview:g,handleUploadError:u}}}),b2e=["src"];function w2e(e,t,n,r,i,o){const a=b.resolveComponent("jwt-icon"),l=b.resolveComponent("el-upload"),u=b.resolveComponent("el-dialog");return b.openBlock(),b.createElementBlock(b.Fragment,null,[b.createVNode(l,{action:e.uploadUrl,"before-upload":e.handleBeforeUpload,class:b.normalizeClass({onlyOne:e.showOnlyOne}),data:e.uploadParam,disabled:e.disabled,"file-list":e.fileList,headers:e.headers,"list-type":e.listType,multiple:e.multiple,name:"filedata","with-credentials":"","on-error":e.handleUploadError,"on-preview":e.handlePictureCardPreview,"on-remove":e.handleRemove,"on-success":e.handleUploadSuccess,"show-file-list":!0},{default:b.withCtx(()=>[b.createVNode(a,{icon:"add-line",size:40})]),_:1},8,["action","before-upload","class","data","disabled","file-list","headers","list-type","multiple","on-error","on-preview","on-remove","on-success"]),b.createVNode(u,{modelValue:e.dialogVisible,"onUpdate:modelValue":t[0]||(t[0]=f=>e.dialogVisible=f),"append-to-body":""},{default:b.withCtx(()=>[b.createElementVNode("img",{src:e.dialogImageUrl,style:{width:"100%"},"w-full":""},null,8,b2e)]),_:1},8,["modelValue"])],64)}const $2e=Object.freeze(Object.defineProperty({__proto__:null,default:yr(y2e,[["render",w2e]])},Symbol.toStringTag,{value:"Module"}));var yj={exports:{}};const E2e=Hbe(Uye);(function(e,t){(function(n,r){e.exports=r(E2e)})(self,n=>(()=>{var r={857:l=>{l.exports=n}},i={};function o(l){var u=i[l];if(u!==void 0)return u.exports;var f=i[l]={exports:{}};return r[l](f,f.exports,o),f.exports}o.d=(l,u)=>{for(var f in u)o.o(u,f)&&!o.o(l,f)&&Object.defineProperty(l,f,{enumerable:!0,get:u[f]})},o.o=(l,u)=>Object.prototype.hasOwnProperty.call(l,u),o.r=l=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(l,"__esModule",{value:!0})};var a={};return(()=>{o.r(a),o.d(a,{default:()=>R});var l=o(857);(0,l.i18nAddResources)("en",{attachment:{upload:"Upload Attachment",download:"Download Attachment"}}),(0,l.i18nAddResources)("zh-CN",{attachment:{upload:"\u4E0A\u4F20\u9644\u4EF6",download:"\u4E0B\u8F7D\u9644\u4EF6"}});function u(T,L,q,O,J){return{sel:T,data:L,children:q,text:O,elm:J,key:L===void 0?void 0:L.key}}const f=Array.isArray;function d(T){return typeof T=="string"||typeof T=="number"||T instanceof String||T instanceof Number}function p(T,L,q){if(T.ns="http://www.w3.org/2000/svg",q!=="foreignObject"&&L!==void 0)for(let O=0;O<L.length;++O){const J=L[O];if(typeof J=="string")continue;const ue=J.data;ue!==void 0&&p(ue,J.children,J.sel)}}function g(T,L,q){let O,J,ue,he={};if(q!==void 0?(L!==null&&(he=L),f(q)?O=q:d(q)?J=q.toString():q&&q.sel&&(O=[q])):L!=null&&(f(L)?O=L:d(L)?J=L.toString():L&&L.sel?O=[L]:he=L),O!==void 0)for(ue=0;ue<O.length;++ue)d(O[ue])&&(O[ue]=u(void 0,void 0,void 0,O[ue],void 0));return T[0]!=="s"||T[1]!=="v"||T[2]!=="g"||T.length!==3&&T[3]!=="."&&T[3]!=="#"||p(he,O,T),u(T,he,O,J,void 0)}const h={type:"attachment",renderElem:function(T,L,q){var O=q.isDisabled(),J=l.DomEditor.isNodeSelected(q,T),ue=T,he=ue.fileName,te=he===void 0?"":he,Q=ue.link,Ce=Q===void 0?"":Q;return g("span",{props:{contentEditable:!1},style:{display:"inline-block",marginLeft:"3px",marginRight:"3px",border:J&&!O?"2px solid var(--w-e-textarea-selected-border-color)":"2px solid transparent",borderRadius:"3px",padding:"0 3px",backgroundColor:"#f1f1f1",cursor:O?"pointer":"inherit"},on:{click:function(){O&&Ce&&window.open(Ce,"_blank")}}},[g("img",{props:{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAv5JREFUWEetl1nITVEUx3/fo5LkyRQeFA+SIS8eZHhQimRKMhMSoogyR5QxMs9DkplQEhFvxihCKUWkpCTP9P9a+1p3f2efe869367T3Xeftdf/v9e012mi9cZQYDzQBxgIfANeAO+BDSmYplbCX58HAnwFFgNXY7zWIHABmBQpfg10A9pH64OAZ36tUQLngClO4XVgC/DU1iYCF937N+aiylIjBM4A05xy+XljwqV/3bpkKjFRL4GTwMyU0gwSY4Abtn4NGBdk6iFwFJhbAjyI/gLaAR+BnvUSOATML2j22BCvgL7AbyPS/L6MBfYDC3NOrlS8BLzNcIGi/4mtPwSGlbXAHmBJDriCSgQU5UrJmIT8Ptb277OaUNgCu4BlBcCDSFWUGzFfCXV6WaEQge3A8hLgcSquBjbnBWxeDGwFVtXwuT9ZfHLtlY4wFB9xxUwGoViLfVGzxuCymqyXC57KAilb1wC44kVxUxM8i8Bs4HgJn8cnV6YoYwqBxwR6A/eBzrY7Vh5SLeUW1QjVisLgMQEFyQTbfQqY5ZTVAp8HHC4L7gnocrhiCj5ZpdKvxlJgd45b5gDHcsDzKmQlC3zUrwS2mcJ+wAPXWMRumQHIWimzh04pVSErBG4Do0zLaOCWzX2rpeZjqgPT/GwB8FTMNK+HQqSerZNJKgjVUGro9Go2NXwJnQycLwGebFYCgS9AF1PYEfhu8wXAQZurfh8AutcoMnGDGrvN8f5vAQVg6FJGAndNqq211SE1qzbb9evLaylw74I1wCbTvgLY4ZAGAzeBDhH6kYzmRARyfR6fILhAd7XubI0fQC/gpxNuY23YcOCDdbrP3fvSJw97/W14B5D5NR4DQ2K2if91g3sXaN4V+OxAlN+LgD8J4B7WbJTpjluoivuB6cBpJ6VquBd4BAST67tP1tHFIxKlfJ6KAb8+AriXcWqlarCUf60ashY4UdBlVWKpjkgRvzP6+MjSf9nA39UDHsdAlg7VhgFAf3sk89IefXq3+NotS+QfmNG0IS7jBhcAAAAASUVORK5CYII="},style:{width:"1em",marginRight:"0.1em",minWidth:"0",minHeight:"0"}}),te])}};function E(T){return T!==null&&typeof T=="object"&&"constructor"in T&&T.constructor===Object}function w(T={},L={}){Object.keys(L).forEach(q=>{T[q]===void 0?T[q]=L[q]:E(L[q])&&E(T[q])&&Object.keys(L[q]).length>0&&w(T[q],L[q])})}const y={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function $(){const T=typeof document<"u"?document:{};return w(T,y),T}const m={document:y,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:T=>typeof setTimeout>"u"?(T(),null):setTimeout(T,0),cancelAnimationFrame(T){typeof setTimeout<"u"&&clearTimeout(T)}};function S(){const T=typeof window<"u"?window:{};return w(T,m),T}class D extends Array{constructor(L){typeof L=="number"?super(L):(super(...L||[]),function(q){const O=q.__proto__;Object.defineProperty(q,"__proto__",{get:()=>O,set(J){O.__proto__=J}})}(this))}}function A(T,L){const q=S(),O=$();let J=[];if(!L&&T instanceof D)return T;if(!T)return new D(J);if(typeof T=="string"){const ue=T.trim();if(ue.indexOf("<")>=0&&ue.indexOf(">")>=0){let he="div";ue.indexOf("<li")===0&&(he="ul"),ue.indexOf("<tr")===0&&(he="tbody"),ue.indexOf("<td")!==0&&ue.indexOf("<th")!==0||(he="tr"),ue.indexOf("<tbody")===0&&(he="table"),ue.indexOf("<option")===0&&(he="select");const te=O.createElement(he);te.innerHTML=ue;for(let Q=0;Q<te.childNodes.length;Q+=1)J.push(te.childNodes[Q])}else J=function(he,te){if(typeof he!="string")return[he];const Q=[],Ce=te.querySelectorAll(he);for(let oe=0;oe<Ce.length;oe+=1)Q.push(Ce[oe]);return Q}(T.trim(),L||O)}else if(T.nodeType||T===q||T===O)J.push(T);else if(Array.isArray(T)){if(T instanceof D)return T;J=T}return new D(function(ue){const he=[];for(let te=0;te<ue.length;te+=1)he.indexOf(ue[te])===-1&&he.push(ue[te]);return he}(J))}function B(...T){let[L,q,O,J]=T;function ue(Ce){const oe=Ce.target;if(!oe)return;const ye=Ce.target.dom7EventData||[];if(ye.indexOf(Ce)<0&&ye.unshift(Ce),A(oe).is(q))O.apply(oe,ye);else{const Le=A(oe).parents();for(let $t=0;$t<Le.length;$t+=1)A(Le[$t]).is(q)&&O.apply(Le[$t],ye)}}function he(Ce){const oe=Ce&&Ce.target&&Ce.target.dom7EventData||[];oe.indexOf(Ce)<0&&oe.unshift(Ce),O.apply(this,oe)}typeof T[1]=="function"&&([L,O,J]=T,q=void 0),J||(J=!1);const te=L.split(" ");let Q;for(let Ce=0;Ce<this.length;Ce+=1){const oe=this[Ce];if(q)for(Q=0;Q<te.length;Q+=1){const ye=te[Q];oe.dom7LiveListeners||(oe.dom7LiveListeners={}),oe.dom7LiveListeners[ye]||(oe.dom7LiveListeners[ye]=[]),oe.dom7LiveListeners[ye].push({listener:O,proxyListener:ue}),oe.addEventListener(ye,ue,J)}else for(Q=0;Q<te.length;Q+=1){const ye=te[Q];oe.dom7Listeners||(oe.dom7Listeners={}),oe.dom7Listeners[ye]||(oe.dom7Listeners[ye]=[]),oe.dom7Listeners[ye].push({listener:O,proxyListener:he}),oe.addEventListener(ye,he,J)}}return this}function P(){for(let T=0;T<this.length;T+=1)this[T].style.display="none";return this}function U(...T){let L;const q=$();for(let O=0;O<T.length;O+=1){L=T[O];for(let J=0;J<this.length;J+=1)if(typeof L=="string"){const ue=q.createElement("div");for(ue.innerHTML=L;ue.firstChild;)this[J].appendChild(ue.firstChild)}else if(L instanceof D)for(let ue=0;ue<L.length;ue+=1)this[J].appendChild(L[ue]);else this[J].appendChild(L)}return this}A.fn=D.prototype;const Y="resize scroll".split(" ");function ce(T){return function(...L){if(L[0]===void 0){for(let q=0;q<this.length;q+=1)Y.indexOf(T)<0&&(T in this[q]?this[q][T]():A(this[q]).trigger(T));return this}return this.on(T,...L)}}const ee=ce("click"),ge=A;P&&(ge.fn.hide=P),U&&(ge.fn.append=U),ee&&(ge.fn.click=ee),B&&(ge.fn.on=B);const se=ge;var xe=function(){return xe=Object.assign||function(T){for(var L,q=1,O=arguments.length;q<O;q++)for(var J in L=arguments[q])Object.prototype.hasOwnProperty.call(L,J)&&(T[J]=L[J]);return T},xe.apply(this,arguments)},ve=function(T,L,q,O){return new(q||(q=Promise))(function(J,ue){function he(Ce){try{Q(O.next(Ce))}catch(oe){ue(oe)}}function te(Ce){try{Q(O.throw(Ce))}catch(oe){ue(oe)}}function Q(Ce){var oe;Ce.done?J(Ce.value):(oe=Ce.value,oe instanceof q?oe:new q(function(ye){ye(oe)})).then(he,te)}Q((O=O.apply(T,L||[])).next())})},Oe=function(T,L){var q,O,J,ue,he={label:0,sent:function(){if(1&J[0])throw J[1];return J[1]},trys:[],ops:[]};return ue={next:te(0),throw:te(1),return:te(2)},typeof Symbol=="function"&&(ue[Symbol.iterator]=function(){return this}),ue;function te(Q){return function(Ce){return function(oe){if(q)throw new TypeError("Generator is already executing.");for(;he;)try{if(q=1,O&&(J=2&oe[0]?O.return:oe[0]?O.throw||((J=O.return)&&J.call(O),0):O.next)&&!(J=J.call(O,oe[1])).done)return J;switch(O=0,J&&(oe=[2&oe[0],J.value]),oe[0]){case 0:case 1:J=oe;break;case 4:return he.label++,{value:oe[1],done:!1};case 5:he.label++,O=oe[1],oe=[0];continue;case 7:oe=he.ops.pop(),he.trys.pop();continue;default:if(!((J=(J=he.trys).length>0&&J[J.length-1])||oe[0]!==6&&oe[0]!==2)){he=0;continue}if(oe[0]===3&&(!J||oe[1]>J[0]&&oe[1]<J[3])){he.label=oe[1];break}if(oe[0]===6&&he.label<J[1]){he.label=J[1],J=oe;break}if(J&&he.label<J[2]){he.label=J[2],he.ops.push(oe);break}J[2]&&he.ops.pop(),he.trys.pop();continue}oe=L.call(T,he)}catch(ye){oe=[6,ye],O=0}finally{q=J=0}if(5&oe[0])throw oe[1];return{value:oe[0]?oe[1]:void 0,done:!0}}([Q,Ce])}}};function Te(T){return T.getMenuConfig("uploadAttachment")}function Ne(T,L,q){if(L&&q){T.restoreSelection();var O={type:"attachment",fileName:L,link:q,children:[{text:""}]};T.insertNode(O),T.move(1);var J=Te(T).onInsertedAttachment;J&&J(O)}}function Re(T,L){return ve(this,void 0,void 0,function(){var q,O,J,ue;return Oe(this,function(he){switch(he.label){case 0:return q=function(te){var Q=Ae.get(te);if(Q!=null)return Q;var Ce=Te(te),oe=Ce.onSuccess,ye=Ce.onProgress,Le=Ce.onFailed,$t=Ce.customInsert,ft=Ce.onError;return Q=(0,l.createUploader)(xe(xe({},Ce),{onProgress:function(ot){te.showProgressBar(ot),ye&&ye(ot)},onSuccess:function(ot,Ze){if($t)$t(Ze,ot,function(Kt,Yt){return Ne(te,Kt,Yt)});else{var dt=Ze.errno,pt=dt===void 0?1:dt,rn=Ze.data,In=rn===void 0?{}:rn;if(pt!==0)return console.error("'".concat(ot.name,"' upload failed"),Ze),void Le(ot,Ze);var mt=In.url,on=mt===void 0?"":mt;Ne(te,ot.name,on),oe(ot,Ze)}},onError:function(ot,Ze,dt){var pt=ot.name;console.error("'".concat(pt," upload error"),Ze,dt),ft&&ft(ot,Ze,dt)}})),Ae.set(te,Q),Q}(T),O=L.name,J=L.type,ue=L.size,q.addFile({name:O,type:J,size:ue,data:L}),[4,q.upload()];case 1:return he.sent(),[2]}})})}var Ae=new WeakMap;const ae=function(){function T(){this.title=(0,l.t)("attachment.upload"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M665.821116 327.053068l-64.958782-64.926783-324.79391 324.729911c-53.822991 53.790991-53.822991 141.053355 0 194.844347s141.053355 53.790991 194.876346 0l389.752692-389.688693a229.531696 229.531696 0 0 0 0-324.729912 229.627694 229.627694 0 0 0-324.761911 0L126.727224 476.458266l-0.863984 0.831985c-125.085655 125.085655-125.085655 327.833853 0 452.887508 125.053655 125.053655 327.865853 125.053655 452.983507 0l0.831984-0.863984 0.031999 0.032 279.322763-279.290764-64.990781-64.926782-279.322763 279.258764-0.831984 0.831984a228.731711 228.731711 0 0 1-323.065943 0 228.603714 228.603714 0 0 1 0-322.969944l0.895983-0.831985-0.031999-0.063998L600.958332 132.208721c53.694993-53.726993 141.149353-53.726993 194.876346 0s53.694993 141.149353 0 194.844347L406.081986 716.741761c-17.919664 17.919664-47.039118 17.919664-64.958782 0a45.983138 45.983138 0 0 1 0-64.926783L665.917114 327.053068z"></path></svg>',this.tag="button"}return T.prototype.getValue=function(L){return""},T.prototype.isActive=function(L){return!1},T.prototype.exec=function(L,q){var O=this.getMenuConfig(L),J=O.allowedFileTypes,ue=J===void 0?[]:J,he=O.customBrowseAndUpload;if(he)he(function(oe,ye){return Ne(L,oe,ye)});else{var te="";ue.length>0&&(te='accept="'.concat(ue.join(", "),'"'));var Q=se("body"),Ce=se('<input type="file" '.concat(te," multiple/>"));Ce.hide(),Q.append(Ce),Ce.click(),Ce.on("change",function(){var oe=Ce[0].files;(function(ye,Le){var $t,ft;ve(this,void 0,void 0,function(){var ot,Ze,dt,pt,rn,In;return Oe(this,function(mt){switch(mt.label){case 0:if(Le==null)return[2];ot=Array.prototype.slice.call(Le),Ze=Te(ye).customUpload,mt.label=1;case 1:mt.trys.push([1,9,10,15]),dt=function(on){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Kt,Yt=on[Symbol.asyncIterator];return Yt?Yt.call(on):(on=typeof __values=="function"?__values(on):on[Symbol.iterator](),Kt={},Jn("next"),Jn("throw"),Jn("return"),Kt[Symbol.asyncIterator]=function(){return this},Kt);function Jn(dn){Kt[dn]=on[dn]&&function(Nn){return new Promise(function(Di,Zi){(function($r,Fr,Ai,Pr){Promise.resolve(Pr).then(function(Qr){$r({value:Qr,done:Ai})},Fr)})(Di,Zi,(Nn=on[dn](Nn)).done,Nn.value)})}}}(ot),mt.label=2;case 2:return[4,dt.next()];case 3:return(pt=mt.sent()).done?[3,8]:(rn=pt.value,Ze?[4,Ze(rn,function(on,Kt){return Ne(ye,on,Kt)})]:[3,5]);case 4:return mt.sent(),[3,7];case 5:return[4,Re(ye,rn)];case 6:mt.sent(),mt.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return In=mt.sent(),$t={error:In},[3,15];case 10:return mt.trys.push([10,,13,14]),pt&&!pt.done&&(ft=dt.return)?[4,ft.call(dt)]:[3,12];case 11:mt.sent(),mt.label=12;case 12:return[3,14];case 13:if($t)throw $t.error;return[7];case 14:return[7];case 15:return[2]}})})})(L,oe)})}},T.prototype.isDisabled=function(L){var q=L.selection;if(q==null||l.SlateRange.isExpanded(q))return!0;var O=l.DomEditor.getSelectedElems(L);return!!O.some(function(J){return L.isVoid(J)})||!!O.some(function(J){return l.DomEditor.getNodeType(J)==="pre"})},T.prototype.getMenuConfig=function(L){return L.getMenuConfig("uploadAttachment")},T}(),M=function(){function T(){this.title=(0,l.t)("attachment.download"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M736 448l-256 256-256-256h160V64h192v384z m-256 256H0v256h960v-256H480z m416 128h-128v-64h128v64z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return T.prototype.getValue=function(L){var q=this.getSelectedElem(L);return q==null?"":q.link},T.prototype.isActive=function(L){return!1},T.prototype.exec=function(L,q){q&&typeof q=="string"&&window.open(q,"_blank")},T.prototype.isDisabled=function(L){var q=L.selection;return q==null||!!l.SlateRange.isExpanded(q)||this.getSelectedElem(L)==null},T.prototype.getSelectedElem=function(L){var q=l.DomEditor.getSelectedNodeByType(L,"attachment");return q==null?null:q},T}(),R={editorPlugin:function(T){var L=T.isInline,q=T.isVoid,O=T;return O.isInline=function(J){return l.DomEditor.getNodeType(J)==="attachment"||L(J)},O.isVoid=function(J){return l.DomEditor.getNodeType(J)==="attachment"||q(J)},O},renderElems:[h],elemsToHtml:[{type:"attachment",elemToHtml:function(T,L){var q=T,O=q.link,J=O===void 0?"":O,ue=q.fileName,he=ue===void 0?"":ue;return'<a data-w-e-type="attachment" data-w-e-is-void data-w-e-is-inline href="'.concat(J,'" download="').concat(he,'">').concat(he,"</a>")}}],parseElemsHtml:[{selector:'a[data-w-e-type="attachment"]',parseElemHtml:function(T,L,q){return{type:"attachment",link:T.getAttribute("href")||"",fileName:T.getAttribute("download")||"",children:[{text:""}]}}}],menus:[{key:"uploadAttachment",factory:function(){return new ae},config:{server:"",fieldName:"wangeditor-uploaded-attachment",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(T){return T},onProgress:function(T){},onSuccess:function(T,L){},onFailed:function(T,L){},onError:function(T,L,q){},onInsertedAttachment:function(T){}}},{key:"downloadAttachment",factory:function(){return new M}}]}})(),a})())})(yj);const C2e=Ube(yj.exports),S2e=e=>{const t=Object.assign({"./JwtCascaderArea/index.vue":zV,"./JwtEditor/index.vue":sbe,"./JwtForm/index.vue":pbe,"./JwtHeaderButton/index.vue":mbe,"./JwtIcon/index.vue":wbe,"./JwtIconSelect/index.vue":xbe,"./JwtImage/index.vue":kbe,"./JwtInput/index.vue":Tbe,"./JwtRateIcon/index.vue":Nbe,"./JwtSelectServer/index.vue":Vbe,"./JwtTable/index.vue":t2e,"./JwtTableButton/index.vue":a2e,"./JwtTableOnly/index.vue":h2e,"./JwtTags/index.vue":m2e,"./JwtUploadImage/index.vue":$2e});for(const n in t){const r=t[n];e.component(r.default.name,r.default||r)}};Pn.registerModule(C2e),Mo.setupJwt=S2e,Object.defineProperties(Mo,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
206
+ }`;var at=gV(function(){return _t(N,Pe+"return "+pe).apply(n,z)});if(at.source=pe,o8(at))throw at;return at}function uCe(s){return Tt(s).toLowerCase()}function cCe(s){return Tt(s).toUpperCase()}function fCe(s,c,v){if(s=Tt(s),s&&(v||c===n))return Sj(s);if(!s||!(c=ni(c)))return s;var C=no(s),_=no(c),N=xj(C,_),z=Dj(C,_)+1;return Kl(C,N,z).join("")}function dCe(s,c,v){if(s=Tt(s),s&&(v||c===n))return s.slice(0,_j(s)+1);if(!s||!(c=ni(c)))return s;var C=no(s),_=Dj(C,no(c))+1;return Kl(C,0,_).join("")}function pCe(s,c,v){if(s=Tt(s),s&&(v||c===n))return s.replace(mu,"");if(!s||!(c=ni(c)))return s;var C=no(s),_=xj(C,no(c));return Kl(C,_).join("")}function hCe(s,c){var v=ce,C=ee;if(hn(c)){var _="separator"in c?c.separator:_;v="length"in c?nt(c.length):v,C="omission"in c?ni(c.omission):C}s=Tt(s);var N=s.length;if(Wf(s)){var z=no(s);N=z.length}if(v>=N)return s;var W=v-qf(C);if(W<1)return C;var X=z?Kl(z,0,W).join(""):s.slice(0,W);if(_===n)return X+C;if(z&&(W+=X.length-W),a8(_)){if(s.slice(W).search(_)){var fe,de=X;for(_.global||(_=Ex(_.source,Tt(Hn.exec(_))+"g")),_.lastIndex=0;fe=_.exec(de);)var pe=fe.index;X=X.slice(0,pe===n?W:pe)}}else if(s.indexOf(ni(_),W)!=W){var De=X.lastIndexOf(_);De>-1&&(X=X.slice(0,De))}return X+C}function gCe(s){return s=Tt(s),s&&pu.test(s)?s.replace(Fl,H2e):s}var vCe=Qf(function(s,c,v){return s+(v?" ":"")+c.toUpperCase()}),u8=vz("toUpperCase");function hV(s,c,v){return s=Tt(s),c=v?n:c,c===n?M2e(s)?G2e(s):O2e(s):s.match(c)||[]}var gV=st(function(s,c){try{return Zn(s,n,c)}catch(v){return o8(v)?v:new Xe(v)}}),mCe=ya(function(s,c){return Ti(c,function(v){v=Ro(v),va(s,v,r8(s[v],s))}),s});function yCe(s){var c=s==null?0:s.length,v=Me();return s=c?ln(s,function(C){if(typeof C[1]!="function")throw new Fi(a);return[v(C[0]),C[1]]}):[],st(function(C){for(var _=-1;++_<c;){var N=s[_];if(Zn(N[0],this,C))return Zn(N[1],this,C)}})}function bCe(s){return Hwe(Ii(s,p))}function c8(s){return function(){return s}}function wCe(s,c){return s==null||s!==s?c:s}var $Ce=yz(),ECe=yz(!0);function Rr(s){return s}function f8(s){return Kj(typeof s=="function"?s:Ii(s,p))}function CCe(s){return Xj(Ii(s,p))}function SCe(s,c){return Jj(s,Ii(c,p))}var xCe=st(function(s,c){return function(v){return Zg(v,s,c)}}),DCe=st(function(s,c){return function(v){return Zg(s,v,c)}});function d8(s,c,v){var C=Qn(c),_=Jy(c,C);v==null&&!(hn(c)&&(_.length||!C.length))&&(v=c,c=s,s=this,_=Jy(c,Qn(c)));var N=!(hn(v)&&"chain"in v)||!!v.chain,z=wa(s);return Ti(_,function(W){var X=c[W];s[W]=X,z&&(s.prototype[W]=function(){var fe=this.__chain__;if(N||fe){var de=s(this.__wrapped__),pe=de.__actions__=Ir(this.__actions__);return pe.push({func:X,args:arguments,thisArg:s}),de.__chain__=fe,de}return X.apply(s,Vl([this.value()],arguments))})}),s}function ACe(){return ct._===this&&(ct._=Q2e),this}function p8(){}function _Ce(s){return s=nt(s),st(function(c){return Zj(c,s)})}var kCe=Hx(ln),OCe=Hx(bj),BCe=Hx(gx);function vV(s){return Jx(s)?vx(Ro(s)):l4e(s)}function TCe(s){return function(c){return s==null?n:Bu(s,c)}}var FCe=wz(),PCe=wz(!0);function h8(){return[]}function g8(){return!1}function ICe(){return{}}function NCe(){return""}function LCe(){return!0}function RCe(s,c){if(s=nt(s),s<1||s>Ne)return[];var v=ie,C=vr(s,ie);c=Me(c),s-=ie;for(var _=bx(C,c);++v<s;)c(v);return _}function MCe(s){return Je(s)?ln(s,Ro):ri(s)?[s]:Ir(Nz(Tt(s)))}function jCe(s){var c=++J2e;return Tt(s)+c}var zCe=rb(function(s,c){return s+c},0),VCe=Wx("ceil"),UCe=rb(function(s,c){return s/c},1),HCe=Wx("floor");function WCe(s){return s&&s.length?Xy(s,Rr,Ox):n}function qCe(s,c){return s&&s.length?Xy(s,Me(c,2),Ox):n}function GCe(s){return Ej(s,Rr)}function KCe(s,c){return Ej(s,Me(c,2))}function YCe(s){return s&&s.length?Xy(s,Rr,Px):n}function XCe(s,c){return s&&s.length?Xy(s,Me(c,2),Px):n}var JCe=rb(function(s,c){return s*c},1),ZCe=Wx("round"),QCe=rb(function(s,c){return s-c},0);function eSe(s){return s&&s.length?yx(s,Rr):0}function tSe(s,c){return s&&s.length?yx(s,Me(c,2)):0}return F.after=C3e,F.ary=Gz,F.assign=cEe,F.assignIn=lV,F.assignInWith=vb,F.assignWith=fEe,F.at=dEe,F.before=Kz,F.bind=r8,F.bindAll=mCe,F.bindKey=Yz,F.castArray=I3e,F.chain=Hz,F.chunk=H4e,F.compact=W4e,F.concat=q4e,F.cond=yCe,F.conforms=bCe,F.constant=c8,F.countBy=e3e,F.create=pEe,F.curry=Xz,F.curryRight=Jz,F.debounce=Zz,F.defaults=hEe,F.defaultsDeep=gEe,F.defer=S3e,F.delay=x3e,F.difference=G4e,F.differenceBy=K4e,F.differenceWith=Y4e,F.drop=X4e,F.dropRight=J4e,F.dropRightWhile=Z4e,F.dropWhile=Q4e,F.fill=e$e,F.filter=n3e,F.flatMap=o3e,F.flatMapDeep=a3e,F.flatMapDepth=l3e,F.flatten=jz,F.flattenDeep=t$e,F.flattenDepth=n$e,F.flip=D3e,F.flow=$Ce,F.flowRight=ECe,F.fromPairs=r$e,F.functions=EEe,F.functionsIn=CEe,F.groupBy=s3e,F.initial=o$e,F.intersection=a$e,F.intersectionBy=l$e,F.intersectionWith=s$e,F.invert=xEe,F.invertBy=DEe,F.invokeMap=c3e,F.iteratee=f8,F.keyBy=f3e,F.keys=Qn,F.keysIn=Lr,F.map=cb,F.mapKeys=_Ee,F.mapValues=kEe,F.matches=CCe,F.matchesProperty=SCe,F.memoize=db,F.merge=OEe,F.mergeWith=sV,F.method=xCe,F.methodOf=DCe,F.mixin=d8,F.negate=pb,F.nthArg=_Ce,F.omit=BEe,F.omitBy=TEe,F.once=A3e,F.orderBy=d3e,F.over=kCe,F.overArgs=_3e,F.overEvery=OCe,F.overSome=BCe,F.partial=i8,F.partialRight=Qz,F.partition=p3e,F.pick=FEe,F.pickBy=uV,F.property=vV,F.propertyOf=TCe,F.pull=d$e,F.pullAll=Vz,F.pullAllBy=p$e,F.pullAllWith=h$e,F.pullAt=g$e,F.range=FCe,F.rangeRight=PCe,F.rearg=k3e,F.reject=v3e,F.remove=v$e,F.rest=O3e,F.reverse=t8,F.sampleSize=y3e,F.set=IEe,F.setWith=NEe,F.shuffle=b3e,F.slice=m$e,F.sortBy=E3e,F.sortedUniq=S$e,F.sortedUniqBy=x$e,F.split=oCe,F.spread=B3e,F.tail=D$e,F.take=A$e,F.takeRight=_$e,F.takeRightWhile=k$e,F.takeWhile=O$e,F.tap=W$e,F.throttle=T3e,F.thru=ub,F.toArray=iV,F.toPairs=cV,F.toPairsIn=fV,F.toPath=MCe,F.toPlainObject=aV,F.transform=LEe,F.unary=F3e,F.union=B$e,F.unionBy=T$e,F.unionWith=F$e,F.uniq=P$e,F.uniqBy=I$e,F.uniqWith=N$e,F.unset=REe,F.unzip=n8,F.unzipWith=Uz,F.update=MEe,F.updateWith=jEe,F.values=nd,F.valuesIn=zEe,F.without=L$e,F.words=hV,F.wrap=P3e,F.xor=R$e,F.xorBy=M$e,F.xorWith=j$e,F.zip=z$e,F.zipObject=V$e,F.zipObjectDeep=U$e,F.zipWith=H$e,F.entries=cV,F.entriesIn=fV,F.extend=lV,F.extendWith=vb,d8(F,F),F.add=zCe,F.attempt=gV,F.camelCase=WEe,F.capitalize=dV,F.ceil=VCe,F.clamp=VEe,F.clone=N3e,F.cloneDeep=R3e,F.cloneDeepWith=M3e,F.cloneWith=L3e,F.conformsTo=j3e,F.deburr=pV,F.defaultTo=wCe,F.divide=UCe,F.endsWith=qEe,F.eq=io,F.escape=GEe,F.escapeRegExp=KEe,F.every=t3e,F.find=r3e,F.findIndex=Rz,F.findKey=vEe,F.findLast=i3e,F.findLastIndex=Mz,F.findLastKey=mEe,F.floor=HCe,F.forEach=Wz,F.forEachRight=qz,F.forIn=yEe,F.forInRight=bEe,F.forOwn=wEe,F.forOwnRight=$Ee,F.get=l8,F.gt=z3e,F.gte=V3e,F.has=SEe,F.hasIn=s8,F.head=zz,F.identity=Rr,F.includes=u3e,F.indexOf=i$e,F.inRange=UEe,F.invoke=AEe,F.isArguments=Pu,F.isArray=Je,F.isArrayBuffer=U3e,F.isArrayLike=Nr,F.isArrayLikeObject=Cn,F.isBoolean=H3e,F.isBuffer=Yl,F.isDate=W3e,F.isElement=q3e,F.isEmpty=G3e,F.isEqual=K3e,F.isEqualWith=Y3e,F.isError=o8,F.isFinite=X3e,F.isFunction=wa,F.isInteger=eV,F.isLength=hb,F.isMap=tV,F.isMatch=J3e,F.isMatchWith=Z3e,F.isNaN=Q3e,F.isNative=eEe,F.isNil=nEe,F.isNull=tEe,F.isNumber=nV,F.isObject=hn,F.isObjectLike=mn,F.isPlainObject=i0,F.isRegExp=a8,F.isSafeInteger=rEe,F.isSet=rV,F.isString=gb,F.isSymbol=ri,F.isTypedArray=td,F.isUndefined=iEe,F.isWeakMap=oEe,F.isWeakSet=aEe,F.join=u$e,F.kebabCase=YEe,F.last=Li,F.lastIndexOf=c$e,F.lowerCase=XEe,F.lowerFirst=JEe,F.lt=lEe,F.lte=sEe,F.max=WCe,F.maxBy=qCe,F.mean=GCe,F.meanBy=KCe,F.min=YCe,F.minBy=XCe,F.stubArray=h8,F.stubFalse=g8,F.stubObject=ICe,F.stubString=NCe,F.stubTrue=LCe,F.multiply=JCe,F.nth=f$e,F.noConflict=ACe,F.noop=p8,F.now=fb,F.pad=ZEe,F.padEnd=QEe,F.padStart=eCe,F.parseInt=tCe,F.random=HEe,F.reduce=h3e,F.reduceRight=g3e,F.repeat=nCe,F.replace=rCe,F.result=PEe,F.round=ZCe,F.runInContext=K,F.sample=m3e,F.size=w3e,F.snakeCase=iCe,F.some=$3e,F.sortedIndex=y$e,F.sortedIndexBy=b$e,F.sortedIndexOf=w$e,F.sortedLastIndex=$$e,F.sortedLastIndexBy=E$e,F.sortedLastIndexOf=C$e,F.startCase=aCe,F.startsWith=lCe,F.subtract=QCe,F.sum=eSe,F.sumBy=tSe,F.template=sCe,F.times=RCe,F.toFinite=$a,F.toInteger=nt,F.toLength=oV,F.toLower=uCe,F.toNumber=Ri,F.toSafeInteger=uEe,F.toString=Tt,F.toUpper=cCe,F.trim=fCe,F.trimEnd=dCe,F.trimStart=pCe,F.truncate=hCe,F.unescape=gCe,F.uniqueId=jCe,F.upperCase=vCe,F.upperFirst=u8,F.each=Wz,F.eachRight=qz,F.first=zz,d8(F,function(){var s={};return No(F,function(c,v){Nt.call(F.prototype,v)||(s[v]=c)}),s}(),{chain:!1}),F.VERSION=r,Ti(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){F[s].placeholder=F}),Ti(["drop","take"],function(s,c){yt.prototype[s]=function(v){v=v===n?1:qn(nt(v),0);var C=this.__filtered__&&!c?new yt(this):this.clone();return C.__filtered__?C.__takeCount__=vr(v,C.__takeCount__):C.__views__.push({size:vr(v,ie),type:s+(C.__dir__<0?"Right":"")}),C},yt.prototype[s+"Right"]=function(v){return this.reverse()[s](v).reverse()}}),Ti(["filter","map","takeWhile"],function(s,c){var v=c+1,C=v==xe||v==Oe;yt.prototype[s]=function(_){var N=this.clone();return N.__iteratees__.push({iteratee:Me(_,3),type:v}),N.__filtered__=N.__filtered__||C,N}}),Ti(["head","last"],function(s,c){var v="take"+(c?"Right":"");yt.prototype[s]=function(){return this[v](1).value()[0]}}),Ti(["initial","tail"],function(s,c){var v="drop"+(c?"":"Right");yt.prototype[s]=function(){return this.__filtered__?new yt(this):this[v](1)}}),yt.prototype.compact=function(){return this.filter(Rr)},yt.prototype.find=function(s){return this.filter(s).head()},yt.prototype.findLast=function(s){return this.reverse().find(s)},yt.prototype.invokeMap=st(function(s,c){return typeof s=="function"?new yt(this):this.map(function(v){return Zg(v,s,c)})}),yt.prototype.reject=function(s){return this.filter(pb(Me(s)))},yt.prototype.slice=function(s,c){s=nt(s);var v=this;return v.__filtered__&&(s>0||c<0)?new yt(v):(s<0?v=v.takeRight(-s):s&&(v=v.drop(s)),c!==n&&(c=nt(c),v=c<0?v.dropRight(-c):v.take(c-s)),v)},yt.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},yt.prototype.toArray=function(){return this.take(ie)},No(yt.prototype,function(s,c){var v=/^(?:filter|find|map|reject)|While$/.test(c),C=/^(?:head|last)$/.test(c),_=F[C?"take"+(c=="last"?"Right":""):c],N=C||/^find/.test(c);!_||(F.prototype[c]=function(){var z=this.__wrapped__,W=C?[1]:arguments,X=z instanceof yt,fe=W[0],de=X||Je(z),pe=function(ht){var Ct=_.apply(F,Vl([ht],W));return C&&De?Ct[0]:Ct};de&&v&&typeof fe=="function"&&fe.length!=1&&(X=de=!1);var De=this.__chain__,Pe=!!this.__actions__.length,ze=N&&!De,at=X&&!Pe;if(!N&&de){z=at?z:new yt(this);var Ve=s.apply(z,W);return Ve.__actions__.push({func:ub,args:[pe],thisArg:n}),new Pi(Ve,De)}return ze&&at?s.apply(this,W):(Ve=this.thru(pe),ze?C?Ve.value()[0]:Ve.value():Ve)})}),Ti(["pop","push","shift","sort","splice","unshift"],function(s){var c=Iy[s],v=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",C=/^(?:pop|shift)$/.test(s);F.prototype[s]=function(){var _=arguments;if(C&&!this.__chain__){var N=this.value();return c.apply(Je(N)?N:[],_)}return this[v](function(z){return c.apply(Je(z)?z:[],_)})}}),No(yt.prototype,function(s,c){var v=F[c];if(v){var C=v.name+"";Nt.call(Xf,C)||(Xf[C]=[]),Xf[C].push({name:c,func:v})}}),Xf[nb(n,$).name]=[{name:"wrapper",func:n}],yt.prototype.clone=gwe,yt.prototype.reverse=vwe,yt.prototype.value=mwe,F.prototype.at=q$e,F.prototype.chain=G$e,F.prototype.commit=K$e,F.prototype.next=Y$e,F.prototype.plant=J$e,F.prototype.reverse=Z$e,F.prototype.toJSON=F.prototype.valueOf=F.prototype.value=Q$e,F.prototype.first=F.prototype.head,Wg&&(F.prototype[Wg]=X$e),F},Gf=K2e();an?((an.exports=Gf)._=Gf,St._=Gf):ct._=Gf}).call(Eg)})(aa,aa.exports);const BSe="",TSe="",Wbe={"page-sizes":[10,20,30,40,50,100],"page-size":10,layout:"total, sizes, prev, pager, next, jumper"},qbe=b.defineComponent({name:"JwtTable",components:{},props:{config:{require:!0,type:Object,default:()=>{}},tableHeight:{type:[String,Number],default:null},request:{type:Function,require:!0,default:()=>{}},uploadUrl:{type:String,default:""},uploadRichTextUrl:{type:String,default:""},responseKey:{type:String,default:"relative_path"},fillUrl:{type:Function,default:null},userMenusAuth:{type:Object,default:()=>{}},route:{type:Object,default:()=>{}},router:{type:Object,default:()=>{}}},emits:["selection-change","list-change","header-action","table-action","add-handle","edit-handle","add-success","edit-success","delete-success","table-current-change","tablelist-change","get-detail-success"],setup(e,{emit:t}){const n=b.reactive({tableData:[],ajaxLoading:!1,submitLoading:!1}),{proxy:r}=b.getCurrentInstance();let i=b.reactive(aa.exports.merge({headerActions:{list:[]},headerActionsShow:!0,tableAttr:{stripe:!0,border:!0,fit:!0,highlightCurrentRow:!0},tableColumn:[],tableListApi:null,tableListParams:{},tableDeleteApi:null,tableDeleteParams:{},pagination:Wbe,showPagination:!0,editBox:{title:"\u7CFB\u7EDF",dialog:{width:"960px"},form:{api:{add:null,update:null},formAttrs:{},formList:[]},footer:{confirm:{title:"\u786E\u8BA4",attrs:{type:"primary"}},cancel:{title:"\u53D6\u6D88",attrs:{}}}}},e.config));const o=b.reactive({currentPage:1,pageCount:1,pageSize:i.pagination["page-sizes"][0],totalCount:1,sort:"id",order:"desc"}),a=b.reactive({title:"",type:"add",visible:!1,model:{},boxName:"editBox"}),l=b.ref([]),u=b.ref({}),f=b.ref(null),d=b.computed(()=>{const{path:ie}=e.route;return ie||""}),p=b.computed(()=>e.userMenusAuth||{}),g=(ie={})=>{const R=a.boxName,M={};return i[R].form.formList.forEach(T=>{var Q,Ce,ae;const{key:L,type:q,startKey:O,endKey:J,formAttrs:ue}=T,he=(ue==null?void 0:ue.multiple)||!1,te=(ue==null?void 0:ue.valueType)||"";ie[L]&&q==="inputNumber"?M[L]=+ie[L]:he?Wt.isArray(ie[L])||(te==="number"?M[L]=ie[L]?(Ce=(Q=ie[L])==null?void 0:Q.split(","))==null?void 0:Ce.map(ye=>+ye):[]:M[L]=ie[L]?(ae=ie[L])==null?void 0:ae.split(","):[]):q==="datePickerRange"?f.value.setDatePickerRange([ie[O],ie[J]]):M[L]=ie[L]===""||ie[L]===void 0?T.value:ie[L]}),M},h=()=>{const{query:ie}=e.route;if(ie.fromJump){for(let[M,T]of Object.entries(ie))Wt.isArray(T)&&(ie[M]=T.map(L=>+L));const R={...u.value,...e.route.query};delete R.fromJump,u.value=R}E()},E=(ie={})=>{const R=aa.exports.merge({page:o.currentPage,per_page:o.pageSize,sort:o.sort,order:o.order},i.tableListParams,u.value,ie);w(R)},w=ie=>{if(!i.tableListApi){i.tableData&&(n.tableData=i.tableData);return}n.ajaxLoading=!0,e.request({url:i.tableListApi,method:"get",params:ie}).then(R=>{n.tableData=R.data,o.pageCount=R.totalPage,o.totalCount=R.total,n.ajaxLoading=!1,t("tablelist-change")})},y=()=>{o.currentPage=1,o.pageSize=i.pagination["page-sizes"][0];const ie={currentPage:1,pageSize:i.pagination["page-sizes"][0]};E(ie)},$=()=>{o.currentPage=1,o.pageSize=i.pagination["page-sizes"][0],E(u.value)},m=ie=>{o.currentPage=ie,E({currentPage:ie})},S=ie=>{o.pageSize=ie,E({pageSize:ie})},D=(ie,R="")=>ie===null||ie===""||ie===void 0?"-":R?Xl.default(ie).format(R):ie,A=ie=>{l.value=ie,t("selection-change",ie)},B=({prop:ie,order:R})=>{o.sort=ie,o.order=R==="ascending"?"asc":"desc",E({sort:ie,order:R==="ascending"?"asc":"desc"})},P=ie=>{t("table-current-change",ie)},U=ie=>{var T;const{code:R}=ie,M=i.headerActions[R];switch(R){case"add":case"add1":case"add2":case"add3":case"add4":case"add5":case"add6":case"add7":case"add8":case"add9":M&&M.type==="editBox"?(xe("",M),t("add-handle",l.value)):M&&M.type==="editRoute"?M.jumpUrl&&((T=e==null?void 0:e.router)==null||T.push({path:M.jumpUrl,query:M.jumpParams})):t("add-handle",l.value);break;case"delete":case"delete1":case"delete2":case"delete3":case"delete4":case"delete5":case"delete6":case"delete7":case"delete8":case"delete9":case"deleteR":M&&M.event?t(M.event,l.value):Mr.ElMessageBox.confirm("\u6B64\u64CD\u4F5C\u5C06\u4F1A\u6C38\u4E45\u5220\u9664\u6570\u636E\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning",customClass:"elMessageBox-wrapper"}).then(()=>{const L=l.value.map(q=>q.id).join(",");Oe({id:L})}).catch(()=>{Mr.ElMessage.info("\u53D6\u6D88\u64CD\u4F5C\uFF01")});break;case"exportF":case"exportF1":case"exportF2":case"exportF3":case"exportF4":case"exportF5":case"exportF6":case"exportF7":case"exportF8":case"exportF9":Te();break;default:M&&M.type==="editBox"?xe("",M):t("header-action",ie,l.value)}},Y=(ie,R,M)=>{var L;const T=M.action[ie.code];switch(ie.code){case"edit":case"edit1":case"edit2":case"edit3":case"edit4":case"edit5":case"edit6":case"edit7":case"edit8":T&&T.type==="editBox"?(xe(R,T),t("edit-handle",R)):T&&T.type==="editRoute"?T.jumpUrl&&((L=e==null?void 0:e.router)==null||L.push({path:T.jumpUrl,query:R})):t("edit-handle",R);break;case"delete":case"delete1":case"delete2":case"delete3":case"delete4":case"delete5":case"delete6":case"delete7":case"delete8":case"delete9":case"deleteR":R&&R.event?t(R.event,l.value):Mr.ElMessageBox.confirm("\u6B64\u64CD\u4F5C\u5C06\u4F1A\u6C38\u4E45\u5220\u9664\u6570\u636E\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{Oe({id:R.id})}).catch(()=>{Mr.ElMessage.info("\u53D6\u6D88\u64CD\u4F5C\uFF01")});break;default:T&&T.type==="editRoute"?e.router.push({path:T.jumpUrl,query:R}):T&&T.type==="editBox"?xe(R,T):t("table-action",ie,R)}},ce=async ie=>{if(ie==="confirm"){if(n.submitLoading=!0,!await f.value.formValidate()){n.submitLoading=!1;return}f.value.formSubmit()}ie==="cancel"&&(a.visible=!1)},ee=ie=>{a.visible=!1,n.submitLoading=!1,t("list-change"),t("add-success",ie),$()},ge=ie=>{a.visible=!1,n.submitLoading=!1,t("list-change"),t("edit-success",ie),$()},se=()=>{n.submitLoading=!1},xe=(ie,R)=>{if(!e.config.editBox)return;const{editBoxName:M}=R,T=M||"editBox";a.boxName=T,a.visible=!0,a.model={},b.nextTick(()=>{var L,q,O;ie?(O=(q=(L=i==null?void 0:i[T])==null?void 0:L.form)==null?void 0:q.api)!=null&&O.detail?ve(ie,T):(a.model=g(ie),a.model.id=ie.id,a.title=i[T].customTitle?i[T].title:"\u7F16\u8F91"+i.editBox.title,a.type="edit"):(a.model={},i.editBox.form.formList.forEach(J=>{J.value!==void 0&&(a.model[J.key]=J.value)}),a.title=i[T].customTitle?i.editBox.title:"\u65B0\u5EFA"+i.editBox.title,a.type="add")})},ve=(ie,R)=>{const M={id:ie.id};e.request({url:i[R].form.api.detail,method:"get",params:M}).then(T=>{a.model=g(T),a.model.id=T.id,a.title=i[R].customTitle?i[R].title:"\u7F16\u8F91"+i.editBox.title,a.type="edit",t("get-detail-success",T)})},Oe=ie=>{e.request({url:i.tableDeleteApi,method:"post",data:ie}).then(()=>{t("delete-success"),$()})},Te=()=>{if(!i.tableExportApi){Mr.ElMessage.info("\u8BF7\u914D\u7F6E\u5BFC\u51FA\u63A5\u53E3\uFF01");return}if(!n.tableData.length){Mr.ElMessage.info("\u6682\u65E0\u6570\u636E\u53EF\u5BFC\u51FA\uFF01");return}const ie=r.$baseColorfullLoading(0,"\u6B63\u5728\u4E0B\u8F7D\u4E2D\u3002\u3002\u3002"),R=aa.exports.merge({page:o.currentPage,per_page:o.pageSize,sort:o.sort,order:o.order},i.tableListParams,u.value);e.request({url:i.tableExportApi,method:"get",resType:"blob",responseType:"blob",timeout:120*1e3,params:R}).then(M=>{let T=window.URL.createObjectURL(new Blob([M])),L=document.createElement("a");L.style.display="none",L.href=T,L.setAttribute("download",`${i.tableExportName||"\u6587\u4EF6"}-${Xl.default().format("YYYY-MM-DD")}.xlsx`),document.body.appendChild(L),L.click(),ie.close()})},Ne=(ie,R,M=!0)=>{ie[`isEdit${R.prop}`]=M},Re=(ie,R)=>{const{id:M}=ie,{prop:T}=R;if(!!M){var L={id:M};if(L[T]=ie[T],!i.tableUpdateApi)return Mr.ElMessage.info("\u8BF7\u914D\u7F6E\u7F16\u8F91\u63A5\u53E3\uFF01tableUpdateApi");e.request({url:i.tableUpdateApi,method:"post",data:L}).then(()=>{ie[`isEdit${T}`]=!1})}},Ae=ie=>e.fillUrl&&Wt.isFunction(e.fillUrl)?e.fillUrl(ie):ie;return b.watch(e,ie=>{i=aa.exports.merge(i,ie.config),ie.config.tableData&&(n.tableData=ie.config.tableData||[])}),b.onBeforeMount(()=>{h()}),{...b.toRefs(n),currentPagePath:d,appConfig:i,pagination:o,editBoxInfo:a,selectionRow:l,tableSearchModel:u,editBoxRef:f,dayjs:Xl.default,userMenusAuthObj:p,onSearchSubmit:$,onSearchReset:y,handleEdit:xe,handleCurrentChange:m,handleSizeChange:S,handleSelectionChange:A,handleTableCurrentChange:P,handleSortChange:B,handleHeaderAction:U,handleTableAction:Y,handleGetDetail:ve,handleBox:ce,filterVal:D,initSearch:h,handleAddSuccess:ee,handleEditSuccess:ge,handleEditRow:Ne,handleEditRowProp:Re,handleFillUrl:Ae,handleError:se}}}),Gbe={class:"app-table-wrapper"},Kbe={class:"table-header-wrapper fx"},Ybe={class:"fx pr10"},Xbe=["onDblclick"],Jbe={class:"image-slot wh fxmc"},Zbe={class:"fxr"},Qbe={class:"dialog-footer"};function e2e(e,t,n,r,i,o){var A,B,P,U,Y,ce;const a=b.resolveComponent("jwt-form"),l=b.resolveComponent("jwt-header-button"),u=b.resolveComponent("jwt-table-button"),f=b.resolveComponent("el-input"),d=b.resolveComponent("el-input-number"),p=b.resolveComponent("jwt-upload-image"),g=b.resolveComponent("el-switch"),h=b.resolveComponent("jwt-icon"),E=b.resolveComponent("el-image"),w=b.resolveComponent("el-table-column"),y=b.resolveComponent("el-table"),$=b.resolveComponent("el-pagination"),m=b.resolveComponent("el-button"),S=b.resolveComponent("el-dialog"),D=b.resolveDirective("loading");return b.openBlock(),b.createElementBlock(b.Fragment,null,[b.createElementVNode("div",Gbe,[b.renderSlot(e.$slots,"search-before",{},void 0,!0),b.createElementVNode("div",Kbe,[(P=(B=(A=e.appConfig)==null?void 0:A.tableSearch)==null?void 0:B.formList)!=null&&P.length?(b.openBlock(),b.createBlock(a,{key:0,modelValue:e.tableSearchModel,"onUpdate:modelValue":t[0]||(t[0]=ee=>e.tableSearchModel=ee),class:"app-table-search",config:e.appConfig.tableSearch,"fill-url":e.fillUrl,request:e.request,"response-key":e.responseKey,"upload-img-url":e.uploadUrl,"upload-rich-text-url":e.uploadRichTextUrl,onReset:e.onSearchReset,onSubmit:e.onSearchSubmit},null,8,["modelValue","config","fill-url","request","response-key","upload-img-url","upload-rich-text-url","onReset","onSubmit"])):b.createCommentVNode("",!0)]),b.createElementVNode("div",Ybe,[b.renderSlot(e.$slots,"header-button-before",{},void 0,!0),e.appConfig.headerActionsShow?(b.openBlock(),b.createBlock(l,{key:0,"action-list":(Y=(U=e.appConfig)==null?void 0:U.headerActions)==null?void 0:Y.list,"current-path":e.currentPagePath,loading:e.ajaxLoading,"menus-obj":e.userMenusAuth,"selection-row":e.selectionRow,onHeaderAction:e.handleHeaderAction},null,8,["action-list","current-path","loading","menus-obj","selection-row","onHeaderAction"])):b.createCommentVNode("",!0),b.renderSlot(e.$slots,"header-button-after",{},void 0,!0)]),b.renderSlot(e.$slots,"table-before",{},void 0,!0),b.withDirectives((b.openBlock(),b.createBlock(y,b.mergeProps(e.appConfig.tableAttr,{ref:"tableRef",class:"mt15",data:e.tableData,"element-loading-spinner":"el-icon-loading","element-loading-text":"\u52A0\u8F7D\u6570\u636E\u4E2D...",height:e.tableHeight,onCurrentChange:e.handleTableCurrentChange,onSelectionChange:e.handleSelectionChange,onSortChange:e.handleSortChange}),{default:b.withCtx(()=>[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(e.appConfig.tableColumn,(ee,ge)=>(b.openBlock(),b.createBlock(w,{key:ge,align:ee.align||"center",fixed:ee.fixed,label:ee.label,"min-width":ee.minWidth?ee.minWidth:null,prop:ee.prop,sortable:ee.sortable,type:ee.type,width:ee.width?ee.width:null},b.createSlots({_:2},[ee.type?void 0:{name:"default",fn:b.withCtx(({row:se,$index:xe})=>[ee.action?(b.openBlock(),b.createElementBlock(b.Fragment,{key:0},[b.renderSlot(e.$slots,"action-before",{scope:se},void 0,!0),b.createVNode(u,{config:ee,"current-path":e.currentPagePath,"menus-obj":e.userMenusAuthObj,row:se,"show-button-num":e.appConfig.tableButtonNum,onTableAction:ve=>e.handleTableAction(ve,se,ee)},null,8,["config","current-path","menus-obj","row","show-button-num","onTableAction"]),b.renderSlot(e.$slots,"action-after",{scope:se},void 0,!0)],64)):ee.dateTimeFormat?(b.openBlock(),b.createElementBlock(b.Fragment,{key:1},[b.createTextVNode(b.toDisplayString(e.filterVal(se[ee.prop],ee.dateTimeFormat)),1)],64)):ee.editType?(b.openBlock(),b.createElementBlock(b.Fragment,{key:2},[ee.editType==="input"?(b.openBlock(),b.createBlock(f,{key:0,modelValue:se[ee.prop],"onUpdate:modelValue":ve=>se[ee.prop]=ve,type:"text",onKeydown:b.withKeys(ve=>e.handleEditRowProp(se,ee),["enter"])},null,8,["modelValue","onUpdate:modelValue","onKeydown"])):ee.editType==="inputNumber"?(b.openBlock(),b.createBlock(d,{key:1,modelValue:se[ee.prop],"onUpdate:modelValue":ve=>se[ee.prop]=ve,"controls-position":"right",min:0,onBlur:ve=>e.handleEditRowProp(se,ee)},null,8,["modelValue","onUpdate:modelValue","onBlur"])):ee.editType==="uploadImg"?(b.openBlock(),b.createBlock(p,{key:2,modelValue:se[ee.prop],"onUpdate:modelValue":ve=>se[ee.prop]=ve,"fill-url":e.fillUrl,"upload-url":e.uploadUrl,onOnChange:ve=>e.handleEditRowProp(se,ee)},null,8,["modelValue","onUpdate:modelValue","fill-url","upload-url","onOnChange"])):ee.editType==="switch"?(b.openBlock(),b.createBlock(g,{key:3,modelValue:se[ee.prop],"onUpdate:modelValue":ve=>se[ee.prop]=ve,"active-value":1,"inactive-value":0,onChange:ve=>e.handleEditRowProp(se,ee)},null,8,["modelValue","onUpdate:modelValue","onChange"])):b.createCommentVNode("",!0)],64)):ee.editInput?(b.openBlock(),b.createElementBlock(b.Fragment,{key:3},[b.withDirectives(b.createElementVNode("div",{onDblclick:ve=>e.handleEditRow(se,ee)},b.toDisplayString(e.filterVal(se[ee.prop])),41,Xbe),[[b.vShow,!se[`isEdit${ee.prop}`]]]),b.withDirectives(b.createVNode(f,{modelValue:se[ee.prop],"onUpdate:modelValue":ve=>se[ee.prop]=ve,type:"text",onBlur:ve=>e.handleEditRowProp(se,ee),onKeyup:b.withKeys(ve=>e.handleEditRowProp(se,ee),["enter"])},null,8,["modelValue","onUpdate:modelValue","onBlur","onKeyup"]),[[b.vShow,se[`isEdit${ee.prop}`]]])],64)):ee.isImg?(b.openBlock(),b.createBlock(E,{key:4,"preview-src-list":[e.handleFillUrl(se[ee.prop])],"preview-teleported":"",size:80,src:e.handleFillUrl(se[ee.prop]),teleported:""},{error:b.withCtx(()=>[b.createElementVNode("div",Jbe,[b.createVNode(h,{class:"g9",icon:"image-line",style:{"font-size":"40px"}})])]),_:2},1032,["preview-src-list","src"])):b.renderSlot(e.$slots,ee.prop,{key:5,index:xe,scope:se},()=>[b.createTextVNode(b.toDisplayString(e.filterVal(se[ee.prop])),1)],!0)]),key:"0"}]),1032,["align","fixed","label","min-width","prop","sortable","type","width"]))),128))]),_:3},16,["data","height","onCurrentChange","onSelectionChange","onSortChange"])),[[D,e.ajaxLoading]]),b.createElementVNode("div",Zbe,[e.appConfig.showPagination?(b.openBlock(),b.createBlock($,b.mergeProps({key:0},e.appConfig.pagination,{class:"app-pagination","current-page":e.pagination.currentPage,disabled:e.ajaxLoading,"page-count":e.pagination.pageCount,"page-size":e.pagination.pageSize,total:e.pagination.totalCount,onCurrentChange:e.handleCurrentChange,onSizeChange:e.handleSizeChange}),null,16,["current-page","disabled","page-count","page-size","total","onCurrentChange","onSizeChange"])):b.createCommentVNode("",!0)])]),b.createVNode(S,b.mergeProps({modelValue:e.editBoxInfo.visible,"onUpdate:modelValue":t[2]||(t[2]=ee=>e.editBoxInfo.visible=ee)},e.appConfig[e.editBoxInfo.boxName].dialog,{"append-to-body":"",center:"","custom-class":"jwt-dialog-wrapper","destroy-on-close":"",title:e.editBoxInfo.title}),b.createSlots({default:b.withCtx(()=>[e.editBoxInfo.visible?(b.openBlock(),b.createBlock(a,{key:0,ref:"editBoxRef",modelValue:e.editBoxInfo.model,"onUpdate:modelValue":t[1]||(t[1]=ee=>e.editBoxInfo.model=ee),config:e.appConfig[e.editBoxInfo.boxName].form,"fill-url":e.fillUrl,request:e.request,"response-key":e.responseKey,"upload-img-url":e.uploadUrl,"upload-rich-text-url":e.uploadRichTextUrl,onAddSuccess:e.handleAddSuccess,onEditSuccess:e.handleEditSuccess,onError:e.handleError},b.createSlots({_:2},[b.renderList(e.appConfig[e.editBoxInfo.boxName].form.formList,ee=>({name:ee.name,fn:b.withCtx(()=>[b.renderSlot(e.$slots,ee.name,{model:e.editBoxInfo.model},void 0,!0)])}))]),1032,["modelValue","config","fill-url","request","response-key","upload-img-url","upload-rich-text-url","onAddSuccess","onEditSuccess","onError"])):b.createCommentVNode("",!0)]),_:2},[(ce=e.appConfig[e.editBoxInfo.boxName])!=null&&ce.footer?{name:"footer",fn:b.withCtx(()=>[b.createElementVNode("div",Qbe,[b.renderSlot(e.$slots,"dialog-footer-before",{model:e.editBoxInfo.model},void 0,!0),(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(e.appConfig[e.editBoxInfo.boxName].footer,(ee,ge)=>(b.openBlock(),b.createBlock(m,b.mergeProps(ee.attrs,{key:ge,loading:e.submitLoading,onClick:se=>e.handleBox(ee.action)}),{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(ee.title),1)]),_:2},1040,["loading","onClick"]))),128)),b.renderSlot(e.$slots,"dialog-footer-after",{model:e.editBoxInfo.model},void 0,!0)])]),key:"0"}:void 0]),1040,["modelValue","title"])],64)}const t2e=Object.freeze(Object.defineProperty({__proto__:null,default:yr(qbe,[["render",e2e],["__scopeId","data-v-2894f54e"]])},Symbol.toStringTag,{value:"Module"})),n2e=b.defineComponent({name:"JwtTableButton",props:{currentPath:{type:String,default:"/"},menusObj:{type:Object,default:()=>{}},config:{type:Object,default:()=>{}},row:{type:Object,default:()=>{}},operationName:{type:String,default:"operations"},showButtonNum:{type:Number,default:2}},emits:["table-action"],setup(e,{emit:t}){const{currentPath:n,menusObj:r,operationName:i}=e,o=b.computed(()=>{var u;return((u=e.config)==null?void 0:u.action)||{}});return{tableButtonActions:b.computed(()=>{var d,p,g;const u=r[n],f=((p=(d=e==null?void 0:e.config)==null?void 0:d.action)==null?void 0:p.list)||[];return(g=u==null?void 0:u[i])!=null&&g.length?u[i].filter(h=>{var w,y,$,m;let E=h.show_table;if(f!=null&&f.length){const{code:S}=h;E=E&&f.includes(S)}return((y=(w=o==null?void 0:o.value)==null?void 0:w[h.code])==null?void 0:y.condition)&&Wt.isFunction(o.value[h.code].condition)&&(E=E&&o.value[h.code].condition(e.row)),((m=($=o==null?void 0:o.value)==null?void 0:$[h.code])==null?void 0:m.disabledFun)&&Wt.isFunction(o.value[h.code].disabledFun)&&(h.disabled=o.value[h.code].disabledFun(e.row)),E}):[]}),handleTableAction:u=>{t("table-action",u)}}}}),r2e={class:"table-actions"},i2e={class:"fx fxwp"};function o2e(e,t,n,r,i,o){const a=b.resolveComponent("el-button"),l=b.resolveComponent("vab-icon"),u=b.resolveComponent("el-popover");return b.openBlock(),b.createElementBlock("div",r2e,[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(e.tableButtonActions,(f,d)=>(b.openBlock(),b.createElementBlock(b.Fragment,{key:d},[e.showButtonNum&&d<e.showButtonNum?(b.openBlock(),b.createBlock(a,{key:0,class:b.normalizeClass([f.code.includes("delete")?"cd":""]),disabled:f.disabled,link:"",size:"small",type:"primary",onClick:p=>e.handleTableAction(f)},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(f.show_title||f.title),1)]),_:2},1032,["class","disabled","onClick"])):b.createCommentVNode("",!0)],64))),128)),e.showButtonNum&&e.tableButtonActions.length>e.showButtonNum?(b.openBlock(),b.createBlock(u,{key:0,placement:"bottom",trigger:"hover",width:150},{reference:b.withCtx(()=>[b.createVNode(l,{class:"ml5",icon:"more-fill"})]),default:b.withCtx(()=>[b.createElementVNode("div",i2e,[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(e.tableButtonActions,(f,d)=>(b.openBlock(),b.createElementBlock("div",{key:d},[b.createVNode(a,{class:b.normalizeClass([f.code.includes("delete")?"cd":""]),disabled:f.disabled,link:"",size:"small",type:"primary",onClick:p=>e.handleTableAction(f)},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(f.show_title||f.title),1)]),_:2},1032,["class","disabled","onClick"])]))),128))])]),_:1})):b.createCommentVNode("",!0)])}const a2e=Object.freeze(Object.defineProperty({__proto__:null,default:yr(n2e,[["render",o2e]])},Symbol.toStringTag,{value:"Module"})),ISe="",l2e={"page-sizes":[10,20,30,40,50,100],"page-size":10,layout:"total, sizes, prev, pager, next, jumper"},s2e=b.defineComponent({name:"JwtTableOnly",components:{},props:{config:{require:!0,type:Object,default:()=>{}},tableHeight:{type:[String,Number],default:null},request:{type:Function,require:!0,default:()=>{}},uploadUrl:{type:String,default:""},fillUrl:{type:Function,default:null},userMenusAuth:{type:Object,default:()=>{}}},emits:["selection-change","list-change","header-action","table-action","add-handle","edit-handle","add-success","edit-success","delete-success","table-current-change","tablelist-change","get-detail-success"],setup(e,{emit:t}){const n=b.reactive({tableData:[],ajaxLoading:!1,submitLoading:!1});let r=b.reactive(aa.exports.merge({tableAttr:{stripe:!0,border:!0,fit:!0,highlightCurrentRow:!0},tableColumn:[],tableListApi:null,tableListParams:{},tableDeleteApi:null,tableDeleteParams:{},pagination:l2e,showPagination:!0},e.config));const i=b.reactive({currentPage:1,pageCount:1,pageSize:r.pagination["page-sizes"][0],totalCount:1,sort:"id",order:"desc"}),o=b.ref([]),a=b.ref({}),l=b.ref(null),u=b.computed(()=>e.userMenusAuth||{}),f=()=>{d()},d=()=>{const P=aa.exports.merge({page:i.currentPage,per_page:i.pageSize,sort:i.sort,order:i.order},r.tableListParams,a.value);p(P)},p=P=>{if(!r.tableListApi){r.tableData&&(n.tableData=r.tableData);return}n.ajaxLoading=!0,e.request({url:r.tableListApi,method:"get",params:P}).then(U=>{n.tableData=U.data,i.pageCount=U.totalPage,i.totalCount=U.total,n.ajaxLoading=!1,t("tablelist-change")})},g=()=>{i.currentPage=1,i.pageSize=r.pagination["page-sizes"][0],d()},h=()=>{i.currentPage=1,i.pageSize=r.pagination["page-sizes"][0],d(a.value)},E=P=>{i.currentPage=P,d()},w=P=>{i.pageSize=P,d()},y=(P,U="")=>P===null||P===""||P===void 0?"-":U?Xl.default(P).format(U):P,$=P=>{o.value=P,t("selection-change",P)},m=({prop:P,order:U})=>{i.sort=P,i.order=U==="ascending"?"asc":"desc",d()},S=P=>{t("table-current-change",P)},D=(P,U,Y=!0)=>{P[`isEdit${U.prop}`]=Y},A=(P,U)=>{const{id:Y}=P,{prop:ce}=U;if(!!Y){var ee={id:Y};if(ee[ce]=P[ce],!r.tableUpdateApi)return Mr.ElMessage.info("\u8BF7\u914D\u7F6E\u7F16\u8F91\u63A5\u53E3\uFF01tableUpdateApi");e.request({url:r.tableUpdateApi,method:"post",data:ee}).then(()=>{P[`isEdit${ce}`]=!1})}},B=P=>e.fillUrl&&Wt.isFunction(e.fillUrl)?e.fillUrl(P):P;return b.watch(e,P=>{r=aa.exports.merge(r,P.config),P.config.tableData&&(n.tableData=P.config.tableData||[])}),b.onBeforeMount(()=>{f()}),{...b.toRefs(n),appConfig:r,pagination:i,selectionRow:o,tableSearchModel:a,editBoxRef:l,dayjs:Xl.default,userMenusAuthObj:u,onSearchSubmit:h,onSearchReset:g,handleCurrentChange:E,handleSizeChange:w,handleSelectionChange:$,handleTableCurrentChange:S,handleSortChange:m,filterVal:y,initSearch:f,handleEditRow:D,handleEditRowProp:A,handleFillUrl:B}}}),u2e={class:"app-table-wrapper"},c2e=["onDblclick"],f2e={class:"image-slot wh fxmc"},d2e={class:"fxr"};function p2e(e,t,n,r,i,o){const a=b.resolveComponent("el-input"),l=b.resolveComponent("el-input-number"),u=b.resolveComponent("jwt-upload-image"),f=b.resolveComponent("el-switch"),d=b.resolveComponent("jwt-icon"),p=b.resolveComponent("el-image"),g=b.resolveComponent("el-table-column"),h=b.resolveComponent("el-table"),E=b.resolveComponent("el-pagination"),w=b.resolveDirective("loading");return b.openBlock(),b.createElementBlock("div",u2e,[b.renderSlot(e.$slots,"table-before",{},void 0,!0),b.withDirectives((b.openBlock(),b.createBlock(h,b.mergeProps(e.appConfig.tableAttr,{ref:"tableRef",class:"mt15",data:e.tableData,"element-loading-spinner":"el-icon-loading","element-loading-text":"\u52A0\u8F7D\u6570\u636E\u4E2D...",height:e.tableHeight,onCurrentChange:e.handleTableCurrentChange,onSelectionChange:e.handleSelectionChange,onSortChange:e.handleSortChange}),{default:b.withCtx(()=>[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(e.appConfig.tableColumn,(y,$)=>(b.openBlock(),b.createBlock(g,{key:$,align:y.align||"center",fixed:y.fixed,label:y.label,"min-width":y.minWidth?y.minWidth:null,prop:y.prop,sortable:y.sortable,type:y.type,width:y.width?y.width:null},b.createSlots({_:2},[y.type?void 0:{name:"default",fn:b.withCtx(({row:m,$index:S})=>[y.dateTimeFormat?(b.openBlock(),b.createElementBlock(b.Fragment,{key:0},[b.createTextVNode(b.toDisplayString(e.filterVal(m[y.prop],y.dateTimeFormat)),1)],64)):y.editType?(b.openBlock(),b.createElementBlock(b.Fragment,{key:1},[y.editType==="input"?(b.openBlock(),b.createBlock(a,{key:0,modelValue:m[y.prop],"onUpdate:modelValue":D=>m[y.prop]=D,type:"text",onKeydown:b.withKeys(D=>e.handleEditRowProp(m,y),["enter"])},null,8,["modelValue","onUpdate:modelValue","onKeydown"])):y.editType==="inputNumber"?(b.openBlock(),b.createBlock(l,{key:1,modelValue:m[y.prop],"onUpdate:modelValue":D=>m[y.prop]=D,"controls-position":"right",min:0,onBlur:D=>e.handleEditRowProp(m,y)},null,8,["modelValue","onUpdate:modelValue","onBlur"])):y.editType==="uploadImg"?(b.openBlock(),b.createBlock(u,{key:2,modelValue:m[y.prop],"onUpdate:modelValue":D=>m[y.prop]=D,"fill-url":e.fillUrl,"upload-url":e.uploadUrl,onOnChange:D=>e.handleEditRowProp(m,y)},null,8,["modelValue","onUpdate:modelValue","fill-url","upload-url","onOnChange"])):y.editType==="switch"?(b.openBlock(),b.createBlock(f,{key:3,modelValue:m[y.prop],"onUpdate:modelValue":D=>m[y.prop]=D,"active-value":1,"inactive-value":0,onChange:D=>e.handleEditRowProp(m,y)},null,8,["modelValue","onUpdate:modelValue","onChange"])):b.createCommentVNode("",!0)],64)):y.editInput?(b.openBlock(),b.createElementBlock(b.Fragment,{key:2},[b.withDirectives(b.createElementVNode("div",{onDblclick:D=>e.handleEditRow(m,y)},b.toDisplayString(e.filterVal(m[y.prop])),41,c2e),[[b.vShow,!m[`isEdit${y.prop}`]]]),b.withDirectives(b.createVNode(a,{modelValue:m[y.prop],"onUpdate:modelValue":D=>m[y.prop]=D,type:"text",onBlur:D=>e.handleEditRowProp(m,y),onKeyup:b.withKeys(D=>e.handleEditRowProp(m,y),["enter"])},null,8,["modelValue","onUpdate:modelValue","onBlur","onKeyup"]),[[b.vShow,m[`isEdit${y.prop}`]]])],64)):y.isImg?(b.openBlock(),b.createBlock(p,{key:3,"preview-src-list":[e.handleFillUrl(m[y.prop])],"preview-teleported":"",size:80,src:e.handleFillUrl(m[y.prop]),teleported:""},{error:b.withCtx(()=>[b.createElementVNode("div",f2e,[b.createVNode(d,{class:"g9",icon:"image-line",style:{"font-size":"40px"}})])]),_:2},1032,["preview-src-list","src"])):b.renderSlot(e.$slots,y.prop,{key:4,index:S,scope:m},()=>[b.createTextVNode(b.toDisplayString(e.filterVal(m[y.prop])),1)],!0)]),key:"0"}]),1032,["align","fixed","label","min-width","prop","sortable","type","width"]))),128))]),_:3},16,["data","height","onCurrentChange","onSelectionChange","onSortChange"])),[[w,e.ajaxLoading]]),b.createElementVNode("div",d2e,[e.appConfig.showPagination?(b.openBlock(),b.createBlock(E,b.mergeProps({key:0},e.appConfig.pagination,{class:"app-pagination","current-page":e.pagination.currentPage,disabled:e.ajaxLoading,"page-count":e.pagination.pageCount,"page-size":e.pagination.pageSize,total:e.pagination.totalCount,onCurrentChange:e.handleCurrentChange,onSizeChange:e.handleSizeChange}),null,16,["current-page","disabled","page-count","page-size","total","onCurrentChange","onSizeChange"])):b.createCommentVNode("",!0)])])}const h2e=Object.freeze(Object.defineProperty({__proto__:null,default:yr(s2e,[["render",p2e],["__scopeId","data-v-8542559f"]])},Symbol.toStringTag,{value:"Module"})),LSe="",g2e=b.defineComponent({name:"JwtTags",props:{modelValue:{type:[String,Array],default:""},btnTitle:{type:String,default:"\u6DFB\u52A0"}},emits:["update:modelValue"],setup(e,{emit:t}){const n=b.ref(null),r=b.reactive({tagList:[],inputVisible:!1,inputValue:"",initOnce:!1}),i=()=>{var d;if(r.initOnce)return;let f=[];return e.modelValue&&Wt.isString(e.modelValue)&&(f=(d=e==null?void 0:e.modelValue)==null?void 0:d.split(",")),r.initOnce=!0,f};b.watch(()=>e.modelValue,f=>{r.initOnce||(f?r.tagList=i():r.tagList=[])},{immediate:!0});const o=()=>{r.inputVisible=!0,b.nextTick(()=>{var f,d;(d=(f=n.value)==null?void 0:f.input)==null||d.focus()})},a=f=>{r.tagList.splice(r.tagList.indexOf(f),1),l()},l=()=>{const f=r.tagList.join(",");t("update:modelValue",f)},u=()=>{r.inputValue&&r.tagList.push(r.inputValue),r.inputVisible=!1,r.inputValue="",l()};return b.onUpdated(()=>{}),b.onBeforeMount(()=>{r.initOnce=!1}),{...b.toRefs(r),inputRef:n,showInput:o,handleClose:a,handleInputConfirm:u}}});function v2e(e,t,n,r,i,o){const a=b.resolveComponent("el-tag"),l=b.resolveComponent("el-input"),u=b.resolveComponent("el-button");return b.openBlock(),b.createElementBlock(b.Fragment,null,[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(e.tagList,f=>(b.openBlock(),b.createBlock(a,{key:f,class:"mx-1",closable:"","disable-transitions":!1,onClose:d=>e.handleClose(f)},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(f),1)]),_:2},1032,["onClose"]))),128)),e.inputVisible?(b.openBlock(),b.createBlock(l,{key:0,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[0]||(t[0]=f=>e.inputValue=f),class:"w120",size:"small",onBlur:e.handleInputConfirm,onKeyup:b.withKeys(e.handleInputConfirm,["enter"])},null,8,["modelValue","onBlur","onKeyup"])):(b.openBlock(),b.createBlock(u,{key:1,class:"button-new-tag",size:"small",onClick:e.showInput},{default:b.withCtx(()=>[b.createTextVNode(" + "+b.toDisplayString(e.btnTitle),1)]),_:1},8,["onClick"]))],64)}const m2e=Object.freeze(Object.defineProperty({__proto__:null,default:yr(g2e,[["render",v2e],["__scopeId","data-v-8d0666c2"]])},Symbol.toStringTag,{value:"Module"})),MSe="",y2e=b.defineComponent({name:"JwtUploadImage",props:{uploadUrl:{type:String,default:""},modelValue:{type:[String,Array],default:null},limitSize:{type:[String,Number],default:2048},disabled:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},listType:{type:String,default:"picture-card"},limit:{type:[String,Number],default:10},fillUrl:{type:Function,default:null},uploadParam:{type:Object,default:()=>{}},responseKey:{type:String,default:"relative_path"}},emits:["update:modelValue","onChange"],setup(e,{emit:t}){const n=b.reactive({fileList:[],dialogVisible:!1,dialogImageUrl:"",initOnce:!1,onUploadProgress:!1}),r=h=>e.fillUrl&&Wt.isFunction(e.fillUrl)?e.fillUrl(h):h,i=b.computed(()=>{var h;return e.multiple?!1:!!((h=e==null?void 0:e.modelValue)!=null&&h.length)||n.onUploadProgress}),o=()=>{if(n.initOnce)return;let h=[];if(e.multiple)if(Wt.hasArray(e.modelValue))e.modelValue.map(E=>{E&&h.push({url:r(E),org_url:E,name:r(E)})});else if(Wt.isString(e.modelValue))e.modelValue.split(",").map(E=>{E&&h.push({url:r(E),org_url:E,name:r(E)})});else return n.initOnce=!1,[];else h=e.modelValue?[{url:r(e.modelValue),org_url:e.modelValue,name:r(e.modelValue)}]:[];return n.initOnce=!0,h};b.watch(()=>e.modelValue,h=>{b.nextTick(()=>{if(!n.initOnce)if(h){const E=o();n.fileList=E}else n.fileList=[]})});const a=b.computed(()=>({Authorization:sessionStorage.getItem("admin-token")||localStorage.getItem("admin-token")})),l=h=>{if(!e.uploadUrl)return Mr.ElMessage.error("\u8BF7\u914D\u7F6E\u4E0A\u4F20\u7684\u8DEF\u5F84\u5730\u5740\uFF01");const E=h.type,w=parseInt(e.limitSize),y=w/1024,$=h.size/1024<w;let S=["image/jpeg","image/png","image/gif","image/webp"].includes(E);S||Mr.ElMessage.error("\u4E0A\u4F20\u56FE\u7247\u53EA\u80FD\u662F JPG,PNG,GIF,WEBP \u683C\u5F0F!"),$||(y>1?Mr.ElMessage.error(`\u4E0A\u4F20\u56FE\u7247\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7 ${y}MB!`):Mr.ElMessage.error(`\u4E0A\u4F20\u56FE\u7247\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7 ${w}KB!`));const D=S&&$;return D&&(n.onUploadProgress=!0),D},u=()=>{n.onUploadProgress=!1},f=(h,E,w)=>{n.onUploadProgress=!1,h.code===0?p(w):(Mr.ElMessage.error(h.msg),this.dialogVisible=!1)},d=(h,E)=>{p(E)},p=h=>{const{responseKey:E}=e;n.initOnce=!0;let w=[];h.map(y=>{var m,S,D;const $=(E?(S=(m=y==null?void 0:y.response)==null?void 0:m.data)==null?void 0:S[E]:(D=y==null?void 0:y.response)==null?void 0:D.data)||y.org_url;$&&w.push($)}),e.multiple?(t("update:modelValue",w),t("onChange",w)):(t("update:modelValue",w[0]||""),t("onChange",w[0]||""))},g=h=>{n.dialogImageUrl=h.url,n.dialogVisible=!0};return b.onBeforeMount(()=>{n.fileList=[],n.initOnce=!1}),{...b.toRefs(n),headers:a,showOnlyOne:i,handleRemove:d,handleBeforeUpload:l,handleUploadSuccess:f,handlePictureCardPreview:g,handleUploadError:u}}}),b2e=["src"];function w2e(e,t,n,r,i,o){const a=b.resolveComponent("jwt-icon"),l=b.resolveComponent("el-upload"),u=b.resolveComponent("el-dialog");return b.openBlock(),b.createElementBlock(b.Fragment,null,[b.createVNode(l,{action:e.uploadUrl,"before-upload":e.handleBeforeUpload,class:b.normalizeClass({onlyOne:e.showOnlyOne}),data:e.uploadParam,disabled:e.disabled,"file-list":e.fileList,headers:e.headers,"list-type":e.listType,multiple:e.multiple,name:"filedata","with-credentials":"","on-error":e.handleUploadError,"on-preview":e.handlePictureCardPreview,"on-remove":e.handleRemove,"on-success":e.handleUploadSuccess,"show-file-list":!0},{default:b.withCtx(()=>[b.createVNode(a,{icon:"add-line",size:40})]),_:1},8,["action","before-upload","class","data","disabled","file-list","headers","list-type","multiple","on-error","on-preview","on-remove","on-success"]),b.createVNode(u,{modelValue:e.dialogVisible,"onUpdate:modelValue":t[0]||(t[0]=f=>e.dialogVisible=f),"append-to-body":""},{default:b.withCtx(()=>[b.createElementVNode("img",{src:e.dialogImageUrl,style:{width:"100%"},"w-full":""},null,8,b2e)]),_:1},8,["modelValue"])],64)}const $2e=Object.freeze(Object.defineProperty({__proto__:null,default:yr(y2e,[["render",w2e]])},Symbol.toStringTag,{value:"Module"}));var yj={exports:{}};const E2e=Hbe(Uye);(function(e,t){(function(n,r){e.exports=r(E2e)})(self,n=>(()=>{var r={857:l=>{l.exports=n}},i={};function o(l){var u=i[l];if(u!==void 0)return u.exports;var f=i[l]={exports:{}};return r[l](f,f.exports,o),f.exports}o.d=(l,u)=>{for(var f in u)o.o(u,f)&&!o.o(l,f)&&Object.defineProperty(l,f,{enumerable:!0,get:u[f]})},o.o=(l,u)=>Object.prototype.hasOwnProperty.call(l,u),o.r=l=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(l,"__esModule",{value:!0})};var a={};return(()=>{o.r(a),o.d(a,{default:()=>M});var l=o(857);(0,l.i18nAddResources)("en",{attachment:{upload:"Upload Attachment",download:"Download Attachment"}}),(0,l.i18nAddResources)("zh-CN",{attachment:{upload:"\u4E0A\u4F20\u9644\u4EF6",download:"\u4E0B\u8F7D\u9644\u4EF6"}});function u(T,L,q,O,J){return{sel:T,data:L,children:q,text:O,elm:J,key:L===void 0?void 0:L.key}}const f=Array.isArray;function d(T){return typeof T=="string"||typeof T=="number"||T instanceof String||T instanceof Number}function p(T,L,q){if(T.ns="http://www.w3.org/2000/svg",q!=="foreignObject"&&L!==void 0)for(let O=0;O<L.length;++O){const J=L[O];if(typeof J=="string")continue;const ue=J.data;ue!==void 0&&p(ue,J.children,J.sel)}}function g(T,L,q){let O,J,ue,he={};if(q!==void 0?(L!==null&&(he=L),f(q)?O=q:d(q)?J=q.toString():q&&q.sel&&(O=[q])):L!=null&&(f(L)?O=L:d(L)?J=L.toString():L&&L.sel?O=[L]:he=L),O!==void 0)for(ue=0;ue<O.length;++ue)d(O[ue])&&(O[ue]=u(void 0,void 0,void 0,O[ue],void 0));return T[0]!=="s"||T[1]!=="v"||T[2]!=="g"||T.length!==3&&T[3]!=="."&&T[3]!=="#"||p(he,O,T),u(T,he,O,J,void 0)}const h={type:"attachment",renderElem:function(T,L,q){var O=q.isDisabled(),J=l.DomEditor.isNodeSelected(q,T),ue=T,he=ue.fileName,te=he===void 0?"":he,Q=ue.link,Ce=Q===void 0?"":Q;return g("span",{props:{contentEditable:!1},style:{display:"inline-block",marginLeft:"3px",marginRight:"3px",border:J&&!O?"2px solid var(--w-e-textarea-selected-border-color)":"2px solid transparent",borderRadius:"3px",padding:"0 3px",backgroundColor:"#f1f1f1",cursor:O?"pointer":"inherit"},on:{click:function(){O&&Ce&&window.open(Ce,"_blank")}}},[g("img",{props:{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAv5JREFUWEetl1nITVEUx3/fo5LkyRQeFA+SIS8eZHhQimRKMhMSoogyR5QxMs9DkplQEhFvxihCKUWkpCTP9P9a+1p3f2efe869367T3Xeftdf/v9e012mi9cZQYDzQBxgIfANeAO+BDSmYplbCX58HAnwFFgNXY7zWIHABmBQpfg10A9pH64OAZ36tUQLngClO4XVgC/DU1iYCF937N+aiylIjBM4A05xy+XljwqV/3bpkKjFRL4GTwMyU0gwSY4Abtn4NGBdk6iFwFJhbAjyI/gLaAR+BnvUSOATML2j22BCvgL7AbyPS/L6MBfYDC3NOrlS8BLzNcIGi/4mtPwSGlbXAHmBJDriCSgQU5UrJmIT8Ptb277OaUNgCu4BlBcCDSFWUGzFfCXV6WaEQge3A8hLgcSquBjbnBWxeDGwFVtXwuT9ZfHLtlY4wFB9xxUwGoViLfVGzxuCymqyXC57KAilb1wC44kVxUxM8i8Bs4HgJn8cnV6YoYwqBxwR6A/eBzrY7Vh5SLeUW1QjVisLgMQEFyQTbfQqY5ZTVAp8HHC4L7gnocrhiCj5ZpdKvxlJgd45b5gDHcsDzKmQlC3zUrwS2mcJ+wAPXWMRumQHIWimzh04pVSErBG4Do0zLaOCWzX2rpeZjqgPT/GwB8FTMNK+HQqSerZNJKgjVUGro9Go2NXwJnQycLwGebFYCgS9AF1PYEfhu8wXAQZurfh8AutcoMnGDGrvN8f5vAQVg6FJGAndNqq211SE1qzbb9evLaylw74I1wCbTvgLY4ZAGAzeBDhH6kYzmRARyfR6fILhAd7XubI0fQC/gpxNuY23YcOCDdbrP3fvSJw97/W14B5D5NR4DQ2K2if91g3sXaN4V+OxAlN+LgD8J4B7WbJTpjluoivuB6cBpJ6VquBd4BAST67tP1tHFIxKlfJ6KAb8+AriXcWqlarCUf60ashY4UdBlVWKpjkgRvzP6+MjSf9nA39UDHsdAlg7VhgFAf3sk89IefXq3+NotS+QfmNG0IS7jBhcAAAAASUVORK5CYII="},style:{width:"1em",marginRight:"0.1em",minWidth:"0",minHeight:"0"}}),te])}};function E(T){return T!==null&&typeof T=="object"&&"constructor"in T&&T.constructor===Object}function w(T={},L={}){Object.keys(L).forEach(q=>{T[q]===void 0?T[q]=L[q]:E(L[q])&&E(T[q])&&Object.keys(L[q]).length>0&&w(T[q],L[q])})}const y={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function $(){const T=typeof document<"u"?document:{};return w(T,y),T}const m={document:y,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:T=>typeof setTimeout>"u"?(T(),null):setTimeout(T,0),cancelAnimationFrame(T){typeof setTimeout<"u"&&clearTimeout(T)}};function S(){const T=typeof window<"u"?window:{};return w(T,m),T}class D extends Array{constructor(L){typeof L=="number"?super(L):(super(...L||[]),function(q){const O=q.__proto__;Object.defineProperty(q,"__proto__",{get:()=>O,set(J){O.__proto__=J}})}(this))}}function A(T,L){const q=S(),O=$();let J=[];if(!L&&T instanceof D)return T;if(!T)return new D(J);if(typeof T=="string"){const ue=T.trim();if(ue.indexOf("<")>=0&&ue.indexOf(">")>=0){let he="div";ue.indexOf("<li")===0&&(he="ul"),ue.indexOf("<tr")===0&&(he="tbody"),ue.indexOf("<td")!==0&&ue.indexOf("<th")!==0||(he="tr"),ue.indexOf("<tbody")===0&&(he="table"),ue.indexOf("<option")===0&&(he="select");const te=O.createElement(he);te.innerHTML=ue;for(let Q=0;Q<te.childNodes.length;Q+=1)J.push(te.childNodes[Q])}else J=function(he,te){if(typeof he!="string")return[he];const Q=[],Ce=te.querySelectorAll(he);for(let ae=0;ae<Ce.length;ae+=1)Q.push(Ce[ae]);return Q}(T.trim(),L||O)}else if(T.nodeType||T===q||T===O)J.push(T);else if(Array.isArray(T)){if(T instanceof D)return T;J=T}return new D(function(ue){const he=[];for(let te=0;te<ue.length;te+=1)he.indexOf(ue[te])===-1&&he.push(ue[te]);return he}(J))}function B(...T){let[L,q,O,J]=T;function ue(Ce){const ae=Ce.target;if(!ae)return;const ye=Ce.target.dom7EventData||[];if(ye.indexOf(Ce)<0&&ye.unshift(Ce),A(ae).is(q))O.apply(ae,ye);else{const Le=A(ae).parents();for(let $t=0;$t<Le.length;$t+=1)A(Le[$t]).is(q)&&O.apply(Le[$t],ye)}}function he(Ce){const ae=Ce&&Ce.target&&Ce.target.dom7EventData||[];ae.indexOf(Ce)<0&&ae.unshift(Ce),O.apply(this,ae)}typeof T[1]=="function"&&([L,O,J]=T,q=void 0),J||(J=!1);const te=L.split(" ");let Q;for(let Ce=0;Ce<this.length;Ce+=1){const ae=this[Ce];if(q)for(Q=0;Q<te.length;Q+=1){const ye=te[Q];ae.dom7LiveListeners||(ae.dom7LiveListeners={}),ae.dom7LiveListeners[ye]||(ae.dom7LiveListeners[ye]=[]),ae.dom7LiveListeners[ye].push({listener:O,proxyListener:ue}),ae.addEventListener(ye,ue,J)}else for(Q=0;Q<te.length;Q+=1){const ye=te[Q];ae.dom7Listeners||(ae.dom7Listeners={}),ae.dom7Listeners[ye]||(ae.dom7Listeners[ye]=[]),ae.dom7Listeners[ye].push({listener:O,proxyListener:he}),ae.addEventListener(ye,he,J)}}return this}function P(){for(let T=0;T<this.length;T+=1)this[T].style.display="none";return this}function U(...T){let L;const q=$();for(let O=0;O<T.length;O+=1){L=T[O];for(let J=0;J<this.length;J+=1)if(typeof L=="string"){const ue=q.createElement("div");for(ue.innerHTML=L;ue.firstChild;)this[J].appendChild(ue.firstChild)}else if(L instanceof D)for(let ue=0;ue<L.length;ue+=1)this[J].appendChild(L[ue]);else this[J].appendChild(L)}return this}A.fn=D.prototype;const Y="resize scroll".split(" ");function ce(T){return function(...L){if(L[0]===void 0){for(let q=0;q<this.length;q+=1)Y.indexOf(T)<0&&(T in this[q]?this[q][T]():A(this[q]).trigger(T));return this}return this.on(T,...L)}}const ee=ce("click"),ge=A;P&&(ge.fn.hide=P),U&&(ge.fn.append=U),ee&&(ge.fn.click=ee),B&&(ge.fn.on=B);const se=ge;var xe=function(){return xe=Object.assign||function(T){for(var L,q=1,O=arguments.length;q<O;q++)for(var J in L=arguments[q])Object.prototype.hasOwnProperty.call(L,J)&&(T[J]=L[J]);return T},xe.apply(this,arguments)},ve=function(T,L,q,O){return new(q||(q=Promise))(function(J,ue){function he(Ce){try{Q(O.next(Ce))}catch(ae){ue(ae)}}function te(Ce){try{Q(O.throw(Ce))}catch(ae){ue(ae)}}function Q(Ce){var ae;Ce.done?J(Ce.value):(ae=Ce.value,ae instanceof q?ae:new q(function(ye){ye(ae)})).then(he,te)}Q((O=O.apply(T,L||[])).next())})},Oe=function(T,L){var q,O,J,ue,he={label:0,sent:function(){if(1&J[0])throw J[1];return J[1]},trys:[],ops:[]};return ue={next:te(0),throw:te(1),return:te(2)},typeof Symbol=="function"&&(ue[Symbol.iterator]=function(){return this}),ue;function te(Q){return function(Ce){return function(ae){if(q)throw new TypeError("Generator is already executing.");for(;he;)try{if(q=1,O&&(J=2&ae[0]?O.return:ae[0]?O.throw||((J=O.return)&&J.call(O),0):O.next)&&!(J=J.call(O,ae[1])).done)return J;switch(O=0,J&&(ae=[2&ae[0],J.value]),ae[0]){case 0:case 1:J=ae;break;case 4:return he.label++,{value:ae[1],done:!1};case 5:he.label++,O=ae[1],ae=[0];continue;case 7:ae=he.ops.pop(),he.trys.pop();continue;default:if(!((J=(J=he.trys).length>0&&J[J.length-1])||ae[0]!==6&&ae[0]!==2)){he=0;continue}if(ae[0]===3&&(!J||ae[1]>J[0]&&ae[1]<J[3])){he.label=ae[1];break}if(ae[0]===6&&he.label<J[1]){he.label=J[1],J=ae;break}if(J&&he.label<J[2]){he.label=J[2],he.ops.push(ae);break}J[2]&&he.ops.pop(),he.trys.pop();continue}ae=L.call(T,he)}catch(ye){ae=[6,ye],O=0}finally{q=J=0}if(5&ae[0])throw ae[1];return{value:ae[0]?ae[1]:void 0,done:!0}}([Q,Ce])}}};function Te(T){return T.getMenuConfig("uploadAttachment")}function Ne(T,L,q){if(L&&q){T.restoreSelection();var O={type:"attachment",fileName:L,link:q,children:[{text:""}]};T.insertNode(O),T.move(1);var J=Te(T).onInsertedAttachment;J&&J(O)}}function Re(T,L){return ve(this,void 0,void 0,function(){var q,O,J,ue;return Oe(this,function(he){switch(he.label){case 0:return q=function(te){var Q=Ae.get(te);if(Q!=null)return Q;var Ce=Te(te),ae=Ce.onSuccess,ye=Ce.onProgress,Le=Ce.onFailed,$t=Ce.customInsert,ft=Ce.onError;return Q=(0,l.createUploader)(xe(xe({},Ce),{onProgress:function(ot){te.showProgressBar(ot),ye&&ye(ot)},onSuccess:function(ot,Ze){if($t)$t(Ze,ot,function(Kt,Yt){return Ne(te,Kt,Yt)});else{var dt=Ze.errno,pt=dt===void 0?1:dt,rn=Ze.data,In=rn===void 0?{}:rn;if(pt!==0)return console.error("'".concat(ot.name,"' upload failed"),Ze),void Le(ot,Ze);var mt=In.url,on=mt===void 0?"":mt;Ne(te,ot.name,on),ae(ot,Ze)}},onError:function(ot,Ze,dt){var pt=ot.name;console.error("'".concat(pt," upload error"),Ze,dt),ft&&ft(ot,Ze,dt)}})),Ae.set(te,Q),Q}(T),O=L.name,J=L.type,ue=L.size,q.addFile({name:O,type:J,size:ue,data:L}),[4,q.upload()];case 1:return he.sent(),[2]}})})}var Ae=new WeakMap;const ie=function(){function T(){this.title=(0,l.t)("attachment.upload"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M665.821116 327.053068l-64.958782-64.926783-324.79391 324.729911c-53.822991 53.790991-53.822991 141.053355 0 194.844347s141.053355 53.790991 194.876346 0l389.752692-389.688693a229.531696 229.531696 0 0 0 0-324.729912 229.627694 229.627694 0 0 0-324.761911 0L126.727224 476.458266l-0.863984 0.831985c-125.085655 125.085655-125.085655 327.833853 0 452.887508 125.053655 125.053655 327.865853 125.053655 452.983507 0l0.831984-0.863984 0.031999 0.032 279.322763-279.290764-64.990781-64.926782-279.322763 279.258764-0.831984 0.831984a228.731711 228.731711 0 0 1-323.065943 0 228.603714 228.603714 0 0 1 0-322.969944l0.895983-0.831985-0.031999-0.063998L600.958332 132.208721c53.694993-53.726993 141.149353-53.726993 194.876346 0s53.694993 141.149353 0 194.844347L406.081986 716.741761c-17.919664 17.919664-47.039118 17.919664-64.958782 0a45.983138 45.983138 0 0 1 0-64.926783L665.917114 327.053068z"></path></svg>',this.tag="button"}return T.prototype.getValue=function(L){return""},T.prototype.isActive=function(L){return!1},T.prototype.exec=function(L,q){var O=this.getMenuConfig(L),J=O.allowedFileTypes,ue=J===void 0?[]:J,he=O.customBrowseAndUpload;if(he)he(function(ae,ye){return Ne(L,ae,ye)});else{var te="";ue.length>0&&(te='accept="'.concat(ue.join(", "),'"'));var Q=se("body"),Ce=se('<input type="file" '.concat(te," multiple/>"));Ce.hide(),Q.append(Ce),Ce.click(),Ce.on("change",function(){var ae=Ce[0].files;(function(ye,Le){var $t,ft;ve(this,void 0,void 0,function(){var ot,Ze,dt,pt,rn,In;return Oe(this,function(mt){switch(mt.label){case 0:if(Le==null)return[2];ot=Array.prototype.slice.call(Le),Ze=Te(ye).customUpload,mt.label=1;case 1:mt.trys.push([1,9,10,15]),dt=function(on){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Kt,Yt=on[Symbol.asyncIterator];return Yt?Yt.call(on):(on=typeof __values=="function"?__values(on):on[Symbol.iterator](),Kt={},Jn("next"),Jn("throw"),Jn("return"),Kt[Symbol.asyncIterator]=function(){return this},Kt);function Jn(dn){Kt[dn]=on[dn]&&function(Nn){return new Promise(function(Di,Zi){(function($r,Fr,Ai,Pr){Promise.resolve(Pr).then(function(Qr){$r({value:Qr,done:Ai})},Fr)})(Di,Zi,(Nn=on[dn](Nn)).done,Nn.value)})}}}(ot),mt.label=2;case 2:return[4,dt.next()];case 3:return(pt=mt.sent()).done?[3,8]:(rn=pt.value,Ze?[4,Ze(rn,function(on,Kt){return Ne(ye,on,Kt)})]:[3,5]);case 4:return mt.sent(),[3,7];case 5:return[4,Re(ye,rn)];case 6:mt.sent(),mt.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return In=mt.sent(),$t={error:In},[3,15];case 10:return mt.trys.push([10,,13,14]),pt&&!pt.done&&(ft=dt.return)?[4,ft.call(dt)]:[3,12];case 11:mt.sent(),mt.label=12;case 12:return[3,14];case 13:if($t)throw $t.error;return[7];case 14:return[7];case 15:return[2]}})})})(L,ae)})}},T.prototype.isDisabled=function(L){var q=L.selection;if(q==null||l.SlateRange.isExpanded(q))return!0;var O=l.DomEditor.getSelectedElems(L);return!!O.some(function(J){return L.isVoid(J)})||!!O.some(function(J){return l.DomEditor.getNodeType(J)==="pre"})},T.prototype.getMenuConfig=function(L){return L.getMenuConfig("uploadAttachment")},T}(),R=function(){function T(){this.title=(0,l.t)("attachment.download"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M736 448l-256 256-256-256h160V64h192v384z m-256 256H0v256h960v-256H480z m416 128h-128v-64h128v64z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return T.prototype.getValue=function(L){var q=this.getSelectedElem(L);return q==null?"":q.link},T.prototype.isActive=function(L){return!1},T.prototype.exec=function(L,q){q&&typeof q=="string"&&window.open(q,"_blank")},T.prototype.isDisabled=function(L){var q=L.selection;return q==null||!!l.SlateRange.isExpanded(q)||this.getSelectedElem(L)==null},T.prototype.getSelectedElem=function(L){var q=l.DomEditor.getSelectedNodeByType(L,"attachment");return q==null?null:q},T}(),M={editorPlugin:function(T){var L=T.isInline,q=T.isVoid,O=T;return O.isInline=function(J){return l.DomEditor.getNodeType(J)==="attachment"||L(J)},O.isVoid=function(J){return l.DomEditor.getNodeType(J)==="attachment"||q(J)},O},renderElems:[h],elemsToHtml:[{type:"attachment",elemToHtml:function(T,L){var q=T,O=q.link,J=O===void 0?"":O,ue=q.fileName,he=ue===void 0?"":ue;return'<a data-w-e-type="attachment" data-w-e-is-void data-w-e-is-inline href="'.concat(J,'" download="').concat(he,'">').concat(he,"</a>")}}],parseElemsHtml:[{selector:'a[data-w-e-type="attachment"]',parseElemHtml:function(T,L,q){return{type:"attachment",link:T.getAttribute("href")||"",fileName:T.getAttribute("download")||"",children:[{text:""}]}}}],menus:[{key:"uploadAttachment",factory:function(){return new ie},config:{server:"",fieldName:"wangeditor-uploaded-attachment",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(T){return T},onProgress:function(T){},onSuccess:function(T,L){},onFailed:function(T,L){},onError:function(T,L,q){},onInsertedAttachment:function(T){}}},{key:"downloadAttachment",factory:function(){return new R}}]}})(),a})())})(yj);const C2e=Ube(yj.exports),S2e=e=>{const t=Object.assign({"./JwtCascaderArea/index.vue":zV,"./JwtEditor/index.vue":sbe,"./JwtForm/index.vue":pbe,"./JwtHeaderButton/index.vue":mbe,"./JwtIcon/index.vue":wbe,"./JwtIconSelect/index.vue":xbe,"./JwtImage/index.vue":kbe,"./JwtInput/index.vue":Tbe,"./JwtRateIcon/index.vue":Nbe,"./JwtSelectServer/index.vue":Vbe,"./JwtTable/index.vue":t2e,"./JwtTableButton/index.vue":a2e,"./JwtTableOnly/index.vue":h2e,"./JwtTags/index.vue":m2e,"./JwtUploadImage/index.vue":$2e});for(const n in t){const r=t[n];e.component(r.default.name,r.default||r)}};Pn.registerModule(C2e),Mo.setupJwt=S2e,Object.defineProperties(Mo,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});