(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerpolicy&&(a.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?a.credentials="include":i.crossorigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();/** * @vue/shared v3.4.33 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **//*! #__NO_SIDE_EFFECTS__ */function ho(e,t){const n=new Set(e.split(","));return t?r=>n.has(r.toLowerCase()):r=>n.has(r)}const ut={},zo=[],un=()=>{},gO=()=>!1,Us=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),op=e=>e.startsWith("onUpdate:"),bt=Object.assign,ap=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},yO=Object.prototype.hasOwnProperty,tt=(e,t)=>yO.call(e,t),Oe=Array.isArray,Wo=e=>wa(e)==="[object Map]",po=e=>wa(e)==="[object Set]",nm=e=>wa(e)==="[object Date]",bO=e=>wa(e)==="[object RegExp]",je=e=>typeof e=="function",ct=e=>typeof e=="string",Er=e=>typeof e=="symbol",ft=e=>e!==null&&typeof e=="object",sp=e=>(ft(e)||je(e))&&je(e.then)&&je(e.catch),yb=Object.prototype.toString,wa=e=>yb.call(e),_O=e=>wa(e).slice(8,-1),bb=e=>wa(e)==="[object Object]",lp=e=>ct(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Go=ho(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Qu=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},wO=/-(\w)/g,cn=Qu(e=>e.replace(wO,(t,n)=>n?n.toUpperCase():"")),EO=/\B([A-Z])/g,an=Qu(e=>e.replace(EO,"-$1").toLowerCase()),ec=Qu(e=>e.charAt(0).toUpperCase()+e.slice(1)),tu=Qu(e=>e?`on${ec(e)}`:""),rr=(e,t)=>!Object.is(e,t),Ko=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},mu=e=>{const t=parseFloat(e);return isNaN(t)?e:t},gu=e=>{const t=ct(e)?Number(e):NaN;return isNaN(t)?e:t};let rm;const up=()=>rm||(rm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),xO="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error",SO=ho(xO);function it(e){if(Oe(e)){const t={};for(let n=0;n{if(n){const r=n.split(CO);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function PO(e){let t="";if(!e||ct(e))return t;for(const n in e){const r=e[n];if(ct(r)||typeof r=="number"){const i=n.startsWith("--")?n:an(n);t+=`${i}:${r};`}}return t}function $e(e){let t="";if(ct(e))t=e;else if(Oe(e))for(let n=0;nTi(n,t))}const Eb=e=>!!(e&&e.__v_isRef===!0),Re=e=>ct(e)?e:e==null?"":Oe(e)||ft(e)&&(e.toString===yb||!je(e.toString))?Eb(e)?Re(e.value):JSON.stringify(e,xb,2):String(e),xb=(e,t)=>Eb(t)?xb(e,t.value):Wo(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],a)=>(n[Rf(r,a)+" =>"]=i,n),{})}:po(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Rf(n))}:Er(t)?Rf(t):ft(t)&&!Oe(t)&&!bb(t)?String(t):t,Rf=(e,t="")=>{var n;return Er(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** * @vue/reactivity v3.4.33 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let Cn;class Sb{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Cn,!t&&Cn&&(this.index=(Cn.scopes||(Cn.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Cn;try{return Cn=this,t()}finally{Cn=n}}}on(){Cn=this}off(){Cn=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),ei()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Oi,n=Zi;try{return Oi=!0,Zi=this,this._runnings++,om(this),this.fn()}finally{am(this),this._runnings--,Zi=n,Oi=t}}stop(){this.active&&(om(this),am(this),this.onStop&&this.onStop(),this.active=!1)}}function FO(e){return e.value}function om(e){e._trackId++,e._depsLength=0}function am(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{n.dirty&&n.run()});t&&(bt(n,t),t.scope&&Ob(n,t.scope)),(!t||!t.lazy)&&n.run();const r=n.run.bind(n);return r.effect=n,r}function uU(e){e.effect.stop()}let Oi=!0,Ud=0;const Tb=[];function Qr(){Tb.push(Oi),Oi=!1}function ei(){const e=Tb.pop();Oi=e===void 0?!0:e}function fp(){Ud++}function dp(){for(Ud--;!Ud&&Vd.length;)Vd.shift()()}function Ab(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const r=e.deps[e._depsLength];r!==t?(r&&Cb(r,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Vd=[];function Pb(e,t,n){fp();for(const r of e.keys()){let i;r._dirtyLevel{const n=new Map;return n.cleanup=e,n.computed=t,n},yu=new WeakMap,Ji=Symbol(""),zd=Symbol("");function bn(e,t,n){if(Oi&&Zi){let r=yu.get(e);r||yu.set(e,r=new Map);let i=r.get(n);i||r.set(n,i=kb(()=>r.delete(n))),Ab(Zi,i)}}function Wr(e,t,n,r,i,a){const s=yu.get(e);if(!s)return;let l=[];if(t==="clear")l=[...s.values()];else if(n==="length"&&Oe(e)){const u=Number(r);s.forEach((f,p)=>{(p==="length"||!Er(p)&&p>=u)&&l.push(f)})}else switch(n!==void 0&&l.push(s.get(n)),t){case"add":Oe(e)?lp(n)&&l.push(s.get("length")):(l.push(s.get(Ji)),Wo(e)&&l.push(s.get(zd)));break;case"delete":Oe(e)||(l.push(s.get(Ji)),Wo(e)&&l.push(s.get(zd)));break;case"set":Wo(e)&&l.push(s.get(Ji));break}fp();for(const u of l)u&&Pb(u,4);dp()}function jO(e,t){const n=yu.get(e);return n&&n.get(t)}const DO=ho("__proto__,__v_isRef,__isVue"),Ib=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Er)),sm=BO();function BO(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=qe(this);for(let a=0,s=this.length;a{e[t]=function(...n){Qr(),fp();const r=qe(this)[t].apply(this,n);return dp(),ei(),r}}),e}function qO(e){Er(e)||(e=String(e));const t=qe(this);return bn(t,"has",e),t.hasOwnProperty(e)}class Nb{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){const i=this._isReadonly,a=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return a;if(n==="__v_raw")return r===(i?a?jb:Fb:a?Lb:Mb).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const s=Oe(t);if(!i){if(s&&tt(sm,n))return Reflect.get(sm,n,r);if(n==="hasOwnProperty")return qO}const l=Reflect.get(t,n,r);return(Er(n)?Ib.has(n):DO(n))||(i||bn(t,"get",n),a)?l:kt(l)?s&&lp(n)?l:l.value:ft(l)?i?Db(l):yt(l):l}}class Rb extends Nb{constructor(t=!1){super(!1,t)}set(t,n,r,i){let a=t[n];if(!this._isShallow){const u=no(a);if(!sa(r)&&!no(r)&&(a=qe(a),r=qe(r)),!Oe(t)&&kt(a)&&!kt(r))return u?!1:(a.value=r,!0)}const s=Oe(t)&&lp(n)?Number(n)e,nc=e=>Reflect.getPrototypeOf(e);function El(e,t,n=!1,r=!1){e=e.__v_raw;const i=qe(e),a=qe(t);n||(rr(t,a)&&bn(i,"get",t),bn(i,"get",a));const{has:s}=nc(i),l=r?hp:n?vp:ws;if(s.call(i,t))return l(e.get(t));if(s.call(i,a))return l(e.get(a));e!==i&&e.get(t)}function xl(e,t=!1){const n=this.__v_raw,r=qe(n),i=qe(e);return t||(rr(e,i)&&bn(r,"has",e),bn(r,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function Sl(e,t=!1){return e=e.__v_raw,!t&&bn(qe(e),"iterate",Ji),Reflect.get(e,"size",e)}function lm(e,t=!1){!t&&!sa(e)&&!no(e)&&(e=qe(e));const n=qe(this);return nc(n).has.call(n,e)||(n.add(e),Wr(n,"add",e,e)),this}function um(e,t,n=!1){!n&&!sa(t)&&!no(t)&&(t=qe(t));const r=qe(this),{has:i,get:a}=nc(r);let s=i.call(r,e);s||(e=qe(e),s=i.call(r,e));const l=a.call(r,e);return r.set(e,t),s?rr(t,l)&&Wr(r,"set",e,t):Wr(r,"add",e,t),this}function cm(e){const t=qe(this),{has:n,get:r}=nc(t);let i=n.call(t,e);i||(e=qe(e),i=n.call(t,e)),r&&r.call(t,e);const a=t.delete(e);return i&&Wr(t,"delete",e,void 0),a}function fm(){const e=qe(this),t=e.size!==0,n=e.clear();return t&&Wr(e,"clear",void 0,void 0),n}function Ol(e,t){return function(r,i){const a=this,s=a.__v_raw,l=qe(s),u=t?hp:e?vp:ws;return!e&&bn(l,"iterate",Ji),s.forEach((f,p)=>r.call(i,u(f),u(p),a))}}function Cl(e,t,n){return function(...r){const i=this.__v_raw,a=qe(i),s=Wo(a),l=e==="entries"||e===Symbol.iterator&&s,u=e==="keys"&&s,f=i[e](...r),p=n?hp:t?vp:ws;return!t&&bn(a,"iterate",u?zd:Ji),{next(){const{value:c,done:d}=f.next();return d?{value:c,done:d}:{value:l?[p(c[0]),p(c[1])]:p(c),done:d}},[Symbol.iterator](){return this}}}}function fi(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function WO(){const e={get(a){return El(this,a)},get size(){return Sl(this)},has:xl,add:lm,set:um,delete:cm,clear:fm,forEach:Ol(!1,!1)},t={get(a){return El(this,a,!1,!0)},get size(){return Sl(this)},has:xl,add(a){return lm.call(this,a,!0)},set(a,s){return um.call(this,a,s,!0)},delete:cm,clear:fm,forEach:Ol(!1,!0)},n={get(a){return El(this,a,!0)},get size(){return Sl(this,!0)},has(a){return xl.call(this,a,!0)},add:fi("add"),set:fi("set"),delete:fi("delete"),clear:fi("clear"),forEach:Ol(!0,!1)},r={get(a){return El(this,a,!0,!0)},get size(){return Sl(this,!0)},has(a){return xl.call(this,a,!0)},add:fi("add"),set:fi("set"),delete:fi("delete"),clear:fi("clear"),forEach:Ol(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(a=>{e[a]=Cl(a,!1,!1),n[a]=Cl(a,!0,!1),t[a]=Cl(a,!1,!0),r[a]=Cl(a,!0,!0)}),[e,n,t,r]}const[GO,KO,YO,XO]=WO();function rc(e,t){const n=t?e?XO:YO:e?KO:GO;return(r,i,a)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(tt(n,i)&&i in r?n:r,i,a)}const ZO={get:rc(!1,!1)},JO={get:rc(!1,!0)},QO={get:rc(!0,!1)},eC={get:rc(!0,!0)},Mb=new WeakMap,Lb=new WeakMap,Fb=new WeakMap,jb=new WeakMap;function tC(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function nC(e){return e.__v_skip||!Object.isExtensible(e)?0:tC(_O(e))}function yt(e){return no(e)?e:ic(e,!1,HO,ZO,Mb)}function pp(e){return ic(e,!1,VO,JO,Lb)}function Db(e){return ic(e,!0,UO,QO,Fb)}function cU(e){return ic(e,!0,zO,eC,jb)}function ic(e,t,n,r,i){if(!ft(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=i.get(e);if(a)return a;const s=nC(e);if(s===0)return e;const l=new Proxy(e,s===2?r:n);return i.set(e,l),l}function Yo(e){return no(e)?Yo(e.__v_raw):!!(e&&e.__v_isReactive)}function no(e){return!!(e&&e.__v_isReadonly)}function sa(e){return!!(e&&e.__v_isShallow)}function Bb(e){return e?!!e.__v_raw:!1}function qe(e){const t=e&&e.__v_raw;return t?qe(t):e}function rC(e){return Object.isExtensible(e)&&_b(e,"__v_skip",!0),e}const ws=e=>ft(e)?yt(e):e,vp=e=>ft(e)?Db(e):e;class qb{constructor(t,n,r,i){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new _s(()=>t(this._value),()=>Xo(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=r}get value(){const t=qe(this);return(!t._cacheable||t.effect.dirty)&&rr(t._value,t._value=t.effect.run())&&Xo(t,4),mp(t),t.effect._dirtyLevel>=2&&Xo(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function iC(e,t,n=!1){let r,i;const a=je(e);return a?(r=e,i=un):(r=e.get,i=e.set),new qb(r,i,a||!i,n)}function mp(e){var t;Oi&&Zi&&(e=qe(e),Ab(Zi,(t=e.dep)!=null?t:e.dep=kb(()=>e.dep=void 0,e instanceof qb?e:void 0)))}function Xo(e,t=4,n,r){e=qe(e);const i=e.dep;i&&Pb(i,t)}function kt(e){return!!(e&&e.__v_isRef===!0)}function ae(e){return Hb(e,!1)}function gp(e){return Hb(e,!0)}function Hb(e,t){return kt(e)?e:new oC(e,t)}class oC{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:qe(t),this._value=n?t:ws(t)}get value(){return mp(this),this._value}set value(t){const n=this.__v_isShallow||sa(t)||no(t);t=n?t:qe(t),rr(t,this._rawValue)&&(this._rawValue,this._rawValue=t,this._value=n?t:ws(t),Xo(this,4))}}function fU(e){Xo(e,4)}function xe(e){return kt(e)?e.value:e}function dU(e){return je(e)?e():xe(e)}const aC={get:(e,t,n)=>xe(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return kt(i)&&!kt(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Ub(e){return Yo(e)?e:new Proxy(e,aC)}class sC{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>mp(this),()=>Xo(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function lC(e){return new sC(e)}function hU(e){const t=Oe(e)?new Array(e.length):{};for(const n in e)t[n]=Vb(e,n);return t}class uC{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return jO(qe(this._object),this._key)}}class cC{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function pU(e,t,n){return kt(e)?e:je(e)?new cC(e):ft(e)&&arguments.length>1?Vb(e,t,n):ae(e)}function Vb(e,t,n){const r=e[t];return kt(r)?r:new uC(e,t,n)}const vU={GET:"get",HAS:"has",ITERATE:"iterate"},mU={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"};/** * @vue/runtime-core v3.4.33 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/const os=[];let $f=!1;function vi(e,...t){if($f)return;$f=!0,Qr();const n=os.length?os[os.length-1].component:null,r=n&&n.appContext.config.warnHandler,i=fC();if(r)Gr(r,n,11,[e+t.map(a=>{var s,l;return(l=(s=a.toString)==null?void 0:s.call(a))!=null?l:JSON.stringify(a)}).join(""),n&&n.proxy,i.map(({vnode:a})=>`at <${j1(n,a.type)}>`).join(` `),i]);else{const a=[`[Vue warn]: ${e}`,...t];i.length&&a.push(` `,...dC(i)),console.warn(...a)}ei(),$f=!1}function fC(){let e=os[os.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}function dC(e){const t=[];return e.forEach((n,r)=>{t.push(...r===0?[]:[` `],...hC(n))}),t}function hC({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,i=` at <${j1(e.component,e.type,r)}`,a=">"+n;return e.props?[i,...pC(e.props),a]:[i+a]}function pC(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...zb(r,e[r]))}),n.length>3&&t.push(" ..."),t}function zb(e,t,n){return ct(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:kt(t)?(t=zb(e,qe(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):je(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=qe(t),n?t:[`${e}=`,t])}function gU(e,t){}const yU={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE"},vC={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",[0]:"setup function",[1]:"render function",[2]:"watcher getter",[3]:"watcher callback",[4]:"watcher cleanup function",[5]:"native event handler",[6]:"component event handler",[7]:"vnode hook",[8]:"directive hook",[9]:"transition hook",[10]:"app errorHandler",[11]:"app warnHandler",[12]:"ref function",[13]:"async component loader",[14]:"scheduler flush",[15]:"component update"};function Gr(e,t,n,r){try{return r?e(...r):e()}catch(i){Ea(i,t,n)}}function qn(e,t,n,r){if(je(e)){const i=Gr(e,t,n,r);return i&&sp(i)&&i.catch(a=>{Ea(a,t,n)}),i}if(Oe(e)){const i=[];for(let a=0;a>>1,i=Zt[r],a=xs(i);abr&&Zt.splice(t,1)}function Gd(e){Oe(e)?Zo.push(...e):(!yi||!yi.includes(e,e.allowRecurse?Vi+1:Vi))&&Zo.push(e),Gb()}function dm(e,t,n=Es?br+1:0){for(;nxs(n)-xs(r));if(Zo.length=0,yi){yi.push(...t);return}for(yi=t,Vi=0;Vie.id==null?1/0:e.id,bC=(e,t)=>{const n=xs(e)-xs(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Kb(e){Wd=!1,Es=!0,Zt.sort(bC);const t=un;try{for(br=0;brMo.emit(i,...a)),Tl=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(a=>{Yb(a,t)}),setTimeout(()=>{Mo||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Tl=[])},3e3)):Tl=[]}let Pt=null,ac=null;function Ss(e){const t=Pt;return Pt=e,ac=e&&e.type.__scopeId||null,t}function sc(e){ac=e}function lc(){ac=null}const bU=e=>De;function De(e,t=Pt,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&Pm(-1);const a=Ss(t);let s;try{s=e(...i)}finally{Ss(a),r._d&&Pm(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function ro(e,t){if(Pt===null)return e;const n=Ks(Pt),r=e.dirs||(e.dirs=[]);for(let i=0;i{e.isMounted=!0}),tn(()=>{e.isUnmounting=!0}),e}const Ln=[Function,Array],Zb={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ln,onEnter:Ln,onAfterEnter:Ln,onEnterCancelled:Ln,onBeforeLeave:Ln,onLeave:Ln,onAfterLeave:Ln,onLeaveCancelled:Ln,onBeforeAppear:Ln,onAppear:Ln,onAfterAppear:Ln,onAppearCancelled:Ln},Jb=e=>{const t=e.subTree;return t.component?Jb(t.component):t},_C={name:"BaseTransition",props:Zb,setup(e,{slots:t}){const n=zt(),r=Xb();return()=>{const i=t.default&&bp(t.default(),!0);if(!i||!i.length)return;let a=i[0];if(i.length>1){for(const d of i)if(d.type!==Mt){a=d;break}}const s=qe(e),{mode:l}=s;if(r.isLeaving)return Mf(a);const u=hm(a);if(!u)return Mf(a);let f=Os(u,s,r,n,d=>f=d);io(u,f);const p=n.subTree,c=p&&hm(p);if(c&&c.type!==Mt&&!tr(u,c)&&Jb(n).type!==Mt){const d=Os(c,s,r,n);if(io(c,d),l==="out-in"&&u.type!==Mt)return r.isLeaving=!0,d.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},Mf(a);l==="in-out"&&u.type!==Mt&&(d.delayLeave=(h,_,b)=>{const E=Qb(r,c);E[String(c.key)]=c,h[bi]=()=>{_(),h[bi]=void 0,delete f.delayedLeave},f.delayedLeave=b})}return a}}},wC=_C;function Qb(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Os(e,t,n,r,i){const{appear:a,mode:s,persisted:l=!1,onBeforeEnter:u,onEnter:f,onAfterEnter:p,onEnterCancelled:c,onBeforeLeave:d,onLeave:h,onAfterLeave:_,onLeaveCancelled:b,onBeforeAppear:E,onAppear:v,onAfterAppear:m,onAppearCancelled:y}=t,g=String(e.key),w=Qb(n,e),x=(P,A)=>{P&&qn(P,r,9,A)},O=(P,A)=>{const S=A[1];x(P,A),Oe(P)?P.every(C=>C.length<=1)&&S():P.length<=1&&S()},T={mode:s,persisted:l,beforeEnter(P){let A=u;if(!n.isMounted)if(a)A=E||u;else return;P[bi]&&P[bi](!0);const S=w[g];S&&tr(e,S)&&S.el[bi]&&S.el[bi](),x(A,[P])},enter(P){let A=f,S=p,C=c;if(!n.isMounted)if(a)A=v||f,S=m||p,C=y||c;else return;let I=!1;const M=P[Al]=F=>{I||(I=!0,F?x(C,[P]):x(S,[P]),T.delayedLeave&&T.delayedLeave(),P[Al]=void 0)};A?O(A,[P,M]):M()},leave(P,A){const S=String(e.key);if(P[Al]&&P[Al](!0),n.isUnmounting)return A();x(d,[P]);let C=!1;const I=P[bi]=M=>{C||(C=!0,A(),M?x(b,[P]):x(_,[P]),P[bi]=void 0,w[S]===e&&delete w[S])};w[S]=e,h?O(h,[P,I]):I()},clone(P){const A=Os(P,t,n,r,i);return i&&i(A),A}};return T}function Mf(e){if(zs(e))return e=ir(e),e.children=null,e}function hm(e){if(!zs(e))return e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&je(n.default))return n.default()}}function io(e,t){e.shapeFlag&6&&e.component?io(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function bp(e,t=!1,n){let r=[],i=0;for(let a=0;a1)for(let a=0;abt({name:e.name},t,{setup:e}))():e}const Qi=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function _U(e){je(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,timeout:a,suspensible:s=!0,onError:l}=e;let u=null,f,p=0;const c=()=>(p++,u=null,d()),d=()=>{let h;return u||(h=u=t().catch(_=>{if(_=_ instanceof Error?_:new Error(String(_)),l)return new Promise((b,E)=>{l(_,()=>b(c()),()=>E(_),p+1)});throw _}).then(_=>h!==u&&u?u:(_&&(_.__esModule||_[Symbol.toStringTag]==="Module")&&(_=_.default),f=_,_)))};return Ce({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return f},setup(){const h=At;if(f)return()=>Lf(f,h);const _=m=>{u=null,Ea(m,h,13,!r)};if(s&&h.suspense||Gs)return d().then(m=>()=>Lf(m,h)).catch(m=>(_(m),()=>r?X(r,{error:m}):null));const b=ae(!1),E=ae(),v=ae(!!i);return i&&setTimeout(()=>{v.value=!1},i),a!=null&&setTimeout(()=>{if(!b.value&&!E.value){const m=new Error(`Async component timed out after ${a}ms.`);_(m),E.value=m}},a),d().then(()=>{b.value=!0,h.parent&&zs(h.parent.vnode)&&(h.parent.effect.dirty=!0,oc(h.parent.update))}).catch(m=>{_(m),E.value=m}),()=>{if(b.value&&f)return Lf(f,h);if(E.value&&r)return X(r,{error:E.value});if(n&&!v.value)return X(n)}}})}function Lf(e,t){const{ref:n,props:r,children:i,ce:a}=t.vnode,s=X(e,r,i);return s.ref=n,s.ce=a,delete t.vnode.ce,s}const zs=e=>e.type.__isKeepAlive,EC={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=zt(),r=n.ctx;if(!r.renderer)return()=>{const m=t.default&&t.default();return m&&m.length===1?m[0]:m};const i=new Map,a=new Set;let s=null;const l=n.suspense,{renderer:{p:u,m:f,um:p,o:{createElement:c}}}=r,d=c("div");r.activate=(m,y,g,w,x)=>{const O=m.component;f(m,y,g,0,l),u(O.vnode,m,y,g,O,l,w,m.slotScopeIds,x),Rt(()=>{O.isDeactivated=!1,O.a&&Ko(O.a);const T=m.props&&m.props.onVnodeMounted;T&&pn(T,O.parent,m)},l)},r.deactivate=m=>{const y=m.component;Eu(y.m),Eu(y.a),f(m,d,null,1,l),Rt(()=>{y.da&&Ko(y.da);const g=m.props&&m.props.onVnodeUnmounted;g&&pn(g,y.parent,m),y.isDeactivated=!0},l)};function h(m){Ff(m),p(m,n,l,!0)}function _(m){i.forEach((y,g)=>{const w=Ou(y.type);w&&(!m||!m(w))&&b(g)})}function b(m){const y=i.get(m);!s||!tr(y,s)?h(y):s&&Ff(s),i.delete(m),a.delete(m)}Le(()=>[e.include,e.exclude],([m,y])=>{m&&_(g=>Qa(m,g)),y&&_(g=>!Qa(y,g))},{flush:"post",deep:!0});let E=null;const v=()=>{E!=null&&(eh(n.subTree.type)?Rt(()=>{i.set(E,Pl(n.subTree))},n.subTree.suspense):i.set(E,Pl(n.subTree)))};return wt(v),vo(v),tn(()=>{i.forEach(m=>{const{subTree:y,suspense:g}=n,w=Pl(y);if(m.type===w.type&&m.key===w.key){Ff(w);const x=w.component.da;x&&Rt(x,g);return}h(m)})}),()=>{if(E=null,!t.default)return null;const m=t.default(),y=m[0];if(m.length>1)return s=null,m;if(!zn(y)||!(y.shapeFlag&4)&&!(y.shapeFlag&128))return s=null,y;let g=Pl(y);const w=g.type,x=Ou(Qi(g)?g.type.__asyncResolved||{}:w),{include:O,exclude:T,max:P}=e;if(O&&(!x||!Qa(O,x))||T&&x&&Qa(T,x))return s=g,y;const A=g.key==null?w:g.key,S=i.get(A);return g.el&&(g=ir(g),y.shapeFlag&128&&(y.ssContent=g)),E=A,S?(g.el=S.el,g.component=S.component,g.transition&&io(g,g.transition),g.shapeFlag|=512,a.delete(A),a.add(A)):(a.add(A),P&&a.size>parseInt(P,10)&&b(a.values().next().value)),g.shapeFlag|=256,s=g,eh(y.type)?y:g}}},xC=EC;function Qa(e,t){return Oe(e)?e.some(n=>Qa(n,t)):ct(e)?e.split(",").includes(t):bO(e)?e.test(t):!1}function uc(e,t){e1(e,"a",t)}function _p(e,t){e1(e,"da",t)}function e1(e,t,n=At){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(cc(t,r,n),n){let i=n.parent;for(;i&&i.parent;)zs(i.parent.vnode)&&SC(r,t,n,i),i=i.parent}}function SC(e,t,n,r){const i=cc(t,e,r,!0);ur(()=>{ap(r[t],i)},n)}function Ff(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Pl(e){return e.shapeFlag&128?e.ssContent:e}function cc(e,t,n=At,r=!1){if(n){const i=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...s)=>{Qr();const l=ao(n),u=qn(t,n,e,s);return l(),ei(),u});return r?i.unshift(a):i.push(a),a}}const ti=e=>(t,n=At)=>{(!Gs||e==="sp")&&cc(e,(...r)=>t(...r),n)},fc=ti("bm"),wt=ti("m"),t1=ti("bu"),vo=ti("u"),tn=ti("bum"),ur=ti("um"),OC=ti("sp"),CC=ti("rtg"),TC=ti("rtc");function AC(e,t=At){cc("ec",e,t)}const wp="components",PC="directives";function mt(e,t){return Ep(wp,e,!0,t)||e}const n1=Symbol.for("v-ndc");function r1(e){return ct(e)?Ep(wp,e,!1)||e:e||n1}function wU(e){return Ep(PC,e)}function Ep(e,t,n=!0,r=!1){const i=Pt||At;if(i){const a=i.type;if(e===wp){const l=Ou(a,!1);if(l&&(l===t||l===cn(t)||l===ec(cn(t))))return a}const s=pm(i[e]||a[e],t)||pm(i.appContext[e],t);return!s&&r?a:s}}function pm(e,t){return e&&(e[t]||e[cn(t)]||e[ec(cn(t))])}function Gn(e,t,n,r){let i;const a=n&&n[r];if(Oe(e)||ct(e)){i=new Array(e.length);for(let s=0,l=e.length;st(s,l,void 0,a&&a[l]));else{const s=Object.keys(e);i=new Array(s.length);for(let l=0,u=s.length;l{const a=r.fn(...i);return a&&(a.key=r.key),a}:r.fn)}return e}function Se(e,t,n={},r,i){if(Pt.isCE||Pt.parent&&Qi(Pt.parent)&&Pt.parent.isCE)return t!=="default"&&(n.name=t),X("slot",n,r&&r());let a=e[t];a&&a._c&&(a._d=!1),se();const s=a&&i1(a(n)),l=We(Pe,{key:(n.key||s&&s.key||`_${t}`)+(!s&&r?"_fb":"")},s||(r?r():[]),s&&e._===1?64:-2);return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),a&&a._c&&(a._d=!0),l}function i1(e){return e.some(t=>zn(t)?!(t.type===Mt||t.type===Pe&&!i1(t.children)):!0)?e:null}function o1(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:tu(r)]=e[r];return n}const Kd=e=>e?$1(e)?Ks(e):Kd(e.parent):null,as=bt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Kd(e.parent),$root:e=>Kd(e.root),$emit:e=>e.emit,$options:e=>xp(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,oc(e.update)}),$nextTick:e=>e.n||(e.n=Qe.bind(e.proxy)),$watch:e=>aT.bind(e)}),jf=(e,t)=>e!==ut&&!e.__isScriptSetup&&tt(e,t),Yd={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:a,accessCache:s,type:l,appContext:u}=e;let f;if(t[0]!=="$"){const h=s[t];if(h!==void 0)switch(h){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return a[t]}else{if(jf(r,t))return s[t]=1,r[t];if(i!==ut&&tt(i,t))return s[t]=2,i[t];if((f=e.propsOptions[0])&&tt(f,t))return s[t]=3,a[t];if(n!==ut&&tt(n,t))return s[t]=4,n[t];Xd&&(s[t]=0)}}const p=as[t];let c,d;if(p)return t==="$attrs"&&bn(e.attrs,"get",""),p(e);if((c=l.__cssModules)&&(c=c[t]))return c;if(n!==ut&&tt(n,t))return s[t]=4,n[t];if(d=u.config.globalProperties,tt(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:a}=e;return jf(i,t)?(i[t]=n,!0):r!==ut&&tt(r,t)?(r[t]=n,!0):tt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(a[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:a}},s){let l;return!!n[s]||e!==ut&&tt(e,s)||jf(t,s)||(l=a[0])&&tt(l,s)||tt(r,s)||tt(as,s)||tt(i.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:tt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},kC=bt({},Yd,{get(e,t){if(t!==Symbol.unscopables)return Yd.get(e,t,e)},has(e,t){return t[0]!=="_"&&!SO(t)}});function EU(){return null}function xU(){return null}function SU(e){}function OU(e){}function CU(){return null}function TU(){}function AU(e,t){return null}function PU(){return a1().slots}function kU(){return a1().attrs}function a1(){const e=zt();return e.setupContext||(e.setupContext=F1(e))}function Cs(e){return Oe(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function IU(e,t){const n=Cs(e);for(const r in t){if(r.startsWith("__skip"))continue;let i=n[r];i?Oe(i)||je(i)?i=n[r]={type:i,default:t[r]}:i.default=t[r]:i===null&&(i=n[r]={default:t[r]}),i&&t[`__skip_${r}`]&&(i.skipFactory=!0)}return n}function NU(e,t){return!e||!t?e||t:Oe(e)&&Oe(t)?e.concat(t):bt({},Cs(e),Cs(t))}function RU(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function $U(e){const t=zt();let n=e();return rh(),sp(n)&&(n=n.catch(r=>{throw ao(t),r})),[n,()=>ao(t)]}let Xd=!0;function IC(e){const t=xp(e),n=e.proxy,r=e.ctx;Xd=!1,t.beforeCreate&&vm(t.beforeCreate,e,"bc");const{data:i,computed:a,methods:s,watch:l,provide:u,inject:f,created:p,beforeMount:c,mounted:d,beforeUpdate:h,updated:_,activated:b,deactivated:E,beforeDestroy:v,beforeUnmount:m,destroyed:y,unmounted:g,render:w,renderTracked:x,renderTriggered:O,errorCaptured:T,serverPrefetch:P,expose:A,inheritAttrs:S,components:C,directives:I,filters:M}=t;if(f&&NC(f,r,null),s)for(const U in s){const G=s[U];je(G)&&(r[U]=G.bind(n))}if(i){const U=i.call(n,n);ft(U)&&(e.data=yt(U))}if(Xd=!0,a)for(const U in a){const G=a[U],D=je(G)?G.bind(n,n):je(G.get)?G.get.bind(n,n):un,R=!je(G)&&je(G.set)?G.set.bind(n):un,N=ue({get:D,set:R});Object.defineProperty(r,U,{enumerable:!0,configurable:!0,get:()=>N.value,set:L=>N.value=L})}if(l)for(const U in l)s1(l[U],r,n,U);if(u){const U=je(u)?u.call(n):u;Reflect.ownKeys(U).forEach(G=>{St(G,U[G])})}p&&vm(p,e,"c");function z(U,G){Oe(G)?G.forEach(D=>U(D.bind(n))):G&&U(G.bind(n))}if(z(fc,c),z(wt,d),z(t1,h),z(vo,_),z(uc,b),z(_p,E),z(AC,T),z(TC,x),z(CC,O),z(tn,m),z(ur,g),z(OC,P),Oe(A))if(A.length){const U=e.exposed||(e.exposed={});A.forEach(G=>{Object.defineProperty(U,G,{get:()=>n[G],set:D=>n[G]=D})})}else e.exposed||(e.exposed={});w&&e.render===un&&(e.render=w),S!=null&&(e.inheritAttrs=S),C&&(e.components=C),I&&(e.directives=I)}function NC(e,t,n=un){Oe(e)&&(e=Zd(e));for(const r in e){const i=e[r];let a;ft(i)?"default"in i?a=gt(i.from||r,i.default,!0):a=gt(i.from||r):a=gt(i),kt(a)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>a.value,set:s=>a.value=s}):t[r]=a}}function vm(e,t,n){qn(Oe(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function s1(e,t,n,r){const i=r.includes(".")?O1(n,r):()=>n[r];if(ct(e)){const a=t[e];je(a)&&Le(i,a)}else if(je(e))Le(i,e.bind(n));else if(ft(e))if(Oe(e))e.forEach(a=>s1(a,t,n,r));else{const a=je(e.handler)?e.handler.bind(n):t[e.handler];je(a)&&Le(i,a,e)}}function xp(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:s}}=e.appContext,l=a.get(t);let u;return l?u=l:!i.length&&!n&&!r?u=t:(u={},i.length&&i.forEach(f=>_u(u,f,s,!0)),_u(u,t,s)),ft(t)&&a.set(t,u),u}function _u(e,t,n,r=!1){const{mixins:i,extends:a}=t;a&&_u(e,a,n,!0),i&&i.forEach(s=>_u(e,s,n,!0));for(const s in t)if(!(r&&s==="expose")){const l=RC[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const RC={data:mm,props:gm,emits:gm,methods:es,computed:es,beforeCreate:on,created:on,beforeMount:on,mounted:on,beforeUpdate:on,updated:on,beforeDestroy:on,beforeUnmount:on,destroyed:on,unmounted:on,activated:on,deactivated:on,errorCaptured:on,serverPrefetch:on,components:es,directives:es,watch:MC,provide:mm,inject:$C};function mm(e,t){return t?e?function(){return bt(je(e)?e.call(this,this):e,je(t)?t.call(this,this):t)}:t:e}function $C(e,t){return es(Zd(e),Zd(t))}function Zd(e){if(Oe(e)){const t={};for(let n=0;n1)return n&&je(t)?t.call(r&&r.proxy):t}}function MU(){return!!(At||Pt||Jo)}const u1={},c1=()=>Object.create(u1),f1=e=>Object.getPrototypeOf(e)===u1;function jC(e,t,n,r=!1){const i={},a=c1();e.propsDefaults=Object.create(null),d1(e,t,i,a);for(const s in e.propsOptions[0])s in i||(i[s]=void 0);n?e.props=r?i:pp(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function DC(e,t,n,r){const{props:i,attrs:a,vnode:{patchFlag:s}}=e,l=qe(i),[u]=e.propsOptions;let f=!1;if((r||s>0)&&!(s&16)){if(s&8){const p=e.vnode.dynamicProps;for(let c=0;c{u=!0;const[d,h]=h1(c,t,!0);bt(s,d),h&&l.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(p),e.extends&&p(e.extends),e.mixins&&e.mixins.forEach(p)}if(!a&&!u)return ft(e)&&r.set(e,zo),zo;if(Oe(a))for(let p=0;p-1,h[1]=b<0||_-1||tt(h,"default"))&&l.push(c)}}}const f=[s,l];return ft(e)&&r.set(e,f),f}function ym(e){return e[0]!=="$"&&!Go(e)}function bm(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function _m(e,t){return bm(e)===bm(t)}function wm(e,t){return Oe(t)?t.findIndex(n=>_m(n,e)):je(t)&&_m(t,e)?0:-1}const p1=e=>e[0]==="_"||e==="$stable",Sp=e=>Oe(e)?e.map(mn):[mn(e)],qC=(e,t,n)=>{if(t._n)return t;const r=De((...i)=>Sp(t(...i)),n);return r._c=!1,r},v1=(e,t,n)=>{const r=e._ctx;for(const i in e){if(p1(i))continue;const a=e[i];if(je(a))t[i]=qC(i,a,r);else if(a!=null){const s=Sp(a);t[i]=()=>s}}},m1=(e,t)=>{const n=Sp(t);e.slots.default=()=>n},g1=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},HC=(e,t,n)=>{const r=e.slots=c1();if(e.vnode.shapeFlag&32){const i=t._;i?(g1(r,t,n),n&&_b(r,"_",i,!0)):v1(t,r)}else t&&m1(e,t)},UC=(e,t,n)=>{const{vnode:r,slots:i}=e;let a=!0,s=ut;if(r.shapeFlag&32){const l=t._;l?n&&l===1?a=!1:g1(i,t,n):(a=!t.$stable,v1(t,i)),s=t}else t&&(m1(e,t),s={default:1});if(a)for(const l in i)!p1(l)&&s[l]==null&&delete i[l]};function wu(e,t,n,r,i=!1){if(Oe(e)){e.forEach((d,h)=>wu(d,t&&(Oe(t)?t[h]:t),n,r,i));return}if(Qi(r)&&!i)return;const a=r.shapeFlag&4?Ks(r.component):r.el,s=i?null:a,{i:l,r:u}=e,f=t&&t.r,p=l.refs===ut?l.refs={}:l.refs,c=l.setupState;if(f!=null&&f!==u&&(ct(f)?(p[f]=null,tt(c,f)&&(c[f]=null)):kt(f)&&(f.value=null)),je(u))Gr(u,l,12,[s,p]);else{const d=ct(u),h=kt(u);if(d||h){const _=()=>{if(e.f){const b=d?tt(c,u)?c[u]:p[u]:u.value;i?Oe(b)&&ap(b,a):Oe(b)?b.includes(a)||b.push(a):d?(p[u]=[a],tt(c,u)&&(c[u]=p[u])):(u.value=[a],e.k&&(p[e.k]=u.value))}else d?(p[u]=s,tt(c,u)&&(c[u]=s)):h&&(u.value=s,e.k&&(p[e.k]=s))};s?(_.id=-1,Rt(_,n)):_()}}}const y1=Symbol("_vte"),VC=e=>e.__isTeleport,ss=e=>e&&(e.disabled||e.disabled===""),Em=e=>typeof SVGElement<"u"&&e instanceof SVGElement,xm=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Qd=(e,t)=>{const n=e&&e.to;return ct(n)?t?t(n):null:n},zC={name:"Teleport",__isTeleport:!0,process(e,t,n,r,i,a,s,l,u,f){const{mc:p,pc:c,pbc:d,o:{insert:h,querySelector:_,createText:b,createComment:E}}=f,v=ss(t.props);let{shapeFlag:m,children:y,dynamicChildren:g}=t;if(e==null){const w=t.el=b(""),x=t.anchor=b(""),O=t.target=Qd(t.props,_),T=t.targetStart=b(""),P=t.targetAnchor=b("");h(w,n,r),h(x,n,r),T[y1]=P,O&&(h(T,O),h(P,O),s==="svg"||Em(O)?s="svg":(s==="mathml"||xm(O))&&(s="mathml"));const A=(S,C)=>{m&16&&p(y,S,C,i,a,s,l,u)};v?A(n,x):O&&A(O,P)}else{t.el=e.el,t.targetStart=e.targetStart;const w=t.anchor=e.anchor,x=t.target=e.target,O=t.targetAnchor=e.targetAnchor,T=ss(e.props),P=T?n:x,A=T?w:O;if(s==="svg"||Em(x)?s="svg":(s==="mathml"||xm(x))&&(s="mathml"),g?(d(e.dynamicChildren,g,P,i,a,s,l),Op(e,t,!0)):u||c(e,t,P,A,i,a,s,l,!1),v)T?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):kl(t,n,w,f,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const S=t.target=Qd(t.props,_);S&&kl(t,S,null,f,0)}else T&&kl(t,x,O,f,1)}b1(t)},remove(e,t,n,{um:r,o:{remove:i}},a){const{shapeFlag:s,children:l,anchor:u,targetStart:f,targetAnchor:p,target:c,props:d}=e;if(c&&(i(f),i(p)),a&&i(u),s&16){const h=a||!ss(d);for(let _=0;_{Sm||(console.error("Hydration completed but contains mismatches."),Sm=!0)},GC=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",KC=e=>e.namespaceURI.includes("MathML"),Il=e=>{if(GC(e))return"svg";if(KC(e))return"mathml"},Ua=e=>e.nodeType===8;function YC(e){const{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:a,parentNode:s,remove:l,insert:u,createComment:f}}=e,p=(y,g)=>{if(!g.hasChildNodes()){__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&vi("Attempting to hydrate existing markup but container is empty. Performing full mount instead."),n(null,y,g),bu(),g._vnode=y;return}c(g.firstChild,y,null,null,null),bu(),g._vnode=y},c=(y,g,w,x,O,T=!1)=>{T=T||!!g.dynamicChildren;const P=Ua(y)&&y.data==="[",A=()=>b(y,g,w,x,O,P),{type:S,ref:C,shapeFlag:I,patchFlag:M}=g;let F=y.nodeType;g.el=y,M===-2&&(T=!1,g.dynamicChildren=null);let z=null;switch(S){case Kr:F!==3?g.children===""?(u(g.el=i(""),s(y),y),z=y):z=A():(y.data!==g.children&&(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&vi("Hydration text mismatch in",y.parentNode,` - rendered on server: ${JSON.stringify(y.data)} - expected on client: ${JSON.stringify(g.children)}`),Di(),y.data=g.children),z=a(y));break;case Mt:m(y)?(z=a(y),v(g.el=y.content.firstChild,y,w)):F!==8||P?z=A():z=a(y);break;case ea:if(P&&(y=a(y),F=y.nodeType),F===1||F===3){z=y;const U=!g.children.length;for(let G=0;G{T=T||!!g.dynamicChildren;const{type:P,props:A,patchFlag:S,shapeFlag:C,dirs:I,transition:M}=g,F=P==="input"||P==="option";if(F||S!==-1){I&&yr(g,null,w,"created");let z=!1;if(m(y)){z=E1(x,M)&&w&&w.vnode.props&&w.vnode.props.appear;const G=y.content.firstChild;z&&M.beforeEnter(G),v(G,y,w),g.el=y=G}if(C&16&&!(A&&(A.innerHTML||A.textContent))){let G=h(y.firstChild,g,y,w,x,O,T),D=!1;for(;G;){__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&!D&&(vi("Hydration children mismatch on",y,` Server rendered element contains more child nodes than client vdom.`),D=!0),Di();const R=G;G=G.nextSibling,l(R)}}else C&8&&y.textContent!==g.children&&(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&vi("Hydration text content mismatch on",y,` - rendered on server: ${y.textContent} - expected on client: ${g.children}`),Di(),y.textContent=g.children);if(A){if(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__||F||!T||S&48)for(const G in A)__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&!(I&&I.some(D=>D.dir.created))&&XC(y,G,A[G],g,w)&&Di(),(F&&(G.endsWith("value")||G==="indeterminate")||Us(G)&&!Go(G)||G[0]===".")&&r(y,G,null,A[G],void 0,w);else if(A.onClick)r(y,"onClick",null,A.onClick,void 0,w);else if(S&4&&Yo(A.style))for(const G in A.style)A.style[G]}let U;(U=A&&A.onVnodeBeforeMount)&&pn(U,w,g),I&&yr(g,null,w,"beforeMount"),((U=A&&A.onVnodeMounted)||I||z)&&P1(()=>{U&&pn(U,w,g),z&&M.enter(y),I&&yr(g,null,w,"mounted")},x)}return y.nextSibling},h=(y,g,w,x,O,T,P)=>{P=P||!!g.dynamicChildren;const A=g.children,S=A.length;let C=!1;for(let I=0;I{const{slotScopeIds:P}=g;P&&(O=O?O.concat(P):P);const A=s(y),S=h(a(y),g,A,w,x,O,T);return S&&Ua(S)&&S.data==="]"?a(g.anchor=S):(Di(),u(g.anchor=f("]"),A,S),S)},b=(y,g,w,x,O,T)=>{if(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&vi(`Hydration node mismatch: - rendered on server:`,y,y.nodeType===3?"(text)":Ua(y)&&y.data==="["?"(start of fragment)":"",` - expected on client:`,g.type),Di(),g.el=null,T){const S=E(y);for(;;){const C=a(y);if(C&&C!==S)l(C);else break}}const P=a(y),A=s(y);return l(y),n(null,g,A,P,w,x,Il(A),O),P},E=(y,g="[",w="]")=>{let x=0;for(;y;)if(y=a(y),y&&Ua(y)&&(y.data===g&&x++,y.data===w)){if(x===0)return a(y);x--}return y},v=(y,g,w)=>{const x=g.parentNode;x&&x.replaceChild(y,g);let O=w;for(;O;)O.vnode.el===g&&(O.vnode.el=O.subTree.el=y),O=O.parent},m=y=>y.nodeType===1&&y.tagName.toLowerCase()==="template";return[p,c]}function XC(e,t,n,r,i){let a,s,l,u;if(t==="class")l=e.getAttribute("class"),u=$e(n),ZC(Om(l||""),Om(u))||(a=s="class");else if(t==="style"){l=e.getAttribute("style")||"",u=ct(n)?n:PO(it(n));const f=Cm(l),p=Cm(u);if(r.dirs)for(const{dir:c,value:d}of r.dirs)c.name==="show"&&!d&&p.set("display","none");i&&_1(i,r,p),JC(f,p)||(a=s="style")}else(e instanceof SVGElement&&NO(t)||e instanceof HTMLElement&&(im(t)||IO(t)))&&(im(t)?(l=e.hasAttribute(t),u=cp(n)):n==null?(l=e.hasAttribute(t),u=!1):(e.hasAttribute(t)?l=e.getAttribute(t):t==="value"&&e.tagName==="TEXTAREA"?l=e.value:l=!1,u=RO(n)?String(n):!1),l!==u&&(a="attribute",s=t));if(a){const f=d=>d===!1?"(not rendered)":`${s}="${d}"`,p=`Hydration ${a} mismatch on`,c=` - rendered on server: ${f(l)} - expected on client: ${f(u)} Note: this mismatch is check-only. The DOM will not be rectified in production due to performance overhead. You should fix the source of the mismatch.`;return vi(p,e,c),!0}return!1}function Om(e){return new Set(e.trim().split(/\s+/))}function ZC(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}function Cm(e){const t=new Map;for(const n of e.split(";")){let[r,i]=n.split(":");r=r.trim(),i=i&&i.trim(),r&&i&&t.set(r,i)}return t}function JC(e,t){if(e.size!==t.size)return!1;for(const[n,r]of e)if(r!==t.get(n))return!1;return!0}function _1(e,t,n){const r=e.subTree;if(e.getCssVars&&(t===r||r&&r.type===Pe&&r.children.includes(t))){const i=e.getCssVars();for(const a in i)n.set(`--${a}`,String(i[a]))}t===r&&e.parent&&_1(e.parent,e.vnode,n)}function QC(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(up().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const Rt=P1;function eT(e){return w1(e)}function tT(e){return w1(e,YC)}function w1(e,t){QC();const n=up();n.__VUE__=!0;const{insert:r,remove:i,patchProp:a,createElement:s,createText:l,createComment:u,setText:f,setElementText:p,parentNode:c,nextSibling:d,setScopeId:h=un,insertStaticContent:_}=e,b=(V,W,oe,pe=null,fe=null,ee=null,ie=void 0,le=null,ce=!!W.dynamicChildren)=>{if(V===W)return;V&&!tr(V,W)&&(pe=j(V),L(V,fe,ee,!0),V=null),W.patchFlag===-2&&(ce=!1,W.dynamicChildren=null);const{type:ne,ref:ye,shapeFlag:be}=W;switch(ne){case Kr:E(V,W,oe,pe);break;case Mt:v(V,W,oe,pe);break;case ea:V==null&&m(W,oe,pe,ie);break;case Pe:C(V,W,oe,pe,fe,ee,ie,le,ce);break;default:be&1?w(V,W,oe,pe,fe,ee,ie,le,ce):be&6?I(V,W,oe,pe,fe,ee,ie,le,ce):(be&64||be&128)&&ne.process(V,W,oe,pe,fe,ee,ie,le,ce,te)}ye!=null&&fe&&wu(ye,V&&V.ref,ee,W||V,!W)},E=(V,W,oe,pe)=>{if(V==null)r(W.el=l(W.children),oe,pe);else{const fe=W.el=V.el;W.children!==V.children&&f(fe,W.children)}},v=(V,W,oe,pe)=>{V==null?r(W.el=u(W.children||""),oe,pe):W.el=V.el},m=(V,W,oe,pe)=>{[V.el,V.anchor]=_(V.children,W,oe,pe,V.el,V.anchor)},y=({el:V,anchor:W},oe,pe)=>{let fe;for(;V&&V!==W;)fe=d(V),r(V,oe,pe),V=fe;r(W,oe,pe)},g=({el:V,anchor:W})=>{let oe;for(;V&&V!==W;)oe=d(V),i(V),V=oe;i(W)},w=(V,W,oe,pe,fe,ee,ie,le,ce)=>{W.type==="svg"?ie="svg":W.type==="math"&&(ie="mathml"),V==null?x(W,oe,pe,fe,ee,ie,le,ce):P(V,W,fe,ee,ie,le,ce)},x=(V,W,oe,pe,fe,ee,ie,le)=>{let ce,ne;const{props:ye,shapeFlag:be,transition:_e,dirs:Te}=V;if(ce=V.el=s(V.type,ee,ye&&ye.is,ye),be&8?p(ce,V.children):be&16&&T(V.children,ce,null,pe,fe,Df(V,ee),ie,le),Te&&yr(V,null,pe,"created"),O(ce,V,V.scopeId,ie,pe),ye){for(const ke in ye)ke!=="value"&&!Go(ke)&&a(ce,ke,null,ye[ke],ee,pe);"value"in ye&&a(ce,"value",null,ye.value,ee),(ne=ye.onVnodeBeforeMount)&&pn(ne,pe,V)}Te&&yr(V,null,pe,"beforeMount");const Ne=E1(fe,_e);Ne&&_e.beforeEnter(ce),r(ce,W,oe),((ne=ye&&ye.onVnodeMounted)||Ne||Te)&&Rt(()=>{ne&&pn(ne,pe,V),Ne&&_e.enter(ce),Te&&yr(V,null,pe,"mounted")},fe)},O=(V,W,oe,pe,fe)=>{if(oe&&h(V,oe),pe)for(let ee=0;ee{for(let ne=ce;ne{const le=W.el=V.el;let{patchFlag:ce,dynamicChildren:ne,dirs:ye}=W;ce|=V.patchFlag&16;const be=V.props||ut,_e=W.props||ut;let Te;if(oe&&Bi(oe,!1),(Te=_e.onVnodeBeforeUpdate)&&pn(Te,oe,W,V),ye&&yr(W,V,oe,"beforeUpdate"),oe&&Bi(oe,!0),(be.innerHTML&&_e.innerHTML==null||be.textContent&&_e.textContent==null)&&p(le,""),ne?A(V.dynamicChildren,ne,le,oe,pe,Df(W,fe),ee):ie||G(V,W,le,null,oe,pe,Df(W,fe),ee,!1),ce>0){if(ce&16)S(le,be,_e,oe,fe);else if(ce&2&&be.class!==_e.class&&a(le,"class",null,_e.class,fe),ce&4&&a(le,"style",be.style,_e.style,fe),ce&8){const Ne=W.dynamicProps;for(let ke=0;ke{Te&&pn(Te,oe,W,V),ye&&yr(W,V,oe,"updated")},pe)},A=(V,W,oe,pe,fe,ee,ie)=>{for(let le=0;le{if(W!==oe){if(W!==ut)for(const ee in W)!Go(ee)&&!(ee in oe)&&a(V,ee,W[ee],null,fe,pe);for(const ee in oe){if(Go(ee))continue;const ie=oe[ee],le=W[ee];ie!==le&&ee!=="value"&&a(V,ee,le,ie,fe,pe)}"value"in oe&&a(V,"value",W.value,oe.value,fe)}},C=(V,W,oe,pe,fe,ee,ie,le,ce)=>{const ne=W.el=V?V.el:l(""),ye=W.anchor=V?V.anchor:l("");let{patchFlag:be,dynamicChildren:_e,slotScopeIds:Te}=W;Te&&(le=le?le.concat(Te):Te),V==null?(r(ne,oe,pe),r(ye,oe,pe),T(W.children||[],oe,ye,fe,ee,ie,le,ce)):be>0&&be&64&&_e&&V.dynamicChildren?(A(V.dynamicChildren,_e,oe,fe,ee,ie,le),(W.key!=null||fe&&W===fe.subTree)&&Op(V,W,!0)):G(V,W,oe,ye,fe,ee,ie,le,ce)},I=(V,W,oe,pe,fe,ee,ie,le,ce)=>{W.slotScopeIds=le,V==null?W.shapeFlag&512?fe.ctx.activate(W,oe,pe,ie,ce):M(W,oe,pe,fe,ee,ie,ce):F(V,W,ce)},M=(V,W,oe,pe,fe,ee,ie)=>{const le=V.component=R1(V,pe,fe);if(zs(V)&&(le.ctx.renderer=te),M1(le,!1,ie),le.asyncDep){if(fe&&fe.registerDep(le,z,ie),!V.el){const ce=le.subTree=X(Mt);v(null,ce,W,oe)}}else z(le,V,W,oe,fe,ee,ie)},F=(V,W,oe)=>{const pe=W.component=V.component;if(fT(V,W,oe))if(pe.asyncDep&&!pe.asyncResolved){U(pe,W,oe);return}else pe.next=W,yC(pe.update),pe.effect.dirty=!0,pe.update();else W.el=V.el,pe.vnode=W},z=(V,W,oe,pe,fe,ee,ie)=>{const le=()=>{if(V.isMounted){let{next:ye,bu:be,u:_e,parent:Te,vnode:Ne}=V;{const Kn=x1(V);if(Kn){ye&&(ye.el=Ne.el,U(V,ye,ie)),Kn.asyncDep.then(()=>{V.isUnmounted||le()});return}}let ke=ye,Ge;Bi(V,!1),ye?(ye.el=Ne.el,U(V,ye,ie)):ye=Ne,be&&Ko(be),(Ge=ye.props&&ye.props.onVnodeBeforeUpdate)&&pn(Ge,Te,ye,Ne),Bi(V,!0);const Me=nu(V),ht=V.subTree;V.subTree=Me,b(ht,Me,c(ht.el),j(ht),V,fe,ee),ye.el=Me.el,ke===null&&Cp(V,Me.el),_e&&Rt(_e,fe),(Ge=ye.props&&ye.props.onVnodeUpdated)&&Rt(()=>pn(Ge,Te,ye,Ne),fe)}else{let ye;const{el:be,props:_e}=W,{bm:Te,m:Ne,parent:ke}=V,Ge=Qi(W);if(Bi(V,!1),Te&&Ko(Te),!Ge&&(ye=_e&&_e.onVnodeBeforeMount)&&pn(ye,ke,W),Bi(V,!0),be&&we){const Me=()=>{V.subTree=nu(V),we(be,V.subTree,V,fe,null)};Ge?W.type.__asyncLoader().then(()=>!V.isUnmounted&&Me()):Me()}else{const Me=V.subTree=nu(V);b(null,Me,oe,pe,V,fe,ee),W.el=Me.el}if(Ne&&Rt(Ne,fe),!Ge&&(ye=_e&&_e.onVnodeMounted)){const Me=W;Rt(()=>pn(ye,ke,Me),fe)}(W.shapeFlag&256||ke&&Qi(ke.vnode)&&ke.vnode.shapeFlag&256)&&V.a&&Rt(V.a,fe),V.isMounted=!0,W=oe=pe=null}},ce=V.effect=new _s(le,un,()=>oc(ne),V.scope),ne=V.update=()=>{ce.dirty&&ce.run()};ne.i=V,ne.id=V.uid,Bi(V,!0),ne()},U=(V,W,oe)=>{W.component=V;const pe=V.vnode.props;V.vnode=W,V.next=null,DC(V,W.props,pe,oe),UC(V,W.children,oe),Qr(),dm(V),ei()},G=(V,W,oe,pe,fe,ee,ie,le,ce=!1)=>{const ne=V&&V.children,ye=V?V.shapeFlag:0,be=W.children,{patchFlag:_e,shapeFlag:Te}=W;if(_e>0){if(_e&128){R(ne,be,oe,pe,fe,ee,ie,le,ce);return}else if(_e&256){D(ne,be,oe,pe,fe,ee,ie,le,ce);return}}Te&8?(ye&16&&B(ne,fe,ee),be!==ne&&p(oe,be)):ye&16?Te&16?R(ne,be,oe,pe,fe,ee,ie,le,ce):B(ne,fe,ee,!0):(ye&8&&p(oe,""),Te&16&&T(be,oe,pe,fe,ee,ie,le,ce))},D=(V,W,oe,pe,fe,ee,ie,le,ce)=>{V=V||zo,W=W||zo;const ne=V.length,ye=W.length,be=Math.min(ne,ye);let _e;for(_e=0;_eye?B(V,fe,ee,!0,!1,be):T(W,oe,pe,fe,ee,ie,le,ce,be)},R=(V,W,oe,pe,fe,ee,ie,le,ce)=>{let ne=0;const ye=W.length;let be=V.length-1,_e=ye-1;for(;ne<=be&&ne<=_e;){const Te=V[ne],Ne=W[ne]=ce?_i(W[ne]):mn(W[ne]);if(tr(Te,Ne))b(Te,Ne,oe,null,fe,ee,ie,le,ce);else break;ne++}for(;ne<=be&&ne<=_e;){const Te=V[be],Ne=W[_e]=ce?_i(W[_e]):mn(W[_e]);if(tr(Te,Ne))b(Te,Ne,oe,null,fe,ee,ie,le,ce);else break;be--,_e--}if(ne>be){if(ne<=_e){const Te=_e+1,Ne=Te_e)for(;ne<=be;)L(V[ne],fe,ee,!0),ne++;else{const Te=ne,Ne=ne,ke=new Map;for(ne=Ne;ne<=_e;ne++){const Nt=W[ne]=ce?_i(W[ne]):mn(W[ne]);Nt.key!=null&&ke.set(Nt.key,ne)}let Ge,Me=0;const ht=_e-Ne+1;let Kn=!1,xo=0;const Yn=new Array(ht);for(ne=0;ne=ht){L(Nt,fe,ee,!0);continue}let Ft;if(Nt.key!=null)Ft=ke.get(Nt.key);else for(Ge=Ne;Ge<=_e;Ge++)if(Yn[Ge-Ne]===0&&tr(Nt,W[Ge])){Ft=Ge;break}Ft===void 0?L(Nt,fe,ee,!0):(Yn[Ft-Ne]=ne+1,Ft>=xo?xo=Ft:Kn=!0,b(Nt,W[Ft],oe,null,fe,ee,ie,le,ce),Me++)}const Nr=Kn?nT(Yn):zo;for(Ge=Nr.length-1,ne=ht-1;ne>=0;ne--){const Nt=Ne+ne,Ft=W[Nt],hr=Nt+1{const{el:ee,type:ie,transition:le,children:ce,shapeFlag:ne}=V;if(ne&6){N(V.component.subTree,W,oe,pe);return}if(ne&128){V.suspense.move(W,oe,pe);return}if(ne&64){ie.move(V,W,oe,te);return}if(ie===Pe){r(ee,W,oe);for(let be=0;bele.enter(ee),fe);else{const{leave:be,delayLeave:_e,afterLeave:Te}=le,Ne=()=>r(ee,W,oe),ke=()=>{be(ee,()=>{Ne(),Te&&Te()})};_e?_e(ee,Ne,ke):ke()}else r(ee,W,oe)},L=(V,W,oe,pe=!1,fe=!1)=>{const{type:ee,props:ie,ref:le,children:ce,dynamicChildren:ne,shapeFlag:ye,patchFlag:be,dirs:_e,cacheIndex:Te}=V;if(be===-2&&(fe=!1),le!=null&&wu(le,null,oe,V,!0),Te!=null&&(W.renderCache[Te]=void 0),ye&256){W.ctx.deactivate(V);return}const Ne=ye&1&&_e,ke=!Qi(V);let Ge;if(ke&&(Ge=ie&&ie.onVnodeBeforeUnmount)&&pn(Ge,W,V),ye&6)K(V.component,oe,pe);else{if(ye&128){V.suspense.unmount(oe,pe);return}Ne&&yr(V,null,W,"beforeUnmount"),ye&64?V.type.remove(V,W,oe,te,pe):ne&&!ne.hasOnce&&(ee!==Pe||be>0&&be&64)?B(ne,W,oe,!1,!0):(ee===Pe&&be&384||!fe&&ye&16)&&B(ce,W,oe),pe&&q(V)}(ke&&(Ge=ie&&ie.onVnodeUnmounted)||Ne)&&Rt(()=>{Ge&&pn(Ge,W,V),Ne&&yr(V,null,W,"unmounted")},oe)},q=V=>{const{type:W,el:oe,anchor:pe,transition:fe}=V;if(W===Pe){Y(oe,pe);return}if(W===ea){g(V);return}const ee=()=>{i(oe),fe&&!fe.persisted&&fe.afterLeave&&fe.afterLeave()};if(V.shapeFlag&1&&fe&&!fe.persisted){const{leave:ie,delayLeave:le}=fe,ce=()=>ie(oe,ee);le?le(V.el,ee,ce):ce()}else ee()},Y=(V,W)=>{let oe;for(;V!==W;)oe=d(V),i(V),V=oe;i(W)},K=(V,W,oe)=>{const{bum:pe,scope:fe,update:ee,subTree:ie,um:le,m:ce,a:ne}=V;Eu(ce),Eu(ne),pe&&Ko(pe),fe.stop(),ee&&(ee.active=!1,L(ie,V,W,oe)),le&&Rt(le,W),Rt(()=>{V.isUnmounted=!0},W),W&&W.pendingBranch&&!W.isUnmounted&&V.asyncDep&&!V.asyncResolved&&V.suspenseId===W.pendingId&&(W.deps--,W.deps===0&&W.resolve())},B=(V,W,oe,pe=!1,fe=!1,ee=0)=>{for(let ie=ee;ie{if(V.shapeFlag&6)return j(V.component.subTree);if(V.shapeFlag&128)return V.suspense.next();const W=d(V.anchor||V.el),oe=W&&W[y1];return oe?d(oe):W};let Z=!1;const J=(V,W,oe)=>{V==null?W._vnode&&L(W._vnode,null,null,!0):b(W._vnode||null,V,W,null,null,null,oe),Z||(Z=!0,dm(),bu(),Z=!1),W._vnode=V},te={p:b,um:L,m:N,r:q,mt:M,mc:T,pc:G,pbc:A,n:j,o:e};let me,we;return t&&([me,we]=t(te)),{render:J,hydrate:me,createApp:FC(J,me)}}function Df({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Bi({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function E1(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Op(e,t,n=!1){const r=e.children,i=t.children;if(Oe(r)&&Oe(i))for(let a=0;a>1,e[n[l]]0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,s=n[a-1];a-- >0;)n[a]=s,s=t[s];return n}function x1(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:x1(t)}function Eu(e){if(e)for(let t=0;tgt(rT);function Ke(e,t){return Ws(e,null,t)}function S1(e,t){return Ws(e,null,{flush:"post"})}function oT(e,t){return Ws(e,null,{flush:"sync"})}const Nl={};function Le(e,t,n){return Ws(e,t,n)}function Ws(e,t,{immediate:n,deep:r,flush:i,once:a,onTrack:s,onTrigger:l}=ut){if(t&&a){const x=t;t=(...O)=>{x(...O),w()}}const u=At,f=x=>r===!0?x:xi(x,r===!1?1:void 0);let p,c=!1,d=!1;if(kt(e)?(p=()=>e.value,c=sa(e)):Yo(e)?(p=()=>f(e),c=!0):Oe(e)?(d=!0,c=e.some(x=>Yo(x)||sa(x)),p=()=>e.map(x=>{if(kt(x))return x.value;if(Yo(x))return f(x);if(je(x))return Gr(x,u,2)})):je(e)?t?p=()=>Gr(e,u,2):p=()=>(h&&h(),qn(e,u,3,[_])):p=un,t&&r){const x=p;p=()=>xi(x())}let h,_=x=>{h=y.onStop=()=>{Gr(x,u,4),h=y.onStop=void 0}},b;if(Gs)if(_=un,t?n&&qn(t,u,3,[p(),d?[]:void 0,_]):p(),i==="sync"){const x=iT();b=x.__watcherHandles||(x.__watcherHandles=[])}else return un;let E=d?new Array(e.length).fill(Nl):Nl;const v=()=>{if(!(!y.active||!y.dirty))if(t){const x=y.run();(r||c||(d?x.some((O,T)=>rr(O,E[T])):rr(x,E)))&&(h&&h(),qn(t,u,3,[x,E===Nl?void 0:d&&E[0]===Nl?[]:E,_]),E=x)}else y.run()};v.allowRecurse=!!t;let m;i==="sync"?m=v:i==="post"?m=()=>Rt(v,u&&u.suspense):(v.pre=!0,u&&(v.id=u.uid),m=()=>oc(v));const y=new _s(p,un,m),g=LO(),w=()=>{y.stop(),g&&ap(g.effects,y)};return t?n?v():E=y.run():i==="post"?Rt(y.run.bind(y),u&&u.suspense):y.run(),b&&b.push(w),w}function aT(e,t,n){const r=this.proxy,i=ct(e)?e.includes(".")?O1(r,e):()=>r[e]:e.bind(r,r);let a;je(t)?a=t:(a=t.handler,n=t);const s=ao(this),l=Ws(i,a.bind(r),n);return s(),l}function O1(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i{xi(r,t,n)});else if(bb(e)){for(const r in e)xi(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&xi(e[r],t,n)}return e}function LU(e,t,n=ut){const r=zt(),i=cn(t),a=an(t),s=C1(e,t),l=lC((u,f)=>{let p,c,d;return oT(()=>{const h=e[t];rr(p,h)&&(p=h,f())}),{get(){return u(),n.get?n.get(p):p},set(h){if(!rr(h,p))return;const _=r.vnode.props;_&&(t in _||i in _||a in _)&&(`onUpdate:${t}`in _||`onUpdate:${i}`in _||`onUpdate:${a}`in _)||(p=h,f());const b=n.set?n.set(h):h;r.emit(`update:${t}`,b),h!==b&&h!==c&&b===d&&f(),c=h,d=b}}});return l[Symbol.iterator]=()=>{let u=0;return{next(){return u<2?{value:u++?s||ut:l,done:!1}:{done:!0}}}},l}const C1=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${cn(t)}Modifiers`]||e[`${an(t)}Modifiers`];function sT(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||ut;let i=n;const a=t.startsWith("update:"),s=a&&C1(r,t.slice(7));s&&(s.trim&&(i=n.map(p=>ct(p)?p.trim():p)),s.number&&(i=n.map(mu)));let l,u=r[l=tu(t)]||r[l=tu(cn(t))];!u&&a&&(u=r[l=tu(an(t))]),u&&qn(u,e,6,i);const f=r[l+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,qn(f,e,6,i)}}function T1(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;const a=e.emits;let s={},l=!1;if(!je(e)){const u=f=>{const p=T1(f,t,!0);p&&(l=!0,bt(s,p))};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!a&&!l?(ft(e)&&r.set(e,null),null):(Oe(a)?a.forEach(u=>s[u]=null):bt(s,a),ft(e)&&r.set(e,s),s)}function dc(e,t){return!e||!Us(t)?!1:(t=t.slice(2).replace(/Once$/,""),tt(e,t[0].toLowerCase()+t.slice(1))||tt(e,an(t))||tt(e,t))}function nu(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:s,attrs:l,emit:u,render:f,renderCache:p,props:c,data:d,setupState:h,ctx:_,inheritAttrs:b}=e,E=Ss(e);let v,m;try{if(n.shapeFlag&4){const g=i||r,w=g;v=mn(f.call(w,g,p,c,h,d,_)),m=l}else{const g=t;v=mn(g.length>1?g(c,{attrs:l,slots:s,emit:u}):g(c,null)),m=t.props?l:uT(l)}}catch(g){ls.length=0,Ea(g,e,1),v=X(Mt)}let y=v;if(m&&b!==!1){const g=Object.keys(m),{shapeFlag:w}=y;g.length&&w&7&&(a&&g.some(op)&&(m=cT(m,a)),y=ir(y,m,!1,!0))}return n.dirs&&(y=ir(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&(y.transition=n.transition),v=y,Ss(E),v}function lT(e,t=!0){let n;for(let r=0;r{let t;for(const n in e)(n==="class"||n==="style"||Us(n))&&((t||(t={}))[n]=e[n]);return t},cT=(e,t)=>{const n={};for(const r in e)(!op(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function fT(e,t,n){const{props:r,children:i,component:a}=e,{props:s,children:l,patchFlag:u}=t,f=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return r?Tm(r,s,f):!!s;if(u&8){const p=t.dynamicProps;for(let c=0;ce.__isSuspense;let th=0;const dT={name:"Suspense",__isSuspense:!0,process(e,t,n,r,i,a,s,l,u,f){if(e==null)hT(t,n,r,i,a,s,l,u,f);else{if(a&&a.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}pT(e,t,n,r,i,s,l,u,f)}},hydrate:vT,normalize:mT},FU=dT;function Ts(e,t){const n=e.props&&e.props[t];je(n)&&n()}function hT(e,t,n,r,i,a,s,l,u){const{p:f,o:{createElement:p}}=u,c=p("div"),d=e.suspense=A1(e,i,r,t,c,n,a,s,l,u);f(null,d.pendingBranch=e.ssContent,c,null,r,d,a,s),d.deps>0?(Ts(e,"onPending"),Ts(e,"onFallback"),f(null,e.ssFallback,t,n,r,null,a,s),Qo(d,e.ssFallback)):d.resolve(!1,!0)}function pT(e,t,n,r,i,a,s,l,{p:u,um:f,o:{createElement:p}}){const c=t.suspense=e.suspense;c.vnode=t,t.el=e.el;const d=t.ssContent,h=t.ssFallback,{activeBranch:_,pendingBranch:b,isInFallback:E,isHydrating:v}=c;if(b)c.pendingBranch=d,tr(d,b)?(u(b,d,c.hiddenContainer,null,i,c,a,s,l),c.deps<=0?c.resolve():E&&(v||(u(_,h,n,r,i,null,a,s,l),Qo(c,h)))):(c.pendingId=th++,v?(c.isHydrating=!1,c.activeBranch=b):f(b,i,c),c.deps=0,c.effects.length=0,c.hiddenContainer=p("div"),E?(u(null,d,c.hiddenContainer,null,i,c,a,s,l),c.deps<=0?c.resolve():(u(_,h,n,r,i,null,a,s,l),Qo(c,h))):_&&tr(d,_)?(u(_,d,n,r,i,c,a,s,l),c.resolve(!0)):(u(null,d,c.hiddenContainer,null,i,c,a,s,l),c.deps<=0&&c.resolve()));else if(_&&tr(d,_))u(_,d,n,r,i,c,a,s,l),Qo(c,d);else if(Ts(t,"onPending"),c.pendingBranch=d,d.shapeFlag&512?c.pendingId=d.component.suspenseId:c.pendingId=th++,u(null,d,c.hiddenContainer,null,i,c,a,s,l),c.deps<=0)c.resolve();else{const{timeout:m,pendingId:y}=c;m>0?setTimeout(()=>{c.pendingId===y&&c.fallback(h)},m):m===0&&c.fallback(h)}}function A1(e,t,n,r,i,a,s,l,u,f,p=!1){const{p:c,m:d,um:h,n:_,o:{parentNode:b,remove:E}}=f;let v;const m=gT(e);m&&t&&t.pendingBranch&&(v=t.pendingId,t.deps++);const y=e.props?gu(e.props.timeout):void 0,g=a,w={vnode:e,parent:t,parentComponent:n,namespace:s,container:r,hiddenContainer:i,deps:0,pendingId:th++,timeout:typeof y=="number"?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!p,isHydrating:p,isUnmounted:!1,effects:[],resolve(x=!1,O=!1){const{vnode:T,activeBranch:P,pendingBranch:A,pendingId:S,effects:C,parentComponent:I,container:M}=w;let F=!1;w.isHydrating?w.isHydrating=!1:x||(F=P&&A.transition&&A.transition.mode==="out-in",F&&(P.transition.afterLeave=()=>{S===w.pendingId&&(d(A,M,a===g?_(P):a,0),Gd(C))}),P&&(b(P.el)!==w.hiddenContainer&&(a=_(P)),h(P,I,w,!0)),F||d(A,M,a,0)),Qo(w,A),w.pendingBranch=null,w.isInFallback=!1;let z=w.parent,U=!1;for(;z;){if(z.pendingBranch){z.effects.push(...C),U=!0;break}z=z.parent}!U&&!F&&Gd(C),w.effects=[],m&&t&&t.pendingBranch&&v===t.pendingId&&(t.deps--,t.deps===0&&!O&&t.resolve()),Ts(T,"onResolve")},fallback(x){if(!w.pendingBranch)return;const{vnode:O,activeBranch:T,parentComponent:P,container:A,namespace:S}=w;Ts(O,"onFallback");const C=_(T),I=()=>{!w.isInFallback||(c(null,x,A,C,P,null,S,l,u),Qo(w,x))},M=x.transition&&x.transition.mode==="out-in";M&&(T.transition.afterLeave=I),w.isInFallback=!0,h(T,P,null,!0),M||I()},move(x,O,T){w.activeBranch&&d(w.activeBranch,x,O,T),w.container=x},next(){return w.activeBranch&&_(w.activeBranch)},registerDep(x,O,T){const P=!!w.pendingBranch;P&&w.deps++;const A=x.vnode.el;x.asyncDep.catch(S=>{Ea(S,x,0)}).then(S=>{if(x.isUnmounted||w.isUnmounted||w.pendingId!==x.suspenseId)return;x.asyncResolved=!0;const{vnode:C}=x;ih(x,S,!1),A&&(C.el=A);const I=!A&&x.subTree.el;O(x,C,b(A||x.subTree.el),A?null:_(x.subTree),w,s,T),I&&E(I),Cp(x,C.el),P&&--w.deps===0&&w.resolve()})},unmount(x,O){w.isUnmounted=!0,w.activeBranch&&h(w.activeBranch,n,x,O),w.pendingBranch&&h(w.pendingBranch,n,x,O)}};return w}function vT(e,t,n,r,i,a,s,l,u){const f=t.suspense=A1(t,r,n,e.parentNode,document.createElement("div"),null,i,a,s,l,!0),p=u(e,f.pendingBranch=t.ssContent,n,f,a,s);return f.deps===0&&f.resolve(!1,!0),p}function mT(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Am(r?n.default:n),e.ssFallback=r?Am(n.fallback):X(Mt)}function Am(e){let t;if(je(e)){const n=oo&&e._c;n&&(e._d=!1,se()),e=e(),n&&(e._d=!0,t=Jt,k1())}return Oe(e)&&(e=lT(e)),e=mn(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function P1(e,t){t&&t.pendingBranch?Oe(e)?t.effects.push(...e):t.effects.push(e):Gd(e)}function Qo(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,Cp(r,i))}function gT(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Pe=Symbol.for("v-fgt"),Kr=Symbol.for("v-txt"),Mt=Symbol.for("v-cmt"),ea=Symbol.for("v-stc"),ls=[];let Jt=null;function se(e=!1){ls.push(Jt=e?null:[])}function k1(){ls.pop(),Jt=ls[ls.length-1]||null}let oo=1;function Pm(e){oo+=e,e<0&&Jt&&(Jt.hasOnce=!0)}function I1(e){return e.dynamicChildren=oo>0?Jt||zo:null,k1(),oo>0&&Jt&&Jt.push(e),e}function he(e,t,n,r,i,a){return I1(ve(e,t,n,r,i,a,!0))}function We(e,t,n,r,i){return I1(X(e,t,n,r,i,!0))}function zn(e){return e?e.__v_isVNode===!0:!1}function tr(e,t){return e.type===t.type&&e.key===t.key}function jU(e){}const N1=({key:e})=>e!=null?e:null,ru=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ct(e)||kt(e)||je(e)?{i:Pt,r:e,k:t,f:!!n}:e:null);function ve(e,t=null,n=null,r=0,i=null,a=e===Pe?0:1,s=!1,l=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&N1(t),ref:t&&ru(t),scopeId:ac,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Pt};return l?(Tp(u,n),a&128&&e.normalize(u)):n&&(u.shapeFlag|=ct(n)?8:16),oo>0&&!s&&Jt&&(u.patchFlag>0||a&6)&&u.patchFlag!==32&&Jt.push(u),u}const X=yT;function yT(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===n1)&&(e=Mt),zn(e)){const l=ir(e,t,!0);return n&&Tp(l,n),oo>0&&!a&&Jt&&(l.shapeFlag&6?Jt[Jt.indexOf(e)]=l:Jt.push(l)),l.patchFlag=-2,l}if(OT(e)&&(e=e.__vccOpts),t){t=Sa(t);let{class:l,style:u}=t;l&&!ct(l)&&(t.class=$e(l)),ft(u)&&(Bb(u)&&!Oe(u)&&(u=bt({},u)),t.style=it(u))}const s=ct(e)?1:eh(e)?128:VC(e)?64:ft(e)?4:je(e)?2:0;return ve(e,t,n,r,i,s,a,!0)}function Sa(e){return e?Bb(e)||f1(e)?bt({},e):e:null}function ir(e,t,n=!1,r=!1){const{props:i,ref:a,patchFlag:s,children:l,transition:u}=e,f=t?ri(i||{},t):i,p={__v_isVNode:!0,__v_skip:!0,type:e.type,props:f,key:f&&N1(f),ref:t&&t.ref?n&&a?Oe(a)?a.concat(ru(t)):[a,ru(t)]:ru(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Pe?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ir(e.ssContent),ssFallback:e.ssFallback&&ir(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&r&&io(p,u.clone(p)),p}function st(e=" ",t=0){return X(Kr,null,e,t)}function DU(e,t){const n=X(ea,null,e);return n.staticCount=t,n}function Ee(e="",t=!1){return t?(se(),We(Mt,null,e)):X(Mt,null,e)}function mn(e){return e==null||typeof e=="boolean"?X(Mt):Oe(e)?X(Pe,null,e.slice()):typeof e=="object"?_i(e):X(Kr,null,String(e))}function _i(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ir(e)}function Tp(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Oe(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),Tp(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!f1(t)?t._ctx=Pt:i===3&&Pt&&(Pt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else je(t)?(t={default:t,_ctx:Pt},n=32):(t=String(t),r&64?(n=16,t=[st(t)]):n=8);e.children=t,e.shapeFlag|=n}function ri(...e){const t={};for(let n=0;nAt||Pt;let xu,nh;{const e=up(),t=(n,r)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(r),a=>{i.length>1?i.forEach(s=>s(a)):i[0](a)}};xu=t("__VUE_INSTANCE_SETTERS__",n=>At=n),nh=t("__VUE_SSR_SETTERS__",n=>Gs=n)}const ao=e=>{const t=At;return xu(e),e.scope.on(),()=>{e.scope.off(),xu(t)}},rh=()=>{At&&At.scope.off(),xu(null)};function $1(e){return e.vnode.shapeFlag&4}let Gs=!1;function M1(e,t=!1,n=!1){t&&nh(t);const{props:r,children:i}=e.vnode,a=$1(e);jC(e,r,a,t),HC(e,i,n);const s=a?wT(e,t):void 0;return t&&nh(!1),s}function wT(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Yd);const{setup:r}=n;if(r){const i=e.setupContext=r.length>1?F1(e):null,a=ao(e);Qr();const s=Gr(r,e,0,[e.props,i]);if(ei(),a(),sp(s)){if(s.then(rh,rh),t)return s.then(l=>{ih(e,l,t)}).catch(l=>{Ea(l,e,0)});e.asyncDep=s}else ih(e,s,t)}else L1(e,t)}function ih(e,t,n){je(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ft(t)&&(e.setupState=Ub(t)),L1(e,n)}let Su,oh;function BU(e){Su=e,oh=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,kC))}}const qU=()=>!Su;function L1(e,t,n){const r=e.type;if(!e.render){if(!t&&Su&&!r.render){const i=r.template||xp(e).template;if(i){const{isCustomElement:a,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:u}=r,f=bt(bt({isCustomElement:a,delimiters:l},s),u);r.render=Su(i,f)}}e.render=r.render||un,oh&&oh(e)}{const i=ao(e);Qr();try{IC(e)}finally{ei(),i()}}}const ET={get(e,t){return bn(e,"get",""),e[t]}};function F1(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,ET),slots:e.slots,emit:e.emit,expose:t}}function Ks(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ub(rC(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in as)return as[n](e)},has(t,n){return n in t||n in as}})):e.proxy}const xT=/(?:^|[-_])(\w)/g,ST=e=>e.replace(xT,t=>t.toUpperCase()).replace(/[-_]/g,"");function Ou(e,t=!0){return je(e)?e.displayName||e.name:e.name||t&&e.__name}function j1(e,t,n=!1){let r=Ou(t);if(!r&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(r=i[1])}if(!r&&e&&e.parent){const i=a=>{for(const s in a)if(a[s]===t)return s};r=i(e.components||e.parent.type.components)||i(e.appContext.components)}return r?ST(r):n?"App":"Anonymous"}function OT(e){return je(e)&&"__vccOpts"in e}const ue=(e,t)=>iC(e,t,Gs);function la(e,t,n){const r=arguments.length;return r===2?ft(t)&&!Oe(t)?zn(t)?X(e,null,[t]):X(e,t):X(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&zn(n)&&(n=[n]),X(e,t,n))}function HU(){}function UU(e,t,n,r){const i=n[r];if(i&&CT(i,e))return i;const a=t();return a.memo=e.slice(),a.cacheIndex=r,n[r]=a}function CT(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r0&&Jt&&Jt.push(e),!0}const TT="3.4.33",VU=un,zU=vC,WU=Mo,GU=Yb,AT={createComponentInstance:R1,setupComponent:M1,renderComponentRoot:nu,setCurrentRenderingInstance:Ss,isVNode:zn,normalizeVNode:mn,getComponentPublicInstance:Ks},KU=AT,YU=null,XU=null,ZU=null;/** * @vue/runtime-dom v3.4.33 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/const PT="http://www.w3.org/2000/svg",kT="http://www.w3.org/1998/Math/MathML",Vr=typeof document<"u"?document:null,km=Vr&&Vr.createElement("template"),IT={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 i=t==="svg"?Vr.createElementNS(PT,e):t==="mathml"?Vr.createElementNS(kT,e):n?Vr.createElement(e,{is:n}):Vr.createElement(e);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>Vr.createTextNode(e),createComment:e=>Vr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Vr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,a){const s=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{km.innerHTML=r==="svg"?`${e}`:r==="mathml"?`${e}`:e;const l=km.content;if(r==="svg"||r==="mathml"){const u=l.firstChild;for(;u.firstChild;)l.appendChild(u.firstChild);l.removeChild(u)}t.insertBefore(l,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},di="transition",Va="animation",ua=Symbol("_vtc"),Pr=(e,{slots:t})=>la(wC,B1(e),t);Pr.displayName="Transition";const D1={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},NT=Pr.props=bt({},Zb,D1),qi=(e,t=[])=>{Oe(e)?e.forEach(n=>n(...t)):e&&e(...t)},Im=e=>e?Oe(e)?e.some(t=>t.length>1):e.length>1:!1;function B1(e){const t={};for(const C in e)C in D1||(t[C]=e[C]);if(e.css===!1)return t;const{name:n="v",type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:u=a,appearActiveClass:f=s,appearToClass:p=l,leaveFromClass:c=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,_=RT(i),b=_&&_[0],E=_&&_[1],{onBeforeEnter:v,onEnter:m,onEnterCancelled:y,onLeave:g,onLeaveCancelled:w,onBeforeAppear:x=v,onAppear:O=m,onAppearCancelled:T=y}=t,P=(C,I,M)=>{mi(C,I?p:l),mi(C,I?f:s),M&&M()},A=(C,I)=>{C._isLeaving=!1,mi(C,c),mi(C,h),mi(C,d),I&&I()},S=C=>(I,M)=>{const F=C?O:m,z=()=>P(I,C,M);qi(F,[I,z]),Nm(()=>{mi(I,C?u:a),Ur(I,C?p:l),Im(F)||Rm(I,r,b,z)})};return bt(t,{onBeforeEnter(C){qi(v,[C]),Ur(C,a),Ur(C,s)},onBeforeAppear(C){qi(x,[C]),Ur(C,u),Ur(C,f)},onEnter:S(!1),onAppear:S(!0),onLeave(C,I){C._isLeaving=!0;const M=()=>A(C,I);Ur(C,c),Ur(C,d),H1(),Nm(()=>{!C._isLeaving||(mi(C,c),Ur(C,h),Im(g)||Rm(C,r,E,M))}),qi(g,[C,M])},onEnterCancelled(C){P(C,!1),qi(y,[C])},onAppearCancelled(C){P(C,!0),qi(T,[C])},onLeaveCancelled(C){A(C),qi(w,[C])}})}function RT(e){if(e==null)return null;if(ft(e))return[Bf(e.enter),Bf(e.leave)];{const t=Bf(e);return[t,t]}}function Bf(e){return gu(e)}function Ur(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[ua]||(e[ua]=new Set)).add(t)}function mi(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[ua];n&&(n.delete(t),n.size||(e[ua]=void 0))}function Nm(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let $T=0;function Rm(e,t,n,r){const i=e._endId=++$T,a=()=>{i===e._endId&&r()};if(n)return setTimeout(a,n);const{type:s,timeout:l,propCount:u}=q1(e,t);if(!s)return r();const f=s+"end";let p=0;const c=()=>{e.removeEventListener(f,d),a()},d=h=>{h.target===e&&++p>=u&&c()};setTimeout(()=>{p(n[_]||"").split(", "),i=r(`${di}Delay`),a=r(`${di}Duration`),s=$m(i,a),l=r(`${Va}Delay`),u=r(`${Va}Duration`),f=$m(l,u);let p=null,c=0,d=0;t===di?s>0&&(p=di,c=s,d=a.length):t===Va?f>0&&(p=Va,c=f,d=u.length):(c=Math.max(s,f),p=c>0?s>f?di:Va:null,d=p?p===di?a.length:u.length:0);const h=p===di&&/\b(transform|all)(,|$)/.test(r(`${di}Property`).toString());return{type:p,timeout:c,propCount:d,hasTransform:h}}function $m(e,t){for(;e.lengthMm(n)+Mm(e[r])))}function Mm(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function H1(){return document.body.offsetHeight}function MT(e,t,n){const r=e[ua];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Cu=Symbol("_vod"),U1=Symbol("_vsh"),ca={beforeMount(e,{value:t},{transition:n}){e[Cu]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):za(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),za(e,!0),r.enter(e)):r.leave(e,()=>{za(e,!1)}):za(e,t))},beforeUnmount(e,{value:t}){za(e,t)}};function za(e,t){e.style.display=t?e[Cu]:"none",e[U1]=!t}function LT(){ca.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const V1=Symbol("");function JU(e){const t=zt();if(!t)return;const n=t.ut=(i=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(a=>sh(a,i))},r=()=>{const i=e(t.proxy);ah(t.subTree,i),n(i)};wt(()=>{S1(r);const i=new MutationObserver(r);i.observe(t.subTree.el.parentNode,{childList:!0}),ur(()=>i.disconnect())})}function ah(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{ah(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)sh(e.el,t);else if(e.type===Pe)e.children.forEach(n=>ah(n,t));else if(e.type===ea){let{el:n,anchor:r}=e;for(;n&&(sh(n,t),n!==r);)n=n.nextSibling}}function sh(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const i in t)n.setProperty(`--${i}`,t[i]),r+=`--${i}: ${t[i]};`;n[V1]=r}}const FT=/(^|;)\s*display\s*:/;function jT(e,t,n){const r=e.style,i=ct(n);let a=!1;if(n&&!i){if(t)if(ct(t))for(const s of t.split(";")){const l=s.slice(0,s.indexOf(":")).trim();n[l]==null&&iu(r,l,"")}else for(const s in t)n[s]==null&&iu(r,s,"");for(const s in n)s==="display"&&(a=!0),iu(r,s,n[s])}else if(i){if(t!==n){const s=r[V1];s&&(n+=";"+s),r.cssText=n,a=FT.test(n)}}else t&&e.removeAttribute("style");Cu in e&&(e[Cu]=a?r.display:"",e[U1]&&(r.display="none"))}const Lm=/\s*!important$/;function iu(e,t,n){if(Oe(n))n.forEach(r=>iu(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=DT(e,t);Lm.test(n)?e.setProperty(an(r),n.replace(Lm,""),"important"):e[r]=n}}const Fm=["Webkit","Moz","ms"],qf={};function DT(e,t){const n=qf[t];if(n)return n;let r=cn(t);if(r!=="filter"&&r in e)return qf[t]=r;r=ec(r);for(let i=0;iHf||(VT.then(()=>Hf=0),Hf=Date.now());function WT(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;qn(GT(r,n.value),t,5,[r])};return n.value=e,n.attached=zT(),n}function GT(e,t){if(Oe(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const Hm=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,KT=(e,t,n,r,i,a)=>{const s=i==="svg";t==="class"?MT(e,r,s):t==="style"?jT(e,n,r):Us(t)?op(t)||HT(e,t,n,r,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):YT(e,t,r,s))?(BT(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Dm(e,t,r,s,a,t!=="value")):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Dm(e,t,r,s))};function YT(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Hm(t)&&je(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Hm(t)&&ct(n)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function XT(e,t,n){const r=Ce(e,t);class i extends Ap{constructor(s){super(r,s,n)}}return i.def=r,i}/*! #__NO_SIDE_EFFECTS__ */const QU=(e,t)=>XT(e,t,cA),ZT=typeof HTMLElement<"u"?HTMLElement:class{};class Ap extends ZT{constructor(t,n={},r){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&r?r(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,Qe(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),Rn(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let r=0;r{for(const i of r)this._setAttr(i.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(r,i=!1)=>{const{props:a,styles:s}=r;let l;if(a&&!Oe(a))for(const u in a){const f=a[u];(f===Number||f&&f.type===Number)&&(u in this._props&&(this._props[u]=gu(this._props[u])),(l||(l=Object.create(null)))[cn(u)]=!0)}this._numberProps=l,i&&this._resolveProps(r),this._applyStyles(s),this._update()},n=this._def.__asyncLoader;n?n().then(r=>t(r,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,r=Oe(n)?n:Object.keys(n||{});for(const i of Object.keys(this))i[0]!=="_"&&r.includes(i)&&this._setProp(i,this[i],!0,!1);for(const i of r.map(cn))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(a){this._setProp(i,a)}})}_setAttr(t){let n=this.hasAttribute(t)?this.getAttribute(t):void 0;const r=cn(t);this._numberProps&&this._numberProps[r]&&(n=gu(n)),this._setProp(r,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,i=!0){n!==this._props[t]&&(this._props[t]=n,i&&this._instance&&this._update(),r&&(n===!0?this.setAttribute(an(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(an(t),n+""):n||this.removeAttribute(an(t))))}_update(){Rn(this._createVNode(),this.shadowRoot)}_createVNode(){const t=X(this._def,bt({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const r=(a,s)=>{this.dispatchEvent(new CustomEvent(a,{detail:s}))};n.emit=(a,...s)=>{r(a,s),an(a)!==a&&r(an(a),s)};let i=this;for(;i=i&&(i.parentNode||i.host);)if(i instanceof Ap){n.parent=i._instance,n.provides=i._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const r=document.createElement("style");r.textContent=n,this.shadowRoot.appendChild(r)})}}function eV(e="$style"){{const t=zt();if(!t)return ut;const n=t.type.__cssModules;if(!n)return ut;const r=n[e];return r||ut}}const z1=new WeakMap,W1=new WeakMap,Tu=Symbol("_moveCb"),Um=Symbol("_enterCb"),G1={name:"TransitionGroup",props:bt({},NT,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=zt(),r=Xb();let i,a;return vo(()=>{if(!i.length)return;const s=e.moveClass||`${e.name||"v"}-move`;if(!nA(i[0].el,n.vnode.el,s))return;i.forEach(QT),i.forEach(eA);const l=i.filter(tA);H1(),l.forEach(u=>{const f=u.el,p=f.style;Ur(f,s),p.transform=p.webkitTransform=p.transitionDuration="";const c=f[Tu]=d=>{d&&d.target!==f||(!d||/transform$/.test(d.propertyName))&&(f.removeEventListener("transitionend",c),f[Tu]=null,mi(f,s))};f.addEventListener("transitionend",c)})}),()=>{const s=qe(e),l=B1(s);let u=s.tag||Pe;if(i=[],a)for(let f=0;fdelete e.mode;G1.props;const K1=G1;function QT(e){const t=e.el;t[Tu]&&t[Tu](),t[Um]&&t[Um]()}function eA(e){W1.set(e,e.el.getBoundingClientRect())}function tA(e){const t=z1.get(e),n=W1.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){const a=e.el.style;return a.transform=a.webkitTransform=`translate(${r}px,${i}px)`,a.transitionDuration="0s",e}}function nA(e,t,n){const r=e.cloneNode(),i=e[ua];i&&i.forEach(l=>{l.split(/\s+/).forEach(u=>u&&r.classList.remove(u))}),n.split(/\s+/).forEach(l=>l&&r.classList.add(l)),r.style.display="none";const a=t.nodeType===1?t:t.parentNode;a.appendChild(r);const{hasTransform:s}=q1(r);return a.removeChild(r),s}const Ai=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Oe(t)?n=>Ko(t,n):t};function rA(e){e.target.composing=!0}function Vm(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Hn=Symbol("_assign"),lh={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[Hn]=Ai(i);const a=r||i.props&&i.props.type==="number";zr(e,t?"change":"input",s=>{if(s.target.composing)return;let l=e.value;n&&(l=l.trim()),a&&(l=mu(l)),e[Hn](l)}),n&&zr(e,"change",()=>{e.value=e.value.trim()}),t||(zr(e,"compositionstart",rA),zr(e,"compositionend",Vm),zr(e,"change",Vm))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},s){if(e[Hn]=Ai(s),e.composing)return;const l=(a||e.type==="number")&&!/^0\d/.test(e.value)?mu(e.value):e.value,u=t==null?"":t;l!==u&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||i&&e.value.trim()===u)||(e.value=u))}},Y1={deep:!0,created(e,t,n){e[Hn]=Ai(n),zr(e,"change",()=>{const r=e._modelValue,i=fa(e),a=e.checked,s=e[Hn];if(Oe(r)){const l=tc(r,i),u=l!==-1;if(a&&!u)s(r.concat(i));else if(!a&&u){const f=[...r];f.splice(l,1),s(f)}}else if(po(r)){const l=new Set(r);a?l.add(i):l.delete(i),s(l)}else s(Z1(e,a))})},mounted:zm,beforeUpdate(e,t,n){e[Hn]=Ai(n),zm(e,t,n)}};function zm(e,{value:t,oldValue:n},r){e._modelValue=t,Oe(t)?e.checked=tc(t,r.props.value)>-1:po(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=Ti(t,Z1(e,!0)))}const X1={created(e,{value:t},n){e.checked=Ti(t,n.props.value),e[Hn]=Ai(n),zr(e,"change",()=>{e[Hn](fa(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Hn]=Ai(r),t!==n&&(e.checked=Ti(t,r.props.value))}},iA={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=po(t);zr(e,"change",()=>{const a=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>n?mu(fa(s)):fa(s));e[Hn](e.multiple?i?new Set(a):a:a[0]),e._assigning=!0,Qe(()=>{e._assigning=!1})}),e[Hn]=Ai(r)},mounted(e,{value:t,modifiers:{number:n}}){Wm(e,t)},beforeUpdate(e,t,n){e[Hn]=Ai(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||Wm(e,t)}};function Wm(e,t,n){const r=e.multiple,i=Oe(t);if(!(r&&!i&&!po(t))){for(let a=0,s=e.options.length;aString(p)===String(u)):l.selected=tc(t,u)>-1}else l.selected=t.has(u);else if(Ti(fa(l),t)){e.selectedIndex!==a&&(e.selectedIndex=a);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function fa(e){return"_value"in e?e._value:e.value}function Z1(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const oA={created(e,t,n){Rl(e,t,n,null,"created")},mounted(e,t,n){Rl(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Rl(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Rl(e,t,n,r,"updated")}};function J1(e,t){switch(e){case"SELECT":return iA;case"TEXTAREA":return lh;default:switch(t){case"checkbox":return Y1;case"radio":return X1;default:return lh}}}function Rl(e,t,n,r,i){const s=J1(e.tagName,n.props&&n.props.type)[i];s&&s(e,t,n,r)}function aA(){lh.getSSRProps=({value:e})=>({value:e}),X1.getSSRProps=({value:e},t)=>{if(t.props&&Ti(t.props.value,e))return{checked:!0}},Y1.getSSRProps=({value:e},t)=>{if(Oe(e)){if(t.props&&tc(e,t.props.value)>-1)return{checked:!0}}else if(po(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},oA.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=J1(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const sA=["ctrl","shift","alt","meta"],lA={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>sA.some(n=>e[`${n}Key`]&&!t.includes(n))},hc=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(i,...a)=>{for(let s=0;s{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=i=>{if(!("key"in i))return;const a=an(i.key);if(t.some(s=>s===a||uA[s]===a))return e(i)})},Q1=bt({patchProp:KT},IT);let us,Gm=!1;function e_(){return us||(us=eT(Q1))}function t_(){return us=Gm?us:tT(Q1),Gm=!0,us}const Rn=(...e)=>{e_().render(...e)},cA=(...e)=>{t_().hydrate(...e)},fA=(...e)=>{const t=e_().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=r_(r);if(!i)return;const a=t._component;!je(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.innerHTML="";const s=n(i,!1,n_(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),s},t},nV=(...e)=>{const t=t_().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=r_(r);if(i)return n(i,!0,n_(i))},t};function n_(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function r_(e){return ct(e)?document.querySelector(e):e}let Km=!1;const rV=()=>{Km||(Km=!0,aA(),LT())};const dA="modulepreload",hA=function(e,t){return new URL(e,t).href},Ym={},Ze=function(t,n,r){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(a=>{if(a=hA(a,r),a in Ym)return;Ym[a]=!0;const s=a.endsWith(".css"),l=s?'[rel="stylesheet"]':"";if(!!r)for(let p=i.length-1;p>=0;p--){const c=i[p];if(c.href===a&&(!s||c.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${l}`))return;const f=document.createElement("link");if(f.rel=s?"stylesheet":dA,s||(f.as="script",f.crossOrigin=""),f.href=a,document.head.appendChild(f),s)return new Promise((p,c)=>{f.addEventListener("load",p),f.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${a}`)))})})).then(()=>t())},pA=Object.prototype.toString,vA=e=>pA.call(e),Xm=e=>vA(e).slice(8,-1),Lo=(e,t,n)=>{if(e===t)return!1;const r=Xm(e),i=Xm(t);if(r!==i)return!0;if(r==="String"||r==="Number"||r==="Boolean")return r==="Number"&&isNaN(e)&&isNaN(t)?!1:e!==t;const a=Array.from(n.values());for(const s of a)if(s.includes(e)&&s.includes(t))return!1;if(n.add([e,t]),r==="Array")return e.length!==t.length||e.some((s,l)=>Lo(s,t[l],n));if(r==="Object"){const s=Object.keys(e).sort(),l=Object.keys(t).sort();return Lo(s,l,n)||s.some(u=>Lo(e[u],t[u],n))}else if(r==="Map"){const s=Array.from(e.keys()).sort(),l=Array.from(t.keys()).sort();return Lo(s,l,n)||s.some(u=>Lo(e.get(u),t.get(u),n))}else return r==="Set"?Oa(Array.from(e.values()),Array.from(t.values())):e!==t},Oa=(e,t)=>Lo(e,t,new Set),pc=(e,t)=>{const n=[],r=[];for(const i of e)t.includes(i)||n.push(i);for(const i of t)e.includes(i)||r.push(i);return{added:n,deleted:r}},ou=(e,t)=>~e.indexOf(t)?!1:(e.push(t),!0),mA=(e,t)=>{const n=e.indexOf(t);return~n?(e.splice(n,1),!0):!1};function ki(e,t,n){return async r=>{let i;n?i=await n(r):i=r;const a=await t(i),s=e.value.find(l=>l.id===r.id);return s?Object.assign(s,a):ou(e.value,r),a}}function Ii(e,t,n){return async(r,i)=>{let a;n?a=await n(r):a=r,await t(a,i);const s=e.value.find(l=>l.id===r.id);s&&Object.assign(s,r)}}function ii(e,t,n){return async r=>{let i;n?i=await n(r):i=r,await t(i),mA(e.value,r)}}function Ys(e,t,n,r){return async()=>{const i=await t();let a;r?a=await r(i):a=i,e.value=a,n&&n()}}const kr=(e,t,n)=>()=>{const r=t(),{deleted:i,updated:a,added:s}=i_(e.value,r);console.log(i,a,s,e.value.length,r.length);const l=[];if(n.delete)for(const u of i)l.push(n.delete(u));if(n.update)for(const[u,f]of a)l.push(n.update(u,f));if(n.add)for(const u of s)l.push(n.add(u));return Promise.all(l)},i_=(e,t)=>{const n=[],r=[],i=[];e=qe(e);for(const a of e){const s=t.find(l=>a.id===l.id);s?Oa(s,a)&&ou(i,[a,s]):ou(n,a)}for(const a of t)e.find(l=>l.id===a.id)||ou(r,a);return{added:n,deleted:r,updated:i}},oi=(e,t)=>()=>{const n=t();e.value=n.map(r=>{const i=e.value.find(a=>a.id===r.id);return i?Object.assign(i,r):r})},nn=(e,t)=>{const n=pp([]);return e!==void 0&&n.push(e),{push(r){return n.push(r),t&&console.warn("push",r),()=>{const i=n.indexOf(r);~i&&n.splice(i,1),t&&(console.warn("pop",r),console.warn("current",n))}},pop(){let r=n[n.length---1];return t&&console.warn("pop current",n),r},current:ue(()=>n[n.length-1]),length:ue(()=>n.length)}},gA=e=>{const t={},n=Object.keys(e);return new Proxy(t,{get(i,a){return n.includes(a)?kt(e[a].current.value)?e[a].current.value.value:e[a].current.value:e[a]},set(i,a,s){return kt(e[a].current.value)?e[a].current.value.value=s:e[a].current.value=s,!0}})};function ta(e,{props:t,children:n,element:r,app:i}={}){let a=r,s=X(e,t,n);return i&&i._context&&(s.appContext=i._context),a?Rn(s,a):typeof document<"u"&&Rn(s,a=document.createElement("div")),{vNode:s,destroy:()=>{a&&Rn(null,a),a=null,s=null},el:a}}function o_(...e){return e.forEach(t=>{t.install=function(n){t.use&&t.use(n),n.component(t.name,t)}}),e}let yA=1e4;const Xs=()=>++yA,Et=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},bA={name:"ui-dialog-content"},_A={class:"ui-dialog__box"},wA={key:0},EA={key:1};function xA(e,t,n,r,i,a){return se(),he("div",_A,[e.$slots.header?(se(),he("header",wA,[Se(e.$slots,"header")])):Ee("",!0),ve("section",null,[Se(e.$slots,"default")]),e.$slots.footer?(se(),he("footer",EA,[Se(e.$slots,"footer")])):Ee("",!0)])}const a_=Et(bA,[["render",xA]]),SA=Ce({name:"ui-dialog",setup:function(e,t){return{show:ae(!0),zIndex:Xs()}},components:{DialogContent:a_}});function OA(e,t,n,r,i,a){const s=mt("dialog-content");return se(),We(ni,{to:"body"},[e.show?(se(),he("div",{key:0,class:"ui-dialog",style:it({zIndex:e.zIndex})},[X(s,null,xa({_:2},[Gn(e.$slots,(l,u)=>({name:u,fn:De(f=>[Se(e.$slots,u,Vs(Sa(f)))])}))]),1024)],4)):Ee("",!0)])}const Uo=Et(SA,[["render",OA]]),CA=Ce({name:"ui-window",setup:function(e,t){}});function TA(e,t,n,r,i,a){return mt("ui-dialog"),Ee("",!0)}const AA=Et(CA,[["render",TA]]);const PA=Ce({name:"ui-toast",props:{type:String,delay:Number,content:String,destroy:Function},setup:function(e,t){const n=ae(!0),r=()=>{n.value=!1,Qe(()=>{typeof e.destroy=="function"&&e.destroy()})};return e.type!=="fixed"&&setTimeout(()=>r(),e.delay||3e3),{show:n,type:e.type,close:r,content:e.content,zIndex:Xs()}}}),kA=e=>(sc("data-v-eb369ae0"),e=e(),lc(),e),IA=kA(()=>ve("i",{class:"icon"},null,-1));function NA(e,t,n,r,i,a){return se(),We(ni,{to:"body"},[X(Pr,{name:"slide-down",mode:"out-in",appear:""},{default:De(()=>[e.show?(se(),he("div",{key:0,class:"ui-toast",style:it({zIndex:e.zIndex})},[ve("div",{class:$e(["ui-toast__box",[e.type]])},[IA,ve("div",null,Re(e.content),1),ve("i",{class:"iconfont icon-close close",onClick:t[0]||(t[0]=(...s)=>e.close&&e.close(...s))})],2)],4)):Ee("",!0)]),_:1})])}const s_=Et(PA,[["render",NA],["__scopeId","data-v-eb369ae0"]]),Zm=Symbol("nest-wh"),RA=e=>{const t=Promise.resolve(),n=gt(Zm,Promise.resolve());St(Zm,t);const r=ae(0),i=ae(null),a=ae(!1);return[r,i,a,l=>{if(r.value=0,a.value=!1,i.value)return n.then(()=>t.then(()=>new Promise(u=>{setTimeout(()=>{if(i.value){const f=e==="width"?i.value.offsetWidth:i.value.offsetHeight;u(),setTimeout(()=>{r.value=f,a.value=!0,u(),l&&l()})}})})))}]},$A=(e=!1,t="height")=>{const[n,r,i,a]=RA(t),s=ae(0),l=ue({get:()=>s.value!=0,set:f=>{s.value=f?n.value:0,e=f}}),u=(f=!l.value)=>{l.value=f};return wt(()=>{a(()=>l.value=e)}),[r,u,s,n,l,i,()=>{s.value=0,a(()=>{l.value=e})}]},l_=e=>{if(e==null)return null;if(e===document.documentElement)return e;const t=getComputedStyle(e).overflowY,n=getComputedStyle(e).overflowX;return e.scrollHeight>e.clientHeight||t==="auto"||t==="scroll"||n==="auto"||n==="scroll"?e:l_(e.parentNode)},MA=(e,t)=>{const n=[];let r=e;for(;r&&r!==t&&r!==document.documentElement&&t.contains(r);){const i=l_(r);if(i)i!==e&&n.push(i),r=i.parentNode;else break}return n},LA=(e,t,n=!1,r=!1)=>{const i={x:0,y:0,width:e.offsetWidth,height:e.offsetHeight};let a=e;if(r){if(a!==t){const s=a.getBoundingClientRect(),l=t.getBoundingClientRect();i.x+=s.x-l.x,i.y+=s.y-l.y}}else for(;a&&a!==t&&a!==document.documentElement&&t.contains(a);)i.x+=a.offsetLeft+a.clientLeft,i.y+=a.offsetTop+a.clientTop,a=a.offsetParent;return n&&(i.x+=i.width,i.y+=i.height),i},As=e=>e===void 0?e:xr(e)==="Number"?e?e<=1&e>=0?100*e+"%":e+"px":void 0:e.includes("px")?As(parseFloat(e)):e.includes("%")?As(parseFloat(e)/100):e,FA=Object.prototype.toString,jA=e=>FA.call(e),xr=e=>jA(e).slice(8,-1),Au=e=>xr(e)==="Function"||xr(e)==="AsyncFunction";function u_(e,...t){const n={...e};return t.forEach(function(r){delete n[r]}),n}const vc=(e=6)=>{var t="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678",n=t.length,r="";for(let i=0;i{if(e===t)return!1;const r=xr(e),i=xr(t);if(r!==i)return!0;if(r==="String"||r==="Number"||r==="Boolean")return e!==t;const a=Array.from(n.values());for(const s of a)if(s.includes(e)&&s.includes(t))return!1;if(n.add([e,t]),r==="Array")return e.length!==t.length||e.some((s,l)=>Fo(s,t[l],n));if(r==="Object"){const s=Object.keys(e).sort(),l=Object.keys(t).sort();return Fo(s,l,n)||s.some(u=>Fo(e[u],t[u],n))}else if(r==="Map"){const s=Array.from(e.keys()).sort(),l=Array.from(t.keys()).sort();return Fo(s,l,n)||s.some(u=>Fo(e.get(u),t.get(u),n))}else return r==="Set"?c_(Array.from(e.values()),Array.from(t.values())):e!==t},Bn=function(){let e=navigator.userAgent,t=/(?:Windows Phone)/.test(e),n=/(?:SymbianOS)/.test(e)||t,r=/(?:Android)/.test(e),i=/(?:Firefox)/.test(e);/(?:Chrome|CriOS)/.test(e);let a=/(?:iPad|PlayBook)/.test(e)||r&&!/(?:Mobile)/.test(e)||i&&/(?:Tablet)/.test(e),s=/(?:iPhone)/.test(e)&&!a,l=!s&&!r&&!n;return l&&navigator.maxTouchPoints>1&&(a=!0),{isTablet:a,isPhone:s,isAndroid:r,isPc:l}}(),c_=(e,t)=>Fo(e,t,new Set),DA=Ce({name:"ui-alert",props:{title:{type:String,default:"\u63D0\u793A"},okText:{type:String,default:"\u786E\u5B9A"},func:Function,content:String,destroy:Function},setup:function(e,t){const n=()=>{Au(e.func)&&e.func()===!1||Au(e.destroy)&&e.destroy()};return{...u_(e,"destroy","func"),close:n}}});function BA(e,t,n,r,i,a){const s=mt("ui-button"),l=mt("ui-dialog");return se(),We(l,null,{header:De(()=>[ve("span",null,Re(e.title),1),ve("i",{class:"iconfont icon-close fun-ctrl",onClick:t[0]||(t[0]=(...u)=>e.close&&e.close(...u))})]),footer:De(()=>[X(s,{type:"submit",onClick:e.close},{default:De(()=>[st(Re(e.okText),1)]),_:1},8,["onClick"])]),default:De(()=>[st(" "+Re(e.content)+" ",1)]),_:1})}const f_=Et(DA,[["render",BA]]),qA=Ce({name:"ui-confirm",props:{title:{type:String,default:"\u63D0\u793A"},okText:{type:String,default:"\u786E\u5B9A"},noText:{type:String,default:"\u53D6\u6D88"},func:Function,content:String,destroy:Function},setup:function(e,t){const n=r=>{Au(e.func)&&e.func(r)===!1||Au(e.destroy)&&e.destroy()};return{...u_(e,"destroy","func"),close:n}}}),HA={key:1},UA={key:1,class:"confirm-content"};function VA(e,t,n,r,i,a){const s=mt("ui-button"),l=mt("ui-dialog");return se(),We(l,null,{header:De(()=>[e.$slots.header?(se(),he("span",HA,Re(e.title),1)):(se(),he(Pe,{key:0},[ve("span",null,Re(e.title),1),e.func?(se(),he("i",{key:0,class:"iconfont icon-close fun-ctrl",onClick:t[0]||(t[0]=u=>e.close("no"))})):Ee("",!0)],64))]),footer:De(()=>[e.$slots.footer?Se(e.$slots,"footer",{key:1}):(se(),he(Pe,{key:0},[X(s,{type:"submit",onClick:t[1]||(t[1]=u=>e.close("no"))},{default:De(()=>[st(Re(e.noText),1)]),_:1}),X(s,{type:"primary",onClick:t[2]||(t[2]=u=>e.close("ok"))},{default:De(()=>[st(Re(e.okText),1)]),_:1})],64))]),default:De(()=>[e.$slots.content?Se(e.$slots,"content",{key:0}):(se(),he("pre",UA,Re(e.content),1))]),_:3})}const d_=Et(qA,[["render",VA]]);Uo.use=function(t){Uo.toast=function(n){typeof n=="string"&&(n={content:n});const{destroy:r,vNode:i,el:a}=ta(s_,{app:t,props:{...n,destroy:r}});return this.toast.hide=function(){r()},this.toast},Uo.alert=function(n){return typeof n=="string"&&(n={content:n}),new Promise(r=>{const i={...n,destroy:()=>{a(),r()}},{destroy:a}=ta(f_,{app:t,props:i})})},Uo.confirm=function(n){typeof n=="string"&&(n={content:n});let r;n.func||(r=new Promise(a=>{n.func=s=>a(s==="ok")}));const{destroy:i}=ta(d_,{app:t,props:{...n,destroy:()=>i()}});return this.confirm.hide=function(){i()},r||this.confirm}};const zA=ve("div",{class:"ui-loading__box"},[ve("div",{class:"default"},[ve("div"),ve("div"),ve("div")])],-1),WA=[zA],GA={name:"ui-loading"},An=Object.assign(GA,{props:{el:{default:"body"},size:{default:15},color:{default:"#fff"}},setup(e){const t=Xs();return(n,r)=>(se(),We(ni,{to:e.el},[ve("div",{class:"ui-loading",style:it({zIndex:xe(t),["--width"]:e.size+"px",["--color"]:e.color})},WA,4)],8,["to"]))}}),Jm=1,Fr=[];An.use=function(t){An.show=function(n,r){if(Fr.length)Fr.push({key:r,close:Jm});else{const{destroy:i}=ta(An,{app:t,props:{...n}});Fr.push({key:r,close:i})}},An.hide=function(n){if(Fr.length){const{key:r}=Fr[Fr.length-1];if(r===n){const{close:i}=Fr.pop();i!==Jm&&i()}}},An.hideAll=function(){for(const{close:n}of Fr)typeof n=="function"&&n();Fr.length=0}};const KA=(e,t)=>{const n=e[t];return n?typeof n=="function"?n():Promise.resolve(n):new Promise((r,i)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(i.bind(null,new Error("Unknown variable dynamic import: "+t)))})};var Ut=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function h_(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function iV(e){var t=e.default;if(typeof t=="function"){var n=function(){return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var p_={exports:{}},Pp={exports:{}},v_=function(t,n){return function(){for(var i=new Array(arguments.length),a=0;a"u"}function XA(e){return e!==null&&!Pu(e)&&e.constructor!==null&&!Pu(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}var m_=mo("ArrayBuffer");function ZA(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&m_(e.buffer),t}function JA(e){return typeof e=="string"}function QA(e){return typeof e=="number"}function g_(e){return e!==null&&typeof e=="object"}function au(e){if(Ip(e)!=="object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}var e2=mo("Date"),t2=mo("File"),n2=mo("Blob"),r2=mo("FileList");function Rp(e){return kp.call(e)==="[object Function]"}function i2(e){return g_(e)&&Rp(e.pipe)}function o2(e){var t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||kp.call(e)===t||Rp(e.toString)&&e.toString()===t)}var a2=mo("URLSearchParams");function s2(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function l2(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function $p(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),Np(e))for(var n=0,r=e.length;n0;)a=r[i],s[a]||(t[a]=e[a],s[a]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t}function h2(e,t,n){e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return r!==-1&&r===n}function p2(e){if(!e)return null;var t=e.length;if(Pu(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n}var v2=function(e){return function(t){return e&&t instanceof e}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array)),Wt={isArray:Np,isArrayBuffer:m_,isBuffer:XA,isFormData:o2,isArrayBufferView:ZA,isString:JA,isNumber:QA,isObject:g_,isPlainObject:au,isUndefined:Pu,isDate:e2,isFile:t2,isBlob:n2,isFunction:Rp,isStream:i2,isURLSearchParams:a2,isStandardBrowserEnv:l2,forEach:$p,merge:uh,extend:u2,trim:s2,stripBOM:c2,inherits:f2,toFlatObject:d2,kindOf:Ip,kindOfTest:mo,endsWith:h2,toArray:p2,isTypedArray:v2,isFileList:r2},ko=Wt;function Qm(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var y_=function(t,n,r){if(!n)return t;var i;if(r)i=r(n);else if(ko.isURLSearchParams(n))i=n.toString();else{var a=[];ko.forEach(n,function(u,f){u===null||typeof u>"u"||(ko.isArray(u)?f=f+"[]":u=[u],ko.forEach(u,function(c){ko.isDate(c)?c=c.toISOString():ko.isObject(c)&&(c=JSON.stringify(c)),a.push(Qm(f)+"="+Qm(c))}))}),i=a.join("&")}if(i){var s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t},m2=Wt;function mc(){this.handlers=[]}mc.prototype.use=function(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1};mc.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};mc.prototype.forEach=function(t){m2.forEach(this.handlers,function(r){r!==null&&t(r)})};var g2=mc,y2=Wt,b2=function(t,n){y2.forEach(t,function(i,a){a!==n&&a.toUpperCase()===n.toUpperCase()&&(t[n]=i,delete t[a])})},b_=Wt;function da(e,t,n,r,i){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}b_.inherits(da,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var __=da.prototype,w_={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(e){w_[e]={value:e}});Object.defineProperties(da,w_);Object.defineProperty(__,"isAxiosError",{value:!0});da.from=function(e,t,n,r,i,a){var s=Object.create(__);return b_.toFlatObject(e,s,function(u){return u!==Error.prototype}),da.call(s,e.message,t,n,r,i),s.name=e.name,a&&Object.assign(s,a),s};var Ca=da,E_={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Jn=Wt;function _2(e,t){t=t||new FormData;var n=[];function r(a){return a===null?"":Jn.isDate(a)?a.toISOString():Jn.isArrayBuffer(a)||Jn.isTypedArray(a)?typeof Blob=="function"?new Blob([a]):Buffer.from(a):a}function i(a,s){if(Jn.isPlainObject(a)||Jn.isArray(a)){if(n.indexOf(a)!==-1)throw Error("Circular reference detected in "+s);n.push(a),Jn.forEach(a,function(u,f){if(!Jn.isUndefined(u)){var p=s?s+"."+f:f,c;if(u&&!s&&typeof u=="object"){if(Jn.endsWith(f,"{}"))u=JSON.stringify(u);else if(Jn.endsWith(f,"[]")&&(c=Jn.toArray(u))){c.forEach(function(d){!Jn.isUndefined(d)&&t.append(p,r(d))});return}}i(u,p)}}),n.pop()}else t.append(s,r(a))}return i(e),t}var x_=_2,Uf,eg;function w2(){if(eg)return Uf;eg=1;var e=Ca;return Uf=function(n,r,i){var a=i.config.validateStatus;!i.status||!a||a(i.status)?n(i):r(new e("Request failed with status code "+i.status,[e.ERR_BAD_REQUEST,e.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))},Uf}var Vf,tg;function E2(){if(tg)return Vf;tg=1;var e=Wt;return Vf=e.isStandardBrowserEnv()?function(){return{write:function(r,i,a,s,l,u){var f=[];f.push(r+"="+encodeURIComponent(i)),e.isNumber(a)&&f.push("expires="+new Date(a).toGMTString()),e.isString(s)&&f.push("path="+s),e.isString(l)&&f.push("domain="+l),u===!0&&f.push("secure"),document.cookie=f.join("; ")},read:function(r){var i=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),Vf}var x2=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)},S2=function(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t},O2=x2,C2=S2,S_=function(t,n){return t&&!O2(n)?C2(t,n):n},zf,ng;function T2(){if(ng)return zf;ng=1;var e=Wt,t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return zf=function(r){var i={},a,s,l;return r&&e.forEach(r.split(` `),function(f){if(l=f.indexOf(":"),a=e.trim(f.substr(0,l)).toLowerCase(),s=e.trim(f.substr(l+1)),a){if(i[a]&&t.indexOf(a)>=0)return;a==="set-cookie"?i[a]=(i[a]?i[a]:[]).concat([s]):i[a]=i[a]?i[a]+", "+s:s}}),i},zf}var Wf,rg;function A2(){if(rg)return Wf;rg=1;var e=Wt;return Wf=e.isStandardBrowserEnv()?function(){var n=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),i;function a(s){var l=s;return n&&(r.setAttribute("href",l),l=r.href),r.setAttribute("href",l),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return i=a(window.location.href),function(l){var u=e.isString(l)?a(l):l;return u.protocol===i.protocol&&u.host===i.host}}():function(){return function(){return!0}}(),Wf}var Gf,ig;function gc(){if(ig)return Gf;ig=1;var e=Ca,t=Wt;function n(r){e.call(this,r==null?"canceled":r,e.ERR_CANCELED),this.name="CanceledError"}return t.inherits(n,e,{__CANCEL__:!0}),Gf=n,Gf}var Kf,og;function P2(){return og||(og=1,Kf=function(t){var n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}),Kf}var Yf,ag;function sg(){if(ag)return Yf;ag=1;var e=Wt,t=w2(),n=E2(),r=y_,i=S_,a=T2(),s=A2(),l=E_,u=Ca,f=gc(),p=P2();return Yf=function(d){return new Promise(function(_,b){var E=d.data,v=d.headers,m=d.responseType,y;function g(){d.cancelToken&&d.cancelToken.unsubscribe(y),d.signal&&d.signal.removeEventListener("abort",y)}e.isFormData(E)&&e.isStandardBrowserEnv()&&delete v["Content-Type"];var w=new XMLHttpRequest;if(d.auth){var x=d.auth.username||"",O=d.auth.password?unescape(encodeURIComponent(d.auth.password)):"";v.Authorization="Basic "+btoa(x+":"+O)}var T=i(d.baseURL,d.url);w.open(d.method.toUpperCase(),r(T,d.params,d.paramsSerializer),!0),w.timeout=d.timeout;function P(){if(!!w){var C="getAllResponseHeaders"in w?a(w.getAllResponseHeaders()):null,I=!m||m==="text"||m==="json"?w.responseText:w.response,M={data:I,status:w.status,statusText:w.statusText,headers:C,config:d,request:w};t(function(z){_(z),g()},function(z){b(z),g()},M),w=null}}if("onloadend"in w?w.onloadend=P:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(P)},w.onabort=function(){!w||(b(new u("Request aborted",u.ECONNABORTED,d,w)),w=null)},w.onerror=function(){b(new u("Network Error",u.ERR_NETWORK,d,w,w)),w=null},w.ontimeout=function(){var I=d.timeout?"timeout of "+d.timeout+"ms exceeded":"timeout exceeded",M=d.transitional||l;d.timeoutErrorMessage&&(I=d.timeoutErrorMessage),b(new u(I,M.clarifyTimeoutError?u.ETIMEDOUT:u.ECONNABORTED,d,w)),w=null},e.isStandardBrowserEnv()){var A=(d.withCredentials||s(T))&&d.xsrfCookieName?n.read(d.xsrfCookieName):void 0;A&&(v[d.xsrfHeaderName]=A)}"setRequestHeader"in w&&e.forEach(v,function(I,M){typeof E>"u"&&M.toLowerCase()==="content-type"?delete v[M]:w.setRequestHeader(M,I)}),e.isUndefined(d.withCredentials)||(w.withCredentials=!!d.withCredentials),m&&m!=="json"&&(w.responseType=d.responseType),typeof d.onDownloadProgress=="function"&&w.addEventListener("progress",d.onDownloadProgress),typeof d.onUploadProgress=="function"&&w.upload&&w.upload.addEventListener("progress",d.onUploadProgress),(d.cancelToken||d.signal)&&(y=function(C){!w||(b(!C||C&&C.type?new f:C),w.abort(),w=null)},d.cancelToken&&d.cancelToken.subscribe(y),d.signal&&(d.signal.aborted?y():d.signal.addEventListener("abort",y))),E||(E=null);var S=p(T);if(S&&["http","https","file"].indexOf(S)===-1){b(new u("Unsupported protocol "+S+":",u.ERR_BAD_REQUEST,d));return}w.send(E)})},Yf}var Xf,lg;function k2(){return lg||(lg=1,Xf=null),Xf}var $t=Wt,ug=b2,cg=Ca,I2=E_,N2=x_,R2={"Content-Type":"application/x-www-form-urlencoded"};function fg(e,t){!$t.isUndefined(e)&&$t.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function $2(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=sg()),e}function M2(e,t,n){if($t.isString(e))try{return(t||JSON.parse)(e),$t.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}var yc={transitional:I2,adapter:$2(),transformRequest:[function(t,n){if(ug(n,"Accept"),ug(n,"Content-Type"),$t.isFormData(t)||$t.isArrayBuffer(t)||$t.isBuffer(t)||$t.isStream(t)||$t.isFile(t)||$t.isBlob(t))return t;if($t.isArrayBufferView(t))return t.buffer;if($t.isURLSearchParams(t))return fg(n,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var r=$t.isObject(t),i=n&&n["Content-Type"],a;if((a=$t.isFileList(t))||r&&i==="multipart/form-data"){var s=this.env&&this.env.FormData;return N2(a?{"files[]":t}:t,s&&new s)}else if(r||i==="application/json")return fg(n,"application/json"),M2(t);return t}],transformResponse:[function(t){var n=this.transitional||yc.transitional,r=n&&n.silentJSONParsing,i=n&&n.forcedJSONParsing,a=!r&&this.responseType==="json";if(a||i&&$t.isString(t)&&t.length)try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?cg.from(s,cg.ERR_BAD_RESPONSE,this,null,this.response):s}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:k2()},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};$t.forEach(["delete","get","head"],function(t){yc.headers[t]={}});$t.forEach(["post","put","patch"],function(t){yc.headers[t]=$t.merge(R2)});var Mp=yc,L2=Wt,F2=Mp,j2=function(t,n,r){var i=this||F2;return L2.forEach(r,function(s){t=s.call(i,t,n)}),t},Zf,dg;function O_(){return dg||(dg=1,Zf=function(t){return!!(t&&t.__CANCEL__)}),Zf}var hg=Wt,Jf=j2,D2=O_(),B2=Mp,q2=gc();function Qf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new q2}var H2=function(t){Qf(t),t.headers=t.headers||{},t.data=Jf.call(t,t.data,t.headers,t.transformRequest),t.headers=hg.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),hg.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var n=t.adapter||B2.adapter;return n(t).then(function(i){return Qf(t),i.data=Jf.call(t,i.data,i.headers,t.transformResponse),i},function(i){return D2(i)||(Qf(t),i&&i.response&&(i.response.data=Jf.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})},En=Wt,C_=function(t,n){n=n||{};var r={};function i(p,c){return En.isPlainObject(p)&&En.isPlainObject(c)?En.merge(p,c):En.isPlainObject(c)?En.merge({},c):En.isArray(c)?c.slice():c}function a(p){if(En.isUndefined(n[p])){if(!En.isUndefined(t[p]))return i(void 0,t[p])}else return i(t[p],n[p])}function s(p){if(!En.isUndefined(n[p]))return i(void 0,n[p])}function l(p){if(En.isUndefined(n[p])){if(!En.isUndefined(t[p]))return i(void 0,t[p])}else return i(void 0,n[p])}function u(p){if(p in n)return i(t[p],n[p]);if(p in t)return i(void 0,t[p])}var f={url:s,method:s,data:s,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:u};return En.forEach(Object.keys(t).concat(Object.keys(n)),function(c){var d=f[c]||a,h=d(c);En.isUndefined(h)&&d!==u||(r[c]=h)}),r},ed,pg;function T_(){return pg||(pg=1,ed={version:"0.27.2"}),ed}var U2=T_().version,wi=Ca,Lp={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){Lp[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var vg={};Lp.transitional=function(t,n,r){function i(a,s){return"[Axios v"+U2+"] Transitional option '"+a+"'"+s+(r?". "+r:"")}return function(a,s,l){if(t===!1)throw new wi(i(s," has been removed"+(n?" in "+n:"")),wi.ERR_DEPRECATED);return n&&!vg[s]&&(vg[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,s,l):!0}};function V2(e,t,n){if(typeof e!="object")throw new wi("options must be an object",wi.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),i=r.length;i-- >0;){var a=r[i],s=t[a];if(s){var l=e[a],u=l===void 0||s(l,a,e);if(u!==!0)throw new wi("option "+a+" must be "+u,wi.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new wi("Unknown option "+a,wi.ERR_BAD_OPTION)}}var z2={assertOptions:V2,validators:Lp},A_=Wt,W2=y_,mg=g2,gg=H2,bc=C_,G2=S_,P_=z2,Io=P_.validators;function ha(e){this.defaults=e,this.interceptors={request:new mg,response:new mg}}ha.prototype.request=function(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=bc(this.defaults,n),n.method?n.method=n.method.toLowerCase():this.defaults.method?n.method=this.defaults.method.toLowerCase():n.method="get";var r=n.transitional;r!==void 0&&P_.assertOptions(r,{silentJSONParsing:Io.transitional(Io.boolean),forcedJSONParsing:Io.transitional(Io.boolean),clarifyTimeoutError:Io.transitional(Io.boolean)},!1);var i=[],a=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(a=a&&h.synchronous,i.unshift(h.fulfilled,h.rejected))});var s=[];this.interceptors.response.forEach(function(h){s.push(h.fulfilled,h.rejected)});var l;if(!a){var u=[gg,void 0];for(Array.prototype.unshift.apply(u,i),u=u.concat(s),l=Promise.resolve(n);u.length;)l=l.then(u.shift(),u.shift());return l}for(var f=n;i.length;){var p=i.shift(),c=i.shift();try{f=p(f)}catch(d){c(d);break}}try{l=gg(f)}catch(d){return Promise.reject(d)}for(;s.length;)l=l.then(s.shift(),s.shift());return l};ha.prototype.getUri=function(t){t=bc(this.defaults,t);var n=G2(t.baseURL,t.url);return W2(n,t.params,t.paramsSerializer)};A_.forEach(["delete","get","head","options"],function(t){ha.prototype[t]=function(n,r){return this.request(bc(r||{},{method:t,url:n,data:(r||{}).data}))}});A_.forEach(["post","put","patch"],function(t){function n(r){return function(a,s,l){return this.request(bc(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:s}))}}ha.prototype[t]=n(),ha.prototype[t+"Form"]=n(!0)});var K2=ha,td,yg;function Y2(){if(yg)return td;yg=1;var e=gc();function t(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var r;this.promise=new Promise(function(s){r=s});var i=this;this.promise.then(function(a){if(!!i._listeners){var s,l=i._listeners.length;for(s=0;s{const t=await KA(Object.assign({"./svg/a-connect-dis.svg":()=>Ze(()=>import("./a-connect-dis.7119640b.js"),[],import.meta.url),"./svg/a-connect.svg":()=>Ze(()=>import("./a-connect.927c87c2.js"),[],import.meta.url),"./svg/data_revise_n.svg":()=>Ze(()=>import("./data_revise_n.df36300c.js"),[],import.meta.url),"./svg/dianwei.svg":()=>Ze(()=>import("./dianwei.b603c40b.js"),[],import.meta.url),"./svg/m-r.svg":()=>Ze(()=>import("./m-r.f0cd856b.js"),[],import.meta.url),"./svg/point-s.svg":()=>Ze(()=>import("./point-s.62bf903a.js"),[],import.meta.url),"./svg/state_gps.svg":()=>Ze(()=>import("./state_gps.09feec42.js"),[],import.meta.url),"./svg/weitiao.svg":()=>Ze(()=>import("./weitiao.4b10909e.js"),[],import.meta.url),"./svg/zoom_n.svg":()=>Ze(()=>import("./zoom_n.c1311408.js"),[],import.meta.url)}),`./svg/${e}.svg`),n=await ku.get(t.default);id.innerHTML=n.data;const r=id.querySelector("svg");if(r){r.setAttribute("width","1em"),r.setAttribute("height","1em");const i=r.querySelectorAll("path");Array.from(i).forEach(a=>{a.setAttribute("fill","currentColor")})}return id.innerHTML},nP=e=>Eg[e]||(Eg[e]=tP(e)),rP=["innerHTML"],iP=Ce({__name:"index",props:{type:{},fontSize:{default:"14px"},color:{default:"#fff"},class:{},style:{}},setup(e){const t=e,n=ae("");return Ke(()=>{nP(t.type).then(r=>n.value=r)}),(r,i)=>(se(),he("i",{class:$e(r.class),style:it(r.style)},[ve("i",{innerHTML:n.value},null,8,rP),Se(r.$slots,"default",{},void 0,!0)],6))}});const oP=Et(iP,[["__scopeId","data-v-e45116b7"]]),aP={key:0,class:"tip"},sP={name:"ui-tip"},lP=Object.assign(sP,{props:{tip:{type:String},tipH:{type:String,default:"center"},tipV:{type:String,default:"bottom"},foreShow:{type:Boolean}},setup(e){const t=e,n=ue(()=>({"fore-show":t.foreShow,["tip-h-"+t.tipH]:!0,["tip-v-"+t.tipV]:!0}));return(r,i)=>(se(),he("div",{class:$e([n.value,"tip-layout"])},[Se(r.$slots,"default"),e.tip&&xe(Bn).isPc&&!xe(Bn).isTablet?(se(),he("p",aP,Re(e.tip),1)):Ee("",!0)],2))}});const uP={key:0,class:"tip"},cP={key:0,class:"tip"},fP={name:"ui-icon"},en=Object.assign(fP,{props:{svg:{type:Boolean},type:{type:String},size:{type:[Number,String]},color:{type:String},small:{type:Boolean},ctrl:{type:Boolean},medium:{type:Boolean},big:{type:Boolean},disabled:{type:Boolean},tip:{type:String},tipH:{type:String,default:"center"},tipV:{type:String,default:"bottom"},foreShow:{type:Boolean}},emits:["click"],setup(e,{expose:t,emit:n}){const r=e,i=ue(()=>({"font-size":As(r.size),color:r.color})),a=ue(()=>{const u={small:r.small,medium:r.medium,big:r.big,disabled:r.disabled,"fore-show":r.foreShow,["tip-h-"+r.tipH]:!0,["tip-v-"+r.tipV]:!0,["fun-ctrl"]:r.ctrl};return r.type?{...u,[`icon-${r.type}`]:r.type}:u}),s=n,l=ae();return t(yt({vm:l})),(u,f)=>e.svg?(se(),We(oP,{key:0,class:$e(["icon ui-kankan-icon",a.value]),style:it(i.value),type:e.type,onClick:f[0]||(f[0]=p=>s("click",p))},{default:De(()=>[Se(u.$slots,"default"),e.tip&&xe(Bn).isPc&&!xe(Bn).isTablet?(se(),he("p",uP,Re(e.tip),1)):Ee("",!0)]),_:3},8,["class","style","type"])):(se(),he("i",{key:1,class:$e(["iconfont ui-kankan-icon icon",a.value]),style:it(i.value),onClick:f[1]||(f[1]=p=>s("click",p)),ref_key:"vm",ref:l},[Se(u.$slots,"default"),e.tip&&xe(Bn).isPc&&!xe(Bn).isTablet?(se(),he("p",cP,Re(e.tip),1)):Ee("",!0)],6))}}),dP={name:"ui-message"},yn=Object.assign(dP,{props:{msg:{type:String},type:{type:String},time:{type:Number},destroy:{type:Function},index:{}},setup(e){const t=e,n=Xs(),r={success:"state_s",warning:"state_e",error:"state_f"},i=ae(!1);return t.time&&setTimeout(()=>{i.value=!1,setTimeout(t.destroy,500)},t.time),wt(()=>Qe(()=>i.value=!0)),(a,s)=>(se(),We(ni,{to:"body"},[X(Pr,{name:"fade"},{default:De(()=>[i.value?(se(),he("div",{key:0,class:$e(["ui-message",e.type]),style:it({zIndex:xe(n),marginTop:`${e.index.value*60}px`})},[e.type?(se(),We(xe(en),{key:0,type:r[e.type],class:"icon"},null,8,["type"])):Ee("",!0),ve("p",null,Re(e.msg),1),e.time?Ee("",!0):(se(),We(xe(en),{key:1,ctrl:"",type:"close",onClick:e.destroy,class:"message-close"},null,8,["onClick"]))],6)):Ee("",!0)]),_:1})]))}}),xg=["success","warning","error"];yn.use=function(t){const n=ae([]);yn.show=function(a){xr(a)==="String"&&(a={msg:a}),a.type=xg.includes(a.type)?a.type:void 0;const s=ae(null),l=ue(()=>s.value?n.value.indexOf(s):0),u=()=>{s.value.destroy(),n.value=n.value.filter(f=>f!==s)};return s.value=ta(yn,{app:t,props:{...a,index:l,destroy:u}}),n.value.push(s),u};const r=[],i=a=>{const s=a.type+a.msg;if(!r.includes(s)){const l=r.length;r[l]=s,yn.show(a),setTimeout(()=>{r.splice(l,1)},a.time+1e3)}};for(const a of xg)yn[a]=s=>(xr(s)==="String"&&(s={msg:s,type:a,time:3e3}),i(s))};const hP={name:"ui-size-animation"},I_=Object.assign(hP,{props:{attr:{type:String,default:"height"},animationStyle:{type:String,default:"height"},defaultOpen:{type:Boolean,default:!1}},setup(e,{expose:t}){const n=e,[r,i,a,s,l,u,f]=$A(n.defaultOpen,n.attr),p=ae(!1);return Ke(()=>{const c=r.value;if(c){const d=()=>p.value=!0,h=()=>p.value=!1;return c.addEventListener("transitionstart",d),c.addEventListener("transitionend",h),()=>{c.removeEventListener("transitionstart",d),c.removeEventListener("transitionend",h)}}}),t({changeShow:(c,...d)=>(l!==c&&(p.value=!0),i(c,...d)),show:l,animation:p,ready:u,refer:f}),(c,d)=>(se(),he("div",{class:$e(["ui-size-animation",{ready:xe(u),show:xe(a)!==0,[e.animationStyle]:e.animationStyle}]),style:it(xe(s)&&{"max-height":xe(a)+"px"}),ref_key:"contentRef",ref:r},[Se(c.$slots,"default")],6))}}),pP={class:"ui-tree-content"},vP=["onClick"],mP={class:"ui-tree-content"},gP={key:0,class:"ui-tree-item-child"},yP={name:"ui-tree"},bP=Object.assign(yP,{props:{data:{type:Array,require:!0},locals:{type:Array,default:()=>[]},level:{type:Number,default:1},"max-tab":{type:Number},open:{type:Boolean},stroke:{type:Boolean},style:{type:[Object,String]}},setup(e,{emit:t}){const n=e,r=t,i=ue(()=>n.data.map(f=>ae(null))),a=f=>{var p;for(let c of i.value)c&&((p=c.value)==null||p.changeShow(f))},s=()=>{var f;for(let p of i.value)p&&((f=p.value)==null||f.refer()),a(!0),r("refer")};let l=ae({isActive:!0,isUpdate:!1}),u=n.data.map(f=>f.children&&f.children.length);return Le(n.data,()=>{const f=n.data.map(p=>p.children&&p.children.length);c_(u,f)&&(u=f,l.value.isUpdate=!0,s())}),Ke(()=>{l.value.isActive&&l.value.isUpdate&&(s(),l.value.isUpdate=!1)}),uc(()=>l.value.isActive=!0),_p(()=>l.value.isActive=!1),(f,p)=>{const c=mt("ui-tree");return se(),he("ul",{class:$e(["ui-tree",{children:e.level>1,stroke:e.stroke,flat:e.level>f.maxTab}]),style:it(e.style)},[(se(!0),he(Pe,null,Gn(e.data,(d,h)=>{var _,b;return se(),he(Pe,{key:d.id||h},[d.children&&d.children.length?(se(),he("li",{key:0,class:$e(["ui-tree-item",{"not-last-un-child":e.data.length-1!==h,alone:e.data.length===1,put:i.value[h].value&&!i.value[h].value.show}])},[ve("div",pP,[ve("span",{class:$e(["ui-tree-ctrl",{open:(b=(_=i.value[h])==null?void 0:_.value)==null?void 0:b.show}]),onClick:E=>i.value[h].value.changeShow()},null,10,vP),Se(f.$slots,"default",{row:d,locals:[...e.locals,h]})]),X(xe(I_),{animationStyle:"scale",ref_for:!0,ref:i.value[h],class:$e([{ready:i.value[h].ready},"ui-tree-item-child"]),defaultOpen:e.open},{default:De(()=>[X(c,{style:it(e.style),stroke:e.stroke,data:d.children,"max-tab":f.maxTab,level:e.level+1,onRefer:s,open:e.open,locals:[...e.locals,h]},{default:De(E=>[Se(f.$slots,"default",ri({ref_for:!0},E))]),_:2},1032,["style","stroke","data","max-tab","level","open","locals"])]),_:2},1032,["class","defaultOpen"])],2)):(se(),he("li",{key:1,class:$e(["ui-tree-item un-children",{last:h===e.data.length-1}])},[ve("div",mP,[Se(f.$slots,"default",{row:d,locals:[...e.locals,h]})]),e.stroke?(se(),he("div",gP)):Ee("",!0)],2))],64)}),128))],6)}}}),_P={name:"ui-button"},wP=Object.assign(_P,{props:{type:{type:String,default:"normal"},color:{type:String},width:{type:[String,Number]},icon:{type:String}},setup(e){const t=e,n="customize",r=ue(()=>t.color?n:t.type),i=ue(()=>{const a={width:As(t.width)};return r.value===n&&(a["--color"]=t.color),a});return(a,s)=>(se(),he("button",{class:$e(["ui-button",r.value]),style:it(i.value)},[e.icon?(se(),We(en,{key:0,type:e.icon,class:"ui-button-icon"},null,8,["type"])):Ee("",!0),Se(a.$slots,"default")],6))}}),N_=Symbol("group-children"),EP={name:"ui-group"},xP=Object.assign(EP,{props:{title:String,border:Boolean,borderTop:Boolean,borderBottom:Boolean,control:Boolean,show:Boolean},setup(e){const t=ae(null),n=e,r=ue(()=>({"border-bottom":n.borderBottom||n.border,"border-top":n.borderTop||n.border})),i=ae([]);return St(N_,i),Ke(()=>{t.value&&t.value.changeShow(n.show)}),Le(i,()=>{t.value&&t.value.refer()}),(a,s)=>(se(),he("div",{class:$e(["ui-group",{control:e.control}])},[a.$slots.header?(se(),he("div",{key:1,class:$e(["group-title",!a.$slots.default&&r.value])},[Se(a.$slots,"header"),a.$slots.icon||e.control?(se(),he("span",{key:0,class:$e(["group-icon",t.value&&{show:t.value.show}]),onClick:s[1]||(s[1]=l=>e.control&&t.value.changeShow())},[a.$slots.icon?Se(a.$slots,"icon",{key:0}):Ee("",!0),e.control?(se(),We(xe(en),{key:1,class:"group-control-icon",type:"pull-down",size:"12px",ctrl:""})):Ee("",!0)],2)):Ee("",!0)],2)):(se(),he(Pe,{key:0},[n.title?(se(),he("h3",{key:0,class:$e(["group-title",!a.$slots.default&&r.value])},[st(Re(n.title)+" ",1),a.$slots.icon||e.control?(se(),he("span",{key:0,class:$e(["group-icon",t.value&&{show:t.value.show}]),onClick:s[0]||(s[0]=l=>e.control&&t.value.changeShow())},[a.$slots.icon?Se(a.$slots,"icon",{key:0}):(se(),We(xe(en),{key:1,type:"pull-down",size:"12px",ctrl:""}))],2)):Ee("",!0)],2)):Ee("",!0)],64)),a.$slots.default?(se(),he(Pe,{key:2},[e.control?(se(),We(xe(I_),{key:0,ref_key:"animationRef",ref:t,class:$e(["group-content",r.value])},{default:De(()=>[Se(a.$slots,"default")]),_:3},8,["class"])):(se(),he("div",{key:1,class:$e(["group-content",r.value])},[Se(a.$slots,"default")],2))],64)):Ee("",!0)],2))}}),SP={class:"group-option"},OP={key:0,class:"group-option-label"},CP={name:"ui-group-option"},TP=Object.assign(CP,{props:{label:String},setup(e){const t=e,n=gt(N_),r=zt();return n&&n.value&&(fc(()=>n.value=[...n.value,r]),ur(()=>{const i=n.value.indexOf(r);~i&&(n.value.splice(i,1),n.value=[...n.value])})),(i,a)=>(se(),he("div",SP,[t.label?(se(),he("span",OP,[st(Re(t.label)+" ",1),Se(i.$slots,"icon",{class:"icon"})])):Ee("",!0),Se(i.$slots,"default")]))}}),_c={name:{type:String},disabled:{type:[Boolean]},modelValue:{required:!1,default:""},placeholder:{require:!1,default:"\u8BF7\u8F93\u5165"}},Fp={..._c,width:{type:String,default:"100px"},height:{type:String,default:"34px"}},jp={..._c,placeholder:{require:!1,default:"\u8BF7\u9009\u62E9"},othPlaceholder:{require:!1,default:""},accept:{type:String},scale:{type:String},multiple:{type:Boolean},preview:{type:Boolean},maxSize:{type:Number},maxLen:{type:Number}},wc={..._c,width:{type:[Number,String]},height:{type:[Number,String]}},Ec={...wc,label:{type:String,required:!1}},Dp={...Ec,icon:{type:String}},Yr={..._c,maxlength:{type:[String,Number]},placeholder:{type:String,default:"\u8BF7\u8F93\u5165"},readonly:{type:Boolean,default:!1},other:{type:Object,default:()=>({})},right:{type:Boolean}},Ps=["update:modelValue","focus","blur","click","keydown"],R_=["update:modelValue","focus","blur"],xc={...Yr,rich:{type:Boolean}},Bp={...xc,onUpdatePos:Function},Zs={...Yr,isTransform:{type:Boolean,require:!1},stopEl:{type:String,require:!1},floatingClass:{type:String,require:!1},showOptions:{type:Boolean,require:!1},placeholder:{...Yr.placeholder,default:"\u8BF7\u9009\u62E9"},unplaceholder:{...Yr.placeholder,default:"\u6682\u65E0\u9009\u9879"},options:{type:Array,default:()=>[]},dire:{type:String,default:"bottom"}},qp={...Zs,unplaceholder:{...Yr.placeholder,default:"\u65E0\u641C\u7D22\u7ED3\u679C"}},na={...Yr,inInput:{type:Boolean,default:!0},ctrl:{type:Boolean,default:!0},step:{type:Number,require:!0,default:1},min:{type:[Number,String],require:!1},max:{type:[Number,String],require:!1}},$_={...Zs,modelValue:{required:!0,default:[],type:Array}},Hp={...na,min:{...na.min,require:!0},min:{...na.min,require:!0},input:{type:Boolean,default:!0},moveCallback:{type:Function,require:!1}},lu={...Ec,...Dp,...Zs,...Yr,...Hp,...na,...wc,...xc,...jp,...qp,...Bp,...Fp};for(let e in lu)lu[e]={...lu[e],default:void 0};const Sg={text:Ps,select:R_,search:Ps},AP={...lu,type:{type:String,required:!0,default:"text"},width:{type:[Number,String]},height:{type:[Number,String]},require:{type:Boolean},error:{type:String},disabled:{type:Boolean}},PP=["name","disabled","id","checked"],kP=ve("span",{class:"replace"},null,-1),IP=["for"],NP={__name:"radio",props:Dp,emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,i=vc(4);return(a,s)=>(se(),he(Pe,null,[ve("div",{class:"input radio",style:it({width:a.width,height:a.height})},[ve("input",{name:a.name,disabled:a.disabled,id:xe(i),type:"radio",class:"replace-input",checked:n.modelValue,onChange:s[0]||(s[0]=l=>r("update:modelValue",l.target.checked))},null,40,PP),kP],4),n.label||n.icon?(se(),he("label",{key:0,class:"label",for:xe(i)},[n.icon?(se(),We(xe(en),{key:0,type:n.icon},null,8,["type"])):Ee("",!0),st(" "+Re(n.label),1)],8,IP)):Ee("",!0)],64))}},RP=["id","checked"],$P={class:"replace"},MP=["for"],M_={__name:"checkbox",props:Ec,emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,i=vc(4);return(a,s)=>(se(),he(Pe,null,[ve("div",{class:"input checkbox",style:it({width:a.width,height:a.height})},[ve("input",{id:xe(i),type:"checkbox",class:"replace-input",checked:n.modelValue,onInput:s[0]||(s[0]=l=>r("update:modelValue",l.target.checked))},null,40,RP),ve("span",$P,[X(xe(en),{type:"checkbox",size:a.width>a.height?a.height:a.width},null,8,["size"])])],4),n.label?(se(),he("label",{key:0,class:"label",for:xe(i)},Re(n.label),9,MP)):Ee("",!0)],64))}},LP={key:0,class:"is-hidden"},FP=ve("input",{type:"text",class:"is-hidden",disabled:""},null,-1),jP=ve("input",{type:"password",class:"is-hidden",disabled:""},null,-1),DP=[FP,jP],BP={key:1,class:"pre-icon"},qP=["type","value","placeholder","readonly","maxlength"],HP={class:"input-value"},UP={key:2,class:"retouch"},VP={key:0,class:"len"},Up={__name:"text",props:{type:{type:String,default:"text"},...Yr},emits:[...Ps],setup(e,{expose:t,emit:n}){const r=e,i=n,a=ae(null),s=ae(null),l=p=>{i("keydown",p)},u=p=>{i("update:modelValue",p.target.value),Qe(()=>{p.target.value!==r.modelValue.toString()&&(p.target.value=r.modelValue.toString())})},f=()=>{i("focus")};return t({root:a,input:s}),(p,c)=>(se(),he("div",{onClick:c[1]||(c[1]=d=>i("click",d)),class:$e(["input text",{suffix:p.$slots.icon||p.maxlength,disabled:p.disabled,readonly:p.readonly,right:p.right,"pre-suffix":p.$slots.preIcon}]),ref_key:"textRef",ref:a},[e.type==="password"?(se(),he("div",LP,DP)):Ee("",!0),p.$slots.preIcon?(se(),he("span",BP,[Se(p.$slots,"preIcon")])):Ee("",!0),ve("input",ri({class:"ui-text",type:e.type,value:p.$slots.value?"":p.modelValue,autocomplete:"off",onInput:u,placeholder:r.placeholder,readonly:p.readonly,maxlength:r.maxlength,onFocus:f,onBlur:c[0]||(c[0]=d=>i("blur")),onKeydown:l,ref_key:"inputRef",ref:s},p.other),null,16,qP),ve("div",HP,[Se(p.$slots,"value")]),p.$slots.icon||r.maxlength?(se(),he("span",UP,[Se(p.$slots,"icon"),r.maxlength?(se(),he("span",VP,[ve("span",null,Re(p.modelValue.length),1),st(" / "+Re(p.maxlength),1)])):Ee("",!0)])):Ee("",!0),Se(p.$slots,"default")],2))}},zP={name:"ui-floating"},Sc=Object.assign(zP,{props:{mount:{require:!0,default:document.body},isTransform:{type:Boolean},class:{type:String},refer:{type:Object},dire:{type:String},width:{type:[Number,String]},height:{type:[Number,String]}},emits:["leave","enter","mouseenter","mouseleave"],setup(e,{expose:t,emit:n}){const r={center:"center",right:"right",left:"left"},i={center:"center",top:"top",bottom:"bottom"},a="-",s=e,l=n,u=ae(),f=()=>{const w=LA(s.refer,s.mount,!1,s.isTransform);let x;s.isTransform?x={x:0,y:0}:x=b.value.reduce((A,S)=>(A.y+=S.scrollTop,A.x+=S.scrollLeft,A),{x:0,y:0});const[O,T]=p.value,P={x:w.x-x.x,y:w.y-x.y};switch(O){case r.left:_.x=P.x;break;case r.right:_.x=P.x+w.width;break;case r.center:_.x=P.x+w.width/2;break}switch(T){case i.top:_.y=P.y;break;case i.bottom:_.y=P.y+w.height;break;case i.center:_.y=P.y+w.height/2;break}},p=ue(()=>{const w=s.dire||`${i.bottom}${a}${r.left}`,x=(P,A)=>Object.keys(P).some(S=>P[S]===A);let[O,T]=w.split(a);return(!O||!x(r,O))&&(O=r.left),(!T||!x(i,T))&&(T=i.bottom),[O,T]}),c=(w,x)=>{if(w!==void 0){if(typeof w=="number")return w?w<=1&w>=0?x*w:w:void 0;if(w.includes("px"))return c(parseFloat(w),x);if(w.includes("%"))return c(parseFloat(w)/100,x)}},d=ue(()=>s.refer&&c(s.width,s.refer.offsetWidth)),h=ue(()=>s.refer&&c(s.height,s.refer.offsetHeight)),_=yt({x:0,y:0}),b=ue(()=>s.refer?MA(s.refer,s.mount):[]);Le([b,s],([w],[x])=>{x&&x.forEach(O=>O.removeEventListener("scroll",f)),w.forEach(O=>O.addEventListener("scroll",f)),s.refer&&setTimeout(()=>f())},{immediate:!0});const E=Xs(),v=ue(()=>({width:d.value&&d.value+"px",height:h.value&&h.value+"px",left:_.x+"px",top:_.y+"px",zIndex:E})),m=w=>s.refer&&s.refer.contains(w.target)||u.value&&u.value.contains(w.target);let y=!1;const g=w=>{const x=m(w);x!==y&&(l(x?"mouseenter":"mouseleave"),y=x)};return window.addEventListener("resize",f),document.documentElement.addEventListener("mousemove",g),ur(()=>{b.value.forEach(w=>w.removeEventListener("scroll",f)),window.removeEventListener("resize",f),document.documentElement.removeEventListener("mousemove",g)}),uc(()=>{s.refer&&f()}),t({vmRef:u,updateLocation:f}),(w,x)=>(se(),We(ni,{to:e.mount},[ve("div",{ref_key:"vmRef",ref:u,class:$e(["ui-floating",s.class]),style:it(v.value),onMouseenter:x[0]||(x[0]=O=>l("enter")),onMouseleave:x[1]||(x[1]=O=>l("leave"))},[Se(w.$slots,"default")],38)],8,["to"]))}}),WP={class:"select-replace"},GP={key:0,class:"select-options"},KP=["onMousedown"],YP={key:1,class:"un-data"},Vp={__name:"select",props:{...Zs,readonly:{type:Boolean,default:!0},className:{type:String},labelValue:{type:String,require:!1},dbhide:{type:Boolean,default:!0}},emits:R_,setup(e,{expose:t,emit:n}){const r=e,i=n,a=ae(null),s=ae(!1),l=document.body,u=ue(()=>{const m=r.options.find(({value:y})=>y===r.modelValue);return m?m.label:""}),f=()=>{setTimeout(()=>{var m,y;(y=(m=a.value)==null?void 0:m.input)==null||y.focus()})};Ke(()=>{i(s.value?"focus":"blur")});const p=ae(),c=ue(()=>{var y;const m=(y=p.value)==null?void 0:y.vmRef;return m&&r.stopEl?Array.from(m.querySelectorAll(r.stopEl)):[]}),d=(m,y)=>{var g,w;c.value.includes(m.target)?f():(h=0,i("update:modelValue",y.value),(w=(g=a.value)==null?void 0:g.input)==null||w.focus(),s.value=!1)};let h=0;const _=()=>{h++,s.value&&r.dbhide&&!(h%2)?(s.value=!1,a.value.input.blur()):b()},b=()=>{var m,y;clearTimeout(E),s.value=!0,(y=(m=a.value)==null?void 0:m.input)==null||y.focus()};let E;const v=()=>{E=setTimeout(()=>{s.value=!1,h=0,i("blur")},16)};return t({vmRef:a,animationRef:{changeShow(m){s.value=m}}}),(m,y)=>(se(),he(Pe,null,[X(Up,{class:$e(["select ready",{focus:s.value,[e.className]:e.className}]),ref_key:"vmRef",ref:a,modelValue:typeof e.labelValue=="string"?e.labelValue:u.value,"onUpdate:modelValue":y[0]||(y[0]=g=>i("update:modelValue",g)),width:r.width,height:r.height,readonly:e.readonly,placeholder:r.placeholder,onBlur:v,onFocus:b,onClick:_},xa({icon:De(()=>[m.$slots.icon?Se(m.$slots,"icon",{key:1}):(se(),We(xe(en),{key:0,type:"pull-down",small:""}))]),_:2},[m.$slots.preIcon?{name:"preIcon",fn:De(()=>[Se(m.$slots,"preIcon")]),key:"0"}:void 0]),1032,["class","modelValue","width","height","readonly","placeholder"]),X(Sc,{ref_key:"floatRef",ref:p,mount:xe(l),refer:a.value&&a.value.root,width:"100%",class:$e([{show:s.value||r.showOptions,[`dire-${m.dire}`]:!0,...m.floatingClass?{[m.floatingClass]:!0}:{}},"select-float"]),isTransform:m.isTransform,dire:m.dire==="top"?"left-top":"left-bottom"},{default:De(()=>[Se(m.$slots,"floating-pre"),ve("div",WP,[m.$slots["floating-replace"]?(se(),he("div",{key:1,class:"floating-replace",onMousedown:f},[Se(m.$slots,"floating-replace")],32)):(se(),he("ul",GP,[r.options.length?(se(!0),he(Pe,{key:0},Gn(r.options,g=>(se(),he("li",{class:$e(["select-options-atom",{active:r.modelValue===g.value}]),key:g.value,onMousedown:w=>d(w,g)},[m.$slots.option?Se(m.$slots,"option",{key:0,raw:g,active:r.modelValue===g.value}):(se(),he(Pe,{key:1},[st(Re(g.label),1)],64))],42,KP))),128)):(se(),he("li",YP,Re(m.unplaceholder),1))]))])]),_:3},8,["mount","refer","class","isTransform","dire"])],64))}},XP={class:"ctrls"},L_={__name:"number",props:na,emits:["update:modelValue"],setup(e,{emit:t}){const n=t,r=e,i=c=>!(xr(c)==="Number"?isNaN(c):isNaN(Number(c))),a=ae(r.modelValue);Ke(()=>{a.value=r.modelValue});const s=c=>{a.value=c;const d=Number(c);!isNaN(d)&&d!==r.modelValue&&p(d)},l=ae(0),u=()=>{r.modelValue&&(a.value=r.modelValue.toString()),l.value++},f=c=>(c=Number(c),isNaN(c)?r.min||0:c),p=c=>{if(c=f(c),i(r.min)){let d=Number(r.min);c=cd?d:c}n("update:modelValue",c)};return(c,d)=>(se(),We(xe(Up),{key:l.value,class:$e(["number ready",{ctrl:c.ctrl}]),type:"number",right:c.right,modelValue:a.value,placeholder:c.placeholder,"onUpdate:modelValue":s,other:{min:c.min,max:c.max,step:c.step},onBlur:u,readonly:!c.inInput},xa({_:2},[Gn(c.$slots,(h,_)=>({name:_,fn:De(b=>[Se(c.$slots,_,Vs(Sa(b)))])})),c.ctrl?{name:"icon",fn:De(()=>[ve("div",XP,[X(xe(en),{type:"up-a",ctrl:"",class:"up",onClick:d[0]||(d[0]=h=>p(f(c.modelValue)+c.step))}),X(xe(en),{type:"d-r",ctrl:"",class:"down",onClick:d[1]||(d[1]=h=>p(f(c.modelValue)-c.step))})])]),key:"0"}:void 0]),1032,["class","right","modelValue","placeholder","other","readonly"]))}},ZP={class:"input range"},JP={__name:"range",props:Hp,emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,i=v=>{const m=Math.ceil(1/n.step),y=Math.round(v*m),g=n.min*m,w=n.max*m;return(y>=w?w:y<=g?g:y-y%(m*n.step))/m},a=ue({get(){const v=(Number(n.modelValue)-n.min)/(n.max-n.min);return v>1?1:v<0?0:v},set(v){const m=n.max-n.min;r("update:modelValue",i(n.min+m*v))}}),s=ue(()=>`${a.value*100}%`),l=v=>{r("update:modelValue",i(v))},u={slide:0,default:1},f=ae(u.default),p=ae(0),c=ae(null),d=ae(0),h=ae(null);wt(()=>{p.value=c.value.offsetWidth,d.value=h.value.offsetWidth});const _=v=>{a.value=v.offsetX/d.value},b=document.documentElement,E=v=>{v.preventDefault();const m=v.clientX||v.touches[0].clientX,y=v.clientY||v.touches[0].clientY,g=a.value;f.value=u.slide;const w=O=>{O.preventDefault();const T=O.clientX||O.touches[0].clientX,P=O.clientY||O.touches[0].clientY,A=T-m;let S;n.moveCallback?S=n.moveCallback({x:m,y},{x:T,y:P},{start:g,locusWidth:p.value}):S=g+A/p.value,a.value=S<0?0:S>1?1:S},x=O=>{f.value=u.default,Bn.isPc&&!Bn.isTablet?(b.removeEventListener("mousemove",w,!1),b.removeEventListener("mouseup",x,!1)):(b.removeEventListener("touchmove",w),b.removeEventListener("touchend",x))};Bn.isPc&&!Bn.isTablet?(b.addEventListener("mousemove",w,!1),b.addEventListener("mouseup",x,!1)):(b.addEventListener("touchmove",w,{passive:!1}),b.addEventListener("touchend",x,{passive:!1}))};return(v,m)=>(se(),he("div",ZP,[ve("div",{class:$e(["range-content",{animation:f.value===u.default}]),style:it({"--percentage":s.value,"--slideSize":xe(Bn).isPC&&!xe(Bn).isTablet?"calc(var(--height) + 8px)":"calc(var(--height) + 14px)"}),onClick:_,ref_key:"rangeRef",ref:h},[ve("div",{class:"range-locus",ref_key:"locusRef",ref:c},[ve("span",{class:"range-slide",onClick:m[0]||(m[0]=hc(()=>{},["stop"])),onTouchstart:E,onMousedown:E},null,32)],512)],6),n.input?(se(),We(L_,{key:0,ctrl:v.ctrl,modelValue:v.modelValue,"onUpdate:modelValue":l,min:v.min,max:v.max,step:v.step,class:"range-text"},xa({_:2},[Gn(v.$slots,(y,g)=>({name:g,fn:De(w=>[Se(v.$slots,g,Vs(Sa(w)))])}))]),1032,["ctrl","modelValue","min","max","step"])):Ee("",!0)]))}},QP=["value","placeholder","readonly","maxlength"],ek=ve("span",{class:"replace"},null,-1),tk={key:0,class:"retouch"},nk={key:0,class:"len"},rk={__name:"textarea",props:{type:{type:String,default:"text"},...xc},emits:["update:modelValue","focus","blur","click"],setup(e,{expose:t,emit:n}){const r=e,i=n,a=ae(null),s=ae(null),l=u=>{i("update:modelValue",u.target.value),Qe(()=>{u.target.value!==r.modelValue.toString()&&(u.target.value=r.modelValue.toString())})};return t({root:a,input:s}),(u,f)=>(se(),he("div",{class:$e(["input textarea",{suffix:u.$slots.icon||u.maxlength,disabled:u.disabled,right:u.right}]),ref_key:"textRef",ref:a},[st(Re(u.modelValue)+" ",1),ve("textarea",ri({class:"ui-text",value:u.modelValue,onInput:l,placeholder:r.placeholder,readonly:u.readonly,maxlength:r.maxlength,onClick:f[0]||(f[0]=p=>i("click")),onFocus:f[1]||(f[1]=p=>i("focus")),onBlur:f[2]||(f[2]=p=>i("blur")),ref_key:"inputRef",ref:s},u.other),null,16,QP),ek,u.$slots.icon||r.maxlength?(se(),he("span",tk,[Se(u.$slots,"icon"),r.maxlength?(se(),he("span",nk,[ve("span",null,Re(u.modelValue.length),1),st(" / "+Re(u.maxlength),1)])):Ee("",!0)])):Ee("",!0)],2))}},ik=["disabled","id","checked"],ok=ve("span",{class:"replace"},null,-1),ak={__name:"switch",props:wc,emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,i=vc(4);return(a,s)=>(se(),he("div",{class:$e(["input switch",{disabled:a.disabled}]),style:it({width:a.width,height:a.height})},[ve("input",{class:"replace-input",disabled:a.disabled,id:xe(i),type:"checkbox",checked:n.modelValue,onInput:s[0]||(s[0]=l=>r("update:modelValue",l.target.checked))},null,40,ik),ok],6))}},sk=["accept","multiple"],lk={key:2,class:"replace"},uk={key:0,class:"placeholder"},ck={class:"bottom"},fk={key:0},dk={key:2,class:"tj"},hk={key:3,class:"use-replace"},pk={__name:"file",props:{...jp},emits:["update:modelValue"],setup(e,{expose:t,emit:n}){const r=e,i=n,a=ae(null),s=ue(()=>{if(r.scale){const[h,_]=r.scale.split(":");if(Number(h)&&Number(_))return[Number(h),Number(_)]}}),l=ue(()=>Array.isArray(r.modelValue)?r.modelValue.length:!!r.modelValue),u=ue(()=>{if(r.maxSize){const h=r.maxSize/1024/1024;return h>1024?h/1024+"GB":h+"MB"}}),f={image:{types:["image/jpeg","image/jpg","image/png","image/gif","image/webp"],preview(h,_){return new Promise((b,E)=>{const v=new Image;v.onload=()=>b([v.width,v.height,h]),v.onerror=E,v.src=_})}},video:{types:["video/mp4"],preview(h,_){return new Promise((b,E)=>{const v=document.createElement("video");v.preload="metadata",v.onloadedmetadata=()=>b([v.videoWidth,v.videoHeight,h]),v.onerror=E,v.src=_})}}},p=h=>Promise.all(h.map(_=>new Promise((b,E)=>{const v=new FileReader;v.onloadend=m=>b(m.target.result),v.onerror=m=>loaderror(_,E(m)),v.readAsDataURL(_)}))),c=(h,_)=>parseInt(h/_*1e3),d=async h=>{const _=h.target,b=Array.from(_.files),E=(g,w="\u9884\u89C8\u52A0\u8F7D\u5931\u8D25\uFF01")=>{console.error(g),yn.error(w),_.value=""};if(r.accept)for(const g of b){const w=r.accept.split(",").map(O=>O.trim().toUpperCase()),x=g.name.substr(g.name.lastIndexOf(".")).toUpperCase();if(!w.includes(x))return E("\u683C\u5F0F\u9519\u8BEF",`\u4EC5\u652F\u6301${r.accept}\u683C\u5F0F\u6587\u4EF6`)}let v;if(r.preview||s.value)try{v=await p(b)}catch(g){return E(g)}if(s.value){const g=[];for(let x=0;xT.types.includes(b[x].type));O&&g.push(O.preview(b[x],v[x]))}let w;try{w=await Promise.all(g)}catch(x){return E(x)}for(const[x,O,T]of w){const P=c(...s.value)-c(x,O);if(Math.abs(P)>300)return E("error scale",`${T.name}\u7684\u6BD4\u4F8B\u90E8\u4F4D\u4E0D\u4E3A${r.scale}`)}}if(r.maxSize){for(const g of b)if(g.size>r.maxSize)return E("error size",`${g.name}\u7684\u5927\u5C0F\u8D85\u8FC7${u.value}`)}const m=r.modelValue?r.multiple?xr(r.modelValue)==="Array"?r.modelValue:[r.modelValue]:null:r.multiple?[]:null,y=r.multiple?r.preview?[...m,...b.map((g,w)=>({file:g,preview:v[w]}))]:[...m,b]:r.preview?{file:b[0],preview:v[0]}:b[0];if(Array.isArray(y)&&r.maxLen&&y.length>r.maxLen)return E("err len",`\u6700\u591A\u4EC5\u652F\u6301${r.maxLen}\u4E2A\u6587\u4EF6\uFF01`);i("update:modelValue",y),_.value=""};return t({input:a}),(h,_)=>{const b=mt("ui-icon");return se(),he("div",{class:$e(["input file",{suffix:h.$slots.icon,disabled:h.disabled,valuable:l.value}])},[l.value?Se(h.$slots,"valuable",{key:h.modelValue}):Ee("",!0),!h.maxLen||h.maxLen>h.modelValue.length?(se(),he("input",{key:1,class:"ui-text",type:"file",ref_key:"inputRef",ref:a,accept:h.accept,multiple:h.multiple,onChange:d},null,40,sk)):Ee("",!0),h.$slots.replace?(se(),he("div",hk,[Se(h.$slots,"replace")])):(se(),he("span",lk,[l.value?(se(),he(Pe,{key:1},[!h.maxLen||h.maxLen>h.modelValue.length?(se(),he("span",fk,Re(h.multiple?"\u7EE7\u7EED\u6DFB\u52A0":"\u66FF\u6362"),1)):Ee("",!0)],64)):(se(),he("div",uk,[ve("p",null,[X(b,{type:"add"})]),ve("p",null,Re(h.placeholder),1),ve("p",ck,[h.othPlaceholder?(se(),he(Pe,{key:1},[st(Re(h.othPlaceholder),1)],64)):(se(),he(Pe,{key:0},[h.accept?(se(),he(Pe,{key:0},[st("\u652F\u6301 "+Re(h.accept)+" \u7B49\u683C\u5F0F,",1)],64)):Ee("",!0),s.value?(se(),he(Pe,{key:1},[st("\u5BBD*\u9AD8\u6BD4\u4F8B "+Re(h.scale)+",",1)],64)):Ee("",!0),h.maxSize?(se(),he(Pe,{key:2},[st("\u5927\u5C0F\u4E0D\u8D85\u8FC7 "+Re(u.value)+Re(h.maxLen?",":""),1)],64)):Ee("",!0),h.maxLen?(se(),he(Pe,{key:3},[st("\u4E2A\u6570\u4E0D\u8D85\u8FC7 "+Re(h.maxLen)+"\u4E2A",1)],64)):Ee("",!0)],64))])])),h.maxLen&&h.modelValue.length?(se(),he("span",dk,[ve("span",null,Re(h.modelValue.length||0),1),st(" / "+Re(h.maxLen),1)])):Ee("",!0)]))],2)}}},vk={__name:"search",props:qp,emits:[...Ps],setup(e,{expose:t,emit:n}){const r=e,i=ae(""),a=ae([]),s=ae(),l=n;Ke(()=>{a.value=i.value?r.options.filter(({label:_})=>_.includes(i.value)):r.options});let u=null;const f=()=>{u=r.modelValue,l("update:modelValue",null),p(""),h.focus(),clearTimeout(c)},p=_=>{const b=r.options.find(({value:m})=>m===_),E=r.options.find(({label:m})=>m===_),v=b||E;v?(i.value=v.label,l("update:modelValue",v.value),u=null):typeof _=="string"&&(i.value=_)};Ke(()=>{r.modelValue===null&&p("")}),p(r.modelValue);let c;const d=()=>{c=setTimeout(()=>{p(r.modelValue===null?u:r.modelValue)},100)};let h;return Ke(()=>{s.value&&(h&&(h.removeEventListener("blur",d),h=null),h=s.value.vmRef.input,h.addEventListener("blur",d))}),ur(()=>{h&&h.removeEventListener("blur",d)}),t({vmRef:s,update:(..._)=>p(..._),clearHandler:f}),(_,b)=>{const E=mt("ui-icon");return se(),We(Vp,ri({ref_key:"selectVM",ref:s,className:"search"},r,{readonly:!1,onBlur:b[0]||(b[0]=v=>l("blur")),onFocus:b[1]||(b[1]=v=>l("focus")),"onUpdate:modelValue":p,labelValue:i.value,options:a.value}),xa({icon:De(()=>[i.value?(se(),We(E,{key:0,type:"clear",class:"clear",onClick:f})):Ee("",!0)]),preIcon:De(()=>[X(E,{type:"search",size:"14px",color:"rgba(255,255,255,.3)"})]),_:2},[Gn(_.$slots,(v,m)=>({name:m,fn:De(y=>[Se(_.$slots,m,Vs(Sa(y)))])}))]),1040,["labelValue","options"])}}},mk=["placeholder","readonly"],gk=ve("span",{class:"replace"},null,-1),yk={key:0,class:"retouch"},bk={key:0,class:"len"},_k={__name:"richtext",props:{...Bp},emits:["update:modelValue","focus","blur","click",""],setup(e,{expose:t,emit:n}){const r=e,i=n,a=ae(null),s=ae(null),l=ae(0),u=g=>{s.value.innerHTML=g,l.value=s.value.textContent.length};Ke(()=>{s.value&&r.modelValue!==s.value.innerHTML&&u(r.modelValue)});let f=!1;const p=()=>{f=!0},c=g=>{f=!1,d(g)},d=g=>{f||(!r.maxlength||g.target.textContent.length<=Number(r.maxlength)?(l.value=s.value.textContent.length,i("update:modelValue",g.target.innerHTML)):Qe(()=>{g.target.innerHTML!==r.modelValue.toString()&&(u(r.modelValue.toString()),v())}))},h=function(g=s.value){var w=0,x=g.ownerDocument||g.document,O=x.defaultView||x.parentWindow,T;if(typeof O.getSelection<"u"){if(T=O.getSelection(),T.rangeCount>0){var P=O.getSelection().getRangeAt(0),A=P.cloneRange();A.selectNodeContents(g),A.setEnd(P.endContainer,P.endOffset),w=A.toString().length}}else if((T=x.selection)&&T.type!="Control"){var S=T.createRange(),C=x.body.createTextRange();C.moveToElementText(g),C.setEndPoint("EndToEnd",S),w=C.text.length}return w};let _;const b=g=>{clearInterval(_),_=setInterval(()=>{i("updatePos",h())},100),i("focus")},E=()=>{clearInterval(_),i("blur")},v=()=>{s.value.focus();const g=window.getSelection();g.selectAllChildren(s.value),g.collapseToEnd()},m=g=>{if(!r.maxlength)return g;const w=document.createElement("div");return w.innerHTML=g,w.textContent.length>r.maxlength-l.value?w.textContent.substring(0,r.maxlength-l.value):g},y=g=>{g.preventDefault();var w,x=(g.originalEvent||g).clipboardData;if(x==null){if(w=window.clipboardData.getData("text")||"",w!=="")if(window.getSelection){var O=document.createElement("span");O.innerHTML=m(w),window.getSelection().getRangeAt(0).insertNode(O)}else document.selection.createRange().pasteHTML(w)}else w=x.getData("text/plain")||"",w!==""&&document.execCommand("insertText",!1,m(w))};return t({root:a,input:s,getCursortPosition:h}),(g,w)=>(se(),he("div",{class:$e(["input textarea",{suffix:g.$slots.icon||g.maxlength,disabled:g.disabled,right:g.right}]),ref_key:"textRef",ref:a},[ve("div",ri({contenteditable:"true",class:"ui-text input-div",onInput:d,placeholder:r.placeholder,readonly:g.readonly,onClick:w[0]||(w[0]=x=>i("click")),onFocus:b,onBlur:E,onPaste:y,onCompositionstart:p,onCompositionend:c,ref_key:"inputRef",ref:s},g.other),null,16,mk),gk,g.$slots.icon||r.maxlength?(se(),he("span",yk,[Se(g.$slots,"icon"),r.maxlength?(se(),he("span",bk,[ve("span",null,Re(l.value),1),st(" / "+Re(g.maxlength),1)])):Ee("",!0)])):Ee("",!0)],2))}},wk=["name","disabled","id","value","checked"],Ek={key:0,class:"replace"},xk={__name:"color",props:Fp,emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,i=vc(4),a=s=>{r("update:modelValue",s.target.value),Qe(()=>{s.target.value!==n.modelValue.toString()&&(s.target.value=n.modelValue.toString())})};return(s,l)=>(se(),he("div",{class:$e(["color input",{default:!s.$slots.replace}]),style:it({width:s.width,height:s.height})},[ve("input",{name:s.name,disabled:s.disabled,id:xe(i),value:n.modelValue,type:"color",class:"replace-input",checked:n.modelValue,onInput:a},null,40,wk),s.$slots.replace?(se(),he("span",Ek,[Se(s.$slots,"replace")])):Ee("",!0)],6))}},Sk=Ce({props:$_,emits:{"update:modelValue":()=>!0},setup(e,{emit:t}){const n=a=>e.modelValue.some(s=>a.value===s),r=(a,s)=>{const l=e.modelValue.findIndex(f=>s.value===f),u=[...e.modelValue];~l&&!a?u.splice(l,1):!~l&&a&&u.push(s.value),t("update:modelValue",u)};return{fillValue:ue(()=>e.modelValue.map(a=>e.options.find(s=>s.value===a).label).join(",")),isCheck:n,updateItem:r}},components:{Select:Vp,Checkbox:M_}}),Ok={class:"multiple-option"},Ck={class:"ui-input"};function Tk(e,t,n,r,i,a){const s=mt("Checkbox"),l=mt("Select");return se(),We(l,{floatingClass:"multiple",options:e.options,placeholder:e.placeholder,labelValue:e.fillValue,stopEl:"*"},{option:De(({raw:u})=>[ve("div",Ok,[ve("div",Ck,[X(s,{"onUpdate:modelValue":f=>e.updateItem(f,u),modelValue:e.isCheck(u)},null,8,["onUpdate:modelValue","modelValue"])]),ve("p",null,Re(u.label),1)])]),_:1},8,["options","placeholder","labelValue"])}const Ak=Et(Sk,[["render",Tk]]),Pk={key:0,class:"error-msg"},kk={name:"ui-input"},Ik=Object.assign(kk,{props:AP,emits:[...Ps],setup(e,{expose:t,emit:n}){const r={checkbox:{component:M_,propsDesc:Ec},text:{component:Up,propsDesc:Yr},select:{component:Vp,propsDesc:Zs},radio:{component:NP,propsDesc:Dp},range:{component:JP,propsDesc:Hp},number:{component:L_,propsDesc:na},switch:{component:ak,propsDesc:wc},textarea:{component:rk,propsDesc:xc},file:{component:pk,propsDesc:jp},search:{component:vk,propsDesc:qp},richtext:{component:_k,propsDesc:Bp},color:{component:xk,propsDesc:Fp},multiple:{component:Ak,propsDesc:$_}},i=e,a=ae(),s=ae(),l=ue(()=>r[i.type]?i.type:"text"),u=ue(()=>{const h=Object.keys(r[l.value].propsDesc),_={};for(let b in i)h.includes(b)&&(_[b]=i[b]);return r[i.type]||(_.type=i.type),_.ref=s,_}),f=ue(()=>{const h={},_=Object.keys(u.value);return _.includes("width")||(h.width=i.width),_.includes("height")||(h.height=i.height),h}),p=zt(),c=ue(()=>{const h={};return(Sg[i.type]?Sg[i.type]:["update:modelValue"]).forEach(b=>{h[b]=(...E)=>{p.emit(b,...E)}}),h}),d=n;return t(yt({vmRef:a})),(h,_)=>r[l.value]?(se(),he("div",{key:0,class:$e(["ui-input",{require:i.require,error:i.error,disabled:h.disabled}]),style:it(f.value),onClick:_[0]||(_[0]=b=>d("click",b))},[(se(),We(r1(r[l.value].component),ri(u.value,{modelValue:i.modelValue},o1(c.value),{ref_key:"vmRef",ref:a}),xa({_:2},[Gn(h.$slots,(b,E)=>({name:E,fn:De(v=>[Se(h.$slots,E,Vs(Sa(v)))])}))]),1040,["modelValue"])),Se(h.$slots,"default"),h.error?(se(),he("p",Pk,Re(h.error),1)):Ee("",!0)],6)):Ee("",!0)}}),Nk={name:"ui-menu-item"},F_=Object.assign(Nk,{props:{icon:{type:String,require:!0},text:{type:String,require:!0},active:{type:Boolean}},emits:["leave","enter","click"],setup(e,{expose:t,emit:n}){const r=ae(null),i=n;return t({dom:r}),(a,s)=>(se(),he("div",{class:$e(["ui-menu-item",{active:e.active}]),ref_key:"self",ref:r,onMouseenter:s[0]||(s[0]=l=>i("enter")),onMouseleave:s[1]||(s[1]=l=>i("leave")),onClick:s[2]||(s[2]=l=>i("click"))},[X(xe(en),{type:e.icon,size:"18px"},null,8,["type"]),ve("span",null,Re(e.text),1),Se(a.$slots,"default")],34))}}),j_=Symbol("relation"),Rk={name:"ui-gate"},D_=Object.assign(Rk,{props:{absolute:{type:Boolean,default:!1},index:{type:[Number,String],default:0},height:{type:[Number,String]}},setup(e){const t=ae([]),n=e,r=ue(()=>n.index>t.value.length-1?t.value.length-1:n.index<0?0:n.index);return Le([t,r],()=>{for(let i=0;i(se(),he("div",{class:"ui-gate-layer",style:it({height:xe(As)(e.height),"--len":t.value.length,"--current":r.value})},[ve("div",{class:$e(["ui-gate-slides",{absolute:e.absolute}])},[Se(i.$slots,"default")],2)],4))}}),$k={name:"ui-gate-content"},B_=Object.assign($k,{setup(e){const t=ae(!1),n=gt(j_).value;return n&&(fc(()=>n.push(t)),ur(()=>{const r=n.indexOf(t);~r&&n.splice(r,1)})),(r,i)=>xe(n)?(se(),he("div",{key:0,class:$e(["ui-gate-content",{active:t.value}])},[Se(r.$slots,"default",{active:t.value})],2)):Ee("",!0)}}),Mk={key:1,class:"infos"},Lk={class:"tj"},Fk={name:"ui-slide"},jk=Object.assign(Fk,{props:{items:Array,currentIndex:{type:Number,default:0},showCtrl:{type:Boolean},showInfos:{type:Boolean}},emits:["change"],setup(e,{emit:t}){const n=e,r=t,i=ae(),a=ue(()=>n.items.length>1?1:0),s=_=>{const b=n.items.length,E=_-a.value;return E<0?E+b:E>=b?E%b:E},l=ue(()=>a.value?[...[...n.items].reverse().slice(0,a.value),...n.items,...n.items.slice(0,a.value)]:n.items),u=ue(()=>s(i.value));Ke(()=>{i.value=n.currentIndex+a.value});const f=ae(!1);let p=!1;const c=_=>{p=!0,setTimeout(()=>{f.value=!0,Qe(()=>{_(),setTimeout(()=>{f.value=!1,p=!1},50)})},300)},d=()=>{p||(u.value===0&&c(()=>{i.value=a.value+n.items.length-1}),i.value--,r("change",u.value))},h=()=>{p||(u.value===n.items.length-1&&c(()=>{i.value=a.value}),i.value++,r("change",u.value))};return(_,b)=>e.items.length?(se(),he("div",{key:0,class:$e(["ui-slide",{"stop-animation":f.value}])},[X(xe(D_),{index:i.value},{default:De(()=>[(se(!0),he(Pe,null,Gn(l.value,(E,v)=>(se(),We(xe(B_),null,{default:De(()=>[Se(_.$slots,"default",{raw:E,active:e.items[u.value],index:s(v)})]),_:2},1024))),256))]),_:3},8,["index"]),e.showCtrl?(se(),he(Pe,{key:0},[ve("span",{class:"left fun-ctrl",onClick:d},[X(xe(en),{type:"left1"})]),ve("span",{class:"right fun-ctrl",onClick:h},[X(xe(en),{type:"right"})])],64)):Ee("",!0),Se(_.$slots,"attach",{active:e.items[u.value]}),e.showInfos?(se(),he("span",Mk,[ve("span",Lk,[ve("span",null,Re(u.value+1),1),st(" / "+Re(e.items.length),1)])])):Ee("",!0)],2)):Ee("",!0)}}),Dk=["src"],Bk={name:"ui-audio"},qk=Object.assign(Bk,{props:{src:String},setup(e,{expose:t}){const n=ae(),r=ae([1,.5,1,.5]),i=ae(!1);let a;const s=()=>{if(!!i.value){for(let u=0;u{n.value&&(i.value?n.value.play():n.value.pause(),clearTimeout(a),s())});const l=()=>{i.value=!i.value};return t({play(){i.value=!0},pause(){i.value=!1}}),(u,f)=>(se(),he("div",{class:"ui-audio",onClick:l},[ve("audio",{onPlay:s,ref_key:"audio",ref:n,autoplay:"",loop:""},[ve("source",{src:e.src},null,8,Dk)],544),(se(!0),he(Pe,null,Gn(r.value,p=>(se(),he("span",{style:it({"--percent":p})},null,4))),256))]))}}),q_={};q_.getData=e=>new Promise((t,n)=>{let r={};(function(i){let a=null;return new Promise((s,l)=>{if(i.src)if(/^data\:/i.test(i.src))a=function(p){p=p.replace(/^data\:([^\;]+)\;base64,/gim,"");for(var c=atob(p),d=c.length,h=new ArrayBuffer(d),_=new Uint8Array(h),b=0;b{r.arrayBuffer=i,r.orientation=function(a){var s,l,u,f,p,c,d,h,_,b=new DataView(a),E=b.byteLength;if(b.getUint8(0)===255&&b.getUint8(1)===216)for(h=2;h=8&&(d=l+u)),d){for(E=b.getUint16(d,f),_=0;_{n(i)})});const Iu=Ce({data:function(){return{w:0,h:0,scale:1,x:0,y:0,loading:!0,trueWidth:0,trueHeight:0,move:!0,moveX:0,moveY:0,crop:!1,cropping:!1,cropW:0,cropH:0,cropOldW:0,cropOldH:0,canChangeX:!1,canChangeY:!1,changeCropTypeX:1,changeCropTypeY:1,cropX:0,cropY:0,cropChangeX:0,cropChangeY:0,cropOffsertX:0,cropOffsertY:0,support:"",touches:[],touchNow:!1,rotate:0,isIos:!1,orientation:0,imgs:"",coe:.2,scaling:!1,scalingSet:"",coeStatus:"",isCanShow:!0}},props:{img:{type:[String,Blob,null,File],default:""},outputSize:{type:Number,default:1},outputType:{type:String,default:"jpeg"},info:{type:Boolean,default:!0},canScale:{type:Boolean,default:!0},autoCrop:{type:Boolean,default:!1},autoCropWidth:{type:[Number,String],default:0},autoCropHeight:{type:[Number,String],default:0},fixed:{type:Boolean,default:!1},fixedNumber:{type:Array,default:()=>[1,1]},fixedBox:{type:Boolean,default:!1},full:{type:Boolean,default:!1},canMove:{type:Boolean,default:!0},canMoveBox:{type:Boolean,default:!0},original:{type:Boolean,default:!1},centerBox:{type:Boolean,default:!1},high:{type:Boolean,default:!0},infoTrue:{type:Boolean,default:!1},maxImgSize:{type:[Number,String],default:2e3},enlarge:{type:[Number,String],default:1},preW:{type:[Number,String],default:0},mode:{type:String,default:"contain"},limitMinSize:{type:[Number,Array,String],default:()=>10}},computed:{cropInfo(){let e={};if(e.top=this.cropOffsertY>21?"-21px":"0px",e.width=this.cropW>0?this.cropW:0,e.height=this.cropH>0?this.cropH:0,this.infoTrue){let t=1;this.high&&!this.full&&(t=window.devicePixelRatio),this.enlarge!==1&!this.full&&(t=Math.abs(Number(this.enlarge))),e.width=e.width*t,e.height=e.height*t,this.full&&(e.width=e.width/this.scale,e.height=e.height/this.scale)}return e.width=e.width.toFixed(0),e.height=e.height.toFixed(0),e},isIE:()=>!!window.ActiveXObject||"ActiveXObject"in window,passive(){return this.isIE?null:{passive:!1}}},watch:{img(){this.checkedImg()},imgs(e){e!==""&&this.reload()},cropW(){this.showPreview()},cropH(){this.showPreview()},cropOffsertX(){this.showPreview()},cropOffsertY(){this.showPreview()},scale(e,t){this.showPreview()},x(){this.showPreview()},y(){this.showPreview()},autoCrop(e){e&&this.goAutoCrop()},autoCropWidth(){this.autoCrop&&this.goAutoCrop()},autoCropHeight(){this.autoCrop&&this.goAutoCrop()},mode(){this.checkedImg()},rotate(){this.showPreview(),(this.autoCrop||this.cropW>0||this.cropH>0)&&this.goAutoCrop(this.cropW,this.cropH)}},methods:{getVersion(e){var t=navigator.userAgent.split(" "),n="";let r=0;const i=new RegExp(e,"i");for(var a=0;a=81)t=-1;else if(this.getVersion("safari")[0]>=605){const s=this.getVersion("version");s[0]>13&&s[1]>1&&(t=-1)}else{const s=navigator.userAgent.toLowerCase().match(/cpu iphone os (.*?) like mac os/);if(s){let l=s[1];l=l.split("_"),(l[0]>13||l[0]>=13&&l[1]>=4)&&(t=-1)}}let i=document.createElement("canvas"),a=i.getContext("2d");switch(a.save(),t){case 2:i.width=n,i.height=r,a.translate(n,0),a.scale(-1,1);break;case 3:i.width=n,i.height=r,a.translate(n/2,r/2),a.rotate(180*Math.PI/180),a.translate(-n/2,-r/2);break;case 4:i.width=n,i.height=r,a.translate(0,r),a.scale(1,-1);break;case 5:i.height=n,i.width=r,a.rotate(.5*Math.PI),a.scale(1,-1);break;case 6:i.width=r,i.height=n,a.translate(r/2,n/2),a.rotate(90*Math.PI/180),a.translate(-n/2,-r/2);break;case 7:i.height=n,i.width=r,a.rotate(.5*Math.PI),a.translate(n,-r),a.scale(-1,1);break;case 8:i.height=n,i.width=r,a.translate(r/2,n/2),a.rotate(-90*Math.PI/180),a.translate(-n/2,-r/2);break;default:i.width=n,i.height=r}a.drawImage(e,0,0,n,r),a.restore(),i.toBlob(s=>{let l=URL.createObjectURL(s);URL.revokeObjectURL(this.imgs),this.imgs=l},"image/"+this.outputType,1)},checkedImg(){if(this.img===null||this.img==="")return this.imgs="",void this.clearCrop();this.loading=!0,this.scale=1,this.rotate=0,this.clearCrop();let e=new Image;if(e.onload=()=>{if(this.img==="")return this.$emit("imgLoad","error"),this.$emit("img-load","error"),!1;let n=e.width,r=e.height;q_.getData(e).then(i=>{this.orientation=i.orientation||1;let a=Number(this.maxImgSize);!this.orientation&&na&&(r=r/n*a,n=a),r>a&&(n=n/r*a,r=a),this.checkOrientationImage(e,this.orientation,n,r))})},e.onerror=()=>{this.$emit("imgLoad","error"),this.$emit("img-load","error")},this.img.substr(0,4)!=="data"&&(e.crossOrigin=""),this.isIE){var t=new XMLHttpRequest;t.onload=function(){var n=URL.createObjectURL(this.response);e.src=n},t.open("GET",this.img,!0),t.responseType="blob",t.send()}else e.src=this.img},startMove(e){if(e.preventDefault(),this.move&&!this.crop){if(!this.canMove)return!1;this.moveX=("clientX"in e?e.clientX:e.touches[0].clientX)-this.x,this.moveY=("clientY"in e?e.clientY:e.touches[0].clientY)-this.y,e.touches?(window.addEventListener("touchmove",this.moveImg),window.addEventListener("touchend",this.leaveImg),e.touches.length==2&&(this.touches=e.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale))):(window.addEventListener("mousemove",this.moveImg),window.addEventListener("mouseup",this.leaveImg)),this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}else this.cropping=!0,window.addEventListener("mousemove",this.createCrop),window.addEventListener("mouseup",this.endCrop),window.addEventListener("touchmove",this.createCrop),window.addEventListener("touchend",this.endCrop),this.cropOffsertX=e.offsetX?e.offsetX:e.touches[0].pageX-this.$refs.cropper.offsetLeft,this.cropOffsertY=e.offsetY?e.offsetY:e.touches[0].pageY-this.$refs.cropper.offsetTop,this.cropX="clientX"in e?e.clientX:e.touches[0].clientX,this.cropY="clientY"in e?e.clientY:e.touches[0].clientY,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.cropW=0,this.cropH=0},touchScale(e){e.preventDefault();let t=this.scale;var n=this.touches[0].clientX,r=this.touches[0].clientY,i=e.touches[0].clientX,a=e.touches[0].clientY,s=this.touches[1].clientX,l=this.touches[1].clientY,u=e.touches[1].clientX,f=e.touches[1].clientY,p=Math.sqrt(Math.pow(n-s,2)+Math.pow(r-l,2)),c=Math.sqrt(Math.pow(i-u,2)+Math.pow(a-f,2))-p,d=1,h=(d=(d=d/this.trueWidth>d/this.trueHeight?d/this.trueHeight:d/this.trueWidth)>.1?.1:d)*c;if(!this.touchNow){if(this.touchNow=!0,c>0?t+=Math.abs(h):c<0&&t>Math.abs(h)&&(t-=Math.abs(h)),this.touches=e.touches,setTimeout(()=>{this.touchNow=!1},8),!this.checkoutImgAxis(this.x,this.y,t))return!1;this.scale=t}},cancelTouchScale(e){window.removeEventListener("touchmove",this.touchScale)},moveImg(e){if(e.preventDefault(),e.touches&&e.touches.length===2)return this.touches=e.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale),window.removeEventListener("touchmove",this.moveImg),!1;let t,n,r="clientX"in e?e.clientX:e.touches[0].clientX,i="clientY"in e?e.clientY:e.touches[0].clientY;t=r-this.moveX,n=i-this.moveY,this.$nextTick(()=>{if(this.centerBox){let a,s,l,u,f=this.getImgAxis(t,n,this.scale),p=this.getCropAxis(),c=this.trueHeight*this.scale,d=this.trueWidth*this.scale;switch(this.rotate){case 1:case-1:case 3:case-3:a=this.cropOffsertX-this.trueWidth*(1-this.scale)/2+(c-d)/2,s=this.cropOffsertY-this.trueHeight*(1-this.scale)/2+(d-c)/2,l=a-c+this.cropW,u=s-d+this.cropH;break;default:a=this.cropOffsertX-this.trueWidth*(1-this.scale)/2,s=this.cropOffsertY-this.trueHeight*(1-this.scale)/2,l=a-d+this.cropW,u=s-c+this.cropH}f.x1>=p.x1&&(t=a),f.y1>=p.y1&&(n=s),f.x2<=p.x2&&(t=l),f.y2<=p.y2&&(n=u)}this.x=t,this.y=n,this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})})},leaveImg(e){window.removeEventListener("mousemove",this.moveImg),window.removeEventListener("touchmove",this.moveImg),window.removeEventListener("mouseup",this.leaveImg),window.removeEventListener("touchend",this.leaveImg),this.$emit("imgMoving",{moving:!1,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!1,axis:this.getImgAxis()})},scaleImg(){this.canScale&&window.addEventListener(this.support,this.changeSize,this.passive)},cancelScale(){this.canScale&&window.removeEventListener(this.support,this.changeSize)},changeSize(e){e.preventDefault();let t=this.scale;var n=e.deltaY||e.wheelDelta;n=navigator.userAgent.indexOf("Firefox")>0?30*n:n,this.isIE&&(n=-n);var r=this.coe,i=(r=r/this.trueWidth>r/this.trueHeight?r/this.trueHeight:r/this.trueWidth)*n;i<0?t+=Math.abs(i):t>Math.abs(i)&&(t-=Math.abs(i));let a=i<0?"add":"reduce";if(a!==this.coeStatus&&(this.coeStatus=a,this.coe=.2),this.scaling||(this.scalingSet=setTimeout(()=>{this.scaling=!1,this.coe=this.coe+=.01},50)),this.scaling=!0,!this.checkoutImgAxis(this.x,this.y,t))return!1;this.scale=t},changeScale(e){let t=this.scale;e=e||1;var n=20;if((e*=n=n/this.trueWidth>n/this.trueHeight?n/this.trueHeight:n/this.trueWidth)>0?t+=Math.abs(e):t>Math.abs(e)&&(t-=Math.abs(e)),!this.checkoutImgAxis(this.x,this.y,t))return!1;this.scale=t},createCrop(e){e.preventDefault();var t="clientX"in e?e.clientX:e.touches?e.touches[0].clientX:0,n="clientY"in e?e.clientY:e.touches?e.touches[0].clientY:0;this.$nextTick(()=>{var r=t-this.cropX,i=n-this.cropY;if(r>0?(this.cropW=r+this.cropChangeX>this.w?this.w-this.cropChangeX:r,this.cropOffsertX=this.cropChangeX):(this.cropW=this.w-this.cropChangeX+Math.abs(r)>this.w?this.cropChangeX:Math.abs(r),this.cropOffsertX=this.cropChangeX+r>0?this.cropChangeX+r:0),this.fixed){var a=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];a+this.cropOffsertY>this.h?(this.cropH=this.h-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],this.cropOffsertX=r>0?this.cropChangeX:this.cropChangeX-this.cropW):this.cropH=a,this.cropOffsertY=this.cropOffsertY}else i>0?(this.cropH=i+this.cropChangeY>this.h?this.h-this.cropChangeY:i,this.cropOffsertY=this.cropChangeY):(this.cropH=this.h-this.cropChangeY+Math.abs(i)>this.h?this.cropChangeY:Math.abs(i),this.cropOffsertY=this.cropChangeY+i>0?this.cropChangeY+i:0)})},changeCropSize(e,t,n,r,i){e.preventDefault(),window.addEventListener("mousemove",this.changeCropNow),window.addEventListener("mouseup",this.changeCropEnd),window.addEventListener("touchmove",this.changeCropNow),window.addEventListener("touchend",this.changeCropEnd),this.canChangeX=t,this.canChangeY=n,this.changeCropTypeX=r,this.changeCropTypeY=i,this.cropX="clientX"in e?e.clientX:e.touches[0].clientX,this.cropY="clientY"in e?e.clientY:e.touches[0].clientY,this.cropOldW=this.cropW,this.cropOldH=this.cropH,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.fixed&&this.canChangeX&&this.canChangeY&&(this.canChangeY=0),this.$emit("change-crop-size",{width:this.cropW,height:this.cropH})},changeCropNow(e){e.preventDefault();var t="clientX"in e?e.clientX:e.touches?e.touches[0].clientX:0,n="clientY"in e?e.clientY:e.touches?e.touches[0].clientY:0;let r=this.w,i=this.h,a=0,s=0;if(this.centerBox){let l=this.getImgAxis(),u=l.x2,f=l.y2;a=l.x1>0?l.x1:0,s=l.y1>0?l.y1:0,r>u&&(r=u),i>f&&(i=f)}this.$nextTick(()=>{var l=t-this.cropX,u=n-this.cropY;if(this.canChangeX&&(this.changeCropTypeX===1?this.cropOldW-l>0?(this.cropW=r-this.cropChangeX-l<=r-a?this.cropOldW-l:this.cropOldW+this.cropChangeX-a,this.cropOffsertX=r-this.cropChangeX-l<=r-a?this.cropChangeX+l:a):(this.cropW=Math.abs(l)+this.cropChangeX<=r?Math.abs(l)-this.cropOldW:r-this.cropOldW-this.cropChangeX,this.cropOffsertX=this.cropChangeX+this.cropOldW):this.changeCropTypeX===2&&(this.cropOldW+l>0?(this.cropW=this.cropOldW+l+this.cropOffsertX<=r?this.cropOldW+l:r-this.cropOffsertX,this.cropOffsertX=this.cropChangeX):(this.cropW=r-this.cropChangeX+Math.abs(l+this.cropOldW)<=r-a?Math.abs(l+this.cropOldW):this.cropChangeX-a,this.cropOffsertX=r-this.cropChangeX+Math.abs(l+this.cropOldW)<=r-a?this.cropChangeX-Math.abs(l+this.cropOldW):a))),this.canChangeY&&(this.changeCropTypeY===1?this.cropOldH-u>0?(this.cropH=i-this.cropChangeY-u<=i-s?this.cropOldH-u:this.cropOldH+this.cropChangeY-s,this.cropOffsertY=i-this.cropChangeY-u<=i-s?this.cropChangeY+u:s):(this.cropH=Math.abs(u)+this.cropChangeY<=i?Math.abs(u)-this.cropOldH:i-this.cropOldH-this.cropChangeY,this.cropOffsertY=this.cropChangeY+this.cropOldH):this.changeCropTypeY===2&&(this.cropOldH+u>0?(this.cropH=this.cropOldH+u+this.cropOffsertY<=i?this.cropOldH+u:i-this.cropOffsertY,this.cropOffsertY=this.cropChangeY):(this.cropH=i-this.cropChangeY+Math.abs(u+this.cropOldH)<=i-s?Math.abs(u+this.cropOldH):this.cropChangeY-s,this.cropOffsertY=i-this.cropChangeY+Math.abs(u+this.cropOldH)<=i-s?this.cropChangeY-Math.abs(u+this.cropOldH):s))),this.canChangeX&&this.fixed){var f=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];f+this.cropOffsertY>i?(this.cropH=i-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0]):this.cropH=f}if(this.canChangeY&&this.fixed){var p=this.cropH/this.fixedNumber[1]*this.fixedNumber[0];p+this.cropOffsertX>r?(this.cropW=r-this.cropOffsertX,this.cropH=this.cropW/this.fixedNumber[0]*this.fixedNumber[1]):this.cropW=p}})},checkCropLimitSize(){let{cropW:e,cropH:t,limitMinSize:n}=this,r=new Array;return r=Array.isArray[n]?n:[n,n],e=parseFloat(r[0]),t=parseFloat(r[1]),[e,t]},changeCropEnd(e){window.removeEventListener("mousemove",this.changeCropNow),window.removeEventListener("mouseup",this.changeCropEnd),window.removeEventListener("touchmove",this.changeCropNow),window.removeEventListener("touchend",this.changeCropEnd)},endCrop(){this.cropW===0&&this.cropH===0&&(this.cropping=!1),window.removeEventListener("mousemove",this.createCrop),window.removeEventListener("mouseup",this.endCrop),window.removeEventListener("touchmove",this.createCrop),window.removeEventListener("touchend",this.endCrop)},startCrop(){this.crop=!0},stopCrop(){this.crop=!1},clearCrop(){this.cropping=!1,this.cropW=0,this.cropH=0},cropMove(e){if(e.preventDefault(),!this.canMoveBox)return this.crop=!1,this.startMove(e),!1;if(e.touches&&e.touches.length===2)return this.crop=!1,this.startMove(e),this.leaveCrop(),!1;window.addEventListener("mousemove",this.moveCrop),window.addEventListener("mouseup",this.leaveCrop),window.addEventListener("touchmove",this.moveCrop),window.addEventListener("touchend",this.leaveCrop);let t,n,r="clientX"in e?e.clientX:e.touches[0].clientX,i="clientY"in e?e.clientY:e.touches[0].clientY;t=r-this.cropOffsertX,n=i-this.cropOffsertY,this.cropX=t,this.cropY=n,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})},moveCrop(e,t){let n=0,r=0;e&&(e.preventDefault(),n="clientX"in e?e.clientX:e.touches[0].clientX,r="clientY"in e?e.clientY:e.touches[0].clientY),this.$nextTick(()=>{let i,a,s=n-this.cropX,l=r-this.cropY;if(t&&(s=this.cropOffsertX,l=this.cropOffsertY),i=s<=0?0:s+this.cropW>this.w?this.w-this.cropW:s,a=l<=0?0:l+this.cropH>this.h?this.h-this.cropH:l,this.centerBox){let u=this.getImgAxis();i<=u.x1&&(i=u.x1),i+this.cropW>u.x2&&(i=u.x2-this.cropW),a<=u.y1&&(a=u.y1),a+this.cropH>u.y2&&(a=u.y2-this.cropH)}this.cropOffsertX=i,this.cropOffsertY=a,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})})},getImgAxis(e,t,n){e=e||this.x,t=t||this.y,n=n||this.scale;let r={x1:0,x2:0,y1:0,y2:0},i=this.trueWidth*n,a=this.trueHeight*n;switch(this.rotate){case 0:r.x1=e+this.trueWidth*(1-n)/2,r.x2=r.x1+this.trueWidth*n,r.y1=t+this.trueHeight*(1-n)/2,r.y2=r.y1+this.trueHeight*n;break;case 1:case-1:case 3:case-3:r.x1=e+this.trueWidth*(1-n)/2+(i-a)/2,r.x2=r.x1+this.trueHeight*n,r.y1=t+this.trueHeight*(1-n)/2+(a-i)/2,r.y2=r.y1+this.trueWidth*n;break;default:r.x1=e+this.trueWidth*(1-n)/2,r.x2=r.x1+this.trueWidth*n,r.y1=t+this.trueHeight*(1-n)/2,r.y2=r.y1+this.trueHeight*n}return r},getCropAxis(){let e={x1:0,x2:0,y1:0,y2:0};return e.x1=this.cropOffsertX,e.x2=e.x1+this.cropW,e.y1=this.cropOffsertY,e.y2=e.y1+this.cropH,e},leaveCrop(e){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.$emit("cropMoving",{moving:!1,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!1,axis:this.getCropAxis()})},getCropChecked(e){let t=document.createElement("canvas"),n=new Image,r=this.rotate,i=this.trueWidth,a=this.trueHeight,s=this.cropOffsertX,l=this.cropOffsertY;function u(f,p){t.width=Math.round(f),t.height=Math.round(p)}n.onload=()=>{if(this.cropW!==0){let f=t.getContext("2d"),p=1;this.high&!this.full&&(p=window.devicePixelRatio),this.enlarge!==1&!this.full&&(p=Math.abs(Number(this.enlarge)));let c=this.cropW*p,d=this.cropH*p,h=i*this.scale*p,_=a*this.scale*p,b=(this.x-s+this.trueWidth*(1-this.scale)/2)*p,E=(this.y-l+this.trueHeight*(1-this.scale)/2)*p;switch(u(c,d),f.save(),r){case 0:this.full?(u(c/this.scale,d/this.scale),f.drawImage(n,b/this.scale,E/this.scale,h/this.scale,_/this.scale)):f.drawImage(n,b,E,h,_);break;case 1:case-3:this.full?(u(c/this.scale,d/this.scale),b=b/this.scale+(h/this.scale-_/this.scale)/2,E=E/this.scale+(_/this.scale-h/this.scale)/2,f.rotate(90*r*Math.PI/180),f.drawImage(n,E,-b-_/this.scale,h/this.scale,_/this.scale)):(b+=(h-_)/2,E+=(_-h)/2,f.rotate(90*r*Math.PI/180),f.drawImage(n,E,-b-_,h,_));break;case 2:case-2:this.full?(u(c/this.scale,d/this.scale),f.rotate(90*r*Math.PI/180),b/=this.scale,E/=this.scale,f.drawImage(n,-b-h/this.scale,-E-_/this.scale,h/this.scale,_/this.scale)):(f.rotate(90*r*Math.PI/180),f.drawImage(n,-b-h,-E-_,h,_));break;case 3:case-1:this.full?(u(c/this.scale,d/this.scale),b=b/this.scale+(h/this.scale-_/this.scale)/2,E=E/this.scale+(_/this.scale-h/this.scale)/2,f.rotate(90*r*Math.PI/180),f.drawImage(n,-E-h/this.scale,b,h/this.scale,_/this.scale)):(b+=(h-_)/2,E+=(_-h)/2,f.rotate(90*r*Math.PI/180),f.drawImage(n,-E-h,b,h,_));break;default:this.full?(u(c/this.scale,d/this.scale),f.drawImage(n,b/this.scale,E/this.scale,h/this.scale,_/this.scale)):f.drawImage(n,b,E,h,_)}f.restore()}else{let f=i*this.scale,p=a*this.scale,c=t.getContext("2d");switch(c.save(),r){case 0:u(f,p),c.drawImage(n,0,0,f,p);break;case 1:case-3:u(p,f),c.rotate(90*r*Math.PI/180),c.drawImage(n,0,-p,f,p);break;case 2:case-2:u(f,p),c.rotate(90*r*Math.PI/180),c.drawImage(n,-f,-p,f,p);break;case 3:case-1:u(p,f),c.rotate(90*r*Math.PI/180),c.drawImage(n,-f,0,f,p);break;default:u(f,p),c.drawImage(n,0,0,f,p)}c.restore()}e(t)},this.img.substr(0,4)!=="data"&&(n.crossOrigin="Anonymous"),n.src=this.imgs},getCropData(e){this.getCropChecked(t=>{e(t.toDataURL("image/"+this.outputType,this.outputSize))})},getCropBlob(e){this.getCropChecked(t=>{t.toBlob(n=>e(n),"image/"+this.outputType,this.outputSize)})},showPreview(){if(!this.isCanShow)return!1;this.isCanShow=!1,setTimeout(()=>{this.isCanShow=!0},16);let e=this.cropW,t=this.cropH,n=this.scale;var r={};r.div={width:`${e}px`,height:`${t}px`};let i=(this.x-this.cropOffsertX)/n,a=(this.y-this.cropOffsertY)/n;r.w=e,r.h=t,r.url=this.imgs,r.img={width:`${this.trueWidth}px`,height:`${this.trueHeight}px`,transform:`scale(${n})translate3d(${i}px, ${a}px, 0px)rotateZ(${90*this.rotate}deg)`},r.html=`
`,this.$emit("realTime",r),this.$emit("real-time",r)},reload(){let e=new Image;e.onload=()=>{this.w=parseFloat(window.getComputedStyle(this.$refs.cropper).width),this.h=parseFloat(window.getComputedStyle(this.$refs.cropper).height),this.trueWidth=e.width,this.trueHeight=e.height,this.original?this.scale=1:this.scale=this.checkedMode(),this.$nextTick(()=>{this.x=-(this.trueWidth-this.trueWidth*this.scale)/2+(this.w-this.trueWidth*this.scale)/2,this.y=-(this.trueHeight-this.trueHeight*this.scale)/2+(this.h-this.trueHeight*this.scale)/2,this.loading=!1,this.autoCrop&&this.goAutoCrop(),this.$emit("img-load","success"),this.$emit("imgLoad","success"),setTimeout(()=>{this.showPreview()},20)})},e.onerror=()=>{this.$emit("imgLoad","error"),this.$emit("img-load","error")},e.src=this.imgs},checkedMode(){let e=1,t=this.trueWidth,n=this.trueHeight;const r=this.mode.split(" ");switch(r[0]){case"contain":this.trueWidth>this.w&&(e=this.w/this.trueWidth),this.trueHeight*e>this.h&&(e=this.h/this.trueHeight);break;case"cover":t=this.w,e=t/this.trueWidth,n*=e,n0;let l=(s?this.trueHeight:this.trueWidth)*this.scale,u=(s?this.trueWidth:this.trueHeight)*this.scale;n=ln?n:i,a=a>r?r:a,this.fixed&&(a=i/this.fixedNumber[0]*this.fixedNumber[1]),a>this.h&&(i=(a=this.h)/this.fixedNumber[1]*this.fixedNumber[0]),this.changeCrop(i,a)},changeCrop(e,t){if(this.centerBox){let n=this.getImgAxis();e>n.x2-n.x1&&(t=(e=n.x2-n.x1)/this.fixedNumber[0]*this.fixedNumber[1]),t>n.y2-n.y1&&(e=(t=n.y2-n.y1)/this.fixedNumber[1]*this.fixedNumber[0])}this.cropW=e,this.cropH=t,this.checkCropLimitSize(),this.$nextTick(()=>{this.cropOffsertX=(this.w-this.cropW)/2,this.cropOffsertY=(this.h-this.cropH)/2,this.centerBox&&this.moveCrop(null,!0)})},refresh(){this.img,this.imgs="",this.scale=1,this.crop=!1,this.rotate=0,this.w=0,this.h=0,this.trueWidth=0,this.trueHeight=0,this.clearCrop(),this.$nextTick(()=>{this.checkedImg()})},rotateLeft(){this.rotate=this.rotate<=-3?0:this.rotate-1},rotateRight(){this.rotate=this.rotate>=3?0:this.rotate+1},rotateClear(){this.rotate=0},checkoutImgAxis(e,t,n){e=e||this.x,t=t||this.y,n=n||this.scale;let r=!0;if(this.centerBox){let i=this.getImgAxis(e,t,n),a=this.getCropAxis();i.x1>=a.x1&&(r=!1),i.x2<=a.x2&&(r=!1),i.y1>=a.y1&&(r=!1),i.y2<=a.y2&&(r=!1)}return r}},mounted(){this.support="onwheel"in document.createElement("div")?"wheel":document.onmousewheel!==void 0?"mousewheel":"DOMMouseScroll";let e=this;var t=navigator.userAgent;this.isIOS=!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(n,r,i){for(var a=atob(this.toDataURL(r,i).split(",")[1]),s=a.length,l=new Uint8Array(s),u=0;ue.scaleImg&&e.scaleImg(...s)),onMouseout:t[29]||(t[29]=(...s)=>e.cancelScale&&e.cancelScale(...s))},[e.imgs?(se(),he("div",Hk,[ro(ve("div",{class:"cropper-box-canvas",style:it({width:e.trueWidth+"px",height:e.trueHeight+"px",transform:"scale("+e.scale+","+e.scale+") translate3d("+e.x/e.scale+"px,"+e.y/e.scale+"px,0)rotateZ("+90*e.rotate+"deg)"})},[ve("img",{src:e.imgs,alt:"cropper-img",ref:"cropperImg"},null,8,Uk)],4),[[ca,!e.loading]])])):Ee("",!0),ve("div",{class:$e(["cropper-drag-box",{"cropper-move":e.move&&!e.crop,"cropper-crop":e.crop,"cropper-modal":e.cropping}]),onMousedown:t[0]||(t[0]=(...s)=>e.startMove&&e.startMove(...s)),onTouchstart:t[1]||(t[1]=(...s)=>e.startMove&&e.startMove(...s))},null,34),ro(ve("div",{class:"cropper-crop-box",style:it({width:e.cropW+"px",height:e.cropH+"px",transform:"translate3d("+e.cropOffsertX+"px,"+e.cropOffsertY+"px,0)"})},[ve("span",Vk,[ve("img",{style:it({width:e.trueWidth+"px",height:e.trueHeight+"px",transform:"scale("+e.scale+","+e.scale+") translate3d("+(e.x-e.cropOffsertX)/e.scale+"px,"+(e.y-e.cropOffsertY)/e.scale+"px,0)rotateZ("+90*e.rotate+"deg)"}),src:e.imgs,alt:"cropper-img"},null,12,zk)]),ve("span",{class:"cropper-face cropper-move",onMousedown:t[2]||(t[2]=(...s)=>e.cropMove&&e.cropMove(...s)),onTouchstart:t[3]||(t[3]=(...s)=>e.cropMove&&e.cropMove(...s))},null,32),e.info?(se(),he("span",{key:0,class:"crop-info",style:it({top:e.cropInfo.top})},Re(e.cropInfo.width)+" \xD7 "+Re(e.cropInfo.height),5)):Ee("",!0),e.fixedBox?Ee("",!0):(se(),he("span",Wk,[ve("span",{class:"crop-line line-w",onMousedown:t[4]||(t[4]=s=>e.changeCropSize(s,!1,!0,0,1)),onTouchstart:t[5]||(t[5]=s=>e.changeCropSize(s,!1,!0,0,1))},null,32),ve("span",{class:"crop-line line-a",onMousedown:t[6]||(t[6]=s=>e.changeCropSize(s,!0,!1,1,0)),onTouchstart:t[7]||(t[7]=s=>e.changeCropSize(s,!0,!1,1,0))},null,32),ve("span",{class:"crop-line line-s",onMousedown:t[8]||(t[8]=s=>e.changeCropSize(s,!1,!0,0,2)),onTouchstart:t[9]||(t[9]=s=>e.changeCropSize(s,!1,!0,0,2))},null,32),ve("span",{class:"crop-line line-d",onMousedown:t[10]||(t[10]=s=>e.changeCropSize(s,!0,!1,2,0)),onTouchstart:t[11]||(t[11]=s=>e.changeCropSize(s,!0,!1,2,0))},null,32),ve("span",{class:"crop-point point1",onMousedown:t[12]||(t[12]=s=>e.changeCropSize(s,!0,!0,1,1)),onTouchstart:t[13]||(t[13]=s=>e.changeCropSize(s,!0,!0,1,1))},null,32),ve("span",{class:"crop-point point2",onMousedown:t[14]||(t[14]=s=>e.changeCropSize(s,!1,!0,0,1)),onTouchstart:t[15]||(t[15]=s=>e.changeCropSize(s,!1,!0,0,1))},null,32),ve("span",{class:"crop-point point3",onMousedown:t[16]||(t[16]=s=>e.changeCropSize(s,!0,!0,2,1)),onTouchstart:t[17]||(t[17]=s=>e.changeCropSize(s,!0,!0,2,1))},null,32),ve("span",{class:"crop-point point4",onMousedown:t[18]||(t[18]=s=>e.changeCropSize(s,!0,!1,1,0)),onTouchstart:t[19]||(t[19]=s=>e.changeCropSize(s,!0,!1,1,0))},null,32),ve("span",{class:"crop-point point5",onMousedown:t[20]||(t[20]=s=>e.changeCropSize(s,!0,!1,2,0)),onTouchstart:t[21]||(t[21]=s=>e.changeCropSize(s,!0,!1,2,0))},null,32),ve("span",{class:"crop-point point6",onMousedown:t[22]||(t[22]=s=>e.changeCropSize(s,!0,!0,1,2)),onTouchstart:t[23]||(t[23]=s=>e.changeCropSize(s,!0,!0,1,2))},null,32),ve("span",{class:"crop-point point7",onMousedown:t[24]||(t[24]=s=>e.changeCropSize(s,!1,!0,0,2)),onTouchstart:t[25]||(t[25]=s=>e.changeCropSize(s,!1,!0,0,2))},null,32),ve("span",{class:"crop-point point8",onMousedown:t[26]||(t[26]=s=>e.changeCropSize(s,!0,!0,2,2)),onTouchstart:t[27]||(t[27]=s=>e.changeCropSize(s,!0,!0,2,2))},null,32)]))],4),[[ca,e.cropping]])],544)},Iu.__scopeId="data-v-48aab112";typeof window<"u"&&window.Vue&&window.Vue.createApp({}).component("VueCropper",Iu);const Gk={name:"ui-cropper"},cs=Object.assign(Gk,{props:{fixedNumber:{type:Array,default:()=>[1,1]},img:{type:String},cb:{type:Function}},setup(e){const n=e,r=n.fixedNumber,i=p=>r[1]/r[0]*p,a={outputSize:1,outputType:"png",info:!1,full:!0,fixed:!0,fixedNumber:r,canMove:!0,canMoveBox:!0,fixedBox:!1,original:!1,autoCrop:!0,autoCropWidth:500/2,autoCropHeight:i(500/2),centerBox:!0,mode:"contain",maxImgSize:400,...n},s=ue(()=>({width:500+"px",height:i(500)+"px"})),l=ae(),u={imgLoad(p){p!=="success"&&n.cb("\u56FE\u7247\u52A0\u8F7D\u5931\u8D25")}},f=async p=>{if(p==="ok"){const c=await Promise.all([new Promise(d=>l.value.getCropBlob(d)),new Promise(d=>l.value.getCropData(d))]);n.cb(null,c)}else n.cb()};return(p,c)=>(se(),We(d_,{title:"\u88C1\u526A",func:f},{content:De(()=>[ve("div",{class:"cropper-layer",style:it(s.value)},[X(xe(Iu),ri({ref_key:"vmRef",ref:l},a,o1(u)),null,16)],4)]),_:1}))}});cs.use=function(t){cs.open=function(n){return xr(n)==="String"&&(n={img:n}),!n||!n.img?Promise.reject("\u8BF7\u4F20\u5165\u88C1\u526A\u56FE\u7247"):new Promise((r,i)=>{const{destroy:a}=ta(cs,{app:t,props:{...n,cb(s,l){a(),s?i(s):r(l)}}})})}};console.log(cs);const Kk={class:"bubble-layer"},Yk=ve("div",{class:"bubble-arr"},null,-1),Xk={name:"ui-bubble"},Nu=Object.assign(Xk,{props:{type:{type:String,default:"right"},show:{type:Boolean,default:!0},level:{type:String,require:!1}},setup(e){return(t,n)=>(se(),We(Pr,{name:"fade"},{default:De(()=>[e.show?(se(),he("div",{key:0,class:$e(["bubble",{[e.type]:!0,[e.level]:!0}]),onClick:n[0]||(n[0]=hc(()=>{},["stop"]))},[ve("div",Kk,[Yk,Se(t.$slots,"default")])],2)):Ee("",!0)]),_:3}))}}),Zk={key:0,class:"default-msg"},Jk={key:0,class:"default-msg"},Qk={name:"ui-guide"},eI=Object.assign(Qk,{props:{mark:{type:String},msg:{type:String},floatClass:{type:String},type:{type:String,default:"top"}},setup(e){const t=e,n=document.body,r=ae(),i=ae(!0);t.mark?(i.value=!localStorage.getItem(t.mark),i.value&&Le(i,(s,l)=>{!s&&l&&setTimeout(()=>{localStorage.setItem(t.mark,1)})})):i.value=!0;const a=ae(i.value);return(s,l)=>{const u=mt("ui-icon");return a.value&&(e.msg||s.$slots.default)?(se(),he("div",{key:0,class:$e(["guide",{"floating-mode":e.floatClass}]),ref_key:"guideRef",ref:r},[Se(s.$slots,"content",{show:i.value}),e.floatClass?(se(),We(Sc,{key:0,mount:xe(n),refer:r.value,dire:"bottom",class:$e(`guide-floating ${t.floatClass} ${e.type}`)},{default:De(()=>[X(xe(Nu),{show:i.value,class:"guide-bubble",type:e.type},{default:De(()=>[e.msg?(se(),he("p",Zk,Re(e.msg),1)):Se(s.$slots,"default",{key:1}),ve("span",{class:"guide-close",onClick:l[0]||(l[0]=f=>i.value=!1)},[X(u,{type:"close",ctrl:""})])]),_:3},8,["show","type"])]),_:3},8,["mount","refer","class"])):(se(),We(xe(Nu),{key:1,show:i.value,class:"guide-bubble",type:e.type},{default:De(()=>[e.msg?(se(),he("p",Jk,Re(e.msg),1)):Se(s.$slots,"default",{key:1}),ve("span",{class:"guide-close",onClick:l[1]||(l[1]=f=>i.value=!1)},[X(u,{type:"close",ctrl:""})])]),_:3},8,["show","type"]))],2)):Se(s.$slots,"content",{key:1,show:!1})}}}),tI=(e,t=e)=>{const n=ae(!1),r=document.body,i=l=>{t.value.contains(l.target)||(n.value=!1)},a=()=>n.value=!0;let s=e.value;return Ke(()=>{s&&s.removeEventListener("click",a),e.value&&e.value.addEventListener("click",a),s=e.value}),Ke(()=>{t.value&&n.value?r.addEventListener("mousedown",i,{capture:!0}):r.removeEventListener("mousedown",i,{capture:!0})}),ur(()=>{s&&s.removeEventListener("click",a),r.removeEventListener("mousedown",i)}),n},nI=Ce({name:"ui-more",emits:{click:()=>!0},inheritAttrs:!1,props:{isTransform:{type:Boolean,default:!1},options:{type:Array,default:()=>[]},dire:{type:String,default:"right-bottom"}},setup(e,{attrs:t,emit:n}){const r=ae(),i=ae(),a=ue(()=>{var u;return(u=r.value)==null?void 0:u.vm}),s=tI(a,ue(()=>{var u;return(u=i.value)==null?void 0:u.vmRef})),l=u=>{s.value=!1,n("click",u.value)};return{showOption:s,floatVM:i,vm:r,attrs:t,referVM:a,mountel:document.body,clickHandler:l}},components:{Floating:Sc,Icon:en}}),rI=["onClick"];function iI(e,t,n,r,i,a){const s=mt("Icon"),l=mt("Floating");return se(),he(Pe,null,[X(s,ri({class:"ui-more",ref:"vm"},e.attrs,{type:"more",ctrl:""}),null,16),X(l,{class:$e(["more-float",{show:e.showOption}]),dire:e.dire,isTransform:e.isTransform,mount:e.mountel,refer:e.referVM,ref:"floatVM"},{default:De(()=>[(se(!0),he(Pe,null,Gn(e.options,u=>(se(),he("div",{class:"option",onClick:f=>e.clickHandler(u)},Re(u.label),9,rI))),256))]),_:1},8,["dire","class","isTransform","mount","refer"])],64)}const oI=Et(nI,[["render",iI]]),aI=o_(a_,cs,yn,An,Uo,AA,s_,f_,bP,wP,xP,TP,Ik,en,F_,Sc,D_,B_,jk,qk,Nu,eI,lP,oI);function sI(e){aI.forEach(t=>t.install(e))}const lI={name:"ui-editor-layout"},uI={class:"ui-editor-layout"};function cI(e,t,n,r,i,a){return se(),he("div",uI,[Se(e.$slots,"default")])}const fI=Et(lI,[["render",cI]]),dI={name:"ui-editor-head"},hI={class:"ui-editor-head strengthen-bottom"};function pI(e,t,n,r,i,a){return se(),he("div",hI,[Se(e.$slots,"default")])}const vI=Et(dI,[["render",pI]]);/*! * x-scrollbar 自定义滚动条插件 * 版本: v3.1.0 * 作者: 清晨的阳光(QQ:765550360) * 许可: MIT * https://gitee.com/xujz520/x-scrollbar */class mI{constructor(t,n){if(this.$dom=t,this.$dom.classList.contains("x-scrollbar"))return;this.$dom.classList.add("x-scrollbar"),this.isMobile=window.navigator.userAgent.toLowerCase().indexOf("mobile")!=-1;let r={autoUpdate:!0,preventDefault:!0,onlyHorizontal:!1,autoHide:!0},i={thumbSize:"5px",trackBackground:"#ddd",thumbBackground:"#5f5f5f",thumbRadius:"5px"};Object.assign(this,r,i,n);let a=this.$dom.scrollLeft,s=this.$dom.scrollTop;this.$container=this.html2dom('
'),this.$content=this.html2dom('
'),this.$trackX=this.html2dom('
'),this.$trackY=this.html2dom('
'),this.$thumbX=this.html2dom('
'),this.$thumbY=this.html2dom('
'),this.$trackX.appendChild(this.$thumbX),this.$trackY.appendChild(this.$thumbY);let l=[];Array.prototype.forEach.call(this.$dom.childNodes,function(p){l.push(p)}),l.forEach(function(p){this.$content.appendChild(p)}.bind(this)),this.$container.appendChild(this.$content),this.$dom.appendChild(this.$container);let u=getComputedStyle(this.$dom),f=`${u.paddingTop} ${u.paddingRight} ${u.paddingBottom} ${u.paddingLeft}`;f!="0px 0px 0px 0px"&&(this.$dom.style.padding="0px 0px 0px 0px",this.$container.style.padding=f),this.$container.scrollLeft=a,this.$container.scrollTop=s,this.preventDefault&&this.$container.classList.add("x-scrollbar__container--preventDefault"),!this.isMobile&&(this.$dom.appendChild(this.$trackX),this.$dom.appendChild(this.$trackY),this.$container.classList.add("x-scrollbar__container--hideScrollbar"),JSON.stringify(i)!=JSON.stringify(Object.keys(i).reduce((p,c)=>({...p,[c]:this[c]}),{}))&&this.style(),this.autoHide||this.$dom.classList.add("x-scrollbar-keep"),this.bindScroll(),this.bindDrag(),this.onlyHorizontal&&this.bindWheel(),this.autoUpdate?this.resizeObserver():this.update())}setThumbSize(){this.clientWidth=this.$container.clientWidth,this.clientHeight=this.$container.clientHeight,this.scrollWidth=this.$container.scrollWidth,this.scrollHeight=this.$container.scrollHeight,this.hasXScrollbar=this.scrollWidth>this.clientWidth,this.hasYScrollbar=this.scrollHeight>this.clientHeight,this.thumbXWidth=Math.max(this.clientWidth/this.scrollWidth*this.clientWidth,30),this.thumbYHeight=Math.max(this.clientHeight/this.scrollHeight*this.clientHeight,30),this.thumbXMaxLeft=this.clientWidth-this.thumbXWidth,this.thumbYMaxTop=this.clientHeight-this.thumbYHeight,this.maxScrollLeft=this.scrollWidth-this.clientWidth,this.maxScrollTop=this.scrollHeight-this.clientHeight,this.$trackX.style.display=this.hasXScrollbar?"block":"none",this.$trackY.style.display=this.hasYScrollbar?"block":"none",this.$thumbX.style.width=this.thumbXWidth+"px",this.$thumbY.style.height=this.thumbYHeight+"px"}bindDrag(){let t=null,n=null;this.$thumbX.addEventListener("mousedown",r=>{this.$trackX.classList.add("x-scrollbar__track--draging"),this.thumbXActive=!0,t=r.screenX}),this.$thumbY.addEventListener("mousedown",r=>{this.$trackY.classList.add("x-scrollbar__track--draging"),this.thumbYActive=!0,n=r.screenY}),document.addEventListener("mouseup",r=>{this.$trackX.classList.remove("x-scrollbar__track--draging"),this.$trackY.classList.remove("x-scrollbar__track--draging"),this.thumbXActive=!1,this.thumbYActive=!1}),document.addEventListener("mousemove",r=>{!(this.thumbXActive||this.thumbYActive)||(r.preventDefault(),requestAnimationFrame(()=>{if(this.thumbXActive){let i=r.screenX-t;t=r.screenX;let a=Math.max(Math.min(parseFloat(this.$thumbX.style.left||0)+i,this.thumbXMaxLeft),0);this.$thumbX.style.left=a+"px",this.$container.scrollLeft=a/this.thumbXMaxLeft*this.maxScrollLeft}else{let i=r.screenY-n;n=r.screenY;let a=Math.max(Math.min(parseFloat(this.$thumbY.style.top||0)+i,this.thumbYMaxTop),0);this.$thumbY.style.top=a+"px",this.$container.scrollTop=a/this.thumbYMaxTop*this.maxScrollTop}}))})}bindWheel(){let t=(n,r)=>Math.abs(r-n)<=1?r:n+(r-n)/4;this.$container.addEventListener("wheel",n=>{if(!!this.hasXScrollbar&&n.deltaY&&!n.shiftKey){if(this.scrollLeft=Math.max(Math.min((this.scrollLeft||this.$container.scrollLeft)+(n.deltaY>0?100:-100),this.maxScrollLeft),0),this.left=this.scrollLeft/this.maxScrollLeft*this.thumbXMaxLeft,(this.preventDefault||!(this.scrollLeft==0||this.scrollLeft==this.maxScrollLeft))&&(n.preventDefault(),n.stopPropagation()),this.reqId)return;let r=this.$container.scrollLeft,i=parseFloat(this.$thumbX.style.left||0),a=()=>{r=t(r,this.scrollLeft),i=t(i,this.left),this.$container.scrollLeft=r,this.$thumbX.style.left=i+"px",this.innerScroll=!0,r!=this.scrollLeft?this.reqId=requestAnimationFrame(a):(this.reqId=null,this.scrollLeft=null,requestAnimationFrame(()=>this.innerScroll=!1))};a()}})}bindScroll(){this.$container.addEventListener("scroll",()=>{this.thumbXActive||this.thumbYActive||this.innerScroll||(this.hasXScrollbar&&(this.$thumbX.style.left=this.$container.scrollLeft/this.maxScrollLeft*this.thumbXMaxLeft+"px"),this.hasYScrollbar&&(this.$thumbY.style.top=this.$container.scrollTop/this.maxScrollTop*this.thumbYMaxTop+"px"))})}resizeObserver(){this.$resizeObserver=new ResizeObserver(t=>{let n=t[0].contentRect;!(n.width||n.height)||this.update()}),this.$resizeObserver.observe(this.$container),this.$resizeObserver.observe(this.$content)}update(){this.setThumbSize(),this.hasXScrollbar&&(this.$thumbX.style.left=this.$container.scrollLeft/this.maxScrollLeft*this.thumbXMaxLeft+"px"),this.hasYScrollbar&&(this.$thumbY.style.top=this.$container.scrollTop/this.maxScrollTop*this.thumbYMaxTop+"px")}html2dom(t){let n=document.createElement("div");n.innerHTML=t;let r=n.children;return r.length<=1?r[0]:r}style(){let t=` /* \u8F68\u9053 */ .x-scrollbar__track-x { height: ${parseInt(this.thumbSize)*2+4}px; } .x-scrollbar__track-y { width: ${parseInt(this.thumbSize)*2+4}px; } /* \u6ED1\u5757 */ .x-scrollbar__track-x > .x-scrollbar__thumb-x, .x-scrollbar__track-y > .x-scrollbar__thumb-y { background: ${this.thumbBackground}; border-radius: ${parseInt(this.thumbRadius||0)!=5?parseInt(this.thumbRadius||0):parseInt(this.thumbSize)}px; } .x-scrollbar__track-x > .x-scrollbar__thumb-x { height: ${parseInt(this.thumbSize)}px; } .x-scrollbar__track-y > .x-scrollbar__thumb-y { width: ${parseInt(this.thumbSize)}px; } /* \u6FC0\u6D3B\u540E\u5927\u5C0F */ .x-scrollbar__track-x:hover > .x-scrollbar__thumb-x, .x-scrollbar__track--draging > .x-scrollbar__thumb-x { height: ${parseInt(this.thumbSize)*2}px; } .x-scrollbar__track-y:hover > .x-scrollbar__thumb-y, .x-scrollbar__track--draging > .x-scrollbar__thumb-y { width: ${parseInt(this.thumbSize)*2}px; } /* \u9F20\u6807\u79FB\u5165\u8F68\u9053 || \u62D6\u52A8\u8FC7\u7A0B\u4E2D => \u663E\u793A\u8F68\u9053 & \u9AD8\u4EAE\u6ED1\u5757 */ .x-scrollbar__track-x:hover, .x-scrollbar__track-y:hover, .x-scrollbar__track-x.x-scrollbar__track--draging, .x-scrollbar__track-y.x-scrollbar__track--draging { background: ${this.trackBackground||"transparent"}; }`;this.key="x-scrollbar-"+Math.abs((1+Math.random())*Date.now()|0).toString(16),this.$dom.setAttribute(this.key,"");let n=this.html2dom(``);t=t.replaceAll(` .x-scrollbar`,` [${this.key}] > .x-scrollbar`),t=t.replaceAll(";"," !important;"),n.innerHTML=t,document.querySelector("head").appendChild(n)}}let Og=!1;const gI=Ce({name:"ui-editor-menu",props:{menu:{type:Array,default:[]},name:{type:String}},setup(e,t){const n=ae(null),r=i=>{t.emit("menu-click",i)};return wt(()=>{Og==!1&&(Og=!0,new mI(n.value))}),{scrollbar:n,onMenuClick:r}},components:{UIIcon:en,UIMenuItem:F_}}),yI={class:"ui-editor-menu strengthen-right"},bI={ref:"scrollbar"},_I=["onClick"];function wI(e,t,n,r,i,a){const s=mt("UIMenuItem");return se(),he("div",yI,[e.$slots.first?Se(e.$slots,"first",{key:0}):Ee("",!0),ve("div",bI,[ve("ul",null,[(se(!0),he(Pe,null,Gn(e.menu,l=>(se(),he("li",{key:l,class:$e(["ui-editor-menu-item",{active:e.$slots.default&&l.name==e.name}]),onClick:u=>!e.$slots.default&&e.onMenuClick(l.name)},[e.$slots.default?Se(e.$slots,"default",{key:0,raw:l}):(se(),We(s,{key:1,text:l.title,icon:l.icon,active:l.name==e.name},null,8,["text","icon","active"]))],10,_I))),128))])],512),e.$slots.attach?Se(e.$slots,"attach",{key:1}):Ee("",!0)])}const EI=Et(gI,[["render",wI]]),xI=Ce({name:"ui-editor-main"}),SI={class:"ui-editor-main"};function OI(e,t,n,r,i,a){return se(),he("div",SI,[Se(e.$slots,"default")])}const CI=Et(xI,[["render",OI]]),TI={name:"ui-editor-view"},AI={class:"ui-editor-view"};function PI(e,t,n,r,i,a){return se(),he("div",AI,[Se(e.$slots,"default")])}const kI=Et(TI,[["render",PI]]);const II=Ce({name:"ui-editor-toolbar",props:{toolbar:Boolean,disabledAnimation:Boolean},setup(e,t){return{props:e}}}),NI={key:0,class:"ui-editor-toolbar strengthen-left"},RI={key:1,class:"ui-editor-toolbar strengthen-left"};function $I(e,t,n,r,i,a){return e.disabledAnimation?e.props.toolbar?(se(),he("div",RI,[Se(e.$slots,"default",{},void 0,!0)])):Ee("",!0):(se(),We(Pr,{key:0,name:"slide-up",mode:"in-out"},{default:De(()=>[e.props.toolbar?(se(),he("div",NI,[Se(e.$slots,"default",{},void 0,!0)])):Ee("",!0)]),_:3}))}const MI=Et(II,[["render",$I],["__scopeId","data-v-6b05c561"]]);const LI=Ce({name:"ui-editor-toolbox",props:{toolbox:Boolean,disabledAnimation:Boolean},setup(e,t){return{props:e}}}),FI={key:0,class:"ui-editor-toolbox strengthen-left"},jI={key:1,class:"ui-editor-toolbox strengthen-left"};function DI(e,t,n,r,i,a){return e.disabledAnimation?e.props.toolbox?(se(),he("div",jI,[Se(e.$slots,"default",{},void 0,!0)])):Ee("",!0):(se(),We(Pr,{key:0,name:"slide-right",mode:"in-out"},{default:De(()=>[e.props.toolbox?(se(),he("div",FI,[Se(e.$slots,"default",{},void 0,!0)])):Ee("",!0)]),_:3}))}const BI=Et(LI,[["render",DI],["__scopeId","data-v-ea5d90a3"]]),qI=o_(fI,vI,EI,CI,kI,MI,BI);function HI(e){qI.forEach(t=>t.install(e))}const H_="loading",zp=`__${H_}`,UI=(e,t,n)=>{e[zp]={mountEl:document.createElement("div")}},VI=(e,t,n)=>{const r=e[zp];t.value&&!r.loadVnode?(r.loadVnode=X(An,{el:e,size:10}),Rn(r.loadVnode,r.mountEl)):!t.value&&r.loadVnode&&(r.loadVnode=null,Rn(null,r.mountEl))},zI=e=>{delete e[zp]},Cg={name:H_,hook:{beforeMount:UI,beforeUpdate:VI,beforeUnmount:zI}},WI=e=>{e.directive(Cg.name,Cg.hook)},GI={install:e=>{WI(e),sI(e),HI(e)}},U_=e=>{An.show();const t=typeof e=="function"?e():e;return t.finally?t.finally(()=>An.hide()):(t.then(()=>An.hide()),t.catch(()=>An.hide())),t},V_=e=>(...t)=>U_(()=>e(...t)),z_=()=>An.show(),Ru=()=>An.hide(),KI="__pre__",YI="__last__",XI=()=>{const e={},t=i=>[KI+i.toString(),i,YI+i.toString()],n=(i,a)=>{const s=t(i);return a?a.pre?s[0]:a.last?s[2]:s[0]:s[0]};return{on:(i,a,s)=>{const l=n(i,s);e[l]||(e[l]=[]),e[l].includes(a)||e[l].push(a)},off:(i,a,s)=>{const l=s?[n(i,s)]:t(i);for(const u of l)a?e[u]&&(e[u]=e[u].filter(f=>f!==a)):e[u]&&delete e[u]},emit:async(i,a)=>{const s=t(i);for(const l of s)if(e[l])for(const u of e[l])await u(a)}}},W_=(e,t,n)=>{const r=document.createElement("div"),i=X(t,n);i.appContext=ll._context,se();const a=We(ni,{to:e},[i]);return Rn(a,r),()=>Rn(null,r)},Oc=(e,t)=>{let n=[];Ke(()=>{const r=e();t(r,n),n=[...r]})},G_=(e,t)=>{const n=new WeakMap;Oc(e,(r,i)=>{var l;const{added:a,deleted:s}=pc(r,i);for(const u of a){const f=MO();f.run(()=>{t(u)}),n.set(u,f)}for(const u of s)(l=n.get(u))==null||l.stop()})},ZI=e=>{e[0]==="?"&&(e=e.substr(1));const t={},n=/([^=&]+)(?:=([^&]*))?&?/;let r;for(;r=e.match(n);)t[r[1]]=r[2]===void 0?"":r[2],e=e.substr(r[0].length);return t},$l=e=>{if(e&&Object.keys(e).length>0){const t=Object.entries(e);return t.sort((n,r)=>n[0].localeCompare(r[0])),"?"+t.map(([n,r])=>`${n}=${r}`).join("&")}else return""},Wa=window;function JI(e,t){return typeof t>"u"?t={autoBom:!1}:typeof t!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e}function od(e,t,n){return new Promise((r,i)=>{const a=new XMLHttpRequest;a.open("GET",e),a.responseType="blob",a.onload=function(){QI(a.response,t,n).then(r)},a.onerror=function(){i("could not download file")},a.send()})}function Tg(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function ad(e){return new Promise(t=>{setTimeout(()=>{try{e.dispatchEvent(new MouseEvent("click"))}catch{const r=document.createEvent("MouseEvents");r.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(r)}t()},0)})}const Ag=navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),QI="download"in HTMLAnchorElement.prototype&&!Ag?(e,t="download",n)=>{const r=Wa.URL||Wa.webkitURL,i=document.createElement("a");if(i.download=t,i.rel="noopener",typeof e=="string"){if(i.href=e,i.origin!==location.origin){if(Tg(i.href))return od(e,t,n);i.target="_blank"}return ad(i)}else return i.href=r.createObjectURL(e),setTimeout(function(){r.revokeObjectURL(i.href)},4e4),ad(i)}:"msSaveOrOpenBlob"in navigator?(e,t="download",n)=>{if(typeof e=="string"){if(Tg(e))return od(e,t,n);{const r=document.createElement("a");return r.href=e,r.target="_blank",ad(r)}}else return navigator.msSaveOrOpenBlob(JI(e,n),t)?Promise.resolve():Promise.reject("unknown")}:(e,t,n)=>{if(typeof e=="string")return od(e,t,n);const r=e.type==="application/octet-stream",i=/constructor/i.test(HTMLElement.toString())||Wa.safari,a=/CriOS\/[\d]+/.test(navigator.userAgent);if((a||r&&i||Ag)&&typeof FileReader<"u")return new Promise((s,l)=>{const u=new FileReader;u.onloadend=function(){let f=u.result;f=a?f:f.replace(/^data:[^;]*;/,"data:attachment/file;"),location.href=f,s()},u.onerror=function(){l()},u.readAsDataURL(e)});{const s=Wa.URL||Wa.webkitURL,l=s.createObjectURL(e);return location.href=l,setTimeout(function(){s.revokeObjectURL(l)},4e4),Promise.resolve()}},Pg=(()=>{const e={},t=(n,r,i,a=0)=>{const s=document.createElement("script");s.src=n,document.body.appendChild(s),s.onload=r,s.onerror=()=>{a>0?t(n,r,i,--a):i()}};return n=>(e[n]||(e[n]=new Promise((r,i)=>{t(n,r,i,3)})),e[n])})(),so=e=>()=>eN(e),eN=e=>{e.forEach(t=>t())},tN=e=>typeof e=="string"?e:e.url,K_=(e=0)=>new Promise(t=>setTimeout(t,e)),Wp=e=>{const t=new FormData;for(const[n,r]of Object.entries(e))if(Array.isArray(r))for(let i=0;i{const n=Math.pow(10,t);return Math.round(e*n)/n},oV=e=>e.includes("//")?e:location.protocol+"//"+e,Y_=nn(ae("auto")),nN=nn(ae(!1)),rN=nn(ae(!0)),iN=nn(ae(!0)),X_=nn(ae(!1)),oN=nn(ae(!0)),aN=nn(ae(!0)),sN=nn(ae(!1),!0),lN=nn(ae("60px")),uN=nn(ae(!0)),cN=nn(ae(!0)),fN=nn(ae(null)),dN=nn(ae(new WeakMap),!0),hN=nn(ae(!1)),pN=nn(ae(new WeakSet)),vN=nn(ae()),ot=gA({viewMode:Y_,showToolbar:nN,showRightPano:iN,showLeftPano:X_,showLeftCtrlPano:oN,shwoRightCtrlPano:aN,showTaggings:uN,showMeasures:cN,currentModel:fN,showModelsMap:dN,modelsChangeStore:hN,showTaggingPositions:pN,showBottomBar:sN,bottomBarHeight:lN,showHeadBar:rN,currentView:vN}),He=yt(ZI(location.search));He.caseId=Number(He.caseId);He.share=Boolean(Number(He.share));He.single=Boolean(Number(He.single));const mN={[3]:()=>Ze(()=>Promise.resolve({}),["./fire.83fd1418.css"],import.meta.url),[2]:()=>Ze(()=>Promise.resolve({}),["./criminal.713e2a36.css"],import.meta.url),[4]:()=>Ze(()=>Promise.resolve({}),["./criminal.713e2a36.css"],import.meta.url),[1]:()=>Ze(()=>Promise.resolve({}),["./fire.83fd1418.css"],import.meta.url)},gN={[3]:"/xmfire",[2]:"/criminal",[4]:"/criminal",[1]:"/fire"},aV=e=>["1","3"].includes(e),Z_=He.baseURL?He.baseURL:"/",J_=e=>~e.indexOf("base64")||~e.indexOf("bolb")||~e.indexOf("//")?e:`${Z_}/${e}`,Gp=e=>{let t,n=!1;const r=()=>{n&&(t&&t(),t=void 0,n=!1)},i=()=>{Qe(()=>{n||(n=!0,t=e())})};uc(i),wt(i),_p(r),ur(r)},sV=()=>{const e=ae(!0);return Gp(()=>(e.value=!0,()=>e.value=!1)),e};/*! * vue-router v4.4.0 * (c) 2024 Eduardo San Martin Morote * @license MIT */const jo=typeof document<"u";function yN(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const lt=Object.assign;function sd(e,t){const n={};for(const r in t){const i=t[r];n[r]=or(i)?i.map(e):e(i)}return n}const fs=()=>{},or=Array.isArray,Q_=/#/g,bN=/&/g,_N=/\//g,wN=/=/g,EN=/\?/g,ew=/\+/g,xN=/%5B/g,SN=/%5D/g,tw=/%5E/g,ON=/%60/g,nw=/%7B/g,CN=/%7C/g,rw=/%7D/g,TN=/%20/g;function Kp(e){return encodeURI(""+e).replace(CN,"|").replace(xN,"[").replace(SN,"]")}function AN(e){return Kp(e).replace(nw,"{").replace(rw,"}").replace(tw,"^")}function ch(e){return Kp(e).replace(ew,"%2B").replace(TN,"+").replace(Q_,"%23").replace(bN,"%26").replace(ON,"`").replace(nw,"{").replace(rw,"}").replace(tw,"^")}function PN(e){return ch(e).replace(wN,"%3D")}function kN(e){return Kp(e).replace(Q_,"%23").replace(EN,"%3F")}function IN(e){return e==null?"":kN(e).replace(_N,"%2F")}function ks(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const NN=/\/$/,RN=e=>e.replace(NN,"");function ld(e,t,n="/"){let r,i={},a="",s="";const l=t.indexOf("#");let u=t.indexOf("?");return l=0&&(u=-1),u>-1&&(r=t.slice(0,u),a=t.slice(u+1,l>-1?l:t.length),i=e(a)),l>-1&&(r=r||t.slice(0,l),s=t.slice(l,t.length)),r=FN(r!=null?r:t,n),{fullPath:r+(a&&"?")+a+s,path:r,query:i,hash:ks(s)}}function $N(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function kg(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function MN(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&pa(t.matched[r],n.matched[i])&&iw(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function pa(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function iw(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!LN(e[n],t[n]))return!1;return!0}function LN(e,t){return or(e)?Ig(e,t):or(t)?Ig(t,e):e===t}function Ig(e,t){return or(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function FN(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),i=r[r.length-1];(i===".."||i===".")&&r.push("");let a=n.length-1,s,l;for(s=0;s1&&a--;else break;return n.slice(0,a).join("/")+"/"+r.slice(s).join("/")}const hi={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Is;(function(e){e.pop="pop",e.push="push"})(Is||(Is={}));var ds;(function(e){e.back="back",e.forward="forward",e.unknown=""})(ds||(ds={}));function jN(e){if(!e)if(jo){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),RN(e)}const DN=/^[^#]+#/;function BN(e,t){return e.replace(DN,"#")+t}function qN(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 Cc=()=>({left:window.scrollX,top:window.scrollY});function HN(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=qN(i,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 Ng(e,t){return(history.state?history.state.position-t:-1)+e}const fh=new Map;function UN(e,t){fh.set(e,t)}function VN(e){const t=fh.get(e);return fh.delete(e),t}let zN=()=>location.protocol+"//"+location.host;function ow(e,t){const{pathname:n,search:r,hash:i}=t,a=e.indexOf("#");if(a>-1){let l=i.includes(e.slice(a))?e.slice(a).length:1,u=i.slice(l);return u[0]!=="/"&&(u="/"+u),kg(u,"")}return kg(n,e)+r+i}function WN(e,t,n,r){let i=[],a=[],s=null;const l=({state:d})=>{const h=ow(e,location),_=n.value,b=t.value;let E=0;if(d){if(n.value=h,t.value=d,s&&s===_){s=null;return}E=b?d.position-b.position:0}else r(h);i.forEach(v=>{v(n.value,_,{delta:E,type:Is.pop,direction:E?E>0?ds.forward:ds.back:ds.unknown})})};function u(){s=n.value}function f(d){i.push(d);const h=()=>{const _=i.indexOf(d);_>-1&&i.splice(_,1)};return a.push(h),h}function p(){const{history:d}=window;!d.state||d.replaceState(lt({},d.state,{scroll:Cc()}),"")}function c(){for(const d of a)d();a=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",p)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",p,{passive:!0}),{pauseListeners:u,listen:f,destroy:c}}function Rg(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?Cc():null}}function GN(e){const{history:t,location:n}=window,r={value:ow(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(u,f,p){const c=e.indexOf("#"),d=c>-1?(n.host&&document.querySelector("base")?e:e.slice(c))+u:zN()+e+u;try{t[p?"replaceState":"pushState"](f,"",d),i.value=f}catch(h){console.error(h),n[p?"replace":"assign"](d)}}function s(u,f){const p=lt({},t.state,Rg(i.value.back,u,i.value.forward,!0),f,{position:i.value.position});a(u,p,!0),r.value=u}function l(u,f){const p=lt({},i.value,t.state,{forward:u,scroll:Cc()});a(p.current,p,!0);const c=lt({},Rg(r.value,u,null),{position:p.position+1},f);a(u,c,!1),r.value=u}return{location:r,state:i,push:l,replace:s}}function KN(e){e=jN(e);const t=GN(e),n=WN(e,t.state,t.location,t.replace);function r(a,s=!0){s||n.pauseListeners(),history.go(a)}const i=lt({location:"",base:e,go:r,createHref:BN.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function YN(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),KN(e)}function XN(e){return typeof e=="string"||e&&typeof e=="object"}function aw(e){return typeof e=="string"||typeof e=="symbol"}const sw=Symbol("");var $g;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})($g||($g={}));function va(e,t){return lt(new Error,{type:e,[sw]:!0},t)}function jr(e,t){return e instanceof Error&&sw in e&&(t==null||!!(e.type&t))}const Mg="[^/]+?",ZN={sensitive:!1,strict:!1,start:!0,end:!0},JN=/[.+*?^${}()[\]/\\]/g;function QN(e,t){const n=lt({},ZN,t),r=[];let i=n.start?"^":"";const a=[];for(const f of e){const p=f.length?[]:[90];n.strict&&!f.length&&(i+="/");for(let c=0;ct.length?t.length===1&&t[0]===40+40?1:-1:0}function lw(e,t){let n=0;const r=e.score,i=t.score;for(;n0&&t[t.length-1]<0}const tR={type:0,value:""},nR=/[a-zA-Z0-9_]/;function rR(e){if(!e)return[[]];if(e==="/")return[[tR]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${f}": ${h}`)}let n=0,r=n;const i=[];let a;function s(){a&&i.push(a),a=[]}let l=0,u,f="",p="";function c(){!f||(n===0?a.push({type:0,value:f}):n===1||n===2||n===3?(a.length>1&&(u==="*"||u==="+")&&t(`A repeatable param (${f}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:f,regexp:p,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):t("Invalid state to consume buffer"),f="")}function d(){f+=u}for(;l{s(y)}:fs}function s(c){if(aw(c)){const d=r.get(c);d&&(r.delete(c),n.splice(n.indexOf(d),1),d.children.forEach(s),d.alias.forEach(s))}else{const d=n.indexOf(c);d>-1&&(n.splice(d,1),c.record.name&&r.delete(c.record.name),c.children.forEach(s),c.alias.forEach(s))}}function l(){return n}function u(c){const d=uR(c,n);n.splice(d,0,c),c.record.name&&!jg(c)&&r.set(c.record.name,c)}function f(c,d){let h,_={},b,E;if("name"in c&&c.name){if(h=r.get(c.name),!h)throw va(1,{location:c});E=h.record.name,_=lt(Fg(d.params,h.keys.filter(y=>!y.optional).concat(h.parent?h.parent.keys.filter(y=>y.optional):[]).map(y=>y.name)),c.params&&Fg(c.params,h.keys.map(y=>y.name))),b=h.stringify(_)}else if(c.path!=null)b=c.path,h=n.find(y=>y.re.test(b)),h&&(_=h.parse(b),E=h.record.name);else{if(h=d.name?r.get(d.name):n.find(y=>y.re.test(d.path)),!h)throw va(1,{location:c,currentLocation:d});E=h.record.name,_=lt({},d.params,c.params),b=h.stringify(_)}const v=[];let m=h;for(;m;)v.unshift(m.record),m=m.parent;return{name:E,path:b,params:_,matched:v,meta:lR(v)}}e.forEach(c=>a(c));function p(){n.length=0,r.clear()}return{addRoute:a,resolve:f,removeRoute:s,clearRoutes:p,getRoutes:l,getRecordMatcher:i}}function Fg(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function aR(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:sR(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function sR(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function jg(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function lR(e){return e.reduce((t,n)=>lt(t,n.meta),{})}function Dg(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function uR(e,t){let n=0,r=t.length;for(;n!==r;){const a=n+r>>1;lw(e,t[a])<0?r=a:n=a+1}const i=cR(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function cR(e){let t=e;for(;t=t.parent;)if(uw(t)&&lw(e,t)===0)return t}function uw({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function fR(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;ia&&ch(a)):[r&&ch(r)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+n,a!=null&&(t+="="+a))})}return t}function dR(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=or(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return t}const hR=Symbol(""),qg=Symbol(""),Yp=Symbol(""),cw=Symbol(""),dh=Symbol("");function Ga(){let e=[];function t(r){return e.push(r),()=>{const i=e.indexOf(r);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Ei(e,t,n,r,i,a=s=>s()){const s=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((l,u)=>{const f=d=>{d===!1?u(va(4,{from:n,to:t})):d instanceof Error?u(d):XN(d)?u(va(2,{from:t,to:d})):(s&&r.enterCallbacks[i]===s&&typeof d=="function"&&s.push(d),l())},p=a(()=>e.call(r&&r.instances[i],t,n,f));let c=Promise.resolve(p);e.length<3&&(c=c.then(f)),c.catch(d=>u(d))})}function ud(e,t,n,r,i=a=>a()){const a=[];for(const s of e)for(const l in s.components){let u=s.components[l];if(!(t!=="beforeRouteEnter"&&!s.instances[l]))if(pR(u)){const p=(u.__vccOpts||u)[t];p&&a.push(Ei(p,n,r,s,l,i))}else{let f=u();a.push(()=>f.then(p=>{if(!p)return Promise.reject(new Error(`Couldn't resolve component "${l}" at "${s.path}"`));const c=yN(p)?p.default:p;s.components[l]=c;const h=(c.__vccOpts||c)[t];return h&&Ei(h,n,r,s,l,i)()}))}}return a}function pR(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Hg(e){const t=gt(Yp),n=gt(cw),r=ue(()=>{const u=xe(e.to);return t.resolve(u)}),i=ue(()=>{const{matched:u}=r.value,{length:f}=u,p=u[f-1],c=n.matched;if(!p||!c.length)return-1;const d=c.findIndex(pa.bind(null,p));if(d>-1)return d;const h=Ug(u[f-2]);return f>1&&Ug(p)===h&&c[c.length-1].path!==h?c.findIndex(pa.bind(null,u[f-2])):d}),a=ue(()=>i.value>-1&&yR(n.params,r.value.params)),s=ue(()=>i.value>-1&&i.value===n.matched.length-1&&iw(n.params,r.value.params));function l(u={}){return gR(u)?t[xe(e.replace)?"replace":"push"](xe(e.to)).catch(fs):Promise.resolve()}return{route:r,href:ue(()=>r.value.href),isActive:a,isExactActive:s,navigate:l}}const vR=Ce({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Hg,setup(e,{slots:t}){const n=yt(Hg(e)),{options:r}=gt(Yp),i=ue(()=>({[Vg(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Vg(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=t.default&&t.default(n);return e.custom?a:la("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},a)}}}),mR=vR;function gR(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function yR(e,t){for(const n in t){const r=t[n],i=e[n];if(typeof r=="string"){if(r!==i)return!1}else if(!or(i)||i.length!==r.length||r.some((a,s)=>a!==i[s]))return!1}return!0}function Ug(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Vg=(e,t,n)=>e!=null?e:t!=null?t:n,bR=Ce({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=gt(dh),i=ue(()=>e.route||r.value),a=gt(qg,0),s=ue(()=>{let f=xe(a);const{matched:p}=i.value;let c;for(;(c=p[f])&&!c.components;)f++;return f}),l=ue(()=>i.value.matched[s.value]);St(qg,ue(()=>s.value+1)),St(hR,l),St(dh,i);const u=ae();return Le(()=>[u.value,l.value,e.name],([f,p,c],[d,h,_])=>{p&&(p.instances[c]=f,h&&h!==p&&f&&f===d&&(p.leaveGuards.size||(p.leaveGuards=h.leaveGuards),p.updateGuards.size||(p.updateGuards=h.updateGuards))),f&&p&&(!h||!pa(p,h)||!d)&&(p.enterCallbacks[c]||[]).forEach(b=>b(f))},{flush:"post"}),()=>{const f=i.value,p=e.name,c=l.value,d=c&&c.components[p];if(!d)return zg(n.default,{Component:d,route:f});const h=c.props[p],_=h?h===!0?f.params:typeof h=="function"?h(f):h:null,E=la(d,lt({},_,t,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(c.instances[p]=null)},ref:u}));return zg(n.default,{Component:E,route:f})||E}}});function zg(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const _R=bR;function wR(e){const t=oR(e.routes,e),n=e.parseQuery||fR,r=e.stringifyQuery||Bg,i=e.history,a=Ga(),s=Ga(),l=Ga(),u=gp(hi);let f=hi;jo&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const p=sd.bind(null,j=>""+j),c=sd.bind(null,IN),d=sd.bind(null,ks);function h(j,Z){let J,te;return aw(j)?(J=t.getRecordMatcher(j),te=Z):te=j,t.addRoute(te,J)}function _(j){const Z=t.getRecordMatcher(j);Z&&t.removeRoute(Z)}function b(){return t.getRoutes().map(j=>j.record)}function E(j){return!!t.getRecordMatcher(j)}function v(j,Z){if(Z=lt({},Z||u.value),typeof j=="string"){const W=ld(n,j,Z.path),oe=t.resolve({path:W.path},Z),pe=i.createHref(W.fullPath);return lt(W,oe,{params:d(oe.params),hash:ks(W.hash),redirectedFrom:void 0,href:pe})}let J;if(j.path!=null)J=lt({},j,{path:ld(n,j.path,Z.path).path});else{const W=lt({},j.params);for(const oe in W)W[oe]==null&&delete W[oe];J=lt({},j,{params:c(W)}),Z.params=c(Z.params)}const te=t.resolve(J,Z),me=j.hash||"";te.params=p(d(te.params));const we=$N(r,lt({},j,{hash:AN(me),path:te.path})),V=i.createHref(we);return lt({fullPath:we,hash:me,query:r===Bg?dR(j.query):j.query||{}},te,{redirectedFrom:void 0,href:V})}function m(j){return typeof j=="string"?ld(n,j,u.value.path):lt({},j)}function y(j,Z){if(f!==j)return va(8,{from:Z,to:j})}function g(j){return O(j)}function w(j){return g(lt(m(j),{replace:!0}))}function x(j){const Z=j.matched[j.matched.length-1];if(Z&&Z.redirect){const{redirect:J}=Z;let te=typeof J=="function"?J(j):J;return typeof te=="string"&&(te=te.includes("?")||te.includes("#")?te=m(te):{path:te},te.params={}),lt({query:j.query,hash:j.hash,params:te.path!=null?{}:j.params},te)}}function O(j,Z){const J=f=v(j),te=u.value,me=j.state,we=j.force,V=j.replace===!0,W=x(J);if(W)return O(lt(m(W),{state:typeof W=="object"?lt({},me,W.state):me,force:we,replace:V}),Z||J);const oe=J;oe.redirectedFrom=Z;let pe;return!we&&MN(r,te,J)&&(pe=va(16,{to:oe,from:te}),N(te,te,!0,!1)),(pe?Promise.resolve(pe):A(oe,te)).catch(fe=>jr(fe)?jr(fe,2)?fe:R(fe):G(fe,oe,te)).then(fe=>{if(fe){if(jr(fe,2))return O(lt({replace:V},m(fe.to),{state:typeof fe.to=="object"?lt({},me,fe.to.state):me,force:we}),Z||oe)}else fe=C(oe,te,!0,V,me);return S(oe,te,fe),fe})}function T(j,Z){const J=y(j,Z);return J?Promise.reject(J):Promise.resolve()}function P(j){const Z=Y.values().next().value;return Z&&typeof Z.runWithContext=="function"?Z.runWithContext(j):j()}function A(j,Z){let J;const[te,me,we]=ER(j,Z);J=ud(te.reverse(),"beforeRouteLeave",j,Z);for(const W of te)W.leaveGuards.forEach(oe=>{J.push(Ei(oe,j,Z))});const V=T.bind(null,j,Z);return J.push(V),B(J).then(()=>{J=[];for(const W of a.list())J.push(Ei(W,j,Z));return J.push(V),B(J)}).then(()=>{J=ud(me,"beforeRouteUpdate",j,Z);for(const W of me)W.updateGuards.forEach(oe=>{J.push(Ei(oe,j,Z))});return J.push(V),B(J)}).then(()=>{J=[];for(const W of we)if(W.beforeEnter)if(or(W.beforeEnter))for(const oe of W.beforeEnter)J.push(Ei(oe,j,Z));else J.push(Ei(W.beforeEnter,j,Z));return J.push(V),B(J)}).then(()=>(j.matched.forEach(W=>W.enterCallbacks={}),J=ud(we,"beforeRouteEnter",j,Z,P),J.push(V),B(J))).then(()=>{J=[];for(const W of s.list())J.push(Ei(W,j,Z));return J.push(V),B(J)}).catch(W=>jr(W,8)?W:Promise.reject(W))}function S(j,Z,J){l.list().forEach(te=>P(()=>te(j,Z,J)))}function C(j,Z,J,te,me){const we=y(j,Z);if(we)return we;const V=Z===hi,W=jo?history.state:{};J&&(te||V?i.replace(j.fullPath,lt({scroll:V&&W&&W.scroll},me)):i.push(j.fullPath,me)),u.value=j,N(j,Z,J,V),R()}let I;function M(){I||(I=i.listen((j,Z,J)=>{if(!K.listening)return;const te=v(j),me=x(te);if(me){O(lt(me,{replace:!0}),te).catch(fs);return}f=te;const we=u.value;jo&&UN(Ng(we.fullPath,J.delta),Cc()),A(te,we).catch(V=>jr(V,12)?V:jr(V,2)?(O(V.to,te).then(W=>{jr(W,20)&&!J.delta&&J.type===Is.pop&&i.go(-1,!1)}).catch(fs),Promise.reject()):(J.delta&&i.go(-J.delta,!1),G(V,te,we))).then(V=>{V=V||C(te,we,!1),V&&(J.delta&&!jr(V,8)?i.go(-J.delta,!1):J.type===Is.pop&&jr(V,20)&&i.go(-1,!1)),S(te,we,V)}).catch(fs)}))}let F=Ga(),z=Ga(),U;function G(j,Z,J){R(j);const te=z.list();return te.length?te.forEach(me=>me(j,Z,J)):console.error(j),Promise.reject(j)}function D(){return U&&u.value!==hi?Promise.resolve():new Promise((j,Z)=>{F.add([j,Z])})}function R(j){return U||(U=!j,M(),F.list().forEach(([Z,J])=>j?J(j):Z()),F.reset()),j}function N(j,Z,J,te){const{scrollBehavior:me}=e;if(!jo||!me)return Promise.resolve();const we=!J&&VN(Ng(j.fullPath,0))||(te||!J)&&history.state&&history.state.scroll||null;return Qe().then(()=>me(j,Z,we)).then(V=>V&&HN(V)).catch(V=>G(V,j,Z))}const L=j=>i.go(j);let q;const Y=new Set,K={currentRoute:u,listening:!0,addRoute:h,removeRoute:_,clearRoutes:t.clearRoutes,hasRoute:E,getRoutes:b,resolve:v,options:e,push:g,replace:w,go:L,back:()=>L(-1),forward:()=>L(1),beforeEach:a.add,beforeResolve:s.add,afterEach:l.add,onError:z.add,isReady:D,install(j){const Z=this;j.component("RouterLink",mR),j.component("RouterView",_R),j.config.globalProperties.$router=Z,Object.defineProperty(j.config.globalProperties,"$route",{enumerable:!0,get:()=>xe(u)}),jo&&!q&&u.value===hi&&(q=!0,g(i.location).catch(me=>{}));const J={};for(const me in hi)Object.defineProperty(J,me,{get:()=>u.value[me],enumerable:!0});j.provide(Yp,Z),j.provide(cw,pp(J)),j.provide(dh,u);const te=j.unmount;Y.add(j),j.unmount=function(){Y.delete(j),Y.size<1&&(f=hi,I&&I(),I=null,u.value=hi,q=!1,U=!1),te()}}};function B(j){return j.reduce((Z,J)=>Z.then(()=>P(J)),Promise.resolve())}return K}function ER(e,t){const n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let s=0;spa(f,l))?r.push(l):n.push(l));const u=e.matched[s];u&&(t.matched.find(f=>pa(f,u))||i.push(u))}return[n,r,i]}var Ie=(e=>(e.fuseEdit="fuseEdit",e.registration="registration",e.proportion="proportion",e.fuseEditSwitch="fuseEditSwitch",e.merge="merge",e.tagging="tagging",e.taggingPosition="taggingPosition",e.guide="guide",e.measure="measure",e.setting="setting",e.sceneEdit="sceneEdit",e.record="record",e.view="view",e.show="show",e.summaryShow="summaryShow",e.recordShow="recordShow",e.viewShow="viewShow",e.folderShow="folderShow",e.fireInfo="fireInfo",e.signModel="signModel",e.error="error",e))(Ie||{});const xt={error:"/error",fuseEdit:"/fuseEdit",fuseEditSwitch:"",merge:"merge",registration:"registration/:id",proportion:"proportion/:id",tagging:"tagging",taggingPosition:"taggingPosition/:id",guide:"path",measure:"measure",setting:"setting",sceneEdit:"/sceneEdit",record:"record",view:"view",show:"/show",fireInfo:"fireInfo",summaryShow:"summary",recordShow:"record",viewShow:"view",folderShow:"folder",signModel:"/sign-model"},zi={merge:{icon:"joint",title:"\u62FC\u63A5",sysTitle:"\u591A\u5143\u878D\u5408"},proportion:{full:!0,sysTitle:"\u591A\u5143\u878D\u5408"},registration:{full:!0,sysTitle:"\u591A\u5143\u878D\u5408"},tagging:{icon:"label",title:"\u6807\u6CE8",sysTitle:"\u591A\u5143\u878D\u5408"},guide:{icon:"path",title:"\u8DEF\u5F84",sysTitle:"\u591A\u5143\u878D\u5408"},measure:{icon:"nav-measure",title:"\u6D4B\u91CF",sysTitle:"\u591A\u5143\u878D\u5408"},setting:{icon:"nav-setup",title:"\u8BBE\u7F6E",sysTitle:"\u591A\u5143\u878D\u5408"},view:{sysTitle:"\u89C6\u56FE\u63D0\u53D6"},record:{sysTitle:"\u5C4F\u5E55\u5F55\u5236"},show:{sysTitle:""},summaryShow:{icon:"list-view",title:"\u6C47\u603B"},viewShow:{icon:"list-scene",title:"\u89C6\u56FE"},fireInfo:{icon:"list-detail",title:"\u6848\u4EF6\u4FE1\u606F"},recordShow:{icon:"list-record",title:"\u5F55\u5C4F"},folderShow:{icon:"list-file",title:"\u5377\u5B97"},error:{title:"\u9519\u8BEF\u9875\u9762"}},Js=[{path:xt[Ie.fuseEdit],name:Ie.fuseEdit,component:()=>Ze(()=>import("./fuse-edit.11811992.js"),["./fuse-edit.11811992.js","./index.2a7137c8.js","./index.2bbfccb7.css","./scene-select.5723a731.js","./index.f31d612e.js","./scene-select.f1d2a1ae.css","./fuse-edit.89b888ba.css"],import.meta.url),children:[{path:xt[Ie.fuseEditSwitch],name:Ie.fuseEditSwitch,component:()=>Ze(()=>import("./fuse-switch.a3b5234a.js"),["./fuse-switch.a3b5234a.js","./index.2a7137c8.js","./index.2bbfccb7.css","./index.vue_vue_type_script_setup_true_lang.9d8e32c7.js","./index.baab9c5c.css","./scene-select.5723a731.js","./index.f31d612e.js","./scene-select.f1d2a1ae.css","./left-pano.dbbe321d.js","./right-fill-pano.e3246e64.css","./fuse-switch.169963a6.css"],import.meta.url),children:[{path:xt[Ie.merge],name:Ie.merge,meta:zi.merge,component:()=>Ze(()=>import("./index.419e1efc.js"),["./index.419e1efc.js","./index.4dd7c73b.js","./index.0a09da59.css","./index.331e21ee.css","./right-fill-pano.e3246e64.css"],import.meta.url)},{path:xt[Ie.tagging],name:Ie.tagging,meta:zi.tagging,component:()=>Ze(()=>import("./index.492404a6.js"),["./index.492404a6.js","./sign.553a4fb8.js","./sign.e7399cfc.css","./right-fill-pano.c9a0dc6c.js","./right-fill-pano.e3246e64.css","./index.f06f7f62.css"],import.meta.url)},{path:xt[Ie.taggingPosition],name:Ie.taggingPosition,component:()=>Ze(()=>import("./index.1564bf2a.js"),["./index.1564bf2a.js","./right-fill-pano.c9a0dc6c.js","./right-fill-pano.e3246e64.css","./index.db4c7078.css"],import.meta.url)},{path:xt[Ie.measure],name:Ie.measure,meta:zi.measure,component:()=>Ze(()=>import("./index.7669c7f1.js"),["./index.7669c7f1.js","./sign.fcb9b444.js","./sign.a45cc032.css","./index.4dd7c73b.js","./index.0a09da59.css","./right-fill-pano.c9a0dc6c.js","./right-fill-pano.e3246e64.css","./index.28791e3e.css"],import.meta.url)},{path:xt[Ie.guide],name:Ie.guide,meta:zi.guide,component:()=>Ze(()=>import("./index.fe5e3b98.js"),["./index.fe5e3b98.js","./right-fill-pano.c9a0dc6c.js","./right-fill-pano.e3246e64.css","./sign.36e145c3.js","./init.47ec3ecd.js","./sign.96476f41.css","./index.a70c5d1e.css"],import.meta.url)},{path:xt[Ie.setting],name:Ie.setting,meta:zi.setting,component:()=>Ze(()=>import("./index.12d4a354.js"),["./index.12d4a354.js","./right-fill-pano.c9a0dc6c.js","./right-fill-pano.e3246e64.css","./index.f31d612e.js","./index.229d38d4.css"],import.meta.url)}]},{path:xt[Ie.registration],name:Ie.registration,component:()=>Ze(()=>import("./index.5909368e.js"),["./index.5909368e.js","./index.61647325.css"],import.meta.url)},{path:xt[Ie.proportion],name:Ie.proportion,component:()=>Ze(()=>import("./index.e1ad8159.js"),["./index.e1ad8159.js","./index.da0fc879.css"],import.meta.url)}]},{path:xt[Ie.sceneEdit],name:Ie.sceneEdit,component:()=>Ze(()=>import("./scene-edit.06471586.js"),["./scene-edit.06471586.js","./index.2a7137c8.js","./index.2bbfccb7.css","./index.vue_vue_type_style_index_0_lang.bbe5fad8.js","./index.vue_vue_type_script_setup_true_lang.9d8e32c7.js","./index.baab9c5c.css","./index.6adb5b64.css","./left-pano.dbbe321d.js","./right-fill-pano.e3246e64.css","./scene-edit.ff953527.css"],import.meta.url),children:[{path:xt[Ie.record],name:Ie.record,component:()=>Ze(()=>import("./index.70d26901.js"),["./index.70d26901.js","./right-fill-pano.c9a0dc6c.js","./right-fill-pano.e3246e64.css","./vuedraggable.umd.35671d28.js","./sign.c12201b3.js","./init.47ec3ecd.js","./slide-menu.3787e06f.js","./slide-menu.9104c3b3.css","./meta.b086afcf.js","./sign.4c4637b6.css","./index.86b95ef5.css"],import.meta.url)},{path:xt[Ie.view],name:Ie.view,component:()=>Ze(()=>import("./index.41f76741.js"),["./index.41f76741.js","./right-fill-pano.c9a0dc6c.js","./right-fill-pano.e3246e64.css","./vuedraggable.umd.35671d28.js","./sign.abf43530.js","./sign.c73a9fbf.css","./index.c7d9232e.css"],import.meta.url)}]},{path:xt[Ie.show],name:Ie.show,component:()=>Ze(()=>import("./index.a69b51f6.js"),["./index.a69b51f6.js","./slide-menu.3787e06f.js","./slide-menu.9104c3b3.css","./index.ccf1373d.css"],import.meta.url),children:[{path:xt[Ie.summaryShow],name:Ie.summaryShow,component:()=>Ze(()=>import("./index.8d5d318a.js"),["./index.8d5d318a.js","./left-pano.dbbe321d.js","./right-fill-pano.e3246e64.css","./right-fill-pano.c9a0dc6c.js","./index.vue_vue_type_style_index_0_lang.bbe5fad8.js","./index.vue_vue_type_script_setup_true_lang.9d8e32c7.js","./index.baab9c5c.css","./index.6adb5b64.css","./sign.553a4fb8.js","./sign.e7399cfc.css","./sign.fcb9b444.js","./sign.a45cc032.css","./sign.36e145c3.js","./init.47ec3ecd.js","./sign.96476f41.css","./index.df78d740.css"],import.meta.url)},{path:xt[Ie.fireInfo],name:Ie.fireInfo,component:()=>Ze(()=>import("./index.73768371.js"),["./index.73768371.js","./left-pano.dbbe321d.js","./right-fill-pano.e3246e64.css","./index.1fdf11b6.css"],import.meta.url)},{path:xt[Ie.viewShow],name:Ie.viewShow,component:()=>Ze(()=>import("./show.e3a28da7.js"),["./show.e3a28da7.js","./sign.abf43530.js","./sign.c73a9fbf.css","./left-pano.dbbe321d.js","./right-fill-pano.e3246e64.css","./show.751b0ae6.css"],import.meta.url)},{path:xt[Ie.recordShow],name:Ie.recordShow,component:()=>Ze(()=>import("./show.dcfda603.js"),["./show.dcfda603.js","./sign.c12201b3.js","./init.47ec3ecd.js","./slide-menu.3787e06f.js","./slide-menu.9104c3b3.css","./meta.b086afcf.js","./sign.4c4637b6.css","./left-pano.dbbe321d.js","./right-fill-pano.e3246e64.css","./show.53d041a5.css"],import.meta.url)},{path:xt[Ie.folderShow],name:Ie.folderShow,component:()=>Ze(()=>import("./index.be6bb0e7.js"),["./index.be6bb0e7.js","./left-pano.dbbe321d.js","./right-fill-pano.e3246e64.css","./meta.b086afcf.js","./index.bd2f214e.css"],import.meta.url)}]},{path:xt[Ie.signModel],name:Ie.signModel,component:()=>Ze(()=>import("./index.6b20dc77.js"),[],import.meta.url)},{path:xt[Ie.error],name:Ie.error,component:()=>Ze(()=>import("./index.94b6d56a.js"),["./index.94b6d56a.js","./index.09887199.css"],import.meta.url)}],xR=YN(),Qs=wR({history:xR,routes:Js}),Xp=(e,t=Js)=>{for(const n of t){if(n.name===e)return n;if(n.children){const r=Xp(e,n.children);if(r)return{...n,children:[r]}}}},SR=(e,t=Js)=>{let n=Xp(e,t);const r=[];for(;n;)r.push(n.name),n=n.children&&n.children[0];return r},lV=(e,t=Js)=>{let n=Xp(e,t);for(;(n==null?void 0:n.children)&&n.children[0];)n=n.children[0];return n},OR=ue(()=>SR(Qs.currentRoute.value.name,Js)),$u=ue(()=>{const e=OR.value;return[Ie.fuseEditSwitch,Ie.show,Ie.error,Ie.sceneEdit,Ie.signModel].find(n=>e.includes(n))}),Ml=ue(()=>{const e=Qs.currentRoute.value.name;if(e&&e in zi)return zi[e]}),ai={EDIT:2,NOW:4,LOGIN:8},Ni=ae(ai.NOW),Zp=ue(()=>!!(Ni.value&ai.EDIT));ue(()=>!!(Ni.value&ai.LOGIN));const fw=ue(()=>!(Ni.value&ai.NOW));ue(()=>!!(Ni.value&ai.NOW));const hh=ae(null),ts=ae(""),CR=ae("\u6848\u4EF6\u4FE1\u606F"),TR=ue(()=>{console.error(Ml.value);const e=Ml.value&&"sysTitle"in Ml.value?Ml.value.sysTitle:CR.value;return console.error(ts.value),ts.value&&e?ts.value+" | "+e:ts.value+e});Ke(()=>document.title=TR.value);let AR=0;const uV=e=>e.includes("__currentTempIndex__"),Ir=()=>`__currentTempIndex__${AR++}`,Pn=XI(),PR=e=>{Ni.value|=ai.EDIT,e&&Pn.on("leave",e)},kR=e=>{Ni.value&=~ai.NOW,e&&Pn.on("save",e)},dw=()=>{Pn.off("save"),Ni.value|=ai.NOW},IR=()=>{dw(),Pn.off("leave"),Ni.value&=~ai.EDIT},cV=async()=>{await Pn.emit("save"),dw(),NR()},NR=async()=>{fw.value&&!await Uo.confirm("\u60A8\u6709\u64CD\u4F5C\u672A\u4FDD\u5B58\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F")||(await Pn.emit("leave"),IR())};let ph=!1;const Tc=e=>{ph=!0,e(),Qe(()=>ph=!1)},cr=(e,t,n=!0)=>{let r=!1;const i=(t.recovery||t.backup)&&(()=>{t.recovery&&t.recovery(),t.backup&&t.backup(),t.leave&&t.leave()}),a=async()=>{i&&Pn.off("leave",i,{last:n}),r=!0,await t.save(),t.backup&&t.backup(),r=!1},s=(l,u)=>{r||ph||((!t.isUpdate||t.isUpdate(l,u))&&(Zp.value||PR(),fw.value||kR(),a&&Pn.on("save",a,{last:n})),i&&Pn.on("leave",i,{last:n}))};return()=>(t.backup&&t.backup(),Le(e,s,{deep:!0}))},fV=(e,t,n=!0)=>{const r=cr(e,t,n);Gp(r)};var Mu=(e=>(e[e.TOKEN_INVALID=4008]="TOKEN_INVALID",e[e.SUCCESS=0]="SUCCESS",e))(Mu||{});const Wg={[4008]:"token\u5DF2\u5931\u6548",[0]:"\u8BF7\u6C42\u6210\u529F"},Jp={"Content-Type":"multipart/form-data"},hw="/fusion-xj/case/getInfo",vh="/fusion-xj/web/fireProject/getDetailWithoutAuth",pw="/fusion-xj/caseFusion/list",RR="/fusion-xj/caseFusion/add",$R="/fusion-xj/caseFusion/update",MR="/fusion-xj/caseFusion/delete",LR="/fusion-xj/api/scene/list",vw="/fusion-xj/case/sceneList",mw="/fusion-xj/model/getInfo",gw="/fusion-xj/caseTag/allList",FR="/fusion-xj/caseTag/add",jR="/fusion-xj/caseTag/update",DR="/fusion-xj/caseTag/delete",yw="/fusion-xj/caseTagPoint/allList",BR="/fusion-xj/caseTagPoint/place",qR="/fusion-xj/caseTagPoint/update",HR="/fusion-xj/caseTagPoint/delete",bw="/fusion-xj/edit/hotIcon/list",UR="/fusion-xj/edit/hotIcon/add",VR="/fusion-xj/edit/hotIcon/delete",_w="/fusion-xj/fusionMeter/allList",zR="/fusion-xj/fusionMeter/add",WR="/fusion-xj/fusionMeter/updateMeter",GR="/fusion-xj/fusionMeter/delete",ww="/fusion-xj/fusionGuide/allList",KR="/fusion-xj/fusionGuide/add",YR="/fusion-xj/fusionGuide/update",XR="/fusion-xj/fusionGuide/delete",Ew="/fusion-xj/fusionGuidePath/allList",ZR="/fusion-xj/fusionGuidePath/add",JR="/fusion-xj/fusionGuidePath/update",QR="/fusion-xj/fusionGuidePath/delete",xw="/fusion-xj/caseVideoFolder/allList",mh="/fusion-xj/caseVideo/uploadAddVideoProgress",e$="/fusion-xj/caseVideo/uploadAddVideo",t$="/fusion-xj/caseVideoFolder/updateNameOrSort",n$="/fusion-xj/caseVideoFolder/delete",Sw="/fusion-xj/caseVideo/allList",Ow="/fusion-xj/caseView/allList",r$="/fusion-xj/caseView/add",i$="/fusion-xj/caseView/updateNameOrSort",o$="/fusion-xj/caseView/delete",Cw="/fusion-xj/caseSettings/info",a$="/fusion-xj/caseSettings/saveOrUpdate",Tw="/fusion-xj/settingsResource/info",s$="/fusion-xj/settingsResource/delete",l$="/fusion-xj/settingsResource/saveOrUpdate",Aw="/fusion-xj/caseFilesType/allList",Pw="/fusion-xj/caseFiles/allList",u$="/fusion-xj/upload/file",c$=e=>{const t={};ku.get("/package/data.json",{headers:{Accept:"application/json"}}).then(r=>{Object.assign(t,r.data)});const n={"/fusion-xj/caseExtractDetail/downDocx":"/package/resource/caseExtractDetail.doc","/fusion-xj/caseInquest/downDocx":"/package/resource/caseInquest.doc"};e.interceptors.request.use(async function(r){const i={...r.params};He.caseId&&(i.caseId=He.caseId);let a=t[r.url+$l(i)];if(a||(delete i.caseId,a=t[r.url+$l(i)]),a)throw{isFakeResponse:!0,config:r,response:{data:a,status:200,statusText:"OK",headers:{},config:r}};if(n[r.url])throw{isFakeResponse:!0,response:{data:(await ku.get(n[r.url],{responseType:"blob"})).data,status:200,statusText:"OK",headers:{},config:r}};return console.error(r.url,"\u672A\u5728\u79BB\u7EBF\u5305\u4E2D\uFF01"),r},function(r){return Promise.reject(r)}),e.interceptors.response.use(function(r){return n[r.config.url]||(console.error(r.config.url+$l(r.config.params),"\u6B63\u5728\u6DFB\u52A0\u5230\u79BB\u7EBF\u5305\u4E2D\uFF01"),t[r.config.url+$l(r.config.params)]=r.data),r},r=>{if(r.isFakeResponse)return Promise.resolve(r.response)}),window.proxyData=()=>{console.log(t),console.log(JSON.stringify(t))}},f$=(e=ku.create())=>{const t={token:localStorage.getItem("fuseCodeToken"),unTokenSet:[],unReqErrorSet:[],unResErrorSet:[],resErrorHandler:[],reqErrorHandler:[],unLoadingSet:[],hook:[]},n=C=>{let I=t[C];const M={set(F){I=t[C]=F}};return Array.isArray(I)?(M.add=(...F)=>{I.push(...F)},M.del=(...F)=>{F?M.set(I.filter(z=>!(F!=null&&F.includes(z)))):I.length=0}):M.del=()=>{t[C]=void 0},M},r=()=>t.token,i=C=>{localStorage.setItem("fuseCodeToken",C),t.token=C},a=()=>{localStorage.removeItem("fuseCodeToken"),t.token=null},{set:s,add:l,del:u}=n("unTokenSet"),{set:f,add:p,del:c}=n("resErrorHandler"),{set:d,add:h,del:_}=n("unReqErrorSet"),{set:b,add:E,del:v}=n("reqErrorHandler"),{set:m,add:y,del:g}=n("unResErrorSet"),{set:w,add:x,del:O}=n("hook"),T=C=>{e.defaults.baseURL=C},P=(C,I)=>I&&I.url&&C.includes(I.url),A=(C,...I)=>{Promise.resolve().then(()=>{const M=`${C}ErrorHandler`;t[M].forEach(F=>F(...I))})};return e.interceptors.request.use(C=>{for(const I of t.hook)I.before&&I.before(C);if(!P(t.unTokenSet,C)){if(t.token)C.headers={...C.headers,token:t.token};else if(!P(t.unReqErrorSet,C)){console.log(C.url);const I=new Error("\u7F3A\u5C11token");throw A("req",I,C),I}}return C}),window.offline&&c$(e),e.interceptors.response.use(C=>{var I;for(const M of t.hook)M.after&&M.after(C.config);if(P(t.unResErrorSet,C.config))return C;if(C.status!==200)throw A("res",C),new Error(C.statusText);if(C.data.code!==Mu.SUCCESS)throw A("res",C,C.data),C.data.code===Mu.TOKEN_INVALID&&a(),new Error((I=C==null?void 0:C.data)==null?void 0:I.message);return C.data.data},C=>{for(const I of t.hook)I.after&&I.after(C.config);throw P(t.unResErrorSet,C.config)||A("res",C.response),new Error(C.response&&C.response.statusText)}),{axios:e,getToken:r,setToken:i,delToken:a,setUnsetTokenURLS:s,addUnsetTokenURLS:l,delUnsetTokenURLS:u,setResErrorHandler:f,addResErrorHandler:p,delResErrorHandler:c,setUnsetReqErrorURLS:d,addUnsetReqErrorURLS:h,delUnsetReqErrorURLS:_,setReqErrorHandler:b,addReqErrorHandler:E,delReqErrorHandler:v,setUnsetResErrorURLS:m,addUnsetResErrorURLS:y,delUnsetResErrorURLS:g,setDefaultURI:T,setHook:w,addHook:x,delHook:O}},d$=f$(),{axios:Fe,addUnsetTokenURLS:h$,delUnsetTokenURLS:p$,addReqErrorHandler:v$,addResErrorHandler:m$,delReqErrorHandler:dV,delResErrorHandler:hV,addUnsetResErrorURLS:g$,getToken:pV,setToken:y$,delToken:vV,setDefaultURI:b$,addHook:kw,delHook:_$,setHook:mV}=d$,w$=()=>{const e=gN[He.app];location.href=e+"?redirect="+escape(location.href)+"#/login"};v$(e=>{console.error(e),Ru()});m$((e,t)=>{if(e&&e.status!==200)yn.error(e.statusText);else if(t){const n=t.code&&Wg[t.code]?Wg[t.code]:(t==null?void 0:t.message)||(t==null?void 0:t.msg);t.code===Mu.TOKEN_INVALID?w$():yn.error(n)}});kw({before:e=>{e.url!==mh&&z_()},after:e=>{(!e||e.url!==mh)&&Ru()}});b$(Z_);He.token&&y$(He.token);var rt=(e=>(e[e.SWKK=0]="SWKK",e[e.SWKJ=1]="SWKJ",e[e.SWSS=2]="SWSS",e[e.SWMX=3]="SWMX",e[e.SWSSMX=4]="SWSSMX",e[e.SWYDSS=5]="SWYDSS",e[e.SWYDMX=6]="SWYDMX",e))(rt||{}),Ac=(e=>(e[e.DEL=-1]="DEL",e[e.RUN=0]="RUN",e[e.ERR=1]="ERR",e[e.SUCCESS=2]="SUCCESS",e[e.ARCHIVE=3]="ARCHIVE",e[e.RERUN=4]="RERUN",e))(Ac||{});const E$={[0]:"\u516B\u76EE",[1]:"\u53CC\u76EE\u8F6C\u53F0",[2]:"\u6FC0\u5149\u8F6C\u53F0\u70B9\u4E91\u573A\u666F",[3]:"\u4E09\u7EF4\u6A21\u578B",[4]:"\u6FC0\u5149\u8F6C\u53F0Mesh\u573A\u666F",[5]:"\u6FC0\u5149\u79FB\u52A8\u70B9\u4E91\u573A\u666F",[6]:"\u6FC0\u5149\u79FB\u52A8Mesh\u573A\u666F"},Qp=e=>({...e,num:e.type===3?e.modelId.toString():e.num,name:e.name||e.sceneName||e.modelTitle}),x$=async()=>(await Fe.get(vw,{params:{caseId:He.caseId}})).map(Qp),gV=async e=>(await Fe.post(LR,e)).map(Qp),yV=async e=>{const t=await Fe.get(mw,{params:{modelId:e}});return Qp(t)},gh=(e,t=!1)=>{var n,r,i,a,s,l;return{show:!0,scale:e.transform.scale[0],opacity:e.opacity||1,bottom:e.bottom||0,fusionNumId:e.fusionNumId,modelType:(n=e.sceneData)==null?void 0:n.modelDateType,position:e.transform.position,rotation:e.transform.rotation,id:e.fusionNumId.toString(),url:e.sceneData?[rt.SWSS,rt.SWYDSS].includes(e.sceneData.type)?e.sceneData.num:e.sceneData.modelGlbUrl:"",title:e.sceneData?((r=e.sceneData)==null?void 0:r.name)||e.sceneData.sceneName||e.sceneData.modelTitle:"-",modelId:(i=e.sceneData)==null?void 0:i.modelId,fusionId:e.fusionId,type:(a=e.sceneData)==null?void 0:a.type,size:(s=e.sceneData)==null?void 0:s.modelSize,time:(l=e.sceneData)==null?void 0:l.createTime,status:e.sceneData?e.sceneData.status:Ac.ERR}},Iw=e=>({fusionId:e.fusionId,hide:Number(!e.show),opacity:e.opacity,fusionNumId:e.fusionNumId,bottom:e.bottom,transform:{position:e.position,rotation:e.rotation,scale:[e.scale,e.scale,e.scale]}}),S$=async()=>{const e=await Fe.get(pw,{params:{caseId:He.caseId}});return console.error(e.map((t,n)=>gh(t,n==0))),e.map((t,n)=>gh(t,n==0))},O$=async e=>{const t=Iw(e),n=await Fe({url:RR,method:"POST",data:{caseId:He.caseId,modelId:e.modelId,hide:t.hide,transform:t.transform,opacity:t.opacity,bottom:t.bottom}});return gh(n)},C$=e=>{const t=Iw(e);return Fe.post($R,{fusionNumId:t.fusionNumId,hide:t.hide,transform:t.transform,opacity:t.opacity,bottom:t.bottom})},T$=e=>Fe.post(MR,{fusionNumId:e.fusionNumId}),Nw=e=>({id:e.tagId.toString(),styleId:e.hotIconId.toString(),title:e.tagTitle,desc:e.tagDescribe,part:e.leaveBehind,method:e.getMethod,principal:e.getUser,images:JSON.parse(e.tagImgUrl),type:e.type||"TEXT",cat:e.cat,time:e.time,tsms:e.tsms,mtype:e.mtype}),Rw=(e,t=!1)=>({hotIconId:Number(e.styleId),fusionId:He.caseId,getMethod:e.method,getUser:e.principal,hotIconUrl:"static/img_default/lQLPDhrvVzvNvTswMLAOU-UNqYnnZQG1YPJUwLwA_48_48.png",tagId:t?Number(e.id):void 0,tagImgUrl:JSON.stringify(e.images),leaveBehind:e.part,tagDescribe:e.desc,tagTitle:e.title,type:e.type,cat:e.cat,time:e.time,tsms:e.tsms,mtype:e.mtype}),A$=async()=>(await Fe.get(gw,{params:{caseId:He.caseId}})).map(Nw),P$=async e=>{const t=await Fe.post(FR,{...Rw(e),caseId:He.caseId});return Nw(t)},k$=e=>Fe.post(jR,{...Rw(e,!0),caseId:He.caseId}),I$=e=>Fe.post(DR,{tagId:e}),$w=e=>({id:e.iconId.toString(),lastUse:e.lastUse,name:e.iconTitle,icon:e.iconUrl,default:Boolean(e.isSystem)}),N$=async()=>{const e=He.share?{caseId:He.caseId}:{};return(await Fe.get(bw,{params:e})).map($w)},R$=async e=>{const t=await Fe({method:"POST",headers:Jp,url:UR,data:Wp({file:new File([e.file],`${e.iconTitle}.png`),iconTitle:e.iconTitle})});return $w(t)},$$=async e=>{await Fe.post(VR,{iconId:Number(e)})},Mw=(e,t)=>({id:e.tagPointId.toString(),modelId:e.fusionNumId?e.fusionNumId.toString():e.modelId?e.modelId.toString():"123123",taggingId:t||e.tagId.toString(),localPos:JSON.parse(e.tagPoint)}),Lw=(e,t=!1)=>({tagPointId:t?Number(e.id):void 0,tagId:Number(e.taggingId),fusionNumId:Number(e.modelId),tagPoint:JSON.stringify(e.localPos)}),M$=async e=>(await Fe.get(`${yw}`,{params:{tagId:e}})).map(n=>Mw(n,e)),L$=async e=>{const t=await Fe.post(BR,Lw(e));return Mw(t)},F$=e=>Fe.post(qR,Lw(e,!0)),j$=e=>Fe.post(HR,{tagPointId:Number(e.id)}),Fw=e=>({...e,id:e.fusionGuideId.toString()}),jw=e=>({...e,fusionGuideId:Number(e.id)}),D$=async()=>(await Fe.get(ww,{params:{caseId:He.caseId}})).map(Fw),B$=async e=>{const t={...jw(e),caseId:He.caseId,fusionGuideId:void 0},n=await Fe.post(KR,t);return Fw(n)},q$=async e=>Fe.post(YR,{...jw(e)}),H$=e=>Fe.post(XR,{fusionGuideId:Number(e)}),Dw=e=>({...e,guideId:e.guideId.toString(),target:JSON.parse(e.target),position:JSON.parse(e.position),id:e.guidePathId.toString()}),Bw=e=>({...e,guideId:Number(e.guideId),target:JSON.stringify(e.target),position:JSON.stringify(e.position),guidePathId:Number(e.id)}),U$=async e=>(await Fe.get(Ew,{params:{guideId:e}})).map(Dw),V$=async e=>{const t={...Bw(e),caseId:He.caseId,guidePathId:void 0},n=await Fe.post(ZR,t);return Dw(n)},z$=async e=>Fe.post(JR,{...Bw(e)}),W$=e=>Fe.post(QR,{guidePathId:Number(e)}),qw=(e,t=".png")=>new File([e],`aaa${t}`),Ri=async(e,t=".png")=>{if(typeof e=="string")return e;{const n=e.blob instanceof File?e.blob:qw(e.blob,t);return console.log(n),await Fe({method:"POST",url:u$,data:Wp({file:n}),headers:{...Jp}})}},G$=()=>Fe.get(hw,{params:{caseId:He.caseId}}),K$=e=>Fe(vh,{params:{randCode:e,caseId:He.caseId}});var eo=(e=>(e.free="free",e.vertical="vertical",e.area="area",e))(eo||{});const Hw=e=>({id:e.fusionMeterId.toString(),fusionId:e.fusionId,title:e.meterTitle,desc:e.length.toString(),positions:JSON.parse(e.position).map(t=>({modelId:t.fusionNumId,...t})),type:e.meterType===2?"area":e.meterType===1?"vertical":"free"}),Uw=(e,t=!0)=>({fusionMeterId:t?Number(e.id):void 0,fusionId:e.fusionId,meterTitle:e.title,meterType:e.type==="area"?2:e.type==="vertical"?1:0,position:JSON.stringify(e.positions.map(n=>({...n,modelId:void 0,fusionNumId:n.modelId}))),length:Number(e.desc)}),Y$=async e=>(await Fe.get(_w,{params:{fusionId:e}})).map(Hw),X$=async e=>{const t=await Fe.post(zR,Uw(e,!1));return Hw(t)},Z$=async e=>{await Fe.post(WR,Uw(e))},J$=async e=>{await Fe.post(GR,{fusionMeterId:Number(e)})};var Pc=(e=>(e[e.UN=-2]="UN",e[e.ERR=-1]="ERR",e[e.RUN=0]="RUN",e[e.SUCCESS=1]="SUCCESS",e))(Pc||{});const Vw=e=>({id:e.videoFolderId.toString(),cover:e.videoFolderCover,title:e.videoFolderName,url:e.videoMergeUrl,sort:e.sort,status:e.uploadStatus||0}),Q$=(e,t=!0)=>({...t?{videoFolderId:Number(e.id)}:{},videoFolderName:e.title,videoFolderCover:e.cover,videoMergeUrl:e.url,sort:e.sort,uploadStatus:e.status}),eM=async()=>(await Fe.get(xw,{params:{caseId:He.caseId}})).map(Vw),tM=async e=>{const t=await Fe.get(mh,{params:{folderId:Number(e)}});return t>=100?1:t<0?-1:0},nM=async(e,t)=>{const n=await Ww(t);return Vw(n)},zw=async e=>{const t=Q$(e);await Fe.post(t$,t)},Ww=(e,t)=>Fe({method:"POST",url:e$,headers:{...Jp},data:Wp({...t?{folderId:t&&Number(t)}:{},caseId:He.caseId,files:e})}),rM=async e=>{await Fe.post(n$,{videoFolderId:Number(e)})},iM=e=>({id:e.videoId.toString(),cover:e.videoCover,url:e.videoPath,sort:e.sort}),oM=async e=>(await Fe.get(Sw,{params:{folderId:e}})).map(iM),Gw=e=>({id:e.viewId.toString(),cover:e.viewImg,title:e.viewTitle,sort:e.sort,flyData:JSON.parse(e.viewPoint),num:e.num,numType:e.numType,fusionId:e.fusionId?Number(e.fusionId):null}),Kw=(e,t=!0)=>({viewId:t?Number(e.id):void 0,viewTitle:e.title,viewPoint:JSON.stringify(e.flyData),viewImg:e.cover,sort:e.sort,num:e.num,numType:e.numType,fusionId:e.fusionId?e.fusionId.toString():null}),aM=async()=>(await Fe.get(Ow,{params:{caseId:He.caseId}})).map(Gw),sM=async e=>{const t=await Fe.post(r$,{...Kw(e,!1),caseId:He.caseId});return Gw(t)},lM=async e=>{await Fe.post(i$,Kw(e))},uM=async e=>{await Fe.post(o$,{viewId:Number(e)})},cM=async()=>{const e=await Fe.get(Aw);return e.push({filesTypeId:100,filesTypeName:"\u5176\u4ED6"}),e};g$("/fusion-xj/caseInquest/downDocx","/fusion-xj/caseExtractDetail/downDocx");const fM=async()=>{const e=await Fe.get(Pw,{params:{caseId:He.caseId}}),t=[{filesId:88,filesTypeId:100,filesTitle:"\u52D8\u9A8C\u7B14\u5F55",ex:"/fusion-xj/caseInquest/info",bex:"/fusion-xj/caseInquest/downDocx"},{filesId:89,filesTypeId:100,filesTitle:"\u63D0\u53D6\u6E05\u5355",ex:"/fusion-xj/caseExtractDetail/info",bex:"/fusion-xj/caseExtractDetail/downDocx"}];return await Promise.all(t.map(async n=>{if(await Fe.get(n.ex,{params:{caseId:He.caseId}})){const a=(await Fe.get(n.bex,{params:{caseId:He.caseId},responseType:"blob"})).data;e.push({...n,caseId:He.caseId.toString(),filesUrl:URL.createObjectURL(a)})}})),e},dM=""+new URL("pic.d5781b0c.jpg",import.meta.url).href;var Lu=(e=>(e.map="map",e.color="color",e.envImage="img",e.bottomImage="bimg",e.icon="icon",e))(Lu||{});const bV={color:"\u989C\u8272",img:"\u73AF\u5883\u56FE",bimg:"\u5730\u9762\u56FE",map:"",icon:""},Gg=ae([]),_V=async()=>{Gg.value=[{sys:!0,name:"\u65E0",backType:"icon",resource:"icon-without"},{sys:!0,name:"\u84DD\u5929\u767D\u4E91",backType:"img",covre:"./env-img/pic_ltby@2x.png",resource:"./env-img/ltby.jpg"},{sys:!0,name:"\u4E4C\u4E91\u5BC6\u5E03",backType:"img",covre:"./env-img/pic_wymb@2x.png",resource:"./env-img/wymb.jpg"},{sys:!0,name:"\u591C\u7A7A",backType:"img",covre:"./env-img/pic_yk@2x.png",resource:"./env-img/yk.jpg"},{sys:!0,name:"\u8349\u5730",backType:"img",covre:"./env-img/pic_cd@2x.png",resource:"./env-img/cd.jpg"},{sys:!0,name:"\u9053\u8DEF",backType:"img",covre:"./env-img/pic_dl@2x.png",resource:"./env-img/dl.jpg"},{sys:!0,name:"\u508D\u665A",backType:"img",covre:"./env-img/pic_bw@2x.png",resource:"./env-img/bw.jpg"},{sys:!0,name:"\u7070\u8272",backType:"color",resource:"#333333"},{sys:!0,name:"\u9ED1\u8272",backType:"color",resource:"#000000"},{sys:!0,name:"\u767D\u8272",backType:"color",resource:"#ffffff"}];const e=await Fe.get(Tw,{params:{caseId:He.caseId}});return Gg.value.push(...e),e},wV=async e=>{await Fe.post(s$,{id:e.id})},EV=async e=>{await Fe.post(l$,{caseId:He.caseId,...e})},hM=e=>({...e,id:e.settingsId,pose:e.pose&&JSON.parse(e.pose),cover:e.cover||dM,rotate:e.rotate||0,back:e.back||"none",backType:e.backType||Lu.icon,mapOpen:e.mapOpen||!1,fov:e.fov||70,openCompass:!!e.openCompass,mapType:e.mapType||"satellite"}),pM=e=>({...e,settingsId:e.id,pose:e.pose&&JSON.stringify(e.pose),cover:e.cover,back:e.back,rotate:e.rotate||0,mapType:e.mapType}),vM=async()=>{const e=await Fe.get(Cw,{params:{caseId:He.caseId}});return hM(e[0]||{})},mM=async e=>{await Fe.post(a$,{caseId:He.caseId,...pM(e)})},Yw=ae([]),xV=Ys(Yw,x$),fr=ae([]),gM=ue(()=>fr.value.find(e=>e.default)),yM=ue(()=>fr.value.find(e=>e.lastUse)),SV=(e={})=>({id:Ir(),icon:"",lastUse:0,default:!1,name:"",...e}),Xw=e=>fr.value.find(t=>t.id===e);let Zw=[];const Jw=()=>Zw,ev=()=>{Zw=fr.value.map(e=>({...e}))},Qw=oi(fr,Jw),bM=Ys(fr,N$,ev),_M=ki(fr,async e=>typeof e.icon=="string"?e:R$({file:e.icon.blob,iconTitle:e.name})),wM=ii(fr,e=>$$(e.id)),eE=kr(fr,Jw,{add:_M,delete:wM});cr(fr,{backup:ev,recovery:Qw,save:eE});const wn=ae([]),OV=(e={})=>({id:Ir(),taggingId:"",modelId:"",localPos:{x:0,y:0,z:0},...e}),kc=e=>wn.value.filter(t=>t.taggingId===e.id)||[],tE=e=>{const t=Ic(e.modelId);return ot.showTaggings&&t&&t.loaded&&Ns(t).value};let nE=[];const rE=()=>nE,tv=()=>{nE=wn.value.map(e=>({...e,localPos:{...e.localPos}}))},EM=async e=>{const t=await M$(e.id);wn.value=wn.value.filter(n=>n.taggingId!==e.id).concat(t),tv()},iE=oi(wn,rE),xM=ki(wn,L$),SM=Ii(wn,F$),OM=ii(wn,j$),oE=kr(wn,rE,{add:xM,update:SM,delete:OM});cr(wn,{backup:tv,recovery:iE,save:oE});const Un=ae([]),CV=e=>Un.value.find(t=>t.id===e),TV=e=>kc(e).some(tE),AV=(e={})=>{var t,n;return{id:Ir(),title:"",styleId:((t=yM.value)==null?void 0:t.id)||((n=gM.value)==null?void 0:n.id)||"",desc:"",part:"",method:"",principal:"",time:"",images:[],mtype:"",cat:"",tsms:"",type:"IMAGE",...e}};let nv=[];const CM=()=>nv,aE=()=>{nv=Un.value.map(e=>({...e,images:[...e.images]}))},sE=async e=>{const t=[],n=e.images.map((r,i)=>Ri(r).then(a=>t[i]=a));return await Promise.all(n),{...e,images:t}},TM=oi(Un,()=>nv),AM=ki(Un,async e=>{const t=kc(e),n=await P$(e);for(const r of t)r.taggingId=n.id;return n},sE),PM=ii(Un,async e=>{const t=kc(e);await I$(e.id),wn.value.filter(n=>!t.includes(n))}),kM=Ii(Un,k$,sE),IM=Ys(Un,async()=>{const e=await A$();return await Promise.all(e.map(EM)),e},aE),NM=kr(Un,CM,{add:AM,update:kM,delete:PM}),PV=cr([Un,wn,fr],{backup:so([aE,tv,ev]),recovery:so([TM,iE,Qw]),save:async()=>{const e=Un.value.map(t=>Xw(t.styleId));await eE();for(let t=0;te.positions.every(({modelId:t})=>{const n=Ic(t);return ot.showMeasures&&n&&n.loaded&&Ns(n).value}),kV=(e={})=>({id:Ir(),fusionId:Je.value[0].fusionId,title:RM[e.type||eo.free].unitDesc,positions:[],desc:"",type:eo.free,...e});let lE=[];const Fu=()=>lE,uE=()=>{lE=Sr.value.map(e=>({...e,positions:[...e.positions]}))},MM=oi(Sr,Fu),LM=Ys(Sr,async()=>Je.value.length?await Y$(Je.value[0].fusionId):[],uE),FM=ki(Sr,X$),jM=Ii(Sr,Z$),DM=ii(Sr,e=>J$(e.id)),BM=kr(Sr,Fu,{add:FM,delete:DM,update:jM}),IV=cr(Sr,{isUpdate:e=>(console.log(e,Fu()),Oa(e.map(t=>({...t,selected:!1})),Fu().map(t=>({...t,selected:!1})))),backup:uE,recovery:MM,save:async()=>{if(!Sr.value.every(e=>e.title))throw yn.warning("\u6D4B\u91CF\u540D\u79F0\u4E0D\u53EF\u4E3A\u7A7A"),"\u6D4B\u91CF\u540D\u79F0\u4E0D\u53EF\u4E3A\u7A7A";await BM()}}),Je=ae([]),ju=ae([]),qM={show:!0,scale:100,opacity:100,bottom:0,position:{x:0,y:0,z:0},rotation:{x:0,y:0,z:0}},NV=(e={})=>Rc({id:Ir(),modelId:0,fusionNumId:0,url:"",fusionId:0,title:"",modelType:"glb",type:rt.SWMX,status:Ac.SUCCESS,size:0,time:new Date().toString(),...qM,...e}),Ic=e=>Je.value.find(t=>t.id===e),Ns=e=>ue({get:()=>ot.showModelsMap.get(e)||!1,set:t=>{ot.showModelsMap.set(e,t)}});Ke(()=>{Je.value.forEach(e=>ot.showModelsMap.get(e))},{flush:"sync"});const Nc=ae(!1);S1(()=>{const e=Je.value.filter(t=>Ns(t).value).every(t=>t.loaded||t.error);Nc.value=e});let rv=[];const iv=()=>rv,cE=()=>{rv=Je.value.map(e=>({...e,rotation:{...e.rotation},position:{...e.position}}));for(const e of Je.value)ov(e)};Le(Je,()=>{for(const e of rv){const t=Ic(e.id);t&&(e.progress=t.progress,e.error=t.error,e.loaded=t.loaded)}},{deep:!0});const Rc=e=>({...e,error:!1,loaded:!1,progress:0}),ov=e=>{ot.showModelsMap.has(e)||ot.showModelsMap.set(e,e.show)},HM=()=>{const e=iv();Je.value=e.map(t=>{const n=Je.value.find(r=>r.id===t.id);return n?Object.assign(n,t):Rc(t)}),console.log(e)},UM=Ii(Je,C$),VM=ii(Je,async e=>{await T$(e);const t=ju.value.indexOf(e.id);~t&&ju.value.splice(t,1)}),RV=async e=>{const t=yt(Rc(await O$(e)));ov(t),Tc(()=>{Je.value.push(t),ju.value.push(t.id)})},$V=Ys(Je,S$,()=>{for(const e of Je.value)ov(e);cE()},e=>e.map(Rc)),zM=kr(Je,iv,{update:UM,delete:VM}),MV=cr(Je,{isUpdate:e=>Oa(e.map(t=>({...t,loaded:!0,error:!0,progress:0})),iv().map(t=>({...t,loaded:!0,error:!0,progress:0}))),backup:cE,recovery:HM,save:async()=>{await zM(),await Promise.all([IM(),LM()])}}),fn=ae([]),av=e=>fn.value.filter(t=>t.guideId===e.id),LV=(e={})=>({id:Ir(),guideId:"",cover:"",time:1,sort:999,speed:1,position:{x:0,y:0,z:0},target:{x:0,y:0,z:0},...e});let fE=[];const dE=()=>fE,$c=()=>{fE=fn.value.map(e=>({...e}))},hE=async e=>{const t=await Ri(e.cover);return{...e,cover:t}},pE=oi(fn,dE),WM=ki(fn,V$,hE),GM=Ii(fn,z$,hE),KM=ii(fn,e=>W$(e.id)),YM=async e=>{const t=await U$(e.id);fn.value=fn.value.filter(n=>n.guideId!==e.id).concat(t),$c()},Kg=kr(fn,dE,{add:WM,update:GM,delete:KM}),vE=async()=>{await Kg(),$c();const e=new Map;fn.value.forEach(t=>{const n=(e.get(t.guideId)||0)+1;t.sort=n,e.set(t.guideId,n)}),console.log(fn.value),await Kg()};cr(fn,{backup:$c,recovery:pE,save:vE});const Or=ae([]),FV=(e={})=>({id:Ir(),title:`\u8DEF\u5F84${Or.value.length+1}`,cover:"",...e});let mE=[];const gE=()=>mE,yE=()=>{mE=Or.value.map(e=>({...e}))},bE=async e=>{const t=await Ri(e.cover);return{...e,cover:t}},XM=ki(Or,async e=>{const t=av(e),n=JSON.stringify(Je.value.map(i=>({...i,viewShow:ot.showModelsMap.get(i)})));e.recoveryContent=n;const r=await B$(e);return t.forEach(i=>i.guideId=r.id),r},bE),ZM=ii(Or,async e=>{const t=av(e);await H$(e.id),fn.value=fn.value.filter(n=>!t.includes(n))}),jV=async()=>{Or.value=await D$(),await Promise.all(Or.value.map(YM)),yE()},JM=oi(Or,gE),QM=Ii(Or,q$,bE),e4=kr(Or,gE,{add:XM,update:QM,delete:ZM}),DV=cr([Or,fn],{backup:so([yE,$c]),recovery:so([JM,pE]),save:async()=>{await e4(),await vE()}}),ar=ae([]),BV=(e={})=>({id:Ir(),recordId:"",cover:"",url:"",sort:Math.min(...ar.value.map(t=>t.sort))+1,...e}),_E=e=>ar.value.filter(t=>t.recordId===e.id),qV=e=>_E(e).filter(t=>typeof t.url!="string").map(t=>t.url);let wE=[];const EE=()=>wE,sv=()=>{wE=ar.value.map(e=>({...e}))},xE=oi(ar,EE),t4=async e=>{const t=await oM(e.id);Tc(()=>{ar.value=ar.value.filter(n=>n.recordId!==e.id).concat(t.map(n=>({...n,recordId:e.id})))}),sv()},SE=kr(ar,EE,{});cr(ar,{backup:sv,recovery:xE,save:SE});const Ht=ae([]),HV=(e={})=>({id:Ir(),title:"\u8BB2\u89E3\u89C6\u9891"+(Ht.value.length+1),cover:"",url:"",status:Pc.UN,sort:Math.min(...Ht.value.map(t=>t.sort))-1,...e});let OE=[];const lv=()=>OE,CE=()=>{OE=Ht.value.map(e=>({...e}))},n4=oi(Ht,lv),cd=[],TE=async e=>{await tM(e.id)===Pc.SUCCESS?(cd.forEach(clearTimeout),cd.length=0,PE()):cd.push(setTimeout(TE.bind(null,e),3e3))},AE=e=>_E(e).filter(r=>typeof r.url!="string").map(r=>qw(r.url,".mp4")),PE=async()=>{const e=await eM();Tc(()=>Ht.value=e),await Promise.all(Ht.value.map(t4));for(const t of Ht.value)t.status===Pc.RUN&&TE(t);CE()},r4=ki(Ht,async e=>{const t=e.cover?await Ri(e.cover):e.cover,n=await nM({...e,cover:t},AE(e));return e.id=n.id,await zw(e),e}),i4=Ii(Ht,async e=>{const t=e.cover?await Ri(e.cover):e.cover;return await zw({...e,cover:t})}),o4=ii(Ht,async e=>{ar.value=ar.value.filter(t=>t.recordId!==e.id),await rM(e.id)}),a4=kr(Ht,lv,{add:r4,delete:o4,update:i4}),UV=cr([Ht,ar],{backup:so([sv,CE]),recovery:so([xE,n4]),save:async()=>{if(!Ht.value.every(r=>r.title))throw yn.warning("\u89C6\u9891\u540D\u79F0\u4E0D\u53EF\u4E3A\u7A7A"),"\u89C6\u9891\u540D\u79F0\u4E0D\u53EF\u4E3A\u7A7A";for(let r=0;r!t.includes(r)).map(r=>({record:r,merge:AE(r)})).filter(({merge:r})=>r.length);await Promise.all(n.map(({record:r,merge:i})=>Ww(i,r.id))),await PE()}});function Dr(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(i){i(n)}),(r=e.get("*"))&&r.slice().map(function(i){i(t,n)})}}}const s4=(e,t,n,r)=>{console.warn("\u65B0\u7684\u9875\u9762"),Potree.settings.isOfficial=!0,Potree.settings.libsUrl="./lib/",location.host==="mix3d.4dkankan.com"?(Potree.settings.urls.prefix=Potree.settings.urls.prefix6,Potree.settings.webSite="datav1"):location.host==="xfhd.4dkankan.com"&&(Potree.settings.urls.prefix=Potree.settings.urls.prefix7,Potree.settings.webSite="datav1");const i=Dr(),a=Dr(),s=8;Potree.settings.showCompass=!0,Potree.settings.compassDom=e.querySelector("#direction"),Potree.settings.showObjectsOnMap=!0;let{THREE:l}=Potree.mergeEditStart(e,t),u=viewer.modules.MergeEditor;viewer.addEventListener("camera_changed",v=>{var m=v.viewport.camera,y=m.position;v.viewport.name=="MainView"&&a.emit("cameraChange",{x:y.x,y:y.y,z:y.z,rotate:m.rotation})}),viewer.addEventListener("webglError",v=>{console.error("viewer webglError: "+v),a.emit("webglError",{msg:v.msg})}),viewer.compass.setAutoDisplay(!0);{let v=1;Potree.isIframeChild||(window.winIndex=0,window.iframeCreated=function(m){let y=m.contentWindow;y.winIndex=v++,console.error("createdIframe",y.winIndex,y.location.href),viewer.setDisplay(!1),y.beforeDestroy=function(){if(console.warn("beforeDestroy",y.winIndex),y.viewer&&y.viewer.setDisplay(!1),viewer.setDisplay(!0),!y.viewer)try{y.__sdk.core.get("Player").model.traverse(w=>{w.geometry&&w.geometry.dispose(),w.material&&(w.material.map&&w.material.map.dispose(),w.material.uniforms&&w.material.uniforms.map&&w.material.uniforms.map.value&&w.material.uniforms.map.value.dispose())})}catch(g){console.log(g)}}})}window.THREE=l;let f=[],p,c=2,d=viewer.background;const h={1:"metric",2:"imperial"};let _=function(v,m=1){let y;switch(v){case"free":y={measureType:"Distance"};break;case"area":y={measureType:"Area"};break;case"vertical":y={measureType:"Ver Distance"};break;default:console.error("\u65E0\u6B64 measure type")}return y.unit=h[m],y},b=function(v,m){return v.addEventListener("highlight",y=>{m.emit("highlight",y.state)}),v.addEventListener("marker_dropped",y=>{v.parent&&m.emit("update",[v.dataset_points.map(g=>g.clone()),v.points_datasets])}),{destroy:()=>{viewer.dispatchEvent({type:"cancel_insertions",remove:!0,measure:v}),viewer.scene.removeMeasurement(v)},getArea:()=>v.area,getDistance:()=>{if(v.points.length<2)return 0;var y=v.points[0].distanceTo(v.points[1]);return{value:y,string:v.getConvertString(y,"distance")}},show:()=>{Potree.Utils.updateVisible(v,"inListByUser",!0)},hide:()=>{Potree.Utils.updateVisible(v,"inListByUser",!1)},fly(){let y=viewer.focusOnObject(v,"measure",1200);return y.msg?y.msg:y.promise},changeSelect(y){console.log("2d->3d isHight ",y),v.setSelected(y,"byList")}}},E={sceneBus:a,mapBus:i,getPositionByScreen(v,m){m=null;let y,g,w,x,O=viewer.inputHandler,T=()=>{v.clientX=v.x,v.clientY=v.y,v.onlyGetIntersect=!0,v.whichPointcloud=!0,m!=null&&u.getAllObjects().forEach(S=>{Potree.Utils.updateVisible(S,"forPick",S.dataset_id==m)});let P=O.onMouseMove(v);m!=null&&u.getAllObjects().forEach(S=>{Potree.Utils.updateVisible(S,"forPick",!0)}),P&&P.location&&(x=P)};if(v&&v.inDrag?T():(x=O.intersect,x&&(w=x.pointcloud?x.pointcloud.dataset_id:x.object.dataset_id,m!=null&&w!=m&&T())),x&&x.location)w=x.pointcloud?x.pointcloud.dataset_id:x.object.dataset_id,y=x.location.clone(),g=Potree.Utils.datasetPosTransform({toDataset:!0,datasetId:w,position:y});else return null;return{worldPos:y,modelId:w,localPos:g}},getScreenByPosition(v,m,y){let g=m!=null;v=new l.Vector3().copy(v);let w=g?Potree.Utils.datasetPosTransform({fromDataset:!0,datasetId:m,position:v}):v;if(!!w){if(y&&viewer.inputHandler.ifBlockedByIntersect(w,.1,!0))return{trueSide:!1};var x=viewer.mainViewport,O=x.camera,T=viewer.renderArea;return O.position.distanceToSquared(w)>Math.pow(s,2)?!1:Potree.Utils.getPos2d(w,x,T)}},setCameraFov(v){viewer.setFOV(v)},screenshot:(v,m,y=1)=>{var{getImagePromise:g,finishPromise:w}=viewer.startScreenshot({type:"default",bgOpacity:y},v,m),x=$.Deferred();return w.done(({dataUrl:O})=>{x.resolve(O)}),x.promise()},getPose(){viewer.scene.getActiveCamera();const v=viewer.scene.view.getPivot().clone();return{position:viewer.scene.view.position.clone(),target:v}},comeTo(v={}){if(v.modelId&&["position","target"].forEach(y=>{v[y]&&(v[y]=Potree.Utils.datasetPosTransform({fromDataset:!0,datasetId:v.modelId,position:v[y]}))}),v.distance){let y=v.target||v.position;return viewer.focusOnObject({position:y},"tag",null,{distance:v.distance}).promise}let m=$.Deferred();return viewer.scene.view.setView($.extend({},v,{duration:v.dur,callback:()=>{v.callback&&v.callback(),m.resolve(!0)}})),m.promise()},setBackdrop(v,m,{scale:y,rotate:g}){let w=x=>{u.secondCompass.dom.find(".dirText").css({color:x}),viewer.compass.dom.find(".dirText").css({color:x}),u.ground.material.uniforms.uColor.value.set(x)};if(m=="bimg")u.setGroundPlaneImg(v,y,g),w("#e0e0e0"),viewer.setBackground(d);else if(u.setGroundPlaneImg(null),v=="none")viewer.setBackground(d),w("#eee");else if(v[0]=="#"){viewer.setBackground(new l.Color(v));let x=v=="#fff"?"#666":v=="#333"?"#eee":"#bbb";w(x)}else m=="image-map"||m=="vector-map"||(viewer.setBackground("skybox",v),w("#e0e0e0"));viewer.dispatchEvent("content_changed")},switchMapType(v){viewer.mapViewer.mapLayer.maps.find(y=>y.name=="map").switchStyle(v)},enableMap(v,m){if(!viewer.mapViewer){proj4.defs("LOCAL","+proj=tmerc +ellps=WGS84 +lon_0="+m[1].toPrecision(15)+" +lat_0="+m[0].toPrecision(15)),proj4.defs("LOCAL_MAP","+proj=tmerc +ellps=WGS84 +lon_0="+m[1].toPrecision(15)+" +lat_0="+m[0].toPrecision(15)),proj4.defs("WGS84","+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs");let y=proj4("WGS84","LOCAL"),g=proj4("+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs;");viewer.transform={lonlatToLocal:y,lonlatTo4550:g},viewer.mapViewer=new Potree.MapViewer(v),viewer.mapViewer.initProjection();let w=new l.Vector3(200,150,1).max(viewer.bound.boundSize);viewer.mapViewer.addEventListener("viewerResize",()=>{viewer.mapViewer.moveTo(viewer.bound.center,w,0)},{once:!0})}},enterSceneGuide(v){let m=viewer.modules.CamAniEditor;console.log("pathArr",v);let y={duration:v.slice(0,v.length-1).reduce(function(x,O){return x+O.time},0),points:v,useDurSlice:!0},g=m.createAnimation(y),w=Dr();return g.addEventListener("playDone",()=>{w.emit("playComplete")}),g.addEventListener("updateCurrentIndex",x=>{w.emit("changePoint",x.currentIndex+1)}),{bus:w,play(){u.selectModel(null),g.play()},pause(){g.pause()},clear(){m.removeAnimation(g)}}},calcPathInfo(v,m){let y=new l.Vector3().copy(v[0].position),g=new l.Vector3().copy(v[1].position),w=y.distanceTo(g);return m.time!=null?m.speed=w/m.time:m.time=w/m.speed,m},addModel(v){let m=Dr();v.isFirstLoad=n?v.bottom==null:v.isDynamicAdded||v.mode=="single",v.opacity==null&&(v.opacity=1),v.type=="obj"&&(v.type="glb"),v.scale/=100,v.rotation&&v.rotation._x==null&&v.rotation.x!=null&&(v.rotation=new l.Euler().setFromVector3(v.rotation)),v.isFirstLoad?(p=!0,(v.fromType==4||v.fromType==6)&&(v.rotation=new l.Euler(Math.PI/2,0,0))):(f.length==0&&setTimeout(()=>{let S=f.map(C=>C.size||0);console.log("\u9700\u8981\u8BF7\u6C42\u52A0\u8F7D\u7684\u6A21\u578B\u5927\u5C0F\u4E3A",S,"\u603B\u5927\u5C0F",S.reduce(function(C,I){let M=parseFloat(I);return C+(typeof I=="number"||I.includes("M")?M:M/1024)},0)),p=!0,y(f[0])},30),f.push(v),p=!1);let y=S=>{S.maximumScreenSpaceError=60,Potree.addModel(S,S.done,S.progressFun,S.onError),S.loading=!0,console.log("-------\u5F00\u59CB\u52A0\u8F7D id:",S.id,"title:",S.title,", filename:",Potree.Common.getNameFromURL(S.url),S)},g=(S,C)=>{v.loadFinish=!0,v.loading=!1,C?(v.loaded=!0,v.model=S):v.error=!0;let I=f.filter(M=>!M.loading&&!M.loadFinish);if(I[0])y(I[0]);else if(f.filter(M=>!M.loadFinish).length==0&&f.filter(M=>M.loaded).length>0&&!v.isFirstLoad){let M=f.filter(F=>F.loaded).map(F=>F.model);console.log("\u6240\u6709\u6A21\u578B\u52A0\u8F7D\u5B8C\u6BD5"),f.filter(F=>F.loaded&&F.show).forEach(F=>F.model.visible=!0),u.focusOn(M,1e3,!0,!0),f.length=0}},w,x=S=>{w=S,v.isFirstLoad||(w.visible=!1),v.opacity<100&&A.changeOpacity(v.opacity),w.addEventListener("changeSelect",I=>{m.emit("changeSelect",I.selected)});let C={};w.addEventListener("transformChanged",I=>{let M={};(!C.position||!w.position.equals(C.position))&&(C.position=M.position=w.position.clone()),(!C.rotation||!w.rotation.equals(C.rotation))&&(C.rotation=M.rotation=w.rotation.clone()),(C.scale==null||w.scale.x*100!=C.scale)&&(C.scale=M.scale=w.scale.x*100),M=Potree.Common.CloneObject(M),m.emit("transformChanged",M)}),g(w,!0),v.mode=="single"&&(u.noNeedSelection=!0,setTimeout(()=>{u.focusOn([w],1e3,!0,!0)},1)),m.emit("loadDone")},O=S=>{m.emit("loadProgress",S)},T=function(S){m.emit("loadError",S),console.log("loadError!!!!!!!!!",Potree.Common.getNameFromURL(v.url),v.size,S),g(w,!1)};try{v.url=JSON.parse(v.url)}catch{}v.done=x,v.progressFun=O,v.onError=T,p&&f.filter(S=>S.loading).length{F!=w&&Potree.Utils.updateVisible(F,"enterScaleSet",!1)});let M=()=>{if(C==null||!I)return;let F=new l.Vector3().subVectors(viewer.mainViewport.camera.position,P.points[1]),z=C/P.points[0].distanceTo(P.points[1]);A.changeScale(w.scale.x*z*100);let U=new l.Vector3().addVectors(P.points[1],F.multiplyScalar(z));viewer.scene.view.setView({position:U,target:P.getCenter(),duration:0,callback:()=>{}})};return{bus:S,setLength(F){!F||(C=F,M())},startMeasure(){P&&(viewer.dispatchEvent({type:"cancel_insertions",remove:!0,measure:P}),viewer.scene.removeMeasurement(P)),I=!1,P=viewer.measuringTool.startInsertion({measureType:"Distance",unit:"metric"},()=>{I=!0,M()},()=>{}),P.addEventListener("marker_dropped",F=>{P.parent&&I&&M()})}}},leaveScaleSet(){P&&(viewer.dispatchEvent({type:"cancel_insertions",remove:!0,measure:P}),viewer.scene.removeMeasurement(P),P=null),viewer.outlinePass.selectedObjects=[w],u.getAllObjects().forEach(S=>{S!=w&&Potree.Utils.updateVisible(S,"enterScaleSet",!0)})},destroy(){w&&u.removeModel(w),viewer.dispatchEvent("content_changed")}};return A},startMeasure(v){const m=Dr();let y=_(v),g=viewer.measuringTool.startInsertion(y,()=>{m.emit("submit"),m.emit("update",[g.dataset_points.map(x=>x.clone()),g.points_datasets])},()=>{m.emit("cancel")});return Potree.Log("startMeasure: "+g.id,"#00c7b2"),{bus:m,...b(g,m)}},drawMeasure(v,m,y){const g=Dr();let w=_(v);w.dataset_points=m,w.points_datasets=y,w.bus=g;let x=viewer.measuringTool.createMeasureFromData(w);return x?(Potree.Log("drawMeasure\u7531\u6570\u636E\u65B0\u5EFA: "+x.id,"#00c7b2"),{bus:g,setPositions(T,P){x.dataset_points=T.map(A=>A&&new l.Vector3().copy(A)),x.points_datasets=P,x.points=x.dataset_points.map((A,S)=>Potree.Utils.datasetPosTransform({fromDataset:!0,datasetId:x.points_datasets[S],position:A})),x.getPoint2dInfo(x.points),x.update({ifUpdateMarkers:!0}),x.setSelected(!1)},...b(x,g)}):{bus:g}},addTag(v){let m=Dr(),y,g=()=>{m.emit("added"),m.emit("update",{position:y.position.clone(),normal:o.normal.clone(),modelId:y.root.dataset_id}),y=tag_,y.spot.addEventListener("mouseover",()=>{m.emit("hoverState",!0)}),y.spot.addEventListener("mouseout",()=>{m.emit("hoverState",!1)})};return v.position?(v.root=u.getAllObjects().find(x=>x.dataset_id==v.modelId),v.root||console.error("\u6CA1\u6709\u627E\u5230\u8BE5modelId"),y=viewer.tagTool.createTagFromData(v),g()):viewer.tagTool.startInsertion().done(x=>{g()}),{bus:m,getScreenPos(){let x=new l.Vector3().setFromMatrixPosition(y.matrixWorld);return E.getScreenByPosition(x)},show(){Potree.Utils.updateVisible(y,"byList",!0)},hide(){Potree.Utils.updateVisible(y,"byList",!1)},destroy(){y&&y.dispose(),viewer.dispatchEvent({type:"cancel_insertions",remove:!0})},changeTitle(x){y.changeTitle(x)}}},showGrid(){Potree.Utils.updateVisible(viewer.modules.MergeEditor.ground,"hideGrid",!0),viewer.dispatchEvent("content_changed")},hideGrid(){Potree.Utils.updateVisible(viewer.modules.MergeEditor.ground,"hideGrid",!1),viewer.dispatchEvent("content_changed")}};return E};let vt,yh=!1;const l4=async e=>{if(yh)return;yh=!0;const t=["./lib/proj4/proj4.js","./lib/jquery/jquery-3.1.1.min.js","./lib/other/BinaryHeap.js","./lib/tween/tween.min.js","./lib/plasio/js/laslaz.js","./lib/plasio/vendor/bluebird.js","./lib/plasio/workers/laz-loader-worker.js","./lib/plasio/workers/laz-perf.js"];await Promise.all(t.map(Pg)),await Pg("./lib/potree/potree.js");const n=s4(e.layout,!1);window.sdk=vt=n,vt.layout=e.layout,vt.hideGrid(),vt.screenshot=V_(vt.screenshot)},u4={key:0,class:"mates"},c4=["onClick"],f4=["src"],d4=["src"],h4={key:2,class:"iframe"},p4=["src"],v4={class:"file-mange"},m4=Ce({__name:"metas-mange",props:{hot:{},inFull:{type:Boolean},index:{},hideInfo:{type:Boolean}},emits:["pull","change"],setup(e,{emit:t}){const n=e,r=t,i=ue(()=>({...n.hot,images:n.hot.images.map(a=>typeof a=="string"?a:a.url)}));return(a,s)=>{const l=mt("ui-slide");return a.hot.type!=="TEXT"?(se(),he("div",u4,[i.value.images?(se(),We(l,{key:0,items:i.value.images,showCtrl:i.value.images.length>1,currentIndex:a.index,onChange:s[0]||(s[0]=u=>r("change",u)),showInfos:i.value.images.length>1&&!a.hideInfo},{default:De(({raw:u,index:f})=>[ve("div",{class:$e(["meta-item",{full:a.inFull}]),onClick:p=>a.inFull&&r("pull",f)},[i.value.type==="IMAGE"?(se(),he("img",{key:0,src:u},null,8,f4)):i.value.type==="VIDEO"||i.value.type==="AUDIO"?(se(),he("video",{key:1,class:"video",autoplay:"",controls:"",playsinline:"","webkit-playsinline":"",src:u},null,8,d4)):i.value.type==="WEB"?(se(),he("div",h4,[ve("iframe",{src:u},null,8,p4)])):Ee("",!0)],10,c4)]),attach:De(({active:u})=>[ve("div",v4,[Se(a.$slots,"icons",{active:u},void 0,!0)])]),_:3},8,["items","showCtrl","currentIndex","showInfos"])):Ee("",!0)])):Ee("",!0)}}});const g4=Et(m4,[["__scopeId","data-v-316fab3a"]]),y4=Ce({name:"static-preview",props:{media:{type:Object,required:!0}},emits:{close:()=>!0},setup(e){const t=ae("");return Ke(()=>{const n=e.media.url,r=typeof n=="string"?J_(n):URL.createObjectURL(n);return t.value=r,()=>URL.revokeObjectURL(r)}),{staticURL:t,MediaType:kE}}});const b4={class:"preview-layer"},_4={class:"pull-meta"},w4={key:0,controls:"",autoplay:"",playsinline:"","webkit-playsinline":""},E4=["src"],x4=["src"],S4=["src"];function O4(e,t,n,r,i,a){return se(),he("div",b4,[ve("div",_4,[e.media.type===e.MediaType.video||e.MediaType.audio===e.media.type?(se(),he("video",w4,[ve("source",{src:e.staticURL},null,8,E4)])):e.media.type===e.MediaType.web?(se(),he("iframe",{key:1,src:e.staticURL},null,8,x4)):Ee("",!0),e.media.type===e.MediaType.img?(se(),he("img",{key:2,src:e.staticURL},null,8,S4)):Ee("",!0)])])}const C4=Et(y4,[["render",O4],["__scopeId","data-v-5e9d39b3"]]);var kE=(e=>(e.video="VIDEO",e.img="IMAGE",e.web="WEB",e.audio="AUDIO",e))(kE||{});const T4=Ce({name:"static-preview",props:{items:{type:Array,required:!0},current:{type:Number,default:1}},emits:{close:()=>!0},components:{Sign:C4}});const A4={class:"pull-preview pc"};function P4(e,t,n,r,i,a){const s=mt("ui-icon"),l=mt("Sign"),u=mt("ui-slide");return se(),We(ni,{to:"body"},[ve("span",{class:"close pc",onClick:t[0]||(t[0]=f=>e.$emit("close"))},[X(s,{type:"close",ctrl:""})]),ve("div",A4,[e.items.length>1?(se(),We(u,{key:0,currentIndex:e.current,showCtrl:"",items:e.items,showInfos:""},{default:De(({raw:f})=>[X(l,{media:f},null,8,["media"])]),_:1},8,["currentIndex","items"])):(se(),We(l,{key:1,media:e.items[0]},null,8,["media"]))])])}const k4=Et(T4,[["render",P4],["__scopeId","data-v-0f5f73c4"]]),go=e=>(sc("data-v-336e25a0"),e=e(),lc(),e),I4=["src"],N4={class:"hbp-layout"},R4={class:"content"},$4={class:"show-editor"},M4=go(()=>ve("span",null,"\u9057\u7559\u90E8\u4F4D\uFF1A",-1)),L4=go(()=>ve("span",null,"\u63D0\u53D6\u65B9\u6CD5\uFF1A",-1)),F4=go(()=>ve("span",null,"\u7C7B\u522B\uFF1A",-1)),j4=go(()=>ve("span",null,"\u7C7B\u578B\uFF1A",-1)),D4=go(()=>ve("span",null,"\u7279\u5F81\u63CF\u8FF0\uFF1A",-1)),B4=go(()=>ve("span",null,"\u63D0\u53D6\u65F6\u95F4\uFF1A",-1)),q4=go(()=>ve("span",null,"\u63D0\u53D6\u4EBA\uFF1A",-1)),H4={key:0,class:"edit-hot"},U4=Ce({__name:"sign",props:{tagging:{},scenePos:{},show:{type:Boolean}},emits:["delete"],setup(e){const t=e,n=ae(null),r=()=>{const c=vt.getScreenByPosition(t.scenePos.localPos,t.scenePos.modelId);c!=null&&c.trueSide?n.value={left:c.pos.x+"px",top:c.pos.y+"px"}:n.value=null};Gp(()=>(vt.sceneBus.on("cameraChange",r),()=>{vt.sceneBus.off("cameraChange",r)})),Ke(r);const i=Ic(t.scenePos.modelId);i&&Le(i,r,{deep:!0});const a=ue(()=>!~l.value&&(u.value||ot.showTaggingPositions.has(t.scenePos))),s=ue(()=>Xw(t.tagging.styleId)),l=ae(-1),u=ae(!1),f=ue(()=>t.tagging.images.map(c=>({type:t.tagging.type,url:typeof c=="string"?c:c.url}))),p=()=>{ot.showTaggingPositions.has(t.scenePos)?ot.showTaggingPositions.delete(t.scenePos):ot.showTaggingPositions.add(t.scenePos)};return(c,d)=>{const h=mt("ui-tip"),_=mt("QuillEditor"),b=mt("ui-icon");return n.value?(se(),he("div",{key:0,class:$e(["hot-item pc",{active:a.value}]),style:it(n.value),onMouseenter:d[5]||(d[5]=E=>u.value=!0),onMouseleave:d[6]||(d[6]=E=>u.value=!1)},[X(h,{tip:c.tagging.title,foreShow:"",tipV:"top",class:"tag-tip"},{default:De(()=>[s.value?(se(),he("img",{key:0,class:"tag-img",src:xe(J_)(xe(tN)(s.value.icon)),onClick:p},null,8,I4)):Ee("",!0)]),_:1},8,["tip"]),ve("div",{onClick:d[4]||(d[4]=hc(()=>{},["stop"]))},[X(Nu,{class:"hot-bubble pc",show:a.value,type:"left",level:"center"},{default:De(()=>[ve("div",N4,[ve("h2",null,Re(c.tagging.title),1),ve("div",R4,[ve("div",$4,[X(_,{readOnly:"",theme:"snow",content:c.tagging.desc,"onUpdate:content":d[0]||(d[0]=E=>c.tagging.desc=E),contentType:"html",enable:!1},null,8,["content"])]),ve("p",null,[M4,st(Re(c.tagging.part),1)]),ve("p",null,[L4,st(Re(c.tagging.method),1)]),ve("p",null,[F4,st(Re(c.tagging.mtype),1)]),ve("p",null,[j4,st(Re(c.tagging.cat),1)]),ve("p",null,[D4,st(Re(c.tagging.tsms),1)]),ve("p",null,[B4,st(Re(c.tagging.time),1)]),ve("p",null,[q4,st(Re(c.tagging.principal),1)])]),X(g4,{hot:c.tagging,onPull:d[1]||(d[1]=E=>l.value=E),"in-full":!0},null,8,["hot"]),xe(Qs).currentRoute.value.name===xe(Ie).tagging?(se(),he("div",H4,[ve("span",{onClick:d[2]||(d[2]=E=>c.$emit("delete")),class:"fun-ctrl"},[X(b,{type:"del"}),st(" \u5220\u9664 ")])])):Ee("",!0)])]),_:1},8,["show"]),~l.value?(se(),We(k4,{key:0,onClose:d[3]||(d[3]=E=>l.value=-1),current:l.value,items:f.value},null,8,["current","items"])):Ee("",!0)])],38)):Ee("",!0)}}});const V4=Et(U4,[["__scopeId","data-v-336e25a0"]]),z4=Ce({__name:"list",props:{tagging:{}},setup(e){const t=e,n=ue(()=>kc(t.tagging)),r=i=>{const a=wn.value.indexOf(i);wn.value.splice(a,1)};return(i,a)=>(se(!0),he(Pe,null,Gn(n.value,(s,l)=>(se(),he(Pe,{key:s.id},[xe(tE)(s)?(se(),We(V4,{onDelete:u=>r(s),tagging:i.tagging,"scene-pos":s,key:s.id},null,8,["onDelete","tagging","scene-pos"])):Ee("",!0)],64))),128))}});let Tn=!1;const Du=e=>{Tn=!0,e(),Qe(()=>Tn=!1)},W4={opacityRange:{min:0,max:100,step:.1},bottomRange:{min:-30,max:70,step:.1},scaleRange:{min:0,max:200,step:.1}},IE=yt(new WeakMap),er=e=>e&&IE.get(qe(e)),G4=(e,t)=>{var i;const{added:n,deleted:r}=pc(e,t);for(const a of n){if(er(a))continue;if(a.status!==Ac.SUCCESS){a.error=!0,a.loaded=!0;continue}const s=qe(a);let l;try{l=vt.addModel({...s,...W4,mode:Ie.signModel===$u.value?"single":"many",isDynamicAdded:ju.value.some(f=>s.id===f),type:[rt.SWSS,rt.SWYDSS].includes(a.type)?"laser":a.modelType,url:([rt.SWSS,rt.SWYDSS].includes(a.type)||a.url)&&a.url,fromType:a.type})}catch(f){console.error("\u6A21\u578B\u52A0\u8F7D\u5931\u8D25",f),a.error=!0;return}IE.set(s,l);let u;l.bus.on("transformChanged",f=>{clearTimeout(u),u=setTimeout(()=>{f={...f},f.rotation&&(f.rotation={x:gi(f.rotation.x,5),y:gi(f.rotation.y,5),z:gi(f.rotation.z,5)}),f.position&&(f.position={x:gi(f.position.x,5),y:gi(f.position.y,5),z:gi(f.position.z,5)}),delete f.bottom,f.scale&&(f.scale=gi(f.scale,2));const p=Object.keys(f),c={};for(const d of p)c[d]=a[d];Oa(c,f)&&Du(()=>Object.assign(a,f))},16)}),l.bus.on("changeSelect",f=>{Du(()=>{ot.currentModel===a&&!f?ot.currentModel=null:ot.currentModel!==a&&f&&(ot.currentModel=a)})}),z_(),l.bus.on("loadDone",()=>{a.loaded=!0,Ru()}),l.bus.on("loadError",()=>{a.error=!0,a.show=!1,ot.showModelsMap.delete(a),Ru()}),l.bus.on("loadProgress",f=>a.progress=f)}for(const a of r)console.error("\u9500\u6BC1",a),(i=er(a))==null||i.destroy()},K4=e=>{const t=()=>Je.value.filter(n=>er(n)||Ns(n).value);Oc(t,(n,r)=>{G4(n,r)}),G_(t,n=>{const r=Le(()=>n.loaded,i=>{if(i){const a=Ns(n);Le(()=>n.bottom,()=>{var s;return Tn||((s=er(n))==null?void 0:s.changeBottom(n.bottom))}),Le(()=>n.opacity,()=>{var s;return Tn||((s=er(n))==null?void 0:s.changeOpacity(n.opacity))}),Le(()=>n.scale,()=>{var s;return Tn||((s=er(n))==null?void 0:s.changeScale(n.scale))}),Le(()=>n.position,()=>{var s;Tn||(s=er(n))==null||s.changePosition(n.position)}),Le(()=>n.rotation,()=>{var s;Tn||(s=er(n))==null||s.changeRotation(n.rotation)}),Le(()=>a.value,()=>{const s=er(n);!Tn&&s&&(s.changeSelect(!1),s.changeShow(a.value))},{immediate:!0}),Le(()=>ot.currentModel===n,s=>{var l;Tn||console.log(n.title,s,er(n)),Tn||((l=er(n))==null||l.changeSelect(s))}),r()}})})},Y4=e=>{const t=()=>Un.value,n=new WeakMap;Oc(t,(r,i)=>{const{added:a,deleted:s}=pc(r,i);for(const l of a)n.set(qe(l),W_(e,z4,{tagging:l}));for(const l of s){const u=n.get(qe(l));u&&u()}})},bh=yt(new WeakMap),Ll=e=>e&&bh.get(qe(e)),VV=(e,t)=>{const n=t.type===eo.area?e.getArea():e.getDistance();return gi(n.value,2).toString()},X4=(e,t)=>{e.bus.on("update",([n,r])=>{Du(()=>t.positions=n.map((i,a)=>({point:i,modelId:r[a]})))}),e.bus.on("highlight",n=>Du(()=>t.selected=n))},Z4=e=>{const t=()=>Sr.value.filter($M);Oc(t,(n,r)=>{const{added:i,deleted:a}=pc(n,r);for(const s of i){const l=e.drawMeasure(s.type,s.positions.map(u=>({...u.point})),s.positions.map(u=>u.modelId));l.destroy&&(bh.set(qe(s),l),X4(l,s))}for(const s of a){const l=Ll(s);l&&l.destroy(),bh.delete(qe(s))}}),G_(t,n=>{Le(()=>n.selected,(r=!1)=>{var i;return Tn||((i=Ll(n))==null?void 0:i.changeSelect(r))}),Le(()=>n.positions,r=>{var i;return Tn||((i=Ll(n))==null?void 0:i.setPositions(r.map(a=>({...a.point})),r.map(a=>a.modelId)))}),Le(()=>ot.showMeasures,r=>{if(!Tn){const i=Ll(n);r?i==null||i.show():i==null||i.hide()}},{immediate:!0})})},J4=async e=>{const t=so([Y_.push(ae("full")),X_.push(ae(!1))]);let n=!1;try{await document.documentElement.requestFullscreen(),n=!0}catch{}const r=()=>document.fullscreenElement||e(),i=a=>a.key=="Escape"&&e();return n?(document.addEventListener("fullscreenchange",r),document.addEventListener("fullscreenerror",e)):document.addEventListener("keyup",i),()=>{t(),n?(document.fullscreenElement&&document.exitFullscreen(),document.removeEventListener("fullscreenchange",r),document.removeEventListener("fullscreenerror",e)):document.removeEventListener("keyup",i)}},Q4=async e=>{let t;try{if(!e.recoveryContent)throw"\u6CA1\u6709recovery";t=JSON.parse(e.recoveryContent)}catch{return()=>{}}const n=JSON.parse(JSON.stringify(Je.value)),r=Je.value.map(a=>ot.showModelsMap.get(a));console.error(n,t);const i=async a=>{for(let s=0;su===a[s].modelId);~l?(Object.assign(Je.value[l],a[s]),ot.showModelsMap.set(qe(Je.value[l]),a[s].viewShow)):(Je.value.push(a[s]),ot.showModelsMap.set(qe(a[s]),a[s].viewShow))}for(let s=0;su===Je.value[s].modelId)||(Je.value.splice(s,1),s--);await K_(100),await new Promise(s=>{const l=Ke(()=>{Nc.value&&(setTimeout(()=>l()),s())})})};for(let a=0;al===Je.value[a].modelId)||t.push({...Je.value[a],viewShow:!1});return await i(t),()=>i(n.map((a,s)=>({...a,viewShow:r[s]})))};var eL=(e=>(e[e.ing=1]="ing",e[e.stop=0]="stop",e[e.ready=2]="ready",e))(eL||{});const Do=ae(0);let _h;const zV=async(e,t,n=!1)=>{const r=av(e);if(Do.value)throw new Error("\u5BFC\u89C8\u6B63\u5728\u64AD\u653E");Do.value=2,_h=await Q4(e),Do.value=1;const i=vt.enterSceneGuide(r);t&&i.bus.on("changePoint",t);const a=Yg,s=!n&&Zp.value?null:await J4(a);s||(Pn.on("leave",a,{last:!0}),Pn.on("save",a,{last:!0})),i.play();const l=[new Promise(u=>i.bus.on("playComplete",u)),new Promise(u=>{const f=Le(Do,()=>{Do.value||(u(),i.pause(),f())})})];await Promise.race(l),Yg(),s?s():(Pn.off("leave",a),Pn.off("save",a)),i.clear(),i.bus.off("changePoint")},Yg=()=>{console.error("pause?"),Do.value=0,_h&&_h()},tL=e=>{K4();const t=Ke(()=>{var n;Nc.value&&Xt.value&&(Y4(e),Z4(vt),(n=Xt.value)!=null&&n.pose&&vt.comeTo(Xt.value.pose),nL(Xt.value.back,Xt.value.backType,{scale:Xt.value.scale,rotate:Xt.value.rotate}),rL(Xt.value.mapOpen,Xt.value.mapType),Ke(()=>{vt.setCameraFov&&vt.setCameraFov(Xt.value.fov)}),document.querySelector("#direction").style.display=Xt.value.openCompass?"block":"none",Qe(()=>t()))})},nL=(e,t,n={scale:1,rotate:0})=>{var r,i,a;if(document.querySelector("#scene-map").style.display="none",t===Lu.map){if(!((r=lo.value.tmProject)!=null&&r.latlng))return;const s=(i=lo.value.tmProject)==null?void 0:i.latlng.split(",").map(l=>Number(l));document.querySelector("#scene-map").style.display="block",vt.enableMap&&vt.enableMap(document.querySelector("#scene-map"),s),vt.switchMapType&&vt.switchMapType(e)}else t!==Lu.icon?(a=Xt.value)!=null&&a.back&&vt.setBackdrop(e,t,n):vt.setBackdrop("none",t,{scale:1,rotate:0})};let Xg=!1;const rL=(e,t="satellite")=>{var n,r;if(!((n=lo.value.tmProject)!=null&&n.latlng)){document.querySelector("#scene-map").style.display="none";return}if(e)document.querySelector("#scene-map").style.display="block";else{document.querySelector("#scene-map").style.display="none";return}if(!Xg){const i=(r=lo.value.tmProject)==null?void 0:r.latlng.split(",").map(a=>Number(a));console.log("open map"),vt.enableMap&&vt.enableMap(document.querySelector("#scene-map"),i),Xg=!0}vt.switchMapType&&vt.switchMapType(t)},iL=e=>{const t=getComputedStyle(e);["relative","absolute","fixed"].includes(t.position)||(e.style.position="relative");const r=document.createElement("div");return r.style.cssText=` position: absolute; left: 0; right: 0; top: 0; bottom: 0; pointer-events: none; z-index:101 `,e.appendChild(r),r},oL=async e=>{await l4(e),tL(iL(e.layout))};async function aL(e,t){if(console.log(e,t),e===kn)return yh||await oL({layout:t}),Zg(kn);{const n=t,r=await new Promise((i,a)=>{const s=()=>{i(n.contentWindow),u()},l=f=>{a(f),u()},u=()=>{n.removeEventListener("load",s),n.removeEventListener("error",l)};n.addEventListener("load",s),n.addEventListener("error",l)});if(!r)throw new Error("\u573A\u666F\u52A0\u8F7D\u5931\u8D25");return await Zg(e,r)}}const Fl=(e,t)=>new Promise(n=>{const r=()=>{t in e?n(e[t]):setTimeout(r,6)};r()}),sL=new Promise(e=>{const t=Ke(()=>{Nc.value&&(e(),Qe(()=>t()))})});async function Zg(e,t){const n=e===kn?kn:e.type,r={[kn]:{getSDK:async()=>(await sL,vt),expose:{async getView(){const a=await i.screenshot(260,160),l=await(await fetch(a)).blob(),u=i.getPose();return{image:l,flyData:JSON.stringify(u)}},async setView(a){const s=JSON.parse(a);i.comeTo({dur:300,...s})}}},[rt.SWKK]:{getSDK:async()=>{const a=await Fl(t,"__sdk");return a.Scene.loaded||await new Promise(s=>a.Scene.on("loaded",s)),a},expose:{async getView(){const a=i.Camera.getPose();return{image:(await i.Camera.screenshot([{width:260,height:160,name:"2k"}],!0))[0].data,flyData:JSON.stringify(a)}},async setView(a){const s=JSON.parse(a);i.Camera.setPose({dur:300,...s})}}},[rt.SWSS]:{getSDK:async()=>(await Fl(t,"laserLoaded"),await Fl(t,"__sdk")),expose:{async getView(){const a=await i.scene.screenshot(260,160),l=await(await fetch(a.dataUrl)).blob(),u=await i.scene.getPose(),f=i.customMap.mode;return{image:l,flyData:JSON.stringify({pose:u,mode:f})}},async setView(a){const{pose:s,mode:l}=JSON.parse(a);i.customMap.mode=l,i.scene.setPose(s,300)}}}};if(r[rt.SWYDSS]=r[rt.SWSS],r[rt.SWYDMX]=r[rt.SWSSMX]=r[rt.SWKJ]=r[rt.SWKK],r[rt.SWMX]={getSDK:async()=>await Fl(t,"__sdk"),expose:r[kn].expose},!(n in r))throw new Error("\u4E0D\u652F\u6301\u8BE5\u7C7B\u578B\u573A\u666F\uFF01");const i=await Promise.race([K_(1e5).then(()=>Promise.reject(new Error("\u52A0\u8F7D\u8D85\u65F6"))),r[n].getSDK()]);return r[n].expose}const lL=()=>{const e=Ki.type;let t=null;return{typePromise:new Promise((r,i)=>{t=Ke(()=>{Ki.type!==e&&(i(new Error("\u5F53\u524D\u6A21\u578B\u672A\u52A0\u8F7D\u5B8C\u5DF2\u5207\u6362\u5230\u4E0B\u4E2A")),t())})}),typeCleanup:t}},uL=Ce({name:"model",setup(){const e=ue(()=>Ki.type!==kn&&Ki.type),t=ae(""),n=a=>{a!==t.value&&setTimeout(()=>{var l,u;const s=(u=(l=i.value)==null?void 0:l.contentWindow)==null?void 0:u.beforeDestroy;if(s){try{s()}catch(f){console.error(f)}t.value="",setTimeout(()=>t.value=a,300)}else t.value=a})};Ke(()=>{if(!e.value)return n("");const a=e.value.type,s=window.offline?{[rt.SWKK]:`/swkk/spg.html?m=${e.value.num}`,[rt.SWKJ]:`/swkk/spg.html?m=${e.value.num}`,[rt.SWSS]:`/swss/offline.html?m=${e.value.num}`,[rt.SWSSMX]:`/swkk/spg.html?m=${e.value.num}`,[rt.SWMX]:`offline.html?caseId=${He.caseId}&app=${He.app}&modelId=${e.value.num}&share=1#sign-model`,[rt.SWYDSS]:`/swss/offline.html?m=${e.value.num}`,[rt.SWYDMX]:`/swkk/spg.html?m=${e.value.num}`}:{[rt.SWKK]:`/swkk/spg.html?m=${e.value.num}`,[rt.SWKJ]:`/swkk/spg.html?m=${e.value.num}`,[rt.SWSS]:`/swss/index.html?m=${e.value.num}`,[rt.SWSSMX]:`/swkk/spg.html?m=${e.value.num}`,[rt.SWMX]:`index.html?caseId=${He.caseId}&app=${He.app}&modelId=${e.value.num}&share=1#sign-model`,[rt.SWYDSS]:`/swss/index.html?m=${e.value.num}`,[rt.SWYDMX]:`/swkk/spg.html?m=${e.value.num}`};n(s[a])});const r=ae(),i=ae();return Le(()=>[Ki.type,t.value],async([a,s],l,u)=>{if(a!==kn&&!s)return;const f=Ki.callback;await Qe();const{typePromise:p,typeCleanup:c}=lL(),d=aL(a,a===kn?r.value:i.value);let h=null,_=null;try{h=await Promise.race([p,d])}catch(b){_=b}c(),f&&f(h,_)},{immediate:!0,flush:"post"}),Le(()=>[e.value&&e.value.type,t.value],([a],s,l)=>{a===!1&&(console.log("\u624B\u52A8\u6E32\u67D3\uFF01"),setTimeout(()=>{window.viewer.setDisplay(!0)},100));const u=setInterval(async()=>{var d,h;let f;try{f=(h=(d=i.value)==null?void 0:d.contentWindow)==null?void 0:h.document}catch{clearInterval(u)}if(!f||!f.querySelector("div"))return;console.error(f,f.head);const p=f.head;if(clearInterval(u),window.iframeCreated&&window.iframeCreated(i.value),a===rt.SWSS){const _=document.createElement("style");_.type="text/css";var c=document.createTextNode(` .mode-tab > .model-mode-tab.strengthen { display: none !important; } `);_.appendChild(c),p.appendChild(_)}},16);l(()=>clearInterval(u))},{flush:"post",immediate:!0}),{iframeRef:i,full:ae("scene"),fuseRef:r,url:t}}});const cL=e=>(sc("data-v-5ff30eaf"),e=e(),lc(),e),fL=["src"],dL={class:"laser-layer"},hL=cL(()=>ve("div",{id:"direction"},null,-1));function pL(e,t,n,r,i,a){const s=mt("ui-icon");return se(),he(Pe,null,[e.url?(se(),he("iframe",{key:0,class:"external",src:e.url,ref:"iframeRef"},null,8,fL)):Ee("",!0),ro(ve("div",dL,[ve("div",{class:$e(["scene-canvas",{full:e.full==="scene"}]),ref:"fuseRef"},[e.full!=="scene"?(se(),he("span",{key:0,class:"taggle switch",onClick:t[0]||(t[0]=l=>e.full="scene")},[X(s,{type:"f-l",ctrl:""})])):Ee("",!0),hL],2),ve("div",{id:"scene-map",class:$e({full:e.full==="map"})},[e.full==="scene"?(se(),he("span",{key:0,class:"taggle switch",onClick:t[1]||(t[1]=l=>e.full="map")},[X(s,{type:"f-l",ctrl:""})])):Ee("",!0)],2)],512),[[ca,!e.url]])],64)}const vL=Et(uL,[["render",pL],["__scopeId","data-v-5ff30eaf"]]),kn=Symbol("fuse"),NE=ae(kn),Ki=yt({type:NE,callback:null}),WV=e=>e===kn?"\u878D\u5408\u573A\u666F":E$[e.type],GV=e=>{var t;return console.log(e),e===kn?"\u878D\u5408\u573A\u666F":(t=Yw.value.find(n=>n.num===e.num&&n.type===e.type))==null?void 0:t.name},mL=(()=>{let e,t;return n=>Oa(e,n)?(e=n,t=new Promise((r,i)=>{Ki.callback=(a,s)=>{s?i(s):r(a)},NE.value=n})):t})();let fd=!1;const KV=async e=>{fd||await new Promise(n=>setTimeout(n,10));const t=mL(e);if(!fd)if(hh.value)W_(hh.value,vL),fd=!0;else throw new Error("appEl \u672A\u521D\u59CB\u5316");return t},In=ae([]),YV=(e={})=>{const t={id:Ir(),title:"\u89C6\u56FE"+(In.value.length+1),cover:"https://4dkk.4dage.com/scene_view_data/KK-t-F8e5M46wcQ/images/floor_0.png?t=1659422513133?v=0&rnd=0.9219648338739086&x-oss-process=image/resize,m_fill,w_80,h_60/quality,q_70&rnd=0.25420557086595965",flyData:"",num:null,numType:null,fusionId:Je.value.length?Je.value[0].fusionId:-1,sort:Math.min(...In.value.map(n=>n.sort))-1,...e};return typeof e.fusionId=="number"?{...t,...e,fusionId:e.fusionId,num:null,numType:null}:e.num&&typeof e.numType=="number"?{...t,num:e.num,numType:e.numType,fusionId:null}:t},XV=e=>typeof e.fusionId=="number"?kn:{num:e.num,type:e.numType};let RE=[];const $E=()=>RE,ME=()=>{RE=In.value.map(e=>({...e}))},gL=oi(In,$E),ZV=async()=>{const e=await aM();Tc(()=>In.value=e),ME()},yL=ki(In,async e=>{const t=await Ri(e.cover);return await sM({...e,cover:t})}),bL=Ii(In,async e=>{const t=await Ri(e.cover);return await lM({...e,cover:t})}),_L=ii(In,e=>uM(e.id)),wL=kr(In,$E,{add:yL,delete:_L,update:bL}),JV=cr(In,{backup:ME,recovery:gL,save:async()=>{if(!In.value.every(e=>e.title))throw yn.warning("\u89C6\u56FE\u540D\u79F0\u4E0D\u53EF\u4E3A\u7A7A"),"\u89C6\u56FE\u540D\u79F0\u4E0D\u53EF\u4E3A\u7A7A";for(let e=0;eLE.value.filter(t=>t.filesTypeId===e.filesTypeId),ez=async()=>{LE.value=await fM()},EL=ae([]),tz=async()=>{EL.value=await cM()},Xt=ae(),FE=async()=>{Xt.value=await vM()},nz=async()=>{if(Xt.value){const e=await Ri(Xt.value.cover);await mM({...Xt.value,cover:e}),await FE()}},lo=ae(),xL=()=>G$().then(e=>lo.value=e);function _t(e){return _t=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},_t(e)}function SL(e,t){if(_t(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(_t(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jE(e){var t=SL(e,"string");return _t(t)=="symbol"?t:t+""}function ge(e,t,n){return(t=jE(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function re(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return typeof e=="function"?e(t):e!=null?e:n}function nt(){for(var e=[],t=0;t0},e.prototype.connect_=function(){!wh||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),qL?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!wh||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,i=BL.some(function(a){return!!~r.indexOf(a)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),qE=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof ma(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new XL(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof ma(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;!n.has(t)||(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(!!this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new ZL(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),UE=typeof WeakMap<"u"?new WeakMap:new BE,VE=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=HL.getInstance(),r=new JL(t,n,this);UE.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){VE.prototype[e]=function(){var t;return(t=UE.get(this))[e].apply(t,arguments)}});var QL=function(){return typeof Bu.ResizeObserver<"u"?Bu.ResizeObserver:VE}();function zE(e){if(Array.isArray(e))return e}function e5(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,s,l=[],u=!0,f=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(p){f=!0,i=p}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return l}}function Eh(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,r={},i=/;(?![^(]*\))/g,a=/:(.+)/;return _t(t)==="object"?t:(t.split(i).forEach(function(s){if(s){var l=s.split(a);if(l.length>1){var u=n?uv(l[0].trim()):l[0].trim();r[u]=l[1].trim()}}}),r)},iz=function(t,n){return t[n]!==void 0},C5=Symbol("skipFlatten"),ra=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=Array.isArray(t)?t:[t],i=[];return r.forEach(function(a){Array.isArray(a)?i.push.apply(i,Ct(e(a,n))):a&&a.type===Pe?a.key===C5?i.push(a):i.push.apply(i,Ct(e(a.children,n))):a&&zn(a)?n&&!QE(a)?i.push(a):n||i.push(a):E5(a)&&i.push(a)}),i},oz=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(zn(t))return t.type===Pe?n==="default"?ra(t.children):[]:t.children&&t.children[n]?ra(t.children[n](r)):[];var i=t.$slots[n]&&t.$slots[n](r);return ra(i)},xh=function(t){for(var n,r=(t==null||(n=t.vnode)===null||n===void 0?void 0:n.el)||t&&(t.$el||t);r&&!r.tagName;)r=r.nextSibling;return r},az=function(t){var n={};if(t.$&&t.$.vnode){var r=t.$.vnode.props||{};Object.keys(t.$props).forEach(function(l){var u=t.$props[l],f=RL(l);(u!==void 0||f in r)&&(n[l]=u)})}else if(zn(t)&&_t(t.type)==="object"){var i=t.props||{},a={};Object.keys(i).forEach(function(l){a[uv(l)]=i[l]});var s=t.type.props||{};Object.keys(s).forEach(function(l){var u=ML(s,a,l,a[l]);(u!==void 0||l in a)&&(n[l]=u)})}return n},sz=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,a=void 0;if(t.$){var s=t[n];if(s!==void 0)return typeof s=="function"&&i?s(r):s;a=t.$slots[n],a=i&&a?a(r):a}else if(zn(t)){var l=t.props&&t.props[n];if(l!==void 0&&t.props!==null)return typeof l=="function"&&i?l(r):l;t.type===Pe?a=t.children:t.children&&t.children[n]&&(a=t.children[n],a=i&&a?a(r):a)}return Array.isArray(a)&&(a=ra(a),a=a.length===1?a[0]:a,a=a.length===0?void 0:a),a};function lz(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n={};return e.$?n=re(re({},n),e.$attrs):n=re(re({},n),e.props),S5(n)[t?"onEvents":"events"]}function uz(e,t){var n=(zn(e)?e.props:e.$attrs)||{},r=n.style||{};if(typeof r=="string")r=O5(r,t);else if(t&&r){var i={};return Object.keys(r).forEach(function(a){return i[uv(a)]=r[a]}),i}return r}function QE(e){return e&&(e.type===Mt||e.type===Pe&&e.children.length===0||e.type===Kr&&e.children.trim()==="")}function Ta(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=[];return e.forEach(function(n){Array.isArray(n)?t.push.apply(t,Ct(n)):(n==null?void 0:n.type)===Pe?t.push.apply(t,Ct(Ta(n.children))):t.push(n)}),t.filter(function(n){return!QE(n)})}function ex(e){return Array.isArray(e)&&e.length===1&&(e=e[0]),e&&e.__v_isVNode&&_t(e.type)!=="symbol"}function cz(e,t){var n,r,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"default";return(n=t[i])!==null&&n!==void 0?n:(r=e[i])===null||r===void 0?void 0:r.call(e)}const T5=Ce({compatConfig:{MODE:3},name:"ResizeObserver",props:{disabled:Boolean,onResize:Function},emits:["resize"],setup:function(t,n){var r=n.slots,i=yt({width:0,height:0,offsetHeight:0,offsetWidth:0}),a=null,s=null,l=function(){s&&(s.disconnect(),s=null)},u=function(d){var h=t.onResize,_=d[0].target,b=_.getBoundingClientRect(),E=b.width,v=b.height,m=_.offsetWidth,y=_.offsetHeight,g=Math.floor(E),w=Math.floor(v);if(i.width!==g||i.height!==w||i.offsetWidth!==m||i.offsetHeight!==y){var x={width:g,height:w,offsetWidth:m,offsetHeight:y};Qt(i,x),h&&Promise.resolve().then(function(){h(re(re({},x),{},{offsetWidth:m,offsetHeight:y}),_)})}},f=zt(),p=function(){var d=t.disabled;if(d){l();return}var h=xh(f),_=h!==a;_&&(l(),a=h),!s&&h&&(s=new QL(u),s.observe(h))};return wt(function(){p()}),vo(function(){p()}),ur(function(){l()}),Le(function(){return t.disabled},function(){p()},{flush:"post"}),function(){var c;return(c=r.default)===null||c===void 0?void 0:c.call(r)[0]}}});var tx=function(t){return setTimeout(t,16)},nx=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(tx=function(t){return window.requestAnimationFrame(t)},nx=function(t){return window.cancelAnimationFrame(t)});var ny=0,dv=new Map;function rx(e){dv.delete(e)}function Dn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ny+=1;var n=ny;function r(i){if(i===0)rx(n),e();else{var a=tx(function(){r(i-1)});dv.set(n,a)}}return r(t),n}Dn.cancel=function(e){var t=dv.get(e);return rx(t),nx(t)};var Tr=function(){for(var t=arguments.length,n=new Array(t),r=0;r=0||(i[n]=e[n]);return i}function ay(e){return((t=e)!=null&&typeof t=="object"&&Array.isArray(t)===!1)==1&&Object.prototype.toString.call(e)==="[object Object]";var t}var hx=Object.prototype,px=hx.toString,D5=hx.hasOwnProperty,vx=/^\s*function (\w+)/;function sy(e){var t,n=(t=e==null?void 0:e.type)!==null&&t!==void 0?t:e;if(n){var r=n.toString().match(vx);return r?r[1]:""}return""}var uo=function(e){var t,n;return ay(e)!==!1&&typeof(t=e.constructor)=="function"&&ay(n=t.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1},B5=function(e){return e},sn=B5,$s=function(e,t){return D5.call(e,t)},q5=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},ga=Array.isArray||function(e){return px.call(e)==="[object Array]"},ya=function(e){return px.call(e)==="[object Function]"},Hu=function(e){return uo(e)&&$s(e,"_vueTypes_name")},mx=function(e){return uo(e)&&($s(e,"type")||["_vueTypes_name","validator","default","required"].some(function(t){return $s(e,t)}))};function pv(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function _o(e,t,n){var r;n===void 0&&(n=!1);var i=!0,a="";r=uo(e)?e:{type:e};var s=Hu(r)?r._vueTypes_name+" - ":"";if(mx(r)&&r.type!==null){if(r.type===void 0||r.type===!0||!r.required&&t===void 0)return i;ga(r.type)?(i=r.type.some(function(c){return _o(c,t,!0)===!0}),a=r.type.map(function(c){return sy(c)}).join(" or ")):i=(a=sy(r))==="Array"?ga(t):a==="Object"?uo(t):a==="String"||a==="Number"||a==="Boolean"||a==="Function"?function(c){if(c==null)return"";var d=c.constructor.toString().match(vx);return d?d[1]:""}(t)===a:t instanceof r.type}if(!i){var l=s+'value "'+t+'" should be of type "'+a+'"';return n===!1?(sn(l),!1):l}if($s(r,"validator")&&ya(r.validator)){var u=sn,f=[];if(sn=function(c){f.push(c)},i=r.validator(t),sn=u,!i){var p=(f.length>1?"* ":"")+f.join(` * `);return f.length=0,n===!1?(sn(p),i):p}}return i}function $n(e,t){var n=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get:function(){return this.required=!0,this}},def:{value:function(i){return i!==void 0||this.default?ya(i)||_o(this,i,!0)===!0?(this.default=ga(i)?function(){return[].concat(i)}:uo(i)?function(){return Object.assign({},i)}:i,this):(sn(this._vueTypes_name+' - invalid default value: "'+i+'"'),this):this}}}),r=n.validator;return ya(r)&&(n.validator=pv(r,n)),n}function Ar(e,t){var n=$n(e,t);return Object.defineProperty(n,"validate",{value:function(r){return ya(this.validator)&&sn(this._vueTypes_name+` - calling .validate() will overwrite the current custom validator function. Validator info: `+JSON.stringify(this)),this.validator=pv(r,this),this}})}function ly(e,t,n){var r,i,a=(r=t,i={},Object.getOwnPropertyNames(r).forEach(function(c){i[c]=Object.getOwnPropertyDescriptor(r,c)}),Object.defineProperties({},i));if(a._vueTypes_name=e,!uo(n))return a;var s,l,u=n.validator,f=dx(n,["validator"]);if(ya(u)){var p=a.validator;p&&(p=(l=(s=p).__original)!==null&&l!==void 0?l:s),a.validator=pv(p?function(c){return p.call(this,c)&&u.call(this,c)}:u,a)}return Object.assign(a,f)}function Lc(e){return e.replace(/^(?!\s*$)/gm," ")}var H5=function(){return Ar("any",{})},U5=function(){return Ar("function",{type:Function})},V5=function(){return Ar("boolean",{type:Boolean})},z5=function(){return Ar("string",{type:String})},W5=function(){return Ar("number",{type:Number})},G5=function(){return Ar("array",{type:Array})},K5=function(){return Ar("object",{type:Object})},Y5=function(){return $n("integer",{type:Number,validator:function(e){return q5(e)}})},X5=function(){return $n("symbol",{validator:function(e){return typeof e=="symbol"}})};function Z5(e,t){if(t===void 0&&(t="custom validation failed"),typeof e!="function")throw new TypeError("[VueTypes error]: You must provide a function as argument");return $n(e.name||"<>",{validator:function(n){var r=e(n);return r||sn(this._vueTypes_name+" - "+t),r}})}function J5(e){if(!ga(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");var t='oneOf - value should be one of "'+e.join('", "')+'".',n=e.reduce(function(r,i){if(i!=null){var a=i.constructor;r.indexOf(a)===-1&&r.push(a)}return r},[]);return $n("oneOf",{type:n.length>0?n:void 0,validator:function(r){var i=e.indexOf(r)!==-1;return i||sn(t),i}})}function Q5(e){if(!ga(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");for(var t=!1,n=[],r=0;r0&&n.some(function(u){return s.indexOf(u)===-1})){var l=n.filter(function(u){return s.indexOf(u)===-1});return sn(l.length===1?'shape - required property "'+l[0]+'" is not defined.':'shape - required properties "'+l.join('", "')+'" are not defined.'),!1}return s.every(function(u){if(t.indexOf(u)===-1)return a._vueTypes_isLoose===!0||(sn('shape - shape definition does not include a "'+u+'" property. Allowed keys: "'+t.join('", "')+'".'),!1);var f=_o(e[u],i[u],!0);return typeof f=="string"&&sn('shape - "'+u+`" property validation error: `+Lc(f)),f===!0})}});return Object.defineProperty(r,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(r,"loose",{get:function(){return this._vueTypes_isLoose=!0,this}}),r}var gr=function(){function e(){}return e.extend=function(t){var n=this;if(ga(t))return t.forEach(function(c){return n.extend(c)}),this;var r=t.name,i=t.validate,a=i!==void 0&&i,s=t.getter,l=s!==void 0&&s,u=dx(t,["name","validate","getter"]);if($s(this,r))throw new TypeError('[VueTypes error]: Type "'+r+'" already defined');var f,p=u.type;return Hu(p)?(delete u.type,Object.defineProperty(this,r,l?{get:function(){return ly(r,p,u)}}:{value:function(){var c,d=ly(r,p,u);return d.validator&&(d.validator=(c=d.validator).bind.apply(c,[d].concat([].slice.call(arguments)))),d}})):(f=l?{get:function(){var c=Object.assign({},u);return a?Ar(r,c):$n(r,c)},enumerable:!0}:{value:function(){var c,d,h=Object.assign({},u);return c=a?Ar(r,h):$n(r,h),h.validator&&(c.validator=(d=h.validator).bind.apply(d,[c].concat([].slice.call(arguments)))),c},enumerable:!0},Object.defineProperty(this,r,f))},cx(e,null,[{key:"any",get:function(){return H5()}},{key:"func",get:function(){return U5().def(this.defaults.func)}},{key:"bool",get:function(){return V5().def(this.defaults.bool)}},{key:"string",get:function(){return z5().def(this.defaults.string)}},{key:"number",get:function(){return W5().def(this.defaults.number)}},{key:"array",get:function(){return G5().def(this.defaults.array)}},{key:"object",get:function(){return K5().def(this.defaults.object)}},{key:"integer",get:function(){return Y5().def(this.defaults.integer)}},{key:"symbol",get:function(){return X5()}}]),e}();function gx(e){var t;return e===void 0&&(e={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),(t=function(n){function r(){return n.apply(this,arguments)||this}return fx(r,n),cx(r,null,[{key:"sensibleDefaults",get:function(){return uu({},this.defaults)},set:function(i){this.defaults=i!==!1?uu({},i!==!0?i:e):{}}}]),r}(gr)).defaults=uu({},e),t}gr.defaults={},gr.custom=Z5,gr.oneOf=J5,gr.instanceOf=t3,gr.oneOfType=Q5,gr.arrayOf=e3,gr.objectOf=n3,gr.shape=r3,gr.utils={validate:function(e,t){return _o(t,e,!0)===!0},toType:function(e,t,n){return n===void 0&&(n=!1),n?Ar(e,t):$n(e,t)}};(function(e){function t(){return e.apply(this,arguments)||this}return fx(t,e),t})(gx());var yx=gx({func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0});yx.extend([{name:"looseBool",getter:!0,type:Boolean,default:void 0},{name:"style",getter:!0,type:[String,Object],default:void 0},{name:"VueNode",getter:!0,type:null}]);function fz(e){return e.default=void 0,e}const ze=yx;var i3=["image","description","imageStyle","class"],bx=X(F5,null,null),_x=X(j5,null,null),Aa=function(t,n){var r,i=n.slots,a=i===void 0?{}:i,s=n.attrs,l=Lt("empty",t),u=l.direction,f=l.prefixCls,p=f.value,c=re(re({},t),s),d=c.image,h=d===void 0?bx:d,_=c.description,b=_===void 0?((r=a.description)===null||r===void 0?void 0:r.call(a))||void 0:_,E=c.imageStyle,v=c.class,m=v===void 0?"":v,y=bo(c,i3);return X(sx,{componentName:"Empty",children:function(w){var x,O=typeof b<"u"?b:w.description,T=typeof O=="string"?O:"empty",P=null;return typeof h=="string"?P=X("img",{alt:T,src:h},null):P=h,X("div",re({class:nt(p,m,(x={},ge(x,"".concat(p,"-normal"),h===_x),ge(x,"".concat(p,"-rtl"),u.value==="rtl"),x))},y),[X("div",{class:"".concat(p,"-image"),style:E},[P]),O&&X("p",{class:"".concat(p,"-description")},[O]),a.default&&X("div",{class:"".concat(p,"-footer")},[Ta(a.default())])])}},null)};Aa.displayName="AEmpty";Aa.PRESENTED_IMAGE_DEFAULT=bx;Aa.PRESENTED_IMAGE_SIMPLE=_x;Aa.inheritAttrs=!1;Aa.props={prefixCls:String,image:ze.any,description:ze.any,imageStyle:{type:Object,default:void 0}};const Ya=ix(Aa);var o3=function(t){var n=Lt("empty",t),r=n.prefixCls,i=function(s){switch(s){case"Table":case"List":return X(Ya,{image:Ya.PRESENTED_IMAGE_SIMPLE},null);case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return X(Ya,{image:Ya.PRESENTED_IMAGE_SIMPLE,class:"".concat(r.value,"-small")},null);default:return X(Ya,null,null)}};return i(t.componentName)};function wx(e){return X(o3,{componentName:e},null)}var uy={};function a3(e,t){}function s3(e,t,n){!t&&!uy[n]&&(e(!1,n),uy[n]=!0)}function Ex(e,t){s3(a3,e,t)}const ia=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";Ex(e,"[antdv: ".concat(t,"] ").concat(n))};var Sh="internalMark",cu=Ce({compatConfig:{MODE:3},name:"ALocaleProvider",props:{locale:{type:Object},ANT_MARK__:String},setup:function(t,n){var r=n.slots;ia(t.ANT_MARK__===Sh,"LocaleProvider","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead");var i=yt({antLocale:re(re({},t.locale),{},{exist:!0}),ANT_MARK__:Sh});return St("localeData",i),Le(function(){return t.locale},function(){i.antLocale=re(re({},t.locale),{},{exist:!0})},{immediate:!0}),function(){var a;return(a=r.default)===null||a===void 0?void 0:a.call(r)}}});cu.install=function(e){return e.component(cu.name,cu),e};const l3=ix(cu);Tr("bottomLeft","bottomRight","topLeft","topRight");var dz=function(t){return t!==void 0&&(t==="topLeft"||t==="topRight")?"slide-down":"slide-up"},xx=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=re(t?{name:t,appear:!0,enterFromClass:"".concat(t,"-enter ").concat(t,"-enter-prepare"),enterActiveClass:"".concat(t,"-enter ").concat(t,"-enter-prepare"),enterToClass:"".concat(t,"-enter ").concat(t,"-enter-active"),leaveFromClass:" ".concat(t,"-leave"),leaveActiveClass:"".concat(t,"-leave ").concat(t,"-leave-active"),leaveToClass:"".concat(t,"-leave ").concat(t,"-leave-active")}:{css:!1},n);return r},Sx=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=re(t?{name:t,appear:!0,appearActiveClass:"".concat(t),appearToClass:"".concat(t,"-appear ").concat(t,"-appear-active"),enterFromClass:"".concat(t,"-appear ").concat(t,"-enter ").concat(t,"-appear-prepare ").concat(t,"-enter-prepare"),enterActiveClass:"".concat(t),enterToClass:"".concat(t,"-enter ").concat(t,"-appear ").concat(t,"-appear-active ").concat(t,"-enter-active"),leaveActiveClass:"".concat(t," ").concat(t,"-leave"),leaveToClass:"".concat(t,"-leave-active")}:{css:!1},n);return r},Uu=function(t,n,r){return r!==void 0?r:"".concat(t,"-").concat(n)};const u3=Ce({name:"Notice",inheritAttrs:!1,props:["prefixCls","duration","updateMark","noticeKey","closeIcon","closable","props","onClick","onClose","holder","visible"],setup:function(t,n){var r=n.attrs,i=n.slots,a,s=ue(function(){return t.duration===void 0?1.5:t.duration}),l=function(){s.value&&(a=setTimeout(function(){f()},s.value*1e3))},u=function(){a&&(clearTimeout(a),a=null)},f=function(d){d&&d.stopPropagation(),u();var h=t.onClose,_=t.noticeKey;h&&h(_)},p=function(){u(),l()};return wt(function(){l()}),ur(function(){u()}),Le([s,function(){return t.updateMark},function(){return t.visible}],function(c,d){var h=Zr(c,3),_=h[0],b=h[1],E=h[2],v=Zr(d,3),m=v[0],y=v[1],g=v[2];(_!==m||b!==y||E!==g&&g)&&p()},{flush:"post"}),function(){var c,d,h=t.prefixCls,_=t.closable,b=t.closeIcon,E=b===void 0?(c=i.closeIcon)===null||c===void 0?void 0:c.call(i):b,v=t.onClick,m=t.holder,y=r.class,g=r.style,w="".concat(h,"-notice"),x=Object.keys(r).reduce(function(T,P){return(P.startsWith("data-")||P.startsWith("aria-")||P==="role")&&(T[P]=r[P]),T},{}),O=X("div",re({class:nt(w,y,ge({},"".concat(w,"-closable"),_)),style:g,onMouseenter:u,onMouseleave:l,onClick:v},x),[X("div",{class:"".concat(w,"-content")},[(d=i.default)===null||d===void 0?void 0:d.call(i)]),_?X("a",{tabindex:0,onClick:f,class:"".concat(w,"-close")},[E||X("span",{class:"".concat(w,"-close-x")},null)]):null]);return m?X(ni,{to:m},{default:function(){return O}}):O}}});var c3=["name","getContainer","appContext","prefixCls","rootPrefixCls","transitionName","hasTransitionName"],cy=0,f3=Date.now();function fy(){var e=cy;return cy+=1,"rcNotification_".concat(f3,"_").concat(e)}var Oh=Ce({name:"Notification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon"],setup:function(t,n){var r=n.attrs,i=n.expose,a=n.slots,s=new Map,l=ae([]),u=ue(function(){var c=t.prefixCls,d=t.animation,h=d===void 0?"fade":d,_=t.transitionName;return!_&&h&&(_="".concat(c,"-").concat(h)),Sx(_)}),f=function(d,h){var _=d.key||fy(),b=re(re({},d),{},{key:_}),E=t.maxCount,v=l.value.map(function(y){return y.notice.key}).indexOf(_),m=l.value.concat();v!==-1?m.splice(v,1,{notice:b,holderCallback:h}):(E&&l.value.length>=E&&(b.key=m[0].notice.key,b.updateMark=fy(),b.userPassKey=_,m.shift()),m.push({notice:b,holderCallback:h})),l.value=m},p=function(d){l.value=l.value.filter(function(h){var _=h.notice,b=_.key,E=_.userPassKey,v=E||b;return v!==d})};return i({add:f,remove:p,notices:l}),function(){var c,d,h=t.prefixCls,_=t.closeIcon,b=_===void 0?(c=a.closeIcon)===null||c===void 0?void 0:c.call(a,{prefixCls:h}):_,E=l.value.map(function(m,y){var g=m.notice,w=m.holderCallback,x=y===l.value.length-1?g.updateMark:void 0,O=g.key,T=g.userPassKey,P=g.content,A=re(re(re({prefixCls:h,closeIcon:typeof b=="function"?b({prefixCls:h}):b},g),g.props),{},{key:O,noticeKey:T||O,updateMark:x,onClose:function(C){var I;p(C),(I=g.onClose)===null||I===void 0||I.call(g)},onClick:g.onClick});return w?X("div",{key:O,class:"".concat(h,"-hook-holder"),ref:function(C){typeof O>"u"||(C?(s.set(O,C),w(C,A)):s.delete(O))}},null):X(u3,A,{default:function(){return[typeof P=="function"?P({prefixCls:h}):P]}})}),v=(d={},ge(d,h,1),ge(d,r.class,!!r.class),d);return X("div",{class:v,style:r.style||{top:"65px",left:"50%"}},[X(K1,re({tag:"div"},u.value),{default:function(){return[E]}})])}}});Oh.newInstance=function(t,n){var r=t||{},i=r.name,a=i===void 0?"notification":i,s=r.getContainer,l=r.appContext,u=r.prefixCls,f=r.rootPrefixCls,p=r.transitionName,c=r.hasTransitionName,d=bo(r,c3),h=document.createElement("div");if(s){var _=s();_.appendChild(h)}else document.body.appendChild(h);var b=Ce({compatConfig:{MODE:3},name:"NotificationWrapper",setup:function(m,y){var g=y.attrs,w=ae();return wt(function(){n({notice:function(O){var T;(T=w.value)===null||T===void 0||T.add(O)},removeNotice:function(O){var T;(T=w.value)===null||T===void 0||T.remove(O)},destroy:function(){Rn(null,h),h.parentNode&&h.parentNode.removeChild(h)},component:w})}),function(){var x=vn,O=x.getPrefixCls(a,u),T=x.getRootPrefixCls(f,O),P=c?p:"".concat(T,"-").concat(p);return X(aa,re(re({},x),{},{notUpdateGlobalConfig:!0,prefixCls:T}),{default:function(){return[X(Oh,re(re({ref:w},g),{},{prefixCls:O,transitionName:P}),null)]}})}}}),E=X(b,d);E.appContext=l||E.appContext,Rn(E,h)};const Ox=Oh;var d3={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const h3=d3;function Vt(e,t){p3(e)&&(e="100%");var n=v3(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function jl(e){return Math.min(1,Math.max(0,e))}function p3(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function v3(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Cx(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Dl(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Yi(e){return e.length===1?"0"+e:String(e)}function m3(e,t,n){return{r:Vt(e,255)*255,g:Vt(t,255)*255,b:Vt(n,255)*255}}function dy(e,t,n){e=Vt(e,255),t=Vt(t,255),n=Vt(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a=0,s=0,l=(r+i)/2;if(r===i)s=0,a=0;else{var u=r-i;switch(s=l>.5?u/(2-r-i):u/(r+i),r){case e:a=(t-n)/u+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function g3(e,t,n){var r,i,a;if(e=Vt(e,360),t=Vt(t,100),n=Vt(n,100),t===0)i=n,a=n,r=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;r=dd(l,s,e+1/3),i=dd(l,s,e),a=dd(l,s,e-1/3)}return{r:r*255,g:i*255,b:a*255}}function Ch(e,t,n){e=Vt(e,255),t=Vt(t,255),n=Vt(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a=0,s=r,l=r-i,u=r===0?0:l/r;if(r===i)a=0;else{switch(r){case e:a=(t-n)/l+(t>16,g:(e&65280)>>8,b:e&255}}var Ah={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Bo(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,a=null,s=!1,l=!1;return typeof e=="string"&&(e=S3(e)),typeof e=="object"&&(Br(e.r)&&Br(e.g)&&Br(e.b)?(t=m3(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Br(e.h)&&Br(e.s)&&Br(e.v)?(r=Dl(e.s),i=Dl(e.v),t=y3(e.h,r,i),s=!0,l="hsv"):Br(e.h)&&Br(e.s)&&Br(e.l)&&(r=Dl(e.s),a=Dl(e.l),t=g3(e.h,r,a),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Cx(n),{ok:s,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var E3="[-\\+]?\\d+%?",x3="[-\\+]?\\d*\\.\\d+%?",Si="(?:".concat(x3,")|(?:").concat(E3,")"),hd="[\\s|\\(]+(".concat(Si,")[,|\\s]+(").concat(Si,")[,|\\s]+(").concat(Si,")\\s*\\)?"),pd="[\\s|\\(]+(".concat(Si,")[,|\\s]+(").concat(Si,")[,|\\s]+(").concat(Si,")[,|\\s]+(").concat(Si,")\\s*\\)?"),Qn={CSS_UNIT:new RegExp(Si),rgb:new RegExp("rgb"+hd),rgba:new RegExp("rgba"+pd),hsl:new RegExp("hsl"+hd),hsla:new RegExp("hsla"+pd),hsv:new RegExp("hsv"+hd),hsva:new RegExp("hsva"+pd),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function S3(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Ah[e])e=Ah[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Qn.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Qn.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Qn.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Qn.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Qn.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Qn.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Qn.hex8.exec(e),n?{r:On(n[1]),g:On(n[2]),b:On(n[3]),a:hy(n[4]),format:t?"name":"hex8"}:(n=Qn.hex6.exec(e),n?{r:On(n[1]),g:On(n[2]),b:On(n[3]),format:t?"name":"hex"}:(n=Qn.hex4.exec(e),n?{r:On(n[1]+n[1]),g:On(n[2]+n[2]),b:On(n[3]+n[3]),a:hy(n[4]+n[4]),format:t?"name":"hex8"}:(n=Qn.hex3.exec(e),n?{r:On(n[1]+n[1]),g:On(n[2]+n[2]),b:On(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Br(e){return Boolean(Qn.CSS_UNIT.exec(String(e)))}var vd=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=w3(t)),this.originalInput=t;var i=Bo(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:i.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,i,a=t.r/255,s=t.g/255,l=t.b/255;return a<=.03928?n=a/12.92:n=Math.pow((a+.055)/1.055,2.4),s<=.03928?r=s/12.92:r=Math.pow((s+.055)/1.055,2.4),l<=.03928?i=l/12.92:i=Math.pow((l+.055)/1.055,2.4),.2126*n+.7152*r+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Cx(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Ch(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Ch(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=dy(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=dy(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Th(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),b3(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(Vt(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(Vt(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Th(this.r,this.g,this.b,!1),n=0,r=Object.entries(Ah);n=0,a=!n&&i&&(t.startsWith("hex")||t==="name");return a?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=jl(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=jl(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=jl(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=jl(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),i=new e(t).toRgb(),a=n/100,s={r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a};return new e(s)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),i=360/n,a=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,a.push(new e(r));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,i=n.s,a=n.v,s=[],l=1/t;t--;)s.push(new e({h:r,s:i,v:a})),a=(a+l)%1;return s},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),i=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,i=[this],a=360/t,s=1;s=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Bl*t:Math.round(e.h)+Bl*t:r=n?Math.round(e.h)+Bl*t:Math.round(e.h)-Bl*t,r<0?r+=360:r>=360&&(r-=360),r}function gy(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-py*t:t===Ax?r=e.s+py:r=e.s+O3*t,r>1&&(r=1),n&&t===Tx&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function yy(e,t,n){var r;return n?r=e.v+C3*t:r=e.v-T3*t,r>1&&(r=1),Number(r.toFixed(2))}function Ms(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Bo(e),i=Tx;i>0;i-=1){var a=vy(r),s=ql(Bo({h:my(a,i,!0),s:gy(a,i,!0),v:yy(a,i,!0)}));n.push(s)}n.push(ql(r));for(var l=1;l<=Ax;l+=1){var u=vy(r),f=ql(Bo({h:my(u,l),s:gy(u,l),v:yy(u,l)}));n.push(f)}return t.theme==="dark"?A3.map(function(p){var c=p.index,d=p.opacity,h=ql(P3(Bo(t.backgroundColor||"#141414"),Bo(n[c]),d*100));return h}):n}var md={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},gd={},yd={};Object.keys(md).forEach(function(e){gd[e]=Ms(md[e]),gd[e].primary=gd[e][5],yd[e]=Ms(md[e],{theme:"dark",backgroundColor:"#141414"}),yd[e].primary=yd[e][5]});var by=[],Xa=[],k3="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function I3(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function N3(e,t){if(t=t||{},e===void 0)throw new Error(k3);var n=t.prepend===!0?"prepend":"append",r=t.container!==void 0?t.container:document.querySelector("head"),i=by.indexOf(r);i===-1&&(i=by.push(r)-1,Xa[i]={});var a;return Xa[i]!==void 0&&Xa[i][n]!==void 0?a=Xa[i][n]:(a=Xa[i][n]=I3(),n==="prepend"?r.insertBefore(a,r.childNodes[0]):r.appendChild(a)),e.charCodeAt(0)===65279&&(e=e.substr(1,e.length)),a.styleSheet?a.styleSheet.cssText+=e:a.textContent+=e,a}function _y(e){for(var t=1;t * { line-height: 1; } .anticon svg { display: inline-block; } .anticon::before { display: none; } .anticon .anticon-icon { display: block; } .anticon[tabindex] { cursor: pointer; } .anticon-spin::before, .anticon-spin { display: inline-block; -webkit-animation: loadingCircle 1s infinite linear; animation: loadingCircle 1s infinite linear; } @-webkit-keyframes loadingCircle { 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } @keyframes loadingCircle { 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } `,Ey=!1,M3=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:$3;Qe(function(){Ey||(typeof window<"u"&&window.document&&window.document.documentElement&&N3(t,{prepend:!0}),Ey=!0)})},L3=["icon","primaryColor","secondaryColor"];function F3(e,t){if(e==null)return{};var n=j3(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function j3(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function fu(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function t6(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}Ix("#1890ff");var ka=function(t,n){var r,i=Oy({},t,n.attrs),a=i.class,s=i.icon,l=i.spin,u=i.rotate,f=i.tabindex,p=i.twoToneColor,c=i.onClick,d=e6(i,K3),h=(r={anticon:!0},kh(r,"anticon-".concat(s.name),Boolean(s.name)),kh(r,a,a),r),_=l===""||!!l||s.name==="loading"?"anticon-spin":"",b=f;b===void 0&&c&&(b=-1,d.tabindex=b);var E=u?{msTransform:"rotate(".concat(u,"deg)"),transform:"rotate(".concat(u,"deg)")}:void 0,v=kx(p),m=Y3(v,2),y=m[0],g=m[1];return X("span",Oy({role:"img","aria-label":s.name},d,{onClick:c,class:h}),[X(vv,{class:_,icon:s,primaryColor:y,secondaryColor:g,style:E},null)])};ka.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String};ka.displayName="AntdIcon";ka.inheritAttrs=!1;ka.getTwoToneColor=G3;ka.setTwoToneColor=Ix;const Mn=ka;function Cy(e){for(var t=1;t=0;--q){var Y=this.tryEntries[q],K=Y.completion;if(Y.tryLoc==="root")return L("end");if(Y.tryLoc<=this.prev){var B=s.call(Y,"catchLoc"),j=s.call(Y,"finallyLoc");if(B&&j){if(this.prev=0;--L){var q=this.tryEntries[L];if(q.tryLoc<=this.prev&&s.call(q,"finallyLoc")&&this.prev=0;--N){var L=this.tryEntries[N];if(L.finallyLoc===R)return this.complete(L.completion,L.afterLoc),z(L),y}},catch:function(R){for(var N=this.tryEntries.length-1;N>=0;--N){var L=this.tryEntries[N];if(L.tryLoc===R){var q=L.completion;if(q.type==="throw"){var Y=q.arg;z(L)}return Y}}throw Error("illegal catch attempt")},delegateYield:function(R,N,L){return this.delegate={iterator:G(R),resultName:N,nextLoc:L},this.method==="next"&&(this.arg=r),y}},i}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(Ux);var du=Ux.exports(),Pi=du;try{regeneratorRuntime=du}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=du:Function("r","regeneratorRuntime = r")(du)}var O6={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"};const C6=O6;function Ny(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:Xx,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Zx,r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:"0px",top:t,bottom:"auto"};break;case"topRight":r={right:"0px",top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:"0px",top:"auto",bottom:n};break;default:r={right:"0px",top:"auto",bottom:n};break}return r}function H6(e,t){var n=e.prefixCls,r=e.placement,i=r===void 0?Jx:r,a=e.getContainer,s=a===void 0?Qx:a,l=e.top,u=e.bottom,f=e.closeIcon,p=f===void 0?eS:f,c=e.appContext,d=iF(),h=d.getPrefixCls,_=h("notification",n||Ih),b="".concat(_,"-").concat(i,"-").concat(Nh),E=Wi[b];if(E){Promise.resolve(E).then(function(m){t(m)});return}var v=nt("".concat(_,"-").concat(i),ge({},"".concat(_,"-rtl"),Nh===!0));Ox.newInstance({name:"notification",prefixCls:n||Ih,class:v,style:q6(i,l,u),appContext:c,getContainer:s,closeIcon:function(y){var g=y.prefixCls,w=X("span",{class:"".concat(g,"-close-x")},[ns(p,{},X(Kx,{class:"".concat(g,"-close-icon")},null))]);return w},maxCount:tS,hasTransitionName:!0},function(m){Wi[b]=m,t(m)})}var U6={success:zx,info:Wx,error:Gx,warning:Ov};function V6(e){var t=e.icon,n=e.type,r=e.description,i=e.message,a=e.btn,s=e.duration===void 0?Yx:e.duration;H6(e,function(l){l.notice({content:function(f){var p=f.prefixCls,c="".concat(p,"-notice"),d=null;if(t)d=function(){return X("span",{class:"".concat(c,"-icon")},[ns(t)])};else if(n){var h=U6[n];d=function(){return X(h,{class:"".concat(c,"-icon ").concat(c,"-icon-").concat(n)},null)}}return X("div",{class:d?"".concat(c,"-with-icon"):""},[d&&d(),X("div",{class:"".concat(c,"-message")},[!r&&d?X("span",{class:"".concat(c,"-message-single-line-auto-margin")},null):null,ns(i)]),X("div",{class:"".concat(c,"-description")},[ns(r)]),a?X("span",{class:"".concat(c,"-btn")},[ns(a)]):null])},duration:s,closable:!0,onClose:e.onClose,onClick:e.onClick,key:e.key,style:e.style||{},class:e.class})})}var Ls={open:V6,close:function(t){Object.keys(Wi).forEach(function(n){return Promise.resolve(Wi[n]).then(function(r){r.removeNotice(t)})})},config:B6,destroy:function(){Object.keys(Wi).forEach(function(t){Promise.resolve(Wi[t]).then(function(n){n.destroy()}),delete Wi[t]})}},z6=["success","info","warning","error"];z6.forEach(function(e){Ls[e]=function(t){return Ls.open(re(re({},t),{},{type:e}))}});Ls.warn=Ls.warning;const W6=Ls;function tl(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var G6="vc-util-key";function nS(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):G6}function Tv(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Fy(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!tl())return null;var r=document.createElement("style");if((t=n.csp)!==null&&t!==void 0&&t.nonce){var i;r.nonce=(i=n.csp)===null||i===void 0?void 0:i.nonce}r.innerHTML=e;var a=Tv(n),s=a.firstChild;return n.prepend&&a.prepend?a.prepend(r):n.prepend&&s?a.insertBefore(r,s):a.appendChild(r),r}var Rh=new Map;function K6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Tv(t);return Array.from(Rh.get(n).children).find(function(r){return r.tagName==="STYLE"&&r.getAttribute(nS(t))===e})}function Y6(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Tv(n);if(!Rh.has(r)){var i=Fy("",n),a=i.parentNode;Rh.set(r,a),a.removeChild(i)}var s=K6(t,n);if(s){var l,u;if((l=n.csp)!==null&&l!==void 0&&l.nonce&&s.nonce!==((u=n.csp)===null||u===void 0?void 0:u.nonce)){var f;s.nonce=(f=n.csp)===null||f===void 0?void 0:f.nonce}return s.innerHTML!==e&&(s.innerHTML=e),s}var p=Fy(e,n);return p.setAttribute(nS(n),t),p}const Av=function(e,t,n){Ex(e,"[ant-design-vue: ".concat(t,"] ").concat(n))};var X6="-ant-".concat(Date.now(),"-").concat(Math.random());function Z6(e,t){var n={},r=function(p,c){var d=p.clone();return d=(c==null?void 0:c(d))||d,d.toRgbString()},i=function(p,c){var d=new vd(p),h=Ms(d.toRgbString());n["".concat(c,"-color")]=r(d),n["".concat(c,"-color-disabled")]=h[1],n["".concat(c,"-color-hover")]=h[4],n["".concat(c,"-color-active")]=h[6],n["".concat(c,"-color-outline")]=d.clone().setAlpha(.2).toRgbString(),n["".concat(c,"-color-deprecated-bg")]=h[1],n["".concat(c,"-color-deprecated-border")]=h[3]};if(t.primaryColor){i(t.primaryColor,"primary");var a=new vd(t.primaryColor),s=Ms(a.toRgbString());s.forEach(function(f,p){n["primary-".concat(p+1)]=f}),n["primary-color-deprecated-l-35"]=r(a,function(f){return f.lighten(35)}),n["primary-color-deprecated-l-20"]=r(a,function(f){return f.lighten(20)}),n["primary-color-deprecated-t-20"]=r(a,function(f){return f.tint(20)}),n["primary-color-deprecated-t-50"]=r(a,function(f){return f.tint(50)}),n["primary-color-deprecated-f-12"]=r(a,function(f){return f.setAlpha(f.getAlpha()*.12)});var l=new vd(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,function(f){return f.setAlpha(f.getAlpha()*.3)}),n["primary-color-active-deprecated-d-02"]=r(l,function(f){return f.darken(2)})}t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info");var u=Object.keys(n).map(function(f){return"--".concat(e,"-").concat(f,": ").concat(n[f],";")});return` :root { `.concat(u.join(` `),` } `).trim()}function J6(e,t){var n=Z6(e,t);tl()?Y6(n,"".concat(X6,"-dynamic-theme")):Av(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}var rS=Symbol("GlobalFormContextKey"),Q6=function(t){St(rS,t)},eF=function(){return gt(rS,{validateMessages:ue(function(){})})},tF=function(){return{getTargetContainer:{type:Function},getPopupContainer:{type:Function},prefixCls:String,getPrefixCls:{type:Function},renderEmpty:{type:Function},transformCellText:{type:Function},csp:{type:Object,default:void 0},input:{type:Object},autoInsertSpaceInButton:{type:Boolean,default:void 0},locale:{type:Object,default:void 0},pageHeader:{type:Object},componentSize:{type:String},direction:{type:String},space:{type:Object},virtual:{type:Boolean,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},form:{type:Object,default:void 0},notUpdateGlobalConfig:Boolean}},nF="ant";function oa(){return vn.prefixCls||nF}var $h=yt({}),iS=yt({}),vn=yt({});Ke(function(){Qt(vn,$h,iS),vn.prefixCls=oa(),vn.getPrefixCls=function(e,t){return t||(e?"".concat(vn.prefixCls,"-").concat(e):vn.prefixCls)},vn.getRootPrefixCls=function(e,t){return e||(vn.prefixCls?vn.prefixCls:t&&t.includes("-")?t.replace(/^(.*)-[^-]*$/,"$1"):oa())}});var bd,rF=function(t){bd&&bd(),bd=Ke(function(){Qt(iS,yt(t)),Qt(vn,yt(t))}),t.theme&&J6(oa(),t.theme)},iF=function(){return{getPrefixCls:function(n,r){return r||(n?"".concat(oa(),"-").concat(n):oa())},getRootPrefixCls:function(n,r){return n||(vn.prefixCls?vn.prefixCls:r&&r.includes("-")?r.replace(/^(.*)-[^-]*$/,"$1"):oa())}}},aa=Ce({compatConfig:{MODE:3},name:"AConfigProvider",inheritAttrs:!1,props:tF(),setup:function(t,n){var r=n.slots,i=function(c,d){var h=t.prefixCls,_=h===void 0?"ant":h;return d||(c?"".concat(_,"-").concat(c):_)},a=function(c){var d=t.renderEmpty||r.renderEmpty||wx;return d(c)},s=function(c,d){var h=t.prefixCls;if(d)return d;var _=h||i("");return c?"".concat(_,"-").concat(c):_},l=yt(re(re({},t),{},{getPrefixCls:s,renderEmpty:a}));Object.keys(t).forEach(function(p){Le(function(){return t[p]},function(){l[p]=t[p]})}),t.notUpdateGlobalConfig||(Qt($h,l),Le(l,function(){Qt($h,l)}));var u=ue(function(){var p={};if(t.locale){var c,d;p=((c=t.locale.Form)===null||c===void 0?void 0:c.defaultValidateMessages)||((d=Rs.Form)===null||d===void 0?void 0:d.defaultValidateMessages)||{}}return t.form&&t.form.validateMessages&&(p=re(re({},p),t.form.validateMessages)),p});Q6({validateMessages:u}),St("configProvider",l);var f=function(c){var d;return X(l3,{locale:t.locale||c,ANT_MARK__:Sh},{default:function(){return[(d=r.default)===null||d===void 0?void 0:d.call(r)]}})};return Ke(function(){t.direction&&(S6.config({rtl:t.direction==="rtl"}),W6.config({rtl:t.direction==="rtl"}))}),function(){return X(sx,{children:function(c,d,h){return f(h)}},null)}}}),oF=yt({getPrefixCls:function(t,n){return n||(t?"ant-".concat(t):"ant")},renderEmpty:wx,direction:"ltr"});aa.config=rF;aa.install=function(e){e.component(aa.name,aa)};const Lt=function(e,t){var n=gt("configProvider",oF),r=ue(function(){return n.getPrefixCls(e,t.prefixCls)}),i=ue(function(){var m;return(m=t.direction)!==null&&m!==void 0?m:n.direction}),a=ue(function(){return n.getPrefixCls()}),s=ue(function(){return n.autoInsertSpaceInButton}),l=ue(function(){return n.renderEmpty}),u=ue(function(){return n.space}),f=ue(function(){return n.pageHeader}),p=ue(function(){return n.form}),c=ue(function(){return t.getTargetContainer||n.getTargetContainer}),d=ue(function(){return t.getPopupContainer||n.getPopupContainer}),h=ue(function(){var m;return(m=t.dropdownMatchSelectWidth)!==null&&m!==void 0?m:n.dropdownMatchSelectWidth}),_=ue(function(){return(t.virtual===void 0?n.virtual!==!1:t.virtual!==!1)&&h.value!==!1}),b=ue(function(){return t.size||n.componentSize}),E=ue(function(){var m;return t.autocomplete||((m=n.input)===null||m===void 0?void 0:m.autocomplete)}),v=ue(function(){return n.csp});return{configProvider:n,prefixCls:r,direction:i,size:b,getTargetContainer:c,getPopupContainer:d,space:u,pageHeader:f,form:p,autoInsertSpaceInButton:s,renderEmpty:l,virtual:_,dropdownMatchSelectWidth:h,rootPrefixCls:a,getPrefixCls:n.getPrefixCls,autocomplete:E,csp:v}};function sr(e,t){for(var n=Qt({},e),r=0;r1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=e;if(Array.isArray(e)&&(i=Ta(e)[0]),!i)return null;var a=ir(i,t,r);return a.props=n?re(re({},a.props),t):a.props,ia(_t(a.props.class)!=="object","class must be string"),a}function lF(){this.__data__=[],this.size=0}function Pv(e,t){return e===t||e!==e&&t!==t}function Dc(e,t){for(var n=e.length;n--;)if(Pv(e[n][0],t))return n;return-1}var uF=Array.prototype,cF=uF.splice;function fF(e){var t=this.__data__,n=Dc(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():cF.call(t,n,1),--this.size,!0}function dF(e){var t=this.__data__,n=Dc(t,e);return n<0?void 0:t[n][1]}function hF(e){return Dc(this.__data__,e)>-1}function pF(e,t){var n=this.__data__,r=Dc(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function si(e){var t=-1,n=e==null?0:e.length;for(this.clear();++tl))return!1;var f=a.get(e),p=a.get(t);if(f&&p)return f==t&&p==e;var c=-1,d=!0,h=n&l8?new Ds:void 0;for(a.set(e,t),a.set(t,e);++c-1&&e%1==0&&e-1&&e%1==0&&e<=H8}var U8="[object Arguments]",V8="[object Array]",z8="[object Boolean]",W8="[object Date]",G8="[object Error]",K8="[object Function]",Y8="[object Map]",X8="[object Number]",Z8="[object Object]",J8="[object RegExp]",Q8="[object Set]",ej="[object String]",tj="[object WeakMap]",nj="[object ArrayBuffer]",rj="[object DataView]",ij="[object Float32Array]",oj="[object Float64Array]",aj="[object Int8Array]",sj="[object Int16Array]",lj="[object Int32Array]",uj="[object Uint8Array]",cj="[object Uint8ClampedArray]",fj="[object Uint16Array]",dj="[object Uint32Array]",pt={};pt[ij]=pt[oj]=pt[aj]=pt[sj]=pt[lj]=pt[uj]=pt[cj]=pt[fj]=pt[dj]=!0;pt[U8]=pt[V8]=pt[nj]=pt[z8]=pt[rj]=pt[W8]=pt[G8]=pt[K8]=pt[Y8]=pt[X8]=pt[Z8]=pt[J8]=pt[Q8]=pt[ej]=pt[tj]=!1;function hj(e){return Cr(e)&&Rv(e.length)&&!!pt[yo(e)]}function qc(e){return function(t){return e(t)}}var dS=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ps=dS&&typeof module=="object"&&module&&!module.nodeType&&module,pj=ps&&ps.exports===dS,Ed=pj&&KE.process,vj=function(){try{var e=ps&&ps.require&&ps.require("util").types;return e||Ed&&Ed.binding&&Ed.binding("util")}catch{}}();const ba=vj;var Vy=ba&&ba.isTypedArray,mj=Vy?qc(Vy):hj;const hS=mj;var gj=Object.prototype,yj=gj.hasOwnProperty;function pS(e,t){var n=lr(e),r=!n&&Nv(e),i=!n&&!r&&Gu(e),a=!n&&!r&&!i&&hS(e),s=n||r||i||a,l=s?I8(e.length,String):[],u=l.length;for(var f in e)(t||yj.call(e,f))&&!(s&&(f=="length"||i&&(f=="offset"||f=="parent")||a&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||fS(f,u)))&&l.push(f);return l}var bj=Object.prototype;function $v(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||bj;return e===n}var _j=XE(Object.keys,Object);const wj=_j;var Ej=Object.prototype,xj=Ej.hasOwnProperty;function Sj(e){if(!$v(e))return wj(e);var t=[];for(var n in Object(e))xj.call(e,n)&&n!="constructor"&&t.push(n);return t}function Hc(e){return e!=null&&Rv(e.length)&&!oS(e)}function nl(e){return Hc(e)?pS(e):Sj(e)}function Lh(e){return sS(e,nl,Iv)}var Oj=1,Cj=Object.prototype,Tj=Cj.hasOwnProperty;function Aj(e,t,n,r,i,a){var s=n&Oj,l=Lh(e),u=l.length,f=Lh(t),p=f.length;if(u!=p&&!s)return!1;for(var c=u;c--;){var d=l[c];if(!(s?d in t:Tj.call(t,d)))return!1}var h=a.get(e),_=a.get(t);if(h&&_)return h==t&&_==e;var b=!0;a.set(e,t),a.set(t,e);for(var E=s;++c1&&arguments[1]!==void 0?arguments[1]:{inTriggerContext:!0};St(mS,{inTriggerContext:n.inTriggerContext,shouldRender:ue(function(){var r=t||{},i=r.sPopupVisible,a=r.popupRef,s=r.forceRender,l=r.autoDestroy,u=!1;return(i||a||s)&&(u=!0),!i&&l&&(u=!1),u})})},Uj=function(){gS({},{inTriggerContext:!1});var t=gt(mS,{shouldRender:ue(function(){return!1}),inTriggerContext:!1});return{shouldRender:ue(function(){return t.shouldRender.value||t.inTriggerContext===!1})}};const Vj=Ce({compatConfig:{MODE:3},name:"Portal",inheritAttrs:!1,props:{getContainer:ze.func.isRequired,didUpdate:Function},setup:function(t,n){var r=n.slots,i=!0,a,s=Uj(),l=s.shouldRender;fc(function(){i=!1,l.value&&(a=t.getContainer())});var u=Le(l,function(){l.value&&!a&&(a=t.getContainer()),a&&u()});return vo(function(){Qe(function(){if(l.value){var f;(f=t.didUpdate)===null||f===void 0||f.call(t,t)}})}),tn(function(){a&&a.parentNode&&a.parentNode.removeChild(a)}),function(){if(!l.value)return null;if(i){var f;return(f=r.default)===null||f===void 0?void 0:f.call(r)}return a?X(ni,{to:a},r):null}}});var Be={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=Be.F1&&n<=Be.F12)return!1;switch(n){case Be.ALT:case Be.CAPS_LOCK:case Be.CONTEXT_MENU:case Be.CTRL:case Be.DOWN:case Be.END:case Be.ESC:case Be.HOME:case Be.INSERT:case Be.LEFT:case Be.MAC_FF_META:case Be.META:case Be.NUMLOCK:case Be.NUM_CENTER:case Be.PAGE_DOWN:case Be.PAGE_UP:case Be.PAUSE:case Be.PRINT_SCREEN:case Be.RIGHT:case Be.SHIFT:case Be.UP:case Be.WIN_KEY:case Be.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=Be.ZERO&&t<=Be.NINE||t>=Be.NUM_ZERO&&t<=Be.NUM_MULTIPLY||t>=Be.A&&t<=Be.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case Be.SPACE:case Be.QUESTION_MARK:case Be.NUM_PLUS:case Be.NUM_MINUS:case Be.NUM_PERIOD:case Be.NUM_DIVISION:case Be.SEMICOLON:case Be.DASH:case Be.EQUALS:case Be.COMMA:case Be.PERIOD:case Be.SLASH:case Be.APOSTROPHE:case Be.SINGLE_QUOTE:case Be.OPEN_SQUARE_BRACKET:case Be.BACKSLASH:case Be.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const Qy=Be;function zj(e){e.target.composing=!0}function e0(e){!e.target.composing||(e.target.composing=!1,Wj(e.target,"input"))}function Wj(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function xd(e,t,n,r){e.addEventListener(t,n,r)}var Gj={created:function(t,n){(!n.modifiers||!n.modifiers.lazy)&&(xd(t,"compositionstart",zj),xd(t,"compositionend",e0),xd(t,"change",e0))}};const yS=Gj;var Kj=`accept acceptcharset accesskey action allowfullscreen allowtransparency alt async autocomplete autofocus autoplay capture cellpadding cellspacing challenge charset checked classid classname colspan cols content contenteditable contextmenu controls coords crossorigin data datetime default defer dir disabled download draggable enctype form formaction formenctype formmethod formnovalidate formtarget frameborder headers height hidden high href hreflang htmlfor for httpequiv icon id inputmode integrity is keyparams keytype kind label lang list loop low manifest marginheight marginwidth max maxlength media mediagroup method min minlength multiple muted name novalidate nonce open optimum pattern placeholder poster preload radiogroup readonly rel required reversed role rowspan rows sandbox scope scoped scrolling seamless selected shape size sizes span spellcheck src srcdoc srclang srcset start step style summary tabindex target title type usemap value width wmode wrap`,Yj=`onCopy onCut onPaste onCompositionend onCompositionstart onCompositionupdate onKeydown onKeypress onKeyup onFocus onBlur onChange onInput onSubmit onClick onContextmenu onDoubleclick onDblclick onDrag onDragend onDragenter onDragexit onDragleave onDragover onDragstart onDrop onMousedown onMouseenter onMouseleave onMousemove onMouseout onMouseover onMouseup onSelect onTouchcancel onTouchend onTouchmove onTouchstart onTouchstartPassive onTouchmovePassive onScroll onWheel onAbort onCanplay onCanplaythrough onDurationchange onEmptied onEncrypted onEnded onError onLoadeddata onLoadedmetadata onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError`,t0="".concat(Kj," ").concat(Yj).split(/[\s\n]+/),Xj="aria-",Zj="data-";function n0(e,t){return e.indexOf(t)===0}function Jj(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=re({},t);var r={};return Object.keys(e).forEach(function(i){(n.aria&&(i==="role"||n0(i,Xj))||n.data&&n0(i,Zj)||n.attr&&(t0.includes(i)||t0.includes(i.toLowerCase())))&&(r[i]=e[i])}),r}var Qj={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};const eD=Qj;function r0(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:ue(function(){return!0}),r=ae(new Map),i=function(l,u){r.value.set(l,u),r.value=new Map(r.value)},a=function(l){r.value.delete(l),r.value=new Map(r.value)};Le([n,r],function(){}),St(Ku,t),St(Yu,{addFormItemField:i,removeFormItemField:a})},qh={id:ue(function(){}),onFieldBlur:function(){},onFieldChange:function(){},clearValidate:function(){}},Hh={addFormItemField:function(){},removeFormItemField:function(){}},Lv=function(){var t=gt(Yu,Hh),n=Symbol("FormItemFieldKey"),r=zt();return t.addFormItemField(n,r.type),tn(function(){t.removeFormItemField(n)}),St(Yu,Hh),St(Ku,qh),gt(Ku,qh)};const Uh=Ce({compatConfig:{MODE:3},name:"AFormItemRest",setup:function(t,n){var r=n.slots;return St(Yu,Hh),St(Ku,qh),function(){var i;return(i=r.default)===null||i===void 0?void 0:i.call(r)}}});var fo=bS({}),i0=Ce({name:"NoFormStatus",setup:function(t,n){var r=n.slots;return fo.useProvide({}),function(){var i;return(i=r.default)===null||i===void 0?void 0:i.call(r)}}});Tr("warning","error","");function vs(e,t,n){var r;return nt((r={},ge(r,"".concat(e,"-status-success"),t==="success"),ge(r,"".concat(e,"-status-warning"),t==="warning"),ge(r,"".concat(e,"-status-error"),t==="error"),ge(r,"".concat(e,"-status-validating"),t==="validating"),ge(r,"".concat(e,"-has-feedback"),n),r))}var Fv=function(t,n){return n||t},o0=["xxxl","xxl","xl","lg","md","sm","xs"],Ul={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)",xxxl:"(min-width: 2000px)"},Hi=new Map,Sd=-1,Vl={},iD={matchHandlers:{},dispatch:function(t){return Vl=t,Hi.forEach(function(n){return n(Vl)}),Hi.size>=1},subscribe:function(t){return Hi.size||this.register(),Sd+=1,Hi.set(Sd,t),t(Vl),Sd},unsubscribe:function(t){Hi.delete(t),Hi.size||this.unregister()},unregister:function(){var t=this;Object.keys(Ul).forEach(function(n){var r=Ul[n],i=t.matchHandlers[r];i==null||i.mql.removeListener(i==null?void 0:i.listener)}),Hi.clear()},register:function(){var t=this;Object.keys(Ul).forEach(function(n){var r=Ul[n],i=function(l){var u=l.matches;t.dispatch(re(re({},Vl),{},ge({},n,u)))},a=window.matchMedia(r);a.addListener(i),t.matchHandlers[r]={mql:a,listener:i},i(a)})}};const a0=iD;var oD=Symbol("SizeProvider"),aD=function(t){var n=t?ue(function(){return t.size}):gt(oD,ue(function(){return"default"}));return n},Od={transitionstart:{transition:"transitionstart",WebkitTransition:"webkitTransitionStart",MozTransition:"mozTransitionStart",OTransition:"oTransitionStart",msTransition:"MSTransitionStart"},animationstart:{animation:"animationstart",WebkitAnimation:"webkitAnimationStart",MozAnimation:"mozAnimationStart",OAnimation:"oAnimationStart",msAnimation:"MSAnimationStart"}},Cd={transitionend:{transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"},animationend:{animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"mozAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd"}},qo=[],Ho=[];function sD(){var e=document.createElement("div"),t=e.style;"AnimationEvent"in window||(delete Od.animationstart.animation,delete Cd.animationend.animation),"TransitionEvent"in window||(delete Od.transitionstart.transition,delete Cd.transitionend.transition);function n(r,i){for(var a in r)if(r.hasOwnProperty(a)){var s=r[a];for(var l in s)if(l in t){i.push(s[l]);break}}}n(Od,qo),n(Cd,Ho)}typeof window<"u"&&typeof document<"u"&&sD();function s0(e,t,n){e.addEventListener(t,n,!1)}function l0(e,t,n){e.removeEventListener(t,n,!1)}var lD={startEvents:qo,addStartEventListener:function(t,n){if(qo.length===0){setTimeout(n,0);return}qo.forEach(function(r){s0(t,r,n)})},removeStartEventListener:function(t,n){qo.length!==0&&qo.forEach(function(r){l0(t,r,n)})},endEvents:Ho,addEndEventListener:function(t,n){if(Ho.length===0){setTimeout(n,0);return}Ho.forEach(function(r){s0(t,r,n)})},removeEndEventListener:function(t,n){Ho.length!==0&&Ho.forEach(function(r){l0(t,r,n)})}};const zl=lD;var pi;function u0(e){return!e||e.offsetParent===null}function uD(e){var t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\.\d]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}const cD=Ce({compatConfig:{MODE:3},name:"Wave",props:{insertExtraNode:Boolean,disabled:Boolean},setup:function(t,n){var r=n.slots,i=n.expose,a=zt(),s=Lt("",t),l=s.csp,u=s.prefixCls;i({csp:l});var f=null,p=null,c=null,d=!1,h=null,_=!1,b=function(x){if(!_){var O=xh(a);!x||x.target!==O||d||y(O)}},E=function(x){!x||x.animationName!=="fadeEffect"||y(x.target)},v=function(){var x=t.insertExtraNode;return x?"".concat(u.value,"-click-animating"):"".concat(u.value,"-click-animating-without-extra-node")},m=function(x,O){var T=t.insertExtraNode,P=t.disabled;if(!(P||!x||u0(x)||x.className.indexOf("-leave")>=0)){h=document.createElement("div"),h.className="".concat(u.value,"-click-animating-node");var A=v();if(x.removeAttribute(A),x.setAttribute(A,"true"),pi=pi||document.createElement("style"),O&&O!=="#ffffff"&&O!=="rgb(255, 255, 255)"&&uD(O)&&!/rgba\(\d*, \d*, \d*, 0\)/.test(O)&&O!=="transparent"){var S;(S=l.value)!==null&&S!==void 0&&S.nonce&&(pi.nonce=l.value.nonce),h.style.borderColor=O,pi.innerHTML=` [`.concat(u.value,"-click-animating-without-extra-node='true']::after, .").concat(u.value,`-click-animating-node { --antd-wave-shadow-color: `).concat(O,`; }`),document.body.contains(pi)||document.body.appendChild(pi)}T&&x.appendChild(h),zl.addStartEventListener(x,b),zl.addEndEventListener(x,E)}},y=function(x){if(!(!x||x===h||!(x instanceof Element))){var O=t.insertExtraNode,T=v();x.setAttribute(T,"false"),pi&&(pi.innerHTML=""),O&&h&&x.contains(h)&&x.removeChild(h),zl.removeStartEventListener(x,b),zl.removeEndEventListener(x,E)}},g=function(x){if(!(!x||!x.getAttribute||x.getAttribute("disabled")||x.className.indexOf("disabled")>=0)){var O=function(P){if(!(P.target.tagName==="INPUT"||u0(P.target))){y(x);var A=getComputedStyle(x).getPropertyValue("border-top-color")||getComputedStyle(x).getPropertyValue("border-color")||getComputedStyle(x).getPropertyValue("background-color");p=setTimeout(function(){return m(x,A)},0),Dn.cancel(c),d=!0,c=Dn(function(){d=!1},10)}};return x.addEventListener("click",O,!0),{cancel:function(){x.removeEventListener("click",O,!0)}}}};return wt(function(){Qe(function(){var w=xh(a);w.nodeType===1&&(f=g(w))})}),tn(function(){f&&f.cancel(),clearTimeout(p),_=!0}),function(){var w;return(w=r.default)===null||w===void 0?void 0:w.call(r)[0]}}});function _S(e){return e==="danger"?{danger:!0}:{type:e}}var fD=function(){return{prefixCls:String,type:String,htmlType:{type:String,default:"button"},shape:{type:String},size:{type:String},loading:{type:[Boolean,Object],default:function(){return!1}},disabled:{type:Boolean,default:void 0},ghost:{type:Boolean,default:void 0},block:{type:Boolean,default:void 0},danger:{type:Boolean,default:void 0},icon:ze.any,href:String,target:String,title:String,onClick:{type:Function},onMousedown:{type:Function}}};const dD=fD;var c0=function(t){t&&(t.style.width="0px",t.style.opacity="0",t.style.transform="scale(0)")},f0=function(t){Qe(function(){t&&(t.style.width="".concat(t.scrollWidth,"px"),t.style.opacity="1",t.style.transform="scale(1)")})},d0=function(t){t&&t.style&&(t.style.width=null,t.style.opacity=null,t.style.transform=null)};const hD=Ce({compatConfig:{MODE:3},name:"LoadingIcon",props:{prefixCls:String,loading:[Boolean,Object],existIcon:Boolean},setup:function(t){return function(){var n=t.existIcon,r=t.prefixCls,i=t.loading;if(n)return X("span",{class:"".concat(r,"-loading-icon")},[X(Vu,null,null)]);var a=!!i;return X(Pr,{name:"".concat(r,"-loading-icon-motion"),onBeforeEnter:c0,onEnter:f0,onAfterEnter:d0,onBeforeLeave:f0,onLeave:function(l){setTimeout(function(){c0(l)})},onAfterLeave:d0},{default:function(){return[a?X("span",{class:"".concat(r,"-loading-icon")},[X(Vu,null,null)]):null]}})}}});var pD=function(){return{prefixCls:String,size:{type:String}}},wS=bS();const Vh=Ce({compatConfig:{MODE:3},name:"AButtonGroup",props:pD(),setup:function(t,n){var r=n.slots,i=Lt("btn-group",t),a=i.prefixCls,s=i.direction;wS.useProvide({size:ue(function(){return t.size})});var l=ue(function(){var u,f=t.size,p="";switch(f){case"large":p="lg";break;case"small":p="sm";break;case"middle":case void 0:break;default:Av(!f,"Button.Group","Invalid prop `size`.")}return u={},ge(u,"".concat(a.value),!0),ge(u,"".concat(a.value,"-").concat(p),p),ge(u,"".concat(a.value,"-rtl"),s.value==="rtl"),u});return function(){var u;return X("div",{class:l.value},[ra((u=r.default)===null||u===void 0?void 0:u.call(r))])}}});var h0=/^[\u4e00-\u9fa5]{2}$/,p0=h0.test.bind(h0);function Wl(e){return e==="text"||e==="link"}const Xr=Ce({compatConfig:{MODE:3},name:"AButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:el(dD(),{type:"default"}),slots:["icon"],setup:function(t,n){var r=n.slots,i=n.attrs,a=n.emit,s=Lt("btn",t),l=s.prefixCls,u=s.autoInsertSpaceInButton,f=s.direction,p=s.size,c=wS.useInject(),d=c.size,h=ae(null),_=ae(void 0),b=!1,E=ae(!1),v=ae(!1),m=ue(function(){return u.value!==!1}),y=ue(function(){return _t(t.loading)==="object"&&t.loading.delay?t.loading.delay||!0:!!t.loading});Le(y,function(T){clearTimeout(_.value),typeof y.value=="number"?_.value=setTimeout(function(){E.value=T},y.value):E.value=T},{immediate:!0});var g=ue(function(){var T,P=t.type,A=t.shape,S=A===void 0?"default":A,C=t.ghost,I=t.block,M=t.danger,F=l.value,z={large:"lg",small:"sm",middle:void 0},U=(d==null?void 0:d.value)||p.value,G=U&&z[U]||"";return T={},ge(T,"".concat(F),!0),ge(T,"".concat(F,"-").concat(P),P),ge(T,"".concat(F,"-").concat(S),S!=="default"&&S),ge(T,"".concat(F,"-").concat(G),G),ge(T,"".concat(F,"-loading"),E.value),ge(T,"".concat(F,"-background-ghost"),C&&!Wl(P)),ge(T,"".concat(F,"-two-chinese-chars"),v.value&&m.value),ge(T,"".concat(F,"-block"),I),ge(T,"".concat(F,"-dangerous"),!!M),ge(T,"".concat(F,"-rtl"),f.value==="rtl"),T}),w=function(){var P=h.value;if(!(!P||u.value===!1)){var A=P.textContent;b&&p0(A)?v.value||(v.value=!0):v.value&&(v.value=!1)}},x=function(P){if(E.value||t.disabled){P.preventDefault();return}a("click",P)},O=function(P,A){var S=A?" ":"";if(P.type===Kr){var C=P.children.trim();return p0(C)&&(C=C.split("").join(S)),X("span",null,[C])}return P};return Ke(function(){Av(!(t.ghost&&Wl(t.type)),"Button","`link` or `text` button can't be a `ghost` button.")}),wt(w),vo(w),tn(function(){_.value&&clearTimeout(_.value)}),function(){var T,P,A=t.icon,S=A===void 0?(T=r.icon)===null||T===void 0?void 0:T.call(r):A,C=ra((P=r.default)===null||P===void 0?void 0:P.call(r));b=C.length===1&&!S&&!Wl(t.type);var I=t.type,M=t.htmlType,F=t.disabled,z=t.href,U=t.title,G=t.target,D=t.onMousedown,R=E.value?"loading":S,N=re(re({},i),{},{title:U,disabled:F,class:[g.value,i.class,ge({},"".concat(l.value,"-icon-only"),C.length===0&&!!R)],onClick:x,onMousedown:D});F||delete N.disabled;var L=S&&!E.value?S:X(hD,{existIcon:!!S,prefixCls:l.value,loading:!!E.value},null),q=C.map(function(K){return O(K,b&&m.value)});if(z!==void 0)return X("a",re(re({},N),{},{href:z,target:G,ref:h}),[L,q]);var Y=X("button",re(re({},N),{},{ref:h,type:M}),[L,q]);return Wl(I)?Y:X(cD,{ref:"wave",disabled:!!E.value},{default:function(){return[Y]}})}}});Xr.Group=Vh;Xr.install=function(e){return e.component(Xr.name,Xr),e.component(Vh.name,Vh),e};function ES(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a-1}function bD(e,t,n){for(var r=-1,i=e==null?0:e.length;++r-1}function v0(e,t){e.classList?e.classList.add(t):xS(e,t)||(e.className="".concat(e.className," ").concat(t))}function m0(e,t){if(e.classList)e.classList.remove(t);else if(xS(e,t)){var n=e.className;e.className=" ".concat(n," ").replace(" ".concat(t," ")," ")}}var _D=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant-motion-collapse",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return{name:t,appear:n,css:!0,onBeforeEnter:function(i){i.style.height="0px",i.style.opacity="0",v0(i,t)},onEnter:function(i){Qe(function(){i.style.height="".concat(i.scrollHeight,"px"),i.style.opacity="1"})},onAfterEnter:function(i){i&&(m0(i,t),i.style.height=null,i.style.opacity=null)},onBeforeLeave:function(i){v0(i,t),i.style.height="".concat(i.offsetHeight,"px"),i.style.opacity=null},onLeave:function(i){setTimeout(function(){i.style.height="0px",i.style.opacity="0"})},onAfterLeave:function(i){i&&(m0(i,t),i.style&&(i.style.height=null,i.style.opacity=null))}}};const wD=_D;function Vc(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++ni?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r0&&n(l)?t>1?TS(l,t-1,n,r,i):kv(i,l):r||(i[i.length]=l)}return i}function tB(e){var t=e==null?0:e.length;return t?TS(e,1):[]}function nB(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var E0=Math.max;function AS(e,t,n){return t=E0(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=E0(r.length-t,0),s=Array(a);++i0){if(++t>=aB)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var cB=uB(oB);const PS=cB;function fB(e){return PS(AS(e,void 0,tB),e+"")}var kS=function(){return tl()&&window.document.documentElement},IS=function(t){if(tl()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(i){return i in r.style})}return!1},dB=function(t,n){if(!IS(t))return!1;var r=document.createElement("div"),i=r.style[t];return r.style[t]=n,r.style[t]!==i};function pz(e,t){return!Array.isArray(e)&&t!==void 0?dB(e,t):IS(e)}var Gl,hB=function(){if(!kS())return!1;if(Gl!==void 0)return Gl;var t=document.createElement("div");return t.style.display="flex",t.style.flexDirection="column",t.style.rowGap="1px",t.appendChild(document.createElement("div")),t.appendChild(document.createElement("div")),document.body.appendChild(t),Gl=t.scrollHeight===1,document.body.removeChild(t),Gl};const pB=function(){var e=ae(!1);return wt(function(){e.value=hB()}),e};var NS=Symbol("rowContextKey"),vB=function(t){St(NS,t)},mB=function(){return gt(NS,{gutter:ue(function(){}),wrap:ue(function(){}),supportFlexGap:ue(function(){})})};const gB=vB;Tr("top","middle","bottom","stretch");Tr("start","end","center","space-around","space-between","space-evenly");var yB=function(){return{align:String,justify:String,prefixCls:String,gutter:{type:[Number,Array,Object],default:0},wrap:{type:Boolean,default:void 0}}},bB=Ce({compatConfig:{MODE:3},name:"ARow",props:yB(),setup:function(t,n){var r=n.slots,i=Lt("row",t),a=i.prefixCls,s=i.direction,l,u=ae({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0,xxxl:!0}),f=pB();wt(function(){l=a0.subscribe(function(h){var _=t.gutter||0;(!Array.isArray(_)&&_t(_)==="object"||Array.isArray(_)&&(_t(_[0])==="object"||_t(_[1])==="object"))&&(u.value=h)})}),tn(function(){a0.unsubscribe(l)});var p=ue(function(){var h=[void 0,void 0],_=t.gutter,b=_===void 0?0:_,E=Array.isArray(b)?b:[b,void 0];return E.forEach(function(v,m){if(_t(v)==="object")for(var y=0;y0?"".concat(h[0]/-2,"px"):void 0,E=h[1]!=null&&h[1]>0?"".concat(h[1]/-2,"px"):void 0;return b&&(_.marginLeft=b,_.marginRight=b),f.value?_.rowGap="".concat(h[1],"px"):E&&(_.marginTop=E,_.marginBottom=E),_});return function(){var h;return X("div",{class:c.value,style:d.value},[(h=r.default)===null||h===void 0?void 0:h.call(r)])}}});const _B=bB;function wB(e){return typeof e=="number"?"".concat(e," ").concat(e," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 ".concat(e):e}var EB=function(){return{span:[String,Number],order:[String,Number],offset:[String,Number],push:[String,Number],pull:[String,Number],xs:{type:[String,Number,Object],default:void 0},sm:{type:[String,Number,Object],default:void 0},md:{type:[String,Number,Object],default:void 0},lg:{type:[String,Number,Object],default:void 0},xl:{type:[String,Number,Object],default:void 0},xxl:{type:[String,Number,Object],default:void 0},xxxl:{type:[String,Number,Object],default:void 0},prefixCls:String,flex:[String,Number]}};const RS=Ce({compatConfig:{MODE:3},name:"ACol",props:EB(),setup:function(t,n){var r=n.slots,i=mB(),a=i.gutter,s=i.supportFlexGap,l=i.wrap,u=Lt("col",t),f=u.prefixCls,p=u.direction,c=ue(function(){var h,_=t.span,b=t.order,E=t.offset,v=t.push,m=t.pull,y=f.value,g={};return["xs","sm","md","lg","xl","xxl","xxxl"].forEach(function(w){var x,O={},T=t[w];typeof T=="number"?O.span=T:_t(T)==="object"&&(O=T||{}),g=re(re({},g),{},(x={},ge(x,"".concat(y,"-").concat(w,"-").concat(O.span),O.span!==void 0),ge(x,"".concat(y,"-").concat(w,"-order-").concat(O.order),O.order||O.order===0),ge(x,"".concat(y,"-").concat(w,"-offset-").concat(O.offset),O.offset||O.offset===0),ge(x,"".concat(y,"-").concat(w,"-push-").concat(O.push),O.push||O.push===0),ge(x,"".concat(y,"-").concat(w,"-pull-").concat(O.pull),O.pull||O.pull===0),ge(x,"".concat(y,"-rtl"),p.value==="rtl"),x))}),nt(y,(h={},ge(h,"".concat(y,"-").concat(_),_!==void 0),ge(h,"".concat(y,"-order-").concat(b),b),ge(h,"".concat(y,"-offset-").concat(E),E),ge(h,"".concat(y,"-push-").concat(v),v),ge(h,"".concat(y,"-pull-").concat(m),m),h),g)}),d=ue(function(){var h=t.flex,_=a.value,b={};if(_&&_[0]>0){var E="".concat(_[0]/2,"px");b.paddingLeft=E,b.paddingRight=E}if(_&&_[1]>0&&!s.value){var v="".concat(_[1]/2,"px");b.paddingTop=v,b.paddingBottom=v}return h&&(b.flex=wB(h),l.value===!1&&!b.minWidth&&(b.minWidth=0)),b});return function(){var h;return X("div",{class:c.value,style:d.value},[(h=r.default)===null||h===void 0?void 0:h.call(r)])}}});var xB=function(){return dr.Date.now()};const Td=xB;var SB="Expected a function",OB=Math.max,CB=Math.min;function TB(e,t,n){var r,i,a,s,l,u,f=0,p=!1,c=!1,d=!0;if(typeof e!="function")throw new TypeError(SB);t=zh(t)||0,Jr(n)&&(p=!!n.leading,c="maxWait"in n,a=c?OB(zh(n.maxWait)||0,t):a,d="trailing"in n?!!n.trailing:d);function h(x){var O=r,T=i;return r=i=void 0,f=x,s=e.apply(T,O),s}function _(x){return f=x,l=setTimeout(v,t),p?h(x):s}function b(x){var O=x-u,T=x-f,P=t-O;return c?CB(P,a-T):P}function E(x){var O=x-u,T=x-f;return u===void 0||O>=t||O<0||c&&T>=a}function v(){var x=Td();if(E(x))return m(x);l=setTimeout(v,b(x))}function m(x){return l=void 0,d&&r?h(x):(r=i=void 0,s)}function y(){l!==void 0&&clearTimeout(l),f=0,r=u=i=l=void 0}function g(){return l===void 0?s:m(Td())}function w(){var x=Td(),O=E(x);if(r=arguments,i=this,u=x,O){if(l===void 0)return _(u);if(c)return clearTimeout(l),l=setTimeout(v,t),h(u)}return l===void 0&&(l=setTimeout(v,t)),s}return w.cancel=y,w.flush=g,w}function AB(e,t){for(var n=-1,r=e==null?0:e.length;++n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function pu(e,t,n){return n9()?pu=Reflect.construct.bind():pu=function(i,a,s){var l=[null];l.push.apply(l,a);var u=Function.bind.apply(i,l),f=new u;return s&&qs(f,s.prototype),f},pu.apply(null,arguments)}function r9(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Gh(e){var t=typeof Map=="function"?new Map:void 0;return Gh=function(r){if(r===null||!r9(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return pu(r,arguments,Wh(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),qs(i,r)},Gh(e)}var i9=/%[sdj%]/g,o9=function(){};typeof process<"u"&&process.env;function Kh(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Nn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=a)return l;switch(l){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch{return"[Circular]"}break;default:return l}});return s}return e}function a9(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function It(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||a9(t)&&typeof e=="string"&&!e)}function s9(e,t,n){var r=[],i=0,a=e.length;function s(l){r.push.apply(r,l||[]),i++,i===a&&n(r)}e.forEach(function(l){t(l,s)})}function I0(e,t,n){var r=0,i=e.length;function a(s){if(s&&s.length){n(s);return}var l=r;r=r+1,l()\[\]\\.,;:\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},rs={integer:function(t){return rs.number(t)&&parseInt(t,10)===t},float:function(t){return rs.number(t)&&!rs.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"&&!rs.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(M0.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(h9())},hex:function(t){return typeof t=="string"&&!!t.match(M0.hex)}},p9=function(t,n,r,i,a){if(t.required&&n===void 0){BS(t,n,r,i,a);return}var s=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;s.indexOf(l)>-1?rs[l](n)||i.push(Nn(a.messages.types[l],t.fullField,t.type)):l&&typeof n!==t.type&&i.push(Nn(a.messages.types[l],t.fullField,t.type))},v9=function(t,n,r,i,a){var s=typeof t.len=="number",l=typeof t.min=="number",u=typeof t.max=="number",f=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,p=n,c=null,d=typeof n=="number",h=typeof n=="string",_=Array.isArray(n);if(d?c="number":h?c="string":_&&(c="array"),!c)return!1;_&&(p=n.length),h&&(p=n.replace(f,"_").length),s?p!==t.len&&i.push(Nn(a.messages[c].len,t.fullField,t.len)):l&&!u&&pt.max?i.push(Nn(a.messages[c].max,t.fullField,t.max)):l&&u&&(pt.max)&&i.push(Nn(a.messages[c].range,t.fullField,t.min,t.max))},No="enum",m9=function(t,n,r,i,a){t[No]=Array.isArray(t[No])?t[No]:[],t[No].indexOf(n)===-1&&i.push(Nn(a.messages[No],t.fullField,t[No].join(", ")))},g9=function(t,n,r,i,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||i.push(Nn(a.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var s=new RegExp(t.pattern);s.test(n)||i.push(Nn(a.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Ye={required:BS,whitespace:d9,type:p9,range:v9,enum:m9,pattern:g9},y9=function(t,n,r,i,a){var s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(It(n,"string")&&!t.required)return r();Ye.required(t,n,i,s,a,"string"),It(n,"string")||(Ye.type(t,n,i,s,a),Ye.range(t,n,i,s,a),Ye.pattern(t,n,i,s,a),t.whitespace===!0&&Ye.whitespace(t,n,i,s,a))}r(s)},b9=function(t,n,r,i,a){var s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(It(n)&&!t.required)return r();Ye.required(t,n,i,s,a),n!==void 0&&Ye.type(t,n,i,s,a)}r(s)},_9=function(t,n,r,i,a){var s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),It(n)&&!t.required)return r();Ye.required(t,n,i,s,a),n!==void 0&&(Ye.type(t,n,i,s,a),Ye.range(t,n,i,s,a))}r(s)},w9=function(t,n,r,i,a){var s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(It(n)&&!t.required)return r();Ye.required(t,n,i,s,a),n!==void 0&&Ye.type(t,n,i,s,a)}r(s)},E9=function(t,n,r,i,a){var s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(It(n)&&!t.required)return r();Ye.required(t,n,i,s,a),It(n)||Ye.type(t,n,i,s,a)}r(s)},x9=function(t,n,r,i,a){var s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(It(n)&&!t.required)return r();Ye.required(t,n,i,s,a),n!==void 0&&(Ye.type(t,n,i,s,a),Ye.range(t,n,i,s,a))}r(s)},S9=function(t,n,r,i,a){var s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(It(n)&&!t.required)return r();Ye.required(t,n,i,s,a),n!==void 0&&(Ye.type(t,n,i,s,a),Ye.range(t,n,i,s,a))}r(s)},O9=function(t,n,r,i,a){var s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();Ye.required(t,n,i,s,a,"array"),n!=null&&(Ye.type(t,n,i,s,a),Ye.range(t,n,i,s,a))}r(s)},C9=function(t,n,r,i,a){var s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(It(n)&&!t.required)return r();Ye.required(t,n,i,s,a),n!==void 0&&Ye.type(t,n,i,s,a)}r(s)},T9="enum",A9=function(t,n,r,i,a){var s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(It(n)&&!t.required)return r();Ye.required(t,n,i,s,a),n!==void 0&&Ye[T9](t,n,i,s,a)}r(s)},P9=function(t,n,r,i,a){var s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(It(n,"string")&&!t.required)return r();Ye.required(t,n,i,s,a),It(n,"string")||Ye.pattern(t,n,i,s,a)}r(s)},k9=function(t,n,r,i,a){var s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(It(n,"date")&&!t.required)return r();if(Ye.required(t,n,i,s,a),!It(n,"date")){var u;n instanceof Date?u=n:u=new Date(n),Ye.type(t,u,i,s,a),u&&Ye.range(t,u.getTime(),i,s,a)}}r(s)},I9=function(t,n,r,i,a){var s=[],l=Array.isArray(n)?"array":typeof n;Ye.required(t,n,i,s,a,l),r(s)},Ad=function(t,n,r,i,a){var s=t.type,l=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(It(n,s)&&!t.required)return r();Ye.required(t,n,i,l,a,s),It(n,s)||Ye.type(t,n,i,l,a)}r(l)},N9=function(t,n,r,i,a){var s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(It(n)&&!t.required)return r();Ye.required(t,n,i,s,a)}r(s)},gs={string:y9,method:b9,number:_9,boolean:w9,regexp:E9,integer:x9,float:S9,array:O9,object:C9,enum:A9,pattern:P9,date:k9,url:Ad,hex:Ad,email:Ad,required:I9,any:N9};function Yh(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Xh=Yh(),ol=function(){function e(n){this.rules=null,this._messages=Xh,this.define(n)}var t=e.prototype;return t.define=function(r){var i=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(a){var s=r[a];i.rules[a]=Array.isArray(s)?s:[s]})},t.messages=function(r){return r&&(this._messages=$0(Yh(),r)),this._messages},t.validate=function(r,i,a){var s=this;i===void 0&&(i={}),a===void 0&&(a=function(){});var l=r,u=i,f=a;if(typeof u=="function"&&(f=u,u={}),!this.rules||Object.keys(this.rules).length===0)return f&&f(null,l),Promise.resolve(l);function p(b){var E=[],v={};function m(g){if(Array.isArray(g)){var w;E=(w=E).concat.apply(w,g)}else E.push(g)}for(var y=0;y3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!qS(e,t.slice(0,-1))?e:HS(e,t,n,r)}function Zh(e){return Ci(e)}function $9(e,t){var n=qS(e,t);return n}function M9(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=R9(e,t,n,r);return i}function L9(e,t){return e&&e.some(function(n){return j9(n,t)})}function L0(e){return _t(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function US(e,t){var n=Array.isArray(e)?Ct(e):re({},e);return t&&Object.keys(t).forEach(function(r){var i=n[r],a=t[r],s=L0(i)&&L0(a);n[r]=s?US(i,a||{}):a}),n}function F9(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r-1?i[a?t[s]:s]:void 0}}var tq=Math.max;function nq(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:LD(n);return i<0&&(i=tq(r+i,0)),ES(e,GS(t),i)}var rq=eq(nq);const iq=rq;var KS=Symbol("formContextKey"),YS=function(t){St(KS,t)},Vv=function(){return gt(KS,{name:ue(function(){}),labelAlign:ue(function(){return"right"}),vertical:ue(function(){return!1}),addField:function(n,r){},removeField:function(n){},model:ue(function(){}),rules:ue(function(){}),colon:ue(function(){}),labelWrap:ue(function(){}),labelCol:ue(function(){}),requiredMark:ue(function(){return!1}),validateTrigger:ue(function(){}),onValidate:function(){},validateMessages:ue(function(){return Gc})})},XS=Symbol("formItemPrefixContextKey"),oq=function(t){St(XS,t)},aq=function(){return gt(XS,{prefixCls:ue(function(){return""})})},zv=function(t,n){var r,i,a,s,l=n.slots,u=n.emit,f=n.attrs,p=re(re({},t),f),c=p.prefixCls,d=p.htmlFor,h=p.labelCol,_=p.labelAlign,b=p.colon,E=p.required,v=p.requiredMark,m=hv("Form"),y=Zr(m,1),g=y[0],w=(r=t.label)!==null&&r!==void 0?r:(i=l.label)===null||i===void 0?void 0:i.call(l);if(!w)return null;var x=Vv(),O=x.vertical,T=x.labelAlign,P=x.labelCol,A=x.labelWrap,S=x.colon,C=h||(P==null?void 0:P.value)||{},I=_||(T==null?void 0:T.value),M="".concat(c,"-item-label"),F=nt(M,I==="left"&&"".concat(M,"-left"),C.class,ge({},"".concat(M,"-wrap"),!!A.value)),z=w,U=b===!0||(S==null?void 0:S.value)!==!1&&b!==!1,G=U&&!O.value;if(G&&typeof w=="string"&&w.trim()!==""&&(z=w.replace(/[:|:]\s*$/,"")),z=X(Pe,null,[z,(a=l.tooltip)===null||a===void 0?void 0:a.call(l,{class:"".concat(c,"-item-tooltip")})]),v==="optional"&&!E){var D,R;z=X(Pe,null,[z,X("span",{class:"".concat(c,"-item-optional")},[((D=g.value)===null||D===void 0?void 0:D.optional)||((R=Rs.Form)===null||R===void 0?void 0:R.optional)])])}var N=nt((s={},ge(s,"".concat(c,"-item-required"),E),ge(s,"".concat(c,"-item-required-mark-optional"),v==="optional"),ge(s,"".concat(c,"-item-no-colon"),!U),s));return X(RS,re(re({},C),{},{class:F}),{default:function(){return[X("label",{for:d,class:N,title:typeof w=="string"?w:"",onClick:function(Y){return u("click",Y)}},[z])]}})};zv.displayName="FormItemLabel";zv.inheritAttrs=!1;const sq=zv,lq=Ce({compatConfig:{MODE:3},name:"ErrorList",props:["errors","help","onDomErrorVisibleChange","helpStatus","warnings"],setup:function(t){var n=Lt("",t),r=n.prefixCls,i=aq(),a=i.prefixCls,s=i.status,l=ue(function(){return"".concat(a.value,"-item-explain")}),u=ue(function(){return!!(t.errors&&t.errors.length)}),f=ae(s.value);return Le([u,s],function(){u.value&&(f.value=s.value)}),function(){var p,c,d=wD("".concat(r.value,"-show-help-item")),h=Sx("".concat(r.value,"-show-help-item"),d);return h.class=l.value,(p=t.errors)!==null&&p!==void 0&&p.length?X(K1,re(re({},h),{},{tag:"div"}),{default:function(){return[(c=t.errors)===null||c===void 0?void 0:c.map(function(b,E){return X("div",{key:E,role:"alert",class:f.value?"".concat(l.value,"-").concat(f.value):""},[b])})]}}):null}}});var uq=Ce({compatConfig:{MODE:3},slots:["help","extra","errors"],inheritAttrs:!1,props:["prefixCls","errors","hasFeedback","onDomErrorVisibleChange","wrapperCol","help","extra","status"],setup:function(t,n){var r=n.slots,i=Vv(),a=i.wrapperCol,s=re({},i);return delete s.labelCol,delete s.wrapperCol,YS(s),oq({prefixCls:ue(function(){return t.prefixCls}),status:ue(function(){return t.status})}),function(){var l,u,f,p=t.prefixCls,c=t.wrapperCol,d=t.help,h=d===void 0?(l=r.help)===null||l===void 0?void 0:l.call(r):d,_=t.errors,b=_===void 0?(u=r.errors)===null||u===void 0?void 0:u.call(r):_,E=t.extra,v=E===void 0?(f=r.extra)===null||f===void 0?void 0:f.call(r):E,m="".concat(p,"-item"),y=c||(a==null?void 0:a.value)||{},g=nt("".concat(m,"-control"),y.class);return X(RS,re(re({},y),{},{class:g}),{default:function(){var x;return X(Pe,null,[X("div",{class:"".concat(m,"-control-input")},[X("div",{class:"".concat(m,"-control-input-content")},[(x=r.default)===null||x===void 0?void 0:x.call(r)])]),X(lq,{errors:b,help:h,class:"".concat(m,"-explain-connected")},null),v?X("div",{class:"".concat(m,"-extra")},[v]):null])}})}}});const cq=uq;function fq(e){var t=gp(e.value.slice()),n=null;return Ke(function(){clearTimeout(n),n=setTimeout(function(){t.value=e.value},e.value.length?0:10)}),t}Tr("success","warning","error","validating","");var dq={success:Rx,warning:Nx,error:Fc,validating:Vu};function Pd(e,t,n){var r=e,i=t,a=0;try{for(var s=i.length;a0&&arguments[0]!==void 0?arguments[0]:[];if(x.value==="validating"){var J=Z.filter(function(te){return te&&te.errors.length});x.value=J.length?"error":"success",c.value=J.map(function(te){return te.errors}),f.onValidate(p.value,!c.value.length,c.value.length?qe(c.value[0]):null)}}),j}},P=function(){T({triggerName:"blur"})},A=function(){if(d.value){d.value=!1;return}T({triggerName:"change"})},S=function(){x.value=t.validateStatus,d.value=!1,c.value=[]},C=function(){x.value=t.validateStatus,d.value=!0,c.value=[];var N=f.model.value||{},L=v.value,q=Pd(N,_.value,!0);Array.isArray(L)?q.o[q.k]=[].concat(m.value):q.o[q.k]=m.value,Qe(function(){d.value=!1})},I=ue(function(){return t.htmlFor===void 0?b.value:t.htmlFor}),M=function(){var N=I.value;if(!(!N||!h.value)){var L=h.value.$el.querySelector('[id="'.concat(N,'"]'));L&&L.focus&&L.focus()}};a({onFieldBlur:P,onFieldChange:A,clearValidate:S,resetField:C}),rD({id:b,onFieldBlur:function(){t.autoLink&&P()},onFieldChange:function(){t.autoLink&&A()},clearValidate:S},ue(function(){return!!(t.autoLink&&f.model.value&&p.value)}));var F=!1;Le(p,function(R){R?F||(F=!0,f.addField(s,{fieldValue:v,fieldId:b,fieldName:p,resetField:C,clearValidate:S,namePath:_,validateRules:T,rules:g})):(F=!1,f.removeField(s))},{immediate:!0}),tn(function(){f.removeField(s)});var z=fq(c),U=ue(function(){return t.validateStatus!==void 0?t.validateStatus:z.value.length?"error":x.value}),G=ue(function(){var R;return R={},ge(R,"".concat(u.value,"-item"),!0),ge(R,"".concat(u.value,"-item-has-feedback"),U.value&&t.hasFeedback),ge(R,"".concat(u.value,"-item-has-success"),U.value==="success"),ge(R,"".concat(u.value,"-item-has-warning"),U.value==="warning"),ge(R,"".concat(u.value,"-item-has-error"),U.value==="error"),ge(R,"".concat(u.value,"-item-is-validating"),U.value==="validating"),ge(R,"".concat(u.value,"-item-hidden"),t.hidden),R}),D=yt({});return fo.useProvide(D),Ke(function(){var R;if(t.hasFeedback){var N=U.value&&dq[U.value];R=N?X("span",{class:nt("".concat(u.value,"-item-feedback-icon"),"".concat(u.value,"-item-feedback-icon-").concat(U.value))},[X(N,null,null)]):null}Qt(D,{status:U.value,hasFeedback:t.hasFeedback,feedbackIcon:R,isFormItemInput:!0})}),function(){var R,N;if(t.noStyle)return(R=r.default)===null||R===void 0?void 0:R.call(r);var L=(N=t.help)!==null&&N!==void 0?N:r.help?Ta(r.help()):null;return X(_B,re(re({},i),{},{class:[G.value,L!=null||z.value.length?"".concat(u.value,"-item-with-help"):"",i.class],key:"row"}),{default:function(){var Y,K,B,j;return X(Pe,null,[X(sq,re(re({},t),{},{htmlFor:I.value,required:w.value,requiredMark:f.requiredMark.value,prefixCls:u.value,onClick:M,label:(Y=t.label)!==null&&Y!==void 0?Y:(K=r.label)===null||K===void 0?void 0:K.call(r)}),null),X(cq,re(re({},t),{},{errors:L!=null?Ci(L):z.value,prefixCls:u.value,status:U.value,ref:h,help:L,extra:(B=t.extra)!==null&&B!==void 0?B:(j=r.extra)===null||j===void 0?void 0:j.call(r)}),{default:r.default})])}})}}});function JS(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(i,a){e.forEach(function(s,l){s.catch(function(u){return t=!0,u}).then(function(u){n-=1,r[l]=u,!(n>0)&&(t&&a(r),i(r))})})}):Promise.resolve([])}function j0(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function D0(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function kd(e,t){if(e.clientHeightt||a>e&&s=t&&l>=n?a-e-r:s>t&&ln?s-t+i:0}var B0=function(e,t){var n=window,r=t.scrollMode,i=t.block,a=t.inline,s=t.boundary,l=t.skipOverflowHiddenElements,u=typeof s=="function"?s:function(W){return W!==s};if(!j0(e))throw new TypeError("Invalid target");for(var f,p,c=document.scrollingElement||document.documentElement,d=[],h=e;j0(h)&&u(h);){if((h=(p=(f=h).parentElement)==null?f.getRootNode().host||null:p)===c){d.push(h);break}h!=null&&h===document.body&&kd(h)&&!kd(document.documentElement)||h!=null&&kd(h,l)&&d.push(h)}for(var _=n.visualViewport?n.visualViewport.width:innerWidth,b=n.visualViewport?n.visualViewport.height:innerHeight,E=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,m=e.getBoundingClientRect(),y=m.height,g=m.width,w=m.top,x=m.right,O=m.bottom,T=m.left,P=i==="start"||i==="nearest"?w:i==="end"?O:w+y/2,A=a==="center"?T+g/2:a==="end"?x:T,S=[],C=0;C=0&&T>=0&&O<=b&&x<=_&&w>=U&&O<=D&&T>=R&&x<=G)return S;var N=getComputedStyle(I),L=parseInt(N.borderLeftWidth,10),q=parseInt(N.borderTopWidth,10),Y=parseInt(N.borderRightWidth,10),K=parseInt(N.borderBottomWidth,10),B=0,j=0,Z="offsetWidth"in I?I.offsetWidth-I.clientWidth-L-Y:0,J="offsetHeight"in I?I.offsetHeight-I.clientHeight-q-K:0,te="offsetWidth"in I?I.offsetWidth===0?0:z/I.offsetWidth:0,me="offsetHeight"in I?I.offsetHeight===0?0:F/I.offsetHeight:0;if(c===I)B=i==="start"?P:i==="end"?P-b:i==="nearest"?Yl(v,v+b,b,q,K,v+P,v+P+y,y):P-b/2,j=a==="start"?A:a==="center"?A-_/2:a==="end"?A-_:Yl(E,E+_,_,L,Y,E+A,E+A+g,g),B=Math.max(0,B+v),j=Math.max(0,j+E);else{B=i==="start"?P-U-q:i==="end"?P-D+K+J:i==="nearest"?Yl(U,D,F,q,K+J,P,P+y,y):P-(U+F/2)+J/2,j=a==="start"?A-R-L:a==="center"?A-(R+z/2)+Z/2:a==="end"?A-G+Y+Z:Yl(R,G,z,L,Y+Z,A,A+g,g);var we=I.scrollLeft,V=I.scrollTop;P+=V-(B=Math.max(0,Math.min(V+B/me,I.scrollHeight-F/me+J))),A+=we-(j=Math.max(0,Math.min(we+j/te,I.scrollWidth-z/te+Z)))}S.push({el:I,top:B,left:j})}return S};function QS(e){return e===Object(e)&&Object.keys(e).length!==0}function mq(e,t){t===void 0&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach(function(r){var i=r.el,a=r.top,s=r.left;i.scroll&&n?i.scroll({top:a,left:s,behavior:t}):(i.scrollTop=a,i.scrollLeft=s)})}function gq(e){return e===!1?{block:"end",inline:"nearest"}:QS(e)?e:{block:"start",inline:"nearest"}}function yq(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(QS(t)&&typeof t.behavior=="function")return t.behavior(n?B0(e,t):[]);if(!!n){var r=gq(t);return mq(B0(e,r),r.behavior)}}var bq=Math.min;function _q(e,t,n){for(var r=n?bD:yD,i=e[0].length,a=e.length,s=a,l=Array(a),u=1/0,f=[];s--;){var p=e[s];s&&t&&(p=Vc(p,qc(t))),u=bq(p.length,u),l[s]=!n&&(t||i>=120&&p.length>=120)?new Ds(s&&p):void 0}p=e[0];var c=-1,d=l[0];e:for(;++c1),a}),il(e,LS(e),n),r&&(n=ms(n,kq|Iq|Nq,Pq));for(var i=t.length;i--;)Aq(n,t[i]);return n});const $q=Rq;function q0(e){var t=!1;return e&&e.length&&e.every(function(n){return n.required?(t=!0,!1):!0}),t}function H0(e){return e==null?[]:Array.isArray(e)?e:[e]}function Id(e,t,n){var r=e;t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,"");for(var i=t.split("."),a=0,s=i.length;a1&&arguments[1]!==void 0?arguments[1]:ae({}),n=arguments.length>2?arguments[2]:void 0,r=hu(xe(e)),i=yt({}),a=gp([]),s=function(g){Qt(xe(e),re(re({},hu(r)),g)),Qe(function(){Object.keys(i).forEach(function(w){i[w]={autoLink:!1,required:q0(xe(t)[w])}})})},l=function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],w=arguments.length>1?arguments[1]:void 0;return w.length?g.filter(function(x){var O=H0(x.trigger||"change");return Oq(O,w).length}):g},u=null,f=function(g){for(var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x=arguments.length>2?arguments[2]:void 0,O=[],T={},P=function(F){var z=g[F],U=Id(xe(e),z,x);if(!U.isValid)return"continue";T[z]=U.v;var G=l(xe(t)[z],H0(w&&w.trigger));G.length&&O.push(p(z,U.v,G,w||{}).then(function(){return{name:z,errors:[],warnings:[]}}).catch(function(D){var R=[],N=[];return D.forEach(function(L){var q=L.rule.warningOnly,Y=L.errors;q?N.push.apply(N,Ct(Y)):R.push.apply(R,Ct(Y))}),R.length?Promise.reject({name:z,errors:R,warnings:N}):{name:z,errors:R,warnings:N}}))},A=0;A3&&arguments[3]!==void 0?arguments[3]:{},T=VS([g],w,x,re({validateMessages:Gc},O),!!O.validateFirst);return i[g]?(i[g].validateStatus="validating",T.catch(function(P){return P}).then(function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(i[g].validateStatus==="validating"){var A,S=P.filter(function(C){return C&&C.errors.length});i[g].validateStatus=S.length?"error":"success",i[g].help=S.length?S.map(function(C){return C.errors}):null,n==null||(A=n.onValidate)===null||A===void 0||A.call(n,g,!S.length,S.length?qe(i[g].help[0]):null)}}),T):T.catch(function(P){return P})},c=function(g,w){var x=[],O=!0;g?Array.isArray(g)?x=g:x=[g]:(O=!1,x=a.value);var T=f(x,w||{},O);return T.catch(function(P){return P}),T},d=function(g){var w=[];g?Array.isArray(g)?w=g:w=[g]:w=a.value,w.forEach(function(x){i[x]&&Qt(i[x],{validateStatus:"",help:null})})},h=function(g){for(var w={autoLink:!1},x=[],O=Array.isArray(g)?g:[g],T=0;T-1}):Object.values(g)},T=function(G){if(!t.model){ia(!1,"Form","model is required for resetFields to work.");return}O(G).forEach(function(D){D.resetField()})},P=function(G){O(G).forEach(function(D){D.clearValidate()})},A=function(G){var D=t.scrollToFirstError;if(r("finishFailed",G),D&&G.errorFields.length){var R={};_t(D)==="object"&&(R=D),C(G.errorFields[0].name,R)}},S=function(){return F.apply(void 0,arguments)},C=function(G){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},R=O(G?[G]:void 0);if(R.length){var N=R[0].fieldId.value,L=N?document.getElementById(N):null;L&&yq(L,re({scrollMode:"if-needed",block:"nearest"},D))}},I=function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(G===!0){var D=[];return Object.values(g).forEach(function(R){var N=R.namePath;D.push(N.value)}),F0(t.model,D)}else return F0(t.model,G)},M=function(G,D){if(ia(!(G instanceof Function),"Form","validateFields/validateField/validate not support callback, please use promise instead"),!t.model)return ia(!1,"Form","model is required for validateFields to work."),Promise.reject("Form `model` is required for validateFields to work.");var R=!!G,N=R?Ci(G).map(Zh):[],L=[];Object.values(g).forEach(function(K){var B;if(R||N.push(K.namePath.value),!!((B=K.rules)!==null&&B!==void 0&&B.value.length)){var j=K.namePath.value;if(!R||L9(N,j)){var Z=K.validateRules(re({validateMessages:v.value},D));L.push(Z.then(function(){return{name:j,errors:[],warnings:[]}}).catch(function(J){var te=[],me=[];return J.forEach(function(we){var V=we.rule.warningOnly,W=we.errors;V?me.push.apply(me,Ct(W)):te.push.apply(te,Ct(W))}),te.length?Promise.reject({name:j,errors:te,warnings:me}):{name:j,errors:te,warnings:me}}))}}});var q=JS(L);y.value=q;var Y=q.then(function(){return y.value===q?Promise.resolve(I(N)):Promise.reject([])}).catch(function(K){var B=K.filter(function(j){return j&&j.errors.length});return Promise.reject({values:I(N),errorFields:B,outOfDate:y.value!==q})});return Y.catch(function(K){return K}),Y},F=function(){return M.apply(void 0,arguments)},z=function(G){if(G.preventDefault(),G.stopPropagation(),r("submit",G),t.model){var D=M();D.then(function(R){r("finish",R)}).catch(function(R){A(R)})}};return a({resetFields:T,clearValidate:P,validateFields:M,getFieldsValue:I,validate:S,scrollToField:C}),YS({model:ue(function(){return t.model}),name:ue(function(){return t.name}),labelAlign:ue(function(){return t.labelAlign}),labelCol:ue(function(){return t.labelCol}),labelWrap:ue(function(){return t.labelWrap}),wrapperCol:ue(function(){return t.wrapperCol}),vertical:ue(function(){return t.layout==="vertical"}),colon:_,requiredMark:h,validateTrigger:ue(function(){return t.validateTrigger}),rules:ue(function(){return t.rules}),addField:w,removeField:x,onValidate:function(G,D,R){r("validate",G,D,R)},validateMessages:v}),Le(function(){return t.rules},function(){t.validateOnRuleChange&&M()}),function(){var U;return X("form",re(re({},s),{},{onSubmit:z,class:[m.value,s.class]}),[(U=i.default)===null||U===void 0?void 0:U.call(i)])}}});const Gi=jq;Gi.useInjectFormItemContext=Lv;Gi.ItemRest=Uh;Gi.install=function(e){return e.component(Gi.name,Gi),e.component(Gi.Item.name,Gi.Item),e.component(Uh.name,Uh),e};var Nd;function Wv(e){if(typeof document>"u")return 0;if(e||Nd===void 0){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var i=t.offsetWidth;n.style.overflow="scroll";var a=t.offsetWidth;i===a&&(a=n.clientWidth),document.body.removeChild(n),Nd=i-a}return Nd}function U0(e){var t=e.match(/^(.*)px$/),n=Number(t==null?void 0:t[1]);return Number.isNaN(n)?Wv():n}function vz(e){if(typeof document>"u"||!e||!(e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),n=t.width,r=t.height;return{width:U0(n),height:U0(r)}}function _a(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.element,r=n===void 0?document.body:n,i={},a=Object.keys(e);return a.forEach(function(s){i[s]=r.style[s]}),a.forEach(function(s){r.style[s]=e[s]}),i}function Dq(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Rd={};const V0=function(e){if(!(!Dq()&&!e)){var t="ant-scrolling-effect",n=new RegExp("".concat(t),"g"),r=document.body.className;if(e){if(!n.test(r))return;_a(Rd),Rd={},document.body.className=r.replace(n,"").trim();return}var i=Wv();if(i&&(Rd=_a({position:"relative",width:"calc(100% - ".concat(i,"px)")}),!n.test(r))){var a="".concat(r," ").concat(t);document.body.className=a.trim()}}};function z0(e,t){for(var n=0;n0||a.scrollHeight>a.clientHeight)&&(i=Wv());var s=a.className;if(Fn.filter(function(u){var f,p=u.options;return(p==null?void 0:p.container)===((f=n.options)===null||f===void 0?void 0:f.container)}).length===0&&Md.set(a,_a({width:i!==0?"calc(100% - ".concat(i,"px)"):void 0,overflow:"hidden",overflowX:"hidden",overflowY:"hidden"},{element:a})),!$d.test(s)){var l="".concat(s," ").concat(eO);a.className=l.trim()}Fn=[].concat(Ct(Fn),[{target:n.lockTarget,options:n.options}])}}),ge(this,"unLock",function(){var r,i=Fn.find(function(l){var u=l.target;return u===n.lockTarget});if(Fn=Fn.filter(function(l){var u=l.target;return u!==n.lockTarget}),!(!i||Fn.some(function(l){var u,f=l.options;return(f==null?void 0:f.container)===((u=i.options)===null||u===void 0?void 0:u.container)}))){var a=((r=n.options)===null||r===void 0?void 0:r.container)||document.body,s=a.className;!$d.test(s)||(_a(Md.get(a),{element:a}),Md.delete(a),a.className=a.className.replace($d,"").trim())}}),this.lockTarget=Hq++,this.options=t}),qr=0,is=tl(),Xl={},Ro=function(t){if(!is)return null;if(t){if(typeof t=="string")return document.querySelectorAll(t)[0];if(typeof t=="function")return t();if(_t(t)==="object"&&t instanceof window.HTMLElement)return t}return document.body};const Vq=Ce({compatConfig:{MODE:3},name:"PortalWrapper",inheritAttrs:!1,props:{wrapperClassName:String,forceRender:{type:Boolean,default:void 0},getContainer:ze.any,visible:{type:Boolean,default:void 0}},setup:function(t,n){var r=n.slots,i=ae(),a=ae(),s=ae(),l=new Uq({container:Ro(t.getContainer)}),u=function(){var b,E;(b=i.value)===null||b===void 0||(E=b.parentNode)===null||E===void 0||E.removeChild(i.value)},f=function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(b||i.value&&!i.value.parentNode){var E=Ro(t.getContainer);return E?(E.appendChild(i.value),!0):!1}return!0},p=function(){return is?(i.value||(i.value=document.createElement("div"),f(!0)),c(),i.value):null},c=function(){var b=t.wrapperClassName;i.value&&b&&b!==i.value.className&&(i.value.className=b)};vo(function(){c(),f()});var d=function(){qr===1&&!Object.keys(Xl).length?(V0(),Xl=_a({overflow:"hidden",overflowX:"hidden",overflowY:"hidden"})):qr||(_a(Xl),Xl={},V0(!0))},h=zt();return wt(function(){var _=!1;Le([function(){return t.visible},function(){return t.getContainer}],function(b,E){var v=Zr(b,2),m=v[0],y=v[1],g=Zr(E,2),w=g[0],x=g[1];if(is&&Ro(t.getContainer)===document.body&&(m&&!w?qr+=1:_&&(qr-=1)),_){var O=typeof y=="function"&&typeof x=="function";(O?y.toString()!==x.toString():y!==x)&&u(),m&&m!==w&&is&&Ro(y)!==l.getContainer()&&l.reLock({container:Ro(y)})}_=!0},{immediate:!0,flush:"post"}),Qe(function(){f()||(s.value=Dn(function(){h.update()}))})}),tn(function(){var _=t.visible,b=t.getContainer;is&&Ro(b)===document.body&&(qr=_&&qr?qr-1:qr),u(),Dn.cancel(s.value)}),function(){var _=t.forceRender,b=t.visible,E=null,v={getOpenCount:function(){return qr},getContainer:p,switchScrollingEffect:d,scrollLocker:l};return(_||b||a.value)&&(E=X(Vj,{getContainer:p,ref:a},{default:function(){var y;return(y=r.default)===null||y===void 0?void 0:y.call(r,v)}})),E}}});var ys=function(t){return t!=null&&(Array.isArray(t)?Ta(t).length:!0)};function Gv(e){return ys(e.prefix)||ys(e.suffix)||ys(e.allowClear)}function vu(e){return ys(e.addonBefore)||ys(e.addonAfter)}function np(e){return typeof e>"u"||e===null?"":String(e)}function bs(e,t,n,r){if(!!n){var i=t;if(t.type==="click"){Object.defineProperty(i,"target",{writable:!0}),Object.defineProperty(i,"currentTarget",{writable:!0});var a=e.cloneNode(!0);i.target=a,i.currentTarget=a,a.value="",n(i);return}if(r!==void 0){Object.defineProperty(i,"target",{writable:!0}),Object.defineProperty(i,"currentTarget",{writable:!0}),i.target=e,i.currentTarget=e,e.value=r,n(i);return}n(i)}}function tO(e,t){if(!!e){e.focus(t);var n=t||{},r=n.cursor;if(r){var i=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(i,i);break;default:e.setSelectionRange(0,i)}}}}var zq=function(){return{addonBefore:ze.any,addonAfter:ze.any,prefix:ze.any,suffix:ze.any,clearIcon:ze.any,affixWrapperClassName:String,groupClassName:String,wrapperClassName:String,inputClassName:String,allowClear:{type:Boolean,default:void 0}}},nO=function(){return re(re({},zq()),{},{value:{type:[String,Number,Symbol],default:void 0},defaultValue:{type:[String,Number,Symbol],default:void 0},inputElement:ze.any,prefixCls:String,disabled:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},triggerFocus:Function,readonly:{type:Boolean,default:void 0},handleReset:Function,hidden:{type:Boolean,default:void 0}})},rO=function(){return re(re({},nO()),{},{id:String,placeholder:{type:[String,Number]},autocomplete:String,type:{type:String,default:"text"},name:String,size:{type:String},autofocus:{type:Boolean,default:void 0},lazy:{type:Boolean,default:!0},maxlength:Number,loading:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},showCount:{type:[Boolean,Object]},htmlSize:Number,onPressEnter:Function,onKeydown:Function,onKeyup:Function,onFocus:Function,onBlur:Function,onChange:Function,onInput:Function,"onUpdate:value":Function,onCompositionstart:Function,onCompositionend:Function,valueModifiers:Object,hidden:{type:Boolean,default:void 0},status:String})};const Wq=Ce({name:"BaseInput",inheritAttrs:!1,props:nO(),setup:function(t,n){var r=n.slots,i=n.attrs,a=ae(),s=function(f){var p;if((p=a.value)!==null&&p!==void 0&&p.contains(f.target)){var c=t.triggerFocus;c==null||c()}},l=function(){var f,p,c=t.allowClear,d=t.value,h=t.disabled,_=t.readonly,b=t.handleReset,E=t.suffix,v=E===void 0?r.suffix:E,m=t.prefixCls;if(!c)return null;var y=!h&&!_&&d,g="".concat(m,"-clear-icon"),w=((f=r.clearIcon)===null||f===void 0?void 0:f.call(r))||"*";return X("span",{onClick:b,onMousedown:function(O){return O.preventDefault()},class:nt((p={},ge(p,"".concat(g,"-hidden"),!y),ge(p,"".concat(g,"-has-suffix"),!!v),p),g),role:"button",tabindex:-1},[w])};return function(){var u,f,p=t.focused,c=t.value,d=t.disabled,h=t.allowClear,_=t.readonly,b=t.hidden,E=t.prefixCls,v=t.prefix,m=v===void 0?(u=r.prefix)===null||u===void 0?void 0:u.call(r):v,y=t.suffix,g=y===void 0?(f=r.suffix)===null||f===void 0?void 0:f.call(r):y,w=t.addonAfter,x=w===void 0?r.addonAfter:w,O=t.addonBefore,T=O===void 0?r.addonBefore:O,P=t.inputElement,A=t.affixWrapperClassName,S=t.wrapperClassName,C=t.groupClassName,I=to(P,{value:c,hidden:b});if(Gv({prefix:m,suffix:g,allowClear:h})){var M,F="".concat(E,"-affix-wrapper"),z=nt(F,(M={},ge(M,"".concat(F,"-disabled"),d),ge(M,"".concat(F,"-focused"),p),ge(M,"".concat(F,"-readonly"),_),ge(M,"".concat(F,"-input-with-clear-btn"),g&&h&&c),M),!vu({addonAfter:x,addonBefore:T})&&i.class,A),U=(g||h)&&X("span",{class:"".concat(E,"-suffix")},[l(),g]);I=X("span",{class:z,style:i.style,hidden:!vu({addonAfter:x,addonBefore:T})&&b,onMousedown:s,ref:a},[m&&X("span",{class:"".concat(E,"-prefix")},[m]),to(P,{style:null,value:c,hidden:null}),U])}if(vu({addonAfter:x,addonBefore:T})){var G="".concat(E,"-group"),D="".concat(G,"-addon"),R=nt("".concat(E,"-wrapper"),G,S),N=nt("".concat(E,"-group-wrapper"),i.class,C);return X("span",{class:N,style:i.style,hidden:b},[X("span",{class:R},[T&&X("span",{class:D},[T]),to(I,{style:null,hidden:null}),x&&X("span",{class:D},[x])])])}return I}}});var Gq=["prefixCls","disabled"];const Kq=Ce({name:"VCInput",inheritAttrs:!1,props:rO(),setup:function(t,n){var r=n.slots,i=n.attrs,a=n.expose,s=n.emit,l=ae(t.value===void 0?t.defaultValue:t.value),u=ae(!1),f=ae();Le(function(){return t.value},function(){l.value=t.value}),Le(function(){return t.disabled},function(){t.disabled&&(u.value=!1)});var p=function(P){f.value&&tO(f.value,P)},c=function(){var P;(P=f.value)===null||P===void 0||P.blur()},d=function(P,A,S){var C;(C=f.value)===null||C===void 0||C.setSelectionRange(P,A,S)},h=function(){var P;(P=f.value)===null||P===void 0||P.select()};a({focus:p,blur:c,input:f,stateValue:l,setSelectionRange:d,select:h});var _=function(P){s("change",P)},b=zt(),E=function(P,A){l.value!==P&&(t.value===void 0?l.value=P:Qe(function(){f.value.value!==l.value&&b.update()}),Qe(function(){A&&A()}))},v=function(P){var A=P.target,S=A.value,C=A.composing;if(!((P.isComposing||C)&&t.lazy||l.value===S)){var I=P.target.value;bs(f.value,P,_),E(I)}},m=function(P){P.keyCode===13&&s("pressEnter",P),s("keydown",P)},y=function(P){u.value=!0,s("focus",P)},g=function(P){u.value=!1,s("blur",P)},w=function(P){bs(f.value,P,_),E("",function(){p()})},x=function(){var P,A,S=t.addonBefore,C=S===void 0?r.addonBefore:S,I=t.addonAfter,M=I===void 0?r.addonAfter:I,F=t.disabled,z=t.valueModifiers,U=z===void 0?{}:z,G=t.htmlSize,D=t.autocomplete,R=t.prefixCls,N=t.inputClassName,L=t.prefix,q=L===void 0?(P=r.prefix)===null||P===void 0?void 0:P.call(r):L,Y=t.suffix,K=Y===void 0?(A=r.suffix)===null||A===void 0?void 0:A.call(r):Y,B=t.allowClear,j=t.type,Z=j===void 0?"text":j,J=sr(t,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","bordered","htmlSize","lazy","showCount","valueModifiers","showCount","affixWrapperClassName","groupClassName","inputClassName","wrapperClassName"]),te=re(re(re({},J),i),{},{autocomplete:D,onChange:v,onInput:v,onFocus:y,onBlur:g,onKeydown:m,class:nt(R,ge({},"".concat(R,"-disabled"),F),N,!vu({addonAfter:M,addonBefore:C})&&!Gv({prefix:q,suffix:K,allowClear:B})&&i.class),ref:f,key:"ant-input",size:G,type:Z});U.lazy&&delete te.onInput,te.autofocus||delete te.autofocus;var me=X("input",sr(te,["size"]),null);return ro(me,[[yS]])},O=function(){var P,A=t.maxlength,S=t.suffix,C=S===void 0?(P=r.suffix)===null||P===void 0?void 0:P.call(r):S,I=t.showCount,M=t.prefixCls,F=Number(A)>0;if(C||I){var z=Ct(np(l.value)).length,U=_t(I)==="object"?I.formatter({count:z,maxlength:A}):"".concat(z).concat(F?" / ".concat(A):"");return X(Pe,null,[!!I&&X("span",{class:nt("".concat(M,"-show-count-suffix"),ge({},"".concat(M,"-show-count-has-suffix"),!!C))},[U]),C])}return null};return wt(function(){}),function(){var T=t.prefixCls,P=t.disabled,A=bo(t,Gq);return X(Wq,re(re(re({},A),i),{},{prefixCls:T,inputElement:x(),handleReset:w,value:np(l.value),focused:u.value,triggerFocus:p,suffix:O(),disabled:P}),r)}}});var iO=function(){return sr(rO(),["wrapperClassName","groupClassName","inputClassName","affixWrapperClassName"])};const Kv=iO;var oO=function(){return re(re({},sr(iO(),["prefix","addonBefore","addonAfter","suffix"])),{},{rows:Number,autosize:{type:[Boolean,Object],default:void 0},autoSize:{type:[Boolean,Object],default:void 0},onResize:{type:Function},onCompositionstart:Function,onCompositionend:Function,valueModifiers:Object})},Yq=["allowClear","bordered","prefix","suffix","addonAfter","addonBefore","id"];const qt=Ce({compatConfig:{MODE:3},name:"AInput",inheritAttrs:!1,props:Kv(),setup:function(t,n){var r=n.slots,i=n.attrs,a=n.expose,s=n.emit,l=ae(),u=Lv(),f=fo.useInject(),p=ue(function(){return Fv(f.status,t.status)}),c=Lt("input",t),d=c.direction,h=c.prefixCls,_=c.size,b=c.autocomplete,E=function(A){var S;(S=l.value)===null||S===void 0||S.focus(A)},v=function(){var A;(A=l.value)===null||A===void 0||A.blur()},m=function(A,S,C){var I;(I=l.value)===null||I===void 0||I.setSelectionRange(A,S,C)},y=function(){var A;(A=l.value)===null||A===void 0||A.select()};a({focus:E,blur:v,input:l,setSelectionRange:m,select:y});var g=ae([]),w=function(){g.value.push(setTimeout(function(){var A,S,C;if((A=l.value)!==null&&A!==void 0&&A.input&&((S=l.value)===null||S===void 0?void 0:S.input.getAttribute("type"))==="password"&&(C=l.value)!==null&&C!==void 0&&C.input.hasAttribute("value")){var I;(I=l.value)===null||I===void 0||I.input.removeAttribute("value")}}))};wt(function(){w()}),t1(function(){g.value.forEach(function(P){return clearTimeout(P)})}),tn(function(){g.value.forEach(function(P){return clearTimeout(P)})});var x=function(A){w(),s("blur",A),u.onFieldBlur()},O=function(A){w(),s("focus",A)},T=function(A){s("update:value",A.target.value),s("change",A),s("input",A),u.onFieldChange()};return function(){var P,A,S,C,I,M,F,z,U=f.hasFeedback,G=f.feedbackIcon,D=t.allowClear,R=t.bordered,N=R===void 0?!0:R,L=t.prefix,q=L===void 0?(P=r.prefix)===null||P===void 0?void 0:P.call(r):L,Y=t.suffix,K=Y===void 0?(A=r.suffix)===null||A===void 0?void 0:A.call(r):Y,B=t.addonAfter,j=B===void 0?(S=r.addonAfter)===null||S===void 0?void 0:S.call(r):B,Z=t.addonBefore,J=Z===void 0?(C=r.addonBefore)===null||C===void 0?void 0:C.call(r):Z,te=t.id,me=te===void 0?(I=u.id)===null||I===void 0?void 0:I.value:te,we=bo(t,Yq),V=(U||K)&&X(Pe,null,[K,U&&G]),W=h.value,oe=Gv({prefix:q,suffix:K})||!!U,pe=r.clearIcon||function(){return X(Fc,null,null)};return X(Kq,re(re(re({},i),sr(we,["onUpdate:value","onChange","onInput"])),{},{onChange:T,id:me,ref:l,prefixCls:W,autocomplete:b.value,onBlur:x,onFocus:O,suffix:V,allowClear:D,addonAfter:j&&X(i0,null,{default:function(){return[j]}}),addonBefore:J&&X(i0,null,{default:function(){return[J]}}),inputClassName:nt((M={},ge(M,"".concat(W,"-sm"),_.value==="small"),ge(M,"".concat(W,"-lg"),_.value==="large"),ge(M,"".concat(W,"-rtl"),d.value==="rtl"),ge(M,"".concat(W,"-borderless"),!N),M),!oe&&vs(W,p.value)),affixWrapperClassName:nt((F={},ge(F,"".concat(W,"-affix-wrapper-sm"),_.value==="small"),ge(F,"".concat(W,"-affix-wrapper-lg"),_.value==="large"),ge(F,"".concat(W,"-affix-wrapper-rtl"),d.value==="rtl"),ge(F,"".concat(W,"-affix-wrapper-borderless"),!N),F),vs("".concat(W,"-affix-wrapper"),p.value,U)),wrapperClassName:nt(ge({},"".concat(W,"-group-rtl"),d.value==="rtl")),groupClassName:nt((z={},ge(z,"".concat(W,"-group-wrapper-sm"),_.value==="small"),ge(z,"".concat(W,"-group-wrapper-lg"),_.value==="large"),ge(z,"".concat(W,"-group-wrapper-rtl"),d.value==="rtl"),z),vs("".concat(W,"-group-wrapper"),p.value,U))}),re(re({},r),{},{clearIcon:pe}))}}}),Xq=Ce({compatConfig:{MODE:3},name:"AInputGroup",props:{prefixCls:String,size:{type:String},compact:{type:Boolean,default:void 0},onMouseenter:{type:Function},onMouseleave:{type:Function},onFocus:{type:Function},onBlur:{type:Function}},setup:function(t,n){var r=n.slots,i=Lt("input-group",t),a=i.prefixCls,s=i.direction,l=fo.useInject();fo.useProvide(l,{isFormItemInput:!1});var u=ue(function(){var f,p=a.value;return f={},ge(f,"".concat(p),!0),ge(f,"".concat(p,"-lg"),t.size==="large"),ge(f,"".concat(p,"-sm"),t.size==="small"),ge(f,"".concat(p,"-compact"),t.compact),ge(f,"".concat(p,"-rtl"),s.value==="rtl"),f});return function(){var f;return X("span",{class:u.value,onMouseenter:t.onMouseenter,onMouseleave:t.onMouseleave,onFocus:t.onFocus,onBlur:t.onBlur},[(f=r.default)===null||f===void 0?void 0:f.call(r)])}}});var Ld=/iPhone/i,W0=/iPod/i,G0=/iPad/i,Fd=/\bAndroid(?:.+)Mobile\b/i,K0=/Android/i,$o=/\bAndroid(?:.+)SD4930UR\b/i,Zl=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,Hr=/Windows Phone/i,Y0=/\bWindows(?:.+)ARM\b/i,X0=/BlackBerry/i,Z0=/BB10/i,J0=/Opera Mini/i,Q0=/\b(CriOS|Chrome)(?:.+)Mobile/i,eb=/Mobile(?:.+)Firefox\b/i;function Ve(e,t){return e.test(t)}function tb(e){var t=e||(typeof navigator<"u"?navigator.userAgent:""),n=t.split("[FBAN");if(typeof n[1]<"u"){var r=n,i=Zr(r,1);t=i[0]}if(n=t.split("Twitter"),typeof n[1]<"u"){var a=n,s=Zr(a,1);t=s[0]}var l={apple:{phone:Ve(Ld,t)&&!Ve(Hr,t),ipod:Ve(W0,t),tablet:!Ve(Ld,t)&&Ve(G0,t)&&!Ve(Hr,t),device:(Ve(Ld,t)||Ve(W0,t)||Ve(G0,t))&&!Ve(Hr,t)},amazon:{phone:Ve($o,t),tablet:!Ve($o,t)&&Ve(Zl,t),device:Ve($o,t)||Ve(Zl,t)},android:{phone:!Ve(Hr,t)&&Ve($o,t)||!Ve(Hr,t)&&Ve(Fd,t),tablet:!Ve(Hr,t)&&!Ve($o,t)&&!Ve(Fd,t)&&(Ve(Zl,t)||Ve(K0,t)),device:!Ve(Hr,t)&&(Ve($o,t)||Ve(Zl,t)||Ve(Fd,t)||Ve(K0,t))||Ve(/\bokhttp\b/i,t)},windows:{phone:Ve(Hr,t),tablet:Ve(Y0,t),device:Ve(Hr,t)||Ve(Y0,t)},other:{blackberry:Ve(X0,t),blackberry10:Ve(Z0,t),opera:Ve(J0,t),firefox:Ve(eb,t),chrome:Ve(Q0,t),device:Ve(X0,t)||Ve(Z0,t)||Ve(J0,t)||Ve(eb,t)||Ve(Q0,t)},any:null,phone:null,tablet:null};return l.any=l.apple.device||l.android.device||l.windows.device||l.other.device,l.phone=l.apple.phone||l.android.phone||l.windows.phone,l.tablet=l.apple.tablet||l.android.tablet||l.windows.tablet,l}var Zq=re(re({},tb()),{},{isMobile:tb});const Jq=Zq;var Qq=["disabled","loading","addonAfter","suffix"];const eH=Ce({compatConfig:{MODE:3},name:"AInputSearch",inheritAttrs:!1,props:re(re({},Kv()),{},{inputPrefixCls:String,enterButton:ze.any,onSearch:{type:Function}}),setup:function(t,n){var r=n.slots,i=n.attrs,a=n.expose,s=n.emit,l=ae(),u=ae(!1),f=function(){var T;(T=l.value)===null||T===void 0||T.focus()},p=function(){var T;(T=l.value)===null||T===void 0||T.blur()};a({focus:f,blur:p});var c=function(T){s("update:value",T.target.value),T&&T.target&&T.type==="click"&&s("search",T.target.value,T),s("change",T)},d=function(T){var P;document.activeElement===((P=l.value)===null||P===void 0?void 0:P.input)&&T.preventDefault()},h=function(T){var P,A;s("search",(P=l.value)===null||P===void 0||(A=P.input)===null||A===void 0?void 0:A.stateValue,T),Jq.tablet||l.value.focus()},_=function(T){u.value||h(T)},b=function(T){u.value=!0,s("compositionstart",T)},E=function(T){u.value=!1,s("compositionend",T)},v=Lt("input-search",t),m=v.prefixCls,y=v.getPrefixCls,g=v.direction,w=v.size,x=ue(function(){return y("input",t.inputPrefixCls)});return function(){var O,T,P,A,S,C=t.disabled,I=t.loading,M=t.addonAfter,F=M===void 0?(O=r.addonAfter)===null||O===void 0?void 0:O.call(r):M,z=t.suffix,U=z===void 0?(T=r.suffix)===null||T===void 0?void 0:T.call(r):z,G=bo(t,Qq),D=t.enterButton,R=D===void 0?(P=(A=r.enterButton)===null||A===void 0?void 0:A.call(r))!==null&&P!==void 0?P:!1:D;R=R||R==="";var N=typeof R=="boolean"?X(nD,null,null):null,L="".concat(m.value,"-button"),q=Array.isArray(R)?R[0]:R,Y,K=q.type&&JE(q.type)&&q.type.__ANT_BUTTON;if(K||q.tagName==="button")Y=to(q,re({onMousedown:d,onClick:h,key:"enterButton"},K?{class:L,size:w.value}:{}),!1);else{var B=N&&!R;Y=X(Xr,{class:L,type:R?"primary":void 0,size:w.value,disabled:C,key:"enterButton",onMousedown:d,onClick:h,loading:I,icon:B?N:null},{default:function(){return[B?null:N||R]}})}F&&(Y=[Y,F]);var j=nt(m.value,(S={},ge(S,"".concat(m.value,"-rtl"),g.value==="rtl"),ge(S,"".concat(m.value,"-").concat(w.value),!!w.value),ge(S,"".concat(m.value,"-with-button"),!!R),S),i.class);return X(qt,re(re(re({ref:l},sr(G,["onUpdate:value","onSearch","enterButton"])),i),{},{onPressEnter:_,onCompositionstart:b,onCompositionend:E,size:w.value,prefixCls:x.value,addonAfter:Y,suffix:U,onChange:c,class:j,disabled:C}),r)}}});var nb=function(t){return t!=null&&(Array.isArray(t)?Ta(t).length:!0)};function tH(e){return nb(e.addonBefore)||nb(e.addonAfter)}var nH=["text","input"];const rH=Ce({compatConfig:{MODE:3},name:"ClearableLabeledInput",inheritAttrs:!1,props:{prefixCls:String,inputType:ze.oneOf(Tr("text","input")),value:ze.any,defaultValue:ze.any,allowClear:{type:Boolean,default:void 0},element:ze.any,handleReset:Function,disabled:{type:Boolean,default:void 0},direction:{type:String},size:{type:String},suffix:ze.any,prefix:ze.any,addonBefore:ze.any,addonAfter:ze.any,readonly:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},bordered:{type:Boolean,default:!0},triggerFocus:{type:Function},hidden:Boolean,status:String},setup:function(t,n){var r=n.slots,i=n.attrs,a=fo.useInject(),s=function(f){var p,c=t.value,d=t.disabled,h=t.readonly,_=t.handleReset,b=t.suffix,E=b===void 0?r.suffix:b,v=!d&&!h&&c,m="".concat(f,"-clear-icon");return X(Fc,{onClick:_,onMousedown:function(g){return g.preventDefault()},class:nt((p={},ge(p,"".concat(m,"-hidden"),!v),ge(p,"".concat(m,"-has-suffix"),!!E),p),m),role:"button"},null)},l=function(f,p){var c,d=t.value,h=t.allowClear,_=t.direction,b=t.bordered,E=t.hidden,v=t.status,m=t.addonAfter,y=m===void 0?r.addonAfter:m,g=t.addonBefore,w=g===void 0?r.addonBefore:g,x=a.status,O=a.hasFeedback;if(!h)return to(p,{value:d});var T=nt("".concat(f,"-affix-wrapper"),"".concat(f,"-affix-wrapper-textarea-with-clear-btn"),vs("".concat(f,"-affix-wrapper"),Fv(x,v),O),(c={},ge(c,"".concat(f,"-affix-wrapper-rtl"),_==="rtl"),ge(c,"".concat(f,"-affix-wrapper-borderless"),!b),ge(c,"".concat(i.class),!tH({addonAfter:y,addonBefore:w})&&i.class),c));return X("span",{class:T,style:i.style,hidden:E},[to(p,{style:null,value:d}),s(f)])};return function(){var u,f=t.prefixCls,p=t.inputType,c=t.element,d=c===void 0?(u=r.element)===null||u===void 0?void 0:u.call(r):c;return p===nH[0]?l(f,d):null}}});var iH=` min-height:0 !important; max-height:none !important; height:0 !important; visibility:hidden !important; overflow:hidden !important; position:absolute !important; z-index:-1000 !important; top:0 !important; right:0 !important `,oH=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],jd={},jn;function aH(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&jd[n])return jd[n];var r=window.getComputedStyle(e),i=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),s=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l=oH.map(function(f){return"".concat(f,":").concat(r.getPropertyValue(f))}).join(";"),u={sizingStyle:l,paddingSize:a,borderSize:s,boxSizing:i};return t&&n&&(jd[n]=u),u}function sH(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;jn||(jn=document.createElement("textarea"),jn.setAttribute("tab-index","-1"),jn.setAttribute("aria-hidden","true"),document.body.appendChild(jn)),e.getAttribute("wrap")?jn.setAttribute("wrap",e.getAttribute("wrap")):jn.removeAttribute("wrap");var i=aH(e,t),a=i.paddingSize,s=i.borderSize,l=i.boxSizing,u=i.sizingStyle;jn.setAttribute("style","".concat(u,";").concat(iH)),jn.value=e.value||e.placeholder||"";var f=Number.MIN_SAFE_INTEGER,p=Number.MAX_SAFE_INTEGER,c=jn.scrollHeight,d;if(l==="border-box"?c+=s:l==="content-box"&&(c-=a),n!==null||r!==null){jn.value=" ";var h=jn.scrollHeight-a;n!==null&&(f=h*n,l==="border-box"&&(f=f+a+s),c=Math.max(f,c)),r!==null&&(p=h*r,l==="border-box"&&(p=p+a+s),d=c>p?"":"hidden",c=Math.min(p,c))}return{height:"".concat(c,"px"),minHeight:"".concat(f,"px"),maxHeight:"".concat(p,"px"),overflowY:d,resize:"none"}}var Dd=0,rb=1,lH=2,uH=Ce({compatConfig:{MODE:3},name:"ResizableTextArea",inheritAttrs:!1,props:oO(),setup:function(t,n){var r=n.attrs,i=n.emit,a=n.expose,s,l,u=ae(),f=ae({}),p=ae(Dd);tn(function(){Dn.cancel(s),Dn.cancel(l)});var c=function(){try{if(document.activeElement===u.value){var m=u.value.selectionStart,y=u.value.selectionEnd;u.value.setSelectionRange(m,y)}}catch{}},d=function(){var m=t.autoSize||t.autosize;if(!(!m||!u.value)){var y=m.minRows,g=m.maxRows;f.value=sH(u.value,!1,y,g),p.value=rb,Dn.cancel(l),l=Dn(function(){p.value=lH,l=Dn(function(){p.value=Dd,c()})})}},h=function(){Dn.cancel(s),s=Dn(d)},_=function(m){if(p.value===Dd){i("resize",m);var y=t.autoSize||t.autosize;y&&h()}};ia(t.autosize===void 0,"Input.TextArea","autosize is deprecated, please use autoSize instead.");var b=function(){var m=t.prefixCls,y=t.autoSize,g=t.autosize,w=t.disabled,x=sr(t,["prefixCls","onPressEnter","autoSize","autosize","defaultValue","allowClear","type","lazy","maxlength","valueModifiers"]),O=nt(m,r.class,ge({},"".concat(m,"-disabled"),w)),T=[r.style,f.value,p.value===rb?{overflowX:"hidden",overflowY:"hidden"}:null],P=re(re(re({},x),r),{},{style:T,class:O});return P.autofocus||delete P.autofocus,P.rows===0&&delete P.rows,X(T5,{onResize:_,disabled:!(y||g)},{default:function(){return[ro(X("textarea",re(re({},P),{},{ref:u}),null),[[yS]])]}})};Le(function(){return t.value},function(){Qe(function(){d()})}),wt(function(){Qe(function(){d()})});var E=zt();return a({resizeTextarea:d,textArea:u,instance:E}),function(){return b()}}});const cH=uH;function aO(e,t){return Ct(e||"").slice(0,t).join("")}function ib(e,t,n,r){var i=n;return e?i=aO(n,r):Ct(t||"").lengthr&&(i=t),i}const fH=Ce({compatConfig:{MODE:3},name:"ATextarea",inheritAttrs:!1,props:oO(),setup:function(t,n){var r=n.attrs,i=n.expose,a=n.emit,s=Lv(),l=fo.useInject(),u=ue(function(){return Fv(l.status,t.status)}),f=ae(t.value===void 0?t.defaultValue:t.value),p=ae(),c=ae(""),d=Lt("input",t),h=d.prefixCls,_=d.size,b=d.direction,E=ue(function(){return t.showCount===""||t.showCount||!1}),v=ue(function(){return Number(t.maxlength)>0}),m=ae(!1),y=ae(),g=ae(0),w=function(G){m.value=!0,y.value=c.value,g.value=G.currentTarget.selectionStart,a("compositionstart",G)},x=function(G){m.value=!1;var D=G.currentTarget.value;if(v.value){var R,N=g.value>=t.maxlength+1||g.value===((R=y.value)===null||R===void 0?void 0:R.length);D=ib(N,y.value,D,t.maxlength)}D!==c.value&&(A(D),bs(G.currentTarget,G,I,D)),a("compositionend",G)},O=zt();Le(function(){return t.value},function(){"value"in O.vnode.props;var U;f.value=(U=t.value)!==null&&U!==void 0?U:""});var T=function(G){var D;tO((D=p.value)===null||D===void 0?void 0:D.textArea,G)},P=function(){var G,D;(G=p.value)===null||G===void 0||(D=G.textArea)===null||D===void 0||D.blur()},A=function(G,D){f.value!==G&&(t.value===void 0?f.value=G:Qe(function(){if(p.value.textArea.value!==c.value){var R,N,L;(R=p.value)===null||R===void 0||(N=(L=R.instance).update)===null||N===void 0||N.call(L)}}),Qe(function(){D&&D()}))},S=function(G){G.keyCode===13&&a("pressEnter",G),a("keydown",G)},C=function(G){var D=t.onBlur;D==null||D(G),s.onFieldBlur()},I=function(G){a("update:value",G.target.value),a("change",G),a("input",G),s.onFieldChange()},M=function(G){bs(p.value.textArea,G,I),A("",function(){T()})},F=function(G){var D=G.target.composing,R=G.target.value;if(m.value=!!(G.isComposing||D),!(m.value&&t.lazy||f.value===R)){if(v.value){var N=G.target,L=N.selectionStart>=t.maxlength+1||N.selectionStart===R.length||!N.selectionStart;R=ib(L,c.value,R,t.maxlength)}bs(G.currentTarget,G,I,R),A(R)}},z=function(){var G,D,R,N=r.style,L=r.class,q=t.bordered,Y=q===void 0?!0:q,K=re(re(re({},sr(t,["allowClear"])),r),{},{style:E.value?{}:N,class:[(G={},ge(G,"".concat(h.value,"-borderless"),!Y),ge(G,"".concat(L),L&&!E.value),ge(G,"".concat(h.value,"-sm"),_.value==="small"),ge(G,"".concat(h.value,"-lg"),_.value==="large"),G),vs(h.value,u.value)],showCount:null,prefixCls:h.value,onInput:F,onChange:F,onBlur:C,onKeydown:S,onCompositionstart:w,onCompositionend:x});return(D=t.valueModifiers)!==null&&D!==void 0&&D.lazy&&delete K.onInput,X(cH,re(re({},K),{},{id:(R=K.id)!==null&&R!==void 0?R:s.id.value,ref:p,maxlength:t.maxlength}),null)};return i({focus:T,blur:P,resizableTextArea:p}),Ke(function(){var U=np(f.value);!m.value&&v.value&&(t.value===null||t.value===void 0)&&(U=aO(U,t.maxlength)),c.value=U}),function(){var U=t.maxlength,G=t.bordered,D=G===void 0?!0:G,R=t.hidden,N=r.style,L=r.class,q=re(re(re({},t),r),{},{prefixCls:h.value,inputType:"text",handleReset:M,direction:b.value,bordered:D,style:E.value?void 0:N}),Y=X(rH,re(re({},q),{},{value:c.value,status:t.status}),{element:z});if(E.value||l.hasFeedback){var K,B=Ct(c.value).length,j="";_t(E.value)==="object"?j=E.value.formatter({count:B,maxlength:U}):j="".concat(B).concat(v.value?" / ".concat(U):""),Y=X("div",{hidden:R,class:nt("".concat(h.value,"-textarea"),(K={},ge(K,"".concat(h.value,"-textarea-rtl"),b.value==="rtl"),ge(K,"".concat(h.value,"-textarea-show-count"),E.value),ge(K,"".concat(h.value,"-textarea-in-form-item"),l.isFormItemInput),K),"".concat(h.value,"-textarea-show-count"),L),style:N,"data-count":_t(j)!=="object"?j:void 0},[Y,l.hasFeedback&&X("span",{class:"".concat(h.value,"-textarea-suffix")},[l.feedbackIcon])])}return Y}}});var dH={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};const hH=dH;function ob(e){for(var t=1;t{if(!r.value){yn.error("\u8BF7\u8F93\u5165\u5BC6\u7801\uFF01");return}await K$(r.value)?i("close"):yn.error("\u5BC6\u7801\u9519\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8F93\u5165\u3002")});return(s,l)=>(se(),We(xe(Vn),{width:"400px",title:"\u8BBF\u95EE\u5BC6\u7801",visible:n.value,centered:"",class:"model-table",closable:!1},{footer:De(()=>[X(xe(Xr),{key:"submit",type:"primary",onClick:xe(a)},{default:De(()=>[st("\u786E\u5B9A")]),_:1},8,["onClick"])]),default:De(()=>[X(xe(ZS),{label:"\u8BBF\u95EE\u5BC6\u7801",name:"password"},{default:De(()=>[X(xe(sO),{value:r.value,"onUpdate:value":l[0]||(l[0]=u=>r.value=u),placeholder:"\u8BF7\u8F93\u5165"},null,8,["value"])]),_:1})]),_:1},8,["visible"]))}}),zH=Ce({__name:"app",setup(e){const t=ae(!1),n=ae(!1),r=Le($u,async s=>{if(s){if(s===Ie.signModel||s===Ie.error){t.value=!0;return}}else return;$u.value===Ie.show&&!He.share&&(n.value=!0,await new Promise(l=>{const u=Ke(()=>{n.value||(u(),l())})})),He.share=!0,await xL(),lo.value?(await U_(FE),ts.value=lo.value.caseTitle):await Qs.replace({name:Ie.error}),r(),t.value=!0,console.log(t.value)},{immediate:!0}),i=ue(()=>({[`sys-view-${ot.viewMode}`]:!0,"edit-mode":Zp.value||ot.showToolbar,"setting-mode":ot.showToolbar,"hide-right-box-mode":!ot.showRightPano,"hide-left-box-mode":!ot.showLeftPano,"show-bottom-box-mode":ot.showBottomBar,"hide-top-bar-mode":!ot.showHeadBar})),a=ue(()=>{const s={};return ot.showBottomBar&&(s["--editor-menu-bottom"]=ot.bottomBarHeight),s});return(s,l)=>{const u=mt("router-view"),f=mt("ui-editor-layout");return se(),he(Pe,null,[X(f,{onClick:l[0]||(l[0]=hc(()=>{},["stop"])),id:"layout-app",class:$e(["editor-layout",i.value]),style:it(a.value)},{default:De(()=>[t.value?(se(),he("div",{key:0,ref:p=>hh.value=p},[X(u,null,{default:De(({Component:p})=>[(se(),We(xC,null,[(se(),We(r1(p)))],1024))]),_:1})],512)):Ee("",!0)]),_:1},8,["style","class"]),n.value?(se(),We(VH,{key:0,onClose:l[1]||(l[1]=p=>n.value=!1)})):Ee("",!0)],64)}}});const WH=Et(zH,[["__scopeId","data-v-fd91e49a"]]);var uO={exports:{}};/*! * Quill Editor v1.3.7 * https://quilljs.com/ * Copyright (c) 2014, Jason Chen * Copyright (c) 2013, salesforce.com */(function(e,t){(function(r,i){e.exports=i()})(typeof self<"u"?self:Ut,function(){return function(n){var r={};function i(a){if(r[a])return r[a].exports;var s=r[a]={i:a,l:!1,exports:{}};return n[a].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=n,i.c=r,i.d=function(a,s,l){i.o(a,s)||Object.defineProperty(a,s,{configurable:!1,enumerable:!0,get:l})},i.n=function(a){var s=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(s,"a",s),s},i.o=function(a,s){return Object.prototype.hasOwnProperty.call(a,s)},i.p="",i(i.s=109)}([function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=i(17),s=i(18),l=i(19),u=i(45),f=i(46),p=i(47),c=i(48),d=i(49),h=i(12),_=i(32),b=i(33),E=i(31),v=i(1),m={Scope:v.Scope,create:v.create,find:v.find,query:v.query,register:v.register,Container:a.default,Format:s.default,Leaf:l.default,Embed:c.default,Scroll:u.default,Block:p.default,Inline:f.default,Text:d.default,Attributor:{Attribute:h.default,Class:_.default,Style:b.default,Store:E.default}};r.default=m},function(n,r,i){var a=this&&this.__extends||function(){var E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,m){v.__proto__=m}||function(v,m){for(var y in m)m.hasOwnProperty(y)&&(v[y]=m[y])};return function(v,m){E(v,m);function y(){this.constructor=v}v.prototype=m===null?Object.create(m):(y.prototype=m.prototype,new y)}}();Object.defineProperty(r,"__esModule",{value:!0});var s=function(E){a(v,E);function v(m){var y=this;return m="[Parchment] "+m,y=E.call(this,m)||this,y.message=m,y.name=y.constructor.name,y}return v}(Error);r.ParchmentError=s;var l={},u={},f={},p={};r.DATA_KEY="__blot";var c;(function(E){E[E.TYPE=3]="TYPE",E[E.LEVEL=12]="LEVEL",E[E.ATTRIBUTE=13]="ATTRIBUTE",E[E.BLOT=14]="BLOT",E[E.INLINE=7]="INLINE",E[E.BLOCK=11]="BLOCK",E[E.BLOCK_BLOT=10]="BLOCK_BLOT",E[E.INLINE_BLOT=6]="INLINE_BLOT",E[E.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",E[E.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",E[E.ANY=15]="ANY"})(c=r.Scope||(r.Scope={}));function d(E,v){var m=_(E);if(m==null)throw new s("Unable to create "+E+" blot");var y=m,g=E instanceof Node||E.nodeType===Node.TEXT_NODE?E:y.create(v);return new y(g,v)}r.create=d;function h(E,v){return v===void 0&&(v=!1),E==null?null:E[r.DATA_KEY]!=null?E[r.DATA_KEY].blot:v?h(E.parentNode,v):null}r.find=h;function _(E,v){v===void 0&&(v=c.ANY);var m;if(typeof E=="string")m=p[E]||l[E];else if(E instanceof Text||E.nodeType===Node.TEXT_NODE)m=p.text;else if(typeof E=="number")E&c.LEVEL&c.BLOCK?m=p.block:E&c.LEVEL&c.INLINE&&(m=p.inline);else if(E instanceof HTMLElement){var y=(E.getAttribute("class")||"").split(/\s+/);for(var g in y)if(m=u[y[g]],m)break;m=m||f[E.tagName]}return m==null?null:v&c.LEVEL&m.scope&&v&c.TYPE&m.scope?m:null}r.query=_;function b(){for(var E=[],v=0;v1)return E.map(function(g){return b(g)});var m=E[0];if(typeof m.blotName!="string"&&typeof m.attrName!="string")throw new s("Invalid definition");if(m.blotName==="abstract")throw new s("Cannot register abstract class");if(p[m.blotName||m.attrName]=m,typeof m.keyName=="string")l[m.keyName]=m;else if(m.className!=null&&(u[m.className]=m),m.tagName!=null){Array.isArray(m.tagName)?m.tagName=m.tagName.map(function(g){return g.toUpperCase()}):m.tagName=m.tagName.toUpperCase();var y=Array.isArray(m.tagName)?m.tagName:[m.tagName];y.forEach(function(g){(f[g]==null||m.className==null)&&(f[g]=m)})}return m}r.register=b},function(n,r,i){var a=i(51),s=i(11),l=i(3),u=i(20),f=String.fromCharCode(0),p=function(c){Array.isArray(c)?this.ops=c:c!=null&&Array.isArray(c.ops)?this.ops=c.ops:this.ops=[]};p.prototype.insert=function(c,d){var h={};return c.length===0?this:(h.insert=c,d!=null&&typeof d=="object"&&Object.keys(d).length>0&&(h.attributes=d),this.push(h))},p.prototype.delete=function(c){return c<=0?this:this.push({delete:c})},p.prototype.retain=function(c,d){if(c<=0)return this;var h={retain:c};return d!=null&&typeof d=="object"&&Object.keys(d).length>0&&(h.attributes=d),this.push(h)},p.prototype.push=function(c){var d=this.ops.length,h=this.ops[d-1];if(c=l(!0,{},c),typeof h=="object"){if(typeof c.delete=="number"&&typeof h.delete=="number")return this.ops[d-1]={delete:h.delete+c.delete},this;if(typeof h.delete=="number"&&c.insert!=null&&(d-=1,h=this.ops[d-1],typeof h!="object"))return this.ops.unshift(c),this;if(s(c.attributes,h.attributes)){if(typeof c.insert=="string"&&typeof h.insert=="string")return this.ops[d-1]={insert:h.insert+c.insert},typeof c.attributes=="object"&&(this.ops[d-1].attributes=c.attributes),this;if(typeof c.retain=="number"&&typeof h.retain=="number")return this.ops[d-1]={retain:h.retain+c.retain},typeof c.attributes=="object"&&(this.ops[d-1].attributes=c.attributes),this}}return d===this.ops.length?this.ops.push(c):this.ops.splice(d,0,c),this},p.prototype.chop=function(){var c=this.ops[this.ops.length-1];return c&&c.retain&&!c.attributes&&this.ops.pop(),this},p.prototype.filter=function(c){return this.ops.filter(c)},p.prototype.forEach=function(c){this.ops.forEach(c)},p.prototype.map=function(c){return this.ops.map(c)},p.prototype.partition=function(c){var d=[],h=[];return this.forEach(function(_){var b=c(_)?d:h;b.push(_)}),[d,h]},p.prototype.reduce=function(c,d){return this.ops.reduce(c,d)},p.prototype.changeLength=function(){return this.reduce(function(c,d){return d.insert?c+u.length(d):d.delete?c-d.delete:c},0)},p.prototype.length=function(){return this.reduce(function(c,d){return c+u.length(d)},0)},p.prototype.slice=function(c,d){c=c||0,typeof d!="number"&&(d=1/0);for(var h=[],_=u.iterator(this.ops),b=0;b0&&h.next(b.retain-E)}for(var v=new p(_);d.hasNext()||h.hasNext();)if(h.peekType()==="insert")v.push(h.next());else if(d.peekType()==="delete")v.push(d.next());else{var m=Math.min(d.peekLength(),h.peekLength()),y=d.next(m),g=h.next(m);if(typeof g.retain=="number"){var w={};typeof y.retain=="number"?w.retain=m:w.insert=y.insert;var x=u.attributes.compose(y.attributes,g.attributes,typeof y.retain=="number");if(x&&(w.attributes=x),v.push(w),!h.hasNext()&&s(v.ops[v.ops.length-1],w)){var O=new p(d.rest());return v.concat(O).chop()}}else typeof g.delete=="number"&&typeof y.retain=="number"&&v.push(g)}return v.chop()},p.prototype.concat=function(c){var d=new p(this.ops.slice());return c.ops.length>0&&(d.push(c.ops[0]),d.ops=d.ops.concat(c.ops.slice(1))),d},p.prototype.diff=function(c,d){if(this.ops===c.ops)return new p;var h=[this,c].map(function(m){return m.map(function(y){if(y.insert!=null)return typeof y.insert=="string"?y.insert:f;var g=m===c?"on":"with";throw new Error("diff() called "+g+" non-document")}).join("")}),_=new p,b=a(h[0],h[1],d),E=u.iterator(this.ops),v=u.iterator(c.ops);return b.forEach(function(m){for(var y=m[1].length;y>0;){var g=0;switch(m[0]){case a.INSERT:g=Math.min(v.peekLength(),y),_.push(v.next(g));break;case a.DELETE:g=Math.min(y,E.peekLength()),E.next(g),_.delete(g);break;case a.EQUAL:g=Math.min(E.peekLength(),v.peekLength(),y);var w=E.next(g),x=v.next(g);s(w.insert,x.insert)?_.retain(g,u.attributes.diff(w.attributes,x.attributes)):_.push(x).delete(g);break}y-=g}}),_.chop()},p.prototype.eachLine=function(c,d){d=d||` `;for(var h=u.iterator(this.ops),_=new p,b=0;h.hasNext();){if(h.peekType()!=="insert")return;var E=h.peek(),v=u.length(E)-h.peekLength(),m=typeof E.insert=="string"?E.insert.indexOf(d,v)-v:-1;if(m<0)_.push(h.next());else if(m>0)_.push(h.next(m));else{if(c(_,h.next(1).attributes||{},b)===!1)return;b+=1,_=new p}}_.length()>0&&c(_,{},b)},p.prototype.transform=function(c,d){if(d=!!d,typeof c=="number")return this.transformPosition(c,d);for(var h=u.iterator(this.ops),_=u.iterator(c.ops),b=new p;h.hasNext()||_.hasNext();)if(h.peekType()==="insert"&&(d||_.peekType()!=="insert"))b.retain(u.length(h.next()));else if(_.peekType()==="insert")b.push(_.next());else{var E=Math.min(h.peekLength(),_.peekLength()),v=h.next(E),m=_.next(E);if(v.delete)continue;m.delete?b.push(m):b.retain(E,u.attributes.transform(v.attributes,m.attributes,d))}return b.chop()},p.prototype.transformPosition=function(c,d){d=!!d;for(var h=u.iterator(this.ops),_=0;h.hasNext()&&_<=c;){var b=h.peekLength(),E=h.peekType();if(h.next(),E==="delete"){c-=Math.min(b,c-_);continue}else E==="insert"&&(_"u"||i.call(h,E)},p=function(h,_){s&&_.name==="__proto__"?s(h,_.name,{enumerable:!0,configurable:!0,value:_.newValue,writable:!0}):h[_.name]=_.newValue},c=function(h,_){if(_==="__proto__")if(i.call(h,_)){if(l)return l(h,_).value}else return;return h[_]};n.exports=function d(){var h,_,b,E,v,m,y=arguments[0],g=1,w=arguments.length,x=!1;for(typeof y=="boolean"&&(x=y,y=arguments[1]||{},g=2),(y==null||typeof y!="object"&&typeof y!="function")&&(y={});g0&&(M1&&arguments[1]!==void 0?arguments[1]:!1;if(F&&(M===0||M>=this.length()-O)){var z=this.clone();return M===0?(this.parent.insertBefore(z,this),this):(this.parent.insertBefore(z,this.next),z)}else{var U=s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"split",this).call(this,M,F);return this.cache={},U}}}]),C}(d.default.Block);P.blotName="block",P.tagName="P",P.defaultChild="break",P.allowedChildren=[E.default,d.default.Embed,m.default];function A(S){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return S==null||(typeof S.formats=="function"&&(C=(0,u.default)(C,S.formats())),S.parent==null||S.parent.blotName=="scroll"||S.parent.statics.scope!==S.statics.scope)?C:A(S.parent,C)}r.bubbleFormats=A,r.BlockEmbed=T,r.default=P},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.overload=r.expandConfig=void 0;var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(D){return typeof D}:function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},s=function(){function D(R,N){var L=[],q=!0,Y=!1,K=void 0;try{for(var B=R[Symbol.iterator](),j;!(q=(j=B.next()).done)&&(L.push(j.value),!(N&&L.length===N));q=!0);}catch(Z){Y=!0,K=Z}finally{try{!q&&B.return&&B.return()}finally{if(Y)throw K}}return L}return function(R,N){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return D(R,N);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function D(R,N){for(var L=0;L2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof N!="string"){var K=N.attrName||N.blotName;typeof K=="string"?this.register("formats/"+K,N,L):Object.keys(N).forEach(function(B){q.register(B,N[B],L)})}else this.imports[N]!=null&&!Y&&I.warn("Overwriting "+N+" with",L),this.imports[N]=L,(N.startsWith("blots/")||N.startsWith("formats/"))&&L.blotName!=="abstract"?v.default.register(L):N.startsWith("modules")&&typeof L.register=="function"&&L.register()}}]);function D(R){var N=this,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(C(this,D),this.options=F(R,L),this.container=this.options.container,this.container==null)return I.error("Invalid Quill container",R);this.options.debug&&D.debug(this.options.debug);var q=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new h.default,this.scroll=v.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new c.default(this.scroll),this.selection=new y.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(h.default.events.EDITOR_CHANGE,function(K){K===h.default.events.TEXT_CHANGE&&N.root.classList.toggle("ql-blank",N.editor.isBlank())}),this.emitter.on(h.default.events.SCROLL_UPDATE,function(K,B){var j=N.selection.lastRange,Z=j&&j.length===0?j.index:void 0;z.call(N,function(){return N.editor.update(null,B,Z)},K)});var Y=this.clipboard.convert(`
`+q+"


");this.setContents(Y),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return l(D,[{key:"addContainer",value:function(N){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof N=="string"){var q=N;N=document.createElement("div"),N.classList.add(q)}return this.container.insertBefore(N,L),N}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(N,L,q){var Y=this,K=U(N,L,q),B=s(K,4);return N=B[0],L=B[1],q=B[3],z.call(this,function(){return Y.editor.deleteText(N,L)},q,N,-1*L)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(N),this.container.classList.toggle("ql-disabled",!N)}},{key:"focus",value:function(){var N=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=N,this.scrollIntoView()}},{key:"format",value:function(N,L){var q=this,Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:h.default.sources.API;return z.call(this,function(){var K=q.getSelection(!0),B=new f.default;if(K==null)return B;if(v.default.query(N,v.default.Scope.BLOCK))B=q.editor.formatLine(K.index,K.length,S({},N,L));else{if(K.length===0)return q.selection.format(N,L),B;B=q.editor.formatText(K.index,K.length,S({},N,L))}return q.setSelection(K,h.default.sources.SILENT),B},Y)}},{key:"formatLine",value:function(N,L,q,Y,K){var B=this,j=void 0,Z=U(N,L,q,Y,K),J=s(Z,4);return N=J[0],L=J[1],j=J[2],K=J[3],z.call(this,function(){return B.editor.formatLine(N,L,j)},K,N,0)}},{key:"formatText",value:function(N,L,q,Y,K){var B=this,j=void 0,Z=U(N,L,q,Y,K),J=s(Z,4);return N=J[0],L=J[1],j=J[2],K=J[3],z.call(this,function(){return B.editor.formatText(N,L,j)},K,N,0)}},{key:"getBounds",value:function(N){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,q=void 0;typeof N=="number"?q=this.selection.getBounds(N,L):q=this.selection.getBounds(N.index,N.length);var Y=this.container.getBoundingClientRect();return{bottom:q.bottom-Y.top,height:q.height,left:q.left-Y.left,right:q.right-Y.left,top:q.top-Y.top,width:q.width}}},{key:"getContents",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-N,q=U(N,L),Y=s(q,2);return N=Y[0],L=Y[1],this.editor.getContents(N,L)}},{key:"getFormat",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof N=="number"?this.editor.getFormat(N,L):this.editor.getFormat(N.index,N.length)}},{key:"getIndex",value:function(N){return N.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(N){return this.scroll.leaf(N)}},{key:"getLine",value:function(N){return this.scroll.line(N)}},{key:"getLines",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof N!="number"?this.scroll.lines(N.index,N.length):this.scroll.lines(N,L)}},{key:"getModule",value:function(N){return this.theme.modules[N]}},{key:"getSelection",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return N&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-N,q=U(N,L),Y=s(q,2);return N=Y[0],L=Y[1],this.editor.getText(N,L)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(N,L,q){var Y=this,K=arguments.length>3&&arguments[3]!==void 0?arguments[3]:D.sources.API;return z.call(this,function(){return Y.editor.insertEmbed(N,L,q)},K,N)}},{key:"insertText",value:function(N,L,q,Y,K){var B=this,j=void 0,Z=U(N,0,q,Y,K),J=s(Z,4);return N=J[0],j=J[2],K=J[3],z.call(this,function(){return B.editor.insertText(N,L,j)},K,N,L.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(N,L,q){this.clipboard.dangerouslyPasteHTML(N,L,q)}},{key:"removeFormat",value:function(N,L,q){var Y=this,K=U(N,L,q),B=s(K,4);return N=B[0],L=B[1],q=B[3],z.call(this,function(){return Y.editor.removeFormat(N,L)},q,N)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(N){var L=this,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.default.sources.API;return z.call(this,function(){N=new f.default(N);var Y=L.getLength(),K=L.editor.deleteText(0,Y),B=L.editor.applyDelta(N),j=B.ops[B.ops.length-1];j!=null&&typeof j.insert=="string"&&j.insert[j.insert.length-1]===` `&&(L.editor.deleteText(L.getLength()-1,1),B.delete(1));var Z=K.compose(B);return Z},q)}},{key:"setSelection",value:function(N,L,q){if(N==null)this.selection.setRange(null,L||D.sources.API);else{var Y=U(N,L,q),K=s(Y,4);N=K[0],L=K[1],q=K[3],this.selection.setRange(new m.Range(N,L),q),q!==h.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(N){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.default.sources.API,q=new f.default().insert(N);return this.setContents(q,L)}},{key:"update",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:h.default.sources.USER,L=this.scroll.update(N);return this.selection.update(N),L}},{key:"updateContents",value:function(N){var L=this,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.default.sources.API;return z.call(this,function(){return N=new f.default(N),L.editor.applyDelta(N,q)},q,!0)}}]),D}();M.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},M.events=h.default.events,M.sources=h.default.sources,M.version="1.3.7",M.imports={delta:f.default,parchment:v.default,"core/module":b.default,"core/theme":P.default};function F(D,R){if(R=(0,w.default)(!0,{container:D,modules:{clipboard:!0,keyboard:!0,history:!0}},R),!R.theme||R.theme===M.DEFAULTS.theme)R.theme=P.default;else if(R.theme=M.import("themes/"+R.theme),R.theme==null)throw new Error("Invalid theme "+R.theme+". Did you register it?");var N=(0,w.default)(!0,{},R.theme.DEFAULTS);[N,R].forEach(function(Y){Y.modules=Y.modules||{},Object.keys(Y.modules).forEach(function(K){Y.modules[K]===!0&&(Y.modules[K]={})})});var L=Object.keys(N.modules).concat(Object.keys(R.modules)),q=L.reduce(function(Y,K){var B=M.import("modules/"+K);return B==null?I.error("Cannot load "+K+" module. Are you sure you registered it?"):Y[K]=B.DEFAULTS||{},Y},{});return R.modules!=null&&R.modules.toolbar&&R.modules.toolbar.constructor!==Object&&(R.modules.toolbar={container:R.modules.toolbar}),R=(0,w.default)(!0,{},M.DEFAULTS,{modules:q},N,R),["bounds","container","scrollingContainer"].forEach(function(Y){typeof R[Y]=="string"&&(R[Y]=document.querySelector(R[Y]))}),R.modules=Object.keys(R.modules).reduce(function(Y,K){return R.modules[K]&&(Y[K]=R.modules[K]),Y},{}),R}function z(D,R,N,L){if(this.options.strict&&!this.isEnabled()&&R===h.default.sources.USER)return new f.default;var q=N==null?null:this.getSelection(),Y=this.editor.delta,K=D();if(q!=null&&(N===!0&&(N=q.index),L==null?q=G(q,K,R):L!==0&&(q=G(q,N,L,R)),this.setSelection(q,h.default.sources.SILENT)),K.length()>0){var B,j=[h.default.events.TEXT_CHANGE,K,Y,R];if((B=this.emitter).emit.apply(B,[h.default.events.EDITOR_CHANGE].concat(j)),R!==h.default.sources.SILENT){var Z;(Z=this.emitter).emit.apply(Z,j)}}return K}function U(D,R,N,L,q){var Y={};return typeof D.index=="number"&&typeof D.length=="number"?typeof R!="number"?(q=L,L=N,N=R,R=D.length,D=D.index):(R=D.length,D=D.index):typeof R!="number"&&(q=L,L=N,N=R,R=0),(typeof N>"u"?"undefined":a(N))==="object"?(Y=N,q=L):typeof N=="string"&&(L!=null?Y[N]=L:q=N),q=q||h.default.sources.API,[D,R,Y,q]}function G(D,R,N,L){if(D==null)return null;var q=void 0,Y=void 0;if(R instanceof f.default){var K=[D.index,D.index+D.length].map(function(J){return R.transformPosition(J,L!==h.default.sources.USER)}),B=s(K,2);q=B[0],Y=B[1]}else{var j=[D.index,D.index+D.length].map(function(J){return J=0?J+N:Math.max(R,J+N)}),Z=s(j,2);q=Z[0],Y=Z[1]}return new m.Range(q,Y-q)}r.expandConfig=F,r.overload=U,r.default=M},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function E(v,m){for(var y=0;y0){var g=this.parent.isolate(this.offset(),this.length());this.moveChildren(g),g.wrap(this)}}}],[{key:"compare",value:function(y,g){var w=v.order.indexOf(y),x=v.order.indexOf(g);return w>=0||x>=0?w-x:y===g?0:y1?x-1:0),T=1;T1&&arguments[1]!==void 0?arguments[1]:{};a(this,l),this.quill=u,this.options=f};s.DEFAULTS={},r.default=s},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=["error","warn","log","info"],s="warn";function l(f){if(a.indexOf(f)<=a.indexOf(s)){for(var p,c=arguments.length,d=Array(c>1?c-1:0),h=1;h0&&typeof d[0]!="number")}function c(d,h,_){var b,E;if(f(d)||f(h)||d.prototype!==h.prototype)return!1;if(l(d))return l(h)?(d=a.call(d),h=a.call(h),u(d,h,_)):!1;if(p(d)){if(!p(h)||d.length!==h.length)return!1;for(b=0;b=0;b--)if(v[b]!=m[b])return!1;for(b=v.length-1;b>=0;b--)if(E=v[b],!u(d[E],h[E],_))return!1;return typeof d==typeof h}},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=i(1),s=function(){function l(u,f,p){p===void 0&&(p={}),this.attrName=u,this.keyName=f;var c=a.Scope.TYPE&a.Scope.ATTRIBUTE;p.scope!=null?this.scope=p.scope&a.Scope.LEVEL|c:this.scope=a.Scope.ATTRIBUTE,p.whitelist!=null&&(this.whitelist=p.whitelist)}return l.keys=function(u){return[].map.call(u.attributes,function(f){return f.name})},l.prototype.add=function(u,f){return this.canAdd(u,f)?(u.setAttribute(this.keyName,f),!0):!1},l.prototype.canAdd=function(u,f){var p=a.query(u,a.Scope.BLOT&(this.scope|a.Scope.TYPE));return p==null?!1:this.whitelist==null?!0:typeof f=="string"?this.whitelist.indexOf(f.replace(/["']/g,""))>-1:this.whitelist.indexOf(f)>-1},l.prototype.remove=function(u){u.removeAttribute(this.keyName)},l.prototype.value=function(u){var f=u.getAttribute(this.keyName);return this.canAdd(u,f)&&f?f:""},l}();r.default=s},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.Code=void 0;var a=function(){function T(P,A){var S=[],C=!0,I=!1,M=void 0;try{for(var F=P[Symbol.iterator](),z;!(C=(z=F.next()).done)&&(S.push(z.value),!(A&&S.length===A));C=!0);}catch(U){I=!0,M=U}finally{try{!C&&F.return&&F.return()}finally{if(I)throw M}}return S}return function(P,A){if(Array.isArray(P))return P;if(Symbol.iterator in Object(P))return T(P,A);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function T(P,A){for(var S=0;S=S+C)){var z=this.newlineIndex(S,!0)+1,U=F-z+1,G=this.isolate(z,U),D=G.next;G.format(I,M),D instanceof P&&D.formatAt(0,S-z+C-U,I,M)}}}},{key:"insertAt",value:function(S,C,I){if(I==null){var M=this.descendant(v.default,S),F=a(M,2),z=F[0],U=F[1];z.insertAt(U,C)}}},{key:"length",value:function(){var S=this.domNode.textContent.length;return this.domNode.textContent.endsWith(` `)?S:S+1}},{key:"newlineIndex",value:function(S){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(C)return this.domNode.textContent.slice(0,S).lastIndexOf(` `);var I=this.domNode.textContent.slice(S).indexOf(` `);return I>-1?S+I:-1}},{key:"optimize",value:function(S){this.domNode.textContent.endsWith(` `)||this.appendChild(c.default.create("text",` `)),l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"optimize",this).call(this,S);var C=this.next;C!=null&&C.prev===this&&C.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===C.statics.formats(C.domNode)&&(C.optimize(S),C.moveChildren(this),C.remove())}},{key:"replace",value:function(S){l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"replace",this).call(this,S),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(C){var I=c.default.find(C);I==null?C.parentNode.removeChild(C):I instanceof c.default.Embed?I.remove():I.unwrap()})}}],[{key:"create",value:function(S){var C=l(P.__proto__||Object.getPrototypeOf(P),"create",this).call(this,S);return C.setAttribute("spellcheck",!1),C}},{key:"formats",value:function(){return!0}}]),P}(h.default);O.blotName="code-block",O.tagName="PRE",O.TAB=" ",r.Code=x,r.default=O},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(D){return typeof D}:function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},s=function(){function D(R,N){var L=[],q=!0,Y=!1,K=void 0;try{for(var B=R[Symbol.iterator](),j;!(q=(j=B.next()).done)&&(L.push(j.value),!(N&&L.length===N));q=!0);}catch(Z){Y=!0,K=Z}finally{try{!q&&B.return&&B.return()}finally{if(Y)throw K}}return L}return function(R,N){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return D(R,N);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function D(R,N){for(var L=0;L=Y&&!J.endsWith(` `)&&(q=!0),L.scroll.insertAt(K,J);var te=L.scroll.line(K),me=s(te,2),we=me[0],V=me[1],W=(0,S.default)({},(0,m.bubbleFormats)(we));if(we instanceof y.default){var oe=we.descendant(h.default.Leaf,V),pe=s(oe,1),fe=pe[0];W=(0,S.default)(W,(0,m.bubbleFormats)(fe))}Z=c.default.attributes.diff(W,Z)||{}}else if(a(B.insert)==="object"){var ee=Object.keys(B.insert)[0];if(ee==null)return K;L.scroll.insertAt(K,ee,B.insert[ee])}Y+=j}return Object.keys(Z).forEach(function(ie){L.scroll.formatAt(K,j,ie,Z[ie])}),K+j},0),N.reduce(function(K,B){return typeof B.delete=="number"?(L.scroll.deleteAt(K,B.delete),K):K+(B.retain||B.insert.length||1)},0),this.scroll.batchEnd(),this.update(N)}},{key:"deleteText",value:function(N,L){return this.scroll.deleteAt(N,L),this.update(new f.default().retain(N).delete(L))}},{key:"formatLine",value:function(N,L){var q=this,Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(Y).forEach(function(K){if(!(q.scroll.whitelist!=null&&!q.scroll.whitelist[K])){var B=q.scroll.lines(N,Math.max(L,1)),j=L;B.forEach(function(Z){var J=Z.length();if(!(Z instanceof b.default))Z.format(K,Y[K]);else{var te=N-Z.offset(q.scroll),me=Z.newlineIndex(te+j)-te+1;Z.formatAt(te,me,K,Y[K])}j-=J})}}),this.scroll.optimize(),this.update(new f.default().retain(N).retain(L,(0,O.default)(Y)))}},{key:"formatText",value:function(N,L){var q=this,Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(Y).forEach(function(K){q.scroll.formatAt(N,L,K,Y[K])}),this.update(new f.default().retain(N).retain(L,(0,O.default)(Y)))}},{key:"getContents",value:function(N,L){return this.delta.slice(N,N+L)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(N,L){return N.concat(L.delta())},new f.default)}},{key:"getFormat",value:function(N){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,q=[],Y=[];L===0?this.scroll.path(N).forEach(function(B){var j=s(B,1),Z=j[0];Z instanceof y.default?q.push(Z):Z instanceof h.default.Leaf&&Y.push(Z)}):(q=this.scroll.lines(N,L),Y=this.scroll.descendants(h.default.Leaf,N,L));var K=[q,Y].map(function(B){if(B.length===0)return{};for(var j=(0,m.bubbleFormats)(B.shift());Object.keys(j).length>0;){var Z=B.shift();if(Z==null)return j;j=U((0,m.bubbleFormats)(Z),j)}return j});return S.default.apply(S.default,K)}},{key:"getText",value:function(N,L){return this.getContents(N,L).filter(function(q){return typeof q.insert=="string"}).map(function(q){return q.insert}).join("")}},{key:"insertEmbed",value:function(N,L,q){return this.scroll.insertAt(N,L,q),this.update(new f.default().retain(N).insert(I({},L,q)))}},{key:"insertText",value:function(N,L){var q=this,Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return L=L.replace(/\r\n/g,` `).replace(/\r/g,` `),this.scroll.insertAt(N,L),Object.keys(Y).forEach(function(K){q.scroll.formatAt(N,L.length,K,Y[K])}),this.update(new f.default().retain(N).insert(L,(0,O.default)(Y)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var N=this.scroll.children.head;return N.statics.blotName!==y.default.blotName||N.children.length>1?!1:N.children.head instanceof w.default}},{key:"removeFormat",value:function(N,L){var q=this.getText(N,L),Y=this.scroll.line(N+L),K=s(Y,2),B=K[0],j=K[1],Z=0,J=new f.default;B!=null&&(B instanceof b.default?Z=B.newlineIndex(j)-j+1:Z=B.length()-j,J=B.delta().slice(j,j+Z-1).insert(` `));var te=this.getContents(N,L+Z),me=te.diff(new f.default().insert(q).concat(J)),we=new f.default().retain(N).concat(me);return this.applyDelta(we)}},{key:"update",value:function(N){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,Y=this.delta;if(L.length===1&&L[0].type==="characterData"&&L[0].target.data.match(F)&&h.default.find(L[0].target)){var K=h.default.find(L[0].target),B=(0,m.bubbleFormats)(K),j=K.offset(this.scroll),Z=L[0].oldValue.replace(v.default.CONTENTS,""),J=new f.default().insert(Z),te=new f.default().insert(K.value()),me=new f.default().retain(j).concat(J.diff(te,q));N=me.reduce(function(we,V){return V.insert?we.insert(V.insert,B):we.push(V)},new f.default),this.delta=Y.compose(N)}else this.delta=this.getDelta(),(!N||!(0,P.default)(Y.compose(N),this.delta))&&(N=Y.diff(this.delta,q));return N}}]),D}();function U(D,R){return Object.keys(R).reduce(function(N,L){return D[L]==null||(R[L]===D[L]?N[L]=R[L]:Array.isArray(R[L])?R[L].indexOf(D[L])<0&&(N[L]=R[L].concat([D[L]])):N[L]=[R[L],D[L]]),N},{})}function G(D){return D.reduce(function(R,N){if(N.insert===1){var L=(0,O.default)(N.attributes);return delete L.image,R.insert({image:N.attributes.image},L)}if(N.attributes!=null&&(N.attributes.list===!0||N.attributes.bullet===!0)&&(N=(0,O.default)(N),N.attributes.list?N.attributes.list="ordered":(N.attributes.list="bullet",delete N.attributes.bullet)),typeof N.insert=="string"){var q=N.insert.replace(/\r\n/g,` `).replace(/\r/g,` `);return R.insert(q,N.attributes)}return R.push(N)},new f.default)}r.default=z},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.Range=void 0;var a=function(){function T(P,A){var S=[],C=!0,I=!1,M=void 0;try{for(var F=P[Symbol.iterator](),z;!(C=(z=F.next()).done)&&(S.push(z.value),!(A&&S.length===A));C=!0);}catch(U){I=!0,M=U}finally{try{!C&&F.return&&F.return()}finally{if(I)throw M}}return S}return function(P,A){if(Array.isArray(P))return P;if(Symbol.iterator in Object(P))return T(P,A);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function T(P,A){for(var S=0;S1&&arguments[1]!==void 0?arguments[1]:0;y(this,T),this.index=P,this.length=A},x=function(){function T(P,A){var S=this;y(this,T),this.emitter=A,this.scroll=P,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=u.default.create("cursor",this),this.lastRange=this.savedRange=new w(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){S.mouseDown||setTimeout(S.update.bind(S,_.default.sources.USER),1)}),this.emitter.on(_.default.events.EDITOR_CHANGE,function(C,I){C===_.default.events.TEXT_CHANGE&&I.length()>0&&S.update(_.default.sources.SILENT)}),this.emitter.on(_.default.events.SCROLL_BEFORE_UPDATE,function(){if(!!S.hasFocus()){var C=S.getNativeRange();C!=null&&C.start.node!==S.cursor.textNode&&S.emitter.once(_.default.events.SCROLL_UPDATE,function(){try{S.setNativeRange(C.start.node,C.start.offset,C.end.node,C.end.offset)}catch{}})}}),this.emitter.on(_.default.events.SCROLL_OPTIMIZE,function(C,I){if(I.range){var M=I.range,F=M.startNode,z=M.startOffset,U=M.endNode,G=M.endOffset;S.setNativeRange(F,z,U,G)}}),this.update(_.default.sources.SILENT)}return s(T,[{key:"handleComposition",value:function(){var A=this;this.root.addEventListener("compositionstart",function(){A.composing=!0}),this.root.addEventListener("compositionend",function(){if(A.composing=!1,A.cursor.parent){var S=A.cursor.restore();if(!S)return;setTimeout(function(){A.setNativeRange(S.startNode,S.startOffset,S.endNode,S.endOffset)},1)}})}},{key:"handleDragging",value:function(){var A=this;this.emitter.listenDOM("mousedown",document.body,function(){A.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){A.mouseDown=!1,A.update(_.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(A,S){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[A])){this.scroll.update();var C=this.getNativeRange();if(!(C==null||!C.native.collapsed||u.default.query(A,u.default.Scope.BLOCK))){if(C.start.node!==this.cursor.textNode){var I=u.default.find(C.start.node,!1);if(I==null)return;if(I instanceof u.default.Leaf){var M=I.split(C.start.offset);I.parent.insertBefore(this.cursor,M)}else I.insertBefore(this.cursor,C.start.node);this.cursor.attach()}this.cursor.format(A,S),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(A){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,C=this.scroll.length();A=Math.min(A,C-1),S=Math.min(A+S,C-1)-A;var I=void 0,M=this.scroll.leaf(A),F=a(M,2),z=F[0],U=F[1];if(z==null)return null;var G=z.position(U,!0),D=a(G,2);I=D[0],U=D[1];var R=document.createRange();if(S>0){R.setStart(I,U);var N=this.scroll.leaf(A+S),L=a(N,2);if(z=L[0],U=L[1],z==null)return null;var q=z.position(U,!0),Y=a(q,2);return I=Y[0],U=Y[1],R.setEnd(I,U),R.getBoundingClientRect()}else{var K="left",B=void 0;return I instanceof Text?(U0&&(K="right")),{bottom:B.top+B.height,height:B.height,left:B[K],right:B[K],top:B.top,width:0}}}},{key:"getNativeRange",value:function(){var A=document.getSelection();if(A==null||A.rangeCount<=0)return null;var S=A.getRangeAt(0);if(S==null)return null;var C=this.normalizeNative(S);return g.info("getNativeRange",C),C}},{key:"getRange",value:function(){var A=this.getNativeRange();if(A==null)return[null,null];var S=this.normalizedToRange(A);return[S,A]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(A){var S=this,C=[[A.start.node,A.start.offset]];A.native.collapsed||C.push([A.end.node,A.end.offset]);var I=C.map(function(z){var U=a(z,2),G=U[0],D=U[1],R=u.default.find(G,!0),N=R.offset(S.scroll);return D===0?N:R instanceof u.default.Container?N+R.length():N+R.index(G,D)}),M=Math.min(Math.max.apply(Math,m(I)),this.scroll.length()-1),F=Math.min.apply(Math,[M].concat(m(I)));return new w(F,M-F)}},{key:"normalizeNative",value:function(A){if(!O(this.root,A.startContainer)||!A.collapsed&&!O(this.root,A.endContainer))return null;var S={start:{node:A.startContainer,offset:A.startOffset},end:{node:A.endContainer,offset:A.endOffset},native:A};return[S.start,S.end].forEach(function(C){for(var I=C.node,M=C.offset;!(I instanceof Text)&&I.childNodes.length>0;)if(I.childNodes.length>M)I=I.childNodes[M],M=0;else if(I.childNodes.length===M)I=I.lastChild,M=I instanceof Text?I.data.length:I.childNodes.length+1;else break;C.node=I,C.offset=M}),S}},{key:"rangeToNative",value:function(A){var S=this,C=A.collapsed?[A.index]:[A.index,A.index+A.length],I=[],M=this.scroll.length();return C.forEach(function(F,z){F=Math.min(M-1,F);var U=void 0,G=S.scroll.leaf(F),D=a(G,2),R=D[0],N=D[1],L=R.position(N,z!==0),q=a(L,2);U=q[0],N=q[1],I.push(U,N)}),I.length<2&&(I=I.concat(I)),I}},{key:"scrollIntoView",value:function(A){var S=this.lastRange;if(S!=null){var C=this.getBounds(S.index,S.length);if(C!=null){var I=this.scroll.length()-1,M=this.scroll.line(Math.min(S.index,I)),F=a(M,1),z=F[0],U=z;if(S.length>0){var G=this.scroll.line(Math.min(S.index+S.length,I)),D=a(G,1);U=D[0]}if(!(z==null||U==null)){var R=A.getBoundingClientRect();C.topR.bottom&&(A.scrollTop+=C.bottom-R.bottom)}}}}},{key:"setNativeRange",value:function(A,S){var C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:A,I=arguments.length>3&&arguments[3]!==void 0?arguments[3]:S,M=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(g.info("setNativeRange",A,S,C,I),!(A!=null&&(this.root.parentNode==null||A.parentNode==null||C.parentNode==null))){var F=document.getSelection();if(F!=null)if(A!=null){this.hasFocus()||this.root.focus();var z=(this.getNativeRange()||{}).native;if(z==null||M||A!==z.startContainer||S!==z.startOffset||C!==z.endContainer||I!==z.endOffset){A.tagName=="BR"&&(S=[].indexOf.call(A.parentNode.childNodes,A),A=A.parentNode),C.tagName=="BR"&&(I=[].indexOf.call(C.parentNode.childNodes,C),C=C.parentNode);var U=document.createRange();U.setStart(A,S),U.setEnd(C,I),F.removeAllRanges(),F.addRange(U)}}else F.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(A){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_.default.sources.API;if(typeof S=="string"&&(C=S,S=!1),g.info("setRange",A),A!=null){var I=this.rangeToNative(A);this.setNativeRange.apply(this,m(I).concat([S]))}else this.setNativeRange(null);this.update(C)}},{key:"update",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_.default.sources.USER,S=this.lastRange,C=this.getRange(),I=a(C,2),M=I[0],F=I[1];if(this.lastRange=M,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,d.default)(S,this.lastRange)){var z;!this.composing&&F!=null&&F.native.collapsed&&F.start.node!==this.cursor.textNode&&this.cursor.restore();var U=[_.default.events.SELECTION_CHANGE,(0,p.default)(this.lastRange),(0,p.default)(S),A];if((z=this.emitter).emit.apply(z,[_.default.events.EDITOR_CHANGE].concat(U)),A!==_.default.sources.SILENT){var G;(G=this.emitter).emit.apply(G,U)}}}}]),T}();function O(T,P){try{P.parentNode}catch{return!1}return P instanceof Text&&(P=P.parentNode),T.contains(P)}r.Range=w,r.default=x},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function _(b,E){for(var v=0;v0&&(h+=1),[this.parent.domNode,h]},p.prototype.value=function(){var c;return c={},c[this.statics.blotName]=this.statics.value(this.domNode)||!0,c},p.scope=l.Scope.INLINE_BLOT,p}(s.default);r.default=u},function(n,r,i){var a=i(11),s=i(3),l={attributes:{compose:function(f,p,c){typeof f!="object"&&(f={}),typeof p!="object"&&(p={});var d=s(!0,{},p);c||(d=Object.keys(d).reduce(function(_,b){return d[b]!=null&&(_[b]=d[b]),_},{}));for(var h in f)f[h]!==void 0&&p[h]===void 0&&(d[h]=f[h]);return Object.keys(d).length>0?d:void 0},diff:function(f,p){typeof f!="object"&&(f={}),typeof p!="object"&&(p={});var c=Object.keys(f).concat(Object.keys(p)).reduce(function(d,h){return a(f[h],p[h])||(d[h]=p[h]===void 0?null:p[h]),d},{});return Object.keys(c).length>0?c:void 0},transform:function(f,p,c){if(typeof f!="object")return p;if(typeof p=="object"){if(!c)return p;var d=Object.keys(p).reduce(function(h,_){return f[_]===void 0&&(h[_]=p[_]),h},{});return Object.keys(d).length>0?d:void 0}}},iterator:function(f){return new u(f)},length:function(f){return typeof f.delete=="number"?f.delete:typeof f.retain=="number"?f.retain:typeof f.insert=="string"?f.insert.length:1}};function u(f){this.ops=f,this.index=0,this.offset=0}u.prototype.hasNext=function(){return this.peekLength()<1/0},u.prototype.next=function(f){f||(f=1/0);var p=this.ops[this.index];if(p){var c=this.offset,d=l.length(p);if(f>=d-c?(f=d-c,this.index+=1,this.offset=0):this.offset+=f,typeof p.delete=="number")return{delete:f};var h={};return p.attributes&&(h.attributes=p.attributes),typeof p.retain=="number"?h.retain=f:typeof p.insert=="string"?h.insert=p.insert.substr(c,f):h.insert=p.insert,h}else return{retain:1/0}},u.prototype.peek=function(){return this.ops[this.index]},u.prototype.peekLength=function(){return this.ops[this.index]?l.length(this.ops[this.index])-this.offset:1/0},u.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},u.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var f=this.offset,p=this.index,c=this.next(),d=this.ops.slice(this.index);return this.offset=f,this.index=p,[c].concat(d)}else return[]},n.exports=l},function(n,r){var i=function(){function a(b,E){return E!=null&&b instanceof E}var s;try{s=Map}catch{s=function(){}}var l;try{l=Set}catch{l=function(){}}var u;try{u=Promise}catch{u=function(){}}function f(b,E,v,m,y){typeof E=="object"&&(v=E.depth,m=E.prototype,y=E.includeNonEnumerable,E=E.circular);var g=[],w=[],x=typeof Buffer<"u";typeof E>"u"&&(E=!0),typeof v>"u"&&(v=1/0);function O(T,P){if(T===null)return null;if(P===0)return T;var A,S;if(typeof T!="object")return T;if(a(T,s))A=new s;else if(a(T,l))A=new l;else if(a(T,u))A=new u(function(R,N){T.then(function(L){R(O(L,P-1))},function(L){N(O(L,P-1))})});else if(f.__isArray(T))A=[];else if(f.__isRegExp(T))A=new RegExp(T.source,_(T)),T.lastIndex&&(A.lastIndex=T.lastIndex);else if(f.__isDate(T))A=new Date(T.getTime());else{if(x&&Buffer.isBuffer(T))return Buffer.allocUnsafe?A=Buffer.allocUnsafe(T.length):A=new Buffer(T.length),T.copy(A),A;a(T,Error)?A=Object.create(T):typeof m>"u"?(S=Object.getPrototypeOf(T),A=Object.create(S)):(A=Object.create(m),S=m)}if(E){var C=g.indexOf(T);if(C!=-1)return w[C];g.push(T),w.push(A)}a(T,s)&&T.forEach(function(R,N){var L=O(N,P-1),q=O(R,P-1);A.set(L,q)}),a(T,l)&&T.forEach(function(R){var N=O(R,P-1);A.add(N)});for(var I in T){var M;S&&(M=Object.getOwnPropertyDescriptor(S,I)),!(M&&M.set==null)&&(A[I]=O(T[I],P-1))}if(Object.getOwnPropertySymbols)for(var F=Object.getOwnPropertySymbols(T),I=0;I0){if(U instanceof d.BlockEmbed||N instanceof d.BlockEmbed){this.optimize();return}if(U instanceof v.default){var L=U.newlineIndex(U.length(),!0);if(L>-1&&(U=U.split(L+1),U===N)){this.optimize();return}}else if(N instanceof v.default){var q=N.newlineIndex(0);q>-1&&N.split(q+1)}var Y=N.children.head instanceof b.default?null:N.children.head;U.moveChildren(N,Y),U.remove()}this.optimize()}},{key:"enable",value:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",I)}},{key:"formatAt",value:function(I,M,F,z){this.whitelist!=null&&!this.whitelist[F]||(l(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"formatAt",this).call(this,I,M,F,z),this.optimize())}},{key:"insertAt",value:function(I,M,F){if(!(F!=null&&this.whitelist!=null&&!this.whitelist[M])){if(I>=this.length())if(F==null||f.default.query(M,f.default.Scope.BLOCK)==null){var z=f.default.create(this.statics.defaultChild);this.appendChild(z),F==null&&M.endsWith(` `)&&(M=M.slice(0,-1)),z.insertAt(0,M,F)}else{var U=f.default.create(M,F);this.appendChild(U)}else l(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"insertAt",this).call(this,I,M,F);this.optimize()}}},{key:"insertBefore",value:function(I,M){if(I.statics.scope===f.default.Scope.INLINE_BLOT){var F=f.default.create(this.statics.defaultChild);F.appendChild(I),I=F}l(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"insertBefore",this).call(this,I,M)}},{key:"leaf",value:function(I){return this.path(I).pop()||[null,-1]}},{key:"line",value:function(I){return I===this.length()?this.line(I-1):this.descendant(T,I)}},{key:"lines",value:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,F=function z(U,G,D){var R=[],N=D;return U.children.forEachAt(G,D,function(L,q,Y){T(L)?R.push(L):L instanceof f.default.Container&&(R=R.concat(z(L,q,N))),N-=Y}),R};return F(this,I,M)}},{key:"optimize",value:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(l(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"optimize",this).call(this,I,M),I.length>0&&this.emitter.emit(c.default.events.SCROLL_OPTIMIZE,I,M))}},{key:"path",value:function(I){return l(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"path",this).call(this,I).slice(1)}},{key:"update",value:function(I){if(this.batch!==!0){var M=c.default.sources.USER;typeof I=="string"&&(M=I),Array.isArray(I)||(I=this.observer.takeRecords()),I.length>0&&this.emitter.emit(c.default.events.SCROLL_BEFORE_UPDATE,M,I),l(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"update",this).call(this,I.concat([])),I.length>0&&this.emitter.emit(c.default.events.SCROLL_UPDATE,M,I)}}}]),S}(f.default.Scroll);P.blotName="scroll",P.className="ql-editor",P.tagName="DIV",P.defaultChild="block",P.allowedChildren=[h.default,d.BlockEmbed,y.default],r.default=P},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SHORTKEY=r.default=void 0;var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(B){return typeof B}:function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},s=function(){function B(j,Z){var J=[],te=!0,me=!1,we=void 0;try{for(var V=j[Symbol.iterator](),W;!(te=(W=V.next()).done)&&(J.push(W.value),!(Z&&J.length===Z));te=!0);}catch(oe){me=!0,we=oe}finally{try{!te&&V.return&&V.return()}finally{if(me)throw we}}return J}return function(j,Z){if(Array.isArray(j))return j;if(Symbol.iterator in Object(j))return B(j,Z);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function B(j,Z){for(var J=0;J1&&arguments[1]!==void 0?arguments[1]:{},me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},we=K(J);if(we==null||we.key==null)return F.warn("Attempted to add invalid keyboard binding",we);typeof te=="function"&&(te={handler:te}),typeof me=="function"&&(me={handler:me}),we=(0,h.default)(we,te,me),this.bindings[we.key]=this.bindings[we.key]||[],this.bindings[we.key].push(we)}},{key:"listen",value:function(){var J=this;this.quill.root.addEventListener("keydown",function(te){if(!te.defaultPrevented){var me=te.which||te.keyCode,we=(J.bindings[me]||[]).filter(function(Me){return j.match(te,Me)});if(we.length!==0){var V=J.quill.getSelection();if(!(V==null||!J.quill.hasFocus())){var W=J.quill.getLine(V.index),oe=s(W,2),pe=oe[0],fe=oe[1],ee=J.quill.getLeaf(V.index),ie=s(ee,2),le=ie[0],ce=ie[1],ne=V.length===0?[le,ce]:J.quill.getLeaf(V.index+V.length),ye=s(ne,2),be=ye[0],_e=ye[1],Te=le instanceof y.default.Text?le.value().slice(0,ce):"",Ne=be instanceof y.default.Text?be.value().slice(_e):"",ke={collapsed:V.length===0,empty:V.length===0&&pe.length()<=1,format:J.quill.getFormat(V),offset:fe,prefix:Te,suffix:Ne},Ge=we.some(function(Me){if(Me.collapsed!=null&&Me.collapsed!==ke.collapsed||Me.empty!=null&&Me.empty!==ke.empty||Me.offset!=null&&Me.offset!==ke.offset)return!1;if(Array.isArray(Me.format)){if(Me.format.every(function(ht){return ke.format[ht]==null}))return!1}else if(a(Me.format)==="object"&&!Object.keys(Me.format).every(function(ht){return Me.format[ht]===!0?ke.format[ht]!=null:Me.format[ht]===!1?ke.format[ht]==null:(0,c.default)(Me.format[ht],ke.format[ht])}))return!1;return Me.prefix!=null&&!Me.prefix.test(ke.prefix)||Me.suffix!=null&&!Me.suffix.test(ke.suffix)?!1:Me.handler.call(J,V,ke)!==!0});Ge&&te.preventDefault()}}}})}}]),j}(P.default);U.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},U.DEFAULTS={bindings:{bold:Y("bold"),italic:Y("italic"),underline:Y("underline"),indent:{key:U.keys.TAB,format:["blockquote","indent","list"],handler:function(j,Z){if(Z.collapsed&&Z.offset!==0)return!0;this.quill.format("indent","+1",w.default.sources.USER)}},outdent:{key:U.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(j,Z){if(Z.collapsed&&Z.offset!==0)return!0;this.quill.format("indent","-1",w.default.sources.USER)}},"outdent backspace":{key:U.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(j,Z){Z.format.indent!=null?this.quill.format("indent","-1",w.default.sources.USER):Z.format.list!=null&&this.quill.format("list",!1,w.default.sources.USER)}},"indent code-block":q(!0),"outdent code-block":q(!1),"remove tab":{key:U.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(j){this.quill.deleteText(j.index-1,1,w.default.sources.USER)}},tab:{key:U.keys.TAB,handler:function(j){this.quill.history.cutoff();var Z=new b.default().retain(j.index).delete(j.length).insert(" ");this.quill.updateContents(Z,w.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(j.index+1,w.default.sources.SILENT)}},"list empty enter":{key:U.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(j,Z){this.quill.format("list",!1,w.default.sources.USER),Z.format.indent&&this.quill.format("indent",!1,w.default.sources.USER)}},"checklist enter":{key:U.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(j){var Z=this.quill.getLine(j.index),J=s(Z,2),te=J[0],me=J[1],we=(0,h.default)({},te.formats(),{list:"checked"}),V=new b.default().retain(j.index).insert(` `,we).retain(te.length()-me-1).retain(1,{list:"unchecked"});this.quill.updateContents(V,w.default.sources.USER),this.quill.setSelection(j.index+1,w.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:U.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(j,Z){var J=this.quill.getLine(j.index),te=s(J,2),me=te[0],we=te[1],V=new b.default().retain(j.index).insert(` `,Z.format).retain(me.length()-we-1).retain(1,{header:null});this.quill.updateContents(V,w.default.sources.USER),this.quill.setSelection(j.index+1,w.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(j,Z){var J=Z.prefix.length,te=this.quill.getLine(j.index),me=s(te,2),we=me[0],V=me[1];if(V>J)return!0;var W=void 0;switch(Z.prefix.trim()){case"[]":case"[ ]":W="unchecked";break;case"[x]":W="checked";break;case"-":case"*":W="bullet";break;default:W="ordered"}this.quill.insertText(j.index," ",w.default.sources.USER),this.quill.history.cutoff();var oe=new b.default().retain(j.index-V).delete(J+1).retain(we.length()-2-V).retain(1,{list:W});this.quill.updateContents(oe,w.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(j.index-J,w.default.sources.SILENT)}},"code exit":{key:U.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(j){var Z=this.quill.getLine(j.index),J=s(Z,2),te=J[0],me=J[1],we=new b.default().retain(j.index+te.length()-me-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(we,w.default.sources.USER)}},"embed left":G(U.keys.LEFT,!1),"embed left shift":G(U.keys.LEFT,!0),"embed right":G(U.keys.RIGHT,!1),"embed right shift":G(U.keys.RIGHT,!0)}};function G(B,j){var Z,J=B===U.keys.LEFT?"prefix":"suffix";return Z={key:B,shiftKey:j,altKey:null},S(Z,J,/^$/),S(Z,"handler",function(me){var we=me.index;B===U.keys.RIGHT&&(we+=me.length+1);var V=this.quill.getLeaf(we),W=s(V,1),oe=W[0];return oe instanceof y.default.Embed?(B===U.keys.LEFT?j?this.quill.setSelection(me.index-1,me.length+1,w.default.sources.USER):this.quill.setSelection(me.index-1,w.default.sources.USER):j?this.quill.setSelection(me.index,me.length+1,w.default.sources.USER):this.quill.setSelection(me.index+me.length+1,w.default.sources.USER),!1):!0}),Z}function D(B,j){if(!(B.index===0||this.quill.getLength()<=1)){var Z=this.quill.getLine(B.index),J=s(Z,1),te=J[0],me={};if(j.offset===0){var we=this.quill.getLine(B.index-1),V=s(we,1),W=V[0];if(W!=null&&W.length()>1){var oe=te.formats(),pe=this.quill.getFormat(B.index-1,1);me=v.default.attributes.diff(oe,pe)||{}}}var fe=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(j.prefix)?2:1;this.quill.deleteText(B.index-fe,fe,w.default.sources.USER),Object.keys(me).length>0&&this.quill.formatLine(B.index-fe,fe,me,w.default.sources.USER),this.quill.focus()}}function R(B,j){var Z=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(j.suffix)?2:1;if(!(B.index>=this.quill.getLength()-Z)){var J={},te=0,me=this.quill.getLine(B.index),we=s(me,1),V=we[0];if(j.offset>=V.length()-1){var W=this.quill.getLine(B.index+1),oe=s(W,1),pe=oe[0];if(pe){var fe=V.formats(),ee=this.quill.getFormat(B.index,1);J=v.default.attributes.diff(fe,ee)||{},te=pe.length()}}this.quill.deleteText(B.index,Z,w.default.sources.USER),Object.keys(J).length>0&&this.quill.formatLine(B.index+te-1,Z,J,w.default.sources.USER)}}function N(B){var j=this.quill.getLines(B),Z={};if(j.length>1){var J=j[0].formats(),te=j[j.length-1].formats();Z=v.default.attributes.diff(te,J)||{}}this.quill.deleteText(B,w.default.sources.USER),Object.keys(Z).length>0&&this.quill.formatLine(B.index,1,Z,w.default.sources.USER),this.quill.setSelection(B.index,w.default.sources.SILENT),this.quill.focus()}function L(B,j){var Z=this;B.length>0&&this.quill.scroll.deleteAt(B.index,B.length);var J=Object.keys(j.format).reduce(function(te,me){return y.default.query(me,y.default.Scope.BLOCK)&&!Array.isArray(j.format[me])&&(te[me]=j.format[me]),te},{});this.quill.insertText(B.index,` `,J,w.default.sources.USER),this.quill.setSelection(B.index+1,w.default.sources.SILENT),this.quill.focus(),Object.keys(j.format).forEach(function(te){J[te]==null&&(Array.isArray(j.format[te])||te!=="link"&&Z.quill.format(te,j.format[te],w.default.sources.USER))})}function q(B){return{key:U.keys.TAB,shiftKey:!B,format:{"code-block":!0},handler:function(Z){var J=y.default.query("code-block"),te=Z.index,me=Z.length,we=this.quill.scroll.descendant(J,te),V=s(we,2),W=V[0],oe=V[1];if(W!=null){var pe=this.quill.getIndex(W),fe=W.newlineIndex(oe,!0)+1,ee=W.newlineIndex(pe+oe+me),ie=W.domNode.textContent.slice(fe,ee).split(` `);oe=0,ie.forEach(function(le,ce){B?(W.insertAt(fe+oe,J.TAB),oe+=J.TAB.length,ce===0?te+=J.TAB.length:me+=J.TAB.length):le.startsWith(J.TAB)&&(W.deleteAt(fe+oe,J.TAB.length),oe-=J.TAB.length,ce===0?te-=J.TAB.length:me-=J.TAB.length),oe+=le.length+1}),this.quill.update(w.default.sources.USER),this.quill.setSelection(te,me,w.default.sources.SILENT)}}}}function Y(B){return{key:B[0].toUpperCase(),shortKey:!0,handler:function(Z,J){this.quill.format(B,!J.format[B],w.default.sources.USER)}}}function K(B){if(typeof B=="string"||typeof B=="number")return K({key:B});if((typeof B>"u"?"undefined":a(B))==="object"&&(B=(0,f.default)(B,!1)),typeof B.key=="string")if(U.keys[B.key.toUpperCase()]!=null)B.key=U.keys[B.key.toUpperCase()];else if(B.key.length===1)B.key=B.key.toUpperCase().charCodeAt(0);else return null;return B.shortKey&&(B[z]=B.shortKey,delete B.shortKey),B}r.default=U,r.SHORTKEY=z},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function v(m,y){var g=[],w=!0,x=!1,O=void 0;try{for(var T=m[Symbol.iterator](),P;!(w=(P=T.next()).done)&&(g.push(P.value),!(y&&g.length===y));w=!0);}catch(A){x=!0,O=A}finally{try{!w&&T.return&&T.return()}finally{if(x)throw O}}return g}return function(m,y){if(Array.isArray(m))return m;if(Symbol.iterator in Object(m))return v(m,y);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function v(m,y,g){m===null&&(m=Function.prototype);var w=Object.getOwnPropertyDescriptor(m,y);if(w===void 0){var x=Object.getPrototypeOf(m);return x===null?void 0:v(x,y,g)}else{if("value"in w)return w.value;var O=w.get;return O===void 0?void 0:O.call(g)}},l=function(){function v(m,y){for(var g=0;g-1}r.default=h,r.sanitize=_},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(E){return typeof E}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},s=function(){function E(v,m){for(var y=0;y1&&arguments[1]!==void 0?arguments[1]:!1,g=this.container.querySelector(".ql-selected");if(m!==g&&(g!=null&&g.classList.remove("ql-selected"),m!=null&&(m.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(m.parentNode.children,m),m.hasAttribute("data-value")?this.label.setAttribute("data-value",m.getAttribute("data-value")):this.label.removeAttribute("data-value"),m.hasAttribute("data-label")?this.label.setAttribute("data-label",m.getAttribute("data-label")):this.label.removeAttribute("data-label"),y))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":a(Event))==="object"){var w=document.createEvent("Event");w.initEvent("change",!0,!0),this.select.dispatchEvent(w)}this.close()}}},{key:"update",value:function(){var m=void 0;if(this.select.selectedIndex>-1){var y=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];m=this.select.options[this.select.selectedIndex],this.selectItem(y)}else this.selectItem(null);var g=m!=null&&m!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",g)}}]),E}();r.default=b},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=i(0),s=F(a),l=i(5),u=F(l),f=i(4),p=F(f),c=i(16),d=F(c),h=i(25),_=F(h),b=i(24),E=F(b),v=i(35),m=F(v),y=i(6),g=F(y),w=i(22),x=F(w),O=i(7),T=F(O),P=i(55),A=F(P),S=i(42),C=F(S),I=i(23),M=F(I);function F(z){return z&&z.__esModule?z:{default:z}}u.default.register({"blots/block":p.default,"blots/block/embed":f.BlockEmbed,"blots/break":d.default,"blots/container":_.default,"blots/cursor":E.default,"blots/embed":m.default,"blots/inline":g.default,"blots/scroll":x.default,"blots/text":T.default,"modules/clipboard":A.default,"modules/history":C.default,"modules/keyboard":M.default}),s.default.register(p.default,d.default,E.default,g.default,x.default,T.default),r.default=u.default},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=i(1),s=function(){function l(u){this.domNode=u,this.domNode[a.DATA_KEY]={blot:this}}return Object.defineProperty(l.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),l.create=function(u){if(this.tagName==null)throw new a.ParchmentError("Blot definition missing tagName");var f;return Array.isArray(this.tagName)?(typeof u=="string"&&(u=u.toUpperCase(),parseInt(u).toString()===u&&(u=parseInt(u))),typeof u=="number"?f=document.createElement(this.tagName[u-1]):this.tagName.indexOf(u)>-1?f=document.createElement(u):f=document.createElement(this.tagName[0])):f=document.createElement(this.tagName),this.className&&f.classList.add(this.className),f},l.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},l.prototype.clone=function(){var u=this.domNode.cloneNode(!1);return a.create(u)},l.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[a.DATA_KEY]},l.prototype.deleteAt=function(u,f){var p=this.isolate(u,f);p.remove()},l.prototype.formatAt=function(u,f,p,c){var d=this.isolate(u,f);if(a.query(p,a.Scope.BLOT)!=null&&c)d.wrap(p,c);else if(a.query(p,a.Scope.ATTRIBUTE)!=null){var h=a.create(this.statics.scope);d.wrap(h),h.format(p,c)}},l.prototype.insertAt=function(u,f,p){var c=p==null?a.create("text",f):a.create(f,p),d=this.split(u);this.parent.insertBefore(c,d)},l.prototype.insertInto=function(u,f){f===void 0&&(f=null),this.parent!=null&&this.parent.children.remove(this);var p=null;u.children.insertBefore(this,f),f!=null&&(p=f.domNode),(this.domNode.parentNode!=u.domNode||this.domNode.nextSibling!=p)&&u.domNode.insertBefore(this.domNode,p),this.parent=u,this.attach()},l.prototype.isolate=function(u,f){var p=this.split(u);return p.split(f),p},l.prototype.length=function(){return 1},l.prototype.offset=function(u){return u===void 0&&(u=this.parent),this.parent==null||this==u?0:this.parent.children.offset(this)+this.parent.offset(u)},l.prototype.optimize=function(u){this.domNode[a.DATA_KEY]!=null&&delete this.domNode[a.DATA_KEY].mutations},l.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},l.prototype.replace=function(u){u.parent!=null&&(u.parent.insertBefore(this,u.next),u.remove())},l.prototype.replaceWith=function(u,f){var p=typeof u=="string"?a.create(u,f):u;return p.replace(this),p},l.prototype.split=function(u,f){return u===0?this:this.next},l.prototype.update=function(u,f){},l.prototype.wrap=function(u,f){var p=typeof u=="string"?a.create(u,f):u;return this.parent!=null&&this.parent.insertBefore(p,this.next),p.appendChild(this),p},l.blotName="abstract",l}();r.default=s},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=i(12),s=i(32),l=i(33),u=i(1),f=function(){function p(c){this.attributes={},this.domNode=c,this.build()}return p.prototype.attribute=function(c,d){d?c.add(this.domNode,d)&&(c.value(this.domNode)!=null?this.attributes[c.attrName]=c:delete this.attributes[c.attrName]):(c.remove(this.domNode),delete this.attributes[c.attrName])},p.prototype.build=function(){var c=this;this.attributes={};var d=a.default.keys(this.domNode),h=s.default.keys(this.domNode),_=l.default.keys(this.domNode);d.concat(h).concat(_).forEach(function(b){var E=u.query(b,u.Scope.ATTRIBUTE);E instanceof a.default&&(c.attributes[E.attrName]=E)})},p.prototype.copy=function(c){var d=this;Object.keys(this.attributes).forEach(function(h){var _=d.attributes[h].value(d.domNode);c.format(h,_)})},p.prototype.move=function(c){var d=this;this.copy(c),Object.keys(this.attributes).forEach(function(h){d.attributes[h].remove(d.domNode)}),this.attributes={}},p.prototype.values=function(){var c=this;return Object.keys(this.attributes).reduce(function(d,h){return d[h]=c.attributes[h].value(c.domNode),d},{})},p}();r.default=f},function(n,r,i){var a=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,c){p.__proto__=c}||function(p,c){for(var d in c)c.hasOwnProperty(d)&&(p[d]=c[d])};return function(p,c){f(p,c);function d(){this.constructor=p}p.prototype=c===null?Object.create(c):(d.prototype=c.prototype,new d)}}();Object.defineProperty(r,"__esModule",{value:!0});var s=i(12);function l(f,p){var c=f.getAttribute("class")||"";return c.split(/\s+/).filter(function(d){return d.indexOf(p+"-")===0})}var u=function(f){a(p,f);function p(){return f!==null&&f.apply(this,arguments)||this}return p.keys=function(c){return(c.getAttribute("class")||"").split(/\s+/).map(function(d){return d.split("-").slice(0,-1).join("-")})},p.prototype.add=function(c,d){return this.canAdd(c,d)?(this.remove(c),c.classList.add(this.keyName+"-"+d),!0):!1},p.prototype.remove=function(c){var d=l(c,this.keyName);d.forEach(function(h){c.classList.remove(h)}),c.classList.length===0&&c.removeAttribute("class")},p.prototype.value=function(c){var d=l(c,this.keyName)[0]||"",h=d.slice(this.keyName.length+1);return this.canAdd(c,h)?h:""},p}(s.default);r.default=u},function(n,r,i){var a=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,c){p.__proto__=c}||function(p,c){for(var d in c)c.hasOwnProperty(d)&&(p[d]=c[d])};return function(p,c){f(p,c);function d(){this.constructor=p}p.prototype=c===null?Object.create(c):(d.prototype=c.prototype,new d)}}();Object.defineProperty(r,"__esModule",{value:!0});var s=i(12);function l(f){var p=f.split("-"),c=p.slice(1).map(function(d){return d[0].toUpperCase()+d.slice(1)}).join("");return p[0]+c}var u=function(f){a(p,f);function p(){return f!==null&&f.apply(this,arguments)||this}return p.keys=function(c){return(c.getAttribute("style")||"").split(";").map(function(d){var h=d.split(":");return h[0].trim()})},p.prototype.add=function(c,d){return this.canAdd(c,d)?(c.style[l(this.keyName)]=d,!0):!1},p.prototype.remove=function(c){c.style[l(this.keyName)]="",c.getAttribute("style")||c.removeAttribute("style")},p.prototype.value=function(c){var d=c.style[l(this.keyName)];return this.canAdd(c,d)?d:""},p}(s.default);r.default=u},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function u(f,p){for(var c=0;cP&&this.stack.undo.length>0){var A=this.stack.undo.pop();T=T.compose(A.undo),x=A.redo.compose(x)}else this.lastRecorded=P;this.stack.undo.push({redo:x,undo:T}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(x){this.stack.undo.forEach(function(O){O.undo=x.transform(O.undo,!0),O.redo=x.transform(O.redo,!0)}),this.stack.redo.forEach(function(O){O.undo=x.transform(O.undo,!0),O.redo=x.transform(O.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),g}(c.default);E.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function v(y){var g=y.ops[y.ops.length-1];return g==null?!1:g.insert!=null?typeof g.insert=="string"&&g.insert.endsWith(` `):g.attributes!=null?Object.keys(g.attributes).some(function(w){return l.default.query(w,l.default.Scope.BLOCK)!=null}):!1}function m(y){var g=y.reduce(function(x,O){return x+=O.delete||0,x},0),w=y.length()-g;return v(y)&&(w-=1),w}r.default=E,r.getLastChangeIndex=m},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.BaseTooltip=void 0;var a=function(){function L(q,Y){for(var K=0;K0&&arguments[0]!==void 0?arguments[0]:"link",B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),B!=null?this.textbox.value=B:K!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+K)||""),this.root.setAttribute("data-mode",K)}},{key:"restoreFocus",value:function(){var K=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=K}},{key:"save",value:function(){var K=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var B=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",K,d.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",K,d.default.sources.USER)),this.quill.root.scrollTop=B;break}case"video":K=R(K);case"formula":{if(!K)break;var j=this.quill.getSelection(!0);if(j!=null){var Z=j.index+j.length;this.quill.insertEmbed(Z,this.root.getAttribute("data-mode"),K,d.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(Z+1," ",d.default.sources.USER),this.quill.setSelection(Z+2,d.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),q}(T.default);function R(L){var q=L.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||L.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return q?(q[1]||"https")+"://www.youtube.com/embed/"+q[2]+"?showinfo=0":(q=L.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(q[1]||"https")+"://player.vimeo.com/video/"+q[2]+"/":L}function N(L,q){var Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;q.forEach(function(K){var B=document.createElement("option");K===Y?B.setAttribute("selected","selected"):B.setAttribute("value",K),L.appendChild(B)})}r.BaseTooltip=D,r.default=G},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function s(){this.head=this.tail=null,this.length=0}return s.prototype.append=function(){for(var l=[],u=0;u1&&this.append.apply(this,l.slice(1))},s.prototype.contains=function(l){for(var u,f=this.iterator();u=f();)if(u===l)return!0;return!1},s.prototype.insertBefore=function(l,u){!l||(l.next=u,u!=null?(l.prev=u.prev,u.prev!=null&&(u.prev.next=l),u.prev=l,u===this.head&&(this.head=l)):this.tail!=null?(this.tail.next=l,l.prev=this.tail,this.tail=l):(l.prev=null,this.head=this.tail=l),this.length+=1)},s.prototype.offset=function(l){for(var u=0,f=this.head;f!=null;){if(f===l)return u;u+=f.length(),f=f.next}return-1},s.prototype.remove=function(l){!this.contains(l)||(l.prev!=null&&(l.prev.next=l.next),l.next!=null&&(l.next.prev=l.prev),l===this.head&&(this.head=l.next),l===this.tail&&(this.tail=l.prev),this.length-=1)},s.prototype.iterator=function(l){return l===void 0&&(l=this.head),function(){var u=l;return l!=null&&(l=l.next),u}},s.prototype.find=function(l,u){u===void 0&&(u=!1);for(var f,p=this.iterator();f=p();){var c=f.length();if(l_?f(h,l-_,Math.min(u,_+E-l)):f(h,0,Math.min(E,l+u-_)),_+=E}},s.prototype.map=function(l){return this.reduce(function(u,f){return u.push(l(f)),u},[])},s.prototype.reduce=function(l,u){for(var f,p=this.iterator();f=p();)u=l(u,f);return u},s}();r.default=a},function(n,r,i){var a=this&&this.__extends||function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var _ in h)h.hasOwnProperty(_)&&(d[_]=h[_])};return function(d,h){c(d,h);function _(){this.constructor=d}d.prototype=h===null?Object.create(h):(_.prototype=h.prototype,new _)}}();Object.defineProperty(r,"__esModule",{value:!0});var s=i(17),l=i(1),u={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},f=100,p=function(c){a(d,c);function d(h){var _=c.call(this,h)||this;return _.scroll=_,_.observer=new MutationObserver(function(b){_.update(b)}),_.observer.observe(_.domNode,u),_.attach(),_}return d.prototype.detach=function(){c.prototype.detach.call(this),this.observer.disconnect()},d.prototype.deleteAt=function(h,_){this.update(),h===0&&_===this.length()?this.children.forEach(function(b){b.remove()}):c.prototype.deleteAt.call(this,h,_)},d.prototype.formatAt=function(h,_,b,E){this.update(),c.prototype.formatAt.call(this,h,_,b,E)},d.prototype.insertAt=function(h,_,b){this.update(),c.prototype.insertAt.call(this,h,_,b)},d.prototype.optimize=function(h,_){var b=this;h===void 0&&(h=[]),_===void 0&&(_={}),c.prototype.optimize.call(this,_);for(var E=[].slice.call(this.observer.takeRecords());E.length>0;)h.push(E.pop());for(var v=function(w,x){x===void 0&&(x=!0),!(w==null||w===b)&&w.domNode.parentNode!=null&&(w.domNode[l.DATA_KEY].mutations==null&&(w.domNode[l.DATA_KEY].mutations=[]),x&&v(w.parent))},m=function(w){w.domNode[l.DATA_KEY]==null||w.domNode[l.DATA_KEY].mutations==null||(w instanceof s.default&&w.children.forEach(m),w.optimize(_))},y=h,g=0;y.length>0;g+=1){if(g>=f)throw new Error("[Parchment] Maximum optimize iterations reached");for(y.forEach(function(w){var x=l.find(w.target,!0);x!=null&&(x.domNode===w.target&&(w.type==="childList"?(v(l.find(w.previousSibling,!1)),[].forEach.call(w.addedNodes,function(O){var T=l.find(O,!1);v(T,!1),T instanceof s.default&&T.children.forEach(function(P){v(P,!1)})})):w.type==="attributes"&&v(x.prev)),v(x))}),this.children.forEach(m),y=[].slice.call(this.observer.takeRecords()),E=y.slice();E.length>0;)h.push(E.pop())}},d.prototype.update=function(h,_){var b=this;_===void 0&&(_={}),h=h||this.observer.takeRecords(),h.map(function(E){var v=l.find(E.target,!0);return v==null?null:v.domNode[l.DATA_KEY].mutations==null?(v.domNode[l.DATA_KEY].mutations=[E],v):(v.domNode[l.DATA_KEY].mutations.push(E),null)}).forEach(function(E){E==null||E===b||E.domNode[l.DATA_KEY]==null||E.update(E.domNode[l.DATA_KEY].mutations||[],_)}),this.domNode[l.DATA_KEY].mutations!=null&&c.prototype.update.call(this,this.domNode[l.DATA_KEY].mutations,_),this.optimize(h,_)},d.blotName="scroll",d.defaultChild="block",d.scope=l.Scope.BLOCK_BLOT,d.tagName="DIV",d}(s.default);r.default=p},function(n,r,i){var a=this&&this.__extends||function(){var p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,d){c.__proto__=d}||function(c,d){for(var h in d)d.hasOwnProperty(h)&&(c[h]=d[h])};return function(c,d){p(c,d);function h(){this.constructor=c}c.prototype=d===null?Object.create(d):(h.prototype=d.prototype,new h)}}();Object.defineProperty(r,"__esModule",{value:!0});var s=i(18),l=i(1);function u(p,c){if(Object.keys(p).length!==Object.keys(c).length)return!1;for(var d in p)if(p[d]!==c[d])return!1;return!0}var f=function(p){a(c,p);function c(){return p!==null&&p.apply(this,arguments)||this}return c.formats=function(d){if(d.tagName!==c.tagName)return p.formats.call(this,d)},c.prototype.format=function(d,h){var _=this;d===this.statics.blotName&&!h?(this.children.forEach(function(b){b instanceof s.default||(b=b.wrap(c.blotName,!0)),_.attributes.copy(b)}),this.unwrap()):p.prototype.format.call(this,d,h)},c.prototype.formatAt=function(d,h,_,b){if(this.formats()[_]!=null||l.query(_,l.Scope.ATTRIBUTE)){var E=this.isolate(d,h);E.format(_,b)}else p.prototype.formatAt.call(this,d,h,_,b)},c.prototype.optimize=function(d){p.prototype.optimize.call(this,d);var h=this.formats();if(Object.keys(h).length===0)return this.unwrap();var _=this.next;_ instanceof c&&_.prev===this&&u(h,_.formats())&&(_.moveChildren(this),_.remove())},c.blotName="inline",c.scope=l.Scope.INLINE_BLOT,c.tagName="SPAN",c}(s.default);r.default=f},function(n,r,i){var a=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,c){p.__proto__=c}||function(p,c){for(var d in c)c.hasOwnProperty(d)&&(p[d]=c[d])};return function(p,c){f(p,c);function d(){this.constructor=p}p.prototype=c===null?Object.create(c):(d.prototype=c.prototype,new d)}}();Object.defineProperty(r,"__esModule",{value:!0});var s=i(18),l=i(1),u=function(f){a(p,f);function p(){return f!==null&&f.apply(this,arguments)||this}return p.formats=function(c){var d=l.query(p.blotName).tagName;if(c.tagName!==d)return f.formats.call(this,c)},p.prototype.format=function(c,d){l.query(c,l.Scope.BLOCK)!=null&&(c===this.statics.blotName&&!d?this.replaceWith(p.blotName):f.prototype.format.call(this,c,d))},p.prototype.formatAt=function(c,d,h,_){l.query(h,l.Scope.BLOCK)!=null?this.format(h,_):f.prototype.formatAt.call(this,c,d,h,_)},p.prototype.insertAt=function(c,d,h){if(h==null||l.query(d,l.Scope.INLINE)!=null)f.prototype.insertAt.call(this,c,d,h);else{var _=this.split(c),b=l.create(d,h);_.parent.insertBefore(b,_)}},p.prototype.update=function(c,d){navigator.userAgent.match(/Trident/)?this.build():f.prototype.update.call(this,c,d)},p.blotName="block",p.scope=l.Scope.BLOCK_BLOT,p.tagName="P",p}(s.default);r.default=u},function(n,r,i){var a=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,p){f.__proto__=p}||function(f,p){for(var c in p)p.hasOwnProperty(c)&&(f[c]=p[c])};return function(f,p){u(f,p);function c(){this.constructor=f}f.prototype=p===null?Object.create(p):(c.prototype=p.prototype,new c)}}();Object.defineProperty(r,"__esModule",{value:!0});var s=i(19),l=function(u){a(f,u);function f(){return u!==null&&u.apply(this,arguments)||this}return f.formats=function(p){},f.prototype.format=function(p,c){u.prototype.formatAt.call(this,0,this.length(),p,c)},f.prototype.formatAt=function(p,c,d,h){p===0&&c===this.length()?this.format(d,h):u.prototype.formatAt.call(this,p,c,d,h)},f.prototype.formats=function(){return this.statics.formats(this.domNode)},f}(s.default);r.default=l},function(n,r,i){var a=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,c){p.__proto__=c}||function(p,c){for(var d in c)c.hasOwnProperty(d)&&(p[d]=c[d])};return function(p,c){f(p,c);function d(){this.constructor=p}p.prototype=c===null?Object.create(c):(d.prototype=c.prototype,new d)}}();Object.defineProperty(r,"__esModule",{value:!0});var s=i(19),l=i(1),u=function(f){a(p,f);function p(c){var d=f.call(this,c)||this;return d.text=d.statics.value(d.domNode),d}return p.create=function(c){return document.createTextNode(c)},p.value=function(c){var d=c.data;return d.normalize&&(d=d.normalize()),d},p.prototype.deleteAt=function(c,d){this.domNode.data=this.text=this.text.slice(0,c)+this.text.slice(c+d)},p.prototype.index=function(c,d){return this.domNode===c?d:-1},p.prototype.insertAt=function(c,d,h){h==null?(this.text=this.text.slice(0,c)+d+this.text.slice(c),this.domNode.data=this.text):f.prototype.insertAt.call(this,c,d,h)},p.prototype.length=function(){return this.text.length},p.prototype.optimize=function(c){f.prototype.optimize.call(this,c),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof p&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},p.prototype.position=function(c,d){return[this.domNode,c]},p.prototype.split=function(c,d){if(d===void 0&&(d=!1),!d){if(c===0)return this;if(c===this.length())return this.next}var h=l.create(this.domNode.splitText(c));return this.parent.insertBefore(h,this.next),this.text=this.statics.value(this.domNode),h},p.prototype.update=function(c,d){var h=this;c.some(function(_){return _.type==="characterData"&&_.target===h.domNode})&&(this.text=this.statics.value(this.domNode))},p.prototype.value=function(){return this.text},p.blotName="text",p.scope=l.Scope.INLINE_BLOT,p}(s.default);r.default=u},function(n,r,i){var a=document.createElement("div");if(a.classList.toggle("test-class",!1),a.classList.contains("test-class")){var s=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(l,u){return arguments.length>1&&!this.contains(l)==!u?u:s.call(this,l)}}String.prototype.startsWith||(String.prototype.startsWith=function(l,u){return u=u||0,this.substr(u,l.length)===l}),String.prototype.endsWith||(String.prototype.endsWith=function(l,u){var f=this.toString();(typeof u!="number"||!isFinite(u)||Math.floor(u)!==u||u>f.length)&&(u=f.length),u-=l.length;var p=f.indexOf(l,u);return p!==-1&&p===u}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(u){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof u!="function")throw new TypeError("predicate must be a function");for(var f=Object(this),p=f.length>>>0,c=arguments[1],d,h=0;hw.length?g:w,T=g.length>w.length?w:g,P=O.indexOf(T);if(P!=-1)return x=[[a,O.substring(0,P)],[s,T],[a,O.substring(P+T.length)]],g.length>w.length&&(x[0][0]=x[2][0]=i),x;if(T.length==1)return[[i,g],[a,w]];var A=h(g,w);if(A){var S=A[0],C=A[1],I=A[2],M=A[3],F=A[4],z=l(S,I),U=l(C,M);return z.concat([[s,F]],U)}return f(g,w)}function f(g,w){for(var x=g.length,O=w.length,T=Math.ceil((x+O)/2),P=T,A=2*T,S=new Array(A),C=new Array(A),I=0;Ix)U+=2;else if(Y>O)z+=2;else if(F){var K=P+M-N;if(K>=0&&K=B)return p(g,w,q,Y)}}}for(var j=-R+G;j<=R-D;j+=2){var K=P+j,B;j==-R||j!=R&&C[K-1]x)D+=2;else if(Z>O)G+=2;else if(!F){var L=P+M-j;if(L>=0&&L=B)return p(g,w,q,Y)}}}}return[[i,g],[a,w]]}function p(g,w,x,O){var T=g.substring(0,x),P=w.substring(0,O),A=g.substring(x),S=w.substring(O),C=l(T,P),I=l(A,S);return C.concat(I)}function c(g,w){if(!g||!w||g.charAt(0)!=w.charAt(0))return 0;for(var x=0,O=Math.min(g.length,w.length),T=O,P=0;xw.length?g:w,O=g.length>w.length?w:g;if(x.length<4||O.length*2=U.length?[q,Y,K,B,L]:null}var P=T(x,O,Math.ceil(x.length/4)),A=T(x,O,Math.ceil(x.length/2)),S;if(!P&&!A)return null;A?P?S=P[4].length>A[4].length?P:A:S=A:S=P;var C,I,M,F;g.length>w.length?(C=S[0],I=S[1],M=S[2],F=S[3]):(M=S[0],F=S[1],C=S[2],I=S[3]);var z=S[4];return[C,I,M,F,z]}function _(g){g.push([s,""]);for(var w=0,x=0,O=0,T="",P="",A;w1?(x!==0&&O!==0&&(A=c(P,T),A!==0&&(w-x-O>0&&g[w-x-O-1][0]==s?g[w-x-O-1][1]+=P.substring(0,A):(g.splice(0,0,[s,P.substring(0,A)]),w++),P=P.substring(A),T=T.substring(A)),A=d(P,T),A!==0&&(g[w][1]=P.substring(P.length-A)+g[w][1],P=P.substring(0,P.length-A),T=T.substring(0,T.length-A))),x===0?g.splice(w-O,x+O,[a,P]):O===0?g.splice(w-x,x+O,[i,T]):g.splice(w-x-O,x+O,[i,T],[a,P]),w=w-x-O+(x?1:0)+(O?1:0)+1):w!==0&&g[w-1][0]==s?(g[w-1][1]+=g[w][1],g.splice(w,1)):w++,O=0,x=0,T="",P="";break}g[g.length-1][1]===""&&g.pop();var S=!1;for(w=1;w0&&O.splice(T+2,0,[A[0],S]),y(O,T,3)}else return g}function m(g){for(var w=!1,x=function(A){return A.charCodeAt(0)>=56320&&A.charCodeAt(0)<=57343},O=function(A){return A.charCodeAt(A.length-1)>=55296&&A.charCodeAt(A.length-1)<=56319},T=2;T0&&P.push(g[T]);return P}function y(g,w,x){for(var O=w+x-1;O>=0&&O>=w-1;O--)if(O+1\r?\n +\<"),this.convert();var ne=this.quill.getFormat(this.quill.selection.savedRange.index);if(ne[O.default.blotName]){var ye=this.container.innerText;return this.container.innerHTML="",new c.default().insert(ye,I({},O.default.blotName,ne[O.default.blotName]))}var be=this.prepareMatching(),_e=s(be,2),Te=_e[0],Ne=_e[1],ke=j(this.container,Te,Ne);return K(ke,` `)&&ke.ops[ke.ops.length-1].attributes==null&&(ke=ke.compose(new c.default().retain(ke.length()-1).delete(1))),U.log("convert",this.container.innerHTML,ke),this.container.innerHTML="",ke}},{key:"dangerouslyPasteHTML",value:function(ce,ne){var ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:b.default.sources.API;if(typeof ce=="string")this.quill.setContents(this.convert(ce),ne),this.quill.setSelection(0,b.default.sources.SILENT);else{var be=this.convert(ne);this.quill.updateContents(new c.default().retain(ce).concat(be),ye),this.quill.setSelection(ce+be.length(),b.default.sources.SILENT)}}},{key:"onPaste",value:function(ce){var ne=this;if(!(ce.defaultPrevented||!this.quill.isEnabled())){var ye=this.quill.getSelection(),be=new c.default().retain(ye.index),_e=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(b.default.sources.SILENT),setTimeout(function(){be=be.concat(ne.convert()).delete(ye.length),ne.quill.updateContents(be,b.default.sources.USER),ne.quill.setSelection(be.length()-ye.length,b.default.sources.SILENT),ne.quill.scrollingContainer.scrollTop=_e,ne.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var ce=this,ne=[],ye=[];return this.matchers.forEach(function(be){var _e=s(be,2),Te=_e[0],Ne=_e[1];switch(Te){case Node.TEXT_NODE:ye.push(Ne);break;case Node.ELEMENT_NODE:ne.push(Ne);break;default:[].forEach.call(ce.container.querySelectorAll(Te),function(ke){ke[G]=ke[G]||[],ke[G].push(Ne)});break}}),[ne,ye]}}]),ie}(y.default);L.DEFAULTS={matchers:[],matchVisual:!0};function q(ee,ie,le){return(typeof ie>"u"?"undefined":a(ie))==="object"?Object.keys(ie).reduce(function(ce,ne){return q(ce,ne,ie[ne])},ee):ee.reduce(function(ce,ne){return ne.attributes&&ne.attributes[ie]?ce.push(ne):ce.insert(ne.insert,(0,f.default)({},I({},ie,le),ne.attributes))},new c.default)}function Y(ee){if(ee.nodeType!==Node.ELEMENT_NODE)return{};var ie="__ql-computed-style";return ee[ie]||(ee[ie]=window.getComputedStyle(ee))}function K(ee,ie){for(var le="",ce=ee.ops.length-1;ce>=0&&le.length-1}function j(ee,ie,le){return ee.nodeType===ee.TEXT_NODE?le.reduce(function(ce,ne){return ne(ee,ce)},new c.default):ee.nodeType===ee.ELEMENT_NODE?[].reduce.call(ee.childNodes||[],function(ce,ne){var ye=j(ne,ie,le);return ne.nodeType===ee.ELEMENT_NODE&&(ye=ie.reduce(function(be,_e){return _e(ne,be)},ye),ye=(ne[G]||[]).reduce(function(be,_e){return _e(ne,be)},ye)),ce.concat(ye)},new c.default):new c.default}function Z(ee,ie,le){return q(le,ee,!0)}function J(ee,ie){var le=h.default.Attributor.Attribute.keys(ee),ce=h.default.Attributor.Class.keys(ee),ne=h.default.Attributor.Style.keys(ee),ye={};return le.concat(ce).concat(ne).forEach(function(be){var _e=h.default.query(be,h.default.Scope.ATTRIBUTE);_e!=null&&(ye[_e.attrName]=_e.value(ee),ye[_e.attrName])||(_e=R[be],_e!=null&&(_e.attrName===be||_e.keyName===be)&&(ye[_e.attrName]=_e.value(ee)||void 0),_e=N[be],_e!=null&&(_e.attrName===be||_e.keyName===be)&&(_e=N[be],ye[_e.attrName]=_e.value(ee)||void 0))}),Object.keys(ye).length>0&&(ie=q(ie,ye)),ie}function te(ee,ie){var le=h.default.query(ee);if(le==null)return ie;if(le.prototype instanceof h.default.Embed){var ce={},ne=le.value(ee);ne!=null&&(ce[le.blotName]=ne,ie=new c.default().insert(ce,le.formats(ee)))}else typeof le.formats=="function"&&(ie=q(ie,le.blotName,le.formats(ee)));return ie}function me(ee,ie){return K(ie,` `)||ie.insert(` `),ie}function we(){return new c.default}function V(ee,ie){var le=h.default.query(ee);if(le==null||le.blotName!=="list-item"||!K(ie,` `))return ie;for(var ce=-1,ne=ee.parentNode;!ne.classList.contains("ql-clipboard");)(h.default.query(ne)||{}).blotName==="list"&&(ce+=1),ne=ne.parentNode;return ce<=0?ie:ie.compose(new c.default().retain(ie.length()-1).retain(1,{indent:ce}))}function W(ee,ie){return K(ie,` `)||(B(ee)||ie.length()>0&&ee.nextSibling&&B(ee.nextSibling))&&ie.insert(` `),ie}function oe(ee,ie){if(B(ee)&&ee.nextElementSibling!=null&&!K(ie,` `)){var le=ee.offsetHeight+parseFloat(Y(ee).marginTop)+parseFloat(Y(ee).marginBottom);ee.nextElementSibling.offsetTop>ee.offsetTop+le*1.5&&ie.insert(` `)}return ie}function pe(ee,ie){var le={},ce=ee.style||{};return ce.fontStyle&&Y(ee).fontStyle==="italic"&&(le.italic=!0),ce.fontWeight&&(Y(ee).fontWeight.startsWith("bold")||parseInt(Y(ee).fontWeight)>=700)&&(le.bold=!0),Object.keys(le).length>0&&(ie=q(ie,le)),parseFloat(ce.textIndent||0)>0&&(ie=new c.default().insert(" ").concat(ie)),ie}function fe(ee,ie){var le=ee.data;if(ee.parentNode.tagName==="O:P")return ie.insert(le.trim());if(le.trim().length===0&&ee.parentNode.classList.contains("ql-clipboard"))return ie;if(!Y(ee.parentNode).whiteSpace.startsWith("pre")){var ce=function(ye,be){return be=be.replace(/[^\u00a0]/g,""),be.length<1&&ye?" ":be};le=le.replace(/\r\n/g," ").replace(/\n/g," "),le=le.replace(/\s\s+/g,ce.bind(ce,!0)),(ee.previousSibling==null&&B(ee.parentNode)||ee.previousSibling!=null&&B(ee.previousSibling))&&(le=le.replace(/^\s+/,ce.bind(ce,!1))),(ee.nextSibling==null&&B(ee.parentNode)||ee.nextSibling!=null&&B(ee.nextSibling))&&(le=le.replace(/\s+$/,ce.bind(ce,!1)))}return ie.insert(le)}r.default=L,r.matchAttributor=J,r.matchBlot=te,r.matchNewline=W,r.matchSpacing=oe,r.matchText=fe},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function _(b,E){for(var v=0;v '},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function _(b,E){for(var v=0;vh.right&&(b=h.right-_.right,this.root.style.left=c+b+"px"),_.lefth.bottom){var E=_.bottom-_.top,v=p.bottom-p.top+E;this.root.style.top=d-v+"px",this.root.classList.add("ql-flip")}return b}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),u}();r.default=l},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function A(S,C){var I=[],M=!0,F=!1,z=void 0;try{for(var U=S[Symbol.iterator](),G;!(M=(G=U.next()).done)&&(I.push(G.value),!(C&&I.length===C));M=!0);}catch(D){F=!0,z=D}finally{try{!M&&U.return&&U.return()}finally{if(F)throw z}}return I}return function(S,C){if(Array.isArray(S))return S;if(Symbol.iterator in Object(S))return A(S,C);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function A(S,C,I){S===null&&(S=Function.prototype);var M=Object.getOwnPropertyDescriptor(S,C);if(M===void 0){var F=Object.getPrototypeOf(S);return F===null?void 0:A(F,C,I)}else{if("value"in M)return M.value;var z=M.get;return z===void 0?void 0:z.call(I)}},l=function(){function A(S,C){for(var I=0;I','','',''].join(""),r.default=T},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=i(29),s=ne(a),l=i(36),u=i(38),f=i(64),p=i(65),c=ne(p),d=i(66),h=ne(d),_=i(67),b=ne(_),E=i(37),v=i(26),m=i(39),y=i(40),g=i(56),w=ne(g),x=i(68),O=ne(x),T=i(27),P=ne(T),A=i(69),S=ne(A),C=i(70),I=ne(C),M=i(71),F=ne(M),z=i(72),U=ne(z),G=i(73),D=ne(G),R=i(13),N=ne(R),L=i(74),q=ne(L),Y=i(75),K=ne(Y),B=i(57),j=ne(B),Z=i(41),J=ne(Z),te=i(28),me=ne(te),we=i(59),V=ne(we),W=i(60),oe=ne(W),pe=i(61),fe=ne(pe),ee=i(108),ie=ne(ee),le=i(62),ce=ne(le);function ne(ye){return ye&&ye.__esModule?ye:{default:ye}}s.default.register({"attributors/attribute/direction":u.DirectionAttribute,"attributors/class/align":l.AlignClass,"attributors/class/background":E.BackgroundClass,"attributors/class/color":v.ColorClass,"attributors/class/direction":u.DirectionClass,"attributors/class/font":m.FontClass,"attributors/class/size":y.SizeClass,"attributors/style/align":l.AlignStyle,"attributors/style/background":E.BackgroundStyle,"attributors/style/color":v.ColorStyle,"attributors/style/direction":u.DirectionStyle,"attributors/style/font":m.FontStyle,"attributors/style/size":y.SizeStyle},!0),s.default.register({"formats/align":l.AlignClass,"formats/direction":u.DirectionClass,"formats/indent":f.IndentClass,"formats/background":E.BackgroundStyle,"formats/color":v.ColorStyle,"formats/font":m.FontClass,"formats/size":y.SizeClass,"formats/blockquote":c.default,"formats/code-block":N.default,"formats/header":h.default,"formats/list":b.default,"formats/bold":w.default,"formats/code":R.Code,"formats/italic":O.default,"formats/link":P.default,"formats/script":S.default,"formats/strike":I.default,"formats/underline":F.default,"formats/image":U.default,"formats/video":D.default,"formats/list/item":_.ListItem,"modules/formula":q.default,"modules/syntax":K.default,"modules/toolbar":j.default,"themes/bubble":ie.default,"themes/snow":ce.default,"ui/icons":J.default,"ui/picker":me.default,"ui/icon-picker":oe.default,"ui/color-picker":V.default,"ui/tooltip":fe.default},!0),r.default=s.default},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.IndentClass=void 0;var a=function(){function b(E,v){for(var m=0;m0&&this.children.tail.format(O,T)}},{key:"formats",value:function(){return _({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(O,T){if(O instanceof m)s(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"insertBefore",this).call(this,O,T);else{var P=T==null?this.length():T.offset(this),A=this.split(P);A.parent.insertBefore(O,A)}}},{key:"optimize",value:function(O){s(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"optimize",this).call(this,O);var T=this.next;T!=null&&T.prev===this&&T.statics.blotName===this.statics.blotName&&T.domNode.tagName===this.domNode.tagName&&T.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(T.moveChildren(this),T.remove())}},{key:"replace",value:function(O){if(O.statics.blotName!==this.statics.blotName){var T=u.default.create(this.statics.defaultChild);O.moveChildren(T),this.appendChild(T)}s(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"replace",this).call(this,O)}}]),w}(d.default);y.blotName="list",y.scope=u.default.Scope.BLOCK_BLOT,y.tagName=["OL","UL"],y.defaultChild="list-item",y.allowedChildren=[m],r.ListItem=m,r.default=y},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=i(56),s=l(a);function l(d){return d&&d.__esModule?d:{default:d}}function u(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}function f(d,h){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:d}function p(d,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);d.prototype=Object.create(h&&h.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(d,h):d.__proto__=h)}var c=function(d){p(h,d);function h(){return u(this,h),f(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h}(s.default);c.blotName="italic",c.tagName=["EM","I"],r.default=c},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function _(b,E){for(var v=0;v-1?g?this.domNode.setAttribute(y,g):this.domNode.removeAttribute(y):s(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"format",this).call(this,y,g)}}],[{key:"create",value:function(y){var g=s(v.__proto__||Object.getPrototypeOf(v),"create",this).call(this,y);return typeof y=="string"&&g.setAttribute("src",this.sanitize(y)),g}},{key:"formats",value:function(y){return _.reduce(function(g,w){return y.hasAttribute(w)&&(g[w]=y.getAttribute(w)),g},{})}},{key:"match",value:function(y){return/\.(jpe?g|gif|png)$/.test(y)||/^data:image\/.+;base64/.test(y)}},{key:"sanitize",value:function(y){return(0,f.sanitize)(y,["http","https","data"])?y:"//:0"}},{key:"value",value:function(y){return y.getAttribute("src")}}]),v}(u.default.Embed);b.blotName="image",b.tagName="IMG",r.default=b},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function E(v,m){for(var y=0;y-1?g?this.domNode.setAttribute(y,g):this.domNode.removeAttribute(y):s(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"format",this).call(this,y,g)}}],[{key:"create",value:function(y){var g=s(v.__proto__||Object.getPrototypeOf(v),"create",this).call(this,y);return g.setAttribute("frameborder","0"),g.setAttribute("allowfullscreen",!0),g.setAttribute("src",this.sanitize(y)),g}},{key:"formats",value:function(y){return _.reduce(function(g,w){return y.hasAttribute(w)&&(g[w]=y.getAttribute(w)),g},{})}},{key:"sanitize",value:function(y){return f.default.sanitize(y)}},{key:"value",value:function(y){return y.getAttribute("src")}}]),v}(l.BlockEmbed);b.blotName="video",b.className="ql-video",b.tagName="IFRAME",r.default=b},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.FormulaBlot=void 0;var a=function(){function y(g,w){for(var x=0;x0||this.cachedText==null)&&(this.domNode.innerHTML=P(A),this.domNode.normalize(),this.attach()),this.cachedText=A)}}]),O}(_.default);y.className="ql-syntax";var g=new u.default.Attributor.Class("token","hljs",{scope:u.default.Scope.INLINE}),w=function(x){m(O,x),a(O,null,[{key:"register",value:function(){p.default.register(g,!0),p.default.register(y,!0)}}]);function O(T,P){E(this,O);var A=v(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,T,P));if(typeof A.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var S=null;return A.quill.on(p.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(S),S=setTimeout(function(){A.highlight(),S=null},A.options.interval)}),A.highlight(),A}return a(O,[{key:"highlight",value:function(){var P=this;if(!this.quill.selection.composing){this.quill.update(p.default.sources.USER);var A=this.quill.getSelection();this.quill.scroll.descendants(y).forEach(function(S){S.highlight(P.options.highlight)}),this.quill.update(p.default.sources.SILENT),A!=null&&this.quill.setSelection(A,p.default.sources.SILENT)}}}]),O}(d.default);w.DEFAULTS={highlight:function(){return window.hljs==null?null:function(x){var O=window.hljs.highlightAuto(x);return O.value}}(),interval:1e3},r.CodeBlock=y,r.CodeToken=g,r.default=w},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.BubbleTooltip=void 0;var a=function O(T,P,A){T===null&&(T=Function.prototype);var S=Object.getOwnPropertyDescriptor(T,P);if(S===void 0){var C=Object.getPrototypeOf(T);return C===null?void 0:O(C,P,A)}else{if("value"in S)return S.value;var I=S.get;return I===void 0?void 0:I.call(A)}},s=function(){function O(T,P){for(var A=0;A0&&F===p.default.sources.USER){S.show(),S.root.style.left="0px",S.root.style.width="",S.root.style.width=S.root.offsetWidth+"px";var z=S.quill.getLines(I.index,I.length);if(z.length===1)S.position(S.quill.getBounds(I));else{var U=z[z.length-1],G=S.quill.getIndex(U),D=Math.min(U.length()-1,I.index+I.length-G),R=S.quill.getBounds(new h.Range(G,D));S.position(R)}}else document.activeElement!==S.textbox&&S.quill.hasFocus()&&S.hide()}),S}return s(T,[{key:"listen",value:function(){var A=this;a(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){A.root.classList.remove("ql-editing")}),this.quill.on(p.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!A.root.classList.contains("ql-hidden")){var S=A.quill.getSelection();S!=null&&A.position(A.quill.getBounds(S))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(A){var S=a(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"position",this).call(this,A),C=this.root.querySelector(".ql-tooltip-arrow");if(C.style.marginLeft="",S===0)return S;C.style.marginLeft=-1*S-C.offsetWidth/2+"px"}}]),T}(c.BaseTooltip);x.TEMPLATE=['','
','','',"
"].join(""),r.BubbleTooltip=x,r.default=w},function(n,r,i){n.exports=i(63)}]).default})})(uO);const Bd=h_(uO.exports);var _r=-1,nr=1,gn=0;function Hs(e,t,n,r){if(e===t)return e?[[gn,e]]:[];if(n!=null){var i=ZH(e,t,n);if(i)return i}var a=Jv(e,t),s=e.substring(0,a);e=e.substring(a),t=t.substring(a),a=Qv(e,t);var l=e.substring(e.length-a);e=e.substring(0,e.length-a),t=t.substring(0,t.length-a);var u=GH(e,t);return s&&u.unshift([gn,s]),l&&u.push([gn,l]),cO(u,r),u}function GH(e,t){var n;if(!e)return[[nr,t]];if(!t)return[[_r,e]];var r=e.length>t.length?e:t,i=e.length>t.length?t:e,a=r.indexOf(i);if(a!==-1)return n=[[nr,r.substring(0,a)],[gn,i],[nr,r.substring(a+i.length)]],e.length>t.length&&(n[0][0]=n[2][0]=_r),n;if(i.length===1)return[[_r,e],[nr,t]];var s=YH(e,t);if(s){var l=s[0],u=s[1],f=s[2],p=s[3],c=s[4],d=Hs(l,f),h=Hs(u,p);return d.concat([[gn,c]],h)}return KH(e,t)}function KH(e,t){for(var n=e.length,r=t.length,i=Math.ceil((n+r)/2),a=i,s=2*i,l=new Array(s),u=new Array(s),f=0;fn)h+=2;else if(g>r)d+=2;else if(c){var w=a+p-v;if(w>=0&&w=x)return pb(e,t,y,g)}}}for(var O=-E+_;O<=E-b;O+=2){var w=a+O,x;O===-E||O!==E&&u[w-1]n)b+=2;else if(T>r)_+=2;else if(!c){var m=a+p-O;if(m>=0&&m=x)return pb(e,t,y,g)}}}}return[[_r,e],[nr,t]]}function pb(e,t,n,r){var i=e.substring(0,n),a=t.substring(0,r),s=e.substring(n),l=t.substring(r),u=Hs(i,a),f=Hs(s,l);return u.concat(f)}function Jv(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),i=r,a=0;nt.length?e:t,r=e.length>t.length?t:e;if(n.length<4||r.length*2=h.length?[y,g,w,x,m]:null}var a=i(n,r,Math.ceil(n.length/4)),s=i(n,r,Math.ceil(n.length/2)),l;if(!a&&!s)return null;s?a?l=a[4].length>s[4].length?a:s:l=s:l=a;var u,f,p,c;e.length>t.length?(u=l[0],f=l[1],p=l[2],c=l[3]):(p=l[0],c=l[1],u=l[2],f=l[3]);var d=l[4];return[u,f,p,c,d]}function cO(e,t){e.push([gn,""]);for(var n=0,r=0,i=0,a="",s="",l;n=0&&pO(e[u][1])){var f=e[u][1].slice(-1);if(e[u][1]=e[u][1].slice(0,-1),a=f+a,s=f+s,!e[u][1]){e.splice(u,1),n--;var p=u-1;e[p]&&e[p][0]===nr&&(i++,s=e[p][1]+s,p--),e[p]&&e[p][0]===_r&&(r++,a=e[p][1]+a,p--),u=p}}if(hO(e[n][1])){var f=e[n][1].charAt(0);e[n][1]=e[n][1].slice(1),a+=f,s+=f}}if(n0||s.length>0){a.length>0&&s.length>0&&(l=Jv(s,a),l!==0&&(u>=0?e[u][1]+=s.substring(0,l):(e.splice(0,0,[gn,s.substring(0,l)]),n++),s=s.substring(l),a=a.substring(l)),l=Qv(s,a),l!==0&&(e[n][1]=s.substring(s.length-l)+e[n][1],s=s.substring(0,s.length-l),a=a.substring(0,a.length-l)));var c=i+r;a.length===0&&s.length===0?(e.splice(n-c,c),n=n-c):a.length===0?(e.splice(n-c,c,[nr,s]),n=n-c+1):s.length===0?(e.splice(n-c,c,[_r,a]),n=n-c+1):(e.splice(n-c,c,[_r,a],[nr,s]),n=n-c+2)}n!==0&&e[n-1][0]===gn?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,i=0,r=0,a="",s="";break}}e[e.length-1][1]===""&&e.pop();var d=!1;for(n=1;n=55296&&e<=56319}function dO(e){return e>=56320&&e<=57343}function hO(e){return dO(e.charCodeAt(0))}function pO(e){return fO(e.charCodeAt(e.length-1))}function XH(e){for(var t=[],n=0;n0&&t.push(e[n]);return t}function qd(e,t,n,r){return pO(e)||hO(r)?null:XH([[gn,e],[_r,t],[nr,n],[gn,r]])}function ZH(e,t,n){var r=typeof n=="number"?{index:n,length:0}:n.oldRange,i=typeof n=="number"?null:n.newRange,a=e.length,s=t.length;if(r.length===0&&(i===null||i.length===0)){var l=r.index,u=e.slice(0,l),f=e.slice(l),p=i?i.index:null;e:{var c=l+s-a;if(p!==null&&p!==c||c<0||c>s)break e;var d=t.slice(0,c),h=t.slice(c);if(h!==f)break e;var _=Math.min(l,c),b=u.slice(0,_),E=d.slice(0,_);if(b!==E)break e;var v=u.slice(_),m=d.slice(_);return qd(b,v,m,f)}e:{if(p!==null&&p!==l)break e;var y=l,d=t.slice(0,y),h=t.slice(y);if(d!==u)break e;var g=Math.min(a-y,s-y),w=f.slice(f.length-g),x=h.slice(h.length-g);if(w!==x)break e;var v=f.slice(0,f.length-g),m=h.slice(0,h.length-g);return qd(u,v,m,w)}}if(r.length>0&&i&&i.length===0){e:{var b=e.slice(0,r.index),w=e.slice(r.index+r.length),_=b.length,g=w.length;if(s<_+g)break e;var E=t.slice(0,_),x=t.slice(s-g);if(b!==E||w!==x)break e;var v=e.slice(_,a-g),m=t.slice(_,s-g);return qd(b,v,m,w)}}return null}function Kc(e,t,n){return Hs(e,t,n,!0)}Kc.INSERT=nr;Kc.DELETE=_r;Kc.EQUAL=gn;var JH=Kc,Zu={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,a="[object Arguments]",s="[object Array]",l="[object Boolean]",u="[object Date]",f="[object Error]",p="[object Function]",c="[object GeneratorFunction]",d="[object Map]",h="[object Number]",_="[object Object]",b="[object Promise]",E="[object RegExp]",v="[object Set]",m="[object String]",y="[object Symbol]",g="[object WeakMap]",w="[object ArrayBuffer]",x="[object DataView]",O="[object Float32Array]",T="[object Float64Array]",P="[object Int8Array]",A="[object Int16Array]",S="[object Int32Array]",C="[object Uint8Array]",I="[object Uint8ClampedArray]",M="[object Uint16Array]",F="[object Uint32Array]",z=/[\\^$.*+?()[\]{}|]/g,U=/\w*$/,G=/^\[object .+?Constructor\]$/,D=/^(?:0|[1-9]\d*)$/,R={};R[a]=R[s]=R[w]=R[x]=R[l]=R[u]=R[O]=R[T]=R[P]=R[A]=R[S]=R[d]=R[h]=R[_]=R[E]=R[v]=R[m]=R[y]=R[C]=R[I]=R[M]=R[F]=!0,R[f]=R[p]=R[g]=!1;var N=typeof Ut=="object"&&Ut&&Ut.Object===Object&&Ut,L=typeof self=="object"&&self&&self.Object===Object&&self,q=N||L||Function("return this")(),Y=t&&!t.nodeType&&t,K=Y&&!0&&e&&!e.nodeType&&e,B=K&&K.exports===Y;function j(k,H){return k.set(H[0],H[1]),k}function Z(k,H){return k.add(H),k}function J(k,H){for(var Q=-1,de=k?k.length:0;++Q-1}function nf(k,H){var Q=this.__data__,de=Co(Q,k);return de<0?Q.push([k,H]):Q[de][1]=H,this}jt.prototype.clear=Jc,jt.prototype.delete=Qc,jt.prototype.get=ef,jt.prototype.has=tf,jt.prototype.set=nf;function Gt(k){var H=-1,Q=k?k.length:0;for(this.clear();++H-1&&k%1==0&&k-1&&k%1==0&&k<=i}function mr(k){var H=typeof k;return!!k&&(H=="object"||H=="function")}function bl(k){return!!k&&typeof k=="object"}function Ha(k){return Po(k)?Oo(k):yf(k)}function If(){return[]}function Nf(){return!1}e.exports=vl})(Zu,Zu.exports);var Ju={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",i=1,a=2,s=9007199254740991,l="[object Arguments]",u="[object Array]",f="[object AsyncFunction]",p="[object Boolean]",c="[object Date]",d="[object Error]",h="[object Function]",_="[object GeneratorFunction]",b="[object Map]",E="[object Number]",v="[object Null]",m="[object Object]",y="[object Promise]",g="[object Proxy]",w="[object RegExp]",x="[object Set]",O="[object String]",T="[object Symbol]",P="[object Undefined]",A="[object WeakMap]",S="[object ArrayBuffer]",C="[object DataView]",I="[object Float32Array]",M="[object Float64Array]",F="[object Int8Array]",z="[object Int16Array]",U="[object Int32Array]",G="[object Uint8Array]",D="[object Uint8ClampedArray]",R="[object Uint16Array]",N="[object Uint32Array]",L=/[\\^$.*+?()[\]{}|]/g,q=/^\[object .+?Constructor\]$/,Y=/^(?:0|[1-9]\d*)$/,K={};K[I]=K[M]=K[F]=K[z]=K[U]=K[G]=K[D]=K[R]=K[N]=!0,K[l]=K[u]=K[S]=K[p]=K[C]=K[c]=K[d]=K[h]=K[b]=K[E]=K[m]=K[w]=K[x]=K[O]=K[A]=!1;var B=typeof Ut=="object"&&Ut&&Ut.Object===Object&&Ut,j=typeof self=="object"&&self&&self.Object===Object&&self,Z=B||j||Function("return this")(),J=t&&!t.nodeType&&t,te=J&&!0&&e&&!e.nodeType&&e,me=te&&te.exports===J,we=me&&B.process,V=function(){try{return we&&we.binding&&we.binding("util")}catch{}}(),W=V&&V.isTypedArray;function oe(k,H){for(var Q=-1,de=k==null?0:k.length,Ue=0,Ae=[];++Q-1}function lf(k,H){var Q=this.__data__,de=To(Q,k);return de<0?(++this.size,Q.push([k,H])):Q[de][1]=H,this}Gt.prototype.clear=rf,Gt.prototype.delete=of,Gt.prototype.get=af,Gt.prototype.has=sf,Gt.prototype.set=lf;function dn(k){var H=-1,Q=k==null?0:k.length;for(this.clear();++Het))return!1;var at=Ae.get(k);if(at&&Ae.get(H))return at==H;var Kt=-1,hn=!0,Tt=Q&a?new Oo:void 0;for(Ae.set(k,H),Ae.set(H,k);++Kt-1&&k%1==0&&k-1&&k%1==0&&k<=s}function yl(k){var H=typeof k;return k!=null&&(H=="object"||H=="function")}function mr(k){return k!=null&&typeof k=="object"}var bl=W?ie(W):wf;function Ha(k){return Ba(k)?yf(k):Ef(k)}function If(){return[]}function Nf(){return!1}e.exports=kf})(Ju,Ju.exports);var em={},vO=Ut&&Ut.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(em,"__esModule",{value:!0});var QH=vO(Zu.exports),eU=vO(Ju.exports),ip;(function(e){function t(a,s,l){a===void 0&&(a={}),s===void 0&&(s={}),typeof a!="object"&&(a={}),typeof s!="object"&&(s={});var u=QH.default(s);l||(u=Object.keys(u).reduce(function(p,c){return u[c]!=null&&(p[c]=u[c]),p},{}));for(var f in a)a[f]!==void 0&&s[f]===void 0&&(u[f]=a[f]);return Object.keys(u).length>0?u:void 0}e.compose=t;function n(a,s){a===void 0&&(a={}),s===void 0&&(s={}),typeof a!="object"&&(a={}),typeof s!="object"&&(s={});var l=Object.keys(a).concat(Object.keys(s)).reduce(function(u,f){return eU.default(a[f],s[f])||(u[f]=s[f]===void 0?null:s[f]),u},{});return Object.keys(l).length>0?l:void 0}e.diff=n;function r(a,s){a===void 0&&(a={}),s===void 0&&(s={}),a=a||{};var l=Object.keys(s).reduce(function(u,f){return s[f]!==a[f]&&a[f]!==void 0&&(u[f]=s[f]),u},{});return Object.keys(a).reduce(function(u,f){return a[f]!==s[f]&&s[f]===void 0&&(u[f]=null),u},l)}e.invert=r;function i(a,s,l){if(l===void 0&&(l=!1),typeof a!="object")return s;if(typeof s=="object"){if(!l)return s;var u=Object.keys(s).reduce(function(f,p){return a[p]===void 0&&(f[p]=s[p]),f},{});return Object.keys(u).length>0?u:void 0}}e.transform=i})(ip||(ip={}));em.default=ip;var Jl={},Ql={},vb;function tU(){if(vb)return Ql;vb=1;var e=Ut&&Ut.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ql,"__esModule",{value:!0});var t=e(mO()),n=function(){function r(i){this.ops=i,this.index=0,this.offset=0}return r.prototype.hasNext=function(){return this.peekLength()<1/0},r.prototype.next=function(i){i||(i=1/0);var a=this.ops[this.index];if(a){var s=this.offset,l=t.default.length(a);if(i>=l-s?(i=l-s,this.index+=1,this.offset=0):this.offset+=i,typeof a.delete=="number")return{delete:i};var u={};return a.attributes&&(u.attributes=a.attributes),typeof a.retain=="number"?u.retain=i:typeof a.insert=="string"?u.insert=a.insert.substr(s,i):u.insert=a.insert,u}else return{retain:1/0}},r.prototype.peek=function(){return this.ops[this.index]},r.prototype.peekLength=function(){return this.ops[this.index]?t.default.length(this.ops[this.index])-this.offset:1/0},r.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},r.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var i=this.offset,a=this.index,s=this.next(),l=this.ops.slice(this.index);return this.offset=i,this.index=a,[s].concat(l)}else return[]},r}();return Ql.default=n,Ql}var mb;function mO(){if(mb)return Jl;mb=1;var e=Ut&&Ut.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Jl,"__esModule",{value:!0});var t=e(tU()),n;return function(r){function i(s){return new t.default(s)}r.iterator=i;function a(s){return typeof s.delete=="number"?s.delete:typeof s.retain=="number"?s.retain:typeof s.insert=="string"?s.insert.length:1}r.length=a}(n||(n={})),Jl.default=n,Jl}var sl=Ut&&Ut.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},eu=sl(JH),nU=sl(Zu.exports),Hd=sl(Ju.exports),Ja=sl(em),Bt=sl(mO()),rU=String.fromCharCode(0),iU=function(){function e(t){Array.isArray(t)?this.ops=t:t!=null&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]}return e.prototype.insert=function(t,n){var r={};return typeof t=="string"&&t.length===0?this:(r.insert=t,n!=null&&typeof n=="object"&&Object.keys(n).length>0&&(r.attributes=n),this.push(r))},e.prototype.delete=function(t){return t<=0?this:this.push({delete:t})},e.prototype.retain=function(t,n){if(t<=0)return this;var r={retain:t};return n!=null&&typeof n=="object"&&Object.keys(n).length>0&&(r.attributes=n),this.push(r)},e.prototype.push=function(t){var n=this.ops.length,r=this.ops[n-1];if(t=nU.default(t),typeof r=="object"){if(typeof t.delete=="number"&&typeof r.delete=="number")return this.ops[n-1]={delete:r.delete+t.delete},this;if(typeof r.delete=="number"&&t.insert!=null&&(n-=1,r=this.ops[n-1],typeof r!="object"))return this.ops.unshift(t),this;if(Hd.default(t.attributes,r.attributes)){if(typeof t.insert=="string"&&typeof r.insert=="string")return this.ops[n-1]={insert:r.insert+t.insert},typeof t.attributes=="object"&&(this.ops[n-1].attributes=t.attributes),this;if(typeof t.retain=="number"&&typeof r.retain=="number")return this.ops[n-1]={retain:r.retain+t.retain},typeof t.attributes=="object"&&(this.ops[n-1].attributes=t.attributes),this}}return n===this.ops.length?this.ops.push(t):this.ops.splice(n,0,t),this},e.prototype.chop=function(){var t=this.ops[this.ops.length-1];return t&&t.retain&&!t.attributes&&this.ops.pop(),this},e.prototype.filter=function(t){return this.ops.filter(t)},e.prototype.forEach=function(t){this.ops.forEach(t)},e.prototype.map=function(t){return this.ops.map(t)},e.prototype.partition=function(t){var n=[],r=[];return this.forEach(function(i){var a=t(i)?n:r;a.push(i)}),[n,r]},e.prototype.reduce=function(t,n){return this.ops.reduce(t,n)},e.prototype.changeLength=function(){return this.reduce(function(t,n){return n.insert?t+Bt.default.length(n):n.delete?t-n.delete:t},0)},e.prototype.length=function(){return this.reduce(function(t,n){return t+Bt.default.length(n)},0)},e.prototype.slice=function(t,n){t===void 0&&(t=0),n===void 0&&(n=1/0);for(var r=[],i=Bt.default.iterator(this.ops),a=0;a0&&r.next(a.retain-s)}for(var l=new e(i);n.hasNext()||r.hasNext();)if(r.peekType()==="insert")l.push(r.next());else if(n.peekType()==="delete")l.push(n.next());else{var u=Math.min(n.peekLength(),r.peekLength()),f=n.next(u),p=r.next(u);if(typeof p.retain=="number"){var c={};typeof f.retain=="number"?c.retain=u:c.insert=f.insert;var d=Ja.default.compose(f.attributes,p.attributes,typeof f.retain=="number");if(d&&(c.attributes=d),l.push(c),!r.hasNext()&&Hd.default(l.ops[l.ops.length-1],c)){var h=new e(n.rest());return l.concat(h).chop()}}else typeof p.delete=="number"&&typeof f.retain=="number"&&l.push(p)}return l.chop()},e.prototype.concat=function(t){var n=new e(this.ops.slice());return t.ops.length>0&&(n.push(t.ops[0]),n.ops=n.ops.concat(t.ops.slice(1))),n},e.prototype.diff=function(t,n){if(this.ops===t.ops)return new e;var r=[this,t].map(function(u){return u.map(function(f){if(f.insert!=null)return typeof f.insert=="string"?f.insert:rU;var p=u===t?"on":"with";throw new Error("diff() called "+p+" non-document")}).join("")}),i=new e,a=eu.default(r[0],r[1],n),s=Bt.default.iterator(this.ops),l=Bt.default.iterator(t.ops);return a.forEach(function(u){for(var f=u[1].length;f>0;){var p=0;switch(u[0]){case eu.default.INSERT:p=Math.min(l.peekLength(),f),i.push(l.next(p));break;case eu.default.DELETE:p=Math.min(f,s.peekLength()),s.next(p),i.delete(p);break;case eu.default.EQUAL:p=Math.min(s.peekLength(),l.peekLength(),f);var c=s.next(p),d=l.next(p);Hd.default(c.insert,d.insert)?i.retain(p,Ja.default.diff(c.attributes,d.attributes)):i.push(d).delete(p);break}f-=p}}),i.chop()},e.prototype.eachLine=function(t,n){n===void 0&&(n=` `);for(var r=Bt.default.iterator(this.ops),i=new e,a=0;r.hasNext();){if(r.peekType()!=="insert")return;var s=r.peek(),l=Bt.default.length(s)-r.peekLength(),u=typeof s.insert=="string"?s.insert.indexOf(n,l)-l:-1;if(u<0)i.push(r.next());else if(u>0)i.push(r.next(u));else{if(t(i,r.next(1).attributes||{},a)===!1)return;a+=1,i=new e}}i.length()>0&&t(i,{},a)},e.prototype.invert=function(t){var n=new e;return this.reduce(function(r,i){if(i.insert)n.delete(Bt.default.length(i));else{if(i.retain&&i.attributes==null)return n.retain(i.retain),r+i.retain;if(i.delete||i.retain&&i.attributes){var a=i.delete||i.retain,s=t.slice(r,r+a);return s.forEach(function(l){i.delete?n.push(l):i.retain&&i.attributes&&n.retain(Bt.default.length(l),Ja.default.invert(i.attributes,l.attributes))}),r+a}}return r},0),n.chop()},e.prototype.transform=function(t,n){if(n===void 0&&(n=!1),n=!!n,typeof t=="number")return this.transformPosition(t,n);for(var r=t,i=Bt.default.iterator(this.ops),a=Bt.default.iterator(r.ops),s=new e;i.hasNext()||a.hasNext();)if(i.peekType()==="insert"&&(n||a.peekType()!=="insert"))s.retain(Bt.default.length(i.next()));else if(a.peekType()==="insert")s.push(a.next());else{var l=Math.min(i.peekLength(),a.peekLength()),u=i.next(l),f=a.next(l);if(u.delete)continue;f.delete?s.push(f):s.retain(l,Ja.default.transform(u.attributes,f.attributes,n))}return s.chop()},e.prototype.transformPosition=function(t,n){n===void 0&&(n=!1),n=!!n;for(var r=Bt.default.iterator(this.ops),i=0;r.hasNext()&&i<=t;){var a=r.peekLength(),s=r.peekType();if(r.next(),s==="delete"){t-=Math.min(a,t-i);continue}else s==="insert"&&(i["delta","html","text"].includes(e)},enable:{type:Boolean,default:!0},readOnly:{type:Boolean,default:!1},placeholder:{type:String,required:!1},theme:{type:String,default:"snow",validator:e=>["snow","bubble",""].includes(e)},toolbar:{type:[String,Array,Object],required:!1,validator:e=>typeof e=="string"&&e!==""?e.charAt(0)==="#"?!0:Object.keys(gb).indexOf(e)!==-1:!0},modules:{type:Object,required:!1},options:{type:Object,required:!1},globalOptions:{type:Object,required:!1}},emits:["textChange","selectionChange","editorChange","update:content","focus","blur","ready"],setup:(e,t)=>{wt(()=>{a()}),tn(()=>{n=null});let n,r;const i=ae(),a=()=>{var S;if(!!i.value){if(r=s(),e.modules)if(Array.isArray(e.modules))for(const C of e.modules)Bd.register(`modules/${C.name}`,C.module);else Bd.register(`modules/${e.modules.name}`,e.modules.module);n=new Bd(i.value,r),y(e.content),n.on("text-change",c),n.on("selection-change",h),n.on("editor-change",_),e.theme!=="bubble"&&i.value.classList.remove("ql-bubble"),e.theme!=="snow"&&i.value.classList.remove("ql-snow"),(S=n.getModule("toolbar"))===null||S===void 0||S.container.addEventListener("mousedown",C=>{C.preventDefault()}),t.emit("ready",n)}},s=()=>{const S={};if(e.theme!==""&&(S.theme=e.theme),e.readOnly&&(S.readOnly=e.readOnly),e.placeholder&&(S.placeholder=e.placeholder),e.toolbar&&e.toolbar!==""&&(S.modules={toolbar:(()=>{if(typeof e.toolbar=="object")return e.toolbar;if(typeof e.toolbar=="string")return e.toolbar.charAt(0)==="#"?e.toolbar:gb[e.toolbar]})()}),e.modules){const C=(()=>{var I,M;const F={};if(Array.isArray(e.modules))for(const z of e.modules)F[z.name]=(I=z.options)!==null&&I!==void 0?I:{};else F[e.modules.name]=(M=e.modules.options)!==null&&M!==void 0?M:{};return F})();S.modules=Object.assign({},S.modules,C)}return Object.assign({},e.globalOptions,e.options,S)},l=S=>typeof S=="object"&&S?S.slice():S,u=S=>Object.values(S.ops).some(C=>!C.retain||Object.keys(C).length!==1);let f;const p=S=>{if(typeof f==typeof S){if(S===f)return!0;if(typeof S=="object"&&S&&typeof f=="object"&&f)return!u(f.diff(S))}return!1},c=(S,C,I)=>{f=l(m()),p(e.content)||t.emit("update:content",f),t.emit("textChange",{delta:S,oldContents:C,source:I})},d=ae(),h=(S,C,I)=>{d.value=!!(n!=null&&n.hasFocus()),t.emit("selectionChange",{range:S,oldRange:C,source:I})};Le(d,S=>{S?t.emit("focus",i):t.emit("blur",i)});const _=(...S)=>{S[0]==="text-change"&&t.emit("editorChange",{name:S[0],delta:S[1],oldContents:S[2],source:S[3]}),S[0]==="selection-change"&&t.emit("editorChange",{name:S[0],range:S[1],oldRange:S[2],source:S[3]})},b=()=>i.value,E=()=>{var S;return(S=n==null?void 0:n.getModule("toolbar"))===null||S===void 0?void 0:S.container},v=()=>{if(n)return n;throw`The quill editor hasn't been instantiated yet, make sure to call this method when the editor ready or use v-on:ready="onReady(quill)" event instead.`},m=(S,C)=>e.contentType==="html"?x():e.contentType==="text"?g(S,C):n==null?void 0:n.getContents(S,C),y=(S,C="api")=>{const I=S||(e.contentType==="delta"?new oU:"");e.contentType==="html"?O(I):e.contentType==="text"?w(I,C):n==null||n.setContents(I,C),f=l(I)},g=(S,C)=>{var I;return(I=n==null?void 0:n.getText(S,C))!==null&&I!==void 0?I:""},w=(S,C="api")=>{n==null||n.setText(S,C)},x=()=>{var S;return(S=n==null?void 0:n.root.innerHTML)!==null&&S!==void 0?S:""},O=S=>{n&&(n.root.innerHTML=S)},T=(S,C="api")=>{const I=n==null?void 0:n.clipboard.convert(S);I&&(n==null||n.setContents(I,C))},P=()=>{n==null||n.focus()},A=()=>{Qe(()=>{var S;!t.slots.toolbar&&n&&((S=n.getModule("toolbar"))===null||S===void 0||S.container.remove()),a()})};return Le(()=>e.content,S=>{if(!n||!S||p(S))return;const C=n.getSelection();C&&Qe(()=>n==null?void 0:n.setSelection(C)),y(S)},{deep:!0}),Le(()=>e.enable,S=>{n&&n.enable(S)}),{editor:i,getEditor:b,getToolbar:E,getQuill:v,getContents:m,setContents:y,getHTML:x,setHTML:O,pasteHTML:T,focus:P,getText:g,setText:w,reinit:A}},render(){var e,t;return[(t=(e=this.$slots).toolbar)===null||t===void 0?void 0:t.call(e),la("div",{ref:"editor",...this.$attrs})]}});const ll=fA(WH);ll.component("QuillEditor",aU);ll.use(GI);ll.use(Qs);ll.mount("#app");mN[He.app]();Ke(e=>{if([Ie.show,Ie.signModel].includes($u.value)){const t=He.share?[Tw,pw,vw,Cw,gw,yw,bw,_w,ww,Ew,xw,Sw,Ow,Aw,Pw,mw,hw,vh,"/fusion-xj/caseInquest/info","/fusion-xj/caseExtractDetail/info","/fusion-xj/caseInquest/downDocx","/fusion-xj/caseExtractDetail/downDocx"]:[vh],n={before(r){r.headers?r.headers.share="1":r.headers={share:"1"}}};kw(n),h$(...t),e(()=>{_$(n),p$(...t)})}},{flush:"sync"});export{yS as $,Nc as A,Qe as B,Ml as C,PR as D,so as E,Pe as F,X_ as G,iN as H,ue as I,ve as J,xC as K,Re as L,Zp as M,NR as N,TR as O,Dn as P,re as Q,Ie as R,aF as S,Ct as T,ze as U,bo as V,nt as W,ge as X,gt as Y,ro as Z,Et as _,Qs as a,TB as a$,to as a0,Qt as a1,St as a2,ur as a3,T5 as a4,wt as a5,Jj as a6,Qy as a7,tn as a8,Zr as a9,dz as aA,vs as aB,a0 as aC,C5 as aD,dD as aE,Xr as aF,Av as aG,cv as aH,Dh as aI,f8 as aJ,Ds as aK,yD as aL,bD as aM,Mh as aN,cz as aO,xx as aP,Pr as aQ,ca as aR,E5 as aS,wD as aT,ni as aU,Tr as aV,a3 as aW,Ta as aX,cn as aY,ia as aZ,oF as a_,kt as aa,yt as ab,el as ac,hU as ad,ex as ae,_t as af,zt as ag,ra as ah,ir as ai,A5 as aj,gp as ak,qe as al,vo as am,sr as an,tl as ao,pU as ap,Mn as aq,Fc as ar,Vu as as,Kx as at,nD as au,Lv as av,fo as aw,Fv as ax,Lt as ay,Uu as az,Ke as b,SV as b$,sz as b0,zn as b1,oz as b2,iz as b3,S5 as b4,hv as b5,I5 as b6,ix as b7,pz as b8,Se as b9,Vj as bA,gS as bB,xh as bC,lz as bD,uz as bE,$e as bF,Gn as bG,ri as bH,xa as bI,zi as bJ,ot as bK,Ns as bL,er as bM,rt as bN,NE as bO,sc as bP,lc as bQ,sV as bR,Gp as bS,W4 as bT,Uo as bU,qM as bV,hN as bW,MV as bX,vt as bY,tN as bZ,cs as b_,O5 as ba,Kr as bb,P5 as bc,uc as bd,Wv as be,rz as bf,vz as bg,qt as bh,CH as bi,vS as bj,Ya as bk,Rs as bl,Vn as bm,Yw as bn,E$ as bo,V_ as bp,NV as bq,RV as br,wU as bs,jc as bt,Pi as bu,sF as bv,QL as bw,hc as bx,az as by,hz as bz,mt as c,pc as c$,g4 as c0,oV as c1,Xw as c2,gM as c3,yn as c4,fr as c5,uV as c6,Un as c7,AV as c8,CV as c9,fV as cA,Do as cB,fn as cC,Or as cD,U_ as cE,Yg as cF,zV as cG,oN as cH,LV as cI,FV as cJ,DV as cK,eL as cL,QI as cM,fz as cN,_V as cO,Xt as cP,Lu as cQ,bV as cR,lo as cS,it as cT,Gg as cU,EV as cV,nz as cW,nL as cX,rL as cY,Ri as cZ,wV as c_,kc as ca,wn as cb,PV as cc,J_ as cd,TV as ce,Ic as cf,pN as cg,tE as ch,K_ as ci,OV as cj,X4 as ck,IR as cl,kR as cm,Pn as cn,aN as co,RM as cp,eo as cq,Sr as cr,kV as cs,IV as ct,tI as cu,$M as cv,Ll as cw,VV as cx,av as cy,Q4 as cz,Ce as d,la as d$,fN as d0,cN as d1,gi as d2,WV as d3,Ac as d4,PE as d5,Ht as d6,HV as d7,qV as d8,Pc as d9,tu as dA,wC as dB,Zb as dC,Mt as dD,ZU as dE,yU as dF,zU as dG,ea as dH,FU as dI,gU as dJ,qn as dK,Gr as dL,XU as dM,tT as dN,RU as dO,eT as dP,DU as dQ,_U as dR,xU as dS,SU as dT,TU as dU,OU as dV,EU as dW,CU as dX,WU as dY,bp as dZ,Sa as d_,uN as da,UV as db,Sb as dc,_s as dd,vU as de,mU as df,lC as dg,lU as dh,MO as di,LO as dj,Bb as dk,Yo as dl,no as dm,sa as dn,rC as dp,sU as dq,Ub as dr,Db as ds,pp as dt,cU as du,uU as dv,dU as dw,fU as dx,ec as dy,Vs as dz,he as e,hh as e$,Ea as e0,MU as e1,HU as e2,CT as e3,qU as e4,IU as e5,NU as e6,fc as e7,t1 as e8,_p as e9,UU as eA,bU as eB,K1 as eC,Ap as eD,fA as eE,nV as eF,XT as eG,QU as eH,cA as eI,rV as eJ,Rn as eK,eV as eL,JU as eM,Y1 as eN,oA as eO,X1 as eP,iA as eQ,lh as eR,tV as eS,iV as eT,Ut as eU,h_ as eV,ZV as eW,ez as eX,tz as eY,lV as eZ,kE as e_,AC as ea,TC as eb,CC as ec,OC as ed,Gd as ee,BU as ef,YU as eg,Os as eh,Pm as ei,GU as ej,io as ek,rT as el,KU as em,o1 as en,jU as eo,kU as ep,LU as eq,iT as er,PU as es,Xb as et,TT as eu,VU as ev,S1 as ew,oT as ex,$U as ey,AU as ez,X as f,T4 as f0,rN as f1,sN as f2,lN as f3,ar as f4,BV as f5,aV as f6,He as f7,In as f8,LE as f9,YV as fa,JV as fb,XV as fc,GV as fd,Oa as fe,CR as ff,EL as fg,QV as fh,Y_ as fi,yV as fj,gV as fk,dN as fl,Je as g,We as h,fw as i,De as j,r1 as k,st as l,Ee as m,$V as n,se as o,xV as p,bM as q,ae as r,cV as s,IM as t,xe as u,jV as v,Le as w,LM as x,KV as y,kn as z};