You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

261 lines
1.9 MiB

2 weeks ago
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/404-B9jLxFK5.js","assets/404-D7DuLXxx.css","assets/500-d1kwjBQM.js","assets/500-CBXtgQ20.css","assets/index-BaY5RraW.js","assets/index-Bt9XBEO4.css","assets/index-CuhAxIgb.js","assets/index-BkJoNt0J.js","assets/download-DA4MPZiT.js","assets/index copy-BQelWS4o.js","assets/index-CIR6DE9M.js","assets/index-DaH_25CE.js","assets/index-_hNz1Anb.js","assets/deferredJobDialog-ujbomvD9.js","assets/dictSelect-UmgKfb3s.js","assets/dataDictDetailApi-vfLmp7YF.js","assets/orgCascader-C9DGNPnu.js","assets/orgApi-B5ceIBmm.js","assets/orgTree-FdbKD78J.js","assets/positionSelect-QYklNrGD.js","assets/positionApi-qXMSI60M.js","assets/userSelectDialog-CDQvCqlX.js","assets/dictDetailDialog-iSnvEmNV.js","assets/editDictDetailDialog-ChRiJYXN.js","assets/index-D8IGzH6x.js","assets/editDialog-CReG8MW9.js","assets/logDiffIndex-BwJC6V15.js","assets/logApi-DJIQmnr7.js","assets/logEventIndex-BvwgOeFt.js","assets/logExceptionIndex-DPxher8N.js","assets/logJobIndex-DqSrn0Wt.js","assets/logLoginIndex-Dvx_SXXg.js","assets/logOperateIndex-wMA5r0xB.js","assets/index-CfP1bcyI.js","assets/tenantDialog-DN6TtJsK.js","assets/index-Uewj-LYl.css","assets/editDialog-CAAdzHQH.js","assets/menuApi-CUqEKPWz.js","assets/elIconList-CbVf7wBF.js","assets/elIconList-DjZIBUtz.css","assets/faIconList-h85_ZsSh.js","assets/faIconList-pncSLGd0.css","assets/editDialog-ddGr7Tu4.css","assets/index-o-RPviQH.js","assets/editDialog-C65GBNCy.js","assets/fileApi-B26pNJOO.js","assets/editDialog-nHDhGvq6.css","assets/publishDialog-Cs_HVCZ3.js","assets/enumSelect-C-ZVfWAm.js","assets/publishIndex-BrJCGReO.js","assets/receiveIndex-agyHqmlK.js","assets/viewDialog-0cbXfKM7.js","assets/editDialog-BTqyA726.js","assets/userSelect-BybsSFqg.js","assets/index-v97F8xcw.js","assets/index-BX35LWe9.js","assets/singleImgUpload-yRRU6Bmr.js","assets/singleImgUpload-CMkgGOUx.css","assets/editDialog-SM7KXtHH.js","assets/index-D96yTgn3.js","assets/editDataTypeDialog-h1SjDrY2.js","assets/roleApi-TOST4PBa.js","assets/editDialog-_y3L2kWX.js","assets/editDialog-BJbWPMmY.css","assets/index-CXemNsc5.js","assets/index-D-7mR5hl.js","assets/editDialog-BLnDv3VC.js","assets/editDialog-CHoNFhmy.js","assets/index-Bwe2BVMh.js"])))=>i.map(i=>d[i]);
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(o){if(o.ep)return;o.ep=!0;const a=n(o);fetch(o.href,a)}})();/**
* @vue/shared v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**//*! #__NO_SIDE_EFFECTS__ */function wM(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const zn={},r0=[],hn=()=>{},v0e=()=>!1,u_=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),_M=e=>e.startsWith("onUpdate:"),oo=Object.assign,CM=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},g0e=Object.prototype.hasOwnProperty,Yt=(e,t)=>g0e.call(e,t),Pe=Array.isArray,o0=e=>vv(e)==="[object Map]",c_=e=>vv(e)==="[object Set]",id=e=>vv(e)==="[object Date]",m0e=e=>vv(e)==="[object RegExp]",et=e=>typeof e=="function",Ze=e=>typeof e=="string",Ts=e=>typeof e=="symbol",St=e=>e!==null&&typeof e=="object",V1=e=>(St(e)||et(e))&&et(e.then)&&et(e.catch),CQ=Object.prototype.toString,vv=e=>CQ.call(e),y0e=e=>vv(e).slice(8,-1),z1=e=>vv(e)==="[object Object]",SM=e=>Ze(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Y2=wM(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),d_=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},b0e=/-(\w)/g,oa=d_(e=>e.replace(b0e,(t,n)=>n?n.toUpperCase():"")),w0e=/\B([A-Z])/g,Ol=d_(e=>e.replace(w0e,"-$1").toLowerCase()),gy=d_(e=>e.charAt(0).toUpperCase()+e.slice(1)),X2=d_(e=>e?`on${gy(e)}`:""),Ma=(e,t)=>!Object.is(e,t),a0=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},SQ=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Jx=e=>{const t=parseFloat(e);return isNaN(t)?e:t},_0e=e=>{const t=Ze(e)?Number(e):NaN;return isNaN(t)?e:t};let d$;const f_=()=>d$||(d$=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Qe(e){if(Pe(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=Ze(r)?x0e(r):Qe(r);if(o)for(const a in o)t[a]=o[a]}return t}else if(Ze(e)||St(e))return e}const C0e=/;(?![^(]*\))/g,S0e=/:([^]+)/,E0e=/\/\*[^]*?\*\//g;function x0e(e){const t={};return e.replace(E0e,"").split(C0e).forEach(n=>{if(n){const r=n.split(S0e);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function I(e){let t="";if(Ze(e))t=e;else if(Pe(e))for(let n=0;n<e.length;n++){const r=I(e[n]);r&&(t+=r+" ")}else if(St(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function fs(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Ze(t)&&(e.class=I(t)),n&&(e.style=Qe(n)),e}const k0e="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",A0e=wM(k0e);function EQ(e){return!!e||e===""}function O0e(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=A0(e[r],t[r]);return n}function A0(e,t){if(e===t)return!0;let n=id(e),r=id(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Ts(e),r=Ts(t),n||r)return e===t;if(n=Pe(e),r=Pe(t),n||r)return n&&r?O0e(e,t):!1;if(n=St(e),r=St(t),n||r){if(!n||!r)return!1;const o=Object.keys(e).length,a=Object.keys(t).length;if(o!==a)return!1;for(const i in e){const s=e.hasOwnProperty(i),l=t.hasOwnProperty(i);if(s&&!l||!s&&l||!A0(e[i],t[i]))return!1}}return String(e)===String(t)}function xQ(e,t){return e.findIndex(n=>A0(n,t))}const kQ=e=>!!(e&&e.__v_isRef===!0),Re=e=>Ze(e)?e:e==null?"":Pe(e)||St(e)&&(e.toString===CQ||!et(e.toString))?kQ(e)?Re(e.value):JSON.stringify(e,AQ,2):String(e),AQ=(e,t)=>kQ(t)?AQ(e,t.value):o0(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o],a)=>(n[S9(r,a)+" =>"]=o,n),{})}:c_(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>S9(n))}:Ts(t)?S9(t):St(t)&&!Pe(t)&&!z1(t)?String(t):t,S9=(e,t="")=>{var n;return Ts(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
* @vue/reactivity v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let pa;class OQ{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=pa,!t&&pa&&(this.index=(pa.scopes||(pa.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=pa;try{return pa=this,t()}finally{pa=n}}}on(){pa=this}off(){pa=this.parent}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0}}}function EM(e){return new OQ(e)}function xM(){return pa}function kM(e,t=!1){pa&&pa.cleanups.push(e)}let dr;const E9=new WeakSet;class TQ{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,pa&&pa.active&&pa.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,E9.has(this)&&(E9.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||MQ(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,f$(this),PQ(this);const t=dr,n=ws;dr=this,ws=!0;try{return this.fn()}finally{BQ(this),dr=t,ws=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)TM(t);this.deps=this.depsTail=void 0,f$(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?E9.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Zx(this)&&this.run()}get dirty(){return Zx(this)}}let DQ=0,J2,Z2;function MQ(e,t=!1){if(e.flags|=8,t){e.next=Z2,Z2=e;return}e.next=J2,J2=e}function AM(){DQ++}function OM(){if(--DQ>0)return;if(Z2){let t=Z2;for(Z2=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;J2;){let t=J2;for(J2=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function PQ(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function BQ(e){let t,n=e.depsTail,r=n;for(;r;){const o=r.prevDep;r.version===-1?(r===n&&(n=o),TM(r),T0e(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=o}e.deps=t,e.depsTail=n}function Zx(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(RQ(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function RQ(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===j1))return;e.globalVersion=j1;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!Zx(e)){e.flags&=-3;return}const n=dr,r=ws;dr=e,ws=!0;try{PQ(e);const o=e.fn(e._value);(t.version===0||Ma(o,e._value))&&(e._value=o,t.version++)}catch(o){throw t.version++,o}finally{dr=n,ws=r,BQ(e),e.flags&=-3}}function TM(e,t=!1){const{dep:n,prevSub:r,nextSub:o}=e;if(r&&(r.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let a=n.computed.deps;a;a=a.nextDep)TM(a,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function T0e(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let ws=!0;const IQ=[];function Sd(){IQ.push(ws),ws=!1}function Ed(){const e=IQ.pop();ws=e===void 0?!0:e}function f$(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=dr;dr=void 0;try{t()}finally{dr=n}}}let j1=0,D0e=class{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub
* @vue/runtime-core v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function my(e,t,n,r){try{return r?e(...r):e()}catch(o){v_(o,t,n)}}function Ds(e,t,n,r){if(et(e)){const o=my(e,t,n,r);return o&&V1(o)&&o.catch(a=>{v_(a,t,n)}),o}if(Pe(e)){const o=[];for(let a=0;a<e.length;a++)o.push(Ds(e[a],t,n,r));return o}}function v_(e,t,n,r=!0){const o=t?t.vnode:null,{errorHandler:a,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||zn;if(t){let s=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;s;){const c=s.ec;if(c){for(let d=0;d<c.length;d++)if(c[d](e,l,u)===!1)return}s=s.parent}if(a){Sd(),my(a,null,10,[e,l,u]),Ed();return}}rve(e,n,o,r,i)}function rve(e,t,n,r=!0,o=!1){if(o)throw e;console.error(e)}const ha=[];let Ys=-1;const i0=[];let vc=null,Nh=0;const qQ=Promise.resolve();let b3=null;function tt(e){const t=b3||qQ;return e?t.then(this?e.bind(this):e):t}function ove(e){let t=Ys+1,n=ha.length;for(;t<n;){const r=t+n>>>1,o=ha[r],a=U1(o);a<e||a===e&&o.flags&2?t=r+1:n=r}return t}function RM(e){if(!(e.flags&1)){const t=U1(e),n=ha[ha.length-1];!n||!(e.flags&2)&&t>=U1(n)?ha.push(e):ha.splice(ove(t),0,e),e.flags|=1,GQ()}}function GQ(){b3||(b3=qQ.then(XQ))}function ave(e){Pe(e)?i0.push(...e):vc&&e.id===-1?vc.splice(Nh+1,0,e):e.flags&1||(i0.push(e),e.flags|=1),GQ()}function h$(e,t,n=Ys+1){for(;n<ha.length;n++){const r=ha[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;ha.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function YQ(e){if(i0.length){const t=[...new Set(i0)].sort((n,r)=>U1(n)-U1(r));if(i0.length=0,vc){vc.push(...t);return}for(vc=t,Nh=0;Nh<vc.length;Nh++){const n=vc[Nh];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}vc=null,Nh=0}}const U1=e=>e.id==null?e.flags&2?-1:1/0:e.id;function XQ(e){try{for(Ys=0;Ys<ha.length;Ys++){const t=ha[Ys];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),my(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Ys<ha.length;Ys++){const t=ha[Ys];t&&(t.flags&=-2)}Ys=-1,ha.length=0,YQ(),b3=null,(ha.length||i0.length)&&XQ()}}let vo=null,JQ=null;function w3(e){const t=vo;return vo=e,JQ=e&&e.type.__scopeId||null,t}function ae(e,t=vo,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&k$(-1);const a=w3(t);let i;try{i=e(...o)}finally{w3(a),r._d&&k$(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function wt(e,t){if(vo===null)return e;const n=C_(vo),r=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[a,i,s,l=zn]=t[o];a&&(et(a)&&(a={mounted:a,updated:a}),a.deep&&tu(i),r.push({dir:a,instance:n,value:i,oldValue:void 0,arg:s,modifiers:l}))}return e}function Fd(e,t,n,r){const o=e.dirs,a=t&&t.dirs;for(let i=0;i<o.length;i++){const s=o[i];a&&(s.oldValue=a[i].value);let l=s.dir[r];l&&(Sd(),Ds(l,n,8,[e.el,s,e,t]),Ed())}}const ZQ=Symbol("_vte"),QQ=e=>e.__isTeleport,Q2=e=>e&&(e.disabled||e.disabled===""),v$=e=>e&&(e.defer||e.defer===""),g$=e=>typeof SVGElement<"u"&&e instanceof SVGElement,m$=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,nk=(e,t)=>{const n=e&&e.to;return Ze(n)?t?t(n):null:n},eee={name:"Teleport",__isTeleport:!0,process(e,t,n,r,o,a,i,s,l,u){const{mc:c,pc:d,pbc:f,o:{insert:p,querySelector:g,createText:v,createComment:m}}=u,y=Q2(t.props);let{shapeFlag:b,children:_,dynamicChildren:w}=t;if(e==null){const C=t.el=v(""),S=t.anchor=v("");p(C,n,r),p(S,n,r);const E=(A,D)=>{b&16&&(o&&o.isCE&&(o.ce._teleportTarget=A),c(_,A,D,o,a,i,s,l))},k=()=>{const A=t.target=nk(t.props,g),D=tee(A,t,v,p);A&&(i!=="svg"&&g$(A)?i="svg":i!=="mathml"&&m$(A)&&(i="mathml"),y||(E(A,D),p6(t,!1)))};y&&(E(n,S),p6(t,!0)),v$(t.props)?co(()=>{k(),t.el.__isMounted=!0},a):k()}else{if(v$(t.props)&&!e.el.__isMounted){co(()=>{eee.process(e,t,n,r,o,a,i,s,l,u),delete e.el.__isMounted},a);return}t.el=e.el,t.targetStart=e.targetStart;const C=t.anchor=e.anchor,S=t.target=e.target,E=t.targetAnchor=e.targetAnchor,k=Q2(e.props),A=k?n:S,D=k?C:E;if(i==="svg"||g$(S)?i="svg":(i==="mathml"||m$(S))&&(i="mathml"),w?(f(e.dynamicChildren,w,A,o,a,i,s),VM(e,t,!0)):l||d(e,t,A,D,o,a,i,s,!1),y)k?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):V4(t,n,C,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const B=t.target=nk(t.props,g)
* @vue/runtime-dom v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let uk;const T$=typeof window<"u"&&window.trustedTypes;if(T$)try{uk=T$.createPolicy("vue",{createHTML:e=>e})}catch{}const Iee=uk?e=>uk.createHTML(e):e=>e,age="http://www.w3.org/2000/svg",ige="http://www.w3.org/1998/Math/MathML",Yl=typeof document<"u"?document:null,D$=Yl&&Yl.createElement("template"),sge={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t==="svg"?Yl.createElementNS(age,e):t==="mathml"?Yl.createElementNS(ige,e):n?Yl.createElement(e,{is:n}):Yl.createElement(e);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>Yl.createTextNode(e),createComment:e=>Yl.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Yl.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,a){const i=n?n.previousSibling:t.lastChild;if(o&&(o===a||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===a||!(o=o.nextSibling)););else{D$.innerHTML=Iee(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const s=D$.content;if(r==="svg"||r==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Fu="transition",rg="animation",O0=Symbol("_vtc"),Nee={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Fee=oo({},ree,Nee),lge=e=>(e.displayName="Transition",e.props=Fee,e),jr=lge((e,{slots:t})=>nt(uve,$ee(e),t)),Ld=(e,t=[])=>{Pe(e)?e.forEach(n=>n(...t)):e&&e(...t)},M$=e=>e?Pe(e)?e.some(t=>t.length>1):e.length>1:!1;function $ee(e){const t={};for(const P in e)P in Nee||(t[P]=e[P]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:a=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=a,appearActiveClass:u=i,appearToClass:c=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,g=uge(o),v=g&&g[0],m=g&&g[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:_,onLeave:w,onLeaveCancelled:C,onBeforeAppear:S=y,onAppear:E=b,onAppearCancelled:k=_}=t,A=(P,K,X,z)=>{P._enterCancelled=z,dc(P,K?c:s),dc(P,K?u:i),X&&X()},D=(P,K)=>{P._isLeaving=!1,dc(P,d),dc(P,p),dc(P,f),K&&K()},B=P=>(K,X)=>{const z=P?E:b,R=()=>A(K,P,X);Ld(z,[K,R]),P$(()=>{dc(K,P?l:a),qs(K,P?c:s),M$(z)||B$(K,r,v,R)})};return oo(t,{onBeforeEnter(P){Ld(y,[P]),qs(P,a),qs(P,i)},onBeforeAppear(P){Ld(S,[P]),qs(P,l),qs(P,u)},onEnter:B(!1),onAppear:B(!0),onLeave(P,K){P._isLeaving=!0;const X=()=>D(P,K);qs(P,d),P._enterCancelled?(qs(P,f),ck()):(ck(),qs(P,f)),P$(()=>{P._isLeaving&&(dc(P,d),qs(P,p),M$(w)||B$(P,r,m,X))}),Ld(w,[P,X])},onEnterCancelled(P){A(P,!1,void 0,!0),Ld(_,[P])},onAppearCancelled(P){A(P,!0,void 0,!0),Ld(k,[P])},onLeaveCancelled(P){D(P),Ld(C,[P])}})}function uge(e){if(e==null)return null;if(St(e))return[M9(e.enter),M9(e.leave)];{const t=M9(e);return[t,t]}}function M9(e){return _0e(e)}function qs(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[O0]||(e[O0]=new Set)).add(t)}function dc(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[O0];n&&(n.delete(t),n.size||(e[O0]=void 0))}function P$(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let cge=0;function B$(e,t,n,r){const o=e._endId=++cge,a=()=>{o===e._endId&&r()};if(n!=null)return setTimeout(a,n);const{type:i,timeout:s,propCount:l}=Lee(e,t);if(!i)return r();const u=i+"end";let c=0;const d=()=>{e.removeEventListener(u,f),a()},f=p=>{p.target===e&&++c>=l&&d()};setTimeout(()=>{c<l&&d()},s+1),e.addEventListener(u,f)}function Lee(e,t){const n=window.getComputedStyle(e),r=g=>(n[g]||"").split(", "),o=r(`${Fu}Delay`),a=r(`${Fu}Duration`),i=R$(o,a),s=r(`${rg}De
* pinia v2.3.0
* (c) 2024 Eduardo San Martin Morote
* @license MIT
*/let Gee;const E_=e=>Gee=e,Yee=Symbol();function dk(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var n1;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(n1||(n1={}));function $ge(){const e=EM(!0),t=e.run(()=>H({}));let n=[],r=[];const o=fl({install(a){E_(o),o._a=a,a.provide(Yee,o),a.config.globalProperties.$pinia=o,r.forEach(i=>n.push(i)),r=[]},use(a){return this._a?n.push(a):r.push(a),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const Xee=()=>{};function G$(e,t,n,r=Xee){e.push(t);const o=()=>{const a=e.indexOf(t);a>-1&&(e.splice(a,1),r())};return!n&&xM()&&kM(o),o}function Jp(e,...t){e.slice().forEach(n=>{n(...t)})}const Lge=e=>e(),Y$=Symbol(),R9=Symbol();function fk(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];dk(o)&&dk(r)&&e.hasOwnProperty(n)&&!bn(r)&&!Ic(r)?e[n]=fk(o,r):e[n]=r}return e}const Vge=Symbol();function zge(e){return!dk(e)||!e.hasOwnProperty(Vge)}const{assign:fc}=Object;function jge(e){return!!(bn(e)&&e.effect)}function Hge(e,t,n,r){const{state:o,actions:a,getters:i}=t,s=n.state.value[e];let l;function u(){s||(n.state.value[e]=o?o():{});const c=ao(n.state.value[e]);return fc(c,a,Object.keys(i||{}).reduce((d,f)=>(d[f]=fl(O(()=>{E_(n);const p=n._s.get(e);return i[f].call(p,p)})),d),{}))}return l=Jee(e,u,t,n,r,!0),l}function Jee(e,t,n={},r,o,a){let i;const s=fc({actions:{}},n),l={deep:!0};let u,c,d=[],f=[],p;const g=r.state.value[e];!a&&!g&&(r.state.value[e]={}),H({});let v;function m(k){let A;u=c=!1,typeof k=="function"?(k(r.state.value[e]),A={type:n1.patchFunction,storeId:e,events:p}):(fk(r.state.value[e],k),A={type:n1.patchObject,payload:k,storeId:e,events:p});const D=v=Symbol();tt().then(()=>{v===D&&(u=!0)}),c=!0,Jp(d,A,r.state.value[e])}const y=a?function(){const{state:A}=n,D=A?A():{};this.$patch(B=>{fc(B,D)})}:Xee;function b(){i.stop(),d=[],f=[],r._s.delete(e)}const _=(k,A="")=>{if(Y$ in k)return k[R9]=A,k;const D=function(){E_(r);const B=Array.from(arguments),P=[],K=[];function X(j){P.push(j)}function z(j){K.push(j)}Jp(f,{args:B,name:D[R9],store:C,after:X,onError:z});let R;try{R=k.apply(this&&this.$id===e?this:C,B)}catch(j){throw Jp(K,j),j}return R instanceof Promise?R.then(j=>(Jp(P,j),j)).catch(j=>(Jp(K,j),Promise.reject(j))):(Jp(P,R),R)};return D[Y$]=!0,D[R9]=A,D},w={_p:r,$id:e,$onAction:G$.bind(null,f),$patch:m,$reset:y,$subscribe(k,A={}){const D=G$(d,k,A.detached,()=>B()),B=i.run(()=>Ae(()=>r.state.value[e],P=>{(A.flush==="sync"?c:u)&&k({storeId:e,type:n1.direct,events:p},P)},fc({},l,A)));return D},$dispose:b},C=Gt(w);r._s.set(e,C);const E=(r._a&&r._a.runWithContext||Lge)(()=>r._e.run(()=>(i=EM()).run(()=>t({action:_}))));for(const k in E){const A=E[k];if(bn(A)&&!jge(A)||Ic(A))a||(g&&zge(A)&&(bn(A)?A.value=g[k]:fk(A,g[k])),r.state.value[e][k]=A);else if(typeof A=="function"){const D=_(A,k);E[k]=D,s.actions[k]=A}}return fc(C,E),fc(Cn(C),E),Object.defineProperty(C,"$state",{get:()=>r.state.value[e],set:k=>{m(A=>{fc(A,k)})}}),r._p.forEach(k=>{fc(C,i.run(()=>k({store:C,app:r._a,pinia:r,options:s})))}),g&&a&&n.hydrate&&n.hydrate(C.$state,g),u=!0,c=!0,C}/*! #__NO_SIDE_EFFECTS__ */function by(e,t,n){let r,o;const a=typeof t=="function";typeof e=="string"?(r=e,o=a?n:t):(o=e,r=e.id);function i(s,l){const u=Ave();return s=s||(u?qe(Yee,null):null),s&&E_(s),s=Gee,s._s.has(r)||(a?Jee(r,t,o,s):Hge(r,o,s)),s._s.get(r)}return i.$id=r,i}const Uge="2.9.3",X$=Symbol("INSTALLED_KEY"),Zee=Symbol(),r1="el",Wge="is-",Vd=(e,t,n,r,o)=>{let a=`${e}-${t}`;return n&&(a+=`-${n}`),r&&(a+=`__${r}`),o&&(a+=`--${o}`),a},Qee=Symbol("namespaceContextKey"),HM=e=>{const t=e||(xt()?qe(Qee,H(r1)):H(r1));return O(()=>h(t)||r1)},De=(e,t)=>{const n=HM(t);return{namespace:n,b:(v="")=>Vd(n.value,e,v,"",""),e:v=>v?Vd(n.value,e,"",v,""):"",m:v=>v?Vd(n.value,e,"","",v):"",be:(v,m)=>v&&m?Vd(n.value,e,v,m,""):"",em:(v,m)=>v&&m?Vd(n.value,e,"",v,m):"",bm:(v,m)=>v&&m?Vd(n.valu
height:0 !important;
visibility:hidden !important;
${j_()?"":"overflow:hidden !important;"}
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
`,fxe=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function pxe(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),o=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:fxe.map(i=>`${i}:${t.getPropertyValue(i)}`).join(";"),paddingSize:r,borderSize:o,boxSizing:n}}function QL(e,t=1,n){var r;as||(as=document.createElement("textarea"),document.body.appendChild(as));const{paddingSize:o,borderSize:a,boxSizing:i,contextStyle:s}=pxe(e);as.setAttribute("style",`${s};${dxe}`),as.value=e.value||e.placeholder||"";let l=as.scrollHeight;const u={};i==="border-box"?l=l+a:i==="content-box"&&(l=l-o),as.value="";const c=as.scrollHeight-o;if(rt(t)){let d=c*t;i==="border-box"&&(d=d+o+a),l=Math.max(d,l),u.minHeight=`${d}px`}if(rt(n)){let d=c*n;i==="border-box"&&(d=d+o+a),l=Math.min(d,l)}return u.height=`${l}px`,(r=as.parentNode)==null||r.removeChild(as),as=void 0,u}const nr=e=>e,hxe=Ie({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),Bo=e=>ps(hxe,e),yP=Ie({id:{type:String,default:void 0},size:Rr,disabled:Boolean,modelValue:{type:ce([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:ce([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,showPassword:Boolean,showWordLimit:Boolean,suffixIcon:{type:En},prefixIcon:{type:En},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:ce([Object,Array,String]),default:()=>nr({})},autofocus:Boolean,rows:{type:Number,default:2},...Bo(["ariaLabel"])}),vxe={[_t]:e=>Ze(e),input:e=>Ze(e),change:e=>Ze(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},gxe=["class","style"],mxe=/^on[A-Z]/,ky=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,r=O(()=>((n==null?void 0:n.value)||[]).concat(gxe)),o=xt();return O(o?()=>{var a;return Q1(Object.entries((a=o.proxy)==null?void 0:a.$attrs).filter(([i])=>!r.value.includes(i)&&!(t&&mxe.test(i))))}:()=>({}))},Ip=Symbol("formContextKey"),wl=Symbol("formItemContextKey"),eV={prefix:Math.floor(Math.random()*1e4),current:0},yxe=Symbol("elIdInjection"),bP=()=>xt()?qe(yxe,eV):eV,To=e=>{const t=bP(),n=HM();return bk(()=>h(e)||`${n.value}-id-${t.prefix}-${t.current++}`)},jo=()=>{const e=qe(Ip,void 0),t=qe(wl,void 0);return{form:e,formItem:t}},Qi=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=H(!1)),r||(r=H(!1));const o=H();let a;const i=O(()=>{var s;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((s=t.inputIds)==null?void 0:s.length)<=1)});return Ct(()=>{a=Ae([un(e,"id"),n],([s,l])=>{const u=s??(l?void 0:To().value);u!==o.value&&(t!=null&&t.removeInputId&&(o.value&&t.removeInputId(o.value),!(r!=null&&r.value)&&!l&&u&&t.addInputId(u)),o.value=u)},{immediate:!0})}),xd(()=>{a&&a(),t!=null&&t.removeInputId&&o.value&&t.removeInputId(o.value)}),{isLabeledByFormItem:i,inputId:o}},Dne=e=>{const t=xt();return O(()=>{var n,r;return(r=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:r[e]})},Dr=(e,t={})=>{const n=H(void 0),r=t.prop?n:Dne("size"),o=t.global?n:tne(),a=t.form?{size:void 0}:qe(Ip,void 0),i=t.formItem?{size:
Add an empty element to avoid render label,
do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
`),T("span")]),_:1},8,["model-value","label","disabled","onUpdate:modelValue","onClick"])):e.isLeaf&&e.node.checked?(x(),ge(u,{key:2,class:I(e.ns.e("prefix"))},{default:ae(()=>[Q(l)]),_:1},8,["class"])):fe("v-if",!0),fe(" content "),Q(c),fe(" postfix "),e.isLeaf?fe("v-if",!0):(x(),M(Je,{key:3},[e.node.loading?(x(),ge(u,{key:0,class:I([e.ns.is("loading"),e.ns.e("postfix")])},{default:ae(()=>[Q(d)]),_:1},8,["class"])):(x(),ge(u,{key:1,class:I(["arrow-right",e.ns.e("postfix")])},{default:ae(()=>[Q(f)]),_:1},8,["class"]))],64))],42,["id","aria-haspopup","aria-owns","aria-expanded","tabindex","onMouseenter","onFocus","onClick"])}var _De=Ne(bDe,[["render",wDe],["__file","node.vue"]]);const CDe=F({name:"ElCascaderMenu",components:{Loading:Ps,ElIcon:Ye,ElScrollbar:Pl,ElCascaderNode:_De},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=xt(),n=De("cascader-menu"),{t:r}=zt(),o=To();let a=null,i=null;const s=qe(RP),l=H(null),u=O(()=>!e.nodes.length),c=O(()=>!s.initialLoaded),d=O(()=>`${o.value}-${e.index}`),f=m=>{a=m.target},p=m=>{if(!(!s.isHoverMenu||!a||!l.value))if(a.contains(m.target)){g();const y=t.vnode.el,{left:b}=y.getBoundingClientRect(),{offsetWidth:_,offsetHeight:w}=y,C=m.clientX-b,S=a.offsetTop,E=S+a.offsetHeight;l.value.innerHTML=`
<path style="pointer-events: auto;" fill="transparent" d="M${C} ${S} L${_} 0 V${S} Z" />
<path style="pointer-events: auto;" fill="transparent" d="M${C} ${E} L${_} ${w} V${E} Z" />
`}else i||(i=window.setTimeout(v,s.config.hoverThreshold))},g=()=>{i&&(clearTimeout(i),i=null)},v=()=>{l.value&&(l.value.innerHTML="",g())};return{ns:n,panel:s,hoverZone:l,isEmpty:u,isLoading:c,menuId:d,t:r,handleExpand:f,handleMouseMove:p,clearHoverZone:v}}});function SDe(e,t,n,r,o,a){const i=Ge("el-cascader-node"),s=Ge("loading"),l=Ge("el-icon"),u=Ge("el-scrollbar");return x(),ge(u,{key:e.menuId,tag:"ul",role:"menu",class:I(e.ns.b()),"wrap-class":e.ns.e("wrap"),"view-class":[e.ns.e("list"),e.ns.is("empty",e.isEmpty)],onMousemove:e.handleMouseMove,onMouseleave:e.clearHoverZone},{default:ae(()=>{var c;return[(x(!0),M(Je,null,Mt(e.nodes,d=>(x(),ge(i,{key:d.uid,node:d,"menu-id":e.menuId,onExpand:e.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),e.isLoading?(x(),M("div",{key:0,class:I(e.ns.e("empty-text"))},[Q(l,{size:"14",class:I(e.ns.is("loading"))},{default:ae(()=>[Q(s)]),_:1},8,["class"]),Tt(" "+Re(e.t("el.cascader.loading")),1)],2)):e.isEmpty?(x(),M("div",{key:1,class:I(e.ns.e("empty-text"))},[de(e.$slots,"empty",{},()=>[Tt(Re(e.t("el.cascader.noData")),1)])],2)):(c=e.panel)!=null&&c.isHoverMenu?(x(),M("svg",{key:2,ref:"hoverZone",class:I(e.ns.e("hover-zone"))},null,2)):fe("v-if",!0)]}),_:3},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var EDe=Ne(CDe,[["render",SDe],["__file","menu.vue"]]);const IP=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),nl=e=>gy(e);let xDe=0;const kDe=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};let Dk=class Mk{constructor(t,n,r,o=!1){this.data=t,this.config=n,this.parent=r,this.root=o,this.uid=xDe++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:a,label:i,children:s}=n,l=t[s],u=kDe(this);this.level=o?0:r?r.level+1:1,this.value=t[a],this.label=t[i],this.pathNodes=u,this.pathValues=u.map(c=>c.value),this.pathLabels=u.map(c=>c.label),this.childrenData=l,this.children=(l||[]).map(c=>new Mk(c,n,this)),this.loaded=!n.lazy||this.isLeaf||!oi(l)}get isDisabled(){const{data:t,parent:n,config:r}=this,{disabled:o,checkStrictly:a}=r;return(et(o)?o(t,this):!!t[o])||!a&&(n==null?void 0:n.isDisabled)}get isLeaf(){const{data:t,config:n,childrenData:r,loaded:o}=this,{lazy:a,leaf:i}=n,s=et(i)?i(t,this):t[i];return Qt(s)?a&&!o?!1:!(Pe(r)&&r.length):!!s}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:r}=this,o=new Mk(t,this.config,this);return Pe(n)?n.push(t):this.childrenData=[t],r.push(o),o}calcText(t,n){const r=t?this.pathLabels.join(n):this.label;return this.text=r,r}broadcast(t,...n){const r=`onParent${nl(t)}`;this.children.forEach(o=>{o&&(o.broadcast(t,...n),o[r]&&o[r](...n))})}emit(t,...n){const{parent:r}=this,o=`onChild${nl(t)}`;r&&(r[o]&&r[o](...n),r.emit(t,...n))}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,n=t.filter(o=>!o.isDisabled),r=n.length?n.every(o=>o.checked):!1;this.setCheckState(r)}setCheckState(t){const n=this.children.length,r=this.children.reduce((o,a)=>{const i=a.checked?1:a.indeterminate?.5:0;return o+i},0);this.checked=this.loaded&&this.children.filter(o=>!o.isDisabled).every(o=>o.loaded&&o.checked)&&t,this.indeterminate=this.loaded&&r!==n&&r>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:n,multiple:r}=this.config;n||!r?this.checked=t:(this.broadcast("check",t),this.setCheckState(t),this.emit("check"))}};const Pk=(e,t)=>e.reduce((n,r)=>(r.isLeaf?n.push(r):(!t&&n.push(r),n=n.concat(Pk(r.children,t))),n),[]);class BV{constructor(t,n){this.config=n;const r=(t||[]).map(o=>new Dk(o,this.config));this.nodes=r,this.allNodes=Pk(r,!1),this.leafNodes=Pk(r,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,n){const r=n?n.appendChild(t):new Dk(t,this.config);n||this.nodes.push(r),this.allNodes.push(r),r.isLeaf&&this.leafNodes.push(r)}appendNodes(t,n){t.forEach(r=>this.appendNode(r,n))}getNodeByValue(t,n=!1){return!t&&t!==0?null:this.getFlattedNodes(n).find(o=>Fo(o.value,t)||Fo(o.pathValues,t))||null}getS
(?:
(?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
(?:`+r+":){6}(?:"+n+"|:"+r+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
(?:`+r+":){5}(?::"+n+"|(?::"+r+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
(?:`+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
(?:`+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
(?:`+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
(?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
(?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),a=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),i=new RegExp("^"+n+"$"),s=new RegExp("^"+o+"$"),l=function(w){return w&&w.exact?a:new RegExp("(?:"+t(w)+n+t(w)+")|(?:"+t(w)+o+t(w)+")","g")};l.v4=function(_){return _&&_.exact?i:new RegExp(""+t(_)+n+t(_),"g")},l.v6=function(_){return _&&_.exact?s:new RegExp(""+t(_)+o+t(_),"g")};var u="(?:(?:[a-z]+:)?//)",c="(?:\\S+(?::\\S*)?@)?",d=l.v4().source,f=l.v6().source,p="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",g="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",v="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",m="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',b="(?:"+u+"|www\\.)"+c+"(?:localhost|"+d+"|"+f+"|"+p+g+v+")"+m+y;return tb=new RegExp("(?:^"+b+"$)","i"),tb},JV={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},N2={integer:function(t){return N2.number(t)&&parseInt(t,10)===t},float:function(t){return N2.number(t)&&!N2.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!N2.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(JV.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(yIe())},hex:function(t){return typeof t=="string"&&!!t.match(JV.hex)}},bIe=function(t,n,r,o,a){if(t.required&&n===void 0){Coe(t,n,r,o,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;i.indexOf(s)>-1?N2[s](n)||o.push(si(a.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&o.push(si(a.messages.types[s],t.fullField,t.type))},wIe=function(t,n,r,o,a){var i=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=n,d=null,f=typeof n=="number",p=typeof n=="string",g=Array.isArray(n);if(f?d="number":p?d="string":g&&(d="array"),!d)return!1;g&&(c=n.length),p&&(c=n.replace(u,"_").length),i?c!==t.len&&o.push(si(a.messages[d].len,t.fullField,t.len)):s&&!l&&c<t.min?o.push(si(a.messages[d].min,t.fullField,t.min)):l&&!s&&c>t.max?o.push(si(a.messages[d].max,t.fullField,t.max)):s&&l&&(c<t.min||c>t.max)&&o.push(si(a.messages[d].range,t.fullField,t.min,t.max))},eh="enum",_Ie=function(t,n,r,o,a){t[eh]=Array.isArray(t[eh])?t[eh]:[],t[eh].indexOf(n)===-1&&o.push(si(a.messages[eh],t.fullField,t[eh].join(", ")))},CIe=function(t,n,r,o,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(si(a.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(n)||o.push(si(a.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Mn={required:Coe,whitespace:mIe,type:bIe,range:wIe,enum:_Ie,pattern:CIe},SIe=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(bo(n,"string")&&!t.required)return r();Mn.required(t,n,o,i,a,"string"),bo(n,"string")||(Mn.type(t,n,o,i,a),Mn.range(t,n,o,i,a),Mn.pattern(t,n,o,i,a),t.whitespace===!0&&Mn.whitespace(t,n,o,i,a))}r(i)},EIe=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(bo(n)&&!t.required)return r();Mn.required(t,n,o,i,a),n!==void 0&&Mn.type(t,n,o,i,a)}r(i)},xIe=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),bo(n)&&!t.required)return r();Mn.required(t,n,o,i,a),n!==void 0&&(Mn.type(t,n,o,i,a),Mn.range(t,n,o,i,a))}r(i)},kIe=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(
M 50 50
m 0 ${w?"":"-"}${_}
a ${_} ${_} 0 1 1 0 ${w?"-":""}${_*2}
a ${_} ${_} 0 1 1 0 ${w?"":"-"}${_*2}
`}),l=O(()=>2*Math.PI*i.value),u=O(()=>t.type==="dashboard"?.75:1),c=O(()=>`${-1*l.value*(1-u.value)/2}px`),d=O(()=>({strokeDasharray:`${l.value*u.value}px, ${l.value}px`,strokeDashoffset:c.value})),f=O(()=>({strokeDasharray:`${l.value*u.value*(t.percentage/100)}px, ${l.value}px`,strokeDashoffset:c.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),p=O(()=>{let _;return t.color?_=b(t.percentage):_=n[t.status]||n.default,_}),g=O(()=>t.status==="warning"?xy:t.type==="line"?t.status==="success"?$_:Ml:t.status==="success"?Ev:Hi),v=O(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),m=O(()=>t.format(t.percentage));function y(_){const w=100/_.length;return _.map((S,E)=>Ze(S)?{color:S,percentage:(E+1)*w}:S).sort((S,E)=>S.percentage-E.percentage)}const b=_=>{var w;const{color:C}=t;if(et(C))return C(_);if(Ze(C))return C;{const S=y(C);for(const E of S)if(E.percentage>_)return E.color;return(w=S[S.length-1])==null?void 0:w.color}};return(_,w)=>(x(),M("div",{class:I([h(r).b(),h(r).m(_.type),h(r).is(_.status),{[h(r).m("without-text")]:!_.showText,[h(r).m("text-inside")]:_.textInside}]),role:"progressbar","aria-valuenow":_.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[_.type==="line"?(x(),M("div",{key:0,class:I(h(r).b("bar"))},[T("div",{class:I(h(r).be("bar","outer")),style:Qe({height:`${_.strokeWidth}px`})},[T("div",{class:I([h(r).be("bar","inner"),{[h(r).bem("bar","inner","indeterminate")]:_.indeterminate},{[h(r).bem("bar","inner","striped")]:_.striped},{[h(r).bem("bar","inner","striped-flow")]:_.stripedFlow}]),style:Qe(h(o))},[(_.showText||_.$slots.default)&&_.textInside?(x(),M("div",{key:0,class:I(h(r).be("bar","innerText"))},[de(_.$slots,"default",{percentage:_.percentage},()=>[T("span",null,Re(h(m)),1)])],2)):fe("v-if",!0)],6)],6)],2)):(x(),M("div",{key:1,class:I(h(r).b("circle")),style:Qe({height:`${_.width}px`,width:`${_.width}px`})},[(x(),M("svg",{viewBox:"0 0 100 100"},[T("path",{class:I(h(r).be("circle","track")),d:h(s),stroke:`var(${h(r).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":_.strokeLinecap,"stroke-width":h(a),fill:"none",style:Qe(h(d))},null,14,["d","stroke","stroke-linecap","stroke-width"]),T("path",{class:I(h(r).be("circle","path")),d:h(s),stroke:h(p),fill:"none",opacity:_.percentage?1:0,"stroke-linecap":_.strokeLinecap,"stroke-width":h(a),style:Qe(h(f))},null,14,["d","stroke","opacity","stroke-linecap","stroke-width"])]))],6)),(_.showText||_.$slots.default)&&!_.textInside?(x(),M("div",{key:2,class:I(h(r).e("text")),style:Qe({fontSize:`${h(v)}px`})},[de(_.$slots,"default",{percentage:_.percentage},()=>[_.status?(x(),ge(h(Ye),{key:1},{default:ae(()=>[(x(),ge(kt(h(g))))]),_:1})):(x(),M("span",{key:0},Re(h(m)),1))])],6)):fe("v-if",!0)],10,["aria-valuenow"]))}});var i$e=Ne(a$e,[["__file","progress.vue"]]);const Roe=mt(i$e),s$e=Ie({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:ce([Array,Object]),default:()=>nr(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:ce([Array,Object]),default:()=>[I2,I2,I2]},voidIcon:{type:En,default:()=>Ane},disabledVoidIcon:{type:En,default:()=>I2},disabled:Boolean,allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:ce(Array),default:()=>nr(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:Rr,clearable:Boolean,...Bo(["ariaLabel"])}),l$e={[Sn]:e=>rt(e),[_t]:e=>rt(e)},u$e=F({name:"ElRate"}),c$e=F({...u$e,props:s$e,emits:l$e,setup(e,{expose:t,emit:n}){const r=e;function o(R,j){const $=L=>St(L),N=Object.keys(j).map(L=>+L).filter(L=>{const V=j[L];return($(V)?V.excluded:!1)?R<L:R<=L}).sort((L,V)=>L-V),Y=j[N[0]];return $(Y)&&Y.value||Y}const a=qe(Ip,void 0),i=qe(wl,void 0),s=Dr(),l=De("rate"),{inputId:u,isLabeledByFormItem:c}=Qi(r,{formItemContext:i}),d=H(r.modelValue),f=H(-1),p=H(!0),g=O(()=>[l.b(),l.m(s.value)]),v=O
* Checks if an event is supported in the current execution environment.
*
* NOTE: This will not work correctly for non-generic events such as `change`,
* `reset`, `load`, `error`, and `select`.
*
* Borrows from Modernizr.
*
* @param {string} eventNameSuffix Event name, e.g. "click".
* @param {?boolean} capture Check if the capture phase is supported.
* @return {boolean} True if the event is supported.
* @internal
* @license Modernizr 3.0.0pre (Custom Build) | MIT
*/const tze=function(e,t){if(e&&e.addEventListener){const n=function(r){const o=eze(r);t&&Reflect.apply(t,this,[r,o])};e.addEventListener("wheel",n,{passive:!0})}},nze={beforeMount(e,t){tze(e,t.value)}};let rze=1;const oze=F({name:"ElTable",directives:{Mousewheel:nze},components:{TableHeader:BVe,TableBody:zVe,TableFooter:UVe,ElScrollbar:Pl,hColgroup:iae},props:GVe,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change","scroll"],setup(e){const{t}=zt(),n=De("table"),r=xt();Rt(Rl,r);const o=SVe(r,e);r.store=o;const a=new xVe({store:r.store,table:r,fit:e.fit,showHeader:e.showHeader});r.layout=a;const i=O(()=>(o.states.data.value||[]).length===0),{setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:d,toggleAllSelection:f,toggleRowExpansion:p,clearSort:g,sort:v,updateKeyChildren:m}=WVe(o),{isHidden:y,renderExpanded:b,setDragVisible:_,isGroup:w,handleMouseLeave:C,handleHeaderFooterMousewheel:S,tableSize:E,emptyBlockStyle:k,handleFixedMousewheel:A,resizeProxyVisible:D,bodyWidth:B,resizeState:P,doLayout:K,tableBodyStyles:X,tableLayout:z,scrollbarViewStyle:R,scrollbarStyle:j}=KVe(e,a,o,r),{scrollBarRef:$,scrollTo:N,setScrollLeft:Y,setScrollTop:L}=YVe(),V=Wa(K,50),U=`${n.namespace.value}-table_${rze++}`;r.tableId=U,r.state={isGroup:w,resizeState:P,doLayout:K,debouncedUpdateLayout:V};const G=O(()=>{var q;return(q=e.sumText)!=null?q:t("el.table.sumText")}),Z=O(()=>{var q;return(q=e.emptyText)!=null?q:t("el.table.emptyText")}),ee=O(()=>aae(o.states.originColumns.value)[0]);return qVe(r),xn(()=>{V.cancel()}),{ns:n,layout:a,store:o,columns:ee,handleHeaderFooterMousewheel:S,handleMouseLeave:C,tableId:U,tableSize:E,isHidden:y,isEmpty:i,renderExpanded:b,resizeProxyVisible:D,resizeState:P,isGroup:w,bodyWidth:B,tableBodyStyles:X,emptyBlockStyle:k,debouncedUpdateLayout:V,handleFixedMousewheel:A,setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:d,toggleAllSelection:f,toggleRowExpansion:p,clearSort:g,doLayout:K,sort:v,updateKeyChildren:m,t,setDragVisible:_,context:r,computedSumText:G,computedEmptyText:Z,tableLayout:z,scrollbarViewStyle:R,scrollbarStyle:j,scrollBarRef:$,scrollTo:N,setScrollLeft:Y,setScrollTop:L,allowDragLastColumn:e.allowDragLastColumn}}});function aze(e,t,n,r,o,a){const i=Ge("hColgroup"),s=Ge("table-header"),l=Ge("table-body"),u=Ge("table-footer"),c=Ge("el-scrollbar"),d=b_("mousewheel");return x(),M("div",{ref:"tableWrapper",class:I([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:Qe(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:e.handleMouseLeave},[T("div",{class:I(e.ns.e("inner-wrapper"))},[T("div",{ref:"hiddenColumns",class:"hidden-columns"},[de(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?wt((x(),M("div",{key:0,ref:"headerWrapper",class:I(e.ns.e("header-wrapper"))},[T("table",{ref:"tableHeader",class:I(e.ns.e("header")),style:Qe(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[Q(i,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),Q(s,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,"allow-drag-last-column":e.allowDragLastColumn,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","append-filter-panel-to","all
`||u==="\r"){i=l;continue}if(a.includes(u)){const c=i===-1?r:i;s={pattern:o.slice(l+1,c),start:l+1,end:c,prefix:u,prefixIndex:l,splitIndex:i,selectionEnd:r};break}}return s},RKe=(e,t={debug:!1,useSelectionEnd:!1})=>{const n=e.selectionStart!==null?e.selectionStart:0,r=e.selectionEnd!==null?e.selectionEnd:0,o=t.useSelectionEnd?r:n,a=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"];if(t.debug){const f=document.querySelector("#input-textarea-caret-position-mirror-div");f!=null&&f.parentNode&&f.parentNode.removeChild(f)}const i=document.createElement("div");i.id="input-textarea-caret-position-mirror-div",document.body.appendChild(i);const s=i.style,l=window.getComputedStyle(e),u=e.nodeName==="INPUT";s.whiteSpace=u?"nowrap":"pre-wrap",u||(s.wordWrap="break-word"),s.position="absolute",t.debug||(s.visibility="hidden"),a.forEach(f=>{if(u&&f==="lineHeight")if(l.boxSizing==="border-box"){const p=Number.parseInt(l.height),g=Number.parseInt(l.paddingTop)+Number.parseInt(l.paddingBottom)+Number.parseInt(l.borderTopWidth)+Number.parseInt(l.borderBottomWidth),v=g+Number.parseInt(l.lineHeight);p>v?s.lineHeight=`${p-g}px`:p===v?s.lineHeight=l.lineHeight:s.lineHeight="0"}else s.lineHeight=l.height;else s[f]=l[f]}),j_()?e.scrollHeight>Number.parseInt(l.height)&&(s.overflowY="scroll"):s.overflow="hidden",i.textContent=e.value.slice(0,Math.max(0,o)),u&&i.textContent&&(i.textContent=i.textContent.replace(/\s/g," "));const c=document.createElement("span");c.textContent=e.value.slice(Math.max(0,o))||".",c.style.position="relative",c.style.left=`${-e.scrollLeft}px`,c.style.top=`${-e.scrollTop}px`,i.appendChild(c);const d={top:c.offsetTop+Number.parseInt(l.borderTopWidth),left:c.offsetLeft+Number.parseInt(l.borderLeftWidth),height:Number.parseInt(l.fontSize)*1.5};return t.debug?c.style.backgroundColor="#aaa":document.body.removeChild(i),d.left>=e.clientWidth&&(d.left=e.clientWidth),d},IKe=Ie({...yP,options:{type:ce(Array),default:()=>[]},prefix:{type:ce([String,Array]),default:"@",validator:e=>Ze(e)?e.length===1:e.every(t=>Ze(t)&&t.length===1)},split:{type:String,default:" ",validator:e=>e.length===1},filterOption:{type:ce([Boolean,Function]),default:()=>PKe,validator:e=>e===!1?!0:et(e)},placement:{type:ce(String),default:"bottom"},showArrow:Boolean,offset:{type:Number,default:0},whole:Boolean,checkIsWhole:{type:ce(Function)},modelValue:String,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:ce(Object),default:()=>({})}}),NKe={[_t]:e=>Ze(e),search:(e,t)=>Ze(e)&&Ze(t),select:(e,t)=>Ze(e.value)&&Ze(t),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},FKe=Ie({options:{type:ce(Array),default:()=>[]},loading:Boolean,disabled:Boolean,contentId:String,ariaLabel:String}),$Ke={select:e=>Ze(e.value)},LKe=F({name:"ElMentionDropdown"}),VKe=F({...LKe,props:FKe,emits:$Ke,setup(e,{expose:t,emit:n}){const r=e,o=De("mention"),{t:a}=zt(),i=H(-1),s=H(),l=H(),u=H(),c=(_,w)=>[o.be("dropdown","item"),o.is("hovering",i.value===w),o.is("disabled",_.disabled||r.disabled)],d=_=>{_.disabled||r.disabled||n("select",_)},f=_=>{i.value=_},p=O(()=>r.disabled||r.options.every(_=>_.disabled)),g=O(()=>r.options[i.value]),v=()=>{g.value&&n("select",g.value)},m=_=>{const{options:w}=r;if(w.length===0||p.value)return;_==="next"?(i.value++,i.value===w.length&&(i.value=0)):_==="prev"&&(i.value--,i.value<0&&(i.value=w.length-1));const C=w[i.value];if(C.disabled){m(_);return}tt(()=>y(C))},y=_=>{var w,C,S,E;const{options:k}=r,A=k.findIndex(B=>B.value===_.value),D=(w=l.value)==null?void 0:w[A];if(D){const B=(S=(C=u.value)==null?void 0:C.querySelector)==null?void 0:S.call(C,`.${o.be("dropdown","wrap")}`);B&&cP(B,D)}(E=s.value)==null||E.handleScroll()};return Ae(()=>r.options
* vue-router v4.5.0
* (c) 2024 Eduardo San Martin Morote
* @license MIT
*/const zh=typeof document<"u";function Cie(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Wqe(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Cie(e.default)}const Wn=Object.assign;function dC(e,t){const n={};for(const r in t){const o=t[r];n[r]=Is(o)?o.map(e):e(o)}return n}const d1=()=>{},Is=Array.isArray,Sie=/#/g,Kqe=/&/g,qqe=/\//g,Gqe=/=/g,Yqe=/\?/g,Eie=/\+/g,Xqe=/%5B/g,Jqe=/%5D/g,xie=/%5E/g,Zqe=/%60/g,kie=/%7B/g,Qqe=/%7C/g,Aie=/%7D/g,eGe=/%20/g;function DB(e){return encodeURI(""+e).replace(Qqe,"|").replace(Xqe,"[").replace(Jqe,"]")}function tGe(e){return DB(e).replace(kie,"{").replace(Aie,"}").replace(xie,"^")}function kA(e){return DB(e).replace(Eie,"%2B").replace(eGe,"+").replace(Sie,"%23").replace(Kqe,"%26").replace(Zqe,"`").replace(kie,"{").replace(Aie,"}").replace(xie,"^")}function nGe(e){return kA(e).replace(Gqe,"%3D")}function rGe(e){return DB(e).replace(Sie,"%23").replace(Yqe,"%3F")}function oGe(e){return e==null?"":rGe(e).replace(qqe,"%2F")}function vm(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const aGe=/\/$/,iGe=e=>e.replace(aGe,"");function fC(e,t,n="/"){let r,o={},a="",i="";const s=t.indexOf("#");let l=t.indexOf("?");return s<l&&s>=0&&(l=-1),l>-1&&(r=t.slice(0,l),a=t.slice(l+1,s>-1?s:t.length),o=e(a)),s>-1&&(r=r||t.slice(0,s),i=t.slice(s,t.length)),r=cGe(r??t,n),{fullPath:r+(a&&"?")+a+i,path:r,query:o,hash:vm(i)}}function sGe(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Kz(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function lGe(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&q0(t.matched[r],n.matched[o])&&Oie(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function q0(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Oie(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!uGe(e[n],t[n]))return!1;return!0}function uGe(e,t){return Is(e)?qz(e,t):Is(t)?qz(t,e):e===t}function qz(e,t){return Is(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function cGe(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let a=n.length-1,i,s;for(i=0;i<r.length;i++)if(s=r[i],s!==".")if(s==="..")a>1&&a--;else break;return n.slice(0,a).join("/")+"/"+r.slice(i).join("/")}const Lu={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var gm;(function(e){e.pop="pop",e.push="push"})(gm||(gm={}));var f1;(function(e){e.back="back",e.forward="forward",e.unknown=""})(f1||(f1={}));function dGe(e){if(!e)if(zh){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),iGe(e)}const fGe=/^[^#]+#/;function pGe(e,t){return e.replace(fGe,"#")+t}function hGe(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const o5=()=>({left:window.scrollX,top:window.scrollY});function vGe(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=hGe(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Gz(e,t){return(history.state?history.state.position-t:-1)+e}const AA=new Map;function gGe(e,t){AA.set(e,t)}function mGe(e){const t=AA.get(e);return AA.delete(e),t}let yGe=()=>location.protocol+"//"+location.host;function Tie(e,t){const{pathname:n,search:r,hash:o}=t,a=e.indexOf("#");if(a>-1){let s=o.includes(e.slice(a))?e.slice(a).length:1,l=o.slice(s);return l[0]!=="/"&&(l="/"+l),Kz(l,"")}return Kz(n,e)+r+o}function bGe(e,t,n,r){let o=[],a=[],i=null;const s=({state:f})=>{const p=Tie(e,location),g=n.value,v=t.value;let m=0;if
`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&rXe[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},vj=Symbol("internals");function fg(e){return e&&String(e).trim().toLowerCase()}function I6(e){return e===!1||e==null?e:We.isArray(e)?e.map(I6):String(e)}function aXe(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const iXe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function vC(e,t,n,r,o){if(We.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!We.isString(t)){if(We.isString(r))return t.indexOf(r)!==-1;if(We.isRegExp(r))return r.test(t)}}function sXe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function lXe(e,t){const n=We.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,a,i){return this[r].call(this,t,o,a,i)},configurable:!0})})}class La{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function a(s,l,u){const c=fg(l);if(!c)throw new Error("header name must be a non-empty string");const d=We.findKey(o,c);(!d||o[d]===void 0||u===!0||u===void 0&&o[d]!==!1)&&(o[d||l]=I6(s))}const i=(s,l)=>We.forEach(s,(u,c)=>a(u,c,l));if(We.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(We.isString(t)&&(t=t.trim())&&!iXe(t))i(oXe(t),n);else if(We.isHeaders(t))for(const[s,l]of t.entries())a(l,s,r);else t!=null&&a(n,t,r);return this}get(t,n){if(t=fg(t),t){const r=We.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return aXe(o);if(We.isFunction(n))return n.call(this,o,r);if(We.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=fg(t),t){const r=We.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||vC(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function a(i){if(i=fg(i),i){const s=We.findKey(r,i);s&&(!n||vC(r,r[s],s,n))&&(delete r[s],o=!0)}}return We.isArray(t)?t.forEach(a):a(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const a=n[r];(!t||vC(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const n=this,r={};return We.forEach(this,(o,a)=>{const i=We.findKey(r,a);if(i){n[i]=I6(o),delete n[a];return}const s=t?sXe(a):String(a).trim();s!==a&&delete n[a],n[s]=I6(o),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return We.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&We.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[vj]=this[vj]={accessors:{}}).accessors,o=this.prototype;function a(i){const s=fg(i);r[s]||(lXe(o,i),r[s]=!0)}return We.isArray(t)?t.forEach(a):a(t),this}}La.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);We.reduceDescriptors(La.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});We.freezeMethods(La);function gC(e,t){const n=this||Fy,r=t||n,o=La.from(r.headers);let a=r.data;return We.forEach(e,function(s){a=s.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function Xie(e){return!!(e&&e.__CANCEL__)}function Pv(e,t,n){sn.call(this,e??"canceled",sn.ERR_CANCELED,t,n),this.name="CanceledError"}We.inherits(Pv,sn,{__CANCEL__:!0});function Jie(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new sn("Request failed with status code "+n.status,[sn.ERR_BAD_REQUEST,sn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function uXe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function cXe(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,a=0,i;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[a];i||(i=u),n[o]=l,r[o]=u;let d=a,f=0;for(;d!==o;)f+=n[d++],d=d%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),u-i<t)return;const p=c&&u-c;return p?Math.round(f*1e3/p):void 0}}function dXe(e,t){let n=0,r=1e3/t,o,a;const i=(u,c=Date.now())=>{n=c,o=null,a&&(clearTimeout(a),a=null),e.apply(null,u)};return[(...u)=>{const c=Date.now(),d=c-n;d>=r?i(u,c):(o=u,a||(a=setTimeout(()=>{a=null,i(o)},r-d)))},()=>o&&i(o)]}const n8=(e,t,n=3)=>{let r=0;const o=cXe(50,250);return dXe(a=>{const i=a.loaded,s=a.lengthComputable?a.total:void 0,l=i-r,u=o(l),c=i<=s;r=i;const d={loaded:i,total:s,progress:s?i/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&c?(s-i)/u:void 0,event:a,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(d)},n)},gj=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},mj=e=>(...t)=>We.asap(()=>e(...t)),fXe=ea.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ea.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ea.origin),ea.navigator&&/(msie|trident)/i.test(ea.navigator.userAgent)):()=>!0,pXe=ea.hasStandardBrowserEnv?{write(e,t,n,r,o,a){const i=[e+"="+encodeURIComponent(t)];We.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),We.isString(r)&&i.push("path="+r),We.isString(o)&&i.push("domain="+o),a===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function hXe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function vXe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Zie(e,t){return e&&!hXe(t)?vXe(e,t):t}const yj=e=>e instanceof La?{...e}:e;function hp(e,t){t=t||{};const n={};function r(u,c,d,f){return We.isPlainObject(u)&&We.isPlainObject(c)?We.merge.call({caseless:f},u,c):We.isPlainObject(c)?We.merge({},c):We.isArray(c)?c.slice():c}function o(u,c,d,f){if(We.isUndefined(c)){if(!We.isUndefined(u))return r(void 0,u,d,f)}else return r(u,c,d,f)}function a(u,c){if(!We.isUndefined(c))return r(void 0,c)}function i(u,c){if(We.isUndefined(c)){if(!We.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function s(u,c,d){if(d in t)return r(u,c);if(d in e)return r(void 0,u)}const l={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncodin
`+a.map(_j).join(`
`):" "+_j(a[0]):"as no adapter specified";throw new sn("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:IA};function mC(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Pv(null,e)}function Cj(e){return mC(e),e.headers=La.from(e.headers),e.data=gC.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),nse.getAdapter(e.adapter||Fy.adapter)(e).then(function(r){return mC(e),r.data=gC.call(e,e.transformResponse,r),r.headers=La.from(r.headers),r},function(r){return Xie(r)||(mC(e),r&&r.response&&(r.response.data=gC.call(e,e.transformResponse,r.response),r.response.headers=La.from(r.response.headers))),Promise.reject(r)})}const rse="1.7.9",d5={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{d5[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Sj={};d5.transitional=function(t,n,r){function o(a,i){return"[Axios v"+rse+"] Transitional option '"+a+"'"+i+(r?". "+r:"")}return(a,i,s)=>{if(t===!1)throw new sn(o(i," has been removed"+(n?" in "+n:"")),sn.ERR_DEPRECATED);return n&&!Sj[i]&&(Sj[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,i,s):!0}};d5.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function OXe(e,t,n){if(typeof e!="object")throw new sn("options must be an object",sn.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],i=t[a];if(i){const s=e[a],l=s===void 0||i(s,a,e);if(l!==!0)throw new sn("option "+a+" must be "+l,sn.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new sn("Unknown option "+a,sn.ERR_BAD_OPTION)}}const N6={assertOptions:OXe,validators:d5},Us=N6.validators;class If{constructor(t){this.defaults=t,this.interceptors={request:new hj,response:new hj}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const a=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=hp(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:a}=n;r!==void 0&&N6.assertOptions(r,{silentJSONParsing:Us.transitional(Us.boolean),forcedJSONParsing:Us.transitional(Us.boolean),clarifyTimeoutError:Us.transitional(Us.boolean)},!1),o!=null&&(We.isFunction(o)?n.paramsSerializer={serialize:o}:N6.assertOptions(o,{encode:Us.function,serialize:Us.function},!0)),N6.assertOptions(n,{baseUrl:Us.spelling("baseURL"),withXsrfToken:Us.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=a&&We.merge(a.common,a[n.method]);a&&We.forEach(["delete","get","head","post","put","patch","common"],g=>{delete a[g]}),n.headers=La.concat(i,a);const s=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(l=l&&v.synchronous,s.unshift(v.fulfilled,v.rejected))});const u=[];this.interceptors.response.forEach(function(v){u.push(v.fulfilled,v.rejected)});let c,d=0,f;if(!l){const g=[Cj.bind(this),void 0];for(g.unshift.apply(g,s),g.push.apply(g,u),f=g.length,c=Promise.resolve(n);d<f;)c=c.then(g[d++],g[d++]);return c}f=s.length;let p=n;for(d=0;d<f;){const g=s[d++],v=s[d++];try{p=g(p)}catch(m){v.call(this,m);break}}try{c=Cj.call(this,p)}catch(g){return Promise.reject(g)}for(d=0,f=u.length;d<f;)c=c.then(u[d++],u[d++]);return c}getUri(t){t=hp(this.defaults,t);const n=Zie(t.baseURL,t.url);return qie(n,t.params,t.paramsSerializer)}}We.forEach(["delete","get","head","options"],function(t){If.prototype[t]=function(n,r){return this.request(hp(r||{},{method:t,url:n,data:(r||{}).data}))}});We.forEach(["post","put","patch"],function(t){function n(r){return function(a,i,s){return this.request(hp(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:i}))}}If.prototype[t]=n(),If.prototype[t+"Form"]=n(!0)});class IB{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const r=this;this.promise.then(o=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](o);r._listeners=null}),this.promise.then=o=>{let a;const i=new Promise(s=>{r.subscribe(s),a=s}).then(o);return i.cancel=function(){r.unsubscribe(a)},i},t(function(a,i,s){r.reason||(r.reason=new Pv(a,i,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new IB(function(o){t=o}),cancel:t}}}function TXe(e){return function(n){return e.apply(null,n)}}function DXe(e){return We.isObject(e)&&e.isAxiosError===!0}const NA={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:50
* @license MIT */(function(e,t){(function(n,r){e.exports=r()})(Bl,function(){var n={};n.version="0.2.0";var r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};n.configure=function(g){var v,m;for(v in g)m=g[v],m!==void 0&&g.hasOwnProperty(v)&&(r[v]=m);return this},n.status=null,n.set=function(g){var v=n.isStarted();g=o(g,r.minimum,1),n.status=g===1?null:g;var m=n.render(!v),y=m.querySelector(r.barSelector),b=r.speed,_=r.easing;return m.offsetWidth,s(function(w){r.positionUsing===""&&(r.positionUsing=n.getPositioningCSS()),l(y,i(g,b,_)),g===1?(l(m,{transition:"none",opacity:1}),m.offsetWidth,setTimeout(function(){l(m,{transition:"all "+b+"ms linear",opacity:0}),setTimeout(function(){n.remove(),w()},b)},b)):setTimeout(w,b)}),this},n.isStarted=function(){return typeof n.status=="number"},n.start=function(){n.status||n.set(0);var g=function(){setTimeout(function(){n.status&&(n.trickle(),g())},r.trickleSpeed)};return r.trickle&&g(),this},n.done=function(g){return!g&&!n.status?this:n.inc(.3+.5*Math.random()).set(1)},n.inc=function(g){var v=n.status;return v?(typeof g!="number"&&(g=(1-v)*o(Math.random()*v,.1,.95)),v=o(v+g,0,.994),n.set(v)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},function(){var g=0,v=0;n.promise=function(m){return!m||m.state()==="resolved"?this:(v===0&&n.start(),g++,v++,m.always(function(){v--,v===0?(g=0,n.done()):n.set((g-v)/g)}),this)}}(),n.render=function(g){if(n.isRendered())return document.getElementById("nprogress");c(document.documentElement,"nprogress-busy");var v=document.createElement("div");v.id="nprogress",v.innerHTML=r.template;var m=v.querySelector(r.barSelector),y=g?"-100":a(n.status||0),b=document.querySelector(r.parent),_;return l(m,{transition:"all 0 linear",transform:"translate3d("+y+"%,0,0)"}),r.showSpinner||(_=v.querySelector(r.spinnerSelector),_&&p(_)),b!=document.body&&c(b,"nprogress-custom-parent"),b.appendChild(v),v},n.remove=function(){d(document.documentElement,"nprogress-busy"),d(document.querySelector(r.parent),"nprogress-custom-parent");var g=document.getElementById("nprogress");g&&p(g)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var g=document.body.style,v="WebkitTransform"in g?"Webkit":"MozTransform"in g?"Moz":"msTransform"in g?"ms":"OTransform"in g?"O":"";return v+"Perspective"in g?"translate3d":v+"Transform"in g?"translate":"margin"};function o(g,v,m){return g<v?v:g>m?m:g}function a(g){return(-1+g)*100}function i(g,v,m){var y;return r.positionUsing==="translate3d"?y={transform:"translate3d("+a(g)+"%,0,0)"}:r.positionUsing==="translate"?y={transform:"translate("+a(g)+"%,0)"}:y={"margin-left":a(g)+"%"},y.transition="all "+v+"ms "+m,y}var s=function(){var g=[];function v(){var m=g.shift();m&&m(v)}return function(m){g.push(m),g.length==1&&v()}}(),l=function(){var g=["Webkit","O","Moz","ms"],v={};function m(w){return w.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(C,S){return S.toUpperCase()})}function y(w){var C=document.body.style;if(w in C)return w;for(var S=g.length,E=w.charAt(0).toUpperCase()+w.slice(1),k;S--;)if(k=g[S]+E,k in C)return k;return w}function b(w){return w=m(w),v[w]||(v[w]=y(w))}function _(w,C,S){C=b(C),w.style[C]=S}return function(w,C){var S=arguments,E,k;if(S.length==2)for(E in C)k=C[E],k!==void 0&&C.hasOwnProperty(E)&&_(w,E,k);else _(w,S[1],S[2])}}();function u(g,v){var m=typeof g=="string"?g:f(g);return m.indexOf(" "+v+" ")>=0}function c(g,v){var m=f(g),y=m+v;u(m,v)||(g.className=y.substring(1))}function d(g,v){var m=f(g),y;u(g,v)&&(y=m.replace(" "+v+" "," "),g.className=y.substring(1,y.length-1))}function f(g){return(" "+(g.className||"")+" ").replace(/\s+/gi," ")}function p(g){g&&g.parentNode&&g.parentNode.removeChild(g)}return n})})(dse);var zZe=dse.exports;const bc=es
`),t),`
`);return e},eet=function(e,t){Ri(t)&&"cause"in t&&va(e,"cause",t.cause)},du={},tet=ua("iterator"),net=Array.prototype,Cse={};Cse[ua("toStringTag")]="z";var GB=String(Cse)==="[object z]",ret=ua("toStringTag"),oet=an.Object,aet=Nf(function(){return arguments}())=="Arguments",Hy=GB?Nf:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(o,a){try{return o[a]}catch{}}(t=oet(e),ret))=="string"?n:aet?Nf(t):(r=Nf(t))=="Object"&&zo(t.callee)?"Arguments":r},iet=ua("iterator"),rH=function(e){if(e!=null)return a8(e,iet)||a8(e,"@@iterator")||du[Hy(e)]},set=an.TypeError,oH=function(e,t,n){var r,o;pi(e);try{if(!(r=a8(e,"return"))){if(t==="throw")throw n;return n}r=ci(r,e)}catch(a){o=!0,r=a}if(t==="throw")throw n;if(o)throw r;return pi(r),n},uet=an.TypeError,V6=function(e,t){this.stopped=e,this.result=t},aH=V6.prototype,cet=function(e,t,n){var r,o,a,i,s,l,u,c=n.that,d=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),g=UB(t,c),v=function(y){return r&&oH(r,"normal",y),new V6(!0,y)},m=function(y){return d?(pi(y),p?g(y[0],y[1],v):g(y[0],y[1])):p?g(y,v):g(y)};if(f)r=e;else{if(!(o=rH(e)))throw uet(LA(e)+" is not iterable");if(function(y){return y!==void 0&&(du.Array===y||net[tet]===y)}(o)){for(a=0,i=zy(e);i>a;a++)if((s=m(e[a]))&&ym(aH,s))return s;return new V6(!1)}r=function(y,b){var _=arguments.length<2?rH(y):b;if(HB(_))return pi(ci(_,y));throw set(LA(y)+" is not iterable")}(e,o)}for(l=r.next;!(u=ci(l,r)).done;){try{s=m(u.value)}catch(y){oH(r,"throw",y)}if(typeof s=="object"&&s&&ym(aH,s))return s}return new V6(!1)},det=an.String,bm=function(e){if(Hy(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return det(e)},fet=function(e,t){return e===void 0?arguments.length<2?"":t:bm(e)},pet=!Ka(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Ss(1,7)),e.stack!==7)}),het=ua("toStringTag"),c8=an.Error,vet=[].push,wm=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=ym(EC,this);l8?n=l8(new c8(void 0),o?s8(this):EC):(n=o?this:_u(EC),va(n,het,"Error")),va(n,"message",fet(t,"")),pet&&va(n,"stack",QQe(n.stack,1)),eet(n,r);var a=[];return cet(e,vet,{that:a}),va(n,"errors",a),n};l8?l8(wm,c8):function(e,t){for(var n=HQe(t),r=Od.f,o=f5.f,a=0;a<n.length;a++){var i=n[a];Pn(e,i)||r(e,i,o(t,i))}}(wm,c8);var EC=wm.prototype=_u(c8.prototype,{constructor:Ss(1,wm),message:Ss(1,""),name:Ss(1,"AggregateError")});Zl({global:!0},{AggregateError:wm});var get=vr(Function.toString);zo(Lc.inspectSource)||(Lc.inspectSource=function(e){return get(e)});var d8,p1,f8,Sse=Lc.inspectSource,iH=an.WeakMap,met=zo(iH)&&/native code/.test(Sse(iH)),WA=an.TypeError,yet=an.WeakMap;if(met||Lc.state){var Hd=Lc.state||(Lc.state=new yet),bet=vr(Hd.get),sH=vr(Hd.has),wet=vr(Hd.set);d8=function(e,t){if(sH(Hd,e))throw new WA("Object already initialized");return t.facade=e,wet(Hd,e,t),t},p1=function(e){return bet(Hd,e)||{}},f8=function(e){return sH(Hd,e)}}else{var oh=p5("state");jy[oh]=!0,d8=function(e,t){if(Pn(e,oh))throw new WA("Object already initialized");return t.facade=e,va(e,oh,t),t},p1=function(e){return Pn(e,oh)?e[oh]:{}},f8=function(e){return Pn(e,oh)}}var Tc,lH,uH,Iv={set:d8,get:p1,has:f8,enforce:function(e){return f8(e)?p1(e):d8(e,{})},getterFor:function(e){return function(t){var n;if(!Ri(t)||(n=p1(t)).type!==e)throw WA("Incompatible receiver, "+e+" required");return n}}},Ese=Function.prototype,_et=Va&&Object.getOwnPropertyDescriptor,xC=Pn(Ese,"name"),Cet={EXISTS:xC,PROPER:xC&&(function(){}).name==="something",CONFIGURABLE:xC&&(!Va||Va&&_et(Ese,"name").configurable)},p8=function(e,t,n,r){va(e,t,n)},KA=ua("iterator"),xse=!1;[].keys&&("next"in(uH=[].keys())?(lH=s8(s8(uH)))!==Object.prototype&&(Tc=lH):xse=!0);var Eet=Tc==null||Ka(function(){var e={};return Tc[KA].call(e)!==e});Tc=Eet?{}:_u(Tc),zo(Tc[KA])||p8(Tc,KA,function(){return this});var kse={IteratorPrototype:Tc,BUGGY_SAFARI_ITERATORS:xse},xet=GB?{}.toString:function(){return"[object "+Hy(this)+"]"},ket=Od.f,cH=ua("toStringTag"),h8=function(e,t,n,r){if(e){var o=n?e:e.prototype;Pn(o,cH)||ket(o,cH,{configurable
`)&&e.flags==="s")}),Qtt=Jt.RegExp,ent=Do(function(){var e=Qtt("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),tnt=vp.get,nnt=ZB("native-string-replace",String.prototype.replace),b8=RegExp.prototype.exec,tO=b8,rnt=Yn("".charAt),ont=Yn("".indexOf),ant=Yn("".replace),RC=Yn("".slice),IC=(BC=/b*/g,No(b8,MH=/a/,"a"),No(b8,BC,"a"),MH.lastIndex!==0||BC.lastIndex!==0),PH=qtt.BROKEN_CARET,NC=/()??/.exec("")[1]!==void 0;(IC||NC||PH||Ztt||ent)&&(tO=function(e){var t,n,r,o,a,i,s,l=this,u=tnt(l),c=Vf(e),d=u.raw;if(d)return d.lastIndex=l.lastIndex,t=No(tO,d,c),l.lastIndex=d.lastIndex,t;var f=u.groups,p=PH&&l.sticky,g=No(Utt,l),v=l.source,m=0,y=c;if(p&&(g=ant(g,"y",""),ont(g,"g")===-1&&(g+="g"),y=RC(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&rnt(c,l.lastIndex-1)!==`
`)&&(v="(?: "+v+")",y=" "+y,m++),n=new RegExp("^(?:"+v+")",g)),NC&&(n=new RegExp("^"+v+"$(?!\\s)",g)),IC&&(r=l.lastIndex),o=No(b8,p?n:l,y),p?o?(o.input=RC(o.input,m),o[0]=RC(o[0],m),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:IC&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),NC&&o&&o.length>1&&No(nnt,o[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&f)for(o.groups=i=qy(null),a=0;a<f.length;a++)i[(s=f[a])[0]]=o[s[1]];return o});var w8=tO;Ky({target:"RegExp",proto:!0,forced:/./.exec!==w8},{exec:w8});var int=Ea("species"),BH=RegExp.prototype,snt=Yn("".charAt),RH=Yn("".charCodeAt),lnt=Yn("".slice),IH=function(e){return function(t,n){var r,o,a=Vf(h5(t)),i=sR(n),s=a.length;return i<0||i>=s?e?"":void 0:(r=RH(a,i))<55296||r>56319||i+1===s||(o=RH(a,i+1))<56320||o>57343?e?snt(a,i):r:e?lnt(a,i,i+2):o-56320+(r-55296<<10)+65536}},Lse={codeAt:IH(!1),charAt:IH(!0)},unt=Lse.charAt,cnt=function(e,t,n){return t+(n?unt(e,t).length:1)},dnt=Jt.TypeError,NH=function(e,t){var n=e.exec;if(wo(n)){var r=No(n,e,t);return r!==null&&hi(r),r}if($f(e)==="RegExp")return No(w8,e,t);throw dnt("RegExp#exec called on incompatible receiver")};(function(e,t,n,r){var o=Ea(e),a=!Do(function(){var u={};return u[o]=function(){return 7},""[e](u)!=7}),i=a&&!Do(function(){var u=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[int]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return u=!0,null},c[o](""),!u});if(!a||!i||n){var s=Yn(/./[o]),l=t(o,""[e],function(u,c,d,f,p){var g=Yn(u),v=c.exec;return v===w8||v===BH.exec?a&&!p?{done:!0,value:s(c,d,f)}:{done:!0,value:g(d,c,f)}:{done:!1}});gp(String.prototype,e,l[0]),gp(BH,o,l[1])}})("match",function(e,t,n){return[function(r){var o=h5(this),a=r==null?void 0:_m(r,e);return a?No(a,r,o):new RegExp(r)[e](Vf(o))},function(r){var o=hi(this),a=Vf(r),i=n(t,o,a);if(i.done)return i.value;if(!o.global)return NH(o,a);var s=o.unicode;o.lastIndex=0;for(var l,u=[],c=0;(l=NH(o,a))!==null;){var d=Vf(l[0]);u[c]=d,d===""&&(o.lastIndex=cnt(a,Bse(o.lastIndex),s)),c++}return c===0?null:u}]}),Ky({global:!0},{globalThis:Jt});var fnt=!Do(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),FH=oR("IE_PROTO"),nO=Jt.Object,pnt=nO.prototype,Cm=fnt?nO.getPrototypeOf:function(e){var t=QB(e);if(za(t,FH))return t[FH];var n=t.constructor;return wo(n)&&t instanceof n?n.prototype:t instanceof nO?pnt:null},hnt=Jt.String,vnt=Jt.TypeError,Y0=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Yn(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return hi(r),function(a){if(typeof a=="object"||wo(a))return a;throw vnt("Can't set "+hnt(a)+" as a prototype")}(o),t?e(r,o):r.__proto__=o,r}}():void 0),gnt=Jt.Array,mnt=Math.max,ynt=Yn("".replace),bnt=Yn("".split),wnt=Yn([].join),rO=String(Error("zxcasd").stack),Vse=/\n\s*at [^:]*:[^\n]*/,_nt=Vse.test(rO),Cnt=/@[^\n]*\n/.test(rO)&&!/zxcasd/.test(rO),Snt=function(e,t){if(typeof e!="string")return e;if(_nt)for(;t--;)e=ynt(e,Vse,"");else if(Cnt)return wnt(function(n,r,o){for(var a,i,s,l,u=v5(n),c=eO(r,u),d=eO(u,u),f=gnt(mnt(d-c,0)),p=0;c<d;c++,p++)a=f,i=p,s=n[c],l=void 0,(l=eR(i))in a?Fv.f(a,l,Vc(0,s)):a[l]=s;return f.length=p,f}(bnt(e,`
`),t),`
`);return e},Ent=function(e,t){il(t)&&"cause"in t&&Ia(e,"cause",t.cause)},$H=Yn(Yn.bind),zse=function(e,t){return XB(e),t===void 0?e:$H?$H(e,t):function(){return e.apply(t,arguments)}},X0={},xnt=Ea("iterator"),knt=Array.prototype,Ant=Ea("iterator"),LH=function(e){if(e!=null)return _m(e,Ant)||_m(e,"@@iterator")||X0[g5(e)]},Ont=Jt.TypeError,VH=function(e,t,n){var r,o;hi(e);try{if(!(r=_m(e,"return"))){if(t==="throw")throw n;return n}r=No(r,e)}catch(a){o=!0,r=a}if(t==="throw")throw n;if(o)throw r;return hi(r),n},Tnt=Jt.TypeError,H6=function(e,t){this.stopped=e,this.result=t},zH=H6.prototype,Dnt=function(e,t,n){var r,o,a,i,s,l,u,c=n.that,d=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),g=zse(t,c),v=function(y){return r&&VH(r,"normal",y),new H6(!0,y)},m=function(y){return d?(hi(y),p?g(y[0],y[1],v):g(y[0],y[1])):p?g(y,v):g(y)};if(f)r=e;else{if(!(o=LH(e)))throw Tnt(JA(e)+" is not iterable");if(function(y){return y!==void 0&&(X0.Array===y||knt[xnt]===y)}(o)){for(a=0,i=v5(e);i>a;a++)if((s=m(e[a]))&&v8(zH,s))return s;return new H6(!1)}r=function(y,b){var _=arguments.length<2?LH(y):b;if(XB(_))return hi(No(_,y));throw Ont(JA(y)+" is not iterable")}(e,o)}for(l=r.next;!(u=No(l,r)).done;){try{s=m(u.value)}catch(y){VH(r,"throw",y)}if(typeof s=="object"&&s&&v8(zH,s))return s}return new H6(!1)},Mnt=function(e,t){return e===void 0?arguments.length<2?"":t:Vf(e)},Pnt=!Do(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Vc(1,7)),e.stack!==7)}),Bnt=Ea("toStringTag"),_8=Jt.Error,Rnt=[].push,Sm=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=v8(FC,this);Y0?n=Y0(new _8(void 0),o?Cm(this):FC):(n=o?this:qy(FC),Ia(n,Bnt,"Error")),Ia(n,"message",Mnt(t,"")),Pnt&&Ia(n,"stack",Snt(n.stack,1)),Ent(n,r);var a=[];return Dnt(e,Rnt,{that:a}),Ia(n,"errors",a),n};Y0?Y0(Sm,_8):Ise(Sm,_8);var FC=Sm.prototype=qy(_8.prototype,{constructor:Vc(1,Sm),message:Vc(1,""),name:Vc(1,"AggregateError")});Ky({global:!0},{AggregateError:Sm});var oO=Ea("unscopables"),aO=Array.prototype;aO[oO]==null&&Fv.f(aO,oO,{configurable:!0,value:qy(null)});var zf,jH,HH,$C=function(e){aO[oO][e]=!0},iO=Ea("iterator"),jse=!1;[].keys&&("next"in(HH=[].keys())?(jH=Cm(Cm(HH)))!==Object.prototype&&(zf=jH):jse=!0);var Int=zf==null||Do(function(){var e={};return zf[iO].call(e)!==e});Int&&(zf={}),wo(zf[iO])||gp(zf,iO,function(){return this});var dR={IteratorPrototype:zf,BUGGY_SAFARI_ITERATORS:jse},Nnt=Fv.f,UH=Ea("toStringTag"),WH=function(e,t,n){e&&!za(e=n?e:e.prototype,UH)&&Nnt(e,UH,{configurable:!0,value:t})},Fnt=dR.IteratorPrototype,$nt=function(){return this},Lnt=iR.PROPER,Vnt=iR.CONFIGURABLE,KH=dR.IteratorPrototype,LC=dR.BUGGY_SAFARI_ITERATORS,mg=Ea("iterator"),znt=function(){return this},Hse=function(e,t,n,r,o,a,i){(function(m,y,b,_){var w=y+" Iterator";m.prototype=qy(Fnt,{next:Vc(1,b)}),WH(m,w,!1),X0[w]=$nt})(n,t,r);var s,l,u=function(m){if(m===o&&g)return g;if(!LC&&m in f)return f[m];switch(m){case"keys":case"values":case"entries":return function(){return new n(this,m)}}return function(){return new n(this)}},c=t+" Iterator",d=!1,f=e.prototype,p=f[mg]||f["@@iterator"]||o&&f[o],g=!LC&&p||u(o),v=t=="Array"&&f.entries||p;return v&&(s=Cm(v.call(new e)))!==Object.prototype&&s.next&&(Cm(s)!==KH&&(Y0?Y0(s,KH):wo(s[mg])||gp(s,mg,znt)),WH(s,c,!0)),Lnt&&o=="values"&&p&&p.name!=="values"&&(Vnt?Ia(f,"name","values"):(d=!0,g=function(){return No(p,this)})),o&&(l={values:u("values"),keys:u("keys"),entries:u("entries")},i||Ky({target:t,proto:!0,forced:LC||d},l)),f[mg]!==g&&gp(f,mg,g,{name:o}),X0[t]=g,l},jnt=vp.set,Hnt=vp.getterFor("Array Iterator"),L2=Hse(Array,"Array",function(e,t){jnt(this,{type:"Array Iterator",target:Nv(e),index:0,kind:t})},function(){var e=Hnt(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");X0.Arguments=X0.Array,$C("keys"),$C("values"),$C("entries");var Unt=Lse.charAt,Wnt=vp.set,Knt=vp.getterFor("String Iterator");Hse(String,"String",function(e){Wnt(this,{type:"String It
Sorry, wangEditor V5+ versions do not support IE browser.`),YH(),XH()):global&&(!((VC=global.navigator)===null||VC===void 0)&&VC.userAgent.match("QQBrowser"))&&(YH(),XH());function YH(){typeof globalThis>"u"&&(window.globalThis=window)}function XH(){Vet===void 0&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}var JH,S8=Array.isArray||function(e){return Nf(e)=="Array"},Kse=function(){},qnt=[],qse=Bv("Reflect","construct"),fR=/^\s*(?:class|function)\b/,Gnt=vr(fR.exec),Ynt=!fR.exec(Kse),yg=function(e){if(!zo(e))return!1;try{return qse(Kse,qnt,e),!0}catch{return!1}},Xnt=!qse||Ka(function(){var e;return yg(yg.call)||!yg(Object)||!yg(function(){e=!0})||e})?function(e){if(!zo(e))return!1;switch(Hy(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Ynt||!!Gnt(fR,Sse(e))}:yg,Jnt=ua("species"),ZH=an.Array,Gse=function(e,t){return new(function(n){var r;return S8(n)&&(r=n.constructor,(Xnt(r)&&(r===ZH||S8(r.prototype))||Ri(r)&&(r=r[Jnt])===null)&&(r=void 0)),r===void 0?ZH:r}(e))(t===0?0:t)},Znt=ua("species"),Yse=ua("isConcatSpreadable"),QH=an.TypeError,Qnt=o8>=51||!Ka(function(){var e=[];return e[Yse]=!1,e.concat()[0]!==e}),ert=(JH="concat",o8>=51||!Ka(function(){var e=[];return(e.constructor={})[Znt]=function(){return{foo:1}},e[JH](Boolean).foo!==1})),trt=function(e){if(!Ri(e))return!1;var t=e[Yse];return t!==void 0?!!t:S8(e)};Zl({target:"Array",proto:!0,forced:!Qnt||!ert},{concat:function(e){var t,n,r,o,a,i=Ly(this),s=Gse(i,0),l=0;for(t=-1,r=arguments.length;t<r;t++)if(trt(a=t===-1?i:arguments[t])){if(l+(o=zy(a))>9007199254740991)throw QH("Maximum allowed index exceeded");for(n=0;n<o;n++,l++)n in a&&HA(s,l,a[n])}else{if(l>=9007199254740991)throw QH("Maximum allowed index exceeded");HA(s,l++,a)}return s.length=l,s}});var eU=KB.f,tU=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Xse={f:function(e){return tU&&Nf(e)=="Window"?function(t){try{return eU(t)}catch{return wse(tU)}}(e):eU(Nl(e))}},nrt=vr([].slice),pR={f:ua},rrt=Od.f,$r=function(e){var t=ri.Symbol||(ri.Symbol={});Pn(t,e)||rrt(t,e,{value:pR.f(e)})},nU=vr([].push),ju=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,a=e==6,i=e==7,s=e==5||a;return function(l,u,c,d){for(var f,p,g=Ly(l),v=hse(g),m=UB(u,c),y=zy(v),b=0,_=d||Gse,w=t?_(l,y):n||i?_(l,0):void 0;y>b;b++)if((s||b in v)&&(p=m(f=v[b],b,g),e))if(t)w[b]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return b;case 2:nU(w,f)}else switch(e){case 4:return!1;case 7:nU(w,f)}return a?-1:r||o?o:w}},m5={forEach:ju(0),map:ju(1),filter:ju(2),some:ju(3),every:ju(4),find:ju(5),findIndex:ju(6),filterReject:ju(7)}.forEach,Pa=p5("hidden"),rU=ua("toPrimitive"),ort=Iv.set,oU=Iv.getterFor("Symbol"),vs=Object.prototype,Sc=an.Symbol,Dc=Sc&&Sc.prototype,aU=an.TypeError,WC=an.QObject,bg=Bv("JSON","stringify"),Jse=f5.f,Ec=Od.f,Zse=Xse.f,art=VB.f,Qse=vr([].push),Cu=Fp("symbols"),Gy=Fp("op-symbols"),KC=Fp("string-to-symbol-registry"),qC=Fp("symbol-to-string-registry"),irt=Fp("wks"),GC=!WC||!WC.prototype||!WC.prototype.findChild,sO=Va&&Ka(function(){return _u(Ec({},"a",{get:function(){return Ec(this,"a",{value:7}).a}})).a!=7})?function(e,t,n){var r=Jse(vs,t);r&&delete vs[t],Ec(e,t,n),r&&e!==vs&&Ec(vs,t,r)}:Ec,YC=function(e,t){var n=Cu[e]=_u(Dc);return ort(n,{type:"Symbol",tag:e,description:t}),Va||(n.description=t),n},E8=function(e,t,n){e===vs&&E8(Gy,t,n),pi(e);var r=Rv(t);return pi(n),Pn(Cu,r)?(n.enumerable?(Pn(e,Pa)&&e[Pa][r]&&(e[Pa][r]=!1),n=_u(n,{enumerable:Ss(0,!1)})):(Pn(e,Pa)||Ec(e,Pa,Ss(1,{})),e[Pa][r]=!0),sO(e,r,n)):Ec(e,r,n)},iU=function(e,t){pi(e);var n=Nl(t),r=qB(n).concat(lO(n));return m5(r,function(o){Va&&!ci(ele,n,o)||E8(e,o,n[o])}),e},ele=function(e){var t=Rv(e),n=ci(art,this,t);return!(this===vs&&Pn(Cu,t)&&!Pn(Gy,t))&&(!(n||!Pn(this,t)||!Pn(Cu,t)||Pn(this,Pa)&&this[Pa][t])||n)},sU=function(e,t){var n=Nl(e),r=Rv(t);if(n!==vs||!Pn(Cu,r)||Pn(Gy,r)){var o=Jse(n,r);return!o||!Pn(Cu,r)||Pn(n,Pa)&&n[Pa][r]||(o.enumerable=!0),o}},lU=function(e){var t=Zse(Nl(e)),n=[];return m5(t,function(r){Pn(Cu,r)||Pn(jy,r)||Qs
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/function uU(e){return Object.prototype.toString.call(e)==="[object Object]"}function Go(e){var t,n;return uU(e)!==!1&&((t=e.constructor)===void 0||uU(n=t.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1)}function ds(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(o){return"'"+o+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function mp(e){return!!e&&!!e[vi]}function yp(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)===wrt}(e)||Array.isArray(e)||!!e[mU]||!!e.constructor[mU]||hR(e)||vR(e))}function Em(e,t,n){n===void 0&&(n=!1),J0(e)===0?(n?Object.keys:wR)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,o){return t(o,r,e)})}function J0(e){var t=e[vi];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:hR(e)?2:vR(e)?3:0}function uO(e,t){return J0(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function nle(e,t,n){var r=J0(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function hR(e){return yrt&&e instanceof Map}function vR(e){return brt&&e instanceof Set}function rf(e){return e.o||e.t}function gR(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=_rt(e);delete t[vi];for(var n=wR(t),r=0;r<n.length;r++){var o=n[r],a=t[o];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[o]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function mR(e,t){return t===void 0&&(t=!1),yR(e)||mp(e)||!yp(e)||(J0(e)>1&&(e.set=e.add=e.clear=e.delete=vrt),Object.freeze(e),t&&Em(e,function(n,r){return mR(r,!0)},!0)),e}function vrt(){ds(2)}function yR(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function fu(e){var t=Crt[e];return t||ds(18,e),t}function cU(){return xm}function XC(e,t){t&&(fu("Patches"),e.u=[],e.s=[],e.v=t)}function x8(e){cO(e),e.p.forEach(grt),e.p=null}function cO(e){e===xm&&(xm=e.l)}function dU(e){return xm={p:[],l:xm,h:e,m:!0,_:0}}function grt(e){var t=e[vi];t.i===0||t.i===1?t.j():t.O=!0}function JC(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||fu("ES5").S(t,e,r),r?(n[vi].P&&(x8(t),ds(4)),yp(e)&&(e=k8(t,e),t.l||A8(t,e)),t.u&&fu("Patches").M(n[vi],e,t.u,t.s)):e=k8(t,n,[]),x8(t),t.u&&t.v(t.u,t.s),e!==rle?e:void 0}function k8(e,t,n){if(yR(t))return t;var r=t[vi];if(!r)return Em(t,function(a,i){return fU(e,r,t,a,i,n)},!0),t;if(r.A!==e)return t;if(!r.P)return A8(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=gR(r.k):r.o;Em(r.i===3?new Set(o):o,function(a,i){return fU(e,r,o,a,i,n)}),A8(e,o,!1),n&&e.u&&fu("Patches").R(r,n,e.u,e.s)}return r.o}function fU(e,t,n,r,o,a){if(mp(o)){var i=k8(e,o,a&&t&&t.i!==3&&!uO(t.D,r)?a.concat(r):void 0);if(nle(n,r,i),!mp(i))return;e.m=!1}if(yp(o)&&!yR(o)){if(!e.h.F&&e._<1)return;k8(e,o),t&&t.A.l||A8(e,o)}}function A8(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&mR(t,n)}function ZC(e,t){var n=e[vi];return(n?rf(n):e)[t]}function pU(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 dO(e){e.P||(e.P=!0,e.l&&dO(e.l))}function QC(e){e.o||(e.o=gR(e.t))}function fO(e,t,n){var r=hR(t)?fu("MapSet").N(t,n):vR(t)?fu("MapSet").T(t,n):e.g?function(o,a){var i=Array.isArray(o),s={i:i?1:0,A:a?a.A:cU(),P:!1,I:!1,D:{},l:a,t:o,k:null,o:null,j:null,C:!1},l=s,u=U6;i&&(l=[s],u=W6);var c=Proxy.revocable(l,u),d=c.revoke,f=c.proxy;return s.k=f,s.j=d,f}(t,n):fu("ES5").J(t,n);return(n?n.A:cU()).p.push(r),r}function mrt(e){return mp(e)||ds(22,e),function t(n){if(!yp(n))return n;var r,o=n[vi],a=J0(n);if(o){if(!o.P&&(o.i<4||!fu("ES5").K(o)))return o.t;o.I=!0,r=hU(n,a),o.I=!1}else r=hU(n,a);return Em(r,function(i,s){o&&function(l,u){return J0(l)===2?l.get(u):l[u]}(o.t,i)===s||nle(r,i,t(s))}),a===3?new Set(r):r}(e)}function hU(e,t)
Could not completely normalize the editor after `.concat(u,` iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.
`));var d=r(e).pop();if(dt.has(e,d)){var f=ne.node(e,d);e.normalizeNode(f)}c++}})}},parent(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=ne.path(e,t,n),o=Me.parent(r);return ne.node(e,o)},path(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:r,edge:o}=n;if(Me.isPath(t)){if(o==="start"){var[,a]=dt.first(e,t);t=a}else if(o==="end"){var[,i]=dt.last(e,t);t=i}}return He.isRange(t)&&(t=o==="start"?He.start(t):o==="end"?He.end(t):Me.common(t.anchor.path,t.focus.path)),on.isPoint(t)&&(t=t.path),r!=null&&(t=t.slice(0,r)),t},hasPath:(e,t)=>dt.has(e,t),pathRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:a}=o;return ne.pathRefs(e).delete(o),o.current=null,a}};return ne.pathRefs(e).add(o),o},pathRefs(e){var t=_U.get(e);return t||(t=new Set,_U.set(e,t)),t},point(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:r="start"}=n;if(Me.isPath(t)){var o;if(r==="end"){var[,a]=dt.last(e,t);o=a}else{var[,i]=dt.first(e,t);o=i}var s=dt.get(e,o);if(!yt.isText(s))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(t,"] because it has no ").concat(r," text node."));return{path:o,offset:r==="end"?s.text.length:0}}if(He.isRange(t)){var[l,u]=He.edges(t);return r==="start"?l:u}return t},pointRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:a}=o;return ne.pointRefs(e).delete(o),o.current=null,a}};return ne.pointRefs(e).add(o),o},pointRefs(e){var t=CU.get(e);return t||(t=new Set,CU.set(e,t)),t},*positions(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,unit:r="offset",reverse:o=!1,voids:a=!1}=t;if(n){var i=ne.range(e,n),[s,l]=He.edges(i),u=o?l:s,c=!1,d="",f=0,p=0,g=0;for(var[v,m]of ne.nodes(e,{at:n,reverse:o,voids:a})){if(Ot.isElement(v)){if(!a&&e.isVoid(v)){yield ne.start(e,m);continue}if(e.isInline(v))continue;if(ne.hasInlines(e,v)){var y=Me.isAncestor(m,l.path)?l:ne.end(e,m),b=Me.isAncestor(m,s.path)?s:ne.start(e,m);d=ne.string(e,{anchor:b,focus:y},{voids:a}),c=!0}}if(yt.isText(v)){var _=Me.equals(m,u.path);for(_?(p=o?u.offset:v.text.length-u.offset,g=u.offset):(p=v.text.length,g=o?p:0),(_||c||r==="offset")&&(yield{path:m,offset:g},c=!1);;){if(f===0){if(d==="")break;f=w(d,r,o),d=hO(d,f,o)[1]}if(g=o?g-f:g+f,(p-=f)<0){f=-p;break}f=0,yield{path:m,offset:g}}}}}function w(C,S,E){return S==="character"?pO(C,E):S==="word"?function(k){for(var A=arguments.length>1&&arguments[1]!==void 0&&arguments[1],D=0,B=!1;k.length>0;){var P=pO(k,A),[K,X]=hO(k,P,A);if(Trt(K,X,A))B=!0,D+=P;else{if(B)break;D+=P}k=X}return D}(C,E):S==="line"||S==="block"?C.length:1}},previous(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:a=e.selection}=t;if(a){var i=ne.before(e,a,{voids:r});if(i){var[,s]=ne.first(e,[]),l=[i.path,s];if(Me.isPath(a)&&a.length===0)throw new Error("Cannot get the previous node from the root node!");if(o==null)if(Me.isPath(a)){var[u]=ne.parent(e,a);o=d=>u.children.includes(d)}else o=()=>!0;var[c]=ne.nodes(e,{reverse:!0,at:l,match:o,mode:n,voids:r});return c}}},range:(e,t,n)=>He.isRange(t)&&!n?t:{anchor:ne.start(e,t),focus:ne.end(e,n||t)},rangeRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:a}=o;return ne.rangeRefs(e).delete(o),o.current=null,a}};return ne.rangeRefs(e).add(o),o},rangeRefs(e){var t=SU.get(e);return t||(t=new Set,SU.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){wU.set(e,t)},start:(e,t)=>ne.point(e,t,{edge:"start"}),string(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,o=ne.range(e,t),[a,i]=He.edges(o),s="";for(var[l,u]of ne.nodes(e,{at:o,match:yt.isText,voids:r})){var c=l.text;Me.equals(u,i.path)&&(c=c.slice(0,i.offset)),Me.equals(u,a.path)&&(c=c.slice(a.offset)),s+=c}return s},unhangRange(e,t){var n=argum
* Takes a string with placeholder variables like `%{smart_count} file selected`
* and replaces it with values from options `{smart_count: 5}`
*
* @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
* taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
*
* @param {string} phrase that needs interpolation, with placeholders
* @param {object} options with values that will be used to replace placeholders
* @returns {any[]} interpolated
*/function pW(e,t){const n=/\$/g;let r=[e];if(t==null)return r;for(const o of Object.keys(t))if(o!=="_"){let a=t[o];typeof a=="string"&&(a=n[Symbol.replace](a,"$$$$")),r=yit(r,new RegExp(`%\\{${o}\\}`,"g"),a)}return r}var Hle=(lh=mit("apply"),class{constructor(e){Object.defineProperty(this,lh,{value:bit}),this.locale={strings:{},pluralize:t=>t===1?0:1},Array.isArray(e)?e.forEach(fW(this,lh)[lh],this):fW(this,lh)[lh](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!function(r,o){return Object.prototype.hasOwnProperty.call(r,o)}(this.locale.strings,e))throw new Error(`missing string: ${e}`);const n=this.locale.strings[e];if(typeof n=="object"){if(t&&t.smart_count!==void 0)return pW(n[this.locale.pluralize(t.smart_count)],t);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return pW(n,t)}});function bit(e){if(e==null||!e.strings)return;const t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}var Ule=function(){var e={},t=e._fns={};return e.emit=function(n,r,o,a,i,s,l){var u=function(c){for(var d=t[c]?t[c]:[],f=c.indexOf(":"),p=f===-1?[c]:[c.substring(0,f),c.substring(f+1)],g=Object.keys(t),v=0,m=g.length;v<m;v++){var y=g[v];if(y==="*"&&(d=d.concat(t[y])),p.length===2&&p[0]===y){d=d.concat(t[y]);break}}return d}(n);u.length&&function(c,d,f){for(var p=0,g=d.length;p<g&&d[p];p++)d[p].event=c,d[p].apply(d[p],f)}(n,u,[r,o,a,i,s,l])},e.on=function(n,r){t[n]||(t[n]=[]),t[n].push(r)},e.once=function(n,r){this.on(n,function o(){r.apply(this,arguments),e.off(n,o)})},e.off=function(n,r){var o=[];if(n&&r)for(var a=this._fns[n],i=0,s=a?a.length:0;i<s;i++)a[i]!==r&&o.push(a[i]);o.length?this._fns[n]=o:delete this._fns[n]},e},wit={urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"};let{urlAlphabet:_it}=wit,hW=e=>crypto.getRandomValues(new Uint8Array(e)),vW=(e,t,n)=>{let r=(2<<Math.log(e.length-1)/Math.LN2)-1,o=-~(1.6*r*t/e.length);return()=>{let a="";for(;;){let i=n(o),s=o;for(;s--;)if(a+=e[i[s]&r]||"",a.length===t)return a}}};var Cit={nanoid:(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t},customAlphabet:(e,t)=>vW(e,t,hW),customRandom:vW,urlAlphabet:_it,random:hW},cS=function(e){if(typeof e!="number"||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var r=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1);e=Number(e/Math.pow(1024,r));var o=n[r];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+o:(t?"-":"")+e.toFixed(1)+" "+o};function Wle(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}Wle.prototype.match=function(e){var t,n,r=!0,o=this.parts,a=o.length;if(typeof e=="string"||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||"").split(this.separator),t=0;r&&t<a;t++)o[t]!=="*"&&(r=t<n.length&&o[t]===n[t]);r=r&&n}else r=!1;else if(typeof e.splice=="function")for(r=[],t=e.length;t--;)this.match(e[t])&&(r[r.length]=e[t]);else if(typeof e=="object")for(var i in r={},e)this.match(i)&&(r[i]=e[i]);return r};var Sit=/[\/\+\.]/,Eit=function(e,t){function n(r){var o=function(a,i,s){var l=new Wle(a,s||/[\/\.]/);return i!==void 0?l.match(i):l}(r,e,Sit);return o&&o.length>=2}return t?n(t.split(";")[0]):n},xit=0;function kit(e){return"__private_"+xit+++"_"+e}var dS=kit("publish");class Kle{constructor(){Object.defineProperty(this,dS,{value:Ait}),this.state={},this.callbacks=[]}getState(){return this.state}setState(t){const n={...this.state},r={...this.state,...t};this.state=r,function(o,a){if(!Object.prototype.hasOwnProperty.call(o,a))throw new TypeError("attempted to use private field on non-instance");return o}(this,dS)[dS](n,r,t)}subscribe(t){return this.callbacks.push(t),()=>{this.callbacks.splice(this.callbacks.indexOf(t),1)}}}function Ait(){for(var e=arguments.length,t=
id: ${r[a].id}
type: ${r[a].type}`)}),r.length>0&&Pt(this,kg)[kg](),o.length>0){let a=`Multiple errors occurred while adding files:
`;if(o.forEach(i=>{a+=`
* ${i.message}`}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:o.length}),details:a},"error",this.opts.infoTimeout),typeof AggregateError=="function")throw new AggregateError(o,a);{const i=new Error(a);throw i.errors=o,i}}}removeFiles(t,n){const{files:r,currentUploads:o}=this.getState(),a={...r},i={...o},s=Object.create(null);function l(d){return s[d]===void 0}t.forEach(d=>{r[d]&&(s[d]=r[d],delete a[d])}),Object.keys(i).forEach(d=>{const f=o[d].fileIDs.filter(l);f.length!==0?i[d]={...o[d],fileIDs:f}:delete i[d]});const u={currentUploads:i,files:a};Object.keys(a).length===0&&(u.allowNewUpload=!0,u.error=null,u.recoveredState=null),this.setState(u),this.calculateTotalProgress();const c=Object.keys(s);c.forEach(d=>{this.emit("file-removed",s[d],n)}),c.length>5?this.log(`Removed ${c.length} files`):this.log(`Removed files: ${c.join(", ")}`)}removeFile(t,n){n===void 0&&(n=null),this.removeFiles([t],n)}pauseResume(t){if(!this.getState().capabilities.resumableUploads||this.getFile(t).uploadComplete)return;const n=!this.getFile(t).isPaused;return this.setFileState(t,{isPaused:n}),this.emit("upload-pause",t,n),n}pauseAll(){const t={...this.getState().files};Object.keys(t).filter(n=>!t[n].progress.uploadComplete&&t[n].progress.uploadStarted).forEach(n=>{const r={...t[n],isPaused:!0};t[n]=r}),this.setState({files:t}),this.emit("pause-all")}resumeAll(){const t={...this.getState().files};Object.keys(t).filter(n=>!t[n].progress.uploadComplete&&t[n].progress.uploadStarted).forEach(n=>{const r={...t[n],isPaused:!1,error:null};t[n]=r}),this.setState({files:t}),this.emit("resume-all")}retryAll(){const t={...this.getState().files},n=Object.keys(t).filter(o=>t[o].error);if(n.forEach(o=>{const a={...t[o],isPaused:!1,error:null};t[o]=a}),this.setState({files:t,error:null}),this.emit("retry-all",n),n.length===0)return Promise.resolve({successful:[],failed:[]});const r=Pt(this,Kl)[Kl](n,{forceAllowNewUpload:!0});return Pt(this,ql)[ql](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=Pt(this,Kl)[Kl]([t],{forceAllowNewUpload:!0});return Pt(this,ql)[ql](n)}reset(){this.cancelAll()}logout(){this.iteratePlugins(t=>{t.provider&&t.provider.logout&&t.provider.logout()})}calculateProgress(t,n){if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const r=Number.isFinite(n.bytesTotal)&&n.bytesTotal>0;this.setFileState(t.id,{progress:{...this.getFile(t.id).progress,bytesUploaded:n.bytesUploaded,bytesTotal:n.bytesTotal,percentage:r?Math.round(n.bytesUploaded/n.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const t=this.getFiles().filter(l=>l.progress.uploadStarted||l.progress.preprocess||l.progress.postprocess);if(t.length===0)return this.emit("progress",0),void this.setState({totalProgress:0});const n=t.filter(l=>l.progress.bytesTotal!=null),r=t.filter(l=>l.progress.bytesTotal==null);if(n.length===0){const l=100*t.length,u=r.reduce((d,f)=>d+f.progress.percentage,0),c=Math.round(u/l*100);return void this.setState({totalProgress:c})}let o=n.reduce((l,u)=>l+u.progress.bytesTotal,0);const a=o/n.length;o+=a*r.length;let i=0;n.forEach(l=>{i+=l.progress.bytesUploaded}),r.forEach(l=>{i+=a*(l.progress.percentage||0)/100});let s=o===0?0:Math.round(i/o*100);s>100&&(s=100),this.setState({totalProgress:s}),this.emit("progress",s)}updateOnlineStatus(){window.navigator.onLine===void 0||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(t,n){if(typeof t!="function")throw new TypeError(`Expected a plugin class, but got ${t===null?"null":typeof t}. Please verify that the plugin was impo
Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(i)}return t.VERSION&&this.log(`Using ${o} v${t.VERSION}`),r.type in Pt(this,Io)[Io]?Pt(this,Io)[Io][r.type].push(r):Pt(this,Io)[Io][r.type]=[r],r.install(),this}getPlugin(t){for(const n of Object.values(Pt(this,Io)[Io])){const r=n.find(o=>o.id===t);if(r!=null)return r}}[Yle](t){return Pt(this,Io)[Io][t]}iteratePlugins(t){Object.values(Pt(this,Io)[Io]).flat(1).forEach(t)}removePlugin(t){this.log(`Removing plugin ${t.id}`),this.emit("plugin-remove",t),t.uninstall&&t.uninstall();const n=Pt(this,Io)[Io][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(),Pt(this,Sg)[Sg](),this.iteratePlugins(t=>{this.removePlugin(t)}),typeof window<"u"&&window.removeEventListener&&(window.removeEventListener("online",Pt(this,cs)[cs]),window.removeEventListener("offline",Pt(this,cs)[cs]))}hideInfo(){const{info:t}=this.getState();this.setState({info:t.slice(1)}),this.emit("info-hidden")}info(t,n,r){n===void 0&&(n="info"),r===void 0&&(r=3e3);const o=typeof t=="object";this.setState({info:[...this.getState().info,{type:n,message:o?t.message:t,details:o?t.details:null}]}),setTimeout(()=>this.hideInfo(),r),this.emit("info-visible")}log(t,n){const{logger:r}=this.opts;switch(n){case"error":r.error(t);break;case"warning":r.warn(t);break;default:r.debug(t)}}restore(t){return this.log(`Core: attempting to restore upload "${t}"`),this.getState().currentUploads[t]?Pt(this,ql)[ql](t):(Pt(this,Sf)[Sf](t),Promise.reject(new Error("Nonexistent upload")))}[Xle](){return Pt(this,Kl)[Kl](...arguments)}addResultData(t,n){if(!Pt(this,gS)[gS](t))return void this.log(`Not setting result for an upload that has been removed: ${t}`);const{currentUploads:r}=this.getState(),o={...r[t],result:{...r[t].result,...n}};this.setState({currentUploads:{...r,[t]:o}})}upload(){var t;(t=Pt(this,Io)[Io].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(()=>{Pt(this,pS)[pS](n),Pt(this,hS)[hS](n)}).catch(o=>{Pt(this,po)[po](o)}).then(()=>{const{currentUploads:o}=this.getState(),a=Object.values(o).flatMap(l=>l.fileIDs),i=[];Object.keys(n).forEach(l=>{const u=this.getFile(l);u.progress.uploadStarted||a.indexOf(l)!==-1||i.push(u.id)});const s=Pt(this,Kl)[Kl](i);return Pt(this,ql)[ql](s)}).catch(o=>{Pt(this,po)[po](o,{showInformer:!1})}))}}function Iit(e,t){t===void 0&&(t=this.getFiles());const{maxFileSize:n,minFileSize:r,maxTotalFileSize:o,maxNumberOfFiles:a,allowedFileTypes:i}=this.opts.restrictions;if(a&&t.length+1>a)throw new rl(`${this.i18n("youCanOnlyUploadX",{smart_count:a})}`);if(i&&!i.some(s=>s.indexOf("/")>-1?!!e.type&&Eit(e.type.replace(/;.*?$/,""),s):!(s[0]!=="."||!e.extension)&&e.extension.toLowerCase()===s.substr(1).toLowerCase())){const s=i.join(", ");throw new rl(this.i18n("youCanOnlyUploadFileTypes",{types:s}))}if(o&&e.size!=null){let s=0;if(s+=e.size,t.forEach(l=>{s+=l.size}),s>o)throw new rl(this.i18n("exceedsSize",{size:cS(o),file:e.name}))}if(n&&e.size!=null&&e.size>n)throw new rl(this.i18n("exceedsSize",{size:cS(n),file:e.name}));if(r&&e.size!=null&&e.size<r)throw new rl(this.i18n("inferiorSize",{size:cS(r)}))}function Nit(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new rl(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:t})}`)}function Fit(e){const{requiredMetaFields:t}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],o=[];for(let a=0;a<t.length;a++)if(!n.call(e.meta,t[a])||e.meta[t[a]]===""){const i=new rl(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})}`);r.push(i),o.push(t[a]),Pt(this,po)[po](i,{file:e,showInforme
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/function XW(e){return Object.prototype.toString.call(e)==="[object Object]"}Er({target:"Object",stat:!0,forced:Plt},{keys:function(e){return g0(Td(e))}});var Blt={isHistory(e){return XW(t=e)!==!1&&((n=t.constructor)===void 0||XW(r=n.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(e.redos.length===0||Mc.isOperationList(e.redos[0]))&&(e.undos.length===0||Mc.isOperationList(e.undos[0]));var t,n,r}},TS=new WeakMap,DS=new WeakMap,Zh={isHistoryEditor:e=>Blt.isHistory(e.history)&&ne.isEditor(e),isMerging:e=>DS.get(e),isSaving:e=>TS.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=Zh.isMerging(e);DS.set(e,!1),t(),DS.set(e,n)},withoutSaving(e,t){var n=Zh.isSaving(e);TS.set(e,!1),t(),TS.set(e,n)}},Rlt=lt.String,tr=function(e){if(T5(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Rlt(e)},YR=function(){var e=Ur(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},Ilt=Vv.PROPER,$O=RegExp.prototype,gue=$O.toString,Nlt=Bt(YR),Flt=Ln(function(){return gue.call({source:"a",flags:"b"})!="/a/b"}),$lt=Ilt&&gue.name!="toString";(Flt||$lt)&&ja(RegExp.prototype,"toString",function(){var e=Ur(this),t=tr(e.source),n=e.flags;return"/"+t+"/"+tr(n===void 0&&wp($O,e)&&!("flags"in $O)?Nlt(e):n)},{unsafe:!0});var wb,Llt=Eo?Object.defineProperties:function(e,t){Ur(e);for(var n,r=Dd(t),o=g0(t),a=o.length,i=0;a>i;)js.f(e,n=o[i++],r[n]);return e},LO=jp("document","documentElement"),mue=qR("IE_PROTO"),MS=function(){},yue=function(e){return"<script>"+e+"<\/script>"},JW=function(e){e.write(yue("")),e.close();var t=e.parentWindow.Object;return e=null,t},Y6=function(){try{wb=new ActiveXObject("htmlfile")}catch{}var e,t;Y6=typeof document<"u"?document.domain&&wb?JW(wb):((t=Tm("iframe")).style.display="none",LO.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(yue("document.F=Object")),e.close(),e.F):JW(wb);for(var n=F8.length;n--;)delete Y6.prototype[F8[n]];return Y6()};O5[mue]=!0;var P5=Object.create||function(e,t){var n;return e!==null?(MS.prototype=Ur(e),n=new MS,MS.prototype=null,n[mue]=e):n=Y6(),t===void 0?n:Llt(n,t)},VO=kr("unscopables"),zO=Array.prototype;zO[VO]==null&&js.f(zO,VO,{configurable:!0,value:P5(null)});var y1=function(e){zO[VO][e]=!0},Vlt=pue.includes;Er({target:"Array",proto:!0},{includes:function(e){return Vlt(this,e,arguments.length>1?arguments[1]:void 0)}}),y1("includes");var zlt=kr("match"),XR=function(e){var t;return pr(e)&&((t=e[zlt])!==void 0?!!t:xs(e)=="RegExp")},jlt=lt.TypeError,JR=function(e){if(XR(e))throw jlt("The method doesn't accept regular expressions");return e},Hlt=kr("match"),ZR=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[Hlt]=!1,"/./"[e](t)}catch{}}return!1},Ult=Bt("".indexOf);Er({target:"String",proto:!0,forced:!ZR("includes")},{includes:function(e){return!!~Ult(tr(qi(this)),tr(JR(e)),arguments.length>1?arguments[1]:void 0)}});var Wlt=/"/g,Klt=Bt("".replace);Er({target:"String",proto:!0,forced:Ln(function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})},{anchor:function(e){return t=e,n=tr(qi(this)),r="<a",(r+=' name="'+Klt(tr(t),Wlt,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var jO=function(e,t,n){var r,o;Ur(e);try{if(!(r=_p(e,"return"))){if(t==="throw")throw n;return n}r=In(r,e)}catch(a){o=!0,r=a}if(t==="throw")throw n;if(o)throw r;return Ur(r),n},qlt=function(e,t,n,r){try{return r?t(Ur(n)[0],n[1]):t(n)}catch(o){jO(e,"throw",o)}},ev={},Glt=kr("iterator"),Ylt=Array.prototype,bue=function(e){return e!==void 0&&(ev.Array===e||Ylt[Glt]===e)},Pm=function(e,t,n){var r=KR(t);r in e?js.f(e,r,k5(0,n)):e[r]=n},Xlt=kr("iterator"),QR=function(e){if(e!=null)return _p(e,Xlt)||_p(e,"@@iterator")||ev[T5(e)]},Jlt=lt.TypeError,wue=function(e,t){var n=arguments.length<2?QR(e):t;if(pd(n))return Ur(In(n,e));throw Jlt(x5(e)+" is not iterable")},ZW=lt.Array,_ue=kr("iterator"),Cue=!1;try{var Zlt=0,QW={next:function(){return{done:!!Zlt++}},return:function(){Cue=!0}};QW[_ue]=fu
`)&&e.flags==="s")}),Out=lt.RegExp,aI=Ln(function(){var e=Out("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Tut=aa.get,Dut=jR("native-string-replace",String.prototype.replace),V8=RegExp.prototype.exec,KO=V8,Mut=Bt("".charAt),Put=Bt("".indexOf),But=Bt("".replace),BS=Bt("".slice),RS=function(){var e=/a/,t=/b*/g;return In(V8,e,"a"),In(V8,t,"a"),e.lastIndex!==0||t.lastIndex!==0}(),lK=R5.BROKEN_CARET,IS=/()??/.exec("")[1]!==void 0;(RS||IS||lK||oI||aI)&&(KO=function(e){var t,n,r,o,a,i,s,l=this,u=Tut(l),c=tr(e),d=u.raw;if(d)return d.lastIndex=l.lastIndex,t=In(KO,d,c),l.lastIndex=d.lastIndex,t;var f=u.groups,p=lK&&l.sticky,g=In(YR,l),v=l.source,m=0,y=c;if(p&&(g=But(g,"y",""),Put(g,"g")===-1&&(g+="g"),y=BS(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&Mut(c,l.lastIndex-1)!==`
`)&&(v="(?: "+v+")",y=" "+y,m++),n=new RegExp("^(?:"+v+")",g)),IS&&(n=new RegExp("^"+v+"$(?!\\s)",g)),RS&&(r=l.lastIndex),o=In(V8,p?n:l,y),p?o?(o.input=BS(o.input,m),o[0]=BS(o[0],m),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:RS&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),IS&&o&&o.length>1&&In(Dut,o[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&f)for(o.groups=i=P5(null),a=0;a<f.length;a++)i[(s=f[a])[0]]=o[s[1]];return o});var Bm=KO;Er({target:"RegExp",proto:!0,forced:/./.exec!==Bm},{exec:Bm});var iI=Function.prototype,uK=iI.apply,Rut=iI.bind,cK=iI.call,sI=typeof Reflect=="object"&&Reflect.apply||(Rut?cK.bind(uK):function(){return cK.apply(uK,arguments)}),Iut=kr("species"),NS=RegExp.prototype,lI=function(e,t,n,r){var o=kr(e),a=!Ln(function(){var u={};return u[o]=function(){return 7},""[e](u)!=7}),i=a&&!Ln(function(){var u=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[Iut]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return u=!0,null},c[o](""),!u});if(!a||!i||n){var s=Bt(/./[o]),l=t(o,""[e],function(u,c,d,f,p){var g=Bt(u),v=c.exec;return v===Bm||v===NS.exec?a&&!p?{done:!0,value:s(c,d,f)}:{done:!0,value:g(d,c,f)}:{done:!1}});ja(String.prototype,e,l[0]),ja(NS,o,l[1])}r&&Es(NS[o],"sham",!0)},Nut=Sue.charAt,uI=function(e,t,n){return t+(n?Nut(e,t).length:1)},Fut=Math.floor,FS=Bt("".charAt),$ut=Bt("".replace),$S=Bt("".slice),Lut=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Vut=/\$([$&'`]|\d{1,2})/g,zut=function(e,t,n,r,o,a){var i=n+e.length,s=r.length,l=Vut;return o!==void 0&&(o=Td(o),l=Lut),$ut(a,l,function(u,c){var d;switch(FS(c,0)){case"$":return"$";case"&":return e;case"`":return $S(t,0,n);case"'":return $S(t,i);case"<":d=o[$S(c,1,-1)];break;default:var f=+c;if(f===0)return u;if(f>s){var p=Fut(f/10);return p===0?u:p<=s?r[p-1]===void 0?FS(c,1):r[p-1]+FS(c,1):u}d=r[f-1]}return d===void 0?"":d})},jut=lt.TypeError,Rm=function(e,t){var n=e.exec;if(Xn(n)){var r=In(n,e,t);return r!==null&&Ur(r),r}if(xs(e)==="RegExp")return In(Bm,e,t);throw jut("RegExp#exec called on incompatible receiver")},qO=kr("replace"),Hut=Math.max,Uut=Math.min,Wut=Bt([].concat),LS=Bt([].push),dK=Bt("".indexOf),fK=Bt("".slice),Kut="a".replace(/./,"$0")==="$0",pK=!!/./[qO]&&/./[qO]("a","$0")==="";lI("replace",function(e,t,n){var r=pK?"$":"$0";return[function(o,a){var i=qi(this),s=o==null?void 0:_p(o,qO);return s?In(s,o,i,a):In(t,tr(i),o,a)},function(o,a){var i=Ur(this),s=tr(o);if(typeof a=="string"&&dK(a,r)===-1&&dK(a,"$<")===-1){var l=n(t,i,s,a);if(l.done)return l.value}var u=Xn(a);u||(a=tr(a));var c=i.global;if(c){var d=i.unicode;i.lastIndex=0}for(var f=[];;){var p=Rm(i,s);if(p===null||(LS(f,p),!c))break;tr(p[0])===""&&(i.lastIndex=uI(s,zv(i.lastIndex),d))}for(var g,v="",m=0,y=0;y<f.length;y++){for(var b=tr((p=f[y])[0]),_=Hut(Uut(t4(p.index),s.length),0),w=[],C=1;C<p.length;C++)LS(w,(g=p[C])===void 0?g:String(g));var S=p.groups;if(u){var E=Wut([b],w,_,s);S!==void 0&&LS(E,S);var k=tr(sI(a,void 0,E))}else k=zut(b,s,_,w,S,a);_>=m&&(v+=fK(s,m,_)+k,m=_+b.length)}return v+fK(s,m)}]},!!Ln(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!Kut||pK);/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var GO=function(e,t){return GO=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},GO(e,t)};function Hv(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}GO(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Di=function(){return Di=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Di.apply(this,arguments)};function Mi(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 Tn(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function YO(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}var qut=0,hK=function(){this.id=""+qut++},Gut=aa.set,Yut=aa.getterFor("Array Iterator"),j2=nI(Array,"Array",function(e,t){Gut(this,{type:"Array Iterator",target:Dd(e),index:0,kind:t})},function(){var e=Yut(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");ev.Arguments=ev.Array,y1("keys"),y1("values"),y1("entries");var nv=function(e,t,n){for(var r in t)ja(e,r,t[r],n);return e},Xut=lt.Array,Jut=Math.max,XO=function(e,t,n){for(var r=Hp(e),o=Q0(t,r),a=Q0(n===void 0?r:n,r),i=Xut(Jut(a-o,0)),s=0;o<a;o++,s++)Pm(i,s,e[o]);return i.length=s,i},vK=Dm.f,gK=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Zut={f:function(e){return gK&&xs(e)=="Window"?function(t){try{return vK(t)}catch{return XO(gK)}}(e):vK(Dd(e))}},mK=Ln(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),Cb=Object.isExtensible,Ef=Ln(function(){Cb(1)})||mK?function(e){return!!pr(e)&&(!mK||xs(e)!="ArrayBuffer")&&(!Cb||Cb(e))}:Cb,Qut=!Ln(function(){return Object.isExtensible(Object.preventExtensions({}))}),I5=e4(function(e){var t=js.f,n=!1,r=HR("meta"),o=0,a=function(s){t(s,r,{value:{objectID:"O"+o++,weakData:{}}})},i=e.exports={enable:function(){i.enable=function(){},n=!0;var s=Dm.f,l=Bt([].splice),u={};u[r]=1,s(u).length&&(Dm.f=function(c){for(var d=s(c),f=0,p=d.length;f<p;f++)if(d[f]===r){l(d,f,1);break}return d},Er({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Zut.f}))},fastKey:function(s,l){if(!pr(s))return typeof s=="symbol"?s:(typeof s=="string"?"S":"P")+s;if(!zr(s,r)){if(!Ef(s))return"F";if(!l)return"E";a(s)}return s[r].objectID},getWeakData:function(s,l){if(!zr(s,r)){if(!Ef(s))return!0;if(!l)return!1;a(s)}return s[r].weakData},onFreeze:function(s){return Qut&&n&&Ef(s)&&!zr(s,r)&&a(s),s}};O5[r]=!0}),ect=lt.TypeError,X6=function(e,t){this.stopped=e,this.result=t},yK=X6.prototype,Im=function(e,t,n){var r,o,a,i,s,l,u,c=n&&n.that,d=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),g=Cp(t,c),v=function(y){return r&&jO(r,"normal",y),new X6(!0,y)},m=function(y){return d?(Ur(y),p?g(y[0],y[1],v):g(y[0],y[1])):p?g(y,v):g(y)};if(f)r=e;else{if(!(o=QR(e)))throw ect(x5(e)+" is not iterable");if(bue(o)){for(a=0,i=Hp(e);i>a;a++)if((s=m(e[a]))&&wp(yK,s))return s;return new X6(!1)}r=wue(e,o)}for(l=r.next;!(u=In(l,r)).done;){try{s=m(u.value)}catch(y){jO(r,"throw",y)}if(typeof s=="object"&&s&&wp(yK,s))return s}return new X6(!1)},tct=lt.TypeError,N5=function(e,t){if(wp(t,e))return e;th
`)}return o};function Iue(e,t){if(!(e instanceof HTMLElement&&e.dataset.slateVoid==="true"))for(var n=e.childNodes,r=n.length;r--;){var o=n[r],a=o.nodeType;a==3?t(o,e):a!=1&&a!=9&&a!=11||Iue(o,t)}}function DK(e){if(e.length===0)return"";var t=e[0];return t.nodeType!==ol.ELEMENT_NODE?"":t.tagName.toLowerCase()}(Ko=ol||(ol={}))[Ko.ELEMENT_NODE=1]="ELEMENT_NODE",Ko[Ko.TEXT_NODE=3]="TEXT_NODE",Ko[Ko.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",Ko[Ko.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",Ko[Ko.COMMENT_NODE=8]="COMMENT_NODE",Ko[Ko.DOCUMENT_NODE=9]="DOCUMENT_NODE",Ko[Ko.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",Ko[Ko.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE";var rT=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),b1=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Fg=typeof navigator<"u"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),hct=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),vct=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),oT=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),$g=!vct&&!hct&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",me={getWindow:function(e){var t=Pue.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey:function(e,t){var n=Z6.get(t);return n||(n=new hK,Z6.set(t,n)),n},setNewKey:function(e){var t=new hK;Z6.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var o=rv.get(r);if(o==null){if(ne.isEditor(r))return n;break}var a=Nm.get(r);if(a==null)break;n.unshift(a),r=o}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(t))},findDocumentOrShadowRoot:function(e){if(e.isDestroyed)return window.document;var t=me.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&n.getSelection!=null?n:t.ownerDocument},getParentNode:function(e,t){return rv.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&r!=null;){var o=me.getParentNode(e,r);if(o==null)break;n.push(o),r=o}return n},getTopNode:function(e,t){var n=[me.findPath(e,t)[0]];return dt.get(e,n)},toDOMNode:function(e,t){var n;if(ne.isEditor(t))n=fI.get(e);else{var r=me.findKey(e,t);n=tT.get(r)}if(!n)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(t));return n},hasDOMNode:function(e,t,n){n===void 0&&(n={});var r,o=n.editable,a=o!==void 0&&o,i=me.toDOMNode(e,e);try{r=ls(t)?t:t.parentElement}catch(s){if(!s.message.includes('Permission denied to access property "nodeType"'))throw s}return!!r&&r.closest("[data-slate-editor]")===i&&(!a||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))},toDOMRange:function(e,t){var n=t.anchor,r=t.focus,o=He.isBackward(t),a=me.toDOMPoint(e,n),i=He.isCollapsed(t)?a:me.toDOMPoint(e,r),s=me.getWindow(e).document.createRange(),l=Tn(o?i:a,2),u=l[0],c=l[1],d=Tn(o?a:i,2),f=d[0],p=d[1],g=!!(ls(u)?u:u.parentElement).getAttribute("data-slate-zero-width"),v=!!(ls(f)?f:f.parentElement).getAttribute("data-slate-zero-width");return s.setStart(u,g?1:c),s.setEnd(f,v?1:p),s},toDOMPoint:function(e,t){var n,r,o,a=Tn(ne.node(e,t.path),1)[0],i=me.toDOMNode(e,a);ne.void(e,{at:t})&&(t={path:t.path,offset:0});var s=Array.from(i.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),l=0;try{for(var u=Mi(s),c=u.next();!c.done;c=u.next()){var d=c.value,f=d.childNodes[0];if(f!=null&&f.textContent!=null){var p=f.textContent.length,g=d.getAttribute("data-slate-length"),v=l+(g==null?p:parseInt(g,10));if(t.offset<=v){o=[f,Math.min(p,Math.max(0,t.offset-l))];break}l=v}}}catch(m){n={error:m}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(t));return o},toSlateNode:function(e,t){var n=ls(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?j8.get(n):null;if(!r)throw new Error("Cannot resolv
`)))&&d--}if(!c){if(a)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+t)}var y=me.toSlateNode(e,c);return{path:me.findPath(e,y),offset:d}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return ne.hasPath(e,n.path)&&ne.hasPath(e,r.path)},getNodeType:function(e){return Ot.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map(function(t){return dt.string(t)}).join("")},getSelectedElems:function(e){var t,n,r=[],o=ne.nodes(e,{universal:!0});try{for(var a=Mi(o),i=a.next();!i.done;i=a.next()){var s=Tn(i.value,1)[0];Ot.isElement(s)&&r.push(s)}}catch(l){t={error:l}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return r},getSelectedNodeByType:function(e,t){var n=this,r=Tn(ne.nodes(e,{match:function(a){return n.checkNodeType(a,t)},universal:!0}),1),o=r[0];return o==null?null:o[0]},getSelectedTextNode:function(e){var t=Tn(ne.nodes(e,{match:function(r){return yt.isText(r)},universal:!0}),1),n=t[0];return n==null?null:n[0]},isNodeSelected:function(e,t){var n=Tn(ne.nodes(e,{match:function(o){return o===t},universal:!0}),1),r=n[0];return r!=null&&Tn(r,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(ne.isEnd(e,n.anchor,t)||ne.isEnd(e,n.focus,t))},getTextarea:function(e){var t=JO.get(e);if(t==null)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return F5.get(e)||null},getHoverbar:function(e){return z8.get(e)||null},normalizeContent:function(e){e.children.forEach(function(t,n){e.normalizeNode([t,[n]])})},getLeftLengthOfMaxLength:function(e){var t=e.getConfig(),n=t.maxLength,r=t.onMaxLength;if(typeof n!="number"||n<=0)return 1/0;var o=n-e.getText().replace(/\r|\n|(\r\n)/g,"").length;return o<=0&&r&&r(e),o},cleanExposedTexNodeInSelectionBlock:function(e){var t,n,r,o,a=me.getTextarea(e).$textArea,i=a==null?void 0:a[0].childNodes;if(i)try{for(var s=Mi(Array.from(i)),l=s.next();!l.done;l=s.next()){var u=l.value;if(u.nodeType!==3)break;u.remove()}}catch(v){t={error:v}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}var c=ne.nodes(e,{match:function(v){return!(!Ot.isElement(v)||e.isInline(v))},universal:!0});try{for(var d=Mi(c),f=d.next();!f.done;f=d.next()){var p=f.value;if(p!=null){var g=p[0];Iue(me.toDOMNode(e,g),function(v,m){var y=be(m);y.attr("data-slate-string")||y.attr("data-slate-zero-width")||y.attr("data-w-e-reserve")||m.removeChild(v)})}}}catch(v){r={error:v}}finally{try{f&&!f.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}},isLastNode:function(e,t){var n=e.children||[];return n[n.length-1]===t},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(e){var t,n,r=ne.nodes(e,{match:function(s){return e.isVoid(s)}}),o=0;try{for(var a=Mi(r),i=a.next();!i.done;i=a.next())i.value,o++}catch(s){t={error:s}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return o>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(t==null||He.isExpanded(t))return!1;var n=me.getSelectedNodeByType(e,"paragraph");if(n===null)return!1;var r=n.children;return r.length===1&&(r[0].text===""||void 0)},isEmptyPath:function(e,t){var n=ne.node(e,t);if(n==null)return!1;var r=Tn(n,1)[0].children;return r.length===1&&r[0].text===""}},gct=1,Nue={},Fm={},mct=jv.filter,yct=B5("filter");Er({target:"Array",proto:!0,forced:!yct},{filter:function(e){return mct(this,e,arguments.length>1?arguments[1]:void 0)}});var aT=`
\v\f\r                 \u2028\u2029\uFEFF`,MK=Bt("".replace),U8="["+aT+"]",bct=RegExp("^"+U8+U8+"*"),wct=RegExp(U8+U8+"*$"),KS=function(e){return function(t){var n=tr(qi(t));return 1&e&&(n=MK(n,bct,"")),2&e&&(n=MK(n,wct,"")),n}},_ct={start:KS(1),end:KS(2),trim:KS(3)},Cct=Vv.PROPER,Sct=_ct.trim;Er({target:"String",proto:!0,forced:function(e){return Ln(function(){return!!aT[e]()||"​…᠎"[e]()!=="​…᠎"||Cct&&aT[e].name!==e})}("trim")},{trim:function(){return Sct(this)}});var iT=[],Fue={};function Ect(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}var $m,dh,PK,qS,W8=lt.Promise,BK=kr("species"),hI=function(e){var t=jp(e),n=js.f;Eo&&t&&!t[BK]&&n(t,BK,{configurable:!0,get:function(){return this}})},xct=lt.TypeError,kct=kr("species"),$ue=function(e,t){var n,r=Ur(e).constructor;return r===void 0||(n=Ur(r)[kct])==null?t:function(o){if(M5(o))return o;throw xct(x5(o)+" is not a constructor")}(n)},Lue=Bt([].slice),Vue=/(?:ipad|iphone|ipod).*applewebkit/i.test(v0),Hc=xs(lt.process)=="process",sT=lt.setImmediate,lT=lt.clearImmediate,Act=lt.process,GS=lt.Dispatch,Oct=lt.Function,RK=lt.MessageChannel,Tct=lt.String,YS=0,w1={};try{$m=lt.location}catch{}var vI=function(e){if(zr(w1,e)){var t=w1[e];delete w1[e],t()}},XS=function(e){return function(){vI(e)}},IK=function(e){vI(e.data)},NK=function(e){lt.postMessage(Tct(e),$m.protocol+"//"+$m.host)};sT&&lT||(sT=function(e){var t=Lue(arguments,1);return w1[++YS]=function(){sI(Xn(e)?e:Oct(e),void 0,t)},dh(YS),YS},lT=function(e){delete w1[e]},Hc?dh=function(e){Act.nextTick(XS(e))}:GS&&GS.now?dh=function(e){GS.now(XS(e))}:RK&&!Vue?(qS=(PK=new RK).port2,PK.port1.onmessage=IK,dh=Cp(qS.postMessage,qS)):lt.addEventListener&&Xn(lt.postMessage)&&!lt.importScripts&&$m&&$m.protocol!=="file:"&&!Ln(NK)?(dh=NK,lt.addEventListener("message",IK,!1)):dh="onreadystatechange"in Tm("script")?function(e){LO.appendChild(Tm("script")).onreadystatechange=function(){LO.removeChild(this),vI(e)}}:function(e){setTimeout(XS(e),0)});var Lg,hf,_1,Hh,JS,ZS,QS,FK,zue={set:sT,clear:lT},Dct=/ipad|iphone|ipod/i.test(v0)&&lt.Pebble!==void 0,Mct=/web0s(?!.*chrome)/i.test(v0),Pct=n4.f,eE=zue.set,$K=lt.MutationObserver||lt.WebKitMutationObserver,LK=lt.document,VK=lt.process,Ab=lt.Promise,zK=Pct(lt,"queueMicrotask"),jue=zK&&zK.value;jue||(Lg=function(){var e,t;for(Hc&&(e=VK.domain)&&e.exit();hf;){t=hf.fn,hf=hf.next;try{t()}catch(n){throw hf?Hh():_1=void 0,n}}_1=void 0,e&&e.enter()},Vue||Hc||Mct||!$K||!LK?!Dct&&Ab&&Ab.resolve?((QS=Ab.resolve(void 0)).constructor=Ab,FK=Cp(QS.then,QS),Hh=function(){FK(Lg)}):Hc?Hh=function(){VK.nextTick(Lg)}:(eE=Cp(eE,lt),Hh=function(){eE(Lg)}):(JS=!0,ZS=LK.createTextNode(""),new $K(Lg).observe(ZS,{characterData:!0}),Hh=function(){ZS.data=JS=!JS}));var tE,jK,Hue,HK,Uue=jue||function(e){var t={fn:e,next:void 0};_1&&(_1.next=t),hf||(hf=t,Hh()),_1=t},Bct=function(e){var t,n;this.promise=new e(function(r,o){if(t!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");t=r,n=o}),this.resolve=pd(t),this.reject=pd(n)},gI={f:function(e){return new Bct(e)}},uT=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},Rct=typeof window=="object",Wue=zue.set,Ict=kr("species"),el="Promise",UK=aa.getterFor(el),Nct=aa.set,Fct=aa.getterFor(el),af=W8&&W8.prototype,sl=W8,Vg=af,Kue=lt.TypeError,cT=lt.document,mI=lt.process,m0=gI.f,$ct=m0,Lct=!!(cT&&cT.createEvent&&lt.dispatchEvent),que=Xn(lt.PromiseRejectionEvent),Gue=!1,C1=Mm(el,function(){var e=A5(sl),t=e!==String(sl);if(!t&&Om===66)return!0;if(Om>=51&&/native code/.test(e))return!1;var n=new sl(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[Ict]=r,!(Gue=n.then(function(){})instanceof r)||!t&&Rct&&!que}),Vct=C1||!eI(function(e){sl.all(e).catch(function(){})}),Yue=function(e){var t;return!(!pr(e)||!Xn(t=e.then))&&t},yI=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;Uue(function(){for(var r=e.value,o=e.state==1,a=0;n.length>a;){var i,s,l,u=n[a++],c=o?u.ok:u.fail,d=u.resolve,f=u.reject,p=u.domain;try{c?(o||(e.rejection===2&&jct(e),e.
`)>=0)return;c&&(c=rce(c),ZK(s,c)||s.push({text:c}))}}else{if(u.nodeName==="BR")return void(ZK(s,`
`)||s.push({text:`
`}));var d=wI(be(u),i);Array.isArray(d)?d.forEach(function(f){return s.push(f)}):s.push(d)}}),s)}(e,t),r=function(a){for(var i in K8)if(a[0].matches(i))return K8[i];return adt}(e),o=r(e[0],n,t);return Array.isArray(o)||(o=[o]),o.forEach(function(a){ne.isVoid(t,a)||(n.length===0&&(a.children=[{text:e.text().replace(/\s+/gm," ")}]),bI.forEach(function(i){a=i(e[0],a,t)}))}),o}function oE(e,t){e.parents("pre").length===0&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,`
`));var n=e[0].textContent||"";n=function(o){return o.replace(/&nbsp;/g," ").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&reg;/g,"®").replace(/&copy;/g,"©").replace(/&trade;/g,"™").replace(/&quot;/g,'"')}(n);var r={text:n=rce(n)};return bI.forEach(function(o){r=o(e[0],r,t)}),r}function wI(e,t){tce.forEach(function(r){var o=r.selector,a=r.preParseHtml;e[0].matches(o)&&(e=be(a(e[0])))});var n=DK(e);return n==="span"?e.attr("data-w-e-type")?rE(e,t):oE(e,t):n==="code"?DK(e.parent())==="pre"?rE(e,t):oE(e,t):ece.includes(n)?oE(e,t):rE(e,t)}function oce(e,t,n){var r=be(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",function(){r.removeAttr(t)}),!1)}function QK(e,t){t===void 0&&(t="");var n=[];t===""&&(t="<p><br></p>"),t.indexOf("<")!==0&&(t=t.split(/\n/).map(function(o){return"<p>"+o+"</p>"}).join(""));var r=be("<div>"+t+"</div>");return Array.from(r.children()).forEach(function(o){var a=wI(be(o),e);Array.isArray(a)?a.forEach(function(i){return n.push(i)}):n.push(a)}),n}var idt=js.f,eq=I5.fastKey,tq=aa.set,aE=aa.getterFor,sdt={getConstructor:function(e,t,n,r){var o=e(function(u,c){N5(u,a),tq(u,{type:t,index:P5(null),first:void 0,last:void 0,size:0}),Eo||(u.size=0),c!=null&&Im(c,u[r],{that:u,AS_ENTRIES:n})}),a=o.prototype,i=aE(t),s=function(u,c,d){var f,p,g=i(u),v=l(u,c);return v?v.value=d:(g.last=v={index:p=eq(c,!0),key:c,value:d,previous:f=g.last,next:void 0,removed:!1},g.first||(g.first=v),f&&(f.next=v),Eo?g.size++:u.size++,p!=="F"&&(g.index[p]=v)),u},l=function(u,c){var d,f=i(u),p=eq(c);if(p!=="F")return f.index[p];for(d=f.first;d;d=d.next)if(d.key==c)return d};return nv(a,{clear:function(){for(var u=i(this),c=u.index,d=u.first;d;)d.removed=!0,d.previous&&(d.previous=d.previous.next=void 0),delete c[d.index],d=d.next;u.first=u.last=void 0,Eo?u.size=0:this.size=0},delete:function(u){var c=this,d=i(c),f=l(c,u);if(f){var p=f.next,g=f.previous;delete d.index[f.index],f.removed=!0,g&&(g.next=p),p&&(p.previous=g),d.first==f&&(d.first=p),d.last==f&&(d.last=g),Eo?d.size--:c.size--}return!!f},forEach:function(u){for(var c,d=i(this),f=Cp(u,arguments.length>1?arguments[1]:void 0);c=c?c.next:d.first;)for(f(c.value,c.key,this);c&&c.removed;)c=c.previous},has:function(u){return!!l(this,u)}}),nv(a,n?{get:function(u){var c=l(this,u);return c&&c.value},set:function(u,c){return s(this,u===0?0:u,c)}}:{add:function(u){return s(this,u=u===0?0:u,u)}}),Eo&&idt(a,"size",{get:function(){return i(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=aE(t),a=aE(r);nI(e,t,function(i,s){tq(this,{type:r,target:i,state:o(i),kind:s,last:void 0})},function(){for(var i=a(this),s=i.kind,l=i.last;l&&l.removed;)l=l.previous;return i.target&&(i.last=l=l?l.next:i.state.first)?s=="keys"?{value:l.key,done:!1}:s=="values"?{value:l.value,done:!1}:{value:[l.key,l.value],done:!1}:(i.target=void 0,{value:void 0,done:!0})},n?"entries":"values",!n,!0),hI(t)}};Aue("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},sdt);var nq=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function rq(e,t){e.isInline(t)?(e.insertNode(t),t.type==="link"&&e.insertFragment([{text:""}])):Be.insertNodes(e,t,{mode:"highest"})}var ldt=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(r){var o=t.selection;if(o){var a=Tn(He.edges(o),2),i=a[0],s=a[1],l=ne.void(t,{at:i.path}),u=ne.void(t,{at:s.path});if(!He.isCollapsed(o)||l){var c=me.toDOMRange(t,o),d=c.cloneContents(),f=d.childNodes[0];if(d.childNodes.forEach(function(C){C.textContent&&C.textContent.trim()!==""&&(f=C)}),u){var p=Tn(u,1)[0],g=c.cloneRange(),v=me.toDOMNode(t,p);g.setEndAfter(v),d=g.cloneContents()}if(l&&(f=d.querySelector("[data-slate-spacer]")),Array.from(d.querySelectorAll("[data-slate-zero-width]")).forEach(function(C){var S=C.getAttribute("data-slate-zero-width")==="n";C.textContent=S?`
`:""}),Bue(f)){var m=f.ownerDocument.createElement("span");m.style.whiteSpace="pre",m.appendChild(f),d.appendChild(m),f=m}var y=t.getFragment(),b=JSON.stringify(y),_=window.btoa(encodeURIComponent(b));f.setAttribute("data-slate-fragment",_),r.setData("application/x-slate-fragment",_);var w=d.ownerDocument.createElement("div");return w.appendChild(d),w.setAttribute("hidden","true"),d.ownerDocument.body.appendChild(w),r.setData("text/html",w.innerHTML),r.setData("text/plain",pct(w)),d.ownerDocument.body.removeChild(w),r}}},t.insertData=function(r){var o,a,i=r.getData("application/x-slate-fragment");if(i){var s=decodeURIComponent(window.atob(i)),l=JSON.parse(s);t.insertFragment(l)}else{var u=r.getData("text/plain"),c=r.getData("text/html");if(c)t.dangerouslyInsertHtml(c);else if(u){var d=u.split(/\r\n|\r|\n/),f=!1;try{for(var p=Mi(d),g=p.next();!g.done;g=p.next()){var v=g.value;f&&Be.splitNodes(t,{always:!0}),n(v),f=!0}}catch(m){o={error:m}}finally{try{g&&!g.done&&(a=p.return)&&a.call(p)}finally{if(o)throw o.error}}}}},t},H2=function(e){return e!=null},udt={object:!0,function:!0,undefined:!0},cdt=/^\s*class[\s{/}]/,ddt=Function.prototype.toString,oq=function(e){return!!function(t){if(typeof t!="function"||!hasOwnProperty.call(t,"length"))return!1;try{if(typeof t.length!="number"||typeof t.call!="function"||typeof t.apply!="function")return!1}catch{return!1}return!function(n){if(!function(r){return!!H2(r)&&hasOwnProperty.call(udt,typeof r)}(n))return!1;try{return!!n.constructor&&n.constructor.prototype===n}catch{return!1}}(t)}(e)&&!cdt.test(ddt.call(e))},_I=function(e){return e!=null},fdt=Object.keys,pdt=function(){try{return Object.keys("primitive"),!0}catch{return!1}}()?Object.keys:function(e){return fdt(_I(e)?Object(e):e)},hdt=function(e){if(!_I(e))throw new TypeError("Cannot use null or undefined");return e},vdt=Math.max,aq=function(){var e,t=Object.assign;return typeof t=="function"&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}()?Object.assign:function(e,t){var n,r,o,a=vdt(arguments.length,2);for(e=Object(hdt(e)),o=function(i){try{e[i]=t[i]}catch(s){n||(n=s)}},r=1;r<a;++r)pdt(t=arguments[r]).forEach(o);if(n!==void 0)throw n;return e},gdt=Array.prototype.forEach,mdt=Object.create,ydt=function(e,t){var n;for(n in e)t[n]=e[n]},iq=function(e){var t=mdt(null);return gdt.call(arguments,function(n){_I(n)&&ydt(Object(n),t)}),t},iE="razdwatrzy",bdt=String.prototype.indexOf,jg=typeof iE.contains=="function"&&iE.contains("dwa")===!0&&iE.contains("foo")===!1?String.prototype.contains:function(e){return bdt.call(this,e,arguments[1])>-1},Tb=e4(function(e){var t=e.exports=function(n,r){var o,a,i,s,l;return arguments.length<2||typeof n!="string"?(s=r,r=n,n=null):s=arguments[2],H2(n)?(o=jg.call(n,"c"),a=jg.call(n,"e"),i=jg.call(n,"w")):(o=i=!0,a=!1),l={value:r,configurable:o,enumerable:a,writable:i},s?aq(iq(s),l):l};t.gs=function(n,r,o){var a,i,s,l;return typeof n!="string"?(s=o,o=r,r=n,n=null):s=arguments[3],H2(r)?oq(r)?H2(o)?oq(o)||(s=o,o=void 0):o=void 0:(s=r,r=o=void 0):r=void 0,H2(n)?(a=jg.call(n,"c"),i=jg.call(n,"e")):(a=!0,i=!1),l={get:r,set:o,configurable:a,enumerable:i},s?aq(iq(s),l):l}}),sE=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},wdt=e4(function(e,t){var n,r,o,a,i,s,l,u=Function.prototype.apply,c=Function.prototype.call,d=Object.create,f=Object.defineProperty,p=Object.defineProperties,g=Object.prototype.hasOwnProperty,v={configurable:!0,enumerable:!1,writable:!0};n=function(m,y){var b;return sE(y),g.call(this,"__ee__")?b=this.__ee__:(b=v.value=d(null),f(this,"__ee__",v),v.value=null),b[m]?typeof b[m]=="object"?b[m].push(y):b[m]=[b[m],y]:b[m]=y,this},r=function(m,y){var b,_;return sE(y),_=this,n.call(this,m,b=function(){o.call(_,m,b),u.call(y,this,arguments)}),b.__eeOnceListener__=y,this},o=function(m,y){var b,_,w,C;if(sE(y),!g.call(this,"__ee__"))return this;if(!(b=this.__ee__)[m])return this;if(typeof(_=b[m])=="object")for(C=0;w=_[C];++C)w!==y&&w.__eeOnceListener__!==y||(_.length===2?b[m]=_[C?0:1]:_.splice(C,1));else _!==y&&_.__eeOnceListene
`:e)}function uE(e,t){return e===void 0&&(e=0),t===void 0&&(t=!1),Xt("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\uFEFF",t?Xt("br",null):null)}function hT(e,t,n,r){return Nm.set(e,t),rv.set(e,n),Ot.isElement(e)?function(o,a){var i,s=me.findKey(a,o),l=a.isInline(o),u=ne.isVoid(a,o),c=Que(s.id),d={id:c,key:s.id,"data-slate-node":"element","data-slate-inline":l},f=o.type,p=o.children,g=p===void 0?[]:p,v=function(C){return sce[C]||Pdt}(f);i=u?null:g.map(function(C,S){return hT(C,S,o,a)});var m=v(o,i,a);if(u){d["data-slate-void"]=!0;var y=l?"span":"div",b=Tn(dt.texts(o),1),_=Tn(b[0],1)[0],w=Xt(y,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},hT(_,0,o,a));m=Xt(y,{style:{position:"relative"}},m,w),Nm.set(_,0),rv.set(_,o)}return m.data==null&&(m.data={}),Object.assign(m.data,d),u||l||(m=function(C,S){var E=S;return pT.forEach(function(k){E=k(C,S)}),E}(o,m)),Gi(function(){var C=nT(c);C!=null&&(tT.set(s,C),H8.set(o,C),j8.set(C,o))}),m}(e,r):function(o,a,i){if(o.text==null)throw new Error("Current node is not slate Text "+JSON.stringify(o));var s=me.findKey(i,o),l=i.getConfig().decorate;if(l==null)throw new Error("Can not get config.decorate");var u=me.findPath(i,o),c=l([o,u]),d=yt.decorations(o,c),f=d.map(function(v,m){var y=function(b,_,w,C,S){_===void 0&&(_=!1);var E=b.text,k=me.findPath(S,w),A=Me.parent(k);if(ne.isEditor(C))throw new Error("Text node "+JSON.stringify(w)+" parent is Editor");return S.isVoid(C)?uE(dt.string(C).length):E!==""||C.children[C.children.length-1]!==w||S.isInline(C)||ne.string(S,A)!==""?E===""?uE():_&&E.slice(-1)===`
`?dq(E,!0):dq(E):uE(0,!0)}(v,m===d.length-1,o,a,i);return y=function(b,_){var w=_;return pT.forEach(function(C){w=C(b,w)}),w}(v,y),Xt("span",{"data-slate-leaf":!0},y)}),p=function(v){return"w-e-text-"+v}(s.id),g=Xt("span",{"data-slate-node":"text",id:p,key:s.id},f);return Gi(function(){var v=nT(p);v!=null&&(tT.set(s,v),H8.set(o,v),j8.set(v,o))}),g}(e,n,r)}function Bdt(e,t){var n,r=e.$scroll,o=function(v){return"w-e-textarea-"+v}(e.id),a=t.getConfig(),i=a.readOnly,s=a.autoFocus,l=function(v,m){return m===void 0&&(m=!1),Z0("div#"+v,{props:{contentEditable:!m}})}(o,i),u=t.children||[];l.children=u.map(function(v,m){var y=hT(v,m,t,t);return ice(y),y});var c=EK.get(e);if(c==null&&(c=!0),c){var d=function(v,m){return be(`<div
id="`+v+`"
data-slate-editor
data-slate-node="value"
suppressContentEditableWarning
role="textarea"
spellCheck="true"
autoCorrect="true"
autoCapitalize="true"
></div>`)}(o);r.append(d),e.$textArea=d,n=d[0],(p=Sat([xat,Tat,Mat,kat,Oat,Eat]))(n,l),EK.set(e,!1),xK.set(e,p)}else{var f=kK.get(e),p=xK.get(e);if(f==null||p==null)return;n=f.elm,p(f,l)}if(n!=null||(n=nT(o))!=null){if((c?s:t.isFocused())&&n.focus({preventScroll:!0}),c){var g=pI(n);g&&Pue.set(t,g)}fI.set(t,n),H8.set(t,n),j8.set(n,t),kK.set(e,l)}}function fq(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function pq(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function cE(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return pq(n.overflowY,t)||pq(n.overflowX,t)||function(r){var o=function(a){if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}}(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)}(e)}return!1}function Mb(e,t,n,r,o,a,i,s){return a<e&&i>t||a>e&&i<t?0:a<=e&&s<=n||i>=t&&s>=n?a-e-r:i>t&&s<n||a<e&&s>n?i-t+o:0}function hq(e,t){var n=window,r=t.scrollMode,o=t.block,a=t.inline,i=t.boundary,s=t.skipOverflowHiddenElements,l=typeof i=="function"?i:function(pe){return pe!==i};if(!fq(e))throw new TypeError("Invalid target");for(var u=document.scrollingElement||document.documentElement,c=[],d=e;fq(d)&&l(d);){if((d=d.parentElement)===u){c.push(d);break}d!=null&&d===document.body&&cE(d)&&!cE(document.documentElement)||d!=null&&cE(d,s)&&c.push(d)}for(var f=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,g=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,m=e.getBoundingClientRect(),y=m.height,b=m.width,_=m.top,w=m.right,C=m.bottom,S=m.left,E=o==="start"||o==="nearest"?_:o==="end"?C:_+y/2,k=a==="center"?S+b/2:a==="end"?w:S,A=[],D=0;D<c.length;D++){var B=c[D],P=B.getBoundingClientRect(),K=P.height,X=P.width,z=P.top,R=P.right,j=P.bottom,$=P.left;if(r==="if-needed"&&_>=0&&S>=0&&C<=p&&w<=f&&_>=z&&C<=j&&S>=$&&w<=R)return A;var N=getComputedStyle(B),Y=parseInt(N.borderLeftWidth,10),L=parseInt(N.borderTopWidth,10),V=parseInt(N.borderRightWidth,10),U=parseInt(N.borderBottomWidth,10),G=0,Z=0,ee="offsetWidth"in B?B.offsetWidth-B.clientWidth-Y-V:0,q="offsetHeight"in B?B.offsetHeight-B.clientHeight-L-U:0;if(u===B)G=o==="start"?E:o==="end"?E-p:o==="nearest"?Mb(v,v+p,p,L,U,v+E,v+E+y,y):E-p/2,Z=a==="start"?k:a==="center"?k-f/2:a==="end"?k-f:Mb(g,g+f,f,Y,V,g+k,g+k+b,b),G=Math.max(0,G+v),Z=Math.max(0,Z+g);else{G=o==="start"?E-z-L:o==="end"?E-j+U+q:o==="nearest"?Mb(z,j,K,L,U+q,E,E+y,y):E-(z+K/2)+q/2,Z=a==="start"?k-$-Y:a==="center"?k-($+X/2)+ee/2:a==="end"?k-R+V+ee:Mb($,R,X,Y,V+ee,k,k+b,b);var te=B.scrollLeft,oe=B.scrollTop;E+=oe-(G=Math.max(0,Math.min(oe+G,B.scrollHeight-K+q))),k+=te-(Z=Math.max(0,Math.min(te+Z,B.scrollWidth-X+ee)))}A.push({el:B,top:G,left:Z})}return A}function vq(e){return e===Object(e)&&Object.keys(e).length!==0}function xi(e,t){return Sp(t)&&me.hasDOMNode(e,t,{editable:!0})}function gq(e,t){if(e.getConfig().readOnly)return!1;var n=Wh(e,t)&&me.toSlateNode(e,t);return ne.isVoid(e,n)}function Wh(e,t){return Sp(t)&&me.hasDOMNode(e,t)}function lce(e,t,n){n===void 0&&(n=!1);var r=t.selection,o=t.getConfig(),a=me.findDocumentOrShadowRoot(t).getSelection();if(a&&(!e.isComposing||n)&&t.isFocused()){var i=a.type!=="None";if(r||i){var s=fI.get(t),l=!1;if(s.contains(a.anchorNode)&&s.contains(a.focusNode)&&(l=!0),i&&l&&r){var u=me.toSlateRange(t,a,{exactMatch:!0,suppressThrow:!0});if(u&&He.equals(u,r)){var c=!0;if(He.isCollapsed(r)){var d=a.anchorNode,f=a.anchorOffset;if(d===s){var p=s.childNodes,g=void 0;(g=p[f])&&g.matches("table")&&(c=!1),(g=p[f-1])&&g.matches("table")&&(c=!1)}}if(c)return}}if(!r||me.hasRange(t,r)){e.isUpdatingSelection=!0;var v=r&&me.toDOMRange(t,r);if(v){He.isBackward(r)?a.setBaseAndExtent(v.endContainer,v.endOffset,v.startContainer,v.startOffset):a.setBaseAndExtent(v.startContainer,v.startOffset,v.endContainer,v.endOffset);var m=v.startContainer.parentElement;if(!m.closest("[data-slate-spacer]")){m.getBoundingClientRect=v.getBoundingClientRect.bind(v);var y=document.body;
`+r:n;e.attr("data-tooltip",i),e.addClass("w-e-menu-tooltip-v5")}}}lI("match",function(e,t,n){return[function(r){var o=qi(this),a=r==null?void 0:_p(r,e);return a?In(a,r,o):new RegExp(r)[e](tr(o))},function(r){var o=Ur(this),a=tr(r),i=n(t,o,a);if(i.done)return i.value;if(!o.global)return Rm(o,a);var s=o.unicode;o.lastIndex=0;for(var l,u=[],c=0;(l=Rm(o,a))!==null;){var d=tr(l[0]);u[c]=d,d===""&&(o.lastIndex=uI(a,zv(o.lastIndex),s)),c++}return c===0?null:u}]});var AI=function(){function e(t,n,r){var o=this;r===void 0&&(r=!1),this.$elem=be('<div class="w-e-bar-item"></div>'),this.$button=be('<button type="button"></button>'),this.disabled=!1,this.menu=n;var a=n.tag,i=n.width;if(a!=="button")throw new Error("Invalid tag '"+a+"', expected 'button'");var s=n.title,l=n.hotkey,u=l===void 0?"":l,c=n.iconSvg,d=c===void 0?"":c,f=this.$button;if(d){var p=be(d);xI(p),f.append(p)}else f.text(s);cce(f,d,s,u,r),r&&d&&f.append(be('<span class="title">'+s+"</span>")),i&&f.css("width",i+"px"),f.attr("data-menu-key",t),this.$elem.append(f),Gi(function(){return o.init()})}return e.prototype.init=function(){var t=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(n){n.preventDefault(),ai(t).hidePanelOrModal(),t.disabled||(t.exec(),t.onButtonClick())})},e.prototype.exec=function(){var t=ai(this),n=this.menu,r=n.getValue(t);n.exec(t,r)},e.prototype.setActive=function(){var t=ai(this),n=this.$button,r="active";this.menu.isActive(t)?n.addClass(r):n.removeClass(r)},e.prototype.setDisabled=function(){var t=ai(this),n=this.$button,r=this.menu.isDisabled(t);(t.selection==null||t.isDisabled())&&(r=!0),this.menu.alwaysEnable&&(r=!1);var o="disabled";r?n.addClass(o):n.removeClass(o),this.disabled=r},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e}(),Vdt=function(e){function t(n,r,o){return o===void 0&&(o=!1),e.call(this,n,r,o)||this}return Hv(t,e),t.prototype.onButtonClick=function(){},t}(AI),OI=function(){function e(t){this.isShow=!1,this.showTime=0,this.record(t)}return e.prototype.record=function(t){var n=eT.get(t);n==null&&(n=new Set,eT.set(t,n)),n.add(this),J6.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=J6.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=J6.get(this);t&&t.emit("modalOrPanelHide")}},e}(),zdt=function(e){function t(n){var r=e.call(this,n)||this;return r.type="dropPanel",r.$elem=be('<div class="w-e-drop-panel"></div>'),r}return Hv(t,e),t.prototype.genSelfElem=function(){return null},t}(OI),jdt=function(e){function t(n,r,o){o===void 0&&(o=!1);var a=e.call(this,n,r,o)||this;if(a.dropPanel=null,a.menu=r,r.showDropPanel){var i=kI();a.$button.append(i)}return a}return Hv(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=ai(this);if(this.dropPanel==null){var o=new zdt(r),a=n.getPanelContentElem(r);o.renderContent(a),o.appendTo(this.$elem),o.show(),this.dropPanel=o}else{var i=this.dropPanel;i.isShow?i.hide():(a=n.getPanelContentElem(r),i.renderContent(a),i.show())}var s=this.dropPanel;if(s.isShow){var l=this.$elem,u=l.offset().left,c=l.parents(".w-e-bar");u-c.offset().left>=c.width()/2?s.$elem.css({left:"none",right:"0"}):s.$elem.css({left:"0",right:"none"})}}},t}(AI),Hdt=function(e){function t(n,r){r===void 0&&(r=0);var o=e.call(this,n)||this;o.type="modal",o.$elem=be('<div class="w-e-modal"></div>'),o.width=0,r&&(o.width=r);var a=o.$elem;return a.on("click",function(i){return i.stopPropagation()}),a.on("keyup",function(i){i.code==="Escape"&&(o.hide(),n.restoreSelection())}),o}return Hv(t,e),t.prototype.genSelfElem=function(){var n=this,r=be('<span class="btn-close"><svg viewBox="0 0 1024 10
`)},b.getSelectionText=function(){var E=b.selection;return E==null?"":ne.string(y,E)},b.getElemsByType=function(E,k){var A,D;k===void 0&&(k=!1);var B=[],P=ne.nodes(b,{at:[],universal:!0});try{for(var K=Mi(P),X=K.next();!X.done;X=K.next()){var z=Tn(X.value,1)[0];if(Ot.isElement(z)&&(k?z.type.indexOf(E)>=0:z.type===E)){var R=Que(me.findKey(b,z).id);B.push(Di(Di({},z),{id:R}))}}}catch(j){A={error:j}}finally{try{X&&!X.done&&(D=K.return)&&D.call(K)}finally{if(A)throw A.error}}return B},b.getElemsByTypePrefix=function(E){return b.getElemsByType(E,!0)},b.isEmpty=function(){var E=b.children,k=E===void 0?[]:E;if(k.length>1)return!1;var A=k[0];if(A==null)return!0;if(Ot.isElement(A)&&A.type==="paragraph"){var D=A.children,B=D===void 0?[]:D;if(B.length>1)return!1;var P=B[0];if(P==null||yt.isText(P)&&P.text==="")return!0}return!1},b.clear=function(){Be.delete(b,{at:{anchor:ne.start(b,[]),focus:ne.end(b,[])}}),b.children.length===0&&Be.insertNodes(b,[{type:"paragraph",children:[{text:""}]}])},b.getParentNode=function(E){return me.getParentNode(b,E)},b.dangerouslyInsertHtml=function(E,k){if(E===void 0&&(E=""),k===void 0&&(k=!1),E){var A=document.createElement("div");A.innerHTML=E;var D=Array.from(A.childNodes);if(D=D.filter(function(X){var z=X.nodeType,R=X.nodeName;return z===ol.TEXT_NODE||z===ol.ELEMENT_NODE&&!nq.has(R.toLowerCase())}),D.length!==0){var B=b.selection;if(B!=null){var P=null;me.isSelectedEmptyParagraph(b)&&!k&&(P=[B.focus.path[0]]),A.setAttribute("hidden","true"),document.body.appendChild(A);var K=0;D.forEach(function(X){var z=X.nodeType,R=X.nodeName,j=X.textContent,$=j===void 0?"":j;if(z!==ol.TEXT_NODE)if(R!=="BR"){var N=X,Y=!1;if(ece.includes(R.toLowerCase()))Y=!0;else for(var L in K8)if(N.matches(L)){Y=!0;break}if(Y){var V=wI(be(N),b);return Array.isArray(V)?(V.forEach(function(G){return rq(b,G)}),K++):(rq(b,V),K++),void(me.isSelectedVoidNode(b)&&b.move(1))}var U=window.getComputedStyle(N).display;me.isSelectedEmptyParagraph(b)||U.indexOf("inline")<0&&b.insertBreak(),b.dangerouslyInsertHtml(N.innerHTML,!0)}else b.insertText(`
`);else{if(!$||!$.trim())return;b.insertNode({text:$})}}),K&&P&&me.isEmptyPath(b,P)&&Be.removeNodes(b,{at:P}),A.remove()}}}},b.setHtml=function(E){E===void 0&&(E="");var k=b.isDisabled(),A=b.isFocused(),D=JSON.stringify(b.selection);b.enable(),b.focus(),b.clear();var B=QK(b,E);if(Be.insertFragment(b,B),A||(b.deselect(),b.blur()),k&&(b.deselect(),b.disable()),b.isFocused())try{b.select(JSON.parse(D))}catch{b.select(ne.start(b,[]))}},b}(function(y){var b=y;return b.getAllMenuKeys=function(){var _=[];for(var w in Fm)_.push(w);return _},b.getConfig=function(){var _=SK.get(b);if(_==null)throw new Error("Can not get editor config");return _},b.getMenuConfig=function(_){var w=b.getConfig().MENU_CONF;return(w===void 0?{}:w)[_]||{}},b.alert=function(_,w){w===void 0&&(w="info");var C=b.getConfig().customAlert;C&&C(_,w)},b}(function(y){var b=ldt(Ert());return b.id="wangEditor-"+gct++,b.isDestroyed=!1,b.isFullScreen=!1,b.focus=function(_){if(me.toDOMNode(b,b).focus({preventScroll:!0}),Uf.set(b,!0),_){var w=ne.end(b,[]);Be.select(b,w)}else{var C=US.get(b);C?Be.select(b,C):Be.select(b,ne.start(b,[]))}},b.isFocused=function(){return!!Uf.get(b)},b.blur=function(){me.toDOMNode(b,b).blur(),Be.deselect(b),Uf.set(b,!1)},b.updateView=function(){me.getTextarea(b).changeViewState();var _=me.getToolbar(b);_&&_.changeToolbarState();var w=me.getHoverbar(b);w&&w.changeHoverbarState()},b.destroy=function(){if(!b.isDestroyed){var _=me.getTextarea(b);_.destroy(),JO.delete(b),ZO.delete(_);var w=me.getToolbar(b);w&&(w.destroy(),F5.delete(b),cI.delete(w));var C=me.getHoverbar(b);C&&(C.destroy(),z8.delete(b),QO.delete(C)),b.isDestroyed=!0,b.emit("destroyed")}},b.scrollToElem=function(_){if(!b.getConfig().scroll){var w="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return w+=`
You has disabled editor scroll, please do this yourself`,void console.warn(w)}var C=be("#"+_);if(C.length!==0){var S=C[0];if(!me.hasDOMNode(b,S))return w="Element (found by id is '"+_+"') is not in editor DOM",w+=`
通过 id '`+_+"' 找到的 element 不在 editor DOM 之内",void console.error(w,S);var E=me.getTextarea(b),k=E.$textAreaContainer,A=E.$scroll,D=C.offset().top,B=k.offset().top;A[0].scrollBy({top:D-B,behavior:"smooth"})}},b.showProgressBar=function(_){_<1||me.getTextarea(b).changeProgress(_)},b.hidePanelOrModal=function(){var _=eT.get(b);_!=null&&_.forEach(function(w){return w.hide()})},b.enable=function(){b.getConfig().readOnly=!1,b.updateView()},b.disable=function(){b.getConfig().readOnly=!0,b.updateView()},b.isDisabled=function(){return b.getConfig().readOnly},b.toDOMNode=function(_){return me.toDOMNode(b,_)},b.fullScreen=function(){if(!b.isFullScreen){var _=null,w=me.getToolbar(b);w&&(_=w.$box);var C=me.getTextarea(b).$box.parent();if(_&&_.parent()[0]!==C[0])throw new Error(`Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent
不能设置全屏因为 toolbar DOM 父节点和 textarea DOM 父节点不一致`);C.addClass("w-e-full-screen-container");var S=C.css("z-index");C.attr("data-z-index",S.toString()),b.isFullScreen=!0,b.emit("fullScreen")}},b.unFullScreen=function(){if(b.isFullScreen){var _=me.getTextarea(b).$box.parent();setTimeout(function(){_.removeClass("w-e-full-screen-container"),b.isFullScreen=!1,b.emit("unFullScreen")},200)}},b.getEditableContainer=function(){return me.getTextarea(b).$textAreaContainer[0]},b}()))))));if(n&&function(y,b){return oce(y,"data-w-e-textarea",b)}(u,n))throw new Error("Repeated create editor by selector '"+n+"'");var c=function(y){y===void 0&&(y={});var b=jle(Nue),_={},w=y.MENU_CONF,C=w===void 0?{}:w;return RR(b,function(S,E){_[E]=Di(Di({},S),C[E]||{})}),delete y.MENU_CONF,Di({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:_,hoverbarKeys:{},customAlert:function(S,E){window.alert(E+`:
`+S)}},y)}(o);SK.set(u,c);var d=c.hoverbarKeys,f=d===void 0?{}:d;if(l.forEach(function(y){u=y(u)}),i!=null&&(u.children=QK(u,i)),a&&a.length&&(u.children=a),u.children.length===0&&(u.children=[{type:"paragraph",children:[{text:""}]}]),me.normalizeContent(u),n){var p=new Ldt(n);JO.set(u,p),ZO.set(p,u),p.changeViewState(),Gi(function(){var y=p.$scroll;y!=null&&y.height()<300&&console.warn(`编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常
Textarea height < 300px . This may be cause modal and hoverbar position error`,y)});var g=void 0;Object.keys(f).length>0&&(g=new Ydt,QO.set(g,u),z8.set(u,g)),u.on("change",function(){u.hidePanelOrModal()}),u.on("scroll",function(){u.hidePanelOrModal()})}else u.children.forEach(function(y,b){return fce(y,b,u,u)});var v=c.onCreated,m=c.onDestroyed;return v&&u.on("created",function(){return v(u)}),m&&u.on("destroyed",function(){return m(u)}),Gi(function(){return u.emit("created")}),u}var Jdt=B5("splice"),Zdt=lt.TypeError,Qdt=Math.max,eft=Math.min;Er({target:"Array",proto:!0,forced:!Jdt},{splice:function(e,t){var n,r,o,a,i,s,l=Td(this),u=Hp(l),c=Q0(e,u),d=arguments.length;if(d===0?n=r=0:d===1?(n=0,r=u-c):(n=d-2,r=eft(Qdt(t4(t),0),u-c)),u+n-r>9007199254740991)throw Zdt("Maximum allowed length exceeded");for(o=uue(l,r),a=0;a<r;a++)(i=c+a)in l&&Pm(o,a,l[i]);if(o.length=r,n<r){for(a=c;a<u-r;a++)s=a+n,(i=a+r)in l?l[s]=l[i]:delete l[s];for(a=u;a>u-r+n;a--)delete l[a-1]}else if(n>r)for(a=u-r;a>c;a--)s=a+n-1,(i=a+r-1)in l?l[s]=l[i]:delete l[s];for(a=0;a<n;a++)l[a+c]=arguments[a+2];return l.length=u-r+n,o}});var pce=function(){function e(t,n){var r=this;this.$toolbar=be('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=zle(function(){r.toolbarItems.forEach(function(i){i.changeMenuState()})},200),this.config=n;var o=be(t);if(o.length===0)throw new Error("Cannot find toolbar DOM by selector '"+t+"'");this.$box=o;var a=this.$toolbar;a.on("mousedown",function(i){return i.preventDefault()},{passive:!1}),o.append(a),Gi(function(){r.registerItems(),r.changeToolbarState(),r.getEditorInstance().on("change",r.changeToolbarState)})}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.registerItems=function(){var t=this,n="",r=this.$toolbar,o=this.config,a=o.toolbarKeys,i=a===void 0?[]:a,s=o.insertKeys,l=s===void 0?{index:0,keys:[]}:s,u=o.excludeKeys,c=u===void 0?[]:u,d=jle(i);l.keys.length>0&&(typeof l.keys=="string"&&(l.keys=[l.keys]),l.keys.forEach(function(g,v){d.splice(l.index+v,0,g)}));var f=d.filter(function(g){if(typeof g=="string"){if(c.includes(g))return!1}else if(c.includes(g.key))return!1;return!0}),p=f.length;f.forEach(function(g,v){if(g==="|"){if(v===0||v+1===p||n==="|")return;var m=uce();return r.append(m),void(n=g)}if(typeof g=="string")return t.registerSingleItem(g,t),void(n=g);t.registerGroup(g),n="group"})},e.prototype.registerGroup=function(t){var n=this,r=this.$toolbar,o=function(u){return new yq(u)}(t),a=t.menuKeys,i=a===void 0?[]:a,s=this.config.excludeKeys,l=s===void 0?[]:s;i.forEach(function(u){l.includes(u)||n.registerSingleItem(u,o)}),r.append(o.$elem)},e.prototype.registerSingleItem=function(t,n){var r=this.getEditorInstance(),o=n instanceof yq,a=this.menus,i=a[t];if(i==null){var s=Fm[t];if(s==null)throw new Error("Not found menu item factory by key '"+t+"'");if(typeof s!="function")throw new Error("Menu item factory (key='"+t+"') is not a function");i=s(),a[t]=i}else console.warn("Duplicated toolbar menu key '"+t+`'
重复注册了菜单栏 menu '`+t+"'");var l=dce(t,i,o);this.toolbarItems.push(l),dI.set(l,r),o?n.appendBarItem(l):n.$toolbar.append(l.$elem)},e.prototype.getEditorInstance=function(){var t=cI.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}(),tft=Vv.EXISTS,nft=js.f,hce=Function.prototype,rft=Bt(hce.toString),vce=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,oft=Bt(vce.exec);function TI(e){var t=e.server,n=t===void 0?"":t,r=e.fieldName,o=r===void 0?"":r,a=e.maxFileSize,i=a===void 0?10485760:a,s=e.maxNumberOfFiles,l=s===void 0?100:s,u=e.meta,c=u===void 0?{}:u,d=e.metaWithUrl,f=d!==void 0&&d,p=e.headers,g=p===void 0?{}:p,v=e.withCredentials,m=v!==void 0&&v,y=e.timeout,b=y===void 0?1e4:y,_=e.onBeforeUpload,w=_===void 0?function(K){return K}:_,C=e.onSuccess,S=C===void 0?function(K,X){}:C,E=e.onError,k=E===void 0?function(K,X,z){console.error(K.name+" upload error",X,z)}:E,A=e.onProgress,D=A===void 0?function(K){}:A;if(!n)throw new Error(`Cannot get upload server address
没有配置上传地址`);if(!o)throw new Error(`Cannot get fieldName
没有配置 fieldName`);var B=n;f&&(B=function(K,X){var z=Tn(K.split("#"),2),R=z[0],j=z[1],$=[];RR(X,function(Y,L){$.push(L+"="+Y)});var N=$.join("&");return R=R.indexOf("?")>0?R+"&"+N:R+"?"+N,j?R+"#"+j:R}(B,c));var P=new V2({onBeforeUpload:w,restrictions:{maxFileSize:i,maxNumberOfFiles:l},meta:c}).use(Mst,{endpoint:B,headers:g,formData:!0,fieldName:o,bundle:!0,withCredentials:m,timeout:b});return P.on("upload-success",function(K,X){var z=X.body,R=z===void 0?{}:z;try{S(K,R)}catch(j){console.error("wangEditor upload file - onSuccess error",j)}P.removeFile(K.id)}),P.on("progress",function(K){K<1||D(K)}),P.on("upload-error",function(K,X,z){try{k(K,X,z)}catch(R){console.error("wangEditor upload file - onError error",R)}P.removeFile(K.id)}),P.on("restriction-failed",function(K,X){try{k(K,X)}catch(z){console.error("wangEditor upload file - onError error",z)}P.removeFile(K.id)}),P}function Uc(e){return Uc=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},Uc(e)}function aft(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),r.forEach(function(o){aft(e,o,n[o])})}return e}function Mu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wq(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 Pu(e,t,n){return t&&wq(e.prototype,t),n&&wq(e,n),e}function Ep(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Lm(e,t){if(t&&(Uc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ep(e)}function ov(e){return ov=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},ov(e)}function vT(e,t){return vT=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},vT(e,t)}function $5(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.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),vT(e,t)}Eo&&!tft&&nft(hce,"name",{configurable:!0,get:function(){try{return oft(vce,rft(this))[1]}catch{return""}}});var ift={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)}},lu=new(function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Mu(this,e),this.init(t,n)}return Pu(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||ift,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(t){this.debug=t}},{key:"log",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}},{key:"warn",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}},{key:"error",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}},{key:"deprecate",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(t,n,r,o){return o&&!this.debug?null:(typeof t[0]=="string"&&(t[0]="".concat(r).concat(this.prefix," ").concat(t[0])),this.logger[n](t))}},
`)&&e.flags==="s")}),Hpt=nn.RegExp,Upt=xr(function(){var e=Hpt("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Wpt=CT.get,Kpt=II("native-string-replace",String.prototype.replace),ew=RegExp.prototype.exec,ET=ew,qpt=jt("".charAt),Gpt=jt("".indexOf),Ypt=jt("".replace),_E=jt("".slice),CE=(wE=/b*/g,Vr(ew,Gq=/a/,"a"),Vr(ew,wE,"a"),Gq.lastIndex!==0||wE.lastIndex!==0),Yq=$ce.BROKEN_CARET,SE=/()??/.exec("")[1]!==void 0;(CE||SE||Yq||jpt||Upt)&&(ET=function(e){var t,n,r,o,a,i,s,l=this,u=Wpt(l),c=Cr(e),d=u.raw;if(d)return d.lastIndex=l.lastIndex,t=Vr(ET,d,c),l.lastIndex=d.lastIndex,t;var f=u.groups,p=Yq&&l.sticky,g=Vr(Fce,l),v=l.source,m=0,y=c;if(p&&(g=Ypt(g,"y",""),Gpt(g,"g")===-1&&(g+="g"),y=_E(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&qpt(c,l.lastIndex-1)!==`
`)&&(v="(?: "+v+")",y=" "+y,m++),n=new RegExp("^(?:"+v+")",g)),SE&&(n=new RegExp("^"+v+"$(?!\\s)",g)),CE&&(r=l.lastIndex),o=Vr(ew,p?n:l,y),p?o?(o.input=_E(o.input,m),o[0]=_E(o[0],m),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:CE&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),SE&&o&&o.length>1&&Vr(Kpt,o[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&f)for(o.groups=i=zce(null),a=0;a<f.length;a++)i[(s=f[a])[0]]=o[s[1]];return o});var jm=ET;go({target:"RegExp",proto:!0,forced:/./.exec!==jm},{exec:jm});var qI=Function.prototype,Xq=qI.apply,Xpt=qI.bind,Jq=qI.call,jce=typeof Reflect=="object"&&Reflect.apply||(Xpt?Jq.bind(Xq):function(){return Jq.apply(Xq,arguments)}),Jpt=bi("species"),EE=RegExp.prototype,GI=function(e,t,n,r){var o=bi(e),a=!xr(function(){var u={};return u[o]=function(){return 7},""[e](u)!=7}),i=a&&!xr(function(){var u=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[Jpt]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return u=!0,null},c[o](""),!u});if(!a||!i||n){var s=jt(/./[o]),l=t(o,""[e],function(u,c,d,f,p){var g=jt(u),v=c.exec;return v===jm||v===EE.exec?a&&!p?{done:!0,value:s(c,d,f)}:{done:!0,value:g(d,c,f)}:{done:!1}});Vm(String.prototype,e,l[0]),Vm(EE,o,l[1])}r&&iv(EE[o],"sham",!0)},Zpt=jt("".charAt),Zq=jt("".charCodeAt),Qpt=jt("".slice),eht=function(e){return function(t,n){var r,o,a=Cr(Yi(t)),i=Kv(n),s=a.length;return i<0||i>=s?e?"":void 0:(r=Zq(a,i))<55296||r>56319||i+1===s||(o=Zq(a,i+1))<56320||o>57343?e?Zpt(a,i):r:e?Qpt(a,i,i+2):o-56320+(r-55296<<10)+65536}},tht=eht(!0),YI=function(e,t,n){return t+(n?tht(e,t).length:1)},nht=Math.floor,xE=jt("".charAt),rht=jt("".replace),kE=jt("".slice),oht=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,aht=/\$([$&'`]|\d{1,2})/g,iht=function(e,t,n,r,o,a){var i=n+e.length,s=r.length,l=aht;return o!==void 0&&(o=a4(o),l=oht),rht(a,l,function(u,c){var d;switch(xE(c,0)){case"$":return"$";case"&":return e;case"`":return kE(t,0,n);case"'":return kE(t,i);case"<":d=o[kE(c,1,-1)];break;default:var f=+c;if(f===0)return u;if(f>s){var p=nht(f/10);return p===0?u:p<=s?r[p-1]===void 0?xE(c,1):r[p-1]+xE(c,1):u}d=r[f-1]}return d===void 0?"":d})},sht=nn.TypeError,Hm=function(e,t){var n=e.exec;if(ia(n)){var r=Vr(n,e,t);return r!==null&&di(r),r}if(Wc(e)==="RegExp")return Vr(jm,e,t);throw sht("RegExp#exec called on incompatible receiver")},xT=bi("replace"),lht=Math.max,uht=Math.min,cht=jt([].concat),AE=jt([].push),Qq=jt("".indexOf),eG=jt("".slice),dht="a".replace(/./,"$0")==="$0",tG=!!/./[xT]&&/./[xT]("a","$0")==="";GI("replace",function(e,t,n){var r=tG?"$":"$0";return[function(o,a){var i=Yi(this),s=o==null?void 0:j5(o,xT);return s?Vr(s,o,i,a):Vr(t,Cr(i),o,a)},function(o,a){var i=di(this),s=Cr(o);if(typeof a=="string"&&Qq(a,r)===-1&&Qq(a,"$<")===-1){var l=n(t,i,s,a);if(l.done)return l.value}var u=ia(a);u||(a=Cr(a));var c=i.global;if(c){var d=i.unicode;i.lastIndex=0}for(var f=[];;){var p=Hm(i,s);if(p===null||(AE(f,p),!c))break;Cr(p[0])===""&&(i.lastIndex=YI(s,i4(i.lastIndex),d))}for(var g,v="",m=0,y=0;y<f.length;y++){for(var b=Cr((p=f[y])[0]),_=lht(uht(Kv(p.index),s.length),0),w=[],C=1;C<p.length;C++)AE(w,(g=p[C])===void 0?g:String(g));var S=p.groups;if(u){var E=cht([b],w,_,s);S!==void 0&&AE(E,S);var k=Cr(jce(a,void 0,E))}else k=iht(b,s,_,w,S,a);_>=m&&(v+=eG(s,m,_)+k,m=_+b.length)}return v+eG(s,m)}]},!!xr(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!dht||tG);var kT=bi("unscopables"),AT=Array.prototype;AT[kT]==null&&Wv.f(AT,kT,{configurable:!0,value:zce(null)});var Hce=function(e){AT[kT][e]=!0},fht=W5.find,nG=!0;"find"in[]&&Array(1).find(function(){nG=!1}),go({target:"Array",proto:!0,forced:nG},{find:function(e){return fht(this,e,arguments.length>1?arguments[1]:void 0)}}),Hce("find");var pht=bi("match"),Uce=function(e){var t;return gs(e)&&((t=e[pht])!==void 0?!!t:Wc(e)=="RegExp")},hht=nn.TypeError,vht=bi("species"),Wce=function(e,t,n){var r=NI(t);r in e?Wv.f(e,r,PI(0,n)):e[r]=n},ght=nn.Array,mht=Math.max,rG=function(e,t,n){for(var r=U5(e),o=zm(t,r),
\v\f\r                 \u2028\u2029\uFEFF`,oG=jt("".replace),tw="["+OT+"]",wht=RegExp("^"+tw+tw+"*"),_ht=RegExp(tw+tw+"*$"),OE=function(e){return function(t){var n=Cr(Yi(t));return 1&e&&(n=oG(n,wht,"")),2&e&&(n=oG(n,_ht,"")),n}},Cht={start:OE(1),end:OE(2),trim:OE(3)},Sht=H5.PROPER,Eht=Cht.trim;function XI(e){return be("<div>"+e+"</div>").children().filter(function(t){return t.tagName!=="BR"}).length===0}function qv(e){return e.length===0?"":e[0].outerHTML}function Gv(e){return e.length?e[0].tagName.toLowerCase():""}function ks(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,a=0;a<o;a++){var i=r[a];if(i){var s=i.split(":");s[0].trim()===t&&(n=s[1].trim())}}return n}go({target:"String",proto:!0,forced:xr(function(){return!!OT.trim()||"​…᠎".trim()!=="​…᠎"||Sht&&OT.trim.name!=="trim"})},{trim:function(){return Eht(this)}}),go({global:!0},{globalThis:nn}),be.fn.css=wle,be.fn.append=Lv,be.fn.prepend=qot,be.fn.addClass=SR,be.fn.removeClass=ER,be.fn.hasClass=xR,be.fn.on=Qy,be.fn.off=Hot,be.fn.focus=C5,be.fn.attr=$v,be.fn.removeAttr=gle,be.fn.hide=AR,be.fn.show=ble,be.fn.parents=Sle,be.fn.dataset=kR,be.fn.val=Zy,be.fn.text=Cle,be.fn.html=_5,be.fn.children=DR,be.fn.remove=MR,be.fn.find=TR,be.fn.width=mle,be.fn.height=yle,be.fn.filter=Wot,be.fn.empty=PR;var xht={selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=be(e);return(t=t.filter(function(o){return!!yt.isText(o)||!!n.isInline(o)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},TT=function(e,t){return TT=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},TT(e,t);/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */};function wr(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}TT(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var vd=function(){return vd=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},vd.apply(this,arguments)};function Md(e,t,n,r){return new(n||(n=Promise))(function(o,a){function i(u){try{l(r.next(u))}catch(c){a(c)}}function s(u){try{l(r.throw(u))}catch(c){a(c)}}function l(u){var c;u.done?o(u.value):(c=u.value,c instanceof n?c:new n(function(d){d(c)})).then(i,s)}l((r=r.apply(e,[])).next())})}function Pd(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(l){return function(u){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){i=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(c[0]===6&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(d){c=[6,d],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([l,u])}}}function qce(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 Fn(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function aG(e){var t=Fn(ne.nodes(e,{match:function(a){return e.children[0]===a},mode:"highest"}),1)[0];if(t==null)return!1;var n=t[0];if(!Ot.isElement(n)||n.type==="paragraph"||dt.string(n)!=="")return!1;var r=n.children,o=r===void 0?[]:r;return!!yt.isText(o[0])&&(Be.setNodes(e,{type:"paragraph"}),!0)}var kht={renderElems:[Mft],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return t===""?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[xht],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(o){aG(r)||t(o)},r.deleteForward=function(o){aG(r)||n(o)},r}},Aht=/"/g,Oht=jt("".replace),U2=function(e,t,n,r){var o=Cr(Yi(e)),a="<"+t;return n!==""&&(a+=" "+n+'="'+Oht(Cr(r),Aht,"&quot;")+'"'),a+">"+o+"</"+t+">"},W2=function(e){return xr(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})};function TE(e,t){var n=t,r=e,o=r.bold,a=r.italic,i=r.underline;return o&&(n="<strong>"+n+"</strong>"),r.code&&(n="<code>"+n+"</code>"),a&&(n="<em>"+n+"</em>"),i&&(n="<u>"+n+"</u>"),r.through&&(n="<s>"+n+"</s>"),r.sub&&(n="<sub>"+n+"</sub>"),r.sup&&(n="<sup>"+n+"</sup>"),n}function Yd(e,t){return e.length!==0&&(!!e[0].matches(t)||e.find(t).length>0)}go({target:"String",proto:!0,forced:W2("bold")},{bold:function(){return U2(this,"b","","")}}),go({target:"String",proto:!0,forced:W2("italics")},{italics:function(){return U2(this,"i","","")}}),go({target:"String",proto:!0,forced:W2("sub")},{sub:function(){return U2(this,"sub","","")}}),go({target:"String",proto:!0,forced:W2("sup")},{sup:function(){return U2(
<li data-value="0" class="clear">
<svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>
`+s+`
</li>
`);return o.prepend(l),o[0]},e}(),B0t=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=ft("color.color"),n.iconSvg=Fht,n.mark="color",n}return wr(t,e),t}(ade),R0t=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=ft("color.bgColor"),n.iconSvg=$ht,n.mark="bgColor",n}return wr(t,e),t}(ade),fG=["rgb(0, 0, 0)","rgb(38, 38, 38)","rgb(89, 89, 89)","rgb(140, 140, 140)","rgb(191, 191, 191)","rgb(217, 217, 217)","rgb(233, 233, 233)","rgb(245, 245, 245)","rgb(250, 250, 250)","rgb(255, 255, 255)","rgb(225, 60, 57)","rgb(231, 95, 51)","rgb(235, 144, 58)","rgb(245, 219, 77)","rgb(114, 192, 64)","rgb(89, 191, 192)","rgb(66, 144, 247)","rgb(54, 88, 226)","rgb(106, 57, 201)","rgb(216, 68, 147)","rgb(251, 233, 230)","rgb(252, 237, 225)","rgb(252, 239, 212)","rgb(252, 251, 207)","rgb(231, 246, 213)","rgb(218, 244, 240)","rgb(217, 237, 250)","rgb(224, 232, 250)","rgb(237, 225, 248)","rgb(246, 226, 234)","rgb(255, 163, 158)","rgb(255, 187, 150)","rgb(255, 213, 145)","rgb(255, 251, 143)","rgb(183, 235, 143)","rgb(135, 232, 222)","rgb(145, 213, 255)","rgb(173, 198, 255)","rgb(211, 173, 247)","rgb(255, 173, 210)","rgb(255, 77, 79)","rgb(255, 122, 69)","rgb(255, 169, 64)","rgb(255, 236, 61)","rgb(115, 209, 61)","rgb(54, 207, 201)","rgb(64, 169, 255)","rgb(89, 126, 247)","rgb(146, 84, 222)","rgb(247, 89, 171)","rgb(207, 19, 34)","rgb(212, 56, 13)","rgb(212, 107, 8)","rgb(212, 177, 6)","rgb(56, 158, 13)","rgb(8, 151, 156)","rgb(9, 109, 217)","rgb(29, 57, 196)","rgb(83, 29, 171)","rgb(196, 29, 127)","rgb(130, 0, 20)","rgb(135, 20, 0)","rgb(135, 56, 0)","rgb(97, 71, 0)","rgb(19, 82, 0)","rgb(0, 71, 79)","rgb(0, 58, 140)","rgb(6, 17, 120)","rgb(34, 7, 94)","rgb(120, 6, 80)"],I0t={renderStyle:function(e,t){var n=e,r=n.color,o=n.bgColor,a=t;return r&&xp(a,{color:r}),o&&xp(a,{backgroundColor:o}),a},styleToHtml:function(e,t){if(!yt.isText(e))return t;var n,r=e,o=r.color,a=r.bgColor;return o||a?((XI(t)||Gv(n=be(t))!=="span")&&(n=be("<span>"+t+"</span>")),o&&n.css("color",o),a&&n.css("background-color",a),qv(n)):t},preParseHtml:[P0t],parseStyleHtml:function(e,t,n){var r=be(e);if(!yt.isText(t))return t;var o=t,a=ks(r,"color");a&&(o.color=a);var i=ks(r,"background-color");return i||(i=ks(r,"background")),i&&(o.bgColor=i),o},menus:[{key:"color",factory:function(){return new B0t},config:{colors:fG}},{key:"bgColor",factory:function(){return new R0t},config:{colors:fG}}]},N0t=/^(?:\w+:)?\/\/(\S+)$/,F0t=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,$0t=/^[^\s\.]+\.\S{2,}$/,L0t=Mce.includes;function K5(e){return e===void 0&&(e="r"),e+"-"+Ale()}function JI(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function ide(e,t,n,r){return Md(this,void 0,void 0,function(){var o,a;return Pd(this,function(i){switch(i.label){case 0:return(o=t.getMenuConfig(e).checkLink)?[4,o(n,r)]:[3,2];case 1:if(typeof(a=i.sent())=="string")return t.alert(a,"error"),[2,!1];if(a==null)return[2,!1];i.label=2;case 2:return[2,!0]}})})}function sde(e,t,n){return Md(this,void 0,void 0,function(){var r;return Pd(this,function(o){switch(o.label){case 0:return(r=t.getMenuConfig(e).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}})})}function ZI(e){return e.selection==null||!!me.getSelectedElems(e).some(function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0})}function RE(e,t){return{type:"link",url:JI(e),children:t?[{text:t}]:[]}}function lde(e,t,n){return Md(this,void 0,void 0,function(){var r,o,a;return Pd(this,function(i){switch(i.label){case 0:return n?(t||(t=n),e.restoreSelection(),ZI(e)?[2]:[4,ide("insertLink",e,t,n)]):[2];case 1:return i.sent()?[4,sde("insertLink",e,n)]:[2];case 2:return r=i.sent(),(o=e.selection)==null||(He.isCollapsed(o)?(e.insertText(" "),a=RE(r,t),Be.insertNodes(e,a),e.insertFragment([{text:" "}])):ne.string(e,o)!==t?(e.deleteFragment(),a=RE(r,t),Be.insertNodes(e,a)):(a=RE(r),Be.wrapNodes(e,a,{split:!0}),Be.collapse(e,{edge:"end"}))),[2]}})})}go({target:"Array",proto:!0},{includes:function(e){return L0t(this,e,arguments.length>1?arguments
`)return e.deleteBackward("character"),void Be.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n(`
`)},r}},bvt=function(){function e(){this.title=ft("emotion.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(t,n){},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!!Fn(ne.nodes(t,{match:function(n){return me.getNodeType(n)==="pre"||!!ne.isVoid(t,n)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(t){if(this.$content==null){var n=be('<ul class="w-e-panel-content-emotion"></ul>');n.on("click","li",function(a){var i=a.target;if(i!=null){a.preventDefault();var s=be(i).text();t.insertText(s)}}),this.$content=n}var r=this.$content;if(r==null)return document.createElement("ul");r.empty();var o=t.getMenuConfig("emotion").emotions;return(o===void 0?[]:o).forEach(function(a){var i=be("<li>"+a+"</li>");r.append(i)}),r[0]},e}(),wvt={menus:[{key:"emotion",factory:function(){return new bvt},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},_vt={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},Cvt={selector:"font",preParseHtml:function(e){var t=be(e);if(Gv(t)!=="font")return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",_vt[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},Svt=jt("".indexOf);go({target:"String",proto:!0,forced:!tde("includes")},{includes:function(e){return!!~Svt(Cr(Yi(this)),Cr(ede(e)),arguments.length>1?arguments[1]:void 0)}});var Qu,t3,Fb=function(e){return e&&e.Math==Math&&e},dn=Fb(typeof globalThis=="object"&&globalThis)||Fb(typeof window=="object"&&window)||Fb(typeof self=="object"&&self)||Fb(typeof Y8=="object"&&Y8)||function(){return this}()||Function("return this")(),eN=Function.prototype,bG=eN.apply,Evt=eN.bind,wG=eN.call,pde=typeof Reflect=="object"&&Reflect.apply||(Evt?wG.bind(bG):function(){return wG.apply(bG,arguments)}),hde=Function.prototype,PT=hde.bind,BT=hde.call,xvt=PT&&PT.bind(BT),Br=PT?function(e){return e&&xvt(BT,e)}:function(e){return e&&function(){return BT.apply(e,arguments)}},sa=function(e){return typeof e=="function"},gi=function(e){try{return!!e()}catch{return!0}},Ua=!gi(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Zg=Function.prototype.call,vl=Zg.bind?Zg.bind(Zg):function(){return Zg.apply(Zg,arguments)},_G={}.propertyIsEnumerable,CG=Object.getOwnPropertyDescriptor,kvt=CG&&!_G.call({1:2},1)?function(e){var t=CG(this,e);return!!t&&t.enumerable}:_G,tN={f:kvt},kp=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Avt=Br({}.toString),Ovt=Br("".slice),Gf=function(e){return Ovt(Avt(e),8,-1)},$E=dn.Object,Tvt=Br("".split),vde=gi(function(){return!$E("z").propertyIsEnumerable(0)})?function(e){return Gf(e)=="String"?Tvt(e,""):$E(e)}:$E,Dvt=dn.TypeError,nN=function(e){if(e==null)throw Dvt("Can't call method on "+e);return e},$l=function(e){return vde(nN(e))},ms=function(e){return typeof e=="object"?e!==null:sa(e)},Oi={},SG=function(e
`).map(function(a){return{type:"paragraph",children:[{text:a}]}});Be.insertNodes(t,o,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(t,n){var r,o,a=[],i=ne.nodes(t,{match:function(d){return t.children.includes(d)},universal:!0});try{for(var s=qce(i),l=s.next();!l.done;l=s.next()){var u=Fn(l.value,1)[0];u&&a.push(dt.string(u))}}catch(d){r={error:d}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}Be.removeNodes(t,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:n,children:[{text:a.join(`
`)}]}]};Be.insertNodes(t,c,{mode:"highest"})},e}(),$2t={key:"codeBlock",factory:function(){return new F2t}};go({target:"String",proto:!0,forced:W2("anchor")},{anchor:function(e){return U2(this,"a","name",e)}}),GI("match",function(e,t,n){return[function(r){var o=Yi(this),a=r==null?void 0:j5(r,e);return a?Vr(a,r,o):new RegExp(r)[e](Cr(o))},function(r){var o=di(this),a=Cr(r),i=n(t,o,a);if(i.done)return i.value;if(!o.global)return Hm(o,a);var s=o.unicode;o.lastIndex=0;for(var l,u=[],c=0;(l=Hm(o,a))!==null;){var d=Cr(l[0]);u[c]=d,d===""&&(o.lastIndex=YI(a,i4(o.lastIndex),s)),c++}return c===0?null:u}]});var L2t={type:"pre",renderElem:function(e,t,n){return Xt("pre",null,t)}},V2t={type:"code",renderElem:function(e,t,n){return Xt("code",null,t)}},z2t={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=be(e);return(t=t.filter(function(o){return me.getNodeType(o)==="code"})).length===0&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter(function(o){return me.getNodeType(o)==="code"})}}},j2t={menus:[$2t],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var o=e;return o.insertBreak=function(){var a=me.getSelectedNodeByType(o,"code");if(a!=null){var i=function(u,c){var d=c.selection;if(d==null)return"";var f=dt.string(u),p=d.anchor.offset,g=f.slice(0,p).split(`
`),v=g.length;return v===0?"":g[v-1]}(a,o);if(i){var s=i.match(/^\s+/);if(s!=null&&s[0]!=null){var l=s[0];return void o.insertText(`
`+l)}}o.insertText(`
`)}else t()},o.normalizeNode=function(a){var i=Fn(a,2),s=i[0],l=i[1],u=me.getNodeType(s);return u==="code"&&l.length<=1&&Be.setNodes(o,{type:"paragraph"},{at:l}),u==="pre"&&(me.isLastNode(o,s)&&Be.insertNodes(o,me.genEmptyParagraph(),{at:[l[0]+1]}),me.getNodeType(s.children[0])!=="code"&&(Be.unwrapNodes(o),Be.setNodes(o,{type:"paragraph"},{mode:"highest"}))),n([s,l])},o.insertData=function(a){if(me.getSelectedNodeByType(o,"code")!=null){var i=a.getData("text/plain");ne.insertText(o,i)}else r(a)},o},renderElems:[L2t,V2t],elemsToHtml:[{type:"code",elemToHtml:function(e,t){return"<code>"+t+"</code>"}},{type:"pre",elemToHtml:function(e,t){return"<pre>"+t+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(e){var t=be(e);if(Gv(t)!=="code")return e;var n=t.find("xmp");if(n.length===0)return e;var r=n.text();return n.remove(),t.text(r),t[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(e,t,n){return{type:"code",language:"",children:[{text:be(e)[0].textContent||""}]}}},z2t]},H2t=function(){function e(){this.title=ft("fullScreen.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return t.isFullScreen},e.prototype.isDisabled=function(t){return!1},e.prototype.exec=function(t,n){t.isFullScreen?t.unFullScreen():t.fullScreen()},e}(),U2t={menus:[{key:"fullScreen",factory:function(){return new H2t}}]},W2t=function(){function e(){this.title=ft("common.enter"),this.iconSvg='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!!He.isExpanded(n)},e.prototype.exec=function(t,n){var r=t.selection;if(r!=null){var o=[r.anchor.path[0]];Be.insertNodes(t,{type:"paragraph",children:[{text:""}]},{at:o}),t.select(ne.start(t,o))}},e}(),K2t=[r0t,I0t,v2t,b2t,E2t,k2t,avt,P2t,wvt,K0t,j2t,yvt,D0t,kht,uvt,T2t,U2t,{menus:[{key:"enter",factory:function(){return new W2t}}]}];Ca("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),Ca("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var nY=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function cN(e){var t={exports:{}};return e(t,t.exports),t.exports}var tc,r3,Vb=function(e){return e&&e.Math==Math&&e},Wt=Vb(typeof globalThis=="object"&&globalThis)||Vb(typeof window=="object"&&window)||Vb(typeof self=="object"&&self)||Vb(typeof nY=="object"&&nY)||functi
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */};function yfe(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}iD(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function VY(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 A1(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function zY(e){return ne.nodes(e,{at:e.selection||void 0,match:function(t){return me.findPath(e,t).length===1}})}var Fmt=Yde.includes;md({target:"Array",proto:!0},{includes:function(e){return Fmt(this,e,arguments.length>1?arguments[1]:void 0)}}),x1("includes");var jY,l7,$mt=function(){var e=qa(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},ON=Wt.RegExp,sD=Tr(function(){var e=ON("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),Lmt=sD||Tr(function(){return!ON("a","y").sticky}),Vmt={BROKEN_CARET:sD||Tr(function(){var e=ON("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:Lmt,UNSUPPORTED_Y:sD},zmt=Wt.RegExp,jmt=Tr(function(){var e=zmt(".","s");return!(e.dotAll&&e.exec(`
`)&&e.flags==="s")}),Hmt=Wt.RegExp,Umt=Tr(function(){var e=Hmt("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Wmt=El.get,Kmt=fN("native-string-replace",String.prototype.replace),bw=RegExp.prototype.exec,lD=bw,qmt=vn("".charAt),Gmt=vn("".indexOf),Ymt=vn("".replace),u7=vn("".slice),c7=(l7=/b*/g,ko(bw,jY=/a/,"a"),ko(bw,l7,"a"),jY.lastIndex!==0||l7.lastIndex!==0),HY=Vmt.BROKEN_CARET,d7=/()??/.exec("")[1]!==void 0;(c7||d7||HY||jmt||Umt)&&(lD=function(e){var t,n,r,o,a,i,s,l=this,u=Wmt(l),c=Ql(e),d=u.raw;if(d)return d.lastIndex=l.lastIndex,t=ko(lD,d,c),l.lastIndex=d.lastIndex,t;var f=u.groups,p=HY&&l.sticky,g=ko($mt,l),v=l.source,m=0,y=c;if(p&&(g=Ymt(g,"y",""),Gmt(g,"g")===-1&&(g+="g"),y=u7(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&qmt(c,l.lastIndex-1)!==`
`)&&(v="(?: "+v+")",y=" "+y,m++),n=new RegExp("^(?:"+v+")",g)),d7&&(n=new RegExp("^"+v+"$(?!\\s)",g)),c7&&(r=l.lastIndex),o=ko(bw,p?n:l,y),p?o?(o.input=u7(o.input,m),o[0]=u7(o[0],m),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:c7&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),d7&&o&&o.length>1&&ko(Kmt,o[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&f)for(o.groups=i=bN(null),a=0;a<f.length;a++)i[(s=f[a])[0]]=o[s[1]];return o});var ww=lD;md({target:"RegExp",proto:!0,forced:/./.exec!==ww},{exec:ww});var bfe=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(t){var n=this.type;return me.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||!!me.getSelectedElems(t).some(function(n){if(ne.isVoid(t,n)&&ne.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)?Be.setNodes(t,{type:"paragraph",ordered:void 0,level:void 0}):Be.setNodes(t,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),Xmt='<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>',Jmt='<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>',Zmt=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.ordered=!1,n.title=ft("listModule.unOrderedList"),n.iconSvg=Xmt,n}return yfe(t,e),t}(bfe),Qmt=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.ordered=!0,n.title=ft("listModule.orderedList"),n.iconSvg=Jmt,n}return yfe(t,e),t}(bfe),eyt={key:"bulletedList",factory:function(){return new Zmt}},tyt={key:"numberedList",factory:function(){return new Qmt}},UY=[],nyt={type:"list-item",elemToHtml:function(e,t){var n="",r="",o=e.ordered,a=o!==void 0&&o?"ol":"ul",i=function(u){var c=aD.get(u);if(c==null)return 0;var d=u,f=d.type,p=d.ordered,g=p!==void 0&&p,v=d.level,m=v===void 0?0:v,y=me.findPath(c,u);if(y[0]===0)return m+1;var b=Me.previous(y),_=ne.node(c,b);if(!_)return 0;var w=A1(_,1)[0];if(me.getNodeType(w)!==f)return m+1;var C=w,S=C.ordered,E=S!==void 0&&S,k=C.level,A=k===void 0?0:k;return A<m?m-A:A>m?0:A===m?E===g?0:1:0}(e);if(i>0)for(var s=0;s<i;s++)n+="<"+a+">",UY.push(a);var l=function(u){var c=aD.get(u);if(c==null)return 0;var d=u,f=d.type,p=d.ordered,g=p!==void 0&&p,v=d.level,m=v===void 0?0:v,y=me.findPath(c,u);if(y[0]===c.children.length-1)return m+1;var b=Me.next(y),_=ne.node(c,b);if(!_)return 0;var w=A1(_,1)[0];if(me.getNodeType(w)!==f)return m+1;var C=w,S=C.ordered,E=S!==void 0&&S,k=C.level,A=k===void 0?0:k;return A<m?m-A:A>m?0:A===m?E===g?0:1:0}(e);if(l>0)for(s=0;s<l;s++)r+="</"+UY.pop()+">";return{html:"<li>"+t+"</li>",prefix:n,suffix:r}}},ryt=Uo("species"),oyt=AN.filter,ayt=WT>=51||!Tr(function(){var e=[];return(e.constructor={})[ryt]=function(){return{foo:1}},e.filter(Boolean).foo!==1});md({target:"Array",proto:!0,forced:!ayt},{filter:function(e){return oyt(this,e,arguments.length>1?arguments[1]:void 0)}});var TN=Function.prototype,WY=TN.apply,iyt=TN.bind,KY=TN.call,syt=typeof Reflect=="object"&&Reflect.apply||(iyt?KY.bind(WY):function(){return KY.apply(WY,arguments)}),qY=(Uo("species"),RegExp.prototype),lyt=afe.charAt,uyt=function(e,t,n){return t+(n?lyt(e,t).length:1)},cyt=Math.floor,f7=vn("".charAt),dyt=vn("".replace),p7=vn("".slice),fyt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,pyt=/\$([$&'`]|\d{1,2})/g,hyt=function(e,t,n,r,o,a){var i=n+e.length,s=r.length,l=pyt;return o!==void 0&&(o=v4(o),l=fyt),d
`)&&e.flags==="s")}),P4t=pn.RegExp,B4t=so(function(){var e=P4t("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),R4t=gD.get,I4t=RN("native-string-replace",String.prototype.replace),Ew=RegExp.prototype.exec,yD=Ew,N4t=wn("".charAt),F4t=wn("".indexOf),$4t=wn("".replace),C7=wn("".slice),S7=(_7=/b*/g,ho(Ew,fX=/a/,"a"),ho(Ew,_7,"a"),fX.lastIndex!==0||_7.lastIndex!==0),pX=Nfe.BROKEN_CARET,E7=/()??/.exec("")[1]!==void 0;(S7||E7||pX||M4t||B4t)&&(yD=function(e){var t,n,r,o,a,i,s,l=this,u=R4t(l),c=Jo(e),d=u.raw;if(d)return d.lastIndex=l.lastIndex,t=ho(yD,d,c),l.lastIndex=d.lastIndex,t;var f=u.groups,p=pX&&l.sticky,g=ho(Ife,l),v=l.source,m=0,y=c;if(p&&(g=$4t(g,"y",""),F4t(g,"g")===-1&&(g+="g"),y=C7(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&N4t(c,l.lastIndex-1)!==`
`)&&(v="(?: "+v+")",y=" "+y,m++),n=new RegExp("^(?:"+v+")",g)),E7&&(n=new RegExp("^"+v+"$(?!\\s)",g)),S7&&(r=l.lastIndex),o=ho(Ew,p?n:l,y),p?o?(o.input=C7(o.input,m),o[0]=C7(o[0],m),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:S7&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),E7&&o&&o.length>1&&ho(I4t,o[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&f)for(o.groups=i=Lfe(null),a=0;a<f.length;a++)i[(s=f[a])[0]]=o[s[1]];return o});var qm=yD;wd({target:"RegExp",proto:!0,forced:/./.exec!==qm},{exec:qm});var xw=Array.isArray||function(e){return Xc(e)=="Array"},Vfe=function(){},L4t=[],zfe=w4("Reflect","construct"),WN=/^\s*(?:class|function)\b/,V4t=wn(WN.exec),z4t=!WN.exec(Vfe),c2=function(e){if(!la(e))return!1;try{return zfe(Vfe,L4t,e),!0}catch{return!1}},KN=!zfe||so(function(){var e;return c2(c2.call)||!c2(Object)||!c2(function(){e=!0})||e})?function(e){if(!la(e))return!1;switch(HN(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return z4t||!!V4t(WN,$N(e))}:c2,jfe=function(e,t,n){var r=NN(t);r in e?_4.f(e,r,DN(0,n)):e[r]=n},j4t=ts("species"),qN=function(e){return fD>=51||!so(function(){var t=[];return(t.constructor={})[j4t]=function(){return{foo:1}},t[e](Boolean).foo!==1})},H4t=wn([].slice),U4t=qN("slice"),W4t=ts("species"),x7=pn.Array,K4t=Math.max;function Fs(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function hX(e){var t=e.selection;if(t==null)return!1;var n=Fs(ne.nodes(e,{match:function(a){return me.checkNodeType(a,"table-cell")}}),1)[0];if(n){var r=Fs(n,2)[1],o=ne.start(e,r);if(on.equals(t.anchor,o))return!0}return!1}function vX(e,t){var n,r,o=ne.nodes(e,{at:t,match:function(l){return me.getNodeType(l)==="table"}}),a=!1;try{for(var i=function(l){var u=typeof Symbol=="function"&&Symbol.iterator,c=u&&l[u],d=0;if(c)return c.call(l);if(l&&typeof l.length=="number")return{next:function(){return l&&d>=l.length&&(l=void 0),{value:l&&l[d++],done:!l}}};throw new TypeError(u?"Object is not iterable.":"Symbol.iterator is not defined.")}(o),s=i.next();!s.done;s=i.next())s.value,a=!0}catch(l){n={error:l}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a}wd({target:"Array",proto:!0,forced:!U4t},{slice:function(e,t){var n,r,o,a=b4(this),i=o9(a),s=Km(e,i),l=Km(t===void 0?i:t,i);if(xw(a)&&(n=a.constructor,(KN(n)&&(n===x7||xw(n.prototype))||bs(n)&&(n=n[W4t])===null)&&(n=void 0),n===x7||n===void 0))return H4t(a,s,l);for(r=new(n===void 0?x7:n)(K4t(l-s,0)),o=0;s<l;s++,o++)s in a&&jfe(r,o,a[s]);return r.length=o,r}});var gX=wn(wn.bind),q4t=ts("species"),mX=pn.Array,G4t=function(e,t){return new(function(n){var r;return xw(n)&&(r=n.constructor,(KN(r)&&(r===mX||xw(r.prototype))||bs(r)&&(r=r[q4t])===null)&&(r=void 0)),r===void 0?mX:r}(e))(t===0?0:t)},yX=wn([].push),oc=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,a=e==6,i=e==7,s=e==5||a;return function(l,u,c,d){for(var f,p,g=IN(l),v=Efe(g),m=function(C,S){return Afe(C),S===void 0?C:gX?gX(C,S):function(){return C.apply(S,arguments)}}(u,c),y=o9(v),b=0,_=d||G4t,w=t?_(l,y):n||i?_(l,0):void 0;y>b;b++)if((s||b in v)&&(p=m(f=v[b],b,g),e))if(t)w[b]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return b;case 2:yX(w,f)}else switch(e){case 4:return!1;case 7:yX(w,f)}return a?-1:r||o?o:w}},a9={forEach:oc(0),map:oc(1),filter:oc(2),some:oc(3),every:oc(4),find:oc(5),findIndex:oc(6),filterReject:oc(7)},Y4t=a9.map;wd({target:"Array",proto:!0,forced:!qN("map")},{map:function(e){return Y4t(this,e,arguments.length>1?arguments[1]:void 0)}});var X4t=jN?{}.toString:function(){return"[object "+HN(this)+"]"};function i9(e){var t=e.children||[];return t.length===0?[]:(t[0]||{}).children||[]}function Hfe(e){return i9(e).every(function(t){return!!t.isHeader})}jN||Wm(Object.prototype,"toString",X4t,{unsafe:!0});var J4t=VN.PROPER,bD=RegExp.prototype,Ufe=bD.toSt
\v\f\r                 \u2028\u2029\uFEFF`,EX=wn("".replace),kw="["+SD+"]",gbt=RegExp("^"+kw+kw+"*"),mbt=RegExp(kw+kw+"*$"),A7=function(e){return function(t){var n=Jo(bd(t));return 1&e&&(n=EX(n,gbt,"")),2&e&&(n=EX(n,mbt,"")),n}},ybt={start:A7(1),end:A7(2),trim:A7(3)},bbt=VN.PROPER,wbt=ybt.trim;function Yfe(e){return e.length?e[0].tagName.toLowerCase():""}wd({target:"String",proto:!0,forced:function(e){return so(function(){return!!SD[e]()||"​…᠎"[e]()!=="​…᠎"||bbt&&SD[e].name!==e})}("trim")},{trim:function(){return wbt(this)}}),wd({global:!0},{globalThis:pn}),be.fn.append=Lv,be.fn.on=Qy,be.fn.focus=C5,be.fn.attr=$v,be.fn.val=Zy,be.fn.html=_5,be.fn.dataset=kR,be.fn.addClass=SR,be.fn.removeClass=ER,be.fn.children=DR,be.fn.each=_le,be.fn.find=TR;var Gm=!1,Xfe=0,Jfe=0,Ym=null,Xm=null,T1=be("body");function Zfe(e){Gm=!1,Xm=null,Ym=null,T1.off("mousemove",Qfe),T1.off("mouseup",Zfe)}T1.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(),Gm=!0;var n=e.clientX;Xfe=n;var r=t.getBoundingClientRect().width;Jfe=r,T1.on("mousemove",Qfe),T1.on("mouseup",Zfe)}});var Qfe=bp(function(e){if(Gm&&Xm!=null&&Ym!=null){e.preventDefault();var t=e.clientX,n=Jfe+(t-Xfe);(n=Math.floor(100*n)/100)<30&&(n=30),Be.setNodes(Xm,{width:n.toString()},{at:Ym})}},100),_bt={type:"table",renderElem:function(e,t,n){var r=function(s,l){if(s.isDisabled())return!1;var u=s.selection;if(u==null||He.isCollapsed(u))return!0;var c=u.anchor,d=u.focus,f=me.findPath(s,l),p=ne.start(s,f),g=ne.end(s,f),v=on.compare(c,g)<=0&&on.compare(c,p)>=0,m=on.compare(d,g)<=0&&on.compare(d,p)>=0;return!!(v&&m&&Me.equals(c.path.slice(0,3),d.path.slice(0,3)))}(n,e),o=e.width,a=o===void 0?"auto":o,i=Xt("div",{className:"table-container","data-selected":me.isNodeSelected(n,e),on:{mousedown:function(s){if(s.target.tagName==="DIV"&&s.preventDefault(),!n.isDisabled()){var l=me.findPath(n,e),u=ne.start(n,l),c=n.selection;c!=null?c.anchor.path[0]!==l[0]&&n.select(u):n.select(u)}}}},Xt("table",{width:a,contentEditable:r},Xt("colgroup",null,i9(e).map(function(s){var l=s.width;return Xt("col",{width:l===void 0?"auto":l})})),Xt("tbody",null,t)));return i}},Cbt={type:"table-row",renderElem:function(e,t,n){return Xt("tr",null,t)}},Sbt={type:"table-cell",renderElem:function(e,t,n){var r=function(f,p){var g=me.getParentNode(f,p);if(g==null)return!1;var v=me.getParentNode(f,g);return v!=null&&i9(v).some(function(m){return m===p})}(n,e),o=e,a=o.colSpan,i=a===void 0?1:a,s=o.rowSpan,l=s===void 0?1:s,u=o.isHeader,c=u!==void 0&&u;if(!r)return Xt("td",{colSpan:i,rowSpan:l},t);var d=Xt(c?"th":"td",{colSpan:i,rowSpan:l,style:{borderRightWidth:"3px"},on:{mousemove:bp(function(f){var p=this.elm;if(p!=null){var g=p.getBoundingClientRect(),v=g.left,m=g.width,y=g.top,b=g.height,_=f.clientX,w=f.clientY;Gm||(_>v+m-5&&_<v+m&&w>y&&w<y+b?(p.style.cursor="col-resize",Xm=n,Ym=me.findPath(n,e)):Gm||(p.style.cursor="auto",Xm=null,Ym=null))}},100)}},t);return d}},Ebt={selector:"table",preParseHtml:function(e){var t=be(e);if(Yfe(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]}},xbt=a9.filter;wd({target:"Array",proto:!0,forced:!qN("filter")},{filter:function(e){return xbt(this,e,arguments.length>1?arguments[1]:void 0)}});var kbt=Math.floor,O7=wn("".charAt),Abt=wn("".replace),T7=wn("".slice),Obt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Tbt=/\$([$&'`]|\d{1,2})/g,Dbt=function(e,t,n,r,o,a){var i=n+e.length,s=r.length,l=Tbt;return o!==void 0&&(o=IN(o),l=Obt),Abt(a,l,function(u,c){var d;switch(O7(c,0)){case"$":return"$";case"&":return e;case"`":return T7(t,0,n);case"'":return T7(t,i);case"<":d=o[T7(c,1,-1)];break;default:var f=+c;if(f===0)return u;if(f>s){var p=kbt(f/10);return p===0?u:p<=s?r[p-1]===void 0?O7(c,1):r[p-1]+O7(c,1):u}d=r[f-1]}return d===void 0?"":d})},ED=ts("replace"),Mbt=Math.max,Pbt=Math.min,Bbt=wn([].concat),D7=wn([].push),xX=wn("".indexOf),kX=wn("".slice),Rbt="a".replace(/./,"$0")==="$0",AX=!!/./[ED]&&/./[ED]("a",
`)},l.deleteBackward=function(u){if(!hX(l)){var c=l.selection;if(c){var d=ne.before(l,c);if(d){var f=vX(l,d),p=vX(l,c);if(f&&!p)return}}n(u)}},l.handleTab=function(){var u;if(me.getSelectedNodeByType(l,"table")){var c=ne.above(e);me.checkNodeType(c[0],"table-cell")&&Be.select(e,c[1]);var d=ne.next(e);if(d)d[0]&&d[0].text&&(d=(u=ne.above(e,{at:d[1]}))!==null&&u!==void 0?u:d),Be.select(e,d[1]);else{var f=l.children||[],p=f.length;if(me.checkNodeType(f[p-1],"table")){var g=me.genEmptyParagraph();Be.insertNodes(l,g,{at:[p]}),l.handleTab()}}}else i()},l.deleteForward=function(u){hX(l)||r(u)},l.normalizeNode=function(u){var c=Fs(u,2),d=c[0],f=c[1];if(me.getNodeType(d)!=="table")return o([d,f]);if(me.isLastNode(l,d)){var p=me.genEmptyParagraph();Be.insertNodes(l,p,{at:[f[0]+1]})}},l.insertData=function(u){if(me.getSelectedNodeByType(l,"table")!=null){var c=u.getData("text/plain");c===`
`||/<img[^>]+>/.test(u.getData("text/html"))?a(u):ne.insertText(l,c)}else a(u)},l.selectAll=function(){var u=l.selection;if(u!=null){var c=me.getSelectedNodeByType(l,"table-cell");if(c!=null){var d=u.anchor,f=u.focus;if(Me.equals(d.path.slice(0,3),f.path.slice(0,3)))if(dt.string(c).length!==0){var p=me.findPath(l,c),g={anchor:ne.start(l,p),focus:ne.end(l,p)};l.select(g)}else s();else s()}else s()}else s()},l}};Ca("en",{videoModule:{delete:"Delete",uploadVideo:"Upload video",insertVideo:"Insert video",videoSrc:"Video source",videoSrcPlaceHolder:"Video file url, or third-party <iframe>",videoPoster:"Video poster",videoPosterPlaceHolder:"Poster image url",ok:"Ok",editSize:"Edit size",width:"Width",height:"Height"}}),Ca("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var Aw=function(){return Aw=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Aw.apply(this,arguments)};function s9(e,t,n,r){return new(n||(n=Promise))(function(o,a){function i(u){try{l(r.next(u))}catch(c){a(c)}}function s(u){try{l(r.throw(u))}catch(c){a(c)}}function l(u){var c;u.done?o(u.value):(c=u.value,c instanceof n?c:new n(function(d){d(c)})).then(i,s)}l((r=r.apply(e,[])).next())})}function l9(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(l){return function(u){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){i=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(c[0]===6&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(d){c=[6,d],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([l,u])}}}function ep(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function Xbt(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(o){var a=typeof Symbol=="function"&&Symbol.iterator,i=a&&o[a],s=0;if(i)return i.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(o){t[o]=e[o]&&function(a){return new Promise(function(i,s){(function(l,u,c,d){Promise.resolve(d).then(function(f){l({value:f,done:c})},u)})(i,s,(a=e[o](a)).done,a.value)})}}}var DX=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function YN(e){var t={exports:{}};return e(t,t.exports),t.exports}var ac,l3,Yb=function(e){return e&&e.Math==Math&&e},ht=Yb(typeof globalThis=="object"&&globalThis)||Yb(typeof window=="object"&&window)||Yb(typeof self=="object"&&self)||Yb(typeof DX=="object"&&DX)||function(){return this}()||Function("return this")(),lr=function(e){try{return!!e()}catch{return!0}},xl=!lr(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),f2=Function.prototype.call,ir=f2.bind?f2.bind(f2):function(){return f2.apply(f2,arguments)},MX={}.propertyIsEnumerable,PX=Object.getOwnPropertyDescriptor,Jbt={f:PX&&!MX.call({1:2},1)?function(e){var t=PX(this,e);return!!t&&t.enumerable}:MX},u9=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},tpe=Function.prototype,xD=tpe.bind,kD=tpe.call,Zbt=xD&&xD.bind(kD),en=xD?function(e){return e&&Zbt(kD,e)}:function(e){return e&&function(){return kD.apply(e,arguments)}},Qbt=en({}.toString),e6t=en("".slice),gl=function(e){return e6t(Qbt(e),8,-1)},R7=ht.Object,t6t=en("".split),XN=lr(function(){return!R7("z").propertyIsEnumerable(0)})?function(e){return gl(e)=="String"?t6t(e,""):R7(e)}:R7,n6t=ht.TypeError,S4=function(e){if(e==null)throw n6t("Can't call method on "+e);return e},Bd=function(e){return XN(S4(e))},Jn=function(e){return typeof
\v\f\r                 \u2028\u2029\uFEFF`,WX=en("".replace),Rw="["+DD+"]",q6t=RegExp("^"+Rw+Rw+"*"),G6t=RegExp(Rw+Rw+"*$"),F7=function(e){return function(t){var n=Ti(S4(t));return 1&e&&(n=WX(n,q6t,"")),2&e&&(n=WX(n,G6t,"")),n}},Y6t={start:F7(1),end:F7(2),trim:F7(3)},X6t=Qv.PROPER,J6t=Y6t.trim;function KX(e){return e.length?e[0].tagName.toLowerCase():""}function upe(e,t,n){t===void 0&&(t="auto"),n===void 0&&(n="auto");var r=be(e);return r.attr("width",t),r.attr("height",n),r[0].outerHTML}Na({target:"String",proto:!0,forced:lr(function(){return!!DD.trim()||"​…᠎".trim()!=="​…᠎"||X6t&&DD.trim.name!=="trim"})},{trim:function(){return J6t(this)}}),Na({global:!0},{globalThis:ht}),be.fn.append=Lv,be.fn.on=Qy,be.fn.focus=C5,be.fn.attr=$v,be.fn.val=Zy,be.fn.html=_5,be.fn.parent=OR,be.fn.hasClass=xR,be.fn.empty=PR;var Xb,Z6t={type:"video",renderElem:function(e,t,n){var r,o=e,a=o.src,i=a===void 0?"":a,s=o.poster,l=s===void 0?"":s,u=o.width,c=u===void 0?"auto":u,d=o.height,f=d===void 0?"auto":d,p=me.isNodeSelected(n,e);if(i.trim().indexOf("<iframe ")===0)r=Xt("div",{className:"w-e-textarea-video-container","data-selected":p?"true":"",innerHTML:upe(i,c,f)});else{var g=Xt("video",{poster:l,controls:!0},Xt("source",{src:i,type:"video/mp4"}),`Sorry, your browser doesn't support embedded videos.
抱歉浏览器不支持 video 视频`);c!=="auto"&&(g.data.width=c),f!=="auto"&&(g.data.height=f),r=Xt("div",{className:"w-e-textarea-video-container","data-selected":p?"true":""},g)}return Z0("div",{props:{contentEditable:!1},on:{mousedown:function(v){return v.preventDefault()}}},r)}},Q6t={type:"video",elemToHtml:function(e,t){var n=e,r=n.src,o=r===void 0?"":r,a=n.poster,i=a===void 0?"":a,s=n.width,l=s===void 0?"auto":s,u=n.height,c=u===void 0?"auto":u,d=`<div data-w-e-type="video" data-w-e-is-void>
`;return o.trim().indexOf("<iframe ")===0?d+=upe(o,l,c):d+='<video poster="'+i+'" controls="true" width="'+l+'" height="'+c+'"><source src="'+o+'" type="video/mp4"/></video>',d+`
</div>`}},e3t=Object.keys||function(e){return spe(e,Mw)},t3t=xl?Object.defineProperties:function(e,t){Mo(e);for(var n,r=Bd(t),o=e3t(t),a=o.length,i=0;a>i;)Bu.f(e,n=o[i++],r[n]);return e},MD=Tp("document","documentElement"),cpe=rF("IE_PROTO"),$7=function(){},dpe=function(e){return"<script>"+e+"<\/script>"},qX=function(e){e.write(dpe("")),e.close();var t=e.parentWindow.Object;return e=null,t},u3=function(){try{Xb=new ActiveXObject("htmlfile")}catch{}var e,t;u3=typeof document<"u"?document.domain&&Xb?qX(Xb):((t=ey("iframe")).style.display="none",MD.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(dpe("document.F=Object")),e.close(),e.F):qX(Xb);for(var n=Mw.length;n--;)delete u3.prototype[Mw[n]];return u3()};f9[cpe]=!0;var aF=Object.create||function(e,t){var n;return e!==null?($7.prototype=Mo(e),n=new $7,$7.prototype=null,n[cpe]=e):n=u3(),t===void 0?n:t3t(n,t)},PD=Kr("unscopables"),BD=Array.prototype;BD[PD]==null&&Bu.f(BD,PD,{configurable:!0,value:aF(null)});var M1=function(e){BD[PD][e]=!0},n3t=ipe.includes;Na({target:"Array",proto:!0},{includes:function(e){return n3t(this,e,arguments.length>1?arguments[1]:void 0)}}),M1("includes");var r3t={selector:"iframe,video,p",preParseHtml:function(e){var t=be(e),n=t;if(KX(t)==="p"){var r=t.children();if(r.length===1){var o=r[0],a=o.tagName.toLowerCase();["iframe","video"].includes(a)&&(n=be(o))}}var i=KX(n);if(i!=="iframe"&&i!=="video"||n.parent().attr("data-w-e-type")==="video")return n[0];var s=be('<div data-w-e-type="video" data-w-e-is-void></div>');return s.append(n),s[0]}},GX=en(en.bind),ny=function(e,t){return _d(e),t===void 0?e:GX?GX(e,t):function(){return e.apply(t,arguments)}},Iw=Array.isArray||function(e){return gl(e)=="Array"},fpe=function(){},o3t=[],ppe=Tp("Reflect","construct"),iF=/^\s*(?:class|function)\b/,a3t=en(iF.exec),i3t=!iF.exec(fpe),h2=function(e){if(!Jn(e))return!1;try{return ppe(fpe,o3t,e),!0}catch{return!1}},sF=!ppe||lr(function(){var e;return h2(h2.call)||!h2(Object)||!h2(function(){e=!0})||e})?function(e){if(!Jn(e))return!1;switch(h9(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return i3t||!!a3t(iF,d9(e))}:h2,s3t=Kr("species"),YX=ht.Array,l3t=function(e,t){return new(function(n){var r;return Iw(n)&&(r=n.constructor,(sF(r)&&(r===YX||Iw(r.prototype))||br(r)&&(r=r[s3t])===null)&&(r=void 0)),r===void 0?YX:r}(e))(t===0?0:t)},XX=en([].push),ic=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,a=e==6,i=e==7,s=e==5||a;return function(l,u,c,d){for(var f,p,g=c9(l),v=XN(g),m=ny(u,c),y=E4(v),b=0,_=d||l3t,w=t?_(l,y):n||i?_(l,0):void 0;y>b;b++)if((s||b in v)&&(p=m(f=v[b],b,g),e))if(t)w[b]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return b;case 2:XX(w,f)}else switch(e){case 4:return!1;case 7:XX(w,f)}return a?-1:r||o?o:w}},lF={forEach:ic(0),map:ic(1),filter:ic(2),some:ic(3),every:ic(4),find:ic(5),findIndex:ic(6),filterReject:ic(7)},u3t=lF.find,JX=!0;"find"in[]&&Array(1).find(function(){JX=!1}),Na({target:"Array",proto:!0,forced:JX},{find:function(e){return u3t(this,e,arguments.length>1?arguments[1]:void 0)}}),M1("find");var c3t=oF?{}.toString:function(){return"[object "+h9(this)+"]"};function ZX(e,t,n,r){return t===void 0&&(t=""),n===void 0&&(n="auto"),r===void 0&&(r="auto"),{type:"video",src:e,poster:t,width:n,height:r,children:[{text:""}]}}oF||Xi(Object.prototype,"toString",c3t,{unsafe:!0});var QX,L7,d3t={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=be(e),o="",a="",i="auto",s="auto",l=r.find("iframe");if(l.length>0)return i=l.attr("width")||"auto",s=l.attr("height")||"auto",ZX(o=l[0].outerHTML,a,i,s);var u=r.find("video");return(o=u.attr("src")||"")||u.length>0&&(o=u.find("source").attr("src")||""),i=u.attr("width")||"auto",s=u.attr("height")||"auto",ZX(o,a=u.attr("poster")||"",i,s)}},hpe=function(){var e=Mo(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},uF=ht.RegExp,RD=lr(function(){var e=uF("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),f3t=RD||lr(function(){
`)&&e.flags==="s")}),g3t=ht.RegExp,m3t=lr(function(){var e=g3t("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),y3t=mi.get,b3t=QN("native-string-replace",String.prototype.replace),Nw=RegExp.prototype.exec,ID=Nw,w3t=en("".charAt),_3t=en("".indexOf),C3t=en("".replace),V7=en("".slice),z7=(L7=/b*/g,ir(Nw,QX=/a/,"a"),ir(Nw,L7,"a"),QX.lastIndex!==0||L7.lastIndex!==0),eJ=p3t.BROKEN_CARET,j7=/()??/.exec("")[1]!==void 0;(z7||j7||eJ||v3t||m3t)&&(ID=function(e){var t,n,r,o,a,i,s,l=this,u=y3t(l),c=Ti(e),d=u.raw;if(d)return d.lastIndex=l.lastIndex,t=ir(ID,d,c),l.lastIndex=d.lastIndex,t;var f=u.groups,p=eJ&&l.sticky,g=ir(hpe,l),v=l.source,m=0,y=c;if(p&&(g=C3t(g,"y",""),_3t(g,"g")===-1&&(g+="g"),y=V7(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&w3t(c,l.lastIndex-1)!==`
`)&&(v="(?: "+v+")",y=" "+y,m++),n=new RegExp("^(?:"+v+")",g)),j7&&(n=new RegExp("^"+v+"$(?!\\s)",g)),z7&&(r=l.lastIndex),o=ir(Nw,p?n:l,y),p?o?(o.input=V7(o.input,m),o[0]=V7(o[0],m),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:z7&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),j7&&o&&o.length>1&&ir(b3t,o[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&f)for(o.groups=i=aF(null),a=0;a<f.length;a++)i[(s=f[a])[0]]=o[s[1]];return o});var Fw=ID;Na({target:"RegExp",proto:!0,forced:/./.exec!==Fw},{exec:Fw});var cF=Function.prototype,tJ=cF.apply,S3t=cF.bind,nJ=cF.call,vpe=typeof Reflect=="object"&&Reflect.apply||(S3t?nJ.bind(tJ):function(){return nJ.apply(tJ,arguments)}),rJ=(Kr("species"),RegExp.prototype),E3t=en("".charAt),oJ=en("".charCodeAt),x3t=en("".slice),aJ=function(e){return function(t,n){var r,o,a=Ti(S4(t)),i=p9(n),s=a.length;return i<0||i>=s?e?"":void 0:(r=oJ(a,i))<55296||r>56319||i+1===s||(o=oJ(a,i+1))<56320||o>57343?e?E3t(a,i):r:e?x3t(a,i,i+2):o-56320+(r-55296<<10)+65536}},gpe={codeAt:aJ(!1),charAt:aJ(!0)},k3t=gpe.charAt,A3t=function(e,t,n){return t+(n?k3t(e,t).length:1)},O3t=Math.floor,H7=en("".charAt),T3t=en("".replace),U7=en("".slice),D3t=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,M3t=/\$([$&'`]|\d{1,2})/g,P3t=function(e,t,n,r,o,a){var i=n+e.length,s=r.length,l=M3t;return o!==void 0&&(o=c9(o),l=D3t),T3t(a,l,function(u,c){var d;switch(H7(c,0)){case"$":return"$";case"&":return e;case"`":return U7(t,0,n);case"'":return U7(t,i);case"<":d=o[U7(c,1,-1)];break;default:var f=+c;if(f===0)return u;if(f>s){var p=O3t(f/10);return p===0?u:p<=s?r[p-1]===void 0?H7(c,1):r[p-1]+H7(c,1):u}d=r[f-1]}return d===void 0?"":d})},B3t=ht.TypeError,R3t=function(e,t){var n=e.exec;if(Jn(n)){var r=ir(n,e,t);return r!==null&&Mo(r),r}if(gl(e)==="RegExp")return ir(Fw,e,t);throw B3t("RegExp#exec called on incompatible receiver")},ND=Kr("replace"),I3t=Math.max,N3t=Math.min,F3t=en([].concat),W7=en([].push),iJ=en("".indexOf),sJ=en("".slice),$3t="a".replace(/./,"$0")==="$0",lJ=!!/./[ND]&&/./[ND]("a","$0")==="";function mpe(e){return e+"-"+Ale()}(function(e,t,n,r){var o=Kr(e),a=!lr(function(){var u={};return u[o]=function(){return 7},""[e](u)!=7}),i=a&&!lr(function(){var u=!1,c=/a/;return c.exec=function(){return u=!0,null},c[o](""),!u});if(!a||!i||n){var s=en(/./[o]),l=function(u,c,d){var f=lJ?"$":"$0";return[function(p,g){var v=S4(this),m=p==null?void 0:Qm(p,ND);return m?ir(m,p,v,g):ir(c,Ti(v),p,g)},function(p,g){var v=Mo(this),m=Ti(p);if(typeof g=="string"&&iJ(g,f)===-1&&iJ(g,"$<")===-1){var y=d(c,v,m,g);if(y.done)return y.value}var b=Jn(g);b||(g=Ti(g));var _=v.global;if(_){var w=v.unicode;v.lastIndex=0}for(var C=[];;){var S=R3t(v,m);if(S===null||(W7(C,S),!_))break;Ti(S[0])===""&&(v.lastIndex=A3t(m,ape(v.lastIndex),w))}for(var E,k="",A=0,D=0;D<C.length;D++){for(var B=Ti((S=C[D])[0]),P=I3t(N3t(p9(S.index),m.length),0),K=[],X=1;X<S.length;X++)W7(K,(E=S[X])===void 0?E:String(E));var z=S.groups;if(b){var R=F3t([B],K,P,m);z!==void 0&&W7(R,z);var j=Ti(vpe(g,void 0,R))}else j=P3t(B,m,P,K,z,g);P>=A&&(k+=sJ(m,A,P)+j,A=P+B.length)}return k+sJ(m,A)}]}(0,""[e],function(u,c,d,f,p){var g=en(u),v=c.exec;return v===Fw||v===rJ.exec?a&&!p?{done:!0,value:s(c,d,f)}:{done:!0,value:g(d,c,f)}:{done:!1}});Xi(String.prototype,e,l[0]),Xi(rJ,o,l[1])}})("replace",0,!!lr(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!$3t||lJ);var $w=ht.Promise,Lw=function(e,t,n){for(var r in t)Xi(e,r,t[r],n);return e},L3t=ht.String,V3t=ht.TypeError,uv=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=en(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return Mo(r),function(a){if(typeof a=="object"||Jn(a))return a;throw V3t("Can't set "+L3t(a)+" as a prototype")}(o),t?e(r,o):r.__proto__=o,r}}():void 0),z3t=Bu.f,uJ=Kr("toStringTag"),Vw=function(e,t,n){e&&!no(e=n?e:e.prototype,uJ)&&z3t(e,uJ,{configurable:!0,value:t})},cJ=Kr("species"),j3t=ht.TypeError,dF=function(e,t){if(Jm(t,e))return e;thr
`)&&e.flags==="s")}),v_t=pt.RegExp,g_t=gr(function(){var e=v_t("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),m_t=yi.get,y_t=CF("native-string-replace",String.prototype.replace),Xw=RegExp.prototype.exec,ZD=Xw,b_t=fn("".charAt),w_t=fn("".indexOf),__t=fn("".replace),gx=fn("".slice),mx=(vx=/b*/g,Kn(Xw,nZ=/a/,"a"),Kn(Xw,vx,"a"),nZ.lastIndex!==0||vx.lastIndex!==0),rZ=rhe.BROKEN_CARET,yx=/()??/.exec("")[1]!==void 0;(mx||yx||rZ||h_t||g_t)&&(ZD=function(e){var t,n,r,o,a,i,s,l=this,u=m_t(l),c=nd(e),d=u.raw;if(d)return d.lastIndex=l.lastIndex,t=Kn(ZD,d,c),l.lastIndex=d.lastIndex,t;var f=u.groups,p=rZ&&l.sticky,g=Kn(nhe,l),v=l.source,m=0,y=c;if(p&&(g=__t(g,"y",""),w_t(g,"g")===-1&&(g+="g"),y=gx(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&b_t(c,l.lastIndex-1)!==`
`)&&(v="(?: "+v+")",y=" "+y,m++),n=new RegExp("^(?:"+v+")",g)),yx&&(n=new RegExp("^"+v+"$(?!\\s)",g)),mx&&(r=l.lastIndex),o=Kn(Xw,p?n:l,y),p?o?(o.input=gx(o.input,m),o[0]=gx(o[0],m),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:mx&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),yx&&o&&o.length>1&&Kn(y_t,o[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&f)for(o.groups=i=BF(null),a=0;a<f.length;a++)i[(s=f[a])[0]]=o[s[1]];return o});var dy=ZD;ul({target:"RegExp",proto:!0,forced:/./.exec!==dy},{exec:dy});var RF=Function.prototype,oZ=RF.apply,C_t=RF.bind,aZ=RF.call,ihe=typeof Reflect=="object"&&Reflect.apply||(C_t?aZ.bind(oZ):function(){return aZ.apply(oZ,arguments)}),S_t=qr("species"),bx=RegExp.prototype,E_t=qr("match"),x_t=pt.TypeError,k_t=qr("species"),she=function(e,t){var n,r=Po(e).constructor;return r===void 0||(n=Po(r)[k_t])==null?t:function(o){if(MF(o))return o;throw x_t(Hw(o)+" is not a constructor")}(n)},A_t=fn("".charAt),iZ=fn("".charCodeAt),O_t=fn("".slice),sZ=function(e){return function(t,n){var r,o,a=nd(ay(t)),i=OF(n),s=a.length;return i<0||i>=s?e?"":void 0:(r=iZ(a,i))<55296||r>56319||i+1===s||(o=iZ(a,i+1))<56320||o>57343?e?A_t(a,i):r:e?O_t(a,i,i+2):o-56320+(r-55296<<10)+65536}},lhe={codeAt:sZ(!1),charAt:sZ(!0)},T_t=lhe.charAt,D_t=function(e,t,n){return t+(n?T_t(e,t).length:1)},M_t=pt.Array,P_t=Math.max,QD=function(e,t,n){for(var r=A4(e),o=cy(t,r),a=cy(n===void 0?r:n,r),i=M_t(P_t(a-o,0)),s=0;o<a;o++,s++)ehe(i,s,e[o]);return i.length=s,i},B_t=pt.TypeError,lZ=function(e,t){var n=e.exec;if(or(n)){var r=Kn(n,e,t);return r!==null&&Po(r),r}if(As(e)==="RegExp")return Kn(dy,e,t);throw B_t("RegExp#exec called on incompatible receiver")},Th=rhe.UNSUPPORTED_Y,R_t=Math.min,uhe=[].push,I_t=fn(/./.exec),Dh=fn(uhe),S2=fn("".slice);(function(e,t,n,r){var o=qr(e),a=!gr(function(){var u={};return u[o]=function(){return 7},""[e](u)!=7}),i=a&&!gr(function(){var u=!1,c=/a/;return(c={}).constructor={},c.constructor[S_t]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return u=!0,null},c[o](""),!u});if(!a||!i||n){var s=fn(/./[o]),l=function(u,c,d){var f;return f="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(p,g){var v,m,y=nd(ay(this)),b=g===void 0?4294967295:g>>>0;if(b===0)return[];if(p===void 0)return[y];if(!hr(v=p)||!((m=v[E_t])!==void 0?m:As(v)=="RegExp"))return Kn(c,y,p,b);for(var _,w,C,S=[],E=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(p.sticky?"y":""),k=0,A=new RegExp(p.source,E+"g");(_=Kn(dy,A,y))&&!((w=A.lastIndex)>k&&(Dh(S,S2(y,k,_.index)),_.length>1&&_.index<y.length&&ihe(uhe,S,QD(_,1)),C=_[0].length,k=w,S.length>=b));)A.lastIndex===_.index&&A.lastIndex++;return k===y.length?!C&&I_t(A,"")||Dh(S,""):Dh(S,S2(y,k)),S.length>b?QD(S,0,b):S}:"0".split(void 0,0).length?function(p,g){return p===void 0&&g===0?[]:Kn(c,this,p,g)}:c,[function(p,g){var v=ay(this),m=p==null?void 0:ly(p,u);return m?Kn(m,p,v,g):Kn(f,nd(v),p,g)},function(p,g){var v=Po(this),m=nd(p),y=d(f,v,m,g,f!==c);if(y.done)return y.value;var b=she(v,RegExp),_=v.unicode,w=(v.ignoreCase?"i":"")+(v.multiline?"m":"")+(v.unicode?"u":"")+(Th?"g":"y"),C=new b(Th?"^(?:"+v.source+")":v,w),S=g===void 0?4294967295:g>>>0;if(S===0)return[];if(m.length===0)return lZ(C,m)===null?[m]:[];for(var E=0,k=0,A=[];k<m.length;){C.lastIndex=Th?0:k;var D,B=lZ(C,Th?S2(m,k):m);if(B===null||(D=R_t(Ype(C.lastIndex+(Th?k:0)),m.length))===E)k=D_t(m,k,_);else{if(Dh(A,S2(m,E,k)),A.length===S)return A;for(var P=1;P<=B.length-1;P++)if(Dh(A,B[P]),A.length===S)return A;k=E=D}}return Dh(A,S2(m,E)),A}]}(o,""[e],function(u,c,d,f,p){var g=fn(u),v=c.exec;return v===dy||v===bx.exec?a&&!p?{done:!0,value:s(c,d,f)}:{done:!0,value:g(d,c,f)}:{done:!1}});Ji(String.prototype,e,l[0]),Ji(bx,o,l[1])}r&&ml(bx[o],"sham",!0)})("split",0,!!gr(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"}),Th);/*!
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var Jw=function(){return Jw=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Jw.apply(this,arguments)};function IF(e,t,n,r){return new(n||(n=Promise))(function(o,a){function i(u){try{l(r.next(u))}catch(c){a(c)}}function s(u){try{l(r.throw(u))}catch(c){a(c)}}function l(u){var c;u.done?o(u.value):(c=u.value,c instanceof n?c:new n(function(d){d(c)})).then(i,s)}l((r=r.apply(e,[])).next())})}function NF(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(l){return function(u){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){i=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(c[0]===6&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(d){c=[6,d],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([l,u])}}}function N_t(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(o){var a=typeof Symbol=="function"&&Symbol.iterator,i=a&&o[a],s=0;if(i)return i.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(o){t[o]=e[o]&&function(a){return new Promise(function(i,s){(function(l,u,c,d){Promise.resolve(d).then(function(f){l({value:f,done:c})},u)})(i,s,(a=e[o](a)).done,a.value)})}}}var eM=qr("unscopables"),tM=Array.prototype;tM[eM]==null&&Ru.f(tM,eM,{configurable:!0,value:BF(null)});var op,uZ,cZ,wx=function(e){tM[eM][e]=!0},dv={},F_t=!gr(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),dZ=AF("IE_PROTO"),nM=pt.Object,$_t=nM.prototype,Zw=F_t?nM.getPrototypeOf:function(e){var t=SF(e);if(ro(t,dZ))return t[dZ];var n=t.constructor;return or(n)&&t instanceof n?n.prototype:t instanceof nM?$_t:null},rM=qr("iterator"),che=!1;[].keys&&("next"in(cZ=[].keys())?(uZ=Zw(Zw(cZ)))!==Object.prototype&&(op=uZ):che=!0);var L_t=op==null||gr(function(){var e={};return op[rM].call(e)!==e});L_t&&(op={}),or(op[rM])||Ji(op,rM,function(){return this});var FF={IteratorPrototype:op,BUGGY_SAFARI_ITERATORS:che},V_t=Ru.f,fZ=qr("toStringTag"),Qw=function(e,t,n){e&&!ro(e=n?e:e.prototype,fZ)&&V_t(e,fZ,{configurable:!0,value:t})},z_t=FF.IteratorPrototype,j_t=function(){return this},H_t=pt.String,U_t=pt.TypeError,fv=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=fn(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return Po(r),function(a){if(typeof a=="object"||or(a))return a;throw U_t("Can't set "+H_t(a)+" as a prototype")}(o),t?e(r,o):r.__proto__=o,r}}():void 0),W_t=k4.PROPER,K_t=k4.CONFIGURABLE,pZ=FF.IteratorPrototype,_x=FF.BUGGY_SAFARI_ITERATORS,E2=qr("iterator"),q_t=function(){return this},dhe=function(e,t,n,r,o,a,i){(function(m,y,b,_){var w=y+" Iterator";m.prototype=BF(z_t,{next:v9(1,b)}),Qw(m,w,!1),dv[w]=j_t})(n,t,r);var s,l,u=function(m){if(m===o&&g)return g;if(!_x&&m in f)return f[m];switch(m){case"keys":case"values":case"entries":return funct
* Prism: Lightweight, robust, elegant syntax highlighting
*
* @license MIT <https://opensource.org/licenses/MIT>
* @author Lea Verou <https://lea.verou.me>
* @namespace
* @public
*/e.exports&&(e.exports=t),o_!==void 0&&(o_.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 o={};o["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[r]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var a={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};a["language-"+r]={pattern:/[\s\S]+/,inside:t.languages[r]};var i={};i[n]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:a},t.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(n,r){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+n+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:t.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(n){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;n.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},n.languages.css.atrule.inside.rest=n.languages.css;var o=n.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\
`)&&e.flags==="s")}),cCt=gn.RegExp,dCt=Oo(function(){var e=cCt("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),fCt=vM.get,pCt=qF("native-string-replace",String.prototype.replace),l_=RegExp.prototype.exec,yM=l_,hCt=jn("".charAt),vCt=jn("".indexOf),gCt=jn("".replace),qx=jn("".slice),Gx=(Kx=/b*/g,xo(l_,vQ=/a/,"a"),xo(l_,Kx,"a"),vQ.lastIndex!==0||Kx.lastIndex!==0),gQ=i0e.BROKEN_CARET,Yx=/()??/.exec("")[1]!==void 0;(Gx||Yx||gQ||uCt||dCt)&&(yM=function(e){var t,n,r,o,a,i,s,l=this,u=fCt(l),c=hu(e),d=u.raw;if(d)return d.lastIndex=l.lastIndex,t=xo(yM,d,c),l.lastIndex=d.lastIndex,t;var f=u.groups,p=gQ&&l.sticky,g=xo(a0e,l),v=l.source,m=0,y=c;if(p&&(g=gCt(g,"y",""),vCt(g,"g")===-1&&(g+="g"),y=qx(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&hCt(c,l.lastIndex-1)!==`
`)&&(v="(?: "+v+")",y=" "+y,m++),n=new RegExp("^(?:"+v+")",g)),Yx&&(n=new RegExp("^"+v+"$(?!\\s)",g)),Gx&&(r=l.lastIndex),o=xo(l_,p?n:l,y),p?o?(o.input=qx(o.input,m),o[0]=qx(o[0],m),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:Gx&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),Yx&&o&&o.length>1&&xo(pCt,o[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&f)for(o.groups=i=sCt(null),a=0;a<f.length;a++)i[(s=f[a])[0]]=o[s[1]];return o});var vy=yM;_9({target:"RegExp",proto:!0,forced:/./.exec!==vy},{exec:vy});var l$=Function.prototype,mQ=l$.apply,mCt=l$.bind,yQ=l$.call,yCt=typeof Reflect=="object"&&Reflect.apply||(mCt?yQ.bind(mQ):function(){return yQ.apply(mQ,arguments)}),bCt=Id("species"),Xx=RegExp.prototype,wCt=Id("match"),_Ct=gn.TypeError,CCt=Id("species"),SCt=jn("".charAt),bQ=jn("".charCodeAt),ECt=jn("".slice),xCt=function(e){return function(t,n){var r,o,a=hu(pv(t)),i=o$(n),s=a.length;return i<0||i>=s?e?"":void 0:(r=bQ(a,i))<55296||r>56319||i+1===s||(o=bQ(a,i+1))<56320||o>57343?e?SCt(a,i):r:e?ECt(a,i,i+2):o-56320+(r-55296<<10)+65536}},kCt=xCt(!0),ACt=function(e,t,n){return t+(n?kCt(e,t).length:1)},OCt=gn.Array,TCt=Math.max,wQ=function(e,t,n){for(var r,o,a,i,s=a$(e),l=gM(t,s),u=gM(n===void 0?s:n,s),c=OCt(TCt(u-l,0)),d=0;l<u;l++,d++)r=c,o=d,a=e[l],(i=ZF(o))in r?b9.f(r,i,QF(0,a)):r[i]=a;return c.length=d,c},DCt=gn.TypeError,_Q=function(e,t){var n=e.exec;if(Sa(n)){var r=xo(n,e,t);return r!==null&&Os(r),r}if(ad(e)==="RegExp")return xo(vy,e,t);throw DCt("RegExp#exec called on incompatible receiver")},Rh=i0e.UNSUPPORTED_Y,MCt=Math.min,u0e=[].push,PCt=jn(/./.exec),Ih=jn(u0e),P2=jn("".slice);(function(e,t,n,r){var o=Id(e),a=!Oo(function(){var u={};return u[o]=function(){return 7},""[e](u)!=7}),i=a&&!Oo(function(){var u=!1,c=/a/;return(c={}).constructor={},c.constructor[bCt]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return u=!0,null},c[o](""),!u});if(!a||!i||n){var s=jn(/./[o]),l=function(u,c,d){var f;return f="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(p,g){var v,m,y=hu(pv(this)),b=g===void 0?4294967295:g>>>0;if(b===0)return[];if(p===void 0)return[y];if(!dl(v=p)||!((m=v[wCt])!==void 0?m:ad(v)=="RegExp"))return xo(c,y,p,b);for(var _,w,C,S=[],E=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(p.sticky?"y":""),k=0,A=new RegExp(p.source,E+"g");(_=xo(vy,A,y))&&!((w=A.lastIndex)>k&&(Ih(S,P2(y,k,_.index)),_.length>1&&_.index<y.length&&yCt(u0e,S,wQ(_,1)),C=_[0].length,k=w,S.length>=b));)A.lastIndex===_.index&&A.lastIndex++;return k===y.length?!C&&PCt(A,"")||Ih(S,""):Ih(S,P2(y,k)),S.length>b?wQ(S,0,b):S}:"0".split(void 0,0).length?function(p,g){return p===void 0&&g===0?[]:xo(c,this,p,g)}:c,[function(p,g){var v=pv(this),m=p==null?void 0:Whe(p,u);return m?xo(m,p,v,g):xo(f,hu(v),p,g)},function(p,g){var v=Os(this),m=hu(p),y=d(f,v,m,g,f!==c);if(y.done)return y.value;var b=function(K,X){var z,R=Os(K).constructor;return R===void 0||(z=Os(R)[CCt])==null?X:function(j){if(Zhe(j))return j;throw _Ct(Hhe(j)+" is not a constructor")}(z)}(v,RegExp),_=v.unicode,w=(v.ignoreCase?"i":"")+(v.multiline?"m":"")+(v.unicode?"u":"")+(Rh?"g":"y"),C=new b(Rh?"^(?:"+v.source+")":v,w),S=g===void 0?4294967295:g>>>0;if(S===0)return[];if(m.length===0)return _Q(C,m)===null?[m]:[];for(var E=0,k=0,A=[];k<m.length;){C.lastIndex=Rh?0:k;var D,B=_Q(C,Rh?P2(m,k):m);if(B===null||(D=MCt(Yhe(C.lastIndex+(Rh?k:0)),m.length))===E)k=ACt(m,k,_);else{if(Ih(A,P2(m,E,k)),A.length===S)return A;for(var P=1;P<=B.length-1;P++)if(Ih(A,B[P]),A.length===S)return A;k=E=D}}return Ih(A,P2(m,E)),A}]}(o,""[e],function(u,c,d,f,p){var g=jn(u),v=c.exec;return v===vy||v===Xx.exec?a&&!p?{done:!0,value:s(c,d,f)}:{done:!0,value:g(d,c,f)}:{done:!1}});hy(String.prototype,e,l[0]),hy(Xx,o,l[1])}r&&hv(Xx[o],"sham",!0)})("split",0,!!Oo(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"})
Can not construct a instance`)}return e.setEditorConfig=function(t){t===void 0&&(t={}),this.editorConfig=Or(Or({},this.editorConfig),t)},e.setSimpleEditorConfig=function(t){t===void 0&&(t={}),this.simpleEditorConfig=Or(Or({},this.simpleEditorConfig),t)},e.setToolbarConfig=function(t){t===void 0&&(t={}),this.toolbarConfig=Or(Or({},this.toolbarConfig),t)},e.setSimpleToolbarConfig=function(t){t===void 0&&(t={}),this.simpleToolbarConfig=Or(Or({},this.simpleToolbarConfig),t)},e.registerPlugin=function(t){this.plugins.push(t)},e.registerMenu=function(t,n){(function(r,o){var a=r.key,i=r.factory,s=r.config,l=Di(Di({},s),o||{});if(Fm[a]!=null)throw new Error("Duplicated key '"+a+"' in menu items");Fm[a]=i,function(u,c){c!=null&&(Nue[u]=c)}(a,l)})(t,n)},e.registerRenderElem=function(t){(function(n){var r=n.type,o=n.renderElem;sce[r||""]=o})(t)},e.registerRenderStyle=function(t){(function(n){pT.push(n)})(t)},e.registerElemToHtml=function(t){(function(n){var r=n.type,o=n.elemToHtml;Fue[r||""]=o})(t)},e.registerStyleToHtml=function(t){(function(n){iT.push(n)})(t)},e.registerPreParseHtml=function(t){(function(n){tce.push(n)})(t)},e.registerParseElemHtml=function(t){(function(n){var r=n.selector,o=n.parseElemHtml;K8[r]=o})(t)},e.registerParseStyleHtml=function(t){(function(n){bI.push(n)})(t)},e.registerModule=function(t){uf(t)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */function uf(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,o=e.elemsToHtml,a=e.styleToHtml,i=e.preParseHtml,s=e.parseElemsHtml,l=e.parseStyleHtml,u=e.editorPlugin;t&&t.forEach(function(c){return Jr.registerMenu(c)}),n&&n.forEach(function(c){return Jr.registerRenderElem(c)}),r&&Jr.registerRenderStyle(r),o&&o.forEach(function(c){return Jr.registerElemToHtml(c)}),a&&Jr.registerStyleToHtml(a),i&&i.forEach(function(c){return Jr.registerPreParseHtml(c)}),s&&s.forEach(function(c){return Jr.registerParseElemHtml(c)}),l&&Jr.registerParseStyleHtml(l),u&&Jr.registerPlugin(u)}K2t.forEach(function(e){return uf(e)}),uf(Syt),uf(Ybt),uf(owt),uf(Y5t),uf($Ct);var f0e='<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>',p0e={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"]}},zCt={hoverbarKeys:Or(Or({},p0e),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};Jr.setEditorConfig(Or(Or({},zCt),{decorate:d0e}));var jCt={hoverbarKeys:p0e};Jr.setSimpleEditorConfig(Or(Or({},jCt),{decorate:d0e}));var HCt={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:ft("editor.more"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:ft("editor.justify"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:ft("editor.indent"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:ft("editor.image"),iconSvg:f0e,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:ft("editor.video"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"]};Jr.setToolbarConfig(HCt);var UCt={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:ft("editor.image"),iconSvg:f0e,menuKeys:["insertImage","uploadImage"]},"inse