数通互联化工云平台
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.

441 lines
5.0 MiB

4 months ago
var nJe=Object.defineProperty;var rJe=(e,t,n)=>t in e?nJe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Kce=(e,t,n)=>(rJe(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(a){if(a.ep)return;a.ep=!0;const o=n(a);fetch(a.href,o)}})();/**
* @vue/shared v3.4.32
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**//*! #__NO_SIDE_EFFECTS__ */function $ee(e,t){const n=new Set(e.split(","));return t?r=>n.has(r.toLowerCase()):r=>n.has(r)}const to={},Xg=[],_r=()=>{},aJe=()=>!1,UO=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ete=e=>e.startsWith("onUpdate:"),Ti=Object.assign,tte=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},oJe=Object.prototype.hasOwnProperty,jn=(e,t)=>oJe.call(e,t),Ct=Array.isArray,qg=e=>Qm(e)==="[object Map]",Nm=e=>Qm(e)==="[object Set]",O4=e=>Qm(e)==="[object Date]",iJe=e=>Qm(e)==="[object RegExp]",Xt=e=>typeof e=="function",en=e=>typeof e=="string",Tf=e=>typeof e=="symbol",Bn=e=>e!==null&&typeof e=="object",iw=e=>(Bn(e)||Xt(e))&&Xt(e.then)&&Xt(e.catch),wBe=Object.prototype.toString,Qm=e=>wBe.call(e),XT=e=>Qm(e).slice(8,-1),PD=e=>Qm(e)==="[object Object]",nte=e=>en(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,N7=$ee(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),jO=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},sJe=/-(\w)/g,_u=jO(e=>e.replace(sJe,(t,n)=>n?n.toUpperCase():"")),lJe=/\B([A-Z])/g,v1=jO(e=>e.replace(lJe,"-$1").toLowerCase()),yC=jO(e=>e.charAt(0).toUpperCase()+e.slice(1)),Q7=jO(e=>e?`on${yC(e)}`:""),Jh=(e,t)=>!Object.is(e,t),Yg=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},_Be=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},RD=e=>{const t=parseFloat(e);return isNaN(t)?e:t},uJe=e=>{const t=en(e)?Number(e):NaN;return isNaN(t)?e:t};let Gce;const CBe=()=>Gce||(Gce=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ut(e){if(Ct(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],a=en(r)?hJe(r):ut(r);if(a)for(const o in a)t[o]=a[o]}return t}else if(en(e)||Bn(e))return e}const cJe=/;(?![^(]*\))/g,fJe=/:([^]+)/,dJe=/\/\*[^]*?\*\//g;function hJe(e){const t={};return e.replace(dJe,"").split(cJe).forEach(n=>{if(n){const r=n.split(fJe);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function re(e){let t="";if(en(e))t=e;else if(Ct(e))for(let n=0;n<e.length;n++){const r=re(e[n]);r&&(t+=r+" ")}else if(Bn(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function t0(e){if(!e)return null;let{class:t,style:n}=e;return t&&!en(t)&&(e.class=re(t)),n&&(e.style=ut(n)),e}const pJe="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",AJe=$ee(pJe);function SBe(e){return!!e||e===""}function vJe(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=F4(e[r],t[r]);return n}function F4(e,t){if(e===t)return!0;let n=O4(e),r=O4(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Tf(e),r=Tf(t),n||r)return e===t;if(n=Ct(e),r=Ct(t),n||r)return n&&r?vJe(e,t):!1;if(n=Bn(e),r=Bn(t),n||r){if(!n||!r)return!1;const a=Object.keys(e).length,o=Object.keys(t).length;if(a!==o)return!1;for(const i in e){const s=e.hasOwnProperty(i),l=t.hasOwnProperty(i);if(s&&!l||!s&&l||!F4(e[i],t[i]))return!1}}return String(e)===String(t)}function rte(e,t){return e.findIndex(n=>F4(n,t))}const BBe=e=>!!(e&&e.__v_isRef===!0),Ee=e=>en(e)?e:e==null?"":Ct(e)||Bn(e)&&(e.toString===wBe||!Xt(e.toString))?BBe(e)?Ee(e.value):JSON.stringify(e,EBe,2):String(e),EBe=(e,t)=>BBe(t)?EBe(e,t.value):qg(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,a],o)=>(n[AH(r,o)+" =>"]=a,n),{})}:Nm(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>AH(n))}:Tf(t)?AH(t):Bn(t)&&!Ct(t)&&!PD(t)?String(t):t,AH=(e,t="")=>{var n;return Tf(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
* @vue/reactivity v3.4.32
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let tu;class xBe{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=tu,!t&&tu&&(this.index=(tu.scopes||(tu.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=tu;try{return tu=this,t()}finally{tu=n}}}on(){tu=this}off(){tu=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const a=this.parent.scopes.pop();a&&a!==this&&(this.parent.scopes[this.index]=a,a.index=this.index)}this.parent=void 0,this._active=!1}}}function KO(e){return new xBe(e)}function gJe(e,t=tu){t&&t.active&&t.effects.push(e)}function GO(){return tu}function WO(e){tu&&tu.cleanups.push(e)}let jv;class ate{constructor(t,n,r,a){this.fn=t,this.trigger=n,this.scheduler=r,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,gJe(this,a)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,Lp();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(mJe(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Op()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Ah,n=jv;try{return Ah=!0,jv=this,this._runnings++,Wce(this),this.fn()}finally{Xce(this),this._runnings--,jv=n,Ah=t}}stop(){this.active&&(Wce(this),Xce(this),this.onStop&&this.onStop(),this.active=!1)}}function mJe(e){return e.value}function Wce(e){e._trackId++,e._depsLength=0}function Xce(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)TBe(e.deps[t],e);e.deps.length=e._depsLength}}function TBe(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let Ah=!0,rW=0;const kBe=[];function Lp(){kBe.push(Ah),Ah=!1}function Op(){const e=kBe.pop();Ah=e===void 0?!0:e}function ote(){rW++}function ite(){for(rW--;!rW&&aW.length;)aW.shift()()}function DBe(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const r=e.deps[e._depsLength];r!==t?(r&&TBe(r,e),e.deps[e._depsLength++]=t):e._depsLength++}}const aW=[];function IBe(e,t,n){ote();for(const r of e.keys()){let a;r._dirtyLevel<t&&(a??(a=e.get(r)===r._trackId))&&(r._shouldSchedule||(r._shouldSchedule=r._dirtyLevel===0),r._dirtyLevel=t),r._shouldSchedule&&(a??(a=e.get(r)===r._trackId))&&(r.trigger(),(!r._runnings||r.allowRecurse)&&r._dirtyLevel!==2&&(r._shouldSchedule=!1,r.scheduler&&aW.push(r.scheduler)))}ite()}const MBe=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},HD=new WeakMap,Kv=Symbol(""),oW=Symbol("");function Hl(e,t,n){if(Ah&&jv){let r=HD.get(e);r||HD.set(e,r=new Map);let a=r.get(n);a||r.set(n,a=MBe(()=>r.delete(n))),DBe(jv,a)}}function zd(e,t,n,r,a,o){const i=HD.get(e);if(!i)return;let s=[];if(t==="clear")s=[...i.values()];else if(n==="length"&&Ct(e)){const l=Number(r);i.forEach((u,c)=>{(c==="length"||!Tf(c)&&c>=l)&&s.push(u)})}else switch(n!==void 0&&s.push(i.get(n)),t){case"add":Ct(e)?nte(n)&&s.push(i.get("length")):(s.push(i.get(Kv)),qg(e)&&s.push(i.get(oW)));break;case"delete":Ct(e)||(s.push(i.get(Kv)),qg(e)&&s.push(i.get(oW)));break;case"set":qg(e)&&s.push(i.get(Kv));break}ote();for(const l of s)l&&IBe(l,4);ite()}function yJe(e,t){const n=HD.get(e);return n&&n.get(t)}const bJe=$ee("__proto__,__v_isRef,__isVue"),LBe=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Tf)),qce=wJe();function wJe(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=Ar(this);for(let o=0,i=this.length;o<i;o++)Hl(r,"get",o+"");const a=r[t](...n);return a===-1||a===!1?r[t](...n.map(Ar)):a}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Lp(),ote();const r=Ar(this)[t].apply(this,n);return ite(),Op(),r}}),e}function _Je(e){Tf(e)||(e=String(e));const t=Ar(this);re
* @vue/runtime-core v3.4.32
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function gh(e,t,n,r){try{return r?e(...r):e()}catch(a){qO(a,t,n)}}function Ac(e,t,n,r){if(Xt(e)){const a=gh(e,t,n,r);return a&&iw(a)&&a.catch(o=>{qO(o,t,n)}),a}if(Ct(e)){const a=[];for(let o=0;o<e.length;o++)a.push(Ac(e[o],t,n,r));return a}}function qO(e,t,n,r=!0){const a=t?t.vnode:null;if(t){let o=t.parent;const i=t.proxy,s=`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const u=o.ec;if(u){for(let c=0;c<u.length;c++)if(u[c](e,i,s)===!1)return}o=o.parent}const l=t.appContext.config.errorHandler;if(l){Lp(),gh(l,null,10,[e,i,s]),Op();return}}jJe(e,n,a,r)}function jJe(e,t,n,r=!0){console.error(e)}let lw=!1,iW=!1;const Ms=[];let af=0;const Jg=[];let T2=null,lv=0;const KBe=Promise.resolve();let hte=null;function ht(e){const t=hte||KBe;return e?t.then(this?e.bind(this):e):t}function KJe(e){let t=af+1,n=Ms.length;for(;t<n;){const r=t+n>>>1,a=Ms[r],o=uw(a);o<e||o===e&&a.pre?t=r+1:n=r}return t}function pte(e){(!Ms.length||!Ms.includes(e,lw&&e.allowRecurse?af+1:af))&&(e.id==null?Ms.push(e):Ms.splice(KJe(e.id),0,e),GBe())}function GBe(){!lw&&!iW&&(iW=!0,hte=KBe.then(XBe))}function GJe(e){const t=Ms.indexOf(e);t>af&&Ms.splice(t,1)}function WJe(e){Ct(e)?Jg.push(...e):(!T2||!T2.includes(e,e.allowRecurse?lv+1:lv))&&Jg.push(e),GBe()}function e0e(e,t,n=lw?af+1:0){for(;n<Ms.length;n++){const r=Ms[n];if(r&&r.pre){if(e&&r.id!==e.uid)continue;Ms.splice(n,1),n--,r()}}}function WBe(e){if(Jg.length){const t=[...new Set(Jg)].sort((n,r)=>uw(n)-uw(r));if(Jg.length=0,T2){T2.push(...t);return}for(T2=t,lv=0;lv<T2.length;lv++){const n=T2[lv];n.active!==!1&&n()}T2=null,lv=0}}const uw=e=>e.id==null?1/0:e.id,XJe=(e,t)=>{const n=uw(e)-uw(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function XBe(e){iW=!1,lw=!0,Ms.sort(XJe);const t=_r;try{for(af=0;af<Ms.length;af++){const n=Ms[af];n&&n.active!==!1&&gh(n,n.i,n.i?15:14)}}finally{af=0,Ms.length=0,WBe(),lw=!1,hte=null,(Ms.length||Jg.length)&&XBe()}}let bi=null,YO=null;function VD(e){const t=bi;return bi=e,YO=e&&e.type.__scopeId||null,t}function qf(e){YO=e}function Yf(){YO=null}function X(e,t=bi,n){if(!t||e._n)return e;const r=(...a)=>{r._d&&p0e(-1);const o=VD(t);let i;try{i=e(...a)}finally{VD(o),r._d&&p0e(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function xt(e,t){if(bi===null)return e;const n=rF(bi),r=e.dirs||(e.dirs=[]);for(let a=0;a<t.length;a++){let[o,i,s,l=to]=t[a];o&&(Xt(o)&&(o={mounted:o,updated:o}),o.deep&&R2(i),r.push({dir:o,instance:n,value:i,oldValue:void 0,arg:s,modifiers:l}))}return e}function nA(e,t,n,r){const a=e.dirs,o=t&&t.dirs;for(let i=0;i<a.length;i++){const s=a[i];o&&(s.oldValue=o[i].value);let l=s.dir[r];l&&(Lp(),Ac(l,n,8,[e.el,s,e,t]),Op())}}const k2=Symbol("_leaveCb"),BB=Symbol("_enterCb");function qBe(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Tt(()=>{e.isMounted=!0}),Gr(()=>{e.isUnmounting=!0}),e}const Mu=[Function,Array],YBe={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Mu,onEnter:Mu,onAfterEnter:Mu,onEnterCancelled:Mu,onBeforeLeave:Mu,onLeave:Mu,onAfterLeave:Mu,onLeaveCancelled:Mu,onBeforeAppear:Mu,onAppear:Mu,onAfterAppear:Mu,onAppearCancelled:Mu},JBe=e=>{const t=e.subTree;return t.component?JBe(t.component):t},qJe={name:"BaseTransition",props:YBe,setup(e,{slots:t}){const n=ln(),r=qBe();return()=>{const a=t.default&&Ate(t.default(),!0);if(!a||!a.length)return;let o=a[0];if(a.length>1){for(const d of a)if(d.type!==ns){o=d;break}}const i=Ar(e),{mode:s}=i;if(r.isLeaving)return vH(o);const l=t0e(o);if(!l)return vH(o);let u=cw(l,i,r,n,d=>u=d);R4(l,u);const c=n.subTree,f=c&&t0e(c);if(f&&f.type!==ns&&!H2(l,f)&&JBe(n).type!==ns){const d=cw(f,i,r,n);if(R4(f,d),s==="out-in"&&l.type!==ns)return r.isLeaving=!0,d.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},vH(o);s==="in-out"&&l.type!==ns&&(d.delayLeave=(h,A,p)=>{const g=ZBe(r,f);g[String(f.key)]=f,h[k2]=()=>{A(),h[k2]=void 0,delete u.delayedLeave},u.delayedLeave=p})}return o}}},YJe=qJe;function ZBe(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}functi
* @vue/runtime-dom v3.4.32
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const YZe="http://www.w3.org/2000/svg",JZe="http://www.w3.org/1998/Math/MathML",Cd=typeof document<"u"?document:null,m0e=Cd&&Cd.createElement("template"),ZZe={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 a=t==="svg"?Cd.createElementNS(YZe,e):t==="mathml"?Cd.createElementNS(JZe,e):n?Cd.createElement(e,{is:n}):Cd.createElement(e);return e==="select"&&r&&r.multiple!=null&&a.setAttribute("multiple",r.multiple),a},createText:e=>Cd.createTextNode(e),createComment:e=>Cd.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Cd.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,a,o){const i=n?n.previousSibling:t.lastChild;if(a&&(a===o||a.nextSibling))for(;t.insertBefore(a.cloneNode(!0),n),!(a===o||!(a=a.nextSibling)););else{m0e.innerHTML=r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e;const s=m0e.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]}},L1="transition",K5="animation",k8=Symbol("_vtc"),Po=(e,{slots:t})=>Ot(YJe,xEe(e),t);Po.displayName="Transition";const EEe={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},$Ze=Po.props=Ti({},YBe,EEe),aA=(e,t=[])=>{Ct(e)?e.forEach(n=>n(...t)):e&&e(...t)},y0e=e=>e?Ct(e)?e.some(t=>t.length>1):e.length>1:!1;function xEe(e){const t={};for(const D in e)D in EEe||(t[D]=e[D]);if(e.css===!1)return t;const{name:n="v",type:r,duration:a,enterFromClass:o=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:u=i,appearToClass:c=s,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,A=e$e(a),p=A&&A[0],g=A&&A[1],{onBeforeEnter:v,onEnter:m,onEnterCancelled:y,onLeave:b,onLeaveCancelled:_,onBeforeAppear:C=v,onAppear:S=m,onAppearCancelled:B=y}=t,x=(D,F,I)=>{m2(D,F?c:s),m2(D,F?u:i),I&&I()},E=(D,F)=>{D._isLeaving=!1,m2(D,f),m2(D,h),m2(D,d),F&&F()},k=D=>(F,I)=>{const P=D?S:m,R=()=>x(F,D,I);aA(P,[F,R]),b0e(()=>{m2(F,D?l:o),_d(F,D?c:s),y0e(P)||w0e(F,r,p,R)})};return Ti(t,{onBeforeEnter(D){aA(v,[D]),_d(D,o),_d(D,i)},onBeforeAppear(D){aA(C,[D]),_d(D,l),_d(D,u)},onEnter:k(!1),onAppear:k(!0),onLeave(D,F){D._isLeaving=!0;const I=()=>E(D,F);_d(D,f),_d(D,d),kEe(),b0e(()=>{D._isLeaving&&(m2(D,f),_d(D,h),y0e(b)||w0e(D,r,g,I))}),aA(b,[D,I])},onEnterCancelled(D){x(D,!1),aA(y,[D])},onAppearCancelled(D){x(D,!0),aA(B,[D])},onLeaveCancelled(D){E(D),aA(_,[D])}})}function e$e(e){if(e==null)return null;if(Bn(e))return[wH(e.enter),wH(e.leave)];{const t=wH(e);return[t,t]}}function wH(e){return uJe(e)}function _d(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[k8]||(e[k8]=new Set)).add(t)}function m2(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[k8];n&&(n.delete(t),n.size||(e[k8]=void 0))}function b0e(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let t$e=0;function w0e(e,t,n,r){const a=e._endId=++t$e,o=()=>{a===e._endId&&r()};if(n)return setTimeout(o,n);const{type:i,timeout:s,propCount:l}=TEe(e,t);if(!i)return r();const u=i+"end";let c=0;const f=()=>{e.removeEventListener(u,d),o()},d=h=>{h.target===e&&++c>=l&&f()};setTimeout(()=>{c<l&&f()},s+1),e.addEventListener(u,d)}function TEe(e,t){const n=window.getComputedStyle(e),r=A=>(n[A]||"").split(", "),a=r(`${L1}Delay`),o=r(`${L1}Duration`),i=_0e(a,o),s=r(`${K5}Delay`),l=r(`${K5}Duration`),u=_0e(s,l);let c=null,f=0,d=0;t===L1?i>0&&(c=L1,f=i,d=o.length):t===K5?u>0&&(c=K5,f=u,d=l.length):(f=Math.max(i,u),c=f>0?i>u?L1:K5:null,d=c?c===L1?o.length:l.length:0);const h=c===L1&&/\b(transform|all)(,|$)
(?:
(?:`+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(),o=new RegExp("(?:^"+n+"$)|(?:^"+a+"$)"),i=new RegExp("^"+n+"$"),s=new RegExp("^"+a+"$"),l=function(b){return b&&b.exact?o:new RegExp("(?:"+t(b)+n+t(b)+")|(?:"+t(b)+a+t(b)+")","g")};l.v4=function(y){return y&&y.exact?i:new RegExp(""+t(y)+n+t(y),"g")},l.v6=function(y){return y&&y.exact?s:new RegExp(""+t(y)+a+t(y),"g")};var u="(?:(?:[a-z]+:)?//)",c="(?:\\S+(?::\\S*)?@)?",f=l.v4().source,d=l.v6().source,h="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",A="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",p="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",g="(?::\\d{2,5})?",v='(?:[/?#][^\\s"]*)?',m="(?:"+u+"|www\\.)"+c+"(?:localhost|"+f+"|"+d+"|"+h+A+p+")"+g+v;return FB=new RegExp("(?:^"+m+"$)","i"),FB},rde={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},i7={integer:function(t){return i7.number(t)&&parseInt(t,10)===t},float:function(t){return i7.number(t)&&!i7.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"&&!i7.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(rde.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Nvt())},hex:function(t){return typeof t=="string"&&!!t.match(rde.hex)}},Qvt=function(t,n,r,a,o){if(t.required&&n===void 0){GTe(t,n,r,a,o);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;i.indexOf(s)>-1?i7[s](n)||a.push(fu(o.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&a.push(fu(o.messages.types[s],t.fullField,t.type))},Uvt=function(t,n,r,a,o){var i=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=n,f=null,d=typeof n=="number",h=typeof n=="string",A=Array.isArray(n);if(d?f="number":h?f="string":A&&(f="array"),!f)return!1;A&&(c=n.length),h&&(c=n.replace(u,"_").length),i?c!==t.len&&a.push(fu(o.messages[f].len,t.fullField,t.len)):s&&!l&&c<t.min?a.push(fu(o.messages[f].min,t.fullField,t.min)):l&&!s&&c>t.max?a.push(fu(o.messages[f].max,t.fullField,t.max)):s&&l&&(c<t.min||c>t.max)&&a.push(fu(o.messages[f].range,t.fullField,t.min,t.max))},q3="enum",jvt=function(t,n,r,a,o){t[q3]=Array.isArray(t[q3])?t[q3]:[],t[q3].indexOf(n)===-1&&a.push(fu(o.messages[q3],t.fullField,t[q3].join(", ")))},Kvt=function(t,n,r,a,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||a.push(fu(o.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(n)||a.push(fu(o.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Ur={required:GTe,whitespace:zvt,type:Qvt,range:Uvt,enum:jvt,pattern:Kvt},Gvt=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(ki(n,"string")&&!t.required)return r();Ur.required(t,n,a,i,o,"string"),ki(n,"string")||(Ur.type(t,n,a,i,o),Ur.range(t,n,a,i,o),Ur.pattern(t,n,a,i,o),t.whitespace===!0&&Ur.whitespace(t,n,a,i,o))}r(i)},Wvt=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(ki(n)&&!t.required)return r();Ur.required(t,n,a,i,o),n!==void 0&&Ur.type(t,n,a,i,o)}r(i)},Xvt=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),ki(n)&&!t.required)return r();Ur.required(t,n,a,i,o),n!==void 0&&(Ur.type(t,n,a,i,o),Ur.range(t,n,a,i,o))}r(i)},qvt=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){
height:0 !important;
visibility:hidden !important;
${WEe()?"":"overflow:hidden !important;"}
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
`,p4t=["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 A4t(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),a=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:p4t.map(i=>`${i}:${t.getPropertyValue(i)}`).join(";"),paddingSize:r,borderSize:a,boxSizing:n}}function ode(e,t=1,n){var r;zc||(zc=document.createElement("textarea"),document.body.appendChild(zc));const{paddingSize:a,borderSize:o,boxSizing:i,contextStyle:s}=A4t(e);zc.setAttribute("style",`${s};${h4t}`),zc.value=e.value||e.placeholder||"";let l=zc.scrollHeight;const u={};i==="border-box"?l=l+o:i==="content-box"&&(l=l-a),zc.value="";const c=zc.scrollHeight-a;if(Wt(t)){let f=c*t;i==="border-box"&&(f=f+a+o),l=Math.max(f,l),u.minHeight=`${f}px`}if(Wt(n)){let f=c*n;i==="border-box"&&(f=f+a+o),l=Math.min(f,l)}return u.height=`${l}px`,(r=zc.parentNode)==null||r.removeChild(zc),zc=void 0,u}const v4t=ft({id:{type:String,default:void 0},size:Ho,disabled:Boolean,modelValue:{type:Ie([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:Ie([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:Pr},prefixIcon:{type:Pr},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:Ie([Object,Array,String]),default:()=>Ea({})},autofocus:{type:Boolean,default:!1},...Ji(["ariaLabel"])}),g4t={[En]:e=>en(e),input:e=>en(e),change:e=>en(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},m4t=["role"],y4t=["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],b4t=["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],w4t=Z({name:"ElInput",inheritAttrs:!1}),_4t=Z({...w4t,props:v4t,emits:g4t,setup(e,{expose:t,emit:n}){const r=e,a=v3(),o=Li(),i=N(()=>{const fe={};return r.containerRole==="combobox"&&(fe["aria-haspopup"]=a["aria-haspopup"],fe["aria-owns"]=a["aria-owns"],fe["aria-expanded"]=a["aria-expanded"]),fe}),s=N(()=>[r.type==="textarea"?g.b():p.b(),p.m(h.value),p.is("disabled",A.value),p.is("exceed",$.value),{[p.b("group")]:o.prepend||o.append,[p.m("prefix")]:o.prefix||r.prefixIcon,[p.m("suffix")]:o.suffix||r.suffixIcon||r.clearable||r.showPassword,[p.bm("suffix","password-clear")]:U.value&&O.value,[p.b("hidden")]:r.type==="hidden"},a.class]),l=N(()=>[p.e("wrapper"),p.is("focus",E.value)]),u=$te({excludeKeys:N(()=>Object.keys(i.value))}),{form:c,formItem:f}=Qs(),{inputId:d}=k0(r,{formItemContext:f}),h=Eo(),A=hl(),p=ot("input"),g=ot("textarea"),v=Qr(),m=Qr(),y=G(!1),b=G(!1),_=G(!1),C=G(),S=Qr(r.inputStyle),B=N(()=>v.value||m.value),{wrapperRef:x,isFocused:E,handleFocus:k,handleBlur:D}=bF(B,{afterBlur(){var fe;r.validateEvent&&((fe=f==null?void 0:f.validate)==null||fe.call(f,"blur").catch(Se=>void 0))}}),F=N(()=>{var fe;return(fe=c==null?void 0:c.statusIcon)!=null?fe:!1}),I=N(()=>(f==null?void 0:f.validateState)||""),P=N((
* 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 rgt=function(e,t){if(e&&e.addEventListener){const n=function(r){const a=ngt(r);t&&Reflect.apply(t,this,[r,a])};e.addEventListener("wheel",n,{passive:!0})}},agt={beforeMount(e,t){rgt(e,t.value)}},ogt=ft({role:{type:String,required:!0},spinnerDate:{type:Ie(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:Ie(String),default:""},...gke}),igt=["onClick"],sgt=["onMouseenter"],lgt=Z({__name:"basic-time-spinner",props:ogt,emits:["change","select-range","set-option"],setup(e,{emit:t}){const n=e,r=ot("time"),{getHoursList:a,getMinutesList:o,getSecondsList:i}=wke(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let s=!1;const l=G(),u=G(),c=G(),f=G(),d={hours:u,minutes:c,seconds:f},h=N(()=>n.showSeconds?yde:yde.slice(0,2)),A=N(()=>{const{spinnerDate:M}=n,U=M.hour(),O=M.minute(),V=M.second();return{hours:U,minutes:O,seconds:V}}),p=N(()=>{const{hours:M,minutes:U}=w(A);return{hours:a(n.role),minutes:o(M,n.role),seconds:i(M,U,n.role)}}),g=N(()=>{const{hours:M,minutes:U,seconds:O}=w(A);return{hours:RH(M,23),minutes:RH(U,59),seconds:RH(O,59)}}),v=Vl(M=>{s=!1,b(M)},200),m=M=>{if(!!!n.amPmMode)return"";const O=n.amPmMode==="A";let V=M<12?" am":" pm";return O&&(V=V.toUpperCase()),V},y=M=>{let U;switch(M){case"hours":U=[0,2];break;case"minutes":U=[3,5];break;case"seconds":U=[6,8];break}const[O,V]=U;t("select-range",O,V),l.value=M},b=M=>{S(M,w(A)[M])},_=()=>{b("hours"),b("minutes"),b("seconds")},C=M=>M.querySelector(`.${r.namespace.value}-scrollbar__wrap`),S=(M,U)=>{if(n.arrowControl)return;const O=w(d[M]);O&&O.$el&&(C(O.$el).scrollTop=Math.max(0,U*B(M)))},B=M=>{const U=w(d[M]),O=U==null?void 0:U.$el.querySelector("li");return O&&Number.parseFloat(V2(O,"height"))||0},x=()=>{k(1)},E=()=>{k(-1)},k=M=>{l.value||y("hours");const U=l.value,O=w(A)[U],V=l.value==="hours"?24:60,W=D(U,O,M,V);F(U,W),S(U,W),ht(()=>y(U))},D=(M,U,O,V)=>{let W=(U+O+V)%V;const $=w(p)[M];for(;$[W]&&W!==U;)W=(W+O+V)%V;return W},F=(M,U)=>{if(w(p)[M][U])return;const{hours:W,minutes:$,seconds:ue}=w(A);let K;switch(M){case"hours":K=n.spinnerDate.hour(U).minute($).second(ue);break;case"minutes":K=n.spinnerDate.hour(W).minute(U).second(ue);break;case"seconds":K=n.spinnerDate.hour(W).minute($).second(U);break}t("change",K)},I=(M,{value:U,disabled:O})=>{O||(F(M,U),y(M),S(M,U))},P=M=>{s=!0,v(M);const U=Math.min(Math.round((C(w(d[M]).$el).scrollTop-(R(M)*.5-10)/B(M)+3)/B(M)),M==="hours"?23:59);F(M,U)},R=M=>w(d[M]).$el.offsetHeight,H=()=>{const M=U=>{const O=w(d[U]);O&&O.$el&&(C(O.$el).onscroll=()=>{P(U)})};M("hours"),M("minutes"),M("seconds")};Tt(()=>{ht(()=>{!n.arrowControl&&H(),_(),n.role==="start"&&y("hours")})});const Q=(M,U)=>{d[U].value=M};return t("set-option",[`${n.role}_scrollDown`,k]),t("set-option",[`${n.role}_emitSelectRange`,y]),Pe(()=>n.spinnerDate,()=>{s||_()}),(M,U)=>(T(),z("div",{class:re([w(r).b("spinner"),{"has-seconds":M.showSeconds}])},[M.arrowControl?ve("v-if",!0):(T(!0),z(Ke,{key:0},gt(w(h),O=>(T(),ae(w(D0),{key:O,ref_for:!0,ref:V=>Q(V,O),class:re(w(r).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":w(r).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:V=>y(O),onMousemove:V=>b(O)},{default:X(()=>[(T(!0),z(Ke,null,gt(w(p)[O],(V,W)=>(T(),z("li",{key:W,class:re([w(r).be("spinner","item"),w(r).is("active",W===w(A)[O]),w(r).is("disabled",V)]),onClick:$=>I(O,{value:W,disabled:V})},[O==="hours"?(T(),z(Ke,{key:0},[qe(Ee(("0"+(M.amPmMode?W%12||12:W)).slice(-2))+Ee(m(W)),1)],64)):(T(),z(Ke,{key:1},[qe(Ee(("0"+W).slice(-2)),1)],64))],10,igt))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),M.arrowControl?(T(!0),z(Ke,{key:1},gt(w(h),O=>(T(),z("div",{key:O,class:re([w(r).be("spinner","wrapper"),w(r).is("arrow")]),onMouseenter:V=>y(O)},[xt((T(),ae(w(kt),{class:re(["arrow-up",w(r).be("spinner","arrow")])},{default:X(()=>[q(w(dF))]),_:1},8,["class"])),[[w(tI),E]]),xt((T(),ae(w(kt),{class:re(["arrow-down",w(r).be("spinner","arrow")])},{default:X(()=>[q(w(Zf))]),_:1},8,["class"])),[[w(tI),x]]),j("ul",{class:re(w(r).be("spinner","list"))},[(T(!0),z(Ke,null,gt(w(
Add an empty element to avoid render label,
do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
`),Q8t]),_:1},8,["model-value","label","disabled","onUpdate:modelValue"])):e.isLeaf&&e.node.checked?(T(),ae(u,{key:2,class:re(e.ns.e("prefix"))},{default:X(()=>[q(l)]),_:1},8,["class"])):ve("v-if",!0),ve(" content "),q(c),ve(" postfix "),e.isLeaf?ve("v-if",!0):(T(),z(Ke,{key:3},[e.node.loading?(T(),ae(u,{key:0,class:re([e.ns.is("loading"),e.ns.e("postfix")])},{default:X(()=>[q(f)]),_:1},8,["class"])):(T(),ae(u,{key:1,class:re(["arrow-right",e.ns.e("postfix")])},{default:X(()=>[q(d)]),_:1},8,["class"]))],64))],42,N8t)}var j8t=pt(z8t,[["render",U8t],["__file","node.vue"]]);const K8t=Z({name:"ElCascaderMenu",components:{Loading:m0,ElIcon:kt,ElScrollbar:D0,ElCascaderNode:j8t},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=ln(),n=ot("cascader-menu"),{t:r}=qn(),a=fs();let o=null,i=null;const s=$e(Dne),l=G(null),u=N(()=>!e.nodes.length),c=N(()=>!s.initialLoaded),f=N(()=>`${a.value}-${e.index}`),d=g=>{o=g.target},h=g=>{if(!(!s.isHoverMenu||!o||!l.value))if(o.contains(g.target)){A();const v=t.vnode.el,{left:m}=v.getBoundingClientRect(),{offsetWidth:y,offsetHeight:b}=v,_=g.clientX-m,C=o.offsetTop,S=C+o.offsetHeight;l.value.innerHTML=`
<path style="pointer-events: auto;" fill="transparent" d="M${_} ${C} L${y} 0 V${C} Z" />
<path style="pointer-events: auto;" fill="transparent" d="M${_} ${S} L${y} ${b} V${S} Z" />
`}else i||(i=window.setTimeout(p,s.config.hoverThreshold))},A=()=>{i&&(clearTimeout(i),i=null)},p=()=>{l.value&&(l.value.innerHTML="",A())};return{ns:n,panel:s,hoverZone:l,isEmpty:u,isLoading:c,menuId:f,t:r,handleExpand:d,handleMouseMove:h,clearHoverZone:p}}});function G8t(e,t,n,r,a,o){const i=Nt("el-cascader-node"),s=Nt("loading"),l=Nt("el-icon"),u=Nt("el-scrollbar");return T(),ae(u,{key:e.menuId,tag:"ul",role:"menu",class:re(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:X(()=>{var c;return[(T(!0),z(Ke,null,gt(e.nodes,f=>(T(),ae(i,{key:f.uid,node:f,"menu-id":e.menuId,onExpand:e.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),e.isLoading?(T(),z("div",{key:0,class:re(e.ns.e("empty-text"))},[q(l,{size:"14",class:re(e.ns.is("loading"))},{default:X(()=>[q(s)]),_:1},8,["class"]),qe(" "+Ee(e.t("el.cascader.loading")),1)],2)):e.isEmpty?(T(),z("div",{key:1,class:re(e.ns.e("empty-text"))},Ee(e.t("el.cascader.noData")),3)):(c=e.panel)!=null&&c.isHoverMenu?(T(),z("svg",{key:2,ref:"hoverZone",class:re(e.ns.e("hover-zone"))},null,2)):ve("v-if",!0)]}),_:1},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var W8t=pt(K8t,[["render",G8t],["__file","menu.vue"]]);let X8t=0;const q8t=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};let $W=class eX{constructor(t,n,r,a=!1){this.data=t,this.config=n,this.parent=r,this.root=a,this.uid=X8t++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:o,label:i,children:s}=n,l=t[s],u=q8t(this);this.level=a?0:r?r.level+1:1,this.value=t[o],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 eX(c,n,this)),this.loaded=!n.lazy||this.isLeaf||!nc(l)}get isDisabled(){const{data:t,parent:n,config:r}=this,{disabled:a,checkStrictly:o}=r;return(Xt(a)?a(t,this):!!t[a])||!o&&(n==null?void 0:n.isDisabled)}get isLeaf(){const{data:t,config:n,childrenData:r,loaded:a}=this,{lazy:o,leaf:i}=n,s=Xt(i)?i(t,this):t[i];return fo(s)?o&&!a?!1:!(Array.isArray(r)&&r.length):!!s}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:r}=this,a=new eX(t,this.config,this);return Array.isArray(n)?n.push(t):this.childrenData=[t],r.push(a),a}calcText(t,n){const r=t?this.pathLabels.join(n):this.label;return this.text=r,r}broadcast(t,...n){const r=`onParent${of(t)}`;this.children.forEach(a=>{a&&(a.broadcast(t,...n),a[r]&&a[r](...n))})}emit(t,...n){const{parent:r}=this,a=`onChild${of(t)}`;r&&(r[a]&&r[a](...n),r.emit(t,...n))}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,n=t.filter(a=>!a.isDisabled),r=n.length?n.every(a=>a.checked):!1;this.setCheckState(r)}setCheckState(t){const n=this.children.length,r=this.children.reduce((a,o)=>{const i=o.checked?1:o.indeterminate?.5:0;return a+i},0);this.checked=this.loaded&&this.children.filter(a=>!a.isDisabled).every(a=>a.loaded&&a.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 tX=(e,t)=>e.reduce((n,r)=>(r.isLeaf?n.push(r):(!t&&n.push(r),n=n.concat(tX(r.children,t))),n),[]);class Lde{constructor(t,n){this.config=n;const r=(t||[]).map(a=>new $W(a,this.config));this.nodes=r,this.allNodes=tX(r,!1),this.leafNodes=tX(r,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,n){const r=n?n.appendChild(t):new $W(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(a=>Os(a.value,t)||Os(a.pathValues,t))||null}getSameNode(t){return t&&this.getFlattedNodes(!1).find(({value:r,level:a})=>Os(t.value,r)&&t.level===a)||nu
M 50 50
m 0 ${b?"":"-"}${y}
a ${y} ${y} 0 1 1 0 ${b?"-":""}${y*2}
a ${y} ${y} 0 1 1 0 ${b?"":"-"}${y*2}
`}),l=N(()=>2*Math.PI*i.value),u=N(()=>t.type==="dashboard"?.75:1),c=N(()=>`${-1*l.value*(1-u.value)/2}px`),f=N(()=>({strokeDasharray:`${l.value*u.value}px, ${l.value}px`,strokeDashoffset:c.value})),d=N(()=>({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"})),h=N(()=>{let y;return t.color?y=m(t.percentage):y=n[t.status]||n.default,y}),A=N(()=>t.status==="warning"?EC:t.type==="line"?t.status==="success"?hF:b1:t.status==="success"?Xm:zl),p=N(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),g=N(()=>t.format(t.percentage));function v(y){const b=100/y.length;return y.map((C,S)=>en(C)?{color:C,percentage:(S+1)*b}:C).sort((C,S)=>C.percentage-S.percentage)}const m=y=>{var b;const{color:_}=t;if(Xt(_))return _(y);if(en(_))return _;{const C=v(_);for(const S of C)if(S.percentage>y)return S.color;return(b=C[C.length-1])==null?void 0:b.color}};return(y,b)=>(T(),z("div",{class:re([w(r).b(),w(r).m(y.type),w(r).is(y.status),{[w(r).m("without-text")]:!y.showText,[w(r).m("text-inside")]:y.textInside}]),role:"progressbar","aria-valuenow":y.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[y.type==="line"?(T(),z("div",{key:0,class:re(w(r).b("bar"))},[j("div",{class:re(w(r).be("bar","outer")),style:ut({height:`${y.strokeWidth}px`})},[j("div",{class:re([w(r).be("bar","inner"),{[w(r).bem("bar","inner","indeterminate")]:y.indeterminate},{[w(r).bem("bar","inner","striped")]:y.striped},{[w(r).bem("bar","inner","striped-flow")]:y.stripedFlow}]),style:ut(w(a))},[(y.showText||y.$slots.default)&&y.textInside?(T(),z("div",{key:0,class:re(w(r).be("bar","innerText"))},[Ne(y.$slots,"default",{percentage:y.percentage},()=>[j("span",null,Ee(w(g)),1)])],2)):ve("v-if",!0)],6)],6)],2)):(T(),z("div",{key:1,class:re(w(r).b("circle")),style:ut({height:`${y.width}px`,width:`${y.width}px`})},[(T(),z("svg",L_t,[j("path",{class:re(w(r).be("circle","track")),d:w(s),stroke:`var(${w(r).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":y.strokeLinecap,"stroke-width":w(o),fill:"none",style:ut(w(f))},null,14,O_t),j("path",{class:re(w(r).be("circle","path")),d:w(s),stroke:w(h),fill:"none",opacity:y.percentage?1:0,"stroke-linecap":y.strokeLinecap,"stroke-width":w(o),style:ut(w(d))},null,14,F_t)]))],6)),(y.showText||y.$slots.default)&&!y.textInside?(T(),z("div",{key:2,class:re(w(r).e("text")),style:ut({fontSize:`${w(p)}px`})},[Ne(y.$slots,"default",{percentage:y.percentage},()=>[y.status?(T(),ae(w(kt),{key:1},{default:X(()=>[(T(),ae(vn(w(A))))]),_:1})):(T(),z("span",P_t,Ee(w(g)),1))])],6)):ve("v-if",!0)],10,M_t))}});var V_t=pt(H_t,[["__file","progress.vue"]]);const UDe=bn(V_t),z_t=ft({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:Ie([Array,Object]),default:()=>Ea(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:Ie([Array,Object]),default:()=>[o7,o7,o7]},voidIcon:{type:Pr,default:()=>eTe},disabledVoidIcon:{type:Pr,default:()=>o7},disabled:Boolean,allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:Ie(Array),default:()=>Ea(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:Ho,label:{type:String,default:void 0},clearable:{type:Boolean,default:!1},...Ji(["ariaLabel"])}),N_t={[oa]:e=>Wt(e),[En]:e=>Wt(e)},Q_t=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],U_t=["onMousemove","onClick"],j_t=Z({name:"ElRate"}),K_t=Z({...j_t,props:z_t,emits:N_t,setup(e,{expose:t,emit:n}){const r=e;function a(R,H){const Q=O=>Bn(O),M=Object.keys(H).map(O=>+O).filter(O=>{const V=H[O];return(Q(V)?V.excluded:!1)?R<O:R<=O}).sort((O,V)=>O-V),U=H[M[0]];return Q(U)&&U.value||U}const o=$e(_3,void 0),i=$e(Ff,void 0),s=Eo(),l=ot("rate"),{inputId:u,isLabeledByFormItem:c}=k0(r,{formItemContext:i}),f=G(r.modelValue),d
* pinia v2.1.7
* (c) 2023 Eduardo San Martin Morote
* @license MIT
*/let uMe;const VF=e=>uMe=e,cMe=Symbol();function DX(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var nb;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(nb||(nb={}));function gIt(){const e=KO(!0),t=e.run(()=>G({}));let n=[],r=[];const a=fi({install(o){VF(a),a._a=o,o.provide(cMe,a),o.config.globalProperties.$pinia=a,r.forEach(i=>n.push(i)),r=[]},use(o){return!this._a&&!I$e?r.push(o):n.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return a}const fMe=()=>{};function _1e(e,t,n,r=fMe){e.push(t);const a=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),r())};return!n&&GO()&&WO(a),a}function e6(e,...t){e.slice().forEach(n=>{n(...t)})}const mIt=e=>e();function IX(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],a=e[n];DX(a)&&DX(r)&&e.hasOwnProperty(n)&&!Dt(r)&&!vh(r)?e[n]=IX(a,r):e[n]=r}return e}const yIt=Symbol();function bIt(e){return!DX(e)||!e.hasOwnProperty(yIt)}const{assign:_2}=Object;function wIt(e){return!!(Dt(e)&&e.effect)}function _It(e,t,n,r){const{state:a,actions:o,getters:i}=t,s=n.state.value[e];let l;function u(){s||(n.state.value[e]=a?a():{});const c=Bo(n.state.value[e]);return _2(c,o,Object.keys(i||{}).reduce((f,d)=>(f[d]=fi(N(()=>{VF(n);const h=n._s.get(e);return i[d].call(h,h)})),f),{}))}return l=dMe(e,u,t,n,r,!0),l}function dMe(e,t,n={},r,a,o){let i;const s=_2({actions:{}},n),l={deep:!0};let u,c,f=[],d=[],h;const A=r.state.value[e];!o&&!A&&(r.state.value[e]={}),G({});let p;function g(B){let x;u=c=!1,typeof B=="function"?(B(r.state.value[e]),x={type:nb.patchFunction,storeId:e,events:h}):(IX(r.state.value[e],B),x={type:nb.patchObject,payload:B,storeId:e,events:h});const E=p=Symbol();ht().then(()=>{p===E&&(u=!0)}),c=!0,e6(f,x,r.state.value[e])}const v=o?function(){const{state:x}=n,E=x?x():{};this.$patch(k=>{_2(k,E)})}:fMe;function m(){i.stop(),f=[],d=[],r._s.delete(e)}function y(B,x){return function(){VF(r);const E=Array.from(arguments),k=[],D=[];function F(R){k.push(R)}function I(R){D.push(R)}e6(d,{args:E,name:B,store:_,after:F,onError:I});let P;try{P=x.apply(this&&this.$id===e?this:_,E)}catch(R){throw e6(D,R),R}return P instanceof Promise?P.then(R=>(e6(k,R),R)).catch(R=>(e6(D,R),Promise.reject(R))):(e6(k,P),P)}}const b={_p:r,$id:e,$onAction:_1e.bind(null,d),$patch:g,$reset:v,$subscribe(B,x={}){const E=_1e(f,B,x.detached,()=>k()),k=i.run(()=>Pe(()=>r.state.value[e],D=>{(x.flush==="sync"?c:u)&&B({storeId:e,type:nb.direct,events:h},D)},_2({},l,x)));return E},$dispose:m},_=qt(b);r._s.set(e,_);const S=(r._a&&r._a.runWithContext||mIt)(()=>r._e.run(()=>(i=KO()).run(t)));for(const B in S){const x=S[B];if(Dt(x)&&!wIt(x)||vh(x))o||(A&&bIt(x)&&(Dt(x)?x.value=A[B]:IX(x,A[B])),r.state.value[e][B]=x);else if(typeof x=="function"){const E=y(B,x);S[B]=E,s.actions[B]=x}}return _2(_,S),_2(Ar(_),S),Object.defineProperty(_,"$state",{get:()=>r.state.value[e],set:B=>{g(x=>{_2(x,B)})}}),r._p.forEach(B=>{_2(_,i.run(()=>B({store:_,app:r._a,pinia:r,options:s})))}),A&&o&&n.hydrate&&n.hydrate(_.$state,A),u=!0,c=!0,_}function jC(e,t,n){let r,a;const o=typeof t=="function";typeof e=="string"?(r=e,a=o?n:t):(a=e,r=e.id);function i(s,l){const u=pZe();return s=s||(u?$e(cMe,null):null),s&&VF(s),s=uMe,s._s.has(r)||(o?dMe(r,t,a,s):_It(r,a,s)),s._s.get(r)}return i.$id=r,i}function CWn(e){{e=Ar(e);const t={};for(const n in e){const r=e[n];(Dt(r)||vh(r))&&(t[n]=Sr(e,n))}return t}}function zF(e){return GO()?(WO(e),!0):!1}function hi(e){return typeof e=="function"?e():w(e)}const _re=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const CIt=e=>typeof e<"u",SIt=Object.prototype.toString,BIt=e=>SIt.call(e)==="[object Object]",Yv=()=>{},EIt=xIt();function xIt(){var e,t;return _re&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.naviga
* vue-router v4.4.0
* (c) 2024 Eduardo San Martin Morote
* @license MIT
*/const Ag=typeof document<"u";function YIt(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const ga=Object.assign;function tV(e,t){const n={};for(const r in t){const a=t[r];n[r]=b0(a)?a.map(e):e(a)}return n}const rb=()=>{},b0=Array.isArray,_Me=/#/g,JIt=/&/g,ZIt=/\//g,$It=/=/g,eMt=/\?/g,CMe=/\+/g,tMt=/%5B/g,nMt=/%5D/g,SMe=/%5E/g,rMt=/%60/g,BMe=/%7B/g,aMt=/%7C/g,EMe=/%7D/g,oMt=/%20/g;function Sre(e){return encodeURI(""+e).replace(aMt,"|").replace(tMt,"[").replace(nMt,"]")}function iMt(e){return Sre(e).replace(BMe,"{").replace(EMe,"}").replace(SMe,"^")}function MX(e){return Sre(e).replace(CMe,"%2B").replace(oMt,"+").replace(_Me,"%23").replace(JIt,"%26").replace(rMt,"`").replace(BMe,"{").replace(EMe,"}").replace(SMe,"^")}function sMt(e){return MX(e).replace($It,"%3D")}function lMt(e){return Sre(e).replace(_Me,"%23").replace(eMt,"%3F")}function uMt(e){return e==null?"":lMt(e).replace(ZIt,"%2F")}function Ow(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const cMt=/\/$/,fMt=e=>e.replace(cMt,"");function nV(e,t,n="/"){let r,a={},o="",i="";const s=t.indexOf("#");let l=t.indexOf("?");return s<l&&s>=0&&(l=-1),l>-1&&(r=t.slice(0,l),o=t.slice(l+1,s>-1?s:t.length),a=e(o)),s>-1&&(r=r||t.slice(0,s),i=t.slice(s,t.length)),r=AMt(r??t,n),{fullPath:r+(o&&"?")+o+i,path:r,query:a,hash:Ow(i)}}function dMt(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function k1e(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function hMt(e,t,n){const r=t.matched.length-1,a=n.matched.length-1;return r>-1&&r===a&&W8(t.matched[r],n.matched[a])&&xMe(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function W8(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function xMe(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!pMt(e[n],t[n]))return!1;return!0}function pMt(e,t){return b0(e)?D1e(e,t):b0(t)?D1e(t,e):e===t}function D1e(e,t){return b0(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function AMt(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),a=r[r.length-1];(a===".."||a===".")&&r.push("");let o=n.length-1,i,s;for(i=0;i<r.length;i++)if(s=r[i],s!==".")if(s==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(i).join("/")}const F1={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Fw;(function(e){e.pop="pop",e.push="push"})(Fw||(Fw={}));var ab;(function(e){e.back="back",e.forward="forward",e.unknown=""})(ab||(ab={}));function vMt(e){if(!e)if(Ag){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),fMt(e)}const gMt=/^[^#]+#/;function mMt(e,t){return e.replace(gMt,"#")+t}function yMt(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 NF=()=>({left:window.scrollX,top:window.scrollY});function bMt(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),a=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!a)return;t=yMt(a,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 I1e(e,t){return(history.state?history.state.position-t:-1)+e}const LX=new Map;function wMt(e,t){LX.set(e,t)}function _Mt(e){const t=LX.get(e);return LX.delete(e),t}let CMt=()=>location.protocol+"//"+location.host;function TMe(e,t){const{pathname:n,search:r,hash:a}=t,o=e.indexOf("#");if(o>-1){let s=a.includes(e.slice(o))?e.slice(o).length:1,l=a.slice(s);return l[0]!=="/"&&(l="/"+l),k1e(l,"")}return k1e(n,e)+r+a}function SMt(e,t,n,r){let a=[],o=[],i=null;const s=({state:d})=>{const h=TMe(e,location),A=n.value,p=t.value;let g=0;if(d){if(n.value=h,t.value=d,i&&i===A){i=null;return}g=p?d.position-p.position:0}else r(h);a.forEach(v=>{v(n.
`).forEach(function(i){a=i.indexOf(":"),n=i.substring(0,a).trim().toLowerCase(),r=i.substring(a+1).trim(),!(!n||t[n]&&oOt[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Y1e=Symbol("internals");function ey(e){return e&&String(e).trim().toLowerCase()}function Ck(e){return e===!1||e==null?e:bt.isArray(e)?e.map(Ck):String(e)}function sOt(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 lOt=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function aV(e,t,n,r,a){if(bt.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!bt.isString(t)){if(bt.isString(r))return t.indexOf(r)!==-1;if(bt.isRegExp(r))return r.test(t)}}function uOt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function cOt(e,t){const n=bt.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(a,o,i){return this[r].call(this,t,a,o,i)},configurable:!0})})}class qF{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function o(s,l,u){const c=ey(l);if(!c)throw new Error("header name must be a non-empty string");const f=bt.findKey(a,c);(!f||a[f]===void 0||u===!0||u===void 0&&a[f]!==!1)&&(a[f||l]=Ck(s))}const i=(s,l)=>bt.forEach(s,(u,c)=>o(u,c,l));if(bt.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(bt.isString(t)&&(t=t.trim())&&!lOt(t))i(iOt(t),n);else if(bt.isObject(t)&&bt.isIterable(t)){let s={},l,u;for(const c of t){if(!bt.isArray(c))throw TypeError("Object iterator must return a key-value pair");s[u=c[0]]=(l=s[u])?bt.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}i(s,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=ey(t),t){const r=bt.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return sOt(a);if(bt.isFunction(n))return n.call(this,a,r);if(bt.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ey(t),t){const r=bt.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||aV(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function o(i){if(i=ey(i),i){const s=bt.findKey(r,i);s&&(!n||aV(r,r[s],s,n))&&(delete r[s],a=!0)}}return bt.isArray(t)?t.forEach(o):o(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const o=n[r];(!t||aV(this,this[o],o,t,!0))&&(delete this[o],a=!0)}return a}normalize(t){const n=this,r={};return bt.forEach(this,(a,o)=>{const i=bt.findKey(r,o);if(i){n[i]=Ck(a),delete n[o];return}const s=t?uOt(o):String(o).trim();s!==o&&delete n[o],n[s]=Ck(a),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return bt.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&bt.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(`
`)}getSetCookie(){return this.get("set-cookie")||[]}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(a=>r.set(a)),r}static accessor(t){const r=(this[Y1e]=this[Y1e]={accessors:{}}).accessors,a=this.prototype;function o(i){const s=ey(i);r[s]||(cOt(a,i),r[s]=!0)}return bt.isArray(t)?t.forEach(o):o(t),this}}qF.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);bt.reduceDescriptors(qF.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});bt.freezeMethods(qF);const u0=qF;function oV(e,t){const n=this||Dre,r=t||n,a=u0.from(r.headers);let o=r.data;return bt.forEach(e,function(s){o=s.call(n,o,a.normalize(),t?t.status:void 0)}),a.normalize(),o}function qMe(e){return!!(e&&e.__CANCEL__)}function a5(e,t,n){pr.call(this,e??"canceled",pr.ERR_CANCELED,t,n),this.name="CanceledError"}bt.inherits(a5,pr,{__CANCEL__:!0});function YMe(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new pr("Request failed with status code "+n.status,[pr.ERR_BAD_REQUEST,pr.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function fOt(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function dOt(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,o=0,i;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[o];i||(i=u),n[a]=l,r[a]=u;let f=o,d=0;for(;f!==a;)d+=n[f++],f=f%e;if(a=(a+1)%e,a===o&&(o=(o+1)%e),u-i<t)return;const h=c&&u-c;return h?Math.round(d*1e3/h):void 0}}function hOt(e,t){let n=0,r=1e3/t,a,o;const i=(u,c=Date.now())=>{n=c,a=null,o&&(clearTimeout(o),o=null),e.apply(null,u)};return[(...u)=>{const c=Date.now(),f=c-n;f>=r?i(u,c):(a=u,o||(o=setTimeout(()=>{o=null,i(a)},r-f)))},()=>a&&i(a)]}const dI=(e,t,n=3)=>{let r=0;const a=dOt(50,250);return hOt(o=>{const i=o.loaded,s=o.lengthComputable?o.total:void 0,l=i-r,u=a(l),c=i<=s;r=i;const f={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:o,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(f)},n)},J1e=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Z1e=e=>(...t)=>bt.asap(()=>e(...t)),pOt=Ls.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ls.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ls.origin),Ls.navigator&&/(msie|trident)/i.test(Ls.navigator.userAgent)):()=>!0,AOt=Ls.hasStandardBrowserEnv?{write(e,t,n,r,a,o){const i=[e+"="+encodeURIComponent(t)];bt.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),bt.isString(r)&&i.push("path="+r),bt.isString(a)&&i.push("domain="+a),o===!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 vOt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function gOt(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function JMe(e,t,n){let r=!vOt(t);return e&&(r||n==!1)?gOt(e,t):t}const $1e=e=>e instanceof u0?{...e}:e;function W4(e,t){t=t||{};const n={};function r(u,c,f,d){return bt.isPlainObject(u)&&bt.isPlainObject(c)?bt.merge.call({caseless:d},u,c):bt.isPlainObject(c)?bt.merge({},c):bt.isArray(c)?c.slice():c}function a(u,c,f,d){if(bt.isUndefined(c)){if(!bt.isUndefined(u))return r(void 0,u,f,d)}else return r(u,c,f,d)}function o(u,c){if(!bt.isUndefined(c))return r(void 0,c)}function i(u,c){if(bt.isUndefined(c)){if(!bt.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function s(u,c,f){if(f in t)return r(u,c);if(f in e)return r(void 0,u)}const l={url:o,method:o,data:o,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,beforeRedi
`+o.map(n2e).join(`
`):" "+n2e(o[0]):"as no adapter specified";throw new pr("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:VX};function iV(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new a5(null,e)}function r2e(e){return iV(e),e.headers=u0.from(e.headers),e.data=oV.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),tLe.getAdapter(e.adapter||Dre.adapter)(e).then(function(r){return iV(e),r.data=oV.call(e,e.transformResponse,r),r.headers=u0.from(r.headers),r},function(r){return qMe(r)||(iV(e),r&&r.response&&(r.response.data=oV.call(e,e.transformResponse,r.response),r.response.headers=u0.from(r.response.headers))),Promise.reject(r)})}const nLe="1.10.0",JF={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{JF[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const a2e={};JF.transitional=function(t,n,r){function a(o,i){return"[Axios v"+nLe+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,s)=>{if(t===!1)throw new pr(a(i," has been removed"+(n?" in "+n:"")),pr.ERR_DEPRECATED);return n&&!a2e[i]&&(a2e[i]=!0,console.warn(a(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,s):!0}};JF.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function IOt(e,t,n){if(typeof e!="object")throw new pr("options must be an object",pr.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const o=r[a],i=t[o];if(i){const s=e[o],l=s===void 0||i(s,o,e);if(l!==!0)throw new pr("option "+o+" must be "+l,pr.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new pr("Unknown option "+o,pr.ERR_BAD_OPTION)}}const Sk={assertOptions:IOt,validators:JF},P0=Sk.validators;class pI{constructor(t){this.defaults=t||{},this.interceptors={request:new q1e,response:new q1e}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const o=a.stack?a.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=W4(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:o}=n;r!==void 0&&Sk.assertOptions(r,{silentJSONParsing:P0.transitional(P0.boolean),forcedJSONParsing:P0.transitional(P0.boolean),clarifyTimeoutError:P0.transitional(P0.boolean)},!1),a!=null&&(bt.isFunction(a)?n.paramsSerializer={serialize:a}:Sk.assertOptions(a,{encode:P0.function,serialize:P0.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Sk.assertOptions(n,{baseUrl:P0.spelling("baseURL"),withXsrfToken:P0.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&bt.merge(o.common,o[n.method]);o&&bt.forEach(["delete","get","head","post","put","patch","common"],A=>{delete o[A]}),n.headers=u0.concat(i,o);const s=[];let l=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(l=l&&p.synchronous,s.unshift(p.fulfilled,p.rejected))});const u=[];this.interceptors.response.forEach(function(p){u.push(p.fulfilled,p.rejected)});let c,f=0,d;if(!l){const A=[r2e.bind(this),void 0];for(A.unshift.apply(A,s),A.push.apply(A,u),d=A.length,c=Promise.resolve(n);f<d;)c=c.then(A[f++],A[f++]);return c}d=s.length;let h=n;for(f=0;f<d;){const A=s[f++],p=s[f++];try{h=A(h)}catch(g){p.call(this,g);break}}try{c=r2e.call(this,h)}catch(A){return Promise.reject(A)}for(f=0,d=u.length;f<d;)c=c.then(u[f++],u[f++]);return c}getUri(t){t=W4(this.defaults,t);const n=JMe(t.baseURL,t.url,t.allowAbsoluteUrls);return GMe(n,t.params,t.paramsSerializer)}}bt.forEach(["delete","get","head","options"],function(t){pI.prototype[t]=function(n,r){return this.request(W4(r||{},{method:t,url:n,data:(r||{}).data}))}});bt.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,s){return this.request(W4(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}pI.prototype[t]=n(),pI.prototype[t+"Form"]=n(!0)});const Bk=pI;class Ire{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(a=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](a);r._listeners=null}),this.promise.then=a=>{let o;const i=new Promise(s=>{r.subscribe(s),o=s}).then(a);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,s){r.reason||(r.reason=new a5(o,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 Ire(function(a){t=a}),cancel:t}}}const MOt=Ire;function LOt(e){return function(n){return e.apply(null,n)}}function OOt(e){return bt.isObject(e)&&e.isAxiosError===!0}const zX={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,TooManyRequ
* @license MIT */(function(e,t){(function(n,r){e.exports=r()})(Tl,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(A){var p,g;for(p in A)g=A[p],g!==void 0&&A.hasOwnProperty(p)&&(r[p]=g);return this},n.status=null,n.set=function(A){var p=n.isStarted();A=a(A,r.minimum,1),n.status=A===1?null:A;var g=n.render(!p),v=g.querySelector(r.barSelector),m=r.speed,y=r.easing;return g.offsetWidth,s(function(b){r.positionUsing===""&&(r.positionUsing=n.getPositioningCSS()),l(v,i(A,m,y)),A===1?(l(g,{transition:"none",opacity:1}),g.offsetWidth,setTimeout(function(){l(g,{transition:"all "+m+"ms linear",opacity:0}),setTimeout(function(){n.remove(),b()},m)},m)):setTimeout(b,m)}),this},n.isStarted=function(){return typeof n.status=="number"},n.start=function(){n.status||n.set(0);var A=function(){setTimeout(function(){n.status&&(n.trickle(),A())},r.trickleSpeed)};return r.trickle&&A(),this},n.done=function(A){return!A&&!n.status?this:n.inc(.3+.5*Math.random()).set(1)},n.inc=function(A){var p=n.status;return p?(typeof A!="number"&&(A=(1-p)*a(Math.random()*p,.1,.95)),p=a(p+A,0,.994),n.set(p)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},function(){var A=0,p=0;n.promise=function(g){return!g||g.state()==="resolved"?this:(p===0&&n.start(),A++,p++,g.always(function(){p--,p===0?(A=0,n.done()):n.set((A-p)/A)}),this)}}(),n.render=function(A){if(n.isRendered())return document.getElementById("nprogress");c(document.documentElement,"nprogress-busy");var p=document.createElement("div");p.id="nprogress",p.innerHTML=r.template;var g=p.querySelector(r.barSelector),v=A?"-100":o(n.status||0),m=document.querySelector(r.parent),y;return l(g,{transition:"all 0 linear",transform:"translate3d("+v+"%,0,0)"}),r.showSpinner||(y=p.querySelector(r.spinnerSelector),y&&h(y)),m!=document.body&&c(m,"nprogress-custom-parent"),m.appendChild(p),p},n.remove=function(){f(document.documentElement,"nprogress-busy"),f(document.querySelector(r.parent),"nprogress-custom-parent");var A=document.getElementById("nprogress");A&&h(A)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var A=document.body.style,p="WebkitTransform"in A?"Webkit":"MozTransform"in A?"Moz":"msTransform"in A?"ms":"OTransform"in A?"O":"";return p+"Perspective"in A?"translate3d":p+"Transform"in A?"translate":"margin"};function a(A,p,g){return A<p?p:A>g?g:A}function o(A){return(-1+A)*100}function i(A,p,g){var v;return r.positionUsing==="translate3d"?v={transform:"translate3d("+o(A)+"%,0,0)"}:r.positionUsing==="translate"?v={transform:"translate("+o(A)+"%,0)"}:v={"margin-left":o(A)+"%"},v.transition="all "+p+"ms "+g,v}var s=function(){var A=[];function p(){var g=A.shift();g&&g(p)}return function(g){A.push(g),A.length==1&&p()}}(),l=function(){var A=["Webkit","O","Moz","ms"],p={};function g(b){return b.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(_,C){return C.toUpperCase()})}function v(b){var _=document.body.style;if(b in _)return b;for(var C=A.length,S=b.charAt(0).toUpperCase()+b.slice(1),B;C--;)if(B=A[C]+S,B in _)return B;return b}function m(b){return b=g(b),p[b]||(p[b]=v(b))}function y(b,_,C){_=m(_),b.style[_]=C}return function(b,_){var C=arguments,S,B;if(C.length==2)for(S in _)B=_[S],B!==void 0&&_.hasOwnProperty(S)&&y(b,S,B);else y(b,C[1],C[2])}}();function u(A,p){var g=typeof A=="string"?A:d(A);return g.indexOf(" "+p+" ")>=0}function c(A,p){var g=d(A),v=g+p;u(g,p)||(A.className=v.substring(1))}function f(A,p){var g=d(A),v;u(A,p)&&(v=g.replace(" "+p+" "," "),A.className=v.substring(1,v.length-1))}function d(A){return(" "+(A.className||"")+" ").replace(/\s+/gi," ")}function h(A){A&&A.parentNode&&A.parentNode.removeChild(A)}return n})})(iLe);var aFt=iLe.exports;const fv=Oc
* shared v9.2.2
* (c) 2022 kazuya kawaguchi
* Released under the MIT License.
*/const NX=typeof window<"u",lFt=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Np=e=>lFt?Symbol(e):e,uFt=(e,t,n)=>cFt({l:e,k:t,s:n}),cFt=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),mi=e=>typeof e=="number"&&isFinite(e),fFt=e=>Ore(e)==="[object Date]",lp=e=>Ore(e)==="[object RegExp]",$F=e=>lr(e)&&Object.keys(e).length===0;function dFt(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const ji=Object.assign;let i2e;const ob=()=>i2e||(i2e=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function s2e(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const hFt=Object.prototype.hasOwnProperty;function Lre(e,t){return hFt.call(e,t)}const za=Array.isArray,Lo=e=>typeof e=="function",dn=e=>typeof e=="string",Yr=e=>typeof e=="boolean",Na=e=>e!==null&&typeof e=="object",sLe=Object.prototype.toString,Ore=e=>sLe.call(e),lr=e=>Ore(e)==="[object Object]",pFt=e=>e==null?"":za(e)||lr(e)&&e.toString===sLe?JSON.stringify(e,null,2):String(e);/*!
* message-compiler v9.2.2
* (c) 2022 kazuya kawaguchi
* Released under the MIT License.
*/const ta={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,__EXTEND_POINT__:15};function eP(e,t,n={}){const{domain:r,messages:a,args:o}=n,i=e,s=new SyntaxError(String(i));return s.code=e,t&&(s.location=t),s.domain=r,s}function AFt(e){throw e}function vFt(e,t,n){return{line:e,column:t,offset:n}}function QX(e,t,n){const r={start:e,end:t};return n!=null&&(r.source=n),r}const fd=" ",gFt="\r",Js=`
`,mFt=String.fromCharCode(8232),yFt=String.fromCharCode(8233);function bFt(e){const t=e;let n=0,r=1,a=1,o=0;const i=S=>t[S]===gFt&&t[S+1]===Js,s=S=>t[S]===Js,l=S=>t[S]===yFt,u=S=>t[S]===mFt,c=S=>i(S)||s(S)||l(S)||u(S),f=()=>n,d=()=>r,h=()=>a,A=()=>o,p=S=>i(S)||l(S)||u(S)?Js:t[S],g=()=>p(n),v=()=>p(n+o);function m(){return o=0,c(n)&&(r++,a=0),i(n)&&n++,n++,a++,t[n]}function y(){return i(n+o)&&o++,o++,t[n+o]}function b(){n=0,r=1,a=1,o=0}function _(S=0){o=S}function C(){const S=n+o;for(;S!==n;)m();o=0}return{index:f,line:d,column:h,peekOffset:A,charAt:p,currentChar:g,currentPeek:v,next:m,peek:y,reset:b,resetPeek:_,skipToPeek:C}}const P1=void 0,l2e="'",wFt="tokenizer";function _Ft(e,t={}){const n=t.location!==!1,r=bFt(e),a=()=>r.index(),o=()=>vFt(r.line(),r.column(),r.index()),i=o(),s=a(),l={currentType:14,offset:s,startLoc:i,endLoc:i,lastType:14,lastOffset:s,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},u=()=>l,{onError:c}=t;function f(J,L,te,...de){const ee=u();if(L.column+=te,L.offset+=te,c){const se=QX(ee.startLoc,L),ge=eP(J,se,{domain:wFt,args:de});c(ge)}}function d(J,L,te){J.endLoc=o(),J.currentType=L;const de={type:L};return n&&(de.loc=QX(J.startLoc,J.endLoc)),te!=null&&(de.value=te),de}const h=J=>d(J,14);function A(J,L){return J.currentChar()===L?(J.next(),L):(f(ta.EXPECTED_TOKEN,o(),0,L),"")}function p(J){let L="";for(;J.currentPeek()===fd||J.currentPeek()===Js;)L+=J.currentPeek(),J.peek();return L}function g(J){const L=p(J);return J.skipToPeek(),L}function v(J){if(J===P1)return!1;const L=J.charCodeAt(0);return L>=97&&L<=122||L>=65&&L<=90||L===95}function m(J){if(J===P1)return!1;const L=J.charCodeAt(0);return L>=48&&L<=57}function y(J,L){const{currentType:te}=L;if(te!==2)return!1;p(J);const de=v(J.currentPeek());return J.resetPeek(),de}function b(J,L){const{currentType:te}=L;if(te!==2)return!1;p(J);const de=J.currentPeek()==="-"?J.peek():J.currentPeek(),ee=m(de);return J.resetPeek(),ee}function _(J,L){const{currentType:te}=L;if(te!==2)return!1;p(J);const de=J.currentPeek()===l2e;return J.resetPeek(),de}function C(J,L){const{currentType:te}=L;if(te!==8)return!1;p(J);const de=J.currentPeek()===".";return J.resetPeek(),de}function S(J,L){const{currentType:te}=L;if(te!==9)return!1;p(J);const de=v(J.currentPeek());return J.resetPeek(),de}function B(J,L){const{currentType:te}=L;if(!(te===8||te===12))return!1;p(J);const de=J.currentPeek()===":";return J.resetPeek(),de}function x(J,L){const{currentType:te}=L;if(te!==10)return!1;const de=()=>{const se=J.currentPeek();return se==="{"?v(J.peek()):se==="@"||se==="%"||se==="|"||se===":"||se==="."||se===fd||!se?!1:se===Js?(J.peek(),de()):v(se)},ee=de();return J.resetPeek(),ee}function E(J){p(J);const L=J.currentPeek()==="|";return J.resetPeek(),L}function k(J){const L=p(J),te=J.currentPeek()==="%"&&J.peek()==="{";return J.resetPeek(),{isModulo:te,hasSpace:L.length>0}}function D(J,L=!0){const te=(ee=!1,se="",ge=!1)=>{const Ce=J.currentPeek();return Ce==="{"?se==="%"?!1:ee:Ce==="@"||!Ce?se==="%"?!0:ee:Ce==="%"?(J.peek(),te(ee,"%",!0)):Ce==="|"?se==="%"||ge?!0:!(se===fd||se===Js):Ce===fd?(J.peek(),te(!0,fd,ge)):Ce===Js?(J.peek(),te(!0,Js,ge)):!0},de=te();return L&&J.resetPeek(),de}function F(J,L){const te=J.currentChar();return te===P1?P1:L(te)?(J.next(),te):null}function I(J){return F(J,te=>{const de=te.charCodeAt(0);return de>=97&&de<=122||de>=65&&de<=90||de>=48&&de<=57||de===95||de===36})}function P(J){return F(J,te=>{const de=te.charCodeAt(0);return de>=48&&de<=57})}function R(J){return F(J,te=>{const de=te.charCodeAt(0);return de>=48&&de<=57||de>=65&&de<=70||de>=97&&de<=102})}function H(J){let L="",te="";for(;L=P(J);)te+=L;return te}function Q(J){g(J);const L=J.currentChar();return L!=="%"&&f(ta.EXPECTED_TOKEN,o(),0,L),J.next(),"%"}function M(J){let L="";for(;;){const te=J.currentChar();if(te==="{"||te==="}"||te==="@"||te==="|"||!te)break;if(te==="%")if(D(J))L+=te,J.next();else break;else if(te===fd||te===Js)if(D(J))L+=te,J.next();else{if(E(J))break;L+=te,J.next()}else L+=te,J.next()}return L}function U(J){g(J);let L="",te="";for(;L=I(J);)te+=L;return J.currentC
`,i=t.needIndent?t.needIndent:n!=="arrow",s=e.helpers||[],l=kFt(e,{mode:n,filename:r,sourceMap:a,breakLineCode:o,needIndent:i});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(i),s.length>0&&(l.push(`const { ${s.map(f=>`${f}: _${f}`).join(", ")} } = ctx`),l.newline()),l.push("return "),Y8(l,e),l.deindent(i),l.push("}");const{code:u,map:c}=l.context();return{ast:e,code:u,map:c?c.toJSON():void 0}};function FFt(e,t={}){const n=ji({},t),a=EFt(n).parse(e);return TFt(a,n),OFt(a,n)}/*!
* devtools-if v9.2.2
* (c) 2022 kazuya kawaguchi
* Released under the MIT License.
*/const lLe={I18nInit:"i18n:init",FunctionTranslate:"function:translate"};/*!
* core-base v9.2.2
* (c) 2022 kazuya kawaguchi
* Released under the MIT License.
*/const Qp=[];Qp[0]={w:[0],i:[3,0],"[":[4],o:[7]};Qp[1]={w:[1],".":[2],"[":[4],o:[7]};Qp[2]={w:[2],i:[3,0],0:[3,0]};Qp[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};Qp[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};Qp[5]={"'":[4,0],o:8,l:[5,0]};Qp[6]={'"':[4,0],o:8,l:[6,0]};const PFt=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function RFt(e){return PFt.test(e)}function HFt(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function VFt(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function zFt(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:RFt(t)?HFt(t):"*"+t}function NFt(e){const t=[];let n=-1,r=0,a=0,o,i,s,l,u,c,f;const d=[];d[0]=()=>{i===void 0?i=s:i+=s},d[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},d[2]=()=>{d[0](),a++},d[3]=()=>{if(a>0)a--,r=4,d[0]();else{if(a=0,i===void 0||(i=zFt(i),i===!1))return!1;d[1]()}};function h(){const A=e[n+1];if(r===5&&A==="'"||r===6&&A==='"')return n++,s="\\"+A,d[0](),!0}for(;r!==null;)if(n++,o=e[n],!(o==="\\"&&h())){if(l=VFt(o),f=Qp[r],u=f[l]||f.l||8,u===8||(r=u[0],u[1]!==void 0&&(c=d[u[1]],c&&(s=o,c()===!1))))return;if(r===7)return t}}const c2e=new Map;function QFt(e,t){return Na(e)?e[t]:null}function UFt(e,t){if(!Na(e))return null;let n=c2e.get(t);if(n||(n=NFt(t),n&&c2e.set(t,n)),!n)return null;const r=n.length;let a=e,o=0;for(;o<r;){const i=a[n[o]];if(i===void 0)return null;a=i,o++}return a}const jFt=e=>e,KFt=e=>"",GFt="text",WFt=e=>e.length===0?"":e.join(""),XFt=pFt;function f2e(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function qFt(e){const t=mi(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(mi(e.named.count)||mi(e.named.n))?mi(e.named.count)?e.named.count:mi(e.named.n)?e.named.n:t:t}function YFt(e,t){t.count||(t.count=e),t.n||(t.n=e)}function JFt(e={}){const t=e.locale,n=qFt(e),r=Na(e.pluralRules)&&dn(t)&&Lo(e.pluralRules[t])?e.pluralRules[t]:f2e,a=Na(e.pluralRules)&&dn(t)&&Lo(e.pluralRules[t])?f2e:void 0,o=v=>v[r(n,v.length,a)],i=e.list||[],s=v=>i[v],l=e.named||{};mi(e.pluralIndex)&&YFt(n,l);const u=v=>l[v];function c(v){const m=Lo(e.messages)?e.messages(v):Na(e.messages)?e.messages[v]:!1;return m||(e.parent?e.parent.message(v):KFt)}const f=v=>e.modifiers?e.modifiers[v]:jFt,d=lr(e.processor)&&Lo(e.processor.normalize)?e.processor.normalize:WFt,h=lr(e.processor)&&Lo(e.processor.interpolate)?e.processor.interpolate:XFt,A=lr(e.processor)&&dn(e.processor.type)?e.processor.type:GFt,g={list:s,named:u,plural:o,linked:(v,...m)=>{const[y,b]=m;let _="text",C="";m.length===1?Na(y)?(C=y.modifier||C,_=y.type||_):dn(y)&&(C=y||C):m.length===2&&(dn(y)&&(C=y||C),dn(b)&&(_=b||_));let S=c(v)(g);return _==="vnode"&&za(S)&&C&&(S=S[0]),C?f(C)(S,_):S},message:c,type:A,interpolate:h,normalize:d};return g}let Vw=null;function ZFt(e){Vw=e}function $Ft(e,t,n){Vw&&Vw.emit(lLe.I18nInit,{timestamp:Date.now(),i18n:e,version:t,meta:n})}const ePt=tPt(lLe.FunctionTranslate);function tPt(e){return t=>Vw&&Vw.emit(e,t)}function nPt(e,t,n){return[...new Set([n,...za(t)?t:Na(t)?Object.keys(t):dn(t)?[t]:[n]])]}function uLe(e,t,n){const r=dn(n)?n:WC,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let o=a.__localeChainCache.get(r);if(!o){o=[];let i=[n];for(;za(i);)i=d2e(o,i,t);const s=za(t)||!lr(t)?t:t.default?t.default:null;i=dn(s)?[s]:s,za(i)&&d2e(o,i,!1),a.__localeChainCache.set(r,o)}return o}function d2e(e,t,n){let r=!0;for(let a=0;a<t.length&&Yr(r);a++){const o=t[a];dn(o)&&(r=rPt(e,t[a],n))}return r}function rPt(e,t,n){let r;const a=t.split("-");do{const o=a.join("-");r=aPt(e,o,n),a.splice(-1,1)}while(a.length&&r===!0);return r}function aPt(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const a=t.replace(/!/g,"");e.push(a),(za(n)||lr(n))&&n[a]&&(r=n[a])}return r}const oPt="9.2.2",tP=-1,WC="en-US",h2e="",p2e=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function iPt(){return{upper:(e,t)=>t==="tex
* vue-i18n v9.2.2
* (c) 2022 kazuya kawaguchi
* Released under the MIT License.
*/const yPt="9.2.2";function bPt(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(ob().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(ob().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(ob().__INTLIFY_PROD_DEVTOOLS__=!1)}let bLe=ta.__EXTEND_POINT__;const gl=()=>++bLe,ni={UNEXPECTED_RETURN_TYPE:bLe,INVALID_ARGUMENT:gl(),MUST_BE_CALL_SETUP_TOP:gl(),NOT_INSLALLED:gl(),NOT_AVAILABLE_IN_LEGACY_MODE:gl(),REQUIRED_VALUE:gl(),INVALID_VALUE:gl(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:gl(),NOT_INSLALLED_WITH_PROVIDE:gl(),UNEXPECTED_ERROR:gl(),NOT_COMPATIBLE_LEGACY_VUE_I18N:gl(),BRIDGE_SUPPORT_VUE_2_ONLY:gl(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:gl(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:gl(),__EXTEND_POINT__:gl()};function Ei(e,...t){return eP(e,null,void 0)}const GX=Np("__transrateVNode"),WX=Np("__datetimeParts"),XX=Np("__numberParts"),wLe=Np("__setPluralRules");Np("__intlifyMeta");const _Le=Np("__injectWithOption");function qX(e){if(!Na(e))return e;for(const t in e)if(Lre(e,t))if(!t.includes("."))Na(e[t])&&qX(e[t]);else{const n=t.split("."),r=n.length-1;let a=e;for(let o=0;o<r;o++)n[o]in a||(a[n[o]]={}),a=a[n[o]];a[n[r]]=e[t],delete e[t],Na(a[n[r]])&&qX(a[n[r]])}return e}function nP(e,t){const{messages:n,__i18n:r,messageResolver:a,flatJson:o}=t,i=lr(n)?n:za(r)?{}:{[e]:{}};if(za(r)&&r.forEach(s=>{if("locale"in s&&"resource"in s){const{locale:l,resource:u}=s;l?(i[l]=i[l]||{},ib(u,i[l])):ib(u,i)}else dn(s)&&ib(JSON.parse(s),i)}),a==null&&o)for(const s in i)Lre(i,s)&&qX(i[s]);return i}const XB=e=>!Na(e)||za(e);function ib(e,t){if(XB(e)||XB(t))throw Ei(ni.INVALID_VALUE);for(const n in e)Lre(e,n)&&(XB(e[n])||XB(t[n])?t[n]=e[n]:ib(e[n],t[n]))}function CLe(e){return e.type}function SLe(e,t,n){let r=Na(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=nP(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);a.length&&a.forEach(o=>{e.mergeLocaleMessage(o,r[o])});{if(Na(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(Na(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function B2e(e){return q(g3,null,e,0)}const E2e="__INTLIFY_META__";let x2e=0;function T2e(e){return(t,n,r,a)=>e(n,r,ln()||void 0,a)}const wPt=()=>{const e=ln();let t=null;return e&&(t=CLe(e)[E2e])?{[E2e]:t}:null};function Rre(e={},t){const{__root:n}=e,r=n===void 0;let a=Yr(e.inheritLocale)?e.inheritLocale:!0;const o=G(n&&a?n.locale.value:dn(e.locale)?e.locale:WC),i=G(n&&a?n.fallbackLocale.value:dn(e.fallbackLocale)||za(e.fallbackLocale)||lr(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o.value),s=G(nP(o.value,e)),l=G(lr(e.datetimeFormats)?e.datetimeFormats:{[o.value]:{}}),u=G(lr(e.numberFormats)?e.numberFormats:{[o.value]:{}});let c=n?n.missingWarn:Yr(e.missingWarn)||lp(e.missingWarn)?e.missingWarn:!0,f=n?n.fallbackWarn:Yr(e.fallbackWarn)||lp(e.fallbackWarn)?e.fallbackWarn:!0,d=n?n.fallbackRoot:Yr(e.fallbackRoot)?e.fallbackRoot:!0,h=!!e.fallbackFormat,A=Lo(e.missing)?e.missing:null,p=Lo(e.missing)?T2e(e.missing):null,g=Lo(e.postTranslation)?e.postTranslation:null,v=n?n.warnHtmlMessage:Yr(e.warnHtmlMessage)?e.warnHtmlMessage:!0,m=!!e.escapeParameter;const y=n?n.modifiers:lr(e.modifiers)?e.modifiers:{};let b=e.pluralRules||n&&n.pluralRules,_;_=(()=>{r&&v2e(null);const Y={version:yPt,locale:o.value,fallbackLocale:i.value,messages:s.value,modifiers:y,pluralRules:b,missing:p===null?void 0:p,missingWarn:c,fallbackWarn:f,fallbackFormat:h,unresolving:!0,postTranslation:g===null?void 0:g,warnHtmlMessage:v,escapeParameter:m,messageResolver:e.messageResolver,__meta:{framework:"vue"}};Y.datetimeFormats=l.value,Y.numberFormats=u.value,Y.__datetimeFormatters=lr(_)?_.__datetimeFormatters:void 0,Y.__numberFormatters=lr(_)?_.__numberFormatters:void 0;const ce=dPt(Y);return r&&v2e(ce),ce})(),ty(_,o.value,i.value);function S(){return[o.value,i.value,s.value,l.value,u.value]}const B=N({get:()=>o.value,set:Y=>{o.value=Y,_.locale=o.value}}),x=N({get:()
`);a!==-1?this.__character_count=r.length-a:this.__character_count+=r.length},e.prototype.pop=function(){var r=null;return this.is_empty()||(r=this.__items.pop(),this.__character_count-=r.length),r},e.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},e.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},e.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},e.prototype.toString=function(){var r="";return this.is_empty()?this.__parent.indent_empty_lines&&(r=this.__parent.get_indent_string(this.__indent_count)):(r=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),r+=this.__items.join("")),r};function t(r,a){this.__cache=[""],this.__indent_size=r.indent_size,this.__indent_string=r.indent_char,r.indent_with_tabs||(this.__indent_string=new Array(r.indent_size+1).join(r.indent_char)),a=a||"",r.indent_level>0&&(a=new Array(r.indent_level+1).join(this.__indent_string)),this.__base_string=a,this.__base_string_length=a.length}t.prototype.get_indent_size=function(r,a){var o=this.__base_string_length;return a=a||0,r<0&&(o=0),o+=r*this.__indent_size,o+=a,o},t.prototype.get_indent_string=function(r,a){var o=this.__base_string;return a=a||0,r<0&&(r=0,o=""),a+=r*this.__indent_size,this.__ensure_cache(a),o+=this.__cache[a],o},t.prototype.__ensure_cache=function(r){for(;r>=this.__cache.length;)this.__add_column()},t.prototype.__add_column=function(){var r=this.__cache.length,a=0,o="";this.__indent_size&&r>=this.__indent_size&&(a=Math.floor(r/this.__indent_size),r-=a*this.__indent_size,o=new Array(a+1).join(this.__indent_string)),r&&(o+=new Array(r+1).join(" ")),this.__cache.push(o)};function n(r,a){this.__indent_cache=new t(r,a),this.raw=!1,this._end_with_newline=r.end_with_newline,this.indent_size=r.indent_size,this.wrap_line_length=r.wrap_line_length,this.indent_empty_lines=r.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new e(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}return n.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},n.prototype.get_line_number=function(){return this.__lines.length},n.prototype.get_indent_string=function(r,a){return this.__indent_cache.get_indent_string(r,a)},n.prototype.get_indent_size=function(r,a){return this.__indent_cache.get_indent_size(r,a)},n.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},n.prototype.add_new_line=function(r){return this.is_empty()||!r&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},n.prototype.get_code=function(r){this.trim(!0);var a=this.current_line.pop();a&&(a[a.length-1]===`
`&&(a=a.replace(/\n+$/g,"")),this.current_line.push(a)),this._end_with_newline&&this.__add_outputline();var o=this.__lines.join(`
`);return r!==`
`&&(o=o.replace(/[\n]/g,r)),o},n.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},n.prototype.set_indent=function(r,a){return r=r||0,a=a||0,this.next_line.set_indent(r,a),this.__lines.length>1?(this.current_line.set_indent(r,a),!0):(this.current_line.set_indent(),!1)},n.prototype.add_raw_token=function(r){for(var a=0;a<r.newlines;a++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(r.whitespace_before),this.current_line.push(r.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},n.prototype.add_token=function(r){this.__add_space_before_token(),this.current_line.push(r),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},n.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},n.prototype.remove_indent=function(r){for(var a=this.__lines.length;r<a;)this.__lines[r]._remove_indent(),r++;this.current_line._remove_wrap_indent()},n.prototype.trim=function(r){for(r=r===void 0?!1:r,this.current_line.trim();r&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},n.prototype.just_added_newline=function(){return this.current_line.is_empty()},n.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},n.prototype.ensure_empty_line_above=function(r,a){for(var o=this.__lines.length-2;o>=0;){var i=this.__lines[o];if(i.is_empty())break;if(i.item(0).indexOf(r)!==0&&i.item(-1)!==a){this.__lines.splice(o+1,0,new e(this)),this.previous_line=this.__lines[this.__lines.length-2];break}o--}},uV.Output=n,uV}var cV={},R2e;function ILe(){if(R2e)return cV;R2e=1;function e(t,n,r,a){this.type=t,this.text=n,this.comments_before=null,this.newlines=r||0,this.whitespace_before=a||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}return cV.Token=e,cV}var fV={},H2e;function MLe(){return H2e||(H2e=1,function(e){var t="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",n="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",r="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e4
|`+e.newline.source),e.allLineBreaks=new RegExp(e.lineBreak.source,"g")}(fV)),fV}var dV={},ry={},V2e;function Qre(){if(V2e)return ry;V2e=1;function e(r,a){this.raw_options=t(r,a),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}e.prototype._get_array=function(r,a){var o=this.raw_options[r],i=a||[];return typeof o=="object"?o!==null&&typeof o.concat=="function"&&(i=o.concat()):typeof o=="string"&&(i=o.split(/[^a-zA-Z0-9_\/\-]+/)),i},e.prototype._get_boolean=function(r,a){var o=this.raw_options[r],i=o===void 0?!!a:!!o;return i},e.prototype._get_characters=function(r,a){var o=this.raw_options[r],i=a||"";return typeof o=="string"&&(i=o.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),i},e.prototype._get_number=function(r,a){var o=this.raw_options[r];a=parseInt(a,10),isNaN(a)&&(a=0);var i=parseInt(o,10);return isNaN(i)&&(i=a),i},e.prototype._get_selection=function(r,a,o){var i=this._get_selection_list(r,a,o);if(i.length!==1)throw new Error("Invalid Option Value: The option '"+r+`' can only be one of the following values:
`+a+`
You passed in: '`+this.raw_options[r]+"'");return i[0]},e.prototype._get_selection_list=function(r,a,o){if(!a||a.length===0)throw new Error("Selection list cannot be empty.");if(o=o||[a[0]],!this._is_valid_selection(o,a))throw new Error("Invalid Default Value!");var i=this._get_array(r,o);if(!this._is_valid_selection(i,a))throw new Error("Invalid Option Value: The option '"+r+`' can contain only the following values:
`+a+`
You passed in: '`+this.raw_options[r]+"'");return i},e.prototype._is_valid_selection=function(r,a){return r.length&&a.length&&!r.some(function(o){return a.indexOf(o)===-1})};function t(r,a){var o={};r=n(r);var i;for(i in r)i!==a&&(o[i]=r[i]);if(a&&r[a])for(i in r[a])o[i]=r[a][i];return o}function n(r){var a={},o;for(o in r){var i=o.replace(/-/g,"_");a[i]=r[o]}return a}return ry.Options=e,ry.normalizeOpts=n,ry.mergeOpts=t,ry}var z2e;function LLe(){if(z2e)return dV;z2e=1;var e=Qre().Options,t=["before-newline","after-newline","preserve-newline"];function n(r){e.call(this,r,"js");var a=this.raw_options.brace_style||null;a==="expand-strict"?this.raw_options.brace_style="expand":a==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var o=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var i=0;i<o.length;i++)o[i]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=o[i];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",t),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}return n.prototype=new e,dV.Options=n,dV}var t6={},hV={},N2e;function Ure(){if(N2e)return hV;N2e=1;var e=RegExp.prototype.hasOwnProperty("sticky");function t(n){this.__input=n||"",this.__input_length=this.__input.length,this.__position=0}return t.prototype.restart=function(){this.__position=0},t.prototype.back=function(){this.__position>0&&(this.__position-=1)},t.prototype.hasNext=function(){return this.__position<this.__input_length},t.prototype.next=function(){var n=null;return this.hasNext()&&(n=this.__input.charAt(this.__position),this.__position+=1),n},t.prototype.peek=function(n){var r=null;return n=n||0,n+=this.__position,n>=0&&n<this.__input_length&&(r=this.__input.charAt(n)),r},t.prototype.__match=function(n,r){n.lastIndex=r;var a=n.exec(this.__input);return a&&!(e&&n.sticky)&&a.index!==r&&(a=null),a},t.prototype.test=function(n,r){return r=r||0,r+=this.__position,r>=0&&r<this.__input_length?!!this.__match(n,r):!1},t.prototype.testChar=function(n,r){var a=this.peek(r);return n.lastIndex=0,a!==null&&n.test(a)},t.prototype.match=function(n){var r=this.__match(n,this.__position);return r?this.__position+=r[0].length:r=null,r},t.prototype.read=function(n,r,a){var o="",i;return n&&(i=this.match(n),i&&(o+=i[0])),r&&(i||!n)&&(o+=this.readUntil(r,a)),o},t.prototype.readUntil=function(n,r){var a="",o=this.__position;n.lastIndex=this.__position;var i=n.exec(this.__input);return i?(o=i.index,r&&(o+=i[0].length)):o=this.__input_length,a=this.__input.substring(this.__position,o),this.__position=o,a},t.prototype.readUntilAfter=function(n){return this.readUntil(n,!0)},t.prototype.get_regexp=function(n,r){var a=null,o="g";return r&&e&&(o="y"),typeof n=="string"&&n!==""?a=new RegExp(n,o):n&&(a=new RegExp(n.source,o)),a},t.prototype.get_literal_regexp=function(n){return RegExp(n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},t.prototype.peekUntilAfter=function(n){var r=this.__position,a=this.readUntilAfter(n);return this.__position=r,a},t.prototype.
`),!(C.type===l.DOT||C.type===l.RESERVED&&(C.text==="set"||C.text==="get"))&&m.test(S)?(S==="in"||S==="of")&&(C.type===l.WORD||C.type===l.STRING)?this._create_token(l.OPERATOR,S):this._create_token(l.RESERVED,S):this._create_token(l.WORD,S);if(S=this.__patterns.number.read(),S!=="")return this._create_token(l.WORD,S)},b.prototype._read_singles=function(C){var S=null;return C==="("||C==="["?S=this._create_token(l.START_EXPR,C):C===")"||C==="]"?S=this._create_token(l.END_EXPR,C):C==="{"?S=this._create_token(l.START_BLOCK,C):C==="}"?S=this._create_token(l.END_BLOCK,C):C===";"?S=this._create_token(l.SEMICOLON,C):C==="."&&d.test(this._input.peek(1))?S=this._create_token(l.DOT,C):C===","&&(S=this._create_token(l.COMMA,C)),S&&this._input.next(),S},b.prototype._read_pair=function(C,S){var B=null;return C==="#"&&S==="{"&&(B=this._create_token(l.START_BLOCK,C+S)),B&&(this._input.next(),this._input.next()),B},b.prototype._read_punctuation=function(){var C=this.__patterns.punct.read();if(C!=="")return C==="="?this._create_token(l.EQUALS,C):C==="?."?this._create_token(l.DOT,C):this._create_token(l.OPERATOR,C)},b.prototype._read_non_javascript=function(C){var S="";if(C==="#"){if(this._is_first_token()&&(S=this.__patterns.shebang.read(),S))return this._create_token(l.UNKNOWN,S.trim()+`
`);if(S=this.__patterns.include.read(),S)return this._create_token(l.UNKNOWN,S.trim()+`
`);C=this._input.next();var B="#";if(this._input.hasNext()&&this._input.testChar(f)){do C=this._input.next(),B+=C;while(this._input.hasNext()&&C!=="#"&&C!=="=");return C==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(B+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(B+="{}",this._input.next(),this._input.next())),this._create_token(l.WORD,B)}this._input.back()}else if(C==="<"&&this._is_first_token()){if(S=this.__patterns.html_comment_start.read(),S){for(;this._input.hasNext()&&!this._input.testChar(a.newline);)S+=this._input.next();return y=!0,this._create_token(l.COMMENT,S)}}else if(y&&C==="-"&&(S=this.__patterns.html_comment_end.read(),S))return y=!1,this._create_token(l.COMMENT,S);return null},b.prototype._read_comment=function(C){var S=null;if(C==="/"){var B="";if(this._input.peek(1)==="*"){B=this.__patterns.block_comment.read();var x=u.get_directives(B);x&&x.ignore==="start"&&(B+=u.readIgnored(this._input)),B=B.replace(a.allLineBreaks,`
`),S=this._create_token(l.BLOCK_COMMENT,B),S.directives=x}else this._input.peek(1)==="/"&&(B=this.__patterns.comment.read(),S=this._create_token(l.COMMENT,B))}return S},b.prototype._read_string=function(C){if(C==="`"||C==="'"||C==='"'){var S=this._input.next();return this.has_char_escapes=!1,C==="`"?S+=this._read_string_recursive("`",!0,"${"):S+=this._read_string_recursive(C),this.has_char_escapes&&this._options.unescape_strings&&(S=_(S)),this._input.peek()===C&&(S+=this._input.next()),S=S.replace(a.allLineBreaks,`
`),this._create_token(l.STRING,S)}return null},b.prototype._allow_regexp_or_xml=function(C){return C.type===l.RESERVED&&s(C.text,["return","case","throw","else","do","typeof","yield"])||C.type===l.END_EXPR&&C.text===")"&&C.opened.previous.type===l.RESERVED&&s(C.opened.previous.text,["if","while","for"])||s(C.type,[l.COMMENT,l.START_EXPR,l.START_BLOCK,l.START,l.END_BLOCK,l.OPERATOR,l.EQUALS,l.EOF,l.SEMICOLON,l.COMMA])},b.prototype._read_regexp=function(C,S){if(C==="/"&&this._allow_regexp_or_xml(S)){for(var B=this._input.next(),x=!1,E=!1;this._input.hasNext()&&(x||E||this._input.peek()!==C)&&!this._input.testChar(a.newline);)B+=this._input.peek(),x?x=!1:(x=this._input.peek()==="\\",this._input.peek()==="["?E=!0:this._input.peek()==="]"&&(E=!1)),this._input.next();return this._input.peek()===C&&(B+=this._input.next(),B+=this._input.read(a.identifier)),this._create_token(l.STRING,B)}return null},b.prototype._read_xml=function(C,S){if(this._options.e4x&&C==="<"&&this._allow_regexp_or_xml(S)){var B="",x=this.__patterns.xml.read_match();if(x){for(var E=x[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),k=E.indexOf("{")===0,D=0;x;){var F=!!x[1],I=x[2],P=!!x[x.length-1]||I.slice(0,8)==="![CDATA[";if(!P&&(I===E||k&&I.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(F?--D:++D),B+=x[0],D<=0)break;x=this.__patterns.xml.read_match()}return x||(B+=this._input.match(/[\s\S]*/g)[0]),B=B.replace(a.allLineBreaks,`
`),this._create_token(l.STRING,B)}}return null};function _(C){for(var S="",B=0,x=new e(C),E=null;x.hasNext();)if(E=x.match(/([\s]|[^\\]|\\\\)+/g),E&&(S+=E[0]),x.peek()==="\\"){if(x.next(),x.peek()==="x")E=x.match(/x([0-9A-Fa-f]{2})/g);else if(x.peek()==="u")E=x.match(/u([0-9A-Fa-f]{4})/g),E||(E=x.match(/u\{([0-9A-Fa-f]+)\}/g));else{S+="\\",x.hasNext()&&(S+=x.next());continue}if(!E||(B=parseInt(E[1],16),B>126&&B<=255&&E[0].indexOf("x")===0))return C;B>=0&&B<32||B>1114111?S+="\\"+E[0]:B===34||B===39||B===92?S+="\\"+String.fromCharCode(B):S+=String.fromCharCode(B)}return S}return b.prototype._read_string_recursive=function(C,S,B){var x,E;C==="'"?E=this.__patterns.single_quote:C==='"'?E=this.__patterns.double_quote:C==="`"?E=this.__patterns.template_text:C==="}"&&(E=this.__patterns.template_expression);for(var k=E.read(),D="";this._input.hasNext();){if(D=this._input.next(),D===C||!S&&a.newline.test(D)){this._input.back();break}else D==="\\"&&this._input.hasNext()?(x=this._input.peek(),x==="x"||x==="u"?this.has_char_escapes=!0:x==="\r"&&this._input.peek(1)===`
`&&this._input.next(),D+=this._input.next()):B&&(B==="${"&&D==="$"&&this._input.peek()==="{"&&(D+=this._input.next()),B===D&&(C==="`"?D+=this._read_string_recursive("}",S,"`"):D+=this._read_string_recursive("`",S,"${"),this._input.hasNext()&&(D+=this._input.next())));D+=E.read(),k+=D}return k},t6.Tokenizer=b,t6.TOKEN=l,t6.positionable_operators=h.slice(),t6.line_starters=g.slice(),t6}var q2e;function mRt(){if(q2e)return lV;q2e=1;var e=Nre().Output,t=ILe().Token,n=MLe(),r=LLe().Options,a=JB().Tokenizer,o=JB().line_starters,i=JB().positionable_operators,s=JB().TOKEN;function l(E,k){return k.indexOf(E)!==-1}function u(E){return E.replace(/^\s+/g,"")}function c(E){for(var k={},D=0;D<E.length;D++)k[E[D].replace(/-/g,"_")]=E[D];return k}function f(E,k){return E&&E.type===s.RESERVED&&E.text===k}function d(E,k){return E&&E.type===s.RESERVED&&l(E.text,k)}var h=["case","return","do","if","throw","else","await","break","continue","async"],A=["before-newline","after-newline","preserve-newline"],p=c(A),g=[p.before_newline,p.preserve_newline],v={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function m(E,k){k.multiline_frame||k.mode===v.ForInitializer||k.mode===v.Conditional||E.remove_indent(k.start_line_index)}function y(E){E=E.replace(n.allLineBreaks,`
`);for(var k=[],D=E.indexOf(`
`);D!==-1;)k.push(E.substring(0,D)),E=E.substring(D+1),D=E.indexOf(`
`);return E.length&&k.push(E),k}function b(E){return E===v.ArrayLiteral}function _(E){return l(E,[v.Expression,v.ForInitializer,v.Conditional])}function C(E,k){for(var D=0;D<E.length;D++){var F=E[D].trim();if(F.charAt(0)!==k)return!1}return!0}function S(E,k){for(var D=0,F=E.length,I;D<F;D++)if(I=E[D],I&&I.indexOf(k)!==0)return!1;return!0}function B(E,k){k=k||{},this._source_text=E||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new r(k)}B.prototype.create_flags=function(E,k){var D=0;E&&(D=E.indentation_level,!this._output.just_added_newline()&&E.line_indent_level>D&&(D=E.line_indent_level));var F={mode:k,parent:E,last_token:E?E.last_token:new t(s.START_BLOCK,""),last_word:E?E.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:D,alignment:0,line_indent_level:E?E.line_indent_level:D,start_line_index:this._output.get_line_number(),ternary_depth:0};return F},B.prototype._reset=function(E){var k=E.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new e(this._options,k),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(v.BlockStatement);var D=new a(E,this._options);return this._tokens=D.tokenize(),E},B.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var E,k=this._reset(this._source_text),D=this._options.eol;this._options.eol==="auto"&&(D=`
`,k&&n.lineBreak.test(k||"")&&(D=k.match(n.lineBreak)[0]));for(var F=this._tokens.next();F;)this.handle_token(F),this._last_last_text=this._flags.last_token.text,this._flags.last_token=F,F=this._tokens.next();return E=this._output.get_code(D),E},B.prototype.handle_token=function(E,k){E.type===s.START_EXPR?this.handle_start_expr(E):E.type===s.END_EXPR?this.handle_end_expr(E):E.type===s.START_BLOCK?this.handle_start_block(E):E.type===s.END_BLOCK?this.handle_end_block(E):E.type===s.WORD?this.handle_word(E):E.type===s.RESERVED?this.handle_word(E):E.type===s.SEMICOLON?this.handle_semicolon(E):E.type===s.STRING?this.handle_string(E):E.type===s.EQUALS?this.handle_equals(E):E.type===s.OPERATOR?this.handle_operator(E):E.type===s.COMMA?this.handle_comma(E):E.type===s.BLOCK_COMMENT?this.handle_block_comment(E,k):E.type===s.COMMENT?this.handle_comment(E,k):E.type===s.DOT?this.handle_dot(E):E.type===s.EOF?this.handle_eof(E):E.type===s.UNKNOWN?this.handle_unknown(E,k):this.handle_unknown(E,k)},B.prototype.handle_whitespace_and_comments=function(E,k){var D=E.newlines,F=this._options.keep_array_indentation&&b(this._flags.mode);if(E.comments_before)for(var I=E.comments_before.next();I;)this.handle_whitespace_and_comments(I,k),this.handle_token(I,k),I=E.comments_before.next();if(F)for(var P=0;P<D;P+=1)this.print_newline(P>0,k);else if(this._options.max_preserve_newlines&&D>this._options.max_preserve_newlines&&(D=this._options.max_preserve_newlines),this._options.preserve_newlines&&D>1){this.print_newline(!1,k);for(var R=1;R<D;R+=1)this.print_newline(!0,k)}};var x=["async","break","continue","return","throw","yield"];return B.prototype.allow_wrap_or_preserved_newline=function(E,k){if(k=k===void 0?!1:k,!this._output.just_added_newline()){var D=this._options.preserve_newlines&&E.newlines||k,F=l(this._flags.last_token.text,i)||l(E.text,i);if(F){var I=l(this._flags.last_token.text,i)&&l(this._options.operator_position,g)||l(E.text,i);D=D&&I}if(D)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(d(this._flags.last_token,x))return;this._output.set_wrap_point()}}},B.prototype.print_newline=function(E,k){if(!k&&this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==s.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++"))for(var D=this._tokens.peek();this._flags.mode===v.Statement&&!(this._flags.if_block&&f(D,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(E)&&(this._flags.multiline_frame=!0)},B.prototype.print_token_line_indentation=function(E){this._output.just_added_newline()&&(this._options.keep_array_indentation&&E.newlines&&(E.text==="["||b(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(E.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},B.prototype.print_token=function(E){if(this._output.raw){this._output.add_raw_token(E);return}if(this._options.comma_first&&E.previous&&E.previous.type===s.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var k=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(k),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(E),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(E),this._output.non_breaking_space=!0,this._output.add_token(E.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},B.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},B.prototype.deindent=function(){this._flags.indentation_level>0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation
`&&this.print_newline(!1,k)},B.prototype.handle_eof=function(E){for(;this._flags.mode===v.Statement;)this.restore_mode();this.handle_whitespace_and_comments(E)},lV.Beautifier=B,lV}var Y2e;function yRt(){if(Y2e)return qB.exports;Y2e=1;var e=mRt().Beautifier,t=LLe().Options;function n(r,a){var o=new e(r,a);return o.beautify()}return qB.exports=n,qB.exports.defaultOptions=function(){return new t},qB.exports}var ZB={exports:{}},yV={},bV={},J2e;function FLe(){if(J2e)return bV;J2e=1;var e=Qre().Options;function t(n){e.call(this,n,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var r=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||r;var a=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var o=0;o<a.length;o++)a[o]!=="expand"?this.brace_style="collapse":this.brace_style=a[o]}return t.prototype=new e,bV.Options=t,bV}var Z2e;function bRt(){if(Z2e)return yV;Z2e=1;var e=FLe().Options,t=Nre().Output,n=Ure().InputScanner,r=jre().Directives,a=new r(/\/\*/,/\*\//),o=/\r\n|[\r\n]/,i=/\r\n|[\r\n]/g,s=/\s/,l=/(?:\s|\n)+/g,u=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,c=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function f(d,h){this._source_text=d||"",this._options=new e(h),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}return f.prototype.eatString=function(d){var h="";for(this._ch=this._input.next();this._ch;){if(h+=this._ch,this._ch==="\\")h+=this._input.next();else if(d.indexOf(this._ch)!==-1||this._ch===`
`)break;this._ch=this._input.next()}return h},f.prototype.eatWhitespace=function(d){for(var h=s.test(this._input.peek()),A=0;s.test(this._input.peek());)this._ch=this._input.next(),d&&this._ch===`
`&&(A===0||A<this._options.max_preserve_newlines)&&(A++,this._output.add_new_line(!0));return h},f.prototype.foundNestedPseudoClass=function(){for(var d=0,h=1,A=this._input.peek(h);A;){if(A==="{")return!0;if(A==="(")d+=1;else if(A===")"){if(d===0)return!1;d-=1}else if(A===";"||A==="}")return!1;h++,A=this._input.peek(h)}return!1},f.prototype.print_string=function(d){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(d)},f.prototype.preserveSingleSpace=function(d){d&&(this._output.space_before_token=!0)},f.prototype.indent=function(){this._indentLevel++},f.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},f.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var d=this._source_text,h=this._options.eol;h==="auto"&&(h=`
`,d&&o.test(d||"")&&(h=d.match(o)[0])),d=d.replace(i,`
`);var A=d.match(/^[\t ]*/)[0];this._output=new t(this._options,A),this._input=new n(d),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var p=0,g=!1,v=!1,m=!1,y=!1,b=!1,_=this._ch,C=!1,S,B,x;S=this._input.read(l),B=S!=="",x=_,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),_=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var E=this._input.read(u),k=a.get_directives(E);k&&k.ignore==="start"&&(E+=a.readIgnored(this._input)),this.print_string(E),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(c)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(B),this.print_string(this._ch);var D=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);D.match(/[ :]$/)&&(D=this.eatString(": ").replace(/\s+$/,""),this.print_string(D),this._output.space_before_token=!0),p===0&&D.indexOf(":")!==-1&&(v=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(B),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var F=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);F.match(/[ :]$/)&&(F=this.eatString(": ").replace(/\s+$/,""),this.print_string(F),this._output.space_before_token=!0),p===0&&F.indexOf(":")!==-1?(v=!0,this.indent()):F in this.NESTED_AT_RULE?(this._nestedLevel+=1,F in this.CONDITIONAL_GROUP_RULE&&(m=!0)):p===0&&!v&&(y=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(B),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")v&&(v=!1,this.outdent()),y=!1,m?(m=!1,g=this._indentLevel>=this._nestedLevel):g=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&g&&this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(x==="("?this._output.space_before_token=!1:x!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),x==="{"&&this._output.trim(!0),v&&(this.outdent(),v=!1),this.print_string(this._ch),g=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&this._input.peek()!=="}"&&this._output.add_new_line(!0),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var I=0;I<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;I++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[I])){C=!0;break}(g||m)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!y&&p===0?(this.print_string(":"),v||(v=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):(this._input.lookBack(" ")&&(this._output.space_before_token=!0),this._input.peek()===":"?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":"))}else if(this._ch==='"'||this._ch==="'"){var P=x==='"'||x==="'";this.preserveSingleSpace(P||B),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")C=!1,p===0?(v&&(this.outdent(),v=!1),y=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/"&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if(this._ch==="(")if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),p++,this.indent(),this._ch=this._input.next(),this._ch===")"||this._ch==='"'||this._ch==="'"?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),p&&(p--,this.outd
`&&C&&this._output.add_new_line()}var Q=this._output.get_code(h);return Q},yV.Beautifier=f,yV}var $2e;function wRt(){if($2e)return ZB.exports;$2e=1;var e=bRt().Beautifier,t=FLe().Options;function n(r,a){var o=new e(r,a);return o.beautify()}return ZB.exports=n,ZB.exports.defaultOptions=function(){return new t},ZB.exports}var $B={exports:{}},wV={},_V={},ehe;function PLe(){if(ehe)return _V;ehe=1;var e=Qre().Options;function t(n){e.call(this,n,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_min_attrs=this._get_number("wrap_attributes_min_attrs",2),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.inline_custom_elements=this._get_boolean("inline_custom_elements",!0),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}return t.prototype=new e,_V.Options=t,_V}var eE={},the;function nhe(){if(the)return eE;the=1;var e=vI().Tokenizer,t=vI().TOKEN,n=jre().Directives,r=OLe().TemplatablePattern,a=rP().Pattern,o={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",CONTROL_FLOW_OPEN:"TK_CONTROL_FLOW_OPEN",CONTROL_FLOW_CLOSE:"TK_CONTROL_FLOW_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:t.START,RAW:t.RAW,EOF:t.EOF},i=new n(/<\!--/,/-->/),s=function(l,u){e.call(this,l,u),this._current_tag_name="";var c=new r(this._input).read_options(this._options),f=new a(this._input);if(this.__patterns={word:c.until(/[\n\r\t <]/),word_control_flow_close_excluded:c.until(/[\n\r\t <}]/),single_quote:c.until_after(/'/),double_quote:c.until_after(/"/),attribute:c.until(/[\n\r\t =>]|\/>/),element_name:c.until(/[\n\r\t >\/]/),angular_control_flow_start:f.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:f.starting_with(/{{!--/).until_after(/--}}/),handlebars:f.starting_with(/{{/).until_after(/}}/),handlebars_open:f.until(/[\n\r\t }]/),handlebars_raw_close:f.until(/}}/),comment:f.starting_with(/<!--/).until_after(/-->/),cdata:f.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:f.starting_with(/<!\[/).until_after(/]>/),processing:f.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars"),this.__patterns.word_control_flow_close_excluded=this.__patterns.word_control_flow_close_excluded.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var d=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=f.matching(d)
`,g&&a.test(g)&&(v=g.match(a)[0])),g=g.replace(o,`
`);var m=g.match(/^[\t ]*/)[0],y={text:"",type:""},b=new h,_=new i(this._options,m),C=new n(g,this._options).tokenize();this._tag_stack=new f(_);for(var S=null,B=C.next();B.type!==r.EOF;)B.type===r.TAG_OPEN||B.type===r.COMMENT?(S=this._handle_tag_open(_,B,b,y,C),b=S):B.type===r.ATTRIBUTE||B.type===r.EQUALS||B.type===r.VALUE||B.type===r.TEXT&&!b.tag_complete?S=this._handle_inside_tag(_,B,b,y):B.type===r.TAG_CLOSE?S=this._handle_tag_close(_,B,b):B.type===r.TEXT?S=this._handle_text(_,B,b):B.type===r.CONTROL_FLOW_OPEN?S=this._handle_control_flow_open(_,B):B.type===r.CONTROL_FLOW_CLOSE?S=this._handle_control_flow_close(_,B):_.add_raw_token(B),y=S,B=C.next();var x=_._output.get_code(v);return x},d.prototype._handle_control_flow_open=function(g,v){var m={text:v.text,type:v.type};return g.set_space_before_token(v.newlines||v.whitespace_before!=="",!0),v.newlines?g.print_preserved_newlines(v):g.set_space_before_token(v.newlines||v.whitespace_before!=="",!0),g.print_token(v),g.indent(),m},d.prototype._handle_control_flow_close=function(g,v){var m={text:v.text,type:v.type};return g.deindent(),v.newlines?g.print_preserved_newlines(v):g.set_space_before_token(v.newlines||v.whitespace_before!=="",!0),g.print_token(v),m},d.prototype._handle_tag_close=function(g,v,m){var y={text:v.text,type:v.type};return g.alignment_size=0,m.tag_complete=!0,g.set_space_before_token(v.newlines||v.whitespace_before!=="",!0),m.is_unformatted?g.add_raw_token(v):(m.tag_start_char==="<"&&(g.set_space_before_token(v.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&m.has_wrapped_attrs&&g.print_newline(!1)),g.print_token(v)),m.indent_content&&!(m.is_unformatted||m.is_content_unformatted)&&(g.indent(),m.indent_content=!1),!m.is_inline_element&&!(m.is_unformatted||m.is_content_unformatted)&&g.set_wrap_point(),y},d.prototype._handle_inside_tag=function(g,v,m,y){var b=m.has_wrapped_attrs,_={text:v.text,type:v.type};return g.set_space_before_token(v.newlines||v.whitespace_before!=="",!0),m.is_unformatted?g.add_raw_token(v):m.tag_start_char==="{"&&v.type===r.TEXT?g.print_preserved_newlines(v)?(v.newlines=0,g.add_raw_token(v)):g.print_token(v):(v.type===r.ATTRIBUTE?g.set_space_before_token(!0):(v.type===r.EQUALS||v.type===r.VALUE&&v.previous.type===r.EQUALS)&&g.set_space_before_token(!1),v.type===r.ATTRIBUTE&&m.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(g.traverse_whitespace(v),b=b||v.newlines!==0),this._is_wrap_attributes_force&&m.attr_count>=this._options.wrap_attributes_min_attrs&&(y.type!==r.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(g.print_newline(!1),b=!0)),g.print_token(v),b=b||g.previous_token_wrapped(),m.has_wrapped_attrs=b),_},d.prototype._handle_text=function(g,v,m){var y={text:v.text,type:"TK_CONTENT"};return m.custom_beautifier_name?this._print_custom_beatifier_text(g,v,m):m.is_unformatted||m.is_content_unformatted?g.add_raw_token(v):(g.traverse_whitespace(v),g.print_token(v)),y},d.prototype._print_custom_beatifier_text=function(g,v,m){var y=this;if(v.text!==""){var b=v.text,_,C=1,S="",B="";m.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?_=this._js_beautify:m.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?_=this._css_beautify:m.custom_beautifier_name==="html"&&(_=function(I,P){var R=new d(I,P,y._js_beautify,y._css_beautify);return R.beautify()}),this._options.indent_scripts==="keep"?C=0:this._options.indent_scripts==="separate"&&(C=-g.indent_level);var x=g.get_full_indent(C);if(b=b.replace(/\n[ \t]*$/,""),m.custom_beautifier_name!=="html"&&b[0]==="<"&&b.match(/^(<!--|<!\[CDATA\[)/)){var E=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(b);if(!E){g.add_raw_token(v);return}S=x+E[1]+`
`,b=E[4],E[5]&&(B=x+E[5]),b=b.replace(/\n[ \t]*$/,""),(E[2]||E[3].indexOf(`
`)!==-1)&&(E=E[3].match(/[ \t]+$/),E&&(v.whitespace_before=E[0]))}if(b)if(_){var k=function(){this.eol=`
`};k.prototype=this._options.raw_options;var D=new k;b=_(x+b,D)}else{var F=v.whitespace_before;F&&(b=b.replace(new RegExp(`
(`+F+")?","g"),`
`)),b=x+b.replace(/\n/g,`
`+x)}S&&(b?b=S+b+`
`+B:b=S+B),g.print_newline(!1),b&&(v.text=b,v.whitespace_before="",v.newlines=0,g.add_raw_token(v),g.print_newline(!0))}},d.prototype._handle_tag_open=function(g,v,m,y,b){var _=this._get_tag_open_token(v);if((m.is_unformatted||m.is_content_unformatted)&&!m.is_empty_element&&v.type===r.TAG_OPEN&&!_.is_start_tag?(g.add_raw_token(v),_.start_tag_token=this._tag_stack.try_pop(_.tag_name)):(g.traverse_whitespace(v),this._set_tag_position(g,v,_,m,y),_.is_inline_element||g.set_wrap_point(),g.print_token(v)),_.is_start_tag&&this._is_wrap_attributes_force){var C=0,S;do S=b.peek(C),S.type===r.ATTRIBUTE&&(_.attr_count+=1),C+=1;while(S.type!==r.EOF&&S.type!==r.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(_.alignment_size=v.text.length+1),!_.tag_complete&&!_.is_unformatted&&(g.alignment_size=_.alignment_size),_};var h=function(g,v){if(this.parent=g||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",!v)this.tag_complete=!0;else{var m;this.tag_start_char=v.text[0],this.text=v.text,this.tag_start_char==="<"?(m=v.text.match(/^<([^\s>]*)/),this.tag_check=m?m[1]:""):(m=v.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=m?m[1]:"",(v.text.startsWith("{{#>")||v.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&v.next!==null?this.tag_check=v.next.text.split(" ")[0]:this.tag_check=v.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),v.type===r.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||v.closed&&v.closed.text==="/>";var y=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(y=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(y)))}};d.prototype._get_tag_open_token=function(g){var v=new h(this._tag_stack.get_parser_token(),g);return v.alignment_size=this._options.wrap_attributes_indent_size,v.is_end_tag=v.is_end_tag||u(v.tag_check,this._options.void_elements),v.is_empty_element=v.tag_complete||v.is_start_tag&&v.is_end_tag,v.is_unformatted=!v.tag_complete&&u(v.tag_check,this._options.unformatted),v.is_content_unformatted=!v.is_empty_element&&u(v.tag_check,this._options.content_unformatted),v.is_inline_element=u(v.tag_name,this._options.inline)||this._options.inline_custom_elements&&v.tag_name.includes("-")||v.tag_start_char==="{",v},d.prototype._set_tag_position=function(g,v,m,y,b){if(m.is_empty_element||(m.is_end_tag?m.start_tag_token=this._tag_stack.try_pop(m.tag_name):(this._do_optional_end_element(m)&&(m.is_inline_element||g.print_newline(!1)),this._tag_stack.record_tag(m),(m.tag_name==="script"||m.tag_name==="style")&&!(m.is_unformatted||m.is_content_unformatted)&&(m.custom_beautifier_name=l(m.tag_check,v)))),u(m.tag_check,this._options.extra_liners)&&(g.print_newline(!1),g._output.just_added_blankline()||g.print_newline(!0)),m.is_empty_element){if(m.tag_start_char==="{"&&m.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),m.indent_content=!0;var _=g.current_line_has_match(/{{#if/);_||g.print_newline(!1)}m.tag_name==="!--"&&b.type===r.TAG_CLOSE&&y.is_end_tag&&m.text.indexOf(`
`)===-1||(m.is_inline_element||m.is_unformatted||g.print_newline(!1),this._calcluate_parent_multiline(g,m))}else if(m.is_end_tag){var C=!1;C=m.start_tag_token&&m.start_tag_token.multiline_content,C=C||!m.is_inline_element&&!(y.is_inline_element||y.is_unformatted)&&!(b.type===r.TAG_CLOSE&&m.start_tag_token===y)&&b.type!=="TK_CONTENT",(m.is_content_unformatted||m.is_unformatted)&&(C=!1),C&&g.print_newline(!1)}else m.indent_content=!m.custom_beautifier_name,m.tag_start_char==="<"&&(m.tag_name==="html"?m.indent_content=this._options.indent_inner_html:m.tag_name==="head"?m.indent_content=this._options.indent_head_inner_html:m.tag_name==="body"&&(m.indent_content=this._options.indent_body_inner_html)),!(m.is_inline_element||m.is_unformatted)&&(b.type!=="TK_CONTENT"||m.is_content_unformatted)&&g.print_newline(!1),this._calcluate_parent_multiline(g,m)},d.prototype._calcluate_parent_multiline=function(g,v){v.parent&&g._output.just_added_newline()&&!((v.is_inline_element||v.is_unformatted)&&v.parent.is_inline_element)&&(v.parent.multiline_content=!0)};var A=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","menu","nav","ol","p","pre","section","table","ul"],p=["a","audio","del","ins","map","noscript","video"];return d.prototype._do_optional_end_element=function(g){var v=null;if(!(g.is_empty_element||!g.is_start_tag||!g.parent)){if(g.tag_name==="body")v=v||this._tag_stack.try_pop("head");else if(g.tag_name==="li")v=v||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(g.tag_name==="dd"||g.tag_name==="dt")v=v||this._tag_stack.try_pop("dt",["dl"]),v=v||this._tag_stack.try_pop("dd",["dl"]);else if(g.parent.tag_name==="p"&&A.indexOf(g.tag_name)!==-1){var m=g.parent.parent;(!m||p.indexOf(m.tag_name)===-1)&&(v=v||this._tag_stack.try_pop("p"))}else g.tag_name==="rp"||g.tag_name==="rt"?(v=v||this._tag_stack.try_pop("rt",["ruby","rtc"]),v=v||this._tag_stack.try_pop("rp",["ruby","rtc"])):g.tag_name==="optgroup"?v=v||this._tag_stack.try_pop("optgroup",["select"]):g.tag_name==="option"?v=v||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):g.tag_name==="colgroup"?v=v||this._tag_stack.try_pop("caption",["table"]):g.tag_name==="thead"?(v=v||this._tag_stack.try_pop("caption",["table"]),v=v||this._tag_stack.try_pop("colgroup",["table"])):g.tag_name==="tbody"||g.tag_name==="tfoot"?(v=v||this._tag_stack.try_pop("caption",["table"]),v=v||this._tag_stack.try_pop("colgroup",["table"]),v=v||this._tag_stack.try_pop("thead",["table"]),v=v||this._tag_stack.try_pop("tbody",["table"])):g.tag_name==="tr"?(v=v||this._tag_stack.try_pop("caption",["table"]),v=v||this._tag_stack.try_pop("colgroup",["table"]),v=v||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(g.tag_name==="th"||g.tag_name==="td")&&(v=v||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),v=v||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return g.parent=this._tag_stack.get_parser_token(),v}},wV.Beautifier=d,wV}var ahe;function CRt(){if(ahe)return $B.exports;ahe=1;var e=_Rt().Beautifier,t=PLe().Options;function n(r,a,o,i){var s=new e(r,a,o,i);return s.beautify()}return $B.exports=n,$B.exports.defaultOptions=function(){return new t},$B.exports}var ohe;function SRt(){if(ohe)return ny;ohe=1;var e=yRt(),t=wRt(),n=CRt();function r(a,o,i,s){return i=i||e,s=s||t,n(a,o,i,s)}return r.defaultOptions=n.defaultOptions,ny.js=e,ny.css=t,ny.html=r,ny}(function(e){function t(n,r,a){var o=function(i,s){return n.js_beautify(i,s)};return o.js=n.js_beautify,o.css=r.css_beautify,o.html=a.html_beautify,o.js_beautify=n.js_beautify,o.css_beautify=r.css_beautify,o.html_beautify=a.html_beautify,o}(function(n){var r=SRt();r.js_beautify=r.js,r.css_beautify=r.css,r.html_beautify=r.html,n.exports=t(r,r,r)})(e)})(DLe);var BRt=DLe.exports;const ERt=Oc(BRt),xRt="javascript";function TRt(e){const t=Function;return new t("return "+e)()}function gI(e){let t=[];if(e===null)return null;if(typeof e=="string")return'"'+e.replace(/([\\'\\"\\])/
// data经过处理后返回
console.log('beforeRequest',data)
return data
}`,yqn=`opt=(res) => {
// res返回数据
console.log('afterResponse',res)
return res
}`,bqn=`opt=(key,model) => {
// name当前改变组件的值,model表单的值
console.log('onChange',key)
return model
}`,XC="GK",ui=XC+"ControlChange",qC=XC+"SetFormOptions",YC=XC+"GetControlByName",aP=XC+"FormBtnEvent",va=XC+"FormProps",Lr=[{type:"required",label:"必填",regExp:/^\s*$/,message:"必填项"},{type:"mobile",label:"手机号码",regExp:/^0{0,1}(13[0-9]|15[7-9]|153|156|18[7-9])[0-9]{8}$/,message:"请输入手机号码"},{type:"tel",label:"固话",regExp:/^0\d{2,3}-\d{7,8}$/,message:"请输入固定电话号码"},{type:"phone",label:"固话或手机",regExp:/^((0\d{2,3}(-?)\d{7,8})|(1[3456789]\d{9}))$/,message:"请输入固定电话号码或手机号"},{type:"email",label:"邮箱",regExp:/^[a-z0-9A-Z._%-]+@([a-z0-9A-Z-]+\.)+[a-zA-Z]{2,4}$/,message:"请输入邮箱地址"},{type:"int",label:"正整数",regExp:/^[0-9]*[1-9][0-9]*$/,message:"请输入正整数"},{type:"number",label:"数字",regExp:/^\d+(\.\d+)?$/,message:"请输入数字"},{type:"money",label:"金额",regExp:/^[0-9]+\.?[0-9]{0,2}$/,message:"请输入正确的金额,最多两位小数"},{type:"card",label:"身份证",regExp:/(^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$)|(^[1-9]\d{5}\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{2}$)/,message:"请输入身份证号"},{type:"cn",label:"中文",regExp:/[\u4e00-\u9fa5]+/,message:"请输入中文"},{type:"numberLetter",label:"数字字母",regExp:/[0-9a-zA-Z]$/,message:"请输入数字或字母"},{type:"url",label:"网址",regExp:/^https?:\/\/((.)+(\.)?)*(:\d+)?(\/((\.)?(\?)?=?&?.(\?)?)*)*$/,message:"请输入网址"},{type:"longitude",label:"经度",regExp:/^[-+]?(0?\d{1,2}\.\d{1,10}|1[0-7]?\d\.\d{1,10}|180\.0{1,10})$/,message:"请输入正确的经度"},{type:"latitude",label:"纬度",regExp:/^[-+]?([0-8]?\d{1}\.\d{1,10}|90\.0{1,10})$/,message:"请输入正确的纬度"}],kRt=["innerHTML"],DRt=j("i",{class:"icon-help"},null,-1),Di=Z({__name:"tooltip",props:{content:{}},setup(e){return(t,n)=>{const r=Vo;return T(),ae(r,{placement:"top"},{content:X(()=>[j("span",{innerHTML:t.content},null,8,kRt)]),default:X(()=>[DRt]),_:1})}}}),IRt=["innerHTML"],MRt=Z({__name:"index",props:{data:{},tablekey:{},numrun:{},modelValue:{},tProp:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t;B3();const a=$e(va,{}),o=N(()=>a.value.type),i=N(()=>n.data.config||{});N(()=>n.data.control),G(n.data.options);const s=$e(ui,"");Pe(()=>n.tablekey,()=>{});const l=G(!1),u=N({get(){return n.tProp?n.modelValue:a.value.model[n.data.name]},set(p){n.tProp&&r("update:modelValue",p),c(p)}}),c=p=>{let g="";n.data.control&&n.data.control.type&&(g=n.data.control.type),s&&s({key:n.data.name,value:p,data:n.data,tProp:n.tProp,type:n.data.type,attribute:g})};Tt(()=>{console.log("编码组件---》",n.numrun,n.data,n.data.control.config),n.data.config&&n.data.config.automatic?(f(),l.value=!0):l.value=!1});const f=()=>{let p={table:n.tablekey,automatic:n.data.config.automatic,customRules:n.data.config.customRules};l.value=n.data.config.automatic,NOt(p).then(g=>{u.value=g.data})};$e(YC),N(()=>{const p=new RegExp("(?<=\\${)(.*?)(?=})","g"),g=i.value.optionsFun,v=g==null?void 0:g.match(p);return v&&v[0]});const d=p=>{const g=a.value.showColon?":":"";return p?p.showLabel?"":p.label+g:""},h=N(()=>{var m;let p;const g=((m=n.data.item)==null?void 0:m.rules)||[],v=A();return(g!=null&&g.length||v!=null&&v.length)&&(p=[...v,...g]),p}),A=()=>{var v;const p={};Lr&&Lr.forEach(m=>{p[m.type]=m.regExp});const g=[];return(v=n.data.customRules)==null||v.forEach(m=>{if(!m.message&&m.type!=="methods")return;let y={};if(m.type==="required")y={required:!0};else if(m.type==="rules")y={pattern:m.rules};else if(m.type==="methods"){const _=m.methods;_&&(y={validator:$e(_,{})})}else m.type&&(y={pattern:p[m.type]});let b={message:m.message};m.message||(b={}),g.push(Object.assign({trigger:m.trigger||"blur"},y,b))}),g};return(p,g)=>{const v=ur,m=Fa;return T(),ae(m,Bt(p.data.item,{prop:p.tProp||p.data.name,class:w(i).className,rules:w(h),label:d(p.data.item)}),ua({default:X(()=>[w(o)===4?(T(),z("div",{key:0,class:"form-value",innerHTML:w(u)},null,8,IRt)):(T(),ae(v,{key:1,modelValue:w(u),"onUpdate:modelValue":g[0]||(g[
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
<http://stuartk.com/jszip>
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
JSZip uses the library pako released under the MIT license :
https://github.com/nodeca/pako/blob/main/LICENSE
*/(function(e,t){(function(n){e.exports=n()})(function(){return function n(r,a,o){function i(u,c){if(!a[u]){if(!r[u]){var f=typeof tE=="function"&&tE;if(!c&&f)return f(u,!0);if(s)return s(u,!0);var d=new Error("Cannot find module '"+u+"'");throw d.code="MODULE_NOT_FOUND",d}var h=a[u]={exports:{}};r[u][0].call(h.exports,function(A){var p=r[u][1][A];return i(p||A)},h,h.exports,n,r,a,o)}return a[u].exports}for(var s=typeof tE=="function"&&tE,l=0;l<o.length;l++)i(o[l]);return i}({1:[function(n,r,a){var o=n("./utils"),i=n("./support"),s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";a.encode=function(l){for(var u,c,f,d,h,A,p,g=[],v=0,m=l.length,y=m,b=o.getTypeOf(l)!=="string";v<l.length;)y=m-v,f=b?(u=l[v++],c=v<m?l[v++]:0,v<m?l[v++]:0):(u=l.charCodeAt(v++),c=v<m?l.charCodeAt(v++):0,v<m?l.charCodeAt(v++):0),d=u>>2,h=(3&u)<<4|c>>4,A=1<y?(15&c)<<2|f>>6:64,p=2<y?63&f:64,g.push(s.charAt(d)+s.charAt(h)+s.charAt(A)+s.charAt(p));return g.join("")},a.decode=function(l){var u,c,f,d,h,A,p=0,g=0,v="data:";if(l.substr(0,v.length)===v)throw new Error("Invalid base64 input, it looks like a data url.");var m,y=3*(l=l.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(l.charAt(l.length-1)===s.charAt(64)&&y--,l.charAt(l.length-2)===s.charAt(64)&&y--,y%1!=0)throw new Error("Invalid base64 input, bad content length.");for(m=i.uint8array?new Uint8Array(0|y):new Array(0|y);p<l.length;)u=s.indexOf(l.charAt(p++))<<2|(d=s.indexOf(l.charAt(p++)))>>4,c=(15&d)<<4|(h=s.indexOf(l.charAt(p++)))>>2,f=(3&h)<<6|(A=s.indexOf(l.charAt(p++))),m[g++]=u,h!==64&&(m[g++]=c),A!==64&&(m[g++]=f);return m}},{"./support":30,"./utils":32}],2:[function(n,r,a){var o=n("./external"),i=n("./stream/DataWorker"),s=n("./stream/Crc32Probe"),l=n("./stream/DataLengthProbe");function u(c,f,d,h,A){this.compressedSize=c,this.uncompressedSize=f,this.crc32=d,this.compression=h,this.compressedContent=A}u.prototype={getContentWorker:function(){var c=new i(o.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new l("data_length")),f=this;return c.on("end",function(){if(this.streamInfo.data_length!==f.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),c},getCompressedWorker:function(){return new i(o.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},u.createWorkerFrom=function(c,f,d){return c.pipe(new s).pipe(new l("uncompressedSize")).pipe(f.compressWorker(d)).pipe(new l("compressedSize")).withStreamInfo("compression",f)},r.exports=u},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(n,r,a){var o=n("./stream/GenericWorker");a.STORE={magic:"\0\0",compressWorker:function(){return new o("STORE compression")},uncompressWorker:function(){return new o("STORE decompression")}},a.DEFLATE=n("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(n,r,a){var o=n("./utils"),i=function(){for(var s,l=[],u=0;u<256;u++){s=u;for(var c=0;c<8;c++)s=1&s?3988292384^s>>>1:s>>>1;l[u]=s}return l}();r.exports=function(s,l){return s!==void 0&&s.length?o.getTypeOf(s)!=="string"?function(u,c,f,d){var h=i,A=d+f;u^=-1;for(var p=d;p<A;p++)u=u>>>8^h[255&(u^c[p])];return-1^u}(0|l,s,s.length,0):function(u,c,f,d){var h=i,A=d+f;u^=-1;for(var p=d;p<A;p++)u=u>>>8^h[255&(u^c.charCodeAt(p))];return-1^u}(0|l,s,s.length,0):0}},{"./utils":32}],5:[function(n,r,a){a.base64=!1,a.binary=!1,a.dir=!1,a.createFolders=!0,a.date=null,a.compression=null,a.compressionOptions=null,a.comment=null,a.unixPermissions=null,a.dosPermissions=null},{}],6:[function(n,r,a){var o=null;o=typeof Promise<"u"?Promise:n("lie"),r.exports={Promise:o}},{lie:37}],7:[function(n,r,a){var o=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",i=n("pako"),s=n("./utils"),l=n("./stream/GenericWorker"),u=o?"uint8array":"array";function c(f,d){l.call(this,"FlateWorker/"+f),this._pako=null,this._pakoAction=f,this._pakoOptions=d,th
\0`,$+=o(O,2),$+=C.magic,$+=o(y,2),$+=o(b,2),$+=o(U.crc32,4),$+=o(U.compressedSize,4),$+=o(U.uncompressedSize,4),$+=o(B.length,2),$+=o(P.length,2),{fileRecord:f.LOCAL_FILE_HEADER+$+B+P,dirRecord:f.CENTRAL_FILE_HEADER+o(W,2)+$+o(k.length,2)+"\0\0\0\0"+o(V,4)+o(g,4)+B+P+k}}var s=n("../utils"),l=n("../stream/GenericWorker"),u=n("../utf8"),c=n("../crc32"),f=n("../signature");function d(h,A,p,g){l.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=A,this.zipPlatform=p,this.encodeFileName=g,this.streamFiles=h,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}s.inherits(d,l),d.prototype.push=function(h){var A=h.meta.percent||0,p=this.entriesCount,g=this._sources.length;this.accumulate?this.contentBuffer.push(h):(this.bytesWritten+=h.data.length,l.prototype.push.call(this,{data:h.data,meta:{currentFile:this.currentFile,percent:p?(A+100*(p-g-1))/p:100}}))},d.prototype.openedSource=function(h){this.currentSourceOffset=this.bytesWritten,this.currentFile=h.file.name;var A=this.streamFiles&&!h.file.dir;if(A){var p=i(h,A,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:p.fileRecord,meta:{percent:0}})}else this.accumulate=!0},d.prototype.closedSource=function(h){this.accumulate=!1;var A=this.streamFiles&&!h.file.dir,p=i(h,A,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(p.dirRecord),A)this.push({data:function(g){return f.DATA_DESCRIPTOR+o(g.crc32,4)+o(g.compressedSize,4)+o(g.uncompressedSize,4)}(h),meta:{percent:100}});else for(this.push({data:p.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},d.prototype.flush=function(){for(var h=this.bytesWritten,A=0;A<this.dirRecords.length;A++)this.push({data:this.dirRecords[A],meta:{percent:100}});var p=this.bytesWritten-h,g=function(v,m,y,b,_){var C=s.transformTo("string",_(b));return f.CENTRAL_DIRECTORY_END+"\0\0\0\0"+o(v,2)+o(v,2)+o(m,4)+o(y,4)+o(C.length,2)+C}(this.dirRecords.length,p,h,this.zipComment,this.encodeFileName);this.push({data:g,meta:{percent:100}})},d.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},d.prototype.registerPrevious=function(h){this._sources.push(h);var A=this;return h.on("data",function(p){A.processChunk(p)}),h.on("end",function(){A.closedSource(A.previous.streamInfo),A._sources.length?A.prepareNextSource():A.end()}),h.on("error",function(p){A.error(p)}),this},d.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},d.prototype.error=function(h){var A=this._sources;if(!l.prototype.error.call(this,h))return!1;for(var p=0;p<A.length;p++)try{A[p].error(h)}catch{}return!0},d.prototype.lock=function(){l.prototype.lock.call(this);for(var h=this._sources,A=0;A<h.length;A++)h[A].lock()},r.exports=d},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(n,r,a){var o=n("../compressions"),i=n("./ZipFileWorker");a.generateWorker=function(s,l,u){var c=new i(l.streamFiles,u,l.platform,l.encodeFileName),f=0;try{s.forEach(function(d,h){f++;var A=function(m,y){var b=m||y,_=o[b];if(!_)throw new Error(b+" is not a valid compression method !");return _}(h.options.compression,l.compression),p=h.options.compressionOptions||l.compressionOptions||{},g=h.dir,v=h.date;h._compressWorker(A,p).withStreamInfo("file",{name:d,dir:g,date:v,comment:h.comment||"",unixPermissions:h.unixPermissions,dosPermissions:h.dosPermissions}).pipe(c)}),c.entriesCount=f}catch(d){c.error(d)}return c}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(n,r,a){function o(){if(!(this instanceof o))return new o;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrad
`),t),`
`);return e},azt=function(e,t){iu(t)&&"cause"in t&&nl(e,"cause",t.cause)},Qd={},ozt=Ks("iterator"),izt=Array.prototype,$Le={};$Le[Ks("toStringTag")]="z";var rae=String($Le)==="[object z]",szt=Ks("toStringTag"),lzt=cr.Object,uzt=Zv(function(){return arguments}())=="Arguments",nS=rae?Zv:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(a,o){try{return a[o]}catch{}}(t=lzt(e),szt))=="string"?n:uzt?Zv(t):(r=Zv(t))=="Object"&&Ki(t.callee)?"Arguments":r},czt=Ks("iterator"),Bhe=function(e){if(e!=null)return yI(e,czt)||yI(e,"@@iterator")||Qd[nS(e)]},fzt=cr.TypeError,Ehe=function(e,t,n){var r,a;Cu(e);try{if(!(r=yI(e,"return"))){if(t==="throw")throw n;return n}r=kl(r,e)}catch(o){a=!0,r=o}if(t==="throw")throw n;if(a)throw r;return Cu(r),n},dzt=cr.TypeError,kk=function(e,t){this.stopped=e,this.result=t},xhe=kk.prototype,hzt=function(e,t,n){var r,a,o,i,s,l,u,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),A=$re(t,c),p=function(v){return r&&Ehe(r,"normal",v),new kk(!0,v)},g=function(v){return f?(Cu(v),h?A(v[0],v[1],p):A(v[0],v[1])):h?A(v,p):A(v)};if(d)r=e;else{if(!(a=Bhe(e)))throw dzt($X(e)+" is not iterable");if(function(v){return v!==void 0&&(Qd.Array===v||izt[ozt]===v)}(a)){for(o=0,i=eS(e);i>o;o++)if((s=g(e[o]))&&Qw(xhe,s))return s;return new kk(!1)}r=function(v,m){var y=arguments.length<2?Bhe(v):m;if(Zre(y))return Cu(kl(y,v));throw fzt($X(v)+" is not iterable")}(e,a)}for(l=r.next;!(u=kl(l,r)).done;){try{s=g(u.value)}catch(v){Ehe(r,"throw",v)}if(typeof s=="object"&&s&&Qw(xhe,s))return s}return new kk(!1)},pzt=cr.String,Uw=function(e){if(nS(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return pzt(e)},Azt=function(e,t){return e===void 0?arguments.length<2?"":t:Uw(e)},vzt=!Ql(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",c0(1,7)),e.stack!==7)}),gzt=Ks("toStringTag"),SI=cr.Error,mzt=[].push,jw=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,a=Qw(EV,this);_I?n=_I(new SI(void 0),a?wI(this):EV):(n=a?this:r1(EV),nl(n,gzt,"Error")),nl(n,"message",Azt(t,"")),vzt&&nl(n,"stack",rzt(n.stack,1)),azt(n,r);var o=[];return hzt(e,mzt,{that:o}),nl(n,"errors",o),n};_I?_I(jw,SI):function(e,t){for(var n=WVt(t),r=Up.f,a=sP.f,o=0;o<n.length;o++){var i=n[o];jr(e,i)||r(e,i,a(t,i))}}(jw,SI);var EV=jw.prototype=r1(SI.prototype,{constructor:c0(1,jw),message:c0(1,""),name:c0(1,"AggregateError")});Td({global:!0},{AggregateError:jw});var yzt=Ua(Function.toString);Ki(_h.inspectSource)||(_h.inspectSource=function(e){return yzt(e)});var BI,sb,EI,eOe=_h.inspectSource,The=cr.WeakMap,bzt=Ki(The)&&/native code/.test(eOe(The)),oq=cr.TypeError,wzt=cr.WeakMap;if(bzt||_h.state){var sA=_h.state||(_h.state=new wzt),_zt=Ua(sA.get),khe=Ua(sA.has),Czt=Ua(sA.set);BI=function(e,t){if(khe(sA,e))throw new oq("Object already initialized");return t.facade=e,Czt(sA,e,t),t},sb=function(e){return _zt(sA,e)||{}},EI=function(e){return khe(sA,e)}}else{var n6=lP("state");tS[n6]=!0,BI=function(e,t){if(jr(e,n6))throw new oq("Object already initialized");return t.facade=e,nl(e,n6,t),t},sb=function(e){return jr(e,n6)?e[n6]:{}},EI=function(e){return jr(e,n6)}}var q2,Dhe,Ihe,s5={set:BI,get:sb,has:EI,enforce:function(e){return EI(e)?sb(e):BI(e,{})},getterFor:function(e){return function(t){var n;if(!iu(t)||(n=sb(t)).type!==e)throw oq("Incompatible receiver, "+e+" required");return n}}},tOe=Function.prototype,Szt=Ol&&Object.getOwnPropertyDescriptor,xV=jr(tOe,"name"),Bzt={EXISTS:xV,PROPER:xV&&(function(){}).name==="something",CONFIGURABLE:xV&&(!Ol||Ol&&Szt(tOe,"name").configurable)},J8=function(e,t,n,r){r&&r.enumerable?e[t]=n:nl(e,t,n)},iq=Ks("iterator"),nOe=!1;[].keys&&("next"in(Ihe=[].keys())?(Dhe=wI(wI(Ihe)))!==Object.prototype&&(q2=Dhe):nOe=!0);var Ezt=q2==null||Ql(function(){var e={};return q2[iq].call(e)!==e});q2=Ezt?{}:r1(q2),Ki(q2[iq])||J8(q2,iq,function(){return this});var rOe={IteratorPrototype:q2,BUGGY_SAFARI_ITERATORS:nOe},xzt=rae?{}.toString:function(){return"[object "+nS(this)+"]"},Tzt=Up.f,Mhe=Ks("toStringTag"),xI=function(e,t,n,r){if(e){v
`)&&e.flags==="s")}),eQt=tr.RegExp,tQt=Xi(function(){var e=eQt("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),nQt=X4.get,rQt=sae("native-string-replace",String.prototype.replace),MI=RegExp.prototype.exec,Aq=MI,aQt=wa("".charAt),oQt=wa("".indexOf),iQt=wa("".replace),PV=wa("".slice),RV=(FV=/b*/g,Ni(MI,$he=/a/,"a"),Ni(MI,FV,"a"),$he.lastIndex!==0||FV.lastIndex!==0),epe=XNt.BROKEN_CARET,HV=/()??/.exec("")[1]!==void 0;(RV||HV||epe||$Nt||tQt)&&(Aq=function(e){var t,n,r,a,o,i,s,l=this,u=nQt(l),c=n4(e),f=u.raw;if(f)return f.lastIndex=l.lastIndex,t=Ni(Aq,f,c),l.lastIndex=f.lastIndex,t;var d=u.groups,h=epe&&l.sticky,A=Ni(KNt,l),p=l.source,g=0,v=c;if(h&&(A=iQt(A,"y",""),oQt(A,"g")===-1&&(A+="g"),v=PV(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&aQt(c,l.lastIndex-1)!==`
`)&&(p="(?: "+p+")",v=" "+v,g++),n=new RegExp("^(?:"+p+")",A)),HV&&(n=new RegExp("^"+p+"$(?!\\s)",A)),RV&&(r=l.lastIndex),a=Ni(MI,h?n:l,v),h?a?(a.input=PV(a.input,g),a[0]=PV(a[0],g),a.index=l.lastIndex,l.lastIndex+=a[0].length):l.lastIndex=0:RV&&a&&(l.lastIndex=l.global?a.index+a[0].length:r),HV&&a&&a.length>1&&Ni(rQt,a[0],n,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(a[o]=void 0)}),a&&d)for(a.groups=i=iS(null),o=0;o<d.length;o++)i[(s=d[o])[0]]=a[s[1]];return a});var LI=Aq;oS({target:"RegExp",proto:!0,forced:/./.exec!==LI},{exec:LI});var sQt=pl("species"),VV=RegExp.prototype,lQt=wa("".charAt),tpe=wa("".charCodeAt),uQt=wa("".slice),npe=function(e){return function(t,n){var r,a,o=n4(uP(t)),i=vae(n),s=o.length;return i<0||i>=s?e?"":void 0:(r=tpe(o,i))<55296||r>56319||i+1===s||(a=tpe(o,i+1))<56320||a>57343?e?lQt(o,i):r:e?uQt(o,i,i+2):a-56320+(r-55296<<10)+65536}},vOe={codeAt:npe(!1),charAt:npe(!0)},cQt=vOe.charAt,fQt=function(e,t,n){return t+(n?cQt(e,t).length:1)},dQt=tr.TypeError,rpe=function(e,t){var n=e.exec;if(ri(n)){var r=Ni(n,e,t);return r!==null&&Su(r),r}if(e4(e)==="RegExp")return Ni(LI,e,t);throw dQt("RegExp#exec called on incompatible receiver")};(function(e,t,n,r){var a=pl(e),o=!Xi(function(){var u={};return u[a]=function(){return 7},""[e](u)!=7}),i=o&&!Xi(function(){var u=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[sQt]=function(){return c},c.flags="",c[a]=/./[a]),c.exec=function(){return u=!0,null},c[a](""),!u});if(!o||!i||n){var s=wa(/./[a]),l=t(a,""[e],function(u,c,f,d,h){var A=wa(u),p=c.exec;return p===LI||p===VV.exec?o&&!h?{done:!0,value:s(c,f,d)}:{done:!0,value:A(f,c,d)}:{done:!1}});Bh(String.prototype,e,l[0]),Bh(VV,a,l[1])}r&&al(VV[a],"sham",!0)})("match",function(e,t,n){return[function(r){var a=uP(this),o=r==null?void 0:Kw(r,e);return o?Ni(o,r,a):new RegExp(r)[e](n4(a))},function(r){var a=Su(this),o=n4(r),i=n(t,a,o);if(i.done)return i.value;if(!a.global)return rpe(a,o);var s=a.unicode;a.lastIndex=0;for(var l,u=[],c=0;(l=rpe(a,o))!==null;){var f=n4(l[0]);u[c]=f,f===""&&(a.lastIndex=fQt(o,cOe(a.lastIndex),s)),c++}return c===0?null:u}]}),oS({global:!0},{globalThis:tr});var hQt=!Xi(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),ape=hae("IE_PROTO"),vq=tr.Object,pQt=vq.prototype,Gw=hQt?vq.getPrototypeOf:function(e){var t=lae(e);if(Fl(t,ape))return t[ape];var n=t.constructor;return ri(n)&&t instanceof n?n.prototype:t instanceof vq?pQt:null},AQt=tr.String,vQt=tr.TypeError,Z8=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=wa(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,a){return Su(r),function(o){if(typeof o=="object"||ri(o))return o;throw vQt("Can't set "+AQt(o)+" as a prototype")}(a),t?e(r,a):r.__proto__=a,r}}():void 0),gQt=tr.Array,mQt=Math.max,yQt=wa("".replace),bQt=wa("".split),wQt=wa([].join),gq=String(Error("zxcasd").stack),gOe=/\n\s*at [^:]*:[^\n]*/,_Qt=gOe.test(gq),CQt=/@[^\n]*\n/.test(gq)&&!/zxcasd/.test(gq),SQt=function(e,t){if(typeof e!="string")return e;if(_Qt)for(;t--;)e=yQt(e,gOe,"");else if(CQt)return wQt(function(n,r,a){for(var o,i,s,l,u=cP(n),c=pq(r,u),f=pq(a===void 0?u:a,u),d=gQt(mQt(f-c,0)),h=0;c<f;c++,h++)o=d,i=h,s=n[c],l=void 0,(l=uae(i))in o?u5.f(o,l,Ch(0,s)):o[l]=s;return d.length=h,d}(bQt(e,`
`),t),`
`);return e},BQt=function(e,t){Zc(t)&&"cause"in t&&al(e,"cause",t.cause)},ope=wa(wa.bind),mOe=function(e,t){return oae(e),t===void 0?e:ope?ope(e,t):function(){return e.apply(t,arguments)}},$8={},EQt=pl("iterator"),xQt=Array.prototype,TQt=pl("iterator"),ipe=function(e){if(e!=null)return Kw(e,TQt)||Kw(e,"@@iterator")||$8[fP(e)]},kQt=tr.TypeError,spe=function(e,t,n){var r,a;Su(e);try{if(!(r=Kw(e,"return"))){if(t==="throw")throw n;return n}r=Ni(r,e)}catch(o){a=!0,r=o}if(t==="throw")throw n;if(a)throw r;return Su(r),n},DQt=tr.TypeError,Mk=function(e,t){this.stopped=e,this.result=t},lpe=Mk.prototype,IQt=function(e,t,n){var r,a,o,i,s,l,u,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),A=mOe(t,c),p=function(v){return r&&spe(r,"normal",v),new Mk(!0,v)},g=function(v){return f?(Su(v),h?A(v[0],v[1],p):A(v[0],v[1])):h?A(v,p):A(v)};if(d)r=e;else{if(!(a=ipe(e)))throw DQt(fq(e)+" is not iterable");if(function(v){return v!==void 0&&($8.Array===v||xQt[EQt]===v)}(a)){for(o=0,i=cP(e);i>o;o++)if((s=g(e[o]))&&TI(lpe,s))return s;return new Mk(!1)}r=function(v,m){var y=arguments.length<2?ipe(v):m;if(oae(y))return Su(Ni(y,v));throw kQt(fq(v)+" is not iterable")}(e,a)}for(l=r.next;!(u=Ni(l,r)).done;){try{s=g(u.value)}catch(v){spe(r,"throw",v)}if(typeof s=="object"&&s&&TI(lpe,s))return s}return new Mk(!1)},MQt=function(e,t){return e===void 0?arguments.length<2?"":t:n4(e)},LQt=!Xi(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Ch(1,7)),e.stack!==7)}),OQt=pl("toStringTag"),OI=tr.Error,FQt=[].push,Ww=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,a=TI(zV,this);Z8?n=Z8(new OI(void 0),a?Gw(this):zV):(n=a?this:iS(zV),al(n,OQt,"Error")),al(n,"message",MQt(t,"")),LQt&&al(n,"stack",SQt(n.stack,1)),BQt(n,r);var o=[];return IQt(e,FQt,{that:o}),al(n,"errors",o),n};Z8?Z8(Ww,OI):dOe(Ww,OI);var zV=Ww.prototype=iS(OI.prototype,{constructor:Ch(1,Ww),message:Ch(1,""),name:Ch(1,"AggregateError")});oS({global:!0},{AggregateError:Ww});var mq=pl("unscopables"),yq=Array.prototype;yq[mq]==null&&u5.f(yq,mq,{configurable:!0,value:iS(null)});var r4,upe,cpe,NV=function(e){yq[mq][e]=!0},bq=pl("iterator"),yOe=!1;[].keys&&("next"in(cpe=[].keys())?(upe=Gw(Gw(cpe)))!==Object.prototype&&(r4=upe):yOe=!0);var PQt=r4==null||Xi(function(){var e={};return r4[bq].call(e)!==e});PQt&&(r4={}),ri(r4[bq])||Bh(r4,bq,function(){return this});var bae={IteratorPrototype:r4,BUGGY_SAFARI_ITERATORS:yOe},RQt=u5.f,fpe=pl("toStringTag"),dpe=function(e,t,n){e&&!Fl(e=n?e:e.prototype,fpe)&&RQt(e,fpe,{configurable:!0,value:t})},HQt=bae.IteratorPrototype,VQt=function(){return this},zQt=Aae.PROPER,NQt=Aae.CONFIGURABLE,hpe=bae.IteratorPrototype,sE=bae.BUGGY_SAFARI_ITERATORS,ly=pl("iterator"),QQt=function(){return this},bOe=function(e,t,n,r,a,o,i){(function(v,m,y,b){var _=m+" Iterator";v.prototype=iS(HQt,{next:Ch(+!b,y)}),dpe(v,_,!1),$8[_]=VQt})(n,t,r);var s,l,u,c=function(v){if(v===a&&p)return p;if(!sE&&v in h)return h[v];switch(v){case"keys":case"values":case"entries":return function(){return new n(this,v)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,h=e.prototype,A=h[ly]||h["@@iterator"]||a&&h[a],p=!sE&&A||c(a),g=t=="Array"&&h.entries||A;if(g&&(s=Gw(g.call(new e)))!==Object.prototype&&s.next&&(Gw(s)!==hpe&&(Z8?Z8(s,hpe):ri(s[ly])||Bh(s,ly,QQt)),dpe(s,f,!0)),zQt&&a=="values"&&A&&A.name!=="values"&&(NQt?al(h,"name","values"):(d=!0,p=function(){return Ni(A,this)})),a)if(l={values:c("values"),keys:o?p:c("keys"),entries:c("entries")},i)for(u in l)(sE||d||!(u in h))&&Bh(h,u,l[u]);else oS({target:t,proto:!0,forced:sE||d},l);return h[ly]!==p&&Bh(h,ly,p,{name:a}),$8[t]=p,l},UQt=X4.set,jQt=X4.getterFor("Array Iterator"),u7=bOe(Array,"Array",function(e,t){UQt(this,{type:"Array Iterator",target:l5(e),index:0,kind:t})},function(){var e=jQt(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");$8.Arguments=$8.Array,NV("keys"),NV("values"),NV("entries");var KQt=vOe.charAt,GQt=X4.
Sorry, wangEditor V5+ versions do not support IE browser.`),vpe(),gpe()):global&&(!((QV=global.navigator)===null||QV===void 0)&&QV.userAgent.match("QQBrowser"))&&(vpe(),gpe());function vpe(){typeof globalThis>"u"&&(window.globalThis=window)}function gpe(){Nzt===void 0&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}var mpe,PI=Array.isArray||function(e){return Zv(e)=="Array"},COe=function(){},XQt=[],SOe=o5("Reflect","construct"),wae=/^\s*(?:class|function)\b/,qQt=Ua(wae.exec),YQt=!wae.exec(COe),uy=function(e){if(!Ki(e))return!1;try{return SOe(COe,XQt,e),!0}catch{return!1}},JQt=!SOe||Ql(function(){var e;return uy(uy.call)||!uy(Object)||!uy(function(){e=!0})||e})?function(e){if(!Ki(e))return!1;switch(nS(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return YQt||!!qQt(wae,eOe(e))}:uy,ZQt=Ks("species"),ype=cr.Array,BOe=function(e,t){return new(function(n){var r;return PI(n)&&(r=n.constructor,(JQt(r)&&(r===ype||PI(r.prototype))||iu(r)&&(r=r[ZQt])===null)&&(r=void 0)),r===void 0?ype:r}(e))(t===0?0:t)},$Qt=Ks("species"),EOe=Ks("isConcatSpreadable"),bpe=cr.TypeError,eUt=mI>=51||!Ql(function(){var e=[];return e[EOe]=!1,e.concat()[0]!==e}),tUt=(mpe="concat",mI>=51||!Ql(function(){var e=[];return(e.constructor={})[$Qt]=function(){return{foo:1}},e[mpe](Boolean).foo!==1})),nUt=function(e){if(!iu(e))return!1;var t=e[EOe];return t!==void 0?!!t:PI(e)};Td({target:"Array",proto:!0,forced:!eUt||!tUt},{concat:function(e){var t,n,r,a,o,i=ZC(this),s=BOe(i,0),l=0;for(t=-1,r=arguments.length;t<r;t++)if(nUt(o=t===-1?i:arguments[t])){if(l+(a=eS(o))>9007199254740991)throw bpe("Maximum allowed index exceeded");for(n=0;n<a;n++,l++)n in o&&rq(s,l,o[n])}else{if(l>=9007199254740991)throw bpe("Maximum allowed index exceeded");rq(s,l++,o)}return s.length=l,s}});var wpe=tae.f,_pe=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],xOe={f:function(e){return _pe&&Zv(e)=="Window"?function(t){try{return wpe(t)}catch{return JLe(_pe)}}(e):wpe(nd(e))}},rUt=Ua([].slice),_ae={f:Ks},aUt=Up.f,ko=function(e){var t=ou.Symbol||(ou.Symbol={});jr(t,e)||aUt(t,e,{value:_ae.f(e)})},Cpe=Ua([].push),V1=function(e){var t=e==1,n=e==2,r=e==3,a=e==4,o=e==6,i=e==7,s=e==5||o;return function(l,u,c,f){for(var d,h,A=ZC(l),p=KLe(A),g=$re(u,c),v=eS(p),m=0,y=f||BOe,b=t?y(l,v):n||i?y(l,0):void 0;v>m;m++)if((s||m in p)&&(h=g(d=p[m],m,A),e))if(t)b[m]=h;else if(h)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Cpe(b,d)}else switch(e){case 4:return!1;case 7:Cpe(b,d)}return o?-1:r||a?a:b}},dP={forEach:V1(0),map:V1(1),filter:V1(2),some:V1(3),every:V1(4),find:V1(5),findIndex:V1(6),filterReject:V1(7)}.forEach,_l=lP("hidden"),Spe=Ks("toPrimitive"),oUt=s5.set,Bpe=s5.getterFor("Symbol"),r0=Object.prototype,z2=cr.Symbol,Y2=z2&&z2.prototype,Epe=cr.TypeError,WV=cr.QObject,cy=o5("JSON","stringify"),TOe=sP.f,N2=Up.f,kOe=xOe.f,iUt=qre.f,DOe=Ua([].push),a1=x3("symbols"),sS=x3("op-symbols"),XV=x3("string-to-symbol-registry"),qV=x3("symbol-to-string-registry"),sUt=x3("wks"),YV=!WV||!WV.prototype||!WV.prototype.findChild,wq=Ol&&Ql(function(){return r1(N2({},"a",{get:function(){return N2(this,"a",{value:7}).a}})).a!=7})?function(e,t,n){var r=TOe(r0,t);r&&delete r0[t],N2(e,t,n),r&&e!==r0&&N2(r0,t,r)}:N2,JV=function(e,t){var n=a1[e]=r1(Y2);return oUt(n,{type:"Symbol",tag:e,description:t}),Ol||(n.description=t),n},RI=function(e,t,n){e===r0&&RI(sS,t,n),Cu(e);var r=i5(t);return Cu(n),jr(a1,r)?(n.enumerable?(jr(e,_l)&&e[_l][r]&&(e[_l][r]=!1),n=r1(n,{enumerable:c0(0,!1)})):(jr(e,_l)||N2(e,_l,c0(1,{})),e[_l][r]=!0),wq(e,r,n)):N2(e,r,n)},xpe=function(e,t){Cu(e);var n=nd(t),r=nae(n).concat(_q(n));return dP(r,function(a){Ol&&!kl(IOe,n,a)||RI(e,a,n[a])}),e},IOe=function(e){var t=i5(e),n=kl(iUt,this,t);return!(this===r0&&jr(a1,t)&&!jr(sS,t))&&(!(n||!jr(this,t)||!jr(a1,t)||jr(this,_l)&&this[_l][t])||n)},Tpe=function(e,t){var n=nd(e),r=i5(t);if(n!==r0||!jr(a1,r)||jr(sS,r)){var a=TOe(n,r);return!a||!jr(a1,r)||jr(n,_l)&&n[_l][r]||(a.enumerable=!0),a}},kpe=function(e){var t=kOe(nd(e)),n=[];return
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/function Dpe(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ts(e){var t,n;return Dpe(e)!==!1&&((t=e.constructor)===void 0||Dpe(n=t.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1)}function $c(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(a){return"'"+a+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function q4(e){return!!e&&!!e[Bu]}function Y4(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)===wUt}(e)||Array.isArray(e)||!!e[Hpe]||!!e.constructor[Hpe]||Cae(e)||Sae(e))}function Xw(e,t,n){n===void 0&&(n=!1),em(e)===0?(n?Object.keys:kae)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,a){return t(a,r,e)})}function em(e){var t=e[Bu];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Cae(e)?2:Sae(e)?3:0}function Cq(e,t){return em(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function LOe(e,t,n){var r=em(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function Cae(e){return yUt&&e instanceof Map}function Sae(e){return bUt&&e instanceof Set}function XA(e){return e.o||e.t}function Bae(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=_Ut(e);delete t[Bu];for(var n=kae(t),r=0;r<n.length;r++){var a=n[r],o=t[a];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[a]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),t)}function Eae(e,t){return t===void 0&&(t=!1),xae(e)||q4(e)||!Y4(e)||(em(e)>1&&(e.set=e.add=e.clear=e.delete=vUt),Object.freeze(e),t&&Xw(e,function(n,r){return Eae(r,!0)},!0)),e}function vUt(){$c(2)}function xae(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Ud(e){var t=CUt[e];return t||$c(18,e),t}function Ipe(){return qw}function ZV(e,t){t&&(Ud("Patches"),e.u=[],e.s=[],e.v=t)}function HI(e){Sq(e),e.p.forEach(gUt),e.p=null}function Sq(e){e===qw&&(qw=e.l)}function Mpe(e){return qw={p:[],l:qw,h:e,m:!0,_:0}}function gUt(e){var t=e[Bu];t.i===0||t.i===1?t.j():t.O=!0}function $V(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||Ud("ES5").S(t,e,r),r?(n[Bu].P&&(HI(t),$c(4)),Y4(e)&&(e=VI(t,e),t.l||zI(t,e)),t.u&&Ud("Patches").M(n[Bu],e,t.u,t.s)):e=VI(t,n,[]),HI(t),t.u&&t.v(t.u,t.s),e!==OOe?e:void 0}function VI(e,t,n){if(xae(t))return t;var r=t[Bu];if(!r)return Xw(t,function(o,i){return Lpe(e,r,t,o,i,n)},!0),t;if(r.A!==e)return t;if(!r.P)return zI(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var a=r.i===4||r.i===5?r.o=Bae(r.k):r.o;Xw(r.i===3?new Set(a):a,function(o,i){return Lpe(e,r,a,o,i,n)}),zI(e,a,!1),n&&e.u&&Ud("Patches").R(r,n,e.u,e.s)}return r.o}function Lpe(e,t,n,r,a,o){if(q4(a)){var i=VI(e,a,o&&t&&t.i!==3&&!Cq(t.D,r)?o.concat(r):void 0);if(LOe(n,r,i),!q4(i))return;e.m=!1}if(Y4(a)&&!xae(a)){if(!e.h.F&&e._<1)return;VI(e,a),t&&t.A.l||zI(e,a)}}function zI(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&Eae(t,n)}function ez(e,t){var n=e[Bu];return(n?XA(n):e)[t]}function Ope(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 Bq(e){e.P||(e.P=!0,e.l&&Bq(e.l))}function tz(e){e.o||(e.o=Bae(e.t))}function Eq(e,t,n){var r=Cae(t)?Ud("MapSet").N(t,n):Sae(t)?Ud("MapSet").T(t,n):e.g?function(a,o){var i=Array.isArray(a),s={i:i?1:0,A:o?o.A:Ipe(),P:!1,I:!1,D:{},l:o,t:a,k:null,o:null,j:null,C:!1},l=s,u=Lk;i&&(l=[s],u=Ok);var c=Proxy.revocable(l,u),f=c.revoke,d=c.proxy;return s.k=d,s.j=f,d}(t,n):Ud("ES5").J(t,n);return(n?n.A:Ipe()).p.push(r),r}function mUt(e){return q4(e)||$c(22,e),function t(n){if(!Y4(n))return n;var r,a=n[Bu],o=em(n);if(a){if(!a.P&&(a.i<4||!Ud("ES5").K(a)))return a.t;a.I=!0,r=Fpe(n,o),a.I=!1}else r=Fpe(n,o);return Xw(r,function(i,s){a&&function(l,u){return em(l)===2?l.get(u):l[u]}(a.t,i)===s||LOe(r,i,t(s))}),o===
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 f=r(e).pop();if(Zt.has(e,f)){var d=ye.node(e,f);e.normalizeNode(d)}c++}})}},parent(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=ye.path(e,t,n),a=at.parent(r);return ye.node(e,a)},path(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:r,edge:a}=n;if(at.isPath(t)){if(a==="start"){var[,o]=Zt.first(e,t);t=o}else if(a==="end"){var[,i]=Zt.last(e,t);t=i}}return yt.isRange(t)&&(t=a==="start"?yt.start(t):a==="end"?yt.end(t):at.common(t.anchor.path,t.focus.path)),hr.isPoint(t)&&(t=t.path),r!=null&&(t=t.slice(0,r)),t},hasPath:(e,t)=>Zt.has(e,t),pathRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,a={current:t,affinity:r,unref(){var{current:o}=a;return ye.pathRefs(e).delete(a),a.current=null,o}};return ye.pathRefs(e).add(a),a},pathRefs(e){var t=Qpe.get(e);return t||(t=new Set,Qpe.set(e,t)),t},point(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:r="start"}=n;if(at.isPath(t)){var a;if(r==="end"){var[,o]=Zt.last(e,t);a=o}else{var[,i]=Zt.first(e,t);a=i}var s=Zt.get(e,a);if(!fn.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:a,offset:r==="end"?s.text.length:0}}if(yt.isRange(t)){var[l,u]=yt.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,a={current:t,affinity:r,unref(){var{current:o}=a;return ye.pointRefs(e).delete(a),a.current=null,o}};return ye.pointRefs(e).add(a),a},pointRefs(e){var t=Upe.get(e);return t||(t=new Set,Upe.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:a=!1,voids:o=!1}=t;if(n){var i=ye.range(e,n),[s,l]=yt.edges(i),u=a?l:s,c=!1,f="",d=0,h=0,A=0;for(var[p,g]of ye.nodes(e,{at:n,reverse:a,voids:o})){if(xn.isElement(p)){if(!o&&e.isVoid(p)){yield ye.start(e,g);continue}if(e.isInline(p))continue;if(ye.hasInlines(e,p)){var v=at.isAncestor(g,l.path)?l:ye.end(e,g),m=at.isAncestor(g,s.path)?s:ye.start(e,g);f=ye.string(e,{anchor:m,focus:v},{voids:o}),c=!0}}if(fn.isText(p)){var y=at.equals(g,u.path);for(y?(h=a?u.offset:p.text.length-u.offset,A=u.offset):(h=p.text.length,A=a?h:0),(y||c||r==="offset")&&(yield{path:g,offset:A},c=!1);;){if(d===0){if(f==="")break;d=b(f,r,a),f=Tq(f,d,a)[1]}if(A=a?A-d:A+d,(h-=d)<0){d=-h;break}d=0,yield{path:g,offset:A}}}}}function b(_,C,S){return C==="character"?xq(_,S):C==="word"?function(B){for(var x=arguments.length>1&&arguments[1]!==void 0&&arguments[1],E=0,k=!1;B.length>0;){var D=xq(B,x),[F,I]=Tq(B,D,x);if(DUt(F,I,x))k=!0,E+=D;else{if(k)break;E+=D}B=I}return E}(_,S):C==="line"||C==="block"?_.length:1}},previous(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:a,at:o=e.selection}=t;if(o){var i=ye.before(e,o,{voids:r});if(i){var[,s]=ye.first(e,[]),l=[i.path,s];if(at.isPath(o)&&o.length===0)throw new Error("Cannot get the previous node from the root node!");if(a==null)if(at.isPath(o)){var[u]=ye.parent(e,o);a=f=>u.children.includes(f)}else a=()=>!0;var[c]=ye.nodes(e,{reverse:!0,at:l,match:a,mode:n,voids:r});return c}}},range:(e,t,n)=>yt.isRange(t)&&!n?t:{anchor:ye.start(e,t),focus:ye.end(e,n||t)},rangeRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,a={current:t,affinity:r,unref(){var{current:o}=a;return ye.rangeRefs(e).delete(a),a.current=null,o}};return ye.rangeRefs(e).add(a),a},rangeRefs(e){var t=jpe.get(e);return t||(t=new Set,jpe.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){Npe.set(e,t)},start:(e,t)=>ye.point(e,t,{edge:"start"}),string(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,a=ye.range(e,t),[o,i]=yt.edges(a),s="";for(var[l,u]of ye.nodes(e,{at:a,match:fn.isText,voids:r})){var c=l.text;at.equals(u,i.path)&&(c=c.slice(0,i.offset)),at.equals(u,o.path)&&(c=c.slice(o.offset)),s+=c}return s},unhangRange(e,t){var
* 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 zAe(e,t){const n=/\$/g;let r=[e];if(t==null)return r;for(const a of Object.keys(t))if(a!=="_"){let o=t[a];typeof o=="string"&&(o=n[Symbol.replace](o,"$$$$")),r=dGt(r,new RegExp(`%\\{${a}\\}`,"g"),o)}return r}var dFe=(i6=fGt("apply"),class{constructor(e){Object.defineProperty(this,i6,{value:hGt}),this.locale={strings:{},pluralize:t=>t===1?0:1},Array.isArray(e)?e.forEach(VAe(this,i6)[i6],this):VAe(this,i6)[i6](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!function(r,a){return Object.prototype.hasOwnProperty.call(r,a)}(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 zAe(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 zAe(n,t)}});function hGt(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 hFe=function(){var e={},t=e._fns={};return e.emit=function(n,r,a,o,i,s,l){var u=function(c){for(var f=t[c]?t[c]:[],d=c.indexOf(":"),h=d===-1?[c]:[c.substring(0,d),c.substring(d+1)],A=Object.keys(t),p=0,g=A.length;p<g;p++){var v=A[p];if(v==="*"&&(f=f.concat(t[v])),h.length===2&&h[0]===v){f=f.concat(t[v]);break}}return f}(n);u.length&&function(c,f,d){for(var h=0,A=f.length;h<A&&f[h];h++)f[h].event=c,f[h].apply(f[h],d)}(n,u,[r,a,o,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 a(){r.apply(this,arguments),e.off(n,a)})},e.off=function(n,r){var a=[];if(n&&r)for(var o=this._fns[n],i=0,s=o?o.length:0;i<s;i++)o[i]!==r&&a.push(o[i]);a.length?this._fns[n]=a:delete this._fns[n]},e},pGt={urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"};let{urlAlphabet:AGt}=pGt,NAe=e=>crypto.getRandomValues(new Uint8Array(e)),QAe=(e,t,n)=>{let r=(2<<Math.log(e.length-1)/Math.LN2)-1,a=-~(1.6*r*t/e.length);return()=>{let o="";for(;;){let i=n(a),s=a;for(;s--;)if(o+=e[i[s]&r]||"",o.length===t)return o}}};var vGt={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)=>QAe(e,t,NAe),customRandom:QAe,urlAlphabet:AGt,random:NAe},dz=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 a=n[r];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+a:(t?"-":"")+e.toFixed(1)+" "+a};function pFe(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}pFe.prototype.match=function(e){var t,n,r=!0,a=this.parts,o=a.length;if(typeof e=="string"||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||"").split(this.separator),t=0;r&&t<o;t++)a[t]!=="*"&&(r=t<n.length&&a[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 gGt=/[\/\+\.]/,mGt=function(e,t){function n(r){var a=function(o,i,s){var l=new pFe(o,s||/[\/\.]/);return i!==void 0?l.match(i):l}(r,e,gGt);return a&&a.length>=2}return t?n(t.split(";")[0]):n},yGt=0;function bGt(e){return"__private_"+yGt+++"_"+e}var hz=bGt("publish");class AFe{constructor(){Object.defineProperty(this,hz,{value:wGt}),this.state={},this.callbacks=[]}getState(){return this.state}setState(t){const n={...this.state},r={...this.state,...t};this.state=r,function(a,o){if(!Object.prototype.hasOwnProperty.call(a,o))throw new TypeError("attempted to use private field on non-instance");return a}(this,hz)[hz](n,r,t)}subscribe(t){return this.callbacks.push(t),()=>{this.callbacks.splice(this.callbacks.indexOf(t),1)}}}function wGt(){for(var e=argument
id: ${r[o].id}
type: ${r[o].type}`)}),r.length>0&&Tn(this,gy)[gy](),a.length>0){let o=`Multiple errors occurred while adding files:
`;if(a.forEach(i=>{o+=`
* ${i.message}`}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:a.length}),details:o},"error",this.opts.infoTimeout),typeof AggregateError=="function")throw new AggregateError(a,o);{const i=new Error(o);throw i.errors=a,i}}}removeFiles(t,n){const{files:r,currentUploads:a}=this.getState(),o={...r},i={...a},s=Object.create(null);function l(f){return s[f]===void 0}t.forEach(f=>{r[f]&&(s[f]=r[f],delete o[f])}),Object.keys(i).forEach(f=>{const d=a[f].fileIDs.filter(l);d.length!==0?i[f]={...a[f],fileIDs:d}:delete i[f]});const u={currentUploads:i,files:o};Object.keys(o).length===0&&(u.allowNewUpload=!0,u.error=null,u.recoveredState=null),this.setState(u),this.calculateTotalProgress();const c=Object.keys(s);c.forEach(f=>{this.emit("file-removed",s[f],n)}),c.length>5?this.log(`Removed ${c.length} files`):this.log(`Removed files: ${c.join(", ")}`)}removeFile(t,n){n===void 0&&(n=null),this.removeFiles([t],n)}pauseResume(t){if(!this.getState().capabilities.resumableUploads||this.getFile(t).uploadComplete)return;const 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(a=>t[a].error);if(n.forEach(a=>{const o={...t[a],isPaused:!1,error:null};t[a]=o}),this.setState({files:t,error:null}),this.emit("retry-all",n),n.length===0)return Promise.resolve({successful:[],failed:[]});const r=Tn(this,pd)[pd](n,{forceAllowNewUpload:!0});return Tn(this,Ad)[Ad](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=Tn(this,pd)[pd]([t],{forceAllowNewUpload:!0});return Tn(this,Ad)[Ad](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((f,d)=>f+d.progress.percentage,0),c=Math.round(u/l*100);return void this.setState({totalProgress:c})}let a=n.reduce((l,u)=>l+u.progress.bytesTotal,0);const o=a/n.length;a+=o*r.length;let i=0;n.forEach(l=>{i+=l.progress.bytesUploaded}),r.forEach(l=>{i+=o*(l.progress.percentage||0)/100});let s=a===0?0:Math.round(i/a*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 ${a} v${t.VERSION}`),r.type in Tn(this,Zi)[Zi]?Tn(this,Zi)[Zi][r.type].push(r):Tn(this,Zi)[Zi][r.type]=[r],r.install(),this}getPlugin(t){for(const n of Object.values(Tn(this,Zi)[Zi])){const r=n.find(a=>a.id===t);if(r!=null)return r}}[mFe](t){return Tn(this,Zi)[Zi][t]}iteratePlugins(t){Object.values(Tn(this,Zi)[Zi]).flat(1).forEach(t)}removePlugin(t){this.log(`Removing plugin ${t.id}`),this.emit("plugin-remove",t),t.uninstall&&t.uninstall();const n=Tn(this,Zi)[Zi][t.type],r=n.findIndex(o=>o.id===t.id);r!==-1&&n.splice(r,1);const a={plugins:{...this.getState().plugins,[t.id]:void 0}};this.setState(a)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),Tn(this,py)[py](),this.iteratePlugins(t=>{this.removePlugin(t)}),typeof window<"u"&&window.removeEventListener&&(window.removeEventListener("online",Tn(this,Jc)[Jc]),window.removeEventListener("offline",Tn(this,Jc)[Jc]))}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 a=typeof t=="object";this.setState({info:[...this.getState().info,{type:n,message:a?t.message:t,details:a?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]?Tn(this,Ad)[Ad](t):(Tn(this,Dv)[Dv](t),Promise.reject(new Error("Nonexistent upload")))}[yFe](){return Tn(this,pd)[pd](...arguments)}addResultData(t,n){if(!Tn(this,mz)[mz](t))return void this.log(`Not setting result for an upload that has been removed: ${t}`);const{currentUploads:r}=this.getState(),a={...r[t],result:{...r[t].result,...n}};this.setState({currentUploads:{...r,[t]:a}})}upload(){var t;(t=Tn(this,Zi)[Zi].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(()=>{Tn(this,Az)[Az](n),Tn(this,vz)[vz](n)}).catch(a=>{Tn(this,vi)[vi](a)}).then(()=>{const{currentUploads:a}=this.getState(),o=Object.values(a).flatMap(l=>l.fileIDs),i=[];Object.keys(n).forEach(l=>{const u=this.getFile(l);u.progress.uploadStarted||o.indexOf(l)!==-1||i.push(u.id)});const s=Tn(this,pd)[pd](i);return Tn(this,Ad)[Ad](s)}).catch(a=>{Tn(this,vi)[vi](a,{showInformer:!1})}))}}function kGt(e,t){t===void 0&&(t=this.getFiles());const{maxFileSize:n,minFileSize:r,maxTotalFileSize:a,maxNumberOfFiles:o,allowedFileTypes:i}=this.opts.restrictions;if(o&&t.length+1>o)throw new sf(`${this.i18n("youCanOnlyUploadX",{smart_count:o})}`);if(i&&!i.some(s=>s.indexOf("/")>-1?!!e.type&&mGt(e.type.replace(/;.*?$/,""),s):!(s[0]!=="."||!e.extension)&&e.extension.toLowerCase()===s.substr(1).toLowerCase())){const s=i.join(", ");throw new sf(this.i18n("youCanOnlyUploadFileTypes",{types:s}))}if(a&&e.size!=null){let s=0;if(s+=e.size,t.forEach(l=>{s+=l.size}),s>a)throw new sf(this.i18n("exceedsSize",{size:dz(a),file:e.name}))}if(n&&e.size!=null&&e.size>n)throw new sf(this.i18n("exceedsSize",{size:dz(n),file:e.name}));if(r&&e.size!=null&&e.size<r)throw new sf(this.i18n("inferiorSize",{size:dz(r)}))}function DGt(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new sf(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:t})}`)}function IGt(e){const{requiredMetaFields:t}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],a=[];for(let o=0;o<t.length;o++)if(!n.call(e.meta,t[o])||e.meta[t[o]]===""){const i=new sf(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})}`);r.push(i),a.push(t[o]),Tn(this,vi)[vi](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 Cve(e){return Object.prototype.toString.call(e)==="[object Object]"}ro({target:"Object",stat:!0,forced:EXt},{keys:function(e){return l8(jp(e))}});var xXt={isHistory(e){return Cve(t=e)!==!1&&((n=t.constructor)===void 0||Cve(r=n.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(e.redos.length===0||J2.isOperationList(e.redos[0]))&&(e.undos.length===0||J2.isOperationList(e.undos[0]));var t,n,r}},Iz=new WeakMap,Mz=new WeakMap,Pg={isHistoryEditor:e=>xXt.isHistory(e.history)&&ye.isEditor(e),isMerging:e=>Mz.get(e),isSaving:e=>Iz.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=Pg.isMerging(e);Mz.set(e,!1),t(),Mz.set(e,n)},withoutSaving(e,t){var n=Pg.isSaving(e);Iz.set(e,!1),t(),Iz.set(e,n)}},TXt=Kt.String,Ba=function(e){if(_P(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return TXt(e)},Xae=function(){var e=No(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},kXt=c5.PROPER,Zq=RegExp.prototype,VFe=Zq.toString,DXt=In(Xae),IXt=ra(function(){return VFe.call({source:"a",flags:"b"})!="/a/b"}),MXt=kXt&&VFe.name!="toString";(IXt||MXt)&&Pl(RegExp.prototype,"toString",function(){var e=No(this),t=Ba(e.source),n=e.flags;return"/"+t+"/"+Ba(n===void 0&&Z4(Zq,e)&&!("flags"in Zq)?DXt(e):n)},{unsafe:!0});var vE,LXt=zi?Object.defineProperties:function(e,t){No(e);for(var n,r=Kp(t),a=l8(t),o=a.length,i=0;o>i;)M0.f(e,n=a[i++],r[n]);return e},$q=M3("document","documentElement"),zFe=Gae("IE_PROTO"),Lz=function(){},NFe=function(e){return"<script>"+e+"<\/script>"},Sve=function(e){e.write(NFe("")),e.close();var t=e.parentWindow.Object;return e=null,t},Hk=function(){try{vE=new ActiveXObject("htmlfile")}catch{}var e,t;Hk=typeof document<"u"?document.domain&&vE?Sve(vE):((t=$w("iframe")).style.display="none",$q.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(NFe("document.F=Object")),e.close(),e.F):Sve(vE);for(var n=aM.length;n--;)delete Hk.prototype[aM[n]];return Hk()};wP[zFe]=!0;var BP=Object.create||function(e,t){var n;return e!==null?(Lz.prototype=No(e),n=new Lz,Lz.prototype=null,n[zFe]=e):n=Hk(),t===void 0?n:LXt(n,t)},eY=io("unscopables"),tY=Array.prototype;tY[eY]==null&&M0.f(tY,eY,{configurable:!0,value:BP(null)});var db=function(e){tY[eY][e]=!0},OXt=PFe.includes;ro({target:"Array",proto:!0},{includes:function(e){return OXt(this,e,arguments.length>1?arguments[1]:void 0)}}),db("includes");var FXt=io("match"),qae=function(e){var t;return Ia(e)&&((t=e[FXt])!==void 0?!!t:d0(e)=="RegExp")},PXt=Kt.TypeError,Yae=function(e){if(qae(e))throw PXt("The method doesn't accept regular expressions");return e},RXt=io("match"),Jae=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[RXt]=!1,"/./"[e](t)}catch{}}return!1},HXt=In("".indexOf);ro({target:"String",proto:!0,forced:!Jae("includes")},{includes:function(e){return!!~HXt(Ba(Dc(this)),Ba(Yae(e)),arguments.length>1?arguments[1]:void 0)}});var VXt=/"/g,zXt=In("".replace);ro({target:"String",proto:!0,forced:ra(function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})},{anchor:function(e){return t=e,n=Ba(Dc(this)),r="<a",(r+=' name="'+zXt(Ba(t),VXt,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var nY=function(e,t,n){var r,a;No(e);try{if(!(r=$4(e,"return"))){if(t==="throw")throw n;return n}r=Kr(r,e)}catch(o){a=!0,r=o}if(t==="throw")throw n;if(a)throw r;return No(r),n},NXt=function(e,t,n,r){try{return r?t(No(n)[0],n[1]):t(n)}catch(a){nY(e,"throw",a)}},hm={},QXt=io("iterator"),UXt=Array.prototype,QFe=function(e){return e!==void 0&&(hm.Array===e||UXt[QXt]===e)},n_=function(e,t,n){var r=Kae(t);r in e?M0.f(e,r,yP(0,n)):e[r]=n},jXt=io("iterator"),Zae=function(e){if(e!=null)return $4(e,jXt)||$4(e,"@@iterator")||hm[_P(e)]},KXt=Kt.TypeError,UFe=function(e,t){var n=arguments.length<2?Zae(e):t;if(fp(n))return No(Kr(n,e));throw KXt(mP(e)+" is not iterable")},Bve=Kt.Array,jFe=io("iterator"),KFe=!1;try{var GXt=0,Eve={next:function(){return{done:!!GXt++}},return:function()
`)&&e.flags==="s")}),_qt=Kt.RegExp,aoe=ra(function(){var e=_qt("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Cqt=Vs.get,Sqt=Nae("native-string-replace",String.prototype.replace),sM=RegExp.prototype.exec,iY=sM,Bqt=In("".charAt),Eqt=In("".indexOf),xqt=In("".replace),Fz=In("".slice),Pz=function(){var e=/a/,t=/b*/g;return Kr(sM,e,"a"),Kr(sM,t,"a"),e.lastIndex!==0||t.lastIndex!==0}(),Fve=xP.BROKEN_CARET,Rz=/()??/.exec("")[1]!==void 0;(Pz||Rz||Fve||roe||aoe)&&(iY=function(e){var t,n,r,a,o,i,s,l=this,u=Cqt(l),c=Ba(e),f=u.raw;if(f)return f.lastIndex=l.lastIndex,t=Kr(iY,f,c),l.lastIndex=f.lastIndex,t;var d=u.groups,h=Fve&&l.sticky,A=Kr(Xae,l),p=l.source,g=0,v=c;if(h&&(A=xqt(A,"y",""),Eqt(A,"g")===-1&&(A+="g"),v=Fz(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&Bqt(c,l.lastIndex-1)!==`
`)&&(p="(?: "+p+")",v=" "+v,g++),n=new RegExp("^(?:"+p+")",A)),Rz&&(n=new RegExp("^"+p+"$(?!\\s)",A)),Pz&&(r=l.lastIndex),a=Kr(sM,h?n:l,v),h?a?(a.input=Fz(a.input,g),a[0]=Fz(a[0],g),a.index=l.lastIndex,l.lastIndex+=a[0].length):l.lastIndex=0:Pz&&a&&(l.lastIndex=l.global?a.index+a[0].length:r),Rz&&a&&a.length>1&&Kr(Sqt,a[0],n,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(a[o]=void 0)}),a&&d)for(a.groups=i=BP(null),o=0;o<d.length;o++)i[(s=d[o])[0]]=a[s[1]];return a});var r_=iY;ro({target:"RegExp",proto:!0,forced:/./.exec!==r_},{exec:r_});var ooe=Function.prototype,Pve=ooe.apply,Tqt=ooe.bind,Rve=ooe.call,ioe=typeof Reflect=="object"&&Reflect.apply||(Tqt?Rve.bind(Pve):function(){return Rve.apply(Pve,arguments)}),kqt=io("species"),Hz=RegExp.prototype,soe=function(e,t,n,r){var a=io(e),o=!ra(function(){var u={};return u[a]=function(){return 7},""[e](u)!=7}),i=o&&!ra(function(){var u=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[kqt]=function(){return c},c.flags="",c[a]=/./[a]),c.exec=function(){return u=!0,null},c[a](""),!u});if(!o||!i||n){var s=In(/./[a]),l=t(a,""[e],function(u,c,f,d,h){var A=In(u),p=c.exec;return p===r_||p===Hz.exec?o&&!h?{done:!0,value:s(c,f,d)}:{done:!0,value:A(f,c,d)}:{done:!1}});Pl(String.prototype,e,l[0]),Pl(Hz,a,l[1])}r&&f0(Hz[a],"sham",!0)},Dqt=GFe.charAt,loe=function(e,t,n){return t+(n?Dqt(e,t).length:1)},Iqt=Math.floor,Vz=In("".charAt),Mqt=In("".replace),zz=In("".slice),Lqt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Oqt=/\$([$&'`]|\d{1,2})/g,Fqt=function(e,t,n,r,a,o){var i=n+e.length,s=r.length,l=Oqt;return a!==void 0&&(a=jp(a),l=Lqt),Mqt(o,l,function(u,c){var f;switch(Vz(c,0)){case"$":return"$";case"&":return e;case"`":return zz(t,0,n);case"'":return zz(t,i);case"<":f=a[zz(c,1,-1)];break;default:var d=+c;if(d===0)return u;if(d>s){var h=Iqt(d/10);return h===0?u:h<=s?r[h-1]===void 0?Vz(c,1):r[h-1]+Vz(c,1):u}f=r[d-1]}return f===void 0?"":f})},Pqt=Kt.TypeError,a_=function(e,t){var n=e.exec;if(ha(n)){var r=Kr(n,e,t);return r!==null&&No(r),r}if(d0(e)==="RegExp")return Kr(r_,e,t);throw Pqt("RegExp#exec called on incompatible receiver")},sY=io("replace"),Rqt=Math.max,Hqt=Math.min,Vqt=In([].concat),Nz=In([].push),Hve=In("".indexOf),Vve=In("".slice),zqt="a".replace(/./,"$0")==="$0",zve=!!/./[sY]&&/./[sY]("a","$0")==="";soe("replace",function(e,t,n){var r=zve?"$":"$0";return[function(a,o){var i=Dc(this),s=a==null?void 0:$4(a,sY);return s?Kr(s,a,i,o):Kr(t,Ba(i),a,o)},function(a,o){var i=No(this),s=Ba(a);if(typeof o=="string"&&Hve(o,r)===-1&&Hve(o,"$<")===-1){var l=n(t,i,s,o);if(l.done)return l.value}var u=ha(o);u||(o=Ba(o));var c=i.global;if(c){var f=i.unicode;i.lastIndex=0}for(var d=[];;){var h=a_(i,s);if(h===null||(Nz(d,h),!c))break;Ba(h[0])===""&&(i.lastIndex=loe(s,f5(i.lastIndex),f))}for(var A,p="",g=0,v=0;v<d.length;v++){for(var m=Ba((h=d[v])[0]),y=Rqt(Hqt(dS(h.index),s.length),0),b=[],_=1;_<h.length;_++)Nz(b,(A=h[_])===void 0?A:String(A));var C=h.groups;if(u){var S=Vqt([m],b,y,s);C!==void 0&&Nz(S,C);var B=Ba(ioe(o,void 0,S))}else B=Fqt(m,s,y,b,C,o);y>=g&&(p+=Vve(s,g,y)+B,g=y+m.length)}return p+Vve(s,g)}]},!!ra(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!zqt||zve);/*! *****************************************************************************
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 lY=function(e,t){return lY=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},lY(e,t)};function h5(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}lY(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var rc=function(){return rc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},rc.apply(this,arguments)};function ac(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 Hr(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,a,o=n.call(e),i=[];try{for(;(t===void 0||t-- >0)&&!(r=o.next()).done;)i.push(r.value)}catch(s){a={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(a)throw a.error}}return i}function uY(e,t){for(var n=0,r=t.length,a=e.length;n<r;n++,a++)e[a]=t[n];return e}var Nqt=0,Nve=function(){this.id=""+Nqt++},Qqt=Vs.set,Uqt=Vs.getterFor("Array Iterator"),d7=toe(Array,"Array",function(e,t){Qqt(this,{type:"Array Iterator",target:Kp(e),index:0,kind:t})},function(){var e=Uqt(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");hm.Arguments=hm.Array,db("keys"),db("values"),db("entries");var Am=function(e,t,n){for(var r in t)Pl(e,r,t[r],n);return e},jqt=Kt.Array,Kqt=Math.max,cY=function(e,t,n){for(var r=L3(e),a=dm(t,r),o=dm(n===void 0?r:n,r),i=jqt(Kqt(o-a,0)),s=0;a<o;a++,s++)n_(i,s,e[a]);return i.length=s,i},Qve=e_.f,Uve=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Gqt={f:function(e){return Uve&&d0(e)=="Window"?function(t){try{return Qve(t)}catch{return cY(Uve)}}(e):Qve(Kp(e))}},jve=ra(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),mE=Object.isExtensible,Iv=ra(function(){mE(1)})||jve?function(e){return!!Ia(e)&&(!jve||d0(e)!="ArrayBuffer")&&(!mE||mE(e))}:mE,Wqt=!ra(function(){return Object.isExtensible(Object.preventExtensions({}))}),TP=fS(function(e){var t=M0.f,n=!1,r=Qae("meta"),a=0,o=function(s){t(s,r,{value:{objectID:"O"+a++,weakData:{}}})},i=e.exports={enable:function(){i.enable=function(){},n=!0;var s=e_.f,l=In([].splice),u={};u[r]=1,s(u).length&&(e_.f=function(c){for(var f=s(c),d=0,h=f.length;d<h;d++)if(f[d]===r){l(f,d,1);break}return f},ro({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Gqt.f}))},fastKey:function(s,l){if(!Ia(s))return typeof s=="symbol"?s:(typeof s=="string"?"S":"P")+s;if(!Fo(s,r)){if(!Iv(s))return"F";if(!l)return"E";o(s)}return s[r].objectID},getWeakData:function(s,l){if(!Fo(s,r)){if(!Iv(s))return!0;if(!l)return!1;o(s)}return s[r].weakData},onFreeze:function(s){return Wqt&&n&&Iv(s)&&!Fo(s,r)&&o(s),s}};wP[r]=!0}),Xqt=Kt.TypeError,Vk=function(e,t){this.stopped=e,this.result=t},Kve=Vk.prototype,o_=function(e,t,n){var r,a,o,i,s,l,u,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),A=e3(t,c),p=function(v){return r&&nY(r,"normal",v),new Vk(!0,v)},g=function(v){return f?(No(v),h?A(v[0],v[1],p):A(v[0],v[1])):h?A(v,p):A(v)};if(d)r=e;else{if(!(a=Zae(e)))throw Xqt(mP(e)+" is not iterable");if(QFe(a)){for(o=0,i=L3(e);i>o;o++)if((s=g(e[o]))&&Z4(Kve,s))return s;return new Vk(!1)}r=UFe(e,a)}for(l=r.next;!(u=Kr(l,r)).done;){try{s=g(u.value)}catch(v){nY(r,"throw",v)}if(typeof s=="object"&&s&&Z4(Kve,s))return s}return new Vk(!1)},qqt=Kt.TypeError,kP=function(e,t){if(Z4(
`)}return a};function aPe(e,t){if(!(e instanceof HTMLElement&&e.dataset.slateVoid==="true"))for(var n=e.childNodes,r=n.length;r--;){var a=n[r],o=a.nodeType;o==3?t(a,e):o!=1&&o!=9&&o!=11||aPe(a,t)}}function r4e(e){if(e.length===0)return"";var t=e[0];return t.nodeType!==lf.ELEMENT_NODE?"":t.tagName.toLowerCase()}(ms=lf||(lf={}))[ms.ELEMENT_NODE=1]="ELEMENT_NODE",ms[ms.TEXT_NODE=3]="TEXT_NODE",ms[ms.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",ms[ms.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",ms[ms.COMMENT_NODE=8]="COMMENT_NODE",ms[ms.DOCUMENT_NODE=9]="DOCUMENT_NODE",ms[ms.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",ms[ms.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE";var gY=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),hb=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Ty=typeof navigator<"u"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),lYt=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),uYt=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),mY=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),ky=!uYt&&!lYt&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",ze={getWindow:function(e){var t=tPe.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=Nk.get(t);return n||(n=new Nve,Nk.set(t,n)),n},setNewKey:function(e){var t=new Nve;Nk.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var a=vm.get(r);if(a==null){if(ye.isEditor(r))return n;break}var o=i_.get(r);if(o==null)break;n.unshift(o),r=a}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=ze.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&n.getSelection!=null?n:t.ownerDocument},getParentNode:function(e,t){return vm.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&r!=null;){var a=ze.getParentNode(e,r);if(a==null)break;n.push(a),r=a}return n},getTopNode:function(e,t){var n=[ze.findPath(e,t)[0]];return Zt.get(e,n)},toDOMNode:function(e,t){var n;if(ye.isEditor(t))n=foe.get(e);else{var r=ze.findKey(e,t);n=AY.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,a=n.editable,o=a!==void 0&&a,i=ze.toDOMNode(e,e);try{r=Yc(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&&(!o||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))},toDOMRange:function(e,t){var n=t.anchor,r=t.focus,a=yt.isBackward(t),o=ze.toDOMPoint(e,n),i=yt.isCollapsed(t)?o:ze.toDOMPoint(e,r),s=ze.getWindow(e).document.createRange(),l=Hr(a?i:o,2),u=l[0],c=l[1],f=Hr(a?o:i,2),d=f[0],h=f[1],A=!!(Yc(u)?u:u.parentElement).getAttribute("data-slate-zero-width"),p=!!(Yc(d)?d:d.parentElement).getAttribute("data-slate-zero-width");return s.setStart(u,A?1:c),s.setEnd(d,p?1:h),s},toDOMPoint:function(e,t){var n,r,a,o=Hr(ye.node(e,t.path),1)[0],i=ze.toDOMNode(e,o);ye.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=ac(s),c=u.next();!c.done;c=u.next()){var f=c.value,d=f.childNodes[0];if(d!=null&&d.textContent!=null){var h=d.textContent.length,A=f.getAttribute("data-slate-length"),p=l+(A==null?h:parseInt(A,10));if(t.offset<=p){a=[d,Math.min(h,Math.max(0,t.offset-l))];break}l=p}}}catch(g){n={error:g}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}if(!a)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(t));return a},toSlateNode:function(e,t){var n=Yc(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?uM.get(n):null;if(!r)throw new Error("Cannot re
`)))&&f--}if(!c){if(o)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+t)}var v=ze.toSlateNode(e,c);return{path:ze.findPath(e,v),offset:f}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return ye.hasPath(e,n.path)&&ye.hasPath(e,r.path)},getNodeType:function(e){return xn.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map(function(t){return Zt.string(t)}).join("")},getSelectedElems:function(e){var t,n,r=[],a=ye.nodes(e,{universal:!0});try{for(var o=ac(a),i=o.next();!i.done;i=o.next()){var s=Hr(i.value,1)[0];xn.isElement(s)&&r.push(s)}}catch(l){t={error:l}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r},getSelectedNodeByType:function(e,t){var n=this,r=Hr(ye.nodes(e,{match:function(o){return n.checkNodeType(o,t)},universal:!0}),1),a=r[0];return a==null?null:a[0]},getSelectedTextNode:function(e){var t=Hr(ye.nodes(e,{match:function(r){return fn.isText(r)},universal:!0}),1),n=t[0];return n==null?null:n[0]},isNodeSelected:function(e,t){var n=Hr(ye.nodes(e,{match:function(a){return a===t},universal:!0}),1),r=n[0];return r!=null&&Hr(r,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(ye.isEnd(e,n.anchor,t)||ye.isEnd(e,n.focus,t))},getTextarea:function(e){var t=fY.get(e);if(t==null)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return DP.get(e)||null},getHoverbar:function(e){return lM.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 a=n-e.getText().replace(/\r|\n|(\r\n)/g,"").length;return a<=0&&r&&r(e),a},cleanExposedTexNodeInSelectionBlock:function(e){var t,n,r,a,o=ze.getTextarea(e).$textArea,i=o==null?void 0:o[0].childNodes;if(i)try{for(var s=ac(Array.from(i)),l=s.next();!l.done;l=s.next()){var u=l.value;if(u.nodeType!==3)break;u.remove()}}catch(p){t={error:p}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}var c=ye.nodes(e,{match:function(p){return!(!xn.isElement(p)||e.isInline(p))},universal:!0});try{for(var f=ac(c),d=f.next();!d.done;d=f.next()){var h=d.value;if(h!=null){var A=h[0];aPe(ze.toDOMNode(e,A),function(p,g){var v=Ue(g);v.attr("data-slate-string")||v.attr("data-slate-zero-width")||v.attr("data-w-e-reserve")||g.removeChild(p)})}}}catch(p){r={error:p}}finally{try{d&&!d.done&&(a=f.return)&&a.call(f)}finally{if(r)throw r.error}}},isLastNode:function(e,t){var n=e.children||[];return n[n.length-1]===t},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(e){var t,n,r=ye.nodes(e,{match:function(s){return e.isVoid(s)}}),a=0;try{for(var o=ac(r),i=o.next();!i.done;i=o.next())i.value,a++}catch(s){t={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return a>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(t==null||yt.isExpanded(t))return!1;var n=ze.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=ye.node(e,t);if(n==null)return!1;var r=Hr(n,1)[0].children;return r.length===1&&r[0].text===""}},cYt=1,oPe={},s_={},fYt=d5.filter,dYt=EP("filter");ro({target:"Array",proto:!0,forced:!dYt},{filter:function(e){return fYt(this,e,arguments.length>1?arguments[1]:void 0)}});var yY=`
\v\f\r                 \u2028\u2029\uFEFF`,a4e=In("".replace),fM="["+yY+"]",hYt=RegExp("^"+fM+fM+"*"),pYt=RegExp(fM+fM+"*$"),Xz=function(e){return function(t){var n=Ba(Dc(t));return 1&e&&(n=a4e(n,hYt,"")),2&e&&(n=a4e(n,pYt,"")),n}},AYt={start:Xz(1),end:Xz(2),trim:Xz(3)},vYt=c5.PROPER,gYt=AYt.trim;ro({target:"String",proto:!0,forced:function(e){return ra(function(){return!!yY[e]()||"​…᠎"[e]()!=="​…᠎"||vYt&&yY[e].name!==e})}("trim")},{trim:function(){return gYt(this)}});var bY=[],iPe={};function mYt(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}var l_,u6,o4e,qz,dM=Kt.Promise,i4e=io("species"),hoe=function(e){var t=M3(e),n=M0.f;zi&&t&&!t[i4e]&&n(t,i4e,{configurable:!0,get:function(){return this}})},yYt=Kt.TypeError,bYt=io("species"),sPe=function(e,t){var n,r=No(e).constructor;return r===void 0||(n=No(r)[bYt])==null?t:function(a){if(SP(a))return a;throw yYt(mP(a)+" is not a constructor")}(n)},lPe=In([].slice),uPe=/(?:ipad|iphone|ipod).*applewebkit/i.test(s8),xh=d0(Kt.process)=="process",wY=Kt.setImmediate,_Y=Kt.clearImmediate,wYt=Kt.process,Yz=Kt.Dispatch,_Yt=Kt.Function,s4e=Kt.MessageChannel,CYt=Kt.String,Jz=0,pb={};try{l_=Kt.location}catch{}var poe=function(e){if(Fo(pb,e)){var t=pb[e];delete pb[e],t()}},Zz=function(e){return function(){poe(e)}},l4e=function(e){poe(e.data)},u4e=function(e){Kt.postMessage(CYt(e),l_.protocol+"//"+l_.host)};wY&&_Y||(wY=function(e){var t=lPe(arguments,1);return pb[++Jz]=function(){ioe(ha(e)?e:_Yt(e),void 0,t)},u6(Jz),Jz},_Y=function(e){delete pb[e]},xh?u6=function(e){wYt.nextTick(Zz(e))}:Yz&&Yz.now?u6=function(e){Yz.now(Zz(e))}:s4e&&!uPe?(qz=(o4e=new s4e).port2,o4e.port1.onmessage=l4e,u6=e3(qz.postMessage,qz)):Kt.addEventListener&&ha(Kt.postMessage)&&!Kt.importScripts&&l_&&l_.protocol!=="file:"&&!ra(u4e)?(u6=u4e,Kt.addEventListener("message",l4e,!1)):u6="onreadystatechange"in $w("script")?function(e){$q.appendChild($w("script")).onreadystatechange=function(){$q.removeChild(this),poe(e)}}:function(e){setTimeout(Zz(e),0)});var Dy,pv,Ab,gg,$z,eN,tN,c4e,cPe={set:wY,clear:_Y},SYt=/ipad|iphone|ipod/i.test(s8)&&Kt.Pebble!==void 0,BYt=/web0s(?!.*chrome)/i.test(s8),EYt=hS.f,nN=cPe.set,f4e=Kt.MutationObserver||Kt.WebKitMutationObserver,d4e=Kt.document,h4e=Kt.process,CE=Kt.Promise,p4e=EYt(Kt,"queueMicrotask"),fPe=p4e&&p4e.value;fPe||(Dy=function(){var e,t;for(xh&&(e=h4e.domain)&&e.exit();pv;){t=pv.fn,pv=pv.next;try{t()}catch(n){throw pv?gg():Ab=void 0,n}}Ab=void 0,e&&e.enter()},uPe||xh||BYt||!f4e||!d4e?!SYt&&CE&&CE.resolve?((tN=CE.resolve(void 0)).constructor=CE,c4e=e3(tN.then,tN),gg=function(){c4e(Dy)}):xh?gg=function(){h4e.nextTick(Dy)}:(nN=e3(nN,Kt),gg=function(){nN(Dy)}):($z=!0,eN=d4e.createTextNode(""),new f4e(Dy).observe(eN,{characterData:!0}),gg=function(){eN.data=$z=!$z}));var rN,A4e,dPe,v4e,hPe=fPe||function(e){var t={fn:e,next:void 0};Ab&&(Ab.next=t),pv||(pv=t,gg()),Ab=t},xYt=function(e){var t,n;this.promise=new e(function(r,a){if(t!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");t=r,n=a}),this.resolve=fp(t),this.reject=fp(n)},Aoe={f:function(e){return new xYt(e)}},CY=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},TYt=typeof window=="object",pPe=cPe.set,kYt=io("species"),nf="Promise",g4e=Vs.getterFor(nf),DYt=Vs.set,IYt=Vs.getterFor(nf),YA=dM&&dM.prototype,hf=dM,Iy=YA,APe=Kt.TypeError,SY=Kt.document,voe=Kt.process,u8=Aoe.f,MYt=u8,LYt=!!(SY&&SY.createEvent&&Kt.dispatchEvent),vPe=ha(Kt.PromiseRejectionEvent),gPe=!1,vb=t_(nf,function(){var e=bP(hf),t=e!==String(hf);if(!t&&Zw===66)return!0;if(Zw>=51&&/native code/.test(e))return!1;var n=new hf(function(a){a(1)}),r=function(a){a(function(){},function(){})};return(n.constructor={})[kYt]=r,!(gPe=n.then(function(){})instanceof r)||!t&&TYt&&!vPe}),OYt=vb||!$ae(function(e){hf.all(e).catch(function(){})}),mPe=function(e){var t;return!(!Ia(e)||!ha(t=e.then))&&t},goe=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;hPe(function(){for(var r=e.value,a=e.state==1,o=0;n.length>o;){var i,s,l,u=n[o++],c=a?u.ok:u.fail,f=u.resolve,d=u.reject,h
`)>=0)return;c&&(c=EPe(c),B4e(s,c)||s.push({text:c}))}}else{if(u.nodeName==="BR")return void(B4e(s,`
`)||s.push({text:`
`}));var f=yoe(Ue(u),i);Array.isArray(f)?f.forEach(function(d){return s.push(d)}):s.push(f)}}),s)}(e,t),r=function(o){for(var i in hM)if(o[0].matches(i))return hM[i];return $Yt}(e),a=r(e[0],n,t);return Array.isArray(a)||(a=[a]),a.forEach(function(o){ye.isVoid(t,o)||(n.length===0&&(o.children=[{text:e.text().replace(/\s+/gm," ")}]),moe.forEach(function(i){o=i(e[0],o,t)}))}),a}function iN(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(a){return a.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=EPe(n)};return moe.forEach(function(a){r=a(e[0],r,t)}),r}function yoe(e,t){SPe.forEach(function(r){var a=r.selector,o=r.preParseHtml;e[0].matches(a)&&(e=Ue(o(e[0])))});var n=r4e(e);return n==="span"?e.attr("data-w-e-type")?oN(e,t):iN(e,t):n==="code"?r4e(e.parent())==="pre"?oN(e,t):iN(e,t):CPe.includes(n)?iN(e,t):oN(e,t)}function xPe(e,t,n){var r=Ue(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",function(){r.removeAttr(t)}),!1)}function E4e(e,t){t===void 0&&(t="");var n=[];t===""&&(t="<p><br></p>"),t.indexOf("<")!==0&&(t=t.split(/\n/).map(function(a){return"<p>"+a+"</p>"}).join(""));var r=Ue("<div>"+t+"</div>");return Array.from(r.children()).forEach(function(a){var o=yoe(Ue(a),e);Array.isArray(o)?o.forEach(function(i){return n.push(i)}):n.push(o)}),n}var eJt=M0.f,x4e=TP.fastKey,T4e=Vs.set,sN=Vs.getterFor,tJt={getConstructor:function(e,t,n,r){var a=e(function(u,c){kP(u,o),T4e(u,{type:t,index:BP(null),first:void 0,last:void 0,size:0}),zi||(u.size=0),c!=null&&o_(c,u[r],{that:u,AS_ENTRIES:n})}),o=a.prototype,i=sN(t),s=function(u,c,f){var d,h,A=i(u),p=l(u,c);return p?p.value=f:(A.last=p={index:h=x4e(c,!0),key:c,value:f,previous:d=A.last,next:void 0,removed:!1},A.first||(A.first=p),d&&(d.next=p),zi?A.size++:u.size++,h!=="F"&&(A.index[h]=p)),u},l=function(u,c){var f,d=i(u),h=x4e(c);if(h!=="F")return d.index[h];for(f=d.first;f;f=f.next)if(f.key==c)return f};return Am(o,{clear:function(){for(var u=i(this),c=u.index,f=u.first;f;)f.removed=!0,f.previous&&(f.previous=f.previous.next=void 0),delete c[f.index],f=f.next;u.first=u.last=void 0,zi?u.size=0:this.size=0},delete:function(u){var c=this,f=i(c),d=l(c,u);if(d){var h=d.next,A=d.previous;delete f.index[d.index],d.removed=!0,A&&(A.next=h),h&&(h.previous=A),f.first==d&&(f.first=h),f.last==d&&(f.last=A),zi?f.size--:c.size--}return!!d},forEach:function(u){for(var c,f=i(this),d=e3(u,arguments.length>1?arguments[1]:void 0);c=c?c.next:f.first;)for(d(c.value,c.key,this);c&&c.removed;)c=c.previous},has:function(u){return!!l(this,u)}}),Am(o,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)}}),zi&&eJt(o,"size",{get:function(){return i(this).size}}),a},setStrong:function(e,t,n){var r=t+" Iterator",a=sN(t),o=sN(r);toe(e,t,function(i,s){T4e(this,{type:r,target:i,state:a(i),kind:s,last:void 0})},function(){for(var i=o(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),hoe(t)}};YFe("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},tJt);var k4e=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function D4e(e,t){e.isInline(t)?(e.insertNode(t),t.type==="link"&&e.insertFragment([{text:""}])):st.insertNodes(e,t,{mode:"highest"})}var nJt=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(r){var a=t.selection;if(a){var o=Hr(yt.edges(a),2),i=o[0],s=o[1],l=ye.void(t,{at:i.path}),u=ye.void(t,{at:s.path});if(!yt.isCollapsed(a)||l){var c=ze.toDOMRange(t,a),f=c.cloneContents(),d=f.childNodes[0];if(f.childNodes.forEach(function(_){_.textContent&&_.textContent.trim()!==""&&(d=_)}),u){var h=Hr(u,1)[0],A=c.cloneRange(),p=ze.toDOMNode(t,h);A.setEndAfter(p),f=A.cloneContents()}if(l&&(d=f.querySelector("[data-slate-spacer]")),Array.from(f.querySelectorAll("[data-slate-zero-width]")).forEach(function(_){var C=_.getAttribute("data-slate-zero-width")==="n";_.textContent=C?`
`:""}),nPe(d)){var g=d.ownerDocument.createElement("span");g.style.whiteSpace="pre",g.appendChild(d),f.appendChild(g),d=g}var v=t.getFragment(),m=JSON.stringify(v),y=window.btoa(encodeURIComponent(m));d.setAttribute("data-slate-fragment",y),r.setData("application/x-slate-fragment",y);var b=f.ownerDocument.createElement("div");return b.appendChild(f),b.setAttribute("hidden","true"),f.ownerDocument.body.appendChild(b),r.setData("text/html",b.innerHTML),r.setData("text/plain",sYt(b)),f.ownerDocument.body.removeChild(b),r}}},t.insertData=function(r){var a,o,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 f=u.split(/\r\n|\r|\n/),d=!1;try{for(var h=ac(f),A=h.next();!A.done;A=h.next()){var p=A.value;d&&st.splitNodes(t,{always:!0}),n(p),d=!0}}catch(g){a={error:g}}finally{try{A&&!A.done&&(o=h.return)&&o.call(h)}finally{if(a)throw a.error}}}}},t},h7=function(e){return e!=null},rJt={object:!0,function:!0,undefined:!0},aJt=/^\s*class[\s{/}]/,oJt=Function.prototype.toString,I4e=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!!h7(r)&&hasOwnProperty.call(rJt,typeof r)}(n))return!1;try{return!!n.constructor&&n.constructor.prototype===n}catch{return!1}}(t)}(e)&&!aJt.test(oJt.call(e))},boe=function(e){return e!=null},iJt=Object.keys,sJt=function(){try{return Object.keys("primitive"),!0}catch{return!1}}()?Object.keys:function(e){return iJt(boe(e)?Object(e):e)},lJt=function(e){if(!boe(e))throw new TypeError("Cannot use null or undefined");return e},uJt=Math.max,M4e=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,a,o=uJt(arguments.length,2);for(e=Object(lJt(e)),a=function(i){try{e[i]=t[i]}catch(s){n||(n=s)}},r=1;r<o;++r)sJt(t=arguments[r]).forEach(a);if(n!==void 0)throw n;return e},cJt=Array.prototype.forEach,fJt=Object.create,dJt=function(e,t){var n;for(n in e)t[n]=e[n]},L4e=function(e){var t=fJt(null);return cJt.call(arguments,function(n){boe(n)&&dJt(Object(n),t)}),t},lN="razdwatrzy",hJt=String.prototype.indexOf,Ly=typeof lN.contains=="function"&&lN.contains("dwa")===!0&&lN.contains("foo")===!1?String.prototype.contains:function(e){return hJt.call(this,e,arguments[1])>-1},BE=fS(function(e){var t=e.exports=function(n,r){var a,o,i,s,l;return arguments.length<2||typeof n!="string"?(s=r,r=n,n=null):s=arguments[2],h7(n)?(a=Ly.call(n,"c"),o=Ly.call(n,"e"),i=Ly.call(n,"w")):(a=i=!0,o=!1),l={value:r,configurable:a,enumerable:o,writable:i},s?M4e(L4e(s),l):l};t.gs=function(n,r,a){var o,i,s,l;return typeof n!="string"?(s=a,a=r,r=n,n=null):s=arguments[3],h7(r)?I4e(r)?h7(a)?I4e(a)||(s=a,a=void 0):a=void 0:(s=r,r=a=void 0):r=void 0,h7(n)?(o=Ly.call(n,"c"),i=Ly.call(n,"e")):(o=!0,i=!1),l={get:r,set:a,configurable:o,enumerable:i},s?M4e(L4e(s),l):l}}),uN=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},pJt=fS(function(e,t){var n,r,a,o,i,s,l,u=Function.prototype.apply,c=Function.prototype.call,f=Object.create,d=Object.defineProperty,h=Object.defineProperties,A=Object.prototype.hasOwnProperty,p={configurable:!0,enumerable:!1,writable:!0};n=function(g,v){var m;return uN(v),A.call(this,"__ee__")?m=this.__ee__:(m=p.value=f(null),d(this,"__ee__",p),p.value=null),m[g]?typeof m[g]=="object"?m[g].push(v):m[g]=[m[g],v]:m[g]=v,this},r=function(g,v){var m,y;return uN(v),y=this,n.call(this,g,m=function(){a.call(y,g,m),u.call(v,this,arguments)}),m.__eeOnceListener__=v,this},a=function(g,v){var m,y,b,_;if(uN(v),!A.call(this,"__ee__"))return this;if(!(m=this.__ee__)[g])return this;if(typeof(y=m[g])=="object")for(_=0;b=y[_];++_)b!==v&&b.__eeOnceListener__!==v||(y.length===2?m[g]=y[_?0:1]:y.splice(_,1));else y!==v&&y.__
`:e)}function fN(e,t){return e===void 0&&(e=0),t===void 0&&(t=!1),Gn("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\uFEFF",t?Gn("br",null):null)}function TY(e,t,n,r){return i_.set(e,t),vm.set(e,n),xn.isElement(e)?function(a,o){var i,s=ze.findKey(o,a),l=o.isInline(a),u=ye.isVoid(o,a),c=_Pe(s.id),f={id:c,key:s.id,"data-slate-node":"element","data-slate-inline":l},d=a.type,h=a.children,A=h===void 0?[]:h,p=function(_){return DPe[_]||EJt}(d);i=u?null:A.map(function(_,C){return TY(_,C,a,o)});var g=p(a,i,o);if(u){f["data-slate-void"]=!0;var v=l?"span":"div",m=Hr(Zt.texts(a),1),y=Hr(m[0],1)[0],b=Gn(v,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},TY(y,0,a,o));g=Gn(v,{style:{position:"relative"}},g,b),i_.set(y,0),vm.set(y,a)}return g.data==null&&(g.data={}),Object.assign(g.data,f),u||l||(g=function(_,C){var S=C;return xY.forEach(function(B){S=B(_,C)}),S}(a,g)),Ic(function(){var _=vY(c);_!=null&&(AY.set(s,_),cM.set(a,_),uM.set(_,a))}),g}(e,r):function(a,o,i){if(a.text==null)throw new Error("Current node is not slate Text "+JSON.stringify(a));var s=ze.findKey(i,a),l=i.getConfig().decorate;if(l==null)throw new Error("Can not get config.decorate");var u=ze.findPath(i,a),c=l([a,u]),f=fn.decorations(a,c),d=f.map(function(p,g){var v=function(m,y,b,_,C){y===void 0&&(y=!1);var S=m.text,B=ze.findPath(C,b),x=at.parent(B);if(ye.isEditor(_))throw new Error("Text node "+JSON.stringify(b)+" parent is Editor");return C.isVoid(_)?fN(Zt.string(_).length):S!==""||_.children[_.children.length-1]!==b||C.isInline(_)||ye.string(C,x)!==""?S===""?fN():y&&S.slice(-1)===`
`?H4e(S,!0):H4e(S):fN(0,!0)}(p,g===f.length-1,a,o,i);return v=function(m,y){var b=y;return xY.forEach(function(_){b=_(m,b)}),b}(p,v),Gn("span",{"data-slate-leaf":!0},v)}),h=function(p){return"w-e-text-"+p}(s.id),A=Gn("span",{"data-slate-node":"text",id:h,key:s.id},d);return Ic(function(){var p=vY(h);p!=null&&(AY.set(s,p),cM.set(a,p),uM.set(p,a))}),A}(e,n,r)}function xJt(e,t){var n,r=e.$scroll,a=function(p){return"w-e-textarea-"+p}(e.id),o=t.getConfig(),i=o.readOnly,s=o.autoFocus,l=function(p,g){return g===void 0&&(g=!1),fm("div#"+p,{props:{contentEditable:!g}})}(a,i),u=t.children||[];l.children=u.map(function(p,g){var v=TY(p,g,t,t);return kPe(v),v});var c=Jve.get(e);if(c==null&&(c=!0),c){var f=function(p,g){return Ue(`<div
id="`+p+`"
data-slate-editor
data-slate-node="value"
suppressContentEditableWarning
role="textarea"
spellCheck="true"
autoCorrect="true"
autoCapitalize="true"
></div>`)}(a);r.append(f),e.$textArea=f,n=f[0],(h=gKt([yKt,CKt,BKt,bKt,_Kt,mKt]))(n,l),Jve.set(e,!1),Zve.set(e,h)}else{var d=$ve.get(e),h=Zve.get(e);if(d==null||h==null)return;n=d.elm,h(d,l)}if(n!=null||(n=vY(a))!=null){if((c?s:t.isFocused())&&n.focus({preventScroll:!0}),c){var A=doe(n);A&&tPe.set(t,A)}foe.set(t,n),cM.set(t,n),uM.set(n,t),$ve.set(e,l)}}function V4e(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function z4e(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function dN(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return z4e(n.overflowY,t)||z4e(n.overflowX,t)||function(r){var a=function(o){if(!o.ownerDocument||!o.ownerDocument.defaultView)return null;try{return o.ownerDocument.defaultView.frameElement}catch{return null}}(r);return!!a&&(a.clientHeight<r.scrollHeight||a.clientWidth<r.scrollWidth)}(e)}return!1}function xE(e,t,n,r,a,o,i,s){return o<e&&i>t||o>e&&i<t?0:o<=e&&s<=n||i>=t&&s>=n?o-e-r:i>t&&s<n||o<e&&s>n?i-t+a:0}function N4e(e,t){var n=window,r=t.scrollMode,a=t.block,o=t.inline,i=t.boundary,s=t.skipOverflowHiddenElements,l=typeof i=="function"?i:function(he){return he!==i};if(!V4e(e))throw new TypeError("Invalid target");for(var u=document.scrollingElement||document.documentElement,c=[],f=e;V4e(f)&&l(f);){if((f=f.parentElement)===u){c.push(f);break}f!=null&&f===document.body&&dN(f)&&!dN(document.documentElement)||f!=null&&dN(f,s)&&c.push(f)}for(var d=n.visualViewport?n.visualViewport.width:innerWidth,h=n.visualViewport?n.visualViewport.height:innerHeight,A=window.scrollX||pageXOffset,p=window.scrollY||pageYOffset,g=e.getBoundingClientRect(),v=g.height,m=g.width,y=g.top,b=g.right,_=g.bottom,C=g.left,S=a==="start"||a==="nearest"?y:a==="end"?_:y+v/2,B=o==="center"?C+m/2:o==="end"?b:C,x=[],E=0;E<c.length;E++){var k=c[E],D=k.getBoundingClientRect(),F=D.height,I=D.width,P=D.top,R=D.right,H=D.bottom,Q=D.left;if(r==="if-needed"&&y>=0&&C>=0&&_<=h&&b<=d&&y>=P&&_<=H&&C>=Q&&b<=R)return x;var M=getComputedStyle(k),U=parseInt(M.borderLeftWidth,10),O=parseInt(M.borderTopWidth,10),V=parseInt(M.borderRightWidth,10),W=parseInt(M.borderBottomWidth,10),$=0,ue=0,K="offsetWidth"in k?k.offsetWidth-k.clientWidth-U-V:0,ne="offsetHeight"in k?k.offsetHeight-k.clientHeight-O-W:0;if(u===k)$=a==="start"?S:a==="end"?S-h:a==="nearest"?xE(p,p+h,h,O,W,p+S,p+S+v,v):S-h/2,ue=o==="start"?B:o==="center"?B-d/2:o==="end"?B-d:xE(A,A+d,d,U,V,A+B,A+B+m,m),$=Math.max(0,$+p),ue=Math.max(0,ue+A);else{$=a==="start"?S-P-O:a==="end"?S-H+W+ne:a==="nearest"?xE(P,H,F,O,W+ne,S,S+v,v):S-(P+F/2)+ne/2,ue=o==="start"?B-Q-U:o==="center"?B-(Q+I/2)+K/2:o==="end"?B-R+V+K:xE(Q,R,I,U,V+K,B,B+m,m);var ie=k.scrollLeft,le=k.scrollTop;S+=le-($=Math.max(0,Math.min(le+$,k.scrollHeight-F+ne))),B+=ie-(ue=Math.max(0,Math.min(ie+ue,k.scrollWidth-I+K)))}x.push({el:k,top:$,left:ue})}return x}function Q4e(e){return e===Object(e)&&Object.keys(e).length!==0}function Qu(e,t){return t3(t)&&ze.hasDOMNode(e,t,{editable:!0})}function U4e(e,t){if(e.getConfig().readOnly)return!1;var n=yg(e,t)&&ze.toSlateNode(e,t);return ye.isVoid(e,n)}function yg(e,t){return t3(t)&&ze.hasDOMNode(e,t)}function IPe(e,t,n){n===void 0&&(n=!1);var r=t.selection,a=t.getConfig(),o=ze.findDocumentOrShadowRoot(t).getSelection();if(o&&(!e.isComposing||n)&&t.isFocused()){var i=o.type!=="None";if(r||i){var s=foe.get(t),l=!1;if(s.contains(o.anchorNode)&&s.contains(o.focusNode)&&(l=!0),i&&l&&r){var u=ze.toSlateRange(t,o,{exactMatch:!0,suppressThrow:!0});if(u&&yt.equals(u,r)){var c=!0;if(yt.isCollapsed(r)){var f=o.anchorNode,d=o.anchorOffset;if(f===s){var h=s.childNodes,A=void 0;(A=h[d])&&A.matches("table")&&(c=!1),(A=h[d-1])&&A.matches("table")&&(c=!1)}}if(c)return}}if(!r||ze.hasRange(t,r)){e.isUpdatingSelection=!0;var p=r&&ze.toDOMRange(t,r);if(p){yt.isBackward(r)?o.setBaseAndExtent(p.endContainer,p.endOffset,p.startContainer,p.startOffset):o.setBaseAndExtent(p.startContainer,p.startOffset,p.endContainer,p.endOffset);var g=p.startContainer.parentElement;if(!g.closest("[data-slate-spacer]")){g.getBoundingClientRect=p.getBoundingClientRect.bin
`+r:n;e.attr("data-tooltip",i),e.addClass("w-e-menu-tooltip-v5")}}}soe("match",function(e,t,n){return[function(r){var a=Dc(this),o=r==null?void 0:$4(r,e);return o?Kr(o,r,a):new RegExp(r)[e](Ba(a))},function(r){var a=No(this),o=Ba(r),i=n(t,a,o);if(i.done)return i.value;if(!a.global)return a_(a,o);var s=a.unicode;a.lastIndex=0;for(var l,u=[],c=0;(l=a_(a,o))!==null;){var f=Ba(l[0]);u[c]=f,f===""&&(a.lastIndex=loe(o,f5(a.lastIndex),s)),c++}return c===0?null:u}]});var Eoe=function(){function e(t,n,r){var a=this;r===void 0&&(r=!1),this.$elem=Ue('<div class="w-e-bar-item"></div>'),this.$button=Ue('<button type="button"></button>'),this.disabled=!1,this.menu=n;var o=n.tag,i=n.width;if(o!=="button")throw new Error("Invalid tag '"+o+"', expected 'button'");var s=n.title,l=n.hotkey,u=l===void 0?"":l,c=n.iconSvg,f=c===void 0?"":c,d=this.$button;if(f){var h=Ue(f);Soe(h),d.append(h)}else d.text(s);LPe(d,f,s,u,r),r&&f&&d.append(Ue('<span class="title">'+s+"</span>")),i&&d.css("width",i+"px"),d.attr("data-menu-key",t),this.$elem.append(d),Ic(function(){return a.init()})}return e.prototype.init=function(){var t=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(n){n.preventDefault(),su(t).hidePanelOrModal(),t.disabled||(t.exec(),t.onButtonClick())})},e.prototype.exec=function(){var t=su(this),n=this.menu,r=n.getValue(t);n.exec(t,r)},e.prototype.setActive=function(){var t=su(this),n=this.$button,r="active";this.menu.isActive(t)?n.addClass(r):n.removeClass(r)},e.prototype.setDisabled=function(){var t=su(this),n=this.$button,r=this.menu.isDisabled(t);(t.selection==null||t.isDisabled())&&(r=!0),this.menu.alwaysEnable&&(r=!1);var a="disabled";r?n.addClass(a):n.removeClass(a),this.disabled=r},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e}(),OJt=function(e){function t(n,r,a){return a===void 0&&(a=!1),e.call(this,n,r,a)||this}return h5(t,e),t.prototype.onButtonClick=function(){},t}(Eoe),xoe=function(){function e(t){this.isShow=!1,this.showTime=0,this.record(t)}return e.prototype.record=function(t){var n=pY.get(t);n==null&&(n=new Set,pY.set(t,n)),n.add(this),zk.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=zk.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=zk.get(this);t&&t.emit("modalOrPanelHide")}},e}(),FJt=function(e){function t(n){var r=e.call(this,n)||this;return r.type="dropPanel",r.$elem=Ue('<div class="w-e-drop-panel"></div>'),r}return h5(t,e),t.prototype.genSelfElem=function(){return null},t}(xoe),PJt=function(e){function t(n,r,a){a===void 0&&(a=!1);var o=e.call(this,n,r,a)||this;if(o.dropPanel=null,o.menu=r,r.showDropPanel){var i=Boe();o.$button.append(i)}return o}return h5(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=su(this);if(this.dropPanel==null){var a=new FJt(r),o=n.getPanelContentElem(r);a.renderContent(o),a.appendTo(this.$elem),a.show(),this.dropPanel=a}else{var i=this.dropPanel;i.isShow?i.hide():(o=n.getPanelContentElem(r),i.renderContent(o),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}(Eoe),RJt=function(e){function t(n,r){r===void 0&&(r=0);var a=e.call(this,n)||this;a.type="modal",a.$elem=Ue('<div class="w-e-modal"></div>'),a.width=0,r&&(a.width=r);var o=a.$elem;return o.on("click",function(i){return i.stopPropagation()}),o.on("keyup",function(i){i.code==="Escape"&&(a.hide(),n.restoreSelection())}),a}return h5(t,e),t.prototype.genSelfElem=function(){var n=this,r=Ue('<span class="btn-close"><svg viewBox="0
`)},m.getSelectionText=function(){var S=m.selection;return S==null?"":ye.string(v,S)},m.getElemsByType=function(S,B){var x,E;B===void 0&&(B=!1);var k=[],D=ye.nodes(m,{at:[],universal:!0});try{for(var F=ac(D),I=F.next();!I.done;I=F.next()){var P=Hr(I.value,1)[0];if(xn.isElement(P)&&(B?P.type.indexOf(S)>=0:P.type===S)){var R=_Pe(ze.findKey(m,P).id);k.push(rc(rc({},P),{id:R}))}}}catch(H){x={error:H}}finally{try{I&&!I.done&&(E=F.return)&&E.call(F)}finally{if(x)throw x.error}}return k},m.getElemsByTypePrefix=function(S){return m.getElemsByType(S,!0)},m.isEmpty=function(){var S=m.children,B=S===void 0?[]:S;if(B.length>1)return!1;var x=B[0];if(x==null)return!0;if(xn.isElement(x)&&x.type==="paragraph"){var E=x.children,k=E===void 0?[]:E;if(k.length>1)return!1;var D=k[0];if(D==null||fn.isText(D)&&D.text==="")return!0}return!1},m.clear=function(){st.delete(m,{at:{anchor:ye.start(m,[]),focus:ye.end(m,[])}}),m.children.length===0&&st.insertNodes(m,[{type:"paragraph",children:[{text:""}]}])},m.getParentNode=function(S){return ze.getParentNode(m,S)},m.dangerouslyInsertHtml=function(S,B){if(S===void 0&&(S=""),B===void 0&&(B=!1),S){var x=document.createElement("div");x.innerHTML=S;var E=Array.from(x.childNodes);if(E=E.filter(function(I){var P=I.nodeType,R=I.nodeName;return P===lf.TEXT_NODE||P===lf.ELEMENT_NODE&&!k4e.has(R.toLowerCase())}),E.length!==0){var k=m.selection;if(k!=null){var D=null;ze.isSelectedEmptyParagraph(m)&&!B&&(D=[k.focus.path[0]]),x.setAttribute("hidden","true"),document.body.appendChild(x);var F=0;E.forEach(function(I){var P=I.nodeType,R=I.nodeName,H=I.textContent,Q=H===void 0?"":H;if(P!==lf.TEXT_NODE)if(R!=="BR"){var M=I,U=!1;if(CPe.includes(R.toLowerCase()))U=!0;else for(var O in hM)if(M.matches(O)){U=!0;break}if(U){var V=yoe(Ue(M),m);return Array.isArray(V)?(V.forEach(function($){return D4e(m,$)}),F++):(D4e(m,V),F++),void(ze.isSelectedVoidNode(m)&&m.move(1))}var W=window.getComputedStyle(M).display;ze.isSelectedEmptyParagraph(m)||W.indexOf("inline")<0&&m.insertBreak(),m.dangerouslyInsertHtml(M.innerHTML,!0)}else m.insertText(`
`);else{if(!Q||!Q.trim())return;m.insertNode({text:Q})}}),F&&D&&ze.isEmptyPath(m,D)&&st.removeNodes(m,{at:D}),x.remove()}}}},m.setHtml=function(S){S===void 0&&(S="");var B=m.isDisabled(),x=m.isFocused(),E=JSON.stringify(m.selection);m.enable(),m.focus(),m.clear();var k=E4e(m,S);if(st.insertFragment(m,k),x||(m.deselect(),m.blur()),B&&(m.deselect(),m.disable()),m.isFocused())try{m.select(JSON.parse(E))}catch{m.select(ye.start(m,[]))}},m}(function(v){var m=v;return m.getAllMenuKeys=function(){var y=[];for(var b in s_)y.push(b);return y},m.getConfig=function(){var y=Yve.get(m);if(y==null)throw new Error("Can not get editor config");return y},m.getMenuConfig=function(y){var b=m.getConfig().MENU_CONF;return(b===void 0?{}:b)[y]||{}},m.alert=function(y,b){b===void 0&&(b="info");var _=m.getConfig().customAlert;_&&_(y,b)},m}(function(v){var m=nJt(BUt());return m.id="wangEditor-"+cYt++,m.isDestroyed=!1,m.isFullScreen=!1,m.focus=function(y){if(ze.toDOMNode(m,m).focus({preventScroll:!0}),i4.set(m,!0),y){var b=ye.end(m,[]);st.select(m,b)}else{var _=Gz.get(m);_?st.select(m,_):st.select(m,ye.start(m,[]))}},m.isFocused=function(){return!!i4.get(m)},m.blur=function(){ze.toDOMNode(m,m).blur(),st.deselect(m),i4.set(m,!1)},m.updateView=function(){ze.getTextarea(m).changeViewState();var y=ze.getToolbar(m);y&&y.changeToolbarState();var b=ze.getHoverbar(m);b&&b.changeHoverbarState()},m.destroy=function(){if(!m.isDestroyed){var y=ze.getTextarea(m);y.destroy(),fY.delete(m),dY.delete(y);var b=ze.getToolbar(m);b&&(b.destroy(),DP.delete(m),uoe.delete(b));var _=ze.getHoverbar(m);_&&(_.destroy(),lM.delete(m),hY.delete(_)),m.isDestroyed=!0,m.emit("destroyed")}},m.scrollToElem=function(y){if(!m.getConfig().scroll){var b="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return b+=`
You has disabled editor scroll, please do this yourself`,void console.warn(b)}var _=Ue("#"+y);if(_.length!==0){var C=_[0];if(!ze.hasDOMNode(m,C))return b="Element (found by id is '"+y+"') is not in editor DOM",b+=`
通过 id '`+y+"' 找到的 element 不在 editor DOM 之内",void console.error(b,C);var S=ze.getTextarea(m),B=S.$textAreaContainer,x=S.$scroll,E=_.offset().top,k=B.offset().top;x[0].scrollBy({top:E-k,behavior:"smooth"})}},m.showProgressBar=function(y){y<1||ze.getTextarea(m).changeProgress(y)},m.hidePanelOrModal=function(){var y=pY.get(m);y!=null&&y.forEach(function(b){return b.hide()})},m.enable=function(){m.getConfig().readOnly=!1,m.updateView()},m.disable=function(){m.getConfig().readOnly=!0,m.updateView()},m.isDisabled=function(){return m.getConfig().readOnly},m.toDOMNode=function(y){return ze.toDOMNode(m,y)},m.fullScreen=function(){if(!m.isFullScreen){var y=null,b=ze.getToolbar(m);b&&(y=b.$box);var _=ze.getTextarea(m).$box.parent();if(y&&y.parent()[0]!==_[0])throw new Error(`Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent
不能设置全屏因为 toolbar DOM 父节点和 textarea DOM 父节点不一致`);_.addClass("w-e-full-screen-container");var C=_.css("z-index");_.attr("data-z-index",C.toString()),m.isFullScreen=!0,m.emit("fullScreen")}},m.unFullScreen=function(){if(m.isFullScreen){var y=ze.getTextarea(m).$box.parent();setTimeout(function(){y.removeClass("w-e-full-screen-container"),m.isFullScreen=!1,m.emit("unFullScreen")},200)}},m.getEditableContainer=function(){return ze.getTextarea(m).$textAreaContainer[0]},m}()))))));if(n&&function(v,m){return xPe(v,"data-w-e-textarea",m)}(u,n))throw new Error("Repeated create editor by selector '"+n+"'");var c=function(v){v===void 0&&(v={});var m=fFe(oPe),y={},b=v.MENU_CONF,_=b===void 0?{}:b;return Lae(m,function(C,S){y[S]=rc(rc({},C),_[S]||{})}),delete v.MENU_CONF,rc({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:y,hoverbarKeys:{},customAlert:function(C,S){window.alert(S+`:
`+C)}},v)}(a);Yve.set(u,c);var f=c.hoverbarKeys,d=f===void 0?{}:f;if(l.forEach(function(v){u=v(u)}),i!=null&&(u.children=E4e(u,i)),o&&o.length&&(u.children=o),u.children.length===0&&(u.children=[{type:"paragraph",children:[{text:""}]}]),ze.normalizeContent(u),n){var h=new LJt(n);fY.set(u,h),dY.set(h,u),h.changeViewState(),Ic(function(){var v=h.$scroll;v!=null&&v.height()<300&&console.warn(`编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常
Textarea height < 300px . This may be cause modal and hoverbar position error`,v)});var A=void 0;Object.keys(d).length>0&&(A=new QJt,hY.set(A,u),lM.set(u,A)),u.on("change",function(){u.hidePanelOrModal()}),u.on("scroll",function(){u.hidePanelOrModal()})}else u.children.forEach(function(v,m){return FPe(v,m,u,u)});var p=c.onCreated,g=c.onDestroyed;return p&&u.on("created",function(){return p(u)}),g&&u.on("destroyed",function(){return g(u)}),Ic(function(){return u.emit("created")}),u}var jJt=EP("splice"),KJt=Kt.TypeError,GJt=Math.max,WJt=Math.min;ro({target:"Array",proto:!0,forced:!jJt},{splice:function(e,t){var n,r,a,o,i,s,l=jp(this),u=L3(l),c=dm(e,u),f=arguments.length;if(f===0?n=r=0:f===1?(n=0,r=u-c):(n=f-2,r=WJt(GJt(dS(t),0),u-c)),u+n-r>9007199254740991)throw KJt("Maximum allowed length exceeded");for(a=MFe(l,r),o=0;o<r;o++)(i=c+o)in l&&n_(a,o,l[i]);if(a.length=r,n<r){for(o=c;o<u-r;o++)s=o+n,(i=o+r)in l?l[s]=l[i]:delete l[s];for(o=u;o>u-r+n;o--)delete l[o-1]}else if(n>r)for(o=u-r;o>c;o--)s=o+n-1,(i=o+r-1)in l?l[s]=l[i]:delete l[s];for(o=0;o<n;o++)l[o+c]=arguments[o+2];return l.length=u-r+n,a}});var XJt=function(){function e(t,n){var r=this;this.$toolbar=Ue('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=cFe(function(){r.toolbarItems.forEach(function(i){i.changeMenuState()})},200),this.config=n;var a=Ue(t);if(a.length===0)throw new Error("Cannot find toolbar DOM by selector '"+t+"'");this.$box=a;var o=this.$toolbar;o.on("mousedown",function(i){return i.preventDefault()},{passive:!1}),a.append(o),Ic(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,a=this.config,o=a.toolbarKeys,i=o===void 0?[]:o,s=a.insertKeys,l=s===void 0?{index:0,keys:[]}:s,u=a.excludeKeys,c=u===void 0?[]:u,f=fFe(i);l.keys.length>0&&(typeof l.keys=="string"&&(l.keys=[l.keys]),l.keys.forEach(function(A,p){f.splice(l.index+p,0,A)}));var d=f.filter(function(A){if(typeof A=="string"){if(c.includes(A))return!1}else if(c.includes(A.key))return!1;return!0}),h=d.length;d.forEach(function(A,p){if(A==="|"){if(p===0||p+1===h||n==="|")return;var g=MPe();return r.append(g),void(n=A)}if(typeof A=="string")return t.registerSingleItem(A,t),void(n=A);t.registerGroup(A),n="group"})},e.prototype.registerGroup=function(t){var n=this,r=this.$toolbar,a=function(u){return new K4e(u)}(t),o=t.menuKeys,i=o===void 0?[]:o,s=this.config.excludeKeys,l=s===void 0?[]:s;i.forEach(function(u){l.includes(u)||n.registerSingleItem(u,a)}),r.append(a.$elem)},e.prototype.registerSingleItem=function(t,n){var r=this.getEditorInstance(),a=n instanceof K4e,o=this.menus,i=o[t];if(i==null){var s=s_[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(),o[t]=i}else console.warn("Duplicated toolbar menu key '"+t+`'
重复注册了菜单栏 menu '`+t+"'");var l=OPe(t,i,a);this.toolbarItems.push(l),coe.set(l,r),a?n.appendBarItem(l):n.$toolbar.append(l.$elem)},e.prototype.getEditorInstance=function(){var t=uoe.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}(),qJt=c5.EXISTS,YJt=M0.f,PPe=Function.prototype,JJt=In(PPe.toString),RPe=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,ZJt=In(RPe.exec);function HPe(e){var t=e.server,n=t===void 0?"":t,r=e.fieldName,a=r===void 0?"":r,o=e.maxFileSize,i=o===void 0?10485760:o,s=e.maxNumberOfFiles,l=s===void 0?100:s,u=e.meta,c=u===void 0?{}:u,f=e.metaWithUrl,d=f!==void 0&&f,h=e.headers,A=h===void 0?{}:h,p=e.withCredentials,g=p!==void 0&&p,v=e.timeout,m=v===void 0?1e4:v,y=e.onBeforeUpload,b=y===void 0?function(F){return F}:y,_=e.onSuccess,C=_===void 0?function(F,I){}:_,S=e.onError,B=S===void 0?function(F,I,P){console.error(F.name+" upload error",I,P)}:S,x=e.onProgress,E=x===void 0?function(F){}:x;if(!n)throw new Error(`Cannot get upload server address
没有配置上传地址`);if(!a)throw new Error(`Cannot get fieldName
没有配置 fieldName`);var k=n;d&&(k=function(F,I){var P=Hr(F.split("#"),2),R=P[0],H=P[1],Q=[];Lae(I,function(U,O){Q.push(O+"="+U)});var M=Q.join("&");return R=R.indexOf("?")>0?R+"&"+M:R+"?"+M,H?R+"#"+H:R}(k,c));var D=new c7({onBeforeUpload:b,restrictions:{maxFileSize:i,maxNumberOfFiles:l},meta:c}).use(BWt,{endpoint:k,headers:A,formData:!0,fieldName:a,bundle:!0,withCredentials:g,timeout:m});return D.on("upload-success",function(F,I){var P=I.body,R=P===void 0?{}:P;try{C(F,R)}catch(H){console.error("wangEditor upload file - onSuccess error",H)}D.removeFile(F.id)}),D.on("progress",function(F){F<1||E(F)}),D.on("upload-error",function(F,I,P){try{B(F,I,P)}catch(R){console.error("wangEditor upload file - onError error",R)}D.removeFile(F.id)}),D.on("restriction-failed",function(F,I){try{B(F,I)}catch(P){console.error("wangEditor upload file - onError error",P)}D.removeFile(F.id)}),D}function Th(e){return Th=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},Th(e)}function $Jt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yo(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(a){return Object.getOwnPropertyDescriptor(n,a).enumerable})),r.forEach(function(a){$Jt(e,a,n[a])})}return e}function C1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function W4e(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 S1(e,t,n){return t&&W4e(e.prototype,t),n&&W4e(e,n),e}function n3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u_(e,t){if(t&&(Th(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return n3(e)}function gm(e){return gm=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},gm(e)}function kY(e,t){return kY=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},kY(e,t)}function IP(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&kY(e,t)}zi&&!qJt&&YJt(PPe,"name",{configurable:!0,get:function(){try{return ZJt(RPe,JJt(this))[1]}catch{return""}}});var eZt={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)}},Rd=new(function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C1(this,e),this.init(t,n)}return S1(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||eZt,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,a){return a&&!this.debug?null:(typeof t[0]=="string"&&(t[0]="".concat(r).concat(this.prefix," ").concat(t[0])),this.logger
`)&&e.flags==="s")}),F$t=sr.RegExp,P$t=ao(function(){var e=F$t("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),R$t=PY.get,H$t=Loe("native-string-replace",String.prototype.replace),_M=RegExp.prototype.exec,HY=_M,V$t=Kn("".charAt),z$t=Kn("".indexOf),N$t=Kn("".replace),CN=Kn("".slice),SN=(_N=/b*/g,_o(_M,w3e=/a/,"a"),_o(_M,_N,"a"),w3e.lastIndex!==0||_N.lastIndex!==0),_3e=sRe.BROKEN_CARET,BN=/()??/.exec("")[1]!==void 0;(SN||BN||_3e||O$t||P$t)&&(HY=function(e){var t,n,r,a,o,i,s,l=this,u=R$t(l),c=no(e),f=u.raw;if(f)return f.lastIndex=l.lastIndex,t=_o(HY,f,c),l.lastIndex=f.lastIndex,t;var d=u.groups,h=_3e&&l.sticky,A=_o(iRe,l),p=l.source,g=0,v=c;if(h&&(A=N$t(A,"y",""),z$t(A,"g")===-1&&(A+="g"),v=CN(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&V$t(c,l.lastIndex-1)!==`
`)&&(p="(?: "+p+")",v=" "+v,g++),n=new RegExp("^(?:"+p+")",A)),BN&&(n=new RegExp("^"+p+"$(?!\\s)",A)),SN&&(r=l.lastIndex),a=_o(_M,h?n:l,v),h?a?(a.input=CN(a.input,g),a[0]=CN(a[0],g),a.index=l.lastIndex,l.lastIndex+=a[0].length):l.lastIndex=0:SN&&a&&(l.lastIndex=l.global?a.index+a[0].length:r),BN&&a&&a.length>1&&_o(H$t,a[0],n,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(a[o]=void 0)}),a&&d)for(a.groups=i=cRe(null),o=0;o<d.length;o++)i[(s=d[o])[0]]=a[s[1]];return a});var d_=HY;wi({target:"RegExp",proto:!0,forced:/./.exec!==d_},{exec:d_});var Koe=Function.prototype,C3e=Koe.apply,Q$t=Koe.bind,S3e=Koe.call,fRe=typeof Reflect=="object"&&Reflect.apply||(Q$t?S3e.bind(C3e):function(){return S3e.apply(C3e,arguments)}),U$t=Du("species"),EN=RegExp.prototype,Goe=function(e,t,n,r){var a=Du(e),o=!ao(function(){var u={};return u[a]=function(){return 7},""[e](u)!=7}),i=o&&!ao(function(){var u=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[U$t]=function(){return c},c.flags="",c[a]=/./[a]),c.exec=function(){return u=!0,null},c[a](""),!u});if(!o||!i||n){var s=Kn(/./[a]),l=t(a,""[e],function(u,c,f,d,h){var A=Kn(u),p=c.exec;return p===d_||p===EN.exec?o&&!h?{done:!0,value:s(c,f,d)}:{done:!0,value:A(f,c,d)}:{done:!1}});c_(String.prototype,e,l[0]),c_(EN,a,l[1])}r&&mm(EN[a],"sham",!0)},j$t=Kn("".charAt),B3e=Kn("".charCodeAt),K$t=Kn("".slice),G$t=function(e){return function(t,n){var r,a,o=no(Mc(t)),i=g5(n),s=o.length;return i<0||i>=s?e?"":void 0:(r=B3e(o,i))<55296||r>56319||i+1===s||(a=B3e(o,i+1))<56320||a>57343?e?j$t(o,i):r:e?K$t(o,i,i+2):a-56320+(r-55296<<10)+65536}},W$t=G$t(!0),Woe=function(e,t,n){return t+(n?W$t(e,t).length:1)},X$t=Math.floor,xN=Kn("".charAt),q$t=Kn("".replace),TN=Kn("".slice),Y$t=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,J$t=/\$([$&'`]|\d{1,2})/g,Z$t=function(e,t,n,r,a,o){var i=n+e.length,s=r.length,l=J$t;return a!==void 0&&(a=vS(a),l=Y$t),q$t(o,l,function(u,c){var f;switch(xN(c,0)){case"$":return"$";case"&":return e;case"`":return TN(t,0,n);case"'":return TN(t,i);case"<":f=a[TN(c,1,-1)];break;default:var d=+c;if(d===0)return u;if(d>s){var h=X$t(d/10);return h===0?u:h<=s?r[h-1]===void 0?xN(c,1):r[h-1]+xN(c,1):u}f=r[d-1]}return f===void 0?"":f})},$$t=sr.TypeError,h_=function(e,t){var n=e.exec;if(is(n)){var r=_o(n,e,t);return r!==null&&vu(r),r}if(kh(e)==="RegExp")return _o(d_,e,t);throw $$t("RegExp#exec called on incompatible receiver")},VY=Du("replace"),een=Math.max,ten=Math.min,nen=Kn([].concat),kN=Kn([].push),E3e=Kn("".indexOf),x3e=Kn("".slice),ren="a".replace(/./,"$0")==="$0",T3e=!!/./[VY]&&/./[VY]("a","$0")==="";Goe("replace",function(e,t,n){var r=T3e?"$":"$0";return[function(a,o){var i=Mc(this),s=a==null?void 0:FP(a,VY);return s?_o(s,a,i,o):_o(t,no(i),a,o)},function(a,o){var i=vu(this),s=no(a);if(typeof o=="string"&&E3e(o,r)===-1&&E3e(o,"$<")===-1){var l=n(t,i,s,o);if(l.done)return l.value}var u=is(o);u||(o=no(o));var c=i.global;if(c){var f=i.unicode;i.lastIndex=0}for(var d=[];;){var h=h_(i,s);if(h===null||(kN(d,h),!c))break;no(h[0])===""&&(i.lastIndex=Woe(s,gS(i.lastIndex),f))}for(var A,p="",g=0,v=0;v<d.length;v++){for(var m=no((h=d[v])[0]),y=een(ten(g5(h.index),s.length),0),b=[],_=1;_<h.length;_++)kN(b,(A=h[_])===void 0?A:String(A));var C=h.groups;if(u){var S=nen([m],b,y,s);C!==void 0&&kN(S,C);var B=no(fRe(o,void 0,S))}else B=Z$t(m,s,y,b,C,o);y>=g&&(p+=x3e(s,g,y)+B,g=y+m.length)}return p+x3e(s,g)}]},!!ao(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!ren||T3e);var zY=Du("unscopables"),NY=Array.prototype;NY[zY]==null&&v5.f(NY,zY,{configurable:!0,value:cRe(null)});var dRe=function(e){NY[zY][e]=!0},aen=HP.find,k3e=!0;"find"in[]&&Array(1).find(function(){k3e=!1}),wi({target:"Array",proto:!0,forced:k3e},{find:function(e){return aen(this,e,arguments.length>1?arguments[1]:void 0)}}),dRe("find");var oen=Du("match"),hRe=function(e){var t;return oc(e)&&((t=e[oen])!==void 0?!!t:kh(e)=="RegExp")},ien=sr.TypeError,sen=Du("species"),pRe=function(e,t,n){var r=Ooe(t);r in e?v5.f(e,r,Doe(0,n)):e[r]=n},len=sr.Array,uen=Math.max,D3e=function(e
\v\f\r                 \u2028\u2029\uFEFF`,I3e=Kn("".replace),CM="["+QY+"]",den=RegExp("^"+CM+CM+"*"),hen=RegExp(CM+CM+"*$"),DN=function(e){return function(t){var n=no(Mc(t));return 1&e&&(n=I3e(n,den,"")),2&e&&(n=I3e(n,hen,"")),n}},pen={start:DN(1),end:DN(2),trim:DN(3)},Aen=PP.PROPER,ven=pen.trim;function Xoe(e){return Ue("<div>"+e+"</div>").children().filter(function(t){return t.tagName!=="BR"}).length===0}function m5(e){return e.length===0?"":e[0].outerHTML}function y5(e){return e.length?e[0].tagName.toLowerCase():""}function h0(e,t){for(var n="",r=(e.attr("style")||"").split(";"),a=r.length,o=0;o<a;o++){var i=r[o];if(i){var s=i.split(":");s[0].trim()===t&&(n=s[1].trim())}}return n}wi({target:"String",proto:!0,forced:ao(function(){return!!QY.trim()||"​…᠎".trim()!=="​…᠎"||Aen&&QY.trim.name!=="trim"})},{trim:function(){return ven(this)}}),wi({global:!0},{globalThis:sr}),XI&&(Ue.fn.css=XI),kc&&(Ue.fn.append=kc),mAe&&(Ue.fn.prepend=mAe),tm&&(Ue.fn.addClass=tm),nm&&(Ue.fn.removeClass=nm),rm&&(Ue.fn.hasClass=rm),Hf&&(Ue.fn.on=Hf),pAe&&(Ue.fn.off=pAe),cp&&(Ue.fn.focus=cp),Tc&&(Ue.fn.attr=Tc),jI&&(Ue.fn.removeAttr=jI),om&&(Ue.fn.hide=om),WI&&(Ue.fn.show=WI),JI&&(Ue.fn.parents=JI),am&&(Ue.fn.dataset=am),Rf&&(Ue.fn.val=Rf),YI&&(Ue.fn.text=YI),up&&(Ue.fn.html=up),lm&&(Ue.fn.children=lm),um&&(Ue.fn.remove=um),sm&&(Ue.fn.find=sm),KI&&(Ue.fn.width=KI),GI&&(Ue.fn.height=GI),vAe&&(Ue.fn.filter=vAe),cm&&(Ue.fn.empty=cm);var gen={selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Ue(e);return(t=t.filter(function(a){return!!fn.isText(a)||!!n.isInline(a)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},UY=function(e,t){return UY=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},UY(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 Ya(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}UY(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var hp=function(){return hp=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},hp.apply(this,arguments)};function Gp(e,t,n,r){return new(n||(n=Promise))(function(a,o){function i(u){try{l(r.next(u))}catch(c){o(c)}}function s(u){try{l(r.throw(u))}catch(c){o(c)}}function l(u){var c;u.done?a(u.value):(c=u.value,c instanceof n?c:new n(function(f){f(c)})).then(i,s)}l((r=r.apply(e,t||[])).next())})}function Wp(e,t){var n,r,a,o,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;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&&(a=2&c[0]?r.return:c[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,c[1])).done)return a;switch(r=0,a&&(c=[2&c[0],a.value]),c[0]){case 0:case 1:a=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(!((a=(a=i.trys).length>0&&a[a.length-1])||c[0]!==6&&c[0]!==2)){i=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){i.label=c[1];break}if(c[0]===6&&i.label<a[1]){i.label=a[1],a=c;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(c);break}a[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(f){c=[6,f],r=0}finally{n=a=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([l,u])}}}function vRe(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 Zr(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,a,o=n.call(e),i=[];try{for(;(t===void 0||t-- >0)&&!(r=o.next()).done;)i.push(r.value)}catch(s){a={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(a)throw a.error}}return i}function M3e(e){var t=Zr(ye.nodes(e,{match:function(o){return e.children[0]===o},mode:"highest"}),1)[0];if(t==null)return!1;var n=t[0];if(!xn.isElement(n)||n.type==="paragraph"||Zt.string(n)!=="")return!1;var r=n.children,a=r===void 0?[]:r;return!!fn.isText(a[0])&&(st.setNodes(e,{type:"paragraph"}),!0)}var men={renderElems:[CZt],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return t===""?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[gen],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(a){M3e(r)||t(a)},r.deleteForward=function(a){M3e(r)||n(a)},r}},yen=/"/g,ben=Kn("".replace),p7=function(e,t,n,r){var a=no(Mc(e)),o="<"+t;return n!==""&&(o+=" "+n+'="'+ben(no(r),yen,"&quot;")+'"'),o+">"+a+"</"+t+">"},A7=function(e){return ao(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})};function IN(e,t){var n=t,r=e,a=r.bold,o=r.italic,i=r.underline;return a&&(n="<strong>"+n+"</strong>"),r.code&&(n="<code>"+n+"</code>"),o&&(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 hA(e,t){return e.length!==0&&(!!e[0].matches(t)||e.find(t).length>0)}wi({target:"String",proto:!0,forced:A7("bold")},{bold:function(){return p7(this,"b","","")}}),wi({target:"String",proto:!0,forced:A7("italics")},{italics:function(){return p7(this,"i","","")}}),wi({target:"String",proto:!0,forced:A7("sub")},{sub:function(){return p7(this,"sub","","")}}),wi({target:"String",proto:!0,forced:A7("sup")},{sup:function(){retu
<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 a.prepend(l),a[0]},e}(),Btn=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=$t("color.color"),n.iconSvg=ken,n.mark="color",n}return Ya(t,e),t}(TRe),Etn=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=$t("color.bgColor"),n.iconSvg=Den,n.mark="bgColor",n}return Ya(t,e),t}(TRe),V3e=["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)"],xtn={renderStyle:function(e,t){var n=e,r=n.color,a=n.bgColor,o=t;return r&&r3(o,{color:r}),a&&r3(o,{backgroundColor:a}),o},styleToHtml:function(e,t){if(!fn.isText(e))return t;var n,r=e,a=r.color,o=r.bgColor;return a||o?((Xoe(t)||y5(n=Ue(t))!=="span")&&(n=Ue("<span>"+t+"</span>")),a&&n.css("color",a),o&&n.css("background-color",o),m5(n)):t},preParseHtml:[Stn],parseStyleHtml:function(e,t,n){var r=Ue(e);if(!fn.isText(t))return t;var a=t,o=h0(r,"color");o&&(a.color=o);var i=h0(r,"background-color");return i||(i=h0(r,"background")),i&&(a.bgColor=i),a},menus:[{key:"color",factory:function(){return new Btn},config:{colors:V3e}},{key:"bgColor",factory:function(){return new Etn},config:{colors:V3e}}]},Ttn=/^(?:\w+:)?\/\/(\S+)$/,ktn=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,Dtn=/^[^\s\.]+\.\S{2,}$/,Itn=eRe.includes;function VP(e){return e===void 0&&(e="r"),e+"-"+YOe()}function qoe(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function kRe(e,t,n,r){return Gp(this,void 0,void 0,function(){var a,o;return Wp(this,function(i){switch(i.label){case 0:return(a=t.getMenuConfig(e).checkLink)?[4,a(n,r)]:[3,2];case 1:if(typeof(o=i.sent())=="string")return t.alert(o,"error"),[2,!1];if(o==null)return[2,!1];i.label=2;case 2:return[2,!0]}})})}function DRe(e,t,n){return Gp(this,void 0,void 0,function(){var r;return Wp(this,function(a){switch(a.label){case 0:return(r=t.getMenuConfig(e).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,a.sent()];case 2:return[2,n]}})})}function Yoe(e){return e.selection==null||!!ze.getSelectedElems(e).some(function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0})}function PN(e,t){return{type:"link",url:qoe(e),children:t?[{text:t}]:[]}}function IRe(e,t,n){return Gp(this,void 0,void 0,function(){var r,a,o;return Wp(this,function(i){switch(i.label){case 0:return n?(t||(t=n),e.restoreSelection(),Yoe(e)?[2]:[4,kRe("insertLink",e,t,n)]):[2];case 1:return i.sent()?[4,DRe("insertLink",e,n)]:[2];case 2:return r=i.sent(),(a=e.selection)==null||(yt.isCollapsed(a)?(e.insertText(" "),o=PN(r,t),st.insertNodes(e,o),e.insertFragment([{text:" "}])):ye.string(e,a)!==t?(e.deleteFragment(),o=PN(r,t),st.insertNodes(e,o)):(o=PN(r),st.wrapNodes(e,o,{split:!0}),st.collapse(e,{edge:"end"}))),[2]}})})}wi({target:"Array",proto:!0},{includes:function(e){return Itn(this,e,arguments.length>1?a
`)return e.deleteBackward("character"),void st.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n(`
`)},r}},fnn=function(){function e(){this.title=$t("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||!!Zr(ye.nodes(t,{match:function(n){return ze.getNodeType(n)==="pre"||!!ye.isVoid(t,n)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(t){if(this.$content==null){var n=Ue('<ul class="w-e-panel-content-emotion"></ul>');n.on("click","li",function(o){var i=o.target;if(i!=null){o.preventDefault();var s=Ue(i).text();t.insertText(s)}}),this.$content=n}var r=this.$content;if(r==null)return document.createElement("ul");r.empty();var a=t.getMenuConfig("emotion").emotions;return(a===void 0?[]:a).forEach(function(o){var i=Ue("<li>"+o+"</li>");r.append(i)}),r[0]},e}(),dnn={menus:[{key:"emotion",factory:function(){return new fnn},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},hnn={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},pnn={selector:"font",preParseHtml:function(e){var t=Ue(e);if(y5(t)!=="font")return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",hnn[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},Ann=Kn("".indexOf);wi({target:"String",proto:!0,forced:!SRe("includes")},{includes:function(e){return!!~Ann(no(Mc(this)),no(CRe(e)),arguments.length>1?arguments[1]:void 0)}});var Y1,jk,LE=function(e){return e&&e.Math==Math&&e},gr=LE(typeof globalThis=="object"&&globalThis)||LE(typeof window=="object"&&window)||LE(typeof self=="object"&&self)||LE(typeof gM=="object"&&gM)||function(){return this}()||Function("return this")(),Zoe=Function.prototype,G3e=Zoe.apply,vnn=Zoe.bind,W3e=Zoe.call,PRe=typeof Reflect=="object"&&Reflect.apply||(vnn?W3e.bind(G3e):function(){return W3e.apply(G3e,arguments)}),RRe=Function.prototype,GY=RRe.bind,WY=RRe.call,gnn=GY&&GY.bind(WY),Co=GY?function(e){return e&&gnn(WY,e)}:function(e){return e&&function(){return WY.apply(e,arguments)}},ss=function(e){return typeof e=="function"},Eu=function(e){try{return!!e()}catch{return!0}},Rl=!Eu(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Uy=Function.prototype.call,a0=Uy.bind?Uy.bind(Uy):function(){return Uy.apply(Uy,arguments)},X3e={}.propertyIsEnumerable,q3e=Object.getOwnPropertyDescriptor,mnn=q3e&&!X3e.call({1:2},1)?function(e){var t=q3e(this,e);return!!t&&t.enumerable}:X3e,$oe={f:mnn},a3=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ynn=Co({}.toString),bnn=Co("".slice),c4=function(e){return bnn(ynn(e),8,-1)},zN=gr.Object,wnn=Co("".split),HRe=Eu(function(){return!zN("z").propertyIsEnumerable(0)})?function(e){return c4(e)=="String"?wnn(e,""):zN(e)}:zN,_nn=gr.TypeError,eie=function(e){if(e==null)throw _nn("Can't call method on "+e);return e},ad=function(e){return HRe(eie(e))},ic=function(e){return typeof e=="object"?e!==null:ss(e)},
`).map(function(o){return{type:"paragraph",children:[{text:o}]}});st.insertNodes(t,a,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(t,n){var r,a,o=[],i=ye.nodes(t,{match:function(f){return t.children.includes(f)},universal:!0});try{for(var s=vRe(i),l=s.next();!l.done;l=s.next()){var u=Zr(l.value,1)[0];u&&o.push(Zt.string(u))}}catch(f){r={error:f}}finally{try{l&&!l.done&&(a=s.return)&&a.call(s)}finally{if(r)throw r.error}}st.removeNodes(t,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:n,children:[{text:o.join(`
`)}]}]};st.insertNodes(t,c,{mode:"highest"})},e}(),kan={key:"codeBlock",factory:function(){return new Tan}};wi({target:"String",proto:!0,forced:A7("anchor")},{anchor:function(e){return p7(this,"a","name",e)}}),Goe("match",function(e,t,n){return[function(r){var a=Mc(this),o=r==null?void 0:FP(r,e);return o?_o(o,r,a):new RegExp(r)[e](no(a))},function(r){var a=vu(this),o=no(r),i=n(t,a,o);if(i.done)return i.value;if(!a.global)return h_(a,o);var s=a.unicode;a.lastIndex=0;for(var l,u=[],c=0;(l=h_(a,o))!==null;){var f=no(l[0]);u[c]=f,f===""&&(a.lastIndex=Woe(o,gS(a.lastIndex),s)),c++}return c===0?null:u}]});var Dan={type:"pre",renderElem:function(e,t,n){return Gn("pre",null,t)}},Ian={type:"code",renderElem:function(e,t,n){return Gn("code",null,t)}},Man={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Ue(e);return(t=t.filter(function(a){return ze.getNodeType(a)==="code"})).length===0&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter(function(a){return ze.getNodeType(a)==="code"})}}},Lan={menus:[kan],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var a=e;return a.insertBreak=function(){var o=ze.getSelectedNodeByType(a,"code");if(o!=null){var i=function(u,c){var f=c.selection;if(f==null)return"";var d=Zt.string(u),h=f.anchor.offset,A=d.slice(0,h).split(`
`),p=A.length;return p===0?"":A[p-1]}(o,a);if(i){var s=i.match(/^\s+/);if(s!=null&&s[0]!=null){var l=s[0];return void a.insertText(`
`+l)}}a.insertText(`
`)}else t()},a.normalizeNode=function(o){var i=Zr(o,2),s=i[0],l=i[1],u=ze.getNodeType(s);return u==="code"&&l.length<=1&&st.setNodes(a,{type:"paragraph"},{at:l}),u==="pre"&&(ze.isLastNode(a,s)&&st.insertNodes(a,ze.genEmptyParagraph(),{at:[l[0]+1]}),ze.getNodeType(s.children[0])!=="code"&&(st.unwrapNodes(a),st.setNodes(a,{type:"paragraph"},{mode:"highest"}))),n([s,l])},a.insertData=function(o){if(ze.getSelectedNodeByType(a,"code")!=null){var i=o.getData("text/plain");ye.insertText(a,i)}else r(o)},a},renderElems:[Dan,Ian],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=Ue(e);if(y5(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:Ue(e)[0].textContent||""}]}}},Man]},Oan=function(){function e(){this.title=$t("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}(),Fan={menus:[{key:"fullScreen",factory:function(){return new Oan}}]},Pan=function(){function e(){this.title=$t("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||!!yt.isExpanded(n)},e.prototype.exec=function(t,n){var r=t.selection;if(r!=null){var a=[r.anchor.path[0]];st.insertNodes(t,{type:"paragraph",children:[{text:""}]},{at:a}),t.select(ye.start(t,a))}},e}(),Ran=[qen,xtn,ian,can,Aan,gan,Jtn,Can,dnn,Htn,Lan,cnn,_tn,men,tnn,ban,Fan,{menus:[{key:"enter",factory:function(){return new Pan}}]}];Ul("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),Ul("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var k6e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function lie(e){var t={exports:{}};return e(t,t.exports),t.exports}var Z1,Gk,RE=function(e){return e&&e.Math==Math&&e},Wn=RE(typeof globalThis=="object"&&globalThis)||RE(typeof window=="object"&&window)||RE(typeof self=="object"&&self)||RE(typeof k6e=="object"&&k6e)||fu
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 NHe(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}bJ(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function hge(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 wb(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,a,o=n.call(e),i=[];try{for(;(t===void 0||t-- >0)&&!(r=o.next()).done;)i.push(r.value)}catch(s){a={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(a)throw a.error}}return i}function pge(e){return ye.nodes(e,{at:e.selection||void 0,match:function(t){return ze.findPath(e,t).length===1}})}var Tin=mHe.includes;Ap({target:"Array",proto:!0},{includes:function(e){return Tin(this,e,arguments.length>1?arguments[1]:void 0)}}),yb("includes");var Age,uQ,kin=function(){var e=jl(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},Eie=Wn.RegExp,wJ=Ao(function(){var e=Eie("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),Din=wJ||Ao(function(){return!Eie("a","y").sticky}),Iin={BROKEN_CARET:wJ||Ao(function(){var e=Eie("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:Din,UNSUPPORTED_Y:wJ},Min=Wn.RegExp,Lin=Ao(function(){var e=Min(".","s");return!(e.dotAll&&e.exec(`
`)&&e.flags==="s")}),Oin=Wn.RegExp,Fin=Ao(function(){var e=Oin("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Pin=Vf.get,Rin=cie("native-string-replace",String.prototype.replace),zM=RegExp.prototype.exec,_J=zM,Hin=Br("".charAt),Vin=Br("".indexOf),zin=Br("".replace),cQ=Br("".slice),fQ=(uQ=/b*/g,_i(zM,Age=/a/,"a"),_i(zM,uQ,"a"),Age.lastIndex!==0||uQ.lastIndex!==0),vge=Iin.BROKEN_CARET,dQ=/()??/.exec("")[1]!==void 0;(fQ||dQ||vge||Lin||Fin)&&(_J=function(e){var t,n,r,a,o,i,s,l=this,u=Pin(l),c=kd(e),f=u.raw;if(f)return f.lastIndex=l.lastIndex,t=_i(_J,f,c),l.lastIndex=f.lastIndex,t;var d=u.groups,h=vge&&l.sticky,A=_i(kin,l),p=l.source,g=0,v=c;if(h&&(A=zin(A,"y",""),Vin(A,"g")===-1&&(A+="g"),v=cQ(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&Hin(c,l.lastIndex-1)!==`
`)&&(p="(?: "+p+")",v=" "+v,g++),n=new RegExp("^(?:"+p+")",A)),dQ&&(n=new RegExp("^"+p+"$(?!\\s)",A)),fQ&&(r=l.lastIndex),a=_i(zM,h?n:l,v),h?a?(a.input=cQ(a.input,g),a[0]=cQ(a[0],g),a.index=l.lastIndex,l.lastIndex+=a[0].length):l.lastIndex=0:fQ&&a&&(l.lastIndex=l.global?a.index+a[0].length:r),dQ&&a&&a.length>1&&_i(Rin,a[0],n,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(a[o]=void 0)}),a&&d)for(a.groups=i=gie(null),o=0;o<d.length;o++)i[(s=d[o])[0]]=a[s[1]];return a});var NM=_J;Ap({target:"RegExp",proto:!0,forced:/./.exec!==NM},{exec:NM});var QHe=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(t){var n=this.type;return ze.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||!!ze.getSelectedElems(t).some(function(n){if(ye.isVoid(t,n)&&ye.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)?st.setNodes(t,{type:"paragraph",ordered:void 0,level:void 0}):st.setNodes(t,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),Nin='<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>',Qin='<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>',Uin=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.ordered=!1,n.title=$t("listModule.unOrderedList"),n.iconSvg=Nin,n}return NHe(t,e),t}(QHe),jin=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.ordered=!0,n.title=$t("listModule.orderedList"),n.iconSvg=Qin,n}return NHe(t,e),t}(QHe),Kin={key:"bulletedList",factory:function(){return new Uin}},Gin={key:"numberedList",factory:function(){return new jin}},gge=[],Win={type:"list-item",elemToHtml:function(e,t){var n="",r="",a=e.ordered,o=a!==void 0&&a?"ol":"ul",i=function(u){var c=yJ.get(u);if(c==null)return 0;var f=u,d=f.type,h=f.ordered,A=h!==void 0&&h,p=f.level,g=p===void 0?0:p,v=ze.findPath(c,u);if(v[0]===0)return g+1;var m=at.previous(v),y=ye.node(c,m);if(!y)return 0;var b=wb(y,1)[0];if(ze.getNodeType(b)!==d)return g+1;var _=b,C=_.ordered,S=C!==void 0&&C,B=_.level,x=B===void 0?0:B;return x<g?g-x:x>g?0:x===g?S===A?0:1:0}(e);if(i>0)for(var s=0;s<i;s++)n+="<"+o+">",gge.push(o);var l=function(u){var c=yJ.get(u);if(c==null)return 0;var f=u,d=f.type,h=f.ordered,A=h!==void 0&&h,p=f.level,g=p===void 0?0:p,v=ze.findPath(c,u);if(v[0]===c.children.length-1)return g+1;var m=at.next(v),y=ye.node(c,m);if(!y)return 0;var b=wb(y,1)[0];if(ze.getNodeType(b)!==d)return g+1;var _=b,C=_.ordered,S=C!==void 0&&C,B=_.level,x=B===void 0?0:B;return x<g?g-x:x>g?0:x===g?S===A?0:1:0}(e);if(l>0)for(s=0;s<l;s++)r+="</"+gge.pop()+">";return{html:"<li>"+t+"</li>",prefix:n,suffix:r}}},Xin=As("species"),qin=Bie.filter,Yin=oJ>=51||!Ao(function(){var e=[];return(e.constructor={})[Xin]=function(){return{foo:1}},e.filter(Boolean).foo!==1});Ap({target:"Array",proto:!0,forced:!Yin},{filter:function(e){return qin(this,e,arguments.length>1?arguments[1]:void 0)}});var xie=Function.prototype,mge=xie.apply,Jin=xie.bind,yge=xie.call,Zin=typeof Reflect=="object"&&Reflect.apply||(Jin?yge.bind(mge):function(){return yge.apply(mge,arguments)}),bge=(As("species"),RegExp.prototype),$in=THe.charAt,esn=function(e,t,n){return t+(n?$in(e,t).length:1)},tsn=Math.floor,hQ=Br("".charAt),nsn=Br("".replace),pQ=Br("".slice),rsn=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,asn=/\$([$&'`]|\d{1,2})/g,osn=function(e,t,n,r,a,o){var i=n+e.length,s=r.length,l=asn;return a!==void 0&&(
`)&&e.flags==="s")}),Cln=yr.RegExp,Sln=si(function(){var e=Cln("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Bln=DJ.get,Eln=Mie("native-string-replace",String.prototype.replace),KM=RegExp.prototype.exec,MJ=KM,xln=Ir("".charAt),Tln=Ir("".indexOf),kln=Ir("".replace),CQ=Ir("".slice),SQ=(_Q=/b*/g,$o(KM,Vge=/a/,"a"),$o(KM,_Q,"a"),Vge.lastIndex!==0||_Q.lastIndex!==0),zge=oVe.BROKEN_CARET,BQ=/()??/.exec("")[1]!==void 0;(SQ||BQ||zge||_ln||Sln)&&(MJ=function(e){var t,n,r,a,o,i,s,l=this,u=Bln(l),c=Ds(e),f=u.raw;if(f)return f.lastIndex=l.lastIndex,t=$o(MJ,f,c),l.lastIndex=f.lastIndex,t;var d=u.groups,h=zge&&l.sticky,A=$o(aVe,l),p=l.source,g=0,v=c;if(h&&(A=kln(A,"y",""),Tln(A,"g")===-1&&(A+="g"),v=CQ(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&xln(c,l.lastIndex-1)!==`
`)&&(p="(?: "+p+")",v=" "+v,g++),n=new RegExp("^(?:"+p+")",A)),BQ&&(n=new RegExp("^"+p+"$(?!\\s)",A)),SQ&&(r=l.lastIndex),a=$o(KM,h?n:l,v),h?a?(a.input=CQ(a.input,g),a[0]=CQ(a[0],g),a.index=l.lastIndex,l.lastIndex+=a[0].length):l.lastIndex=0:SQ&&a&&(l.lastIndex=l.global?a.index+a[0].length:r),BQ&&a&&a.length>1&&$o(Eln,a[0],n,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(a[o]=void 0)}),a&&d)for(a.groups=i=lVe(null),o=0;o<d.length;o++)i[(s=d[o])[0]]=a[s[1]];return a});var g_=MJ;mp({target:"RegExp",proto:!0,forced:/./.exec!==g_},{exec:g_});var GM=Array.isArray||function(e){return Oh(e)=="Array"},uVe=function(){},Dln=[],cVe=IS("Reflect","construct"),Uie=/^\s*(?:class|function)\b/,Iln=Ir(Uie.exec),Mln=!Uie.exec(uVe),t9=function(e){if(!ls(e))return!1;try{return cVe(uVe,Dln,e),!0}catch{return!1}},jie=!cVe||si(function(){var e;return t9(t9.call)||!t9(Object)||!t9(function(){e=!0})||e})?function(e){if(!ls(e))return!1;switch(Nie(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Mln||!!Iln(Uie,Pie(e))}:t9,fVe=function(e,t,n){var r=Oie(t);r in e?MS.f(e,r,Tie(0,n)):e[r]=n},Lln=Fc("species"),Kie=function(e){return EJ>=51||!si(function(){var t=[];return(t.constructor={})[Lln]=function(){return{foo:1}},t[e](Boolean).foo!==1})},Oln=Ir([].slice),Fln=Kie("slice"),Pln=Fc("species"),EQ=yr.Array,Rln=Math.max;function _0(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,a,o=n.call(e),i=[];try{for(;(t===void 0||t-- >0)&&!(r=o.next()).done;)i.push(r.value)}catch(s){a={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(a)throw a.error}}return i}function Nge(e){var t=e.selection;if(t==null)return!1;var n=_0(ye.nodes(e,{match:function(o){return ze.checkNodeType(o,"table-cell")}}),1)[0];if(n){var r=_0(n,2)[1],a=ye.start(e,r);if(hr.equals(t.anchor,a))return!0}return!1}function Qge(e,t){var n,r,a=ye.nodes(e,{at:t,match:function(l){return ze.getNodeType(l)==="table"}}),o=!1;try{for(var i=function(l){var u=typeof Symbol=="function"&&Symbol.iterator,c=u&&l[u],f=0;if(c)return c.call(l);if(l&&typeof l.length=="number")return{next:function(){return l&&f>=l.length&&(l=void 0),{value:l&&l[f++],done:!l}}};throw new TypeError(u?"Object is not iterable.":"Symbol.iterator is not defined.")}(a),s=i.next();!s.done;s=i.next())s.value,o=!0}catch(l){n={error:l}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o}mp({target:"Array",proto:!0,forced:!Fln},{slice:function(e,t){var n,r,a,o=DS(this),i=JP(o),s=v_(e,i),l=v_(t===void 0?i:t,i);if(GM(o)&&(n=o.constructor,(jie(n)&&(n===EQ||GM(n.prototype))||sc(n)&&(n=n[Pln])===null)&&(n=void 0),n===EQ||n===void 0))return Oln(o,s,l);for(r=new(n===void 0?EQ:n)(Rln(l-s,0)),a=0;s<l;s++,a++)s in o&&fVe(r,a,o[s]);return r.length=a,r}});var Uge=Ir(Ir.bind),Hln=Fc("species"),jge=yr.Array,Vln=function(e,t){return new(function(n){var r;return GM(n)&&(r=n.constructor,(jie(r)&&(r===jge||GM(r.prototype))||sc(r)&&(r=r[Hln])===null)&&(r=void 0)),r===void 0?jge:r}(e))(t===0?0:t)},Kge=Ir([].push),t2=function(e){var t=e==1,n=e==2,r=e==3,a=e==4,o=e==6,i=e==7,s=e==5||o;return function(l,u,c,f){for(var d,h,A=Lie(l),p=WHe(A),g=function(_,C){return YHe(_),C===void 0?_:Uge?Uge(_,C):function(){return _.apply(C,arguments)}}(u,c),v=JP(p),m=0,y=f||Vln,b=t?y(l,v):n||i?y(l,0):void 0;v>m;m++)if((s||m in p)&&(h=g(d=p[m],m,A),e))if(t)b[m]=h;else if(h)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Kge(b,d)}else switch(e){case 4:return!1;case 7:Kge(b,d)}return o?-1:r||a?a:b}},ZP={forEach:t2(0),map:t2(1),filter:t2(2),some:t2(3),every:t2(4),find:t2(5),findIndex:t2(6),filterReject:t2(7)},zln=ZP.map;mp({target:"Array",proto:!0,forced:!Kie("map")},{map:function(e){return zln(this,e,arguments.length>1?arguments[1]:void 0)}});var Nln=zie?{}.toString:function(){return"[object "+Nie(this)+"]"};function $P(e){var t=e.children||[];return t.length===0?[]:(t[0]||{}).children||[]}function dVe(e){return $P(e).every(function(t){return!!t.isHeader})}zie||A_(Object.prototype,"toString",Nln,{unsafe:!0});var Qln=Hie.PROPER,L
\v\f\r                 \u2028\u2029\uFEFF`,Jge=Ir("".replace),WM="["+RJ+"]",sun=RegExp("^"+WM+WM+"*"),lun=RegExp(WM+WM+"*$"),TQ=function(e){return function(t){var n=Ds(gp(t));return 1&e&&(n=Jge(n,sun,"")),2&e&&(n=Jge(n,lun,"")),n}},uun={start:TQ(1),end:TQ(2),trim:TQ(3)},cun=Hie.PROPER,fun=uun.trim;function mVe(e){return e.length?e[0].tagName.toLowerCase():""}mp({target:"String",proto:!0,forced:function(e){return si(function(){return!!RJ[e]()||"​…᠎"[e]()!=="​…᠎"||cun&&RJ[e].name!==e})}("trim")},{trim:function(){return fun(this)}}),mp({global:!0},{globalThis:yr}),kc&&(Ue.fn.append=kc),Hf&&(Ue.fn.on=Hf),cp&&(Ue.fn.focus=cp),Tc&&(Ue.fn.attr=Tc),Rf&&(Ue.fn.val=Rf),up&&(Ue.fn.html=up),am&&(Ue.fn.dataset=am),tm&&(Ue.fn.addClass=tm),nm&&(Ue.fn.removeClass=nm),lm&&(Ue.fn.children=lm),qI&&(Ue.fn.each=qI),sm&&(Ue.fn.find=sm);var m_=!1,yVe=0,bVe=0,y_=null,b_=null,Cb=Ue("body");function wVe(e){m_=!1,b_=null,y_=null,Cb.off("mousemove",_Ve),Cb.off("mouseup",wVe)}Cb.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(),m_=!0;var n=e.clientX;yVe=n;var r=t.getBoundingClientRect().width;bVe=r,Cb.on("mousemove",_Ve),Cb.on("mouseup",wVe)}});var _Ve=J4(function(e){if(m_&&b_!=null&&y_!=null){e.preventDefault();var t=e.clientX,n=bVe+(t-yVe);(n=Math.floor(100*n)/100)<30&&(n=30),st.setNodes(b_,{width:n.toString()},{at:y_})}},100),dun={type:"table",renderElem:function(e,t,n){var r=function(s,l){if(s.isDisabled())return!1;var u=s.selection;if(u==null||yt.isCollapsed(u))return!0;var c=u.anchor,f=u.focus,d=ze.findPath(s,l),h=ye.start(s,d),A=ye.end(s,d),p=hr.compare(c,A)<=0&&hr.compare(c,h)>=0,g=hr.compare(f,A)<=0&&hr.compare(f,h)>=0;return!!(p&&g&&at.equals(c.path.slice(0,3),f.path.slice(0,3)))}(n,e),a=e.width,o=a===void 0?"auto":a,i=Gn("div",{className:"table-container","data-selected":ze.isNodeSelected(n,e),on:{mousedown:function(s){if(s.target.tagName==="DIV"&&s.preventDefault(),!n.isDisabled()){var l=ze.findPath(n,e),u=ye.start(n,l),c=n.selection;c!=null?c.anchor.path[0]!==l[0]&&n.select(u):n.select(u)}}}},Gn("table",{width:o,contentEditable:r},Gn("colgroup",null,$P(e).map(function(s){var l=s.width;return Gn("col",{width:l===void 0?"auto":l})})),Gn("tbody",null,t)));return i}},hun={type:"table-row",renderElem:function(e,t,n){return Gn("tr",null,t)}},pun={type:"table-cell",renderElem:function(e,t,n){var r=function(d,h){var A=ze.getParentNode(d,h);if(A==null)return!1;var p=ze.getParentNode(d,A);return p!=null&&$P(p).some(function(g){return g===h})}(n,e),a=e,o=a.colSpan,i=o===void 0?1:o,s=a.rowSpan,l=s===void 0?1:s,u=a.isHeader,c=u!==void 0&&u;if(!r)return Gn("td",{colSpan:i,rowSpan:l},t);var f=Gn(c?"th":"td",{colSpan:i,rowSpan:l,style:{borderRightWidth:"3px"},on:{mousemove:J4(function(d){var h=this.elm;if(h!=null){var A=h.getBoundingClientRect(),p=A.left,g=A.width,v=A.top,m=A.height,y=d.clientX,b=d.clientY;m_||(y>p+g-5&&y<p+g&&b>v&&b<v+m?(h.style.cursor="col-resize",b_=n,y_=ze.findPath(n,e)):m_||(h.style.cursor="auto",b_=null,y_=null))}},100)}},t);return f}},Aun={selector:"table",preParseHtml:function(e){var t=Ue(e);if(mVe(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]}},vun=ZP.filter;mp({target:"Array",proto:!0,forced:!Kie("filter")},{filter:function(e){return vun(this,e,arguments.length>1?arguments[1]:void 0)}});var gun=Math.floor,kQ=Ir("".charAt),mun=Ir("".replace),DQ=Ir("".slice),yun=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,bun=/\$([$&'`]|\d{1,2})/g,wun=function(e,t,n,r,a,o){var i=n+e.length,s=r.length,l=bun;return a!==void 0&&(a=Lie(a),l=yun),mun(o,l,function(u,c){var f;switch(kQ(c,0)){case"$":return"$";case"&":return e;case"`":return DQ(t,0,n);case"'":return DQ(t,i);case"<":f=a[DQ(c,1,-1)];break;default:var d=+c;if(d===0)return u;if(d>s){var h=gun(d/10);return h===0?u:h<=s?r[h-1]===void 0?kQ(c,1):r[h-1]+kQ(c,1):u}f=r[d-1]}return f===void 0?"":f})},HJ=Fc("replace"),_un=Math.max,Cun=Math.min,Sun=Ir([].concat),IQ=Ir([].push),Zge=Ir("".indexO
`)},l.deleteBackward=function(u){if(!Nge(l)){var c=l.selection;if(c){var f=ye.before(l,c);if(f){var d=Qge(l,f),h=Qge(l,c);if(d&&!h)return}}n(u)}},l.handleTab=function(){var u;if(ze.getSelectedNodeByType(l,"table")){var c=ye.above(e);ze.checkNodeType(c[0],"table-cell")&&st.select(e,c[1]);var f=ye.next(e);if(f)f[0]&&f[0].text&&(f=(u=ye.above(e,{at:f[1]}))!==null&&u!==void 0?u:f),st.select(e,f[1]);else{var d=l.children||[],h=d.length;if(ze.checkNodeType(d[h-1],"table")){var A=ze.genEmptyParagraph();st.insertNodes(l,A,{at:[h]}),l.handleTab()}}}else i()},l.deleteForward=function(u){Nge(l)||r(u)},l.normalizeNode=function(u){var c=_0(u,2),f=c[0],d=c[1];if(ze.getNodeType(f)!=="table")return a([f,d]);if(ze.isLastNode(l,f)){var h=ze.genEmptyParagraph();st.insertNodes(l,h,{at:[d[0]+1]})}},l.insertData=function(u){if(ze.getSelectedNodeByType(l,"table")!=null){var c=u.getData("text/plain");c===`
`||/<img[^>]+>/.test(u.getData("text/html"))?o(u):ye.insertText(l,c)}else o(u)},l.selectAll=function(){var u=l.selection;if(u!=null){var c=ze.getSelectedNodeByType(l,"table-cell");if(c!=null){var f=u.anchor,d=u.focus;if(at.equals(f.path.slice(0,3),d.path.slice(0,3)))if(Zt.string(c).length!==0){var h=ze.findPath(l,c),A={anchor:ye.start(l,h),focus:ye.end(l,h)};l.select(A)}else s();else s()}else s()}else s()},l}};Ul("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"}}),Ul("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 XM=function(){return XM=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},XM.apply(this,arguments)};function eR(e,t,n,r){return new(n||(n=Promise))(function(a,o){function i(u){try{l(r.next(u))}catch(c){o(c)}}function s(u){try{l(r.throw(u))}catch(c){o(c)}}function l(u){var c;u.done?a(u.value):(c=u.value,c instanceof n?c:new n(function(f){f(c)})).then(i,s)}l((r=r.apply(e,t||[])).next())})}function tR(e,t){var n,r,a,o,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;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&&(a=2&c[0]?r.return:c[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,c[1])).done)return a;switch(r=0,a&&(c=[2&c[0],a.value]),c[0]){case 0:case 1:a=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(!((a=(a=i.trys).length>0&&a[a.length-1])||c[0]!==6&&c[0]!==2)){i=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){i.label=c[1];break}if(c[0]===6&&i.label<a[1]){i.label=a[1],a=c;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(c);break}a[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(f){c=[6,f],r=0}finally{n=a=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([l,u])}}}function v4(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,a,o=n.call(e),i=[];try{for(;(t===void 0||t-- >0)&&!(r=o.next()).done;)i.push(r.value)}catch(s){a={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(a)throw a.error}}return i}function Nun(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(a){var o=typeof Symbol=="function"&&Symbol.iterator,i=o&&a[o],s=0;if(i)return i.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&s>=a.length&&(a=void 0),{value:a&&a[s++],done:!a}}};throw new TypeError(o?"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(a){t[a]=e[a]&&function(o){return new Promise(function(i,s){(function(l,u,c,f){Promise.resolve(f).then(function(d){l({value:d,done:c})},u)})(i,s,(o=e[a](o)).done,o.value)})}}}var r8e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wie(e){var t={exports:{}};return e(t,t.exports),t.exports}var n2,Jk,WE=function(e){return e&&e.Math==Math&&e},nn=WE(typeof globalThis=="object"&&globalThis)||WE(typeof window=="object"&&window)||WE(typeof self=="object"&&self)||WE(typeof r8e=="object"&&r8e)||function(){return this}()||Function("return this")(),La=function(e){try{return!!e()}catch{return!0}},zf=!La(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),r9=Function.prototype.call,ka=r9.bind?r9.bind(r9):function(){return r9.apply(r9,arguments)},a8e={}.propertyIsEnumerable,o8e=Object.getOwnPropertyDescriptor,Qun={f:o8e&&!a8e.call({1:2},1)?function(e){var t=o8e(this,e);return!!t&&t.enumerable}:a8e},nR=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},SVe=Function.prototype,VJ=SVe.bind,zJ=SVe.call,Uun=VJ&&VJ.bind(zJ),nr=VJ?function(e){return e&&Uun(zJ,e)}:function(e){return e&&function(){return zJ.apply(e,arguments)}},jun=nr({}.toString),Kun=nr("".slice),Cf=function(e){return Kun(jun(e),8,-1)},FQ=nn.Object,Gun=nr("".split),Xie=La(function(){return!FQ("z").propertyIsEnumerable(0)})?function(e){return Cf(e)=="String"?Gun(e,""):FQ(e)}:FQ,Wun=nn.TypeError,OS=function(e){if(e==null)throw Wun("Can't call method on "+e);return e},Xp=function(e){return Xie(OS(e))},pa=function(e
\v\f\r                 \u2028\u2029\uFEFF`,m8e=nr("".replace),tL="["+jJ+"]",Hcn=RegExp("^"+tL+tL+"*"),Vcn=RegExp(tL+tL+"*$"),HQ=function(e){return function(t){var n=Zu(OS(t));return 1&e&&(n=m8e(n,Hcn,"")),2&e&&(n=m8e(n,Vcn,"")),n}},zcn={start:HQ(1),end:HQ(2),trim:HQ(3)},Ncn=S5.PROPER,Qcn=zcn.trim;function y8e(e){return e.length?e[0].tagName.toLowerCase():""}function MVe(e,t,n){t===void 0&&(t="auto"),n===void 0&&(n="auto");var r=Ue(e);return r.attr("width",t),r.attr("height",n),r[0].outerHTML}Dl({target:"String",proto:!0,forced:La(function(){return!!jJ.trim()||"​…᠎".trim()!=="​…᠎"||Ncn&&jJ.trim.name!=="trim"})},{trim:function(){return Qcn(this)}}),Dl({global:!0},{globalThis:nn}),kc&&(Ue.fn.append=kc),Hf&&(Ue.fn.on=Hf),cp&&(Ue.fn.focus=cp),Tc&&(Ue.fn.attr=Tc),Rf&&(Ue.fn.val=Rf),up&&(Ue.fn.html=up),im&&(Ue.fn.parent=im),rm&&(Ue.fn.hasClass=rm),cm&&(Ue.fn.empty=cm);var XE,Ucn={type:"video",renderElem:function(e,t,n){var r,a=e,o=a.src,i=o===void 0?"":o,s=a.poster,l=s===void 0?"":s,u=a.width,c=u===void 0?"auto":u,f=a.height,d=f===void 0?"auto":f,h=ze.isNodeSelected(n,e);if(i.trim().indexOf("<iframe ")===0)r=Gn("div",{className:"w-e-textarea-video-container","data-selected":h?"true":"",innerHTML:MVe(i,c,d)});else{var A=Gn("video",{poster:l,controls:!0},Gn("source",{src:i,type:"video/mp4"}),`Sorry, your browser doesn't support embedded videos.
抱歉浏览器不支持 video 视频`);c!=="auto"&&(A.data.width=c),d!=="auto"&&(A.data.height=d),r=Gn("div",{className:"w-e-textarea-video-container","data-selected":h?"true":""},A)}return fm("div",{props:{contentEditable:!1},on:{mousedown:function(p){return p.preventDefault()}}},r)}},jcn={type:"video",elemToHtml:function(e,t){var n=e,r=n.src,a=r===void 0?"":r,o=n.poster,i=o===void 0?"":o,s=n.width,l=s===void 0?"auto":s,u=n.height,c=u===void 0?"auto":u,f=`<div data-w-e-type="video" data-w-e-is-void>
`;return a.trim().indexOf("<iframe ")===0?f+=MVe(a,l,c):f+='<video poster="'+i+'" controls="true" width="'+l+'" height="'+c+'"><source src="'+a+'" type="video/mp4"/></video>',f+`
</div>`}},Kcn=Object.keys||function(e){return DVe(e,ZM)},Gcn=zf?Object.defineProperties:function(e,t){qi(e);for(var n,r=Xp(t),a=Kcn(t),o=a.length,i=0;o>i;)B1.f(e,n=a[i++],r[n]);return e},KJ=s3("document","documentElement"),LVe=tse("IE_PROTO"),VQ=function(){},OVe=function(e){return"<script>"+e+"<\/script>"},b8e=function(e){e.write(OVe("")),e.close();var t=e.parentWindow.Object;return e=null,t},Zk=function(){try{XE=new ActiveXObject("htmlfile")}catch{}var e,t;Zk=typeof document<"u"?document.domain&&XE?b8e(XE):((t=S_("iframe")).style.display="none",KJ.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(OVe("document.F=Object")),e.close(),e.F):b8e(XE);for(var n=ZM.length;n--;)delete Zk.prototype[ZM[n]];return Zk()};oR[LVe]=!0;var rse=Object.create||function(e,t){var n;return e!==null?(VQ.prototype=qi(e),n=new VQ,VQ.prototype=null,n[LVe]=e):n=Zk(),t===void 0?n:Gcn(n,t)},GJ=Uo("unscopables"),WJ=Array.prototype;WJ[GJ]==null&&B1.f(WJ,GJ,{configurable:!0,value:rse(null)});var Bb=function(e){WJ[GJ][e]=!0},Wcn=kVe.includes;Dl({target:"Array",proto:!0},{includes:function(e){return Wcn(this,e,arguments.length>1?arguments[1]:void 0)}}),Bb("includes");var Xcn={selector:"iframe,video,p",preParseHtml:function(e){var t=Ue(e),n=t;if(y8e(t)==="p"){var r=t.children();if(r.length===1){var a=r[0],o=a.tagName.toLowerCase();["iframe","video"].includes(o)&&(n=Ue(a))}}var i=y8e(n);if(i!=="iframe"&&i!=="video"||n.parent().attr("data-w-e-type")==="video")return n[0];var s=Ue('<div data-w-e-type="video" data-w-e-is-void></div>');return s.append(n),s[0]}},w8e=nr(nr.bind),E_=function(e,t){return yp(e),t===void 0?e:w8e?w8e(e,t):function(){return e.apply(t,arguments)}},nL=Array.isArray||function(e){return Cf(e)=="Array"},FVe=function(){},qcn=[],PVe=s3("Reflect","construct"),ase=/^\s*(?:class|function)\b/,Ycn=nr(ase.exec),Jcn=!ase.exec(FVe),o9=function(e){if(!pa(e))return!1;try{return PVe(FVe,qcn,e),!0}catch{return!1}},ose=!PVe||La(function(){var e;return o9(o9.call)||!o9(Object)||!o9(function(){e=!0})||e})?function(e){if(!pa(e))return!1;switch(sR(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Jcn||!!Ycn(ase,aR(e))}:o9,Zcn=Uo("species"),_8e=nn.Array,$cn=function(e,t){return new(function(n){var r;return nL(n)&&(r=n.constructor,(ose(r)&&(r===_8e||nL(r.prototype))||Va(r)&&(r=r[Zcn])===null)&&(r=void 0)),r===void 0?_8e:r}(e))(t===0?0:t)},C8e=nr([].push),r2=function(e){var t=e==1,n=e==2,r=e==3,a=e==4,o=e==6,i=e==7,s=e==5||o;return function(l,u,c,f){for(var d,h,A=rR(l),p=Xie(A),g=E_(u,c),v=FS(p),m=0,y=f||$cn,b=t?y(l,v):n||i?y(l,0):void 0;v>m;m++)if((s||m in p)&&(h=g(d=p[m],m,A),e))if(t)b[m]=h;else if(h)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:C8e(b,d)}else switch(e){case 4:return!1;case 7:C8e(b,d)}return o?-1:r||a?a:b}},ise={forEach:r2(0),map:r2(1),filter:r2(2),some:r2(3),every:r2(4),find:r2(5),findIndex:r2(6),filterReject:r2(7)},e0n=ise.find,S8e=!0;"find"in[]&&Array(1).find(function(){S8e=!1}),Dl({target:"Array",proto:!0,forced:S8e},{find:function(e){return e0n(this,e,arguments.length>1?arguments[1]:void 0)}}),Bb("find");var t0n=nse?{}.toString:function(){return"[object "+sR(this)+"]"};function B8e(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:""}]}}nse||gu(Object.prototype,"toString",t0n,{unsafe:!0});var E8e,zQ,n0n={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=Ue(e),a="",o="",i="auto",s="auto",l=r.find("iframe");if(l.length>0)return i=l.attr("width")||"auto",s=l.attr("height")||"auto",B8e(a=l[0].outerHTML,o,i,s);var u=r.find("video");return(a=u.attr("src")||"")||u.length>0&&(a=u.find("source").attr("src")||""),i=u.attr("width")||"auto",s=u.attr("height")||"auto",B8e(a,o=u.attr("poster")||"",i,s)}},RVe=function(){var e=qi(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},sse=nn.RegExp,XJ=La(function(){var e=sse("a","y");return e.lastIndex=2,e.exec("
`)&&e.flags==="s")}),s0n=nn.RegExp,l0n=La(function(){var e=s0n("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),u0n=xu.get,c0n=Jie("native-string-replace",String.prototype.replace),rL=RegExp.prototype.exec,qJ=rL,f0n=nr("".charAt),d0n=nr("".indexOf),h0n=nr("".replace),NQ=nr("".slice),QQ=(zQ=/b*/g,ka(rL,E8e=/a/,"a"),ka(rL,zQ,"a"),E8e.lastIndex!==0||zQ.lastIndex!==0),x8e=a0n.BROKEN_CARET,UQ=/()??/.exec("")[1]!==void 0;(QQ||UQ||x8e||i0n||l0n)&&(qJ=function(e){var t,n,r,a,o,i,s,l=this,u=u0n(l),c=Zu(e),f=u.raw;if(f)return f.lastIndex=l.lastIndex,t=ka(qJ,f,c),l.lastIndex=f.lastIndex,t;var d=u.groups,h=x8e&&l.sticky,A=ka(RVe,l),p=l.source,g=0,v=c;if(h&&(A=h0n(A,"y",""),d0n(A,"g")===-1&&(A+="g"),v=NQ(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&f0n(c,l.lastIndex-1)!==`
`)&&(p="(?: "+p+")",v=" "+v,g++),n=new RegExp("^(?:"+p+")",A)),UQ&&(n=new RegExp("^"+p+"$(?!\\s)",A)),QQ&&(r=l.lastIndex),a=ka(rL,h?n:l,v),h?a?(a.input=NQ(a.input,g),a[0]=NQ(a[0],g),a.index=l.lastIndex,l.lastIndex+=a[0].length):l.lastIndex=0:QQ&&a&&(l.lastIndex=l.global?a.index+a[0].length:r),UQ&&a&&a.length>1&&ka(c0n,a[0],n,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(a[o]=void 0)}),a&&d)for(a.groups=i=rse(null),o=0;o<d.length;o++)i[(s=d[o])[0]]=a[s[1]];return a});var aL=qJ;Dl({target:"RegExp",proto:!0,forced:/./.exec!==aL},{exec:aL});var lse=Function.prototype,T8e=lse.apply,p0n=lse.bind,k8e=lse.call,HVe=typeof Reflect=="object"&&Reflect.apply||(p0n?k8e.bind(T8e):function(){return k8e.apply(T8e,arguments)}),D8e=(Uo("species"),RegExp.prototype),A0n=nr("".charAt),I8e=nr("".charCodeAt),v0n=nr("".slice),M8e=function(e){return function(t,n){var r,a,o=Zu(OS(t)),i=iR(n),s=o.length;return i<0||i>=s?e?"":void 0:(r=I8e(o,i))<55296||r>56319||i+1===s||(a=I8e(o,i+1))<56320||a>57343?e?A0n(o,i):r:e?v0n(o,i,i+2):a-56320+(r-55296<<10)+65536}},VVe={codeAt:M8e(!1),charAt:M8e(!0)},g0n=VVe.charAt,m0n=function(e,t,n){return t+(n?g0n(e,t).length:1)},y0n=Math.floor,jQ=nr("".charAt),b0n=nr("".replace),KQ=nr("".slice),w0n=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,_0n=/\$([$&'`]|\d{1,2})/g,C0n=function(e,t,n,r,a,o){var i=n+e.length,s=r.length,l=_0n;return a!==void 0&&(a=rR(a),l=w0n),b0n(o,l,function(u,c){var f;switch(jQ(c,0)){case"$":return"$";case"&":return e;case"`":return KQ(t,0,n);case"'":return KQ(t,i);case"<":f=a[KQ(c,1,-1)];break;default:var d=+c;if(d===0)return u;if(d>s){var h=y0n(d/10);return h===0?u:h<=s?r[h-1]===void 0?jQ(c,1):r[h-1]+jQ(c,1):u}f=r[d-1]}return f===void 0?"":f})},S0n=nn.TypeError,B0n=function(e,t){var n=e.exec;if(pa(n)){var r=ka(n,e,t);return r!==null&&qi(r),r}if(Cf(e)==="RegExp")return ka(aL,e,t);throw S0n("RegExp#exec called on incompatible receiver")},YJ=Uo("replace"),E0n=Math.max,x0n=Math.min,T0n=nr([].concat),GQ=nr([].push),L8e=nr("".indexOf),O8e=nr("".slice),k0n="a".replace(/./,"$0")==="$0",F8e=!!/./[YJ]&&/./[YJ]("a","$0")==="";function zVe(e){return e===void 0&&(e="r"),e+"-"+YOe()}(function(e,t,n,r){var a=Uo(e),o=!La(function(){var u={};return u[a]=function(){return 7},""[e](u)!=7}),i=o&&!La(function(){var u=!1,c=/a/;return c.exec=function(){return u=!0,null},c[a](""),!u});if(!o||!i||n){var s=nr(/./[a]),l=function(u,c,f){var d=F8e?"$":"$0";return[function(h,A){var p=OS(this),g=h==null?void 0:C_(h,YJ);return g?ka(g,h,p,A):ka(c,Zu(p),h,A)},function(h,A){var p=qi(this),g=Zu(h);if(typeof A=="string"&&L8e(A,d)===-1&&L8e(A,"$<")===-1){var v=f(c,p,g,A);if(v.done)return v.value}var m=pa(A);m||(A=Zu(A));var y=p.global;if(y){var b=p.unicode;p.lastIndex=0}for(var _=[];;){var C=B0n(p,g);if(C===null||(GQ(_,C),!y))break;Zu(C[0])===""&&(p.lastIndex=m0n(g,TVe(p.lastIndex),b))}for(var S,B="",x=0,E=0;E<_.length;E++){for(var k=Zu((C=_[E])[0]),D=E0n(x0n(iR(C.index),g.length),0),F=[],I=1;I<C.length;I++)GQ(F,(S=C[I])===void 0?S:String(S));var P=C.groups;if(m){var R=T0n([k],F,D,g);P!==void 0&&GQ(R,P);var H=Zu(HVe(A,void 0,R))}else H=C0n(k,g,D,F,P,A);D>=x&&(B+=O8e(g,x,D)+H,x=D+k.length)}return B+O8e(g,x)}]}(0,""[e],function(u,c,f,d,h){var A=nr(u),p=c.exec;return p===aL||p===D8e.exec?o&&!h?{done:!0,value:s(c,f,d)}:{done:!0,value:A(f,c,d)}:{done:!1}});gu(String.prototype,e,l[0]),gu(D8e,a,l[1])}})("replace",0,!!La(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!k0n||F8e);var oL=nn.Promise,iL=function(e,t,n){for(var r in t)gu(e,r,t[r],n);return e},D0n=nn.String,I0n=nn.TypeError,_m=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=nr(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,a){return qi(r),function(o){if(typeof o=="object"||pa(o))return o;throw I0n("Can't set "+D0n(o)+" as a prototype")}(a),t?e(r,a):r.__proto__=a,r}}():void 0),M0n=B1.f,P8e=Uo("toStringTag"),sL=function(e,t,n){e&&!ai(e=n?e:e.prototype,P8e)&&M0n(e,P8e,{configurable:!0,value:t})},R8e=Uo("species"),L0n=
`)&&e.flags==="s")}),i1n=tn.RegExp,s1n=ja(function(){var e=i1n("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),l1n=Tu.get,u1n=bse("native-string-replace",String.prototype.replace),gL=RegExp.prototype.exec,dZ=gL,c1n=mr("".charAt),f1n=mr("".indexOf),d1n=mr("".replace),vU=mr("".slice),gU=(AU=/b*/g,sa(gL,kme=/a/,"a"),sa(gL,AU,"a"),kme.lastIndex!==0||AU.lastIndex!==0),Dme=Eze.BROKEN_CARET,mU=/()??/.exec("")[1]!==void 0;(gU||mU||Dme||o1n||s1n)&&(dZ=function(e){var t,n,r,a,o,i,s,l=this,u=l1n(l),c=zh(e),f=u.raw;if(f)return f.lastIndex=l.lastIndex,t=sa(dZ,f,c),l.lastIndex=f.lastIndex,t;var d=u.groups,h=Dme&&l.sticky,A=sa(Bze,l),p=l.source,g=0,v=c;if(h&&(A=d1n(A,"y",""),f1n(A,"g")===-1&&(A+="g"),v=vU(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&c1n(c,l.lastIndex-1)!==`
`)&&(p="(?: "+p+")",v=" "+v,g++),n=new RegExp("^(?:"+p+")",A)),mU&&(n=new RegExp("^"+p+"$(?!\\s)",A)),gU&&(r=l.lastIndex),a=sa(gL,h?n:l,v),h?a?(a.input=vU(a.input,g),a[0]=vU(a[0],g),a.index=l.lastIndex,l.lastIndex+=a[0].length):l.lastIndex=0:gU&&a&&(l.lastIndex=l.global?a.index+a[0].length:r),mU&&a&&a.length>1&&sa(u1n,a[0],n,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(a[o]=void 0)}),a&&d)for(a.groups=i=Ise(null),o=0;o<d.length;o++)i[(s=d[o])[0]]=a[s[1]];return a});var F_=dZ;Af({target:"RegExp",proto:!0,forced:/./.exec!==F_},{exec:F_});var Mse=Function.prototype,Ime=Mse.apply,h1n=Mse.bind,Mme=Mse.call,kze=typeof Reflect=="object"&&Reflect.apply||(h1n?Mme.bind(Ime):function(){return Mme.apply(Ime,arguments)}),p1n=jo("species"),yU=RegExp.prototype,A1n=jo("match"),v1n=tn.TypeError,g1n=jo("species"),Dze=function(e,t){var n,r=Yi(e).constructor;return r===void 0||(n=Yi(r)[g1n])==null?t:function(a){if(kse(a))return a;throw v1n(cL(a)+" is not a constructor")}(n)},m1n=mr("".charAt),Lme=mr("".charCodeAt),y1n=mr("".slice),Ome=function(e){return function(t,n){var r,a,o=zh(k_(t)),i=Ese(n),s=o.length;return i<0||i>=s?e?"":void 0:(r=Lme(o,i))<55296||r>56319||i+1===s||(a=Lme(o,i+1))<56320||a>57343?e?m1n(o,i):r:e?y1n(o,i,i+2):a-56320+(r-55296<<10)+65536}},Ize={codeAt:Ome(!1),charAt:Ome(!0)},b1n=Ize.charAt,w1n=function(e,t,n){return t+(n?b1n(e,t).length:1)},_1n=tn.Array,C1n=Math.max,hZ=function(e,t,n){for(var r=HS(e),a=O_(t,r),o=O_(n===void 0?r:n,r),i=_1n(C1n(o-a,0)),s=0;a<o;a++,s++)Cze(i,s,e[a]);return i.length=s,i},S1n=tn.TypeError,Fme=function(e,t){var n=e.exec;if(_a(n)){var r=sa(n,e,t);return r!==null&&Yi(r),r}if(p0(e)==="RegExp")return sa(F_,e,t);throw S1n("RegExp#exec called on incompatible receiver")},x6=Eze.UNSUPPORTED_Y,B1n=Math.min,Mze=[].push,E1n=mr(/./.exec),T6=mr(Mze),p9=mr("".slice);(function(e,t,n,r){var a=jo(e),o=!ja(function(){var u={};return u[a]=function(){return 7},""[e](u)!=7}),i=o&&!ja(function(){var u=!1,c=/a/;return(c={}).constructor={},c.constructor[p1n]=function(){return c},c.flags="",c[a]=/./[a],c.exec=function(){return u=!0,null},c[a](""),!u});if(!o||!i||n){var s=mr(/./[a]),l=function(u,c,f){var d;return d="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(h,A){var p,g,v=zh(k_(this)),m=A===void 0?4294967295:A>>>0;if(m===0)return[];if(h===void 0)return[v];if(!Ma(p=h)||!((g=p[A1n])!==void 0?g:p0(p)=="RegExp"))return sa(c,v,h,m);for(var y,b,_,C=[],S=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(h.sticky?"y":""),B=0,x=new RegExp(h.source,S+"g");(y=sa(F_,x,v))&&!((b=x.lastIndex)>B&&(T6(C,p9(v,B,y.index)),y.length>1&&y.index<v.length&&kze(Mze,C,hZ(y,1)),_=y[0].length,B=b,C.length>=m));)x.lastIndex===y.index&&x.lastIndex++;return B===v.length?!_&&E1n(x,"")||T6(C,""):T6(C,p9(v,B)),C.length>m?hZ(C,0,m):C}:"0".split(void 0,0).length?function(h,A){return h===void 0&&A===0?[]:sa(c,this,h,A)}:c,[function(h,A){var p=k_(this),g=h==null?void 0:M_(h,u);return g?sa(g,h,p,A):sa(d,zh(p),h,A)},function(h,A){var p=Yi(this),g=zh(h),v=f(d,p,g,A,d!==c);if(v.done)return v.value;var m=Dze(p,RegExp),y=p.unicode,b=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(x6?"g":"y"),_=new m(x6?"^(?:"+p.source+")":p,b),C=A===void 0?4294967295:A>>>0;if(C===0)return[];if(g.length===0)return Fme(_,g)===null?[g]:[];for(var S=0,B=0,x=[];B<g.length;){_.lastIndex=x6?0:B;var E,k=Fme(_,x6?p9(g,B):g);if(k===null||(E=B1n(mze(_.lastIndex+(x6?B:0)),g.length))===S)B=w1n(g,B,y);else{if(T6(x,p9(g,S,B)),x.length===C)return x;for(var D=1;D<=k.length-1;D++)if(T6(x,k[D]),x.length===C)return x;B=S=E}}return T6(x,p9(g,S)),x}]}(a,""[e],function(u,c,f,d,h){var A=mr(u),p=c.exec;return p===F_||p===yU.exec?o&&!h?{done:!0,value:s(c,f,d)}:{done:!0,value:A(f,c,d)}:{done:!1}});mu(String.prototype,e,l[0]),mu(yU,a,l[1])}r&&Sf(yU[a],"sham",!0)})("split",0,!!ja(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"
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 mL=function(){return mL=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},mL.apply(this,arguments)};function Lse(e,t,n,r){return new(n||(n=Promise))(function(a,o){function i(u){try{l(r.next(u))}catch(c){o(c)}}function s(u){try{l(r.throw(u))}catch(c){o(c)}}function l(u){var c;u.done?a(u.value):(c=u.value,c instanceof n?c:new n(function(f){f(c)})).then(i,s)}l((r=r.apply(e,t||[])).next())})}function Ose(e,t){var n,r,a,o,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;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&&(a=2&c[0]?r.return:c[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,c[1])).done)return a;switch(r=0,a&&(c=[2&c[0],a.value]),c[0]){case 0:case 1:a=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(!((a=(a=i.trys).length>0&&a[a.length-1])||c[0]!==6&&c[0]!==2)){i=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){i.label=c[1];break}if(c[0]===6&&i.label<a[1]){i.label=a[1],a=c;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(c);break}a[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(f){c=[6,f],r=0}finally{n=a=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([l,u])}}}function x1n(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(a){var o=typeof Symbol=="function"&&Symbol.iterator,i=o&&a[o],s=0;if(i)return i.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&s>=a.length&&(a=void 0),{value:a&&a[s++],done:!a}}};throw new TypeError(o?"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(a){t[a]=e[a]&&function(o){return new Promise(function(i,s){(function(l,u,c,f){Promise.resolve(f).then(function(d){l({value:d,done:c})},u)})(i,s,(o=e[a](o)).done,o.value)})}}}var pZ=jo("unscopables"),AZ=Array.prototype;AZ[pZ]==null&&E1.f(AZ,pZ,{configurable:!0,value:Ise(null)});var b4,Pme,Rme,bU=function(e){AZ[pZ][e]=!0},Sm={},T1n=!ja(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),Hme=Bse("IE_PROTO"),vZ=tn.Object,k1n=vZ.prototype,yL=T1n?vZ.getPrototypeOf:function(e){var t=wse(e);if(oi(t,Hme))return t[Hme];var n=t.constructor;return _a(n)&&t instanceof n?n.prototype:t instanceof vZ?k1n:null},gZ=jo("iterator"),Lze=!1;[].keys&&("next"in(Rme=[].keys())?(Pme=yL(yL(Rme)))!==Object.prototype&&(b4=Pme):Lze=!0);var D1n=b4==null||ja(function(){var e={};return b4[gZ].call(e)!==e});D1n&&(b4={}),_a(b4[gZ])||mu(b4,gZ,function(){return this});var Fse={IteratorPrototype:b4,BUGGY_SAFARI_ITERATORS:Lze},I1n=E1.f,Vme=jo("toStringTag"),bL=function(e,t,n){e&&!oi(e=n?e:e.prototype,Vme)&&I1n(e,Vme,{configurable:!0,value:t})},M1n=Fse.IteratorPrototype,L1n=function(){return this},O1n=tn.String,F1n=tn.TypeError,Bm=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=mr(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,a){return Yi(r),function(o){if(typeof o=="object"||_a(o))return o;throw F1n("Can't set "+O1n(o)+" as a prototype")}(a),t?e(r,a):r.__proto__=a,r}}():void 0),P1n=RS.PROPER,R1n=RS.CONFIGURABLE,zme=Fse.IteratorPrototype,ax=Fse.BUGGY_SAFARI_ITERATORS,A9=jo("iterator"),H1n=function(){return this},Oze=function(e,t,n,r,a,o,i){(function(v,m,y,b){var _=m+" Iterator";v.prototype=Ise(M1n,{next:lR(1,y)}),bL(v,_,!1),Sm[_]=L1n})(n,t,r);var s,l,u,c=function(v){if(v===a&&p)return p;if(!ax&&v in h)return h[v];switch(v){case"keys":case"values
* 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),BL!==void 0&&(BL.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 a={};a["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[r]},a.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:a}};o["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:o},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 a=n.languages.markup;a&&(a.tag.addInlined("style","css"),a.tag.addAttribute("style","css"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\
`)&&e.flags==="s")}),tpn=xr.RegExp,npn=Gi(function(){var e=tpn("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),rpn=kZ.get,apn=Kse("native-string-replace",String.prototype.replace),kL=RegExp.prototype.exec,MZ=kL,opn=la("".charAt),ipn=la("".indexOf),spn=la("".replace),GU=la("".slice),WU=(KU=/b*/g,yi(kL,Q5e=/a/,"a"),yi(kL,KU,"a"),Q5e.lastIndex!==0||KU.lastIndex!==0),U5e=kNe.BROKEN_CARET,XU=/()??/.exec("")[1]!==void 0;(WU||XU||U5e||epn||npn)&&(MZ=function(e){var t,n,r,a,o,i,s,l=this,u=rpn(l),c=Kd(e),f=u.raw;if(f)return f.lastIndex=l.lastIndex,t=yi(MZ,f,c),l.lastIndex=f.lastIndex,t;var d=u.groups,h=U5e&&l.sticky,A=yi(TNe,l),p=l.source,g=0,v=c;if(h&&(A=spn(A,"y",""),ipn(A,"g")===-1&&(A+="g"),v=GU(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&opn(c,l.lastIndex-1)!==`
`)&&(p="(?: "+p+")",v=" "+v,g++),n=new RegExp("^(?:"+p+")",A)),XU&&(n=new RegExp("^"+p+"$(?!\\s)",A)),WU&&(r=l.lastIndex),a=yi(kL,h?n:l,v),h?a?(a.input=GU(a.input,g),a[0]=GU(a[0],g),a.index=l.lastIndex,l.lastIndex+=a[0].length):l.lastIndex=0:WU&&a&&(l.lastIndex=l.global?a.index+a[0].length:r),XU&&a&&a.length>1&&yi(apn,a[0],n,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(a[o]=void 0)}),a&&d)for(a.groups=i=Zhn(null),o=0;o<d.length;o++)i[(s=d[o])[0]]=a[s[1]];return a});var V_=MZ;pR({target:"RegExp",proto:!0,forced:/./.exec!==V_},{exec:V_});var ile=Function.prototype,j5e=ile.apply,lpn=ile.bind,K5e=ile.call,upn=typeof Reflect=="object"&&Reflect.apply||(lpn?K5e.bind(j5e):function(){return K5e.apply(j5e,arguments)}),cpn=Yp("species"),qU=RegExp.prototype,fpn=Yp("match"),dpn=xr.TypeError,hpn=Yp("species"),ppn=la("".charAt),G5e=la("".charCodeAt),Apn=la("".slice),vpn=function(e){return function(t,n){var r,a,o=Kd(Em(t)),i=nle(n),s=o.length;return i<0||i>=s?e?"":void 0:(r=G5e(o,i))<55296||r>56319||i+1===s||(a=G5e(o,i+1))<56320||a>57343?e?ppn(o,i):r:e?Apn(o,i,i+2):a-56320+(r-55296<<10)+65536}},gpn=vpn(!0),mpn=function(e,t,n){return t+(n?gpn(e,t).length:1)},ypn=xr.Array,bpn=Math.max,W5e=function(e,t,n){for(var r,a,o,i,s=rle(e),l=DZ(t,s),u=DZ(n===void 0?s:n,s),c=ypn(bpn(u-l,0)),f=0;l<u;l++,f++)r=c,a=f,o=e[l],(i=Yse(a))in r?dR.f(r,i,Jse(0,o)):r[i]=o;return c.length=f,c},wpn=xr.TypeError,X5e=function(e,t){var n=e.exec;if(Hs(n)){var r=yi(n,e,t);return r!==null&&A0(r),r}if(Uh(e)==="RegExp")return yi(V_,e,t);throw wpn("RegExp#exec called on incompatible receiver")},M6=kNe.UNSUPPORTED_Y,_pn=Math.min,MNe=[].push,Cpn=la(/./.exec),L6=la(MNe),C9=la("".slice);(function(e,t,n,r){var a=Yp(e),o=!Gi(function(){var u={};return u[a]=function(){return 7},""[e](u)!=7}),i=o&&!Gi(function(){var u=!1,c=/a/;return(c={}).constructor={},c.constructor[cpn]=function(){return c},c.flags="",c[a]=/./[a],c.exec=function(){return u=!0,null},c[a](""),!u});if(!o||!i||n){var s=la(/./[a]),l=function(u,c,f){var d;return d="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(h,A){var p,g,v=Kd(Em(this)),m=A===void 0?4294967295:A>>>0;if(m===0)return[];if(h===void 0)return[v];if(!e0(p=h)||!((g=p[fpn])!==void 0?g:Uh(p)=="RegExp"))return yi(c,v,h,m);for(var y,b,_,C=[],S=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(h.sticky?"y":""),B=0,x=new RegExp(h.source,S+"g");(y=yi(V_,x,v))&&!((b=x.lastIndex)>B&&(L6(C,C9(v,B,y.index)),y.length>1&&y.index<v.length&&upn(MNe,C,W5e(y,1)),_=y[0].length,B=b,C.length>=m));)x.lastIndex===y.index&&x.lastIndex++;return B===v.length?!_&&Cpn(x,"")||L6(C,""):L6(C,C9(v,B)),C.length>m?W5e(C,0,m):C}:"0".split(void 0,0).length?function(h,A){return h===void 0&&A===0?[]:yi(c,this,h,A)}:c,[function(h,A){var p=Em(this),g=h==null?void 0:pNe(h,u);return g?yi(g,h,p,A):yi(d,Kd(p),h,A)},function(h,A){var p=A0(this),g=Kd(h),v=f(d,p,g,A,d!==c);if(v.done)return v.value;var m=function(F,I){var P,R=A0(F).constructor;return R===void 0||(P=A0(R)[hpn])==null?I:function(H){if(wNe(H))return H;throw dpn(dNe(H)+" is not a constructor")}(P)}(p,RegExp),y=p.unicode,b=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(M6?"g":"y"),_=new m(M6?"^(?:"+p.source+")":p,b),C=A===void 0?4294967295:A>>>0;if(C===0)return[];if(g.length===0)return X5e(_,g)===null?[g]:[];for(var S=0,B=0,x=[];B<g.length;){_.lastIndex=M6?0:B;var E,k=X5e(_,M6?C9(g,B):g);if(k===null||(E=_pn(mNe(_.lastIndex+(M6?B:0)),g.length))===S)B=mpn(g,B,y);else{if(L6(x,C9(g,S,B)),x.length===C)return x;for(var D=1;D<=k.length-1;D++)if(L6(x,k[D]),x.length===C)return x;B=S=E}}return L6(x,C9(g,S)),x}]}(a,""[e],function(u,c,f,d,h){var A=la(u),p=c.exec;return p===V_||p===qU.exec?o&&!h?{done:!0,value:s(c,f,d)}:{done:!0,value:A(f,c,d)}:{done:!1}});H_(String.prototype,e,l[0]),H_(qU,a,l[1])}r&&xm(qU[a],"sham",!0)})("split",0,!!Gi(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n
Can not construct a instance`)}return e.setEditorConfig=function(t){t===void 0&&(t={}),this.editorConfig=uo(uo({},this.editorConfig),t)},e.setSimpleEditorConfig=function(t){t===void 0&&(t={}),this.simpleEditorConfig=uo(uo({},this.simpleEditorConfig),t)},e.setToolbarConfig=function(t){t===void 0&&(t={}),this.toolbarConfig=uo(uo({},this.toolbarConfig),t)},e.setSimpleToolbarConfig=function(t){t===void 0&&(t={}),this.simpleToolbarConfig=uo(uo({},this.simpleToolbarConfig),t)},e.registerPlugin=function(t){this.plugins.push(t)},e.registerMenu=function(t,n){(function(r,a){var o=r.key,i=r.factory,s=r.config,l=rc(rc({},s),a||{});if(s_[o]!=null)throw new Error("Duplicated key '"+o+"' in menu items");s_[o]=i,function(u,c){c!=null&&(oPe[u]=c)}(o,l)})(t,n)},e.registerRenderElem=function(t){(function(n){var r=n.type,a=n.renderElem;DPe[r||""]=a})(t)},e.registerRenderStyle=function(t){(function(n){xY.push(n)})(t)},e.registerElemToHtml=function(t){(function(n){var r=n.type,a=n.elemToHtml;iPe[r||""]=a})(t)},e.registerStyleToHtml=function(t){(function(n){bY.push(n)})(t)},e.registerPreParseHtml=function(t){(function(n){SPe.push(n)})(t)},e.registerParseElemHtml=function(t){(function(n){var r=n.selector,a=n.parseElemHtml;hM[r]=a})(t)},e.registerParseStyleHtml=function(t){(function(n){moe.push(n)})(t)},e.registerModule=function(t){$A(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 $A(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,a=e.elemsToHtml,o=e.styleToHtml,i=e.preParseHtml,s=e.parseElemsHtml,l=e.parseStyleHtml,u=e.editorPlugin;t&&t.forEach(function(c){return Ri.registerMenu(c)}),n&&n.forEach(function(c){return Ri.registerRenderElem(c)}),r&&Ri.registerRenderStyle(r),a&&a.forEach(function(c){return Ri.registerElemToHtml(c)}),o&&Ri.registerStyleToHtml(o),i&&i.forEach(function(c){return Ri.registerPreParseHtml(c)}),s&&s.forEach(function(c){return Ri.registerParseElemHtml(c)}),l&&Ri.registerParseStyleHtml(l),u&&Ri.registerPlugin(u)}Ran.forEach(function(e){return $A(e)}),$A(psn),$A(zun),$A(qfn),$A(z2n),$A(kpn);var FNe='<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>',PNe={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"]}},Mpn={hoverbarKeys:uo(uo({},PNe),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};Ri.setEditorConfig(uo(uo({},Mpn),{decorate:ONe}));var Lpn={hoverbarKeys:PNe};Ri.setSimpleEditorConfig(uo(uo({},Lpn),{decorate:ONe}));var Opn={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:$t("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:$t("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:$t("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:$t("editor.image"),iconSvg:FNe,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:$t("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"]};Ri.setToolbarConfig(Opn);var Fpn={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:$t("editor.image"),iconSvg:FNe,menuKeys:["insertImage","uploadImage"]},"inse
Please use '@${e}' event instead of props`,t}var RNe=(e,t)=>{for(const[n,r]of t)e[n]=r;return e};const Kpn=Z({props:{mode:{type:String,default:"default"},defaultContent:{type:Array,default:[]},defaultHtml:{type:String,default:""},defaultConfig:{type:Object,default:{}},modelValue:{type:String,default:""}},setup(e,t){const n=G(null),r=Qr(null),a=G(""),o=()=>{if(!n.value)return;const s=Ar(e.defaultContent);Ppn({selector:n.value,mode:e.mode,content:s||[],html:e.defaultHtml||e.modelValue||"",config:jpn(Upn({},e.defaultConfig),{onCreated(l){if(r.value=l,t.emit("onCreated",l),e.defaultConfig.onCreated){const u=l2("onCreated");throw new Error(u)}},onChange(l){const u=l.getHtml();if(a.value=u,t.emit("update:modelValue",u),t.emit("onChange",l),e.defaultConfig.onChange){const c=l2("onChange");throw new Error(c)}},onDestroyed(l){if(t.emit("onDestroyed",l),e.defaultConfig.onDestroyed){const u=l2("onDestroyed");throw new Error(u)}},onMaxLength(l){if(t.emit("onMaxLength",l),e.defaultConfig.onMaxLength){const u=l2("onMaxLength");throw new Error(u)}},onFocus(l){if(t.emit("onFocus",l),e.defaultConfig.onFocus){const u=l2("onFocus");throw new Error(u)}},onBlur(l){if(t.emit("onBlur",l),e.defaultConfig.onBlur){const u=l2("onBlur");throw new Error(u)}},customAlert(l,u){if(t.emit("customAlert",l,u),e.defaultConfig.customAlert){const c=l2("customAlert");throw new Error(c)}},customPaste:(l,u)=>{if(e.defaultConfig.customPaste){const f=l2("customPaste");throw new Error(f)}let c;return t.emit("customPaste",l,u,f=>{c=f}),c}})})};function i(s){const l=r.value;if(l==null)return;const u=l.isDisabled(),c=l.isFocused(),f=JSON.stringify(l.selection);if(l.enable(),l.focus(),l.select([]),l.deleteFragment(),st.setNodes(l,{type:"paragraph"},{mode:"highest"}),l.dangerouslyInsertHtml(s),!c){l.deselect(),l.blur();return}if(u){l.deselect(),l.disable();return}try{l.select(JSON.parse(f))}catch{l.select(ye.start(l,[]))}}return Tt(()=>{o()}),Pe(()=>e.modelValue,s=>{s!==a.value&&i(s)}),{box:n}}}),Gpn={ref:"box",style:{height:"100%"}};function Wpn(e,t,n,r,a,o){return T(),z("div",Gpn,null,512)}var Xpn=RNe(Kpn,[["render",Wpn]]);const qpn=Z({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(e){const t=G(null),n=r=>{if(t.value){if(r==null)throw new Error("Not found instance of Editor when create <Toolbar/> component");ze.getToolbar(r)||Rpn({editor:r,selector:t.value||"<div></div>",mode:e.mode,config:e.defaultConfig})}};return Si(()=>{const{editor:r}=e;r!=null&&n(r)}),{selector:t}}}),Ypn={ref:"selector"};function Jpn(e,t,n,r,a,o){return T(),z("div",Ypn,null,512)}var Zpn=RNe(qpn,[["render",Jpn]]);const AR=Mre.create({baseURL:"",timeout:5e4});AR.interceptors.request.use(e=>{const t=ZF();return t.tokenIng&&(e.headers.Authorization=t.tokenIng),t.userKey&&(e.headers["user-key"]=t.userKey),t.userToken&&(e.headers["user-token"]=t.userToken),e},e=>Promise.reject(e));AR.interceptors.response.use(e=>{const{code:t,msg:n}=e.data;return t===0||t===200?e.data:t===7||t===300||t===301||t===302?(Nd.confirm("身份令牌已失效!请重新登录!","提示",{confirmButtonText:"确定",type:"warning"}).then(()=>{localStorage.clear(),window.location.href="/"}),e.data):e.data instanceof ArrayBuffer?e:(Zn.error(n||"系统出错"),Promise.reject(new Error(n||"Error")))},e=>{if(e.response.data){const{code:t,msg:n}=e.response.data;if(t==="A0230")Nd.confirm("当前页面已失效,请重新登录","提示",{confirmButtonText:"确定",type:"warning"}).then(()=>{localStorage.clear(),window.location.href="/"});else if(t===7||t===300||t===301||t===302)Nd.confirm("身份令牌已失效!请重新登录!","提示",{confirmButtonText:"确定",type:"warning"}).then(()=>{localStorage.clear(),window.location.href="/"});else{if(t===10001||t===10002||t===10003)return Promise.reject(e.message);Zn.error(n||"系统出错")}}return Promise.reject(e.message)});function $pn(e){const t=new FormData;return t.append("file",e),AR({url:"/api/upordown",method:"post",data:t,headers:{"Content-Type":"multipart/form-data"}})}function RJn(e){return AR({url:"/ap
* Sortable 1.14.0
* @author RubaXa <trash@rubaxa.org>
* @author owenm <owen23355@gmail.com>
* @license MIT
*/function J5e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Uf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?J5e(Object(n),!0).forEach(function(r){aAn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J5e(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function iD(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?iD=function(t){return typeof t}:iD=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},iD(e)}function aAn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s1(){return s1=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s1.apply(this,arguments)}function oAn(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,o;for(o=0;o<r.length;o++)a=r[o],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function iAn(e,t){if(e==null)return{};var n=oAn(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var sAn="1.14.0";function Gd(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var x1=Gd(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),QS=Gd(/Edge/i),Z5e=Gd(/firefox/i),Ob=Gd(/safari/i)&&!Gd(/chrome/i)&&!Gd(/android/i),HNe=Gd(/iP(ad|od|hone)/i),lAn=Gd(/chrome/i)&&Gd(/android/i),VNe={capture:!1,passive:!1};function ia(e,t,n){e.addEventListener(t,n,!x1&&VNe)}function $r(e,t,n){e.removeEventListener(t,n,!x1&&VNe)}function DL(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function uAn(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Z0(e,t,n,r){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&DL(e,t):DL(e,t))||r&&e===n)return e;if(e===n)break}while(e=uAn(e))}return null}var $5e=/\s+/g;function Zl(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace($5e," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace($5e," ")}}function Yn(e,t,n){var r=e&&e.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in r)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),r[t]=n+(typeof n=="string"?"":"px")}}function y8(e,t){var n="";if(typeof e=="string")n=e;else do{var r=Yn(e,"transform");r&&r!=="none"&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var a=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return a&&new a(n)}function zNe(e,t,n){if(e){var r=e.getElementsByTagName(t),a=0,o=r.length;if(n)for(;a<o;a++)n(r[a],a);return r}return[]}function Bf(){var e=document.scrollingElement;return e||document.documentElement}function pi(e,t,n,r,a){if(!(!e.getBoundingClientRect&&e!==window)){var o,i,s,l,u,c,f;if(e!==window&&e.parentNode&&e!==Bf()?(o=e.getBoundingClientRect(),i=o.top,s=o.left,l=o.bottom,u=o.right,c=o.height,f=o.width):(i=0,s=0,l=window.innerHeight,u=window.innerWidth,c=window.innerHeight,f=window.innerWidth),(t||n)&&e!==window&&(a=a||e.parentNode,!x1))do if(a&&a.getBoundingClientRect&&(Yn(a,"transform")!=="none"||n&&Yn(a,"position")!=="static")){var d=a.getBoundingClientRect();i-=d.top+parseInt(Yn(a,"border-top-width")),s-=d.left+parseInt(Yn(a,"border-left-width")),l=i+o.height,u=s+o.width;break}while(a=a.parentNode);if(r&&e!==wi
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
* Released under MIT License
*//*! *****************************************************************************
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 VZ=function(e,t){return VZ=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},VZ(e,t)};function L0(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");VZ(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var zZ=function(){return zZ=Object.assign||function(t){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},zZ.apply(this,arguments)};function Zs(e,t,n,r){function a(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function s(c){try{u(r.next(c))}catch(f){i(f)}}function l(c){try{u(r.throw(c))}catch(f){i(f)}}function u(c){c.done?o(c.value):a(c.value).then(s,l)}u((r=r.apply(e,t||[])).next())})}function Ss(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,a,o,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(u){return function(c){return l([u,c])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,a&&(o=u[0]&2?a.return:u[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,u[1])).done)return o;switch(a=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,a=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(c){u=[6,c],a=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function gx(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,o;r<a;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||t)}var l1=function(){function e(t,n,r,a){this.left=t,this.top=n,this.width=r,this.height=a}return e.prototype.add=function(t,n,r,a){return new e(this.left+t,this.top+n,this.width+r,this.height+a)},e.fromClientRect=function(t,n){return new e(n.left+t.windowBounds.left,n.top+t.windowBounds.top,n.width,n.height)},e.fromDOMRectList=function(t,n){var r=Array.from(n).find(function(a){return a.width!==0});return r?new e(r.left+t.windowBounds.left,r.top+t.windowBounds.top,r.width,r.height):e.EMPTY},e.EMPTY=new e(0,0,0,0),e}(),gR=function(e,t){return l1.fromClientRect(e,t.getBoundingClientRect())},p3n=function(e){var t=e.body,n=e.documentElement;if(!t||!n)throw new Error("Unable to get document size");var r=Math.max(Math.max(t.scrollWidth,n.scrollWidth),Math.max(t.offsetWidth,n.offsetWidth),Math.max(t.clientWidth,n.clientWidth)),a=Math.max(Math.max(t.scrollHeight,n.scrollHeight),Math.max(t.offsetHeight,n.offsetHeight),Math.max(t.clientHeight,n.clientHeight));return new l1(0,0,r,a)},mR=function(e){for(var t=[],n=0,r=e.length;n<r;){var a=e.charCodeAt(n++);if(a>=55296&&a<=56319&&n<r){var o=e.charCodeAt(n++);(o&64512)===56320?t.push(((a&1023)<<10)+(o&1023)+65536):(t.push(a),n--)}else t.push(a)}return t},Io=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var n=e.length;if(!n)return"";for(var r=[],a=-1,o="";++a<n;){var i=e[a];i<=65535?r.push(i):(i-=65536,r.push((i>>10)+55296,i%1024+56320)),(a+1===n||r.length>16384)&&(o+=String.fromCharCode.apply(String,r),r.length=0)}return o},hye="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",A3n=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var mx=0;mx<hye.length;mx++)A3n[hye.charCodeAt(mx)]=mx;var pye="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklm
content: "" !important;
display: none !important;
}`,$mn=function(e){e5n(e,"."+o$+Jmn+l9e+`
.`+i$+Zmn+l9e)},e5n=function(e,t){var n=e.ownerDocument;if(n){var r=n.createElement("style");r.textContent=t,e.appendChild(r)}},gUe=function(){function e(){}return e.getOrigin=function(t){var n=e._link;return n?(n.href=t,n.href=n.href,n.protocol+n.hostname+n.port):"about:blank"},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement("a"),e._origin=e.getOrigin(t.location.href)},e._origin="about:blank",e}(),t5n=function(){function e(t,n){this.context=t,this._options=n,this._cache={}}return e.prototype.addImage=function(t){var n=Promise.resolve();return this.has(t)||(xj(t)||o5n(t))&&(this._cache[t]=this.loadImage(t)).catch(function(){}),n},e.prototype.match=function(t){return this._cache[t]},e.prototype.loadImage=function(t){return Zs(this,void 0,void 0,function(){var n,r,a,o,i=this;return Ss(this,function(s){switch(s.label){case 0:return n=gUe.isSameOrigin(t),r=!Ej(t)&&this._options.useCORS===!0&&ts.SUPPORT_CORS_IMAGES&&!n,a=!Ej(t)&&!n&&!xj(t)&&typeof this._options.proxy=="string"&&ts.SUPPORT_CORS_XHR&&!r,!n&&this._options.allowTaint===!1&&!Ej(t)&&!xj(t)&&!a&&!r?[2]:(o=t,a?[4,this.proxy(o)]:[3,2]);case 1:o=s.sent(),s.label=2;case 2:return this.context.logger.debug("Added image "+t.substring(0,256)),[4,new Promise(function(l,u){var c=new Image;c.onload=function(){return l(c)},c.onerror=u,(i5n(o)||r)&&(c.crossOrigin="anonymous"),c.src=o,c.complete===!0&&setTimeout(function(){return l(c)},500),i._options.imageTimeout>0&&setTimeout(function(){return u("Timed out ("+i._options.imageTimeout+"ms) loading image")},i._options.imageTimeout)})];case 3:return[2,s.sent()]}})})},e.prototype.has=function(t){return typeof this._cache[t]<"u"},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(t){var n=this,r=this._options.proxy;if(!r)throw new Error("No proxy defined");var a=t.substring(0,256);return new Promise(function(o,i){var s=ts.SUPPORT_RESPONSE_TYPE?"blob":"text",l=new XMLHttpRequest;l.onload=function(){if(l.status===200)if(s==="text")o(l.response);else{var f=new FileReader;f.addEventListener("load",function(){return o(f.result)},!1),f.addEventListener("error",function(d){return i(d)},!1),f.readAsDataURL(l.response)}else i("Failed to proxy resource "+a+" with status code "+l.status)},l.onerror=i;var u=r.indexOf("?")>-1?"&":"?";if(l.open("GET",""+r+u+"url="+encodeURIComponent(t)+"&responseType="+s),s!=="text"&&l instanceof XMLHttpRequest&&(l.responseType=s),n._options.imageTimeout){var c=n._options.imageTimeout;l.timeout=c,l.ontimeout=function(){return i("Timed out ("+c+"ms) proxying "+a)}}l.send()})},e}(),n5n=/^data:image\/svg\+xml/i,r5n=/^data:image\/.*;base64,/i,a5n=/^data:image\/.*/i,o5n=function(e){return ts.SUPPORT_SVG_DRAWING||!s5n(e)},Ej=function(e){return a5n.test(e)},i5n=function(e){return r5n.test(e)},xj=function(e){return e.substr(0,4)==="blob"},s5n=function(e){return e.substr(-3).toLowerCase()==="svg"||n5n.test(e)},hn=function(){function e(t,n){this.type=0,this.x=t,this.y=n}return e.prototype.add=function(t,n){return new e(this.x+t,this.y+n)},e}(),z6=function(e,t,n){return new hn(e.x+(t.x-e.x)*n,e.y+(t.y-e.y)*n)},Rx=function(){function e(t,n,r,a){this.type=1,this.start=t,this.startControl=n,this.endControl=r,this.end=a}return e.prototype.subdivide=function(t,n){var r=z6(this.start,this.startControl,t),a=z6(this.startControl,this.endControl,t),o=z6(this.endControl,this.end,t),i=z6(r,a,t),s=z6(a,o,t),l=z6(i,s,t);return n?new e(this.start,r,i,l):new e(l,s,o,this.end)},e.prototype.add=function(t,n){return new e(this.start.add(t,n),this.startControl.add(t,n),this.endControl.add(t,n),this.end.add(t,n))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),$u=function(e){return e.type===1},l5n=function(){function e(t){var n=t.styles,r=t.bounds,a=E7(n.borderTopLeftRadius,r.width,r.height),o=a[0],i=a[1],s=E7(n.borderTopRightRadius,r.width,r.height),l=s[0],u=s[1],c=E7(n.borderBottomRightRadius,r.width,r.height),f=c[0],d=c[1],h=E7(n.borderBottomLeftRadiu
<path class="path" d="
M 30 15
L 28 17
M 25.61 25.61
A 15 15, 0, 0, 1, 15 30
A 15 15, 0, 1, 1, 27.99 7.5
L 15 15
" style="stroke-width: 4px; fill: rgba(0, 0, 0, 0)"/>
`,$9n=Z({__name:"timeAxis",props:{data:{type:Object,default(){return{}}},viewLayout:{type:Object,default(){return{}}},columnsFilter:{type:Object,default(){return{}}},searchSend:{type:Object,default(){return{}}},drawerWith:{type:Number,default:0},viewSetup:{type:Object,default(){return{}}}},setup(e,{expose:t}){const n=e,r=G(!1),a=G(!1),o=N(()=>a.value||r.value);let i=0;const s=()=>{r.value=!0,i++,r.value?(n.searchSend.page=i,f(n.searchSend)):r.value=!1},l=G(0),u=G(0),c=G([]),f=(y,b)=>{r.value=!0,y.viewClass={class:"time",sortWord:"creater_time",sort:1,startTime:"",endTime:"",dayType:"",mapWord:""},b&&b!=1&&(c.value.length>0?y.oldData=Fd(c.value):y.oldData=""),WOt(y).then(_=>{r.value=!1,l.value=_.data.total,u.value=_.data.count,c.value=_.data.list,_.data.count==y.pagesize?a.value=!1:a.value=!0}).finally(()=>{ht(()=>{r.value=!1})})};t({searchTimeList:f});const d=(y,b)=>y=="_lableTitle"?m(b):b[y]?b[y]:"",h=N(()=>{let y=[];return n.columnsFilter&&n.columnsFilter.forEach(b=>{b.fieldClass!="-"&&b.fieldClass!="__control"&&y.push(b)}),y}),A=G(1),p=G(!1),g=G(),v=y=>{A.value=4,g.value=y,p.value=!0},m=y=>{var b=[];let _="";if(n.viewSetup.form&&n.viewSetup.form.title&&n.viewSetup.form.title.length>0&&n.viewSetup.form.title.forEach((C,S)=>{y[C]&&b.push(y[C])}),b.length>0)return b.join();{let C=["id","creater_time","edit_time","masters_key","states","flow_id"];for(let S in y)y.hasOwnProperty(S)&&(C.includes(S)||y[S]!=""&&y[S]!=null&&(_=y[S]));return _}};return(y,b)=>{const _=Oi,C=Hne,S=Rne,B=FC,x=dre,E=fre,k=go,D=oMe;return xt((T(),z("ul",{class:"infinite-list","infinite-scroll-disabled":w(o)},[q(E,{reverse:!0,class:"timeLineStyle"},{default:X(()=>[(T(!0),z(Ke,null,gt(w(c),(F,I)=>(T(),ae(x,{center:"",key:y.index,hollow:F.class_type$unit==1,type:F.class_type$unit==1?"primary":"",icon:F.class_type$unit==1?"":"MoreFilled",size:F.class_type$unit==1?"large":""},{default:X(()=>[F.class_type$unit==1?(T(),z("div",X9n,[j("table",null,[j("tr",null,[j("td",q9n,[q(_,{class:"leftDay"},{default:X(()=>[qe(Ee(F.day),1)]),_:2},1024)]),j("td",null,[q(_,null,{default:X(()=>[qe(Ee(F.weekDay),1)]),_:2},1024)])]),j("tr",null,[j("td",null,[q(_,null,{default:X(()=>[qe(Ee(F.dateTime),1)]),_:2},1024)])])])])):ve("",!0),F.class_type$unit==1?(T(),z("div",Y9n)):ve("",!0),F.class_type$unit!=1?(T(),ae(B,{key:2,onClick:P=>v(F)},{default:X(()=>[q(S,{class:"margin-top",title:"",column:3,border:""},{default:X(()=>[(T(!0),z(Ke,null,gt(w(h),P=>(T(),ae(C,{label:P.label},{default:X(()=>[qe(Ee(d(P.field,F)),1)]),_:2},1032,["label"]))),256))]),_:2},1024)]),_:2},1032,["onClick"])):ve("",!0)]),_:2},1032,["hollow","type","icon","size"]))),128))]),_:1}),xt(j("p",{class:"jichuClass","element-loading-text":"Loading...","element-loading-spinner":Z9n,"element-loading-svg-view-box":"-10, -10, 50, 50"},null,512),[[k,w(r)]]),w(a)?(T(),z("p",J9n,"数据已全部展示!")):ve("",!0),q(_p,{"is-show":w(p),"onUpdate:isShow":b[0]||(b[0]=F=>Dt(p)?p.value=F:null),"drawer-with":n.drawerWith,"page-info":w(g),"table-page-class":w(A),"oper-state":y.operState,onGetPageData:y.getPageData},null,8,["is-show","drawer-with","page-info","table-page-class","oper-state","onGetPageData"])],8,W9n)),[[D,s]])}}});const DUe=Nn($9n,[["__scopeId","data-v-ee2efca4"]]),e7n={class:"cardContBox"},t7n={class:"title"},n7n={class:"content"},r7n={class:"pageBox"},a7n=Z({__name:"cardPage",props:{searchSend:{type:Object,default(){return{}}},viewSetup:{type:Object,default(){return{}}},columnsFilter:{type:Object,default(){return{}}},drawerWith:{type:Number,default:0}},setup(e,{expose:t}){const n=e,r=G("default"),a=G(1);N(()=>{let m={};return n.viewSetup.form.imgWidth!=0?m.width=n.viewSetup.form.imgWidth+"px":m.width="50px",n.viewSetup.form.imgHeight!=0?m.height=n.viewSetup.form.imgHeight+"px":m.height="50px",m});const o=N(()=>{let m={};return m.border="1px solid #ccc",m["border-radius"]=n.viewSetup.form.imgBorderRadius+"px",m.padding=n.viewSetup.form.imgPadding+"px",n.viewSetup.form.imgWidth!=0?m.width=n.viewSetup.form.imgWidth+"px":m.width="50px",n.viewSetup.form.imgHeight!=0?m.height=n.viewSetup.form.imgHeight+"px"
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 u$=function(e,t){return u$=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},u$(e,t)};function et(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");u$(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var R7n=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),H7n=function(){function e(){this.browser=new R7n,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return e}(),B2=new H7n;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(B2.wxa=!0,B2.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?B2.worker=!0:!B2.hasGlobalWindow||"Deno"in window?(B2.node=!0,B2.svgSupported=!0):V7n(navigator.userAgent,B2);function V7n(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),a=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),o=e.match(/Edge?\/([\d.]+)/),i=/micromessenger/i.test(e);r&&(n.firefox=!0,n.version=r[1]),a&&(n.ie=!0,n.version=a[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),i&&(n.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}const Cr=B2;var xle=12,PUe="sans-serif",Cp=xle+"px "+PUe,z7n=20,N7n=100,Q7n="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function U7n(e){var t={};if(typeof JSON>"u")return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32),a=(e.charCodeAt(n)-z7n)/N7n;t[r]=a}return t}var j7n=U7n(Q7n),Sp={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(n,r){if(!e){var a=Sp.createCanvas();e=a&&a.getContext("2d")}if(e)return t!==r&&(t=e.font=r||Cp),e.measureText(n);n=n||"",r=r||Cp;var o=/((?:\d+)?\.?\d*)px/.exec(r),i=o&&+o[1]||xle,s=0;if(r.indexOf("mono")>=0)s=i*n.length;else for(var l=0;l<n.length;l++){var u=j7n[n[l]];s+=u==null?i:u*i}return{width:s}}}(),loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r}},RUe=jf(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),HUe=jf(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),E5=Object.prototype.toString,TR=Array.prototype,K7n=TR.forEach,G7n=TR.filter,Tle=TR.slice,W7n=TR.map,d9e=(function(){}).constructor,Nx=d9e?d9e.prototype:null,kle="__proto__",X7n=2311;function VUe(){return X7n++}function Dle(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function Sn(e){if(e==null||typeof e!="object")return e;var t=e,n=E5.call(e);if(n==="[object Array]"){if(!jb(e)){t=[];for(var r=0,a=e.length;r<a;r++)t[r]=Sn(e[r])}}else if(HUe[n]){if(!jb(e)){var o=e.constructor;if(o.from)t=o.from(e);else{t=new o(e.length);for(var r=0,a=e.length;r<a;r++)t[r]=e[r]}}}else if(!RUe[n]&&!jb(e)&&!Im(e)){t={};for(var i in e)e.hasOwnProperty(i)&&i!==kle&&(t[i]=Sn(e[i]))}return t}function Fn(e,t,n){if(!yn(t)||!yn(e))return n?Sn(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==kle){var a=e[r],o=t[r];yn(o)&&yn(a)&&!_t(o)&&!_t(a)&&!Im(o)&&!Im(a)&&!
`),o=a.length;if(o===1)return V9e(a[0],t,n,r);for(var i=new Vn(0,0,0,0),s=0;s<a.length;s++){var l=V9e(a[s],t,n,r);s===0?i.copy(l):i.union(l)}return i}function I7(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function Eg(e,t,n){return n==="middle"?e-=t/2:n==="bottom"&&(e-=t),e}function LR(e){return wu("国",e)}function C0(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function nO(e,t,n){var r=t.position||"inside",a=t.distance!=null?t.distance:5,o=n.height,i=n.width,s=o/2,l=n.x,u=n.y,c="left",f="top";if(r instanceof Array)l+=C0(r[0],n.width),u+=C0(r[1],n.height),c=null,f=null;else switch(r){case"left":l-=a,u+=s,c="right",f="middle";break;case"right":l+=a+i,u+=s,f="middle";break;case"top":l+=i/2,u-=a,c="center",f="bottom";break;case"bottom":l+=i/2,u+=o+a,c="center";break;case"inside":l+=i/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=a,u+=s,f="middle";break;case"insideRight":l+=i-a,u+=s,c="right",f="middle";break;case"insideTop":l+=i/2,u+=a,c="center";break;case"insideBottom":l+=i/2,u+=o-a,c="center",f="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=i-a,u+=a,c="right";break;case"insideBottomLeft":l+=a,u+=o-a,f="bottom";break;case"insideBottomRight":l+=i-a,u+=o-a,c="right",f="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=f,e}var Wj="__zr_normal__",Xj=Gf.concat(["ignore"]),vwn=jf(Gf,function(e,t){return e[t]=!0,e},{ignore:!1}),G6={},gwn=new Vn(0,0,0,0),zle=function(){function e(t){this.id=VUe(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,n,r){switch(this.draggable){case"horizontal":n=0;break;case"vertical":t=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=t,a[5]+=n,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var n=this._textContent;if(n&&(!n.ignore||t)){this.textConfig||(this.textConfig={});var r=this.textConfig,a=r.local,o=n.innerTransformable,i=void 0,s=void 0,l=!1;o.parent=a?this:null;var u=!1;if(o.copyTransform(n),r.position!=null){var c=gwn;r.layoutRect?c.copy(r.layoutRect):c.copy(this.getBoundingRect()),a||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(G6,r,c):nO(G6,r,c),o.x=G6.x,o.y=G6.y,i=G6.align,s=G6.verticalAlign;var f=r.origin;if(f&&r.rotation!=null){var d=void 0,h=void 0;f==="center"?(d=c.width*.5,h=c.height*.5):(d=C0(f[0],c.width),h=C0(f[1],c.height)),u=!0,o.originX=-o.x+d+(a?0:c.x),o.originY=-o.y+h+(a?0:c.y)}}r.rotation!=null&&(o.rotation=r.rotation);var A=r.offset;A&&(o.x+=A[0],o.y+=A[1],u||(o.originX=-A[0],o.originY=-A[1]));var p=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),v=void 0,m=void 0,y=void 0;p&&this.canBeInsideText()?(v=r.insideFill,m=r.insideStroke,(v==null||v==="auto")&&(v=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(v),y=!0)):(v=r.outsideFill,m=r.outsideStroke,(v==null||v==="auto")&&(v=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(v),y=!0)),v=v||"#000",(v!==g.fill||m!==g.stroke||y!==g.autoStroke||i!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=v,g.stroke=m,g.autoStroke=y,g.align=i,g.verticalAlign=s,n.setDefaultTextStyle(g)),n.__dirty|=uu,l&&n.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?M$:I$},e.prototype.getOutsideStroke=function(t){var n=this.__zr&&this.__zr.getBackgroundColor(),r=typeof n=="string"&&bu(n);r||(r=[255,255,255,1]);for(var a=r[3],o=this.__zr.isDarkMode(),i=0;i<3;i++)r[i]=r[i]*a+(o?0:255)*(1-a);return r[3]=1,Jd(r,"rgba")},e.prototype.traver
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/var CD={},gje={};function _wn(e){delete gje[e]}function Cwn(e){if(!e)return!1;if(typeof e=="string")return $L(e,1)<D$;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,a=0;a<r;a++)n+=$L(t[a].color,1);return n/=r,n<D$}return!1}var Swn=function(){function e(t,n,r){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,r=r||{},this.dom=n,this.id=t;var o=new Obn,i=r.renderer||"canvas";CD[i]||(i=ir(CD)[0]),r.useDirtyRect=r.useDirtyRect==null?!1:r.useDirtyRect;var s=new CD[i](n,o,r,t),l=r.ssr||s.ssrOnly;this.storage=o,this.painter=s;var u=!Cr.node&&!Cr.worker&&!l?new hwn(s.getViewportRoot(),s.root):null,c=r.useCoarsePointer,f=c==null||c==="auto"?Cr.touchEventsSupported:!!c,d=44,h;f&&(h=Mn(r.pointerSize,d)),this.handler=new kbn(o,s,u,s.root,h),this.animation=new own({stage:{update:l?null:function(){return a._flush(!0)}}}),l||this.animation.start()}return e.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,n){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,n),this.refresh())},e.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=Cwn(t))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(t){var n,r=Ug();this._needsRefresh&&(n=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(n=!0,this.refreshHoverImmediately());var a=Ug();n?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-r})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,n){if(!this._disposed)return this.handler.findHover(t,n)},e.prototype.on=function(t,n,r){return this._disposed||this.handler.on(t,n,r),this},e.prototype.off=function(t,n){this._disposed||this.handler.off(t,n)},e.prototype.trigger=function(t,n){this._disposed||this.handler.trigger(t,n)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),n=0;n<t.length;n++)t[n]instanceof kn&&t[n].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,_wn(this.id))},e}();function z9e(e,t){var n=new Swn(VUe(),e,t);return gje[n.id]=n,n}function Bwn(e,t){CD[e]=t}var L$;function Ewn(e){if(typ
`);o=Lje(n,r,a,o);for(var s=!1,l={},u=0,c=i.length;u<c;u++)Oje(l,i[u],o),i[u]=l.textLine,s=s||l.isTruncated;e.text=i.join(`
`),e.isTruncated=s}function Lje(e,t,n,r){r=r||{};var a=At({},r);a.font=t,n=Mn(n,"..."),a.maxIterations=Mn(r.maxIterations,2);var o=a.minChar=Mn(r.minChar,0);a.cnCharWidth=wu("国",t);var i=a.ascCharWidth=wu("a",t);a.placeholder=Mn(r.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<o&&s>=i;l++)s-=i;var u=wu(n,t);return u>s&&(n="",u=0),s=e-u,a.ellipsis=n,a.ellipsisWidth=u,a.contentWidth=s,a.containerWidth=e,a}function Oje(e,t,n){var r=n.containerWidth,a=n.font,o=n.contentWidth;if(!r){e.textLine="",e.isTruncated=!1;return}var i=wu(t,a);if(i<=r){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(i<=o||s>=n.maxIterations){t+=n.ellipsis;break}var l=s===0?l_n(t,o,n.ascCharWidth,n.cnCharWidth):i>0?Math.floor(t.length*o/i):0;t=t.substr(0,l),i=wu(t,a)}t===""&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function l_n(e,t,n,r){for(var a=0,o=0,i=e.length;o<i&&a<t;o++){var s=e.charCodeAt(o);a+=0<=s&&s<=127?n:r}return o}function u_n(e,t){e!=null&&(e+="");var n=t.overflow,r=t.padding,a=t.font,o=n==="truncate",i=LR(a),s=Mn(t.lineHeight,i),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",c=!1,f=t.width,d;f!=null&&(n==="break"||n==="breakAll")?d=e?Fje(e,t.font,f,n==="breakAll",0).lines:[]:d=e?e.split(`
`):[];var h=d.length*s,A=Mn(t.height,h);if(h>A&&u){var p=Math.floor(A/s);c=c||d.length>p,d=d.slice(0,p)}if(e&&o&&f!=null)for(var g=Lje(f,a,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),v={},m=0;m<d.length;m++)Oje(v,d[m],g),d[m]=v.textLine,c=c||v.isTruncated;for(var y=A,b=0,m=0;m<d.length;m++)b=Math.max(wu(d[m],a),b);f==null&&(f=b);var _=b;return r&&(y+=r[0]+r[2],_+=r[1]+r[3],f+=r[1]+r[3]),l&&(_=f),{lines:d,height:A,outerWidth:_,outerHeight:y,lineHeight:s,calculatedLineHeight:i,contentWidth:b,contentHeight:h,width:f,isTruncated:c}}var c_n=function(){function e(){}return e}(),X9e=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),f_n=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e}();function d_n(e,t){var n=new f_n;if(e!=null&&(e+=""),!e)return n;for(var r=t.width,a=t.height,o=t.overflow,i=(o==="break"||o==="breakAll")&&r!=null?{width:r,accumWidth:0,breakAll:o==="breakAll"}:null,s=Zj.lastIndex=0,l;(l=Zj.exec(e))!=null;){var u=l.index;u>s&&$j(n,e.substring(s,u),t,i),$j(n,l[2],t,i,l[1]),s=Zj.lastIndex}s<e.length&&$j(n,e.substring(s,e.length),t,i);var c=[],f=0,d=0,h=t.padding,A=o==="truncate",p=t.lineOverflow==="truncate",g={};function v(U,O,V){U.width=O,U.lineHeight=V,f+=V,d=Math.max(d,O)}e:for(var m=0;m<n.lines.length;m++){for(var y=n.lines[m],b=0,_=0,C=0;C<y.tokens.length;C++){var S=y.tokens[C],B=S.styleName&&t.rich[S.styleName]||{},x=S.textPadding=B.padding,E=x?x[1]+x[3]:0,k=S.font=B.font||t.font;S.contentHeight=LR(k);var D=Mn(B.height,S.contentHeight);if(S.innerHeight=D,x&&(D+=x[0]+x[2]),S.height=D,S.lineHeight=Ef(B.lineHeight,t.lineHeight,D),S.align=B&&B.align||t.align,S.verticalAlign=B&&B.verticalAlign||"middle",p&&a!=null&&f+S.lineHeight>a){var F=n.lines.length;C>0?(y.tokens=y.tokens.slice(0,C),v(y,_,b),n.lines=n.lines.slice(0,m+1)):n.lines=n.lines.slice(0,m),n.isTruncated=n.isTruncated||n.lines.length<F;break e}var I=B.width,P=I==null||I==="auto";if(typeof I=="string"&&I.charAt(I.length-1)==="%")S.percentWidth=I,c.push(S),S.contentWidth=wu(S.text,k);else{if(P){var R=B.backgroundColor,H=R&&R.image;H&&(H=i_n(H),FR(H)&&(S.width=Math.max(S.width,H.width*D/H.height)))}var Q=A&&r!=null?r-_:null;Q!=null&&Q<S.width?!P||Q<E?(S.text="",S.width=S.contentWidth=0):(s_n(g,S.text,Q-E,k,t.ellipsis,{minChar:t.truncateMinChar}),S.text=g.text,n.isTruncated=n.isTruncated||g.isTruncated,S.width=S.contentWidth=wu(S.text,k)):S.contentWidth=wu(S.text,k)}S.width+=E,_+=S.width,B&&(b=Math.max(b,S.lineHeight))}v(y,_,b)}n.outerWidth=n.width=Mn(r,d),n.outerHeight=n.height=Mn(a,f),n.contentHeight=f,n.contentWidth=d,h&&(n.outerWidth+=h[1]+h[3],n.outerHeight+=h[0]+h[2]);for(var m=0;m<c.length;m++){var S=c[m],M=S.percentWidth;S.width=parseInt(M,10)/100*n.width}return n}function $j(e,t,n,r,a){var o=t==="",i=a&&n.rich[a]||{},s=e.lines,l=i.font||n.font,u=!1,c,f;if(r){var d=i.padding,h=d?d[1]+d[3]:0;if(i.width!=null&&i.width!=="auto"){var A=C0(i.width,r.width)+h;s.length>0&&A+r.accumWidth>r.width&&(c=t.split(`
`),u=!0),r.accumWidth=A}else{var p=Fje(t,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=p.accumWidth+h,f=p.linesWidths,c=p.lines}}else c=t.split(`
`);for(var g=0;g<c.length;g++){var v=c[g],m=new c_n;if(m.styleName=a,m.text=v,m.isLineHolder=!v&&!o,typeof i.width=="number"?m.width=i.width:m.width=f?f[g]:wu(v,l),!g&&!u){var y=(s[s.length-1]||(s[0]=new X9e)).tokens,b=y.length;b===1&&y[0].isLineHolder?y[0]=m:(v||!b||o)&&y.push(m)}else s.push(new X9e([m]))}}function h_n(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var p_n=jf(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function A_n(e){return h_n(e)?!!p_n[e]:!0}function Fje(e,t,n,r,a){for(var o=[],i=[],s="",l="",u=0,c=0,f=0;f<e.length;f++){var d=e.charAt(f);if(d===`
`){l&&(s+=l,c+=u),o.push(s),i.push(c),s="",l="",u=0,c=0;continue}var h=wu(d,t),A=r?!1:!A_n(d);if(o.length?c+h>n:a+c+h>n){c?(s||l)&&(A?(s||(s=l,l="",u=0,c=u),o.push(s),i.push(c-u),l+=d,u+=h,s="",c=u):(l&&(s+=l,l="",u=0),o.push(s),i.push(c),s=d,c=h)):A?(o.push(l),i.push(u),l=d,u=h):(o.push(d),i.push(h));continue}c+=h,A?(l+=d,u+=h):(l&&(s+=l,l="",u=0),s+=d)}return!o.length&&!s&&(s=e,l="",u=0),l&&(s+=l),s&&(o.push(s),i.push(c)),o.length===1&&(c+=a),{accumWidth:c,lines:o,linesWidths:i}}var P$="__zr_style_"+Math.round(Math.random()*10),E4={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},PR={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};E4[P$]=!0;var q9e=["z","z2","invisible"],v_n=["invisible"],g_n=function(e){et(t,e);function t(n){return e.call(this,n)||this}return t.prototype._init=function(n){for(var r=ir(n),a=0;a<r.length;a++){var o=r[a];o==="style"?this.useStyle(n[o]):e.prototype.attrKV.call(this,o,n[o])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(n,r,a,o){var i=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&m_n(this,n,r)||i&&!i[0]&&!i[3])return!1;if(a&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(o&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(n,r){return this.rectContain(n,r)},t.prototype.traverse=function(n,r){n.call(r,this)},t.prototype.rectContain=function(n,r){var a=this.transformCoordToLocal(n,r),o=this.getBoundingRect();return o.contain(a[0],a[1])},t.prototype.getPaintRect=function(){var n=this._paintRect;if(!this._paintRect||this.__dirty){var r=this.transform,a=this.getBoundingRect(),o=this.style,i=o.shadowBlur||0,s=o.shadowOffsetX||0,l=o.shadowOffsetY||0;n=this._paintRect||(this._paintRect=new Vn(0,0,0,0)),r?Vn.applyTransform(n,a,r):n.copy(a),(i||s||l)&&(n.width+=i*2+Math.abs(s),n.height+=i*2+Math.abs(l),n.x=Math.min(n.x,n.x+s-i),n.y=Math.min(n.y,n.y+l-i));var u=this.dirtyRectTolerance;n.isZero()||(n.x=Math.floor(n.x-u),n.y=Math.floor(n.y-u),n.width=Math.ceil(n.width+1+u*2),n.height=Math.ceil(n.height+1+u*2))}return n},t.prototype.setPrevPaintRect=function(n){n?(this._prevPaintRect=this._prevPaintRect||new Vn(0,0,0,0),this._prevPaintRect.copy(n)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(n){return this.animate("style",n)},t.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(n,r){n!=="style"?e.prototype.attrKV.call(this,n,r):this.style?this.setStyle(r):this.useStyle(r)},t.prototype.setStyle=function(n,r){return typeof n=="string"?this.style[n]=r:At(this.style,n),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(n){n||this.markRedraw(),this.__dirty|=k7,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&k7)},t.prototype.styleUpdated=function(){this.__dirty&=~k7},t.prototype.createStyle=function(n){return DR(E4,n)},t.prototype.useStyle=function(n){n[P$]||(n=this.createStyle(n)),this.__inHover?this.__hoverStyle=n:this.style=n,this.dirtyStyle()},t.prototype.isStyleObject=function(n){return n[P$]},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.style&&!r.style&&(r.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(n,r,q9e)},t.prototype._applyStateObj=function(n,r,a,o,i,s){e.prototype._applyStateObj.call(this,n,r,a,o,i,s);var l=!(r&&o),u;if(r&&r.style?i?o?u=r.style:(u=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(u,r.style)):(u=this._mergeStyle(this.createStyle(),o?this.style:a.style),this._mergeStyle(u,r.style)):l&&(u=a.style),u)if(i){var c=this.
`,`
`,`
`];function Mi(e,t){return t.type=e,t}function Z$(e){return e.type==="section"}function yGe(e){return Z$(e)?_Bn:CBn}function bGe(e){if(Z$(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return Ae(e.blocks,function(a){var o=bGe(a);o>=t&&(t=o+ +(r&&(!o||Z$(a)&&!a.noHeader)))}),t}return 0}function _Bn(e,t,n,r){var a=t.noHeader,o=SBn(bGe(t)),i=[],s=t.blocks||[];fl(!s||_t(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Jt(u,l)){var c=new dGe(u[l],null);s.sort(function(p,g){return c.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}Ae(s,function(p,g){var v=t.valueFormatter,m=yGe(p)(v?At(At({},e),{valueFormatter:v}):e,p,g>0?o.html:0,r);m!=null&&i.push(m)});var f=e.renderMode==="richText"?i.join(o.richText):$$(r,i.join(""),a?n:o.html);if(a)return f;var d=W$(t.header,"ordinal",e.useUTC),h=mGe(r,e.renderMode).nameStyle,A=gGe(r);return e.renderMode==="richText"?wGe(e,d,h)+o.richText+f:$$(r,'<div style="'+h+";"+A+';">'+Is(d)+"</div>"+f,n)}function CBn(e,t,n,r){var a=e.renderMode,o=t.noName,i=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(b){return b=_t(b)?b:[b],St(b,function(_,C){return W$(_,_t(h)?h[C]:h,u)})};if(!(o&&i)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),d=o?"":W$(l,"ordinal",u),h=t.valueType,A=i?[]:c(t.value,t.dataIndex),p=!s||!o,g=!s&&o,v=mGe(r,a),m=v.nameStyle,y=v.valueStyle;return a==="richText"?(s?"":f)+(o?"":wGe(e,d,m))+(i?"":xBn(e,A,p,g,y)):$$(r,(s?"":f)+(o?"":BBn(d,!s,m))+(i?"":EBn(A,p,g,y)),n)}}function rbe(e,t,n,r,a,o){if(e){var i=yGe(e),s={useUTC:a,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter};return i(s,e,0,o)}}function SBn(e){return{html:bBn[e],richText:wBn[e]}}function $$(e,t,n){var r='<div style="clear:both"></div>',a="margin: "+n+"px 0 0",o=gGe(e);return'<div style="'+a+";"+o+';">'+t+r+"</div>"}function BBn(e,t,n){var r=t?"margin-left:2px":"";return'<span style="'+n+";"+r+'">'+Is(e)+"</span>"}function EBn(e,t,n,r){var a=n?"10px":"20px",o=t?"float:right;margin-left:"+a:"";return e=_t(e)?e:[e],'<span style="'+o+";"+r+'">'+St(e,function(i){return Is(i)}).join("&nbsp;&nbsp;")+"</span>"}function wGe(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function xBn(e,t,n,r,a){var o=[a],i=r?10:20;return n&&o.push({padding:[0,0,0,i],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(_t(t)?t.join(" "):t,o)}function _Ge(e,t){var n=e.getData().getItemVisual(t,"style"),r=n[e.visualDrawType];return h3(r)}function CGe(e,t){var n=e.get("padding");return n??(t==="richText"?[8,10]:10)}var CK=function(){function e(){this.richTextStyles={},this._nextStyleNameId=Cje()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,n,r){var a=r==="richText"?this._generateStyleName():null,o=pSn({color:n,type:t,renderMode:r,markerId:a});return Ut(o)?o:(this.richTextStyles[a]=o.style,o.content)},e.prototype.wrapRichTextStyle=function(t,n){var r={};_t(n)?Ae(n,function(o){return At(r,o)}):At(r,n);var a=this._generateStyleName();return this.richTextStyles[a]=r,"{"+a+"|"+t+"}"},e}();function SGe(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,a=t.getData(),o=a.mapDimensionsAll("defaultedTooltip"),i=o.length,s=t.getRawValue(n),l=_t(s),u=_Ge(t,n),c,f,d,h;if(i>1||l&&!i){var A=TBn(s,t,n,o,u);c=A.inlineValues,f=A.inlineValueTypes,d=A.blocks,h=A.inlineValues[0]}else if(i){var p=a.getDimensionInfo(o[0]);h=c=Lm(a,n,o[0]),f=p.type}else h=c=l?s[0]:s;var g=Qle(t),v=g&&t.name||"",m=a.getName(n),y=r?v:m;return Mi("section",{header:v,noHeader:r||!g,sortParam:h,blocks:[Mi("nameValue",{markerType:"item",markerColor:u,name:y,noName:!i0(y),value:c,valueType:f,dataIndex:n})].concat(d||[])})}function TBn(e,t,n,r,a){var o=t.getData(),i=jf(e,function(f,d,h){var A=o.getDimensionInfo(h);return f=f||A&&A.tooltip!==!1&&A.displayName!=null},!1),s=[],l=[],u=[];r.length?Ae(r,function(f){c(Lm(o,n,f),f)}):Ae(e,c);function c(f,d){var h=o.getDimensionInfo(d);!h||h.otherDims.toolti
`:"";function r(a){var o=a.children,i=a.tag,s=a.attrs,l=a.text;return KTn(i,s)+(i!=="style"?Is(l):l||"")+(o?""+n+St(o,function(u){return r(u)}).join(n)+n:"")+GTn(i)}return r(e)}function WTn(e,t,n){n=n||{};var r=n.newline?`
`:"",a=" {"+r,o=r+"}",i=St(ir(e),function(l){return l+a+St(ir(e[l]),function(u){return u+":"+e[l][u]+";"}).join(r)+o}).join(r),s=St(ir(t),function(l){return"@keyframes "+l+a+St(ir(t[l]),function(u){return u+a+St(ir(t[l][u]),function(c){var f=t[l][u][c];return c==="d"&&(f='path("'+f+'")'),c+":"+f+";"}).join(r)+o}).join(r)+o}).join(r);return!i&&!s?"":["<![CDATA[",i,s,"]]>"].join(r)}function fee(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function $be(e,t,n,r){return Ci("svg","root",{width:e,height:t,xmlns:KWe,"xmlns:xlink":GWe,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+e+" "+t:!1},n)}var XTn=0;function XWe(){return XTn++}var ewe={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},nv="transform-origin";function qTn(e,t,n){var r=At({},e.shape);At(r,t),e.buildPath(n,r);var a=new jWe;return a.reset(lje(e)),n.rebuildPath(a,1),a.generateStr(),a.getStr()}function YTn(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[nv]=n+"px "+r+"px")}var JTn={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function qWe(e,t){var n=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function ZTn(e,t,n){var r=e.shape.paths,a={},o,i;if(Ae(r,function(l){var u=fee(n.zrId);u.animation=!0,iH(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,d=ir(c),h=d.length;if(h){i=d[h-1];var A=c[i];for(var p in A){var g=A[p];a[p]=a[p]||{d:""},a[p].d+=g.d||""}for(var v in f){var m=f[v].animation;m.indexOf(i)>=0&&(o=m)}}}),!!o){t.d=!1;var s=qWe(a,n);return o.replace(i,s)}}function twe(e){return Ut(e)?ewe[e]?"cubic-bezier("+ewe[e]+")":Rle(e)?e:"":""}function iH(e,t,n,r){var a=e.animators,o=a.length,i=[];if(e instanceof tue){var s=ZTn(e,t,n);if(s)i.push(s);else if(!o)return}else if(!o)return;for(var l={},u=0;u<o;u++){var c=a[u],f=[c.getMaxTime()/1e3+"s"],d=twe(c.getClip().easing),h=c.getDelay();d?f.push(d):f.push("linear"),h&&f.push(h/1e3+"s"),c.getLoop()&&f.push("infinite");var A=f.join(" ");l[A]=l[A]||[A,[]],l[A][1].push(c)}function p(m){var y=m[1],b=y.length,_={},C={},S={},B="animation-timing-function";function x(ie,le,he){for(var oe=ie.getTracks(),pe=ie.getMaxTime(),J=0;J<oe.length;J++){var L=oe[J];if(L.needsAnimate()){var te=L.keyframes,de=L.propName;if(he&&(de=he(de)),de)for(var ee=0;ee<te.length;ee++){var se=te[ee],ge=Math.round(se.time/pe*100)+"%",Ce=twe(se.easing),we=se.rawValue;(Ut(we)||Tr(we))&&(le[ge]=le[ge]||{},le[ge][de]=se.rawValue,Ce&&(le[ge][B]=Ce))}}}}for(var E=0;E<b;E++){var k=y[E],D=k.targetName;D?D==="shape"&&x(k,C):!r&&x(k,_)}for(var F in _){var I={};hje(I,e),At(I,_[F]);var P=uje(I),R=_[F][B];S[F]=P?{transform:P}:{},YTn(S[F],I),R&&(S[F][B]=R)}var H,Q=!0;for(var F in C){S[F]=S[F]||{};var M=!H,R=C[F][B];M&&(H=new Xf);var U=H.len();H.reset(),S[F].d=qTn(e,C[F],H);var O=H.len();if(!M&&U!==O){Q=!1;break}R&&(S[F][B]=R)}if(!Q)for(var F in S)delete S[F].d;if(!r)for(var E=0;E<b;E++){var k=y[E],D=k.targetName;D==="style"&&x(k,S,function(oe){return JTn[oe]})}for(var V=ir(S),W=!0,$,E=1;E<V.length;E++){var ue=V[E-1],K=V[E];if(S[ue][nv]!==S[K][nv]){W=!1;break}$=S[ue][nv]}if(W&&$){for(var F in S)S[F][nv]&&delete S[F][nv];t[nv]=$}if(Nr(V,function(ie){return ir(S[ie]).length>0}).length){var ne=qWe(S,n);return ne+" "+m[0]+" both"}}for(var g in l){var s=p(l[g]);s&&i.push(s)}if(i.length){var v=n.zrId+"-cls-"+XWe();n.cssNodes["."+v]={animation:i.join(",")},t.class=v}}function $Tn(e,t,n){if(!e.ignore)if(e.isSilent()){var r={"pointer-events":"none"};n
`+g.message)}var a=new kn;a.add(r),a.isGeoSVGGraphicRoot=!0;var o=n.width,i=n.height,s=n.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,c=void 0,f=void 0,d=void 0;if(o!=null?(u=0,f=o):s&&(u=s.x,f=s.width),i!=null?(c=0,d=i):s&&(c=s.y,d=s.height),u==null||c==null){var h=r.getBoundingRect();u==null&&(u=h.x,f=h.width),c==null&&(c=h.y,d=h.height)}l=this._boundingRect=new Vn(u,c,f,d)}if(s){var A=LXe(s,l);r.scaleX=r.scaleY=A.scale,r.x=A.x,r.y=A.y}a.setClipPath(new br({shape:l.plain()}));var p=[];return Ae(n.named,function(g){UIn.get(g.svgNodeTagLower)!=null&&(p.push(g),KIn(g.el))}),{root:a,boundingRect:l,named:p}},e.prototype.useGraphic=function(t){var n=this._usedGraphicMap,r=n.get(t);return r||(r=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),n.set(t,r),r)},e.prototype.freeGraphic=function(t){var n=this._usedGraphicMap,r=n.get(t);r&&(n.removeKey(t),this._freedGraphics.push(r))},e}();function KIn(e){e.silent=!1,e.isGroup&&e.traverse(function(t){t.silent=!1})}function GIn(e){var t=[],n=on();return Ae(e,function(r){if(r.namedFrom==null){var a=new uTn(r.name,r.el);t.push(a),n.set(r.name,a)}}),{regions:t,regionsMap:n}}var yee=[126,25],t_e="南海诸岛",rv=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var GA=0;GA<rv.length;GA++)for(var ng=0;ng<rv[GA].length;ng++)rv[GA][ng][0]/=10.5,rv[GA][ng][1]/=-10.5/.75,rv[GA][ng][0]+=yee[0],rv[GA][ng][1]+=yee[1];function WIn(e,t){if(e==="china"){for(var n=0;n<t.length;n++)if(t[n].name===t_e)return;t.push(new TWe(t_e,St(rv,function(r){return{type:"polygon",exterior:r}}),yee))}}var XIn={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function qIn(e,t){if(e==="china"){var n=XIn[t.name];if(n){var r=t.getCenter();r[0]+=n[0]/10.5,r[1]+=-n[1]/(10.5/.75),t.setCenter(r)}}}var YIn=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function JIn(e,t){e==="china"&&t.name==="台湾"&&t.geometries.push({type:"polygon",exterior:YIn[0]})}var ZIn="name",$In=function(){function e(t,n,r){this.type="geoJSON",this._parsedMap=on(),this._mapName=t,this._specialAreas=r,this._geoJSON=tMn(n)}return e.prototype.load=function(t,n){n=n||ZIn;var r=this._parsedMap.get(n);if(!r){var a=this._parseToRegions(n);r=this._parsedMap.set(n,{regions:a,boundingRect:eMn(a)})}var o=on(),i=[];return Ae(r.regions,function(s){var l=s.name;t&&Jt(t,l)&&(s=s.cloneShallow(l=t[l])),i.push(s),o.set(l,s)}),{regions:i,boundingRect:r.boundingRect||new Vn(0,0,0,0),regionsMap:o}},e.prototype._parseToRegions=function(t){var n=this._mapName,r=this._geoJSON,a;try{a=r?fTn(r,t):[]}catch(o){throw new Error(`Invalid geoJson format
`+o.message)}return WIn(n,a),Ae(a,function(o){var i=o.name;qIn(n,o),JIn(n,o);var s=this._specialAreas&&this._specialAreas[i];s&&o.transformTo(s.left,s.top,s.width,s.height)},this),a},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}();function eMn(e){for(var t,n=0;n<e.length;n++){var r=e[n].getBoundingRect();t=t||r.clone(),t.union(r)}return t}function tMn(e){return Ut(e)?typeof JSON<"u"&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e}var X9=on();const A1={registerMap:function(e,t,n){if(t.svg){var r=new jIn(e,t.svg);X9.set(e,r)}else{var a=t.geoJson||t.geoJSON;a&&!t.features?n=t.specialAreas:a=t;var r=new $In(e,a,n);X9.set(e,r)}},getGeoResource:function(e){return X9.get(e)},getMapForUser:function(e){var t=X9.get(e);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(e,t,n){var r=X9.get(e);if(r)return r.load(t,n)}};var Gue=["rect","circle","line","ellipse","polygon","polyline","path"],nMn=on(Gue),rMn=on(Gue.concat(["g"])),aMn=on(Gue.concat(["g"])),OXe=vr();function xT(e){var t=e.getItemStyle(),n=e.get("areaColor");return n!=null&&(t.fill=n),t}function n_e(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var oMn=function(){function e(t){var n=new kn;this.uid=L5("ec_map_draw"),this._controller=new fB(t.getZr()),this._controllerHost={target:n},this.group=n,n.add(this._regionsGroup=new kn),n.add(this._svgGroup=new kn)}return e.prototype.draw=function(t,n,r,a,o){var i=t.mainType==="geo",s=t.getData&&t.getData();i&&n.eachComponent({mainType:"series",subType:"map"},function(v){!s&&v.getHostGeoModel()===t&&(s=v.getData())});var l=t.coordinateSystem,u=this._regionsGroup,c=this.group,f=l.getTransformInfo(),d=f.raw,h=f.roam,A=!u.childAt(0)||o;A?(c.x=h.x,c.y=h.y,c.scaleX=h.scaleX,c.scaleY=h.scaleY,c.dirty()):Mr(c,h,t);var p=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,g={api:r,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:p,isGeo:i,transformInfoRaw:d};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(t,n,r),this._updateMapSelectHandler(t,u,r,a)},e.prototype._buildGeoJSON=function(t){var n=this._regionsGroupByName=on(),r=on(),a=this._regionsGroup,o=t.transformInfoRaw,i=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function c(h,A){return A&&(h=A(h)),h&&[h[0]*o.scaleX+o.x,h[1]*o.scaleY+o.y]}function f(h){for(var A=[],p=!u&&l&&l.project,g=0;g<h.length;++g){var v=c(h[g],p);v&&A.push(v)}return A}function d(h){return{shape:{points:f(h)}}}a.removeAll(),Ae(t.geo.regions,function(h){var A=h.name,p=n.get(A),g=r.get(A)||{},v=g.dataIdx,m=g.regionModel;if(!p){p=n.set(A,new kn),a.add(p),v=s?s.indexOfName(A):null,m=t.isGeo?i.getRegionModel(A):s?s.getItemModel(v):null;var y=m.get("silent",!0);y!=null&&(p.silent=y),r.set(A,{dataIdx:v,regionModel:m})}var b=[],_=[];Ae(h.geometries,function(B){if(B.type==="polygon"){var x=[B.exterior].concat(B.interiors||[]);u&&(x=l_e(x,u)),Ae(x,function(k){b.push(new Wl(d(k)))})}else{var E=B.points;u&&(E=l_e(E,u,!0)),Ae(E,function(k){_.push(new Xl(d(k)))})}});var C=c(h.getCenter(),l&&l.project);function S(B,x){if(B.length){var E=new tue({culling:!0,segmentIgnoreThreshold:1,shape:{paths:B}});p.add(E),r_e(t,E,v,m),a_e(t,E,A,m,i,v,C),x&&(n_e(E),Ae(E.states,n_e))}}S(b),S(_,!0)}),n.each(function(h,A){var p=r.get(A),g=p.dataIdx,v=p.regionModel;o_e(t,h,A,v,i,g),i_e(t,h,A,v,i),s_e(t,h,A,v,i)},this)},e.prototype._buildSVG=function(t){var n=t.geo.map,r=t.transformInfoRaw;this._svgGroup.x=r.x,this._svgGroup.y=r.y,this._svgGroup.scaleX=r.scaleX,this._svgGroup.scaleY=r.scaleY,this._svgResourceChanged(n)&&(this._freeSVG(),this._useSVG(n));var a=this._svgDispatcherMap=on(),o=!1;Ae(this._svgGraphicRecord.named,function(i){var s=i.name,l=t.mapOrGeoModel,u=t.data,c=i.svgNodeTagLower,f=i.el,d=u?u.indexOfName(s):null,h=l.getRegionModel(s);nMn.get(c)!=null&&f instanceof Lc&&r_e(t,f,d,h),f instanceof Lc&&(f.culling=!0);var A=h.get("silent",!0);if(A!=null&&(f.silent=A),f.z2EmphasisLift=0,!i.namedFrom&&(aMn.get(c)!=null&&a_e(t,f
`))}),t.join(`
`+hH+`
`)}function nNn(e){return St(e,function(t){var n=t.getRawData(),r=[t.name],a=[];return n.each(n.dimensions,function(){for(var o=arguments.length,i=arguments[o-1],s=n.getName(i),l=0;l<o-1;l++)a[l]=arguments[l];r.push((s?s+zm:"")+a.join(zm))}),r.join(`
`)}).join(`
`+hH+`
`)}function rNn(e){var t=eNn(e);return{value:Nr([tNn(t.seriesGroupByCategoryAxis),nNn(t.other)],function(n){return!!n.replace(/[\n\t\s]/g,"")}).join(`
`+hH+`
`),meta:t.meta}}function FO(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function aNn(e){var t=e.slice(0,e.indexOf(`
`));if(t.indexOf(zm)>=0)return!0}var Hee=new RegExp("["+zm+"]+","g");function oNn(e){for(var t=e.split(/\n+/g),n=FO(t.shift()).split(Hee),r=[],a=St(n,function(l){return{name:l,data:[]}}),o=0;o<t.length;o++){var i=FO(t[o]).split(Hee);r.push(i.shift());for(var s=0;s<i.length;s++)a[s]&&(a[s].data[o]=i[s])}return{series:a,categories:r}}function iNn(e){for(var t=e.split(/\n+/g),n=FO(t.shift()),r=[],a=0;a<t.length;a++){var o=FO(t[a]);if(o){var i=o.split(Hee),s="",l=void 0,u=!1;isNaN(i[0])?(u=!0,s=i[0],i=i.slice(1),r[a]={name:s,value:[]},l=r[a].value):l=r[a]=[];for(var c=0;c<i.length;c++)l.push(+i[c]);l.length===1&&(u?r[a].value=l[0]:r[a]=l[0])}}return{name:n,data:r}}function sNn(e,t){var n=e.split(new RegExp(`
*`+hH+`
*`,"g")),r={series:[]};return Ae(n,function(a,o){if(aNn(a)){var i=oNn(a),s=t[o],l=s.axisDim+"Axis";s&&(r[l]=r[l]||[],r[l][s.axisIndex]={data:i.categories},r.series=r.series.concat(i.series))}else{var i=iNn(a);r.series.push(i)}}),r}var lNn=function(e){et(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(n,r){setTimeout(function(){r.dispatchAction({type:"hideTip"})});var a=r.getDom(),o=this.model;this._dom&&a.removeChild(this._dom);var i=document.createElement("div");i.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",i.style.backgroundColor=o.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=o.get("lang")||[];s.innerHTML=l[0]||o.get("title"),s.style.cssText="margin:10px 20px",s.style.color=o.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="overflow:auto";var f=o.get("optionToContent"),d=o.get("contentToOption"),h=rNn(n);if(An(f)){var A=f(r.getOption());Ut(A)?u.innerHTML=A:Im(A)&&u.appendChild(A)}else{c.readOnly=o.get("readOnly");var p=c.style;p.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",p.color=o.get("textColor"),p.borderColor=o.get("textareaBorderColor"),p.backgroundColor=o.get("textareaColor"),c.value=h.value,u.appendChild(c)}var g=h.meta,v=document.createElement("div");v.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",y=document.createElement("div"),b=document.createElement("div");m+=";background-color:"+o.get("buttonColor"),m+=";color:"+o.get("buttonTextColor");var _=this;function C(){a.removeChild(i),_._dom=null}g$(y,"click",C),g$(b,"click",function(){if(d==null&&f!=null||d!=null&&f==null){C();return}var S;try{An(d)?S=d(u,r.getOption()):S=sNn(c.value,g)}catch(B){throw C(),new Error("Data view format error "+B)}S&&r.dispatchAction({type:"changeDataView",newOption:S}),C()}),y.innerHTML=l[1],b.innerHTML=l[2],b.style.cssText=y.style.cssText=m,!o.get("readOnly")&&v.appendChild(b),v.appendChild(y),i.appendChild(s),i.appendChild(u),i.appendChild(v),u.style.height=a.clientHeight-80+"px",a.appendChild(i),this._dom=i},t.prototype.remove=function(n,r){this._dom&&r.getDom().removeChild(this._dom)},t.prototype.dispose=function(n,r){this.remove(n,r)},t.getDefaultOption=function(n){var r={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:n.getLocaleModel().get(["toolbox","dataView","title"]),lang:n.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return r},t}(tc);function uNn(e,t){return St(e,function(n,r){var a=t&&t[r];if(yn(a)&&!_t(a)){var o=yn(n)&&!_t(n);o||(n={value:n});var i=a.name!=null&&n.name==null;return n=mn(n,a),i&&delete n.name,n}else return n})}ld({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(e,t){var n=[];Ae(e.newOption.series,function(r){var a=t.getSeriesByName(r.name)[0];if(!a)n.push(At({type:"scatter"},r));else{var o=a.get("data");n.push({name:r.name,data:uNn(r.data,o)})}}),t.mergeOption(mn({series:n},e.newOption))});const cNn=lNn;var pYe=Ae,AYe=vr();function fNn(e,t){var n=Ice(e);pYe(t,function(r,a){for(var o=n.length-1;o>=0;o--){var i=n[o];if(i[a])break}if(o<0){var s=e.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();n[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),n.push(t)}function dNn(e){var t=Ice(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return pYe(n,function(a,o){for(var i=t.length-1;i>=0;i--)if(a=t[i][o],a){r[o]=a;break}}),r}function hNn(e){AYe(e).snapshots=null}function pNn(e){return Ice(e).length}function Ice(e){var t=AYe(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots
`:"<br/>",v=f.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(n,u)?this._updatePosition(s,h,i[0],i[1],this._tooltipContent,u):this._showTooltipContent(s,v,u,Math.random()+"",i[0],i[1],h,null,d)})},t.prototype._showSeriesItemTooltip=function(n,r,a){var o=this._ecModel,i=Dn(r),s=i.seriesIndex,l=o.getSeriesByIndex(s),u=i.dataModel||l,c=i.dataIndex,f=i.dataType,d=u.getData(f),h=this._renderMode,A=n.positionDefault,p=Z9([d.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,A?{position:A}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var v=u.getDataParams(c,f),m=new CK;v.marker=m.makeTooltipMarker("item",h3(v.color),h);var y=J7e(u.formatTooltip(c,!1,f)),b=p.get("order"),_=p.get("valueFormatter"),C=y.frag,S=C?rbe(_?At({valueFormatter:_},C):C,m,h,b,o.get("useUTC"),p.get("textStyle")):y.text,B="item_"+u.name+"_"+c;this._showOrMove(p,function(){this._showTooltipContent(p,S,v,B,n.offsetX,n.offsetY,n.position,n.target,m)}),a({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(n,r,a){var o=this._renderMode==="html",i=Dn(r),s=i.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(Ut(l)){var c=l;l={content:c,formatter:c},u=!0}u&&o&&l.content&&(l=Sn(l),l.content=Is(l.content));var f=[l],d=this._ecModel.getComponent(i.componentMainType,i.componentIndex);d&&f.push(d),f.push({formatter:l.content});var h=n.positionDefault,A=Z9(f,this._tooltipModel,h?{position:h}:null),p=A.get("content"),g=Math.random()+"",v=new CK;this._showOrMove(A,function(){var m=Sn(A.get("formatterParams")||{});this._showTooltipContent(A,p,m,g,n.offsetX,n.offsetY,n.position,r,v)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(n,r,a,o,i,s,l,u,c){if(this._ticket="",!(!n.get("showContent")||!n.get("show"))){var f=this._tooltipContent;f.setEnterable(n.get("enterable"));var d=n.get("formatter");l=l||n.get("position");var h=r,A=this._getNearestPoint([i,s],a,n.get("trigger"),n.get("borderColor")),p=A.color;if(d)if(Ut(d)){var g=n.ecModel.get("useUTC"),v=_t(a)?a[0]:a,m=v&&v.axisType&&v.axisType.indexOf("time")>=0;h=d,m&&(h=KR(v.axisValue,h,g)),h=QKe(h,a,!0)}else if(An(d)){var y=Gt(function(b,_){b===this._ticket&&(f.setContent(_,c,n,p,l),this._updatePosition(n,l,i,s,f,a,u))},this);this._ticket=o,h=d(a,o,y)}else h=d;f.setContent(h,c,n,p,l),f.show(n,p),this._updatePosition(n,l,i,s,f,a,u)}},t.prototype._getNearestPoint=function(n,r,a,o){if(a==="axis"||_t(r))return{color:o||(this._renderMode==="html"?"#fff":"none")};if(!_t(r))return{color:o||r.color||r.borderColor}},t.prototype._updatePosition=function(n,r,a,o,i,s,l){var u=this._api.getWidth(),c=this._api.getHeight();r=r||n.get("position");var f=i.getSize(),d=n.get("align"),h=n.get("verticalAlign"),A=l&&l.getBoundingRect().clone();if(l&&A.applyTransform(l.transform),An(r)&&(r=r([a,o],s,i.el,A,{viewSize:[u,c],contentSize:f.slice()})),_t(r))a=Rt(r[0],u),o=Rt(r[1],c);else if(yn(r)){var p=r;p.width=f[0],p.height=f[1];var g=li(p,{width:u,height:c});a=g.x,o=g.y,d=null,h=null}else if(Ut(r)&&l){var v=WNn(r,A,f,n.get("borderWidth"));a=v[0],o=v[1]}else{var v=KNn(a,o,i,u,c,d?null:20,h?null:20);a=v[0],o=v[1]}if(d&&(a-=pSe(d)?f[0]/2:d==="right"?f[0]:0),h&&(o-=pSe(h)?f[1]/2:h==="bottom"?f[1]:0),vYe(n)){var v=GNn(a,o,i,u,c);a=v[0],o=v[1]}i.moveTo(a,o)},t.prototype._updateContentNotChangedOnAxis=function(n,r){var a=this._lastDataByCoordSys,o=this._cbParamsList,i=!!a&&a.length===n.length;return i&&Ae(a,function(s,l){var u=s.dataByAxis||[],c=n[l]||{},f=c.dataByAxis||[];i=i&&u.length===f.length,i&&Ae(u,function(d,h){var A=f[h]||{},p=d.seriesDataIndices||[],g=A.seriesDataIndices||[];i=i&&d.value===A.value&&d.axisType===A.axisType&&d.axisId===A.axisId&&p.length===g.length,i&&Ae(p,function(v,m){var y=g[m];i=i&&v.seriesIndex===y.seriesIndex&&v.dataIndex===y.dataIndex}),o&&Ae(d.seriesDataIndices,function(v){var m=v.seriesIndex,y=r[m],b=o[m];y&&b&&b.data!==y.data&&(i=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=r,!!i},t.prototype._hide=function(n){this._lastDataByCoordSys=null,
`)){var g=new QT;g.newline=!0,u.add(g);return}var v=a.getSeriesByName(p)[0];if(!c.get(p))if(v){var m=v.getData(),y=m.getVisual("legendLineStyle")||{},b=m.getVisual("legendIcon"),_=m.getVisual("style"),C=this._createItem(v,p,A,h,r,n,y,_,b,f,o);C.on("click",sg(LSe,p,null,o,d)).on("mouseover",sg(Gee,v.name,null,o,d)).on("mouseout",sg(Wee,v.name,null,o,d)),a.ssr&&C.eachChild(function(S){var B=Dn(S);B.seriesIndex=v.seriesIndex,B.dataIndex=A,B.ssrType="legend"}),c.set(p,!0)}else a.eachRawSeries(function(S){if(!c.get(p)&&S.legendVisualProvider){var B=S.legendVisualProvider;if(!B.containName(p))return;var x=B.indexOfName(p),E=B.getItemVisual(x,"style"),k=B.getItemVisual(x,"legendIcon"),D=bu(E.fill);D&&D[3]===0&&(D[3]=.2,E=At(At({},E),{fill:Jd(D,"rgba")}));var F=this._createItem(S,p,A,h,r,n,{},E,k,f,o);F.on("click",sg(LSe,null,p,o,d)).on("mouseover",sg(Gee,null,p,o,d)).on("mouseout",sg(Wee,null,p,o,d)),a.ssr&&F.eachChild(function(I){var P=Dn(I);P.seriesIndex=S.seriesIndex,P.dataIndex=A,P.ssrType="legend"}),c.set(p,!0)}},this)},this),i&&this._createSelector(i,r,o,s,l)},t.prototype._createSelector=function(n,r,a,o,i){var s=this.getSelectorGroup();Kee(n,function(u){var c=u.type,f=new Er({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect",legendId:r.id})}});s.add(f);var d=r.getModel("selectorLabel"),h=r.getModel(["emphasis","selectorLabel"]);hs(f,{normal:d,emphasis:h},{defaultText:u.title}),T4(f)})},t.prototype._createItem=function(n,r,a,o,i,s,l,u,c,f,d){var h=n.visualDrawType,A=i.get("itemWidth"),p=i.get("itemHeight"),g=i.isSelected(r),v=o.get("symbolRotate"),m=o.get("symbolKeepAspect"),y=o.get("icon");c=y||c||"roundRect";var b=cUn(c,o,l,u,h,g,d),_=new QT,C=o.getModel("textStyle");if(An(n.getLegendIcon)&&(!y||y==="inherit"))_.add(n.getLegendIcon({itemWidth:A,itemHeight:p,icon:c,iconRotate:v,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:m}));else{var S=y==="inherit"&&n.getData().getVisual("symbol")?v==="inherit"?n.getData().getVisual("symbolRotate"):v:0;_.add(fUn({itemWidth:A,itemHeight:p,icon:c,iconRotate:S,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:m}))}var B=s==="left"?A+5:-5,x=s,E=i.get("formatter"),k=r;Ut(E)&&E?k=E.replace("{name}",r??""):An(E)&&(k=E(r));var D=g?C.getTextColor():o.get("inactiveColor");_.add(new Er({style:ya(C,{text:k,x:B,y:p/2,fill:D,align:x,verticalAlign:"middle"},{inheritColor:D})}));var F=new br({shape:_.getBoundingRect(),style:{fill:"transparent"}}),I=o.getModel("tooltip");return I.get("show")&&z3({el:F,componentModel:i,itemName:r,itemTooltipOption:I.option}),_.add(F),_.eachChild(function(P){P.silent=!0}),F.silent=!f,this.getContentGroup().add(_),T4(_),_.__legendDataIndex=a,_},t.prototype.layoutInner=function(n,r,a,o,i,s){var l=this.getContentGroup(),u=this.getSelectorGroup();D4(n.get("orient"),l,n.get("itemGap"),a.width,a.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),i){D4("horizontal",u,n.get("selectorItemGap",!0));var d=u.getBoundingRect(),h=[-d.x,-d.y],A=n.get("selectorButtonGap",!0),p=n.getOrient().index,g=p===0?"width":"height",v=p===0?"height":"width",m=p===0?"y":"x";s==="end"?h[p]+=c[g]+A:f[p]+=d[g]+A,h[1-p]+=c[v]/2-d[v]/2,u.x=h[0],u.y=h[1],l.x=f[0],l.y=f[1];var y={x:0,y:0};return y[g]=c[g]+A+d[g],y[v]=Math.max(c[v],d[v]),y[m]=Math.min(0,d[m]+h[1-p]),y}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(oo);function cUn(e,t,n,r,a,o,i){function s(g,v){g.lineWidth==="auto"&&(g.lineWidth=v.lineWidth>0?2:0),Kee(g,function(m,y){g[y]==="inherit"&&(g[y]=v[y])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=e.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?r.decal:Om(f,i),u.fill==="inherit"&&(u.fill=r[a]),u.stroke==="inherit"&&(u.stroke=r[c]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?r:n).opacity),s(u,r);var d=t.getModel("lineStyle"),h=d.getLineStyle();if(s(h,n),u.fill==="au
`||a==="")){var o=e.isSelected(a);Jt(n,a)?n[a]=n[a]&&o:n[a]=o}}),n}function hUn(e){e.registerAction("legendToggleSelect","legendselectchanged",Ln(e7,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Ln(e7,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Ln(e7,"inverseSelect")),e.registerAction("legendSelect","legendselected",Ln(e7,"select")),e.registerAction("legendUnSelect","legendunselected",Ln(e7,"unSelect"))}function TYe(e){e.registerComponentModel(jee),e.registerComponentView(xYe),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,dUn),e.registerSubTypeDefaulter("legend",function(){return"plain"}),hUn(e)}var pUn=function(e){et(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.setScrollDataIndex=function(n){this.option.scrollDataIndex=n},t.prototype.init=function(n,r,a){var o=F5(n);e.prototype.init.call(this,n,r,a),FSe(this,n,o)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.call(this,n,r),FSe(this,this.option,n)},t.type="legend.scroll",t.defaultOption=eA(jee.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(jee);function FSe(e,t,n){var r=e.getOrient(),a=[1,1];a[r.index]=0,xp(t,n,{type:"box",ignoreSize:!!a})}const AUn=pUn;var PSe=kn,KG=["width","height"],GG=["x","y"],vUn=function(e){et(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new PSe),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new PSe)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(n,r,a,o,i,s,l){var u=this;e.prototype.renderInner.call(this,n,r,a,o,i,s,l);var c=this._controllerGroup,f=r.get("pageIconSize",!0),d=_t(f)?f:[f,f];A("pagePrev",0);var h=r.getModel("pageTextStyle");c.add(new Er({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),A("pageNext",1);function A(p,g){var v=p+"DataIndex",m=$S(r.get("pageIcons",!0)[r.getOrient().name][g],{onclick:Gt(u._pageGo,u,v,r,o)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});m.name=p,c.add(m)}},t.prototype.layoutInner=function(n,r,a,o,i,s){var l=this.getSelectorGroup(),u=n.getOrient().index,c=KG[u],f=GG[u],d=KG[1-u],h=GG[1-u];i&&D4("horizontal",l,n.get("selectorItemGap",!0));var A=n.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],v=Sn(a);i&&(v[c]=a[c]-p[c]-A);var m=this._layoutContentAndController(n,o,v,u,c,d,h,f);if(i){if(s==="end")g[u]+=m[c]+A;else{var y=p[c]+A;g[u]-=y,m[f]-=y}m[c]+=p[c]+A,g[1-u]+=m[h]+m[d]/2-p[d]/2,m[d]=Math.max(m[d],p[d]),m[h]=Math.min(m[h],p[h]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},t.prototype._layoutContentAndController=function(n,r,a,o,i,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,d=this._controllerGroup;D4(n.get("orient"),c,n.get("itemGap"),o?a.width:null,o?null:a.height),D4("horizontal",d,n.get("pageButtonItemGap",!0));var h=c.getBoundingRect(),A=d.getBoundingRect(),p=this._showController=h[i]>a[i],g=[-h.x,-h.y];r||(g[o]=c[u]);var v=[0,0],m=[-A.x,-A.y],y=Mn(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(p){var b=n.get("pageButtonPosition",!0);b==="end"?m[o]+=a[i]-A[i]:v[o]+=A[i]+y}m[1-o]+=h[s]/2-A[s]/2,c.setPosition(g),f.setPosition(v),d.setPosition(m);var _={x:0,y:0};if(_[i]=p?a[i]:h[i],_[s]=Math.max(h[s],A[s]),_[l]=Math.min(0,A[l]+m[1-o]),f.__rectSize=a[i],p){var C={x:0,y:0};C[i]=Math.max(a[i]-A[i]-y,0),C[s]=_[s],f.setClipPath(new br({shape:C})),f.
${d.item.label}"`)});const l="导入模板.csv",u=s.join(","),c=new Blob([u],{type:"text/csv;charset=utf-8;"}),f=document.createElement("a");if(f.download!==void 0){const d=URL.createObjectURL(c);f.setAttribute("href",d),f.setAttribute("download",l),f.style.visibility="hidden",document.body.appendChild(f),f.click(),document.body.removeChild(f)}}return(s,l)=>{const u=ul,c=PC,f=UC;return T(),ae(w(ku),{"model-value":!0,style:{height:"60%",width:"60%"},onClose:t.closeFunc},{default:X(()=>[fGn,j("div",dGn,[q(c,{modelValue:w(r),"onUpdate:modelValue":l[0]||(l[0]=d=>Dt(r)?r.value=d:null)},{default:X(()=>[(T(!0),z(Ke,null,gt(t.fields,d=>(T(),z(Ke,null,[d.item&&d.name!=="id"?(T(),ae(u,{key:d.name,value:d.name},{default:X(()=>[qe(Ee(d.item.label),1)]),_:2},1032,["value"])):ve("",!0)],64))),256))]),_:1},8,["modelValue"])]),j("div",{style:{width:"80%",margin:"20px"}},[qe(" * 请下载"),j("a",{onClick:i}," 导入模板"),qe("不要修改模板的首行标题行 ")]),q(f,{class:"el-button el-button--default",data:w(a),accept:".csv,.xls,.xlsx,.XLS,.XLSX","on-error":o,"on-success":s.commitFunc,action:n,limit:1},{default:X(()=>[hGn]),_:1},8,["data","on-success"])]),_:1},8,["onClose"])}}});const AGn={key:0,class:"group group-btn"},vGn={class:"operateButArea"},gGn={class:"operatLeft"},mGn={class:"demo-image__error"},yGn={class:"image-slot"},bGn={class:"pageBox"},wGn={key:0},_Gn={key:0,style:{"max-width":"600px","min-height":"50px","max-height":"750px","overflow-y":"auto"}},CGn=["id"],SGn={colspan:"2"},BGn={rowspan:"6",style:{width:"240px"}},EGn=["src"],xGn={key:1,style:{display:"flex","flex-direction":"column","align-items":"center","min-height":"50px","max-height":"750px","overflow-y":"auto"}},TGn=["id"],kGn={style:{"font-weight":"bold","font-size":"medium"},colspan:"1"},DGn=["src"],IGn={class:"dialog-footer"},MGn=Z({__name:"index",props:{data:{default:()=>({columns:[],controlBtn:[],operateBtn:[],config:{}})},searchData:{default:()=>[]},config:{default:()=>({})},formId:{default:()=>""},beforeRequest:{},afterResponse:{},beforeDelete:{},showPage:{type:Boolean,default:!0},requestUrl:{},deleteUrl:{},dict:{default:()=>({})},fixedBottomScroll:{type:Boolean,default:!0},query:{default:()=>({})},autoLoad:{type:Boolean,default:!0},delKey:{default:"id"},lookPageIsShow:{type:Boolean,default:()=>!1},versionid:{default:()=>""},signCode:{default:()=>""},pickAppMenu:{},versiontitle:{default:()=>""},viewPage:{default:()=>[]},formBasicConfig:{default:()=>({})},fieldsDetailList:{default:()=>({})},orgAndManTree:{default:()=>({})},echatsViews:{}},emits:["selectionChange","btnClick"],setup(e,{emit:t}){var it;const n=e,r=N({get(){return n.echatsViews},set(Oe){}}),a=t;G(!1);const o=G(1),i=G([]),s=JC(),l=B3();KC();const u=G([]),c=G([]),f=G(!1),d=G(null),h=qt({loading:!1,currentPage:1,pageSize:((it=n.config)==null?void 0:it.pageSize)||2,total:0,selectionChecked:[],dict:{},searchFormDown:!1,treeValue:{},tableScrollMargin:0,columnsCheck:s.getColumnsCheck(l.path),currentNodeKey:""}),A=(Oe,Ve)=>{switch(Oe.fieldClass){case"id":return Es.includes(Ve);case"masters_key":return Es.includes(Ve);case"creater":return Es.includes(Ve);case"creater_time":return RL.includes(Ve);case"edit_time":return RL.includes(Ve);case"flow_id":return Es.includes(Ve);case"baidumap":return Es.includes(Ve);case"input":return Es.includes(Ve);case"radio":return gQe.includes(Ve);case"switch":return mQe.includes(Ve);case"orgCentent":return vQe.includes(Ve);case"varchar":return Es.includes(Ve);case"checkbox":return yQe.includes(Ve);case"deptOrg":return bQe.includes(Ve);default:if(Oe.fieldClass!="datePicker"&&Oe.fieldClass!="timePicker")return Es.includes(Ve);break}return!1},p=G(),g=Oe=>{n.searchData&&n.searchData.length>0&&n.searchData.forEach(Ve=>{Ve.value=""})},v=G(!1);let m=qt({});const y=G({});function b(Oe){return ke({url:"/javasys/lowCode/QrCode/getDetailQrCodes",method:"post",data:{cfid:n.formId,idArray:Oe,settings:n.formBasicConfig}})}function _(Oe){let Ve=[];for(const[rt,nt]of Object.entries(Oe)){let mt=nt.split("!@#@!");mt.length===2?Ve.push({key:mt[0],value:mt[1]}):Ve.push({key:rt,va
`),It=new Blob([Qt],{type:"text/csv;charset=utf-8;"}),je=document.createElement("a");if(je.download!==void 0){const Je=URL.createObjectURL(It);je.setAttribute("href",Je),je.setAttribute("download",cn),je.style.visibility="hidden",document.body.appendChild(je),je.click(),document.body.removeChild(je)}}).finally(()=>d.value=null)}d.value=Ot(cGn,{fields:V.value,subFields:W.value.fields,commitFunc:Oe,closeFunc:()=>d.value=null})}async function ee(Oe){const Ve=await Hw(Oe);if(oe=n.data.columns.filter(rt=>rt.fieldClass=="associatedForms"),pe=n.data.columns.filter(rt=>rt.fieldClass=="lowcodeTransfer"),oe.length>0&&Ve.data.list!=null){J=[];for(let nt=0;nt<oe.length;nt++){let mt={};mt.formId=oe[nt].control.formid,mt.field=oe[nt].field;let dt=[];for(let zt=0;zt<Ve.data.list.length;zt++){let cn={};cn.asfId=Ve.data.list[zt][oe[nt].field],cn.asfMasterId=Ve.data.list[zt].id,dt.push(cn)}mt.asfToSelectIds=dt,J.push(mt)}let rt=0;for(let nt=0;nt<J[0].asfToSelectIds.length;nt++)J[0].asfToSelectIds[nt].asfId!=""&&rt++;if(rt>0){let nt=Ve;return await Ce(J).then(({data:mt})=>{for(let dt=0;dt<nt.data.list.length;dt++)for(let zt=0;zt<mt.length;zt++)for(let cn=0;cn<mt[zt].list.length;cn++)nt.data.list[dt].id==mt[zt].list[cn].asfMasterId&&(nt.data.list[dt][mt[zt].field]=mt[zt].list[cn].label);return nt.data})}return Ve.data}return pe.forEach(rt=>{Ve.data.list.forEach(nt=>{for(const mt in nt)if(Object.prototype.hasOwnProperty.call(nt,mt)){const dt=nt[mt];(Array.isArray(dt)||typeof dt=="object"&&dt!==null)&&JSON.stringify(dt,null,2),mt==rt.field&&(nt[mt]=se(rt.control.fixedOptions,nt[mt]))}})}),Ve.data}function se(Oe,Ve){const rt=JSON.parse(Ve),nt={};function mt(dt){nt[dt.id]=dt.label,dt.children.forEach(zt=>mt(zt))}return Oe.forEach(dt=>mt(dt)),rt.map(dt=>nt[dt]||"已删除的节点(id):"+dt)}const ge=(Oe,Ve)=>{let nt={formId:Oe,page:1,pagesize:1,searchData:Fd([{id:"id",label:"Id",field:"id",type:"bigint(20)",attribute:"",pattern:"bigint",fieldClass:"id",activeValue:"",inactiveValue:"",config:{optionsType:0},control:{optionsValue3Formid:"",optionsValue3Field:""},options:[],isSearch:!0,value:Ve}])};Hw(nt).then(mt=>{let dt=mt;if(oe=n.data.columns.filter(zt=>zt.fieldClass=="associatedForms"),oe.length>0){let zt=[];for(let Qt=0;Qt<oe.length;Qt++){let It={};It.formId=oe[Qt].control.formid,It.field=oe[Qt].field;let je=[];for(let Je=0;Je<mt.data.list.length;Je++){let Vt={};Vt.asfId=mt.data.list[Je].id,Vt.asfMasterId=mt.data.list[Je].id,je.push(Vt)}It.asfToSelectIds=je,zt.push(It)}let cn=0;for(let Qt=0;Qt<zt[0].asfToSelectIds.length;Qt++)zt[0].asfToSelectIds[Qt].asfId!=null&&zt[0].asfToSelectIds[Qt].asfId!=""&&cn++;cn>0?Ce(zt).then(({data:Qt})=>{for(let It=0;It<dt.data.list.length;It++)for(let je=0;je<Qt.length;je++)for(let Je=0;Je<Qt[je].list.length;Je++)dt.data.list[It].id==Qt[je].list[Je].asfMasterId&&(dt.data.list[It][Qt[je].field]=Qt[je].list[Je].label);c.value=dt.data.list}):c.value=mt.data.list}else c.value=mt.data.list}).finally(()=>{setTimeout(()=>{var mt;Ge.value=4,Qe.value=(mt=Fe.value)==null?void 0:mt.clientWidth,We.value=!0},500)})};function Ce(Oe){return ke({url:"/javasys/lowCode/AssociatedForms/getAsfDataTitlesByIds",method:"post",data:Oe})}function we(Oe,Ve,rt){let nt=Ve.row,mt=Oe.control.formid,dt=Ve.column.property,zt=nt.id,cn="";for(let Qt=0;Qt<rt.length;Qt++)if(rt[Qt].field==dt)for(let It=0;It<rt[Qt].asfToSelectIds.length;It++)rt[Qt].asfToSelectIds[It].asfMasterId==zt&&(cn=rt[Qt].asfToSelectIds[It].asfId);ge(mt,cn)}Tt(()=>{L(),ht(()=>{var Oe;Qe.value=(Oe=Fe.value)==null?void 0:Oe.clientWidth}),H()});const Y=(Oe,Ve)=>(Ve&&Ve.length>0&&Ve.forEach(rt=>{rt.value==Oe&&(Oe=rt.label)}),(Oe==0||Oe=="0")&&(Oe=""),Oe),ce=(Oe,Ve)=>{if(Oe.length<0)return"";let rt=Nl(Oe);if(console.log("获取级联选择值",Nl(Oe),Oe.length,Ve),!Array.isArray(rt))return"";let nt="";return rt.forEach(mt=>{console.log(mt+"=============:",mt,me(mt,Ve)),nt==""?nt=nt+me(mt,Ve):nt=nt+" / "+me(mt,Ve)}),nt},me=(Oe,Ve)=>{if(!Array.isArray(Ve))return"";let rt="";return Ve.forEach(nt=>{if(nt.value==Oe&&(rt=nt.label),nt.children&&nt.children.length>0){let mt=me(Oe,nt.childr
"Helvetica Neue", ".SFNSText-Regular",
"SF UI Text", Arial, "PingFang SC", "Hiragino Sans GB",
"Microsoft YaHei", "WenQuanYi Zen Hei", sans-serif`,A.lineWidth=1,A.textBaseline="middle")}},f=h=>{const A={scale:n.scale,width:n.width,height:n.height,palette:n.palette,canvasWidth:n.canvasWidth,canvasHeight:n.canvasHeight,ratio:h,rate:n.rate,gridRatio:n.gridRatio,showShadowText:n.showShadowText};A.scale=n.scale/n.rate,A.canvasWidth=n.canvasWidth*n.rate,A.canvasHeight=n.canvasHeight*n.rate,a.canvasContext&&XGn(a.canvasContext,n.start*n.rate,n.selectStart,n.selectLength,A,!n.vertical)};Pe([()=>n.width,()=>n.height,()=>n.start,()=>n.palette,()=>n.selectStart,()=>n.selectLength],()=>{f(o)}),Pe([()=>n.width,()=>n.height],()=>{c(o)});const d=h=>{r("handleDragStart",h)};return(h,A)=>(T(),z("canvas",{ref_key:"canvas",ref:i,class:"ruler",style:ut(u.value),onMousedown:Mt(d,["stop"])},null,36))}}),ZGn={class:"lines"},$Gn={key:0,class:"value"},gBe=Z({__name:"ruler-wrapper",props:{scale:{},thick:{},canvasWidth:{},canvasHeight:{},palette:{},vertical:{type:Boolean},width:{},height:{},start:{},startOther:{},lines:{},selectStart:{},selectLength:{},isShowReferLine:{type:Boolean},rate:{},snapThreshold:{},snapsObj:{},gridRatio:{},lockLine:{type:Boolean},showShadowText:{type:Boolean}},emits:["changeLineState"],setup(e,{emit:t}){const n=e,{showLabel:r,actionStyle:a,handleMouseenter:o,handleMouseLeave:i,handleMouseDown:s,labelContent:l,startValue:u}=ZYe(n,!n.vertical),c=G(!1),f=G(!1),d=N(()=>n.vertical?"v-container":"h-container"),h=t,A=N(()=>{var v,m;return n.vertical?(v=n.lines)==null?void 0:v.h:(m=n.lines)==null?void 0:m.v}),p=N(()=>{const v=n.palette.lineType;let m=n.vertical?"left":"top",y=n.vertical?"top":"left",b=n.vertical?"borderLeft":"borderBottom";const _=(u.value-n.startOther)*n.scale+n.thick;return{[m]:_+"px",[y]:-n.thick+"px",cursor:n.vertical?"ew-resize":"ns-resize",[b]:`1px ${v} ${n.palette.lineColor}`}}),g=async v=>{const{offsetX:m,offsetY:y}=v,{scale:b,vertical:_,thick:C,startOther:S}=n;f.value=!0,c.value=!1,h("changeLineState",!1);let B=Math.round(S-C/b+(_?m:y)/b);u.value=B,await s(v,B),f.value=!1};return Pe([()=>n.lockLine],()=>{c.value=n.lockLine}),(v,m)=>(T(),z("div",{class:re(d.value)},[q(JGn,Bt(v.$props,{onHandleDragStart:g}),null,16),xt(j("div",ZGn,[(T(!0),z(Ke,null,gt(A.value,(y,b)=>(T(),ae(YGn,Bt({key:y+b,index:b,value:y>>0,ref_for:!0},v.$props),null,16,["index","value"]))),128))],512),[[On,v.isShowReferLine]]),v.isShowReferLine?xt((T(),z("div",{key:0,class:"indicator",style:ut(p.value),onMouseenter:m[0]||(m[0]=(...y)=>w(o)&&w(o)(...y)),onMouseleave:m[1]||(m[1]=(...y)=>w(i)&&w(i)(...y))},[j("div",{class:"action",style:ut(w(a))},[w(r)?(T(),z("span",$Gn,Ee(w(l)),1)):ve("",!0)],4)],36)),[[On,f.value]]):ve("",!0)],2))}}),eWn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAYAAACpF6WWAAAAAXNSR0IArs4c6QAAAopJREFUOE/FlE9IVEEcx7+/N9ouds1Mu0QUSFZYdIgoUqQoKPBQHsKozpXE7jbTO/U8xLJvn6usBHWQ6hBFXupSkQeVbh0KJEPp0sH+eLGTsKs77xcj78m0ax0E8cHjzZv5zef3/c33xxA24KENYGJzoEEQbNNaN4Zh2OQ4znwYhr9c1/39vwrXVDo0NNS0tLR0GYB5D64BmAMwzMyvlFKz1es10Hw+f4mZ7wHYBeA9gNdENFepVOaEEM3M3OI4Thczn41gt6WUgQ3+C+r7/h0AWQD3mXnYqPA8L9nQ0HCemduIaFpKOWoAhUJhT6VSuQXgOjP3K6W8GLwKzeVyp4jonR0QBEErM48w8zFLyayUsjX+z+VyHhHdZebTSqkxM78CHRgYOKS1/ghgVErZY214RkQ7ADyRUj72ff8qgCtmXUrZGcf5vv8CwEUhxOF0Ov1pBRpla5dSdseBhUJhpznH6tIsZb1KqacW+BGArUaUXX63UuplHJTNZjuEEONSyhozfd/n6mQ1RkXZL2itz7mu+80EDA4ONi8vL/8AcM2UbikyR2BU9cSmmTU70YqKIAj2hWFo2uenlHK/BRg3Y2aeNO5GyU8S0ZbFxcUuz/NKEXAGQKPjOCcymcyX1dIi8DSAiWQyeaavr68cbSgCuBknYubnQoj+TCYzUywWE6VS6S2ADsdx2gxw1X3L7SNENMbMnwE8qK+vf5NKpRaMaeVyeW8ikfiaSqW+R7BuZr5BRMe11p2u607U9Gk8kc/ntzPzQwCmExYATDLzVBiGE0KIowAOADDf3QA+aK2VDaxRajto3K+rq+tl5nYAzQBamHmeiOYBTGmtR6ph/1Rqg9c73pz7dD1qN0TpHyNQRCUDJXrAAAAAAElFTkSuQmCC",tWn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAYAAACpF6WWAAAAAXNSR0IArs4c6QAAAjtJREFUOE/NlD9oFEEUxn9v9ghC0hpRUogIAUmniGAT/5Q2FrETPSNRJILg7RwimI0ox85eQFCEBGIUO1PYpFM0jSConQoBEZGgGPsgl+w+2eM2bC57SopAFqYZ3v7m+977ZoQt+GQLmGxPaBiGgYiMWWvXBHZUGoZhH3BERPYC+4F+4Keq/urt7b1RLpf/ZEBVHa9Wq0HWyg3QKIoGVPU8cA7wgK/pUtXPQJ8xZk+pVBpuNBqXUoUiEvi+P56fzTpo6+SbwHNg1lo7WzTITGEKXFlZeeB53tVCpa3CK8AFa+1cBgvD8LKIXAQOJkkyICJDeYVB